ece-docs-components 1.0.39 → 1.0.41

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 (359) hide show
  1. package/dist/cjs/_virtual/Parser.js +6 -0
  2. package/dist/cjs/_virtual/Parser.js.map +1 -0
  3. package/dist/cjs/_virtual/Tokenizer.js +6 -0
  4. package/dist/cjs/_virtual/Tokenizer.js.map +1 -0
  5. package/dist/cjs/_virtual/attributes-to-props.js +6 -0
  6. package/dist/cjs/_virtual/attributes-to-props.js.map +1 -0
  7. package/dist/cjs/_virtual/decode-codepoint.js +6 -0
  8. package/dist/cjs/_virtual/decode-codepoint.js.map +1 -0
  9. package/dist/cjs/_virtual/decode-data-html.js +6 -0
  10. package/dist/cjs/_virtual/decode-data-html.js.map +1 -0
  11. package/dist/cjs/_virtual/decode-data-html2.js +6 -0
  12. package/dist/cjs/_virtual/decode-data-html2.js.map +1 -0
  13. package/dist/cjs/_virtual/decode-data-xml.js +6 -0
  14. package/dist/cjs/_virtual/decode-data-xml.js.map +1 -0
  15. package/dist/cjs/_virtual/decode-data-xml2.js +6 -0
  16. package/dist/cjs/_virtual/decode-data-xml2.js.map +1 -0
  17. package/dist/cjs/_virtual/decode.js +6 -0
  18. package/dist/cjs/_virtual/decode.js.map +1 -0
  19. package/dist/cjs/_virtual/decode2.js +6 -0
  20. package/dist/cjs/_virtual/decode2.js.map +1 -0
  21. package/dist/cjs/_virtual/decode_codepoint.js +6 -0
  22. package/dist/cjs/_virtual/decode_codepoint.js.map +1 -0
  23. package/dist/cjs/_virtual/dom-to-react.js +6 -0
  24. package/dist/cjs/_virtual/dom-to-react.js.map +1 -0
  25. package/dist/cjs/_virtual/encode-html.js +6 -0
  26. package/dist/cjs/_virtual/encode-html.js.map +1 -0
  27. package/dist/cjs/_virtual/encode.js +6 -0
  28. package/dist/cjs/_virtual/encode.js.map +1 -0
  29. package/dist/cjs/_virtual/escape.js +6 -0
  30. package/dist/cjs/_virtual/escape.js.map +1 -0
  31. package/dist/cjs/_virtual/feeds.js +6 -0
  32. package/dist/cjs/_virtual/feeds.js.map +1 -0
  33. package/dist/cjs/_virtual/foreignNames.js +6 -0
  34. package/dist/cjs/_virtual/foreignNames.js.map +1 -0
  35. package/dist/cjs/_virtual/helpers.js +6 -0
  36. package/dist/cjs/_virtual/helpers.js.map +1 -0
  37. package/dist/cjs/_virtual/html-to-dom.js +6 -0
  38. package/dist/cjs/_virtual/html-to-dom.js.map +1 -0
  39. package/dist/cjs/_virtual/index.js +4 -4
  40. package/dist/cjs/_virtual/index10.js +6 -0
  41. package/dist/cjs/_virtual/index10.js.map +1 -0
  42. package/dist/cjs/_virtual/index11.js +6 -0
  43. package/dist/cjs/_virtual/index11.js.map +1 -0
  44. package/dist/cjs/_virtual/index2.js +2 -4
  45. package/dist/cjs/_virtual/index2.js.map +1 -1
  46. package/dist/cjs/_virtual/index3.js +2 -2
  47. package/dist/cjs/_virtual/index4.js +2 -2
  48. package/dist/cjs/_virtual/index5.js +2 -2
  49. package/dist/cjs/_virtual/index6.js +2 -2
  50. package/dist/cjs/_virtual/index7.js +6 -0
  51. package/dist/cjs/_virtual/index7.js.map +1 -0
  52. package/dist/cjs/_virtual/index8.js +6 -0
  53. package/dist/cjs/_virtual/index8.js.map +1 -0
  54. package/dist/cjs/_virtual/index9.js +6 -0
  55. package/dist/cjs/_virtual/index9.js.map +1 -0
  56. package/dist/cjs/_virtual/legacy.js +6 -0
  57. package/dist/cjs/_virtual/legacy.js.map +1 -0
  58. package/dist/cjs/_virtual/manipulation.js +6 -0
  59. package/dist/cjs/_virtual/manipulation.js.map +1 -0
  60. package/dist/cjs/_virtual/node.js +6 -0
  61. package/dist/cjs/_virtual/node.js.map +1 -0
  62. package/dist/cjs/_virtual/possibleStandardNamesOptimized.js +6 -0
  63. package/dist/cjs/_virtual/possibleStandardNamesOptimized.js.map +1 -0
  64. package/dist/cjs/_virtual/querying.js +6 -0
  65. package/dist/cjs/_virtual/querying.js.map +1 -0
  66. package/dist/cjs/_virtual/stringify.js +6 -0
  67. package/dist/cjs/_virtual/stringify.js.map +1 -0
  68. package/dist/cjs/_virtual/traversal.js +6 -0
  69. package/dist/cjs/_virtual/traversal.js.map +1 -0
  70. package/dist/cjs/_virtual/types.js +6 -0
  71. package/dist/cjs/_virtual/types.js.map +1 -0
  72. package/dist/cjs/_virtual/utilities.js +6 -0
  73. package/dist/cjs/_virtual/utilities.js.map +1 -0
  74. package/dist/cjs/_virtual/utilities2.js +6 -0
  75. package/dist/cjs/_virtual/utilities2.js.map +1 -0
  76. package/dist/cjs/_virtual/utilities3.js +6 -0
  77. package/dist/cjs/_virtual/utilities3.js.map +1 -0
  78. package/dist/cjs/components/Alert.js +2 -0
  79. package/dist/cjs/components/Alert.js.map +1 -1
  80. package/dist/cjs/components/Breadcrumb.js +4 -0
  81. package/dist/cjs/components/Breadcrumb.js.map +1 -1
  82. package/dist/cjs/components/Modal.js +7 -4
  83. package/dist/cjs/components/Modal.js.map +1 -1
  84. package/dist/cjs/components/Progress.js +9 -5
  85. package/dist/cjs/components/Progress.js.map +1 -1
  86. package/dist/cjs/components/Sidebar.js +1 -1
  87. package/dist/cjs/components/Sidebar.js.map +1 -1
  88. package/dist/cjs/components/StatusBar.js +7 -1
  89. package/dist/cjs/components/StatusBar.js.map +1 -1
  90. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js +116 -0
  91. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  92. package/dist/cjs/node_modules/dom-serializer/lib/index.js +245 -0
  93. package/dist/cjs/node_modules/dom-serializer/lib/index.js.map +1 -0
  94. package/dist/cjs/node_modules/domelementtype/lib/index.js +70 -0
  95. package/dist/cjs/node_modules/domelementtype/lib/index.js.map +1 -0
  96. package/dist/cjs/node_modules/domhandler/lib/index.js +182 -0
  97. package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -0
  98. package/dist/cjs/node_modules/domhandler/lib/node.js +488 -0
  99. package/dist/cjs/node_modules/domhandler/lib/node.js.map +1 -0
  100. package/dist/cjs/node_modules/domutils/lib/feeds.js +205 -0
  101. package/dist/cjs/node_modules/domutils/lib/feeds.js.map +1 -0
  102. package/dist/cjs/node_modules/domutils/lib/helpers.js +156 -0
  103. package/dist/cjs/node_modules/domutils/lib/helpers.js.map +1 -0
  104. package/dist/cjs/node_modules/domutils/lib/index.js +56 -0
  105. package/dist/cjs/node_modules/domutils/lib/index.js.map +1 -0
  106. package/dist/cjs/node_modules/domutils/lib/legacy.js +183 -0
  107. package/dist/cjs/node_modules/domutils/lib/legacy.js.map +1 -0
  108. package/dist/cjs/node_modules/domutils/lib/manipulation.js +155 -0
  109. package/dist/cjs/node_modules/domutils/lib/manipulation.js.map +1 -0
  110. package/dist/cjs/node_modules/domutils/lib/querying.js +169 -0
  111. package/dist/cjs/node_modules/domutils/lib/querying.js.map +1 -0
  112. package/dist/cjs/node_modules/domutils/lib/stringify.js +107 -0
  113. package/dist/cjs/node_modules/domutils/lib/stringify.js.map +1 -0
  114. package/dist/cjs/node_modules/domutils/lib/traversal.js +139 -0
  115. package/dist/cjs/node_modules/domutils/lib/traversal.js.map +1 -0
  116. package/dist/cjs/node_modules/entities/lib/decode.js +554 -0
  117. package/dist/cjs/node_modules/entities/lib/decode.js.map +1 -0
  118. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js +91 -0
  119. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  120. package/dist/cjs/node_modules/entities/lib/encode.js +92 -0
  121. package/dist/cjs/node_modules/entities/lib/encode.js.map +1 -0
  122. package/dist/cjs/node_modules/entities/lib/escape.js +137 -0
  123. package/dist/cjs/node_modules/entities/lib/escape.js.map +1 -0
  124. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js +22 -0
  125. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  126. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js +22 -0
  127. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  128. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js +25 -0
  129. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  130. package/dist/cjs/node_modules/entities/lib/index.js +144 -0
  131. package/dist/cjs/node_modules/entities/lib/index.js.map +1 -0
  132. package/dist/cjs/node_modules/html-dom-parser/lib/index.js +47 -0
  133. package/dist/cjs/node_modules/html-dom-parser/lib/index.js.map +1 -0
  134. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +46 -0
  135. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  136. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js +32 -0
  137. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  138. package/dist/cjs/node_modules/html-dom-parser/lib/types.js +16 -0
  139. package/dist/cjs/node_modules/html-dom-parser/lib/types.js.map +1 -0
  140. package/dist/cjs/node_modules/html-react-parser/esm/index.js +10 -0
  141. package/dist/cjs/node_modules/html-react-parser/esm/index.js.map +1 -0
  142. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js +89 -0
  143. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  144. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js +138 -0
  145. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  146. package/dist/cjs/node_modules/html-react-parser/lib/index.js +55 -0
  147. package/dist/cjs/node_modules/html-react-parser/lib/index.js.map +1 -0
  148. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js +121 -0
  149. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  150. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js +542 -0
  151. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  152. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +805 -0
  153. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  154. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js +143 -0
  155. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  156. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +92 -0
  157. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  158. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +529 -0
  159. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  160. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +23 -0
  161. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  162. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +23 -0
  163. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  164. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js +274 -0
  165. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  166. package/dist/cjs/node_modules/react-property/lib/index.js +534 -0
  167. package/dist/cjs/node_modules/react-property/lib/index.js.map +1 -0
  168. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js +507 -0
  169. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  170. package/dist/cjs/node_modules/style-to-js/cjs/index.js +40 -0
  171. package/dist/cjs/node_modules/style-to-js/cjs/index.js.map +1 -0
  172. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js +60 -0
  173. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  174. package/dist/cjs/node_modules/style-to-object/cjs/index.js +58 -0
  175. package/dist/cjs/node_modules/style-to-object/cjs/index.js.map +1 -0
  176. package/dist/esm/_virtual/Parser.js +4 -0
  177. package/dist/esm/_virtual/Parser.js.map +1 -0
  178. package/dist/esm/_virtual/Tokenizer.js +4 -0
  179. package/dist/esm/_virtual/Tokenizer.js.map +1 -0
  180. package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
  181. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  182. package/dist/esm/_virtual/attributes-to-props.js +4 -0
  183. package/dist/esm/_virtual/attributes-to-props.js.map +1 -0
  184. package/dist/esm/_virtual/decode-codepoint.js +4 -0
  185. package/dist/esm/_virtual/decode-codepoint.js.map +1 -0
  186. package/dist/esm/_virtual/decode-data-html.js +4 -0
  187. package/dist/esm/_virtual/decode-data-html.js.map +1 -0
  188. package/dist/esm/_virtual/decode-data-html2.js +4 -0
  189. package/dist/esm/_virtual/decode-data-html2.js.map +1 -0
  190. package/dist/esm/_virtual/decode-data-xml.js +4 -0
  191. package/dist/esm/_virtual/decode-data-xml.js.map +1 -0
  192. package/dist/esm/_virtual/decode-data-xml2.js +4 -0
  193. package/dist/esm/_virtual/decode-data-xml2.js.map +1 -0
  194. package/dist/esm/_virtual/decode.js +4 -0
  195. package/dist/esm/_virtual/decode.js.map +1 -0
  196. package/dist/esm/_virtual/decode2.js +4 -0
  197. package/dist/esm/_virtual/decode2.js.map +1 -0
  198. package/dist/esm/_virtual/decode_codepoint.js +4 -0
  199. package/dist/esm/_virtual/decode_codepoint.js.map +1 -0
  200. package/dist/esm/_virtual/dom-to-react.js +4 -0
  201. package/dist/esm/_virtual/dom-to-react.js.map +1 -0
  202. package/dist/esm/_virtual/encode-html.js +4 -0
  203. package/dist/esm/_virtual/encode-html.js.map +1 -0
  204. package/dist/esm/_virtual/encode.js +4 -0
  205. package/dist/esm/_virtual/encode.js.map +1 -0
  206. package/dist/esm/_virtual/escape.js +4 -0
  207. package/dist/esm/_virtual/escape.js.map +1 -0
  208. package/dist/esm/_virtual/feeds.js +4 -0
  209. package/dist/esm/_virtual/feeds.js.map +1 -0
  210. package/dist/esm/_virtual/foreignNames.js +4 -0
  211. package/dist/esm/_virtual/foreignNames.js.map +1 -0
  212. package/dist/esm/_virtual/helpers.js +4 -0
  213. package/dist/esm/_virtual/helpers.js.map +1 -0
  214. package/dist/esm/_virtual/html-to-dom.js +4 -0
  215. package/dist/esm/_virtual/html-to-dom.js.map +1 -0
  216. package/dist/esm/_virtual/index.js +8 -0
  217. package/dist/esm/_virtual/index.js.map +1 -0
  218. package/dist/esm/_virtual/index10.js +4 -0
  219. package/dist/esm/_virtual/index10.js.map +1 -0
  220. package/dist/esm/_virtual/index11.js +4 -0
  221. package/dist/esm/_virtual/index11.js.map +1 -0
  222. package/dist/esm/_virtual/index2.js +4 -0
  223. package/dist/esm/_virtual/index2.js.map +1 -0
  224. package/dist/esm/_virtual/index3.js +4 -0
  225. package/dist/esm/_virtual/index3.js.map +1 -0
  226. package/dist/esm/_virtual/index4.js +4 -0
  227. package/dist/esm/_virtual/index4.js.map +1 -0
  228. package/dist/esm/_virtual/index5.js +4 -0
  229. package/dist/esm/_virtual/index5.js.map +1 -0
  230. package/dist/esm/_virtual/index6.js +4 -0
  231. package/dist/esm/_virtual/index6.js.map +1 -0
  232. package/dist/esm/_virtual/index7.js +4 -0
  233. package/dist/esm/_virtual/index7.js.map +1 -0
  234. package/dist/esm/_virtual/index8.js +4 -0
  235. package/dist/esm/_virtual/index8.js.map +1 -0
  236. package/dist/esm/_virtual/index9.js +4 -0
  237. package/dist/esm/_virtual/index9.js.map +1 -0
  238. package/dist/esm/_virtual/legacy.js +4 -0
  239. package/dist/esm/_virtual/legacy.js.map +1 -0
  240. package/dist/esm/_virtual/manipulation.js +4 -0
  241. package/dist/esm/_virtual/manipulation.js.map +1 -0
  242. package/dist/esm/_virtual/node.js +4 -0
  243. package/dist/esm/_virtual/node.js.map +1 -0
  244. package/dist/esm/_virtual/possibleStandardNamesOptimized.js +4 -0
  245. package/dist/esm/_virtual/possibleStandardNamesOptimized.js.map +1 -0
  246. package/dist/esm/_virtual/querying.js +4 -0
  247. package/dist/esm/_virtual/querying.js.map +1 -0
  248. package/dist/esm/_virtual/stringify.js +4 -0
  249. package/dist/esm/_virtual/stringify.js.map +1 -0
  250. package/dist/esm/_virtual/traversal.js +4 -0
  251. package/dist/esm/_virtual/traversal.js.map +1 -0
  252. package/dist/esm/_virtual/types.js +4 -0
  253. package/dist/esm/_virtual/types.js.map +1 -0
  254. package/dist/esm/_virtual/utilities.js +4 -0
  255. package/dist/esm/_virtual/utilities.js.map +1 -0
  256. package/dist/esm/_virtual/utilities2.js +4 -0
  257. package/dist/esm/_virtual/utilities2.js.map +1 -0
  258. package/dist/esm/_virtual/utilities3.js +4 -0
  259. package/dist/esm/_virtual/utilities3.js.map +1 -0
  260. package/dist/esm/components/Alert.js +2 -0
  261. package/dist/esm/components/Alert.js.map +1 -1
  262. package/dist/esm/components/Breadcrumb.js +4 -0
  263. package/dist/esm/components/Breadcrumb.js.map +1 -1
  264. package/dist/esm/components/Modal.js +7 -4
  265. package/dist/esm/components/Modal.js.map +1 -1
  266. package/dist/esm/components/Progress.d.ts +1 -0
  267. package/dist/esm/components/Progress.js +9 -5
  268. package/dist/esm/components/Progress.js.map +1 -1
  269. package/dist/esm/components/Sidebar.js +1 -1
  270. package/dist/esm/components/Sidebar.js.map +1 -1
  271. package/dist/esm/components/StatusBar.js +7 -1
  272. package/dist/esm/components/StatusBar.js.map +1 -1
  273. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js +114 -0
  274. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  275. package/dist/esm/node_modules/dom-serializer/lib/index.js +243 -0
  276. package/dist/esm/node_modules/dom-serializer/lib/index.js.map +1 -0
  277. package/dist/esm/node_modules/domelementtype/lib/index.js +68 -0
  278. package/dist/esm/node_modules/domelementtype/lib/index.js.map +1 -0
  279. package/dist/esm/node_modules/domhandler/lib/index.js +180 -0
  280. package/dist/esm/node_modules/domhandler/lib/index.js.map +1 -0
  281. package/dist/esm/node_modules/domhandler/lib/node.js +486 -0
  282. package/dist/esm/node_modules/domhandler/lib/node.js.map +1 -0
  283. package/dist/esm/node_modules/domutils/lib/feeds.js +203 -0
  284. package/dist/esm/node_modules/domutils/lib/feeds.js.map +1 -0
  285. package/dist/esm/node_modules/domutils/lib/helpers.js +154 -0
  286. package/dist/esm/node_modules/domutils/lib/helpers.js.map +1 -0
  287. package/dist/esm/node_modules/domutils/lib/index.js +54 -0
  288. package/dist/esm/node_modules/domutils/lib/index.js.map +1 -0
  289. package/dist/esm/node_modules/domutils/lib/legacy.js +181 -0
  290. package/dist/esm/node_modules/domutils/lib/legacy.js.map +1 -0
  291. package/dist/esm/node_modules/domutils/lib/manipulation.js +153 -0
  292. package/dist/esm/node_modules/domutils/lib/manipulation.js.map +1 -0
  293. package/dist/esm/node_modules/domutils/lib/querying.js +167 -0
  294. package/dist/esm/node_modules/domutils/lib/querying.js.map +1 -0
  295. package/dist/esm/node_modules/domutils/lib/stringify.js +105 -0
  296. package/dist/esm/node_modules/domutils/lib/stringify.js.map +1 -0
  297. package/dist/esm/node_modules/domutils/lib/traversal.js +137 -0
  298. package/dist/esm/node_modules/domutils/lib/traversal.js.map +1 -0
  299. package/dist/esm/node_modules/entities/lib/decode.js +552 -0
  300. package/dist/esm/node_modules/entities/lib/decode.js.map +1 -0
  301. package/dist/esm/node_modules/entities/lib/decode_codepoint.js +89 -0
  302. package/dist/esm/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  303. package/dist/esm/node_modules/entities/lib/encode.js +90 -0
  304. package/dist/esm/node_modules/entities/lib/encode.js.map +1 -0
  305. package/dist/esm/node_modules/entities/lib/escape.js +135 -0
  306. package/dist/esm/node_modules/entities/lib/escape.js.map +1 -0
  307. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js +20 -0
  308. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  309. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js +20 -0
  310. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  311. package/dist/esm/node_modules/entities/lib/generated/encode-html.js +23 -0
  312. package/dist/esm/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  313. package/dist/esm/node_modules/entities/lib/index.js +142 -0
  314. package/dist/esm/node_modules/entities/lib/index.js.map +1 -0
  315. package/dist/esm/node_modules/html-dom-parser/lib/index.js +45 -0
  316. package/dist/esm/node_modules/html-dom-parser/lib/index.js.map +1 -0
  317. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js +44 -0
  318. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  319. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js +30 -0
  320. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  321. package/dist/esm/node_modules/html-dom-parser/lib/types.js +14 -0
  322. package/dist/esm/node_modules/html-dom-parser/lib/types.js.map +1 -0
  323. package/dist/esm/node_modules/html-react-parser/esm/index.js +6 -0
  324. package/dist/esm/node_modules/html-react-parser/esm/index.js.map +1 -0
  325. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js +87 -0
  326. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  327. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js +136 -0
  328. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  329. package/dist/esm/node_modules/html-react-parser/lib/index.js +53 -0
  330. package/dist/esm/node_modules/html-react-parser/lib/index.js.map +1 -0
  331. package/dist/esm/node_modules/html-react-parser/lib/utilities.js +119 -0
  332. package/dist/esm/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  333. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js +540 -0
  334. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  335. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +803 -0
  336. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  337. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js +141 -0
  338. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  339. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +90 -0
  340. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  341. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +527 -0
  342. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  343. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +21 -0
  344. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  345. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +21 -0
  346. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  347. package/dist/esm/node_modules/inline-style-parser/cjs/index.js +272 -0
  348. package/dist/esm/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  349. package/dist/esm/node_modules/react-property/lib/index.js +532 -0
  350. package/dist/esm/node_modules/react-property/lib/index.js.map +1 -0
  351. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js +505 -0
  352. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  353. package/dist/esm/node_modules/style-to-js/cjs/index.js +38 -0
  354. package/dist/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
  355. package/dist/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
  356. package/dist/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  357. package/dist/esm/node_modules/style-to-object/cjs/index.js +56 -0
  358. package/dist/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
  359. package/package.json +3 -2
