bantou 0.1.0 → 0.2.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 (515) hide show
  1. package/.output/nitro.json +13 -0
  2. package/.output/public/_nuxt/BmGsA4i2.js +1 -0
  3. package/.output/public/_nuxt/D_G6gzEa.js +1 -0
  4. package/.output/public/_nuxt/builds/latest.json +1 -0
  5. package/.output/public/_nuxt/builds/meta/1a8fc623-6671-445b-bdd3-c3d073520a3a.json +1 -0
  6. package/.output/public/_nuxt/entry.CZSvzYhH.css +1 -0
  7. package/.output/public/_nuxt/error-404.C3wqHTJz.css +1 -0
  8. package/.output/public/_nuxt/error-500.D6rBzoDj.css +1 -0
  9. package/.output/public/_nuxt/pdFQkwM_.js +4 -0
  10. package/.output/server/chunks/_/error-500.mjs +20 -0
  11. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  12. package/.output/server/chunks/nitro/nitro.mjs +5870 -0
  13. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  14. package/.output/server/chunks/routes/mcp.mjs +22 -0
  15. package/.output/server/chunks/routes/mcp.mjs.map +1 -0
  16. package/.output/server/chunks/routes/renderer.mjs +462 -0
  17. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  18. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  19. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  20. package/.output/server/chunks/virtual/precomputed.mjs +4 -0
  21. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
  22. package/.output/server/index.mjs +18 -0
  23. package/.output/server/index.mjs.map +1 -0
  24. package/.output/server/node_modules/@babel/parser/lib/index.js +14657 -0
  25. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  26. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
  27. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
  28. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
  29. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
  30. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
  31. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
  32. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
  33. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +971 -0
  34. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
  35. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  36. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +961 -0
  37. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
  38. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
  39. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  40. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1137 -0
  41. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
  42. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
  43. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
  44. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
  45. package/.output/server/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
  46. package/.output/server/node_modules/@parcel/watcher-wasm/index.mjs +349 -0
  47. package/.output/server/node_modules/@parcel/watcher-wasm/package.json +44 -0
  48. package/.output/server/node_modules/@parcel/watcher-wasm/watcher.wasm +0 -0
  49. package/.output/server/node_modules/@parcel/watcher-wasm/wrapper.js +88 -0
  50. package/.output/server/node_modules/@unagents/messenger-broker/dist/index.mjs +12 -0
  51. package/.output/server/node_modules/@unagents/messenger-broker/dist/shared/messenger-broker.B8W77sqB.mjs +1177 -0
  52. package/.output/server/node_modules/@unagents/messenger-broker/package.json +37 -0
  53. package/.output/server/node_modules/@unagents/messenger-client/dist/index.mjs +9 -0
  54. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CfQVmH_Z.mjs +975 -0
  55. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CoDKzubj.mjs +1000 -0
  56. package/.output/server/node_modules/@unagents/messenger-client/package.json +37 -0
  57. package/.output/server/node_modules/@unagents/messenger-protocol/dist/index.mjs +103 -0
  58. package/.output/server/node_modules/@unagents/messenger-protocol/package.json +29 -0
  59. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6802 -0
  60. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  61. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  62. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  63. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
  64. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  65. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1933 -0
  66. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  67. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7085 -0
  68. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  69. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1917 -0
  70. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  71. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  72. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  73. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +655 -0
  74. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  75. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  76. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  77. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  78. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  79. package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
  80. package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
  81. package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
  82. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
  83. package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
  84. package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
  85. package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
  86. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  87. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  88. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  89. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  90. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
  91. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  92. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  93. package/.output/server/node_modules/ajv/dist/core.js +618 -0
  94. package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
  95. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  96. package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
  97. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  98. package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
  99. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  100. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  101. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  102. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  103. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  104. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  105. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  106. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  107. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  108. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  109. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  110. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  111. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  112. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  113. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  114. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  115. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  116. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  117. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
  118. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  119. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  120. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  121. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  122. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  123. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  124. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  125. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  126. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  127. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  128. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  129. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  130. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  131. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  132. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  133. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  134. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  135. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  136. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  137. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  138. package/.output/server/node_modules/ajv/package.json +126 -0
  139. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  140. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  141. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  142. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  143. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  144. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  145. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  146. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  147. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  148. package/.output/server/node_modules/consola/dist/utils.mjs +54 -0
  149. package/.output/server/node_modules/consola/package.json +136 -0
  150. package/.output/server/node_modules/content-type/index.js +225 -0
  151. package/.output/server/node_modules/content-type/package.json +42 -0
  152. package/.output/server/node_modules/cookie-es/dist/index.mjs +268 -0
  153. package/.output/server/node_modules/cookie-es/package.json +46 -0
  154. package/.output/server/node_modules/crossws/dist/_chunks/_request.mjs +83 -0
  155. package/.output/server/node_modules/crossws/dist/_chunks/adapter.mjs +234 -0
  156. package/.output/server/node_modules/crossws/dist/_chunks/error.mjs +7 -0
  157. package/.output/server/node_modules/crossws/dist/_chunks/libs/ws.mjs +6 -0
  158. package/.output/server/node_modules/crossws/dist/_chunks/node.mjs +220 -0
  159. package/.output/server/node_modules/crossws/dist/_chunks/peer.mjs +208 -0
  160. package/.output/server/node_modules/crossws/dist/adapters/node.mjs +1 -0
  161. package/.output/server/node_modules/crossws/package.json +115 -0
  162. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  163. package/.output/server/node_modules/defu/package.json +48 -0
  164. package/.output/server/node_modules/destr/dist/index.mjs +72 -0
  165. package/.output/server/node_modules/destr/package.json +47 -0
  166. package/.output/server/node_modules/devalue/index.js +17 -0
  167. package/.output/server/node_modules/devalue/package.json +39 -0
  168. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  169. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  170. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  171. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  172. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  173. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  174. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  175. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  176. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  177. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  178. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  179. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  180. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  181. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  182. package/.output/server/node_modules/entities/package.json +120 -0
  183. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  184. package/.output/server/node_modules/estree-walker/package.json +37 -0
  185. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  186. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  187. package/.output/server/node_modules/fast-uri/index.js +711 -0
  188. package/.output/server/node_modules/fast-uri/lib/schemes.js +272 -0
  189. package/.output/server/node_modules/fast-uri/lib/utils.js +799 -0
  190. package/.output/server/node_modules/fast-uri/package.json +68 -0
  191. package/.output/server/node_modules/get-port-please/dist/index.mjs +430 -0
  192. package/.output/server/node_modules/get-port-please/package.json +39 -0
  193. package/.output/server/node_modules/h3/dist/index.mjs +2498 -0
  194. package/.output/server/node_modules/h3/package.json +75 -0
  195. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  196. package/.output/server/node_modules/hookable/package.json +54 -0
  197. package/.output/server/node_modules/http-shutdown/index.js +85 -0
  198. package/.output/server/node_modules/http-shutdown/package.json +32 -0
  199. package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
  200. package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
  201. package/.output/server/node_modules/is-extglob/index.js +20 -0
  202. package/.output/server/node_modules/is-extglob/package.json +69 -0
  203. package/.output/server/node_modules/is-glob/index.js +150 -0
  204. package/.output/server/node_modules/is-glob/package.json +81 -0
  205. package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -0
  206. package/.output/server/node_modules/jiti/lib/jiti.mjs +29 -0
  207. package/.output/server/node_modules/jiti/package.json +146 -0
  208. package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
  209. package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
  210. package/.output/server/node_modules/listhen/dist/chunks/xdg-open.mjs +1069 -0
  211. package/.output/server/node_modules/listhen/dist/index.mjs +19 -0
  212. package/.output/server/node_modules/listhen/dist/shared/listhen.tqe5I1Rl.mjs +1040 -0
  213. package/.output/server/node_modules/listhen/package.json +84 -0
  214. package/.output/server/node_modules/napi-wasm/index.mjs +1371 -0
  215. package/.output/server/node_modules/napi-wasm/package.json +33 -0
  216. package/.output/server/node_modules/node-forge/lib/aes.js +1091 -0
  217. package/.output/server/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  218. package/.output/server/node_modules/node-forge/lib/asn1-validator.js +91 -0
  219. package/.output/server/node_modules/node-forge/lib/asn1.js +1522 -0
  220. package/.output/server/node_modules/node-forge/lib/baseN.js +186 -0
  221. package/.output/server/node_modules/node-forge/lib/cipher.js +230 -0
  222. package/.output/server/node_modules/node-forge/lib/cipherModes.js +1027 -0
  223. package/.output/server/node_modules/node-forge/lib/des.js +496 -0
  224. package/.output/server/node_modules/node-forge/lib/ed25519.js +1091 -0
  225. package/.output/server/node_modules/node-forge/lib/forge.js +13 -0
  226. package/.output/server/node_modules/node-forge/lib/hmac.js +146 -0
  227. package/.output/server/node_modules/node-forge/lib/index.js +33 -0
  228. package/.output/server/node_modules/node-forge/lib/jsbn.js +1294 -0
  229. package/.output/server/node_modules/node-forge/lib/kem.js +168 -0
  230. package/.output/server/node_modules/node-forge/lib/log.js +319 -0
  231. package/.output/server/node_modules/node-forge/lib/md.all.js +13 -0
  232. package/.output/server/node_modules/node-forge/lib/md.js +11 -0
  233. package/.output/server/node_modules/node-forge/lib/md5.js +289 -0
  234. package/.output/server/node_modules/node-forge/lib/mgf.js +12 -0
  235. package/.output/server/node_modules/node-forge/lib/mgf1.js +57 -0
  236. package/.output/server/node_modules/node-forge/lib/oids.js +180 -0
  237. package/.output/server/node_modules/node-forge/lib/pbe.js +1029 -0
  238. package/.output/server/node_modules/node-forge/lib/pbkdf2.js +211 -0
  239. package/.output/server/node_modules/node-forge/lib/pem.js +413 -0
  240. package/.output/server/node_modules/node-forge/lib/pkcs1.js +276 -0
  241. package/.output/server/node_modules/node-forge/lib/pkcs12.js +1081 -0
  242. package/.output/server/node_modules/node-forge/lib/pkcs7.js +1260 -0
  243. package/.output/server/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  244. package/.output/server/node_modules/node-forge/lib/pki.js +102 -0
  245. package/.output/server/node_modules/node-forge/lib/prime.js +297 -0
  246. package/.output/server/node_modules/node-forge/lib/prng.js +419 -0
  247. package/.output/server/node_modules/node-forge/lib/pss.js +241 -0
  248. package/.output/server/node_modules/node-forge/lib/random.js +191 -0
  249. package/.output/server/node_modules/node-forge/lib/rc2.js +410 -0
  250. package/.output/server/node_modules/node-forge/lib/rsa.js +2014 -0
  251. package/.output/server/node_modules/node-forge/lib/sha1.js +319 -0
  252. package/.output/server/node_modules/node-forge/lib/sha256.js +327 -0
  253. package/.output/server/node_modules/node-forge/lib/sha512.js +561 -0
  254. package/.output/server/node_modules/node-forge/lib/ssh.js +236 -0
  255. package/.output/server/node_modules/node-forge/lib/tls.js +4334 -0
  256. package/.output/server/node_modules/node-forge/lib/util.js +2652 -0
  257. package/.output/server/node_modules/node-forge/lib/x509.js +3257 -0
  258. package/.output/server/node_modules/node-forge/package.json +123 -0
  259. package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
  260. package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
  261. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
  262. package/.output/server/node_modules/node-mock-http/package.json +63 -0
  263. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
  264. package/.output/server/node_modules/nostics/dist/index.mjs +194 -0
  265. package/.output/server/node_modules/nostics/package.json +126 -0
  266. package/.output/server/node_modules/pathe/dist/index.mjs +19 -0
  267. package/.output/server/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +249 -0
  268. package/.output/server/node_modules/pathe/package.json +61 -0
  269. package/.output/server/node_modules/picomatch/index.js +17 -0
  270. package/.output/server/node_modules/picomatch/lib/constants.js +184 -0
  271. package/.output/server/node_modules/picomatch/lib/parse.js +1425 -0
  272. package/.output/server/node_modules/picomatch/lib/picomatch.js +361 -0
  273. package/.output/server/node_modules/picomatch/lib/scan.js +403 -0
  274. package/.output/server/node_modules/picomatch/lib/utils.js +72 -0
  275. package/.output/server/node_modules/picomatch/package.json +83 -0
  276. package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
  277. package/.output/server/node_modules/radix3/package.json +52 -0
  278. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  279. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  280. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  281. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  282. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  283. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +141 -0
  284. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
  285. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +446 -0
  286. package/.output/server/node_modules/source-map-js/lib/source-node.js +420 -0
  287. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  288. package/.output/server/node_modules/source-map-js/package.json +71 -0
  289. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  290. package/.output/server/node_modules/std-env/dist/index.mjs +1 -0
  291. package/.output/server/node_modules/std-env/package.json +43 -0
  292. package/.output/server/node_modules/tinyclip/dist/index.js +143 -0
  293. package/.output/server/node_modules/tinyclip/package.json +48 -0
  294. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  295. package/.output/server/node_modules/ufo/package.json +48 -0
  296. package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
  297. package/.output/server/node_modules/uncrypto/package.json +60 -0
  298. package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
  299. package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
  300. package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
  301. package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
  302. package/.output/server/node_modules/unhead/dist/plugins.mjs +782 -0
  303. package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
  304. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
  305. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
  306. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
  307. package/.output/server/node_modules/unhead/dist/shared/unhead.C5Bksi2B.mjs +49 -0
  308. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
  309. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
  310. package/.output/server/node_modules/unhead/dist/shared/unhead.C_7zwq8E.mjs +11 -0
  311. package/.output/server/node_modules/unhead/dist/shared/unhead.CaeaMM5q.mjs +19 -0
  312. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
  313. package/.output/server/node_modules/unhead/dist/shared/unhead.D9VfQWNo.mjs +240 -0
  314. package/.output/server/node_modules/unhead/dist/shared/unhead.DD4N5B4k.mjs +224 -0
  315. package/.output/server/node_modules/unhead/dist/shared/unhead.DGl9jcjg.mjs +196 -0
  316. package/.output/server/node_modules/unhead/dist/shared/unhead.DJuZwX9c.mjs +400 -0
  317. package/.output/server/node_modules/unhead/dist/shared/unhead.DkxnqlHC.mjs +264 -0
  318. package/.output/server/node_modules/unhead/dist/shared/unhead.DspMpm6y.mjs +48 -0
  319. package/.output/server/node_modules/unhead/dist/shared/unhead.o8j9utSy.mjs +208 -0
  320. package/.output/server/node_modules/unhead/dist/stream/client.mjs +33 -0
  321. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
  322. package/.output/server/node_modules/unhead/dist/stream/server.mjs +446 -0
  323. package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
  324. package/.output/server/node_modules/unhead/package.json +179 -0
  325. package/.output/server/node_modules/untun/dist/_chunks/cloudflared.mjs +179 -0
  326. package/.output/server/node_modules/untun/dist/_chunks/log.mjs +27 -0
  327. package/.output/server/node_modules/untun/dist/index.mjs +47 -0
  328. package/.output/server/node_modules/untun/package.json +44 -0
  329. package/.output/server/node_modules/uqr/dist/index.mjs +739 -0
  330. package/.output/server/node_modules/uqr/package.json +69 -0
  331. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  332. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  333. package/.output/server/node_modules/vue/index.js +7 -0
  334. package/.output/server/node_modules/vue/index.mjs +1 -0
  335. package/.output/server/node_modules/vue/package.json +112 -0
  336. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  337. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +687 -0
  338. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  339. package/.output/server/node_modules/zod/index.js +7 -0
  340. package/.output/server/node_modules/zod/package.json +147 -0
  341. package/.output/server/node_modules/zod/v3/ZodError.js +143 -0
  342. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  343. package/.output/server/node_modules/zod/v3/external.js +6 -0
  344. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  345. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  346. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  347. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  348. package/.output/server/node_modules/zod/v3/index.js +4 -0
  349. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  350. package/.output/server/node_modules/zod/v3/package.json +7 -0
  351. package/.output/server/node_modules/zod/v3/types.js +3697 -0
  352. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  353. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  354. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  355. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  356. package/.output/server/node_modules/zod/v4/classic/errors.js +57 -0
  357. package/.output/server/node_modules/zod/v4/classic/external.js +17 -0
  358. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  359. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  360. package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
  361. package/.output/server/node_modules/zod/v4/classic/iso.js +15 -0
  362. package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
  363. package/.output/server/node_modules/zod/v4/classic/parse.js +16 -0
  364. package/.output/server/node_modules/zod/v4/classic/schemas.js +1535 -0
  365. package/.output/server/node_modules/zod/v4/core/api.js +1107 -0
  366. package/.output/server/node_modules/zod/v4/core/checks.js +516 -0
  367. package/.output/server/node_modules/zod/v4/core/compile.js +1866 -0
  368. package/.output/server/node_modules/zod/v4/core/core.js +141 -0
  369. package/.output/server/node_modules/zod/v4/core/doc.js +38 -0
  370. package/.output/server/node_modules/zod/v4/core/errors.js +267 -0
  371. package/.output/server/node_modules/zod/v4/core/index.js +19 -0
  372. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  373. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  374. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  375. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  376. package/.output/server/node_modules/zod/v4/core/package.json +7 -0
  377. package/.output/server/node_modules/zod/v4/core/parse.js +175 -0
  378. package/.output/server/node_modules/zod/v4/core/regexes.js +156 -0
  379. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  380. package/.output/server/node_modules/zod/v4/core/schemas.js +2636 -0
  381. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +651 -0
  382. package/.output/server/node_modules/zod/v4/core/util.js +873 -0
  383. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  384. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  385. package/.output/server/node_modules/zod/v4/index.js +4 -0
  386. package/.output/server/node_modules/zod/v4/locales/ar.js +111 -0
  387. package/.output/server/node_modules/zod/v4/locales/az.js +110 -0
  388. package/.output/server/node_modules/zod/v4/locales/be.js +168 -0
  389. package/.output/server/node_modules/zod/v4/locales/bg.js +125 -0
  390. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  391. package/.output/server/node_modules/zod/v4/locales/ca.js +112 -0
  392. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  393. package/.output/server/node_modules/zod/v4/locales/cs.js +116 -0
  394. package/.output/server/node_modules/zod/v4/locales/da.js +120 -0
  395. package/.output/server/node_modules/zod/v4/locales/de.js +113 -0
  396. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  397. package/.output/server/node_modules/zod/v4/locales/en.js +125 -0
  398. package/.output/server/node_modules/zod/v4/locales/eo.js +114 -0
  399. package/.output/server/node_modules/zod/v4/locales/es.js +136 -0
  400. package/.output/server/node_modules/zod/v4/locales/fa.js +119 -0
  401. package/.output/server/node_modules/zod/v4/locales/fi.js +117 -0
  402. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +112 -0
  403. package/.output/server/node_modules/zod/v4/locales/fr.js +129 -0
  404. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  405. package/.output/server/node_modules/zod/v4/locales/he.js +221 -0
  406. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  407. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  408. package/.output/server/node_modules/zod/v4/locales/hu.js +113 -0
  409. package/.output/server/node_modules/zod/v4/locales/hy.js +158 -0
  410. package/.output/server/node_modules/zod/v4/locales/id.js +111 -0
  411. package/.output/server/node_modules/zod/v4/locales/index.js +63 -0
  412. package/.output/server/node_modules/zod/v4/locales/is.js +114 -0
  413. package/.output/server/node_modules/zod/v4/locales/it.js +113 -0
  414. package/.output/server/node_modules/zod/v4/locales/ja.js +112 -0
  415. package/.output/server/node_modules/zod/v4/locales/ka.js +117 -0
  416. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  417. package/.output/server/node_modules/zod/v4/locales/km.js +115 -0
  418. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  419. package/.output/server/node_modules/zod/v4/locales/ko.js +116 -0
  420. package/.output/server/node_modules/zod/v4/locales/lt.js +207 -0
  421. package/.output/server/node_modules/zod/v4/locales/mk.js +114 -0
  422. package/.output/server/node_modules/zod/v4/locales/ms.js +112 -0
  423. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  424. package/.output/server/node_modules/zod/v4/locales/nl.js +115 -0
  425. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  426. package/.output/server/node_modules/zod/v4/locales/no.js +113 -0
  427. package/.output/server/node_modules/zod/v4/locales/ota.js +114 -0
  428. package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
  429. package/.output/server/node_modules/zod/v4/locales/pl.js +114 -0
  430. package/.output/server/node_modules/zod/v4/locales/ps.js +119 -0
  431. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  432. package/.output/server/node_modules/zod/v4/locales/pt.js +142 -0
  433. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  434. package/.output/server/node_modules/zod/v4/locales/ru.js +168 -0
  435. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  436. package/.output/server/node_modules/zod/v4/locales/sl.js +114 -0
  437. package/.output/server/node_modules/zod/v4/locales/sv.js +115 -0
  438. package/.output/server/node_modules/zod/v4/locales/ta.js +115 -0
  439. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  440. package/.output/server/node_modules/zod/v4/locales/th.js +115 -0
  441. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  442. package/.output/server/node_modules/zod/v4/locales/tr.js +110 -0
  443. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  444. package/.output/server/node_modules/zod/v4/locales/uk.js +113 -0
  445. package/.output/server/node_modules/zod/v4/locales/ur.js +115 -0
  446. package/.output/server/node_modules/zod/v4/locales/uz.js +113 -0
  447. package/.output/server/node_modules/zod/v4/locales/vi.js +113 -0
  448. package/.output/server/node_modules/zod/v4/locales/yo.js +112 -0
  449. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +114 -0
  450. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +112 -0
  451. package/.output/server/node_modules/zod/v4/mini/checks.js +1 -0
  452. package/.output/server/node_modules/zod/v4/mini/coerce.js +22 -0
  453. package/.output/server/node_modules/zod/v4/mini/deep-partial.js +13 -0
  454. package/.output/server/node_modules/zod/v4/mini/external.js +16 -0
  455. package/.output/server/node_modules/zod/v4/mini/in-out.js +36 -0
  456. package/.output/server/node_modules/zod/v4/mini/iso.js +34 -0
  457. package/.output/server/node_modules/zod/v4/mini/package.json +7 -0
  458. package/.output/server/node_modules/zod/v4/mini/parse.js +1 -0
  459. package/.output/server/node_modules/zod/v4/mini/schemas.js +1002 -0
  460. package/.output/server/node_modules/zod/v4/package.json +7 -0
  461. package/.output/server/node_modules/zod/v4-mini/index.js +3 -0
  462. package/.output/server/node_modules/zod/v4-mini/package.json +7 -0
  463. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  464. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  465. package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  466. package/.output/server/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  467. package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  468. package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  469. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  470. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  471. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  472. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  473. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  474. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  475. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  476. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  477. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  478. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  479. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  480. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  481. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  482. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  483. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  484. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  485. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  486. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  487. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  488. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  489. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  490. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  491. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  492. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  493. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  494. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  495. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  496. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  497. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  498. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  499. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  500. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  501. package/.output/server/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  502. package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  503. package/.output/server/node_modules/zod-to-json-schema/package.json +85 -0
  504. package/.output/server/package.json +64 -0
  505. package/README.md +227 -24
  506. package/bin/bantou.mjs +33 -0
  507. package/package.json +18 -8
  508. package/protocol/PROTOCOL.md +26 -0
  509. package/protocol/protocol.json +92 -0
  510. package/dist/cap.js +0 -7
  511. package/dist/cli.js +0 -27
  512. package/dist/config.js +0 -23
  513. package/dist/daemon.js +0 -23
  514. package/dist/session.js +0 -7
  515. package/dist/workspace.js +0 -8
