sparkdesign 0.0.1 → 0.2.6

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 (403) hide show
  1. package/README.md +279 -5
  2. package/cli/dist/commands/add.js +84 -0
  3. package/cli/dist/commands/diff.js +54 -0
  4. package/cli/dist/commands/init.js +96 -0
  5. package/cli/dist/commands/list.js +25 -0
  6. package/cli/dist/index.js +37 -0
  7. package/cli/dist/utils/config.js +53 -0
  8. package/cli/dist/utils/registry.js +34 -0
  9. package/cli/dist/utils/tokens.js +90 -0
  10. package/cli/dist/utils/transform.js +19 -0
  11. package/cli/registry/basic/alert-dialog.tsx +180 -0
  12. package/cli/registry/basic/avatar.tsx +120 -0
  13. package/cli/registry/basic/button.tsx +100 -0
  14. package/cli/registry/basic/collapse.tsx +94 -0
  15. package/cli/registry/basic/collapsible-card.tsx +230 -0
  16. package/cli/registry/basic/collapsible.tsx +21 -0
  17. package/cli/registry/basic/dropdown-menu.tsx +254 -0
  18. package/cli/registry/basic/icon-button.tsx +66 -0
  19. package/cli/registry/basic/icons-inline.tsx +206 -0
  20. package/cli/registry/basic/kbd.tsx +50 -0
  21. package/cli/registry/basic/option-list.tsx +125 -0
  22. package/cli/registry/basic/pagination.tsx +132 -0
  23. package/cli/registry/basic/progress.tsx +42 -0
  24. package/cli/registry/basic/radio-group.tsx +69 -0
  25. package/cli/registry/basic/resizable.tsx +67 -0
  26. package/cli/registry/basic/scrollbar.tsx +114 -0
  27. package/cli/registry/basic/select.tsx +177 -0
  28. package/cli/registry/basic/skeleton.tsx +33 -0
  29. package/cli/registry/basic/slider.tsx +55 -0
  30. package/cli/registry/basic/sonner.tsx +104 -0
  31. package/cli/registry/basic/spinner.tsx +17 -0
  32. package/cli/registry/basic/switch.tsx +49 -0
  33. package/cli/registry/basic/table.tsx +117 -0
  34. package/cli/registry/basic/tabs.tsx +85 -0
  35. package/cli/registry/basic/tag.tsx +161 -0
  36. package/cli/registry/basic/theme-from-document.ts +10 -0
  37. package/cli/registry/basic/toggle.tsx +223 -0
  38. package/cli/registry/basic/tooltip.tsx +80 -0
  39. package/cli/registry/basic/typography.tsx +201 -0
  40. package/cli/registry/chat/browser-use-part.tsx +166 -0
  41. package/cli/registry/chat/chat-input/chat-input-folder-selector.tsx +185 -0
  42. package/cli/registry/chat/chat-input/chat-input-model-switcher.tsx +131 -0
  43. package/cli/registry/chat/chat-input/chat-input-textarea.tsx +67 -0
  44. package/cli/registry/chat/chat-input/compound.tsx +334 -0
  45. package/cli/registry/chat/chat-input/context.tsx +189 -0
  46. package/cli/registry/chat/chat-input/folder-permission-dialog.tsx +61 -0
  47. package/cli/registry/chat/chat-input/index.tsx +123 -0
  48. package/cli/registry/chat/chat-input/types.ts +77 -0
  49. package/cli/registry/chat/chat-input/useAutoResizeTextarea.ts +20 -0
  50. package/cli/registry/chat/code-block-part.tsx +151 -0
  51. package/cli/registry/chat/file-attachment.tsx +44 -0
  52. package/cli/registry/chat/file-card.tsx +68 -0
  53. package/cli/registry/chat/file-review-part.tsx +259 -0
  54. package/cli/registry/chat/folder-button.tsx +169 -0
  55. package/cli/registry/chat/generated-images-grid.tsx +56 -0
  56. package/cli/registry/chat/generation-status-bar.tsx +72 -0
  57. package/cli/registry/chat/image-attachment.tsx +166 -0
  58. package/cli/registry/chat/image-generating.tsx +281 -0
  59. package/cli/registry/chat/markdown.tsx +146 -0
  60. package/cli/registry/chat/mermaid-part.tsx +90 -0
  61. package/cli/registry/chat/permission-card.tsx +178 -0
  62. package/cli/registry/chat/plan-part.tsx +168 -0
  63. package/cli/registry/chat/question-part.tsx +70 -0
  64. package/cli/registry/chat/queue-indicator.tsx +234 -0
  65. package/cli/registry/chat/reasoning-step.tsx +358 -0
  66. package/cli/registry/chat/related-prompts.tsx +91 -0
  67. package/cli/registry/chat/request.tsx +38 -0
  68. package/cli/registry/chat/response.tsx +271 -0
  69. package/cli/registry/chat/send-button.tsx +94 -0
  70. package/cli/registry/chat/sidebar-menu.tsx +177 -0
  71. package/cli/registry/chat/streaming-markdown-block.tsx +111 -0
  72. package/cli/registry/chat/suggestion-part.tsx +165 -0
  73. package/cli/registry/chat/task-part.tsx +109 -0
  74. package/cli/registry/chat/terminal-code-block-part.tsx +69 -0
  75. package/cli/registry/chat/thinking-indicator.tsx +91 -0
  76. package/cli/registry/chat/tool-invocation-card.tsx +132 -0
  77. package/cli/registry/chat/user-question/UserQuestionCard.tsx +198 -0
  78. package/cli/registry/chat/user-question/UserQuestionFooter.tsx +66 -0
  79. package/cli/registry/chat/user-question/UserQuestionHeader.tsx +64 -0
  80. package/cli/registry/chat/user-question/index.tsx +340 -0
  81. package/cli/registry/chat/user-question/types.ts +61 -0
  82. package/cli/registry/chat/user-question/useUserQuestionKeyboard.ts +127 -0
  83. package/cli/registry/chat/user-question/useUserQuestionState.ts +165 -0
  84. package/cli/registry/chat/user-question-answer.tsx +62 -0
  85. package/cli/registry/lib/file-icon-maps.ts +150 -0
  86. package/cli/registry/lib/use-mermaid-render.ts +76 -0
  87. package/cli/registry/lib/utils.ts +6 -0
  88. package/cli/registry/meta.json +1 -0
  89. package/cli/registry/tokens/scale.css +299 -0
  90. package/cli/registry/tokens/theme.css +633 -0
  91. package/dist/_basePickBy-DnQN8w3y.js +151 -0
  92. package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
  93. package/dist/_baseUniq-B-N2NQ50.js +614 -0
  94. package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
  95. package/dist/arc-BQBhijZ6.js +83 -0
  96. package/dist/arc-mWQt0Yph.cjs +1 -0
  97. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
  98. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
  99. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
  100. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
  101. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
  102. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
  103. package/dist/channel-BQn0o8bs.js +5 -0
  104. package/dist/channel-DaN7XniJ.cjs +1 -0
  105. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
  106. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
  107. package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
  108. package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
  109. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
  110. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
  111. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
  112. package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
  113. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
  114. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
  115. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
  116. package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
  117. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
  118. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
  119. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
  120. package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
  121. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
  122. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
  123. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
  124. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
  125. package/dist/clone-Cde_NQ8V.js +8 -0
  126. package/dist/clone-DCNjWuM2.cjs +1 -0
  127. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
  128. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
  129. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  130. package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
  131. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
  132. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
  133. package/dist/defaultLocale-BgPVtth8.js +171 -0
  134. package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
  135. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
  136. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
  137. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
  138. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
  139. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
  140. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
  141. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
  142. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
  143. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
  144. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
  145. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  146. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  147. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  148. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  149. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  150. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  151. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  152. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  153. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  154. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  155. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  156. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  157. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  158. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  159. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  160. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  161. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  162. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  163. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  164. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  165. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  166. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  167. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  168. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  169. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  170. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  171. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  172. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  173. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  174. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  175. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  176. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  177. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  178. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  179. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  180. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  181. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  182. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  183. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  184. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  185. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  186. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  187. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  188. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  189. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  190. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  191. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  192. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  193. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  194. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  195. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  196. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  197. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  198. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  199. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  200. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  201. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  202. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  203. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  204. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  205. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
  206. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
  207. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
  208. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
  209. package/dist/graph-DIbblrZP.cjs +1 -0
  210. package/dist/graph-DPcK91G3.js +247 -0
  211. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
  212. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
  213. package/dist/init-CHZsXQcr.cjs +1 -0
  214. package/dist/init-DjUOC4st.js +16 -0
  215. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
  216. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
  217. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
  218. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
  219. package/dist/katex.css +1 -0
  220. package/dist/layout-Byuh8f-J.cjs +1 -0
  221. package/dist/layout-CdLdvj1j.js +1335 -0
  222. package/dist/linear-C2Q_PI9B.js +259 -0
  223. package/dist/linear-C69aPBW1.cjs +1 -0
  224. package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
  225. package/dist/mermaid.core-gFR0XUlD.js +15300 -0
  226. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
  227. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
  228. package/dist/ordinal-B6-f3MAq.js +61 -0
  229. package/dist/ordinal-CagbB1m8.cjs +1 -0
  230. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
  231. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
  232. package/dist/qoder-design.css +2 -0
  233. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
  234. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
  235. package/dist/registry/basic/alert-dialog.d.ts +40 -0
  236. package/dist/registry/basic/avatar.d.ts +30 -0
  237. package/dist/registry/basic/button.d.ts +16 -0
  238. package/dist/registry/basic/collapse.d.ts +22 -0
  239. package/dist/registry/basic/collapsible-card.d.ts +34 -0
  240. package/dist/registry/basic/collapsible.d.ts +15 -0
  241. package/dist/registry/basic/dropdown-menu.d.ts +52 -0
  242. package/dist/registry/basic/icon-button.d.ts +12 -0
  243. package/dist/registry/basic/icons-inline.d.ts +51 -0
  244. package/dist/registry/basic/kbd.d.ts +23 -0
  245. package/dist/registry/basic/option-list.d.ts +16 -0
  246. package/dist/registry/basic/pagination.d.ts +33 -0
  247. package/dist/registry/basic/progress.d.ts +18 -0
  248. package/dist/registry/basic/radio-group.d.ts +25 -0
  249. package/dist/registry/basic/resizable.d.ts +318 -0
  250. package/dist/registry/basic/scrollbar.d.ts +12 -0
  251. package/dist/registry/basic/select.d.ts +35 -0
  252. package/dist/registry/basic/skeleton.d.ts +10 -0
  253. package/dist/registry/basic/slider.d.ts +16 -0
  254. package/dist/registry/basic/sonner.d.ts +23 -0
  255. package/dist/registry/basic/spinner.d.ts +5 -0
  256. package/dist/registry/basic/switch.d.ts +20 -0
  257. package/dist/registry/basic/table.d.ts +18 -0
  258. package/dist/registry/basic/tabs.d.ts +29 -0
  259. package/dist/registry/basic/tag.d.ts +23 -0
  260. package/dist/registry/basic/theme-from-document.d.ts +10 -0
  261. package/dist/registry/basic/toggle.d.ts +29 -0
  262. package/dist/registry/basic/tooltip.d.ts +34 -0
  263. package/dist/registry/basic/typography.d.ts +76 -0
  264. package/dist/registry/chat/browser-use-part.d.ts +28 -0
  265. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
  266. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
  267. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
  268. package/dist/registry/chat/chat-input/compound.d.ts +97 -0
  269. package/dist/registry/chat/chat-input/context.d.ts +64 -0
  270. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
  271. package/dist/registry/chat/chat-input/index.d.ts +34 -0
  272. package/dist/registry/chat/chat-input/types.d.ts +79 -0
  273. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
  274. package/dist/registry/chat/code-block-part.d.ts +23 -0
  275. package/dist/registry/chat/file-attachment.d.ts +19 -0
  276. package/dist/registry/chat/file-card.d.ts +10 -0
  277. package/dist/registry/chat/file-review-part.d.ts +30 -0
  278. package/dist/registry/chat/folder-button.d.ts +20 -0
  279. package/dist/registry/chat/generated-images-grid.d.ts +15 -0
  280. package/dist/registry/chat/generation-status-bar.d.ts +19 -0
  281. package/dist/registry/chat/image-attachment.d.ts +19 -0
  282. package/dist/registry/chat/image-generating.d.ts +15 -0
  283. package/dist/registry/chat/markdown.d.ts +8 -0
  284. package/dist/registry/chat/mermaid-part.d.ts +17 -0
  285. package/dist/registry/chat/permission-card.d.ts +24 -0
  286. package/dist/registry/chat/plan-part.d.ts +30 -0
  287. package/dist/registry/chat/question-part.d.ts +24 -0
  288. package/dist/registry/chat/queue-indicator.d.ts +27 -0
  289. package/dist/registry/chat/reasoning-step.d.ts +35 -0
  290. package/dist/registry/chat/related-prompts.d.ts +23 -0
  291. package/dist/registry/chat/request.d.ts +6 -0
  292. package/dist/registry/chat/response.d.ts +28 -0
  293. package/dist/registry/chat/send-button.d.ts +17 -0
  294. package/dist/registry/chat/sidebar-menu.d.ts +23 -0
  295. package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
  296. package/dist/registry/chat/suggestion-part.d.ts +28 -0
  297. package/dist/registry/chat/task-part.d.ts +28 -0
  298. package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
  299. package/dist/registry/chat/thinking-indicator.d.ts +14 -0
  300. package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
  301. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
  302. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
  303. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
  304. package/dist/registry/chat/user-question/index.d.ts +7 -0
  305. package/dist/registry/chat/user-question/types.d.ts +52 -0
  306. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +18 -0
  307. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
  308. package/dist/registry/chat/user-question-answer.d.ts +13 -0
  309. package/dist/registry/lib/file-icon-maps.d.ts +20 -0
  310. package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
  311. package/dist/registry/lib/utils.d.ts +11 -0
  312. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
  313. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
  314. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
  315. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
  316. package/dist/scale.css +307 -0
  317. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
  318. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
  319. package/dist/spark-design.cjs.js +265 -0
  320. package/dist/spark-design.es.js +13207 -0
  321. package/dist/src/components/chat/BrowserUsePart/index.d.ts +7 -0
  322. package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
  323. package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
  324. package/dist/src/components/chat/CollapsibleCard/index.d.ts +7 -0
  325. package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
  326. package/dist/src/components/chat/FileCard/index.d.ts +3 -0
  327. package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
  328. package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
  329. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
  330. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
  331. package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
  332. package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
  333. package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
  334. package/dist/src/components/chat/Markdown/index.d.ts +7 -0
  335. package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
  336. package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
  337. package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
  338. package/dist/src/components/chat/QuestionPart/index.d.ts +6 -0
  339. package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
  340. package/dist/src/components/chat/ReasoningStep/index.d.ts +7 -0
  341. package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
  342. package/dist/src/components/chat/Request/index.d.ts +7 -0
  343. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
  344. package/dist/src/components/chat/Response/index.d.ts +6 -0
  345. package/dist/src/components/chat/SendButton/index.d.ts +5 -0
  346. package/dist/src/components/chat/SidebarMenu/index.d.ts +4 -0
  347. package/dist/src/components/chat/SuggestionPart/index.d.ts +6 -0
  348. package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
  349. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
  350. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
  351. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
  352. package/dist/src/components/chat/UserQuestion/index.d.ts +5 -0
  353. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
  354. package/dist/src/components/foundation/AlertDialog/index.d.ts +20 -0
  355. package/dist/src/components/foundation/Avatar/index.d.ts +7 -0
  356. package/dist/src/components/foundation/Button/index.d.ts +7 -0
  357. package/dist/src/components/foundation/Collapse/index.d.ts +15 -0
  358. package/dist/src/components/foundation/Collapsible/index.d.ts +7 -0
  359. package/dist/src/components/foundation/CollapsibleSection/index.d.ts +43 -0
  360. package/dist/src/components/foundation/DropdownMenu/index.d.ts +19 -0
  361. package/dist/src/components/foundation/EllipsisText/index.d.ts +53 -0
  362. package/dist/src/components/foundation/IconButton/index.d.ts +7 -0
  363. package/dist/src/components/foundation/Kbd/index.d.ts +7 -0
  364. package/dist/src/components/foundation/OptionList/index.d.ts +7 -0
  365. package/dist/src/components/foundation/Pagination/index.d.ts +7 -0
  366. package/dist/src/components/foundation/Progress/index.d.ts +7 -0
  367. package/dist/src/components/foundation/RadioGroup/index.d.ts +7 -0
  368. package/dist/src/components/foundation/Resizable/index.d.ts +7 -0
  369. package/dist/src/components/foundation/Scrollbar/index.d.ts +7 -0
  370. package/dist/src/components/foundation/Select/index.d.ts +17 -0
  371. package/dist/src/components/foundation/Skeleton/index.d.ts +7 -0
  372. package/dist/src/components/foundation/Slider/index.d.ts +7 -0
  373. package/dist/src/components/foundation/Spinner/index.d.ts +7 -0
  374. package/dist/src/components/foundation/Switch/index.d.ts +38 -0
  375. package/dist/src/components/foundation/Table/index.d.ts +7 -0
  376. package/dist/src/components/foundation/Tabs/index.d.ts +7 -0
  377. package/dist/src/components/foundation/Tag/index.d.ts +10 -0
  378. package/dist/src/components/foundation/Toast/index.d.ts +12 -0
  379. package/dist/src/components/foundation/Toggle/index.d.ts +7 -0
  380. package/dist/src/components/foundation/Tooltip/index.d.ts +21 -0
  381. package/dist/src/components/foundation/Typography/index.d.ts +7 -0
  382. package/dist/src/components/index.d.ts +136 -0
  383. package/dist/src/icons/context.d.ts +26 -0
  384. package/dist/src/icons/types.d.ts +18 -0
  385. package/dist/src/lib/ThemeStyleContext.d.ts +21 -0
  386. package/dist/src/lib/file-icon.d.ts +16 -0
  387. package/dist/src/lib/i18n.d.ts +12 -0
  388. package/dist/src/lib/index.d.ts +10 -0
  389. package/dist/src/lib/motion.d.ts +22 -0
  390. package/dist/src/lib/utils.d.ts +11 -0
  391. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
  392. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
  393. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
  394. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
  395. package/dist/theme.css +804 -0
  396. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
  397. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
  398. package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
  399. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
  400. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
  401. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
  402. package/package.json +111 -9
  403. package/index.js +0 -5