@@ -0,0 +1,803 @@
1
+ import { __exports as Tokenizer } from '../../../../_virtual/Tokenizer.js';
2
+ import { __require as requireDecode } from '../../node_modules/entities/dist/commonjs/decode.js';
3
+
4
+ var hasRequiredTokenizer;
5
+
6
+ function requireTokenizer () {
7
+ if (hasRequiredTokenizer) return Tokenizer;
8
+ hasRequiredTokenizer = 1;
9
+ Object.defineProperty(Tokenizer, "__esModule", { value: true });
10
+ Tokenizer.QuoteType = void 0;
11
+ const decode_1 = /*@__PURE__*/ requireDecode();
12
+ var CharCodes;
13
+ (function (CharCodes) {
14
+ CharCodes[CharCodes["Tab"] = 9] = "Tab";
15
+ CharCodes[CharCodes["NewLine"] = 10] = "NewLine";
16
+ CharCodes[CharCodes["FormFeed"] = 12] = "FormFeed";
17
+ CharCodes[CharCodes["CarriageReturn"] = 13] = "CarriageReturn";
18
+ CharCodes[CharCodes["Space"] = 32] = "Space";
19
+ CharCodes[CharCodes["ExclamationMark"] = 33] = "ExclamationMark";
20
+ CharCodes[CharCodes["Number"] = 35] = "Number";
21
+ CharCodes[CharCodes["Amp"] = 38] = "Amp";
22
+ CharCodes[CharCodes["SingleQuote"] = 39] = "SingleQuote";
23
+ CharCodes[CharCodes["DoubleQuote"] = 34] = "DoubleQuote";
24
+ CharCodes[CharCodes["Dash"] = 45] = "Dash";
25
+ CharCodes[CharCodes["Slash"] = 47] = "Slash";
26
+ CharCodes[CharCodes["Zero"] = 48] = "Zero";
27
+ CharCodes[CharCodes["Nine"] = 57] = "Nine";
28
+ CharCodes[CharCodes["Semi"] = 59] = "Semi";
29
+ CharCodes[CharCodes["Lt"] = 60] = "Lt";
30
+ CharCodes[CharCodes["Eq"] = 61] = "Eq";
31
+ CharCodes[CharCodes["Gt"] = 62] = "Gt";
32
+ CharCodes[CharCodes["Questionmark"] = 63] = "Questionmark";
33
+ CharCodes[CharCodes["UpperA"] = 65] = "UpperA";
34
+ CharCodes[CharCodes["LowerA"] = 97] = "LowerA";
35
+ CharCodes[CharCodes["UpperF"] = 70] = "UpperF";
36
+ CharCodes[CharCodes["LowerF"] = 102] = "LowerF";
37
+ CharCodes[CharCodes["UpperZ"] = 90] = "UpperZ";
38
+ CharCodes[CharCodes["LowerZ"] = 122] = "LowerZ";
39
+ CharCodes[CharCodes["LowerX"] = 120] = "LowerX";
40
+ CharCodes[CharCodes["OpeningSquareBracket"] = 91] = "OpeningSquareBracket";
41
+ })(CharCodes || (CharCodes = {}));
42
+ /** All the states the tokenizer can be in. */
43
+ var State;
44
+ (function (State) {
45
+ State[State["Text"] = 1] = "Text";
46
+ State[State["BeforeTagName"] = 2] = "BeforeTagName";
47
+ State[State["InTagName"] = 3] = "InTagName";
48
+ State[State["InSelfClosingTag"] = 4] = "InSelfClosingTag";
49
+ State[State["BeforeClosingTagName"] = 5] = "BeforeClosingTagName";
50
+ State[State["InClosingTagName"] = 6] = "InClosingTagName";
51
+ State[State["AfterClosingTagName"] = 7] = "AfterClosingTagName";
52
+ // Attributes
53
+ State[State["BeforeAttributeName"] = 8] = "BeforeAttributeName";
54
+ State[State["InAttributeName"] = 9] = "InAttributeName";
55
+ State[State["AfterAttributeName"] = 10] = "AfterAttributeName";
56
+ State[State["BeforeAttributeValue"] = 11] = "BeforeAttributeValue";
57
+ State[State["InAttributeValueDq"] = 12] = "InAttributeValueDq";
58
+ State[State["InAttributeValueSq"] = 13] = "InAttributeValueSq";
59
+ State[State["InAttributeValueNq"] = 14] = "InAttributeValueNq";
60
+ // Declarations
61
+ State[State["BeforeDeclaration"] = 15] = "BeforeDeclaration";
62
+ State[State["InDeclaration"] = 16] = "InDeclaration";
63
+ // Processing instructions
64
+ State[State["InProcessingInstruction"] = 17] = "InProcessingInstruction";
65
+ // Comments & CDATA
66
+ State[State["BeforeComment"] = 18] = "BeforeComment";
67
+ State[State["CDATASequence"] = 19] = "CDATASequence";
68
+ State[State["InSpecialComment"] = 20] = "InSpecialComment";
69
+ State[State["InCommentLike"] = 21] = "InCommentLike";
70
+ // Special tags
71
+ State[State["BeforeSpecialS"] = 22] = "BeforeSpecialS";
72
+ State[State["BeforeSpecialT"] = 23] = "BeforeSpecialT";
73
+ State[State["SpecialStartSequence"] = 24] = "SpecialStartSequence";
74
+ State[State["InSpecialTag"] = 25] = "InSpecialTag";
75
+ State[State["InEntity"] = 26] = "InEntity";
76
+ })(State || (State = {}));
77
+ function isWhitespace(c) {
78
+ return (c === CharCodes.Space ||
79
+ c === CharCodes.NewLine ||
80
+ c === CharCodes.Tab ||
81
+ c === CharCodes.FormFeed ||
82
+ c === CharCodes.CarriageReturn);
83
+ }
84
+ function isEndOfTagSection(c) {
85
+ return c === CharCodes.Slash || c === CharCodes.Gt || isWhitespace(c);
86
+ }
87
+ function isASCIIAlpha(c) {
88
+ return ((c >= CharCodes.LowerA && c <= CharCodes.LowerZ) ||
89
+ (c >= CharCodes.UpperA && c <= CharCodes.UpperZ));
90
+ }
91
+ var QuoteType;
92
+ (function (QuoteType) {
93
+ QuoteType[QuoteType["NoValue"] = 0] = "NoValue";
94
+ QuoteType[QuoteType["Unquoted"] = 1] = "Unquoted";
95
+ QuoteType[QuoteType["Single"] = 2] = "Single";
96
+ QuoteType[QuoteType["Double"] = 3] = "Double";
97
+ })(QuoteType || (Tokenizer.QuoteType = QuoteType = {}));
98
+ /**
99
+ * Sequences used to match longer strings.
100
+ *
101
+ * We don't have `Script`, `Style`, or `Title` here. Instead, we re-use the *End
102
+ * sequences with an increased offset.
103
+ */
104
+ const Sequences = {
105
+ Cdata: new Uint8Array([0x43, 0x44, 0x41, 0x54, 0x41, 0x5b]), // CDATA[
106
+ CdataEnd: new Uint8Array([0x5d, 0x5d, 0x3e]), // ]]>
107
+ CommentEnd: new Uint8Array([0x2d, 0x2d, 0x3e]), // `-->`
108
+ ScriptEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]), // `</script`
109
+ StyleEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65]), // `</style`
110
+ TitleEnd: new Uint8Array([0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65]), // `</title`
111
+ TextareaEnd: new Uint8Array([
112
+ 0x3c, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x61, 0x72, 0x65, 0x61,
113
+ ]), // `</textarea`
114
+ XmpEnd: new Uint8Array([0x3c, 0x2f, 0x78, 0x6d, 0x70]), // `</xmp`
115
+ };
116
+ let Tokenizer$1 = class Tokenizer {
117
+ constructor({ xmlMode = false, decodeEntities = true, }, cbs) {
118
+ this.cbs = cbs;
119
+ /** The current state the tokenizer is in. */
120
+ this.state = State.Text;
121
+ /** The read buffer. */
122
+ this.buffer = "";
123
+ /** The beginning of the section that is currently being read. */
124
+ this.sectionStart = 0;
125
+ /** The index within the buffer that we are currently looking at. */
126
+ this.index = 0;
127
+ /** The start of the last entity. */
128
+ this.entityStart = 0;
129
+ /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */
130
+ this.baseState = State.Text;
131
+ /** For special parsing behavior inside of script and style tags. */
132
+ this.isSpecial = false;
133
+ /** Indicates whether the tokenizer has been paused. */
134
+ this.running = true;
135
+ /** The offset of the current buffer. */
136
+ this.offset = 0;
137
+ this.currentSequence = undefined;
138
+ this.sequenceIndex = 0;
139
+ this.xmlMode = xmlMode;
140
+ this.decodeEntities = decodeEntities;
141
+ this.entityDecoder = new decode_1.EntityDecoder(xmlMode ? decode_1.xmlDecodeTree : decode_1.htmlDecodeTree, (cp, consumed) => this.emitCodePoint(cp, consumed));
142
+ }
143
+ reset() {
144
+ this.state = State.Text;
145
+ this.buffer = "";
146
+ this.sectionStart = 0;
147
+ this.index = 0;
148
+ this.baseState = State.Text;
149
+ this.currentSequence = undefined;
150
+ this.running = true;
151
+ this.offset = 0;
152
+ }
153
+ write(chunk) {
154
+ this.offset += this.buffer.length;
155
+ this.buffer = chunk;
156
+ this.parse();
157
+ }
158
+ end() {
159
+ if (this.running)
160
+ this.finish();
161
+ }
162
+ pause() {
163
+ this.running = false;
164
+ }
165
+ resume() {
166
+ this.running = true;
167
+ if (this.index < this.buffer.length + this.offset) {
168
+ this.parse();
169
+ }
170
+ }
171
+ stateText(c) {
172
+ if (c === CharCodes.Lt ||
173
+ (!this.decodeEntities && this.fastForwardTo(CharCodes.Lt))) {
174
+ if (this.index > this.sectionStart) {
175
+ this.cbs.ontext(this.sectionStart, this.index);
176
+ }
177
+ this.state = State.BeforeTagName;
178
+ this.sectionStart = this.index;
179
+ }
180
+ else if (this.decodeEntities && c === CharCodes.Amp) {
181
+ this.startEntity();
182
+ }
183
+ }
184
+ stateSpecialStartSequence(c) {
185
+ const isEnd = this.sequenceIndex === this.currentSequence.length;
186
+ const isMatch = isEnd
187
+ ? // If we are at the end of the sequence, make sure the tag name has ended
188
+ isEndOfTagSection(c)
189
+ : // Otherwise, do a case-insensitive comparison
190
+ (c | 0x20) === this.currentSequence[this.sequenceIndex];
191
+ if (!isMatch) {
192
+ this.isSpecial = false;
193
+ }
194
+ else if (!isEnd) {
195
+ this.sequenceIndex++;
196
+ return;
197
+ }
198
+ this.sequenceIndex = 0;
199
+ this.state = State.InTagName;
200
+ this.stateInTagName(c);
201
+ }
202
+ /** Look for an end tag. For <title> tags, also decode entities. */
203
+ stateInSpecialTag(c) {
204
+ if (this.sequenceIndex === this.currentSequence.length) {
205
+ if (c === CharCodes.Gt || isWhitespace(c)) {
206
+ const endOfText = this.index - this.currentSequence.length;
207
+ if (this.sectionStart < endOfText) {
208
+ // Spoof the index so that reported locations match up.
209
+ const actualIndex = this.index;
210
+ this.index = endOfText;
211
+ this.cbs.ontext(this.sectionStart, endOfText);
212
+ this.index = actualIndex;
213
+ }
214
+ this.isSpecial = false;
215
+ this.sectionStart = endOfText + 2; // Skip over the `</`
216
+ this.stateInClosingTagName(c);
217
+ return; // We are done; skip the rest of the function.
218
+ }
219
+ this.sequenceIndex = 0;
220
+ }
221
+ if ((c | 0x20) === this.currentSequence[this.sequenceIndex]) {
222
+ this.sequenceIndex += 1;
223
+ }
224
+ else if (this.sequenceIndex === 0) {
225
+ if (this.currentSequence === Sequences.TitleEnd) {
226
+ // We have to parse entities in <title> tags.
227
+ if (this.decodeEntities && c === CharCodes.Amp) {
228
+ this.startEntity();
229
+ }
230
+ }
231
+ else if (this.fastForwardTo(CharCodes.Lt)) {
232
+ // Outside of <title> tags, we can fast-forward.
233
+ this.sequenceIndex = 1;
234
+ }
235
+ }
236
+ else {
237
+ // If we see a `<`, set the sequence index to 1; useful for eg. `<</script>`.
238
+ this.sequenceIndex = Number(c === CharCodes.Lt);
239
+ }
240
+ }
241
+ stateCDATASequence(c) {
242
+ if (c === Sequences.Cdata[this.sequenceIndex]) {
243
+ if (++this.sequenceIndex === Sequences.Cdata.length) {
244
+ this.state = State.InCommentLike;
245
+ this.currentSequence = Sequences.CdataEnd;
246
+ this.sequenceIndex = 0;
247
+ this.sectionStart = this.index + 1;
248
+ }
249
+ }
250
+ else {
251
+ this.sequenceIndex = 0;
252
+ this.state = State.InDeclaration;
253
+ this.stateInDeclaration(c); // Reconsume the character
254
+ }
255
+ }
256
+ /**
257
+ * When we wait for one specific character, we can speed things up
258
+ * by skipping through the buffer until we find it.
259
+ *
260
+ * @returns Whether the character was found.
261
+ */
262
+ fastForwardTo(c) {
263
+ while (++this.index < this.buffer.length + this.offset) {
264
+ if (this.buffer.charCodeAt(this.index - this.offset) === c) {
265
+ return true;
266
+ }
267
+ }
268
+ /*
269
+ * We increment the index at the end of the `parse` loop,
270
+ * so set it to `buffer.length - 1` here.
271
+ *
272
+ * TODO: Refactor `parse` to increment index before calling states.
273
+ */
274
+ this.index = this.buffer.length + this.offset - 1;
275
+ return false;
276
+ }
277
+ /**
278
+ * Comments and CDATA end with `-->` and `]]>`.
279
+ *
280
+ * Their common qualities are:
281
+ * - Their end sequences have a distinct character they start with.
282
+ * - That character is then repeated, so we have to check multiple repeats.
283
+ * - All characters but the start character of the sequence can be skipped.
284
+ */
285
+ stateInCommentLike(c) {
286
+ if (c === this.currentSequence[this.sequenceIndex]) {
287
+ if (++this.sequenceIndex === this.currentSequence.length) {
288
+ if (this.currentSequence === Sequences.CdataEnd) {
289
+ this.cbs.oncdata(this.sectionStart, this.index, 2);
290
+ }
291
+ else {
292
+ this.cbs.oncomment(this.sectionStart, this.index, 2);
293
+ }
294
+ this.sequenceIndex = 0;
295
+ this.sectionStart = this.index + 1;
296
+ this.state = State.Text;
297
+ }
298
+ }
299
+ else if (this.sequenceIndex === 0) {
300
+ // Fast-forward to the first character of the sequence
301
+ if (this.fastForwardTo(this.currentSequence[0])) {
302
+ this.sequenceIndex = 1;
303
+ }
304
+ }
305
+ else if (c !== this.currentSequence[this.sequenceIndex - 1]) {
306
+ // Allow long sequences, eg. --->, ]]]>
307
+ this.sequenceIndex = 0;
308
+ }
309
+ }
310
+ /**
311
+ * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
312
+ *
313
+ * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).
314
+ * We allow anything that wouldn't end the tag.
315
+ */
316
+ isTagStartChar(c) {
317
+ return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c);
318
+ }
319
+ startSpecial(sequence, offset) {
320
+ this.isSpecial = true;
321
+ this.currentSequence = sequence;
322
+ this.sequenceIndex = offset;
323
+ this.state = State.SpecialStartSequence;
324
+ }
325
+ stateBeforeTagName(c) {
326
+ if (c === CharCodes.ExclamationMark) {
327
+ this.state = State.BeforeDeclaration;
328
+ this.sectionStart = this.index + 1;
329
+ }
330
+ else if (c === CharCodes.Questionmark) {
331
+ this.state = State.InProcessingInstruction;
332
+ this.sectionStart = this.index + 1;
333
+ }
334
+ else if (this.isTagStartChar(c)) {
335
+ const lower = c | 0x20;
336
+ this.sectionStart = this.index;
337
+ if (this.xmlMode) {
338
+ this.state = State.InTagName;
339
+ }
340
+ else if (lower === Sequences.ScriptEnd[2]) {
341
+ this.state = State.BeforeSpecialS;
342
+ }
343
+ else if (lower === Sequences.TitleEnd[2] ||
344
+ lower === Sequences.XmpEnd[2]) {
345
+ this.state = State.BeforeSpecialT;
346
+ }
347
+ else {
348
+ this.state = State.InTagName;
349
+ }
350
+ }
351
+ else if (c === CharCodes.Slash) {
352
+ this.state = State.BeforeClosingTagName;
353
+ }
354
+ else {
355
+ this.state = State.Text;
356
+ this.stateText(c);
357
+ }
358
+ }
359
+ stateInTagName(c) {
360
+ if (isEndOfTagSection(c)) {
361
+ this.cbs.onopentagname(this.sectionStart, this.index);
362
+ this.sectionStart = -1;
363
+ this.state = State.BeforeAttributeName;
364
+ this.stateBeforeAttributeName(c);
365
+ }
366
+ }
367
+ stateBeforeClosingTagName(c) {
368
+ if (isWhitespace(c)) ;
369
+ else if (c === CharCodes.Gt) {
370
+ this.state = State.Text;
371
+ }
372
+ else {
373
+ this.state = this.isTagStartChar(c)
374
+ ? State.InClosingTagName
375
+ : State.InSpecialComment;
376
+ this.sectionStart = this.index;
377
+ }
378
+ }
379
+ stateInClosingTagName(c) {
380
+ if (c === CharCodes.Gt || isWhitespace(c)) {
381
+ this.cbs.onclosetag(this.sectionStart, this.index);
382
+ this.sectionStart = -1;
383
+ this.state = State.AfterClosingTagName;
384
+ this.stateAfterClosingTagName(c);
385
+ }
386
+ }
387
+ stateAfterClosingTagName(c) {
388
+ // Skip everything until ">"
389
+ if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
390
+ this.state = State.Text;
391
+ this.sectionStart = this.index + 1;
392
+ }
393
+ }
394
+ stateBeforeAttributeName(c) {
395
+ if (c === CharCodes.Gt) {
396
+ this.cbs.onopentagend(this.index);
397
+ if (this.isSpecial) {
398
+ this.state = State.InSpecialTag;
399
+ this.sequenceIndex = 0;
400
+ }
401
+ else {
402
+ this.state = State.Text;
403
+ }
404
+ this.sectionStart = this.index + 1;
405
+ }
406
+ else if (c === CharCodes.Slash) {
407
+ this.state = State.InSelfClosingTag;
408
+ }
409
+ else if (!isWhitespace(c)) {
410
+ this.state = State.InAttributeName;
411
+ this.sectionStart = this.index;
412
+ }
413
+ }
414
+ stateInSelfClosingTag(c) {
415
+ if (c === CharCodes.Gt) {
416
+ this.cbs.onselfclosingtag(this.index);
417
+ this.state = State.Text;
418
+ this.sectionStart = this.index + 1;
419
+ this.isSpecial = false; // Reset special state, in case of self-closing special tags
420
+ }
421
+ else if (!isWhitespace(c)) {
422
+ this.state = State.BeforeAttributeName;
423
+ this.stateBeforeAttributeName(c);
424
+ }
425
+ }
426
+ stateInAttributeName(c) {
427
+ if (c === CharCodes.Eq || isEndOfTagSection(c)) {
428
+ this.cbs.onattribname(this.sectionStart, this.index);
429
+ this.sectionStart = this.index;
430
+ this.state = State.AfterAttributeName;
431
+ this.stateAfterAttributeName(c);
432
+ }
433
+ }
434
+ stateAfterAttributeName(c) {
435
+ if (c === CharCodes.Eq) {
436
+ this.state = State.BeforeAttributeValue;
437
+ }
438
+ else if (c === CharCodes.Slash || c === CharCodes.Gt) {
439
+ this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);
440
+ this.sectionStart = -1;
441
+ this.state = State.BeforeAttributeName;
442
+ this.stateBeforeAttributeName(c);
443
+ }
444
+ else if (!isWhitespace(c)) {
445
+ this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);
446
+ this.state = State.InAttributeName;
447
+ this.sectionStart = this.index;
448
+ }
449
+ }
450
+ stateBeforeAttributeValue(c) {
451
+ if (c === CharCodes.DoubleQuote) {
452
+ this.state = State.InAttributeValueDq;
453
+ this.sectionStart = this.index + 1;
454
+ }
455
+ else if (c === CharCodes.SingleQuote) {
456
+ this.state = State.InAttributeValueSq;
457
+ this.sectionStart = this.index + 1;
458
+ }
459
+ else if (!isWhitespace(c)) {
460
+ this.sectionStart = this.index;
461
+ this.state = State.InAttributeValueNq;
462
+ this.stateInAttributeValueNoQuotes(c); // Reconsume token
463
+ }
464
+ }
465
+ handleInAttributeValue(c, quote) {
466
+ if (c === quote ||
467
+ (!this.decodeEntities && this.fastForwardTo(quote))) {
468
+ this.cbs.onattribdata(this.sectionStart, this.index);
469
+ this.sectionStart = -1;
470
+ this.cbs.onattribend(quote === CharCodes.DoubleQuote
471
+ ? QuoteType.Double
472
+ : QuoteType.Single, this.index + 1);
473
+ this.state = State.BeforeAttributeName;
474
+ }
475
+ else if (this.decodeEntities && c === CharCodes.Amp) {
476
+ this.startEntity();
477
+ }
478
+ }
479
+ stateInAttributeValueDoubleQuotes(c) {
480
+ this.handleInAttributeValue(c, CharCodes.DoubleQuote);
481
+ }
482
+ stateInAttributeValueSingleQuotes(c) {
483
+ this.handleInAttributeValue(c, CharCodes.SingleQuote);
484
+ }
485
+ stateInAttributeValueNoQuotes(c) {
486
+ if (isWhitespace(c) || c === CharCodes.Gt) {
487
+ this.cbs.onattribdata(this.sectionStart, this.index);
488
+ this.sectionStart = -1;
489
+ this.cbs.onattribend(QuoteType.Unquoted, this.index);
490
+ this.state = State.BeforeAttributeName;
491
+ this.stateBeforeAttributeName(c);
492
+ }
493
+ else if (this.decodeEntities && c === CharCodes.Amp) {
494
+ this.startEntity();
495
+ }
496
+ }
497
+ stateBeforeDeclaration(c) {
498
+ if (c === CharCodes.OpeningSquareBracket) {
499
+ this.state = State.CDATASequence;
500
+ this.sequenceIndex = 0;
501
+ }
502
+ else {
503
+ this.state =
504
+ c === CharCodes.Dash
505
+ ? State.BeforeComment
506
+ : State.InDeclaration;
507
+ }
508
+ }
509
+ stateInDeclaration(c) {
510
+ if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
511
+ this.cbs.ondeclaration(this.sectionStart, this.index);
512
+ this.state = State.Text;
513
+ this.sectionStart = this.index + 1;
514
+ }
515
+ }
516
+ stateInProcessingInstruction(c) {
517
+ if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
518
+ this.cbs.onprocessinginstruction(this.sectionStart, this.index);
519
+ this.state = State.Text;
520
+ this.sectionStart = this.index + 1;
521
+ }
522
+ }
523
+ stateBeforeComment(c) {
524
+ if (c === CharCodes.Dash) {
525
+ this.state = State.InCommentLike;
526
+ this.currentSequence = Sequences.CommentEnd;
527
+ // Allow short comments (eg. <!-->)
528
+ this.sequenceIndex = 2;
529
+ this.sectionStart = this.index + 1;
530
+ }
531
+ else {
532
+ this.state = State.InDeclaration;
533
+ }
534
+ }
535
+ stateInSpecialComment(c) {
536
+ if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
537
+ this.cbs.oncomment(this.sectionStart, this.index, 0);
538
+ this.state = State.Text;
539
+ this.sectionStart = this.index + 1;
540
+ }
541
+ }
542
+ stateBeforeSpecialS(c) {
543
+ const lower = c | 0x20;
544
+ if (lower === Sequences.ScriptEnd[3]) {
545
+ this.startSpecial(Sequences.ScriptEnd, 4);
546
+ }
547
+ else if (lower === Sequences.StyleEnd[3]) {
548
+ this.startSpecial(Sequences.StyleEnd, 4);
549
+ }
550
+ else {
551
+ this.state = State.InTagName;
552
+ this.stateInTagName(c); // Consume the token again
553
+ }
554
+ }
555
+ stateBeforeSpecialT(c) {
556
+ const lower = c | 0x20;
557
+ switch (lower) {
558
+ case Sequences.TitleEnd[3]: {
559
+ this.startSpecial(Sequences.TitleEnd, 4);
560
+ break;
561
+ }
562
+ case Sequences.TextareaEnd[3]: {
563
+ this.startSpecial(Sequences.TextareaEnd, 4);
564
+ break;
565
+ }
566
+ case Sequences.XmpEnd[3]: {
567
+ this.startSpecial(Sequences.XmpEnd, 4);
568
+ break;
569
+ }
570
+ default: {
571
+ this.state = State.InTagName;
572
+ this.stateInTagName(c); // Consume the token again
573
+ }
574
+ }
575
+ }
576
+ startEntity() {
577
+ this.baseState = this.state;
578
+ this.state = State.InEntity;
579
+ this.entityStart = this.index;
580
+ this.entityDecoder.startEntity(this.xmlMode
581
+ ? decode_1.DecodingMode.Strict
582
+ : this.baseState === State.Text ||
583
+ this.baseState === State.InSpecialTag
584
+ ? decode_1.DecodingMode.Legacy
585
+ : decode_1.DecodingMode.Attribute);
586
+ }
587
+ stateInEntity() {
588
+ const length = this.entityDecoder.write(this.buffer, this.index - this.offset);
589
+ // If `length` is positive, we are done with the entity.
590
+ if (length >= 0) {
591
+ this.state = this.baseState;
592
+ if (length === 0) {
593
+ this.index = this.entityStart;
594
+ }
595
+ }
596
+ else {
597
+ // Mark buffer as consumed.
598
+ this.index = this.offset + this.buffer.length - 1;
599
+ }
600
+ }
601
+ /**
602
+ * Remove data that has already been consumed from the buffer.
603
+ */
604
+ cleanup() {
605
+ // If we are inside of text or attributes, emit what we already have.
606
+ if (this.running && this.sectionStart !== this.index) {
607
+ if (this.state === State.Text ||
608
+ (this.state === State.InSpecialTag && this.sequenceIndex === 0)) {
609
+ this.cbs.ontext(this.sectionStart, this.index);
610
+ this.sectionStart = this.index;
611
+ }
612
+ else if (this.state === State.InAttributeValueDq ||
613
+ this.state === State.InAttributeValueSq ||
614
+ this.state === State.InAttributeValueNq) {
615
+ this.cbs.onattribdata(this.sectionStart, this.index);
616
+ this.sectionStart = this.index;
617
+ }
618
+ }
619
+ }
620
+ shouldContinue() {
621
+ return this.index < this.buffer.length + this.offset && this.running;
622
+ }
623
+ /**
624
+ * Iterates through the buffer, calling the function corresponding to the current state.
625
+ *
626
+ * States that are more likely to be hit are higher up, as a performance improvement.
627
+ */
628
+ parse() {
629
+ while (this.shouldContinue()) {
630
+ const c = this.buffer.charCodeAt(this.index - this.offset);
631
+ switch (this.state) {
632
+ case State.Text: {
633
+ this.stateText(c);
634
+ break;
635
+ }
636
+ case State.SpecialStartSequence: {
637
+ this.stateSpecialStartSequence(c);
638
+ break;
639
+ }
640
+ case State.InSpecialTag: {
641
+ this.stateInSpecialTag(c);
642
+ break;
643
+ }
644
+ case State.CDATASequence: {
645
+ this.stateCDATASequence(c);
646
+ break;
647
+ }
648
+ case State.InAttributeValueDq: {
649
+ this.stateInAttributeValueDoubleQuotes(c);
650
+ break;
651
+ }
652
+ case State.InAttributeName: {
653
+ this.stateInAttributeName(c);
654
+ break;
655
+ }
656
+ case State.InCommentLike: {
657
+ this.stateInCommentLike(c);
658
+ break;
659
+ }
660
+ case State.InSpecialComment: {
661
+ this.stateInSpecialComment(c);
662
+ break;
663
+ }
664
+ case State.BeforeAttributeName: {
665
+ this.stateBeforeAttributeName(c);
666
+ break;
667
+ }
668
+ case State.InTagName: {
669
+ this.stateInTagName(c);
670
+ break;
671
+ }
672
+ case State.InClosingTagName: {
673
+ this.stateInClosingTagName(c);
674
+ break;
675
+ }
676
+ case State.BeforeTagName: {
677
+ this.stateBeforeTagName(c);
678
+ break;
679
+ }
680
+ case State.AfterAttributeName: {
681
+ this.stateAfterAttributeName(c);
682
+ break;
683
+ }
684
+ case State.InAttributeValueSq: {
685
+ this.stateInAttributeValueSingleQuotes(c);
686
+ break;
687
+ }
688
+ case State.BeforeAttributeValue: {
689
+ this.stateBeforeAttributeValue(c);
690
+ break;
691
+ }
692
+ case State.BeforeClosingTagName: {
693
+ this.stateBeforeClosingTagName(c);
694
+ break;
695
+ }
696
+ case State.AfterClosingTagName: {
697
+ this.stateAfterClosingTagName(c);
698
+ break;
699
+ }
700
+ case State.BeforeSpecialS: {
701
+ this.stateBeforeSpecialS(c);
702
+ break;
703
+ }
704
+ case State.BeforeSpecialT: {
705
+ this.stateBeforeSpecialT(c);
706
+ break;
707
+ }
708
+ case State.InAttributeValueNq: {
709
+ this.stateInAttributeValueNoQuotes(c);
710
+ break;
711
+ }
712
+ case State.InSelfClosingTag: {
713
+ this.stateInSelfClosingTag(c);
714
+ break;
715
+ }
716
+ case State.InDeclaration: {
717
+ this.stateInDeclaration(c);
718
+ break;
719
+ }
720
+ case State.BeforeDeclaration: {
721
+ this.stateBeforeDeclaration(c);
722
+ break;
723
+ }
724
+ case State.BeforeComment: {
725
+ this.stateBeforeComment(c);
726
+ break;
727
+ }
728
+ case State.InProcessingInstruction: {
729
+ this.stateInProcessingInstruction(c);
730
+ break;
731
+ }
732
+ case State.InEntity: {
733
+ this.stateInEntity();
734
+ break;
735
+ }
736
+ }
737
+ this.index++;
738
+ }
739
+ this.cleanup();
740
+ }
741
+ finish() {
742
+ if (this.state === State.InEntity) {
743
+ this.entityDecoder.end();
744
+ this.state = this.baseState;
745
+ }
746
+ this.handleTrailingData();
747
+ this.cbs.onend();
748
+ }
749
+ /** Handle any trailing data. */
750
+ handleTrailingData() {
751
+ const endIndex = this.buffer.length + this.offset;
752
+ // If there is no remaining data, we are done.
753
+ if (this.sectionStart >= endIndex) {
754
+ return;
755
+ }
756
+ if (this.state === State.InCommentLike) {
757
+ if (this.currentSequence === Sequences.CdataEnd) {
758
+ this.cbs.oncdata(this.sectionStart, endIndex, 0);
759
+ }
760
+ else {
761
+ this.cbs.oncomment(this.sectionStart, endIndex, 0);
762
+ }
763
+ }
764
+ else if (this.state === State.InTagName ||
765
+ this.state === State.BeforeAttributeName ||
766
+ this.state === State.BeforeAttributeValue ||
767
+ this.state === State.AfterAttributeName ||
768
+ this.state === State.InAttributeName ||
769
+ this.state === State.InAttributeValueSq ||
770
+ this.state === State.InAttributeValueDq ||
771
+ this.state === State.InAttributeValueNq ||
772
+ this.state === State.InClosingTagName) ;
773
+ else {
774
+ this.cbs.ontext(this.sectionStart, endIndex);
775
+ }
776
+ }
777
+ emitCodePoint(cp, consumed) {
778
+ if (this.baseState !== State.Text &&
779
+ this.baseState !== State.InSpecialTag) {
780
+ if (this.sectionStart < this.entityStart) {
781
+ this.cbs.onattribdata(this.sectionStart, this.entityStart);
782
+ }
783
+ this.sectionStart = this.entityStart + consumed;
784
+ this.index = this.sectionStart - 1;
785
+ this.cbs.onattribentity(cp);
786
+ }
787
+ else {
788
+ if (this.sectionStart < this.entityStart) {
789
+ this.cbs.ontext(this.sectionStart, this.entityStart);
790
+ }
791
+ this.sectionStart = this.entityStart + consumed;
792
+ this.index = this.sectionStart - 1;
793
+ this.cbs.ontextentity(cp, this.sectionStart);
794
+ }
795
+ }
796
+ };
797
+ Tokenizer.default = Tokenizer$1;
798
+
799
+ return Tokenizer;
800
+ }
801
+
802
+ export { requireTokenizer as __require };
803
+ //# sourceMappingURL=Tokenizer.js.map