@truefoundry/trueforge 0.185.0-rc.6 → 0.185.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 (209) hide show
  1. package/dist/_frontend/assets/{AgentCodeSnippets-7VCMMZ5Q-DKi8QFy2.js → AgentCodeSnippets-7VCMMZ5Q-D3ZBNZmT.js} +1 -1
  2. package/dist/_frontend/assets/AgentCodeSnippets-7VCMMZ5Q-D3ZBNZmT.js.br +0 -0
  3. package/dist/_frontend/assets/AgentCodeSnippets-7VCMMZ5Q-D3ZBNZmT.js.gz +0 -0
  4. package/dist/_frontend/assets/{AgentMetricChart-5EOXB7E3-V7zxnBmt.js → AgentMetricChart-5EOXB7E3-DzEa9vqC.js} +1 -1
  5. package/dist/_frontend/assets/AgentMetricChart-5EOXB7E3-DzEa9vqC.js.br +0 -0
  6. package/dist/_frontend/assets/AgentMetricChart-5EOXB7E3-DzEa9vqC.js.gz +0 -0
  7. package/dist/_frontend/assets/{AgentOverview-TOGW6FNJ-Do31yMbq.js → AgentOverview-TOGW6FNJ-D9dS3oqD.js} +1 -1
  8. package/dist/_frontend/assets/AgentOverview-TOGW6FNJ-D9dS3oqD.js.br +0 -0
  9. package/dist/_frontend/assets/AgentOverview-TOGW6FNJ-D9dS3oqD.js.gz +0 -0
  10. package/dist/_frontend/assets/{AgentSessionEventTimeline-SAXINA2W-DgpYS-xn.js → AgentSessionEventTimeline-SAXINA2W-CRrahdir.js} +1 -1
  11. package/dist/_frontend/assets/AgentSessionEventTimeline-SAXINA2W-CRrahdir.js.br +0 -0
  12. package/dist/_frontend/assets/AgentSessionEventTimeline-SAXINA2W-CRrahdir.js.gz +0 -0
  13. package/dist/_frontend/assets/{AgentSessionEventTimelineChart-2CELTVWR-BrvGQNim.js → AgentSessionEventTimelineChart-2CELTVWR-BuOkJQhM.js} +1 -1
  14. package/dist/_frontend/assets/AgentSessionEventTimelineChart-2CELTVWR-BuOkJQhM.js.br +0 -0
  15. package/dist/_frontend/assets/AgentSessionEventTimelineChart-2CELTVWR-BuOkJQhM.js.gz +0 -0
  16. package/dist/_frontend/assets/{AgentSessions-VGKHTL7J-CwWG5L6h.js → AgentSessions-VGKHTL7J-DXlCe_Xq.js} +1 -1
  17. package/dist/_frontend/assets/AgentSessions-VGKHTL7J-DXlCe_Xq.js.br +0 -0
  18. package/dist/_frontend/assets/{AgentSessions-VGKHTL7J-CwWG5L6h.js.gz → AgentSessions-VGKHTL7J-DXlCe_Xq.js.gz} +0 -0
  19. package/dist/_frontend/assets/{ConnectorSettings-VKZWEFWZ-zQBki8u1.js → ConnectorSettings-VKZWEFWZ-BkoC8A5y.js} +1 -1
  20. package/dist/_frontend/assets/ConnectorSettings-VKZWEFWZ-BkoC8A5y.js.br +0 -0
  21. package/dist/_frontend/assets/ConnectorSettings-VKZWEFWZ-BkoC8A5y.js.gz +0 -0
  22. package/dist/_frontend/assets/{DockLayout-CJ5ECZPY-C871R6Oa.js → DockLayout-CJ5ECZPY-DhsnawY4.js} +1 -1
  23. package/dist/_frontend/assets/{DrawerLayout-G75J4SOY-8IOXImPC.js → DrawerLayout-G75J4SOY-BY-cGCrF.js} +2 -2
  24. package/dist/_frontend/assets/DrawerLayout-G75J4SOY-BY-cGCrF.js.br +0 -0
  25. package/dist/_frontend/assets/DrawerLayout-G75J4SOY-BY-cGCrF.js.gz +0 -0
  26. package/dist/_frontend/assets/{EnvironmentsPage-D75O2D3T-BFawULXx.js → EnvironmentsPage-D75O2D3T-CKOA9E_7.js} +1 -1
  27. package/dist/_frontend/assets/EnvironmentsPage-D75O2D3T-CKOA9E_7.js.br +0 -0
  28. package/dist/_frontend/assets/EnvironmentsPage-D75O2D3T-CKOA9E_7.js.gz +0 -0
  29. package/dist/_frontend/assets/{MemorySettings-IEGR7OAY-DftQfqj1.js → MemorySettings-IEGR7OAY-C9SXeZTk.js} +1 -1
  30. package/dist/_frontend/assets/MemorySettings-IEGR7OAY-C9SXeZTk.js.br +0 -0
  31. package/dist/_frontend/assets/MemorySettings-IEGR7OAY-C9SXeZTk.js.gz +0 -0
  32. package/dist/_frontend/assets/{ModelSettings-QC33FVLM-CwUu1VBp.js → ModelSettings-QC33FVLM-CLBDEWFa.js} +1 -1
  33. package/dist/_frontend/assets/ModelSettings-QC33FVLM-CLBDEWFa.js.br +0 -0
  34. package/dist/_frontend/assets/ModelSettings-QC33FVLM-CLBDEWFa.js.gz +0 -0
  35. package/dist/_frontend/assets/{SandboxSettings-A46TVNZL-BddgaTJt.js → SandboxSettings-A46TVNZL-Byz-ZSG-.js} +1 -1
  36. package/dist/_frontend/assets/SandboxSettings-A46TVNZL-Byz-ZSG-.js.br +0 -0
  37. package/dist/_frontend/assets/SandboxSettings-A46TVNZL-Byz-ZSG-.js.gz +0 -0
  38. package/dist/_frontend/assets/{SchedulesPage-KVAX7YQM-BNjvSygm.js → SchedulesPage-KVAX7YQM-B_rcDGg-.js} +1 -1
  39. package/dist/_frontend/assets/SchedulesPage-KVAX7YQM-B_rcDGg-.js.br +0 -0
  40. package/dist/_frontend/assets/SchedulesPage-KVAX7YQM-B_rcDGg-.js.gz +0 -0
  41. package/dist/_frontend/assets/{SettingsBuilder-VQKZH4QW-C1P8CRzi.js → SettingsBuilder-VQKZH4QW-C5up_jOV.js} +2 -2
  42. package/dist/_frontend/assets/SettingsBuilder-VQKZH4QW-C5up_jOV.js.br +0 -0
  43. package/dist/_frontend/assets/SettingsBuilder-VQKZH4QW-C5up_jOV.js.gz +0 -0
  44. package/dist/_frontend/assets/{ShellRouteSync-4T763MWC-4g8jOwre.js → ShellRouteSync-4T763MWC-CVTflvQQ.js} +1 -1
  45. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-CVTflvQQ.js.br +0 -0
  46. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-CVTflvQQ.js.gz +0 -0
  47. package/dist/_frontend/assets/{SidebarLayout-KAHFKPTH-ec7yQ_Bu.js → SidebarLayout-KAHFKPTH-Cd8-hgi8.js} +2 -2
  48. package/dist/_frontend/assets/SidebarLayout-KAHFKPTH-Cd8-hgi8.js.br +0 -0
  49. package/dist/_frontend/assets/SidebarLayout-KAHFKPTH-Cd8-hgi8.js.gz +0 -0
  50. package/dist/_frontend/assets/{SkillSettings-SKHQARUV-CEANZ4ro.js → SkillSettings-SKHQARUV-D_IZlvmq.js} +1 -1
  51. package/dist/_frontend/assets/SkillSettings-SKHQARUV-D_IZlvmq.js.br +0 -0
  52. package/dist/_frontend/assets/SkillSettings-SKHQARUV-D_IZlvmq.js.gz +0 -0
  53. package/dist/_frontend/assets/{TrueForgeUIWithRouter-YSRO7IVL-QhhtYblJ.js → TrueForgeUIWithRouter-YSRO7IVL-DHH7cN2N.js} +1 -1
  54. package/dist/_frontend/assets/{WebSearchSettings-NUYJVMBL-CsShufeW.js → WebSearchSettings-NUYJVMBL-B8VVOmZt.js} +1 -1
  55. package/dist/_frontend/assets/WebSearchSettings-NUYJVMBL-B8VVOmZt.js.br +0 -0
  56. package/dist/_frontend/assets/WebSearchSettings-NUYJVMBL-B8VVOmZt.js.gz +0 -0
  57. package/dist/_frontend/assets/{WidgetLayout-RTWPXCL7-CNjwnSw_.js → WidgetLayout-RTWPXCL7-Df0WMKu_.js} +1 -1
  58. package/dist/_frontend/assets/WidgetLayout-RTWPXCL7-Df0WMKu_.js.br +0 -0
  59. package/dist/_frontend/assets/WidgetLayout-RTWPXCL7-Df0WMKu_.js.gz +0 -0
  60. package/dist/_frontend/assets/{chunk-4LY4NAUC-C35c1p-q.js → chunk-4LY4NAUC-K0Thc4fl.js} +1 -1
  61. package/dist/_frontend/assets/chunk-4LY4NAUC-K0Thc4fl.js.br +0 -0
  62. package/dist/_frontend/assets/chunk-4LY4NAUC-K0Thc4fl.js.gz +0 -0
  63. package/dist/_frontend/assets/{chunk-F62I374W-DBXoLCUw.js → chunk-F62I374W-Dwa1z7Cl.js} +1 -1
  64. package/dist/_frontend/assets/{chunk-OB3PAWPO-nc7pRn13.js → chunk-OB3PAWPO-C9NyEqw5.js} +1 -1
  65. package/dist/_frontend/assets/chunk-OB3PAWPO-C9NyEqw5.js.br +0 -0
  66. package/dist/_frontend/assets/chunk-OB3PAWPO-C9NyEqw5.js.gz +0 -0
  67. package/dist/_frontend/assets/{chunk-RQ7NBDM4-CH4qqDr1.js → chunk-RQ7NBDM4-BTpVQH0R.js} +2 -2
  68. package/dist/_frontend/assets/chunk-RQ7NBDM4-BTpVQH0R.js.br +0 -0
  69. package/dist/_frontend/assets/chunk-RQ7NBDM4-BTpVQH0R.js.gz +0 -0
  70. package/dist/_frontend/assets/{chunk-U6PRJTQZ-B3vklHLF.js → chunk-U6PRJTQZ-DtY4Oe0N.js} +1 -1
  71. package/dist/_frontend/assets/chunk-U6PRJTQZ-DtY4Oe0N.js.br +0 -0
  72. package/dist/_frontend/assets/chunk-U6PRJTQZ-DtY4Oe0N.js.gz +0 -0
  73. package/dist/_frontend/assets/{cssMode-CbQsntuZ.js → cssMode-DHdOPnmp.js} +1 -1
  74. package/dist/_frontend/assets/cssMode-DHdOPnmp.js.br +0 -0
  75. package/dist/_frontend/assets/cssMode-DHdOPnmp.js.gz +0 -0
  76. package/dist/_frontend/assets/{freemarker2-mt-0OJPn.js → freemarker2-BKViPF5X.js} +1 -1
  77. package/dist/_frontend/assets/freemarker2-BKViPF5X.js.br +0 -0
  78. package/dist/_frontend/assets/freemarker2-BKViPF5X.js.gz +0 -0
  79. package/dist/_frontend/assets/{handlebars-Bo_eeBHB.js → handlebars-Brwcouvl.js} +1 -1
  80. package/dist/_frontend/assets/handlebars-Brwcouvl.js.br +0 -0
  81. package/dist/_frontend/assets/handlebars-Brwcouvl.js.gz +0 -0
  82. package/dist/_frontend/assets/{html-DoUFg58L.js → html-DIzhH-PY.js} +1 -1
  83. package/dist/_frontend/assets/html-DIzhH-PY.js.br +0 -0
  84. package/dist/_frontend/assets/html-DIzhH-PY.js.gz +0 -0
  85. package/dist/_frontend/assets/{htmlMode-BlhKuSZG.js → htmlMode-CWkTMPSo.js} +1 -1
  86. package/dist/_frontend/assets/htmlMode-CWkTMPSo.js.br +0 -0
  87. package/dist/_frontend/assets/htmlMode-CWkTMPSo.js.gz +0 -0
  88. package/dist/_frontend/assets/{index-Deyh_9Br.js → index-7kzkzyvL.js} +3 -3
  89. package/dist/_frontend/assets/index-7kzkzyvL.js.br +0 -0
  90. package/dist/_frontend/assets/index-7kzkzyvL.js.gz +0 -0
  91. package/dist/_frontend/assets/{index-lujwH7cZ.js → index-lhOueW4w.js} +4 -4
  92. package/dist/_frontend/assets/index-lhOueW4w.js.br +0 -0
  93. package/dist/_frontend/assets/{index-lujwH7cZ.js.gz → index-lhOueW4w.js.gz} +0 -0
  94. package/dist/_frontend/assets/{javascript-D-mX1kVa.js → javascript-CsXJ8UkR.js} +1 -1
  95. package/dist/_frontend/assets/{jsonMode-CH0CEvvH.js → jsonMode-Do2FRNBn.js} +1 -1
  96. package/dist/_frontend/assets/jsonMode-Do2FRNBn.js.br +0 -0
  97. package/dist/_frontend/assets/jsonMode-Do2FRNBn.js.gz +0 -0
  98. package/dist/_frontend/assets/{liquid-2jfNjN-u.js → liquid-DlinQhlv.js} +1 -1
  99. package/dist/_frontend/assets/liquid-DlinQhlv.js.br +0 -0
  100. package/dist/_frontend/assets/liquid-DlinQhlv.js.gz +0 -0
  101. package/dist/_frontend/assets/{lspLanguageFeatures-M9gkg3zn.js → lspLanguageFeatures-Dw-hxDJI.js} +1 -1
  102. package/dist/_frontend/assets/lspLanguageFeatures-Dw-hxDJI.js.br +0 -0
  103. package/dist/_frontend/assets/lspLanguageFeatures-Dw-hxDJI.js.gz +0 -0
  104. package/dist/_frontend/assets/{mdx-B5stRewa.js → mdx-DtIO5KvQ.js} +1 -1
  105. package/dist/_frontend/assets/mdx-DtIO5KvQ.js.br +0 -0
  106. package/dist/_frontend/assets/mdx-DtIO5KvQ.js.gz +0 -0
  107. package/dist/_frontend/assets/{python-JhoSbRr2.js → python-BBZr1oz3.js} +1 -1
  108. package/dist/_frontend/assets/python-BBZr1oz3.js.br +0 -0
  109. package/dist/_frontend/assets/python-BBZr1oz3.js.gz +0 -0
  110. package/dist/_frontend/assets/{razor-o8H-ZPve.js → razor-D8YKFhw8.js} +1 -1
  111. package/dist/_frontend/assets/razor-D8YKFhw8.js.br +0 -0
  112. package/dist/_frontend/assets/razor-D8YKFhw8.js.gz +0 -0
  113. package/dist/_frontend/assets/{tsMode-Bn2-lGPB.js → tsMode-BbMq9MFu.js} +1 -1
  114. package/dist/_frontend/assets/tsMode-BbMq9MFu.js.br +0 -0
  115. package/dist/_frontend/assets/tsMode-BbMq9MFu.js.gz +0 -0
  116. package/dist/_frontend/assets/{typescript-C1jWxGYD.js → typescript-RWgDQi2T.js} +1 -1
  117. package/dist/_frontend/assets/typescript-RWgDQi2T.js.br +0 -0
  118. package/dist/_frontend/assets/typescript-RWgDQi2T.js.gz +0 -0
  119. package/dist/_frontend/assets/{workers-Bc1StNZg.js → workers-CQ8UrDET.js} +1 -1
  120. package/dist/_frontend/assets/workers-CQ8UrDET.js.br +0 -0
  121. package/dist/_frontend/assets/workers-CQ8UrDET.js.gz +0 -0
  122. package/dist/_frontend/assets/{xml-spds2Ev6.js → xml-CYQf_2f7.js} +1 -1
  123. package/dist/_frontend/assets/xml-CYQf_2f7.js.br +0 -0
  124. package/dist/_frontend/assets/xml-CYQf_2f7.js.gz +0 -0
  125. package/dist/_frontend/assets/{yaml-DrBjN9G5.js → yaml-Cr1BdzMD.js} +1 -1
  126. package/dist/_frontend/assets/yaml-Cr1BdzMD.js.br +0 -0
  127. package/dist/_frontend/assets/yaml-Cr1BdzMD.js.gz +0 -0
  128. package/dist/_frontend/index.html +1 -1
  129. package/package.json +3 -3
  130. package/dist/_frontend/assets/AgentCodeSnippets-7VCMMZ5Q-DKi8QFy2.js.br +0 -0
  131. package/dist/_frontend/assets/AgentCodeSnippets-7VCMMZ5Q-DKi8QFy2.js.gz +0 -0
  132. package/dist/_frontend/assets/AgentMetricChart-5EOXB7E3-V7zxnBmt.js.br +0 -0
  133. package/dist/_frontend/assets/AgentMetricChart-5EOXB7E3-V7zxnBmt.js.gz +0 -0
  134. package/dist/_frontend/assets/AgentOverview-TOGW6FNJ-Do31yMbq.js.br +0 -0
  135. package/dist/_frontend/assets/AgentOverview-TOGW6FNJ-Do31yMbq.js.gz +0 -0
  136. package/dist/_frontend/assets/AgentSessionEventTimeline-SAXINA2W-DgpYS-xn.js.br +0 -0
  137. package/dist/_frontend/assets/AgentSessionEventTimeline-SAXINA2W-DgpYS-xn.js.gz +0 -0
  138. package/dist/_frontend/assets/AgentSessionEventTimelineChart-2CELTVWR-BrvGQNim.js.br +0 -0
  139. package/dist/_frontend/assets/AgentSessionEventTimelineChart-2CELTVWR-BrvGQNim.js.gz +0 -0
  140. package/dist/_frontend/assets/AgentSessions-VGKHTL7J-CwWG5L6h.js.br +0 -0
  141. package/dist/_frontend/assets/ConnectorSettings-VKZWEFWZ-zQBki8u1.js.br +0 -0
  142. package/dist/_frontend/assets/ConnectorSettings-VKZWEFWZ-zQBki8u1.js.gz +0 -0
  143. package/dist/_frontend/assets/DrawerLayout-G75J4SOY-8IOXImPC.js.br +0 -0
  144. package/dist/_frontend/assets/DrawerLayout-G75J4SOY-8IOXImPC.js.gz +0 -0
  145. package/dist/_frontend/assets/EnvironmentsPage-D75O2D3T-BFawULXx.js.br +0 -0
  146. package/dist/_frontend/assets/EnvironmentsPage-D75O2D3T-BFawULXx.js.gz +0 -0
  147. package/dist/_frontend/assets/MemorySettings-IEGR7OAY-DftQfqj1.js.br +0 -0
  148. package/dist/_frontend/assets/MemorySettings-IEGR7OAY-DftQfqj1.js.gz +0 -0
  149. package/dist/_frontend/assets/ModelSettings-QC33FVLM-CwUu1VBp.js.br +0 -0
  150. package/dist/_frontend/assets/ModelSettings-QC33FVLM-CwUu1VBp.js.gz +0 -0
  151. package/dist/_frontend/assets/SandboxSettings-A46TVNZL-BddgaTJt.js.br +0 -0
  152. package/dist/_frontend/assets/SandboxSettings-A46TVNZL-BddgaTJt.js.gz +0 -0
  153. package/dist/_frontend/assets/SchedulesPage-KVAX7YQM-BNjvSygm.js.br +0 -0
  154. package/dist/_frontend/assets/SchedulesPage-KVAX7YQM-BNjvSygm.js.gz +0 -0
  155. package/dist/_frontend/assets/SettingsBuilder-VQKZH4QW-C1P8CRzi.js.br +0 -0
  156. package/dist/_frontend/assets/SettingsBuilder-VQKZH4QW-C1P8CRzi.js.gz +0 -0
  157. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-4g8jOwre.js.br +0 -0
  158. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-4g8jOwre.js.gz +0 -0
  159. package/dist/_frontend/assets/SidebarLayout-KAHFKPTH-ec7yQ_Bu.js.br +0 -0
  160. package/dist/_frontend/assets/SidebarLayout-KAHFKPTH-ec7yQ_Bu.js.gz +0 -0
  161. package/dist/_frontend/assets/SkillSettings-SKHQARUV-CEANZ4ro.js.br +0 -0
  162. package/dist/_frontend/assets/SkillSettings-SKHQARUV-CEANZ4ro.js.gz +0 -0
  163. package/dist/_frontend/assets/WebSearchSettings-NUYJVMBL-CsShufeW.js.br +0 -0
  164. package/dist/_frontend/assets/WebSearchSettings-NUYJVMBL-CsShufeW.js.gz +0 -0
  165. package/dist/_frontend/assets/WidgetLayout-RTWPXCL7-CNjwnSw_.js.br +0 -0
  166. package/dist/_frontend/assets/WidgetLayout-RTWPXCL7-CNjwnSw_.js.gz +0 -0
  167. package/dist/_frontend/assets/chunk-4LY4NAUC-C35c1p-q.js.br +0 -0
  168. package/dist/_frontend/assets/chunk-4LY4NAUC-C35c1p-q.js.gz +0 -0
  169. package/dist/_frontend/assets/chunk-OB3PAWPO-nc7pRn13.js.br +0 -0
  170. package/dist/_frontend/assets/chunk-OB3PAWPO-nc7pRn13.js.gz +0 -0
  171. package/dist/_frontend/assets/chunk-RQ7NBDM4-CH4qqDr1.js.br +0 -0
  172. package/dist/_frontend/assets/chunk-RQ7NBDM4-CH4qqDr1.js.gz +0 -0
  173. package/dist/_frontend/assets/chunk-U6PRJTQZ-B3vklHLF.js.br +0 -0
  174. package/dist/_frontend/assets/chunk-U6PRJTQZ-B3vklHLF.js.gz +0 -0
  175. package/dist/_frontend/assets/cssMode-CbQsntuZ.js.br +0 -0
  176. package/dist/_frontend/assets/cssMode-CbQsntuZ.js.gz +0 -0
  177. package/dist/_frontend/assets/freemarker2-mt-0OJPn.js.br +0 -0
  178. package/dist/_frontend/assets/freemarker2-mt-0OJPn.js.gz +0 -0
  179. package/dist/_frontend/assets/handlebars-Bo_eeBHB.js.br +0 -0
  180. package/dist/_frontend/assets/handlebars-Bo_eeBHB.js.gz +0 -0
  181. package/dist/_frontend/assets/html-DoUFg58L.js.br +0 -0
  182. package/dist/_frontend/assets/html-DoUFg58L.js.gz +0 -0
  183. package/dist/_frontend/assets/htmlMode-BlhKuSZG.js.br +0 -0
  184. package/dist/_frontend/assets/htmlMode-BlhKuSZG.js.gz +0 -0
  185. package/dist/_frontend/assets/index-Deyh_9Br.js.br +0 -0
  186. package/dist/_frontend/assets/index-Deyh_9Br.js.gz +0 -0
  187. package/dist/_frontend/assets/index-lujwH7cZ.js.br +0 -0
  188. package/dist/_frontend/assets/jsonMode-CH0CEvvH.js.br +0 -0
  189. package/dist/_frontend/assets/jsonMode-CH0CEvvH.js.gz +0 -0
  190. package/dist/_frontend/assets/liquid-2jfNjN-u.js.br +0 -0
  191. package/dist/_frontend/assets/liquid-2jfNjN-u.js.gz +0 -0
  192. package/dist/_frontend/assets/lspLanguageFeatures-M9gkg3zn.js.br +0 -0
  193. package/dist/_frontend/assets/lspLanguageFeatures-M9gkg3zn.js.gz +0 -0
  194. package/dist/_frontend/assets/mdx-B5stRewa.js.br +0 -0
  195. package/dist/_frontend/assets/mdx-B5stRewa.js.gz +0 -0
  196. package/dist/_frontend/assets/python-JhoSbRr2.js.br +0 -0
  197. package/dist/_frontend/assets/python-JhoSbRr2.js.gz +0 -0
  198. package/dist/_frontend/assets/razor-o8H-ZPve.js.br +0 -0
  199. package/dist/_frontend/assets/razor-o8H-ZPve.js.gz +0 -0
  200. package/dist/_frontend/assets/tsMode-Bn2-lGPB.js.br +0 -0
  201. package/dist/_frontend/assets/tsMode-Bn2-lGPB.js.gz +0 -0
  202. package/dist/_frontend/assets/typescript-C1jWxGYD.js.br +0 -0
  203. package/dist/_frontend/assets/typescript-C1jWxGYD.js.gz +0 -0
  204. package/dist/_frontend/assets/workers-Bc1StNZg.js.br +0 -4
  205. package/dist/_frontend/assets/workers-Bc1StNZg.js.gz +0 -0
  206. package/dist/_frontend/assets/xml-spds2Ev6.js.br +0 -0
  207. package/dist/_frontend/assets/xml-spds2Ev6.js.gz +0 -0
  208. package/dist/_frontend/assets/yaml-DrBjN9G5.js.br +0 -0
  209. package/dist/_frontend/assets/yaml-DrBjN9G5.js.gz +0 -0
