@wirecat/wordpress-cli 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +204 -0
  3. package/README.md +248 -2
  4. package/contracts/wirecat.json +2535 -0
  5. package/dist/bin/wordpress.d.ts +3 -0
  6. package/dist/bin/wordpress.d.ts.map +1 -0
  7. package/dist/bin/wordpress.js +40 -0
  8. package/dist/bin/wordpress.js.map +1 -0
  9. package/dist/bundle/agent-LKBRYKNB.js +37 -0
  10. package/dist/bundle/all-profiles-OEV7VFQG.js +320 -0
  11. package/dist/bundle/anthropic-JKTZP2DW.js +91 -0
  12. package/dist/bundle/app-server-7LWLDDE2.js +249 -0
  13. package/dist/bundle/bun-2FLR4IV4.js +169 -0
  14. package/dist/bundle/bun-sqlite-GRSRX5P4.js +76 -0
  15. package/dist/bundle/chunk-2BI25SEE.js +259 -0
  16. package/dist/bundle/chunk-2UEGJ5AJ.js +52 -0
  17. package/dist/bundle/chunk-2XUV7HNE.js +58 -0
  18. package/dist/bundle/chunk-2Z7UOXFC.js +16 -0
  19. package/dist/bundle/chunk-3BM6KBWP.js +2788 -0
  20. package/dist/bundle/chunk-3BRAZVHR.js +1010 -0
  21. package/dist/bundle/chunk-3LMW7U7F.js +1233 -0
  22. package/dist/bundle/chunk-3LVTQFGB.js +2000 -0
  23. package/dist/bundle/chunk-3TKFFSFU.js +106 -0
  24. package/dist/bundle/chunk-3UX4VJWD.js +78 -0
  25. package/dist/bundle/chunk-4HEXAGKT.js +334 -0
  26. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  27. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  28. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  29. package/dist/bundle/chunk-5XPHFV7H.js +2333 -0
  30. package/dist/bundle/chunk-5Z3P543G.js +80 -0
  31. package/dist/bundle/chunk-6UYDKCV6.js +794 -0
  32. package/dist/bundle/chunk-7GNB4LBX.js +50 -0
  33. package/dist/bundle/chunk-7HJFBOAT.js +161 -0
  34. package/dist/bundle/chunk-7JVKQ6NM.js +206 -0
  35. package/dist/bundle/chunk-7QH5BZUG.js +142 -0
  36. package/dist/bundle/chunk-A474OVIW.js +1392 -0
  37. package/dist/bundle/chunk-AENEMQL3.js +1068 -0
  38. package/dist/bundle/chunk-AL7I4DT4.js +65718 -0
  39. package/dist/bundle/chunk-ARGRGTPX.js +108 -0
  40. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  41. package/dist/bundle/chunk-BAXNAOOL.js +76 -0
  42. package/dist/bundle/chunk-BH63B66W.js +407 -0
  43. package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
  44. package/dist/bundle/chunk-CFQQTDSA.js +46 -0
  45. package/dist/bundle/chunk-CGCUOT67.js +388 -0
  46. package/dist/bundle/chunk-CHPWBQUK.js +39 -0
  47. package/dist/bundle/chunk-D72URWJE.js +532 -0
  48. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  49. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  50. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  51. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  52. package/dist/bundle/chunk-EHW45LLT.js +100 -0
  53. package/dist/bundle/chunk-F3AV5ZSL.js +338 -0
  54. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  55. package/dist/bundle/chunk-F5ZAN7OC.js +6848 -0
  56. package/dist/bundle/chunk-FMMYBVCH.js +38 -0
  57. package/dist/bundle/chunk-FNB4SWTY.js +66 -0
  58. package/dist/bundle/chunk-FQROWBKV.js +12660 -0
  59. package/dist/bundle/chunk-FV2HJOSC.js +771 -0
  60. package/dist/bundle/chunk-GCAJW4SR.js +53 -0
  61. package/dist/bundle/chunk-GPRJXJC7.js +102 -0
  62. package/dist/bundle/chunk-HCOZUOSN.js +54 -0
  63. package/dist/bundle/chunk-HM6AMYHR.js +72 -0
  64. package/dist/bundle/chunk-HVXOA4FO.js +23 -0
  65. package/dist/bundle/chunk-HWQ7572G.js +95 -0
  66. package/dist/bundle/chunk-IJVTN5L3.js +82 -0
  67. package/dist/bundle/chunk-IZDDBOHU.js +3610 -0
  68. package/dist/bundle/chunk-JAE5B4G7.js +388 -0
  69. package/dist/bundle/chunk-K2Y5K37O.js +218 -0
  70. package/dist/bundle/chunk-KCH224US.js +9581 -0
  71. package/dist/bundle/chunk-KZJQPJK5.js +230 -0
  72. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  73. package/dist/bundle/chunk-LECMHK2F.js +18 -0
  74. package/dist/bundle/chunk-LWEMZJLG.js +1332 -0
  75. package/dist/bundle/chunk-LWTETL2O.js +185 -0
  76. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  77. package/dist/bundle/chunk-MJ6LTG4L.js +170 -0
  78. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  79. package/dist/bundle/chunk-ODVGFCBE.js +557 -0
  80. package/dist/bundle/chunk-OEQNP56V.js +633 -0
  81. package/dist/bundle/chunk-OV6WQY3L.js +39 -0
  82. package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
  83. package/dist/bundle/chunk-PPNTY7LD.js +733 -0
  84. package/dist/bundle/chunk-PRZYRA66.js +358 -0
  85. package/dist/bundle/chunk-PV5UYGRJ.js +41594 -0
  86. package/dist/bundle/chunk-QYTOLPNI.js +52 -0
  87. package/dist/bundle/chunk-R7Y3XU66.js +362 -0
  88. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  89. package/dist/bundle/chunk-SD5CXGIG.js +188 -0
  90. package/dist/bundle/chunk-SXY5G62I.js +288 -0
  91. package/dist/bundle/chunk-T37TAXVL.js +29 -0
  92. package/dist/bundle/chunk-T5SOY3AE.js +1197 -0
  93. package/dist/bundle/chunk-TJ7OORSO.js +1876 -0
  94. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  95. package/dist/bundle/chunk-U6VLNYCO.js +73 -0
  96. package/dist/bundle/chunk-UC7JLE6J.js +58 -0
  97. package/dist/bundle/chunk-UUIOAZPH.js +156 -0
  98. package/dist/bundle/chunk-UXQ24OY6.js +4072 -0
  99. package/dist/bundle/chunk-VBRRMGON.js +1007 -0
  100. package/dist/bundle/chunk-VRIBES2C.js +319 -0
  101. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  102. package/dist/bundle/chunk-XT5XYQEZ.js +3414 -0
  103. package/dist/bundle/chunk-XTAS5Z3G.js +2231 -0
  104. package/dist/bundle/chunk-XYQVVW4R.js +24 -0
  105. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  106. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  107. package/dist/bundle/chunk-YUDVRFXN.js +63 -0
  108. package/dist/bundle/chunk-Z3I2MCUT.js +131 -0
  109. package/dist/bundle/chunk-ZDI3WC7V.js +353 -0
  110. package/dist/bundle/chunk-ZVQ7KFMT.js +274 -0
  111. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  112. package/dist/bundle/command-contract-P7YE4EKS.js +37 -0
  113. package/dist/bundle/command-server-entry-XIMCBWMV.js +166 -0
  114. package/dist/bundle/decode-6XK55WYV.js +297 -0
  115. package/dist/bundle/definitions-GIQCGYPR.js +7986 -0
  116. package/dist/bundle/dispatch-JQBAZWCL.js +411 -0
  117. package/dist/bundle/dist-2TV3NVE5.js +7577 -0
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/echarts-YRRVLEX3.js +42501 -0
  120. package/dist/bundle/embed-L3EEQSGX.js +38 -0
  121. package/dist/bundle/embedder-BIKLBV3J.js +111 -0
  122. package/dist/bundle/failure-I6AAF5R5.js +25 -0
  123. package/dist/bundle/first-run-W6G6TYZ2.js +29 -0
  124. package/dist/bundle/first-screen-ITIAJIBU.js +37 -0
  125. package/dist/bundle/hast-util-from-html-ZHU6HGIE.js +10531 -0
  126. package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
  127. package/dist/bundle/hast-util-to-mdast-D62XX3NR.js +2272 -0
  128. package/dist/bundle/instructions-AG7SRWTR.js +11 -0
  129. package/dist/bundle/mcp-YGOAUNC3.js +167 -0
  130. package/dist/bundle/mdast-util-from-markdown-WVUJDSUO.js +1900 -0
  131. package/dist/bundle/mdast-util-gfm-KN2D32QS.js +1040 -0
  132. package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
  133. package/dist/bundle/mdast-util-to-markdown-UCAJNHJO.js +18 -0
  134. package/dist/bundle/meeting-combined-CQJ3JHHU.js +24 -0
  135. package/dist/bundle/meeting-model-MZ7VVBNK.js +25 -0
  136. package/dist/bundle/meeting-semantic-DADWRRHP.js +22 -0
  137. package/dist/bundle/micromark-extension-gfm-EEJRRJ36.js +1771 -0
  138. package/dist/bundle/node-GJQYN4FT.js +176 -0
  139. package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
  140. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  141. package/dist/bundle/node-sqlite-TPR62DT2.js +74 -0
  142. package/dist/bundle/oauth-WGY7JQVW.js +20 -0
  143. package/dist/bundle/open-DE7QZNAN.js +23 -0
  144. package/dist/bundle/openai-NHEFT3HS.js +238 -0
  145. package/dist/bundle/process-MEKCZMX3.js +91 -0
  146. package/dist/bundle/program-EP2S5BTM.js +38857 -0
  147. package/dist/bundle/prompt-PWY53BYH.js +17 -0
  148. package/dist/bundle/recognize-74TXHKMQ.js +26 -0
  149. package/dist/bundle/remote-F5TJZ5ER.js +31 -0
  150. package/dist/bundle/rerank-HWUO52UF.js +52 -0
  151. package/dist/bundle/schemas-4K6WWS5N.js +2157 -0
  152. package/dist/bundle/serve-I2USUY4X.js +199 -0
  153. package/dist/bundle/server-GDYDNO6K.js +79 -0
  154. package/dist/bundle/server-KYUW2AHB.js +212 -0
  155. package/dist/bundle/sqlite-runtime-N6VFGBJK.js +20 -0
  156. package/dist/bundle/state-L6JSCN77.js +36 -0
  157. package/dist/bundle/store-EPG2YPN3.js +291 -0
  158. package/dist/bundle/store-SQWQJE32.js +181 -0
  159. package/dist/bundle/store-maintenance-command-FTGSICVA.js +66 -0
  160. package/dist/bundle/surface-SNMHY6GP.js +65 -0
  161. package/dist/bundle/wordpress.js +183 -0
  162. package/dist/commands/api.d.ts +22 -0
  163. package/dist/commands/api.d.ts.map +1 -0
  164. package/dist/commands/api.js +37 -0
  165. package/dist/commands/api.js.map +1 -0
  166. package/dist/commands/content.d.ts +4 -0
  167. package/dist/commands/content.d.ts.map +1 -0
  168. package/dist/commands/content.js +94 -0
  169. package/dist/commands/content.js.map +1 -0
  170. package/dist/commands/session.d.ts +8 -0
  171. package/dist/commands/session.d.ts.map +1 -0
  172. package/dist/commands/session.js +28 -0
  173. package/dist/commands/session.js.map +1 -0
  174. package/dist/config.d.ts +13 -0
  175. package/dist/config.d.ts.map +1 -0
  176. package/dist/config.js +69 -0
  177. package/dist/config.js.map +1 -0
  178. package/dist/context.d.ts +37 -0
  179. package/dist/context.d.ts.map +1 -0
  180. package/dist/context.js +31 -0
  181. package/dist/context.js.map +1 -0
  182. package/dist/generated/definitions.d.ts +3 -0
  183. package/dist/generated/definitions.d.ts.map +1 -0
  184. package/dist/generated/definitions.js +7982 -0
  185. package/dist/generated/definitions.js.map +1 -0
  186. package/dist/generated/manifest.d.ts +6 -0
  187. package/dist/generated/manifest.d.ts.map +1 -0
  188. package/dist/generated/manifest.js +8830 -0
  189. package/dist/generated/manifest.js.map +1 -0
  190. package/dist/generated/schemas.d.ts +229 -0
  191. package/dist/generated/schemas.d.ts.map +1 -0
  192. package/dist/generated/schemas.js +2019 -0
  193. package/dist/generated/schemas.js.map +1 -0
  194. package/dist/generated/types.d.ts +3365 -0
  195. package/dist/generated/types.d.ts.map +1 -0
  196. package/dist/generated/types.js +5 -0
  197. package/dist/generated/types.js.map +1 -0
  198. package/dist/generated/wirecat-config.d.ts +11 -0
  199. package/dist/generated/wirecat-config.d.ts.map +1 -0
  200. package/dist/generated/wirecat-config.js +337 -0
  201. package/dist/generated/wirecat-config.js.map +1 -0
  202. package/dist/identity.d.ts +28 -0
  203. package/dist/identity.d.ts.map +1 -0
  204. package/dist/identity.js +29 -0
  205. package/dist/identity.js.map +1 -0
  206. package/dist/index.d.ts +3 -0
  207. package/dist/index.d.ts.map +1 -0
  208. package/dist/index.js +3 -0
  209. package/dist/index.js.map +1 -0
  210. package/dist/program.d.ts +6 -0
  211. package/dist/program.d.ts.map +1 -0
  212. package/dist/program.js +53 -0
  213. package/dist/program.js.map +1 -0
  214. package/dist/version.d.ts +2 -0
  215. package/dist/version.d.ts.map +1 -0
  216. package/dist/version.js +2 -0
  217. package/dist/version.js.map +1 -0
  218. package/dist/wcat.d.ts +3 -0
  219. package/dist/wcat.d.ts.map +1 -0
  220. package/dist/wcat.js +4 -0
  221. package/dist/wcat.js.map +1 -0
  222. package/package.json +87 -4
  223. package/skills/wordpress-cli/SKILL.md +88 -0
  224. package/skills/wordpress-cli/references/api/api-block-directory.md +17 -0
  225. package/skills/wordpress-cli/references/api/api-block-patterns.md +13 -0
  226. package/skills/wordpress-cli/references/api/api-block-types.md +34 -0
  227. package/skills/wordpress-cli/references/api/api-blocks.md +159 -0
  228. package/skills/wordpress-cli/references/api/api-categories.md +69 -0
  229. package/skills/wordpress-cli/references/api/api-comments.md +79 -0
  230. package/skills/wordpress-cli/references/api/api-font-collections.md +16 -0
  231. package/skills/wordpress-cli/references/api/api-font-families.md +122 -0
  232. package/skills/wordpress-cli/references/api/api-global-styles.md +29 -0
  233. package/skills/wordpress-cli/references/api/api-media.md +106 -0
  234. package/skills/wordpress-cli/references/api/api-menu-items.md +115 -0
  235. package/skills/wordpress-cli/references/api/api-menu-locations.md +22 -0
  236. package/skills/wordpress-cli/references/api/api-menus.md +69 -0
  237. package/skills/wordpress-cli/references/api/api-navigation.md +155 -0
  238. package/skills/wordpress-cli/references/api/api-pages.md +161 -0
  239. package/skills/wordpress-cli/references/api/api-pattern-directory.md +23 -0
  240. package/skills/wordpress-cli/references/api/api-plugins.md +25 -0
  241. package/skills/wordpress-cli/references/api/api-posts.md +166 -0
  242. package/skills/wordpress-cli/references/api/api-search.md +21 -0
  243. package/skills/wordpress-cli/references/api/api-settings.md +19 -0
  244. package/skills/wordpress-cli/references/api/api-sidebars.md +34 -0
  245. package/skills/wordpress-cli/references/api/api-statuses.md +22 -0
  246. package/skills/wordpress-cli/references/api/api-tags.md +69 -0
  247. package/skills/wordpress-cli/references/api/api-taxonomies.md +23 -0
  248. package/skills/wordpress-cli/references/api/api-template-parts.md +38 -0
  249. package/skills/wordpress-cli/references/api/api-templates.md +38 -0
  250. package/skills/wordpress-cli/references/api/api-themes.md +12 -0
  251. package/skills/wordpress-cli/references/api/api-types.md +22 -0
  252. package/skills/wordpress-cli/references/api/api-users.md +149 -0
  253. package/skills/wordpress-cli/references/api/api-widget-types.md +46 -0
  254. package/skills/wordpress-cli/references/api/api-widgets.md +57 -0
  255. package/skills/wordpress-cli/references/api/api-wp-pattern-category.md +69 -0
  256. package/skills/wordpress-cli/references/api.md +44 -0
