aizryu.js 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.cache/replit/modules.stamp +0 -0
  3. package/.cache/replit/nix/env.json +1 -0
  4. package/.cache/typescript/5.0/node_modules/.package-lock.json +156 -0
  5. package/.cache/typescript/5.0/node_modules/@types/body-parser/LICENSE +21 -0
  6. package/.cache/typescript/5.0/node_modules/@types/body-parser/README.md +15 -0
  7. package/.cache/typescript/5.0/node_modules/@types/body-parser/index.d.ts +95 -0
  8. package/.cache/typescript/5.0/node_modules/@types/body-parser/package.json +58 -0
  9. package/.cache/typescript/5.0/node_modules/@types/connect/LICENSE +21 -0
  10. package/.cache/typescript/5.0/node_modules/@types/connect/README.md +15 -0
  11. package/.cache/typescript/5.0/node_modules/@types/connect/index.d.ts +91 -0
  12. package/.cache/typescript/5.0/node_modules/@types/connect/package.json +32 -0
  13. package/.cache/typescript/5.0/node_modules/@types/express/LICENSE +21 -0
  14. package/.cache/typescript/5.0/node_modules/@types/express/README.md +15 -0
  15. package/.cache/typescript/5.0/node_modules/@types/express/index.d.ts +128 -0
  16. package/.cache/typescript/5.0/node_modules/@types/express/package.json +45 -0
  17. package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/LICENSE +21 -0
  18. package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/README.md +15 -0
  19. package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/index.d.ts +1261 -0
  20. package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/package.json +55 -0
  21. package/.cache/typescript/5.0/node_modules/@types/http-errors/LICENSE +21 -0
  22. package/.cache/typescript/5.0/node_modules/@types/http-errors/README.md +15 -0
  23. package/.cache/typescript/5.0/node_modules/@types/http-errors/index.d.ts +77 -0
  24. package/.cache/typescript/5.0/node_modules/@types/http-errors/package.json +30 -0
  25. package/.cache/typescript/5.0/node_modules/@types/jsdom/LICENSE +21 -0
  26. package/.cache/typescript/5.0/node_modules/@types/jsdom/README.md +15 -0
  27. package/.cache/typescript/5.0/node_modules/@types/jsdom/base.d.ts +456 -0
  28. package/.cache/typescript/5.0/node_modules/@types/jsdom/index.d.ts +18 -0
  29. package/.cache/typescript/5.0/node_modules/@types/jsdom/package.json +45 -0
  30. package/.cache/typescript/5.0/node_modules/@types/mime/LICENSE +21 -0
  31. package/.cache/typescript/5.0/node_modules/@types/mime/Mime.d.ts +10 -0
  32. package/.cache/typescript/5.0/node_modules/@types/mime/README.md +15 -0
  33. package/.cache/typescript/5.0/node_modules/@types/mime/index.d.ts +31 -0
  34. package/.cache/typescript/5.0/node_modules/@types/mime/lite.d.ts +7 -0
  35. package/.cache/typescript/5.0/node_modules/@types/mime/package.json +30 -0
  36. package/.cache/typescript/5.0/node_modules/@types/node/LICENSE +21 -0
  37. package/.cache/typescript/5.0/node_modules/@types/node/README.md +15 -0
  38. package/.cache/typescript/5.0/node_modules/@types/node/assert/strict.d.ts +8 -0
  39. package/.cache/typescript/5.0/node_modules/@types/node/assert.d.ts +996 -0
  40. package/.cache/typescript/5.0/node_modules/@types/node/async_hooks.d.ts +539 -0
  41. package/.cache/typescript/5.0/node_modules/@types/node/buffer.d.ts +2362 -0
  42. package/.cache/typescript/5.0/node_modules/@types/node/child_process.d.ts +1540 -0
  43. package/.cache/typescript/5.0/node_modules/@types/node/cluster.d.ts +432 -0
  44. package/.cache/typescript/5.0/node_modules/@types/node/console.d.ts +415 -0
  45. package/.cache/typescript/5.0/node_modules/@types/node/constants.d.ts +19 -0
  46. package/.cache/typescript/5.0/node_modules/@types/node/crypto.d.ts +4456 -0
  47. package/.cache/typescript/5.0/node_modules/@types/node/dgram.d.ts +586 -0
  48. package/.cache/typescript/5.0/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
  49. package/.cache/typescript/5.0/node_modules/@types/node/dns/promises.d.ts +425 -0
  50. package/.cache/typescript/5.0/node_modules/@types/node/dns.d.ts +809 -0
  51. package/.cache/typescript/5.0/node_modules/@types/node/dom-events.d.ts +122 -0
  52. package/.cache/typescript/5.0/node_modules/@types/node/domain.d.ts +170 -0
  53. package/.cache/typescript/5.0/node_modules/@types/node/events.d.ts +879 -0
  54. package/.cache/typescript/5.0/node_modules/@types/node/fs/promises.d.ts +1239 -0
  55. package/.cache/typescript/5.0/node_modules/@types/node/fs.d.ts +4291 -0
  56. package/.cache/typescript/5.0/node_modules/@types/node/globals.d.ts +381 -0
  57. package/.cache/typescript/5.0/node_modules/@types/node/globals.global.d.ts +1 -0
  58. package/.cache/typescript/5.0/node_modules/@types/node/http.d.ts +1888 -0
  59. package/.cache/typescript/5.0/node_modules/@types/node/http2.d.ts +2382 -0
  60. package/.cache/typescript/5.0/node_modules/@types/node/https.d.ts +550 -0
  61. package/.cache/typescript/5.0/node_modules/@types/node/index.d.ts +88 -0
  62. package/.cache/typescript/5.0/node_modules/@types/node/inspector.d.ts +2747 -0
  63. package/.cache/typescript/5.0/node_modules/@types/node/module.d.ts +301 -0
  64. package/.cache/typescript/5.0/node_modules/@types/node/net.d.ts +949 -0
  65. package/.cache/typescript/5.0/node_modules/@types/node/os.d.ts +478 -0
  66. package/.cache/typescript/5.0/node_modules/@types/node/package.json +230 -0
  67. package/.cache/typescript/5.0/node_modules/@types/node/path.d.ts +191 -0
  68. package/.cache/typescript/5.0/node_modules/@types/node/perf_hooks.d.ts +639 -0
  69. package/.cache/typescript/5.0/node_modules/@types/node/process.d.ts +1532 -0
  70. package/.cache/typescript/5.0/node_modules/@types/node/punycode.d.ts +117 -0
  71. package/.cache/typescript/5.0/node_modules/@types/node/querystring.d.ts +141 -0
  72. package/.cache/typescript/5.0/node_modules/@types/node/readline/promises.d.ts +150 -0
  73. package/.cache/typescript/5.0/node_modules/@types/node/readline.d.ts +539 -0
  74. package/.cache/typescript/5.0/node_modules/@types/node/repl.d.ts +430 -0
  75. package/.cache/typescript/5.0/node_modules/@types/node/stream/consumers.d.ts +12 -0
  76. package/.cache/typescript/5.0/node_modules/@types/node/stream/promises.d.ts +83 -0
  77. package/.cache/typescript/5.0/node_modules/@types/node/stream/web.d.ts +350 -0
  78. package/.cache/typescript/5.0/node_modules/@types/node/stream.d.ts +1701 -0
  79. package/.cache/typescript/5.0/node_modules/@types/node/string_decoder.d.ts +67 -0
  80. package/.cache/typescript/5.0/node_modules/@types/node/test.d.ts +1382 -0
  81. package/.cache/typescript/5.0/node_modules/@types/node/timers/promises.d.ts +93 -0
  82. package/.cache/typescript/5.0/node_modules/@types/node/timers.d.ts +240 -0
  83. package/.cache/typescript/5.0/node_modules/@types/node/tls.d.ts +1210 -0
  84. package/.cache/typescript/5.0/node_modules/@types/node/trace_events.d.ts +182 -0
  85. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  86. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
  87. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
  88. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
  89. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
  90. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
  91. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/console.d.ts +415 -0
  92. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
  93. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
  94. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
  95. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  96. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
  97. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
  98. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
  99. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  100. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/events.d.ts +879 -0
  101. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
  102. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
  103. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.d.ts +381 -0
  104. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  105. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
  106. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
  107. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/https.d.ts +550 -0
  108. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  109. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
  110. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/module.d.ts +301 -0
  111. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/net.d.ts +949 -0
  112. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/os.d.ts +478 -0
  113. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  114. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
  115. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/process.d.ts +1532 -0
  116. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  117. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
  118. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
  119. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
  120. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
  121. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  122. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
  123. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
  124. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
  125. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  126. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
  127. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  128. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
  129. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
  130. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  131. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  132. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/url.d.ts +927 -0
  133. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/util.d.ts +2186 -0
  134. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  135. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
  136. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  137. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
  138. package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  139. package/.cache/typescript/5.0/node_modules/@types/node/tty.d.ts +208 -0
  140. package/.cache/typescript/5.0/node_modules/@types/node/url.d.ts +927 -0
  141. package/.cache/typescript/5.0/node_modules/@types/node/util.d.ts +2186 -0
  142. package/.cache/typescript/5.0/node_modules/@types/node/v8.d.ts +635 -0
  143. package/.cache/typescript/5.0/node_modules/@types/node/vm.d.ts +903 -0
  144. package/.cache/typescript/5.0/node_modules/@types/node/wasi.d.ts +158 -0
  145. package/.cache/typescript/5.0/node_modules/@types/node/worker_threads.d.ts +691 -0
  146. package/.cache/typescript/5.0/node_modules/@types/node/zlib.d.ts +517 -0
  147. package/.cache/typescript/5.0/node_modules/@types/qs/LICENSE +21 -0
  148. package/.cache/typescript/5.0/node_modules/@types/qs/README.md +75 -0
  149. package/.cache/typescript/5.0/node_modules/@types/qs/index.d.ts +56 -0
  150. package/.cache/typescript/5.0/node_modules/@types/qs/package.json +65 -0
  151. package/.cache/typescript/5.0/node_modules/@types/range-parser/LICENSE +21 -0
  152. package/.cache/typescript/5.0/node_modules/@types/range-parser/README.md +53 -0
  153. package/.cache/typescript/5.0/node_modules/@types/range-parser/index.d.ts +34 -0
  154. package/.cache/typescript/5.0/node_modules/@types/range-parser/package.json +25 -0
  155. package/.cache/typescript/5.0/node_modules/@types/send/LICENSE +21 -0
  156. package/.cache/typescript/5.0/node_modules/@types/send/README.md +15 -0
  157. package/.cache/typescript/5.0/node_modules/@types/send/index.d.ts +225 -0
  158. package/.cache/typescript/5.0/node_modules/@types/send/package.json +33 -0
  159. package/.cache/typescript/5.0/node_modules/@types/serve-static/LICENSE +21 -0
  160. package/.cache/typescript/5.0/node_modules/@types/serve-static/README.md +15 -0
  161. package/.cache/typescript/5.0/node_modules/@types/serve-static/index.d.ts +107 -0
  162. package/.cache/typescript/5.0/node_modules/@types/serve-static/package.json +39 -0
  163. package/.cache/typescript/5.0/node_modules/@types/tough-cookie/LICENSE +21 -0
  164. package/.cache/typescript/5.0/node_modules/@types/tough-cookie/README.md +15 -0
  165. package/.cache/typescript/5.0/node_modules/@types/tough-cookie/index.d.ts +321 -0
  166. package/.cache/typescript/5.0/node_modules/@types/tough-cookie/package.json +35 -0
  167. package/.cache/typescript/5.0/node_modules/entities/LICENSE +11 -0
  168. package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts +211 -0
  169. package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts.map +1 -0
  170. package/.cache/typescript/5.0/node_modules/entities/lib/decode.js +536 -0
  171. package/.cache/typescript/5.0/node_modules/entities/lib/decode.js.map +1 -0
  172. package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  173. package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
  174. package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js +76 -0
  175. package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  176. package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts +22 -0
  177. package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts.map +1 -0
  178. package/.cache/typescript/5.0/node_modules/entities/lib/encode.js +77 -0
  179. package/.cache/typescript/5.0/node_modules/entities/lib/encode.js.map +1 -0
  180. package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts +43 -0
  181. package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts.map +1 -0
  182. package/.cache/typescript/5.0/node_modules/entities/lib/escape.js +122 -0
  183. package/.cache/typescript/5.0/node_modules/entities/lib/escape.js.map +1 -0
  184. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts +211 -0
  185. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
  186. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js +496 -0
  187. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
  188. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  189. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
  190. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
  191. package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  192. package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts +22 -0
  193. package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
  194. package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js +69 -0
  195. package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js.map +1 -0
  196. package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts +43 -0
  197. package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
  198. package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js +116 -0
  199. package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js.map +1 -0
  200. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  201. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
  202. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  203. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  204. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  205. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
  206. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  207. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  208. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  209. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
  210. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
  211. package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
  212. package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts +96 -0
  213. package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts.map +1 -0
  214. package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js +99 -0
  215. package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js.map +1 -0
  216. package/.cache/typescript/5.0/node_modules/entities/lib/esm/package.json +1 -0
  217. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  218. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
  219. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js +9 -0
  220. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  221. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  222. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
  223. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
  224. package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  225. package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  226. package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
  227. package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js +12 -0
  228. package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  229. package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts +96 -0
  230. package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts.map +1 -0
  231. package/.cache/typescript/5.0/node_modules/entities/lib/index.js +126 -0
  232. package/.cache/typescript/5.0/node_modules/entities/lib/index.js.map +1 -0
  233. package/.cache/typescript/5.0/node_modules/entities/package.json +90 -0
  234. package/.cache/typescript/5.0/node_modules/entities/readme.md +122 -0
  235. package/.cache/typescript/5.0/node_modules/parse5/LICENSE +19 -0
  236. package/.cache/typescript/5.0/node_modules/parse5/README.md +38 -0
  237. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
  238. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
  239. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
  240. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
  241. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
  242. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
  243. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
  244. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.js +529 -0
  245. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
  246. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.js +25 -0
  247. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
  248. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
  249. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.d.ts +60 -0
  250. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.js +57 -0
  251. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/package.json +1 -0
  252. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
  253. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
  254. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
  255. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
  256. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
  257. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
  258. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
  259. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
  260. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
  261. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
  262. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
  263. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
  264. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
  265. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
  266. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
  267. package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
  268. package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.d.ts +5 -0
  269. package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.js +115 -0
  270. package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
  271. package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.js +64 -0
  272. package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
  273. package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.js +230 -0
  274. package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.d.ts +288 -0
  275. package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.js +523 -0
  276. package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.d.ts +85 -0
  277. package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.js +21 -0
  278. package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.d.ts +49 -0
  279. package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.js +69 -0
  280. package/.cache/typescript/5.0/node_modules/parse5/dist/index.d.ts +60 -0
  281. package/.cache/typescript/5.0/node_modules/parse5/dist/index.js +45 -0
  282. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
  283. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
  284. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.d.ts +157 -0
  285. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.js +3168 -0
  286. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
  287. package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
  288. package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.d.ts +61 -0
  289. package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.js +168 -0
  290. package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
  291. package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.js +2904 -0
  292. package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
  293. package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
  294. package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
  295. package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.js +174 -0
  296. package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
  297. package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
  298. package/.cache/typescript/5.0/node_modules/parse5/package.json +50 -0
  299. package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
  300. package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
  301. package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
  302. package/.cache/typescript/5.0/node_modules/undici-types/README.md +6 -0
  303. package/.cache/typescript/5.0/node_modules/undici-types/agent.d.ts +31 -0
  304. package/.cache/typescript/5.0/node_modules/undici-types/api.d.ts +43 -0
  305. package/.cache/typescript/5.0/node_modules/undici-types/balanced-pool.d.ts +18 -0
  306. package/.cache/typescript/5.0/node_modules/undici-types/cache.d.ts +36 -0
  307. package/.cache/typescript/5.0/node_modules/undici-types/client.d.ts +97 -0
  308. package/.cache/typescript/5.0/node_modules/undici-types/connector.d.ts +34 -0
  309. package/.cache/typescript/5.0/node_modules/undici-types/content-type.d.ts +21 -0
  310. package/.cache/typescript/5.0/node_modules/undici-types/cookies.d.ts +28 -0
  311. package/.cache/typescript/5.0/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  312. package/.cache/typescript/5.0/node_modules/undici-types/dispatcher.d.ts +241 -0
  313. package/.cache/typescript/5.0/node_modules/undici-types/errors.d.ts +128 -0
  314. package/.cache/typescript/5.0/node_modules/undici-types/fetch.d.ts +209 -0
  315. package/.cache/typescript/5.0/node_modules/undici-types/file.d.ts +39 -0
  316. package/.cache/typescript/5.0/node_modules/undici-types/filereader.d.ts +54 -0
  317. package/.cache/typescript/5.0/node_modules/undici-types/formdata.d.ts +108 -0
  318. package/.cache/typescript/5.0/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  319. package/.cache/typescript/5.0/node_modules/undici-types/global-origin.d.ts +7 -0
  320. package/.cache/typescript/5.0/node_modules/undici-types/handlers.d.ts +9 -0
  321. package/.cache/typescript/5.0/node_modules/undici-types/header.d.ts +4 -0
  322. package/.cache/typescript/5.0/node_modules/undici-types/index.d.ts +63 -0
  323. package/.cache/typescript/5.0/node_modules/undici-types/interceptors.d.ts +5 -0
  324. package/.cache/typescript/5.0/node_modules/undici-types/mock-agent.d.ts +50 -0
  325. package/.cache/typescript/5.0/node_modules/undici-types/mock-client.d.ts +25 -0
  326. package/.cache/typescript/5.0/node_modules/undici-types/mock-errors.d.ts +12 -0
  327. package/.cache/typescript/5.0/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  328. package/.cache/typescript/5.0/node_modules/undici-types/mock-pool.d.ts +25 -0
  329. package/.cache/typescript/5.0/node_modules/undici-types/package.json +55 -0
  330. package/.cache/typescript/5.0/node_modules/undici-types/patch.d.ts +71 -0
  331. package/.cache/typescript/5.0/node_modules/undici-types/pool-stats.d.ts +19 -0
  332. package/.cache/typescript/5.0/node_modules/undici-types/pool.d.ts +28 -0
  333. package/.cache/typescript/5.0/node_modules/undici-types/proxy-agent.d.ts +30 -0
  334. package/.cache/typescript/5.0/node_modules/undici-types/readable.d.ts +61 -0
  335. package/.cache/typescript/5.0/node_modules/undici-types/webidl.d.ts +220 -0
  336. package/.cache/typescript/5.0/node_modules/undici-types/websocket.d.ts +131 -0
  337. package/.cache/typescript/5.0/package-lock.json +166 -0
  338. package/.cache/typescript/5.0/package.json +1 -0
  339. package/.replit +14 -0
  340. package/.upm/store.json +1 -0
  341. package/README.md +24 -0
  342. package/index.js +1 -0
  343. package/package.json +21 -0
