rahad-media-downloader 1.0.2

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