@agrotools1/at-components 0.2.1 → 0.2.3

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 (553) hide show
  1. package/dist/AGraphicContainer-98a4c8a4.js +109 -0
  2. package/dist/APIKeyMixin-9511e0a5.js +19 -0
  3. package/dist/Analysis-4b1d1fb5.js +31 -0
  4. package/dist/ArcGISCachedService-93e2cb27.js +47 -0
  5. package/dist/ArcGISService-3f8d89c1.js +25 -0
  6. package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
  7. package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
  8. package/dist/AttachmentInfo-601c56e2.js +34 -0
  9. package/dist/AttachmentQuery-3504d550.js +18 -0
  10. package/dist/AttributeStore-b90878e3.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
  12. package/dist/BindType-5e76c8e1.js +7 -0
  13. package/dist/BingMapsLayer-5d79fe2b.js +112 -0
  14. package/dist/Bitmap-f775c851.js +128 -0
  15. package/dist/BitmapContainer-af5942b8.js +23 -0
  16. package/dist/BlendLayer-a792edf6.js +13 -0
  17. package/dist/BoundsStore-789624df.js +63 -0
  18. package/dist/BufferObject-cbd0168e.js +100 -0
  19. package/dist/BufferView-004ad517.js +683 -0
  20. package/dist/BuildingSceneLayer-25bc760b.js +535 -0
  21. package/dist/Button/Button.d.ts +24 -2
  22. package/dist/Button-70963624.js +36 -0
  23. package/dist/ByteSizeUnit-90df2840.js +7 -0
  24. package/dist/CSVLayer-fd3b6750.js +208 -0
  25. package/dist/CSVSourceWorker-eb24cd85.js +367 -0
  26. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
  27. package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
  28. package/dist/CatalogLayer-1cc632fe.js +262 -0
  29. package/dist/CatalogLayerView2D-d143aa34.js +52 -0
  30. package/dist/Chips/index.d.ts +1 -0
  31. package/dist/CircularArray-b2bc1dfd.js +40 -0
  32. package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
  33. package/dist/ColorMaterial.glsl-e7801766.js +64 -0
  34. package/dist/ColorSet-df5696b5.js +45 -0
  35. package/dist/ColorStop-7187f368.js +29 -0
  36. package/dist/Container-ac97765a.js +521 -0
  37. package/dist/CustomParametersMixin-b3432b3e.js +12 -0
  38. package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
  39. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
  40. package/dist/DatePicker/index.d.ts +2 -0
  41. package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
  42. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
  43. package/dist/DefaultTheme-12dffc66.js +130 -0
  44. package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
  45. package/dist/DimensionLayer-9eb47c76.js +129 -0
  46. package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
  47. package/dist/DistanceMeasurement2D-a4853462.js +303 -0
  48. package/dist/DoubleArray-5076283e.js +25 -0
  49. package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
  50. package/dist/EditBusLayer-e812f4c9.js +107 -0
  51. package/dist/ElevationInfo-fad03d5e.js +56 -0
  52. package/dist/ElevationLayer-397792d5.js +129 -0
  53. package/dist/ElevationQuery-beceb62f.js +598 -0
  54. package/dist/ElevationSamplerWorker-0048a204.js +62 -0
  55. package/dist/ExportImageParameters-c6c4bc61.js +66 -0
  56. package/dist/ExportStrategy-908f5b8d.js +93 -0
  57. package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
  58. package/dist/External-14daf0c1.js +110 -0
  59. package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
  60. package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
  61. package/dist/FeatureEffect-08976bbd.js +39 -0
  62. package/dist/FeatureEffectLayer-05c258f4.js +13 -0
  63. package/dist/FeatureFilter-8c5e44b1.js +27 -0
  64. package/dist/FeatureLayer-d3659466.js +693 -0
  65. package/dist/FeatureLayerBase-9b63f732.js +148 -0
  66. package/dist/FeatureLayerSource-960f1c01.js +444 -0
  67. package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
  68. package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
  69. package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
  70. package/dist/FeatureReductionSelection-d90249a7.js +22 -0
  71. package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
  72. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
  73. package/dist/FeatureSet-d79f0e48.js +188 -0
  74. package/dist/FeatureStore-eb4b87c0.js +131 -0
  75. package/dist/FeatureTemplate-edb1b782.js +12 -0
  76. package/dist/FeatureType-bba29adb.js +25 -0
  77. package/dist/FieldsIndex-75cca4d0.js +109 -0
  78. package/dist/FormTemplate-22911c47.js +350 -0
  79. package/dist/GeoJSONLayer-b33c96b8.js +236 -0
  80. package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
  81. package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
  82. package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
  83. package/dist/GeometryUtils-fa897cbd.js +403 -0
  84. package/dist/GraphicContainer-1fd6bfce.js +26 -0
  85. package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
  86. package/dist/GraphicsLayer-e0686779.js +38 -0
  87. package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
  88. package/dist/GraphicsSnappingSource-594f402a.js +273 -0
  89. package/dist/GraphicsView2D-347562b8.js +620 -0
  90. package/dist/GroupLayer-7ae0a916.js +147 -0
  91. package/dist/GroupLayerView2D-ffcde606.js +98 -0
  92. package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
  93. package/dist/HighlightCounter-e18f0179.js +41 -0
  94. package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
  95. package/dist/I3SBinaryReader-190e99de.js +310 -0
  96. package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
  97. package/dist/I3SUtil-44b83dc0.js +59 -0
  98. package/dist/IdentityManager-fbe91c13.js +899 -0
  99. package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
  100. package/dist/ImageryLayer-67878a78.js +1799 -0
  101. package/dist/ImageryLayerView2D-ae45faba.js +352 -0
  102. package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
  103. package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
  104. package/dist/ImmutableArray-fb7b7a6a.js +20 -0
  105. package/dist/Indices-e6dc3b15.js +67 -0
  106. package/dist/Input/Input.core.d.ts +37 -11
  107. package/dist/Input/index.d.ts +37 -11
  108. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
  109. package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
  110. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
  111. package/dist/InterleavedLayout-32973c8a.js +163 -0
  112. package/dist/KMLLayer-80f81df7.js +162 -0
  113. package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
  114. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
  115. package/dist/LRUCache-27e8c401.js +32 -0
  116. package/dist/LabelClass-d9a476d6.js +135 -0
  117. package/dist/LabelMetric-e2728bbf.js +400 -0
  118. package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
  119. package/dist/Laserlines.glsl-499a6cbf.js +65 -0
  120. package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
  121. package/dist/LayerView-036988a9.js +206 -0
  122. package/dist/LercWorker-b1b4bb47.js +157 -0
  123. package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
  124. package/dist/LinkChartLayer-d61803bb.js +1027 -0
  125. package/dist/Lyr3DWorker-87be14e0.js +82 -0
  126. package/dist/MD5-1b5ec1c3.js +76 -0
  127. package/dist/MagnifierPrograms-da7a27ab.js +806 -0
  128. package/dist/Map/Map.d.ts +26 -0
  129. package/dist/Map/index.d.ts +1 -0
  130. package/dist/Map/types/index.d.ts +38 -0
  131. package/dist/Map/utils/index.d.ts +24 -0
  132. package/dist/MapImageLayer-f07adf1a.js +169 -0
  133. package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
  134. package/dist/MapNotesLayer-c662d147.js +283 -0
  135. package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
  136. package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
  137. package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
  138. package/dist/MediaLayer-36d873a3.js +523 -0
  139. package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
  140. package/dist/MemCache-a9232ec2.js +227 -0
  141. package/dist/MemorySourceWorker-20ff27d6.js +222 -0
  142. package/dist/Mesh-3839826a.js +980 -0
  143. package/dist/MeshLocalVertexSpace-00151564.js +19 -0
  144. package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
  145. package/dist/NestedMap-83f8e815.js +29 -0
  146. package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
  147. package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
  148. package/dist/ObjectStack-10d91171.js +21 -0
  149. package/dist/Octree-78797046.js +495 -0
  150. package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
  151. package/dist/OperationalLayer-55af27d6.js +44 -0
  152. package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
  153. package/dist/OptimizedGeometry-3b808152.js +68 -0
  154. package/dist/OrderByInfo-22e3c805.js +16 -0
  155. package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
  156. package/dist/OrderedLayer-1403a591.js +26 -0
  157. package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
  158. package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
  159. package/dist/OverrideHelper-82325a2c.js +242 -0
  160. package/dist/PBFDecoderWorker-f6517afc.js +213 -0
  161. package/dist/PointCloudLayer-cff43a10.js +197 -0
  162. package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
  163. package/dist/PointCloudWorker-cdb28dc1.js +212 -0
  164. package/dist/PooledRBush-ee4e60af.js +272 -0
  165. package/dist/Popup-c7f55588.js +3990 -0
  166. package/dist/PortalLayer-07b3c53e.js +126 -0
  167. package/dist/Program-ba2f18b2.js +694 -0
  168. package/dist/ProgramTemplate-eee4f097.js +35 -0
  169. package/dist/ProgressBar/ProgressBar.d.ts +0 -13
  170. package/dist/QueryEngine-10c97624.js +896 -0
  171. package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
  172. package/dist/QueryTask-115430b6.js +119 -0
  173. package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
  174. package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
  175. package/dist/RasterWorker-44c37e20.js +78 -0
  176. package/dist/RawBlockCache-25203dbd.js +185 -0
  177. package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
  178. package/dist/Rect-894f011c.js +14 -0
  179. package/dist/RefreshableLayer-9550b85a.js +80 -0
  180. package/dist/RefreshableLayerView-601f7038.js +16 -0
  181. package/dist/Relationship-c662830e.js +64 -0
  182. package/dist/RelationshipQuery-765f068e.js +22 -0
  183. package/dist/RenderState-b244097f.js +7 -0
  184. package/dist/RenderingContext-3db74548.js +889 -0
  185. package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
  186. package/dist/RouteLayer-3f5411f3.js +786 -0
  187. package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
  188. package/dist/SDFHelper-a34e90ee.js +140 -0
  189. package/dist/SSAO.glsl-5491a708.js +43 -0
  190. package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
  191. package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
  192. package/dist/SceneLayer-c594bfc3.js +542 -0
  193. package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
  194. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
  195. package/dist/SceneLayerWorker-1865768e.js +164 -0
  196. package/dist/SceneService-fb9f0142.js +215 -0
  197. package/dist/Scheduler-eacc84bb.js +373 -0
  198. package/dist/Select/Item/Item.d.ts +2 -1
  199. package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
  200. package/dist/Select/Select.core.d.ts +18 -15
  201. package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
  202. package/dist/Select/index.d.ts +42 -24
  203. package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
  204. package/dist/SnappingOperation-9622a00d.js +48 -0
  205. package/dist/SourceLayerData-7016f1a5.js +116 -0
  206. package/dist/SpatialFilter-d20d4f50.js +1701 -0
  207. package/dist/Stop-68022e32.js +281 -0
  208. package/dist/StreamLayer-7c837e3d.js +188 -0
  209. package/dist/StreamLayerView2D-586f5a6a.js +164 -0
  210. package/dist/StyleDefinition-f4862d5a.js +36 -0
  211. package/dist/StyleRepository-fba75e70.js +2212 -0
  212. package/dist/SublayersOwner-3dc574cd.js +545 -0
  213. package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
  214. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
  215. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  216. package/dist/TechniqueInstance-0481dbff.js +233 -0
  217. package/dist/TemporalLayer-8116b4a4.js +23 -0
  218. package/dist/Texture-22a8cca5.js +501 -0
  219. package/dist/TextureOnly.glsl-458f8148.js +65 -0
  220. package/dist/Theme-f05b8eb0.js +3426 -0
  221. package/dist/Tick-aef93b48.js +723 -0
  222. package/dist/TileContainer-0bf0ea1b.js +31 -0
  223. package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
  224. package/dist/TileLayer-0edee064.js +194 -0
  225. package/dist/TileLayerView2D-78d5801b.js +187 -0
  226. package/dist/TilemapCache-79699d61.js +189 -0
  227. package/dist/TimeInfo-40c96ade.js +42 -0
  228. package/dist/TimeOnly-9ee66ca6.js +706 -0
  229. package/dist/Tooltip-e7498dc9.js +138 -0
  230. package/dist/TopFeaturesQuery-ad224e01.js +32 -0
  231. package/dist/TurboLine-6ab04aef.js +565 -0
  232. package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
  233. package/dist/UnknownLayer-e280ddd4.js +30 -0
  234. package/dist/UnknownTimeZone-220952b5.js +15 -0
  235. package/dist/UnsupportedLayer-447f7676.js +31 -0
  236. package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
  237. package/dist/Util-002f5109.js +57 -0
  238. package/dist/VectorTileLayer-3210be81.js +544 -0
  239. package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
  240. package/dist/Version-3de8cbca.js +33 -0
  241. package/dist/VertexArrayObject-07998745.js +73 -0
  242. package/dist/VertexAttribute-faad30bf.js +11 -0
  243. package/dist/VertexColor.glsl-e415cf02.js +2683 -0
  244. package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
  245. package/dist/VertexSnappingCandidate-b676241f.js +13 -0
  246. package/dist/VideoLayerView2D-f659dd0d.js +124 -0
  247. package/dist/VoxelLayer-003f82ff.js +631 -0
  248. package/dist/WFSLayer-3da6c5f7.js +221 -0
  249. package/dist/WFSSourceWorker-9a11693a.js +157 -0
  250. package/dist/WGLContainer-3d159b63.js +5426 -0
  251. package/dist/WMSLayer-fc0632f8.js +536 -0
  252. package/dist/WMSLayerView2D-54e80e1b.js +117 -0
  253. package/dist/WMTSLayer-9324b12b.js +531 -0
  254. package/dist/WMTSLayerView2D-3ef936db.js +142 -0
  255. package/dist/WebTileLayer-45c563ff.js +110 -0
  256. package/dist/WhereClause-7a28b740.js +2766 -0
  257. package/dist/WorkerHandle-0d54a6c7.js +47 -0
  258. package/dist/WorkerTileHandler-786c2b24.js +1539 -0
  259. package/dist/action-163397e3.js +198 -0
  260. package/dist/action-group-4859fb97.js +145 -0
  261. package/dist/action-menu-2d70b2fc.js +1759 -0
  262. package/dist/agrotools-theme.css.map +1 -1
  263. package/dist/apng-9b71d52c.js +392 -0
  264. package/dist/ar-a17f8064.js +18 -0
  265. package/dist/arcade-fa309282.js +229 -0
  266. package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
  267. package/dist/arcadeUtils-f71d80fa.js +8741 -0
  268. package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
  269. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
  270. package/dist/arcgisLayers-b2b878bd.js +152 -0
  271. package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
  272. package/dist/axisAngleDegrees-32643b7c.js +49 -0
  273. package/dist/basicInterfaces-fa4f5fa7.js +30 -0
  274. package/dist/basis_transcoder-3187cc92.js +1248 -0
  275. package/dist/bg_BG-9950a70b.js +18 -0
  276. package/dist/bs_BA-60482871.js +18 -0
  277. package/dist/ca_ES-a121088e.js +18 -0
  278. package/dist/calcite-action-bar-5a87c23c.js +303 -0
  279. package/dist/calcite-action-ee2ca847.js +22 -0
  280. package/dist/calcite-action-group-19aa86ee.js +28 -0
  281. package/dist/calcite-button-8e9175c0.js +228 -0
  282. package/dist/calcite-flow-57d26d2d.js +128 -0
  283. package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
  284. package/dist/calcite-icon-d99e280a.js +16 -0
  285. package/dist/calcite-input-28b20785.js +24 -0
  286. package/dist/calcite-label-4f30e08d.js +79 -0
  287. package/dist/calcite-list-0cee7628.js +2135 -0
  288. package/dist/calcite-list-item-0a19efa8.js +576 -0
  289. package/dist/calcite-list-item-group-0706662f.js +71 -0
  290. package/dist/calcite-loader-865045b1.js +14 -0
  291. package/dist/calcite-modal-3e4da6fd.js +333 -0
  292. package/dist/calcite-notice-50b74ab7.js +181 -0
  293. package/dist/calcite-option-713c1d40.js +94 -0
  294. package/dist/calcite-scrim-809fbd0b.js +18 -0
  295. package/dist/calcite-select-28d8edfc.js +231 -0
  296. package/dist/capabilities-c8f838be.js +50 -0
  297. package/dist/chartCommon-13718cda.js +256 -0
  298. package/dist/chartUtilsAm5-6be145fb.js +2954 -0
  299. package/dist/clientSideDefaults-5c1f97c9.js +39 -0
  300. package/dist/colorRamps-8792655e.js +38 -0
  301. package/dist/colorUtils-54f4b662.js +164 -0
  302. package/dist/commonProperties-f9559903.js +60 -0
  303. package/dist/component-51a10bc0.js +18 -0
  304. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
  305. package/dist/conditionalSlot-87175989.js +27 -0
  306. package/dist/config-61215215.js +7 -0
  307. package/dist/constants-5bd557fe.js +5 -0
  308. package/dist/createConnection-f974a00a.js +299 -0
  309. package/dist/crsUtils-59933b10.js +7 -0
  310. package/dist/cs_CZ-1b968650.js +18 -0
  311. package/dist/da_DK-e0fe1642.js +18 -0
  312. package/dist/dataUtils-7c276b73.js +1421 -0
  313. package/dist/date-1c28c6a5.js +52 -0
  314. package/dist/de_CH-b0dbd4c8.js +6 -0
  315. package/dist/de_DE-8609ef65.js +6 -0
  316. package/dist/debounce-de27a42a.js +121 -0
  317. package/dist/deduplicate-59fb9cac.js +89 -0
  318. package/dist/defaults-2bfa4a36.js +31 -0
  319. package/dist/defaultsJSON-ba17aa15.js +10 -0
  320. package/dist/definitions-a00a3a6c.js +52 -0
  321. package/dist/deleteForwardEdits-f653b513.js +13 -0
  322. package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
  323. package/dist/diffUtils-e71a6152.js +90 -0
  324. package/dist/dom-b589b728.js +358 -0
  325. package/dist/doublePrecisionUtils-46e21550.js +22 -0
  326. package/dist/drapedUtils-b42fcbc6.js +75 -0
  327. package/dist/earcut-6fa1a128.js +292 -0
  328. package/dist/edgeProcessing-2ff1f201.js +252 -0
  329. package/dist/editingSupport-68545668.js +203 -0
  330. package/dist/editsZScale-c7cdd215.js +37 -0
  331. package/dist/el_GR-5cfd1e7e.js +18 -0
  332. package/dist/elevationInfoUtils-5456a079.js +126 -0
  333. package/dist/en_CA-47f2633b.js +18 -0
  334. package/dist/en_US-47f2633b.js +18 -0
  335. package/dist/enums-25d066fc.js +13 -0
  336. package/dist/enums-2c166c09.js +99 -0
  337. package/dist/enums-fa8f05ab.js +152 -0
  338. package/dist/es_ES-489878a2.js +6 -0
  339. package/dist/et_EE-6472669a.js +18 -0
  340. package/dist/executeForIds-4ab75c0d.js +14 -0
  341. package/dist/executeForTopCount-7e095ec1.js +17 -0
  342. package/dist/executeForTopExtents-19daf9d0.js +17 -0
  343. package/dist/executeForTopIds-1ba3a4af.js +17 -0
  344. package/dist/executeQueryJSON-46168866.js +15 -0
  345. package/dist/executeQueryPBF-d8623daf.js +152 -0
  346. package/dist/executeRelationshipQuery-011dfb45.js +53 -0
  347. package/dist/executeTopFeaturesQuery-02166801.js +18 -0
  348. package/dist/featureConversionUtils-650d7601.js +479 -0
  349. package/dist/featureLayerUtils-64e09283.js +142 -0
  350. package/dist/featureLayerUtils-b07f9c11.js +250 -0
  351. package/dist/featureSetUtils-9d37d6f8.js +2530 -0
  352. package/dist/featuresetbase-62aeb079.js +707 -0
  353. package/dist/featuresetgeom-51f9fc4e.js +99 -0
  354. package/dist/featuresetstats-4db32894.js +81 -0
  355. package/dist/featuresetstring-990c3287.js +95 -0
  356. package/dist/fetchService-5198dd4a.js +33 -0
  357. package/dist/fi_FI-d7a3a525.js +18 -0
  358. package/dist/fieldProperties-edfa24cb.js +33 -0
  359. package/dist/floatRGBA-516d7961.js +20 -0
  360. package/dist/floorFilterUtils-936f7587.js +19 -0
  361. package/dist/focusTrapComponent-e849bb89.js +475 -0
  362. package/dist/form-99719d52.js +138 -0
  363. package/dist/fr_FR-a88f2596.js +7 -0
  364. package/dist/geohashUtils-2bc76440.js +85 -0
  365. package/dist/geojson-603231df.js +208 -0
  366. package/dist/geomasync-e9063b4c.js +567 -0
  367. package/dist/geometryEngine-d3bb2fd6.js +192 -0
  368. package/dist/geometryEngineAsync-55aa6170.js +217 -0
  369. package/dist/geometryEngineBase-527e8b63.js +18463 -0
  370. package/dist/geometryEngineJSON-28087174.js +46 -0
  371. package/dist/geometryEngineJSON-d54949f9.js +171 -0
  372. package/dist/geometryEngineWorker-dc2c7127.js +11 -0
  373. package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
  374. package/dist/georeference-ed8b2c30.js +291 -0
  375. package/dist/gif-204e82dd.js +323 -0
  376. package/dist/glUtil-8f8bce6b.js +19 -0
  377. package/dist/gltfexport-b2566542.js +705 -0
  378. package/dist/groupLayerUtils-ea9e6359.js +39 -0
  379. package/dist/guid-5ee54248.js +17 -0
  380. package/dist/he_IL-e34cf273.js +18 -0
  381. package/dist/heatmapUtils-56758920.js +45 -0
  382. package/dist/highlightReasons-de432106.js +19 -0
  383. package/dist/hr_HR-6a124f87.js +18 -0
  384. package/dist/hu_HU-58f3feb6.js +18 -0
  385. package/dist/hydrated-0e1c7565.js +40 -0
  386. package/dist/i3s-bb0b5b67.js +809 -0
  387. package/dist/icon-c6e3bd23.js +127 -0
  388. package/dist/id_ID-18d97715.js +18 -0
  389. package/dist/imageBitmapUtils-881d8c64.js +23 -0
  390. package/dist/imageUtils-57eeedc5.js +69 -0
  391. package/dist/imageUtils-ef69c578.js +89 -0
  392. package/dist/imageryUtils-23f51cb1.js +43 -0
  393. package/dist/index-01c737ed.js +42563 -0
  394. package/dist/index.d.ts +2 -1
  395. package/dist/index.js +22 -10184
  396. package/dist/infoFor3D-bf4e6c95.js +58 -0
  397. package/dist/input-message-673a9baa.js +92 -0
  398. package/dist/input2-bbf6454e.js +575 -0
  399. package/dist/interactive-aeb2cb9f.js +80 -0
  400. package/dist/interfaces-fac3cfda.js +7 -0
  401. package/dist/it_IT-49e70bbf.js +6 -0
  402. package/dist/ja_JP-eaef2cc3.js +18 -0
  403. package/dist/json-5febf88a.js +57 -0
  404. package/dist/jsonContext-2dc288b1.js +15 -0
  405. package/dist/jsonUtils-1abd4bfc.js +59 -0
  406. package/dist/jsonUtils-913fa1bd.js +86 -0
  407. package/dist/jsonUtils-f6a5e63b.js +476 -0
  408. package/dist/kmlUtils-7c2744fe.js +112 -0
  409. package/dist/knowledgeGraphService-6a349e04.js +739 -0
  410. package/dist/knowledgegraph-c91b0bb2.js +149 -0
  411. package/dist/ko_KR-5c972fd8.js +14 -0
  412. package/dist/label2-1ab25f27.js +90 -0
  413. package/dist/labelUtils-a3634e8f.js +61 -0
  414. package/dist/labelingInfo-568c9210.js +46 -0
  415. package/dist/layerViewUtils-052e603c.js +10 -0
  416. package/dist/layersCreator-4a5366ea.js +151 -0
  417. package/dist/layersLoader-b87d4857.js +197 -0
  418. package/dist/lazyLayerLoader-8817000c.js +10 -0
  419. package/dist/lclayout-64c67b4e.js +773 -0
  420. package/dist/lengthUtils-695e744c.js +5 -0
  421. package/dist/lerc-wasm-13192bf3.js +325 -0
  422. package/dist/libtess-asm-4883179d.js +3673 -0
  423. package/dist/libtess-fc70d1ce.js +269 -0
  424. package/dist/lineSegment-3aa941f5.js +76 -0
  425. package/dist/loadGLTFMesh-db6645f5.js +181 -0
  426. package/dist/loadable-266f324b.js +24 -0
  427. package/dist/loader-d1ce1bc1.js +79 -0
  428. package/dist/lt_LT-26f13fd1.js +6 -0
  429. package/dist/lv_LV-4feafa92.js +18 -0
  430. package/dist/lyr3DWorker-dd48e619.js +2108 -0
  431. package/dist/mapViewDeps-226d9da3.js +3052 -0
  432. package/dist/mask-svg-30f64a7b.js +4 -0
  433. package/dist/mat3f64-03233387.js +19 -0
  434. package/dist/mat4f64-cce69db4.js +19 -0
  435. package/dist/mediaLayerUtils-ae485c27.js +35 -0
  436. package/dist/meshFeatureSet-8a2ad011.js +126 -0
  437. package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
  438. package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
  439. package/dist/multidimensionalUtils-508a3f3f.js +290 -0
  440. package/dist/nb_NO-21543153.js +18 -0
  441. package/dist/nl_NL-7876d97f.js +7 -0
  442. package/dist/normalizeUtilsSync-1dae280b.js +181 -0
  443. package/dist/number-5aa3a81b.js +128 -0
  444. package/dist/objectIdUtils-93dae423.js +14 -0
  445. package/dist/objectResourceUtils-642ab03e.js +1455 -0
  446. package/dist/observers-f646a6a4.js +30 -0
  447. package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
  448. package/dist/openCloseComponent-47eb52c6.js +37 -0
  449. package/dist/orientedBoundingBox-554ccdc6.js +447 -0
  450. package/dist/originUtils-87edf087.js +9 -0
  451. package/dist/overlay-svg-c3941b3b.js +4 -0
  452. package/dist/parser-0701286c.js +488 -0
  453. package/dist/pbf-5dd791f5.js +215 -0
  454. package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
  455. package/dist/pe-wasm-6c16b121.js +887 -0
  456. package/dist/persistable-9eb0e8df.js +89 -0
  457. package/dist/perspectiveUtils-b194621d.js +42 -0
  458. package/dist/pieChart-b97433d0.js +555 -0
  459. package/dist/pl_PL-276c6dae.js +18 -0
  460. package/dist/plane-3398eec1.js +160 -0
  461. package/dist/popupUtils-c444b896.js +22 -0
  462. package/dist/popupUtils-d871563b.js +50 -0
  463. package/dist/portalItemUtils-4c4caad0.js +57 -0
  464. package/dist/portalLayers-cb07742f.js +312 -0
  465. package/dist/portalUtils-effd590f.js +7 -0
  466. package/dist/programUtils-65af7b7c.js +59 -0
  467. package/dist/project-ee9c2947.js +21 -0
  468. package/dist/projectPointToVector-7dc831a9.js +14 -0
  469. package/dist/projectVectorToVector-5163db7a.js +13 -0
  470. package/dist/pt_BR-4fae3055.js +6 -0
  471. package/dist/pt_PT-14d9efb1.js +6 -0
  472. package/dist/quantityUtils-5cd4cf90.js +33 -0
  473. package/dist/quantizationUtils-0a8f74c6.js +68 -0
  474. package/dist/quat-a508aed3.js +104 -0
  475. package/dist/quatf64-bec1af25.js +19 -0
  476. package/dist/query-b6e1fd14.js +89 -0
  477. package/dist/queryAttachments-7b39ebdc.js +39 -0
  478. package/dist/queryEngineUtils-cb8e309e.js +21 -0
  479. package/dist/queryTopFeatures-2e0e3941.js +50 -0
  480. package/dist/queryZScale-c5733d0a.js +12 -0
  481. package/dist/rasterProjectionHelper-213afa27.js +577 -0
  482. package/dist/rasterUtils-f2e44e8b.js +122 -0
  483. package/dist/rasterizingUtils-25cc0190.js +46 -0
  484. package/dist/request-e0c679b3.js +46 -0
  485. package/dist/requestImageUtils-37d79281.js +8 -0
  486. package/dist/resourceExtension-5f3f1c80.js +17 -0
  487. package/dist/resourceUtils-0d68cbc2.js +69 -0
  488. package/dist/resourceUtils-374db840.js +62 -0
  489. package/dist/resourceUtils-43ce192b.js +42 -0
  490. package/dist/ro_RO-8e733cf5.js +18 -0
  491. package/dist/ru_RU-f7bafc90.js +6 -0
  492. package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
  493. package/dist/saveUtils-43fdc547.js +24 -0
  494. package/dist/scaleUtils-bdf8b6cb.js +23 -0
  495. package/dist/scrim-44eb4dc0.js +114 -0
  496. package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
  497. package/dist/sizeVariableUtils-a1b694d8.js +27 -0
  498. package/dist/sk_SK-c279eea3.js +6 -0
  499. package/dist/sl_SL-e40950dd.js +6 -0
  500. package/dist/sourceUtils-01d115c6.js +71 -0
  501. package/dist/sphere-908cd9aa.js +199 -0
  502. package/dist/sr_RS-b1835dfa.js +18 -0
  503. package/dist/statsWorker-49f9befe.js +37 -0
  504. package/dist/streamLayerUtils-29324e05.js +31 -0
  505. package/dist/style.css +1 -1
  506. package/dist/styleUtils-82e8da52.js +75 -0
  507. package/dist/styleUtils-8541d60d.js +14 -0
  508. package/dist/sublayerUtils-eaac2486.js +37 -0
  509. package/dist/substitute-1f578d70.js +52 -0
  510. package/dist/sv_SE-15ca9e36.js +6 -0
  511. package/dist/symbolColorUtils-18fd6b3d.js +8 -0
  512. package/dist/symbolLayerUtils-4c58b291.js +31 -0
  513. package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
  514. package/dist/t9n-c1c2b6c8.js +349 -0
  515. package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
  516. package/dist/th_TH-bf624a56.js +18 -0
  517. package/dist/tileUtils-3e0c8c1d.js +7 -0
  518. package/dist/timeSupport-3f529cdb.js +410 -0
  519. package/dist/tr_TR-ca5c315f.js +18 -0
  520. package/dist/triangle-8a3a2ba8.js +98 -0
  521. package/dist/types-adba9034.js +19 -0
  522. package/dist/uk_UA-4b3cb86d.js +6 -0
  523. package/dist/unitConversionUtils-f0ebaf75.js +17 -0
  524. package/dist/unitFormatUtils-555e2d94.js +40 -0
  525. package/dist/uploadAssetErrors-d1389781.js +70 -0
  526. package/dist/uploadAssets-5e85f09d.js +330 -0
  527. package/dist/utils-3a10b10c.js +34 -0
  528. package/dist/utils-505c54e9.js +91 -0
  529. package/dist/utils-5432e258.js +433 -0
  530. package/dist/utils-7a88ec6a.js +419 -0
  531. package/dist/utils-7fa9cdf9.js +2746 -0
  532. package/dist/utils-d252c575.js +73 -0
  533. package/dist/utils-f07e00b3.js +232 -0
  534. package/dist/utils-fda10b4b.js +79 -0
  535. package/dist/utils3-c34ab97c.js +75 -0
  536. package/dist/vec3-f79c600d.js +81 -0
  537. package/dist/vec3f32-304a6a9c.js +36 -0
  538. package/dist/vec42-36edeb73.js +125 -0
  539. package/dist/vec4f32-b2628ced.js +38 -0
  540. package/dist/vec4f64-043e974c.js +45 -0
  541. package/dist/versionUtils-6935648b.js +161 -0
  542. package/dist/vi_VN-ad09e708.js +18 -0
  543. package/dist/visualVariableUtils-c425461a.js +267 -0
  544. package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
  545. package/dist/webglDeps-5f18210d.js +23 -0
  546. package/dist/wfsUtils-6f7f1e3e.js +343 -0
  547. package/dist/workerHelper-9dc9a790.js +11 -0
  548. package/dist/xmlUtils-64cc47e1.js +24 -0
  549. package/dist/xyChart-e5648fee.js +3335 -0
  550. package/dist/zh_Hans-61faef57.js +14 -0
  551. package/dist/zh_Hant-87a9767b.js +14 -0
  552. package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
  553. package/package.json +3 -2
