wps-multitool-mcp 0.0.0-stage → 1.0.2

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 (300) hide show
  1. package/README.md +3 -3
  2. package/dist/bridge/cancellable.d.ts +36 -0
  3. package/dist/bridge/cancellable.d.ts.map +1 -0
  4. package/dist/bridge/cancellable.js +155 -0
  5. package/dist/bridge/cancellable.js.map +1 -0
  6. package/dist/bridge/index.d.ts +37 -0
  7. package/dist/bridge/index.d.ts.map +1 -0
  8. package/dist/bridge/index.js +383 -0
  9. package/dist/bridge/index.js.map +1 -0
  10. package/dist/bridge/ps-child.d.ts +155 -0
  11. package/dist/bridge/ps-child.d.ts.map +1 -0
  12. package/dist/bridge/ps-child.js +578 -0
  13. package/dist/bridge/ps-child.js.map +1 -0
  14. package/dist/cli/install.d.ts +58 -0
  15. package/dist/cli/install.d.ts.map +1 -0
  16. package/dist/cli/install.js +301 -0
  17. package/dist/cli/install.js.map +1 -0
  18. package/dist/client/action-routes.d.ts +32 -0
  19. package/dist/client/action-routes.d.ts.map +1 -0
  20. package/dist/client/action-routes.generated.d.ts +10 -0
  21. package/dist/client/action-routes.generated.d.ts.map +1 -0
  22. package/dist/client/action-routes.generated.js +327 -0
  23. package/dist/client/action-routes.generated.js.map +1 -0
  24. package/dist/client/action-routes.js +57 -0
  25. package/dist/client/action-routes.js.map +1 -0
  26. package/dist/client/ps-daemon.d.ts +95 -0
  27. package/dist/client/ps-daemon.d.ts.map +1 -0
  28. package/dist/client/ps-daemon.js +424 -0
  29. package/dist/client/ps-daemon.js.map +1 -0
  30. package/dist/client/wps-client.d.ts +69 -0
  31. package/dist/client/wps-client.d.ts.map +1 -0
  32. package/dist/client/wps-client.js +442 -0
  33. package/dist/client/wps-client.js.map +1 -0
  34. package/dist/index.d.ts +29 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +173 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/runtime-identity.d.ts +23 -0
  39. package/dist/runtime-identity.d.ts.map +1 -0
  40. package/dist/runtime-identity.js +26 -0
  41. package/dist/runtime-identity.js.map +1 -0
  42. package/dist/server/auto-snapshot.d.ts +58 -0
  43. package/dist/server/auto-snapshot.d.ts.map +1 -0
  44. package/dist/server/auto-snapshot.js +150 -0
  45. package/dist/server/auto-snapshot.js.map +1 -0
  46. package/dist/server/cancel-context.d.ts +30 -0
  47. package/dist/server/cancel-context.d.ts.map +1 -0
  48. package/dist/server/cancel-context.js +38 -0
  49. package/dist/server/cancel-context.js.map +1 -0
  50. package/dist/server/mcp-server.d.ts +74 -0
  51. package/dist/server/mcp-server.d.ts.map +1 -0
  52. package/dist/server/mcp-server.js +592 -0
  53. package/dist/server/mcp-server.js.map +1 -0
  54. package/dist/server/server-info.d.ts +21 -0
  55. package/dist/server/server-info.d.ts.map +1 -0
  56. package/dist/server/server-info.js +56 -0
  57. package/dist/server/server-info.js.map +1 -0
  58. package/dist/server/tool-aliases.generated.d.ts +41 -0
  59. package/dist/server/tool-aliases.generated.d.ts.map +1 -0
  60. package/dist/server/tool-aliases.generated.js +88 -0
  61. package/dist/server/tool-aliases.generated.js.map +1 -0
  62. package/dist/server/tool-annotations.d.ts +55 -0
  63. package/dist/server/tool-annotations.d.ts.map +1 -0
  64. package/dist/server/tool-annotations.generated.d.ts +14 -0
  65. package/dist/server/tool-annotations.generated.d.ts.map +1 -0
  66. package/dist/server/tool-annotations.generated.js +302 -0
  67. package/dist/server/tool-annotations.generated.js.map +1 -0
  68. package/dist/server/tool-annotations.js +192 -0
  69. package/dist/server/tool-annotations.js.map +1 -0
  70. package/dist/server/tool-group-events.d.ts +23 -0
  71. package/dist/server/tool-group-events.d.ts.map +1 -0
  72. package/dist/server/tool-group-events.js +44 -0
  73. package/dist/server/tool-group-events.js.map +1 -0
  74. package/dist/server/tool-metadata.d.ts +68 -0
  75. package/dist/server/tool-metadata.d.ts.map +1 -0
  76. package/dist/server/tool-metadata.js +834 -0
  77. package/dist/server/tool-metadata.js.map +1 -0
  78. package/dist/server/tool-registry.d.ts +186 -0
  79. package/dist/server/tool-registry.d.ts.map +1 -0
  80. package/dist/server/tool-registry.js +615 -0
  81. package/dist/server/tool-registry.js.map +1 -0
  82. package/dist/server/tool-tiers.d.ts +58 -0
  83. package/dist/server/tool-tiers.d.ts.map +1 -0
  84. package/dist/server/tool-tiers.js +128 -0
  85. package/dist/server/tool-tiers.js.map +1 -0
  86. package/dist/server/tool-verification.d.ts +35 -0
  87. package/dist/server/tool-verification.d.ts.map +1 -0
  88. package/dist/server/tool-verification.generated.d.ts +17 -0
  89. package/dist/server/tool-verification.generated.d.ts.map +1 -0
  90. package/dist/server/tool-verification.generated.js +293 -0
  91. package/dist/server/tool-verification.generated.js.map +1 -0
  92. package/dist/server/tool-verification.js +43 -0
  93. package/dist/server/tool-verification.js.map +1 -0
  94. package/dist/tools/common/batch.d.ts +33 -0
  95. package/dist/tools/common/batch.d.ts.map +1 -0
  96. package/dist/tools/common/batch.js +273 -0
  97. package/dist/tools/common/batch.js.map +1 -0
  98. package/dist/tools/common/convert.d.ts +41 -0
  99. package/dist/tools/common/convert.d.ts.map +1 -0
  100. package/dist/tools/common/convert.js +299 -0
  101. package/dist/tools/common/convert.js.map +1 -0
  102. package/dist/tools/common/general.d.ts +36 -0
  103. package/dist/tools/common/general.d.ts.map +1 -0
  104. package/dist/tools/common/general.js +582 -0
  105. package/dist/tools/common/general.js.map +1 -0
  106. package/dist/tools/common/index.d.ts +38 -0
  107. package/dist/tools/common/index.d.ts.map +1 -0
  108. package/dist/tools/common/index.js +116 -0
  109. package/dist/tools/common/index.js.map +1 -0
  110. package/dist/tools/common/intent.d.ts +48 -0
  111. package/dist/tools/common/intent.d.ts.map +1 -0
  112. package/dist/tools/common/intent.js +221 -0
  113. package/dist/tools/common/intent.js.map +1 -0
  114. package/dist/tools/common/repair.d.ts +29 -0
  115. package/dist/tools/common/repair.d.ts.map +1 -0
  116. package/dist/tools/common/repair.js +140 -0
  117. package/dist/tools/common/repair.js.map +1 -0
  118. package/dist/tools/common/snapshot.d.ts +77 -0
  119. package/dist/tools/common/snapshot.d.ts.map +1 -0
  120. package/dist/tools/common/snapshot.js +497 -0
  121. package/dist/tools/common/snapshot.js.map +1 -0
  122. package/dist/tools/common/status.d.ts +27 -0
  123. package/dist/tools/common/status.d.ts.map +1 -0
  124. package/dist/tools/common/status.js +139 -0
  125. package/dist/tools/common/status.js.map +1 -0
  126. package/dist/tools/common/toolgroups.d.ts +38 -0
  127. package/dist/tools/common/toolgroups.d.ts.map +1 -0
  128. package/dist/tools/common/toolgroups.js +254 -0
  129. package/dist/tools/common/toolgroups.js.map +1 -0
  130. package/dist/tools/excel/chart.d.ts +86 -0
  131. package/dist/tools/excel/chart.d.ts.map +1 -0
  132. package/dist/tools/excel/chart.js +659 -0
  133. package/dist/tools/excel/chart.js.map +1 -0
  134. package/dist/tools/excel/comment-protect.d.ts +58 -0
  135. package/dist/tools/excel/comment-protect.d.ts.map +1 -0
  136. package/dist/tools/excel/comment-protect.js +274 -0
  137. package/dist/tools/excel/comment-protect.js.map +1 -0
  138. package/dist/tools/excel/data-advanced.d.ts +47 -0
  139. package/dist/tools/excel/data-advanced.d.ts.map +1 -0
  140. package/dist/tools/excel/data-advanced.js +263 -0
  141. package/dist/tools/excel/data-advanced.js.map +1 -0
  142. package/dist/tools/excel/data.d.ts +86 -0
  143. package/dist/tools/excel/data.d.ts.map +1 -0
  144. package/dist/tools/excel/data.js +606 -0
  145. package/dist/tools/excel/data.js.map +1 -0
  146. package/dist/tools/excel/format.d.ts +42 -0
  147. package/dist/tools/excel/format.d.ts.map +1 -0
  148. package/dist/tools/excel/format.js +717 -0
  149. package/dist/tools/excel/format.js.map +1 -0
  150. package/dist/tools/excel/formula.d.ts +55 -0
  151. package/dist/tools/excel/formula.d.ts.map +1 -0
  152. package/dist/tools/excel/formula.js +316 -0
  153. package/dist/tools/excel/formula.js.map +1 -0
  154. package/dist/tools/excel/index.d.ts +44 -0
  155. package/dist/tools/excel/index.d.ts.map +1 -0
  156. package/dist/tools/excel/index.js +241 -0
  157. package/dist/tools/excel/index.js.map +1 -0
  158. package/dist/tools/excel/pivot.d.ts +39 -0
  159. package/dist/tools/excel/pivot.d.ts.map +1 -0
  160. package/dist/tools/excel/pivot.js +455 -0
  161. package/dist/tools/excel/pivot.js.map +1 -0
  162. package/dist/tools/excel/row-column.d.ts +64 -0
  163. package/dist/tools/excel/row-column.d.ts.map +1 -0
  164. package/dist/tools/excel/row-column.js +299 -0
  165. package/dist/tools/excel/row-column.js.map +1 -0
  166. package/dist/tools/excel/sheet-gaps.d.ts +50 -0
  167. package/dist/tools/excel/sheet-gaps.d.ts.map +1 -0
  168. package/dist/tools/excel/sheet-gaps.js +373 -0
  169. package/dist/tools/excel/sheet-gaps.js.map +1 -0
  170. package/dist/tools/excel/sheet.d.ts +102 -0
  171. package/dist/tools/excel/sheet.d.ts.map +1 -0
  172. package/dist/tools/excel/sheet.js +827 -0
  173. package/dist/tools/excel/sheet.js.map +1 -0
  174. package/dist/tools/excel/workbook.d.ts +62 -0
  175. package/dist/tools/excel/workbook.d.ts.map +1 -0
  176. package/dist/tools/excel/workbook.js +371 -0
  177. package/dist/tools/excel/workbook.js.map +1 -0
  178. package/dist/tools/index.d.ts +48 -0
  179. package/dist/tools/index.d.ts.map +1 -0
  180. package/dist/tools/index.js +113 -0
  181. package/dist/tools/index.js.map +1 -0
  182. package/dist/tools/ppt/animation.d.ts +36 -0
  183. package/dist/tools/ppt/animation.d.ts.map +1 -0
  184. package/dist/tools/ppt/animation.js +190 -0
  185. package/dist/tools/ppt/animation.js.map +1 -0
  186. package/dist/tools/ppt/background.d.ts +54 -0
  187. package/dist/tools/ppt/background.d.ts.map +1 -0
  188. package/dist/tools/ppt/background.js +389 -0
  189. package/dist/tools/ppt/background.js.map +1 -0
  190. package/dist/tools/ppt/beautify-advanced.d.ts +66 -0
  191. package/dist/tools/ppt/beautify-advanced.d.ts.map +1 -0
  192. package/dist/tools/ppt/beautify-advanced.js +600 -0
  193. package/dist/tools/ppt/beautify-advanced.js.map +1 -0
  194. package/dist/tools/ppt/chart-flow.d.ts +58 -0
  195. package/dist/tools/ppt/chart-flow.d.ts.map +1 -0
  196. package/dist/tools/ppt/chart-flow.js +523 -0
  197. package/dist/tools/ppt/chart-flow.js.map +1 -0
  198. package/dist/tools/ppt/data-viz.d.ts +64 -0
  199. package/dist/tools/ppt/data-viz.d.ts.map +1 -0
  200. package/dist/tools/ppt/data-viz.js +514 -0
  201. package/dist/tools/ppt/data-viz.js.map +1 -0
  202. package/dist/tools/ppt/image.d.ts +30 -0
  203. package/dist/tools/ppt/image.d.ts.map +1 -0
  204. package/dist/tools/ppt/image.js +447 -0
  205. package/dist/tools/ppt/image.js.map +1 -0
  206. package/dist/tools/ppt/index.d.ts +72 -0
  207. package/dist/tools/ppt/index.d.ts.map +1 -0
  208. package/dist/tools/ppt/index.js +320 -0
  209. package/dist/tools/ppt/index.js.map +1 -0
  210. package/dist/tools/ppt/misc.d.ts +93 -0
  211. package/dist/tools/ppt/misc.d.ts.map +1 -0
  212. package/dist/tools/ppt/misc.js +817 -0
  213. package/dist/tools/ppt/misc.js.map +1 -0
  214. package/dist/tools/ppt/presentation.d.ts +72 -0
  215. package/dist/tools/ppt/presentation.d.ts.map +1 -0
  216. package/dist/tools/ppt/presentation.js +694 -0
  217. package/dist/tools/ppt/presentation.js.map +1 -0
  218. package/dist/tools/ppt/shape-basic.d.ts +46 -0
  219. package/dist/tools/ppt/shape-basic.d.ts.map +1 -0
  220. package/dist/tools/ppt/shape-basic.js +756 -0
  221. package/dist/tools/ppt/shape-basic.js.map +1 -0
  222. package/dist/tools/ppt/slide-ops.d.ts +73 -0
  223. package/dist/tools/ppt/slide-ops.d.ts.map +1 -0
  224. package/dist/tools/ppt/slide-ops.js +1740 -0
  225. package/dist/tools/ppt/slide-ops.js.map +1 -0
  226. package/dist/tools/ppt/slide.d.ts +51 -0
  227. package/dist/tools/ppt/slide.d.ts.map +1 -0
  228. package/dist/tools/ppt/slide.js +484 -0
  229. package/dist/tools/ppt/slide.js.map +1 -0
  230. package/dist/tools/ppt/table.d.ts +58 -0
  231. package/dist/tools/ppt/table.d.ts.map +1 -0
  232. package/dist/tools/ppt/table.js +514 -0
  233. package/dist/tools/ppt/table.js.map +1 -0
  234. package/dist/tools/ppt/textbox.d.ts +47 -0
  235. package/dist/tools/ppt/textbox.d.ts.map +1 -0
  236. package/dist/tools/ppt/textbox.js +249 -0
  237. package/dist/tools/ppt/textbox.js.map +1 -0
  238. package/dist/tools/word/academic.d.ts +50 -0
  239. package/dist/tools/word/academic.d.ts.map +1 -0
  240. package/dist/tools/word/academic.js +500 -0
  241. package/dist/tools/word/academic.js.map +1 -0
  242. package/dist/tools/word/content.d.ts +97 -0
  243. package/dist/tools/word/content.d.ts.map +1 -0
  244. package/dist/tools/word/content.js +843 -0
  245. package/dist/tools/word/content.js.map +1 -0
  246. package/dist/tools/word/document.d.ts +65 -0
  247. package/dist/tools/word/document.d.ts.map +1 -0
  248. package/dist/tools/word/document.js +576 -0
  249. package/dist/tools/word/document.js.map +1 -0
  250. package/dist/tools/word/format.d.ts +50 -0
  251. package/dist/tools/word/format.d.ts.map +1 -0
  252. package/dist/tools/word/format.js +462 -0
  253. package/dist/tools/word/format.js.map +1 -0
  254. package/dist/tools/word/gaps.d.ts +58 -0
  255. package/dist/tools/word/gaps.d.ts.map +1 -0
  256. package/dist/tools/word/gaps.js +431 -0
  257. package/dist/tools/word/gaps.js.map +1 -0
  258. package/dist/tools/word/index.d.ts +34 -0
  259. package/dist/tools/word/index.d.ts.map +1 -0
  260. package/dist/tools/word/index.js +122 -0
  261. package/dist/tools/word/index.js.map +1 -0
  262. package/dist/tools/word/professional.d.ts +48 -0
  263. package/dist/tools/word/professional.d.ts.map +1 -0
  264. package/dist/tools/word/professional.js +657 -0
  265. package/dist/tools/word/professional.js.map +1 -0
  266. package/dist/tools/word/proofread.d.ts +25 -0
  267. package/dist/tools/word/proofread.d.ts.map +1 -0
  268. package/dist/tools/word/proofread.js +718 -0
  269. package/dist/tools/word/proofread.js.map +1 -0
  270. package/dist/types/index.d.ts +9 -0
  271. package/dist/types/index.d.ts.map +1 -0
  272. package/dist/types/index.js +25 -0
  273. package/dist/types/index.js.map +1 -0
  274. package/dist/types/tools.d.ts +174 -0
  275. package/dist/types/tools.d.ts.map +1 -0
  276. package/dist/types/tools.js +45 -0
  277. package/dist/types/tools.js.map +1 -0
  278. package/dist/types/wps.d.ts +190 -0
  279. package/dist/types/wps.d.ts.map +1 -0
  280. package/dist/types/wps.js +23 -0
  281. package/dist/types/wps.js.map +1 -0
  282. package/dist/utils/error.d.ts +147 -0
  283. package/dist/utils/error.d.ts.map +1 -0
  284. package/dist/utils/error.js +417 -0
  285. package/dist/utils/error.js.map +1 -0
  286. package/dist/utils/logger.d.ts +56 -0
  287. package/dist/utils/logger.d.ts.map +1 -0
  288. package/dist/utils/logger.js +155 -0
  289. package/dist/utils/logger.js.map +1 -0
  290. package/dist/version.d.ts +22 -0
  291. package/dist/version.d.ts.map +1 -0
  292. package/dist/version.js +101 -0
  293. package/dist/version.js.map +1 -0
  294. package/package.json +66 -6
  295. package/scripts/wps-com.ps1 +8255 -0
  296. package/scripts/wps-comd.ps1 +123 -0
  297. package/skills/wps-multitool/SKILL.md +129 -0
  298. package/skills/wps-multitool/references/errors.md +62 -0
  299. package/skills/wps-multitool/references/recipes.md +83 -0
  300. package/skills/wps-multitool/references/routing.md +88 -0
