@arcgis/core 6.0.0-next.5 → 6.0.0-next.7

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 (215) 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/functions/knowledgegraph.js +1 -1
  5. package/arcade/geometry/unitConversion.js +1 -1
  6. package/arcgisGlobal.d.ts +5 -5
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  11. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  13. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  14. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  15. package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
  16. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  17. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  19. package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
  20. package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  22. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  23. package/assets/esri/core/workers/chunks/518e8883b6ed613bf451.js +1 -0
  24. package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
  26. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  27. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  28. package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
  30. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  31. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
  32. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  33. package/assets/esri/core/workers/chunks/7038ead1fa1674416ab3.js +1 -0
  34. package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
  35. package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 7165d6f6a5078768bebb.js} +1 -1
  36. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  37. package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
  38. package/assets/esri/core/workers/chunks/801e9e66edb4961461eb.js +1 -0
  39. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  40. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  41. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
  42. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  43. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
  44. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  45. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  47. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → c29c474c4b1049352d3e.js} +1 -1
  48. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  49. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  50. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
  51. package/assets/esri/core/workers/chunks/ecaac39dde7ec4213264.js +1 -0
  52. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  53. package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
  54. package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → fd0a5c243f3426f2a0b5.js} +1 -1
  55. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
  56. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +1 -1
  57. package/assets/esri/themes/base/widgets/_Features.scss +1 -1
  58. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +5 -9
  59. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -4
  60. package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -1
  61. package/assets/esri/themes/dark/main.css +1 -1
  62. package/assets/esri/themes/light/main.css +1 -1
  63. package/assets/esri/themes/light/view.css +1 -1
  64. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  65. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  66. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  67. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  68. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  69. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  70. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  71. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  72. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  73. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  74. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  75. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  76. package/chunks/GlobalIllumination.glsl.js +4 -2
  77. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  78. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  79. package/config.js +1 -1
  80. package/core/colorUtils.js +1 -1
  81. package/core/has.js +1 -1
  82. package/core/units.js +1 -1
  83. package/core/workers/workerFactory.js +1 -1
  84. package/geometry/projectionUtils.js +1 -1
  85. package/geometry/support/wkt.js +2 -0
  86. package/kernel.js +1 -1
  87. package/layers/graphics/data/FeatureStore.js +1 -1
  88. package/layers/graphics/data/QueryEngineResult.js +1 -1
  89. package/layers/graphics/data/geometryUtils.js +1 -1
  90. package/layers/graphics/data/projectionSupport.js +1 -1
  91. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  92. package/layers/graphics/transferFeatures.js +1 -1
  93. package/layers/knowledgeGraph/layerUtils.js +1 -1
  94. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  95. package/layers/raster/datasets/TIFFRaster.js +1 -1
  96. package/package.json +2 -2
  97. package/symbols/cim/cimAnalyzer.js +1 -1
  98. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  99. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  100. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  101. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  102. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  103. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  104. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  105. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  106. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  107. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  108. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  109. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  110. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  111. package/views/3d/layers/support/FeatureMemory.js +1 -1
  112. package/views/3d/layers/support/FeatureTile.js +1 -1
  113. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  114. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  115. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  116. package/views/3d/support/PBFDecoder.js +1 -1
  117. package/views/3d/support/elevationUpdateUtils.js +1 -1
  118. package/views/3d/terrain/TerrainRenderer.js +1 -1
  119. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  120. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  121. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  122. package/views/SceneView.d.ts +4 -10
  123. package/views/View.d.ts +4 -12
  124. package/views/draw/Draw.d.ts +1 -1
  125. package/views/draw/support/InteractiveHandle.js +1 -1
  126. package/views/interactive/options/SnappingOptions.d.ts +29 -12
  127. package/views/interactive/options/TooltipOptions.d.ts +9 -1
  128. package/views/interactive/options/ValueOptions.d.ts +9 -2
  129. package/views/interactive/options/ViewOptions.d.ts +82 -6
  130. package/views/interactive/support/Units.d.ts +1 -0
  131. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  132. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  133. package/views/support/projectionUtils.js +1 -1
  134. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  135. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  136. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  137. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  138. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  139. package/widgets/BasemapGallery/types.d.ts +3 -3
  140. package/widgets/BasemapLayerList.js +1 -1
  141. package/widgets/BatchAttributeForm.js +1 -1
  142. package/widgets/DirectionalPad.js +1 -1
  143. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  144. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  145. package/widgets/Editor.d.ts +9 -9
  146. package/widgets/Expand.js +1 -1
  147. package/widgets/FeatureForm.js +1 -1
  148. package/widgets/FeatureTable/FieldColumn.js +1 -1
  149. package/widgets/FeatureTable.js +1 -1
  150. package/widgets/Features/FeaturesDrillIn.js +1 -1
  151. package/widgets/Features.js +1 -1
  152. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  153. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  154. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  155. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  156. package/widgets/PanoramicVideoViewer.js +1 -1
  157. package/widgets/Print.js +1 -1
  158. package/widgets/ScaleRangeSlider.js +1 -1
  159. package/widgets/Search/SearchResultRenderer.js +1 -1
  160. package/widgets/Sketch/SketchViewModel.d.ts +14 -9
  161. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  162. package/widgets/Sketch.d.ts +10 -10
  163. package/widgets/Track/TrackViewModel.d.ts +1 -1
  164. package/widgets/UtilityNetworkAssociations.js +1 -1
  165. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  166. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  167. package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
  168. package/widgets/UtilityNetworkTrace.js +1 -1
  169. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  170. package/widgets/ValuePicker.js +1 -1
  171. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  172. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  173. package/widgets/support/GridControls.js +1 -1
  174. package/widgets/support/PluginSettingsControls.js +1 -1
  175. package/widgets/support/SelectionToolbar.js +1 -1
  176. package/widgets/support/SnappingControls.js +1 -1
  177. package/widgets/support/componentsUtils.js +1 -1
  178. package/arcade/geometry/wkt.js +0 -2
  179. package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
  180. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
  182. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  183. package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
  184. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  185. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  186. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  187. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  188. package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
  189. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  190. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  191. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  192. package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
  193. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  194. package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
  195. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  196. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  197. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  198. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  199. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  200. package/assets/esri/core/workers/chunks/8b54589f173259c1ba55.js +0 -1
  201. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  202. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  203. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  204. package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
  205. package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
  206. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  207. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  208. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  209. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  210. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  211. package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
  212. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  213. package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
  214. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  215. /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([[4934],{67996(e,t,r){r.d(t,{cZ:()=>x,XW:()=>R,fe:()=>k});var i=r(56507),n=r(49186),a=r(91869),s=(r(90708),r(92722)),o=r(16930);class l{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new u}}class u{constructor(){this.objectIdFieldName="",this.uniqueIdField=new d,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new h,this.geometryType=null,this.spatialReference=new o.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new c,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class d{constructor(){this.name="",this.isSystemMaintained=!1}}class h{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class c{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new f}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class f{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class m{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var M=r(45724),I=r(93637),C=r(49403);const _={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};function A(e){let t=new l;t.version=e.version;let r=e.get_query_result();if(0!==r.results_type.value)throw Error("Got a non-feature collection type");let i=r.get_feature_result(),n=t.queryResult.featureResult;n.objectIdFieldName=i.objectid_field_name,n.exceededTransferLimit=i.exceeded_transfer_limit,n.hasM=i.has_m,n.hasZ=i.has_z,n.geometryType=(0,I.i7)(C.bV,i.geometry_type.value),n.globalIdFieldName=i.globalid_field_name,n.geohashFieldName=i.geohash_field_name;let a=n.uniqueIdField,s=i.unique_id_field;a.name=s.name,a.isSystemMaintained=s.isSystemMaintained;let o=n.geometryProperties,p=i.geometry_properties;o.shapeAreaFieldName=p.shapeAreaFieldName,o.shapeLengthFieldName=p.shapeLengthFieldName,o.units=p.units;let u=n.spatialReference,d=i.spatial_reference;u.wkid=d.wkid,u.latestWkid=d.latestWkid,u.vcsWkid=d.vcsWkid,u.latestVcsWkid=d.latestVcsWkid,u.wkt=d.wkt,n.transform=function(e){let t=new c;t.quantizeOriginPosition=(0,I.i7)(_,e.quantizeOriginPosition.value);let r=t.scale,i=e.scale;r.xScale=i.xScale,r.yScale=i.yScale,r.mScale=i.mScale,r.zScale=i.zScale;let n=t.translate,a=e.translate;return n.xTranslate=a.xTranslate,n.yTranslate=a.yTranslate,n.mTranslate=a.mTranslate,n.zTranslate=a.zTranslate,t}(i.transform);let h=n.fields,y=n.fieldNameToAttributeIndexMap,f=i.fields,m=f.size();for(let e=0;e<m;e++){let t=f.get(e),r=v(t);h.push(r),y[r.name]=e,t.delete()}f.delete();let b=n.values,M=i.values_count();for(let e=0;e<M;e++)b.push(i.get_value_at(e));let T=n.features,A=i.features,x=A.size();if(x>0)for(let e of w)if(void 0===y[e])throw Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<x;e++){let t=new g,r=A.get(e),i=t.attributes,n=r.attributes_count();for(let e=0;e<n;e++)i.push(r.get_attribute_at(e));let a=r.get_compressed_geometry();a&&(t.compressedGeometry=E(a),t.centroid=E(r.get_centroid()));let s=t.aggregateGeometries,o=r.aggregate_geometries,l=o.size();for(let e=0;e<l;e++){let t=o.get(e),r=E(t);s.push(r),t.delete()}o.delete(),T.push(t),r.delete()}A.delete();let k=n.geometryFields,L=i.geometry_fields,N=L.size();for(let e=0;e<N;e++){let t=L.get(e),r=S(t);k.push(r),t.delete()}return L.delete(),t}function E(e){let t=new b;t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value);let r=[],i=[];for(let t=0;t<e.lengths.length;t++)r.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)i.push(e.coords[t]);return t.lengths=r,t.coords=i,t}function v(e){let t=new m;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,I.i7)(C.r5,e.field_type.value),t.sqlType=(0,I.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function S(e){let t=v(e);return t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value),t}async function x(e,t,r){t??=!1;let s={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){let r=await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data;return async function(e){let t=new((await(0,M.I)()).MapOfObjectIdentifierSetsDecoder),r=t.decode(new Uint8Array(e)),i=new Map;if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let a=t.get_map_of_identifier_sets(),s=a.keys,o=s.size();for(let e=0;e<o;e++){let t=s.get(e),r=a.query_identifier_set(t),o=[];if(1===r.id_array_type.value){let e=r.get_globalid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_globalid_at(r))}else if(3===r.id_array_type.value){let e=r.get_identifier_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_identifier_at(r).toString())}else if(2===r.id_array_type.value){let e=r.get_string_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_string_at(r))}else{if(0!==r.id_array_type.value)throw new n.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{let e=r.get_oid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_objectid_at(r).toString())}}i.set(t,o)}return t.delete(),i}(new Uint8Array(r))}(e,r).then(e=>{!function(e,t){for(let[r,i]of e){let e=(0,a.tE)(t.namedTypeDefinitions,r,()=>({useAllData:!1,members:new Map}));for(let t of i)e.members.has(t)||e.members.set(t,{id:t})}}(e,s)}),s}async function k(e){let t=await(0,M.I)(),r=new t.MapOfObjectIdentifierSets;!function(e,t,r){for(let[i,n]of r.namedTypeDefinitions){if(!n.members||n.useAllData)continue;let r=n.members.keys(),a=!1,s=!0,o=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,u=new t.IdentifierArray,d=new t.ObjectIdentifierSet;for(let e of r)s&&=(a=!isNaN(Number(e)),!1),a?o.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),u.add_identifier(e);d.set_oid_array(o),d.set_string_array(l),d.set_globalid_array(p),d.set_identifier_array(u),o.delete(),l.delete(),p.delete(),u.delete(),e.put_identifier_set(i,d),d.delete()}}(r,t,e);let i=new t.MapOfObjectIdentifierSetsEncoder;try{i.set_map_of_identifier_sets(r),i.encode();let e=i.get_encoding_result();if(0!==e.error.error_code)throw new n.A("knowledge-graph:layer-support-utils",e.error.error_message);let t=structuredClone(e.get_byte_buffer());return i.delete(),t}finally{r.delete()}}async function L(e,t){return async function(e){let t=new((await(0,M.I)()).FeatureCollectionDecoder),r=t.decode(new Uint8Array(e));if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let i=A(t.get_feature_collection());return t.delete(),i}(await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data)}function N(e,t){if(!e?.queryResult?.featureResult)return t;let{hasZ:r,hasM:i}=e.queryResult.featureResult,n=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(let o of e.queryResult.featureResult.features){let e=o.attributes[n.TYPENAME],l=(0,a.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),p=o.attributes[n.ELEMENTUID];if(o.compressedGeometry?.coords?.length>0){let e=o.compressedGeometry.lengths;"esriGeometryPoint"===o.compressedGeometry.geometryType&&(e=[]),l.members.set(p,{id:p,linkChartLocation:new s.A(e,o.compressedGeometry.coords,r,i)})}else l.members.set(p,{id:p})}return t}const R={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){let r=[],i={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&r.push(L(e.entitiesUrl,t).then(e=>{N(e,i)})),e.relationshipsUrl&&r.push(L(e.relationshipsUrl,t).then(e=>{N(e,i)})),await Promise.all(r),i}(e,t)}},75503(e,t,r){r.d(t,{wq:()=>o});var i=r(4576),n=r(21818),a=(r(44208),r(15142)),s=r(11006);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),C.prune(),_.prune(),T.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data,i=this._toBBox;if(w(e,r))for(I.clear();r;){for(let n=0,a=r.children.length;n<a;n++){let a=r.children[n],s=r.leaf?i(a):a;w(e,s)&&(r.leaf?t(a):b(e,s)?l(a,t):I.push(a))}r=I.pop()}}collides(e){let t=this._data,r=this._toBBox;if(!w(e,t))return!1;for(I.clear();t;){for(let i=0,n=t.children.length;i<n;i++){let n=t.children[i],a=t.leaf?r(n):n;if(w(e,a)){if(t.leaf||b(e,a))return!0;I.push(n)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new v([]),this}remove(e){if(!e)return this;let t,r=this._data,a=null,s=0,o=!1,l=this._toBBox(e);for(_.clear(),T.clear();r||_.length>0;){if(r||(r=_.pop(),a=_.data[_.length-1],s=T.pop()??0,o=!0),r.leaf&&(t=(0,i.qh)(r.children,(0,n.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),_.push(r),this._condense(_),this;o||r.leaf||!b(r,l)?a?(s++,r=a.children[s],o=!1):r=null:(_.push(r),T.push(s),s=0,a=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,i){let n=r-t+1,a=this._maxEntries;if(n<=a){let i=new v(e.slice(t,r+1));return p(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(a)),a=Math.ceil(n/a**(i-1)));let s=new S([]);s.height=i;let o=Math.ceil(n/a),l=o*Math.ceil(Math.sqrt(a));M(e,t,r,l,this._compareMinX);for(let n=t;n<=r;n+=l){let t=Math.min(n+l-1,r);M(e,n,t,o,this._compareMinY);for(let r=n;r<=t;r+=o){let n=Math.min(r+o-1,t);s.children.push(this._build(e,r,n,i-1))}}return p(s,this._toBBox),s}_insert(e,t,r){let i=this._toBBox,n=r?e:i(e);_.clear();let a=function(e,t,r,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==r;){let r,i=1/0,n=1/0;for(let a=0,s=t.children.length;a<s;a++){let s=t.children[a],o=y(s),l=m(e,s)-o;l<n?(n=l,i=o<i?o:i,r=s):l===n&&o<i&&(i=o,r=s)}t=r||t.children[0]}return t}(n,this._data,t,_);for(a.children.push(e),d(a,n);t>=0&&_.data[t].children.length>this._maxEntries;)this._split(_,t),t--;!function(e,t,r){for(let i=r;i>=0;i--)d(t.data[i],e)}(n,_,t)}_split(e,t){let r=e.data[t],i=r.children.length,n=this._minEntries;this._chooseSplitAxis(r,n,i);let a=this._chooseSplitIndex(r,n,i);if(!a)return;let s=r.children.splice(a,r.children.length-a),o=r.leaf?new v(s):new S(s);o.height=r.height,p(r,this._toBBox),p(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(r,o)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let i,n,a;i=n=1/0;for(let s=t;s<=r-t;s++){let t=u(e,0,s,this._toBBox),o=u(e,s,r,this._toBBox),l=g(t,o),p=y(t)+y(o);l<i?(i=l,a=s,n=p<n?p:n):l===i&&p<n&&(n=p,a=s)}return a}_chooseSplitAxis(e,t,r){let i=e.leaf?this._compareMinX:h,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,n)&&e.children.sort(i)}_allDistMargin(e,t,r,i){e.children.sort(i);let n=this._toBBox,a=u(e,0,t,n),s=u(e,r-t,r,n),o=f(a)+f(s);for(let i=t;i<r-t;i++){let t=e.children[i];d(a,e.leaf?n(t):t),o+=f(a)}for(let i=r-t-1;i>=t;i--){let t=e.children[i];d(s,e.leaf?n(t):t),o+=f(s)}return o}_condense(e){for(let t=e.length-1;t>=0;t--){let r=e.data[t];if(0===r.children.length)if(t>0){let n=e.data[t-1],a=n.children;a.splice((0,i.qh)(a,r,a.length,n.indexHint),1)}else this.clear();else p(r,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let r=e;for(C.clear();r;){if(!0===r.leaf)for(let e of r.children)t((0,n.z)(e));else C.pushArray(r.children);r=C.pop()??null}}function p(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,i,n){n||=new v([]),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let a,s=t;s<r;s++)a=e.children[s],d(n,e.leaf?i(a):a);return n}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),a=Math.min(e.maxY,t.maxY);return Math.max(0,n-r)*Math.max(0,a-i)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,r,i,n){let a=[t,r];for(;a.length;){let t=a.pop(),r=a.pop();if(t-r<=i)continue;let o=r+Math.ceil((t-r)/i/2)*i;(0,s.q)(e,o,r,t,n),a.push(r,o,o,t)}}const I=new a.A,C=new a.A,_=new a.A,T=new a.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class v extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>a,lM:()=>n});var i=r(34275);function n(e){if(!e)return 0;let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=s(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return o(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=u;for(let i=0;i<t;i++)r+=s(e[i]);return r}(e);let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=s(e[r]));return t}function s(e,t=!0){switch(typeof e){case"object":return t?a(e):p;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return u+e.length*t}const p=32,u=16,d=145},15795(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(91429),a=r(58318),s=r(4146),o=r(63074),l=r(25036),p=r(98809),u=r(88625);let d=class extends((0,o.dM)((0,l.j)(s.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new p.Y,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};(0,i.Cg)([(0,n.MZ)({type:u.A})],d.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,n.MZ)((0,a.C)(p.Y,"graphics"))],d.prototype,"graphics",void 0),(0,i.Cg)([(0,n.MZ)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i.Cg)([(0,n.MZ)()],d.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({constructOnly:!0})],d.prototype,"internal",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.GraphicsLayer")],d)},6518(e,t,r){r.d(t,{F:()=>o});var i=r(44208),n=r(75503),a=r(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((r,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,a.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,r){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,r)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,r){r.d(t,{A:()=>y});var i=r(4576),n=r(49186),a=r(65529),s=r(53966),o=r(70328),l=r(19419),p=r(90708),u=r(6518),d=r(51441),h=r(37730);const c=(0,o.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new a.bk,this.featureAdapter=h.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,r,i,n]=this.fullBounds;return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let r of e){let e=this._boundsStore.get(r.objectId);e&&t((0,o.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void s.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let r,i=this._featuresById.get(t);i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(r=(0,p.jQ)(r??(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return s.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let r=this._featuresById.get(t);if(!r)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0;let{geometry:i,attributes:a}=e;for(let e in a)r.attributes[e]=a[e];return i&&(r.geometry=i,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(r)??0,r}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,r){var i=r(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,r)=>new i.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};r.d(t,["T",0,n])},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>h,f:()=>c});var i=r(44208),n=r(4718),a=r(99352),s=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:a.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},24137(e,t,r){r.d(t,{P:()=>C});var i=r(32198),n=r(69622),a=r(49186),s=r(53966),o=r(91869),l=r(17676),p=r(39516),u=r(91429),d=r(5443),h=r(39829),c=r(99917),y=r(21325),f=r(15375);const m=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${m(e.left,t)} ${e.operator} ${m(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let r="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)r+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";r+=`lower(n.${e.left.column})`}if(r+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),r+=`'${t.toLowerCase()}')`}return r}return t.unsupportedOperationFound=!0,""};var g=r(69860),b=r(99916),w=r(53902),M=r(42538),I=r(97552);let C=class extends n.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;let t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(r=>{r.name&&(t.set(r.name,"entity"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.entityTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(r=>{r.name&&(t.set(r.name,"relationship"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.relationshipTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((r,i)=>{if("entity"===t.get(i))this.entityTypeNames.add(i);else{if("relationship"!==t.get(i))return s.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(i);this.relationshipTypeNames.add(i)}let n=new Map;r.members?.forEach(e=>{(0,o.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(i)}),this.sublayerCaches.set(i,n)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new a.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){let r=this.inclusionModeDefinition.namedTypeDefinitions.get(e);r.members||=new Map,r.members.set(t,{id:t}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{let r=new Map;r.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:r}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,r,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return{features:[],cypherTranslationApplied:!1};let n;if(n=e||new I.A({where:"1=1",outFields:["*"]}),"link-chart"===r.type){let e=r,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),a=n.outFields;a&&1===a.length&&a[0]===f.dr&&"1=1"===n.where||await Promise.all(i??[]);let s=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return s.forEach(r=>{if(this.relationshipTypeNames.has(t.objectType.name)){r.geometry=e.relationshipLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.memberIdTypeLookup.get(r.attributes[f.Cz]),n=this.memberIdTypeLookup.get(r.attributes[f.KQ]),a=this._isEndEntitySpatial(i,r,f.Cz),s=this._isEndEntitySpatial(n,r,f.KQ);r.attributes[f.BL]=Number(a&&s)}else{r.geometry=e.entityLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.geographicLookup.get(t.objectType.name);i&&r.attributes[i.name]?r.attributes[f.BL]=1:r.attributes[f.BL]=0}r.attributes[f.T1]=r.geometry,o.push(r)}),{features:o,cypherTranslationApplied:!1}}return this.retrieveDataFromService(n,t,r,i)}async getConnectedRecordIds(e,t,r){let i=[],n="",a=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(let e of t)n=n+e+"|";n=n.slice(0,-1)}let s={},o=[];for(let[e,r]of a){let i=`${e}_ids`;s[i]=r,t&&0!==t?.length?o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r:${n}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!o.length)return i;let l=o.join(" UNION "),p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:l,bindParameters:s}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];i.push({id:r[0],typeName:r[1]}),i.push({id:r[2],typeName:r[3]})}}return i}async getRelationshipsBetweenNodes(e,t,r){let i=this._getNamedTypeIdMapFromNodeIds(e);if(0===i.size)return[];let n={relationshipExclusionIds:t,possibleConnectionEntityIds:e},a=[];for(let[e,t]of i.entries()){let r=`${e}_ids`;n[r]=t,a.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let s=a.join(" UNION "),o=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:s,bindParameters:n}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];o.push({id:r[0],typeName:r[1]})}}return o}async getRelationshipsFromNodes(e,t,r,i){let n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size||0===t.length)return[];let a={relationshipExclusionIds:r,possibleConnectionEntityIds:t},s=[];for(let[e,t]of n.entries()){let r=`${e}_ids`;a[r]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let o=s.join(" UNION "),l=new Map,p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:o,bindParameters:a}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e],i=l.get(r[1]);i||(i=new Set,l.set(r[1],i)),i.add(r[0])}}let u=[];for(let[e,t]of l)for(let r of t)u.push({id:r,typeName:e});return u}async refreshCacheContent(e,t,r,i=!0,n){let s=g.A.getInstance(),p=[],u=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let t of this.memberIdTypeLookup.get(e))u.has(t)?u.get(t)?.push(e):u.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?u.set(t,null):e.members&&e.members.forEach(e=>{u.has(t)&&null!==u.get(t)?u.get(t)?.push(e.id):u.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}));for(let[e,l]of u){let u=new Set(l),h=new Promise((p,h)=>{(async()=>{let p,h=new Set,c=[],y="",m=!1;if(t||d.get(e)?.properties?.forEach(e=>{e.name&&h.add(e.name)}),r&&this.geographicLookup.has(e)){let t=this.geographicLookup.get(e)?.name;t&&h.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new a.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);m=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)})}p=l?new M.A({openCypherQuery:y,bindParameters:{ids:l}}):new M.A({openCypherQuery:y});let g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,p,{signal:n?.signal})).resultRowsStream.getReader();for(;;){let{done:t,value:r}=await g.read();if(t)break;let n=[];for(let e=0;e<r.length;e++){let t=r[e],i=0,a=0,s={properties:{}};for(s.id=t[i],i++,a++,m&&(s.originId=t[i],i++,a++,s.destinationId=t[i],i++,a++,(0,o.tE)(this.nodeConnectionsLookup,s.originId,()=>new Set).add(s.id),(0,o.tE)(this.nodeConnectionsLookup,s.destinationId,()=>new Set).add(s.id),(0,o.tE)(this.relationshipConnectionsLookup,s.id,()=>[s.originId,s.destinationId]));i<t.length;i++)s.properties[c[i-a]]=t[i];u.delete(s.id),n.push(s)}let a=s.writeToStore(n,f.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);let l=this.sublayerCaches.get(e);a.forEach(t=>{l?.set(t.attributes[f.dr],t),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[f.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[f.dr],{id:t.attributes[f.dr]}),(0,o.tE)(this.memberIdTypeLookup,t.attributes[f.dr],()=>new Set).add(e))})}let b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(let e of u)b.members?.delete(e)})().then(()=>{p(null)}).catch(e=>{"AbortError"===e.name?p(null):h(e)})});p.push(h),this._processingCacheUpdatesLookup.get(e)?.push(h)}if(await Promise.all(p),n?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){let t=new Set,r=new Set(e.map(e=>e.id));for(let r of e)t.add(r.typeName),1===this.memberIdTypeLookup.get(r.id)?.size?this.memberIdTypeLookup.delete(r.id):this.memberIdTypeLookup.get(r.id)?.delete(r.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===r.typeName&&e.members?.has(r.id)&&e.members.delete(r.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,i)=>{r.has(i)&&this.sublayerCaches.get(e)?.delete(i)})})}async retrieveDataFromService(e,t,r,i){let n,o=g.A.getInstance(),l=new Set,u=[],I="",C=[],_=!1,T="relationship"===t.graphType,A=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,E=r.sublayerIdsCache.get(t.objectType.name),v=!A&&E?Array.from(E).sort():null,S={systemOidFieldName:f.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(v=e.objectIds);else if(null!=e.objectIds&&v&&v.length>0){let t=e.objectIds;e.objectIds=v.filter(e=>t.includes(e))}else if(null!=e.objectIds)v=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],{features:[],cypherTranslationApplied:_};e.objectIds=v}if(null!=e.outFields){let r=e.outFields;r.includes("*")?t.fields.forEach(e=>{l.add(e.name)}):r.forEach(e=>{e!==f.dr&&e!==t.geometryFieldName&&l.add(e)})}if(null!=e.geometry){let i,s=e.geometry,o=r.dataManager.knowledgeGraph.serviceDefinition,f=o?.spatialReference,m=o?.serviceCapabilities?.geometryCapabilities,g=m?.geometryMaxBoundingRectangleSizeX,w=m?.geometryMaxBoundingRectangleSizeY;if("point"===s.type){let e=s;e.spatialReference?.isWGS84||(await(0,c.initializeProjection)(e.spatialReference,y.KK),e=(0,c.project)(e,y.KK)),i=new d.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else s?.extent?.spatialReference&&!s.spatialReference?.isWGS84?(await(0,c.initializeProjection)(s.extent.spatialReference,y.KK),i=(0,c.project)(s.extent,y.KK)):i=s.extent;if(g&&w&&f){if(4326!==f.wkid){let e=new d.A({spatialReference:f,xmax:g,ymax:w}),t=(0,c.project)(e,y.KK);g=t.xmax,w=t.ymax}if(i.xmax-i.xmin>g)throw new a.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(i.ymax-i.ymin>w)throw new a.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){let r=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{r.fieldNames.includes(e.name)&&l.add(e.name)})}I=T?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{I+=`, n.${e}`,u.push(e)}),n=new M.A({openCypherQuery:I,bindParameters:{param_filter_geom:new h.A({rings:(0,b.Wq)(i)})}})}else{let r="";if(null!=e.where&&"1=1"!==e.where){let i=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{i.fieldNames.includes(e.name)&&l.add(e.name)}),r=m(i.parseTree,S),S.unsupportedOperationFound&&(r="")}let i="";i=T?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let a=!1;v&&(a=!0,i+=" WHERE ID(n) IN $ids"),r&&(i+=a?" AND":" WHERE",i+=` ${r}`),i+=" return ID(n)",T&&(i+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{i+=`, n.${e}`,u.push(e)}),S.unsupportedOperationFound||(i=((e,t)=>{let r=e;return t.orderByFields?.length&&(r=function(e,t){let r=e.trimEnd();if(/\border\s+by\b/i.test(r))return s.A.getLogger("cypherUtils").warn("Query already contains an ORDER BY clause. Skipping addition of new ORDER BY."),e;let i=t.map(e=>e.trim()).filter(e=>!!e).map(e=>{let[t,r]=e.split(/\s+/);return t?`${t===f.dr?"ID(n)":`n.${t}`} ${"DESC"===r?.toUpperCase()?"DESC":"ASC"}`:null}).filter(e=>!!e);return i.length?`${r} ORDER BY ${i.join(", ")}`:e}(r,t.orderByFields)),null!=t.start&&(r=function(e,t){let r=e.trimEnd();return/\bskip\s+(\$\w+|\d+)\b/i.test(r)?(s.A.getLogger("cypherUtils").warn("Query already contains a SKIP clause. Skipping addition of new SKIP."),e):`${r} SKIP ${t}`}(r,t.start)),null!=t.num&&(r=function(e,t){let r=e.trimEnd();return/\blimit\s+(\$\w+|\d+)\b/i.test(r)?(s.A.getLogger("cypherUtils").warn("Query already contains a LIMIT clause. Skipping addition of new LIMIT."),e):`${r} LIMIT ${t}`}(r,t.num)),r})(i,e),_=!0),n=v?new M.A({openCypherQuery:i,bindParameters:{ids:v}}):new M.A({openCypherQuery:i})}let x=(await(0,w.executeQueryStreaming)(r.dataManager.knowledgeGraph,n,i)).resultRowsStream.getReader();for(;;){let{done:e,value:i}=await x.read();if(e)break;let n=[];for(let e=0;e<i.length;e++){let t=i[e],r=0,a=0,s={properties:{}};for(s.id=t[r],r++,a++,T&&(s.originId=t[r],r++,a++,s.destinationId=t[r],r++,a++);r<t.length;r++)s.properties[u[r-a]]=t[r];n.push(s)}C=C.concat(o.writeToStore(n,f.dr,r.dataManager.geographicLookup.get(t.objectType.name)?.name))}return{features:C,cypherTranslationApplied:_}}_isEndEntitySpatial(e,t,r){for(let i of e??[])if(this.entityTypeNames.has(i)){let e=this.geographicLookup.get(i),n=e&&this.sublayerCaches.get(i)?.get(t.attributes[r]);if(e&&n?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){let t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let r of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(r))return;t.has(r)?t.get(r)?.push(e):t.set(r,[e])}}),t}};(0,i.Cg)([(0,u.MZ)()],C.prototype,"knowledgeGraph",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"inclusionModeDefinition",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"entityTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"geographicLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"sublayerCaches",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"nodeConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"memberIdTypeLookup",void 0),C=(0,i.Cg)([(0,u.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],C)},62796(e,t,r){r.d(t,{A:()=>me});var i=r(32198),n=r(37838),a=r(49186),s=r(4718),o=r(53966),l=r(25728),p=r(91429),u=(r(29953),r(78247)),d=r(5443),h=r(86738),c=r(39829),y=r(82799),f=r(99917),m=r(16930),g=r(21325),b=r(50498),w=r(41910),M=r(55156),I=r(60950),C=r(89808),_=r(99959);const T=Symbol("isKnowledgeGraphGraphicOriginSymbol");var A;class E extends _.A{get[(A=T,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[A]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const v=Symbol("isLinkChartGraphicOriginSymbol");var S;class x extends _.A{get[(S=v,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[S]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var k=r(4146),L=r(83221),N=r(75752),R=r(64714),O=r(15375);const F=(0,r(17036).p)(),D=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,i.Cg)([(0,p.MZ)(F.fields)],r.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(F.fieldsIndex)],r.prototype,"fieldsIndex",void 0),r=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],r),r};var P=r(40736),j=r(63074),B=r(6455),G=r(87718),$=r(56658),Z=r(32756),U=r(54310),q=r(25036),Q=r(82935),z=r(10873),Y=r(20569),H=r(29005),W=r(20437),K=r(30524),X=r(46499),V=r(39383),J=r(96184),ee=r(96576),te=r(65494),re=r(41214),ie=r(53902),ne=r(22671),ae=r(97552),se=r(30291),oe=r(88625),le=r(37531),pe=r(61322),ue=r(43937);function de(e){if(!e.json)return e;e.json.write=he(e.json.write);let t,r=e.json.origins;if(!r)return e;for(t in r){let e=r[t];e&&(e.write=he(e.write))}return e}function he(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){let{target:t,writer:r,overridePolicy:i,...n}=e;return function(e,t){let r=ye.call(this,e,t);return r.enabled?{...n,...r}:r}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:ye}}function ye(e,t){let r=!!this.geometryType,i={enabled:r};return r&&(i={...i,...fe.call(this,e,t)}),i}function fe(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let me=class extends(D((0,B.FJ)((0,$.J)((0,G.F)((0,j.dM)((0,Z.fY)((0,Q.e)((0,q.j)((0,U.J)((0,l.M)(k.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=O.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{let e=new MessageChannel;return new pe.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{let r=ae.A.fromJSON(e);return this.queryFeaturesJSON(r,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,P.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){let e=(0,s.o8)(this.capabilities),{operations:t,editing:r}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=r.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){let e=[],t=new Map;for(let e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(r=>{let i="esriFieldTypeOID"===r.fieldType?"esriFieldTypeInteger":r.fieldType,n=W.A.fromJSON({name:r.name,type:i,alias:r.alias,defaultValue:r.defaultValue,editable:r.editable,nullable:r.nullable,domain:r.domain&&t.has(r.domain)?t.get(r.domain).toJSON():void 0});e.push(n)}),e.push(W.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),W.A.fromJSON({name:O.M1,type:"esriFieldTypeInteger",alias:O.M1,editable:!1}),W.A.fromJSON({name:O.BL,type:"esriFieldTypeInteger",alias:O.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,P.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.geometryType;return e&&"esriGeometryNull"!==e?b.gy.fromJSON(e):null}get geometryFieldName(){return"link-chart"===this.parentCompositeLayer?.type?O.T1:this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new E(this.parent,this);case"link-chart":return new x(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasM??!1}get hasZ(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;let e=this.objectType.properties?(0,P.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,P.iW)(this.graphType,this.graphTypeName,e):(0,P.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");let e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),r=(0,P.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new ee.A({type:"simple",symbol:(0,P.UT)(r)});let e=(0,te.r)((0,R.F0)(b.gy.toJSON("point")).renderer);return(0,le.dt)(e.symbol,r),e}let i=(0,te.r)((0,R.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,le.dt)(i.symbol,r),i}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??m.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,P.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,se.tn)(this,e)}createQuery(){return new ae.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e),a=this.graphicOrigin,s=ne.A.fromJSON(await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal));return s.features.forEach(e=>{e.sourceLayer=this,e.origin=a}),s}async queryFeaturesJSON(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryFeatureCount(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return i.executeQueryForCount(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryExtent(e={},t){await this.load();let r,i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:a,cypherTranslationApplied:s}=await this._setupQueryObjects(i),o=await a.executeQueryForExtent(this._createQueryEngineQueryJSON(n,s),t?.signal);return r=null!=o.extent?.xmin&&null!=o.extent?.xmax&&null!=o.extent?.ymin&&null!=o.extent?.ymax?new d.A(o.extent):new d.A,{count:o.count,extent:r}}async queryObjectIds(e,t){await this.load();let r,i=ae.A.from(e);if(this.parentCompositeLayer){if("link-chart"!==this.parentCompositeLayer.type||!this._cachedQueryEngine){let{features:e,cypherTranslationApplied:n}=await this.parentCompositeLayer.dataManager.getData(i,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,n),t?.signal)}r=this._cachedQueryEngine}else o.A.getLogger(this).warn("Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded."),r=this.loadQueryEngine([]);return await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new a.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");let t=await(0,P.O9)(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};let r=await(0,ie.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),i=(0,P.Gz)(r,this.graphTypeName),n={addedFeatures:i.addFeatureResults,updatedFeatures:i.updateFeatureResults,deletedFeatures:i.deleteFeatureResults,addedAttachments:i.addAttachmentResults,deletedAttachments:i.deleteAttachmentResults,updatedAttachments:i.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",n),this.emit("apply-edits",{result:Promise.resolve(n)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...n.addedFeatures.map(e=>e.globalId),...n.updatedFeatures.map(e=>e.globalId),...n.deletedFeatures.map(e=>e.globalId)]),i}loadQueryEngine(e){let t=new L.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),r=new N.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return r.featureStore.addMany(e),r}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded."),void(this._cachedQueryEngine=this.loadQueryEngine([]));let{features:e}=await this.parentCompositeLayer.dataManager.getData(new ae.A({where:"1=1",outFields:[O.dr]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,K.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){let r=e.toJSON();return t&&delete r.resultOffset,r}async _setupQueryObjects(e,t){let r=ae.A.from(e),i=r.geometry;if(i&&!i.spatialReference?.isWGS84&&(await(0,f.initializeProjection)(i.spatialReference,g.KK),r.geometry=i instanceof c.A||i instanceof y.A||i instanceof h.A?(0,f.project)(i,g.KK):(0,f.project)(i.extent,g.KK)),!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded."),{resolvedQuery:r,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:r,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};let{features:n,cypherTranslationApplied:a}=await this.parentCompositeLayer.dataManager.getData(r,this,this.parentCompositeLayer,t);return{resolvedQuery:r,queryEngine:this.loadQueryEngine(n),cypherTranslationApplied:a}}};(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(j.sU)))],me.prototype,"blendMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"isTable",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],me.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],me.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(B.Dp)))],me.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(B.KV)))],me.prototype,"displayFilterInfo",void 0),(0,i.Cg)([(0,p.MZ)()],me.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(j.LF)))],me.prototype,"effect",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({type:oe.A})],me.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(G.Y)))],me.prototype,"featureEffect",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(Y.d)))],me.prototype,"featureReduction",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({type:u.A})],me.prototype,"formTemplate",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"geometryFieldName",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"graphicOrigin",null),(0,i.Cg)([(0,p.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphType",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphTypeName",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],me.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],me.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:[X.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,r){let i=[["ESRI__AGGREGATION_COUNT",O.M1],["ESRI__ORIGIN_ID",O.Cz],["ESRI__DESTINATION_ID",O.KQ],["ESRI__LAYOUT_GEOMETRY",O.T1]];try{for(let t of e)for(let[e,r]of i)t.labelExpression=t.labelExpression?.replaceAll(e,r),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,r))}catch(e){o.A.getLogger(this).warn("Error updating labelingInfo",e)}return V.w.call(this,e,t,r)},write:ce()}})],me.prototype,"labelingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"layerType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(z.fV)))],me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(z.hG)))],me.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(z.hn)))],me.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)()],me.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)()],me.prototype,"objectType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(z.ke)))],me.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(Z.ne)))],me.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],me.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)()],me.prototype,"parentCompositeLayer",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(z.M6)))],me.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:n.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],me.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:fe}}})],me.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,p.MZ)({types:re.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],me.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)()],me.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)()],me.prototype,"spatialReference",null),(0,i.Cg)([(0,p.MZ)({type:H.A})],me.prototype,"templates",null),(0,i.Cg)([(0,p.MZ)({type:J.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:fe},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:fe}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:fe}}}}})],me.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"title",null),(0,i.Cg)([(0,ue.K)("title")],me.prototype,"writeTitle",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],me.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(de((0,s.o8)(Q.B)))],me.prototype,"useViewTime",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasFullEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasUpdateItemPrivileges",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],me.prototype,"visible",void 0),me=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],me)},69860(e,t,r){r.d(t,{A:()=>o});var i=r(65864),n=r(90708),a=r(43334),s=r(15375);class o{constructor(){this._featureLookup=new Map}static getInstance(){return o.instance||=new o,o.instance}static resetInstance(){o.instance&&=null}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){let t=[];return e.forEach(e=>{let r=this.readFromStoreById(e);r&&t.push(r)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,r){let o=[];return e.forEach(e=>{if(!e?.id)return;e.properties||=[];let l=null;r&&e.properties[r]&&(l=(0,n.Ux)(e.properties[r])),"originId"in e&&"destinationId"in e&&(e.properties[s.Cz]=e.originId,e.properties[s.KQ]=e.destinationId),e.properties[t]=e.id;let p=e.properties;if(e.id){let t=this._featureLookup.get(e.id);if(t?.attributes){p={...t.attributes,...p};let e=r&&p[r];null!=e&&(p[r]=(0,i.rS)(e)),l??=t.geometry}}let u=new a.Om(l?.clone(),p,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,u),o.push(u)}),o}}},15375(e,t,r){r.d(t,["BL",0,"LC.ESRI__IsSpatial","Cz",0,"ESRI__OriginID","KQ",0,"ESRI__DestID","M1",0,"ESRI__AggregationCount","T1",0,"ESRI__LayoutGeometry","dr",0,"ESRI__ID"])},40736(e,t,r){r.d(t,{Gz:()=>U,O9:()=>Z,hZ:()=>$,CP:()=>Q,dD:()=>q,UT:()=>F,MY:()=>D,Td:()=>O,iW:()=>P,e$:()=>j,$L:()=>z,N1:()=>B,qN:()=>N});var i=r(68197),n=r(92602),a=r(70333),s=(r(49186),r(91869)),o=r(17676),l=r(78247),p=r(89909),u=r(99917),d=r(16930),h=r(52039),c=r(99352),y=r(15375),f=r(29005),m=r(46499),g=r(73913),b=r(77548),w=r(80812),M=r(10407),I=r(53902),C=r(25927),_=r(32198),T=r(69622),A=r(91429);let E=class extends T.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,_.Cg)([(0,A.MZ)()],E.prototype,"entityAdds",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"entityUpdates",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"entityDeletes",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"relationshipAdds",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"relationshipUpdates",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"relationshipDeletes",void 0),(0,_.Cg)([(0,A.MZ)()],E.prototype,"options",void 0),E=(0,_.Cg)([(0,A.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],E);var v=r(23150),S=r(94128),x=r(40863),k=r(68249);const L=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function N(e,t,r){return(async(e,t,r)=>{if(t||=[...e.layers,...e.tables].map(e=>e.graphTypeName),0===t?.length)return;let i=new Map;for(let r of t)i.set(r,L(e,r));let n=await(0,I.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(i.values()),{requestOptions:{signal:r?.signal}});for(let t of[...e.layers,...e.tables]){let r=t.objectType.name;if(null==r)continue;let i=n.get(L(e,r));if(i){let e=JSON.parse(i);"object"==typeof e&&e&&!e.hasOwnProperty("showLabels")&&(e.showLabels=!1),t.read(e,{origin:"service"})}}})(e,t,r)}const R="#4a0932.#b31515.#18382e.#a64f1b.#102432.#8c213f.#ed9310.#2c6954.#144d59.#ffc730.#75351e.#454f4b.#78b1c2.#191921.#8f8f82.#9be0c0.#dbb658.#87b051.#11495c.#c43541.#9c5596.#44498b.#ad9d63.#86afb3.#5c98ca.#b0bfa2.#73241f.#b86b53.#d9d78c.#3e756d.#f260a1.#a0d17d.#c27c30.#eb82eb.#ffdf3c.#ffb259.#ab52b3.#3cccb4.#0095ba.#d92b30".split(".");function O(e){return e<0||e>=R.length?new i.A("#8f8f82"):new i.A(R[e])}function F(e){let t=e.toArray();return new x.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function D(e){let t="ESRI__ID",r=4;for(let i of e)if(i.name){if("name"===i.name.toLowerCase()){t=i.name;break}i.name.toLowerCase().includes("name")?(t=i.name,r=2):"esriFieldTypeString"===i.fieldType&&r>3&&(t=i.name,r=3)}return t}function P(e,t,r){let i={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},n=new m.A({labelExpressionInfo:new g.A({expression:"ESRI__ID"===r?`${t}`:`$feature.${r}`}),labelPlacement:"above-center",symbol:new k.A(i)}),a=new m.A({labelExpressionInfo:new g.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new k.A({...i,yoffset:"12px"})});return"entity"===e?[n]:[a]}function j(e,t,r){let i={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},n="ESRI__ID"===r?`${e}`:`$feature.${r}`;return"point"===t?[new m.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"above-center",symbol:new k.A(i)})]:"polyline"===t?[new m.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"center-along",repeatLabel:!0,symbol:new k.A(i)})]:"polygon"===t?[new m.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"always-horizontal",symbol:new k.A(i)})]:null}async function B(e,t,r){return(async(e,t,r)=>{let i=!0,s=!1,o=!1;if(!n.A.userPrivilegesApplied)return{edit:i,fullEdit:s,updateItem:o};let l=await(0,b.wI)(t,r);if(!l||!a.id?.getCredential(`${l}/sharing`,{...r,prompt:!1}))return{edit:i,fullEdit:s,updateItem:o};let p=new w.default({id:e,portal:{url:l}});return await p.load(r),({features:{edit:i,fullEdit:s},content:{updateItem:o}}=(0,M.It)(p)),{edit:i,fullEdit:s,updateItem:o}})(e,t,r).catch(e=>((0,o.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const G={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function $(e){let{capabilities:t,allowGeometryUpdates:r,serviceCapabilities:{geometryCapabilities:{supportsZValues:i,supportsMValues:n}}}=e?.serviceDefinition||G,a=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),s=new Set(a);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:n,supportsTrueCurve:!1,supportsZ:i},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:s.has("Create"),supportsDelete:s.has("Delete"),supportsEditing:s.has("Editing"),supportsChangeTracking:!1,supportsQuery:s.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:s.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:c.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:c.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&r,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:s.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:s.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function Z(e,t,r){let i=new E,n=t.graphTypeName,a=t.graphType,o="knowledge-graph"===r.type?t.geometryFieldName:null,l=!!t.fieldsIndex.get(o)?.editable,p=e=>{let r={...e};for(let e of t.fields)e.editable||delete r[e.name];for(let t of Object.keys(e))t.includes("ESRI__")&&delete r[t];return r},c=async e=>{await(0,u.initializeProjection)(e.spatialReference,d.A.WGS84);let t=(0,u.project)(e,d.A.WGS84);return"point"===t.type?t.normalize():(await(0,h.el)(t))[0]};for(let t of e.addFeatures??[]){let e=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===a?(i.entityAdds||=[],o&&t.geometry&&(e[o]=await c(t.geometry)),i.entityAdds.push(new C.A({properties:e,typeName:n}))):(i.relationshipAdds||=[],i.relationshipAdds.push(new v.A({properties:e,typeName:n}))))}for(let t of e.updateFeatures??[]){let e=t.attributes[y.dr],r=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===a?(i.entityUpdates||=[],o&&l&&t.geometry&&(r[o]=await c(t.geometry)),i.entityUpdates.push(new C.A({id:e,properties:r,typeName:n}))):(i.relationshipUpdates||=[],i.relationshipUpdates.push(new v.A({id:e,properties:r,typeName:n}))))}let f=new Map;for(let t of e.deleteFeatures??[])if((0,S.D)(t)){let e=t,r=(0,s.tE)(f,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===n&&r.ids.push(e.attributes[y.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,s.tE)(f,n,()=>({typeName:n,ids:[]})).ids.push(t.objectId);for(let e of f.values())e.ids.length>0&&("entity"===a?(i.entityDeletes||=[],i.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(i.relationshipDeletes||=[],i.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return i}function U(e,t){let r={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(let i of e.editResults)if(i.typeName===t){for(let e of i.adds)r.addFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.updates)r.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.deletes)r.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return r}function q(e){if(!e.objectType)return null;let t=[];for(let r of e.fields)!r.name.includes("ESRI__")&&r.editable&&"geometry"!==r.type&&t.push(new p.A({fieldName:r.name}));return new l.A({elements:t})}function Q(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new f.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}const z=e=>{let t="",r=e.split("/"),i=r.lastIndexOf("KnowledgeGraphServer");return i>0&&(t=r[i-1]),t}},99916(e,t,r){r.d(t,{Wq:()=>l,aq:()=>o}),r(52106);var i=r(49186),n=(r(86738),r(39829),r(82799),r(15795),r(69860),r(8460),r(69647)),a=r(53902),s=r(42538);async function o(e,t,r){let i=[],n=function(e,t){let r=new Map;if(t.dataModel?.relationshipTypes)for(let e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(let t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);return r}(e,t),o={},l=[];for(let[e,t]of n){if(t.length<1)continue;let r=`${e}_ids`;o[r]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${r} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];let p=l.join(" UNION "),u=new s.A({openCypherQuery:p,bindParameters:o}),d=(await(0,a.executeQueryStreaming)(t,u,r?.requestOptions)).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await d.read();if(e)break;for(let e of t)i.push({id:e[0],typeName:e[1]}),i.push({id:e[2],typeName:e[3]})}return i}function l(e){if(!e.spatialReference.isWGS84)throw new i.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}r(40863),r(94985),r(68249),r.d(t,["k5",0,e=>n.P_.get(e)??"radial-root-centric"])},82935(e,t,r){var i=r(32198),n=r(91429),a=r(30524),s=r(96184),o=r(73133),l=r(79677),p=r(10184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,n=o.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:s.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),n=r(53966),a=r(20437),s=r(95466),o=r(30524);function l(){return{fields:{type:[a.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.DB)(this.fieldsIndex,e)}}}}},8460(e,t,r){r.d(t,{$C:()=>f,Hh:()=>s,Tu:()=>c,Wg:()=>y,Xq:()=>g,i6:()=>b,pM:()=>d,vJ:()=>m});var i=r(2741);let n,a=null;function s(){return n||(n=r.e(3666).then(()=>r(3666)).then(({default:e})=>e({locateFile:e=>(0,i.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){a=e}(e)}),n)}const o={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function p(e){let t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:o[t.timeDirection]??o.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function u(e,t,r,i,n,s){let o=r.length,l=n.length,p=Float64Array.BYTES_PER_ELEMENT,u=Uint32Array.BYTES_PER_ELEMENT,d=Uint8Array.BYTES_PER_ELEMENT,h=16+o*(d+2*p)+2*u*l,c=a._malloc(h);try{let d=c+16-c%16,h=d+o*p,y=h+o*p,f=y+l*u,m=f+l*u,g=()=>[a.HEAPF64.subarray(d>>3,(d>>3)+o),a.HEAPF64.subarray(h>>3,(h>>3)+o),a.HEAPU32.subarray(y>>2,(y>>2)+l),a.HEAPU32.subarray(f>>2,(f>>2)+l),a.HEAPU8.subarray(m,m+o)],[b,w,M,I,C]=g();b.set(r),w.set(i),M.set(n),I.set(s),C.set(t);let _=e(o,m,d,h,l,y,f),T=null,A=null;if(0===_.value){let e=a.getLayoutLinksTypes(),t=a.getLayoutLinksVerticesEndIndices(),r=a.getLayoutLinksVertices(),i=a.countLayoutLinksVertices();l&&(!e||!t)||i&&!r?_.value=1:(T={types:new Uint8Array(a.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(a.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(a.HEAPF64.subarray(r>>3,(r>>3)+2*i))},A=a.getAuxiliaryGraphicElements())}let[E,v,S,x,k]=g();return r.set(E),i.set(v),n.set(S),s.set(x),t.set(k),{status:_.value,links:T,graphics:A}}finally{a._free(c),a.cleanupLayout()}}var d,h,c,y,f,m,g,b;(h=d||={}).getMinIdealEdgeLength=function(){return a.getMinIdealEdgeLength()},h.apply=function(e,t,r,i,n,s,o=2,l=1,p=-1){return u((t,r,i,n,s,u,d)=>a.applyForceDirectedLayout(e,t,r,i,n,s,u,d,o,l,p),t,r,i,n,s)},function(e){e.apply=function(e,t,r,i,n,s,o=2,l=1,p=-1){return u((t,r,i,n,s,u,d)=>a.applyCommunityLayout(e,t,r,i,n,s,u,d,o,l,p),t,r,i,n,s)}}(c||={}),function(e){e.apply=function(e,t,r,i,n,s){return u((t,r,i,n,s,o,l)=>a.applySimpleLayout(e,t,r,i,n,s,o,l),t,r,i,n,s)}}(y||={}),function(e){e.apply=function(e,t,r,i,n,s){return u((t,r,i,n,s,o,l)=>a.applyHierarchicalLayout(e,t,r,i,n,s,o,l),t,r,i,n,s)}}(f||={}),function(e){e.apply=function(e,t,r,i,n,s){return u((t,r,i,n,s,o,l)=>a.applyRadialTreeLayout(e,t,r,i,n,s,o,l),t,r,i,n,s)}}(m||={}),function(e){e.apply=function(e,t,r,i,n,s){return u((t,r,i,n,s,o,l)=>a.applySmartTreeLayout(e,t,r,i,n,s,o,l),t,r,i,n,s)}}(g||={}),function(e){e.apply=function(e,t,r,i,n,s,o,l,d,h,c,y){return u((t,r,i,o,l,u,f)=>{if(n.length!==t||s.length!==t||d.length!==l||h.length!==l)return{value:1};let m=Float64Array.BYTES_PER_ELEMENT,g=a._malloc(16+t*m),b=a._malloc(16+t*m),w=a._malloc(16+l*m),M=a._malloc(16+l*m),I=g+16-g%16,C=b+16-b%16,_=w+16-w%16,T=M+16-M%16;try{return a.HEAPF64.subarray(I>>3,(I>>3)+t).set(n),a.HEAPF64.subarray(C>>3,(C>>3)+t).set(s),a.HEAPF64.subarray(_>>3,(_>>3)+l).set(d),a.HEAPF64.subarray(T>>3,(T>>3)+l).set(h),a.applyChronologicalLayout(e,t,r,i,o,I,C,l,u,f,_,T,c,p(y))}finally{a._free(g),a._free(b),a._free(w),a._free(M)}},t,r,i,o,l)}}(b||={})},69647(e,t,r){var i=r(66552);const n=(0,i.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),a=(0,i.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"}),s=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);r.d(t,["P_",0,s,"SJ",0,n,"lg",0,a])},54628(e,t,r){r.d(t,{lV:()=>a,zI:()=>n});var i=r(56507);async function n(e,t,r){if(!e||!t||!e.includes("/resources"))return!1;let n=t+"/resources",a=e.includes("/resources/")?e.split("/resources/")[1]:e;if(!a)return!1;let s=1;for(;-1!==s;){let e=(await(0,i.A)(n,{query:{f:"json",start:s,num:100}})).data,t=e?.resources??[];for(let e of t)if(e.resource===a)return"number"==typeof r&&e.created===r;if(null==e.nextStart||!t.length)break;s=e.nextStart}return!1}async function a(e,t){if(!e.length||!t)return new Map;let r=t+"/resources",n=1,a=new Map;for(;-1!==n;){let e=(await(0,i.A)(r,{query:{f:"json",start:n,num:100}})).data,t=e?.resources??[];for(let e of t)"number"==typeof e.created&&a.set(e.resource,e.created);if(null==e.nextStart||!t.length)break;n=e.nextStart}let s=new Map;for(let t of e){let e=t.includes("/resources/")?t.split("/resources/")[1]:t,r=a.get(e);null!=r&&s.set(t,r)}return s}r(49186),r(53966),r(17676),r(86738),r(8460)},10407(e,t,r){r.d(t,{It:()=>c,LG:()=>s,OM:()=>p,Sm:()=>u,Y:()=>o,bK:()=>l,sQ:()=>d});var i=r(99917),n=r(16930),a=r(28735);function s(e,t){if(!o(e,t)){let r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,h.HOSTED_SERVICE)}function p(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function u(e,t,r){r?s(e,t):p(e,t)}async function d(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,a.ci)(e);let r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(t)}const h={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function c(e){let{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges,a=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit"),o="update"===i||"admin"===i;return o?s=a=!0:s&&(a=!0),{features:{edit:a,fullEdit:s},content:{updateItem:o}}}r.d(t,["mm",0,h])},25927(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),a=r(86738),s=r(54238);let o=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Entity")],o)},54238(e,t,r){r.d(t,{A:()=>s});var i=r(32198),n=r(91429),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],s)},77901(e,t,r){r.d(t,{A:()=>s});var i=r(32198),n=r(25482),a=r(91429);let s=class extends n.o{constructor(e){super(e),this.properties={}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,i.Cg)([(0,a.$K)("esri.rest.knowledgeGraph.GraphObject")],s)},42538(e,t,r){r.d(t,{A:()=>l});var i=r(32198),n=r(91429),a=r(16930),s=r(69622);let o=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,i.Cg)([(0,n.MZ)()],o.prototype,"openCypherQuery",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQuery")],o);let l=class extends o{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A})],l.prototype,"outputSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,t,r){r.d(t,{A:()=>s});var i=r(32198),n=r(91429),a=r(77901);let s=class extends a.A{constructor(e){super(e)}};s=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.ObjectValue")],s)},42095(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(25482),a=r(91429),s=r(77901);let o=class extends n.o{constructor(e){super(e),this.path=[]}};(0,i.Cg)([(0,a.MZ)({type:[s.A],json:{write:!0}})],o.prototype,"path",void 0),o=(0,i.Cg)([(0,a.$K)("esri.rest.knowledgeGraph.Path")],o)},23150(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),a=r(82799),s=r(54238);let o=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"originId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"destinationId",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Relationship")],o)},2272(e,t,r){r.d(t,{Dl:()=>p,gf:()=>d,jV:()=>l,lF:()=>u});var i=r(92602),n=r(70333),a=r(4718),s=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function p(e){return"string"==typeof e?(0,s.An)(e):(0,a.o8)(e)}function u(e,t,r){let i={};for(let n in e){if("declaredClass"===n)continue;let a=e[n];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))i[n]=a.map(e=>u(e));else if("object"==typeof a)if(a.toJSON){let e=a.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?a:JSON.stringify(a);else i[n]=a}return i}async function d(e,t,a){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t)||(!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(7644),r.e(7715)]).then(()=>r(50148)),(await n.id.getCredential(e,a))?.token)}},62046(e,t,r){r.d(t,{Fe:()=>y,KU:()=>b,Nk:()=>p,X5:()=>a});var i=r(68197),n=r(93397);function a(e,t,r){if(!e)return;let i=(0,n.lW)(e),a=function(e){let t=(0,n.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let r=0;if(t?.symbolLayers)for(let e of t.symbolLayers)(0,n.MM)(e)&&null!=e.size&&e.size>r?r=e.size:(0,n.mA)(e)&&null!=e.width&&e.width>r?r=e.width:(0,n.jn)(e);return r}(e);0===a?function(e,t){if(e)if("CIMTextSymbol"===e.type)e.height=t;else if(e.symbolLayers)for(let r of e.symbolLayers)switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":r.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":r.width=t}}(i,t):s(i,t/a,!1,r)}function s(e,t,r,i){if(e)if("CIMTextSymbol"===e.type)null!=e.height&&(e.height*=t);else{if(r&&e.effects)for(let r of e.effects)l(r,t);if(e.symbolLayers)for(let r of e.symbolLayers){switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":o(r,t,i);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!i?.preserveOutlineWidth&&r.width&&(r.width*=t);break;case"CIMPictureFill":r.height&&(r.height*=t),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t);break;case"CIMHatchFill":s(r.lineSymbol,t,!0,{...i,preserveOutlineWidth:!1}),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t),r.separation&&(r.separation*=t)}if(r.effects)for(let e of r.effects)l(e,t)}}}function o(e,t,r){if(e&&(e.markerPlacement&&function(e,t){switch((0,n.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementAlongLineVariableSize":e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null==e.size?0:e.size*t,"CIMVectorMarker"===e.type&&e.markerGraphics))for(let i of e.markerGraphics)e.scaleSymbolsProportionally||s(i.symbol,t,!0,r)}function l(e,t){if(!(0,n.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function p(e){let t=[];return u((0,n.lW)(e),t),t.length?new i.A((0,n.e6)(t[0])):null}function u(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;let i="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(let e of r.symbolLayers)if(!(e.colorLocked||i&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{u(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":h(t,e);break;case"CIMHatchFill":u(e.lineSymbol,t)}}function d(e,t){for(let r of e)if(r.join(".")===t.join("."))return;e.push(t)}function h(e,t){switch(t.colorRamp?.type){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&c(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":c(e,t.colorRamp)}}function c(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function y(e,t,r){t instanceof i.A||(t=new i.A(t));let a=(0,n.lW)(e);a&&f(a,t,r)}function f(e,t,r){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;let a="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(let e of i.symbolLayers){if(e.colorLocked)continue;if(a)if(r){let{layersToColor:t}=r;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;let i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{f(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMGradientFill":m(e,t);break;case"CIMHatchFill":f(e.lineSymbol,t,r)}}}function m(e,t){switch(e.colorRamp?.type){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let r=t.clone();r.a=0,e.toColor=r.toArray()}}function b(e,t,r=!1){let i=(0,n.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"===i?.type)i.angle=t;else if("CIMPointSymbol"===i?.type&&i.symbolLayers){let e=t-(i.angle||0);for(let t of i.symbolLayers)if((0,n.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}i.angle=t}}},37531(e,t,r){r.d(t,{dt:()=>h,GG:()=>g,UQ:()=>m,Sx:()=>u});var i=r(68197),n=r(60999),a=(r(90629),r(51850)),s=(r(76369),r(62046)),o=(r(2741),r(56507),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new i.A([128,128,128]);var l=r(28975),p=r(33910);function u(e,t){if(!e)return null;let r=null;return(0,p.wk)(e)?r=function(e){let t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new i.A(r):null}(e):(0,p.$y)(e)&&(r="cim"===e.type?(0,s.Nk)(e):e.color?new i.A(e.color):null),r?d(r,t):null}function d(e,t){if(null==t||null==e)return e;let r=e.toRgba();return r[3]*=t,new i.A(r)}function h(e,t,r){e&&(t||null!=r)&&(t&&=new i.A(t),(0,p.wk)(e)?function(e,t,r){let n=e.symbolLayers;if(!n)return;let a=(e,n=!1)=>{let a=t??e??null;return null!=r?.override&&(!a&&n&&(a=new i.A([255,255,255])),a&&(a.a=r.override)),d(a,r?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,r?.add));let t=null==e.material?null:e.material.color,i=a(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:i}):e.material.color=i,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=d(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=a(e.marker.color))})}(e,t,r):(0,p.$y)(e)&&function(e,t,r){t??=e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=d(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,r?.add))}(e,t,r))}function c(e){for(let t of e)if("number"==typeof t)return t;return null}function y(e,t,r){for(let i=0;i<3;i++){let n=e[i];switch(n){case"symbol-value":{let e=r[i];return null==e?1:e/t[i]}case"proportional":break;default:if(null!=n&&t[i])return n/t[i]}}return null}function f(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t??r;default:return e}}async function m(e,t){if(e&&t){if((0,p.wk)(e))return async function(e,t){let i=e.symbolLayers;i&&await(0,n.jJ)(i,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){let r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){let r=c(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){let r=y(t,a.Un,[e.width,void 0,e.height]);null!=r&&(e.width=f(t[0],e.width,1,r),e.height=f(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){let{resourceSize:i,symbolSize:n}=await async function(e){let{computeObjectLayerResourceSize:t}=await r.e(5404).then(()=>r(95404)),i=await t(e,10),{width:n,height:a,depth:s}=e,o=[n,s,a],l=1;for(let e=0;e<3;e++){let t=o[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)o[e]??(o[e]=i[e]*l);return{resourceSize:i,symbolSize:o}}(e),a=y(t,i,n);null!=a&&(e.width=f(t[0],n[0],i[0],a),e.depth=f(t[1],n[1],i[1],a),e.height=f(t[2],n[2],i[2],a))}(e,t)}}(e,t))}(e,t);(0,p.$y)(e)&&function(e,t){let r=c(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{let t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":(0,s.X5)(e,r,{preserveOutlineWidth:!1})}}(e,t)}}function g(e,t,r){if(e&&null!=t)if((0,p.wk)(e)){let i=e.symbolLayers;i&&i.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,p.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,s.KU)(e,t,!0)}}}}]);
@@ -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)}}]);