appmap 0.62.1 → 0.65.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2281) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/ARCHITECTURE.md +4 -4
  4. data/CHANGELOG.md +39 -0
  5. data/README.md +2 -2
  6. data/Rakefile +8 -8
  7. data/lib/appmap/command/agent_setup/init.rb +1 -0
  8. data/lib/appmap/config.rb +2 -2
  9. data/lib/appmap/cucumber.rb +1 -0
  10. data/lib/appmap/depends/util.rb +2 -0
  11. data/lib/appmap/event.rb +38 -14
  12. data/lib/appmap/handler/rails/sql_handler.rb +0 -28
  13. data/lib/appmap/minitest.rb +1 -0
  14. data/lib/appmap/node_cli.rb +1 -1
  15. data/lib/appmap/rspec.rb +1 -0
  16. data/lib/appmap/service/validator/config_validator.rb +8 -4
  17. data/lib/appmap/swagger/rake_tasks.rb +1 -0
  18. data/lib/appmap/util.rb +1 -1
  19. data/lib/appmap/version.rb +2 -3
  20. data/node_modules/@appland/appmap/CHANGELOG.md +136 -0
  21. data/node_modules/@appland/appmap/package.json +50 -0
  22. data/node_modules/@appland/appmap/src/agentInstaller/buildToolInstallerBase.js +28 -0
  23. data/node_modules/@appland/appmap/src/agentInstaller/commandStruct.js +17 -0
  24. data/node_modules/@appland/appmap/src/agentInstaller/installAgentStep.js +30 -0
  25. data/node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js +321 -0
  26. data/node_modules/@appland/appmap/src/agentInstaller/pythonAgentInstaller.js +174 -0
  27. data/node_modules/@appland/appmap/src/agentInstaller/rubyAgentInstaller.js +129 -0
  28. data/node_modules/@appland/appmap/src/agentInstaller/types.d.ts +76 -0
  29. data/node_modules/@appland/{cli → appmap}/src/appMapCatalog.js +0 -0
  30. data/node_modules/@appland/{cli → appmap}/src/appland/getAppMap.js +0 -0
  31. data/node_modules/@appland/appmap/src/appland/listAppMaps.js +58 -0
  32. data/node_modules/@appland/{cli → appmap}/src/appland/settings.js +0 -0
  33. data/node_modules/@appland/appmap/src/appland/types.d.ts +16 -0
  34. data/node_modules/@appland/appmap/src/cli.js +729 -0
  35. data/node_modules/@appland/{cli → appmap}/src/database.js +0 -0
  36. data/node_modules/@appland/{cli → appmap}/src/depends.js +0 -0
  37. data/node_modules/@appland/appmap/src/errors/abortError.js +5 -0
  38. data/node_modules/@appland/appmap/src/errors/validationError.js +5 -0
  39. data/node_modules/@appland/{cli → appmap}/src/fingerprint/algorithms.js +0 -0
  40. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/base.js +0 -0
  41. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/classDependencies.js +0 -0
  42. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/classes.js +0 -0
  43. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/eventTree.js +0 -0
  44. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/httpClientRequests.js +0 -0
  45. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/httpServerRequests.js +0 -0
  46. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/info.js +0 -0
  47. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/labels.js +0 -0
  48. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/packageDependencies.js +0 -0
  49. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/packages.js +0 -0
  50. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/sqlNormalized.js +0 -0
  51. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/sqlTables.js +0 -0
  52. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/trace.js +0 -0
  53. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/unique.js +0 -0
  54. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize/update.js +0 -0
  55. data/node_modules/@appland/{cli → appmap}/src/fingerprint/canonicalize.js +0 -0
  56. data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintDirectoryCommand.js +0 -0
  57. data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintQueue.js +0 -0
  58. data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprintWatchCommand.js +0 -0
  59. data/node_modules/@appland/{cli → appmap}/src/fingerprint/fingerprinter.js +0 -0
  60. data/node_modules/@appland/{cli → appmap}/src/fingerprint/index.js +0 -0
  61. data/node_modules/@appland/{cli → appmap}/src/functionStats.js +0 -0
  62. data/node_modules/@appland/{cli → appmap}/src/inspect/fields.js +0 -0
  63. data/node_modules/@appland/{cli → appmap}/src/inspect/filter.js +0 -0
  64. data/node_modules/@appland/{cli → appmap}/src/inspect/home.js +0 -0
  65. data/node_modules/@appland/{cli → appmap}/src/inspect/print.js +0 -0
  66. data/node_modules/@appland/{cli → appmap}/src/inspect/reset.js +0 -0
  67. data/node_modules/@appland/{cli → appmap}/src/inspect/types.d.ts +0 -0
  68. data/node_modules/@appland/{cli → appmap}/src/inspect/undoFilter.js +0 -0
  69. data/node_modules/@appland/{cli → appmap}/src/inspect.js +0 -0
  70. data/node_modules/@appland/{cli → appmap}/src/inventoryCommand.js +0 -0
  71. data/node_modules/@appland/{cli → appmap}/src/search/codeObjectMatcher.js +0 -0
  72. data/node_modules/@appland/{cli → appmap}/src/search/constants.js +0 -0
  73. data/node_modules/@appland/{cli → appmap}/src/search/findCodeObjects.js +0 -0
  74. data/node_modules/@appland/{cli → appmap}/src/search/findEvents.js +0 -0
  75. data/node_modules/@appland/{cli → appmap}/src/search/matchFilter.js +0 -0
  76. data/node_modules/@appland/{cli → appmap}/src/search/matchSpec.js +0 -0
  77. data/node_modules/@appland/{cli → appmap}/src/search/trigram.js +0 -0
  78. data/node_modules/@appland/{cli → appmap}/src/search/types.d.ts +0 -0
  79. data/node_modules/@appland/{cli → appmap}/src/search/utils.js +0 -0
  80. data/node_modules/@appland/{cli → appmap}/src/swagger/README.md +0 -0
  81. data/node_modules/@appland/{cli → appmap}/src/swagger/command.js +0 -0
  82. data/node_modules/@appland/{cli → appmap}/src/swagger/method.js +0 -0
  83. data/node_modules/@appland/{cli → appmap}/src/swagger/model.js +0 -0
  84. data/node_modules/@appland/{cli → appmap}/src/swagger/path.js +0 -0
  85. data/node_modules/@appland/{cli → appmap}/src/swagger/response.js +0 -0
  86. data/node_modules/@appland/{cli → appmap}/src/swagger/schema.js +0 -0
  87. data/node_modules/@appland/{cli → appmap}/src/swagger/securitySchemes.js +0 -0
  88. data/node_modules/@appland/{cli → appmap}/src/swagger/settings.js +0 -0
  89. data/node_modules/@appland/{cli → appmap}/src/swagger/util.js +0 -0
  90. data/node_modules/@appland/appmap/src/utils.js +165 -0
  91. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.js +0 -0
  92. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.spec.js +109 -0
  93. data/node_modules/@appland/appmap/tests/unit/depends.spec.js +63 -0
  94. data/node_modules/@appland/appmap/tests/unit/fingerprint/canonicalize.spec.js +42 -0
  95. data/node_modules/@appland/{cli → appmap}/tests/unit/fingerprint/sql.spec.js +0 -0
  96. data/node_modules/@appland/appmap/tests/unit/fixtures/python/pip/requirements.txt +2 -0
  97. data/node_modules/@appland/appmap/tests/unit/fixtures/python/poetry/poetry.lock +2 -0
  98. data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/controllers/organizations_controller.rb +0 -0
  99. data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/configuration.rb +0 -0
  100. data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/show.rb +0 -0
  101. data/node_modules/@appland/{cli/tests/unit/fixtures → appmap/tests/unit/fixtures/ruby}/app/models/user.rb +0 -0
  102. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.info.json +170 -0
  103. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.trace.json +213 -0
  104. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.update.json +54 -0
  105. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/revoke_api_key.appmap.json +884 -0
  106. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/user_page_scenario.appmap.json +1750 -0
  107. data/node_modules/@appland/appmap/tests/unit/inspect.spec.js +105 -0
  108. data/node_modules/@appland/models/CHANGELOG.md +7 -0
  109. data/node_modules/@appland/models/package.json +2 -2
  110. data/node_modules/@tootallnate/once/dist/index.d.ts +14 -0
  111. data/node_modules/@tootallnate/once/dist/index.js +39 -0
  112. data/node_modules/@tootallnate/once/dist/index.js.map +1 -0
  113. data/node_modules/@tootallnate/once/package.json +45 -0
  114. data/node_modules/abab/CHANGELOG.md +45 -0
  115. data/node_modules/abab/LICENSE.md +13 -0
  116. data/node_modules/abab/README.md +51 -0
  117. data/node_modules/abab/index.d.ts +2 -0
  118. data/node_modules/abab/index.js +9 -0
  119. data/node_modules/abab/lib/atob.js +97 -0
  120. data/node_modules/abab/lib/btoa.js +58 -0
  121. data/node_modules/abab/package.json +42 -0
  122. data/node_modules/acorn/CHANGELOG.md +744 -0
  123. data/node_modules/acorn/LICENSE +21 -0
  124. data/node_modules/acorn/README.md +280 -0
  125. data/node_modules/acorn/bin/acorn +4 -0
  126. data/node_modules/acorn/dist/acorn.d.ts +211 -0
  127. data/node_modules/acorn/dist/acorn.js +5525 -0
  128. data/node_modules/acorn/dist/acorn.mjs +5494 -0
  129. data/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  130. data/node_modules/acorn/dist/bin.js +65 -0
  131. data/node_modules/acorn/package.json +46 -0
  132. data/node_modules/acorn-globals/LICENSE +19 -0
  133. data/node_modules/acorn-globals/README.md +81 -0
  134. data/node_modules/acorn-globals/index.js +179 -0
  135. data/node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md +620 -0
  136. data/node_modules/acorn-globals/node_modules/acorn/LICENSE +21 -0
  137. data/node_modules/acorn-globals/node_modules/acorn/README.md +269 -0
  138. data/node_modules/acorn-globals/node_modules/acorn/bin/acorn +4 -0
  139. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts +209 -0
  140. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js +5186 -0
  141. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map +1 -0
  142. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs +5155 -0
  143. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
  144. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +1 -0
  145. data/node_modules/acorn-globals/node_modules/acorn/dist/bin.js +64 -0
  146. data/node_modules/acorn-globals/node_modules/acorn/package.json +35 -0
  147. data/node_modules/acorn-globals/package.json +35 -0
  148. data/node_modules/acorn-walk/CHANGELOG.md +131 -0
  149. data/node_modules/acorn-walk/LICENSE +19 -0
  150. data/node_modules/acorn-walk/README.md +126 -0
  151. data/node_modules/acorn-walk/dist/walk.d.ts +112 -0
  152. data/node_modules/acorn-walk/dist/walk.js +463 -0
  153. data/node_modules/acorn-walk/dist/walk.js.map +1 -0
  154. data/node_modules/acorn-walk/dist/walk.mjs +443 -0
  155. data/node_modules/acorn-walk/dist/walk.mjs.map +1 -0
  156. data/node_modules/acorn-walk/package.json +34 -0
  157. data/node_modules/agent-base/README.md +145 -0
  158. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  159. data/node_modules/agent-base/dist/src/index.js +203 -0
  160. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  161. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  162. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  163. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  164. data/node_modules/agent-base/package.json +64 -0
  165. data/node_modules/agent-base/src/index.ts +345 -0
  166. data/node_modules/agent-base/src/promisify.ts +33 -0
  167. data/node_modules/asynckit/LICENSE +21 -0
  168. data/node_modules/asynckit/README.md +233 -0
  169. data/node_modules/asynckit/bench.js +76 -0
  170. data/node_modules/asynckit/index.js +6 -0
  171. data/node_modules/asynckit/lib/abort.js +29 -0
  172. data/node_modules/asynckit/lib/async.js +34 -0
  173. data/node_modules/asynckit/lib/defer.js +26 -0
  174. data/node_modules/asynckit/lib/iterate.js +75 -0
  175. data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  176. data/node_modules/asynckit/lib/readable_parallel.js +25 -0
  177. data/node_modules/asynckit/lib/readable_serial.js +25 -0
  178. data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  179. data/node_modules/asynckit/lib/state.js +37 -0
  180. data/node_modules/asynckit/lib/streamify.js +141 -0
  181. data/node_modules/asynckit/lib/terminator.js +29 -0
  182. data/node_modules/asynckit/package.json +63 -0
  183. data/node_modules/asynckit/parallel.js +43 -0
  184. data/node_modules/asynckit/serial.js +17 -0
  185. data/node_modules/asynckit/serialOrdered.js +75 -0
  186. data/node_modules/asynckit/stream.js +21 -0
  187. data/node_modules/browser-process-hrtime/LICENSE +9 -0
  188. data/node_modules/browser-process-hrtime/README.md +27 -0
  189. data/node_modules/browser-process-hrtime/index.d.ts +4 -0
  190. data/node_modules/browser-process-hrtime/index.js +28 -0
  191. data/node_modules/browser-process-hrtime/package.json +15 -0
  192. data/node_modules/combined-stream/License +19 -0
  193. data/node_modules/combined-stream/Readme.md +138 -0
  194. data/node_modules/combined-stream/lib/combined_stream.js +208 -0
  195. data/node_modules/combined-stream/package.json +25 -0
  196. data/node_modules/combined-stream/yarn.lock +17 -0
  197. data/node_modules/cssom/LICENSE.txt +20 -0
  198. data/node_modules/cssom/README.mdown +67 -0
  199. data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  200. data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  201. data/node_modules/cssom/lib/CSSHostRule.js +37 -0
  202. data/node_modules/cssom/lib/CSSImportRule.js +132 -0
  203. data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  204. data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  205. data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
  206. data/node_modules/cssom/lib/CSSOM.js +3 -0
  207. data/node_modules/cssom/lib/CSSRule.js +43 -0
  208. data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  209. data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  210. data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  211. data/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  212. data/node_modules/cssom/lib/CSSValue.js +43 -0
  213. data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  214. data/node_modules/cssom/lib/MatcherList.js +62 -0
  215. data/node_modules/cssom/lib/MediaList.js +61 -0
  216. data/node_modules/cssom/lib/StyleSheet.js +17 -0
  217. data/node_modules/cssom/lib/clone.js +71 -0
  218. data/node_modules/cssom/lib/index.js +21 -0
  219. data/node_modules/cssom/lib/parse.js +463 -0
  220. data/node_modules/cssom/package.json +18 -0
  221. data/node_modules/cssstyle/LICENSE +20 -0
  222. data/node_modules/cssstyle/README.md +15 -0
  223. data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +260 -0
  224. data/node_modules/cssstyle/lib/CSSStyleDeclaration.test.js +556 -0
  225. data/node_modules/cssstyle/lib/allExtraProperties.js +67 -0
  226. data/node_modules/cssstyle/lib/allProperties.js +462 -0
  227. data/node_modules/cssstyle/lib/allWebkitProperties.js +194 -0
  228. data/node_modules/cssstyle/lib/constants.js +6 -0
  229. data/node_modules/cssstyle/lib/implementedProperties.js +90 -0
  230. data/node_modules/cssstyle/lib/named_colors.json +152 -0
  231. data/node_modules/cssstyle/lib/parsers.js +722 -0
  232. data/node_modules/cssstyle/lib/parsers.test.js +139 -0
  233. data/node_modules/cssstyle/lib/properties/azimuth.js +67 -0
  234. data/node_modules/cssstyle/lib/properties/background.js +19 -0
  235. data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +24 -0
  236. data/node_modules/cssstyle/lib/properties/backgroundColor.js +36 -0
  237. data/node_modules/cssstyle/lib/properties/backgroundImage.js +32 -0
  238. data/node_modules/cssstyle/lib/properties/backgroundPosition.js +58 -0
  239. data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +32 -0
  240. data/node_modules/cssstyle/lib/properties/border.js +33 -0
  241. data/node_modules/cssstyle/lib/properties/borderBottom.js +17 -0
  242. data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
  243. data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
  244. data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
  245. data/node_modules/cssstyle/lib/properties/borderCollapse.js +26 -0
  246. data/node_modules/cssstyle/lib/properties/borderColor.js +30 -0
  247. data/node_modules/cssstyle/lib/properties/borderLeft.js +17 -0
  248. data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
  249. data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
  250. data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
  251. data/node_modules/cssstyle/lib/properties/borderRight.js +17 -0
  252. data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
  253. data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
  254. data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
  255. data/node_modules/cssstyle/lib/properties/borderSpacing.js +41 -0
  256. data/node_modules/cssstyle/lib/properties/borderStyle.js +38 -0
  257. data/node_modules/cssstyle/lib/properties/borderTop.js +17 -0
  258. data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
  259. data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
  260. data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
  261. data/node_modules/cssstyle/lib/properties/borderWidth.js +46 -0
  262. data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
  263. data/node_modules/cssstyle/lib/properties/clear.js +16 -0
  264. data/node_modules/cssstyle/lib/properties/clip.js +47 -0
  265. data/node_modules/cssstyle/lib/properties/color.js +14 -0
  266. data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
  267. data/node_modules/cssstyle/lib/properties/flex.js +45 -0
  268. data/node_modules/cssstyle/lib/properties/flexBasis.js +28 -0
  269. data/node_modules/cssstyle/lib/properties/flexGrow.js +19 -0
  270. data/node_modules/cssstyle/lib/properties/flexShrink.js +19 -0
  271. data/node_modules/cssstyle/lib/properties/float.js +12 -0
  272. data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
  273. data/node_modules/cssstyle/lib/properties/font.js +43 -0
  274. data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
  275. data/node_modules/cssstyle/lib/properties/fontSize.js +38 -0
  276. data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
  277. data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
  278. data/node_modules/cssstyle/lib/properties/fontWeight.js +33 -0
  279. data/node_modules/cssstyle/lib/properties/height.js +24 -0
  280. data/node_modules/cssstyle/lib/properties/left.js +14 -0
  281. data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
  282. data/node_modules/cssstyle/lib/properties/lineHeight.js +26 -0
  283. data/node_modules/cssstyle/lib/properties/margin.js +68 -0
  284. data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
  285. data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
  286. data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
  287. data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
  288. data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
  289. data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
  290. data/node_modules/cssstyle/lib/properties/padding.js +61 -0
  291. data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
  292. data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
  293. data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
  294. data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
  295. data/node_modules/cssstyle/lib/properties/right.js +14 -0
  296. data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
  297. data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
  298. data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
  299. data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
  300. data/node_modules/cssstyle/lib/properties/top.js +14 -0
  301. data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
  302. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
  303. data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
  304. data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
  305. data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
  306. data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
  307. data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
  308. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
  309. data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
  310. data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
  311. data/node_modules/cssstyle/lib/properties/width.js +24 -0
  312. data/node_modules/cssstyle/lib/properties.js +1833 -0
  313. data/node_modules/cssstyle/lib/utils/colorSpace.js +21 -0
  314. data/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js +14 -0
  315. data/node_modules/cssstyle/node_modules/cssom/LICENSE.txt +20 -0
  316. data/node_modules/cssstyle/node_modules/cssom/README.mdown +67 -0
  317. data/node_modules/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  318. data/node_modules/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  319. data/node_modules/cssstyle/node_modules/cssom/lib/CSSHostRule.js +37 -0
  320. data/node_modules/cssstyle/node_modules/cssom/lib/CSSImportRule.js +132 -0
  321. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  322. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  323. data/node_modules/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +41 -0
  324. data/node_modules/cssstyle/node_modules/cssom/lib/CSSOM.js +3 -0
  325. data/node_modules/cssstyle/node_modules/cssom/lib/CSSRule.js +43 -0
  326. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  327. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  328. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  329. data/node_modules/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  330. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValue.js +43 -0
  331. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  332. data/node_modules/cssstyle/node_modules/cssom/lib/MatcherList.js +62 -0
  333. data/node_modules/cssstyle/node_modules/cssom/lib/MediaList.js +61 -0
  334. data/node_modules/cssstyle/node_modules/cssom/lib/StyleSheet.js +17 -0
  335. data/node_modules/cssstyle/node_modules/cssom/lib/clone.js +82 -0
  336. data/node_modules/cssstyle/node_modules/cssom/lib/index.js +21 -0
  337. data/node_modules/cssstyle/node_modules/cssom/lib/parse.js +464 -0
  338. data/node_modules/cssstyle/node_modules/cssom/package.json +18 -0
  339. data/node_modules/cssstyle/package.json +72 -0
  340. data/node_modules/data-urls/LICENSE.txt +7 -0
  341. data/node_modules/data-urls/README.md +64 -0
  342. data/node_modules/data-urls/lib/parser.js +74 -0
  343. data/node_modules/data-urls/lib/utils.js +23 -0
  344. data/node_modules/data-urls/package.json +53 -0
  345. data/node_modules/debug/LICENSE +19 -0
  346. data/node_modules/debug/README.md +455 -0
  347. data/node_modules/debug/package.json +59 -0
  348. data/node_modules/debug/src/browser.js +269 -0
  349. data/node_modules/debug/src/common.js +274 -0
  350. data/node_modules/debug/src/index.js +10 -0
  351. data/node_modules/debug/src/node.js +263 -0
  352. data/node_modules/decimal.js/CHANGELOG.md +231 -0
  353. data/node_modules/decimal.js/LICENCE.md +23 -0
  354. data/node_modules/decimal.js/README.md +246 -0
  355. data/node_modules/decimal.js/decimal.d.ts +300 -0
  356. data/node_modules/decimal.js/decimal.js +4934 -0
  357. data/node_modules/decimal.js/decimal.mjs +4898 -0
  358. data/node_modules/decimal.js/package.json +40 -0
  359. data/node_modules/deep-is/LICENSE +22 -0
  360. data/node_modules/deep-is/README.markdown +70 -0
  361. data/node_modules/deep-is/example/cmp.js +11 -0
  362. data/node_modules/deep-is/index.js +102 -0
  363. data/node_modules/deep-is/package.json +61 -0
  364. data/node_modules/deep-is/test/NaN.js +16 -0
  365. data/node_modules/deep-is/test/cmp.js +23 -0
  366. data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
  367. data/node_modules/delayed-stream/License +19 -0
  368. data/node_modules/delayed-stream/Makefile +7 -0
  369. data/node_modules/delayed-stream/Readme.md +141 -0
  370. data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  371. data/node_modules/delayed-stream/package.json +27 -0
  372. data/node_modules/domexception/LICENSE.txt +21 -0
  373. data/node_modules/domexception/README.md +31 -0
  374. data/node_modules/domexception/index.js +7 -0
  375. data/node_modules/domexception/lib/DOMException-impl.js +22 -0
  376. data/node_modules/domexception/lib/DOMException.js +205 -0
  377. data/node_modules/domexception/lib/legacy-error-codes.json +27 -0
  378. data/node_modules/domexception/lib/utils.js +115 -0
  379. data/node_modules/domexception/node_modules/webidl-conversions/LICENSE.md +12 -0
  380. data/node_modules/domexception/node_modules/webidl-conversions/README.md +79 -0
  381. data/node_modules/domexception/node_modules/webidl-conversions/lib/index.js +361 -0
  382. data/node_modules/domexception/node_modules/webidl-conversions/package.json +30 -0
  383. data/node_modules/domexception/package.json +42 -0
  384. data/node_modules/domexception/webidl2js-wrapper.js +15 -0
  385. data/node_modules/escodegen/LICENSE.BSD +21 -0
  386. data/node_modules/escodegen/README.md +84 -0
  387. data/node_modules/escodegen/bin/escodegen.js +77 -0
  388. data/node_modules/escodegen/bin/esgenerate.js +64 -0
  389. data/node_modules/escodegen/escodegen.js +2647 -0
  390. data/node_modules/escodegen/package.json +62 -0
  391. data/node_modules/estraverse/LICENSE.BSD +19 -0
  392. data/node_modules/estraverse/README.md +153 -0
  393. data/node_modules/estraverse/estraverse.js +801 -0
  394. data/node_modules/estraverse/gulpfile.js +70 -0
  395. data/node_modules/estraverse/package.json +40 -0
  396. data/node_modules/esutils/LICENSE.BSD +19 -0
  397. data/node_modules/esutils/README.md +174 -0
  398. data/node_modules/esutils/lib/ast.js +144 -0
  399. data/node_modules/esutils/lib/code.js +135 -0
  400. data/node_modules/esutils/lib/keyword.js +165 -0
  401. data/node_modules/esutils/lib/utils.js +33 -0
  402. data/node_modules/esutils/package.json +44 -0
  403. data/node_modules/fast-levenshtein/LICENSE.md +25 -0
  404. data/node_modules/fast-levenshtein/README.md +104 -0
  405. data/node_modules/fast-levenshtein/levenshtein.js +136 -0
  406. data/node_modules/fast-levenshtein/package.json +39 -0
  407. data/node_modules/form-data/License +19 -0
  408. data/node_modules/form-data/README.md.bak +356 -0
  409. data/node_modules/form-data/Readme.md +356 -0
  410. data/node_modules/form-data/index.d.ts +62 -0
  411. data/node_modules/form-data/lib/browser.js +2 -0
  412. data/node_modules/form-data/lib/form_data.js +498 -0
  413. data/node_modules/form-data/lib/populate.js +10 -0
  414. data/node_modules/form-data/package.json +68 -0
  415. data/node_modules/html-encoding-sniffer/LICENSE.txt +7 -0
  416. data/node_modules/html-encoding-sniffer/README.md +38 -0
  417. data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +295 -0
  418. data/node_modules/html-encoding-sniffer/package.json +30 -0
  419. data/node_modules/http-proxy-agent/README.md +74 -0
  420. data/node_modules/http-proxy-agent/dist/agent.d.ts +32 -0
  421. data/node_modules/http-proxy-agent/dist/agent.js +145 -0
  422. data/node_modules/http-proxy-agent/dist/agent.js.map +1 -0
  423. data/node_modules/http-proxy-agent/dist/index.d.ts +21 -0
  424. data/node_modules/http-proxy-agent/dist/index.js +14 -0
  425. data/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  426. data/node_modules/http-proxy-agent/package.json +57 -0
  427. data/node_modules/https-proxy-agent/README.md +137 -0
  428. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  429. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  430. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  431. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  432. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  433. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  434. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  435. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  436. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  437. data/node_modules/https-proxy-agent/package.json +56 -0
  438. data/node_modules/iconv-lite/Changelog.md +162 -0
  439. data/node_modules/iconv-lite/LICENSE +21 -0
  440. data/node_modules/iconv-lite/README.md +156 -0
  441. data/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
  442. data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  443. data/node_modules/iconv-lite/encodings/index.js +22 -0
  444. data/node_modules/iconv-lite/encodings/internal.js +188 -0
  445. data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  446. data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  447. data/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
  448. data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  449. data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  450. data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  451. data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  452. data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  453. data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  454. data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  455. data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  456. data/node_modules/iconv-lite/encodings/utf16.js +177 -0
  457. data/node_modules/iconv-lite/encodings/utf7.js +290 -0
  458. data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  459. data/node_modules/iconv-lite/lib/extend-node.js +217 -0
  460. data/node_modules/iconv-lite/lib/index.d.ts +24 -0
  461. data/node_modules/iconv-lite/lib/index.js +153 -0
  462. data/node_modules/iconv-lite/lib/streams.js +121 -0
  463. data/node_modules/iconv-lite/package.json +46 -0
  464. data/node_modules/is-potential-custom-element-name/LICENSE-MIT.txt +20 -0
  465. data/node_modules/is-potential-custom-element-name/README.md +40 -0
  466. data/node_modules/is-potential-custom-element-name/index.js +9 -0
  467. data/node_modules/is-potential-custom-element-name/package.json +35 -0
  468. data/node_modules/jsdom/LICENSE.txt +22 -0
  469. data/node_modules/jsdom/README.md +522 -0
  470. data/node_modules/jsdom/lib/api.js +333 -0
  471. data/node_modules/jsdom/lib/jsdom/browser/Window.js +933 -0
  472. data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +789 -0
  473. data/node_modules/jsdom/lib/jsdom/browser/js-globals.json +307 -0
  474. data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
  475. data/node_modules/jsdom/lib/jsdom/browser/parser/html.js +223 -0
  476. data/node_modules/jsdom/lib/jsdom/browser/parser/index.js +37 -0
  477. data/node_modules/jsdom/lib/jsdom/browser/parser/xml.js +202 -0
  478. data/node_modules/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +114 -0
  479. data/node_modules/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +8 -0
  480. data/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +95 -0
  481. data/node_modules/jsdom/lib/jsdom/browser/resources/request-manager.js +33 -0
  482. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js +142 -0
  483. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js +142 -0
  484. data/node_modules/jsdom/lib/jsdom/level2/style.js +57 -0
  485. data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
  486. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +17 -0
  487. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +55 -0
  488. data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +60 -0
  489. data/node_modules/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +78 -0
  490. data/node_modules/jsdom/lib/jsdom/living/attributes.js +312 -0
  491. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +75 -0
  492. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +66 -0
  493. data/node_modules/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +38 -0
  494. data/node_modules/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +265 -0
  495. data/node_modules/jsdom/lib/jsdom/living/documents.js +15 -0
  496. data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +58 -0
  497. data/node_modules/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +29 -0
  498. data/node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +18 -0
  499. data/node_modules/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +63 -0
  500. data/node_modules/jsdom/lib/jsdom/living/domparsing/serialization.js +45 -0
  501. data/node_modules/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +10 -0
  502. data/node_modules/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +20 -0
  503. data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +21 -0
  504. data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +14 -0
  505. data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +197 -0
  506. data/node_modules/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +18 -0
  507. data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +403 -0
  508. data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +9 -0
  509. data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +14 -0
  510. data/node_modules/jsdom/lib/jsdom/living/events/InputEvent-impl.js +11 -0
  511. data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +29 -0
  512. data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +25 -0
  513. data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +49 -0
  514. data/node_modules/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +20 -0
  515. data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +9 -0
  516. data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +14 -0
  517. data/node_modules/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +26 -0
  518. data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +14 -0
  519. data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +59 -0
  520. data/node_modules/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +12 -0
  521. data/node_modules/jsdom/lib/jsdom/living/fetch/Headers-impl.js +165 -0
  522. data/node_modules/jsdom/lib/jsdom/living/fetch/header-list.js +54 -0
  523. data/node_modules/jsdom/lib/jsdom/living/fetch/header-types.js +103 -0
  524. data/node_modules/jsdom/lib/jsdom/living/file-api/Blob-impl.js +93 -0
  525. data/node_modules/jsdom/lib/jsdom/living/file-api/File-impl.js +12 -0
  526. data/node_modules/jsdom/lib/jsdom/living/file-api/FileList-impl.js +15 -0
  527. data/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +130 -0
  528. data/node_modules/jsdom/lib/jsdom/living/generated/AbortController.js +130 -0
  529. data/node_modules/jsdom/lib/jsdom/living/generated/AbortSignal.js +159 -0
  530. data/node_modules/jsdom/lib/jsdom/living/generated/AbstractRange.js +162 -0
  531. data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +44 -0
  532. data/node_modules/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +28 -0
  533. data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +215 -0
  534. data/node_modules/jsdom/lib/jsdom/living/generated/BarProp.js +118 -0
  535. data/node_modules/jsdom/lib/jsdom/living/generated/BinaryType.js +12 -0
  536. data/node_modules/jsdom/lib/jsdom/living/generated/Blob.js +198 -0
  537. data/node_modules/jsdom/lib/jsdom/living/generated/BlobCallback.js +34 -0
  538. data/node_modules/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +42 -0
  539. data/node_modules/jsdom/lib/jsdom/living/generated/CDATASection.js +114 -0
  540. data/node_modules/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +12 -0
  541. data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +436 -0
  542. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEvent.js +164 -0
  543. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEventInit.js +56 -0
  544. data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +122 -0
  545. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEvent.js +217 -0
  546. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +32 -0
  547. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +38 -0
  548. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +242 -0
  549. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +200 -0
  550. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +32 -0
  551. data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +232 -0
  552. data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +140 -0
  553. data/node_modules/jsdom/lib/jsdom/living/generated/DOMStringMap.js +322 -0
  554. data/node_modules/jsdom/lib/jsdom/living/generated/DOMTokenList.js +531 -0
  555. data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +3322 -0
  556. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +325 -0
  557. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +12 -0
  558. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +246 -0
  559. data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +1609 -0
  560. data/node_modules/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +26 -0
  561. data/node_modules/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +26 -0
  562. data/node_modules/jsdom/lib/jsdom/living/generated/EndingType.js +12 -0
  563. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +186 -0
  564. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +80 -0
  565. data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +390 -0
  566. data/node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +40 -0
  567. data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +52 -0
  568. data/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js +35 -0
  569. data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +28 -0
  570. data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +188 -0
  571. data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +252 -0
  572. data/node_modules/jsdom/lib/jsdom/living/generated/External.js +129 -0
  573. data/node_modules/jsdom/lib/jsdom/living/generated/File.js +176 -0
  574. data/node_modules/jsdom/lib/jsdom/living/generated/FileList.js +305 -0
  575. data/node_modules/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +30 -0
  576. data/node_modules/jsdom/lib/jsdom/living/generated/FileReader.js +440 -0
  577. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +142 -0
  578. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +36 -0
  579. data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +421 -0
  580. data/node_modules/jsdom/lib/jsdom/living/generated/Function.js +46 -0
  581. data/node_modules/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +28 -0
  582. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +915 -0
  583. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +739 -0
  584. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +115 -0
  585. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +153 -0
  586. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +188 -0
  587. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +808 -0
  588. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +487 -0
  589. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +291 -0
  590. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCollection.js +358 -0
  591. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +156 -0
  592. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +153 -0
  593. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +128 -0
  594. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +156 -0
  595. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +156 -0
  596. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +156 -0
  597. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +153 -0
  598. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +2269 -0
  599. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +346 -0
  600. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +315 -0
  601. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +226 -0
  602. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +457 -0
  603. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +459 -0
  604. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +683 -0
  605. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +300 -0
  606. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +115 -0
  607. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +153 -0
  608. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +153 -0
  609. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +621 -0
  610. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +789 -0
  611. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +1696 -0
  612. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +194 -0
  613. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +175 -0
  614. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +164 -0
  615. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +496 -0
  616. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +166 -0
  617. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +509 -0
  618. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +802 -0
  619. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +156 -0
  620. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +261 -0
  621. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +338 -0
  622. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +202 -0
  623. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +266 -0
  624. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +839 -0
  625. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +192 -0
  626. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +351 -0
  627. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +533 -0
  628. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +371 -0
  629. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +153 -0
  630. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +261 -0
  631. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +115 -0
  632. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +158 -0
  633. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +209 -0
  634. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +166 -0
  635. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +424 -0
  636. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +957 -0
  637. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +188 -0
  638. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +310 -0
  639. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +115 -0
  640. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +200 -0
  641. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +153 -0
  642. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +635 -0
  643. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +339 -0
  644. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +725 -0
  645. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +386 -0
  646. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +329 -0
  647. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +126 -0
  648. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +1088 -0
  649. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +153 -0
  650. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +152 -0
  651. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +334 -0
  652. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +192 -0
  653. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +114 -0
  654. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +310 -0
  655. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +153 -0
  656. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +44 -0
  657. data/node_modules/jsdom/lib/jsdom/living/generated/Headers.js +379 -0
  658. data/node_modules/jsdom/lib/jsdom/living/generated/History.js +256 -0
  659. data/node_modules/jsdom/lib/jsdom/living/generated/InputEvent.js +164 -0
  660. data/node_modules/jsdom/lib/jsdom/living/generated/InputEventInit.js +59 -0
  661. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +413 -0
  662. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +104 -0
  663. data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +370 -0
  664. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +301 -0
  665. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +94 -0
  666. data/node_modules/jsdom/lib/jsdom/living/generated/MimeType.js +151 -0
  667. data/node_modules/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +330 -0
  668. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +463 -0
  669. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +108 -0
  670. data/node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js +38 -0
  671. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserver.js +171 -0
  672. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +103 -0
  673. data/node_modules/jsdom/lib/jsdom/living/generated/MutationRecord.js +216 -0
  674. data/node_modules/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +522 -0
  675. data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +297 -0
  676. data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +736 -0
  677. data/node_modules/jsdom/lib/jsdom/living/generated/NodeFilter.js +74 -0
  678. data/node_modules/jsdom/lib/jsdom/living/generated/NodeIterator.js +196 -0
  679. data/node_modules/jsdom/lib/jsdom/living/generated/NodeList.js +309 -0
  680. data/node_modules/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +46 -0
  681. data/node_modules/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +60 -0
  682. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +146 -0
  683. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +32 -0
  684. data/node_modules/jsdom/lib/jsdom/living/generated/Performance.js +145 -0
  685. data/node_modules/jsdom/lib/jsdom/living/generated/Plugin.js +361 -0
  686. data/node_modules/jsdom/lib/jsdom/living/generated/PluginArray.js +340 -0
  687. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +142 -0
  688. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
  689. data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +125 -0
  690. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +166 -0
  691. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +56 -0
  692. data/node_modules/jsdom/lib/jsdom/living/generated/Range.js +619 -0
  693. data/node_modules/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +143 -0
  694. data/node_modules/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +64 -0
  695. data/node_modules/jsdom/lib/jsdom/living/generated/SVGElement.js +1986 -0
  696. data/node_modules/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +144 -0
  697. data/node_modules/jsdom/lib/jsdom/living/generated/SVGNumber.js +130 -0
  698. data/node_modules/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +681 -0
  699. data/node_modules/jsdom/lib/jsdom/living/generated/SVGStringList.js +504 -0
  700. data/node_modules/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +114 -0
  701. data/node_modules/jsdom/lib/jsdom/living/generated/Screen.js +173 -0
  702. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +12 -0
  703. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +45 -0
  704. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +12 -0
  705. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +30 -0
  706. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +12 -0
  707. data/node_modules/jsdom/lib/jsdom/living/generated/Selection.js +527 -0
  708. data/node_modules/jsdom/lib/jsdom/living/generated/SelectionMode.js +12 -0
  709. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRoot.js +185 -0
  710. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +30 -0
  711. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +12 -0
  712. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRange.js +126 -0
  713. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +66 -0
  714. data/node_modules/jsdom/lib/jsdom/living/generated/Storage.js +389 -0
  715. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEvent.js +305 -0
  716. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEventInit.js +93 -0
  717. data/node_modules/jsdom/lib/jsdom/living/generated/StyleSheetList.js +307 -0
  718. data/node_modules/jsdom/lib/jsdom/living/generated/SupportedType.js +18 -0
  719. data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +169 -0
  720. data/node_modules/jsdom/lib/jsdom/living/generated/TextTrackKind.js +12 -0
  721. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +208 -0
  722. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEventInit.js +89 -0
  723. data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +236 -0
  724. data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +235 -0
  725. data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +59 -0
  726. data/node_modules/jsdom/lib/jsdom/living/generated/ValidityState.js +228 -0
  727. data/node_modules/jsdom/lib/jsdom/living/generated/VisibilityState.js +12 -0
  728. data/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js +30 -0
  729. data/node_modules/jsdom/lib/jsdom/living/generated/WebSocket.js +444 -0
  730. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEvent.js +183 -0
  731. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEventInit.js +68 -0
  732. data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +114 -0
  733. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +617 -0
  734. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +341 -0
  735. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +12 -0
  736. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +114 -0
  737. data/node_modules/jsdom/lib/jsdom/living/generated/XMLSerializer.js +133 -0
  738. data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +141 -0
  739. data/node_modules/jsdom/lib/jsdom/living/helpers/agent-factory.js +15 -0
  740. data/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js +9 -0
  741. data/node_modules/jsdom/lib/jsdom/living/helpers/create-element.js +320 -0
  742. data/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +188 -0
  743. data/node_modules/jsdom/lib/jsdom/living/helpers/custom-elements.js +270 -0
  744. data/node_modules/jsdom/lib/jsdom/living/helpers/dates-and-times.js +270 -0
  745. data/node_modules/jsdom/lib/jsdom/living/helpers/details.js +15 -0
  746. data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +54 -0
  747. data/node_modules/jsdom/lib/jsdom/living/helpers/events.js +24 -0
  748. data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +104 -0
  749. data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +306 -0
  750. data/node_modules/jsdom/lib/jsdom/living/helpers/html-constructor.js +78 -0
  751. data/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js +254 -0
  752. data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +12 -0
  753. data/node_modules/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +48 -0
  754. data/node_modules/jsdom/lib/jsdom/living/helpers/json.js +12 -0
  755. data/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js +198 -0
  756. data/node_modules/jsdom/lib/jsdom/living/helpers/namespaces.js +15 -0
  757. data/node_modules/jsdom/lib/jsdom/living/helpers/node.js +68 -0
  758. data/node_modules/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +195 -0
  759. data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set.js +104 -0
  760. data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +76 -0
  761. data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +47 -0
  762. data/node_modules/jsdom/lib/jsdom/living/helpers/shadow-dom.js +285 -0
  763. data/node_modules/jsdom/lib/jsdom/living/helpers/strings.js +148 -0
  764. data/node_modules/jsdom/lib/jsdom/living/helpers/style-rules.js +114 -0
  765. data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +113 -0
  766. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +41 -0
  767. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/render.js +46 -0
  768. data/node_modules/jsdom/lib/jsdom/living/helpers/text.js +19 -0
  769. data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +72 -0
  770. data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +75 -0
  771. data/node_modules/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +25 -0
  772. data/node_modules/jsdom/lib/jsdom/living/interfaces.js +217 -0
  773. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +95 -0
  774. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +37 -0
  775. data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +141 -0
  776. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +3 -0
  777. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +21 -0
  778. data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +29 -0
  779. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
  780. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
  781. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
  782. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
  783. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
  784. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +8 -0
  785. data/node_modules/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +3 -0
  786. data/node_modules/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +23 -0
  787. data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
  788. data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
  789. data/node_modules/jsdom/lib/jsdom/living/node.js +331 -0
  790. data/node_modules/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +16 -0
  791. data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +118 -0
  792. data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +80 -0
  793. data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +20 -0
  794. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +120 -0
  795. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +64 -0
  796. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +171 -0
  797. data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +946 -0
  798. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +44 -0
  799. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +28 -0
  800. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +24 -0
  801. data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +578 -0
  802. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +25 -0
  803. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
  804. data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +95 -0
  805. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +50 -0
  806. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +43 -0
  807. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
  808. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
  809. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
  810. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +17 -0
  811. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +79 -0
  812. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +130 -0
  813. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +96 -0
  814. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
  815. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
  816. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +20 -0
  817. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +35 -0
  818. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
  819. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
  820. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
  821. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +160 -0
  822. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +8 -0
  823. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +43 -0
  824. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
  825. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +226 -0
  826. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +261 -0
  827. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +17 -0
  828. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
  829. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
  830. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
  831. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
  832. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +371 -0
  833. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
  834. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +132 -0
  835. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +1128 -0
  836. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
  837. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +94 -0
  838. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +18 -0
  839. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +101 -0
  840. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
  841. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +9 -0
  842. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +138 -0
  843. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
  844. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
  845. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +180 -0
  846. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
  847. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +22 -0
  848. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +26 -0
  849. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
  850. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +146 -0
  851. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +110 -0
  852. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +85 -0
  853. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +88 -0
  854. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
  855. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
  856. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +9 -0
  857. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
  858. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +74 -0
  859. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
  860. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +265 -0
  861. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +283 -0
  862. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +59 -0
  863. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +8 -0
  864. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
  865. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +74 -0
  866. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
  867. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +73 -0
  868. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
  869. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +236 -0
  870. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +88 -0
  871. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +61 -0
  872. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +67 -0
  873. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +272 -0
  874. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
  875. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
  876. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +13 -0
  877. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
  878. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
  879. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +17 -0
  880. data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +2 -0
  881. data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +1165 -0
  882. data/node_modules/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +43 -0
  883. data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
  884. data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +11 -0
  885. data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
  886. data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
  887. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +64 -0
  888. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +16 -0
  889. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +42 -0
  890. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +42 -0
  891. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +9 -0
  892. data/node_modules/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +40 -0
  893. data/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +48 -0
  894. data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +96 -0
  895. data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +52 -0
  896. data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
  897. data/node_modules/jsdom/lib/jsdom/living/post-message.js +39 -0
  898. data/node_modules/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +43 -0
  899. data/node_modules/jsdom/lib/jsdom/living/range/Range-impl.js +889 -0
  900. data/node_modules/jsdom/lib/jsdom/living/range/StaticRange-impl.js +39 -0
  901. data/node_modules/jsdom/lib/jsdom/living/range/boundary-point.js +47 -0
  902. data/node_modules/jsdom/lib/jsdom/living/selection/Selection-impl.js +342 -0
  903. data/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +38 -0
  904. data/node_modules/jsdom/lib/jsdom/living/svg/SVGListBase.js +195 -0
  905. data/node_modules/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +48 -0
  906. data/node_modules/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +16 -0
  907. data/node_modules/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +127 -0
  908. data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +217 -0
  909. data/node_modules/jsdom/lib/jsdom/living/traversal/helpers.js +44 -0
  910. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +175 -0
  911. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +328 -0
  912. data/node_modules/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +102 -0
  913. data/node_modules/jsdom/lib/jsdom/living/window/BarProp-impl.js +10 -0
  914. data/node_modules/jsdom/lib/jsdom/living/window/External-impl.js +9 -0
  915. data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +134 -0
  916. data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +238 -0
  917. data/node_modules/jsdom/lib/jsdom/living/window/Screen-impl.js +13 -0
  918. data/node_modules/jsdom/lib/jsdom/living/window/SessionHistory.js +163 -0
  919. data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +84 -0
  920. data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +171 -0
  921. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +1023 -0
  922. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +17 -0
  923. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +4 -0
  924. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +60 -0
  925. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js +438 -0
  926. data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +158 -0
  927. data/node_modules/jsdom/lib/jsdom/utils.js +165 -0
  928. data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
  929. data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
  930. data/node_modules/jsdom/package.json +116 -0
  931. data/node_modules/levn/LICENSE +22 -0
  932. data/node_modules/levn/README.md +196 -0
  933. data/node_modules/levn/lib/cast.js +298 -0
  934. data/node_modules/levn/lib/coerce.js +285 -0
  935. data/node_modules/levn/lib/index.js +22 -0
  936. data/node_modules/levn/lib/parse-string.js +113 -0
  937. data/node_modules/levn/lib/parse.js +102 -0
  938. data/node_modules/levn/package.json +47 -0
  939. data/node_modules/lodash/LICENSE +47 -0
  940. data/node_modules/lodash/README.md +39 -0
  941. data/node_modules/lodash/_DataView.js +7 -0
  942. data/node_modules/lodash/_Hash.js +32 -0
  943. data/node_modules/lodash/_LazyWrapper.js +28 -0
  944. data/node_modules/lodash/_ListCache.js +32 -0
  945. data/node_modules/lodash/_LodashWrapper.js +22 -0
  946. data/node_modules/lodash/_Map.js +7 -0
  947. data/node_modules/lodash/_MapCache.js +32 -0
  948. data/node_modules/lodash/_Promise.js +7 -0
  949. data/node_modules/lodash/_Set.js +7 -0
  950. data/node_modules/lodash/_SetCache.js +27 -0
  951. data/node_modules/lodash/_Stack.js +27 -0
  952. data/node_modules/lodash/_Symbol.js +6 -0
  953. data/node_modules/lodash/_Uint8Array.js +6 -0
  954. data/node_modules/lodash/_WeakMap.js +7 -0
  955. data/node_modules/lodash/_apply.js +21 -0
  956. data/node_modules/lodash/_arrayAggregator.js +22 -0
  957. data/node_modules/lodash/_arrayEach.js +22 -0
  958. data/node_modules/lodash/_arrayEachRight.js +21 -0
  959. data/node_modules/lodash/_arrayEvery.js +23 -0
  960. data/node_modules/lodash/_arrayFilter.js +25 -0
  961. data/node_modules/lodash/_arrayIncludes.js +17 -0
  962. data/node_modules/lodash/_arrayIncludesWith.js +22 -0
  963. data/node_modules/lodash/_arrayLikeKeys.js +49 -0
  964. data/node_modules/lodash/_arrayMap.js +21 -0
  965. data/node_modules/lodash/_arrayPush.js +20 -0
  966. data/node_modules/lodash/_arrayReduce.js +26 -0
  967. data/node_modules/lodash/_arrayReduceRight.js +24 -0
  968. data/node_modules/lodash/_arraySample.js +15 -0
  969. data/node_modules/lodash/_arraySampleSize.js +17 -0
  970. data/node_modules/lodash/_arrayShuffle.js +15 -0
  971. data/node_modules/lodash/_arraySome.js +23 -0
  972. data/node_modules/lodash/_asciiSize.js +12 -0
  973. data/node_modules/lodash/_asciiToArray.js +12 -0
  974. data/node_modules/lodash/_asciiWords.js +15 -0
  975. data/node_modules/lodash/_assignMergeValue.js +20 -0
  976. data/node_modules/lodash/_assignValue.js +28 -0
  977. data/node_modules/lodash/_assocIndexOf.js +21 -0
  978. data/node_modules/lodash/_baseAggregator.js +21 -0
  979. data/node_modules/lodash/_baseAssign.js +17 -0
  980. data/node_modules/lodash/_baseAssignIn.js +17 -0
  981. data/node_modules/lodash/_baseAssignValue.js +25 -0
  982. data/node_modules/lodash/_baseAt.js +23 -0
  983. data/node_modules/lodash/_baseClamp.js +22 -0
  984. data/node_modules/lodash/_baseClone.js +166 -0
  985. data/node_modules/lodash/_baseConforms.js +18 -0
  986. data/node_modules/lodash/_baseConformsTo.js +27 -0
  987. data/node_modules/lodash/_baseCreate.js +30 -0
  988. data/node_modules/lodash/_baseDelay.js +21 -0
  989. data/node_modules/lodash/_baseDifference.js +67 -0
  990. data/node_modules/lodash/_baseEach.js +14 -0
  991. data/node_modules/lodash/_baseEachRight.js +14 -0
  992. data/node_modules/lodash/_baseEvery.js +21 -0
  993. data/node_modules/lodash/_baseExtremum.js +32 -0
  994. data/node_modules/lodash/_baseFill.js +32 -0
  995. data/node_modules/lodash/_baseFilter.js +21 -0
  996. data/node_modules/lodash/_baseFindIndex.js +24 -0
  997. data/node_modules/lodash/_baseFindKey.js +23 -0
  998. data/node_modules/lodash/_baseFlatten.js +38 -0
  999. data/node_modules/lodash/_baseFor.js +16 -0
  1000. data/node_modules/lodash/_baseForOwn.js +16 -0
  1001. data/node_modules/lodash/_baseForOwnRight.js +16 -0
  1002. data/node_modules/lodash/_baseForRight.js +15 -0
  1003. data/node_modules/lodash/_baseFunctions.js +19 -0
  1004. data/node_modules/lodash/_baseGet.js +24 -0
  1005. data/node_modules/lodash/_baseGetAllKeys.js +20 -0
  1006. data/node_modules/lodash/_baseGetTag.js +28 -0
  1007. data/node_modules/lodash/_baseGt.js +14 -0
  1008. data/node_modules/lodash/_baseHas.js +19 -0
  1009. data/node_modules/lodash/_baseHasIn.js +13 -0
  1010. data/node_modules/lodash/_baseInRange.js +18 -0
  1011. data/node_modules/lodash/_baseIndexOf.js +20 -0
  1012. data/node_modules/lodash/_baseIndexOfWith.js +23 -0
  1013. data/node_modules/lodash/_baseIntersection.js +74 -0
  1014. data/node_modules/lodash/_baseInverter.js +21 -0
  1015. data/node_modules/lodash/_baseInvoke.js +24 -0
  1016. data/node_modules/lodash/_baseIsArguments.js +18 -0
  1017. data/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  1018. data/node_modules/lodash/_baseIsDate.js +18 -0
  1019. data/node_modules/lodash/_baseIsEqual.js +28 -0
  1020. data/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  1021. data/node_modules/lodash/_baseIsMap.js +18 -0
  1022. data/node_modules/lodash/_baseIsMatch.js +62 -0
  1023. data/node_modules/lodash/_baseIsNaN.js +12 -0
  1024. data/node_modules/lodash/_baseIsNative.js +47 -0
  1025. data/node_modules/lodash/_baseIsRegExp.js +18 -0
  1026. data/node_modules/lodash/_baseIsSet.js +18 -0
  1027. data/node_modules/lodash/_baseIsTypedArray.js +60 -0
  1028. data/node_modules/lodash/_baseIteratee.js +31 -0
  1029. data/node_modules/lodash/_baseKeys.js +30 -0
  1030. data/node_modules/lodash/_baseKeysIn.js +33 -0
  1031. data/node_modules/lodash/_baseLodash.js +10 -0
  1032. data/node_modules/lodash/_baseLt.js +14 -0
  1033. data/node_modules/lodash/_baseMap.js +22 -0
  1034. data/node_modules/lodash/_baseMatches.js +22 -0
  1035. data/node_modules/lodash/_baseMatchesProperty.js +33 -0
  1036. data/node_modules/lodash/_baseMean.js +20 -0
  1037. data/node_modules/lodash/_baseMerge.js +42 -0
  1038. data/node_modules/lodash/_baseMergeDeep.js +94 -0
  1039. data/node_modules/lodash/_baseNth.js +20 -0
  1040. data/node_modules/lodash/_baseOrderBy.js +49 -0
  1041. data/node_modules/lodash/_basePick.js +19 -0
  1042. data/node_modules/lodash/_basePickBy.js +30 -0
  1043. data/node_modules/lodash/_baseProperty.js +14 -0
  1044. data/node_modules/lodash/_basePropertyDeep.js +16 -0
  1045. data/node_modules/lodash/_basePropertyOf.js +14 -0
  1046. data/node_modules/lodash/_basePullAll.js +51 -0
  1047. data/node_modules/lodash/_basePullAt.js +37 -0
  1048. data/node_modules/lodash/_baseRandom.js +18 -0
  1049. data/node_modules/lodash/_baseRange.js +28 -0
  1050. data/node_modules/lodash/_baseReduce.js +23 -0
  1051. data/node_modules/lodash/_baseRepeat.js +35 -0
  1052. data/node_modules/lodash/_baseRest.js +17 -0
  1053. data/node_modules/lodash/_baseSample.js +15 -0
  1054. data/node_modules/lodash/_baseSampleSize.js +18 -0
  1055. data/node_modules/lodash/_baseSet.js +51 -0
  1056. data/node_modules/lodash/_baseSetData.js +17 -0
  1057. data/node_modules/lodash/_baseSetToString.js +22 -0
  1058. data/node_modules/lodash/_baseShuffle.js +15 -0
  1059. data/node_modules/lodash/_baseSlice.js +31 -0
  1060. data/node_modules/lodash/_baseSome.js +22 -0
  1061. data/node_modules/lodash/_baseSortBy.js +21 -0
  1062. data/node_modules/lodash/_baseSortedIndex.js +42 -0
  1063. data/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  1064. data/node_modules/lodash/_baseSortedUniq.js +30 -0
  1065. data/node_modules/lodash/_baseSum.js +24 -0
  1066. data/node_modules/lodash/_baseTimes.js +20 -0
  1067. data/node_modules/lodash/_baseToNumber.js +24 -0
  1068. data/node_modules/lodash/_baseToPairs.js +18 -0
  1069. data/node_modules/lodash/_baseToString.js +37 -0
  1070. data/node_modules/lodash/_baseTrim.js +19 -0
  1071. data/node_modules/lodash/_baseUnary.js +14 -0
  1072. data/node_modules/lodash/_baseUniq.js +72 -0
  1073. data/node_modules/lodash/_baseUnset.js +20 -0
  1074. data/node_modules/lodash/_baseUpdate.js +18 -0
  1075. data/node_modules/lodash/_baseValues.js +19 -0
  1076. data/node_modules/lodash/_baseWhile.js +26 -0
  1077. data/node_modules/lodash/_baseWrapperValue.js +25 -0
  1078. data/node_modules/lodash/_baseXor.js +36 -0
  1079. data/node_modules/lodash/_baseZipObject.js +23 -0
  1080. data/node_modules/lodash/_cacheHas.js +13 -0
  1081. data/node_modules/lodash/_castArrayLikeObject.js +14 -0
  1082. data/node_modules/lodash/_castFunction.js +14 -0
  1083. data/node_modules/lodash/_castPath.js +21 -0
  1084. data/node_modules/lodash/_castRest.js +14 -0
  1085. data/node_modules/lodash/_castSlice.js +18 -0
  1086. data/node_modules/lodash/_charsEndIndex.js +19 -0
  1087. data/node_modules/lodash/_charsStartIndex.js +20 -0
  1088. data/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  1089. data/node_modules/lodash/_cloneBuffer.js +35 -0
  1090. data/node_modules/lodash/_cloneDataView.js +16 -0
  1091. data/node_modules/lodash/_cloneRegExp.js +17 -0
  1092. data/node_modules/lodash/_cloneSymbol.js +18 -0
  1093. data/node_modules/lodash/_cloneTypedArray.js +16 -0
  1094. data/node_modules/lodash/_compareAscending.js +41 -0
  1095. data/node_modules/lodash/_compareMultiple.js +44 -0
  1096. data/node_modules/lodash/_composeArgs.js +39 -0
  1097. data/node_modules/lodash/_composeArgsRight.js +41 -0
  1098. data/node_modules/lodash/_copyArray.js +20 -0
  1099. data/node_modules/lodash/_copyObject.js +40 -0
  1100. data/node_modules/lodash/_copySymbols.js +16 -0
  1101. data/node_modules/lodash/_copySymbolsIn.js +16 -0
  1102. data/node_modules/lodash/_coreJsData.js +6 -0
  1103. data/node_modules/lodash/_countHolders.js +21 -0
  1104. data/node_modules/lodash/_createAggregator.js +23 -0
  1105. data/node_modules/lodash/_createAssigner.js +37 -0
  1106. data/node_modules/lodash/_createBaseEach.js +32 -0
  1107. data/node_modules/lodash/_createBaseFor.js +25 -0
  1108. data/node_modules/lodash/_createBind.js +28 -0
  1109. data/node_modules/lodash/_createCaseFirst.js +33 -0
  1110. data/node_modules/lodash/_createCompounder.js +24 -0
  1111. data/node_modules/lodash/_createCtor.js +37 -0
  1112. data/node_modules/lodash/_createCurry.js +46 -0
  1113. data/node_modules/lodash/_createFind.js +25 -0
  1114. data/node_modules/lodash/_createFlow.js +78 -0
  1115. data/node_modules/lodash/_createHybrid.js +92 -0
  1116. data/node_modules/lodash/_createInverter.js +17 -0
  1117. data/node_modules/lodash/_createMathOperation.js +38 -0
  1118. data/node_modules/lodash/_createOver.js +27 -0
  1119. data/node_modules/lodash/_createPadding.js +33 -0
  1120. data/node_modules/lodash/_createPartial.js +43 -0
  1121. data/node_modules/lodash/_createRange.js +30 -0
  1122. data/node_modules/lodash/_createRecurry.js +56 -0
  1123. data/node_modules/lodash/_createRelationalOperation.js +20 -0
  1124. data/node_modules/lodash/_createRound.js +35 -0
  1125. data/node_modules/lodash/_createSet.js +19 -0
  1126. data/node_modules/lodash/_createToPairs.js +30 -0
  1127. data/node_modules/lodash/_createWrap.js +106 -0
  1128. data/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  1129. data/node_modules/lodash/_customDefaultsMerge.js +28 -0
  1130. data/node_modules/lodash/_customOmitClone.js +16 -0
  1131. data/node_modules/lodash/_deburrLetter.js +71 -0
  1132. data/node_modules/lodash/_defineProperty.js +11 -0
  1133. data/node_modules/lodash/_equalArrays.js +84 -0
  1134. data/node_modules/lodash/_equalByTag.js +112 -0
  1135. data/node_modules/lodash/_equalObjects.js +90 -0
  1136. data/node_modules/lodash/_escapeHtmlChar.js +21 -0
  1137. data/node_modules/lodash/_escapeStringChar.js +22 -0
  1138. data/node_modules/lodash/_flatRest.js +16 -0
  1139. data/node_modules/lodash/_freeGlobal.js +4 -0
  1140. data/node_modules/lodash/_getAllKeys.js +16 -0
  1141. data/node_modules/lodash/_getAllKeysIn.js +17 -0
  1142. data/node_modules/lodash/_getData.js +15 -0
  1143. data/node_modules/lodash/_getFuncName.js +31 -0
  1144. data/node_modules/lodash/_getHolder.js +13 -0
  1145. data/node_modules/lodash/_getMapData.js +18 -0
  1146. data/node_modules/lodash/_getMatchData.js +24 -0
  1147. data/node_modules/lodash/_getNative.js +17 -0
  1148. data/node_modules/lodash/_getPrototype.js +6 -0
  1149. data/node_modules/lodash/_getRawTag.js +46 -0
  1150. data/node_modules/lodash/_getSymbols.js +30 -0
  1151. data/node_modules/lodash/_getSymbolsIn.js +25 -0
  1152. data/node_modules/lodash/_getTag.js +58 -0
  1153. data/node_modules/lodash/_getValue.js +13 -0
  1154. data/node_modules/lodash/_getView.js +33 -0
  1155. data/node_modules/lodash/_getWrapDetails.js +17 -0
  1156. data/node_modules/lodash/_hasPath.js +39 -0
  1157. data/node_modules/lodash/_hasUnicode.js +26 -0
  1158. data/node_modules/lodash/_hasUnicodeWord.js +15 -0
  1159. data/node_modules/lodash/_hashClear.js +15 -0
  1160. data/node_modules/lodash/_hashDelete.js +17 -0
  1161. data/node_modules/lodash/_hashGet.js +30 -0
  1162. data/node_modules/lodash/_hashHas.js +23 -0
  1163. data/node_modules/lodash/_hashSet.js +23 -0
  1164. data/node_modules/lodash/_initCloneArray.js +26 -0
  1165. data/node_modules/lodash/_initCloneByTag.js +77 -0
  1166. data/node_modules/lodash/_initCloneObject.js +18 -0
  1167. data/node_modules/lodash/_insertWrapDetails.js +23 -0
  1168. data/node_modules/lodash/_isFlattenable.js +20 -0
  1169. data/node_modules/lodash/_isIndex.js +25 -0
  1170. data/node_modules/lodash/_isIterateeCall.js +30 -0
  1171. data/node_modules/lodash/_isKey.js +29 -0
  1172. data/node_modules/lodash/_isKeyable.js +15 -0
  1173. data/node_modules/lodash/_isLaziable.js +28 -0
  1174. data/node_modules/lodash/_isMaskable.js +14 -0
  1175. data/node_modules/lodash/_isMasked.js +20 -0
  1176. data/node_modules/lodash/_isPrototype.js +18 -0
  1177. data/node_modules/lodash/_isStrictComparable.js +15 -0
  1178. data/node_modules/lodash/_iteratorToArray.js +18 -0
  1179. data/node_modules/lodash/_lazyClone.js +23 -0
  1180. data/node_modules/lodash/_lazyReverse.js +23 -0
  1181. data/node_modules/lodash/_lazyValue.js +69 -0
  1182. data/node_modules/lodash/_listCacheClear.js +13 -0
  1183. data/node_modules/lodash/_listCacheDelete.js +35 -0
  1184. data/node_modules/lodash/_listCacheGet.js +19 -0
  1185. data/node_modules/lodash/_listCacheHas.js +16 -0
  1186. data/node_modules/lodash/_listCacheSet.js +26 -0
  1187. data/node_modules/lodash/_mapCacheClear.js +21 -0
  1188. data/node_modules/lodash/_mapCacheDelete.js +18 -0
  1189. data/node_modules/lodash/_mapCacheGet.js +16 -0
  1190. data/node_modules/lodash/_mapCacheHas.js +16 -0
  1191. data/node_modules/lodash/_mapCacheSet.js +22 -0
  1192. data/node_modules/lodash/_mapToArray.js +18 -0
  1193. data/node_modules/lodash/_matchesStrictComparable.js +20 -0
  1194. data/node_modules/lodash/_memoizeCapped.js +26 -0
  1195. data/node_modules/lodash/_mergeData.js +90 -0
  1196. data/node_modules/lodash/_metaMap.js +6 -0
  1197. data/node_modules/lodash/_nativeCreate.js +6 -0
  1198. data/node_modules/lodash/_nativeKeys.js +6 -0
  1199. data/node_modules/lodash/_nativeKeysIn.js +20 -0
  1200. data/node_modules/lodash/_nodeUtil.js +30 -0
  1201. data/node_modules/lodash/_objectToString.js +22 -0
  1202. data/node_modules/lodash/_overArg.js +15 -0
  1203. data/node_modules/lodash/_overRest.js +36 -0
  1204. data/node_modules/lodash/_parent.js +16 -0
  1205. data/node_modules/lodash/_reEscape.js +4 -0
  1206. data/node_modules/lodash/_reEvaluate.js +4 -0
  1207. data/node_modules/lodash/_reInterpolate.js +4 -0
  1208. data/node_modules/lodash/_realNames.js +4 -0
  1209. data/node_modules/lodash/_reorder.js +29 -0
  1210. data/node_modules/lodash/_replaceHolders.js +29 -0
  1211. data/node_modules/lodash/_root.js +9 -0
  1212. data/node_modules/lodash/_safeGet.js +21 -0
  1213. data/node_modules/lodash/_setCacheAdd.js +19 -0
  1214. data/node_modules/lodash/_setCacheHas.js +14 -0
  1215. data/node_modules/lodash/_setData.js +20 -0
  1216. data/node_modules/lodash/_setToArray.js +18 -0
  1217. data/node_modules/lodash/_setToPairs.js +18 -0
  1218. data/node_modules/lodash/_setToString.js +14 -0
  1219. data/node_modules/lodash/_setWrapToString.js +21 -0
  1220. data/node_modules/lodash/_shortOut.js +37 -0
  1221. data/node_modules/lodash/_shuffleSelf.js +28 -0
  1222. data/node_modules/lodash/_stackClear.js +15 -0
  1223. data/node_modules/lodash/_stackDelete.js +18 -0
  1224. data/node_modules/lodash/_stackGet.js +14 -0
  1225. data/node_modules/lodash/_stackHas.js +14 -0
  1226. data/node_modules/lodash/_stackSet.js +34 -0
  1227. data/node_modules/lodash/_strictIndexOf.js +23 -0
  1228. data/node_modules/lodash/_strictLastIndexOf.js +21 -0
  1229. data/node_modules/lodash/_stringSize.js +18 -0
  1230. data/node_modules/lodash/_stringToArray.js +18 -0
  1231. data/node_modules/lodash/_stringToPath.js +27 -0
  1232. data/node_modules/lodash/_toKey.js +21 -0
  1233. data/node_modules/lodash/_toSource.js +26 -0
  1234. data/node_modules/lodash/_trimmedEndIndex.js +19 -0
  1235. data/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  1236. data/node_modules/lodash/_unicodeSize.js +44 -0
  1237. data/node_modules/lodash/_unicodeToArray.js +40 -0
  1238. data/node_modules/lodash/_unicodeWords.js +69 -0
  1239. data/node_modules/lodash/_updateWrapDetails.js +46 -0
  1240. data/node_modules/lodash/_wrapperClone.js +23 -0
  1241. data/node_modules/lodash/add.js +22 -0
  1242. data/node_modules/lodash/after.js +42 -0
  1243. data/node_modules/lodash/array.js +67 -0
  1244. data/node_modules/lodash/ary.js +29 -0
  1245. data/node_modules/lodash/assign.js +58 -0
  1246. data/node_modules/lodash/assignIn.js +40 -0
  1247. data/node_modules/lodash/assignInWith.js +38 -0
  1248. data/node_modules/lodash/assignWith.js +37 -0
  1249. data/node_modules/lodash/at.js +23 -0
  1250. data/node_modules/lodash/attempt.js +35 -0
  1251. data/node_modules/lodash/before.js +40 -0
  1252. data/node_modules/lodash/bind.js +57 -0
  1253. data/node_modules/lodash/bindAll.js +41 -0
  1254. data/node_modules/lodash/bindKey.js +68 -0
  1255. data/node_modules/lodash/camelCase.js +29 -0
  1256. data/node_modules/lodash/capitalize.js +23 -0
  1257. data/node_modules/lodash/castArray.js +44 -0
  1258. data/node_modules/lodash/ceil.js +26 -0
  1259. data/node_modules/lodash/chain.js +38 -0
  1260. data/node_modules/lodash/chunk.js +50 -0
  1261. data/node_modules/lodash/clamp.js +39 -0
  1262. data/node_modules/lodash/clone.js +36 -0
  1263. data/node_modules/lodash/cloneDeep.js +29 -0
  1264. data/node_modules/lodash/cloneDeepWith.js +40 -0
  1265. data/node_modules/lodash/cloneWith.js +42 -0
  1266. data/node_modules/lodash/collection.js +30 -0
  1267. data/node_modules/lodash/commit.js +33 -0
  1268. data/node_modules/lodash/compact.js +31 -0
  1269. data/node_modules/lodash/concat.js +43 -0
  1270. data/node_modules/lodash/cond.js +60 -0
  1271. data/node_modules/lodash/conforms.js +35 -0
  1272. data/node_modules/lodash/conformsTo.js +32 -0
  1273. data/node_modules/lodash/constant.js +26 -0
  1274. data/node_modules/lodash/core.js +3877 -0
  1275. data/node_modules/lodash/core.min.js +29 -0
  1276. data/node_modules/lodash/countBy.js +40 -0
  1277. data/node_modules/lodash/create.js +43 -0
  1278. data/node_modules/lodash/curry.js +57 -0
  1279. data/node_modules/lodash/curryRight.js +54 -0
  1280. data/node_modules/lodash/date.js +3 -0
  1281. data/node_modules/lodash/debounce.js +191 -0
  1282. data/node_modules/lodash/deburr.js +45 -0
  1283. data/node_modules/lodash/defaultTo.js +25 -0
  1284. data/node_modules/lodash/defaults.js +64 -0
  1285. data/node_modules/lodash/defaultsDeep.js +30 -0
  1286. data/node_modules/lodash/defer.js +26 -0
  1287. data/node_modules/lodash/delay.js +28 -0
  1288. data/node_modules/lodash/difference.js +33 -0
  1289. data/node_modules/lodash/differenceBy.js +44 -0
  1290. data/node_modules/lodash/differenceWith.js +40 -0
  1291. data/node_modules/lodash/divide.js +22 -0
  1292. data/node_modules/lodash/drop.js +38 -0
  1293. data/node_modules/lodash/dropRight.js +39 -0
  1294. data/node_modules/lodash/dropRightWhile.js +45 -0
  1295. data/node_modules/lodash/dropWhile.js +45 -0
  1296. data/node_modules/lodash/each.js +1 -0
  1297. data/node_modules/lodash/eachRight.js +1 -0
  1298. data/node_modules/lodash/endsWith.js +43 -0
  1299. data/node_modules/lodash/entries.js +1 -0
  1300. data/node_modules/lodash/entriesIn.js +1 -0
  1301. data/node_modules/lodash/eq.js +37 -0
  1302. data/node_modules/lodash/escape.js +43 -0
  1303. data/node_modules/lodash/escapeRegExp.js +32 -0
  1304. data/node_modules/lodash/every.js +56 -0
  1305. data/node_modules/lodash/extend.js +1 -0
  1306. data/node_modules/lodash/extendWith.js +1 -0
  1307. data/node_modules/lodash/fill.js +45 -0
  1308. data/node_modules/lodash/filter.js +52 -0
  1309. data/node_modules/lodash/find.js +42 -0
  1310. data/node_modules/lodash/findIndex.js +55 -0
  1311. data/node_modules/lodash/findKey.js +44 -0
  1312. data/node_modules/lodash/findLast.js +25 -0
  1313. data/node_modules/lodash/findLastIndex.js +59 -0
  1314. data/node_modules/lodash/findLastKey.js +44 -0
  1315. data/node_modules/lodash/first.js +1 -0
  1316. data/node_modules/lodash/flake.lock +40 -0
  1317. data/node_modules/lodash/flake.nix +20 -0
  1318. data/node_modules/lodash/flatMap.js +29 -0
  1319. data/node_modules/lodash/flatMapDeep.js +31 -0
  1320. data/node_modules/lodash/flatMapDepth.js +31 -0
  1321. data/node_modules/lodash/flatten.js +22 -0
  1322. data/node_modules/lodash/flattenDeep.js +25 -0
  1323. data/node_modules/lodash/flattenDepth.js +33 -0
  1324. data/node_modules/lodash/flip.js +28 -0
  1325. data/node_modules/lodash/floor.js +26 -0
  1326. data/node_modules/lodash/flow.js +27 -0
  1327. data/node_modules/lodash/flowRight.js +26 -0
  1328. data/node_modules/lodash/forEach.js +41 -0
  1329. data/node_modules/lodash/forEachRight.js +31 -0
  1330. data/node_modules/lodash/forIn.js +39 -0
  1331. data/node_modules/lodash/forInRight.js +37 -0
  1332. data/node_modules/lodash/forOwn.js +36 -0
  1333. data/node_modules/lodash/forOwnRight.js +34 -0
  1334. data/node_modules/lodash/fp/F.js +1 -0
  1335. data/node_modules/lodash/fp/T.js +1 -0
  1336. data/node_modules/lodash/fp/__.js +1 -0
  1337. data/node_modules/lodash/fp/_baseConvert.js +569 -0
  1338. data/node_modules/lodash/fp/_convertBrowser.js +18 -0
  1339. data/node_modules/lodash/fp/_falseOptions.js +7 -0
  1340. data/node_modules/lodash/fp/_mapping.js +358 -0
  1341. data/node_modules/lodash/fp/_util.js +16 -0
  1342. data/node_modules/lodash/fp/add.js +5 -0
  1343. data/node_modules/lodash/fp/after.js +5 -0
  1344. data/node_modules/lodash/fp/all.js +1 -0
  1345. data/node_modules/lodash/fp/allPass.js +1 -0
  1346. data/node_modules/lodash/fp/always.js +1 -0
  1347. data/node_modules/lodash/fp/any.js +1 -0
  1348. data/node_modules/lodash/fp/anyPass.js +1 -0
  1349. data/node_modules/lodash/fp/apply.js +1 -0
  1350. data/node_modules/lodash/fp/array.js +2 -0
  1351. data/node_modules/lodash/fp/ary.js +5 -0
  1352. data/node_modules/lodash/fp/assign.js +5 -0
  1353. data/node_modules/lodash/fp/assignAll.js +5 -0
  1354. data/node_modules/lodash/fp/assignAllWith.js +5 -0
  1355. data/node_modules/lodash/fp/assignIn.js +5 -0
  1356. data/node_modules/lodash/fp/assignInAll.js +5 -0
  1357. data/node_modules/lodash/fp/assignInAllWith.js +5 -0
  1358. data/node_modules/lodash/fp/assignInWith.js +5 -0
  1359. data/node_modules/lodash/fp/assignWith.js +5 -0
  1360. data/node_modules/lodash/fp/assoc.js +1 -0
  1361. data/node_modules/lodash/fp/assocPath.js +1 -0
  1362. data/node_modules/lodash/fp/at.js +5 -0
  1363. data/node_modules/lodash/fp/attempt.js +5 -0
  1364. data/node_modules/lodash/fp/before.js +5 -0
  1365. data/node_modules/lodash/fp/bind.js +5 -0
  1366. data/node_modules/lodash/fp/bindAll.js +5 -0
  1367. data/node_modules/lodash/fp/bindKey.js +5 -0
  1368. data/node_modules/lodash/fp/camelCase.js +5 -0
  1369. data/node_modules/lodash/fp/capitalize.js +5 -0
  1370. data/node_modules/lodash/fp/castArray.js +5 -0
  1371. data/node_modules/lodash/fp/ceil.js +5 -0
  1372. data/node_modules/lodash/fp/chain.js +5 -0
  1373. data/node_modules/lodash/fp/chunk.js +5 -0
  1374. data/node_modules/lodash/fp/clamp.js +5 -0
  1375. data/node_modules/lodash/fp/clone.js +5 -0
  1376. data/node_modules/lodash/fp/cloneDeep.js +5 -0
  1377. data/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  1378. data/node_modules/lodash/fp/cloneWith.js +5 -0
  1379. data/node_modules/lodash/fp/collection.js +2 -0
  1380. data/node_modules/lodash/fp/commit.js +5 -0
  1381. data/node_modules/lodash/fp/compact.js +5 -0
  1382. data/node_modules/lodash/fp/complement.js +1 -0
  1383. data/node_modules/lodash/fp/compose.js +1 -0
  1384. data/node_modules/lodash/fp/concat.js +5 -0
  1385. data/node_modules/lodash/fp/cond.js +5 -0
  1386. data/node_modules/lodash/fp/conforms.js +1 -0
  1387. data/node_modules/lodash/fp/conformsTo.js +5 -0
  1388. data/node_modules/lodash/fp/constant.js +5 -0
  1389. data/node_modules/lodash/fp/contains.js +1 -0
  1390. data/node_modules/lodash/fp/convert.js +18 -0
  1391. data/node_modules/lodash/fp/countBy.js +5 -0
  1392. data/node_modules/lodash/fp/create.js +5 -0
  1393. data/node_modules/lodash/fp/curry.js +5 -0
  1394. data/node_modules/lodash/fp/curryN.js +5 -0
  1395. data/node_modules/lodash/fp/curryRight.js +5 -0
  1396. data/node_modules/lodash/fp/curryRightN.js +5 -0
  1397. data/node_modules/lodash/fp/date.js +2 -0
  1398. data/node_modules/lodash/fp/debounce.js +5 -0
  1399. data/node_modules/lodash/fp/deburr.js +5 -0
  1400. data/node_modules/lodash/fp/defaultTo.js +5 -0
  1401. data/node_modules/lodash/fp/defaults.js +5 -0
  1402. data/node_modules/lodash/fp/defaultsAll.js +5 -0
  1403. data/node_modules/lodash/fp/defaultsDeep.js +5 -0
  1404. data/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  1405. data/node_modules/lodash/fp/defer.js +5 -0
  1406. data/node_modules/lodash/fp/delay.js +5 -0
  1407. data/node_modules/lodash/fp/difference.js +5 -0
  1408. data/node_modules/lodash/fp/differenceBy.js +5 -0
  1409. data/node_modules/lodash/fp/differenceWith.js +5 -0
  1410. data/node_modules/lodash/fp/dissoc.js +1 -0
  1411. data/node_modules/lodash/fp/dissocPath.js +1 -0
  1412. data/node_modules/lodash/fp/divide.js +5 -0
  1413. data/node_modules/lodash/fp/drop.js +5 -0
  1414. data/node_modules/lodash/fp/dropLast.js +1 -0
  1415. data/node_modules/lodash/fp/dropLastWhile.js +1 -0
  1416. data/node_modules/lodash/fp/dropRight.js +5 -0
  1417. data/node_modules/lodash/fp/dropRightWhile.js +5 -0
  1418. data/node_modules/lodash/fp/dropWhile.js +5 -0
  1419. data/node_modules/lodash/fp/each.js +1 -0
  1420. data/node_modules/lodash/fp/eachRight.js +1 -0
  1421. data/node_modules/lodash/fp/endsWith.js +5 -0
  1422. data/node_modules/lodash/fp/entries.js +1 -0
  1423. data/node_modules/lodash/fp/entriesIn.js +1 -0
  1424. data/node_modules/lodash/fp/eq.js +5 -0
  1425. data/node_modules/lodash/fp/equals.js +1 -0
  1426. data/node_modules/lodash/fp/escape.js +5 -0
  1427. data/node_modules/lodash/fp/escapeRegExp.js +5 -0
  1428. data/node_modules/lodash/fp/every.js +5 -0
  1429. data/node_modules/lodash/fp/extend.js +1 -0
  1430. data/node_modules/lodash/fp/extendAll.js +1 -0
  1431. data/node_modules/lodash/fp/extendAllWith.js +1 -0
  1432. data/node_modules/lodash/fp/extendWith.js +1 -0
  1433. data/node_modules/lodash/fp/fill.js +5 -0
  1434. data/node_modules/lodash/fp/filter.js +5 -0
  1435. data/node_modules/lodash/fp/find.js +5 -0
  1436. data/node_modules/lodash/fp/findFrom.js +5 -0
  1437. data/node_modules/lodash/fp/findIndex.js +5 -0
  1438. data/node_modules/lodash/fp/findIndexFrom.js +5 -0
  1439. data/node_modules/lodash/fp/findKey.js +5 -0
  1440. data/node_modules/lodash/fp/findLast.js +5 -0
  1441. data/node_modules/lodash/fp/findLastFrom.js +5 -0
  1442. data/node_modules/lodash/fp/findLastIndex.js +5 -0
  1443. data/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  1444. data/node_modules/lodash/fp/findLastKey.js +5 -0
  1445. data/node_modules/lodash/fp/first.js +1 -0
  1446. data/node_modules/lodash/fp/flatMap.js +5 -0
  1447. data/node_modules/lodash/fp/flatMapDeep.js +5 -0
  1448. data/node_modules/lodash/fp/flatMapDepth.js +5 -0
  1449. data/node_modules/lodash/fp/flatten.js +5 -0
  1450. data/node_modules/lodash/fp/flattenDeep.js +5 -0
  1451. data/node_modules/lodash/fp/flattenDepth.js +5 -0
  1452. data/node_modules/lodash/fp/flip.js +5 -0
  1453. data/node_modules/lodash/fp/floor.js +5 -0
  1454. data/node_modules/lodash/fp/flow.js +5 -0
  1455. data/node_modules/lodash/fp/flowRight.js +5 -0
  1456. data/node_modules/lodash/fp/forEach.js +5 -0
  1457. data/node_modules/lodash/fp/forEachRight.js +5 -0
  1458. data/node_modules/lodash/fp/forIn.js +5 -0
  1459. data/node_modules/lodash/fp/forInRight.js +5 -0
  1460. data/node_modules/lodash/fp/forOwn.js +5 -0
  1461. data/node_modules/lodash/fp/forOwnRight.js +5 -0
  1462. data/node_modules/lodash/fp/fromPairs.js +5 -0
  1463. data/node_modules/lodash/fp/function.js +2 -0
  1464. data/node_modules/lodash/fp/functions.js +5 -0
  1465. data/node_modules/lodash/fp/functionsIn.js +5 -0
  1466. data/node_modules/lodash/fp/get.js +5 -0
  1467. data/node_modules/lodash/fp/getOr.js +5 -0
  1468. data/node_modules/lodash/fp/groupBy.js +5 -0
  1469. data/node_modules/lodash/fp/gt.js +5 -0
  1470. data/node_modules/lodash/fp/gte.js +5 -0
  1471. data/node_modules/lodash/fp/has.js +5 -0
  1472. data/node_modules/lodash/fp/hasIn.js +5 -0
  1473. data/node_modules/lodash/fp/head.js +5 -0
  1474. data/node_modules/lodash/fp/identical.js +1 -0
  1475. data/node_modules/lodash/fp/identity.js +5 -0
  1476. data/node_modules/lodash/fp/inRange.js +5 -0
  1477. data/node_modules/lodash/fp/includes.js +5 -0
  1478. data/node_modules/lodash/fp/includesFrom.js +5 -0
  1479. data/node_modules/lodash/fp/indexBy.js +1 -0
  1480. data/node_modules/lodash/fp/indexOf.js +5 -0
  1481. data/node_modules/lodash/fp/indexOfFrom.js +5 -0
  1482. data/node_modules/lodash/fp/init.js +1 -0
  1483. data/node_modules/lodash/fp/initial.js +5 -0
  1484. data/node_modules/lodash/fp/intersection.js +5 -0
  1485. data/node_modules/lodash/fp/intersectionBy.js +5 -0
  1486. data/node_modules/lodash/fp/intersectionWith.js +5 -0
  1487. data/node_modules/lodash/fp/invert.js +5 -0
  1488. data/node_modules/lodash/fp/invertBy.js +5 -0
  1489. data/node_modules/lodash/fp/invertObj.js +1 -0
  1490. data/node_modules/lodash/fp/invoke.js +5 -0
  1491. data/node_modules/lodash/fp/invokeArgs.js +5 -0
  1492. data/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  1493. data/node_modules/lodash/fp/invokeMap.js +5 -0
  1494. data/node_modules/lodash/fp/isArguments.js +5 -0
  1495. data/node_modules/lodash/fp/isArray.js +5 -0
  1496. data/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  1497. data/node_modules/lodash/fp/isArrayLike.js +5 -0
  1498. data/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  1499. data/node_modules/lodash/fp/isBoolean.js +5 -0
  1500. data/node_modules/lodash/fp/isBuffer.js +5 -0
  1501. data/node_modules/lodash/fp/isDate.js +5 -0
  1502. data/node_modules/lodash/fp/isElement.js +5 -0
  1503. data/node_modules/lodash/fp/isEmpty.js +5 -0
  1504. data/node_modules/lodash/fp/isEqual.js +5 -0
  1505. data/node_modules/lodash/fp/isEqualWith.js +5 -0
  1506. data/node_modules/lodash/fp/isError.js +5 -0
  1507. data/node_modules/lodash/fp/isFinite.js +5 -0
  1508. data/node_modules/lodash/fp/isFunction.js +5 -0
  1509. data/node_modules/lodash/fp/isInteger.js +5 -0
  1510. data/node_modules/lodash/fp/isLength.js +5 -0
  1511. data/node_modules/lodash/fp/isMap.js +5 -0
  1512. data/node_modules/lodash/fp/isMatch.js +5 -0
  1513. data/node_modules/lodash/fp/isMatchWith.js +5 -0
  1514. data/node_modules/lodash/fp/isNaN.js +5 -0
  1515. data/node_modules/lodash/fp/isNative.js +5 -0
  1516. data/node_modules/lodash/fp/isNil.js +5 -0
  1517. data/node_modules/lodash/fp/isNull.js +5 -0
  1518. data/node_modules/lodash/fp/isNumber.js +5 -0
  1519. data/node_modules/lodash/fp/isObject.js +5 -0
  1520. data/node_modules/lodash/fp/isObjectLike.js +5 -0
  1521. data/node_modules/lodash/fp/isPlainObject.js +5 -0
  1522. data/node_modules/lodash/fp/isRegExp.js +5 -0
  1523. data/node_modules/lodash/fp/isSafeInteger.js +5 -0
  1524. data/node_modules/lodash/fp/isSet.js +5 -0
  1525. data/node_modules/lodash/fp/isString.js +5 -0
  1526. data/node_modules/lodash/fp/isSymbol.js +5 -0
  1527. data/node_modules/lodash/fp/isTypedArray.js +5 -0
  1528. data/node_modules/lodash/fp/isUndefined.js +5 -0
  1529. data/node_modules/lodash/fp/isWeakMap.js +5 -0
  1530. data/node_modules/lodash/fp/isWeakSet.js +5 -0
  1531. data/node_modules/lodash/fp/iteratee.js +5 -0
  1532. data/node_modules/lodash/fp/join.js +5 -0
  1533. data/node_modules/lodash/fp/juxt.js +1 -0
  1534. data/node_modules/lodash/fp/kebabCase.js +5 -0
  1535. data/node_modules/lodash/fp/keyBy.js +5 -0
  1536. data/node_modules/lodash/fp/keys.js +5 -0
  1537. data/node_modules/lodash/fp/keysIn.js +5 -0
  1538. data/node_modules/lodash/fp/lang.js +2 -0
  1539. data/node_modules/lodash/fp/last.js +5 -0
  1540. data/node_modules/lodash/fp/lastIndexOf.js +5 -0
  1541. data/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  1542. data/node_modules/lodash/fp/lowerCase.js +5 -0
  1543. data/node_modules/lodash/fp/lowerFirst.js +5 -0
  1544. data/node_modules/lodash/fp/lt.js +5 -0
  1545. data/node_modules/lodash/fp/lte.js +5 -0
  1546. data/node_modules/lodash/fp/map.js +5 -0
  1547. data/node_modules/lodash/fp/mapKeys.js +5 -0
  1548. data/node_modules/lodash/fp/mapValues.js +5 -0
  1549. data/node_modules/lodash/fp/matches.js +1 -0
  1550. data/node_modules/lodash/fp/matchesProperty.js +5 -0
  1551. data/node_modules/lodash/fp/math.js +2 -0
  1552. data/node_modules/lodash/fp/max.js +5 -0
  1553. data/node_modules/lodash/fp/maxBy.js +5 -0
  1554. data/node_modules/lodash/fp/mean.js +5 -0
  1555. data/node_modules/lodash/fp/meanBy.js +5 -0
  1556. data/node_modules/lodash/fp/memoize.js +5 -0
  1557. data/node_modules/lodash/fp/merge.js +5 -0
  1558. data/node_modules/lodash/fp/mergeAll.js +5 -0
  1559. data/node_modules/lodash/fp/mergeAllWith.js +5 -0
  1560. data/node_modules/lodash/fp/mergeWith.js +5 -0
  1561. data/node_modules/lodash/fp/method.js +5 -0
  1562. data/node_modules/lodash/fp/methodOf.js +5 -0
  1563. data/node_modules/lodash/fp/min.js +5 -0
  1564. data/node_modules/lodash/fp/minBy.js +5 -0
  1565. data/node_modules/lodash/fp/mixin.js +5 -0
  1566. data/node_modules/lodash/fp/multiply.js +5 -0
  1567. data/node_modules/lodash/fp/nAry.js +1 -0
  1568. data/node_modules/lodash/fp/negate.js +5 -0
  1569. data/node_modules/lodash/fp/next.js +5 -0
  1570. data/node_modules/lodash/fp/noop.js +5 -0
  1571. data/node_modules/lodash/fp/now.js +5 -0
  1572. data/node_modules/lodash/fp/nth.js +5 -0
  1573. data/node_modules/lodash/fp/nthArg.js +5 -0
  1574. data/node_modules/lodash/fp/number.js +2 -0
  1575. data/node_modules/lodash/fp/object.js +2 -0
  1576. data/node_modules/lodash/fp/omit.js +5 -0
  1577. data/node_modules/lodash/fp/omitAll.js +1 -0
  1578. data/node_modules/lodash/fp/omitBy.js +5 -0
  1579. data/node_modules/lodash/fp/once.js +5 -0
  1580. data/node_modules/lodash/fp/orderBy.js +5 -0
  1581. data/node_modules/lodash/fp/over.js +5 -0
  1582. data/node_modules/lodash/fp/overArgs.js +5 -0
  1583. data/node_modules/lodash/fp/overEvery.js +5 -0
  1584. data/node_modules/lodash/fp/overSome.js +5 -0
  1585. data/node_modules/lodash/fp/pad.js +5 -0
  1586. data/node_modules/lodash/fp/padChars.js +5 -0
  1587. data/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1588. data/node_modules/lodash/fp/padCharsStart.js +5 -0
  1589. data/node_modules/lodash/fp/padEnd.js +5 -0
  1590. data/node_modules/lodash/fp/padStart.js +5 -0
  1591. data/node_modules/lodash/fp/parseInt.js +5 -0
  1592. data/node_modules/lodash/fp/partial.js +5 -0
  1593. data/node_modules/lodash/fp/partialRight.js +5 -0
  1594. data/node_modules/lodash/fp/partition.js +5 -0
  1595. data/node_modules/lodash/fp/path.js +1 -0
  1596. data/node_modules/lodash/fp/pathEq.js +1 -0
  1597. data/node_modules/lodash/fp/pathOr.js +1 -0
  1598. data/node_modules/lodash/fp/paths.js +1 -0
  1599. data/node_modules/lodash/fp/pick.js +5 -0
  1600. data/node_modules/lodash/fp/pickAll.js +1 -0
  1601. data/node_modules/lodash/fp/pickBy.js +5 -0
  1602. data/node_modules/lodash/fp/pipe.js +1 -0
  1603. data/node_modules/lodash/fp/placeholder.js +6 -0
  1604. data/node_modules/lodash/fp/plant.js +5 -0
  1605. data/node_modules/lodash/fp/pluck.js +1 -0
  1606. data/node_modules/lodash/fp/prop.js +1 -0
  1607. data/node_modules/lodash/fp/propEq.js +1 -0
  1608. data/node_modules/lodash/fp/propOr.js +1 -0
  1609. data/node_modules/lodash/fp/property.js +1 -0
  1610. data/node_modules/lodash/fp/propertyOf.js +5 -0
  1611. data/node_modules/lodash/fp/props.js +1 -0
  1612. data/node_modules/lodash/fp/pull.js +5 -0
  1613. data/node_modules/lodash/fp/pullAll.js +5 -0
  1614. data/node_modules/lodash/fp/pullAllBy.js +5 -0
  1615. data/node_modules/lodash/fp/pullAllWith.js +5 -0
  1616. data/node_modules/lodash/fp/pullAt.js +5 -0
  1617. data/node_modules/lodash/fp/random.js +5 -0
  1618. data/node_modules/lodash/fp/range.js +5 -0
  1619. data/node_modules/lodash/fp/rangeRight.js +5 -0
  1620. data/node_modules/lodash/fp/rangeStep.js +5 -0
  1621. data/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1622. data/node_modules/lodash/fp/rearg.js +5 -0
  1623. data/node_modules/lodash/fp/reduce.js +5 -0
  1624. data/node_modules/lodash/fp/reduceRight.js +5 -0
  1625. data/node_modules/lodash/fp/reject.js +5 -0
  1626. data/node_modules/lodash/fp/remove.js +5 -0
  1627. data/node_modules/lodash/fp/repeat.js +5 -0
  1628. data/node_modules/lodash/fp/replace.js +5 -0
  1629. data/node_modules/lodash/fp/rest.js +5 -0
  1630. data/node_modules/lodash/fp/restFrom.js +5 -0
  1631. data/node_modules/lodash/fp/result.js +5 -0
  1632. data/node_modules/lodash/fp/reverse.js +5 -0
  1633. data/node_modules/lodash/fp/round.js +5 -0
  1634. data/node_modules/lodash/fp/sample.js +5 -0
  1635. data/node_modules/lodash/fp/sampleSize.js +5 -0
  1636. data/node_modules/lodash/fp/seq.js +2 -0
  1637. data/node_modules/lodash/fp/set.js +5 -0
  1638. data/node_modules/lodash/fp/setWith.js +5 -0
  1639. data/node_modules/lodash/fp/shuffle.js +5 -0
  1640. data/node_modules/lodash/fp/size.js +5 -0
  1641. data/node_modules/lodash/fp/slice.js +5 -0
  1642. data/node_modules/lodash/fp/snakeCase.js +5 -0
  1643. data/node_modules/lodash/fp/some.js +5 -0
  1644. data/node_modules/lodash/fp/sortBy.js +5 -0
  1645. data/node_modules/lodash/fp/sortedIndex.js +5 -0
  1646. data/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1647. data/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1648. data/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1649. data/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1650. data/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1651. data/node_modules/lodash/fp/sortedUniq.js +5 -0
  1652. data/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1653. data/node_modules/lodash/fp/split.js +5 -0
  1654. data/node_modules/lodash/fp/spread.js +5 -0
  1655. data/node_modules/lodash/fp/spreadFrom.js +5 -0
  1656. data/node_modules/lodash/fp/startCase.js +5 -0
  1657. data/node_modules/lodash/fp/startsWith.js +5 -0
  1658. data/node_modules/lodash/fp/string.js +2 -0
  1659. data/node_modules/lodash/fp/stubArray.js +5 -0
  1660. data/node_modules/lodash/fp/stubFalse.js +5 -0
  1661. data/node_modules/lodash/fp/stubObject.js +5 -0
  1662. data/node_modules/lodash/fp/stubString.js +5 -0
  1663. data/node_modules/lodash/fp/stubTrue.js +5 -0
  1664. data/node_modules/lodash/fp/subtract.js +5 -0
  1665. data/node_modules/lodash/fp/sum.js +5 -0
  1666. data/node_modules/lodash/fp/sumBy.js +5 -0
  1667. data/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1668. data/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1669. data/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1670. data/node_modules/lodash/fp/tail.js +5 -0
  1671. data/node_modules/lodash/fp/take.js +5 -0
  1672. data/node_modules/lodash/fp/takeLast.js +1 -0
  1673. data/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1674. data/node_modules/lodash/fp/takeRight.js +5 -0
  1675. data/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1676. data/node_modules/lodash/fp/takeWhile.js +5 -0
  1677. data/node_modules/lodash/fp/tap.js +5 -0
  1678. data/node_modules/lodash/fp/template.js +5 -0
  1679. data/node_modules/lodash/fp/templateSettings.js +5 -0
  1680. data/node_modules/lodash/fp/throttle.js +5 -0
  1681. data/node_modules/lodash/fp/thru.js +5 -0
  1682. data/node_modules/lodash/fp/times.js +5 -0
  1683. data/node_modules/lodash/fp/toArray.js +5 -0
  1684. data/node_modules/lodash/fp/toFinite.js +5 -0
  1685. data/node_modules/lodash/fp/toInteger.js +5 -0
  1686. data/node_modules/lodash/fp/toIterator.js +5 -0
  1687. data/node_modules/lodash/fp/toJSON.js +5 -0
  1688. data/node_modules/lodash/fp/toLength.js +5 -0
  1689. data/node_modules/lodash/fp/toLower.js +5 -0
  1690. data/node_modules/lodash/fp/toNumber.js +5 -0
  1691. data/node_modules/lodash/fp/toPairs.js +5 -0
  1692. data/node_modules/lodash/fp/toPairsIn.js +5 -0
  1693. data/node_modules/lodash/fp/toPath.js +5 -0
  1694. data/node_modules/lodash/fp/toPlainObject.js +5 -0
  1695. data/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1696. data/node_modules/lodash/fp/toString.js +5 -0
  1697. data/node_modules/lodash/fp/toUpper.js +5 -0
  1698. data/node_modules/lodash/fp/transform.js +5 -0
  1699. data/node_modules/lodash/fp/trim.js +5 -0
  1700. data/node_modules/lodash/fp/trimChars.js +5 -0
  1701. data/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1702. data/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1703. data/node_modules/lodash/fp/trimEnd.js +5 -0
  1704. data/node_modules/lodash/fp/trimStart.js +5 -0
  1705. data/node_modules/lodash/fp/truncate.js +5 -0
  1706. data/node_modules/lodash/fp/unapply.js +1 -0
  1707. data/node_modules/lodash/fp/unary.js +5 -0
  1708. data/node_modules/lodash/fp/unescape.js +5 -0
  1709. data/node_modules/lodash/fp/union.js +5 -0
  1710. data/node_modules/lodash/fp/unionBy.js +5 -0
  1711. data/node_modules/lodash/fp/unionWith.js +5 -0
  1712. data/node_modules/lodash/fp/uniq.js +5 -0
  1713. data/node_modules/lodash/fp/uniqBy.js +5 -0
  1714. data/node_modules/lodash/fp/uniqWith.js +5 -0
  1715. data/node_modules/lodash/fp/uniqueId.js +5 -0
  1716. data/node_modules/lodash/fp/unnest.js +1 -0
  1717. data/node_modules/lodash/fp/unset.js +5 -0
  1718. data/node_modules/lodash/fp/unzip.js +5 -0
  1719. data/node_modules/lodash/fp/unzipWith.js +5 -0
  1720. data/node_modules/lodash/fp/update.js +5 -0
  1721. data/node_modules/lodash/fp/updateWith.js +5 -0
  1722. data/node_modules/lodash/fp/upperCase.js +5 -0
  1723. data/node_modules/lodash/fp/upperFirst.js +5 -0
  1724. data/node_modules/lodash/fp/useWith.js +1 -0
  1725. data/node_modules/lodash/fp/util.js +2 -0
  1726. data/node_modules/lodash/fp/value.js +5 -0
  1727. data/node_modules/lodash/fp/valueOf.js +5 -0
  1728. data/node_modules/lodash/fp/values.js +5 -0
  1729. data/node_modules/lodash/fp/valuesIn.js +5 -0
  1730. data/node_modules/lodash/fp/where.js +1 -0
  1731. data/node_modules/lodash/fp/whereEq.js +1 -0
  1732. data/node_modules/lodash/fp/without.js +5 -0
  1733. data/node_modules/lodash/fp/words.js +5 -0
  1734. data/node_modules/lodash/fp/wrap.js +5 -0
  1735. data/node_modules/lodash/fp/wrapperAt.js +5 -0
  1736. data/node_modules/lodash/fp/wrapperChain.js +5 -0
  1737. data/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1738. data/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1739. data/node_modules/lodash/fp/wrapperValue.js +5 -0
  1740. data/node_modules/lodash/fp/xor.js +5 -0
  1741. data/node_modules/lodash/fp/xorBy.js +5 -0
  1742. data/node_modules/lodash/fp/xorWith.js +5 -0
  1743. data/node_modules/lodash/fp/zip.js +5 -0
  1744. data/node_modules/lodash/fp/zipAll.js +5 -0
  1745. data/node_modules/lodash/fp/zipObj.js +1 -0
  1746. data/node_modules/lodash/fp/zipObject.js +5 -0
  1747. data/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1748. data/node_modules/lodash/fp/zipWith.js +5 -0
  1749. data/node_modules/lodash/fp.js +2 -0
  1750. data/node_modules/lodash/fromPairs.js +28 -0
  1751. data/node_modules/lodash/function.js +25 -0
  1752. data/node_modules/lodash/functions.js +31 -0
  1753. data/node_modules/lodash/functionsIn.js +31 -0
  1754. data/node_modules/lodash/get.js +33 -0
  1755. data/node_modules/lodash/groupBy.js +41 -0
  1756. data/node_modules/lodash/gt.js +29 -0
  1757. data/node_modules/lodash/gte.js +30 -0
  1758. data/node_modules/lodash/has.js +35 -0
  1759. data/node_modules/lodash/hasIn.js +34 -0
  1760. data/node_modules/lodash/head.js +23 -0
  1761. data/node_modules/lodash/identity.js +21 -0
  1762. data/node_modules/lodash/inRange.js +55 -0
  1763. data/node_modules/lodash/includes.js +53 -0
  1764. data/node_modules/lodash/index.js +1 -0
  1765. data/node_modules/lodash/indexOf.js +42 -0
  1766. data/node_modules/lodash/initial.js +22 -0
  1767. data/node_modules/lodash/intersection.js +30 -0
  1768. data/node_modules/lodash/intersectionBy.js +45 -0
  1769. data/node_modules/lodash/intersectionWith.js +41 -0
  1770. data/node_modules/lodash/invert.js +42 -0
  1771. data/node_modules/lodash/invertBy.js +56 -0
  1772. data/node_modules/lodash/invoke.js +24 -0
  1773. data/node_modules/lodash/invokeMap.js +41 -0
  1774. data/node_modules/lodash/isArguments.js +36 -0
  1775. data/node_modules/lodash/isArray.js +26 -0
  1776. data/node_modules/lodash/isArrayBuffer.js +27 -0
  1777. data/node_modules/lodash/isArrayLike.js +33 -0
  1778. data/node_modules/lodash/isArrayLikeObject.js +33 -0
  1779. data/node_modules/lodash/isBoolean.js +29 -0
  1780. data/node_modules/lodash/isBuffer.js +38 -0
  1781. data/node_modules/lodash/isDate.js +27 -0
  1782. data/node_modules/lodash/isElement.js +25 -0
  1783. data/node_modules/lodash/isEmpty.js +77 -0
  1784. data/node_modules/lodash/isEqual.js +35 -0
  1785. data/node_modules/lodash/isEqualWith.js +41 -0
  1786. data/node_modules/lodash/isError.js +36 -0
  1787. data/node_modules/lodash/isFinite.js +36 -0
  1788. data/node_modules/lodash/isFunction.js +37 -0
  1789. data/node_modules/lodash/isInteger.js +33 -0
  1790. data/node_modules/lodash/isLength.js +35 -0
  1791. data/node_modules/lodash/isMap.js +27 -0
  1792. data/node_modules/lodash/isMatch.js +36 -0
  1793. data/node_modules/lodash/isMatchWith.js +41 -0
  1794. data/node_modules/lodash/isNaN.js +38 -0
  1795. data/node_modules/lodash/isNative.js +40 -0
  1796. data/node_modules/lodash/isNil.js +25 -0
  1797. data/node_modules/lodash/isNull.js +22 -0
  1798. data/node_modules/lodash/isNumber.js +38 -0
  1799. data/node_modules/lodash/isObject.js +31 -0
  1800. data/node_modules/lodash/isObjectLike.js +29 -0
  1801. data/node_modules/lodash/isPlainObject.js +62 -0
  1802. data/node_modules/lodash/isRegExp.js +27 -0
  1803. data/node_modules/lodash/isSafeInteger.js +37 -0
  1804. data/node_modules/lodash/isSet.js +27 -0
  1805. data/node_modules/lodash/isString.js +30 -0
  1806. data/node_modules/lodash/isSymbol.js +29 -0
  1807. data/node_modules/lodash/isTypedArray.js +27 -0
  1808. data/node_modules/lodash/isUndefined.js +22 -0
  1809. data/node_modules/lodash/isWeakMap.js +28 -0
  1810. data/node_modules/lodash/isWeakSet.js +28 -0
  1811. data/node_modules/lodash/iteratee.js +53 -0
  1812. data/node_modules/lodash/join.js +26 -0
  1813. data/node_modules/lodash/kebabCase.js +28 -0
  1814. data/node_modules/lodash/keyBy.js +36 -0
  1815. data/node_modules/lodash/keys.js +37 -0
  1816. data/node_modules/lodash/keysIn.js +32 -0
  1817. data/node_modules/lodash/lang.js +58 -0
  1818. data/node_modules/lodash/last.js +20 -0
  1819. data/node_modules/lodash/lastIndexOf.js +46 -0
  1820. data/node_modules/lodash/lodash.js +17209 -0
  1821. data/node_modules/lodash/lodash.min.js +140 -0
  1822. data/node_modules/lodash/lowerCase.js +27 -0
  1823. data/node_modules/lodash/lowerFirst.js +22 -0
  1824. data/node_modules/lodash/lt.js +29 -0
  1825. data/node_modules/lodash/lte.js +30 -0
  1826. data/node_modules/lodash/map.js +53 -0
  1827. data/node_modules/lodash/mapKeys.js +36 -0
  1828. data/node_modules/lodash/mapValues.js +43 -0
  1829. data/node_modules/lodash/matches.js +46 -0
  1830. data/node_modules/lodash/matchesProperty.js +44 -0
  1831. data/node_modules/lodash/math.js +17 -0
  1832. data/node_modules/lodash/max.js +29 -0
  1833. data/node_modules/lodash/maxBy.js +34 -0
  1834. data/node_modules/lodash/mean.js +22 -0
  1835. data/node_modules/lodash/meanBy.js +31 -0
  1836. data/node_modules/lodash/memoize.js +73 -0
  1837. data/node_modules/lodash/merge.js +39 -0
  1838. data/node_modules/lodash/mergeWith.js +39 -0
  1839. data/node_modules/lodash/method.js +34 -0
  1840. data/node_modules/lodash/methodOf.js +33 -0
  1841. data/node_modules/lodash/min.js +29 -0
  1842. data/node_modules/lodash/minBy.js +34 -0
  1843. data/node_modules/lodash/mixin.js +74 -0
  1844. data/node_modules/lodash/multiply.js +22 -0
  1845. data/node_modules/lodash/negate.js +40 -0
  1846. data/node_modules/lodash/next.js +35 -0
  1847. data/node_modules/lodash/noop.js +17 -0
  1848. data/node_modules/lodash/now.js +23 -0
  1849. data/node_modules/lodash/nth.js +29 -0
  1850. data/node_modules/lodash/nthArg.js +32 -0
  1851. data/node_modules/lodash/number.js +5 -0
  1852. data/node_modules/lodash/object.js +49 -0
  1853. data/node_modules/lodash/omit.js +57 -0
  1854. data/node_modules/lodash/omitBy.js +29 -0
  1855. data/node_modules/lodash/once.js +25 -0
  1856. data/node_modules/lodash/orderBy.js +47 -0
  1857. data/node_modules/lodash/over.js +24 -0
  1858. data/node_modules/lodash/overArgs.js +61 -0
  1859. data/node_modules/lodash/overEvery.js +34 -0
  1860. data/node_modules/lodash/overSome.js +37 -0
  1861. data/node_modules/lodash/package.json +17 -0
  1862. data/node_modules/lodash/pad.js +49 -0
  1863. data/node_modules/lodash/padEnd.js +39 -0
  1864. data/node_modules/lodash/padStart.js +39 -0
  1865. data/node_modules/lodash/parseInt.js +43 -0
  1866. data/node_modules/lodash/partial.js +50 -0
  1867. data/node_modules/lodash/partialRight.js +49 -0
  1868. data/node_modules/lodash/partition.js +43 -0
  1869. data/node_modules/lodash/pick.js +25 -0
  1870. data/node_modules/lodash/pickBy.js +37 -0
  1871. data/node_modules/lodash/plant.js +48 -0
  1872. data/node_modules/lodash/property.js +32 -0
  1873. data/node_modules/lodash/propertyOf.js +30 -0
  1874. data/node_modules/lodash/pull.js +29 -0
  1875. data/node_modules/lodash/pullAll.js +29 -0
  1876. data/node_modules/lodash/pullAllBy.js +33 -0
  1877. data/node_modules/lodash/pullAllWith.js +32 -0
  1878. data/node_modules/lodash/pullAt.js +43 -0
  1879. data/node_modules/lodash/random.js +82 -0
  1880. data/node_modules/lodash/range.js +46 -0
  1881. data/node_modules/lodash/rangeRight.js +41 -0
  1882. data/node_modules/lodash/rearg.js +33 -0
  1883. data/node_modules/lodash/reduce.js +51 -0
  1884. data/node_modules/lodash/reduceRight.js +36 -0
  1885. data/node_modules/lodash/reject.js +46 -0
  1886. data/node_modules/lodash/release.md +48 -0
  1887. data/node_modules/lodash/remove.js +53 -0
  1888. data/node_modules/lodash/repeat.js +37 -0
  1889. data/node_modules/lodash/replace.js +29 -0
  1890. data/node_modules/lodash/rest.js +40 -0
  1891. data/node_modules/lodash/result.js +56 -0
  1892. data/node_modules/lodash/reverse.js +34 -0
  1893. data/node_modules/lodash/round.js +26 -0
  1894. data/node_modules/lodash/sample.js +24 -0
  1895. data/node_modules/lodash/sampleSize.js +37 -0
  1896. data/node_modules/lodash/seq.js +16 -0
  1897. data/node_modules/lodash/set.js +35 -0
  1898. data/node_modules/lodash/setWith.js +32 -0
  1899. data/node_modules/lodash/shuffle.js +25 -0
  1900. data/node_modules/lodash/size.js +46 -0
  1901. data/node_modules/lodash/slice.js +37 -0
  1902. data/node_modules/lodash/snakeCase.js +28 -0
  1903. data/node_modules/lodash/some.js +51 -0
  1904. data/node_modules/lodash/sortBy.js +48 -0
  1905. data/node_modules/lodash/sortedIndex.js +24 -0
  1906. data/node_modules/lodash/sortedIndexBy.js +33 -0
  1907. data/node_modules/lodash/sortedIndexOf.js +31 -0
  1908. data/node_modules/lodash/sortedLastIndex.js +25 -0
  1909. data/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1910. data/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1911. data/node_modules/lodash/sortedUniq.js +24 -0
  1912. data/node_modules/lodash/sortedUniqBy.js +26 -0
  1913. data/node_modules/lodash/split.js +52 -0
  1914. data/node_modules/lodash/spread.js +63 -0
  1915. data/node_modules/lodash/startCase.js +29 -0
  1916. data/node_modules/lodash/startsWith.js +39 -0
  1917. data/node_modules/lodash/string.js +33 -0
  1918. data/node_modules/lodash/stubArray.js +23 -0
  1919. data/node_modules/lodash/stubFalse.js +18 -0
  1920. data/node_modules/lodash/stubObject.js +23 -0
  1921. data/node_modules/lodash/stubString.js +18 -0
  1922. data/node_modules/lodash/stubTrue.js +18 -0
  1923. data/node_modules/lodash/subtract.js +22 -0
  1924. data/node_modules/lodash/sum.js +24 -0
  1925. data/node_modules/lodash/sumBy.js +33 -0
  1926. data/node_modules/lodash/tail.js +22 -0
  1927. data/node_modules/lodash/take.js +37 -0
  1928. data/node_modules/lodash/takeRight.js +39 -0
  1929. data/node_modules/lodash/takeRightWhile.js +45 -0
  1930. data/node_modules/lodash/takeWhile.js +45 -0
  1931. data/node_modules/lodash/tap.js +29 -0
  1932. data/node_modules/lodash/template.js +272 -0
  1933. data/node_modules/lodash/templateSettings.js +67 -0
  1934. data/node_modules/lodash/throttle.js +69 -0
  1935. data/node_modules/lodash/thru.js +28 -0
  1936. data/node_modules/lodash/times.js +51 -0
  1937. data/node_modules/lodash/toArray.js +58 -0
  1938. data/node_modules/lodash/toFinite.js +42 -0
  1939. data/node_modules/lodash/toInteger.js +36 -0
  1940. data/node_modules/lodash/toIterator.js +23 -0
  1941. data/node_modules/lodash/toJSON.js +1 -0
  1942. data/node_modules/lodash/toLength.js +38 -0
  1943. data/node_modules/lodash/toLower.js +28 -0
  1944. data/node_modules/lodash/toNumber.js +64 -0
  1945. data/node_modules/lodash/toPairs.js +30 -0
  1946. data/node_modules/lodash/toPairsIn.js +30 -0
  1947. data/node_modules/lodash/toPath.js +33 -0
  1948. data/node_modules/lodash/toPlainObject.js +32 -0
  1949. data/node_modules/lodash/toSafeInteger.js +37 -0
  1950. data/node_modules/lodash/toString.js +28 -0
  1951. data/node_modules/lodash/toUpper.js +28 -0
  1952. data/node_modules/lodash/transform.js +65 -0
  1953. data/node_modules/lodash/trim.js +47 -0
  1954. data/node_modules/lodash/trimEnd.js +41 -0
  1955. data/node_modules/lodash/trimStart.js +43 -0
  1956. data/node_modules/lodash/truncate.js +111 -0
  1957. data/node_modules/lodash/unary.js +22 -0
  1958. data/node_modules/lodash/unescape.js +34 -0
  1959. data/node_modules/lodash/union.js +26 -0
  1960. data/node_modules/lodash/unionBy.js +39 -0
  1961. data/node_modules/lodash/unionWith.js +34 -0
  1962. data/node_modules/lodash/uniq.js +25 -0
  1963. data/node_modules/lodash/uniqBy.js +31 -0
  1964. data/node_modules/lodash/uniqWith.js +28 -0
  1965. data/node_modules/lodash/uniqueId.js +28 -0
  1966. data/node_modules/lodash/unset.js +34 -0
  1967. data/node_modules/lodash/unzip.js +45 -0
  1968. data/node_modules/lodash/unzipWith.js +39 -0
  1969. data/node_modules/lodash/update.js +35 -0
  1970. data/node_modules/lodash/updateWith.js +33 -0
  1971. data/node_modules/lodash/upperCase.js +27 -0
  1972. data/node_modules/lodash/upperFirst.js +22 -0
  1973. data/node_modules/lodash/util.js +34 -0
  1974. data/node_modules/lodash/value.js +1 -0
  1975. data/node_modules/lodash/valueOf.js +1 -0
  1976. data/node_modules/lodash/values.js +34 -0
  1977. data/node_modules/lodash/valuesIn.js +32 -0
  1978. data/node_modules/lodash/without.js +31 -0
  1979. data/node_modules/lodash/words.js +35 -0
  1980. data/node_modules/lodash/wrap.js +30 -0
  1981. data/node_modules/lodash/wrapperAt.js +48 -0
  1982. data/node_modules/lodash/wrapperChain.js +34 -0
  1983. data/node_modules/lodash/wrapperLodash.js +147 -0
  1984. data/node_modules/lodash/wrapperReverse.js +44 -0
  1985. data/node_modules/lodash/wrapperValue.js +21 -0
  1986. data/node_modules/lodash/xor.js +28 -0
  1987. data/node_modules/lodash/xorBy.js +39 -0
  1988. data/node_modules/lodash/xorWith.js +34 -0
  1989. data/node_modules/lodash/zip.js +22 -0
  1990. data/node_modules/lodash/zipObject.js +24 -0
  1991. data/node_modules/lodash/zipObjectDeep.js +23 -0
  1992. data/node_modules/lodash/zipWith.js +32 -0
  1993. data/node_modules/mime-db/HISTORY.md +486 -0
  1994. data/node_modules/mime-db/LICENSE +22 -0
  1995. data/node_modules/mime-db/README.md +100 -0
  1996. data/node_modules/mime-db/db.json +8417 -0
  1997. data/node_modules/mime-db/index.js +11 -0
  1998. data/node_modules/mime-db/package.json +59 -0
  1999. data/node_modules/mime-types/HISTORY.md +378 -0
  2000. data/node_modules/mime-types/LICENSE +23 -0
  2001. data/node_modules/mime-types/README.md +113 -0
  2002. data/node_modules/mime-types/index.js +188 -0
  2003. data/node_modules/mime-types/package.json +44 -0
  2004. data/node_modules/ms/index.js +162 -0
  2005. data/node_modules/ms/license.md +21 -0
  2006. data/node_modules/ms/package.json +37 -0
  2007. data/node_modules/ms/readme.md +60 -0
  2008. data/node_modules/nwsapi/LICENSE +22 -0
  2009. data/node_modules/nwsapi/README.md +132 -0
  2010. data/node_modules/nwsapi/dist/lint.log +0 -0
  2011. data/node_modules/nwsapi/package.json +38 -0
  2012. data/node_modules/nwsapi/src/modules/nwsapi-jquery.js +135 -0
  2013. data/node_modules/nwsapi/src/modules/nwsapi-traversal.js +90 -0
  2014. data/node_modules/nwsapi/src/nwsapi.js +1800 -0
  2015. data/node_modules/optionator/CHANGELOG.md +56 -0
  2016. data/node_modules/optionator/LICENSE +22 -0
  2017. data/node_modules/optionator/README.md +238 -0
  2018. data/node_modules/optionator/lib/help.js +260 -0
  2019. data/node_modules/optionator/lib/index.js +465 -0
  2020. data/node_modules/optionator/lib/util.js +54 -0
  2021. data/node_modules/optionator/package.json +44 -0
  2022. data/node_modules/parse5/LICENSE +19 -0
  2023. data/node_modules/parse5/README.md +38 -0
  2024. data/node_modules/parse5/lib/common/doctype.js +162 -0
  2025. data/node_modules/parse5/lib/common/error-codes.js +65 -0
  2026. data/node_modules/parse5/lib/common/foreign-content.js +265 -0
  2027. data/node_modules/parse5/lib/common/html.js +272 -0
  2028. data/node_modules/parse5/lib/common/unicode.js +109 -0
  2029. data/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +43 -0
  2030. data/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +52 -0
  2031. data/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +24 -0
  2032. data/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +17 -0
  2033. data/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +35 -0
  2034. data/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +223 -0
  2035. data/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +146 -0
  2036. data/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +64 -0
  2037. data/node_modules/parse5/lib/index.js +29 -0
  2038. data/node_modules/parse5/lib/parser/formatting-element-list.js +181 -0
  2039. data/node_modules/parse5/lib/parser/index.js +2956 -0
  2040. data/node_modules/parse5/lib/parser/open-element-stack.js +482 -0
  2041. data/node_modules/parse5/lib/serializer/index.js +176 -0
  2042. data/node_modules/parse5/lib/tokenizer/index.js +2196 -0
  2043. data/node_modules/parse5/lib/tokenizer/named-entity-data.js +5 -0
  2044. data/node_modules/parse5/lib/tokenizer/preprocessor.js +159 -0
  2045. data/node_modules/parse5/lib/tree-adapters/default.js +221 -0
  2046. data/node_modules/parse5/lib/utils/merge-options.js +13 -0
  2047. data/node_modules/parse5/lib/utils/mixin.js +39 -0
  2048. data/node_modules/parse5/package.json +35 -0
  2049. data/node_modules/prelude-ls/CHANGELOG.md +99 -0
  2050. data/node_modules/prelude-ls/LICENSE +22 -0
  2051. data/node_modules/prelude-ls/README.md +15 -0
  2052. data/node_modules/prelude-ls/lib/Func.js +65 -0
  2053. data/node_modules/prelude-ls/lib/List.js +686 -0
  2054. data/node_modules/prelude-ls/lib/Num.js +130 -0
  2055. data/node_modules/prelude-ls/lib/Obj.js +154 -0
  2056. data/node_modules/prelude-ls/lib/Str.js +92 -0
  2057. data/node_modules/prelude-ls/lib/index.js +178 -0
  2058. data/node_modules/prelude-ls/package.json +52 -0
  2059. data/node_modules/psl/LICENSE +9 -0
  2060. data/node_modules/psl/README.md +215 -0
  2061. data/node_modules/psl/browserstack-logo.svg +90 -0
  2062. data/node_modules/psl/data/rules.json +8834 -0
  2063. data/node_modules/psl/dist/psl.js +9645 -0
  2064. data/node_modules/psl/dist/psl.min.js +1 -0
  2065. data/node_modules/psl/index.js +269 -0
  2066. data/node_modules/psl/package.json +44 -0
  2067. data/node_modules/punycode/LICENSE-MIT.txt +20 -0
  2068. data/node_modules/punycode/README.md +122 -0
  2069. data/node_modules/punycode/package.json +58 -0
  2070. data/node_modules/punycode/punycode.es6.js +441 -0
  2071. data/node_modules/punycode/punycode.js +440 -0
  2072. data/node_modules/safer-buffer/LICENSE +21 -0
  2073. data/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2074. data/node_modules/safer-buffer/Readme.md +156 -0
  2075. data/node_modules/safer-buffer/dangerous.js +58 -0
  2076. data/node_modules/safer-buffer/package.json +34 -0
  2077. data/node_modules/safer-buffer/safer.js +77 -0
  2078. data/node_modules/safer-buffer/tests.js +406 -0
  2079. data/node_modules/saxes/README.md +323 -0
  2080. data/node_modules/saxes/package.json +70 -0
  2081. data/node_modules/saxes/saxes.d.ts +635 -0
  2082. data/node_modules/saxes/saxes.js +2064 -0
  2083. data/node_modules/saxes/saxes.js.map +1 -0
  2084. data/node_modules/source-map/CHANGELOG.md +301 -0
  2085. data/node_modules/source-map/LICENSE +28 -0
  2086. data/node_modules/source-map/README.md +742 -0
  2087. data/node_modules/source-map/dist/source-map.debug.js +3234 -0
  2088. data/node_modules/source-map/dist/source-map.js +3233 -0
  2089. data/node_modules/source-map/dist/source-map.min.js +2 -0
  2090. data/node_modules/source-map/dist/source-map.min.js.map +1 -0
  2091. data/node_modules/source-map/lib/array-set.js +121 -0
  2092. data/node_modules/source-map/lib/base64-vlq.js +140 -0
  2093. data/node_modules/source-map/lib/base64.js +67 -0
  2094. data/node_modules/source-map/lib/binary-search.js +111 -0
  2095. data/node_modules/source-map/lib/mapping-list.js +79 -0
  2096. data/node_modules/source-map/lib/quick-sort.js +114 -0
  2097. data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  2098. data/node_modules/source-map/lib/source-map-generator.js +425 -0
  2099. data/node_modules/source-map/lib/source-node.js +413 -0
  2100. data/node_modules/source-map/lib/util.js +488 -0
  2101. data/node_modules/source-map/package.json +73 -0
  2102. data/node_modules/source-map/source-map.d.ts +98 -0
  2103. data/node_modules/source-map/source-map.js +8 -0
  2104. data/node_modules/symbol-tree/LICENSE +21 -0
  2105. data/node_modules/symbol-tree/README.md +545 -0
  2106. data/node_modules/symbol-tree/lib/SymbolTree.js +838 -0
  2107. data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
  2108. data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
  2109. data/node_modules/symbol-tree/lib/TreePosition.js +11 -0
  2110. data/node_modules/symbol-tree/package.json +47 -0
  2111. data/node_modules/tough-cookie/LICENSE +12 -0
  2112. data/node_modules/tough-cookie/README.md +582 -0
  2113. data/node_modules/tough-cookie/lib/cookie.js +1671 -0
  2114. data/node_modules/tough-cookie/lib/memstore.js +190 -0
  2115. data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
  2116. data/node_modules/tough-cookie/lib/permuteDomain.js +70 -0
  2117. data/node_modules/tough-cookie/lib/pubsuffix-psl.js +38 -0
  2118. data/node_modules/tough-cookie/lib/store.js +76 -0
  2119. data/node_modules/tough-cookie/lib/version.js +2 -0
  2120. data/node_modules/tough-cookie/node_modules/universalify/LICENSE +20 -0
  2121. data/node_modules/tough-cookie/node_modules/universalify/README.md +76 -0
  2122. data/node_modules/tough-cookie/node_modules/universalify/index.js +25 -0
  2123. data/node_modules/tough-cookie/node_modules/universalify/package.json +34 -0
  2124. data/node_modules/tough-cookie/package.json +109 -0
  2125. data/node_modules/tr46/LICENSE.md +21 -0
  2126. data/node_modules/tr46/README.md +72 -0
  2127. data/node_modules/tr46/index.js +297 -0
  2128. data/node_modules/tr46/lib/mappingTable.json +1 -0
  2129. data/node_modules/tr46/lib/regexes.js +29 -0
  2130. data/node_modules/tr46/lib/statusMapping.js +11 -0
  2131. data/node_modules/tr46/package.json +46 -0
  2132. data/node_modules/type-check/LICENSE +22 -0
  2133. data/node_modules/type-check/README.md +210 -0
  2134. data/node_modules/type-check/lib/check.js +126 -0
  2135. data/node_modules/type-check/lib/index.js +16 -0
  2136. data/node_modules/type-check/lib/parse-type.js +196 -0
  2137. data/node_modules/type-check/package.json +40 -0
  2138. data/node_modules/w3c-hr-time/CHANGELOG.md +19 -0
  2139. data/node_modules/w3c-hr-time/LICENSE.md +21 -0
  2140. data/node_modules/w3c-hr-time/README.md +130 -0
  2141. data/node_modules/w3c-hr-time/index.js +11 -0
  2142. data/node_modules/w3c-hr-time/lib/calculate-clock-offset.js +39 -0
  2143. data/node_modules/w3c-hr-time/lib/clock-is-accurate.js +61 -0
  2144. data/node_modules/w3c-hr-time/lib/global-monotonic-clock.js +10 -0
  2145. data/node_modules/w3c-hr-time/lib/performance.js +53 -0
  2146. data/node_modules/w3c-hr-time/lib/utils.js +11 -0
  2147. data/node_modules/w3c-hr-time/package.json +26 -0
  2148. data/node_modules/w3c-xmlserializer/LICENSE.md +25 -0
  2149. data/node_modules/w3c-xmlserializer/README.md +41 -0
  2150. data/node_modules/w3c-xmlserializer/lib/attributes.js +128 -0
  2151. data/node_modules/w3c-xmlserializer/lib/constants.js +44 -0
  2152. data/node_modules/w3c-xmlserializer/lib/serialize.js +371 -0
  2153. data/node_modules/w3c-xmlserializer/package.json +32 -0
  2154. data/node_modules/webidl-conversions/LICENSE.md +12 -0
  2155. data/node_modules/webidl-conversions/README.md +101 -0
  2156. data/node_modules/webidl-conversions/lib/index.js +489 -0
  2157. data/node_modules/webidl-conversions/package.json +30 -0
  2158. data/node_modules/whatwg-encoding/LICENSE.txt +7 -0
  2159. data/node_modules/whatwg-encoding/README.md +50 -0
  2160. data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
  2161. data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
  2162. data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
  2163. data/node_modules/whatwg-encoding/package.json +29 -0
  2164. data/node_modules/whatwg-mimetype/LICENSE.txt +7 -0
  2165. data/node_modules/whatwg-mimetype/README.md +101 -0
  2166. data/node_modules/whatwg-mimetype/lib/mime-type.js +191 -0
  2167. data/node_modules/whatwg-mimetype/lib/parser.js +124 -0
  2168. data/node_modules/whatwg-mimetype/lib/serializer.js +25 -0
  2169. data/node_modules/whatwg-mimetype/lib/utils.js +25 -0
  2170. data/node_modules/whatwg-mimetype/package.json +43 -0
  2171. data/node_modules/whatwg-url/LICENSE.txt +21 -0
  2172. data/node_modules/whatwg-url/README.md +104 -0
  2173. data/node_modules/whatwg-url/dist/Function.js +46 -0
  2174. data/node_modules/whatwg-url/dist/URL-impl.js +217 -0
  2175. data/node_modules/whatwg-url/dist/URL.js +417 -0
  2176. data/node_modules/whatwg-url/dist/URLSearchParams-impl.js +122 -0
  2177. data/node_modules/whatwg-url/dist/URLSearchParams.js +457 -0
  2178. data/node_modules/whatwg-url/dist/VoidFunction.js +30 -0
  2179. data/node_modules/whatwg-url/dist/encoding.js +26 -0
  2180. data/node_modules/whatwg-url/dist/infra.js +26 -0
  2181. data/node_modules/whatwg-url/dist/percent-encoding.js +141 -0
  2182. data/node_modules/whatwg-url/dist/url-state-machine.js +1210 -0
  2183. data/node_modules/whatwg-url/dist/urlencoded.js +102 -0
  2184. data/node_modules/whatwg-url/dist/utils.js +141 -0
  2185. data/node_modules/whatwg-url/index.js +24 -0
  2186. data/node_modules/whatwg-url/package.json +60 -0
  2187. data/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
  2188. data/node_modules/word-wrap/LICENSE +21 -0
  2189. data/node_modules/word-wrap/README.md +182 -0
  2190. data/node_modules/word-wrap/index.d.ts +50 -0
  2191. data/node_modules/word-wrap/index.js +46 -0
  2192. data/node_modules/word-wrap/package.json +77 -0
  2193. data/node_modules/ws/LICENSE +21 -0
  2194. data/node_modules/ws/README.md +496 -0
  2195. data/node_modules/ws/browser.js +8 -0
  2196. data/node_modules/ws/index.js +10 -0
  2197. data/node_modules/ws/lib/buffer-util.js +129 -0
  2198. data/node_modules/ws/lib/constants.js +10 -0
  2199. data/node_modules/ws/lib/event-target.js +184 -0
  2200. data/node_modules/ws/lib/extension.js +223 -0
  2201. data/node_modules/ws/lib/limiter.js +55 -0
  2202. data/node_modules/ws/lib/permessage-deflate.js +518 -0
  2203. data/node_modules/ws/lib/receiver.js +607 -0
  2204. data/node_modules/ws/lib/sender.js +409 -0
  2205. data/node_modules/ws/lib/stream.js +177 -0
  2206. data/node_modules/ws/lib/validation.js +104 -0
  2207. data/node_modules/ws/lib/websocket-server.js +447 -0
  2208. data/node_modules/ws/lib/websocket.js +1078 -0
  2209. data/node_modules/ws/package.json +56 -0
  2210. data/node_modules/xml-name-validator/LICENSE.txt +176 -0
  2211. data/node_modules/xml-name-validator/README.md +36 -0
  2212. data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
  2213. data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
  2214. data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
  2215. data/node_modules/xml-name-validator/package.json +28 -0
  2216. data/node_modules/xmlchars/LICENSE +18 -0
  2217. data/node_modules/xmlchars/README.md +33 -0
  2218. data/node_modules/xmlchars/package.json +51 -0
  2219. data/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  2220. data/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  2221. data/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  2222. data/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  2223. data/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  2224. data/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  2225. data/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  2226. data/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  2227. data/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  2228. data/node_modules/xmlchars/xmlchars.d.ts +170 -0
  2229. data/node_modules/xmlchars/xmlchars.js +191 -0
  2230. data/node_modules/xmlchars/xmlchars.js.map +1 -0
  2231. data/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  2232. data/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  2233. data/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  2234. data/package.json +1 -1
  2235. data/release.sh +2 -1
  2236. data/spec/depends/api_spec.rb +1 -1
  2237. data/spec/fixtures/depends/revoke_api_key.appmap.json +3 -3
  2238. data/spec/fixtures/depends/user_page_scenario.appmap.json +3 -3
  2239. data/spec/fixtures/rails6_users_app/Gemfile +1 -1
  2240. data/spec/fixtures/rails6_users_app/docker-compose.yml +1 -1
  2241. data/spec/hook_spec.rb +6 -4
  2242. data/spec/rails_recording_spec.rb +5 -2
  2243. data/spec/railtie_spec.rb +3 -3
  2244. data/spec/record_sql_rails_pg_spec.rb +1 -1
  2245. data/spec/remote_recording_spec.rb +3 -3
  2246. data/spec/spec_helper.rb +4 -0
  2247. data/test/agent_setup_validate_test.rb +3 -3
  2248. data/yarn.lock +408 -20
  2249. metadata +2219 -100
  2250. data/node_modules/@appland/cli/CHANGELOG.md +0 -96
  2251. data/node_modules/@appland/cli/package.json +0 -49
  2252. data/node_modules/@appland/cli/src/appland/listAppMaps.js +0 -58
  2253. data/node_modules/@appland/cli/src/appland/types.d.ts +0 -16
  2254. data/node_modules/@appland/cli/src/cli.js +0 -576
  2255. data/node_modules/@appland/cli/src/utils.js +0 -164
  2256. data/node_modules/@appland/cli/tests/unit/depends.spec.js +0 -55
  2257. data/node_modules/@appland/cli/tests/unit/fingerprint/canonicalize.spec.js +0 -42
  2258. data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.info.json +0 -246
  2259. data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.trace.json +0 -289
  2260. data/node_modules/@appland/cli/tests/unit/fixtures/canonicalize/revoke_api_key.update.json +0 -78
  2261. data/node_modules/@appland/cli/tests/unit/fixtures/revoke_api_key.appmap.json +0 -899
  2262. data/node_modules/@appland/cli/tests/unit/fixtures/user_page_scenario.appmap.json +0 -1774
  2263. data/node_modules/@appland/cli/tests/unit/inspect.spec.js +0 -94
  2264. data/node_modules/@rollup/plugin-alias/CHANGELOG.md +0 -92
  2265. data/node_modules/@rollup/plugin-alias/LICENSE +0 -21
  2266. data/node_modules/@rollup/plugin-alias/README.md +0 -174
  2267. data/node_modules/@rollup/plugin-alias/dist/index.es.js +0 -95
  2268. data/node_modules/@rollup/plugin-alias/dist/index.js +0 -101
  2269. data/node_modules/@rollup/plugin-alias/package.json +0 -78
  2270. data/node_modules/@rollup/plugin-alias/types/index.d.ts +0 -36
  2271. data/node_modules/fsevents/LICENSE +0 -22
  2272. data/node_modules/fsevents/README.md +0 -83
  2273. data/node_modules/fsevents/fsevents.d.ts +0 -46
  2274. data/node_modules/fsevents/fsevents.js +0 -82
  2275. data/node_modules/fsevents/fsevents.node +0 -0
  2276. data/node_modules/fsevents/package.json +0 -62
  2277. data/node_modules/slash/index.d.ts +0 -25
  2278. data/node_modules/slash/index.js +0 -11
  2279. data/node_modules/slash/license +0 -9
  2280. data/node_modules/slash/package.json +0 -35
  2281. data/node_modules/slash/readme.md +0 -44
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Manage all the request and it is able to abort
5
+ * all pending request.
6
+ */
7
+ module.exports = class RequestManager {
8
+ constructor() {
9
+ this.openedRequests = [];
10
+ }
11
+
12
+ add(req) {
13
+ this.openedRequests.push(req);
14
+ }
15
+
16
+ remove(req) {
17
+ const idx = this.openedRequests.indexOf(req);
18
+ if (idx !== -1) {
19
+ this.openedRequests.splice(idx, 1);
20
+ }
21
+ }
22
+
23
+ close() {
24
+ for (const openedRequest of this.openedRequests) {
25
+ openedRequest.abort();
26
+ }
27
+ this.openedRequests = [];
28
+ }
29
+
30
+ size() {
31
+ return this.openedRequests.length;
32
+ }
33
+ };
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ const fs = require("fs");
3
+ const { fileURLToPath } = require("url");
4
+ const { parseURL } = require("whatwg-url");
5
+ const dataURLFromRecord = require("data-urls").fromURLRecord;
6
+ const packageVersion = require("../../../../package.json").version;
7
+ const agentFactory = require("../../living/helpers/agent-factory");
8
+ const Request = require("../../living/helpers/http-request");
9
+
10
+ const IS_BROWSER = Object.prototype.toString.call(process) !== "[object process]";
11
+
12
+ module.exports = class ResourceLoader {
13
+ constructor({
14
+ strictSSL = true,
15
+ proxy = undefined,
16
+ userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
17
+ `(KHTML, like Gecko) jsdom/${packageVersion}`
18
+ } = {}) {
19
+ this._strictSSL = strictSSL;
20
+ this._proxy = proxy;
21
+ this._userAgent = userAgent;
22
+ }
23
+
24
+ _readDataURL(urlRecord) {
25
+ const dataURL = dataURLFromRecord(urlRecord);
26
+ let timeoutId;
27
+ const promise = new Promise(resolve => {
28
+ timeoutId = setTimeout(resolve, 0, dataURL.body);
29
+ });
30
+ promise.abort = () => {
31
+ if (timeoutId !== undefined) {
32
+ clearTimeout(timeoutId);
33
+ }
34
+ };
35
+ return promise;
36
+ }
37
+
38
+ _readFile(filePath) {
39
+ let readableStream, abort; // Native Promises doesn't have an "abort" method.
40
+
41
+ // Creating a promise for two reason:
42
+ // 1. fetch always return a promise.
43
+ // 2. We need to add an abort handler.
44
+ const promise = new Promise((resolve, reject) => {
45
+ readableStream = fs.createReadStream(filePath);
46
+ let data = Buffer.alloc(0);
47
+
48
+ abort = reject;
49
+
50
+ readableStream.on("error", reject);
51
+
52
+ readableStream.on("data", chunk => {
53
+ data = Buffer.concat([data, chunk]);
54
+ });
55
+
56
+ readableStream.on("end", () => {
57
+ resolve(data);
58
+ });
59
+ });
60
+
61
+ promise.abort = () => {
62
+ readableStream.destroy();
63
+ const error = new Error("request canceled by user");
64
+ error.isAbortError = true;
65
+ abort(error);
66
+ };
67
+
68
+ return promise;
69
+ }
70
+
71
+ fetch(urlString, { accept, cookieJar, referrer } = {}) {
72
+ const url = parseURL(urlString);
73
+
74
+ if (!url) {
75
+ return Promise.reject(new Error(`Tried to fetch invalid URL ${urlString}`));
76
+ }
77
+
78
+ switch (url.scheme) {
79
+ case "data": {
80
+ return this._readDataURL(url);
81
+ }
82
+
83
+ case "http":
84
+ case "https": {
85
+ const agents = agentFactory(this._proxy, this._strictSSL);
86
+ const headers = {
87
+ "User-Agent": this._userAgent,
88
+ "Accept-Language": "en",
89
+ "Accept-Encoding": "gzip",
90
+ "Accept": accept || "*/*"
91
+ };
92
+ if (referrer && !IS_BROWSER) {
93
+ headers.Referer = referrer;
94
+ }
95
+ const requestClient = new Request(
96
+ urlString,
97
+ { followRedirects: true, cookieJar, agents },
98
+ { headers }
99
+ );
100
+ const promise = new Promise((resolve, reject) => {
101
+ const accumulated = [];
102
+ requestClient.once("response", res => {
103
+ promise.response = res;
104
+ const { statusCode } = res;
105
+ // TODO This deviates from the spec when it comes to
106
+ // loading resources such as images
107
+ if (statusCode < 200 || statusCode > 299) {
108
+ requestClient.abort();
109
+ reject(new Error(`Resource was not loaded. Status: ${statusCode}`));
110
+ }
111
+ });
112
+ requestClient.on("data", chunk => {
113
+ accumulated.push(chunk);
114
+ });
115
+ requestClient.on("end", () => resolve(Buffer.concat(accumulated)));
116
+ requestClient.on("error", reject);
117
+ });
118
+ // The method fromURL in lib/api.js crashes without the following four
119
+ // properties defined on the Promise instance, causing the test suite to halt
120
+ requestClient.on("end", () => {
121
+ promise.href = requestClient.currentURL;
122
+ });
123
+ promise.abort = requestClient.abort.bind(requestClient);
124
+ promise.getHeader = name => headers[name] || requestClient.getHeader(name);
125
+ requestClient.end();
126
+ return promise;
127
+ }
128
+
129
+ case "file": {
130
+ try {
131
+ return this._readFile(fileURLToPath(urlString));
132
+ } catch (e) {
133
+ return Promise.reject(e);
134
+ }
135
+ }
136
+
137
+ default: {
138
+ return Promise.reject(new Error(`Tried to fetch URL ${urlString} with invalid scheme ${url.scheme}`));
139
+ }
140
+ }
141
+ }
142
+ };
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Queue for all the resources to be download except async scripts.
5
+ * Async scripts have their own queue AsyncResourceQueue.
6
+ */
7
+ module.exports = class ResourceQueue {
8
+ constructor({ paused, asyncQueue } = {}) {
9
+ this.paused = Boolean(paused);
10
+ this._asyncQueue = asyncQueue;
11
+ }
12
+
13
+ getLastScript() {
14
+ let head = this.tail;
15
+
16
+ while (head) {
17
+ if (head.isScript) {
18
+ return head;
19
+ }
20
+ head = head.prev;
21
+ }
22
+
23
+ return null;
24
+ }
25
+
26
+ _moreScripts() {
27
+ let found = false;
28
+
29
+ let head = this.tail;
30
+ while (head && !found) {
31
+ found = head.isScript;
32
+ head = head.prev;
33
+ }
34
+
35
+ return found;
36
+ }
37
+
38
+ _notify() {
39
+ if (this._listener) {
40
+ this._listener();
41
+ }
42
+ }
43
+
44
+ setListener(listener) {
45
+ this._listener = listener;
46
+ }
47
+
48
+ push(request, onLoad, onError, keepLast, element) {
49
+ const isScript = element ? element.localName === "script" : false;
50
+
51
+ if (!request) {
52
+ if (isScript && !this._moreScripts()) {
53
+ return onLoad();
54
+ }
55
+
56
+ request = Promise.resolve();
57
+ }
58
+ const q = this;
59
+ const item = {
60
+ isScript,
61
+ err: null,
62
+ element,
63
+ fired: false,
64
+ data: null,
65
+ keepLast,
66
+ prev: q.tail,
67
+ check() {
68
+ if (!q.paused && !this.prev && this.fired) {
69
+ let promise;
70
+
71
+ if (this.err && onError) {
72
+ promise = onError(this.err);
73
+ }
74
+
75
+ if (!this.err && onLoad) {
76
+ promise = onLoad(this.data);
77
+ }
78
+
79
+ Promise.resolve(promise)
80
+ .then(() => {
81
+ if (this.next) {
82
+ this.next.prev = null;
83
+ this.next.check();
84
+ } else { // q.tail===this
85
+ q.tail = null;
86
+ q._notify();
87
+ }
88
+
89
+ this.finished = true;
90
+
91
+ if (q._asyncQueue) {
92
+ q._asyncQueue.notifyItem(this);
93
+ }
94
+ });
95
+ }
96
+ }
97
+ };
98
+ if (q.tail) {
99
+ if (q.tail.keepLast) {
100
+ // if the tail is the load event in document and we receive a new element to load
101
+ // we should add this new request before the load event.
102
+ if (q.tail.prev) {
103
+ q.tail.prev.next = item;
104
+ }
105
+ item.prev = q.tail.prev;
106
+ q.tail.prev = item;
107
+ item.next = q.tail;
108
+ } else {
109
+ q.tail.next = item;
110
+ q.tail = item;
111
+ }
112
+ } else {
113
+ q.tail = item;
114
+ }
115
+ return request
116
+ .then(data => {
117
+ item.fired = 1;
118
+ item.data = data;
119
+ item.check();
120
+ })
121
+ .catch(err => {
122
+ item.fired = true;
123
+ item.err = err;
124
+ item.check();
125
+ });
126
+ }
127
+
128
+ resume() {
129
+ if (!this.paused) {
130
+ return;
131
+ }
132
+ this.paused = false;
133
+
134
+ let head = this.tail;
135
+ while (head && head.prev) {
136
+ head = head.prev;
137
+ }
138
+ if (head) {
139
+ head.check();
140
+ }
141
+ }
142
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ const cssom = require("cssom");
3
+ const cssstyle = require("cssstyle");
4
+
5
+ exports.addToCore = core => {
6
+ // What works now:
7
+ // - Accessing the rules defined in individual stylesheets
8
+ // - Modifications to style content attribute are reflected in style property
9
+ // - Modifications to style property are reflected in style content attribute
10
+ // TODO
11
+ // - Modifications to style element's textContent are reflected in sheet property.
12
+ // - Modifications to style element's sheet property are reflected in textContent.
13
+ // - Modifications to link.href property are reflected in sheet property.
14
+ // - Less-used features of link: disabled
15
+ // - Less-used features of style: disabled, scoped, title
16
+ // - CSSOM-View
17
+ // - getComputedStyle(): requires default stylesheet, cascading, inheritance,
18
+ // filtering by @media (screen? print?), layout for widths/heights
19
+ // - Load events are not in the specs, but apparently some browsers
20
+ // implement something. Should onload only fire after all @imports have been
21
+ // loaded, or only the primary sheet?
22
+
23
+ core.StyleSheet = cssom.StyleSheet;
24
+ core.MediaList = cssom.MediaList;
25
+ core.CSSStyleSheet = cssom.CSSStyleSheet;
26
+ core.CSSRule = cssom.CSSRule;
27
+ core.CSSStyleRule = cssom.CSSStyleRule;
28
+ core.CSSMediaRule = cssom.CSSMediaRule;
29
+ core.CSSImportRule = cssom.CSSImportRule;
30
+ core.CSSStyleDeclaration = cssstyle.CSSStyleDeclaration;
31
+
32
+ // Relavant specs
33
+ // http://www.w3.org/TR/DOM-Level-2-Style (2000)
34
+ // http://www.w3.org/TR/cssom-view/ (2008)
35
+ // http://dev.w3.org/csswg/cssom/ (2010) Meant to replace DOM Level 2 Style
36
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5, of course
37
+ // http://dev.w3.org/csswg/css-style-attr/ not sure what's new here
38
+
39
+ // Objects that aren't in cssom library but should be:
40
+ // CSSRuleList (cssom just uses array)
41
+ // CSSFontFaceRule
42
+ // CSSPageRule
43
+
44
+ // These rules don't really make sense to implement, so CSSOM draft makes them
45
+ // obsolete.
46
+ // CSSCharsetRule
47
+ // CSSUnknownRule
48
+
49
+ // These objects are considered obsolete by CSSOM draft, although modern
50
+ // browsers implement them.
51
+ // CSSValue
52
+ // CSSPrimitiveValue
53
+ // CSSValueList
54
+ // RGBColor
55
+ // Rect
56
+ // Counter
57
+ };
@@ -0,0 +1,1874 @@
1
+ /** Here is yet another implementation of XPath 1.0 in Javascript.
2
+ *
3
+ * My goal was to make it relatively compact, but as I fixed all the axis bugs
4
+ * the axes became more and more complicated. :-(.
5
+ *
6
+ * I have not implemented namespaces or case-sensitive axes for XML yet.
7
+ *
8
+ * How to test it in Chrome: You can make a Chrome extension that replaces
9
+ * the WebKit XPath parser with this one. But it takes a bit of effort to
10
+ * get around isolated world and same-origin restrictions:
11
+ * manifest.json:
12
+ {
13
+ "name": "XPathTest",
14
+ "version": "0.1",
15
+ "content_scripts": [{
16
+ "matches": ["http://localhost/*"], // or wildcard host
17
+ "js": ["xpath.js", "injection.js"],
18
+ "all_frames": true, "run_at": "document_start"
19
+ }]
20
+ }
21
+ * injection.js:
22
+ // goal: give my xpath object to the website's JS context.
23
+ var script = document.createElement('script');
24
+ script.textContent =
25
+ "document.addEventListener('xpathextend', function(e) {\n" +
26
+ " console.log('extending document with xpath...');\n" +
27
+ " e.detail(window);" +
28
+ "});";
29
+ document.documentElement.appendChild(script);
30
+ document.documentElement.removeChild(script);
31
+ var evt = document.createEvent('CustomEvent');
32
+ evt.initCustomEvent('xpathextend', true, true, this.xpath.extend);
33
+ document.dispatchEvent(evt);
34
+ */
35
+ module.exports = core => {
36
+ var xpath = {};
37
+
38
+ // Helper function to deal with the migration of Attr to no longer have a nodeName property despite this codebase
39
+ // assuming it does.
40
+ function getNodeName(nodeOrAttr) {
41
+ return nodeOrAttr.constructor.name === 'Attr' ? nodeOrAttr.name : nodeOrAttr.nodeName;
42
+ }
43
+
44
+ /***************************************************************************
45
+ * Tokenization *
46
+ ***************************************************************************/
47
+ /**
48
+ * The XPath lexer is basically a single regular expression, along with
49
+ * some helper functions to pop different types.
50
+ */
51
+ var Stream = xpath.Stream = function Stream(str) {
52
+ this.original = this.str = str;
53
+ this.peeked = null;
54
+ // TODO: not really needed, but supposedly tokenizer also disambiguates
55
+ // a * b vs. node test *
56
+ this.prev = null; // for debugging
57
+ this.prevprev = null;
58
+ }
59
+ Stream.prototype = {
60
+ peek: function() {
61
+ if (this.peeked) return this.peeked;
62
+ var m = this.re.exec(this.str);
63
+ if (!m) return null;
64
+ this.str = this.str.substr(m[0].length);
65
+ return this.peeked = m[1];
66
+ },
67
+ /** Peek 2 tokens ahead. */
68
+ peek2: function() {
69
+ this.peek(); // make sure this.peeked is set
70
+ var m = this.re.exec(this.str);
71
+ if (!m) return null;
72
+ return m[1];
73
+ },
74
+ pop: function() {
75
+ var r = this.peek();
76
+ this.peeked = null;
77
+ this.prevprev = this.prev;
78
+ this.prev = r;
79
+ return r;
80
+ },
81
+ trypop: function(tokens) {
82
+ var tok = this.peek();
83
+ if (tok === tokens) return this.pop();
84
+ if (Array.isArray(tokens)) {
85
+ for (var i = 0; i < tokens.length; ++i) {
86
+ var t = tokens[i];
87
+ if (t == tok) return this.pop();;
88
+ }
89
+ }
90
+ },
91
+ trypopfuncname: function() {
92
+ var tok = this.peek();
93
+ if (!this.isQnameRe.test(tok))
94
+ return null;
95
+ switch (tok) {
96
+ case 'comment': case 'text': case 'processing-instruction': case 'node':
97
+ return null;
98
+ }
99
+ if ('(' != this.peek2()) return null;
100
+ return this.pop();
101
+ },
102
+ trypopaxisname: function() {
103
+ var tok = this.peek();
104
+ switch (tok) {
105
+ case 'ancestor': case 'ancestor-or-self': case 'attribute':
106
+ case 'child': case 'descendant': case 'descendant-or-self':
107
+ case 'following': case 'following-sibling': case 'namespace':
108
+ case 'parent': case 'preceding': case 'preceding-sibling': case 'self':
109
+ if ('::' == this.peek2()) return this.pop();
110
+ }
111
+ return null;
112
+ },
113
+ trypopnametest: function() {
114
+ var tok = this.peek();
115
+ if ('*' === tok || this.startsWithNcNameRe.test(tok)) return this.pop();
116
+ return null;
117
+ },
118
+ trypopliteral: function() {
119
+ var tok = this.peek();
120
+ if (null == tok) return null;
121
+ var first = tok.charAt(0);
122
+ var last = tok.charAt(tok.length - 1);
123
+ if ('"' === first && '"' === last ||
124
+ "'" === first && "'" === last) {
125
+ this.pop();
126
+ return tok.substr(1, tok.length - 2);
127
+ }
128
+ },
129
+ trypopnumber: function() {
130
+ var tok = this.peek();
131
+ if (this.isNumberRe.test(tok)) return parseFloat(this.pop());
132
+ else return null;
133
+ },
134
+ trypopvarref: function() {
135
+ var tok = this.peek();
136
+ if (null == tok) return null;
137
+ if ('$' === tok.charAt(0)) return this.pop().substr(1);
138
+ else return null;
139
+ },
140
+ position: function() {
141
+ return this.original.length - this.str.length;
142
+ }
143
+ };
144
+ (function() {
145
+ // http://www.w3.org/TR/REC-xml-names/#NT-NCName
146
+ var nameStartCharsExceptColon =
147
+ 'A-Z_a-z\xc0-\xd6\xd8-\xf6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF' +
148
+ '\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF' +
149
+ '\uFDF0-\uFFFD'; // JS doesn't support [#x10000-#xEFFFF]
150
+ var nameCharExceptColon = nameStartCharsExceptColon +
151
+ '\\-\\.0-9\xb7\u0300-\u036F\u203F-\u2040';
152
+ var ncNameChars = '[' + nameStartCharsExceptColon +
153
+ '][' + nameCharExceptColon + ']*'
154
+ // http://www.w3.org/TR/REC-xml-names/#NT-QName
155
+ var qNameChars = ncNameChars + '(?::' + ncNameChars + ')?';
156
+ var otherChars = '\\.\\.|[\\(\\)\\[\\].@,]|::'; // .. must come before [.]
157
+ var operatorChars =
158
+ 'and|or|mod|div|' +
159
+ '//|!=|<=|>=|[*/|+\\-=<>]'; // //, !=, <=, >= before individual ones.
160
+ var literal = '"[^"]*"|' + "'[^']*'";
161
+ var numberChars = '[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+';
162
+ var variableReference = '\\$' + qNameChars;
163
+ var nameTestChars = '\\*|' + ncNameChars + ':\\*|' + qNameChars;
164
+ var optionalSpace = '[ \t\r\n]*'; // stricter than regexp \s.
165
+ var nodeType = 'comment|text|processing-instruction|node';
166
+ var re = new RegExp(
167
+ // numberChars before otherChars so that leading-decimal doesn't become .
168
+ '^' + optionalSpace + '(' + numberChars + '|' + otherChars + '|' +
169
+ nameTestChars + '|' + operatorChars + '|' + literal + '|' +
170
+ variableReference + ')'
171
+ // operatorName | nodeType | functionName | axisName are lumped into
172
+ // qName for now; we'll check them on pop.
173
+ );
174
+ Stream.prototype.re = re;
175
+ Stream.prototype.startsWithNcNameRe = new RegExp('^' + ncNameChars);
176
+ Stream.prototype.isQnameRe = new RegExp('^' + qNameChars + '$');
177
+ Stream.prototype.isNumberRe = new RegExp('^' + numberChars + '$');
178
+ })();
179
+
180
+ /***************************************************************************
181
+ * Parsing *
182
+ ***************************************************************************/
183
+ var parse = xpath.parse = function parse(stream, a) {
184
+ var r = orExpr(stream,a);
185
+ var x, unparsed = [];
186
+ while (x = stream.pop()) {
187
+ unparsed.push(x);
188
+ }
189
+ if (unparsed.length)
190
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
191
+ 'Position ' + stream.position() +
192
+ ': Unparsed tokens: ' + unparsed.join(' '));
193
+ return r;
194
+ }
195
+
196
+ /**
197
+ * binaryL ::= subExpr
198
+ * | binaryL op subExpr
199
+ * so a op b op c becomes ((a op b) op c)
200
+ */
201
+ function binaryL(subExpr, stream, a, ops) {
202
+ var lhs = subExpr(stream, a);
203
+ if (lhs == null) return null;
204
+ var op;
205
+ while (op = stream.trypop(ops)) {
206
+ var rhs = subExpr(stream, a);
207
+ if (rhs == null)
208
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
209
+ 'Position ' + stream.position() +
210
+ ': Expected something after ' + op);
211
+ lhs = a.node(op, lhs, rhs);
212
+ }
213
+ return lhs;
214
+ }
215
+ /**
216
+ * Too bad this is never used. If they made a ** operator (raise to power),
217
+ ( we would use it.
218
+ * binaryR ::= subExpr
219
+ * | subExpr op binaryR
220
+ * so a op b op c becomes (a op (b op c))
221
+ */
222
+ function binaryR(subExpr, stream, a, ops) {
223
+ var lhs = subExpr(stream, a);
224
+ if (lhs == null) return null;
225
+ var op = stream.trypop(ops);
226
+ if (op) {
227
+ var rhs = binaryR(stream, a);
228
+ if (rhs == null)
229
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
230
+ 'Position ' + stream.position() +
231
+ ': Expected something after ' + op);
232
+ return a.node(op, lhs, rhs);
233
+ } else {
234
+ return lhs;// TODO
235
+ }
236
+ }
237
+ /** [1] LocationPath::= RelativeLocationPath | AbsoluteLocationPath
238
+ * e.g. a, a/b, //a/b
239
+ */
240
+ function locationPath(stream, a) {
241
+ return absoluteLocationPath(stream, a) ||
242
+ relativeLocationPath(null, stream, a);
243
+ }
244
+ /** [2] AbsoluteLocationPath::= '/' RelativeLocationPath? | AbbreviatedAbsoluteLocationPath
245
+ * [10] AbbreviatedAbsoluteLocationPath::= '//' RelativeLocationPath
246
+ */
247
+ function absoluteLocationPath(stream, a) {
248
+ var op = stream.peek();
249
+ if ('/' === op || '//' === op) {
250
+ var lhs = a.node('Root');
251
+ return relativeLocationPath(lhs, stream, a, true);
252
+ } else {
253
+ return null;
254
+ }
255
+ }
256
+ /** [3] RelativeLocationPath::= Step | RelativeLocationPath '/' Step |
257
+ * | AbbreviatedRelativeLocationPath
258
+ * [11] AbbreviatedRelativeLocationPath::= RelativeLocationPath '//' Step
259
+ * e.g. p/a, etc.
260
+ */
261
+ function relativeLocationPath(lhs, stream, a, isOnlyRootOk) {
262
+ if (null == lhs) {
263
+ lhs = step(stream, a);
264
+ if (null == lhs) return lhs;
265
+ }
266
+ var op;
267
+ while (op = stream.trypop(['/', '//'])) {
268
+ if ('//' === op) {
269
+ lhs = a.node('/', lhs,
270
+ a.node('Axis', 'descendant-or-self', 'node', undefined));
271
+ }
272
+ var rhs = step(stream, a);
273
+ if (null == rhs && '/' === op && isOnlyRootOk) return lhs;
274
+ else isOnlyRootOk = false;
275
+ if (null == rhs)
276
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
277
+ 'Position ' + stream.position() +
278
+ ': Expected step after ' + op);
279
+ lhs = a.node('/', lhs, rhs);
280
+ }
281
+ return lhs;
282
+ }
283
+ /** [4] Step::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep
284
+ * [12] AbbreviatedStep::= '.' | '..'
285
+ * e.g. @href, self::p, p, a[@href], ., ..
286
+ */
287
+ function step(stream, a) {
288
+ var abbrStep = stream.trypop(['.', '..']);
289
+ if ('.' === abbrStep) // A location step of . is short for self::node().
290
+ return a.node('Axis', 'self', 'node');
291
+ if ('..' === abbrStep) // A location step of .. is short for parent::node()
292
+ return a.node('Axis', 'parent', 'node');
293
+
294
+ var axis = axisSpecifier(stream, a);
295
+ var nodeType = nodeTypeTest(stream, a);
296
+ var nodeName;
297
+ if (null == nodeType) nodeName = nodeNameTest(stream, a);
298
+ if (null == axis && null == nodeType && null == nodeName) return null;
299
+ if (null == nodeType && null == nodeName)
300
+ throw new XPathException(
301
+ XPathException.INVALID_EXPRESSION_ERR,
302
+ 'Position ' + stream.position() +
303
+ ': Expected nodeTest after axisSpecifier ' + axis);
304
+ if (null == axis) axis = 'child';
305
+ if (null == nodeType) {
306
+ // When there's only a node name, then the node type is forced to be the
307
+ // principal node type of the axis.
308
+ // see http://www.w3.org/TR/xpath/#dt-principal-node-type
309
+ if ('attribute' === axis) nodeType = 'attribute';
310
+ else if ('namespace' === axis) nodeType = 'namespace';
311
+ else nodeType = 'element';
312
+ }
313
+ var lhs = a.node('Axis', axis, nodeType, nodeName);
314
+ var pred;
315
+ while (null != (pred = predicate(lhs, stream, a))) {
316
+ lhs = pred;
317
+ }
318
+ return lhs;
319
+ }
320
+ /** [5] AxisSpecifier::= AxisName '::' | AbbreviatedAxisSpecifier
321
+ * [6] AxisName::= 'ancestor' | 'ancestor-or-self' | 'attribute' | 'child'
322
+ * | 'descendant' | 'descendant-or-self' | 'following'
323
+ * | 'following-sibling' | 'namespace' | 'parent' |
324
+ * | 'preceding' | 'preceding-sibling' | 'self'
325
+ * [13] AbbreviatedAxisSpecifier::= '@'?
326
+ */
327
+ function axisSpecifier(stream, a) {
328
+ var attr = stream.trypop('@');
329
+ if (null != attr) return 'attribute';
330
+ var axisName = stream.trypopaxisname();
331
+ if (null != axisName) {
332
+ var coloncolon = stream.trypop('::');
333
+ if (null == coloncolon)
334
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
335
+ 'Position ' + stream.position() +
336
+ ': Should not happen. Should be ::.');
337
+ return axisName;
338
+ }
339
+ }
340
+ /** [7] NodeTest::= NameTest | NodeType '(' ')' | 'processing-instruction' '(' Literal ')'
341
+ * [38] NodeType::= 'comment' | 'text' | 'processing-instruction' | 'node'
342
+ * I've split nodeTypeTest from nodeNameTest for convenience.
343
+ */
344
+ function nodeTypeTest(stream, a) {
345
+ if ('(' !== stream.peek2()) {
346
+ return null;
347
+ }
348
+ var type = stream.trypop(['comment', 'text', 'processing-instruction', 'node']);
349
+ if (null != type) {
350
+ if (null == stream.trypop('('))
351
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
352
+ 'Position ' + stream.position() +
353
+ ': Should not happen.');
354
+ var param = undefined;
355
+ if (type == 'processing-instruction') {
356
+ param = stream.trypopliteral();
357
+ }
358
+ if (null == stream.trypop(')'))
359
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
360
+ 'Position ' + stream.position() +
361
+ ': Expected close parens.');
362
+ return type
363
+ }
364
+ }
365
+ function nodeNameTest(stream, a) {
366
+ var name = stream.trypopnametest();
367
+ if (name != null) return name;
368
+ else return null;
369
+ }
370
+ /** [8] Predicate::= '[' PredicateExpr ']'
371
+ * [9] PredicateExpr::= Expr
372
+ */
373
+ function predicate(lhs, stream, a) {
374
+ if (null == stream.trypop('[')) return null;
375
+ var expr = orExpr(stream, a);
376
+ if (null == expr)
377
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
378
+ 'Position ' + stream.position() +
379
+ ': Expected expression after [');
380
+ if (null == stream.trypop(']'))
381
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
382
+ 'Position ' + stream.position() +
383
+ ': Expected ] after expression.');
384
+ return a.node('Predicate', lhs, expr);
385
+ }
386
+ /** [14] Expr::= OrExpr
387
+ */
388
+ /** [15] PrimaryExpr::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall
389
+ * e.g. $x, (3+4), "hi", 32, f(x)
390
+ */
391
+ function primaryExpr(stream, a) {
392
+ var x = stream.trypopliteral();
393
+ if (null == x)
394
+ x = stream.trypopnumber();
395
+ if (null != x) {
396
+ return x;
397
+ }
398
+ var varRef = stream.trypopvarref();
399
+ if (null != varRef) return a.node('VariableReference', varRef);
400
+ var funCall = functionCall(stream, a);
401
+ if (null != funCall) {
402
+ return funCall;
403
+ }
404
+ if (stream.trypop('(')) {
405
+ var e = orExpr(stream, a);
406
+ if (null == e)
407
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
408
+ 'Position ' + stream.position() +
409
+ ': Expected expression after (.');
410
+ if (null == stream.trypop(')'))
411
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
412
+ 'Position ' + stream.position() +
413
+ ': Expected ) after expression.');
414
+ return e;
415
+ }
416
+ return null;
417
+ }
418
+ /** [16] FunctionCall::= FunctionName '(' ( Argument ( ',' Argument )* )? ')'
419
+ * [17] Argument::= Expr
420
+ */
421
+ function functionCall(stream, a) {
422
+ var name = stream.trypopfuncname(stream, a);
423
+ if (null == name) return null;
424
+ if (null == stream.trypop('('))
425
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
426
+ 'Position ' + stream.position() +
427
+ ': Expected ( ) after function name.');
428
+ var params = [];
429
+ var first = true;
430
+ while (null == stream.trypop(')')) {
431
+ if (!first && null == stream.trypop(','))
432
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
433
+ 'Position ' + stream.position() +
434
+ ': Expected , between arguments of the function.');
435
+ first = false;
436
+ var param = orExpr(stream, a);
437
+ if (param == null)
438
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
439
+ 'Position ' + stream.position() +
440
+ ': Expected expression as argument of function.');
441
+ params.push(param);
442
+ }
443
+ return a.node('FunctionCall', name, params);
444
+ }
445
+
446
+ /** [18] UnionExpr::= PathExpr | UnionExpr '|' PathExpr
447
+ */
448
+ function unionExpr(stream, a) { return binaryL(pathExpr, stream, a, '|'); }
449
+ /** [19] PathExpr ::= LocationPath
450
+ * | FilterExpr
451
+ * | FilterExpr '/' RelativeLocationPath
452
+ * | FilterExpr '//' RelativeLocationPath
453
+ * Unlike most other nodes, this one always generates a node because
454
+ * at this point all reverse nodesets must turn into a forward nodeset
455
+ */
456
+ function pathExpr(stream, a) {
457
+ // We have to do FilterExpr before LocationPath because otherwise
458
+ // LocationPath will eat up the name from a function call.
459
+ var filter = filterExpr(stream, a);
460
+ if (null == filter) {
461
+ var loc = locationPath(stream, a);
462
+ if (null == loc) {
463
+ throw new Error
464
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
465
+ 'Position ' + stream.position() +
466
+ ': The expression shouldn\'t be empty...');
467
+ }
468
+ return a.node('PathExpr', loc);
469
+ }
470
+ var rel = relativeLocationPath(filter, stream, a, false);
471
+ if (filter === rel) return rel;
472
+ else return a.node('PathExpr', rel);
473
+ }
474
+ /** [20] FilterExpr::= PrimaryExpr | FilterExpr Predicate
475
+ * aka. FilterExpr ::= PrimaryExpr Predicate*
476
+ */
477
+ function filterExpr(stream, a) {
478
+ var primary = primaryExpr(stream, a);
479
+ if (primary == null) return null;
480
+ var pred, lhs = primary;
481
+ while (null != (pred = predicate(lhs, stream, a))) {
482
+ lhs = pred;
483
+ }
484
+ return lhs;
485
+ }
486
+
487
+ /** [21] OrExpr::= AndExpr | OrExpr 'or' AndExpr
488
+ */
489
+ function orExpr(stream, a) {
490
+ var orig = (stream.peeked || '') + stream.str
491
+ var r = binaryL(andExpr, stream, a, 'or');
492
+ var now = (stream.peeked || '') + stream.str;
493
+ return r;
494
+ }
495
+ /** [22] AndExpr::= EqualityExpr | AndExpr 'and' EqualityExpr
496
+ */
497
+ function andExpr(stream, a) { return binaryL(equalityExpr, stream, a, 'and'); }
498
+ /** [23] EqualityExpr::= RelationalExpr | EqualityExpr '=' RelationalExpr
499
+ * | EqualityExpr '!=' RelationalExpr
500
+ */
501
+ function equalityExpr(stream, a) { return binaryL(relationalExpr, stream, a, ['=','!=']); }
502
+ /** [24] RelationalExpr::= AdditiveExpr | RelationalExpr '<' AdditiveExpr
503
+ * | RelationalExpr '>' AdditiveExpr
504
+ * | RelationalExpr '<=' AdditiveExpr
505
+ * | RelationalExpr '>=' AdditiveExpr
506
+ */
507
+ function relationalExpr(stream, a) { return binaryL(additiveExpr, stream, a, ['<','>','<=','>=']); }
508
+ /** [25] AdditiveExpr::= MultiplicativeExpr
509
+ * | AdditiveExpr '+' MultiplicativeExpr
510
+ * | AdditiveExpr '-' MultiplicativeExpr
511
+ */
512
+ function additiveExpr(stream, a) { return binaryL(multiplicativeExpr, stream, a, ['+','-']); }
513
+ /** [26] MultiplicativeExpr::= UnaryExpr
514
+ * | MultiplicativeExpr MultiplyOperator UnaryExpr
515
+ * | MultiplicativeExpr 'div' UnaryExpr
516
+ * | MultiplicativeExpr 'mod' UnaryExpr
517
+ */
518
+ function multiplicativeExpr(stream, a) { return binaryL(unaryExpr, stream, a, ['*','div','mod']); }
519
+ /** [27] UnaryExpr::= UnionExpr | '-' UnaryExpr
520
+ */
521
+ function unaryExpr(stream, a) {
522
+ if (stream.trypop('-')) {
523
+ var e = unaryExpr(stream, a);
524
+ if (null == e)
525
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
526
+ 'Position ' + stream.position() +
527
+ ': Expected unary expression after -');
528
+ return a.node('UnaryMinus', e);
529
+ }
530
+ else return unionExpr(stream, a);
531
+ }
532
+ var astFactory = {
533
+ node: function() {return Array.prototype.slice.call(arguments);}
534
+ };
535
+
536
+
537
+ /***************************************************************************
538
+ * Optimizations (TODO) *
539
+ ***************************************************************************/
540
+ /**
541
+ * Some things I've been considering:
542
+ * 1) a//b becomes a/descendant::b if there's no predicate that uses
543
+ * position() or last()
544
+ * 2) axis[pred]: when pred doesn't use position, evaluate it just once per
545
+ * node in the node-set rather than once per (node, position, last).
546
+ * For more optimizations, look up Gecko's optimizer:
547
+ * http://mxr.mozilla.org/mozilla-central/source/content/xslt/src/xpath/txXPathOptimizer.cpp
548
+ */
549
+ // TODO
550
+ function optimize(ast) {
551
+ }
552
+
553
+ /***************************************************************************
554
+ * Evaluation: axes *
555
+ ***************************************************************************/
556
+
557
+ /**
558
+ * Data types: For string, number, boolean, we just use Javascript types.
559
+ * Node-sets have the form
560
+ * {nodes: [node, ...]}
561
+ * or {nodes: [node, ...], pos: [[1], [2], ...], lasts: [[1], [2], ...]}
562
+ *
563
+ * Most of the time, only the node is used and the position information is
564
+ * discarded. But if you use a predicate, we need to try every value of
565
+ * position and last in case the predicate calls position() or last().
566
+ */
567
+
568
+ /**
569
+ * The NodeMultiSet is a helper class to help generate
570
+ * {nodes:[], pos:[], lasts:[]} structures. It is useful for the
571
+ * descendant, descendant-or-self, following-sibling, and
572
+ * preceding-sibling axes for which we can use a stack to organize things.
573
+ */
574
+ function NodeMultiSet(isReverseAxis) {
575
+ this.nodes = [];
576
+ this.pos = [];
577
+ this.lasts = [];
578
+ this.nextPos = [];
579
+ this.seriesIndexes = []; // index within nodes that each series begins.
580
+ this.isReverseAxis = isReverseAxis;
581
+ this._pushToNodes = isReverseAxis ? Array.prototype.unshift : Array.prototype.push;
582
+ }
583
+ NodeMultiSet.prototype = {
584
+ pushSeries: function pushSeries() {
585
+ this.nextPos.push(1);
586
+ this.seriesIndexes.push(this.nodes.length);
587
+ },
588
+ popSeries: function popSeries() {
589
+ console.assert(0 < this.nextPos.length, this.nextPos);
590
+ var last = this.nextPos.pop() - 1,
591
+ indexInPos = this.nextPos.length,
592
+ seriesBeginIndex = this.seriesIndexes.pop(),
593
+ seriesEndIndex = this.nodes.length;
594
+ for (var i = seriesBeginIndex; i < seriesEndIndex; ++i) {
595
+ console.assert(indexInPos < this.lasts[i].length);
596
+ console.assert(undefined === this.lasts[i][indexInPos]);
597
+ this.lasts[i][indexInPos] = last;
598
+ }
599
+ },
600
+ finalize: function() {
601
+ if (null == this.nextPos) return this;
602
+ console.assert(0 === this.nextPos.length);
603
+ var lastsJSON = JSON.stringify(this.lasts);
604
+ for (var i = 0; i < this.lasts.length; ++i) {
605
+ for (var j = 0; j < this.lasts[i].length; ++j) {
606
+ console.assert(null != this.lasts[i][j], i + ',' + j + ':' + lastsJSON);
607
+ }
608
+ }
609
+ this.pushSeries = this.popSeries = this.addNode = function() {
610
+ throw new Error('Already finalized.');
611
+ };
612
+ return this;
613
+ },
614
+ addNode: function addNode(node) {
615
+ console.assert(node);
616
+ this._pushToNodes.call(this.nodes, node)
617
+ this._pushToNodes.call(this.pos, this.nextPos.slice());
618
+ this._pushToNodes.call(this.lasts, new Array(this.nextPos.length));
619
+ for (var i = 0; i < this.nextPos.length; ++i) this.nextPos[i]++;
620
+ },
621
+ simplify: function() {
622
+ this.finalize();
623
+ return {nodes:this.nodes, pos:this.pos, lasts:this.lasts};
624
+ }
625
+ };
626
+ function eachContext(nodeMultiSet) {
627
+ var r = [];
628
+ for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
629
+ var node = nodeMultiSet.nodes[i];
630
+ if (!nodeMultiSet.pos) {
631
+ r.push({nodes:[node], pos: [[i + 1]], lasts: [[nodeMultiSet.nodes.length]]});
632
+ } else {
633
+ for (var j = 0; j < nodeMultiSet.pos[i].length; ++j) {
634
+ r.push({nodes:[node], pos: [[nodeMultiSet.pos[i][j]]], lasts: [[nodeMultiSet.lasts[i][j]]]});
635
+ }
636
+ }
637
+ }
638
+ return r;
639
+ }
640
+ /** Matcher used in the axes.
641
+ */
642
+ function NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase) {
643
+ this.nodeTypeNum = nodeTypeNum;
644
+ this.nodeName = nodeName;
645
+ this.shouldLowerCase = shouldLowerCase;
646
+ this.nodeNameTest =
647
+ null == nodeName ? this._alwaysTrue :
648
+ shouldLowerCase ? this._nodeNameLowerCaseEquals :
649
+ this._nodeNameEquals;
650
+ }
651
+ NodeMatcher.prototype = {
652
+ matches: function matches(node) {
653
+ if (0 === this.nodeTypeNum || this._nodeTypeMatches(node)) {
654
+ return this.nodeNameTest(getNodeName(node));
655
+ }
656
+
657
+ return false;
658
+ },
659
+ _nodeTypeMatches(nodeOrAttr) {
660
+ if (nodeOrAttr.constructor.name === 'Attr' && this.nodeTypeNum === 2) {
661
+ return true;
662
+ }
663
+ return nodeOrAttr.nodeType === this.nodeTypeNum;
664
+ },
665
+ _alwaysTrue: function(name) {return true;},
666
+ _nodeNameEquals: function _nodeNameEquals(name) {
667
+ return this.nodeName === name;
668
+ },
669
+ _nodeNameLowerCaseEquals: function _nodeNameLowerCaseEquals(name) {
670
+ return this.nodeName === name.toLowerCase();
671
+ }
672
+ };
673
+
674
+ function followingSiblingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, shift, peek, followingNode, andSelf, isReverseAxis) {
675
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
676
+ var nodeMultiSet = new NodeMultiSet(isReverseAxis);
677
+ while (0 < nodeList.length) { // can be if for following, preceding
678
+ var node = shift.call(nodeList);
679
+ console.assert(node != null);
680
+ node = followingNode(node);
681
+ nodeMultiSet.pushSeries();
682
+ var numPushed = 1;
683
+ while (null != node) {
684
+ if (! andSelf && matcher.matches(node))
685
+ nodeMultiSet.addNode(node);
686
+ if (node === peek.call(nodeList)) {
687
+ shift.call(nodeList);
688
+ nodeMultiSet.pushSeries();
689
+ numPushed++;
690
+ }
691
+ if (andSelf && matcher.matches(node))
692
+ nodeMultiSet.addNode(node);
693
+ node = followingNode(node);
694
+ }
695
+ while (0 < numPushed--)
696
+ nodeMultiSet.popSeries();
697
+ }
698
+ return nodeMultiSet;
699
+ }
700
+
701
+ /** Returns the next non-descendant node in document order.
702
+ * This is the first node in following::node(), if node is the context.
703
+ */
704
+ function followingNonDescendantNode(node) {
705
+ if (node.ownerElement) {
706
+ if (node.ownerElement.firstChild)
707
+ return node.ownerElement.firstChild;
708
+ node = node.ownerElement;
709
+ }
710
+ do {
711
+ if (node.nextSibling) return node.nextSibling;
712
+ } while (node = node.parentNode);
713
+ return null;
714
+ }
715
+
716
+ /** Returns the next node in a document-order depth-first search.
717
+ * See the definition of document order[1]:
718
+ * 1) element
719
+ * 2) namespace nodes
720
+ * 3) attributes
721
+ * 4) children
722
+ * [1]: http://www.w3.org/TR/xpath/#dt-document-order
723
+ */
724
+ function followingNode(node) {
725
+ if (node.ownerElement) // attributes: following node of element.
726
+ node = node.ownerElement;
727
+ if (null != node.firstChild)
728
+ return node.firstChild;
729
+ do {
730
+ if (null != node.nextSibling) {
731
+ return node.nextSibling;
732
+ }
733
+ node = node.parentNode;
734
+ } while (node);
735
+ return null;
736
+ }
737
+ /** Returns the previous node in document order (excluding attributes
738
+ * and namespace nodes).
739
+ */
740
+ function precedingNode(node) {
741
+ if (node.ownerElement)
742
+ return node.ownerElement;
743
+ if (null != node.previousSibling) {
744
+ node = node.previousSibling;
745
+ while (null != node.lastChild) {
746
+ node = node.lastChild;
747
+ }
748
+ return node;
749
+ }
750
+ if (null != node.parentNode) {
751
+ return node.parentNode;
752
+ }
753
+ return null;
754
+ }
755
+ /** This axis is inefficient if there are many nodes in the nodeList.
756
+ * But I think it's a pretty useless axis so it's ok. */
757
+ function followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
758
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
759
+ var nodeMultiSet = new NodeMultiSet(false);
760
+ var cursor = nodeList[0];
761
+ var unorderedFollowingStarts = [];
762
+ for (var i = 0; i < nodeList.length; i++) {
763
+ var node = nodeList[i];
764
+ var start = followingNonDescendantNode(node);
765
+ if (start)
766
+ unorderedFollowingStarts.push(start);
767
+ }
768
+ if (0 === unorderedFollowingStarts.length)
769
+ return {nodes:[]};
770
+ var pos = [], nextPos = [];
771
+ var started = 0;
772
+ while (cursor = followingNode(cursor)) {
773
+ for (var i = unorderedFollowingStarts.length - 1; i >= 0; i--){
774
+ if (cursor === unorderedFollowingStarts[i]) {
775
+ nodeMultiSet.pushSeries();
776
+ unorderedFollowingStarts.splice(i,i+1);
777
+ started++;
778
+ }
779
+ }
780
+ if (started && matcher.matches(cursor)) {
781
+ nodeMultiSet.addNode(cursor);
782
+ }
783
+ }
784
+ console.assert(0 === unorderedFollowingStarts.length);
785
+ for (var i = 0; i < started; i++)
786
+ nodeMultiSet.popSeries();
787
+ return nodeMultiSet.finalize();
788
+ }
789
+ function precedingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
790
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
791
+ var cursor = nodeList.pop();
792
+ if (null == cursor) return {nodes:{}};
793
+ var r = {nodes:[], pos:[], lasts:[]};
794
+ var nextParents = [cursor.parentNode || cursor.ownerElement], nextPos = [1];
795
+ while (cursor = precedingNode(cursor)) {
796
+ if (cursor === nodeList[nodeList.length - 1]) {
797
+ nextParents.push(nodeList.pop());
798
+ nextPos.push(1);
799
+ }
800
+ var matches = matcher.matches(cursor);
801
+ var pos, someoneUsed = false;
802
+ if (matches)
803
+ pos = nextPos.slice();
804
+
805
+ for (var i = 0; i < nextParents.length; ++i) {
806
+ if (cursor === nextParents[i]) {
807
+ nextParents[i] = cursor.parentNode || cursor.ownerElement;
808
+ if (matches) {
809
+ pos[i] = null;
810
+ }
811
+ } else {
812
+ if (matches) {
813
+ pos[i] = nextPos[i]++;
814
+ someoneUsed = true;
815
+ }
816
+ }
817
+ }
818
+ if (someoneUsed) {
819
+ r.nodes.unshift(cursor);
820
+ r.pos.unshift(pos);
821
+ }
822
+ }
823
+ for (var i = 0; i < r.pos.length; ++i) {
824
+ var lasts = [];
825
+ r.lasts.push(lasts);
826
+ for (var j = r.pos[i].length - 1; j >= 0; j--) {
827
+ if (null == r.pos[i][j]) {
828
+ r.pos[i].splice(j, j+1);
829
+ } else {
830
+ lasts.unshift(nextPos[j] - 1);
831
+ }
832
+ }
833
+ }
834
+ return r;
835
+ }
836
+
837
+ /** node-set, axis -> node-set */
838
+ function descendantDfs(nodeMultiSet, node, remaining, matcher, andSelf, attrIndices, attrNodes) {
839
+ while (0 < remaining.length && null != remaining[0].ownerElement) {
840
+ var attr = remaining.shift();
841
+ if (andSelf && matcher.matches(attr)) {
842
+ attrNodes.push(attr);
843
+ attrIndices.push(nodeMultiSet.nodes.length);
844
+ }
845
+ }
846
+ if (null != node && !andSelf) {
847
+ if (matcher.matches(node))
848
+ nodeMultiSet.addNode(node);
849
+ }
850
+ var pushed = false;
851
+ if (null == node) {
852
+ if (0 === remaining.length) return;
853
+ node = remaining.shift();
854
+ nodeMultiSet.pushSeries();
855
+ pushed = true;
856
+ } else if (0 < remaining.length && node === remaining[0]) {
857
+ nodeMultiSet.pushSeries();
858
+ pushed = true;
859
+ remaining.shift();
860
+ }
861
+ if (andSelf) {
862
+ if (matcher.matches(node))
863
+ nodeMultiSet.addNode(node);
864
+ }
865
+ // TODO: use optimization. Also try element.getElementsByTagName
866
+ // var nodeList = 1 === nodeTypeNum && null != node.children ? node.children : node.childNodes;
867
+ var nodeList = node.childNodes;
868
+ for (var j = 0; j < nodeList.length; ++j) {
869
+ var child = nodeList[j];
870
+ descendantDfs(nodeMultiSet, child, remaining, matcher, andSelf, attrIndices, attrNodes);
871
+ }
872
+ if (pushed) {
873
+ nodeMultiSet.popSeries();
874
+ }
875
+ }
876
+ function descenantHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
877
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
878
+ var nodeMultiSet = new NodeMultiSet(false);
879
+ var attrIndices = [], attrNodes = [];
880
+ while (0 < nodeList.length) {
881
+ // var node = nodeList.shift();
882
+ descendantDfs(nodeMultiSet, null, nodeList, matcher, andSelf, attrIndices, attrNodes);
883
+ }
884
+ nodeMultiSet.finalize();
885
+ for (var i = attrNodes.length-1; i >= 0; --i) {
886
+ nodeMultiSet.nodes.splice(attrIndices[i], attrIndices[i], attrNodes[i]);
887
+ nodeMultiSet.pos.splice(attrIndices[i], attrIndices[i], [1]);
888
+ nodeMultiSet.lasts.splice(attrIndices[i], attrIndices[i], [1]);
889
+ }
890
+ return nodeMultiSet;
891
+ }
892
+ /**
893
+ */
894
+ function ancestorHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
895
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
896
+ var ancestors = []; // array of non-empty arrays of matching ancestors
897
+ for (var i = 0; i < nodeList.length; ++i) {
898
+ var node = nodeList[i];
899
+ var isFirst = true;
900
+ var a = [];
901
+ while (null != node) {
902
+ if (!isFirst || andSelf) {
903
+ if (matcher.matches(node))
904
+ a.push(node);
905
+ }
906
+ isFirst = false;
907
+ node = node.parentNode || node.ownerElement;
908
+ }
909
+ if (0 < a.length)
910
+ ancestors.push(a);
911
+ }
912
+ var lasts = [];
913
+ for (var i = 0; i < ancestors.length; ++i) lasts.push(ancestors[i].length);
914
+ var nodeMultiSet = new NodeMultiSet(true);
915
+ var newCtx = {nodes:[], pos:[], lasts:[]};
916
+ while (0 < ancestors.length) {
917
+ var pos = [ancestors[0].length];
918
+ var last = [lasts[0]];
919
+ var node = ancestors[0].pop();
920
+ for (var i = ancestors.length - 1; i > 0; --i) {
921
+ if (node === ancestors[i][ancestors[i].length - 1]) {
922
+ pos.push(ancestors[i].length);
923
+ last.push(lasts[i]);
924
+ ancestors[i].pop();
925
+ if (0 === ancestors[i].length) {
926
+ ancestors.splice(i, i+1);
927
+ lasts.splice(i, i+1);
928
+ }
929
+ }
930
+ }
931
+ if (0 === ancestors[0].length) {
932
+ ancestors.shift();
933
+ lasts.shift();
934
+ }
935
+ newCtx.nodes.push(node);
936
+ newCtx.pos.push(pos);
937
+ newCtx.lasts.push(last);
938
+ }
939
+ return newCtx;
940
+ }
941
+ /** Helper function for sortDocumentOrder. Returns a list of indices, from the
942
+ * node to the root, of positions within parent.
943
+ * For convenience, the node is the first element of the array.
944
+ */
945
+ function addressVector(node) {
946
+ var r = [node];
947
+ if (null != node.ownerElement) {
948
+ node = node.ownerElement;
949
+ r.push(-1);
950
+ }
951
+ while (null != node) {
952
+ var i = 0;
953
+ while (null != node.previousSibling) {
954
+ node = node.previousSibling;
955
+ i++;
956
+ }
957
+ r.push(i);
958
+ node = node.parentNode
959
+ }
960
+ return r;
961
+ }
962
+ function addressComparator(a, b) {
963
+ var minlen = Math.min(a.length - 1, b.length - 1), // not including [0]=node
964
+ alen = a.length,
965
+ blen = b.length;
966
+ if (a[0] === b[0]) return 0;
967
+ var c;
968
+ for (var i = 0; i < minlen; ++i) {
969
+ c = a[alen - i - 1] - b[blen - i - 1];
970
+ if (0 !== c)
971
+ break;
972
+ }
973
+ if (null == c || 0 === c) {
974
+ // All equal until one of the nodes. The longer one is the descendant.
975
+ c = alen - blen;
976
+ }
977
+ if (0 === c)
978
+ c = getNodeName(a) - getNodeName(b);
979
+ if (0 === c)
980
+ c = 1;
981
+ return c;
982
+ }
983
+ var sortUniqDocumentOrder = xpath.sortUniqDocumentOrder = function(nodes) {
984
+ var a = [];
985
+ for (var i = 0; i < nodes.length; i++) {
986
+ var node = nodes[i];
987
+ var v = addressVector(node);
988
+ a.push(v);
989
+ }
990
+ a.sort(addressComparator);
991
+ var b = [];
992
+ for (var i = 0; i < a.length; i++) {
993
+ if (0 < i && a[i][0] === a[i - 1][0])
994
+ continue;
995
+ b.push(a[i][0]);
996
+ }
997
+ return b;
998
+ }
999
+ /** Sort node multiset. Does not do any de-duping. */
1000
+ function sortNodeMultiSet(nodeMultiSet) {
1001
+ var a = [];
1002
+ for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
1003
+ var v = addressVector(nodeMultiSet.nodes[i]);
1004
+ a.push({v:v, n:nodeMultiSet.nodes[i],
1005
+ p:nodeMultiSet.pos[i], l:nodeMultiSet.lasts[i]});
1006
+ }
1007
+ a.sort(compare);
1008
+ var r = {nodes:[], pos:[], lasts:[]};
1009
+ for (var i = 0; i < a.length; ++i) {
1010
+ r.nodes.push(a[i].n);
1011
+ r.pos.push(a[i].p);
1012
+ r.lasts.push(a[i].l);
1013
+ }
1014
+ function compare(x, y) {
1015
+ return addressComparator(x.v, y.v);
1016
+ }
1017
+ return r;
1018
+ }
1019
+ /** Returns an array containing all the ancestors down to a node.
1020
+ * The array starts with document.
1021
+ */
1022
+ function nodeAndAncestors(node) {
1023
+ var ancestors = [node];
1024
+ var p = node;
1025
+ while (p = p.parentNode || p.ownerElement) {
1026
+ ancestors.unshift(p);
1027
+ }
1028
+ return ancestors;
1029
+ }
1030
+ function compareSiblings(a, b) {
1031
+ if (a === b) return 0;
1032
+ var c = a;
1033
+ while (c = c.previousSibling) {
1034
+ if (c === b)
1035
+ return 1; // b < a
1036
+ }
1037
+ c = b;
1038
+ while (c = c.previousSibling) {
1039
+ if (c === a)
1040
+ return -1; // a < b
1041
+ }
1042
+ throw new Error('a and b are not siblings: ' + xpath.stringifyObject(a) + ' vs ' + xpath.stringifyObject(b));
1043
+ }
1044
+ /** The merge in merge-sort.*/
1045
+ function mergeNodeLists(x, y) {
1046
+ var a, b, aanc, banc, r = [];
1047
+ if ('object' !== typeof x)
1048
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1049
+ 'Invalid LHS for | operator ' +
1050
+ '(expected node-set): ' + x);
1051
+ if ('object' !== typeof y)
1052
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1053
+ 'Invalid LHS for | operator ' +
1054
+ '(expected node-set): ' + y);
1055
+ while (true) {
1056
+ if (null == a) {
1057
+ a = x.shift();
1058
+ if (null != a)
1059
+ aanc = addressVector(a);
1060
+ }
1061
+ if (null == b) {
1062
+ b = y.shift();
1063
+ if (null != b)
1064
+ banc = addressVector(b);
1065
+ }
1066
+ if (null == a || null == b) break;
1067
+ var c = addressComparator(aanc, banc);
1068
+ if (c < 0) {
1069
+ r.push(a);
1070
+ a = null;
1071
+ aanc = null;
1072
+ } else if (c > 0) {
1073
+ r.push(b);
1074
+ b = null;
1075
+ banc = null;
1076
+ } else if (getNodeName(a) < getNodeName(b)) { // attributes
1077
+ r.push(a);
1078
+ a = null;
1079
+ aanc = null;
1080
+ } else if (getNodeName(a) > getNodeName(b)) { // attributes
1081
+ r.push(b);
1082
+ b = null;
1083
+ banc = null;
1084
+ } else if (a !== b) {
1085
+ // choose b arbitrarily
1086
+ r.push(b);
1087
+ b = null;
1088
+ banc = null;
1089
+ } else {
1090
+ console.assert(a === b, c);
1091
+ // just skip b without pushing it.
1092
+ b = null;
1093
+ banc = null;
1094
+ }
1095
+ }
1096
+ while (a) {
1097
+ r.push(a);
1098
+ a = x.shift();
1099
+ }
1100
+ while (b) {
1101
+ r.push(b);
1102
+ b = y.shift();
1103
+ }
1104
+ return r;
1105
+ }
1106
+ function comparisonHelper(test, x, y, isNumericComparison) {
1107
+ var coersion;
1108
+ if (isNumericComparison)
1109
+ coersion = fn.number;
1110
+ else coersion =
1111
+ 'boolean' === typeof x || 'boolean' === typeof y ? fn['boolean'] :
1112
+ 'number' === typeof x || 'number' === typeof y ? fn.number :
1113
+ fn.string;
1114
+ if ('object' === typeof x && 'object' === typeof y) {
1115
+ var aMap = {};
1116
+ for (var i = 0; i < x.nodes.length; ++i) {
1117
+ var xi = coersion({nodes:[x.nodes[i]]});
1118
+ for (var j = 0; j < y.nodes.length; ++j) {
1119
+ var yj = coersion({nodes:[y.nodes[j]]});
1120
+ if (test(xi, yj)) return true;
1121
+ }
1122
+ }
1123
+ return false;
1124
+ } else if ('object' === typeof x && x.nodes && x.nodes.length) {
1125
+ for (var i = 0; i < x.nodes.length; ++i) {
1126
+ var xi = coersion({nodes:[x.nodes[i]]}), yc = coersion(y);
1127
+ if (test(xi, yc))
1128
+ return true;
1129
+ }
1130
+ return false;
1131
+ } else if ('object' === typeof y && x.nodes && x.nodes.length) {
1132
+ for (var i = 0; i < x.nodes.length; ++i) {
1133
+ var yi = coersion({nodes:[y.nodes[i]]}), xc = coersion(x);
1134
+ if (test(xc, yi))
1135
+ return true;
1136
+ }
1137
+ return false;
1138
+ } else {
1139
+ var xc = coersion(x), yc = coersion(y);
1140
+ return test(xc, yc);
1141
+ }
1142
+ }
1143
+ var axes = xpath.axes = {
1144
+ 'ancestor':
1145
+ function ancestor(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1146
+ return ancestorHelper(
1147
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
1148
+ },
1149
+ 'ancestor-or-self':
1150
+ function ancestorOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1151
+ return ancestorHelper(
1152
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
1153
+ },
1154
+ 'attribute':
1155
+ function attribute(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1156
+ // TODO: figure out whether positions should be undefined here.
1157
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1158
+ var nodeMultiSet = new NodeMultiSet(false);
1159
+ if (null != nodeName) {
1160
+ // TODO: with namespace
1161
+ for (var i = 0; i < nodeList.length; ++i) {
1162
+ var node = nodeList[i];
1163
+ if (null == node.getAttributeNode)
1164
+ continue; // only Element has .getAttributeNode
1165
+ var attr = node.getAttributeNode(nodeName);
1166
+ if (null != attr && matcher.matches(attr)) {
1167
+ nodeMultiSet.pushSeries();
1168
+ nodeMultiSet.addNode(attr);
1169
+ nodeMultiSet.popSeries();
1170
+ }
1171
+ }
1172
+ } else {
1173
+ for (var i = 0; i < nodeList.length; ++i) {
1174
+ var node = nodeList[i];
1175
+ if (null != node.attributes) {
1176
+ nodeMultiSet.pushSeries();
1177
+ for (var j = 0; j < node.attributes.length; j++) { // all nodes have .attributes
1178
+ var attr = node.attributes[j];
1179
+ if (matcher.matches(attr)) // TODO: I think this check is unnecessary
1180
+ nodeMultiSet.addNode(attr);
1181
+ }
1182
+ nodeMultiSet.popSeries();
1183
+ }
1184
+ }
1185
+ }
1186
+ return nodeMultiSet.finalize();
1187
+ },
1188
+ 'child':
1189
+ function child(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1190
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1191
+ var nodeMultiSet = new NodeMultiSet(false);
1192
+ for (var i = 0; i < nodeList.length; ++i) {
1193
+ var n = nodeList[i];
1194
+ if (n.ownerElement) // skip attribute nodes' text child.
1195
+ continue;
1196
+ if (n.childNodes) {
1197
+ nodeMultiSet.pushSeries();
1198
+ var childList = 1 === nodeTypeNum && null != n.children ?
1199
+ n.children : n.childNodes;
1200
+ for (var j = 0; j < childList.length; ++j) {
1201
+ var child = childList[j];
1202
+ if (matcher.matches(child)) {
1203
+ nodeMultiSet.addNode(child);
1204
+ }
1205
+ // don't have to do de-duping because children have parent,
1206
+ // which are current context.
1207
+ }
1208
+ nodeMultiSet.popSeries();
1209
+ }
1210
+ }
1211
+ nodeMultiSet.finalize();
1212
+ return sortNodeMultiSet(nodeMultiSet);
1213
+ },
1214
+ 'descendant':
1215
+ function descenant(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1216
+ return descenantHelper(
1217
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
1218
+ },
1219
+ 'descendant-or-self':
1220
+ function descenantOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1221
+ return descenantHelper(
1222
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
1223
+ },
1224
+ 'following':
1225
+ function following(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1226
+ return followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1227
+ },
1228
+ 'following-sibling':
1229
+ function followingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1230
+ return followingSiblingHelper(
1231
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
1232
+ Array.prototype.shift, function() {return this[0];},
1233
+ function(node) {return node.nextSibling;});
1234
+ },
1235
+ 'namespace':
1236
+ function namespace(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1237
+ // TODO
1238
+ },
1239
+ 'parent':
1240
+ function parent(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1241
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1242
+ var nodes = [], pos = [];
1243
+ for (var i = 0; i < nodeList.length; ++i) {
1244
+ var parent = nodeList[i].parentNode || nodeList[i].ownerElement;
1245
+ if (null == parent)
1246
+ continue;
1247
+ if (!matcher.matches(parent))
1248
+ continue;
1249
+ if (nodes.length > 0 && parent === nodes[nodes.length-1])
1250
+ continue;
1251
+ nodes.push(parent);
1252
+ pos.push([1]);
1253
+ }
1254
+ return {nodes:nodes, pos:pos, lasts:pos};
1255
+ },
1256
+ 'preceding':
1257
+ function preceding(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1258
+ return precedingHelper(
1259
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1260
+ },
1261
+ 'preceding-sibling':
1262
+ function precedingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1263
+ return followingSiblingHelper(
1264
+ nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
1265
+ Array.prototype.pop, function() {return this[this.length-1];},
1266
+ function(node) {return node.previousSibling},
1267
+ false, true);
1268
+ },
1269
+ 'self':
1270
+ function self(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
1271
+ var nodes = [], pos = [];
1272
+ var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
1273
+ for (var i = 0; i < nodeList.length; ++i) {
1274
+ if (matcher.matches(nodeList[i])) {
1275
+ nodes.push(nodeList[i]);
1276
+ pos.push([1]);
1277
+ }
1278
+ }
1279
+ return {nodes: nodes, pos: pos, lasts: pos}
1280
+ }
1281
+ };
1282
+
1283
+ /***************************************************************************
1284
+ * Evaluation: functions *
1285
+ ***************************************************************************/
1286
+ var fn = {
1287
+ 'number': function number(optObject) {
1288
+ if ('number' === typeof optObject)
1289
+ return optObject;
1290
+ if ('string' === typeof optObject)
1291
+ return parseFloat(optObject); // note: parseFloat(' ') -> NaN, unlike +' ' -> 0.
1292
+ if ('boolean' === typeof optObject)
1293
+ return +optObject;
1294
+ return fn.number(fn.string.call(this, optObject)); // for node-sets
1295
+ },
1296
+ 'string': function string(optObject) {
1297
+ if (null == optObject)
1298
+ return fn.string(this);
1299
+ if ('string' === typeof optObject || 'boolean' === typeof optObject ||
1300
+ 'number' === typeof optObject)
1301
+ return '' + optObject;
1302
+ if (0 == optObject.nodes.length) return '';
1303
+ if (null != optObject.nodes[0].textContent)
1304
+ return optObject.nodes[0].textContent;
1305
+ return optObject.nodes[0].nodeValue;
1306
+ },
1307
+ 'boolean': function booleanVal(x) {
1308
+ return 'object' === typeof x ? x.nodes.length > 0 : !!x;
1309
+ },
1310
+ 'last': function last() {
1311
+ console.assert(Array.isArray(this.pos));
1312
+ console.assert(Array.isArray(this.lasts));
1313
+ console.assert(1 === this.pos.length);
1314
+ console.assert(1 === this.lasts.length);
1315
+ console.assert(1 === this.lasts[0].length);
1316
+ return this.lasts[0][0];
1317
+ },
1318
+ 'position': function position() {
1319
+ console.assert(Array.isArray(this.pos));
1320
+ console.assert(Array.isArray(this.lasts));
1321
+ console.assert(1 === this.pos.length);
1322
+ console.assert(1 === this.lasts.length);
1323
+ console.assert(1 === this.pos[0].length);
1324
+ return this.pos[0][0];
1325
+ },
1326
+ 'count': function count(nodeSet) {
1327
+ if ('object' !== typeof nodeSet)
1328
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1329
+ 'Position ' + stream.position() +
1330
+ ': Function count(node-set) ' +
1331
+ 'got wrong argument type: ' + nodeSet);
1332
+ return nodeSet.nodes.length;
1333
+ },
1334
+ 'id': function id(object) {
1335
+ var r = {nodes: []};
1336
+ var doc = this.nodes[0].ownerDocument || this.nodes[0];
1337
+ console.assert(doc);
1338
+ var ids;
1339
+ if ('object' === typeof object) {
1340
+ // for node-sets, map id over each node value.
1341
+ ids = [];
1342
+ for (var i = 0; i < object.nodes.length; ++i) {
1343
+ var idNode = object.nodes[i];
1344
+ var idsString = fn.string({nodes:[idNode]});
1345
+ var a = idsString.split(/[ \t\r\n]+/g);
1346
+ Array.prototype.push.apply(ids, a);
1347
+ }
1348
+ } else {
1349
+ var idsString = fn.string(object);
1350
+ var a = idsString.split(/[ \t\r\n]+/g);
1351
+ ids = a;
1352
+ }
1353
+ for (var i = 0; i < ids.length; ++i) {
1354
+ var id = ids[i];
1355
+ if (0 === id.length)
1356
+ continue;
1357
+ var node = doc.getElementById(id);
1358
+ if (null != node)
1359
+ r.nodes.push(node);
1360
+ }
1361
+ r.nodes = sortUniqDocumentOrder(r.nodes);
1362
+ return r;
1363
+ },
1364
+ 'local-name': function(nodeSet) {
1365
+ if (null == nodeSet)
1366
+ return fn.name(this);
1367
+ if (null == nodeSet.nodes) {
1368
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1369
+ 'argument to name() must be a node-set. got ' + nodeSet);
1370
+ }
1371
+ // TODO: namespaced version
1372
+ return nodeSet.nodes[0].localName;
1373
+ },
1374
+ 'namespace-uri': function(nodeSet) {
1375
+ // TODO
1376
+ throw new Error('not implemented yet');
1377
+ },
1378
+ 'name': function(nodeSet) {
1379
+ if (null == nodeSet)
1380
+ return fn.name(this);
1381
+ if (null == nodeSet.nodes) {
1382
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1383
+ 'argument to name() must be a node-set. got ' + nodeSet);
1384
+ }
1385
+ return nodeSet.nodes[0].name;
1386
+ },
1387
+ 'concat': function concat(x) {
1388
+ var l = [];
1389
+ for (var i = 0; i < arguments.length; ++i) {
1390
+ l.push(fn.string(arguments[i]));
1391
+ }
1392
+ return l.join('');
1393
+ },
1394
+ 'starts-with': function startsWith(a, b) {
1395
+ var as = fn.string(a), bs = fn.string(b);
1396
+ return as.substr(0, bs.length) === bs;
1397
+ },
1398
+ 'contains': function contains(a, b) {
1399
+ var as = fn.string(a), bs = fn.string(b);
1400
+ var i = as.indexOf(bs);
1401
+ if (-1 === i) return false;
1402
+ return true;
1403
+ },
1404
+ 'substring-before': function substringBefore(a, b) {
1405
+ var as = fn.string(a), bs = fn.string(b);
1406
+ var i = as.indexOf(bs);
1407
+ if (-1 === i) return '';
1408
+ return as.substr(0, i);
1409
+ },
1410
+ 'substring-after': function substringBefore(a, b) {
1411
+ var as = fn.string(a), bs = fn.string(b);
1412
+ var i = as.indexOf(bs);
1413
+ if (-1 === i) return '';
1414
+ return as.substr(i + bs.length);
1415
+ },
1416
+ 'substring': function substring(string, start, optEnd) {
1417
+ if (null == string || null == start) {
1418
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1419
+ 'Must be at least 2 arguments to string()');
1420
+ }
1421
+ var sString = fn.string(string),
1422
+ iStart = fn.round(start),
1423
+ iEnd = optEnd == null ? null : fn.round(optEnd);
1424
+ // Note that xpath string positions user 1-based index
1425
+ if (iEnd == null)
1426
+ return sString.substr(iStart - 1);
1427
+ else
1428
+ return sString.substr(iStart - 1, iEnd);
1429
+ },
1430
+ 'string-length': function stringLength(optString) {
1431
+ return fn.string.call(this, optString).length;
1432
+ },
1433
+ 'normalize-space': function normalizeSpace(optString) {
1434
+ var s = fn.string.call(this, optString);
1435
+ return s.replace(/[ \t\r\n]+/g, ' ').replace(/^ | $/g, '');
1436
+ },
1437
+ 'translate': function translate(string, from, to) {
1438
+ var sString = fn.string.call(this, string),
1439
+ sFrom = fn.string(from),
1440
+ sTo = fn.string(to);
1441
+ var eachCharRe = [];
1442
+ var map = {};
1443
+ for (var i = 0; i < sFrom.length; ++i) {
1444
+ var c = sFrom.charAt(i);
1445
+ map[c] = sTo.charAt(i); // returns '' if beyond length of sTo.
1446
+ // copied from goog.string.regExpEscape in the Closure library.
1447
+ eachCharRe.push(
1448
+ c.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1').
1449
+ replace(/\x08/g, '\\x08'));
1450
+ }
1451
+ var re = new RegExp(eachCharRe.join('|'), 'g');
1452
+ return sString.replace(re, function(c) {return map[c];});
1453
+ },
1454
+ /// Boolean functions
1455
+ 'not': function not(x) {
1456
+ var bx = fn['boolean'](x);
1457
+ return !bx;
1458
+ },
1459
+ 'true': function trueVal() { return true; },
1460
+ 'false': function falseVal() { return false; },
1461
+ // TODO
1462
+ 'lang': function lang(string) { throw new Error('Not implemented');},
1463
+ 'sum': function sum(optNodeSet) {
1464
+ if (null == optNodeSet) return fn.sum(this);
1465
+ // for node-sets, map id over each node value.
1466
+ var sum = 0;
1467
+ for (var i = 0; i < optNodeSet.nodes.length; ++i) {
1468
+ var node = optNodeSet.nodes[i];
1469
+ var x = fn.number({nodes:[node]});
1470
+ sum += x;
1471
+ }
1472
+ return sum;
1473
+ },
1474
+ 'floor': function floor(number) {
1475
+ return Math.floor(fn.number(number));
1476
+ },
1477
+ 'ceiling': function ceiling(number) {
1478
+ return Math.ceil(fn.number(number));
1479
+ },
1480
+ 'round': function round(number) {
1481
+ return Math.round(fn.number(number));
1482
+ }
1483
+ };
1484
+ /***************************************************************************
1485
+ * Evaluation: operators *
1486
+ ***************************************************************************/
1487
+ var more = {
1488
+ UnaryMinus: function(x) { return -fn.number(x); },
1489
+ '+': function(x, y) { return fn.number(x) + fn.number(y); },
1490
+ '-': function(x, y) { return fn.number(x) - fn.number(y); },
1491
+ '*': function(x, y) { return fn.number(x) * fn.number(y); },
1492
+ 'div': function(x, y) { return fn.number(x) / fn.number(y); },
1493
+ 'mod': function(x, y) { return fn.number(x) % fn.number(y); },
1494
+ '<': function(x, y) {
1495
+ return comparisonHelper(function(x, y) { return fn.number(x) < fn.number(y);}, x, y, true);
1496
+ },
1497
+ '<=': function(x, y) {
1498
+ return comparisonHelper(function(x, y) { return fn.number(x) <= fn.number(y);}, x, y, true);
1499
+ },
1500
+ '>': function(x, y) {
1501
+ return comparisonHelper(function(x, y) { return fn.number(x) > fn.number(y);}, x, y, true);
1502
+ },
1503
+ '>=': function(x, y) {
1504
+ return comparisonHelper(function(x, y) { return fn.number(x) >= fn.number(y);}, x, y, true);
1505
+ },
1506
+ 'and': function(x, y) { return fn['boolean'](x) && fn['boolean'](y); },
1507
+ 'or': function(x, y) { return fn['boolean'](x) || fn['boolean'](y); },
1508
+ '|': function(x, y) { return {nodes: mergeNodeLists(x.nodes, y.nodes)}; },
1509
+ '=': function(x, y) {
1510
+ // optimization for two node-sets case: avoid n^2 comparisons.
1511
+ if ('object' === typeof x && 'object' === typeof y) {
1512
+ var aMap = {};
1513
+ for (var i = 0; i < x.nodes.length; ++i) {
1514
+ var s = fn.string({nodes:[x.nodes[i]]});
1515
+ aMap[s] = true;
1516
+ }
1517
+ for (var i = 0; i < y.nodes.length; ++i) {
1518
+ var s = fn.string({nodes:[y.nodes[i]]});
1519
+ if (aMap[s]) return true;
1520
+ }
1521
+ return false;
1522
+ } else {
1523
+ return comparisonHelper(function(x, y) {return x === y;}, x, y);
1524
+ }
1525
+ },
1526
+ '!=': function(x, y) {
1527
+ // optimization for two node-sets case: avoid n^2 comparisons.
1528
+ if ('object' === typeof x && 'object' === typeof y) {
1529
+ if (0 === x.nodes.length || 0 === y.nodes.length) return false;
1530
+ var aMap = {};
1531
+ for (var i = 0; i < x.nodes.length; ++i) {
1532
+ var s = fn.string({nodes:[x.nodes[i]]});
1533
+ aMap[s] = true;
1534
+ }
1535
+ for (var i = 0; i < y.nodes.length; ++i) {
1536
+ var s = fn.string({nodes:[y.nodes[i]]});
1537
+ if (!aMap[s]) return true;
1538
+ }
1539
+ return false;
1540
+ } else {
1541
+ return comparisonHelper(function(x, y) {return x !== y;}, x, y);
1542
+ }
1543
+ }
1544
+ };
1545
+ var nodeTypes = xpath.nodeTypes = {
1546
+ 'node': 0,
1547
+ 'attribute': 2,
1548
+ 'comment': 8, // this.doc.COMMENT_NODE,
1549
+ 'text': 3, // this.doc.TEXT_NODE,
1550
+ 'processing-instruction': 7, // this.doc.PROCESSING_INSTRUCTION_NODE,
1551
+ 'element': 1 //this.doc.ELEMENT_NODE
1552
+ };
1553
+ /** For debugging and unit tests: returnjs a stringified version of the
1554
+ * argument. */
1555
+ var stringifyObject = xpath.stringifyObject = function stringifyObject(ctx) {
1556
+ var seenKey = 'seen' + Math.floor(Math.random()*1000000000);
1557
+ return JSON.stringify(helper(ctx));
1558
+
1559
+ function helper(ctx) {
1560
+ if (Array.isArray(ctx)) {
1561
+ return ctx.map(function(x) {return helper(x);});
1562
+ }
1563
+ if ('object' !== typeof ctx) return ctx;
1564
+ if (null == ctx) return ctx;
1565
+ // if (ctx.toString) return ctx.toString();
1566
+ if (null != ctx.outerHTML) return ctx.outerHTML;
1567
+ if (null != ctx.nodeValue) return ctx.nodeName + '=' + ctx.nodeValue;
1568
+ if (ctx[seenKey]) return '[circular]';
1569
+ ctx[seenKey] = true;
1570
+ var nicer = {};
1571
+ for (var key in ctx) {
1572
+ if (seenKey === key)
1573
+ continue;
1574
+ try {
1575
+ nicer[key] = helper(ctx[key]);
1576
+ } catch (e) {
1577
+ nicer[key] = '[exception: ' + e.message + ']';
1578
+ }
1579
+ }
1580
+ delete ctx[seenKey];
1581
+ return nicer;
1582
+ }
1583
+ }
1584
+ var Evaluator = xpath.Evaluator = function Evaluator(doc) {
1585
+ this.doc = doc;
1586
+ }
1587
+ Evaluator.prototype = {
1588
+ val: function val(ast, ctx) {
1589
+ console.assert(ctx.nodes);
1590
+
1591
+ if ('number' === typeof ast || 'string' === typeof ast) return ast;
1592
+ if (more[ast[0]]) {
1593
+ var evaluatedParams = [];
1594
+ for (var i = 1; i < ast.length; ++i) {
1595
+ evaluatedParams.push(this.val(ast[i], ctx));
1596
+ }
1597
+ var r = more[ast[0]].apply(ctx, evaluatedParams);
1598
+ return r;
1599
+ }
1600
+ switch (ast[0]) {
1601
+ case 'Root': return {nodes: [this.doc]};
1602
+ case 'FunctionCall':
1603
+ var functionName = ast[1], functionParams = ast[2];
1604
+ if (null == fn[functionName])
1605
+ throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
1606
+ 'Unknown function: ' + functionName);
1607
+ var evaluatedParams = [];
1608
+ for (var i = 0; i < functionParams.length; ++i) {
1609
+ evaluatedParams.push(this.val(functionParams[i], ctx));
1610
+ }
1611
+ var r = fn[functionName].apply(ctx, evaluatedParams);
1612
+ return r;
1613
+ case 'Predicate':
1614
+ var lhs = this.val(ast[1], ctx);
1615
+ var ret = {nodes: []};
1616
+ var contexts = eachContext(lhs);
1617
+ for (var i = 0; i < contexts.length; ++i) {
1618
+ var singleNodeSet = contexts[i];
1619
+ var rhs = this.val(ast[2], singleNodeSet);
1620
+ var success;
1621
+ if ('number' === typeof rhs) {
1622
+ success = rhs === singleNodeSet.pos[0][0];
1623
+ } else {
1624
+ success = fn['boolean'](rhs);
1625
+ }
1626
+ if (success) {
1627
+ var node = singleNodeSet.nodes[0];
1628
+ ret.nodes.push(node);
1629
+ // skip over all the rest of the same node.
1630
+ while (i+1 < contexts.length && node === contexts[i+1].nodes[0]) {
1631
+ i++;
1632
+ }
1633
+ }
1634
+ }
1635
+ return ret;
1636
+ case 'PathExpr':
1637
+ // turn the path into an expressoin; i.e., remove the position
1638
+ // information of the last axis.
1639
+ var x = this.val(ast[1], ctx);
1640
+ // Make the nodeset a forward-direction-only one.
1641
+ if (x.finalize) { // it is a NodeMultiSet
1642
+ return {nodes: x.nodes};
1643
+ } else {
1644
+ return x;
1645
+ }
1646
+ case '/':
1647
+ // TODO: don't generate '/' nodes, just Axis nodes.
1648
+ var lhs = this.val(ast[1], ctx);
1649
+ console.assert(null != lhs);
1650
+ var r = this.val(ast[2], lhs);
1651
+ console.assert(null != r);
1652
+ return r;
1653
+ case 'Axis':
1654
+ // All the axis tests from Step. We only get AxisSpecifier NodeTest,
1655
+ // not the predicate (which is applied later)
1656
+ var axis = ast[1],
1657
+ nodeType = ast[2],
1658
+ nodeTypeNum = nodeTypes[nodeType],
1659
+ shouldLowerCase = true, // TODO: give option
1660
+ nodeName = ast[3] && shouldLowerCase ? ast[3].toLowerCase() : ast[3];
1661
+ nodeName = nodeName === '*' ? null : nodeName;
1662
+ if ('object' !== typeof ctx) return {nodes:[], pos:[]};
1663
+ var nodeList = ctx.nodes.slice(); // TODO: is copy needed?
1664
+ var r = axes[axis](nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
1665
+ return r;
1666
+ }
1667
+ }
1668
+ };
1669
+ var evaluate = xpath.evaluate = function evaluate(expr, doc, context) {
1670
+ //var astFactory = new AstEvaluatorFactory(doc, context);
1671
+ var stream = new Stream(expr);
1672
+ var ast = parse(stream, astFactory);
1673
+ var val = new Evaluator(doc).val(ast, {nodes: [context]});
1674
+ return val;
1675
+ }
1676
+
1677
+ /***************************************************************************
1678
+ * DOM interface *
1679
+ ***************************************************************************/
1680
+ var XPathException = xpath.XPathException = function XPathException(code, message) {
1681
+ var e = new Error(message);
1682
+ e.name = 'XPathException';
1683
+ e.code = code;
1684
+ return e;
1685
+ }
1686
+ XPathException.INVALID_EXPRESSION_ERR = 51;
1687
+ XPathException.TYPE_ERR = 52;
1688
+
1689
+
1690
+ var XPathEvaluator = xpath.XPathEvaluator = function XPathEvaluator() {}
1691
+ XPathEvaluator.prototype = {
1692
+ createExpression: function(expression, resolver) {
1693
+ return new XPathExpression(expression, resolver);
1694
+ },
1695
+ createNSResolver: function(nodeResolver) {
1696
+ // TODO
1697
+ },
1698
+ evaluate: function evaluate(expression, contextNode, resolver, type, result) {
1699
+ var expr = new XPathExpression(expression, resolver);
1700
+ return expr.evaluate(contextNode, type, result);
1701
+ }
1702
+ };
1703
+
1704
+
1705
+ var XPathExpression = xpath.XPathExpression = function XPathExpression(expression, resolver, optDoc) {
1706
+ var stream = new Stream(expression);
1707
+ this._ast = parse(stream, astFactory);
1708
+ this._doc = optDoc;
1709
+ }
1710
+ XPathExpression.prototype = {
1711
+ evaluate: function evaluate(contextNode, type, result) {
1712
+ if (null == contextNode.nodeType)
1713
+ throw new Error('bad argument (expected context node): ' + contextNode);
1714
+ var doc = contextNode.ownerDocument || contextNode;
1715
+ if (null != this._doc && this._doc !== doc) {
1716
+ throw new core.DOMException(
1717
+ core.DOMException.WRONG_DOCUMENT_ERR,
1718
+ 'The document must be the same as the context node\'s document.');
1719
+ }
1720
+ var evaluator = new Evaluator(doc);
1721
+ var value = evaluator.val(this._ast, {nodes: [contextNode]});
1722
+ if (XPathResult.NUMBER_TYPE === type)
1723
+ value = fn.number(value);
1724
+ else if (XPathResult.STRING_TYPE === type)
1725
+ value = fn.string(value);
1726
+ else if (XPathResult.BOOLEAN_TYPE === type)
1727
+ value = fn['boolean'](value);
1728
+ else if (XPathResult.ANY_TYPE !== type &&
1729
+ XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== type &&
1730
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== type &&
1731
+ XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== type &&
1732
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== type &&
1733
+ XPathResult.ANY_UNORDERED_NODE_TYPE !== type &&
1734
+ XPathResult.FIRST_ORDERED_NODE_TYPE !== type)
1735
+ throw new core.DOMException(
1736
+ core.DOMException.NOT_SUPPORTED_ERR,
1737
+ 'You must provide an XPath result type (0=any).');
1738
+ else if (XPathResult.ANY_TYPE !== type &&
1739
+ 'object' !== typeof value)
1740
+ throw new XPathException(
1741
+ XPathException.TYPE_ERR,
1742
+ 'Value should be a node-set: ' + value);
1743
+ return new XPathResult(doc, value, type);
1744
+ }
1745
+ }
1746
+
1747
+ var XPathResult = xpath.XPathResult = function XPathResult(doc, value, resultType) {
1748
+ this._value = value;
1749
+ this._resultType = resultType;
1750
+ this._i = 0;
1751
+
1752
+ // TODO: we removed mutation events but didn't take care of this. No tests fail, so that's nice, but eventually we
1753
+ // should fix this, preferably by entirely replacing our XPath implementation.
1754
+ // this._invalidated = false;
1755
+ // if (this.resultType === XPathResult.UNORDERED_NODE_ITERATOR_TYPE ||
1756
+ // this.resultType === XPathResult.ORDERED_NODE_ITERATOR_TYPE) {
1757
+ // doc.addEventListener('DOMSubtreeModified', invalidate, true);
1758
+ // var self = this;
1759
+ // function invalidate() {
1760
+ // self._invalidated = true;
1761
+ // doc.removeEventListener('DOMSubtreeModified', invalidate, true);
1762
+ // }
1763
+ // }
1764
+ }
1765
+ XPathResult.ANY_TYPE = 0;
1766
+ XPathResult.NUMBER_TYPE = 1;
1767
+ XPathResult.STRING_TYPE = 2;
1768
+ XPathResult.BOOLEAN_TYPE = 3;
1769
+ XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
1770
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
1771
+ XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
1772
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
1773
+ XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
1774
+ XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
1775
+ var proto = {
1776
+ // XPathResultType
1777
+ get resultType() {
1778
+ if (this._resultType) return this._resultType;
1779
+ switch (typeof this._value) {
1780
+ case 'number': return XPathResult.NUMBER_TYPE;
1781
+ case 'string': return XPathResult.STRING_TYPE;
1782
+ case 'boolean': return XPathResult.BOOLEAN_TYPE;
1783
+ default: return XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
1784
+ }
1785
+ },
1786
+ get numberValue() {
1787
+ if (XPathResult.NUMBER_TYPE !== this.resultType)
1788
+ throw new XPathException(XPathException.TYPE_ERR,
1789
+ 'You should have asked for a NUMBER_TYPE.');
1790
+ return this._value;
1791
+ },
1792
+ get stringValue() {
1793
+ if (XPathResult.STRING_TYPE !== this.resultType)
1794
+ throw new XPathException(XPathException.TYPE_ERR,
1795
+ 'You should have asked for a STRING_TYPE.');
1796
+ return this._value;
1797
+ },
1798
+ get booleanValue() {
1799
+ if (XPathResult.BOOLEAN_TYPE !== this.resultType)
1800
+ throw new XPathException(XPathException.TYPE_ERR,
1801
+ 'You should have asked for a BOOLEAN_TYPE.');
1802
+ return this._value;
1803
+ },
1804
+ get singleNodeValue() {
1805
+ if (XPathResult.ANY_UNORDERED_NODE_TYPE !== this.resultType &&
1806
+ XPathResult.FIRST_ORDERED_NODE_TYPE !== this.resultType)
1807
+ throw new XPathException(
1808
+ XPathException.TYPE_ERR,
1809
+ 'You should have asked for a FIRST_ORDERED_NODE_TYPE.');
1810
+ return this._value.nodes[0] || null;
1811
+ },
1812
+ get invalidIteratorState() {
1813
+ if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
1814
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
1815
+ return false;
1816
+ return !!this._invalidated;
1817
+ },
1818
+ get snapshotLength() {
1819
+ if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
1820
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
1821
+ throw new XPathException(
1822
+ XPathException.TYPE_ERR,
1823
+ 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
1824
+ return this._value.nodes.length;
1825
+ },
1826
+ iterateNext: function iterateNext() {
1827
+ if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
1828
+ XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
1829
+ throw new XPathException(
1830
+ XPathException.TYPE_ERR,
1831
+ 'You should have asked for a ORDERED_NODE_ITERATOR_TYPE.');
1832
+ if (this.invalidIteratorState)
1833
+ throw new core.DOMException(
1834
+ core.DOMException.INVALID_STATE_ERR,
1835
+ 'The document has been mutated since the result was returned');
1836
+ return this._value.nodes[this._i++] || null;
1837
+ },
1838
+ snapshotItem: function snapshotItem(index) {
1839
+ if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
1840
+ XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
1841
+ throw new XPathException(
1842
+ XPathException.TYPE_ERR,
1843
+ 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
1844
+ return this._value.nodes[index] || null;
1845
+ }
1846
+ };
1847
+ // so you can access ANY_TYPE etc. from the instances:
1848
+ XPathResult.prototype = Object.create(XPathResult,
1849
+ Object.keys(proto).reduce(function (descriptors, name) {
1850
+ descriptors[name] = Object.getOwnPropertyDescriptor(proto, name);
1851
+ return descriptors;
1852
+ }, {
1853
+ constructor: {
1854
+ value: XPathResult,
1855
+ writable: true,
1856
+ configurable: true
1857
+ }
1858
+ }));
1859
+
1860
+ core.XPathException = XPathException;
1861
+ core.XPathExpression = XPathExpression;
1862
+ core.XPathResult = XPathResult;
1863
+ core.XPathEvaluator = XPathEvaluator;
1864
+
1865
+ core.Document.prototype.createExpression =
1866
+ XPathEvaluator.prototype.createExpression;
1867
+
1868
+ core.Document.prototype.createNSResolver =
1869
+ XPathEvaluator.prototype.createNSResolver;
1870
+
1871
+ core.Document.prototype.evaluate = XPathEvaluator.prototype.evaluate;
1872
+
1873
+ return xpath; // for tests
1874
+ };