@arcgis/core 6.0.0-next.41 → 6.0.0-next.43

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 (636) hide show
  1. package/Basemap.js +1 -1
  2. package/Camera.js +1 -1
  3. package/Graphic.js +1 -1
  4. package/Ground.js +1 -1
  5. package/WebDocument2D.js +1 -1
  6. package/WebScene.js +1 -1
  7. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +1 -0
  8. package/analysis/ElevationProfileAnalysis.d.ts +15 -0
  9. package/analysis/LineOfSightAnalysis.d.ts +6 -1
  10. package/analysis/ShadowCastAnalysis.d.ts +18 -22
  11. package/analysis/ShadowCastAnalysis.js +1 -1
  12. package/analysis/ViewshedAnalysis.d.ts +6 -1
  13. package/applications/Components/analysisUtils.d.ts +6 -0
  14. package/applications/Components/analysisUtils.js +1 -1
  15. package/arcade/ArcadeModuleResolver.js +1 -1
  16. package/arcade/arcadeCompiler.js +1 -1
  17. package/arcade/featureset/actions/Adapted.js +1 -1
  18. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  19. package/arcade/featureset/support/FeatureSet.js +1 -1
  20. package/arcade/featureset/support/shared.js +1 -1
  21. package/arcade/featureset/support/sqlUtils.js +1 -1
  22. package/arcade/functions/knowledgegraph.js +1 -1
  23. package/arcade/functions/maths.js +1 -1
  24. package/arcgisGlobal.d.ts +0 -2
  25. package/assets/esri/core/workers/RemoteClient.js +1 -1
  26. package/assets/esri/core/workers/chunks/{2f54e4feb554c1a7b9c4.js → 02debe67e6fef9d88bdd.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{bd046399e05e759e0bc2.js → 035204000954973b0ebc.js} +1 -1
  28. package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +1 -0
  29. package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +1 -0
  30. package/assets/esri/core/workers/chunks/077b755688346e0dc8d3.js +1 -0
  31. package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +1 -0
  32. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +1 -0
  33. package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +1 -0
  34. package/assets/esri/core/workers/chunks/{afe3e89737fb45189a99.js → 14ed0c34b910eba3434e.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{f67b37253d6d05d1e339.js → 14ef986665b4a1f6ccdc.js} +1 -1
  36. package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +1 -0
  37. package/assets/esri/core/workers/chunks/{a03f15f2cbc3fed291c2.js → 15f2b27b8edc0d53e399.js} +1 -1
  38. package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +1 -0
  39. package/assets/esri/core/workers/chunks/18dbee576b7b9dbe69fb.js +1 -0
  40. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +1 -0
  41. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +1 -0
  42. package/assets/esri/core/workers/chunks/{cf2e5f827cea7d7319ce.js → 1e5c5029b0653047a769.js} +1 -1
  43. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +1 -0
  44. package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +1 -0
  45. package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +1 -0
  46. package/assets/esri/core/workers/chunks/{14d81280807a3d3c1b7e.js → 244ffdb91237d1cbade3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +1 -0
  48. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +1 -0
  49. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +1 -0
  50. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +1 -0
  51. package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +1 -0
  52. package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +1 -0
  53. package/assets/esri/core/workers/chunks/{279089a6a3f08022c678.js → 361d620b3f91868b1490.js} +1 -1
  54. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +1 -0
  55. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +1 -0
  56. package/assets/esri/core/workers/chunks/394ae3199c78a94c6a2a.js +1 -0
  57. package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +1 -0
  58. package/assets/esri/core/workers/chunks/{fdd2b35388f9fe42b623.js → 3a90b6eafa92f1a68ac5.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{6a65fc1a2931230fe994.js → 3bb1e06861cd0563ed9f.js} +1 -1
  60. package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +1 -0
  61. package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +1 -0
  62. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +1 -0
  63. package/assets/esri/core/workers/chunks/{5882f349f3771868e67f.js → 4521f72ab0ea872e5d7c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/45b5a61c4e9fbd9ca0b3.js +1 -0
  65. package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +1 -0
  66. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +1 -0
  67. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +1 -0
  68. package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +1 -0
  69. package/assets/esri/core/workers/chunks/{46504fc81f357bc7465a.js → 4d62877f521cc9663535.js} +1 -1
  70. package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +1 -0
  71. package/assets/esri/core/workers/chunks/{e0cf6e1e21d0ee739009.js → 4e03aa5518d46a36661c.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{1a614bac5db42c6263f8.js → 4fe10650ba3cd30aa9a2.js} +1 -1
  73. package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +1 -0
  74. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +1 -0
  75. package/assets/esri/core/workers/chunks/564d7f2e58fbc16853c0.js +1 -0
  76. package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +1 -0
  77. package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +1 -0
  78. package/assets/esri/core/workers/chunks/{04d55ed51e8b2683c4b4.js → 5d908a823b324bafda1e.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{54de7dc0597fc80d7a52.js → 5dea74fe52583e77f3ce.js} +1 -1
  80. package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +1 -0
  81. package/assets/esri/core/workers/chunks/5fd4d3cb3c9350131a59.js +1 -0
  82. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +1 -0
  83. package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +1 -0
  84. package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +1 -0
  85. package/assets/esri/core/workers/chunks/{06102715e9a8f218e07c.js → 6f3732e7ba2d031ba789.js} +1 -1
  86. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +1 -0
  87. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +1 -0
  88. package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +1 -0
  89. package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +1 -0
  90. package/assets/esri/core/workers/chunks/{e2430bc3a1edeb5c3266.js → 78a69594c82d37aecbfb.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{1ec772eaa63eb6937231.js → 8140ed6e44c3d8536d3e.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{787c1a8bda7d745633f2.js → 81b9894e81cce3490984.js} +1 -1
  93. package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +1 -0
  94. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +1 -0
  95. package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +1 -0
  96. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +1 -0
  97. package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +1 -0
  98. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +1 -0
  99. package/assets/esri/core/workers/chunks/{4b2d392ad8e381bfd6b3.js → 89e9ebc8d5c1022cb265.js} +1 -1
  100. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +1 -0
  101. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +1 -0
  102. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +1 -0
  103. package/assets/esri/core/workers/chunks/{987424121cf30b0f3c50.js → 8d3e92a3367a3ddc02bd.js} +1 -1
  104. package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +1 -0
  105. package/assets/esri/core/workers/chunks/8f4fba4d2339c91c8b3f.js +1 -0
  106. package/assets/esri/core/workers/chunks/{45aaefbdffe5e15dfb24.js → 919a6aedf38e9631ee09.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{487c46d5245cfb35c4bb.js → 921917e53bac82693ec8.js} +1 -1
  108. package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +1 -0
  109. package/assets/esri/core/workers/chunks/{beccbfff549902733c4e.js → 9869c696e6321c8db0a9.js} +1 -1
  110. package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +1 -0
  111. package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +1 -0
  112. package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +1 -0
  113. package/assets/esri/core/workers/chunks/{cb2329d1ea72ce5cc057.js → 9c3f56f22e9baa80a387.js} +1 -1
  114. package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +1 -0
  115. package/assets/esri/core/workers/chunks/9fe1812aad6e566aea31.js +1 -0
  116. package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +1 -0
  117. package/assets/esri/core/workers/chunks/{dff845574c0037a1dca6.js → a332e31165b65a6fb92e.js} +1 -1
  118. package/assets/esri/core/workers/chunks/a553478664a688f32488.js +1 -0
  119. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +1 -0
  120. package/assets/esri/core/workers/chunks/a95186214f1206efd8ed.js +1 -0
  121. package/assets/esri/core/workers/chunks/{853563c66ecf58d53d36.js → ab60e8fbe0f92340616a.js} +1 -1
  122. package/assets/esri/core/workers/chunks/acea0946049136578354.js +1 -0
  123. package/assets/esri/core/workers/chunks/{342a97974a78007b25e0.js → ad94f54b4c88b3a047bc.js} +1 -1
  124. package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +1 -0
  125. package/assets/esri/core/workers/chunks/ae6dc159be974ca0e8da.js +1 -0
  126. package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +1 -0
  127. package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +1 -0
  128. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +1 -0
  129. package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +1 -0
  130. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +1 -0
  131. package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +1 -0
  132. package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +1 -0
  133. package/assets/esri/core/workers/chunks/bc21241bc9acb83d1b1c.js +1 -0
  134. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +1 -0
  135. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +1 -0
  136. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +1 -0
  137. package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +1 -0
  138. package/assets/esri/core/workers/chunks/{5504ec9bd9ee4d10af07.js → c7f49493bd548d5dc1e0.js} +1 -1
  139. package/assets/esri/core/workers/chunks/c86d3af148b28ded5875.js +1121 -0
  140. package/assets/esri/core/workers/chunks/{692f0093c444fcc752b5.js → cadd60fa4370284c7ae3.js} +1 -1
  141. package/assets/esri/core/workers/chunks/{947f3a1cad976bba9738.js → cb62326b6526cde429c1.js} +1 -1
  142. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +1 -0
  143. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  144. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +1 -0
  145. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +1 -0
  146. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +1 -0
  147. package/assets/esri/core/workers/chunks/{520f499d79fa71f262c7.js → dd7e4c94a88452425750.js} +1 -1
  148. package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +1 -0
  149. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +1 -0
  150. package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +1 -0
  151. package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +1 -0
  152. package/assets/esri/core/workers/chunks/{5473409fee59db80f87d.js → e5bdfef7c2cc5354be52.js} +1 -1
  153. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +1 -0
  154. package/assets/esri/core/workers/chunks/{6738b3d6bce34a1e8be2.js → eaf720dfdf6ceca31249.js} +1 -1
  155. package/assets/esri/core/workers/chunks/ef274db3fa260eadf371.js +1 -0
  156. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +1 -0
  157. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +1 -0
  158. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +1 -0
  159. package/assets/esri/core/workers/chunks/{8b5dcc4282772bf6b675.js → f11eaab5354cc6aa9569.js} +1 -1
  160. package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +1 -0
  161. package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +1 -0
  162. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +1 -0
  163. package/assets/esri/core/workers/chunks/{7452b5ae971a9ff2e6e9.js → fdffefd7de540272a8a6.js} +1 -1
  164. package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +1 -0
  165. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  166. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  167. package/assets/esri/themes/base/_core.scss +0 -2
  168. package/assets/esri/themes/dark/main.css +1 -1
  169. package/assets/esri/themes/light/main.css +1 -1
  170. package/assets/esri/themes/light/view.css +1 -1
  171. package/chunks/languageUtils.js +1 -1
  172. package/chunks/lyr3DMain.js +1 -1
  173. package/chunks/lyr3DWorker.js +1 -1
  174. package/config.js +1 -1
  175. package/core/Accessor.js +1 -1
  176. package/core/Collection.js +1 -1
  177. package/core/LRUCache.js +1 -1
  178. package/core/Logger.js +1 -1
  179. package/core/MapUtils.js +1 -1
  180. package/core/Version.js +1 -1
  181. package/core/asyncUtils.js +1 -1
  182. package/core/deprecate.js +1 -1
  183. package/core/fontUtils.js +1 -1
  184. package/core/has.js +1 -1
  185. package/core/sql/SqlInterval.js +1 -1
  186. package/core/sql/WhereClause.js +1 -1
  187. package/core/sql/writeUtils.js +1 -1
  188. package/core/sql.js +1 -1
  189. package/core/types.d.ts +0 -5
  190. package/core/urlUtils.js +1 -1
  191. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  192. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  193. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  194. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  195. package/geometry/Point.js +1 -1
  196. package/geometry/Polygon.js +1 -1
  197. package/geometry/SpatialReference.js +1 -1
  198. package/geometry/support/webMercatorUtils.js +1 -1
  199. package/interfaces.d.ts +0 -17
  200. package/kernel.js +1 -1
  201. package/layers/BuildingSceneLayer.js +1 -1
  202. package/layers/ElevationLayer.d.ts +1 -1
  203. package/layers/ElevationLayer.js +1 -1
  204. package/layers/FeatureLayer.js +1 -1
  205. package/layers/GeoJSONLayer.d.ts +5 -1
  206. package/layers/GeoRSSLayer.js +1 -1
  207. package/layers/GeospatialPDFLayer.js +1 -1
  208. package/layers/ImageryLayer.js +1 -1
  209. package/layers/ImageryTileLayer.js +1 -1
  210. package/layers/IntegratedMesh3DTilesLayer.d.ts +4 -3
  211. package/layers/IntegratedMeshLayer.d.ts +4 -3
  212. package/layers/IntegratedMeshLayer.js +1 -1
  213. package/layers/KMLLayer.js +1 -1
  214. package/layers/KnowledgeGraphLayer.js +1 -1
  215. package/layers/LineOfSightLayer.d.ts +6 -1
  216. package/layers/LinkChartLayer.js +1 -1
  217. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  218. package/layers/MapImageLayer.js +1 -1
  219. package/layers/PointCloudLayer.js +1 -1
  220. package/layers/SceneLayer.js +1 -1
  221. package/layers/StreamLayer.js +1 -1
  222. package/layers/SubtypeGroupLayer.js +1 -1
  223. package/layers/TileLayer.js +1 -1
  224. package/layers/VectorTileLayer.d.ts +53 -0
  225. package/layers/VectorTileLayer.js +1 -1
  226. package/layers/VideoLayer.js +1 -1
  227. package/layers/ViewshedLayer.d.ts +6 -1
  228. package/layers/VoxelLayer.js +1 -1
  229. package/layers/WCSLayer.js +1 -1
  230. package/layers/WMSLayer.js +1 -1
  231. package/layers/WMTSLayer.js +1 -1
  232. package/layers/WebTileLayer.js +1 -1
  233. package/layers/effects/jsonUtils.js +1 -1
  234. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  235. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  236. package/layers/graphics/data/QueryEngineResult.js +1 -1
  237. package/layers/graphics/data/projectionSupport.js +1 -1
  238. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  239. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  240. package/layers/graphics/sources/geojson/geojson.js +1 -1
  241. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  242. package/layers/graphics/sources/support/QueryTask.js +1 -1
  243. package/layers/graphics/sources/support/uploads.js +1 -1
  244. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  245. package/layers/mixins/refresh.js +1 -1
  246. package/layers/ogc/ogcFeatureUtils.js +1 -1
  247. package/layers/ogc/wfsUtils.js +1 -1
  248. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  249. package/layers/parquet.js +1 -1
  250. package/layers/raster/datasets/BaseRaster.js +1 -1
  251. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  252. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  253. package/layers/raster/datasets/RasterFactory.js +1 -1
  254. package/layers/raster/datasets/TIFFRaster.js +1 -1
  255. package/layers/raster/datasets/ZarrRaster.js +2 -0
  256. package/layers/raster/datasets/datasetUtils.js +1 -1
  257. package/layers/raster/datasets/wcsCoverageParser.js +1 -1
  258. package/layers/raster/datasets/zarrParser.js +2 -0
  259. package/layers/raster/datasets/zarrUtils.js +2 -0
  260. package/layers/raster/formats/Lerc.js +1 -1
  261. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  262. package/layers/support/ClientSideConnection.js +1 -1
  263. package/layers/support/ElevationSampler.js +1 -1
  264. package/layers/support/MultidimensionalSubset.js +1 -1
  265. package/layers/support/SceneModifications.d.ts +1 -3
  266. package/layers/support/SceneModifications.js +1 -1
  267. package/layers/support/SpriteSource.js +1 -1
  268. package/layers/support/TileInfo.js +1 -1
  269. package/layers/support/fieldUtils.js +1 -1
  270. package/layers/support/infoFor3D.js +1 -1
  271. package/layers/support/vectorTileLayerLoader.js +1 -1
  272. package/layers/support/wmsUtils.js +1 -1
  273. package/layers/support/wmtsUtils.js +1 -1
  274. package/layers/video/videoUtils.js +1 -1
  275. package/legend/ActiveLayerInfo.js +1 -1
  276. package/libs/lyr3d/Lyr3DModule.js +1 -1
  277. package/linkChart/utils.js +1 -1
  278. package/networks/support/Circuit.js +1 -1
  279. package/networks/support/CircuitSection.js +1 -1
  280. package/package.json +3 -3
  281. package/portal/Portal.js +1 -1
  282. package/portal/PortalItemResource.js +1 -1
  283. package/portal/PortalQueryParams.js +1 -1
  284. package/renderers/HeatmapRenderer.js +1 -1
  285. package/renderers/UniqueValueRenderer.js +1 -1
  286. package/rest/knowledgeGraphService.js +1 -1
  287. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  288. package/rest/query/operations/queryAttachments.js +1 -1
  289. package/support/LayersMixin.d.ts +2 -2
  290. package/symbols/PictureFillSymbol.js +1 -1
  291. package/symbols/PictureMarkerSymbol.js +1 -1
  292. package/symbols/SimpleFillSymbol.js +1 -1
  293. package/symbols/SimpleLineSymbol.js +1 -1
  294. package/symbols/SimpleMarkerSymbol.js +1 -1
  295. package/symbols/Symbol3D.js +1 -1
  296. package/symbols/TextSymbol.js +1 -1
  297. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  298. package/symbols/cim/types.d.ts +15 -11
  299. package/symbols/support/previewSymbol3D.js +1 -1
  300. package/tables/support/templateUtils.js +1 -1
  301. package/views/2d/engine/vectorTiles/SourceLayerData.js +1 -1
  302. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  303. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  304. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  305. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  306. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  307. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  308. package/views/2d/engine/vectorTiles/VectorTileSourceData.js +2 -0
  309. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  310. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  311. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  312. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  313. package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
  314. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
  315. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  316. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  317. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  318. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +4 -4
  319. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  320. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  321. package/views/2d/layers/features/Processor.js +1 -1
  322. package/views/2d/layers/features/support/TileStore.js +1 -1
  323. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  324. package/views/2d/tiling/TileKey.js +1 -1
  325. package/views/2d/tiling/TileStrategy.js +1 -1
  326. package/views/3d/analysis/Dimension/LengthDimensionComputation.js +1 -1
  327. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  328. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  329. package/views/3d/analysis/images/generateTextures.js +1 -1
  330. package/views/3d/environment/EnvironmentView.js +1 -1
  331. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  332. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  333. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  334. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  335. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  336. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  337. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  338. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  339. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  340. package/views/3d/layers/I3SMeshView3D.js +1 -1
  341. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  342. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  343. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  344. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  345. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  346. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  347. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  348. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  349. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  350. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  351. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  352. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  353. package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
  354. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  355. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  356. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  357. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  358. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  359. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  360. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  361. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  362. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  363. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  364. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +2 -0
  365. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  366. package/views/3d/layers/support/createTileBVHForLayer.js +2 -0
  367. package/views/3d/layers/support/tileBoundingVolumeUtils.js +2 -0
  368. package/views/3d/state/ConstraintsManager.js +1 -1
  369. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  370. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  371. package/views/3d/support/QualityProfile.js +1 -1
  372. package/views/3d/support/TextureCollection.js +1 -1
  373. package/views/3d/support/engineContent/line.js +1 -1
  374. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  375. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  376. package/views/3d/support/gaussianSplatting/GaussianSplatSortCoordinator.js +2 -0
  377. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  378. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  379. package/views/3d/terrain/TerrainRenderer.js +1 -1
  380. package/views/3d/terrain/Tile.js +1 -1
  381. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  382. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  383. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  384. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  385. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  386. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  387. package/views/3d/webgl-engine/lib/CutFill.js +1 -1
  388. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  389. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  390. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  391. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  392. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  393. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  394. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  395. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  396. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  397. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  398. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  399. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  400. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  401. package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
  402. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  403. package/views/3d/webgl-engine/shaders/ShadedMaterialConfiguration.js +2 -0
  404. package/views/SceneView.d.ts +2 -4
  405. package/views/SceneView.js +1 -1
  406. package/views/SelectionManager.js +1 -1
  407. package/views/View.d.ts +1 -3
  408. package/views/View2D.d.ts +2 -2
  409. package/views/analysis/ElevationProfile/ElevationProfileChart.js +2 -2
  410. package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
  411. package/views/draw/DrawAction.js +1 -1
  412. package/views/draw/support/PluginContext.js +1 -1
  413. package/views/interactive/options/ViewOptions.d.ts +0 -2
  414. package/views/interactive/sketch/normalizedPoint.js +1 -1
  415. package/views/interactive/tooltip/fields/TooltipFieldElevation.js +1 -1
  416. package/views/interactive/tooltip/fields/TooltipFieldOrientation.js +1 -1
  417. package/views/interactive/tooltip/fields/TooltipFieldSize.js +1 -1
  418. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  419. package/widgets/Attachments.js +1 -1
  420. package/widgets/Attribution/AttributionViewModel.js +1 -1
  421. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  422. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  423. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  424. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  425. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  426. package/widgets/BatchAttributeForm.js +1 -1
  427. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  428. package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
  429. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
  430. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  431. package/widgets/CatalogLayerList.js +1 -1
  432. package/widgets/Compass/CompassViewModel.js +1 -1
  433. package/widgets/CoordinateConversion/support/Format.js +1 -1
  434. package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
  435. package/widgets/Daylight/DaylightViewModel.js +1 -1
  436. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  437. package/widgets/Editor/EditorViewModel.d.ts +0 -1
  438. package/widgets/Editor/support/SketchController.js +1 -1
  439. package/widgets/Editor.d.ts +0 -1
  440. package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
  441. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  442. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  443. package/widgets/Expand/ExpandViewModel.js +1 -1
  444. package/widgets/Expand.js +1 -1
  445. package/widgets/Feature/FeatureMedia.js +1 -1
  446. package/widgets/Feature/FeatureViewModel.js +1 -1
  447. package/widgets/Feature.js +1 -1
  448. package/widgets/FeatureForm.js +1 -1
  449. package/widgets/FeatureTemplates.js +1 -1
  450. package/widgets/Features/FeaturesViewModel.js +1 -1
  451. package/widgets/Features.js +1 -1
  452. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  453. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  454. package/widgets/Histogram/HistogramViewModel.js +1 -1
  455. package/widgets/Histogram.js +1 -1
  456. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
  457. package/widgets/Home/HomeViewModel.js +1 -1
  458. package/widgets/LayerList/LayerListViewModel.js +1 -1
  459. package/widgets/Legend/LegendViewModel.js +1 -1
  460. package/widgets/Legend/styles/card/CardView.js +1 -1
  461. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  462. package/widgets/Locate/LocateViewModel.js +1 -1
  463. package/widgets/Locate.js +1 -1
  464. package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
  465. package/widgets/NavigationToggle.js +1 -1
  466. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  467. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  468. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  469. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  470. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  471. package/widgets/Search.js +1 -1
  472. package/widgets/ShadowCast/DiscreteOptions.js +1 -1
  473. package/widgets/ShadowCast/DurationOptions.js +1 -1
  474. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  475. package/widgets/ShadowCast/ThresholdOptions.js +1 -1
  476. package/widgets/Sketch/SketchViewModel.d.ts +0 -1
  477. package/widgets/Sketch.d.ts +0 -1
  478. package/widgets/Sketch.js +1 -1
  479. package/widgets/Slider/SliderViewModel.js +1 -1
  480. package/widgets/Slider.js +1 -1
  481. package/widgets/TableList/TableListViewModel.js +1 -1
  482. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  483. package/widgets/Weather/WeatherViewModel.js +1 -1
  484. package/widgets/Widget.js +1 -1
  485. package/widgets/Zoom/ZoomViewModel.js +1 -1
  486. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  487. package/widgets/support/GridControls.js +1 -1
  488. package/widgets/support/dateUtils.js +1 -1
  489. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +0 -1
  490. package/assets/esri/core/workers/chunks/059cda6f11a91dbc9e28.js +0 -1
  491. package/assets/esri/core/workers/chunks/0696fa44a04b99738d7b.js +0 -1
  492. package/assets/esri/core/workers/chunks/073f0232135f71b6c7a5.js +0 -1
  493. package/assets/esri/core/workers/chunks/091ec4fe83038f3558f4.js +0 -1
  494. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +0 -1
  495. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +0 -1
  496. package/assets/esri/core/workers/chunks/0bf43d80cb40c2b43333.js +0 -1
  497. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +0 -1
  498. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +0 -1
  499. package/assets/esri/core/workers/chunks/123541f79be7adff0818.js +0 -1
  500. package/assets/esri/core/workers/chunks/1380cec385426673f294.js +0 -1
  501. package/assets/esri/core/workers/chunks/1866f832e5f52958bc97.js +0 -1
  502. package/assets/esri/core/workers/chunks/19e51cbb354954ddafbd.js +0 -1
  503. package/assets/esri/core/workers/chunks/1b24a40c0fa197014873.js +0 -1
  504. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +0 -1
  505. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +0 -1
  506. package/assets/esri/core/workers/chunks/1deca3de77b1a9a07da4.js +0 -1
  507. package/assets/esri/core/workers/chunks/1f76f6dcdae9f55389cb.js +0 -1
  508. package/assets/esri/core/workers/chunks/1fd82fcba2758741996a.js +0 -1
  509. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +0 -1
  510. package/assets/esri/core/workers/chunks/23f3692c7426173e8352.js +0 -1
  511. package/assets/esri/core/workers/chunks/247617c0dbae2386ab3b.js +0 -1
  512. package/assets/esri/core/workers/chunks/25657f70c5f04a4ed978.js +0 -1
  513. package/assets/esri/core/workers/chunks/2853606099602f73d379.js +0 -1
  514. package/assets/esri/core/workers/chunks/28ed020d9995b6577be5.js +0 -1
  515. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +0 -1
  516. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +0 -1
  517. package/assets/esri/core/workers/chunks/2dfe6af28cd1b29d5ebc.js +0 -1
  518. package/assets/esri/core/workers/chunks/305eeaac0b4d5b79ebde.js +0 -1
  519. package/assets/esri/core/workers/chunks/353976c812ebf0c98549.js +0 -1
  520. package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +0 -1
  521. package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +0 -1
  522. package/assets/esri/core/workers/chunks/4caebb64a365da18453f.js +0 -1
  523. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +0 -1
  524. package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +0 -1
  525. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +0 -1
  526. package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +0 -1
  527. package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +0 -1
  528. package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +0 -1
  529. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +0 -1
  530. package/assets/esri/core/workers/chunks/598ba405e93ebccf7b2d.js +0 -1
  531. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +0 -1
  532. package/assets/esri/core/workers/chunks/60c8eedd06080edab3e3.js +0 -1
  533. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +0 -1
  534. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +0 -1
  535. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +0 -1
  536. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +0 -1
  537. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +0 -1
  538. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +0 -1
  539. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +0 -1
  540. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +0 -1
  541. package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +0 -1
  542. package/assets/esri/core/workers/chunks/6f2e7e663229b223b4df.js +0 -1
  543. package/assets/esri/core/workers/chunks/7390af96250e89194332.js +0 -1
  544. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +0 -1
  545. package/assets/esri/core/workers/chunks/7e0ed6e8f7b77e43f628.js +0 -1
  546. package/assets/esri/core/workers/chunks/832c887fdc5af4c08cf2.js +0 -1
  547. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +0 -1
  548. package/assets/esri/core/workers/chunks/8502274806ea52308822.js +0 -1
  549. package/assets/esri/core/workers/chunks/8b0be232723424dda320.js +0 -1
  550. package/assets/esri/core/workers/chunks/8b0efcc30184593a0812.js +0 -1121
  551. package/assets/esri/core/workers/chunks/8b38fad017c4c0d9e1ec.js +0 -1
  552. package/assets/esri/core/workers/chunks/8c3779de09291170497f.js +0 -1
  553. package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +0 -1
  554. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +0 -1
  555. package/assets/esri/core/workers/chunks/90d797ab82d4a68ba32f.js +0 -1
  556. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +0 -1
  557. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +0 -1
  558. package/assets/esri/core/workers/chunks/98958203a5ca45b24d72.js +0 -1
  559. package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +0 -1
  560. package/assets/esri/core/workers/chunks/a125650edbed802e419a.js +0 -1
  561. package/assets/esri/core/workers/chunks/a18c3cbe505a19d29569.js +0 -1
  562. package/assets/esri/core/workers/chunks/a5f17e9a025ac2b6e1bf.js +0 -1
  563. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +0 -1
  564. package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +0 -1
  565. package/assets/esri/core/workers/chunks/acf4737ba509cbd73cce.js +0 -1
  566. package/assets/esri/core/workers/chunks/af2087b75225d7d7dbd8.js +0 -1
  567. package/assets/esri/core/workers/chunks/b386e921c273de3ac7a5.js +0 -1
  568. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +0 -1
  569. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +0 -1
  570. package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +0 -1
  571. package/assets/esri/core/workers/chunks/c5364ff8dd1358af3603.js +0 -1
  572. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +0 -1
  573. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +0 -1
  574. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +0 -1
  575. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +0 -1
  576. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +0 -1
  577. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +0 -1
  578. package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +0 -1
  579. package/assets/esri/core/workers/chunks/efc1a90742813b55602e.js +0 -1
  580. package/assets/esri/core/workers/chunks/f190a3124d6d03417d73.js +0 -1
  581. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +0 -1
  582. package/assets/esri/core/workers/chunks/f6bd7b52745b82ba73dc.js +0 -1
  583. package/assets/esri/core/workers/chunks/f6f5937a1308f28bb959.js +0 -1
  584. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +0 -1
  585. package/assets/esri/core/workers/chunks/fd967a9f3cf0e2890dbb.js +0 -1
  586. package/assets/esri/core/workers/chunks/fe24e039385473bf77f9.js +0 -1
  587. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +0 -1
  588. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +0 -46
  589. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ar.json +0 -1
  590. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bg.json +0 -1
  591. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bs.json +0 -1
  592. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ca.json +0 -1
  593. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.cs.json +0 -1
  594. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.da.json +0 -1
  595. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.de.json +0 -1
  596. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.el.json +0 -1
  597. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.en.json +0 -1
  598. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.es.json +0 -1
  599. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.et.json +0 -1
  600. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fi.json +0 -1
  601. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fr.json +0 -1
  602. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.he.json +0 -1
  603. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hr.json +0 -1
  604. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hu.json +0 -1
  605. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.id.json +0 -1
  606. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.it.json +0 -1
  607. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ja.json +0 -1
  608. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ko.json +0 -1
  609. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lt.json +0 -1
  610. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lv.json +0 -1
  611. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.nl.json +0 -1
  612. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.no.json +0 -1
  613. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pl.json +0 -1
  614. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-BR.json +0 -1
  615. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-PT.json +0 -1
  616. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ro.json +0 -1
  617. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ru.json +0 -1
  618. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sk.json +0 -1
  619. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sl.json +0 -1
  620. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sr.json +0 -1
  621. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sv.json +0 -1
  622. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.th.json +0 -1
  623. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.tr.json +0 -1
  624. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.uk.json +0 -1
  625. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.vi.json +0 -1
  626. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-CN.json +0 -1
  627. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-HK.json +0 -1
  628. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-TW.json +0 -1
  629. package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +0 -2
  630. package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +0 -2
  631. package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +0 -2
  632. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +0 -72
  633. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +0 -2
  634. package/widgets/UtilityNetworkValidateTopology.d.ts +0 -130
  635. package/widgets/UtilityNetworkValidateTopology.js +0 -2
  636. /package/views/2d/engine/vectorTiles/{Feature.js → PbfFeature.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2774],{67482(e,t,n){function r(e){return null!==o(e)}function o(e){return function(e){let t=i.exec(e);if(!t?.groups)return null;let n=t.groups,r=+n.year,o=n.month-1,a=+n.day,l=+(n.hours??"0"),s=+(n.minutes??"0"),u=+(n.seconds??"0");if(l>23||s>59||u>59)return null;let p,c=n.ms??"0",f=c?+c.padEnd(3,"0").slice(0,3):0;if(n.isUTC||!n.offsetSign)p=Date.UTC(r,o,a,l,s,u,f);else{let e=+n.offsetHours,t=+n.offsetMinutes;p=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,a,l,s,u,f)}return Number.isNaN(p)?null:p}(e)??function(e){let t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!a.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>r,_:()=>o});const i=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},69397(e,t,n){n.d(t,{Qf:()=>s,Qh:()=>a,lM:()=>i,ro:()=>u,rq:()=>p});var r=n(44208),o=n(34275);function i(e){if(!e)return 0;let t=c;for(let n in e)e.hasOwnProperty(n)&&(t+=l(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return s(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let n=f;for(let r=0;r<t;r++)n+=l(e[r]);return n}(e);let t=c;for(let n in e)e.hasOwnProperty(n)&&(t+=l(e[n]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function s(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,o.iu)(e)?e.byteLength+d:Array.isArray(e)?p(e,t):0:0}function p(e,t){return f+e.length*t}const c=32,f=16,y=(0,r.A)("ios")||!(0,r.A)("chrome")&&!(0,r.A)("opr")?8:4,d=145;n.d(t,["JY",0,y])},85113(e,t,n){n.d(t,{BM:()=>k,S_:()=>y,bd:()=>E,sO:()=>N,xD:()=>c});var r=n(67482),o=n(49186),i=n(21325),a=n(90708),l=n(43334),s=n(92722),u=n(30524);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return p[e]}function*f(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t);break;default:yield{type:"Feature",geometry:e,properties:null}}}function y(e){for(let t of f(e))if("GeometryCollection"===t.geometry?.type)return!0;return!1}function*d(e){let t=0;for(let n of f(e)){let e="GeometryCollection"===n.geometry?.type,r=[{geometry:n.geometry,depth:0}];for(;r.length>0;){let{geometry:i,depth:a}=r.pop();if("GeometryCollection"===i?.type){if(a>=1024)throw new o.A("geojson-layer:invalid-geometry","GeometryCollection nesting exceeds 1024 levels.");for(let e=i.geometries.length-1;e>=0;e--)r.push({geometry:i.geometries[e],depth:a+1})}else yield{feature:n,geometry:i,index:t,isCollection:e}}t++}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function g(e,t,n,r,i){if(!r)throw new o.A("geojson-layer:geometry-collection-schema","Recreate the layer to add the parent ID field required by GeometryCollections.");let a=t;for(let t in e){let r=i.get(t);void 0===r&&(r=(0,u.rS)(t)?.toLowerCase()===n,i.set(t,r)),r&&(a??=e[t]??void 0,delete e[t])}e[r]=null==a?null:String(a)}function w(e){for(let t of e)if(t.length>2)return!0;return!1}function h(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function b(e){let t=e[0],n=e[e.length-1];(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2])&&e.push(t)}function S(e,t){let{coordinates:n,type:r}=e,o=t.hasZ??!1;switch(r){case"Point":{let e=o||3!==n.length?o&&2===n.length?[...n,0]:[...n]:n.slice(0,2);return new s.A([],e,o,!1)}case"LineString":return(0,a.Ap)({paths:[n],hasZ:!0},o,!1);case"MultiLineString":return(0,a.Ap)({paths:n,hasZ:!0},o,!1);case"MultiPoint":return(0,a.PR)({points:n,hasZ:!0},o,!1);case"Polygon":case"MultiPolygon":{let e=new s.A([],[],o,!1);for(let t of"Polygon"===r?[n]:n){T(e,t[0],o);for(let n=1;n<t.length;n++)A(e,t[n],o)}return e}}}function T(e,t,n){b(t),function(e){return!h(e)}(t)?F(e,t,n):C(e,t,n)}function A(e,t,n){b(t),function(e){return h(e)}(t)?F(e,t,n):C(e,t,n)}function C(e,t,n){for(let r of t)x(e,r,n);e.lengths.push(t.length)}function F(e,t,n){for(let r=t.length-1;r>=0;r--)x(e,t[r],n);e.lengths.push(t.length)}function x(e,[t,n,r],o){e.coords.push(t,n),o&&e.coords.push(r||0)}function P(e){switch(typeof e){case"string":return(0,r.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function N(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type&&"GeometryCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:n}=e;if(!n)return;let r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,a=(0,i.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!r||!a.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function k(e,t={}){let n,r=[],o=new Set,i=new Set,a=!1,l=null,s=!1,{geometryType:p=null}=t;for(let{feature:t,geometry:f}of d(e)){let{properties:e,id:y}=t;if((!f||(p||=c(f.type),c(f.type)===p))&&(a||=w(m(f)),s||(s=null!=y,s&&(n=typeof y,e&&(l=Object.keys(e).filter(t=>e[t]===y)))),e&&l&&s&&null!=y&&(l.length>1?l=l.filter(t=>e[t]===y):1===l.length&&(l=e[l[0]]===y?l:[])),e))for(let t in e){if(o.has(t))continue;let n=P(e[t]);if("unknown"===n){i.add(t);continue}i.delete(t),o.add(t);let a=(0,u.rS)(t);a&&r.push({name:a,alias:t,type:n})}}let f=(0,u.rS)(1===l?.length&&l[0]||null)??void 0;if(f)for(let e of r)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:p,hasZ:a,objectIdFieldName:f,objectIdFieldType:n,unknownFields:Array.from(i)}}function E(e,t){return Array.from(function*(e,t={}){let{geometryType:n,objectIdField:r,parentIdField:o,getObjectId:i}=t,a=(0,u.rS)(r)?.toLowerCase(),s=new Map;for(let{feature:u,geometry:p,index:f,isCollection:y}of e){let{properties:e,id:d}=u;if(p&&c(p.type)!==n)continue;let m=y?{...e}:e??{},w=i?.(u,f);r&&(y?(g(m,d,a,o,s),w=void 0):(w=m[r],null!=d&&null==w&&(m[r]=w=d))),yield new l.Om(p&&S(p,t),m,null,w)}}(d(e),t))}},34322(e,t,n){n.d(t,{E:()=>j,Fu:()=>A,O8:()=>k,UH:()=>U,YW:()=>E,mG:()=>N,x$:()=>M});var r=n(56507),o=n(49186),i=n(5479),a=n(84952),l=n(5443),s=n(99917),u=n(16930),p=n(21325),c=n(50498),f=n(85113),y=n(13043),d=n(60694),m=n(20437),g=n(30524);const w="xlink:href",h="2.0.0",b="__esri_wfs_id__",S="wfs-layer:feature-type-not-found",T="wfs-layer:unknown-geometry-type";async function A(e,t){let n=function(e){let t=D(e);(function(e){let t=e.firstElementChild?.getAttribute("version");if(t&&t!==h)throw new o.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${h}`)})(t),O(t);let n=t.firstElementChild,r=(0,i.PP)(function(e){return(0,y.iN)(e,{FeatureTypeList:{FeatureType:e=>{let t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,y.pu)(e,{Name:e=>{let{name:n,prefix:r}=L(e.textContent);t.typeName=`${r}:${n}`,t.name=n,t.namespacePrefix=r,t.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=l.A.fromJSON(function(e){let t,n,r,o;for(let i of e.children)switch(i.localName){case"LowerCorner":[t,n]=i.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[r,o]=i.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:p.KK}}(e))},DefaultCRS:e=>{let r=P(e);r&&(t.defaultSpatialReference=r,n.add(r))},OtherCRS:e=>{let t=P(e);t&&n.add(t)}}),t.title||=t.name,n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:x(n),get featureTypes(){return Array.from(r())},readFeatureTypes:r}}((await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:h,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,a.m3)(e)&&((0,a.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,a.lM)(t.operations.DescribeFeatureType.url)),(0,a.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,a.lM)(t.operations.GetFeature.url)))}(e,n),n}const C=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function F(e){for(let t of C){let n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function x(e){let t,n,r=!0,i={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1,countDefault:void 0}},a=[],l=[];if((0,y.pu)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&a.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{i.GetCapabilities.url=e.getAttribute(w)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{i.DescribeFeatureType.url=e.getAttribute(w)}}}};case"GetFeature":return{Constraint:e=>{if("CountDefault"===e.getAttribute("name"))return{DefaultValue:e=>{let t=(0,y.JI)(e);n=null!=t&&t>0?t:void 0}}},DCP:{HTTP:{Get:e=>{i.GetFeature.url=e.getAttribute(w)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&l.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"CountDefault":return{DefaultValue:e=>{let n=(0,y.JI)(e);t=null!=n&&n>0?n:void 0}};case"KVPEncoding":return{DefaultValue:e=>{r="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{i.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),i.GetFeature.outputFormat=F(l)??F(a),i.GetFeature.countDefault=n??t,!r)throw new o.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==i.GetFeature.outputFormat)throw new o.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return i}function P(e){let t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function N(e,t,n){return(0,i.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function k(e,t,n,r={}){let{featureType:i,extent:a}=await async function(e,t,n,r={}){let i=e.readFeatureTypes(),a=t?N(i,t,n):i.next().value,{spatialReference:l=new u.A({wkid:a?.defaultSpatialReference})}=r;if(null==a)throw t?new o.A(S,`The type '${t}' could not be found in the service`):new o.A("wfs-layer:empty-service","The service is empty");let c=a.extent;if(c&&!(0,p.aI)(c.spatialReference,l))try{await(0,s.initializeProjection)(c.spatialReference,l,void 0,r),c=(0,s.project)(c,l)}catch{throw new o.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:l,featureType:a}}(e,t,n,r),{spatialReference:l}=U(e.operations.GetFeature.url,i,r.spatialReference),{fields:c,geometryType:f,swapXY:y,objectIdField:d,geometryField:m}=await async function(e,t,n,r={}){let{typeName:i}=t,[a,l]=await Promise.allSettled([G(e.operations.DescribeFeatureType.url,i,r),R(e,i,n,r)]),s=e=>{let t=`An error occurred while getting info about the feature type '${i}'`;return new o.A("wfs-layer:getWFSLayerTypeInfo-error",t,{error:e})};if("rejected"===a.status)throw s(a.reason);if("rejected"===l.status)throw s(l.reason);let{fields:u,errors:p}=a.value??{},c=a.value?.geometryType||l.value?.geometryType,f=l.value?.swapXY??!1;if(null==c)throw new o.A(T,`The geometry type could not be determined for type '${i}`,{typeName:i,geometryType:c,fields:u,errors:p});return{...E(u??[]),geometryType:c,swapXY:f}}(e,i,l,r);return{url:e.operations.GetCapabilities.url,name:i.name,namespaceUri:i.namespaceUri,fields:c,geometryField:m,geometryType:f,objectIdField:d,spatialReference:r.spatialReference??new u.A({wkid:i.defaultSpatialReference}),extent:a,swapXY:y,wfsCapabilities:e,customParameters:r.customParameters}}function E(e){let t=e.find(e=>"geometry"===e.type),n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new m.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function R(e,t,n,o={}){let i,a=!1,[l,s]=await Promise.all([M(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...o,count:1}),(0,r.A)(e.operations.GetFeature.url,{responseType:"text",query:I(t,n,void 0,{...o,count:1}),signal:o?.signal})]),u="FeatureCollection"===l.type&&l.features[0]?.geometry;if(u&&"GeometryCollection"!==u.type){let e;switch(i=c.gy.fromJSON((0,f.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}let t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(s.data);if(t){let n=e[0].toFixed(3),r=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===o&&(a=!0)}}return{geometryType:i,swapXY:a}}async function G(e,t,n){return function(e,t){let{name:n}=L(e),r=D(t);O(r);let a=(0,i.I6)((0,y.iN)(r.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=a){let e=a.getAttribute("type"),t=e?(0,i.I6)((0,y.iN)(r.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===L(e).name):(0,i.I6)((0,y.iN)(a,{complexType:e=>e}),()=>!0);if(t)return function(e){let t,n=[],r=[],i=(0,y.iN)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(let a of i){let i,l,s=a.getAttribute("name");if(!s)continue;if(a.hasAttribute("type")?i=L(a.getAttribute("type")).name:(0,y.pu)(a,{simpleType:{restriction:e=>(i=L(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!i)continue;let u="true"===a.getAttribute("nillable"),p=!1;switch(i.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new m.A({name:s,alias:s,type:"integer",nullable:u,length:(0,g._b)("integer")}));break;case"float":case"double":case"decimal":r.push(new m.A({name:s,alias:s,type:"double",nullable:u,length:(0,g._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new m.A({name:s,alias:s,type:"string",nullable:u,length:l??(0,g._b)("string")}));break;case"datetime":case"date":r.push(new m.A({name:s,alias:s,type:"date",nullable:u,length:l??(0,g._b)("date")}));break;case"pointpropertytype":t="point",p=!0;break;case"multipointpropertytype":t="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":t="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":t="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,n.push(new o.A(T,`geometry type '${i}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:n.push(new o.A("wfs-layer:unknown-field-type",`Unknown field type '${i}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new m.A({name:s,alias:s,type:"geometry",nullable:u}))}for(let e of r)if("integer"===e.type&&!e.nullable&&v.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:t,fields:r,errors:n}}(t)}throw new o.A(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(r)})}(t,(await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:h,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const v=new Set(["objectid","fid"]);async function M(e,t,n,i,a){let{data:l}=await(0,r.A)(e,{responseType:"text",query:I(t,n,i,a),signal:a?.signal});l=l.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(l)}catch(e){throw new o.A("wfs-layer:malformed-json","Error while parsing the response",{response:l,error:e})}}function I(e,t,n,r){let o="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:h,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+o,STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}async function j(e,t,n){let o=await(0,r.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:h,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),i=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(o.data);if(i?.groups)return+i.groups.numberMatched}function D(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function L(e){let[t,n]=e.split(":",2);return{prefix:n?t:"",name:n??t}}function O(e){let t="",n="";if((0,y.pu)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new o.A(`wfs-layer:${t}`,n)}function U(e,t,n){let r={wkid:t.defaultSpatialReference},o=null==n?.wkid?r:{wkid:n.wkid};return{spatialReference:o,getFeatureSpatialReference:(0,d.Fi)(e)||o.wkid&&t.supportedSpatialReferences.includes(o.wkid)?{wkid:o.wkid}:{wkid:t.defaultSpatialReference}}}n.d(t,["i5",0,b])},13043(e,t,n){function r(e,t){if(e&&t)for(let n of e.children)if(n.localName in t){let e=t[n.localName];if("function"==typeof e){let t=e(n);t&&r(n,t)}else r(n,e)}}function*o(e,t){for(let n of e.children)if(n.localName in t){let e=t[n.localName];"function"==typeof e?yield e(n):yield*o(n,e)}}function i(e){let t=e.textContent?.trim()??"",n=/^[+-]?\d+$/.test(t)?Number(t):NaN;return Number.isSafeInteger(n)?n:void 0}n.d(t,{JI:()=>i,iN:()=>o,pu:()=>r})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[152],{52106(e,t,r){r.d(t,{A:()=>S});var s,i,a=r(32198),n=r(40124),l=r(69540),o=r(51447),h=r(25482),u=r(53966),c=r(36708),d=r(24326),g=r(91429),m=r(12195),p=r(65864),f=r(50498),y=r(55156),_=r(60950),b=r(54339),v=r(94128),T=r(33910);const w=Symbol("meshGeometryHandles");function A(e){if(null==e)return null;let t={};for(let r in e){let s=e[r];s&&(t[r]=s.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,l.OU)(h.o)){static{s=v.Z}static{i=this}constructor(e){super(e),this[s]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,d.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,o.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,_.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,y.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:A(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=s),"attributes"===e&&(i.attributeName=s),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.removeHandles(w);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],w)}};(0,a.Cg)([(0,g.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let s=(0,p.rS)(e[r]);s&&(t[r]=s)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,a.Cg)([(0,g.MZ)({value:null})],S.prototype,"attributes",null),(0,a.Cg)([(0,g.MZ)({value:null,types:f.yR,json:{read:p.rS}})],S.prototype,"geometry",null),(0,a.Cg)([(0,g.MZ)()],S.prototype,"distance",void 0),(0,a.Cg)([(0,g.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,a.Cg)([(0,g.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,a.Cg)([(0,g.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,a.Cg)([(0,g.MZ)({type:n.A,value:null})],S.prototype,"popupTemplate",null),(0,a.Cg)([(0,g.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,a.Cg)([(0,g.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,a.Cg)([(0,g.MZ)({value:null,types:T.Es})],S.prototype,"symbol",null),(0,a.Cg)([(0,g.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,a.Cg)([(0,g.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=i=(0,a.Cg)([(0,g.$K)("esri.Graphic")],S)},11221(e,t,r){r.d(t,{t1:()=>A,Jn:()=>S,Rn:()=>T,An:()=>w,rj:()=>v});var s=r(52106),i=r(48938),a=r(54639),n=r(23732),l=r(87449),o=r(32198),h=r(93833),u=r(60999);class c{constructor(e,t){this._parent=e,this._abortSignal=t,this._done=!1,this._features=null,this._batchMutex=new u.aD,this._currentPage=null,this._pageCursor=-1}get _numAvailable(){return null==this._currentPage||this._pageCursor<0?0:Math.max(this._currentPage.length-this._pageCursor,0)}_takeNFeatures(e){if(null==this._currentPage)return[];let t=this._currentPage.slice(this._pageCursor,this._pageCursor+e);return this._pageCursor+=t.length,t.map(e=>s.A.fromJSON(e))}_takeOneFeature(){let e=this._currentPage[this._pageCursor];return this._pageCursor+=1,s.A.fromJSON(e)}async _nextBatch(){if(this._done)return!1;let e,t=await(this._features??=this._parent.queryAll(this._abortSignal));do{if(e=await t.next(),e.done)return this._done=!0,this._currentPage=null,this._pageCursor=-1,!1}while(e.value.length<=0);return this._currentPage=e.value,this._pageCursor=0,!0}async nextBatchAsArcadeFeatures(e,t){let r=await this.nextBatch(e);return null==r?r:r.map(e=>h.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}async nextBatch(e){let t={stack:[],error:void 0,hasError:!1};try{if(this._done)return null;if(e<=0)return[];if((0,o.mS)(t,await this._batchMutex.acquire(),!1),this._numAvailable>=e)return this._takeNFeatures(e);let r=[],s=e;do{let e=this._takeNFeatures(s);s-=e.length,r.push(e)}while(s>0&&await this._nextBatch());let i=r.flat();return i.length>0?i:null}catch(e){t.error=e,t.hasError=!0}finally{(0,o.hk)(t)}}async next(){let e={stack:[],error:void 0,hasError:!1};try{return this._done?null:((0,o.mS)(e,await this._batchMutex.acquire(),!1),this._numAvailable>=1||await this._nextBatch()?this._takeOneFeature():null)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}var d=r(33325),g=r(80609),m=r(50145),p=r(71163),f=r(5479),y=r(89696),_=r(16930),b=r(95466);function v(e){switch(e){case"esriSpatialRelIntersects":return{spatialRelationship:"intersects",relationParameter:null};case"esriSpatialRelContains":return{spatialRelationship:"contains",relationParameter:null};case"esriSpatialRelOverlaps":return{spatialRelationship:"overlaps",relationParameter:null};case"esriSpatialRelWithin":return{spatialRelationship:"within",relationParameter:null};case"esriSpatialRelTouches":return{spatialRelationship:"touches",relationParameter:null};case"esriSpatialRelCrosses":return{spatialRelationship:"crosses",relationParameter:null};case"esriSpatialRelEnvelopeIntersects":return{spatialRelationship:"envelope-intersects",relationParameter:null};default:if(e.includes("esriSpatialRelRelation"))return{spatialRelationship:"relation",relationParameter:e.split(":",2)[1]};throw new l.dr("NeverReach")}}function T(e,t){for(let r of e)null!=r.geometry&&(r.geometry.spatialReference??=t)}const w=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class A{constructor(){this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await(this._parent?.load()),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){null===this._parent?(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new _.A({wkid:4326}),this.geometryType=d.ik.point):(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=b.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null===this._parent?Math.min(this._maxProcessing,this._maxQueryRate()):Math.min(this._maxProcessing,this._parent._maxProcessingRate())}_maxQueryRate(){return null===this._parent?this._maxQuery:Math.max(this._maxQuery,this._parent._maxQueryRate())}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return null!=this._allFeatures}async queryAll(e){this._allFeatures??=this._queryAll().then(e=>(0,f.N5)(e));let t=(await this._allFeatures)();return null==e||e===i._?t:async function*(){for await(let r of t)(0,l.dZ)(e),yield r}()}async databaseType(){if(7===this._databaseType){if(null!==n.A.applicationCache){let e=n.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==n.A.applicationCache&&n.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==n.A.applicationCache&&n.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){for(let e of[{dbType:2,probeSql:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{dbType:3,probeSql:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{dbType:1,probeSql:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}])if(!0===await this._runDatabaseProbe(e.probeSql))return e.dbType;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new l.dr("NotImplemented")}isTable(){return this._parent?.isTable()??!1}async first(e){if(this._hasCachedFeatures)return this.iterator(e).next();let t=await this.query({limit:1,abortSignal:e});for await(let e of t.features)if(e.length>0)return s.A.fromJSON(e[0]);return null}async isEmpty(e){return this._totalCount>=0?0===this._totalCount:null==await this.first(e)}async calculateStatistic(e,t,r,s){await this._ensureLoaded();let i=await this.queryStat({stat:e,field:t,limit:r,abortSignal:s});return!1===i.calculated&&(i=await this._manualStat(e,t,r,s)),i.result}async _manualStat(e,t,r,s){let i=null;switch(e.toLowerCase()){case"count":{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};let e=await this.queryAll(s),t=0;for await(let r of e)t+=r.length;return this._totalCount=t,{calculated:!0,result:t}}case"distinct":return i=await(0,m.dM)(this,t,r,s),{calculated:!0,result:i};case"avg":case"mean":return i=await(0,m._X)(this,t,"avg",s),t&&!(0,g.DA)(t)&&"integer"===(0,g.IY)(t,this.fields)?{calculated:!0,result:null==i?null:Math.trunc(i)}:{calculated:!0,result:i};case"stdev":return i=await(0,m._X)(this,t,"stddev",s),{calculated:!0,result:i};case"variance":return i=await(0,m._X)(this,t,"var",s),{calculated:!0,result:i};case"sum":return i=await(0,m._X)(this,t,"sum",s),{calculated:!0,result:i};case"min":return i=await(0,m._X)(this,t,"min",s),{calculated:!0,result:i};case"max":return i=await(0,m._X)(this,t,"max",s),{calculated:!0,result:i};default:return{calculated:!0,result:0}}}iterator(e){return new c(this,e)}async sumArea(e,t,r){let s=0;for await(let i of await this.queryAll(r))for(let r of i)null!=r.geometry&&(s+=null==t?await(0,p.C)("area",[r.geometry,(0,a.b)(this.spatialReference),e]):await(0,p.C)("geodeticArea",[r.geometry,(0,a.b)(this.spatialReference),e,t]));return s}async sumLength(e,t,r){let s=0;for await(let i of await this.queryAll(r))for(let r of i)null!=r.geometry&&(s+=null==t?await(0,p.C)("length",[r.geometry,(0,a.b)(this.spatialReference),e]):await(0,p.C)("geodeticLength",[r.geometry,(0,a.b)(this.spatialReference),e,t]));return s}async count(e){return await this.load(),this.calculateStatistic("count",y.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??i._)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,r,s,i){return this._parent.queryAttachments(e,t,r,s,i)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){let e=Array.from(this.fields,e=>(0,d.nE)(e));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===d.yT[this.geometryType]?"esriGeometryNull":d.yT[this.geometryType],fields:e}}async convertToText(e,t){return"schema"===e?(await this._ensureLoaded(),JSON.stringify(this.schema())):"featureset"===e?JSON.stringify(await this.castAsJsonAsync(t)):this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return null===this._parent?this:this._parent.getDataSourceFeatureSet()}castAsJson(){return{type:"FeatureSet"}}async castAsJsonAsync(e=null){await this._ensureLoaded();let t=[];for await(let r of await this.queryAll(e))for(let e of r){let r=e.attributes,s=null;if(null!=e.geometry)if(e.geometry.spatialReference){let{spatialReference:t,...r}=e.geometry;s=r}else s=e.geometry;t.push({geometry:s,attributes:r})}return{...this.schema(),features:t,spatialReference:this.spatialReference?.toJSON()??null}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?"unknown":this.dateFieldsTimeZone||"UTC"}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class S extends A{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}},23732(e,t,r){r.d(t,{A:()=>s});class s{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},87449(e,t,r){r.d(t,{dZ:()=>n,dr:()=>a});var s=r(799);const i={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class a extends Error{constructor(e,t){super((0,s.HC)(i[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,a)}}function n(e){if(null!=e&&e?.aborted)throw new a("Cancelled")}},80609(e,t,r){r.d(t,{C6:()=>v,DA:()=>C,F1:()=>_,F6:()=>p,IY:()=>T,Ju:()=>I,Kb:()=>g,Mi:()=>u,Nf:()=>y,R8:()=>f,YY:()=>h,bD:()=>c,bm:()=>b,kg:()=>d,oj:()=>M});var s=r(66131),i=r(33325),a=r(1262),n=r(15032),l=r(89696),o=r(34747);function h(e,t){return m(e?.parseTree,t,e?.parameters)}function u(e,t,r){return m(e,t,r)}function c(e,t,r,s){let i=m(e.parseTree,0,e.parameters,t,r);return l.A.create(i,{fieldsIndex:s,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e,t,r="AND"){return l.A.create("(("+h(e,0)+")"+r+"("+h(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function g(e){return!0===e.delimited?`"${e.column.replaceAll('"','""')}"`:e.column}function m(e,t,r,s=null,n=null){let l,o,h,u;switch(e.type){case"interval":return M(m(e.value,t,r,s,n),e.qualifier,e.op);case"case-expression":{let i=" CASE ";"simple"===e.format&&(i+=m(e.operand,t,r,s,n));for(let a=0;a<e.clauses.length;a++)i+=" WHEN "+m(e.clauses[a].operand,t,r,s,n)+" THEN "+m(e.clauses[a].value,t,r,s,n);return null!==e.else&&(i+=" ELSE "+m(e.else,t,r,s,n)),i+=" END ",i}case"parameter":{let s=r[e.value.toLowerCase()];if("string"==typeof s)return"'"+r[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,i.$P)(s)||(0,i.Lk)(s))return b(s,t);if((0,i.eg)(s))return _(s,t);if((0,i.rX)(s))return f(s,t);if((0,i.f0)(s))return y(s,t);if(Array.isArray(s)){let e=[];for(let r=0;r<s.length;r++)"string"==typeof s[r]?e.push("'"+s[r].toString().replaceAll("'","''")+"'"):(0,i.$P)(s[r])||(0,i.Lk)(s[r])?e.push(b(s[r],t)):(0,i.eg)(s[r])?e.push(_(s[r],t)):(0,i.rX)(s[r])?e.push(f(s[r],t)):(0,i.f0)(s[r])?e.push(y(s[r],t)):e.push(s[r].toString());return e}return s.toString()}case"expression-list":o=[];for(let i of e.value)o.push(m(i,t,r,s,n));return o;case"unary-expression":return" ( NOT "+m(e.expr,t,r,s,n)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+m(e.left,t,r,s,n)+" AND "+m(e.right,t,r,s,n)+") ";case"OR":return" ("+m(e.left,t,r,s,n)+" OR "+m(e.right,t,r,s,n)+") ";case"IS":if("null"!==e.right.type)throw new a.L("UnsupportedIsRhs");return" ("+m(e.left,t,r,s,n)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new a.L("UnsupportedIsRhs");return" ("+m(e.left,t,r,s,n)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=m(e.right,t,r,s,n)," ("+m(e.left,t,r,s,n)+" IN ("+l.join(",")+")) "):(u=m(e.right,t,r,s,n),Array.isArray(u)?" ("+m(e.left,t,r,s,n)+" IN ("+u.join(",")+")) ":" ("+m(e.left,t,r,s,n)+" IN ("+u+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=m(e.right,t,r,s,n)," ("+m(e.left,t,r,s,n)+" NOT IN ("+l.join(",")+")) "):(u=m(e.right,t,r,s,n),Array.isArray(u)?" ("+m(e.left,t,r,s,n)+" NOT IN ("+u.join(",")+")) ":" ("+m(e.left,t,r,s,n)+" NOT IN ("+u+")) ");case"BETWEEN":return h=m(e.right,t,r,s,n)," ("+m(e.left,t,r,s,n)+" BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"NOTBETWEEN":return h=m(e.right,t,r,s,n)," ("+m(e.left,t,r,s,n)+" NOT BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"LIKE":return""===e.escape?" ("+m(e.left,t,r,s,n)+" LIKE "+m(e.right,t,r,s,n)+") ":" ("+m(e.left,t,r,s,n)+" LIKE "+m(e.right,t,r,s,n)+" ESCAPE '"+e.escape+"') ";case"NOT LIKE":return""===e.escape?" ("+m(e.left,t,r,s,n)+" NOT LIKE "+m(e.right,t,r,s,n)+") ":" ("+m(e.left,t,r,s,n)+" NOT LIKE "+m(e.right,t,r,s,n)+" ESCAPE '"+e.escape+"') ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+m(e.left,t,r,s,n)+" "+e.operator+" "+m(e.right,t,r,s,n)+") ";case"||":return" ("+m(e.left,t,r,s,n)+" "+(2===t?"+":e.operator)+" "+m(e.right,t,r,s,n)+") "}throw new a.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return v(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return s&&s.toLowerCase()===e.column.toLowerCase()?"("+n+")":g(e);case"data-type":return e.value;case"function":{let i=m(e.args,t,r,s,n);return p(e.name,i,t)}}throw new a.L("UnsupportedSyntax",{node:e.type})}function p(e,t,r){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new a.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new a.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new a.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new a.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new a.L("InvalidFunctionParameters",{function:"truncate"});return 2===r?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new a.L("InvalidFunctionParameters",{function:"char_length"});switch(r){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new a.L("InvalidFunctionParameters",{function:e.toLowerCase()});let r=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(r+=","),r+=t[e];return r+=")",r}case"lower":case"lcase":if(1!==t.length)throw new a.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new a.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(r){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(r){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new a.L("InvalidFunctionParameters",{function:e})}function f(e,t){let r=e.toDateTime(),s=0===r.hour&&0===r.minute&&0===r.second&&0===r.millisecond;switch(t){case 6:case 0:case 1:return s?`date '${r.toFormat("yyyy-LL-dd")}'`:`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return s?`TO_DATE('${r.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${r.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${r.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function y(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function _(e,t){switch(e instanceof n.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function b(e,t){return f(s.lY.dateTimeToArcadeDate((0,i.Lk)(e)?e:o.c9.fromJSDate(e)),t)}function v(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,r={}){let s={},i={},a={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestamp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(let e of t){let t=e.type?a[e.type]:void 0;s[e.name.toLowerCase()]=void 0===t?"":t}for(let e in r){let t=a[r[e]];i[e.toLowerCase()]=void 0===t?"":t}switch(w(s,e.parseTree,e.parameters,i)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function w(e,t,r,s){let n;switch(t.type){case"interval":return"integer";case"case-expression":{let i=[];if("simple"===t.format){for(let a=0;a<t.clauses.length;a++)i.push(w(e,t.clauses[a].value,r,s));null!==t.else&&i.push(w(e,t.else,r,s))}else{for(let a=0;a<t.clauses.length;a++)i.push(w(e,t.clauses[a].value,r,s));null!==t.else&&i.push(w(e,t.else,r,s))}return S(i)}case"parameter":{let e=s[t.value.toLowerCase()];if(void 0===e&&r){let e=r[t.value.toLowerCase()];if(null==e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,i.$P)(e)||(0,i.rX)(e))return"date";if((0,i.f0)(e))return"date-only";if((0,i.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":return Array.from(t.value,t=>w(e,t,r,s));case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new a.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return S([w(e,t.left,r,s),w(e,t.right,r,s)]);case"||":return"string";default:throw new a.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{let r=e[t.column.toLowerCase()];return void 0===r?"":r}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(n=w(e,t.args,r,s),Array.isArray(n)){if(n.length<=0)return"double";n=n[0]}return n;case"sign":return"integer";case"ceiling":case"floor":case"abs":return n=w(e,t.args,r,s),Array.isArray(n)&&(n=S(n)),"integer"===n||"double"===n?n:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return n=w(e,t.args,r,s),Array.isArray(n)?n.length>0?n[0]:"":n}return""}throw new a.L("UnsupportedSyntax",{node:t.type})}const A={boolean:1,string:2,integer:3,double:4,date:5};function S(e){if(e){let t="";for(let r of e)""!==r&&(t=""===t||A[t]<A[r]?r:t);return t}return""}function I(e,t){return L(e.parseTree,t)}function C(e){return"column-reference"===e?.parseTree.type}function L(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return L(e.operand,t)||L(e.value,t);case"case-expression":for(let r of e.clauses)if(L(r,t))return!0;return!!("simple"===e.format&&L(e.operand,t)||null!==e.else&&L(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(let r of e.value)if(L(r,t))return!0;return!1;case"unary-expression":return L(e.expr,t);case"binary-expression":return L(e.left,t)||L(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return L(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function M(e,t,r){let s="";return s="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+r+" "+e+" "+s}},50145(e,t,r){r.d(t,{Dp:()=>o,_X:()=>h,dM:()=>u});var s=r(87449),i=r(74639),a=r(44729),n=r(55612),l=r(15032);function o(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return null}async function h(e,t,r,a){let n=await e.queryAll(a),l=[];if(null!=t){let e={ticker:0};for await(let r of n){if(e.ticker+=r.length,e.ticker>=100&&(e.ticker=0,await new Promise(e=>{setTimeout(e,0)})),a?.aborted)throw new s.dr("Cancelled");for(let e of r)l.push(t.calculateValue(e))}}return(0,i.s)(r,[l])}async function u(e,t,r=1e3,i=null){if(null==t)return[];let o=await e.queryAll(i),h=[],u=new Set,c={ticker:0};for await(let e of o){if(c.ticker+=e.length,c.ticker>=100&&(c.ticker=0,await new Promise(e=>{setTimeout(e,0)})),i?.aborted)throw new s.dr("Cancelled");for(let s of e){let e=t.calculateValue(s),i=e;if(e instanceof a.n?i="!!DATEONLY!!-"+e.toString():e instanceof n.g?i="!!TSOFFSETONLY!!-"+e.toString():e instanceof l.k?i="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(i="!!DATE!!-"+e.toString()),null!=e&&(u.has(i)||(h.push(e),u.add(i))),h.length>=r&&-1!==r)return h}}return h}},71163(e,t,r){r.d(t,{C:()=>o});var s=r(83027);let i,a,n=!1;function l(){return i??=(0,s.h)("arcadeGeometryOperatorsWorker").then(e=>{a=e,n=!0,i=void 0})}async function o(e,t){return n?a.apply("invokeGeometryOp",[e,t]):(await l(),o(e,t))}},69540(e,t,r){var s=r(32198),i=r(56372),a=(r(44208),r(4718)),n=(r(53966),r(97768)),l=r(88620),o=r(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let r=e,i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,l.oY)(this);(0,n.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,s=t.store,i={},o=new Map;for(let t in r){let n=r[t],l=s?.originOf(t),h=n.clonable;if(n.readOnly||!1===h||7!==l&&0!==l&&5!==l&&4!==l)continue;let u=this[t],c=null;if("function"==typeof h)c=h(u,e);else if("reference"===h)c=u;else if(c=(0,a.TU)(u,e),null!=u&&null==c)continue;0===l?o.set(t,c):i[t]=c}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(o.size){let e=(0,l.oY)(h)?.store;if(e)for(let[t,r]of o)e.set(t,r,0)}return h}};return i=(0,s.Cg)([(0,o.$)("esri.core.Clonable")],i),i},c=u(i.A);r.d(t,["OU",0,u,"Pw",0,c])},7762(e,t,r){var s,i=r(32198),a=r(98291),n=r(4576),l=r(65529),o=r(36563),h=r(4718),u=r(53966),c=r(93687),d=r(76030),g=r(78888),m=r(62788),p=r(10107),f=r(7695),y=r(64108),_=r(95488),b=r(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class T{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const w=new c.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function A(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function S(e){return e?e instanceof x?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function I(e){if(e?.length)return e[0]}function C(e,t,r,s){let i=Math.min(e.length-r,t.length-s),a=0;for(;a<i&&e[r+a]===t[s+a];)a++;return a}function L(e,t,r,s){t&&t.forEach((t,i,a)=>{e.push(t),L(e,r.call(s,t,i,a),r,s)})}const E=new Set,M=new Set,F=new Set,N=new Map;let D=0,x=s=class extends l.nJ{static ofType(e){if(!e)return s;if(N.has(e))return N.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,i.Cg)([(0,f.u)({Type:e,ensureType:"function"==typeof e?(0,g.dp)(e):(0,g.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),N.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(function(e){return e?(0,n.yc)(e)||e instanceof x?{items:e}:e:{}}(e)),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:D++})}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,S(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,o.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,o.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,S(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,m.gc)(this._observable);let t=e.map(S);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),s=r.length;for(let i=0;i<s;i++)e.call(t,r[i],i,r);this._emitAfterChanges(2)}destroyAll(){this.drain(A)}destroyMany(e){let t=this.removeMany(e);return t.forEach(A),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);let r=[];return L(r,this,e,t),new s(r)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);let r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=I(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=I(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof s?e.toArray():e,r=this._items,i=[],a=t.length;for(let e=0;e<a;e++){let s=t[e],a=r.indexOf(s);if(a>-1){let s=1+C(t,r,e+1,a+1),n=this._splice(a,s);n&&n.length>0&&i.push.apply(i,n),e+=s-1}}return this._emitAfterChanges(2),i}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=I(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let s=(t?2:0)|!!r.length;if(this._emitBeforeChanges(s))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(s),i}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let s,i,a=this._items,n=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(i=a.splice(e,t),this.hasEventListener("before-remove")){let t=w.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=i.length;r<n;r++)s=i[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(i.splice(r,1),a.splice(e,0,s),e+=1,--r,--n);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=w.acquire();e.target=this,e.cancellable=!1;let t=i.length;for(let r=0;r<t;r++)e.reset(i[r]),this.emit("after-remove",e);w.release(e)}}if(r?.length){if(n){let e=[];for(let t of r){let r=n.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),i=e===this.length;if(t||s){let n=w.acquire();n.target=this,n.cancellable=!0;let l=w.acquire();l.target=this,l.cancellable=!1;for(let o of r)t?(n.reset(o),this.emit("before-add",n),n.defaultPrevented||(i?a.push(o):a.splice(e++,0,o),this._length=a.length,s&&(l.reset(o),this.emit("after-add",l)))):(i?a.push(o):a.splice(e++,0,o),this._length=a.length,l.reset(o),this.emit("after-add",l));w.release(l),w.release(n)}else{if(i)for(let e of r)a.push(e);else a.splice(e,0,...r);this._length=a.length}}if((r?.length||i?.length)&&this._notifyChangeEvent(r,i),this.hasEventListener("after-splice")){let s=new T(this,r,i,e,t);this.emit("after-splice",s)}return i}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=w.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,w.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;E.clear(),M.clear(),F.clear();for(let{added:t,removed:r}of e){if(t)if(0===F.size&&0===M.size)for(let e of t)E.add(e);else for(let e of t)M.has(e)?(F.add(e),M.delete(e)):F.has(e)||E.add(e);if(r)if(0===F.size&&0===E.size)for(let e of r)M.add(e);else for(let e of r)E.has(e)?E.delete(e):(F.delete(e),M.add(e))}let r=a.A.acquire();E.forEach(e=>{r.push(e)});let s=a.A.acquire();M.forEach(e=>{s.push(e)});let i=this._items,n=t.items,l=a.A.acquire();if(F.forEach(e=>{n.indexOf(e)!==i.indexOf(e)&&l.push(e)}),t.listeners&&(r.length||s.length||l.length)){let e={target:this,added:r,removed:s,moved:l},i=t.listeners.length;for(let r=0;r<i;r++){let s=t.listeners[r];s.removed||s.callback.call(this,e)}}a.A.release(r),a.A.release(s),a.A.release(l)}E.clear(),M.clear(),F.clear()}};(0,i.Cg)([(0,p.MZ)()],x.prototype,"_updating",void 0),(0,i.Cg)([(0,p.MZ)()],x.prototype,"_length",void 0),(0,i.Cg)([(0,p.MZ)()],x.prototype,"length",null),(0,i.Cg)([(0,p.MZ)()],x.prototype,"items",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],x.prototype,"updating",null),x=s=(0,i.Cg)([(0,y.$)("esri.core.Collection")],x);const O=x;r.d(t,["A",0,O])},65529(e,t,r){var s=r(56372),i=r(36563);const a=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return!1;let s=!1;for(let e of r.slice()){let r="deref"in e?e.deref():e;r?r?.call(this,t):s=!0}return s&&(r=r.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){let r=e.map(e=>this.on(e,t));return(0,i.vE)(r)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,i.hA)(()=>{let r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1)})}once(e,t){let r=this.on(e,e=>{r.remove(),("deref"in t?t.deref():t)?.call(null,e)});return r}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},n=a(class{}),l=n,o=a(s.A);r.d(t,["Zt",0,a,"a$",0,n,"bk",0,l,"nJ",0,o])},4902(e,t,r){var s=r(32198),i=r(64108);let a=0;const n=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+a++})}};return r=(0,s.Cg)([(0,i.$)("esri.core.Identifiable")],r),r};n(class{}),r.d(t,["s",0,n])},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>o,z7:()=>h});var s=r(37955),i=r(36563),a=r(97768),n=r(17676),l=r(14012);function o(e,t,r={}){return u(e,t,r,g)}function h(e,t,r={}){return u(e,t,r,m)}function u(e,t,r={},s){let i=null,n=r.once?(e,r)=>{s(e)&&((0,a.xt)(i),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(i=(0,l.Cn)(e,n,r.sync,r.equals),r.initial){let t=e();n(t,t)}return i}function c(e,t,r,n={}){let l=null,h=null,u=null;function c(){l&&h&&(h.remove(),n.onListenerRemove?.(l),l=null,h=null)}function d(e){n.once&&n.once&&(0,a.xt)(u),r(e)}let g=o(e,(e,r)=>{c(),(0,s.wb)(e)&&(l=e,h=(0,s.on)(e,t,d),n.onListenerAdd?.(e))},{sync:n.sync,initial:!0});return u=(0,i.hA)(()=>{g.remove(),c()}),u}function d(e,t){return function(e,t,r){if((0,n.G4)(r))return Promise.reject((0,n.NK)());let s=e();if(t?.(s))return Promise.resolve(s);let l=null;function o(){l=(0,a.xt)(l)}return new Promise((s,a)=>{l=(0,i.vE)([(0,n.u7)(r,()=>{o(),a((0,n.NK)())}),u(e,e=>{o(),s(e)},{sync:!1,once:!0},t??g)])})}(e,m,t)}function g(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},55156(e,t,r){r.d(t,{I:()=>i});const s=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&s in t?e[s]:void 0;var t}r.d(t,["e",0,s])},97770(e,t,r){r.d(t,{Ey:()=>F,F8:()=>M,J2:()=>I,Yq:()=>L,_m:()=>C,iS:()=>E,wj:()=>N});var s=r(66552),i=r(73444),a=r(98623),n=r(34747);const l={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},o={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},g={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},f={hourCycle:"h23"},y={...m,...f},_={...p,...f},b={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...p},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...p},"day-short-month-year-long-time-24":{...d,..._},"long-date":g,"long-date-short-time":{...g,...m},"long-date-short-time-24":{...g,...y},"long-date-long-time":{...g,...p},"long-date-long-time-24":{...g,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},v=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function w(){let e=(0,i.lR)();return(e&&T[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(T.bs="sr-Latn-CS");let A=new WeakMap;const S=b["short-date-short-time"];function I(e){return b[e]}function C(e){let{dateStyle:t,timeStyle:r,hour12:s,year:i,month:a}=e,n={};return t?n.dateStyle=t:i&&(n.year=i,n.month=a||void 0),r&&!n.year&&(n.timeStyle=r,n.hour12="auto"===s?void 0:"always"===s),n}function L(e,t=S){return function(e){let t=A.get(e);if(!t){let r=w(),s=N(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(r,i),A.set(e,t)}return t}(t).format(e)}function E(e,t=S){return L(new Date(e),{...t,...h,...o})}function M(e,t=S){return L(new Date(`1970-01-01T${e}Z`),{...t,...h,...l})}function F(e,t=S){let r=n.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return L(r.toJSDate(),t);let s=0===r.offset?"UTC":t.timeZone,i={...t,timeZone:s};return r.toLocaleString(i,{locale:w()})}function N(e){switch(e){case"system":return a.N;case a.L:return"UTC";default:return e}}(0,i.Ml)(()=>{A=new WeakMap}),r.d(t,["_v",0,v])},54339(e,t,r){function s(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let s of t.fieldNames)r.push(e.attributes[s]??null);return JSON.stringify(r)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>s,r:()=>i})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9616],{69540(e,t,i){var n=i(32198),r=i(56372),s=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let i=e,r=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let i=t.metadata,n=t.store,r={},l=new Map;for(let t in i){let o=i[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],d=null;if("function"==typeof u)d=u(h,e);else if("reference"===u)d=h;else if(d=(0,s.TU)(h,e),null!=h&&null==d)continue;0===a?l.set(t,d):r[t]=d}let u=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,i]of l)e.set(t,i,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},d=h(r.A);i.d(t,["OU",0,h,"Pw",0,d])},65529(e,t,i){var n=i(56372),r=i(36563);const s=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let i=this._listenersMap?.get(e);if(!i)return!1;let n=!1;for(let e of i.slice()){let i="deref"in e?e.deref():e;i?i?.call(this,t):n=!0}return n&&(i=i.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,i)),i.length>0}on(e,t){if(Array.isArray(e)){let i=e.map(e=>this.on(e,t));return(0,r.vE)(i)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let i=this._listenersMap.get(e)||[];return i.push(t),this._listenersMap.set(e,i),(0,r.hA)(()=>{let i=this._listenersMap?.get(e),n=i?.indexOf(t)??-1;n>=0&&i.splice(n,1)})}once(e,t){let i=this.on(e,e=>{i.remove(),("deref"in t?t.deref():t)?.call(null,e)});return i}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},o=s(class{}),a=o,l=s(n.A);i.d(t,["Zt",0,s,"a$",0,o,"bk",0,a,"nJ",0,l])},66344(e,t,i){i.d(t,{q:()=>a});const n=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){return this._db.get(e.id+t)?.size??0}put(e,t,i,r,o){t=e.id+t;let a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return n||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);let l=1+Math.max(o,-4)- -3;this._db.set(t,new s(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;let i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let n=i.entry.usedMemory;for(;n>this._maxSize;){let e=this._notifyRemove(t,i.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}i.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;let i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;let i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){let i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=[];this._db.forEach((e,n)=>{let r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{let{id:r,name:s}=i;if(n.startsWith(r)){let i=t[s]||0;t[s]=i+e.size}})});let n={};this._clients.forEach(e=>{let i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){let r=t[i]||0;t[i]=r,n[i]=Math.round(100*e.hitRate)+"%"}else n[i]="0%"});let r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+n[i]);for(let t=i.length-1;t>=0;--t){let n=i[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){let t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,n){let r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,n,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){let i=t??this;if(i.size<=e)return;let n=t?.id,r=!0;for(;r;){r=!1;for(let[s,a]of this._db)if(0===a.lifetime&&(!n||s.startsWith(n))){let n=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,a,n),i.size<=.9*e)return;r||=this._db.has(s)}}for(let[r,s]of this._db)if(!n||r.startsWith(n)){let n=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,n),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);let n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id=":",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482(e,t,i){function n(e){return null!==r(e)}function r(e){return function(e){let t=s.exec(e);if(!t?.groups)return null;let i=t.groups,n=+i.year,r=i.month-1,o=+i.day,a=+(i.hours??"0"),l=+(i.minutes??"0"),u=+(i.seconds??"0");if(a>23||l>59||u>59)return null;let h,d=i.ms??"0",c=d?+d.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)h=Date.UTC(n,r,o,a,l,u,c);else{let e=+i.offsetHours,t=+i.offsetMinutes;h=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,r,o,a,l,u,c)}return Number.isNaN(h)?null:h}(e)??function(e){let t=new Date(e),i=t.getTime();return Number.isNaN(i)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?i:null}(e)??function(e){if(!o.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}i.d(t,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p){return[e,t,i,n,r,s,o,a,l,u,h,d,c,m,f,p]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,s])},35522(e,t,i){i.d(t,{$A:()=>F,Bw:()=>s,C:()=>o,Cc:()=>w,DI:()=>v,Io:()=>_,Ln:()=>g,Om:()=>I,Qr:()=>d,Re:()=>u,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>D,ei:()=>A,fw:()=>B,gL:()=>z,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>h,m3:()=>b,oW:()=>O,t2:()=>E,tn:()=>c,ze:()=>x});var n=i(51850),r=i(34304);function s(e){let t=e[0],i=e[1],n=e[2];return Math.sqrt(t*t+i*i+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function l(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function d(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function c(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function p(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function y(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e}function _(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(i*i+n*n+r*r)}function M(e,t){let i=t[0]-e[0],n=t[1]-e[1],r=t[2]-e[2];return i*i+n*n+r*r}function b(e){let t=e[0],i=e[1],n=e[2];return t*t+i*i+n*n}function x(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function v(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t=e){let i=t[0],n=t[1],r=t[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function I(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function F(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2];return e[0]=r*l-s*a,e[1]=s*o-n*l,e[2]=n*a-r*o,e}function w(e,t,i,n){let r=t[0],s=t[1],o=t[2];return e[0]=r+n*(i[0]-r),e[1]=s+n*(i[1]-s),e[2]=o+n*(i[2]-o),e}function T(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=i[0]*n+i[4]*r+i[8]*s+i[12],e[1]=i[1]*n+i[5]*r+i[9]*s+i[13],e[2]=i[2]*n+i[6]*r+i[10]*s+i[14],e}function A(e,t,i){let n=t[0],r=t[1],s=t[2];return e[0]=n*i[0]+r*i[3]+s*i[6],e[1]=n*i[1]+r*i[4]+s*i[7],e[2]=n*i[2]+r*i[5]+s*i[8],e}function z(e,t,i){return B(e,t,i[0],i[1],i[2],i[3])}function B(e,t,i,n,r,s){let o=t[0],a=t[1],l=t[2],u=n*l-r*a,h=r*o-i*l,d=i*a-n*o,c=n*d-r*h,m=r*u-i*d,f=i*h-n*u,p=2*s;return e[0]=o+u*p+2*c,e[1]=a+h*p+2*m,e[2]=l+d*p+2*f,e}const R=(0,n.vt)(),C=(0,n.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function D(e,t){if(e===t)return!0;let i=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,r.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(e,t,i){let n=i[0]-t[0],r=i[1]-t[1],s=i[2]-t[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const q=u,N=h,P=d,Z=_,L=M,j=s,Y=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(e,t){S(R,e),S(C,t);let i=I(R,C);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(e,t,i){return e[0]=t[0]+i[12],e[1]=t[1]+i[13],e[2]=t[2]+i[14],e},bezier:function(e,t,i,n,r,s){let o=1-s,a=o*o,l=s*s,u=a*o,h=3*s*a,d=3*l*o,c=l*s;return e[0]=t[0]*u+i[0]*h+n[0]*d+r[0]*c,e[1]=t[1]*u+i[1]*h+n[1]*d+r[1]*c,e[2]=t[2]*u+i[2]*h+n[2]*d+r[2]*c,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:F,crossAndNormalize:function(e,t,i){let n=t[0],r=t[1],s=t[2],o=i[0],a=i[1],l=i[2],u=r*l-s*a,h=s*o-n*l,d=n*a-r*o,c=Math.sqrt(u*u+h*h+d*d);return e[0]=u/c,e[1]=h/c,e[2]=d/c,e},direction:O,dist:Z,distance:_,div:P,divide:d,dot:I,equals:D,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,n,r,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),h=o*(3-2*s);return e[0]=t[0]*a+i[0]*l+n[0]*u+r[0]*h,e[1]=t[1]*a+i[1]*l+n[1]*u+r[1]*h,e[2]=t[2]*a+i[2]*l+n[2]*u+r[2]*h,e},inverse:v,len:j,length:s,lerp:w,max:p,min:f,mul:N,multiply:h,negate:x,normalize:S,random:function(e,t=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,n){let r=[],s=[];return r[0]=t[0]-i[0],r[1]=t[1]-i[1],r[2]=t[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/j(e))},set:a,sign:m,sqrDist:L,sqrLen:Y,squaredDistance:M,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:q,subtract:u,transformMat3:A,transformMat4:T,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:z,transformQuatValues:B},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,j,"jb",0,q,"lo",0,L,"uE",0,Y])},75503(e,t,i){i.d(t,{wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),S.prune(),I.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data,n=this._toBBox;if(M(e,i))for(x.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;M(e,o)&&(i.leaf?t(s):_(e,o)?l(s,t):x.push(s))}i=x.pop()}}collides(e){let t=this._data,i=this._toBBox;if(!M(e,t))return!1;for(x.clear();t;){for(let n=0,r=t.children.length;n<r;n++){let r=t.children[n],s=t.leaf?i(r):r;if(M(e,s)){if(t.leaf||_(e,s))return!0;x.push(r)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1,l=this._toBBox(e);for(S.clear(),I.clear();i||S.length>0;){if(i||(i=S.pop(),s=S.data[S.length-1],o=I.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),S.push(i),this._condense(S),this;a||i.leaf||!_(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(S.push(i),I.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){let r=i-t+1,s=this._maxEntries;if(r<=s){let n=new T(e.slice(t,i+1));return u(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new A([]);o.height=n;let a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));b(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){let t=Math.min(r+l-1,i);b(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){let r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return u(o,this._toBBox),o}_insert(e,t,i){let n=this._toBBox,r=i?e:n(e);S.clear();let s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){let o=t.children[s],a=f(o),l=y(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,S);for(s.children.push(e),d(s,r);t>=0&&S.data[t].children.length>this._maxEntries;)this._split(S,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)d(t.data[n],e)}(r,S,t)}_split(e,t){let i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),a=i.leaf?new T(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){let t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<n?(n=l,s=o,r=u<r?u:r):l===n&&u<r&&(r=u,s=o)}return s}_chooseSplitAxis(e,t,i){let n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);let r=this._toBBox,s=h(e,0,t,r),o=h(e,i-t,i,r),a=p(s)+p(o);for(let n=t;n<i-t;n++){let t=e.children[n];d(s,e.leaf?r(t):t),a+=p(s)}for(let n=i-t-1;n>=t;n--){let t=e.children[n];d(o,e.leaf?r(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){let i=e.data[t];if(0===i.children.length)if(t>0){let r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(v.clear();i;){if(!0===i.leaf)for(let e of i.children)t((0,r.z)(e));else v.pushArray(i.children);i=v.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,n,r){r||=new T([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],d(r,e.leaf?n(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function M(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,n,r){let s=[t,i];for(;s.length;){let t=s.pop(),i=s.pop();if(t-i<=n)continue;let a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const x=new s.A,v=new s.A,S=new s.A,I=new s.A({deallocator:void 0});class F{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class w extends F{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class T extends w{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends w{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,i){i.d(t,{Qf:()=>l,Qh:()=>o,lM:()=>s,ro:()=>u,rq:()=>h});var n=i(44208),r=i(34275);function s(e){if(!e)return 0;let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let i=c;for(let n=0;n<t;n++)i+=a(e[n]);return i}(e);let t=d;for(let i in e)e.hasOwnProperty(i)&&(t+=a(e[i]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):d;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,t):0:0}function h(e,t){return c+e.length*t}const d=32,c=16,m=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,f=145;i.d(t,["JY",0,m])},36708(e,t,i){i.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>u});var n=i(37955),r=i(36563),s=i(97768),o=i(17676),a=i(14012);function l(e,t,i={}){return h(e,t,i,m)}function u(e,t,i={}){return h(e,t,i,f)}function h(e,t,i={},n){let r=null,o=i.once?(e,i)=>{n(e)&&((0,s.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){let t=e();o(t,t)}return r}function d(e,t,i,o={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,s.xt)(h),i(e)}let m=l(e,(e,i)=>{d(),(0,n.wb)(e)&&(a=e,u=(0,n.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,r.hA)(()=>{m.remove(),d()}),h}function c(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());let n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((n,s)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),n(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,i){i.d(t,{v:()=>a});var n=i(4718),r=i(62788),s=i(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},88930(e,t,i){i.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>d});var n=i(97770),r=(i(98623),i(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,s="system"){if("unknown"===i)return e;let o=new r.oh((0,n.wj)(s)),a=r.c9.fromJSDate(e,{zone:o}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){let n=e.getTime(),r=d(t,i,"milliseconds");return new Date(n+r)}function u(e,t,i="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*o.hours+Number(n)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function d(e,t,i){return 0===e?0:e*o[t]/o[i]}},48526(e,t,i){i.d(t,{A:()=>y});var n,r=i(32198),s=i(4576),o=i(4718),a=i(91429),l=i(5443),u=i(91075),h=i(86738),d=i(16930),c=i(90634),m=i(47610),f=i(56993),p=i(43937);let y=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=d.A.WGS84,{...e,hasM:i,hasZ:n,points:t,spatialReference:r}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:r})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,i=e.spatialReference;return!(null!=t!=(null!=i)||null!=t&&null!=i&&!t.equals(i))&&(0,s.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=t[2],n=3),this.hasM&&(i.m=t[n]),new h.A(i)}removePoint(e){if(!this._validateInputs(e))return null;let[t,i,n,r]=this.points.splice(e,1)[0],s=new h.A({x:t,y:i,z:n,m:r,spatialReference:this.spatialReference});return this.notifyChange("points"),s}setPoint(e,t){return this._validateInputs(e)&&((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,r.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,i){i.d(t,{A:()=>f});var n,r=i(32198),s=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),d=i(90634),c=i(56993),m=i(43937);let f=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:n,spatialReference:r}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=h.A.WGS84,{...e,hasM:i,hasZ:n,paths:t,spatialReference:r}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,i=e.length;t<i;t++)n[t]=e[t].toArray();t[i]=n}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let i=this.paths[e][t],n=this.hasZ,r=this.hasM;return n&&!r?new u.A({x:i[0],y:i[1],z:i[2],spatialReference:this.spatialReference}):r&&!n?new u.A({x:i[0],y:i[1],m:i[2],spatialReference:this.spatialReference}):n&&r?new u.A({x:i[0],y:i[1],z:i[2],m:i[3],spatialReference:this.spatialReference}):new u.A({x:i[0],y:i[1],spatialReference:this.spatialReference})}insertPoint(e,t,i){return this._validateInputs(e,t,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],i=this.spatialReference,n=t.map(e=>new u.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:i}));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[i,n,r,s]=this.paths[e].splice(t,1)[0],o=new u.A({x:i,y:n,z:r,m:s,spatialReference:this.spatialReference});return this.notifyChange("paths"),o}setPoint(e,t,i){return this._validateInputs(e,t)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths")),this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(i&&(t<0||t>n.length)||!i&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,r.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,r.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,i){i.d(t,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function o(e){let t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>T,C:()=>o,DC:()=>c,Ej:()=>M,Ie:()=>F,Jt:()=>w,Lu:()=>x,Ne:()=>v,RF:()=>d,TF:()=>g,VL:()=>f,aI:()=>z,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>I,iT:()=>m,is:()=>A,pg:()=>b,uJ:()=>y,vI:()=>S,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>p}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(e=R){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function a(e,t,i,n,r,o,a=s()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=r,a[5]=o,a}function l(e,t=s()){return function(e,t,i,n=s()){return I(n,B),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){let[i,n,s,o,a,l]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=a,t[8]=s,t[9]=i,t[10]=a,t[11]=l,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,i,n]){!function(e,t,i,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],n)}(e,t,i,n)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){let t=f(e),i=y(e),n=p(e);return t*t+i*i+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function M(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function x(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function S(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function F(e){return e?I(e,B):s(B)}function w(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=-1/0,e[3]=n,e[4]=r,e[5]=1/0,e}function A(e){return 6===e.length}function z(e,t,i){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const B=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];s(),i.d(t,["qv",0,B,"v_",0,R])},46329(e,t,i){i.d(t,{y:()=>d});var n=i(49186),r=i(4305),s=i(513),o=i(50954),a=i(52006),l=i(49663),u=i(46068),h=i(59803);function d(e,t,i){if((0,a.Xq)(t))return(0,h.T)(e,t,i);if((0,a.n1)(t)){let s=(0,r.m_)(e,t,i)[0];if(null==s)throw new n.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return s}if((0,a.aO)(t)){let n=(0,o.pM)(e,t);return(0,s.fM)(n,i)}if((0,a.DA)(t)){let n=(0,l.io)(e,t);return(0,s.fM)(n,i)}let d=(0,u.SW)(e,t);return(0,u.pb)(d,i)}},60408(e,t,i){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>r,W0:()=>d,ZC:()=>n,fT:()=>s,uW:()=>l})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},97770(e,t,i){i.d(t,{Ey:()=>B,F8:()=>z,J2:()=>F,Yq:()=>T,_m:()=>w,iS:()=>A,wj:()=>R});var n=i(66552),r=i(73444),s=i(98623),o=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},M={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...g},"short-date-long-time":{...h,...p},"short-date-long-time-24":{...h,..._},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...g},"short-date-le-long-time":{...h,...p},"short-date-le-long-time-24":{...h,..._},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...g},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...f},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function v(){let e=(0,r.lR)();return(e&&x[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let S=new WeakMap;const I=M["short-date-short-time"];function F(e){return M[e]}function w(e){let{dateStyle:t,timeStyle:i,hour12:n,year:r,month:s}=e,o={};return t?o.dateStyle=t:r&&(o.year=r,o.month=s||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===n?void 0:"always"===n),o}function T(e,t=I){return function(e){let t=S.get(e);if(!t){let i=v(),n=R(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),S.set(e,t)}return t}(t).format(e)}function A(e,t=I){return T(new Date(e),{...t,...u,...l})}function z(e,t=I){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function B(e,t=I){let i=o.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return T(i.toJSDate(),t);let n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:v()})}function R(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{S=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>y,QC:()=>d,lR:()=>h,oQ:()=>f});var n=i(36563);let r;i(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,n.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,n.hA)(()=>p.splice(p.indexOf(e),1))}function g(){let e=a();r!==e&&([...p].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,i){i.d(t,{A:()=>m});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),d=i(37730);const c=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:e}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let i of e){let e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let i,n=this._featuresById.get(t);n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),e.geometry?.coords?.length?(i=(0,u.jQ)(i??(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0):(this._boundsStore.set(t,null),this._featuresById.set(t,e))}_upsert(e){let t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=e;for(let e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,i){var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};i.d(t,["T",0,r])},33032(e,t,i){function n(e,t){let i=0;for(let n of t){let t=n.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>n})},29432(e,t,i){i.r(t),i.d(t,{default:()=>v});var n=i(4576),r=i(49186),s=i(60408),o=i(21325),a=i(90708),l=i(33032),u=i(83221),h=i(31464),d=i(75752),c=i(64714),m=i(82832),f=i(95466),p=i(98453),y=i(30524);i(98623);const g=o.KK,_={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:o.KK};function M(e){return(0,s.fT)(e)?null!=e.z:!!e.hasZ}function b(e){return(0,s.fT)(e)?null!=e.m:!!e.hasM}function x(e,t){let i,n=[];if("unique-id-composite"===t.type){let r=[];for(let i of t.fieldNames)e.attributes[i]?r.push(e.attributes[i]):n.push(i);i=0===n.length?JSON.stringify(r):null}else i=e.attributes[t.fieldName],i||n.push(t.fieldName);return{objectId:i,missingFields:n}}class v{constructor(){this._uniqueIdInfo=null,this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){let t=[],{features:i}=e,n=this._inferLayerProperties(i,e.fields),s=e.fields||[],o=null==e.hasM?!!n.hasM:e.hasM,a=null==e.hasZ?!!n.hasZ:e.hasZ,M=!e.spatialReference&&!n.spatialReference,b=M?g:e.spatialReference||n.spatialReference,x=M?_:null,v=e.geometryType||n.geometryType,S=!v,I=e.uniqueIdInfo,F=e.objectIdField??n.objectIdField,w=e.timeInfo,T=new f.A(s);if(!S&&(M&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!v))throw new r.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(I){let e=new Set(s.map(({name:e})=>e));if(!I.fields.every(t=>e.has(t))){let t=I.fields.filter(t=>!e.has(t));throw new r.A("feature-layer:missing-property","UniqueIdFields not set and couldn't be found in the provided fields. Fields: "+t+" are mssing.")}F=null}else if(!F)throw new r.A("feature-layer:missing-property","objectIdField not set and uniqueIdInfo not provided.");if(n.objectIdField&&F!==n.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${F}" doesn't match the field name "${n.objectIdField}", found in the provided fields`}),F=n.objectIdField),F&&!n.objectIdField){let e=T.get(F);e?(F=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):s.unshift({alias:F,name:F,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(let e of s){if(e.name??=e.alias,e.alias??=e.name,!e.name)throw new r.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===F&&(e.type="esriFieldTypeOID"),!p.m.jsonValues.includes(e.type))throw new r.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});e.length??=(0,y._b)(e)}let A={};for(let e of s)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){let t=(0,y.lD)(e);void 0!==t&&(A[e.name]=t)}if(w){if(w.startTimeField){let e=T.get(w.startTimeField);e?(w.startTimeField=e.name,e.type="esriFieldTypeDate"):w.startTimeField=null}if(w.endTimeField){let e=T.get(w.endTimeField);e?(w.endTimeField=e.name,e.type="esriFieldTypeDate"):w.endTimeField=null}if(w.trackIdField){let e=T.get(w.trackIdField);e?w.trackIdField=e.name:(w.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:w}}))}!w.startTimeField&&!w.endTimeField&&(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:w}}),w=null)}let z=T.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??"UTC"}:null;this._createDefaultAttributes=(0,c.Vx)(A,F),this._uniqueIdInfo=e.uniqueIdInfo??void 0;let B={warnings:t,featureErrors:[],layerDefinition:{...S?m.Xn:m.CI,drawingInfo:(0,c.F0)(v),templates:(0,c.e2)(A),extent:x,geometryType:v,objectIdField:F,fields:s,hasZ:a,hasM:o,timeInfo:w,dateFieldsTimeReference:z,uniqueIdInfo:this._uniqueIdInfo??void 0},assignedObjectIds:{}},R=this._uniqueIdInfo?.OIDFieldContainsHashValue?"simple"===this._uniqueIdInfo.type?{type:"unique-id-simple",fieldName:this._uniqueIdInfo.fields[0]}:{type:"unique-id-composite",fieldNames:this._uniqueIdInfo.fields}:{type:"object-id",fieldName:F};if(this._queryEngine=new d.do({fieldsIndex:f.A.fromLayerJSON({fields:s,timeInfo:w,dateFieldsTimeReference:z}),geometryType:v,hasM:o,hasZ:a,featureIdInfo:R,spatialReference:b,featureStore:new u.A({geometryType:v,hasM:o,hasZ:a}),timeInfo:w}),!i?.length)return this._nextObjectId=1,B;if(F){let e=(0,l.H)(F,i);this._nextObjectId=e+1}return await(0,h.Nk)(i,b),this._loadInitialFeatures(B,i)}async applyEdits(e){let{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([(0,m.$1)(t,i),(0,h.Nk)(e.adds,t),(0,h.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let i,n,r=null,o=null,a=null;for(let t of e){let e=t.geometry;if(null!=e&&(r||=(0,s.$B)(e),o||=e.spatialReference,i??=M(e),n??=b(e),r&&o&&null!=i&&null!=n))break}if(t&&t.length){let e=null;t.some(t=>{let i="esriFieldTypeOID"===t.type,n=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||n})&&(a=e.name)}return{geometryType:r,spatialReference:o,objectIdField:a,hasM:n,hasZ:i}}async _loadInitialFeatures(e,t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:o,featureStore:l,fieldsIndex:u,featureIdInfo:d}=this._queryEngine,c=[];for(let n of t){if(null!=n.uid&&(e.assignedObjectIds[n.uid]=-1),n.geometry&&i!==(0,s.$B)(n.geometry)){e.featureErrors.push((0,m.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),r=(0,m.MB)(u,t,n.attributes,!0);r?e.featureErrors.push(r):(this._assignObjectId(t,n.attributes,!0),n.attributes=t,n.uid&&(e.assignedObjectIds[n.uid]=x(n,d).objectId),null!=n.geometry&&(n.geometry=(0,h.Cv)(n.geometry,n.geometry.spatialReference,o)),c.push(n))}l.addMany((0,a.Di)([],c,i,r,n,d));let{fullExtent:f,timeExtent:p}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=f,p){let{start:t,end:i}=p;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}async _applyEdits(e){let{adds:t,updates:i,deletes:n}=e,r={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(r,t),i?.length&&this._applyUpdateEdits(r,i),n?.length){for(let e of n)r.deleteResults.push((0,m.bP)(e));this._queryEngine.featureStore.removeManyById(n)}let{fullExtent:s,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:s,timeExtent:o,featureEditResults:r}}_applyAddEdits(e,t){let{addResults:i,updateResults:r}=e,{geometryType:o,hasM:l,hasZ:u,spatialReference:d,featureStore:c,featureIdInfo:f,fieldsIndex:p}=this._queryEngine,y=[],g=new Map;for(let a of t){if(a.geometry&&o!==(0,s.$B)(a.geometry)){i.push((0,m.Yx)("Incorrect geometry type."));continue}let t=this._createDefaultAttributes(),l=(0,m.MB)(p,t,a.attributes);if(l){i.push(l);continue}this._assignObjectId(t,a.attributes),a.attributes=t;let{objectId:u,missingFields:_}=x(a,f);if(u){if(null!=a.uid&&(e.uidToObjectId[a.uid]=u),null!=a.geometry){let e=a.geometry.spatialReference??d;a.geometry=(0,h.Cv)((0,m.CR)(a.geometry,e),e,d)}y.push(a);let t=(0,m.bP)(u);g.has(u)?(0,n.TF)(y,g.get(u)):c.has(u)?r.push(t):i.push(t),g.set(u,a)}else i.push((0,m.Yx)(`Missing unique id field value for fields: ${_.join()}`))}c.addMany((0,a.Di)([],y,o,u,l,f))}_applyUpdateEdits({updateResults:e},t){let{geometryType:i,hasM:n,hasZ:r,spatialReference:o,featureStore:l,fieldsIndex:u,featureIdInfo:d}=this._queryEngine;for(let c of t){let{attributes:t,geometry:f}=c,{objectId:p,missingFields:y}=x(c,d);if(null==p){let t="unique-id-composite"===d.type?y:d.fieldName;e.push((0,m.Yx)(`Identifier fields: ${t} missing`));continue}if(!l.has(p)){e.push((0,m.Yx)(`Feature with object id ${p} missing`));continue}let g=(0,a.oN)(l.getFeature(p),i,r,n);if(null!=f){if(i!==(0,s.$B)(f)){e.push((0,m.Yx)("Incorrect geometry type."));continue}let t=f.spatialReference??o;g.geometry=(0,h.Cv)((0,m.CR)(f,t),t,o)}if(t){let i=(0,m.MB)(u,g.attributes,t);if(i){e.push(i);continue}}l.add((0,a.E2)(g,i,r,n,d)),e.push((0,m.bP)(p))}}_assignObjectId(e,t,i=!1){if("object-id"===this._queryEngine.featureIdInfo.type){let n=this._queryEngine.featureIdInfo.fieldName;e[n]=i&&t&&isFinite(t[n])?t[n]:this._nextObjectId++}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>c,f:()=>p});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let i="";t&&(i+=`this${d(t)} = null;`);for(let t in e)i+=`this${d(t)} = ${JSON.stringify(e[t])};`;let n=Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}const m={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},f={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function p(e,t,i=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i?m:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i?f:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832(e,t,i){i.d(t,{$1:()=>_,CR:()=>g,MB:()=>f,Yx:()=>h,bP:()=>c});var n=i(67482),r=i(18370),s=i(60408),o=i(21325),a=i(30524);class l{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new l(e)}}function h(e){return new u(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new d(e)}const m=new Set;function f(e,t,i,n=!1){m.clear();for(let r in i){let s=e.get(r);if(!s)continue;let o=p(s,i[r]);if(m.add(s.name),s&&(n||s.editable)){let e=(0,a.CJ)(s,o);if(e)return h((0,a.uo)(e,s,o));t[s.name]=o}}for(let t of e.requiredFields??[])if(!m.has(t.name))return h(`missing required field "${t.name}"`);return null}function p(e,t){let i=t;return(0,a.WA)(e)&&"string"==typeof t?i=(0,a.XT)(t):(0,a.yM)(e)&&null!=t&&"string"!=typeof t?i=String(t):(0,a.vE)(e)&&"string"==typeof t&&(i=(0,n._)(t)),(0,a.WX)(i)}const y=(0,r.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637)));function g(e,t){if(!(0,s.Bi)(e)&&!(0,s.Rg)(e)||!(0,o.fn)(t))return e;let i=y.module;if(null==i)throw TypeError("simplify operator not loaded");return i.simplifyExecute({...e,spatialReference:t})??e}async function _(e,t){(0,o.fn)(e)&&("esriGeometryPolygon"===t||"esriGeometryPolyline"===t)&&await y.getImportPromise()}const M={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]},b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentsCountOnly:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryAttachmentWithTypeWildcard:!1,supportsQueryBins:!0,supportsQueryPivot:!1,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:["EnvelopeAggregate","CentroidAggregate","ConvexHullAggregate"],supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:M},x={...b,supportsCoordinatesQuantization:!1,supportsReturningQueryGeometry:!1,advancedQueryCapabilities:{...b.advancedQueryCapabilities,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:[],supportsReturningGeometryCentroid:!1,supportsQueryWithDistance:!1,supportsReturningQueryExtent:!1,supportsDisjointSpatialRel:!1},queryBinsCapabilities:{...M,supportedStatisticTypes:M.supportedStatisticTypes.filter(e=>"EnvelopeAggregate"!==e&&"CentroidAggregate"!==e&&"ConvexHullAggregate"!==e)}};i.d(t,["CI",0,b,"Xn",0,x])},95466(e,t,i){i.d(t,{A:()=>u});var n=i(49186),r=i(53966),s=i(12195),o=i(30524),a=i(98623),l=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let i=[];for(let e of this.fields){let t=e?.name,n=(0,o.GZ)(t);if(t&&n){let r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",u=(n?"endField"in n?n.endField:n.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):d??"UTC":null,m=n?function(e){return"timeZone"in e}(n)?n.timeZone??d:n.timeReference?(0,l.ZS)(n.timeReference):d:null,f=new Map([[(0,o.NF)(r?.creationDateField??""),c],[(0,o.NF)(r?.editDateField??""),c],[(0,o.NF)(s),m],[(0,o.NF)(u),m]]);for(let{name:n,type:r}of e.fields)if(h.has(r))t.set(n,a.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,a.L);else{let e=f.get((0,o.NF)(n??""))??d;t.set(n,e)}return t}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},93470(e,t,i){const n=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};i.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,4506,8747],{46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){let[r,n]=e.split(".",2),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!n?.match||!s.test(n)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new o(parseInt(r,10),parseInt(n,10),t)}}},9352(e,t,r){r.r(t),r.d(t,{default:()=>H});var i=r(32198),o=r(49186),n=r(93637),s=r(91429),l=r(16930),a=r(41910),p=r(55156),u=r(60950),d=r(89808),c=r(99959);const y=Symbol("isOrientedImageryGraphicOrigin");var g;class f extends c.A{get[(g=y,u.ym)](){return this.layer}get[p.e](){return this.layer}get[d.Q](){return this.layer}get[a.e7](){return this.layer}constructor(e){super(),this[g]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var m=r(18589),h=r(66552),v=(r(86211),r(28735),r(69540)),w=r(25482),C=r(56372),b=r(21325);let M=class extends C.A{set horizontalWKID(e){e?(0,b.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,b.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"focalLength",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"horizontalWKID",null),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"verticalWKID",null),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"x",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"y",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"z",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],M.prototype,"type",void 0),M=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientation")],M);const x=M;let S=class extends((0,v.OU)((0,w.T)(x))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:l,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],S.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],S.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"focalLength",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],S.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],S.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],S.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"heading",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"pitch",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"roll",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"x",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"y",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],S.prototype,"z",void 0),S=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],S);const j=S;let Z=class extends((0,v.OU)((0,w.T)(x))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${s.join("|")}`}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],Z.prototype,"latitude",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],Z.prototype,"longitude",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],Z.prototype,"ellipsoidRadius",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],Z.prototype,"squaredEccentricity",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"properties",void 0),Z=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],Z);const P=Z;let O=class extends((0,v.OU)((0,w.T)(x))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:l,kappa:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e))),g.map(e=>isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],O.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],O.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"focalLength",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],O.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],O.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],O.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"omega",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"phi",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"kappa",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"x",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"y",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],O.prototype,"z",void 0),O=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],O);const I=O;let N=class extends((0,v.OU)((0,w.T)(x))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:l,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:c,tangentialDistortionCoefficients:y}=this,g=[e,t,r,i,o,n,s,l,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],N.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"focalLength",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"yaw",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"pitch",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"roll",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"x",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"y",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"z",void 0),N=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],N);const E=N,L=new Map;L.set("2",{desc:"Using Omega Phi Kappa",constructor:I}),L.set("1",{desc:"Using Heading, Pitch and Roll",constructor:j}),L.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:E}),L.set("4",{desc:"Using Local Tangent Plane",constructor:P});let A=class extends((0,v.OU)(w.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],A.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"url",void 0),A=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],A);let D=class extends((0,v.OU)(w.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],D.prototype,"constantElevation",void 0),D=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],D);const T=new h.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),F=new h.J({Feet:"feet",Meter:"meter"}),R=new h.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),z=new Map;z.set("1",function(e){let[t,r,i,o,n,s,l,a,p,u,d,c,y,g,f,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:l,roll:a,...K([p,u,d,c,y,g],[m,h],[v,w,C],[b,M],f)}}),z.set("3",function(e){let[t,r,i,o,n,s,l,a,p,u,d,c,y,g,f,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:l,roll:a,...K([p,u,d,c,y,g],[m,h],[v,w,C],[b,M],f)}}),z.set("2",function(e){let[t,r,i,o,n,s,l,a,p,u,d,c,y,g,f,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:l,kappa:a,...K([p,u,d,c,y,g],[m,h],[v,w,C],[b,M],f)}}),z.set("4",function(e){let[t,r,i,o,n,...s]=e.slice(1),l=z.get(n),a=L.get(n)?.constructor;return l&&a?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new a(l([n,"",...s]))}:null});const $=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function K(e,t,r,i,o){let n=$(e),s=$(t),l=$(r),a=$(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2===s?.length?s:[0,0],radialDistortionCoefficients:3===l?.length?l:[0,0,0],tangentialDistortionCoefficients:2===a?.length?a:[0,0]}}var _=r(20437),q=r(43440),G=r(79677);const U=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),B=new Set(["elevationSource"]),W=(e,t)=>!U.has(t)&&e;function V(e,t,r,i){let{name:o,write:n,read:s}=((e,t,r)=>{let i=`orientedImageryProperties.${e}`,o={allowNull:B.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),l={name:o,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:W(n,e),read:W(s,e)},"web-map":{name:o,write:n,read:s}}};return!i||!l.origins||(l.type=i,l.origins["web-map"].type=i,l.origins["web-scene"].type=i),l}let J=class extends m.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new f(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){let{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return function(e,t,r){return e&&((e=>null!=e&&"number"==typeof e.constantElevation)(e)?new D(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new A({...e,url:i})):null}(e,t,r))}(e,t,r)}get effectiveSequenceOrderField(){let{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return function(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let o=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return o?[{fieldName:o.name,sortOrder:"asc"}]:null}(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,i.Cg)([(0,s.MZ)({type:q.A,json:{write:!1,read:!1}})],J.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("cameraHeading")})],J.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("cameraHeight")})],J.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("cameraPitch")})],J.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("cameraRoll")})],J.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("coveragePercent")})],J.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("demPathPrefix")})],J.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("demPathSuffix")})],J.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("depthImagePathPrefix")})],J.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("depthImagePathSuffix")})],J.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:Object,json:V("elevationSource")})],J.prototype,"elevationSource",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],J.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],J.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("farDistance")})],J.prototype,"farDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:[_.A]})],J.prototype,"fields",void 0),(0,i.Cg)([(0,s.MZ)()],J.prototype,"geometryType",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],J.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("horizontalFieldOfView")})],J.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("horizontalMeasurementUnit")})],J.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...V("imageGeometryField"),default:"ImageGeometry"}})],J.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("imagePathPrefix")})],J.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("imagePathSuffix")})],J.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...V("imageReferenceField"),default:"OIObjectID"}})],J.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("imageRotation")})],J.prototype,"imageRotation",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("maximumDistance")})],J.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("nearDistance")})],J.prototype,"nearDistance",void 0),(0,i.Cg)([(0,s.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],J.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)({json:{...V("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>function(e){if("string"!=typeof e)return null;let t=e.split(";");return t.some(e=>!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e.trim()))?null:function(e){return function(e){if(!Array.isArray(e)||e.length<=5)return!1;for(let t of e)if("number"!=typeof t||!Number.isFinite(t)||t<0)return!1;return!0}(e)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(e):null}(t.map(e=>Number(e.trim())))}(e)??[0,0,0,0,0,0,0,0],String)}})],J.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,s.MZ)({json:{...V("orientedImageryType",R.write,R.read,R.jsonValues.slice(1))}})],J.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...V("referenceIDField"),default:"OBJECTID"}})],J.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{...V("sequenceOrderField"),default:"SequenceOrder"}})],J.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,s.MZ)({json:{...V("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],J.prototype,"sequenceOrderFields",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A})],J.prototype,"spatialReference",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],J.prototype,"subtypeField",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],J.prototype,"subtypes",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],J.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:T.apiValues,json:{...V("timeIntervalUnit",T.write,T.read,T.jsonValues)}})],J.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("verticalFieldOfView")})],J.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,s.MZ)({type:F.apiValues,json:{...V("verticalMeasurementUnit",F.write,F.read,F.jsonValues)}})],J.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:V("verticalSearchRange")})],J.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("videoPathPrefix")})],J.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:V("videoPathSuffix")})],J.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],J.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],J.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,s.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],J.prototype,"imageAccessPaths",void 0),(0,i.Cg)([(0,s.MZ)({type:G.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],J.prototype,"visibilityTimeExtent",void 0),J=(0,i.Cg)([(0,s.$K)("esri.layers.OrientedImageryLayer")],J);const H=J},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(93637),n=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){var i,o,n=r(32198),s=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),c=r(73913),y=r(32730),g=r(77548),f=r(59868),m=r(73838),h=r(33910),v=r(36005),w=r(43937);const C=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function b(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends l.o{static{i=y.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:b}}}}})],S.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:b}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,n.Cg)([(0,w.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,w.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:C.apiValues,json:{type:C.jsonValues,read:C.read,write:C.write}})],S.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,n.Cg)([(0,w.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,n.Cg)([(0,w.K)("minScale")],S.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],S.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],S.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:h.em,json:{types:h.em,origins:{"portal-item":{types:h.em,read:{reader:(0,d.C)({types:h.em})},default:null},"web-scene":{types:h.Rv,read:{reader:(0,d.C)({types:h.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],S.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],S);const j=S;r.d(t,["A",0,j])},73913(e,t,r){var i,o=r(32198),n=r(25482),s=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u);const d=u;r.d(t,["A",0,d])},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){let n=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),n=r(46499);const s=()=>o.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,n=u[t];if(!o.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!n)return s().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{let i=n[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=o.clone();l.labelPlacement=i,r.push(l)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),o=r(53966),n=r(46140),s=r(95466),l=r(55674);class a{static async from(e,t,r){let s=e.dictionary_version?n.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,l.xR)(e.expression,null,d);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!s||!s.greaterEqual(4,0);g&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});let f=new p(r,g);return new a(g,u,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class p extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),n=r(52106),s=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),c=r(65864),y=r(50498),g=r(20437),f=r(36005),m=r(43937);const h=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void h.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[n,s]}=r,l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,l,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let n=e[t],s=r.fromJSON(n),l=n.geometry?.spatialReference;null!=s.geometry&&!l&&(s.geometry.spatialReference=i);let a=n.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o,n=[];for(let s=0,l=e.length;s<l;s++){let l=e[s];if(s>0){let e=t(l[0]),s=r(l[1]);(e!==i||s!==o)&&(n.push([e-i,s-o]),i=e,o=s)}else i=t(l[0]),o=r(l[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,s,l=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=l.length;e<i;e++){let i=l[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(n+=o[0],s+=o[1]):(n=o[0],s=o[1]),o[0]=t(n),o[1]=r(s)}}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let n,s,l=e.points;for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(n+=i[0],s+=i[1]):(n=i[0],s=i[1]),i[0]=t(n),i[1]=r(s)}if(i&&o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=i(t[2])}else if(o)for(let e=0,t=l.length;e<t;e++){let t=l[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>p,RZ:()=>a});var i=r(39516);const o="=",n=">=",s="<=";function l(e,t,r,o){let n=o.get(e)?.type,s=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:n,timeZone:s})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:p,endField:u}=t,{start:d,end:c}=e;if(!d&&!c||!p&&!u)return;let y=p??u,g=u??p;if(y&&g){if(d&&c){if(d.getTime()===c.getTime())return(0,i.mA)(a,l(y,o,d,r));if(!p||!u){let e=l(y,n,d,r),t=l(y,s,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=l(p,n,d,r),t=l(u,s,c,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,l(y,n,d,r));if(c)return(0,i.mA)(a,l(g,s,c,r))}}function p(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3309],{93309(e,t,i){i.r(t),i.d(t,{default:()=>q});var a=i(32198),n=i(67996),o=i(7762),r=i(51447),s=i(49186),l=i(53966),h=i(91869),d=i(25728),p=i(17676),u=i(36708),y=i(91429),g=i(35666),c=i(5443),m=i(86738),f=i(82799),L=i(12359),C=i(4146),M=i(90708),w=i(15375);const b={MULTIPLIER:"multiplier",ABSOLUTE:"absolute-value"};var k=i(24137),T=i(62796),v=i(40736),E=i(69860),N=i(99916),D=i(63074),S=i(34287),x=i(25036),I=i(10873),A=i(8460),_=i(69540),R=i(25482),Z=i(78888),B=i(69647),z=i(93223);let O=class extends((0,_.OU)(R.o)){constructor(e){super(e),this.durationLineWidth=5,this.entityPositionAtDurationRatio=1,this.eventsTicksVisualization="start-and-end",this.lineSeparationMultiplier=1,this.moveFirstBends=!0,this.secondBendRatio=.3,this.separateTimeOverlaps=!0,this.separateTimelineOverlaps=!0,this.separatedLineShapeRatio=0,this.showDurationLineForNonZeroDurationEntityEvents=!1,this.showNonZeroDurationIntervalBounds=!1,this.spaceSeparatedLinesEvenly=!1,this.timeBannerUTCOffsetInMinutes=0,this.timeDirection="right",this.useBezierCurves=!1}};(0,a.Cg)([(0,y.MZ)({type:Z.jz,range:{min:1,max:10},json:{write:!0}})],O.prototype,"durationLineWidth",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],O.prototype,"entityPositionAtDurationRatio",void 0),(0,a.Cg)([(0,z.e)(B.SJ)],O.prototype,"eventsTicksVisualization",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0},json:{write:!0}})],O.prototype,"lineSeparationMultiplier",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"moveFirstBends",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],O.prototype,"secondBendRatio",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"separateTimeOverlaps",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"separateTimelineOverlaps",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],O.prototype,"separatedLineShapeRatio",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"showDurationLineForNonZeroDurationEntityEvents",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"showNonZeroDurationIntervalBounds",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"spaceSeparatedLinesEvenly",void 0),(0,a.Cg)([(0,y.MZ)({type:Z.jz,json:{write:!0}})],O.prototype,"timeBannerUTCOffsetInMinutes",void 0),(0,a.Cg)([(0,y.MZ)({type:["bottom","left","right","top"],json:{write:!0}})],O.prototype,"timeDirection",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"useBezierCurves",void 0),O=(0,a.Cg)([(0,y.$K)("esri.linkChart.ChronologicalLayoutSettings")],O);const P=O;let U=class extends((0,_.OU)(R.o)){constructor(e){super(e),this.absoluteIdealEdgeLength=1,this.autoRepulsionRadius=!0,this.computationBudgetTime=2,this.idealEdgeLengthType="multiplier",this.multiplicativeIdealEdgeLength=1,this.repulsionRadiusMultiplier=1}};(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:360},json:{write:!0}})],U.prototype,"absoluteIdealEdgeLength",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],U.prototype,"autoRepulsionRadius",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,json:{write:!1}})],U.prototype,"computationBudgetTime",void 0),(0,a.Cg)([(0,z.e)(B.lg)],U.prototype,"idealEdgeLengthType",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:5},json:{write:!0}})],U.prototype,"multiplicativeIdealEdgeLength",void 0),(0,a.Cg)([(0,y.MZ)({type:Number,range:{min:1,max:99},json:{write:!0}})],U.prototype,"repulsionRadiusMultiplier",void 0),U=(0,a.Cg)([(0,y.$K)("esri.linkChart.OrganicLayoutSettings")],U);const j=U;let F=class extends((0,_.OU)(R.o)){constructor(e){super(e),this.rootEntities=[]}};(0,a.Cg)([(0,y.MZ)({type:[Object],json:{write:!0}})],F.prototype,"rootEntities",void 0),F=(0,a.Cg)([(0,y.$K)("esri.linkChart.RootedLayoutSettings")],F);const G=F;let H=class extends((0,_.OU)(R.o)){constructor(e){super(e),this.chronologicalLayoutSettings=null,this.organicLayoutSettings=null,this.rootedLayoutSettings=null}};(0,a.Cg)([(0,y.MZ)({type:P,json:{write:!0}})],H.prototype,"chronologicalLayoutSettings",void 0),(0,a.Cg)([(0,y.MZ)({type:j,json:{write:!0}})],H.prototype,"organicLayoutSettings",void 0),(0,a.Cg)([(0,y.MZ)({type:G,json:{write:!0}})],H.prototype,"rootedLayoutSettings",void 0),H=(0,a.Cg)([(0,y.$K)("esri.linkChart.LayoutSettings")],H);const $=H;var K=i(54628),Q=i(53902),V=i(56400);let W=class extends((0,S.q)((0,D.dM)((0,x.j)((0,d.M)(C.A))))){constructor(e){if(super(function(e){if(!e)return{};let{url:t,dataPreloadedInLocalCache:i,initializationLinkChartConfig:a}=e,{title:n}=e;return!n&&e?.url&&(n=(0,v.$L)(e.url)),{url:t,title:n,dataPreloadedInLocalCache:i,initializationLinkChartConfig:a}}(e)),this.url=null,this.dataPreloadedInLocalCache=!1,this.initializationLinkChartConfig=null,this.membershipModified=!0,this._currentLinkChartConfig={layoutMode:"organic-standard"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new(o.A.ofType(T.A)),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new c.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="LinkChartLayer",this.sublayerIdsCache=new Map,this.tables=new(o.A.ofType(T.A)),this.type="link-chart",this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1,this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e?.initializationInclusionModeDefinition,e?.dataPreloadedInLocalCache&&!e?.initializationInclusionModeDefinition)throw new s.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it");this.addHandles((0,u.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),u.OH))}_initializeLayerProperties(e){let t=new Set,i=[],a=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new s.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(i=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach((n,o)=>{let r=this._graphTypeLookup.get(o);r?"relationship"===r.type?t.has(o)||(t.add(o),a.push(r)):"entity"===r.type?t.has(o)||(t.add(o),i.push(r)):(l.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(o)):(l.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't in the data model and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(o))}):(i=e.knowledgeGraph.dataModel.entityTypes??[],a=e.knowledgeGraph.dataModel.relationshipTypes??[]);let n=new k.P({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=i,this.memberRelationshipTypes=a,this.dataManager=n}load(e){let t=async()=>{let e=[],t=[];this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,v.qN)(this),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(e=>{e.useAllData=!1}),await this._initializeDiagram(),this.layers.forEach(i=>{t.push(i.refreshCachedQueryEngine()),e.push(new Promise(e=>{i.on("layerview-create",()=>{e(null)})}))}),this.tables.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t)};return this.addResolvingPromise(new Promise(i=>{(0,Q.fetchKnowledgeGraph)(this.url).then(async a=>{(0,p.Te)(e),a.dataModel.entityTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)}),a.dataModel.relationshipTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)});let o=this.linkChart?.linkChartProperties;6===o?.originIdOf("entitiesUrl")&&(this.membershipModified=!1,(0,K.lV)([o.entitiesUrl??"",o.relationshipsUrl??""],this.linkChart?.portalItem?.itemUrl??"").then(e=>{this.linkChart?.linkChartProperties?.setCreationDatesForResources?.(e)},()=>{}),this._originalInclusionList=await n.XW.fetchAndConvertSerializedLinkChart({entitiesUrl:o?.entitiesUrl,relationshipsUrl:o?.relationshipsUrl},{signal:e?.signal}),this._alignLayersDataModelAndInclusionDefinition(a.dataModel),this.initializationLinkChartConfig={layoutSettings:o?.layoutSettings??void 0,layoutMode:(0,N.k5)(o.layoutType)}),this._initializeLayerProperties({knowledgeGraph:a,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}));let{edit:r,fullEdit:s,updateItem:l}=await(0,v.N1)(a.serviceDefinition.serviceItemId,this.url,e);if((0,p.Te)(e),this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",l),this.read({dateFieldsTimeReference:a.serviceDefinition.dateFieldsTimeReference},{origin:"service"}),this.dataPreloadedInLocalCache){let e=E.A.getInstance();for(let[t,i]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions??[])for(let a of i.members?.values()??[]){let i=e.readFromStoreById(`${t}__${a.id}`);i&&(0,h.tE)(this.dataManager.sublayerCaches,t,()=>new Map).set(a.id,i)}await t()}else{let i="geographic-organic-standard"===this.initializationLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,i,!0).then(async()=>{(0,p.Te)(e),await t()}))}i(null)}).catch(()=>{})})),Promise.resolve(this)}set initializationInclusionModeDefinition(e){"loaded"===this.loadStatus||"failed"===this.loadStatus?l.A.getLogger(this).error("#initializationInclusionModeDefinition","initializationInclusionModeDefinition cannot be changed after the layer is loaded."):this._set("initializationInclusionModeDefinition",e)}get linkChart(){return this.parent}get sublayerCapabilities(){return(0,v.hZ)(this.knowledgeGraph)}async addRecords(e,t){let i=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(i=await(0,N.aq)(e,this.dataManager.knowledgeGraph));let a=e.concat(i).filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id));a.length>0&&(this.membershipModified=!0),await this._handleNewRecords(a,t)}async createSublayerForNamedType(e){await this.load();let t=this._graphTypeLookup.get(e);if(!t)throw new s.A("knowledge-graph:missing-type","The specified type does not exist in the knowledge graph.");if(this.dataManager.sublayerCaches.has(e))throw new s.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,h.tE)(this.sublayerIdsCache,e,()=>new Set);let i=this._createSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.set(e,{useAllData:!1,members:new Map}),i.geometryType?this.layers.push(i):this.tables.push(i),await(0,v.qN)(this,[e]),this._refreshNamedTypes(),i}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:i=!1,overrideMembershipCheck:a=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1,overrideMembershipCheck:!1}){let n=[];for(let t of e)(a||!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id))&&n.push(t);if(t){let e=new Set,t=[];for(let t of n)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(let i of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(i);for(let i of e)if(this.dataManager.memberIdTypeLookup.has(i))for(let e of this.dataManager.memberIdTypeLookup.get(i))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:i,typeName:e});n=n.concat(t)}let o=this._currentLinkChartConfig.layoutSettings?.rootedLayoutSettings?.rootEntities;if(o?.length){let e=new Set(n.map(({id:e})=>e)),t=o.filter(({id:t})=>!e.has(t));if(t.length!==o.length){this._currentLinkChartConfig.layoutSettings.rootedLayoutSettings.rootEntities=t;let e=this.linkChart?.linkChartProperties;e?.layoutSettings?.rootedLayoutSettings&&(e.layoutSettings.rootedLayoutSettings.rootEntities=t)}}this.dataManager.removeFromLayer(n);for(let e of n)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);let r=i?void 0:this.getCurrentNodeLocations();await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,{layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedEntityLocations:r}),n.length>0&&(this.membershipModified=!0);let s=[];return this.layers.forEach(e=>{s.push(e.refreshCachedQueryEngine())}),await Promise.all(s),this._refreshNamedTypes(),n}async expand(e,t){let i=[];try{let a=await this.dataManager.getConnectedRecordIds(e,t?.relationshipTypeNames,t);i=a.filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)),await this._handleNewRecords(i,t),a.length>0&&(this.membershipModified=!0),(0,p.Te)(t?.signal)}catch(e){throw(0,p.zf)(e)&&i.length>0&&await this.removeRecords(i,{overrideMembershipCheck:!0}),e}return{records:i}}loadLayerAssumingLocalCache(){let e=[...this.memberRelationshipTypes,...this.memberEntityTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new o.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new o.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{let i=(0,h.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(({id:e,linkChartLocation:a})=>{if(i.add(e),a){let i="coords"in a&&"lengths"in a?a:(0,M.Ux)(a);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e,i):this.entityLinkChartDiagramLookup.set(e,i)}})})}async calculateLinkChartLayout(e="organic-standard",t){let i=[],a=[],n=[];this.dataManager.sublayerCaches.forEach((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach(e=>{i.push({typeName:t,feature:e})}):this.dataManager.relationshipTypeNames.has(t)&&e.forEach(e=>{a.push({typeName:t,feature:e})})}),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;let o,r=new Map,d=new Map,u=new Map,y=new Map,g=new Uint8Array(i.length),C=new Float64Array(i.length),b=new Float64Array(i.length),k=new Float64Array(i.length),T=new Float64Array(i.length),v=new Uint32Array(a.length),E=new Uint32Array(a.length),N=new Float64Array(a.length),D=new Float64Array(a.length),S=[],x=!1,I=new c.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),_="organic-standard",R=0,Z=0,B=A.i6.apply;switch(_="geographic-organic-standard"===e?"organic-standard":e,_){case"organic-standard":o=A.pM.apply;break;case"organic-community":o=A.Tu.apply;break;case"hierarchical-bottom-to-top":o=A.$C.apply;break;case"radial-root-centric":o=A.vJ.apply;break;case"tree-left-to-right":o=A.Xq.apply;break;default:o=A.Wg.apply}let z=!1,O=new Set(t?.layoutSettings?.rootedLayoutSettings?.rootEntities?.map(({id:e})=>e));i.forEach(({typeName:i,feature:a})=>{if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e&&t?.lockedEntityLocations?.has(a.attributes[w.dr])){"geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(i)?g[R]=2:g[R]=0;let n=t.lockedEntityLocations.get(a.attributes[w.dr]);C[R]=n.x,b[R]=n.y}else if("geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(i)){g[R]=2;let e=null,t=a.attributes[this.dataManager.geographicLookup.get(i).name];switch(this.dataManager.geographicLookup.get(i)?.geometryType){case"esriGeometryPoint":C[R]=t?.x,b[R]=t?.y;break;case"esriGeometryPolygon":{let i=t?(0,L.Ve)(t):null;e=i?m.A.fromJSON(i):null,null!=e?.x&&null!=e?.y?(C[R]=e.x,b[R]=e.y):g[R]=1;break}case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(C[R]=e.x,b[R]=e.y):g[R]=1;break;default:g[R]=1}(null==C[R]||null==b[R]||Number.isNaN(C[R])||Number.isNaN(b[R]))&&(g[R]=1,C[R]=0,b[R]=0)}else if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){!z&&t?.lockedEntityLocations?.has(a.attributes[w.dr])&&(z=!0);let e=t?.timeInfoByTypeName?.get(i),n=e?.startField,o=n&&e?.startField?a.attributes[n]:null;k[R]=o?new Date(o).getTime():NaN;let r=e?.endField,s=r&&e?.endField?a.attributes[r]:null;T[R]=s?new Date(s).getTime():NaN,C[R]=0,b[R]=0,g[R]=1}else g[R]=1,C[R]=0,b[R]=0;O.has(a.attributes[w.dr])&&(g[R]|=4),y.set(a.attributes[w.dr],R),S[R]={feature:a,typeName:i},R++}),z&&l.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let P=!1,U=new Map;a.forEach(i=>{let a=i.feature.attributes[w.Cz],o=i.feature.attributes[w.KQ],r=y.get(a),s=y.get(o),l=t?.timeInfoByTypeName?.get(i.typeName),h=t?.timeInfoByTypeName?l?.startField:null,d=h?i.feature.attributes[h]:null,p=l?.endField,u=p?i.feature.attributes[p]:null;if(void 0!==r&&void 0!==s){let t=a+"-"+o;("chronological-mono-timeline"===e||"chronological-multi-timeline"===e)&&(t=t+"-"+d+"-"+u);let l=U.get(t);l?.has(i.typeName)||(v[Z]=r,E[Z]=s,("chronological-mono-timeline"===e||"chronological-multi-timeline"===e)&&(N[Z]=d?new Date(d).getTime():NaN,D[Z]=u?new Date(u).getTime():NaN),void 0===l?U.set(t,new Map([[i.typeName,Z]])):l.set(i.typeName,Z),Z++),n.push(i)}else P=!0,this.relationshipLinkChartDiagramLookup.set(a,null)}),P&&l.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");let j=this._validateOrganicLayoutSettings(e,t?.layoutSettings?.organicLayoutSettings),F=this._convertValidatedOrganicSettingsToCalculationSettings(j);await(0,A.Hh)();let G=1,H=null;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let i;({status:G,links:H,graphics:i}=B(()=>t?.signal?.aborted??!1,g,C,b,k,T,v.subarray(0,Z),E.subarray(0,Z),N.subarray(0,Z),D.subarray(0,Z),"chronological-multi-timeline"===e,t?.layoutSettings?.chronologicalLayoutSettings)),0===G&&(this.chronologicalAuxiliaryGraphics=i)}else({status:G,links:H}=o(()=>t?.signal?.aborted??!1,g,C,b,v.subarray(0,Z),E.subarray(0,Z),F.computationBudgetTime,F.idealEdgeLengthMultiplier,F.repulsionRadiusMultiplier));if((0,p.Te)(t?.signal),1===G)throw new s.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");if(2===G)throw(0,p.NK)();for(let e=0;e<S.length;e++){if(b[e]>84.9999?b[e]=84.9999:b[e]<-84.9999&&(b[e]=-84.9999),C[e]>179.9999?C[e]=179.9999:C[e]<-179.9999&&(C[e]=-179.9999),S[e].feature.attributes[w.T1]=new m.A({x:C[e],y:b[e]}),r.has(S[e].typeName))r.get(S[e].typeName)?.set(S[e].feature.attributes[w.dr],S[e].feature);else{let t=new Map;t.set(S[e].feature.attributes[w.dr],S[e].feature),r.set(S[e].typeName,t)}u.set(S[e].feature.attributes[w.dr],S[e].feature);let t=(0,M.Ux)(S[e].feature.attributes[w.T1]);this.entityLinkChartDiagramLookup.set(S[e].feature.attributes[w.dr],S[e].feature.attributes[w.T1]?t:null);let i=(0,h.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,S[e].typeName,()=>({useAllData:!1,members:new Map}));(0,h.tE)(i.members,S[e].feature.attributes[w.dr],()=>({id:S[e].feature.attributes[w.dr],linkChartLocation:void 0})).linkChartLocation=S[e].feature.attributes[w.T1];let{x:a,y:n}=S[e].feature.attributes[w.T1];if(x)I.xmin=Math.min(I.xmin,a),I.xmax=Math.max(I.xmax,a),I.ymin=Math.min(I.ymin,n),I.ymax=Math.max(I.ymax,n);else{let e=1e-7;I.xmin=a-e,I.xmax=a+e,I.ymin=n-e,I.ymax=n+e,x=!0}}if(this.linkChartExtent.xmin=I.xmin,this.linkChartExtent.xmax=I.xmax,this.linkChartExtent.ymin=I.ymin,this.linkChartExtent.ymax=I.ymax,!H)throw new s.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");let $=new Map,K=new Map,Q=new Map,V=new Set;for(let i=0;i<n.length;i++){let a=[],o=n[i],r=o.feature.attributes[w.Cz],s=o.feature.attributes[w.KQ],p=r+"-"+s;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let e=t?.timeInfoByTypeName?.get(o.typeName),i=t?.timeInfoByTypeName?e?.startField:null,a=i?o.feature.attributes[i]:null,n=e?.endField;p+="-"+a+"-"+(n?o.feature.attributes[n]:null)}let g=U.get(p).get(o.typeName),c=0===g?0:H?.vertexEndIndex[g-1];if(!V.has(g)){if(V.add(g),2===H.types[g]){let e=[H.vertices[2*c],H.vertices[2*c+1]],t=[H.vertices[2*(c+1)],H.vertices[2*(c+1)+1]],i=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[i[0]-e[0],i[1]-e[1]],o=[i[0]+n[1],i[1]-n[0]],r=[i[0]-n[1],i[1]+n[0]];a.push(e),a.push(o),a.push(t),a.push(r),a.push(e)}else{if(0!==H.types[g]){l.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=c;e<H.vertexEndIndex[g];e++)a.push([H.vertices[2*e],H.vertices[2*e+1]])}if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e){let e=S[y.get(r)]?.feature.attributes[w.T1],t=S[y.get(s)]?.feature.attributes[w.T1];(a[0][0]!==e.x||a[0][1]!==e.y)&&(a[0]=[e.x,e.y]),(a[a.length-1][0]!==t.x||a[a.length-1][1]!==t.y)&&(a[a.length-1]=[t.x,t.y])}for(let e=1;e<a.length-1;e++)a[e][1]>85.5?a[e][1]=85.5:a[e][1]<-85.5&&(a[e][1]=-85.5),a[e][0]>179.9999?a[e][0]=179.9999:a[e][0]<-179.9999&&(a[e][0]=-179.9999);$.has(p)?$.get(p).push(a):$.set(p,[a])}let m=$.get(p);K.has(p)||(K.set(p,new Map),Q.set(p,new Map));let L=K.get(p),C=Q.get(p);L.has(o.typeName)||(L.set(o.typeName,m.shift()),C.set(o.typeName,0));let b=L.get(o.typeName);C.set(o.typeName,C.get(o.typeName)+1);let k=new f.A({paths:[b]});if(o.feature.attributes[w.T1]=k,d.has(o.typeName))d.get(o.typeName)?.set(o.feature.attributes[w.dr],o.feature);else{let e=new Map;e.set(o.feature.attributes[w.dr],o.feature),d.set(o.typeName,e)}u.set(o.feature.attributes[w.dr],o.feature);let T=(0,M.Ux)(o.feature.attributes[w.T1]);this.relationshipLinkChartDiagramLookup.set(o.feature.attributes[w.dr],o.feature.attributes[w.T1]?T:null);let v=(0,h.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,o.typeName,()=>({useAllData:!1,members:new Map}));(0,h.tE)(v.members,o.feature.attributes[w.dr],()=>({id:o.feature.attributes[w.dr],linkChartLocation:void 0})).linkChartLocation=T}for(let e of n)e.feature.attributes[w.M1]=Q.get(e.feature.attributes[w.Cz]+"-"+e.feature.attributes[w.KQ])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutSettings:t?.layoutSettings?.clone()},{nodes:r,links:d,idMap:u}}async applyNewLinkChartLayout(e="organic-standard",t){let{lockedNodeLocations:i,lockedEntityLocations:a,rootEntityIds:n,...o}=t??{};!a&&i?((0,r.io)(l.A.getLogger(this),"lockedNodeLocations is deprecated in 5.0. Use lockedEntityLocations instead.",{replacement:"Use lockedEntityLocations instead.",version:"5.0"}),a=i):a&&i&&(0,r.io)(l.A.getLogger(this),"Both lockedNodeLocations (deprecated in 5.0) and lockedEntityLocations are defined. Use lockedEntityLocations only instead.",{replacement:"Use lockedEntityLocations instead.",version:"5.0"});let s=o.layoutSettings?.rootedLayoutSettings?.rootEntities;if(!s&&n){(0,r.io)(l.A.getLogger(this),"rootEntityIds is deprecated in 5.1. Use layoutSettings.rootedLayoutSettings.rootEntities instead.",{replacement:"Use layoutSettings.rootedLayoutSettings.rootEntities instead.",version:"5.1"});let e=[];for(let t of n){let i=this.dataManager.memberIdTypeLookup.get(t),a=Array.from(i??[]).find(e=>this.dataManager.entityTypeNames.has(e));a&&e.push({id:t,typeName:a})}o.layoutSettings=o.layoutSettings??new $,o.layoutSettings.rootedLayoutSettings=o.layoutSettings.rootedLayoutSettings??new G,o.layoutSettings.rootedLayoutSettings.rootEntities=e}else s&&n&&(0,r.io)(l.A.getLogger(this),"Both rootEntityIds (deprecated in 5.1) and layoutSettings.rootedLayoutSettings.rootEntities are defined. Use layoutSettings.rootedLayoutSettings.rootEntities only instead.",{replacement:"Use layoutSettings.rootedLayoutSettings.rootEntities instead.",version:"5.1"});let h=[];await this._calculateLayoutWithSublayerTimeInfo(e,{...o,lockedEntityLocations:a}),this.layers.forEach(e=>{h.push(e.refreshCachedQueryEngine())}),this.membershipModified=!0,await Promise.all(h),this._refreshNamedTypes()}getCurrentNodeLocations(){let e=new Map;for(let[t,i]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.entries()??[])this.dataManager.relationshipTypeNames.has(t)||i?.members?.forEach(t=>{let i,a=t.linkChartLocation,n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new m.A({x:i.x,y:i.y})))});return e}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);let t=[];this.layers.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e,t){if(!e.length)return{records:[]};let i=[];try{let a=[];for(let e of this.dataManager.relationshipTypeNames){let t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t.keys())))}i=await this.dataManager.getRelationshipsBetweenNodes(e,a,t),await this._handleNewRecords(i,t),(0,p.Te)(t)}catch(e){throw(0,p.zf)(e)&&this.removeRecords(i),e}return{records:i}}async connectFromEntities(e,t){if(!e.length)return{records:[]};let i=[];try{let a=[];for(let e of this.dataManager.relationshipTypeNames){let t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t.keys())))}let n=[];for(let e of this.dataManager.entityTypeNames){let t=this.sublayerIdsCache.get(e);t&&(n=n.concat(Array.from(t)))}i=await this.dataManager.getRelationshipsFromNodes(e,n,a,t),await this._handleNewRecords(i,t),i.length>0&&(this.membershipModified=!0),(0,p.Te)(t)}catch(e){throw(0,p.zf)(e)&&this.removeRecords(i),e}return{records:i}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="organic-standard",t){let i=new Map;this.layers.forEach(e=>{i.set(e.objectType.name,e.timeInfo)}),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:i,...t}),this.linkChart?.handleChronologicalOverlay()}async _handleNewRecords(e,t){let i=new Set,a=[],n=this.layers.concat(this.tables);for(let t of e)this._graphTypeLookup.has(t.typeName)&&(!1===n.some(e=>e.objectType.name===t.typeName)&&(this.dataManager.sublayerCaches.set(t.typeName,new Map),i.add(t.typeName)),(0,h.tE)(this.sublayerIdsCache,t.typeName,()=>new Set).add(t.id),a.push(t));this.dataManager.addToLayer(a);for(let e of i){let t=this._graphTypeLookup.get(e);if(t){let i=this._createSublayer(t);"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),i.geometryType?this.layers.push(i):this.tables.push(i)}}await(0,v.qN)(this,Array.from(i),t),await this.dataManager.refreshCacheContent(e.map(e=>e.id),void 0,void 0,void 0,t);let o={layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedEntityLocations:new Map};for(let[e,t]of this.entityLinkChartDiagramLookup.entries())t&&o.lockedEntityLocations.set(e,new m.A({x:t.coords[0],y:t.coords[1]}));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,o)}_createSublayers(e,t,i){e.forEach(e=>{let a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;let i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,t.read({title:i.name},{origin:"service"}),this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;let t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_layersLoadedFromAuthoritativeItem(){let e=this.originIdOf("layers");return e>=3&&e<7}async _initializeDiagram(){this.initializationLinkChartConfig?this.initializationLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e?.members?.forEach(e=>{let i,a=e.linkChartLocation,n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};let o=(0,M.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,o):this.entityLinkChartDiagramLookup.set(n,o),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)})}),this.memberRelationshipTypes.forEach(e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach(e=>{let t=this.relationshipLinkChartDiagramLookup.get(e.attributes[w.Cz]),i=this.relationshipLinkChartDiagramLookup.get(e.attributes[w.KQ]);if(t&&i){let a=(0,M.Ux)(new f.A({paths:[[[t.coords[0],t.coords[1]],[i.coords[0],i.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[w.dr],a)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[w.dr],null)})})):await this._calculateLayoutWithSublayerTimeInfo(this.initializationLinkChartConfig.layoutMode,{lockedEntityLocations:this.getCurrentNodeLocations(),...this.initializationLinkChartConfig}):await this._calculateLayoutWithSublayerTimeInfo("organic-standard",{lockedEntityLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(let e of this.layers)e.emit("refresh",{dataChanged:!0});for(let e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateOrganicLayoutSettings(e,t){let i=e=>"number"==typeof e&&!isNaN(e),a=e=>i(e)&&e>=0,n={};if(!new Set(["organic-standard","organic-community","geographic-organic-standard","chronological-multi-timeline","chronological-mono-timeline"]).has(e)||!t)return n;let{computationBudgetTime:o,autoRepulsionRadius:r,repulsionRadiusMultiplier:s,absoluteIdealEdgeLength:h,multiplicativeIdealEdgeLength:d,idealEdgeLengthType:p}=t;return(e=>i(e)&&e>=1)(o)?n.computationBudgetTime=o:o&&l.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),n.autoRepulsionRadius=r,!r&&(e=>i(e)&&e>=1)(s)?n.repulsionRadiusMultiplier=s:r||(n.autoRepulsionRadius=!0,l.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting")),"geographic-organic-standard"===e&&((e=>Object.values(b).includes(e))(p)?n.idealEdgeLengthType=p:void 0!==p&&l.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),"absolute-value"===p&&a(h)?n.absoluteIdealEdgeLength=h:"absolute-value"===p&&void 0!==h?l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting"):"multiplier"===p&&a(d)?n.multiplicativeIdealEdgeLength=d:"multiplier"===p&&void 0!==d&&l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),n}_convertValidatedOrganicSettingsToCalculationSettings(e){let t=e.idealEdgeLengthType===b.ABSOLUTE?e.absoluteIdealEdgeLength:e.multiplicativeIdealEdgeLength;return e.idealEdgeLengthType===b.ABSOLUTE&&(t=void 0===t?-1:-1*t),{computationBudgetTime:e.computationBudgetTime??void 0,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier&&!e.autoRepulsionRadius?e.repulsionRadiusMultiplier:void 0,idealEdgeLengthMultiplier:t}}_createSublayer(e){return new T.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_handleSublayersChange(e,t){if(t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e){let t=[];e.forEach(e=>{e.parent=this,t.push(this._createVisibleRefreshHandle(e))}),this.addHandles([...t,e.on("after-add",({item:e})=>{e.parent=this,this.addHandles(this._createVisibleRefreshHandle(e),"sublayers-owner")}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner")}}_createVisibleRefreshHandle(e){return(0,u.wB)(()=>e.visible,(t,i)=>{!0===t&&!1===i&&e.emit("refresh",{dataChanged:!0})})}_alignLayersDataModelAndInclusionDefinition(e){let t=new Set((e.entityTypes??[]).map(e=>e.name).concat((e.relationshipTypes??[]).map(e=>e.name))),i=new Set((e.entityTypes??[]).map(e=>e.name)),a=new Set((e.relationshipTypes??[]).map(e=>e.name));if(this.layers){for(let e of this.layers)!e.graphType&&t.has(e.graphTypeName)&&(e.graphType=i.has(e.graphTypeName)?"entity":"relationship");let e=this.layers.filter(e=>t.has(e.graphTypeName)&&("entity"===e.graphType?i.has(e.graphTypeName):a.has(e.graphTypeName)));this.setAtOrigin("layers",e,(0,g.OL)(this.originIdOf("layers")))}else this.layers=new o.A;if(this.layers&&this._originalInclusionList){let e=new Set(this._originalInclusionList.namedTypeDefinitions.keys()),t=this.tables?.map(e=>e.graphTypeName)??[],i=this.layers.map(e=>e.graphTypeName).concat(t);for(let t of i)e.has(t)||this._originalInclusionList.namedTypeDefinitions.set(t,{useAllData:!1,members:new Map});let a=[];for(let e of this._originalInclusionList.namedTypeDefinitions.keys())i.includes(e)||(l.A.getLogger(this).warn(`A named type, ${e}, was in the serialized feature collection but did not have a sublayer config in the item, so will be removed`),a.push(e));for(let e of a)this._originalInclusionList.namedTypeDefinitions.delete(e)}}};(0,a.Cg)([(0,y.MZ)(I.OZ)],W.prototype,"url",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"dataPreloadedInLocalCache",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"initializationLinkChartConfig",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"membershipModified",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"dataManager",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"initializationInclusionModeDefinition",null),(0,a.Cg)([(0,y.MZ)()],W.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,y.MZ)({type:o.A.ofType(T.A),json:{write:{ignoreOrigin:!0}}})],W.prototype,"layers",void 0),(0,a.Cg)([(0,y.MZ)({readOnly:!0})],W.prototype,"linkChart",null),(0,a.Cg)([(0,y.MZ)()],W.prototype,"entityLinkChartDiagramLookup",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"linkChartExtent",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,y.MZ)({type:["LinkChartLayer"]})],W.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,y.MZ)()],W.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,y.MZ)()],W.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,y.MZ)({type:o.A.ofType(T.A),json:{write:{ignoreOrigin:!0}}})],W.prototype,"tables",void 0),(0,a.Cg)([(0,y.MZ)({json:{read:!1}})],W.prototype,"type",void 0),(0,a.Cg)([(0,y.MZ)({readOnly:!0})],W.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({readOnly:!0})],W.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({readOnly:!0})],W.prototype,"userHasUpdateItemPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({json:{read:!1}})],W.prototype,"chronologicalAuxiliaryGraphics",void 0),(0,a.Cg)([(0,y.MZ)((0,V.P6)("dateFieldsTimeReference"))],W.prototype,"dateFieldsTimeZone",void 0),W=(0,a.Cg)([(0,y.$K)("esri.layers.LinkChartLayer")],W);const q=W}}]);