@arcgis/core 6.0.0-next.4 → 6.0.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcade/geometry/unitConversion.js +1 -1
  5. package/arcgisGlobal.d.ts +5 -5
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → 250d3be6d3849d71fed8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  13. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  14. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  15. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  16. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  18. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  19. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  20. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +1 -0
  21. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  24. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  25. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  26. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  27. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  28. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  29. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  30. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  31. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  32. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  33. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  34. package/assets/esri/core/workers/chunks/f46a0d7cf588ba1b4157.js +1 -0
  35. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  36. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  37. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  38. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  39. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  40. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  41. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  42. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  43. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  44. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  45. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  46. package/config.js +1 -1
  47. package/core/units.js +1 -1
  48. package/geometry/support/wkt.js +2 -0
  49. package/kernel.js +1 -1
  50. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  51. package/layers/graphics/transferFeatures.js +1 -1
  52. package/package.json +2 -2
  53. package/symbols/cim/cimAnalyzer.js +1 -1
  54. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  55. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  56. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  57. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  58. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  59. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  60. package/views/3d/layers/support/FeatureMemory.js +1 -1
  61. package/views/3d/layers/support/FeatureTile.js +1 -1
  62. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  63. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  64. package/views/3d/support/PBFDecoder.js +1 -1
  65. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  66. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  67. package/views/SceneView.d.ts +4 -10
  68. package/views/View.d.ts +4 -12
  69. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  70. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  71. package/views/interactive/options/ValueOptions.d.ts +9 -2
  72. package/views/interactive/options/ViewOptions.d.ts +81 -6
  73. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  74. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  75. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  76. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  77. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  78. package/widgets/BasemapGallery/types.d.ts +3 -3
  79. package/widgets/BatchAttributeForm.js +1 -1
  80. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  81. package/widgets/Editor.d.ts +9 -9
  82. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  83. package/widgets/Sketch.d.ts +9 -9
  84. package/arcade/geometry/wkt.js +0 -2
  85. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  86. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  87. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  88. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  89. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  90. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  91. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  92. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  93. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  94. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  95. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  96. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  97. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  98. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  99. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  100. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  101. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  102. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  103. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  104. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  105. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  106. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  107. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  108. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2013],{42013(e,l,a){a.r(l),a.d(l,{GlobalIlluminationBlurDrawParameters:()=>t.G,build:()=>t.b}),a(48163),a(82048),a(52540),a(72885),a(34845),a(32976),a(68259),a(20304),a(31821),a(15976),a(63761),a(94046),a(72458),a(65786),a(14113);var t=a(52516)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9944],{61294(e,t,r){r.d(t,{J:()=>i});var n=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=Error(),e.prototype.name="JpegError",e.constructor=e,e}(),i=function(){if(!self||!self.Uint8ClampedArray)return null;var e=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,57,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]),t=4017,r=799,i=3406,o=2276,l=1567,a=3784,s=5793,u=2896;function h(){this.decodeTransform=null,this.colorTransform=-1}function f(e,t){for(var r,n,i=0,o=[],l=16;l>0&&!e[l-1];)l--;o.push({children:[],index:0});var a,s=o[0];for(r=0;r<l;r++){for(n=0;n<e[r];n++){for((s=o.pop()).children[s.index]=t[i];s.index>0;)s=o.pop();for(s.index++,o.push(s);o.length<=r;)o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a;i++}r+1<l&&(o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a)}return o[0].children}function c(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function p(t,r,i,o,l,a,s,u,h){var f=i.mcusPerLine,p=i.progressive,d=r,g=0,y=0;function w(){if(y>0)return y--,g>>y&1;if(255===(g=t[r++])){var e=t[r++];if(e)throw new n("unexpected marker "+(g<<8|e).toString(16))}return y=7,g>>>7}function C(e){for(var t=e;;){if("number"==typeof(t=t[w()]))return t;if("object"!=typeof t)throw new n("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|w(),e--;return t}function x(e){if(1===e)return 1===w()?1:-1;var t=A(e);return t>=1<<e-1?t:t+(-1<<e)+1}var b,v=0,M=0;function k(e,t,r,n,i){var o=r%f;t(e,c(e,(r/f|0)*e.v+n,o*e.h+i))}function T(e,t,r){t(e,c(e,r/e.blocksPerLine|0,r%e.blocksPerLine))}for(var S,I,E,P,R,L,D,U,G=o.length,O=p?0===a?0===u?function(e,t){var r=C(e.huffmanTableDC),n=0===r?0:x(r)<<h;e.blockData[t]=e.pred+=n}:function(e,t){e.blockData[t]|=w()<<h}:0===u?function(t,r){if(v>0)v--;else for(var n=a,i=s;n<=i;){var o=C(t.huffmanTableAC),l=15&o,u=o>>4;if(0===l){if(u<15){v=A(u)+(1<<u)-1;break}n+=16}else{var f=e[n+=u];t.blockData[r+f]=x(l)*(1<<h),n++}}}:function(t,r){for(var i,o,l=a,u=s,f=0;l<=u;){var c=e[l];switch(M){case 0:if(f=(o=C(t.huffmanTableAC))>>4,0==(i=15&o))f<15?(v=A(f)+(1<<f),M=4):(f=16,M=1);else{if(1!==i)throw new n("invalid ACn encoding");b=x(i),M=f?2:3}continue;case 1:case 2:t.blockData[r+c]?t.blockData[r+c]+=w()<<h:0===--f&&(M=2===M?3:0);break;case 3:t.blockData[r+c]?t.blockData[r+c]+=w()<<h:(t.blockData[r+c]=b<<h,M=0);break;case 4:t.blockData[r+c]&&(t.blockData[r+c]+=w()<<h)}l++}4===M&&0===--v&&(M=0)}:function(t,r){var n=C(t.huffmanTableDC),i=0===n?0:x(n);t.blockData[r]=t.pred+=i;for(var o=1;o<64;){var l=C(t.huffmanTableAC),a=15&l,s=l>>4;if(0===a){if(s<15)break;o+=16}else{var u=e[o+=s];t.blockData[r+u]=x(a),o++}}},B=0,N=1===G?o[0].blocksPerLine*o[0].blocksPerColumn:f*i.mcusPerColumn;B<N;){var F=l?Math.min(N-B,l):N;for(I=0;I<G;I++)o[I].pred=0;if(v=0,1===G)for(S=o[0],R=0;R<F;R++)T(S,O,B),B++;else for(R=0;R<F;R++){for(I=0;I<G;I++)for(D=(S=o[I]).h,U=S.v,E=0;E<U;E++)for(P=0;P<D;P++)k(S,O,B,E,P);B++}y=0,(L=m(t,r))&&L.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+L.invalid),r=L.offset);var V=L&&L.marker;if(!V||V<=65280)throw new n("marker was not found");if(!(V>=65488&&V<=65495))break;r+=2}return(L=m(t,r))&&L.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+L.invalid),r=L.offset),r-d}function d(e,h,f){var c,p,d,g,m,y,w,C,A,x,b,v,M,k,T,S,I,E=e.quantizationTable,P=e.blockData;if(!E)throw new n("missing required Quantization Table.");for(var R=0;R<64;R+=8)A=P[h+R],x=P[h+R+1],b=P[h+R+2],v=P[h+R+3],M=P[h+R+4],k=P[h+R+5],T=P[h+R+6],S=P[h+R+7],A*=E[R],0===(x|b|v|M|k|T|S)?(I=s*A+512>>10,f[R]=I,f[R+1]=I,f[R+2]=I,f[R+3]=I,f[R+4]=I,f[R+5]=I,f[R+6]=I,f[R+7]=I):(x*=E[R+1],b*=E[R+2],v*=E[R+3],M*=E[R+4],k*=E[R+5],T*=E[R+6],S*=E[R+7],p=(c=(c=s*A+128>>8)+(p=s*M+128>>8)+1>>1)-p,I=(d=b)*a+(g=T)*l+128>>8,d=d*l-g*a+128>>8,w=(m=(m=u*(x-S)+128>>8)+(w=k<<4)+1>>1)-w,y=(C=(C=u*(x+S)+128>>8)+(y=v<<4)+1>>1)-y,g=(c=c+(g=I)+1>>1)-g,d=(p=p+d+1>>1)-d,I=m*o+C*i+2048>>12,m=m*i-C*o+2048>>12,C=I,I=y*r+w*t+2048>>12,y=y*t-w*r+2048>>12,w=I,f[R]=c+C,f[R+7]=c-C,f[R+1]=p+w,f[R+6]=p-w,f[R+2]=d+y,f[R+5]=d-y,f[R+3]=g+m,f[R+4]=g-m);for(var L=0;L<8;++L)A=f[L],0===((x=f[L+8])|(b=f[L+16])|(v=f[L+24])|(M=f[L+32])|(k=f[L+40])|(T=f[L+48])|(S=f[L+56]))?(I=(I=s*A+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,P[h+L]=I,P[h+L+8]=I,P[h+L+16]=I,P[h+L+24]=I,P[h+L+32]=I,P[h+L+40]=I,P[h+L+48]=I,P[h+L+56]=I):(p=(c=4112+((c=s*A+2048>>12)+(p=s*M+2048>>12)+1>>1))-p,I=(d=b)*a+(g=T)*l+2048>>12,d=d*l-g*a+2048>>12,g=I,w=(m=(m=u*(x-S)+2048>>12)+(w=k)+1>>1)-w,y=(C=(C=u*(x+S)+2048>>12)+(y=v)+1>>1)-y,I=m*o+C*i+2048>>12,m=m*i-C*o+2048>>12,C=I,I=y*r+w*t+2048>>12,y=y*t-w*r+2048>>12,A=(A=(c=c+g+1>>1)+C)<16?0:A>=4080?255:A>>4,x=(x=(p=p+d+1>>1)+(w=I))<16?0:x>=4080?255:x>>4,b=(b=(d=p-d)+y)<16?0:b>=4080?255:b>>4,v=(v=(g=c-g)+m)<16?0:v>=4080?255:v>>4,M=(M=g-m)<16?0:M>=4080?255:M>>4,k=(k=d-y)<16?0:k>=4080?255:k>>4,T=(T=p-w)<16?0:T>=4080?255:T>>4,S=(S=c-C)<16?0:S>=4080?255:S>>4,P[h+L]=A,P[h+L+8]=x,P[h+L+16]=b,P[h+L+24]=v,P[h+L+32]=M,P[h+L+40]=k,P[h+L+48]=T,P[h+L+56]=S)}function g(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,i=new Int16Array(64),o=0;o<n;o++)for(var l=0;l<r;l++)d(t,c(t,o,l),i);return t.blockData}function m(e,t,r){function n(t){return e[t]<<8|e[t+1]}var i=e.length-1,o=r<t?r:t;if(t>=i)return null;var l=n(t);if(l>=65472&&l<=65534)return{invalid:null,marker:l,offset:t};for(var a=n(o);!(a>=65472&&a<=65534);){if(++o>=i)return null;a=n(o)}return{invalid:l.toString(16),marker:a,offset:o}}return h.prototype={parse:function(t){function r(){var e=t[s]<<8|t[s+1];return s+=2,e}function i(){var e=r(),n=s+e-2,i=m(t,n,s);i&&i.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+i.invalid),n=i.offset);var o=t.subarray(s,n);return s+=o.length,o}function o(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0;n<e.components.length;n++){N=e.components[n];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*N.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*N.v/e.maxV),l=t*N.h,a=r*N.v*64*(l+1);N.blockData=new Int16Array(a),N.blocksPerLine=i,N.blocksPerColumn=o}e.mcusPerLine=t,e.mcusPerColumn=r}var l,a,s=0,u=null,h=null,c=[],d=[],y=[],w=r();if(65496!==w)throw new n("SOI not found");for(w=r();65497!==w;){var C,A,x;switch(w){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 b=i();65504===w&&74===b[0]&&70===b[1]&&73===b[2]&&70===b[3]&&0===b[4]&&(u={version:{major:b[5],minor:b[6]},densityUnits:b[7],xDensity:b[8]<<8|b[9],yDensity:b[10]<<8|b[11],thumbWidth:b[12],thumbHeight:b[13],thumbData:b.subarray(14,14+3*b[12]*b[13])}),65518===w&&65===b[0]&&100===b[1]&&111===b[2]&&98===b[3]&&101===b[4]&&(h={version:b[5]<<8|b[6],flags0:b[7]<<8|b[8],flags1:b[9]<<8|b[10],transformCode:b[11]});break;case 65499:for(var v=r()+s-2;s<v;){var M=t[s++],k=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new n("DQT - invalid table spec");for(A=0;A<64;A++)k[e[A]]=r()}else for(A=0;A<64;A++)k[e[A]]=t[s++];c[15&M]=k}break;case 65472:case 65473:case 65474:if(l)throw new n("Only single frame JPEGs supported");r(),(l={}).extended=65473===w,l.progressive=65474===w,l.precision=t[s++],l.scanLines=r(),l.samplesPerLine=r(),l.components=[],l.componentIds={};var T,S=t[s++],I=0,E=0;for(C=0;C<S;C++){T=t[s];var P=t[s+1]>>4,R=15&t[s+1];I<P&&(I=P),E<R&&(E=R);var L=t[s+2];x=l.components.push({h:P,v:R,quantizationId:L,quantizationTable:null}),l.componentIds[T]=x-1,s+=3}l.maxH=I,l.maxV=E,o(l);break;case 65476:var D=r();for(C=2;C<D;){var U=t[s++],G=new Uint8Array(16),O=0;for(A=0;A<16;A++,s++)O+=G[A]=t[s];var B=new Uint8Array(O);for(A=0;A<O;A++,s++)B[A]=t[s];C+=17+O,(U>>4?d:y)[15&U]=f(G,B)}break;case 65501:r(),a=r();break;case 65498:r();var N,F=t[s++],V=[];for(C=0;C<F;C++){var j=l.componentIds[t[s++]];N=l.components[j];var Z=t[s++];N.huffmanTableDC=y[Z>>4],N.huffmanTableAC=d[15&Z],V.push(N)}var W=t[s++],_=t[s++],z=t[s++],H=p(t,s,l,V,a,W,_,z>>4,15&z);s+=H;break;case 65535:255!==t[s]&&s--;break;default:if(255===t[s-3]&&t[s-2]>=192&&t[s-2]<=254){s-=3;break}throw new n("unknown marker "+w.toString(16))}w=r()}for(this.width=l.samplesPerLine,this.height=l.scanLines,this.jfif=u,this.eof=s,this.adobe=h,this.components=[],C=0;C<l.components.length;C++){var K=c[(N=l.components[C]).quantizationId];K&&(N.quantizationTable=K),this.components.push({output:g(0,N),scaleX:N.h/l.maxH,scaleY:N.v/l.maxV,blocksPerLine:N.blocksPerLine,blocksPerColumn:N.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,n,i,o,l,a,s,u,h,f,c,p=this.width/e,d=this.height/t,g=0,m=this.components.length,y=e*t*m,w=new Uint8ClampedArray(y),C=new Uint32Array(e),A=4294967288;for(s=0;s<m;s++){for(n=(r=this.components[s]).scaleX*p,i=r.scaleY*d,g=s,c=r.output,o=r.blocksPerLine+1<<3,l=0;l<e;l++)u=0|l*n,C[l]=(u&A)<<3|7&u;for(a=0;a<t;a++)for(f=o*((u=0|a*i)&A)|(7&u)<<3,l=0;l<e;l++)w[g]=c[f+C[l]],g+=m}var x=this.decodeTransform;if(x)for(s=0;s<y;)for(u=0,h=0;u<m;u++,s++,h+=2)w[s]=(w[s]*x[h]>>8)+x[h+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,n,i=0,o=e.length;i<o;i+=3)t=e[i],r=e[i+1],n=e[i+2],e[i]=t-179.456+1.402*n,e[i+1]=t+135.459-.344*r-.714*n,e[i+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,n,i,o=0,l=0,a=e.length;l<a;l+=4)t=e[l],r=e[l+1],n=e[l+2],i=e[l+3],e[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*t+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),e[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*t+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),e[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,n,i=0,o=e.length;i<o;i+=4)t=e[i],r=e[i+1],n=e[i+2],e[i]=434.456-t-1.402*n,e[i+1]=119.541-t+.344*r+.714*n,e[i+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,n,i,o=0,l=1/255,a=0,s=e.length;a<s;a+=4)t=e[a]*l,r=e[a+1]*l,n=e[a+2]*l,i=e[a+3]*l,e[o++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*n+212.25662451639585*i-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*i-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*i+17.5119270841813)-i*(21.86122147463605*i+189.48180835922747),e[o++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*n+31.159100130055922*i-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*i-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*i-24.86741582555878)-i*(20.737325471181034*i+187.80453709719578),e[o++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*n-.23883238689178934*i-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*i-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*i-193.58209356861505)-i*(22.33816807309886*i+180.12613974708367);return e},getData:function(e,t,r){if(this.numComponents>4)throw new n("Unsupported color mode");var i=this._getLinearizedBlockData(e,t);if(1===this.numComponents&&r){for(var o=i.length,l=new Uint8ClampedArray(3*o),a=0,s=0;s<o;s++){var u=i[s];l[a++]=u,l[a++]=u,l[a++]=u}return l}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded())return r?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(r)return this._convertCmykToRgb(i)}return i}},h}()},85334(e,t,r){r.d(t,{$:()=>w,IB:()=>a,Iy:()=>M,KV:()=>b,N2:()=>C,RH:()=>x,ZD:()=>A,sn:()=>v});var n=r(68197),i=r(4576),o=r(4718),l=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function s(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const f=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let o=e.length,l=e[0].length,a=0;for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)a+=e[r][n]*t[n];i.push(a)}return i}function d(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=p(f,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function g(e){let t=p(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function y(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function w(e){return a(e)?e:h(e)?function(e){return g(y(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return g(y(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?g(e):s(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,o=i*n,l=o*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:o,g:l,b:0};break;case 1:t={r:l,g:o,b:0};break;case 2:t={r:0,g:o,b:l};break;case 3:t={r:0,g:l,b:o};break;case 4:t={r:l,g:0,b:o};break;case 5:case 6:t={r:o,g:0,b:l};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-o),t.g=Math.round(t.g+i-o),t.b=Math.round(t.b+i-o),t}(e):e}function C(e){return s(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),o=i-Math.min(t,r,n),l=i,a=0===o?0:i===t?(r-n)/o%6:i===r?(n-t)/o+2:(t-r)/o+4,s=0===o?0:o/l;return a<0&&(a+=6),a*=60,s*=100,l*=100/255,{h:a,s,v:l}}(w(e))}function A(e){return u(e)?e:function(e){return m(d(e))}(w(e))}function x(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o=o>0?o:o+2*Math.PI,{l:t,c:i,h:o}}(m(d(e)))}(w(e))}function b(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function v(e){return e.length=4,b(e),e[3]??=1,(0,l.qE)(e[3],0,1),e}function M(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,o.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],o=e.length-1,l=Math.ceil((t-e.length)/o);e:for(let i=0;i<o;i++){let o=e[i],a=e[i+1];for(let i=1;i<=l;i++){let s=i/(l+1);if(n.push(T(o,a,s,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const k=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function T(e,t,r,o={}){let l=e.r,a=e.g,s=e.b,u=t.r,h=t.g,f=t.b,c=Math.round(l+(u-l)*r),p=Math.round(a+(h-a)*r),d=Math.round(s+(f-s)*r);if(!o.offset)return new n.A([c,p,d]);let g=(0,i.Mo)(o.seed);return new n.A([k(c,g),k(p,g),k(d,g)])}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(){return i(1,1,1,1)}function l(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function s(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}r.d(t,{_Y:()=>u,fA:()=>i,vt:()=>n});const h=[0,0,0,0],f=o(),c=l(),p=a(),d=s(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:g,UNIT_X:c,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:function(e,t,r,n){return[e,t,r,n]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitW:u,unitX:l,unitY:a,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,h,"v7",0,g])},78955(e,t,r){r.d(t,{Bw:()=>m,C:()=>i,Cc:()=>A,LI:()=>c,Om:()=>C,S8:()=>w,T9:()=>f,WQ:()=>l,Z0:()=>x,aI:()=>v,hG:()=>g,hZ:()=>o,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>b});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function h(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function c(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function d(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function g(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function m(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function y(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function w(e,t){let r=t[0],n=t[1],i=t[2],o=t[3],l=r*r+n*n+i*i+o*o;return l>0&&(l=1/Math.sqrt(l),e[0]=r*l,e[1]=n*l,e[2]=i*l,e[3]=o*l),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function A(e,t,r,n){let i=t[0],o=t[1],l=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=l+n*(r[2]-l),e[3]=a+n*(r[3]-a),e}function x(e,t,r){let n=t[0],i=t[1],o=t[2],l=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*l,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*l,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*l,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*l,e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function v(e,t){let r=e[0],i=e[1],o=e[2],l=e[3],a=t[0],s=t[1],u=t[2],h=t[3],f=(0,n.FD)();return Math.abs(r-a)<=f*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=f*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=f*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(l-h)<=f*Math.max(1,Math.abs(l),Math.abs(h))}const M=a,k=s,T=u,S=d,I=g,E=m,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:l,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:d,div:T,divide:u,dot:C,equals:v,exactEquals:b,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:E,length:m,lerp:A,max:f,min:h,mul:k,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:w,random:function(e,t=1){let r,i,o,l,a,s,u=n.Ov;do{r=2*u()-1,i=2*u()-1,a=r*r+i*i}while(a>=1);do{o=2*u()-1,l=2*u()-1,s=o*o+l*l}while(s>=1);let h=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*o*h,e[3]=t*l*h,e},round:c,scale:p,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:I,sqrLen:P,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:a,transformMat4:x,transformQuat:function(e,t,r){let n=t[0],i=t[1],o=t[2],l=r[0],a=r[1],s=r[2],u=r[3],h=u*n+a*o-s*i,f=u*i+s*n-l*o,c=u*o+l*i-a*n,p=-l*n-a*i-s*o;return e[0]=h*u+p*-l+f*-s-c*-a,e[1]=f*u+p*-a+c*-l-h*-s,e[2]=c*u+p*-s+h*-a-f*-l,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},9334(e,t,r){function n(e,t){let r=0,n="",i=0,o=0,l=e.length;for(;r<l;)o=e[r++],i=o>>4,i<8?i=1:15===i?(i=4,o=(7&o)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===i?(i=3,o=(15&o)<<12|(63&e[r++])<<6|63&e[r++]):(i=2,o=(31&o)<<6|63&e[r++]),(0!==o||t)&&(n+=String.fromCharCode(o));return n}r.d(t,{w:()=>n})},53593(e,t,r){r.d(t,{D:()=>l,E:()=>p});var n=r(49186),i=r(17676),o=r(8003);async function l(e,t,r){if(!e||e.byteLength<10)throw new n.A("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:o,height:l,format:h}=t,{applyJpegMask:p}=t;if(p&&(!o||!l))throw new n.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let d=null;"jpg"===h&&p&&o&&l&&(d=await c(e,{width:o,height:l}));try{let n=new Blob([new Uint8Array(e)],{type:f(h)}),o=await createImageBitmap(n);(0,i.Te)(r);let{useTiledDecoding:l,tileIndex:c,tileSize:p}=t;if(l&&null==c)return s(o,d,p);if(null!=c&&null!=p)return u(o,c,p);try{return a(o,d)}catch(e){if((0,i.QP)(e),o.width>4096||o.height>4096)return s(o,d);throw e}}catch(e){throw(0,i.QP)(e),new n.A("imagecanvasdecoder: decode","cannot load image")}}function a(e,t){let{width:r,height:i}=e,o=new OffscreenCanvas(r,i),l=o.getContext("2d");if(!l)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");l.drawImage(e,0,0,r,i);let a=h(l.getImageData(0,0,r,i),r,i,t);return o.width=0,o.height=0,a}function s(e,t,r=[2048,2048]){let[i,o]=r,l=new OffscreenCanvas(i,o),a=l.getContext("2d",{willReadFrequently:!0});if(!a)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");let{width:s,height:u}=e,h=s*u,f=new Uint8Array(h),c=new Uint8Array(h),p=new Uint8Array(h),d=null==t;t||=new Uint8Array(h);for(let r=0;r<u;r+=o){let n=Math.min(o,u-r);for(let o=0;o<s;o+=i){let l=Math.min(i,s-o);a.clearRect(0,0,l,n),a.drawImage(e,o,r,l,n,0,0,l,n);let{data:u}=a.getImageData(0,0,l,n);for(let e=0;e<n;e++){let n=e*l*4,i=(r+e)*s+o;for(let e=0;e<l;e++,n+=4,i++)f[i]=u[n],c[i]=u[n+1],p[i]=u[n+2],d&&(t[i]=u[n+3])}}}let g={width:s,height:u,pixels:[f,c,p],mask:t,pixelType:"u8"};return l.width=0,l.height=0,console.log(`decodeFullImageTiled: ${s}x${u} using tile ${i}x${o}`,g),g}function u(e,t,r){let[i,o,l]=t,[a,s]=r,u=Math.ceil(e.width/2**i),f=Math.ceil(e.height/2**i),c=Math.ceil(f/s),p=Math.ceil(u/a);if(o>=c||l>=p)return null;let d=new OffscreenCanvas(u,f),g=d.getContext("2d");if(!g)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");g.drawImage(e,0,0,u,f);let m=l*a,y=o*s,w=Math.min(a,u-m),C=Math.min(s,f-y),A=h(g.getImageData(m,y,w,C),a,s);return d.width=0,d.height=0,A}function h(e,t,r,n){let i=t*r,o=new Uint8Array(i),l=new Uint8Array(i),a=new Uint8Array(i),s=null==n;n||=new Uint8Array(i);let u={width:t,height:r,pixels:[o,l,a],mask:n,pixelType:"u8"},{width:h,height:f,data:c}=e;if(h===t&&f===r){for(let e=0,t=0;e<i;e++,t+=4)o[e]=c[t],l[e]=c[t+1],a[e]=c[t+2],s&&(n[e]=c[t+3]);return u}for(let e=0;e<f;e++){let r=e*h*4;for(let i=0;i<h;i++){let u=e*t+i;o[u]=c[r+4*i],l[u]=c[r+4*i+1],a[u]=c[r+4*i+2],s&&(n[u]=c[r+4*i+3])}}return u}function f(e){return`image/${"jpg"===e?"jpeg":e}`}async function c(e,t){try{let r=new Uint8Array(e),n=Math.ceil(r.length/2),i=r.length-2;for(;n<i&&(255!==r[n]||217!==r[n+1]);n++);n+=2;let o=null;return n<r.length-1&&(o=await p(r.subarray(n,-4),t.width*t.height)),o}catch{return null}}async function p(e,t){try{let r=await(0,o.U)(e),n=new Uint8Array(t);for(let e=0,t=0;e<r.length;e++)for(let i=7;i>=0;i--)n[t++]=r[e]>>i&1;return n}catch{return null}}},85951(e,t,r){r.d(t,{D:()=>l,R:()=>o});var n=r(53593),i=r(61294);function o(e){let t=new Uint8Array(e),r=t.length;if(255!==t[0]||216!==t[1])return null;let n=2;for(;n<r&&255===t[n++];){for(;255===t[n];)n++;if(n>=r)break;let e=t[n++];if(217===e||218===e)break;if(e>=208&&e<=215||1===e)continue;let i=t[n]<<8|t[n+1];if(e>=192&&e<=207&&196!==e&&200!==e&&204!==e&&i>=8){let e=n+2,r=t[e+1]<<8|t[e+2];return{width:t[e+3]<<8|t[e+4],height:r,planes:t[e+5]}}n+=i}return null}async function l(e,t={}){let r=new Uint8Array(e),o=new i.J;o.parse(r);let{width:l,height:a,numComponents:s,eof:u}=o,h=t.decodeJpegAsRgb??1!==s,f=o.getData(l,a,h),c=l*a,p=null,{applyJpegMask:d=!1}=t;d&&u<r.length-1&&(p=await(0,n.E)(r.subarray(u,-4),c));let g,m=h?3:s;if(1===m&&f.length===l*a){let e=new Uint8Array(f.buffer);g=[e,e,e]}else{g=[];for(let e=0;e<m;e++)g.push(new Uint8Array(c));for(let e=0,t=0;e<c;e++)for(let r=0;r<m;r++)g[r][e]=f[t++]}return{width:l,height:a,pixels:g,mask:p}}},96381(e,t,r){r.d(t,{D:()=>X,g:()=>Y});var n=r(49186),i=r(97768),o=r(17676),l=r(53593),a=r(85951),s=r(2741);const u=[{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:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let h=null;function f(){return h||(h=r.e(382).then(()=>r(30382)).then(({default:e})=>e({locateFile:e=>(0,s.s)(`esri/layers/raster/formats/${e}`)})).then(e=>{!function(e){let t,{_malloc:r,_free:n,memory:i,_lerc_getBlobInfo:o,_lerc_getDataRanges:l,_lerc_decode_4D:a}=e,s=e=>{let n=e.map(e=>function(e){return 16+(e>>3<<3)}(e)),o=n.reduce((e,t)=>e+t),l=r(o);t=new Uint8Array(i.buffer);let a=n[0];n[0]=l;for(let e=1;e<n.length;e++){let t=n[e];n[e]=n[e-1]+a,a=t}return n};c.getBlobInfo=e=>{let r=new Uint8Array(48),a=new Uint8Array(24),[u,h,f]=s([e.length,r.length,a.length]);t.set(e,u),t.set(r,h),t.set(a,f);let c=o(u,e.length,h,f,12,3);if(c)throw n(u),Error(`lerc-getBlobInfo: error code is ${c}`);t=new Uint8Array(i.buffer),p(t,h,r),p(t,f,a);let d=new Uint32Array(r.buffer),g=new Float64Array(a.buffer),[m,y,,w,C,A,x,b,v,M,k]=d,T=0===x,S={version:m,depthCount:M,width:w,height:C,validPixelCount:x,bandCount:A,blobSize:b,maskCount:v,dataType:y,minValue:g[0],maxValue:g[1],maxZerror:g[2],statistics:[],bandCountWithNoData:k};if(k&&M>1)return n(u),S;if(1===M&&1===A){n(u);let e=T?0:g[0],t=T?0:g[1];return S.statistics.push({minValue:e,maxValue:t}),S}let I=M*A*8,E=new Uint8Array(I),P=new Uint8Array(I),R=u,L=0,D=0,U=!1;if(t.byteLength<u+2*I?(n(u),U=!0,[R,L,D]=s([e.length,I,I]),t.set(e,R)):[L,D]=s([I,I]),t.set(E,L),t.set(P,D),c=l(R,e.length,M,A,L,D),c)throw n(R),U||n(L),Error(`lerc-getDataRanges: error code is ${c}`);t=new Uint8Array(i.buffer),p(t,L,E),p(t,D,P);let G=new Float64Array(E.buffer),O=new Float64Array(P.buffer),B=S.statistics;for(let e=0;e<A;e++)if(M>1){let t=G.slice(e*M,(e+1)*M),r=O.slice(e*M,(e+1)*M),n=T?0:Math.min.apply(null,t),i=T?0:Math.max.apply(null,r);B.push({minValue:n,maxValue:i,depthStats:{minValues:t,maxValues:r}})}else B.push({minValue:T?0:G[e],maxValue:T?0:O[e]});return n(R),U||n(L),S},c.decode=(e,r)=>{let{maskCount:o,depthCount:l,bandCount:h,width:f,height:c,dataType:d,bandCountWithNoData:g,validPixelCount:m}=r,y=u[d],w=f*c,C=new Uint8Array(w*h),A=w*l*h*y.size,x=new Uint8Array(A),b=new Uint8Array(h),v=new Uint8Array(8*h);if(0===m)return{data:x,maskData:C,noDataValues:null};let[M,k,T,S,I]=s([e.length,C.length,x.length,b.length,v.length]);t.set(e,M),t.set(C,k),t.set(x,T),t.set(b,S),t.set(v,I);let E=a(M,e.length,o,k,l,f,c,h,d,T,S,I);if(E)throw n(M),Error(`lerc-decode: error code is ${E}`);t=new Uint8Array(i.buffer),p(t,T,x),p(t,k,C);let P=null;if(g){p(t,S,b),p(t,I,v),P=[];let e=new Float64Array(v.buffer);for(let t=0;t<b.length;t++)P.push(b[t]?e[t]:null)}return n(M),{data:x,maskData:C,noDataValues:P}}}(e)}),h)}const c={getBlobInfo:null,decode:null};function p(e,t,r){r.set(e.slice(t,t+r.length))}function d(e,t,r,n,i){if(r<2)return e;let o=new n(t*r);for(let n=0,i=0;n<t;n++)for(let l=0,a=n;l<r;l++,a+=t)o[a]=e[i++];return o}function g(e,t={}){let r=t.inputOffset??0,n=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),i=c.getBlobInfo(n),{data:o,maskData:l,noDataValues:a}=c.decode(n,i),{width:s,height:h,bandCount:f,depthCount:p,dataType:g,maskCount:m,statistics:y}=i,w=u[g],C=new w.ctor(o.buffer),A=[],x=[],b=s*h,v=b*p,M=u.find(e=>e.pixelType===t.outputPixelType)??w,k=M.pixelType!==w.pixelType;for(let e=0;e<f;e++){let r=e*v,n=r+v,i=C.subarray(r,n),o=k?new M.ctor(i):i;if(t.returnInterleaved)A.push(o);else{let e=d(o,b,p,M.ctor);A.push(e)}x.push(l.subarray(r,n))}let T=0===m?null:1===m?x[0]:new Uint8Array(b);if(m>1){T.set(x[0]);for(let e=1;e<x.length;e++){let t=x[e];for(let e=0;e<b;e++)T[e]=T[e]&t[e]}}let{noDataValue:S}=t,I=null!=S&&M.range[0]<=S&&M.range[1]>=S,{validPixelCount:E}=i;if(m>0&&I)for(let e=0;e<f;e++){let t=A[e];if(0===E)t.fill(S);else{let r=x[e]||T;for(let e=0;e<b;e++)0===r[e]&&(t[e]=S)}}let P=m===f&&f>1?x:null;return{width:s,height:h,bandCount:f,pixelType:M.pixelType,depthCount:p,statistics:y,pixels:A,mask:T,validPixelCount:E,bandMasks:P,noDataValues:a}}function m(){let e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function y(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}const w=new Set;function C(e,t,r,n=!0){let i=function(e,t,r,n=!0){if(t%4!=0||r%4!=0){let i=new ArrayBuffer(4*Math.ceil(r/4)),o=new Uint8Array(i),l=new Uint8Array(e,t,r);if(n)for(let e=0;e<o.length;e+=4)o[e]=l[e+3],o[e+1]=l[e+2],o[e+2]=l[e+1],o[e+3]=l[e];else o.set(l);return new Uint32Array(o.buffer)}if(n){let n=new Uint8Array(e,t,r),i=new Uint8Array(n.length);for(let e=0;e<i.length;e+=4)i[e]=n[e+3],i[e+1]=n[e+2],i[e+2]=n[e+1],i[e+3]=n[e];return new Uint32Array(i.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,n),o=9,l=m(),a=32,s=l.length,u=[],h=1,f=i[0],c=0,p=i.length,d=8*(4*p-r),g=[];for(;null!=f;){if(a>=o)a-=o,c=f>>>32-o,f<<=o;else{c=f>>>32-a,f=i[h++];let e=o-a;a=32-e,c=(c<<e)+(f>>>a),f<<=e}if(257===c)break;if(256===c){o=9,l=m(),s=l.length,u=[];continue}let e=l[c];if(null==e){if(c>l.length)throw Error("data integrity issue: code does not exist on code page");u.push(u[0]),l[s++]=u.slice(),y(g,u)}else y(g,e),u.push(e[0]),u.length>1&&(l[s++]=u.slice()),u=e.slice();if(w.has(s)&&o++,0===a&&(f=i[h++],a=32),h>p||h===p&&a<=d)break}return new Uint8Array(g)}w.add(511),w.add(1023),w.add(2047),w.add(4095),w.add(8191);var A=r(94778);const x=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),b=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let v;const M={getBlobInfo:null,decode:null};function k(e){if(!b.has(e))throw Error("Unsupported data type: "+e);return b.get(e)}const T=(e,t)=>{let r=t.width*t.height,n=t.pixelType;return Math.floor(e.byteLength/(r*S(n)))},S=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};r(44208);var I=r(61294),E=r(44094),P=r(10713),R=r(8003);function L(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 D(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 U(e,t){if(t%8==0)return e;let r=t>16?32:t>8?16:8;r>8&&(e=O(e,32===r?4:2));let n=32===r?Uint32Array:16===r?Uint16Array:Uint8Array,i=new n(e),o=Math.floor(8*e.byteLength/t+1e-6),l=new n(o),a=(1<<t)-1,s=0,u=0,h=0;for(let e=0;e<o;e++)if(0===u&&(h=i[s++],u=r),u>=t)l[e]=h>>>u-t&a,u-=t;else{let n=t-u,o=(h&a)<<n&a;h=i[s++],u=r-n,o+=h>>>u,l[e]=o}return l.buffer}function G(e,t,r){let n=new I.J;n.parse(e),n.colorTransform=6===r?-1:0;let i=n.getData(n.width,n.height,1!==t&&4!==t);return new Uint8Array(i.buffer)}function O(e,t){let r=new Uint8Array(e),n=new Uint8Array(r.length);if(2===t)for(let e=0;e<r.length;e+=2)n[e]=r[e+1],n[e+1]=r[e];else if(4===t)for(let e=0;e<r.length;e+=4)n[e]=r[e+3],n[e+1]=r[e+2],n[e+2]=r[e+1],n[e+3]=r[e];else for(let e=0;e<r.length;e+=8)n[e]=r[e+7],n[e+1]=r[e+6],n[e+2]=r[e+5],n[e+3]=r[e+4],n[e+4]=r[e+3],n[e+5]=r[e+2],n[e+6]=r[e+1],n[e+7]=r[e];return n.buffer}async function B(e,t,r,i,o){let l=P.Z===t,a=(0,E.LZ)(r,"BITSPERSAMPLE"),s=(0,E.LZ)(r,"SAMPLESPERPIXEL")??1,u=(0,E.LZ)(r,"PHOTOMETRICINTERPRETATION"),h=(0,E.LZ)(r,"SAMPLEFORMAT")??1,c=L(h,a),p=(0,E.ni)(r);if(34887===p)return await async function(e,t){return await f(),g(e,{inputOffset:t}).pixels[0]}(e,i);let d,m,y,w=D(c);switch(p){case 1:d=e.slice(i,i+o),m=new Uint8Array(d);break;case 8:case 32946:m=await(0,R.U)(new Uint8Array(e,i,o)),d=m.buffer;break;case 6:m=G(new Uint8Array(e,i,o),s,u),d=m.buffer;break;case 7:{let t=r.get("JPEGTABLES").values,n=t.length-2,l=new Uint8Array(n+o-2);for(let e=0;e<n;e++)l[e]=t[e];let a=new Uint8Array(e,i+2,o-2);for(let e=0;e<a.length;e++)l[n+e]=a[e];m=G(l,s,u),d=m.buffer}break;case 5:m=C(e,i,o,t),d=m.buffer;break;default:throw new n.A("tiff-reader:decode-data","unsupported compression "+p)}if(d=U(d,a),l||a<=8)y=new w(d);else{let e=a>32?8:a>16?4:2;y=new w(O(m.buffer,e))}let A=(0,E.LZ)(r,"PREDICTOR")??1,x=(0,E.LZ)(r,"TILEWIDTH"),b=(0,E.LZ)(r,"TILELENGTH");if(A>1&&(5===p||8===p||32946===p)&&x&&b){let e=(0,E.XO)(r),t=new w(y.length);t.set(y),y=function(e,t,r,n,i){let o=n?4:1,l=r*o*i;n&&(e=new Uint8Array(e.buffer));for(let r=0;r<t;r++){let t=r*l;for(let r=i;r<l;r++)e[t+r]+=e[t+r-i]}if(!n)return e;let a=new Uint8Array(e.length),s=r*i;for(let r=0;r<t;r++){let t=r*l;for(let r=0;r<s;r++)for(let n=0;n<o;n++)a[t+r*o+n]=e[t+r+(o-n-1)*s]}return new Float32Array(a.buffer)}(t,b,x,3===h&&3===A,e?1:s)}return y}var N=r(14140),F=r(4151);async function V(e,t){if(!P.Z)throw new n.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await f();let{width:r,height:i,pixelType:o,statistics:l,depthCount:a,noDataValues:s,bandMasks:u,pixels:h,mask:c,validPixelCount:p}=g(e,{inputOffset:t.offset,returnInterleaved:t.returnInterleaved});return new N.A({width:r,height:i,pixelType:o.toLowerCase(),pixels:h,mask:c,validPixelCount:p,statistics:l.map(({minValue:e,maxValue:t})=>new F.A(e,t)),bandMasks:u,depthCount:a,noDataValues:s})}async function j(e,t){await(v??=r.e(6154).then(()=>r(56154)).then(({default:e})=>e({locateFile:e=>(0,s.s)(`esri/layers/raster/formats/${e}`)})).then(e=>{!function(e){let{_GetInfo:t,_decode:r,_malloc:n,_free:i,writeArrayToMemory:o,UTF8ToString:l}=e;M.getBlobInfo=e=>{e.length>1e3&&(e=e.slice(0,1e3));let r=n(e.length);o(e,r);let a=t(r,e.length);if(i(r),!a)return null;let s=l(a);i(a);try{let e=JSON.parse(s);return{width:e.xsize,height:e.ysize,bandCount:e.nbands,dataType:e.dtype,mode:e.mode,bandMap:e.bandmap}}catch{return null}},M.decode=(t,n)=>{let{dataType:i,width:o,height:l,bandCount:a}=n;if(!x.has(i))throw Error("Unsupported data type: "+i);let{_malloc:s,_free:u}=e,h=s(t.length);e.writeArrayToMemory(t,h);let{ctor:f,byteCount:c}=k(i),p=o*l*a*c,d=s(p),g=s(1024);if(0===r(h,t.length,d,g))throw u(h),u(d),u(g),Error("Decoding failed: "+e.UTF8ToString(g));let m=new f(e.HEAPU8.slice(d,d+p).buffer);if(u(h),u(d),u(g),m instanceof BigInt64Array||m instanceof BigUint64Array){let e=new Float64Array(m.length);for(let t=0;t<m.length;t++)e[t]=Number(m[t]);return e}return m}}(e)}),v);let i=function(e){let t=new Uint8Array(e),r=M.getBlobInfo(t);if(!r)return null;let n=M.decode(t,r);if(!n)return null;let{width:i,height:o,bandCount:l,dataType:a}=r,{ctor:s,pixelType:u}=k(a),h=s===BigInt64Array||s===BigUint64Array?Float64Array:s,f=Array.from({length:l},()=>new h(i*o));for(let e=0,t=0;e<i*o;e++)for(let r=0;r<l;r++)f[r][e]=n[t++];return{width:i,height:o,pixelType:u,pixels:f}}(e);if(!i)throw new n.A("rasterCodec:decode","failed to decode the input data.");let{width:o,height:l,pixels:a,pixelType:u}=i;return new N.A({width:o,height:l,pixelType:u,pixels:a})}async function Z(e,t){let r=await async function(e,t={}){let r=t.pyramidLevel||0,i=t.headerInfo||(0,E.RW)(e),{ifds:o,noData:l}=i;if(0===o.length)throw new n.A("tiff-reader:decode","no valid image file directory");let a=(0,E._J)(i);if(a)throw new n.A("tiff-reader:decode",a);let s=-1===r?o[o.length-1]:o[r],u=l??t.noDataValue,h=i.tileWidth?await async function(e,t,r){let n=(0,E.wc)(r,"TILEOFFSETS"),i=(0,E.wc)(r,"TILEBYTECOUNTS");if(null==n||null==i)return null;let{width:o,height:l,pixelType:a,tileWidth:s,tileHeight:u}=(0,E.uc)([r]),h=(0,E.XO)(r,t),f=(0,E.LZ)(r,"SAMPLESPERPIXEL")||t.planes,c=o*l,p=(0,E.LZ)(r,"BITSPERSAMPLE"),d=34887===(0,E.ni)(r),g=D(a),m=[];for(let e=0;e<f;e++)m.push(new g(c));let y=Math.ceil(o/s),w=new Uint8Array(c).fill(255),C=null,A=!1;if(p%8==0)if(d&&h&&f>1){let a=Math.round(n.length/f);for(let h=0;h<a;h++){let a=Math.floor(h/y)*u,c=h%y*s,p=a*o+c;for(let d=0;d<f;d++){let g=h*f+d;0===i[g]?(C=null,A=!0):C=await B(e,t.littleEndian,r,n[g],i[g]);let y=Math.min(s,o-c),x=Math.min(u,l-a),b=m[d];for(let e=0;e<x;e++){let t=p+e*o,r=e*s;for(let e=0;e<y;e++,t++,r++)C?b[t]=C[r]:w[t]=0}}}}else for(let a=0;a<n.length;a++){let c=Math.floor(a/y)*u,p=a%y*s,g=c*o+p;0===i[a]?(C=null,A=!0):C=await B(e,t.littleEndian,r,n[a],i[a]);let x=Math.min(s,o-p),b=Math.min(u,l-c);for(let e=0;e<f;e++){let t=m[e];if(h||d)for(let r=0;r<b;r++){let n=g+r*o,i=s*u*e+r*s;for(let e=0;e<x;e++,n++,i++)C?t[n]=C[i]:w[n]=0}else for(let r=0;r<b;r++){let n=g+r*o,i=r*s*f+e;for(let e=0;e<x;e++,n++,i+=f)C?t[n]=C[i]:w[n]=0}}}return{width:o,height:l,pixelType:a,pixels:m,mask:A?w:void 0}}(e,i,s):await async function(e,t,r){let n=P.Z===t.littleEndian,i=(0,E.wc)(r,"STRIPOFFSETS"),o=(0,E.wc)(r,"STRIPBYTECOUNTS");if(null==i||null==o)return null;let l,a,s,u,{width:h,height:f,pixelType:c}=(0,E.uc)([r]),p=(0,E.LZ)(r,"SAMPLESPERPIXEL")||t.planes,d=(0,E.LZ)(r,"PHOTOMETRICINTERPRETATION"),g=h*f,m=(0,E.LZ)(r,"BITSPERSAMPLE"),y=D(c),w=new y(g*p),A=(0,E.LZ)(r,"ROWSPERSTRIP"),x=(0,E.ni)(r);if(m%8==0)for(let r=0;r<i.length;r++){let f=A*h*r*p;if("u8"===c||"s8"===c||n)8===x||32946===x?(s=new Uint8Array(e,i[r],o[r]),s=await(0,R.U)(s),a=s.buffer):6===x?(s=new Uint8Array(e,i[r],o[r]),s=G(s,p,d),a=s.buffer):5===x?(s=C(e,i[r],o[r],t.littleEndian),a=s.buffer):a=e.slice(i[r],i[r]+o[r]),a=U(a,m),l=new y(a);else{switch(6===x||8===x||32946===x?(s=new Uint8Array(e,i[r],o[r]),u=await(0,R.U)(s),a=u.buffer):(a=new ArrayBuffer(o[r]),s=new Uint8Array(e,i[r],o[r]),u=new Uint8Array(a)),c){case"u16":case"s16":for(let e=0;e<s.length;e+=2)u[e]=s[e+1],u[e+1]=s[e];break;case"u32":case"s32":case"f32":for(let e=0;e<s.length;e+=4)u[e]=s[e+3],u[e+1]=s[e+2],u[e+2]=s[e+1],u[e+3]=s[e]}a=U(a,m),l=new y(a)}w.set(l,f)}let b=[];if(1===p)b.push(w);else for(let e=0;e<p;e++){let t=new y(g);for(let r=0;r<g;r++)t[r]=w[r*p+e];b.push(t)}return{width:h,height:f,pixelType:c,pixels:b}}(e,i,s);if(!h)return h;if(null!=u){let e=null==l&&t?.matchAllNoData;(0,A.Sp)(h,u,{matchAllNoData:e})}return h}(e,{...t,noDataValue:t.tiffNoDataValue,matchAllNoData:t.matchAllNoData});return(0,i.Lw)(r),new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,bandMasks:r.bandMasks})}function W(e,t){let r=t.pixelType||"u8",n=N.A.getPixelArrayConstructor(r),i="u8"===r?e:new n(e.buffer),o=[],l=t.planes||1;if(1===l)o.push(i);else for(let r=0;r<l;r++){let a=(t.width||1)*(t.height||e.length),s=new n(a);for(let e=0;e<a;e++)s[e]=i[e*l+r];o.push(s)}return new N.A({width:t.width||1,height:t.height||e.length,pixels:o,pixelType:r})}async function _(e,t){return W(await(0,R.U)(new Uint8Array(e)),t)}function z(e,t){return W(C(e,t.offset,t.eof,!t.isInputBigEndian),t)}function H(e,t){let r=t.format,{pixelTypeCtor:n}=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||=65535,t=Uint16Array;break;case"u32":r||=2**32-1,t=Uint32Array;break;case"s8":r||=-128,t=Int8Array;break;case"s16":r||=-32768,t=Int16Array;break;case"s32":r||=0-2**31,t=Int32Array;break;default:t=Float32Array}return{pixelTypeCtor:t,noDataValue:r}}(t.pixelType),i=function(e,t){let r=t.pixelType,n=[],i=t.width*t.height,o=T(e,t),{bandIds:l,format:a}=t,s=l?.length||T(e,t),u=e.byteLength-e.byteLength%(i*S(r)),h=new r(e,0,i*o);if("bip"===a)for(let e=0;e<s;e++){let t=new r(i),a=l?l[e]:e;for(let e=0;e<i;e++)t[e]=h[e*o+a];n.push(t)}else if("bsq"===a)for(let e=0;e<s;e++){let t=l?l[e]:e;n.push(h.subarray(t*i,(t+1)*i))}let f=null;return u<e.byteLength-1&&(f=((e,t)=>{if(8*e.byteLength<t)return null;let r=new Uint8Array(e,0,Math.ceil(t/8)),n=new Uint8Array(t),i=0,o=0;for(let e=0;e<r.length-1;e++){o=r[e];for(let e=7;e>=0;e--)n[i++]=o>>e&1}let l=7;for(;i<t-1;)o=r[r.length-1],n[i++]=o>>l&1,l--;return n})(e.slice(u),i)),{pixels:n,mask:f}}(e,{width:t.width,height:t.height,pixelType:n,format:r});return new N.A({width:t.width,height:t.height,pixels:i.pixels,pixelType:t.pixelType,mask:i.mask})}async function K(e,t,r){let n=await(0,l.D)(e,t,r);return new N.A(n)}async function q(e,t,r){let i=t.format||Y(e),l={...t,format:i},{canvasUsage:s}=t;if("no-canvas"!==s||"png"===i)try{return await K(e,l,r)}catch(e){if((0,o.zf)(e))throw e;if("canvas-only"===s)throw new n.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${i}`)}return await async function(e,t){let r=await(0,a.D)(e,t);return new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:"u8",mask:r.mask})}(e,l)}function Y(e){if(!e)return;let t,r=new Uint8Array(e,0,10);return 255===r[0]&&216===r[1]?t="jpg":137===r[0]&&80===r[1]&&78===r[2]&&71===r[3]?t="png":67===r[0]&&110===r[1]&&116===r[2]&&90===r[3]&&73===r[4]&&109===r[5]&&97===r[6]&&103===r[7]&&101===r[8]&&32===r[9]||76===r[0]&&101===r[1]&&114===r[2]&&99===r[3]&&50===r[4]&&32===r[5]?t="lerc":73===r[0]&&73===r[1]&&42===r[2]&&0===r[3]||77===r[0]&&77===r[1]&&0===r[2]&&42===r[3]||73===r[0]&&73===r[1]&&43===r[2]&&0===r[3]||77===r[0]&&77===r[1]&&0===r[2]&&43===r[3]?t="tiff":71===r[0]&&73===r[1]&&70===r[2]?t="gif":66===r[0]&&77===r[1]?t="bmp":81===r[0]&&66===r[1]&&51===r[2]&&(t="qb3"),t}async function X(e,t={},r){if(null==e)throw new n.A("rasterCodec:decode","missing encodeddata parameter.");let i=t.format?.toLowerCase();if(!("bsq"!==i&&"bip"!==i||null!=t.width&&null!=t.height))throw new n.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===i&&t.customOptions)return async function(e,t){let r=await async function(e,t){let{headerInfo:r,ifd:n,offsets:i,sizes:o}=t,l=[];for(let t=0;t<i.length;t++){o[t];let a=await B(e,r.littleEndian,n,i[t],o[t]||e.byteLength);l.push(a)}let a,s=(0,E.XO)(n,r),u=(0,E.LZ)(n,"BITSPERSAMPLE"),h=L((0,E.LZ)(n,"SAMPLEFORMAT")??1,u),f=(0,E.LZ)(n,"SAMPLESPERPIXEL")||r.planes,c=D(h),p=(0,E.LZ)(n,"TILEWIDTH"),d=(0,E.LZ)(n,"TILELENGTH"),g=34887===(0,E.ni)(n),m=p*d,y=[],w=l[0];for(let e=0;e<f;e++){if(a=new c(m),l.length===f)w=l[e],w.length===m&&(a=w);else if(w.length)if(s||g)a=w.length===m?w:w.slice(m*e,m*(e+1));else for(let t=0;t<m;t++)a[t]=w[t*f+e];y.push(a)}let C=r.noData?r.noData[0]:t.noDataValue,x=r.metadata?r.metadata.statistics:null,b=x?x.map(e=>e.min):null,v=x?x.map(e=>e.max):null,M={pixelType:h,width:p,height:d,pixels:y,noDataValue:C};return null==C?b&&v&&t.applyMinMaxConstraint&&(M.mask=function(e,t,r){if(!(e&&e.length>0&&t&&r))return null;let n,i,o,l=e[0].length,a=e.length,s=new Uint8Array(l);for(let u=0;u<a;u++)if(n=e[u],i=t[u],o=r[u],0===u)for(let e=0;e<l;e++)s[e]=n[e]<i||n[e]>o?0:1;else for(let e=0;e<l;e++)s[e]&&(s[e]=n[e]<i||n[e]>o?0:1);return s}(y,b,v)):(0,A.Sp)(M,C,{matchAllNoData:t?.matchAllNoData}),M}(e,t.customOptions),n=new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask});return t.skipStatistics||n.updateStatistics(),n}(e,t);if(!i||"bsq"!==i&&"bip"!==i&&"deflate"!==i&&"lzw"!==i){if(i=Y(e),!i)throw String.fromCharCode.apply(null,[...new Uint8Array(e,0,10)]).toLowerCase().includes("error")?new n.A("rasterCodec:decode","input data contains error"):new n.A("rasterCodec:decode","unsupported raster format");t={...t,format:i}}let o=function(e){let t=null;switch(e){case"lerc":t=V;break;case"jpg":case"png":t=q;break;case"bmp":case"gif":t=K;break;case"bsq":case"bip":t=H;break;case"tiff":t=Z;break;case"deflate":t=_;break;case"lzw":t=z;break;case"qb3":t=j;break;default:t=()=>{throw new n.A("rasterCodec:decode",`unsupported raster format ${e}`)}}return t}(i);t.isPoint&&(null!=(t={...t}).width&&t.width++,null!=t.height&&t.height++);let l,{offsets:a}=t;if(a&&a.length>1){let n=a.map((n,i)=>o(e.slice(n,a[i+1]),t,r)),i=await Promise.all(n);l=i[0],l.pixels=i.map(e=>e.pixels[0]);let s=i.map(e=>e.mask);s.some(e=>null!=e)&&(s.forEach((e,t)=>{s[t]??=new Uint8Array(l.width*l.height).fill(255)}),l.bandMasks=s,l.mask=N.A.combineBandMasks(s))}else l=await o(e,{...t,offset:a?.[0]??t.offset},r);return"jpg"!==i&&null!=t.noDataValue&&1===l.depthCount&&(0,A.Sp)(l,t.noDataValue,{customFloatTolerance:t.tolerance}),t.isPoint&&function(e,t="bilinear"){if(!e)return;let{pixels:r,width:n,height:i,mask:o}=e;if(!r||0===r.length)return;let l=n-1,a=i-1,s=[],u=null,h=N.A.getPixelArrayConstructor(e.pixelType);if("nearest"===t){for(let e of r){let t=new h(l*a);for(let r=0;r<a;r++){let i=r*n;for(let n=0;n<l;n++)t[r*l+n]=e[i+n]}s.push(t)}if(null!=o){u=new Uint8Array(l*a);for(let e=0;e<a;e++){let t=e*n;for(let r=0;r<l;r++)u[e*l+r]=o[t+r]}}}else{for(let e of r){let t=new h(l*a);for(let r=0;r<a;r++){let i=r*n;for(let o=0;o<l;o++)t[r*l+o]=(e[i+o]+e[i+o+1]+e[i+n+o]+e[i+n+o+1])/4}s.push(t)}if(o){u=new Uint8Array(l*a);for(let e=0;e<a;e++){let t=e*n;for(let r=0;r<l;r++)u[e*l+r]=Math.min.apply(null,[o[t+r],o[t+r+1],o[t+n+r],o[t+n+r+1]])}}}e.width=l,e.height=a,e.mask=u,e.pixels=s}(l),!l.statistics?.length&&!t.skipStatistics&&l.updateStatistics(),l}},8003(e,t,r){async function n(e,t){t??=function(e){return(t=e).length>=2&&31===t[0]&&139===t[1]?"gzip":function(e){if(e.length<2)return!1;let[t,r]=e.subarray(0,2);return!(8!=(15&t)||t>>4>7)&&(65535&(t<<8|r))%31==0}(e)?"deflate":null;var t}(e)??"deflate-raw";let r=new Response(e).body.pipeThrough(new DecompressionStream(t)),n=await new Response(r).arrayBuffer();return new Uint8Array(n)}r.d(t,{U:()=>n})},94778(e,t,r){r.d(t,{$p:()=>s,Sp:()=>u,X1:()=>o,hP:()=>i,yM:()=>a,zw:()=>l});const n={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function i(e){return n[e]??[-34028234663852886e22,34028234663852886e22]}function o(e,t){return null==e||null==t?"s32":e<0?e>=-128&&t<128?"s8":e>=-32768&&t<32768?"s16":"s32":t<256?"u8":t<65536?"u16":"u32"}function l(e){return(e?.startsWith("s")||e?.startsWith("u"))??!1}function a(e,t,r,n){let[o,a]=i(r),s=l(r);return s&&(o-=1e-5,a+=1e-5),s?r.startsWith("u")?function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l+.5|0}}(e,t,n,[o,a]):function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l+(l>0?.5:-.5)|0}}(e,t,n,[o,a]):function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l}}(e,t,n,[o,a])}function s(e,t){for(let r=0;r<t.length;r++)t[r]&&isNaN(e[r])&&(t[r]=0,e[r]=0)}function u(e,t,r){if(e.depthCount&&e.depthCount>1)return;let{pixels:n,statistics:o,pixelType:l}=e,a=n[0].length,s=e.bandMasks??[],u=e.mask??new Uint8Array(a).fill(255),h="f32"===l||"f64"===l,f=i(l),c=!1;for(let e=0;e<n.length;e++){let i="number"==typeof t?t:t[e];if(null==i)continue;let a=o?.[e]?.minValue??f[0],p=o?.[e]?.maxValue??f[1];if(a>i+2**-52||p<i-2**-52)continue;let d=s[e]||u.slice(),g=n[e],m=r?.customFloatTolerance;if(h&&0!==m){let e=m;e||=Math.abs(i)>=9999999e31?2e-7*Math.abs(i):"f32"===l?2**-23:2**-52;for(let t=0;t<g.length;t++)d[t]&&Math.abs(g[t]-i)<e&&(g[t]=0,d[t]=0,u[t]=0,c=!0)}else for(let e=0;e<g.length;e++)d[e]&&g[e]===i&&(g[e]=0,d[e]=0,u[e]=0,c=!0);s[e]=d}if(c){let t=e.bandMasks||e.pixels.length>1?s:null;r?.matchAllNoData?e.mask=t&&t.length>1?function(e){if(e.length<2)return e[0];let t=e[0].length,r=new Uint8Array(t).fill(0);for(let n=0;n<e.length;n++){let i=e[n];for(let e=0;e<t;e++)i[e]&&(r[e]=255)}return r}(t):u:(e.bandMasks=t,e.mask=u)}c&&"updateStatistics"in e&&e.updateStatistics()}},44094(e,t,r){r.d(t,{Cr:()=>w,JM:()=>I,LZ:()=>p,RW:()=>P,XO:()=>b,_J:()=>x,ni:()=>v,r9:()=>S,uT:()=>E,uc:()=>k,wc:()=>f,zS:()=>T});var n=r(49186),i=r(9334),o=r(94213);const l=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],a=4294967296,s=new Map([[1,(e,t)=>e.getUint8(t)],[2,(e,t)=>e.getUint8(t)],[3,(e,t,r)=>e.getUint16(t,r)],[4,(e,t,r)=>e.getUint32(t,r)],[5,(e,t,r)=>e.getUint32(t,r)/e.getUint32(t+4,r)],[6,(e,t)=>e.getInt8(t)],[7,(e,t)=>e.getUint8(t)],[8,(e,t,r)=>e.getInt16(t,r)],[9,(e,t,r)=>e.getInt32(t,r)],[10,(e,t,r)=>e.getInt32(t,r)/e.getInt32(t+4,r)],[11,(e,t,r)=>e.getFloat32(t,r)],[12,(e,t,r)=>e.getFloat64(t,r)],[13,(e,t,r)=>e.getUint32(t,r)],[16,(e,t,r)=>u(e,t,r)],[17,(e,t,r)=>function(e,t,r){let n=r?e.getInt32(t,r):e.getUint32(t,r),i=r?e.getUint32(t+4,r):e.getInt32(t+4,r),o=(r?n:i)>=0?1:-1;return r?n*=o:i*=o,o*(r?i*a+n:n*a+i)}(e,t,r)],[18,(e,t,r)=>u(e,t,r)]]);function u(e,t,r){let n=e.getUint32(t,r),i=e.getUint32(t+4,r);return r?i*a+n:n*a+i}function h(e,t){return{x:t[0]*e.x+t[1]*e.y+t[2],y:t[3]*e.x+t[4]*e.y+t[5]}}function f(e,t){return e.get(t)?.values}function c(e,t){return e.get(t)?.values?.[0]}function p(e,t){return e.get(t)?.values?.[0]}function d(e,t,r,n){return n?u(e,t,r):e.getUint32(t,r)}function g(e,t,r,n=0,i=o.NB,l=4){let a=8===l,s=a?u(new DataView(e,r,8),0,t):new DataView(e,r,2).getUint16(0,t),h=4+2*l,f=a?8:2,c=f+s*h;if(r+c>e.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:c};let p=8===l?8:4,g=r+c+p<=e.byteLength?d(new DataView(e,r+c,p),0,t,8===l):null,m=r+f,y=new Map;for(let r=0;r<s;r++){let a=new DataView(e,m+h*r,h),s=a.getUint16(0,t),u=a.getUint16(2,t),f=(0,o.kq)(s,i),c=[],p=0,g=0;2===l?(p=a.getUint16(4,t),g=a.getUint16(6,t)):4===l?(p=a.getUint32(4,t),g=a.getUint32(8,t)):8===l&&(p=d(a,4,t,!0),g=d(a,12,t,!0),c.push(a.getUint32(12,t)),c.push(a.getUint32(16,t)));let C={id:s,type:u,valueCount:p,valueOffset:g,valueOffsets:c,values:null};w(e,t,C,n,!1,l),y.set(f,C)}return{success:!0,ifd:y,nextIFD:g,requiredBufferSize:c}}function m(e,t,r,n){let{type:i,valueCount:o}=t,a=l[i];if(null==a||a<=0)return[];let u=o*a,h=u/a,f=new DataView(e,r,u),c=[],p=s.get(i);if(!p)return[];for(let e=0,t=0;e<h;e++,t+=a)c.push(p(f,t,n));return c}function y(e,t,r=4){let{type:n,valueCount:i,valueOffsets:o}=e,s=8*l[n],u=i*l[n]*8,{valueOffset:h}=e,f=8===r?64:32;if(!t)if(f<=32)h>>>=32-u;else{let e=o?.length?o[0]:h>>>0,t=o?.length?o[1]:Math.round((h-e)/a);u<=32?(h=e>>>32-u,o[0]=h):(h=e*2**(32-u)+(t>>>32-u),o[0]=e,o[1]=t>>>32-u)}if(1===i&&s===f)return[h];let c=[];if(64===f){let e=o?.length?o[0]:h>>>0,t=o?.length?o[1]:Math.round((h-e)/a),r=e,n=32;for(let e=1;e<=i;e++){let i=32-s*e%32;if(n<s){let e=r<<i>>>32-n,o=t<<32-n>>>32-n;r=t,c.push(e+o*2**(s-n)),n-=32-(s-n)}else c.push(r<<i>>>32-s),n-=s;0===n&&(n=32,r=t)}return c}for(let e=1;e<=i;e++){let t=32-s*e;c.push(h<<t>>>32-s)}return c}function w(e,t,r,n=0,o=!1,a=4){if(r.values)return!0;let{type:s,valueCount:u}=r,h=r.valueOffset,f=u*l[s],c=u*l[s]*8,p=8===a?64:32;if(c>p&&f>(o?e.byteLength:e?e.byteLength-h+n:0))return r.offlineOffsetSize=[h,f],r.values=null,!1;let d=[];return c<=p?d=y(r,t,a):(h-=n,o&&(h=0),d=m(e,r,h,t)),r.values=2===s?[d.length?(0,i.w)(d instanceof Uint8Array?d:new Uint8Array(d)):""]:d,!0}function C(e){let t=p(e,"PHOTOMETRICINTERPRETATION"),r=f(e,"COLORMAP");if(null!=t&&t<=3&&r?.length&&r.length%3==0){let e=[],t=r.length/3;for(let n=0;n<t;n++)e.push([n,r[n]>>>8,r[n+t]>>>8,r[n+2*t]>>>8]);return e}}function A(e){let t,r=f(e,"GEOTIEPOINTS"),n=f(e,"GEOPIXELSCALE"),i=f(e,"GEOTRANSMATRIX"),o=e.get("GEOKEYDIRECTORY")?.data,l=!!o&&2===p(o,"GTRasterTypeGeoKey"),{spatialReference:a,isPseudoGeographic:s}=function(e){let t=c(e,"GEOASCIIPARAMS"),r=null;if(t){let e=t.split("|").find(e=>e.includes("ESRI PE String = ")),n=e?e.replace("ESRI PE String = ",""):"";r=n.startsWith("COMPD_CS")||n.startsWith("PROJCS")||n.startsWith("GEOGCS")?{wkid:null,wkt:n}:null}let n=!1,i=e.get("GEOKEYDIRECTORY")?.data;if(i){let e=p(i,"GTModelTypeGeoKey");if(2===e){let e=p(i,"GeographicTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e}),!r&&32767===e&&(n=!0,r={wkid:4326})}else if(1===e){let e=p(i,"ProjectedCSTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e})}}return{spatialReference:r,isPseudoGeographic:n}}(e);n&&r&&r.length>=6?(t=[n[0],0,r[3]-r[0]*n[0],0,-Math.abs(n[1]),r[4]-r[1]*n[1]],l&&(t[2]-=.5*t[0]+.5*t[1],t[5]-=.5*t[3]+.5*t[4])):16===i?.length&&(t=l?[i[0],i[1],i[3]-.5*i[0],i[4],i[5],i[7]-.5*i[5]]:[i[0],i[1],i[3],i[4],i[5],i[7]]);let u,d=p(e,"IMAGEWIDTH"),g=p(e,"IMAGELENGTH");if(t){let e,r=[{x:0,y:g},{x:0,y:0},{x:d,y:g},{x:d,y:0}],n=1/0,i=1/0,o=-1/0,l=-1/0;for(let a=0;a<r.length;a++)e=h(r[a],t),n=e.x>n?n:e.x,o=e.x<o?o:e.x,i=e.y>i?i:e.y,l=e.y<l?l:e.y;u={xmin:n,xmax:o,ymin:i,ymax:l,spatialReference:a}}else u={xmin:-.5,ymin:.5-g,xmax:d-.5,ymax:.5,spatialReference:a};return s&&(u.xmax-u.xmin>400||Math.max(Math.abs(u.xmin),Math.abs(u.xmax))>361)&&(u.spatialReference=null),{extent:u,isPseudoGeographic:s,affine:n?void 0:t}}function x(e){let{width:t,height:r,tileHeight:n,tileWidth:i}=e,o=e.planes,l=i?i*n:t*r,a=p(e.ifds[0],"BITSPERSAMPLE"),s="";return l*o>2**30/(a>8?a/8:1)&&(s=i?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),s}function b(e,t){let r=p(e,"PLANARCONFIGURATION");return null==r?!!t&&t.isBSQ:2===r}function v(e){return p(e,"COMPRESSION")??1}function M(e){let t,r=v(e),n=!1;switch(r){case 1:t="NONE",n=!0;break;case 2:case 3:case 4:case 32771:t="CCITT";break;case 5:t="LZW",n=!0;break;case 6:case 7:t="JPEG",n=!0;break;case 32773:t="PACKBITS";break;case 8:case 32946:t="DEFLATE",n=!0;break;case 34712:t="JPEG2000";break;case 34887:t="LERC",n=!0;break;default:t=String(r)}return{compression:t,supported:n}}function k(e){let t=e[0],r=p(t,"TILEWIDTH"),n=p(t,"TILELENGTH"),i=p(t,"IMAGEWIDTH"),o=p(t,"IMAGELENGTH"),l=p(t,"BITSPERSAMPLE"),a=p(t,"SAMPLESPERPIXEL"),s=p(t,"SAMPLEFORMAT")??1,u=function(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}(s,l),h=b(t),f=function(e){return e.get("GDAL_NODATA")?.values}(t),d=null;f?.length&&(d=f.map(e=>parseFloat(e)),d.some(e=>isNaN(e))&&(d=null));let g=!0,m="",{compression:y,supported:w}=M(t);w||(g=!1,m+="unsupported tag compression "+y),s>3&&(g=!1,m+="unsupported tag sampleFormat "+s),l>32&&64!==l&&(g=!1,m+="unsupported tag bitsPerSample "+l);let v,k,I,E,P,{extent:R,isPseudoGeographic:L,affine:D}=A(t),U=T(e);if(U.length>0){I=Math.round(Math.log(i/p(U[0],"IMAGEWIDTH"))/Math.LN2);let e=U[U.length-1];E=U.length,v=p(e,"TILEWIDTH"),k=p(e,"TILELENGTH")}v=null!=E&&E>0?v||r:null,k=null!=E&&E>0?k||n:null,r&&(P=[{maxCol:Math.ceil(i/r)-1,maxRow:Math.ceil(o/n)-1,minRow:0,minCol:0}],U.forEach(e=>{P.push({maxCol:Math.ceil(p(e,"IMAGEWIDTH")/p(e,"TILEWIDTH"))-1,maxRow:Math.ceil(p(e,"IMAGELENGTH")/p(e,"TILELENGTH"))-1,minRow:0,minCol:0})}));let G=function(e){if(!e)return null;let t=e.match(/<Item(.*?)Item>/gi);if(!t||0===t.length)return null;let r=new Map;for(let e=0;e<t.length;e++){let n=t[e],i=n.indexOf("sample="),o=i>-1?n.slice(i+8,n.indexOf('"',i+8)):null;i=n.indexOf("name=");let l=i>-1?n.slice(i+6,n.indexOf('"',i+6)):n.slice(6,n.indexOf(">"));if(l){let e=n.slice(n.indexOf(">")+1,n.indexOf("</Item>")).trim();null==o?r.set(l,e):r.has(l)?r.get(l)[o]=e:r.set(l,[e])}}let n=r.get("STATISTICS_MINIMUM"),i=r.get("STATISTICS_MAXIMUM"),o=r.get("STATISTICS_MEAN"),l=r.get("STATISTICS_STDDEV"),a=null;if(n&&i){a=[];for(let e=0;e<n.length;e++)a.push({min:parseFloat(n[e]),max:parseFloat(i[e]),avg:o&&parseFloat(o[e]),stddev:l&&parseFloat(l[e])})}let s=r.get("BandName"),u=r.get("WavelengthMin"),h=r.get("WavelengthMax"),f=null;if(s){f=[];for(let e=0;e<s.length;e++)f.push({BandName:s[e],WavelengthMin:u&&parseFloat(u[e]),WavelengthMax:h&&parseFloat(h[e])})}return{statistics:a,bandProperties:f,dataType:r.get("DataType"),rawMetadata:r}}(c(e[0],"GDAL_METADATA"));m+=" "+x({width:i,height:o,tileWidth:r,tileHeight:n,planes:a,ifds:e});let O=S(e).length===U.length+1,B=U?.length?U.map(e=>({x:i/p(e,"IMAGEWIDTH"),y:o/p(e,"IMAGELENGTH")})):void 0,N=C(t);return{width:i,height:o,tileWidth:r,tileHeight:n,planes:a,isBSQ:h,pixelType:u,compression:y,noData:d,hasMaskBand:O,isSupported:g,pyramidResolutions:B,message:m,extent:R,isPseudoGeographic:L,affine:D,firstPyramidLevel:I,maximumPyramidLevel:E,pyramidBlockWidth:v,pyramidBlockHeight:k,tileBoundary:P,metadata:G,colormap:N}}function T(e){return e.filter(e=>1===p(e,"NEWSUBFILETYPE"))}function S(e){return e.filter(e=>{let t=!(4&~(p(e,"NEWSUBFILETYPE")??0)),r=4===p(e,"PHOTOMETRICINTERPRETATION");return t&&r})}function I(e,t,r,n=0,l=o.NB,a=4){let s,u=g(e,t,r,n,l,a),h=u.ifd;if(h){if(o.RR.forEach((r,i)=>{h.has(i)&&(s=h.get(i),s.data=g(e,t,s.valueOffset-n,n,r).ifd)}),h.has("GEOKEYDIRECTORY")){s=h.get("GEOKEYDIRECTORY");let r=s.values;if(r&&r.length>4){let i=r[0]+"."+r[1]+"."+r[2];s.data=g(e,t,s.valueOffset+6-n,n,o.YC,2).ifd,s.data&&s.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[i]})}}if(h.has("XMP")){s=h.get("XMP");let e=s.values;"number"==typeof e[0]&&7===s.type&&(s.values=[(0,i.w)(new Uint8Array(e))])}}return u}function E(e){let t=new DataView(e,0,16),r=t.getUint16(0,!1),i=null;if(18761===r)i=!0;else{if(19789!==r)throw new n.A("tiff-reader:parse-signature","unexpected endianness byte");i=!1}let o=t.getUint16(2,i);if(42!==o&&43!==o)throw new n.A("tiff-reader:parse-signature","unexpected tiff identifier");let l=4,a=43===o;if(a){let e=t.getUint16(l,i);if(l+=2,8!==e||0!==t.getUint16(l,i))throw new n.A("tiff-reader:parse-signature","unsupported bigtiff version");l+=2}return{littleEndian:i,isBigTiff:a,firstIFDPos:d(t,l,i,a)}}function P(e){let{littleEndian:t,isBigTiff:r,firstIFDPos:n}=E(e),i=n,l=[];do{let n=I(e,t,i,0,o.NB,r?8:4);if(!n.success)break;l.push(n.ifd),i=n.nextIFD}while(i>0);return{...k(l),littleEndian:t,isBigTiff:r,ifds:l,pyramidIFDs:T(l),maskIFDs:S(l)}}},94213(e,t,r){const n=(()=>{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=n.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[37380]="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})(),o="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".split("."),l=(()=>{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})(),a=new Map([["EXIFIFD",i],["GPSIFD",o]]);r.d(t,["NB",0,n,"RR",0,a,"YC",0,l,"kq",0,(e,t)=>{let r=(t||n)[e];return void 0===r&&(r="unknown"+String(e)),r}])},10713(e,t,r){const n=(()=>{let e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]})();r.d(t,["Z",0,n])},47520(e,t,r){r.d(t,{$Q:()=>D,$i:()=>F,AB:()=>a,Ew:()=>w,Hx:()=>m,J$:()=>O,L:()=>V,LY:()=>k,QF:()=>N,UK:()=>c,Wt:()=>M,Wy:()=>s,XU:()=>v,YD:()=>x,_F:()=>g,bL:()=>y,dK:()=>b,eH:()=>f,lD:()=>G,qL:()=>h,z$:()=>I,z7:()=>S,zg:()=>u});var n=r(34727),i=r(94778),o=r(14140);const l="PixelID";function a(e){return null!=e&&e.pixels?.length>0}function s(e){if(!e?.length||e.some(e=>!a(e)))return null;if(1===e.length)return e[0]?.clone()??null;let t=e,{width:r,height:n,pixelType:i}=t[0];if(t.some(e=>e.width!==r||e.height!==n))return null;let l=t.map(({mask:e})=>e).filter(e=>null!=e),s=null;l.length&&(s=new Uint8Array(r*n),s.set(l[0]),l.length>1&&x(l.slice(1),s));let u=[];t.forEach(({pixels:e})=>u.push(...e));let h=null!=s&&u.length===t.length?t.map(({width:e,height:t,mask:r})=>r??new Uint8Array(e*t).fill(255)):null,f=t.map(({statistics:e})=>e).filter(e=>e?.length),c=[];return f.forEach(e=>c.push(...e)),new o.A({pixelType:i,width:r,height:n,mask:s,bandMasks:h,pixels:u,statistics:c.length?c:null})}function u(e){if(!e)return;let t=e.colormap;if(!t||0===t.length)return;let r=t.sort((e,t)=>e[0]-t[0]),n=r[0][0]<0?r[0][0]:0,i=Math.max(256,r[r.length-1][0]-n+1),o=new Uint8Array(4*i),l=[],a=5===r[0].length;if(i>65536)return r.forEach(e=>{l[e[0]-n]=a?e.slice(1):e.slice(1).concat([255])}),{indexed2DColormap:l,offset:n,alphaSpecified:a};if(e.fillUnspecified){let e=r[0];for(let t=e[0]-n,l=0;t<i;t++)o[4*t]=e[1],o[4*t+1]=e[2],o[4*t+2]=e[3],o[4*t+3]=a?e[4]:255,t===e[0]-n&&(e=l===r.length-1?e:r[++l])}else for(let e=0;e<r.length;e++){let t=r[e],i=4*(t[0]-n);o[i]=t[1],o[i+1]=t[2],o[i+2]=t[3],o[i+3]=a?t[4]:255}return{indexedColormap:o,offset:n,alphaSpecified:a}}function h(e,t){if(!a(e)||!t||!t.indexedColormap&&!t.indexed2DColormap)return e;let r=e.clone(),n=r.pixels,i=r.mask,o=r.width*r.height;if(1!==n.length)return e;let l,{indexedColormap:s,indexed2DColormap:u,offset:h,alphaSpecified:f}=t,c=n[0],p=new Uint8Array(c.length),d=new Uint8Array(c.length),g=new Uint8Array(c.length),m=0;if(s){let e=s.length-1;if(null!=i)for(let t=0;t<o;t++)i[t]&&(m=4*(c[t]-h),m<h||m>e?i[t]=0:(p[t]=s[m],d[t]=s[m+1],g[t]=s[m+2],i[t]=s[m+3]));else{i=new Uint8Array(o);for(let t=0;t<o;t++)m=4*(c[t]-h),m<h||m>e?i[t]=0:(p[t]=s[m],d[t]=s[m+1],g[t]=s[m+2],i[t]=s[m+3]);r.mask=i}}else if(u)if(null!=i)for(let e=0;e<o;e++)i[e]&&(l=u[c[e]],p[e]=l[0],d[e]=l[1],g[e]=l[2],i[e]=l[3]);else{i=new Uint8Array(o);for(let e=0;e<o;e++)l=u[c[e]],p[e]=l[0],d[e]=l[1],g[e]=l[2],i[e]=l[3];r.mask=i}return r.pixels=[p,d,g],r.statistics=null,r.pixelType="u8",r.maskIsAlpha=f,r}function f(e,t){if(!a(e))return null;let{pixels:r,mask:n}=e,i=r.length,l=t.lut,{offset:s}=t;l&&1===l[0].length&&(l=r.map(()=>l));let u=[],h=t.outputPixelType||"u8";for(let e=0;e<i;e++){let t=c(r[e],n,l[e],s||0,h);u.push(t)}let f=new o.A({width:e.width,height:e.height,pixels:u,mask:n,pixelType:h});return f.updateStatistics(),f}function c(e,t,r,n,i){let l=e.length,a=o.A.createEmptyBand(i,l);if(t)for(let i=0;i<l;i++)t[i]&&(a[i]=r[e[i]-n]);else for(let t=0;t<l;t++)a[t]=r[e[t]-n];return a}function p(e,t,r,n){let{width:i,height:o,pixels:l,mask:a}=e,s=i*o,{bandId:u,ranges:h}=r,f=l[u];if(!f)return;let c=1===h.length,[p,d]=h[0];for(let e=0;e<s;e++)if(!a||a[e]){let r=f[e];if(c)r>=p&&r<=d&&(t[e]=n);else for(let i=0;i<h.length;i++){let[o,l]=h[i];if(r>=o&&r<=l){t[e]=n;break}}}}function d(e,t,r,n){let{width:i,height:o,xyMask:l,xBandId:a,yBandId:s,xBandRange:u,yBandRange:h}=r,{pixels:f,mask:c}=e,p=f[a],d=f[s],[g,m]=u,[y,w]=h,C=(m-g)/i,A=(w-y)/o;for(let e=0;e<p.length;e++)if(!c||c[e]){let r=p[e],a=d[e];if(r<g||r>m||a<y||a>w)continue;l?(r=(r-g)*C,r=r>i-1?i-1:r<0?0:255&r,a=(w-a)*A,a=a>o-1?o-1:a<0?0:255&a,l[a*i+r]&&(t[e]=n)):t[e]=n}}function g(e){let{pixelBlock:t,renderedPixelBlock:r,highlightOptions:n}=e;if(!a(t))return;let{width:i,height:o}=t,l=i*o,s=new Uint8Array(l);for(let e=1;e<=n.length;e++){let r=n[e-1];"bandId"in r?p(t,s,r,e):d(t,s,r,e)}let{pixels:u}=r;1===u.length&&(u[1]=u[0].slice(),u[2]=u[0].slice());let h=n.map(e=>e.color),[f,c,g]=u;if(r.mask){let e=r.mask;for(let t=0;t<l;t++)if(e[t]){e[t]=255;let r=s[t];if(r){let n=h[r-1];f[t]=n[0],c[t]=n[1],g[t]=n[2],e[t]=n[3]}}}else{let e=new Uint8Array(l).fill(255);for(let t=0;t<l;t++){let r=s[t];if(r){let n=h[r-1];f[t]=n[0],c[t]=n[1],g[t]=n[2],e[t]=n[3]}}r.mask=e}r.maskIsAlpha=!0}function m(e,t){if(!a(e))return null;let r=e.clone(),{pixels:n}=r,i=r.width*r.height,o=t.length,l=Math.floor(o/2),s=t[Math.floor(l)],u=n[0],h=new Uint8Array(i),f=new Uint8Array(i),c=new Uint8Array(i),p=r.mask,d=4===t[0].mappedColor.length;p||(p=new Uint8Array(i),p.fill(d?255:1),r.mask=p);for(let e=0;e<i;e++)if(p[e]){let r=u[e],n=!1,i=l,a=s,d=0,g=o-1;for(;g-d>1;){if(r===a.value){n=!0;break}r>a.value?d=i:g=i,i=Math.floor((d+g)/2),a=t[Math.floor(i)]}n||(r===t[d].value?(a=t[d],n=!0):r===t[g].value?(a=t[g],n=!0):r<t[d].value?n=!1:r>t[d].value&&(r<t[g].value?(a=t[d],n=!0):g===o-1?n=!1:(a=t[g],n=!0))),n?(h[e]=a.mappedColor[0],f[e]=a.mappedColor[1],c[e]=a.mappedColor[2],p[e]=a.mappedColor[3]):h[e]=f[e]=c[e]=p[e]=0}return r.pixels=[h,f,c],r.mask=p,r.pixelType="u8",r.maskIsAlpha=d,r}function y(e,t,r=!1){let i=1e-5,o=new Float32Array(27),l=t.length;for(let a=0;a<9;a++)o[3*a]=e[2*a]??n.pq-1,o[3*a+1]=e[2*a+1]??n.pq,o[3*a+2]=t[a]??0,a<l&&(a>0&&(o[3*a]-=i),e[2*a+1]!==e[2*a]&&(a<l-1||!r)&&(o[3*a+1]-=i));return o}function w(e,t){if(!a(e))return null;let{width:r,height:n}=e,{inputRanges:l,outputValues:s,outputPixelType:u,noDataRanges:h,allowUnmatched:f,replacementValue:c,isLastInputRangeInclusive:p}=t,d=e.pixels[0],g=o.A.createEmptyBand(u,d.length),m=e.mask,y=new Uint8Array(r*n);m?y.set(m):y.fill(255);let w=e.pixelType.startsWith("f")?1e-6:0,C=l.map(e=>e-w);C[0]=l[0],C[C.length-1]=l[l.length-1]+(p?1e-6:0);let A=l.length/2,[x,b]=(0,i.hP)(u);for(let e=0;e<n;e++)for(let t=0;t<r;t++){let n=e*r+t;if(y[n]){let e=d[n],t=!1;for(let r=A-1;r>=0;r--)if(e===l[2*r]||e>C[2*r]&&e<C[2*r+1]){g[n]=s[r],t=!0;break}t||(f?g[n]=e>b?b:e<x?x:c??e:y[n]=0)}}let v=h?.length;if(v)for(let e=0;e<n;e++)for(let t=0;t<r;t++){let n=e*r+t;if(!m||m[n]){let e=d[n];for(let t=0;t<v;t+=2)if(e>=h[t]&&e<=h[t+1]){g[n]=0,y[n]=0;break}}}return new o.A({width:r,height:n,pixelType:u,pixels:[g],mask:y})}function C(e,t,r,n){let i=null!=r&&r.length>=2?new Set(r):null,o=1===r?.length?r[0]:null,l=!!t?.length;for(let r=0;r<e.length;r++)if(n[r]){let a=e[r];if(l){let e=!1;for(let r=0;r<t.length;r+=2)if(a>=t[r]&&a<=t[r+1]){e=!0;break}e||(n[r]=0)}n[r]&&(a===o||i?.has(a))&&(n[r]=0)}}function A(e,t){let r=e[0].length;t??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(e[t][n]){r=!0;break}r||(t[n]=0)}return t}function x(e,t){let r=e[0].length;t??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(0===e[t][n]){r=!0;break}r&&(t[n]=0)}return t}function b(e,t){if(!a(e))return null;let{width:r,height:n,pixels:i}=e,l=r*n,s=new Uint8Array(l);e.mask?s.set(e.mask):s.fill(255);let u=i.length,{includedRanges:h,noDataValues:f,outputPixelType:p,matchAll:d,lookups:g}=t;if(g){let e=[];for(let t=0;t<u;t++){let r=g[t],n=c(i[t],s,r.lut,r.offset||0,"u8");e.push(n)}1===e.length?s.set(e[0]):d?A(e,s):x(e,s)}else if(d){let e=[];for(let t=0;t<u;t++){let r=new Uint8Array(l);r.set(s),C(i[t],h?.slice(2*t,2*t+2),f?.[t],r),e.push(r)}1===e.length?s.set(e[0]):A(e,s)}else for(let e=0;e<u;e++)C(i[e],h?.slice(2*e,2*e+2),f?.[e],s);return new o.A({width:r,height:n,pixelType:p,pixels:i,mask:s})}function v(e){let{srcPixelType:t,inputRanges:r,outputValues:n,allowUnmatched:l,noDataRanges:a,isLastInputRangeInclusive:s,outputPixelType:u}=e;if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;let h=t.includes("16")?65536:256,f=t.includes("s")?-h/2:0,c=o.A.createEmptyBand(u,h),p=new Uint8Array(h);l&&p.fill(255);let[d,g]=(0,i.hP)(u);if(r?.length&&n?.length){let e=r.map(e=>e-1e-6);e[0]=r[0],s&&(e[e.length-1]=r[r.length-1]);for(let t=0;t<e.length;t++){let i=n[t]>g?g:n[t]<d?d:n[t],o=Math.ceil(e[2*t]-f),l=r[2*t+1]===r[2*t]?o:Math.floor(e[2*t+1]-f);for(let e=o;e<=l;e++)c[e]=i,p[e]=255}}if(a?.length)for(let e=0;e<a.length;e++){let t=Math.ceil(a[2*e]-f),r=Math.floor(a[2*e+1]-f);for(let e=t;e<=r;e++)p[e]=0}return{lut:c,offset:f,mask:p}}function M(e,t,r){if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;let n=e.includes("16")?65536:256,i=e.includes("s")?-n/2:0,o=new Uint8Array(n);if(t)for(let e=0;e<t.length;e++){let r=Math.ceil(t[2*e]-i),n=Math.floor(t[2*e+1]-i);for(let e=r;e<=n;e++)o[e]=255}else o.fill(255);if(r)for(let e=0;e<r.length;e++)o[r[e]-i]=0;return{lut:o,offset:i}}function k(e,t){if(!e||0===e.length)return null;let r=e.find(e=>e.pixelBlock);if(null==r?.pixelBlock)return null;let n=(r.extent.xmax-r.extent.xmin)/r.pixelBlock.width,i=(r.extent.ymax-r.extent.ymin)/r.pixelBlock.height,o=.01*Math.min(n,i),l=e.sort((e,t)=>Math.abs(e.extent.ymax-t.extent.ymax)>o?t.extent.ymax-e.extent.ymax:Math.abs(e.extent.xmin-t.extent.xmin)>o?e.extent.xmin-t.extent.xmin:0),a=Math.min.apply(null,l.map(e=>e.extent.xmin)),s=Math.min.apply(null,l.map(e=>e.extent.ymin)),u=Math.max.apply(null,l.map(e=>e.extent.xmax)),h=Math.max.apply(null,l.map(e=>e.extent.ymax)),f={x:Math.round((t.xmin-a)/n),y:Math.round((h-t.ymax)/i)},c={width:Math.round((u-a)/n),height:Math.round((h-s)/i)},p={width:Math.round((t.xmax-t.xmin)/n),height:Math.round((t.ymax-t.ymin)/i)};return Math.round(c.width/r.pixelBlock.width)*Math.round(c.height/r.pixelBlock.height)!==l.length||f.x<0||f.y<0||c.width<p.width||c.height<p.height?null:{extent:t,pixelBlock:S(l.map(e=>e.pixelBlock),c,{clipOffset:f,clipSize:p})}}function T(e,t,r,n,i,o){let{width:l,height:a}=r.block,{x:s,y:u}=r.offset,{width:h,height:f}=r.mosaic,c=function(e,t,r,n,i,o,l,a){return{xmin:i<=r*e?0:i<r*e+e?i-r*e:e,ymin:o<=n*t?0:o<n*t+t?o-n*t:t,xmax:i+l<=r*e?0:i+l<r*e+e?i+l-r*e:e,ymax:o+a<=n*t?0:o+a<n*t+t?o+a-n*t:t}}(l,a,n,i,s,u,h,f),p=0,d=0;if(o){let e=o.hasGCSSShiftTransform?360:o.halfWorldWidth??0,t=l*o.resolutionX,r=o.startX+n*t;r<e&&r+t>e?d=o.rightPadding:r>=e&&(p=o.leftMargin-o.rightPadding,d=0)}if(c.xmax-=d,"number"==typeof t)for(let r=c.ymin;r<c.ymax;r++){let o=(i*a+r-u)*h+(n*l-s)+p;for(let r=c.xmin;r<c.xmax;r++)e[o+r]=t}else for(let r=c.ymin;r<c.ymax;r++){let o=(i*a+r-u)*h+(n*l-s)+p,f=r*l;for(let r=c.xmin;r<c.xmax;r++)e[o+r]=t[f+r]}}function S(e,t,r={}){let{clipOffset:n,clipSize:i,alignmentInfo:l,blockWidths:s}=r;if(s)return function(e,t,r){let n=e.find(e=>null!=e);if(null==n)return null;let i=e.some(e=>null==e||!!e.mask),{width:l,height:s}=t,u=i?new Uint8Array(l*s):null,{blockWidths:h}=r,f=[],c=n.getPlaneCount(),p=o.A.getPixelArrayConstructor(n.pixelType);if(i)for(let t=0,r=0;t<e.length;r+=h[t],t++){let n=e[t];if(!a(n))continue;let i=n.mask;for(let e=0;e<s;e++)for(let o=0;o<h[t];o++)u[e*l+o+r]=null==i?255:i[e*n.width+o]}let d=e.some(e=>e?.bandMasks&&e.bandMasks.length>1),g=d?[]:void 0,m=l*s;for(let t=0;t<c;t++){let r=new p(m),n=d?new Uint8Array(m):void 0;for(let i=0,o=0;i<e.length;o+=h[i],i++){let u=e[i];if(!a(u))continue;let f=u.pixels[t];if(null!=f){for(let e=0;e<s;e++)for(let t=0;t<h[i];t++)r[e*l+t+o]=f[e*u.width+t];if(n){let e=u.bandMasks?.[t]??u.mask;for(let t=0;t<s;t++)for(let r=0;r<h[i];r++)n[t*l+r+o]=e?e[t*u.width+r]:255}}}f.push(r),g&&n&&g.push(n)}let y=new o.A({width:l,height:s,mask:u,bandMasks:g,pixels:f,pixelType:n.pixelType});return y.updateStatistics(),y}(e,t,{blockWidths:s});let u=e.find(e=>a(e));if(null==u)return null;let h,f,c=i?i.width:t.width,p=i?i.height:t.height,d=u.width,g=u.height,m=t.width/d,y=t.height/g,w={offset:n||{x:0,y:0},mosaic:i||t,block:{width:d,height:g}},C=u.pixelType,A=o.A.getPixelArrayConstructor(C),x=u.pixels.length,b=[];for(let t=0;t<x;t++){f=new A(c*p);for(let r=0;r<y;r++)for(let n=0;n<m;n++){let i=e[r*m+n];a(i)&&(h=i.pixels[t],T(f,h,w,n,r,l))}b.push(f)}let v=e.some(e=>null==e||null!=e.mask&&e.mask.length>0),M=e.some(e=>e?.bandMasks&&e.bandMasks.length>1),k=v?new Uint8Array(c*p):void 0,S=M?[]:void 0;if(k){for(let t=0;t<y;t++)for(let r=0;r<m;r++){let n=e[t*m+r];T(k,(null==n?null:n.mask)??(n?255:0),w,r,t,l)}if(S)for(let t=0;t<x;t++){let r=new Uint8Array(c*p);for(let n=0;n<y;n++)for(let i=0;i<m;i++){let o=e[n*m+i];T(r,o?.bandMasks?.[t]??o?.mask??(o?255:0),w,i,n,l)}S.push(r)}}let I=new o.A({width:c,height:p,pixels:b,pixelType:C,bandMasks:S,mask:k});return I.updateStatistics(),I}function I(e,t,r){if(!a(e))return null;let{width:n,height:i}=e,o=t.x,l=t.y,s=r.width+o,u=r.height+l;if(o<0||l<0||s>n||u>i||0===o&&0===l&&s===n&&u===i)return e;e.mask||=new Uint8Array(n*i);let h=e.mask;for(let e=0;e<i;e++){let t=e*n;for(let r=0;r<n;r++)h[t+r]=e<l||e>=u||r<o||r>=s?0:1}return e.updateStatistics(),e}function E(e){if(!a(e))return null;let t=e.clone(),{width:r,height:n,pixels:i}=e,o=i[0],l=t.pixels[0],s=e.mask;for(let e=2;e<n-1;e++){let t=new Map;for(let n=e-2;n<e+2;n++)for(let e=0;e<4;e++){let i=n*r+e;L(t,o[i],s?s[i]:1)}l[e*r]=P(t),l[e*r+1]=l[e*r+2]=l[e*r];let n=3;for(;n<r-1;n++){let i=(e-2)*r+n+1;L(t,o[i],s?s[i]:1),i=(e-1)*r+n+1,L(t,o[i],s?s[i]:1),i=e*r+n+1,L(t,o[i],s?s[i]:1),i=(e+1)*r+n+1,L(t,o[i],s?s[i]:1),i=(e-2)*r+n-3,R(t,o[i],s?s[i]:1),i=(e-1)*r+n-3,R(t,o[i],s?s[i]:1),i=e*r+n-3,R(t,o[i],s?s[i]:1),i=(e+1)*r+n-3,R(t,o[i],s?s[i]:1),l[e*r+n]=P(t)}l[e*r+n+1]=l[e*r+n]}for(let e=0;e<r;e++)l[e]=l[r+e]=l[2*r+e],l[(n-1)*r+e]=l[(n-2)*r+e];return t.updateStatistics(),t}function P(e){if(0===e.size)return 0;let t=0,r=-1,n=0,i=e.keys(),o=i.next();for(;!o.done;)n=e.get(o.value),n>t&&(r=o.value,t=n),o=i.next();return r}function R(e,t,r){if(0===r)return;let n=e.get(t);1===n?e.delete(t):e.set(t,n-1)}function L(e,t,r){0!==r&&e.set(t,e.has(t)?e.get(t)+1:1)}function D(e,t,r){let{x:n,y:i}=t,{width:l,height:s}=r;if(0===n&&0===i&&s===e.height&&l===e.width)return e;let{width:u,height:h}=e,f=Math.max(0,i),c=Math.max(0,n),p=Math.min(n+l,u),d=Math.min(i+s,h);if(p<0||d<0||!a(e))return null;n=Math.max(0,-n),i=Math.max(0,-i);let{pixels:g}=e,m=l*s,y=g.length,w=[];for(let t=0;t<y;t++){let r=g[t],a=o.A.createEmptyBand(e.pixelType,m);for(let e=f;e<d;e++){let t=e*u,o=(e+i-f)*l+n;for(let e=c;e<p;e++)a[o++]=r[t+e]}w.push(a)}let C=new Uint8Array(m),A=e.mask;for(let e=f;e<d;e++){let t=e*u,r=(e+i-f)*l+n;for(let e=c;e<p;e++)C[r++]=A?A[t+e]:1}let x=new o.A({width:r.width,height:r.height,pixelType:e.pixelType,pixels:w,mask:C});return x.updateStatistics(),x}function U(e,t=!0){if(!a(e))return null;let{pixels:r,width:n,height:i,mask:l,pixelType:s}=e,u=[],h=Math.round(n/2),f=Math.round(i/2),c=i-1,p=n-1;for(let e=0;e<r.length;e++){let l=r[e],a=o.A.createEmptyBand(s,h*f),d=0;for(let e=0;e<i;e+=2)for(let r=0;r<n;r+=2){let i=l[e*n+r];if(t){let t=r===p?i:l[e*n+r+1],o=e===c?i:l[e*n+r+n],s=r===p?o:e===c?t:l[e*n+r+n+1];a[d++]=(i+t+o+s)/4}else a[d++]=i}u.push(a)}let d=null;if(null!=l){d=new Uint8Array(h*f);let e=0;for(let r=0;r<i;r+=2)for(let i=0;i<n;i+=2){let o=l[r*n+i];if(t){let t=i===p?o:l[r*n+i+1],a=r===c?o:l[r*n+i+n],s=i===p?a:r===c?t:l[r*n+i+n+1];d[e++]=o*t*a*s?1:0}else d[e++]=o}}return new o.A({width:h,height:f,pixelType:s,pixels:u,mask:d})}function G(e,t,r=0,n=!0){if(!a(e))return null;let{width:i,height:o}=t,{width:l,height:s}=e,u=new Map,h={x:0,y:0},f=1+r,c=e;for(let e=0;e<f;e++){let r=Math.ceil(l/i),a=Math.ceil(s/o);for(let n=0;n<a;n++){h.y=n*o;for(let o=0;o<r;o++){h.x=o*i;let r=D(c,h,t);u.set(`${e}/${n}/${o}`,r)}}e<f-1&&(c=U(c,n)),l=Math.round(l/2),s=Math.round(s/2)}return u}function O(e){let{pixelBlock:t,tileSize:r,level:n,row:i,col:o,useBilinear:l}=e;if(!a(t))return null;let{width:s,height:u}=r,h=2**n,f=h*s,c=h*u,p=D(t,{y:i*c,x:o*f},{width:f,height:c});if(!p)return null;for(let e=n;e>0;e--)p=U(p,l);return p}function B(e,t,r,n,i=0){let o,l,a,s,u,h,f,c,p,{width:d,height:g}=e,{width:m,height:y}=t,w=n.cols,C=n.rows,A=Math.ceil(m/w-.1/w),x=Math.ceil(y/C-.1/C),b=A*w,v=b*x*C,M=new Float32Array(v),k=new Float32Array(v),T=new Uint32Array(v),S=new Uint32Array(v),I=0;for(let e=0;e<x;e++)for(let t=0;t<A;t++){o=12*(e*A+t),l=r[o],a=r[o+1],s=r[o+2],u=r[o+3],h=r[o+4],f=r[o+5];for(let r=0;r<C;r++){I=(e*C+r)*b+t*w,p=(r+.5)/C;for(let e=0;e<r;e++)c=(e+.5)/w,M[I+e]=(l*c+a*p+s)*d+i,k[I+e]=(u*c+h*p+f)*g+i,T[I+e]=Math.floor(M[I+e]),S[I+e]=Math.floor(k[I+e])}o+=6,l=r[o],a=r[o+1],s=r[o+2],u=r[o+3],h=r[o+4],f=r[o+5];for(let r=0;r<C;r++){I=(e*C+r)*b+t*w,p=(r+.5)/C;for(let e=r;e<w;e++)c=(e+.5)/w,M[I+e]=(l*c+a*p+s)*d+i,k[I+e]=(u*c+h*p+f)*g+i,T[I+e]=Math.floor(M[I+e]),S[I+e]=Math.floor(k[I+e])}}return{offsets_x:M,offsets_y:k,offsets_xi:T,offsets_yi:S,gridWidth:b}}function N(e,t){let{coefficients:r,spacing:n}=t,{offsets_x:i,offsets_y:o,gridWidth:l}=B(e,e,r,{rows:n[0],cols:n[1]}),{width:a,height:s}=e,u=new Float32Array(a*s),h=180/Math.PI;for(let e=0;e<s;e++)for(let t=0;t<a;t++){let r=e*l+t,n=0===e?r:r-l,f=e===s-1?r:r+l,c=i[n]-i[f],p=o[f]-o[n];if(isNaN(c)||isNaN(p))u[e*a+t]=90;else{let r=Math.atan2(p,c)*h;r=(360+r)%360,u[e*a+t]=r}}return u}function F(e,t,r,n,i="nearest"){if(!a(e))return null;"majority"===i&&(e=E(e));let{pixels:l,mask:s,bandMasks:u,pixelType:h}=e,f=e.width,c=e.height,p=o.A.getPixelArrayConstructor(h),d=l.length,{width:g,height:m}=t,y=!1;for(let e=0;e<r.length;e+=3)-1===r[e]&&-1===r[e+1]&&-1===r[e+2]&&(y=!0);let w,C,{offsets_x:A,offsets_y:x,offsets_xi:b,offsets_yi:v,gridWidth:M}=B({width:f,height:c},t,r,n,"majority"===i?.5:0),k=(e,t,r,n)=>{let i=e instanceof Float32Array||e instanceof Float64Array?0:.5;for(let o=0;o<m;o++){w=o*M;for(let l=0;l<g;l++){if(A[w]<0||x[w]<0)e[o*g+l]=0;else if(n)e[o*g+l]=t[b[w]+v[w]*f];else{let n=Math.floor(A[w]),a=Math.floor(x[w]),s=Math.ceil(A[w]),u=Math.ceil(x[w]),h=A[w]-n,c=x[w]-a;if(!r||r[n+a*f]&&r[s+a*f]&&r[n+u*f]&&r[s+u*f]){let r=(1-h)*t[n+a*f]+h*t[s+a*f],p=(1-h)*t[n+u*f]+h*t[s+u*f];e[o*g+l]=(1-c)*r+c*p+i}else e[o*g+l]=t[b[w]+v[w]*f]}w++}}},T=[],S=u?.length===d,I=[];for(let e=0;e<d;e++){if(S){let t=new Uint8Array(g*m);k(t,u[e],u[e],!0),I.push(t)}C=new p(g*m),k(C,l[e],S?u[e]:s,"nearest"===i||"majority"===i),T.push(C)}let P=new o.A({width:g,height:m,pixelType:h,pixels:T,bandMasks:S?I:void 0});if(null!=s)P.mask=new Uint8Array(g*m),k(P.mask,s,s,!0);else if(y){P.mask=new Uint8Array(g*m);for(let e=0;e<g*m;e++)P.mask[e]=A[e]<0||x[e]<0?0:1}return P.updateStatistics(),P}function V(e){let{pixelBlock:t,extent:r,fieldNames:n,skipFactor:i,skipSpatialReference:o=!1,pixelIdOffset:a=0}=e,s=[],{width:u,height:h,pixels:f,mask:c}=t,p=e.imageRowSize??u,d=r.width/u,g=r.height/h,m=f.length,y=Math.floor(i/2),{xmin:w,ymax:C}=r,A=o?void 0:r.spatialReference.toJSON();for(let e=y;e<h;e+=i)for(let t=y;t<u;t+=i){let r=e*u+t;if(!c||c[r]){let i={x:w+(t+.5)*d,y:C-(e+.5)*g,spatialReference:A},o={[l]:a+e*p+t};for(let e=0;e<m;e++)o[n[e+1]]=f[e][r];s.push({geometry:i,attributes:o})}}return s}},34251(e,t,r){r.d(t,{FI:()=>d,KL:()=>u,Lu:()=>f,Rn:()=>g,Wu:()=>y,Y2:()=>p});var n=r(66552),i=r(47520),o=r(14140);const l=new Map;l.set("meter-per-second",1),l.set("kilometer-per-hour",.277778),l.set("knots",.514444),l.set("feet-per-second",.3048),l.set("mile-per-hour",.44704);const a=180/Math.PI,s=new n.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(e,t){return l.get(e)/l.get(t)||1}function h(e){return(450-e)%360}function f(e,t="geographic"){let[r,n]=e,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r)*a;return o=(360+o)%360,"geographic"===t&&(o=h(o)),[i,o]}function c(e,t="geographic"){let r=e[1];"geographic"===t&&(r=h(r)),r%=360;let n=e[0];return[n*Math.cos(r/a),n*Math.sin(r/a)]}function p(e,t,r,n="geographic"){if(!(0,i.AB)(e)||null==r)return e;let o="vector-magdir"===t?e.clone():d(e,t),l=o.pixels[1];for(let e=0;e<l.length;e++)l[e]="geographic"===n?(l[e]+r[e]+270)%360:(l[e]+360-r[e])%360;return"vector-magdir"===t?o:d(o,"vector-magdir")}function d(e,t,r="geographic",n=1){if(!(0,i.AB)(e))return e;let{pixels:l,width:a,height:s}=e,u=a*s,h=l[0],p=l[1],d=e.pixelType.startsWith("f")?e.pixelType:"f32",g=o.A.createEmptyBand(d,u),m=o.A.createEmptyBand(d,u),y=0;for(let e=0;e<s;e++)for(let e=0;e<a;e++)"vector-uv"===t?([g[y],m[y]]=f([h[y],p[y]],r),g[y]*=n):([g[y],m[y]]=c([h[y],p[y]],r),g[y]*=n,m[y]*=n),y++;let w=new o.A({pixelType:d,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:[g,m]});return w.updateStatistics(),w}function g(e,t,r=1){if(1===r||!(0,i.AB)(e))return e;let n=e.clone(),{pixels:o,width:l,height:a}=n,s=o[0],u=o[1],h=0;for(let e=0;e<a;e++)for(let e=0;e<l;e++)"vector-uv"===t?(s[h]*=r,u[h]*=r):s[h]*=r,h++;return n.updateStatistics(),n}function m(e,t,r,n=1){let i=Math.sqrt(e*e+t*t)/n,o=(2*Math.PI+Math.atan2(t,e))%(2*Math.PI);return[i,(2*Math.PI+o-r)%(2*Math.PI)]}function y(e,t,r,n=[0,0],i=.5){let{width:l,height:a,mask:s}=e,[u,h]=e.pixels,[p,d]=n,g=Math.round((l-p)/r),m=Math.round((a-d)/r),y=g*m,w=new Float32Array(y),C=new Float32Array(y),A=new Uint8Array(y),x="vector-uv"===t;for(let e=0;e<m;e++)for(let t=0;t<g;t++){let n=0,o=e*g+t,m=Math.max(0,e*r+d),y=Math.max(0,t*r+p),b=Math.min(a,m+r),v=Math.min(l,y+r);for(let e=m;e<b;e++)for(let t=y;t<v;t++){let r=e*l+t;if(!s||s[r]){n++;let e=x?[u[r],h[r]]:[u[r],(360+h[r])%360],[t,i]=x?e:c(e);w[o]+=t,C[o]+=i}}if(n>=(b-m)*(v-y)*(1-i)){A[o]=1;let[e,t]=f([w[o]/n,C[o]/n]);w[o]=e,C[o]=t}else A[o]=0,w[o]=0,C[o]=0}let b=new o.A({width:g,height:m,pixels:[w,C],mask:A});return b.updateStatistics(),b}!function(e=0,t=0,r=Math.PI,n=!0){n&&(r=(2*Math.PI-r)%(2*Math.PI));let i=n?-1:1,o=13*i,l=-7*i,a=-2*i,s=-16*i,u=21.75,[h,f]=m(0,t+o,r,u),[c,p]=m(e-5.5,t+l,r,u),[d,g]=m(e+5.5,t+l,r,u),[y,w]=m(e-1.5,t+a,r,u),[C,A]=m(e+1.5,t+a,r,u),[x,b]=m(e-1.5,t+s,r,u),[v,M]=m(e+1.5,t+s,r,u)}(0,0,0),r.d(t,["MD",0,s])},14140(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),o=r(49186),l=r(25482),a=r(4718),s=r(53966),u=r(91429),h=r(94778),f=r(4151);let c=class extends l.o{static{n=this}static createEmptyBand(e,t){return new(n.getPixelArrayConstructor(e))(t)}static combineBandMasks(e){if(e.length<2)return e[0];let t=e[0].length,r=new Uint8Array(t).fill(255);for(let n=0;n<e.length;n++){let i=e[n];for(let e=0;e<t;e++)i[e]||(r[e]=0)}return r}static getPixelArrayConstructor(e){let t;switch(e){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"f32":case"c64":case"c128":case"unknown":t=Float32Array;break;case"f64":t=Float64Array}return t}constructor(e){super(e),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(e){if(!e)return"f32";let t=e.toLowerCase();return["u1","u2","u4"].includes(t)?t="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(t)||(t="f32"),t}getPlaneCount(){return this.pixels?.length}addData(e){if(!e.pixels||e.pixels.length!==this.width*this.height)throw new o.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||=[],this.statistics||=[],this.pixels.push(e.pixels),this.statistics.push(e.statistics??new f.A)}getAsRGBA(){let e=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(e);break;default:this._fillFrom8Bit(e)}return new Uint8ClampedArray(e)}getAsRGBAFloat(){let e=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(e),e}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(e=>function(e,t){let r,n=1/0,i=-1/0,o=e.length,l=0;if(null!=t)for(r=0;r<o;r++)t[r]&&(l=e[r],n=l<n?l:n,i=l>i?l:i);else for(r=0;r<o;r++)l=e[r],n=l<n?l:n,i=l>i?l:i;return new f.A(n,i)}(e,this.mask));let e=this.mask,t=0;if(null!=e)for(let r=0;r<e.length;r++)e[r]&&t++;else t=this.width*this.height;this.validPixelCount=t}clamp(e){if(!e||"f64"===e||"f32"===e||!this.pixels)return;let t,r,i,[o,l]=(0,h.hP)(e),a=this.pixels,s=this.width*this.height,u=a.length,f=[];for(let h=0;h<u;h++){i=n.createEmptyBand(e,s),t=a[h];for(let e=0;e<s;e++)r=t[e],i[e]=r>l?l:r<o?o:r;f.push(i)}this.pixels=f,this.pixelType=e}extractBands(e){let{pixels:t,statistics:r}=this;if(null==e||0===e.length||!t||0===t.length)return this;let i=t.length,o=e.some(e=>e>=t.length),l=i===e.length&&!e.some((e,t)=>e!==t);if(o||l)return this;let a=this.bandMasks?.length===i?e.map(e=>this.bandMasks[e]):void 0,{mask:s,validPixelCount:u}=this,{width:h,height:f}=this;return a?.length&&(s=n.combineBandMasks(a),u=s.filter(e=>!!e).length),new n({pixelType:this.pixelType,width:h,height:f,mask:s,bandMasks:a,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:e.map(e=>t[e]),statistics:r&&e.map(e=>r[e])})}clone(){let e=new n({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});null!=this.mask&&(e.mask=new Uint8Array(this.mask)),this.noDataValues&&(e.noDataValues=[...this.noDataValues]),this.bandMasks&&(e.bandMasks=this.bandMasks.map(e=>new Uint8Array(e)));let t,r=n.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];let n=!!this.pixels[0].slice;for(t=0;t<this.pixels.length;t++)e.pixels[t]=n?this.pixels[t].slice():new r(this.pixels[t])}if(this.statistics)for(e.statistics=[],t=0;t<this.statistics.length;t++)e.statistics[t]=(0,a.o8)(this.statistics[t]);return e}getTransferableObject(){let{pixels:e,bandMasks:t,mask:r}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;let n=this.toJSON();this.pixels=e,this.bandMasks=t,this.mask=r,n.pixels=e&&[...e],n.bandMasks=t&&[...t],n.mask=r;let i=[];return[...e??[],r,...t??[]].filter(e=>null!=e&&ArrayBuffer.isView(e)).forEach(e=>{e&&!i.includes(e.buffer)&&i.push(e.buffer)}),{pixelBlock:n,transferList:i}}_fillFrom8Bit(e){let t,r,n,i,{mask:o,maskIsAlpha:l,premultiplyAlpha:a,pixels:u}=this;if(!e||!u?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");t=r=n=u[0],u.length>=3?(r=u[1],n=u[2]):2===u.length&&(r=u[1]);let h=new Uint32Array(e),f=this.width*this.height;if(t.length!==f)s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");else if(null!=o&&o.length===f)if(l)for(i=0;i<f;i++){let e=o[i];if(e){let o=e/255;h[i]=a?e<<24|n[i]*o<<16|r[i]*o<<8|t[i]*o:e<<24|n[i]<<16|r[i]<<8|t[i]}}else for(i=0;i<f;i++)o[i]&&(h[i]=255<<24|n[i]<<16|r[i]<<8|t[i]);else for(i=0;i<f;i++)h[i]=255<<24|n[i]<<16|r[i]<<8|t[i]}_fillFromNon8Bit(e){let{pixels:t,mask:r,statistics:n}=this;if(!e||!t?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i=this.pixelType,o=1,l=0,a=1;if(n&&n.length>0){for(let e of n)if(null!=e.minValue&&(l=Math.min(l,e.minValue)),null!=e.maxValue&&null!=e.minValue){let t=e.maxValue-e.minValue;a=Math.max(a,t)}o=255/a}else{let e=255;"s8"===i?(l=-128,e=127):"u16"===i?e=65535:"s16"===i?(l=-32768,e=32767):"u32"===i?e=4294967295:"s32"===i?(l=-2147483648,e=2147483647):"f32"===i?(l=-34e38,e=34e38):"f64"===i&&(l=-Number.MAX_VALUE,e=Number.MAX_VALUE),o=255/(e-l)}let u,h,f,c,p,d=new Uint32Array(e),g=this.width*this.height;if(u=h=f=t[0],u.length!==g)return s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(t.length>=2)if(h=t[1],t.length>=3&&(f=t[2]),null!=r&&r.length===g)for(c=0;c<g;c++)r[c]&&(d[c]=255<<24|(f[c]-l)*o<<16|(h[c]-l)*o<<8|(u[c]-l)*o);else for(c=0;c<g;c++)d[c]=255<<24|(f[c]-l)*o<<16|(h[c]-l)*o<<8|(u[c]-l)*o;else if(null!=r&&r.length===g)for(c=0;c<g;c++)p=(u[c]-l)*o,r[c]&&(d[c]=255<<24|p<<16|p<<8|p);else for(c=0;c<g;c++)p=(u[c]-l)*o,d[c]=255<<24|p<<16|p<<8|p}_fillFrom32Bit(e){let t,r,n,i,{pixels:o,mask:l}=this;if(!e||!o?.length)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");t=r=n=o[0],o.length>=3?(r=o[1],n=o[2]):2===o.length&&(r=o[1]);let a=this.width*this.height;if(t.length!==a)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=l&&l.length===a)for(i=0;i<a;i++)e[u++]=t[i],e[u++]=r[i],e[u++]=n[i],e[u++]=1&l[i];else for(i=0;i<a;i++)e[u++]=t[i],e[u++]=r[i],e[u++]=n[i],e[u++]=1}};(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"width",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"height",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"pixelType",void 0),(0,i.Cg)([(0,u.wg)("pixelType")],c.prototype,"castPixelType",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"validPixelCount",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"mask",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"maskIsAlpha",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"pixels",void 0),(0,i.Cg)([(0,u.MZ)()],c.prototype,"premultiplyAlpha",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"statistics",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"depthCount",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"noDataValues",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"bandMasks",void 0),c=n=(0,i.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],c)},87186(e,t,r){r.d(t,{A:()=>A});var n,i=r(32198),o=r(25482),l=r(4718),a=r(91429),s=r(5443),u=r(16930);function h(e){return e=Number(e),isNaN(e)?void 0:e}let f=class extends o.o{static{n=this}constructor(e){super(e),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 n({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,i.Cg)([(0,a.MZ)({json:{name:"BandName",write:!0}})],f.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:{source:["WavelengthMin","Wavelength","WAVELENGTH"],reader:(e,t)=>h(t.WavelengthMin??t.Wavelength??t.WAVELENGTH)},write:{target:"WavelengthMin"}}})],f.prototype,"minWavelength",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:h},write:!0}})],f.prototype,"maxWavelength",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:h},write:!0}})],f.prototype,"radianceBias",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:h},write:!0}})],f.prototype,"radianceGain",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:h},write:!0}})],f.prototype,"reflectanceBias",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:h},write:!0}})],f.prototype,"reflectanceGain",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:h},write:!0}})],f.prototype,"solarIrradiance",void 0),f=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterBandInfo")],f);var c,p=r(13868),d=r(36005),g=r(43937);function m(e){return e=Number(e),isNaN(e)?void 0:e}let y=class extends o.o{static{c=this}constructor(e){super(e),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 c({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,i.Cg)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,i.Cg)([(0,d.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,i.Cg)([(0,g.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,i.Cg)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:m},write:!0}})],y.prototype,"cloudCover",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:m},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:m},write:!0}})],y.prototype,"sensorElevation",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:m},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:m},write:!0}})],y.prototype,"sunElevation",void 0),y=c=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=r(20223);let A=class extends o.o{static{w=this}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 f({name:"band_"+r}));return e}let r=e.map(e=>f.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 y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,l.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,l.o8)(this.colormap),extent:(0,l.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,l.o8)(this.histograms),keyProperties:(0,l.o8)(this.keyProperties),multidimensionalInfo:(0,l.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,l.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,l.o8)(this.spatialReference),statistics:(0,l.o8)(this.statistics),storageInfo:(0,l.o8)(this.storageInfo),transform:(0,l.o8)(this.transform)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"attributeTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"bandCount",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"bandInfos",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"colormap",void 0),(0,i.Cg)([(0,a.MZ)({type:String,readOnly:!0})],A.prototype,"dataType",null),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"nativeExtent",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"nativePixelSize",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"format",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"height",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"hasMultidimensionalTranspose",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"histograms",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"keyProperties",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"multidimensionalInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"noDataValue",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"pixelSize",void 0),(0,i.Cg)([(0,a.MZ)({type:p.e8.apiValues,json:{write:!0}})],A.prototype,"pixelType",void 0),(0,i.Cg)([(0,a.MZ)()],A.prototype,"isPseudoSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"sensorInfo",null),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],A.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"statistics",void 0),(0,i.Cg)([(0,a.MZ)({type:C.A,json:{write:!0}})],A.prototype,"storageInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"transform",void 0),A=w=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterInfo")],A)},20223(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(25482),l=r(4718),a=r(91429),s=r(86738);let u=class extends o.o{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.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{n=this}clone(){return new n({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,l.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,l.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,l.o8)(this.tileInfo),transposeInfo:(0,l.o8)(this.transposeInfo),blockBoundary:(0,l.o8)(this.blockBoundary)})}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockWidth",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockHeight",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"compression",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],u.prototype,"origin",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"firstPyramidLevel",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"maximumPyramidLevel",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"pyramidResolutions",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidScalingFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockWidth",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockHeight",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"isBsqTile",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isVirtualTileInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tileInfo",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"transposeInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"blockBoundary",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterStorageInfo")],u)},4151(e,t,r){r.d(t,{A:()=>n});class n{constructor(e=null,t=null,r=null){this.minValue=e,this.maxValue=t,this.noDataValue=r}}},13868(e,t,r){var n=r(66552);const i=(0,n.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),o=(0,n.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),l=(0,n.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"});r.d(t,["SZ",0,i,"e8",0,l,"hm",0,o])},67369(e,t,r){r.d(t,{M5:()=>c,R8:()=>m,S2:()=>y,hf:()=>A,hs:()=>f,iv:()=>g,vL:()=>x});var n=r(85334),i=r(66552),o=r(12195);const l=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],a=new i.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-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function s(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 u(e){let t=e.clone();return t.fromColor=e.toColor,t.toColor=e.fromColor,t}function h(e,t){let r=t??l;if("algorithmic"===e.type){let t=e.fromColor.toRgb(),n=e.toColor.toRgb();return r.find(e=>s(t,e.fromColor)&&s(n,e.toColor))?.id}if(e.weights?.length)return;let n=e.colorRamps?.map(e=>({fromColor:e.fromColor.toRgb(),toColor:e.toColor.toRgb()}));return r.find(e=>{let t=e.colorRamps;return!(!n||n.length!==t?.length)&&t.every((e,t)=>s(n[t].fromColor,e.fromColor)&&s(n[t].toColor,e.toColor))})?.id}function f(e,t=!1){let r="string"==typeof e?e:function(e,t,r=!1){if(!e)return;let n=!1,i=h(e,t);return null==i&&!r&&(n=!0,e=function(e){if("multipart"===e.type){let t=e.clone();return t.colorRamps?.length&&(t.colorRamps=t.colorRamps.reverse().map(e=>u(e))),t}return u(e)}(e),i=h(e,t)),i?{id:i,inverted:n}:void 0}(e,void 0,t)?.id;return r?a.toJSON(r):null}function c(e,t="esriCIELabAlgorithm"){let r=l.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 p(e){e??={};let t=e.numColors||256,r=e.distanceOffset||0,n=null==e.isCustomInterval?null!==e.distanceInterval&&e.distanceInterval!==1/(t-1):e.isCustomInterval,i=e.distanceInterval||1/(t-1);return{...e,numColors:t,distanceOffset:r,interpolateAlpha:!!e.interpolateAlpha,distanceInterval:i,isCustomInterval:n,weights:e.weights}}function d(e,t){let{fromColor:r,toColor:i}=e,o=3===r.length?[...r,255]:[...r],l=3===i.length?[...i,255]:[...i],a=e.algorithm||"esriCIELabAlgorithm",s=p(t),{numColors:u,distanceOffset:h,isCustomInterval:f,interpolateAlpha:c}=s;if(1===u&&0===h)return[o];if(2===u&&0===h&&!f)return[o,l];let d={r:o[0],g:o[1],b:o[2]},g={r:l[0],g:l[1],b:l[2]},m="esriCIELabAlgorithm"===a?function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,{l:a,a:s,b:u}=e,h=(t.l-a)*o,f=(t.a-s)*o,c=(t.b-u)*o,p=[];if(i){let e=i/o;a+=e*h,s+=e*f,u+=e*c}for(let e=0;e<n-1;e++)p.push({l:a,a:s,b:u}),a+=h,s+=f,u+=c;return p.push(l?{l:a,a:s,b:u}:t),p}((0,n.ZD)(d),(0,n.ZD)(g),s):"esriHSVAlgorithm"===a?function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,a=0===e.s,s=0===t.s,u=e.h,h=t.h;a&&!s?u=h:s&&!a&&(t={...t,h:u},h=u);let f=Math.abs(h-u),c=0;f<180?c=(h-u)*o:(f=360-f,c=u>h?f*o:-f*o);let p=(t.s-e.s)*o,d=(t.v-e.v)*o,{s:g,v:m}=e,y=u;if(i){let e=i/o;y=(y+e*c+360)%360,g+=e*p,m+=e*d}let w=[];for(let e=0;e<n-1;e++)w.push({h:y,s:g,v:m}),y=(y+c+360)%360,g+=p,m+=d;return w.push(l?{h:y,s:g,v:m}:t),w}((0,n.N2)(d),(0,n.N2)(g),s):function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,a=e.h,s=t.h,u=2*Math.PI,h=0;if(a<=s){let e=s-a,t=s-a-u;h=Math.abs(t)<Math.abs(e)?t:e}else{let e=s+u-a,t=s-a;h=Math.abs(t)<Math.abs(e)?t:e}let f=h*o,c=(t.l-e.l)*o,p=(t.c-e.c)*o,{l:d,c:g,h:m}=e;if(i){let e=i/o;d+=e*c,g+=e*p,m=(m+e*f+u)%u}let y=[];for(let e=0;e<n-1;e++)y.push({l:d,c:g,h:m}),d+=c,g+=p,m=(m+f+u)%u;return y.push(l?{l:d,c:g,h:m}:t),y}((0,n.RH)(d),(0,n.RH)(g),s),y=[],w=o[3]??255,C=((l[3]??255)-w)/(u-1);for(let e=0;e<u;e++){let{r:t,g:r,b:i}=(0,n.$)(m[e]),o=c?Math.round(w+C*e):255;y.push([t,r,i,o])}return y}function g(e,t){let r=(0,o.W)(e)?e.toJSON():e;return"multipart"===r.type?function(e,t){let{numColors:r,interpolateAlpha:n}=p(t),i=function(e,t){let{colorRamps:r}=e;if(t??=r.map(({start:e,stop:t})=>null==e||null==t?-1:t-e),t.length!==r.length||t.some(e=>e<0))return Array.from({length:r.length},()=>1/r.length);let n=t.reduce((e,t)=>e+t);return t.map(e=>e/n)}(e,t?.weights),{colorRamps:o}=e,l=[],a=1/(r-1),s=0,u=!1;for(let e=0;e<o.length;e++){let t=l.length,h=u?0:t*a-s;s+=i[e];let f=e===o.length-1?r-1-t:(i[e]-h)/a;if(u=Math.ceil(f)===f,f=Math.ceil(f),0===f)continue;let c=d(o[e],{numColors:f,interpolateAlpha:n,distanceOffset:h/i[e],distanceInterval:a/i[e]});l.push(...c)}let h=[...o[o.length-1].toColor];return 3===h.length&&h.push(255),l.push(h),l}(r,t):d(r,t)}function m(e,t){let r=g(e,t),n=t?.interpolateAlpha;return r.forEach((e,t)=>{e.unshift(t),n||e.pop()}),r}function y(e){let t=[];for(let r=0;r<e.length;r+=4){let i=(0,n.N2)({r:e[r],g:e[r+1],b:e[r+2]});t.push([i.h/60,i.s/100,255*i.v/100])}return t}function w(e){let t=(0,n.N2)(e);return{type:"HsvColor",Hue:t.h,Saturation:t.s,Value:t.v,AlphaValue:255}}function C(e){return{Algorithm:e.toJSON()?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:w(e.fromColor),ToColor:w(e.toColor)}}function A(e){let t=f(e);if(!t)return null;if("algorithmic"===e.type)return{...C(e),Name:t};if(e.colorRamps){let r=e.colorRamps.map(C);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:t}}return null}function x(e){let t=[...e].reverse().map(e=>{let t=e.toString(16);return t.length<2?"0"+t:t});return 0|Number.parseInt(t.join(""),16)}r.d(t,["L7",0,["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],"kH",0,a,"vj",0,l])},88178(e,t,r){function n(e,t){let{attributeTable:r,bandCount:n}=e;return!(null!=r||(i=e,!["u8","s8"].includes(i.pixelType)||null==i.statistics?.[0]?.min||null==i.statistics[0]?.max||1!==i.bandCount))||!(null==r||n>1||t&&null==r.fields.find(e=>e.name.toLowerCase()===t.toLowerCase()));var i}function i(e){let{bandCount:t,dataType:r,pixelType:n}=e;return"elevation"===r||"generic"===r&&1===t&&("s16"===n||"s32"===n||"f32"===n||"f64"===n)}function o(e,t=!1){let{bandCount:r,colormap:n,pixelType:i}=e;return 1===r&&(!!n?.length||!t&&"u8"===i)}function l(e,t=!1){let{attributeTable:r,bandCount:n}=e;return 1===n&&(!t||null!=r||null!=e.histograms)}function a(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:()=>o,QJ:()=>s,WN:()=>u,hu:()=>n,iL:()=>i,rd:()=>a,xX:()=>l})},70274(e,t,r){const n=new(r(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"});r.d(t,["u",0,n,"x",0,{0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}])},491(e,t,r){r.d(t,{CW:()=>c});var n=r(44208),i=r(53966),o=r(17676);function l(e){let t=new Float32Array(a(e));return a(e,t),t}function a(e,t){let r=0;t&&(t[r]=e.length),r++;for(let n of e){t&&(t[r]=n.stage),r++,t&&(t[r]=n.vertices.length),r++;for(let e of n.vertices)t&&(t[r]=e.x,t[r+1]=e.y,t[r+2]=e.time,t[r+3]=e.speed),r+=4}return r}const s=[1,2],u=[1,2,3,4];var h=r(97441);const f=()=>i.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function c(e,t,r,i,a){let c=performance.now();(0,h.dF)(r);let p=function(e,t){let{perturb:r}=t;if(r){let{rotation:t}=r;null!=t&&(e=function(e,t){let r=Math.cos(t),n=Math.sin(t);return(t,i)=>{let[o,l]=e(t,i);return[r*o+n*l,-n*o+r*l]}}(e,t));let{scale:n}=r;null!=n&&(e=function(e,t){return(r,n)=>{let[i,o]=e(r,n);return[i*t,o*t]}}(e,n))}return e}((0,h.DE)(t,r),t),d=performance.now(),g=(0,h.S1)(t,p,r.width,r.height,i),m=performance.now(),y=function(e){let t=e.reduce((e,t)=>e+t.vertices.length,0),r=new Float32Array(4*t),n=Array(e.length),i=0,o=0;for(let{vertices:t}of e){let e=i;for(let e of t)r[4*i]=e.x,r[4*i+1]=e.y,r[4*i+2]=e.time,r[4*i+3]=e.speed,i++;n[o++]={startVertex:e,numberOfVertices:t.length,firstTime:t[0].time,lastTime:t[t.length-1].time}}return{lineVertices:r,lineDescriptors:n}}(g),w=performance.now(),C="Streamlines"===e?function(e,t,r){let{lineVertices:n,lineDescriptors:i}=e,o=0,a=0;for(let e of i)o+=2*e.numberOfVertices,a+=6*(e.numberOfVertices-1);let s=new Float32Array(9*o),u=new Uint32Array(a),h=0,f=0;function c(){u[f++]=h-2,u[f++]=h,u[f++]=h-1,u[f++]=h,u[f++]=h+1,u[f++]=h-1}function p(e,t,r,n,i,o,l,a){let u=9*h,f=0;s[u+f++]=e,s[u+f++]=t,s[u+f++]=1,s[u+f++]=r,s[u+f++]=o,s[u+f++]=l,s[u+f++]=n/2,s[u+f++]=i/2,s[u+f++]=a,h++,s[u+f++]=e,s[u+f++]=t,s[u+f++]=-1,s[u+f++]=r,s[u+f++]=o,s[u+f++]=l,s[u+f++]=-n/2,s[u+f++]=-i/2,s[u+f++]=a,h++}for(let e of i){let{firstTime:t,lastTime:r}=e,i=null,o=null,l=null,a=null,s=null,u=null;for(let h=0;h<e.numberOfVertices;h++){let f=n[4*(e.startVertex+h)],d=n[4*(e.startVertex+h)+1],g=n[4*(e.startVertex+h)+2],m=n[4*(e.startVertex+h)+3],y=null,w=null,C=null,A=null;if(h>0){y=f-i,w=d-o;let e=Math.sqrt(y*y+w*w);if(y/=e,w/=e,h>1){let e=y+s,t=w+u,r=Math.sqrt(e*e+t*t);e/=r,t/=r;let n=Math.min(1/(e*y+t*w),10);e*=n,t*=n,C=-t,A=e}else C=-w,A=y;null!==C&&null!==A&&(p(i,o,l,C,A,t,r,m),c())}i=f,o=d,l=g,s=y,u=w,a=m}p(i,o,l,-u,s,t,r,a)}return{vertexData:s,indexData:u,pathData:l(r)}}(y,0,g):function(e,t){let{lineVertices:r,lineDescriptors:n}=e,i=0,o=0;for(let e of n){let t=e.numberOfVertices-1;i+=4*t*2,o+=6*t*2}let a,h,f,c,p,d,g,m,y,w,C,A,x,b,v=new Float32Array(16*i),M=new Uint32Array(o),k=0,T=0;function S(e,t,r,n,i,o,l,a,h,f,c,p,d,g){let m=16*k,y=0;for(let w of s)for(let s of u)v[m+y++]=e,v[m+y++]=t,v[m+y++]=r,v[m+y++]=n,v[m+y++]=l,v[m+y++]=a,v[m+y++]=h,v[m+y++]=f,v[m+y++]=w,v[m+y++]=s,v[m+y++]=d,v[m+y++]=g,v[m+y++]=i/2,v[m+y++]=o/2,v[m+y++]=c/2,v[m+y++]=p/2,k++}function I(e,t){let r=y+C,n=w+A,i=Math.sqrt(r*r+n*n);r/=i,n/=i;let o=y*r+w*n;r/=o,n/=o;let l=C+x,s=A+b,u=Math.sqrt(l*l+s*s);l/=u,s/=u;let v=C*l+A*s;l/=v,s/=v,S(a,h,f,c,-n,r,p,d,g,m,-s,l,e,t),M[T++]=k-8,M[T++]=k-7,M[T++]=k-6,M[T++]=k-7,M[T++]=k-5,M[T++]=k-6,M[T++]=k-4,M[T++]=k-3,M[T++]=k-2,M[T++]=k-3,M[T++]=k-1,M[T++]=k-2}function E(e,t,r,n,i,o){if(y=C,w=A,C=x,A=b,null==y&&null==w&&(y=C,w=A),null!=p&&null!=d){x=e-p,b=t-d;let r=Math.sqrt(x*x+b*b);x/=r,b/=r}null!=y&&null!=w&&I(i,o),a=p,h=d,f=g,c=m,p=e,d=t,g=r,m=n}function P(e,t){y=C,w=A,C=x,A=b,null==y&&null==w&&(y=C,w=A),null!=y&&null!=w&&I(e,t)}for(let e of n){a=null,h=null,f=null,c=null,p=null,d=null,g=null,m=null,y=null,w=null,C=null,A=null,x=null,b=null;let{firstTime:t,lastTime:n}=e;for(let i=0;i<e.numberOfVertices;i++)E(r[4*(e.startVertex+i)],r[4*(e.startVertex+i)+1],r[4*(e.startVertex+i)+2],r[4*(e.startVertex+i)+3],t,n);P(t,n)}return{vertexData:v,indexData:M,pathData:l(t)}}(y,g),A=performance.now();return(0,n.A)("esri-2d-profiler")&&(f().info("I.1","_createFlowFieldFromData (ms)",Math.round(d-c)),f().info("I.2","_getStreamlines (ms)",Math.round(m-d)),f().info("I.3","createAnimatedLinesData (ms)",Math.round(w-m)),f().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(A-w)),f().info("I.5","createFlowMesh (ms)",Math.round(A-c)),f().info("I.6","Mesh size (bytes)",C.vertexData.buffer.byteLength+C.indexData.buffer.byteLength)),await Promise.resolve(),(0,o.Te)(a),C}},97441(e,t,r){r.d(t,{DE:()=>s,S1:()=>l,dF:()=>a}),r(44208),r(53966);var n=r(34727),i=r(87811),o=r(78659);function l(e,t,r,n,o){if(e.density<=0)return[];let{positions:l}=o,a=[],s=new i.A,f=1/Math.max(e.lineCollisionWidth,1),c=Math.round(r*f),p=Math.round(n*f),d=new Int32Array(c*p);for(let e=0;e<d.length;e++)d[e]=-1;let g={raster:d,width:c,height:p,resolutionFactor:f},m={},y=e.lineSpacing/Math.sqrt(e.density),w=Math.floor(n/y),C=Math.floor(r/y);for(let e=0;e<w;e++){let t=e*y;for(let r=0;r<C;r++){let n=r*y;m[`${r}-${e}`]={x:n,y:t,positions:[]}}}for(let{x:e,y:t}of l){let r=m[`${Math.floor(e/y)}-${Math.floor(t/y)}`];r&&r.positions.push([e,t])}let A=[];for(let e in m){let t=m[e];if(0===t.positions.length)A.push({x:t.x+y/2,y:t.y+y/2,sort:.66+.33*s.getFloat(),stage:0});else{let[e]=t.positions.splice(0,1);A.push({x:e[0],y:e[1],sort:.33*s.getFloat(),stage:1});for(let[e,r]of t.positions)A.push({x:e,y:r,sort:.33+.33*s.getFloat(),stage:2})}}A.sort((e,t)=>e.sort-t.sort);for(let{x:i,y:o,stage:l}of A){if(a.length>=e.maxNumberOfStreamlines)break;let f=e.onlyForwardTracing?u(1,e,t,i,o,[r,n],a.length,g):h(e,t,i,o,[r,n],a.length,s,g);f.length<2||a.push({stage:l,vertices:f})}return a}function a(e){for(let t=0;t<e.mask.length;t++)0===e.mask[t]&&(e.data[2*t]=0,e.data[2*t+1]=0)}function s(e,t){let r=function(e,t,r,n){if(0===n)return e;let i=Math.round(3*n),o=Array(2*i+1),l=0;for(let e=-i;e<=i;e++){let t=Math.exp(-e*e/(n*n));o[e+i]=t,l+=t}for(let e=-i;e<=i;e++)o[e+i]/=l;let a=new Float32Array(e.length);for(let n=0;n<r;n++)for(let r=0;r<t;r++){let l=0,s=0;for(let a=-i;a<=i;a++){if(r+a<0||r+a>=t)continue;let u=o[a+i];l+=u*e[2*(n*t+(r+a))],s+=u*e[2*(n*t+(r+a))+1]}a[2*(n*t+r)]=l,a[2*(n*t+r)+1]=s}let s=new Float32Array(e.length);for(let e=0;e<t;e++)for(let n=0;n<r;n++){let l=0,u=0;for(let s=-i;s<=i;s++){if(n+s<0||n+s>=r)continue;let h=o[s+i];l+=h*a[2*((n+s)*t+e)],u+=h*a[2*((n+s)*t+e)+1]}s[2*(n*t+e)]=l,s[2*(n*t+e)+1]=u}return s}(t.data,t.width,t.height,e.smoothing);return e.interpolate?(e,n)=>{let i=Math.floor(e),o=Math.floor(n);if(i<0||i>=t.width||o<0||o>=t.height)return[0,0];let l=e-i,a=n-o,s=i,u=o,h=i<t.width-1?i+1:i,f=o<t.height-1?o+1:o,c=r[2*(u*t.width+s)],p=r[2*(u*t.width+h)],d=r[2*(f*t.width+s)],g=r[2*(f*t.width+h)],m=r[2*(u*t.width+s)+1],y=r[2*(u*t.width+h)+1];return[(c*(1-a)+d*a)*(1-l)+(p*(1-a)+g*a)*l,(m*(1-a)+r[2*(f*t.width+s)+1]*a)*(1-l)+(y*(1-a)+r[2*(f*t.width+h)+1]*a)*l]}:(e,n)=>{let i=Math.round(e),o=Math.round(n);return i<0||i>=t.width||o<0||o>=t.height?[0,0]:[r[2*(o*t.width+i)],r[2*(o*t.width+i)+1]]}}function u(e,t,r,i,l,a,s,u){let h=[],{raster:f,width:c,height:p,resolutionFactor:d}=u,g=i,m=l,y=(0,o.Kp)(0),[w,C]=r(g,m);w*=t.velocityScale,C*=t.velocityScale;let A,x,b=Math.sqrt(w*w+C*C);h.push({x:g,y:m,time:y,speed:b});for(let i=0;i<t.verticesPerLine;i++){let[i,l]=r(g,m);i*=t.velocityScale,l*=t.velocityScale;let u=Math.sqrt(i*i+l*l);if(u<t.minSpeedThreshold)return h;let w=e*i/u,C=e*l/u;g+=w*t.segmentLength,m+=C*t.segmentLength,t.wrapAround&&(g=(0,n.OS)(g,a[0]));let b=e*t.segmentLength/u;if(y=(0,o.Kp)(y+b),Math.acos(w*A+C*x)>t.maxTurnAngle)return h;if(t.collisions){let e=Math.round(g*d),r=Math.round(m*d);if(t.wrapAround&&(e=(0,n.OS)(e,c)),e<0||e>c-1||r<0||r>p-1)return h;let i=f[r*c+e];if(-1!==i&&i!==s)return h;f[r*c+e]=s}h.push({x:g,y:m,time:y,speed:u}),A=w,x=C}return h}function h(e,t,r,n,i,o,l,a){let s=Math.round((.2+.6*l.getFloat())*e.verticesPerLine),h=e.verticesPerLine-s,f=u(-1,{...e,verticesPerLine:h},t,r,n,i,o,a),c=u(1,{...e,verticesPerLine:s},t,r,n,i,o,a),p=f.reverse();return p.splice(-1,1),p.concat(c)}r(5443),r(21325)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>0,defaultEmissionBoostFactor:()=>2.5,defaultFactorDaylightDirectional:()=>.8,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(54154),l(9169),l(12696),l(72233),l(18e3),l(98619),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(47630),l(14113);var s=l(57323)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4809,7992],{32198(e,t,r){function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,r){r.r(t),r.d(t,{invokeGeometryOp:()=>i});var n=r(83299);function s(e,t){let r;return{loaded:!1,load:()=>r??=t().then(t=>{o[e]={loaded:!0,execute:t}})}}const o={disjoint:s("disjoint",async()=>{let{OperatorDisjoint:e}=await r.e(7029).then(()=>r(97029)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),intersects:s("intersects",async()=>{let{OperatorIntersects:e}=await r.e(31).then(()=>r(70031)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),touches:s("touches",async()=>{let{OperatorTouches:e}=await r.e(6810).then(()=>r(46810)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),crosses:s("crosses",async()=>{let{OperatorCrosses:e}=await r.e(9821).then(()=>r(29821)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),within:s("within",async()=>{let{OperatorWithin:e}=await r.e(2802).then(()=>r(22802)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),contains:s("contains",async()=>{let{OperatorContains:e}=await r.e(892).then(()=>r(70892)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),overlaps:s("overlaps",async()=>{let{OperatorOverlaps:e}=await r.e(5181).then(()=>r(85181)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),equals:s("equals",async()=>{let{OperatorEquals:e}=await r.e(468).then(()=>r(70468)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),relate:s("relate",async()=>{let{OperatorRelate:e}=await r.e(9672).then(()=>r(39672)),t=new e;return(e,r,s,o)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),o,null)}),intersection:s("intersection",async()=>{let{execute:e}=await r.e(1327).then(()=>r(33708));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),union:s("union",async()=>{let{executeMany:e}=await r.e(8298).then(()=>r(28298));return(t,r)=>(0,n.toGeometry)(e(t.map(e=>(0,n.fromGeometryToGXGeometry)(e)),(0,n.fromSpatialReference)(r)),null)}),difference:s("difference",async()=>{let{execute:e}=await r.e(9074).then(()=>r(49074));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),symmetricDifference:s("symmetricDifference",async()=>{let{execute:e}=await r.e(994).then(()=>r(68613));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),clip:s("clip",async()=>{let{execute:e}=await r.e(6027).then(()=>r(96027));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r).asEnvelope2D(),(0,n.fromSpatialReference)(s)),null)}),cut:s("cut",async()=>{let{execute:e}=await r.e(756).then(()=>r(90756));return(t,r,s)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),area:s("area",async()=>{let{convertFromSpatialReferenceUnit:e,toAreaUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateArea2D();return e(s,t(o),i)}}),geodeticArea:s("geodeticArea",async()=>{let{load:e,execute:t}=await r.e(6742).then(()=>r(86742)),{convert:s,squareMeters:o,toAreaUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),length:s("length",async()=>{let{convertFromSpatialReferenceUnit:e,toLengthUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateLength2D();return e(s,t(o),i)}}),geodeticLength:s("geodeticLength",async()=>{let{load:e,execute:t}=await r.e(5223).then(()=>r(35223)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),distance:s("distance",async()=>{let{OperatorDistance:e}=await r.e(2994).then(()=>r(22994)),{convertFromSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547)),o=new e;return(e,r,i,a)=>{let l=o.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),null);return t(i,s(a),l)}}),geodeticDistance:s("geodeticDistance",async()=>{let{load:e,execute:t}=await r.e(9716).then(()=>r(29716)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>{let m=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(a),u);return s(o,i(l),m)}}),densify:s("densify",async()=>{let{execute:e}=await r.e(1735).then(()=>r(91735)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,0,0),null))}),geodeticDensify:s("geodeticDensify",async()=>{let{load:e,execute:t}=await r.e(7085).then(()=>r(77085)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),a,(0,n.fromSpatialReference)(r),u),null))}),generalize:s("generalize",async()=>{let{execute:e}=await r.e(787).then(()=>r(70787)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,l),null))}),buffer:s("buffer",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(5227)]).then(()=>r(15227)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i),null))}),geodesicBuffer:s("geodesicBuffer",async()=>{let{load:e,execute:t}=await r.e(4988).then(()=>r(24988)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),u,a,NaN),null))}),offset:s("offset",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(6070)]).then(()=>r(66070)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l,u,m)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i,l,u,m),null))}),rotate:s("rotate",async()=>{let{executeRotate:e}=await r.e(4791).then(()=>r(64791));return(t,r,s,o)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),r,s,o),null)}),centroid:s("centroid",async()=>{let{OperatorCentroid2D:e}=await r.e(9447).then(()=>r(9447)),t=new e;return e=>{let r=t.execute((0,n.fromGeometryToGXGeometry)(e),null);return r.isNAN()?null:{x:r.x,y:r.y}}}),labelPoint:s("labelPoint",async()=>{let{execute:e}=await r.e(4945).then(()=>r(54945));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),multiPartToSinglePart:s("multiPartToSinglePart",async()=>{let{executeMany:e}=await r.e(3193).then(()=>r(33193));return(t,r)=>e([(0,n.fromGeometryToGXGeometry)(t)],(0,n.fromSpatialReference)(r)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),isSelfIntersecting:s("isSelfIntersecting",async()=>{let{executeIsSelfIntersecting:e}=await r.e(3755).then(()=>r(83755));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r))}),isSimple:s("isSimple",async()=>{let{isSimpleAsFeature:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1)}),simplify:s("simplify",async()=>{let{execute:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1),null)}),convexHull:s("convexHull",async()=>{let{execute:e}=await r.e(1577).then(()=>r(91577));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),getNearestCoordinate:s("getNearestCoordinate",async()=>{let{executeNearestCoordinate:e}=await r.e(6556).then(()=>r(6556));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}}),getNearestVertex:s("getNearestVertex",async()=>{let{executeNearestVertex:e}=await r.e(4064).then(()=>r(64064));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}})};function i(e,t){let r=o[e];return r.loaded?r.execute.apply(void 0,t):r.load().then(()=>i(e,t))}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>s,ct:()=>u});let n=1e-6;function s(){return n}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function l(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),r.d(t,["Ov",0,o])},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=m;for(let n=0;n<t;n++)r+=i(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+h:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return m+e.length*t}const u=32,m=16,h=145},87992(e,t,r){r.d(t,{JR:()=>T,ME:()=>w,MY:()=>R,NO:()=>v,Nh:()=>M,V2:()=>P,_s:()=>A,e6:()=>F,gh:()=>S,jm:()=>C,tr:()=>I,uX:()=>g});var n=r(32198),s=r(16930),o=r(19419),i=r(60408),a=r(21325),l=r(513),u=r(50954),m=r(79567),h=r(52006),f=r(49663),c=r(46068),y=r(92722);class g{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:m,segmentParams:h,segmentCountArc:f,segmentCountBezier:c}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=m,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=c}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=P(e,t,r,n,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:m}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=O(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new G(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class G{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],o=t[r++];return{b:[this.end,[e,n],[s,o]]}}let n=t[r++],s=t[r++],o=t[r++],i=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],m=t[r++];if(!(4&n)&&1===o)return{c:[this.end,[u,m]]};let h=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,l],h,f,i,s,o]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new X(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,l=E(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new X(e,["vertexZ","vertexM"]),!1);let s=(0,o.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,m.e)(s,e,r),e=(0,h.yP)(r)}let[i,a,u,f]=s;t={xmin:i,ymin:a,xmax:u,ymax:f,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,o,i;e=n=1/0,o=i=-1/0;for(let t=0;t<r;++t){let r=s[2*t],a=s[2*t+1];e=Math.min(e,r),o=Math.max(o,r),n=Math.min(n,a),i=Math.max(i,a)}t={xmin:e,ymin:n,xmax:o,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function w(e){let t,r,n;if((0,i.fT)(e)){n="point";let{x:s,y:o,z:i,m:a}=e,l=[s,o];null!=i&&l.push(i),null!=a&&l.push(a),r=[[l]],t=1}else(0,i.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=P(n,t,n.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,h.Ed)(e)),{hasZ:o,hasM:a,vertexXY:l,vertexZ:u,vertexM:m}=s;function f(e){l[2*y]=e[0],l[2*y+1]=e[1],o&&(u[y]=e[2]),a&&(m[y]=e[c]),++y}s.spatialReference=e.spatialReference??void 0;let c=s.hasZ?3:2,y=0;if(!s.isMultipart()){if(!o&&!a){for(let[e,t]of r[0])l[2*y]=e,l[2*y+1]=t,++y;return s}for(let e of r[0])f(e);return s}let g="polygon"===n,{partOffsets:p}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(p[d++]=y,0===e.length)continue;let t=e.length;if(g&&b(e[0],e.at(-1))&&--t,o||a)for(let r=0;r<t;++r)f(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];l[2*y]=t,l[2*y+1]=n,++y}}return p[d]=y,s}function x(e){let t=G+e;if(t<=(s.segmentParams?.length??0))return;let r=t*V;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let G=0;for(let e of r){if(s.partOffsets[d++]=y,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];f(r);let o=y-1;(0,h.wY)(n)?(x(10),++s.segmentCountArc,G=A(r,n,s,o,G),r=n.a[0]):(0,h.DA)(n)?(x(10),++s.segmentCountArc,G=_(r,n,s,o,G),r=n.a[0]):(0,h.aO)(n)?(x(10),++s.segmentCountArc,G=F(r,n,s,o,G),r=n.c[0]):(0,h.n1)(n)?(x(4),++s.segmentCountBezier,G=I(0,n,s,o,G),r=n.b[0]):r=n}g&&b(t,r)||f(r)}return s.partOffsets[d]=y,s}function S(e){let t=O(e),{vertexCount:r,partCount:n,hasZ:s,hasM:o}=e,i=E(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let n=[];for(;a<r;)n.push(t(a++));return{points:n,spatialReference:i,hasZ:s,hasM:o}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),o=e.partOffsets[s+1],i=[];for(;a<o;)i.push(t(a++));n&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:o,spatialReference:i}:{paths:r,hasZ:s,hasM:o,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:l,hasZ:s,hasM:o,spatialReference:i}}function M(e,{lengths:t,coords:r,hasZ:n,hasM:s},o){let i=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);n??=!1,s??=!1;let u=P(e,l,i,n,s,!1,0,0);if(u.spatialReference=o??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],n&&(u.vertexZ[e]=r[t++]),s&&(u.vertexM[e]=r[t++]);return u}let m=2+Number(n)+Number(s),h=0,f=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[f],o=t+e-Number(a);u.partOffsets[++f]=o;for(let e=t;e<o;++e)u.vertexXY[2*e]=r[h++],u.vertexXY[2*e+1]=r[h++],n&&(u.vertexZ[e]=r[h++]),s&&(u.vertexM[e]=r[h++]);a&&(h+=m)}return u}function T({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:i,partFlags:a,hasZ:l,hasM:u}){let m=new y.A([],[],l,u);o=Math.max(o,1);let h=0;for(let e=0;e<o;++e){let o=i?.[e+1]??t,f=m.coords.length;for(let e=h;e<o;++e)m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e]);if(a&&1&a[e]){let e=h;m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e])}m.lengths.push((m.coords.length-f)/m.stride),h=o}return"point"===e&&(m.lengths.length=0),m}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class X{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function E({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function O({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,r)=>e===t[r])}function P(e,t,r,n,s,o,i,a){i??=0,a??=0;let l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),s&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),o&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let m=new ArrayBuffer(u),h=0;return l.vertexXY=new Float64Array(m,h,2*t),h+=l.vertexXY.byteLength,n&&(l.vertexZ=new Float64Array(m,h,t),h+=l.vertexZ.byteLength),s&&(l.vertexM=new Float64Array(m,h,t),h+=l.vertexM.byteLength),o&&(l.segmentParams=new Float64Array(m,h,l.segmentParamCount),h+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(m,h,t),l.segmentIndices.fill(Y),h+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(m,h,r+1),h+=l.partOffsets.byteLength,l.partFlags=new Int8Array(m,h,r+1),h+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),o&&(l.segmentFlags=new Int8Array(m,h,t),l.segmentFlags.fill(1),h+=l.segmentFlags.byteLength),l}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let[a,[l,u],m,h,f,y,g]=t.a,p=4;h||(p|=1),m||(p|=2);let d=(0,c.SW)(e,t),[x,G]=(0,c.Uk)(d,.5);return s[i++]=p,s[i++]=y,s[i++]=g,s[i++]=f,s[i++]=l,s[i++]=u,s[i++]=d.u2-d.u1,s[i++]=d.u1,s[i++]=x,s[i++]=G,i}function _(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let a=(0,f.io)(e,t);return Z(a,4,...(0,l.mq)(a,.5),s,i)}function F(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){return r[o]=4,n[o]=i,Z((0,u.pM)(e,t),0,...t.c[1],s,i)}function Z(e,t,r,n,s,o){let{cx:i,cy:a,thetaStart:l,thetaEnd:u,radius:m}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),s[o++]=t,s[o++]=m,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=u-l,s[o++]=l,s[o++]=r,s[o++]=n,o}function I(e,{b:[t,[r,n],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:l},u,m){return i[u]=2,a[u]=m,l[m++]=r,l[m++]=n,l[m++]=s,l[m++]=o,m}const V=1.61803,Y=-1},52006(e,t,r){function n(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function s(e){return"curveRings"in e?e.curveRings:e.curvePaths}function o(e){return"b"in e}function i(e){return"c"in e}function a(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function m(e){return"a"in e&&7===e.a.length}function h(e,t){return s(e).flat().some(e=>function(e,t){return!(a(e)||(o(e)?t.has("cubic-bezier"):i(e)?t.has("circular-arc"):!u(e)&&!m(e)||t.has("elliptic-arc")))}(e,t))}function f(e){return a(e)?e:o(e)?e.b[0]:i(e)?e.c[0]:e.a[0]}function c(e){if(o(e)){let[t,r,n]=e.b;return{b:[[...t],[...r],[...n]]}}if(i(e)){let[t,r]=e.c;return{c:[[...t],[...r]]}}if(a(e))return[...e];if(u(e)){let[t,r,n,s]=e.a;return{a:[[...t],[...r],n,s]}}if(m(e)){let[t,r,n,s,o,i,a]=e.a;return{a:[[...t],[...r],n,s,o,i,a]}}return e}r.d(t,{DA:()=>u,Ed:()=>n,FD:()=>s,FG:()=>l,V8:()=>h,Xq:()=>a,aO:()=>i,n1:()=>o,tk:()=>c,wY:()=>m,yP:()=>f}),r(4576)},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function m(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>m,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>o,uW:()=>l})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let o=r-e,i=n-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],o=this.coords[n*t+1];for(let i=1;i<r;i+=1){let r=n*(t+i),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+o),s=a,o=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);