@arcgis/ai-components 5.2.0-next.98 → 6.0.0-next.0

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 (736) hide show
  1. package/dist/agent-utils/BaseAgent.d.ts +18 -34
  2. package/dist/agent-utils/BaseAgent.js +53 -54
  3. package/dist/agent-utils/FunctionAgent.d.ts +11 -17
  4. package/dist/agent-utils/FunctionAgent.js +24 -60
  5. package/dist/agent-utils/LLMAgent.d.ts +18 -24
  6. package/dist/agent-utils/LLMAgent.js +71 -106
  7. package/dist/agent-utils/SkillAgent.d.ts +66 -0
  8. package/dist/agent-utils/SkillAgent.js +37 -0
  9. package/dist/agent-utils/WorkflowAgent.d.ts +10 -16
  10. package/dist/agent-utils/WorkflowAgent.js +19 -55
  11. package/dist/agent-utils/createSchema.d.ts +12 -0
  12. package/dist/agent-utils/createSchema.js +8 -0
  13. package/dist/agent-utils/middlewares/humanInTheLoop.d.ts +1 -1
  14. package/dist/agent-utils/middlewares/trace.js +8 -8
  15. package/dist/agent-utils/tools/FunctionTool.d.ts +8 -9
  16. package/dist/agent-utils/tools/FunctionTool.js +21 -52
  17. package/dist/agent-utils/types.d.ts +30 -34
  18. package/dist/agent-utils/workflows/BaseWorkflow.d.ts +6 -7
  19. package/dist/agent-utils/workflows/ConditionalWorkflow.d.ts +2 -2
  20. package/dist/agent-utils/workflows/ConditionalWorkflow.js +14 -29
  21. package/dist/agent-utils/workflows/LoopWorkflow.d.ts +3 -7
  22. package/dist/agent-utils/workflows/LoopWorkflow.js +14 -29
  23. package/dist/agent-utils/workflows/ParallelWorkflow.d.ts +2 -6
  24. package/dist/agent-utils/workflows/ParallelWorkflow.js +69 -78
  25. package/dist/agent-utils/workflows/RouterWorkflow.d.ts +3 -3
  26. package/dist/agent-utils/workflows/RouterWorkflow.js +30 -47
  27. package/dist/agent-utils/workflows/SequentialWorkflow.d.ts +1 -1
  28. package/dist/agent-utils/workflows/SequentialWorkflow.js +15 -27
  29. package/dist/agent-utils/workflows/SwitchWorkflow.d.ts +3 -3
  30. package/dist/agent-utils/workflows/SwitchWorkflow.js +30 -49
  31. package/dist/agentic-workflow/jsonTypes.d.ts +116 -46
  32. package/dist/agents/agents/arcgisKnowledge/graph/arcgisKnowledgeGraph.d.ts +8 -0
  33. package/dist/{chunks → agents/agents/arcgisKnowledge/graph}/arcgisKnowledgeGraph.js +21 -29
  34. package/dist/agents/agents/dataExploration/dataExplorationAgent.d.ts +18 -0
  35. package/dist/agents/agents/dataExploration/dataExplorationAgent.js +17 -0
  36. package/dist/agents/agents/dataExplorationGraph/graph/dataExplorationGraph.d.ts +8 -0
  37. package/dist/{chunks → agents/agents/dataExplorationGraph/graph}/dataExplorationGraph.js +39 -46
  38. package/dist/agents/agents/help/helpAgent.d.ts +8 -0
  39. package/dist/agents/agents/help/helpAgent.js +32 -0
  40. package/dist/agents/agents/helpGraph/graph/helpGraph.d.ts +8 -0
  41. package/dist/{chunks → agents/agents/helpGraph/graph}/helpGraph.js +23 -32
  42. package/dist/agents/agents/layerStyling/context/layerStylingContext.d.ts +11 -0
  43. package/dist/agents/agents/layerStyling/context/layerStylingContext.js +5 -0
  44. package/dist/agents/agents/layerStyling/graph/layerStylingGraph.d.ts +8 -0
  45. package/dist/{chunks → agents/agents/layerStyling/graph}/layerStylingGraph.js +31 -40
  46. package/dist/agents/agents/navigation/navigationAgent.d.ts +18 -0
  47. package/dist/agents/agents/navigation/navigationAgent.js +25 -0
  48. package/dist/agents/agents/navigationGraph/graph/navigationGraph.d.ts +8 -0
  49. package/dist/{chunks → agents/agents/navigationGraph/graph}/navigationGraph.js +116 -122
  50. package/dist/agents/tools/filter/setFeatureEffect/adapter.js +54 -41
  51. package/dist/agents/tools/navigation/goToAddress/adapter.js +39 -31
  52. package/dist/agents/tools/query/getStatistics/adapter.js +60 -56
  53. package/dist/agents/tools/query/getTopFeatures/adapter.js +120 -92
  54. package/dist/agents/tools/query/queryFeatures/adapter.js +47 -43
  55. package/dist/agents/tools/shared/resolveToolArtifact.d.ts +24 -0
  56. package/dist/agents/tools/shared/resolveToolArtifact.js +20 -0
  57. package/dist/agents/tools/shared/types.d.ts +22 -0
  58. package/dist/agents/tools/shared/types.js +6 -0
  59. package/dist/cdn/25CQLMB4.js +2 -0
  60. package/dist/cdn/{COH3QXWG.js → 2FUTKTNO.js} +2 -2
  61. package/dist/cdn/{5MK44FNO.js → 2GSHUAQ2.js} +1 -1
  62. package/dist/cdn/2UKFCF2J.js +150 -0
  63. package/dist/cdn/{MWYBF3F3.js → 2XXM52PS.js} +5 -5
  64. package/dist/cdn/{YEZ3AMNX.js → 2ZH5JNHL.js} +1 -1
  65. package/dist/cdn/34HKOU3T.js +2 -0
  66. package/dist/cdn/37EJSNE3.js +2 -0
  67. package/dist/cdn/3HV6OXCZ.js +2 -0
  68. package/dist/cdn/3WS4DSWD.js +2 -0
  69. package/dist/cdn/43OJZMBB.js +2 -0
  70. package/dist/cdn/46DT6BIG.js +68 -0
  71. package/dist/cdn/4BRIOLDJ.js +2 -0
  72. package/dist/cdn/4KFTUBFL.js +2 -0
  73. package/dist/cdn/{7SRLZQVC.js → 4OLV5LA7.js} +1 -1
  74. package/dist/cdn/4ZPGFIE2.js +2 -0
  75. package/dist/cdn/645SDZBB.js +2 -0
  76. package/dist/cdn/{LLUGJKAQ.js → 6GQCLDLJ.js} +1 -1
  77. package/dist/cdn/6JCDY4FL.js +2 -0
  78. package/dist/cdn/74CVYM72.js +19 -0
  79. package/dist/cdn/7DRHB24Z.js +2 -0
  80. package/dist/cdn/7GQCNR4P.js +11 -0
  81. package/dist/cdn/7OQA4GCM.js +2 -0
  82. package/dist/cdn/A3KIOUWB.js +2 -0
  83. package/dist/cdn/AAUVOBPS.js +2 -0
  84. package/dist/cdn/AMFZY5QK.js +18 -0
  85. package/dist/cdn/B2JRBDJZ.js +2 -0
  86. package/dist/cdn/B4C7NIB5.js +23 -0
  87. package/dist/cdn/BIEX4MVV.js +9 -0
  88. package/dist/cdn/BKKLQUK2.js +2 -0
  89. package/dist/cdn/CADNOKIK.js +2 -0
  90. package/dist/cdn/CFAC4FN3.js +2 -0
  91. package/dist/cdn/DQRKGYR3.js +2 -0
  92. package/dist/cdn/DWMZ23QK.js +2 -0
  93. package/dist/cdn/DXCDVRGL.js +2 -0
  94. package/dist/cdn/DYSPEU7W.js +2 -0
  95. package/dist/cdn/{5WYRJMBW.js → ENVTUTY6.js} +1 -1
  96. package/dist/cdn/EOSKJPQV.js +2 -0
  97. package/dist/cdn/EU6YSCZL.js +2 -0
  98. package/dist/cdn/EXIA3APU.js +75 -0
  99. package/dist/cdn/F7VQ3WH2.js +2 -0
  100. package/dist/cdn/FBIPIDP7.js +2 -0
  101. package/dist/cdn/FFWPUYGD.js +6 -0
  102. package/dist/cdn/FX4LV2S3.js +2 -0
  103. package/dist/cdn/{5HBAJ57P.js → FXRZCD5Y.js} +1 -1
  104. package/dist/cdn/GEFFWUB2.js +2 -0
  105. package/dist/cdn/GMZUN5SF.js +2 -0
  106. package/dist/cdn/{C4FEETBZ.js → GOET2CH4.js} +1 -1
  107. package/dist/cdn/GVFJHADC.js +2 -0
  108. package/dist/cdn/H7WJUUJT.js +2 -0
  109. package/dist/cdn/HWNPZ4CF.js +2 -0
  110. package/dist/cdn/I5OBL24F.js +2 -0
  111. package/dist/cdn/I7PHDOEQ.js +2 -0
  112. package/dist/cdn/{HHFNQR6Z.js → IEAHAC6B.js} +1 -1
  113. package/dist/cdn/ISDNOFHU.js +3 -0
  114. package/dist/cdn/J37GSI7C.js +2 -0
  115. package/dist/cdn/JZS6ZSWH.js +2 -0
  116. package/dist/cdn/KEBMHD4R.js +9 -0
  117. package/dist/cdn/KJZVYKWL.js +2 -0
  118. package/dist/cdn/KKXOSV62.js +2 -0
  119. package/dist/cdn/KPHHXMRK.js +2 -0
  120. package/dist/cdn/LCI5MEDN.js +2 -0
  121. package/dist/cdn/LVSIZRTB.js +2 -0
  122. package/dist/cdn/M7TMD2HP.js +41 -0
  123. package/dist/cdn/MHUEU6MR.js +2 -0
  124. package/dist/cdn/MPWEXYYB.js +2 -0
  125. package/dist/cdn/MQSOVP27.js +2 -0
  126. package/dist/cdn/NN6MELJ7.js +2 -0
  127. package/dist/cdn/O62IJLTZ.js +2 -0
  128. package/dist/cdn/OFM2S6U7.js +2 -0
  129. package/dist/cdn/{VXFQANGJ.js → OJP56R5R.js} +1 -1
  130. package/dist/cdn/{BL273EGZ.js → OT5ECP4V.js} +2 -0
  131. package/dist/cdn/OVIQ5NSE.js +2 -0
  132. package/dist/cdn/OYHYHALE.js +2 -0
  133. package/dist/cdn/{VOKXKU7M.js → Q6PCXSZT.js} +10 -10
  134. package/dist/cdn/QJOO6IIX.js +119 -0
  135. package/dist/cdn/QQPVN5MG.js +2 -0
  136. package/dist/cdn/QUZTFUWM.js +1 -0
  137. package/dist/cdn/RBRHDEOB.js +2 -0
  138. package/dist/cdn/REE4K4J7.js +2 -0
  139. package/dist/cdn/RFKOCMMT.js +2 -0
  140. package/dist/cdn/RKHDRUX5.js +2 -0
  141. package/dist/cdn/SBIYXWXZ.js +2 -0
  142. package/dist/cdn/T2FKFOHE.js +2 -0
  143. package/dist/cdn/{KWD2ECTM.js → TGI7QCB2.js} +1 -1
  144. package/dist/cdn/TPMZRJEC.js +2 -0
  145. package/dist/cdn/TRZJYWEB.js +33 -0
  146. package/dist/cdn/TTPTZBCM.js +2 -0
  147. package/dist/cdn/U3ZTF2BC.js +2 -0
  148. package/dist/cdn/U53SVXZK.js +3 -0
  149. package/dist/cdn/UALF45Q2.js +2 -0
  150. package/dist/cdn/{K2R6XVK3.js → UPSFL6U3.js} +1 -1
  151. package/dist/cdn/UYEF3IKE.js +44 -0
  152. package/dist/cdn/V6AQFRUC.js +2 -0
  153. package/dist/cdn/V7ERVXIO.js +2 -0
  154. package/dist/cdn/VIJVRJHL.js +2 -0
  155. package/dist/cdn/VVWKEN53.js +8 -0
  156. package/dist/cdn/W3OJTTVX.js +2 -0
  157. package/dist/cdn/W3ZLMBEE.js +155 -0
  158. package/dist/cdn/W6TS2TIE.js +2 -0
  159. package/dist/cdn/WB5AFS42.js +2 -0
  160. package/dist/cdn/WC6SHIEX.js +2 -0
  161. package/dist/cdn/WSIZ2OTL.js +2 -0
  162. package/dist/cdn/WVMQ3I6F.js +2 -0
  163. package/dist/cdn/XI4BPYGB.js +2 -0
  164. package/dist/cdn/{Z5W4V7RC.js → XJUYG2M3.js} +1 -1
  165. package/dist/cdn/XPSPAZUD.js +2 -0
  166. package/dist/cdn/XQ3NBBQ3.js +2 -0
  167. package/dist/cdn/{HHUQXL3R.js → YAUQJ6NV.js} +1 -1
  168. package/dist/cdn/YD3DLETZ.js +2 -0
  169. package/dist/cdn/YKKIJTJY.js +2 -0
  170. package/dist/cdn/YO3L3XIH.js +2 -0
  171. package/dist/cdn/YOQCQAKT.js +2 -0
  172. package/dist/cdn/ZBBI5M2X.js +14 -0
  173. package/dist/cdn/{KITIP6J2.js → ZBRZU4XB.js} +1 -1
  174. package/dist/cdn/ZCNCYKXW.js +14 -0
  175. package/dist/cdn/ZESTW6HJ.js +2 -0
  176. package/dist/cdn/ZKDCEL6K.js +2 -0
  177. package/dist/cdn/{6ECRQVHY.js → ZMMUAYDN.js} +1 -1
  178. package/dist/cdn/ZQTCPJUV.js +2 -0
  179. package/dist/cdn/ZS5P7NRI.js +2 -0
  180. package/dist/cdn/agent-utils/BaseAgent.js +2 -0
  181. package/dist/cdn/agent-utils/FunctionAgent.js +2 -0
  182. package/dist/cdn/agent-utils/LLMAgent.js +2 -0
  183. package/dist/cdn/agent-utils/SkillAgent.js +2 -0
  184. package/dist/cdn/agent-utils/WorkflowAgent.js +2 -0
  185. package/dist/cdn/agent-utils/createSchema.js +2 -0
  186. package/dist/cdn/agent-utils/middlewares/humanInTheLoop.js +1 -2
  187. package/dist/cdn/agent-utils/middlewares/middleware.js +1 -1
  188. package/dist/cdn/agent-utils/middlewares/trace.js +1 -1
  189. package/dist/cdn/agent-utils/tools/FunctionTool.js +2 -0
  190. package/dist/cdn/agent-utils/workflows/ConditionalWorkflow.js +2 -0
  191. package/dist/cdn/agent-utils/workflows/LoopWorkflow.js +2 -0
  192. package/dist/cdn/agent-utils/workflows/ParallelWorkflow.js +6 -0
  193. package/dist/cdn/agent-utils/workflows/RouterWorkflow.js +2 -0
  194. package/dist/cdn/agent-utils/workflows/SequentialWorkflow.js +2 -0
  195. package/dist/cdn/agent-utils/workflows/SwitchWorkflow.js +2 -0
  196. package/dist/cdn/assets/agents/t9n/messages.ar.json +1 -0
  197. package/dist/cdn/assets/agents/t9n/messages.bg.json +1 -0
  198. package/dist/cdn/assets/agents/t9n/messages.ca.json +1 -0
  199. package/dist/cdn/assets/agents/t9n/messages.cs.json +1 -0
  200. package/dist/cdn/assets/agents/t9n/messages.da.json +1 -0
  201. package/dist/cdn/assets/agents/t9n/messages.de.json +1 -0
  202. package/dist/cdn/assets/agents/t9n/messages.el.json +1 -0
  203. package/dist/cdn/assets/agents/t9n/messages.en.json +1 -0
  204. package/dist/cdn/assets/agents/t9n/messages.es.json +1 -0
  205. package/dist/cdn/assets/agents/t9n/messages.et.json +1 -0
  206. package/dist/cdn/assets/agents/t9n/messages.fi.json +1 -0
  207. package/dist/cdn/assets/agents/t9n/messages.fr.json +1 -0
  208. package/dist/cdn/assets/agents/t9n/messages.he.json +1 -0
  209. package/dist/cdn/assets/agents/t9n/messages.hr.json +1 -0
  210. package/dist/cdn/assets/agents/t9n/messages.hu.json +1 -0
  211. package/dist/cdn/assets/agents/t9n/messages.id.json +1 -0
  212. package/dist/cdn/assets/agents/t9n/messages.it.json +1 -0
  213. package/dist/cdn/assets/agents/t9n/messages.ja.json +1 -0
  214. package/dist/cdn/assets/agents/t9n/messages.ko.json +1 -0
  215. package/dist/cdn/assets/agents/t9n/messages.lt.json +1 -0
  216. package/dist/cdn/assets/agents/t9n/messages.lv.json +1 -0
  217. package/dist/cdn/assets/agents/t9n/messages.nl.json +1 -0
  218. package/dist/cdn/assets/agents/t9n/messages.no.json +1 -0
  219. package/dist/cdn/assets/agents/t9n/messages.pl.json +1 -0
  220. package/dist/cdn/assets/agents/t9n/messages.pt-BR.json +1 -0
  221. package/dist/cdn/assets/agents/t9n/messages.pt-PT.json +1 -0
  222. package/dist/cdn/assets/agents/t9n/messages.ro.json +1 -0
  223. package/dist/cdn/assets/agents/t9n/messages.ru.json +1 -0
  224. package/dist/cdn/assets/agents/t9n/messages.sk.json +1 -0
  225. package/dist/cdn/assets/agents/t9n/messages.sl.json +1 -0
  226. package/dist/cdn/assets/agents/t9n/messages.sr.json +1 -0
  227. package/dist/cdn/assets/agents/t9n/messages.sv.json +1 -0
  228. package/dist/cdn/assets/agents/t9n/messages.th.json +1 -0
  229. package/dist/cdn/assets/agents/t9n/messages.tr.json +1 -0
  230. package/dist/cdn/assets/agents/t9n/messages.uk.json +1 -0
  231. package/dist/cdn/assets/agents/t9n/messages.vi.json +1 -0
  232. package/dist/cdn/assets/agents/t9n/messages.zh-CN.json +1 -0
  233. package/dist/cdn/assets/agents/t9n/messages.zh-TW.json +1 -0
  234. package/dist/cdn/assets/assistant/t9n/messages.ar.json +1 -1
  235. package/dist/cdn/assets/assistant/t9n/messages.bg.json +1 -1
  236. package/dist/cdn/assets/assistant/t9n/messages.bs.json +1 -1
  237. package/dist/cdn/assets/assistant/t9n/messages.ca.json +1 -1
  238. package/dist/cdn/assets/assistant/t9n/messages.cs.json +1 -1
  239. package/dist/cdn/assets/assistant/t9n/messages.da.json +1 -1
  240. package/dist/cdn/assets/assistant/t9n/messages.de.json +1 -1
  241. package/dist/cdn/assets/assistant/t9n/messages.el.json +1 -1
  242. package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -1
  243. package/dist/cdn/assets/assistant/t9n/messages.es.json +1 -1
  244. package/dist/cdn/assets/assistant/t9n/messages.et.json +1 -1
  245. package/dist/cdn/assets/assistant/t9n/messages.fi.json +1 -1
  246. package/dist/cdn/assets/assistant/t9n/messages.fr.json +1 -1
  247. package/dist/cdn/assets/assistant/t9n/messages.he.json +1 -1
  248. package/dist/cdn/assets/assistant/t9n/messages.hr.json +1 -1
  249. package/dist/cdn/assets/assistant/t9n/messages.hu.json +1 -1
  250. package/dist/cdn/assets/assistant/t9n/messages.id.json +1 -1
  251. package/dist/cdn/assets/assistant/t9n/messages.it.json +1 -1
  252. package/dist/cdn/assets/assistant/t9n/messages.ja.json +1 -1
  253. package/dist/cdn/assets/assistant/t9n/messages.ko.json +1 -1
  254. package/dist/cdn/assets/assistant/t9n/messages.lt.json +1 -1
  255. package/dist/cdn/assets/assistant/t9n/messages.lv.json +1 -1
  256. package/dist/cdn/assets/assistant/t9n/messages.nl.json +1 -1
  257. package/dist/cdn/assets/assistant/t9n/messages.no.json +1 -1
  258. package/dist/cdn/assets/assistant/t9n/messages.pl.json +1 -1
  259. package/dist/cdn/assets/assistant/t9n/messages.pt-BR.json +1 -1
  260. package/dist/cdn/assets/assistant/t9n/messages.pt-PT.json +1 -1
  261. package/dist/cdn/assets/assistant/t9n/messages.ro.json +1 -1
  262. package/dist/cdn/assets/assistant/t9n/messages.ru.json +1 -1
  263. package/dist/cdn/assets/assistant/t9n/messages.sk.json +1 -1
  264. package/dist/cdn/assets/assistant/t9n/messages.sl.json +1 -1
  265. package/dist/cdn/assets/assistant/t9n/messages.sr.json +1 -1
  266. package/dist/cdn/assets/assistant/t9n/messages.sv.json +1 -1
  267. package/dist/cdn/assets/assistant/t9n/messages.th.json +1 -1
  268. package/dist/cdn/assets/assistant/t9n/messages.tr.json +1 -1
  269. package/dist/cdn/assets/assistant/t9n/messages.uk.json +1 -1
  270. package/dist/cdn/assets/assistant/t9n/messages.vi.json +1 -1
  271. package/dist/cdn/assets/assistant/t9n/messages.zh-CN.json +1 -1
  272. package/dist/cdn/assets/assistant/t9n/messages.zh-HK.json +1 -1
  273. package/dist/cdn/assets/assistant/t9n/messages.zh-TW.json +1 -1
  274. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ar.json +1 -1
  275. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.bg.json +1 -1
  276. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.bs.json +1 -1
  277. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ca.json +1 -1
  278. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.cs.json +1 -1
  279. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.da.json +1 -1
  280. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.de.json +1 -1
  281. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.el.json +1 -1
  282. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.en.json +1 -1
  283. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.es.json +1 -1
  284. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.et.json +1 -1
  285. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.fi.json +1 -1
  286. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.fr.json +1 -1
  287. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.he.json +1 -1
  288. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.hr.json +1 -1
  289. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.hu.json +1 -1
  290. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.id.json +1 -1
  291. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.it.json +1 -1
  292. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ja.json +1 -1
  293. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ko.json +1 -1
  294. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.lt.json +1 -1
  295. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.lv.json +1 -1
  296. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.nl.json +1 -1
  297. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.no.json +1 -1
  298. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pl.json +1 -1
  299. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pt-BR.json +1 -1
  300. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.pt-PT.json +1 -1
  301. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ro.json +1 -1
  302. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.ru.json +1 -1
  303. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sk.json +1 -1
  304. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sl.json +1 -1
  305. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sr.json +1 -1
  306. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.sv.json +1 -1
  307. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.th.json +1 -1
  308. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.tr.json +1 -1
  309. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.uk.json +1 -1
  310. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.vi.json +1 -1
  311. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-CN.json +1 -1
  312. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-HK.json +1 -1
  313. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.zh-TW.json +1 -1
  314. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ar.json +1 -1
  315. package/dist/cdn/assets/assistant-interrupt/t9n/messages.bg.json +1 -1
  316. package/dist/cdn/assets/assistant-interrupt/t9n/messages.bs.json +1 -1
  317. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ca.json +1 -1
  318. package/dist/cdn/assets/assistant-interrupt/t9n/messages.cs.json +1 -1
  319. package/dist/cdn/assets/assistant-interrupt/t9n/messages.da.json +1 -1
  320. package/dist/cdn/assets/assistant-interrupt/t9n/messages.de.json +1 -1
  321. package/dist/cdn/assets/assistant-interrupt/t9n/messages.el.json +1 -1
  322. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -1
  323. package/dist/cdn/assets/assistant-interrupt/t9n/messages.es.json +1 -1
  324. package/dist/cdn/assets/assistant-interrupt/t9n/messages.et.json +1 -1
  325. package/dist/cdn/assets/assistant-interrupt/t9n/messages.fi.json +1 -1
  326. package/dist/cdn/assets/assistant-interrupt/t9n/messages.fr.json +1 -1
  327. package/dist/cdn/assets/assistant-interrupt/t9n/messages.he.json +1 -1
  328. package/dist/cdn/assets/assistant-interrupt/t9n/messages.hr.json +1 -1
  329. package/dist/cdn/assets/assistant-interrupt/t9n/messages.hu.json +1 -1
  330. package/dist/cdn/assets/assistant-interrupt/t9n/messages.id.json +1 -1
  331. package/dist/cdn/assets/assistant-interrupt/t9n/messages.it.json +1 -1
  332. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ja.json +1 -1
  333. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ko.json +1 -1
  334. package/dist/cdn/assets/assistant-interrupt/t9n/messages.lt.json +1 -1
  335. package/dist/cdn/assets/assistant-interrupt/t9n/messages.lv.json +1 -1
  336. package/dist/cdn/assets/assistant-interrupt/t9n/messages.nl.json +1 -1
  337. package/dist/cdn/assets/assistant-interrupt/t9n/messages.no.json +1 -1
  338. package/dist/cdn/assets/assistant-interrupt/t9n/messages.pl.json +1 -1
  339. package/dist/cdn/assets/assistant-interrupt/t9n/messages.pt-BR.json +1 -1
  340. package/dist/cdn/assets/assistant-interrupt/t9n/messages.pt-PT.json +1 -1
  341. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ro.json +1 -1
  342. package/dist/cdn/assets/assistant-interrupt/t9n/messages.ru.json +1 -1
  343. package/dist/cdn/assets/assistant-interrupt/t9n/messages.sk.json +1 -1
  344. package/dist/cdn/assets/assistant-interrupt/t9n/messages.sl.json +1 -1
  345. package/dist/cdn/assets/assistant-interrupt/t9n/messages.sr.json +1 -1
  346. package/dist/cdn/assets/assistant-interrupt/t9n/messages.sv.json +1 -1
  347. package/dist/cdn/assets/assistant-interrupt/t9n/messages.th.json +1 -1
  348. package/dist/cdn/assets/assistant-interrupt/t9n/messages.tr.json +1 -1
  349. package/dist/cdn/assets/assistant-interrupt/t9n/messages.uk.json +1 -1
  350. package/dist/cdn/assets/assistant-interrupt/t9n/messages.vi.json +1 -1
  351. package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-CN.json +1 -1
  352. package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-HK.json +1 -1
  353. package/dist/cdn/assets/assistant-interrupt/t9n/messages.zh-TW.json +1 -1
  354. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ar.json +1 -0
  355. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.bg.json +1 -0
  356. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.bs.json +1 -0
  357. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ca.json +1 -0
  358. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.cs.json +1 -0
  359. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.da.json +1 -0
  360. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.de.json +1 -0
  361. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.el.json +1 -0
  362. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.es.json +1 -0
  363. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.et.json +1 -0
  364. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.fi.json +1 -0
  365. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.fr.json +1 -0
  366. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.he.json +1 -0
  367. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.hr.json +1 -0
  368. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.hu.json +1 -0
  369. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.id.json +1 -0
  370. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.it.json +1 -0
  371. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ja.json +1 -0
  372. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ko.json +1 -0
  373. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.lt.json +1 -0
  374. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.lv.json +1 -0
  375. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.nl.json +1 -0
  376. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.no.json +1 -0
  377. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pl.json +1 -0
  378. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pt-BR.json +1 -0
  379. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.pt-PT.json +1 -0
  380. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ro.json +1 -0
  381. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.ru.json +1 -0
  382. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sk.json +1 -0
  383. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sl.json +1 -0
  384. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sr.json +1 -0
  385. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.sv.json +1 -0
  386. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.th.json +1 -0
  387. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.tr.json +1 -0
  388. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.uk.json +1 -0
  389. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.vi.json +1 -0
  390. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-CN.json +1 -0
  391. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-HK.json +1 -0
  392. package/dist/cdn/assets/assistant-interrupt-preview/t9n/messages.zh-TW.json +1 -0
  393. package/dist/cdn/assets/assistant-message/t9n/messages.ar.json +1 -0
  394. package/dist/cdn/assets/assistant-message/t9n/messages.bg.json +1 -0
  395. package/dist/cdn/assets/assistant-message/t9n/messages.bs.json +1 -0
  396. package/dist/cdn/assets/assistant-message/t9n/messages.ca.json +1 -0
  397. package/dist/cdn/assets/assistant-message/t9n/messages.cs.json +1 -0
  398. package/dist/cdn/assets/assistant-message/t9n/messages.da.json +1 -0
  399. package/dist/cdn/assets/assistant-message/t9n/messages.de.json +1 -0
  400. package/dist/cdn/assets/assistant-message/t9n/messages.el.json +1 -0
  401. package/dist/cdn/assets/assistant-message/t9n/messages.es.json +1 -0
  402. package/dist/cdn/assets/assistant-message/t9n/messages.et.json +1 -0
  403. package/dist/cdn/assets/assistant-message/t9n/messages.fi.json +1 -0
  404. package/dist/cdn/assets/assistant-message/t9n/messages.fr.json +1 -0
  405. package/dist/cdn/assets/assistant-message/t9n/messages.he.json +1 -0
  406. package/dist/cdn/assets/assistant-message/t9n/messages.hr.json +1 -0
  407. package/dist/cdn/assets/assistant-message/t9n/messages.hu.json +1 -0
  408. package/dist/cdn/assets/assistant-message/t9n/messages.id.json +1 -0
  409. package/dist/cdn/assets/assistant-message/t9n/messages.it.json +1 -0
  410. package/dist/cdn/assets/assistant-message/t9n/messages.ja.json +1 -0
  411. package/dist/cdn/assets/assistant-message/t9n/messages.ko.json +1 -0
  412. package/dist/cdn/assets/assistant-message/t9n/messages.lt.json +1 -0
  413. package/dist/cdn/assets/assistant-message/t9n/messages.lv.json +1 -0
  414. package/dist/cdn/assets/assistant-message/t9n/messages.nl.json +1 -0
  415. package/dist/cdn/assets/assistant-message/t9n/messages.no.json +1 -0
  416. package/dist/cdn/assets/assistant-message/t9n/messages.pl.json +1 -0
  417. package/dist/cdn/assets/assistant-message/t9n/messages.pt-BR.json +1 -0
  418. package/dist/cdn/assets/assistant-message/t9n/messages.pt-PT.json +1 -0
  419. package/dist/cdn/assets/assistant-message/t9n/messages.ro.json +1 -0
  420. package/dist/cdn/assets/assistant-message/t9n/messages.ru.json +1 -0
  421. package/dist/cdn/assets/assistant-message/t9n/messages.sk.json +1 -0
  422. package/dist/cdn/assets/assistant-message/t9n/messages.sl.json +1 -0
  423. package/dist/cdn/assets/assistant-message/t9n/messages.sr.json +1 -0
  424. package/dist/cdn/assets/assistant-message/t9n/messages.sv.json +1 -0
  425. package/dist/cdn/assets/assistant-message/t9n/messages.th.json +1 -0
  426. package/dist/cdn/assets/assistant-message/t9n/messages.tr.json +1 -0
  427. package/dist/cdn/assets/assistant-message/t9n/messages.uk.json +1 -0
  428. package/dist/cdn/assets/assistant-message/t9n/messages.vi.json +1 -0
  429. package/dist/cdn/assets/assistant-message/t9n/messages.zh-CN.json +1 -0
  430. package/dist/cdn/assets/assistant-message/t9n/messages.zh-HK.json +1 -0
  431. package/dist/cdn/assets/assistant-message/t9n/messages.zh-TW.json +1 -0
  432. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ar.json +1 -0
  433. package/dist/cdn/assets/assistant-message-loading/t9n/messages.bg.json +1 -0
  434. package/dist/cdn/assets/assistant-message-loading/t9n/messages.bs.json +1 -0
  435. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ca.json +1 -0
  436. package/dist/cdn/assets/assistant-message-loading/t9n/messages.cs.json +1 -0
  437. package/dist/cdn/assets/assistant-message-loading/t9n/messages.da.json +1 -0
  438. package/dist/cdn/assets/assistant-message-loading/t9n/messages.de.json +1 -0
  439. package/dist/cdn/assets/assistant-message-loading/t9n/messages.el.json +1 -0
  440. package/dist/cdn/assets/assistant-message-loading/t9n/messages.es.json +1 -0
  441. package/dist/cdn/assets/assistant-message-loading/t9n/messages.et.json +1 -0
  442. package/dist/cdn/assets/assistant-message-loading/t9n/messages.fi.json +1 -0
  443. package/dist/cdn/assets/assistant-message-loading/t9n/messages.fr.json +1 -0
  444. package/dist/cdn/assets/assistant-message-loading/t9n/messages.he.json +1 -0
  445. package/dist/cdn/assets/assistant-message-loading/t9n/messages.hr.json +1 -0
  446. package/dist/cdn/assets/assistant-message-loading/t9n/messages.hu.json +1 -0
  447. package/dist/cdn/assets/assistant-message-loading/t9n/messages.id.json +1 -0
  448. package/dist/cdn/assets/assistant-message-loading/t9n/messages.it.json +1 -0
  449. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ja.json +1 -0
  450. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ko.json +1 -0
  451. package/dist/cdn/assets/assistant-message-loading/t9n/messages.lt.json +1 -0
  452. package/dist/cdn/assets/assistant-message-loading/t9n/messages.lv.json +1 -0
  453. package/dist/cdn/assets/assistant-message-loading/t9n/messages.nl.json +1 -0
  454. package/dist/cdn/assets/assistant-message-loading/t9n/messages.no.json +1 -0
  455. package/dist/cdn/assets/assistant-message-loading/t9n/messages.pl.json +1 -0
  456. package/dist/cdn/assets/assistant-message-loading/t9n/messages.pt-BR.json +1 -0
  457. package/dist/cdn/assets/assistant-message-loading/t9n/messages.pt-PT.json +1 -0
  458. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ro.json +1 -0
  459. package/dist/cdn/assets/assistant-message-loading/t9n/messages.ru.json +1 -0
  460. package/dist/cdn/assets/assistant-message-loading/t9n/messages.sk.json +1 -0
  461. package/dist/cdn/assets/assistant-message-loading/t9n/messages.sl.json +1 -0
  462. package/dist/cdn/assets/assistant-message-loading/t9n/messages.sr.json +1 -0
  463. package/dist/cdn/assets/assistant-message-loading/t9n/messages.sv.json +1 -0
  464. package/dist/cdn/assets/assistant-message-loading/t9n/messages.th.json +1 -0
  465. package/dist/cdn/assets/assistant-message-loading/t9n/messages.tr.json +1 -0
  466. package/dist/cdn/assets/assistant-message-loading/t9n/messages.uk.json +1 -0
  467. package/dist/cdn/assets/assistant-message-loading/t9n/messages.vi.json +1 -0
  468. package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-CN.json +1 -0
  469. package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-HK.json +1 -0
  470. package/dist/cdn/assets/assistant-message-loading/t9n/messages.zh-TW.json +1 -0
  471. package/dist/cdn/assets/orchestrator/t9n/messages.ar.json +1 -0
  472. package/dist/cdn/assets/orchestrator/t9n/messages.bg.json +1 -0
  473. package/dist/cdn/assets/orchestrator/t9n/messages.ca.json +1 -0
  474. package/dist/cdn/assets/orchestrator/t9n/messages.cs.json +1 -0
  475. package/dist/cdn/assets/orchestrator/t9n/messages.da.json +1 -0
  476. package/dist/cdn/assets/orchestrator/t9n/messages.de.json +1 -0
  477. package/dist/cdn/assets/orchestrator/t9n/messages.el.json +1 -0
  478. package/dist/cdn/assets/orchestrator/t9n/messages.en.json +1 -0
  479. package/dist/cdn/assets/orchestrator/t9n/messages.es.json +1 -0
  480. package/dist/cdn/assets/orchestrator/t9n/messages.et.json +1 -0
  481. package/dist/cdn/assets/orchestrator/t9n/messages.fi.json +1 -0
  482. package/dist/cdn/assets/orchestrator/t9n/messages.fr.json +1 -0
  483. package/dist/cdn/assets/orchestrator/t9n/messages.he.json +1 -0
  484. package/dist/cdn/assets/orchestrator/t9n/messages.hr.json +1 -0
  485. package/dist/cdn/assets/orchestrator/t9n/messages.hu.json +1 -0
  486. package/dist/cdn/assets/orchestrator/t9n/messages.id.json +1 -0
  487. package/dist/cdn/assets/orchestrator/t9n/messages.it.json +1 -0
  488. package/dist/cdn/assets/orchestrator/t9n/messages.ja.json +1 -0
  489. package/dist/cdn/assets/orchestrator/t9n/messages.ko.json +1 -0
  490. package/dist/cdn/assets/orchestrator/t9n/messages.lt.json +1 -0
  491. package/dist/cdn/assets/orchestrator/t9n/messages.lv.json +1 -0
  492. package/dist/cdn/assets/orchestrator/t9n/messages.nl.json +1 -0
  493. package/dist/cdn/assets/orchestrator/t9n/messages.no.json +1 -0
  494. package/dist/cdn/assets/orchestrator/t9n/messages.pl.json +1 -0
  495. package/dist/cdn/assets/orchestrator/t9n/messages.pt-BR.json +1 -0
  496. package/dist/cdn/assets/orchestrator/t9n/messages.pt-PT.json +1 -0
  497. package/dist/cdn/assets/orchestrator/t9n/messages.ro.json +1 -0
  498. package/dist/cdn/assets/orchestrator/t9n/messages.ru.json +1 -0
  499. package/dist/cdn/assets/orchestrator/t9n/messages.sk.json +1 -0
  500. package/dist/cdn/assets/orchestrator/t9n/messages.sl.json +1 -0
  501. package/dist/cdn/assets/orchestrator/t9n/messages.sr.json +1 -0
  502. package/dist/cdn/assets/orchestrator/t9n/messages.sv.json +1 -0
  503. package/dist/cdn/assets/orchestrator/t9n/messages.th.json +1 -0
  504. package/dist/cdn/assets/orchestrator/t9n/messages.tr.json +1 -0
  505. package/dist/cdn/assets/orchestrator/t9n/messages.uk.json +1 -0
  506. package/dist/cdn/assets/orchestrator/t9n/messages.vi.json +1 -0
  507. package/dist/cdn/assets/orchestrator/t9n/messages.zh-CN.json +1 -0
  508. package/dist/cdn/assets/orchestrator/t9n/messages.zh-TW.json +1 -0
  509. package/dist/cdn/index.js +1 -1
  510. package/dist/cdn/main.css +1 -1
  511. package/dist/cdn/orchestrator/embeddings/getEmbeddings.js +2 -0
  512. package/dist/cdn/orchestrator/models/chatModel.js +2 -0
  513. package/dist/cdn/orchestrator/models/prompts.js +2 -0
  514. package/dist/cdn/orchestrator/signals.js +2 -0
  515. package/dist/cdn/orchestrator/state/runtime.js +2 -0
  516. package/dist/chunks/BaseWorkflow.js +52 -49
  517. package/dist/chunks/SKILL.js +5 -0
  518. package/dist/chunks/SKILL2.js +5 -0
  519. package/dist/chunks/SKILL3.js +22 -0
  520. package/dist/chunks/SKILL4.js +5 -0
  521. package/dist/chunks/adapter.js +20 -2156
  522. package/dist/chunks/adapter2.js +1129 -0
  523. package/dist/chunks/aiFactory.js +21 -0
  524. package/dist/chunks/aiUtilityService.js +29 -0
  525. package/dist/chunks/arcgisToolRegistry.js +92 -0
  526. package/dist/chunks/createSkillAgent.js +235 -0
  527. package/dist/chunks/fetchUtils.js +46 -0
  528. package/dist/chunks/getPrompt.js +32 -0
  529. package/dist/chunks/helpState.js +17 -0
  530. package/dist/chunks/intent_prompt.js +2 -0
  531. package/dist/chunks/layerQueryToolCalling.js +67 -0
  532. package/dist/chunks/layerStylingState.js +907 -0
  533. package/dist/chunks/localization.js +21 -0
  534. package/dist/chunks/modelConfig.js +12 -0
  535. package/dist/chunks/modelPricing.js +59 -0
  536. package/dist/chunks/navigationState.js +27 -0
  537. package/dist/chunks/observationSnapshot.js +110 -0
  538. package/dist/chunks/reducers.js +5 -0
  539. package/dist/chunks/requireAgentServices.js +11 -0
  540. package/dist/chunks/resolveGeometryFilter.js +149 -0
  541. package/dist/chunks/{baseAgentState.js → runtime2.js} +7 -6
  542. package/dist/chunks/runtimeSpans.js +103 -0
  543. package/dist/chunks/schema.js +45 -0
  544. package/dist/chunks/state.js +34 -23
  545. package/dist/chunks/textFormatters.js +8 -0
  546. package/dist/chunks/toolCallResponse.js +10 -23
  547. package/dist/chunks/utils.js +2 -2
  548. package/dist/chunks/utils2.js +15 -39
  549. package/dist/chunks/utils3.js +41 -10
  550. package/dist/chunks/webmapSchema.js +56 -0
  551. package/dist/components/arcgis-assistant/customElement.d.ts +54 -6
  552. package/dist/components/arcgis-assistant/customElement.js +268 -235
  553. package/dist/components/arcgis-assistant/types.d.ts +109 -1
  554. package/dist/components/arcgis-assistant-agent/customElement.d.ts +2 -2
  555. package/dist/components/arcgis-assistant-agent/customElement.js +330 -331
  556. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +15 -4
  557. package/dist/components/arcgis-assistant-chat-entry/customElement.js +344 -45
  558. package/dist/components/arcgis-assistant-chat-entry/index.js +3 -0
  559. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +24 -19
  560. package/dist/components/arcgis-assistant-help-agent/customElement.js +14 -18
  561. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -2
  562. package/dist/components/arcgis-assistant-interrupt/customElement.js +49 -15
  563. package/dist/components/arcgis-assistant-interrupt/index.js +1 -1
  564. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +1 -1
  565. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +19 -25
  566. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +13 -19
  567. package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
  568. package/dist/components/arcgis-assistant-message-log/customElement.js +4 -4
  569. package/dist/components/arcgis-assistant-message-text/customElement.js +1 -1
  570. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +24 -19
  571. package/dist/components/arcgis-assistant-observation-inspector/customElement.d.ts +18 -0
  572. package/dist/components/arcgis-assistant-observation-inspector/customElement.js +90 -0
  573. package/dist/components/arcgis-assistant-observation-inspector/index.d.ts +1 -0
  574. package/dist/components/arcgis-assistant-observation-inspector/index.js +14 -0
  575. package/dist/components/arcgis-assistant-observation-latency/customElement.d.ts +15 -0
  576. package/dist/components/arcgis-assistant-observation-latency/customElement.js +65 -0
  577. package/dist/components/arcgis-assistant-observation-latency/index.d.ts +1 -0
  578. package/dist/components/arcgis-assistant-observation-latency/index.js +5 -0
  579. package/dist/components/arcgis-assistant-observation-panel/customElement.d.ts +28 -0
  580. package/dist/components/arcgis-assistant-observation-panel/customElement.js +68 -0
  581. package/dist/components/arcgis-assistant-observation-panel/index.d.ts +1 -0
  582. package/dist/components/arcgis-assistant-observation-panel/index.js +7 -0
  583. package/dist/components/arcgis-assistant-observation-panel/support/modelPricing.d.ts +34 -0
  584. package/dist/components/arcgis-assistant-observation-panel/support/observationSnapshot.d.ts +63 -0
  585. package/dist/components/arcgis-assistant-observation-panel/support/runtimeSpans.d.ts +36 -0
  586. package/dist/components/arcgis-assistant-observation-run/customElement.d.ts +21 -0
  587. package/dist/components/arcgis-assistant-observation-run/customElement.js +43 -0
  588. package/dist/components/arcgis-assistant-observation-run/index.d.ts +1 -0
  589. package/dist/components/arcgis-assistant-observation-run/index.js +7 -0
  590. package/dist/components/arcgis-assistant-observation-usage/customElement.d.ts +22 -0
  591. package/dist/components/arcgis-assistant-observation-usage/customElement.js +82 -0
  592. package/dist/components/arcgis-assistant-observation-usage/index.d.ts +1 -0
  593. package/dist/components/arcgis-assistant-observation-usage/index.js +5 -0
  594. package/dist/components/assistant/assistant-agents/types.d.ts +19 -0
  595. package/dist/docs/api.json +1 -1
  596. package/dist/docs/docs.json +1 -1
  597. package/dist/docs/vscode.html-custom-data.json +1 -1
  598. package/dist/docs/web-types.json +1 -1
  599. package/dist/index.d.ts +20 -0
  600. package/dist/loader.js +11 -6
  601. package/dist/orchestrator/embeddings/cosineSimilarity.d.ts +12 -0
  602. package/dist/orchestrator/embeddings/cosineSimilarity.js +18 -0
  603. package/dist/orchestrator/embeddings/getEmbeddings.d.ts +7 -0
  604. package/dist/orchestrator/embeddings/getEmbeddings.js +12 -0
  605. package/dist/orchestrator/embeddings/webmapEmbeddings.d.ts +15 -0
  606. package/dist/orchestrator/embeddings/webmapEmbeddings.js +141 -0
  607. package/dist/orchestrator/embeddings/webmapSchema.d.ts +50 -0
  608. package/dist/orchestrator/models/chatModel.d.ts +22 -0
  609. package/dist/orchestrator/models/chatModel.js +19 -0
  610. package/dist/orchestrator/models/modelConfig.d.ts +2 -0
  611. package/dist/orchestrator/models/prompts.d.ts +105 -0
  612. package/dist/orchestrator/models/prompts.js +46 -0
  613. package/dist/orchestrator/orchestrator/orchestrator.d.ts +75 -0
  614. package/dist/orchestrator/orchestrator/orchestrator.js +977 -0
  615. package/dist/orchestrator/orchestrator/orchestratorEvents.d.ts +127 -33
  616. package/dist/orchestrator/orchestrator/orchestratorEvents.js +2 -0
  617. package/dist/orchestrator/providers/arcgis/aiFactory.d.ts +17 -0
  618. package/dist/orchestrator/registry/agentRegistry.d.ts +10 -0
  619. package/dist/orchestrator/services/fieldSearch.d.ts +17 -0
  620. package/dist/orchestrator/services/layerSearch.d.ts +18 -0
  621. package/dist/orchestrator/signals.d.ts +66 -0
  622. package/dist/orchestrator/signals.js +12 -0
  623. package/dist/orchestrator/state/runtime.d.ts +31 -0
  624. package/dist/orchestrator/state/runtime.js +8 -0
  625. package/dist/orchestrator/state/types.d.ts +67 -0
  626. package/dist/orchestrator/state/types.js +2 -0
  627. package/dist/orchestrator/types.d.ts +305 -0
  628. package/dist/orchestrator/types.js +2 -0
  629. package/dist/types/lumina.d.ts +27 -2
  630. package/dist/types/preact.d.ts +32 -2
  631. package/dist/types/react.d.ts +37 -2
  632. package/dist/types/stencil.d.ts +27 -2
  633. package/dist/utils/index.d.ts +167 -37
  634. package/dist/utils/index.js +40 -113
  635. package/package.json +36 -13
  636. package/dist/agent-utils/index.d.ts +0 -177
  637. package/dist/agent-utils/index.js +0 -167
  638. package/dist/agentic-workflow/AgenticWorkflowRuntime.d.ts +0 -24
  639. package/dist/agentic-workflow/Edge.d.ts +0 -16
  640. package/dist/agentic-workflow/WebAgent.d.ts +0 -39
  641. package/dist/agentic-workflow/nodes/AgentNode.d.ts +0 -28
  642. package/dist/agentic-workflow/nodes/BaseNode.d.ts +0 -35
  643. package/dist/agentic-workflow/nodes/EndMessageNode.d.ts +0 -25
  644. package/dist/agentic-workflow/nodes/StartNode.d.ts +0 -21
  645. package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +0 -21
  646. package/dist/agentic-workflow/types.d.ts +0 -29
  647. package/dist/cdn/2EY3BQQX.js +0 -2
  648. package/dist/cdn/2O4DON37.js +0 -2
  649. package/dist/cdn/3UEKINYC.js +0 -2
  650. package/dist/cdn/4OGR5QKS.js +0 -2
  651. package/dist/cdn/4WIDLQUH.js +0 -2
  652. package/dist/cdn/5FL5BTTX.js +0 -66
  653. package/dist/cdn/5X7EG7D2.js +0 -2
  654. package/dist/cdn/5ZFUGNRN.js +0 -2
  655. package/dist/cdn/6HF36IKA.js +0 -2
  656. package/dist/cdn/6KN5LUAV.js +0 -36
  657. package/dist/cdn/6OOZSZRJ.js +0 -2
  658. package/dist/cdn/6P44KOKX.js +0 -2
  659. package/dist/cdn/6YYPVU7H.js +0 -3
  660. package/dist/cdn/7BCQMK6D.js +0 -2
  661. package/dist/cdn/7V6OSTFC.js +0 -2
  662. package/dist/cdn/7VAQUCBU.js +0 -9
  663. package/dist/cdn/7VUSIGEM.js +0 -2
  664. package/dist/cdn/7ZFAFKJT.js +0 -2
  665. package/dist/cdn/AA4FBYKK.js +0 -2
  666. package/dist/cdn/ACJTJLZN.js +0 -2
  667. package/dist/cdn/AI6DYOKR.js +0 -181
  668. package/dist/cdn/ANRQWYU2.js +0 -2
  669. package/dist/cdn/APFZY4PI.js +0 -2
  670. package/dist/cdn/ASR3I43T.js +0 -14
  671. package/dist/cdn/B2JDVLA6.js +0 -2
  672. package/dist/cdn/B2T7D57Y.js +0 -2
  673. package/dist/cdn/CCC6LBMY.js +0 -2
  674. package/dist/cdn/CJMUJXPL.js +0 -2
  675. package/dist/cdn/CP5BVGJU.js +0 -2
  676. package/dist/cdn/CZM4URK7.js +0 -2
  677. package/dist/cdn/D5UFYQHN.js +0 -44
  678. package/dist/cdn/EKWM5K4K.js +0 -2
  679. package/dist/cdn/EWLXNGKH.js +0 -208
  680. package/dist/cdn/EYOWRGDP.js +0 -2
  681. package/dist/cdn/F5NIRETW.js +0 -2
  682. package/dist/cdn/FG647IP6.js +0 -2
  683. package/dist/cdn/FUF3NAU7.js +0 -2
  684. package/dist/cdn/G2EGT3CF.js +0 -6
  685. package/dist/cdn/G7OMHU2B.js +0 -2
  686. package/dist/cdn/GFEOVHJK.js +0 -2
  687. package/dist/cdn/HAEFC2SJ.js +0 -2
  688. package/dist/cdn/HDACNIZF.js +0 -2
  689. package/dist/cdn/HNADFHYH.js +0 -2
  690. package/dist/cdn/IBZ2NEAO.js +0 -2
  691. package/dist/cdn/IC3LG6TH.js +0 -18
  692. package/dist/cdn/J6SZIQJA.js +0 -2
  693. package/dist/cdn/JCOA24UH.js +0 -3
  694. package/dist/cdn/JKIESH74.js +0 -2
  695. package/dist/cdn/JO5ETMPS.js +0 -2
  696. package/dist/cdn/LNCT4S4I.js +0 -22
  697. package/dist/cdn/MX7OEO5Z.js +0 -156
  698. package/dist/cdn/MXTXJKFE.js +0 -2
  699. package/dist/cdn/MY47B3CE.js +0 -3
  700. package/dist/cdn/NEZXHUAL.js +0 -2
  701. package/dist/cdn/NSHLOFIY.js +0 -2
  702. package/dist/cdn/NZSOJ726.js +0 -2
  703. package/dist/cdn/O4NVW75A.js +0 -2
  704. package/dist/cdn/OAKRPM7D.js +0 -2
  705. package/dist/cdn/OE3GW5LE.js +0 -2
  706. package/dist/cdn/PUHRBGKB.js +0 -2
  707. package/dist/cdn/Q57QWN5W.js +0 -2
  708. package/dist/cdn/QNNGPA3Q.js +0 -2
  709. package/dist/cdn/R2PQVY4O.js +0 -2
  710. package/dist/cdn/RBE55SWR.js +0 -2
  711. package/dist/cdn/RHYNE5OE.js +0 -2
  712. package/dist/cdn/RLEHNAIA.js +0 -2
  713. package/dist/cdn/SXM4NUT5.js +0 -2
  714. package/dist/cdn/SZ2QSSB3.js +0 -2
  715. package/dist/cdn/T4RIGOXB.js +0 -2
  716. package/dist/cdn/U2D53TAX.js +0 -14
  717. package/dist/cdn/UAANWCMU.js +0 -44
  718. package/dist/cdn/UDRKUVZP.js +0 -2
  719. package/dist/cdn/UHZG7SKO.js +0 -2
  720. package/dist/cdn/V52XWEGV.js +0 -11
  721. package/dist/cdn/V6HOUZPZ.js +0 -2
  722. package/dist/cdn/VLLZ2FFU.js +0 -2
  723. package/dist/cdn/WGO5SER7.js +0 -6
  724. package/dist/cdn/WJXXOKGA.js +0 -9
  725. package/dist/cdn/WKTQVBFJ.js +0 -2
  726. package/dist/cdn/WSWB3B7B.js +0 -2
  727. package/dist/cdn/Y7XD7ZRD.js +0 -2
  728. package/dist/cdn/YLVJA4ZE.js +0 -2
  729. package/dist/cdn/YWN57GH4.js +0 -2
  730. package/dist/cdn/ZDV4K4WG.js +0 -2
  731. package/dist/cdn/ZOEMBHRF.js +0 -2
  732. package/dist/cdn/agent-utils/index.js +0 -2
  733. package/dist/chunks/generateLayerDescriptions.js +0 -417
  734. package/dist/chunks/index.js +0 -11
  735. package/dist/chunks/orchestrator.js +0 -778
  736. package/dist/chunks/types.js +0 -59
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as C,c as q}from"./V6HOUZPZ.js";import"./3UEKINYC.js";import"./RLEHNAIA.js";import d from"./G7OMHU2B.js";import"./CP5BVGJU.js";import b from"./7VUSIGEM.js";import{a as R,b as F,e as L}from"./R2PQVY4O.js";import a from"./D5UFYQHN.js";import{e as P}from"./G2EGT3CF.js";import{v as A,z as J}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./HHFNQR6Z.js";import"./VOKXKU7M.js";import{W as I,ka as T}from"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import{Dd as c}from"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([W,K,{property:n,subclass:l},b,E,,,,,,,D,M])=>{var Q=Object.defineProperty,U=Object.getOwnPropertyDescriptor,f=(t,e,r,s)=>{for(var o=s>1?void 0:s?U(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&Q(e,r,o),o},p=class extends E{constructor(t){super(t)}static fromJSON(t){return new p({id:t.id,sourceAnchorId:t.source_anchor_id,sourceNodeId:t.source_node_id,targetAnchorId:t.target_anchor_id,targetNodeId:t.target_node_id})}};f([n()],p.prototype,"id",2);f([n()],p.prototype,"sourceAnchorId",2);f([n()],p.prototype,"sourceNodeId",2);f([n()],p.prototype,"targetAnchorId",2);f([n()],p.prototype,"targetNodeId",2);p=f([l("Edge")],p);var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,O=(t,e,r,s)=>{for(var o=s>1?void 0:s?Y(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&X(e,r,o),o},m=class extends E{constructor(t){super(t)}async load(){return await Promise.resolve(this)}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:t.outgoingEdges.map(e=>({from:this.id,to:e.targetNodeId}))}}static fromJSON(t){throw new Error("BaseNode is abstract and cannot be instantiated directly.")}};O([n()],m.prototype,"id",2);O([n()],m.prototype,"label",2);O([n()],m.prototype,"type",2);m=O([l("BaseNode")],m);function G(t){let e=new Set(t.required),r=Object.fromEntries(Object.entries(t.properties).map(([s,o])=>{let a=$(o);return[s,e.has(s)?a:a.optional()]}));return c.object(r)}function $(t){let e;switch(t.type){case"array":e=c.array(t.items?$(t.items):c.unknown());break;case"boolean":e=c.boolean();break;case"number":e=c.number();break;case"object":e=G({properties:t.properties??{},required:t.required});break;case"string":e=t.enum?.length?c.enum(t.enum):c.string();break}return t.description?e.describe(t.description):e}var tt=new Map([["clear_filters",async()=>(await import("./RBE55SWR.js")).clearFiltersTool],["reset_map",async()=>(await import("./T4RIGOXB.js")).resetMapTool],["set_feature_effect",async()=>(await import("./UHZG7SKO.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["list_layer_fields",async()=>(await import("./CJMUJXPL.js")).listLayerFieldsTool],["go_to_address",async()=>(await import("./7ZFAFKJT.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["go_to_bookmark",async()=>(await import("./2EY3BQQX.js")).goToBookmarkTool],["go_to_features",async()=>(await import("./5X7EG7D2.js")).goToFeaturesTool],["go_to_full_extent",async()=>(await import("./YLVJA4ZE.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["go_to_home_extent",async()=>(await import("./JO5ETMPS.js")).goToHomeExtentTool],["go_to_layer",async()=>(await import("./Q57QWN5W.js")).goToLayerTool],["go_to_scale",async()=>(await import("./4OGR5QKS.js")).goToScaleTool],["go_to_viewpoint",async()=>(await import("./ZOEMBHRF.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["go_to_zoom",async()=>(await import("./PUHRBGKB.js")).goToZoomTool],["find_relevant_fields",async()=>(await import("./7BCQMK6D.js").then(m=>m.default.then(e=>({findRelevantFieldsTool:e})))).findRelevantFieldsTool],["find_relevant_layers",async()=>(await import("./IBZ2NEAO.js")).findRelevantLayersTool],["get_attribute",async()=>(await import("./7V6OSTFC.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["get_statistics",async()=>(await import("./4WIDLQUH.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["get_top_features",async()=>(await import("./GFEOVHJK.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["query_features",async()=>(await import("./CZM4URK7.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function et(t){let e=tt.get(t);if(!e)throw new Error(`ArcGIS tool is not supported in the browser runtime: ${t}`);return await e()}var ot=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,N=(t,e,r,s)=>{for(var o=s>1?void 0:s?rt(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&ot(e,r,o),o},u=class extends E{constructor(t){super(t),this.type="arcgis-tool"}async createRuntimeTools(){if(!this.name)throw new Error("ArcgisTool name is required");return[await et(this.name)]}static fromJSON(t){return new u({name:t.name,requireApproval:t.require_approval})}};N([n()],u.prototype,"name",2);N([n()],u.prototype,"requireApproval",2);N([n()],u.prototype,"type",2);u=N([l("ArcgisTool")],u);var st=Object.defineProperty,at=Object.getOwnPropertyDescriptor,B=t=>{throw TypeError(t)},w=(t,e,r,s)=>{for(var o=s>1?void 0:s?at(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&st(e,r,o),o},it=(t,e,r)=>e.has(t)||B("Cannot "+r),nt=(t,e,r)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ct=(t,e,r)=>(it(t,e,"access private method"),r),S,z,d=class extends m{constructor(t){super(t),nt(this,S),this.type="agent-node"}createRuntimeNode(){let t;return async(e,r)=>{t??=ct(this,S,z).call(this);let s=await(await t).run(e,r),o=this.outputSchema?.safeParse(s);if(o&&!o.success)throw o.error;let a=o?.data,i=a??s.outputMessage;return{agentExecutionContext:s.agentExecutionContext,...a?{}:{outputMessage:s.outputMessage},status:s.status,summary:s.summary,nodes:{[this.id]:{output:i}}}}}compile(t){let e=t.outgoingEdges[0]?.targetNodeId;return{runtimeNode:this.createRuntimeNode(),edges:[{from:this.id,decide:r=>r.status==="failed"?void 0:e}],schemas:[c.object({output:this.outputSchema??c.string()})]}}static fromJSON(t){let e=new d({id:t.id,label:t.label,prompt:t.prompt?.content,type:"agent-node",modelTier:t.llm_model?.model_tier});return t.structured_output&&(e.outputSchema=G(t.structured_output)),e.tools=t.tools?.filter(r=>r.type==="arcgis_tool").map(r=>u.fromJSON(r)),e}};S=new WeakSet;z=async function(){let t=this.prompt;if(!t?.trim())throw new Error(`WebAgent agent node "${this.id}" requires a prompt.`);let e=[];if(this.tools)for(let r of this.tools){let s=await r.createRuntimeTools();e.push(...s)}return new M({name:this.id,outputSchema:this.outputSchema,modelTier:this.modelTier,prompt:t,tools:e})};w([n()],d.prototype,"type",2);w([n()],d.prototype,"prompt",2);w([n()],d.prototype,"outputSchema",2);w([n()],d.prototype,"tools",2);w([n()],d.prototype,"modelTier",2);d=w([l("AgentNode")],d);var pt=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,k=(t,e,r,s)=>{for(var o=s>1?void 0:s?dt(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&pt(e,r,o),o},h=class extends m{constructor(t){super(t),this.type="end-message-node"}createRuntimeNode(){return async t=>{let e=await I.fromTemplate(this.message,{templateFormat:"mustache"}).format(t);return{outputMessage:e,status:"success",summary:e}}}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:[]}}static fromJSON(t){let e=new h({id:t.id,label:t.label,type:"end-message-node"});return e.message=t.message,e}};k([n()],h.prototype,"type",2);k([n()],h.prototype,"message",2);h=k([l("EndMessageNode")],h);var mt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,H=(t,e,r,s)=>{for(var o=s>1?void 0:s?ut(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&mt(e,r,o),o},y=class extends m{constructor(t){super(t),this.type="start-node"}createRuntimeNode(){return t=>({question:t.agentExecutionContext.userRequest})}static fromJSON(t){return new y({id:t.id,label:t.label,type:"start-node"})}};H([n()],y.prototype,"type",2);y=H([l("StartNode")],y);function lt(t){switch(t.type){case"agent_node":return d.fromJSON(t);case"end_message_node":return h.fromJSON(t);case"start_node":return y.fromJSON(t);default:throw new Error(`WebAgent node "${t.id}" uses unsupported type "${t.type}".`)}}function ht(t={}){let e=Object.keys(t);if(R(e),e.includes("nodes"))throw new Error("node state cannot define reserved field: nodes.");let r=F(t);return T.Root({...r,nodes:T({reducer:(s,o)=>({...s,...o}),default:()=>({})}),...P()})}function V(t){let e=new Set;for(let s of t)for(let o of Object.keys(s.shape??{}))o!=="nodes"&&e.add(o);let r=Object.fromEntries([...e].map(s=>[s,void 0]));return ht(r)}var v=class t{constructor(e,r,s){this.sourceJSON=e,this.edges=r,this.nodes=s,this._loaded=!1}static fromJSON(e){return new t(e,e.graph.edges.map(r=>p.fromJSON(r)),e.graph.nodes.map(r=>lt(r)))}async load(){return this._loadPromise??=Promise.all(this.nodes.map(async e=>await e.load())).then(()=>{this._loaded=!0}),await this._loadPromise,this}getSchemas(){let e=Object.fromEntries(this._getNodeCompilations().flatMap((r,s)=>{let o=this.nodes[s];return r.schemas?.map(a=>[o.id,a])??[]}));return[c.object({loopCounts:c.record(c.string(),c.number()).optional(),nodes:c.object(e).partial().optional(),question:c.string().optional()})]}generate(){this._assertLoaded(),this._nodeCompilations=void 0;let e=this._getNodeCompilations(),r=V(this.getSchemas()),s=this.nodes.find(i=>i.type==="start-node")?.id,o={},a=[];for(let[i,Z]of this.nodes.entries()){let _=e[i];_&&(_.runtimeNode&&(o[Z.id]=_.runtimeNode),a.push(..._.edges))}return{createGraph:()=>L(o,a,r,{entryNode:s}),workspace:r}}_assertLoaded(){if(!this._loaded)throw new Error("AgenticWorkflowRuntime must be loaded before it can generate a graph.")}_getNodeCompilations(){return this._assertLoaded(),this._nodeCompilations??=this.nodes.map(e=>e.compile({outgoingEdges:this.edges.filter(r=>r.sourceNodeId===e.id)}))}},gt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,x=(t,e,r,s)=>{for(var o=s>1?void 0:s?ft(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(s?i(e,r,o):i(o))||o);return s&&o&&gt(e,r,o),o},wt=()=>{throw new Error("WebAgent must be loaded before it can run.")},g=class extends D{constructor(t){super(t)}async load(){if(this.portalItem){try{await this.portalItem.load()}catch(r){throw new b("web-agent:load-portal-item","Failed to load portal item",{error:r})}let e=await this.portalItem.fetchData();if(this.sourceJSON=e,!this.portalItem.title)throw new b("web-agent:missing-title","The portal item is missing a title")}if(!this.sourceJSON)throw new b("web-agent:missing-source-json","The source JSON is missing");if(!this.sourceJSON.description)throw new b("web-agent:missing-description","The source JSON is missing a description");let t=v.fromJSON(this.sourceJSON);return await t.load(),this._runtime=t,this.description=this.sourceJSON.description,this.name=this.portalItem?.title??`web-agent-${Date.now()}`,this.generate(),this}getSchemas(){return this._runtime?.getSchemas()??[]}generate(){if(!this._runtime){this._set("workspace",V([])),this._set("createGraph",wt);return}let{createGraph:t,workspace:e}=this._runtime.generate();this._set("workspace",e),this._set("createGraph",t)}};x([n({type:W})],g.prototype,"portalItem",2);x([n()],g.prototype,"sourceJSON",2);g=x([l("WebAgent")],g);var j=class extends A{static{this.properties={agent:0,context:0,itemId:1,workflow:0}}#t;async getContext(){return C(this.context)?await this.context():this.context}async load(){let e;if(this.itemId){let r=K.getDefault();e=new g({portalItem:new W({id:this.itemId,portal:r})})}else this.workflow&&(e=new g({sourceJSON:this.workflow}));if(e&&(await e.load(),this.agent=e.registration),!this.agent)throw new Error("Failed to initialize the assistant agent because the agent registration is missing.");this.#t=q(this)}disconnectedCallback(){this.#t?.unregister(this.agent.id),super.disconnectedCallback()}};J("arcgis-assistant-agent",j);return j},"portal/PortalItem","portal/Portal","core/accessorSupport/decorators","core/Error","core/Accessor","identity/IdentityManager","request","config","core/reactiveUtils","layers/FeatureLayer",a,b,d)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import q from"./ASR3I43T.js";import p from"./SZ2QSSB3.js";import n from"./MX7OEO5Z.js";import{a as o,c as m}from"./V6HOUZPZ.js";import l from"./KITIP6J2.js";import"./Z5W4V7RC.js";import k from"./KWD2ECTM.js";import j from"./U2D53TAX.js";import h from"./OAKRPM7D.js";import g from"./V52XWEGV.js";import f from"./CCC6LBMY.js";import"./34O57OGV.js";import"./7SRLZQVC.js";import"./FDOMMK2M.js";import e from"./6HF36IKA.js";import"./Y7XD7ZRD.js";import"./VLLZ2FFU.js";import d from"./5ZFUGNRN.js";import"./LLUGJKAQ.js";import"./WKTQVBFJ.js";import"./K2R6XVK3.js";import"./3UEKINYC.js";import"./RLEHNAIA.js";import c from"./D5UFYQHN.js";import"./G2EGT3CF.js";import"./5WYRJMBW.js";import"./YEZ3AMNX.js";import b from"./JKIESH74.js";import a from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import{v as i,z as r}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./VOKXKU7M.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,,,,p])=>{var t=class extends i{constructor(){super(...arguments),this.agent=p}static{this.properties={referenceElement:1}}#t;#i;getContext(){if(!this.#t)throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=o(this,"arcgis-assistant-layer-styling-agent"),this.#i=m(this)}disconnectedCallback(){this.#i?.unregister(this.agent.id),super.disconnectedCallback()}};r("arcgis-assistant-layer-styling-agent",t);return t},"identity/IdentityManager","portal/Portal","request","config","core/reactiveUtils","layers/FeatureLayer","intl","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/knowledgeGraphService",a,b,c,d,e,f,g,h,j,k,l,n,p,q)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./ANRQWYU2.js";import"./R2PQVY4O.js";import"./G2EGT3CF.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:g,subclass:p},{c:d,d:u}])=>{var f=Object.defineProperty,w=Object.getOwnPropertyDescriptor,c=(e,r,n,o)=>{for(var t=o>1?void 0:o?w(r,n):r,i=e.length-1,a;i>=0;i--)(a=e[i])&&(t=(o?a(r,n,t):a(t))||t);return o&&t&&f(r,n,t),t},s=class extends u{constructor(e){super(e)}getAgents(){return this.agents}buildNodes(e){let r=super.buildNodes(e);return r[l]=()=>({}),r}buildEdges(e){let r=this.condition;if(!r)throw new Error("ConditionalWorkflow requires a condition.");let n=d(e[0],0),o=d(e[1],1);return[{from:l,decide:async(t,i)=>await Promise.resolve(r(t,i))?n:o}]}getEntryNode(){return l}isTerminalAgent(){return!0}validateAgents(e){if(super.validateAgents(e),e.length!==2)throw new Error(`ConditionalWorkflow requires exactly 2 agents; received ${e.length}.`)}};c([g()],s.prototype,"condition",2);c([g()],s.prototype,"agents",2);s=c([p("ConditionalWorkflow")],s);var l="__conditional_decide";return s},"core/accessorSupport/decorators",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as n}from"./6OOZSZRJ.js";import"./RLEHNAIA.js";import{g as i,h as a,v as t,z as e}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var r=i`:host{display:contents}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.loading-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);padding:0 var(--calcite-spacing-sm)}.loading{display:flex;align-items:center;gap:var(--calcite-spacing-sm)}.text{font-style:italic;word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical}.skeleton-block{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);width:100%}.skeleton-text{display:block;height:.95em;border-radius:var(--calcite-border-radius);background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-message-loading-shimmer 1.2s ease-in-out infinite;width:85%}.skeleton-text:last-child{width:70%}@keyframes assistant-message-loading-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.skeleton-text{animation:none}}`,s=class extends t{constructor(){super(...arguments),this._messages=n({blocking:!0}),this.loading=!1,this.loadingMessage="",this.assistantAvatarEnabled=!1}static{this.properties={loading:5,loadingMessage:1,assistantAvatarEnabled:5,interrupts:0}}static{this.styles=r}render(){return this.loading?a`<arcgis-assistant-message .assistantAvatarEnabled=${this.assistantAvatarEnabled} footer-disabled>${this.assistantAvatarEnabled?a`<slot name=icon slot=icon><calcite-icon class="icon" icon=effects scale=s></calcite-icon></slot>`:null}<slot name=content slot=content><arcgis-assistant-interrupt-preview .interrupts=${this.interrupts}></arcgis-assistant-interrupt-preview><div class="loading-container"><div class="loading"><calcite-loader .label=${this._messages.loadingLabel} inline></calcite-loader><div class="text">${this.loadingMessage}</div></div><div class="skeleton-block"><span class="skeleton-text"></span><span class="skeleton-text"></span></div></div></slot></arcgis-assistant-message>`:null}};e("arcgis-assistant-message-loading",s);export{s as ArcgisAssistantMessageLoading};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./CCC6LBMY.js";import{a as F,b as T}from"./34O57OGV.js";import a from"./QNNGPA3Q.js";import{a as h}from"./ONQ6JSBJ.js";import{Dc as g}from"./AI6DYOKR.js";import{a as e}from"./VXFQANGJ.js";export default $arcgis.t(([I,x,{c:b,d:y},{d:w}])=>{var k=o=>o.flatMap(t=>t.split(",")).map(t=>t.trim()).map(t=>t.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(t=>!!t),j=async(o,t,n,a,u)=>{let s=n.map?.allLayers.find(i=>i.id===o.layerId),d=await n.whenLayerView(s),c=s.title??o.layerId,l;if(a){let i=await b(a,n);if("error"in i)return{tool:"getTopFeatures",layerName:c,summary:"Geometry lookup failed",details:{error:i.error}};if(!i.geometry)return{tool:"getTopFeatures",layerName:c,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in a?a.where:"unknown criteria"}`}};l=i.geometry}else u&&(l=n.extent.clone());let m=t.groupByFields&&t.groupByFields.length>0,p=s.objectIdField,f=o.outFields.includes("*")?["*"]:[...new Set([...o.outFields,p])];try{let i;if(m){let r=new I({where:o.where||"1=1",outFields:f,orderByFields:o.orderByFields,geometry:l,spatialRelationship:l?"intersects":void 0,distance:a?.distance,units:a?.units,topFilter:new x({topCount:t.topCount,groupByFields:t.groupByFields,orderByFields:t.orderByFields})});i=await s.queryTopFeatures(r)}else{let r=s.createQuery();r.where=T(s.definitionExpression,o.where||"1=1"),r.outFields=f.length?f:["*"],r.orderByFields=t.orderByFields,r.returnGeometry=!1,r.num=t.topCount,l&&(r.geometry=l,r.spatialRelationship="intersects"),a?.distance&&(r.distance=a.distance),a?.units&&(r.units=a.units),r.outSpatialReference=n.spatialReference;let C=[...new Set([...o.outFields,...k(t.orderByFields)])],v=F(d,C,u??!1);try{i=v?await d.queryFeatures(r):await s.queryFeatures(r)}catch(N){console.warn("Client-side query failed, falling back to server:",N),i=await s.queryFeatures(r)}}let B=i.features.map(r=>r.attributes[p]),{attributes:S}=w(s,i,n.timeZone);return{tool:"getTopFeatures",layerName:c,summary:`Top ${t.topCount} features extracted`,details:{topCount:t.topCount,attributes:S,objectIds:B,objectIdField:p,where:o.where,orderByFields:t.orderByFields,...m&&{groupByFields:t.groupByFields}}}}catch(i){return{tool:"getTopFeatures",layerName:c,summary:"Query failed",details:{error:i instanceof Error?i.message:String(i)}}}},q=async({targetLayer:o,topFilter:t,geometryFilter:n,useCurrentExtent:a},u)=>{let{mapView:s}=h(u,["mapView"]),d=await j(o,t,s,n,a);return JSON.stringify(d,null,2)},R=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:y.optional().describe("The units for the distance buffer.")}),L=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:y.optional().describe("The units for the distance buffer.")}),D=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([R,L]).optional().describe("Geometry filter for spatial queries. Use 'point' option with x/y coordinates from navigation results to find features at that location (point-in-polygon). Use 'layerId/where' option to filter by features from another layer."),topFilter:e.object({topCount:e.number().describe("Number of top features to return per group."),orderByFields:e.array(e.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:e.array(e.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),$=g(q,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:D});return $},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./ANRQWYU2.js";import{e as l}from"./R2PQVY4O.js";import"./G2EGT3CF.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:g,subclass:u},{d:w}])=>{var f=Object.defineProperty,m=Object.getOwnPropertyDescriptor,c=(o,r,n,s)=>{for(var e=s>1?void 0:s?m(r,n):r,a=o.length-1,t;a>=0;a--)(t=o[a])&&(e=(s?t(r,n,e):t(e))||e);return s&&e&&f(r,n,e),e},p=class extends w{constructor(o){super(o)}getAgents(){return this.workflow.getAgents()}generate(){let o=this.workflow.generate(),r=o.workspace,n=o.createGraph().compile(),{decideContinue:s}=this,e={[i]:async(t,d)=>await n.invoke(t,d)},a=[{from:i,decide:async(t,d)=>await Promise.resolve(s(t,d))?i:void 0}];return{workspace:r,createGraph:()=>l(e,a,r,{entryNode:i})}}buildEdges(){throw new Error("LoopWorkflow overrides generate(); buildEdges should not be called.")}getEntryNode(){return i}isTerminalAgent(){return!0}};c([g()],p.prototype,"workflow",2);c([g()],p.prototype,"decideContinue",2);p=c([u("LoopWorkflow")],p);var i="__loop_body";return p},"core/accessorSupport/decorators",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./Z5W4V7RC.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as goToZoomTool};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./WKTQVBFJ.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as goToLayerTool};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as f}from"./VXFQANGJ.js";export default $arcgis.t(([y,u])=>{var m=750;function c(e){return"point"in e&&e.point!==void 0}function d(e){return"layerId"in e&&e.layerId!==void 0}var w=async(e,a)=>{if(c(e)){let{point:r}=e;return{geometry:new y({x:r.x,y:r.y,spatialReference:r.spatialReference?{wkid:r.spatialReference.wkid}:a.spatialReference})}}if(d(e)){let r=a.map?.allLayers.find(t=>t.id===e.layerId);if(!r)return{error:`Could not find geometry layer with ID: ${e.layerId}`};let l=r.title??r.id,s=e.where?.trim()||"1=1";try{let t=await r.queryFeatures({where:s,returnGeometry:!0,outSpatialReference:a.spatialReference,num:m+1});if(!t.features.length)return{error:`No features found in geometry layer "${l}" with the specified where clause: ${s}`};if(t.features.length>m)return{error:`Geometry filter for layer "${l}" matched too many features (${t.features.length}+). Please narrow the geometry layer filter.`};let i=t.features.map(o=>o.geometry).filter(o=>!!o);if(!i.length)return{error:"No valid geometries found for the matched geometry layer features."};let n=i.length===1?i[0]:u.executeMany(i);return n?(n.spatialReference||(n.spatialReference=a.spatialReference),{geometry:n}):{error:"Failed to combine geometries from geometry layer."}}catch(t){return{error:`Failed to query geometry: ${String(t)}`}}}return{error:"Invalid geometry configuration provided"}},g=["feet","kilometers","meters","miles","nautical-miles","us-nautical-miles"],R=f.enum(g);return{a:c,b:d,c:w,d:R}},"geometry/Point","geometry/operators/unionOperator")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as b}from"./G2EGT3CF.js";import{Ya as G,a as E,b as y,ka as h}from"./EWLXNGKH.js";var x=new Set(["agentExecutionContext","outputMessage","summary","status"]);function O(r){let o=[...new Set([...r].filter(n=>x.has(n)))];if(o.length!==0)throw new Error(`custom state cannot define reserved runtime fields: ${o.join(", ")}.`)}function $(r){let o=Object.entries(r);return Object.fromEntries(o.map(([n,t])=>[n,h({reducer:(i,g)=>g,default:()=>t})]))}function S(r={}){O(Object.keys(r));let o=$(r);return h.Root({...o,agentExecutionContext:h({reducer:(n,t)=>({...n,...t}),default:b}),outputMessage:h({reducer:(n="",t)=>typeof t=="string"&&t.trim()?t:n,default:()=>""}),summary:h({reducer:(n="",t)=>typeof t=="string"?t:n,default:()=>""}),status:h({reducer:(n,t)=>t??n,default:()=>{}})})}function C(r){let o=new Set;for(let t of r)for(let i of Object.keys(t.shape??{}))o.add(i);let n=Object.fromEntries([...o].map(t=>[t,void 0]));return S(n)}function P(r,o,n,t={}){let{agent:i,entryNode:g,middlewares:c=[]}=t,s=new G(n);if(Object.keys(r).length===0)throw new Error("Graph requires at least one node.");if(o.length===0)throw new Error("Graph requires at least one edge.");if(c.length>0&&!i)throw new Error("Graph middleware requires agent metadata.");let a=new Set(Object.keys(r)),m=new Map,w=new Map;for(let e of a)m.set(e,0),w.set(e,0);for(let e of o)"to"in e?(a.has(e.from)&&w.set(e.from,(w.get(e.from)??0)+1),a.has(e.to)&&m.set(e.to,(m.get(e.to)??0)+1)):a.has(e.from)&&w.set(e.from,(w.get(e.from)??0)+1);for(let[e,f]of Object.entries(r)){let u=N(i,e,c,async(d,p)=>await Promise.resolve(f(d,p))),l=async(d,p)=>await u(d,p);s=s.addNode(e,l)}for(let e of o)if("to"in e){let f=e.from,u=e.to;if(!a.has(f))throw new Error(`Graph edge references unknown from-node: ${f}`);if(!a.has(u))throw new Error(`Graph edge references unknown to-node: ${u}`);s.addEdge(f,u)}else{let f=e.from;if(!a.has(f))throw new Error(`Graph conditional edge references unknown from-node: ${f}`);s.addConditionalEdges(f,async(u,l)=>{let d=await e.decide(u,l);if(!d)return y;if(!a.has(d))throw new Error(`Graph conditional edge returned unknown node: ${d}`);return d})}let k=v(a,m,g);s.addEdge(E,k);let j=[...a].filter(e=>(w.get(e)??0)===0);for(let e of j)s.addEdge(e,y);return s}function N(r,o,n,t){return!n.length||!r?t:async(i,g)=>await n.reduceRight((c,s)=>async a=>await s.handler(a,c),async c=>{let s=await t(c.state,c.config);return{...c.state,...s}})({agent:r,config:g,nodeName:o,state:i})}function v(r,o,n){if(n){if(!r.has(n))throw new Error(`Graph entry node references unknown node: ${n}`);return n}let t=[...r].filter(i=>(o.get(i)??0)===0);if(t.length!==1)throw new Error(`Graph could not infer a single entry node (found ${t.length}). Provide an explicit entryNode or ensure exactly one node has no incoming edges.`);return t[0]}export{O as a,$ as b,S as c,C as d,P as e};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./5WYRJMBW.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as clearFiltersTool};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- export default $arcgis.t(([F,$])=>{var w=10,N=["string","small-integer","integer"],b=async(l,e,{includeSummaryStatistics:d=!0,includeUniqueValues:f=!0}={})=>{let u=null,i=null;try{if(e.type!=="geometry"&&e.type!=="oid"&&e.type!=="global-id"){d&&(u=await F({layer:l,field:e.name}));let s=e.domain?.type==="coded-value"?e.domain:null;f&&(N.includes(e.type)||s)&&(i=(await $({layer:l,field:e.name})).uniqueValueInfos.sort((n,y)=>y.count-n.count).slice(0,w),s&&(i=i.map(n=>({...n,value:s.getName(n.value)??n.value}))))}}catch(s){console.error(`Error fetching statistics for field ${e.name}:`,s)}return{summaryStatistics:u,uniqueValues:i}};function x(l,e){return["string","small-integer","integer"].includes(l)||e==="coded-value"}async function j(l,e,d,f=!0){let u=[],i=[],s=[];for(let n of l){let y=function(a){let t=e.get(a)?.layerItem;return t?[t.name&&`Name: ${t.name}`,t.title&&`Title: ${t.title}`,t.description&&`Description: ${t.description}`].filter(Boolean).join(" | "):a},{layerId:r,results:I}=n,V=d.map?.allLayers.find(a=>a.id===r),p=e.get(r)?.fieldRegistry;if(!p)continue;let c=u.find(a=>a.layerId===r);c||(c={layerId:r,layerSummary:y(r),fieldInfos:[]},u.push(c));for(let a of I){let t=p.get(a.name);if(!t)continue;let o=t.statistics,g=f&&!o?.summaryStatistics,S=x(t.type,t.domain?.type)&&!o?.uniqueValues,h=g||S;if(s.push({layerId:r,fieldName:t.name,didFetchStatistics:h}),h){let v=b(V,t,{includeSummaryStatistics:g,includeUniqueValues:S}).then(q=>{let m={summaryStatistics:o?.summaryStatistics??null,uniqueValues:o?.uniqueValues??null};g&&(m.summaryStatistics=q.summaryStatistics),S&&(m.uniqueValues=q.uniqueValues),p.set(t.name,{...t,statistics:m}),t.statistics=m});i.push(v)}c.fieldInfos.push(t)}}return await Promise.all(i),{layerFieldInfo:u,didFetchStatistics:i.length>0,fieldStatisticsFetchStatus:s}}return j},"smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- var d=(...o)=>{let t=[];for(let n=0;n<o.length;++n){let s=o[n];if(typeof s=="string")t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if(typeof s=="object")for(let a in s)s[a]&&t.push(a)}let e=t.join(" ");return t.length=0,e},u=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},g=(o,t,e)=>{let n=m(t).subscribe;return n(s=>{s.some(r=>u(o,r.target))&&e()})},l={},m=o=>{let t=o.join(","),e=l[t];if(e!==void 0)return e;let n=new Set,s=new MutationObserver(r=>n.forEach(c=>c(r)));globalThis.document&&s.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let a={subscribe:r=>(n.add(r),()=>{n.delete(r),n.size===0&&(s.disconnect(),l[t]=void 0)})};return l[t]=a,a},i=(o,t)=>{let e=o;for(;e;){let n=e.closest?.(t);if(n)return n;let s=e.getRootNode?.();if(s===globalThis.document)return;e=s?.host}};var h=(o,t,e)=>i(o,`[${t}]`)?.getAttribute(t)??e;export{d as a,g as b,i as c,h as d};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as c}from"./6OOZSZRJ.js";import"./RLEHNAIA.js";import{g as i,h as s,n as r,v as a,z as p}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var l=i`:host{display:block;max-width:100%}.group{max-width:100%}.prompt{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;cursor:pointer;font-weight:var(--calcite-font-weight-regular)}calcite-chip{max-width:100%}`,e=class extends a{constructor(){super(...arguments),this._messages=c({blocking:!0}),this.prompts=[],this.arcgisPromptSelect=r()}static{this.properties={label:1,prompts:0}}static{this.styles=l}_emitPromptSelect(t){this.arcgisPromptSelect.emit({prompt:t})}render(){return this.prompts.length?s`<calcite-chip-group class="group" .label=${this.label??this._messages.suggestedPromptsLabel}>${this.prompts.map(t=>s`<calcite-chip .value=${t} .label=${t} appearance=outline-fill kind=brand @calciteChipSelect=${()=>this._emitPromptSelect(t)}><div class="prompt">${t}</div></calcite-chip>`)}</calcite-chip-group>`:null}};p("arcgis-assistant-suggested-prompts",e);export{e as ArcgisAssistantSuggestedPrompts};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as t}from"./7VAQUCBU.js";export default $arcgis.t(([])=>{var d=async(o,i)=>{let r=o.tool_calls??[];if(r.length===0){await t({text:`LLM did not request any tool calls: ${String(o?.content)}`},i);return}await Promise.all(r.map(async a=>await t({text:`LLM invoked ${a.name} tool with arguments: ${JSON.stringify(a.args,null,2)}`},i)))};return d},"identity/IdentityManager","portal/Portal","request","config","core/reactiveUtils","layers/FeatureLayer")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./YEZ3AMNX.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as resetMapTool};
@@ -1,14 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as q,b as T}from"./34O57OGV.js";import{a as N}from"./FDOMMK2M.js";import a from"./QNNGPA3Q.js";import{a as S}from"./ONQ6JSBJ.js";import{Dc as I}from"./AI6DYOKR.js";import{a as e}from"./VXFQANGJ.js";export default $arcgis.t(([V,j,A,{a:F,b:b,c:L,d:v}])=>{var W=async p=>{let{targetLayer:r,fieldName:n,statisticType:l,mapView:a,layersAndFieldsRegistry:h,geometryFilter:t}=p,s=a.map?.allLayers.find(i=>i.id===r.layerId);if(!s)throw new Error(`Layer '${r.layerId}' not found.`);let O=await a.whenLayerView(s),o=h.get(r.layerId)?.fieldRegistry.get(n),E=o?.alias;if(!o)throw new Error(`Field '${n}' not found.`);let w,u;if(t){let i=await L(t,a);if("error"in i)throw new Error(i.error);if(!i.geometry)throw b(t)?new Error(`No features found matching: ${t.where}`):new Error("Failed to create geometry");if(b(t)){let g=a.map?.allLayers.find(f=>f.id===t.layerId);w={geometryLayerName:g?.title??g?.id,geometryLayerId:t.layerId,geometryWhere:t.where,distance:t.distance,units:t.units,applied:!0}}else F(t)&&(w={point:t.point,distance:t.distance,units:t.units,applied:!0});u=new A({geometry:i.geometry,distance:t.distance,units:t.units,spatialRelationship:"intersects"})}let y=q(O,[n],!1),c=null,m=null,x=10;if(o.type!=="geometry"&&o.type!=="oid"&&o.type!=="global-id")try{let i={layer:s,useFeaturesInView:y,view:y?a:void 0,field:n,sqlWhere:T(s.definitionExpression,r.where),...u&&{filter:u},outStatisticTypes:{include:[l]}};c=await V(i);let g=["string","small-integer","integer"],f=o.domain?.type==="coded-value"?o.domain:null;(g.includes(o.type)||f)&&(m=(await j({layer:s,useFeaturesInView:y,view:y?a:void 0,field:n,sqlWhere:T(s.definitionExpression,r.where),...u&&{filter:u}})).uniqueValueInfos.sort((d,R)=>R.count-d.count).slice(0,x)),m&&o.domain?.type==="coded-value"&&(m=m.map(d=>({...d,value:f?f.getName(d.value)??d.value:d.value})))}catch(i){console.error("Statistics error:",i)}return{tool:"getStatistics",layerName:s.title??r.layerId,summary:`${l} = ${typeof c?.[l]=="number"?c[l]:"N/A"}`,details:{fieldName:n,fieldAlias:E,statisticType:l,statistic:c?.[l]??null,summaryStatistics:c,uniqueValues:m,where:r.where,spatialFilterInfo:w}}};async function D({targetLayer:p,fieldName:r,statisticType:n,geometryFilter:l},a){let h=N(a,"layersAndFieldsRegistry"),{mapView:t}=S(a,["mapView"]),s=await W({targetLayer:p,fieldName:r,statisticType:n,mapView:t,layersAndFieldsRegistry:h,geometryFilter:l});return JSON.stringify(s,null,2)}var U=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:v.optional().describe("The units for the distance buffer.")}),C=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:v.optional().describe("The units for the distance buffer.")}),$=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value.")}),geometryFilter:e.union([U,C]).optional().describe("Geometry filter for spatial queries. Use 'point' option with x/y coordinates from navigation results to find features at that location (point-in-polygon). Use 'layerId/where' option to filter by features from another layer."),fieldName:e.string().describe("The name of the field for which to get statistics. STRICTLY DO NOT use OBJECTID. Use any other field"),statisticType:e.enum(["avg","max","median","min","stddev","sum","variance","nullcount","count"]).describe("The statistic type to calculate.")}),K=I(D,{name:"getStatistics",description:`Computes a single aggregate statistic (max, min, avg, sum, median, stddev, variance) for a numeric field across matching features. Also returns frequency analysis for categorical fields.
3
-
4
- USE THIS TOOL FOR:
5
- - "What is the average/maximum/minimum/total [field]?" \u2014 aggregate computations
6
- - "Most common/frequent value of [field]?" \u2014 frequency analysis
7
- - Questions requiring a mathematical aggregation across many features
8
-
9
- DO NOT USE FOR:
10
- - "How many features match X?" \u2014 use queryFeatures instead (it returns totalCount)
11
- - "Show / list / find features" \u2014 use queryFeatures instead
12
- - Simple counts of features matching a condition \u2014 use queryFeatures instead
13
-
14
- Only call this tool when the answer requires computing an aggregate (avg, max, min, sum, median, stddev) over a field's values, not just counting or listing features.`,schema:$});return K},"smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","layers/support/FeatureFilter",a)
@@ -1,44 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./MX7OEO5Z.js";import a from"./D5UFYQHN.js";import{a as c,b as k}from"./7VAQUCBU.js";import{Ya as x,a as w,b as d,j as f}from"./EWLXNGKH.js";import{ea as u}from"./AI6DYOKR.js";export default $arcgis.t(([,,,,,,{n:_,p:b},{A:M,B:T,C:E,D:C,E:G,F:N,G:R,a:v,c:m,d:h,e:A,w:y,x:K,y:q,z:S}])=>{var z=[T,E,N,C,M,R,G];async function $(e,a){let s=await m("arcgis_knowledge_tool_prompt"),o=K(a),n={assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,priorSteps:e.agentExecutionContext.priorSteps,contextType:o},r=await b({promptText:s,messages:e.arcgisKnowledgeMessages,inputVariables:n,tools:z,config:a}),i=(r.tool_calls?.length??0)>0,t=typeof r.text=="string"?r.text.trim():"",l=t.length>0,p=r.content.toString();return!i&&(o==="map"||o==="knowledgeGraph")?{...e,arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,r],outputMessage:o==="map"?"No tools were found for the current view and prompt. Maps do not support changing nonspatial visibility, layout changes, or generation from queries.":"No tools were found for the current prompt and knowledge graph service. A knowledge graph service only supports search and query.",status:"success"}:{...e,arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,r],outputMessage:i?p:t,status:i?e.status:l?"success":"failed",summary:p?h(p):"ArcGIS Knowledge Agent tool executed."}}var L={generateCypher:"generated-cypher-query",queryGraphData:"graph-query-result",searchGraphData:"graph-search-result",addRecords:"added-records",applyLayout:"applied-layout",changeNonspatialVisibility:"changed-nonspatial-visibility",createLinkChart:"created-link-chart"};function I(e){return!!e&&e.status==="success"&&!!L[e.toolName]}function D(e){return{type:L[e.toolName],data:e.details}}async function F(e,a){let s=new v(z,{handleToolErrors:!1});try{let o=await s.invoke({messages:e.arcgisKnowledgeMessages},a),n=[];for(let t of o.messages){let l;if(typeof t.content!="string")throw new Error(`Unexpected tool message content type: ${typeof t.content}. Expected string.`);try{l=JSON.parse(t.content)}catch{throw new Error(`Failed to parse tool message content as JSON. Tool: ${t.name??"unknown"}.
3
-
4
- Original Content: ${t.content}`)}if(!l||typeof l!="object"||!("toolName"in l))throw new Error(`Parsed tool message content does not have expected structure. Parsed content: ${JSON.stringify(l)}`);n.push(l)}await c({text:`Finished executing ArcGIS Knowledge Agent tools: ${o.messages.filter(t=>t.name).map(t=>t.name).join(", ")}`},a);let r=n.filter(t=>typeof t!="string").map(t=>`- Called Tool: ${t.toolName}, Status: ${t.status}`),i=n[0];return i&&I(i)&&await k(D(i),a),{...e,outputMessage:r.join(`
5
- `),summary:r.length?h(r.join(`
6
- `)):"ArcGIS Knowledge Agent did not execute any tools or return any results.",arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,...o.messages],arcgisKnowledgeToolResult:n}}catch(o){let n=o instanceof Error?o.message:String(o);return await c({text:`ArcGIS Knowledge Agent tool execution failed unexpectedly: ${n}`},a),{...e,outputMessage:`ArcGIS Knowledge Agent tool execution failed unexpectedly: ${n}`,status:"failed",summary:h(`ArcGIS Knowledge Agent tool execution failed unexpectedly: ${n}`),arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages]}}}var V=(e,a)=>A([],"ArcgisKnowledge Agent")(e,a);async function O(e,a){let s=(e.arcgisKnowledgeToolResult??[]).map(l=>({...l,details:void 0})),{knowledgeGraph:o}=await q(a),n=S.getDataModelTypesSummary(o.dataModel),r={assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,toolResult:s,dataModelSummary:n},i=await _({promptText:await m("arcgis_knowledge_summarize_result_prompt"),modelTier:"default",inputVariables:r,config:a}),t=typeof i=="string"?i:i.content;return{...e,outputMessage:t,status:"success",summary:h(t),arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,new u(t)]}}async function j(e){let a=e.arcgisKnowledgeToolResult?.[0],s=a?.status==="success"?a.summary:"ArcGIS Knowledge Agent tool execution failed.";return{...e,outputMessage:s,status:"success",summary:h(s),arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,new u(s)]}}function g(e){return async(a,s)=>s?.signal?.aborted?(await c({text:"Knowledge Agent execution cancelled"},s),new f({goto:d,update:{outputMessage:"Knowledge Agent execution cancelled",summary:"Knowledge Agent execution cancelled",status:"failed"}})):await e(a,s)}var J=()=>new x(y).addNode("requireArcgisKnowledgeServices",V).addNode("agent",g($)).addNode("tools",g(F)).addNode("summarizationLLM",g(O)).addNode("finalizeToolSummary",g(j)).addEdge(w,"requireArcgisKnowledgeServices").addEdge("requireArcgisKnowledgeServices","agent").addConditionalEdges("agent",e=>(e.arcgisKnowledgeMessages[e.arcgisKnowledgeMessages.length-1]?.tool_calls?.length??0)>0?"tools":d).addConditionalEdges("tools",e=>{if(e.status==="failed")return d;let a=e.arcgisKnowledgeToolResult?.[0];return a?.status==="success"&&["applyLayout","changeNonspatialVisibility"].includes(a.toolName)?"finalizeToolSummary":"summarizationLLM"}).addEdge("summarizationLLM",d).addEdge("finalizeToolSummary",d),P=String.raw`The purpose of this agent is to work with Knowledge Graph data, a graph database technology that represents and stores data as interconnected entities (nodes) and relationships (edges).
7
- This agent has two categories of skills: those that work with an active link chart visualization of a subset of the data in the knowledge graph, and those that work with the knowledge graph data more generally against the entire dataset in the service and database.
8
- For link charts, the agent enables users to interact with a link chart by adding new entities (also called nodes) or relationships (also called edges), removing existing entities or relationships,
9
- expanding the graph from particular entities, finding relationships between specified entities on the link chart and adding them to the link chart, finding all relationships
10
- that exist out from specified entities and adding those to the link chart, changing whether or not nonspatial data is visible, or changing the layout of the link chart.
11
- This agent is designed to handle requests that manipulate the specific link chart.
12
- For knowledge graph data more generally, the agent can generate Open Cypher queries based on user prompts that represent inquiries into the data of the knowledge service and its graph database,
13
- and can alternatively use those queries to create a new link chart visualization from the results if requested.
14
-
15
- Supported actions:
16
- - **Change or Apply Layout**: Changes the current layout visualization strategy of the link chart (e.g., "Change the layout to basic-grid", "Apply hierarchical layout"). Valid layout types include organic-standard, organic-community, basic-grid, hierarchical-bottom-to-top, radial-root-centric, tree-left-to-right, geographic-organic-standard, chronological-mono-timeline. A best effort should be made to transform the user's request into one of these layout types.
17
- - **Change Nonspatial Data Visibility**: Changes whether or not nonspatial data is visible on the link chart (e.g., "Show nonspatial data", "Hide nonspatial data"). Valid settings are "hidden" and "visible". A best effort should be made to transform the user's request into one of these settings.
18
- - **Generate a cypher query**: Generates an Open Cypher query based on the user's prompt which represents an inquiry into the data of the knowledge service and its graph database, attempting to filter based on certain conditions and traverse specified relationships. The generated query should be syntactically correct and optimized for performance. The user should explicitly request that a cypher query be returned - if they do not, the purpose of the query is for one of the other tools or skills.
19
- - **Create a New Link Chart from a user prompt**: Identifies that the users prompt is an inquiry into the data of the knowledge service and its graph database and creates a new link chart from the results. The user should have requested that a link chart be created or made(or similar term) from their prompt
20
- - **Add Records (entities or relationships)**: Identifies that the users prompt is an inquiry into the data of the knowledge graph service and its graph database, and that the user wants to take the result of the inquiry and add those entities and/or relationships to the link chart. The generated query should be syntactically correct and optimized for performance.
21
- - **Search Graph Data**: Generates and runs a lucene syntax query based on the user's prompt, returning matching entity and relationship records from the knowledge graph.
22
- - **Query Graph Data**: Generates and executes a cypher query based on the user's prompt, and displays the results in the chat pane, allowing the user to explore the data in their knowledge graph.
23
-
24
- _example: "Change the layout to hierarchical-bottom-to-top"_
25
- _example: "Apply radial-root-centric layout"_
26
- _example: "Show nonspatial data"_
27
- _example: "Hide nonspatial data"_
28
- _example: "Turn off nonspatial visibility"_
29
- _example: "Generate a cypher query to find all entities connected to 'Entity A' via 'Relationship X' that were created after 2020"_
30
- _example: "Generate a query to find all employees of Company Esri who joined after 2015 and are located in California"_
31
- _example: "Tell me how to find all products supplied by Supplier Y that have a price greater than $1000"_
32
- _example: "Create a new link chart showing all entities related to 'Entity B' through 'Relationship Y'"_
33
- _example: "Find all people who work for Microsoft and put them on a new link chart"_
34
- _example: "Add all entities connected to 'Entity C' via 'Relationship Z' to the current link chart"_
35
- _example: "Add all the people who work for Esri to the current link chart, and all the cars that they drive"_
36
- _example: "Find all the products supplied by Supplier X and add them to my visualization"_
37
- _example: "Expand the link chart from 'Entity D' to show its direct connections"_
38
- _example: "Find all the cars and then add everything up to two hops away from them on the link chart"_
39
- _example: "Connect Emma and Rob on the link chart if there is a relationship between them"
40
- _example: "Discover and add all the relationships originating at 'Entity E' to the link chart"_
41
- _example: "Show me all entities with a name similar to 'Smith' and add them to the link chart"_
42
- _example: "Find reports in my graph that have a title similar to 'Quarterly Earnings'"_
43
- _example: "Find John Smith and all people he has made phone calls to in the last year"_
44
- _example: "What is the average age of all people who work for Esri?"_`,le={id:"arcgisKnowledge",name:"ArcgisKnowledge Agent",description:P,createGraph:J,workspace:y};return le},"identity/IdentityManager","portal/Portal","request","config","core/reactiveUtils","layers/FeatureLayer",a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as n}from"./6OOZSZRJ.js";import"./RLEHNAIA.js";import{g as e,h as i,v as r,z as a}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var c=e`.interrupt-details{word-wrap:break-word}.interrupt-details ul{margin-block:var(--calcite-spacing-xxs) 0;padding-inline-start:var(--calcite-spacing-xxl)}.interrupt-details li{margin-block:0}.interrupts-container{display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}`,t=class extends r{constructor(){super(...arguments),this._messages=n({blocking:!0})}static{this.properties={interrupts:0}}static{this.styles=c}render(){return this.interrupts?.length?i`<calcite-block expandable expanded .heading=${this._messages.assistantQuestions}><div class="interrupts-container">${this.interrupts?.map(({interrupt:l,response:s})=>i`<div class="interrupt-details"><div>Q: ${l.message}</div><ul>${Array.isArray(s)?s.length?s.map(p=>i`<li>${p}</li>`):i`<li>${this._messages.questionSkipped}</li>`:i`<li>${s!=null?String(s):this._messages.questionSkipped}</li>`}</ul></div>`)}</div></calcite-block>`:null}};a("arcgis-assistant-interrupt-preview",t);export{t as ArcgisAssistantInterruptPreview};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./JKIESH74.js";import a from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -1,11 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./CCC6LBMY.js";import{a as N,b as O}from"./34O57OGV.js";import a from"./QNNGPA3Q.js";import{a as S}from"./ONQ6JSBJ.js";import{Dc as L}from"./AI6DYOKR.js";import{a as e}from"./VXFQANGJ.js";export default $arcgis.t(([{a:p,b:g,c:v,d:b},{d:j}])=>{var w=25,C=i=>i.flatMap(r=>r.split(",")).map(r=>r.trim()).map(r=>r.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(r=>!!r),R=async(i,r,t,f)=>{let s=r.map?.allLayers.find(u=>u.id===i.layerId),l=await r.whenLayerView(s),h=s.title??i.layerId,c;if(t){let u=await v(t,r);if("error"in u){let o={error:u.error};if(g(t)){let d=r.map?.allLayers.find(m=>m.id===t.layerId);o.geometryLayerName=d?.title??d?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else p(t)&&(o.point=t.point);return{tool:"queryFeatures",layerName:h,summary:"Geometry lookup failed",details:o}}if(!u.geometry){let o={};if(g(t)){let d=r.map?.allLayers.find(m=>m.id===t.layerId);o.error=`No features found matching: ${t.where}`,o.geometryLayerName=d?.title??d?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else p(t)&&(o.error="Failed to create point geometry",o.point=t.point);return{tool:"queryFeatures",layerName:h,summary:"No features found for geometry filter",details:o}}c=u.geometry}else f&&(c=r.extent.clone());let x=[...new Set([...i.outFields,...C(i.orderByFields)])],F=N(l,x,f??!1),I=s.objectIdField,a=s.createQuery();a.where=O(s.definitionExpression,i.where||"1=1"),a.outFields=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,I])],a.orderByFields=i.orderByFields,c&&(a.geometry=c,a.spatialRelationship="intersects"),t?.distance&&(a.distance=t.distance),t?.units&&(a.units=t.units),a.outSpatialReference=r.spatialReference;let n,y;try{n=F?await l.queryFeatureCount(a):await s.queryFeatureCount(a),n>0&&n<=w&&(y=F?await l.queryFeatures(a):await s.queryFeatures(a))}catch(u){console.warn("Client-side query failed, falling back to server:",u),n=await s.queryFeatureCount(a),n>0&&n<=w&&(y=await s.queryFeatures(a))}let{objectIds:q,attributes:T}=y?j(s,y,r.timeZone):{objectIds:void 0,attributes:void 0};return{tool:"queryFeatures",layerName:h,summary:`${n} features found`,details:{totalCount:n,where:i.where,orderByFields:i.orderByFields,outFields:i.outFields,...q&&{objectIds:q,objectIdField:I},...T&&{attributes:T},...n>w&&{note:`${n} features found.`}}}};async function k({targetLayer:i,geometryFilter:r,useCurrentExtent:t},f){let{mapView:s}=S(f,["mapView"]),l=await R(i,s,r,t);return JSON.stringify(l,null,2)}var W=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:b.optional().describe("The units for the distance buffer.")}),B=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:b.optional().describe("The units for the distance buffer.")}),E=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("SQL-92 where clause. IMPORTANT: When using geometryFilter.point for point-in-polygon queries, set this to '1=1' to return all features that intersect the point. Only add attribute filters if the user specifically requests them in addition to the spatial query."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([W,B]).optional().describe("Geometry filter for spatial queries. Use 'point' option with x/y coordinates from navigation results to find features at that location (point-in-polygon). Use 'layerId/where' option to filter by features from another layer."),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at', OR when the user refers back to features previously identified using the current extent (e.g. 'these', 'those', 'them', 'the same ones'). Default is false (queries entire layer).")}),P=L(k,{name:"queryFeatures",description:`Queries features from a layer. Returns the total count of matching features, plus individual feature attributes if \u226425 features match.
3
-
4
- USE THIS TOOL FOR:
5
- - "Show / display / list features where..." \u2014 finding and listing features
6
- - "How many X are Y?" \u2014 counting features that match a condition
7
- - "Which features..." / "Find features..." \u2014 identifying specific features
8
- - Spatial queries \u2014 finding features near/within/intersecting other features
9
- - Any question where the user wants to SEE or COUNT matching features
10
-
11
- This is the DEFAULT tool for most queries. When in doubt, use this tool.`,schema:E});return P},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as s,b as i}from"./3UEKINYC.js";import{c as r}from"./RLEHNAIA.js";function c(e,n){let t=s(e.el,e.referenceElement);if(t)return t;let o=r(e.el,"arcgis-assistant"),a=s(e.el,o?.referenceElement);if(a)return a;throw new Error(`${n}: Reference element not found`)}function g(e,n){let t=c(e,n).view;if(!t)throw new Error(`${n}: Reference element does not have a view`);return t}function m(e){return typeof e=="function"}function w(e){let n=r(e.el,"arcgis-assistant");if(n===void 0)throw new Error("arcgis-assistant-agent must be used within an arcgis-assistant element");return n.register({agent:e.agent,getContext:async()=>await e.getContext?.()??e.context??{}}),n}function f(e){let n=i(e.el,e.referenceElement);if(n)return n;let t=r(e.el,"arcgis-assistant");return s(e.el,t?.referenceElement)||null}function E(e){let n=f(e);return n?n.view:null}export{g as a,m as b,w as c,E as d};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u}from"./ONQ6JSBJ.js";import{Dc as d}from"./AI6DYOKR.js";import{Dd as s}from"./MWYBF3F3.js";async function f(o,a,n){let e=n.map?.allLayers.find(r=>r.id===o);if(!e)return{text:`Error: Layer with id ${o} not found`};let t=a?.trim()?a:"1=1",l=e.createQuery();l.where=t;try{let{extent:r,count:i}=await e.queryExtent(l);if(i===0)return{text:`No features found in ${e.title} matching: ${t}`,where:t};if(r)await n.goTo(r);else return{text:`Error: Unable to determine extent for ${e.title}`,where:t};let c={layerId:o,layerTitle:e.title??o,where:t,count:i};return{text:`Successfully zoomed to ${i} feature(s) in ${e.title} matching: ${t}`,where:t,sharedStatePatch:{lastNavigatedFeatures:{value:c}}}}catch(r){return console.error("Error in goToFeatures:",r),{text:`Error: ${r instanceof Error?r.message:"Unknown error"}`,where:t}}}async function h({layerId:o,where:a},n){let{mapView:e}=u(n,["mapView"]);return await f(o,a,e)}var m=s.object({layerId:s.string().describe("The layerId of the layer to zoom to."),where:s.string().describe("ArcGIS SQL-92 WHERE expression used for `query.where` on the selected layer. Start with a fresh filter for the current request unless the task explicitly refers to prior results. Use only field name values from the selected layer, not aliases. Use field metadata only to interpret intent: prefer LIKE '%value%' for string fields, and use =, <, >, BETWEEN, IN, IS NULL, AND/OR/NOT as appropriate for number/date fields. For coded-value domain fields, use the domain code already provided in layerInfo.domain.codedValues, never the display label. Respect range-domain bounds when they are provided. Do NOT include subqueries, nested SELECT, JOIN, GROUP BY, HAVING, ORDER BY, or semicolons.")}),E=d(h,{name:"goToFeatures",description:"Go to the features that match the given filter for the given layerId. Use coded-value domain codes from layer field metadata when building the WHERE clause.",schema:m});export{E as a};
@@ -1,6 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./ANRQWYU2.js";import{c as C,e as N}from"./R2PQVY4O.js";import"./G2EGT3CF.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:B,subclass:D},{a:h,b:S,c:p,d:A}])=>{var G=Object.defineProperty,z=Object.getOwnPropertyDescriptor,P=(t,e,s,n)=>{for(var r=n>1?void 0:n?z(e,s):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(r=(n?a(e,s,r):a(r))||r);return n&&r&&G(e,s,r),r},x=class extends A{constructor(t){super(t)}getAgents(){return this.agents}generate(){let t=this.getAgents();this.validateAgents(t);for(let o of t)o.generate();let e=S(t.flatMap(o=>o.getSchemas()));for(let[o]of t.entries())e[_(o)]=void 0;let s=C(e),n=this.buildNodes(t),r=this.buildEdges(t);return{workspace:s,createGraph:()=>N(n,r,s,{entryNode:this.getEntryNode(t)})}}getEntryNode(t){return y}isTerminalAgent(t,e){return!1}buildNodes(t){let e={};for(let[s,n]of t.entries()){let r=_(s),o=p(n,s);e[o]=async(a,u)=>{let l=await n.run(F(a,n),u),i={},m=i;return m[r]=l,i}}return e[y]=()=>({}),e[k]=s=>R(s,t),e}buildEdges(t){return[...t.map((e,s)=>({from:y,to:p(e,s)})),...t.map((e,s)=>({from:p(e,s),to:k}))]}};P([B()],x.prototype,"agents",2);x=P([D("ParallelWorkflow")],x);var y="__parallel_fanOut",k="__parallel_join";function _(t){return`__parallel_update_${t}`}function W(t,e){return Object.fromEntries(e.filter(s=>Object.hasOwn(t,s)).map(s=>[s,t[s]]))}function F(t,e){let s=e.inputSchema;return s?{...W(t,h(s)),agentExecutionContext:t.agentExecutionContext,outputMessage:t.outputMessage,status:void 0,summary:""}:{...t,status:void 0,summary:""}}function I(t,e){return t.outputSchema?W(e,h(t.outputSchema)):{}}function K(t,e){let s=t.agentExecutionContext?.messages??[],n=e.agentExecutionContext?.messages??[];return n.length>s.length?n.slice(s.length):void 0}function R(t,e){let s=[],n=[],r=[],o={},a={},u=new Set;for(let[m,J]of e.entries()){let E=_(m),d=t[E];if(a[E]=void 0,!d||typeof d!="object")continue;let c=d,b=c.outputMessage,O=K(t,c),v=c.summary,$=I(J,c),w=b.trim();typeof b=="string"&&w&&s.push(w);let j=v.trim();typeof v=="string"&&j&&n.push(j),Array.isArray(O)&&r.push(...O),c.status&&u.add(c.status);for(let[f,g]of Object.entries($))if(!(g===void 0||f.startsWith("__parallel_update_"))&&!M(t[f],g)){if(!Object.hasOwn(o,f)){o[f]=g;continue}if(!M(o[f],g))throw new Error(`ParallelWorkflow detected conflicting updates for state key "${f}".`)}}let l={...a,...o},i=l;return r.length>0&&(i.agentExecutionContext={...t.agentExecutionContext,messages:[...t.agentExecutionContext.messages,...r]}),s.length&&(i.outputMessage=s.join(`
3
-
4
- `)),n.length&&(i.summary=n.join(`
5
-
6
- `)),u.size&&(i.status=u.has("failed")?"failed":u.has("success")?"success":void 0),l}function M(t,e){return t===e?!0:t&&e?JSON.stringify(t)===JSON.stringify(e):!1}return x},"core/accessorSupport/decorators",a)
@@ -1,9 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as $}from"./5FL5BTTX.js";import{i as G,j as W,q as j,r as B,s as Q}from"./COH3QXWG.js";var L=class extends Q{constructor(r){if(super(r),this.it=W,r.type!==j.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===W||r==null)return this._t=void 0,this.it=r;if(r===G)return r;if(typeof r!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;let t=[r];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};L.directiveName="unsafeHTML",L.resultType=1;var bt=B(L);var V=function(){return V=Object.assign||function(r){for(var t,a=1,i=arguments.length;a<i;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},V.apply(this,arguments)},D={exports:{}},p={},q={exports:{}},w={};function ee(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function be(e,r,t){}function ve(e,r,t){}var ye=/javascript\s*\:/img;function we(e,r){return ye.test(r)?"":r}w.whiteList=ee();w.getDefaultWhiteList=ee;w.onAttr=be;w.onIgnoreAttr=ve;w.safeAttrValue=we;var Ae={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},E=Ae;function xe(e,r){e=E.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,i=0,s=0,l="";function n(){if(!a){var c=E.trim(e.slice(i,s)),f=c.indexOf(":");if(f!==-1){var g=E.trim(c.slice(0,f)),d=E.trim(c.slice(f+1));if(g){var h=r(i,l.length,g,d,c);h&&(l+=h+"; ")}}}i=s+1}for(;s<t;s++){var o=e[s];if(o==="/"&&e[s+1]==="*"){var u=e.indexOf("*/",s+2);if(u===-1)break;s=u+1,i=s+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
3
- `&&n()}return E.trim(l)}var Te=xe,_=w,Se=Te;function J(e){return e==null}function ke(e){var r={};for(var t in e)r[t]=e[t];return r}function te(e){e=ke(e||{}),e.whiteList=e.whiteList||_.whiteList,e.onAttr=e.onAttr||_.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||_.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||_.safeAttrValue,this.options=e}te.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onAttr,s=t.onIgnoreAttr,l=t.safeAttrValue,n=Se(e,function(o,u,c,f,g){var d=a[c],h=!1;if(d===!0?h=d:typeof d=="function"?h=d(f):d instanceof RegExp&&(h=d.test(f)),h!==!0&&(h=!1),f=l(c,f),!!f){var b={position:u,sourcePosition:o,source:g,isWhite:h};if(h){var m=i(c,f,b);return J(m)?c+":"+f:m}else{var m=s(c,f,b);if(!J(m))return m}}});return n};var Le=te;(function(e,r){var t=w,a=Le;function i(l,n){var o=new a(n);return o.process(l)}r=e.exports=i,r.FilterCSS=a;for(var s in t)r[s]=t[s]})(q,q.exports);var H=q.exports,U={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},Ee=H.FilterCSS,Oe=H.getDefaultWhiteList,R=U;function re(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ae=new Ee;function Ce(e,r,t){}function _e(e,r,t){}function Ie(e,r,t){}function Pe(e,r,t){}function ie(e){return e.replace(Ve,"&lt;").replace(Re,"&gt;")}function Fe(e,r,t,a){if(t=ue(t),r==="href"||r==="src"){if(t=R.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(I.lastIndex=0,I.test(t))return""}else if(r==="style"){if(Z.lastIndex=0,Z.test(t)||(K.lastIndex=0,K.test(t)&&(I.lastIndex=0,I.test(t))))return"";a!==!1&&(a=a||ae,t=a.process(t))}return t=ce(t),t}var Ve=/</g,Re=/>/g,Ne=/"/g,ze=/&quot;/g,We=/&#([a-zA-Z0-9]*);?/gim,$e=/&colon;?/gim,De=/&newline;?/gim,I=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Z=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,K=/u\s*r\s*l\s*\(.*/gi;function se(e){return e.replace(Ne,"&quot;")}function ne(e){return e.replace(ze,'"')}function oe(e){return e.replace(We,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function le(e){return e.replace($e,":").replace(De," ")}function fe(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return R.trim(r)}function ue(e){return e=ne(e),e=oe(e),e=le(e),e=fe(e),e}function ce(e){return e=se(e),e=ie(e),e}function qe(){return""}function He(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:R.indexOf(e,l)!==-1}var i=[],s=!1;return{onIgnoreTag:function(l,n,o){if(a(l))if(o.isClosing){var u="[/removed]",c=o.position+u.length;return i.push([s!==!1?s:o.position,c]),s=!1,u}else return s||(s=o.position),"[removed]";else return r(l,n,o)},remove:function(l){var n="",o=0;return R.forEach(i,function(u){n+=l.slice(o,u[0]),o=u[1]}),n+=l.slice(o),n}}}function Ue(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var i=e.indexOf("-->",a);if(i===-1)break;t=i+3}return r}function Me(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}p.whiteList=re();p.getDefaultWhiteList=re;p.onTag=Ce;p.onIgnoreTag=_e;p.onTagAttr=Ie;p.onIgnoreTagAttr=Pe;p.safeAttrValue=Fe;p.escapeHtml=ie;p.escapeQuote=se;p.unescapeQuote=ne;p.escapeHtmlEntities=oe;p.escapeDangerHtml5Entities=le;p.clearNonPrintableCharacter=fe;p.friendlyAttrValue=ue;p.escapeAttrValue=ce;p.onIgnoreTagStripAll=qe;p.StripTagBody=He;p.stripCommentTag=Ue;p.stripBlankChar=Me;p.cssFilter=ae;p.getDefaultCSSWhiteList=Oe;var N={},y=U;function Xe(e){var r=y.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=y.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function Ge(e){return e.slice(0,2)==="</"}function je(e,r,t){var a="",i=0,s=!1,l=!1,n=0,o=e.length,u="",c="";e:for(n=0;n<o;n++){var f=e.charAt(n);if(s===!1){if(f==="<"){s=n;continue}}else if(l===!1){if(f==="<"){a+=t(e.slice(i,n)),s=n,i=n;continue}if(f===">"){a+=t(e.slice(i,s)),c=e.slice(s,n+1),u=Xe(c),a+=r(s,a.length,u,c,Ge(c)),i=n+1,s=!1;continue}if(f==='"'||f==="'")for(var g=1,d=e.charAt(n-g);d.trim()===""||d==="=";){if(d==="="){l=f;continue e}d=e.charAt(n-++g)}}else if(f===l){l=!1;continue}}return i<e.length&&(a+=t(e.substr(i))),a}var Be=/[^a-zA-Z0-9\\_:.-]/gim;function Qe(e,r){var t=0,a=0,i=[],s=!1,l=e.length;function n(g,d){if(g=y.trim(g),g=g.replace(Be,"").toLowerCase(),!(g.length<1)){var h=r(g,d||"");h&&i.push(h)}}for(var o=0;o<l;o++){var u=e.charAt(o),c,f;if(s===!1&&u==="="){s=e.slice(t,o),t=o+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Ze(e,o+1);continue}if(s!==!1&&o===a){if(f=e.indexOf(u,o+1),f===-1)break;c=y.trim(e.slice(a+1,f)),n(s,c),s=!1,o=f,t=o+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(f=Je(e,o),f===-1){c=y.trim(e.slice(t,o)),n(c),s=!1,t=o+1;continue}else{o=f-1;continue}else if(f=Ke(e,o-1),f===-1){c=y.trim(e.slice(t,o)),c=Y(c),n(s,c),s=!1,t=o+1;continue}else continue}return t<e.length&&(s===!1?n(e.slice(t)):n(s,Y(y.trim(e.slice(t))))),y.trim(i.join(" "))}function Je(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Ze(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function Ke(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Ye(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Y(e){return Ye(e)?e.substr(1,e.length-2):e}N.parseTag=je;N.parseAttr=Qe;var et=H.FilterCSS,v=p,ge=N,tt=ge.parseTag,rt=ge.parseAttr,F=U;function P(e){return e==null}function at(e){var r=F.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=F.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=F.trim(e.slice(0,-1))),{html:e,closing:t}}function it(e){var r={};for(var t in e)r[t]=e[t];return r}function st(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function de(e){e=it(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=v.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=st(e.whiteList||e.allowList):e.whiteList=v.whiteList,e.onTag=e.onTag||v.onTag,e.onTagAttr=e.onTagAttr||v.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||v.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||v.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||v.safeAttrValue,e.escapeHtml=e.escapeHtml||v.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new et(e.css))}de.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onTag,s=t.onIgnoreTag,l=t.onTagAttr,n=t.onIgnoreTagAttr,o=t.safeAttrValue,u=t.escapeHtml,c=r.cssFilter;t.stripBlankChar&&(e=v.stripBlankChar(e)),t.allowCommentTag||(e=v.stripCommentTag(e));var f=!1;t.stripIgnoreTagBody&&(f=v.StripTagBody(t.stripIgnoreTagBody,s),s=f.onIgnoreTag);var g=tt(e,function(d,h,b,m,O){var C={sourcePosition:d,position:h,isClosing:O,isWhite:Object.prototype.hasOwnProperty.call(a,b)},S=i(b,m,C);if(!P(S))return S;if(C.isWhite){if(C.isClosing)return"</"+b+">";var M=at(m),me=a[b],X=rt(M.html,function(A,x){var z=F.indexOf(me,A)!==-1,k=l(b,A,x,z);return P(k)?z?(x=o(b,A,x,c),x?A+'="'+x+'"':A):(k=n(b,A,x,z),P(k)?void 0:k):k});return m="<"+b,X&&(m+=" "+X),M.closing&&(m+=" /"),m+=">",m}else return S=s(b,m,C),P(S)?u(m):S},u);return f&&(g=f.remove(g)),g};var nt=de;(function(e,r){var t=p,a=N,i=nt;function s(n,o){var u=new i(o);return u.process(n)}r=e.exports=s,r.filterXSS=s,r.FilterXSS=i,(function(){for(var n in t)r[n]=t[n];for(var o in a)r[o]=a[o]})();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(D,D.exports);var T=D.exports,ot=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},pe=(function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=V(V({},T.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(s,l,n,o){return s==="a"&&l==="href"||(s==="img"||s==="source")&&l==="src"?a.sanitizeUrl(n):T.safeAttrValue(s,l,n,o)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;r&&!t?i=r:r&&t?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(s){if(s==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(s==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(n){return i.css.whiteList[n]=l[n]})}else i[s]=r[s]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new T.FilterXSS(i)}return e.prototype.sanitize=function(r,t){switch(t===void 0&&(t={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,t);default:return t.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,t){var a=(t??{}).isProtocolRequired,i=a===void 0?!0:a,s=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",n=/^#/.test(r),o=s&&this.allowedProtocols.indexOf(s.toLowerCase())>-1;return l||n||o?T.escapeAttrValue(r):!s&&!i?T.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,i):T.safeAttrValue(r,t,a,i)},e.prototype.validate=function(r,t){t===void 0&&(t={});var a=this.sanitize(r,t);return{isValid:r===a,sanitized:a}},e.prototype.encodeHTML=function(r){var t=this;return String(r).replace(/[&<>"'\/]/g,function(a){return t._entityMap[a]})},e.prototype.encodeAttrValue=function(r){var t=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(a,i){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(t[i])?t[i]=t[i].concat(a[i]):t[i]=a[i]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var i=!1,s=void 0;if(Array.isArray(r))s=r.reduce(function(n,o){var u=a.validate(o,t);return u.isValid?n.concat([o]):(i=!0,n.concat([u.sanitized]))},[]);else if(ot(r)){var l=Object.keys(r);s=l.reduce(function(n,o){var u=r[o],c=a.validate(u,t);return c.isValid?n[o]=u:(i=!0,n[o]=c.sanitized),n},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return i?s:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e})();$.use({gfm:!0,breaks:!0,async:!1});var lt=new pe({whiteList:{ol:["start"],li:["value"],"calcite-table":["caption","bordered","striped","layout","scale","class"],"calcite-table-row":["slot","class"],"calcite-table-header":["heading","alignment","description","class"],"calcite-table-cell":["alignment","colspan","rowspan","class"],"calcite-link":["href","target","rel","title"],pre:["class"],code:["class"]}},!0);function ft(e){return lt.sanitize(e)}function ut(e){if(!e||typeof DOMParser>"u")return e;try{let r=new DOMParser().parseFromString(e,"text/html");return r.querySelectorAll("a").forEach(t=>{let a=r.createElement("calcite-link");for(let i of["href","target","rel","title"]){let s=t.getAttribute(i);s!==null&&a.setAttribute(i,s)}a.append(...t.childNodes),t.replaceWith(a)}),r.body.innerHTML}catch{return e}}function he(e,r){let t=e.indexOf("{",r),a=e.indexOf("[",r);return t===-1?a:a===-1?t:Math.min(t,a)}function ct(e){if(e.trimStart().startsWith("```"))return null;for(let r=he(e,0);r!==-1;r=he(e,r+1)){let t=0,a=0;for(let i=r;i<e.length;i++){let s=e[i];if(s==="{"?t++:s==="}"?t--:s==="["?a++:s==="]"&&a--,t<0||a<0)break;if(t===0&&a===0&&i>r)return e.slice(r,i+1)}}return null}function St(e){if(!e)return"";let r=e,t=ct(e);if(t)try{let i=JSON.parse(t),s=`
4
-
5
- \`\`\`json
6
- ${JSON.stringify(i,null,2)}
7
- \`\`\`
8
-
9
- `;r=e.replace(t,s)}catch{}let a=dt(r);return gt(a)}function gt(e){if(!e)return"";let r=pt(e),t=ut(r);return ft(t)}function dt(e){return e?$.parse(e,{async:!1}):""}function pt(e){if(!e||typeof DOMParser>"u")return e;try{let r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.querySelectorAll("table")).forEach((t,a)=>{let i=r.createElement("calcite-table");i.setAttribute("caption",`Table ${a+1}`),i.setAttribute("striped","true");let s=t.querySelector("thead");if(s){let n=Array.from(s.querySelectorAll("tr"));for(let o of n){let u=r.createElement("calcite-table-row");u.setAttribute("slot","table-header");let c=Array.from(o.querySelectorAll("th, td"));for(let f of c){let g=(f.textContent??"").trim(),d=r.createElement("calcite-table-header");d.setAttribute("heading",g),u.appendChild(d)}i.appendChild(u)}}let l=t.querySelector("tbody");(l?Array.from(l.querySelectorAll("tr")):Array.from(t.querySelectorAll("tr")).filter(n=>!s?.contains(n))).forEach((n,o)=>{let u=r.createElement("calcite-table-row"),c=!s&&o===0&&n.querySelectorAll("th").length>0;c&&u.setAttribute("slot","table-header");let f=Array.from(n.querySelectorAll("th, td"));for(let g of f){if(c&&g.localName==="th"){let m=(g.textContent??"").trim(),O=r.createElement("calcite-table-header");O.setAttribute("heading",m),u.appendChild(O);return}let d=r.createElement("calcite-table-cell"),h=g.getAttribute("colspan"),b=g.getAttribute("rowspan");h&&d.setAttribute("colspan",h),b&&d.setAttribute("rowspan",b),d.innerHTML=g.innerHTML,u.appendChild(d)}i.appendChild(u)}),t.replaceWith(i)}),r.body.innerHTML}catch{return e}}export{bt as a,St as b,gt as c};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i}from"./ONQ6JSBJ.js";import{Dc as n}from"./AI6DYOKR.js";import{Dd as r}from"./MWYBF3F3.js";async function s(a,t){await t.when();let e=t.map?.allLayers.find(l=>l.id===a);if(!e)return console.warn(`[goToLayer] No matching FeatureLayer found for: ${a}`),{text:`Could not find layer for: ${a}`};let o;return(e.type==="link-chart"||e.type==="knowledge-graph-sublayer")&&t.map?.activeLinkChartLayer?o=t.map.diagramNodesExtent:o=e.fullExtent,o?(await t.goTo(o),e.visible=!0,{text:`Successfully zoomed to: ${e.title??""}`}):{text:"Layer has no defined extent. Cannot zoom to layer."}}async function m({layerId:a},t){let{mapView:e}=i(t,["mapView"]);return await s(a,e)}var c=r.object({layerId:r.string().describe("The id of the layer to navigate to")}),p=n(m,{name:"goToLayer",description:"Zooms the map view to the full extent of the top matching layer.",schema:c});export{p as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as g}from"./6OOZSZRJ.js";import"./RLEHNAIA.js";import{h as u,v as c,z as h}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([{watch:_},y,{property:m,subclass:f}])=>{var A=Object.defineProperty,S=Object.getOwnPropertyDescriptor,p=(e,s,i,a)=>{for(var r=a>1?void 0:a?S(s,i):s,t=e.length-1,n;t>=0;t--)(n=e[t])&&(r=(a?n(s,i,r):n(r))||r);return a&&r&&A(s,i,r),r};function l(){return typeof window>"u"?null:window}var o=class extends y{constructor(){super(...arguments),this._utterance=null,this.state="idle",this.supported=o.isSupported()}destroy(){this.stop(),super.destroy()}start(e){let s=e.trim(),i=l(),a=i?.SpeechSynthesisUtterance,r=i?.speechSynthesis;if(this._set("supported",o.isSupported(i)),!s||!a||!r)return;this.stop();let t=new a(s);t.rate=.9,t.pitch=1.1,t.volume=1,t.onend=()=>{this._utterance===t&&this._reset()},t.onerror=()=>{this._utterance===t&&this._reset()};try{r.speak(t),this._utterance=t,this._set("state","playing")}catch{t.onend=null,t.onerror=null,this._reset()}}stop(){let e=l(),s=e?.speechSynthesis;if(this._set("supported",o.isSupported(e)),s)try{(s.speaking||s.pending)&&s.cancel()}catch{}this._reset()}toggle(e){if(this.state==="playing"){this.stop();return}this.start(e)}static isSupported(e=l()){return!!e?.speechSynthesis&&typeof e.SpeechSynthesisUtterance=="function"}_reset(){this._utterance&&(this._utterance.onend=null,this._utterance.onerror=null),this._utterance=null,this._set("state","idle")}};p([m({readOnly:!0})],o.prototype,"state",2);p([m({readOnly:!0})],o.prototype,"supported",2);o=p([f("ReadAloudController")],o);var d=class extends c{constructor(){super(...arguments),this._messages=g({blocking:!0}),this._readAloudController=new o,this.readAloudEnabled=!1}static{this.properties={readAloudEnabled:5,message:0}}loaded(){this.manager.onLifecycle(()=>[_(()=>this._readAloudController.state,()=>this.requestUpdate(),{initial:!0}),{remove:()=>{this._readAloudController.stop()}}])}_toggleReadAloud(){this._readAloudController.toggle(this.message?.content??"")}render(){return this.readAloudEnabled&&!this.message?.error&&this.message?.content?.trim()&&this._readAloudController.supported?u`<calcite-action id=action-read-aloud .icon=${this._readAloudController.state==="playing"?"sound-off":"sound"} scale=s .active=${this._readAloudController.state==="playing"} @click=${()=>this._toggleReadAloud()} text></calcite-action><calcite-tooltip reference-element=action-read-aloud overlay-positioning=fixed placement=bottom><span>${this._readAloudController.state==="playing"?this._messages.stopReadingButtonLabel:this._messages.readAloudButtonLabel}</span></calcite-tooltip>`:null}};h("arcgis-assistant-message-read-aloud",d);return d},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as m}from"./ONQ6JSBJ.js";import{Dc as i}from"./AI6DYOKR.js";import{Dd as e}from"./MWYBF3F3.js";async function s(o,a){let t=a.map.bookmarks;if(!t||t.length===0)throw new Error("No bookmarks found in the map.");let r=t.find(k=>k.name===o);if(!r)throw new Error(`Bookmark with name "${o}" not found.`);let n=r.viewpoint;if(!n)throw new Error(`Bookmark with name "${o}" does not have a valid viewpoint.`);return await a.goTo(n),{text:`Navigated to bookmark: ${o}`}}async function h({bookmarkName:o},a){let{mapView:t}=m(a,["mapView"]);return await Promise.resolve(s(o,t))}var w=e.object({bookmarkName:e.string().describe("The name of the bookmark to navigate to.")}),b=i(h,{name:"goToBookmark",description:"Go to the extent of the bookmark with the given name.",schema:w});export{b as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./5ZFUGNRN.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import s from"./IC3LG6TH.js";import q from"./SZ2QSSB3.js";import p from"./MX7OEO5Z.js";import{a as o,c as a}from"./V6HOUZPZ.js";import n from"./KITIP6J2.js";import"./Z5W4V7RC.js";import m from"./RHYNE5OE.js";import l from"./KWD2ECTM.js";import k from"./U2D53TAX.js";import j from"./OAKRPM7D.js";import h from"./V52XWEGV.js";import g from"./CCC6LBMY.js";import"./34O57OGV.js";import"./7SRLZQVC.js";import"./FDOMMK2M.js";import f from"./6HF36IKA.js";import"./Y7XD7ZRD.js";import"./VLLZ2FFU.js";import e from"./5ZFUGNRN.js";import"./LLUGJKAQ.js";import"./WKTQVBFJ.js";import"./K2R6XVK3.js";import"./3UEKINYC.js";import"./RLEHNAIA.js";import d from"./D5UFYQHN.js";import"./G2EGT3CF.js";import"./5WYRJMBW.js";import"./YEZ3AMNX.js";import c from"./JKIESH74.js";import b from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import{v as i,z as r}from"./COH3QXWG.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./VOKXKU7M.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,,s])=>{var t=class extends i{constructor(){super(...arguments),this.agent=s}static{this.properties={referenceElement:1}}#t;#i;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=o(this,"arcgis-assistant-data-exploration-agent"),this.#i=a(this)}disconnectedCallback(){this.#i?.unregister(this.agent.id),super.disconnectedCallback()}};r("arcgis-assistant-data-exploration-agent",t);return t},"identity/IdentityManager","portal/Portal","request","config","core/reactiveUtils","layers/FeatureLayer","rest/knowledgeGraphService",b,c,d,e,f,g,h,j,k,l,m,n,p,q,s)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./ANRQWYU2.js";import"./R2PQVY4O.js";import"./G2EGT3CF.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([{property:d,subclass:f},{a:u,c:i,d:c}])=>{var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=(e,o,r,t)=>{for(var s=t>1?void 0:t?g(o,r):o,a=e.length-1,n;a>=0;a--)(n=e[a])&&(s=(t?n(o,r,s):n(s))||s);return t&&s&&m(o,r,s),s},l=class extends c{constructor(e){super(e)}getAgents(){return this.agents}getEntryNode(e){return e[0]?i(e[0],0):void 0}isTerminalAgent(e,o){return o===e.length-1}validateAgents(e){super.validateAgents(e);let o=new Map;for(let[r,t]of e.entries()){let s=e[r-1];if(t.outputSchema)for(let a of u(t.outputSchema)){let n=o.get(a)??[];n.push(`${t.name} [${r}]`),o.set(a,n)}if(!(r===0||!t.inputSchema||s?.outputSchema))throw new Error(`Workflow agent "${t.name}" declares an input schema, so upstream agent "${s.name}" must declare an output schema.`)}for(let[r,t]of o.entries())t.length>1&&console.warn(`Workflow output field "${r}" is declared by multiple steps (${t.join(", ")}). Later steps will overwrite earlier values in shared state.`)}buildEdges(e){return e.length===1?[{from:i(e[0],0),decide:()=>{}}]:e.slice(0,-1).map((o,r)=>({from:i(o,r),decide:t=>t.status==="failed"?void 0:i(e[r+1],r+1)}))}};p([d()],l.prototype,"agents",2);l=p([f("SequentialWorkflow")],l);return l},"core/accessorSupport/decorators",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./KITIP6J2.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"../UZLQALHY.js";var e,a,i,c,u,s,w,l,f,m,p,y;async function r(n,t){if(t in n)return n[t];if("default"in n){let o=await n.default;return typeof o=="object"&&o!==null&&t in o?o[t]:o}throw new Error(`Unable to resolve ${String(t)} from module.`)}function W(n,t){let o={};for(let[b,k]of Object.entries(t))o[b]=h(n,k);return o}function d(n,t){return n.object(W(n,t))}function h(n,t){let o=g(n,t);return t.required===!0?o:o.optional()}function g(n,t){let o=T(n,t);return t.description!==void 0&&(o=o.describe(t.description)),o}function S(n,t){switch(t){case"string":return n.string();case"number":return n.number();case"boolean":return n.boolean()}}function A(n){return n==="string"||n==="number"||n==="boolean"}function T(n,t){switch(t.type){case"string":{if(t.enum!=null){if(t.enum.length===0)throw new Error("String schema field enum must include at least one value.");return n.enum(t.enum)}return n.string()}case"number":return n.number();case"boolean":return n.boolean();case"array":{if(t.itemType==null)throw new Error("Array schema field requires an itemType definition.");return n.array(A(t.itemType)?S(n,t.itemType):g(n,t.itemType))}case"object":{if(t.fields==null)throw new Error("Object schema field requires a fields definition.");return d(n,t.fields)}}}async function L(n){p??=import("../APFZY4PI.js");let t=await p;return d(t.z,n)}async function j(n,t){y??=import("../EKWM5K4K.js");let o=await y;return await(await r(o,"sendUXSuggestion"))(n,t)}async function q(n){e??=import("../FUF3NAU7.js");let t=await e,o=await r(t,"FunctionAgent");return new o(n)}async function E(n){a??=import("../J6SZIQJA.js");let t=await a,o=await r(t,"FunctionTool");return new o(n)}async function F(n){i??=import("../B2JDVLA6.js");let t=await i,o=await r(t,"LLMAgent");return new o(n)}async function v(n){c??=import("../HAEFC2SJ.js");let t=await c,o=await r(t,"WorkflowAgent");return new o(n)}async function U(n){u??=import("../NZSOJ726.js");let t=await u,o=await r(t,"ConditionalWorkflow");return new o(n)}async function M(n){s??=import("../OE3GW5LE.js");let t=await s,o=await r(t,"LoopWorkflow");return new o(n)}async function P(n){w??=import("../WGO5SER7.js");let t=await w,o=await r(t,"ParallelWorkflow");return new o(n)}async function R(n){l??=import("../FG647IP6.js");let t=await l,o=await r(t,"RouterWorkflow");return new o(n)}async function X(n){f??=import("../ZDV4K4WG.js");let t=await f,o=await r(t,"SequentialWorkflow");return new o(n)}async function x(n){m??=import("../HDACNIZF.js");let t=await m,o=await r(t,"SwitchWorkflow");return new o(n)}export{U as createConditionalWorkflow,q as createFunctionAgent,E as createFunctionTool,F as createLLMAgent,M as createLoopWorkflow,P as createParallelWorkflow,R as createRouterWorkflow,L as createSchema,X as createSequentialWorkflow,x as createSwitchWorkflow,v as createWorkflowAgent,j as sendUXSuggestion};