@@ -0,0 +1,265 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),se=require("framer-motion"),si=require("@radix-ui/react-tooltip"),xe=require("clsx"),ai=require("@radix-ui/react-dropdown-menu"),ne=require("class-variance-authority"),ri=require("@radix-ui/react-alert-dialog"),oi=require("@radix-ui/react-switch"),Ss=require("react-dom"),Is=require("sonner"),ii=require("@radix-ui/react-select"),li=require("react-markdown"),ci=require("remark-gfm"),di=require("remark-math"),ui=require("rehype-katex"),Bn=require("lottie-react"),Es=require("react-i18next"),pi=require("@radix-ui/react-avatar"),mi=require("@radix-ui/react-accordion"),fi=require("@radix-ui/react-progress"),gi=require("@radix-ui/react-radio-group"),Xt=require("react-resizable-panels"),xi=require("@radix-ui/react-slider"),hi=require("@radix-ui/react-tabs"),yi=require("@radix-ui/react-toggle"),bi=require("@radix-ui/react-toggle-group");function ue(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const N=ue(x),Me=ue(si),J=ue(ai),ce=ue(ri),Gn=ue(oi),ae=ue(ii),Be=ue(pi),Ye=ue(mi),Hn=ue(fi),Vt=ue(gi),ut=ue(xi),Fe=ue(hi),vi=ue(yi),Ut=ue(bi),qt=ne.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"},textOnly:{true:"h-auto px-0 py-0.5",false:""}},compoundVariants:[{textOnly:!0,size:"sm",className:"text-xs"},{textOnly:!0,size:"md",className:"text-sm"},{textOnly:!0,size:"lg",className:"text-base"}],defaultVariants:{variant:"ghost",size:"md",rounded:"square",textOnly:!1}}),te=x.forwardRef(({variant:e="ghost",children:t,size:s="md",textButton:a=!1,prefixIcon:r,suffixIcon:i,rounded:o="square",disabled:l=!1,className:c,...d},p)=>n.jsxs("button",{ref:p,className:qt({variant:a?"text":e,size:s,rounded:o,textOnly:a,className:c}),disabled:l,...d,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),t,i&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:i})]}));te.displayName="Button";const ki=(e,t)=>{const s=new Array(e.length+t.length);for(let a=0;a<e.length;a++)s[a]=e[a];for(let a=0;a<t.length;a++)s[e.length+a]=t[a];return s},wi=(e,t)=>({classGroupId:e,validator:t}),As=(e=new Map,t=null,s)=>({nextPart:e,validators:t,classGroupId:s}),wt="-",Vn=[],ji="arbitrary..",Ni=e=>{const t=Si(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Ci(o);const l=o.split(wt),c=l[0]===""&&l.length>1?1:0;return Rs(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=a[o],d=s[o];return c?d?ki(d,c):c:d||Vn}return s[o]||Vn}}},Rs=(e,t,s)=>{if(e.length-t===0)return s.classGroupId;const r=e[t],i=s.nextPart.get(r);if(i){const d=Rs(e,t+1,i);if(d)return d}const o=s.validators;if(o===null)return;const l=t===0?e.join(wt):e.slice(t).join(wt),c=o.length;for(let d=0;d<c;d++){const p=o[d];if(p.validator(l))return p.classGroupId}},Ci=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),s=t.indexOf(":"),a=t.slice(0,s);return a?ji+a:void 0})(),Si=e=>{const{theme:t,classGroups:s}=e;return Ii(s,t)},Ii=(e,t)=>{const s=As();for(const a in e){const r=e[a];Jt(r,s,a,t)}return s},Jt=(e,t,s,a)=>{const r=e.length;for(let i=0;i<r;i++){const o=e[i];Ei(o,t,s,a)}},Ei=(e,t,s,a)=>{if(typeof e=="string"){Ai(e,t,s);return}if(typeof e=="function"){Ri(e,t,s,a);return}Ti(e,t,s,a)},Ai=(e,t,s)=>{const a=e===""?t:Ts(t,e);a.classGroupId=s},Ri=(e,t,s,a)=>{if(Li(e)){Jt(e(a),t,s,a);return}t.validators===null&&(t.validators=[]),t.validators.push(wi(s,e))},Ti=(e,t,s,a)=>{const r=Object.entries(e),i=r.length;for(let o=0;o<i;o++){const[l,c]=r[o];Jt(c,Ts(t,l),s,a)}},Ts=(e,t)=>{let s=e;const a=t.split(wt),r=a.length;for(let i=0;i<r;i++){const o=a[i];let l=s.nextPart.get(o);l||(l=As(),s.nextPart.set(o,l)),s=l}return s},Li=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,_i=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=Object.create(null),a=Object.create(null);const r=(i,o)=>{s[i]=o,t++,t>e&&(t=0,a=s,s=Object.create(null))};return{get(i){let o=s[i];if(o!==void 0)return o;if((o=a[i])!==void 0)return r(i,o),o},set(i,o){i in s?s[i]=o:r(i,o)}}},Wt="!",Un=":",Pi=[],qn=(e,t,s,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:s,maybePostfixModifierPosition:a,isExternal:r}),Fi=e=>{const{prefix:t,experimentalParseClassName:s}=e;let a=r=>{const i=[];let o=0,l=0,c=0,d;const p=r.length;for(let m=0;m<p;m++){const f=r[m];if(o===0&&l===0){if(f===Un){i.push(r.slice(c,m)),c=m+1;continue}if(f==="/"){d=m;continue}}f==="["?o++:f==="]"?o--:f==="("?l++:f===")"&&l--}const g=i.length===0?r:r.slice(c);let h=g,w=!1;g.endsWith(Wt)?(h=g.slice(0,-1),w=!0):g.startsWith(Wt)&&(h=g.slice(1),w=!0);const u=d&&d>c?d-c:void 0;return qn(i,w,h,u)};if(t){const r=t+Un,i=a;a=o=>o.startsWith(r)?i(o.slice(r.length)):qn(Pi,!1,o,void 0,!0)}if(s){const r=a;a=i=>s({className:i,parseClassName:r})}return a},zi=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((s,a)=>{t.set(s,1e6+a)}),s=>{const a=[];let r=[];for(let i=0;i<s.length;i++){const o=s[i],l=o[0]==="[",c=t.has(o);l||c?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(o)):r.push(o)}return r.length>0&&(r.sort(),a.push(...r)),a}},Di=e=>({cache:_i(e.cacheSize),parseClassName:Fi(e),sortModifiers:zi(e),...Ni(e)}),Mi=/\s+/,Oi=(e,t)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:i}=t,o=[],l=e.trim().split(Mi);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:g,modifiers:h,hasImportantModifier:w,baseClassName:u,maybePostfixModifierPosition:m}=s(p);if(g){c=p+(c.length>0?" "+c:c);continue}let f=!!m,k=a(f?u.substring(0,m):u);if(!k){if(!f){c=p+(c.length>0?" "+c:c);continue}if(k=a(u),!k){c=p+(c.length>0?" "+c:c);continue}f=!1}const y=h.length===0?"":h.length===1?h[0]:i(h).join(":"),v=w?y+Wt:y,C=v+k;if(o.indexOf(C)>-1)continue;o.push(C);const j=r(k,f);for(let A=0;A<j.length;++A){const R=j[A];o.push(v+R)}c=p+(c.length>0?" "+c:c)}return c},$i=(...e)=>{let t=0,s,a,r="";for(;t<e.length;)(s=e[t++])&&(a=Ls(s))&&(r&&(r+=" "),r+=a);return r},Ls=e=>{if(typeof e=="string")return e;let t,s="";for(let a=0;a<e.length;a++)e[a]&&(t=Ls(e[a]))&&(s&&(s+=" "),s+=t);return s},Bi=(e,...t)=>{let s,a,r,i;const o=c=>{const d=t.reduce((p,g)=>g(p),e());return s=Di(d),a=s.cache.get,r=s.cache.set,i=l,l(c)},l=c=>{const d=a(c);if(d)return d;const p=Oi(c,s);return r(c,p),p};return i=o,(...c)=>i($i(...c))},Gi=[],re=e=>{const t=s=>s[e]||Gi;return t.isThemeGetter=!0,t},_s=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ps=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hi=/^\d+\/\d+$/,Vi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ui=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,De=e=>Hi.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),$t=e=>e.endsWith("%")&&G(e.slice(0,-1)),we=e=>Vi.test(e),Fs=()=>!0,Yi=e=>Ui.test(e)&&!qi.test(e),en=()=>!1,Ki=e=>Wi.test(e),Qi=e=>Zi.test(e),Xi=e=>!P(e)&&!F(e),Ji=e=>Se(e,Ms,en),P=e=>_s.test(e),Te=e=>Se(e,Os,Yi),Wn=e=>Se(e,il,G),el=e=>Se(e,Bs,Fs),tl=e=>Se(e,$s,en),Zn=e=>Se(e,zs,en),nl=e=>Se(e,Ds,Qi),pt=e=>Se(e,Gs,Ki),F=e=>Ps.test(e),Ve=e=>ze(e,Os),sl=e=>ze(e,$s),Yn=e=>ze(e,zs),al=e=>ze(e,Ms),rl=e=>ze(e,Ds),mt=e=>ze(e,Gs,!0),ol=e=>ze(e,Bs,!0),Se=(e,t,s)=>{const a=_s.exec(e);return a?a[1]?t(a[1]):s(a[2]):!1},ze=(e,t,s=!1)=>{const a=Ps.exec(e);return a?a[1]?t(a[1]):s:!1},zs=e=>e==="position"||e==="percentage",Ds=e=>e==="image"||e==="url",Ms=e=>e==="length"||e==="size"||e==="bg-size",Os=e=>e==="length",il=e=>e==="number",$s=e=>e==="family-name",Bs=e=>e==="number"||e==="weight",Gs=e=>e==="shadow",ll=()=>{const e=re("color"),t=re("font"),s=re("text"),a=re("font-weight"),r=re("tracking"),i=re("leading"),o=re("breakpoint"),l=re("container"),c=re("spacing"),d=re("radius"),p=re("shadow"),g=re("inset-shadow"),h=re("text-shadow"),w=re("drop-shadow"),u=re("blur"),m=re("perspective"),f=re("aspect"),k=re("ease"),y=re("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...C(),F,P],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],I=()=>[F,P,c],E=()=>[De,"full","auto",...I()],z=()=>[Ne,"none","subgrid",F,P],L=()=>["auto",{span:["full",Ne,F,P]},Ne,F,P],M=()=>[Ne,"auto",F,P],V=()=>["auto","min","max","fr",F,P],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...I()],ee=()=>[De,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],T=()=>[e,F,P],$=()=>[...C(),Yn,Zn,{position:[F,P]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",al,Ji,{size:[F,P]}],X=()=>[$t,Ve,Te],q=()=>["","none","full",d,F,P],D=()=>["",G,Ve,Te],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[G,$t,Yn,Zn],oe=()=>["","none",u,F,P],le=()=>["none",G,F,P],Ae=()=>["none",G,F,P],Re=()=>[G,F,P],ie=()=>[De,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[we],breakpoint:[we],color:[Fs],container:[we],"drop-shadow":[we],ease:["in","out","in-out"],font:[Xi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[we],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[we],shadow:[we],spacing:["px",G],text:[we],"text-shadow":[we],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",De,P,F,f]}],container:["container"],columns:[{columns:[G,P,F,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",F,P]}],basis:[{basis:[De,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,De,"auto","initial","none",P]}],grow:[{grow:["",G,F,P]}],shrink:[{shrink:["",G,F,P]}],order:[{order:[Ne,"first","last","none",F,P]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[l,"screen",...ee()]}],"min-w":[{"min-w":[l,"screen","none",...ee()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Ve,Te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,ol,el]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$t,P]}],"font-family":[{font:[sl,tl,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,F,P]}],"line-clamp":[{"line-clamp":[G,"none",F,Wn]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",F,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",F,Te]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[G,"auto",F,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,F,P],radial:["",F,P],conic:[Ne,F,P]},rl,nl]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,F,P]}],"outline-w":[{outline:["",G,Ve,Te]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",p,mt,pt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",g,mt,pt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[G,Te]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,mt,pt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[G,F,P]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[F,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,P]}],filter:[{filter:["","none",F,P]}],blur:[{blur:oe()}],brightness:[{brightness:[G,F,P]}],contrast:[{contrast:[G,F,P]}],"drop-shadow":[{"drop-shadow":["","none",w,mt,pt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",G,F,P]}],"hue-rotate":[{"hue-rotate":[G,F,P]}],invert:[{invert:["",G,F,P]}],saturate:[{saturate:[G,F,P]}],sepia:[{sepia:["",G,F,P]}],"backdrop-filter":[{"backdrop-filter":["","none",F,P]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[G,F,P]}],"backdrop-contrast":[{"backdrop-contrast":[G,F,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,F,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,F,P]}],"backdrop-invert":[{"backdrop-invert":["",G,F,P]}],"backdrop-opacity":[{"backdrop-opacity":[G,F,P]}],"backdrop-saturate":[{"backdrop-saturate":[G,F,P]}],"backdrop-sepia":[{"backdrop-sepia":["",G,F,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",F,P]}],ease:[{ease:["linear","initial",k,F,P]}],delay:[{delay:[G,F,P]}],animate:[{animate:["none",y,F,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,P]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[F,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,P]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[G,Ve,Te,Wn]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},cl=Bi(ll);function b(...e){return cl(xe.clsx(e))}const dl=ne.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer [&>*]:flex [&>*]:items-center [&>*]:justify-center [&>*]:size-full [&>*]:[&>svg]:block [&>*]:[&>svg]:leading-none",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",iconOnly:"bg-transparent text-text-secondary hover:text-text"},rounded:{square:"rounded",pill:"rounded-full"},size:{sm:"h-7 w-7 min-h-7 min-w-7 p-1.5",md:"h-9 w-9 min-h-9 min-w-9 p-1.5",lg:"h-11 w-11 min-h-11 min-w-11 p-2"}},defaultVariants:{variant:"secondary",size:"md",rounded:"square"}}),be=x.forwardRef(({variant:e="secondary",size:t="md",rounded:s="square",icon:a,disabled:r=!1,className:i,...o},l)=>n.jsx("button",{ref:l,className:b(dl({variant:e,size:t,rounded:s}),i),disabled:r,...o,children:n.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:a})}));be.displayName="IconButton";function Ge(){if(typeof document>"u")return{};const e=document.documentElement,t={},s=e.getAttribute("data-theme"),a=e.getAttribute("data-style");return s&&(t["data-theme"]=s),a&&(t["data-style"]=a),t}const ul=Me.Provider,pl=Me.Root,ml=Me.Trigger,Hs=N.forwardRef(({className:e,sideOffset:t=8,children:s,dataStyle:a,dataTheme:r,...i},o)=>{const l=Ge(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(Me.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(Me.Content,{ref:o,sideOffset:t,className:b("z-50 max-w-60 overflow-hidden rounded px-2 py-1 text-xs leading-5","bg-bg-highlight text-text-on-primary shadow-sm",e),...i,children:n.jsx(se.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},children:s})})})})});Hs.displayName=Me.Content.displayName;function Ke({content:e,children:t,side:s="top",contentClassName:a,dataStyle:r,dataTheme:i}){return n.jsx(ul,{delayDuration:300,children:n.jsxs(pl,{children:[n.jsx(ml,{asChild:!0,children:t}),n.jsx(Hs,{side:s,className:a,dataStyle:r,dataTheme:i,children:e})]})})}Ke.displayName="Tooltip";const Vs=x.createContext(null);function fl({children:e,value:t}){return n.jsx(Vs.Provider,{value:t,children:e})}function fe(){return x.useContext(Vs)??{}}function tn({placement:e,side:t=e??"top",...s}){const{style:a,theme:r}=fe();return n.jsx(Ke,{side:t,dataStyle:a,dataTheme:r,...s})}tn.displayName="Tooltip";function Kn(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const Us=x.forwardRef(({children:e,lines:t=1,className:s="",placement:a="top",tooltipClassName:r="",tooltipContent:i,disabled:o=!1,style:l,as:c="span"},d)=>{const p=x.useRef(null),[g,h]=x.useState(!1),w=x.useCallback(()=>{const y=p.current;if(!y)return;const v=t===1?y.scrollWidth>y.clientWidth:y.scrollHeight>y.clientHeight;h(v)},[t]);x.useEffect(()=>{const y=requestAnimationFrame(()=>w()),v=p.current;if(!v)return()=>cancelAnimationFrame(y);const C=new ResizeObserver(()=>w());return C.observe(v),window.addEventListener("resize",w),()=>{cancelAnimationFrame(y),C.disconnect(),window.removeEventListener("resize",w)}},[w,e]);const u=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...l}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...l},m=x.useCallback(y=>{Kn(p,y),Kn(d,y)},[d]),f=n.jsx(c,{ref:m,className:s,style:u,children:e});return g&&!o?n.jsx(tn,{content:i??e,placement:a,contentClassName:xe.clsx(r),children:n.jsx("span",{ref:m,className:s,style:u,children:e})}):f});Us.displayName="EllipsisText";const gl="flex flex-col gap-1",xl=ne.cva("w-full flex flex-col gap-0.5 items-start p-2 text-sm rounded text-left transition-colors outline-none focus-visible:bg-fill-tertiary focus-visible:ring-0",{variants:{selected:{true:"",false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:"cursor-pointer hover:bg-fill-tertiary"},dimmed:{true:"opacity-40",false:""}},defaultVariants:{selected:!1,disabled:!1,dimmed:!1}}),hl=ne.cva("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-mono font-medium transition-colors",{variants:{selected:{true:"bg-primary-active text-text-on-primary",false:"bg-fill-secondary text-text-tertiary"}},defaultVariants:{selected:!1}}),nn=x.forwardRef(({items:e,selectedIds:t=[],focusedId:s,onItemClick:a,showPrefix:r=!0,disabled:i=!1,className:o,...l},c)=>{const d=p=>String(p+1);return n.jsx("div",{ref:c,role:"listbox","aria-multiselectable":t.length>1,className:b(gl,o),...l,children:e.map((p,g)=>{const h=t.includes(p.id),w=s===p.id,u=i||p.disabled,f=t.length>0&&!h&&!u;return n.jsxs("button",{type:"button",role:"option","aria-selected":h,"aria-disabled":u,onClick:()=>{u||a?.(p,g)},disabled:u,className:b(xl({selected:h,disabled:u,dimmed:f}),w&&"bg-fill-tertiary"),children:[n.jsxs("div",{className:"flex items-center gap-3",children:[r&&n.jsx("div",{className:hl({selected:h}),children:d(g)}),n.jsx("span",{className:"font-medium text-text",children:p.label})]}),p.description&&n.jsx("div",{className:"ml-8 text-xs text-text-tertiary",children:p.description})]},p.id)})})});nn.displayName="OptionList";const yl="0 0 24 24",bl="1em";function H(e,t){const s=N.forwardRef(({className:a,size:r=bl,...i},o)=>n.jsx("svg",{ref:o,viewBox:yl,width:r,height:r,fill:"currentColor",className:a,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...i,children:n.jsx("path",{d:e})}));return s.displayName=t,s}H("M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z","ArrowDownLine");const sn=H("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),He=H("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),vl=H("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),je=H("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),Ie=H("M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","CloseLine"),qs=H("M10.5859 12L2.79297 4.20706L4.20718 2.79285L12.0001 10.5857L19.793 2.79285L21.2072 4.20706L13.4143 12L21.2072 19.7928L19.793 21.2071L12.0001 13.4142L4.20718 21.2071L2.79297 19.7928L10.5859 12Z","CloseLargeLine"),kl=H("M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z","CodeSSlashLine"),Ws=H("M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z","EyeLine"),Zs=H("M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z","LoaderLine"),wl=H("M1.946 9.315c-.946-.35-.946-1.09 0-1.436l18.108-6.732c.946-.35 1.704.21 1.573 1.236L20.1 21.894c-.117.932-.93 1.636 1.897 1.636.967 0 1.754-.704 1.636-1.636l-.527-4.18L10 12 20.073 7.264l-.527-4.18c-.117-.932.67-1.636 1.637-1.636.967 0 2.014.704 1.897 1.636L21.627 18.57c-.131 1.026-.627 1.586-1.573 1.236L1.946 9.315Z","SendPlaneLine"),jl=H("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),Nl=H("M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3Zm0 14a5 5 0 0 0 5-5v-1a1 1 0 1 1 2 0v1a7 7 0 0 1-14 0v-1a1 1 0 1 1 2 0v1a5 5 0 0 0 5 5Z","MicLine"),Ys=H("M3 3h8.828l2 2H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 2v12h14V7h-8.414l-2-2H5Z","FolderLine"),Ks=H("M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z","FolderFillLine"),an=H("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),Qs=H("M12 2C6.477 2 2 6.477 2 12c0 1.5.328 2.932.917 4.215L1.5 21l4.785-1.417A9.966 9.966 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2zm0 2a8 8 0 1 1 0 16 7.99 7.99 0 0 1-3.918-1.018l-.26-.15-2.683.795.795-2.683-.15-.26A7.99 7.99 0 0 1 4 12a8 8 0 0 1 8-8z","Chat3Line"),Je=H("M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1zm0 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z","WarningLine"),ve=H("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),rn=H("M14 2l.5 2.5L17 5l-2.5.5L14 8l-.5-2.5L11 5l2.5-.5L14 2zM6 12l1 4 4 1 1-4-4-1-1-4zm8-2l.5 2.5 2.5.5-2.5.5-.5 2.5-.5-2.5-2.5-.5 2.5-.5.5-2.5z","SparklingLine"),Xs=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2v5.586l3.707 3.707-1.414 1.414L11 11.414V6h2z","TimeLine"),Rt=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 5.536l-4.95 4.95-2.121-2.122-1.414 1.414 3.535 3.536 6.364-6.364-1.414-1.414z","CheckboxCircleLine"),Js=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-1.414 1.414L12 10.586 9.878 8.464 8.464 9.878 10.586 12l-2.122 2.121 1.414 1.415L12 13.414l2.121 2.122 1.415-1.414L13.414 12l2.122-2.121z","CloseCircleLine"),ea=H("M6 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z","MoreLine"),Cl=H("M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z","QuestionAnswerLine"),ta=H("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),na=H("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),sa=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z","CircleLine"),aa=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm4 5v2H8V9h8z","IndeterminateCircleLine"),ra=H("M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 10l-4-4v3H6v2h6v3l4-4z","ArrowRightCircleFillLine"),Tt=H("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),oa=H("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),ia=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 5v6h-2V9h2zm0-4v2h-2V6h2z","QuestionnaireLine"),la=H("M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 2v12h14V5H5zm2 2h2v2H7V7zm4 0h6v2h-6V7zm-4 4h2v2H7v-2zm4 0h6v2h-6v-2z","TerminalBoxLine"),ca=H("M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z","ExternalLinkLine"),da=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2.05v1.9c.93.13 1.8.44 2.57.9L14.5 7.2c-.55-.36-1.15-.65-1.78-.9L13 6.05zM6.05 11H4.1c.13.93.44 1.8.9 2.57L7.2 9.5c-.36-.55-.65-1.15-.9-1.78L6.05 11zm1.25 4.5L4.6 16.33c.77.57 1.64.88 2.57 1.01v1.9c.63-.25 1.23-.54 1.78-.9L7.3 15.5zm7.4 0c.55.36 1.15.65 1.78.9v1.9a8.1 8.1 0 0 1-2.57-.9L16.8 15.5l-1.25-1.25zM17.9 13h-1.95c-.25-.63-.54-1.23-.9-1.78L16.8 14.5c.57.77.88 1.64 1.01 2.57zm-5.4-5.4c-.36.55-.65 1.15-.9 1.78H6.05c.13-.93.44-1.8.9-2.57L9.5 7.2l1.25 1.25zm-.9 6.8l1.25 1.25c.77-.57 1.64-.88 2.57-1.01v1.95c-.63.25-1.23.54-1.78.9L9.5 16.8zm4.5-4.5l1.25 1.25L16.8 9.5c-.36-.55-.65-1.15-.9-1.78h1.95c.13.93.44 1.8.9 2.57z","GlobalLine"),ua=H("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-9.072 9.072a8 8 0 0 1 9.072-9.072zM8.464 17.536a8 8 0 0 1 9.072-9.072l-9.072 9.072z","Forbid2Line"),_e=J.Root,Pe=J.Trigger,Sl=J.Group,Il=J.Portal,pa=J.Sub,El=J.RadioGroup,ma="min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg z-50 outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0",Ce=N.forwardRef(({className:e,sideOffset:t=4,children:s,dataStyle:a,dataTheme:r,...i},o)=>{const l=Ge(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(J.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(J.Content,{ref:o,sideOffset:t,className:b(ma,e),...i,children:n.jsx(se.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.4,0,.2,1]},children:s})})})})});Ce.displayName=J.Content.displayName;const Al=ne.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),on=N.forwardRef(({className:e,inset:t=!1,children:s,subTriggerIcon:a,...r},i)=>n.jsxs(J.SubTrigger,{ref:i,className:Al({inset:t,className:e}),...r,children:[s,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:a??n.jsx(He,{className:"h-4 w-4"})})]}));on.displayName=J.SubTrigger.displayName;const ln=N.forwardRef(({className:e,sideOffset:t=-1,dataStyle:s,dataTheme:a,...r},i)=>{const o=Ge(),l=s!==void 0?{"data-style":s,"data-theme":a??o["data-theme"]??""}:o;return n.jsx(J.Portal,{children:n.jsx("div",{style:{display:"contents"},...l,children:n.jsx(J.SubContent,{ref:i,sideOffset:t,className:b(ma,e),...r})})})});ln.displayName=J.SubContent.displayName;const Rl=ne.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),he=N.forwardRef(({className:e,inset:t=!1,variant:s="default",...a},r)=>n.jsx(J.Item,{ref:r,className:Rl({variant:s,inset:t,className:e}),...a}));he.displayName=J.Item.displayName;const fa="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none transition-colors hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ga=N.forwardRef(({className:e,children:t,checked:s,checkIcon:a,...r},i)=>n.jsxs(J.CheckboxItem,{ref:i,className:b(fa,e),checked:s,...r,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(J.ItemIndicator,{children:a??n.jsx(je,{className:"h-4 w-4"})})}),t]}));ga.displayName=J.CheckboxItem.displayName;const xa=N.forwardRef(({className:e,children:t,...s},a)=>n.jsxs(J.RadioItem,{ref:a,className:b(fa,e),...s,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(J.ItemIndicator,{children:n.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));xa.displayName=J.RadioItem.displayName;const Tl=ne.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),ha=N.forwardRef(({className:e,inset:t=!1,...s},a)=>n.jsx(J.Label,{ref:a,className:Tl({inset:t,className:e}),...s}));ha.displayName=J.Label.displayName;const ya=N.forwardRef(({className:e,...t},s)=>n.jsx(J.Separator,{ref:s,className:b("my-1 mx-1 h-px bg-border-tertiary",e),...t}));ya.displayName=J.Separator.displayName;const ba=({className:e,...t})=>n.jsx("span",{className:b("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});ba.displayName="DropdownMenuShortcut";const va=x.createContext(null);function Ll({value:e,children:t}){return n.jsx(va.Provider,{value:e,children:t})}function et(){return x.useContext(va)??{icons:{}}}function _(e,t){const{icons:s}=et(),a=s[e];if(a)return n.jsx(a,{className:t,"aria-hidden":!0})}const ka=N.forwardRef((e,t)=>{const{style:s,theme:a}=fe();return n.jsx(Ce,{ref:t,dataStyle:s,dataTheme:a,...e})});ka.displayName="DropdownMenuContent";function _l(e){const t=_("arrowRight","h-4 w-4 shrink-0"),s=e.subTriggerIcon??t;return n.jsx(on,{...e,subTriggerIcon:s})}const wa=N.forwardRef((e,t)=>{const{style:s,theme:a}=fe();return n.jsx(ln,{ref:t,dataStyle:s,dataTheme:a,...e})});wa.displayName="DropdownMenuSubContent";const ja=ce.Root,Pl=ce.Trigger,Na=ce.Portal,cn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Overlay,{ref:s,asChild:!0,...t,children:n.jsx(se.motion.div,{className:b("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}})}));cn.displayName=ce.Overlay.displayName;const Fl=ne.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6",{variants:{size:{default:"max-w-lg",sm:"max-w-sm"}},defaultVariants:{size:"default"}}),dn=N.forwardRef(({className:e,children:t,size:s="default",dataStyle:a,dataTheme:r,...i},o)=>{const l=Ge(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(Na,{children:n.jsxs("div",{style:{display:"contents"},...c,children:[n.jsx(cn,{}),n.jsx(ce.Content,{ref:o,asChild:!0,...i,children:n.jsx(se.motion.div,{className:b(Fl({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.4,0,.2,1]},children:t})})]})})});dn.displayName=ce.Content.displayName;const un=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:b("flex flex-col gap-2",e),...t}));un.displayName="AlertDialogHeader";const pn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:b("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));pn.displayName="AlertDialogFooter";const mn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Title,{ref:s,className:b("font-sans text-base font-medium leading-6 text-text",e),...t}));mn.displayName=ce.Title.displayName;const fn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Description,{ref:s,className:b("text-sm leading-6 text-text-tertiary",e),...t}));fn.displayName=ce.Description.displayName;const zl=ne.cva("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{destructive:{true:"bg-error text-text-on-primary hover:bg-error-hover active:bg-error",false:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover"}},defaultVariants:{destructive:!1}}),Ca=N.forwardRef(({className:e,destructive:t=!1,...s},a)=>n.jsx(ce.Action,{ref:a,className:b(zl({destructive:t}),e),...s}));Ca.displayName=ce.Action.displayName;const gn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Cancel,{ref:s,className:b("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium cursor-pointer","bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text","transition-colors focus:outline-none",e),...t}));gn.displayName=ce.Cancel.displayName;const Sa=N.forwardRef((e,t)=>{const{style:s,theme:a}=fe();return n.jsx(dn,{ref:t,dataStyle:s,dataTheme:a,...e})});Sa.displayName="AlertDialogContent";const Ia=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:b("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));Ia.displayName="AlertDialogMedia";function Ea({className:e,...t}){return n.jsx("kbd",{className:b("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 !font-sans text-xs font-medium","bg-fill-secondary text-text-secondary","[.tooltip-content_&]:bg-bg-highlight-hover [.tooltip-content_&]:text-text-on-primary","dark:[.tooltip-content_&]:bg-[color:var(--color-bg-base)]/10 dark:[.tooltip-content_&]:text-[var(--color-bg-base)]",e),...t})}Ea.displayName="Kbd";function Aa({className:e,children:t,separator:s="+",...a}){const r=N.Children.toArray(t);return n.jsx("span",{className:b("inline-flex items-center gap-1",e),...a,children:r.map((i,o)=>n.jsxs(N.Fragment,{children:[i,o<r.length-1&&n.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:s})]},o))})}Aa.displayName="KbdGroup";const qe={fast:.15,base:.2,slow:.3},We={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},Ra={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},Dl=ne.cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full overflow-hidden border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-fill-secondary",{variants:{size:{md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),Ml=ne.cva("pointer-events-none block rounded-full bg-text-on-primary ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{md:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-5 w-5 data-[state=checked]:translate-x-4.5"}},defaultVariants:{size:"md"}}),Ta=N.forwardRef(({className:e,size:t="md",disabled:s=!1,...a},r)=>n.jsx(Gn.Root,{ref:r,className:b(Dl({size:t}),e),disabled:s,...a,children:n.jsx(Gn.Thumb,{className:Ml({size:t})})}));Ta.displayName="Switch";const Qn={sm:{buttonClass:"w-5 h-5",iconClass:"w-3.5 h-3.5",trackClass:"p-0.5 rounded-md gap-0.5",thumbClass:"w-5 h-5 rounded-sm top-0.5 bottom-0.5",buttonRounded:"rounded-sm"},md:{buttonClass:"w-6 h-6",iconClass:"w-4 h-4",trackClass:"p-0.5 rounded-lg gap-0.5",thumbClass:"w-6 h-6 rounded-md top-0.5 bottom-0.5",buttonRounded:"rounded-md"}};function Ol(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const xn=N.forwardRef(({variant:e="toggle",className:t,size:s="md",options:a,value:r,defaultValue:i="preview",onValueChange:o,segmentSize:l="md",disabled:c=!1,...d},p)=>{const{style:g,theme:h}=fe(),w={};if(g&&(w["data-style"]=g),h&&(w["data-theme"]=h),e==="toggle")return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsx(Ta,{size:s,className:t,disabled:c,...d})});const u=Qn[l].iconClass,m=n.jsx(kl,{className:u}),f=n.jsx(Ws,{className:u}),[k,y]=N.useState(i),v=N.useRef(null),[C,j]=N.useState({buttonWidth:24,gapPx:2});N.useLayoutEffect(()=>{if(!v.current)return;const $=v.current,Y=$.querySelector("button"),Q=Y?Ol(getComputedStyle($).gap):0,X=Y?.offsetWidth??24;j(q=>q.buttonWidth===X&&q.gapPx===Q?q:{buttonWidth:X,gapPx:Q})},[g,l,a?.length]);const A=[{value:"code",label:"Code",icon:m},{value:"preview",label:"Preview",icon:f}],R=a?.length?a:A,I=r!==void 0,E=(I?r:k)??i,z=$=>{c||(I||y($),o?.($))},L=R.findIndex($=>$.value===E),M=L>=0?L:0,V=Qn[l],{buttonClass:O,trackClass:Z,thumbClass:U,buttonRounded:ee}=V,T=M*(C.buttonWidth+C.gapPx);return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsxs("div",{ref:v,role:"radiogroup","aria-disabled":c||void 0,className:xe.clsx("relative inline-flex items-center",Z,"bg-fill-secondary",c?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...d,children:[n.jsx(se.motion.span,{className:xe.clsx("absolute left-0.5 bg-bg-base shadow-sm",U),initial:!1,animate:{x:T},transition:{type:"tween",duration:qe.base,ease:We.out}}),R.map($=>{const Y=$.value===E;return n.jsx("button",{type:"button",role:"radio","aria-checked":Y,"aria-label":$.label,disabled:c,onClick:()=>z($.value),className:xe.clsx("relative z-10 inline-flex items-center justify-center",ee,O,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",Y?"text-primary-active":"text-text-secondary"),children:n.jsx("span",{className:"inline-flex items-center justify-center",children:$.icon})},$.value)})]})})});xn.displayName="Switch";function $l({size:e="md",value:t,defaultValue:s="preview",onValueChange:a,disabled:r=!1,className:i,...o}){return n.jsx(xn,{variant:"segment",segmentSize:e,value:t,defaultValue:s,onValueChange:a,disabled:r,className:i,...o})}const La=ne.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 cursor-pointer data-[state=on]:bg-fill data-[state=on]:text-text",{variants:{variant:{default:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:bg-fill data-[state=on]:text-text",outline:"border border-border-tertiary bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:border-border-secondary data-[state=on]:bg-fill data-[state=on]:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"square"}}),_a=x.forwardRef(({variant:e="default",size:t="md",rounded:s="square",className:a,prefixIcon:r,suffixIcon:i,children:o,...l},c)=>n.jsxs(vi.Root,{ref:c,className:La({variant:e,size:t,rounded:s,className:a}),...l,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),o,i&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:i})]}));_a.displayName="Toggle";const Pa=x.createContext(null),Bl={none:"gap-0",sm:"gap-1",md:"gap-2"},Gl=["shrink-0","group-data-[spacing=0]/toggle-group:rounded-none","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:first:rounded-l","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:last:rounded-r","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:first:rounded-t","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:last:rounded-b","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=horizontal]/toggle-group:[&:not(:first-child)]:border-l-0","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=vertical]/toggle-group:[&:not(:first-child)]:border-t-0"].join(" "),Fa=x.forwardRef(({type:e="single",variant:t="default",size:s="md",rounded:a="square",spacing:r="none",className:i,orientation:o="horizontal",children:l,...c},d)=>{const p=b("group/toggle-group inline-flex w-fit",o==="horizontal"?"flex-row":"flex-col",o==="vertical"&&"items-stretch",Bl[r],i),g={ref:d,orientation:o,"data-spacing":r==="none"?"0":r,"data-orientation":o,"data-variant":t,"data-size":s,className:p};return n.jsx(Pa.Provider,{value:{variant:t,size:s,rounded:a,spacing:r},children:e==="multiple"?n.jsx(Ut.Root,{...g,...c,type:"multiple",children:l}):n.jsx(Ut.Root,{...g,...c,type:"single",children:l})})});Fa.displayName="ToggleGroup";const za=x.forwardRef(({variant:e,size:t,rounded:s,className:a,prefixIcon:r,suffixIcon:i,children:o,...l},c)=>{const d=x.useContext(Pa),p=e??d?.variant??"default",g=t??d?.size??"md",h=s??d?.rounded??"square";return n.jsxs(Ut.Item,{ref:c,"data-variant":p,"data-size":g,className:b(La({variant:p,size:g,rounded:h}),d&&Gl,"focus-visible:z-10",a),...l,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),o,i&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:i})]})});za.displayName="ToggleGroupItem";const Hl=ne.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),Vl=ne.cva("shrink-0 rounded-full border border-border-tertiary outline-offset-2 cursor-pointer transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-text data-[state=checked]:bg-text data-[state=checked]:text-bg-base",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),Ul={sm:"size-1.5",md:"size-2",lg:"size-2.5"},Da=N.forwardRef(({className:e,orientation:t="vertical",...s},a)=>n.jsx(Vt.Root,{ref:a,className:b(Hl({orientation:t,className:e})),orientation:t??"vertical",...s}));Da.displayName="RadioGroup";const Ma=N.forwardRef(({className:e,size:t="md",...s},a)=>n.jsx(Vt.Item,{ref:a,className:b(Vl({size:t,className:e})),...s,children:n.jsx(Vt.Indicator,{className:"flex items-center justify-center",children:n.jsx("span",{className:b("rounded-full bg-current",Ul[t??"md"])})})}));Ma.displayName="RadioGroupItem";const Xn=`
2
+ .CollapsibleSection-scroll-list::-webkit-scrollbar { display: none; }
3
+ .CollapsibleSection-scroll-list { scrollbar-width: none; -ms-overflow-style: none; }
4
+ `;function ql({maxHeight:e,children:t}){const s=x.useRef(null),[a,r]=x.useState(!1),[i,o]=x.useState(!1),l=x.useCallback(()=>{const c=s.current;if(!c)return;const{scrollTop:d,scrollHeight:p,clientHeight:g}=c;r(d>0),o(d+g<p-1)},[]);return x.useEffect(()=>{const c=s.current;if(!c)return;l();const d=new ResizeObserver(l);return d.observe(c),c.addEventListener("scroll",l,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",l)}},[e,l]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:s,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{maxHeight:e,scrollbarWidth:"none",msOverflowStyle:"none"},children:t}),a&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),i&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function Wl({children:e}){const t=x.useRef(null),[s,a]=x.useState(!1),[r,i]=x.useState(!1),o=x.useCallback(()=>{const l=t.current;if(!l)return;const{scrollTop:c,scrollHeight:d,clientHeight:p}=l;a(c>0),i(c+p<d-1)},[]);return x.useEffect(()=>{const l=t.current;if(!l)return;o();const c=new ResizeObserver(o);return c.observe(l),l.addEventListener("scroll",o,{passive:!0}),()=>{c.disconnect(),l.removeEventListener("scroll",o)}},[o]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:t,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e}),s&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),r&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function Oa({title:e,description:t,children:s,open:a,onToggle:r,isLast:i=!1,className:o,id:l,contentMaxHeight:c,footer:d}){const p=x.useId(),g=l??`collapsible-section-${p.replace(/:/g,"")}`,h=_("arrowRight","w-4 h-4 text-text-secondary")??n.jsx(He,{className:"w-4 h-4 text-text-secondary"}),w=s!=null?c!=null?d!=null?n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Xn}}),n.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:c},children:[n.jsx(Wl,{children:s}),n.jsx("div",{className:"shrink-0",children:d})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Xn}}),n.jsx(ql,{maxHeight:c,children:s})]}):n.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:s}):void 0;return n.jsxs("div",{className:xe.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!i&&"border-b border-dashed",a?"gap-1.5 py-4":"py-4",o),children:[n.jsxs("button",{type:"button",onClick:r,className:xe.clsx("flex flex-row items-center justify-between self-stretch w-full","bg-transparent border-0 cursor-pointer p-0","hover:opacity-90 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 rounded"),"aria-expanded":a,"aria-controls":g,"aria-label":`${a?"收起":"展开"} ${e}`,children:[n.jsx("span",{className:"font-medium text-sm leading-[var(--font-size-sm--line-height)] text-text-secondary",children:e}),n.jsx("span",{className:xe.clsx("inline-flex items-center justify-center p-1.5 rounded-full","hover:bg-fill-tertiary active:bg-fill-secondary"),"aria-hidden":!0,children:n.jsx(se.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:a?90:0},transition:Ra.snappy,children:h})})]}),n.jsx(se.AnimatePresence,{initial:!1,children:a&&n.jsx(se.motion.div,{id:g,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:qe.base,ease:We.emphasized},children:n.jsxs(se.motion.div,{className:"flex flex-col gap-1.5",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:qe.fast,ease:We.emphasized},children:[t!=null&&n.jsx(se.motion.p,{className:"text-xs leading-[var(--font-size-xs--line-height)] text-text-quaternary w-full max-w-54",initial:{opacity:0},animate:{opacity:1},transition:{duration:qe.fast,ease:We.emphasized},children:t}),w]})},"content")})]})}Oa.displayName="CollapsibleSection";function Zl(e,t,{checkForDefaultPrevented:s=!0}={}){return function(r){if(e?.(r),s===!1||!r.defaultPrevented)return t?.(r)}}function Yl(e,t=[]){let s=[];function a(i,o){const l=N.createContext(o),c=s.length;s=[...s,o];const d=g=>{const{scope:h,children:w,...u}=g,m=h?.[e]?.[c]||l,f=N.useMemo(()=>u,Object.values(u));return n.jsx(m.Provider,{value:f,children:w})};d.displayName=i+"Provider";function p(g,h){const w=h?.[e]?.[c]||l,u=N.useContext(w);if(u)return u;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${i}\``)}return[d,p]}const r=()=>{const i=s.map(o=>N.createContext(o));return function(l){const c=l?.[e]||i;return N.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[a,Kl(r,...t)]}function Kl(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=a.reduce((l,{useScope:c,scopeName:d})=>{const g=c(i)[`__scope${d}`];return{...l,...g}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return s.scopeName=t.scopeName,s}var Qe=globalThis?.document?N.useLayoutEffect:()=>{},Ql=N[" useInsertionEffect ".trim().toString()]||Qe;function Xl({prop:e,defaultProp:t,onChange:s=()=>{},caller:a}){const[r,i,o]=Jl({defaultProp:t,onChange:s}),l=e!==void 0,c=l?e:r;{const p=N.useRef(e!==void 0);N.useEffect(()=>{const g=p.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,a])}const d=N.useCallback(p=>{if(l){const g=ec(p)?p(e):p;g!==e&&o.current?.(g)}else i(p)},[l,e,i,o]);return[c,d]}function Jl({defaultProp:e,onChange:t}){const[s,a]=N.useState(e),r=N.useRef(s),i=N.useRef(t);return Ql(()=>{i.current=t},[t]),N.useEffect(()=>{r.current!==s&&(i.current?.(s),r.current=s)},[s,r]),[s,a,i]}function ec(e){return typeof e=="function"}function Jn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $a(...e){return t=>{let s=!1;const a=e.map(r=>{const i=Jn(r,t);return!s&&typeof i=="function"&&(s=!0),i});if(s)return()=>{for(let r=0;r<a.length;r++){const i=a[r];typeof i=="function"?i():Jn(e[r],null)}}}}function Ba(...e){return N.useCallback($a(...e),e)}function tc(e){const t=nc(e),s=N.forwardRef((a,r)=>{const{children:i,...o}=a,l=N.Children.toArray(i),c=l.find(ac);if(c){const d=c.props.children,p=l.map(g=>g===c?N.Children.count(d)>1?N.Children.only(null):N.isValidElement(d)?d.props.children:null:g);return n.jsx(t,{...o,ref:r,children:N.isValidElement(d)?N.cloneElement(d,void 0,p):null})}return n.jsx(t,{...o,ref:r,children:i})});return s.displayName=`${e}.Slot`,s}function nc(e){const t=N.forwardRef((s,a)=>{const{children:r,...i}=s;if(N.isValidElement(r)){const o=oc(r),l=rc(i,r.props);return r.type!==N.Fragment&&(l.ref=a?$a(a,o):o),N.cloneElement(r,l)}return N.Children.count(r)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sc=Symbol("radix.slottable");function ac(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sc}function rc(e,t){const s={...t};for(const a in t){const r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?s[a]=(...l)=>{const c=i(...l);return r(...l),c}:r&&(s[a]=r):a==="style"?s[a]={...r,...i}:a==="className"&&(s[a]=[r,i].filter(Boolean).join(" "))}return{...e,...s}}function oc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var ic=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=ic.reduce((e,t)=>{const s=tc(`Primitive.${t}`),a=N.forwardRef((r,i)=>{const{asChild:o,...l}=r,c=o?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:i})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function lc(e,t){return N.useReducer((s,a)=>t[s][a]??s,e)}var Ga=e=>{const{present:t,children:s}=e,a=cc(t),r=typeof s=="function"?s({present:a.isPresent}):N.Children.only(s),i=Ba(a.ref,dc(r));return typeof s=="function"||a.isPresent?N.cloneElement(r,{ref:i}):null};Ga.displayName="Presence";function cc(e){const[t,s]=N.useState(),a=N.useRef(null),r=N.useRef(e),i=N.useRef("none"),o=e?"mounted":"unmounted",[l,c]=lc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const d=ft(a.current);i.current=l==="mounted"?d:"none"},[l]),Qe(()=>{const d=a.current,p=r.current;if(p!==e){const h=i.current,w=ft(d);e?c("MOUNT"):w==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&h!==w?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Qe(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,g=w=>{const m=ft(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&m&&(c("ANIMATION_END"),!r.current)){const f=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=f)})}},h=w=>{w.target===t&&(i.current=ft(a.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:N.useCallback(d=>{a.current=d?getComputedStyle(d):null,s(d)},[])}}function ft(e){return e?.animationName||"none"}function dc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var uc=N[" useId ".trim().toString()]||(()=>{}),pc=0;function mc(e){const[t,s]=N.useState(uc());return Qe(()=>{s(a=>a??String(pc++))},[e]),e||(t?`radix-${t}`:"")}var Lt="Collapsible",[fc]=Yl(Lt),[gc,yn]=fc(Lt),Ha=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:a,defaultOpen:r,disabled:i,onOpenChange:o,...l}=e,[c,d]=Xl({prop:a,defaultProp:r??!1,onChange:o,caller:Lt});return n.jsx(gc,{scope:s,disabled:i,contentId:mc(),open:c,onOpenToggle:N.useCallback(()=>d(p=>!p),[d]),children:n.jsx(hn.div,{"data-state":kn(c),"data-disabled":i?"":void 0,...l,ref:t})})});Ha.displayName=Lt;var Va="CollapsibleTrigger",Ua=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,...a}=e,r=yn(Va,s);return n.jsx(hn.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":kn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...a,ref:t,onClick:Zl(e.onClick,r.onOpenToggle)})});Ua.displayName=Va;var bn="CollapsibleContent",vn=N.forwardRef((e,t)=>{const{forceMount:s,...a}=e,r=yn(bn,e.__scopeCollapsible);return n.jsx(Ga,{present:s||r.open,children:({present:i})=>n.jsx(xc,{...a,ref:t,present:i})})});vn.displayName=bn;var xc=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:a,children:r,...i}=e,o=yn(bn,s),[l,c]=N.useState(a),d=N.useRef(null),p=Ba(t,d),g=N.useRef(0),h=g.current,w=N.useRef(0),u=w.current,m=o.open||l,f=N.useRef(m),k=N.useRef(void 0);return N.useEffect(()=>{const y=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(y)},[]),Qe(()=>{const y=d.current;if(y){k.current=k.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const v=y.getBoundingClientRect();g.current=v.height,w.current=v.width,f.current||(y.style.transitionDuration=k.current.transitionDuration,y.style.animationName=k.current.animationName),c(a)}},[o.open,a]),n.jsx(hn.div,{"data-state":kn(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m,...i,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...e.style},children:m&&r})});function kn(e){return e?"open":"closed"}var hc=Ha;const yc=hc,bc=Ua,qa=N.forwardRef(({className:e,...t},s)=>n.jsx(vn,{ref:s,className:b("overflow-hidden",e),...t}));qa.displayName=vn.displayName;const Wa=N.forwardRef(function({direction:t="horizontal",className:s,...a},r){return n.jsx(Xt.Group,{elementRef:r,orientation:t,className:b("flex h-full w-full",t==="vertical"&&"flex-col",s),...a})});Wa.displayName="ResizablePanelGroup";const Za=N.forwardRef(function({className:t,...s},a){return n.jsx(Xt.Panel,{elementRef:a,className:b(t),...s})});Za.displayName="ResizablePanel";const Ya=N.forwardRef(function({withHandle:t=!1,className:s,...a},r){return n.jsx(Xt.Separator,{elementRef:r,className:b("relative flex shrink-0 items-center justify-center bg-border-tertiary","after:absolute after:inset-0 after:transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1","data-[resize-handle-active]:bg-border-secondary","aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize","aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize","[&[aria-orientation=vertical]>div]:h-6 [&[aria-orientation=vertical]>div]:w-1","[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6",s),...a,children:t&&n.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Ya.displayName="ResizableHandle";const ge=x.forwardRef(function({children:t,className:s,style:a,maxHeight:r,scrollbarVisibility:i="auto",scrollbarWidth:o=6},l){const d=`Scrollbar-${x.useId().replace(/:/g,"")}`,p=x.useRef(null),[g,h]=x.useState(!1),w=x.useCallback(()=>{i==="auto"&&(h(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,h(!1)},800))},[i]);x.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const u=()=>{if(i==="hidden")return`
5
+ .${d}::-webkit-scrollbar { display: none; }
6
+ .${d} { scrollbar-width: none; }
7
+ `;const f=i==="auto",k=i==="always"?"var(--color-fill-secondary)":"transparent",y="var(--color-fill-secondary)",v=f?`
8
+ .${d}:hover::-webkit-scrollbar-thumb,
9
+ .${d}.Scrollbar-isScrolling::-webkit-scrollbar-thumb {
10
+ background-color: ${y};
11
+ }
12
+ `:`
13
+ .${d}:hover::-webkit-scrollbar-thumb {
14
+ background-color: ${y};
15
+ }
16
+ `;return`
17
+ .${d}::-webkit-scrollbar {
18
+ width: ${o}px !important;
19
+ height: ${o}px !important;
20
+ }
21
+ .${d}::-webkit-scrollbar-track { background: transparent; }
22
+ .${d}::-webkit-scrollbar-thumb {
23
+ background-color: ${k};
24
+ border-radius: ${Math.max(o/2,2)}px;
25
+ min-height: var(--spacing-8);
26
+ transition: background-color 0.2s ease;
27
+ }
28
+ ${v}
29
+ .${d}::-webkit-scrollbar-corner { background: transparent; }
30
+ `},m={...a,maxHeight:r};return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:u()}),n.jsx("div",{ref:l,className:b(d,"overflow-y-auto",g&&"Scrollbar-isScrolling",s),style:m,onScroll:i==="auto"?w:void 0,children:t})]})});ge.displayName="Scrollbar";const vc=ne.cva("animate-pulse bg-fill-tertiary",{variants:{rounded:{default:"rounded-md",circle:"rounded-full"}},defaultVariants:{rounded:"default"}}),Ka=x.forwardRef(({className:e,rounded:t="default",...s},a)=>n.jsx("div",{ref:a,className:b(vc({rounded:t}),e),...s}));Ka.displayName="Skeleton";const wn=x.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,role:"status","aria-label":"Loading",...t,children:n.jsx(Zs,{className:b("size-4 animate-spin",e)})}));wn.displayName="Spinner";const Qa=x.forwardRef(({className:e,...t},s)=>n.jsx("div",{className:"relative w-full overflow-auto scrollbar-auto",children:n.jsx("table",{ref:s,className:b("w-full caption-bottom text-sm",e),...t})}));Qa.displayName="Table";const Xa=x.forwardRef(({className:e,...t},s)=>n.jsx("thead",{ref:s,className:b("[&_tr]:border-b border-border-tertiary",e),...t}));Xa.displayName="TableHeader";const Ja=x.forwardRef(({className:e,...t},s)=>n.jsx("tbody",{ref:s,className:b("[&_tr:last-child]:border-0",e),...t}));Ja.displayName="TableBody";const er=x.forwardRef(({className:e,...t},s)=>n.jsx("tfoot",{ref:s,className:b("border-t border-border-tertiary bg-fill-tertiary font-medium [&>tr]:last:border-b-0",e),...t}));er.displayName="TableFooter";const tr=x.forwardRef(({className:e,...t},s)=>n.jsx("tr",{ref:s,className:b("border-b border-border-tertiary transition-colors hover:bg-fill-tertiary data-[state=selected]:bg-fill-tertiary",e),...t}));tr.displayName="TableRow";const nr=x.forwardRef(({className:e,...t},s)=>n.jsx("th",{ref:s,className:b("h-10 px-4 text-left align-middle font-medium text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...t}));nr.displayName="TableHead";const sr=x.forwardRef(({className:e,...t},s)=>n.jsx("td",{ref:s,className:b("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...t}));sr.displayName="TableCell";const ar=x.forwardRef(({className:e,...t},s)=>n.jsx("caption",{ref:s,className:b("mt-4 text-sm text-text-secondary",e),...t}));ar.displayName="TableCaption";const kc=ne.cva("relative flex shrink-0 rounded-full",{variants:{size:{sm:"h-8 w-8",default:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"default"}}),rr=N.forwardRef(({className:e,size:t="default",...s},a)=>n.jsx(Be.Root,{ref:a,className:b(kc({size:t}),e),...s}));rr.displayName=Be.Root.displayName;const or=N.forwardRef(({className:e,...t},s)=>n.jsx(Be.Image,{ref:s,className:b("aspect-square h-full w-full overflow-hidden rounded-full object-cover",e),...t}));or.displayName=Be.Image.displayName;const ir=N.forwardRef(({className:e,...t},s)=>n.jsx(Be.Fallback,{ref:s,className:b("flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-fill-tertiary text-sm font-medium text-text",e),...t}));ir.displayName=Be.Fallback.displayName;const lr=N.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,className:b("absolute bottom-0 right-0 z-10 block h-3 w-3 rounded-full border-2 border-bg-base bg-success",e),...t}));lr.displayName="AvatarBadge";const cr=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:b("flex -space-x-2 [&>*]:ring-2 [&>*]:ring-bg-base",e),...t}));cr.displayName="AvatarGroup";const dr=N.forwardRef(({className:e,...t},s)=>n.jsx("span",{ref:s,className:b("inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-2 border-bg-base bg-fill-tertiary text-sm font-medium text-text",e),...t}));dr.displayName="AvatarGroupCount";const ur="2px",Zt="8px",wc="8px",es="12px",jc=`[data-sonner-toaster] [data-sonner-toast][data-styled="true"] { padding-left: ${Zt} !important; padding-right: ${Zt} !important; padding-top: ${es} !important; padding-bottom: ${es} !important; font-size: var(--font-size-sm) !important; line-height: var(--font-size-sm--line-height) !important; }
31
+ [data-sonner-toaster] [data-sonner-toast] [data-content] { flex: 1 !important; min-width: 0 !important; }
32
+ [data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${wc} !important; }`,ts={className:"text-sm",style:{padding:`var(--spacing-3) ${Zt}`,gap:ur,background:"var(--color-bg-container)",borderColor:"var(--color-border-tertiary)",color:"var(--color-text)"},descriptionClassName:"text-xs text-text-secondary",actionButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"},cancelButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"}},Nc=14,Cc=3,Sc={right:8,left:8,top:24,bottom:24};function pr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,icons:r,gap:i=Nc,visibleToasts:o=Cc,offset:l=Sc,...c}){const d=Ge(),p=s!==void 0||a!==void 0?{"data-style":s,"data-theme":a}:d,g=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),h=n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:jc}}),n.jsx("div",{style:{display:"contents"},...p,children:n.jsx(Is.Toaster,{theme:g,closeButton:!0,icons:r,gap:i,visibleToasts:o,offset:l,toastOptions:{...ts,...t,style:{...ts.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${i}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":ur,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...c})})]});return typeof document<"u"?Ss.createPortal(h,document.body):null}pr.displayName="Toaster";const Le="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",ns="w-3.5 h-3.5 shrink-0 text-text-tertiary";function mr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,...r}){const i=fe(),o=s??i.style,l=a??i.theme,c=_("checkboxCircle",Le)??n.jsx(Rt,{className:Le}),d=_("closeCircle",Le)??n.jsx(Js,{className:Le}),p=_("warning",Le)??n.jsx(Je,{className:Le}),g=n.jsx(wn,{className:Le}),h=_("close",ns)??n.jsx(Ie,{className:ns}),w=x.useMemo(()=>({success:c,error:d,warning:p,loading:g,close:h}),[c,d,p,g,h]),u=x.useMemo(()=>({...t,style:{gap:"2px",...t?.style},classNames:{actionButton:qt({variant:"primary",size:"sm",rounded:"square"}),cancelButton:qt({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return n.jsx(pr,{theme:e,dataStyle:o,dataTheme:l,icons:w,toastOptions:u,...r})}mr.displayName="Toaster";const Oe="outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0 focus-visible:outline-offset-0 focus-visible:!outline-offset-0 focus-visible:ring-offset-0 focus-visible:!ring-offset-0",fr=ae.Root,Ic=ae.Group,gr=ae.Value,jn=N.forwardRef(({className:e,children:t,disabled:s,triggerIcon:a,...r},i)=>n.jsxs(ae.Trigger,{ref:i,disabled:s,className:b("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",Oe,e),...r,children:[t,n.jsx(ae.Icon,{asChild:!0,children:n.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:a??n.jsx(ve,{className:"h-[1em] w-[1em] shrink-0"})})})]}));jn.displayName=ae.Trigger.displayName;const Nn=N.forwardRef(({className:e,scrollUpIcon:t,...s},a)=>n.jsx(ae.ScrollUpButton,{ref:a,className:b("flex cursor-default items-center justify-center py-1",Oe,e),...s,children:t??n.jsx(sn,{className:"h-[1em] w-[1em]"})}));Nn.displayName=ae.ScrollUpButton.displayName;const Cn=N.forwardRef(({className:e,scrollDownIcon:t,...s},a)=>n.jsx(ae.ScrollDownButton,{ref:a,className:b("flex cursor-default items-center justify-center py-1",Oe,e),...s,children:t??n.jsx(ve,{className:"h-[1em] w-[1em]"})}));Cn.displayName=ae.ScrollDownButton.displayName;const Sn=N.forwardRef(({className:e,children:t,position:s="popper",sideOffset:a=4,dataStyle:r,dataTheme:i,...o},l)=>{const c=Ge(),d=r!==void 0?{"data-style":r,"data-theme":i??c["data-theme"]??""}:c;return n.jsx(ae.Portal,{children:n.jsxs(ae.Content,{ref:l,className:b("relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg",Oe,"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),position:s,sideOffset:a,...d,...o,children:[n.jsx(Nn,{}),n.jsx(ae.Viewport,{className:b(Oe,s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(Cn,{})]})})});Sn.displayName=ae.Content.displayName;const xr=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Label,{ref:s,className:b("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));xr.displayName=ae.Label.displayName;const Ze=N.forwardRef(({className:e,children:t,itemIndicatorIcon:s,...a},r)=>n.jsxs(ae.Item,{ref:r,className:b("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-3 pr-8 text-sm transition-colors",Oe,"hover:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[state=checked]:bg-fill-secondary data-[state=checked]:text-text","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[n.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:n.jsx(ae.ItemIndicator,{children:s??n.jsx(je,{className:"h-[1em] w-[1em]"})})}),n.jsx(ae.ItemText,{children:t})]}));Ze.displayName=ae.Item.displayName;const hr=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Separator,{ref:s,className:b("my-1 mx-1 h-px bg-border-tertiary",e),...t}));hr.displayName=ae.Separator.displayName;const yr=N.forwardRef((e,t)=>{const{style:s,theme:a}=fe();return n.jsx(Sn,{ref:t,dataStyle:s,dataTheme:a,...e})});yr.displayName="SelectContent";const Ec=Fe.Root,Ac=ne.cva("inline-flex items-center justify-center text-text-secondary data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",{variants:{variant:{default:"rounded-lg bg-fill-secondary p-0.5 gap-0.5",line:"gap-6 border-b border-border-tertiary bg-transparent p-0"}},defaultVariants:{variant:"default"}}),Rc=ne.cva("inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text cursor-pointer data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-md data-[orientation=vertical]:px-3 data-[orientation=vertical]:py-2",{variants:{variant:{default:"rounded-md px-3 py-1.5 data-[state=active]:bg-bg-container data-[state=active]:shadow-sm",line:"rounded-none border-b-2 border-transparent px-1 pb-2 pt-0 data-[state=active]:border-primary data-[state=active]:shadow-none"}},defaultVariants:{variant:"default"}}),br=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Fe.List,{ref:a,className:b(Ac({variant:t}),e),...s}));br.displayName=Fe.List.displayName;const vr=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Fe.Trigger,{ref:a,className:b(Rc({variant:t}),e),...s}));vr.displayName=Fe.Trigger.displayName;const kr=N.forwardRef(({className:e,...t},s)=>n.jsx(Fe.Content,{ref:s,className:b("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));kr.displayName=Fe.Content.displayName;const wr=N.forwardRef(({className:e,...t},s)=>n.jsx(Ye.Root,{ref:s,className:b("w-full font-sans",e),"data-slot":"collapse",...t}));wr.displayName="Collapse";const jr=N.forwardRef(({className:e,...t},s)=>n.jsx(Ye.Item,{ref:s,className:b("border-b border-border-tertiary last:border-b-0 data-[orientation=horizontal]:border-b-0 data-[orientation=horizontal]:border-r data-[orientation=horizontal]:border-border-tertiary data-[orientation=horizontal]:last:border-r-0",e),"data-slot":"collapse-item",...t}));jr.displayName="CollapseItem";const Nr=N.forwardRef(({className:e,children:t,chevronIcon:s,...a},r)=>n.jsx(Ye.Header,{className:"flex font-sans",children:n.jsxs(Ye.Trigger,{ref:r,className:b("group flex flex-1 items-center justify-between gap-2 py-3 text-left text-sm font-medium text-text font-sans transition-colors outline-none","hover:text-text-secondary focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50","data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:py-4 data-[orientation=horizontal]:text-left",e),"data-slot":"collapse-trigger",...a,children:[t,n.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:s??n.jsx(ve,{className:"size-4 text-text-secondary"})})]})}));Nr.displayName="CollapseTrigger";const Cr=N.forwardRef(({className:e,children:t,...s},a)=>n.jsx(Ye.Content,{ref:a,className:b("overflow-hidden text-sm text-text-secondary font-sans data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","data-[orientation=horizontal]:data-[state=closed]:animate-accordion-left data-[orientation=horizontal]:data-[state=open]:animate-accordion-right",e),"data-slot":"collapse-content",...s,children:n.jsx("div",{className:"pb-3 pt-0 data-[orientation=horizontal]:pb-0 data-[orientation=horizontal]:pl-0 data-[orientation=horizontal]:pr-3",children:t})}));Cr.displayName="CollapseContent";function Sr({className:e,...t}){return n.jsx("h1",{className:b("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}Sr.displayName="TypographyH1";function Ir({className:e,...t}){return n.jsx("h2",{className:b("font-sans scroll-m-20 border-b border-border-tertiary pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-text",e),...t})}Ir.displayName="TypographyH2";function Er({className:e,...t}){return n.jsx("h3",{className:b("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}Er.displayName="TypographyH3";function Ar({className:e,...t}){return n.jsx("h4",{className:b("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}Ar.displayName="TypographyH4";function Rr({className:e,...t}){return n.jsx("p",{className:b("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}Rr.displayName="TypographyP";function Tr({className:e,...t}){return n.jsx("blockquote",{className:b("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}Tr.displayName="TypographyBlockquote";function Lr({className:e,children:t,...s}){return n.jsx(ge,{scrollbarVisibility:"auto",className:b("font-sans my-6 w-full",e),children:t})}Lr.displayName="TypographyTable";function _r({className:e,...t}){return n.jsx("ul",{className:b("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}_r.displayName="TypographyList";function Pr({className:e,...t}){return n.jsx("code",{className:b("relative rounded bg-fill-secondary px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-text",e),...t})}Pr.displayName="TypographyInlineCode";function Fr({className:e,...t}){return n.jsx("p",{className:b("font-sans text-xl text-muted-foreground",e),...t})}Fr.displayName="TypographyLead";function zr({className:e,...t}){return n.jsx("div",{className:b("font-sans text-lg font-semibold text-text",e),...t})}zr.displayName="TypographyLarge";function Dr({className:e,...t}){return n.jsx("small",{className:b("font-sans text-sm font-medium leading-none text-text",e),...t})}Dr.displayName="TypographySmall";function Mr({className:e,...t}){return n.jsx("p",{className:b("font-sans text-sm text-muted-foreground",e),...t})}Mr.displayName="TypographyMuted";const Or=N.forwardRef(({className:e,...t},s)=>{const a=t.value??t.defaultValue??[50];return n.jsxs(ut.Root,{ref:s,className:b("relative flex w-full touch-none select-none cursor-pointer items-center","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:h-full",e),...t,children:[n.jsx(ut.Track,{className:b("relative grow overflow-hidden rounded-full bg-fill-secondary","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:w-2 data-[orientation=vertical]:h-full"),children:n.jsx(ut.Range,{className:b("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),a.map((r,i)=>n.jsx(ut.Thumb,{className:b("block size-5 rounded-full border-2 border-primary bg-bg-base shadow-sm","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50")},i))]})});Or.displayName="Slider";const $r=({className:e,...t})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:b("flex w-full justify-center",e),...t});$r.displayName="Pagination";const Br=N.forwardRef(({className:e,...t},s)=>n.jsx("ul",{ref:s,className:b("flex flex-row flex-wrap items-center gap-2",e),...t}));Br.displayName="PaginationContent";const Gr=N.forwardRef(({className:e,...t},s)=>n.jsx("li",{ref:s,className:b("list-none",e),...t}));Gr.displayName="PaginationItem";const Hr=N.forwardRef(({className:e,isActive:t,...s},a)=>n.jsx("a",{ref:a,"aria-current":t?"page":void 0,className:b("inline-flex min-w-9 h-9 items-center justify-center rounded-md border text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",t&&"bg-fill-secondary border-border-tertiary text-text",e),...s}));Hr.displayName="PaginationLink";const Vr=N.forwardRef(({className:e,text:t="Previous",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to previous page",className:b("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[n.jsx(vl,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{className:"hidden sm:inline",children:t})]}));Vr.displayName="PaginationPrevious";const Ur=N.forwardRef(({className:e,text:t="Next",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to next page",className:b("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[n.jsx("span",{className:"hidden sm:inline",children:t}),n.jsx(He,{className:"h-4 w-4 shrink-0"})]}));Ur.displayName="PaginationNext";const qr=({className:e,...t})=>n.jsx("span",{role:"presentation","aria-hidden":!0,className:b("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});qr.displayName="PaginationEllipsis";const Wr=ne.cva("inline-flex items-center justify-center gap-1.5 rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors whitespace-nowrap cursor-pointer group",{variants:{appearance:{filled:"",outline:"bg-transparent"},color:{primary:"",success:"",error:"",warning:"",info:"",link:"",pink:"",purple:"",yellow:"",orange:"",teal:"",blue:"",mauve:"",slate:"",lavender:"",sage:""}},compoundVariants:[{appearance:"filled",color:"primary",className:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover"},{appearance:"filled",color:"success",className:"border-transparent bg-success-bg text-success border-success-border hover:bg-success-bg-hover"},{appearance:"filled",color:"error",className:"border-transparent bg-error-bg text-error border-error-border hover:bg-error-bg-hover"},{appearance:"filled",color:"warning",className:"border-transparent bg-warning-bg text-warning border-warning-border hover:bg-warning-bg-hover"},{appearance:"filled",color:"info",className:"border-transparent bg-info-bg text-info border-info-border hover:bg-info-bg-hover"},{appearance:"filled",color:"link",className:"border-transparent bg-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"filled",color:"pink",className:"border-transparent bg-pink-bg text-pink hover:bg-pink-bg-hover"},{appearance:"filled",color:"purple",className:"border-transparent bg-purple-bg text-purple hover:bg-purple-bg-hover"},{appearance:"filled",color:"yellow",className:"border-transparent bg-yellow-bg text-yellow hover:bg-yellow-bg-hover"},{appearance:"filled",color:"orange",className:"border-transparent bg-orange-bg text-orange hover:bg-orange-bg-hover"},{appearance:"filled",color:"teal",className:"border-transparent bg-teal-bg text-teal hover:bg-teal-bg-hover"},{appearance:"filled",color:"blue",className:"border-transparent bg-blue-bg text-blue hover:bg-blue-bg-hover"},{appearance:"filled",color:"mauve",className:"border-transparent bg-mauve-bg text-mauve hover:bg-mauve-bg-hover"},{appearance:"filled",color:"slate",className:"border-transparent bg-slate-bg text-slate hover:bg-slate-bg-hover"},{appearance:"filled",color:"lavender",className:"border-transparent bg-lavender-bg text-lavender hover:bg-lavender-bg-hover"},{appearance:"filled",color:"sage",className:"border-transparent bg-sage-bg text-sage hover:bg-sage-bg-hover"},{appearance:"outline",color:"primary",className:"border-primary-border text-primary hover:bg-primary-bg"},{appearance:"outline",color:"success",className:"border-success-border text-success hover:bg-success-bg"},{appearance:"outline",color:"error",className:"border-error-border text-error hover:bg-error-bg"},{appearance:"outline",color:"warning",className:"border-warning-border text-warning hover:bg-warning-bg"},{appearance:"outline",color:"info",className:"border-info-border text-info hover:bg-info-bg"},{appearance:"outline",color:"link",className:"border-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"outline",color:"pink",className:"border-pink text-pink hover:bg-pink-bg"},{appearance:"outline",color:"purple",className:"border-purple text-purple hover:bg-purple-bg"},{appearance:"outline",color:"yellow",className:"border-yellow text-yellow hover:bg-yellow-bg"},{appearance:"outline",color:"orange",className:"border-orange text-orange hover:bg-orange-bg"},{appearance:"outline",color:"teal",className:"border-teal text-teal hover:bg-teal-bg"},{appearance:"outline",color:"blue",className:"border-blue text-blue hover:bg-blue-bg"},{appearance:"outline",color:"mauve",className:"border-mauve text-mauve hover:bg-mauve-bg"},{appearance:"outline",color:"slate",className:"border-slate text-slate hover:bg-slate-bg"},{appearance:"outline",color:"lavender",className:"border-lavender text-lavender hover:bg-lavender-bg"},{appearance:"outline",color:"sage",className:"border-sage text-sage hover:bg-sage-bg"}],defaultVariants:{appearance:"filled",color:"primary"}}),In=N.forwardRef(({className:e,appearance:t="filled",color:s="primary",closable:a=!1,onClose:r,closeAriaLabel:i="Close tag",closeIcon:o,children:l,onMouseEnter:c,onMouseLeave:d,...p},g)=>{const[h,w]=N.useState(!1),u=a&&typeof r=="function",m=v=>{u&&w(!0),c?.(v)},f=v=>{u&&w(!1),d?.(v)},k=v=>{v.preventDefault(),v.stopPropagation(),r?.(v)},y=v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.stopPropagation(),r?.(v))};return n.jsxs("span",{ref:g,className:b(Wr({appearance:t,color:s}),u&&"gap-0 pr-1.5",e),onMouseEnter:m,onMouseLeave:f,...p,children:[l,u&&n.jsx(se.motion.div,{"aria-hidden":!0,initial:!1,animate:{width:h?16:0,marginLeft:h?2:0,opacity:h?1:0},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex min-w-0 shrink-0 overflow-hidden",style:{pointerEvents:h?"auto":"none"},children:n.jsx("button",{type:"button","aria-label":i,className:"inline-flex h-4 w-4 cursor-pointer items-center justify-center rounded-sm text-current/80 hover:text-current focus:outline-none",onClick:k,onKeyDown:y,children:o??n.jsx(qs,{className:"h-3 w-3"})})})]})});In.displayName="Tag";const Tc=124;function ke({headerIcon:e,headerTitle:t,headerRight:s,children:a,defaultExpanded:r=!0,contentPadding:i="var(--spacing-1.5) var(--spacing-2)",onToggle:o,collapsible:l=!0,footer:c,contentMaxHeight:d,showExpandAllBar:p=!1,maxHeight:g=Tc,titleShimmer:h=!1,className:w}){const[u,m]=x.useState(r),[f,k]=x.useState(!1),[y,v]=x.useState(!1),[C,j]=x.useState(!1),[A,R]=x.useState(0),[I,E]=x.useState(p&&r),[z,L]=x.useState(!1),M=x.useRef(null);x.useLayoutEffect(()=>{if(!p||!u){j(!1),R(0),E(!1);return}E(!0);const $=()=>{const X=M.current;if(!X)return;const q=X.scrollHeight;R(q),j(q>g),E(!1)},Y=requestAnimationFrame($);let Q=null;return M.current&&(Q=new ResizeObserver($),Q.observe(M.current)),()=>{cancelAnimationFrame(Y),Q?.disconnect()}},[p,u,a,g]);const V=()=>{if(!l)return;const $=!u;L(!0),$&&p&&E(!0),m($),o?.($),setTimeout(()=>L(!1),300)},Z=l&&(f||e==null)?n.jsx(ve,{className:b("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",u?"rotate-0":"-rotate-90")}):e,U=p&&u&&!d,ee=U&&(I||C&&!y||z||!C&&A===0),T=d!=null?`${d}px`:ee?`${g}px`:U&&C&&y&&A>0?`${Math.max(A+50,2e3)}px`:void 0;return n.jsxs("div",{className:b("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",w),children:[n.jsxs("div",{className:b("flex flex-row items-center gap-2 px-2 py-1.5 select-none",u&&"border-b border-border-tertiary"),onMouseEnter:()=>l&&k(!0),onMouseLeave:()=>l&&k(!1),children:[n.jsxs("div",{className:b("flex flex-row items-center gap-2 flex-1 min-w-0",l&&"cursor-pointer"),onClick:V,role:l?"button":void 0,"aria-expanded":l?u:void 0,children:[n.jsx("div",{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] flex items-center justify-center shrink-0 text-text-secondary [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:Z}),n.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:h?n.jsx("span",{className:"animate-pulse",children:t}):t})]}),s!=null&&n.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:$=>$.stopPropagation(),onMouseDown:$=>$.stopPropagation(),children:s})]}),n.jsx(se.AnimatePresence,{initial:!1,children:u&&n.jsxs(se.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.2,.8,.2,1]},className:b("overflow-hidden",z&&"select-none"),children:[U&&n.jsx("div",{ref:M,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:i},"aria-hidden":!0,children:a}),n.jsxs("div",{className:b("relative overflow-x-hidden bg-bg-base scrollbar-auto",d!=null?"overflow-y-auto":ee?"overflow-y-hidden":"overflow-y-visible",C&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:i,maxHeight:T},children:[a,U&&C&&A>g&&n.jsx("div",{className:b("absolute bottom-0 left-0 right-0 pointer-events-none h-[25px] bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",y?"opacity-0":"opacity-100")})]}),U&&C&&n.jsx("button",{type:"button",className:"w-full h-4 flex items-center justify-center bg-bg-base border-0 cursor-pointer text-text-secondary hover:text-text transition-colors",onClick:$=>{$.stopPropagation(),L(!0),v(Y=>!Y),setTimeout(()=>L(!1),300)},"aria-label":y?"收起":"展开全部",children:n.jsx(ve,{className:b("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",y?"rotate-180":"rotate-0")})})]})}),c!=null&&n.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:c})]})}ke.displayName="CollapsibleCard";const Lc=ne.cva("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 group text-sm leading-sm",{variants:{size:{sm:"h-7 px-2 text-xs leading-xs",md:"h-9 px-3 text-sm leading-sm",lg:"h-11 px-4 text-base leading-base"},rounded:{square:"rounded",pill:"rounded-full"},selected:{true:"bg-info-bg text-info",false:"bg-fill-tertiary text-text hover:bg-fill-secondary"}},defaultVariants:{size:"md",rounded:"square",selected:!1}}),gt="w-4 h-4",jt=x.forwardRef(({label:e,selected:t=!1,disabled:s=!1,multipleFolders:a=!1,onClear:r,size:i="md",rounded:o="square",className:l,onMouseEnter:c,onMouseLeave:d,folderIcon:p,folderFillIcon:g,arrowRightIcon:h,closeIcon:w,...u},m)=>{const[f,k]=x.useState(!1),y=t&&!s&&!a&&typeof r=="function",v=b(Lc({size:i,rounded:o,selected:t,className:l}),s&&"opacity-50 cursor-not-allowed",!s&&"cursor-pointer"),C=L=>{y&&k(!0),c?.(L)},j=L=>{y&&k(!1),d?.(L)},A=p??n.jsx(Ys,{className:gt}),R=g??n.jsx(Ks,{className:gt}),I=h??n.jsx(He,{className:gt}),E=w??n.jsx(Ie,{className:gt}),z=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0 relative text-current",children:t?R:A}),n.jsx("span",{children:e}),a&&n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:I}),y?n.jsx(se.motion.span,{role:"button",tabIndex:0,"aria-label":"清空文件夹选择",className:"flex items-center justify-center flex-shrink-0 text-info hover:text-info-hover cursor-pointer overflow-hidden",initial:!1,animate:{width:f?20:0,opacity:f?1:0,marginLeft:f?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:f?"auto":"none",minWidth:0},onPointerDown:L=>{L.preventDefault(),L.stopPropagation()},onClick:L=>{L.preventDefault(),L.stopPropagation(),r()},onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),L.stopPropagation(),r())},children:n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:E})}):null]});return n.jsx("button",{ref:m,className:v,disabled:s,onMouseEnter:C,onMouseLeave:j,...u,children:z})});jt.displayName="FolderButton";const xt="w-4 h-4",Zr=x.forwardRef((e,t)=>{const s=_("folder",xt),a=_("folderFill",xt),r=_("arrowRight",xt),i=_("close",xt);return n.jsx(jt,{ref:t,folderIcon:s,folderFillIcon:a,arrowRightIcon:r,closeIcon:i,...e})});Zr.displayName="FolderButton";const Yr=x.createContext(null);function Ee(){const e=x.useContext(Yr);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function _t({value:e,onChange:t,onSend:s,placeholder:a="What can I help you with today?",disabled:r=!1,maxRows:i=6,form:o,sendButtonStatus:l="normal",showFooter:c=!0,showFolderButton:d=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:g,onFolderClear:h,folderPermission:w,showMoreButton:u=!0,onMoreButtonClick:m,footerLeftConfig:f,showGenerationStatus:k=!1,generationStatus:y,attachments:v,addLargeIcon:C,folderIcon:j,folderOpenIcon:A,historyIcon:R,arrowDownIcon:I,subMenuArrowIcon:E,folderFillIcon:z,closeIcon:L,dataStyle:M,dataTheme:V,className:O,children:Z,...U}){const[ee,T]=x.useState(""),$=x.useRef(null),[Y,Q]=x.useState(!1),X=e!==void 0,q=X?e:ee,D=x.useCallback(ie=>{$.current=ie},[]),W=x.useCallback(ie=>{X||T(ie),t?.(ie)},[X,t]),K=x.useCallback(()=>{const pe=($.current?.value??q??"").trim();!pe||r||!s||(s(pe),X||T(""),$.current&&($.current.style.height="auto"))},[q,r,s,X]),B=x.useCallback(ie=>{ie.key==="Enter"&&!ie.shiftKey&&!ie.nativeEvent.isComposing&&(ie.preventDefault(),K()),U.onKeyDown?.(ie)},[K,U]),oe=x.useCallback(()=>Q(!0),[]),le=x.useCallback(()=>{Q(!1),h?.()},[h]),Ae=q.trim().length>0&&!r,Re={dataStyle:M,dataTheme:V,value:q,onChange:W,onSend:s,disabled:r,form:o,textareaRef:$,setTextareaRef:D,handleSend:K,handleKeyDown:B,sendButtonStatus:l,canSend:Ae,hasFolderSelected:Y,setHasFolderSelected:Q,handleFolderSelect:oe,handleFolderClear:le,folderPermission:w,footerLeftConfig:f,showFolderButton:d,showMoreButton:u,folderButtonLabel:p,onFolderButtonClick:g,onFolderClear:h,onMoreButtonClick:m,addLargeIcon:C,folderIcon:j,folderOpenIcon:A,historyIcon:R,arrowDownIcon:I,subMenuArrowIcon:E,folderFillIcon:z,closeIcon:L,showGenerationStatus:k,generationStatus:y,attachments:v,showFooter:c};return n.jsx(Yr.Provider,{value:Re,children:Z})}_t.displayName="ChatInputRootProvider";const _c=ne.cva("inline-flex items-center justify-center rounded-full p-1.5 transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-transform active:scale-95 active:translate-y-px",{variants:{status:{normal:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",generating:"bg-primary hover:bg-primary-hover active:opacity-80",recording:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",stopRecording:"bg-error-bg hover:bg-error-bg-hover active:opacity-80"}},defaultVariants:{status:"normal"}}),Pc=ne.cva("inline-flex h-4 w-4 shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",{variants:{status:{normal:"text-text-on-primary",generating:"text-text-on-primary",recording:"text-text-on-primary",stopRecording:"text-error"}},defaultVariants:{status:"normal"}}),Bt="w-4 h-4",En=x.forwardRef(({status:e="normal",disabled:t=!1,className:s,sendIcon:a,stopIcon:r,micIcon:i,...o},l)=>{const g=e==="normal"?a??n.jsx(wl,{className:Bt}):e==="generating"||e==="stopRecording"?r??n.jsx(jl,{className:Bt}):i??n.jsx(Nl,{className:Bt});return n.jsx("button",{ref:l,type:"button",className:_c({status:e,className:s}),disabled:t,...o,children:n.jsx("span",{className:Pc({status:e}),children:g})})});En.displayName="SendButton";function Fc({content:e}){const t=e.replace(/\.+$/,"");return n.jsxs("span",{className:"text-sm leading-sm font-medium text-primary-active",children:[t,n.jsx("span",{className:"status-dots-anim",style:{fontFamily:"inherit"},children:"..."})]})}const An=({children:e,status:t,icon:s,time:a,className:r=""})=>{const i=t??(typeof e=="string"?e:null);if(!(i!=null||e!=null)&&!s&&!a)return null;const l=b("flex w-full h-9 items-center gap-2 rounded-t-xl bg-primary-bg px-3 text-sm leading-sm",r);return n.jsxs("div",{className:l,children:[n.jsx("style",{children:`
33
+ @keyframes status-dots {
34
+ 0%, 100% { opacity: 0.4; }
35
+ 50% { opacity: 1; }
36
+ }
37
+ .status-dots-anim {
38
+ animation: status-dots 1.2s ease-in-out infinite;
39
+ }
40
+ `}),s&&n.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:s}),i!=null&&n.jsx(Fc,{content:String(i)}),i==null&&e!=null&&n.jsx("span",{className:"font-medium text-primary-active",children:e}),a&&n.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:a})]})};An.displayName="GenerationStatusBar";function zc(e,t,s){x.useEffect(()=>{const a=e.current;if(!a)return;a.style.height="auto";const i=(parseFloat(getComputedStyle(a).lineHeight)||24)*s;a.scrollHeight<=i?a.style.height=`${a.scrollHeight}px`:a.style.height=`${i}px`},[e,t,s])}const Kr=x.forwardRef(({value:e,onChange:t,placeholder:s="What can I help you with today?",disabled:a=!1,maxRows:r=6,onKeyDown:i,className:o,style:l,...c},d)=>{const p=x.useRef(null);zc(p,e,r);const g=x.useCallback(m=>{p.current=m,typeof d=="function"?d(m):d&&(d.current=m)},[d]),h=x.useCallback(m=>t?.(m.target.value),[t]),w={outline:"none",border:"none",boxShadow:"none"},u="w-full resize-none border-none bg-transparent text-sm leading-sm font-normal placeholder:text-text-tertiary overflow-y-auto scrollbar-auto outline-none shadow-none focus:outline-none focus:ring-0 focus:shadow-none focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-none [&:focus-visible]:outline-none [&:focus-visible]:ring-0 [&:focus-visible]:ring-offset-0 [&:focus-visible]:shadow-none "+(e?.trim()?"text-text":"text-text-quaternary");return n.jsx("textarea",{ref:g,value:e,onChange:h,onKeyDown:i,placeholder:s,disabled:a,rows:1,className:u,...c,style:{...l??{},...w}})});Kr.displayName="ChatInputTextarea";function Qr({open:e,onOpenChange:t,projectName:s,onAllowOnce:a,onAllowAlways:r}){return n.jsx(ja,{open:e,onOpenChange:t,children:n.jsxs(dn,{className:"p-6",children:[n.jsxs(un,{children:[n.jsxs(mn,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Qoder Work to access and modify files in "',s,'"?']}),n.jsx(fn,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Qoder Work may read, update, and permanently delete files here, and may share relevant file contents with connected tools when needed. Only allow access to folders you trust."})]}),n.jsxs(pn,{className:"mt-6 flex flex-row justify-end gap-2",children:[n.jsx(gn,{className:"h-9 rounded-full px-4",children:"Cancel"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium border border-border bg-bg-base text-text transition-colors hover:bg-fill-tertiary active:bg-fill-secondary",onClick:r,children:"Always Allow"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium bg-text text-text-on-primary transition-opacity hover:opacity-90 active:opacity-95",onClick:a,children:"Allow"})]})]})})}Qr.displayName="FolderPermissionDialog";const Dc=["~/Projects/qoder-work-ui","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],Gt="mr-2 w-4 h-4 shrink-0";function Xr({disabled:e,folderButtonLabel:t,folderPermission:s,onFolderButtonClick:a,onFolderClear:r,onFolderSelect:i,hasFolderSelected:o,dataStyle:l,dataTheme:c,folderIcon:d=n.jsx(Ys,{className:Gt}),folderOpenIcon:p=n.jsx(Ks,{className:Gt}),historyIcon:g=n.jsx(Xs,{className:Gt}),subMenuArrowIcon:h,folderFillIcon:w,closeIcon:u}){const m=s?.enable??!1,f=s?.projectName??"04_代码",[k,y]=x.useState(!1),[v,C]=x.useState(!1),[j,A]=x.useState(!1),R=x.useRef(null),I=a??(()=>{}),E=()=>{R.current?.click()},z=()=>{R.current&&(R.current.value=""),r?.()},L=x.useCallback(O=>{O==="always"&&C(!0),y(!1),A(!0)},[]),M=O=>{if(!m){A(O);return}if(!O){A(!1);return}if(v){A(!0);return}y(!0),A(!1)},V=O=>{const Z=O.target.files;Z&&Z.length>0&&i(Z)};return a?n.jsx(jt,{label:t,onClick:I,disabled:e,folderIcon:d,folderFillIcon:w}):n.jsxs(n.Fragment,{children:[n.jsxs(_e,{open:j,onOpenChange:M,children:[n.jsx(Pe,{asChild:!0,children:n.jsx(jt,{label:t,disabled:e,selected:o,onClear:z,folderIcon:d,folderFillIcon:w,closeIcon:u,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),n.jsxs(Ce,{align:"start",side:"top",className:"min-w-50",dataStyle:l,dataTheme:c,children:[n.jsxs(he,{onClick:E,children:[d,"Add folder"]}),o&&n.jsxs(he,{onClick:E,children:[p,"Replace folder"]}),n.jsxs(pa,{children:[n.jsxs(on,{subTriggerIcon:h,children:[g,"Recent folders"]}),n.jsx(ln,{collisionPadding:{bottom:24,left:8},dataStyle:l,dataTheme:c,children:Dc.map(O=>n.jsx(he,{onClick:()=>{},children:O},O))})]})]})]}),n.jsx("input",{ref:R,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:V}),m&&n.jsx(Qr,{open:k,onOpenChange:y,projectName:f,onAllowOnce:()=>L("once"),onAllowAlways:()=>L("always")})]})}Xr.displayName="ChatInputFolderSelector";function Jr({config:e,disabled:t,dataStyle:s,dataTheme:a,arrowDownIcon:r=n.jsx(ve,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const o=e.modeSwitch.options.find(l=>l.value===e.modeSwitch.value)?.icon??e.modeSwitch.icon;return n.jsxs("div",{className:"flex items-center gap-3 text-sm leading-sm text-text-secondary",children:[n.jsxs(_e,{children:[n.jsx(Pe,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-md bg-fill-secondary px-2.5 py-1.5 text-sm leading-sm text-text hover:bg-fill focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",disabled:t,children:[o!=null&&n.jsx("span",{className:"flex shrink-0 items-center [&>*]:block [&>*]:leading-none",children:o}),n.jsx("span",{children:e.modeSwitch.label}),r]})}),n.jsx(Ce,{align:"start",side:"top",className:"min-w-30",dataStyle:s,dataTheme:a,children:e.modeSwitch.options.map(l=>n.jsxs(he,{onClick:()=>e.modeSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[n.jsxs("span",{className:"flex items-center gap-2",children:[l.icon!=null&&n.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:l.icon}),l.label]}),e.modeSwitch.value===l.value&&n.jsx(je,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),n.jsxs(_e,{children:[n.jsx(Pe,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:[n.jsx("span",{children:e.modelSwitch.label}),r]})}),n.jsx(Ce,{align:"start",side:"top",className:"min-w-25",dataStyle:s,dataTheme:a,children:e.modelSwitch.options.map(l=>n.jsxs(he,{onClick:()=>e.modelSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.modelSwitch.value===l.value&&n.jsx(je,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?n.jsxs(_e,{children:[n.jsx(Pe,{asChild:!0,children:n.jsx("button",{type:"button",className:"inline-flex items-center text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:e.consumptionMultiplier.value})}),n.jsx(Ce,{align:"start",side:"top",className:"min-w-20",dataStyle:s,dataTheme:a,children:e.consumptionMultiplier.options.map(l=>n.jsxs(he,{onClick:()=>e.consumptionMultiplier.onChange?.(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.consumptionMultiplier.value===l.value&&n.jsx(je,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}):n.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}Jr.displayName="ChatInputModelSwitcher";const Mc=ne.cva(["flex flex-col w-full bg-bg-base border border-primary-border rounded-xl transition-all duration-200","shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","hover:shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]","hover:focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]"].join(" "),{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),kt="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",Oc="flex flex-1 items-center min-h-6 p-3",$c="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function tt({className:e,style:t,children:s}){return n.jsx("div",{className:b("flex min-h-9 h-9 w-[calc(100%-2*var(--radius-xl))] mx-auto items-center overflow-hidden rounded-t-xl text-sm leading-sm",e),style:t,children:s})}tt.displayName="ChatInputAbove";function nt({className:e,children:t}){const s=Ee();return n.jsx("div",{className:Mc({disabled:s.disabled,className:b("relative",e)}),children:t})}nt.displayName="ChatInputBox";function Pt({className:e,children:t}){return t?n.jsx("div",{className:b(kt,e),children:t}):null}Pt.displayName="ChatInputAttachments";const st=x.forwardRef(({placeholder:e="What can I help you with today?",maxRows:t=6,...s},a)=>{const r=Ee(),i=x.useCallback(o=>{r.setTextareaRef(o),typeof a=="function"?a(o):a&&(a.current=o)},[r,a]);return n.jsx("div",{className:Oc,children:n.jsx(Kr,{ref:i,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e,disabled:r.disabled,maxRows:t,...s})})});st.displayName="ChatInputInput";function at({className:e,children:t}){return n.jsx("div",{className:b($c,e),children:t})}at.displayName="ChatInputActions";function rt({className:e,children:t}){return n.jsx("div",{className:b("flex items-center gap-2",e),children:t})}rt.displayName="ChatInputActionsLeft";function $e({className:e,children:t}){return n.jsx("div",{className:b("flex items-center gap-2",e),children:t})}$e.displayName="ChatInputActionsRight";function Ft({className:e,style:t,...s}){return n.jsx("button",{type:"button",className:b("absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-lg text-text-secondary hover:bg-fill-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",e),style:{...t},...s})}Ft.displayName="ChatInputExpandButton";function ot(){const e=Ee();return e.showFolderButton?n.jsx(Xr,{disabled:e.disabled,folderButtonLabel:e.folderButtonLabel,folderPermission:e.folderPermission,onFolderButtonClick:e.onFolderButtonClick,onFolderClear:e.handleFolderClear,onFolderSelect:e.handleFolderSelect,hasFolderSelected:e.hasFolderSelected,dataStyle:e.dataStyle,dataTheme:e.dataTheme,folderIcon:e.folderIcon,folderOpenIcon:e.folderOpenIcon,historyIcon:e.historyIcon,subMenuArrowIcon:e.subMenuArrowIcon,folderFillIcon:e.folderFillIcon,closeIcon:e.closeIcon}):null}ot.displayName="ChatInputFolderButton";function it(){const e=Ee();return e.showMoreButton?n.jsx(be,{variant:"ghost",icon:e.addLargeIcon??n.jsx(ea,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}it.displayName="ChatInputMoreButton";function Nt(){const e=Ee();return n.jsx(En,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Nt.displayName="ChatInputSendButton";function lt(){const e=Ee();return e.footerLeftConfig?n.jsx(Jr,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):n.jsxs(n.Fragment,{children:[n.jsx(ot,{}),n.jsx(it,{})]})}lt.displayName="ChatInputFooterLeft";const eo=x.forwardRef(function({className:t,hasAbove:s=!1,hasAttachments:a=!1,hasFooter:r=!0,aboveOverlap:i=!0},o){const l=Ee(),c=()=>{if(!a||l.attachments==null||l.attachments===!1)return null;const g=l.attachments;return typeof g=="object"&&!x.isValidElement(g)&&("files"in g||"images"in g)?n.jsxs(n.Fragment,{children:[g.files&&n.jsx("div",{className:kt,children:g.files}),g.images&&n.jsx("div",{className:kt,children:g.images})]}):n.jsx("div",{className:kt,children:g})},d=()=>n.jsx(lt,{}),p=n.jsxs(nt,{className:b(!r&&!a&&"min-h-14"),children:[c(),n.jsx(st,{ref:o}),n.jsx(at,{children:r?n.jsxs(n.Fragment,{children:[n.jsx(rt,{children:d()}),n.jsx("div",{className:"flex-1 h-5"}),n.jsx($e,{children:n.jsx(Nt,{})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex-1 h-5"}),n.jsx($e,{children:n.jsx(Nt,{})})]})})]});return s&&l.showGenerationStatus&&l.generationStatus?n.jsxs("div",{className:b("flex flex-col w-full",t),children:[n.jsx(tt,{children:n.jsx(An,{status:typeof l.generationStatus?.content=="string"?l.generationStatus.content:void 0,icon:l.generationStatus?.icon,time:l.generationStatus?.time,children:l.generationStatus?.content})}),p]}):n.jsx("div",{className:t,children:p})});eo.displayName="ChatInputDefaultLayout";function Bc(e){return e==null||e===!1?!1:typeof e=="object"&&!x.isValidElement(e)?!!e.files||!!e.images:!0}const Gc=x.forwardRef(function(t,s){const a=Bc(t.attachments);return n.jsx(_t,{...t,children:n.jsx(eo,{ref:s,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:a,hasFooter:t.showFooter,aboveOverlap:!0})})}),de=Gc;de.displayName="ChatInput";de.Root=_t;de.Above=tt;de.Box=nt;de.Attachments=Pt;de.Input=st;de.Actions=at;de.ActionsLeft=rt;de.ActionsRight=$e;de.ExpandButton=Ft;de.FolderButton=ot;de.MoreButton=it;de.SendButton=Nt;de.FooterLeft=lt;const Hc=de,Ht="w-4 h-4",Rn=x.forwardRef((e,t)=>{const s=_("send",Ht),a=_("stop",Ht),r=_("mic",Ht);return n.jsx(En,{ref:t,sendIcon:s,stopIcon:a,micIcon:r,...e})});Rn.displayName="SendButton";function Tn(e){const{style:t,theme:s}=fe(),a=_("more","h-5 w-5 shrink-0"),r=_("folder","mr-2 w-4 h-4 shrink-0"),i=_("folderOpen","mr-2 w-4 h-4 shrink-0"),o=_("history","mr-2 w-4 h-4 shrink-0"),l=_("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),c=_("arrowRight","h-4 w-4 shrink-0"),d=_("folderFill","w-4 h-4 shrink-0"),p=_("close","w-4 h-4 shrink-0");return n.jsx(_t,{...e,dataStyle:t,dataTheme:s,addLargeIcon:a,folderIcon:r,folderOpenIcon:i,historyIcon:o,arrowDownIcon:l,subMenuArrowIcon:c,folderFillIcon:d,closeIcon:p})}Tn.displayName="ChatInputRoot";const to=x.forwardRef(function(t,s){const{style:a,theme:r}=fe(),i=_("more","h-5 w-5 shrink-0"),o=_("folder","mr-2 w-4 h-4 shrink-0"),l=_("folderOpen","mr-2 w-4 h-4 shrink-0"),c=_("history","mr-2 w-4 h-4 shrink-0"),d=_("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=_("arrowRight","h-4 w-4 shrink-0"),g=_("folderFill","w-4 h-4 shrink-0"),h=_("close","w-4 h-4 shrink-0");return n.jsx(Hc,{ref:s,dataStyle:a,dataTheme:r,addLargeIcon:i,folderIcon:o,folderOpenIcon:l,historyIcon:c,arrowDownIcon:d,subMenuArrowIcon:p,folderFillIcon:g,closeIcon:h,...t})});to.displayName="ChatInput";function Ln(){const e=Ee();return n.jsx(Rn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ln.displayName="ChatInputSendButton";const Vc=Object.assign(to,{Root:Tn,Above:tt,Box:nt,Attachments:Pt,Input:st,Actions:at,ActionsLeft:rt,ActionsRight:$e,ExpandButton:Ft,FolderButton:ot,MoreButton:it,SendButton:Ln,FooterLeft:lt}),Uc="w-3.5 h-3.5 shrink-0 text-text-tertiary";function no({items:e,onSelect:t,singleLineText:s=!1,className:a,defaultIcon:r}){const i=e.slice(0,3),o=r??n.jsx(Qs,{className:Uc});return i.length===0?null:n.jsx("div",{className:b("flex flex-col gap-3 w-full min-w-0",!s&&"max-w-lg",a),role:"list","aria-label":"Related prompt suggestions",children:i.map((l,c)=>{const d=l.icon??o,p=n.jsxs("button",{type:"button",onClick:()=>t?.(l),className:b("flex items-center gap-2 w-full min-w-0 text-left","rounded-md px-0 py-0 min-h-0","text-xs leading-xs font-normal text-text-tertiary","transition-colors",t&&"cursor-pointer hover:text-text",!t&&"cursor-default"),role:"listitem",children:[n.jsx("span",{className:"w-3.5 h-3.5 flex-shrink-0 flex items-center justify-center",children:d}),n.jsx("span",{className:b("min-w-0 flex-1",s?"truncate":"line-clamp-2"),children:l.text})]});return s?n.jsx(Ke,{content:l.text,side:"top",children:p},`${l.prompt}-${c}`):n.jsx(x.Fragment,{children:p},`${l.prompt}-${c}`)})})}no.displayName="RelatedPrompts";const qc="w-3.5 h-3.5 shrink-0 text-text-tertiary";function so(e){const t=_("chat3",qc);return n.jsx(no,{defaultIcon:t,...e})}so.displayName="RelatedPrompts";const Wc="Repo Wiki",Zc=["English","中文","日本語","한국어"],Yc="h-3.5 w-3.5",Kc="h-3 w-3",ss="h-4 w-4";function ao({type:e="wiki",title:t,description:s,highlightText:a=Wc,language:r="English",rechargeText:i,onClose:o,onGenerate:l,onRecharge:c,onLanguageChange:d,closeIcon:p,arrowDownSIcon:g,suggestionIcon:h,dataStyle:w,dataTheme:u}){const m=e==="credits",f=p??n.jsx(Ie,{className:Yc}),k=g??n.jsx(ve,{className:Kc}),y=h??(m?n.jsx(Je,{className:ss}):n.jsx(rn,{className:ss})),v=t??(m?"Credits Exhausted":"Free Wiki Generation Available"),C=m?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${a} for this repository to boost AI agent with structured context.`,j=s??C,A=()=>{if(!j.includes(a))return n.jsx("span",{children:j});const R=j.split(a),I=[];for(let E=0;E<R.length;E++)R[E]&&I.push(n.jsx("span",{children:R[E]},`text-${E}`)),E<R.length-1&&I.push(n.jsx("span",{className:"text-[var(--color-link)]",children:a},`highlight-${E}`));return n.jsx(n.Fragment,{children:I})};return n.jsxs("div",{className:"relative rounded-lg border border-border-tertiary bg-bg-base p-3",children:[o&&n.jsx("button",{type:"button",onClick:o,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:f}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:b("flex h-4 w-4 shrink-0 items-center justify-center",m?"text-warning":"text-primary"),children:y}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:v})]}),n.jsx(n.Fragment,{children:n.jsx(ge,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:A()})}),n.jsx("div",{className:"flex items-center justify-end gap-2",children:m?i&&n.jsx(te,{variant:"secondary",onClick:c,children:i??"前往充值"}):n.jsxs(n.Fragment,{children:[n.jsxs(_e,{children:[n.jsx(Pe,{asChild:!0,children:n.jsxs(te,{variant:"ghost",className:"flex items-center gap-1",children:[n.jsx("span",{children:r}),k]})}),n.jsx(Ce,{dataStyle:w,dataTheme:u,children:Zc.map(R=>n.jsx(he,{onSelect:()=>d?.(R),children:R},R))})]}),n.jsx(te,{variant:"secondary",onClick:l,children:"Generate"})]})})]})}ao.displayName="SuggestionPart";const Qc="h-3.5 w-3.5",Xc="h-3 w-3",Jc="h-4 w-4";function ro(e){const{style:t,theme:s}=fe(),a=_("close",Qc),r=_("arrowDownS",Xc),i=e.type==="credits",o=_(i?"warning":"sparkling",Jc);return n.jsx(ao,{closeIcon:a,arrowDownSIcon:r,suggestionIcon:o,dataStyle:t,dataTheme:s,...e})}ro.displayName="SuggestionPart";const ed={p:({children:e})=>n.jsx("p",{className:"text-sm leading-sm text-text [&:not(:first-child)]:mt-6 last:mb-0",children:e}),h1:({children:e})=>n.jsx("h1",{className:"scroll-m-20 text-4xl font-medium tracking-tight text-text",children:e}),h2:({children:e})=>n.jsx("h2",{className:"scroll-m-20 border-b border-border-secondary pb-2 text-3xl font-semibold tracking-tight text-text first:mt-0 [&:not(:first-child)]:mt-10",children:e}),h3:({children:e})=>n.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-8",children:e}),h4:({children:e})=>n.jsx("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-6",children:e}),h5:({children:e})=>n.jsx("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight text-text-secondary [&:not(:first-child)]:mt-4",children:e}),h6:({children:e})=>n.jsx("h6",{className:"scroll-m-20 text-base font-semibold tracking-tight text-text-tertiary uppercase [&:not(:first-child)]:mt-4",children:e}),blockquote:({children:e})=>n.jsx("blockquote",{className:"mt-6 border-l-2 border-border-secondary pl-6 italic text-text-secondary",children:e}),ul:({className:e,children:t})=>n.jsx("ul",{className:b("my-6 ml-6 text-text [&>li]:mt-2",String(e??"").includes("contains-task-list")?"list-none":"list-disc"),children:t}),ol:({children:e})=>n.jsx("ol",{className:"my-6 ml-6 list-decimal text-text [&>li]:mt-2",children:e}),li:({className:e,children:t})=>n.jsx("li",{className:b("leading-sm",String(e??"").includes("task-list-item")&&"list-none flex items-start gap-2 [&>input]:mt-0.5 [&>input]:shrink-0"),children:t}),pre:({children:e})=>n.jsx(ge,{scrollbarVisibility:"auto",className:"my-6 rounded-lg border border-border-tertiary bg-bg-base p-4 font-mono text-sm leading-sm text-text",children:n.jsx("pre",{className:"m-0 font-mono text-sm leading-sm text-text border-0 bg-transparent p-0",children:e})}),code:({className:e,children:t,...s})=>typeof e=="string"&&e.startsWith("language-")?n.jsx("code",{className:b(e,"font-mono text-sm leading-sm"),...s,children:t}):n.jsx("code",{className:"relative rounded bg-fill-tertiary px-[0.3rem] py-[0.2rem] font-mono text-sm leading-sm font-semibold text-text",...s,children:t}),table:({children:e})=>n.jsx(ge,{scrollbarVisibility:"auto",className:"my-6 w-full rounded-md border border-border-secondary",children:n.jsx("table",{className:"w-full border-collapse text-sm leading-sm text-text",children:e})}),thead:({children:e})=>n.jsx("thead",{className:"border-b border-border-secondary bg-fill-tertiary",children:e}),tbody:({children:e})=>n.jsx("tbody",{className:"[&>tr]:border-b [&>tr]:border-border-tertiary",children:e}),tr:({children:e})=>n.jsx("tr",{children:e}),th:({children:e})=>n.jsx("th",{className:"px-4 py-2 text-left font-semibold text-text",children:e}),td:({children:e})=>n.jsx("td",{className:"px-4 py-2 text-text",children:e}),a:({href:e,children:t})=>n.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t}),hr:()=>n.jsx("hr",{className:"my-6 border-0 border-t border-border-secondary"}),strong:({children:e})=>n.jsx("strong",{className:"font-semibold text-text",children:e}),em:({children:e})=>n.jsx("em",{className:"italic text-text",children:e})};function Xe({children:e,className:t}){return n.jsx("div",{className:b("markdown-body text-sm leading-sm text-text",t),children:n.jsx(li,{remarkPlugins:[ci,di],rehypePlugins:[ui],components:ed,children:e})})}Xe.displayName="MarkdownBody";function td(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 flex items-center justify-center","aria-hidden":!0,children:[n.jsx("style",{children:`
41
+ .thinking-dots span { animation: thinking-dot 1.4s ease-in-out infinite both; }
42
+ .thinking-dots span:nth-child(1) { animation-delay: 0s; }
43
+ .thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
44
+ .thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
45
+ @keyframes thinking-dot {
46
+ 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
47
+ 40% { transform: scale(1); opacity: 1; }
48
+ }
49
+ `}),n.jsxs("span",{className:"thinking-dots inline-flex gap-0.5",children:[n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),n.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"})]})]})}function _n({text:e="Qoder is Thinking...",textClassName:t,shimmer:s=!0,shimmerDuration:a=2,shimmerSpread:r=2,className:i,loader:o,...l}){const c=x.useMemo(()=>(e||"").length*r,[e,r]),d=o??n.jsx(td,{});return n.jsxs("div",{className:b("inline-flex items-center gap-1.5 max-w-full",i),...l,children:[n.jsx("span",{className:"shrink-0 -translate-x-0.5","aria-hidden":!0,children:d}),n.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:s?n.jsx(se.motion.span,{className:b("text-sm leading-sm relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat truncate",t),style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${c}px), var(--color-text), transparent calc(50% + ${c}px)), linear-gradient(var(--color-text-secondary), var(--color-text-secondary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:a,ease:"linear"},children:e}):n.jsx("span",{className:b("text-sm leading-sm text-text-secondary truncate",t),children:e})})]})}_n.displayName="ThinkingIndicator";function as(...e){return e.filter(Boolean).join(" ")}const nd=n.jsx(rn,{className:"h-5 w-5 text-text-on-primary"});function Pn({width:e="var(--spacing-80)",height:t="var(--spacing-60)",speed:s=1,caption:a="Qoder is drawing...",captionClassName:r,className:i,style:o,showOverlay:l=!1,overlayText:c,sparklingIcon:d=nd,...p}){const g=x.useRef(null);return x.useEffect(()=>{if(typeof CSS<"u"&&CSS.registerProperty)try{CSS.registerProperty({name:"--a",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--l",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--x",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--y",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--o",syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--value",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--width-ratio",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--scale",syntax:"<number>",inherits:!0,initialValue:"0"})}catch{}},[]),x.useEffect(()=>{const h=g.current;if(!h)return;const w=()=>{const k=h.getBoundingClientRect();if(k.width>0&&k.height>0){const y=Math.max(k.width,k.height);h.style.setProperty("--actual-size",`${y}px`)}},u=typeof e=="string"&&e.includes("%")||typeof t=="string"&&t.includes("%");let m=null;const f=()=>{w(),m=new ResizeObserver(w),m.observe(h)};if(u){const k=requestAnimationFrame(()=>f());return()=>{cancelAnimationFrame(k),m?.disconnect()}}return f(),()=>m?.disconnect()},[e,t]),n.jsxs(n.Fragment,{children:[n.jsx("style",{children:`
50
+ @keyframes ai {
51
+ from { --a: 360deg; --l: 0.35; --o: 1; }
52
+ 30% { --l: 1.5; }
53
+ 70% { --o: 0.4; --l: 0.05; }
54
+ 98% { --o: 0.7; }
55
+ to { --a: 0deg; --l: 0.35; --o: 1; }
56
+ }
57
+ @keyframes ring {
58
+ from { --value: var(--start); --scale: 1; }
59
+ 50% { --scale: 1.2; --width-ratio: 1.5; }
60
+ 70% { --scale: 1; --value: calc(var(--start) + 180deg); --width-ratio: 1; }
61
+ 80% { --scale: 1.2; --width-ratio: 1.5; }
62
+ to { --value: calc(var(--start) + 360deg); --scale: 1; --width-ratio: 1; }
63
+ }
64
+ .image-generating-container {
65
+ --s: var(--actual-size, max(var(--container-width), var(--container-height)));
66
+ --p: calc(var(--s) / 4);
67
+ --radius: calc(var(--s) * 0.25);
68
+ --count: 4;
69
+ --width: calc(var(--s) * 0.025);
70
+ --duration: calc(8s / var(--image-generating-speed, 1));
71
+ --ai-duration: calc(5.5s / var(--image-generating-speed, 1));
72
+ width: var(--container-width);
73
+ height: var(--container-height);
74
+ --bg-color: color-mix(in srgb, var(--color-primary), transparent 92%);
75
+ background: radial-gradient(60% 75% at center, var(--bg-color) 50%, transparent 50%),
76
+ radial-gradient(75% 60% at center, var(--bg-color) 50%, transparent 50%);
77
+ overflow: hidden;
78
+ position: relative;
79
+ border-radius: var(--radius-xl);
80
+ }
81
+ .image-generating-container .fluid-inner {
82
+ overflow: hidden;
83
+ background: var(--color-bg-base);
84
+ width: 100%;
85
+ height: 100%;
86
+ position: relative;
87
+ display: grid;
88
+ place-items: center;
89
+ border-radius: var(--radius-xl);
90
+ }
91
+ .image-generating-container .c {
92
+ opacity: 0.9;
93
+ position: absolute;
94
+ width: calc(var(--s) * 0.4);
95
+ aspect-ratio: 1;
96
+ border-radius: 50%;
97
+ --offset-per-item: calc(360deg / var(--count));
98
+ --current-angle-offset: calc(var(--offset-per-item) * var(--i) + var(--a));
99
+ translate: calc(cos(var(--current-angle-offset)) * var(--radius) + var(--x, 0))
100
+ calc(sin(var(--current-angle-offset)) * var(--radius) * -1);
101
+ scale: calc(0.6 + var(--l));
102
+ animation: ai var(--ai-duration) cubic-bezier(0.45, -0.35, 0.16, 1.5) infinite;
103
+ transition: opacity 0.3s linear;
104
+ opacity: var(--o, 1);
105
+ }
106
+ .image-generating-container .c1 {
107
+ background: radial-gradient(50% 50% at center, var(--color-primary), color-mix(in srgb, var(--color-primary), transparent 30%));
108
+ --x: calc(var(--s) * 0.04);
109
+ width: calc(var(--s) * 0.6);
110
+ animation-timing-function: cubic-bezier(0.12, 0.32, 0.68, 0.24);
111
+ }
112
+ .image-generating-container .c2 {
113
+ background: radial-gradient(50% 50% at center, var(--color-primary-active), color-mix(in srgb, var(--color-primary-active), var(--color-bg-base) 45%));
114
+ width: calc(var(--s) * 0.55);
115
+ }
116
+ .image-generating-container .c3 {
117
+ background: radial-gradient(50% 50% at center, var(--color-primary-hover), transparent);
118
+ width: calc(var(--s) * 0.2);
119
+ opacity: 0.6;
120
+ --x: calc(var(--s) * -0.04);
121
+ }
122
+ .image-generating-container .c4 {
123
+ background: var(--color-primary-border-hover);
124
+ animation-timing-function: cubic-bezier(0.39, -0.03, 0.75, 0.47);
125
+ }
126
+ .image-generating-container .glass {
127
+ overflow: hidden;
128
+ position: absolute;
129
+ inset: 0;
130
+ backdrop-filter: blur(calc(var(--s) * 0.12));
131
+ box-shadow: 0 0 calc(var(--s) * 0.2) color-mix(in srgb, var(--color-text-base), transparent 70%);
132
+ border-radius: var(--radius-xl);
133
+ pointer-events: none;
134
+ }
135
+ .image-generating-container .glass::after {
136
+ content: "";
137
+ position: absolute;
138
+ inset: 0;
139
+ --c: color-mix(in srgb, var(--color-text-base), transparent 97%);
140
+ --w: 0.0625rem;
141
+ --g: 0.1875rem;
142
+ background: repeating-linear-gradient(
143
+ var(--c), var(--c), var(--w), transparent var(--w), transparent calc(var(--w) + var(--g))
144
+ );
145
+ border-radius: var(--radius-xl);
146
+ }
147
+ .image-generating-container .rings {
148
+ aspect-ratio: 1;
149
+ border-radius: 50%;
150
+ position: absolute;
151
+ inset: 0;
152
+ perspective: calc(var(--s) * 2.75);
153
+ opacity: 0.9;
154
+ }
155
+ .image-generating-container .rings::before,
156
+ .image-generating-container .rings::after {
157
+ content: "";
158
+ position: absolute;
159
+ inset: 0;
160
+ border-radius: 50%;
161
+ --width-ratio: 1;
162
+ border: calc(var(--width) * var(--width-ratio)) solid transparent;
163
+ mask: linear-gradient(var(--color-image-generating-mask, var(--color-bg-base)) 0 0) padding-box, linear-gradient(var(--color-image-generating-mask, var(--color-bg-base)) 0 0);
164
+ background: linear-gradient(
165
+ var(--color-bg-base),
166
+ var(--color-primary),
167
+ var(--color-primary-active),
168
+ var(--color-primary-hover)
169
+ ) border-box;
170
+ mask-composite: exclude;
171
+ animation: ring var(--duration) ease-in-out infinite;
172
+ --start: 180deg;
173
+ --value: var(--start);
174
+ --scale: 1;
175
+ transform: rotateY(var(--value)) rotateX(var(--value)) rotateZ(var(--value)) scale(var(--scale));
176
+ }
177
+ .image-generating-container .rings::before { --start: 180deg; }
178
+ .image-generating-container .rings::after { --start: 90deg; }
179
+ .image-generating-container .content-overlay {
180
+ position: absolute;
181
+ inset: 0;
182
+ display: flex;
183
+ flex-direction: column;
184
+ align-items: center;
185
+ justify-content: center;
186
+ gap: var(--spacing-3);
187
+ z-index: 2;
188
+ pointer-events: none;
189
+ }
190
+ .image-generating-container .content-overlay .caption {
191
+ font-size: var(--font-size-xs);
192
+ font-weight: 500;
193
+ color: var(--color-text-on-primary);
194
+ }
195
+ .image-generating-container .remaining-overlay {
196
+ background: var(--color-bg-mask);
197
+ border-radius: var(--radius-xl);
198
+ }
199
+ .image-generating-container .remaining-text {
200
+ font-size: var(--font-size-3xl);
201
+ font-weight: 600;
202
+ color: var(--color-text-on-primary);
203
+ }
204
+ `}),n.jsxs("div",{ref:g,className:as("image-generating-container",i),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(s),...o&&typeof o=="object"?o:{}},...p,children:[n.jsxs("div",{className:"fluid-inner",children:[n.jsx("div",{className:"c c4",style:{"--i":0}}),n.jsx("div",{className:"c c1",style:{"--i":1}}),n.jsx("div",{className:"c c2",style:{"--i":2}}),n.jsx("div",{className:"c c3",style:{"--i":3}}),n.jsx("div",{className:"rings"})]}),n.jsx("div",{className:"glass"}),l?n.jsx("div",{className:"content-overlay remaining-overlay",children:n.jsx("span",{className:"remaining-text",children:c})}):n.jsxs("div",{className:"content-overlay",children:[n.jsx(se.motion.span,{className:"inline-flex items-center justify-center",animate:{scale:[1,1.08,1],opacity:[.9,1,.9]},transition:{duration:1.2,repeat:1/0,ease:[.16,1,.3,1]},children:d}),n.jsx("span",{className:as("caption",r),children:a})]})]})]})}Pn.displayName="ImageGenerating";const sd={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function ad(e,t){const s=(e??t?.split(".").pop()??"").toLowerCase();return sd[s]??"text-text-tertiary"}const Ct={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},rd="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",od="w-full h-full transition-transform duration-200 ease-in-out",id=x.memo(function({className:t}){return n.jsx("span",{className:b("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:Ct,"aria-hidden":!0,children:"⎔"})}),ld=x.memo(function({prefix:t,primary:s,secondary:a}){return n.jsxs("div",{className:"flex flex-row items-center gap-1.5 min-w-0 flex-1",children:[t?n.jsx("div",{className:"flex items-center justify-center shrink-0",children:t}):null,n.jsxs("div",{className:"flex flex-row items-center gap-1 min-w-0 overflow-hidden flex-1",children:[n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",title:s,children:s}),a?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:a,children:a}):null]})]})}),cd=x.memo(function e({detail:t,depth:s,pathKey:a,detailIndent:r,disableExpandAnimation:i,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c}){const d=t.details!=null&&t.details.length>0,p=o.has(a),g=!d,h=t.type==="action"?t.action:t.filename,w=t.type==="action"?t.desc:[t.lines,t.path].filter(Boolean).join(" "),u=g&&t.type==="file"?n.jsx(id,{className:ad(t.fileType,t.filename)}):void 0,m=x.useCallback(()=>{d&&l(a)},[d,l,a]),f=n.jsxs("div",{className:b("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",d&&"cursor-pointer"),onClick:d?m:void 0,children:[n.jsx(ld,{prefix:u,primary:h,secondary:w}),d&&n.jsx("div",{className:b("flex items-center justify-center shrink-0 text-text-tertiary",p?"rotate-90":"rotate-0"),style:Ct,children:c})]}),k=n.jsxs("div",{className:"flex flex-row items-center gap-0 self-stretch",style:{marginLeft:r},children:[n.jsx("div",{className:"shrink-0 w-[var(--font-size-xs)] h-5 border-l border-border-tertiary"}),f]});if(!d)return n.jsx(x.Fragment,{children:k},a);const v=s===1?"rounded-lg border border-border-tertiary bg-bg-base p-2 flex flex-col gap-0":"flex flex-col";return n.jsxs("div",{className:"flex flex-col self-stretch",children:[k,n.jsx("div",{className:b("grid transition-[grid-template-rows,opacity] duration-150 ease-out",p?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:n.jsx("div",{className:b(v),children:t.details?.map((C,j)=>n.jsx(e,{detail:C,depth:s+1,pathKey:`${a}-${j}`,detailIndent:r,disableExpandAnimation:i,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c},`${a}-${j}`))})})})]},a)});function St({text:e,description:t,status:s="completed",icon:a,showIcon:r=!0,details:i,children:o,duration:l=2,spread:c=2,disableExpandAnimation:d=!1,defaultExpanded:p,expanded:g,onExpandedChange:h,eyeIcon:w,arrowRightIcon:u}){const m=g!==void 0,[f,k]=x.useState(p??!1),y=m?g:f,[v,C]=x.useState(!1),j=d&&p!==void 0?p:y,A=r&&typeof e=="string",R=A?"var(--spacing-1.5)":"var(--spacing-2.5)",I=x.useMemo(()=>typeof e=="string"?e.length*c:10*c,[e,c]),E=w??n.jsx(Ws,{className:rd}),z=u??n.jsx(He,{className:od}),L=()=>a||E,M=()=>typeof e!="string"?e:s==="in-progress"?n.jsx(se.motion.span,{className:"text-xs leading-xs font-normal relative inline-block bg-clip-text text-transparent bg-[length:250%_100%,auto] bg-no-repeat truncate",style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${I}px), var(--color-text), transparent calc(50% + ${I}px)), linear-gradient(var(--color-text-tertiary), var(--color-text-tertiary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:l,ease:"linear"},children:e}):n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",children:e}),V=()=>t?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",children:t}):null,[O,Z]=x.useState(new Set),U=x.useCallback(Y=>{Z(Q=>{const X=new Set(Q);return X.has(Y)?X.delete(Y):X.add(Y),X})},[]),ee=i!=null&&i.length>0,T=ee||o!=null,$=()=>{T&&(m?h?.(!g):k(Y=>!Y))};return n.jsxs("div",{"data-reasoning-step":!0,className:"flex flex-col gap-1 py-0.5",onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[n.jsxs("div",{className:b("flex flex-row items-center gap-1.5",T&&"cursor-pointer"),onClick:$,children:[A&&n.jsx("div",{className:"flex items-center justify-center shrink-0",style:Ct,children:L()}),n.jsxs("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0",children:[M(),t?V():null,T&&n.jsx("div",{className:b("flex items-center justify-center shrink-0 text-text-tertiary transition-opacity duration-200 ease-in-out",j||v?"opacity-100":"opacity-0",j?"rotate-90":"rotate-0"),style:Ct,children:z})]})]}),T&&n.jsx("div",{className:b("grid transition-[grid-template-rows,opacity] duration-200 ease-out",j?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:ee?n.jsx("div",{className:"flex flex-col",children:i?.map((Y,Q)=>n.jsx(cd,{detail:Y,depth:0,pathKey:String(Q),detailIndent:R,disableExpandAnimation:d,expandedNestedKeys:O,onToggleNested:U,arrowRightIcon:z},String(Q)))}):o})})]})}St.displayName="ReasoningStep";function dd(e){const t=[];let s=0;const a=i=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(i),r=i=>/[a-zA-Z0-9']/.test(i);for(;s<e.length;){const i=e[s];if(a(i))t.push(i),s+=1;else if(r(i)){let o=s;for(;o<e.length&&r(e[o]);)o+=1;t.push(e.slice(s,o)),s=o}else{let o=s;for(;o<e.length&&!a(e[o])&&!r(e[o]);)o+=1;t.push(e.slice(s,o)),s=o}}return t}function ud(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const s=t.pop()??"";return{completed:t.join(`
205
+
206
+ `),partial:s}}const pd=3;function md({content:e,isActive:t,onStreamComplete:s,tokenDelayMs:a=14,className:r}){const i=x.useMemo(()=>dd(e),[e]),[o,l]=x.useState(0),c=x.useRef(s);c.current=s;const d=x.useMemo(()=>i.slice(0,o).join(""),[i,o]),{completed:p,partial:g}=x.useMemo(()=>ud(d),[d]);x.useEffect(()=>{if(!t)return;l(0);const w=i.length;if(w===0){c.current?.();return}let u=0;const m=setInterval(()=>{u=Math.min(u+pd,w),l(u),u>=w&&(clearInterval(m),c.current?.())},a);return()=>clearInterval(m)},[t,e,i.length,a]);const h=t&&o<i.length;return i.length===0?null:h?n.jsxs("div",{className:r,children:[p?n.jsx("div",{className:"streaming-completed",children:n.jsx(Xe,{children:p})}):null,g?n.jsx("span",{className:"streaming-partial text-sm leading-sm text-text streaming-token-fade-in",children:g}):null]}):n.jsx("div",{className:r,children:n.jsx(Xe,{children:e})})}const fd={text:"Scanning local photo library",description:"Indexing metadata and building a rename plan",details:[{type:"action",action:"Discover photos",desc:"Found 1,000 images in /Pictures/Unsorted"},{type:"action",action:"Extract metadata",desc:"Read EXIF timestamps, GPS, and camera model"},{type:"action",action:"Detect duplicates",desc:"Hash-based matching + perceptual similarity"}]},gd={text:"Classifying photos into albums",description:"Clustering by time, location, and scene",details:[{type:"action",action:"Time buckets",desc:"Group into events using temporal gaps"},{type:"action",action:"Location clusters",desc:"Reverse geocode GPS into city/area labels"},{type:"action",action:"Scene tags",desc:"Detect indoor/outdoor, portraits, food, and documents"}]},xd={text:"Renaming files safely",description:"Dry-run, collision check, then atomic move",details:[{type:"action",action:"Dry run",desc:"Preview 1,000 rename operations"},{type:"action",action:"Collision handling",desc:"Append counter suffix to avoid overwrites"},{type:"action",action:"Write changes",desc:"Move files into album folders"}]},hd=[{step:fd,simpleMd:"I'm **scanning** your library and building the index. Found 1,000 photos in `Pictures/Unsorted`; EXIF and duplicates are being analyzed.\n\n"},{step:gd,simpleMd:`**Classifying** into albums by time, location, and scene. Time buckets and GPS labels are done; next I'll tag indoor/outdoor and document vs. portrait.
207
+
208
+ `},{step:xd,simpleMd:`**Dry-run** is done and collision handling is in place. No overwrites; an audit log (CSV) is ready. Pending your confirmation to run the renames.
209
+
210
+ `}],yd=`## Plan
211
+
212
+ I will organize your **1,000 local photos** by building an index, clustering them into albums, and then performing a safe rename + move operation.
213
+
214
+ ### Folder structure
215
+
216
+ \`\`\`text
217
+ Pictures/
218
+ Organized/
219
+ 2026-01-18 — San Francisco — Golden Gate Park/
220
+ 2026-01-05 — Home — Documents/
221
+ 2025-12-31 — New Year's Eve/
222
+ _Duplicates/
223
+ _Unsorted/
224
+ \`\`\`
225
+
226
+ ### Naming scheme
227
+
228
+ \`YYYY-MM-DD_HH-mm-ss__<Location>__<Scene>__<Counter>.<ext>\`
229
+
230
+ Example:
231
+
232
+ \`2026-01-18_15-42-11__San-Francisco__Outdoor__001.jpg\`
233
+
234
+ ### Safety checks
235
+
236
+ - [x] Dry-run all operations
237
+ - [x] Detect collisions and append counters
238
+ - [x] Keep an audit log (CSV)
239
+ - [ ] Execute moves (requires confirmation)
240
+
241
+ ---
242
+
243
+ ## Next step
244
+
245
+ If you want, I can generate a **preview report** first (top 50 renames + album summary) before applying changes.
246
+ `;function bd(e,t){const s=[];for(const a of e)s.push({type:"think"}),s.push({type:"composer",step:a.step}),s.push({type:"md",md:a.simpleMd});return s.push({type:"think"}),s.push({type:"md",md:t}),s}const vd=n.jsx(_n,{text:"Qoder is thinking..."});function oo({simulate:e=!0,phase:t="thinking",rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:i,thinkingIndicator:o,className:l,...c}){const d=o??vd,p=s??hd,g=a??yd,h=x.useMemo(()=>bd(p,g),[p,g]),[w,u]=x.useState(0),m=e?w>=h.length-1:t==="done",k=(h[w]??null)?.type==="think";x.useEffect(()=>{if(!e||h.length===0)return;const C=h[w]??null;C?.type==="composer"&&C.step?i?.(C.step.text,C.step.toolType):C?.type==="think"&&i?.("Thinking..."),w>=h.length&&r?.()},[e,h,w,i,r]),x.useEffect(()=>{!e||h.length===0||u(0)},[e,h.length]),x.useEffect(()=>{if(!e||h.length===0)return;const C=h[w]??null;if(C?.type==="think"||C?.type==="composer"){const j=window.setTimeout(()=>u(A=>Math.min(A+1,h.length)),580);return()=>window.clearTimeout(j)}},[e,h,w]);const y=e?k:t==="thinking"||t==="streaming",v=x.useMemo(()=>{const C=[],j=e?Math.min(w,h.length-1):h.length-1;let A=-1;for(let R=0;R<=j;R++)h[R]?.type==="composer"&&(A=R);for(let R=0;R<=j;R++){const I=h[R];if(I){if(I.type==="think"){e&&R===w&&C.push(n.jsx("span",{children:d},`think-${R}`));continue}if(I.type==="composer"&&I.step){const E=R===A&&!m;C.push(n.jsx(St,{text:I.step.text,description:I.step.description,details:I.step.details,status:E?"in-progress":"completed"},R))}I.type==="md"&&I.md&&C.push(n.jsx("div",{className:"mt-1",children:n.jsx(md,{content:I.md,isActive:R===j,onStreamComplete:()=>{u(E=>Math.min(E+1,h.length)),R+1>=h.length&&r?.()}})},`md-${R}`))}}return C},[e,w,h,m,r,d]);if(t==="imageGenerating")return n.jsx("div",{className:b("flex flex-col gap-3 font-body",l),...c,children:n.jsx(Pn,{width:"320px",height:"240px"})});if(!e){const C=[];for(let j=0;j<h.length;j++){const A=h[j];A&&(A.type==="composer"&&A.step&&C.push(n.jsx(St,{text:A.step.text,description:A.step.description,details:A.step.details,status:"completed",disableExpandAnimation:!0},j)),A.type==="md"&&A.md&&C.push(n.jsx("div",{className:"mt-1",children:n.jsx(Xe,{children:A.md})},`md-${j}`)))}return n.jsxs("div",{className:b("flex flex-col gap-3 font-body",l),...c,children:[n.jsx("div",{className:"flex flex-col gap-1",children:C}),(t==="thinking"||t==="streaming")&&d]})}return n.jsxs("div",{className:b("flex flex-col gap-3 font-body",l),...c,children:[n.jsx("div",{className:"flex flex-col gap-1",children:v}),y&&!e&&d]})}oo.displayName="Response";const kd=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],wd=60,jd=360,Nd=0,Cd=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Sd={g:"https://jitter.video"},Id=240,Ed="5.7.4",Ad=360,Rd={assets:kd,fr:wd,h:jd,ip:Nd,layers:Cd,meta:Sd,op:Id,v:Ed,w:Ad},Td=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Ld=60,_d=360,Pd=0,Fd=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),zd={g:"https://jitter.video"},Dd=240,Md="5.7.4",Od=360,$d={assets:Td,fr:Ld,h:_d,ip:Pd,layers:Fd,meta:zd,op:Dd,v:Md,w:Od};function Bd(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 overflow-hidden -translate-x-0.5","aria-hidden":!0,children:[n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-light",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(Bn,{animationData:Rd,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-dark",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(Bn,{animationData:$d,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("style",{children:`
247
+ .thinking-light { display: block; }
248
+ .thinking-dark { display: none; }
249
+ html[data-theme="dark"] .thinking-light, html[data-theme="classic-dark"] .thinking-light { display: none; }
250
+ html[data-theme="dark"] .thinking-dark, html[data-theme="classic-dark"] .thinking-dark { display: block; }
251
+ `})]})}function Fn(e){return n.jsx(_n,{loader:n.jsx(Bd,{}),...e})}Fn.displayName="ThinkingIndicator";function io(e){return n.jsx(oo,{...e,thinkingIndicator:n.jsx(Fn,{text:"Qoder is thinking..."})})}io.displayName="Response";const lo=x.forwardRef(({children:e,className:t,maxWidth:s="752px",...a},r)=>{const i=b("w-full","bg-sage-bg","rounded-lg","p-3","text-sm leading-sm","font-normal","text-text",t);return n.jsx("div",{ref:r,className:i,style:{maxWidth:typeof s=="number"?`${s}px`:s},...a,children:e})});lo.displayName="Request";const rs="w-5 h-5 text-text-secondary",co=x.forwardRef(({filename:e,iconFilename:t,size:s,icon:a,getFileIcon:r,onClick:i,className:o,...l},c)=>{const p=a??(r?r(t??e,rs):n.jsx(an,{className:rs}));return n.jsxs("div",{ref:c,role:i?"button":void 0,tabIndex:i?0:void 0,onClick:i,onKeyDown:i?g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),i())}:void 0,className:b("flex flex-row items-center gap-4 w-full max-w-96","py-5 px-5 rounded-lg","bg-bg-base border border-border-tertiary","text-sm leading-sm","transition-colors cursor-pointer hover:border-border-secondary",o),...l,children:[n.jsx("div",{className:b("flex items-center justify-center w-10 h-10 shrink-0 rounded-md","bg-fill-tertiary"),children:p}),n.jsxs("div",{className:"flex flex-row items-center gap-3 min-w-0",children:[n.jsx("span",{className:"font-medium text-text truncate",children:e}),s!=null&&s!==""&&n.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",s,")"]})]})]})});co.displayName="FileCard";function Gd({className:e}){return n.jsxs("svg",{className:e,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[n.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),n.jsx("polyline",{points:"14 2 14 8 20 8"}),n.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),n.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),n.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function uo(e,t){return n.jsx(Gd,{className:t})}const po=x.forwardRef((e,t)=>{const{getFileIcon:s}=et(),a=s??((r,i)=>uo(r,i));return n.jsx(co,{ref:t,getFileIcon:a,...e})});po.displayName="FileCard";const os="h-3.5 w-3.5 shrink-0 text-current",mo=x.forwardRef(({filename:e,iconFilename:t,onRemove:s,icon:a,getFileIcon:r,className:i,...o},l)=>{const d=a??(r?r(t??e,os):n.jsx(an,{className:os})),{color:p,...g}=o;return n.jsx(In,{ref:l,appearance:"filled",color:"mauve",closable:typeof s=="function",onClose:s,closeAriaLabel:"移除",className:i,...g,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[d,e]})})});mo.displayName="FileAttachment";const fo=x.forwardRef((e,t)=>{const{getFileIcon:s}=et(),a=s??((r,i)=>uo(r,i));return n.jsx(mo,{ref:t,getFileIcon:a,...e})});fo.displayName="FileAttachment";const Hd={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},Vd="max-w-[90vw] max-h-[90vh] object-contain",Ud="h-2.5 w-2.5 text-text-secondary",qd="h-4 w-4 text-text-secondary",go=x.forwardRef(({src:e,alt:t="",onRemove:s,previewable:a=!0,onClick:r,size:i="sm",className:o,closeIcon:l,closeLargeIcon:c,...d},p)=>{const[g,h]=x.useState(!1),w=l??n.jsx(Ie,{className:Ud}),u=c??n.jsx(qs,{className:qd}),m=typeof s=="function",f=x.useCallback(()=>{a&&h(!0)},[a]),k=x.useCallback(()=>h(!1),[]),y=x.useCallback(j=>{r?.(j),!j.defaultPrevented&&a&&f()},[r,a,f]),v=x.useCallback(j=>{j.stopPropagation(),s?.(j)},[s]);x.useEffect(()=>{if(!g)return;const j=A=>{A.key==="Escape"&&k()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[g,k]);const C=g&&typeof document<"u"?Ss.createPortal(n.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-bg-mask",role:"dialog","aria-modal":"true","aria-label":"图片预览",onClick:j=>{j.target===j.currentTarget&&k()},onKeyDown:j=>j.key==="Escape"&&k(),children:[n.jsx("img",{src:e,alt:t,className:b("rounded-lg shadow-xl",Vd),onClick:j=>j.stopPropagation(),draggable:!1}),n.jsx(be,{variant:"tertiary",size:"md",rounded:"pill",icon:u,onClick:k,"aria-label":"关闭预览",className:"absolute top-4 right-4 bg-bg-base border border-border-tertiary shadow-sm"})]}),document.body):null;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:p,role:a?"button":void 0,tabIndex:a?0:void 0,className:b("relative group shrink-0",a&&"cursor-pointer",o),onClick:y,onKeyDown:a?j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),f())}:void 0,...d,children:[n.jsx("img",{src:e,alt:t,className:b("rounded-lg object-cover border border-border-tertiary",Hd[i]),draggable:!1}),m&&n.jsx("button",{type:"button",onClick:v,"aria-label":"移除",className:"absolute -top-0.5 -right-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-bg-base border border-border-tertiary shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-fill-secondary",children:w})]}),C]})});go.displayName="ImageAttachment";const Wd="h-2.5 w-2.5 text-text-secondary",Zd="h-4 w-4 text-text-secondary",xo=x.forwardRef((e,t)=>{const s=_("close",Wd),a=_("closeLarge",Zd);return n.jsx(go,{ref:t,closeIcon:s,closeLargeIcon:a,...e})});xo.displayName="ImageAttachment";const Yd="w-3.5 h-3.5 text-text-tertiary",Kd="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function ho(e){const t=_("eye",Yd),s=_("arrowRight",Kd);return n.jsx(St,{eyeIcon:t,arrowRightIcon:s,...e})}ho.displayName="ReasoningStep";const zn="size-[1em] shrink-0",Qd=`${zn} text-text-tertiary`,Xd=`${zn} text-success`,Jd=`${zn} text-text-tertiary`,eu="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",yo=x.memo(function({toolName:t,params:s,status:a,response:r,defaultExpanded:i=!1,statusText:o,className:l,timeIcon:c,checkboxCircleIcon:d,closeCircleIcon:p,arrowRightIcon:g,runningText:h="Running",ranText:w="Ran",failedText:u="Failed",responseLabel:m="Response"}){const[f,k]=x.useState(i),y=r!=null&&r.length>0,v=a==="running",C=a==="success",j=a==="error",R=o!==void 0?o:v?h:C?w:u,I=R!=="",E=c??n.jsx(Xs,{className:Qd}),z=d??n.jsx(Rt,{className:Xd}),L=p??n.jsx(Js,{className:Jd}),M=g??n.jsx(He,{className:eu});return n.jsxs("div",{className:b("flex flex-col",l),children:[n.jsxs("div",{onClick:()=>y&&!v&&k(!f),className:b("group flex items-center gap-1.5 min-h-5",y&&!v&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[n.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[v&&E,C&&z,j&&L]}),I&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:R}),n.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),s!=null&&s!==""&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:s,children:s}),y&&!v&&n.jsx("div",{className:b("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",f&&"!opacity-100",f?"rotate-90":"rotate-0"),children:M})]}),y&&f&&n.jsxs("div",{className:"mt-1 ml-4.5 rounded-md border border-border-tertiary bg-bg-base overflow-hidden font-mono text-xs leading-xs",children:[n.jsx("div",{className:"text-text-tertiary px-2 pt-1 pb-0 leading-xs",children:m}),n.jsx(ge,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:n.jsx("pre",{className:b("whitespace-pre-wrap break-words leading-xs",j?"text-error":"text-text-tertiary"),children:r})})]})]})});yo.displayName="ToolInvocationCard";const tu="size-[1em] text-text-tertiary",nu="size-[1em] text-success",su="size-[1em] text-text-tertiary",au="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",bo=x.memo(function(t){const{t:s}=Es.useTranslation(),a=_("time",tu),r=_("checkboxCircle",nu),i=_("closeCircle",su),o=_("arrowRight",au);return n.jsx(yo,{timeIcon:a,checkboxCircleIcon:r,closeCircleIcon:i,arrowRightIcon:o,runningText:s("tools.status.running","Running"),ranText:s("tools.status.ran","Ran"),failedText:s("tools.status.failed","Failed"),...t})});bo.displayName="ToolInvocationCard";const ru=80;function is(e){if(!e)return{};const{label:t,...s}=e;return s}const ou="Permission required",iu="This action requires your permission.",lu="Expand",cu="Collapse",du=", ",vo=x.forwardRef(({title:e,description:t,command:s,commandIntent:a,isLoadingIntent:r=!1,onClose:i,actions:o,className:l,closeIcon:c,warningIcon:d,expandLabel:p=lu,collapseLabel:g=cu,commaLabel:h=du,...w},u)=>{const m=e??ou,f=t??iu,k=s.length>ru,[y,v]=x.useState(!k),C=c??n.jsx(Ie,{className:"h-3.5 w-3.5"}),j=d??n.jsx(Je,{className:"h-4 w-4"});return n.jsxs("div",{ref:u,className:b("relative rounded-lg border border-border-tertiary bg-bg-base p-3",l),...w,children:[i&&n.jsx("button",{type:"button",onClick:i,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:C}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-warning",children:j}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:m})]}),n.jsx("p",{className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:r?n.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[n.jsx("div",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-text-tertiary border-t-transparent"}),n.jsx("span",{children:f})]}):n.jsxs(n.Fragment,{children:[f,a&&n.jsxs("span",{children:[h,a]})]})}),n.jsx("div",{className:"mb-4 ml-6",children:n.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[y||!k?n.jsx("div",{title:s,children:n.jsx(ge,{scrollbarVisibility:"auto",maxHeight:240,className:"text-xs leading-xs font-medium text-text break-all",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:s})}):n.jsx("div",{className:"text-xs leading-xs font-medium text-text break-all line-clamp-2 overflow-hidden",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},title:s,children:s}),k&&n.jsx("button",{type:"button",onClick:()=>v(!y),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:y?g:p})]})}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[o?.deny&&n.jsx(te,{variant:"ghost",...is(o.deny),children:o.deny.label}),o?.allowOnce&&n.jsx("button",{type:"button",className:b("rounded-full inline-flex items-center justify-center","px-3 py-1 text-sm leading-sm font-medium","text-text-on-primary bg-error","cursor-pointer hover:opacity-90 active:opacity-95 transition-opacity","disabled:opacity-50 disabled:cursor-not-allowed"),...is(o.allowOnce),children:o.allowOnce.label})]})]})});vo.displayName="PermissionCard";const ko=x.forwardRef((e,t)=>{const{t:s}=Es.useTranslation(),a=_("close","h-3.5 w-3.5"),r=_("warning","h-4 w-4");return n.jsx(vo,{ref:t,...e,closeIcon:a,warningIcon:r,title:e.title??s("permission.title"),description:e.description??s("permission.description.default",{toolName:"Tool"}),expandLabel:s("permission.expand"),collapseLabel:s("permission.collapse"),commaLabel:s("common.comma")})});ko.displayName="PermissionCard";const uu="h-5 w-5 text-text-on-primary";function wo(e){const t=_("sparkling",uu);return n.jsx(Pn,{sparklingIcon:t,...e})}wo.displayName="ImageGenerating";const pu="w-4 h-4",jo=x.forwardRef(({items:e,selectedId:t,onItemClick:s,width:a="w-52",className:r,moreIcon:i,...o},l)=>{const[c,d]=x.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",g=i??n.jsx(ea,{className:pu});return n.jsx("div",{ref:l,className:b(p,a,r),...o,children:e.map(h=>{const w=t===h.id,u=h.disabled,m=c===h.id;return n.jsxs("div",{className:b("group flex items-center gap-2 py-1 px-2 rounded-md text-sm leading-sm transition-colors","focus-within:outline-none min-w-0",u&&"opacity-50 cursor-not-allowed",!u&&"cursor-pointer",w?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[n.jsx("button",{onClick:()=>{u||s?.(h),d(null)},disabled:u,className:"flex-1 text-left truncate min-w-0 outline-none bg-transparent border-none p-0 cursor-pointer",children:h.label}),h.actions&&h.actions.length>0?n.jsx("div",{onClick:f=>f.stopPropagation(),children:n.jsxs(_e,{open:m,onOpenChange:f=>{d(f?h.id:null)},children:[n.jsx(Pe,{asChild:!0,children:n.jsx("button",{className:b("flex items-center justify-center p-1 rounded outline-none transition-all duration-200 relative z-10 cursor-pointer hover:bg-fill-primary"),style:{pointerEvents:"auto"},onClick:f=>f.stopPropagation(),onMouseDown:f=>f.stopPropagation(),children:n.jsx("span",{className:b("transition-opacity pointer-events-none flex items-center justify-center",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:h.icon??n.jsx("span",{className:b("w-4 h-4 inline-flex items-center justify-center",w?"text-text":"text-text-secondary"),children:g})})})}),n.jsx(Ce,{align:"end",children:h.actions.map(f=>n.jsxs(he,{variant:f.destructive?"destructive":"default",onClick:k=>{k.stopPropagation(),d(null),f.onClick?.()},children:[f.icon&&n.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:f.icon}),f.label]},f.id))})]})}):n.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:f=>f.stopPropagation(),children:h.icon?n.jsx("span",{className:b("transition-opacity pointer-events-none",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:h.icon}):n.jsx("span",{className:b("w-4 h-4 inline-flex items-center justify-center transition-opacity pointer-events-none",w?"opacity-100 text-text":"opacity-0 group-hover:opacity-100 text-text-secondary"),children:g})})]},h.id)})})});jo.displayName="SidebarMenu";const mu="w-4 h-4",No=x.forwardRef((e,t)=>{const s=_("more",mu);return n.jsx(jo,{ref:t,moreIcon:s,...e})});No.displayName="SidebarMenu";const Co=x.memo(function({children:t,className:s="",gridClassName:a="",isGenerating:r=!1,maxVisibleWhenGenerating:i=6,formatRemaining:o=l=>`+${l}`}){const l=x.Children.toArray(t),c=l.length,d=r&&c>i,p=d?i:c,g=c-i+1,w=l.slice(0,p).map((u,m)=>d&&m===p-1&&x.isValidElement(u)?x.cloneElement(u,{showOverlay:!0,overlayText:o(g)}):u);return n.jsx("div",{className:b("mt-5 mb-2",s),children:n.jsx("div",{className:b("flex flex-wrap gap-3",a),children:w})})});Co.displayName="GeneratedImagesGrid";const fu={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},gu="[No preference]";function xu({questions:e,resetKey:t,ref:s}){const[a,r]=x.useState(0),[i,o]=x.useState({}),[l,c]=x.useState({}),[d,p]=x.useState(0),[g,h]=x.useState(!1),[w,u]=x.useState(void 0),m=x.useRef(a),f=x.useRef(t),k=x.useRef(null),y=x.useRef(new Map),v=x.useRef(a),C=x.useRef(!1),j=x.useRef(!1),A=x.useRef(new Map),R=x.useCallback(I=>{const E=e[I];if(!E)return 0;const z=i[E.question]||[];if(z.length===0)return 0;const M=(E.options||[]).findIndex(V=>z.includes(V.label));return M>=0?M:0},[e,i]);return x.useImperativeHandle(s,()=>({getAnswers:()=>{const I={};for(const E of e){const z=i[E.question]||[],L=l[E.question]?.trim(),M=[];z.length>0&&M.push(...z),L&&M.push(L),M.length>0&&(I[E.question]=M.join(", "))}return I}}),[i,l,e]),x.useEffect(()=>{f.current!==t&&(h(!1),r(0),v.current=0,o({}),c({}),p(0),f.current=t,y.current.clear(),A.current.clear())},[t]),x.useEffect(()=>{if(m.current!==a){if(v.current=a,j.current){C.current=!0;const I=y.current.get(a),E=k.current;if(I&&E){const z=()=>{C.current=!1,j.current=!1,E.removeEventListener("scrollend",z)};E.addEventListener("scrollend",z,{once:!0}),I.scrollIntoView({behavior:"smooth",block:"nearest"})}else C.current=!1,j.current=!1}m.current=a}},[a]),x.useEffect(()=>{const I=setTimeout(()=>{let E=0;y.current.forEach(z=>{const L=z.getBoundingClientRect().height;L>E&&(E=L)}),E>0&&u(E)},50);return()=>clearTimeout(I)},[e,t]),x.useEffect(()=>{const I=k.current;if(!I)return;const E=new IntersectionObserver(z=>{if(C.current)return;let L=0,M=v.current;z.forEach(V=>{V.isIntersecting&&V.intersectionRatio>L&&(L=V.intersectionRatio,y.current.forEach((O,Z)=>{O===V.target&&(M=Z)}))}),M!==v.current&&L>.5&&(v.current=M,r(M),p(R(M)))},{root:I,threshold:[0,.25,.5,.75,1]});return y.current.forEach(z=>{z?.isConnected&&E.observe(z)}),()=>E.disconnect()},[e,R]),{currentQuestionIndex:a,setCurrentQuestionIndex:r,answers:i,setAnswers:o,customInputs:l,setCustomInputs:c,focusedOptionIndex:d,setFocusedOptionIndex:p,isSubmitting:g,setIsSubmitting:h,maxQuestionHeight:w,scrollContainerRef:k,questionRefs:y,shouldScrollToQuestionRef:j,customInputRefs:A,getSelectedOptionIndex:R}}function hu(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function yu({isSubmitting:e,currentQuestion:t,currentOptions:s,currentQuestionIndex:a,questions:r,focusedOptionIndex:i,setFocusedOptionIndex:o,currentQuestionHasAnswer:l,getSelectedOptionIndex:c,shouldScrollToQuestionRef:d,setCurrentQuestionIndex:p,handleOptionClick:g,handleContinue:h}){x.useEffect(()=>{const w={ArrowDown(m){if(m.preventDefault(),i<s.length-1)o(i+1);else if(a<r.length-1){const f=a+1;d.current=!0,p(f),o(c(f))}},ArrowUp(m){if(m.preventDefault(),i>0)o(i-1);else if(a>0){const f=a-1;d.current=!0,p(f),o(c(f))}},Enter(m){m.preventDefault(),l?h():t&&s[i]&&g(t.question,s[i].label,a)}},u=m=>{if(e||hu(document.activeElement))return;const f=w[m.key];if(f){f(m);return}if(m.key>="1"&&m.key<="9"){const k=parseInt(m.key,10)-1;k>=0&&k<s.length&&t&&(m.preventDefault(),g(t.question,s[k].label,a),o(k))}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,t,s,a,r.length,i,o,l,c,p,g,h,d])}function bu({currentQuestion:e,questionsLength:t,labels:s,chat4Icon:a,arrowUpSIcon:r,arrowDownSIcon:i,currentQuestionIndex:o,onPrevious:l,onNext:c}){return n.jsxs("div",{className:"flex items-center justify-between mb-2 -mt-2 px-3 pt-2 pb-2 rounded-t-xl bg-fill-tertiary",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[a,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:e?.header||s.questionHeader}),n.jsx("span",{className:"text-text-tertiary/50",children:"•"}),n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:e?.multiSelect?s.multiSelect:s.singleSelect})]}),t>1&&n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(be,{size:"sm",variant:"ghost",onClick:l,disabled:o===0,icon:r}),n.jsxs("span",{className:"text-xs leading-xs text-text-tertiary px-1",children:[o+1," / ",t]}),n.jsx(be,{size:"sm",variant:"ghost",onClick:c,disabled:o===t-1,icon:i})]})]})}function vu({question:e,qIndex:t,labels:s,answers:a,customInputs:r,focusedOptionIndex:i,isCurrentQuestion:o,isSubmitting:l,allQuestionsAnswered:c,questionsLength:d,questionRefs:p,customInputRefs:g,setCurrentQuestionIndex:h,setFocusedOptionIndex:w,setAnswers:u,setCustomInputs:m,getSelectedOptionIndex:f,shouldScrollToQuestionRef:k,onOptionClick:y,onContinue:v}){const C=e.options||[],[j,A]=x.useState(!1),R=!!r[e.question]?.trim(),I=j||R;return n.jsxs("div",{ref:E=>{E?p.current.set(t,E):p.current.delete(t)},className:b("transition-opacity duration-200",o?"opacity-100":"opacity-40"),children:[n.jsxs("div",{className:"flex items-start gap-3 pl-2 mb-3",children:[n.jsxs("div",{className:"flex-shrink-0 w-5 flex items-center justify-center text-sm leading-sm font-medium text-text-tertiary",children:[t+1,"."]}),n.jsx("div",{className:"text-sm leading-sm font-medium text-text min-w-0 flex-1",children:e.question})]}),n.jsx(nn,{items:C.map(E=>({id:E.label,label:E.label,description:E.description})),selectedIds:a[e.question]?.map(E=>E)||[],focusedId:o?C[i]?.label:void 0,disabled:l||!o,onItemClick:(E,z)=>{if(!o){h(t),w(f(t));return}y(e.question,E.label,t),w(z)}}),e.allowCustomInput!==!1&&n.jsxs("div",{className:b("w-full flex gap-3 pl-2 mt-3 transition-colors",!o&&"opacity-40",l&&"opacity-50"),children:[n.jsx("div",{className:b("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",o&&i===C.length||r[e.question]?.trim()?"bg-primary-active text-text-on-primary":"bg-fill-secondary text-text-tertiary"),children:C.length+1}),n.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[n.jsx("div",{className:"h-5 flex items-center",children:n.jsx("input",{ref:E=>{E?g.current.set(e.question,E):g.current.delete(e.question)},type:"text",value:r[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:E=>{const z=E.target.value;m(L=>({...L,[e.question]:z})),!e.multiSelect&&z.trim()&&u(L=>({...L,[e.question]:[]}))},onFocus:()=>{A(!0),o&&(w(C.length),e.multiSelect||u(E=>({...E,[e.question]:[]})))},onBlur:()=>A(!1),onKeyDown:E=>{if(E.key==="Enter"&&!E.shiftKey){E.preventDefault(),E.stopPropagation();const z=r[e.question]?.trim();if((a[e.question]||[]).length>0||!!z)if(c)v();else if(t<d-1){const V=t+1;k.current=!0,h(V),w(0)}else v()}},placeholder:s.customInputPlaceholder,disabled:l||!o,className:b("w-full h-full py-0 bg-transparent text-sm leading-sm font-medium text-text","placeholder:text-text-tertiary placeholder:font-normal","border-0 rounded-none outline-none outline-offset-0","focus:outline-none focus:outline-offset-0","focus-visible:outline-none focus-visible:outline-offset-0","ring-0 focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none","disabled:cursor-not-allowed")})}),n.jsx("div",{className:"mt-1.5 overflow-hidden origin-left transition-[width] duration-200 ease-out",style:{width:I?"100%":"0%"},"aria-hidden":!0,children:n.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}function ku({labels:e,sparklingIcon:t,isSubmitting:s,hasCustomText:a,allQuestionsAnswered:r,onRecommend:i,onSkip:o,onContinue:l}){return n.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[n.jsxs(te,{variant:"ghost",size:"sm",onClick:i,disabled:s,children:[t,e.recommend]}),n.jsxs("div",{className:"flex items-center gap-2",children:[!r&&n.jsx(te,{variant:"ghost",size:"sm",onClick:o,disabled:s,children:e.skipAll}),n.jsx(te,{size:"sm",variant:"secondary",onClick:l,disabled:s||a||!r,children:s?e.sending:n.jsxs(n.Fragment,{children:[r?e.submit:e.continue,n.jsx("span",{className:"opacity-70",children:" ↵"})]})})]})]})}const wu=n.jsx(Qs,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),ju=n.jsx(sn,{}),Nu=n.jsx(ve,{}),Cu=n.jsx(rn,{className:"w-4 h-4 mr-1"}),So=x.memo(x.forwardRef(function({questions:t,resetKey:s,onAnswer:a,onSkip:r,hasCustomText:i=!1,labels:o,chat4Icon:l=wu,arrowUpSIcon:c=ju,arrowDownSIcon:d=Nu,sparklingIcon:p=Cu},g){const h={...fu,...o},w=xu({questions:t,resetKey:s,ref:g}),{currentQuestionIndex:u,setCurrentQuestionIndex:m,answers:f,setAnswers:k,customInputs:y,setCustomInputs:v,focusedOptionIndex:C,setFocusedOptionIndex:j,isSubmitting:A,setIsSubmitting:R,maxQuestionHeight:I,scrollContainerRef:E,questionRefs:z,shouldScrollToQuestionRef:L,customInputRefs:M,getSelectedOptionIndex:V}=w,O=t[u],Z=O?.options||[],U=t.every(D=>(f[D.question]||[]).length>0||(y[D.question]?.trim()||"").length>0),ee=(f[O?.question]||[]).length>0||(y[O?.question]?.trim()||"").length>0,T=x.useCallback((D,W,K)=>{const oe=t[K]?.multiSelect??!1,le=K===t.length-1,Re=(f[D]||[]).includes(W);k(pe=>{const dt=pe[D]||[];return oe?dt.includes(W)?{...pe,[D]:dt.filter(ni=>ni!==W)}:{...pe,[D]:[...dt,W]}:dt.includes(W)?{...pe,[D]:[]}:{...pe,[D]:[W]}}),oe||v(pe=>({...pe,[D]:""})),!oe&&!le&&!Re&&setTimeout(()=>{const pe=K+1;L.current=!0,m(pe),j(V(pe))},150)},[t,f,k,v,m,j,V,L]),$=x.useCallback(()=>{if(u>0){const D=u-1;L.current=!0,m(D),j(V(D))}},[u,m,j,V,L]),Y=x.useCallback(()=>{if(u<t.length-1){const D=u+1;L.current=!0,m(D),j(V(D))}},[u,t.length,m,j,V,L]),Q=x.useCallback(()=>{if(!A)if(U){R(!0);const D={};for(const W of t){const K=f[W.question]||[],B=y[W.question]?.trim(),oe=[];K.length>0&&oe.push(...K),B&&oe.push(B),D[W.question]=oe.join(", ")}a(D)}else{const D=B=>(f[B.question]||[]).length===0&&(y[B.question]?.trim()||"").length===0,W=t.length;let K=-1;for(let B=1;B<W;B++){const oe=(u+B)%W;if(D(t[oe])){K=oe;break}}K>=0&&(L.current=!0,m(K),j(V(K)))}},[A,U,t,f,y,u,a,R,m,j,V,L]),X=x.useCallback(()=>{if(A)return;R(!0);const D={};for(const W of t){const K=f[W.question]||[],B=y[W.question]?.trim();if(K.length>0||!!B){const le=[];K.length>0&&le.push(...K),B&&le.push(B),D[W.question]=le.join(", ")}else D[W.question]=gu}a(D),r()},[A,t,f,y,a,r,R]),q=x.useCallback(()=>{if(A)return;const D={};for(const W of t){const K=W.options?.[0];K&&(D[W.question]=[K.label])}k(D),v({}),L.current=!0,m(t.length-1),j(0),setTimeout(()=>{E.current&&E.current.scrollTo({top:E.current.scrollHeight,behavior:"smooth"})},50)},[A,t,k,v,m,j,L,E]);return yu({isSubmitting:A,currentQuestion:O,currentOptions:Z,currentQuestionIndex:u,questions:t,focusedOptionIndex:C,setFocusedOptionIndex:j,currentQuestionHasAnswer:ee,getSelectedOptionIndex:V,shouldScrollToQuestionRef:L,setCurrentQuestionIndex:m,handleOptionClick:T,handleContinue:Q}),t.length===0?null:n.jsxs(se.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:b("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[n.jsx(bu,{currentQuestion:O,questionsLength:t.length,labels:h,chat4Icon:l,arrowUpSIcon:c,arrowDownSIcon:d,currentQuestionIndex:u,onPrevious:$,onNext:Y}),n.jsx(ge,{ref:E,scrollbarVisibility:"auto",maxHeight:I||void 0,className:"scroll-smooth",children:n.jsx("div",{className:"space-y-4 px-3",children:t.map((D,W)=>n.jsx(vu,{question:D,qIndex:W,labels:h,answers:f,customInputs:y,focusedOptionIndex:C,isCurrentQuestion:W===u,isSubmitting:A,allQuestionsAnswered:U,questionsLength:t.length,questionRefs:z,customInputRefs:M,setCurrentQuestionIndex:m,setFocusedOptionIndex:j,setAnswers:k,setCustomInputs:v,getSelectedOptionIndex:V,shouldScrollToQuestionRef:L,onOptionClick:T,onContinue:Q},D.question))})}),n.jsx(ku,{labels:h,sparklingIcon:p,isSubmitting:A,hasCustomText:i,allQuestionsAnswered:U,onRecommend:q,onSkip:X,onContinue:Q})]})}));So.displayName="UserQuestion";const Io=x.forwardRef(function(t,s){const a=_("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=_("arrowUpS"),i=_("arrowDownS"),o=_("sparkling","w-4 h-4 mr-1");return n.jsx(So,{ref:s,chat4Icon:a,arrowUpSIcon:r,arrowDownSIcon:i,sparklingIcon:o,...t})});Io.displayName="UserQuestion";const Su={answer:"Answer",answers:"Answers"},Iu="w-4 h-4 shrink-0 text-text-tertiary",Eo=x.memo(function({answers:t,showHeader:s=!0,labels:a,className:r="",questionAnswerIcon:i}){const o={...Su,...a},l=Object.entries(t),c=i??n.jsx(Cl,{className:Iu});return l.length===0?null:n.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[s&&n.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[c,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:l.length===1?o.answer:o.answers})]}),n.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:l.map(([d,p],g)=>n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("span",{className:"font-medium text-text",children:d}),n.jsx("span",{className:"text-text-tertiary",children:p})]},g))})]})});Eo.displayName="UserQuestionAnswer";const Eu="w-4 h-4 shrink-0 text-text-tertiary",Ao=x.memo(function(t){const s=_("questionAnswer",Eu);return n.jsx(Eo,{questionAnswerIcon:s,...t})});Ao.displayName="UserQuestionAnswer";const Au={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},Ru="w-3.5 h-3.5",Tu="w-3.5 h-3.5",Lu="w-4 h-4 text-text-tertiary transition-transform duration-200",_u=x.memo(function({item:t,onRemove:s,onSendNow:a,labels:r,arrowUpIcon:i,closeIcon:o}){const l=x.useCallback(g=>{g.stopPropagation(),s?.(t.id)},[t.id,s]),c=x.useCallback(g=>{g.stopPropagation(),a?.(t.id)},[t.id,a]),d=t.attachmentCount??0,p=d===1?r.fileLabel:r.filesLabel;return n.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs leading-xs hover:bg-fill-tertiary transition-colors cursor-default",children:[n.jsx("span",{className:"truncate flex-1 text-text",children:t.label}),d>0&&n.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",d," ",p]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[a&&n.jsx(Ke,{content:r.sendNowTip,side:"top",children:n.jsx(be,{size:"sm",variant:"ghost",icon:i,"aria-label":r.sendNowTip,className:"shrink-0",onClick:c})}),s&&n.jsx(Ke,{content:r.removeTip,side:"top",children:n.jsx(be,{size:"sm",variant:"ghost",icon:o,"aria-label":r.removeTip,className:"shrink-0",onClick:l})})]})]})}),Ro=x.memo(function({items:t,onRemoveItem:s,onSendNow:a,isStreaming:r=!1,hasStatusCardBelow:i=!1,labels:o,defaultExpanded:l=!0,storageKey:c,arrowUpIcon:d,closeIcon:p,arrowDownSIcon:g}){const h={...Au,...o},w=d??n.jsx(sn,{className:Ru}),u=p??n.jsx(Ie,{className:Tu}),m=g??n.jsx(ve,{className:Lu}),[f,k]=x.useState(()=>{if(typeof window>"u")return l;if(c){const v=localStorage.getItem(c);return v!==null?v==="true":l}return l});if(x.useEffect(()=>{c&&localStorage.setItem(c,String(f))},[c,f]),t.length===0)return null;const y=b("w-full overflow-hidden flex flex-col","border border-b-0 border-border border-border-tertiary bg-bg-base",!i&&"rounded-t-xl");return n.jsxs(se.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:y,children:[n.jsx("div",{role:"button",tabIndex:0,onClick:()=>k(!f),onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),k(!f))},"aria-expanded":f,"aria-label":`${f?"Collapse":"Expand"} queue`,className:"flex items-center justify-between px-3 py-1 h-7 cursor-pointer bg-fill-tertiary hover:bg-fill-secondary transition-colors duration-150 focus:outline-none",children:n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:b("inline-flex items-center justify-center",!f&&"-rotate-90"),children:m}),n.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:h.title})]})}),n.jsx(se.AnimatePresence,{initial:!1,children:f&&n.jsx(se.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.23,1,.32,1]},className:"overflow-hidden",children:n.jsx(ge,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(v=>n.jsx(_u,{item:v,onRemove:s,onSendNow:a,labels:h,arrowUpIcon:w,closeIcon:u},v.id))})})})]})});Ro.displayName="QueueIndicator";const Pu="w-3.5 h-3.5",Fu="w-3.5 h-3.5",zu="w-4 h-4 text-text-tertiary transition-transform duration-200",To=x.memo(function(t){const s=_("arrowUp",Pu),a=_("close",Fu),r=_("arrowDownS",zu);return n.jsx(Ro,{arrowUpIcon:s,closeIcon:a,arrowDownSIcon:r,...t})});To.displayName="QueueIndicator";const ls="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Du="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",Yt={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},cs={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},ht={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"};function Lo(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&ht[r]&&(s=ht[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();ht[a]?s=ht[a]:Yt[a]&&(s=a)}return s||"default"}function Mu(e,t){const s=Lo(e,t);return Yt[s]??Yt.default}function Ou(e,t){const s=Lo(e,t);return cs[s]??cs.default}function _o({files:e=[],defaultExpanded:t=!0,className:s,headerIcon:a,acceptIcon:r,rejectIcon:i,getFileIcon:o}){const[l,c]=x.useState(null),d=n.jsx(ta,{className:b(ls,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",g=n.jsx(je,{className:p}),h=n.jsx(Ie,{className:p}),w="flex items-center justify-center shrink-0 rounded cursor-pointer transition-colors duration-200 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-primary";return n.jsx(ke,{headerIcon:a??d,headerTitle:n.jsxs("span",{className:"font-normal",children:[e.length," ",e.length===1?"File":"Files"]}),headerRight:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(te,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Undo All"}),n.jsx(te,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Keep All"}),n.jsx(te,{variant:"secondary",size:"sm",onClick:u=>u.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:s,children:n.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((u,m)=>{const f=l===m,k=u.additions!=null&&Number.isFinite(u.additions)?u.additions:null,y=u.deletions!=null&&Number.isFinite(u.deletions)?u.deletions:null;return n.jsxs("div",{className:b("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",f?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>c(m),onMouseLeave:()=>c(null),children:[o?n.jsx("span",{className:b("shrink-0",ls),children:o(u.fileType,u.filename)}):n.jsx("span",{className:b("shrink-0",Du),style:{color:Ou(u.fileType,u.filename)},"aria-hidden":!0,children:Mu(u.fileType,u.filename)}),n.jsx("span",{className:b("flex-1 text-xs font-medium truncate pr-12",f?"text-text":"text-text-tertiary"),children:u.filename}),n.jsxs("div",{className:b("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",f?"opacity-0 pointer-events-none":"opacity-100"),children:[k!=null&&n.jsxs("span",{className:"text-success",children:["+",k]}),y!=null&&n.jsxs("span",{className:"text-error",children:["-",y]})]}),n.jsxs("div",{className:b("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",f?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:v=>v.stopPropagation(),children:[n.jsx("button",{type:"button",className:b(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Reject","aria-label":"Reject",onClick:v=>v.stopPropagation(),children:i??h}),n.jsx("button",{type:"button",className:b(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Accept","aria-label":"Accept",onClick:v=>v.stopPropagation(),children:r??g})]})]},m)})})})}_o.displayName="FileReviewPart";const ds="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",yt="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Po(e){const t=_("requestChanges",ds)??n.jsx(ta,{className:ds}),s=_("checkLine",yt)??n.jsx(je,{className:yt}),a=_("close",yt)??n.jsx(Ie,{className:yt}),r=e.getFileIcon;return n.jsx(_o,{headerIcon:t,acceptIcon:s,rejectIcon:a,getFileIcon:r,...e})}Po.displayName="FileReviewPart";const ct="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",$u=n.jsx(na,{className:b(ct,"text-text-secondary")}),Bu=n.jsx(sa,{className:b(ct,"text-text-tertiary")}),Gu=n.jsx(Rt,{className:b(ct,"text-text-quaternary")}),Hu=n.jsx(aa,{className:b(ct,"text-text-tertiary")}),Vu=n.jsx(ra,{className:b(ct,"text-text")});function Uu(e,t,s){return t?s.loaderIcon??Vu:e.status==="completed"?s.completedIcon??Gu:e.status==="skipped"||e.status==="cancelled"?s.skippedIcon??Hu:s.uncompletedIcon??Bu}function Fo({tasks:e=[],title:t="To-dos",currentTaskId:s,defaultExpanded:a=!0,className:r,headerIcon:i,uncompletedIcon:o,completedIcon:l,skippedIcon:c,loaderIcon:d}){return n.jsx(ke,{headerIcon:i??$u,headerTitle:n.jsx("span",{className:"text-left",children:t}),defaultExpanded:a,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",showExpandAllBar:!0,maxHeight:124,className:r,children:n.jsx("div",{className:"flex flex-col gap-2",children:e.map((p,g)=>{const h=p.id??g,w=s!=null&&s===String(h),u=Uu(p,w,{loaderIcon:d,completedIcon:l,skippedIcon:c,uncompletedIcon:o});return n.jsxs("div",{className:"flex flex-row gap-2 items-start",children:[n.jsx("div",{className:"flex items-center justify-center shrink-0 pt-0.5 [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:u}),n.jsx("span",{className:b("text-xs leading-xs flex-1 text-left",w?"text-text":p.status==="completed"?"text-text-quaternary line-through":"text-text-tertiary"),children:p.text})]},h)})})})}Fo.displayName="TaskPart";const zt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",us=`${zt} text-text-secondary`,bt=`${zt} text-text-tertiary`,ps=`${zt} text-text-quaternary`,ms=`${zt} text-text`;function zo(e){const t=_("catalog",us)??n.jsx(na,{className:us}),s=_("circle",bt)??n.jsx(sa,{className:bt}),a=_("checkboxCircle",ps)??n.jsx(Rt,{className:ps}),r=_("indeterminateCircle",bt)??n.jsx(aa,{className:bt}),i=_("arrowRightCircleFill",ms)??n.jsx(ra,{className:ms});return n.jsx(Fo,{headerIcon:t,uncompletedIcon:s,completedIcon:a,skippedIcon:r,loaderIcon:i,...e})}zo.displayName="TaskPart";const Dn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",qu=n.jsx(Tt,{className:`${Dn} text-text-secondary`}),Wu=n.jsx(oa,{className:Dn}),Zu=n.jsx(je,{className:b(Dn,"text-success")});function Do({title:e="Plan",description:t,content:s,viewText:a="View",buildText:r="Build ⌘⏎",builtText:i="Built",isBuilt:o=!1,isGenerating:l=!1,onView:c,onBuild:d,onDownload:p,defaultExpanded:g=!0,contentMaxHeight:h,collapsible:w=!1,className:u,headerIcon:m,downloadIcon:f,builtIcon:k}){const y=s.split(`
252
+ `),v=y.length>1&&y[1].trim()==="",C=v?y[0]:null,j=v?y.slice(2).join(`
253
+ `):s;return n.jsx(ke,{headerIcon:m??qu,headerTitle:n.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:l?n.jsx("span",{className:"text-left",children:"Planning..."}):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-left",children:e}),t!=null&&n.jsx("span",{className:"text-left flex-1 truncate text-text-quaternary",children:t})]})}),titleShimmer:l,headerRight:!l&&p?n.jsx(be,{variant:"iconOnly",size:"sm",icon:f??Wu,onClick:A=>{A.stopPropagation(),p?.()},title:"Download as Markdown","aria-label":"Download",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:g,contentMaxHeight:h,collapsible:w,footer:l?void 0:n.jsxs(n.Fragment,{children:[n.jsx(te,{variant:"text",size:"sm",onClick:c,children:a}),n.jsx("div",{className:"flex-1"}),o?n.jsxs("div",{className:"flex items-center gap-1 text-xs text-success [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:[n.jsx("span",{children:i}),k??Zu]}):n.jsx(te,{variant:"secondary",size:"sm",onClick:d,children:r})]}),className:u,children:l?n.jsxs("div",{className:"flex flex-col gap-1 relative overflow-hidden min-h-[var(--spacing-14)]",children:[n.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",opacity:.25}}),n.jsx("div",{className:"absolute inset-0 pointer-events-none plan-part-shimmer-layer",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",maskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",maskSize:"100% 64px",WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",WebkitMaskSize:"100% 64px"}}),n.jsx("style",{children:`
254
+ @keyframes plan-part-shimmer {
255
+ 0% { mask-position: 0 -64px; -webkit-mask-position: 0 -64px; }
256
+ 100% { mask-position: 0 calc(100% + 64px); -webkit-mask-position: 0 calc(100% + 64px); }
257
+ }
258
+ .plan-part-shimmer-layer {
259
+ animation: plan-part-shimmer 3s linear infinite;
260
+ }
261
+ `})]}):n.jsxs("div",{className:"flex flex-col gap-1",children:[C!=null&&n.jsx("div",{className:"text-sm font-medium text-text",children:C}),j!=null&&j!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:j})]})})}Do.displayName="PlanPart";const It="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",fs=`${It} text-text-secondary`,gs=`${It} text-success`;function Mo(e){const t=_("fileList2",fs)??n.jsx(Tt,{className:fs}),s=_("download",It)??n.jsx(oa,{className:It}),a=_("checkLine",gs)??n.jsx(je,{className:gs});return n.jsx(Do,{headerIcon:t,downloadIcon:s,builtIcon:a,...e})}Mo.displayName="PlanPart";function Yu(e){const t=(e||"neutral").toLowerCase();return t==="soft"?"12px":t==="sharp"?"0":t==="dense"?"4px":"6px"}function Ku(){return typeof document>"u"?"neutral":document.documentElement.getAttribute("data-style")||document.body?.getAttribute("data-style")||"neutral"}function Qu(e,t,s){const[a,r]=x.useState(""),[i,o]=x.useState(""),l=s??Ku(),c=Yu(l);return x.useEffect(()=>{let d=!1;return(async()=>{if(o(""),r(""),!!e)try{const g=await Promise.resolve().then(()=>require("./mermaid.core-DBwAx_jp.cjs")).then(f=>f.mermaid_core),h=g?.default??g,w=[`.node rect { rx: ${c}; ry: ${c}; }`,`.cluster rect { rx: ${c}; ry: ${c}; }`,`.label rect { rx: ${c}; ry: ${c}; }`,`.edgeLabel rect { rx: ${c}; ry: ${c}; }`,".node polygon { stroke-linejoin: round; stroke-linecap: round; }",".node path { stroke-linejoin: round; stroke-linecap: round; }",".cluster polygon { stroke-linejoin: round; stroke-linecap: round; }",".cluster path { stroke-linejoin: round; stroke-linecap: round; }"].join(`
262
+ `);h.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:w});const u=`mermaid-${t.replace(/:/g,"")}`,{svg:m}=await h.render(u,e);d||r(m??"")}catch(g){d||o(g?.message??"Failed to render mermaid.")}})(),()=>{d=!0}},[t,e,c]),{svg:a,error:i}}const Xu="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Ju=n.jsx(Tt,{className:Xu});function Oo({content:e="",className:t,headerIcon:s,dataStyle:a}){const r=x.useId(),i=x.useMemo(()=>(e??"").trim(),[e]),{svg:o,error:l}=Qu(i,r,a),[c,d]=x.useState(1),p=x.useRef(null);x.useEffect(()=>{if(!o||l||!p.current)return;const u=p.current,m=f=>{if(f.ctrlKey||f.metaKey){f.preventDefault();const k=f.deltaY>0?-.1:.1;d(y=>Math.max(.5,Math.min(3,Math.round((y+k)*10)/10)))}};return u.addEventListener("wheel",m,{passive:!1}),()=>u.removeEventListener("wheel",m)},[o,l]);const g=()=>d(u=>Math.min(3,Math.round((u+.1)*10)/10)),h=()=>d(u=>Math.max(.5,Math.round((u-.1)*10)/10)),w=()=>d(1);return n.jsx(ke,{headerIcon:s??Ju,headerTitle:n.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:o&&!l?n.jsxs("div",{className:"flex items-center gap-1",onClick:u=>u.stopPropagation(),children:[n.jsx(te,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),h()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),n.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(c*100),"%"]}),n.jsx(te,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),w()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),n.jsx(te,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),g()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom in",children:"+"})]}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",className:t,children:i?l?n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),n.jsx("div",{className:"text-xs text-text-tertiary",children:l}),n.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:i})]}):n.jsx("div",{className:"relative",ref:p,children:n.jsx(ge,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:n.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${c})`,transformOrigin:"center top",minHeight:c>1?"100%":"auto"},children:n.jsx("div",{dangerouslySetInnerHTML:{__html:o}})})})}):n.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}Oo.displayName="MermaidPart";const xs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function $o(e){const t=_("fileList2",xs)??n.jsx(Tt,{className:xs}),{style:s}=fe();return n.jsx(Oo,{headerIcon:t,dataStyle:s,...e})}$o.displayName="MermaidPart";var ep=Object.create,Dt=Object.defineProperty,tp=Object.defineProperties,np=Object.getOwnPropertyDescriptor,sp=Object.getOwnPropertyDescriptors,Bo=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,ap=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable,hs=(e,t,s)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ye=(e,t)=>{for(var s in t||(t={}))Mn.call(t,s)&&hs(e,s,t[s]);if(Et)for(var s of Et(t))Go.call(t,s)&&hs(e,s,t[s]);return e},Mt=(e,t)=>tp(e,sp(t)),Ho=(e,t)=>{var s={};for(var a in e)Mn.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&Et)for(var a of Et(e))t.indexOf(a)<0&&Go.call(e,a)&&(s[a]=e[a]);return s},rp=(e,t)=>function(){return t||(0,e[Bo(e)[0]])((t={exports:{}}).exports,t),t.exports},op=(e,t)=>{for(var s in t)Dt(e,s,{get:t[s],enumerable:!0})},ip=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Bo(t))!Mn.call(e,r)&&r!==s&&Dt(e,r,{get:()=>t[r],enumerable:!(a=np(t,r))||a.enumerable});return e},lp=(e,t,s)=>(s=e!=null?ep(ap(e)):{},ip(!e||!e.__esModule?Dt(s,"default",{value:e,enumerable:!0}):s,e)),cp=rp({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var s=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,i={},o={util:{encode:function u(m){return m instanceof l?new l(m.type,u(m.content),m.alias):Array.isArray(m)?m.map(u):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++r}),u.__id},clone:function u(m,f){f=f||{};var k,y;switch(o.util.type(m)){case"Object":if(y=o.util.objId(m),f[y])return f[y];k={},f[y]=k;for(var v in m)m.hasOwnProperty(v)&&(k[v]=u(m[v],f));return k;case"Array":return y=o.util.objId(m),f[y]?f[y]:(k=[],f[y]=k,m.forEach(function(C,j){k[j]=u(C,f)}),k);default:return m}},getLanguage:function(u){for(;u;){var m=a.exec(u.className);if(m)return m[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,m){u.className=u.className.replace(RegExp(a,"gi"),""),u.classList.add("language-"+m)},isActive:function(u,m,f){for(var k="no-"+m;u;){var y=u.classList;if(y.contains(m))return!0;if(y.contains(k))return!1;u=u.parentElement}return!!f}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(u,m){var f=o.util.clone(o.languages[u]);for(var k in m)f[k]=m[k];return f},insertBefore:function(u,m,f,k){k=k||o.languages;var y=k[u],v={};for(var C in y)if(y.hasOwnProperty(C)){if(C==m)for(var j in f)f.hasOwnProperty(j)&&(v[j]=f[j]);f.hasOwnProperty(C)||(v[C]=y[C])}var A=k[u];return k[u]=v,o.languages.DFS(o.languages,function(R,I){I===A&&R!=u&&(this[R]=v)}),v},DFS:function u(m,f,k,y){y=y||{};var v=o.util.objId;for(var C in m)if(m.hasOwnProperty(C)){f.call(m,C,m[C],k||C);var j=m[C],A=o.util.type(j);A==="Object"&&!y[v(j)]?(y[v(j)]=!0,u(j,f,null,y)):A==="Array"&&!y[v(j)]&&(y[v(j)]=!0,u(j,f,C,y))}}},plugins:{},highlight:function(u,m,f){var k={code:u,grammar:m,language:f};if(o.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=o.tokenize(k.code,k.grammar),o.hooks.run("after-tokenize",k),l.stringify(o.util.encode(k.tokens),k.language)},tokenize:function(u,m){var f=m.rest;if(f){for(var k in f)m[k]=f[k];delete m.rest}var y=new p;return g(y,y.head,u),d(u,y,m,y.head,0),w(y)},hooks:{all:{},add:function(u,m){var f=o.hooks.all;f[u]=f[u]||[],f[u].push(m)},run:function(u,m){var f=o.hooks.all[u];if(!(!f||!f.length))for(var k=0,y;y=f[k++];)y(m)}},Token:l};function l(u,m,f,k){this.type=u,this.content=m,this.alias=f,this.length=(k||"").length|0}l.stringify=function u(m,f){if(typeof m=="string")return m;if(Array.isArray(m)){var k="";return m.forEach(function(A){k+=u(A,f)}),k}var y={type:m.type,content:u(m.content,f),tag:"span",classes:["token",m.type],attributes:{},language:f},v=m.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(y.classes,v):y.classes.push(v)),o.hooks.run("wrap",y);var C="";for(var j in y.attributes)C+=" "+j+'="'+(y.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+C+">"+y.content+"</"+y.tag+">"};function c(u,m,f,k){u.lastIndex=m;var y=u.exec(f);if(y&&k&&y[1]){var v=y[1].length;y.index+=v,y[0]=y[0].slice(v)}return y}function d(u,m,f,k,y,v){for(var C in f)if(!(!f.hasOwnProperty(C)||!f[C])){var j=f[C];j=Array.isArray(j)?j:[j];for(var A=0;A<j.length;++A){if(v&&v.cause==C+","+A)return;var R=j[A],I=R.inside,E=!!R.lookbehind,z=!!R.greedy,L=R.alias;if(z&&!R.pattern.global){var M=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,M+"g")}for(var V=R.pattern||R,O=k.next,Z=y;O!==m.tail&&!(v&&Z>=v.reach);Z+=O.value.length,O=O.next){var U=O.value;if(m.length>u.length)return;if(!(U instanceof l)){var ee=1,T;if(z){if(T=c(V,Z,u,E),!T||T.index>=u.length)break;var X=T.index,$=T.index+T[0].length,Y=Z;for(Y+=O.value.length;X>=Y;)O=O.next,Y+=O.value.length;if(Y-=O.value.length,Z=Y,O.value instanceof l)continue;for(var Q=O;Q!==m.tail&&(Y<$||typeof Q.value=="string");Q=Q.next)ee++,Y+=Q.value.length;ee--,U=u.slice(Z,Y),T.index-=Z}else if(T=c(V,0,U,E),!T)continue;var X=T.index,q=T[0],D=U.slice(0,X),W=U.slice(X+q.length),K=Z+U.length;v&&K>v.reach&&(v.reach=K);var B=O.prev;D&&(B=g(m,B,D),Z+=D.length),h(m,B,ee);var oe=new l(C,I?o.tokenize(q,I):q,L,q);if(O=g(m,B,oe),W&&g(m,O,W),ee>1){var le={cause:C+","+A,reach:K};d(u,m,f,O.prev,Z,le),v&&le.reach>v.reach&&(v.reach=le.reach)}}}}}}function p(){var u={value:null,prev:null,next:null},m={value:null,prev:u,next:null};u.next=m,this.head=u,this.tail=m,this.length=0}function g(u,m,f){var k=m.next,y={value:f,prev:m,next:k};return m.next=y,k.prev=y,u.length++,y}function h(u,m,f){for(var k=m.next,y=0;y<f&&k!==u.tail;y++)k=k.next;m.next=k,k.prev=m,u.length-=y}function w(u){for(var m=[],f=u.head.next;f!==u.tail;)m.push(f.value),f=f.next;return m}return o})();t.exports=s,s.default=s}}),S=lp(cp());S.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},S.languages.markup.tag.inside["attr-value"].inside.entity=S.languages.markup.entity,S.languages.markup.doctype.inside["internal-subset"].inside=S.languages.markup,S.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(S.languages.markup.tag,"addInlined",{value:function(e,a){var s={},s=(s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:S.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}}),a=(s["language-"+a]={pattern:/[\s\S]+/,inside:S.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},S.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(S.languages.markup.tag,"addAttribute",{value:function(e,t){S.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:S.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),S.languages.html=S.languages.markup,S.languages.mathml=S.languages.markup,S.languages.svg=S.languages.markup,S.languages.xml=S.languages.extend("markup",{}),S.languages.ssml=S.languages.xml,S.languages.atom=S.languages.xml,S.languages.rss=S.languages.xml,(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+s.source+")",a=RegExp(a+"-"+a),r={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":r}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":r}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(S),S.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},S.languages.javascript=S.languages.extend("clike",{"class-name":[S.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),S.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,S.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:S.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:S.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:S.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:S.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:S.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),S.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:S.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),S.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),S.languages.markup&&(S.languages.markup.tag.addInlined("script","javascript"),S.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),S.languages.js=S.languages.javascript,S.languages.actionscript=S.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),S.languages.actionscript["class-name"].alias="function",delete S.languages.actionscript.parameter,delete S.languages.actionscript["literal-property"],S.languages.markup&&S.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:S.languages.markup}}),(function(e){var t=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:s}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(S),(function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(s,a){(s=typeof s=="string"?[s]:s).forEach(function(r){var i=function(g){g.inside||(g.inside={}),g.inside.rest=a},o="doc-comment";if(l=e.languages[r]){var l,c=l[o];if((c=c||(l=e.languages.insertBefore(r,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(c=l[o]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d<p;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),i(c[d]);else i(c)}})}}),t.addSupport(["java","javascript","php"],t)})(S),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(S),(function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:s})})(S),(function(e){var t=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+s.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+s.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(S),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,o=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||(function p(g){if(g&&typeof g!="string")for(var h=0,w=g.length;h<w;h++){var u,m=g[h];m.type!=="code"?p(m.content):(u=m.content[1],m=m.content[3],u&&m&&u.type==="code-language"&&m.type==="code-block"&&typeof u.content=="string"&&(u=u.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase()),m.alias?typeof m.alias=="string"?m.alias=[m.alias,u]:m.alias.push(u):m.alias=[u]))}})(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",g=0,h=d.classes.length;g<h;g++){var w=d.classes[g],w=/language-(.+)/.exec(w);if(w){p=w[1];break}}var u,m=e.languages[p];m?d.content=e.highlight((function(f){return f=f.replace(o,""),f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(k,y){var v;return(y=y.toLowerCase())[0]==="#"?(v=y[1]==="x"?parseInt(y.slice(2),16):Number(y.slice(1)),c(v)):l[y]||k})})(d.content),m,p):p&&p!=="none"&&e.plugins.autoloader&&(u="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),d.attributes.id=u,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(u);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(S),S.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:S.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},S.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(u){return typeof u!="string"&&u.type!=="comment"&&u.type!=="scalar"}),s=0;s<t.length;){var a=t[s++];if(a.type==="keyword"&&a.content==="mutation"){var r=[];if(g(["definition-mutation","punctuation"])&&p(1).content==="("){s+=2;var i=h(/^\($/,/^\)$/);if(i===-1)continue;for(;s<i;s++){var o=p(0);o.type==="variable"&&(w(o,"variable-input"),r.push(o.content))}s=i+1}if(g(["punctuation","property-query"])&&p(0).content==="{"&&(s++,w(p(0),"property-mutation"),0<r.length)){var l=h(/^\{$/,/^\}$/);if(l!==-1)for(var c=s;c<l;c++){var d=t[c];d.type==="variable"&&0<=r.indexOf(d.content)&&w(d,"variable-input")}}}}function p(u){return t[s+u]}function g(u,m){m=m||0;for(var f=0;f<u.length;f++){var k=p(f+m);if(!k||k.type!==u[f])return}return 1}function h(u,m){for(var f=1,k=s;k<t.length;k++){var y=t[k],v=y.content;if(y.type==="punctuation"&&typeof v=="string"){if(u.test(v))f++;else if(m.test(v)&&--f===0)return k}}return-1}function w(u,m){var f=u.alias;f?Array.isArray(f)||(u.alias=f=[f]):u.alias=f=[],f.push(m)}}),S.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.javascript["template-string"],s=t.pattern.source,a=t.inside.interpolation,r=a.inside["interpolation-punctuation"],i=a.pattern.source;function o(g,h){if(e.languages[g])return{pattern:RegExp("((?:"+h+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function l(g,h,w){return g={code:g,grammar:h,language:w},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function c(g,h,w){var f=e.tokenize(g,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),u=0,m={},f=l(f.map(function(y){if(typeof y=="string")return y;for(var v,C,y=y.content;g.indexOf((C=u++,v="___"+w.toUpperCase()+"_"+C+"___"))!==-1;);return m[v]=y,v}).join(""),h,w),k=Object.keys(m);return u=0,(function y(v){for(var C=0;C<v.length;C++){if(u>=k.length)return;var j,A,R,I,E,z,L,M=v[C];typeof M=="string"||typeof M.content=="string"?(j=k[u],(L=(z=typeof M=="string"?M:M.content).indexOf(j))!==-1&&(++u,A=z.substring(0,L),E=m[j],R=void 0,(I={})["interpolation-punctuation"]=r,(I=e.tokenize(E,I)).length===3&&((R=[1,1]).push.apply(R,l(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,R)),R=new e.Token("interpolation",I,a.alias,E),I=z.substring(L+j.length),E=[],A&&E.push(A),E.push(R),I&&(y(z=[I]),E.push.apply(E,z)),typeof M=="string"?(v.splice.apply(v,[C,1].concat(E)),C+=E.length-1):M.content=E)):(L=M.content,Array.isArray(L)?y(L):y([L]))}})(f),new e.Token(w,f,"language-"+w,g)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(g){return typeof g=="string"?g:Array.isArray(g)?g.map(p).join(""):p(g.content)}e.hooks.add("after-tokenize",function(g){g.language in d&&(function h(w){for(var u=0,m=w.length;u<m;u++){var f,k,y,v=w[u];typeof v!="string"&&(f=v.content,Array.isArray(f)?v.type==="template-string"?(v=f[1],f.length===3&&typeof v!="string"&&v.type==="embedded-code"&&(k=p(v),v=v.alias,v=Array.isArray(v)?v[0]:v,y=e.languages[v])&&(f[1]=c(k,y,v))):h(f):typeof f!="string"&&h([f]))}})(g.tokens)})})(S),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(S),(function(e){var t=e.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(S),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(S),S.languages.n4js=S.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),S.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),S.languages.n4jsd=S.languages.n4js,(function(e){function t(o,l){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],a=0;a<s.length;a++){var i=s[a],r=e.languages.javascript[i],i=(r=e.util.type(r)==="RegExp"?e.languages.javascript[i]={pattern:r}:r).inside||{};(r.inside=i)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(S),(function(e){var t=e.util.clone(e.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(c,d){return c=c.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return r}),RegExp(c,d)}r=i(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function o(c){for(var d=[],p=0;p<c.length;p++){var g=c[p],h=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<d.length&&d[d.length-1].tagName===l(g.content[0].content[1])&&d.pop():g.content[g.content.length-1].content!=="/>"&&d.push({tagName:l(g.content[0].content[1]),openedBraces:0}):0<d.length&&g.type==="punctuation"&&g.content==="{"?d[d.length-1].openedBraces++:0<d.length&&0<d[d.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?d[d.length-1].openedBraces--:h=!0),(h||typeof g=="string")&&0<d.length&&d[d.length-1].openedBraces===0&&(h=l(g),p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(h+=l(c[p+1]),c.splice(p+1,1)),0<p&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(h=l(c[p-1])+h,c.splice(p-1,1),p--),c[p]=new e.Token("plain-text",h,null,h)),g.content&&typeof g.content!="string"&&o(g.content)}}var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""};e.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||o(c.tokens)})})(S),(function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(S),S.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},S.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=S.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(S),S.languages.c=S.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),S.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),S.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},S.languages.c.string],char:S.languages.c.char,comment:S.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:S.languages.c}}}}),S.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete S.languages.c.boolean,S.languages.objectivec=S.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete S.languages.objectivec["class-name"],S.languages.objc=S.languages.objectivec,S.languages.reason=S.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),S.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete S.languages.reason.function,(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(S),S.languages.go=S.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),S.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete S.languages.go["class-name"],(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(S),S.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},S.languages.python["string-interpolation"].inside.interpolation.inside.rest=S.languages.python,S.languages.py=S.languages.python,S.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},S.languages.webmanifest=S.languages.json;var dp={};op(dp,{dracula:()=>pp,duotoneDark:()=>fp,duotoneLight:()=>xp,github:()=>yp,gruvboxMaterialDark:()=>Wp,gruvboxMaterialLight:()=>Yp,jettwaveDark:()=>Op,jettwaveLight:()=>Bp,nightOwl:()=>vp,nightOwlLight:()=>wp,oceanicNext:()=>Np,okaidia:()=>Sp,oneDark:()=>Hp,oneLight:()=>Up,palenight:()=>Ep,shadesOfPurple:()=>Rp,synthwave84:()=>Lp,ultramin:()=>Pp,vsDark:()=>Vo,vsLight:()=>Dp});var up={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},pp=up,mp={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},fp=mp,gp={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},xp=gp,hp={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},yp=hp,bp={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},vp=bp,kp={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},wp=kp,me={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},jp={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:me.keyword}},{types:["attr-value"],style:{color:me.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:me.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:me.primitive}},{types:["boolean"],style:{color:me.boolean}},{types:["tag"],style:{color:me.tag}},{types:["string"],style:{color:me.string}},{types:["punctuation"],style:{color:me.string}},{types:["selector","char","builtin","inserted"],style:{color:me.char}},{types:["function"],style:{color:me.function}},{types:["operator","entity","url","variable"],style:{color:me.variable}},{types:["keyword"],style:{color:me.keyword}},{types:["atrule","class-name"],style:{color:me.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Np=jp,Cp={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Sp=Cp,Ip={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Ep=Ip,Ap={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Rp=Ap,Tp={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Lp=Tp,_p={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Pp=_p,Fp={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Vo=Fp,zp={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Dp=zp,Mp={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Op=Mp,$p={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Bp=$p,Gp={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Hp=Gp,Vp={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Up=Vp,qp={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},Wp=qp,Zp={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},Yp=Zp,Kp=e=>x.useCallback(t=>{var s=t,{className:a,style:r,line:i}=s,o=Ho(s,["className","style","line"]);const l=Mt(ye({},o),{className:xe("token-line",a)});return typeof e=="object"&&"plain"in e&&(l.style=e.plain),typeof r=="object"&&(l.style=ye(ye({},l.style||{}),r)),l},[e]),Qp=e=>{const t=x.useCallback(({types:s,empty:a})=>{if(e!=null){{if(s.length===1&&s[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(s.length===1&&a!=null)return e[s[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...s.map(r=>e[r]))}},[e]);return x.useCallback(s=>{var a=s,{token:r,className:i,style:o}=a,l=Ho(a,["token","className","style"]);const c=Mt(ye({},l),{className:xe("token",...r.types,i),children:r.content,style:t(r)});return o!=null&&(c.style=ye(ye({},c.style||{}),o)),c},[t])},Xp=/\r\n|\r|\n/,ys=e=>{e.length===0?e.push({types:["plain"],content:`
263
+ `,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
264
+ `,e[0].empty=!0)},bs=(e,t)=>{const s=e.length;return s>0&&e[s-1]===t?e:e.concat(t)},Jp=e=>{const t=[[]],s=[e],a=[0],r=[e.length];let i=0,o=0,l=[];const c=[l];for(;o>-1;){for(;(i=a[o]++)<r[o];){let d,p=t[o];const h=s[o][i];if(typeof h=="string"?(p=o>0?p:["plain"],d=h):(p=bs(p,h.type),h.alias&&(p=bs(p,h.alias)),d=h.content),typeof d!="string"){o++,t.push(p),s.push(d),a.push(0),r.push(d.length);continue}const w=d.split(Xp),u=w.length;l.push({types:p,content:w[0]});for(let m=1;m<u;m++)ys(l),c.push(l=[]),l.push({types:p,content:w[m]})}o--,t.pop(),s.pop(),a.pop(),r.pop()}return ys(l),c},vs=Jp,e0=({prism:e,code:t,grammar:s,language:a})=>x.useMemo(()=>{if(s==null)return vs([t]);const r={code:t,grammar:s,language:a,tokens:[]};return e.hooks.run("before-tokenize",r),r.tokens=e.tokenize(t,s),e.hooks.run("after-tokenize",r),vs(r.tokens)},[t,s,a,e]),t0=(e,t)=>{const{plain:s}=e,a=e.styles.reduce((r,i)=>{const{languages:o,style:l}=i;return o&&!o.includes(t)||i.types.forEach(c=>{const d=ye(ye({},r[c]),l);r[c]=d}),r},{});return a.root=s,a.plain=Mt(ye({},s),{backgroundColor:void 0}),a},n0=t0,s0=({children:e,language:t,code:s,theme:a,prism:r})=>{const i=t.toLowerCase(),o=n0(a,i),l=Kp(o),c=Qp(o),d=r.languages[i],p=e0({prism:r,language:i,code:s,grammar:d});return e({tokens:p,className:`prism-code language-${i}`,style:o!=null?o.root:{},getLineProps:l,getTokenProps:c})},a0=e=>x.createElement(s0,Mt(ye({},e),{prism:e.prism||S,theme:e.theme||Vo,code:e.code,language:e.language}));const At={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},Kt={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Ue={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"},Qt={javascript:"text-info",typescript:"text-info",react:"text-info",json:"text-info",html:"text-info",css:"text-info",python:"text-teal",java:"text-error",go:"text-info",rust:"text-text-tertiary",php:"text-text-tertiary",ruby:"text-error",vue:"text-success",svelte:"text-error",markdown:"text-text-secondary",yaml:"text-text-tertiary",xml:"text-text-tertiary",shell:"text-success",sass:"text-error",settings:"text-text-tertiary",default:"text-text-tertiary"};function Ot(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Ue[r]&&(s=Ue[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Ue[a]?s=Ue[a]:At[a]&&(s=a)}return s||"default"}function r0(e,t){const s=Ot(e,t);return At[s]??At.default}function o0(e,t){const s=Ot(e,t);return Kt[s]??Kt.default}function Uo(e,t){const s=Ot(e,t);return Qt[s]??Qt.default}const ks="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",i0={plain:{color:"var(--color-text)"},styles:[{types:["comment","prolog","cdata"],style:{color:"var(--color-text-tertiary)"}},{types:["keyword","atrule"],style:{color:"var(--color-blue)"}},{types:["string","attr-value","inserted"],style:{color:"var(--color-success)"}},{types:["number","constant","boolean"],style:{color:"var(--color-success)"}},{types:["function","function-variable"],style:{color:"var(--color-purple)"}},{types:["punctuation","operator","deleted"],style:{color:"var(--color-text-tertiary)"}},{types:["property","tag","selector"],style:{color:"var(--color-pink)"}},{types:["regex","important","variable"],style:{color:"var(--color-text)"}}]},l0={javascript:"js",typescript:"ts",jsx:"jsx",tsx:"tsx",python:"py",java:"java",go:"go",rust:"rs",html:"html",css:"css",json:"json",yaml:"yml",markdown:"md",shell:"sh",bash:"sh"};function c0(e,t){if(e&&e.trim())return e;const s=(t??"text").toLowerCase(),a=l0[s]??"txt";return`${s}.${a}`}function qo({language:e="javascript",code:t="",filename:s,diffType:a=null,diffLines:r=null,isGenerating:i=!1,defaultExpanded:o=!0,className:l,headerIcon:c,getFileIcon:d}){const p=x.useMemo(()=>c0(s,e),[s,e]),g=x.useMemo(()=>a&&t?t.split(`
265
+ `).length:r??null,[t,a,r]),h=e?.toLowerCase(),w=i?n.jsx(se.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:n.jsx(Zs,{className:b(ks,"text-text-secondary")})}):d?d(h,p):n.jsx("span",{className:b(Uo(h,p)),children:n.jsx(an,{className:ks})}),u=a&&g!=null?n.jsxs("span",{className:b("font-normal text-xs leading-xs",a==="add"?"text-success":"text-error"),children:[a==="add"?"+":"-",g]}):null,m=b("overflow-x-auto text-left scrollbar-auto",a==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",a==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),f=(e??"text").toLowerCase();return n.jsx(ke,{headerIcon:c??w,headerTitle:n.jsx("span",{className:"font-normal",children:p}),headerRight:u,defaultExpanded:o,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:i,className:l,children:n.jsx("div",{className:m,children:n.jsx(a0,{theme:i0,code:t,language:f,children:({className:k,style:y,tokens:v,getLineProps:C,getTokenProps:j})=>n.jsx("pre",{className:b(k,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:y,children:n.jsx("code",{className:"text-left block",children:v.map((A,R)=>n.jsx("div",{...C({line:A}),children:A.map((I,E)=>n.jsx("span",{...j({token:I})},E))},R))})})})})})}qo.displayName="CodeBlockPart";const d0="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function Wo(e){const{getFileIcon:t}=et(),s=e.getFileIcon??(t?(a,r)=>t(r??"",d0):void 0);return n.jsx(qo,{getFileIcon:s,...e})}Wo.displayName="CodeBlockPart";const Zo="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",u0=n.jsx(la,{className:Zo}),p0=n.jsx(ca,{className:Zo});function Yo({command:e,output:t,autoRanCommand:s,className:a,headerIcon:r,externalLinkIcon:i}){const o=s??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return n.jsx(ke,{headerIcon:r??u0,headerTitle:n.jsx("span",{className:"font-normal",children:o}),headerRight:n.jsx(be,{variant:"iconOnly",size:"sm",icon:i??p0,"aria-label":"Open in terminal",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}),contentPadding:"0",className:a,children:n.jsxs("div",{className:"flex flex-col gap-0",children:[e!=null&&e!==""&&n.jsx("div",{className:"px-2 py-1.5",children:n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx("span",{className:"font-mono text-xs text-text shrink-0",children:"$"}),n.jsx("pre",{className:"m-0 flex-1 overflow-x-auto text-left font-mono text-xs leading-xs whitespace-pre text-text bg-transparent scrollbar-auto",children:n.jsx("code",{children:e})})]})}),t!=null&&t!==""&&n.jsx("div",{className:"px-2 py-1.5 overflow-x-auto text-left scrollbar-auto",children:n.jsx("pre",{className:"m-0 p-0 font-mono text-xs leading-xs whitespace-pre-wrap break-all text-text-tertiary bg-transparent",children:t})})]})})}Yo.displayName="TerminalCodeBlockPart";const vt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Ko(e){const t=_("terminalBox",vt)??n.jsx(la,{className:vt}),s=_("externalLink",vt)??n.jsx(ca,{className:vt});return n.jsx(Yo,{headerIcon:t,externalLinkIcon:s,...e})}Ko.displayName="TerminalCodeBlockPart";const On="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",m0=n.jsx(da,{className:`${On} text-text-secondary`}),f0=n.jsx(Je,{className:`${On} text-warning`}),g0=n.jsx(ua,{className:`${On} text-text-secondary`});function x0({askValue:e,onAskChange:t,onSkip:s,onRun:a,dataStyle:r,dataTheme:i}){return n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("div",{className:"shrink-0 w-fit",children:n.jsxs(fr,{value:e,onValueChange:t,children:[n.jsx(jn,{className:"h-7 w-auto min-w-0 border-0 bg-transparent px-2 py-0 text-xs text-text-tertiary hover:text-text [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",onClick:o=>o.stopPropagation(),children:n.jsx(gr,{})}),n.jsxs(Sn,{dataStyle:r,dataTheme:i,onClick:o=>o.stopPropagation(),children:[n.jsx(Ze,{value:"Ask every time",children:"Ask every time"}),n.jsx(Ze,{value:"Always allow",children:"Always allow"}),n.jsx(Ze,{value:"Always deny",children:"Always deny"})]})]})}),n.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),n.jsx(te,{variant:"ghost",size:"sm",onClick:o=>{o.stopPropagation(),s()},children:"Skip ⌘⌫"}),n.jsx(te,{variant:"secondary",size:"sm",onClick:o=>{o.stopPropagation(),a()},children:"Run ⌘⏎"})]})}function Qo({description:e,content:t,status:s="normal",onRun:a,onSkip:r,onViewDetail:i,onAskEveryTimeChange:o,className:l,dataStyle:c,dataTheme:d,normalIcon:p,failedIcon:g,skippedIcon:h}){const[w,u]=x.useState("Ask every time"),m=C=>{u(C),o?.(C)},f=s==="failed"?g??f0:s==="skipped"?h??g0:p??m0,k=s==="failed"?n.jsx("span",{children:"Browser Failed"}):s==="skipped"?n.jsx("span",{children:"Browser Skipped"}):n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:"shrink-0",children:"Browser"}),e!=null&&n.jsx("span",{className:"flex-1 min-w-0 truncate text-text-tertiary",children:e})]}),y=s==="failed"?n.jsx(te,{variant:"text",size:"sm",onClick:C=>{C.stopPropagation(),i?.()},children:"View Detail"}):void 0,v=s==="normal"?n.jsx(x0,{askValue:w,onAskChange:m,onSkip:()=>r?.(),onRun:()=>a?.(),dataStyle:c,dataTheme:d}):void 0;return n.jsx(ke,{headerIcon:f,headerTitle:k,headerRight:y,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:s==="normal",collapsible:s==="normal",footer:v,className:l,children:t!=null&&t!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}Qo.displayName="BrowserUsePart";const $n="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",ws=`${$n} text-text-secondary`,js=`${$n} text-warning`,Ns=`${$n} text-text-secondary`;function Xo(e){const{style:t,theme:s}=fe(),a=_("global",ws)??n.jsx(da,{className:ws}),r=_("warning",js)??n.jsx(Je,{className:js}),i=_("forbid2",Ns)??n.jsx(ua,{className:Ns});return n.jsx(Qo,{normalIcon:a,failedIcon:r,skippedIcon:i,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??s,...e})}Xo.displayName="BrowserUsePart";const h0="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",y0=n.jsx(ia,{className:h0});function Jo({title:e="Initializing agent…",question:t,skipText:s="Skip ⌘⌫",runText:a="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:i,onRun:o,contentMaxHeight:l,collapsible:c=!0,className:d,headerIcon:p}){return n.jsx(ke,{headerIcon:p??y0,headerTitle:n.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:l,collapsible:c,footer:n.jsxs(n.Fragment,{children:[n.jsxs(te,{variant:"ghost",size:"sm",className:"gap-1 py-0.5 px-0 text-text-secondary hover:text-text",children:[n.jsx("span",{className:"text-xs",children:r}),n.jsx(ve,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),n.jsx("div",{className:"flex-1"}),n.jsx(te,{variant:"ghost",size:"sm",onClick:i,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:s}),n.jsx(te,{variant:"secondary",size:"sm",onClick:o,children:a})]}),className:d,children:n.jsx("div",{className:"text-sm text-left",children:n.jsx("span",{className:"text-text",children:t})})})}Jo.displayName="QuestionPart";const Cs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function ei(e){const t=_("questionnaire",Cs)??n.jsx(ia,{className:Cs});return n.jsx(Jo,{headerIcon:t,...e})}ei.displayName="QuestionPart";const ti=N.forwardRef(({className:e,value:t,max:s=100,...a},r)=>{const i=t!=null?Math.min(s,Math.max(0,t)):void 0;return n.jsx(Hn.Root,{ref:r,value:i??null,max:s,className:b("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...a,children:n.jsx(Hn.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:i!=null?`${i/s*100}%`:"0%"}})})});ti.displayName="Progress";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>Is.toast});exports.AlertDialog=ja;exports.AlertDialogAction=Ca;exports.AlertDialogCancel=gn;exports.AlertDialogContent=Sa;exports.AlertDialogDescription=fn;exports.AlertDialogFooter=pn;exports.AlertDialogHeader=un;exports.AlertDialogMedia=Ia;exports.AlertDialogOverlay=cn;exports.AlertDialogPortal=Na;exports.AlertDialogTitle=mn;exports.AlertDialogTrigger=Pl;exports.Avatar=rr;exports.AvatarBadge=lr;exports.AvatarFallback=ir;exports.AvatarGroup=cr;exports.AvatarGroupCount=dr;exports.AvatarImage=or;exports.BrowserUsePart=Xo;exports.Button=te;exports.ChatInput=Vc;exports.ChatInputAbove=tt;exports.ChatInputActions=at;exports.ChatInputActionsLeft=rt;exports.ChatInputActionsRight=$e;exports.ChatInputAttachments=Pt;exports.ChatInputBox=nt;exports.ChatInputExpandButton=Ft;exports.ChatInputFolderButton=ot;exports.ChatInputFooterLeft=lt;exports.ChatInputInput=st;exports.ChatInputMoreButton=it;exports.ChatInputRoot=Tn;exports.ChatInputSendButton=Ln;exports.CodeBlockPart=Wo;exports.Collapse=wr;exports.CollapseContent=Cr;exports.CollapseItem=jr;exports.CollapseTrigger=Nr;exports.Collapsible=yc;exports.CollapsibleCard=ke;exports.CollapsibleContent=qa;exports.CollapsibleSection=Oa;exports.CollapsibleTrigger=bc;exports.DropdownMenu=_e;exports.DropdownMenuCheckboxItem=ga;exports.DropdownMenuContent=ka;exports.DropdownMenuGroup=Sl;exports.DropdownMenuItem=he;exports.DropdownMenuLabel=ha;exports.DropdownMenuPortal=Il;exports.DropdownMenuRadioGroup=El;exports.DropdownMenuRadioItem=xa;exports.DropdownMenuSeparator=ya;exports.DropdownMenuShortcut=ba;exports.DropdownMenuSub=pa;exports.DropdownMenuSubContent=wa;exports.DropdownMenuSubTrigger=_l;exports.DropdownMenuTrigger=Pe;exports.EllipsisText=Us;exports.FILE_TYPE_MAP=Ue;exports.FileAttachment=fo;exports.FileCard=po;exports.FileReviewPart=Po;exports.FolderButton=Zr;exports.FunctionSwitch=$l;exports.GeneratedImagesGrid=Co;exports.GenerationStatusBar=An;exports.IconButton=be;exports.IconsProvider=Ll;exports.ImageAttachment=xo;exports.ImageGenerating=wo;exports.Kbd=Ea;exports.KbdGroup=Aa;exports.MOTION_DURATION=qe;exports.MOTION_EASE=We;exports.MOTION_SPRING=Ra;exports.MarkdownBody=Xe;exports.MermaidPart=$o;exports.OptionList=nn;exports.Pagination=$r;exports.PaginationContent=Br;exports.PaginationEllipsis=qr;exports.PaginationItem=Gr;exports.PaginationLink=Hr;exports.PaginationNext=Ur;exports.PaginationPrevious=Vr;exports.PermissionCard=ko;exports.PlanPart=Mo;exports.Progress=ti;exports.QuestionPart=ei;exports.QueueIndicator=To;exports.RadioGroup=Da;exports.RadioGroupItem=Ma;exports.ReasoningStep=ho;exports.RelatedPrompts=so;exports.Request=lo;exports.ResizableHandle=Ya;exports.ResizablePanel=Za;exports.ResizablePanelGroup=Wa;exports.Response=io;exports.SETI_CHAR_MAP=At;exports.SETI_COLOR_MAP=Kt;exports.Scrollbar=ge;exports.Select=fr;exports.SelectContent=yr;exports.SelectGroup=Ic;exports.SelectItem=Ze;exports.SelectLabel=xr;exports.SelectScrollDownButton=Cn;exports.SelectScrollUpButton=Nn;exports.SelectSeparator=hr;exports.SelectTrigger=jn;exports.SelectValue=gr;exports.SendButton=Rn;exports.SidebarMenu=No;exports.Skeleton=Ka;exports.Slider=Or;exports.Spinner=wn;exports.SuggestionPart=ro;exports.Switch=xn;exports.TYPE_TO_TOKEN_CLASS=Qt;exports.Table=Qa;exports.TableBody=Ja;exports.TableCaption=ar;exports.TableCell=sr;exports.TableFooter=er;exports.TableHead=nr;exports.TableHeader=Xa;exports.TableRow=tr;exports.Tabs=Ec;exports.TabsContent=kr;exports.TabsList=br;exports.TabsTrigger=vr;exports.Tag=In;exports.TaskPart=zo;exports.TerminalCodeBlockPart=Ko;exports.ThemeStyleProvider=fl;exports.ThinkingIndicator=Fn;exports.Toaster=mr;exports.Toggle=_a;exports.ToggleGroup=Fa;exports.ToggleGroupItem=za;exports.ToolInvocationCard=bo;exports.Tooltip=tn;exports.TypographyBlockquote=Tr;exports.TypographyH1=Sr;exports.TypographyH2=Ir;exports.TypographyH3=Er;exports.TypographyH4=Ar;exports.TypographyInlineCode=Pr;exports.TypographyLarge=zr;exports.TypographyLead=Fr;exports.TypographyList=_r;exports.TypographyMuted=Mr;exports.TypographyP=Rr;exports.TypographySmall=Dr;exports.TypographyTable=Lr;exports.UserQuestion=Io;exports.UserQuestionAnswer=Ao;exports.getFileIconColorClass=Uo;exports.getSetiIcon=r0;exports.getSetiIconColor=o0;exports.getSetiIconType=Ot;exports.tagVariants=Wr;exports.useIcon=_;exports.useIcons=et;exports.useThemeStyle=fe;