@@ -0,0 +1,998 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ ccount
5
+ } from "./chunk-MEYYH47C.js";
6
+ import {
7
+ find,
8
+ html,
9
+ stringify,
10
+ stringify2,
11
+ svg
12
+ } from "./chunk-4ZAQMDLD.js";
13
+ import {
14
+ whitespace
15
+ } from "./chunk-DQSOYH6N.js";
16
+ import {
17
+ zwitch
18
+ } from "./chunk-4HP6KGBI.js";
19
+ import {
20
+ __name
21
+ } from "./chunk-ZVVMGPBJ.js";
22
+
23
+ // node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js
24
+ var htmlVoidElements = [
25
+ "area",
26
+ "base",
27
+ "basefont",
28
+ "bgsound",
29
+ "br",
30
+ "col",
31
+ "command",
32
+ "embed",
33
+ "frame",
34
+ "hr",
35
+ "image",
36
+ "img",
37
+ "input",
38
+ "keygen",
39
+ "link",
40
+ "meta",
41
+ "param",
42
+ "source",
43
+ "track",
44
+ "wbr"
45
+ ];
46
+
47
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js
48
+ var defaultSubsetRegex = /["&'<>`]/g;
49
+ var surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
50
+ var controlCharactersRegex = (
51
+ // eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
52
+ /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g
53
+ );
54
+ var regexEscapeRegex = /[|\\{}()[\]^$+*?.]/g;
55
+ var subsetToRegexCache = /* @__PURE__ */ new WeakMap();
56
+ function core(value, options) {
57
+ value = value.replace(
58
+ options.subset ? charactersToExpressionCached(options.subset) : defaultSubsetRegex,
59
+ basic
60
+ );
61
+ if (options.subset || options.escapeOnly) {
62
+ return value;
63
+ }
64
+ return value.replace(surrogatePairsRegex, surrogate).replace(controlCharactersRegex, basic);
65
+ function surrogate(pair, index, all2) {
66
+ return options.format(
67
+ (pair.charCodeAt(0) - 55296) * 1024 + pair.charCodeAt(1) - 56320 + 65536,
68
+ all2.charCodeAt(index + 2),
69
+ options
70
+ );
71
+ }
72
+ __name(surrogate, "surrogate");
73
+ function basic(character, index, all2) {
74
+ return options.format(
75
+ character.charCodeAt(0),
76
+ all2.charCodeAt(index + 1),
77
+ options
78
+ );
79
+ }
80
+ __name(basic, "basic");
81
+ }
82
+ __name(core, "core");
83
+ function charactersToExpressionCached(subset) {
84
+ let cached = subsetToRegexCache.get(subset);
85
+ if (!cached) {
86
+ cached = charactersToExpression(subset);
87
+ subsetToRegexCache.set(subset, cached);
88
+ }
89
+ return cached;
90
+ }
91
+ __name(charactersToExpressionCached, "charactersToExpressionCached");
92
+ function charactersToExpression(subset) {
93
+ const groups = [];
94
+ let index = -1;
95
+ while (++index < subset.length) {
96
+ groups.push(subset[index].replace(regexEscapeRegex, "\\$&"));
97
+ }
98
+ return new RegExp("(?:" + groups.join("|") + ")", "g");
99
+ }
100
+ __name(charactersToExpression, "charactersToExpression");
101
+
102
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js
103
+ var hexadecimalRegex = /[\dA-Fa-f]/;
104
+ function toHexadecimal(code, next, omit) {
105
+ const value = "&#x" + code.toString(16).toUpperCase();
106
+ return omit && next && !hexadecimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
107
+ }
108
+ __name(toHexadecimal, "toHexadecimal");
109
+
110
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js
111
+ var decimalRegex = /\d/;
112
+ function toDecimal(code, next, omit) {
113
+ const value = "&#" + String(code);
114
+ return omit && next && !decimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
115
+ }
116
+ __name(toDecimal, "toDecimal");
117
+
118
+ // node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
119
+ var characterEntitiesLegacy = [
120
+ "AElig",
121
+ "AMP",
122
+ "Aacute",
123
+ "Acirc",
124
+ "Agrave",
125
+ "Aring",
126
+ "Atilde",
127
+ "Auml",
128
+ "COPY",
129
+ "Ccedil",
130
+ "ETH",
131
+ "Eacute",
132
+ "Ecirc",
133
+ "Egrave",
134
+ "Euml",
135
+ "GT",
136
+ "Iacute",
137
+ "Icirc",
138
+ "Igrave",
139
+ "Iuml",
140
+ "LT",
141
+ "Ntilde",
142
+ "Oacute",
143
+ "Ocirc",
144
+ "Ograve",
145
+ "Oslash",
146
+ "Otilde",
147
+ "Ouml",
148
+ "QUOT",
149
+ "REG",
150
+ "THORN",
151
+ "Uacute",
152
+ "Ucirc",
153
+ "Ugrave",
154
+ "Uuml",
155
+ "Yacute",
156
+ "aacute",
157
+ "acirc",
158
+ "acute",
159
+ "aelig",
160
+ "agrave",
161
+ "amp",
162
+ "aring",
163
+ "atilde",
164
+ "auml",
165
+ "brvbar",
166
+ "ccedil",
167
+ "cedil",
168
+ "cent",
169
+ "copy",
170
+ "curren",
171
+ "deg",
172
+ "divide",
173
+ "eacute",
174
+ "ecirc",
175
+ "egrave",
176
+ "eth",
177
+ "euml",
178
+ "frac12",
179
+ "frac14",
180
+ "frac34",
181
+ "gt",
182
+ "iacute",
183
+ "icirc",
184
+ "iexcl",
185
+ "igrave",
186
+ "iquest",
187
+ "iuml",
188
+ "laquo",
189
+ "lt",
190
+ "macr",
191
+ "micro",
192
+ "middot",
193
+ "nbsp",
194
+ "not",
195
+ "ntilde",
196
+ "oacute",
197
+ "ocirc",
198
+ "ograve",
199
+ "ordf",
200
+ "ordm",
201
+ "oslash",
202
+ "otilde",
203
+ "ouml",
204
+ "para",
205
+ "plusmn",
206
+ "pound",
207
+ "quot",
208
+ "raquo",
209
+ "reg",
210
+ "sect",
211
+ "shy",
212
+ "sup1",
213
+ "sup2",
214
+ "sup3",
215
+ "szlig",
216
+ "thorn",
217
+ "times",
218
+ "uacute",
219
+ "ucirc",
220
+ "ugrave",
221
+ "uml",
222
+ "uuml",
223
+ "yacute",
224
+ "yen",
225
+ "yuml"
226
+ ];
227
+
228
+ // node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js
229
+ var characterEntitiesHtml4 = {
230
+ nbsp: "\xA0",
231
+ iexcl: "\xA1",
232
+ cent: "\xA2",
233
+ pound: "\xA3",
234
+ curren: "\xA4",
235
+ yen: "\xA5",
236
+ brvbar: "\xA6",
237
+ sect: "\xA7",
238
+ uml: "\xA8",
239
+ copy: "\xA9",
240
+ ordf: "\xAA",
241
+ laquo: "\xAB",
242
+ not: "\xAC",
243
+ shy: "\xAD",
244
+ reg: "\xAE",
245
+ macr: "\xAF",
246
+ deg: "\xB0",
247
+ plusmn: "\xB1",
248
+ sup2: "\xB2",
249
+ sup3: "\xB3",
250
+ acute: "\xB4",
251
+ micro: "\xB5",
252
+ para: "\xB6",
253
+ middot: "\xB7",
254
+ cedil: "\xB8",
255
+ sup1: "\xB9",
256
+ ordm: "\xBA",
257
+ raquo: "\xBB",
258
+ frac14: "\xBC",
259
+ frac12: "\xBD",
260
+ frac34: "\xBE",
261
+ iquest: "\xBF",
262
+ Agrave: "\xC0",
263
+ Aacute: "\xC1",
264
+ Acirc: "\xC2",
265
+ Atilde: "\xC3",
266
+ Auml: "\xC4",
267
+ Aring: "\xC5",
268
+ AElig: "\xC6",
269
+ Ccedil: "\xC7",
270
+ Egrave: "\xC8",
271
+ Eacute: "\xC9",
272
+ Ecirc: "\xCA",
273
+ Euml: "\xCB",
274
+ Igrave: "\xCC",
275
+ Iacute: "\xCD",
276
+ Icirc: "\xCE",
277
+ Iuml: "\xCF",
278
+ ETH: "\xD0",
279
+ Ntilde: "\xD1",
280
+ Ograve: "\xD2",
281
+ Oacute: "\xD3",
282
+ Ocirc: "\xD4",
283
+ Otilde: "\xD5",
284
+ Ouml: "\xD6",
285
+ times: "\xD7",
286
+ Oslash: "\xD8",
287
+ Ugrave: "\xD9",
288
+ Uacute: "\xDA",
289
+ Ucirc: "\xDB",
290
+ Uuml: "\xDC",
291
+ Yacute: "\xDD",
292
+ THORN: "\xDE",
293
+ szlig: "\xDF",
294
+ agrave: "\xE0",
295
+ aacute: "\xE1",
296
+ acirc: "\xE2",
297
+ atilde: "\xE3",
298
+ auml: "\xE4",
299
+ aring: "\xE5",
300
+ aelig: "\xE6",
301
+ ccedil: "\xE7",
302
+ egrave: "\xE8",
303
+ eacute: "\xE9",
304
+ ecirc: "\xEA",
305
+ euml: "\xEB",
306
+ igrave: "\xEC",
307
+ iacute: "\xED",
308
+ icirc: "\xEE",
309
+ iuml: "\xEF",
310
+ eth: "\xF0",
311
+ ntilde: "\xF1",
312
+ ograve: "\xF2",
313
+ oacute: "\xF3",
314
+ ocirc: "\xF4",
315
+ otilde: "\xF5",
316
+ ouml: "\xF6",
317
+ divide: "\xF7",
318
+ oslash: "\xF8",
319
+ ugrave: "\xF9",
320
+ uacute: "\xFA",
321
+ ucirc: "\xFB",
322
+ uuml: "\xFC",
323
+ yacute: "\xFD",
324
+ thorn: "\xFE",
325
+ yuml: "\xFF",
326
+ fnof: "\u0192",
327
+ Alpha: "\u0391",
328
+ Beta: "\u0392",
329
+ Gamma: "\u0393",
330
+ Delta: "\u0394",
331
+ Epsilon: "\u0395",
332
+ Zeta: "\u0396",
333
+ Eta: "\u0397",
334
+ Theta: "\u0398",
335
+ Iota: "\u0399",
336
+ Kappa: "\u039A",
337
+ Lambda: "\u039B",
338
+ Mu: "\u039C",
339
+ Nu: "\u039D",
340
+ Xi: "\u039E",
341
+ Omicron: "\u039F",
342
+ Pi: "\u03A0",
343
+ Rho: "\u03A1",
344
+ Sigma: "\u03A3",
345
+ Tau: "\u03A4",
346
+ Upsilon: "\u03A5",
347
+ Phi: "\u03A6",
348
+ Chi: "\u03A7",
349
+ Psi: "\u03A8",
350
+ Omega: "\u03A9",
351
+ alpha: "\u03B1",
352
+ beta: "\u03B2",
353
+ gamma: "\u03B3",
354
+ delta: "\u03B4",
355
+ epsilon: "\u03B5",
356
+ zeta: "\u03B6",
357
+ eta: "\u03B7",
358
+ theta: "\u03B8",
359
+ iota: "\u03B9",
360
+ kappa: "\u03BA",
361
+ lambda: "\u03BB",
362
+ mu: "\u03BC",
363
+ nu: "\u03BD",
364
+ xi: "\u03BE",
365
+ omicron: "\u03BF",
366
+ pi: "\u03C0",
367
+ rho: "\u03C1",
368
+ sigmaf: "\u03C2",
369
+ sigma: "\u03C3",
370
+ tau: "\u03C4",
371
+ upsilon: "\u03C5",
372
+ phi: "\u03C6",
373
+ chi: "\u03C7",
374
+ psi: "\u03C8",
375
+ omega: "\u03C9",
376
+ thetasym: "\u03D1",
377
+ upsih: "\u03D2",
378
+ piv: "\u03D6",
379
+ bull: "\u2022",
380
+ hellip: "\u2026",
381
+ prime: "\u2032",
382
+ Prime: "\u2033",
383
+ oline: "\u203E",
384
+ frasl: "\u2044",
385
+ weierp: "\u2118",
386
+ image: "\u2111",
387
+ real: "\u211C",
388
+ trade: "\u2122",
389
+ alefsym: "\u2135",
390
+ larr: "\u2190",
391
+ uarr: "\u2191",
392
+ rarr: "\u2192",
393
+ darr: "\u2193",
394
+ harr: "\u2194",
395
+ crarr: "\u21B5",
396
+ lArr: "\u21D0",
397
+ uArr: "\u21D1",
398
+ rArr: "\u21D2",
399
+ dArr: "\u21D3",
400
+ hArr: "\u21D4",
401
+ forall: "\u2200",
402
+ part: "\u2202",
403
+ exist: "\u2203",
404
+ empty: "\u2205",
405
+ nabla: "\u2207",
406
+ isin: "\u2208",
407
+ notin: "\u2209",
408
+ ni: "\u220B",
409
+ prod: "\u220F",
410
+ sum: "\u2211",
411
+ minus: "\u2212",
412
+ lowast: "\u2217",
413
+ radic: "\u221A",
414
+ prop: "\u221D",
415
+ infin: "\u221E",
416
+ ang: "\u2220",
417
+ and: "\u2227",
418
+ or: "\u2228",
419
+ cap: "\u2229",
420
+ cup: "\u222A",
421
+ int: "\u222B",
422
+ there4: "\u2234",
423
+ sim: "\u223C",
424
+ cong: "\u2245",
425
+ asymp: "\u2248",
426
+ ne: "\u2260",
427
+ equiv: "\u2261",
428
+ le: "\u2264",
429
+ ge: "\u2265",
430
+ sub: "\u2282",
431
+ sup: "\u2283",
432
+ nsub: "\u2284",
433
+ sube: "\u2286",
434
+ supe: "\u2287",
435
+ oplus: "\u2295",
436
+ otimes: "\u2297",
437
+ perp: "\u22A5",
438
+ sdot: "\u22C5",
439
+ lceil: "\u2308",
440
+ rceil: "\u2309",
441
+ lfloor: "\u230A",
442
+ rfloor: "\u230B",
443
+ lang: "\u2329",
444
+ rang: "\u232A",
445
+ loz: "\u25CA",
446
+ spades: "\u2660",
447
+ clubs: "\u2663",
448
+ hearts: "\u2665",
449
+ diams: "\u2666",
450
+ quot: '"',
451
+ amp: "&",
452
+ lt: "<",
453
+ gt: ">",
454
+ OElig: "\u0152",
455
+ oelig: "\u0153",
456
+ Scaron: "\u0160",
457
+ scaron: "\u0161",
458
+ Yuml: "\u0178",
459
+ circ: "\u02C6",
460
+ tilde: "\u02DC",
461
+ ensp: "\u2002",
462
+ emsp: "\u2003",
463
+ thinsp: "\u2009",
464
+ zwnj: "\u200C",
465
+ zwj: "\u200D",
466
+ lrm: "\u200E",
467
+ rlm: "\u200F",
468
+ ndash: "\u2013",
469
+ mdash: "\u2014",
470
+ lsquo: "\u2018",
471
+ rsquo: "\u2019",
472
+ sbquo: "\u201A",
473
+ ldquo: "\u201C",
474
+ rdquo: "\u201D",
475
+ bdquo: "\u201E",
476
+ dagger: "\u2020",
477
+ Dagger: "\u2021",
478
+ permil: "\u2030",
479
+ lsaquo: "\u2039",
480
+ rsaquo: "\u203A",
481
+ euro: "\u20AC"
482
+ };
483
+
484
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js
485
+ var dangerous = [
486
+ "cent",
487
+ "copy",
488
+ "divide",
489
+ "gt",
490
+ "lt",
491
+ "not",
492
+ "para",
493
+ "times"
494
+ ];
495
+
496
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js
497
+ var own = {}.hasOwnProperty;
498
+ var characters = {};
499
+ var key;
500
+ for (key in characterEntitiesHtml4) {
501
+ if (own.call(characterEntitiesHtml4, key)) {
502
+ characters[characterEntitiesHtml4[key]] = key;
503
+ }
504
+ }
505
+ var notAlphanumericRegex = /[^\dA-Za-z]/;
506
+ function toNamed(code, next, omit, attribute) {
507
+ const character = String.fromCharCode(code);
508
+ if (own.call(characters, character)) {
509
+ const name = characters[character];
510
+ const value = "&" + name;
511
+ if (omit && characterEntitiesLegacy.includes(name) && !dangerous.includes(name) && (!attribute || next && next !== 61 && notAlphanumericRegex.test(String.fromCharCode(next)))) {
512
+ return value;
513
+ }
514
+ return value + ";";
515
+ }
516
+ return "";
517
+ }
518
+ __name(toNamed, "toNamed");
519
+
520
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js
521
+ function formatSmart(code, next, options) {
522
+ let numeric = toHexadecimal(code, next, options.omitOptionalSemicolons);
523
+ let named;
524
+ if (options.useNamedReferences || options.useShortestReferences) {
525
+ named = toNamed(
526
+ code,
527
+ next,
528
+ options.omitOptionalSemicolons,
529
+ options.attribute
530
+ );
531
+ }
532
+ if ((options.useShortestReferences || !named) && options.useShortestReferences) {
533
+ const decimal = toDecimal(code, next, options.omitOptionalSemicolons);
534
+ if (decimal.length < numeric.length) {
535
+ numeric = decimal;
536
+ }
537
+ }
538
+ return named && (!options.useShortestReferences || named.length < numeric.length) ? named : numeric;
539
+ }
540
+ __name(formatSmart, "formatSmart");
541
+
542
+ // node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js
543
+ function stringifyEntities(value, options) {
544
+ return core(value, Object.assign({ format: formatSmart }, options));
545
+ }
546
+ __name(stringifyEntities, "stringifyEntities");
547
+
548
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/comment.js
549
+ var htmlCommentRegex = /^>|^->|<!--|-->|--!>|<!-$/g;
550
+ var bogusCommentEntitySubset = [">"];
551
+ var commentEntitySubset = ["<", ">"];
552
+ function comment(node, _1, _2, state) {
553
+ return state.settings.bogusComments ? "<?" + stringifyEntities(
554
+ node.value,
555
+ Object.assign({}, state.settings.characterReferences, {
556
+ subset: bogusCommentEntitySubset
557
+ })
558
+ ) + ">" : "<!--" + node.value.replace(htmlCommentRegex, encode) + "-->";
559
+ function encode($0) {
560
+ return stringifyEntities(
561
+ $0,
562
+ Object.assign({}, state.settings.characterReferences, {
563
+ subset: commentEntitySubset
564
+ })
565
+ );
566
+ }
567
+ __name(encode, "encode");
568
+ }
569
+ __name(comment, "comment");
570
+
571
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/doctype.js
572
+ function doctype(_1, _2, _3, state) {
573
+ return "<!" + (state.settings.upperDoctype ? "DOCTYPE" : "doctype") + (state.settings.tightDoctype ? "" : " ") + "html>";
574
+ }
575
+ __name(doctype, "doctype");
576
+
577
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/omission/util/siblings.js
578
+ var siblingAfter = siblings(1);
579
+ var siblingBefore = siblings(-1);
580
+ var emptyChildren = [];
581
+ function siblings(increment) {
582
+ return sibling;
583
+ function sibling(parent, index, includeWhitespace) {
584
+ const siblings2 = parent ? parent.children : emptyChildren;
585
+ let offset = (index || 0) + increment;
586
+ let next = siblings2[offset];
587
+ if (!includeWhitespace) {
588
+ while (next && whitespace(next)) {
589
+ offset += increment;
590
+ next = siblings2[offset];
591
+ }
592
+ }
593
+ return next;
594
+ }
595
+ __name(sibling, "sibling");
596
+ }
597
+ __name(siblings, "siblings");
598
+
599
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/omission/omission.js
600
+ var own2 = {}.hasOwnProperty;
601
+ function omission(handlers) {
602
+ return omit;
603
+ function omit(node, index, parent) {
604
+ return own2.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
605
+ }
606
+ __name(omit, "omit");
607
+ }
608
+ __name(omission, "omission");
609
+
610
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/omission/closing.js
611
+ var closing = omission({
612
+ body,
613
+ caption: headOrColgroupOrCaption,
614
+ colgroup: headOrColgroupOrCaption,
615
+ dd,
616
+ dt,
617
+ head: headOrColgroupOrCaption,
618
+ html: html2,
619
+ li,
620
+ optgroup,
621
+ option,
622
+ p,
623
+ rp: rubyElement,
624
+ rt: rubyElement,
625
+ tbody,
626
+ td: cells,
627
+ tfoot,
628
+ th: cells,
629
+ thead,
630
+ tr
631
+ });
632
+ function headOrColgroupOrCaption(_, index, parent) {
633
+ const next = siblingAfter(parent, index, true);
634
+ return !next || next.type !== "comment" && !(next.type === "text" && whitespace(next.value.charAt(0)));
635
+ }
636
+ __name(headOrColgroupOrCaption, "headOrColgroupOrCaption");
637
+ function html2(_, index, parent) {
638
+ const next = siblingAfter(parent, index);
639
+ return !next || next.type !== "comment";
640
+ }
641
+ __name(html2, "html");
642
+ function body(_, index, parent) {
643
+ const next = siblingAfter(parent, index);
644
+ return !next || next.type !== "comment";
645
+ }
646
+ __name(body, "body");
647
+ function p(_, index, parent) {
648
+ const next = siblingAfter(parent, index);
649
+ return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
650
+ !(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video" || // Custom element.
651
+ parent.tagName.includes("-")));
652
+ }
653
+ __name(p, "p");
654
+ function li(_, index, parent) {
655
+ const next = siblingAfter(parent, index);
656
+ return !next || next.type === "element" && next.tagName === "li";
657
+ }
658
+ __name(li, "li");
659
+ function dt(_, index, parent) {
660
+ const next = siblingAfter(parent, index);
661
+ return Boolean(
662
+ next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
663
+ );
664
+ }
665
+ __name(dt, "dt");
666
+ function dd(_, index, parent) {
667
+ const next = siblingAfter(parent, index);
668
+ return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
669
+ }
670
+ __name(dd, "dd");
671
+ function rubyElement(_, index, parent) {
672
+ const next = siblingAfter(parent, index);
673
+ return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
674
+ }
675
+ __name(rubyElement, "rubyElement");
676
+ function optgroup(_, index, parent) {
677
+ const next = siblingAfter(parent, index);
678
+ return !next || next.type === "element" && next.tagName === "optgroup";
679
+ }
680
+ __name(optgroup, "optgroup");
681
+ function option(_, index, parent) {
682
+ const next = siblingAfter(parent, index);
683
+ return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
684
+ }
685
+ __name(option, "option");
686
+ function thead(_, index, parent) {
687
+ const next = siblingAfter(parent, index);
688
+ return Boolean(
689
+ next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
690
+ );
691
+ }
692
+ __name(thead, "thead");
693
+ function tbody(_, index, parent) {
694
+ const next = siblingAfter(parent, index);
695
+ return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
696
+ }
697
+ __name(tbody, "tbody");
698
+ function tfoot(_, index, parent) {
699
+ return !siblingAfter(parent, index);
700
+ }
701
+ __name(tfoot, "tfoot");
702
+ function tr(_, index, parent) {
703
+ const next = siblingAfter(parent, index);
704
+ return !next || next.type === "element" && next.tagName === "tr";
705
+ }
706
+ __name(tr, "tr");
707
+ function cells(_, index, parent) {
708
+ const next = siblingAfter(parent, index);
709
+ return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
710
+ }
711
+ __name(cells, "cells");
712
+
713
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/omission/opening.js
714
+ var opening = omission({
715
+ body: body2,
716
+ colgroup,
717
+ head,
718
+ html: html3,
719
+ tbody: tbody2
720
+ });
721
+ function html3(node) {
722
+ const head2 = siblingAfter(node, -1);
723
+ return !head2 || head2.type !== "comment";
724
+ }
725
+ __name(html3, "html");
726
+ function head(node) {
727
+ const seen = /* @__PURE__ */ new Set();
728
+ for (const child2 of node.children) {
729
+ if (child2.type === "element" && (child2.tagName === "base" || child2.tagName === "title")) {
730
+ if (seen.has(child2.tagName)) return false;
731
+ seen.add(child2.tagName);
732
+ }
733
+ }
734
+ const child = node.children[0];
735
+ return !child || child.type === "element";
736
+ }
737
+ __name(head, "head");
738
+ function body2(node) {
739
+ const head2 = siblingAfter(node, -1, true);
740
+ return !head2 || head2.type !== "comment" && !(head2.type === "text" && whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
741
+ }
742
+ __name(body2, "body");
743
+ function colgroup(node, index, parent) {
744
+ const previous = siblingBefore(parent, index);
745
+ if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing(previous, parent.children.indexOf(previous), parent)) {
746
+ return false;
747
+ }
748
+ const head2 = siblingAfter(node, -1, true);
749
+ return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
750
+ }
751
+ __name(colgroup, "colgroup");
752
+ function tbody2(node, index, parent) {
753
+ const previous = siblingBefore(parent, index);
754
+ if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing(previous, parent.children.indexOf(previous), parent)) {
755
+ return false;
756
+ }
757
+ const head2 = siblingAfter(node, -1);
758
+ return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
759
+ }
760
+ __name(tbody2, "tbody");
761
+
762
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/element.js
763
+ var constants = {
764
+ // See: <https://html.spec.whatwg.org/#attribute-name-state>.
765
+ name: [
766
+ [" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")],
767
+ [`\0
768
+ \f\r "&'/<=>`.split(""), "\0 \n\f\r \"&'/<=>`".split("")]
769
+ ],
770
+ // See: <https://html.spec.whatwg.org/#attribute-value-(unquoted)-state>.
771
+ unquoted: [
772
+ [" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")],
773
+ ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]
774
+ ],
775
+ // See: <https://html.spec.whatwg.org/#attribute-value-(single-quoted)-state>.
776
+ single: [
777
+ ["&'".split(""), "\"&'`".split("")],
778
+ ["\0&'".split(""), "\0\"&'`".split("")]
779
+ ],
780
+ // See: <https://html.spec.whatwg.org/#attribute-value-(double-quoted)-state>.
781
+ double: [
782
+ ['"&'.split(""), "\"&'`".split("")],
783
+ ['\0"&'.split(""), "\0\"&'`".split("")]
784
+ ]
785
+ };
786
+ var htmlIntegrationPoints = /* @__PURE__ */ new Set(["desc", "foreignObject", "title"]);
787
+ function element(node, index, parent, state) {
788
+ const { schema } = state;
789
+ const omit = schema.space === "svg" ? false : state.settings.omitOptionalTags;
790
+ let selfClosing = schema.space === "svg" ? state.settings.closeEmptyElements : state.settings.voids.includes(node.tagName.toLowerCase());
791
+ const parts = [];
792
+ if (schema.space === "html" && node.tagName === "svg") {
793
+ state.schema = svg;
794
+ }
795
+ const attributes = serializeAttributes(state, node.properties);
796
+ if (state.schema.space === "svg" && htmlIntegrationPoints.has(node.tagName)) {
797
+ state.schema = html;
798
+ }
799
+ const content = state.all(
800
+ schema.space === "html" && node.tagName === "template" ? node.content : node
801
+ );
802
+ state.schema = schema;
803
+ if (content) selfClosing = false;
804
+ if (attributes || !omit || !opening(node, index, parent)) {
805
+ parts.push("<", node.tagName, attributes ? " " + attributes : "");
806
+ if (selfClosing && (schema.space === "svg" || state.settings.closeSelfClosing)) {
807
+ const last = attributes.charAt(attributes.length - 1);
808
+ if (!state.settings.tightSelfClosing || last === "/" || last && last !== '"' && last !== "'") {
809
+ parts.push(" ");
810
+ }
811
+ parts.push("/");
812
+ }
813
+ parts.push(">");
814
+ }
815
+ parts.push(content);
816
+ if (!selfClosing && (!omit || !closing(node, index, parent))) {
817
+ parts.push("</" + node.tagName + ">");
818
+ }
819
+ return parts.join("");
820
+ }
821
+ __name(element, "element");
822
+ function serializeAttributes(state, properties) {
823
+ const values = [];
824
+ let index = -1;
825
+ let key2;
826
+ if (properties) {
827
+ for (key2 in properties) {
828
+ if (properties[key2] !== null && properties[key2] !== void 0) {
829
+ const value = serializeAttribute(state, key2, properties[key2]);
830
+ if (value) values.push(value);
831
+ }
832
+ }
833
+ }
834
+ while (++index < values.length) {
835
+ const last = state.settings.tightAttributes ? values[index].charAt(values[index].length - 1) : void 0;
836
+ if (index !== values.length - 1 && last !== '"' && last !== "'") {
837
+ values[index] += " ";
838
+ }
839
+ }
840
+ return values.join("");
841
+ }
842
+ __name(serializeAttributes, "serializeAttributes");
843
+ function serializeAttribute(state, key2, value) {
844
+ const info = find(state.schema, key2);
845
+ const x = state.settings.allowParseErrors && state.schema.space === "html" ? 0 : 1;
846
+ const y = state.settings.allowDangerousCharacters ? 0 : 1;
847
+ if (info.overloadedBoolean && (value === info.attribute || value === "")) {
848
+ value = true;
849
+ } else if ((info.boolean || info.overloadedBoolean) && (typeof value !== "string" || value === info.attribute || value === "")) {
850
+ value = Boolean(value);
851
+ }
852
+ if (value === null || value === void 0 || value === false || typeof value === "number" && Number.isNaN(value)) {
853
+ return "";
854
+ }
855
+ const name = stringifyEntities(
856
+ info.attribute,
857
+ Object.assign({}, state.settings.characterReferences, {
858
+ // Always encode without parse errors in non-HTML.
859
+ subset: constants.name[x][y]
860
+ })
861
+ );
862
+ if (value === true) return name;
863
+ value = Array.isArray(value) ? (info.commaSeparated ? stringify : stringify2)(value, {
864
+ padLeft: !state.settings.tightCommaSeparatedLists
865
+ }) : String(value);
866
+ if (state.settings.collapseEmptyAttributes && !value) return name;
867
+ let result;
868
+ if (state.settings.preferUnquoted) {
869
+ result = stringifyEntities(
870
+ value,
871
+ Object.assign({}, state.settings.characterReferences, {
872
+ attribute: true,
873
+ subset: constants.unquoted[x][y]
874
+ })
875
+ );
876
+ }
877
+ if (result !== value) {
878
+ let { quote } = state;
879
+ if (state.settings.quoteSmart && ccount(value, quote) > ccount(value, state.alternative)) {
880
+ quote = state.alternative;
881
+ }
882
+ result = quote + stringifyEntities(
883
+ value,
884
+ Object.assign({}, state.settings.characterReferences, {
885
+ // Always encode without parse errors in non-HTML.
886
+ subset: (quote === "'" ? constants.single : constants.double)[x][y],
887
+ attribute: true
888
+ })
889
+ ) + quote;
890
+ }
891
+ return name + (result ? "=" + result : result);
892
+ }
893
+ __name(serializeAttribute, "serializeAttribute");
894
+
895
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/text.js
896
+ var textEntitySubset = ["<", "&"];
897
+ function text(node, _, parent, state) {
898
+ return parent && parent.type === "element" && (parent.tagName === "script" || parent.tagName === "style") ? node.value : stringifyEntities(
899
+ node.value,
900
+ Object.assign({}, state.settings.characterReferences, {
901
+ subset: textEntitySubset
902
+ })
903
+ );
904
+ }
905
+ __name(text, "text");
906
+
907
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/raw.js
908
+ function raw(node, index, parent, state) {
909
+ return state.settings.allowDangerousHtml ? node.value : text(node, index, parent, state);
910
+ }
911
+ __name(raw, "raw");
912
+
913
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/root.js
914
+ function root(node, _1, _2, state) {
915
+ return state.all(node);
916
+ }
917
+ __name(root, "root");
918
+
919
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/handle/index.js
920
+ var handle = zwitch("type", {
921
+ invalid,
922
+ unknown,
923
+ handlers: { comment, doctype, element, raw, root, text }
924
+ });
925
+ function invalid(node) {
926
+ throw new Error("Expected node, not `" + node + "`");
927
+ }
928
+ __name(invalid, "invalid");
929
+ function unknown(node_) {
930
+ const node = (
931
+ /** @type {Nodes} */
932
+ node_
933
+ );
934
+ throw new Error("Cannot compile unknown node `" + node.type + "`");
935
+ }
936
+ __name(unknown, "unknown");
937
+
938
+ // node_modules/.pnpm/hast-util-to-html@9.0.6/node_modules/hast-util-to-html/lib/index.js
939
+ var emptyOptions = {};
940
+ var emptyCharacterReferences = {};
941
+ var emptyChildren2 = [];
942
+ function toHtml(tree, options) {
943
+ const options_ = options || emptyOptions;
944
+ const quote = options_.quote || '"';
945
+ if (quote !== '"' && quote !== "'") {
946
+ throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
947
+ }
948
+ const alternative = quote === '"' ? "'" : '"';
949
+ const state = {
950
+ one,
951
+ all,
952
+ settings: {
953
+ omitOptionalTags: options_.omitOptionalTags || false,
954
+ allowParseErrors: options_.allowParseErrors || false,
955
+ allowDangerousCharacters: options_.allowDangerousCharacters || false,
956
+ quoteSmart: options_.quoteSmart || false,
957
+ preferUnquoted: options_.preferUnquoted || false,
958
+ tightAttributes: options_.tightAttributes || false,
959
+ upperDoctype: options_.upperDoctype || false,
960
+ tightDoctype: options_.tightDoctype || false,
961
+ bogusComments: options_.bogusComments || false,
962
+ tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
963
+ tightSelfClosing: options_.tightSelfClosing || false,
964
+ collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
965
+ allowDangerousHtml: options_.allowDangerousHtml || false,
966
+ voids: options_.voids || htmlVoidElements,
967
+ characterReferences: options_.characterReferences || emptyCharacterReferences,
968
+ closeSelfClosing: options_.closeSelfClosing || false,
969
+ closeEmptyElements: options_.closeEmptyElements || false
970
+ },
971
+ schema: options_.space === "svg" ? svg : html,
972
+ quote,
973
+ alternative
974
+ };
975
+ return state.one(
976
+ Array.isArray(tree) ? { type: "root", children: tree } : tree,
977
+ void 0,
978
+ void 0
979
+ );
980
+ }
981
+ __name(toHtml, "toHtml");
982
+ function one(node, index, parent) {
983
+ return handle(node, index, parent, this);
984
+ }
985
+ __name(one, "one");
986
+ function all(parent) {
987
+ const results = [];
988
+ const children = parent && parent.children || emptyChildren2;
989
+ let index = -1;
990
+ while (++index < children.length) {
991
+ results[index] = this.one(children[index], index, parent);
992
+ }
993
+ return results.join("");
994
+ }
995
+ __name(all, "all");
996
+ export {
997
+ toHtml
998
+ };