@node-core/utils 7.2.1 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1354) hide show
  1. package/lib/ci/build-types/normal_build.js +1 -1
  2. package/lib/ci/build-types/pr_build.js +11 -1
  3. package/lib/ci/build-types/test_run.js +1 -1
  4. package/lib/cli.js +3 -6
  5. package/lib/links.js +27 -15
  6. package/lib/pr_checker.js +45 -34
  7. package/lib/queries/PR.gql +1 -0
  8. package/node_modules/htmlparser2/README.md +112 -26
  9. package/node_modules/htmlparser2/dist/Parser.d.ts +257 -0
  10. package/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
  11. package/node_modules/htmlparser2/dist/Parser.js +644 -0
  12. package/node_modules/htmlparser2/dist/Parser.js.map +1 -0
  13. package/node_modules/htmlparser2/dist/Tokenizer.d.ts +194 -0
  14. package/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
  15. package/node_modules/htmlparser2/dist/Tokenizer.js +1056 -0
  16. package/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
  17. package/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
  18. package/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
  19. package/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
  20. package/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
  21. package/node_modules/htmlparser2/dist/WritableStream.d.ts +14 -0
  22. package/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
  23. package/node_modules/htmlparser2/dist/WritableStream.js +32 -0
  24. package/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
  25. package/node_modules/htmlparser2/dist/index.d.ts +34 -0
  26. package/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
  27. package/node_modules/htmlparser2/dist/index.js +46 -0
  28. package/node_modules/htmlparser2/dist/index.js.map +1 -0
  29. package/node_modules/htmlparser2/node_modules/dom-serializer/LICENSE +7 -0
  30. package/node_modules/htmlparser2/node_modules/dom-serializer/README.md +115 -0
  31. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
  32. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
  33. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js +15 -0
  34. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
  35. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts +72 -0
  36. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
  37. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js +173 -0
  38. package/node_modules/htmlparser2/node_modules/dom-serializer/dist/index.js.map +1 -0
  39. package/node_modules/htmlparser2/node_modules/dom-serializer/package.json +69 -0
  40. package/node_modules/htmlparser2/node_modules/dom-serializer/src/foreign-names.ts +19 -0
  41. package/node_modules/htmlparser2/node_modules/dom-serializer/src/index.ts +315 -0
  42. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts +48 -0
  43. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.d.ts.map +1 -0
  44. package/node_modules/htmlparser2/node_modules/domelementtype/dist/index.js +60 -0
  45. package/node_modules/htmlparser2/node_modules/domelementtype/package.json +59 -0
  46. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts +79 -0
  47. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.d.ts.map +1 -0
  48. package/node_modules/htmlparser2/node_modules/domhandler/dist/index.js +155 -0
  49. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts +264 -0
  50. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.d.ts.map +1 -0
  51. package/node_modules/htmlparser2/node_modules/domhandler/dist/node.js +359 -0
  52. package/node_modules/htmlparser2/node_modules/domhandler/package.json +65 -0
  53. package/node_modules/htmlparser2/node_modules/domhandler/readme.md +86 -0
  54. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts +71 -0
  55. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.d.ts.map +1 -0
  56. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js +180 -0
  57. package/node_modules/htmlparser2/node_modules/domutils/dist/feeds.js.map +1 -0
  58. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts +59 -0
  59. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.d.ts.map +1 -0
  60. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js +136 -0
  61. package/node_modules/htmlparser2/node_modules/domutils/dist/helpers.js.map +1 -0
  62. package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts +8 -0
  63. package/node_modules/htmlparser2/node_modules/domutils/dist/index.d.ts.map +1 -0
  64. package/node_modules/htmlparser2/node_modules/domutils/dist/index.js +8 -0
  65. package/node_modules/htmlparser2/node_modules/domutils/dist/index.js.map +1 -0
  66. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts +79 -0
  67. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.d.ts.map +1 -0
  68. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js +152 -0
  69. package/node_modules/htmlparser2/node_modules/domutils/dist/legacy.js.map +1 -0
  70. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts +49 -0
  71. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
  72. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js +138 -0
  73. package/node_modules/htmlparser2/node_modules/domutils/dist/manipulation.js.map +1 -0
  74. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts +54 -0
  75. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.d.ts.map +1 -0
  76. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js +129 -0
  77. package/node_modules/htmlparser2/node_modules/domutils/dist/querying.js.map +1 -0
  78. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts +46 -0
  79. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.d.ts.map +1 -0
  80. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js +81 -0
  81. package/node_modules/htmlparser2/node_modules/domutils/dist/stringify.js.map +1 -0
  82. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts +74 -0
  83. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.d.ts.map +1 -0
  84. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js +105 -0
  85. package/node_modules/htmlparser2/node_modules/domutils/dist/traversal.js.map +1 -0
  86. package/node_modules/htmlparser2/node_modules/domutils/package.json +69 -0
  87. package/node_modules/htmlparser2/node_modules/domutils/readme.md +25 -0
  88. package/node_modules/htmlparser2/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
  89. package/node_modules/htmlparser2/node_modules/domutils/src/feeds.ts +301 -0
  90. package/node_modules/htmlparser2/node_modules/domutils/src/helpers.ts +154 -0
  91. package/node_modules/htmlparser2/node_modules/domutils/src/index.ts +7 -0
  92. package/node_modules/htmlparser2/node_modules/domutils/src/legacy.ts +224 -0
  93. package/node_modules/htmlparser2/node_modules/domutils/src/manipulation.ts +156 -0
  94. package/node_modules/htmlparser2/node_modules/domutils/src/querying.ts +172 -0
  95. package/node_modules/htmlparser2/node_modules/domutils/src/stringify.ts +90 -0
  96. package/node_modules/htmlparser2/node_modules/domutils/src/traversal.ts +132 -0
  97. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
  98. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  99. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js +46 -0
  100. package/node_modules/htmlparser2/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  101. package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts +194 -0
  102. package/node_modules/htmlparser2/node_modules/entities/dist/decode.d.ts.map +1 -0
  103. package/node_modules/htmlparser2/node_modules/entities/dist/decode.js +544 -0
  104. package/node_modules/htmlparser2/node_modules/entities/dist/decode.js.map +1 -0
  105. package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts +24 -0
  106. package/node_modules/htmlparser2/node_modules/entities/dist/encode.d.ts.map +1 -0
  107. package/node_modules/htmlparser2/node_modules/entities/dist/encode.js +90 -0
  108. package/node_modules/htmlparser2/node_modules/entities/dist/encode.js.map +1 -0
  109. package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts +48 -0
  110. package/node_modules/htmlparser2/node_modules/entities/dist/escape.d.ts.map +1 -0
  111. package/node_modules/htmlparser2/node_modules/entities/dist/escape.js +132 -0
  112. package/node_modules/htmlparser2/node_modules/entities/dist/escape.js.map +1 -0
  113. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  114. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  115. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  116. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  117. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  118. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  119. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  120. package/node_modules/htmlparser2/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  121. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
  122. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  123. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js +12 -0
  124. package/node_modules/htmlparser2/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  125. package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts +89 -0
  126. package/node_modules/htmlparser2/node_modules/entities/dist/index.d.ts.map +1 -0
  127. package/node_modules/htmlparser2/node_modules/entities/dist/index.js +91 -0
  128. package/node_modules/htmlparser2/node_modules/entities/dist/index.js.map +1 -0
  129. package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  130. package/node_modules/htmlparser2/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  131. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
  132. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  133. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js +17 -0
  134. package/node_modules/htmlparser2/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  135. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
  136. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
  137. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js +93 -0
  138. package/node_modules/htmlparser2/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
  139. package/node_modules/htmlparser2/node_modules/entities/package.json +25 -62
  140. package/node_modules/htmlparser2/node_modules/entities/readme.md +4 -16
  141. package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +1 -32
  142. package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +12 -26
  143. package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +2 -0
  144. package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +11 -12
  145. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +1 -0
  146. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +1 -0
  147. package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +2 -1
  148. package/node_modules/htmlparser2/node_modules/entities/src/index.ts +8 -33
  149. package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +3 -15
  150. package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +4 -2
  151. package/node_modules/htmlparser2/package.json +34 -61
  152. package/node_modules/htmlparser2/src/Parser.ts +260 -100
  153. package/node_modules/htmlparser2/src/Tokenizer.ts +438 -165
  154. package/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
  155. package/node_modules/htmlparser2/src/WritableStream.ts +1 -2
  156. package/node_modules/htmlparser2/src/index.ts +14 -43
  157. package/node_modules/yocto-spinner/index.d.ts +162 -0
  158. package/node_modules/yocto-spinner/index.js +432 -0
  159. package/node_modules/yocto-spinner/package.json +64 -0
  160. package/node_modules/yocto-spinner/readme.md +237 -0
  161. package/package.json +4 -4
  162. package/node_modules/boolbase/README.md +0 -10
  163. package/node_modules/boolbase/index.js +0 -8
  164. package/node_modules/boolbase/package.json +0 -23
  165. package/node_modules/cheerio/LICENSE +0 -21
  166. package/node_modules/cheerio/Readme.md +0 -229
  167. package/node_modules/cheerio/dist/browser/api/attributes.d.ts +0 -385
  168. package/node_modules/cheerio/dist/browser/api/attributes.d.ts.map +0 -1
  169. package/node_modules/cheerio/dist/browser/api/attributes.js +0 -636
  170. package/node_modules/cheerio/dist/browser/api/attributes.js.map +0 -1
  171. package/node_modules/cheerio/dist/browser/api/css.d.ts +0 -42
  172. package/node_modules/cheerio/dist/browser/api/css.d.ts.map +0 -1
  173. package/node_modules/cheerio/dist/browser/api/css.js +0 -116
  174. package/node_modules/cheerio/dist/browser/api/css.js.map +0 -1
  175. package/node_modules/cheerio/dist/browser/api/extract.d.ts +0 -27
  176. package/node_modules/cheerio/dist/browser/api/extract.d.ts.map +0 -1
  177. package/node_modules/cheerio/dist/browser/api/extract.js +0 -42
  178. package/node_modules/cheerio/dist/browser/api/extract.js.map +0 -1
  179. package/node_modules/cheerio/dist/browser/api/forms.d.ts +0 -36
  180. package/node_modules/cheerio/dist/browser/api/forms.d.ts.map +0 -1
  181. package/node_modules/cheerio/dist/browser/api/forms.js +0 -81
  182. package/node_modules/cheerio/dist/browser/api/forms.js.map +0 -1
  183. package/node_modules/cheerio/dist/browser/api/manipulation.d.ts +0 -528
  184. package/node_modules/cheerio/dist/browser/api/manipulation.d.ts.map +0 -1
  185. package/node_modules/cheerio/dist/browser/api/manipulation.js +0 -831
  186. package/node_modules/cheerio/dist/browser/api/manipulation.js.map +0 -1
  187. package/node_modules/cheerio/dist/browser/api/traversing.d.ts +0 -657
  188. package/node_modules/cheerio/dist/browser/api/traversing.d.ts.map +0 -1
  189. package/node_modules/cheerio/dist/browser/api/traversing.js +0 -857
  190. package/node_modules/cheerio/dist/browser/api/traversing.js.map +0 -1
  191. package/node_modules/cheerio/dist/browser/cheerio.d.ts +0 -85
  192. package/node_modules/cheerio/dist/browser/cheerio.d.ts.map +0 -1
  193. package/node_modules/cheerio/dist/browser/cheerio.js +0 -58
  194. package/node_modules/cheerio/dist/browser/cheerio.js.map +0 -1
  195. package/node_modules/cheerio/dist/browser/index-browser.d.mts.map +0 -1
  196. package/node_modules/cheerio/dist/browser/index-browser.mjs.map +0 -1
  197. package/node_modules/cheerio/dist/browser/index.d.ts +0 -5
  198. package/node_modules/cheerio/dist/browser/index.js +0 -3
  199. package/node_modules/cheerio/dist/browser/load-parse.d.ts +0 -20
  200. package/node_modules/cheerio/dist/browser/load-parse.d.ts.map +0 -1
  201. package/node_modules/cheerio/dist/browser/load-parse.js +0 -28
  202. package/node_modules/cheerio/dist/browser/load-parse.js.map +0 -1
  203. package/node_modules/cheerio/dist/browser/load.d.ts +0 -91
  204. package/node_modules/cheerio/dist/browser/load.d.ts.map +0 -1
  205. package/node_modules/cheerio/dist/browser/load.js +0 -129
  206. package/node_modules/cheerio/dist/browser/load.js.map +0 -1
  207. package/node_modules/cheerio/dist/browser/options.d.ts +0 -98
  208. package/node_modules/cheerio/dist/browser/options.d.ts.map +0 -1
  209. package/node_modules/cheerio/dist/browser/options.js +0 -34
  210. package/node_modules/cheerio/dist/browser/options.js.map +0 -1
  211. package/node_modules/cheerio/dist/browser/package.json +0 -3
  212. package/node_modules/cheerio/dist/browser/parse.d.ts +0 -18
  213. package/node_modules/cheerio/dist/browser/parse.d.ts.map +0 -1
  214. package/node_modules/cheerio/dist/browser/parse.js +0 -73
  215. package/node_modules/cheerio/dist/browser/parse.js.map +0 -1
  216. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts +0 -20
  217. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts.map +0 -1
  218. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js +0 -50
  219. package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js.map +0 -1
  220. package/node_modules/cheerio/dist/browser/slim.d.ts +0 -25
  221. package/node_modules/cheerio/dist/browser/slim.d.ts.map +0 -1
  222. package/node_modules/cheerio/dist/browser/slim.js +0 -22
  223. package/node_modules/cheerio/dist/browser/slim.js.map +0 -1
  224. package/node_modules/cheerio/dist/browser/static.d.ts +0 -112
  225. package/node_modules/cheerio/dist/browser/static.d.ts.map +0 -1
  226. package/node_modules/cheerio/dist/browser/static.js +0 -204
  227. package/node_modules/cheerio/dist/browser/static.js.map +0 -1
  228. package/node_modules/cheerio/dist/browser/types.d.ts +0 -21
  229. package/node_modules/cheerio/dist/browser/types.d.ts.map +0 -1
  230. package/node_modules/cheerio/dist/browser/types.js +0 -3
  231. package/node_modules/cheerio/dist/browser/types.js.map +0 -1
  232. package/node_modules/cheerio/dist/browser/utils.d.ts +0 -55
  233. package/node_modules/cheerio/dist/browser/utils.d.ts.map +0 -1
  234. package/node_modules/cheerio/dist/browser/utils.js +0 -84
  235. package/node_modules/cheerio/dist/browser/utils.js.map +0 -1
  236. package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts +0 -385
  237. package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts.map +0 -1
  238. package/node_modules/cheerio/dist/commonjs/api/attributes.js +0 -647
  239. package/node_modules/cheerio/dist/commonjs/api/attributes.js.map +0 -1
  240. package/node_modules/cheerio/dist/commonjs/api/css.d.ts +0 -42
  241. package/node_modules/cheerio/dist/commonjs/api/css.d.ts.map +0 -1
  242. package/node_modules/cheerio/dist/commonjs/api/css.js +0 -119
  243. package/node_modules/cheerio/dist/commonjs/api/css.js.map +0 -1
  244. package/node_modules/cheerio/dist/commonjs/api/extract.d.ts +0 -27
  245. package/node_modules/cheerio/dist/commonjs/api/extract.d.ts.map +0 -1
  246. package/node_modules/cheerio/dist/commonjs/api/extract.js +0 -45
  247. package/node_modules/cheerio/dist/commonjs/api/extract.js.map +0 -1
  248. package/node_modules/cheerio/dist/commonjs/api/forms.d.ts +0 -36
  249. package/node_modules/cheerio/dist/commonjs/api/forms.d.ts.map +0 -1
  250. package/node_modules/cheerio/dist/commonjs/api/forms.js +0 -85
  251. package/node_modules/cheerio/dist/commonjs/api/forms.js.map +0 -1
  252. package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts +0 -528
  253. package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts.map +0 -1
  254. package/node_modules/cheerio/dist/commonjs/api/manipulation.js +0 -850
  255. package/node_modules/cheerio/dist/commonjs/api/manipulation.js.map +0 -1
  256. package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts +0 -657
  257. package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts.map +0 -1
  258. package/node_modules/cheerio/dist/commonjs/api/traversing.js +0 -914
  259. package/node_modules/cheerio/dist/commonjs/api/traversing.js.map +0 -1
  260. package/node_modules/cheerio/dist/commonjs/cheerio.d.ts +0 -85
  261. package/node_modules/cheerio/dist/commonjs/cheerio.d.ts.map +0 -1
  262. package/node_modules/cheerio/dist/commonjs/cheerio.js +0 -95
  263. package/node_modules/cheerio/dist/commonjs/cheerio.js.map +0 -1
  264. package/node_modules/cheerio/dist/commonjs/index.d.ts +0 -104
  265. package/node_modules/cheerio/dist/commonjs/index.d.ts.map +0 -1
  266. package/node_modules/cheerio/dist/commonjs/index.js +0 -250
  267. package/node_modules/cheerio/dist/commonjs/index.js.map +0 -1
  268. package/node_modules/cheerio/dist/commonjs/load-parse.d.ts +0 -20
  269. package/node_modules/cheerio/dist/commonjs/load-parse.d.ts.map +0 -1
  270. package/node_modules/cheerio/dist/commonjs/load-parse.js +0 -34
  271. package/node_modules/cheerio/dist/commonjs/load-parse.js.map +0 -1
  272. package/node_modules/cheerio/dist/commonjs/load.d.ts +0 -91
  273. package/node_modules/cheerio/dist/commonjs/load.d.ts.map +0 -1
  274. package/node_modules/cheerio/dist/commonjs/load.js +0 -165
  275. package/node_modules/cheerio/dist/commonjs/load.js.map +0 -1
  276. package/node_modules/cheerio/dist/commonjs/options.d.ts +0 -98
  277. package/node_modules/cheerio/dist/commonjs/options.d.ts.map +0 -1
  278. package/node_modules/cheerio/dist/commonjs/options.js +0 -37
  279. package/node_modules/cheerio/dist/commonjs/options.js.map +0 -1
  280. package/node_modules/cheerio/dist/commonjs/package.json +0 -3
  281. package/node_modules/cheerio/dist/commonjs/parse.d.ts +0 -18
  282. package/node_modules/cheerio/dist/commonjs/parse.d.ts.map +0 -1
  283. package/node_modules/cheerio/dist/commonjs/parse.js +0 -77
  284. package/node_modules/cheerio/dist/commonjs/parse.js.map +0 -1
  285. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts +0 -20
  286. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts.map +0 -1
  287. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js +0 -54
  288. package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js.map +0 -1
  289. package/node_modules/cheerio/dist/commonjs/slim.d.ts +0 -25
  290. package/node_modules/cheerio/dist/commonjs/slim.d.ts.map +0 -1
  291. package/node_modules/cheerio/dist/commonjs/slim.js +0 -30
  292. package/node_modules/cheerio/dist/commonjs/slim.js.map +0 -1
  293. package/node_modules/cheerio/dist/commonjs/static.d.ts +0 -112
  294. package/node_modules/cheerio/dist/commonjs/static.d.ts.map +0 -1
  295. package/node_modules/cheerio/dist/commonjs/static.js +0 -214
  296. package/node_modules/cheerio/dist/commonjs/static.js.map +0 -1
  297. package/node_modules/cheerio/dist/commonjs/types.d.ts +0 -21
  298. package/node_modules/cheerio/dist/commonjs/types.d.ts.map +0 -1
  299. package/node_modules/cheerio/dist/commonjs/types.js +0 -4
  300. package/node_modules/cheerio/dist/commonjs/types.js.map +0 -1
  301. package/node_modules/cheerio/dist/commonjs/utils.d.ts +0 -55
  302. package/node_modules/cheerio/dist/commonjs/utils.d.ts.map +0 -1
  303. package/node_modules/cheerio/dist/commonjs/utils.js +0 -91
  304. package/node_modules/cheerio/dist/commonjs/utils.js.map +0 -1
  305. package/node_modules/cheerio/dist/esm/api/attributes.d.ts +0 -385
  306. package/node_modules/cheerio/dist/esm/api/attributes.d.ts.map +0 -1
  307. package/node_modules/cheerio/dist/esm/api/attributes.js +0 -636
  308. package/node_modules/cheerio/dist/esm/api/attributes.js.map +0 -1
  309. package/node_modules/cheerio/dist/esm/api/css.d.ts +0 -42
  310. package/node_modules/cheerio/dist/esm/api/css.d.ts.map +0 -1
  311. package/node_modules/cheerio/dist/esm/api/css.js +0 -116
  312. package/node_modules/cheerio/dist/esm/api/css.js.map +0 -1
  313. package/node_modules/cheerio/dist/esm/api/extract.d.ts +0 -27
  314. package/node_modules/cheerio/dist/esm/api/extract.d.ts.map +0 -1
  315. package/node_modules/cheerio/dist/esm/api/extract.js +0 -42
  316. package/node_modules/cheerio/dist/esm/api/extract.js.map +0 -1
  317. package/node_modules/cheerio/dist/esm/api/forms.d.ts +0 -36
  318. package/node_modules/cheerio/dist/esm/api/forms.d.ts.map +0 -1
  319. package/node_modules/cheerio/dist/esm/api/forms.js +0 -81
  320. package/node_modules/cheerio/dist/esm/api/forms.js.map +0 -1
  321. package/node_modules/cheerio/dist/esm/api/manipulation.d.ts +0 -528
  322. package/node_modules/cheerio/dist/esm/api/manipulation.d.ts.map +0 -1
  323. package/node_modules/cheerio/dist/esm/api/manipulation.js +0 -831
  324. package/node_modules/cheerio/dist/esm/api/manipulation.js.map +0 -1
  325. package/node_modules/cheerio/dist/esm/api/traversing.d.ts +0 -657
  326. package/node_modules/cheerio/dist/esm/api/traversing.d.ts.map +0 -1
  327. package/node_modules/cheerio/dist/esm/api/traversing.js +0 -857
  328. package/node_modules/cheerio/dist/esm/api/traversing.js.map +0 -1
  329. package/node_modules/cheerio/dist/esm/cheerio.d.ts +0 -85
  330. package/node_modules/cheerio/dist/esm/cheerio.d.ts.map +0 -1
  331. package/node_modules/cheerio/dist/esm/cheerio.js +0 -58
  332. package/node_modules/cheerio/dist/esm/cheerio.js.map +0 -1
  333. package/node_modules/cheerio/dist/esm/index.d.ts +0 -104
  334. package/node_modules/cheerio/dist/esm/index.d.ts.map +0 -1
  335. package/node_modules/cheerio/dist/esm/index.js +0 -202
  336. package/node_modules/cheerio/dist/esm/index.js.map +0 -1
  337. package/node_modules/cheerio/dist/esm/load-parse.d.ts +0 -20
  338. package/node_modules/cheerio/dist/esm/load-parse.d.ts.map +0 -1
  339. package/node_modules/cheerio/dist/esm/load-parse.js +0 -28
  340. package/node_modules/cheerio/dist/esm/load-parse.js.map +0 -1
  341. package/node_modules/cheerio/dist/esm/load.d.ts +0 -91
  342. package/node_modules/cheerio/dist/esm/load.d.ts.map +0 -1
  343. package/node_modules/cheerio/dist/esm/load.js +0 -129
  344. package/node_modules/cheerio/dist/esm/load.js.map +0 -1
  345. package/node_modules/cheerio/dist/esm/options.d.ts +0 -98
  346. package/node_modules/cheerio/dist/esm/options.d.ts.map +0 -1
  347. package/node_modules/cheerio/dist/esm/options.js +0 -34
  348. package/node_modules/cheerio/dist/esm/options.js.map +0 -1
  349. package/node_modules/cheerio/dist/esm/package.json +0 -3
  350. package/node_modules/cheerio/dist/esm/parse.d.ts +0 -18
  351. package/node_modules/cheerio/dist/esm/parse.d.ts.map +0 -1
  352. package/node_modules/cheerio/dist/esm/parse.js +0 -73
  353. package/node_modules/cheerio/dist/esm/parse.js.map +0 -1
  354. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts +0 -20
  355. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts.map +0 -1
  356. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js +0 -50
  357. package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js.map +0 -1
  358. package/node_modules/cheerio/dist/esm/slim.d.ts +0 -25
  359. package/node_modules/cheerio/dist/esm/slim.d.ts.map +0 -1
  360. package/node_modules/cheerio/dist/esm/slim.js +0 -22
  361. package/node_modules/cheerio/dist/esm/slim.js.map +0 -1
  362. package/node_modules/cheerio/dist/esm/static.d.ts +0 -112
  363. package/node_modules/cheerio/dist/esm/static.d.ts.map +0 -1
  364. package/node_modules/cheerio/dist/esm/static.js +0 -204
  365. package/node_modules/cheerio/dist/esm/static.js.map +0 -1
  366. package/node_modules/cheerio/dist/esm/types.d.ts +0 -21
  367. package/node_modules/cheerio/dist/esm/types.d.ts.map +0 -1
  368. package/node_modules/cheerio/dist/esm/types.js +0 -3
  369. package/node_modules/cheerio/dist/esm/types.js.map +0 -1
  370. package/node_modules/cheerio/dist/esm/utils.d.ts +0 -55
  371. package/node_modules/cheerio/dist/esm/utils.d.ts.map +0 -1
  372. package/node_modules/cheerio/dist/esm/utils.js +0 -84
  373. package/node_modules/cheerio/dist/esm/utils.js.map +0 -1
  374. package/node_modules/cheerio/node_modules/undici/LICENSE +0 -21
  375. package/node_modules/cheerio/node_modules/undici/README.md +0 -741
  376. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Agent.md +0 -84
  377. package/node_modules/cheerio/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
  378. package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
  379. package/node_modules/cheerio/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
  380. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Client.md +0 -285
  381. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
  382. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Connector.md +0 -115
  383. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ContentType.md +0 -57
  384. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Cookies.md +0 -101
  385. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Debug.md +0 -62
  386. package/node_modules/cheerio/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
  387. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
  388. package/node_modules/cheerio/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
  389. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Errors.md +0 -49
  390. package/node_modules/cheerio/node_modules/undici/docs/docs/api/EventSource.md +0 -45
  391. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Fetch.md +0 -60
  392. package/node_modules/cheerio/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
  393. package/node_modules/cheerio/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
  394. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
  395. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
  396. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
  397. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockClient.md +0 -81
  398. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
  399. package/node_modules/cheerio/node_modules/undici/docs/docs/api/MockPool.md +0 -555
  400. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Pool.md +0 -84
  401. package/node_modules/cheerio/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
  402. package/node_modules/cheerio/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
  403. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
  404. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
  405. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
  406. package/node_modules/cheerio/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
  407. package/node_modules/cheerio/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
  408. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -274
  409. package/node_modules/cheerio/node_modules/undici/docs/docs/api/Util.md +0 -25
  410. package/node_modules/cheerio/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
  411. package/node_modules/cheerio/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
  412. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
  413. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
  414. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
  415. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
  416. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
  417. package/node_modules/cheerio/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
  418. package/node_modules/cheerio/node_modules/undici/index-fetch.js +0 -65
  419. package/node_modules/cheerio/node_modules/undici/index.d.ts +0 -3
  420. package/node_modules/cheerio/node_modules/undici/index.js +0 -234
  421. package/node_modules/cheerio/node_modules/undici/lib/api/abort-signal.js +0 -59
  422. package/node_modules/cheerio/node_modules/undici/lib/api/api-connect.js +0 -110
  423. package/node_modules/cheerio/node_modules/undici/lib/api/api-pipeline.js +0 -252
  424. package/node_modules/cheerio/node_modules/undici/lib/api/api-request.js +0 -214
  425. package/node_modules/cheerio/node_modules/undici/lib/api/api-stream.js +0 -209
  426. package/node_modules/cheerio/node_modules/undici/lib/api/api-upgrade.js +0 -111
  427. package/node_modules/cheerio/node_modules/undici/lib/api/index.js +0 -7
  428. package/node_modules/cheerio/node_modules/undici/lib/api/readable.js +0 -580
  429. package/node_modules/cheerio/node_modules/undici/lib/cache/memory-cache-store.js +0 -234
  430. package/node_modules/cheerio/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -461
  431. package/node_modules/cheerio/node_modules/undici/lib/core/connect.js +0 -153
  432. package/node_modules/cheerio/node_modules/undici/lib/core/constants.js +0 -143
  433. package/node_modules/cheerio/node_modules/undici/lib/core/diagnostics.js +0 -227
  434. package/node_modules/cheerio/node_modules/undici/lib/core/errors.js +0 -477
  435. package/node_modules/cheerio/node_modules/undici/lib/core/request.js +0 -453
  436. package/node_modules/cheerio/node_modules/undici/lib/core/socks5-client.js +0 -412
  437. package/node_modules/cheerio/node_modules/undici/lib/core/socks5-utils.js +0 -198
  438. package/node_modules/cheerio/node_modules/undici/lib/core/symbols.js +0 -75
  439. package/node_modules/cheerio/node_modules/undici/lib/core/tree.js +0 -160
  440. package/node_modules/cheerio/node_modules/undici/lib/core/util.js +0 -992
  441. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/agent.js +0 -158
  442. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  443. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h1.js +0 -1654
  444. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  445. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/client.js +0 -663
  446. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -165
  447. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  448. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  449. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  450. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  451. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  452. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/pool.js +0 -118
  453. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -318
  454. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  455. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  456. package/node_modules/cheerio/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -249
  457. package/node_modules/cheerio/node_modules/undici/lib/encoding/index.js +0 -33
  458. package/node_modules/cheerio/node_modules/undici/lib/global.js +0 -50
  459. package/node_modules/cheerio/node_modules/undici/lib/handler/cache-handler.js +0 -578
  460. package/node_modules/cheerio/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  461. package/node_modules/cheerio/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  462. package/node_modules/cheerio/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  463. package/node_modules/cheerio/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  464. package/node_modules/cheerio/node_modules/undici/lib/handler/retry-handler.js +0 -394
  465. package/node_modules/cheerio/node_modules/undici/lib/handler/unwrap-handler.js +0 -100
  466. package/node_modules/cheerio/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  467. package/node_modules/cheerio/node_modules/undici/lib/interceptor/cache.js +0 -495
  468. package/node_modules/cheerio/node_modules/undici/lib/interceptor/decompress.js +0 -259
  469. package/node_modules/cheerio/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  470. package/node_modules/cheerio/node_modules/undici/lib/interceptor/dns.js +0 -571
  471. package/node_modules/cheerio/node_modules/undici/lib/interceptor/dump.js +0 -112
  472. package/node_modules/cheerio/node_modules/undici/lib/interceptor/redirect.js +0 -21
  473. package/node_modules/cheerio/node_modules/undici/lib/interceptor/response-error.js +0 -95
  474. package/node_modules/cheerio/node_modules/undici/lib/interceptor/retry.js +0 -19
  475. package/node_modules/cheerio/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  476. package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.d.ts +0 -195
  477. package/node_modules/cheerio/node_modules/undici/lib/llhttp/constants.js +0 -531
  478. package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  479. package/node_modules/cheerio/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  480. package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.d.ts +0 -2
  481. package/node_modules/cheerio/node_modules/undici/lib/llhttp/utils.js +0 -12
  482. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-agent.js +0 -232
  483. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  484. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-client.js +0 -68
  485. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-errors.js +0 -29
  486. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  487. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-pool.js +0 -68
  488. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  489. package/node_modules/cheerio/node_modules/undici/lib/mock/mock-utils.js +0 -486
  490. package/node_modules/cheerio/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  491. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  492. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  493. package/node_modules/cheerio/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  494. package/node_modules/cheerio/node_modules/undici/lib/util/cache.js +0 -408
  495. package/node_modules/cheerio/node_modules/undici/lib/util/date.js +0 -653
  496. package/node_modules/cheerio/node_modules/undici/lib/util/promise.js +0 -28
  497. package/node_modules/cheerio/node_modules/undici/lib/util/runtime-features.js +0 -124
  498. package/node_modules/cheerio/node_modules/undici/lib/util/stats.js +0 -32
  499. package/node_modules/cheerio/node_modules/undici/lib/util/timers.js +0 -425
  500. package/node_modules/cheerio/node_modules/undici/lib/web/cache/cache.js +0 -864
  501. package/node_modules/cheerio/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  502. package/node_modules/cheerio/node_modules/undici/lib/web/cache/util.js +0 -45
  503. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/constants.js +0 -12
  504. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/index.js +0 -199
  505. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/parse.js +0 -322
  506. package/node_modules/cheerio/node_modules/undici/lib/web/cookies/util.js +0 -282
  507. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  508. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  509. package/node_modules/cheerio/node_modules/undici/lib/web/eventsource/util.js +0 -29
  510. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  511. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/body.js +0 -509
  512. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/constants.js +0 -131
  513. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  514. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  515. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  516. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/global.js +0 -40
  517. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/headers.js +0 -719
  518. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/index.js +0 -2413
  519. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/request.js +0 -1115
  520. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/response.js +0 -641
  521. package/node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js +0 -1522
  522. package/node_modules/cheerio/node_modules/undici/lib/web/infra/index.js +0 -229
  523. package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
  524. package/node_modules/cheerio/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  525. package/node_modules/cheerio/node_modules/undici/lib/web/webidl/index.js +0 -1006
  526. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/connection.js +0 -329
  527. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/constants.js +0 -126
  528. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/events.js +0 -331
  529. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/frame.js +0 -133
  530. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -118
  531. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/receiver.js +0 -450
  532. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/sender.js +0 -109
  533. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  534. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -491
  535. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/util.js +0 -347
  536. package/node_modules/cheerio/node_modules/undici/lib/web/websocket/websocket.js +0 -751
  537. package/node_modules/cheerio/node_modules/undici/package.json +0 -152
  538. package/node_modules/cheerio/node_modules/undici/scripts/strip-comments.js +0 -10
  539. package/node_modules/cheerio/node_modules/undici/types/README.md +0 -6
  540. package/node_modules/cheerio/node_modules/undici/types/agent.d.ts +0 -32
  541. package/node_modules/cheerio/node_modules/undici/types/api.d.ts +0 -43
  542. package/node_modules/cheerio/node_modules/undici/types/balanced-pool.d.ts +0 -30
  543. package/node_modules/cheerio/node_modules/undici/types/cache-interceptor.d.ts +0 -179
  544. package/node_modules/cheerio/node_modules/undici/types/cache.d.ts +0 -36
  545. package/node_modules/cheerio/node_modules/undici/types/client-stats.d.ts +0 -15
  546. package/node_modules/cheerio/node_modules/undici/types/client.d.ts +0 -123
  547. package/node_modules/cheerio/node_modules/undici/types/connector.d.ts +0 -36
  548. package/node_modules/cheerio/node_modules/undici/types/content-type.d.ts +0 -21
  549. package/node_modules/cheerio/node_modules/undici/types/cookies.d.ts +0 -30
  550. package/node_modules/cheerio/node_modules/undici/types/diagnostics-channel.d.ts +0 -74
  551. package/node_modules/cheerio/node_modules/undici/types/dispatcher.d.ts +0 -273
  552. package/node_modules/cheerio/node_modules/undici/types/env-http-proxy-agent.d.ts +0 -22
  553. package/node_modules/cheerio/node_modules/undici/types/errors.d.ts +0 -177
  554. package/node_modules/cheerio/node_modules/undici/types/eventsource.d.ts +0 -66
  555. package/node_modules/cheerio/node_modules/undici/types/fetch.d.ts +0 -231
  556. package/node_modules/cheerio/node_modules/undici/types/formdata.d.ts +0 -114
  557. package/node_modules/cheerio/node_modules/undici/types/global-dispatcher.d.ts +0 -9
  558. package/node_modules/cheerio/node_modules/undici/types/global-origin.d.ts +0 -7
  559. package/node_modules/cheerio/node_modules/undici/types/h2c-client.d.ts +0 -73
  560. package/node_modules/cheerio/node_modules/undici/types/handlers.d.ts +0 -14
  561. package/node_modules/cheerio/node_modules/undici/types/header.d.ts +0 -160
  562. package/node_modules/cheerio/node_modules/undici/types/index.d.ts +0 -91
  563. package/node_modules/cheerio/node_modules/undici/types/interceptors.d.ts +0 -80
  564. package/node_modules/cheerio/node_modules/undici/types/mock-agent.d.ts +0 -68
  565. package/node_modules/cheerio/node_modules/undici/types/mock-call-history.d.ts +0 -111
  566. package/node_modules/cheerio/node_modules/undici/types/mock-client.d.ts +0 -27
  567. package/node_modules/cheerio/node_modules/undici/types/mock-errors.d.ts +0 -12
  568. package/node_modules/cheerio/node_modules/undici/types/mock-interceptor.d.ts +0 -94
  569. package/node_modules/cheerio/node_modules/undici/types/mock-pool.d.ts +0 -27
  570. package/node_modules/cheerio/node_modules/undici/types/patch.d.ts +0 -29
  571. package/node_modules/cheerio/node_modules/undici/types/pool-stats.d.ts +0 -19
  572. package/node_modules/cheerio/node_modules/undici/types/pool.d.ts +0 -41
  573. package/node_modules/cheerio/node_modules/undici/types/proxy-agent.d.ts +0 -29
  574. package/node_modules/cheerio/node_modules/undici/types/readable.d.ts +0 -68
  575. package/node_modules/cheerio/node_modules/undici/types/retry-agent.d.ts +0 -8
  576. package/node_modules/cheerio/node_modules/undici/types/retry-handler.d.ts +0 -125
  577. package/node_modules/cheerio/node_modules/undici/types/round-robin-pool.d.ts +0 -41
  578. package/node_modules/cheerio/node_modules/undici/types/snapshot-agent.d.ts +0 -109
  579. package/node_modules/cheerio/node_modules/undici/types/socks5-proxy-agent.d.ts +0 -25
  580. package/node_modules/cheerio/node_modules/undici/types/util.d.ts +0 -18
  581. package/node_modules/cheerio/node_modules/undici/types/utility.d.ts +0 -7
  582. package/node_modules/cheerio/node_modules/undici/types/webidl.d.ts +0 -347
  583. package/node_modules/cheerio/node_modules/undici/types/websocket.d.ts +0 -188
  584. package/node_modules/cheerio/package.json +0 -182
  585. package/node_modules/cheerio/src/api/attributes.ts +0 -1145
  586. package/node_modules/cheerio/src/api/css.ts +0 -224
  587. package/node_modules/cheerio/src/api/extract.ts +0 -92
  588. package/node_modules/cheerio/src/api/forms.ts +0 -103
  589. package/node_modules/cheerio/src/api/manipulation.ts +0 -1115
  590. package/node_modules/cheerio/src/api/traversing.ts +0 -1175
  591. package/node_modules/cheerio/src/cheerio.ts +0 -143
  592. package/node_modules/cheerio/src/index-browser.mts +0 -10
  593. package/node_modules/cheerio/src/index.ts +0 -294
  594. package/node_modules/cheerio/src/load-parse.ts +0 -39
  595. package/node_modules/cheerio/src/load.ts +0 -282
  596. package/node_modules/cheerio/src/options.ts +0 -136
  597. package/node_modules/cheerio/src/parse.ts +0 -105
  598. package/node_modules/cheerio/src/parsers/parse5-adapter.ts +0 -66
  599. package/node_modules/cheerio/src/slim.ts +0 -33
  600. package/node_modules/cheerio/src/static.ts +0 -312
  601. package/node_modules/cheerio/src/types.ts +0 -58
  602. package/node_modules/cheerio/src/utils.ts +0 -99
  603. package/node_modules/cheerio-select/README.md +0 -18
  604. package/node_modules/cheerio-select/lib/esm/helpers.d.ts +0 -5
  605. package/node_modules/cheerio-select/lib/esm/helpers.d.ts.map +0 -1
  606. package/node_modules/cheerio-select/lib/esm/helpers.js +0 -20
  607. package/node_modules/cheerio-select/lib/esm/helpers.js.map +0 -1
  608. package/node_modules/cheerio-select/lib/esm/index.d.ts +0 -12
  609. package/node_modules/cheerio-select/lib/esm/index.d.ts.map +0 -1
  610. package/node_modules/cheerio-select/lib/esm/index.js +0 -241
  611. package/node_modules/cheerio-select/lib/esm/index.js.map +0 -1
  612. package/node_modules/cheerio-select/lib/esm/package.json +0 -1
  613. package/node_modules/cheerio-select/lib/esm/positionals.d.ts +0 -10
  614. package/node_modules/cheerio-select/lib/esm/positionals.d.ts.map +0 -1
  615. package/node_modules/cheerio-select/lib/esm/positionals.js +0 -47
  616. package/node_modules/cheerio-select/lib/esm/positionals.js.map +0 -1
  617. package/node_modules/cheerio-select/lib/helpers.d.ts +0 -5
  618. package/node_modules/cheerio-select/lib/helpers.d.ts.map +0 -1
  619. package/node_modules/cheerio-select/lib/helpers.js +0 -26
  620. package/node_modules/cheerio-select/lib/helpers.js.map +0 -1
  621. package/node_modules/cheerio-select/lib/index.d.ts +0 -12
  622. package/node_modules/cheerio-select/lib/index.d.ts.map +0 -1
  623. package/node_modules/cheerio-select/lib/index.js +0 -302
  624. package/node_modules/cheerio-select/lib/index.js.map +0 -1
  625. package/node_modules/cheerio-select/lib/positionals.d.ts +0 -10
  626. package/node_modules/cheerio-select/lib/positionals.d.ts.map +0 -1
  627. package/node_modules/cheerio-select/lib/positionals.js +0 -52
  628. package/node_modules/cheerio-select/lib/positionals.js.map +0 -1
  629. package/node_modules/cheerio-select/package.json +0 -76
  630. package/node_modules/css-select/README.md +0 -264
  631. package/node_modules/css-select/lib/attributes.d.ts +0 -7
  632. package/node_modules/css-select/lib/attributes.d.ts.map +0 -1
  633. package/node_modules/css-select/lib/attributes.js +0 -236
  634. package/node_modules/css-select/lib/attributes.js.map +0 -1
  635. package/node_modules/css-select/lib/compile.d.ts +0 -13
  636. package/node_modules/css-select/lib/compile.d.ts.map +0 -1
  637. package/node_modules/css-select/lib/compile.js +0 -151
  638. package/node_modules/css-select/lib/compile.js.map +0 -1
  639. package/node_modules/css-select/lib/esm/attributes.d.ts +0 -7
  640. package/node_modules/css-select/lib/esm/attributes.d.ts.map +0 -1
  641. package/node_modules/css-select/lib/esm/attributes.js +0 -222
  642. package/node_modules/css-select/lib/esm/attributes.js.map +0 -1
  643. package/node_modules/css-select/lib/esm/compile.d.ts +0 -13
  644. package/node_modules/css-select/lib/esm/compile.d.ts.map +0 -1
  645. package/node_modules/css-select/lib/esm/compile.js +0 -115
  646. package/node_modules/css-select/lib/esm/compile.js.map +0 -1
  647. package/node_modules/css-select/lib/esm/general.d.ts +0 -3
  648. package/node_modules/css-select/lib/esm/general.d.ts.map +0 -1
  649. package/node_modules/css-select/lib/esm/general.js +0 -144
  650. package/node_modules/css-select/lib/esm/general.js.map +0 -1
  651. package/node_modules/css-select/lib/esm/index.d.ts +0 -50
  652. package/node_modules/css-select/lib/esm/index.d.ts.map +0 -1
  653. package/node_modules/css-select/lib/esm/index.js +0 -115
  654. package/node_modules/css-select/lib/esm/index.js.map +0 -1
  655. package/node_modules/css-select/lib/esm/package.json +0 -1
  656. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts +0 -5
  657. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +0 -1
  658. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +0 -35
  659. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +0 -1
  660. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +0 -4
  661. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +0 -1
  662. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +0 -143
  663. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +0 -1
  664. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts +0 -8
  665. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +0 -1
  666. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js +0 -40
  667. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +0 -1
  668. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts +0 -6
  669. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +0 -1
  670. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +0 -79
  671. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +0 -1
  672. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +0 -9
  673. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +0 -1
  674. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +0 -94
  675. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +0 -1
  676. package/node_modules/css-select/lib/esm/sort.d.ts +0 -12
  677. package/node_modules/css-select/lib/esm/sort.d.ts.map +0 -1
  678. package/node_modules/css-select/lib/esm/sort.js +0 -79
  679. package/node_modules/css-select/lib/esm/sort.js.map +0 -1
  680. package/node_modules/css-select/lib/esm/types.d.ts +0 -167
  681. package/node_modules/css-select/lib/esm/types.d.ts.map +0 -1
  682. package/node_modules/css-select/lib/esm/types.js +0 -2
  683. package/node_modules/css-select/lib/esm/types.js.map +0 -1
  684. package/node_modules/css-select/lib/general.d.ts +0 -3
  685. package/node_modules/css-select/lib/general.d.ts.map +0 -1
  686. package/node_modules/css-select/lib/general.js +0 -148
  687. package/node_modules/css-select/lib/general.js.map +0 -1
  688. package/node_modules/css-select/lib/index.d.ts +0 -50
  689. package/node_modules/css-select/lib/index.d.ts.map +0 -1
  690. package/node_modules/css-select/lib/index.js +0 -154
  691. package/node_modules/css-select/lib/index.js.map +0 -1
  692. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts +0 -5
  693. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +0 -1
  694. package/node_modules/css-select/lib/pseudo-selectors/aliases.js +0 -34
  695. package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +0 -1
  696. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +0 -4
  697. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +0 -1
  698. package/node_modules/css-select/lib/pseudo-selectors/filters.js +0 -157
  699. package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +0 -1
  700. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts +0 -8
  701. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +0 -1
  702. package/node_modules/css-select/lib/pseudo-selectors/index.js +0 -46
  703. package/node_modules/css-select/lib/pseudo-selectors/index.js.map +0 -1
  704. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts +0 -6
  705. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +0 -1
  706. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js +0 -93
  707. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +0 -1
  708. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +0 -9
  709. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +0 -1
  710. package/node_modules/css-select/lib/pseudo-selectors/subselects.js +0 -112
  711. package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +0 -1
  712. package/node_modules/css-select/lib/sort.d.ts +0 -12
  713. package/node_modules/css-select/lib/sort.d.ts.map +0 -1
  714. package/node_modules/css-select/lib/sort.js +0 -84
  715. package/node_modules/css-select/lib/sort.js.map +0 -1
  716. package/node_modules/css-select/lib/types.d.ts +0 -167
  717. package/node_modules/css-select/lib/types.d.ts.map +0 -1
  718. package/node_modules/css-select/lib/types.js +0 -3
  719. package/node_modules/css-select/lib/types.js.map +0 -1
  720. package/node_modules/css-select/package.json +0 -81
  721. package/node_modules/css-what/lib/commonjs/index.d.ts +0 -4
  722. package/node_modules/css-what/lib/commonjs/index.d.ts.map +0 -1
  723. package/node_modules/css-what/lib/commonjs/index.js +0 -23
  724. package/node_modules/css-what/lib/commonjs/parse.d.ts +0 -20
  725. package/node_modules/css-what/lib/commonjs/parse.d.ts.map +0 -1
  726. package/node_modules/css-what/lib/commonjs/parse.js +0 -425
  727. package/node_modules/css-what/lib/commonjs/stringify.d.ts +0 -8
  728. package/node_modules/css-what/lib/commonjs/stringify.d.ts.map +0 -1
  729. package/node_modules/css-what/lib/commonjs/stringify.js +0 -138
  730. package/node_modules/css-what/lib/commonjs/types.d.ts +0 -70
  731. package/node_modules/css-what/lib/commonjs/types.d.ts.map +0 -1
  732. package/node_modules/css-what/lib/commonjs/types.js +0 -42
  733. package/node_modules/css-what/lib/es/index.d.ts +0 -4
  734. package/node_modules/css-what/lib/es/index.d.ts.map +0 -1
  735. package/node_modules/css-what/lib/es/index.js +0 -3
  736. package/node_modules/css-what/lib/es/parse.d.ts +0 -20
  737. package/node_modules/css-what/lib/es/parse.d.ts.map +0 -1
  738. package/node_modules/css-what/lib/es/parse.js +0 -420
  739. package/node_modules/css-what/lib/es/stringify.d.ts +0 -8
  740. package/node_modules/css-what/lib/es/stringify.d.ts.map +0 -1
  741. package/node_modules/css-what/lib/es/stringify.js +0 -126
  742. package/node_modules/css-what/lib/es/types.d.ts +0 -70
  743. package/node_modules/css-what/lib/es/types.d.ts.map +0 -1
  744. package/node_modules/css-what/lib/es/types.js +0 -39
  745. package/node_modules/css-what/package.json +0 -59
  746. package/node_modules/css-what/readme.md +0 -69
  747. package/node_modules/dom-serializer/LICENSE +0 -11
  748. package/node_modules/dom-serializer/README.md +0 -109
  749. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +0 -3
  750. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +0 -1
  751. package/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -100
  752. package/node_modules/dom-serializer/lib/esm/index.d.ts +0 -52
  753. package/node_modules/dom-serializer/lib/esm/index.d.ts.map +0 -1
  754. package/node_modules/dom-serializer/lib/esm/index.js +0 -190
  755. package/node_modules/dom-serializer/lib/esm/package.json +0 -1
  756. package/node_modules/dom-serializer/lib/foreignNames.d.ts +0 -3
  757. package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +0 -1
  758. package/node_modules/dom-serializer/lib/foreignNames.js +0 -103
  759. package/node_modules/dom-serializer/lib/index.d.ts +0 -52
  760. package/node_modules/dom-serializer/lib/index.d.ts.map +0 -1
  761. package/node_modules/dom-serializer/lib/index.js +0 -229
  762. package/node_modules/dom-serializer/package.json +0 -69
  763. package/node_modules/domelementtype/LICENSE +0 -11
  764. package/node_modules/domelementtype/lib/esm/index.d.ts +0 -48
  765. package/node_modules/domelementtype/lib/esm/index.d.ts.map +0 -1
  766. package/node_modules/domelementtype/lib/esm/index.js +0 -51
  767. package/node_modules/domelementtype/lib/esm/package.json +0 -1
  768. package/node_modules/domelementtype/lib/index.d.ts +0 -48
  769. package/node_modules/domelementtype/lib/index.d.ts.map +0 -1
  770. package/node_modules/domelementtype/lib/index.js +0 -55
  771. package/node_modules/domelementtype/package.json +0 -54
  772. package/node_modules/domhandler/LICENSE +0 -11
  773. package/node_modules/domhandler/lib/esm/index.d.ts +0 -76
  774. package/node_modules/domhandler/lib/esm/index.d.ts.map +0 -1
  775. package/node_modules/domhandler/lib/esm/index.js +0 -146
  776. package/node_modules/domhandler/lib/esm/node.d.ts +0 -245
  777. package/node_modules/domhandler/lib/esm/node.d.ts.map +0 -1
  778. package/node_modules/domhandler/lib/esm/node.js +0 -338
  779. package/node_modules/domhandler/lib/esm/package.json +0 -1
  780. package/node_modules/domhandler/lib/index.d.ts +0 -76
  781. package/node_modules/domhandler/lib/index.d.ts.map +0 -1
  782. package/node_modules/domhandler/lib/index.js +0 -165
  783. package/node_modules/domhandler/lib/node.d.ts +0 -245
  784. package/node_modules/domhandler/lib/node.d.ts.map +0 -1
  785. package/node_modules/domhandler/lib/node.js +0 -474
  786. package/node_modules/domhandler/package.json +0 -73
  787. package/node_modules/domhandler/readme.md +0 -92
  788. package/node_modules/domutils/LICENSE +0 -11
  789. package/node_modules/domutils/lib/esm/feeds.d.ts +0 -71
  790. package/node_modules/domutils/lib/esm/feeds.d.ts.map +0 -1
  791. package/node_modules/domutils/lib/esm/feeds.js +0 -183
  792. package/node_modules/domutils/lib/esm/feeds.js.map +0 -1
  793. package/node_modules/domutils/lib/esm/helpers.d.ts +0 -59
  794. package/node_modules/domutils/lib/esm/helpers.d.ts.map +0 -1
  795. package/node_modules/domutils/lib/esm/helpers.js +0 -136
  796. package/node_modules/domutils/lib/esm/helpers.js.map +0 -1
  797. package/node_modules/domutils/lib/esm/index.d.ts +0 -10
  798. package/node_modules/domutils/lib/esm/index.d.ts.map +0 -1
  799. package/node_modules/domutils/lib/esm/index.js +0 -10
  800. package/node_modules/domutils/lib/esm/index.js.map +0 -1
  801. package/node_modules/domutils/lib/esm/legacy.d.ts +0 -79
  802. package/node_modules/domutils/lib/esm/legacy.d.ts.map +0 -1
  803. package/node_modules/domutils/lib/esm/legacy.js +0 -152
  804. package/node_modules/domutils/lib/esm/legacy.js.map +0 -1
  805. package/node_modules/domutils/lib/esm/manipulation.d.ts +0 -49
  806. package/node_modules/domutils/lib/esm/manipulation.d.ts.map +0 -1
  807. package/node_modules/domutils/lib/esm/manipulation.js +0 -134
  808. package/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
  809. package/node_modules/domutils/lib/esm/package.json +0 -1
  810. package/node_modules/domutils/lib/esm/querying.d.ts +0 -64
  811. package/node_modules/domutils/lib/esm/querying.d.ts.map +0 -1
  812. package/node_modules/domutils/lib/esm/querying.js +0 -142
  813. package/node_modules/domutils/lib/esm/querying.js.map +0 -1
  814. package/node_modules/domutils/lib/esm/stringify.d.ts +0 -46
  815. package/node_modules/domutils/lib/esm/stringify.d.ts.map +0 -1
  816. package/node_modules/domutils/lib/esm/stringify.js +0 -81
  817. package/node_modules/domutils/lib/esm/stringify.js.map +0 -1
  818. package/node_modules/domutils/lib/esm/traversal.d.ts +0 -67
  819. package/node_modules/domutils/lib/esm/traversal.d.ts.map +0 -1
  820. package/node_modules/domutils/lib/esm/traversal.js +0 -112
  821. package/node_modules/domutils/lib/esm/traversal.js.map +0 -1
  822. package/node_modules/domutils/lib/feeds.d.ts +0 -71
  823. package/node_modules/domutils/lib/feeds.d.ts.map +0 -1
  824. package/node_modules/domutils/lib/feeds.js +0 -190
  825. package/node_modules/domutils/lib/feeds.js.map +0 -1
  826. package/node_modules/domutils/lib/helpers.d.ts +0 -59
  827. package/node_modules/domutils/lib/helpers.d.ts.map +0 -1
  828. package/node_modules/domutils/lib/helpers.js +0 -142
  829. package/node_modules/domutils/lib/helpers.js.map +0 -1
  830. package/node_modules/domutils/lib/index.d.ts +0 -10
  831. package/node_modules/domutils/lib/index.d.ts.map +0 -1
  832. package/node_modules/domutils/lib/index.js +0 -33
  833. package/node_modules/domutils/lib/index.js.map +0 -1
  834. package/node_modules/domutils/lib/legacy.d.ts +0 -79
  835. package/node_modules/domutils/lib/legacy.d.ts.map +0 -1
  836. package/node_modules/domutils/lib/legacy.js +0 -168
  837. package/node_modules/domutils/lib/legacy.js.map +0 -1
  838. package/node_modules/domutils/lib/manipulation.d.ts +0 -49
  839. package/node_modules/domutils/lib/manipulation.d.ts.map +0 -1
  840. package/node_modules/domutils/lib/manipulation.js +0 -142
  841. package/node_modules/domutils/lib/manipulation.js.map +0 -1
  842. package/node_modules/domutils/lib/querying.d.ts +0 -64
  843. package/node_modules/domutils/lib/querying.d.ts.map +0 -1
  844. package/node_modules/domutils/lib/querying.js +0 -155
  845. package/node_modules/domutils/lib/querying.js.map +0 -1
  846. package/node_modules/domutils/lib/stringify.d.ts +0 -46
  847. package/node_modules/domutils/lib/stringify.d.ts.map +0 -1
  848. package/node_modules/domutils/lib/stringify.js +0 -91
  849. package/node_modules/domutils/lib/stringify.js.map +0 -1
  850. package/node_modules/domutils/lib/traversal.d.ts +0 -67
  851. package/node_modules/domutils/lib/traversal.d.ts.map +0 -1
  852. package/node_modules/domutils/lib/traversal.js +0 -125
  853. package/node_modules/domutils/lib/traversal.js.map +0 -1
  854. package/node_modules/domutils/package.json +0 -79
  855. package/node_modules/domutils/readme.md +0 -31
  856. package/node_modules/encoding-sniffer/LICENSE +0 -18
  857. package/node_modules/encoding-sniffer/README.md +0 -68
  858. package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts +0 -31
  859. package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts.map +0 -1
  860. package/node_modules/encoding-sniffer/dist/commonjs/index.js +0 -72
  861. package/node_modules/encoding-sniffer/dist/commonjs/index.js.map +0 -1
  862. package/node_modules/encoding-sniffer/dist/commonjs/package.json +0 -3
  863. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts +0 -148
  864. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts.map +0 -1
  865. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js +0 -990
  866. package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js.map +0 -1
  867. package/node_modules/encoding-sniffer/dist/esm/index.d.ts +0 -31
  868. package/node_modules/encoding-sniffer/dist/esm/index.d.ts.map +0 -1
  869. package/node_modules/encoding-sniffer/dist/esm/index.js +0 -63
  870. package/node_modules/encoding-sniffer/dist/esm/index.js.map +0 -1
  871. package/node_modules/encoding-sniffer/dist/esm/package.json +0 -3
  872. package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts +0 -148
  873. package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts.map +0 -1
  874. package/node_modules/encoding-sniffer/dist/esm/sniffer.js +0 -985
  875. package/node_modules/encoding-sniffer/dist/esm/sniffer.js.map +0 -1
  876. package/node_modules/encoding-sniffer/package.json +0 -94
  877. package/node_modules/encoding-sniffer/sniffer.d.ts +0 -2
  878. package/node_modules/encoding-sniffer/sniffer.js +0 -3
  879. package/node_modules/entities/LICENSE +0 -11
  880. package/node_modules/entities/lib/decode.d.ts +0 -211
  881. package/node_modules/entities/lib/decode.d.ts.map +0 -1
  882. package/node_modules/entities/lib/decode.js +0 -536
  883. package/node_modules/entities/lib/decode.js.map +0 -1
  884. package/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  885. package/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  886. package/node_modules/entities/lib/decode_codepoint.js +0 -76
  887. package/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  888. package/node_modules/entities/lib/encode.d.ts +0 -22
  889. package/node_modules/entities/lib/encode.d.ts.map +0 -1
  890. package/node_modules/entities/lib/encode.js +0 -77
  891. package/node_modules/entities/lib/encode.js.map +0 -1
  892. package/node_modules/entities/lib/escape.d.ts +0 -43
  893. package/node_modules/entities/lib/escape.d.ts.map +0 -1
  894. package/node_modules/entities/lib/escape.js +0 -122
  895. package/node_modules/entities/lib/escape.js.map +0 -1
  896. package/node_modules/entities/lib/esm/decode.d.ts +0 -211
  897. package/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  898. package/node_modules/entities/lib/esm/decode.js +0 -496
  899. package/node_modules/entities/lib/esm/decode.js.map +0 -1
  900. package/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  901. package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  902. package/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  903. package/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  904. package/node_modules/entities/lib/esm/encode.d.ts +0 -22
  905. package/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  906. package/node_modules/entities/lib/esm/encode.js +0 -69
  907. package/node_modules/entities/lib/esm/encode.js.map +0 -1
  908. package/node_modules/entities/lib/esm/escape.d.ts +0 -43
  909. package/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  910. package/node_modules/entities/lib/esm/escape.js +0 -116
  911. package/node_modules/entities/lib/esm/escape.js.map +0 -1
  912. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  913. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  914. package/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  915. package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  916. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  917. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  918. package/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  919. package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  920. package/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  921. package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  922. package/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  923. package/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  924. package/node_modules/entities/lib/esm/index.d.ts +0 -96
  925. package/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  926. package/node_modules/entities/lib/esm/index.js +0 -99
  927. package/node_modules/entities/lib/esm/index.js.map +0 -1
  928. package/node_modules/entities/lib/esm/package.json +0 -1
  929. package/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  930. package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  931. package/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  932. package/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  933. package/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  934. package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  935. package/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  936. package/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  937. package/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  938. package/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  939. package/node_modules/entities/lib/generated/encode-html.js +0 -12
  940. package/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  941. package/node_modules/entities/lib/index.d.ts +0 -96
  942. package/node_modules/entities/lib/index.d.ts.map +0 -1
  943. package/node_modules/entities/lib/index.js +0 -126
  944. package/node_modules/entities/lib/index.js.map +0 -1
  945. package/node_modules/entities/package.json +0 -90
  946. package/node_modules/entities/readme.md +0 -122
  947. package/node_modules/htmlparser2/WritableStream.js +0 -3
  948. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +0 -198
  949. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +0 -1
  950. package/node_modules/htmlparser2/dist/commonjs/Parser.js +0 -527
  951. package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +0 -1
  952. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts +0 -126
  953. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +0 -1
  954. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +0 -805
  955. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +0 -1
  956. package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts +0 -15
  957. package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +0 -1
  958. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +0 -36
  959. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +0 -1
  960. package/node_modules/htmlparser2/dist/commonjs/index.d.ts +0 -54
  961. package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +0 -1
  962. package/node_modules/htmlparser2/dist/commonjs/index.js +0 -123
  963. package/node_modules/htmlparser2/dist/commonjs/index.js.map +0 -1
  964. package/node_modules/htmlparser2/dist/commonjs/package.json +0 -3
  965. package/node_modules/htmlparser2/dist/esm/Parser.d.ts +0 -198
  966. package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +0 -1
  967. package/node_modules/htmlparser2/dist/esm/Parser.js +0 -490
  968. package/node_modules/htmlparser2/dist/esm/Parser.js.map +0 -1
  969. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +0 -126
  970. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +0 -1
  971. package/node_modules/htmlparser2/dist/esm/Tokenizer.js +0 -801
  972. package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +0 -1
  973. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +0 -15
  974. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +0 -1
  975. package/node_modules/htmlparser2/dist/esm/WritableStream.js +0 -32
  976. package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +0 -1
  977. package/node_modules/htmlparser2/dist/esm/index.d.ts +0 -54
  978. package/node_modules/htmlparser2/dist/esm/index.d.ts.map +0 -1
  979. package/node_modules/htmlparser2/dist/esm/index.js +0 -74
  980. package/node_modules/htmlparser2/dist/esm/index.js.map +0 -1
  981. package/node_modules/htmlparser2/dist/esm/package.json +0 -3
  982. package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +0 -3
  983. package/node_modules/htmlparser2/node_modules/entities/decode.js +0 -3
  984. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  985. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
  986. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  987. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  988. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
  989. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
  990. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -568
  991. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  992. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  993. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
  994. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +0 -92
  995. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +0 -1
  996. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
  997. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
  998. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +0 -138
  999. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +0 -1
  1000. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  1001. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
  1002. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  1003. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  1004. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  1005. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
  1006. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  1007. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  1008. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  1009. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
  1010. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -14
  1011. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
  1012. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  1013. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
  1014. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +0 -131
  1015. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +0 -1
  1016. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +0 -1
  1017. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  1018. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +0 -1
  1019. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  1020. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +0 -1
  1021. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  1022. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +0 -1
  1023. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  1024. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +0 -1
  1025. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +0 -94
  1026. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +0 -1
  1027. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +0 -3
  1028. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  1029. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
  1030. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
  1031. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
  1032. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +0 -205
  1033. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
  1034. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +0 -554
  1035. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +0 -1
  1036. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +0 -22
  1037. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
  1038. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +0 -88
  1039. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +0 -1
  1040. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +0 -46
  1041. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
  1042. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +0 -134
  1043. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +0 -1
  1044. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  1045. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
  1046. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -4
  1047. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
  1048. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  1049. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
  1050. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -4
  1051. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
  1052. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  1053. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
  1054. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +0 -11
  1055. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
  1056. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +0 -96
  1057. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +0 -1
  1058. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js +0 -107
  1059. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +0 -1
  1060. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  1061. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +0 -1
  1062. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +0 -1
  1063. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  1064. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +0 -1
  1065. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +0 -28
  1066. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +0 -1
  1067. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  1068. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +0 -1
  1069. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +0 -91
  1070. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +0 -1
  1071. package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +0 -3
  1072. package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +0 -3
  1073. package/node_modules/htmlparser2/node_modules/entities/escape.js +0 -3
  1074. package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +0 -10
  1075. package/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  1076. package/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
  1077. package/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
  1078. package/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
  1079. package/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1080. package/node_modules/iconv-lite/.idea/modules.xml +0 -8
  1081. package/node_modules/iconv-lite/.idea/vcs.xml +0 -6
  1082. package/node_modules/iconv-lite/Changelog.md +0 -212
  1083. package/node_modules/iconv-lite/LICENSE +0 -21
  1084. package/node_modules/iconv-lite/README.md +0 -130
  1085. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
  1086. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
  1087. package/node_modules/iconv-lite/encodings/index.js +0 -23
  1088. package/node_modules/iconv-lite/encodings/internal.js +0 -198
  1089. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  1090. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1091. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
  1092. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1093. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1094. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1095. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1096. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1097. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1098. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1099. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1100. package/node_modules/iconv-lite/encodings/utf16.js +0 -197
  1101. package/node_modules/iconv-lite/encodings/utf32.js +0 -319
  1102. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  1103. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  1104. package/node_modules/iconv-lite/lib/index.d.ts +0 -41
  1105. package/node_modules/iconv-lite/lib/index.js +0 -180
  1106. package/node_modules/iconv-lite/lib/streams.js +0 -109
  1107. package/node_modules/iconv-lite/package.json +0 -44
  1108. package/node_modules/nth-check/LICENSE +0 -11
  1109. package/node_modules/nth-check/README.md +0 -136
  1110. package/node_modules/nth-check/lib/compile.d.ts +0 -55
  1111. package/node_modules/nth-check/lib/compile.d.ts.map +0 -1
  1112. package/node_modules/nth-check/lib/compile.js +0 -121
  1113. package/node_modules/nth-check/lib/compile.js.map +0 -1
  1114. package/node_modules/nth-check/lib/esm/compile.d.ts +0 -55
  1115. package/node_modules/nth-check/lib/esm/compile.d.ts.map +0 -1
  1116. package/node_modules/nth-check/lib/esm/compile.js +0 -113
  1117. package/node_modules/nth-check/lib/esm/compile.js.map +0 -1
  1118. package/node_modules/nth-check/lib/esm/index.d.ts +0 -59
  1119. package/node_modules/nth-check/lib/esm/index.d.ts.map +0 -1
  1120. package/node_modules/nth-check/lib/esm/index.js +0 -63
  1121. package/node_modules/nth-check/lib/esm/index.js.map +0 -1
  1122. package/node_modules/nth-check/lib/esm/package.json +0 -1
  1123. package/node_modules/nth-check/lib/esm/parse.d.ts +0 -9
  1124. package/node_modules/nth-check/lib/esm/parse.d.ts.map +0 -1
  1125. package/node_modules/nth-check/lib/esm/parse.js +0 -73
  1126. package/node_modules/nth-check/lib/esm/parse.js.map +0 -1
  1127. package/node_modules/nth-check/lib/index.d.ts +0 -59
  1128. package/node_modules/nth-check/lib/index.d.ts.map +0 -1
  1129. package/node_modules/nth-check/lib/index.js +0 -70
  1130. package/node_modules/nth-check/lib/index.js.map +0 -1
  1131. package/node_modules/nth-check/lib/parse.d.ts +0 -9
  1132. package/node_modules/nth-check/lib/parse.d.ts.map +0 -1
  1133. package/node_modules/nth-check/lib/parse.js +0 -77
  1134. package/node_modules/nth-check/lib/parse.js.map +0 -1
  1135. package/node_modules/nth-check/package.json +0 -78
  1136. package/node_modules/ora/index.d.ts +0 -332
  1137. package/node_modules/ora/index.js +0 -443
  1138. package/node_modules/ora/node_modules/chalk/license +0 -9
  1139. package/node_modules/ora/node_modules/chalk/package.json +0 -83
  1140. package/node_modules/ora/node_modules/chalk/readme.md +0 -297
  1141. package/node_modules/ora/node_modules/chalk/source/index.d.ts +0 -325
  1142. package/node_modules/ora/node_modules/chalk/source/index.js +0 -225
  1143. package/node_modules/ora/node_modules/chalk/source/utilities.js +0 -33
  1144. package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  1145. package/node_modules/ora/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  1146. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  1147. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  1148. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  1149. package/node_modules/ora/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  1150. package/node_modules/ora/node_modules/cli-spinners/index.d.ts +0 -139
  1151. package/node_modules/ora/node_modules/cli-spinners/index.js +0 -11
  1152. package/node_modules/ora/node_modules/cli-spinners/license +0 -9
  1153. package/node_modules/ora/node_modules/cli-spinners/package.json +0 -56
  1154. package/node_modules/ora/node_modules/cli-spinners/readme.md +0 -74
  1155. package/node_modules/ora/node_modules/cli-spinners/spinners.json +0 -1665
  1156. package/node_modules/ora/node_modules/string-width/index.d.ts +0 -39
  1157. package/node_modules/ora/node_modules/string-width/index.js +0 -89
  1158. package/node_modules/ora/node_modules/string-width/license +0 -9
  1159. package/node_modules/ora/node_modules/string-width/package.json +0 -65
  1160. package/node_modules/ora/node_modules/string-width/readme.md +0 -66
  1161. package/node_modules/ora/package.json +0 -64
  1162. package/node_modules/ora/readme.md +0 -375
  1163. package/node_modules/parse5/LICENSE +0 -19
  1164. package/node_modules/parse5/README.md +0 -38
  1165. package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -4
  1166. package/node_modules/parse5/dist/cjs/common/doctype.js +0 -118
  1167. package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -67
  1168. package/node_modules/parse5/dist/cjs/common/error-codes.js +0 -66
  1169. package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -9
  1170. package/node_modules/parse5/dist/cjs/common/foreign-content.js +0 -237
  1171. package/node_modules/parse5/dist/cjs/common/html.d.ts +0 -289
  1172. package/node_modules/parse5/dist/cjs/common/html.js +0 -528
  1173. package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -84
  1174. package/node_modules/parse5/dist/cjs/common/token.js +0 -24
  1175. package/node_modules/parse5/dist/cjs/common/unicode.d.ts +0 -42
  1176. package/node_modules/parse5/dist/cjs/common/unicode.js +0 -70
  1177. package/node_modules/parse5/dist/cjs/index.d.ts +0 -71
  1178. package/node_modules/parse5/dist/cjs/index.js +0 -54
  1179. package/node_modules/parse5/dist/cjs/package.json +0 -1
  1180. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -36
  1181. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +0 -114
  1182. package/node_modules/parse5/dist/cjs/parser/index.d.ts +0 -221
  1183. package/node_modules/parse5/dist/cjs/parser/index.js +0 -3240
  1184. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +0 -53
  1185. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +0 -328
  1186. package/node_modules/parse5/dist/cjs/serializer/index.d.ts +0 -60
  1187. package/node_modules/parse5/dist/cjs/serializer/index.js +0 -172
  1188. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +0 -247
  1189. package/node_modules/parse5/dist/cjs/tokenizer/index.js +0 -2714
  1190. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +0 -36
  1191. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +0 -200
  1192. package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -84
  1193. package/node_modules/parse5/dist/cjs/tree-adapters/default.js +0 -176
  1194. package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +0 -255
  1195. package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -2
  1196. package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
  1197. package/node_modules/parse5/dist/common/doctype.js +0 -114
  1198. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
  1199. package/node_modules/parse5/dist/common/error-codes.js +0 -63
  1200. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
  1201. package/node_modules/parse5/dist/common/foreign-content.js +0 -228
  1202. package/node_modules/parse5/dist/common/html.d.ts +0 -289
  1203. package/node_modules/parse5/dist/common/html.js +0 -523
  1204. package/node_modules/parse5/dist/common/token.d.ts +0 -84
  1205. package/node_modules/parse5/dist/common/token.js +0 -20
  1206. package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
  1207. package/node_modules/parse5/dist/common/unicode.js +0 -62
  1208. package/node_modules/parse5/dist/index.d.ts +0 -71
  1209. package/node_modules/parse5/dist/index.js +0 -42
  1210. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
  1211. package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
  1212. package/node_modules/parse5/dist/parser/index.d.ts +0 -221
  1213. package/node_modules/parse5/dist/parser/index.js +0 -3245
  1214. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
  1215. package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
  1216. package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
  1217. package/node_modules/parse5/dist/serializer/index.js +0 -168
  1218. package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
  1219. package/node_modules/parse5/dist/tokenizer/index.js +0 -2710
  1220. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
  1221. package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
  1222. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
  1223. package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
  1224. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
  1225. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  1226. package/node_modules/parse5/node_modules/entities/LICENSE +0 -11
  1227. package/node_modules/parse5/node_modules/entities/decode.d.ts +0 -1
  1228. package/node_modules/parse5/node_modules/entities/decode.js +0 -3
  1229. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  1230. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
  1231. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  1232. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  1233. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +0 -209
  1234. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
  1235. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +0 -511
  1236. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  1237. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  1238. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
  1239. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +0 -73
  1240. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +0 -1
  1241. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +0 -43
  1242. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
  1243. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +0 -121
  1244. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +0 -1
  1245. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  1246. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
  1247. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -10
  1248. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  1249. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  1250. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
  1251. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -10
  1252. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  1253. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -8
  1254. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
  1255. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -13
  1256. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
  1257. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  1258. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
  1259. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +0 -131
  1260. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +0 -1
  1261. package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +0 -3
  1262. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  1263. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
  1264. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
  1265. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
  1266. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +0 -209
  1267. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
  1268. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -497
  1269. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +0 -1
  1270. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +0 -22
  1271. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
  1272. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +0 -69
  1273. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +0 -1
  1274. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +0 -43
  1275. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
  1276. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +0 -117
  1277. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +0 -1
  1278. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  1279. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
  1280. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  1281. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
  1282. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  1283. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
  1284. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -7
  1285. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
  1286. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -8
  1287. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
  1288. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +0 -10
  1289. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
  1290. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +0 -96
  1291. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +0 -1
  1292. package/node_modules/parse5/node_modules/entities/dist/esm/index.js +0 -107
  1293. package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +0 -1
  1294. package/node_modules/parse5/node_modules/entities/dist/esm/package.json +0 -3
  1295. package/node_modules/parse5/node_modules/entities/escape.d.ts +0 -1
  1296. package/node_modules/parse5/node_modules/entities/escape.js +0 -3
  1297. package/node_modules/parse5/node_modules/entities/package.json +0 -118
  1298. package/node_modules/parse5/node_modules/entities/readme.md +0 -122
  1299. package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +0 -81
  1300. package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +0 -320
  1301. package/node_modules/parse5/node_modules/entities/src/decode.ts +0 -620
  1302. package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +0 -78
  1303. package/node_modules/parse5/node_modules/entities/src/encode.ts +0 -77
  1304. package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +0 -14
  1305. package/node_modules/parse5/node_modules/entities/src/escape.ts +0 -148
  1306. package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +0 -10
  1307. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +0 -8
  1308. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +0 -8
  1309. package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +0 -17
  1310. package/node_modules/parse5/node_modules/entities/src/index.spec.ts +0 -125
  1311. package/node_modules/parse5/node_modules/entities/src/index.ts +0 -188
  1312. package/node_modules/parse5/package.json +0 -50
  1313. package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
  1314. package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
  1315. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +0 -6
  1316. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +0 -214
  1317. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/package.json +0 -1
  1318. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +0 -6
  1319. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +0 -213
  1320. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -40
  1321. package/node_modules/parse5-parser-stream/LICENSE +0 -19
  1322. package/node_modules/parse5-parser-stream/README.md +0 -34
  1323. package/node_modules/parse5-parser-stream/dist/cjs/index.d.ts +0 -85
  1324. package/node_modules/parse5-parser-stream/dist/cjs/index.js +0 -90
  1325. package/node_modules/parse5-parser-stream/dist/cjs/package.json +0 -1
  1326. package/node_modules/parse5-parser-stream/dist/index.d.ts +0 -85
  1327. package/node_modules/parse5-parser-stream/dist/index.js +0 -86
  1328. package/node_modules/parse5-parser-stream/package.json +0 -39
  1329. package/node_modules/stdin-discarder/index.d.ts +0 -13
  1330. package/node_modules/stdin-discarder/index.js +0 -59
  1331. package/node_modules/stdin-discarder/license +0 -9
  1332. package/node_modules/stdin-discarder/package.json +0 -42
  1333. package/node_modules/stdin-discarder/readme.md +0 -37
  1334. package/node_modules/whatwg-encoding/LICENSE.txt +0 -7
  1335. package/node_modules/whatwg-encoding/README.md +0 -50
  1336. package/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -217
  1337. package/node_modules/whatwg-encoding/lib/supported-names.json +0 -38
  1338. package/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -60
  1339. package/node_modules/whatwg-encoding/package.json +0 -32
  1340. package/node_modules/whatwg-mimetype/LICENSE.txt +0 -7
  1341. package/node_modules/whatwg-mimetype/README.md +0 -101
  1342. package/node_modules/whatwg-mimetype/lib/mime-type-parameters.js +0 -70
  1343. package/node_modules/whatwg-mimetype/lib/mime-type.js +0 -127
  1344. package/node_modules/whatwg-mimetype/lib/parser.js +0 -105
  1345. package/node_modules/whatwg-mimetype/lib/serializer.js +0 -25
  1346. package/node_modules/whatwg-mimetype/lib/utils.js +0 -60
  1347. package/node_modules/whatwg-mimetype/package.json +0 -45
  1348. /package/node_modules/{cheerio-select → htmlparser2/node_modules/domelementtype}/LICENSE +0 -0
  1349. /package/node_modules/{domelementtype → htmlparser2/node_modules/domelementtype}/readme.md +0 -0
  1350. /package/node_modules/{css-select → htmlparser2/node_modules/domhandler}/LICENSE +0 -0
  1351. /package/node_modules/{css-what → htmlparser2/node_modules/domutils}/LICENSE +0 -0
  1352. /package/node_modules/htmlparser2/node_modules/entities/dist/{commonjs/internal → internal}/bin-trie-flags.d.ts +0 -0
  1353. /package/node_modules/htmlparser2/node_modules/entities/dist/{esm/internal → internal}/bin-trie-flags.js +0 -0
  1354. /package/node_modules/{ora → yocto-spinner}/license +0 -0