@@ -0,0 +1,600 @@
1
+ "use strict";
2
+ /**
3
+ * Input: PPT 高级美化操作参数
4
+ * Output: 高级美化操作结果
5
+ * Pos: PPT 高级美化工具实现。一旦我被修改,请更新我的头部注释,以及所属文件夹的md。
6
+ * PPT高级美化Tools - 高级美化模块
7
+ * 处理配色方案、自动美化、KPI卡片、装饰元素等高级美化操作
8
+ *
9
+ * 包含:
10
+ * - wps_ppt_apply_color_scheme: 应用配色方案
11
+ * - wps_ppt_auto_beautify_slide: 自动美化单页幻灯片
12
+ * - wps_ppt_beautify_all_slides: 批量美化所有幻灯片
13
+ * - wps_ppt_create_kpi_cards: 创建KPI指标卡片
14
+ * - wps_ppt_create_styled_table: 创建带样式的表格
15
+ * - wps_ppt_add_title_decoration: 添加标题装饰元素
16
+ * - wps_ppt_add_page_indicator: 添加页码指示器
17
+ * - wps_ppt_set_background_gradient: 设置渐变背景
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.beautifyAdvancedTools = exports.addPageIndicatorHandler = exports.addPageIndicatorDefinition = exports.addTitleDecorationHandler = exports.addTitleDecorationDefinition = exports.createStyledTableHandler = exports.createStyledTableDefinition = exports.createKpiCardsHandler = exports.createKpiCardsDefinition = exports.beautifyAllSlidesHandler = exports.beautifyAllSlidesDefinition = exports.autoBeautifySlideHandler = exports.autoBeautifySlideDefinition = exports.applyColorSchemeHandler = exports.applyColorSchemeDefinition = void 0;
21
+ const uuid_1 = require("uuid");
22
+ const tools_1 = require("../../types/tools");
23
+ const wps_client_1 = require("../../client/wps-client");
24
+ const wps_1 = require("../../types/wps");
25
+ /**
26
+ * 应用配色方案
27
+ * 为幻灯片或全文档应用统一配色方案
28
+ */
29
+ exports.applyColorSchemeDefinition = {
30
+ name: 'wps_ppt_apply_color_scheme',
31
+ description: `为幻灯片应用统一配色方案。
32
+
33
+ 支持的配色方案:
34
+ - ocean: 海洋蓝(#0078D4主色)
35
+ - forest: 森林绿(#107C10主色)
36
+ - sunset: 日落橙(#FF8C00主色)
37
+ - lavender: 薰衣草紫(#7B68EE主色)
38
+ - corporate: 企业蓝灰(#2B579A主色)
39
+ - warm: 暖色调(#E74C3C主色)
40
+ - cool: 冷色调(#3498DB主色)
41
+ - monochrome: 单色黑白灰
42
+
43
+ 使用场景:
44
+ - "给PPT换个海洋蓝配色"
45
+ - "用企业风格的配色方案"
46
+ - "统一所有页面的颜色"`,
47
+ category: tools_1.ToolCategory.PRESENTATION,
48
+ inputSchema: {
49
+ type: 'object',
50
+ properties: {
51
+ slideIndex: {
52
+ type: 'number',
53
+ description: '幻灯片页码(从1开始),不填则应用到所有页',
54
+ },
55
+ scheme: {
56
+ type: 'string',
57
+ description: '配色方案名称',
58
+ },
59
+ },
60
+ required: ['scheme'],
61
+ },
62
+ };
63
+ const applyColorSchemeHandler = async (args) => {
64
+ const { slideIndex, scheme } = args;
65
+ try {
66
+ const response = await wps_client_1.wpsClient.executeMethod('applyColorScheme', { slideIndex, scheme }, wps_1.WpsAppType.PRESENTATION);
67
+ if (response.success && response.data) {
68
+ const schemeNames = {
69
+ ocean: '海洋蓝',
70
+ forest: '森林绿',
71
+ sunset: '日落橙',
72
+ lavender: '薰衣草紫',
73
+ corporate: '企业蓝灰',
74
+ warm: '暖色调',
75
+ cool: '冷色调',
76
+ monochrome: '单色黑白灰',
77
+ };
78
+ return {
79
+ id: (0, uuid_1.v4)(),
80
+ success: true,
81
+ content: [
82
+ {
83
+ type: 'text',
84
+ text: `配色方案应用成功!\n方案: ${schemeNames[scheme] || scheme}\n范围: ${slideIndex ? `第 ${slideIndex} 页` : '所有幻灯片'}\n已应用页数: ${response.data.appliedSlides}`,
85
+ },
86
+ ],
87
+ };
88
+ }
89
+ else {
90
+ return {
91
+ id: (0, uuid_1.v4)(),
92
+ success: false,
93
+ content: [{ type: 'text', text: `应用配色方案失败: ${response.error}` }],
94
+ error: response.error,
95
+ };
96
+ }
97
+ }
98
+ catch (error) {
99
+ const errMsg = error instanceof Error ? error.message : String(error);
100
+ return {
101
+ id: (0, uuid_1.v4)(),
102
+ success: false,
103
+ content: [{ type: 'text', text: `应用配色方案出错: ${errMsg}` }],
104
+ error: errMsg,
105
+ };
106
+ }
107
+ };
108
+ exports.applyColorSchemeHandler = applyColorSchemeHandler;
109
+ /**
110
+ * 自动美化单页幻灯片
111
+ * 智能分析并优化单页幻灯片的排版、字体、间距和配色
112
+ */
113
+ exports.autoBeautifySlideDefinition = {
114
+ name: 'wps_ppt_auto_beautify_slide',
115
+ description: `自动美化指定的单页幻灯片。
116
+
117
+ 智能分析幻灯片内容并自动执行以下优化:
118
+ - 统一字体风格
119
+ - 优化元素间距和对齐
120
+ - 调整文本大小和行距
121
+ - 应用协调的配色
122
+ - 调整形状和图片布局
123
+
124
+ 使用场景:
125
+ - "自动美化第3页"
126
+ - "优化这页PPT的排版"
127
+ - "一键美化当前幻灯片"`,
128
+ category: tools_1.ToolCategory.PRESENTATION,
129
+ inputSchema: {
130
+ type: 'object',
131
+ properties: {
132
+ slideIndex: {
133
+ type: 'number',
134
+ description: '幻灯片页码(从1开始)',
135
+ },
136
+ },
137
+ required: ['slideIndex'],
138
+ },
139
+ };
140
+ const autoBeautifySlideHandler = async (args) => {
141
+ const { slideIndex } = args;
142
+ try {
143
+ const response = await wps_client_1.wpsClient.executeMethod('autoBeautifySlide', { slideIndex }, wps_1.WpsAppType.PRESENTATION);
144
+ if (response.success && response.data) {
145
+ let output = `幻灯片自动美化完成!\n幻灯片: 第 ${slideIndex} 页\n\n优化详情:\n`;
146
+ const opNames = {
147
+ unify_font: '统一字体',
148
+ optimize_spacing: '优化间距',
149
+ align_elements: '对齐元素',
150
+ adjust_colors: '调整配色',
151
+ fix_layout: '修正布局',
152
+ adjust_text_size: '调整文字大小',
153
+ };
154
+ // PS 侧只回 {style,count}(老版本)时 operations 不存在,直接 .forEach 会把整个工具打崩
155
+ // —— 与 wps_ppt_beautify 同一个坑,那边已经兜过,这里漏了。
156
+ const ops = Array.isArray(response.data.operations) ? response.data.operations : [];
157
+ if (ops.length === 0) {
158
+ output += '- 没有可优化的文本(本页可能是空占位符,或元素都没有文字)\n';
159
+ }
160
+ ops.forEach((op) => {
161
+ output += `- ${opNames[op.operation] || op.operation}: 处理了 ${op.count} 个元素${op.details ? ` (${op.details})` : ''}\n`;
162
+ });
163
+ return {
164
+ id: (0, uuid_1.v4)(),
165
+ success: true,
166
+ content: [{ type: 'text', text: output }],
167
+ };
168
+ }
169
+ else {
170
+ return {
171
+ id: (0, uuid_1.v4)(),
172
+ success: false,
173
+ content: [{ type: 'text', text: `自动美化失败: ${response.error}` }],
174
+ error: response.error,
175
+ };
176
+ }
177
+ }
178
+ catch (error) {
179
+ const errMsg = error instanceof Error ? error.message : String(error);
180
+ return {
181
+ id: (0, uuid_1.v4)(),
182
+ success: false,
183
+ content: [{ type: 'text', text: `自动美化出错: ${errMsg}` }],
184
+ error: errMsg,
185
+ };
186
+ }
187
+ };
188
+ exports.autoBeautifySlideHandler = autoBeautifySlideHandler;
189
+ /**
190
+ * 批量美化所有幻灯片
191
+ * 对演示文稿中所有幻灯片应用统一美化风格
192
+ */
193
+ exports.beautifyAllSlidesDefinition = {
194
+ name: 'wps_ppt_beautify_all_slides',
195
+ description: `批量美化演示文稿中的所有幻灯片。
196
+
197
+ 支持的风格:
198
+ - business: 商务风(稳重、专业)
199
+ - tech: 科技风(现代、简约)
200
+ - creative: 创意风(活泼、多彩)
201
+ - minimal: 极简风(留白、克制)
202
+ - academic: 学术风(严谨、规范)
203
+
204
+ 使用场景:
205
+ - "把整个PPT都美化一下"
206
+ - "用科技风格统一美化所有页面"
207
+ - "一键优化整个演示文稿"`,
208
+ category: tools_1.ToolCategory.PRESENTATION,
209
+ inputSchema: {
210
+ type: 'object',
211
+ properties: {
212
+ style: {
213
+ type: 'string',
214
+ description: '美化风格,不填则默认使用 business 风格',
215
+ },
216
+ },
217
+ required: [],
218
+ },
219
+ };
220
+ const beautifyAllSlidesHandler = async (args) => {
221
+ const { style } = args;
222
+ try {
223
+ const response = await wps_client_1.wpsClient.executeMethod('beautifyAllSlides', { style: style || 'business' }, wps_1.WpsAppType.PRESENTATION);
224
+ if (response.success && response.data) {
225
+ const styleNames = {
226
+ business: '商务风',
227
+ tech: '科技风',
228
+ creative: '创意风',
229
+ minimal: '极简风',
230
+ academic: '学术风',
231
+ };
232
+ return {
233
+ id: (0, uuid_1.v4)(),
234
+ success: true,
235
+ content: [
236
+ {
237
+ type: 'text',
238
+ text: `全部幻灯片美化完成!\n风格: ${styleNames[response.data.style] || response.data.style}\n处理页数: ${response.data.slideCount} 页`,
239
+ },
240
+ ],
241
+ };
242
+ }
243
+ else {
244
+ return {
245
+ id: (0, uuid_1.v4)(),
246
+ success: false,
247
+ content: [{ type: 'text', text: `批量美化失败: ${response.error}` }],
248
+ error: response.error,
249
+ };
250
+ }
251
+ }
252
+ catch (error) {
253
+ const errMsg = error instanceof Error ? error.message : String(error);
254
+ return {
255
+ id: (0, uuid_1.v4)(),
256
+ success: false,
257
+ content: [{ type: 'text', text: `批量美化出错: ${errMsg}` }],
258
+ error: errMsg,
259
+ };
260
+ }
261
+ };
262
+ exports.beautifyAllSlidesHandler = beautifyAllSlidesHandler;
263
+ /**
264
+ * 创建KPI指标卡片
265
+ * 在幻灯片上生成数据指标卡片,适合展示关键业绩数据
266
+ */
267
+ exports.createKpiCardsDefinition = {
268
+ name: 'wps_ppt_create_kpi_cards',
269
+ description: `在幻灯片上创建KPI指标卡片。
270
+
271
+ 每个KPI卡片数据项包含:
272
+ - title: 指标名称(如"销售额"、"增长率")
273
+ - value: 指标数值(如"¥128万"、"+15.3%")
274
+ - trend: 趋势方向(up/down/flat),可选
275
+ - color: 卡片颜色(十六进制),可选
276
+
277
+ 使用场景:
278
+ - "创建一组KPI展示卡片"
279
+ - "在第2页展示销售数据指标"
280
+ - "添加业绩看板"`,
281
+ category: tools_1.ToolCategory.PRESENTATION,
282
+ inputSchema: {
283
+ type: 'object',
284
+ properties: {
285
+ slideIndex: {
286
+ type: 'number',
287
+ description: '幻灯片页码(从1开始)',
288
+ },
289
+ data: {
290
+ type: 'array',
291
+ description: 'KPI数据数组,每项包含title(指标名称)、value(指标数值)、trend(趋势:up/down/flat,可选)、color(颜色,可选)',
292
+ items: {
293
+ type: 'object',
294
+ properties: {
295
+ title: { type: 'string', description: '指标名称' },
296
+ value: { type: 'string', description: '指标数值' },
297
+ trend: { type: 'string', description: '趋势方向', enum: ['up', 'down', 'flat'] },
298
+ color: { type: 'string', description: '卡片颜色(十六进制)' },
299
+ },
300
+ required: ['title', 'value'],
301
+ },
302
+ },
303
+ },
304
+ required: ['slideIndex', 'data'],
305
+ },
306
+ };
307
+ const createKpiCardsHandler = async (args) => {
308
+ const { slideIndex, data } = args;
309
+ try {
310
+ const response = await wps_client_1.wpsClient.executeMethod('createKpiCards', { slideIndex, data }, wps_1.WpsAppType.PRESENTATION);
311
+ if (response.success && response.data) {
312
+ const n = response.data.cardCount ?? response.data.count ?? 0;
313
+ let output = `KPI卡片创建成功!\n幻灯片: 第 ${slideIndex} 页\n卡片数量: ${n} 个\n\n指标列表:\n`;
314
+ data.forEach((item) => {
315
+ const trendIcon = item.trend === 'up' ? '↑' : item.trend === 'down' ? '↓' : '→';
316
+ output += `- ${item.title}: ${item.value} ${item.trend ? trendIcon : ''}\n`;
317
+ });
318
+ return {
319
+ id: (0, uuid_1.v4)(),
320
+ success: true,
321
+ content: [{ type: 'text', text: output }],
322
+ };
323
+ }
324
+ else {
325
+ return {
326
+ id: (0, uuid_1.v4)(),
327
+ success: false,
328
+ content: [{ type: 'text', text: `创建KPI卡片失败: ${response.error}` }],
329
+ error: response.error,
330
+ };
331
+ }
332
+ }
333
+ catch (error) {
334
+ const errMsg = error instanceof Error ? error.message : String(error);
335
+ return {
336
+ id: (0, uuid_1.v4)(),
337
+ success: false,
338
+ content: [{ type: 'text', text: `创建KPI卡片出错: ${errMsg}` }],
339
+ error: errMsg,
340
+ };
341
+ }
342
+ };
343
+ exports.createKpiCardsHandler = createKpiCardsHandler;
344
+ /**
345
+ * 创建带样式的表格
346
+ * 插入预设样式的精美表格
347
+ */
348
+ exports.createStyledTableDefinition = {
349
+ name: 'wps_ppt_create_styled_table',
350
+ description: `在幻灯片中创建带预设样式的精美表格。
351
+
352
+ 表格数据格式:二维数组,第一行为表头。
353
+ 例如: [["姓名","分数"],["张三","95"],["李四","88"]]
354
+
355
+ 支持的样式:
356
+ - blue: 蓝色主题(默认)
357
+ - green: 绿色主题
358
+ - orange: 橙色主题
359
+ - gray: 灰色主题
360
+ - dark: 深色主题
361
+ - striped: 斑马纹样式
362
+
363
+ 使用场景:
364
+ - "创建一个蓝色主题的数据表格"
365
+ - "插入带样式的表格"
366
+ - "在第3页添加成绩表"`,
367
+ category: tools_1.ToolCategory.PRESENTATION,
368
+ inputSchema: {
369
+ type: 'object',
370
+ properties: {
371
+ slideIndex: {
372
+ type: 'number',
373
+ description: '幻灯片页码(从1开始)',
374
+ },
375
+ data: {
376
+ type: 'array',
377
+ description: '表格数据,二维数组格式,第一行为表头',
378
+ items: {
379
+ type: 'array',
380
+ items: { type: 'string' },
381
+ },
382
+ },
383
+ style: {
384
+ type: 'string',
385
+ description: '表格样式,不填默认使用 blue',
386
+ },
387
+ },
388
+ required: ['slideIndex', 'data'],
389
+ },
390
+ };
391
+ const createStyledTableHandler = async (args) => {
392
+ const { slideIndex, data, style } = args;
393
+ try {
394
+ const response = await wps_client_1.wpsClient.executeMethod('createStyledTable', { slideIndex, data, style: style || 'blue' }, wps_1.WpsAppType.PRESENTATION);
395
+ if (response.success && response.data) {
396
+ const styleNames = {
397
+ blue: '蓝色主题',
398
+ green: '绿色主题',
399
+ orange: '橙色主题',
400
+ gray: '灰色主题',
401
+ dark: '深色主题',
402
+ striped: '斑马纹',
403
+ };
404
+ return {
405
+ id: (0, uuid_1.v4)(),
406
+ success: true,
407
+ content: [
408
+ {
409
+ type: 'text',
410
+ text: `带样式表格创建成功!\n幻灯片: 第 ${slideIndex} 页\n规格: ${response.data.rows} 行 × ${response.data.cols} 列\n样式: ${styleNames[style || 'blue'] || style}`,
411
+ },
412
+ ],
413
+ };
414
+ }
415
+ else {
416
+ return {
417
+ id: (0, uuid_1.v4)(),
418
+ success: false,
419
+ content: [{ type: 'text', text: `创建带样式表格失败: ${response.error}` }],
420
+ error: response.error,
421
+ };
422
+ }
423
+ }
424
+ catch (error) {
425
+ const errMsg = error instanceof Error ? error.message : String(error);
426
+ return {
427
+ id: (0, uuid_1.v4)(),
428
+ success: false,
429
+ content: [{ type: 'text', text: `创建带样式表格出错: ${errMsg}` }],
430
+ error: errMsg,
431
+ };
432
+ }
433
+ };
434
+ exports.createStyledTableHandler = createStyledTableHandler;
435
+ /**
436
+ * 添加标题装饰元素
437
+ * 为幻灯片标题添加装饰性元素(下划线、色块、图标等)
438
+ */
439
+ exports.addTitleDecorationDefinition = {
440
+ name: 'wps_ppt_add_title_decoration',
441
+ description: `为幻灯片标题添加装饰性元素。
442
+
443
+ 支持的装饰样式:
444
+ - underline: 标题下划线装饰
445
+ - block: 色块背景装饰
446
+ - sidebar: 侧边竖条装饰
447
+ - bracket: 括号框装饰
448
+ - gradient_bar: 渐变条装饰
449
+
450
+ 使用场景:
451
+ - "给标题加个装饰线"
452
+ - "美化标题样式"
453
+ - "添加侧边装饰条"`,
454
+ category: tools_1.ToolCategory.PRESENTATION,
455
+ inputSchema: {
456
+ type: 'object',
457
+ properties: {
458
+ slideIndex: {
459
+ type: 'number',
460
+ description: '幻灯片页码(从1开始)',
461
+ },
462
+ style: {
463
+ type: 'string',
464
+ description: '装饰样式,不填默认使用 underline',
465
+ },
466
+ },
467
+ required: ['slideIndex'],
468
+ },
469
+ };
470
+ const addTitleDecorationHandler = async (args) => {
471
+ const { slideIndex, style } = args;
472
+ try {
473
+ const response = await wps_client_1.wpsClient.executeMethod('addTitleDecoration', { slideIndex, style: style || 'underline' }, wps_1.WpsAppType.PRESENTATION);
474
+ if (response.success) {
475
+ const styleNames = {
476
+ underline: '下划线装饰',
477
+ block: '色块背景装饰',
478
+ sidebar: '侧边竖条装饰',
479
+ bracket: '括号框装饰',
480
+ gradient_bar: '渐变条装饰',
481
+ };
482
+ return {
483
+ id: (0, uuid_1.v4)(),
484
+ success: true,
485
+ content: [
486
+ {
487
+ type: 'text',
488
+ text: `标题装饰添加成功!\n幻灯片: 第 ${slideIndex} 页\n装饰样式: ${styleNames[style || 'underline'] || style}`,
489
+ },
490
+ ],
491
+ };
492
+ }
493
+ else {
494
+ return {
495
+ id: (0, uuid_1.v4)(),
496
+ success: false,
497
+ content: [{ type: 'text', text: `添加标题装饰失败: ${response.error}` }],
498
+ error: response.error,
499
+ };
500
+ }
501
+ }
502
+ catch (error) {
503
+ const errMsg = error instanceof Error ? error.message : String(error);
504
+ return {
505
+ id: (0, uuid_1.v4)(),
506
+ success: false,
507
+ content: [{ type: 'text', text: `添加标题装饰出错: ${errMsg}` }],
508
+ error: errMsg,
509
+ };
510
+ }
511
+ };
512
+ exports.addTitleDecorationHandler = addTitleDecorationHandler;
513
+ /**
514
+ * 添加页码指示器
515
+ * 在幻灯片上添加页码/进度指示器
516
+ */
517
+ exports.addPageIndicatorDefinition = {
518
+ name: 'wps_ppt_add_page_indicator',
519
+ description: `为演示文稿添加页码指示器。
520
+
521
+ 支持的位置:
522
+ - bottom-right: 右下角(默认)
523
+ - bottom-center: 底部居中
524
+ - bottom-left: 左下角
525
+
526
+ 使用场景:
527
+ - "给PPT加上页码"
528
+ - "在右下角添加页码指示"
529
+ - "添加页面进度指示器"`,
530
+ category: tools_1.ToolCategory.PRESENTATION,
531
+ inputSchema: {
532
+ type: 'object',
533
+ properties: {
534
+ position: {
535
+ type: 'string',
536
+ description: '页码位置',
537
+ enum: ['bottom-right', 'bottom-center', 'bottom-left'],
538
+ },
539
+ },
540
+ required: [],
541
+ },
542
+ };
543
+ const addPageIndicatorHandler = async (args) => {
544
+ const { position } = args;
545
+ try {
546
+ const response = await wps_client_1.wpsClient.executeMethod('addPageIndicator', { position: position || 'bottom-right' }, wps_1.WpsAppType.PRESENTATION);
547
+ if (response.success && response.data) {
548
+ const posNames = {
549
+ 'bottom-right': '右下角',
550
+ 'bottom-center': '底部居中',
551
+ 'bottom-left': '左下角',
552
+ };
553
+ return {
554
+ id: (0, uuid_1.v4)(),
555
+ success: true,
556
+ content: [
557
+ {
558
+ type: 'text',
559
+ text: `页码指示器添加成功!\n位置: ${posNames[position || 'bottom-right'] || position}\n已添加页数: ${response.data.slideCount} 页`,
560
+ },
561
+ ],
562
+ };
563
+ }
564
+ else {
565
+ return {
566
+ id: (0, uuid_1.v4)(),
567
+ success: false,
568
+ content: [{ type: 'text', text: `添加页码指示器失败: ${response.error}` }],
569
+ error: response.error,
570
+ };
571
+ }
572
+ }
573
+ catch (error) {
574
+ const errMsg = error instanceof Error ? error.message : String(error);
575
+ return {
576
+ id: (0, uuid_1.v4)(),
577
+ success: false,
578
+ content: [{ type: 'text', text: `添加页码指示器出错: ${errMsg}` }],
579
+ error: errMsg,
580
+ };
581
+ }
582
+ };
583
+ exports.addPageIndicatorHandler = addPageIndicatorHandler;
584
+ // 第 5 轮:wps_ppt_set_background_gradient 并入 wps_ppt_set_background
585
+ // (target:'slide'|'all'|'master' + type:'gradient' + gradient{colors})。
586
+ // 旧名留作别名:它的参数 {slideIndex, gradient} 能被新工具无损接受。
587
+ /**
588
+ * 导出所有高级美化相关的Tools
589
+ */
590
+ exports.beautifyAdvancedTools = [
591
+ { definition: exports.applyColorSchemeDefinition, handler: exports.applyColorSchemeHandler },
592
+ { definition: exports.autoBeautifySlideDefinition, handler: exports.autoBeautifySlideHandler },
593
+ { definition: exports.beautifyAllSlidesDefinition, handler: exports.beautifyAllSlidesHandler },
594
+ { definition: exports.createKpiCardsDefinition, handler: exports.createKpiCardsHandler },
595
+ { definition: exports.createStyledTableDefinition, handler: exports.createStyledTableHandler },
596
+ { definition: exports.addTitleDecorationDefinition, handler: exports.addTitleDecorationHandler },
597
+ { definition: exports.addPageIndicatorDefinition, handler: exports.addPageIndicatorHandler },
598
+ ];
599
+ exports.default = exports.beautifyAdvancedTools;
600
+ //# sourceMappingURL=beautify-advanced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beautify-advanced.js","sourceRoot":"","sources":["../../../src/tools/ppt/beautify-advanced.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,+BAAoC;AACpC,6CAM2B;AAC3B,wDAAoD;AACpD,yCAA6C;AAE7C;;;GAGG;AACU,QAAA,0BAA0B,GAAmB;IACxD,IAAI,E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,qBAAqB,GAAqB;IACrD,EAAE,UAAU,EAAE,kCAA0B,EAAE,OAAO,EAAE,+BAAuB,EAAE;IAC5E,EAAE,UAAU,EAAE,mCAA2B,EAAE,OAAO,EAAE,gCAAwB,EAAE;IAC9E,EAAE,UAAU,EAAE,mCAA2B,EAAE,OAAO,EAAE,gCAAwB,EAAE;IAC9E,EAAE,UAAU,EAAE,gCAAwB,EAAE,OAAO,EAAE,6BAAqB,EAAE;IACxE,EAAE,UAAU,EAAE,mCAA2B,EAAE,OAAO,EAAE,gCAAwB,EAAE;IAC9E,EAAE,UAAU,EAAE,oCAA4B,EAAE,OAAO,EAAE,iCAAyB,EAAE;IAChF,EAAE,UAAU,EAAE,kCAA0B,EAAE,OAAO,EAAE,+BAAuB,EAAE;CAC7E,CAAC;AAEF,kBAAe,6BAAqB,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Input: PPT 图表与流程图操作参数
3
+ * Output: 图表/流程图操作结果
4
+ * Pos: PPT 图表与流程图工具实现。一旦我被修改,请更新我的头部注释,以及所属文件夹的md。
5
+ * PPT图表Tools - 图表、流程图、组织架构图与时间线管理模块
6
+ * 处理PPT中图表插入与样式设置、流程图/组织架构图/时间线创建
7
+ *
8
+ * 包含:
9
+ * - wps_ppt_insert_ppt_chart: 插入图表
10
+ * - wps_ppt_set_ppt_chart_data: 设置图表数据
11
+ * - wps_ppt_set_ppt_chart_style: 设置图表样式
12
+ * - wps_ppt_create_flow_chart: 创建流程图
13
+ * - wps_ppt_create_org_chart: 创建组织架构图
14
+ * - wps_ppt_create_timeline: 创建时间线
15
+ */
16
+ import { ToolDefinition, ToolHandler, RegisteredTool } from '../../types/tools';
17
+ /**
18
+ * 插入图表
19
+ * 在幻灯片中插入数据图表
20
+ */
21
+ export declare const insertPptChartDefinition: ToolDefinition;
22
+ export declare const insertPptChartHandler: ToolHandler;
23
+ /**
24
+ * 设置图表数据
25
+ * 更新已有图表的数据
26
+ */
27
+ export declare const setPptChartDataDefinition: ToolDefinition;
28
+ export declare const setPptChartDataHandler: ToolHandler;
29
+ /**
30
+ * 设置图表样式
31
+ * 修改图表的颜色方案、字体、图例等样式属性
32
+ */
33
+ export declare const setPptChartStyleDefinition: ToolDefinition;
34
+ export declare const setPptChartStyleHandler: ToolHandler;
35
+ /**
36
+ * 创建流程图
37
+ * 在幻灯片中创建流程图,自动布局节点和连接线
38
+ */
39
+ export declare const createFlowChartDefinition: ToolDefinition;
40
+ export declare const createFlowChartHandler: ToolHandler;
41
+ /**
42
+ * 创建组织架构图
43
+ * 根据层级数据自动生成组织架构图
44
+ */
45
+ export declare const createOrgChartDefinition: ToolDefinition;
46
+ export declare const createOrgChartHandler: ToolHandler;
47
+ /**
48
+ * 创建时间线
49
+ * 根据事件数据在幻灯片中生成时间线图形
50
+ */
51
+ export declare const createTimelineDefinition: ToolDefinition;
52
+ export declare const createTimelineHandler: ToolHandler;
53
+ /**
54
+ * 导出所有图表与流程图相关的Tools
55
+ */
56
+ export declare const chartFlowTools: RegisteredTool[];
57
+ export default chartFlowTools;
58
+ //# sourceMappingURL=chart-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-flow.d.ts","sourceRoot":"","sources":["../../../src/tools/ppt/chart-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,cAAc,EACd,WAAW,EAGX,cAAc,EACf,MAAM,mBAAmB,CAAC;AAM3B;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,cA4CtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WA4DnC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,cA2BvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WA+CpC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAmCxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,WAgDrC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,cAuDvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WAiDpC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,cA4BtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WAgDnC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,cAqCtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WA+CnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,cAAc,EAO1C,CAAC;AAEF,eAAe,cAAc,CAAC"}