@zipify/wysiwyg 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1127) hide show
  1. package/.release-it.json +2 -1
  2. package/config/build/lambda.config.js +39 -0
  3. package/dist/cli.js +1 -1
  4. package/dist/lambda-to-json.zip +0 -0
  5. package/dist/wysiwyg.mjs +10 -17
  6. package/lib/entry-lambda-to-json.js +8 -0
  7. package/lib/extensions/Alignment.js +10 -8
  8. package/lib/extensions/FontSize.js +8 -3
  9. package/lib/extensions/LineHeight.js +10 -4
  10. package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +3 -3
  11. package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +9 -9
  12. package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +5 -5
  13. package/lib/services/NodeFactory.js +4 -1
  14. package/node_modules_lambda/.bin/acorn +4 -0
  15. package/node_modules_lambda/.bin/escodegen +77 -0
  16. package/node_modules_lambda/.bin/esgenerate +64 -0
  17. package/node_modules_lambda/.bin/esparse +139 -0
  18. package/node_modules_lambda/.bin/esvalidate +236 -0
  19. package/node_modules_lambda/.package-lock.json +602 -0
  20. package/node_modules_lambda/@tootallnate/once/LICENSE +21 -0
  21. package/node_modules_lambda/@tootallnate/once/README.md +93 -0
  22. package/node_modules_lambda/@tootallnate/once/dist/index.d.ts +7 -0
  23. package/node_modules_lambda/@tootallnate/once/dist/index.js +24 -0
  24. package/node_modules_lambda/@tootallnate/once/dist/index.js.map +1 -0
  25. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.d.ts +231 -0
  26. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js +3 -0
  27. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js.map +1 -0
  28. package/node_modules_lambda/@tootallnate/once/dist/types.d.ts +17 -0
  29. package/node_modules_lambda/@tootallnate/once/dist/types.js +3 -0
  30. package/node_modules_lambda/@tootallnate/once/dist/types.js.map +1 -0
  31. package/node_modules_lambda/@tootallnate/once/package.json +52 -0
  32. package/node_modules_lambda/abab/LICENSE.md +13 -0
  33. package/node_modules_lambda/abab/README.md +51 -0
  34. package/node_modules_lambda/abab/index.d.ts +2 -0
  35. package/node_modules_lambda/abab/index.js +9 -0
  36. package/node_modules_lambda/abab/lib/atob.js +101 -0
  37. package/node_modules_lambda/abab/lib/btoa.js +62 -0
  38. package/node_modules_lambda/abab/package.json +42 -0
  39. package/node_modules_lambda/acorn/CHANGELOG.md +798 -0
  40. package/node_modules_lambda/acorn/LICENSE +21 -0
  41. package/node_modules_lambda/acorn/README.md +273 -0
  42. package/node_modules_lambda/acorn/bin/acorn +4 -0
  43. package/node_modules_lambda/acorn/dist/acorn.d.ts +252 -0
  44. package/node_modules_lambda/acorn/dist/acorn.js +5608 -0
  45. package/node_modules_lambda/acorn/dist/acorn.mjs +5577 -0
  46. package/node_modules_lambda/acorn/dist/acorn.mjs.d.ts +2 -0
  47. package/node_modules_lambda/acorn/dist/bin.js +91 -0
  48. package/node_modules_lambda/acorn/package.json +50 -0
  49. package/node_modules_lambda/acorn-globals/LICENSE +19 -0
  50. package/node_modules_lambda/acorn-globals/README.md +81 -0
  51. package/node_modules_lambda/acorn-globals/index.js +179 -0
  52. package/node_modules_lambda/acorn-globals/node_modules/.bin/acorn +4 -0
  53. package/node_modules_lambda/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
  54. package/node_modules_lambda/acorn-globals/node_modules/acorn/LICENSE +21 -0
  55. package/node_modules_lambda/acorn-globals/node_modules/acorn/README.md +269 -0
  56. package/node_modules_lambda/acorn-globals/node_modules/acorn/bin/acorn +4 -0
  57. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
  58. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
  59. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
  60. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
  61. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  62. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
  63. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
  64. package/node_modules_lambda/acorn-globals/node_modules/acorn/package.json +35 -0
  65. package/node_modules_lambda/acorn-globals/package.json +35 -0
  66. package/node_modules_lambda/acorn-walk/CHANGELOG.md +131 -0
  67. package/node_modules_lambda/acorn-walk/LICENSE +19 -0
  68. package/node_modules_lambda/acorn-walk/README.md +126 -0
  69. package/node_modules_lambda/acorn-walk/dist/walk.d.ts +112 -0
  70. package/node_modules_lambda/acorn-walk/dist/walk.js +463 -0
  71. package/node_modules_lambda/acorn-walk/dist/walk.js.map +1 -0
  72. package/node_modules_lambda/acorn-walk/dist/walk.mjs +443 -0
  73. package/node_modules_lambda/acorn-walk/dist/walk.mjs.map +1 -0
  74. package/node_modules_lambda/acorn-walk/package.json +34 -0
  75. package/node_modules_lambda/agent-base/README.md +145 -0
  76. package/node_modules_lambda/agent-base/dist/src/index.d.ts +78 -0
  77. package/node_modules_lambda/agent-base/dist/src/index.js +203 -0
  78. package/node_modules_lambda/agent-base/dist/src/index.js.map +1 -0
  79. package/node_modules_lambda/agent-base/dist/src/promisify.d.ts +4 -0
  80. package/node_modules_lambda/agent-base/dist/src/promisify.js +18 -0
  81. package/node_modules_lambda/agent-base/dist/src/promisify.js.map +1 -0
  82. package/node_modules_lambda/agent-base/package.json +64 -0
  83. package/node_modules_lambda/agent-base/src/index.ts +345 -0
  84. package/node_modules_lambda/agent-base/src/promisify.ts +33 -0
  85. package/node_modules_lambda/asynckit/LICENSE +21 -0
  86. package/node_modules_lambda/asynckit/README.md +233 -0
  87. package/node_modules_lambda/asynckit/bench.js +76 -0
  88. package/node_modules_lambda/asynckit/index.js +6 -0
  89. package/node_modules_lambda/asynckit/lib/abort.js +29 -0
  90. package/node_modules_lambda/asynckit/lib/async.js +34 -0
  91. package/node_modules_lambda/asynckit/lib/defer.js +26 -0
  92. package/node_modules_lambda/asynckit/lib/iterate.js +75 -0
  93. package/node_modules_lambda/asynckit/lib/readable_asynckit.js +91 -0
  94. package/node_modules_lambda/asynckit/lib/readable_parallel.js +25 -0
  95. package/node_modules_lambda/asynckit/lib/readable_serial.js +25 -0
  96. package/node_modules_lambda/asynckit/lib/readable_serial_ordered.js +29 -0
  97. package/node_modules_lambda/asynckit/lib/state.js +37 -0
  98. package/node_modules_lambda/asynckit/lib/streamify.js +141 -0
  99. package/node_modules_lambda/asynckit/lib/terminator.js +29 -0
  100. package/node_modules_lambda/asynckit/package.json +63 -0
  101. package/node_modules_lambda/asynckit/parallel.js +43 -0
  102. package/node_modules_lambda/asynckit/serial.js +17 -0
  103. package/node_modules_lambda/asynckit/serialOrdered.js +75 -0
  104. package/node_modules_lambda/asynckit/stream.js +21 -0
  105. package/node_modules_lambda/browser-process-hrtime/LICENSE +9 -0
  106. package/node_modules_lambda/browser-process-hrtime/README.md +27 -0
  107. package/node_modules_lambda/browser-process-hrtime/index.d.ts +4 -0
  108. package/node_modules_lambda/browser-process-hrtime/index.js +28 -0
  109. package/node_modules_lambda/browser-process-hrtime/package.json +15 -0
  110. package/node_modules_lambda/combined-stream/License +19 -0
  111. package/node_modules_lambda/combined-stream/Readme.md +138 -0
  112. package/node_modules_lambda/combined-stream/lib/combined_stream.js +208 -0
  113. package/node_modules_lambda/combined-stream/package.json +25 -0
  114. package/node_modules_lambda/combined-stream/yarn.lock +17 -0
  115. package/node_modules_lambda/cssom/LICENSE.txt +20 -0
  116. package/node_modules_lambda/cssom/README.mdown +67 -0
  117. package/node_modules_lambda/cssom/lib/CSSConditionRule.js +25 -0
  118. package/node_modules_lambda/cssom/lib/CSSDocumentRule.js +39 -0
  119. package/node_modules_lambda/cssom/lib/CSSFontFaceRule.js +36 -0
  120. package/node_modules_lambda/cssom/lib/CSSGroupingRule.js +68 -0
  121. package/node_modules_lambda/cssom/lib/CSSHostRule.js +37 -0
  122. package/node_modules_lambda/cssom/lib/CSSImportRule.js +132 -0
  123. package/node_modules_lambda/cssom/lib/CSSKeyframeRule.js +37 -0
  124. package/node_modules_lambda/cssom/lib/CSSKeyframesRule.js +39 -0
  125. package/node_modules_lambda/cssom/lib/CSSMediaRule.js +53 -0
  126. package/node_modules_lambda/cssom/lib/CSSOM.js +3 -0
  127. package/node_modules_lambda/cssom/lib/CSSRule.js +43 -0
  128. package/node_modules_lambda/cssom/lib/CSSStyleDeclaration.js +148 -0
  129. package/node_modules_lambda/cssom/lib/CSSStyleRule.js +190 -0
  130. package/node_modules_lambda/cssom/lib/CSSStyleSheet.js +88 -0
  131. package/node_modules_lambda/cssom/lib/CSSSupportsRule.js +36 -0
  132. package/node_modules_lambda/cssom/lib/CSSValue.js +43 -0
  133. package/node_modules_lambda/cssom/lib/CSSValueExpression.js +344 -0
  134. package/node_modules_lambda/cssom/lib/MatcherList.js +62 -0
  135. package/node_modules_lambda/cssom/lib/MediaList.js +61 -0
  136. package/node_modules_lambda/cssom/lib/StyleSheet.js +17 -0
  137. package/node_modules_lambda/cssom/lib/clone.js +74 -0
  138. package/node_modules_lambda/cssom/lib/index.js +23 -0
  139. package/node_modules_lambda/cssom/lib/parse.js +465 -0
  140. package/node_modules_lambda/cssom/package.json +18 -0
  141. package/node_modules_lambda/cssstyle/LICENSE +20 -0
  142. package/node_modules_lambda/cssstyle/README.md +15 -0
  143. package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.js +260 -0
  144. package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.test.js +556 -0
  145. package/node_modules_lambda/cssstyle/lib/allExtraProperties.js +67 -0
  146. package/node_modules_lambda/cssstyle/lib/allProperties.js +462 -0
  147. package/node_modules_lambda/cssstyle/lib/allWebkitProperties.js +194 -0
  148. package/node_modules_lambda/cssstyle/lib/constants.js +6 -0
  149. package/node_modules_lambda/cssstyle/lib/implementedProperties.js +90 -0
  150. package/node_modules_lambda/cssstyle/lib/named_colors.json +152 -0
  151. package/node_modules_lambda/cssstyle/lib/parsers.js +722 -0
  152. package/node_modules_lambda/cssstyle/lib/parsers.test.js +139 -0
  153. package/node_modules_lambda/cssstyle/lib/properties/azimuth.js +67 -0
  154. package/node_modules_lambda/cssstyle/lib/properties/background.js +19 -0
  155. package/node_modules_lambda/cssstyle/lib/properties/backgroundAttachment.js +24 -0
  156. package/node_modules_lambda/cssstyle/lib/properties/backgroundColor.js +36 -0
  157. package/node_modules_lambda/cssstyle/lib/properties/backgroundImage.js +32 -0
  158. package/node_modules_lambda/cssstyle/lib/properties/backgroundPosition.js +58 -0
  159. package/node_modules_lambda/cssstyle/lib/properties/backgroundRepeat.js +32 -0
  160. package/node_modules_lambda/cssstyle/lib/properties/border.js +33 -0
  161. package/node_modules_lambda/cssstyle/lib/properties/borderBottom.js +17 -0
  162. package/node_modules_lambda/cssstyle/lib/properties/borderBottomColor.js +16 -0
  163. package/node_modules_lambda/cssstyle/lib/properties/borderBottomStyle.js +21 -0
  164. package/node_modules_lambda/cssstyle/lib/properties/borderBottomWidth.js +16 -0
  165. package/node_modules_lambda/cssstyle/lib/properties/borderCollapse.js +26 -0
  166. package/node_modules_lambda/cssstyle/lib/properties/borderColor.js +30 -0
  167. package/node_modules_lambda/cssstyle/lib/properties/borderLeft.js +17 -0
  168. package/node_modules_lambda/cssstyle/lib/properties/borderLeftColor.js +16 -0
  169. package/node_modules_lambda/cssstyle/lib/properties/borderLeftStyle.js +21 -0
  170. package/node_modules_lambda/cssstyle/lib/properties/borderLeftWidth.js +16 -0
  171. package/node_modules_lambda/cssstyle/lib/properties/borderRight.js +17 -0
  172. package/node_modules_lambda/cssstyle/lib/properties/borderRightColor.js +16 -0
  173. package/node_modules_lambda/cssstyle/lib/properties/borderRightStyle.js +21 -0
  174. package/node_modules_lambda/cssstyle/lib/properties/borderRightWidth.js +16 -0
  175. package/node_modules_lambda/cssstyle/lib/properties/borderSpacing.js +41 -0
  176. package/node_modules_lambda/cssstyle/lib/properties/borderStyle.js +38 -0
  177. package/node_modules_lambda/cssstyle/lib/properties/borderTop.js +17 -0
  178. package/node_modules_lambda/cssstyle/lib/properties/borderTopColor.js +16 -0
  179. package/node_modules_lambda/cssstyle/lib/properties/borderTopStyle.js +21 -0
  180. package/node_modules_lambda/cssstyle/lib/properties/borderTopWidth.js +17 -0
  181. package/node_modules_lambda/cssstyle/lib/properties/borderWidth.js +46 -0
  182. package/node_modules_lambda/cssstyle/lib/properties/bottom.js +14 -0
  183. package/node_modules_lambda/cssstyle/lib/properties/clear.js +16 -0
  184. package/node_modules_lambda/cssstyle/lib/properties/clip.js +47 -0
  185. package/node_modules_lambda/cssstyle/lib/properties/color.js +14 -0
  186. package/node_modules_lambda/cssstyle/lib/properties/cssFloat.js +12 -0
  187. package/node_modules_lambda/cssstyle/lib/properties/flex.js +45 -0
  188. package/node_modules_lambda/cssstyle/lib/properties/flexBasis.js +28 -0
  189. package/node_modules_lambda/cssstyle/lib/properties/flexGrow.js +19 -0
  190. package/node_modules_lambda/cssstyle/lib/properties/flexShrink.js +19 -0
  191. package/node_modules_lambda/cssstyle/lib/properties/float.js +12 -0
  192. package/node_modules_lambda/cssstyle/lib/properties/floodColor.js +14 -0
  193. package/node_modules_lambda/cssstyle/lib/properties/font.js +43 -0
  194. package/node_modules_lambda/cssstyle/lib/properties/fontFamily.js +33 -0
  195. package/node_modules_lambda/cssstyle/lib/properties/fontSize.js +38 -0
  196. package/node_modules_lambda/cssstyle/lib/properties/fontStyle.js +18 -0
  197. package/node_modules_lambda/cssstyle/lib/properties/fontVariant.js +18 -0
  198. package/node_modules_lambda/cssstyle/lib/properties/fontWeight.js +33 -0
  199. package/node_modules_lambda/cssstyle/lib/properties/height.js +24 -0
  200. package/node_modules_lambda/cssstyle/lib/properties/left.js +14 -0
  201. package/node_modules_lambda/cssstyle/lib/properties/lightingColor.js +14 -0
  202. package/node_modules_lambda/cssstyle/lib/properties/lineHeight.js +26 -0
  203. package/node_modules_lambda/cssstyle/lib/properties/margin.js +68 -0
  204. package/node_modules_lambda/cssstyle/lib/properties/marginBottom.js +13 -0
  205. package/node_modules_lambda/cssstyle/lib/properties/marginLeft.js +13 -0
  206. package/node_modules_lambda/cssstyle/lib/properties/marginRight.js +13 -0
  207. package/node_modules_lambda/cssstyle/lib/properties/marginTop.js +13 -0
  208. package/node_modules_lambda/cssstyle/lib/properties/opacity.js +14 -0
  209. package/node_modules_lambda/cssstyle/lib/properties/outlineColor.js +14 -0
  210. package/node_modules_lambda/cssstyle/lib/properties/padding.js +61 -0
  211. package/node_modules_lambda/cssstyle/lib/properties/paddingBottom.js +13 -0
  212. package/node_modules_lambda/cssstyle/lib/properties/paddingLeft.js +13 -0
  213. package/node_modules_lambda/cssstyle/lib/properties/paddingRight.js +13 -0
  214. package/node_modules_lambda/cssstyle/lib/properties/paddingTop.js +13 -0
  215. package/node_modules_lambda/cssstyle/lib/properties/right.js +14 -0
  216. package/node_modules_lambda/cssstyle/lib/properties/stopColor.js +14 -0
  217. package/node_modules_lambda/cssstyle/lib/properties/textLineThroughColor.js +14 -0
  218. package/node_modules_lambda/cssstyle/lib/properties/textOverlineColor.js +14 -0
  219. package/node_modules_lambda/cssstyle/lib/properties/textUnderlineColor.js +14 -0
  220. package/node_modules_lambda/cssstyle/lib/properties/top.js +14 -0
  221. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
  222. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
  223. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
  224. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
  225. package/node_modules_lambda/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
  226. package/node_modules_lambda/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
  227. package/node_modules_lambda/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
  228. package/node_modules_lambda/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
  229. package/node_modules_lambda/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
  230. package/node_modules_lambda/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
  231. package/node_modules_lambda/cssstyle/lib/properties/width.js +24 -0
  232. package/node_modules_lambda/cssstyle/lib/properties.js +1833 -0
  233. package/node_modules_lambda/cssstyle/lib/utils/colorSpace.js +21 -0
  234. package/node_modules_lambda/cssstyle/lib/utils/getBasicPropertyDescriptor.js +14 -0
  235. package/node_modules_lambda/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
  236. package/node_modules_lambda/cssstyle/node_modules/cssom/README.mdown +67 -0
  237. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  238. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  239. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
  240. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
  241. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  242. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  243. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
  244. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
  245. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
  246. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  247. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  248. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  249. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  250. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
  251. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  252. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
  253. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
  254. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
  255. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/clone.js +82 -0
  256. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/index.js +21 -0
  257. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/parse.js +464 -0
  258. package/node_modules_lambda/cssstyle/node_modules/cssom/package.json +18 -0
  259. package/node_modules_lambda/cssstyle/package.json +72 -0
  260. package/node_modules_lambda/data-urls/LICENSE.txt +7 -0
  261. package/node_modules_lambda/data-urls/README.md +62 -0
  262. package/node_modules_lambda/data-urls/lib/parser.js +69 -0
  263. package/node_modules_lambda/data-urls/lib/utils.js +18 -0
  264. package/node_modules_lambda/data-urls/node_modules/whatwg-url/LICENSE.txt +21 -0
  265. package/node_modules_lambda/data-urls/node_modules/whatwg-url/README.md +106 -0
  266. package/node_modules_lambda/data-urls/node_modules/whatwg-url/index.js +27 -0
  267. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/Function.js +42 -0
  268. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL-impl.js +209 -0
  269. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL.js +442 -0
  270. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams-impl.js +130 -0
  271. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams.js +472 -0
  272. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/VoidFunction.js +26 -0
  273. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/encoding.js +16 -0
  274. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/infra.js +26 -0
  275. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
  276. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/url-state-machine.js +1244 -0
  277. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/urlencoded.js +106 -0
  278. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/utils.js +190 -0
  279. package/node_modules_lambda/data-urls/node_modules/whatwg-url/package.json +58 -0
  280. package/node_modules_lambda/data-urls/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
  281. package/node_modules_lambda/data-urls/package.json +54 -0
  282. package/node_modules_lambda/debug/LICENSE +20 -0
  283. package/node_modules_lambda/debug/README.md +481 -0
  284. package/node_modules_lambda/debug/package.json +59 -0
  285. package/node_modules_lambda/debug/src/browser.js +269 -0
  286. package/node_modules_lambda/debug/src/common.js +274 -0
  287. package/node_modules_lambda/debug/src/index.js +10 -0
  288. package/node_modules_lambda/debug/src/node.js +263 -0
  289. package/node_modules_lambda/decimal.js/CHANGELOG.md +231 -0
  290. package/node_modules_lambda/decimal.js/LICENCE.md +23 -0
  291. package/node_modules_lambda/decimal.js/README.md +246 -0
  292. package/node_modules_lambda/decimal.js/decimal.d.ts +300 -0
  293. package/node_modules_lambda/decimal.js/decimal.js +4934 -0
  294. package/node_modules_lambda/decimal.js/decimal.mjs +4898 -0
  295. package/node_modules_lambda/decimal.js/package.json +40 -0
  296. package/node_modules_lambda/deep-is/.travis.yml +5 -0
  297. package/node_modules_lambda/deep-is/LICENSE +22 -0
  298. package/node_modules_lambda/deep-is/README.markdown +70 -0
  299. package/node_modules_lambda/deep-is/example/cmp.js +11 -0
  300. package/node_modules_lambda/deep-is/index.js +102 -0
  301. package/node_modules_lambda/deep-is/package.json +58 -0
  302. package/node_modules_lambda/deep-is/test/NaN.js +16 -0
  303. package/node_modules_lambda/deep-is/test/cmp.js +23 -0
  304. package/node_modules_lambda/deep-is/test/neg-vs-pos-0.js +15 -0
  305. package/node_modules_lambda/delayed-stream/License +19 -0
  306. package/node_modules_lambda/delayed-stream/Makefile +7 -0
  307. package/node_modules_lambda/delayed-stream/Readme.md +141 -0
  308. package/node_modules_lambda/delayed-stream/lib/delayed_stream.js +107 -0
  309. package/node_modules_lambda/delayed-stream/package.json +27 -0
  310. package/node_modules_lambda/domexception/LICENSE.txt +21 -0
  311. package/node_modules_lambda/domexception/README.md +31 -0
  312. package/node_modules_lambda/domexception/index.js +7 -0
  313. package/node_modules_lambda/domexception/lib/DOMException-impl.js +22 -0
  314. package/node_modules_lambda/domexception/lib/DOMException.js +222 -0
  315. package/node_modules_lambda/domexception/lib/Function.js +42 -0
  316. package/node_modules_lambda/domexception/lib/VoidFunction.js +26 -0
  317. package/node_modules_lambda/domexception/lib/legacy-error-codes.json +24 -0
  318. package/node_modules_lambda/domexception/lib/utils.js +190 -0
  319. package/node_modules_lambda/domexception/package.json +42 -0
  320. package/node_modules_lambda/domexception/webidl2js-wrapper.js +15 -0
  321. package/node_modules_lambda/escodegen/LICENSE.BSD +21 -0
  322. package/node_modules_lambda/escodegen/README.md +84 -0
  323. package/node_modules_lambda/escodegen/bin/escodegen.js +77 -0
  324. package/node_modules_lambda/escodegen/bin/esgenerate.js +64 -0
  325. package/node_modules_lambda/escodegen/escodegen.js +2647 -0
  326. package/node_modules_lambda/escodegen/node_modules/estraverse/.jshintrc +16 -0
  327. package/node_modules_lambda/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
  328. package/node_modules_lambda/escodegen/node_modules/estraverse/README.md +153 -0
  329. package/node_modules_lambda/escodegen/node_modules/estraverse/estraverse.js +805 -0
  330. package/node_modules_lambda/escodegen/node_modules/estraverse/gulpfile.js +70 -0
  331. package/node_modules_lambda/escodegen/node_modules/estraverse/package.json +40 -0
  332. package/node_modules_lambda/escodegen/node_modules/levn/LICENSE +22 -0
  333. package/node_modules_lambda/escodegen/node_modules/levn/README.md +196 -0
  334. package/node_modules_lambda/escodegen/node_modules/levn/lib/cast.js +298 -0
  335. package/node_modules_lambda/escodegen/node_modules/levn/lib/coerce.js +285 -0
  336. package/node_modules_lambda/escodegen/node_modules/levn/lib/index.js +22 -0
  337. package/node_modules_lambda/escodegen/node_modules/levn/lib/parse-string.js +113 -0
  338. package/node_modules_lambda/escodegen/node_modules/levn/lib/parse.js +102 -0
  339. package/node_modules_lambda/escodegen/node_modules/levn/package.json +47 -0
  340. package/node_modules_lambda/escodegen/node_modules/optionator/CHANGELOG.md +56 -0
  341. package/node_modules_lambda/escodegen/node_modules/optionator/LICENSE +22 -0
  342. package/node_modules_lambda/escodegen/node_modules/optionator/README.md +238 -0
  343. package/node_modules_lambda/escodegen/node_modules/optionator/lib/help.js +260 -0
  344. package/node_modules_lambda/escodegen/node_modules/optionator/lib/index.js +465 -0
  345. package/node_modules_lambda/escodegen/node_modules/optionator/lib/util.js +54 -0
  346. package/node_modules_lambda/escodegen/node_modules/optionator/package.json +44 -0
  347. package/node_modules_lambda/escodegen/node_modules/prelude-ls/CHANGELOG.md +99 -0
  348. package/node_modules_lambda/escodegen/node_modules/prelude-ls/LICENSE +22 -0
  349. package/node_modules_lambda/escodegen/node_modules/prelude-ls/README.md +15 -0
  350. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Func.js +65 -0
  351. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/List.js +686 -0
  352. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Num.js +130 -0
  353. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Obj.js +154 -0
  354. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Str.js +92 -0
  355. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/index.js +178 -0
  356. package/node_modules_lambda/escodegen/node_modules/prelude-ls/package.json +52 -0
  357. package/node_modules_lambda/escodegen/node_modules/source-map/CHANGELOG.md +301 -0
  358. package/node_modules_lambda/escodegen/node_modules/source-map/LICENSE +28 -0
  359. package/node_modules_lambda/escodegen/node_modules/source-map/README.md +742 -0
  360. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.debug.js +3234 -0
  361. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.js +3233 -0
  362. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js +2 -0
  363. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js.map +1 -0
  364. package/node_modules_lambda/escodegen/node_modules/source-map/lib/array-set.js +121 -0
  365. package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64-vlq.js +140 -0
  366. package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64.js +67 -0
  367. package/node_modules_lambda/escodegen/node_modules/source-map/lib/binary-search.js +111 -0
  368. package/node_modules_lambda/escodegen/node_modules/source-map/lib/mapping-list.js +79 -0
  369. package/node_modules_lambda/escodegen/node_modules/source-map/lib/quick-sort.js +114 -0
  370. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  371. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-generator.js +425 -0
  372. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-node.js +413 -0
  373. package/node_modules_lambda/escodegen/node_modules/source-map/lib/util.js +488 -0
  374. package/node_modules_lambda/escodegen/node_modules/source-map/package.json +73 -0
  375. package/node_modules_lambda/escodegen/node_modules/source-map/source-map.d.ts +98 -0
  376. package/node_modules_lambda/escodegen/node_modules/source-map/source-map.js +8 -0
  377. package/node_modules_lambda/escodegen/node_modules/type-check/LICENSE +22 -0
  378. package/node_modules_lambda/escodegen/node_modules/type-check/README.md +210 -0
  379. package/node_modules_lambda/escodegen/node_modules/type-check/lib/check.js +126 -0
  380. package/node_modules_lambda/escodegen/node_modules/type-check/lib/index.js +16 -0
  381. package/node_modules_lambda/escodegen/node_modules/type-check/lib/parse-type.js +196 -0
  382. package/node_modules_lambda/escodegen/node_modules/type-check/package.json +40 -0
  383. package/node_modules_lambda/escodegen/package.json +62 -0
  384. package/node_modules_lambda/esprima/ChangeLog +235 -0
  385. package/node_modules_lambda/esprima/LICENSE.BSD +21 -0
  386. package/node_modules_lambda/esprima/README.md +46 -0
  387. package/node_modules_lambda/esprima/bin/esparse.js +139 -0
  388. package/node_modules_lambda/esprima/bin/esvalidate.js +236 -0
  389. package/node_modules_lambda/esprima/dist/esprima.js +6709 -0
  390. package/node_modules_lambda/esprima/package.json +112 -0
  391. package/node_modules_lambda/esutils/LICENSE.BSD +19 -0
  392. package/node_modules_lambda/esutils/README.md +174 -0
  393. package/node_modules_lambda/esutils/lib/ast.js +144 -0
  394. package/node_modules_lambda/esutils/lib/code.js +135 -0
  395. package/node_modules_lambda/esutils/lib/keyword.js +165 -0
  396. package/node_modules_lambda/esutils/lib/utils.js +33 -0
  397. package/node_modules_lambda/esutils/package.json +44 -0
  398. package/node_modules_lambda/fast-levenshtein/LICENSE.md +25 -0
  399. package/node_modules_lambda/fast-levenshtein/README.md +104 -0
  400. package/node_modules_lambda/fast-levenshtein/levenshtein.js +136 -0
  401. package/node_modules_lambda/fast-levenshtein/package.json +39 -0
  402. package/node_modules_lambda/form-data/License +19 -0
  403. package/node_modules_lambda/form-data/README.md.bak +358 -0
  404. package/node_modules_lambda/form-data/Readme.md +358 -0
  405. package/node_modules_lambda/form-data/index.d.ts +62 -0
  406. package/node_modules_lambda/form-data/lib/browser.js +2 -0
  407. package/node_modules_lambda/form-data/lib/form_data.js +501 -0
  408. package/node_modules_lambda/form-data/lib/populate.js +10 -0
  409. package/node_modules_lambda/form-data/package.json +68 -0
  410. package/node_modules_lambda/html-encoding-sniffer/LICENSE.txt +7 -0
  411. package/node_modules_lambda/html-encoding-sniffer/README.md +40 -0
  412. package/node_modules_lambda/html-encoding-sniffer/lib/html-encoding-sniffer.js +295 -0
  413. package/node_modules_lambda/html-encoding-sniffer/package.json +31 -0
  414. package/node_modules_lambda/http-proxy-agent/README.md +74 -0
  415. package/node_modules_lambda/http-proxy-agent/dist/agent.d.ts +32 -0
  416. package/node_modules_lambda/http-proxy-agent/dist/agent.js +145 -0
  417. package/node_modules_lambda/http-proxy-agent/dist/agent.js.map +1 -0
  418. package/node_modules_lambda/http-proxy-agent/dist/index.d.ts +21 -0
  419. package/node_modules_lambda/http-proxy-agent/dist/index.js +14 -0
  420. package/node_modules_lambda/http-proxy-agent/dist/index.js.map +1 -0
  421. package/node_modules_lambda/http-proxy-agent/package.json +57 -0
  422. package/node_modules_lambda/https-proxy-agent/README.md +137 -0
  423. package/node_modules_lambda/https-proxy-agent/dist/agent.d.ts +30 -0
  424. package/node_modules_lambda/https-proxy-agent/dist/agent.js +177 -0
  425. package/node_modules_lambda/https-proxy-agent/dist/agent.js.map +1 -0
  426. package/node_modules_lambda/https-proxy-agent/dist/index.d.ts +23 -0
  427. package/node_modules_lambda/https-proxy-agent/dist/index.js +14 -0
  428. package/node_modules_lambda/https-proxy-agent/dist/index.js.map +1 -0
  429. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  430. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  431. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  432. package/node_modules_lambda/https-proxy-agent/package.json +56 -0
  433. package/node_modules_lambda/is-potential-custom-element-name/LICENSE-MIT.txt +20 -0
  434. package/node_modules_lambda/is-potential-custom-element-name/README.md +40 -0
  435. package/node_modules_lambda/is-potential-custom-element-name/index.js +9 -0
  436. package/node_modules_lambda/is-potential-custom-element-name/package.json +35 -0
  437. package/node_modules_lambda/jsdom/LICENSE.txt +22 -0
  438. package/node_modules_lambda/jsdom/README.md +522 -0
  439. package/node_modules_lambda/jsdom/lib/api.js +333 -0
  440. package/node_modules_lambda/jsdom/lib/jsdom/browser/Window.js +933 -0
  441. package/node_modules_lambda/jsdom/lib/jsdom/browser/default-stylesheet.js +789 -0
  442. package/node_modules_lambda/jsdom/lib/jsdom/browser/js-globals.json +307 -0
  443. package/node_modules_lambda/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
  444. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/html.js +224 -0
  445. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/index.js +37 -0
  446. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
  447. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
  448. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +8 -0
  449. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +95 -0
  450. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
  451. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-loader.js +142 -0
  452. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
  453. package/node_modules_lambda/jsdom/lib/jsdom/level2/style.js +57 -0
  454. package/node_modules_lambda/jsdom/lib/jsdom/level3/xpath.js +1874 -0
  455. package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
  456. package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +69 -0
  457. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
  458. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
  459. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes.js +312 -0
  460. package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
  461. package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
  462. package/node_modules_lambda/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
  463. package/node_modules_lambda/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +265 -0
  464. package/node_modules_lambda/jsdom/lib/jsdom/living/documents.js +15 -0
  465. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +58 -0
  466. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +29 -0
  467. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
  468. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
  469. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/serialization.js +45 -0
  470. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
  471. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
  472. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
  473. package/node_modules_lambda/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
  474. package/node_modules_lambda/jsdom/lib/jsdom/living/events/Event-impl.js +197 -0
  475. package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +18 -0
  476. package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventTarget-impl.js +405 -0
  477. package/node_modules_lambda/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
  478. package/node_modules_lambda/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
  479. package/node_modules_lambda/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
  480. package/node_modules_lambda/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
  481. package/node_modules_lambda/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
  482. package/node_modules_lambda/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +49 -0
  483. package/node_modules_lambda/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
  484. package/node_modules_lambda/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
  485. package/node_modules_lambda/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
  486. package/node_modules_lambda/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
  487. package/node_modules_lambda/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
  488. package/node_modules_lambda/jsdom/lib/jsdom/living/events/UIEvent-impl.js +59 -0
  489. package/node_modules_lambda/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
  490. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/Headers-impl.js +170 -0
  491. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-list.js +54 -0
  492. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-types.js +103 -0
  493. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/Blob-impl.js +93 -0
  494. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
  495. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
  496. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +130 -0
  497. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortController.js +143 -0
  498. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortSignal.js +184 -0
  499. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbstractRange.js +171 -0
  500. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +44 -0
  501. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +28 -0
  502. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Attr.js +217 -0
  503. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BarProp.js +117 -0
  504. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BinaryType.js +12 -0
  505. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Blob.js +203 -0
  506. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobCallback.js +30 -0
  507. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +42 -0
  508. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CDATASection.js +109 -0
  509. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +12 -0
  510. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CharacterData.js +453 -0
  511. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEvent.js +168 -0
  512. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEventInit.js +65 -0
  513. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Comment.js +120 -0
  514. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEvent.js +219 -0
  515. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +32 -0
  516. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +34 -0
  517. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +242 -0
  518. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEvent.js +206 -0
  519. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEventInit.js +32 -0
  520. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMImplementation.js +237 -0
  521. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMParser.js +140 -0
  522. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMStringMap.js +323 -0
  523. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMTokenList.js +563 -0
  524. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Document.js +3593 -0
  525. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentFragment.js +334 -0
  526. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +12 -0
  527. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentType.js +252 -0
  528. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Element.js +1718 -0
  529. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +26 -0
  530. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +29 -0
  531. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EndingType.js +12 -0
  532. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEvent.js +192 -0
  533. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +92 -0
  534. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Event.js +430 -0
  535. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +36 -0
  536. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventInit.js +58 -0
  537. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListener.js +35 -0
  538. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +28 -0
  539. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventModifierInit.js +221 -0
  540. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventTarget.js +259 -0
  541. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/External.js +130 -0
  542. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/File.js +177 -0
  543. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileList.js +324 -0
  544. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +33 -0
  545. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileReader.js +468 -0
  546. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEvent.js +144 -0
  547. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEventInit.js +36 -0
  548. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FormData.js +452 -0
  549. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Function.js +42 -0
  550. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +31 -0
  551. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +1023 -0
  552. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +822 -0
  553. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +110 -0
  554. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +153 -0
  555. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +193 -0
  556. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +877 -0
  557. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +522 -0
  558. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +304 -0
  559. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCollection.js +378 -0
  560. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +156 -0
  561. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +153 -0
  562. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +125 -0
  563. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +156 -0
  564. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +156 -0
  565. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +156 -0
  566. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +153 -0
  567. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLElement.js +2549 -0
  568. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +371 -0
  569. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +329 -0
  570. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +236 -0
  571. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +501 -0
  572. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +494 -0
  573. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +708 -0
  574. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +320 -0
  575. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +110 -0
  576. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +153 -0
  577. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +153 -0
  578. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +670 -0
  579. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +870 -0
  580. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +1875 -0
  581. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +199 -0
  582. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +179 -0
  583. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +166 -0
  584. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +542 -0
  585. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +168 -0
  586. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +546 -0
  587. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +888 -0
  588. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +156 -0
  589. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +276 -0
  590. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +365 -0
  591. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLModElement.js +207 -0
  592. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +281 -0
  593. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +921 -0
  594. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +197 -0
  595. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +376 -0
  596. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +537 -0
  597. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +392 -0
  598. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +153 -0
  599. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +276 -0
  600. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +110 -0
  601. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +158 -0
  602. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +218 -0
  603. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +166 -0
  604. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +459 -0
  605. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +1013 -0
  606. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +192 -0
  607. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +330 -0
  608. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +110 -0
  609. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +207 -0
  610. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +153 -0
  611. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +700 -0
  612. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +364 -0
  613. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +799 -0
  614. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +414 -0
  615. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +346 -0
  616. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +123 -0
  617. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +1171 -0
  618. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +153 -0
  619. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +152 -0
  620. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +356 -0
  621. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +197 -0
  622. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +109 -0
  623. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +329 -0
  624. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +157 -0
  625. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +50 -0
  626. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Headers.js +408 -0
  627. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/History.js +266 -0
  628. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEvent.js +168 -0
  629. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEventInit.js +68 -0
  630. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +445 -0
  631. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +116 -0
  632. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Location.js +404 -0
  633. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEvent.js +317 -0
  634. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEventInit.js +100 -0
  635. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeType.js +156 -0
  636. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +352 -0
  637. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEvent.js +499 -0
  638. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEventInit.js +111 -0
  639. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationCallback.js +34 -0
  640. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserver.js +178 -0
  641. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +121 -0
  642. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationRecord.js +229 -0
  643. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +553 -0
  644. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Navigator.js +326 -0
  645. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Node.js +763 -0
  646. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeFilter.js +75 -0
  647. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeIterator.js +207 -0
  648. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeList.js +328 -0
  649. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +42 -0
  650. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +56 -0
  651. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +144 -0
  652. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +35 -0
  653. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Performance.js +142 -0
  654. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Plugin.js +385 -0
  655. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PluginArray.js +362 -0
  656. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEvent.js +144 -0
  657. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
  658. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +122 -0
  659. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEvent.js +170 -0
  660. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +65 -0
  661. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Range.js +641 -0
  662. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +149 -0
  663. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +64 -0
  664. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGElement.js +2227 -0
  665. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +139 -0
  666. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGNumber.js +132 -0
  667. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +737 -0
  668. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGStringList.js +537 -0
  669. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +109 -0
  670. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Screen.js +180 -0
  671. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +12 -0
  672. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +45 -0
  673. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +14 -0
  674. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollOptions.js +30 -0
  675. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +12 -0
  676. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Selection.js +569 -0
  677. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SelectionMode.js +12 -0
  678. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRoot.js +187 -0
  679. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +30 -0
  680. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +12 -0
  681. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRange.js +123 -0
  682. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +72 -0
  683. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Storage.js +423 -0
  684. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEvent.js +318 -0
  685. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEventInit.js +99 -0
  686. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StyleSheetList.js +326 -0
  687. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SupportedType.js +18 -0
  688. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Text.js +170 -0
  689. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TextTrackKind.js +12 -0
  690. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEvent.js +222 -0
  691. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEventInit.js +89 -0
  692. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TreeWalker.js +255 -0
  693. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEvent.js +235 -0
  694. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEventInit.js +62 -0
  695. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ValidityState.js +249 -0
  696. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VisibilityState.js +12 -0
  697. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VoidFunction.js +26 -0
  698. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WebSocket.js +476 -0
  699. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEvent.js +191 -0
  700. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEventInit.js +71 -0
  701. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLDocument.js +109 -0
  702. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +655 -0
  703. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +334 -0
  704. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +14 -0
  705. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +109 -0
  706. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLSerializer.js +132 -0
  707. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/utils.js +190 -0
  708. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/agent-factory.js +15 -0
  709. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/binary-data.js +9 -0
  710. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-element.js +320 -0
  711. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +188 -0
  712. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/custom-elements.js +270 -0
  713. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
  714. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/details.js +15 -0
  715. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/document-base-url.js +54 -0
  716. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/events.js +24 -0
  717. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
  718. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/form-controls.js +306 -0
  719. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
  720. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/http-request.js +254 -0
  721. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
  722. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
  723. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/json.js +12 -0
  724. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
  725. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/namespaces.js +15 -0
  726. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/node.js +68 -0
  727. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
  728. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
  729. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/page-transition-event.js +9 -0
  730. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +76 -0
  731. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/selectors.js +47 -0
  732. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
  733. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/strings.js +148 -0
  734. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/style-rules.js +114 -0
  735. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/stylesheets.js +113 -0
  736. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
  737. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
  738. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/text.js +19 -0
  739. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
  740. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/validate-names.js +65 -0
  741. package/node_modules_lambda/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +25 -0
  742. package/node_modules_lambda/jsdom/lib/jsdom/living/interfaces.js +217 -0
  743. package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
  744. package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
  745. package/node_modules_lambda/jsdom/lib/jsdom/living/named-properties-window.js +141 -0
  746. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
  747. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
  748. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
  749. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
  750. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
  751. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
  752. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
  753. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
  754. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
  755. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
  756. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
  757. package/node_modules_lambda/jsdom/lib/jsdom/living/node-document-position.js +10 -0
  758. package/node_modules_lambda/jsdom/lib/jsdom/living/node-type.js +16 -0
  759. package/node_modules_lambda/jsdom/lib/jsdom/living/node.js +331 -0
  760. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
  761. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
  762. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
  763. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
  764. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
  765. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
  766. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
  767. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Document-impl.js +946 -0
  768. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
  769. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
  770. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
  771. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Element-impl.js +582 -0
  772. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +25 -0
  773. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
  774. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +95 -0
  775. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
  776. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
  777. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
  778. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
  779. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
  780. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +17 -0
  781. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
  782. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +130 -0
  783. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
  784. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
  785. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
  786. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
  787. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
  788. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
  789. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
  790. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
  791. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +160 -0
  792. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
  793. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
  794. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
  795. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +232 -0
  796. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +261 -0
  797. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +17 -0
  798. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
  799. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
  800. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
  801. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
  802. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +371 -0
  803. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
  804. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +132 -0
  805. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1129 -0
  806. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
  807. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
  808. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
  809. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +101 -0
  810. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
  811. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
  812. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
  813. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
  814. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
  815. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
  816. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
  817. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
  818. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
  819. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
  820. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
  821. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
  822. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +85 -0
  823. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
  824. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
  825. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
  826. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
  827. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
  828. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +74 -0
  829. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
  830. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +265 -0
  831. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
  832. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
  833. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
  834. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
  835. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +74 -0
  836. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
  837. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
  838. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
  839. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
  840. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
  841. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
  842. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
  843. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +272 -0
  844. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
  845. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
  846. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
  847. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
  848. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
  849. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
  850. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
  851. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Node-impl.js +1159 -0
  852. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
  853. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
  854. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
  855. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
  856. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
  857. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
  858. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
  859. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +42 -0
  860. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
  861. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
  862. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +40 -0
  863. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
  864. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
  865. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +52 -0
  866. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
  867. package/node_modules_lambda/jsdom/lib/jsdom/living/post-message.js +39 -0
  868. package/node_modules_lambda/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
  869. package/node_modules_lambda/jsdom/lib/jsdom/living/range/Range-impl.js +897 -0
  870. package/node_modules_lambda/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
  871. package/node_modules_lambda/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
  872. package/node_modules_lambda/jsdom/lib/jsdom/living/selection/Selection-impl.js +342 -0
  873. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +38 -0
  874. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
  875. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
  876. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
  877. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +127 -0
  878. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
  879. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
  880. package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +175 -0
  881. package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +328 -0
  882. package/node_modules_lambda/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
  883. package/node_modules_lambda/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
  884. package/node_modules_lambda/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
  885. package/node_modules_lambda/jsdom/lib/jsdom/living/window/History-impl.js +134 -0
  886. package/node_modules_lambda/jsdom/lib/jsdom/living/window/Location-impl.js +238 -0
  887. package/node_modules_lambda/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
  888. package/node_modules_lambda/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
  889. package/node_modules_lambda/jsdom/lib/jsdom/living/window/navigation.js +85 -0
  890. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/FormData-impl.js +171 -0
  891. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1023 -0
  892. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
  893. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
  894. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +60 -0
  895. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-utils.js +438 -0
  896. package/node_modules_lambda/jsdom/lib/jsdom/named-properties-tracker.js +158 -0
  897. package/node_modules_lambda/jsdom/lib/jsdom/utils.js +165 -0
  898. package/node_modules_lambda/jsdom/lib/jsdom/virtual-console.js +34 -0
  899. package/node_modules_lambda/jsdom/lib/jsdom/vm-shim.js +106 -0
  900. package/node_modules_lambda/jsdom/package.json +116 -0
  901. package/node_modules_lambda/mime-db/HISTORY.md +507 -0
  902. package/node_modules_lambda/mime-db/LICENSE +23 -0
  903. package/node_modules_lambda/mime-db/README.md +100 -0
  904. package/node_modules_lambda/mime-db/db.json +8519 -0
  905. package/node_modules_lambda/mime-db/index.js +12 -0
  906. package/node_modules_lambda/mime-db/package.json +60 -0
  907. package/node_modules_lambda/mime-types/HISTORY.md +397 -0
  908. package/node_modules_lambda/mime-types/LICENSE +23 -0
  909. package/node_modules_lambda/mime-types/README.md +113 -0
  910. package/node_modules_lambda/mime-types/index.js +188 -0
  911. package/node_modules_lambda/mime-types/package.json +44 -0
  912. package/node_modules_lambda/ms/index.js +162 -0
  913. package/node_modules_lambda/ms/license.md +21 -0
  914. package/node_modules_lambda/ms/package.json +37 -0
  915. package/node_modules_lambda/ms/readme.md +60 -0
  916. package/node_modules_lambda/nwsapi/LICENSE +22 -0
  917. package/node_modules_lambda/nwsapi/README.md +132 -0
  918. package/node_modules_lambda/nwsapi/dist/lint.log +0 -0
  919. package/node_modules_lambda/nwsapi/package.json +38 -0
  920. package/node_modules_lambda/nwsapi/src/modules/nwsapi-jquery.js +135 -0
  921. package/node_modules_lambda/nwsapi/src/modules/nwsapi-traversal.js +90 -0
  922. package/node_modules_lambda/nwsapi/src/nwsapi.js +1800 -0
  923. package/node_modules_lambda/parse5/LICENSE +19 -0
  924. package/node_modules_lambda/parse5/README.md +38 -0
  925. package/node_modules_lambda/parse5/lib/common/doctype.js +162 -0
  926. package/node_modules_lambda/parse5/lib/common/error-codes.js +65 -0
  927. package/node_modules_lambda/parse5/lib/common/foreign-content.js +265 -0
  928. package/node_modules_lambda/parse5/lib/common/html.js +272 -0
  929. package/node_modules_lambda/parse5/lib/common/unicode.js +109 -0
  930. package/node_modules_lambda/parse5/lib/extensions/error-reporting/mixin-base.js +43 -0
  931. package/node_modules_lambda/parse5/lib/extensions/error-reporting/parser-mixin.js +52 -0
  932. package/node_modules_lambda/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +24 -0
  933. package/node_modules_lambda/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +17 -0
  934. package/node_modules_lambda/parse5/lib/extensions/location-info/open-element-stack-mixin.js +35 -0
  935. package/node_modules_lambda/parse5/lib/extensions/location-info/parser-mixin.js +223 -0
  936. package/node_modules_lambda/parse5/lib/extensions/location-info/tokenizer-mixin.js +146 -0
  937. package/node_modules_lambda/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +64 -0
  938. package/node_modules_lambda/parse5/lib/index.js +29 -0
  939. package/node_modules_lambda/parse5/lib/parser/formatting-element-list.js +181 -0
  940. package/node_modules_lambda/parse5/lib/parser/index.js +2956 -0
  941. package/node_modules_lambda/parse5/lib/parser/open-element-stack.js +482 -0
  942. package/node_modules_lambda/parse5/lib/serializer/index.js +176 -0
  943. package/node_modules_lambda/parse5/lib/tokenizer/index.js +2196 -0
  944. package/node_modules_lambda/parse5/lib/tokenizer/named-entity-data.js +5 -0
  945. package/node_modules_lambda/parse5/lib/tokenizer/preprocessor.js +159 -0
  946. package/node_modules_lambda/parse5/lib/tree-adapters/default.js +221 -0
  947. package/node_modules_lambda/parse5/lib/utils/merge-options.js +13 -0
  948. package/node_modules_lambda/parse5/lib/utils/mixin.js +39 -0
  949. package/node_modules_lambda/parse5/package.json +35 -0
  950. package/node_modules_lambda/psl/LICENSE +9 -0
  951. package/node_modules_lambda/psl/README.md +215 -0
  952. package/node_modules_lambda/psl/browserstack-logo.svg +90 -0
  953. package/node_modules_lambda/psl/data/rules.json +8834 -0
  954. package/node_modules_lambda/psl/dist/psl.js +9645 -0
  955. package/node_modules_lambda/psl/dist/psl.min.js +1 -0
  956. package/node_modules_lambda/psl/index.js +269 -0
  957. package/node_modules_lambda/psl/package.json +44 -0
  958. package/node_modules_lambda/punycode/LICENSE-MIT.txt +20 -0
  959. package/node_modules_lambda/punycode/README.md +122 -0
  960. package/node_modules_lambda/punycode/package.json +58 -0
  961. package/node_modules_lambda/punycode/punycode.es6.js +441 -0
  962. package/node_modules_lambda/punycode/punycode.js +440 -0
  963. package/node_modules_lambda/safer-buffer/LICENSE +21 -0
  964. package/node_modules_lambda/safer-buffer/Porting-Buffer.md +268 -0
  965. package/node_modules_lambda/safer-buffer/Readme.md +156 -0
  966. package/node_modules_lambda/safer-buffer/dangerous.js +58 -0
  967. package/node_modules_lambda/safer-buffer/package.json +34 -0
  968. package/node_modules_lambda/safer-buffer/safer.js +77 -0
  969. package/node_modules_lambda/safer-buffer/tests.js +406 -0
  970. package/node_modules_lambda/saxes/README.md +323 -0
  971. package/node_modules_lambda/saxes/package.json +70 -0
  972. package/node_modules_lambda/saxes/saxes.d.ts +635 -0
  973. package/node_modules_lambda/saxes/saxes.js +2064 -0
  974. package/node_modules_lambda/saxes/saxes.js.map +1 -0
  975. package/node_modules_lambda/symbol-tree/LICENSE +21 -0
  976. package/node_modules_lambda/symbol-tree/README.md +545 -0
  977. package/node_modules_lambda/symbol-tree/lib/SymbolTree.js +838 -0
  978. package/node_modules_lambda/symbol-tree/lib/SymbolTreeNode.js +54 -0
  979. package/node_modules_lambda/symbol-tree/lib/TreeIterator.js +69 -0
  980. package/node_modules_lambda/symbol-tree/lib/TreePosition.js +11 -0
  981. package/node_modules_lambda/symbol-tree/package.json +47 -0
  982. package/node_modules_lambda/tough-cookie/LICENSE +12 -0
  983. package/node_modules_lambda/tough-cookie/README.md +582 -0
  984. package/node_modules_lambda/tough-cookie/lib/cookie.js +1671 -0
  985. package/node_modules_lambda/tough-cookie/lib/memstore.js +190 -0
  986. package/node_modules_lambda/tough-cookie/lib/pathMatch.js +61 -0
  987. package/node_modules_lambda/tough-cookie/lib/permuteDomain.js +70 -0
  988. package/node_modules_lambda/tough-cookie/lib/pubsuffix-psl.js +38 -0
  989. package/node_modules_lambda/tough-cookie/lib/store.js +76 -0
  990. package/node_modules_lambda/tough-cookie/lib/version.js +2 -0
  991. package/node_modules_lambda/tough-cookie/package.json +109 -0
  992. package/node_modules_lambda/tr46/LICENSE.md +21 -0
  993. package/node_modules_lambda/tr46/README.md +78 -0
  994. package/node_modules_lambda/tr46/index.js +298 -0
  995. package/node_modules_lambda/tr46/lib/mappingTable.json +1 -0
  996. package/node_modules_lambda/tr46/lib/regexes.js +29 -0
  997. package/node_modules_lambda/tr46/lib/statusMapping.js +11 -0
  998. package/node_modules_lambda/tr46/package.json +47 -0
  999. package/node_modules_lambda/universalify/LICENSE +20 -0
  1000. package/node_modules_lambda/universalify/README.md +76 -0
  1001. package/node_modules_lambda/universalify/index.js +25 -0
  1002. package/node_modules_lambda/universalify/package.json +34 -0
  1003. package/node_modules_lambda/w3c-hr-time/CHANGELOG.md +19 -0
  1004. package/node_modules_lambda/w3c-hr-time/LICENSE.md +21 -0
  1005. package/node_modules_lambda/w3c-hr-time/README.md +130 -0
  1006. package/node_modules_lambda/w3c-hr-time/index.js +11 -0
  1007. package/node_modules_lambda/w3c-hr-time/lib/calculate-clock-offset.js +39 -0
  1008. package/node_modules_lambda/w3c-hr-time/lib/clock-is-accurate.js +61 -0
  1009. package/node_modules_lambda/w3c-hr-time/lib/global-monotonic-clock.js +10 -0
  1010. package/node_modules_lambda/w3c-hr-time/lib/performance.js +53 -0
  1011. package/node_modules_lambda/w3c-hr-time/lib/utils.js +11 -0
  1012. package/node_modules_lambda/w3c-hr-time/package.json +26 -0
  1013. package/node_modules_lambda/w3c-xmlserializer/LICENSE.md +25 -0
  1014. package/node_modules_lambda/w3c-xmlserializer/README.md +41 -0
  1015. package/node_modules_lambda/w3c-xmlserializer/lib/attributes.js +125 -0
  1016. package/node_modules_lambda/w3c-xmlserializer/lib/constants.js +44 -0
  1017. package/node_modules_lambda/w3c-xmlserializer/lib/serialize.js +365 -0
  1018. package/node_modules_lambda/w3c-xmlserializer/package.json +33 -0
  1019. package/node_modules_lambda/webidl-conversions/LICENSE.md +12 -0
  1020. package/node_modules_lambda/webidl-conversions/README.md +99 -0
  1021. package/node_modules_lambda/webidl-conversions/lib/index.js +450 -0
  1022. package/node_modules_lambda/webidl-conversions/package.json +35 -0
  1023. package/node_modules_lambda/whatwg-encoding/LICENSE.txt +7 -0
  1024. package/node_modules_lambda/whatwg-encoding/README.md +50 -0
  1025. package/node_modules_lambda/whatwg-encoding/lib/labels-to-names.json +216 -0
  1026. package/node_modules_lambda/whatwg-encoding/lib/supported-names.json +37 -0
  1027. package/node_modules_lambda/whatwg-encoding/lib/whatwg-encoding.js +47 -0
  1028. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/.github/dependabot.yml +11 -0
  1029. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/Changelog.md +212 -0
  1030. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
  1031. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/README.md +130 -0
  1032. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
  1033. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
  1034. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +23 -0
  1035. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +198 -0
  1036. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  1037. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  1038. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
  1039. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  1040. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  1041. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  1042. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  1043. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  1044. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  1045. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  1046. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  1047. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +197 -0
  1048. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf32.js +319 -0
  1049. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +290 -0
  1050. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  1051. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.d.ts +41 -0
  1052. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.js +180 -0
  1053. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +109 -0
  1054. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/package.json +44 -0
  1055. package/node_modules_lambda/whatwg-encoding/package.json +33 -0
  1056. package/node_modules_lambda/whatwg-mimetype/LICENSE.txt +7 -0
  1057. package/node_modules_lambda/whatwg-mimetype/README.md +101 -0
  1058. package/node_modules_lambda/whatwg-mimetype/lib/mime-type-parameters.js +70 -0
  1059. package/node_modules_lambda/whatwg-mimetype/lib/mime-type.js +127 -0
  1060. package/node_modules_lambda/whatwg-mimetype/lib/parser.js +105 -0
  1061. package/node_modules_lambda/whatwg-mimetype/lib/serializer.js +25 -0
  1062. package/node_modules_lambda/whatwg-mimetype/lib/utils.js +60 -0
  1063. package/node_modules_lambda/whatwg-mimetype/package.json +47 -0
  1064. package/node_modules_lambda/whatwg-url/LICENSE.txt +21 -0
  1065. package/node_modules_lambda/whatwg-url/README.md +105 -0
  1066. package/node_modules_lambda/whatwg-url/index.js +25 -0
  1067. package/node_modules_lambda/whatwg-url/lib/Function.js +42 -0
  1068. package/node_modules_lambda/whatwg-url/lib/URL-impl.js +217 -0
  1069. package/node_modules_lambda/whatwg-url/lib/URL.js +442 -0
  1070. package/node_modules_lambda/whatwg-url/lib/URLSearchParams-impl.js +130 -0
  1071. package/node_modules_lambda/whatwg-url/lib/URLSearchParams.js +472 -0
  1072. package/node_modules_lambda/whatwg-url/lib/VoidFunction.js +26 -0
  1073. package/node_modules_lambda/whatwg-url/lib/encoding.js +16 -0
  1074. package/node_modules_lambda/whatwg-url/lib/infra.js +26 -0
  1075. package/node_modules_lambda/whatwg-url/lib/percent-encoding.js +142 -0
  1076. package/node_modules_lambda/whatwg-url/lib/url-state-machine.js +1234 -0
  1077. package/node_modules_lambda/whatwg-url/lib/urlencoded.js +106 -0
  1078. package/node_modules_lambda/whatwg-url/lib/utils.js +190 -0
  1079. package/node_modules_lambda/whatwg-url/package.json +58 -0
  1080. package/node_modules_lambda/whatwg-url/webidl2js-wrapper.js +7 -0
  1081. package/node_modules_lambda/word-wrap/LICENSE +21 -0
  1082. package/node_modules_lambda/word-wrap/README.md +182 -0
  1083. package/node_modules_lambda/word-wrap/index.d.ts +50 -0
  1084. package/node_modules_lambda/word-wrap/index.js +46 -0
  1085. package/node_modules_lambda/word-wrap/package.json +77 -0
  1086. package/node_modules_lambda/ws/LICENSE +19 -0
  1087. package/node_modules_lambda/ws/README.md +495 -0
  1088. package/node_modules_lambda/ws/browser.js +8 -0
  1089. package/node_modules_lambda/ws/index.js +13 -0
  1090. package/node_modules_lambda/ws/lib/buffer-util.js +127 -0
  1091. package/node_modules_lambda/ws/lib/constants.js +12 -0
  1092. package/node_modules_lambda/ws/lib/event-target.js +266 -0
  1093. package/node_modules_lambda/ws/lib/extension.js +203 -0
  1094. package/node_modules_lambda/ws/lib/limiter.js +55 -0
  1095. package/node_modules_lambda/ws/lib/permessage-deflate.js +511 -0
  1096. package/node_modules_lambda/ws/lib/receiver.js +618 -0
  1097. package/node_modules_lambda/ws/lib/sender.js +478 -0
  1098. package/node_modules_lambda/ws/lib/stream.js +159 -0
  1099. package/node_modules_lambda/ws/lib/subprotocol.js +62 -0
  1100. package/node_modules_lambda/ws/lib/validation.js +125 -0
  1101. package/node_modules_lambda/ws/lib/websocket-server.js +535 -0
  1102. package/node_modules_lambda/ws/lib/websocket.js +1296 -0
  1103. package/node_modules_lambda/ws/package.json +61 -0
  1104. package/node_modules_lambda/ws/wrapper.mjs +8 -0
  1105. package/node_modules_lambda/xml-name-validator/LICENSE.txt +176 -0
  1106. package/node_modules_lambda/xml-name-validator/README.md +35 -0
  1107. package/node_modules_lambda/xml-name-validator/lib/xml-name-validator.js +9 -0
  1108. package/node_modules_lambda/xml-name-validator/package.json +30 -0
  1109. package/node_modules_lambda/xmlchars/LICENSE +18 -0
  1110. package/node_modules_lambda/xmlchars/README.md +33 -0
  1111. package/node_modules_lambda/xmlchars/package.json +51 -0
  1112. package/node_modules_lambda/xmlchars/xml/1.0/ed4.d.ts +31 -0
  1113. package/node_modules_lambda/xmlchars/xml/1.0/ed4.js +44 -0
  1114. package/node_modules_lambda/xmlchars/xml/1.0/ed4.js.map +1 -0
  1115. package/node_modules_lambda/xmlchars/xml/1.0/ed5.d.ts +51 -0
  1116. package/node_modules_lambda/xmlchars/xml/1.0/ed5.js +105 -0
  1117. package/node_modules_lambda/xmlchars/xml/1.0/ed5.js.map +1 -0
  1118. package/node_modules_lambda/xmlchars/xml/1.1/ed2.d.ts +73 -0
  1119. package/node_modules_lambda/xmlchars/xml/1.1/ed2.js +145 -0
  1120. package/node_modules_lambda/xmlchars/xml/1.1/ed2.js.map +1 -0
  1121. package/node_modules_lambda/xmlchars/xmlchars.d.ts +170 -0
  1122. package/node_modules_lambda/xmlchars/xmlchars.js +191 -0
  1123. package/node_modules_lambda/xmlchars/xmlchars.js.map +1 -0
  1124. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  1125. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js +65 -0
  1126. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  1127. package/package.json +8 -3