@@ -1,2710 +0,0 @@
1
- import { Preprocessor } from './preprocessor.js';
2
- import { CODE_POINTS as $, SEQUENCES as $$, REPLACEMENT_CHARACTER, isSurrogate, isUndefinedCodePoint, isControlCodePoint, } from '../common/unicode.js';
3
- import { TokenType, getTokenAttr, } from '../common/token.js';
4
- import { htmlDecodeTree, EntityDecoder, DecodingMode } from 'entities/decode';
5
- import { ERR } from '../common/error-codes.js';
6
- import { TAG_ID, getTagID } from '../common/html.js';
7
- //States
8
- var State;
9
- (function (State) {
10
- State[State["DATA"] = 0] = "DATA";
11
- State[State["RCDATA"] = 1] = "RCDATA";
12
- State[State["RAWTEXT"] = 2] = "RAWTEXT";
13
- State[State["SCRIPT_DATA"] = 3] = "SCRIPT_DATA";
14
- State[State["PLAINTEXT"] = 4] = "PLAINTEXT";
15
- State[State["TAG_OPEN"] = 5] = "TAG_OPEN";
16
- State[State["END_TAG_OPEN"] = 6] = "END_TAG_OPEN";
17
- State[State["TAG_NAME"] = 7] = "TAG_NAME";
18
- State[State["RCDATA_LESS_THAN_SIGN"] = 8] = "RCDATA_LESS_THAN_SIGN";
19
- State[State["RCDATA_END_TAG_OPEN"] = 9] = "RCDATA_END_TAG_OPEN";
20
- State[State["RCDATA_END_TAG_NAME"] = 10] = "RCDATA_END_TAG_NAME";
21
- State[State["RAWTEXT_LESS_THAN_SIGN"] = 11] = "RAWTEXT_LESS_THAN_SIGN";
22
- State[State["RAWTEXT_END_TAG_OPEN"] = 12] = "RAWTEXT_END_TAG_OPEN";
23
- State[State["RAWTEXT_END_TAG_NAME"] = 13] = "RAWTEXT_END_TAG_NAME";
24
- State[State["SCRIPT_DATA_LESS_THAN_SIGN"] = 14] = "SCRIPT_DATA_LESS_THAN_SIGN";
25
- State[State["SCRIPT_DATA_END_TAG_OPEN"] = 15] = "SCRIPT_DATA_END_TAG_OPEN";
26
- State[State["SCRIPT_DATA_END_TAG_NAME"] = 16] = "SCRIPT_DATA_END_TAG_NAME";
27
- State[State["SCRIPT_DATA_ESCAPE_START"] = 17] = "SCRIPT_DATA_ESCAPE_START";
28
- State[State["SCRIPT_DATA_ESCAPE_START_DASH"] = 18] = "SCRIPT_DATA_ESCAPE_START_DASH";
29
- State[State["SCRIPT_DATA_ESCAPED"] = 19] = "SCRIPT_DATA_ESCAPED";
30
- State[State["SCRIPT_DATA_ESCAPED_DASH"] = 20] = "SCRIPT_DATA_ESCAPED_DASH";
31
- State[State["SCRIPT_DATA_ESCAPED_DASH_DASH"] = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH";
32
- State[State["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"] = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN";
33
- State[State["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"] = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN";
34
- State[State["SCRIPT_DATA_ESCAPED_END_TAG_NAME"] = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME";
35
- State[State["SCRIPT_DATA_DOUBLE_ESCAPE_START"] = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START";
36
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED"] = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED";
37
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"] = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH";
38
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"] = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH";
39
- State[State["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"] = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN";
40
- State[State["SCRIPT_DATA_DOUBLE_ESCAPE_END"] = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END";
41
- State[State["BEFORE_ATTRIBUTE_NAME"] = 31] = "BEFORE_ATTRIBUTE_NAME";
42
- State[State["ATTRIBUTE_NAME"] = 32] = "ATTRIBUTE_NAME";
43
- State[State["AFTER_ATTRIBUTE_NAME"] = 33] = "AFTER_ATTRIBUTE_NAME";
44
- State[State["BEFORE_ATTRIBUTE_VALUE"] = 34] = "BEFORE_ATTRIBUTE_VALUE";
45
- State[State["ATTRIBUTE_VALUE_DOUBLE_QUOTED"] = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED";
46
- State[State["ATTRIBUTE_VALUE_SINGLE_QUOTED"] = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED";
47
- State[State["ATTRIBUTE_VALUE_UNQUOTED"] = 37] = "ATTRIBUTE_VALUE_UNQUOTED";
48
- State[State["AFTER_ATTRIBUTE_VALUE_QUOTED"] = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED";
49
- State[State["SELF_CLOSING_START_TAG"] = 39] = "SELF_CLOSING_START_TAG";
50
- State[State["BOGUS_COMMENT"] = 40] = "BOGUS_COMMENT";
51
- State[State["MARKUP_DECLARATION_OPEN"] = 41] = "MARKUP_DECLARATION_OPEN";
52
- State[State["COMMENT_START"] = 42] = "COMMENT_START";
53
- State[State["COMMENT_START_DASH"] = 43] = "COMMENT_START_DASH";
54
- State[State["COMMENT"] = 44] = "COMMENT";
55
- State[State["COMMENT_LESS_THAN_SIGN"] = 45] = "COMMENT_LESS_THAN_SIGN";
56
- State[State["COMMENT_LESS_THAN_SIGN_BANG"] = 46] = "COMMENT_LESS_THAN_SIGN_BANG";
57
- State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH"] = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH";
58
- State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"] = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH";
59
- State[State["COMMENT_END_DASH"] = 49] = "COMMENT_END_DASH";
60
- State[State["COMMENT_END"] = 50] = "COMMENT_END";
61
- State[State["COMMENT_END_BANG"] = 51] = "COMMENT_END_BANG";
62
- State[State["DOCTYPE"] = 52] = "DOCTYPE";
63
- State[State["BEFORE_DOCTYPE_NAME"] = 53] = "BEFORE_DOCTYPE_NAME";
64
- State[State["DOCTYPE_NAME"] = 54] = "DOCTYPE_NAME";
65
- State[State["AFTER_DOCTYPE_NAME"] = 55] = "AFTER_DOCTYPE_NAME";
66
- State[State["AFTER_DOCTYPE_PUBLIC_KEYWORD"] = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD";
67
- State[State["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"] = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER";
68
- State[State["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"] = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED";
69
- State[State["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"] = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED";
70
- State[State["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"] = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER";
71
- State[State["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"] = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS";
72
- State[State["AFTER_DOCTYPE_SYSTEM_KEYWORD"] = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD";
73
- State[State["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"] = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER";
74
- State[State["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"] = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED";
75
- State[State["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"] = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED";
76
- State[State["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"] = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER";
77
- State[State["BOGUS_DOCTYPE"] = 67] = "BOGUS_DOCTYPE";
78
- State[State["CDATA_SECTION"] = 68] = "CDATA_SECTION";
79
- State[State["CDATA_SECTION_BRACKET"] = 69] = "CDATA_SECTION_BRACKET";
80
- State[State["CDATA_SECTION_END"] = 70] = "CDATA_SECTION_END";
81
- State[State["CHARACTER_REFERENCE"] = 71] = "CHARACTER_REFERENCE";
82
- State[State["AMBIGUOUS_AMPERSAND"] = 72] = "AMBIGUOUS_AMPERSAND";
83
- })(State || (State = {}));
84
- //Tokenizer initial states for different modes
85
- export const TokenizerMode = {
86
- DATA: State.DATA,
87
- RCDATA: State.RCDATA,
88
- RAWTEXT: State.RAWTEXT,
89
- SCRIPT_DATA: State.SCRIPT_DATA,
90
- PLAINTEXT: State.PLAINTEXT,
91
- CDATA_SECTION: State.CDATA_SECTION,
92
- };
93
- //Utils
94
- //OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline
95
- //this functions if they will be situated in another module due to context switch.
96
- //Always perform inlining check before modifying this functions ('node --trace-inlining').
97
- function isAsciiDigit(cp) {
98
- return cp >= $.DIGIT_0 && cp <= $.DIGIT_9;
99
- }
100
- function isAsciiUpper(cp) {
101
- return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z;
102
- }
103
- function isAsciiLower(cp) {
104
- return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z;
105
- }
106
- function isAsciiLetter(cp) {
107
- return isAsciiLower(cp) || isAsciiUpper(cp);
108
- }
109
- function isAsciiAlphaNumeric(cp) {
110
- return isAsciiLetter(cp) || isAsciiDigit(cp);
111
- }
112
- function toAsciiLower(cp) {
113
- return cp + 32;
114
- }
115
- function isWhitespace(cp) {
116
- return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;
117
- }
118
- function isScriptDataDoubleEscapeSequenceEnd(cp) {
119
- return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;
120
- }
121
- function getErrorForNumericCharacterReference(code) {
122
- if (code === $.NULL) {
123
- return ERR.nullCharacterReference;
124
- }
125
- else if (code > 1114111) {
126
- return ERR.characterReferenceOutsideUnicodeRange;
127
- }
128
- else if (isSurrogate(code)) {
129
- return ERR.surrogateCharacterReference;
130
- }
131
- else if (isUndefinedCodePoint(code)) {
132
- return ERR.noncharacterCharacterReference;
133
- }
134
- else if (isControlCodePoint(code) || code === $.CARRIAGE_RETURN) {
135
- return ERR.controlCharacterReference;
136
- }
137
- return null;
138
- }
139
- //Tokenizer
140
- export class Tokenizer {
141
- constructor(options, handler) {
142
- this.options = options;
143
- this.handler = handler;
144
- this.paused = false;
145
- /** Ensures that the parsing loop isn't run multiple times at once. */
146
- this.inLoop = false;
147
- /**
148
- * Indicates that the current adjusted node exists, is not an element in the HTML namespace,
149
- * and that it is not an integration point for either MathML or HTML.
150
- *
151
- * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}
152
- */
153
- this.inForeignNode = false;
154
- this.lastStartTagName = '';
155
- this.active = false;
156
- this.state = State.DATA;
157
- this.returnState = State.DATA;
158
- this.entityStartPos = 0;
159
- this.consumedAfterSnapshot = -1;
160
- this.currentCharacterToken = null;
161
- this.currentToken = null;
162
- this.currentAttr = { name: '', value: '' };
163
- this.preprocessor = new Preprocessor(handler);
164
- this.currentLocation = this.getCurrentLocation(-1);
165
- this.entityDecoder = new EntityDecoder(htmlDecodeTree, (cp, consumed) => {
166
- // Note: Set `pos` _before_ flushing, as flushing might drop
167
- // the current chunk and invalidate `entityStartPos`.
168
- this.preprocessor.pos = this.entityStartPos + consumed - 1;
169
- this._flushCodePointConsumedAsCharacterReference(cp);
170
- }, handler.onParseError
171
- ? {
172
- missingSemicolonAfterCharacterReference: () => {
173
- this._err(ERR.missingSemicolonAfterCharacterReference, 1);
174
- },
175
- absenceOfDigitsInNumericCharacterReference: (consumed) => {
176
- this._err(ERR.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + consumed);
177
- },
178
- validateNumericCharacterReference: (code) => {
179
- const error = getErrorForNumericCharacterReference(code);
180
- if (error)
181
- this._err(error, 1);
182
- },
183
- }
184
- : undefined);
185
- }
186
- //Errors
187
- _err(code, cpOffset = 0) {
188
- var _a, _b;
189
- (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code, cpOffset));
190
- }
191
- // NOTE: `offset` may never run across line boundaries.
192
- getCurrentLocation(offset) {
193
- if (!this.options.sourceCodeLocationInfo) {
194
- return null;
195
- }
196
- return {
197
- startLine: this.preprocessor.line,
198
- startCol: this.preprocessor.col - offset,
199
- startOffset: this.preprocessor.offset - offset,
200
- endLine: -1,
201
- endCol: -1,
202
- endOffset: -1,
203
- };
204
- }
205
- _runParsingLoop() {
206
- if (this.inLoop)
207
- return;
208
- this.inLoop = true;
209
- while (this.active && !this.paused) {
210
- this.consumedAfterSnapshot = 0;
211
- const cp = this._consume();
212
- if (!this._ensureHibernation()) {
213
- this._callState(cp);
214
- }
215
- }
216
- this.inLoop = false;
217
- }
218
- //API
219
- pause() {
220
- this.paused = true;
221
- }
222
- resume(writeCallback) {
223
- if (!this.paused) {
224
- throw new Error('Parser was already resumed');
225
- }
226
- this.paused = false;
227
- // Necessary for synchronous resume.
228
- if (this.inLoop)
229
- return;
230
- this._runParsingLoop();
231
- if (!this.paused) {
232
- writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
233
- }
234
- }
235
- write(chunk, isLastChunk, writeCallback) {
236
- this.active = true;
237
- this.preprocessor.write(chunk, isLastChunk);
238
- this._runParsingLoop();
239
- if (!this.paused) {
240
- writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();
241
- }
242
- }
243
- insertHtmlAtCurrentPos(chunk) {
244
- this.active = true;
245
- this.preprocessor.insertHtmlAtCurrentPos(chunk);
246
- this._runParsingLoop();
247
- }
248
- //Hibernation
249
- _ensureHibernation() {
250
- if (this.preprocessor.endOfChunkHit) {
251
- this.preprocessor.retreat(this.consumedAfterSnapshot);
252
- this.consumedAfterSnapshot = 0;
253
- this.active = false;
254
- return true;
255
- }
256
- return false;
257
- }
258
- //Consumption
259
- _consume() {
260
- this.consumedAfterSnapshot++;
261
- return this.preprocessor.advance();
262
- }
263
- _advanceBy(count) {
264
- this.consumedAfterSnapshot += count;
265
- for (let i = 0; i < count; i++) {
266
- this.preprocessor.advance();
267
- }
268
- }
269
- _consumeSequenceIfMatch(pattern, caseSensitive) {
270
- if (this.preprocessor.startsWith(pattern, caseSensitive)) {
271
- // We will already have consumed one character before calling this method.
272
- this._advanceBy(pattern.length - 1);
273
- return true;
274
- }
275
- return false;
276
- }
277
- //Token creation
278
- _createStartTagToken() {
279
- this.currentToken = {
280
- type: TokenType.START_TAG,
281
- tagName: '',
282
- tagID: TAG_ID.UNKNOWN,
283
- selfClosing: false,
284
- ackSelfClosing: false,
285
- attrs: [],
286
- location: this.getCurrentLocation(1),
287
- };
288
- }
289
- _createEndTagToken() {
290
- this.currentToken = {
291
- type: TokenType.END_TAG,
292
- tagName: '',
293
- tagID: TAG_ID.UNKNOWN,
294
- selfClosing: false,
295
- ackSelfClosing: false,
296
- attrs: [],
297
- location: this.getCurrentLocation(2),
298
- };
299
- }
300
- _createCommentToken(offset) {
301
- this.currentToken = {
302
- type: TokenType.COMMENT,
303
- data: '',
304
- location: this.getCurrentLocation(offset),
305
- };
306
- }
307
- _createDoctypeToken(initialName) {
308
- this.currentToken = {
309
- type: TokenType.DOCTYPE,
310
- name: initialName,
311
- forceQuirks: false,
312
- publicId: null,
313
- systemId: null,
314
- location: this.currentLocation,
315
- };
316
- }
317
- _createCharacterToken(type, chars) {
318
- this.currentCharacterToken = {
319
- type,
320
- chars,
321
- location: this.currentLocation,
322
- };
323
- }
324
- //Tag attributes
325
- _createAttr(attrNameFirstCh) {
326
- this.currentAttr = {
327
- name: attrNameFirstCh,
328
- value: '',
329
- };
330
- this.currentLocation = this.getCurrentLocation(0);
331
- }
332
- _leaveAttrName() {
333
- var _a;
334
- var _b;
335
- const token = this.currentToken;
336
- if (getTokenAttr(token, this.currentAttr.name) === null) {
337
- token.attrs.push(this.currentAttr);
338
- if (token.location && this.currentLocation) {
339
- const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));
340
- attrLocations[this.currentAttr.name] = this.currentLocation;
341
- // Set end location
342
- this._leaveAttrValue();
343
- }
344
- }
345
- else {
346
- this._err(ERR.duplicateAttribute);
347
- }
348
- }
349
- _leaveAttrValue() {
350
- if (this.currentLocation) {
351
- this.currentLocation.endLine = this.preprocessor.line;
352
- this.currentLocation.endCol = this.preprocessor.col;
353
- this.currentLocation.endOffset = this.preprocessor.offset;
354
- }
355
- }
356
- //Token emission
357
- prepareToken(ct) {
358
- this._emitCurrentCharacterToken(ct.location);
359
- this.currentToken = null;
360
- if (ct.location) {
361
- ct.location.endLine = this.preprocessor.line;
362
- ct.location.endCol = this.preprocessor.col + 1;
363
- ct.location.endOffset = this.preprocessor.offset + 1;
364
- }
365
- this.currentLocation = this.getCurrentLocation(-1);
366
- }
367
- emitCurrentTagToken() {
368
- const ct = this.currentToken;
369
- this.prepareToken(ct);
370
- ct.tagID = getTagID(ct.tagName);
371
- if (ct.type === TokenType.START_TAG) {
372
- this.lastStartTagName = ct.tagName;
373
- this.handler.onStartTag(ct);
374
- }
375
- else {
376
- if (ct.attrs.length > 0) {
377
- this._err(ERR.endTagWithAttributes);
378
- }
379
- if (ct.selfClosing) {
380
- this._err(ERR.endTagWithTrailingSolidus);
381
- }
382
- this.handler.onEndTag(ct);
383
- }
384
- this.preprocessor.dropParsedChunk();
385
- }
386
- emitCurrentComment(ct) {
387
- this.prepareToken(ct);
388
- this.handler.onComment(ct);
389
- this.preprocessor.dropParsedChunk();
390
- }
391
- emitCurrentDoctype(ct) {
392
- this.prepareToken(ct);
393
- this.handler.onDoctype(ct);
394
- this.preprocessor.dropParsedChunk();
395
- }
396
- _emitCurrentCharacterToken(nextLocation) {
397
- if (this.currentCharacterToken) {
398
- //NOTE: if we have a pending character token, make it's end location equal to the
399
- //current token's start location.
400
- if (nextLocation && this.currentCharacterToken.location) {
401
- this.currentCharacterToken.location.endLine = nextLocation.startLine;
402
- this.currentCharacterToken.location.endCol = nextLocation.startCol;
403
- this.currentCharacterToken.location.endOffset = nextLocation.startOffset;
404
- }
405
- switch (this.currentCharacterToken.type) {
406
- case TokenType.CHARACTER: {
407
- this.handler.onCharacter(this.currentCharacterToken);
408
- break;
409
- }
410
- case TokenType.NULL_CHARACTER: {
411
- this.handler.onNullCharacter(this.currentCharacterToken);
412
- break;
413
- }
414
- case TokenType.WHITESPACE_CHARACTER: {
415
- this.handler.onWhitespaceCharacter(this.currentCharacterToken);
416
- break;
417
- }
418
- }
419
- this.currentCharacterToken = null;
420
- }
421
- }
422
- _emitEOFToken() {
423
- const location = this.getCurrentLocation(0);
424
- if (location) {
425
- location.endLine = location.startLine;
426
- location.endCol = location.startCol;
427
- location.endOffset = location.startOffset;
428
- }
429
- this._emitCurrentCharacterToken(location);
430
- this.handler.onEof({ type: TokenType.EOF, location });
431
- this.active = false;
432
- }
433
- //Characters emission
434
- //OPTIMIZATION: The specification uses only one type of character token (one token per character).
435
- //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.
436
- //If we have a sequence of characters that belong to the same group, the parser can process it
437
- //as a single solid character token.
438
- //So, there are 3 types of character tokens in parse5:
439
- //1)TokenType.NULL_CHARACTER - \u0000-character sequences (e.g. '\u0000\u0000\u0000')
440
- //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\n \r\t \f')
441
- //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')
442
- _appendCharToCurrentCharacterToken(type, ch) {
443
- if (this.currentCharacterToken) {
444
- if (this.currentCharacterToken.type === type) {
445
- this.currentCharacterToken.chars += ch;
446
- return;
447
- }
448
- else {
449
- this.currentLocation = this.getCurrentLocation(0);
450
- this._emitCurrentCharacterToken(this.currentLocation);
451
- this.preprocessor.dropParsedChunk();
452
- }
453
- }
454
- this._createCharacterToken(type, ch);
455
- }
456
- _emitCodePoint(cp) {
457
- const type = isWhitespace(cp)
458
- ? TokenType.WHITESPACE_CHARACTER
459
- : cp === $.NULL
460
- ? TokenType.NULL_CHARACTER
461
- : TokenType.CHARACTER;
462
- this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));
463
- }
464
- //NOTE: used when we emit characters explicitly.
465
- //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
466
- _emitChars(ch) {
467
- this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);
468
- }
469
- // Character reference helpers
470
- _startCharacterReference() {
471
- this.returnState = this.state;
472
- this.state = State.CHARACTER_REFERENCE;
473
- this.entityStartPos = this.preprocessor.pos;
474
- this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? DecodingMode.Attribute : DecodingMode.Legacy);
475
- }
476
- _isCharacterReferenceInAttribute() {
477
- return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||
478
- this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||
479
- this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);
480
- }
481
- _flushCodePointConsumedAsCharacterReference(cp) {
482
- if (this._isCharacterReferenceInAttribute()) {
483
- this.currentAttr.value += String.fromCodePoint(cp);
484
- }
485
- else {
486
- this._emitCodePoint(cp);
487
- }
488
- }
489
- // Calling states this way turns out to be much faster than any other approach.
490
- _callState(cp) {
491
- switch (this.state) {
492
- case State.DATA: {
493
- this._stateData(cp);
494
- break;
495
- }
496
- case State.RCDATA: {
497
- this._stateRcdata(cp);
498
- break;
499
- }
500
- case State.RAWTEXT: {
501
- this._stateRawtext(cp);
502
- break;
503
- }
504
- case State.SCRIPT_DATA: {
505
- this._stateScriptData(cp);
506
- break;
507
- }
508
- case State.PLAINTEXT: {
509
- this._statePlaintext(cp);
510
- break;
511
- }
512
- case State.TAG_OPEN: {
513
- this._stateTagOpen(cp);
514
- break;
515
- }
516
- case State.END_TAG_OPEN: {
517
- this._stateEndTagOpen(cp);
518
- break;
519
- }
520
- case State.TAG_NAME: {
521
- this._stateTagName(cp);
522
- break;
523
- }
524
- case State.RCDATA_LESS_THAN_SIGN: {
525
- this._stateRcdataLessThanSign(cp);
526
- break;
527
- }
528
- case State.RCDATA_END_TAG_OPEN: {
529
- this._stateRcdataEndTagOpen(cp);
530
- break;
531
- }
532
- case State.RCDATA_END_TAG_NAME: {
533
- this._stateRcdataEndTagName(cp);
534
- break;
535
- }
536
- case State.RAWTEXT_LESS_THAN_SIGN: {
537
- this._stateRawtextLessThanSign(cp);
538
- break;
539
- }
540
- case State.RAWTEXT_END_TAG_OPEN: {
541
- this._stateRawtextEndTagOpen(cp);
542
- break;
543
- }
544
- case State.RAWTEXT_END_TAG_NAME: {
545
- this._stateRawtextEndTagName(cp);
546
- break;
547
- }
548
- case State.SCRIPT_DATA_LESS_THAN_SIGN: {
549
- this._stateScriptDataLessThanSign(cp);
550
- break;
551
- }
552
- case State.SCRIPT_DATA_END_TAG_OPEN: {
553
- this._stateScriptDataEndTagOpen(cp);
554
- break;
555
- }
556
- case State.SCRIPT_DATA_END_TAG_NAME: {
557
- this._stateScriptDataEndTagName(cp);
558
- break;
559
- }
560
- case State.SCRIPT_DATA_ESCAPE_START: {
561
- this._stateScriptDataEscapeStart(cp);
562
- break;
563
- }
564
- case State.SCRIPT_DATA_ESCAPE_START_DASH: {
565
- this._stateScriptDataEscapeStartDash(cp);
566
- break;
567
- }
568
- case State.SCRIPT_DATA_ESCAPED: {
569
- this._stateScriptDataEscaped(cp);
570
- break;
571
- }
572
- case State.SCRIPT_DATA_ESCAPED_DASH: {
573
- this._stateScriptDataEscapedDash(cp);
574
- break;
575
- }
576
- case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {
577
- this._stateScriptDataEscapedDashDash(cp);
578
- break;
579
- }
580
- case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
581
- this._stateScriptDataEscapedLessThanSign(cp);
582
- break;
583
- }
584
- case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
585
- this._stateScriptDataEscapedEndTagOpen(cp);
586
- break;
587
- }
588
- case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
589
- this._stateScriptDataEscapedEndTagName(cp);
590
- break;
591
- }
592
- case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
593
- this._stateScriptDataDoubleEscapeStart(cp);
594
- break;
595
- }
596
- case State.SCRIPT_DATA_DOUBLE_ESCAPED: {
597
- this._stateScriptDataDoubleEscaped(cp);
598
- break;
599
- }
600
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
601
- this._stateScriptDataDoubleEscapedDash(cp);
602
- break;
603
- }
604
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
605
- this._stateScriptDataDoubleEscapedDashDash(cp);
606
- break;
607
- }
608
- case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
609
- this._stateScriptDataDoubleEscapedLessThanSign(cp);
610
- break;
611
- }
612
- case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
613
- this._stateScriptDataDoubleEscapeEnd(cp);
614
- break;
615
- }
616
- case State.BEFORE_ATTRIBUTE_NAME: {
617
- this._stateBeforeAttributeName(cp);
618
- break;
619
- }
620
- case State.ATTRIBUTE_NAME: {
621
- this._stateAttributeName(cp);
622
- break;
623
- }
624
- case State.AFTER_ATTRIBUTE_NAME: {
625
- this._stateAfterAttributeName(cp);
626
- break;
627
- }
628
- case State.BEFORE_ATTRIBUTE_VALUE: {
629
- this._stateBeforeAttributeValue(cp);
630
- break;
631
- }
632
- case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
633
- this._stateAttributeValueDoubleQuoted(cp);
634
- break;
635
- }
636
- case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
637
- this._stateAttributeValueSingleQuoted(cp);
638
- break;
639
- }
640
- case State.ATTRIBUTE_VALUE_UNQUOTED: {
641
- this._stateAttributeValueUnquoted(cp);
642
- break;
643
- }
644
- case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {
645
- this._stateAfterAttributeValueQuoted(cp);
646
- break;
647
- }
648
- case State.SELF_CLOSING_START_TAG: {
649
- this._stateSelfClosingStartTag(cp);
650
- break;
651
- }
652
- case State.BOGUS_COMMENT: {
653
- this._stateBogusComment(cp);
654
- break;
655
- }
656
- case State.MARKUP_DECLARATION_OPEN: {
657
- this._stateMarkupDeclarationOpen(cp);
658
- break;
659
- }
660
- case State.COMMENT_START: {
661
- this._stateCommentStart(cp);
662
- break;
663
- }
664
- case State.COMMENT_START_DASH: {
665
- this._stateCommentStartDash(cp);
666
- break;
667
- }
668
- case State.COMMENT: {
669
- this._stateComment(cp);
670
- break;
671
- }
672
- case State.COMMENT_LESS_THAN_SIGN: {
673
- this._stateCommentLessThanSign(cp);
674
- break;
675
- }
676
- case State.COMMENT_LESS_THAN_SIGN_BANG: {
677
- this._stateCommentLessThanSignBang(cp);
678
- break;
679
- }
680
- case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
681
- this._stateCommentLessThanSignBangDash(cp);
682
- break;
683
- }
684
- case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
685
- this._stateCommentLessThanSignBangDashDash(cp);
686
- break;
687
- }
688
- case State.COMMENT_END_DASH: {
689
- this._stateCommentEndDash(cp);
690
- break;
691
- }
692
- case State.COMMENT_END: {
693
- this._stateCommentEnd(cp);
694
- break;
695
- }
696
- case State.COMMENT_END_BANG: {
697
- this._stateCommentEndBang(cp);
698
- break;
699
- }
700
- case State.DOCTYPE: {
701
- this._stateDoctype(cp);
702
- break;
703
- }
704
- case State.BEFORE_DOCTYPE_NAME: {
705
- this._stateBeforeDoctypeName(cp);
706
- break;
707
- }
708
- case State.DOCTYPE_NAME: {
709
- this._stateDoctypeName(cp);
710
- break;
711
- }
712
- case State.AFTER_DOCTYPE_NAME: {
713
- this._stateAfterDoctypeName(cp);
714
- break;
715
- }
716
- case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
717
- this._stateAfterDoctypePublicKeyword(cp);
718
- break;
719
- }
720
- case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
721
- this._stateBeforeDoctypePublicIdentifier(cp);
722
- break;
723
- }
724
- case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
725
- this._stateDoctypePublicIdentifierDoubleQuoted(cp);
726
- break;
727
- }
728
- case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
729
- this._stateDoctypePublicIdentifierSingleQuoted(cp);
730
- break;
731
- }
732
- case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
733
- this._stateAfterDoctypePublicIdentifier(cp);
734
- break;
735
- }
736
- case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
737
- this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);
738
- break;
739
- }
740
- case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
741
- this._stateAfterDoctypeSystemKeyword(cp);
742
- break;
743
- }
744
- case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
745
- this._stateBeforeDoctypeSystemIdentifier(cp);
746
- break;
747
- }
748
- case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
749
- this._stateDoctypeSystemIdentifierDoubleQuoted(cp);
750
- break;
751
- }
752
- case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
753
- this._stateDoctypeSystemIdentifierSingleQuoted(cp);
754
- break;
755
- }
756
- case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
757
- this._stateAfterDoctypeSystemIdentifier(cp);
758
- break;
759
- }
760
- case State.BOGUS_DOCTYPE: {
761
- this._stateBogusDoctype(cp);
762
- break;
763
- }
764
- case State.CDATA_SECTION: {
765
- this._stateCdataSection(cp);
766
- break;
767
- }
768
- case State.CDATA_SECTION_BRACKET: {
769
- this._stateCdataSectionBracket(cp);
770
- break;
771
- }
772
- case State.CDATA_SECTION_END: {
773
- this._stateCdataSectionEnd(cp);
774
- break;
775
- }
776
- case State.CHARACTER_REFERENCE: {
777
- this._stateCharacterReference();
778
- break;
779
- }
780
- case State.AMBIGUOUS_AMPERSAND: {
781
- this._stateAmbiguousAmpersand(cp);
782
- break;
783
- }
784
- default: {
785
- throw new Error('Unknown state');
786
- }
787
- }
788
- }
789
- // State machine
790
- // Data state
791
- //------------------------------------------------------------------
792
- _stateData(cp) {
793
- switch (cp) {
794
- case $.LESS_THAN_SIGN: {
795
- this.state = State.TAG_OPEN;
796
- break;
797
- }
798
- case $.AMPERSAND: {
799
- this._startCharacterReference();
800
- break;
801
- }
802
- case $.NULL: {
803
- this._err(ERR.unexpectedNullCharacter);
804
- this._emitCodePoint(cp);
805
- break;
806
- }
807
- case $.EOF: {
808
- this._emitEOFToken();
809
- break;
810
- }
811
- default: {
812
- this._emitCodePoint(cp);
813
- }
814
- }
815
- }
816
- // RCDATA state
817
- //------------------------------------------------------------------
818
- _stateRcdata(cp) {
819
- switch (cp) {
820
- case $.AMPERSAND: {
821
- this._startCharacterReference();
822
- break;
823
- }
824
- case $.LESS_THAN_SIGN: {
825
- this.state = State.RCDATA_LESS_THAN_SIGN;
826
- break;
827
- }
828
- case $.NULL: {
829
- this._err(ERR.unexpectedNullCharacter);
830
- this._emitChars(REPLACEMENT_CHARACTER);
831
- break;
832
- }
833
- case $.EOF: {
834
- this._emitEOFToken();
835
- break;
836
- }
837
- default: {
838
- this._emitCodePoint(cp);
839
- }
840
- }
841
- }
842
- // RAWTEXT state
843
- //------------------------------------------------------------------
844
- _stateRawtext(cp) {
845
- switch (cp) {
846
- case $.LESS_THAN_SIGN: {
847
- this.state = State.RAWTEXT_LESS_THAN_SIGN;
848
- break;
849
- }
850
- case $.NULL: {
851
- this._err(ERR.unexpectedNullCharacter);
852
- this._emitChars(REPLACEMENT_CHARACTER);
853
- break;
854
- }
855
- case $.EOF: {
856
- this._emitEOFToken();
857
- break;
858
- }
859
- default: {
860
- this._emitCodePoint(cp);
861
- }
862
- }
863
- }
864
- // Script data state
865
- //------------------------------------------------------------------
866
- _stateScriptData(cp) {
867
- switch (cp) {
868
- case $.LESS_THAN_SIGN: {
869
- this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;
870
- break;
871
- }
872
- case $.NULL: {
873
- this._err(ERR.unexpectedNullCharacter);
874
- this._emitChars(REPLACEMENT_CHARACTER);
875
- break;
876
- }
877
- case $.EOF: {
878
- this._emitEOFToken();
879
- break;
880
- }
881
- default: {
882
- this._emitCodePoint(cp);
883
- }
884
- }
885
- }
886
- // PLAINTEXT state
887
- //------------------------------------------------------------------
888
- _statePlaintext(cp) {
889
- switch (cp) {
890
- case $.NULL: {
891
- this._err(ERR.unexpectedNullCharacter);
892
- this._emitChars(REPLACEMENT_CHARACTER);
893
- break;
894
- }
895
- case $.EOF: {
896
- this._emitEOFToken();
897
- break;
898
- }
899
- default: {
900
- this._emitCodePoint(cp);
901
- }
902
- }
903
- }
904
- // Tag open state
905
- //------------------------------------------------------------------
906
- _stateTagOpen(cp) {
907
- if (isAsciiLetter(cp)) {
908
- this._createStartTagToken();
909
- this.state = State.TAG_NAME;
910
- this._stateTagName(cp);
911
- }
912
- else
913
- switch (cp) {
914
- case $.EXCLAMATION_MARK: {
915
- this.state = State.MARKUP_DECLARATION_OPEN;
916
- break;
917
- }
918
- case $.SOLIDUS: {
919
- this.state = State.END_TAG_OPEN;
920
- break;
921
- }
922
- case $.QUESTION_MARK: {
923
- this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);
924
- this._createCommentToken(1);
925
- this.state = State.BOGUS_COMMENT;
926
- this._stateBogusComment(cp);
927
- break;
928
- }
929
- case $.EOF: {
930
- this._err(ERR.eofBeforeTagName);
931
- this._emitChars('<');
932
- this._emitEOFToken();
933
- break;
934
- }
935
- default: {
936
- this._err(ERR.invalidFirstCharacterOfTagName);
937
- this._emitChars('<');
938
- this.state = State.DATA;
939
- this._stateData(cp);
940
- }
941
- }
942
- }
943
- // End tag open state
944
- //------------------------------------------------------------------
945
- _stateEndTagOpen(cp) {
946
- if (isAsciiLetter(cp)) {
947
- this._createEndTagToken();
948
- this.state = State.TAG_NAME;
949
- this._stateTagName(cp);
950
- }
951
- else
952
- switch (cp) {
953
- case $.GREATER_THAN_SIGN: {
954
- this._err(ERR.missingEndTagName);
955
- this.state = State.DATA;
956
- break;
957
- }
958
- case $.EOF: {
959
- this._err(ERR.eofBeforeTagName);
960
- this._emitChars('</');
961
- this._emitEOFToken();
962
- break;
963
- }
964
- default: {
965
- this._err(ERR.invalidFirstCharacterOfTagName);
966
- this._createCommentToken(2);
967
- this.state = State.BOGUS_COMMENT;
968
- this._stateBogusComment(cp);
969
- }
970
- }
971
- }
972
- // Tag name state
973
- //------------------------------------------------------------------
974
- _stateTagName(cp) {
975
- const token = this.currentToken;
976
- switch (cp) {
977
- case $.SPACE:
978
- case $.LINE_FEED:
979
- case $.TABULATION:
980
- case $.FORM_FEED: {
981
- this.state = State.BEFORE_ATTRIBUTE_NAME;
982
- break;
983
- }
984
- case $.SOLIDUS: {
985
- this.state = State.SELF_CLOSING_START_TAG;
986
- break;
987
- }
988
- case $.GREATER_THAN_SIGN: {
989
- this.state = State.DATA;
990
- this.emitCurrentTagToken();
991
- break;
992
- }
993
- case $.NULL: {
994
- this._err(ERR.unexpectedNullCharacter);
995
- token.tagName += REPLACEMENT_CHARACTER;
996
- break;
997
- }
998
- case $.EOF: {
999
- this._err(ERR.eofInTag);
1000
- this._emitEOFToken();
1001
- break;
1002
- }
1003
- default: {
1004
- token.tagName += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1005
- }
1006
- }
1007
- }
1008
- // RCDATA less-than sign state
1009
- //------------------------------------------------------------------
1010
- _stateRcdataLessThanSign(cp) {
1011
- if (cp === $.SOLIDUS) {
1012
- this.state = State.RCDATA_END_TAG_OPEN;
1013
- }
1014
- else {
1015
- this._emitChars('<');
1016
- this.state = State.RCDATA;
1017
- this._stateRcdata(cp);
1018
- }
1019
- }
1020
- // RCDATA end tag open state
1021
- //------------------------------------------------------------------
1022
- _stateRcdataEndTagOpen(cp) {
1023
- if (isAsciiLetter(cp)) {
1024
- this.state = State.RCDATA_END_TAG_NAME;
1025
- this._stateRcdataEndTagName(cp);
1026
- }
1027
- else {
1028
- this._emitChars('</');
1029
- this.state = State.RCDATA;
1030
- this._stateRcdata(cp);
1031
- }
1032
- }
1033
- handleSpecialEndTag(_cp) {
1034
- if (!this.preprocessor.startsWith(this.lastStartTagName, false)) {
1035
- return !this._ensureHibernation();
1036
- }
1037
- this._createEndTagToken();
1038
- const token = this.currentToken;
1039
- token.tagName = this.lastStartTagName;
1040
- const cp = this.preprocessor.peek(this.lastStartTagName.length);
1041
- switch (cp) {
1042
- case $.SPACE:
1043
- case $.LINE_FEED:
1044
- case $.TABULATION:
1045
- case $.FORM_FEED: {
1046
- this._advanceBy(this.lastStartTagName.length);
1047
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1048
- return false;
1049
- }
1050
- case $.SOLIDUS: {
1051
- this._advanceBy(this.lastStartTagName.length);
1052
- this.state = State.SELF_CLOSING_START_TAG;
1053
- return false;
1054
- }
1055
- case $.GREATER_THAN_SIGN: {
1056
- this._advanceBy(this.lastStartTagName.length);
1057
- this.emitCurrentTagToken();
1058
- this.state = State.DATA;
1059
- return false;
1060
- }
1061
- default: {
1062
- return !this._ensureHibernation();
1063
- }
1064
- }
1065
- }
1066
- // RCDATA end tag name state
1067
- //------------------------------------------------------------------
1068
- _stateRcdataEndTagName(cp) {
1069
- if (this.handleSpecialEndTag(cp)) {
1070
- this._emitChars('</');
1071
- this.state = State.RCDATA;
1072
- this._stateRcdata(cp);
1073
- }
1074
- }
1075
- // RAWTEXT less-than sign state
1076
- //------------------------------------------------------------------
1077
- _stateRawtextLessThanSign(cp) {
1078
- if (cp === $.SOLIDUS) {
1079
- this.state = State.RAWTEXT_END_TAG_OPEN;
1080
- }
1081
- else {
1082
- this._emitChars('<');
1083
- this.state = State.RAWTEXT;
1084
- this._stateRawtext(cp);
1085
- }
1086
- }
1087
- // RAWTEXT end tag open state
1088
- //------------------------------------------------------------------
1089
- _stateRawtextEndTagOpen(cp) {
1090
- if (isAsciiLetter(cp)) {
1091
- this.state = State.RAWTEXT_END_TAG_NAME;
1092
- this._stateRawtextEndTagName(cp);
1093
- }
1094
- else {
1095
- this._emitChars('</');
1096
- this.state = State.RAWTEXT;
1097
- this._stateRawtext(cp);
1098
- }
1099
- }
1100
- // RAWTEXT end tag name state
1101
- //------------------------------------------------------------------
1102
- _stateRawtextEndTagName(cp) {
1103
- if (this.handleSpecialEndTag(cp)) {
1104
- this._emitChars('</');
1105
- this.state = State.RAWTEXT;
1106
- this._stateRawtext(cp);
1107
- }
1108
- }
1109
- // Script data less-than sign state
1110
- //------------------------------------------------------------------
1111
- _stateScriptDataLessThanSign(cp) {
1112
- switch (cp) {
1113
- case $.SOLIDUS: {
1114
- this.state = State.SCRIPT_DATA_END_TAG_OPEN;
1115
- break;
1116
- }
1117
- case $.EXCLAMATION_MARK: {
1118
- this.state = State.SCRIPT_DATA_ESCAPE_START;
1119
- this._emitChars('<!');
1120
- break;
1121
- }
1122
- default: {
1123
- this._emitChars('<');
1124
- this.state = State.SCRIPT_DATA;
1125
- this._stateScriptData(cp);
1126
- }
1127
- }
1128
- }
1129
- // Script data end tag open state
1130
- //------------------------------------------------------------------
1131
- _stateScriptDataEndTagOpen(cp) {
1132
- if (isAsciiLetter(cp)) {
1133
- this.state = State.SCRIPT_DATA_END_TAG_NAME;
1134
- this._stateScriptDataEndTagName(cp);
1135
- }
1136
- else {
1137
- this._emitChars('</');
1138
- this.state = State.SCRIPT_DATA;
1139
- this._stateScriptData(cp);
1140
- }
1141
- }
1142
- // Script data end tag name state
1143
- //------------------------------------------------------------------
1144
- _stateScriptDataEndTagName(cp) {
1145
- if (this.handleSpecialEndTag(cp)) {
1146
- this._emitChars('</');
1147
- this.state = State.SCRIPT_DATA;
1148
- this._stateScriptData(cp);
1149
- }
1150
- }
1151
- // Script data escape start state
1152
- //------------------------------------------------------------------
1153
- _stateScriptDataEscapeStart(cp) {
1154
- if (cp === $.HYPHEN_MINUS) {
1155
- this.state = State.SCRIPT_DATA_ESCAPE_START_DASH;
1156
- this._emitChars('-');
1157
- }
1158
- else {
1159
- this.state = State.SCRIPT_DATA;
1160
- this._stateScriptData(cp);
1161
- }
1162
- }
1163
- // Script data escape start dash state
1164
- //------------------------------------------------------------------
1165
- _stateScriptDataEscapeStartDash(cp) {
1166
- if (cp === $.HYPHEN_MINUS) {
1167
- this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
1168
- this._emitChars('-');
1169
- }
1170
- else {
1171
- this.state = State.SCRIPT_DATA;
1172
- this._stateScriptData(cp);
1173
- }
1174
- }
1175
- // Script data escaped state
1176
- //------------------------------------------------------------------
1177
- _stateScriptDataEscaped(cp) {
1178
- switch (cp) {
1179
- case $.HYPHEN_MINUS: {
1180
- this.state = State.SCRIPT_DATA_ESCAPED_DASH;
1181
- this._emitChars('-');
1182
- break;
1183
- }
1184
- case $.LESS_THAN_SIGN: {
1185
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1186
- break;
1187
- }
1188
- case $.NULL: {
1189
- this._err(ERR.unexpectedNullCharacter);
1190
- this._emitChars(REPLACEMENT_CHARACTER);
1191
- break;
1192
- }
1193
- case $.EOF: {
1194
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1195
- this._emitEOFToken();
1196
- break;
1197
- }
1198
- default: {
1199
- this._emitCodePoint(cp);
1200
- }
1201
- }
1202
- }
1203
- // Script data escaped dash state
1204
- //------------------------------------------------------------------
1205
- _stateScriptDataEscapedDash(cp) {
1206
- switch (cp) {
1207
- case $.HYPHEN_MINUS: {
1208
- this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
1209
- this._emitChars('-');
1210
- break;
1211
- }
1212
- case $.LESS_THAN_SIGN: {
1213
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1214
- break;
1215
- }
1216
- case $.NULL: {
1217
- this._err(ERR.unexpectedNullCharacter);
1218
- this.state = State.SCRIPT_DATA_ESCAPED;
1219
- this._emitChars(REPLACEMENT_CHARACTER);
1220
- break;
1221
- }
1222
- case $.EOF: {
1223
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1224
- this._emitEOFToken();
1225
- break;
1226
- }
1227
- default: {
1228
- this.state = State.SCRIPT_DATA_ESCAPED;
1229
- this._emitCodePoint(cp);
1230
- }
1231
- }
1232
- }
1233
- // Script data escaped dash dash state
1234
- //------------------------------------------------------------------
1235
- _stateScriptDataEscapedDashDash(cp) {
1236
- switch (cp) {
1237
- case $.HYPHEN_MINUS: {
1238
- this._emitChars('-');
1239
- break;
1240
- }
1241
- case $.LESS_THAN_SIGN: {
1242
- this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
1243
- break;
1244
- }
1245
- case $.GREATER_THAN_SIGN: {
1246
- this.state = State.SCRIPT_DATA;
1247
- this._emitChars('>');
1248
- break;
1249
- }
1250
- case $.NULL: {
1251
- this._err(ERR.unexpectedNullCharacter);
1252
- this.state = State.SCRIPT_DATA_ESCAPED;
1253
- this._emitChars(REPLACEMENT_CHARACTER);
1254
- break;
1255
- }
1256
- case $.EOF: {
1257
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1258
- this._emitEOFToken();
1259
- break;
1260
- }
1261
- default: {
1262
- this.state = State.SCRIPT_DATA_ESCAPED;
1263
- this._emitCodePoint(cp);
1264
- }
1265
- }
1266
- }
1267
- // Script data escaped less-than sign state
1268
- //------------------------------------------------------------------
1269
- _stateScriptDataEscapedLessThanSign(cp) {
1270
- if (cp === $.SOLIDUS) {
1271
- this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;
1272
- }
1273
- else if (isAsciiLetter(cp)) {
1274
- this._emitChars('<');
1275
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;
1276
- this._stateScriptDataDoubleEscapeStart(cp);
1277
- }
1278
- else {
1279
- this._emitChars('<');
1280
- this.state = State.SCRIPT_DATA_ESCAPED;
1281
- this._stateScriptDataEscaped(cp);
1282
- }
1283
- }
1284
- // Script data escaped end tag open state
1285
- //------------------------------------------------------------------
1286
- _stateScriptDataEscapedEndTagOpen(cp) {
1287
- if (isAsciiLetter(cp)) {
1288
- this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;
1289
- this._stateScriptDataEscapedEndTagName(cp);
1290
- }
1291
- else {
1292
- this._emitChars('</');
1293
- this.state = State.SCRIPT_DATA_ESCAPED;
1294
- this._stateScriptDataEscaped(cp);
1295
- }
1296
- }
1297
- // Script data escaped end tag name state
1298
- //------------------------------------------------------------------
1299
- _stateScriptDataEscapedEndTagName(cp) {
1300
- if (this.handleSpecialEndTag(cp)) {
1301
- this._emitChars('</');
1302
- this.state = State.SCRIPT_DATA_ESCAPED;
1303
- this._stateScriptDataEscaped(cp);
1304
- }
1305
- }
1306
- // Script data double escape start state
1307
- //------------------------------------------------------------------
1308
- _stateScriptDataDoubleEscapeStart(cp) {
1309
- if (this.preprocessor.startsWith($$.SCRIPT, false) &&
1310
- isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {
1311
- this._emitCodePoint(cp);
1312
- for (let i = 0; i < $$.SCRIPT.length; i++) {
1313
- this._emitCodePoint(this._consume());
1314
- }
1315
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1316
- }
1317
- else if (!this._ensureHibernation()) {
1318
- this.state = State.SCRIPT_DATA_ESCAPED;
1319
- this._stateScriptDataEscaped(cp);
1320
- }
1321
- }
1322
- // Script data double escaped state
1323
- //------------------------------------------------------------------
1324
- _stateScriptDataDoubleEscaped(cp) {
1325
- switch (cp) {
1326
- case $.HYPHEN_MINUS: {
1327
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;
1328
- this._emitChars('-');
1329
- break;
1330
- }
1331
- case $.LESS_THAN_SIGN: {
1332
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1333
- this._emitChars('<');
1334
- break;
1335
- }
1336
- case $.NULL: {
1337
- this._err(ERR.unexpectedNullCharacter);
1338
- this._emitChars(REPLACEMENT_CHARACTER);
1339
- break;
1340
- }
1341
- case $.EOF: {
1342
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1343
- this._emitEOFToken();
1344
- break;
1345
- }
1346
- default: {
1347
- this._emitCodePoint(cp);
1348
- }
1349
- }
1350
- }
1351
- // Script data double escaped dash state
1352
- //------------------------------------------------------------------
1353
- _stateScriptDataDoubleEscapedDash(cp) {
1354
- switch (cp) {
1355
- case $.HYPHEN_MINUS: {
1356
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;
1357
- this._emitChars('-');
1358
- break;
1359
- }
1360
- case $.LESS_THAN_SIGN: {
1361
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1362
- this._emitChars('<');
1363
- break;
1364
- }
1365
- case $.NULL: {
1366
- this._err(ERR.unexpectedNullCharacter);
1367
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1368
- this._emitChars(REPLACEMENT_CHARACTER);
1369
- break;
1370
- }
1371
- case $.EOF: {
1372
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1373
- this._emitEOFToken();
1374
- break;
1375
- }
1376
- default: {
1377
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1378
- this._emitCodePoint(cp);
1379
- }
1380
- }
1381
- }
1382
- // Script data double escaped dash dash state
1383
- //------------------------------------------------------------------
1384
- _stateScriptDataDoubleEscapedDashDash(cp) {
1385
- switch (cp) {
1386
- case $.HYPHEN_MINUS: {
1387
- this._emitChars('-');
1388
- break;
1389
- }
1390
- case $.LESS_THAN_SIGN: {
1391
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1392
- this._emitChars('<');
1393
- break;
1394
- }
1395
- case $.GREATER_THAN_SIGN: {
1396
- this.state = State.SCRIPT_DATA;
1397
- this._emitChars('>');
1398
- break;
1399
- }
1400
- case $.NULL: {
1401
- this._err(ERR.unexpectedNullCharacter);
1402
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1403
- this._emitChars(REPLACEMENT_CHARACTER);
1404
- break;
1405
- }
1406
- case $.EOF: {
1407
- this._err(ERR.eofInScriptHtmlCommentLikeText);
1408
- this._emitEOFToken();
1409
- break;
1410
- }
1411
- default: {
1412
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1413
- this._emitCodePoint(cp);
1414
- }
1415
- }
1416
- }
1417
- // Script data double escaped less-than sign state
1418
- //------------------------------------------------------------------
1419
- _stateScriptDataDoubleEscapedLessThanSign(cp) {
1420
- if (cp === $.SOLIDUS) {
1421
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;
1422
- this._emitChars('/');
1423
- }
1424
- else {
1425
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1426
- this._stateScriptDataDoubleEscaped(cp);
1427
- }
1428
- }
1429
- // Script data double escape end state
1430
- //------------------------------------------------------------------
1431
- _stateScriptDataDoubleEscapeEnd(cp) {
1432
- if (this.preprocessor.startsWith($$.SCRIPT, false) &&
1433
- isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {
1434
- this._emitCodePoint(cp);
1435
- for (let i = 0; i < $$.SCRIPT.length; i++) {
1436
- this._emitCodePoint(this._consume());
1437
- }
1438
- this.state = State.SCRIPT_DATA_ESCAPED;
1439
- }
1440
- else if (!this._ensureHibernation()) {
1441
- this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1442
- this._stateScriptDataDoubleEscaped(cp);
1443
- }
1444
- }
1445
- // Before attribute name state
1446
- //------------------------------------------------------------------
1447
- _stateBeforeAttributeName(cp) {
1448
- switch (cp) {
1449
- case $.SPACE:
1450
- case $.LINE_FEED:
1451
- case $.TABULATION:
1452
- case $.FORM_FEED: {
1453
- // Ignore whitespace
1454
- break;
1455
- }
1456
- case $.SOLIDUS:
1457
- case $.GREATER_THAN_SIGN:
1458
- case $.EOF: {
1459
- this.state = State.AFTER_ATTRIBUTE_NAME;
1460
- this._stateAfterAttributeName(cp);
1461
- break;
1462
- }
1463
- case $.EQUALS_SIGN: {
1464
- this._err(ERR.unexpectedEqualsSignBeforeAttributeName);
1465
- this._createAttr('=');
1466
- this.state = State.ATTRIBUTE_NAME;
1467
- break;
1468
- }
1469
- default: {
1470
- this._createAttr('');
1471
- this.state = State.ATTRIBUTE_NAME;
1472
- this._stateAttributeName(cp);
1473
- }
1474
- }
1475
- }
1476
- // Attribute name state
1477
- //------------------------------------------------------------------
1478
- _stateAttributeName(cp) {
1479
- switch (cp) {
1480
- case $.SPACE:
1481
- case $.LINE_FEED:
1482
- case $.TABULATION:
1483
- case $.FORM_FEED:
1484
- case $.SOLIDUS:
1485
- case $.GREATER_THAN_SIGN:
1486
- case $.EOF: {
1487
- this._leaveAttrName();
1488
- this.state = State.AFTER_ATTRIBUTE_NAME;
1489
- this._stateAfterAttributeName(cp);
1490
- break;
1491
- }
1492
- case $.EQUALS_SIGN: {
1493
- this._leaveAttrName();
1494
- this.state = State.BEFORE_ATTRIBUTE_VALUE;
1495
- break;
1496
- }
1497
- case $.QUOTATION_MARK:
1498
- case $.APOSTROPHE:
1499
- case $.LESS_THAN_SIGN: {
1500
- this._err(ERR.unexpectedCharacterInAttributeName);
1501
- this.currentAttr.name += String.fromCodePoint(cp);
1502
- break;
1503
- }
1504
- case $.NULL: {
1505
- this._err(ERR.unexpectedNullCharacter);
1506
- this.currentAttr.name += REPLACEMENT_CHARACTER;
1507
- break;
1508
- }
1509
- default: {
1510
- this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1511
- }
1512
- }
1513
- }
1514
- // After attribute name state
1515
- //------------------------------------------------------------------
1516
- _stateAfterAttributeName(cp) {
1517
- switch (cp) {
1518
- case $.SPACE:
1519
- case $.LINE_FEED:
1520
- case $.TABULATION:
1521
- case $.FORM_FEED: {
1522
- // Ignore whitespace
1523
- break;
1524
- }
1525
- case $.SOLIDUS: {
1526
- this.state = State.SELF_CLOSING_START_TAG;
1527
- break;
1528
- }
1529
- case $.EQUALS_SIGN: {
1530
- this.state = State.BEFORE_ATTRIBUTE_VALUE;
1531
- break;
1532
- }
1533
- case $.GREATER_THAN_SIGN: {
1534
- this.state = State.DATA;
1535
- this.emitCurrentTagToken();
1536
- break;
1537
- }
1538
- case $.EOF: {
1539
- this._err(ERR.eofInTag);
1540
- this._emitEOFToken();
1541
- break;
1542
- }
1543
- default: {
1544
- this._createAttr('');
1545
- this.state = State.ATTRIBUTE_NAME;
1546
- this._stateAttributeName(cp);
1547
- }
1548
- }
1549
- }
1550
- // Before attribute value state
1551
- //------------------------------------------------------------------
1552
- _stateBeforeAttributeValue(cp) {
1553
- switch (cp) {
1554
- case $.SPACE:
1555
- case $.LINE_FEED:
1556
- case $.TABULATION:
1557
- case $.FORM_FEED: {
1558
- // Ignore whitespace
1559
- break;
1560
- }
1561
- case $.QUOTATION_MARK: {
1562
- this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
1563
- break;
1564
- }
1565
- case $.APOSTROPHE: {
1566
- this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;
1567
- break;
1568
- }
1569
- case $.GREATER_THAN_SIGN: {
1570
- this._err(ERR.missingAttributeValue);
1571
- this.state = State.DATA;
1572
- this.emitCurrentTagToken();
1573
- break;
1574
- }
1575
- default: {
1576
- this.state = State.ATTRIBUTE_VALUE_UNQUOTED;
1577
- this._stateAttributeValueUnquoted(cp);
1578
- }
1579
- }
1580
- }
1581
- // Attribute value (double-quoted) state
1582
- //------------------------------------------------------------------
1583
- _stateAttributeValueDoubleQuoted(cp) {
1584
- switch (cp) {
1585
- case $.QUOTATION_MARK: {
1586
- this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1587
- break;
1588
- }
1589
- case $.AMPERSAND: {
1590
- this._startCharacterReference();
1591
- break;
1592
- }
1593
- case $.NULL: {
1594
- this._err(ERR.unexpectedNullCharacter);
1595
- this.currentAttr.value += REPLACEMENT_CHARACTER;
1596
- break;
1597
- }
1598
- case $.EOF: {
1599
- this._err(ERR.eofInTag);
1600
- this._emitEOFToken();
1601
- break;
1602
- }
1603
- default: {
1604
- this.currentAttr.value += String.fromCodePoint(cp);
1605
- }
1606
- }
1607
- }
1608
- // Attribute value (single-quoted) state
1609
- //------------------------------------------------------------------
1610
- _stateAttributeValueSingleQuoted(cp) {
1611
- switch (cp) {
1612
- case $.APOSTROPHE: {
1613
- this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1614
- break;
1615
- }
1616
- case $.AMPERSAND: {
1617
- this._startCharacterReference();
1618
- break;
1619
- }
1620
- case $.NULL: {
1621
- this._err(ERR.unexpectedNullCharacter);
1622
- this.currentAttr.value += REPLACEMENT_CHARACTER;
1623
- break;
1624
- }
1625
- case $.EOF: {
1626
- this._err(ERR.eofInTag);
1627
- this._emitEOFToken();
1628
- break;
1629
- }
1630
- default: {
1631
- this.currentAttr.value += String.fromCodePoint(cp);
1632
- }
1633
- }
1634
- }
1635
- // Attribute value (unquoted) state
1636
- //------------------------------------------------------------------
1637
- _stateAttributeValueUnquoted(cp) {
1638
- switch (cp) {
1639
- case $.SPACE:
1640
- case $.LINE_FEED:
1641
- case $.TABULATION:
1642
- case $.FORM_FEED: {
1643
- this._leaveAttrValue();
1644
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1645
- break;
1646
- }
1647
- case $.AMPERSAND: {
1648
- this._startCharacterReference();
1649
- break;
1650
- }
1651
- case $.GREATER_THAN_SIGN: {
1652
- this._leaveAttrValue();
1653
- this.state = State.DATA;
1654
- this.emitCurrentTagToken();
1655
- break;
1656
- }
1657
- case $.NULL: {
1658
- this._err(ERR.unexpectedNullCharacter);
1659
- this.currentAttr.value += REPLACEMENT_CHARACTER;
1660
- break;
1661
- }
1662
- case $.QUOTATION_MARK:
1663
- case $.APOSTROPHE:
1664
- case $.LESS_THAN_SIGN:
1665
- case $.EQUALS_SIGN:
1666
- case $.GRAVE_ACCENT: {
1667
- this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);
1668
- this.currentAttr.value += String.fromCodePoint(cp);
1669
- break;
1670
- }
1671
- case $.EOF: {
1672
- this._err(ERR.eofInTag);
1673
- this._emitEOFToken();
1674
- break;
1675
- }
1676
- default: {
1677
- this.currentAttr.value += String.fromCodePoint(cp);
1678
- }
1679
- }
1680
- }
1681
- // After attribute value (quoted) state
1682
- //------------------------------------------------------------------
1683
- _stateAfterAttributeValueQuoted(cp) {
1684
- switch (cp) {
1685
- case $.SPACE:
1686
- case $.LINE_FEED:
1687
- case $.TABULATION:
1688
- case $.FORM_FEED: {
1689
- this._leaveAttrValue();
1690
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1691
- break;
1692
- }
1693
- case $.SOLIDUS: {
1694
- this._leaveAttrValue();
1695
- this.state = State.SELF_CLOSING_START_TAG;
1696
- break;
1697
- }
1698
- case $.GREATER_THAN_SIGN: {
1699
- this._leaveAttrValue();
1700
- this.state = State.DATA;
1701
- this.emitCurrentTagToken();
1702
- break;
1703
- }
1704
- case $.EOF: {
1705
- this._err(ERR.eofInTag);
1706
- this._emitEOFToken();
1707
- break;
1708
- }
1709
- default: {
1710
- this._err(ERR.missingWhitespaceBetweenAttributes);
1711
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1712
- this._stateBeforeAttributeName(cp);
1713
- }
1714
- }
1715
- }
1716
- // Self-closing start tag state
1717
- //------------------------------------------------------------------
1718
- _stateSelfClosingStartTag(cp) {
1719
- switch (cp) {
1720
- case $.GREATER_THAN_SIGN: {
1721
- const token = this.currentToken;
1722
- token.selfClosing = true;
1723
- this.state = State.DATA;
1724
- this.emitCurrentTagToken();
1725
- break;
1726
- }
1727
- case $.EOF: {
1728
- this._err(ERR.eofInTag);
1729
- this._emitEOFToken();
1730
- break;
1731
- }
1732
- default: {
1733
- this._err(ERR.unexpectedSolidusInTag);
1734
- this.state = State.BEFORE_ATTRIBUTE_NAME;
1735
- this._stateBeforeAttributeName(cp);
1736
- }
1737
- }
1738
- }
1739
- // Bogus comment state
1740
- //------------------------------------------------------------------
1741
- _stateBogusComment(cp) {
1742
- const token = this.currentToken;
1743
- switch (cp) {
1744
- case $.GREATER_THAN_SIGN: {
1745
- this.state = State.DATA;
1746
- this.emitCurrentComment(token);
1747
- break;
1748
- }
1749
- case $.EOF: {
1750
- this.emitCurrentComment(token);
1751
- this._emitEOFToken();
1752
- break;
1753
- }
1754
- case $.NULL: {
1755
- this._err(ERR.unexpectedNullCharacter);
1756
- token.data += REPLACEMENT_CHARACTER;
1757
- break;
1758
- }
1759
- default: {
1760
- token.data += String.fromCodePoint(cp);
1761
- }
1762
- }
1763
- }
1764
- // Markup declaration open state
1765
- //------------------------------------------------------------------
1766
- _stateMarkupDeclarationOpen(cp) {
1767
- if (this._consumeSequenceIfMatch($$.DASH_DASH, true)) {
1768
- this._createCommentToken($$.DASH_DASH.length + 1);
1769
- this.state = State.COMMENT_START;
1770
- }
1771
- else if (this._consumeSequenceIfMatch($$.DOCTYPE, false)) {
1772
- // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.
1773
- this.currentLocation = this.getCurrentLocation($$.DOCTYPE.length + 1);
1774
- this.state = State.DOCTYPE;
1775
- }
1776
- else if (this._consumeSequenceIfMatch($$.CDATA_START, true)) {
1777
- if (this.inForeignNode) {
1778
- this.state = State.CDATA_SECTION;
1779
- }
1780
- else {
1781
- this._err(ERR.cdataInHtmlContent);
1782
- this._createCommentToken($$.CDATA_START.length + 1);
1783
- this.currentToken.data = '[CDATA[';
1784
- this.state = State.BOGUS_COMMENT;
1785
- }
1786
- }
1787
- //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup
1788
- //results are no longer valid and we will need to start over.
1789
- else if (!this._ensureHibernation()) {
1790
- this._err(ERR.incorrectlyOpenedComment);
1791
- this._createCommentToken(2);
1792
- this.state = State.BOGUS_COMMENT;
1793
- this._stateBogusComment(cp);
1794
- }
1795
- }
1796
- // Comment start state
1797
- //------------------------------------------------------------------
1798
- _stateCommentStart(cp) {
1799
- switch (cp) {
1800
- case $.HYPHEN_MINUS: {
1801
- this.state = State.COMMENT_START_DASH;
1802
- break;
1803
- }
1804
- case $.GREATER_THAN_SIGN: {
1805
- this._err(ERR.abruptClosingOfEmptyComment);
1806
- this.state = State.DATA;
1807
- const token = this.currentToken;
1808
- this.emitCurrentComment(token);
1809
- break;
1810
- }
1811
- default: {
1812
- this.state = State.COMMENT;
1813
- this._stateComment(cp);
1814
- }
1815
- }
1816
- }
1817
- // Comment start dash state
1818
- //------------------------------------------------------------------
1819
- _stateCommentStartDash(cp) {
1820
- const token = this.currentToken;
1821
- switch (cp) {
1822
- case $.HYPHEN_MINUS: {
1823
- this.state = State.COMMENT_END;
1824
- break;
1825
- }
1826
- case $.GREATER_THAN_SIGN: {
1827
- this._err(ERR.abruptClosingOfEmptyComment);
1828
- this.state = State.DATA;
1829
- this.emitCurrentComment(token);
1830
- break;
1831
- }
1832
- case $.EOF: {
1833
- this._err(ERR.eofInComment);
1834
- this.emitCurrentComment(token);
1835
- this._emitEOFToken();
1836
- break;
1837
- }
1838
- default: {
1839
- token.data += '-';
1840
- this.state = State.COMMENT;
1841
- this._stateComment(cp);
1842
- }
1843
- }
1844
- }
1845
- // Comment state
1846
- //------------------------------------------------------------------
1847
- _stateComment(cp) {
1848
- const token = this.currentToken;
1849
- switch (cp) {
1850
- case $.HYPHEN_MINUS: {
1851
- this.state = State.COMMENT_END_DASH;
1852
- break;
1853
- }
1854
- case $.LESS_THAN_SIGN: {
1855
- token.data += '<';
1856
- this.state = State.COMMENT_LESS_THAN_SIGN;
1857
- break;
1858
- }
1859
- case $.NULL: {
1860
- this._err(ERR.unexpectedNullCharacter);
1861
- token.data += REPLACEMENT_CHARACTER;
1862
- break;
1863
- }
1864
- case $.EOF: {
1865
- this._err(ERR.eofInComment);
1866
- this.emitCurrentComment(token);
1867
- this._emitEOFToken();
1868
- break;
1869
- }
1870
- default: {
1871
- token.data += String.fromCodePoint(cp);
1872
- }
1873
- }
1874
- }
1875
- // Comment less-than sign state
1876
- //------------------------------------------------------------------
1877
- _stateCommentLessThanSign(cp) {
1878
- const token = this.currentToken;
1879
- switch (cp) {
1880
- case $.EXCLAMATION_MARK: {
1881
- token.data += '!';
1882
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG;
1883
- break;
1884
- }
1885
- case $.LESS_THAN_SIGN: {
1886
- token.data += '<';
1887
- break;
1888
- }
1889
- default: {
1890
- this.state = State.COMMENT;
1891
- this._stateComment(cp);
1892
- }
1893
- }
1894
- }
1895
- // Comment less-than sign bang state
1896
- //------------------------------------------------------------------
1897
- _stateCommentLessThanSignBang(cp) {
1898
- if (cp === $.HYPHEN_MINUS) {
1899
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;
1900
- }
1901
- else {
1902
- this.state = State.COMMENT;
1903
- this._stateComment(cp);
1904
- }
1905
- }
1906
- // Comment less-than sign bang dash state
1907
- //------------------------------------------------------------------
1908
- _stateCommentLessThanSignBangDash(cp) {
1909
- if (cp === $.HYPHEN_MINUS) {
1910
- this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;
1911
- }
1912
- else {
1913
- this.state = State.COMMENT_END_DASH;
1914
- this._stateCommentEndDash(cp);
1915
- }
1916
- }
1917
- // Comment less-than sign bang dash dash state
1918
- //------------------------------------------------------------------
1919
- _stateCommentLessThanSignBangDashDash(cp) {
1920
- if (cp !== $.GREATER_THAN_SIGN && cp !== $.EOF) {
1921
- this._err(ERR.nestedComment);
1922
- }
1923
- this.state = State.COMMENT_END;
1924
- this._stateCommentEnd(cp);
1925
- }
1926
- // Comment end dash state
1927
- //------------------------------------------------------------------
1928
- _stateCommentEndDash(cp) {
1929
- const token = this.currentToken;
1930
- switch (cp) {
1931
- case $.HYPHEN_MINUS: {
1932
- this.state = State.COMMENT_END;
1933
- break;
1934
- }
1935
- case $.EOF: {
1936
- this._err(ERR.eofInComment);
1937
- this.emitCurrentComment(token);
1938
- this._emitEOFToken();
1939
- break;
1940
- }
1941
- default: {
1942
- token.data += '-';
1943
- this.state = State.COMMENT;
1944
- this._stateComment(cp);
1945
- }
1946
- }
1947
- }
1948
- // Comment end state
1949
- //------------------------------------------------------------------
1950
- _stateCommentEnd(cp) {
1951
- const token = this.currentToken;
1952
- switch (cp) {
1953
- case $.GREATER_THAN_SIGN: {
1954
- this.state = State.DATA;
1955
- this.emitCurrentComment(token);
1956
- break;
1957
- }
1958
- case $.EXCLAMATION_MARK: {
1959
- this.state = State.COMMENT_END_BANG;
1960
- break;
1961
- }
1962
- case $.HYPHEN_MINUS: {
1963
- token.data += '-';
1964
- break;
1965
- }
1966
- case $.EOF: {
1967
- this._err(ERR.eofInComment);
1968
- this.emitCurrentComment(token);
1969
- this._emitEOFToken();
1970
- break;
1971
- }
1972
- default: {
1973
- token.data += '--';
1974
- this.state = State.COMMENT;
1975
- this._stateComment(cp);
1976
- }
1977
- }
1978
- }
1979
- // Comment end bang state
1980
- //------------------------------------------------------------------
1981
- _stateCommentEndBang(cp) {
1982
- const token = this.currentToken;
1983
- switch (cp) {
1984
- case $.HYPHEN_MINUS: {
1985
- token.data += '--!';
1986
- this.state = State.COMMENT_END_DASH;
1987
- break;
1988
- }
1989
- case $.GREATER_THAN_SIGN: {
1990
- this._err(ERR.incorrectlyClosedComment);
1991
- this.state = State.DATA;
1992
- this.emitCurrentComment(token);
1993
- break;
1994
- }
1995
- case $.EOF: {
1996
- this._err(ERR.eofInComment);
1997
- this.emitCurrentComment(token);
1998
- this._emitEOFToken();
1999
- break;
2000
- }
2001
- default: {
2002
- token.data += '--!';
2003
- this.state = State.COMMENT;
2004
- this._stateComment(cp);
2005
- }
2006
- }
2007
- }
2008
- // DOCTYPE state
2009
- //------------------------------------------------------------------
2010
- _stateDoctype(cp) {
2011
- switch (cp) {
2012
- case $.SPACE:
2013
- case $.LINE_FEED:
2014
- case $.TABULATION:
2015
- case $.FORM_FEED: {
2016
- this.state = State.BEFORE_DOCTYPE_NAME;
2017
- break;
2018
- }
2019
- case $.GREATER_THAN_SIGN: {
2020
- this.state = State.BEFORE_DOCTYPE_NAME;
2021
- this._stateBeforeDoctypeName(cp);
2022
- break;
2023
- }
2024
- case $.EOF: {
2025
- this._err(ERR.eofInDoctype);
2026
- this._createDoctypeToken(null);
2027
- const token = this.currentToken;
2028
- token.forceQuirks = true;
2029
- this.emitCurrentDoctype(token);
2030
- this._emitEOFToken();
2031
- break;
2032
- }
2033
- default: {
2034
- this._err(ERR.missingWhitespaceBeforeDoctypeName);
2035
- this.state = State.BEFORE_DOCTYPE_NAME;
2036
- this._stateBeforeDoctypeName(cp);
2037
- }
2038
- }
2039
- }
2040
- // Before DOCTYPE name state
2041
- //------------------------------------------------------------------
2042
- _stateBeforeDoctypeName(cp) {
2043
- if (isAsciiUpper(cp)) {
2044
- this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));
2045
- this.state = State.DOCTYPE_NAME;
2046
- }
2047
- else
2048
- switch (cp) {
2049
- case $.SPACE:
2050
- case $.LINE_FEED:
2051
- case $.TABULATION:
2052
- case $.FORM_FEED: {
2053
- // Ignore whitespace
2054
- break;
2055
- }
2056
- case $.NULL: {
2057
- this._err(ERR.unexpectedNullCharacter);
2058
- this._createDoctypeToken(REPLACEMENT_CHARACTER);
2059
- this.state = State.DOCTYPE_NAME;
2060
- break;
2061
- }
2062
- case $.GREATER_THAN_SIGN: {
2063
- this._err(ERR.missingDoctypeName);
2064
- this._createDoctypeToken(null);
2065
- const token = this.currentToken;
2066
- token.forceQuirks = true;
2067
- this.emitCurrentDoctype(token);
2068
- this.state = State.DATA;
2069
- break;
2070
- }
2071
- case $.EOF: {
2072
- this._err(ERR.eofInDoctype);
2073
- this._createDoctypeToken(null);
2074
- const token = this.currentToken;
2075
- token.forceQuirks = true;
2076
- this.emitCurrentDoctype(token);
2077
- this._emitEOFToken();
2078
- break;
2079
- }
2080
- default: {
2081
- this._createDoctypeToken(String.fromCodePoint(cp));
2082
- this.state = State.DOCTYPE_NAME;
2083
- }
2084
- }
2085
- }
2086
- // DOCTYPE name state
2087
- //------------------------------------------------------------------
2088
- _stateDoctypeName(cp) {
2089
- const token = this.currentToken;
2090
- switch (cp) {
2091
- case $.SPACE:
2092
- case $.LINE_FEED:
2093
- case $.TABULATION:
2094
- case $.FORM_FEED: {
2095
- this.state = State.AFTER_DOCTYPE_NAME;
2096
- break;
2097
- }
2098
- case $.GREATER_THAN_SIGN: {
2099
- this.state = State.DATA;
2100
- this.emitCurrentDoctype(token);
2101
- break;
2102
- }
2103
- case $.NULL: {
2104
- this._err(ERR.unexpectedNullCharacter);
2105
- token.name += REPLACEMENT_CHARACTER;
2106
- break;
2107
- }
2108
- case $.EOF: {
2109
- this._err(ERR.eofInDoctype);
2110
- token.forceQuirks = true;
2111
- this.emitCurrentDoctype(token);
2112
- this._emitEOFToken();
2113
- break;
2114
- }
2115
- default: {
2116
- token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
2117
- }
2118
- }
2119
- }
2120
- // After DOCTYPE name state
2121
- //------------------------------------------------------------------
2122
- _stateAfterDoctypeName(cp) {
2123
- const token = this.currentToken;
2124
- switch (cp) {
2125
- case $.SPACE:
2126
- case $.LINE_FEED:
2127
- case $.TABULATION:
2128
- case $.FORM_FEED: {
2129
- // Ignore whitespace
2130
- break;
2131
- }
2132
- case $.GREATER_THAN_SIGN: {
2133
- this.state = State.DATA;
2134
- this.emitCurrentDoctype(token);
2135
- break;
2136
- }
2137
- case $.EOF: {
2138
- this._err(ERR.eofInDoctype);
2139
- token.forceQuirks = true;
2140
- this.emitCurrentDoctype(token);
2141
- this._emitEOFToken();
2142
- break;
2143
- }
2144
- default: {
2145
- if (this._consumeSequenceIfMatch($$.PUBLIC, false)) {
2146
- this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;
2147
- }
2148
- else if (this._consumeSequenceIfMatch($$.SYSTEM, false)) {
2149
- this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;
2150
- }
2151
- //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup
2152
- //results are no longer valid and we will need to start over.
2153
- else if (!this._ensureHibernation()) {
2154
- this._err(ERR.invalidCharacterSequenceAfterDoctypeName);
2155
- token.forceQuirks = true;
2156
- this.state = State.BOGUS_DOCTYPE;
2157
- this._stateBogusDoctype(cp);
2158
- }
2159
- }
2160
- }
2161
- }
2162
- // After DOCTYPE public keyword state
2163
- //------------------------------------------------------------------
2164
- _stateAfterDoctypePublicKeyword(cp) {
2165
- const token = this.currentToken;
2166
- switch (cp) {
2167
- case $.SPACE:
2168
- case $.LINE_FEED:
2169
- case $.TABULATION:
2170
- case $.FORM_FEED: {
2171
- this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
2172
- break;
2173
- }
2174
- case $.QUOTATION_MARK: {
2175
- this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
2176
- token.publicId = '';
2177
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
2178
- break;
2179
- }
2180
- case $.APOSTROPHE: {
2181
- this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
2182
- token.publicId = '';
2183
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
2184
- break;
2185
- }
2186
- case $.GREATER_THAN_SIGN: {
2187
- this._err(ERR.missingDoctypePublicIdentifier);
2188
- token.forceQuirks = true;
2189
- this.state = State.DATA;
2190
- this.emitCurrentDoctype(token);
2191
- break;
2192
- }
2193
- case $.EOF: {
2194
- this._err(ERR.eofInDoctype);
2195
- token.forceQuirks = true;
2196
- this.emitCurrentDoctype(token);
2197
- this._emitEOFToken();
2198
- break;
2199
- }
2200
- default: {
2201
- this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
2202
- token.forceQuirks = true;
2203
- this.state = State.BOGUS_DOCTYPE;
2204
- this._stateBogusDoctype(cp);
2205
- }
2206
- }
2207
- }
2208
- // Before DOCTYPE public identifier state
2209
- //------------------------------------------------------------------
2210
- _stateBeforeDoctypePublicIdentifier(cp) {
2211
- const token = this.currentToken;
2212
- switch (cp) {
2213
- case $.SPACE:
2214
- case $.LINE_FEED:
2215
- case $.TABULATION:
2216
- case $.FORM_FEED: {
2217
- // Ignore whitespace
2218
- break;
2219
- }
2220
- case $.QUOTATION_MARK: {
2221
- token.publicId = '';
2222
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
2223
- break;
2224
- }
2225
- case $.APOSTROPHE: {
2226
- token.publicId = '';
2227
- this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
2228
- break;
2229
- }
2230
- case $.GREATER_THAN_SIGN: {
2231
- this._err(ERR.missingDoctypePublicIdentifier);
2232
- token.forceQuirks = true;
2233
- this.state = State.DATA;
2234
- this.emitCurrentDoctype(token);
2235
- break;
2236
- }
2237
- case $.EOF: {
2238
- this._err(ERR.eofInDoctype);
2239
- token.forceQuirks = true;
2240
- this.emitCurrentDoctype(token);
2241
- this._emitEOFToken();
2242
- break;
2243
- }
2244
- default: {
2245
- this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
2246
- token.forceQuirks = true;
2247
- this.state = State.BOGUS_DOCTYPE;
2248
- this._stateBogusDoctype(cp);
2249
- }
2250
- }
2251
- }
2252
- // DOCTYPE public identifier (double-quoted) state
2253
- //------------------------------------------------------------------
2254
- _stateDoctypePublicIdentifierDoubleQuoted(cp) {
2255
- const token = this.currentToken;
2256
- switch (cp) {
2257
- case $.QUOTATION_MARK: {
2258
- this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
2259
- break;
2260
- }
2261
- case $.NULL: {
2262
- this._err(ERR.unexpectedNullCharacter);
2263
- token.publicId += REPLACEMENT_CHARACTER;
2264
- break;
2265
- }
2266
- case $.GREATER_THAN_SIGN: {
2267
- this._err(ERR.abruptDoctypePublicIdentifier);
2268
- token.forceQuirks = true;
2269
- this.emitCurrentDoctype(token);
2270
- this.state = State.DATA;
2271
- break;
2272
- }
2273
- case $.EOF: {
2274
- this._err(ERR.eofInDoctype);
2275
- token.forceQuirks = true;
2276
- this.emitCurrentDoctype(token);
2277
- this._emitEOFToken();
2278
- break;
2279
- }
2280
- default: {
2281
- token.publicId += String.fromCodePoint(cp);
2282
- }
2283
- }
2284
- }
2285
- // DOCTYPE public identifier (single-quoted) state
2286
- //------------------------------------------------------------------
2287
- _stateDoctypePublicIdentifierSingleQuoted(cp) {
2288
- const token = this.currentToken;
2289
- switch (cp) {
2290
- case $.APOSTROPHE: {
2291
- this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
2292
- break;
2293
- }
2294
- case $.NULL: {
2295
- this._err(ERR.unexpectedNullCharacter);
2296
- token.publicId += REPLACEMENT_CHARACTER;
2297
- break;
2298
- }
2299
- case $.GREATER_THAN_SIGN: {
2300
- this._err(ERR.abruptDoctypePublicIdentifier);
2301
- token.forceQuirks = true;
2302
- this.emitCurrentDoctype(token);
2303
- this.state = State.DATA;
2304
- break;
2305
- }
2306
- case $.EOF: {
2307
- this._err(ERR.eofInDoctype);
2308
- token.forceQuirks = true;
2309
- this.emitCurrentDoctype(token);
2310
- this._emitEOFToken();
2311
- break;
2312
- }
2313
- default: {
2314
- token.publicId += String.fromCodePoint(cp);
2315
- }
2316
- }
2317
- }
2318
- // After DOCTYPE public identifier state
2319
- //------------------------------------------------------------------
2320
- _stateAfterDoctypePublicIdentifier(cp) {
2321
- const token = this.currentToken;
2322
- switch (cp) {
2323
- case $.SPACE:
2324
- case $.LINE_FEED:
2325
- case $.TABULATION:
2326
- case $.FORM_FEED: {
2327
- this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
2328
- break;
2329
- }
2330
- case $.GREATER_THAN_SIGN: {
2331
- this.state = State.DATA;
2332
- this.emitCurrentDoctype(token);
2333
- break;
2334
- }
2335
- case $.QUOTATION_MARK: {
2336
- this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
2337
- token.systemId = '';
2338
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2339
- break;
2340
- }
2341
- case $.APOSTROPHE: {
2342
- this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
2343
- token.systemId = '';
2344
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2345
- break;
2346
- }
2347
- case $.EOF: {
2348
- this._err(ERR.eofInDoctype);
2349
- token.forceQuirks = true;
2350
- this.emitCurrentDoctype(token);
2351
- this._emitEOFToken();
2352
- break;
2353
- }
2354
- default: {
2355
- this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2356
- token.forceQuirks = true;
2357
- this.state = State.BOGUS_DOCTYPE;
2358
- this._stateBogusDoctype(cp);
2359
- }
2360
- }
2361
- }
2362
- // Between DOCTYPE public and system identifiers state
2363
- //------------------------------------------------------------------
2364
- _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {
2365
- const token = this.currentToken;
2366
- switch (cp) {
2367
- case $.SPACE:
2368
- case $.LINE_FEED:
2369
- case $.TABULATION:
2370
- case $.FORM_FEED: {
2371
- // Ignore whitespace
2372
- break;
2373
- }
2374
- case $.GREATER_THAN_SIGN: {
2375
- this.emitCurrentDoctype(token);
2376
- this.state = State.DATA;
2377
- break;
2378
- }
2379
- case $.QUOTATION_MARK: {
2380
- token.systemId = '';
2381
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2382
- break;
2383
- }
2384
- case $.APOSTROPHE: {
2385
- token.systemId = '';
2386
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2387
- break;
2388
- }
2389
- case $.EOF: {
2390
- this._err(ERR.eofInDoctype);
2391
- token.forceQuirks = true;
2392
- this.emitCurrentDoctype(token);
2393
- this._emitEOFToken();
2394
- break;
2395
- }
2396
- default: {
2397
- this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2398
- token.forceQuirks = true;
2399
- this.state = State.BOGUS_DOCTYPE;
2400
- this._stateBogusDoctype(cp);
2401
- }
2402
- }
2403
- }
2404
- // After DOCTYPE system keyword state
2405
- //------------------------------------------------------------------
2406
- _stateAfterDoctypeSystemKeyword(cp) {
2407
- const token = this.currentToken;
2408
- switch (cp) {
2409
- case $.SPACE:
2410
- case $.LINE_FEED:
2411
- case $.TABULATION:
2412
- case $.FORM_FEED: {
2413
- this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
2414
- break;
2415
- }
2416
- case $.QUOTATION_MARK: {
2417
- this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
2418
- token.systemId = '';
2419
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2420
- break;
2421
- }
2422
- case $.APOSTROPHE: {
2423
- this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
2424
- token.systemId = '';
2425
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2426
- break;
2427
- }
2428
- case $.GREATER_THAN_SIGN: {
2429
- this._err(ERR.missingDoctypeSystemIdentifier);
2430
- token.forceQuirks = true;
2431
- this.state = State.DATA;
2432
- this.emitCurrentDoctype(token);
2433
- break;
2434
- }
2435
- case $.EOF: {
2436
- this._err(ERR.eofInDoctype);
2437
- token.forceQuirks = true;
2438
- this.emitCurrentDoctype(token);
2439
- this._emitEOFToken();
2440
- break;
2441
- }
2442
- default: {
2443
- this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2444
- token.forceQuirks = true;
2445
- this.state = State.BOGUS_DOCTYPE;
2446
- this._stateBogusDoctype(cp);
2447
- }
2448
- }
2449
- }
2450
- // Before DOCTYPE system identifier state
2451
- //------------------------------------------------------------------
2452
- _stateBeforeDoctypeSystemIdentifier(cp) {
2453
- const token = this.currentToken;
2454
- switch (cp) {
2455
- case $.SPACE:
2456
- case $.LINE_FEED:
2457
- case $.TABULATION:
2458
- case $.FORM_FEED: {
2459
- // Ignore whitespace
2460
- break;
2461
- }
2462
- case $.QUOTATION_MARK: {
2463
- token.systemId = '';
2464
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
2465
- break;
2466
- }
2467
- case $.APOSTROPHE: {
2468
- token.systemId = '';
2469
- this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
2470
- break;
2471
- }
2472
- case $.GREATER_THAN_SIGN: {
2473
- this._err(ERR.missingDoctypeSystemIdentifier);
2474
- token.forceQuirks = true;
2475
- this.state = State.DATA;
2476
- this.emitCurrentDoctype(token);
2477
- break;
2478
- }
2479
- case $.EOF: {
2480
- this._err(ERR.eofInDoctype);
2481
- token.forceQuirks = true;
2482
- this.emitCurrentDoctype(token);
2483
- this._emitEOFToken();
2484
- break;
2485
- }
2486
- default: {
2487
- this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
2488
- token.forceQuirks = true;
2489
- this.state = State.BOGUS_DOCTYPE;
2490
- this._stateBogusDoctype(cp);
2491
- }
2492
- }
2493
- }
2494
- // DOCTYPE system identifier (double-quoted) state
2495
- //------------------------------------------------------------------
2496
- _stateDoctypeSystemIdentifierDoubleQuoted(cp) {
2497
- const token = this.currentToken;
2498
- switch (cp) {
2499
- case $.QUOTATION_MARK: {
2500
- this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
2501
- break;
2502
- }
2503
- case $.NULL: {
2504
- this._err(ERR.unexpectedNullCharacter);
2505
- token.systemId += REPLACEMENT_CHARACTER;
2506
- break;
2507
- }
2508
- case $.GREATER_THAN_SIGN: {
2509
- this._err(ERR.abruptDoctypeSystemIdentifier);
2510
- token.forceQuirks = true;
2511
- this.emitCurrentDoctype(token);
2512
- this.state = State.DATA;
2513
- break;
2514
- }
2515
- case $.EOF: {
2516
- this._err(ERR.eofInDoctype);
2517
- token.forceQuirks = true;
2518
- this.emitCurrentDoctype(token);
2519
- this._emitEOFToken();
2520
- break;
2521
- }
2522
- default: {
2523
- token.systemId += String.fromCodePoint(cp);
2524
- }
2525
- }
2526
- }
2527
- // DOCTYPE system identifier (single-quoted) state
2528
- //------------------------------------------------------------------
2529
- _stateDoctypeSystemIdentifierSingleQuoted(cp) {
2530
- const token = this.currentToken;
2531
- switch (cp) {
2532
- case $.APOSTROPHE: {
2533
- this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
2534
- break;
2535
- }
2536
- case $.NULL: {
2537
- this._err(ERR.unexpectedNullCharacter);
2538
- token.systemId += REPLACEMENT_CHARACTER;
2539
- break;
2540
- }
2541
- case $.GREATER_THAN_SIGN: {
2542
- this._err(ERR.abruptDoctypeSystemIdentifier);
2543
- token.forceQuirks = true;
2544
- this.emitCurrentDoctype(token);
2545
- this.state = State.DATA;
2546
- break;
2547
- }
2548
- case $.EOF: {
2549
- this._err(ERR.eofInDoctype);
2550
- token.forceQuirks = true;
2551
- this.emitCurrentDoctype(token);
2552
- this._emitEOFToken();
2553
- break;
2554
- }
2555
- default: {
2556
- token.systemId += String.fromCodePoint(cp);
2557
- }
2558
- }
2559
- }
2560
- // After DOCTYPE system identifier state
2561
- //------------------------------------------------------------------
2562
- _stateAfterDoctypeSystemIdentifier(cp) {
2563
- const token = this.currentToken;
2564
- switch (cp) {
2565
- case $.SPACE:
2566
- case $.LINE_FEED:
2567
- case $.TABULATION:
2568
- case $.FORM_FEED: {
2569
- // Ignore whitespace
2570
- break;
2571
- }
2572
- case $.GREATER_THAN_SIGN: {
2573
- this.emitCurrentDoctype(token);
2574
- this.state = State.DATA;
2575
- break;
2576
- }
2577
- case $.EOF: {
2578
- this._err(ERR.eofInDoctype);
2579
- token.forceQuirks = true;
2580
- this.emitCurrentDoctype(token);
2581
- this._emitEOFToken();
2582
- break;
2583
- }
2584
- default: {
2585
- this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);
2586
- this.state = State.BOGUS_DOCTYPE;
2587
- this._stateBogusDoctype(cp);
2588
- }
2589
- }
2590
- }
2591
- // Bogus DOCTYPE state
2592
- //------------------------------------------------------------------
2593
- _stateBogusDoctype(cp) {
2594
- const token = this.currentToken;
2595
- switch (cp) {
2596
- case $.GREATER_THAN_SIGN: {
2597
- this.emitCurrentDoctype(token);
2598
- this.state = State.DATA;
2599
- break;
2600
- }
2601
- case $.NULL: {
2602
- this._err(ERR.unexpectedNullCharacter);
2603
- break;
2604
- }
2605
- case $.EOF: {
2606
- this.emitCurrentDoctype(token);
2607
- this._emitEOFToken();
2608
- break;
2609
- }
2610
- default:
2611
- // Do nothing
2612
- }
2613
- }
2614
- // CDATA section state
2615
- //------------------------------------------------------------------
2616
- _stateCdataSection(cp) {
2617
- switch (cp) {
2618
- case $.RIGHT_SQUARE_BRACKET: {
2619
- this.state = State.CDATA_SECTION_BRACKET;
2620
- break;
2621
- }
2622
- case $.EOF: {
2623
- this._err(ERR.eofInCdata);
2624
- this._emitEOFToken();
2625
- break;
2626
- }
2627
- default: {
2628
- this._emitCodePoint(cp);
2629
- }
2630
- }
2631
- }
2632
- // CDATA section bracket state
2633
- //------------------------------------------------------------------
2634
- _stateCdataSectionBracket(cp) {
2635
- if (cp === $.RIGHT_SQUARE_BRACKET) {
2636
- this.state = State.CDATA_SECTION_END;
2637
- }
2638
- else {
2639
- this._emitChars(']');
2640
- this.state = State.CDATA_SECTION;
2641
- this._stateCdataSection(cp);
2642
- }
2643
- }
2644
- // CDATA section end state
2645
- //------------------------------------------------------------------
2646
- _stateCdataSectionEnd(cp) {
2647
- switch (cp) {
2648
- case $.GREATER_THAN_SIGN: {
2649
- this.state = State.DATA;
2650
- break;
2651
- }
2652
- case $.RIGHT_SQUARE_BRACKET: {
2653
- this._emitChars(']');
2654
- break;
2655
- }
2656
- default: {
2657
- this._emitChars(']]');
2658
- this.state = State.CDATA_SECTION;
2659
- this._stateCdataSection(cp);
2660
- }
2661
- }
2662
- }
2663
- // Character reference state
2664
- //------------------------------------------------------------------
2665
- _stateCharacterReference() {
2666
- let length = this.entityDecoder.write(this.preprocessor.html, this.preprocessor.pos);
2667
- if (length < 0) {
2668
- if (this.preprocessor.lastChunkWritten) {
2669
- length = this.entityDecoder.end();
2670
- }
2671
- else {
2672
- // Wait for the rest of the entity.
2673
- this.active = false;
2674
- // Mark the entire buffer as read.
2675
- this.preprocessor.pos = this.preprocessor.html.length - 1;
2676
- this.consumedAfterSnapshot = 0;
2677
- this.preprocessor.endOfChunkHit = true;
2678
- return;
2679
- }
2680
- }
2681
- if (length === 0) {
2682
- // This was not a valid entity. Go back to the beginning, and
2683
- // figure out what to do.
2684
- this.preprocessor.pos = this.entityStartPos;
2685
- this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);
2686
- this.state =
2687
- !this._isCharacterReferenceInAttribute() && isAsciiAlphaNumeric(this.preprocessor.peek(1))
2688
- ? State.AMBIGUOUS_AMPERSAND
2689
- : this.returnState;
2690
- }
2691
- else {
2692
- // We successfully parsed an entity. Switch to the return state.
2693
- this.state = this.returnState;
2694
- }
2695
- }
2696
- // Ambiguos ampersand state
2697
- //------------------------------------------------------------------
2698
- _stateAmbiguousAmpersand(cp) {
2699
- if (isAsciiAlphaNumeric(cp)) {
2700
- this._flushCodePointConsumedAsCharacterReference(cp);
2701
- }
2702
- else {
2703
- if (cp === $.SEMICOLON) {
2704
- this._err(ERR.unknownNamedCharacterReference);
2705
- }
2706
- this.state = this.returnState;
2707
- this._callState(cp);
2708
- }
2709
- }
2710
- }