@arcgis/core 6.0.0-next.14 → 6.0.0-next.16

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 (398) hide show
  1. package/analysis/LineOfSightAnalysis.d.ts +49 -32
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
  4. package/analysis/Viewshed.d.ts +23 -3
  5. package/analysis/ViewshedAnalysis.d.ts +33 -13
  6. package/arcade/geometry/operatorsWorkerConnection.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/00d66e3fba5ab4d2aa3c.js +1 -0
  9. package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
  10. package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
  11. package/assets/esri/core/workers/chunks/{fb444954be74c1962ced.js → 10d80e793019dfb45ca2.js} +1 -1
  12. package/assets/esri/core/workers/chunks/14d5d219e7fe017f23f0.js +1 -0
  13. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
  14. package/assets/esri/core/workers/chunks/{1bca39e0e651426bdbb5.js → 1b1d3f6916d2cb751435.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{ed6e9d7f71bfd2691717.js → 1c77de1e79860f8d2228.js} +1 -1
  16. package/assets/esri/core/workers/chunks/1e40a26dcce4d1dadc28.js +1 -0
  17. package/assets/esri/core/workers/chunks/237a1f68a0efbfe5b77c.js +1 -0
  18. package/assets/esri/core/workers/chunks/23c43f09c4a4749516e1.js +1 -0
  19. package/assets/esri/core/workers/chunks/{3418877328f4f0830300.js → 24dac4970526a4e0ae63.js} +1 -1
  20. package/assets/esri/core/workers/chunks/26ceb0ff8d93dbb9b84f.js +1 -0
  21. package/assets/esri/core/workers/chunks/2acf2952cef69e382a35.js +1 -0
  22. package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{4df6cb1bee5d0720a43e.js → 36cbd614454581aaf334.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{1e0d2715d603f48a7e0b.js → 370aad23df597db80d65.js} +1 -1
  25. package/assets/esri/core/workers/chunks/3baa4a9c52f41bfd6abb.js +1 -0
  26. package/assets/esri/core/workers/chunks/42d44c7d532df5ee70e9.js +1 -0
  27. package/assets/esri/core/workers/chunks/42e985a576d7aaeed0cf.js +1 -0
  28. package/assets/esri/core/workers/chunks/{6400446b7615b97c3521.js → 45f826554499c38968c6.js} +1 -1
  29. package/assets/esri/core/workers/chunks/48cc58890fddbcf69cef.js +1 -0
  30. package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +1 -0
  31. package/assets/esri/core/workers/chunks/{33e4ff228a8c81b99022.js → 4abd3753cd9b80e4d937.js} +1 -1
  32. package/assets/esri/core/workers/chunks/4bbe1f28f5f16a6bef05.js +1 -0
  33. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
  34. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
  35. package/assets/esri/core/workers/chunks/5529831dd891382c79df.js +1 -0
  36. package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
  37. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +1 -0
  38. package/assets/esri/core/workers/chunks/5acb422fe3cf693d9d4f.js +1 -0
  39. package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
  40. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +1 -0
  41. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +1 -0
  42. package/assets/esri/core/workers/chunks/{89e76de5ae3328d821a4.js → 69f6d5997b8ff1326e39.js} +1 -1
  43. package/assets/esri/core/workers/chunks/6a8dd8b18b0b825b0c1b.js +1 -0
  44. package/assets/esri/core/workers/chunks/{a40b6d8b5c73e06e14d4.js → 6c255c029d67423e4dac.js} +1 -1
  45. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
  46. package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{3ffda5bf0b91700dc308.js → 78643f116677950ea29a.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
  49. package/assets/esri/core/workers/chunks/7b5f3c79e0605c32b267.js +1 -0
  50. package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +1 -0
  51. package/assets/esri/core/workers/chunks/{ac5a6603f7fa78d3e4c8.js → 7e8611cb709f105946f5.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{05cd33d41d91f8d09633.js → 7fb7493f483cd9878bfa.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 8a485130781b49dbf608.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{0ccab50877b24f862d6e.js → 8ac2098ecdc40ad41055.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a655ebdb4bf0660615a2.js → 8b4e9fd88c0c313416d4.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{4e544de61f07ca660236.js → 8c12269d26f5a4c753cb.js} +1 -1
  58. package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
  59. package/assets/esri/core/workers/chunks/91dd65cf877c8f2e01a7.js +1 -0
  60. package/assets/esri/core/workers/chunks/{46b4fb6a7fe4877b0efc.js → 94baa354e50c03b82b25.js} +2 -2
  61. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
  62. package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
  63. package/assets/esri/core/workers/chunks/98be2f621801e230aa01.js +1 -0
  64. package/assets/esri/core/workers/chunks/9b051745d24d1f43480b.js +1 -0
  65. package/assets/esri/core/workers/chunks/9d61740ef8bdcc162be1.js +1 -0
  66. package/assets/esri/core/workers/chunks/{eb04e1717a1002cda3ab.js → 9f06ec95bdf0d0b52b41.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{3b3e519f15ed52c83f0c.js → a49fe94933b65b4b64f8.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{1819c45655c836b9a8d7.js → a4d3944700f1cc240176.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{90bdf86f553e2742d67c.js → a7bd5ba4d7d97411fd33.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
  72. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
  73. package/assets/esri/core/workers/chunks/{b8337492e2b753aefac4.js → ace41659a5ca0e5abfc3.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{3c0ed15b544df6fb0903.js → b48952e1fb4cb7360dd0.js} +1 -1
  75. package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +1 -0
  76. package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{0f617980c7dd9ad0444f.js → bf35927979fc5e7e0478.js} +1 -1
  78. package/assets/esri/core/workers/chunks/c4ddac23bd649d24f3f2.js +1 -0
  79. package/assets/esri/core/workers/chunks/{4e6f40cbdb8c508e6df1.js → c5a9e77977e867a75ff2.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{25f19fc929f25ddd628c.js → c79934cd6883307203f8.js} +1 -1
  81. package/assets/esri/core/workers/chunks/cddc3e285f763ccf33c2.js +1 -0
  82. package/assets/esri/core/workers/chunks/d08ff41e2a9bcd58b64a.js +1 -0
  83. package/assets/esri/core/workers/chunks/d311ff96a5a2791d8cfc.js +1 -0
  84. package/assets/esri/core/workers/chunks/d62afb71f4ece4283994.js +1 -0
  85. package/assets/esri/core/workers/chunks/dc1761cba0454fda3cf9.js +1 -0
  86. package/assets/esri/core/workers/chunks/{4ac1d3e49e242e373a92.js → e0650b1408197d3ac862.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{3ff6d1ed3c0f1285f3e7.js → e0d9dc97985561320bd4.js} +1 -1
  88. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
  89. package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
  90. package/assets/esri/core/workers/chunks/eca44e53bcee9b08d70a.js +1 -0
  91. package/assets/esri/core/workers/chunks/f00458654c7c34c369ef.js +1 -0
  92. package/assets/esri/core/workers/chunks/f3cd610084e3f4d8656b.js +1 -0
  93. package/assets/esri/core/workers/chunks/f47fe4433b05fca5c3ad.js +1 -0
  94. package/assets/esri/core/workers/chunks/f7bfa3d33b05b250ce33.js +1 -0
  95. package/assets/esri/core/workers/chunks/f91bc1cb1014e05be763.js +1 -0
  96. package/assets/esri/core/workers/chunks/{aadfe34a99c9ec7a0e11.js → f9c5aa0bbf23e780fecc.js} +1 -1
  97. package/assets/esri/core/workers/chunks/f9ff27cfcf0538ac5e26.js +1 -0
  98. package/assets/esri/core/workers/chunks/{19676b2c5f8b0a5ee680.js → facd1ff23203fed67686.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{40a584cb952e94326e9e.js → fcb86d24fc7e0666b564.js} +1 -1
  100. package/assets/esri/libs/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
  101. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  102. package/chunks/Envelope.js +1 -1
  103. package/chunks/MultiPathImpl.js +1 -1
  104. package/chunks/OperatorGeodeticArea.js +1 -1
  105. package/chunks/OperatorShapePreservingLength.js +1 -1
  106. package/chunks/OperatorShapePreservingProject.js +1 -1
  107. package/chunks/UnitFactory.js +1 -1
  108. package/chunks/basis_encoder.js +1 -1
  109. package/chunks/basis_transcoder.js +1 -1
  110. package/chunks/index.js +1 -1
  111. package/chunks/lclayout.js +1 -1
  112. package/config.d.ts +2 -0
  113. package/config.js +1 -1
  114. package/core/ObjectPool.js +1 -1
  115. package/core/PooledArray.js +1 -1
  116. package/core/accessorSupport/DefaultsStore.js +1 -1
  117. package/core/accessorSupport/MultiOriginStore.js +1 -1
  118. package/core/accessorSupport/Store.js +1 -1
  119. package/core/accessorSupport/decorators/reader.js +1 -1
  120. package/core/accessorSupport/decorators/writer.js +1 -1
  121. package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
  122. package/core/workers/WorkerOwner.js +1 -1
  123. package/core/workers/workerFactory.js +1 -1
  124. package/core/workers/workers.js +2 -2
  125. package/core/workers.d.ts +9 -0
  126. package/form/elements/inputs/DynamicChoiceInput.d.ts +4 -2
  127. package/geometry/Mesh.js +1 -1
  128. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  129. package/geometry/operators/gx/operatorOffset.js +1 -1
  130. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  131. package/geometry/operators/support/jsonConverter.js +1 -1
  132. package/geometry/support/buffer/BufferPool.js +1 -1
  133. package/geometry/support/coordsUtils.js +1 -1
  134. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  135. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  136. package/geometry/support/meshUtils/merge.js +1 -1
  137. package/geometry/support/meshUtils/rotate.js +1 -1
  138. package/geometry/support/meshUtils.d.ts +5 -6
  139. package/geometry/support/polygonExtentClipping.js +1 -1
  140. package/identity/Credential.js +1 -1
  141. package/interfaces.d.ts +18 -9
  142. package/kernel.js +1 -1
  143. package/layers/AnnotationFeatureLayer.d.ts +2 -2
  144. package/layers/AnnotationFeatureLayer.js +1 -1
  145. package/layers/CatalogLayer.d.ts +2 -2
  146. package/layers/CatalogLayer.js +1 -1
  147. package/layers/DimensionFeatureLayer.d.ts +2 -2
  148. package/layers/DimensionFeatureLayer.js +1 -1
  149. package/layers/FeatureLayer.d.ts +4 -4
  150. package/layers/FeatureLayer.js +1 -1
  151. package/layers/GeospatialPDFLayer.d.ts +154 -4
  152. package/layers/ImageryTileLayer.js +1 -1
  153. package/layers/Layer.d.ts +2 -0
  154. package/layers/LineOfSightLayer.d.ts +10 -8
  155. package/layers/SceneLayer.js +1 -1
  156. package/layers/SubtypeGroupLayer.d.ts +2 -2
  157. package/layers/SubtypeGroupLayer.js +1 -1
  158. package/layers/ViewshedLayer.d.ts +1 -1
  159. package/layers/VoxelLayer.js +1 -1
  160. package/layers/WMSLayer.js +1 -1
  161. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  162. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
  163. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  164. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  165. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  166. package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
  167. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  168. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  169. package/layers/graphics/data/QueryEngineResult.js +1 -1
  170. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  171. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  172. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  173. package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
  174. package/layers/mixins/ReloadableLayer.js +2 -0
  175. package/layers/raster/datasets/BaseRaster.js +1 -1
  176. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  177. package/layers/raster/datasets/ImageAuxRaster.js +2 -2
  178. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  179. package/layers/raster/datasets/InMemoryRaster.js +1 -1
  180. package/layers/raster/datasets/MRFRaster.js +1 -1
  181. package/layers/raster/datasets/TIFFRaster.js +1 -1
  182. package/layers/raster/datasets/WCSRaster.js +1 -1
  183. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  184. package/layers/raster/formats/RasterCodec.js +1 -1
  185. package/layers/raster/formats/TiffDecoder.js +1 -1
  186. package/layers/raster/formats/Zlib.js +1 -1
  187. package/layers/raster/functions/stretchUtils.js +1 -1
  188. package/layers/raster/functions/vectorFieldUtils.js +1 -1
  189. package/layers/support/FieldsIndex.js +1 -1
  190. package/layers/support/LabelClass.d.ts +3 -2
  191. package/layers/support/PortalItemData.d.ts +31 -8
  192. package/layers/support/RasterWorker.js +1 -1
  193. package/layers/support/featureReductionProperties.js +1 -1
  194. package/layers/support/kmlUtils.js +1 -1
  195. package/layers/support/types.d.ts +4 -1
  196. package/layers/video/VideoController.js +10 -10
  197. package/libs/maquette/projection.js +1 -1
  198. package/networks/UtilityNetworkTraceAnalysis.js +1 -1
  199. package/package.json +5 -5
  200. package/popup/FeatureModel.js +1 -1
  201. package/popup/FeaturesModel.js +1 -1
  202. package/portal/Portal.js +1 -1
  203. package/request/process.js +1 -1
  204. package/request/types.d.ts +7 -0
  205. package/rest/knowledgeGraph/ObjectValue.js +1 -1
  206. package/rest/knowledgeGraphService.js +1 -1
  207. package/rest/networks/trace.js +1 -1
  208. package/rest/query/executeQuery.js +1 -1
  209. package/smartMapping/raster/renderers/shadedRelief.js +1 -1
  210. package/smartMapping/renderers/univariateColorSize.js +1 -1
  211. package/smartMapping/statistics/support/statsWorker.js +1 -1
  212. package/smartMapping/statistics/support/utils.js +1 -1
  213. package/smartMapping/support/clusterUtils.js +1 -1
  214. package/statistics/utils.js +1 -1
  215. package/symbols/cim/CIMCursor.js +1 -1
  216. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  217. package/symbols/cim/cimAnalyzer.js +1 -1
  218. package/symbols/support/ElevationInfo.d.ts +4 -3
  219. package/undoredo/support/Services.js +1 -1
  220. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +2 -2
  221. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  222. package/views/2d/grid/GridView2D.js +1 -1
  223. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  224. package/views/2d/layers/features/sources/strategies/FeatureHybridTileLoadStrategy.js +1 -1
  225. package/views/2d/layers/features/sources/strategies/FeaturePagedTileLoadStrategy.js +1 -1
  226. package/views/2d/layers/features/sources/strategies/FeatureSnapshotLoadStrategy.js +1 -1
  227. package/views/2d/viewpointUtils.js +1 -1
  228. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  229. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  230. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  231. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  232. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  233. package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
  234. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  235. package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
  236. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
  237. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  238. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  239. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  240. package/views/3d/analysis/Viewshed/types.d.ts +7 -0
  241. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
  242. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  243. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  244. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  245. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  246. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  247. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  248. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  249. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  250. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  251. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  252. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  253. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  254. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  255. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  256. package/views/3d/layers/graphics/SpatialIndex2D.js +1 -1
  257. package/views/3d/layers/i3s/I3SNode.js +1 -1
  258. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  259. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  260. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  261. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  262. package/views/3d/layers/support/FeatureTileFetcher3DDebugger.js +1 -1
  263. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  264. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  265. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  266. package/views/3d/support/MemoryController.js +1 -1
  267. package/views/3d/support/elevationUpdateExtentUtils.js +1 -1
  268. package/views/3d/support/elevationUpdateUtils.js +1 -1
  269. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  270. package/views/3d/support/sphereExtentUtils.js +2 -0
  271. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  272. package/views/3d/terrain/OverlayRenderer.js +1 -1
  273. package/views/3d/terrain/PatchRenderData.js +1 -1
  274. package/views/3d/terrain/TerrainData.js +1 -1
  275. package/views/3d/terrain/terrainUtils.js +1 -1
  276. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  277. package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
  278. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  279. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  280. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  281. package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
  282. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  283. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  284. package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
  285. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  286. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  287. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  288. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  289. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  290. package/views/SceneView.js +1 -1
  291. package/views/ToolViewManager.js +1 -1
  292. package/views/draw/DrawOperation.js +1 -1
  293. package/views/draw/support/InteractiveHandle.js +1 -1
  294. package/views/draw/support/Reshape.js +1 -1
  295. package/views/draw/support/createUtils.js +1 -1
  296. package/views/draw/support/editingSessionUtils.js +1 -1
  297. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  298. package/views/interactive/SegmentLabels.js +1 -1
  299. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  300. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  301. package/views/interactive/editGeometry/operations/SetAllVertexPositions.js +1 -1
  302. package/views/interactive/editGeometry/operations/UndoGroup.js +1 -1
  303. package/views/interactive/options/TooltipOptions.d.ts +2 -0
  304. package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
  305. package/views/interactive/sketch/constraintUtils.js +1 -1
  306. package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
  307. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  308. package/views/layers/LayerView.js +1 -1
  309. package/views/layers/LineOfSightLayerView.d.ts +35 -13
  310. package/views/layers/SketchLayerView.d.ts +1 -0
  311. package/views/layers/ViewshedLayerView.d.ts +36 -12
  312. package/views/webgl/Program.js +1 -1
  313. package/views/webgl/Texture.js +1 -1
  314. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  315. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  316. package/widgets/BatchAttributeForm.js +1 -1
  317. package/widgets/Directions.js +1 -1
  318. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  319. package/widgets/Editor/EditorViewModel.d.ts +10 -1
  320. package/widgets/Editor/legacy/CreateFeaturesWorkflow.js +1 -1
  321. package/widgets/Editor.d.ts +10 -1
  322. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  323. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  324. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  325. package/widgets/FeatureTable/support/GroupColumnTemplate.js +1 -1
  326. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  327. package/widgets/HistogramRangeSlider.d.ts +2 -2
  328. package/widgets/HistogramRangeSlider.js +1 -1
  329. package/widgets/Legend.d.ts +1 -0
  330. package/widgets/Print.js +1 -1
  331. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
  332. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  333. package/widgets/ScaleRangeSlider.js +1 -1
  334. package/widgets/Slice.js +1 -1
  335. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
  336. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
  337. package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
  338. package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
  339. package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
  340. package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
  341. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
  342. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
  343. package/widgets/ValuePicker/types.d.ts +2 -0
  344. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  345. package/widgets/support/SelectionList.js +1 -1
  346. package/widgets/support/componentsUtils.js +1 -1
  347. package/assets/esri/core/workers/chunks/024b44c0c8876627f904.js +0 -1
  348. package/assets/esri/core/workers/chunks/02c5d027bdaee67869cf.js +0 -1
  349. package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
  350. package/assets/esri/core/workers/chunks/037a8cc19debbaaa4e10.js +0 -1
  351. package/assets/esri/core/workers/chunks/0c8c01097847617261b9.js +0 -1
  352. package/assets/esri/core/workers/chunks/0d931c7579b6409a696d.js +0 -1
  353. package/assets/esri/core/workers/chunks/12c154342fff876f2f1e.js +0 -1
  354. package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
  355. package/assets/esri/core/workers/chunks/1e11d2e97d17685b878a.js +0 -1
  356. package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
  357. package/assets/esri/core/workers/chunks/21ddb26526bcb2b122c3.js +0 -1
  358. package/assets/esri/core/workers/chunks/22e8c0aad2fe75943865.js +0 -1
  359. package/assets/esri/core/workers/chunks/2eae542fe7f0f6576ac1.js +0 -1
  360. package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
  361. package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +0 -1
  362. package/assets/esri/core/workers/chunks/46a7da93a63663878583.js +0 -1
  363. package/assets/esri/core/workers/chunks/4a1e23e021bac37a88ab.js +0 -1
  364. package/assets/esri/core/workers/chunks/4c4117e28ea358a32088.js +0 -1
  365. package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +0 -1
  366. package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
  367. package/assets/esri/core/workers/chunks/5bfea0c55aca826de536.js +0 -1
  368. package/assets/esri/core/workers/chunks/62ac588f7dd1d24d0c9d.js +0 -1
  369. package/assets/esri/core/workers/chunks/62c8c9ad09e0166207fd.js +0 -1
  370. package/assets/esri/core/workers/chunks/62d6e101e9bd9557a410.js +0 -1
  371. package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
  372. package/assets/esri/core/workers/chunks/665e31c494d2af505acc.js +0 -1
  373. package/assets/esri/core/workers/chunks/6f4e6022a52de0c54aab.js +0 -1
  374. package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
  375. package/assets/esri/core/workers/chunks/7ef182e24cad50815b4e.js +0 -1
  376. package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +0 -1
  377. package/assets/esri/core/workers/chunks/8431ca60ad33d594e323.js +0 -1
  378. package/assets/esri/core/workers/chunks/876f7633c15f1e31078d.js +0 -1
  379. package/assets/esri/core/workers/chunks/8ca9648eacb894283513.js +0 -1
  380. package/assets/esri/core/workers/chunks/91ebb2ccab1889eb7e81.js +0 -1
  381. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +0 -1
  382. package/assets/esri/core/workers/chunks/9e1a3b6a08c96dcefdde.js +0 -1
  383. package/assets/esri/core/workers/chunks/9e3e442a9874ed23a043.js +0 -1
  384. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +0 -1
  385. package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
  386. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +0 -1
  387. package/assets/esri/core/workers/chunks/d8f1cefcad02d7353d4b.js +0 -1
  388. package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
  389. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +0 -1
  390. package/assets/esri/core/workers/chunks/de02f60258e6985ef676.js +0 -1
  391. package/assets/esri/core/workers/chunks/e10b57aefcc89671116e.js +0 -1
  392. package/assets/esri/core/workers/chunks/e65dfa19f030ec298437.js +0 -1
  393. package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +0 -1
  394. package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +0 -1
  395. package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
  396. package/assets/esri/core/workers/chunks/fe9879ecd69ac4329291.js +0 -1
  397. package/layers/mixins/FeatureLayerReload.js +0 -2
  398. /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6263],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){let t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){let t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}i.d(t,["T",0,r])},6455(e,t,i){i.d(t,{FJ:()=>m,Dp:()=>w,KV:()=>v});var r=i(32198),n=i(93637),l=i(91429),s=i(89317),o=i(69540),a=i(7762),u=i(25482),d=i(83960),p=i(13069);const c={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let f=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilter")],f);var g=i(41560),y=i(43937);let h=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(f)),this.mode="manual"}writeFilters(e,t,i,r){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let i=(0,d.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=n.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],h.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,l.MZ)({type:a.A.ofType(f),nonNullable:!0,json:{write:!0}})],h.prototype,"filters",void 0),(0,r.Cg)([(0,y.K)("filters")],h.prototype,"writeFilters",null),(0,r.Cg)([(0,l.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],h.prototype,"mode",void 0),h=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilterInfo")],h);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,l.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,l.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:h,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends o.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>_});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=Z(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=Z(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=Z(e,t.field,"avg","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=Z(e,t.field,"sum","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=Z(e,i.field,"mode","string"):i.valueExpression&&(i.field=j(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=Z(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=Z(e,i.field,"avg","number"):i.valueExpression&&(i.field=j(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){let i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function j(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function Z(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const _=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>D});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;let t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function j(){return V((0,o.o8)(m.kF))}function Z(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function _(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return V((0,o.o8)(m.M6))}function E(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return("object"!=typeof i||!i)&&(i=t.write={}),i.ignoreOrigin=!0,e}var T=i(65494),z=i(93223),L=i(36005);let N=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,z.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),K=i(33910),k=i(43937);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?G(r)?null:(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&G(r)?(0,T.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new $.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:K.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,L.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,L.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var q=i(67202);const U={key:"type",base:null,typeMap:{selection:q.A}},B={key:"type",base:null,typeMap:{cluster:P,binning:N}},D={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6263],{80200(e,t,i){i.d(t,{d:()=>p});const r={Base64:0,Hex:1,String:2,Raw:3};function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e,t,i,r,l,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(r,s)),l),i)}function s(e,t,i,r,n,s,o){return l(t&i|~t&r,e,t,n,s,o)}function o(e,t,i,r,n,s,o){return l(t&r|i&~r,e,t,n,s,o)}function a(e,t,i,r,n,s,o){return l(t^i^r,e,t,n,s,o)}function u(e,t,i,r,n,s,o){return l(i^(t|~r),e,t,n,s,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,l=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=i,c=r,f=l,g=d;i=s(i,r,l,d,e[t],7,-680876936),d=s(d,i,r,l,e[t+1],12,-389564586),l=s(l,d,i,r,e[t+2],17,606105819),r=s(r,l,d,i,e[t+3],22,-1044525330),i=s(i,r,l,d,e[t+4],7,-176418897),d=s(d,i,r,l,e[t+5],12,1200080426),l=s(l,d,i,r,e[t+6],17,-1473231341),r=s(r,l,d,i,e[t+7],22,-45705983),i=s(i,r,l,d,e[t+8],7,1770035416),d=s(d,i,r,l,e[t+9],12,-1958414417),l=s(l,d,i,r,e[t+10],17,-42063),r=s(r,l,d,i,e[t+11],22,-1990404162),i=s(i,r,l,d,e[t+12],7,1804603682),d=s(d,i,r,l,e[t+13],12,-40341101),l=s(l,d,i,r,e[t+14],17,-1502002290),r=s(r,l,d,i,e[t+15],22,1236535329),i=o(i,r,l,d,e[t+1],5,-165796510),d=o(d,i,r,l,e[t+6],9,-1069501632),l=o(l,d,i,r,e[t+11],14,643717713),r=o(r,l,d,i,e[t],20,-373897302),i=o(i,r,l,d,e[t+5],5,-701558691),d=o(d,i,r,l,e[t+10],9,38016083),l=o(l,d,i,r,e[t+15],14,-660478335),r=o(r,l,d,i,e[t+4],20,-405537848),i=o(i,r,l,d,e[t+9],5,568446438),d=o(d,i,r,l,e[t+14],9,-1019803690),l=o(l,d,i,r,e[t+3],14,-187363961),r=o(r,l,d,i,e[t+8],20,1163531501),i=o(i,r,l,d,e[t+13],5,-1444681467),d=o(d,i,r,l,e[t+2],9,-51403784),l=o(l,d,i,r,e[t+7],14,1735328473),r=o(r,l,d,i,e[t+12],20,-1926607734),i=a(i,r,l,d,e[t+5],4,-378558),d=a(d,i,r,l,e[t+8],11,-2022574463),l=a(l,d,i,r,e[t+11],16,1839030562),r=a(r,l,d,i,e[t+14],23,-35309556),i=a(i,r,l,d,e[t+1],4,-1530992060),d=a(d,i,r,l,e[t+4],11,1272893353),l=a(l,d,i,r,e[t+7],16,-155497632),r=a(r,l,d,i,e[t+10],23,-1094730640),i=a(i,r,l,d,e[t+13],4,681279174),d=a(d,i,r,l,e[t],11,-358537222),l=a(l,d,i,r,e[t+3],16,-722521979),r=a(r,l,d,i,e[t+6],23,76029189),i=a(i,r,l,d,e[t+9],4,-640364487),d=a(d,i,r,l,e[t+12],11,-421815835),l=a(l,d,i,r,e[t+15],16,530742520),r=a(r,l,d,i,e[t+2],23,-995338651),i=u(i,r,l,d,e[t],6,-198630844),d=u(d,i,r,l,e[t+7],10,1126891415),l=u(l,d,i,r,e[t+14],15,-1416354905),r=u(r,l,d,i,e[t+5],21,-57434055),i=u(i,r,l,d,e[t+12],6,1700485571),d=u(d,i,r,l,e[t+3],10,-1894986606),l=u(l,d,i,r,e[t+10],15,-1051523),r=u(r,l,d,i,e[t+1],21,-2054922799),i=u(i,r,l,d,e[t+8],6,1873313359),d=u(d,i,r,l,e[t+15],10,-30611744),l=u(l,d,i,r,e[t+6],15,-1560198380),r=u(r,l,d,i,e[t+13],21,1309151649),i=u(i,r,l,d,e[t+4],6,-145523070),d=u(d,i,r,l,e[t+11],10,-1120210379),l=u(l,d,i,r,e[t+2],15,718787259),r=u(r,l,d,i,e[t+9],21,-343485551),i=n(i,p),r=n(r,c),l=n(l,f),d=n(d,g)}return[i,r,l,d]}function p(e,t=r.Hex){let i=t||r.Base64,n=d(function(e){let t=[];for(let i=0,r=8*e.length;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case r.Raw:return n;case r.Hex:return function(e){let t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(n);case r.String:return function(e){let t=[];for(let i=0,r=32*e.length;i<r;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(n);case r.Base64:return function(e){let t=[];for(let i=0,r=4*e.length;i<r;i+=3){let r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(n)}}i.d(t,["T",0,r])},6455(e,t,i){i.d(t,{FJ:()=>m,Dp:()=>w,KV:()=>v});var r=i(32198),n=i(93637),l=i(91429),s=i(89317),o=i(69540),a=i(7762),u=i(25482),d=i(83960),p=i(13069);const c={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let f=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:c})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilter")],f);var g=i(41560),y=i(43937);let h=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(f)),this.mode="manual"}writeFilters(e,t,i,r){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let i=(0,d.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=n.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],h.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,l.MZ)({type:a.A.ofType(f),nonNullable:!0,json:{write:!0}})],h.prototype,"filters",void 0),(0,r.Cg)([(0,y.K)("filters")],h.prototype,"writeFilters",null),(0,r.Cg)([(0,l.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],h.prototype,"mode",void 0),h=(0,r.Cg)([(0,l.$K)("esri.layers.support.DisplayFilterInfo")],h);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,l.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,l.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:h,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},87718(e,t,i){i.d(t,{F:()=>F,Y:()=>S});var r,n=i(32198),l=i(91429),s=i(49186),o=i(25482),a=i(93637),u=i(76369),d=i(66552),p=i(4718),c=i(50498),f=i(97552),g=i(79677);const y=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),h=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let m=r=class extends o.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:i,spatialRelationship:r,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new f.A({geometry:(0,p.o8)(i),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:t,units:s,distance:o,...e})}clone(){let{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:l,units:s,distance:o}=this;return new r({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:e,units:s,distance:o})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],m.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:y.apiValues,json:{name:"spatialRel",read:{reader:y.read},write:{allowNull:!1,writer:y.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],m.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],m.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{read:h.read,write:{writer:h.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],m.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],m.prototype,"timeExtent",void 0),m=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],m);const w=m;var v;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=v=class extends o.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let i=super.write(e,t);if(t?.origin){if(i.filter){let e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:w,json:{write:{allowNull:!0,writer(e,t,i,r){let n=e?.write({},r);n&&0!==Object.keys(n).length?(0,a.sM)(i,n,t):(0,a.sM)(i,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const R={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":R,"portal-item":R}}},F=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],i.prototype,"featureEffect",void 0),i=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],i),i}},56658(e,t,i){i.d(t,{J:()=>_});var r=i(32198),n=i(36708),l=i(91429),s=i(41910),o=i(60950),a=i(99959);class u extends a.A{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[o.ym](){let e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[s.e7](){return this.featureReductionProvider}}var d=i(50820),p=i(20569),c=i(77548),f=i(96576),g=i(48940),y=i(12330),h=i(49186),m=i(44208),w=i(53966),v=i(80200),b=i(39767),C=i(30943),M=i(53930);m.A.add("esri-cluster-arcade-enabled",!0);const x=(0,m.A)("esri-cluster-arcade-enabled"),R=new Set(["simple-line","simple-fill","picture-fill"]);function S(e,t){let i=t.clone();if(!F(i))return i;if(t.symbols.some(e=>R.has(e.type))&&(i=new f.A({symbol:new M.A})),i.authoringInfo||(i.authoringInfo=new C.A),i.authoringInfo.isAutoGenerated=!0,"visualVariables"in i){let t=(i.visualVariables||[]).filter(e=>"$view.scale"!==e.valueExpression);t.forEach(t=>{"rotation"===t.type?t.field?t.field=Z(e,t.field,"avg_angle","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg_angle","number"),null):t.normalizationField?(t.field=Z(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=Z(e,t.field,"avg","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"avg","number"),null)}),i.visualVariables=t}switch(i.type){case"simple":break;case"pie-chart":for(let t of i.attributes)t.field?t.field=Z(e,t.field,"sum","number"):t.valueExpression&&=(t.field=j(e,t.valueExpression,"sum","number"),null);break;case"unique-value":i.field?i.field=Z(e,i.field,"mode","string"):i.valueExpression&&(i.field=j(e,i.valueExpression,"mode","string"),i.valueExpression=null);break;case"class-breaks":i.normalizationField?(i.field=Z(e,i.field,"avg_norm","number",i.normalizationField),i.normalizationField=null):i.field?i.field=Z(e,i.field,"avg","number"):i.valueExpression&&(i.field=j(e,i.valueExpression,"avg","number"),i.valueExpression=null)}return i}const F=e=>{let t=t=>w.A.getLogger("esri.views.2d.layers.support.clusterUtils").error(new h.A("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){let i=e.normalizationType;if("field"!==i)return t(`FeatureReductionCluster does not support a normalizationType of ${i}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!x){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some(e=>!(!("valueExpression"in e)||!e.valueExpression)))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function j(e,t,i,r){let n=(0,v.d)(t),l="mode"===i?`cluster_type_${n}`:"sum"===i?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some(e=>e.name===l)||e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:t,returnType:r}),statisticType:i})),l}function Z(e,t,i,r,n){if("cluster_count"===t||e.some(e=>e.name===t))return t;let l=function(e,t,i){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{let e=i,r=t.toLowerCase()+",norm:field,"+e.toLowerCase();return"cluster_avg_"+(0,v.d)(r)}}}(i,t,n);return e.some(e=>e.name===l)||("avg_norm"===i?e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticExpression:new b.A({expression:`$feature.${t} / $feature.${n}`,returnType:r}),statisticType:"avg"})):e.push(new d.A({name:l,isAutoGenerated:!0,onStatisticField:t,statisticType:i}))),l}const _=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.aggregateGraphicOrigin=new u(this),this.addHandles([(0,n.wB)(()=>this.renderer,()=>{this.featureReduction&&this._setFeatureReduction(this.featureReduction)},n.OH),(0,n.wB)(()=>[this.loaded],()=>{this.loaded&&this._setLayerReference(this.featureReduction,this)})])}set featureReduction(e){this._setFeatureReduction(e)}set renderer(e){}_withClusterVariable(e,t,i){let r=e.clone();return"visualVariables"in r&&(r.visualVariables||=[],r.visualVariables.some(e=>"size"===e.type)||r.visualVariables.push(new g.A({field:"cluster_count",stops:[new y.A({value:1}),new y.A({useMinValue:!0,size:t}),new y.A({useMaxValue:!0,size:i})]}))),r}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;let t=e.clone(),i=[new d.A({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],r=(t.fields??[]).filter(e=>!e.isAutoGenerated),n=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:l,clusterMaxSize:s}=t;if(n){t.fields=[...i,...r];let e=this._withClusterVariable(t.renderer,l,s);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...i,...r],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;let n=S(i,this.renderer),o=this._withClusterVariable(n,l,s),a="visualVariables"in o&&o.visualVariables?o.visualVariables:[],u=new f.A({symbol:e.symbol,visualVariables:a});return t.fields=[...i,...r],t.effectiveFeatureRenderer=o,t.effectiveClusterRenderer=u,t}if(!this.renderer)return e;let o=S(i,this.renderer);t.fields=[...i,...r],t.renderer=o;let a=this._withClusterVariable(o,l,s);return t.effectiveFeatureRenderer=a,t.effectiveClusterRenderer=a,t}_setFeatureReduction(e){let t=this._get("featureReduction");this._setLayerReference(t,null);let i=this._normalizeFeatureReduction(e);this._setLayerReference(i,this),this._set("featureReduction",i)}_setLayerReference(e,t){e&&"layer"in e&&(e.layer=(0,c.jy)(t)&&(0,c.Qi)(t)?t:null)}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],i.prototype,"aggregateGraphicOrigin",void 0),(0,r.Cg)([(0,l.MZ)(p.d)],i.prototype,"featureReduction",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureReductionLayer")],i),i}},50820(e,t,i){i.d(t,{A:()=>d});var r,n=i(32198),l=i(25482),s=i(4718),o=i(91429),a=i(39767),u=i(30524);let d=class extends l.o{static{r=this}constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}get type(){return this.layer?(0,u.e7)(this,this.layer.fieldsIndex):null}clone(){return new r({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,s.o8)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"isAutoGenerated",void 0),(0,n.Cg)([(0,o.MZ)({clonable:!1})],d.prototype,"layer",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],d.prototype,"onStatisticExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"statisticType",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],d.prototype,"type",null),d=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.AggregateField")],d)},39767(e,t,i){i.d(t,{A:()=>o});var r=i(32198),n=i(69540),l=i(25482),s=i(91429);let o=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"expression",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],o.prototype,"returnType",void 0),o=(0,r.Cg)([(0,s.$K)("esri.layers.support.ExpressionInfo")],o)},67202(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(25482),s=i(91429);let o=r=class extends l.o{constructor(e){super(e),this.type="selection"}clone(){return new r}};(0,n.Cg)([(0,s.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureReductionSelection")],o)},30279(e,t,i){i.d(t,{A:()=>u});var r=i(32198),n=i(69540),l=i(25482),s=i(10107),o=i(64108),a=i(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,o.$)("esri.layers.support.FieldConfiguration")],u)},20569(e,t,i){i.d(t,{d:()=>D});var r=i(89317),n=i(32198),l=i(69540),s=i(25482),o=i(4718),a=i(90629),u=i(91429),d=i(78888),p=i(15426),c=i(37838),f=i(93637),g=i(50820),y=i(30524);class h{constructor(e){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this.fields=e;let t=[];for(let e of this.fields){let i=e?.name,r=(0,y.GZ)(i);if(i&&r){let n=(0,y.NF)(i);this._fieldsMap.set(i,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),t.push(`${n}:${e.type||""}`)}}t.sort(),this.uid=t.join()}equals(e){return this.uid===e?.uid}get(e){return(0,y.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}}var m=i(10873),w=i(30279),v=i(16194),b=i(46499),C=i(77548),M=i(41214);function x(){return{type:[w.A],clonable:!1,json:{name:"fieldConfigurations",write:{overridePolicy(e){return{enabled:(0,C.jy)(this.layer),ignoreOrigin:!0}}}},set:function(e){if(this._override("fieldConfigurations",e),!this.layer?.loaded)return;let t=(0,v.sS)(this,e);t&&this._set("popupTemplate",t)},get:function(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):this.layer?.loaded?(0,v.QX)(this)||null:void 0}}}function R(){return{type:[g.A],value:[],json:{write:{ignoreOrigin:!0,writer(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,f.sM)(i,r,t)}}},set:function(e){O(this._get("fields"),null),O(e,this.layer),this._set("fields",e)}}}function S(){return{readOnly:!0,get:function(){return new h(this.fields)}}}function F(){return{type:[b.A],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo",ignoreOrigin:!0}}}}function j(){return V((0,o.o8)(m.kF))}function Z(){return{clonable:!1,set:function(e){O(this.fields,e),this._set("layer",e)}}}function _(){return{type:Number,json:{default:0,name:"visibilityInfo.maxScale",write:{ignoreOrigin:!0}}}}function A(){return V((0,o.o8)(m.M6))}function E(){return{type:c.A,json:{name:"popupInfo",write:{ignoreOrigin:!0,writer(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:(0,C.jy)(this.layer)}))}}}}}function I(){return{types:M.Hg,json:{write:{target:"drawingInfo.renderer",ignoreOrigin:!0}}}}function O(e,t){e?.forEach(e=>{e.layer=t})}function V(e){let t=e.json;t||=e.json={};let i=t.write;return"object"==typeof i&&i||(i=t.write={}),i.ignoreOrigin=!0,e}var T=i(65494),z=i(93223),L=i(36005);let N=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=null,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.size=(0,a.cr)("12px"),this.fields=[],this.renderer=null}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["binning"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"type",void 0),(0,n.Cg)([(0,z.e)({geohash:"geohash",square:"square"}),(0,u.MZ)({type:["geohash","square"],json:{write:{ignoreOrigin:!0}}})],N.prototype,"binType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:{ignoreOrigin:!0}}})],N.prototype,"fixedBinLevel",void 0),(0,n.Cg)([(0,u.MZ)(F())],N.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],N.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],N.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(_())],N.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],N.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],N.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({cast:e=>"auto"===e?e:(0,d.GB)((0,a.cr)(e))})],N.prototype,"size",void 0),(0,n.Cg)([(0,u.MZ)(x())],N.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],N.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(S())],N.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)(I())],N.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],N.prototype,"readRenderer",null),N=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionBinning")],N);var $=i(96576),K=i(33910),k=i(43937);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let P=class extends((0,s.T)(l.Pw)){constructor(e){super(e),this.type="cluster",this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}get clusterRadius(){return this._get("clusterRadius")??(0,a.cr)("80px")}set clusterRadius(e){this._set("clusterRadius",e)}get clusterMinSize(){return this._get("clusterMinSize")??(0,a.cr)("12px")}set clusterMinSize(e){this._set("clusterMinSize",e)}get clusterMaxSize(){return this._get("clusterMaxSize")??(0,a.cr)("50px")}set clusterMaxSize(e){this._set("clusterMaxSize",e)}readRenderer(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r?G(r)?null:(0,T.L)(r,t,i)??void 0:(0,p.PD)(t,i)}readSymbol(e,t,i){let r=t.drawingInfo?.renderer;return r?.authoringInfo?.isAutoGenerated?null:r&&G(r)?(0,T.L)(r,t,i)?.symbol:null}writeSymbol(e,t,i,r){let n=this.renderer?.authoringInfo?.isAutoGenerated;(!this.renderer||n)&&(t.drawingInfo={renderer:new $.A({symbol:e}).write({},r)})}readFields(e,t,i){return e.filter(e=>!e.isAutoGenerated).map(e=>g.A.fromJSON(e))}clone(){let e=super.clone();return this._isOverridden("fieldConfigurations")&&(e.fieldConfigurations=(0,o.o8)(this.fieldConfigurations)),e}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}};(0,n.Cg)([(0,u.MZ)({type:["cluster"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],P.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterRadius",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMinSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,json:{write:{ignoreOrigin:!0}}})],P.prototype,"clusterMaxSize",null),(0,n.Cg)([(0,u.MZ)(_())],P.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(A())],P.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)(E())],P.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)(I())],P.prototype,"renderer",void 0),(0,n.Cg)([(0,L.w)("renderer",["drawingInfo.renderer"])],P.prototype,"readRenderer",null),(0,n.Cg)([(0,u.MZ)({types:K.q8,json:{write:{ignoreOrigin:!0}}})],P.prototype,"symbol",void 0),(0,n.Cg)([(0,L.w)("symbol",["drawingInfo.renderer"])],P.prototype,"readSymbol",null),(0,n.Cg)([(0,k.K)("symbol")],P.prototype,"writeSymbol",null),(0,n.Cg)([(0,u.MZ)(F())],P.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(j())],P.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,u.MZ)(Z())],P.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)(x())],P.prototype,"fieldConfigurations",void 0),(0,n.Cg)([(0,u.MZ)(R())],P.prototype,"fields",void 0),(0,n.Cg)([(0,L.w)("fields")],P.prototype,"readFields",null),(0,n.Cg)([(0,u.MZ)(S())],P.prototype,"fieldsIndex",void 0),P=(0,n.Cg)([(0,u.$K)("esri.layers.support.FeatureReductionCluster")],P);var q=i(67202);const U={key:"type",base:null,typeMap:{selection:q.A}},B={key:"type",base:null,typeMap:{cluster:P,binning:N}},D={types:{key:"type",base:null,typeMap:{selection:q.A,cluster:P,binning:N}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:B},"portal-item":{types:B},"web-scene":{types:U,name:"layerDefinition.featureReduction",write:{allowNull:!0,layerContainerTypes:r.K}}}}}},16194(e,t,i){i.d(t,{QX:()=>a,sS:()=>d,xY:()=>u});var r=i(4718),n=i(30279),l=i(39663),s=i(30524),o=i(41227);function a(e){let{popupTemplate:t,fieldsIndex:i}=e,r=t?.fieldInfos;if(!r?.length||!i)return;let s=[];for(let e of r){let{fieldName:t,label:r}=e,o=i.get(t);if(!o)continue;let a=r&&r!==o.alias?r:null,u=(0,l.iu)(e,o);(a||u)&&s.push(new n.A({name:o.name,alias:a,fieldFormat:u}))}return s.length?s:null}function u(e){let{fields:t}=e;if(!t?.length)return;let i=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&i.push(new n.A({name:e.name,fieldFormat:t}))}return i.length?i:null}function d(e,t){let{popupTemplate:i,fieldsIndex:n}=e;if(!i||!n)return;let s=function(e,t,i){t??=[],i=(0,r.o8)(i)??[];let n=!1,s=new Map;for(let i of t){let t=e.fieldsIndex.get(i.name);t&&s.set(t.name,i)}for(let t of i){let i=e.fieldsIndex.get(t.fieldName);if(!i)continue;let r=s.get(i.name);t.label=r?.alias||i.alias,t.format=(0,l.qH)(i)&&r?.fieldFormat?(0,l.PK)(r.fieldFormat,i):null,n=!0,s.delete(i.name)}for(let t of s.values()){let r=p(e,t);r&&(i.push(r),n=!0)}return n?i:null}(e,t,i.fieldInfos);if(!s)return;let o=i.clone();return o.fieldInfos=s,o}function p(e,t){let{name:i,alias:r,fieldFormat:n}=t,a=e.fieldsIndex.get(i);if(!a||!r&&!n)return;let u=r||a.alias,d=(0,l.qH)(a)&&n?(0,l.PK)(n,a):null;return new o.A({fieldName:a.name,label:u,format:d,visible:!1,isEditable:(0,s.R$)(a,e)})}},65494(e,t,i){i.d(t,{L:()=>a,r:()=>s});var r=i(90360),n=i(41214),l=i(59923);function s(e,t){return a(e,null,t)}const o=(0,r.C)({types:n.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,l.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,t,i):null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6892],{68197(t,e,r){r.d(e,{A:()=>u});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function h(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class u{static blendColors(t,e,r,i=new u){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?u.fromArray(r,e):null}static fromHex(t,e=new u){let r=(0,i.oW)(t);return r?u.fromArray(r,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?u.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new u([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof u?t:new u(t),i=h(this),n=h(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<e}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>g,G1:()=>d,Q6:()=>w,TS:()=>s,V6:()=>n,Vm:()=>p,ay:()=>l,c1:()=>_,c4:()=>a,j5:()=>h,lT:()=>c,oW:()=>u,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!i[t]||!!i[t.toLowerCase()]}function s(t){return i[t]??i[t.toLowerCase()]}function a(t){return[...s(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let n=(t%360+360)%360/360,s=r<=.5?r*(e+1):r+e-r*e,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function h(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,n=e?1:17,s=e?9===t.length:5===t.length,a=Number("0x"+t.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function u(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=_(t[0]),t[1]=_(t[1]),t[2]=_(t[2]),t[3]=4===t.length?d(t[3]):1,t}function g(t){let e=n(t)?s(t):null;return e??=c(t),e??=u(t),e}function p(t){let e=g(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function d(t){return y(t,0,1)}function _(t){return Math.round(y(t,0,255))}function y(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const m=1/2.2;function w(t){return t**2.2}function b(t){return t**m}r.d(e,["iw",0,m])},32488(t,e,r){r.d(e,{A:()=>A});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],a=["ﻶ","ﻸ","ﻺ","ﻼ"],o="ا.ب.ت.ث.ج.ح.خ.د.ذ.ر.ز.س.ش.ص.ض.ط.ظ.ع.غ.ف.ق.ك.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ی.ئ.ؤ".split("."),l="ﺍ.ﺏ.ﺕ.ﺙ.ﺝ.ﺡ.ﺥ.ﺩ.ﺫ.ﺭ.ﺯ.ﺱ.ﺵ.ﺹ.ﺽ.ﻁ.ﻅ.ﻉ.ﻍ.ﻑ.ﻕ.ﻙ.ﻝ.ﻡ.ﻥ.ﻩ.ﻭ.ﻱ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯼ.ﺉ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺉ.ﺅ".split("."),h="ﺎ.ﺐ.ﺖ.ﺚ.ﺞ.ﺢ.ﺦ.ﺪ.ﺬ.ﺮ.ﺰ.ﺲ.ﺶ.ﺺ.ﺾ.ﻂ.ﻆ.ﻊ.ﻎ.ﻒ.ﻖ.ﻚ.ﻞ.ﻢ.ﻦ.ﻪ.ﻮ.ﻲ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯽ.ﺊ.ﺆ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺊ.ﺆ".split("."),u="ﺎ.ﺒ.ﺘ.ﺜ.ﺠ.ﺤ.ﺨ.ﺪ.ﺬ.ﺮ.ﺰ.ﺴ.ﺸ.ﺼ.ﻀ.ﻄ.ﻈ.ﻌ.ﻐ.ﻔ.ﻘ.ﻜ.ﻠ.ﻤ.ﻨ.ﻬ.ﻮ.ﻴ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯿ.ﺌ.ﺆ.ﹱ.ﹲ.ﹴ.ﹷ.ﹹ.ﹻ.ﹽ.ﹿ.ﺀ.ﺌ.ﺆ".split("."),c="ﺍ.ﺑ.ﺗ.ﺛ.ﺟ.ﺣ.ﺧ.ﺩ.ﺫ.ﺭ.ﺯ.ﺳ.ﺷ.ﺻ.ﺿ.ﻃ.ﻇ.ﻋ.ﻏ.ﻓ.ﻗ.ﻛ.ﻟ.ﻣ.ﻧ.ﻫ.ﻭ.ﻳ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯾ.ﺋ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺋ.ﺅ".split("."),f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],g="ً.ً.ٌ.؟.ٍ.؟.َ.َ.ُ.ُ.ِ.ِ.ّ.ّ.ْ.ْ.ء.آ.آ.أ.أ.ؤ.ؤ.إ.إ.ئ.ئ.ئ.ئ.ا.ا.ب.ب.ب.ب.ة.ة.ت.ت.ت.ت.ث.ث.ث.ث.ج.ج.ج.ج.ح.ح.ح.ح.خ.خ.خ.خ.د.د.ذ.ذ.ر.ر.ز.ز.س.س.س.س.ش.ش.ش.ش.ص.ص.ص.ص.ض.ض.ض.ض.ط.ط.ط.ط.ظ.ظ.ظ.ظ.ع.ع.ع.ع.غ.غ.غ.غ.ف.ف.ف.ف.ق.ق.ق.ق.ك.ك.ك.ك.ل.ل.ل.ل.م.م.م.م.ن.ن.ن.ن.ه.ه.ه.ه.و.و.ى.ى.ي.ي.ي.ي.ﻵ.ﻶ.ﻷ.ﻸ.ﻹ.ﻺ.ﻻ.ﻼ.؟.؟.؟".split("."),p=["ء","ف"],d=["غ","ي"],_=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],y=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],b=[[18,18,18,18,18,18,18,18,18,6,5,6,8,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,5,5,5,6,8,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,18,18,18,18,18,18,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,9,4,11,11,11,11,4,4,4,4,0,4,4,18,4,4,11,11,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,12,12,1,12,12,1,12,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,11,11,7,9,7,4,4,12,12,12,12,12,12,12,12,12,12,12,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,3,3,3,3,3,3,3,3,3,3,11,3,3,7,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,3,4,12,12,12,12,12,12,7,7,12,12,4,12,12,12,12,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,18,18,18,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,18,18,18,18,18,4,4,4,4,4,18,18,18,18,18,18,2,0,4,4,2,2,2,2,2,2,10,10,4,4,4,0,2,2,2,2,2,2,2,2,2,2,10,10,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,12,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,11,4,4,10,10,4,4,4,4,4,11,11,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,18],[4,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,11,11,4,4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class A{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){j=[],Y=[];for(let i=0;i<r;i++)t[i]=i,e[i]=i,j[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let i=t,n=Q,s=q(e.charAt(1)),a=q(r.charAt(1)),o=(e.startsWith("I")?"L":e.charAt(0))+s,l=(r.startsWith("I")?"L":r.charAt(0))+a,h=e.charAt(2)+r.charAt(2);n.defInFormat=o,n.defOutFormat=l,n.defSwap=h;let u=S(t,o,l,h,n),c=!1;return"R"===r.charAt(1)?c=!0:("C"===r.charAt(1)||"D"===r.charAt(1))&&(c="rtl"===this.checkContextual(u)),this.sourceToTarget=j,this.targetToSource=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),W=this.targetToSource,i=e.charAt(3)===r.charAt(3)?u:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);let r=(e=String(e)).split(""),i=0,n=1,s=r.length;t||(i=r.length-1,n=-1,s=1);let a=T(r,i,n,s),o="";for(let e=0;e<r.length;e++)R(a,a.length,e)>-1?($(W,e,!t,-1),j.splice(e,1)):o+=r[e];return o}(c,u):k(u,c,!0),this.sourceToTarget=j,this.targetToSource=W,this.levels=Y,i}_inputFormatSetter(t){if(!J.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!J.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=x(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch{}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return tt.test(t)}}function S(t,e,r,i,n){let s=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;let i,n=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1),a=e.inFormat.slice(1,4),o=e.outFormat.slice(1,4);return a.startsWith("C")&&(i=x(t),a="ltr"===i||"rtl"===i?i.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+a),o.startsWith("C")&&(i=x(t),"rtl"===i?o="RTL":"ltr"===i?(i=function(t){let e=t.split("");return e.reverse(),x(e.join(""))}(t),o=i.toUpperCase()):o="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+o),e}(t,{inFormat:e,outFormat:r,swap:i},n);if(s.inFormat===s.outFormat)return t;e=s.inFormat,r=s.outFormat,i=s.swap;let a=e.slice(0,1),o=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(n.inFormat=e,n.outFormat=r,n.swap=i,"L"===a&&"VLTR"===r){if("LTR"===o)return n.dir=K,v(t,n);if("RTL"===o)return n.dir=X,v(t,n)}if("V"===a&&"V"===l)return n.dir="RTL"===o?X:K,N(t,n);if("L"===a&&"VRTL"===r)return"LTR"===o?(n.dir=K,t=v(t,n)):(n.dir=X,t=v(t,n)),N(t);if("VLTR"===e&&"LLTR"===r)return n.dir=K,v(t,n);if("V"===a&&"L"===l&&o!==h)return t=N(t),"RTL"===o?S(t,"LLTR","VLTR",i,n):S(t,"LRTL","VRTL",i,n);if("VRTL"===e&&"LRTL"===r)return S(t,"LRTL","VRTL",i,n);if("L"===a&&"L"===l){let e=n.swap;return n.swap=e.slice(0,1)+"N","RTL"===o?(n.dir=X,t=v(t,n),n.swap="N"+e.slice(1,3),n.dir=K,t=v(t,n)):(n.dir=K,t=v(t,n),n.swap="N"+e.slice(1,3),t=S(t,"VLTR","LRTL",n.swap,n)),t}return t}function T(t,e,r,i,n){let o=0,u=[],f=0;for(let n=e;n*r<i;n+=r)if(F(t[n])||E(t[n])){if("ل"===t[n]&&B(t,n+r,r,i)){t[n]=G(t[n+r],0===o?s:a),n+=r,O(t,n,r,i),u[f]=n,f++,o=0;continue}let e=t[n];1===o?t[n]=U(t,n+r,r,i)?D(t[n]):z(t[n],h):!0===U(t,n+r,r,i)?t[n]=z(t[n],c):t[n]=z(t[n],l),E(e)||(o=1),!0===V(e)&&(o=0)}else o=0;return u}function x(t){let e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function k(t,e,r){if(0===t.length)return"";void 0===e&&(e=!0);let i="",s=(t=String(t)).split("");for(let a=0;a<t.length;a++){let o=!1;if(s[a]>="ﹰ"&&s[a]<"\ufeff"){let l=t.charCodeAt(a);s[a]>="ﻵ"&&s[a]<="ﻼ"?(e?(a>0&&r&&" "===s[a-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=n[(l-65269)/2]):(i+=n[(l-65269)/2],i+="ل",a+1<t.length&&r&&" "===s[a+1]?a++:o=!0),o&&($(W,a,!0,1),j.splice(a,0,j[a]))):i+=g[l-65136]}else i+=s[a]}return i}function v(t,e){let r=t.split(""),i=[];return L(r,i,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=P(t[r]))}(r,i,e),C(2,r,i,e),C(1,r,i,e),Y=i,r.join("")}function L(t,e,r){let i=t.length,n=r.dir?y:_,s=0,a=-1,o=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<i;e++)o[e]=M(t[e]);for(let h=0;h<i;h++){let i=s,u=I(t,o,l,h,r);l[h]=u,s=n[i][u];let c=240&s;s&=15;let f=n[s][Z];if(e[h]=f,c>0)if(16===c){for(let t=a;t<h;t++)e[t]=1;a=-1}else a=-1;if(n[s][H])-1===a&&(a=h);else if(a>-1){for(let t=a;t<h;t++)e[t]=f;a=-1}5===o[h]&&(e[h]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,i){for(let n=0;n<r;n++)if(6===t[n]){e[n]=i.dir;for(let r=n-1;r>=0&&8===t[r];r--)e[r]=i.dir}}(o,e,i,r)}function M(t){let e=t.charCodeAt(0),r=w[e>>8];return r<100?r:b[r-100][255&e]}function N(t,e){let r=t.split("");if(e){let t=[];L(r,t,e),Y=t}return r.reverse(),j.reverse(),r.join("")}function R(t,e,r){for(let i=0;i<e;i++)if(t[i]===r)return i;return-1}function F(t){for(let e=0;e<p.length;e++)if(t>=p[e]&&t<=d[e])return!0;return!1}function U(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return!!(e*r<i&&F(t[e]))}function B(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;let s=" ";if(!(e*r<i))return!1;s=t[e];for(let t=0;t<n.length;t++)if(n[t]===s)return!0;return!1}function C(t,e,r,i){if(i.hiLevel<t)return;if(1===t&&i.dir===X&&!i.hasUbatB)return e.reverse(),void j.reverse();let n,s,a,o,l,h=e.length,u=0;for(;u<h;){if(r[u]>=t){for(n=u+1;n<h&&r[n]>=t;)n++;for(s=u,a=n-1;s<a;s++,a--)o=e[s],e[s]=e[a],e[a]=o,l=j[s],j[s]=j[a],j[a]=l;u=n}u++}}function I(t,e,r,i,n){let s=e[i];return{UBAT_L:()=>(n.lastArabic=!1,0),UBAT_R:()=>(n.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>n.lastArabic?3:2,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,s;return i<1||i+1>=e.length||2!==(t=r[i-1])&&3!==t||2!==(s=e[i+1])&&3!==s?4:(n.lastArabic&&(s=3),s===t?s:4)},UBAT_ES:()=>2===(i>0?r[i-1]:5)&&i+1<e.length&&2===e[i+1]?2:4,UBAT_ET:()=>{if(i>0&&2===r[i-1])return 2;if(n.lastArabic)return 4;let t=i+1,s=e.length;for(;t<s&&11===e[t];)t++;return t<s&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===n.inFormat){let r=e.length,n=i+1;for(;n<r&&12===e[n];)n++;if(n<r){let r=t[i].charCodeAt(0),s=r>=1425&&r<=2303||64286===r,a=e[n];if(s&&(1===a||7===a))return 1}}return i<1||5===e[i-1]?4:r[i-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,4),UBAT_LRE:()=>(n.lastArabic=!1,4),UBAT_RLE:()=>(n.lastArabic=!1,4),UBAT_LRO:()=>(n.lastArabic=!1,4),UBAT_RLO:()=>(n.lastArabic=!1,4),UBAT_PDF:()=>(n.lastArabic=!1,4),UBAT_BN:()=>4}[m[s]]()}function P(t){let e,r=0,n=i.length-1;for(;r<=n;)if(e=Math.floor((r+n)/2),t<i[e][0])n=e-1;else{if(!(t>i[e][0]))return i[e][1];r=e+1}return t}function V(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function D(t){for(let e=0;e<o.length;e++)if(t===o[e])return u[e];return t}function z(t,e){for(let r=0;r<o.length;r++)if(t===o[r])return e[r];return t}function E(t){return t>="ً"&&t<="ٕ"}function q(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function O(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return e*r<i&&(t[e]=" ",!0)}function G(t,e){for(let r=0;r<n.length;r++)if(t===n[r])return e[r];return t}function $(t,e,r,i){for(let n=0;n<t.length;n++)(t[n]>e||!r&&t[n]===e)&&(t[n]+=i)}let j=[],W=[],Y=[];const Q={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Z=5,H=6,K=0,X=1,J=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,tt=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,r){r.d(e,{y:()=>n});const i=new(r(32488).A);function n(t,e=!0){if(!i.hasBidiChar(t))return[t,!1,{...i}];let r;r="rtl"===i.checkContextual(t)?"IDNNN":"ICNNN";let n=e?"VLYSN":"VLYNN";return[i.bidiTransform(t,r,n),!0,{...i}]}},93687(t,e,r){r.d(e,{A:()=>s});var i=r(44208);const n=()=>!!(0,i.A)("esri-tests-disable-memory-pools");class s{constructor(t,e,r,i=1,n=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let t=0;t<n;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let e;if(n())e=this._creator();else{if(0===this._pool.length){let t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}e=this._pool.pop()}return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){t&&!n()&&(this._releaseFunction?this._releaseFunction(t):function(t){return t?.release&&"function"==typeof t.release}(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){let t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}}},78888(t,e,r){r.d(e,{EK:()=>N,GB:()=>h,GX:()=>l,MB:()=>R,Nd:()=>I,PZ:()=>m,Qp:()=>f,Uv:()=>B,Vr:()=>u,Zu:()=>C,_e:()=>L,aq:()=>F,dp:()=>S,e6:()=>M,eC:()=>k,jz:()=>U,qf:()=>T,wB:()=>x});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function a(t){if(null==t)return t;let e=new Date(t);return isNaN(e.getTime())?(s().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function o(t){return null==t?t:!!t}function l(t){return null==t?t:t.toString()}function h(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function c(t){return null}function f(t,e){return r=>{let i=t(r);return null!=e.step&&(i=Math.round(i/e.step)*e.step),null!=e.min&&(i=Math.max(e.min,i)),null!=e.max&&(i=Math.min(e.max,i)),i}}function g(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function p(t,e){return null!=e&&t&&!(e instanceof t)}function d(t){return t&&"isCollection"in t}function _(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function y(t,e){return!!g(e)&&(s().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+w(t)+"'"),!0)}function m(t,e){return null==e?e:d(t)?function(t,e){if(!e?.constructor||!d(e.constructor))return y(t,e)?e:new t(e);let r=_(t.prototype.itemType),i=_(e.constructor.prototype.itemType);return r?i?r===i?e:r.prototype.isPrototypeOf(i.prototype)?new t(e):(y(t,e),e):new t(e):e}(t,e):p(t,e)?y(t,e)?e:new t(e):e}function w(t){return t?.prototype?.declaredClass||"unknown"}const b=new WeakMap;function A(t){switch(t){case Number:return t=>h(t);case U:return u;case Boolean:return o;case String:return l;case Date:return a;case B:return c;default:return(0,n.tE)(b,t,()=>m.bind(null,t))}}function S(t,e){let r=A(t);return 1===arguments.length?r:r(e)}function T(t){let e=A(t);return t=>e(t)}function x(t,e,r){return 1===arguments.length?x.bind(null,t):e&&(Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)])}function k(t,e){return 1===arguments.length?x(e=>S(t,e)):x(e=>S(t,e),e)}function v(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>v(t,e-1,r)):t(r)}function L(t,e,r){if(2===arguments.length)return r=>L(t,e,r);if(!r)return r;r=v(t,e,r);let i=e,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let t=0;t<i;t++)r=[r];return r}function M(t,e,r){return 2===arguments.length?L(e=>S(t,e),e):L(e=>S(t,e),e,r)}function N(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function R(t,e){if(2===arguments.length)return R(t).call(null,e);let r=new Set,i=t.filter(t=>"function"!=typeof t),n=t.filter(t=>"function"==typeof t);for(let e of t)("string"==typeof e||"number"==typeof e)&&r.add(e);let a=null,o=null;return(t,e)=>{if(null==t)return t;let l=typeof t,h="string"===l||"number"===l;return h&&(r.has(t)||n.some(t=>"string"===l&&t===String||"number"===l&&t===Number))||"object"===l&&n.some(e=>!p(e,t))?t:(h&&i.length?(a||=i.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${a}`)):"object"==typeof t&&n.length?(o||=n.map(t=>w(t)).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${o}`)):s().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function F(t,e){if(2===arguments.length)return F(t).call(null,e);let r={},i=[],n=[];for(let e in t.typeMap){let s=t.typeMap[e];r[e]=S(s),i.push(w(s)),n.push(e)}let a=()=>`'${i.join("', '")}'`,o=()=>`'${n.join("', '")}'`,l="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!p(t.base,e)||null==e)return e;let i=l(e)||t.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${a()}, or a plain object that can autocast (having .type = ${o()})`),null;if(!p(t.typeMap[i],e))return e;if("string"==typeof t.key&&!g(e)){let r={};for(let i in e)i!==t.key&&(r[i]=e[i]);return n(r)}return n(e)}}class U{}class B{}function C(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function I(t){switch(t.type){case"native":return S(t.value);case"array":return x(I(t.value));case"one-of":return function(t){let e=null;return(r,i)=>V(r,t)?r:(e??=P(t),s().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),i&&(i.valid=!1),null)}(t);default:return null}}function P(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case U:return"integer";case Date:return"date";case B:return"null";default:return w(t.value)}case"array":return`array of ${P(t.value)}`;case"one-of":{let e=t.values.map(t=>P(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function V(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case U:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case B:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!V(t,e.value));case"one-of":return e.values.some(e=>V(t,e))}}r.d(e,["gK",0,{native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})}])},57582(t,e,r){r.d(e,{af:()=>n,rK:()=>s}),r(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function s(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,r.d(e,["Vb",0,i])},34727(t,e,r){r.d(e,{$8:()=>x,Cc:()=>o,Hx:()=>_,Io:()=>S,KJ:()=>u,OS:()=>L,Sp:()=>g,XM:()=>c,YN:()=>f,ZH:()=>d,b6:()=>T,cU:()=>n,gg:()=>p,hs:()=>l,kU:()=>h,mP:()=>a,or:()=>v,pF:()=>N,qE:()=>s});const i=new Float32Array(1);function n(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,r){return Math.min(Math.max(t,e),r)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function o(t,e,r){return t+(e-t)*r}function l(t,e,r,i,n){return o(i,n,(t-e)/(r-e))}function h(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function c(t){return Math.acos(s(t,-1,1))}function f(t){return Math.asin(s(t,-1,1))}function g(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function p(t,e,r=1e-6){return!g(t,e,r)&&t>e}function d(t,e,r=1e-6){return!g(t,e,r)&&t<e}function _(t,e,r=1e-6){return g(t,e,r)||t>e}const y=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return y.setFloat64(0,t),y.getBigInt64(0)}const w=1000000n,b=A(1);function A(t){let e=m(t=Math.abs(t)),r=function(t){return y.setBigInt64(0,t),y.getFloat64(0)}(e<=w?w:e-w);return Math.abs(t-r)}function S(t,e,r=b){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&A(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;let i=m(t),n=m(e);return!(i<0!=n<0||(i<n?n-i:i-n)>w)}function T(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let i=Math.abs(t-e),n=Math.abs(t),s=Math.abs(e);if(0===t||0===e||n<1e-12&&s<1e-12){if(i>.01*r)return!1}else if(i/(n+s)>r)return!1;return!0}function x(t){return k(Math.max(-M,Math.min(t,M)))}function k(t){return i[0]=t,i[0]}function v(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],i=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(g(e,1)&&g(r,1)&&g(i,1))}function L(t,e){return(t%e+e)%e}const M=k(34028234663852886e22);function N(t,e,r){if(void 0===r||0==+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let i=e.toString().split("e");return i=(e=Math[t](+(i[0]+"e"+(i[1]?+i[1]-r:-r)))).toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+r:r))}r.d(e,["pq",0,M])},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>s,lM:()=>n});var i=r(34275);function n(t){if(!t)return 0;let e=h;for(let r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=u;for(let i=0;i<e;i++)r+=a(t[i]);return r}(t);let e=h;for(let r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?s(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return u+t.length*e}const h=32,u=16,c=145},51624(t,e,r){r.d(e,{A:()=>h});var i=r(44208),n=r(69397),s=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class h{constructor(t,e,r=0,i=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,i)}[Symbol.dispose](){this.release()}_init(t,e,r,i){this._data=t,this._dataView=e,this._pos=r,this._end=i}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,i=t?.byteLength??0){let n=h.pool.acquire();return n._init(t,e,r,i),n}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;let e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return t;throw Error("Varint overflow")}getPackedEnd(){let t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){let t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){let t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*a;return this._skip(8),r}getSFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*a;return this._skip(8),r}getDouble(){let t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){let t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){let t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){let t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){let t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){let t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,i){let n=this.getMessage(),s=t(n,e,r,i);return n.release(),s}processMessage(t){let e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){let t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){let t=this._data,e=this._pos,r=0,i=0;if(this._end-e>=10){if(i=t[e++],r|=127&i,128&i&&(i=t[e++],r|=(127&i)<<7,128&i&&(i=t[e++],r|=(127&i)<<14,128&i&&(i=t[e++],r|=(127&i)<<21,128&i&&(i=t[e++],r+=268435456*(127&i),128&i&&(i=t[e++],r+=34359738368*(127&i),128&i&&(i=t[e++],r+=4398046511104*(127&i),128&i&&(i=t[e++],r+=562949953421312*(127&i),128&i&&(i=t[e++],r+=72057594037927940*(127&i),128&i&&(i=t[e++],r+=0x8000000000000000*(127&i),128&i))))))))))throw Error("Varint too long!")}else{let n=1;for(;e!==this._end&&(i=t[e],128&i);)++e,r+=(127&i)*n,n*=128;if(e===this._end)throw Error("Varint overrun!");++e,r+=i*n}return this._pos=e,r}_decodeSVarint(){let t,e=this._data,r=0,i=0,n=1&e[this._pos];if(i=e[this._pos++],r|=127&i,!(128&i&&(i=e[this._pos++],r|=(127&i)<<7,128&i)&&(i=e[this._pos++],r|=(127&i)<<14,128&i)&&(i=e[this._pos++],r|=(127&i)<<21,128&i)&&(i=e[this._pos++],r+=268435456*(127&i),128&i)&&(i=e[this._pos++],r+=34359738368*(127&i),128&i)&&(i=e[this._pos++],r+=4398046511104*(127&i),128&i)))return n?-(r+1)/2:r/2;if(t=BigInt(r),i=e[this._pos++],t+=562949953421312n*BigInt(127&i),!(128&i&&(i=e[this._pos++],t+=72057594037927936n*BigInt(127&i),128&i)&&(i=e[this._pos++],t+=9223372036854775808n*BigInt(127&i),128&i)))return Number(n?-(t+1n)/2n:t/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){let i=t.subarray(e,r);return o.decode(i)}let i="",n="";for(let s=e;s<r;++s){let e=t[s];128&e?n+="%"+e.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(e),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},75585(t,e,r){function i(t){let e="normal",r="normal";if(t){let i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?r="bold":i.includes("light")&&(r="lighter")}return{style:e,weight:r}}r.d(e,{_:()=>i})},69754(t,e,r){r.d(e,{Z:()=>h,q:()=>l});var i=r(68197),n=r(75585);const s=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,a=/&(amp|lt|gt|quot|apos);/g,o=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return o.test(t)}function h(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),r=[],i=[],n=u(e),s="",a=!1,o=t.textString,l=()=>{if(!s)return;let t=c(s);if(!t)return void(s="");let e=i[i.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:i.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),s=""},h=0;for(;h<o.length;){let t=o[h];if("<"!==t){s+=t,h++;continue}let e=o.indexOf(">",h+1);if(-1===e)return null;let i=f(o.slice(h+1,e));if(!i)return null;if(a=!0,l(),i.isEnd){let t=r.pop();if(!t||t.name!==i.name)return null;n=t.previous}else{let t=u(n);n=g(n,i),r.push({name:i.name,previous:t})}h=e+1}return r.length?null:(l(),a?i.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(a,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function f(t){let e=t.trim();if(!e)return null;let r=e.startsWith("/"),i=r?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(i);if(!n)return null;let a,o=n[1],l=i.slice(o.length),h={};for(s.lastIndex=0;a=s.exec(l);)h[a[1]]=a[3];return{isEnd:r,name:o,attributes:h}}function g(t,e){let r=u(t);switch(e.name.toUpperCase()){case"BOL":r.font.weight="bold";break;case"_BOL":r.font.weight="normal";break;case"ITA":r.font.style="italic";break;case"_ITA":r.font.style="normal";break;case"UND":r.font.decoration="underline";break;case"_UND":r.font.decoration="none";break;case"FNT":!function(t,e){let{name:r,style:i,size:s,scale:a,wght:o,ital:l}=e;if(r&&(t.font.family=r),i){let e=(0,n._)(i);t.font.style=e.style,t.font.weight=e.weight}if(o){let e=Number(o);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(s){let e=Number(s);!isNaN(e)&&e>0&&(t.fontSize=e)}if(a){let e=Number(a);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(r,e.attributes);break;case"CLR":r.color=function(t){if(t.hex){let e=i.A.fromHex(t.hex)?.toArray();if(e){let r="alpha"in t?_(t.alpha):e[3];return[e[0],e[1],e[2],r]}}if("red"in t||"green"in t||"blue"in t)return[p(t.red),p(t.green),p(t.blue),_(t.alpha)];let e=d(t.cyan),r=d(t.magenta),n=d(t.yellow),s=d(t.black),a=_(t.alpha),o=d(t.tint,100)/100,l=1-s;return[Math.round(255*(1-e)*l*o),Math.round(255*(1-r)*l*o),Math.round(255*(1-n)*l*o),a]}(e.attributes);break;case"CHR":!function(t,e){let r=Number(e.spacing);!isNaN(r)&&r>=0&&(t.characterSpacing=r/100)}(r,e.attributes)}return r}function p(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function d(t,e=0){let r=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(r)?e:r)/100)}function _(t){return Math.round(255*d(t,100))}},16892(t,e,r){r.r(e),r.d(e,{default:()=>L});var i=r(56507),n=r(6371),s=r(57582),a=r(44208),o=r(53966),l=r(17676),h=r(2741);let u=null;async function c(){return u||=async function(){let t=await r.e(7290).then(()=>r(87290));return await t.default({module_or_path:(0,h.s)("esri/libs/librust-text/pkg/text_bg.wasm")}),t}(),u}var f=r(69754);const g={width:5,height:2,left:0,top:0};class p{constructor(t){this._values=new Float64Array(t),this._distances=new Float64Array(t),this._parabolaIndices=new Int32Array(t),this._parabolaBoundaries=new Float64Array(t+1)}compute(t,e,r){let{_values:i,_distances:n}=this;for(let s=0;s<e;s++){for(let n=0;n<r;n++)i[n]=t[n*e+s];this._compute1D(i,n,r);for(let i=0;i<r;i++)t[i*e+s]=n[i]}for(let s=0;s<r;s++){let r=s*e;for(let n=0;n<e;n++)i[n]=t[r+n];this._compute1D(i,n,e);for(let i=0;i<e;i++)t[r+i]=Math.sqrt(n[i])}}_compute1D(t,e,r){let{_parabolaIndices:i,_parabolaBoundaries:n}=this;i[0]=0,n[0]=-1/0,n[1]=1/0;let s=0;for(let e=1;e<r;e++){let r;do{let n=i[s];r=(t[e]+e*e-(t[n]+n*n))/(2*e-2*n)}while(r<=n[s]&&--s>-1);s++,i[s]=e,n[s]=r,n[s+1]=1/0}for(let s=0,a=0;s<r;s++){for(;n[a+1]<s;)a++;let r=s-i[a];e[s]=r*r+t[i[a]]}}}class d{constructor(t){this.pxDensity=4,this.sdfSizePx=t.sdfSizePx,this.sdfBufferPx=t.sdfBufferPx,this.rasterSizePx=this.pxDensity*this.sdfSizePx,this.rasterBufferPx=this.pxDensity*this.sdfBufferPx,this.radius=t.radius,this.cutoff=t.cutoff;let e=this.pxDensity*t.sdfSizePx*3;this.canvasSize=e;let r=new OffscreenCanvas(e,e);this.context=r.getContext("2d",{willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.gridOuter=new Float64Array(e*e),this.gridInner=new Float64Array(e*e),this.distanceTransform=new p(e)}draw(t,e){let{context:r,gridInner:i,gridOuter:n,rasterSizePx:s,rasterBufferPx:a,canvasSize:o,radius:l,cutoff:h}=this,u=s/t.units_per_em();this.context.fillStyle="black",this.context.strokeStyle="black",this.context.resetTransform(),this.context.clearRect(0,0,o,o),this.context.translate(s,s),this.context.scale(u,u);let c=t.paintCurves(e,r);if(!c)return null;let f=c.xMin*u,g=c.xMax*u,p=c.yMin*u,d=c.yMax*u;c.free();let _=Math.ceil(g-f),y=Math.ceil(d-p),m=Math.floor(s+f-a),w=Math.floor(s+p-a),b=_+2*a,A=y+2*a,S=new Float32Array(Math.max(b*A,0)),T=r.getImageData(m,w,b,A);n.fill(Number.MAX_VALUE,0,S.length),i.fill(0,0,S.length);for(let t=0;t<A;t++)for(let e=0;e<b;e++){let r=A-1-t,s=T.data[4*(r*b+e)+3]/255;if(0===s)continue;let a=t*b+e;if(1===s)n[a]=0,i[a]=Number.MAX_VALUE;else{let t=.5-s;n[a]=t>0?t*t:0,i[a]=t<0?t*t:0}}this.distanceTransform.compute(n,b,A),this.distanceTransform.compute(i,b,A);for(let t=0;t<S.length;t++)S[t]=n[t]-i[t];let x=Math.ceil(b/this.pxDensity),k=Math.ceil(A/this.pxDensity),v=this.pxDensity*this.pxDensity,L=new Uint8ClampedArray(Math.max(x*k,0));for(let t=0;t<k;t++)for(let e=0;e<x;e++){let r=0;for(let i=0;i<this.pxDensity;i++)for(let n=0;n<this.pxDensity;n++)e+n>b||t+i>A||(r+=S[(this.pxDensity*t+i)*b+(this.pxDensity*e+n)]);let i=r/this.pxDensity/v/l+h;L[t*x+e]=Math.round(255-255*i)}let M=u*t.face_height(),N=Math.round(d-M+2*a),R=Math.round(f-a);return{buffer:L,rect:{width:Math.ceil(_/this.pxDensity),height:Math.ceil(y/this.pxDensity),top:Math.round(N/this.pxDensity),left:Math.round(R/this.pxDensity)}}}}var _=r(92602),y=r(51624);class m{constructor(t){this._rects=[],this._shapings=[],this._bitmaps=[];let e=new Map,r=0;for(;t.next();)switch(t.tag()){case 1:{let i=t.getMessage();for(;i.next();)switch(i.tag()){case 3:{let t,n,s,a,o,l,h,u=i.getMessage();for(;u.next();)switch(u.tag()){case 1:t=u.getUInt32();break;case 2:n=u.getBytes();break;case 3:s=u.getUInt32();break;case 4:a=u.getUInt32();break;case 5:o=u.getSInt32();break;case 6:l=u.getSInt32();break;case 7:h=u.getUInt32();break;default:u.skip()}if(u.release(),t){let i={width:s,height:a,left:o,top:l};this._rects[t]=i;let u={xOffset:0,yOffset:0,xAdvance:h,yAdvance:0};if(this._shapings[t]=u,n){let i=n.length;e.set(t,n),this._bitmaps[t]={start:r,length:i},r+=i}}break}default:i.skip()}i.release();break}default:t.skip()}this._buffer=new Uint8Array(r);for(let[t,r]of e)this._buffer.set(r,this._bitmaps[t].start)}getRect(t){return this._rects.at(t)}getShaping(t){return this._shapings.at(t)}getBitmap(t){let e=this._bitmaps.at(t);if(void 0!==e&&0!==e.length)return this._buffer.subarray(e.start,e.start+e.length)}}class w{constructor(){this._ranges=[]}getRange(t){return this._ranges.at(t)}addRange(t,e){this._ranges[t]=e}}class b{constructor(t){this._glyphInfo=new Map,this._baseURL=t,this._woff2URL=`${_.A.fontsUrl}/woff2/{fontstack}.woff2`}async fetchRange(t,e,r){let n=this._getFontStack(t);if(n.getRange(e))return;let s=256*e,a=s+255,o=this._baseURL.replace("{fontstack}",t).replace("{range}",s+"-"+a);return(0,i.A)(o,{responseType:"array-buffer",signal:r?.signal}).then(t=>{n.addRange(e,new m(new y.A(new Uint8Array(t.data),new DataView(t.data))))})}async preloadASCIIRange(t){let e=this._getFontStack(t),r=this._baseURL.replace("{fontstack}",t).replace("{range}","0-255"),n=await(0,i.A)(r,{responseType:"array-buffer"}),s=new m(new y.A(new Uint8Array(n.data),new DataView(n.data)));for(let t=0;t<=255;t++)e.getRange(t)||e.addRange(t,s)}getRange(t,e){return this._glyphInfo.get(t)?.getRange(Math.floor(e/256))}woffURL(t){return this._woff2URL.replace("{fontstack}",t)}_getFontStack(t){return this._glyphInfo.get(t)||this._glyphInfo.set(t,new w),this._glyphInfo.get(t)}}function A(t,e,r,i){return 1|t<<1|!!r<<2|("Nearest"===i)<<3|e<<4}var S=r(18989);class T{constructor(t,e){this._width=0,this._height=0,this._free=[],this._width=t,this._height=e,this._free.push(new S.A(0,0,t,e))}get width(){return this._width}get height(){return this._height}allocate(t,e){if(t>this._width||e>this._height)return new S.A;let r=null,i=-1;for(let n=0;n<this._free.length;++n){let s=this._free[n];t<=s.width&&e<=s.height&&(null===r||s.y<=r.y&&s.x<=r.x)&&(r=s,i=n)}return null===r?new S.A:(this._free.splice(i,1),r.width<r.height?(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,e)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,r.width,r.height-e))):(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,r.height)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,t,r.height-e))),new S.A(r.x,r.y,t,e))}release(t){for(let e=0;e<this._free.length;++e){let r=this._free[e];if(r.y===t.y&&r.height===t.height&&r.x+r.width===t.x)r.width+=t.width;else if(r.x===t.x&&r.width===t.width&&r.y+r.height===t.y)r.height+=t.height;else if(t.y===r.y&&t.height===r.height&&t.x+t.width===r.x)r.x=t.x,r.width+=t.width;else{if(t.x!==r.x||t.width!==r.width||t.y+t.height!==r.y)continue;r.y=t.y,r.height+=t.height}this._free.splice(e,1),this.release(t)}this._free.push(t)}}const x="arial-unicode-ms-regular",k=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,v=new Set(["Noto Sans Khmer","Noto Sans Lao","Noto Sans Myanmar","Noto Sans Thai"]);class L{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new d({sdfSizePx:24,sdfBufferPx:3,radius:8,cutoff:.25})}set remoteClient(t){this._client=t.createInvokeProxy();let e=(0,l.QZ)(this._client.getOptions());this._inited=this._init(e)}async rasterizeText(t,e,r){await this._inited;let i=e.symbol?(0,f.Z)(e):null;return i?{type:"rich-glyphs",runs:(await Promise.all(i.map(async e=>({fontSize:e.fontSize,characterSpacing:e.characterSpacing,decoration:e.font.decoration,color:e.color,glyphs:await this._rasterizeTextRun(t,e.font,e.text,r)})))).filter(t=>null!=t.glyphs)}:this._rasterizeTextRun(t,e.font,e.textString,r)}async _rasterizeTextRun(t,e,r,i){let n=(0,s.rK)(e),l=this._invalidFonts.has(n),h=!!(0,a.A)("esri-2d-force-complex-shaping"),u=!!(0,a.A)("esri-2d-complex-shaping")&&k.test(r),c=v.has(e.family),f=h||u||c,g=l?x:n,p=await this.getGlyphItems(r,f,t,g,!1,i);return p||=(((t,e="")=>{o.A.getLogger("esri.views.MapView").warnOnce(t,e)})(`Font ${n} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(n),await this.getGlyphItems(r,f,t,x,!1,i)),p}async getGlyphItems(t,e,r,i,s,o){await this._inited;let l,h,u,c=this._getSource(r);if((0,a.A)("esri-2d-stabilize-glyphs")&&await this.preloadASCIIGlyphCache(c,i).catch(()=>{}),e){let e=await this._getFace(c,i);if(!e)return null;let r=this._glyphCache.get(i);r||(r=new Map,this._glyphCache.set(i,r));let{shaping:n,isRTL:s}=this._shape(e,t);u=s,l=n.map(t=>this._getShapedGlyph(e,r,t)),h={baseline:e.baseline()/24,midline:e.midline()/24}}else{let e=this._pbfGlyphCache.get(i);e||(e=new Map,this._pbfGlyphCache.set(i,e));let[r,a,h]=(0,n.y)(t),f=function(t){let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return e}(r);try{await this._fetchRanges(c,i,f,o)}catch{return null}u=a,l=f.map(t=>this._getPBFGlyph(e,c,i,t,s)).filter(t=>!!t)}let f=l.filter(t=>t.needsRecord);return f.length>0&&await this._client.recordGlyphs(f),{type:"glyphs",glyphs:l,faceInfo:h,isRightToLeft:u,sdfSize:24,sdfRadius:8,sdfPadding:3}}async _init(t){let e=await t;if(!e)return;let{width:r,height:i,snapCoords:n}=e;this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._binPack=new T(r,i),this._snapCoords=n,this._currentPage=0,this._initDecorationGlyphs()}_getShapedGlyph(t,e,r){let i,n,s=e.get(r.glyphId);if(!s){i=this._glyphSDFCreator.draw(t,r.glyphId);let a=this._glyphSDFCreator.sdfBufferPx;s={mosaicItem:{rect:this._recordGlyph(i?.rect,a),page:this._currentPage,sdf:!0,textureBinding:A(1,this._currentPage,!0)},glyphRect:i?.rect??{width:0,height:0,top:0,left:0}},e.set(r.glyphId,s),n=!0}return{mosaicItem:s.mosaicItem,rect:s.glyphRect,shaping:{xAdvance:r.xAdvance,yAdvance:r.yAdvance,xOffset:r.xOffset,yOffset:r.yOffset},code:r.isNewline?10:r.isWhitespace?32:NaN,sdf:i,needsRecord:n}}_getPBFGlyph(t,e,r,i,n=!1){let s,a,o=t.get(i);if(!o){let l=e.getRange(r,i),h=l?.getRect(i),u=l?.getShaping(i),c=l?.getBitmap(i);if(n&&(!h||!u))return;if(!h||!u)return N(i);s=c&&{buffer:c,rect:h},o={mosaicItem:{rect:c?this._recordGlyph(h,3):new S.A(0,0,0,0),sdf:!0,page:this._currentPage,textureBinding:A(1,this._currentPage,!0)},rect:h,shaping:u,code:i},a=!0,t.set(i,o)}let{mosaicItem:l,rect:h,shaping:u}=o;return{mosaicItem:l,rect:h,shaping:u,code:i,sdf:s,needsRecord:a}}_shape(t,e){let r=this._glyphSDFCreator.sdfSizePx,[i,s,a]=(0,n.y)(e,!1),o=new Uint32Array(Array.from(i).map((t,e)=>a.levels[a.targetToSource[e]]));return{shaping:t.shape(i,o,r),isRTL:s}}async _getFace(t,e,r){if(this._faces.has(e))return this._faces.get(e);let n=t.woffURL(e);return await M(this._facePromises,e,async()=>{let t=await(0,i.A)(n,{responseType:"array-buffer",...r}),s=(await c()).Face.parseWoff2(new Uint8Array(t.data));this._faces.set(e,s)}),this._faces.get(e)}_getSource(t){return this._glyphSources.has(t)||this._glyphSources.set(t,new b(t)),this._glyphSources.get(t)}async _fetchRanges(t,e,r,i){let n=function(t){let e=new Set;for(let r of t)e.add(Math.floor(r/256));return e}(r),s=[];n.forEach(r=>{s.push(this._fetchRange(t,e,r,i))}),await Promise.all(s)}async _fetchRange(t,e,r,i){if(r>256)return;let n=e+r;return M(this._pbfRangePromises,n,()=>t.fetchRange(e,r,i))}_allocNewPage(){this._currentPage++,this._binPack=new T(this._binPack.width,this._binPack.height),this._initDecorationGlyphs()}_recordGlyph(t,e){let r=this._binPack;if(!t||0===t.width)return new S.A;let i=t.width+2*e,n=t.height+2*e,s=i,a=n;this._snapCoords&&(s+=i%4?4-i%4:4,a+=n%4?4-n%4:4);let o=r.allocate(s,a);return o.isEmpty?(this._allocNewPage(),r.allocate(s,a)):o}_initDecorationGlyphs(){this._recordGlyph(g,3),this._recordGlyph(g,3)}preloadASCIIGlyphCache(t,e){let r=this._preloadCache[e];if(null!=r)return r;let i=t.preloadASCIIRange(e).then(async()=>{let r=this._pbfGlyphCache.get(e);r||(r=new Map,this._pbfGlyphCache.set(e,r));let i=[];for(let n=0;n<256;n++){let s=this._getPBFGlyph(r,t,e,n);s?.needsRecord&&i.push(s)}await this._client.recordGlyphs(i)},t=>{throw delete this._preloadCache[e],t});return this._preloadCache[e]=i,i}}function M(t,e,r){return t.has(e)||t.set(e,r().finally(()=>{t.delete(e)}).catch(t=>{(0,l.jH)(t)})),t.get(e)}const N=t=>({mosaicItem:{rect:new S.A(0,0,0,0),sdf:!0,page:0},rect:{left:0,width:0,height:0,top:0},shaping:{xAdvance:0,yAdvance:0,xOffset:0,yOffset:0},code:t})},18989(t,e,r){r.d(e,{A:()=>i});class i{constructor(t=0,e=0,r=0,i=0){this.x=t,this.y=e,this.width=r,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[124,7870,8768],{56512(e,t,i){function r(e){let t,i,r=[],s=!1;return function(...l){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(l,r)||(i=e.apply(this,l),t=this,r=l,s=!0),i}}i.d(t,{B:()=>r})},69397(e,t,i){i.d(t,{Qf:()=>a,Qh:()=>l,lM:()=>s});var r=i(34275);function s(e){if(!e)return 0;let t=u;for(let i in e)e.hasOwnProperty(i)&&(t+=n(e[i],!1));return t}function l(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return o(e,8);let i=h;for(let r=0;r<t;r++)i+=n(e[r]);return i}(e);let t=u;for(let i in e)e.hasOwnProperty(i)&&(t+=n(e[i]));return t}function n(e,t=!0){switch(typeof e){case"object":return t?l(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+p:Array.isArray(t)?o(t,16):0:0),0)}function o(e,t){return h+e.length*t}const u=32,h=16,p=145},5359(e,t,i){i.d(t,{Z:()=>s});const r=Symbol("isImageryTileGraphicOrigin");function s(e){return!!e&&r in e}i.d(t,["H",0,r])},90124(e,t,i){i.r(t),i.d(t,{default:()=>Q});var r,s=i(32198),l=i(37838),n=i(69540),a=i(49186),o=i(53966),u=i(97768),h=i(25728),p=i(17676),c=i(36708),d=i(91429),f=i(78888),m=i(41910),g=i(60950),y=i(89808),v=i(99959),w=i(5359);class b extends v.A{get[(r=w.H,g.ym)](){return this.layer}get[y.Q](){return this.layer}get[m.e7](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery-tile",this.layer=e}get id(){return this.layer.id}}var A=i(4146),_=i(18768),C=i(63074),S=i(69208),R=i(34287),M=i(8303),O=i(72545),x=i(56551),I=i(54310),T=i(25036),P=i(82935),N=i(82806),z=i(7548),F=i(23636),Z=i(1003),D=i(99235),j=i(10873),J=i(20437),L=i(74797),$=i(22796),V=i(69409);const q={instance:null,refCount:0,connectionPromise:null};async function E(){if(q.refCount++,q.instance)return q.instance;if(!q.connectionPromise){let e=new V.A;q.connectionPromise=e.initialize().then(()=>{q.instance=e})}return await q.connectionPromise,q.instance}function k(){q.refCount--,!(q.refCount>0)&&(q.instance?.destroy(),q.instance=null,q.connectionPromise=null,q.refCount=0)}var U=i(87045),W=i(24212),H=i(30291),G=i(88625),B=i(59923);let K=class extends((0,C.dM)((0,T.j)((0,R.q)((0,M.A)((0,x.H)((0,S.d)((0,N.b)((0,O.G)((0,P.e)((0,_.b)((0,I.J)((0,h.M)((0,n.OU)(A.A)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.charts=null,this.graphicOrigin=new b(this),this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.fields=null,this.source=void 0,this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:s,saveAs:l}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return s(this,t);case 1:return l(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}destroy(){super.destroy(),this._releaseWorkerHandle=(0,u.xt)(this._releaseWorkerHandle)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let e=[(0,L.rZ)("Pixel Value"),(0,L.dy)("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,i=t?.attributeTable;if(i){let t=(0,L.jC)(i);e.push(...t)}let r=t?.dataType,s=t?.multidimensionalInfo;if(("vector-magdir"===r||"vector-uv"===r)&&null!=s){let t=s.variables[0].unit?.trim(),i=(0,L.DV)(t),r=(0,L.y6)();e.push(i,r)}if(s){let t=(0,L.AL)(s);e.push(...t)}return e}get renderer(){return super.renderer}set renderer(e){super.renderer=e}createPopupTemplate(e){let{rasterFields:t}=this,i=e?.visibleFieldNames??new Set(t.map(({name:e})=>e).filter(e=>e!==L.F_.rawServicePixelValue)),r=(0,H.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:s}=this.raster;return r?.fieldInfos&&s&&(0,L.h4)(r.fieldInfos,s),r}async generateRasterInfo(e,t){let i=(0,f.PZ)($.A,e);if(await this.load(),!i||"none"===i.functionName?.toLowerCase())return this.serviceRasterInfo;try{let{rasterInfo:e}=await this._openFunctionRaster(i,t);return e}catch(e){throw e instanceof a.A?e:new a.A("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}supportsExportMapTiles(){let e=this._primaryRasters[0]??this.raster,t="RasterTileServer"===e?.datasetFormat,i=!!this.sourceJSON?.exportTilesAllowed,r=this.sourceJSON?.datasetFormat?.toLowerCase(),s=!/\/tiledimageservices[^.]*\.arcgis\.com/i.test(this.url)&&"Raster"===e?.tileType&&("cache/jpegplus"===r||"cache/jpegpng"===r);return t&&i&&("Map"===e?.tileType||s)}supportsWrite(){let e=this._primaryRasters[0]??this.raster;return!!(this.loaded?"RasterTileServer"===e.datasetFormat&&("Raster"===e.tileType||"Map"===e.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))}write(e,t){return this.supportsWrite()?super.write(e,t):((0,B.U4)(t,this),null)}async hasDataChanged(){try{let e=this._primaryRasters[0]??this.raster,{dataChanged:t,updates:i}=await e.refresh();return t&&(this.serviceRasterInfo!==e.rasterInfo&&this._set("serviceRasterInfo",e.rasterInfo),e.sourceJSON&&this.sourceJSON!==e.sourceJSON&&(this.sourceJSON=e.sourceJSON),i&&this.read(i,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0})),t}catch{return!1}}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=(0,z.qg)(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{let{url:t,rasterFunction:i,source:r}=this;if(!t&&!r)throw new a.A("imagery-tile-layer:open","missing url or source parameter");r?await this._openFromSource(r,e):i?await this._openFromUrlWithRasterFunction(t,i,e):await this._openFromUrl(t,e)}let i=this.raster.rasterInfo;if(!i)throw new a.A("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?i:this._primaryRasters[0].rasterInfo),this._set("spatialReference",i.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){let e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||=this.raster.datasetName,"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,c.wB)(()=>this.customParameters,e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)}))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=(0,z.pb)(e),this.url||=this._primaryRasters[0].url}async _openFromUrlWithRasterFunction(e,t,i){let r,s=[e];t&&(0,D.UD)(t.toJSON(),s),s.some(e=>X(e,this.ioConfig))&&(r=await E(),this._releaseWorkerHandle={remove:()=>k()});let l=await Promise.all(s.map(e=>Z.default.open({url:e,rasterInfo:1===s.length?this.serviceRasterInfo:void 0,sourceJSON:1===s.length?this.sourceJSON:void 0,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:r,signal:i}))),n=l.findIndex(e=>null==e);if(n>-1)throw new a.A("imagery-tile-layer:open",`cannot open raster: ${s[n]}`);return this._primaryRasters=l,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){let i;X(e,this.ioConfig)&&(i=await E(),this._releaseWorkerHandle={remove:()=>k()});let r=await Z.default.open({url:e,rasterInfo:this.serviceRasterInfo,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},rasterJobHandler:i,signal:t});if(null==r)throw new a.A("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[r],this.raster=r}async _openFromSource(e,t){let i="the tiled imagery data source is not supported",r="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!r)throw new a.A("imagery-tile-layer:open",i);"MEMORY"===r&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});let s=await Z.default.open({url:"",source:e,datasetFormat:r,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==s)throw new a.A("imagery-tile-layer:open",i);this._primaryRasters=[s],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=s}async _openFunctionRaster(e,t){let i={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach(e=>i[e.url]=e);let r=(0,D.vt)(e.functionDefinition?.toJSON()??e.toJSON(),i),s=new F.A({rasterFunction:r});return await s.open(t),s}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(e){e instanceof a.A&&o.A.getLogger(this).error("imagery-tile-layer:open",e.message),o.A.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}_validateElevationInfo(e){(0,W.XF)(o.A.getLogger(this),(0,W.$7)("ImageryTile layers","relative-to-scene",e)),(0,W.XF)(o.A.getLogger(this),(0,W.tW)("ImageryTile layers",e))}};(0,s.Cg)([(0,d.MZ)({clonable:!1})],K.prototype,"_primaryRasters",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],K.prototype,"_releaseWorkerHandle",void 0),(0,s.Cg)([(0,d.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],K.prototype,"charts",void 0),(0,s.Cg)([(0,d.MZ)({type:G.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],K.prototype,"elevationInfo",null),(0,s.Cg)([(0,d.MZ)({type:U.A})],K.prototype,"tileInfo",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,d.MZ)(j.fV)],K.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],K.prototype,"isReference",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide"]})],K.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({json:{read:!0,write:!0}})],K.prototype,"blendMode",void 0),(0,s.Cg)([(0,d.MZ)({type:$.A,json:{name:"renderingRule",write:!0}})],K.prototype,"rasterFunction",void 0),(0,s.Cg)([(0,d.MZ)()],K.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],K.prototype,"version",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],K.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)({type:["ArcGISTiledImageServiceLayer"]})],K.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,i){t[i]=!e}}}})],K.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:l.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],K.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,d.MZ)(j.PY)],K.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,type:[J.A]})],K.prototype,"fields",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,type:[J.A]})],K.prototype,"rasterFields",null),(0,s.Cg)([(0,d.MZ)({constructOnly:!0})],K.prototype,"source",void 0),K=(0,s.Cg)([(0,d.$K)("esri.layers.ImageryTileLayer")],K);const Q=K;function X(e,t){let{tileGeneration:i}=t??{};return"immediate"===i||/\.(png|gif|bmp)$/i.test(e)}},18768(e,t,i){var r=i(32198),s=i(53966),l=i(91429),n=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,l.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.ArcGISService")],i),i}])},56551(e,t,i){i.d(t,{H:()=>p});var r=i(32198),s=i(91429),l=i(69540),n=i(25482),a=i(78888),o=i(94359),u=i(93223);let h=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],h.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],h.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:o.uy,json:{write:!0,origins:{"web-scene":{types:o.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],h.prototype,"renderer",void 0),h=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],h);const p=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[h],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},91806(e,t,i){i.d(t,{A:()=>o});var r,s=i(32198),l=i(25482),n=i(91429),a=i(78888);let o=class extends l.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"cols",void 0),(0,s.Cg)([(0,n.MZ)({type:a.jz,json:{write:!0}})],o.prototype,"level",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"levelValue",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"origin",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],o.prototype,"resolution",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"rows",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],o.prototype,"scale",void 0),o=r=(0,s.Cg)([(0,n.$K)("esri.layers.support.LOD")],o)},87045(e,t,i){i.d(t,{A:()=>w});var r,s=i(32198),l=i(66552),n=i(25482),a=i(86211),o=i(91429),u=i(78888),h=i(86738),p=i(16930),c=i(21325),d=i(28735),f=i(91806),m=i(72802),g=i(36005),y=i(43937);const v=new l.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends n.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:l=p.A.WebMercator,numLODs:n=24}=e;if(!(0,c.fn)(l)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=n-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,l),size:[s,s],spatialReference:l})}let o=(0,c.Vp)(l),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):o?new h.A({x:o.origin[0],y:o.origin[1],spatialReference:l}):new h.A({x:0,y:0,spatialReference:l}),d=1/(39.37*(0,a.GA)(l)*96),m=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*d;m.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(l)?512/s*591657527.5917094:256/s*591657527.591555,i=Math.ceil(n/t);m.push(new f.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<i;r++){let i=e/2**t,s=i*d;m.push(new f.A({level:r,scale:i,resolution:s})),e=i}}return new r({dpi:96,lods:m,origin:u,size:[s,s],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],s=t[r+1];if(i<=e)return r;if(s===e)return r+1;if(i>e&&s<e)return r+Math.log(i/e)/Math.log(i/s)}return r}tileAt(e,t,i,r){let s,l,n=this.lodAt(e);if(!n)return null;if("number"==typeof t)s=t,l=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))s=t.x,l=t.y,r=i;else{let e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,l=e.y,r=i}let a=n.resolution*this.size[0],o=n.resolution*this.size[1];return r??=new m.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-l)/o+.001),r.col=Math.floor((s-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,s=i.resolution*this.size[0]/2**r,l=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+l,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,s=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+s,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],s=this.lods.length-t;for(let e=0;e<s;e++){let r=e+t,{scale:s,resolution:l}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:s,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,s.Cg)([(0,o.MZ)({type:h.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,s.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,s.Cg)([(0,o.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,s.Cg)([(0,o.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,s.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,s.Cg)([(0,y.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,s.Cg)([(0,o.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,s.Cg)([(0,o.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>s});var r=i(19419);class s{constructor(e,t,i,s=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>_});var r,s=i(32198),l=i(56507),n=i(69622),a=i(49186),o=i(36563),u=(i(44208),i(66344)),h=i(15142),p=i(17676),c=i(36708),d=i(76030),f=i(84952),m=i(91429),g=i(72802),y=i(4718),v=i(69397);class w{constructor(e){!function(e){if(!e?.location)throw new a.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new a.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new a.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new a.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new a.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,y.o8)(t));let r=this.location.width,s=this.location.height,l=!0,n=!0,o=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*s/32)),u=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(n=!1,o[u]|=1<<t):l=!1,31===t&&++u}n?(this._availability="unavailable",this.byteSize=40):l?(this._availability="available",this.byteSize=40):(this._availability=o,this.byteSize=40+(0,v.Qf)(o))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,s=i>>5,l=this._availability;return s<0||s>l.length?"unknown":l[s]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||l.A,{row:r,col:s,width:n,height:o}=e,u={query:{f:"json"}};return t=t?{...u,...t}:u,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:s,width:n,height:o},valid:!0,data:Array(n*o).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==s||e.location.width!==n||e.location.height!==o))throw new a.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:s,width:n,height:o}});return w.fromJSON(e)})}static fromJSON(e){return Object.freeze(new w(e))}}function b(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function A(e,t,i){return new a.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let _=class extends n.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=l.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new u.q(2097152),this.addHandles((0,c.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),c.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(A(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof w){let s=r.getAvailability(t,i);if("unavailable"===s)throw A(e,t,i);return s}if((0,p.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,s){r.level=e,r.row=t,r.col=i;let l=this.layer.tileInfo;l.updateTileInfo(r);let n=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,p.zf)(e))throw e;if(l.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,s,n),n}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,l){if(!this._prefetchingEnabled)return;let n=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(n))return;let a=new AbortController;l.then(()=>a.abort(),()=>a.abort());let u=!1,h=(0,o.hA)(()=>{u||(u=!0,a.abort())});if(this.addHandles(h,n),await(0,d.md)(10,a.signal).catch(()=>{}),u||(u=!0,this.removeHandles(n)),(0,p.G4)(a))return;let c=new g.U(e,t,i),f={...s,signal:a.signal},m=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&m.upsampleTile(c);++e){let e=this.fetchAvailability(c.level,c.row,c.col,f);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new a.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let s=this._tmpTilemapDefinition,l=this._tilemapFromCache(e,t,i,s);if(l)return Promise.resolve(l);let n=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,p.u7)(n,()=>t((0,p.NK)()));let i=b(s),l=this._pendingTilemapRequests[i];if(!l){l=w.fromDefinition(s,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=l,l.then(e,e)}l.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,f.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let s=b(r);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,m.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,s.Cg)([(0,m.MZ)({constructOnly:!0})],_.prototype,"minLOD",void 0),(0,s.Cg)([(0,m.MZ)({constructOnly:!0})],_.prototype,"maxLOD",void 0),(0,s.Cg)([(0,m.MZ)({constructOnly:!0})],_.prototype,"request",void 0),(0,s.Cg)([(0,m.MZ)({constructOnly:!0})],_.prototype,"size",void 0),_=r=(0,s.Cg)([(0,m.$K)("esri.layers.support.TilemapCache")],_)},82371(e,t,i){i.d(t,{E9:()=>f,Tw:()=>c,X6:()=>d});var r=i(56507),s=i(5443),l=i(86738),n=i(16930),a=i(87186),o=i(20223),u=i(2272),h=i(22671);async function p(e,t,i){let p=(0,u.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},f=c?JSON.stringify(c.rasterFunctionDefinition||c):null,m=(0,u.lF)({...p.query,renderingRule:f,f:"json"}),g=(0,u.jV)(m,i);e=p.path;let y=d||await(0,r.A)(e,g).then(e=>e.data),{currentVersion:v}=y,w=y.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,b=y.hasColormap?(0,r.A)(`${e}/colormap`,g):null,A=y.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,_=v>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,C=y.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,S=(c?v>=10.91:v>=10.81)?(0,r.A)(`${e}/statistics`,g):null,R=await Promise.allSettled([w,b,A,_,C,S]),M=s.A.fromJSON(y.extent),O=Math.ceil(M.width/y.pixelSizeX-.1),x=Math.ceil(M.height/y.pixelSizeY-.1),I=n.A.fromJSON(y.spatialReference||y.extent.spatialReference),T="fulfilled"===R[0].status?R[0].value?.data:null,P=T?.features?.length?h.A.fromJSON(T):null,N="fulfilled"===R[1].status?R[1].value?.data.colormap:null,z=N?.length?N:null,F="fulfilled"===R[2].status?R[2].value?.data.histograms:null,Z=F?.[0]?.counts?.length?F:null,D="fulfilled"===R[3].status?R[3].value?.data??{}:{},j="fulfilled"===R[4].status?R[4].value?.data.multidimensionalInfo:null,J=j?.variables?.length?j:null;var L;(L=J)&&L.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"===e.name&&!e.recurring&&!e.unit&&(e.unit="ISO8601")})});let $=function(e,t){let i=null;t&&t.length===e.bandCount&&(i=t.map(e=>{let t=e.covariances?.trim(),i=t?t.split(",").map(Number):void 0;return{avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum,covariances:i}}));let r=e.minValues?.length===e.bandCount?e.minValues.map((t,i)=>({min:t,max:e.maxValues[i],avg:e.meanValues[i],stddev:e.stdvValues[i]})):null;return null==r||null==i||i.some((e,t)=>e.min!==r[t]?.min||e.max!==r[t]?.max||e.avg!==r[t]?.avg||e.stddev!==r[t]?.stddev)?r:i}(y,"fulfilled"===R[5].status?R[5].value?.data.statistics:null),{defaultVariable:V,serviceDataType:q}=y;V&&V!==D.DefaultVariable&&(D.DefaultVariable=V),q?.includes("esriImageServiceDataTypeVector")&&!q.includes(D.DataType)&&(D.DataType=q.replace("esriImageServiceDataType",""));let E=y.noDataValue;y.noDataValues?.length&&y.noDataValues.some(e=>e!==E)&&(E=y.noDataValues);let k=y.transposeInfo?new o.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new l.A({x:y.extent.xmin,y:y.extent.ymax,spatialReference:I}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(O,x))/Math.LN2-8)),transposeInfo:y.transposeInfo}):void 0;return new a.A({width:O,height:x,bandCount:y.bandCount,extent:s.A.fromJSON(y.extent),spatialReference:I,pixelSize:new l.A({x:y.pixelSizeX,y:y.pixelSizeY,spatialReference:I}),pixelType:y.pixelType.toLowerCase(),statistics:$,attributeTable:P,colormap:z,histograms:Z,keyProperties:D,noDataValue:E,multidimensionalInfo:J,storageInfo:k})}function c(e,t,i){return p(e,{sourceJSON:t},i)}function d(e,t,i){return p(e,{rasterFunction:t},i)}function f(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>p,jV:()=>o,lF:()=>h});var r=i(92602),s=i(70333),l=i(4718),n=i(84952),a=i(926);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,n.An)(e):(0,l.o8)(e)}function h(e,t,i){let r={};for(let s in e){if("declaredClass"===s)continue;let l=e[s];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))r[s]=l.map(e=>h(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(i?.[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?l:JSON.stringify(l);else r[s]=l}return r}async function p(e,t,l){return function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t)||(!s.id&&r.A.request.useIdentity&&await Promise.all([i.e(6361),i.e(7644),i.e(3713)]).then(()=>i(50148)),(await s.id.getCredential(e,l))?.token)}},24212(e,t,i){i.d(t,{$7:()=>o,B:()=>a,M7:()=>p,XF:()=>h,tW:()=>u,w7:()=>n});var r=i(56512),s=i(86211),l=i(16271);function n(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function a(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function h(e,t){t&&e.warn(".elevationInfo=",t)}function p(e){return(e?.offset??0)*(0,l.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",l=(0,s.mq)(i);return l?(0,s.oU)(e,r,l):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);