@@ -0,0 +1,529 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hasUnescapedText = exports.isNumberedHeader = exports.SPECIAL_ELEMENTS = exports.getTagID = exports.TAG_ID = exports.TAG_NAMES = exports.DOCUMENT_MODE = exports.ATTRS = exports.NS = void 0;
4
+ /** All valid namespaces in HTML. */
5
+ var NS;
6
+ (function (NS) {
7
+ NS["HTML"] = "http://www.w3.org/1999/xhtml";
8
+ NS["MATHML"] = "http://www.w3.org/1998/Math/MathML";
9
+ NS["SVG"] = "http://www.w3.org/2000/svg";
10
+ NS["XLINK"] = "http://www.w3.org/1999/xlink";
11
+ NS["XML"] = "http://www.w3.org/XML/1998/namespace";
12
+ NS["XMLNS"] = "http://www.w3.org/2000/xmlns/";
13
+ })(NS = exports.NS || (exports.NS = {}));
14
+ var ATTRS;
15
+ (function (ATTRS) {
16
+ ATTRS["TYPE"] = "type";
17
+ ATTRS["ACTION"] = "action";
18
+ ATTRS["ENCODING"] = "encoding";
19
+ ATTRS["PROMPT"] = "prompt";
20
+ ATTRS["NAME"] = "name";
21
+ ATTRS["COLOR"] = "color";
22
+ ATTRS["FACE"] = "face";
23
+ ATTRS["SIZE"] = "size";
24
+ })(ATTRS = exports.ATTRS || (exports.ATTRS = {}));
25
+ /**
26
+ * The mode of the document.
27
+ *
28
+ * @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks}
29
+ */
30
+ var DOCUMENT_MODE;
31
+ (function (DOCUMENT_MODE) {
32
+ DOCUMENT_MODE["NO_QUIRKS"] = "no-quirks";
33
+ DOCUMENT_MODE["QUIRKS"] = "quirks";
34
+ DOCUMENT_MODE["LIMITED_QUIRKS"] = "limited-quirks";
35
+ })(DOCUMENT_MODE = exports.DOCUMENT_MODE || (exports.DOCUMENT_MODE = {}));
36
+ var TAG_NAMES;
37
+ (function (TAG_NAMES) {
38
+ TAG_NAMES["A"] = "a";
39
+ TAG_NAMES["ADDRESS"] = "address";
40
+ TAG_NAMES["ANNOTATION_XML"] = "annotation-xml";
41
+ TAG_NAMES["APPLET"] = "applet";
42
+ TAG_NAMES["AREA"] = "area";
43
+ TAG_NAMES["ARTICLE"] = "article";
44
+ TAG_NAMES["ASIDE"] = "aside";
45
+ TAG_NAMES["B"] = "b";
46
+ TAG_NAMES["BASE"] = "base";
47
+ TAG_NAMES["BASEFONT"] = "basefont";
48
+ TAG_NAMES["BGSOUND"] = "bgsound";
49
+ TAG_NAMES["BIG"] = "big";
50
+ TAG_NAMES["BLOCKQUOTE"] = "blockquote";
51
+ TAG_NAMES["BODY"] = "body";
52
+ TAG_NAMES["BR"] = "br";
53
+ TAG_NAMES["BUTTON"] = "button";
54
+ TAG_NAMES["CAPTION"] = "caption";
55
+ TAG_NAMES["CENTER"] = "center";
56
+ TAG_NAMES["CODE"] = "code";
57
+ TAG_NAMES["COL"] = "col";
58
+ TAG_NAMES["COLGROUP"] = "colgroup";
59
+ TAG_NAMES["DD"] = "dd";
60
+ TAG_NAMES["DESC"] = "desc";
61
+ TAG_NAMES["DETAILS"] = "details";
62
+ TAG_NAMES["DIALOG"] = "dialog";
63
+ TAG_NAMES["DIR"] = "dir";
64
+ TAG_NAMES["DIV"] = "div";
65
+ TAG_NAMES["DL"] = "dl";
66
+ TAG_NAMES["DT"] = "dt";
67
+ TAG_NAMES["EM"] = "em";
68
+ TAG_NAMES["EMBED"] = "embed";
69
+ TAG_NAMES["FIELDSET"] = "fieldset";
70
+ TAG_NAMES["FIGCAPTION"] = "figcaption";
71
+ TAG_NAMES["FIGURE"] = "figure";
72
+ TAG_NAMES["FONT"] = "font";
73
+ TAG_NAMES["FOOTER"] = "footer";
74
+ TAG_NAMES["FOREIGN_OBJECT"] = "foreignObject";
75
+ TAG_NAMES["FORM"] = "form";
76
+ TAG_NAMES["FRAME"] = "frame";
77
+ TAG_NAMES["FRAMESET"] = "frameset";
78
+ TAG_NAMES["H1"] = "h1";
79
+ TAG_NAMES["H2"] = "h2";
80
+ TAG_NAMES["H3"] = "h3";
81
+ TAG_NAMES["H4"] = "h4";
82
+ TAG_NAMES["H5"] = "h5";
83
+ TAG_NAMES["H6"] = "h6";
84
+ TAG_NAMES["HEAD"] = "head";
85
+ TAG_NAMES["HEADER"] = "header";
86
+ TAG_NAMES["HGROUP"] = "hgroup";
87
+ TAG_NAMES["HR"] = "hr";
88
+ TAG_NAMES["HTML"] = "html";
89
+ TAG_NAMES["I"] = "i";
90
+ TAG_NAMES["IMG"] = "img";
91
+ TAG_NAMES["IMAGE"] = "image";
92
+ TAG_NAMES["INPUT"] = "input";
93
+ TAG_NAMES["IFRAME"] = "iframe";
94
+ TAG_NAMES["KEYGEN"] = "keygen";
95
+ TAG_NAMES["LABEL"] = "label";
96
+ TAG_NAMES["LI"] = "li";
97
+ TAG_NAMES["LINK"] = "link";
98
+ TAG_NAMES["LISTING"] = "listing";
99
+ TAG_NAMES["MAIN"] = "main";
100
+ TAG_NAMES["MALIGNMARK"] = "malignmark";
101
+ TAG_NAMES["MARQUEE"] = "marquee";
102
+ TAG_NAMES["MATH"] = "math";
103
+ TAG_NAMES["MENU"] = "menu";
104
+ TAG_NAMES["META"] = "meta";
105
+ TAG_NAMES["MGLYPH"] = "mglyph";
106
+ TAG_NAMES["MI"] = "mi";
107
+ TAG_NAMES["MO"] = "mo";
108
+ TAG_NAMES["MN"] = "mn";
109
+ TAG_NAMES["MS"] = "ms";
110
+ TAG_NAMES["MTEXT"] = "mtext";
111
+ TAG_NAMES["NAV"] = "nav";
112
+ TAG_NAMES["NOBR"] = "nobr";
113
+ TAG_NAMES["NOFRAMES"] = "noframes";
114
+ TAG_NAMES["NOEMBED"] = "noembed";
115
+ TAG_NAMES["NOSCRIPT"] = "noscript";
116
+ TAG_NAMES["OBJECT"] = "object";
117
+ TAG_NAMES["OL"] = "ol";
118
+ TAG_NAMES["OPTGROUP"] = "optgroup";
119
+ TAG_NAMES["OPTION"] = "option";
120
+ TAG_NAMES["P"] = "p";
121
+ TAG_NAMES["PARAM"] = "param";
122
+ TAG_NAMES["PLAINTEXT"] = "plaintext";
123
+ TAG_NAMES["PRE"] = "pre";
124
+ TAG_NAMES["RB"] = "rb";
125
+ TAG_NAMES["RP"] = "rp";
126
+ TAG_NAMES["RT"] = "rt";
127
+ TAG_NAMES["RTC"] = "rtc";
128
+ TAG_NAMES["RUBY"] = "ruby";
129
+ TAG_NAMES["S"] = "s";
130
+ TAG_NAMES["SCRIPT"] = "script";
131
+ TAG_NAMES["SECTION"] = "section";
132
+ TAG_NAMES["SELECT"] = "select";
133
+ TAG_NAMES["SOURCE"] = "source";
134
+ TAG_NAMES["SMALL"] = "small";
135
+ TAG_NAMES["SPAN"] = "span";
136
+ TAG_NAMES["STRIKE"] = "strike";
137
+ TAG_NAMES["STRONG"] = "strong";
138
+ TAG_NAMES["STYLE"] = "style";
139
+ TAG_NAMES["SUB"] = "sub";
140
+ TAG_NAMES["SUMMARY"] = "summary";
141
+ TAG_NAMES["SUP"] = "sup";
142
+ TAG_NAMES["TABLE"] = "table";
143
+ TAG_NAMES["TBODY"] = "tbody";
144
+ TAG_NAMES["TEMPLATE"] = "template";
145
+ TAG_NAMES["TEXTAREA"] = "textarea";
146
+ TAG_NAMES["TFOOT"] = "tfoot";
147
+ TAG_NAMES["TD"] = "td";
148
+ TAG_NAMES["TH"] = "th";
149
+ TAG_NAMES["THEAD"] = "thead";
150
+ TAG_NAMES["TITLE"] = "title";
151
+ TAG_NAMES["TR"] = "tr";
152
+ TAG_NAMES["TRACK"] = "track";
153
+ TAG_NAMES["TT"] = "tt";
154
+ TAG_NAMES["U"] = "u";
155
+ TAG_NAMES["UL"] = "ul";
156
+ TAG_NAMES["SVG"] = "svg";
157
+ TAG_NAMES["VAR"] = "var";
158
+ TAG_NAMES["WBR"] = "wbr";
159
+ TAG_NAMES["XMP"] = "xmp";
160
+ })(TAG_NAMES = exports.TAG_NAMES || (exports.TAG_NAMES = {}));
161
+ /**
162
+ * Tag IDs are numeric IDs for known tag names.
163
+ *
164
+ * We use tag IDs to improve the performance of tag name comparisons.
165
+ */
166
+ var TAG_ID;
167
+ (function (TAG_ID) {
168
+ TAG_ID[TAG_ID["UNKNOWN"] = 0] = "UNKNOWN";
169
+ TAG_ID[TAG_ID["A"] = 1] = "A";
170
+ TAG_ID[TAG_ID["ADDRESS"] = 2] = "ADDRESS";
171
+ TAG_ID[TAG_ID["ANNOTATION_XML"] = 3] = "ANNOTATION_XML";
172
+ TAG_ID[TAG_ID["APPLET"] = 4] = "APPLET";
173
+ TAG_ID[TAG_ID["AREA"] = 5] = "AREA";
174
+ TAG_ID[TAG_ID["ARTICLE"] = 6] = "ARTICLE";
175
+ TAG_ID[TAG_ID["ASIDE"] = 7] = "ASIDE";
176
+ TAG_ID[TAG_ID["B"] = 8] = "B";
177
+ TAG_ID[TAG_ID["BASE"] = 9] = "BASE";
178
+ TAG_ID[TAG_ID["BASEFONT"] = 10] = "BASEFONT";
179
+ TAG_ID[TAG_ID["BGSOUND"] = 11] = "BGSOUND";
180
+ TAG_ID[TAG_ID["BIG"] = 12] = "BIG";
181
+ TAG_ID[TAG_ID["BLOCKQUOTE"] = 13] = "BLOCKQUOTE";
182
+ TAG_ID[TAG_ID["BODY"] = 14] = "BODY";
183
+ TAG_ID[TAG_ID["BR"] = 15] = "BR";
184
+ TAG_ID[TAG_ID["BUTTON"] = 16] = "BUTTON";
185
+ TAG_ID[TAG_ID["CAPTION"] = 17] = "CAPTION";
186
+ TAG_ID[TAG_ID["CENTER"] = 18] = "CENTER";
187
+ TAG_ID[TAG_ID["CODE"] = 19] = "CODE";
188
+ TAG_ID[TAG_ID["COL"] = 20] = "COL";
189
+ TAG_ID[TAG_ID["COLGROUP"] = 21] = "COLGROUP";
190
+ TAG_ID[TAG_ID["DD"] = 22] = "DD";
191
+ TAG_ID[TAG_ID["DESC"] = 23] = "DESC";
192
+ TAG_ID[TAG_ID["DETAILS"] = 24] = "DETAILS";
193
+ TAG_ID[TAG_ID["DIALOG"] = 25] = "DIALOG";
194
+ TAG_ID[TAG_ID["DIR"] = 26] = "DIR";
195
+ TAG_ID[TAG_ID["DIV"] = 27] = "DIV";
196
+ TAG_ID[TAG_ID["DL"] = 28] = "DL";
197
+ TAG_ID[TAG_ID["DT"] = 29] = "DT";
198
+ TAG_ID[TAG_ID["EM"] = 30] = "EM";
199
+ TAG_ID[TAG_ID["EMBED"] = 31] = "EMBED";
200
+ TAG_ID[TAG_ID["FIELDSET"] = 32] = "FIELDSET";
201
+ TAG_ID[TAG_ID["FIGCAPTION"] = 33] = "FIGCAPTION";
202
+ TAG_ID[TAG_ID["FIGURE"] = 34] = "FIGURE";
203
+ TAG_ID[TAG_ID["FONT"] = 35] = "FONT";
204
+ TAG_ID[TAG_ID["FOOTER"] = 36] = "FOOTER";
205
+ TAG_ID[TAG_ID["FOREIGN_OBJECT"] = 37] = "FOREIGN_OBJECT";
206
+ TAG_ID[TAG_ID["FORM"] = 38] = "FORM";
207
+ TAG_ID[TAG_ID["FRAME"] = 39] = "FRAME";
208
+ TAG_ID[TAG_ID["FRAMESET"] = 40] = "FRAMESET";
209
+ TAG_ID[TAG_ID["H1"] = 41] = "H1";
210
+ TAG_ID[TAG_ID["H2"] = 42] = "H2";
211
+ TAG_ID[TAG_ID["H3"] = 43] = "H3";
212
+ TAG_ID[TAG_ID["H4"] = 44] = "H4";
213
+ TAG_ID[TAG_ID["H5"] = 45] = "H5";
214
+ TAG_ID[TAG_ID["H6"] = 46] = "H6";
215
+ TAG_ID[TAG_ID["HEAD"] = 47] = "HEAD";
216
+ TAG_ID[TAG_ID["HEADER"] = 48] = "HEADER";
217
+ TAG_ID[TAG_ID["HGROUP"] = 49] = "HGROUP";
218
+ TAG_ID[TAG_ID["HR"] = 50] = "HR";
219
+ TAG_ID[TAG_ID["HTML"] = 51] = "HTML";
220
+ TAG_ID[TAG_ID["I"] = 52] = "I";
221
+ TAG_ID[TAG_ID["IMG"] = 53] = "IMG";
222
+ TAG_ID[TAG_ID["IMAGE"] = 54] = "IMAGE";
223
+ TAG_ID[TAG_ID["INPUT"] = 55] = "INPUT";
224
+ TAG_ID[TAG_ID["IFRAME"] = 56] = "IFRAME";
225
+ TAG_ID[TAG_ID["KEYGEN"] = 57] = "KEYGEN";
226
+ TAG_ID[TAG_ID["LABEL"] = 58] = "LABEL";
227
+ TAG_ID[TAG_ID["LI"] = 59] = "LI";
228
+ TAG_ID[TAG_ID["LINK"] = 60] = "LINK";
229
+ TAG_ID[TAG_ID["LISTING"] = 61] = "LISTING";
230
+ TAG_ID[TAG_ID["MAIN"] = 62] = "MAIN";
231
+ TAG_ID[TAG_ID["MALIGNMARK"] = 63] = "MALIGNMARK";
232
+ TAG_ID[TAG_ID["MARQUEE"] = 64] = "MARQUEE";
233
+ TAG_ID[TAG_ID["MATH"] = 65] = "MATH";
234
+ TAG_ID[TAG_ID["MENU"] = 66] = "MENU";
235
+ TAG_ID[TAG_ID["META"] = 67] = "META";
236
+ TAG_ID[TAG_ID["MGLYPH"] = 68] = "MGLYPH";
237
+ TAG_ID[TAG_ID["MI"] = 69] = "MI";
238
+ TAG_ID[TAG_ID["MO"] = 70] = "MO";
239
+ TAG_ID[TAG_ID["MN"] = 71] = "MN";
240
+ TAG_ID[TAG_ID["MS"] = 72] = "MS";
241
+ TAG_ID[TAG_ID["MTEXT"] = 73] = "MTEXT";
242
+ TAG_ID[TAG_ID["NAV"] = 74] = "NAV";
243
+ TAG_ID[TAG_ID["NOBR"] = 75] = "NOBR";
244
+ TAG_ID[TAG_ID["NOFRAMES"] = 76] = "NOFRAMES";
245
+ TAG_ID[TAG_ID["NOEMBED"] = 77] = "NOEMBED";
246
+ TAG_ID[TAG_ID["NOSCRIPT"] = 78] = "NOSCRIPT";
247
+ TAG_ID[TAG_ID["OBJECT"] = 79] = "OBJECT";
248
+ TAG_ID[TAG_ID["OL"] = 80] = "OL";
249
+ TAG_ID[TAG_ID["OPTGROUP"] = 81] = "OPTGROUP";
250
+ TAG_ID[TAG_ID["OPTION"] = 82] = "OPTION";
251
+ TAG_ID[TAG_ID["P"] = 83] = "P";
252
+ TAG_ID[TAG_ID["PARAM"] = 84] = "PARAM";
253
+ TAG_ID[TAG_ID["PLAINTEXT"] = 85] = "PLAINTEXT";
254
+ TAG_ID[TAG_ID["PRE"] = 86] = "PRE";
255
+ TAG_ID[TAG_ID["RB"] = 87] = "RB";
256
+ TAG_ID[TAG_ID["RP"] = 88] = "RP";
257
+ TAG_ID[TAG_ID["RT"] = 89] = "RT";
258
+ TAG_ID[TAG_ID["RTC"] = 90] = "RTC";
259
+ TAG_ID[TAG_ID["RUBY"] = 91] = "RUBY";
260
+ TAG_ID[TAG_ID["S"] = 92] = "S";
261
+ TAG_ID[TAG_ID["SCRIPT"] = 93] = "SCRIPT";
262
+ TAG_ID[TAG_ID["SECTION"] = 94] = "SECTION";
263
+ TAG_ID[TAG_ID["SELECT"] = 95] = "SELECT";
264
+ TAG_ID[TAG_ID["SOURCE"] = 96] = "SOURCE";
265
+ TAG_ID[TAG_ID["SMALL"] = 97] = "SMALL";
266
+ TAG_ID[TAG_ID["SPAN"] = 98] = "SPAN";
267
+ TAG_ID[TAG_ID["STRIKE"] = 99] = "STRIKE";
268
+ TAG_ID[TAG_ID["STRONG"] = 100] = "STRONG";
269
+ TAG_ID[TAG_ID["STYLE"] = 101] = "STYLE";
270
+ TAG_ID[TAG_ID["SUB"] = 102] = "SUB";
271
+ TAG_ID[TAG_ID["SUMMARY"] = 103] = "SUMMARY";
272
+ TAG_ID[TAG_ID["SUP"] = 104] = "SUP";
273
+ TAG_ID[TAG_ID["TABLE"] = 105] = "TABLE";
274
+ TAG_ID[TAG_ID["TBODY"] = 106] = "TBODY";
275
+ TAG_ID[TAG_ID["TEMPLATE"] = 107] = "TEMPLATE";
276
+ TAG_ID[TAG_ID["TEXTAREA"] = 108] = "TEXTAREA";
277
+ TAG_ID[TAG_ID["TFOOT"] = 109] = "TFOOT";
278
+ TAG_ID[TAG_ID["TD"] = 110] = "TD";
279
+ TAG_ID[TAG_ID["TH"] = 111] = "TH";
280
+ TAG_ID[TAG_ID["THEAD"] = 112] = "THEAD";
281
+ TAG_ID[TAG_ID["TITLE"] = 113] = "TITLE";
282
+ TAG_ID[TAG_ID["TR"] = 114] = "TR";
283
+ TAG_ID[TAG_ID["TRACK"] = 115] = "TRACK";
284
+ TAG_ID[TAG_ID["TT"] = 116] = "TT";
285
+ TAG_ID[TAG_ID["U"] = 117] = "U";
286
+ TAG_ID[TAG_ID["UL"] = 118] = "UL";
287
+ TAG_ID[TAG_ID["SVG"] = 119] = "SVG";
288
+ TAG_ID[TAG_ID["VAR"] = 120] = "VAR";
289
+ TAG_ID[TAG_ID["WBR"] = 121] = "WBR";
290
+ TAG_ID[TAG_ID["XMP"] = 122] = "XMP";
291
+ })(TAG_ID = exports.TAG_ID || (exports.TAG_ID = {}));
292
+ const TAG_NAME_TO_ID = new Map([
293
+ [TAG_NAMES.A, TAG_ID.A],
294
+ [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],
295
+ [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],
296
+ [TAG_NAMES.APPLET, TAG_ID.APPLET],
297
+ [TAG_NAMES.AREA, TAG_ID.AREA],
298
+ [TAG_NAMES.ARTICLE, TAG_ID.ARTICLE],
299
+ [TAG_NAMES.ASIDE, TAG_ID.ASIDE],
300
+ [TAG_NAMES.B, TAG_ID.B],
301
+ [TAG_NAMES.BASE, TAG_ID.BASE],
302
+ [TAG_NAMES.BASEFONT, TAG_ID.BASEFONT],
303
+ [TAG_NAMES.BGSOUND, TAG_ID.BGSOUND],
304
+ [TAG_NAMES.BIG, TAG_ID.BIG],
305
+ [TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE],
306
+ [TAG_NAMES.BODY, TAG_ID.BODY],
307
+ [TAG_NAMES.BR, TAG_ID.BR],
308
+ [TAG_NAMES.BUTTON, TAG_ID.BUTTON],
309
+ [TAG_NAMES.CAPTION, TAG_ID.CAPTION],
310
+ [TAG_NAMES.CENTER, TAG_ID.CENTER],
311
+ [TAG_NAMES.CODE, TAG_ID.CODE],
312
+ [TAG_NAMES.COL, TAG_ID.COL],
313
+ [TAG_NAMES.COLGROUP, TAG_ID.COLGROUP],
314
+ [TAG_NAMES.DD, TAG_ID.DD],
315
+ [TAG_NAMES.DESC, TAG_ID.DESC],
316
+ [TAG_NAMES.DETAILS, TAG_ID.DETAILS],
317
+ [TAG_NAMES.DIALOG, TAG_ID.DIALOG],
318
+ [TAG_NAMES.DIR, TAG_ID.DIR],
319
+ [TAG_NAMES.DIV, TAG_ID.DIV],
320
+ [TAG_NAMES.DL, TAG_ID.DL],
321
+ [TAG_NAMES.DT, TAG_ID.DT],
322
+ [TAG_NAMES.EM, TAG_ID.EM],
323
+ [TAG_NAMES.EMBED, TAG_ID.EMBED],
324
+ [TAG_NAMES.FIELDSET, TAG_ID.FIELDSET],
325
+ [TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION],
326
+ [TAG_NAMES.FIGURE, TAG_ID.FIGURE],
327
+ [TAG_NAMES.FONT, TAG_ID.FONT],
328
+ [TAG_NAMES.FOOTER, TAG_ID.FOOTER],
329
+ [TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT],
330
+ [TAG_NAMES.FORM, TAG_ID.FORM],
331
+ [TAG_NAMES.FRAME, TAG_ID.FRAME],
332
+ [TAG_NAMES.FRAMESET, TAG_ID.FRAMESET],
333
+ [TAG_NAMES.H1, TAG_ID.H1],
334
+ [TAG_NAMES.H2, TAG_ID.H2],
335
+ [TAG_NAMES.H3, TAG_ID.H3],
336
+ [TAG_NAMES.H4, TAG_ID.H4],
337
+ [TAG_NAMES.H5, TAG_ID.H5],
338
+ [TAG_NAMES.H6, TAG_ID.H6],
339
+ [TAG_NAMES.HEAD, TAG_ID.HEAD],
340
+ [TAG_NAMES.HEADER, TAG_ID.HEADER],
341
+ [TAG_NAMES.HGROUP, TAG_ID.HGROUP],
342
+ [TAG_NAMES.HR, TAG_ID.HR],
343
+ [TAG_NAMES.HTML, TAG_ID.HTML],
344
+ [TAG_NAMES.I, TAG_ID.I],
345
+ [TAG_NAMES.IMG, TAG_ID.IMG],
346
+ [TAG_NAMES.IMAGE, TAG_ID.IMAGE],
347
+ [TAG_NAMES.INPUT, TAG_ID.INPUT],
348
+ [TAG_NAMES.IFRAME, TAG_ID.IFRAME],
349
+ [TAG_NAMES.KEYGEN, TAG_ID.KEYGEN],
350
+ [TAG_NAMES.LABEL, TAG_ID.LABEL],
351
+ [TAG_NAMES.LI, TAG_ID.LI],
352
+ [TAG_NAMES.LINK, TAG_ID.LINK],
353
+ [TAG_NAMES.LISTING, TAG_ID.LISTING],
354
+ [TAG_NAMES.MAIN, TAG_ID.MAIN],
355
+ [TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK],
356
+ [TAG_NAMES.MARQUEE, TAG_ID.MARQUEE],
357
+ [TAG_NAMES.MATH, TAG_ID.MATH],
358
+ [TAG_NAMES.MENU, TAG_ID.MENU],
359
+ [TAG_NAMES.META, TAG_ID.META],
360
+ [TAG_NAMES.MGLYPH, TAG_ID.MGLYPH],
361
+ [TAG_NAMES.MI, TAG_ID.MI],
362
+ [TAG_NAMES.MO, TAG_ID.MO],
363
+ [TAG_NAMES.MN, TAG_ID.MN],
364
+ [TAG_NAMES.MS, TAG_ID.MS],
365
+ [TAG_NAMES.MTEXT, TAG_ID.MTEXT],
366
+ [TAG_NAMES.NAV, TAG_ID.NAV],
367
+ [TAG_NAMES.NOBR, TAG_ID.NOBR],
368
+ [TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES],
369
+ [TAG_NAMES.NOEMBED, TAG_ID.NOEMBED],
370
+ [TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT],
371
+ [TAG_NAMES.OBJECT, TAG_ID.OBJECT],
372
+ [TAG_NAMES.OL, TAG_ID.OL],
373
+ [TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP],
374
+ [TAG_NAMES.OPTION, TAG_ID.OPTION],
375
+ [TAG_NAMES.P, TAG_ID.P],
376
+ [TAG_NAMES.PARAM, TAG_ID.PARAM],
377
+ [TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT],
378
+ [TAG_NAMES.PRE, TAG_ID.PRE],
379
+ [TAG_NAMES.RB, TAG_ID.RB],
380
+ [TAG_NAMES.RP, TAG_ID.RP],
381
+ [TAG_NAMES.RT, TAG_ID.RT],
382
+ [TAG_NAMES.RTC, TAG_ID.RTC],
383
+ [TAG_NAMES.RUBY, TAG_ID.RUBY],
384
+ [TAG_NAMES.S, TAG_ID.S],
385
+ [TAG_NAMES.SCRIPT, TAG_ID.SCRIPT],
386
+ [TAG_NAMES.SECTION, TAG_ID.SECTION],
387
+ [TAG_NAMES.SELECT, TAG_ID.SELECT],
388
+ [TAG_NAMES.SOURCE, TAG_ID.SOURCE],
389
+ [TAG_NAMES.SMALL, TAG_ID.SMALL],
390
+ [TAG_NAMES.SPAN, TAG_ID.SPAN],
391
+ [TAG_NAMES.STRIKE, TAG_ID.STRIKE],
392
+ [TAG_NAMES.STRONG, TAG_ID.STRONG],
393
+ [TAG_NAMES.STYLE, TAG_ID.STYLE],
394
+ [TAG_NAMES.SUB, TAG_ID.SUB],
395
+ [TAG_NAMES.SUMMARY, TAG_ID.SUMMARY],
396
+ [TAG_NAMES.SUP, TAG_ID.SUP],
397
+ [TAG_NAMES.TABLE, TAG_ID.TABLE],
398
+ [TAG_NAMES.TBODY, TAG_ID.TBODY],
399
+ [TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE],
400
+ [TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA],
401
+ [TAG_NAMES.TFOOT, TAG_ID.TFOOT],
402
+ [TAG_NAMES.TD, TAG_ID.TD],
403
+ [TAG_NAMES.TH, TAG_ID.TH],
404
+ [TAG_NAMES.THEAD, TAG_ID.THEAD],
405
+ [TAG_NAMES.TITLE, TAG_ID.TITLE],
406
+ [TAG_NAMES.TR, TAG_ID.TR],
407
+ [TAG_NAMES.TRACK, TAG_ID.TRACK],
408
+ [TAG_NAMES.TT, TAG_ID.TT],
409
+ [TAG_NAMES.U, TAG_ID.U],
410
+ [TAG_NAMES.UL, TAG_ID.UL],
411
+ [TAG_NAMES.SVG, TAG_ID.SVG],
412
+ [TAG_NAMES.VAR, TAG_ID.VAR],
413
+ [TAG_NAMES.WBR, TAG_ID.WBR],
414
+ [TAG_NAMES.XMP, TAG_ID.XMP],
415
+ ]);
416
+ function getTagID(tagName) {
417
+ var _a;
418
+ return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN;
419
+ }
420
+ exports.getTagID = getTagID;
421
+ const $ = TAG_ID;
422
+ exports.SPECIAL_ELEMENTS = {
423
+ [NS.HTML]: new Set([
424
+ $.ADDRESS,
425
+ $.APPLET,
426
+ $.AREA,
427
+ $.ARTICLE,
428
+ $.ASIDE,
429
+ $.BASE,
430
+ $.BASEFONT,
431
+ $.BGSOUND,
432
+ $.BLOCKQUOTE,
433
+ $.BODY,
434
+ $.BR,
435
+ $.BUTTON,
436
+ $.CAPTION,
437
+ $.CENTER,
438
+ $.COL,
439
+ $.COLGROUP,
440
+ $.DD,
441
+ $.DETAILS,
442
+ $.DIR,
443
+ $.DIV,
444
+ $.DL,
445
+ $.DT,
446
+ $.EMBED,
447
+ $.FIELDSET,
448
+ $.FIGCAPTION,
449
+ $.FIGURE,
450
+ $.FOOTER,
451
+ $.FORM,
452
+ $.FRAME,
453
+ $.FRAMESET,
454
+ $.H1,
455
+ $.H2,
456
+ $.H3,
457
+ $.H4,
458
+ $.H5,
459
+ $.H6,
460
+ $.HEAD,
461
+ $.HEADER,
462
+ $.HGROUP,
463
+ $.HR,
464
+ $.HTML,
465
+ $.IFRAME,
466
+ $.IMG,
467
+ $.INPUT,
468
+ $.LI,
469
+ $.LINK,
470
+ $.LISTING,
471
+ $.MAIN,
472
+ $.MARQUEE,
473
+ $.MENU,
474
+ $.META,
475
+ $.NAV,
476
+ $.NOEMBED,
477
+ $.NOFRAMES,
478
+ $.NOSCRIPT,
479
+ $.OBJECT,
480
+ $.OL,
481
+ $.P,
482
+ $.PARAM,
483
+ $.PLAINTEXT,
484
+ $.PRE,
485
+ $.SCRIPT,
486
+ $.SECTION,
487
+ $.SELECT,
488
+ $.SOURCE,
489
+ $.STYLE,
490
+ $.SUMMARY,
491
+ $.TABLE,
492
+ $.TBODY,
493
+ $.TD,
494
+ $.TEMPLATE,
495
+ $.TEXTAREA,
496
+ $.TFOOT,
497
+ $.TH,
498
+ $.THEAD,
499
+ $.TITLE,
500
+ $.TR,
501
+ $.TRACK,
502
+ $.UL,
503
+ $.WBR,
504
+ $.XMP,
505
+ ]),
506
+ [NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]),
507
+ [NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]),
508
+ [NS.XLINK]: new Set(),
509
+ [NS.XML]: new Set(),
510
+ [NS.XMLNS]: new Set(),
511
+ };
512
+ function isNumberedHeader(tn) {
513
+ return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6;
514
+ }
515
+ exports.isNumberedHeader = isNumberedHeader;
516
+ const UNESCAPED_TEXT = new Set([
517
+ TAG_NAMES.STYLE,
518
+ TAG_NAMES.SCRIPT,
519
+ TAG_NAMES.XMP,
520
+ TAG_NAMES.IFRAME,
521
+ TAG_NAMES.NOEMBED,
522
+ TAG_NAMES.NOFRAMES,
523
+ TAG_NAMES.PLAINTEXT,
524
+ ]);
525
+ function hasUnescapedText(tn, scriptingEnabled) {
526
+ return UNESCAPED_TEXT.has(tn) || (scriptingEnabled && tn === TAG_NAMES.NOSCRIPT);
527
+ }
528
+ exports.hasUnescapedText = hasUnescapedText;
529
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1,85 @@
1
+ import type { TAG_ID } from './html.js';
2
+ export declare enum TokenType {
3
+ CHARACTER = 0,
4
+ NULL_CHARACTER = 1,
5
+ WHITESPACE_CHARACTER = 2,
6
+ START_TAG = 3,
7
+ END_TAG = 4,
8
+ COMMENT = 5,
9
+ DOCTYPE = 6,
10
+ EOF = 7,
11
+ HIBERNATION = 8
12
+ }
13
+ export interface Location {
14
+ /** One-based line index of the first character. */
15
+ startLine: number;
16
+ /** One-based column index of the first character. */
17
+ startCol: number;
18
+ /** Zero-based first character index. */
19
+ startOffset: number;
20
+ /** One-based line index of the last character. */
21
+ endLine: number;
22
+ /** One-based column index of the last character. Points directly *after* the last character. */
23
+ endCol: number;
24
+ /** Zero-based last character index. Points directly *after* the last character. */
25
+ endOffset: number;
26
+ }
27
+ export interface LocationWithAttributes extends Location {
28
+ /** Start tag attributes' location info. */
29
+ attrs?: Record<string, Location>;
30
+ }
31
+ export interface ElementLocation extends LocationWithAttributes {
32
+ /** Element's start tag location info. */
33
+ startTag?: Location;
34
+ /**
35
+ * Element's end tag location info.
36
+ * This property is undefined, if the element has no closing tag.
37
+ */
38
+ endTag?: Location;
39
+ }
40
+ interface TokenBase {
41
+ readonly type: TokenType;
42
+ location: Location | null;
43
+ }
44
+ export interface DoctypeToken extends TokenBase {
45
+ readonly type: TokenType.DOCTYPE;
46
+ name: string | null;
47
+ forceQuirks: boolean;
48
+ publicId: string | null;
49
+ systemId: string | null;
50
+ }
51
+ export interface Attribute {
52
+ /** The name of the attribute. */
53
+ name: string;
54
+ /** The namespace of the attribute. */
55
+ namespace?: string;
56
+ /** The namespace-related prefix of the attribute. */
57
+ prefix?: string;
58
+ /** The value of the attribute. */
59
+ value: string;
60
+ }
61
+ export interface TagToken extends TokenBase {
62
+ readonly type: TokenType.START_TAG | TokenType.END_TAG;
63
+ tagName: string;
64
+ /** Used to cache the ID of the tag name. */
65
+ tagID: TAG_ID;
66
+ selfClosing: boolean;
67
+ ackSelfClosing: boolean;
68
+ attrs: Attribute[];
69
+ location: LocationWithAttributes | null;
70
+ }
71
+ export declare function getTokenAttr(token: TagToken, attrName: string): string | null;
72
+ export interface CommentToken extends TokenBase {
73
+ readonly type: TokenType.COMMENT;
74
+ data: string;
75
+ }
76
+ export interface EOFToken extends TokenBase {
77
+ readonly type: TokenType.EOF;
78
+ }
79
+ export interface CharacterToken extends TokenBase {
80
+ type: TokenType.CHARACTER | TokenType.NULL_CHARACTER | TokenType.WHITESPACE_CHARACTER;
81
+ chars: string;
82
+ }
83
+ export type Token = DoctypeToken | TagToken | CommentToken | EOFToken | CharacterToken;
84
+ export {};
85
+ //# sourceMappingURL=token.d.ts.map
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTokenAttr = exports.TokenType = void 0;
4
+ var TokenType;
5
+ (function (TokenType) {
6
+ TokenType[TokenType["CHARACTER"] = 0] = "CHARACTER";
7
+ TokenType[TokenType["NULL_CHARACTER"] = 1] = "NULL_CHARACTER";
8
+ TokenType[TokenType["WHITESPACE_CHARACTER"] = 2] = "WHITESPACE_CHARACTER";
9
+ TokenType[TokenType["START_TAG"] = 3] = "START_TAG";
10
+ TokenType[TokenType["END_TAG"] = 4] = "END_TAG";
11
+ TokenType[TokenType["COMMENT"] = 5] = "COMMENT";
12
+ TokenType[TokenType["DOCTYPE"] = 6] = "DOCTYPE";
13
+ TokenType[TokenType["EOF"] = 7] = "EOF";
14
+ TokenType[TokenType["HIBERNATION"] = 8] = "HIBERNATION";
15
+ })(TokenType = exports.TokenType || (exports.TokenType = {}));
16
+ function getTokenAttr(token, attrName) {
17
+ for (let i = token.attrs.length - 1; i >= 0; i--) {
18
+ if (token.attrs[i].name === attrName) {
19
+ return token.attrs[i].value;
20
+ }
21
+ }
22
+ return null;
23
+ }
24
+ exports.getTokenAttr = getTokenAttr;
25
+ //# sourceMappingURL=token.js.map
@@ -0,0 +1,49 @@
1
+ export declare const REPLACEMENT_CHARACTER = "\uFFFD";
2
+ export declare enum CODE_POINTS {
3
+ EOF = -1,
4
+ NULL = 0,
5
+ TABULATION = 9,
6
+ CARRIAGE_RETURN = 13,
7
+ LINE_FEED = 10,
8
+ FORM_FEED = 12,
9
+ SPACE = 32,
10
+ EXCLAMATION_MARK = 33,
11
+ QUOTATION_MARK = 34,
12
+ NUMBER_SIGN = 35,
13
+ AMPERSAND = 38,
14
+ APOSTROPHE = 39,
15
+ HYPHEN_MINUS = 45,
16
+ SOLIDUS = 47,
17
+ DIGIT_0 = 48,
18
+ DIGIT_9 = 57,
19
+ SEMICOLON = 59,
20
+ LESS_THAN_SIGN = 60,
21
+ EQUALS_SIGN = 61,
22
+ GREATER_THAN_SIGN = 62,
23
+ QUESTION_MARK = 63,
24
+ LATIN_CAPITAL_A = 65,
25
+ LATIN_CAPITAL_F = 70,
26
+ LATIN_CAPITAL_X = 88,
27
+ LATIN_CAPITAL_Z = 90,
28
+ RIGHT_SQUARE_BRACKET = 93,
29
+ GRAVE_ACCENT = 96,
30
+ LATIN_SMALL_A = 97,
31
+ LATIN_SMALL_F = 102,
32
+ LATIN_SMALL_X = 120,
33
+ LATIN_SMALL_Z = 122,
34
+ REPLACEMENT_CHARACTER = 65533
35
+ }
36
+ export declare const SEQUENCES: {
37
+ DASH_DASH: string;
38
+ CDATA_START: string;
39
+ DOCTYPE: string;
40
+ SCRIPT: string;
41
+ PUBLIC: string;
42
+ SYSTEM: string;
43
+ };
44
+ export declare function isSurrogate(cp: number): boolean;
45
+ export declare function isSurrogatePair(cp: number): boolean;
46
+ export declare function getSurrogatePairCodePoint(cp1: number, cp2: number): number;
47
+ export declare function isControlCodePoint(cp: number): boolean;
48
+ export declare function isUndefinedCodePoint(cp: number): boolean;
49
+ //# sourceMappingURL=unicode.d.ts.map