@@ -1 +1 @@
1
- import{t as _,j as t,G as pe,r as d,bT as he,u as v,bU as M,bV as ge,bW as xe,bX as ve,bY as Ce,bZ as V,b_ as $,be as oe,b$ as re,c0 as be,c1 as Se,c2 as je,c3 as we,c4 as ye,bB as ke,bf as Ae,p as ae,c5 as Ie,c6 as J,c7 as ie,c8 as le,c9 as Re,ab as ce,q as Q,ca as Y,_ as P,cb as ee,a4 as Me,cc as Ee,cd as Ne,ce as Te,cf as Pe,cg as L,E as te,ch as De,ci as Le,cj as _e,ck as Oe,bK as Fe,a9 as ue,cl as Be,cm as de,cn as Ue,co as He,bS as W,cp as ze,cq as Ve,cr as We,cs as qe,bn as Ke,w as Qe,d as Ge,b as me,bh as Ye,ct as Xe,cu as $e,cv as Je,cw as Ze,I as H,a3 as K,c as U,cx as X,cy as et,k as tt,cz as nt}from"./index-lujwH7cZ.js";function st(){var p;const{pending:n}=ie(),e=Be(),[s,a]=d.useState({approvalId:null,index:0}),o=d.useRef(null),r=n.length,c=s.approvalId==null?-1:n.findIndex(f=>f.approvalId===s.approvalId),u=c>=0?c:r===0?0:Math.min(s.index,r-1),i=(p=n[u])==null?void 0:p.approvalId;d.useEffect(()=>{const f=i??null;s.approvalId===f&&s.index===u||a({approvalId:f,index:u})},[i,u,s.approvalId,s.index]),d.useEffect(()=>{if(i==null||e==null){i==null&&(o.current=null);return}o.current!==i&&(o.current=i,e.focus(i))},[i,e]);const l=d.useCallback(()=>{var b;const f=Math.max(0,u-1);a({approvalId:((b=n[f])==null?void 0:b.approvalId)??null,index:f})},[n,u]),m=d.useCallback(()=>{var b;const f=Math.min(Math.max(r-1,0),u+1);a({approvalId:((b=n[f])==null?void 0:b.approvalId)??null,index:f})},[r,n,u]),h=d.useCallback(()=>{i==null||e==null||e.focus(i)},[i,e]);return{count:r,index:u,canPrev:u>0,canNext:u<r-1,goPrev:l,goNext:m,focusCurrent:h}}function ot(){const n=v("ApprovalNavBanner"),{count:e,index:s,canPrev:a,canNext:o,goPrev:r,goNext:c,focusCurrent:u}=st();return e===0?null:t.jsx(n,{total:e,current:s+1,canPrev:a,canNext:o,onPrev:r,onNext:c,onFocusCurrent:u})}var B={radioValue:"",custom:""};function rt({disabled:n=!1}){const e=v("AskUserPrompt"),{pending:s,respond:a}=J(),o=Q(),r=s[0],c=d.useMemo(()=>r==null?[]:[{id:r.toolCallId,question:r.question??"Answer required",options:r.options??[]}],[r]),[u,i]=d.useState(0),[l,m]=d.useState({});d.useEffect(()=>{i(0),m({})},[r==null?void 0:r.toolCallId]);const h=Math.min(u,Math.max(c.length-1,0)),p=c[h],f=p==null?B:l[p.id]??B,b=d.useCallback(j=>{const I=l[j]??B;return I.radioValue===Y?I.custom.trim():I.radioValue.trim()},[l]),w=d.useMemo(()=>c.every(j=>b(j.id)),[b,c]),x=f.radioValue===Y?f.custom.trim():f.radioValue.trim(),S=n||p==null||x.length===0,A=S||!w,y=d.useCallback((j,I)=>{m(E=>({...E,[j]:{...E[j]??B,...I}}))},[]),k=d.useCallback(()=>{if(n||r==null||!w)return;const j=b(r.toolCallId);if(!j)return;const I=l[r.toolCallId]??B;o(P.AskUser.SUBMITTED,{tool_call_id:r.toolCallId,question_count:c.length,is_custom_option:I.radioValue===Y}),a({toolCallId:r.toolCallId,content:j})},[w,l,n,b,r,c.length,a,o]);return r==null||p==null?null:t.jsx(e,{questions:c,readOnly:n,currentQuestion:p,currentQuestionIndex:h,currentAnswer:f,totalQuestions:c.length,isMultiQuestion:c.length>1,isLastQuestion:h===c.length-1,allQuestionsAnswered:w,isSubmitDisabled:S,isSubmitAllDisabled:A,onCurrentQuestionIndexChange:i,onCurrentAnswerChange:y,onSubmit:k})}function at(n){var a,o,r;const e=n.thread.messages,s=e[e.length-1];return(s==null?void 0:s.role)!=="assistant"||((a=s.status)==null?void 0:a.type)!=="requires-action"?!1:((r=(o=s.metadata)==null?void 0:o.custom)==null?void 0:r.pendingMcpAuth)===!0}function it(){const n=M(at),{pending:e}=J(),{pending:s}=ie(),a=le(),o=e[0];if(o!=null){const r=o.toolName;return r!=null&&(a==null?void 0:a[r])!=null?{kind:"custom",toolName:r}:{kind:"ask-user"}}return s.length>0?{kind:"approval"}:n?{kind:"mcp"}:{kind:"compose"}}function lt({disabled:n=!1}){const e=le(),{pending:s,respond:a}=J(),o=s[0],r=d.useCallback(u=>{if(n||o==null)return;const i=u.trim();i&&a({toolCallId:o.toolCallId,content:i})},[n,o,a]);if(o==null||o.toolName==null)return null;const c=e==null?void 0:e[o.toolName];return c==null?null:t.jsx(c,{args:o.args??{},disabled:n,onSubmit:r})}function ct({servers:n,onContinue:e,readOnly:s}){const a=v("McpAuthPrompt"),{handleAuthorize:o}=Fe(),{refreshConnectors:r}=ue(),[c,u]=d.useState(()=>new Set),i=d.useRef(c),[l,m]=d.useState(!1),[h,p]=d.useState(!1),f=d.useRef(!1),b=d.useRef(0);d.useEffect(()=>()=>{b.current+=1},[]);const w=()=>{s||f.current||h||(f.current=!0,m(!0),e().then(()=>{p(!0)}).catch(()=>{}).finally(()=>{f.current=!1,m(!1)}))},x=S=>{const A=b.current;o(S,y=>{if(A!==b.current||!y)return;const k=new Set([...i.current,S]);i.current=k,u(k),r(),n.every(j=>k.has(j.id))&&w()})};return h?null:t.jsx(a,{servers:n,connectedServerIds:c,continueLoading:l,onConnect:x,onContinue:w,readOnly:s})}function ut({servers:n,onContinue:e,readOnly:s}){const a=v("McpAuthPrompt"),[o,r]=d.useState(!1),[c,u]=d.useState(!1),i=d.useRef(!1),l=()=>{s||i.current||c||(i.current=!0,r(!0),e().then(()=>{u(!0)}).catch(()=>{}).finally(()=>{i.current=!1,r(!1)}))};if(c)return null;const m=h=>{const p=n.find(f=>f.id===h);p!=null&&p.authUrl&&window.open(p.authUrl,"_blank","noopener,noreferrer")};return t.jsx(a,{servers:n,continueLoading:o,onConnect:m,onContinue:l,readOnly:s})}function dt({disabled:n=!1}){const{pending:e,continue:s}=Re(),a=ce();if(!e)return null;const o=n,r=JSON.stringify(e.mcpServers.map(c=>c.id));return a?t.jsx(ct,{servers:e.mcpServers,onContinue:s,readOnly:o},r):t.jsx(ut,{servers:e.mcpServers,onContinue:s,readOnly:o},r)}function mt(n){var s;const e=n.items;if(e.length>0){const a=[];let o=0;for(const r of Array.from(e)){if(r.kind!=="file")continue;const c=((s=r.webkitGetAsEntry)==null?void 0:s.call(r))??null;if((c==null?void 0:c.isDirectory)===!0){o+=1;continue}const u=r.getAsFile();u!=null&&a.push(u)}return{files:a,rejectedDirectoryCount:o}}return{files:Array.from(n.files),rejectedDirectoryCount:0}}function ft({disabled:n,hasText:e,hasAttachments:s,requiresModel:a,hasModel:o}){return!n&&(e||s)&&(!a||o)}function ne({placeholder:n,connectedToBanner:e=!1}){var F,Z;const s=v("ComposerShell"),a=oe(),o=_(),r=Q(),c=M(C=>C.threadListItem.remoteId),u=M(C=>C.composer.text.trim().length>0),i=M(C=>C.composer.attachments.length),l=i>0,m=u||l,{agentSpec:h}=de(),p=o==null||o.mode.status==="active"&&o.mode.isMutable,f=!!((Z=(F=h==null?void 0:h.model)==null?void 0:F.name)!=null&&Z.trim()),{isBusy:b,send:w,resetBusy:x}=Ue(),S=$(),A=He(),y=ae(),k=d.useRef(null),[j,I]=d.useState(!1),E=d.useRef(!1),N=!S,O=ft({disabled:N,hasText:u,hasAttachments:l,requiresModel:p,hasModel:f}),T=(o==null?void 0:o.mode.status)==="active"?{agentId:o.mode.agentId,agentName:o.mode.agentName}:{},g=()=>{var C;O&&(r(P.Message.SENT,W({has_text:u,has_attachments:l,attachment_count:i,requires_model:p,model:(C=h==null?void 0:h.model)==null?void 0:C.name},{sessionId:c,...T})),w(()=>a.composer().send()))},R=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||O&&(C.preventDefault(),g())};return t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:k,type:"file",multiple:!0,hidden:!0,onChange:C=>{const D=C.target.files;if(D){r(P.Attachment.PICKED,W({file_count:D.length},{sessionId:c,...T}));for(const z of D)a.composer().addAttachment(z).catch(G=>{y==null||y.showError(G)})}C.target.value=""}}),t.jsx(L.AttachmentDropzone,{disabled:N,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:C=>{if(N)return;const D=C.dataTransfer;if(D==null)return;const{files:z,rejectedDirectoryCount:G}=mt(D);G>0&&(y==null||y.showError(new Error("Folders cannot be attached. Attach individual files instead."))),z.length!==0&&r(P.Attachment.PICKED,W({file_count:z.length},{sessionId:c,...T}))},children:t.jsx(L.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),g()},children:t.jsx(s,{className:e?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:t.jsx(ze,{}),input:t.jsx(L.Input,{"data-slot":"aui_composer-input",placeholder:n,disabled:N,submitMode:"enter",onKeyDown:R,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:N,canSubmit:O,hasContent:m,isRunning:b,isCancelling:j,onSubmit:g,onCancel:S?()=>{E.current||(E.current=!0,I(!0),r(P.Message.CANCELLED,W(void 0,{sessionId:c,...T})),x(),A().catch(()=>{}).finally(()=>{E.current=!1,I(!1)}))}:void 0,onAttach:S?()=>{var C;return(C=k.current)==null?void 0:C.click()}:void 0})})})]})}function q({placeholder:n,connectedToBanner:e=!1}){const s=_(),a=v("ComposerLeftSection"),o=v("ComposerRightSection"),r=ee("ComposerLeftSection"),c=ee("ComposerRightSection"),u=v("DraftComposerLeftSection"),i=v("DraftComposerRightSection");return(s==null?void 0:s.mode.status)==="active"&&s.mode.isMutable?t.jsx(Me,{children:t.jsx(Ee,{overrides:{ComposerLeftSection:r?u:a,ComposerRightSection:c?i:o},children:t.jsx(ne,{placeholder:n,connectedToBanner:e})})}):t.jsx(ne,{placeholder:n,connectedToBanner:e})}function pt({placeholder:n="Ask anything... (Shift+Enter for new line)"}){const e=it(),s=$(),a=e.kind==="mcp"?t.jsx(dt,{disabled:!s}):e.kind==="custom"?t.jsx(lt,{disabled:!s}):e.kind==="ask-user"?t.jsx(rt,{disabled:!s}):e.kind==="approval"?t.jsx(ot,{}):null;return a==null?t.jsx(q,{placeholder:n}):e.kind==="approval"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[a,t.jsx(q,{placeholder:n,connectedToBanner:!0})]}):e.kind==="mcp"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"relative flex w-full flex-col",children:[t.jsx("div",{className:"pb-2",children:a}),t.jsx("div",{className:"relative z-10 -mt-3",children:t.jsx(q,{placeholder:n})})]}):t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[a,t.jsx("div",{className:"relative z-10 -mt-1",children:t.jsx(q,{placeholder:n})})]})}var ht=200,se='[data-slot="aui_thread-viewport"]';function gt(){const n=v("HistoryLoader"),{hasOlderHistory:e,isLoadingOlderHistory:s,loadOlderHistory:a}=be(),[o,r]=d.useState(null),c=d.useRef(!1),u=d.useCallback(async()=>{if(c.current)return;c.current=!0;const i=(o==null?void 0:o.closest(se))??null,l=(i==null?void 0:i.scrollHeight)??0,m=(i==null?void 0:i.scrollTop)??0;try{await a(),requestAnimationFrame(()=>{if(i==null)return;const h=i.scrollHeight-l;h>0&&i.scrollTo({top:m+h,behavior:"instant"})})}catch{}finally{c.current=!1}},[o,a]);return d.useEffect(()=>{if(o==null||!e)return;const i=o.closest(se),l=new IntersectionObserver(m=>{m.some(h=>h.isIntersecting)&&u()},{root:i,rootMargin:`${ht}px 0px 0px 0px`});return l.observe(o),()=>l.disconnect()},[o,e,u]),e?t.jsx(n,{ref:r,isLoading:s}):null}function xt(){const n=v("ResumeUnavailable");return we()?t.jsx(n,{}):null}function vt(){return M(e=>{var s;return(((s=e.message.attachments)==null?void 0:s.length)??0)>0})?t.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:t.jsx(Ve,{})}):null}function Ct(){const n=v("UserMessageEdit"),e=v("MessageTimestamp"),s=re(),a=$(),o=M(i=>i.message.createdAt),{cancel:r,disabled:c}=Ne(),{disabled:u}=Te();return t.jsx(Pe.Root,{"data-role":"user",children:t.jsx(L.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:t.jsx(n,{timestamp:t.jsx(e,{createdAt:o}),attachments:t.jsx(vt,{}),input:t.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:t.jsx(L.Input,{"data-slot":"aui_user-edit-input",disabled:s||!a,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:t.jsxs("div",{className:"flex items-center justify-end gap-2",children:[t.jsx(te.Secondary,{type:"button",disabled:c,onClick:r,children:"Cancel"}),t.jsx(L.Send,{asChild:!0,children:t.jsx(te.Primary,{type:"button",disabled:u||s||!a,children:"Save & Rerun"})})]})})})})}function bt(){const n=oe(),e=M(u=>u.threadListItem.remoteId),s=M(u=>u.threadListItem.title),a=re(),o=d.useRef(!1),r=d.useRef(e),c=d.useRef(void 0);d.useEffect(()=>{const u=r.current!==e;r.current=e;const i=!u&&o.current&&!a;if(o.current=a,u&&(c.current=void 0),!i||e==null||c.current===e||s!=null&&s.trim()!=="")return;c.current=e;const l=n.threadListItem();Promise.resolve().then(()=>l.generateTitle()).catch(()=>{})},[n,a,e,s])}var fe="trueforge.file-preview-width";function St(){try{const n=sessionStorage.getItem(fe);if(n==null)return null;const e=Number(n);return Number.isFinite(e)?e:null}catch{return null}}function jt(n){try{sessionStorage.setItem(fe,String(Math.round(n)))}catch{}}function wt(){const n=ye(),e=v("FilePreviewPanel"),s=ke(),a=Ae(),o=ae(),[r,c]=d.useState(0),[u,i]=d.useState(!1),[l,m]=d.useState(St),h=Ie(n.target,r),p=n.target,f=n.presentation==="full"?"full":s||a?"overlay":"side";if(d.useLayoutEffect(()=>{var A;if(p==null||f!=="side")return;const x=((A=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:A.getBoundingClientRect().width)??0;if(x<=0)return;const S=l==null?De(x):Le({requested:l,rowWidth:x});(l==null||Math.abs(S-l)>1)&&m(S)},[f,p,l]),p==null)return null;const b=h.view.status==="error",w=()=>{u||(i(!0),(async()=>{try{const x=h.blob??await p.load();_e(x,Oe(p.path))}catch(x){o!=null?o.showError(x):console.error("Failed to download sandbox file",x)}finally{i(!1)}})())};return t.jsx(e,{name:p.name,placement:f,view:h.view,onClose:n.close,onDownload:w,onEnterFullPage:()=>n.setPresentation("full"),onExitFullPage:()=>n.setPresentation("panel"),downloadBusy:u,...f==="side"&&l!=null?{widthPx:l}:{},...f==="side"?{onWidthChange:x=>{m(x),jt(x)}}:{},...b?{onRetry:()=>c(x=>x+1)}:{}})}function yt({children:n}){return t.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:n})}function kt({isEditing:n}){return M(s=>s.message.role)==="user"?n?t.jsx(Ct,{}):t.jsx(Se,{}):t.jsx(je,{})}function At({composer:n}){d.useEffect(()=>{he()},[]),bt();const e=_(),s=v("WelcomeScreen"),a=v("MessageListSkeleton"),o=v("ScrollToBottomButton"),r=v("MessageGroup"),c=v("ThreadComposerAreaShell"),u=v("ThreadRootShell"),i=v("ThreadViewportShell"),l=M(ge),m=M(p=>p.thread.isLoading),h=(e==null?void 0:e.mode.status)==="active"?e.mode.agentName!=null&&e.mode.agentName.length>0?e.mode.agentName:e.mode.isMutable&&e.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return t.jsx(xe,{children:t.jsx(ve,{children:t.jsx(Ce,{children:t.jsx(V.Root,{asChild:!0,children:t.jsx(u,{children:t.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[t.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[t.jsx(V.Viewport,{asChild:!0,autoScroll:!0,children:t.jsxs(i,{isEmpty:l,children:[l&&t.jsx(s,{heading:h}),l&&!m&&n,m?t.jsx(a,{}):!l&&t.jsxs(t.Fragment,{children:[t.jsx(gt,{}),t.jsxs(r,{children:[t.jsx(V.Messages,{children:({message:p})=>t.jsx(yt,{children:t.jsx(kt,{isEditing:p.role==="user"&&p.composer.isEditing})})}),t.jsx(xt,{})]})]})]})}),!m&&!l&&t.jsxs(c,{isEmpty:l,children:[t.jsx(V.ScrollToBottom,{asChild:!0,children:t.jsx(o,{})}),n]})]}),t.jsx(wt,{})]})})})})})})}function Rt(){const n=_();return(n==null?void 0:n.sessionAccessError)!=null?t.jsx(pe,{title:"Unable to load session",description:n.sessionAccessError,className:"bg-primary-bg"}):t.jsx(At,{composer:t.jsx(pt,{})})}function Mt({className:n}){var i;const e=_(),s=Q(),a=et(),o=M(l=>l.threadListItem.title);if(a===null)return null;const r=(o==null?void 0:o.trim())??"",c=a.allowThreadTitle&&r.length>0?r:a.name,u=(e==null?void 0:e.isLibraryEnabled)===!0&&((i=e.historyAgentFilter)==null?void 0:i.intent)==="try-agent";return t.jsxs("h1",{className:U("flex min-w-0 items-center gap-1.5",nt,n),children:[u?t.jsx("button",{type:"button","aria-label":"Back to all agents",title:"Back to all agents",className:K({variant:"ghost",size:"icon",className:"text-text-secondary"}),onClick:()=>{s(P.Library.OPENED),e==null||e.setLibraryOpen(!0)},children:t.jsx(H,{name:"arrow-left"})}):null,t.jsx("span",{className:"truncate",title:c,children:c}),a.isEditing?t.jsx(tt,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:t.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[t.jsx(H,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function Et({className:n,labeled:e=!1,onAction:s}){const a=_(),o=Q(),r=ce(),c=me(),{mode:u,setTheme:i}=Je(),l=v("ShellActionsActionSlot"),m=u==="dark",h=m?"Light":"Dark",p=Ze({catalog:r,capabilities:c}),f="hover:bg-secondary-button-hover hover:text-ghost-button-text";return t.jsxs("div",{className:U("flex shrink-0 items-center gap-1",e?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",n),children:[t.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X)}),onClick:()=>s==null?void 0:s(),children:[t.jsx(H,{name:"book-open",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Docs"}):null]}),t.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X)}),onClick:()=>{i(m?"light":"dark"),s==null||s()},children:[t.jsx(H,{name:m?"sun":"moon",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:h}):null]}),a!=null&&p?t.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":a.settingsOpen,"aria-current":a.settingsOpen?"page":void 0,className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X,a.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{a.settingsOpen||o(P.Settings.OPENED),a.setSettingsOpen(!0),s==null||s()},children:[t.jsx(H,{name:"settings",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,t.jsx(l,{})]})}function Nt({showClose:n=!1}){var T;const{agentSpec:e}=de(),s=We(),a=qe(),o=Ke(),r=o.mode.status==="active"?o.mode.agentId:void 0,{allows:c}=Qe({resourceType:"agent",resourceIds:r==null?[]:[r]}),u=c(r,"MANAGE"),i=Ge(),l=me(),m=ue(),h=v("AgentConfigPanel"),p=v("AgentConfigEditors"),[f,b]=d.useState(null),w=Ye(o.mode),{draft:x,flush:S}=Xe(),A=d.useCallback(()=>{S(),a(),o.setAgentConfigOpen(!1)},[a,S,o]);d.useEffect(()=>{w&&m.ensureLoaded()},[m,w]),d.useEffect(()=>{u||b(null)},[u]),d.useEffect(()=>{if(!n||!o.agentConfigOpen)return;const g=R=>{!R.defaultPrevented&&R.key==="Escape"&&f===null&&document.querySelector("dialog[open]")===null&&A()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[A,f,o.agentConfigOpen,n]);const y=d.useRef({flushAgentSpec:a,flushInstructions:S});y.current={flushAgentSpec:a,flushInstructions:S},d.useEffect(()=>()=>{const{flushAgentSpec:g,flushInstructions:R}=y.current;R();try{g()}catch{}},[]);const k=d.useCallback(({next:g,instructions:R})=>{var F;if(u){if(g.skills&&g.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){s==null||s({...g,instructions:R||void 0,config:{...g.config,sandbox:{...(F=g.config)==null?void 0:F.sandbox,enabled:!0}}});return}s==null||s({...g,instructions:R||void 0})}},[u,l==null?void 0:l.sandbox.enabled,s]),j=d.useCallback(g=>{k({next:g,instructions:x})},[k,x]),I=d.useCallback(g=>{e!==null&&k({next:$e({spec:e,messages:g.messages}),instructions:g.instructions})},[e,k]),E=d.useCallback(async g=>(i==null?void 0:i.getMcpTools)===void 0?[]:i.getMcpTools({connectorId:g}),[i]),N=d.useCallback(async g=>{var R;return(R=i==null?void 0:i.getMcpConnector)==null?void 0:R.call(i,{connectorId:g})},[i]);if(!w||e===null||n&&!o.agentConfigOpen)return null;const O=m.models.find(g=>g.name===e.model.name);return t.jsxs(t.Fragment,{children:[t.jsx(h,{spec:e,model:O,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((T=l==null?void 0:l.webSearch)==null?void 0:T.enabled)===!0,memoryOffered:(l==null?void 0:l.memory)!=null,instructions:x,onOpenEditor:g=>{u&&b(g)},onChange:j,disabled:!u,onClose:n?A:void 0}),t.jsx(p,{editor:f,spec:e,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,instructions:x,onInstructionsSave:I,...(i==null?void 0:i.getMcpConnector)===void 0?{}:{loadMcpConnector:N},loadMcpTools:E,onRefreshConnectors:m.refreshConnectors,onChange:j,onClose:()=>b(null)})]})}export{Nt as A,Mt as N,Et as S,Rt as T};
1
+ import{t as _,j as t,G as pe,r as d,bT as he,u as v,bU as M,bV as ge,bW as xe,bX as ve,bY as Ce,bZ as V,b_ as $,be as oe,b$ as re,c0 as be,c1 as Se,c2 as je,c3 as we,c4 as ye,bB as ke,bf as Ae,p as ae,c5 as Ie,c6 as J,c7 as ie,c8 as le,c9 as Re,ab as ce,q as Q,ca as Y,_ as P,cb as ee,a4 as Me,cc as Ee,cd as Ne,ce as Te,cf as Pe,cg as L,E as te,ch as De,ci as Le,cj as _e,ck as Oe,bK as Fe,a9 as ue,cl as Be,cm as de,cn as Ue,co as He,bS as W,cp as ze,cq as Ve,cr as We,cs as qe,bn as Ke,w as Qe,d as Ge,b as me,bh as Ye,ct as Xe,cu as $e,cv as Je,cw as Ze,I as H,a3 as K,c as U,cx as X,cy as et,k as tt,cz as nt}from"./index-lhOueW4w.js";function st(){var p;const{pending:n}=ie(),e=Be(),[s,a]=d.useState({approvalId:null,index:0}),o=d.useRef(null),r=n.length,c=s.approvalId==null?-1:n.findIndex(f=>f.approvalId===s.approvalId),u=c>=0?c:r===0?0:Math.min(s.index,r-1),i=(p=n[u])==null?void 0:p.approvalId;d.useEffect(()=>{const f=i??null;s.approvalId===f&&s.index===u||a({approvalId:f,index:u})},[i,u,s.approvalId,s.index]),d.useEffect(()=>{if(i==null||e==null){i==null&&(o.current=null);return}o.current!==i&&(o.current=i,e.focus(i))},[i,e]);const l=d.useCallback(()=>{var b;const f=Math.max(0,u-1);a({approvalId:((b=n[f])==null?void 0:b.approvalId)??null,index:f})},[n,u]),m=d.useCallback(()=>{var b;const f=Math.min(Math.max(r-1,0),u+1);a({approvalId:((b=n[f])==null?void 0:b.approvalId)??null,index:f})},[r,n,u]),h=d.useCallback(()=>{i==null||e==null||e.focus(i)},[i,e]);return{count:r,index:u,canPrev:u>0,canNext:u<r-1,goPrev:l,goNext:m,focusCurrent:h}}function ot(){const n=v("ApprovalNavBanner"),{count:e,index:s,canPrev:a,canNext:o,goPrev:r,goNext:c,focusCurrent:u}=st();return e===0?null:t.jsx(n,{total:e,current:s+1,canPrev:a,canNext:o,onPrev:r,onNext:c,onFocusCurrent:u})}var B={radioValue:"",custom:""};function rt({disabled:n=!1}){const e=v("AskUserPrompt"),{pending:s,respond:a}=J(),o=Q(),r=s[0],c=d.useMemo(()=>r==null?[]:[{id:r.toolCallId,question:r.question??"Answer required",options:r.options??[]}],[r]),[u,i]=d.useState(0),[l,m]=d.useState({});d.useEffect(()=>{i(0),m({})},[r==null?void 0:r.toolCallId]);const h=Math.min(u,Math.max(c.length-1,0)),p=c[h],f=p==null?B:l[p.id]??B,b=d.useCallback(j=>{const I=l[j]??B;return I.radioValue===Y?I.custom.trim():I.radioValue.trim()},[l]),w=d.useMemo(()=>c.every(j=>b(j.id)),[b,c]),x=f.radioValue===Y?f.custom.trim():f.radioValue.trim(),S=n||p==null||x.length===0,A=S||!w,y=d.useCallback((j,I)=>{m(E=>({...E,[j]:{...E[j]??B,...I}}))},[]),k=d.useCallback(()=>{if(n||r==null||!w)return;const j=b(r.toolCallId);if(!j)return;const I=l[r.toolCallId]??B;o(P.AskUser.SUBMITTED,{tool_call_id:r.toolCallId,question_count:c.length,is_custom_option:I.radioValue===Y}),a({toolCallId:r.toolCallId,content:j})},[w,l,n,b,r,c.length,a,o]);return r==null||p==null?null:t.jsx(e,{questions:c,readOnly:n,currentQuestion:p,currentQuestionIndex:h,currentAnswer:f,totalQuestions:c.length,isMultiQuestion:c.length>1,isLastQuestion:h===c.length-1,allQuestionsAnswered:w,isSubmitDisabled:S,isSubmitAllDisabled:A,onCurrentQuestionIndexChange:i,onCurrentAnswerChange:y,onSubmit:k})}function at(n){var a,o,r;const e=n.thread.messages,s=e[e.length-1];return(s==null?void 0:s.role)!=="assistant"||((a=s.status)==null?void 0:a.type)!=="requires-action"?!1:((r=(o=s.metadata)==null?void 0:o.custom)==null?void 0:r.pendingMcpAuth)===!0}function it(){const n=M(at),{pending:e}=J(),{pending:s}=ie(),a=le(),o=e[0];if(o!=null){const r=o.toolName;return r!=null&&(a==null?void 0:a[r])!=null?{kind:"custom",toolName:r}:{kind:"ask-user"}}return s.length>0?{kind:"approval"}:n?{kind:"mcp"}:{kind:"compose"}}function lt({disabled:n=!1}){const e=le(),{pending:s,respond:a}=J(),o=s[0],r=d.useCallback(u=>{if(n||o==null)return;const i=u.trim();i&&a({toolCallId:o.toolCallId,content:i})},[n,o,a]);if(o==null||o.toolName==null)return null;const c=e==null?void 0:e[o.toolName];return c==null?null:t.jsx(c,{args:o.args??{},disabled:n,onSubmit:r})}function ct({servers:n,onContinue:e,readOnly:s}){const a=v("McpAuthPrompt"),{handleAuthorize:o}=Fe(),{refreshConnectors:r}=ue(),[c,u]=d.useState(()=>new Set),i=d.useRef(c),[l,m]=d.useState(!1),[h,p]=d.useState(!1),f=d.useRef(!1),b=d.useRef(0);d.useEffect(()=>()=>{b.current+=1},[]);const w=()=>{s||f.current||h||(f.current=!0,m(!0),e().then(()=>{p(!0)}).catch(()=>{}).finally(()=>{f.current=!1,m(!1)}))},x=S=>{const A=b.current;o(S,y=>{if(A!==b.current||!y)return;const k=new Set([...i.current,S]);i.current=k,u(k),r(),n.every(j=>k.has(j.id))&&w()})};return h?null:t.jsx(a,{servers:n,connectedServerIds:c,continueLoading:l,onConnect:x,onContinue:w,readOnly:s})}function ut({servers:n,onContinue:e,readOnly:s}){const a=v("McpAuthPrompt"),[o,r]=d.useState(!1),[c,u]=d.useState(!1),i=d.useRef(!1),l=()=>{s||i.current||c||(i.current=!0,r(!0),e().then(()=>{u(!0)}).catch(()=>{}).finally(()=>{i.current=!1,r(!1)}))};if(c)return null;const m=h=>{const p=n.find(f=>f.id===h);p!=null&&p.authUrl&&window.open(p.authUrl,"_blank","noopener,noreferrer")};return t.jsx(a,{servers:n,continueLoading:o,onConnect:m,onContinue:l,readOnly:s})}function dt({disabled:n=!1}){const{pending:e,continue:s}=Re(),a=ce();if(!e)return null;const o=n,r=JSON.stringify(e.mcpServers.map(c=>c.id));return a?t.jsx(ct,{servers:e.mcpServers,onContinue:s,readOnly:o},r):t.jsx(ut,{servers:e.mcpServers,onContinue:s,readOnly:o},r)}function mt(n){var s;const e=n.items;if(e.length>0){const a=[];let o=0;for(const r of Array.from(e)){if(r.kind!=="file")continue;const c=((s=r.webkitGetAsEntry)==null?void 0:s.call(r))??null;if((c==null?void 0:c.isDirectory)===!0){o+=1;continue}const u=r.getAsFile();u!=null&&a.push(u)}return{files:a,rejectedDirectoryCount:o}}return{files:Array.from(n.files),rejectedDirectoryCount:0}}function ft({disabled:n,hasText:e,hasAttachments:s,requiresModel:a,hasModel:o}){return!n&&(e||s)&&(!a||o)}function ne({placeholder:n,connectedToBanner:e=!1}){var F,Z;const s=v("ComposerShell"),a=oe(),o=_(),r=Q(),c=M(C=>C.threadListItem.remoteId),u=M(C=>C.composer.text.trim().length>0),i=M(C=>C.composer.attachments.length),l=i>0,m=u||l,{agentSpec:h}=de(),p=o==null||o.mode.status==="active"&&o.mode.isMutable,f=!!((Z=(F=h==null?void 0:h.model)==null?void 0:F.name)!=null&&Z.trim()),{isBusy:b,send:w,resetBusy:x}=Ue(),S=$(),A=He(),y=ae(),k=d.useRef(null),[j,I]=d.useState(!1),E=d.useRef(!1),N=!S,O=ft({disabled:N,hasText:u,hasAttachments:l,requiresModel:p,hasModel:f}),T=(o==null?void 0:o.mode.status)==="active"?{agentId:o.mode.agentId,agentName:o.mode.agentName}:{},g=()=>{var C;O&&(r(P.Message.SENT,W({has_text:u,has_attachments:l,attachment_count:i,requires_model:p,model:(C=h==null?void 0:h.model)==null?void 0:C.name},{sessionId:c,...T})),w(()=>a.composer().send()))},R=C=>{C.key!=="Enter"||C.shiftKey||C.nativeEvent.isComposing||O&&(C.preventDefault(),g())};return t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:k,type:"file",multiple:!0,hidden:!0,onChange:C=>{const D=C.target.files;if(D){r(P.Attachment.PICKED,W({file_count:D.length},{sessionId:c,...T}));for(const z of D)a.composer().addAttachment(z).catch(G=>{y==null||y.showError(G)})}C.target.value=""}}),t.jsx(L.AttachmentDropzone,{disabled:N,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:C=>{if(N)return;const D=C.dataTransfer;if(D==null)return;const{files:z,rejectedDirectoryCount:G}=mt(D);G>0&&(y==null||y.showError(new Error("Folders cannot be attached. Attach individual files instead."))),z.length!==0&&r(P.Attachment.PICKED,W({file_count:z.length},{sessionId:c,...T}))},children:t.jsx(L.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:C=>{C.preventDefault(),g()},children:t.jsx(s,{className:e?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:t.jsx(ze,{}),input:t.jsx(L.Input,{"data-slot":"aui_composer-input",placeholder:n,disabled:N,submitMode:"enter",onKeyDown:R,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:N,canSubmit:O,hasContent:m,isRunning:b,isCancelling:j,onSubmit:g,onCancel:S?()=>{E.current||(E.current=!0,I(!0),r(P.Message.CANCELLED,W(void 0,{sessionId:c,...T})),x(),A().catch(()=>{}).finally(()=>{E.current=!1,I(!1)}))}:void 0,onAttach:S?()=>{var C;return(C=k.current)==null?void 0:C.click()}:void 0})})})]})}function q({placeholder:n,connectedToBanner:e=!1}){const s=_(),a=v("ComposerLeftSection"),o=v("ComposerRightSection"),r=ee("ComposerLeftSection"),c=ee("ComposerRightSection"),u=v("DraftComposerLeftSection"),i=v("DraftComposerRightSection");return(s==null?void 0:s.mode.status)==="active"&&s.mode.isMutable?t.jsx(Me,{children:t.jsx(Ee,{overrides:{ComposerLeftSection:r?u:a,ComposerRightSection:c?i:o},children:t.jsx(ne,{placeholder:n,connectedToBanner:e})})}):t.jsx(ne,{placeholder:n,connectedToBanner:e})}function pt({placeholder:n="Ask anything... (Shift+Enter for new line)"}){const e=it(),s=$(),a=e.kind==="mcp"?t.jsx(dt,{disabled:!s}):e.kind==="custom"?t.jsx(lt,{disabled:!s}):e.kind==="ask-user"?t.jsx(rt,{disabled:!s}):e.kind==="approval"?t.jsx(ot,{}):null;return a==null?t.jsx(q,{placeholder:n}):e.kind==="approval"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[a,t.jsx(q,{placeholder:n,connectedToBanner:!0})]}):e.kind==="mcp"?t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"relative flex w-full flex-col",children:[t.jsx("div",{className:"pb-2",children:a}),t.jsx("div",{className:"relative z-10 -mt-3",children:t.jsx(q,{placeholder:n})})]}):t.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":e.kind,className:"flex w-full flex-col",children:[a,t.jsx("div",{className:"relative z-10 -mt-1",children:t.jsx(q,{placeholder:n})})]})}var ht=200,se='[data-slot="aui_thread-viewport"]';function gt(){const n=v("HistoryLoader"),{hasOlderHistory:e,isLoadingOlderHistory:s,loadOlderHistory:a}=be(),[o,r]=d.useState(null),c=d.useRef(!1),u=d.useCallback(async()=>{if(c.current)return;c.current=!0;const i=(o==null?void 0:o.closest(se))??null,l=(i==null?void 0:i.scrollHeight)??0,m=(i==null?void 0:i.scrollTop)??0;try{await a(),requestAnimationFrame(()=>{if(i==null)return;const h=i.scrollHeight-l;h>0&&i.scrollTo({top:m+h,behavior:"instant"})})}catch{}finally{c.current=!1}},[o,a]);return d.useEffect(()=>{if(o==null||!e)return;const i=o.closest(se),l=new IntersectionObserver(m=>{m.some(h=>h.isIntersecting)&&u()},{root:i,rootMargin:`${ht}px 0px 0px 0px`});return l.observe(o),()=>l.disconnect()},[o,e,u]),e?t.jsx(n,{ref:r,isLoading:s}):null}function xt(){const n=v("ResumeUnavailable");return we()?t.jsx(n,{}):null}function vt(){return M(e=>{var s;return(((s=e.message.attachments)==null?void 0:s.length)??0)>0})?t.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:t.jsx(Ve,{})}):null}function Ct(){const n=v("UserMessageEdit"),e=v("MessageTimestamp"),s=re(),a=$(),o=M(i=>i.message.createdAt),{cancel:r,disabled:c}=Ne(),{disabled:u}=Te();return t.jsx(Pe.Root,{"data-role":"user",children:t.jsx(L.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:t.jsx(n,{timestamp:t.jsx(e,{createdAt:o}),attachments:t.jsx(vt,{}),input:t.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:t.jsx(L.Input,{"data-slot":"aui_user-edit-input",disabled:s||!a,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:t.jsxs("div",{className:"flex items-center justify-end gap-2",children:[t.jsx(te.Secondary,{type:"button",disabled:c,onClick:r,children:"Cancel"}),t.jsx(L.Send,{asChild:!0,children:t.jsx(te.Primary,{type:"button",disabled:u||s||!a,children:"Save & Rerun"})})]})})})})}function bt(){const n=oe(),e=M(u=>u.threadListItem.remoteId),s=M(u=>u.threadListItem.title),a=re(),o=d.useRef(!1),r=d.useRef(e),c=d.useRef(void 0);d.useEffect(()=>{const u=r.current!==e;r.current=e;const i=!u&&o.current&&!a;if(o.current=a,u&&(c.current=void 0),!i||e==null||c.current===e||s!=null&&s.trim()!=="")return;c.current=e;const l=n.threadListItem();Promise.resolve().then(()=>l.generateTitle()).catch(()=>{})},[n,a,e,s])}var fe="trueforge.file-preview-width";function St(){try{const n=sessionStorage.getItem(fe);if(n==null)return null;const e=Number(n);return Number.isFinite(e)?e:null}catch{return null}}function jt(n){try{sessionStorage.setItem(fe,String(Math.round(n)))}catch{}}function wt(){const n=ye(),e=v("FilePreviewPanel"),s=ke(),a=Ae(),o=ae(),[r,c]=d.useState(0),[u,i]=d.useState(!1),[l,m]=d.useState(St),h=Ie(n.target,r),p=n.target,f=n.presentation==="full"?"full":s||a?"overlay":"side";if(d.useLayoutEffect(()=>{var A;if(p==null||f!=="side")return;const x=((A=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:A.getBoundingClientRect().width)??0;if(x<=0)return;const S=l==null?De(x):Le({requested:l,rowWidth:x});(l==null||Math.abs(S-l)>1)&&m(S)},[f,p,l]),p==null)return null;const b=h.view.status==="error",w=()=>{u||(i(!0),(async()=>{try{const x=h.blob??await p.load();_e(x,Oe(p.path))}catch(x){o!=null?o.showError(x):console.error("Failed to download sandbox file",x)}finally{i(!1)}})())};return t.jsx(e,{name:p.name,placement:f,view:h.view,onClose:n.close,onDownload:w,onEnterFullPage:()=>n.setPresentation("full"),onExitFullPage:()=>n.setPresentation("panel"),downloadBusy:u,...f==="side"&&l!=null?{widthPx:l}:{},...f==="side"?{onWidthChange:x=>{m(x),jt(x)}}:{},...b?{onRetry:()=>c(x=>x+1)}:{}})}function yt({children:n}){return t.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:n})}function kt({isEditing:n}){return M(s=>s.message.role)==="user"?n?t.jsx(Ct,{}):t.jsx(Se,{}):t.jsx(je,{})}function At({composer:n}){d.useEffect(()=>{he()},[]),bt();const e=_(),s=v("WelcomeScreen"),a=v("MessageListSkeleton"),o=v("ScrollToBottomButton"),r=v("MessageGroup"),c=v("ThreadComposerAreaShell"),u=v("ThreadRootShell"),i=v("ThreadViewportShell"),l=M(ge),m=M(p=>p.thread.isLoading),h=(e==null?void 0:e.mode.status)==="active"?e.mode.agentName!=null&&e.mode.agentName.length>0?e.mode.agentName:e.mode.isMutable&&e.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return t.jsx(xe,{children:t.jsx(ve,{children:t.jsx(Ce,{children:t.jsx(V.Root,{asChild:!0,children:t.jsx(u,{children:t.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[t.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[t.jsx(V.Viewport,{asChild:!0,autoScroll:!0,children:t.jsxs(i,{isEmpty:l,children:[l&&t.jsx(s,{heading:h}),l&&!m&&n,m?t.jsx(a,{}):!l&&t.jsxs(t.Fragment,{children:[t.jsx(gt,{}),t.jsxs(r,{children:[t.jsx(V.Messages,{children:({message:p})=>t.jsx(yt,{children:t.jsx(kt,{isEditing:p.role==="user"&&p.composer.isEditing})})}),t.jsx(xt,{})]})]})]})}),!m&&!l&&t.jsxs(c,{isEmpty:l,children:[t.jsx(V.ScrollToBottom,{asChild:!0,children:t.jsx(o,{})}),n]})]}),t.jsx(wt,{})]})})})})})})}function Rt(){const n=_();return(n==null?void 0:n.sessionAccessError)!=null?t.jsx(pe,{title:"Unable to load session",description:n.sessionAccessError,className:"bg-primary-bg"}):t.jsx(At,{composer:t.jsx(pt,{})})}function Mt({className:n}){var i;const e=_(),s=Q(),a=et(),o=M(l=>l.threadListItem.title);if(a===null)return null;const r=(o==null?void 0:o.trim())??"",c=a.allowThreadTitle&&r.length>0?r:a.name,u=(e==null?void 0:e.isLibraryEnabled)===!0&&((i=e.historyAgentFilter)==null?void 0:i.intent)==="try-agent";return t.jsxs("h1",{className:U("flex min-w-0 items-center gap-1.5",nt,n),children:[u?t.jsx("button",{type:"button","aria-label":"Back to all agents",title:"Back to all agents",className:K({variant:"ghost",size:"icon",className:"text-text-secondary"}),onClick:()=>{s(P.Library.OPENED),e==null||e.setLibraryOpen(!0)},children:t.jsx(H,{name:"arrow-left"})}):null,t.jsx("span",{className:"truncate",title:c,children:c}),a.isEditing?t.jsx(tt,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:t.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[t.jsx(H,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function Et({className:n,labeled:e=!1,onAction:s}){const a=_(),o=Q(),r=ce(),c=me(),{mode:u,setTheme:i}=Je(),l=v("ShellActionsActionSlot"),m=u==="dark",h=m?"Light":"Dark",p=Ze({catalog:r,capabilities:c}),f="hover:bg-secondary-button-hover hover:text-ghost-button-text";return t.jsxs("div",{className:U("flex shrink-0 items-center gap-1",e?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",n),children:[t.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X)}),onClick:()=>s==null?void 0:s(),children:[t.jsx(H,{name:"book-open",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Docs"}):null]}),t.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X)}),onClick:()=>{i(m?"light":"dark"),s==null||s()},children:[t.jsx(H,{name:m?"sun":"moon",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:h}):null]}),a!=null&&p?t.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":a.settingsOpen,"aria-current":a.settingsOpen?"page":void 0,className:K({variant:"ghost",size:e?void 0:"icon",className:U(f,e&&X,a.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{a.settingsOpen||o(P.Settings.OPENED),a.setSettingsOpen(!0),s==null||s()},children:[t.jsx(H,{name:"settings",size:e?14:void 0}),e?t.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,t.jsx(l,{})]})}function Nt({showClose:n=!1}){var T;const{agentSpec:e}=de(),s=We(),a=qe(),o=Ke(),r=o.mode.status==="active"?o.mode.agentId:void 0,{allows:c}=Qe({resourceType:"agent",resourceIds:r==null?[]:[r]}),u=c(r,"MANAGE"),i=Ge(),l=me(),m=ue(),h=v("AgentConfigPanel"),p=v("AgentConfigEditors"),[f,b]=d.useState(null),w=Ye(o.mode),{draft:x,flush:S}=Xe(),A=d.useCallback(()=>{S(),a(),o.setAgentConfigOpen(!1)},[a,S,o]);d.useEffect(()=>{w&&m.ensureLoaded()},[m,w]),d.useEffect(()=>{u||b(null)},[u]),d.useEffect(()=>{if(!n||!o.agentConfigOpen)return;const g=R=>{!R.defaultPrevented&&R.key==="Escape"&&f===null&&document.querySelector("dialog[open]")===null&&A()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[A,f,o.agentConfigOpen,n]);const y=d.useRef({flushAgentSpec:a,flushInstructions:S});y.current={flushAgentSpec:a,flushInstructions:S},d.useEffect(()=>()=>{const{flushAgentSpec:g,flushInstructions:R}=y.current;R();try{g()}catch{}},[]);const k=d.useCallback(({next:g,instructions:R})=>{var F;if(u){if(g.skills&&g.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){s==null||s({...g,instructions:R||void 0,config:{...g.config,sandbox:{...(F=g.config)==null?void 0:F.sandbox,enabled:!0}}});return}s==null||s({...g,instructions:R||void 0})}},[u,l==null?void 0:l.sandbox.enabled,s]),j=d.useCallback(g=>{k({next:g,instructions:x})},[k,x]),I=d.useCallback(g=>{e!==null&&k({next:$e({spec:e,messages:g.messages}),instructions:g.instructions})},[e,k]),E=d.useCallback(async g=>(i==null?void 0:i.getMcpTools)===void 0?[]:i.getMcpTools({connectorId:g}),[i]),N=d.useCallback(async g=>{var R;return(R=i==null?void 0:i.getMcpConnector)==null?void 0:R.call(i,{connectorId:g})},[i]);if(!w||e===null||n&&!o.agentConfigOpen)return null;const O=m.models.find(g=>g.name===e.model.name);return t.jsxs(t.Fragment,{children:[t.jsx(h,{spec:e,model:O,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((T=l==null?void 0:l.webSearch)==null?void 0:T.enabled)===!0,memoryOffered:(l==null?void 0:l.memory)!=null,instructions:x,onOpenEditor:g=>{u&&b(g)},onChange:j,disabled:!u,onClose:n?A:void 0}),t.jsx(p,{editor:f,spec:e,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,instructions:x,onInstructionsSave:I,...(i==null?void 0:i.getMcpConnector)===void 0?{}:{loadMcpConnector:N},loadMcpTools:E,onRefreshConnectors:m.refreshConnectors,onChange:j,onClose:()=>b(null)})]})}export{Nt as A,Mt as N,Et as S,Rt as T};
@@ -1 +1 @@
1
- import{c as h}from"./workers-Bc1StNZg.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-M9gkg3zn.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-M9gkg3zn.js";import{l as s}from"./index-Deyh_9Br.js";import"./index-lujwH7cZ.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
1
+ import{c as h}from"./workers-CQ8UrDET.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-Dw-hxDJI.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-Dw-hxDJI.js";import{l as s}from"./index-7kzkzyvL.js";import"./index-lhOueW4w.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
@@ -1,3 +1,3 @@
1
- import{l as c}from"./index-Deyh_9Br.js";import"./index-lujwH7cZ.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./index-7kzkzyvL.js";import"./index-lhOueW4w.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./index-Deyh_9Br.js";import"./index-lujwH7cZ.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
1
+ import{l as e}from"./index-7kzkzyvL.js";import"./index-lhOueW4w.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
@@ -1 +1 @@
1
- import{l as e}from"./index-Deyh_9Br.js";import"./index-lujwH7cZ.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
1
+ import{l as e}from"./index-7kzkzyvL.js";import"./index-lhOueW4w.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
@@ -1 +1 @@
1
- import{c as D}from"./workers-Bc1StNZg.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-M9gkg3zn.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-M9gkg3zn.js";import{l as t}from"./index-Deyh_9Br.js";import"./index-lujwH7cZ.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
1
+ import{c as D}from"./workers-CQ8UrDET.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-Dw-hxDJI.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-Dw-hxDJI.js";import{l as t}from"./index-7kzkzyvL.js";import"./index-lhOueW4w.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};