@@ -0,0 +1,1421 @@
1
+ import { e as q, y as X, ei as Dt, c as Rt, bx as Lt, W as Nt, bz as Et, s as Z, bu as jt, aO as nt, bJ as Ot, aH as Gt, b3 as Wt, hN as Ut, bF as qt } from "./index-01c737ed.js";
2
+ let gt = class {
3
+ constructor(e = null, n = null, r = null) {
4
+ this.minValue = e, this.maxValue = n, this.noDataValue = r;
5
+ }
6
+ };
7
+ const zt = 9999999e31, Xt = 2e-7, Jt = { 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 };
8
+ function ht(t) {
9
+ return Jt[t] ?? [-34028234663852886e22, 34028234663852886e22];
10
+ }
11
+ function xe(t, e) {
12
+ return t == null || e == null ? "s32" : t < 0 ? t >= -128 && e < 128 ? "s8" : t >= -32768 && e < 32768 ? "s16" : "s32" : e < 256 ? "u8" : e < 65536 ? "u16" : "u32";
13
+ }
14
+ function we(t) {
15
+ return ((t == null ? void 0 : t.startsWith("s")) || (t == null ? void 0 : t.startsWith("u"))) ?? !1;
16
+ }
17
+ function ye(t, e, n) {
18
+ var p, f;
19
+ if (t.depthCount && t.depthCount > 1)
20
+ return;
21
+ const { pixels: r, statistics: a, pixelType: i } = t, o = r[0].length, u = t.bandMasks ?? [], h = t.mask ?? new Uint8Array(o).fill(255), s = i === "f32" || i === "f64", l = ht(i);
22
+ let c = !1;
23
+ for (let d = 0; d < r.length; d++) {
24
+ const m = typeof e == "number" ? e : e[d];
25
+ if (m == null)
26
+ continue;
27
+ const x = ((p = a == null ? void 0 : a[d]) == null ? void 0 : p.minValue) ?? l[0], w = ((f = a == null ? void 0 : a[d]) == null ? void 0 : f.maxValue) ?? l[1];
28
+ if (x > m + Number.EPSILON || w < m - Number.EPSILON)
29
+ continue;
30
+ const A = u[d] || h.slice(), k = r[d], M = n == null ? void 0 : n.customFloatTolerance;
31
+ if (s && M !== 0) {
32
+ let g = M;
33
+ g || (g = Math.abs(m) >= zt ? Xt * Math.abs(m) : i === "f32" ? 2 ** -23 : Number.EPSILON);
34
+ for (let y = 0; y < k.length; y++)
35
+ A[y] && Math.abs(k[y] - m) < g && (k[y] = 0, A[y] = 0, h[y] = 0, c = !0);
36
+ } else
37
+ for (let g = 0; g < k.length; g++)
38
+ A[g] && k[g] === m && (k[g] = 0, A[g] = 0, h[g] = 0, c = !0);
39
+ u[d] = A;
40
+ }
41
+ c && (t.bandMasks = t.bandMasks || t.pixels.length > 1 ? u : null, t.mask = h), c && "updateStatistics" in t && t.updateStatistics();
42
+ }
43
+ var K;
44
+ let O = K = class extends Lt {
45
+ static createEmptyBand(t, e) {
46
+ return new (K.getPixelArrayConstructor(t))(e);
47
+ }
48
+ static combineBandMasks(t) {
49
+ if (t.length < 2)
50
+ return t[0];
51
+ const e = t[0].length, n = new Uint8Array(e).fill(255);
52
+ for (let r = 0; r < t.length; r++) {
53
+ const a = t[r];
54
+ for (let i = 0; i < e; i++)
55
+ a[i] || (n[i] = 0);
56
+ }
57
+ return n;
58
+ }
59
+ static getPixelArrayConstructor(t) {
60
+ let e;
61
+ switch (t) {
62
+ case "u1":
63
+ case "u2":
64
+ case "u4":
65
+ case "u8":
66
+ e = Uint8Array;
67
+ break;
68
+ case "u16":
69
+ e = Uint16Array;
70
+ break;
71
+ case "u32":
72
+ e = Uint32Array;
73
+ break;
74
+ case "s8":
75
+ e = Int8Array;
76
+ break;
77
+ case "s16":
78
+ e = Int16Array;
79
+ break;
80
+ case "s32":
81
+ e = Int32Array;
82
+ break;
83
+ case "f32":
84
+ case "c64":
85
+ case "c128":
86
+ case "unknown":
87
+ e = Float32Array;
88
+ break;
89
+ case "f64":
90
+ e = Float64Array;
91
+ }
92
+ return e;
93
+ }
94
+ constructor(t) {
95
+ super(t), 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;
96
+ }
97
+ castPixelType(t) {
98
+ if (!t)
99
+ return "f32";
100
+ let e = t.toLowerCase();
101
+ return ["u1", "u2", "u4"].includes(e) ? e = "u8" : ["unknown", "u8", "s8", "u16", "s16", "u32", "s32", "f32", "f64"].includes(e) || (e = "f32"), e;
102
+ }
103
+ getPlaneCount() {
104
+ var t;
105
+ return (t = this.pixels) == null ? void 0 : t.length;
106
+ }
107
+ addData(t) {
108
+ if (!t.pixels || t.pixels.length !== this.width * this.height)
109
+ throw new Nt("pixelblock:invalid-or-missing-pixels", "add data requires valid pixels array that has same length defined by pixel block width * height");
110
+ this.pixels || (this.pixels = []), this.statistics || (this.statistics = []), this.pixels.push(t.pixels), this.statistics.push(t.statistics ?? new gt());
111
+ }
112
+ getAsRGBA() {
113
+ const t = new ArrayBuffer(this.width * this.height * 4);
114
+ switch (this.pixelType) {
115
+ case "s8":
116
+ case "s16":
117
+ case "u16":
118
+ case "s32":
119
+ case "u32":
120
+ case "f32":
121
+ case "f64":
122
+ this._fillFromNon8Bit(t);
123
+ break;
124
+ default:
125
+ this._fillFrom8Bit(t);
126
+ }
127
+ return new Uint8ClampedArray(t);
128
+ }
129
+ getAsRGBAFloat() {
130
+ const t = new Float32Array(this.width * this.height * 4);
131
+ return this._fillFrom32Bit(t), t;
132
+ }
133
+ updateStatistics() {
134
+ if (!this.pixels)
135
+ return;
136
+ this.statistics = this.pixels.map((n) => this._calculateBandStatistics(n, this.mask));
137
+ const t = this.mask;
138
+ let e = 0;
139
+ if (t != null)
140
+ for (let n = 0; n < t.length; n++)
141
+ t[n] && e++;
142
+ else
143
+ e = this.width * this.height;
144
+ this.validPixelCount = e;
145
+ }
146
+ clamp(t) {
147
+ if (!t || t === "f64" || t === "f32" || !this.pixels)
148
+ return;
149
+ const [e, n] = ht(t), r = this.pixels, a = this.width * this.height, i = r.length;
150
+ let o, u, h;
151
+ const s = [];
152
+ for (let l = 0; l < i; l++) {
153
+ h = K.createEmptyBand(t, a), o = r[l];
154
+ for (let c = 0; c < a; c++)
155
+ u = o[c], h[c] = u > n ? n : u < e ? e : u;
156
+ s.push(h);
157
+ }
158
+ this.pixels = s, this.pixelType = t;
159
+ }
160
+ extractBands(t) {
161
+ var c;
162
+ const { pixels: e, statistics: n } = this;
163
+ if (t == null || t.length === 0 || !e || e.length === 0)
164
+ return this;
165
+ const r = e.length, a = t.some((p) => p >= e.length), i = r === t.length && !t.some((p, f) => p !== f);
166
+ if (a || i)
167
+ return this;
168
+ const o = ((c = this.bandMasks) == null ? void 0 : c.length) === r ? t.map((p) => this.bandMasks[p]) : void 0;
169
+ let { mask: u, validPixelCount: h } = this;
170
+ const { width: s, height: l } = this;
171
+ return o != null && o.length && (u = K.combineBandMasks(o), h = u.filter((p) => !!p).length), new K({ pixelType: this.pixelType, width: s, height: l, mask: u, bandMasks: o, validPixelCount: h, maskIsAlpha: this.maskIsAlpha, pixels: t.map((p) => e[p]), statistics: n && t.map((p) => n[p]) });
172
+ }
173
+ clone() {
174
+ const t = new K({ width: this.width, height: this.height, pixelType: this.pixelType, maskIsAlpha: this.maskIsAlpha, validPixelCount: this.validPixelCount });
175
+ let e;
176
+ this.mask != null && (this.mask instanceof Uint8Array ? t.mask = new Uint8Array(this.mask) : t.mask = this.mask.slice(0)), this.bandMasks && (t.bandMasks = this.bandMasks.map((r) => new Uint8Array(r)));
177
+ const n = K.getPixelArrayConstructor(this.pixelType);
178
+ if (this.pixels && this.pixels.length > 0) {
179
+ t.pixels = [];
180
+ const r = !!this.pixels[0].slice;
181
+ for (e = 0; e < this.pixels.length; e++)
182
+ t.pixels[e] = r ? this.pixels[e].slice(0, this.pixels[e].length) : new n(this.pixels[e]);
183
+ }
184
+ if (this.statistics)
185
+ for (t.statistics = [], e = 0; e < this.statistics.length; e++)
186
+ t.statistics[e] = Et(this.statistics[e]);
187
+ return t.premultiplyAlpha = this.premultiplyAlpha, t;
188
+ }
189
+ _fillFrom8Bit(t) {
190
+ const { mask: e, maskIsAlpha: n, premultiplyAlpha: r, pixels: a } = this;
191
+ if (!t || !(a != null && a.length))
192
+ return void Z.getLogger(this).error("getAsRGBA()", "Unable to convert to RGBA. The input pixel block is empty.");
193
+ let i, o, u, h;
194
+ i = o = u = a[0], a.length >= 3 ? (o = a[1], u = a[2]) : a.length === 2 && (o = a[1]);
195
+ const s = new Uint32Array(t), l = this.width * this.height;
196
+ if (i.length === l)
197
+ if (e != null && e.length === l)
198
+ if (n)
199
+ for (h = 0; h < l; h++) {
200
+ const c = e[h];
201
+ if (c) {
202
+ const p = c / 255;
203
+ s[h] = r ? c << 24 | u[h] * p << 16 | o[h] * p << 8 | i[h] * p : c << 24 | u[h] << 16 | o[h] << 8 | i[h];
204
+ }
205
+ }
206
+ else
207
+ for (h = 0; h < l; h++)
208
+ e[h] && (s[h] = 255 << 24 | u[h] << 16 | o[h] << 8 | i[h]);
209
+ else
210
+ for (h = 0; h < l; h++)
211
+ s[h] = 255 << 24 | u[h] << 16 | o[h] << 8 | i[h];
212
+ else
213
+ Z.getLogger(this).error("getAsRGBA()", "Unable to convert to RGBA. The pixelblock is invalid.");
214
+ }
215
+ _fillFromNon8Bit(t) {
216
+ const { pixels: e, mask: n, statistics: r } = this;
217
+ if (!t || !(e != null && e.length))
218
+ return void Z.getLogger(this).error("getAsRGBA()", "Unable to convert to RGBA. The input pixel block is empty.");
219
+ const a = this.pixelType;
220
+ let i = 1, o = 0, u = 1;
221
+ if (r && r.length > 0) {
222
+ for (const m of r)
223
+ if (m.minValue != null && (o = Math.min(o, m.minValue)), m.maxValue != null && m.minValue != null) {
224
+ const x = m.maxValue - m.minValue;
225
+ u = Math.max(u, x);
226
+ }
227
+ i = 255 / u;
228
+ } else {
229
+ let m = 255;
230
+ a === "s8" ? (o = -128, m = 127) : a === "u16" ? m = 65535 : a === "s16" ? (o = -32768, m = 32767) : a === "u32" ? m = 4294967295 : a === "s32" ? (o = -2147483648, m = 2147483647) : a === "f32" ? (o = -34e38, m = 34e38) : a === "f64" && (o = -Number.MAX_VALUE, m = Number.MAX_VALUE), i = 255 / (m - o);
231
+ }
232
+ const h = new Uint32Array(t), s = this.width * this.height;
233
+ let l, c, p, f, d;
234
+ if (l = c = p = e[0], l.length !== s)
235
+ return Z.getLogger(this).error("getAsRGBA()", "Unable to convert to RGBA. The pixelblock is invalid.");
236
+ if (e.length >= 2)
237
+ if (c = e[1], e.length >= 3 && (p = e[2]), n != null && n.length === s)
238
+ for (f = 0; f < s; f++)
239
+ n[f] && (h[f] = 255 << 24 | (p[f] - o) * i << 16 | (c[f] - o) * i << 8 | (l[f] - o) * i);
240
+ else
241
+ for (f = 0; f < s; f++)
242
+ h[f] = 255 << 24 | (p[f] - o) * i << 16 | (c[f] - o) * i << 8 | (l[f] - o) * i;
243
+ else if (n != null && n.length === s)
244
+ for (f = 0; f < s; f++)
245
+ d = (l[f] - o) * i, n[f] && (h[f] = 255 << 24 | d << 16 | d << 8 | d);
246
+ else
247
+ for (f = 0; f < s; f++)
248
+ d = (l[f] - o) * i, h[f] = 255 << 24 | d << 16 | d << 8 | d;
249
+ }
250
+ _fillFrom32Bit(t) {
251
+ const { pixels: e, mask: n } = this;
252
+ if (!t || !(e != null && e.length))
253
+ return Z.getLogger(this).error("getAsRGBAFloat()", "Unable to convert to RGBA. The input pixel block is empty.");
254
+ let r, a, i, o;
255
+ r = a = i = e[0], e.length >= 3 ? (a = e[1], i = e[2]) : e.length === 2 && (a = e[1]);
256
+ const u = this.width * this.height;
257
+ if (r.length !== u)
258
+ return Z.getLogger(this).error("getAsRGBAFloat()", "Unable to convert to RGBA. The pixelblock is invalid.");
259
+ let h = 0;
260
+ if (n != null && n.length === u)
261
+ for (o = 0; o < u; o++)
262
+ t[h++] = r[o], t[h++] = a[o], t[h++] = i[o], t[h++] = 1 & n[o];
263
+ else
264
+ for (o = 0; o < u; o++)
265
+ t[h++] = r[o], t[h++] = a[o], t[h++] = i[o], t[h++] = 1;
266
+ }
267
+ _calculateBandStatistics(t, e) {
268
+ let n = 1 / 0, r = -1 / 0;
269
+ const a = t.length;
270
+ let i, o = 0;
271
+ if (e != null)
272
+ for (i = 0; i < a; i++)
273
+ e[i] && (o = t[i], n = o < n ? o : n, r = o > r ? o : r);
274
+ else
275
+ for (i = 0; i < a; i++)
276
+ o = t[i], n = o < n ? o : n, r = o > r ? o : r;
277
+ return new gt(n, r);
278
+ }
279
+ };
280
+ q([X({ json: { write: !0 } })], O.prototype, "width", void 0), q([X({ json: { write: !0 } })], O.prototype, "height", void 0), q([X({ json: { write: !0 } })], O.prototype, "pixelType", void 0), q([Dt("pixelType")], O.prototype, "castPixelType", null), q([X({ json: { write: !0 } })], O.prototype, "validPixelCount", void 0), q([X({ json: { write: !0 } })], O.prototype, "mask", void 0), q([X({ json: { write: !0 } })], O.prototype, "maskIsAlpha", void 0), q([X({ json: { write: !0 } })], O.prototype, "pixels", void 0), q([X()], O.prototype, "premultiplyAlpha", void 0), q([X({ json: { write: !0 } })], O.prototype, "statistics", void 0), q([X({ json: { write: !0 } })], O.prototype, "depthCount", void 0), q([X({ json: { write: !0 } })], O.prototype, "noDataValues", void 0), q([X({ json: { write: !0 } })], O.prototype, "bandMasks", void 0), O = K = q([Rt("esri.layers.support.PixelBlock")], O);
281
+ const _ = O;
282
+ var xt, wt;
283
+ (function(t) {
284
+ t[t.matchAny = 0] = "matchAny", t[t.matchAll = 1] = "matchAll";
285
+ })(xt || (xt = {})), function(t) {
286
+ t[t.bestMatch = 0] = "bestMatch", t[t.fail = 1] = "fail";
287
+ }(wt || (wt = {}));
288
+ const ke = 6;
289
+ function R(t) {
290
+ return t != null && t.declaredClass === "esri.layers.support.PixelBlock" && t.pixels && t.pixels.length > 0;
291
+ }
292
+ function Me(t) {
293
+ var l;
294
+ if (!(t != null && t.length) || t.some((c) => !R(c)))
295
+ return null;
296
+ if (t.length === 1)
297
+ return ((l = t[0]) == null ? void 0 : l.clone()) ?? null;
298
+ const e = t, { width: n, height: r, pixelType: a } = e[0];
299
+ if (e.some((c) => c.width !== n || c.height !== r))
300
+ return null;
301
+ const i = e.map(({ mask: c }) => c).filter((c) => c != null);
302
+ let o = null;
303
+ i.length && (o = new Uint8Array(n * r), o.set(i[0]), i.length > 1 && $t(i.slice(1), o));
304
+ const u = [];
305
+ e.forEach(({ pixels: c }) => u.push(...c));
306
+ const h = e.map(({ statistics: c }) => c).filter((c) => c == null ? void 0 : c.length), s = [];
307
+ return h.forEach((c) => s.push(...c)), new _({ pixelType: a, width: n, height: r, mask: o, pixels: u, statistics: s.length ? s : null });
308
+ }
309
+ function Ae(t) {
310
+ if (!t)
311
+ return;
312
+ const e = t.colormap;
313
+ if (!e || e.length === 0)
314
+ return;
315
+ const n = e.sort((c, p) => c[0] - p[0]);
316
+ let r = 0;
317
+ n[0][0] < 0 && (r = n[0][0]);
318
+ const a = Math.max(256, n[n.length - 1][0] - r + 1), i = new Uint8Array(4 * a), o = [];
319
+ let u, h = 0, s = 0;
320
+ const l = n[0].length === 5;
321
+ if (a > 65536)
322
+ return n.forEach((c) => {
323
+ o[c[0] - r] = l ? c.slice(1) : c.slice(1).concat([255]);
324
+ }), { indexed2DColormap: o, offset: r, alphaSpecified: l };
325
+ if (t.fillUnspecified)
326
+ for (u = n[s], h = u[0] - r; h < a; h++)
327
+ i[4 * h] = u[1], i[4 * h + 1] = u[2], i[4 * h + 2] = u[3], i[4 * h + 3] = l ? u[4] : 255, h === u[0] - r && (u = s === n.length - 1 ? u : n[++s]);
328
+ else
329
+ for (h = 0; h < n.length; h++)
330
+ u = n[h], s = 4 * (u[0] - r), i[s] = u[1], i[s + 1] = u[2], i[s + 2] = u[3], i[s + 3] = l ? u[4] : 255;
331
+ return { indexedColormap: i, offset: r, alphaSpecified: l };
332
+ }
333
+ function be(t, e) {
334
+ if (!R(t) || !e || !e.indexedColormap && !e.indexed2DColormap)
335
+ return t;
336
+ const n = t.clone(), r = n.pixels;
337
+ let a = n.mask;
338
+ const i = n.width * n.height;
339
+ if (r.length !== 1)
340
+ return t;
341
+ const { indexedColormap: o, indexed2DColormap: u, offset: h, alphaSpecified: s } = e;
342
+ let l = 0;
343
+ const c = r[0], p = new Uint8Array(c.length), f = new Uint8Array(c.length), d = new Uint8Array(c.length);
344
+ let m, x = 0;
345
+ if (o) {
346
+ const w = o.length - 1;
347
+ if (a != null)
348
+ for (l = 0; l < i; l++)
349
+ a[l] && (x = 4 * (c[l] - h), x < h || x > w ? a[l] = 0 : (p[l] = o[x], f[l] = o[x + 1], d[l] = o[x + 2], a[l] = o[x + 3]));
350
+ else {
351
+ for (a = new Uint8Array(i), l = 0; l < i; l++)
352
+ x = 4 * (c[l] - h), x < h || x > w ? a[l] = 0 : (p[l] = o[x], f[l] = o[x + 1], d[l] = o[x + 2], a[l] = o[x + 3]);
353
+ n.mask = a;
354
+ }
355
+ } else if (u)
356
+ if (a != null)
357
+ for (l = 0; l < i; l++)
358
+ a[l] && (m = u[c[l]], p[l] = m[0], f[l] = m[1], d[l] = m[2], a[l] = m[3]);
359
+ else {
360
+ for (a = new Uint8Array(i), l = 0; l < i; l++)
361
+ m = u[c[l]], p[l] = m[0], f[l] = m[1], d[l] = m[2], a[l] = m[3];
362
+ n.mask = a;
363
+ }
364
+ return n.pixels = [p, f, d], n.statistics = null, n.pixelType = "u8", n.maskIsAlpha = s, n;
365
+ }
366
+ function ve(t, e) {
367
+ if (!R(t))
368
+ return null;
369
+ const { pixels: n, mask: r } = t, a = n.length;
370
+ let i = e.lut;
371
+ const { offset: o } = e;
372
+ i && i[0].length === 1 && (i = n.map(() => i));
373
+ const u = [], h = e.outputPixelType || "u8";
374
+ for (let l = 0; l < a; l++) {
375
+ const c = Pt(n[l], r, i[l], o || 0, h);
376
+ u.push(c);
377
+ }
378
+ const s = new _({ width: t.width, height: t.height, pixels: u, mask: r, pixelType: h });
379
+ return s.updateStatistics(), s;
380
+ }
381
+ function Pt(t, e, n, r, a) {
382
+ const i = t.length, o = _.createEmptyBand(a, i);
383
+ if (e)
384
+ for (let u = 0; u < i; u++)
385
+ e[u] && (o[u] = n[t[u] - r]);
386
+ else
387
+ for (let u = 0; u < i; u++)
388
+ o[u] = n[t[u] - r];
389
+ return o;
390
+ }
391
+ function Ue(t, e) {
392
+ if (!R(t))
393
+ return null;
394
+ const n = t.clone(), { pixels: r } = n, a = n.width * n.height, i = e.length, o = Math.floor(i / 2), u = e[Math.floor(o)], h = r[0];
395
+ let s, l, c, p, f, d, m = !1;
396
+ const x = new Uint8Array(a), w = new Uint8Array(a), A = new Uint8Array(a);
397
+ let k = n.mask;
398
+ const M = e[0].mappedColor.length === 4;
399
+ for (k || (k = new Uint8Array(a), k.fill(M ? 255 : 1), n.mask = k), f = 0; f < a; f++)
400
+ if (k[f]) {
401
+ for (s = h[f], m = !1, d = o, l = u, c = 0, p = i - 1; p - c > 1; ) {
402
+ if (s === l.value) {
403
+ m = !0;
404
+ break;
405
+ }
406
+ s > l.value ? c = d : p = d, d = Math.floor((c + p) / 2), l = e[Math.floor(d)];
407
+ }
408
+ m || (s === e[c].value ? (l = e[c], m = !0) : s === e[p].value ? (l = e[p], m = !0) : s < e[c].value ? (m = !1, l = null) : s > e[c].value && (s < e[p].value ? (l = e[c], m = !0) : p === i - 1 ? (m = !1, l = null) : (l = e[p], m = !0))), m ? (x[f] = l.mappedColor[0], w[f] = l.mappedColor[1], A[f] = l.mappedColor[2], k[f] = l.mappedColor[3]) : x[f] = w[f] = A[f] = k[f] = 0;
409
+ }
410
+ return n.pixels = [x, w, A], n.mask = k, n.pixelType = "u8", n.maskIsAlpha = M, n;
411
+ }
412
+ function Pe(t, e) {
413
+ if (!R(t))
414
+ return null;
415
+ const { width: n, height: r } = t, { inputRanges: a, outputValues: i, outputPixelType: o, noDataRanges: u, allowUnmatched: h, isLastInputRangeInclusive: s } = e, l = t.pixels[0], c = _.createEmptyBand(o, l.length), p = t.mask, f = new Uint8Array(n * r);
416
+ p ? f.set(p) : f.fill(255);
417
+ const d = t.pixelType.startsWith("f") ? 1e-6 : 0, m = a.map((M) => M - d);
418
+ m[0] = a[0], m[m.length - 1] = a[a.length - 1] + (s ? 1e-6 : 0);
419
+ const x = a.length / 2, [w, A] = ht(o);
420
+ for (let M = 0; M < r; M++)
421
+ for (let g = 0; g < n; g++) {
422
+ const y = M * n + g;
423
+ if (f[y]) {
424
+ const v = l[y];
425
+ let b = !1;
426
+ for (let $ = x - 1; $ >= 0; $--)
427
+ if (v === m[2 * $] || v > m[2 * $] && v < m[2 * $ + 1]) {
428
+ c[y] = i[$], b = !0;
429
+ break;
430
+ }
431
+ b || (h ? c[y] = v > A ? A : v < w ? w : v : f[y] = 0);
432
+ }
433
+ }
434
+ const k = u == null ? void 0 : u.length;
435
+ if (k)
436
+ for (let M = 0; M < r; M++)
437
+ for (let g = 0; g < n; g++) {
438
+ const y = M * n + g;
439
+ if (!p || p[y]) {
440
+ const v = l[y];
441
+ for (let b = 0; b < k; b += 2)
442
+ if (v >= u[b] && v <= u[b + 1]) {
443
+ c[y] = 0, f[y] = 0;
444
+ break;
445
+ }
446
+ }
447
+ }
448
+ return new _({ width: n, height: r, pixelType: o, pixels: [c], mask: f });
449
+ }
450
+ function yt(t, e, n, r) {
451
+ const a = n != null && n.length >= 2 ? new Set(n) : null, i = (n == null ? void 0 : n.length) === 1 ? n[0] : null, o = !!(e != null && e.length);
452
+ for (let u = 0; u < t.length; u++)
453
+ if (r[u]) {
454
+ const h = t[u];
455
+ if (o) {
456
+ let s = !1;
457
+ for (let l = 0; l < e.length; l += 2)
458
+ if (h >= e[l] && h <= e[l + 1]) {
459
+ s = !0;
460
+ break;
461
+ }
462
+ s || (r[u] = 0);
463
+ }
464
+ r[u] && (h === i || a != null && a.has(h)) && (r[u] = 0);
465
+ }
466
+ }
467
+ function kt(t, e) {
468
+ const n = t[0].length;
469
+ for (let r = 0; r < n; r++)
470
+ if (e[r]) {
471
+ let a = !1;
472
+ for (let i = 0; i < t.length; i++)
473
+ if (t[i][r]) {
474
+ a = !0;
475
+ break;
476
+ }
477
+ a || (e[r] = 0);
478
+ }
479
+ }
480
+ function $t(t, e) {
481
+ const n = t[0].length;
482
+ for (let r = 0; r < n; r++)
483
+ if (e[r]) {
484
+ let a = !1;
485
+ for (let i = 0; i < t.length; i++)
486
+ if (t[i][r] === 0) {
487
+ a = !0;
488
+ break;
489
+ }
490
+ a && (e[r] = 0);
491
+ }
492
+ }
493
+ function $e(t, e) {
494
+ if (!R(t))
495
+ return null;
496
+ const { width: n, height: r, pixels: a } = t, i = n * r, o = new Uint8Array(i);
497
+ t.mask ? o.set(t.mask) : o.fill(255);
498
+ const u = a.length, { includedRanges: h, noDataValues: s, outputPixelType: l, matchAll: c, lookups: p } = e;
499
+ if (p) {
500
+ const f = [];
501
+ for (let d = 0; d < u; d++) {
502
+ const m = p[d], x = Pt(a[d], o, m.lut, m.offset || 0, "u8");
503
+ f.push(x);
504
+ }
505
+ f.length === 1 ? o.set(f[0]) : c ? kt(f, o) : $t(f, o);
506
+ } else if (c) {
507
+ const f = [];
508
+ for (let d = 0; d < u; d++) {
509
+ const m = new Uint8Array(i);
510
+ m.set(o), yt(a[d], h == null ? void 0 : h.slice(2 * d, 2 * d + 2), s == null ? void 0 : s[d], m), f.push(m);
511
+ }
512
+ f.length === 1 ? o.set(f[0]) : kt(f, o);
513
+ } else
514
+ for (let f = 0; f < u; f++)
515
+ yt(a[f], h == null ? void 0 : h.slice(2 * f, 2 * f + 2), s == null ? void 0 : s[f], o);
516
+ return new _({ width: n, height: r, pixelType: l, pixels: a, mask: o });
517
+ }
518
+ function Te(t) {
519
+ const { srcPixelType: e, inputRanges: n, outputValues: r, allowUnmatched: a, noDataRanges: i, isLastInputRangeInclusive: o, outputPixelType: u } = t;
520
+ if (e !== "u8" && e !== "s8" && e !== "u16" && e !== "s16")
521
+ return null;
522
+ const h = e.includes("16") ? 65536 : 256, s = e.includes("s") ? -h / 2 : 0, l = _.createEmptyBand(u, h), c = new Uint8Array(h);
523
+ a && c.fill(255);
524
+ const [p, f] = ht(u);
525
+ if (n != null && n.length && (r != null && r.length)) {
526
+ const m = n.map((x) => x - 1e-6);
527
+ m[0] = n[0], o && (m[m.length - 1] = n[n.length - 1]);
528
+ for (let x = 0; x < m.length; x++) {
529
+ const w = r[x] > f ? f : r[x] < p ? p : r[x], A = Math.ceil(m[2 * x] - s), k = Math.floor(m[2 * x + 1] - s);
530
+ for (let M = A; M <= k; M++)
531
+ l[M] = w, c[M] = 255;
532
+ }
533
+ }
534
+ if (i != null && i.length)
535
+ for (let d = 0; d < i.length; d++) {
536
+ const m = Math.ceil(i[2 * d] - s), x = Math.floor(i[2 * d + 1] - s);
537
+ for (let w = m; w <= x; w++)
538
+ c[w] = 0;
539
+ }
540
+ return { lut: l, offset: s, mask: c };
541
+ }
542
+ function Ie(t, e, n) {
543
+ if (t !== "u8" && t !== "s8" && t !== "u16" && t !== "s16")
544
+ return null;
545
+ const r = t.includes("16") ? 65536 : 256, a = t.includes("s") ? -r / 2 : 0, i = new Uint8Array(r);
546
+ if (e)
547
+ for (let o = 0; o < e.length; o++) {
548
+ const u = Math.ceil(e[2 * o] - a), h = Math.floor(e[2 * o + 1] - a);
549
+ for (let s = u; s <= h; s++)
550
+ i[s] = 255;
551
+ }
552
+ else
553
+ i.fill(255);
554
+ if (n)
555
+ for (let o = 0; o < n.length; o++)
556
+ i[n[o] - a] = 0;
557
+ return { lut: i, offset: a };
558
+ }
559
+ function Ht(t, e, n, r, a, i, o, u) {
560
+ return { xmin: a <= n * t ? 0 : a < n * t + t ? a - n * t : t, ymin: i <= r * e ? 0 : i < r * e + e ? i - r * e : e, xmax: a + o <= n * t ? 0 : a + o < n * t + t ? a + o - n * t : t, ymax: i + u <= r * e ? 0 : i + u < r * e + e ? i + u - r * e : e };
561
+ }
562
+ function Be(t, e) {
563
+ if (!t || t.length === 0)
564
+ return null;
565
+ const n = t.find((d) => d.pixelBlock);
566
+ if ((n == null ? void 0 : n.pixelBlock) == null)
567
+ return null;
568
+ const r = (n.extent.xmax - n.extent.xmin) / n.pixelBlock.width, a = (n.extent.ymax - n.extent.ymin) / n.pixelBlock.height, i = 0.01 * Math.min(r, a), o = t.sort((d, m) => Math.abs(d.extent.ymax - m.extent.ymax) > i ? m.extent.ymax - d.extent.ymax : Math.abs(d.extent.xmin - m.extent.xmin) > i ? d.extent.xmin - m.extent.xmin : 0), u = Math.min.apply(null, o.map((d) => d.extent.xmin)), h = Math.min.apply(null, o.map((d) => d.extent.ymin)), s = Math.max.apply(null, o.map((d) => d.extent.xmax)), l = Math.max.apply(null, o.map((d) => d.extent.ymax)), c = { x: Math.round((e.xmin - u) / r), y: Math.round((l - e.ymax) / a) }, p = { width: Math.round((s - u) / r), height: Math.round((l - h) / a) }, f = { width: Math.round((e.xmax - e.xmin) / r), height: Math.round((e.ymax - e.ymin) / a) };
569
+ return Math.round(p.width / n.pixelBlock.width) * Math.round(p.height / n.pixelBlock.height) !== o.length || c.x < 0 || c.y < 0 || p.width < f.width || p.height < f.height ? null : { extent: e, pixelBlock: Kt(o.map((d) => d.pixelBlock), p, { clipOffset: c, clipSize: f }) };
570
+ }
571
+ function ut(t, e, n, r, a, i) {
572
+ const { width: o, height: u } = n.block, { x: h, y: s } = n.offset, { width: l, height: c } = n.mosaic, p = Ht(o, u, r, a, h, s, l, c);
573
+ let f = 0, d = 0;
574
+ if (i) {
575
+ const m = i.hasGCSSShiftTransform ? 360 : i.halfWorldWidth ?? 0, x = o * i.resolutionX, w = i.startX + r * x;
576
+ w < m && w + x > m ? d = i.rightPadding : w >= m && (f = i.leftMargin - i.rightPadding, d = 0);
577
+ }
578
+ if (p.xmax -= d, typeof e != "number")
579
+ for (let m = p.ymin; m < p.ymax; m++) {
580
+ const x = (a * u + m - s) * l + (r * o - h) + f, w = m * o;
581
+ for (let A = p.xmin; A < p.xmax; A++)
582
+ t[x + A] = e[w + A];
583
+ }
584
+ else
585
+ for (let m = p.ymin; m < p.ymax; m++) {
586
+ const x = (a * u + m - s) * l + (r * o - h) + f;
587
+ for (let w = p.xmin; w < p.xmax; w++)
588
+ t[x + w] = e;
589
+ }
590
+ }
591
+ function Kt(t, e, n = {}) {
592
+ var T;
593
+ const { clipOffset: r, clipSize: a, alignmentInfo: i, blockWidths: o } = n;
594
+ if (o)
595
+ return Qt(t, e, { blockWidths: o });
596
+ const u = t.find((P) => R(P));
597
+ if (u == null)
598
+ return null;
599
+ const h = a ? a.width : e.width, s = a ? a.height : e.height, l = u.width, c = u.height, p = e.width / l, f = e.height / c, d = { offset: r || { x: 0, y: 0 }, mosaic: a || e, block: { width: l, height: c } }, m = u.pixelType, x = _.getPixelArrayConstructor(m), w = u.pixels.length, A = [];
600
+ let k, M;
601
+ for (let P = 0; P < w; P++) {
602
+ M = new x(h * s);
603
+ for (let U = 0; U < f; U++)
604
+ for (let I = 0; I < p; I++) {
605
+ const C = t[U * p + I];
606
+ R(C) && (k = C.pixels[P], ut(M, k, d, I, U, i));
607
+ }
608
+ A.push(M);
609
+ }
610
+ const g = t.some((P) => P == null || P.mask != null && P.mask.length > 0), y = t.some((P) => (P == null ? void 0 : P.bandMasks) && P.bandMasks.length > 1), v = g ? new Uint8Array(h * s) : void 0, b = y ? [] : void 0;
611
+ if (v) {
612
+ for (let P = 0; P < f; P++)
613
+ for (let U = 0; U < p; U++) {
614
+ const I = t[P * p + U], C = I != null ? I.mask : null;
615
+ ut(v, C ?? (I ? 255 : 0), d, U, P, i);
616
+ }
617
+ if (b)
618
+ for (let P = 0; P < w; P++) {
619
+ const U = new Uint8Array(h * s);
620
+ for (let I = 0; I < f; I++)
621
+ for (let C = 0; C < p; C++) {
622
+ const S = t[I * p + C], B = ((T = S == null ? void 0 : S.bandMasks) == null ? void 0 : T[P]) ?? (S == null ? void 0 : S.mask);
623
+ ut(U, B ?? (S ? 255 : 0), d, C, I, i);
624
+ }
625
+ b.push(U);
626
+ }
627
+ }
628
+ const $ = new _({ width: h, height: s, pixels: A, pixelType: m, bandMasks: b, mask: v });
629
+ return $.updateStatistics(), $;
630
+ }
631
+ function Qt(t, e, n) {
632
+ var x;
633
+ const r = t.find((w) => w != null);
634
+ if (r == null)
635
+ return null;
636
+ const a = t.some((w) => w == null || !!w.mask), { width: i, height: o } = e, u = a ? new Uint8Array(i * o) : null, { blockWidths: h } = n, s = [], l = r.getPlaneCount(), c = _.getPixelArrayConstructor(r.pixelType);
637
+ if (a)
638
+ for (let w = 0, A = 0; w < t.length; A += h[w], w++) {
639
+ const k = t[w];
640
+ if (!R(k))
641
+ continue;
642
+ const M = k.mask;
643
+ for (let g = 0; g < o; g++)
644
+ for (let y = 0; y < h[w]; y++)
645
+ u[g * i + y + A] = M == null ? 255 : M[g * k.width + y];
646
+ }
647
+ const p = t.some((w) => (w == null ? void 0 : w.bandMasks) && w.bandMasks.length > 1), f = p ? [] : void 0, d = i * o;
648
+ for (let w = 0; w < l; w++) {
649
+ const A = new c(d), k = p ? new Uint8Array(d) : void 0;
650
+ for (let M = 0, g = 0; M < t.length; g += h[M], M++) {
651
+ const y = t[M];
652
+ if (!R(y))
653
+ continue;
654
+ const v = y.pixels[w];
655
+ if (v != null) {
656
+ for (let b = 0; b < o; b++)
657
+ for (let $ = 0; $ < h[M]; $++)
658
+ A[b * i + $ + g] = v[b * y.width + $];
659
+ if (k) {
660
+ const b = ((x = y.bandMasks) == null ? void 0 : x[w]) ?? y.mask;
661
+ for (let $ = 0; $ < o; $++)
662
+ for (let T = 0; T < h[M]; T++)
663
+ k[$ * i + T + g] = b ? b[$ * y.width + T] : 255;
664
+ }
665
+ }
666
+ }
667
+ s.push(A), f && k && f.push(k);
668
+ }
669
+ const m = new _({ width: i, height: o, mask: u, bandMasks: f, pixels: s, pixelType: r.pixelType });
670
+ return m.updateStatistics(), m;
671
+ }
672
+ function Se(t, e, n) {
673
+ if (!R(t))
674
+ return null;
675
+ const { width: r, height: a } = t, i = e.x, o = e.y, u = n.width + i, h = n.height + o;
676
+ if (i < 0 || o < 0 || u > r || h > a || i === 0 && o === 0 && u === r && h === a)
677
+ return t;
678
+ t.mask || (t.mask = new Uint8Array(r * a));
679
+ const s = t.mask;
680
+ for (let l = 0; l < a; l++) {
681
+ const c = l * r;
682
+ for (let p = 0; p < r; p++)
683
+ s[c + p] = l < o || l >= h || p < i || p >= u ? 0 : 1;
684
+ }
685
+ return t.updateStatistics(), t;
686
+ }
687
+ function Yt(t) {
688
+ if (!R(t))
689
+ return null;
690
+ const e = t.clone(), { width: n, height: r, pixels: a } = t, i = a[0], o = e.pixels[0], u = t.mask;
691
+ for (let h = 2; h < r - 1; h++) {
692
+ const s = /* @__PURE__ */ new Map();
693
+ for (let c = h - 2; c < h + 2; c++)
694
+ for (let p = 0; p < 4; p++) {
695
+ const f = c * n + p;
696
+ lt(s, i[f], u ? u[f] : 1);
697
+ }
698
+ o[h * n] = Mt(s), o[h * n + 1] = o[h * n + 2] = o[h * n];
699
+ let l = 3;
700
+ for (; l < n - 1; l++) {
701
+ let c = (h - 2) * n + l + 1;
702
+ lt(s, i[c], u ? u[c] : 1), c = (h - 1) * n + l + 1, lt(s, i[c], u ? u[c] : 1), c = h * n + l + 1, lt(s, i[c], u ? u[c] : 1), c = (h + 1) * n + l + 1, lt(s, i[c], u ? u[c] : 1), c = (h - 2) * n + l - 3, rt(s, i[c], u ? u[c] : 1), c = (h - 1) * n + l - 3, rt(s, i[c], u ? u[c] : 1), c = h * n + l - 3, rt(s, i[c], u ? u[c] : 1), c = (h + 1) * n + l - 3, rt(s, i[c], u ? u[c] : 1), o[h * n + l] = Mt(s);
703
+ }
704
+ o[h * n + l + 1] = o[h * n + l];
705
+ }
706
+ for (let h = 0; h < n; h++)
707
+ o[h] = o[n + h] = o[2 * n + h], o[(r - 1) * n + h] = o[(r - 2) * n + h];
708
+ return e.updateStatistics(), e;
709
+ }
710
+ function Mt(t) {
711
+ if (t.size === 0)
712
+ return 0;
713
+ let e = 0, n = -1, r = 0;
714
+ const a = t.keys();
715
+ let i = a.next();
716
+ for (; !i.done; )
717
+ r = t.get(i.value), r > e && (n = i.value, e = r), i = a.next();
718
+ return n;
719
+ }
720
+ function rt(t, e, n) {
721
+ if (n === 0)
722
+ return;
723
+ const r = t.get(e);
724
+ r === 1 ? t.delete(e) : t.set(e, r - 1);
725
+ }
726
+ function lt(t, e, n) {
727
+ n !== 0 && t.set(e, t.has(e) ? t.get(e) + 1 : 1);
728
+ }
729
+ function Tt(t, e, n) {
730
+ let { x: r, y: a } = e;
731
+ const { width: i, height: o } = n;
732
+ if (r === 0 && a === 0 && o === t.height && i === t.width)
733
+ return t;
734
+ const { width: u, height: h } = t, s = Math.max(0, a), l = Math.max(0, r), c = Math.min(r + i, u), p = Math.min(a + o, h);
735
+ if (c < 0 || p < 0 || !R(t))
736
+ return null;
737
+ r = Math.max(0, -r), a = Math.max(0, -a);
738
+ const { pixels: f } = t, d = i * o, m = f.length, x = [];
739
+ for (let M = 0; M < m; M++) {
740
+ const g = f[M], y = _.createEmptyBand(t.pixelType, d);
741
+ for (let v = s; v < p; v++) {
742
+ const b = v * u;
743
+ let $ = (v + a - s) * i + r;
744
+ for (let T = l; T < c; T++)
745
+ y[$++] = g[b + T];
746
+ }
747
+ x.push(y);
748
+ }
749
+ const w = new Uint8Array(d), A = t.mask;
750
+ for (let M = s; M < p; M++) {
751
+ const g = M * u;
752
+ let y = (M + a - s) * i + r;
753
+ for (let v = l; v < c; v++)
754
+ w[y++] = A ? A[g + v] : 1;
755
+ }
756
+ const k = new _({ width: n.width, height: n.height, pixelType: t.pixelType, pixels: x, mask: w });
757
+ return k.updateStatistics(), k;
758
+ }
759
+ function It(t, e = !0) {
760
+ if (!R(t))
761
+ return null;
762
+ const { pixels: n, width: r, height: a, mask: i, pixelType: o } = t, u = [], h = Math.round(r / 2), s = Math.round(a / 2), l = a - 1, c = r - 1;
763
+ for (let f = 0; f < n.length; f++) {
764
+ const d = n[f], m = _.createEmptyBand(o, h * s);
765
+ let x = 0;
766
+ for (let w = 0; w < a; w += 2)
767
+ for (let A = 0; A < r; A += 2) {
768
+ const k = d[w * r + A];
769
+ if (e) {
770
+ const M = A === c ? k : d[w * r + A + 1], g = w === l ? k : d[w * r + A + r], y = A === c ? g : w === l ? M : d[w * r + A + r + 1];
771
+ m[x++] = (k + M + g + y) / 4;
772
+ } else
773
+ m[x++] = k;
774
+ }
775
+ u.push(m);
776
+ }
777
+ let p = null;
778
+ if (i != null) {
779
+ p = new Uint8Array(h * s);
780
+ let f = 0;
781
+ for (let d = 0; d < a; d += 2)
782
+ for (let m = 0; m < r; m += 2) {
783
+ const x = i[d * r + m];
784
+ if (e) {
785
+ const w = m === c ? x : i[d * r + m + 1], A = d === l ? x : i[d * r + m + r], k = m === c ? A : d === l ? w : i[d * r + m + r + 1];
786
+ p[f++] = x * w * A * k ? 1 : 0;
787
+ } else
788
+ p[f++] = x;
789
+ }
790
+ }
791
+ return new _({ width: h, height: s, pixelType: o, pixels: u, mask: p });
792
+ }
793
+ function Ce(t, e, n = 0, r = !0) {
794
+ if (!R(t))
795
+ return null;
796
+ const { width: a, height: i } = e;
797
+ let { width: o, height: u } = t;
798
+ const h = /* @__PURE__ */ new Map(), s = { x: 0, y: 0 }, l = 1 + n;
799
+ let c = t;
800
+ for (let p = 0; p < l; p++) {
801
+ const f = Math.ceil(o / a), d = Math.ceil(u / i);
802
+ for (let m = 0; m < d; m++) {
803
+ s.y = m * i;
804
+ for (let x = 0; x < f; x++) {
805
+ s.x = x * a;
806
+ const w = Tt(c, s, e);
807
+ h.set(`${p}/${m}/${x}`, w);
808
+ }
809
+ }
810
+ p < l - 1 && (c = It(c, r)), o = Math.round(o / 2), u = Math.round(u / 2);
811
+ }
812
+ return h;
813
+ }
814
+ function Fe(t) {
815
+ const { pixelBlock: e, tileSize: n, level: r, row: a, col: i, useBilinear: o } = t;
816
+ if (!R(e))
817
+ return null;
818
+ const { width: u, height: h } = n, s = 2 ** r, l = s * u, c = s * h;
819
+ let p = Tt(e, { y: a * c, x: i * l }, { width: l, height: c });
820
+ if (!p)
821
+ return null;
822
+ for (let f = r; f > 0; f--)
823
+ p = It(p, o);
824
+ return p;
825
+ }
826
+ function Bt(t, e, n, r, a = 0) {
827
+ const { width: i, height: o } = t, { width: u, height: h } = e, s = r.cols, l = r.rows, c = Math.ceil(u / s - 0.1 / s), p = Math.ceil(h / l - 0.1 / l);
828
+ let f, d, m, x, w, A, k;
829
+ const M = c * s, g = M * p * l, y = new Float32Array(g), v = new Float32Array(g), b = new Uint32Array(g), $ = new Uint32Array(g);
830
+ let T, P, U = 0;
831
+ for (let I = 0; I < p; I++)
832
+ for (let C = 0; C < c; C++) {
833
+ f = 12 * (I * c + C), d = n[f], m = n[f + 1], x = n[f + 2], w = n[f + 3], A = n[f + 4], k = n[f + 5];
834
+ for (let S = 0; S < l; S++) {
835
+ U = (I * l + S) * M + C * s, P = (S + 0.5) / l;
836
+ for (let B = 0; B < S; B++)
837
+ T = (B + 0.5) / s, y[U + B] = (d * T + m * P + x) * i + a, v[U + B] = (w * T + A * P + k) * o + a, b[U + B] = Math.floor(y[U + B]), $[U + B] = Math.floor(v[U + B]);
838
+ }
839
+ f += 6, d = n[f], m = n[f + 1], x = n[f + 2], w = n[f + 3], A = n[f + 4], k = n[f + 5];
840
+ for (let S = 0; S < l; S++) {
841
+ U = (I * l + S) * M + C * s, P = (S + 0.5) / l;
842
+ for (let B = S; B < s; B++)
843
+ T = (B + 0.5) / s, y[U + B] = (d * T + m * P + x) * i + a, v[U + B] = (w * T + A * P + k) * o + a, b[U + B] = Math.floor(y[U + B]), $[U + B] = Math.floor(v[U + B]);
844
+ }
845
+ }
846
+ return { offsets_x: y, offsets_y: v, offsets_xi: b, offsets_yi: $, gridWidth: M };
847
+ }
848
+ function Ve(t, e) {
849
+ const { coefficients: n, spacing: r } = e, { offsets_x: a, offsets_y: i, gridWidth: o } = Bt(t, t, n, { rows: r[0], cols: r[1] }), { width: u, height: h } = t, s = new Float32Array(u * h), l = 180 / Math.PI;
850
+ for (let c = 0; c < h; c++)
851
+ for (let p = 0; p < u; p++) {
852
+ const f = c * o + p, d = c === 0 ? f : f - o, m = c === h - 1 ? f : f + o, x = a[d] - a[m], w = i[m] - i[d];
853
+ if (isNaN(x) || isNaN(w))
854
+ s[c * u + p] = 90;
855
+ else {
856
+ let A = Math.atan2(w, x) * l;
857
+ A = (360 + A) % 360, s[c * u + p] = A;
858
+ }
859
+ }
860
+ return s;
861
+ }
862
+ function _e(t, e, n, r, a = "nearest") {
863
+ if (!R(t))
864
+ return null;
865
+ a === "majority" && (t = Yt(t));
866
+ const { pixels: i, mask: o, bandMasks: u, pixelType: h } = t, s = t.width, l = t.height, c = _.getPixelArrayConstructor(h), p = i.length, { width: f, height: d } = e;
867
+ let m = !1;
868
+ for (let U = 0; U < n.length; U += 3)
869
+ n[U] === -1 && n[U + 1] === -1 && n[U + 2] === -1 && (m = !0);
870
+ const { offsets_x: x, offsets_y: w, offsets_xi: A, offsets_yi: k, gridWidth: M } = Bt({ width: s, height: l }, e, n, r, a === "majority" ? 0.5 : 0);
871
+ let g;
872
+ const y = (U, I, C, S) => {
873
+ const B = U instanceof Float32Array || U instanceof Float64Array ? 0 : 0.5;
874
+ for (let F = 0; F < d; F++) {
875
+ g = F * M;
876
+ for (let V = 0; V < f; V++) {
877
+ if (x[g] < 0 || w[g] < 0)
878
+ U[F * f + V] = 0;
879
+ else if (S)
880
+ U[F * f + V] = I[A[g] + k[g] * s];
881
+ else {
882
+ const E = Math.floor(x[g]), W = Math.floor(w[g]), L = Math.ceil(x[g]), G = Math.ceil(w[g]), z = x[g] - E, H = w[g] - W;
883
+ if (!C || C[E + W * s] && C[L + W * s] && C[E + G * s] && C[L + G * s]) {
884
+ const et = (1 - z) * I[E + W * s] + z * I[L + W * s], Q = (1 - z) * I[E + G * s] + z * I[L + G * s];
885
+ U[F * f + V] = (1 - H) * et + H * Q + B;
886
+ } else
887
+ U[F * f + V] = I[A[g] + k[g] * s];
888
+ }
889
+ g++;
890
+ }
891
+ }
892
+ }, v = [];
893
+ let b;
894
+ const $ = (u == null ? void 0 : u.length) === p, T = [];
895
+ for (let U = 0; U < p; U++) {
896
+ if ($) {
897
+ const I = new Uint8Array(f * d);
898
+ y(I, u[U], u[U], !0), T.push(I);
899
+ }
900
+ b = new c(f * d), y(b, i[U], $ ? u[U] : o, a === "nearest" || a === "majority"), v.push(b);
901
+ }
902
+ const P = new _({ width: f, height: d, pixelType: h, pixels: v, bandMasks: $ ? T : void 0 });
903
+ if (o != null)
904
+ P.mask = new Uint8Array(f * d), y(P.mask, o, o, !0);
905
+ else if (m) {
906
+ P.mask = new Uint8Array(f * d);
907
+ for (let U = 0; U < f * d; U++)
908
+ P.mask[U] = x[U] < 0 || w[U] < 0 ? 0 : 1;
909
+ }
910
+ return P.updateStatistics(), P;
911
+ }
912
+ const tt = /* @__PURE__ */ new Map();
913
+ tt.set("meter-per-second", 1), tt.set("kilometer-per-hour", 0.277778), tt.set("knots", 0.514444), tt.set("feet-per-second", 0.3048), tt.set("mile-per-hour", 0.44704);
914
+ const pt = 180 / Math.PI, dt = 5, at = new jt({ esriMetersPerSecond: "meter-per-second", esriKilometersPerHour: "kilometer-per-hour", esriKnots: "knots", esriFeetPerSecond: "feet-per-second", esriMilesPerHour: "mile-per-hour" });
915
+ function mt(t, e) {
916
+ return tt.get(t) / tt.get(e) || 1;
917
+ }
918
+ function St(t) {
919
+ return (450 - t) % 360;
920
+ }
921
+ function Ct(t, e = "geographic") {
922
+ const [n, r] = t, a = Math.sqrt(n * n + r * r);
923
+ let i = Math.atan2(r, n) * pt;
924
+ return i = (360 + i) % 360, e === "geographic" && (i = St(i)), [a, i];
925
+ }
926
+ function Ft(t, e = "geographic") {
927
+ let n = t[1];
928
+ e === "geographic" && (n = St(n)), n %= 360;
929
+ const r = t[0];
930
+ return [r * Math.cos(n / pt), r * Math.sin(n / pt)];
931
+ }
932
+ function De(t, e, n, r = "geographic") {
933
+ if (!R(t) || n == null)
934
+ return t;
935
+ const a = e === "vector-magdir" ? t.clone() : At(t, e), i = a.pixels[1];
936
+ for (let o = 0; o < i.length; o++)
937
+ i[o] = r === "geographic" ? (i[o] + n[o] + 270) % 360 : (i[o] + 360 - n[o]) % 360;
938
+ return e === "vector-magdir" ? a : At(a, "vector-magdir");
939
+ }
940
+ function At(t, e, n = "geographic", r = 1) {
941
+ if (!R(t))
942
+ return t;
943
+ const { pixels: a, width: i, height: o } = t, u = i * o, h = a[0], s = a[1], l = t.pixelType.startsWith("f") ? t.pixelType : "f32", c = _.createEmptyBand(l, u), p = _.createEmptyBand(l, u);
944
+ let f = 0;
945
+ for (let m = 0; m < o; m++)
946
+ for (let x = 0; x < i; x++)
947
+ e === "vector-uv" ? ([c[f], p[f]] = Ct([h[f], s[f]], n), c[f] *= r) : ([c[f], p[f]] = Ft([h[f], s[f]], n), c[f] *= r, p[f] *= r), f++;
948
+ const d = new _({ pixelType: l, width: t.width, height: t.height, mask: t.mask, validPixelCount: t.validPixelCount, maskIsAlpha: t.maskIsAlpha, pixels: [c, p] });
949
+ return d.updateStatistics(), d;
950
+ }
951
+ function Re(t, e, n = 1) {
952
+ if (n === 1 || !R(t))
953
+ return t;
954
+ const r = t.clone(), { pixels: a, width: i, height: o } = r, u = a[0], h = a[1];
955
+ let s = 0;
956
+ for (let l = 0; l < o; l++)
957
+ for (let c = 0; c < i; c++)
958
+ e === "vector-uv" ? (u[s] *= n, h[s] *= n) : u[s] *= n, s++;
959
+ return r.updateStatistics(), r;
960
+ }
961
+ function Le(t, e, n, r, a) {
962
+ if (a == null || !a.spatialReference.equals(t.spatialReference))
963
+ return { extent: t, width: Math.round(e / r), height: Math.round(n / r), resolution: t.width / e };
964
+ const i = a.xmin, o = a.ymax, u = (t.xmax - t.xmin) / e * r, h = (t.ymax - t.ymin) / n * r, s = (u + h) / 2;
965
+ return t.xmin = i + Math.floor((t.xmin - i) / u) * u, t.xmax = i + Math.ceil((t.xmax - i) / u) * u, t.ymin = o + Math.floor((t.ymin - o) / h) * h, t.ymax = o + Math.ceil((t.ymax - o) / h) * h, { extent: t, width: Math.round(t.width / u), height: Math.round(t.height / h), resolution: s };
966
+ }
967
+ const Zt = Vt(0, 0, 0);
968
+ function Vt(t = 0, e = 0, n = Math.PI, r = !0) {
969
+ r && (n = (2 * Math.PI - n) % (2 * Math.PI));
970
+ const a = r ? -1 : 1, i = 13 * a, o = -7 * a, u = -2 * a, h = -16 * a, s = 21.75, [l, c] = j(0, e + i, n, s), [p, f] = j(t - 5.5, e + o, n, s), [d, m] = j(t + 5.5, e + o, n, s), [x, w] = j(t - 1.5, e + u, n, s), [A, k] = j(t + 1.5, e + u, n, s), [M, g] = j(t - 1.5, e + h, n, s), [y, v] = j(t + 1.5, e + h, n, s);
971
+ return [l, c, p, f, x, w, A, k, d, m, M, g, y, v];
972
+ }
973
+ function te(t = 0, e = Math.PI, n = !0) {
974
+ n && (e = (2 * Math.PI - e) % (2 * Math.PI));
975
+ const r = 10, a = n ? -1 : 1, i = 5 * a, o = 20 * a, u = 25 * a, h = 45, s = 0, l = 0, c = 2, p = 0, f = c * a, d = n ? 1 : -1, m = r / 2 * d;
976
+ let [x, w] = [s + m, l - o], [A, k] = [x + c * d, w], [M, g] = [A - p * d, k + f], [y, v] = [s - m, l - u], [b, $] = [y + p * d, v - f], T = Math.ceil(t / dt), P = Math.floor(T / 10);
977
+ T -= 8 * P;
978
+ const U = [], I = [];
979
+ for (let z = 0; z < T / 2; z++, P--) {
980
+ P <= 0 && T % 2 == 1 && z === (T - 1) / 2 && (y = s, b = y + p * d, v = (v + w) / 2, $ = v - f);
981
+ const [H, et] = j(y, v, e, h);
982
+ if (P > 0) {
983
+ const [Q, it] = j(A, v, e, h), [st, D] = j(x, w, e, h);
984
+ U.push(Q), U.push(it), U.push(H), U.push(et), U.push(st), U.push(D);
985
+ } else {
986
+ const [Q, it] = j(A, k, e, h), [st, D] = j(M, g, e, h), [N, ct] = j(b, $, e, h);
987
+ I.push(H), I.push(et), I.push(N), I.push(ct), I.push(st), I.push(D), I.push(Q), I.push(it);
988
+ }
989
+ v += i, w += i, k += i, g += i, $ += i;
990
+ }
991
+ const [C, S] = j(s + m, l + o, e, h), B = (r / 2 + c) * d, [F, V] = j(s + B, l + o, e, h), [E, W] = j(s + m, l - u, e, h), [L, G] = j(s + B, l - u, e, h);
992
+ return { pennants: U, barbs: I, shaft: [C, S, F, V, E, W, L, G] };
993
+ }
994
+ function j(t, e, n, r = 1) {
995
+ const a = Math.sqrt(t * t + e * e) / r, i = (2 * Math.PI + Math.atan2(e, t)) % (2 * Math.PI);
996
+ return [a, (2 * Math.PI + i - n) % (2 * Math.PI)];
997
+ }
998
+ const ot = [0, 1, 3, 6, 10, 16, 21, 27, 33, 40, 47, 55, 63], ee = [0, 0.5, 1, 1.5, 2], ne = [0, 0.25, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4];
999
+ function Y(t, e, n, r) {
1000
+ const a = mt(r || "knots", n);
1001
+ let i;
1002
+ for (i = 1; i < e.length; i++)
1003
+ if (i === e.length - 1) {
1004
+ if (t < e[i] * a)
1005
+ break;
1006
+ } else if (t <= e[i] * a)
1007
+ break;
1008
+ return Math.min(i - 1, e.length - 2);
1009
+ }
1010
+ function ie(t, e, n, r, a) {
1011
+ let i = 0;
1012
+ switch (e) {
1013
+ case "beaufort_kn":
1014
+ i = Y(t, ot, "knots", n);
1015
+ break;
1016
+ case "beaufort_km":
1017
+ i = Y(t, ot, "kilometer-per-hour", n);
1018
+ break;
1019
+ case "beaufort_ft":
1020
+ i = Y(t, ot, "feet-per-second", n);
1021
+ break;
1022
+ case "beaufort_m":
1023
+ i = Y(t, ot, "meter-per-second", n);
1024
+ break;
1025
+ case "classified_arrow":
1026
+ i = Y(t, a ?? [], r, n);
1027
+ break;
1028
+ case "ocean_current_m":
1029
+ i = Y(t, ee, "meter-per-second", n);
1030
+ break;
1031
+ case "ocean_current_kn":
1032
+ i = Y(t, ne, "knots", n);
1033
+ }
1034
+ return i;
1035
+ }
1036
+ function se(t, e) {
1037
+ const { style: n, inputUnit: r, outputUnit: a, breakValues: i } = e, o = at.fromJSON(r), u = at.fromJSON(a), h = 7 * 6, s = 15;
1038
+ let l = 0, c = 0;
1039
+ const { width: p, height: f, mask: d } = t, m = t.pixels[0], x = t.pixels[1], w = d != null ? d.filter((g) => g > 0).length : p * f, A = new Float32Array(w * h), k = new Uint32Array(s * w), M = e.invertDirection ? Vt(0, 0, 0, !1) : Zt;
1040
+ for (let g = 0; g < f; g++)
1041
+ for (let y = 0; y < p; y++) {
1042
+ const v = g * p + y;
1043
+ if (!d || d[g * p + y]) {
1044
+ const b = (x[v] + 360) % 360 / 180 * Math.PI, $ = ie(m[v], n, o, u, i);
1045
+ for (let P = 0; P < M.length; P += 2)
1046
+ A[l++] = (y + 0.5) / p, A[l++] = (g + 0.5) / f, A[l++] = M[P], A[l++] = M[P + 1] + b, A[l++] = $, A[l++] = m[v];
1047
+ const T = 7 * (l / h - 1);
1048
+ k[c++] = T, k[c++] = T + 1, k[c++] = T + 2, k[c++] = T + 0, k[c++] = T + 4, k[c++] = T + 3, k[c++] = T + 0, k[c++] = T + 2, k[c++] = T + 3, k[c++] = T + 2, k[c++] = T + 5, k[c++] = T + 3, k[c++] = T + 5, k[c++] = T + 6, k[c++] = T + 3;
1049
+ }
1050
+ }
1051
+ return { vertexData: A, indexData: k };
1052
+ }
1053
+ const ft = [];
1054
+ function le(t, e) {
1055
+ if (ft.length === 0)
1056
+ for (let f = 0; f < 30; f++)
1057
+ ft.push(te(5 * f, 0, !e.invertDirection));
1058
+ const n = mt(at.fromJSON(e.inputUnit), "knots"), { width: r, height: a, mask: i } = t, o = t.pixels[0], u = t.pixels[1], h = 6, s = [], l = [];
1059
+ let c = 0, p = 0;
1060
+ for (let f = 0; f < a; f++)
1061
+ for (let d = 0; d < r; d++) {
1062
+ const m = f * r + d, x = o[m] * n;
1063
+ if ((!i || i[f * r + d]) && x >= dt) {
1064
+ const w = (u[m] + 360) % 360 / 180 * Math.PI, { pennants: A, barbs: k, shaft: M } = ft[Math.min(Math.floor(x / 5), 29)];
1065
+ if (A.length + k.length === 0)
1066
+ continue;
1067
+ let g = s.length / h;
1068
+ const y = (d + 0.5) / r, v = (f + 0.5) / a;
1069
+ for (let b = 0; b < A.length; b += 2)
1070
+ s[c++] = y, s[c++] = v, s[c++] = A[b], s[c++] = A[b + 1] + w, s[c++] = 0, s[c++] = x;
1071
+ for (let b = 0; b < k.length; b += 2)
1072
+ s[c++] = y, s[c++] = v, s[c++] = k[b], s[c++] = k[b + 1] + w, s[c++] = 0, s[c++] = x;
1073
+ for (let b = 0; b < M.length; b += 2)
1074
+ s[c++] = y, s[c++] = v, s[c++] = M[b], s[c++] = M[b + 1] + w, s[c++] = 0, s[c++] = x;
1075
+ for (let b = 0; b < A.length / 6; b++)
1076
+ l[p++] = g, l[p++] = g + 1, l[p++] = g + 2, g += 3;
1077
+ for (let b = 0; b < k.length / 8; b++)
1078
+ l[p++] = g, l[p++] = g + 1, l[p++] = g + 2, l[p++] = g + 1, l[p++] = g + 2, l[p++] = g + 3, g += 4;
1079
+ l[p++] = g + 0, l[p++] = g + 1, l[p++] = g + 2, l[p++] = g + 1, l[p++] = g + 3, l[p++] = g + 2, g += 4;
1080
+ }
1081
+ }
1082
+ return { vertexData: new Float32Array(s), indexData: new Uint32Array(l) };
1083
+ }
1084
+ function re(t, e) {
1085
+ let r = 0, a = 0;
1086
+ const { width: i, height: o, mask: u } = t, h = t.pixels[0], s = [], l = [], c = mt(at.fromJSON(e.inputUnit), "knots"), p = e.style === "wind_speed" ? dt : Number.MAX_VALUE;
1087
+ for (let f = 0; f < o; f++)
1088
+ for (let d = 0; d < i; d++) {
1089
+ const m = h[f * i + d] * c;
1090
+ if ((!u || u[f * i + d]) && m < p) {
1091
+ for (let w = 0; w < 4; w++)
1092
+ s[r++] = (d + 0.5) / i, s[r++] = (f + 0.5) / o, s[r++] = w < 2 ? -0.5 : 0.5, s[r++] = w % 2 == 0 ? -0.5 : 0.5, s[r++] = 0, s[r++] = m;
1093
+ const x = 4 * (r / 24 - 1);
1094
+ l[a++] = x, l[a++] = x + 1, l[a++] = x + 2, l[a++] = x + 1, l[a++] = x + 2, l[a++] = x + 3;
1095
+ }
1096
+ }
1097
+ return { vertexData: new Float32Array(s), indexData: new Uint32Array(l) };
1098
+ }
1099
+ function Ne(t, e) {
1100
+ return e.style === "simple_scalar" ? re(t, e) : e.style === "wind_speed" ? le(t, e) : se(t, e);
1101
+ }
1102
+ function Ee(t, e, n, r = [0, 0], a = 0.5) {
1103
+ const { width: i, height: o, mask: u } = t, [h, s] = t.pixels, [l, c] = r, p = Math.round((i - l) / n), f = Math.round((o - c) / n), d = p * f, m = new Float32Array(d), x = new Float32Array(d), w = new Uint8Array(d), A = e === "vector-uv";
1104
+ for (let M = 0; M < f; M++)
1105
+ for (let g = 0; g < p; g++) {
1106
+ let y = 0;
1107
+ const v = M * p + g, b = Math.max(0, M * n + c), $ = Math.max(0, g * n + l), T = Math.min(o, b + n), P = Math.min(i, $ + n);
1108
+ for (let U = b; U < T; U++)
1109
+ for (let I = $; I < P; I++) {
1110
+ const C = U * i + I;
1111
+ if (!u || u[C]) {
1112
+ y++;
1113
+ const S = A ? [h[C], s[C]] : [h[C], (360 + s[C]) % 360], [B, F] = A ? S : Ft(S);
1114
+ m[v] += B, x[v] += F;
1115
+ }
1116
+ }
1117
+ if (y >= (T - b) * (P - $) * (1 - a)) {
1118
+ w[v] = 1;
1119
+ const [U, I] = Ct([m[v] / y, x[v] / y]);
1120
+ m[v] = U, x[v] = I;
1121
+ } else
1122
+ w[v] = 0, m[v] = 0, x[v] = 0;
1123
+ }
1124
+ const k = new _({ width: p, height: f, pixels: [m, x], mask: w });
1125
+ return k.updateStatistics(), k;
1126
+ }
1127
+ const J = () => Z.getLogger("esri.views.2d.engine.flow.dataUtils"), oe = 10;
1128
+ async function je(t, e, n, r) {
1129
+ const a = performance.now(), i = ae(e, n), o = performance.now(), u = ce(e, i, n.width, n.height), h = performance.now(), s = fe(u, !0), l = performance.now(), c = t === "Streamlines" ? pe(s, oe) : de(s), p = performance.now();
1130
+ return nt("esri-2d-profiler") && (J().info("I.1", "_createFlowFieldFromData (ms)", Math.round(o - a)), J().info("I.2", "_getStreamlines (ms)", Math.round(h - o)), J().info("I.3", "createAnimatedLinesData (ms)", Math.round(l - h)), J().info("I.4", "create{Streamlines|Particles}Mesh (ms)", Math.round(p - l)), J().info("I.5", "createFlowMesh (ms)", Math.round(p - a)), J().info("I.6", "Mesh size (bytes)", c.vertexData.buffer.byteLength + c.indexData.buffer.byteLength)), await Promise.resolve(), Ot(r), c;
1131
+ }
1132
+ function ae(t, e) {
1133
+ const n = ue(e.data, e.width, e.height, t.smoothing);
1134
+ return t.interpolate ? (r, a) => {
1135
+ const i = Math.floor(r), o = Math.floor(a);
1136
+ if (i < 0 || i >= e.width)
1137
+ return [0, 0];
1138
+ if (o < 0 || o >= e.height)
1139
+ return [0, 0];
1140
+ const u = r - i, h = a - o, s = i, l = o, c = i < e.width - 1 ? i + 1 : i, p = o < e.height - 1 ? o + 1 : o, f = n[2 * (l * e.width + s)], d = n[2 * (l * e.width + c)], m = n[2 * (p * e.width + s)], x = n[2 * (p * e.width + c)], w = n[2 * (l * e.width + s) + 1], A = n[2 * (l * e.width + c) + 1];
1141
+ return [(f * (1 - h) + m * h) * (1 - u) + (d * (1 - h) + x * h) * u, (w * (1 - h) + n[2 * (p * e.width + s) + 1] * h) * (1 - u) + (A * (1 - h) + n[2 * (p * e.width + c) + 1] * h) * u];
1142
+ } : (r, a) => {
1143
+ const i = Math.round(r), o = Math.round(a);
1144
+ return i < 0 || i >= e.width || o < 0 || o >= e.height ? [0, 0] : [n[2 * (o * e.width + i)], n[2 * (o * e.width + i) + 1]];
1145
+ };
1146
+ }
1147
+ function he(t, e, n, r, a, i, o, u, h) {
1148
+ const s = [];
1149
+ let l = n, c = r, p = 0, [f, d] = e(l, c);
1150
+ f *= t.velocityScale, d *= t.velocityScale;
1151
+ const m = Math.sqrt(f * f + d * d);
1152
+ let x, w;
1153
+ s.push({ x: l, y: c, t: p, speed: m });
1154
+ for (let A = 0; A < t.verticesPerLine; A++) {
1155
+ let [k, M] = e(l, c);
1156
+ k *= t.velocityScale, M *= t.velocityScale;
1157
+ const g = Math.sqrt(k * k + M * M);
1158
+ if (g < t.minSpeedThreshold)
1159
+ return s;
1160
+ const y = k / g, v = M / g;
1161
+ if (l += y * t.segmentLength, c += v * t.segmentLength, p += t.segmentLength / g, Math.acos(y * x + v * w) > t.maxTurnAngle)
1162
+ return s;
1163
+ if (t.collisions) {
1164
+ const b = Math.round(l * h), $ = Math.round(c * h);
1165
+ if (b < 0 || b > o - 1 || $ < 0 || $ > u - 1)
1166
+ return s;
1167
+ const T = i[$ * o + b];
1168
+ if (T !== -1 && T !== a)
1169
+ return s;
1170
+ i[$ * o + b] = a;
1171
+ }
1172
+ s.push({ x: l, y: c, t: p, speed: g }), x = y, w = v;
1173
+ }
1174
+ return s;
1175
+ }
1176
+ function ce(t, e, n, r) {
1177
+ const a = [], i = new Ut(), o = 1 / Math.max(t.lineCollisionWidth, 1), u = Math.round(n * o), h = Math.round(r * o), s = new Int32Array(u * h);
1178
+ for (let c = 0; c < s.length; c++)
1179
+ s[c] = -1;
1180
+ const l = [];
1181
+ for (let c = 0; c < r; c += t.lineSpacing)
1182
+ for (let p = 0; p < n; p += t.lineSpacing)
1183
+ l.push({ x: p, y: c, sort: i.getFloat() });
1184
+ l.sort((c, p) => c.sort - p.sort);
1185
+ for (const { x: c, y: p } of l)
1186
+ if (i.getFloat() < t.density) {
1187
+ const f = he(t, e, c, p, a.length, s, u, h, o);
1188
+ if (f.length < 2)
1189
+ continue;
1190
+ a.push(f);
1191
+ }
1192
+ return a;
1193
+ }
1194
+ function ue(t, e, n, r) {
1195
+ if (r === 0)
1196
+ return t;
1197
+ const a = Math.round(3 * r), i = new Array(2 * a + 1);
1198
+ let o = 0;
1199
+ for (let s = -a; s <= a; s++) {
1200
+ const l = Math.exp(-s * s / (r * r));
1201
+ i[s + a] = l, o += l;
1202
+ }
1203
+ for (let s = -a; s <= a; s++)
1204
+ i[s + a] /= o;
1205
+ const u = new Float32Array(t.length);
1206
+ for (let s = 0; s < n; s++)
1207
+ for (let l = 0; l < e; l++) {
1208
+ let c = 0, p = 0;
1209
+ for (let f = -a; f <= a; f++) {
1210
+ if (l + f < 0 || l + f >= e)
1211
+ continue;
1212
+ const d = i[f + a];
1213
+ c += d * t[2 * (s * e + (l + f))], p += d * t[2 * (s * e + (l + f)) + 1];
1214
+ }
1215
+ u[2 * (s * e + l)] = c, u[2 * (s * e + l) + 1] = p;
1216
+ }
1217
+ const h = new Float32Array(t.length);
1218
+ for (let s = 0; s < e; s++)
1219
+ for (let l = 0; l < n; l++) {
1220
+ let c = 0, p = 0;
1221
+ for (let f = -a; f <= a; f++) {
1222
+ if (l + f < 0 || l + f >= n)
1223
+ continue;
1224
+ const d = i[f + a];
1225
+ c += d * u[2 * ((l + f) * e + s)], p += d * u[2 * ((l + f) * e + s) + 1];
1226
+ }
1227
+ h[2 * (l * e + s)] = c, h[2 * (l * e + s) + 1] = p;
1228
+ }
1229
+ return h;
1230
+ }
1231
+ function fe(t, e) {
1232
+ const n = new Ut(), r = t.reduce((h, s) => h + s.length, 0), a = new Float32Array(4 * r), i = new Array(t.length);
1233
+ let o = 0, u = 0;
1234
+ for (const h of t) {
1235
+ const s = o;
1236
+ for (const l of h)
1237
+ a[4 * o] = l.x, a[4 * o + 1] = l.y, a[4 * o + 2] = l.t, a[4 * o + 3] = l.speed, o++;
1238
+ i[u++] = { startVertex: s, numberOfVertices: h.length, totalTime: h[h.length - 1].t, timeSeed: e ? n.getFloat() : 0 };
1239
+ }
1240
+ return { lineVertices: a, lineDescriptors: i };
1241
+ }
1242
+ function pe(t, e) {
1243
+ const { lineVertices: r, lineDescriptors: a } = t;
1244
+ let i = 0, o = 0;
1245
+ for (const f of a)
1246
+ i += 2 * f.numberOfVertices, o += 6 * (f.numberOfVertices - 1);
1247
+ const u = new Float32Array(i * 9), h = new Uint32Array(o);
1248
+ let s = 0, l = 0;
1249
+ function c() {
1250
+ h[l++] = s - 2, h[l++] = s, h[l++] = s - 1, h[l++] = s, h[l++] = s + 1, h[l++] = s - 1;
1251
+ }
1252
+ function p(f, d, m, x, w, A, k, M) {
1253
+ const g = s * 9;
1254
+ let y = 0;
1255
+ u[g + y++] = f, u[g + y++] = d, u[g + y++] = 1, u[g + y++] = m, u[g + y++] = A, u[g + y++] = k, u[g + y++] = x / 2, u[g + y++] = w / 2, u[g + y++] = M, s++, u[g + y++] = f, u[g + y++] = d, u[g + y++] = -1, u[g + y++] = m, u[g + y++] = A, u[g + y++] = k, u[g + y++] = -x / 2, u[g + y++] = -w / 2, u[g + y++] = M, s++;
1256
+ }
1257
+ for (const f of a) {
1258
+ const { totalTime: d, timeSeed: m } = f;
1259
+ let x = null, w = null, A = null, k = null, M = null, g = null;
1260
+ for (let y = 0; y < f.numberOfVertices; y++) {
1261
+ const v = r[4 * (f.startVertex + y)], b = r[4 * (f.startVertex + y) + 1], $ = r[4 * (f.startVertex + y) + 2], T = r[4 * (f.startVertex + y) + 3];
1262
+ let P = null, U = null, I = null, C = null;
1263
+ if (y > 0) {
1264
+ P = v - x, U = b - w;
1265
+ const S = Math.sqrt(P * P + U * U);
1266
+ if (P /= S, U /= S, y > 1) {
1267
+ let B = P + M, F = U + g;
1268
+ const V = Math.sqrt(B * B + F * F);
1269
+ B /= V, F /= V;
1270
+ const E = Math.min(1 / (B * P + F * U), e);
1271
+ B *= E, F *= E, I = -F, C = B;
1272
+ } else
1273
+ I = -U, C = P;
1274
+ I !== null && C !== null && (p(x, w, A, I, C, d, m, T), c());
1275
+ }
1276
+ x = v, w = b, A = $, M = P, g = U, k = T;
1277
+ }
1278
+ p(x, w, A, -g, M, d, m, k);
1279
+ }
1280
+ return { vertexData: u, indexData: h };
1281
+ }
1282
+ function de(t) {
1283
+ const { lineVertices: a, lineDescriptors: i } = t;
1284
+ let o = 0, u = 0;
1285
+ for (const S of i) {
1286
+ const B = S.numberOfVertices - 1;
1287
+ o += 4 * B * 2, u += 6 * B * 2;
1288
+ }
1289
+ const h = new Float32Array(o * 16), s = new Uint32Array(u);
1290
+ let l, c, p, f, d, m, x, w, A, k, M, g, y, v, b = 0, $ = 0;
1291
+ function T() {
1292
+ s[$++] = b - 8, s[$++] = b - 7, s[$++] = b - 6, s[$++] = b - 7, s[$++] = b - 5, s[$++] = b - 6, s[$++] = b - 4, s[$++] = b - 3, s[$++] = b - 2, s[$++] = b - 3, s[$++] = b - 1, s[$++] = b - 2;
1293
+ }
1294
+ function P(S, B, F, V, E, W, L, G, z, H, et, Q, it, st) {
1295
+ const D = b * 16;
1296
+ let N = 0;
1297
+ for (const ct of [1, 2])
1298
+ for (const _t of [1, 2, 3, 4])
1299
+ h[D + N++] = S, h[D + N++] = B, h[D + N++] = F, h[D + N++] = V, h[D + N++] = L, h[D + N++] = G, h[D + N++] = z, h[D + N++] = H, h[D + N++] = ct, h[D + N++] = _t, h[D + N++] = it, h[D + N++] = st, h[D + N++] = E / 2, h[D + N++] = W / 2, h[D + N++] = et / 2, h[D + N++] = Q / 2, b++;
1300
+ }
1301
+ function U(S, B) {
1302
+ let F = A + M, V = k + g;
1303
+ const E = Math.sqrt(F * F + V * V);
1304
+ F /= E, V /= E;
1305
+ const W = A * F + k * V;
1306
+ F /= W, V /= W;
1307
+ let L = M + y, G = g + v;
1308
+ const z = Math.sqrt(L * L + G * G);
1309
+ L /= z, G /= z;
1310
+ const H = M * L + g * G;
1311
+ L /= H, G /= H, P(l, c, p, f, -V, F, d, m, x, w, -G, L, S, B), T();
1312
+ }
1313
+ function I(S, B, F, V, E, W) {
1314
+ if (A = M, k = g, M = y, g = v, A == null && k == null && (A = M, k = g), d != null && m != null) {
1315
+ y = S - d, v = B - m;
1316
+ const L = Math.sqrt(y * y + v * v);
1317
+ y /= L, v /= L;
1318
+ }
1319
+ A != null && k != null && U(E, W), l = d, c = m, p = x, f = w, d = S, m = B, x = F, w = V;
1320
+ }
1321
+ function C(S, B) {
1322
+ A = M, k = g, M = y, g = v, A == null && k == null && (A = M, k = g), A != null && k != null && U(S, B);
1323
+ }
1324
+ for (const S of i) {
1325
+ l = null, c = null, p = null, f = null, d = null, m = null, x = null, w = null, A = null, k = null, M = null, g = null, y = null, v = null;
1326
+ const { totalTime: B, timeSeed: F } = S;
1327
+ for (let V = 0; V < S.numberOfVertices; V++)
1328
+ I(a[4 * (S.startVertex + V)], a[4 * (S.startVertex + V) + 1], a[4 * (S.startVertex + V) + 2], a[4 * (S.startVertex + V) + 3], B, F);
1329
+ C(B, F);
1330
+ }
1331
+ return { vertexData: h, indexData: s };
1332
+ }
1333
+ function bt(t, e) {
1334
+ const n = e.pixels, { width: r, height: a } = e, i = new Float32Array(r * a * 2), o = e.mask || new Uint8Array(r * a * 2);
1335
+ if (e.mask || o.fill(255), t === "vector-uv")
1336
+ for (let u = 0; u < r * a; u++)
1337
+ i[2 * u] = n[0][u], i[2 * u + 1] = -n[1][u];
1338
+ else if (t === "vector-magdir")
1339
+ for (let u = 0; u < r * a; u++) {
1340
+ const h = n[0][u], s = qt(n[1][u]), l = Math.cos(s - Math.PI / 2), c = Math.sin(s - Math.PI / 2);
1341
+ i[2 * u] = l * h, i[2 * u + 1] = c * h;
1342
+ }
1343
+ return { data: i, mask: o, width: r, height: a };
1344
+ }
1345
+ async function Oe(t, e, n, r, a, i) {
1346
+ const o = performance.now(), u = Gt(e.spatialReference);
1347
+ if (!u) {
1348
+ const M = await vt(t, e, n, r, a, i);
1349
+ return nt("esri-2d-profiler") && J().info("I.7", "loadImagery, early exit (ms)", Math.round(performance.now() - o)), nt("esri-2d-profiler") && J().info("I.9", "Number of parts", 1), M;
1350
+ }
1351
+ const [h, s] = u.valid, l = s - h, c = Math.ceil(e.width / l), p = e.width / c, f = Math.round(n / c);
1352
+ let d = e.xmin;
1353
+ const m = [], x = performance.now();
1354
+ for (let M = 0; M < c; M++) {
1355
+ const g = new Wt({ xmin: d, xmax: d + p, ymin: e.ymin, ymax: e.ymax, spatialReference: e.spatialReference });
1356
+ m.push(vt(t, g, f, r, a, i)), d += p;
1357
+ }
1358
+ const w = await Promise.all(m);
1359
+ nt("esri-2d-profiler") && J().info("I.8", "All calls to _fetchPart (ms)", Math.round(performance.now() - x)), nt("esri-2d-profiler") && J().info("I.9", "Number of parts", w.length);
1360
+ const A = { data: new Float32Array(n * r * 2), mask: new Uint8Array(n * r), width: n, height: r };
1361
+ let k = 0;
1362
+ for (const M of w) {
1363
+ for (let g = 0; g < M.height; g++)
1364
+ for (let y = 0; y < M.width; y++)
1365
+ k + y >= n || (A.data[2 * (g * n + k + y)] = M.data[2 * (g * M.width + y)], A.data[2 * (g * n + k + y) + 1] = M.data[2 * (g * M.width + y) + 1], A.mask[g * n + k + y] = M.mask[g * M.width + y]);
1366
+ k += M.width;
1367
+ }
1368
+ return nt("esri-2d-profiler") && J().info("I.10", "loadImagery, general exit (ms)", Math.round(performance.now() - o)), A;
1369
+ }
1370
+ async function vt(t, e, n, r, a, i) {
1371
+ var s;
1372
+ const o = { requestProjectedLocalDirections: !0, signal: i };
1373
+ if (a != null && (o.timeExtent = a), t.type === "imagery") {
1374
+ await t.load({ signal: i });
1375
+ const l = t.rasterInfo.dataType, c = await t.fetchImage(e, n, r, o);
1376
+ return ((s = c == null ? void 0 : c.pixelData) == null ? void 0 : s.pixelBlock) == null ? { data: new Float32Array(n * r * 2), mask: new Uint8Array(n * r), width: n, height: r } : bt(l, c.pixelData.pixelBlock);
1377
+ }
1378
+ await t.load({ signal: i });
1379
+ const u = t.serviceRasterInfo.dataType, h = await t.fetchPixels(e, n, r, o);
1380
+ return (h == null ? void 0 : h.pixelBlock) == null ? { data: new Float32Array(n * r * 2), mask: new Uint8Array(n * r), width: n, height: r } : bt(u, h.pixelBlock);
1381
+ }
1382
+ export {
1383
+ Te as A,
1384
+ Pt as B,
1385
+ Pe as C,
1386
+ _e as D,
1387
+ Fe as E,
1388
+ Be as M,
1389
+ Ve as R,
1390
+ Ee as S,
1391
+ Se as T,
1392
+ Kt as U,
1393
+ Ce as W,
1394
+ re as _,
1395
+ De as a,
1396
+ Ne as b,
1397
+ ye as c,
1398
+ xe as d,
1399
+ at as e,
1400
+ At as f,
1401
+ Oe as g,
1402
+ mt as h,
1403
+ ht as i,
1404
+ be as j,
1405
+ Ue as k,
1406
+ Ct as l,
1407
+ Le as m,
1408
+ ve as n,
1409
+ R as o,
1410
+ Re as p,
1411
+ Ae as q,
1412
+ we as r,
1413
+ je as s,
1414
+ Me as t,
1415
+ _ as u,
1416
+ wt as v,
1417
+ xt as w,
1418
+ Ie as x,
1419
+ ke as y,
1420
+ $e as z
1421
+ };