@@ -0,0 +1,196 @@
1
+ import { c as createUnhead } from './unhead.D7HkBzZn.mjs';
2
+ import { I as INVALID_ATTR_NAME_RE, r as resolveTags, n as normalizeEntryToTags, d as dedupeKey, h as hashTag } from './unhead.DJuZwX9c.mjs';
3
+ import { a as callHook, c as createHooks } from './unhead.Bm4Y6XQI.mjs';
4
+ import { b as TagPriorityAliases, a as SelfClosingTags, c as TagsWithInnerContent } from './unhead.CGPOfp5O.mjs';
5
+
6
+ const isTruthy = (v) => v === "" || v === true;
7
+ function capoTagWeight(tag) {
8
+ if (typeof tag.tagPriority === "number")
9
+ return tag.tagPriority;
10
+ let weight = 100;
11
+ const offset = TagPriorityAliases[tag.tagPriority] || 0;
12
+ if (tag.tag === "base") {
13
+ weight = -10;
14
+ } else if (tag.tag === "title") {
15
+ weight = 10;
16
+ } else if (tag.tag === "meta") {
17
+ weight = tag.props["http-equiv"] === "content-security-policy" ? -30 : tag.props.charset ? -20 : tag.props.name === "viewport" ? -15 : weight;
18
+ } else if (tag.tag === "link" && tag.props.rel) {
19
+ const rel = tag.props.rel;
20
+ weight = rel === "preconnect" ? 20 : rel === "stylesheet" ? 60 : rel === "preload" || rel === "modulepreload" ? 70 : rel === "prefetch" || rel === "dns-prefetch" || rel === "prerender" ? 90 : weight;
21
+ } else if (tag.tag === "script") {
22
+ const type = typeof tag.props.type === "string" ? tag.props.type : "";
23
+ const json = type.endsWith("json");
24
+ if (type === "importmap")
25
+ weight = 25;
26
+ else if (type === "speculationrules")
27
+ weight = 90;
28
+ else if (isTruthy(tag.props.async))
29
+ weight = 30;
30
+ else if (tag.props.src && !isTruthy(tag.props.defer) && type !== "module" && !json || (tag.innerHTML || tag.textContent) && !json)
31
+ weight = 50;
32
+ else if (isTruthy(tag.props.defer) && tag.props.src || type === "module")
33
+ weight = 80;
34
+ } else if (tag.tag === "style") {
35
+ weight = tag.innerHTML && /@import/.test(tag.innerHTML) ? 40 : 60;
36
+ }
37
+ return (weight || 100) + offset;
38
+ }
39
+
40
+ const DOUBLE_QUOTE_RE = /"/g;
41
+ function encodeAttribute(value) {
42
+ const s = typeof value === "string" ? value : String(value);
43
+ return s.includes('"') ? s.replace(DOUBLE_QUOTE_RE, """) : s;
44
+ }
45
+ function propsToString(props) {
46
+ let attrs = "";
47
+ for (const key in props) {
48
+ if (!Object.hasOwn(props, key) || !key || INVALID_ATTR_NAME_RE.test(key))
49
+ continue;
50
+ let value = props[key];
51
+ if (typeof value !== "string") {
52
+ if (key === "class") {
53
+ let out = "";
54
+ for (const c of value) out += out ? ` ${c}` : c;
55
+ value = out;
56
+ } else if (key === "style") {
57
+ let out = "";
58
+ for (const [k, v] of value) out += out ? `;${k}:${v}` : `${k}:${v}`;
59
+ value = out;
60
+ }
61
+ }
62
+ if (value !== false && value !== null) {
63
+ attrs += value === true ? ` ${key}` : ` ${key}="${encodeAttribute(value)}"`;
64
+ }
65
+ }
66
+ return attrs;
67
+ }
68
+
69
+ const ESCAPE_HTML_RE = /[&<>"'/]/g;
70
+ const CLOSE_TAG_RE = {};
71
+ const ESCAPE_HTML_MAP = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "/": "&#x2F;" };
72
+ function escapeHtml(str) {
73
+ return str.replace(ESCAPE_HTML_RE, (c) => ESCAPE_HTML_MAP[c]);
74
+ }
75
+ function tagToString(tag) {
76
+ const attrs = propsToString(tag.props);
77
+ const openTag = `<${tag.tag}${attrs}>`;
78
+ if (SelfClosingTags.has(tag.tag))
79
+ return openTag;
80
+ if (!TagsWithInnerContent.has(tag.tag))
81
+ return `${openTag}</${tag.tag}>`;
82
+ let content = String(tag.textContent ?? tag.innerHTML ?? "");
83
+ content = tag.tag === "title" ? escapeHtml(content) : content.replace(CLOSE_TAG_RE[tag.tag] ||= new RegExp(`</${tag.tag}`, "gi"), `<\\/${tag.tag}`);
84
+ return `${openTag}${content}</${tag.tag}>`;
85
+ }
86
+
87
+ function ssrRenderTags(tags, options) {
88
+ const schema = { htmlAttrs: {}, bodyAttrs: {}, tags: { head: "", bodyClose: "", bodyOpen: "" } };
89
+ const lineBreaks = !options?.omitLineBreaks ? "\n" : "";
90
+ for (const tag of tags) {
91
+ if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") {
92
+ Object.assign(schema[tag.tag], tag.props);
93
+ continue;
94
+ }
95
+ const s = tagToString(tag);
96
+ const tagPosition = tag.tagPosition || "head";
97
+ schema.tags[tagPosition] += schema.tags[tagPosition] ? `${lineBreaks}${s}` : s;
98
+ }
99
+ return {
100
+ headTags: schema.tags.head,
101
+ bodyTags: schema.tags.bodyClose,
102
+ bodyTagsOpen: schema.tags.bodyOpen,
103
+ htmlAttrs: propsToString(schema.htmlAttrs),
104
+ bodyAttrs: propsToString(schema.bodyAttrs)
105
+ };
106
+ }
107
+
108
+ // @__NO_SIDE_EFFECTS__
109
+ function createServerRenderer(options = {}) {
110
+ return (head) => {
111
+ const beforeRenderCtx = { shouldRender: true };
112
+ callHook(head, "ssr:beforeRender", beforeRenderCtx);
113
+ if (!beforeRenderCtx.shouldRender)
114
+ return ssrRenderTags([]);
115
+ const ctx = {
116
+ tags: options.resolvedTags || resolveTags(head, { tagWeight: options.tagWeight ?? capoTagWeight }),
117
+ options: { ...options }
118
+ };
119
+ callHook(head, "ssr:render", ctx);
120
+ const html = ssrRenderTags(ctx.tags, ctx.options);
121
+ const renderCtx = { tags: ctx.tags, html };
122
+ callHook(head, "ssr:rendered", renderCtx);
123
+ return renderCtx.html;
124
+ };
125
+ }
126
+ // @__NO_SIDE_EFFECTS__
127
+ function renderSSRHead(head, options) {
128
+ return (/* @__PURE__ */ createServerRenderer(options))(head);
129
+ }
130
+
131
+ const DEFAULT_INIT = {
132
+ htmlAttrs: {
133
+ lang: "en"
134
+ },
135
+ meta: [
136
+ {
137
+ charset: "utf-8"
138
+ },
139
+ {
140
+ name: "viewport",
141
+ content: "width=device-width, initial-scale=1"
142
+ }
143
+ ]
144
+ };
145
+ const serverPropResolver = /* @__PURE__ */ Object.assign(
146
+ (k, v) => {
147
+ if (k && k.startsWith("on") && typeof v === "function") {
148
+ return `this.dataset.${k}fired = true`;
149
+ }
150
+ return v;
151
+ },
152
+ { _static: true }
153
+ );
154
+ let defaultInitTags;
155
+ function getDefaultInitTags() {
156
+ if (!defaultInitTags) {
157
+ defaultInitTags = normalizeEntryToTags(DEFAULT_INIT, []);
158
+ for (let i = 0; i < defaultInitTags.length; i++) {
159
+ const t = defaultInitTags[i];
160
+ t._w = capoTagWeight(t);
161
+ t._p = (1 << 10) + i;
162
+ t._d = dedupeKey(t);
163
+ if (!t._d)
164
+ t._h = hashTag(t);
165
+ }
166
+ }
167
+ return defaultInitTags;
168
+ }
169
+ // @__NO_SIDE_EFFECTS__
170
+ function createHead(options = {}) {
171
+ const tagWeight = options.tagWeight || capoTagWeight;
172
+ const core = createUnhead(createServerRenderer({ tagWeight, omitLineBreaks: options.omitLineBreaks }), {
173
+ _tagWeight: tagWeight,
174
+ // @ts-expect-error untyped
175
+ document: false,
176
+ experimentalStreamKey: options.experimentalStreamKey,
177
+ propResolvers: [
178
+ ...options.propResolvers || [],
179
+ serverPropResolver
180
+ ],
181
+ init: [
182
+ options.disableDefaults ? void 0 : DEFAULT_INIT,
183
+ ...options.init || []
184
+ ]
185
+ });
186
+ if (!options.disableDefaults && !options.tagWeight && !options.propResolvers?.some((r) => !r._static)) {
187
+ const defaultEntry = core.entries.get(1);
188
+ if (defaultEntry)
189
+ defaultEntry._precomputedTags = getDefaultInitTags();
190
+ }
191
+ core.hooks = createHooks(options.hooks);
192
+ options.plugins?.forEach((p) => core.use(p));
193
+ return core;
194
+ }
195
+
196
+ export { capoTagWeight as a, createServerRenderer as b, createHead as c, escapeHtml as e, propsToString as p, renderSSRHead as r, ssrRenderTags as s, tagToString as t };
@@ -0,0 +1,400 @@
1
+ import { U as UniqueTags, c as TagsWithInnerContent, M as MetaTagsArrayable, i as isUnsafeKey, H as HasElementTags, T as TagConfigKeys, D as DupeableTags, d as UsesMergeStrategy, V as ValidHeadTags, h as hasContent } from './unhead.CGPOfp5O.mjs';
2
+ import { a as callHook } from './unhead.Bm4Y6XQI.mjs';
3
+
4
+ const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
5
+ const META_KEY_ATTRS = ["name", "property", "http-equiv"];
6
+ function isMetaArrayDupeKey(v) {
7
+ const i = v.indexOf(":");
8
+ if (i === -1)
9
+ return false;
10
+ const key = v.slice(i + 1);
11
+ return MetaTagsArrayable.has(key) || key.startsWith("og:image:") || key.startsWith("og:video:") || key.startsWith("og:audio:") || key.startsWith("twitter:image:");
12
+ }
13
+ function dedupeKey(tag) {
14
+ const { props, tag: t, key } = tag;
15
+ if (UniqueTags.has(t))
16
+ return t;
17
+ if (t === "link") {
18
+ if (props.rel === "canonical")
19
+ return "canonical";
20
+ if (props.rel === "alternate" && props.hreflang)
21
+ return `alternate:${props.hreflang}`;
22
+ }
23
+ if (props.charset)
24
+ return "charset";
25
+ if (t === "meta") {
26
+ for (const n of META_KEY_ATTRS) {
27
+ const v = props[n];
28
+ if (v !== void 0)
29
+ return `meta:${v}${(typeof v !== "string" || !v.includes(":")) && !META_NOREWRITE_RE.test(v) && key ? `:key:${key}` : ""}`;
30
+ }
31
+ }
32
+ if (key)
33
+ return `${t}:key:${key}`;
34
+ if (props.id)
35
+ return `${t}:id:${props.id}`;
36
+ if (t === "link" && props.rel && props.href)
37
+ return `link:${props.rel}:${props.href}`;
38
+ return TagsWithInnerContent.has(t) && (tag.textContent || tag.innerHTML) ? `${t}:content:${tag.textContent || tag.innerHTML}` : void 0;
39
+ }
40
+ function hashTag(tag) {
41
+ const identity = tag._h || tag._d || tag.textContent || tag.innerHTML;
42
+ if (identity)
43
+ return String(identity);
44
+ const keys = Object.keys(tag.props).sort();
45
+ let hash = `${tag.tag}:`;
46
+ let separator = "";
47
+ for (const key of keys) {
48
+ hash += `${separator}${key}:${String(tag.props[key])}`;
49
+ separator = ",";
50
+ }
51
+ return hash;
52
+ }
53
+
54
+ function walkResolver(val, resolve, key) {
55
+ if (key === "_resolver")
56
+ return val;
57
+ if (typeof val === "function" && (!key || key !== "titleTemplate" && !key.startsWith("on")))
58
+ val = val();
59
+ const v = resolve ? resolve(key, val) : val;
60
+ if (Array.isArray(v)) {
61
+ let out;
62
+ for (let i = 0; i < v.length; i++) {
63
+ const r = walkResolver(v[i], resolve);
64
+ if (out) {
65
+ out[i] = r;
66
+ } else if (r !== v[i]) {
67
+ out = v.slice(0, i);
68
+ out[i] = r;
69
+ }
70
+ }
71
+ return out || v;
72
+ }
73
+ if (v?.constructor === Object) {
74
+ let next;
75
+ for (const k in v) {
76
+ const unsafe = isUnsafeKey(k);
77
+ const r = unsafe ? void 0 : walkResolver(v[k], resolve, k);
78
+ if (!next && (unsafe || r !== v[k])) {
79
+ next = {};
80
+ for (const pk in v) {
81
+ if (pk === k)
82
+ break;
83
+ next[pk] = v[pk];
84
+ }
85
+ }
86
+ if (next && !unsafe)
87
+ next[k] = r;
88
+ }
89
+ return next || v;
90
+ }
91
+ return v;
92
+ }
93
+
94
+ const INVALID_ATTR_NAME_RE = /[\s"'<>/=\x00-\x1F\x7F]/;
95
+
96
+ function normalizeStyleClassProps(key, value) {
97
+ const isStyle = key === "style";
98
+ const store = isStyle ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
99
+ const add = (v) => {
100
+ if (!v)
101
+ return;
102
+ if (isStyle) {
103
+ const i = v.indexOf(":");
104
+ i > 0 && store.set(v.slice(0, i).trim(), v.slice(i + 1).trim());
105
+ } else {
106
+ v.split(" ").forEach((c) => c && store.add(c));
107
+ }
108
+ };
109
+ if (typeof value === "string") {
110
+ (isStyle ? value.split(";") : [value]).forEach(add);
111
+ } else if (Array.isArray(value)) {
112
+ value.forEach(add);
113
+ } else if (value && typeof value === "object") {
114
+ for (const k in value) {
115
+ const v = value[k];
116
+ v && v !== "false" && (isStyle ? store.set(k.trim(), String(v)) : add(k));
117
+ }
118
+ }
119
+ return store;
120
+ }
121
+ function normalizeProps(tag, input) {
122
+ tag.props = tag.props || {};
123
+ if (!input)
124
+ return tag;
125
+ if (tag.tag === "templateParams") {
126
+ tag.props = input;
127
+ return tag;
128
+ }
129
+ const isHtmlTag = HasElementTags.has(tag.tag) || tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs";
130
+ for (const prop in input) {
131
+ if (isUnsafeKey(prop))
132
+ continue;
133
+ const isData = prop.startsWith("data-");
134
+ const isHtmlAttr = isHtmlTag && !TagConfigKeys.has(prop);
135
+ const key = isHtmlAttr && !isData ? prop.toLowerCase() : prop;
136
+ if (isHtmlAttr && (!key || INVALID_ATTR_NAME_RE.test(key)))
137
+ continue;
138
+ const value = input[prop];
139
+ if (value === null) {
140
+ tag.props[key] = null;
141
+ } else if (prop === "class" || prop === "style") {
142
+ tag.props[prop] = normalizeStyleClassProps(prop, value);
143
+ } else if (TagConfigKeys.has(prop)) {
144
+ if ((prop === "textContent" || prop === "innerHTML") && typeof value === "object") {
145
+ const type = input.type || "application/json";
146
+ if (type.endsWith("json") || type === "speculationrules" || type === "importmap") {
147
+ tag.props.type = type;
148
+ tag[prop] = JSON.stringify(value);
149
+ }
150
+ } else {
151
+ tag[prop] = value;
152
+ }
153
+ } else if (value !== void 0) {
154
+ const str = String(value);
155
+ const isMeta = tag.tag === "meta" && key === "content";
156
+ tag.props[key] = str === "true" || str === "" ? isData || isMeta ? str : true : !value && isData && str === "false" ? "false" : value;
157
+ }
158
+ }
159
+ return tag;
160
+ }
161
+ function resolveHeadInput(input, propResolvers) {
162
+ let resolve;
163
+ if (propResolvers.length) {
164
+ resolve = (key, val) => {
165
+ for (let i = 0; i < propResolvers.length; i++)
166
+ val = propResolvers[i](key, val);
167
+ return val;
168
+ };
169
+ input = resolve(void 0, input);
170
+ }
171
+ return walkResolver(input, resolve);
172
+ }
173
+ function normalizeTag(tagName, _input) {
174
+ const input = typeof _input === "object" && typeof _input !== "function" ? _input : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: _input };
175
+ const tag = normalizeProps({ tag: tagName, props: {} }, input);
176
+ if (tag.key && DupeableTags.has(tag.tag))
177
+ tag.props["data-hid"] = tag._h = tag.key;
178
+ if (tag.tag === "script" && typeof tag.innerHTML === "object") {
179
+ tag.innerHTML = JSON.stringify(tag.innerHTML);
180
+ tag.props.type = tag.props.type || "application/json";
181
+ }
182
+ if (Array.isArray(tag.props.content)) {
183
+ const tags = [];
184
+ for (const content of tag.props.content) {
185
+ tags.push({ ...tag, props: { ...tag.props, content } });
186
+ }
187
+ return tags;
188
+ }
189
+ return tag;
190
+ }
191
+ function pushNormalizedTag(tags, tag) {
192
+ if (Array.isArray(tag)) {
193
+ for (const t of tag) tags.push(t);
194
+ } else {
195
+ tags.push(tag);
196
+ }
197
+ }
198
+ function normalizeEntryToTags(input, propResolvers) {
199
+ if (!input)
200
+ return [];
201
+ if (typeof input === "function")
202
+ input = input();
203
+ input = resolveHeadInput(input, propResolvers);
204
+ const tags = [];
205
+ for (const key in input) {
206
+ const value = input[key];
207
+ if (value !== void 0) {
208
+ if (Array.isArray(value)) {
209
+ for (const v of value) pushNormalizedTag(tags, normalizeTag(key, v));
210
+ } else {
211
+ pushNormalizedTag(tags, normalizeTag(key, value));
212
+ }
213
+ }
214
+ }
215
+ return tags;
216
+ }
217
+
218
+ const LT_RE = /</g;
219
+ const SCRIPT_END_RE = /<\/script/g;
220
+ const sortTags = (a, b) => a._w === b._w ? a._p - b._p : a._w - b._w;
221
+ const DEFAULT_TAG_WEIGHT = () => 100;
222
+ function isEmptyProps(props) {
223
+ for (const _ in props)
224
+ return false;
225
+ return true;
226
+ }
227
+ const TAG_MUTATING_HOOK_RE = /^tags:|:render/;
228
+ function syncEntryHookCache(head, hooks) {
229
+ const count = (hooks["entries:resolve"]?.length || 0) + (hooks["entries:normalize"]?.length || 0);
230
+ if (head._h !== count) {
231
+ head._h = count;
232
+ for (const entry of head.entries.values())
233
+ delete entry._tags;
234
+ }
235
+ }
236
+ function cloneTagsInPlace(tags) {
237
+ for (let i = 0; i < tags.length; i++) {
238
+ const t = tags[i];
239
+ const props = { ...t.props };
240
+ if (props.class instanceof Set)
241
+ props.class = new Set(props.class);
242
+ if (props.style instanceof Map)
243
+ props.style = new Map(props.style);
244
+ tags[i] = { ...t, props };
245
+ }
246
+ }
247
+ function valuesToTags(ctx, sortFlatMeta) {
248
+ const tags = ctx.tags;
249
+ let w = 0;
250
+ for (const value of ctx.tagMap.values()) {
251
+ if (Array.isArray(value)) {
252
+ for (const tag of value) tags[w++] = tag;
253
+ } else {
254
+ tags[w++] = value;
255
+ }
256
+ }
257
+ tags.length = w;
258
+ if (sortFlatMeta)
259
+ tags.sort(sortTags);
260
+ }
261
+ function dedupeTags(ctx) {
262
+ let hasFlatMeta = false;
263
+ for (const next of ctx.tags.sort(sortTags)) {
264
+ const k = next._d || hashTag(next);
265
+ if (!k)
266
+ continue;
267
+ const prev = ctx.tagMap.get(k);
268
+ if (!prev) {
269
+ ctx.tagMap.set(k, next);
270
+ continue;
271
+ }
272
+ const strategy = next.tagDuplicateStrategy || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null);
273
+ if (strategy === "merge") {
274
+ const props = { ...prev.props };
275
+ for (const p in next.props) {
276
+ props[p] = p === "style" ? new Map([...prev.props.style || /* @__PURE__ */ new Map(), ...next.props[p]]) : p === "class" ? /* @__PURE__ */ new Set([...prev.props.class || [], ...next.props[p]]) : next.props[p];
277
+ }
278
+ ctx.tagMap.set(k, { ...next, props });
279
+ } else if (next._p >> 10 === prev._p >> 10 && next.tag === "meta" && isMetaArrayDupeKey(k)) {
280
+ ctx.tagMap.set(k, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next));
281
+ hasFlatMeta = true;
282
+ } else if (next._w === prev._w ? next._p > prev._p : next._w < prev._w) {
283
+ ctx.tagMap.set(k, next);
284
+ }
285
+ }
286
+ return hasFlatMeta;
287
+ }
288
+ function resolveTitleTemplate(ctx, head) {
289
+ const title = ctx.tagMap.get("title");
290
+ const tpl = ctx.tagMap.get("titleTemplate");
291
+ head._title = title?.textContent;
292
+ if (!tpl)
293
+ return;
294
+ const fn = tpl.textContent;
295
+ head._titleTemplate = fn;
296
+ if (!fn)
297
+ return;
298
+ let v = typeof fn === "function" ? fn(title?.textContent) : fn;
299
+ if (typeof v === "string" && !head.plugins.has("template-params"))
300
+ v = v.replace("%s", title?.textContent || "");
301
+ if (title) {
302
+ v === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: v });
303
+ } else {
304
+ ctx.tagMap.set("titleTemplate", { ...tpl, tag: "title", textContent: v });
305
+ }
306
+ }
307
+ function sanitizeTagsInPlace(tags) {
308
+ let w = 0;
309
+ for (let t of tags) {
310
+ const { innerHTML, tag, props } = t;
311
+ if (!ValidHeadTags.has(tag) || isEmptyProps(props) && !hasContent(innerHTML) && !hasContent(t.textContent))
312
+ continue;
313
+ if (tag === "meta") {
314
+ if (!hasContent(props.content) && !props["http-equiv"] && !props.charset)
315
+ continue;
316
+ }
317
+ if (tag === "script" && (innerHTML || t.textContent)) {
318
+ const type = String(props.type);
319
+ const isJsonLike = type.endsWith("json") || type === "importmap" || type === "speculationrules";
320
+ const escape = (content) => isJsonLike ? (typeof content === "string" ? content : JSON.stringify(content)).replace(LT_RE, "\\u003C") : typeof content === "string" ? content.replace(SCRIPT_END_RE, "<\\/script") : content;
321
+ t = { ...t };
322
+ if (innerHTML)
323
+ t.innerHTML = escape(innerHTML);
324
+ if (t.textContent)
325
+ t.textContent = escape(t.textContent);
326
+ t._d = dedupeKey(t);
327
+ }
328
+ tags[w++] = t;
329
+ }
330
+ tags.length = w;
331
+ return tags;
332
+ }
333
+ function sanitizeTags(tags) {
334
+ return sanitizeTagsInPlace([...tags]);
335
+ }
336
+ function resolveTags(head, options) {
337
+ const weightFn = options?.tagWeight ?? head.resolvedOptions._tagWeight ?? DEFAULT_TAG_WEIGHT;
338
+ const ctx = { tagMap: /* @__PURE__ */ new Map(), tags: [] };
339
+ const hooks = head.hooks?._hooks || {};
340
+ syncEntryHookCache(head, hooks);
341
+ for (const e of head.entries.values()) {
342
+ if (e._pending !== void 0) {
343
+ e.input = e._pending;
344
+ delete e._pending;
345
+ delete e._tags;
346
+ delete e._precomputedTags;
347
+ }
348
+ }
349
+ let entries;
350
+ if (hooks["entries:resolve"]?.length || hooks["entries:normalize"]?.length) {
351
+ entries = [...head.entries.values()];
352
+ if (hooks["entries:resolve"]?.length)
353
+ callHook(head, "entries:resolve", { entries, ...ctx });
354
+ }
355
+ syncEntryHookCache(head, hooks);
356
+ for (const e of entries || head.entries.values()) {
357
+ let tags = e._tags;
358
+ if (!tags) {
359
+ if (e._precomputedTags && weightFn === head.resolvedOptions._tagWeight && !hooks["entries:normalize"]?.length && !hooks["entries:resolve"]?.length && (!e.options || isEmptyProps(e.options))) {
360
+ tags = e._precomputedTags;
361
+ } else {
362
+ tags = normalizeEntryToTags(e.input, head.resolvedOptions.propResolvers || []);
363
+ if (e.options && !isEmptyProps(e.options)) {
364
+ for (const t of tags)
365
+ Object.assign(t, e.options);
366
+ }
367
+ if (hooks["entries:normalize"]?.length) {
368
+ const normalizeCtx = { tags, entry: e };
369
+ callHook(head, "entries:normalize", normalizeCtx);
370
+ tags = normalizeCtx.tags;
371
+ }
372
+ for (let i = 0; i < tags.length; i++) {
373
+ const t = tags[i];
374
+ t._w = weightFn(t);
375
+ t._p = (e._i << 10) + i;
376
+ t._d = dedupeKey(t);
377
+ if (!t._d)
378
+ t._h = hashTag(t);
379
+ }
380
+ e._tags = tags;
381
+ }
382
+ }
383
+ ctx.tags.push(...tags);
384
+ }
385
+ for (const name in hooks) {
386
+ if (hooks[name]?.length && TAG_MUTATING_HOOK_RE.test(name)) {
387
+ cloneTagsInPlace(ctx.tags);
388
+ break;
389
+ }
390
+ }
391
+ const hasFlatMeta = dedupeTags(ctx);
392
+ resolveTitleTemplate(ctx, head);
393
+ valuesToTags(ctx, hasFlatMeta);
394
+ callHook(head, "tags:beforeResolve", ctx);
395
+ callHook(head, "tags:resolve", ctx);
396
+ callHook(head, "tags:afterResolve", ctx);
397
+ return sanitizeTagsInPlace(ctx.tags);
398
+ }
399
+
400
+ export { INVALID_ATTR_NAME_RE as I, dedupeTags as a, normalizeProps as b, resolveTitleTemplate as c, dedupeKey as d, resolveHeadInput as e, hashTag as h, isMetaArrayDupeKey as i, normalizeEntryToTags as n, resolveTags as r, sanitizeTags as s, walkResolver as w };