@@ -0,0 +1,1129 @@
1
+ "use strict";
2
+ const DOMException = require("domexception/webidl2js-wrapper");
3
+ const FileList = require("../generated/FileList");
4
+ const Decimal = require("decimal.js");
5
+ const HTMLElementImpl = require("./HTMLElement-impl").implementation;
6
+ const idlUtils = require("../generated/utils");
7
+ const DefaultConstraintValidationImpl =
8
+ require("../constraint-validation/DefaultConstraintValidation-impl").implementation;
9
+ const ValidityState = require("../generated/ValidityState");
10
+ const { mixin } = require("../../utils");
11
+ const { domSymbolTree, cloningSteps } = require("../helpers/internal-constants");
12
+ const { getLabelsForLabelable, formOwner } = require("../helpers/form-controls");
13
+ const { fireAnEvent } = require("../helpers/events");
14
+ const {
15
+ isDisabled,
16
+ isValidEmailAddress,
17
+ isValidAbsoluteURL,
18
+ sanitizeValueByType
19
+ } = require("../helpers/form-controls");
20
+ const {
21
+ asciiCaseInsensitiveMatch,
22
+ asciiLowercase,
23
+ parseFloatingPointNumber,
24
+ splitOnCommas
25
+ } = require("../helpers/strings");
26
+ const { isDate } = require("../helpers/dates-and-times");
27
+ const {
28
+ convertStringToNumberByType,
29
+ convertStringToDateByType,
30
+ serializeDateByType,
31
+ convertNumberToStringByType
32
+ } = require("../helpers/number-and-date-inputs");
33
+
34
+ const filesSymbol = Symbol("files");
35
+
36
+ // https://html.spec.whatwg.org/multipage/input.html#attr-input-type
37
+ const inputAllowedTypes = new Set([
38
+ "hidden", "text", "search", "tel", "url", "email", "password", "date",
39
+ "month", "week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio",
40
+ "file", "submit", "image", "reset", "button"
41
+ ]);
42
+
43
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-apply
44
+
45
+ const variableLengthSelectionAllowedTypes = new Set(["text", "search", "url", "tel", "password"]);
46
+ const numericTypes = new Set(["date", "month", "week", "time", "datetime-local", "number", "range"]);
47
+
48
+ const applicableTypesForIDLMember = {
49
+ valueAsDate: new Set(["date", "month", "week", "time"]),
50
+ valueAsNumber: numericTypes,
51
+
52
+ select: new Set([
53
+ "text", "search", "url", "tel", "email", "password", "date", "month", "week",
54
+ "time", "datetime-local", "number", "color", "file"
55
+ ]),
56
+ selectionStart: variableLengthSelectionAllowedTypes,
57
+ selectionEnd: variableLengthSelectionAllowedTypes,
58
+ selectionDirection: variableLengthSelectionAllowedTypes,
59
+ setRangeText: variableLengthSelectionAllowedTypes,
60
+ setSelectionRange: variableLengthSelectionAllowedTypes,
61
+ stepDown: numericTypes,
62
+ stepUp: numericTypes
63
+ };
64
+
65
+ const lengthPatternSizeTypes = new Set(["text", "search", "url", "tel", "email", "password"]);
66
+ const readonlyTypes =
67
+ new Set([...lengthPatternSizeTypes, "date", "month", "week", "time", "datetime-local", "number"]);
68
+
69
+ const applicableTypesForContentAttribute = {
70
+ list: new Set(["text", "search", "url", "tel", "email", ...numericTypes, "color"]),
71
+ max: numericTypes,
72
+ maxlength: lengthPatternSizeTypes,
73
+ min: numericTypes,
74
+ minlength: lengthPatternSizeTypes,
75
+ multiple: new Set(["email", "file"]),
76
+ pattern: lengthPatternSizeTypes,
77
+ readonly: readonlyTypes,
78
+ required: new Set([...readonlyTypes, "checkbox", "radio", "file"]),
79
+ step: numericTypes
80
+ };
81
+
82
+ const valueAttributeDefaultMode = new Set(["hidden", "submit", "image", "reset", "button"]);
83
+ const valueAttributeDefaultOnMode = new Set(["checkbox", "radio"]);
84
+
85
+ function valueAttributeMode(type) {
86
+ if (valueAttributeDefaultMode.has(type)) {
87
+ return "default";
88
+ }
89
+ if (valueAttributeDefaultOnMode.has(type)) {
90
+ return "default/on";
91
+ }
92
+ if (type === "file") {
93
+ return "filename";
94
+ }
95
+ return "value";
96
+ }
97
+
98
+ function getTypeFromAttribute(typeAttribute) {
99
+ if (typeof typeAttribute !== "string") {
100
+ return "text";
101
+ }
102
+ const type = asciiLowercase(typeAttribute);
103
+ return inputAllowedTypes.has(type) ? type : "text";
104
+ }
105
+
106
+ class HTMLInputElementImpl extends HTMLElementImpl {
107
+ constructor(globalObject, args, privateData) {
108
+ super(globalObject, args, privateData);
109
+
110
+ this._selectionStart = this._selectionEnd = 0;
111
+ this._selectionDirection = "none";
112
+ this._value = "";
113
+ this._dirtyValue = false;
114
+ this._checkedness = false;
115
+ this._dirtyCheckedness = false;
116
+
117
+ this._preCheckedRadioState = null;
118
+ this._legacyActivationBehaviorPreviousIndeterminateState = false;
119
+
120
+ this.indeterminate = false;
121
+
122
+ this._customValidityErrorMessage = "";
123
+
124
+ this._labels = null;
125
+
126
+ this._hasActivationBehavior = true;
127
+ }
128
+
129
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-value-string-number
130
+ get _convertStringToNumber() {
131
+ return convertStringToNumberByType[this.type];
132
+ }
133
+
134
+ get _convertNumberToString() {
135
+ return convertNumberToStringByType[this.type];
136
+ }
137
+
138
+ get _convertDateToString() {
139
+ return serializeDateByType[this.type];
140
+ }
141
+
142
+ get _convertStringToDate() {
143
+ return convertStringToDateByType[this.type];
144
+ }
145
+
146
+ _isStepAligned(v) {
147
+ return new Decimal(v).minus(this._stepBase)
148
+ .modulo(this._allowedValueStep)
149
+ .isZero();
150
+ }
151
+
152
+ // Returns a Decimal.
153
+ _stepAlign(v, roundUp) {
154
+ const allowedValueStep = this._allowedValueStep;
155
+ const stepBase = this._stepBase;
156
+
157
+ return new Decimal(v).minus(stepBase)
158
+ .toNearest(allowedValueStep, roundUp ? Decimal.ROUND_UP : Decimal.ROUND_DOWN)
159
+ .add(stepBase);
160
+ }
161
+
162
+ // For <input>, https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fe-value
163
+ // is a simple value that is gotten and set, not computed.
164
+ _getValue() {
165
+ return this._value;
166
+ }
167
+
168
+ _legacyPreActivationBehavior() {
169
+ if (this.type === "checkbox") {
170
+ this.checked = !this.checked;
171
+ this._legacyActivationBehaviorPreviousIndeterminateState = this.indeterminate;
172
+ this.indeterminate = false;
173
+ } else if (this.type === "radio") {
174
+ this._preCheckedRadioState = this.checked;
175
+ this.checked = true;
176
+ }
177
+ }
178
+
179
+ _legacyCanceledActivationBehavior() {
180
+ if (this.type === "checkbox") {
181
+ this.checked = !this.checked;
182
+ this.indeterminate = this._legacyActivationBehaviorPreviousIndeterminateState;
183
+ } else if (this.type === "radio") {
184
+ if (this._preCheckedRadioState !== null) {
185
+ this.checked = this._preCheckedRadioState;
186
+ this._preCheckedRadioState = null;
187
+ }
188
+ }
189
+ }
190
+
191
+ _activationBehavior() {
192
+ if (!this._mutable && this.type !== "checkbox" && this.type !== "radio") {
193
+ return;
194
+ }
195
+
196
+ const { form } = this;
197
+
198
+ if (this.type === "checkbox" || (this.type === "radio" && !this._preCheckedRadioState)) {
199
+ if (this.isConnected) {
200
+ fireAnEvent("input", this, undefined, { bubbles: true });
201
+ fireAnEvent("change", this, undefined, { bubbles: true });
202
+ }
203
+ } else if (form && this.type === "submit") {
204
+ form._doRequestSubmit(this);
205
+ } else if (form && this.type === "reset") {
206
+ form._doReset();
207
+ }
208
+ }
209
+
210
+ _attrModified(name, value, oldVal) {
211
+ const wrapper = idlUtils.wrapperForImpl(this);
212
+ if (!this._dirtyValue && name === "value") {
213
+ this._value = sanitizeValueByType(this, wrapper.defaultValue);
214
+ }
215
+ if (!this._dirtyCheckedness && name === "checked") {
216
+ this._checkedness = wrapper.defaultChecked;
217
+ if (this._checkedness) {
218
+ this._removeOtherRadioCheckedness();
219
+ }
220
+ }
221
+
222
+ if (name === "name" || name === "type") {
223
+ if (this._checkedness) {
224
+ this._removeOtherRadioCheckedness();
225
+ }
226
+ }
227
+
228
+ if (name === "type") {
229
+ const prevType = getTypeFromAttribute(oldVal);
230
+ const curType = getTypeFromAttribute(value);
231
+ // When an input element's type attribute changes state…
232
+ if (prevType !== curType) {
233
+ const prevValueMode = valueAttributeMode(prevType);
234
+ const curValueMode = valueAttributeMode(curType);
235
+ if (prevValueMode === "value" && this._value !== "" &&
236
+ (curValueMode === "default" || curValueMode === "default/on")) {
237
+ this.setAttributeNS(null, "value", this._value);
238
+ } else if (prevValueMode !== "value" && curValueMode === "value") {
239
+ this._value = this.getAttributeNS(null, "value") || "";
240
+ this._dirtyValue = false;
241
+ } else if (prevValueMode !== "filename" && curValueMode === "filename") {
242
+ this._value = "";
243
+ }
244
+
245
+ this._signalATypeChange();
246
+
247
+ this._value = sanitizeValueByType(this, this._value);
248
+
249
+ const previouslySelectable = this._idlMemberApplies("setRangeText", prevType);
250
+ const nowSelectable = this._idlMemberApplies("setRangeText", curType);
251
+ if (!previouslySelectable && nowSelectable) {
252
+ this._selectionStart = 0;
253
+ this._selectionEnd = 0;
254
+ this._selectionDirection = "none";
255
+ }
256
+ }
257
+ }
258
+
259
+ super._attrModified(name, value, oldVal);
260
+ }
261
+
262
+ // https://html.spec.whatwg.org/multipage/input.html#signal-a-type-change
263
+ _signalATypeChange() {
264
+ if (this._checkedness) {
265
+ this._removeOtherRadioCheckedness();
266
+ }
267
+ }
268
+
269
+ _formReset() {
270
+ const wrapper = idlUtils.wrapperForImpl(this);
271
+ this._value = sanitizeValueByType(this, wrapper.defaultValue);
272
+ this._dirtyValue = false;
273
+ this._checkedness = wrapper.defaultChecked;
274
+ this._dirtyCheckedness = false;
275
+ if (this._checkedness) {
276
+ this._removeOtherRadioCheckedness();
277
+ }
278
+ }
279
+
280
+ _changedFormOwner() {
281
+ if (this._checkedness) {
282
+ this._removeOtherRadioCheckedness();
283
+ }
284
+ }
285
+
286
+ get _otherRadioGroupElements() {
287
+ const wrapper = idlUtils.wrapperForImpl(this);
288
+ const root = this._radioButtonGroupRoot;
289
+ if (!root) {
290
+ return [];
291
+ }
292
+
293
+ const result = [];
294
+
295
+ const descendants = domSymbolTree.treeIterator(root);
296
+ for (const candidate of descendants) {
297
+ if (candidate._radioButtonGroupRoot !== root) {
298
+ continue;
299
+ }
300
+
301
+ const candidateWrapper = idlUtils.wrapperForImpl(candidate);
302
+ if (!candidateWrapper.name || candidateWrapper.name !== wrapper.name) {
303
+ continue;
304
+ }
305
+
306
+ if (candidate !== this) {
307
+ result.push(candidate);
308
+ }
309
+ }
310
+ return result;
311
+ }
312
+
313
+ _removeOtherRadioCheckedness() {
314
+ for (const radioGroupElement of this._otherRadioGroupElements) {
315
+ radioGroupElement._checkedness = false;
316
+ }
317
+ }
318
+
319
+ get _radioButtonGroupRoot() {
320
+ const wrapper = idlUtils.wrapperForImpl(this);
321
+ if (this.type !== "radio" || !wrapper.name) {
322
+ return null;
323
+ }
324
+
325
+ let e = domSymbolTree.parent(this);
326
+ while (e) {
327
+ // root node of this home sub tree
328
+ // or the form element we belong to
329
+ if (!domSymbolTree.parent(e) || e.nodeName.toUpperCase() === "FORM") {
330
+ return e;
331
+ }
332
+ e = domSymbolTree.parent(e);
333
+ }
334
+ return null;
335
+ }
336
+
337
+ _someInRadioGroup(name) {
338
+ if (this[name]) {
339
+ return true;
340
+ }
341
+ return this._otherRadioGroupElements.some(radioGroupElement => radioGroupElement[name]);
342
+ }
343
+
344
+ get _mutable() {
345
+ return !isDisabled(this) && !this._hasAttributeAndApplies("readonly");
346
+ }
347
+
348
+ get labels() {
349
+ return getLabelsForLabelable(this);
350
+ }
351
+
352
+ get form() {
353
+ return formOwner(this);
354
+ }
355
+
356
+ get checked() {
357
+ return this._checkedness;
358
+ }
359
+
360
+ set checked(checked) {
361
+ this._checkedness = Boolean(checked);
362
+ this._dirtyCheckedness = true;
363
+ if (this._checkedness) {
364
+ this._removeOtherRadioCheckedness();
365
+ }
366
+ }
367
+
368
+ get value() {
369
+ switch (valueAttributeMode(this.type)) {
370
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-value
371
+ case "value":
372
+ return this._getValue();
373
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default
374
+ case "default": {
375
+ const attr = this.getAttributeNS(null, "value");
376
+ return attr !== null ? attr : "";
377
+ }
378
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
379
+ case "default/on": {
380
+ const attr = this.getAttributeNS(null, "value");
381
+ return attr !== null ? attr : "on";
382
+ }
383
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-filename
384
+ case "filename":
385
+ return this.files.length ? "C:\\fakepath\\" + this.files[0].name : "";
386
+ default:
387
+ throw new Error("jsdom internal error: unknown value attribute mode");
388
+ }
389
+ }
390
+
391
+ set value(val) {
392
+ switch (valueAttributeMode(this.type)) {
393
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-value
394
+ case "value": {
395
+ const oldValue = this._value;
396
+ this._value = sanitizeValueByType(this, val);
397
+ this._dirtyValue = true;
398
+
399
+ if (oldValue !== this._value) {
400
+ this._selectionStart = this._selectionEnd = this._getValueLength();
401
+ this._selectionDirection = "none";
402
+ }
403
+ break;
404
+ }
405
+
406
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default
407
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
408
+ case "default":
409
+ case "default/on":
410
+ this.setAttributeNS(null, "value", val);
411
+ break;
412
+
413
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-value-filename
414
+ case "filename":
415
+ if (val === "") {
416
+ this.files.length = 0;
417
+ } else {
418
+ throw DOMException.create(this._globalObject, [
419
+ "This input element accepts a filename, which may only be programmatically set to the empty string.",
420
+ "InvalidStateError"
421
+ ]);
422
+ }
423
+ break;
424
+
425
+ default:
426
+ throw new Error("jsdom internal error: unknown value attribute mode");
427
+ }
428
+ }
429
+
430
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-valueasdate
431
+ get valueAsDate() {
432
+ if (!this._idlMemberApplies("valueAsDate")) {
433
+ return null;
434
+ }
435
+
436
+ const window = this._ownerDocument._defaultView;
437
+ const convertedValue = this._convertStringToDate(this._value);
438
+
439
+ if (convertedValue instanceof Date) {
440
+ return new window.Date(convertedValue.getTime());
441
+ }
442
+
443
+ return null;
444
+ }
445
+
446
+ set valueAsDate(v) {
447
+ if (!this._idlMemberApplies("valueAsDate")) {
448
+ throw DOMException.create(this._globalObject, [
449
+ "Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date " +
450
+ "values.",
451
+ "InvalidStateError"
452
+ ]);
453
+ }
454
+
455
+ if (v !== null && !isDate(v)) {
456
+ throw new TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is " +
457
+ "not a Date.");
458
+ }
459
+
460
+ if (v === null || isNaN(v)) {
461
+ this._value = "";
462
+ return;
463
+ }
464
+
465
+ this._value = this._convertDateToString(v);
466
+ }
467
+
468
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-valueasnumber
469
+ get valueAsNumber() {
470
+ if (!this._idlMemberApplies("valueAsNumber")) {
471
+ return NaN;
472
+ }
473
+
474
+ const parsedValue = this._convertStringToNumber(this._value);
475
+ return parsedValue !== null ? parsedValue : NaN;
476
+ }
477
+
478
+ set valueAsNumber(v) {
479
+ if (!isFinite(v)) {
480
+ throw new TypeError("Failed to set infinite value as Number");
481
+ }
482
+
483
+ if (!this._idlMemberApplies("valueAsNumber")) {
484
+ throw DOMException.create(this._globalObject, [
485
+ "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support " +
486
+ "Number values.",
487
+ "InvalidStateError"
488
+ ]);
489
+ }
490
+
491
+ this._value = this._convertNumberToString(v);
492
+ }
493
+
494
+ // https://html.spec.whatwg.org/multipage/input.html#dom-input-stepup
495
+ _stepUpdate(n, isUp) {
496
+ const methodName = isUp ? "stepUp" : "stepDown";
497
+ if (!this._idlMemberApplies(methodName)) {
498
+ throw DOMException.create(this._globalObject, [
499
+ `Failed to invoke '${methodName}' method on 'HTMLInputElement': ` +
500
+ "This input element does not support Number values.",
501
+ "InvalidStateError"
502
+ ]);
503
+ }
504
+
505
+ const allowedValueStep = this._allowedValueStep;
506
+ if (allowedValueStep === null) {
507
+ throw DOMException.create(this._globalObject, [
508
+ `Failed to invoke '${methodName}' method on 'HTMLInputElement': ` +
509
+ "This input element does not support value step.",
510
+ "InvalidStateError"
511
+ ]);
512
+ }
513
+
514
+ const min = this._minimum;
515
+ const max = this._maximum;
516
+
517
+ if (min !== null && max !== null) {
518
+ if (min > max) {
519
+ return;
520
+ }
521
+
522
+ const candidateStepValue = this._stepAlign(Decimal.add(min, allowedValueStep), /* roundUp = */ false);
523
+ if (candidateStepValue.lt(min) || candidateStepValue.gt(max)) {
524
+ return;
525
+ }
526
+ }
527
+
528
+ let value = 0;
529
+ try {
530
+ value = this.valueAsNumber;
531
+ if (isNaN(value)) { // Empty value is parsed as NaN.
532
+ value = 0;
533
+ }
534
+ } catch (error) {
535
+ // Step 5. Default value is 0.
536
+ }
537
+ value = new Decimal(value);
538
+
539
+ const valueBeforeStepping = value;
540
+
541
+ if (!this._isStepAligned(value)) {
542
+ value = this._stepAlign(value, /* roundUp = */ isUp);
543
+ } else {
544
+ let delta = Decimal.mul(n, allowedValueStep);
545
+ if (!isUp) {
546
+ delta = delta.neg();
547
+ }
548
+ value = value.add(delta);
549
+ }
550
+
551
+ if (min !== null && value.lt(min)) {
552
+ value = this._stepAlign(min, /* roundUp = */ true);
553
+ }
554
+
555
+ if (max !== null && value.gt(max)) {
556
+ value = this._stepAlign(max, /* roundUp = */ false);
557
+ }
558
+
559
+ if (isUp ? value.lt(valueBeforeStepping) : value.gt(valueBeforeStepping)) {
560
+ return;
561
+ }
562
+
563
+ this._value = this._convertNumberToString(value.toNumber());
564
+ }
565
+
566
+ stepDown(n = 1) {
567
+ return this._stepUpdate(n, false);
568
+ }
569
+
570
+ stepUp(n = 1) {
571
+ return this._stepUpdate(n, true);
572
+ }
573
+
574
+ get files() {
575
+ if (this.type === "file") {
576
+ this[filesSymbol] = this[filesSymbol] || FileList.createImpl(this._globalObject);
577
+ } else {
578
+ this[filesSymbol] = null;
579
+ }
580
+ return this[filesSymbol];
581
+ }
582
+
583
+ set files(value) {
584
+ if (this.type === "file" && value !== null) {
585
+ this[filesSymbol] = value;
586
+ }
587
+ }
588
+
589
+ get type() {
590
+ const typeAttribute = this.getAttributeNS(null, "type");
591
+ return getTypeFromAttribute(typeAttribute);
592
+ }
593
+
594
+ set type(type) {
595
+ this.setAttributeNS(null, "type", type);
596
+ }
597
+
598
+ _dispatchSelectEvent() {
599
+ fireAnEvent("select", this, undefined, { bubbles: true, cancelable: true });
600
+ }
601
+
602
+ _getValueLength() {
603
+ return typeof this.value === "string" ? this.value.length : 0;
604
+ }
605
+
606
+ select() {
607
+ if (!this._idlMemberApplies("select")) {
608
+ return;
609
+ }
610
+
611
+ this._selectionStart = 0;
612
+ this._selectionEnd = this._getValueLength();
613
+ this._selectionDirection = "none";
614
+ this._dispatchSelectEvent();
615
+ }
616
+
617
+ get selectionStart() {
618
+ if (!this._idlMemberApplies("selectionStart")) {
619
+ return null;
620
+ }
621
+
622
+ return this._selectionStart;
623
+ }
624
+
625
+ set selectionStart(start) {
626
+ if (!this._idlMemberApplies("selectionStart")) {
627
+ throw DOMException.create(this._globalObject, ["The object is in an invalid state.", "InvalidStateError"]);
628
+ }
629
+
630
+ this.setSelectionRange(start, Math.max(start, this._selectionEnd), this._selectionDirection);
631
+ }
632
+
633
+ get selectionEnd() {
634
+ if (!this._idlMemberApplies("selectionEnd")) {
635
+ return null;
636
+ }
637
+
638
+ return this._selectionEnd;
639
+ }
640
+
641
+ set selectionEnd(end) {
642
+ if (!this._idlMemberApplies("selectionEnd")) {
643
+ throw DOMException.create(this._globalObject, ["The object is in an invalid state.", "InvalidStateError"]);
644
+ }
645
+
646
+ this.setSelectionRange(this._selectionStart, end, this._selectionDirection);
647
+ }
648
+
649
+ get selectionDirection() {
650
+ if (!this._idlMemberApplies("selectionDirection")) {
651
+ return null;
652
+ }
653
+
654
+ return this._selectionDirection;
655
+ }
656
+
657
+ set selectionDirection(dir) {
658
+ if (!this._idlMemberApplies("selectionDirection")) {
659
+ throw DOMException.create(this._globalObject, ["The object is in an invalid state.", "InvalidStateError"]);
660
+ }
661
+
662
+ this.setSelectionRange(this._selectionStart, this._selectionEnd, dir);
663
+ }
664
+
665
+ setSelectionRange(start, end, dir) {
666
+ if (!this._idlMemberApplies("setSelectionRange")) {
667
+ throw DOMException.create(this._globalObject, ["The object is in an invalid state.", "InvalidStateError"]);
668
+ }
669
+
670
+ this._selectionEnd = Math.min(end, this._getValueLength());
671
+ this._selectionStart = Math.min(start, this._selectionEnd);
672
+ this._selectionDirection = dir === "forward" || dir === "backward" ? dir : "none";
673
+ this._dispatchSelectEvent();
674
+ }
675
+
676
+ setRangeText(repl, start, end, selectionMode = "preserve") {
677
+ if (!this._idlMemberApplies("setRangeText")) {
678
+ throw DOMException.create(this._globalObject, ["The object is in an invalid state.", "InvalidStateError"]);
679
+ }
680
+
681
+ if (arguments.length < 2) {
682
+ start = this._selectionStart;
683
+ end = this._selectionEnd;
684
+ } else if (start > end) {
685
+ throw DOMException.create(this._globalObject, ["The index is not in the allowed range.", "IndexSizeError"]);
686
+ }
687
+
688
+ start = Math.min(start, this._getValueLength());
689
+ end = Math.min(end, this._getValueLength());
690
+
691
+ const val = this.value;
692
+ let selStart = this._selectionStart;
693
+ let selEnd = this._selectionEnd;
694
+
695
+ this.value = val.slice(0, start) + repl + val.slice(end);
696
+
697
+ const newEnd = start + this.value.length;
698
+
699
+ if (selectionMode === "select") {
700
+ this.setSelectionRange(start, newEnd);
701
+ } else if (selectionMode === "start") {
702
+ this.setSelectionRange(start, start);
703
+ } else if (selectionMode === "end") {
704
+ this.setSelectionRange(newEnd, newEnd);
705
+ } else { // preserve
706
+ const delta = repl.length - (end - start);
707
+
708
+ if (selStart > end) {
709
+ selStart += delta;
710
+ } else if (selStart > start) {
711
+ selStart = start;
712
+ }
713
+
714
+ if (selEnd > end) {
715
+ selEnd += delta;
716
+ } else if (selEnd > start) {
717
+ selEnd = newEnd;
718
+ }
719
+
720
+ this.setSelectionRange(selStart, selEnd);
721
+ }
722
+ }
723
+
724
+ // https://html.spec.whatwg.org/multipage/input.html#the-list-attribute
725
+ get list() {
726
+ const id = this._getAttributeIfApplies("list");
727
+ if (!id) {
728
+ return null;
729
+ }
730
+
731
+ const el = this.getRootNode({}).getElementById(id);
732
+
733
+ if (el && el.localName === "datalist") {
734
+ return el;
735
+ }
736
+
737
+ return null;
738
+ }
739
+
740
+ // Reflected IDL attribute does not care about whether the content attribute applies.
741
+ get maxLength() {
742
+ if (!this.hasAttributeNS(null, "maxlength")) {
743
+ return 524288; // stole this from chrome
744
+ }
745
+ return parseInt(this.getAttributeNS(null, "maxlength"));
746
+ }
747
+
748
+ set maxLength(value) {
749
+ if (value < 0) {
750
+ throw DOMException.create(this._globalObject, ["The index is not in the allowed range.", "IndexSizeError"]);
751
+ }
752
+ this.setAttributeNS(null, "maxlength", String(value));
753
+ }
754
+
755
+ get minLength() {
756
+ if (!this.hasAttributeNS(null, "minlength")) {
757
+ return 0;
758
+ }
759
+ return parseInt(this.getAttributeNS(null, "minlength"));
760
+ }
761
+
762
+ set minLength(value) {
763
+ if (value < 0) {
764
+ throw DOMException.create(this._globalObject, ["The index is not in the allowed range.", "IndexSizeError"]);
765
+ }
766
+ this.setAttributeNS(null, "minlength", String(value));
767
+ }
768
+
769
+ get size() {
770
+ if (!this.hasAttributeNS(null, "size")) {
771
+ return 20;
772
+ }
773
+ return parseInt(this.getAttributeNS(null, "size"));
774
+ }
775
+
776
+ set size(value) {
777
+ if (value <= 0) {
778
+ throw DOMException.create(this._globalObject, ["The index is not in the allowed range.", "IndexSizeError"]);
779
+ }
780
+ this.setAttributeNS(null, "size", String(value));
781
+ }
782
+
783
+ // https://html.spec.whatwg.org/multipage/input.html#the-min-and-max-attributes
784
+ get _minimum() {
785
+ let min = this._defaultMinimum;
786
+ const attr = this._getAttributeIfApplies("min");
787
+ if (attr !== null && this._convertStringToNumber !== undefined) {
788
+ const parsed = this._convertStringToNumber(attr);
789
+ if (parsed !== null) {
790
+ min = parsed;
791
+ }
792
+ }
793
+ return min;
794
+ }
795
+
796
+ get _maximum() {
797
+ let max = this._defaultMaximum;
798
+ const attr = this._getAttributeIfApplies("max");
799
+ if (attr !== null && this._convertStringToNumber !== undefined) {
800
+ const parsed = this._convertStringToNumber(attr);
801
+ if (parsed !== null) {
802
+ max = parsed;
803
+ }
804
+ }
805
+ return max;
806
+ }
807
+
808
+ get _defaultMinimum() {
809
+ if (this.type === "range") {
810
+ return 0;
811
+ }
812
+ return null;
813
+ }
814
+
815
+ get _defaultMaximum() {
816
+ if (this.type === "range") {
817
+ return 100;
818
+ }
819
+ return null;
820
+ }
821
+
822
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-step
823
+ get _allowedValueStep() {
824
+ if (!this._contentAttributeApplies("step")) {
825
+ return null;
826
+ }
827
+ const attr = this.getAttributeNS(null, "step");
828
+ if (attr === null) {
829
+ return this._defaultStep * this._stepScaleFactor;
830
+ }
831
+ if (asciiCaseInsensitiveMatch(attr, "any")) {
832
+ return null;
833
+ }
834
+ const parsedStep = parseFloatingPointNumber(attr);
835
+ if (parsedStep === null || parsedStep <= 0) {
836
+ return this._defaultStep * this._stepScaleFactor;
837
+ }
838
+ return parsedStep * this._stepScaleFactor;
839
+ }
840
+
841
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-step-scale
842
+ get _stepScaleFactor() {
843
+ const dayInMilliseconds = 24 * 60 * 60 * 1000;
844
+ switch (this.type) {
845
+ case "week":
846
+ return 7 * dayInMilliseconds;
847
+ case "date":
848
+ return dayInMilliseconds;
849
+ case "datetime-local":
850
+ case "datetime":
851
+ case "time":
852
+ return 1000;
853
+ }
854
+ return 1;
855
+ }
856
+
857
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-step-default
858
+ get _defaultStep() {
859
+ if (this.type === "datetime-local" || this.type === "datetime" || this.type === "time") {
860
+ return 60;
861
+ }
862
+ return 1;
863
+ }
864
+
865
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-min-zero
866
+ get _stepBase() {
867
+ if (this._hasAttributeAndApplies("min")) {
868
+ const min = this._convertStringToNumber(this.getAttributeNS(null, "min"));
869
+ if (min !== null) {
870
+ return min;
871
+ }
872
+ }
873
+ if (this.hasAttributeNS(null, "value")) {
874
+ const value = this._convertStringToNumber(this.getAttributeNS(null, "value"));
875
+ if (value !== null) {
876
+ return value;
877
+ }
878
+ }
879
+ if (this._defaultStepBase !== null) {
880
+ return this._defaultStepBase;
881
+ }
882
+ return 0;
883
+ }
884
+
885
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-step-default-base
886
+ get _defaultStepBase() {
887
+ if (this.type === "week") {
888
+ // The start of week 1970-W01
889
+ return -259200000;
890
+ }
891
+ return null;
892
+ }
893
+
894
+ // https://html.spec.whatwg.org/multipage/input.html#common-input-element-attributes
895
+ // When an attribute doesn't apply to an input element, user agents must ignore the attribute.
896
+ _contentAttributeApplies(attribute) {
897
+ return applicableTypesForContentAttribute[attribute].has(this.type);
898
+ }
899
+
900
+ _hasAttributeAndApplies(attribute) {
901
+ return this._contentAttributeApplies(attribute) && this.hasAttributeNS(null, attribute);
902
+ }
903
+
904
+ _getAttributeIfApplies(attribute) {
905
+ if (this._contentAttributeApplies(attribute)) {
906
+ return this.getAttributeNS(null, attribute);
907
+ }
908
+ return null;
909
+ }
910
+
911
+ _idlMemberApplies(member, type = this.type) {
912
+ return applicableTypesForIDLMember[member].has(type);
913
+ }
914
+
915
+ _barredFromConstraintValidationSpecialization() {
916
+ // https://html.spec.whatwg.org/multipage/input.html#hidden-state-(type=hidden)
917
+ // https://html.spec.whatwg.org/multipage/input.html#reset-button-state-(type=reset)
918
+ // https://html.spec.whatwg.org/multipage/input.html#button-state-(type=button)
919
+ const willNotValidateTypes = new Set(["hidden", "reset", "button"]);
920
+ // https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
921
+ const readOnly = this._hasAttributeAndApplies("readonly");
922
+
923
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
924
+ return willNotValidateTypes.has(this.type) || readOnly;
925
+ }
926
+
927
+ // https://html.spec.whatwg.org/multipage/input.html#concept-input-required
928
+ get _required() {
929
+ return this._hasAttributeAndApplies("required");
930
+ }
931
+
932
+ // https://html.spec.whatwg.org/multipage/input.html#has-a-periodic-domain
933
+ get _hasAPeriodicDomain() {
934
+ return this.type === "time";
935
+ }
936
+
937
+ // https://html.spec.whatwg.org/multipage/input.html#has-a-reversed-range
938
+ get _hasAReversedRange() {
939
+ return this._hasAPeriodicDomain && this._maximum < this._minimum;
940
+ }
941
+
942
+ get validity() {
943
+ if (!this._validity) {
944
+ // Constraint validation: When an element has a reversed range, and the result of applying
945
+ // the algorithm to convert a string to a number to the string given by the element's value
946
+ // is a number, and the number obtained from that algorithm is more than the maximum and less
947
+ // than the minimum, the element is simultaneously suffering from an underflow and suffering
948
+ // from an overflow.
949
+ const reversedRangeSufferingOverUnderflow = () => {
950
+ const parsedValue = this._convertStringToNumber(this._value);
951
+ return parsedValue !== null && parsedValue > this._maximum && parsedValue < this._minimum;
952
+ };
953
+
954
+ const state = {
955
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-being-missing
956
+ valueMissing: () => {
957
+ // https://html.spec.whatwg.org/multipage/input.html#the-required-attribute
958
+ // Constraint validation: If the element is required, and its value IDL attribute applies
959
+ // and is in the mode value, and the element is mutable, and the element's value is the
960
+ // empty string, then the element is suffering from being missing.
961
+ //
962
+ // Note: As of today, the value IDL attribute always applies.
963
+ if (this._required && valueAttributeMode(this.type) === "value" && this._mutable && this._value === "") {
964
+ return true;
965
+ }
966
+
967
+ switch (this.type) {
968
+ // https://html.spec.whatwg.org/multipage/input.html#checkbox-state-(type=checkbox)
969
+ // Constraint validation: If the element is required and its checkedness is
970
+ // false, then the element is suffering from being missing.
971
+ case "checkbox":
972
+ if (this._required && !this._checkedness) {
973
+ return true;
974
+ }
975
+ break;
976
+
977
+ // https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio)
978
+ // Constraint validation: If an element in the radio button group is required,
979
+ // and all of the input elements in the radio button group have a checkedness
980
+ // that is false, then the element is suffering from being missing.
981
+ case "radio":
982
+ if (this._someInRadioGroup("_required") && !this._someInRadioGroup("checked")) {
983
+ return true;
984
+ }
985
+ break;
986
+
987
+ // https://html.spec.whatwg.org/multipage/input.html#file-upload-state-(type=file)
988
+ // Constraint validation: If the element is required and the list of selected files is
989
+ // empty, then the element is suffering from being missing.
990
+ case "file":
991
+ if (this._required && this.files.length === 0) {
992
+ return true;
993
+ }
994
+ break;
995
+ }
996
+
997
+ return false;
998
+ },
999
+
1000
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-being-too-long
1001
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-maxlength
1002
+ // jsdom has no way at the moment to emulate a user interaction, so tooLong/tooShort have
1003
+ // to be set to false.
1004
+ tooLong: () => false,
1005
+
1006
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-being-too-short
1007
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-minlength
1008
+ tooShort: () => false,
1009
+
1010
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-an-overflow
1011
+ rangeOverflow: () => {
1012
+ // https://html.spec.whatwg.org/multipage/input.html#the-min-and-max-attributes
1013
+ if (this._hasAReversedRange) {
1014
+ return reversedRangeSufferingOverUnderflow();
1015
+ }
1016
+ // Constraint validation: When the element has a maximum and does not have a reversed
1017
+ // range, and the result of applying the algorithm to convert a string to a number to the
1018
+ // string given by the element's value is a number, and the number obtained from that
1019
+ // algorithm is more than the maximum, the element is suffering from an overflow.
1020
+ if (this._maximum !== null) {
1021
+ const parsedValue = this._convertStringToNumber(this._value);
1022
+ if (parsedValue !== null && parsedValue > this._maximum) {
1023
+ return true;
1024
+ }
1025
+ }
1026
+ return false;
1027
+ },
1028
+
1029
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-an-underflow
1030
+ rangeUnderflow: () => {
1031
+ // https://html.spec.whatwg.org/multipage/input.html#the-min-and-max-attributes
1032
+ if (this._hasAReversedRange) {
1033
+ return reversedRangeSufferingOverUnderflow();
1034
+ }
1035
+ // Constraint validation: When the element has a minimum and does not have a reversed
1036
+ // range, and the result of applying the algorithm to convert a string to a number to the
1037
+ // string given by the element's value is a number, and the number obtained from that
1038
+ // algorithm is less than the minimum, the element is suffering from an underflow.
1039
+ if (this._minimum !== null) {
1040
+ const parsedValue = this._convertStringToNumber(this._value);
1041
+ if (parsedValue !== null && parsedValue < this._minimum) {
1042
+ return true;
1043
+ }
1044
+ }
1045
+ return false;
1046
+ },
1047
+
1048
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-pattern-mismatch
1049
+ patternMismatch: () => {
1050
+ // https://html.spec.whatwg.org/multipage/input.html#the-pattern-attribute
1051
+ if (this._value === "" || !this._hasAttributeAndApplies("pattern")) {
1052
+ return false;
1053
+ }
1054
+ let regExp;
1055
+ try {
1056
+ const pattern = this.getAttributeNS(null, "pattern");
1057
+ // The pattern attribute should be matched against the entire value, not just any
1058
+ // subset, so add ^ and $ anchors. But also check the validity of the regex itself
1059
+ // first.
1060
+ new RegExp(pattern, "u"); // eslint-disable-line no-new
1061
+ regExp = new RegExp("^(?:" + pattern + ")$", "u");
1062
+ } catch (e) {
1063
+ return false;
1064
+ }
1065
+ if (this._hasAttributeAndApplies("multiple")) {
1066
+ return !splitOnCommas(this._value).every(value => regExp.test(value));
1067
+ }
1068
+ return !regExp.test(this._value);
1069
+ },
1070
+
1071
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-step-mismatch
1072
+ // https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1073
+ stepMismatch: () => {
1074
+ const allowedValueStep = this._allowedValueStep;
1075
+ if (allowedValueStep === null) {
1076
+ return false;
1077
+ }
1078
+ const number = this._convertStringToNumber(this._value);
1079
+ return number !== null && !this._isStepAligned(number);
1080
+ },
1081
+
1082
+ // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-type-mismatch
1083
+ typeMismatch: () => {
1084
+ switch (this.type) {
1085
+ // https://html.spec.whatwg.org/multipage/input.html#url-state-(type=url)
1086
+ // Constraint validation: While the value of the element is neither the empty string
1087
+ // nor a valid absolute URL, the element is suffering from a type mismatch.
1088
+ case "url":
1089
+ if (this._value !== "" && !isValidAbsoluteURL(this._value)) {
1090
+ return true;
1091
+ }
1092
+ break;
1093
+
1094
+ // https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type=email)
1095
+ // Constraint validation [multiple=false]: While the value of the element is neither the empty
1096
+ // string nor a single valid e - mail address, the element is suffering from a type mismatch.
1097
+ // Constraint validation [multiple=true]: While the value of the element is not a valid e-mail address list,
1098
+ // the element is suffering from a type mismatch.
1099
+ case "email":
1100
+ if (this._value !== "" && !isValidEmailAddress(this._getValue(), this.hasAttributeNS(null, "multiple"))) {
1101
+ return true;
1102
+ }
1103
+ break;
1104
+ }
1105
+ return false;
1106
+ }
1107
+ };
1108
+
1109
+ this._validity = ValidityState.createImpl(this._globalObject, [], {
1110
+ element: this,
1111
+ state
1112
+ });
1113
+ }
1114
+ return this._validity;
1115
+ }
1116
+
1117
+ [cloningSteps](copy, node) {
1118
+ copy._value = node._value;
1119
+ copy._checkedness = node._checkedness;
1120
+ copy._dirtyValue = node._dirtyValue;
1121
+ copy._dirtyCheckedness = node._dirtyCheckedness;
1122
+ }
1123
+ }
1124
+
1125
+ mixin(HTMLInputElementImpl.prototype, DefaultConstraintValidationImpl.prototype);
1126
+
1127
+ module.exports = {
1128
+ implementation: HTMLInputElementImpl
1129
+ };