appmap 0.72.0 → 0.72.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3099) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -2
  3. data/CHANGELOG.md +30 -0
  4. data/Rakefile +6 -17
  5. data/appmap.gemspec +0 -6
  6. data/ext/appmap/extconf.rb +1 -1
  7. data/lib/appmap/builtin_hooks/json.yml +2 -2
  8. data/lib/appmap/builtin_hooks/marshal.yml +3 -7
  9. data/lib/appmap/builtin_hooks/psych.yml +16 -0
  10. data/lib/appmap/command/index.rb +1 -1
  11. data/lib/appmap/command/inspect.rb +1 -1
  12. data/lib/appmap/gem_hooks/activerecord.yml +2 -0
  13. data/lib/appmap/gem_hooks/rails.yml +2 -0
  14. data/lib/appmap/gem_hooks/railties.yml +2 -0
  15. data/lib/appmap/gem_hooks/sprockets.yml +2 -0
  16. data/lib/appmap/hook/method.rb +14 -2
  17. data/lib/appmap/node_cli.rb +2 -2
  18. data/lib/appmap/util.rb +9 -3
  19. data/lib/appmap/version.rb +1 -1
  20. data/package.json +1 -1
  21. data/release.sh +0 -1
  22. data/spec/fixtures/depends/revoke_api_key.appmap.json +3 -3
  23. data/spec/fixtures/depends/user_page_scenario.appmap.json +2 -2
  24. data/spec/fixtures/rails6_users_app/Dockerfile +8 -1
  25. data/spec/fixtures/rails6_users_app/package.json +8 -0
  26. data/spec/fixtures/rails6_users_app/yarn.lock +2020 -0
  27. data/spec/rails_recording_spec.rb +2 -1
  28. data/spec/swagger/swagger_spec.rb +66 -13
  29. data/yarn.lock +1253 -90
  30. metadata +8 -3071
  31. data/lib/appmap/builtin_hooks/yaml.yml +0 -23
  32. data/node_modules/@appland/appmap/CHANGELOG.md +0 -136
  33. data/node_modules/@appland/appmap/package.json +0 -50
  34. data/node_modules/@appland/appmap/src/agentInstaller/buildToolInstallerBase.js +0 -28
  35. data/node_modules/@appland/appmap/src/agentInstaller/commandStruct.js +0 -17
  36. data/node_modules/@appland/appmap/src/agentInstaller/installAgentStep.js +0 -30
  37. data/node_modules/@appland/appmap/src/agentInstaller/javaAgentInstaller.js +0 -321
  38. data/node_modules/@appland/appmap/src/agentInstaller/pythonAgentInstaller.js +0 -174
  39. data/node_modules/@appland/appmap/src/agentInstaller/rubyAgentInstaller.js +0 -129
  40. data/node_modules/@appland/appmap/src/agentInstaller/types.d.ts +0 -76
  41. data/node_modules/@appland/appmap/src/appMapCatalog.js +0 -39
  42. data/node_modules/@appland/appmap/src/appland/getAppMap.js +0 -55
  43. data/node_modules/@appland/appmap/src/appland/listAppMaps.js +0 -58
  44. data/node_modules/@appland/appmap/src/appland/settings.js +0 -62
  45. data/node_modules/@appland/appmap/src/appland/types.d.ts +0 -16
  46. data/node_modules/@appland/appmap/src/cli.js +0 -729
  47. data/node_modules/@appland/appmap/src/database.js +0 -197
  48. data/node_modules/@appland/appmap/src/depends.js +0 -157
  49. data/node_modules/@appland/appmap/src/errors/abortError.js +0 -5
  50. data/node_modules/@appland/appmap/src/errors/validationError.js +0 -5
  51. data/node_modules/@appland/appmap/src/fingerprint/algorithms.js +0 -71
  52. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/base.js +0 -58
  53. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/classDependencies.js +0 -36
  54. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/classes.js +0 -14
  55. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/eventTree.js +0 -19
  56. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/httpClientRequests.js +0 -18
  57. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/httpServerRequests.js +0 -18
  58. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/info.js +0 -55
  59. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/labels.js +0 -10
  60. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/packageDependencies.js +0 -36
  61. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/packages.js +0 -14
  62. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/sqlNormalized.js +0 -19
  63. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/sqlTables.js +0 -24
  64. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/trace.js +0 -57
  65. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/unique.js +0 -8
  66. data/node_modules/@appland/appmap/src/fingerprint/canonicalize/update.js +0 -85
  67. data/node_modules/@appland/appmap/src/fingerprint/canonicalize.js +0 -70
  68. data/node_modules/@appland/appmap/src/fingerprint/fingerprintDirectoryCommand.js +0 -30
  69. data/node_modules/@appland/appmap/src/fingerprint/fingerprintQueue.js +0 -30
  70. data/node_modules/@appland/appmap/src/fingerprint/fingerprintWatchCommand.js +0 -64
  71. data/node_modules/@appland/appmap/src/fingerprint/fingerprinter.js +0 -186
  72. data/node_modules/@appland/appmap/src/fingerprint/index.js +0 -24
  73. data/node_modules/@appland/appmap/src/functionStats.js +0 -168
  74. data/node_modules/@appland/appmap/src/inspect/fields.js +0 -66
  75. data/node_modules/@appland/appmap/src/inspect/filter.js +0 -105
  76. data/node_modules/@appland/appmap/src/inspect/home.js +0 -64
  77. data/node_modules/@appland/appmap/src/inspect/print.js +0 -231
  78. data/node_modules/@appland/appmap/src/inspect/reset.js +0 -10
  79. data/node_modules/@appland/appmap/src/inspect/types.d.ts +0 -11
  80. data/node_modules/@appland/appmap/src/inspect/undoFilter.js +0 -10
  81. data/node_modules/@appland/appmap/src/inspect.js +0 -7
  82. data/node_modules/@appland/appmap/src/inventoryCommand.js +0 -59
  83. data/node_modules/@appland/appmap/src/search/codeObjectMatcher.js +0 -75
  84. data/node_modules/@appland/appmap/src/search/constants.js +0 -5
  85. data/node_modules/@appland/appmap/src/search/findCodeObjects.js +0 -293
  86. data/node_modules/@appland/appmap/src/search/findEvents.js +0 -184
  87. data/node_modules/@appland/appmap/src/search/matchFilter.js +0 -65
  88. data/node_modules/@appland/appmap/src/search/matchSpec.js +0 -198
  89. data/node_modules/@appland/appmap/src/search/trigram.js +0 -107
  90. data/node_modules/@appland/appmap/src/search/types.d.ts +0 -107
  91. data/node_modules/@appland/appmap/src/search/utils.js +0 -4
  92. data/node_modules/@appland/appmap/src/swagger/README.md +0 -75
  93. data/node_modules/@appland/appmap/src/swagger/command.js +0 -42
  94. data/node_modules/@appland/appmap/src/swagger/method.js +0 -173
  95. data/node_modules/@appland/appmap/src/swagger/model.js +0 -54
  96. data/node_modules/@appland/appmap/src/swagger/path.js +0 -38
  97. data/node_modules/@appland/appmap/src/swagger/response.js +0 -34
  98. data/node_modules/@appland/appmap/src/swagger/schema.js +0 -38
  99. data/node_modules/@appland/appmap/src/swagger/securitySchemes.js +0 -60
  100. data/node_modules/@appland/appmap/src/swagger/settings.js +0 -9
  101. data/node_modules/@appland/appmap/src/swagger/util.js +0 -79
  102. data/node_modules/@appland/appmap/src/utils.js +0 -165
  103. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.js +0 -0
  104. data/node_modules/@appland/appmap/tests/unit/agentInstall/python.spec.js +0 -109
  105. data/node_modules/@appland/appmap/tests/unit/depends.spec.js +0 -63
  106. data/node_modules/@appland/appmap/tests/unit/fingerprint/canonicalize.spec.js +0 -42
  107. data/node_modules/@appland/appmap/tests/unit/fingerprint/sql.spec.js +0 -40
  108. data/node_modules/@appland/appmap/tests/unit/fixtures/python/pip/requirements.txt +0 -2
  109. data/node_modules/@appland/appmap/tests/unit/fixtures/python/poetry/poetry.lock +0 -2
  110. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/controllers/organizations_controller.rb +0 -1
  111. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/configuration.rb +0 -1
  112. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/show.rb +0 -1
  113. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/app/models/user.rb +0 -1
  114. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.info.json +0 -170
  115. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.trace.json +0 -213
  116. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/canonicalize/revoke_api_key.update.json +0 -54
  117. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/revoke_api_key.appmap.json +0 -884
  118. data/node_modules/@appland/appmap/tests/unit/fixtures/ruby/user_page_scenario.appmap.json +0 -1750
  119. data/node_modules/@appland/appmap/tests/unit/inspect.spec.js +0 -105
  120. data/node_modules/@appland/models/CHANGELOG.md +0 -90
  121. data/node_modules/@appland/models/README.md +0 -8
  122. data/node_modules/@appland/models/dist/index.cjs +0 -4250
  123. data/node_modules/@appland/models/dist/index.js +0 -4193
  124. data/node_modules/@appland/models/package.json +0 -50
  125. data/node_modules/@tootallnate/once/dist/index.d.ts +0 -14
  126. data/node_modules/@tootallnate/once/dist/index.js +0 -39
  127. data/node_modules/@tootallnate/once/dist/index.js.map +0 -1
  128. data/node_modules/@tootallnate/once/package.json +0 -45
  129. data/node_modules/abab/CHANGELOG.md +0 -45
  130. data/node_modules/abab/LICENSE.md +0 -13
  131. data/node_modules/abab/README.md +0 -51
  132. data/node_modules/abab/index.d.ts +0 -2
  133. data/node_modules/abab/index.js +0 -9
  134. data/node_modules/abab/lib/atob.js +0 -97
  135. data/node_modules/abab/lib/btoa.js +0 -58
  136. data/node_modules/abab/package.json +0 -42
  137. data/node_modules/acorn/CHANGELOG.md +0 -744
  138. data/node_modules/acorn/LICENSE +0 -21
  139. data/node_modules/acorn/README.md +0 -280
  140. data/node_modules/acorn/bin/acorn +0 -4
  141. data/node_modules/acorn/dist/acorn.d.ts +0 -211
  142. data/node_modules/acorn/dist/acorn.js +0 -5525
  143. data/node_modules/acorn/dist/acorn.mjs +0 -5494
  144. data/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
  145. data/node_modules/acorn/dist/bin.js +0 -65
  146. data/node_modules/acorn/package.json +0 -46
  147. data/node_modules/acorn-globals/LICENSE +0 -19
  148. data/node_modules/acorn-globals/README.md +0 -81
  149. data/node_modules/acorn-globals/index.js +0 -179
  150. data/node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md +0 -620
  151. data/node_modules/acorn-globals/node_modules/acorn/LICENSE +0 -21
  152. data/node_modules/acorn-globals/node_modules/acorn/README.md +0 -269
  153. data/node_modules/acorn-globals/node_modules/acorn/bin/acorn +0 -4
  154. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts +0 -209
  155. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js +0 -5186
  156. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map +0 -1
  157. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs +0 -5155
  158. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
  159. data/node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +0 -1
  160. data/node_modules/acorn-globals/node_modules/acorn/dist/bin.js +0 -64
  161. data/node_modules/acorn-globals/node_modules/acorn/package.json +0 -35
  162. data/node_modules/acorn-globals/package.json +0 -35
  163. data/node_modules/acorn-walk/CHANGELOG.md +0 -131
  164. data/node_modules/acorn-walk/LICENSE +0 -19
  165. data/node_modules/acorn-walk/README.md +0 -126
  166. data/node_modules/acorn-walk/dist/walk.d.ts +0 -112
  167. data/node_modules/acorn-walk/dist/walk.js +0 -463
  168. data/node_modules/acorn-walk/dist/walk.js.map +0 -1
  169. data/node_modules/acorn-walk/dist/walk.mjs +0 -443
  170. data/node_modules/acorn-walk/dist/walk.mjs.map +0 -1
  171. data/node_modules/acorn-walk/package.json +0 -34
  172. data/node_modules/agent-base/README.md +0 -145
  173. data/node_modules/agent-base/dist/src/index.d.ts +0 -78
  174. data/node_modules/agent-base/dist/src/index.js +0 -203
  175. data/node_modules/agent-base/dist/src/index.js.map +0 -1
  176. data/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
  177. data/node_modules/agent-base/dist/src/promisify.js +0 -18
  178. data/node_modules/agent-base/dist/src/promisify.js.map +0 -1
  179. data/node_modules/agent-base/package.json +0 -64
  180. data/node_modules/agent-base/src/index.ts +0 -345
  181. data/node_modules/agent-base/src/promisify.ts +0 -33
  182. data/node_modules/ansi-regex/index.d.ts +0 -37
  183. data/node_modules/ansi-regex/index.js +0 -10
  184. data/node_modules/ansi-regex/license +0 -9
  185. data/node_modules/ansi-regex/package.json +0 -55
  186. data/node_modules/ansi-regex/readme.md +0 -78
  187. data/node_modules/ansi-styles/index.d.ts +0 -345
  188. data/node_modules/ansi-styles/index.js +0 -163
  189. data/node_modules/ansi-styles/license +0 -9
  190. data/node_modules/ansi-styles/package.json +0 -56
  191. data/node_modules/ansi-styles/readme.md +0 -152
  192. data/node_modules/anymatch/LICENSE +0 -15
  193. data/node_modules/anymatch/README.md +0 -87
  194. data/node_modules/anymatch/index.d.ts +0 -19
  195. data/node_modules/anymatch/index.js +0 -104
  196. data/node_modules/anymatch/package.json +0 -48
  197. data/node_modules/argparse/CHANGELOG.md +0 -185
  198. data/node_modules/argparse/LICENSE +0 -21
  199. data/node_modules/argparse/README.md +0 -257
  200. data/node_modules/argparse/index.js +0 -3
  201. data/node_modules/argparse/lib/action/append/constant.js +0 -47
  202. data/node_modules/argparse/lib/action/append.js +0 -53
  203. data/node_modules/argparse/lib/action/count.js +0 -40
  204. data/node_modules/argparse/lib/action/help.js +0 -47
  205. data/node_modules/argparse/lib/action/store/constant.js +0 -43
  206. data/node_modules/argparse/lib/action/store/false.js +0 -27
  207. data/node_modules/argparse/lib/action/store/true.js +0 -26
  208. data/node_modules/argparse/lib/action/store.js +0 -50
  209. data/node_modules/argparse/lib/action/subparsers.js +0 -149
  210. data/node_modules/argparse/lib/action/version.js +0 -47
  211. data/node_modules/argparse/lib/action.js +0 -146
  212. data/node_modules/argparse/lib/action_container.js +0 -482
  213. data/node_modules/argparse/lib/argparse.js +0 -14
  214. data/node_modules/argparse/lib/argument/error.js +0 -50
  215. data/node_modules/argparse/lib/argument/exclusive.js +0 -54
  216. data/node_modules/argparse/lib/argument/group.js +0 -75
  217. data/node_modules/argparse/lib/argument_parser.js +0 -1161
  218. data/node_modules/argparse/lib/const.js +0 -21
  219. data/node_modules/argparse/lib/help/added_formatters.js +0 -87
  220. data/node_modules/argparse/lib/help/formatter.js +0 -795
  221. data/node_modules/argparse/lib/namespace.js +0 -76
  222. data/node_modules/argparse/lib/utils.js +0 -57
  223. data/node_modules/argparse/package.json +0 -34
  224. data/node_modules/async/CHANGELOG.md +0 -331
  225. data/node_modules/async/LICENSE +0 -19
  226. data/node_modules/async/README.md +0 -60
  227. data/node_modules/async/all.js +0 -54
  228. data/node_modules/async/allLimit.js +0 -46
  229. data/node_modules/async/allSeries.js +0 -45
  230. data/node_modules/async/any.js +0 -56
  231. data/node_modules/async/anyLimit.js +0 -47
  232. data/node_modules/async/anySeries.js +0 -46
  233. data/node_modules/async/apply.js +0 -55
  234. data/node_modules/async/applyEach.js +0 -57
  235. data/node_modules/async/applyEachSeries.js +0 -37
  236. data/node_modules/async/asyncify.js +0 -118
  237. data/node_modules/async/auto.js +0 -267
  238. data/node_modules/async/autoInject.js +0 -156
  239. data/node_modules/async/bower.json +0 -17
  240. data/node_modules/async/cargo.js +0 -63
  241. data/node_modules/async/cargoQueue.js +0 -71
  242. data/node_modules/async/compose.js +0 -55
  243. data/node_modules/async/concat.js +0 -47
  244. data/node_modules/async/concatLimit.js +0 -60
  245. data/node_modules/async/concatSeries.js +0 -41
  246. data/node_modules/async/constant.js +0 -55
  247. data/node_modules/async/detect.js +0 -61
  248. data/node_modules/async/detectLimit.js +0 -48
  249. data/node_modules/async/detectSeries.js +0 -47
  250. data/node_modules/async/dir.js +0 -43
  251. data/node_modules/async/dist/async.js +0 -4846
  252. data/node_modules/async/dist/async.min.js +0 -1
  253. data/node_modules/async/dist/async.mjs +0 -4734
  254. data/node_modules/async/doDuring.js +0 -68
  255. data/node_modules/async/doUntil.js +0 -46
  256. data/node_modules/async/doWhilst.js +0 -68
  257. data/node_modules/async/during.js +0 -78
  258. data/node_modules/async/each.js +0 -88
  259. data/node_modules/async/eachLimit.js +0 -50
  260. data/node_modules/async/eachOf.js +0 -116
  261. data/node_modules/async/eachOfLimit.js +0 -47
  262. data/node_modules/async/eachOfSeries.js +0 -39
  263. data/node_modules/async/eachSeries.js +0 -44
  264. data/node_modules/async/ensureAsync.js +0 -67
  265. data/node_modules/async/every.js +0 -54
  266. data/node_modules/async/everyLimit.js +0 -46
  267. data/node_modules/async/everySeries.js +0 -45
  268. data/node_modules/async/filter.js +0 -53
  269. data/node_modules/async/filterLimit.js +0 -45
  270. data/node_modules/async/filterSeries.js +0 -43
  271. data/node_modules/async/find.js +0 -61
  272. data/node_modules/async/findLimit.js +0 -48
  273. data/node_modules/async/findSeries.js +0 -47
  274. data/node_modules/async/flatMap.js +0 -47
  275. data/node_modules/async/flatMapLimit.js +0 -60
  276. data/node_modules/async/flatMapSeries.js +0 -41
  277. data/node_modules/async/foldl.js +0 -77
  278. data/node_modules/async/foldr.js +0 -41
  279. data/node_modules/async/forEach.js +0 -88
  280. data/node_modules/async/forEachLimit.js +0 -50
  281. data/node_modules/async/forEachOf.js +0 -116
  282. data/node_modules/async/forEachOfLimit.js +0 -47
  283. data/node_modules/async/forEachOfSeries.js +0 -39
  284. data/node_modules/async/forEachSeries.js +0 -44
  285. data/node_modules/async/forever.js +0 -68
  286. data/node_modules/async/groupBy.js +0 -54
  287. data/node_modules/async/groupByLimit.js +0 -71
  288. data/node_modules/async/groupBySeries.js +0 -36
  289. data/node_modules/async/index.js +0 -588
  290. data/node_modules/async/inject.js +0 -77
  291. data/node_modules/async/internal/DoublyLinkedList.js +0 -92
  292. data/node_modules/async/internal/Heap.js +0 -120
  293. data/node_modules/async/internal/applyEach.js +0 -29
  294. data/node_modules/async/internal/asyncEachOfLimit.js +0 -75
  295. data/node_modules/async/internal/awaitify.js +0 -27
  296. data/node_modules/async/internal/breakLoop.js +0 -10
  297. data/node_modules/async/internal/consoleFunc.js +0 -27
  298. data/node_modules/async/internal/createTester.js +0 -40
  299. data/node_modules/async/internal/eachOfLimit.js +0 -90
  300. data/node_modules/async/internal/filter.js +0 -55
  301. data/node_modules/async/internal/getIterator.js +0 -11
  302. data/node_modules/async/internal/initialParams.js +0 -14
  303. data/node_modules/async/internal/isArrayLike.js +0 -10
  304. data/node_modules/async/internal/iterator.js +0 -54
  305. data/node_modules/async/internal/map.js +0 -30
  306. data/node_modules/async/internal/once.js +0 -17
  307. data/node_modules/async/internal/onlyOnce.js +0 -15
  308. data/node_modules/async/internal/parallel.js +0 -34
  309. data/node_modules/async/internal/promiseCallback.js +0 -23
  310. data/node_modules/async/internal/queue.js +0 -291
  311. data/node_modules/async/internal/range.js +0 -14
  312. data/node_modules/async/internal/reject.js +0 -26
  313. data/node_modules/async/internal/setImmediate.js +0 -30
  314. data/node_modules/async/internal/withoutIndex.js +0 -10
  315. data/node_modules/async/internal/wrapAsync.js +0 -34
  316. data/node_modules/async/log.js +0 -41
  317. data/node_modules/async/map.js +0 -62
  318. data/node_modules/async/mapLimit.js +0 -45
  319. data/node_modules/async/mapSeries.js +0 -44
  320. data/node_modules/async/mapValues.js +0 -62
  321. data/node_modules/async/mapValuesLimit.js +0 -61
  322. data/node_modules/async/mapValuesSeries.js +0 -37
  323. data/node_modules/async/memoize.js +0 -91
  324. data/node_modules/async/nextTick.js +0 -52
  325. data/node_modules/async/package.json +0 -82
  326. data/node_modules/async/parallel.js +0 -91
  327. data/node_modules/async/parallelLimit.js +0 -41
  328. data/node_modules/async/priorityQueue.js +0 -84
  329. data/node_modules/async/queue.js +0 -167
  330. data/node_modules/async/race.js +0 -67
  331. data/node_modules/async/reduce.js +0 -77
  332. data/node_modules/async/reduceRight.js +0 -41
  333. data/node_modules/async/reflect.js +0 -78
  334. data/node_modules/async/reflectAll.js +0 -93
  335. data/node_modules/async/reject.js +0 -53
  336. data/node_modules/async/rejectLimit.js +0 -45
  337. data/node_modules/async/rejectSeries.js +0 -43
  338. data/node_modules/async/retry.js +0 -159
  339. data/node_modules/async/retryable.js +0 -77
  340. data/node_modules/async/select.js +0 -53
  341. data/node_modules/async/selectLimit.js +0 -45
  342. data/node_modules/async/selectSeries.js +0 -43
  343. data/node_modules/async/seq.js +0 -79
  344. data/node_modules/async/series.js +0 -86
  345. data/node_modules/async/setImmediate.js +0 -45
  346. data/node_modules/async/some.js +0 -56
  347. data/node_modules/async/someLimit.js +0 -47
  348. data/node_modules/async/someSeries.js +0 -46
  349. data/node_modules/async/sortBy.js +0 -88
  350. data/node_modules/async/timeout.js +0 -89
  351. data/node_modules/async/times.js +0 -50
  352. data/node_modules/async/timesLimit.js +0 -43
  353. data/node_modules/async/timesSeries.js +0 -32
  354. data/node_modules/async/transform.js +0 -81
  355. data/node_modules/async/tryEach.js +0 -78
  356. data/node_modules/async/unmemoize.js +0 -25
  357. data/node_modules/async/until.js +0 -61
  358. data/node_modules/async/waterfall.js +0 -105
  359. data/node_modules/async/whilst.js +0 -78
  360. data/node_modules/async/wrapSync.js +0 -118
  361. data/node_modules/asynckit/LICENSE +0 -21
  362. data/node_modules/asynckit/README.md +0 -233
  363. data/node_modules/asynckit/bench.js +0 -76
  364. data/node_modules/asynckit/index.js +0 -6
  365. data/node_modules/asynckit/lib/abort.js +0 -29
  366. data/node_modules/asynckit/lib/async.js +0 -34
  367. data/node_modules/asynckit/lib/defer.js +0 -26
  368. data/node_modules/asynckit/lib/iterate.js +0 -75
  369. data/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  370. data/node_modules/asynckit/lib/readable_parallel.js +0 -25
  371. data/node_modules/asynckit/lib/readable_serial.js +0 -25
  372. data/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  373. data/node_modules/asynckit/lib/state.js +0 -37
  374. data/node_modules/asynckit/lib/streamify.js +0 -141
  375. data/node_modules/asynckit/lib/terminator.js +0 -29
  376. data/node_modules/asynckit/package.json +0 -63
  377. data/node_modules/asynckit/parallel.js +0 -43
  378. data/node_modules/asynckit/serial.js +0 -17
  379. data/node_modules/asynckit/serialOrdered.js +0 -75
  380. data/node_modules/asynckit/stream.js +0 -21
  381. data/node_modules/at-least-node/LICENSE +0 -6
  382. data/node_modules/at-least-node/README.md +0 -25
  383. data/node_modules/at-least-node/index.js +0 -5
  384. data/node_modules/at-least-node/package.json +0 -32
  385. data/node_modules/balanced-match/LICENSE.md +0 -21
  386. data/node_modules/balanced-match/README.md +0 -97
  387. data/node_modules/balanced-match/index.js +0 -62
  388. data/node_modules/balanced-match/package.json +0 -48
  389. data/node_modules/binary-extensions/binary-extensions.json +0 -260
  390. data/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  391. data/node_modules/binary-extensions/index.d.ts +0 -14
  392. data/node_modules/binary-extensions/index.js +0 -1
  393. data/node_modules/binary-extensions/license +0 -9
  394. data/node_modules/binary-extensions/package.json +0 -38
  395. data/node_modules/binary-extensions/readme.md +0 -41
  396. data/node_modules/brace-expansion/LICENSE +0 -21
  397. data/node_modules/brace-expansion/README.md +0 -129
  398. data/node_modules/brace-expansion/index.js +0 -201
  399. data/node_modules/brace-expansion/package.json +0 -47
  400. data/node_modules/braces/CHANGELOG.md +0 -184
  401. data/node_modules/braces/LICENSE +0 -21
  402. data/node_modules/braces/README.md +0 -593
  403. data/node_modules/braces/index.js +0 -170
  404. data/node_modules/braces/lib/compile.js +0 -57
  405. data/node_modules/braces/lib/constants.js +0 -57
  406. data/node_modules/braces/lib/expand.js +0 -113
  407. data/node_modules/braces/lib/parse.js +0 -333
  408. data/node_modules/braces/lib/stringify.js +0 -32
  409. data/node_modules/braces/lib/utils.js +0 -112
  410. data/node_modules/braces/package.json +0 -77
  411. data/node_modules/browser-process-hrtime/LICENSE +0 -9
  412. data/node_modules/browser-process-hrtime/README.md +0 -27
  413. data/node_modules/browser-process-hrtime/index.d.ts +0 -4
  414. data/node_modules/browser-process-hrtime/index.js +0 -28
  415. data/node_modules/browser-process-hrtime/package.json +0 -15
  416. data/node_modules/chokidar/LICENSE +0 -21
  417. data/node_modules/chokidar/README.md +0 -308
  418. data/node_modules/chokidar/index.js +0 -973
  419. data/node_modules/chokidar/lib/constants.js +0 -65
  420. data/node_modules/chokidar/lib/fsevents-handler.js +0 -524
  421. data/node_modules/chokidar/lib/nodefs-handler.js +0 -646
  422. data/node_modules/chokidar/package.json +0 -78
  423. data/node_modules/chokidar/types/index.d.ts +0 -187
  424. data/node_modules/cli-progress/CHANGES.md +0 -169
  425. data/node_modules/cli-progress/LICENSE.md +0 -24
  426. data/node_modules/cli-progress/README.md +0 -446
  427. data/node_modules/cli-progress/cli-progress.js +0 -21
  428. data/node_modules/cli-progress/lib/eta.js +0 -73
  429. data/node_modules/cli-progress/lib/format-bar.js +0 -11
  430. data/node_modules/cli-progress/lib/format-time.js +0 -34
  431. data/node_modules/cli-progress/lib/format-value.js +0 -22
  432. data/node_modules/cli-progress/lib/formatter.js +0 -80
  433. data/node_modules/cli-progress/lib/generic-bar.js +0 -212
  434. data/node_modules/cli-progress/lib/multi-bar.js +0 -201
  435. data/node_modules/cli-progress/lib/options.js +0 -95
  436. data/node_modules/cli-progress/lib/single-bar.js +0 -124
  437. data/node_modules/cli-progress/lib/terminal.js +0 -159
  438. data/node_modules/cli-progress/package.json +0 -46
  439. data/node_modules/cli-progress/presets/index.js +0 -11
  440. data/node_modules/cli-progress/presets/legacy.js +0 -6
  441. data/node_modules/cli-progress/presets/rect.js +0 -5
  442. data/node_modules/cli-progress/presets/shades-classic.js +0 -6
  443. data/node_modules/cli-progress/presets/shades-grey.js +0 -8
  444. data/node_modules/cliui/CHANGELOG.md +0 -121
  445. data/node_modules/cliui/LICENSE.txt +0 -14
  446. data/node_modules/cliui/README.md +0 -141
  447. data/node_modules/cliui/build/index.cjs +0 -302
  448. data/node_modules/cliui/build/lib/index.js +0 -287
  449. data/node_modules/cliui/build/lib/string-utils.js +0 -27
  450. data/node_modules/cliui/index.mjs +0 -13
  451. data/node_modules/cliui/package.json +0 -83
  452. data/node_modules/color-convert/CHANGELOG.md +0 -54
  453. data/node_modules/color-convert/LICENSE +0 -21
  454. data/node_modules/color-convert/README.md +0 -68
  455. data/node_modules/color-convert/conversions.js +0 -839
  456. data/node_modules/color-convert/index.js +0 -81
  457. data/node_modules/color-convert/package.json +0 -48
  458. data/node_modules/color-convert/route.js +0 -97
  459. data/node_modules/color-name/LICENSE +0 -8
  460. data/node_modules/color-name/README.md +0 -11
  461. data/node_modules/color-name/index.js +0 -152
  462. data/node_modules/color-name/package.json +0 -28
  463. data/node_modules/colors/LICENSE +0 -25
  464. data/node_modules/colors/README.md +0 -221
  465. data/node_modules/colors/examples/normal-usage.js +0 -82
  466. data/node_modules/colors/examples/safe-string.js +0 -79
  467. data/node_modules/colors/index.d.ts +0 -136
  468. data/node_modules/colors/lib/colors.js +0 -211
  469. data/node_modules/colors/lib/custom/trap.js +0 -46
  470. data/node_modules/colors/lib/custom/zalgo.js +0 -110
  471. data/node_modules/colors/lib/extendStringPrototype.js +0 -110
  472. data/node_modules/colors/lib/index.js +0 -13
  473. data/node_modules/colors/lib/maps/america.js +0 -10
  474. data/node_modules/colors/lib/maps/rainbow.js +0 -12
  475. data/node_modules/colors/lib/maps/random.js +0 -11
  476. data/node_modules/colors/lib/maps/zebra.js +0 -5
  477. data/node_modules/colors/lib/styles.js +0 -95
  478. data/node_modules/colors/lib/system/has-flag.js +0 -35
  479. data/node_modules/colors/lib/system/supports-colors.js +0 -151
  480. data/node_modules/colors/package.json +0 -45
  481. data/node_modules/colors/safe.d.ts +0 -48
  482. data/node_modules/colors/safe.js +0 -10
  483. data/node_modules/colors/themes/generic-logging.js +0 -12
  484. data/node_modules/combined-stream/License +0 -19
  485. data/node_modules/combined-stream/Readme.md +0 -138
  486. data/node_modules/combined-stream/lib/combined_stream.js +0 -208
  487. data/node_modules/combined-stream/package.json +0 -25
  488. data/node_modules/combined-stream/yarn.lock +0 -17
  489. data/node_modules/concat-map/LICENSE +0 -18
  490. data/node_modules/concat-map/README.markdown +0 -62
  491. data/node_modules/concat-map/example/map.js +0 -6
  492. data/node_modules/concat-map/index.js +0 -13
  493. data/node_modules/concat-map/package.json +0 -43
  494. data/node_modules/concat-map/test/map.js +0 -39
  495. data/node_modules/console-table-printer/CHANGELOG.md +0 -96
  496. data/node_modules/console-table-printer/LICENSE +0 -21
  497. data/node_modules/console-table-printer/README.md +0 -180
  498. data/node_modules/console-table-printer/dist/index.d.ts +0 -4
  499. data/node_modules/console-table-printer/dist/index.js +0 -10
  500. data/node_modules/console-table-printer/dist/src/console-table-printer.d.ts +0 -14
  501. data/node_modules/console-table-printer/dist/src/console-table-printer.js +0 -32
  502. data/node_modules/console-table-printer/dist/src/internalTable/input-converter.d.ts +0 -6
  503. data/node_modules/console-table-printer/dist/src/internalTable/input-converter.js +0 -15
  504. data/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.d.ts +0 -4
  505. data/node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.js +0 -115
  506. data/node_modules/console-table-printer/dist/src/internalTable/internal-table.d.ts +0 -25
  507. data/node_modules/console-table-printer/dist/src/internalTable/internal-table.js +0 -80
  508. data/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.d.ts +0 -3
  509. data/node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.js +0 -43
  510. data/node_modules/console-table-printer/dist/src/models/common.d.ts +0 -10
  511. data/node_modules/console-table-printer/dist/src/models/common.js +0 -2
  512. data/node_modules/console-table-printer/dist/src/models/external-table.d.ts +0 -26
  513. data/node_modules/console-table-printer/dist/src/models/external-table.js +0 -2
  514. data/node_modules/console-table-printer/dist/src/models/internal-table.d.ts +0 -21
  515. data/node_modules/console-table-printer/dist/src/models/internal-table.js +0 -2
  516. data/node_modules/console-table-printer/dist/src/utils/colored-console-line.d.ts +0 -8
  517. data/node_modules/console-table-printer/dist/src/utils/colored-console-line.js +0 -29
  518. data/node_modules/console-table-printer/dist/src/utils/console-utils.d.ts +0 -2
  519. data/node_modules/console-table-printer/dist/src/utils/console-utils.js +0 -8
  520. data/node_modules/console-table-printer/dist/src/utils/string-utils.d.ts +0 -4
  521. data/node_modules/console-table-printer/dist/src/utils/string-utils.js +0 -54
  522. data/node_modules/console-table-printer/dist/src/utils/table-constants.d.ts +0 -10
  523. data/node_modules/console-table-printer/dist/src/utils/table-constants.js +0 -49
  524. data/node_modules/console-table-printer/dist/src/utils/table-helpers.d.ts +0 -26
  525. data/node_modules/console-table-printer/dist/src/utils/table-helpers.js +0 -91
  526. data/node_modules/console-table-printer/package.json +0 -51
  527. data/node_modules/cross-env/CHANGELOG.md +0 -5
  528. data/node_modules/cross-env/LICENSE +0 -20
  529. data/node_modules/cross-env/README.md +0 -291
  530. data/node_modules/cross-env/package.json +0 -54
  531. data/node_modules/cross-env/src/bin/cross-env-shell.js +0 -5
  532. data/node_modules/cross-env/src/bin/cross-env.js +0 -5
  533. data/node_modules/cross-env/src/command.js +0 -32
  534. data/node_modules/cross-env/src/index.js +0 -95
  535. data/node_modules/cross-env/src/is-windows.js +0 -2
  536. data/node_modules/cross-env/src/variable.js +0 -69
  537. data/node_modules/cross-spawn/CHANGELOG.md +0 -130
  538. data/node_modules/cross-spawn/LICENSE +0 -21
  539. data/node_modules/cross-spawn/README.md +0 -96
  540. data/node_modules/cross-spawn/index.js +0 -39
  541. data/node_modules/cross-spawn/lib/enoent.js +0 -59
  542. data/node_modules/cross-spawn/lib/parse.js +0 -91
  543. data/node_modules/cross-spawn/lib/util/escape.js +0 -45
  544. data/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  545. data/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  546. data/node_modules/cross-spawn/package.json +0 -73
  547. data/node_modules/crypto-js/CONTRIBUTING.md +0 -28
  548. data/node_modules/crypto-js/LICENSE +0 -24
  549. data/node_modules/crypto-js/README.md +0 -249
  550. data/node_modules/crypto-js/aes.js +0 -234
  551. data/node_modules/crypto-js/bower.json +0 -35
  552. data/node_modules/crypto-js/cipher-core.js +0 -890
  553. data/node_modules/crypto-js/core.js +0 -797
  554. data/node_modules/crypto-js/crypto-js.js +0 -6059
  555. data/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
  556. data/node_modules/crypto-js/enc-base64.js +0 -136
  557. data/node_modules/crypto-js/enc-hex.js +0 -18
  558. data/node_modules/crypto-js/enc-latin1.js +0 -18
  559. data/node_modules/crypto-js/enc-utf16.js +0 -149
  560. data/node_modules/crypto-js/enc-utf8.js +0 -18
  561. data/node_modules/crypto-js/evpkdf.js +0 -134
  562. data/node_modules/crypto-js/format-hex.js +0 -66
  563. data/node_modules/crypto-js/format-openssl.js +0 -18
  564. data/node_modules/crypto-js/hmac-md5.js +0 -18
  565. data/node_modules/crypto-js/hmac-ripemd160.js +0 -18
  566. data/node_modules/crypto-js/hmac-sha1.js +0 -18
  567. data/node_modules/crypto-js/hmac-sha224.js +0 -18
  568. data/node_modules/crypto-js/hmac-sha256.js +0 -18
  569. data/node_modules/crypto-js/hmac-sha3.js +0 -18
  570. data/node_modules/crypto-js/hmac-sha384.js +0 -18
  571. data/node_modules/crypto-js/hmac-sha512.js +0 -18
  572. data/node_modules/crypto-js/hmac.js +0 -143
  573. data/node_modules/crypto-js/index.js +0 -18
  574. data/node_modules/crypto-js/lib-typedarrays.js +0 -76
  575. data/node_modules/crypto-js/md5.js +0 -268
  576. data/node_modules/crypto-js/mode-cfb.js +0 -80
  577. data/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
  578. data/node_modules/crypto-js/mode-ctr.js +0 -58
  579. data/node_modules/crypto-js/mode-ecb.js +0 -40
  580. data/node_modules/crypto-js/mode-ofb.js +0 -54
  581. data/node_modules/crypto-js/package.json +0 -38
  582. data/node_modules/crypto-js/pad-ansix923.js +0 -49
  583. data/node_modules/crypto-js/pad-iso10126.js +0 -44
  584. data/node_modules/crypto-js/pad-iso97971.js +0 -40
  585. data/node_modules/crypto-js/pad-nopadding.js +0 -30
  586. data/node_modules/crypto-js/pad-pkcs7.js +0 -18
  587. data/node_modules/crypto-js/pad-zeropadding.js +0 -47
  588. data/node_modules/crypto-js/pbkdf2.js +0 -145
  589. data/node_modules/crypto-js/rabbit-legacy.js +0 -190
  590. data/node_modules/crypto-js/rabbit.js +0 -192
  591. data/node_modules/crypto-js/rc4.js +0 -139
  592. data/node_modules/crypto-js/ripemd160.js +0 -267
  593. data/node_modules/crypto-js/sha1.js +0 -150
  594. data/node_modules/crypto-js/sha224.js +0 -80
  595. data/node_modules/crypto-js/sha256.js +0 -199
  596. data/node_modules/crypto-js/sha3.js +0 -326
  597. data/node_modules/crypto-js/sha384.js +0 -83
  598. data/node_modules/crypto-js/sha512.js +0 -326
  599. data/node_modules/crypto-js/tripledes.js +0 -779
  600. data/node_modules/crypto-js/x64-core.js +0 -304
  601. data/node_modules/cssom/LICENSE.txt +0 -20
  602. data/node_modules/cssom/README.mdown +0 -67
  603. data/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
  604. data/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
  605. data/node_modules/cssom/lib/CSSHostRule.js +0 -37
  606. data/node_modules/cssom/lib/CSSImportRule.js +0 -132
  607. data/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
  608. data/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
  609. data/node_modules/cssom/lib/CSSMediaRule.js +0 -41
  610. data/node_modules/cssom/lib/CSSOM.js +0 -3
  611. data/node_modules/cssom/lib/CSSRule.js +0 -43
  612. data/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
  613. data/node_modules/cssom/lib/CSSStyleRule.js +0 -190
  614. data/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
  615. data/node_modules/cssom/lib/CSSSupportsRule.js +0 -36
  616. data/node_modules/cssom/lib/CSSValue.js +0 -43
  617. data/node_modules/cssom/lib/CSSValueExpression.js +0 -344
  618. data/node_modules/cssom/lib/MatcherList.js +0 -62
  619. data/node_modules/cssom/lib/MediaList.js +0 -61
  620. data/node_modules/cssom/lib/StyleSheet.js +0 -17
  621. data/node_modules/cssom/lib/clone.js +0 -71
  622. data/node_modules/cssom/lib/index.js +0 -21
  623. data/node_modules/cssom/lib/parse.js +0 -463
  624. data/node_modules/cssom/package.json +0 -18
  625. data/node_modules/cssstyle/LICENSE +0 -20
  626. data/node_modules/cssstyle/README.md +0 -15
  627. data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +0 -260
  628. data/node_modules/cssstyle/lib/CSSStyleDeclaration.test.js +0 -556
  629. data/node_modules/cssstyle/lib/allExtraProperties.js +0 -67
  630. data/node_modules/cssstyle/lib/allProperties.js +0 -462
  631. data/node_modules/cssstyle/lib/allWebkitProperties.js +0 -194
  632. data/node_modules/cssstyle/lib/constants.js +0 -6
  633. data/node_modules/cssstyle/lib/implementedProperties.js +0 -90
  634. data/node_modules/cssstyle/lib/named_colors.json +0 -152
  635. data/node_modules/cssstyle/lib/parsers.js +0 -722
  636. data/node_modules/cssstyle/lib/parsers.test.js +0 -139
  637. data/node_modules/cssstyle/lib/properties/azimuth.js +0 -67
  638. data/node_modules/cssstyle/lib/properties/background.js +0 -19
  639. data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +0 -24
  640. data/node_modules/cssstyle/lib/properties/backgroundColor.js +0 -36
  641. data/node_modules/cssstyle/lib/properties/backgroundImage.js +0 -32
  642. data/node_modules/cssstyle/lib/properties/backgroundPosition.js +0 -58
  643. data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +0 -32
  644. data/node_modules/cssstyle/lib/properties/border.js +0 -33
  645. data/node_modules/cssstyle/lib/properties/borderBottom.js +0 -17
  646. data/node_modules/cssstyle/lib/properties/borderBottomColor.js +0 -16
  647. data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +0 -21
  648. data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +0 -16
  649. data/node_modules/cssstyle/lib/properties/borderCollapse.js +0 -26
  650. data/node_modules/cssstyle/lib/properties/borderColor.js +0 -30
  651. data/node_modules/cssstyle/lib/properties/borderLeft.js +0 -17
  652. data/node_modules/cssstyle/lib/properties/borderLeftColor.js +0 -16
  653. data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +0 -21
  654. data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +0 -16
  655. data/node_modules/cssstyle/lib/properties/borderRight.js +0 -17
  656. data/node_modules/cssstyle/lib/properties/borderRightColor.js +0 -16
  657. data/node_modules/cssstyle/lib/properties/borderRightStyle.js +0 -21
  658. data/node_modules/cssstyle/lib/properties/borderRightWidth.js +0 -16
  659. data/node_modules/cssstyle/lib/properties/borderSpacing.js +0 -41
  660. data/node_modules/cssstyle/lib/properties/borderStyle.js +0 -38
  661. data/node_modules/cssstyle/lib/properties/borderTop.js +0 -17
  662. data/node_modules/cssstyle/lib/properties/borderTopColor.js +0 -16
  663. data/node_modules/cssstyle/lib/properties/borderTopStyle.js +0 -21
  664. data/node_modules/cssstyle/lib/properties/borderTopWidth.js +0 -17
  665. data/node_modules/cssstyle/lib/properties/borderWidth.js +0 -46
  666. data/node_modules/cssstyle/lib/properties/bottom.js +0 -14
  667. data/node_modules/cssstyle/lib/properties/clear.js +0 -16
  668. data/node_modules/cssstyle/lib/properties/clip.js +0 -47
  669. data/node_modules/cssstyle/lib/properties/color.js +0 -14
  670. data/node_modules/cssstyle/lib/properties/cssFloat.js +0 -12
  671. data/node_modules/cssstyle/lib/properties/flex.js +0 -45
  672. data/node_modules/cssstyle/lib/properties/flexBasis.js +0 -28
  673. data/node_modules/cssstyle/lib/properties/flexGrow.js +0 -19
  674. data/node_modules/cssstyle/lib/properties/flexShrink.js +0 -19
  675. data/node_modules/cssstyle/lib/properties/float.js +0 -12
  676. data/node_modules/cssstyle/lib/properties/floodColor.js +0 -14
  677. data/node_modules/cssstyle/lib/properties/font.js +0 -43
  678. data/node_modules/cssstyle/lib/properties/fontFamily.js +0 -33
  679. data/node_modules/cssstyle/lib/properties/fontSize.js +0 -38
  680. data/node_modules/cssstyle/lib/properties/fontStyle.js +0 -18
  681. data/node_modules/cssstyle/lib/properties/fontVariant.js +0 -18
  682. data/node_modules/cssstyle/lib/properties/fontWeight.js +0 -33
  683. data/node_modules/cssstyle/lib/properties/height.js +0 -24
  684. data/node_modules/cssstyle/lib/properties/left.js +0 -14
  685. data/node_modules/cssstyle/lib/properties/lightingColor.js +0 -14
  686. data/node_modules/cssstyle/lib/properties/lineHeight.js +0 -26
  687. data/node_modules/cssstyle/lib/properties/margin.js +0 -68
  688. data/node_modules/cssstyle/lib/properties/marginBottom.js +0 -13
  689. data/node_modules/cssstyle/lib/properties/marginLeft.js +0 -13
  690. data/node_modules/cssstyle/lib/properties/marginRight.js +0 -13
  691. data/node_modules/cssstyle/lib/properties/marginTop.js +0 -13
  692. data/node_modules/cssstyle/lib/properties/opacity.js +0 -14
  693. data/node_modules/cssstyle/lib/properties/outlineColor.js +0 -14
  694. data/node_modules/cssstyle/lib/properties/padding.js +0 -61
  695. data/node_modules/cssstyle/lib/properties/paddingBottom.js +0 -13
  696. data/node_modules/cssstyle/lib/properties/paddingLeft.js +0 -13
  697. data/node_modules/cssstyle/lib/properties/paddingRight.js +0 -13
  698. data/node_modules/cssstyle/lib/properties/paddingTop.js +0 -13
  699. data/node_modules/cssstyle/lib/properties/right.js +0 -14
  700. data/node_modules/cssstyle/lib/properties/stopColor.js +0 -14
  701. data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +0 -14
  702. data/node_modules/cssstyle/lib/properties/textOverlineColor.js +0 -14
  703. data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +0 -14
  704. data/node_modules/cssstyle/lib/properties/top.js +0 -14
  705. data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +0 -14
  706. data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +0 -14
  707. data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +0 -14
  708. data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +0 -14
  709. data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +0 -14
  710. data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
  711. data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +0 -14
  712. data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +0 -14
  713. data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +0 -14
  714. data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +0 -14
  715. data/node_modules/cssstyle/lib/properties/width.js +0 -24
  716. data/node_modules/cssstyle/lib/properties.js +0 -1833
  717. data/node_modules/cssstyle/lib/utils/colorSpace.js +0 -21
  718. data/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js +0 -14
  719. data/node_modules/cssstyle/node_modules/cssom/LICENSE.txt +0 -20
  720. data/node_modules/cssstyle/node_modules/cssom/README.mdown +0 -67
  721. data/node_modules/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
  722. data/node_modules/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
  723. data/node_modules/cssstyle/node_modules/cssom/lib/CSSHostRule.js +0 -37
  724. data/node_modules/cssstyle/node_modules/cssom/lib/CSSImportRule.js +0 -132
  725. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
  726. data/node_modules/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
  727. data/node_modules/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +0 -41
  728. data/node_modules/cssstyle/node_modules/cssom/lib/CSSOM.js +0 -3
  729. data/node_modules/cssstyle/node_modules/cssom/lib/CSSRule.js +0 -43
  730. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
  731. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +0 -190
  732. data/node_modules/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
  733. data/node_modules/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +0 -36
  734. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValue.js +0 -43
  735. data/node_modules/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +0 -344
  736. data/node_modules/cssstyle/node_modules/cssom/lib/MatcherList.js +0 -62
  737. data/node_modules/cssstyle/node_modules/cssom/lib/MediaList.js +0 -61
  738. data/node_modules/cssstyle/node_modules/cssom/lib/StyleSheet.js +0 -17
  739. data/node_modules/cssstyle/node_modules/cssom/lib/clone.js +0 -82
  740. data/node_modules/cssstyle/node_modules/cssom/lib/index.js +0 -21
  741. data/node_modules/cssstyle/node_modules/cssom/lib/parse.js +0 -464
  742. data/node_modules/cssstyle/node_modules/cssom/package.json +0 -18
  743. data/node_modules/cssstyle/package.json +0 -72
  744. data/node_modules/data-urls/LICENSE.txt +0 -7
  745. data/node_modules/data-urls/README.md +0 -64
  746. data/node_modules/data-urls/lib/parser.js +0 -74
  747. data/node_modules/data-urls/lib/utils.js +0 -23
  748. data/node_modules/data-urls/package.json +0 -53
  749. data/node_modules/debug/LICENSE +0 -19
  750. data/node_modules/debug/README.md +0 -455
  751. data/node_modules/debug/package.json +0 -59
  752. data/node_modules/debug/src/browser.js +0 -269
  753. data/node_modules/debug/src/common.js +0 -274
  754. data/node_modules/debug/src/index.js +0 -10
  755. data/node_modules/debug/src/node.js +0 -263
  756. data/node_modules/decimal.js/CHANGELOG.md +0 -231
  757. data/node_modules/decimal.js/LICENCE.md +0 -23
  758. data/node_modules/decimal.js/README.md +0 -246
  759. data/node_modules/decimal.js/decimal.d.ts +0 -300
  760. data/node_modules/decimal.js/decimal.js +0 -4934
  761. data/node_modules/decimal.js/decimal.mjs +0 -4898
  762. data/node_modules/decimal.js/package.json +0 -40
  763. data/node_modules/deep-is/LICENSE +0 -22
  764. data/node_modules/deep-is/README.markdown +0 -70
  765. data/node_modules/deep-is/example/cmp.js +0 -11
  766. data/node_modules/deep-is/index.js +0 -102
  767. data/node_modules/deep-is/package.json +0 -61
  768. data/node_modules/deep-is/test/NaN.js +0 -16
  769. data/node_modules/deep-is/test/cmp.js +0 -23
  770. data/node_modules/deep-is/test/neg-vs-pos-0.js +0 -15
  771. data/node_modules/delayed-stream/License +0 -19
  772. data/node_modules/delayed-stream/Makefile +0 -7
  773. data/node_modules/delayed-stream/Readme.md +0 -141
  774. data/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  775. data/node_modules/delayed-stream/package.json +0 -27
  776. data/node_modules/diff/CONTRIBUTING.md +0 -39
  777. data/node_modules/diff/LICENSE +0 -31
  778. data/node_modules/diff/README.md +0 -208
  779. data/node_modules/diff/dist/diff.js +0 -1582
  780. data/node_modules/diff/lib/convert/dmp.js +0 -32
  781. data/node_modules/diff/lib/convert/xml.js +0 -42
  782. data/node_modules/diff/lib/diff/array.js +0 -45
  783. data/node_modules/diff/lib/diff/base.js +0 -304
  784. data/node_modules/diff/lib/diff/character.js +0 -37
  785. data/node_modules/diff/lib/diff/css.js +0 -41
  786. data/node_modules/diff/lib/diff/json.js +0 -163
  787. data/node_modules/diff/lib/diff/line.js +0 -89
  788. data/node_modules/diff/lib/diff/sentence.js +0 -41
  789. data/node_modules/diff/lib/diff/word.js +0 -108
  790. data/node_modules/diff/lib/index.es6.js +0 -1553
  791. data/node_modules/diff/lib/index.js +0 -216
  792. data/node_modules/diff/lib/index.mjs +0 -1553
  793. data/node_modules/diff/lib/patch/apply.js +0 -238
  794. data/node_modules/diff/lib/patch/create.js +0 -267
  795. data/node_modules/diff/lib/patch/merge.js +0 -613
  796. data/node_modules/diff/lib/patch/parse.js +0 -167
  797. data/node_modules/diff/lib/util/array.js +0 -32
  798. data/node_modules/diff/lib/util/distance-iterator.js +0 -57
  799. data/node_modules/diff/lib/util/params.js +0 -24
  800. data/node_modules/diff/package.json +0 -87
  801. data/node_modules/diff/release-notes.md +0 -303
  802. data/node_modules/diff/runtime.js +0 -3
  803. data/node_modules/domexception/LICENSE.txt +0 -21
  804. data/node_modules/domexception/README.md +0 -31
  805. data/node_modules/domexception/index.js +0 -7
  806. data/node_modules/domexception/lib/DOMException-impl.js +0 -22
  807. data/node_modules/domexception/lib/DOMException.js +0 -205
  808. data/node_modules/domexception/lib/legacy-error-codes.json +0 -27
  809. data/node_modules/domexception/lib/utils.js +0 -115
  810. data/node_modules/domexception/node_modules/webidl-conversions/LICENSE.md +0 -12
  811. data/node_modules/domexception/node_modules/webidl-conversions/README.md +0 -79
  812. data/node_modules/domexception/node_modules/webidl-conversions/lib/index.js +0 -361
  813. data/node_modules/domexception/node_modules/webidl-conversions/package.json +0 -30
  814. data/node_modules/domexception/package.json +0 -42
  815. data/node_modules/domexception/webidl2js-wrapper.js +0 -15
  816. data/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  817. data/node_modules/emoji-regex/README.md +0 -73
  818. data/node_modules/emoji-regex/es2015/index.js +0 -6
  819. data/node_modules/emoji-regex/es2015/text.js +0 -6
  820. data/node_modules/emoji-regex/index.d.ts +0 -23
  821. data/node_modules/emoji-regex/index.js +0 -6
  822. data/node_modules/emoji-regex/package.json +0 -50
  823. data/node_modules/emoji-regex/text.js +0 -6
  824. data/node_modules/escalade/dist/index.js +0 -22
  825. data/node_modules/escalade/dist/index.mjs +0 -22
  826. data/node_modules/escalade/index.d.ts +0 -3
  827. data/node_modules/escalade/license +0 -9
  828. data/node_modules/escalade/package.json +0 -61
  829. data/node_modules/escalade/readme.md +0 -211
  830. data/node_modules/escalade/sync/index.d.ts +0 -2
  831. data/node_modules/escalade/sync/index.js +0 -18
  832. data/node_modules/escalade/sync/index.mjs +0 -18
  833. data/node_modules/escodegen/LICENSE.BSD +0 -21
  834. data/node_modules/escodegen/README.md +0 -84
  835. data/node_modules/escodegen/bin/escodegen.js +0 -77
  836. data/node_modules/escodegen/bin/esgenerate.js +0 -64
  837. data/node_modules/escodegen/escodegen.js +0 -2647
  838. data/node_modules/escodegen/package.json +0 -62
  839. data/node_modules/esprima/ChangeLog +0 -235
  840. data/node_modules/esprima/LICENSE.BSD +0 -21
  841. data/node_modules/esprima/README.md +0 -46
  842. data/node_modules/esprima/bin/esparse.js +0 -139
  843. data/node_modules/esprima/bin/esvalidate.js +0 -236
  844. data/node_modules/esprima/dist/esprima.js +0 -6709
  845. data/node_modules/esprima/package.json +0 -112
  846. data/node_modules/estraverse/LICENSE.BSD +0 -19
  847. data/node_modules/estraverse/README.md +0 -153
  848. data/node_modules/estraverse/estraverse.js +0 -801
  849. data/node_modules/estraverse/gulpfile.js +0 -70
  850. data/node_modules/estraverse/package.json +0 -40
  851. data/node_modules/esutils/LICENSE.BSD +0 -19
  852. data/node_modules/esutils/README.md +0 -174
  853. data/node_modules/esutils/lib/ast.js +0 -144
  854. data/node_modules/esutils/lib/code.js +0 -135
  855. data/node_modules/esutils/lib/keyword.js +0 -165
  856. data/node_modules/esutils/lib/utils.js +0 -33
  857. data/node_modules/esutils/package.json +0 -44
  858. data/node_modules/fast-levenshtein/LICENSE.md +0 -25
  859. data/node_modules/fast-levenshtein/README.md +0 -104
  860. data/node_modules/fast-levenshtein/levenshtein.js +0 -136
  861. data/node_modules/fast-levenshtein/package.json +0 -39
  862. data/node_modules/fill-range/LICENSE +0 -21
  863. data/node_modules/fill-range/README.md +0 -237
  864. data/node_modules/fill-range/index.js +0 -249
  865. data/node_modules/fill-range/package.json +0 -69
  866. data/node_modules/form-data/License +0 -19
  867. data/node_modules/form-data/README.md.bak +0 -356
  868. data/node_modules/form-data/Readme.md +0 -356
  869. data/node_modules/form-data/index.d.ts +0 -62
  870. data/node_modules/form-data/lib/browser.js +0 -2
  871. data/node_modules/form-data/lib/form_data.js +0 -498
  872. data/node_modules/form-data/lib/populate.js +0 -10
  873. data/node_modules/form-data/package.json +0 -68
  874. data/node_modules/fs-extra/CHANGELOG.md +0 -902
  875. data/node_modules/fs-extra/LICENSE +0 -15
  876. data/node_modules/fs-extra/README.md +0 -264
  877. data/node_modules/fs-extra/lib/copy/copy.js +0 -232
  878. data/node_modules/fs-extra/lib/copy/index.js +0 -6
  879. data/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -166
  880. data/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
  881. data/node_modules/fs-extra/lib/empty/index.js +0 -48
  882. data/node_modules/fs-extra/lib/ensure/file.js +0 -69
  883. data/node_modules/fs-extra/lib/ensure/index.js +0 -23
  884. data/node_modules/fs-extra/lib/ensure/link.js +0 -61
  885. data/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -99
  886. data/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -31
  887. data/node_modules/fs-extra/lib/ensure/symlink.js +0 -63
  888. data/node_modules/fs-extra/lib/fs/index.js +0 -130
  889. data/node_modules/fs-extra/lib/index.js +0 -27
  890. data/node_modules/fs-extra/lib/json/index.js +0 -16
  891. data/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  892. data/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  893. data/node_modules/fs-extra/lib/json/output-json.js +0 -12
  894. data/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  895. data/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -141
  896. data/node_modules/fs-extra/lib/move/index.js +0 -6
  897. data/node_modules/fs-extra/lib/move/move.js +0 -65
  898. data/node_modules/fs-extra/lib/move-sync/index.js +0 -5
  899. data/node_modules/fs-extra/lib/move-sync/move-sync.js +0 -47
  900. data/node_modules/fs-extra/lib/output/index.js +0 -40
  901. data/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  902. data/node_modules/fs-extra/lib/remove/index.js +0 -9
  903. data/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
  904. data/node_modules/fs-extra/lib/util/stat.js +0 -139
  905. data/node_modules/fs-extra/lib/util/utimes.js +0 -26
  906. data/node_modules/fs-extra/package.json +0 -70
  907. data/node_modules/fs.realpath/LICENSE +0 -43
  908. data/node_modules/fs.realpath/README.md +0 -33
  909. data/node_modules/fs.realpath/index.js +0 -66
  910. data/node_modules/fs.realpath/old.js +0 -303
  911. data/node_modules/fs.realpath/package.json +0 -26
  912. data/node_modules/get-caller-file/LICENSE.md +0 -6
  913. data/node_modules/get-caller-file/README.md +0 -41
  914. data/node_modules/get-caller-file/index.d.ts +0 -2
  915. data/node_modules/get-caller-file/index.js +0 -22
  916. data/node_modules/get-caller-file/index.js.map +0 -1
  917. data/node_modules/get-caller-file/package.json +0 -42
  918. data/node_modules/glob/LICENSE +0 -21
  919. data/node_modules/glob/README.md +0 -375
  920. data/node_modules/glob/changelog.md +0 -67
  921. data/node_modules/glob/common.js +0 -234
  922. data/node_modules/glob/glob.js +0 -788
  923. data/node_modules/glob/package.json +0 -51
  924. data/node_modules/glob/sync.js +0 -484
  925. data/node_modules/glob-parent/CHANGELOG.md +0 -110
  926. data/node_modules/glob-parent/LICENSE +0 -15
  927. data/node_modules/glob-parent/README.md +0 -137
  928. data/node_modules/glob-parent/index.js +0 -42
  929. data/node_modules/glob-parent/package.json +0 -48
  930. data/node_modules/graceful-fs/LICENSE +0 -15
  931. data/node_modules/graceful-fs/README.md +0 -133
  932. data/node_modules/graceful-fs/clone.js +0 -23
  933. data/node_modules/graceful-fs/graceful-fs.js +0 -373
  934. data/node_modules/graceful-fs/legacy-streams.js +0 -118
  935. data/node_modules/graceful-fs/package.json +0 -50
  936. data/node_modules/graceful-fs/polyfills.js +0 -346
  937. data/node_modules/html-encoding-sniffer/LICENSE.txt +0 -7
  938. data/node_modules/html-encoding-sniffer/README.md +0 -38
  939. data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +0 -295
  940. data/node_modules/html-encoding-sniffer/package.json +0 -30
  941. data/node_modules/http-proxy-agent/README.md +0 -74
  942. data/node_modules/http-proxy-agent/dist/agent.d.ts +0 -32
  943. data/node_modules/http-proxy-agent/dist/agent.js +0 -145
  944. data/node_modules/http-proxy-agent/dist/agent.js.map +0 -1
  945. data/node_modules/http-proxy-agent/dist/index.d.ts +0 -21
  946. data/node_modules/http-proxy-agent/dist/index.js +0 -14
  947. data/node_modules/http-proxy-agent/dist/index.js.map +0 -1
  948. data/node_modules/http-proxy-agent/package.json +0 -57
  949. data/node_modules/https-proxy-agent/README.md +0 -137
  950. data/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
  951. data/node_modules/https-proxy-agent/dist/agent.js +0 -180
  952. data/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
  953. data/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
  954. data/node_modules/https-proxy-agent/dist/index.js +0 -14
  955. data/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  956. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  957. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  958. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  959. data/node_modules/https-proxy-agent/package.json +0 -56
  960. data/node_modules/iconv-lite/Changelog.md +0 -162
  961. data/node_modules/iconv-lite/LICENSE +0 -21
  962. data/node_modules/iconv-lite/README.md +0 -156
  963. data/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  964. data/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  965. data/node_modules/iconv-lite/encodings/index.js +0 -22
  966. data/node_modules/iconv-lite/encodings/internal.js +0 -188
  967. data/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  968. data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  969. data/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  970. data/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  971. data/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  972. data/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  973. data/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  974. data/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  975. data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  976. data/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  977. data/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  978. data/node_modules/iconv-lite/encodings/utf16.js +0 -177
  979. data/node_modules/iconv-lite/encodings/utf7.js +0 -290
  980. data/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  981. data/node_modules/iconv-lite/lib/extend-node.js +0 -217
  982. data/node_modules/iconv-lite/lib/index.d.ts +0 -24
  983. data/node_modules/iconv-lite/lib/index.js +0 -153
  984. data/node_modules/iconv-lite/lib/streams.js +0 -121
  985. data/node_modules/iconv-lite/package.json +0 -46
  986. data/node_modules/inflight/LICENSE +0 -15
  987. data/node_modules/inflight/README.md +0 -37
  988. data/node_modules/inflight/inflight.js +0 -54
  989. data/node_modules/inflight/package.json +0 -29
  990. data/node_modules/inherits/LICENSE +0 -16
  991. data/node_modules/inherits/README.md +0 -42
  992. data/node_modules/inherits/inherits.js +0 -9
  993. data/node_modules/inherits/inherits_browser.js +0 -27
  994. data/node_modules/inherits/package.json +0 -29
  995. data/node_modules/is-binary-path/index.d.ts +0 -17
  996. data/node_modules/is-binary-path/index.js +0 -7
  997. data/node_modules/is-binary-path/license +0 -9
  998. data/node_modules/is-binary-path/package.json +0 -40
  999. data/node_modules/is-binary-path/readme.md +0 -34
  1000. data/node_modules/is-extglob/LICENSE +0 -21
  1001. data/node_modules/is-extglob/README.md +0 -107
  1002. data/node_modules/is-extglob/index.js +0 -20
  1003. data/node_modules/is-extglob/package.json +0 -69
  1004. data/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  1005. data/node_modules/is-fullwidth-code-point/index.js +0 -50
  1006. data/node_modules/is-fullwidth-code-point/license +0 -9
  1007. data/node_modules/is-fullwidth-code-point/package.json +0 -42
  1008. data/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1009. data/node_modules/is-glob/LICENSE +0 -21
  1010. data/node_modules/is-glob/README.md +0 -206
  1011. data/node_modules/is-glob/index.js +0 -48
  1012. data/node_modules/is-glob/package.json +0 -81
  1013. data/node_modules/is-number/LICENSE +0 -21
  1014. data/node_modules/is-number/README.md +0 -187
  1015. data/node_modules/is-number/index.js +0 -18
  1016. data/node_modules/is-number/package.json +0 -82
  1017. data/node_modules/is-potential-custom-element-name/LICENSE-MIT.txt +0 -20
  1018. data/node_modules/is-potential-custom-element-name/README.md +0 -40
  1019. data/node_modules/is-potential-custom-element-name/index.js +0 -9
  1020. data/node_modules/is-potential-custom-element-name/package.json +0 -35
  1021. data/node_modules/isexe/LICENSE +0 -15
  1022. data/node_modules/isexe/README.md +0 -51
  1023. data/node_modules/isexe/index.js +0 -57
  1024. data/node_modules/isexe/mode.js +0 -41
  1025. data/node_modules/isexe/package.json +0 -31
  1026. data/node_modules/isexe/test/basic.js +0 -221
  1027. data/node_modules/isexe/windows.js +0 -42
  1028. data/node_modules/js-yaml/CHANGELOG.md +0 -557
  1029. data/node_modules/js-yaml/LICENSE +0 -21
  1030. data/node_modules/js-yaml/README.md +0 -299
  1031. data/node_modules/js-yaml/bin/js-yaml.js +0 -132
  1032. data/node_modules/js-yaml/dist/js-yaml.js +0 -3989
  1033. data/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
  1034. data/node_modules/js-yaml/index.js +0 -7
  1035. data/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
  1036. data/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
  1037. data/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
  1038. data/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
  1039. data/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
  1040. data/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
  1041. data/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
  1042. data/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
  1043. data/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
  1044. data/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
  1045. data/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
  1046. data/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
  1047. data/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
  1048. data/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
  1049. data/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
  1050. data/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
  1051. data/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
  1052. data/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  1053. data/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
  1054. data/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
  1055. data/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
  1056. data/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
  1057. data/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
  1058. data/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
  1059. data/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
  1060. data/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
  1061. data/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
  1062. data/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
  1063. data/node_modules/js-yaml/lib/js-yaml.js +0 -39
  1064. data/node_modules/js-yaml/package.json +0 -49
  1065. data/node_modules/jsdom/LICENSE.txt +0 -22
  1066. data/node_modules/jsdom/README.md +0 -522
  1067. data/node_modules/jsdom/lib/api.js +0 -333
  1068. data/node_modules/jsdom/lib/jsdom/browser/Window.js +0 -933
  1069. data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +0 -789
  1070. data/node_modules/jsdom/lib/jsdom/browser/js-globals.json +0 -307
  1071. data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +0 -13
  1072. data/node_modules/jsdom/lib/jsdom/browser/parser/html.js +0 -223
  1073. data/node_modules/jsdom/lib/jsdom/browser/parser/index.js +0 -37
  1074. data/node_modules/jsdom/lib/jsdom/browser/parser/xml.js +0 -202
  1075. data/node_modules/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +0 -114
  1076. data/node_modules/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +0 -8
  1077. data/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +0 -95
  1078. data/node_modules/jsdom/lib/jsdom/browser/resources/request-manager.js +0 -33
  1079. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-loader.js +0 -142
  1080. data/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js +0 -142
  1081. data/node_modules/jsdom/lib/jsdom/level2/style.js +0 -57
  1082. data/node_modules/jsdom/lib/jsdom/level3/xpath.js +0 -1874
  1083. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +0 -17
  1084. data/node_modules/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +0 -55
  1085. data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +0 -60
  1086. data/node_modules/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +0 -78
  1087. data/node_modules/jsdom/lib/jsdom/living/attributes.js +0 -312
  1088. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +0 -75
  1089. data/node_modules/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +0 -66
  1090. data/node_modules/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +0 -38
  1091. data/node_modules/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +0 -265
  1092. data/node_modules/jsdom/lib/jsdom/living/documents.js +0 -15
  1093. data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +0 -58
  1094. data/node_modules/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +0 -29
  1095. data/node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +0 -18
  1096. data/node_modules/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +0 -63
  1097. data/node_modules/jsdom/lib/jsdom/living/domparsing/serialization.js +0 -45
  1098. data/node_modules/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +0 -10
  1099. data/node_modules/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +0 -20
  1100. data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +0 -21
  1101. data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +0 -14
  1102. data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +0 -197
  1103. data/node_modules/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +0 -18
  1104. data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +0 -403
  1105. data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +0 -9
  1106. data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +0 -14
  1107. data/node_modules/jsdom/lib/jsdom/living/events/InputEvent-impl.js +0 -11
  1108. data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +0 -29
  1109. data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +0 -25
  1110. data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +0 -49
  1111. data/node_modules/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +0 -20
  1112. data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +0 -9
  1113. data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +0 -14
  1114. data/node_modules/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +0 -26
  1115. data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +0 -14
  1116. data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +0 -59
  1117. data/node_modules/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +0 -12
  1118. data/node_modules/jsdom/lib/jsdom/living/fetch/Headers-impl.js +0 -165
  1119. data/node_modules/jsdom/lib/jsdom/living/fetch/header-list.js +0 -54
  1120. data/node_modules/jsdom/lib/jsdom/living/fetch/header-types.js +0 -103
  1121. data/node_modules/jsdom/lib/jsdom/living/file-api/Blob-impl.js +0 -93
  1122. data/node_modules/jsdom/lib/jsdom/living/file-api/File-impl.js +0 -12
  1123. data/node_modules/jsdom/lib/jsdom/living/file-api/FileList-impl.js +0 -15
  1124. data/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +0 -130
  1125. data/node_modules/jsdom/lib/jsdom/living/generated/AbortController.js +0 -130
  1126. data/node_modules/jsdom/lib/jsdom/living/generated/AbortSignal.js +0 -159
  1127. data/node_modules/jsdom/lib/jsdom/living/generated/AbstractRange.js +0 -162
  1128. data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +0 -44
  1129. data/node_modules/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +0 -28
  1130. data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +0 -215
  1131. data/node_modules/jsdom/lib/jsdom/living/generated/BarProp.js +0 -118
  1132. data/node_modules/jsdom/lib/jsdom/living/generated/BinaryType.js +0 -12
  1133. data/node_modules/jsdom/lib/jsdom/living/generated/Blob.js +0 -198
  1134. data/node_modules/jsdom/lib/jsdom/living/generated/BlobCallback.js +0 -34
  1135. data/node_modules/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +0 -42
  1136. data/node_modules/jsdom/lib/jsdom/living/generated/CDATASection.js +0 -114
  1137. data/node_modules/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +0 -12
  1138. data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +0 -436
  1139. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEvent.js +0 -164
  1140. data/node_modules/jsdom/lib/jsdom/living/generated/CloseEventInit.js +0 -56
  1141. data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +0 -122
  1142. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEvent.js +0 -217
  1143. data/node_modules/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +0 -32
  1144. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +0 -38
  1145. data/node_modules/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +0 -242
  1146. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +0 -200
  1147. data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +0 -32
  1148. data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +0 -232
  1149. data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +0 -140
  1150. data/node_modules/jsdom/lib/jsdom/living/generated/DOMStringMap.js +0 -322
  1151. data/node_modules/jsdom/lib/jsdom/living/generated/DOMTokenList.js +0 -531
  1152. data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +0 -3322
  1153. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +0 -325
  1154. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +0 -12
  1155. data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +0 -246
  1156. data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +0 -1609
  1157. data/node_modules/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +0 -26
  1158. data/node_modules/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +0 -26
  1159. data/node_modules/jsdom/lib/jsdom/living/generated/EndingType.js +0 -12
  1160. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +0 -186
  1161. data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +0 -80
  1162. data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +0 -390
  1163. data/node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +0 -40
  1164. data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +0 -52
  1165. data/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js +0 -35
  1166. data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +0 -28
  1167. data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +0 -188
  1168. data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +0 -252
  1169. data/node_modules/jsdom/lib/jsdom/living/generated/External.js +0 -129
  1170. data/node_modules/jsdom/lib/jsdom/living/generated/File.js +0 -176
  1171. data/node_modules/jsdom/lib/jsdom/living/generated/FileList.js +0 -305
  1172. data/node_modules/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +0 -30
  1173. data/node_modules/jsdom/lib/jsdom/living/generated/FileReader.js +0 -440
  1174. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +0 -142
  1175. data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +0 -36
  1176. data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +0 -421
  1177. data/node_modules/jsdom/lib/jsdom/living/generated/Function.js +0 -46
  1178. data/node_modules/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +0 -28
  1179. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +0 -915
  1180. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +0 -739
  1181. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +0 -115
  1182. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +0 -153
  1183. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +0 -188
  1184. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +0 -808
  1185. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +0 -487
  1186. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +0 -291
  1187. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCollection.js +0 -358
  1188. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +0 -156
  1189. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +0 -153
  1190. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +0 -128
  1191. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +0 -156
  1192. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +0 -156
  1193. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +0 -156
  1194. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +0 -153
  1195. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +0 -2269
  1196. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +0 -346
  1197. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +0 -315
  1198. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +0 -226
  1199. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +0 -457
  1200. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +0 -459
  1201. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +0 -683
  1202. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +0 -300
  1203. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +0 -115
  1204. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +0 -153
  1205. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +0 -153
  1206. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +0 -621
  1207. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +0 -789
  1208. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +0 -1696
  1209. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +0 -194
  1210. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +0 -175
  1211. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +0 -164
  1212. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +0 -496
  1213. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +0 -166
  1214. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +0 -509
  1215. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +0 -802
  1216. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +0 -156
  1217. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +0 -261
  1218. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +0 -338
  1219. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +0 -202
  1220. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +0 -266
  1221. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +0 -839
  1222. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +0 -192
  1223. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +0 -351
  1224. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +0 -533
  1225. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +0 -371
  1226. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +0 -153
  1227. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +0 -261
  1228. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +0 -115
  1229. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +0 -158
  1230. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +0 -209
  1231. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +0 -166
  1232. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +0 -424
  1233. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +0 -957
  1234. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +0 -188
  1235. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +0 -310
  1236. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +0 -115
  1237. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +0 -200
  1238. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +0 -153
  1239. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +0 -635
  1240. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +0 -339
  1241. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +0 -725
  1242. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +0 -386
  1243. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +0 -329
  1244. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +0 -126
  1245. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +0 -1088
  1246. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +0 -153
  1247. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +0 -152
  1248. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +0 -334
  1249. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +0 -192
  1250. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +0 -114
  1251. data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +0 -310
  1252. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +0 -153
  1253. data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +0 -44
  1254. data/node_modules/jsdom/lib/jsdom/living/generated/Headers.js +0 -379
  1255. data/node_modules/jsdom/lib/jsdom/living/generated/History.js +0 -256
  1256. data/node_modules/jsdom/lib/jsdom/living/generated/InputEvent.js +0 -164
  1257. data/node_modules/jsdom/lib/jsdom/living/generated/InputEventInit.js +0 -59
  1258. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +0 -413
  1259. data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +0 -104
  1260. data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +0 -370
  1261. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +0 -301
  1262. data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +0 -94
  1263. data/node_modules/jsdom/lib/jsdom/living/generated/MimeType.js +0 -151
  1264. data/node_modules/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +0 -330
  1265. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +0 -463
  1266. data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +0 -108
  1267. data/node_modules/jsdom/lib/jsdom/living/generated/MutationCallback.js +0 -38
  1268. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserver.js +0 -171
  1269. data/node_modules/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +0 -103
  1270. data/node_modules/jsdom/lib/jsdom/living/generated/MutationRecord.js +0 -216
  1271. data/node_modules/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +0 -522
  1272. data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +0 -297
  1273. data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +0 -736
  1274. data/node_modules/jsdom/lib/jsdom/living/generated/NodeFilter.js +0 -74
  1275. data/node_modules/jsdom/lib/jsdom/living/generated/NodeIterator.js +0 -196
  1276. data/node_modules/jsdom/lib/jsdom/living/generated/NodeList.js +0 -309
  1277. data/node_modules/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +0 -46
  1278. data/node_modules/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +0 -60
  1279. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +0 -146
  1280. data/node_modules/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +0 -32
  1281. data/node_modules/jsdom/lib/jsdom/living/generated/Performance.js +0 -145
  1282. data/node_modules/jsdom/lib/jsdom/living/generated/Plugin.js +0 -361
  1283. data/node_modules/jsdom/lib/jsdom/living/generated/PluginArray.js +0 -340
  1284. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +0 -142
  1285. data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +0 -32
  1286. data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +0 -125
  1287. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +0 -166
  1288. data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +0 -56
  1289. data/node_modules/jsdom/lib/jsdom/living/generated/Range.js +0 -619
  1290. data/node_modules/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +0 -143
  1291. data/node_modules/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +0 -64
  1292. data/node_modules/jsdom/lib/jsdom/living/generated/SVGElement.js +0 -1986
  1293. data/node_modules/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +0 -144
  1294. data/node_modules/jsdom/lib/jsdom/living/generated/SVGNumber.js +0 -130
  1295. data/node_modules/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +0 -681
  1296. data/node_modules/jsdom/lib/jsdom/living/generated/SVGStringList.js +0 -504
  1297. data/node_modules/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +0 -114
  1298. data/node_modules/jsdom/lib/jsdom/living/generated/Screen.js +0 -173
  1299. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +0 -12
  1300. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +0 -45
  1301. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +0 -12
  1302. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +0 -30
  1303. data/node_modules/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +0 -12
  1304. data/node_modules/jsdom/lib/jsdom/living/generated/Selection.js +0 -527
  1305. data/node_modules/jsdom/lib/jsdom/living/generated/SelectionMode.js +0 -12
  1306. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRoot.js +0 -185
  1307. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +0 -30
  1308. data/node_modules/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +0 -12
  1309. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRange.js +0 -126
  1310. data/node_modules/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +0 -66
  1311. data/node_modules/jsdom/lib/jsdom/living/generated/Storage.js +0 -389
  1312. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEvent.js +0 -305
  1313. data/node_modules/jsdom/lib/jsdom/living/generated/StorageEventInit.js +0 -93
  1314. data/node_modules/jsdom/lib/jsdom/living/generated/StyleSheetList.js +0 -307
  1315. data/node_modules/jsdom/lib/jsdom/living/generated/SupportedType.js +0 -18
  1316. data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +0 -169
  1317. data/node_modules/jsdom/lib/jsdom/living/generated/TextTrackKind.js +0 -12
  1318. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +0 -208
  1319. data/node_modules/jsdom/lib/jsdom/living/generated/TouchEventInit.js +0 -89
  1320. data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +0 -236
  1321. data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +0 -235
  1322. data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +0 -59
  1323. data/node_modules/jsdom/lib/jsdom/living/generated/ValidityState.js +0 -228
  1324. data/node_modules/jsdom/lib/jsdom/living/generated/VisibilityState.js +0 -12
  1325. data/node_modules/jsdom/lib/jsdom/living/generated/VoidFunction.js +0 -30
  1326. data/node_modules/jsdom/lib/jsdom/living/generated/WebSocket.js +0 -444
  1327. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEvent.js +0 -183
  1328. data/node_modules/jsdom/lib/jsdom/living/generated/WheelEventInit.js +0 -68
  1329. data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +0 -114
  1330. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +0 -617
  1331. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +0 -341
  1332. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +0 -12
  1333. data/node_modules/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +0 -114
  1334. data/node_modules/jsdom/lib/jsdom/living/generated/XMLSerializer.js +0 -133
  1335. data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +0 -141
  1336. data/node_modules/jsdom/lib/jsdom/living/helpers/agent-factory.js +0 -15
  1337. data/node_modules/jsdom/lib/jsdom/living/helpers/binary-data.js +0 -9
  1338. data/node_modules/jsdom/lib/jsdom/living/helpers/create-element.js +0 -320
  1339. data/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +0 -188
  1340. data/node_modules/jsdom/lib/jsdom/living/helpers/custom-elements.js +0 -270
  1341. data/node_modules/jsdom/lib/jsdom/living/helpers/dates-and-times.js +0 -270
  1342. data/node_modules/jsdom/lib/jsdom/living/helpers/details.js +0 -15
  1343. data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +0 -54
  1344. data/node_modules/jsdom/lib/jsdom/living/helpers/events.js +0 -24
  1345. data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +0 -104
  1346. data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +0 -306
  1347. data/node_modules/jsdom/lib/jsdom/living/helpers/html-constructor.js +0 -78
  1348. data/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js +0 -254
  1349. data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +0 -12
  1350. data/node_modules/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +0 -48
  1351. data/node_modules/jsdom/lib/jsdom/living/helpers/json.js +0 -12
  1352. data/node_modules/jsdom/lib/jsdom/living/helpers/mutation-observers.js +0 -198
  1353. data/node_modules/jsdom/lib/jsdom/living/helpers/namespaces.js +0 -15
  1354. data/node_modules/jsdom/lib/jsdom/living/helpers/node.js +0 -68
  1355. data/node_modules/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +0 -195
  1356. data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set.js +0 -104
  1357. data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +0 -76
  1358. data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +0 -47
  1359. data/node_modules/jsdom/lib/jsdom/living/helpers/shadow-dom.js +0 -285
  1360. data/node_modules/jsdom/lib/jsdom/living/helpers/strings.js +0 -148
  1361. data/node_modules/jsdom/lib/jsdom/living/helpers/style-rules.js +0 -114
  1362. data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +0 -113
  1363. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +0 -41
  1364. data/node_modules/jsdom/lib/jsdom/living/helpers/svg/render.js +0 -46
  1365. data/node_modules/jsdom/lib/jsdom/living/helpers/text.js +0 -19
  1366. data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +0 -72
  1367. data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +0 -75
  1368. data/node_modules/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +0 -25
  1369. data/node_modules/jsdom/lib/jsdom/living/interfaces.js +0 -217
  1370. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +0 -95
  1371. data/node_modules/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +0 -37
  1372. data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +0 -141
  1373. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +0 -3
  1374. data/node_modules/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +0 -21
  1375. data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +0 -29
  1376. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +0 -8
  1377. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +0 -7
  1378. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +0 -37
  1379. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +0 -9
  1380. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +0 -7
  1381. data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +0 -8
  1382. data/node_modules/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +0 -3
  1383. data/node_modules/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +0 -23
  1384. data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +0 -10
  1385. data/node_modules/jsdom/lib/jsdom/living/node-type.js +0 -16
  1386. data/node_modules/jsdom/lib/jsdom/living/node.js +0 -331
  1387. data/node_modules/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +0 -16
  1388. data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +0 -118
  1389. data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +0 -80
  1390. data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +0 -20
  1391. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +0 -120
  1392. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +0 -64
  1393. data/node_modules/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +0 -171
  1394. data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +0 -946
  1395. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +0 -44
  1396. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +0 -28
  1397. data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +0 -24
  1398. data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +0 -578
  1399. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +0 -25
  1400. data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +0 -7
  1401. data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +0 -95
  1402. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +0 -50
  1403. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +0 -43
  1404. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +0 -9
  1405. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +0 -9
  1406. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +0 -27
  1407. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +0 -17
  1408. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +0 -79
  1409. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +0 -130
  1410. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +0 -96
  1411. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +0 -9
  1412. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +0 -9
  1413. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +0 -20
  1414. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +0 -35
  1415. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +0 -9
  1416. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +0 -9
  1417. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +0 -9
  1418. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +0 -160
  1419. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +0 -8
  1420. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +0 -43
  1421. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +0 -9
  1422. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +0 -226
  1423. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +0 -261
  1424. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +0 -17
  1425. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +0 -9
  1426. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +0 -9
  1427. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +0 -9
  1428. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +0 -9
  1429. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +0 -371
  1430. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +0 -9
  1431. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +0 -132
  1432. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +0 -1128
  1433. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +0 -9
  1434. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +0 -94
  1435. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +0 -18
  1436. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +0 -101
  1437. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +0 -13
  1438. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +0 -9
  1439. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +0 -138
  1440. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +0 -9
  1441. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +0 -9
  1442. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +0 -180
  1443. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +0 -9
  1444. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +0 -22
  1445. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +0 -26
  1446. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +0 -9
  1447. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +0 -146
  1448. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +0 -110
  1449. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +0 -85
  1450. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +0 -88
  1451. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +0 -9
  1452. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +0 -9
  1453. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +0 -9
  1454. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +0 -9
  1455. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +0 -74
  1456. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +0 -9
  1457. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +0 -265
  1458. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +0 -283
  1459. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +0 -59
  1460. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +0 -8
  1461. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +0 -9
  1462. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +0 -74
  1463. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +0 -9
  1464. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +0 -73
  1465. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +0 -9
  1466. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +0 -236
  1467. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +0 -88
  1468. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +0 -61
  1469. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +0 -67
  1470. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +0 -272
  1471. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +0 -9
  1472. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +0 -18
  1473. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +0 -13
  1474. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +0 -9
  1475. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +0 -9
  1476. data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +0 -17
  1477. data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +0 -2
  1478. data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +0 -1165
  1479. data/node_modules/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +0 -43
  1480. data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +0 -28
  1481. data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +0 -11
  1482. data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +0 -91
  1483. data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +0 -22
  1484. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +0 -64
  1485. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +0 -16
  1486. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +0 -42
  1487. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +0 -42
  1488. data/node_modules/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +0 -9
  1489. data/node_modules/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +0 -40
  1490. data/node_modules/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +0 -48
  1491. data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +0 -96
  1492. data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +0 -52
  1493. data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +0 -4
  1494. data/node_modules/jsdom/lib/jsdom/living/post-message.js +0 -39
  1495. data/node_modules/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +0 -43
  1496. data/node_modules/jsdom/lib/jsdom/living/range/Range-impl.js +0 -889
  1497. data/node_modules/jsdom/lib/jsdom/living/range/StaticRange-impl.js +0 -39
  1498. data/node_modules/jsdom/lib/jsdom/living/range/boundary-point.js +0 -47
  1499. data/node_modules/jsdom/lib/jsdom/living/selection/Selection-impl.js +0 -342
  1500. data/node_modules/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +0 -38
  1501. data/node_modules/jsdom/lib/jsdom/living/svg/SVGListBase.js +0 -195
  1502. data/node_modules/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +0 -48
  1503. data/node_modules/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +0 -16
  1504. data/node_modules/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +0 -127
  1505. data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +0 -217
  1506. data/node_modules/jsdom/lib/jsdom/living/traversal/helpers.js +0 -44
  1507. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +0 -175
  1508. data/node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +0 -328
  1509. data/node_modules/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +0 -102
  1510. data/node_modules/jsdom/lib/jsdom/living/window/BarProp-impl.js +0 -10
  1511. data/node_modules/jsdom/lib/jsdom/living/window/External-impl.js +0 -9
  1512. data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +0 -134
  1513. data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +0 -238
  1514. data/node_modules/jsdom/lib/jsdom/living/window/Screen-impl.js +0 -13
  1515. data/node_modules/jsdom/lib/jsdom/living/window/SessionHistory.js +0 -163
  1516. data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +0 -84
  1517. data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +0 -171
  1518. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +0 -1023
  1519. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +0 -17
  1520. data/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +0 -4
  1521. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +0 -60
  1522. data/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js +0 -438
  1523. data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +0 -158
  1524. data/node_modules/jsdom/lib/jsdom/utils.js +0 -165
  1525. data/node_modules/jsdom/lib/jsdom/virtual-console.js +0 -34
  1526. data/node_modules/jsdom/lib/jsdom/vm-shim.js +0 -106
  1527. data/node_modules/jsdom/package.json +0 -116
  1528. data/node_modules/jsonfile/CHANGELOG.md +0 -171
  1529. data/node_modules/jsonfile/LICENSE +0 -15
  1530. data/node_modules/jsonfile/README.md +0 -230
  1531. data/node_modules/jsonfile/index.js +0 -88
  1532. data/node_modules/jsonfile/package.json +0 -40
  1533. data/node_modules/jsonfile/utils.js +0 -14
  1534. data/node_modules/levn/LICENSE +0 -22
  1535. data/node_modules/levn/README.md +0 -196
  1536. data/node_modules/levn/lib/cast.js +0 -298
  1537. data/node_modules/levn/lib/coerce.js +0 -285
  1538. data/node_modules/levn/lib/index.js +0 -22
  1539. data/node_modules/levn/lib/parse-string.js +0 -113
  1540. data/node_modules/levn/lib/parse.js +0 -102
  1541. data/node_modules/levn/package.json +0 -47
  1542. data/node_modules/lodash/LICENSE +0 -47
  1543. data/node_modules/lodash/README.md +0 -39
  1544. data/node_modules/lodash/_DataView.js +0 -7
  1545. data/node_modules/lodash/_Hash.js +0 -32
  1546. data/node_modules/lodash/_LazyWrapper.js +0 -28
  1547. data/node_modules/lodash/_ListCache.js +0 -32
  1548. data/node_modules/lodash/_LodashWrapper.js +0 -22
  1549. data/node_modules/lodash/_Map.js +0 -7
  1550. data/node_modules/lodash/_MapCache.js +0 -32
  1551. data/node_modules/lodash/_Promise.js +0 -7
  1552. data/node_modules/lodash/_Set.js +0 -7
  1553. data/node_modules/lodash/_SetCache.js +0 -27
  1554. data/node_modules/lodash/_Stack.js +0 -27
  1555. data/node_modules/lodash/_Symbol.js +0 -6
  1556. data/node_modules/lodash/_Uint8Array.js +0 -6
  1557. data/node_modules/lodash/_WeakMap.js +0 -7
  1558. data/node_modules/lodash/_apply.js +0 -21
  1559. data/node_modules/lodash/_arrayAggregator.js +0 -22
  1560. data/node_modules/lodash/_arrayEach.js +0 -22
  1561. data/node_modules/lodash/_arrayEachRight.js +0 -21
  1562. data/node_modules/lodash/_arrayEvery.js +0 -23
  1563. data/node_modules/lodash/_arrayFilter.js +0 -25
  1564. data/node_modules/lodash/_arrayIncludes.js +0 -17
  1565. data/node_modules/lodash/_arrayIncludesWith.js +0 -22
  1566. data/node_modules/lodash/_arrayLikeKeys.js +0 -49
  1567. data/node_modules/lodash/_arrayMap.js +0 -21
  1568. data/node_modules/lodash/_arrayPush.js +0 -20
  1569. data/node_modules/lodash/_arrayReduce.js +0 -26
  1570. data/node_modules/lodash/_arrayReduceRight.js +0 -24
  1571. data/node_modules/lodash/_arraySample.js +0 -15
  1572. data/node_modules/lodash/_arraySampleSize.js +0 -17
  1573. data/node_modules/lodash/_arrayShuffle.js +0 -15
  1574. data/node_modules/lodash/_arraySome.js +0 -23
  1575. data/node_modules/lodash/_asciiSize.js +0 -12
  1576. data/node_modules/lodash/_asciiToArray.js +0 -12
  1577. data/node_modules/lodash/_asciiWords.js +0 -15
  1578. data/node_modules/lodash/_assignMergeValue.js +0 -20
  1579. data/node_modules/lodash/_assignValue.js +0 -28
  1580. data/node_modules/lodash/_assocIndexOf.js +0 -21
  1581. data/node_modules/lodash/_baseAggregator.js +0 -21
  1582. data/node_modules/lodash/_baseAssign.js +0 -17
  1583. data/node_modules/lodash/_baseAssignIn.js +0 -17
  1584. data/node_modules/lodash/_baseAssignValue.js +0 -25
  1585. data/node_modules/lodash/_baseAt.js +0 -23
  1586. data/node_modules/lodash/_baseClamp.js +0 -22
  1587. data/node_modules/lodash/_baseClone.js +0 -166
  1588. data/node_modules/lodash/_baseConforms.js +0 -18
  1589. data/node_modules/lodash/_baseConformsTo.js +0 -27
  1590. data/node_modules/lodash/_baseCreate.js +0 -30
  1591. data/node_modules/lodash/_baseDelay.js +0 -21
  1592. data/node_modules/lodash/_baseDifference.js +0 -67
  1593. data/node_modules/lodash/_baseEach.js +0 -14
  1594. data/node_modules/lodash/_baseEachRight.js +0 -14
  1595. data/node_modules/lodash/_baseEvery.js +0 -21
  1596. data/node_modules/lodash/_baseExtremum.js +0 -32
  1597. data/node_modules/lodash/_baseFill.js +0 -32
  1598. data/node_modules/lodash/_baseFilter.js +0 -21
  1599. data/node_modules/lodash/_baseFindIndex.js +0 -24
  1600. data/node_modules/lodash/_baseFindKey.js +0 -23
  1601. data/node_modules/lodash/_baseFlatten.js +0 -38
  1602. data/node_modules/lodash/_baseFor.js +0 -16
  1603. data/node_modules/lodash/_baseForOwn.js +0 -16
  1604. data/node_modules/lodash/_baseForOwnRight.js +0 -16
  1605. data/node_modules/lodash/_baseForRight.js +0 -15
  1606. data/node_modules/lodash/_baseFunctions.js +0 -19
  1607. data/node_modules/lodash/_baseGet.js +0 -24
  1608. data/node_modules/lodash/_baseGetAllKeys.js +0 -20
  1609. data/node_modules/lodash/_baseGetTag.js +0 -28
  1610. data/node_modules/lodash/_baseGt.js +0 -14
  1611. data/node_modules/lodash/_baseHas.js +0 -19
  1612. data/node_modules/lodash/_baseHasIn.js +0 -13
  1613. data/node_modules/lodash/_baseInRange.js +0 -18
  1614. data/node_modules/lodash/_baseIndexOf.js +0 -20
  1615. data/node_modules/lodash/_baseIndexOfWith.js +0 -23
  1616. data/node_modules/lodash/_baseIntersection.js +0 -74
  1617. data/node_modules/lodash/_baseInverter.js +0 -21
  1618. data/node_modules/lodash/_baseInvoke.js +0 -24
  1619. data/node_modules/lodash/_baseIsArguments.js +0 -18
  1620. data/node_modules/lodash/_baseIsArrayBuffer.js +0 -17
  1621. data/node_modules/lodash/_baseIsDate.js +0 -18
  1622. data/node_modules/lodash/_baseIsEqual.js +0 -28
  1623. data/node_modules/lodash/_baseIsEqualDeep.js +0 -83
  1624. data/node_modules/lodash/_baseIsMap.js +0 -18
  1625. data/node_modules/lodash/_baseIsMatch.js +0 -62
  1626. data/node_modules/lodash/_baseIsNaN.js +0 -12
  1627. data/node_modules/lodash/_baseIsNative.js +0 -47
  1628. data/node_modules/lodash/_baseIsRegExp.js +0 -18
  1629. data/node_modules/lodash/_baseIsSet.js +0 -18
  1630. data/node_modules/lodash/_baseIsTypedArray.js +0 -60
  1631. data/node_modules/lodash/_baseIteratee.js +0 -31
  1632. data/node_modules/lodash/_baseKeys.js +0 -30
  1633. data/node_modules/lodash/_baseKeysIn.js +0 -33
  1634. data/node_modules/lodash/_baseLodash.js +0 -10
  1635. data/node_modules/lodash/_baseLt.js +0 -14
  1636. data/node_modules/lodash/_baseMap.js +0 -22
  1637. data/node_modules/lodash/_baseMatches.js +0 -22
  1638. data/node_modules/lodash/_baseMatchesProperty.js +0 -33
  1639. data/node_modules/lodash/_baseMean.js +0 -20
  1640. data/node_modules/lodash/_baseMerge.js +0 -42
  1641. data/node_modules/lodash/_baseMergeDeep.js +0 -94
  1642. data/node_modules/lodash/_baseNth.js +0 -20
  1643. data/node_modules/lodash/_baseOrderBy.js +0 -49
  1644. data/node_modules/lodash/_basePick.js +0 -19
  1645. data/node_modules/lodash/_basePickBy.js +0 -30
  1646. data/node_modules/lodash/_baseProperty.js +0 -14
  1647. data/node_modules/lodash/_basePropertyDeep.js +0 -16
  1648. data/node_modules/lodash/_basePropertyOf.js +0 -14
  1649. data/node_modules/lodash/_basePullAll.js +0 -51
  1650. data/node_modules/lodash/_basePullAt.js +0 -37
  1651. data/node_modules/lodash/_baseRandom.js +0 -18
  1652. data/node_modules/lodash/_baseRange.js +0 -28
  1653. data/node_modules/lodash/_baseReduce.js +0 -23
  1654. data/node_modules/lodash/_baseRepeat.js +0 -35
  1655. data/node_modules/lodash/_baseRest.js +0 -17
  1656. data/node_modules/lodash/_baseSample.js +0 -15
  1657. data/node_modules/lodash/_baseSampleSize.js +0 -18
  1658. data/node_modules/lodash/_baseSet.js +0 -51
  1659. data/node_modules/lodash/_baseSetData.js +0 -17
  1660. data/node_modules/lodash/_baseSetToString.js +0 -22
  1661. data/node_modules/lodash/_baseShuffle.js +0 -15
  1662. data/node_modules/lodash/_baseSlice.js +0 -31
  1663. data/node_modules/lodash/_baseSome.js +0 -22
  1664. data/node_modules/lodash/_baseSortBy.js +0 -21
  1665. data/node_modules/lodash/_baseSortedIndex.js +0 -42
  1666. data/node_modules/lodash/_baseSortedIndexBy.js +0 -67
  1667. data/node_modules/lodash/_baseSortedUniq.js +0 -30
  1668. data/node_modules/lodash/_baseSum.js +0 -24
  1669. data/node_modules/lodash/_baseTimes.js +0 -20
  1670. data/node_modules/lodash/_baseToNumber.js +0 -24
  1671. data/node_modules/lodash/_baseToPairs.js +0 -18
  1672. data/node_modules/lodash/_baseToString.js +0 -37
  1673. data/node_modules/lodash/_baseTrim.js +0 -19
  1674. data/node_modules/lodash/_baseUnary.js +0 -14
  1675. data/node_modules/lodash/_baseUniq.js +0 -72
  1676. data/node_modules/lodash/_baseUnset.js +0 -20
  1677. data/node_modules/lodash/_baseUpdate.js +0 -18
  1678. data/node_modules/lodash/_baseValues.js +0 -19
  1679. data/node_modules/lodash/_baseWhile.js +0 -26
  1680. data/node_modules/lodash/_baseWrapperValue.js +0 -25
  1681. data/node_modules/lodash/_baseXor.js +0 -36
  1682. data/node_modules/lodash/_baseZipObject.js +0 -23
  1683. data/node_modules/lodash/_cacheHas.js +0 -13
  1684. data/node_modules/lodash/_castArrayLikeObject.js +0 -14
  1685. data/node_modules/lodash/_castFunction.js +0 -14
  1686. data/node_modules/lodash/_castPath.js +0 -21
  1687. data/node_modules/lodash/_castRest.js +0 -14
  1688. data/node_modules/lodash/_castSlice.js +0 -18
  1689. data/node_modules/lodash/_charsEndIndex.js +0 -19
  1690. data/node_modules/lodash/_charsStartIndex.js +0 -20
  1691. data/node_modules/lodash/_cloneArrayBuffer.js +0 -16
  1692. data/node_modules/lodash/_cloneBuffer.js +0 -35
  1693. data/node_modules/lodash/_cloneDataView.js +0 -16
  1694. data/node_modules/lodash/_cloneRegExp.js +0 -17
  1695. data/node_modules/lodash/_cloneSymbol.js +0 -18
  1696. data/node_modules/lodash/_cloneTypedArray.js +0 -16
  1697. data/node_modules/lodash/_compareAscending.js +0 -41
  1698. data/node_modules/lodash/_compareMultiple.js +0 -44
  1699. data/node_modules/lodash/_composeArgs.js +0 -39
  1700. data/node_modules/lodash/_composeArgsRight.js +0 -41
  1701. data/node_modules/lodash/_copyArray.js +0 -20
  1702. data/node_modules/lodash/_copyObject.js +0 -40
  1703. data/node_modules/lodash/_copySymbols.js +0 -16
  1704. data/node_modules/lodash/_copySymbolsIn.js +0 -16
  1705. data/node_modules/lodash/_coreJsData.js +0 -6
  1706. data/node_modules/lodash/_countHolders.js +0 -21
  1707. data/node_modules/lodash/_createAggregator.js +0 -23
  1708. data/node_modules/lodash/_createAssigner.js +0 -37
  1709. data/node_modules/lodash/_createBaseEach.js +0 -32
  1710. data/node_modules/lodash/_createBaseFor.js +0 -25
  1711. data/node_modules/lodash/_createBind.js +0 -28
  1712. data/node_modules/lodash/_createCaseFirst.js +0 -33
  1713. data/node_modules/lodash/_createCompounder.js +0 -24
  1714. data/node_modules/lodash/_createCtor.js +0 -37
  1715. data/node_modules/lodash/_createCurry.js +0 -46
  1716. data/node_modules/lodash/_createFind.js +0 -25
  1717. data/node_modules/lodash/_createFlow.js +0 -78
  1718. data/node_modules/lodash/_createHybrid.js +0 -92
  1719. data/node_modules/lodash/_createInverter.js +0 -17
  1720. data/node_modules/lodash/_createMathOperation.js +0 -38
  1721. data/node_modules/lodash/_createOver.js +0 -27
  1722. data/node_modules/lodash/_createPadding.js +0 -33
  1723. data/node_modules/lodash/_createPartial.js +0 -43
  1724. data/node_modules/lodash/_createRange.js +0 -30
  1725. data/node_modules/lodash/_createRecurry.js +0 -56
  1726. data/node_modules/lodash/_createRelationalOperation.js +0 -20
  1727. data/node_modules/lodash/_createRound.js +0 -35
  1728. data/node_modules/lodash/_createSet.js +0 -19
  1729. data/node_modules/lodash/_createToPairs.js +0 -30
  1730. data/node_modules/lodash/_createWrap.js +0 -106
  1731. data/node_modules/lodash/_customDefaultsAssignIn.js +0 -29
  1732. data/node_modules/lodash/_customDefaultsMerge.js +0 -28
  1733. data/node_modules/lodash/_customOmitClone.js +0 -16
  1734. data/node_modules/lodash/_deburrLetter.js +0 -71
  1735. data/node_modules/lodash/_defineProperty.js +0 -11
  1736. data/node_modules/lodash/_equalArrays.js +0 -84
  1737. data/node_modules/lodash/_equalByTag.js +0 -112
  1738. data/node_modules/lodash/_equalObjects.js +0 -90
  1739. data/node_modules/lodash/_escapeHtmlChar.js +0 -21
  1740. data/node_modules/lodash/_escapeStringChar.js +0 -22
  1741. data/node_modules/lodash/_flatRest.js +0 -16
  1742. data/node_modules/lodash/_freeGlobal.js +0 -4
  1743. data/node_modules/lodash/_getAllKeys.js +0 -16
  1744. data/node_modules/lodash/_getAllKeysIn.js +0 -17
  1745. data/node_modules/lodash/_getData.js +0 -15
  1746. data/node_modules/lodash/_getFuncName.js +0 -31
  1747. data/node_modules/lodash/_getHolder.js +0 -13
  1748. data/node_modules/lodash/_getMapData.js +0 -18
  1749. data/node_modules/lodash/_getMatchData.js +0 -24
  1750. data/node_modules/lodash/_getNative.js +0 -17
  1751. data/node_modules/lodash/_getPrototype.js +0 -6
  1752. data/node_modules/lodash/_getRawTag.js +0 -46
  1753. data/node_modules/lodash/_getSymbols.js +0 -30
  1754. data/node_modules/lodash/_getSymbolsIn.js +0 -25
  1755. data/node_modules/lodash/_getTag.js +0 -58
  1756. data/node_modules/lodash/_getValue.js +0 -13
  1757. data/node_modules/lodash/_getView.js +0 -33
  1758. data/node_modules/lodash/_getWrapDetails.js +0 -17
  1759. data/node_modules/lodash/_hasPath.js +0 -39
  1760. data/node_modules/lodash/_hasUnicode.js +0 -26
  1761. data/node_modules/lodash/_hasUnicodeWord.js +0 -15
  1762. data/node_modules/lodash/_hashClear.js +0 -15
  1763. data/node_modules/lodash/_hashDelete.js +0 -17
  1764. data/node_modules/lodash/_hashGet.js +0 -30
  1765. data/node_modules/lodash/_hashHas.js +0 -23
  1766. data/node_modules/lodash/_hashSet.js +0 -23
  1767. data/node_modules/lodash/_initCloneArray.js +0 -26
  1768. data/node_modules/lodash/_initCloneByTag.js +0 -77
  1769. data/node_modules/lodash/_initCloneObject.js +0 -18
  1770. data/node_modules/lodash/_insertWrapDetails.js +0 -23
  1771. data/node_modules/lodash/_isFlattenable.js +0 -20
  1772. data/node_modules/lodash/_isIndex.js +0 -25
  1773. data/node_modules/lodash/_isIterateeCall.js +0 -30
  1774. data/node_modules/lodash/_isKey.js +0 -29
  1775. data/node_modules/lodash/_isKeyable.js +0 -15
  1776. data/node_modules/lodash/_isLaziable.js +0 -28
  1777. data/node_modules/lodash/_isMaskable.js +0 -14
  1778. data/node_modules/lodash/_isMasked.js +0 -20
  1779. data/node_modules/lodash/_isPrototype.js +0 -18
  1780. data/node_modules/lodash/_isStrictComparable.js +0 -15
  1781. data/node_modules/lodash/_iteratorToArray.js +0 -18
  1782. data/node_modules/lodash/_lazyClone.js +0 -23
  1783. data/node_modules/lodash/_lazyReverse.js +0 -23
  1784. data/node_modules/lodash/_lazyValue.js +0 -69
  1785. data/node_modules/lodash/_listCacheClear.js +0 -13
  1786. data/node_modules/lodash/_listCacheDelete.js +0 -35
  1787. data/node_modules/lodash/_listCacheGet.js +0 -19
  1788. data/node_modules/lodash/_listCacheHas.js +0 -16
  1789. data/node_modules/lodash/_listCacheSet.js +0 -26
  1790. data/node_modules/lodash/_mapCacheClear.js +0 -21
  1791. data/node_modules/lodash/_mapCacheDelete.js +0 -18
  1792. data/node_modules/lodash/_mapCacheGet.js +0 -16
  1793. data/node_modules/lodash/_mapCacheHas.js +0 -16
  1794. data/node_modules/lodash/_mapCacheSet.js +0 -22
  1795. data/node_modules/lodash/_mapToArray.js +0 -18
  1796. data/node_modules/lodash/_matchesStrictComparable.js +0 -20
  1797. data/node_modules/lodash/_memoizeCapped.js +0 -26
  1798. data/node_modules/lodash/_mergeData.js +0 -90
  1799. data/node_modules/lodash/_metaMap.js +0 -6
  1800. data/node_modules/lodash/_nativeCreate.js +0 -6
  1801. data/node_modules/lodash/_nativeKeys.js +0 -6
  1802. data/node_modules/lodash/_nativeKeysIn.js +0 -20
  1803. data/node_modules/lodash/_nodeUtil.js +0 -30
  1804. data/node_modules/lodash/_objectToString.js +0 -22
  1805. data/node_modules/lodash/_overArg.js +0 -15
  1806. data/node_modules/lodash/_overRest.js +0 -36
  1807. data/node_modules/lodash/_parent.js +0 -16
  1808. data/node_modules/lodash/_reEscape.js +0 -4
  1809. data/node_modules/lodash/_reEvaluate.js +0 -4
  1810. data/node_modules/lodash/_reInterpolate.js +0 -4
  1811. data/node_modules/lodash/_realNames.js +0 -4
  1812. data/node_modules/lodash/_reorder.js +0 -29
  1813. data/node_modules/lodash/_replaceHolders.js +0 -29
  1814. data/node_modules/lodash/_root.js +0 -9
  1815. data/node_modules/lodash/_safeGet.js +0 -21
  1816. data/node_modules/lodash/_setCacheAdd.js +0 -19
  1817. data/node_modules/lodash/_setCacheHas.js +0 -14
  1818. data/node_modules/lodash/_setData.js +0 -20
  1819. data/node_modules/lodash/_setToArray.js +0 -18
  1820. data/node_modules/lodash/_setToPairs.js +0 -18
  1821. data/node_modules/lodash/_setToString.js +0 -14
  1822. data/node_modules/lodash/_setWrapToString.js +0 -21
  1823. data/node_modules/lodash/_shortOut.js +0 -37
  1824. data/node_modules/lodash/_shuffleSelf.js +0 -28
  1825. data/node_modules/lodash/_stackClear.js +0 -15
  1826. data/node_modules/lodash/_stackDelete.js +0 -18
  1827. data/node_modules/lodash/_stackGet.js +0 -14
  1828. data/node_modules/lodash/_stackHas.js +0 -14
  1829. data/node_modules/lodash/_stackSet.js +0 -34
  1830. data/node_modules/lodash/_strictIndexOf.js +0 -23
  1831. data/node_modules/lodash/_strictLastIndexOf.js +0 -21
  1832. data/node_modules/lodash/_stringSize.js +0 -18
  1833. data/node_modules/lodash/_stringToArray.js +0 -18
  1834. data/node_modules/lodash/_stringToPath.js +0 -27
  1835. data/node_modules/lodash/_toKey.js +0 -21
  1836. data/node_modules/lodash/_toSource.js +0 -26
  1837. data/node_modules/lodash/_trimmedEndIndex.js +0 -19
  1838. data/node_modules/lodash/_unescapeHtmlChar.js +0 -21
  1839. data/node_modules/lodash/_unicodeSize.js +0 -44
  1840. data/node_modules/lodash/_unicodeToArray.js +0 -40
  1841. data/node_modules/lodash/_unicodeWords.js +0 -69
  1842. data/node_modules/lodash/_updateWrapDetails.js +0 -46
  1843. data/node_modules/lodash/_wrapperClone.js +0 -23
  1844. data/node_modules/lodash/add.js +0 -22
  1845. data/node_modules/lodash/after.js +0 -42
  1846. data/node_modules/lodash/array.js +0 -67
  1847. data/node_modules/lodash/ary.js +0 -29
  1848. data/node_modules/lodash/assign.js +0 -58
  1849. data/node_modules/lodash/assignIn.js +0 -40
  1850. data/node_modules/lodash/assignInWith.js +0 -38
  1851. data/node_modules/lodash/assignWith.js +0 -37
  1852. data/node_modules/lodash/at.js +0 -23
  1853. data/node_modules/lodash/attempt.js +0 -35
  1854. data/node_modules/lodash/before.js +0 -40
  1855. data/node_modules/lodash/bind.js +0 -57
  1856. data/node_modules/lodash/bindAll.js +0 -41
  1857. data/node_modules/lodash/bindKey.js +0 -68
  1858. data/node_modules/lodash/camelCase.js +0 -29
  1859. data/node_modules/lodash/capitalize.js +0 -23
  1860. data/node_modules/lodash/castArray.js +0 -44
  1861. data/node_modules/lodash/ceil.js +0 -26
  1862. data/node_modules/lodash/chain.js +0 -38
  1863. data/node_modules/lodash/chunk.js +0 -50
  1864. data/node_modules/lodash/clamp.js +0 -39
  1865. data/node_modules/lodash/clone.js +0 -36
  1866. data/node_modules/lodash/cloneDeep.js +0 -29
  1867. data/node_modules/lodash/cloneDeepWith.js +0 -40
  1868. data/node_modules/lodash/cloneWith.js +0 -42
  1869. data/node_modules/lodash/collection.js +0 -30
  1870. data/node_modules/lodash/commit.js +0 -33
  1871. data/node_modules/lodash/compact.js +0 -31
  1872. data/node_modules/lodash/concat.js +0 -43
  1873. data/node_modules/lodash/cond.js +0 -60
  1874. data/node_modules/lodash/conforms.js +0 -35
  1875. data/node_modules/lodash/conformsTo.js +0 -32
  1876. data/node_modules/lodash/constant.js +0 -26
  1877. data/node_modules/lodash/core.js +0 -3877
  1878. data/node_modules/lodash/core.min.js +0 -29
  1879. data/node_modules/lodash/countBy.js +0 -40
  1880. data/node_modules/lodash/create.js +0 -43
  1881. data/node_modules/lodash/curry.js +0 -57
  1882. data/node_modules/lodash/curryRight.js +0 -54
  1883. data/node_modules/lodash/date.js +0 -3
  1884. data/node_modules/lodash/debounce.js +0 -191
  1885. data/node_modules/lodash/deburr.js +0 -45
  1886. data/node_modules/lodash/defaultTo.js +0 -25
  1887. data/node_modules/lodash/defaults.js +0 -64
  1888. data/node_modules/lodash/defaultsDeep.js +0 -30
  1889. data/node_modules/lodash/defer.js +0 -26
  1890. data/node_modules/lodash/delay.js +0 -28
  1891. data/node_modules/lodash/difference.js +0 -33
  1892. data/node_modules/lodash/differenceBy.js +0 -44
  1893. data/node_modules/lodash/differenceWith.js +0 -40
  1894. data/node_modules/lodash/divide.js +0 -22
  1895. data/node_modules/lodash/drop.js +0 -38
  1896. data/node_modules/lodash/dropRight.js +0 -39
  1897. data/node_modules/lodash/dropRightWhile.js +0 -45
  1898. data/node_modules/lodash/dropWhile.js +0 -45
  1899. data/node_modules/lodash/each.js +0 -1
  1900. data/node_modules/lodash/eachRight.js +0 -1
  1901. data/node_modules/lodash/endsWith.js +0 -43
  1902. data/node_modules/lodash/entries.js +0 -1
  1903. data/node_modules/lodash/entriesIn.js +0 -1
  1904. data/node_modules/lodash/eq.js +0 -37
  1905. data/node_modules/lodash/escape.js +0 -43
  1906. data/node_modules/lodash/escapeRegExp.js +0 -32
  1907. data/node_modules/lodash/every.js +0 -56
  1908. data/node_modules/lodash/extend.js +0 -1
  1909. data/node_modules/lodash/extendWith.js +0 -1
  1910. data/node_modules/lodash/fill.js +0 -45
  1911. data/node_modules/lodash/filter.js +0 -52
  1912. data/node_modules/lodash/find.js +0 -42
  1913. data/node_modules/lodash/findIndex.js +0 -55
  1914. data/node_modules/lodash/findKey.js +0 -44
  1915. data/node_modules/lodash/findLast.js +0 -25
  1916. data/node_modules/lodash/findLastIndex.js +0 -59
  1917. data/node_modules/lodash/findLastKey.js +0 -44
  1918. data/node_modules/lodash/first.js +0 -1
  1919. data/node_modules/lodash/flake.lock +0 -40
  1920. data/node_modules/lodash/flake.nix +0 -20
  1921. data/node_modules/lodash/flatMap.js +0 -29
  1922. data/node_modules/lodash/flatMapDeep.js +0 -31
  1923. data/node_modules/lodash/flatMapDepth.js +0 -31
  1924. data/node_modules/lodash/flatten.js +0 -22
  1925. data/node_modules/lodash/flattenDeep.js +0 -25
  1926. data/node_modules/lodash/flattenDepth.js +0 -33
  1927. data/node_modules/lodash/flip.js +0 -28
  1928. data/node_modules/lodash/floor.js +0 -26
  1929. data/node_modules/lodash/flow.js +0 -27
  1930. data/node_modules/lodash/flowRight.js +0 -26
  1931. data/node_modules/lodash/forEach.js +0 -41
  1932. data/node_modules/lodash/forEachRight.js +0 -31
  1933. data/node_modules/lodash/forIn.js +0 -39
  1934. data/node_modules/lodash/forInRight.js +0 -37
  1935. data/node_modules/lodash/forOwn.js +0 -36
  1936. data/node_modules/lodash/forOwnRight.js +0 -34
  1937. data/node_modules/lodash/fp/F.js +0 -1
  1938. data/node_modules/lodash/fp/T.js +0 -1
  1939. data/node_modules/lodash/fp/__.js +0 -1
  1940. data/node_modules/lodash/fp/_baseConvert.js +0 -569
  1941. data/node_modules/lodash/fp/_convertBrowser.js +0 -18
  1942. data/node_modules/lodash/fp/_falseOptions.js +0 -7
  1943. data/node_modules/lodash/fp/_mapping.js +0 -358
  1944. data/node_modules/lodash/fp/_util.js +0 -16
  1945. data/node_modules/lodash/fp/add.js +0 -5
  1946. data/node_modules/lodash/fp/after.js +0 -5
  1947. data/node_modules/lodash/fp/all.js +0 -1
  1948. data/node_modules/lodash/fp/allPass.js +0 -1
  1949. data/node_modules/lodash/fp/always.js +0 -1
  1950. data/node_modules/lodash/fp/any.js +0 -1
  1951. data/node_modules/lodash/fp/anyPass.js +0 -1
  1952. data/node_modules/lodash/fp/apply.js +0 -1
  1953. data/node_modules/lodash/fp/array.js +0 -2
  1954. data/node_modules/lodash/fp/ary.js +0 -5
  1955. data/node_modules/lodash/fp/assign.js +0 -5
  1956. data/node_modules/lodash/fp/assignAll.js +0 -5
  1957. data/node_modules/lodash/fp/assignAllWith.js +0 -5
  1958. data/node_modules/lodash/fp/assignIn.js +0 -5
  1959. data/node_modules/lodash/fp/assignInAll.js +0 -5
  1960. data/node_modules/lodash/fp/assignInAllWith.js +0 -5
  1961. data/node_modules/lodash/fp/assignInWith.js +0 -5
  1962. data/node_modules/lodash/fp/assignWith.js +0 -5
  1963. data/node_modules/lodash/fp/assoc.js +0 -1
  1964. data/node_modules/lodash/fp/assocPath.js +0 -1
  1965. data/node_modules/lodash/fp/at.js +0 -5
  1966. data/node_modules/lodash/fp/attempt.js +0 -5
  1967. data/node_modules/lodash/fp/before.js +0 -5
  1968. data/node_modules/lodash/fp/bind.js +0 -5
  1969. data/node_modules/lodash/fp/bindAll.js +0 -5
  1970. data/node_modules/lodash/fp/bindKey.js +0 -5
  1971. data/node_modules/lodash/fp/camelCase.js +0 -5
  1972. data/node_modules/lodash/fp/capitalize.js +0 -5
  1973. data/node_modules/lodash/fp/castArray.js +0 -5
  1974. data/node_modules/lodash/fp/ceil.js +0 -5
  1975. data/node_modules/lodash/fp/chain.js +0 -5
  1976. data/node_modules/lodash/fp/chunk.js +0 -5
  1977. data/node_modules/lodash/fp/clamp.js +0 -5
  1978. data/node_modules/lodash/fp/clone.js +0 -5
  1979. data/node_modules/lodash/fp/cloneDeep.js +0 -5
  1980. data/node_modules/lodash/fp/cloneDeepWith.js +0 -5
  1981. data/node_modules/lodash/fp/cloneWith.js +0 -5
  1982. data/node_modules/lodash/fp/collection.js +0 -2
  1983. data/node_modules/lodash/fp/commit.js +0 -5
  1984. data/node_modules/lodash/fp/compact.js +0 -5
  1985. data/node_modules/lodash/fp/complement.js +0 -1
  1986. data/node_modules/lodash/fp/compose.js +0 -1
  1987. data/node_modules/lodash/fp/concat.js +0 -5
  1988. data/node_modules/lodash/fp/cond.js +0 -5
  1989. data/node_modules/lodash/fp/conforms.js +0 -1
  1990. data/node_modules/lodash/fp/conformsTo.js +0 -5
  1991. data/node_modules/lodash/fp/constant.js +0 -5
  1992. data/node_modules/lodash/fp/contains.js +0 -1
  1993. data/node_modules/lodash/fp/convert.js +0 -18
  1994. data/node_modules/lodash/fp/countBy.js +0 -5
  1995. data/node_modules/lodash/fp/create.js +0 -5
  1996. data/node_modules/lodash/fp/curry.js +0 -5
  1997. data/node_modules/lodash/fp/curryN.js +0 -5
  1998. data/node_modules/lodash/fp/curryRight.js +0 -5
  1999. data/node_modules/lodash/fp/curryRightN.js +0 -5
  2000. data/node_modules/lodash/fp/date.js +0 -2
  2001. data/node_modules/lodash/fp/debounce.js +0 -5
  2002. data/node_modules/lodash/fp/deburr.js +0 -5
  2003. data/node_modules/lodash/fp/defaultTo.js +0 -5
  2004. data/node_modules/lodash/fp/defaults.js +0 -5
  2005. data/node_modules/lodash/fp/defaultsAll.js +0 -5
  2006. data/node_modules/lodash/fp/defaultsDeep.js +0 -5
  2007. data/node_modules/lodash/fp/defaultsDeepAll.js +0 -5
  2008. data/node_modules/lodash/fp/defer.js +0 -5
  2009. data/node_modules/lodash/fp/delay.js +0 -5
  2010. data/node_modules/lodash/fp/difference.js +0 -5
  2011. data/node_modules/lodash/fp/differenceBy.js +0 -5
  2012. data/node_modules/lodash/fp/differenceWith.js +0 -5
  2013. data/node_modules/lodash/fp/dissoc.js +0 -1
  2014. data/node_modules/lodash/fp/dissocPath.js +0 -1
  2015. data/node_modules/lodash/fp/divide.js +0 -5
  2016. data/node_modules/lodash/fp/drop.js +0 -5
  2017. data/node_modules/lodash/fp/dropLast.js +0 -1
  2018. data/node_modules/lodash/fp/dropLastWhile.js +0 -1
  2019. data/node_modules/lodash/fp/dropRight.js +0 -5
  2020. data/node_modules/lodash/fp/dropRightWhile.js +0 -5
  2021. data/node_modules/lodash/fp/dropWhile.js +0 -5
  2022. data/node_modules/lodash/fp/each.js +0 -1
  2023. data/node_modules/lodash/fp/eachRight.js +0 -1
  2024. data/node_modules/lodash/fp/endsWith.js +0 -5
  2025. data/node_modules/lodash/fp/entries.js +0 -1
  2026. data/node_modules/lodash/fp/entriesIn.js +0 -1
  2027. data/node_modules/lodash/fp/eq.js +0 -5
  2028. data/node_modules/lodash/fp/equals.js +0 -1
  2029. data/node_modules/lodash/fp/escape.js +0 -5
  2030. data/node_modules/lodash/fp/escapeRegExp.js +0 -5
  2031. data/node_modules/lodash/fp/every.js +0 -5
  2032. data/node_modules/lodash/fp/extend.js +0 -1
  2033. data/node_modules/lodash/fp/extendAll.js +0 -1
  2034. data/node_modules/lodash/fp/extendAllWith.js +0 -1
  2035. data/node_modules/lodash/fp/extendWith.js +0 -1
  2036. data/node_modules/lodash/fp/fill.js +0 -5
  2037. data/node_modules/lodash/fp/filter.js +0 -5
  2038. data/node_modules/lodash/fp/find.js +0 -5
  2039. data/node_modules/lodash/fp/findFrom.js +0 -5
  2040. data/node_modules/lodash/fp/findIndex.js +0 -5
  2041. data/node_modules/lodash/fp/findIndexFrom.js +0 -5
  2042. data/node_modules/lodash/fp/findKey.js +0 -5
  2043. data/node_modules/lodash/fp/findLast.js +0 -5
  2044. data/node_modules/lodash/fp/findLastFrom.js +0 -5
  2045. data/node_modules/lodash/fp/findLastIndex.js +0 -5
  2046. data/node_modules/lodash/fp/findLastIndexFrom.js +0 -5
  2047. data/node_modules/lodash/fp/findLastKey.js +0 -5
  2048. data/node_modules/lodash/fp/first.js +0 -1
  2049. data/node_modules/lodash/fp/flatMap.js +0 -5
  2050. data/node_modules/lodash/fp/flatMapDeep.js +0 -5
  2051. data/node_modules/lodash/fp/flatMapDepth.js +0 -5
  2052. data/node_modules/lodash/fp/flatten.js +0 -5
  2053. data/node_modules/lodash/fp/flattenDeep.js +0 -5
  2054. data/node_modules/lodash/fp/flattenDepth.js +0 -5
  2055. data/node_modules/lodash/fp/flip.js +0 -5
  2056. data/node_modules/lodash/fp/floor.js +0 -5
  2057. data/node_modules/lodash/fp/flow.js +0 -5
  2058. data/node_modules/lodash/fp/flowRight.js +0 -5
  2059. data/node_modules/lodash/fp/forEach.js +0 -5
  2060. data/node_modules/lodash/fp/forEachRight.js +0 -5
  2061. data/node_modules/lodash/fp/forIn.js +0 -5
  2062. data/node_modules/lodash/fp/forInRight.js +0 -5
  2063. data/node_modules/lodash/fp/forOwn.js +0 -5
  2064. data/node_modules/lodash/fp/forOwnRight.js +0 -5
  2065. data/node_modules/lodash/fp/fromPairs.js +0 -5
  2066. data/node_modules/lodash/fp/function.js +0 -2
  2067. data/node_modules/lodash/fp/functions.js +0 -5
  2068. data/node_modules/lodash/fp/functionsIn.js +0 -5
  2069. data/node_modules/lodash/fp/get.js +0 -5
  2070. data/node_modules/lodash/fp/getOr.js +0 -5
  2071. data/node_modules/lodash/fp/groupBy.js +0 -5
  2072. data/node_modules/lodash/fp/gt.js +0 -5
  2073. data/node_modules/lodash/fp/gte.js +0 -5
  2074. data/node_modules/lodash/fp/has.js +0 -5
  2075. data/node_modules/lodash/fp/hasIn.js +0 -5
  2076. data/node_modules/lodash/fp/head.js +0 -5
  2077. data/node_modules/lodash/fp/identical.js +0 -1
  2078. data/node_modules/lodash/fp/identity.js +0 -5
  2079. data/node_modules/lodash/fp/inRange.js +0 -5
  2080. data/node_modules/lodash/fp/includes.js +0 -5
  2081. data/node_modules/lodash/fp/includesFrom.js +0 -5
  2082. data/node_modules/lodash/fp/indexBy.js +0 -1
  2083. data/node_modules/lodash/fp/indexOf.js +0 -5
  2084. data/node_modules/lodash/fp/indexOfFrom.js +0 -5
  2085. data/node_modules/lodash/fp/init.js +0 -1
  2086. data/node_modules/lodash/fp/initial.js +0 -5
  2087. data/node_modules/lodash/fp/intersection.js +0 -5
  2088. data/node_modules/lodash/fp/intersectionBy.js +0 -5
  2089. data/node_modules/lodash/fp/intersectionWith.js +0 -5
  2090. data/node_modules/lodash/fp/invert.js +0 -5
  2091. data/node_modules/lodash/fp/invertBy.js +0 -5
  2092. data/node_modules/lodash/fp/invertObj.js +0 -1
  2093. data/node_modules/lodash/fp/invoke.js +0 -5
  2094. data/node_modules/lodash/fp/invokeArgs.js +0 -5
  2095. data/node_modules/lodash/fp/invokeArgsMap.js +0 -5
  2096. data/node_modules/lodash/fp/invokeMap.js +0 -5
  2097. data/node_modules/lodash/fp/isArguments.js +0 -5
  2098. data/node_modules/lodash/fp/isArray.js +0 -5
  2099. data/node_modules/lodash/fp/isArrayBuffer.js +0 -5
  2100. data/node_modules/lodash/fp/isArrayLike.js +0 -5
  2101. data/node_modules/lodash/fp/isArrayLikeObject.js +0 -5
  2102. data/node_modules/lodash/fp/isBoolean.js +0 -5
  2103. data/node_modules/lodash/fp/isBuffer.js +0 -5
  2104. data/node_modules/lodash/fp/isDate.js +0 -5
  2105. data/node_modules/lodash/fp/isElement.js +0 -5
  2106. data/node_modules/lodash/fp/isEmpty.js +0 -5
  2107. data/node_modules/lodash/fp/isEqual.js +0 -5
  2108. data/node_modules/lodash/fp/isEqualWith.js +0 -5
  2109. data/node_modules/lodash/fp/isError.js +0 -5
  2110. data/node_modules/lodash/fp/isFinite.js +0 -5
  2111. data/node_modules/lodash/fp/isFunction.js +0 -5
  2112. data/node_modules/lodash/fp/isInteger.js +0 -5
  2113. data/node_modules/lodash/fp/isLength.js +0 -5
  2114. data/node_modules/lodash/fp/isMap.js +0 -5
  2115. data/node_modules/lodash/fp/isMatch.js +0 -5
  2116. data/node_modules/lodash/fp/isMatchWith.js +0 -5
  2117. data/node_modules/lodash/fp/isNaN.js +0 -5
  2118. data/node_modules/lodash/fp/isNative.js +0 -5
  2119. data/node_modules/lodash/fp/isNil.js +0 -5
  2120. data/node_modules/lodash/fp/isNull.js +0 -5
  2121. data/node_modules/lodash/fp/isNumber.js +0 -5
  2122. data/node_modules/lodash/fp/isObject.js +0 -5
  2123. data/node_modules/lodash/fp/isObjectLike.js +0 -5
  2124. data/node_modules/lodash/fp/isPlainObject.js +0 -5
  2125. data/node_modules/lodash/fp/isRegExp.js +0 -5
  2126. data/node_modules/lodash/fp/isSafeInteger.js +0 -5
  2127. data/node_modules/lodash/fp/isSet.js +0 -5
  2128. data/node_modules/lodash/fp/isString.js +0 -5
  2129. data/node_modules/lodash/fp/isSymbol.js +0 -5
  2130. data/node_modules/lodash/fp/isTypedArray.js +0 -5
  2131. data/node_modules/lodash/fp/isUndefined.js +0 -5
  2132. data/node_modules/lodash/fp/isWeakMap.js +0 -5
  2133. data/node_modules/lodash/fp/isWeakSet.js +0 -5
  2134. data/node_modules/lodash/fp/iteratee.js +0 -5
  2135. data/node_modules/lodash/fp/join.js +0 -5
  2136. data/node_modules/lodash/fp/juxt.js +0 -1
  2137. data/node_modules/lodash/fp/kebabCase.js +0 -5
  2138. data/node_modules/lodash/fp/keyBy.js +0 -5
  2139. data/node_modules/lodash/fp/keys.js +0 -5
  2140. data/node_modules/lodash/fp/keysIn.js +0 -5
  2141. data/node_modules/lodash/fp/lang.js +0 -2
  2142. data/node_modules/lodash/fp/last.js +0 -5
  2143. data/node_modules/lodash/fp/lastIndexOf.js +0 -5
  2144. data/node_modules/lodash/fp/lastIndexOfFrom.js +0 -5
  2145. data/node_modules/lodash/fp/lowerCase.js +0 -5
  2146. data/node_modules/lodash/fp/lowerFirst.js +0 -5
  2147. data/node_modules/lodash/fp/lt.js +0 -5
  2148. data/node_modules/lodash/fp/lte.js +0 -5
  2149. data/node_modules/lodash/fp/map.js +0 -5
  2150. data/node_modules/lodash/fp/mapKeys.js +0 -5
  2151. data/node_modules/lodash/fp/mapValues.js +0 -5
  2152. data/node_modules/lodash/fp/matches.js +0 -1
  2153. data/node_modules/lodash/fp/matchesProperty.js +0 -5
  2154. data/node_modules/lodash/fp/math.js +0 -2
  2155. data/node_modules/lodash/fp/max.js +0 -5
  2156. data/node_modules/lodash/fp/maxBy.js +0 -5
  2157. data/node_modules/lodash/fp/mean.js +0 -5
  2158. data/node_modules/lodash/fp/meanBy.js +0 -5
  2159. data/node_modules/lodash/fp/memoize.js +0 -5
  2160. data/node_modules/lodash/fp/merge.js +0 -5
  2161. data/node_modules/lodash/fp/mergeAll.js +0 -5
  2162. data/node_modules/lodash/fp/mergeAllWith.js +0 -5
  2163. data/node_modules/lodash/fp/mergeWith.js +0 -5
  2164. data/node_modules/lodash/fp/method.js +0 -5
  2165. data/node_modules/lodash/fp/methodOf.js +0 -5
  2166. data/node_modules/lodash/fp/min.js +0 -5
  2167. data/node_modules/lodash/fp/minBy.js +0 -5
  2168. data/node_modules/lodash/fp/mixin.js +0 -5
  2169. data/node_modules/lodash/fp/multiply.js +0 -5
  2170. data/node_modules/lodash/fp/nAry.js +0 -1
  2171. data/node_modules/lodash/fp/negate.js +0 -5
  2172. data/node_modules/lodash/fp/next.js +0 -5
  2173. data/node_modules/lodash/fp/noop.js +0 -5
  2174. data/node_modules/lodash/fp/now.js +0 -5
  2175. data/node_modules/lodash/fp/nth.js +0 -5
  2176. data/node_modules/lodash/fp/nthArg.js +0 -5
  2177. data/node_modules/lodash/fp/number.js +0 -2
  2178. data/node_modules/lodash/fp/object.js +0 -2
  2179. data/node_modules/lodash/fp/omit.js +0 -5
  2180. data/node_modules/lodash/fp/omitAll.js +0 -1
  2181. data/node_modules/lodash/fp/omitBy.js +0 -5
  2182. data/node_modules/lodash/fp/once.js +0 -5
  2183. data/node_modules/lodash/fp/orderBy.js +0 -5
  2184. data/node_modules/lodash/fp/over.js +0 -5
  2185. data/node_modules/lodash/fp/overArgs.js +0 -5
  2186. data/node_modules/lodash/fp/overEvery.js +0 -5
  2187. data/node_modules/lodash/fp/overSome.js +0 -5
  2188. data/node_modules/lodash/fp/pad.js +0 -5
  2189. data/node_modules/lodash/fp/padChars.js +0 -5
  2190. data/node_modules/lodash/fp/padCharsEnd.js +0 -5
  2191. data/node_modules/lodash/fp/padCharsStart.js +0 -5
  2192. data/node_modules/lodash/fp/padEnd.js +0 -5
  2193. data/node_modules/lodash/fp/padStart.js +0 -5
  2194. data/node_modules/lodash/fp/parseInt.js +0 -5
  2195. data/node_modules/lodash/fp/partial.js +0 -5
  2196. data/node_modules/lodash/fp/partialRight.js +0 -5
  2197. data/node_modules/lodash/fp/partition.js +0 -5
  2198. data/node_modules/lodash/fp/path.js +0 -1
  2199. data/node_modules/lodash/fp/pathEq.js +0 -1
  2200. data/node_modules/lodash/fp/pathOr.js +0 -1
  2201. data/node_modules/lodash/fp/paths.js +0 -1
  2202. data/node_modules/lodash/fp/pick.js +0 -5
  2203. data/node_modules/lodash/fp/pickAll.js +0 -1
  2204. data/node_modules/lodash/fp/pickBy.js +0 -5
  2205. data/node_modules/lodash/fp/pipe.js +0 -1
  2206. data/node_modules/lodash/fp/placeholder.js +0 -6
  2207. data/node_modules/lodash/fp/plant.js +0 -5
  2208. data/node_modules/lodash/fp/pluck.js +0 -1
  2209. data/node_modules/lodash/fp/prop.js +0 -1
  2210. data/node_modules/lodash/fp/propEq.js +0 -1
  2211. data/node_modules/lodash/fp/propOr.js +0 -1
  2212. data/node_modules/lodash/fp/property.js +0 -1
  2213. data/node_modules/lodash/fp/propertyOf.js +0 -5
  2214. data/node_modules/lodash/fp/props.js +0 -1
  2215. data/node_modules/lodash/fp/pull.js +0 -5
  2216. data/node_modules/lodash/fp/pullAll.js +0 -5
  2217. data/node_modules/lodash/fp/pullAllBy.js +0 -5
  2218. data/node_modules/lodash/fp/pullAllWith.js +0 -5
  2219. data/node_modules/lodash/fp/pullAt.js +0 -5
  2220. data/node_modules/lodash/fp/random.js +0 -5
  2221. data/node_modules/lodash/fp/range.js +0 -5
  2222. data/node_modules/lodash/fp/rangeRight.js +0 -5
  2223. data/node_modules/lodash/fp/rangeStep.js +0 -5
  2224. data/node_modules/lodash/fp/rangeStepRight.js +0 -5
  2225. data/node_modules/lodash/fp/rearg.js +0 -5
  2226. data/node_modules/lodash/fp/reduce.js +0 -5
  2227. data/node_modules/lodash/fp/reduceRight.js +0 -5
  2228. data/node_modules/lodash/fp/reject.js +0 -5
  2229. data/node_modules/lodash/fp/remove.js +0 -5
  2230. data/node_modules/lodash/fp/repeat.js +0 -5
  2231. data/node_modules/lodash/fp/replace.js +0 -5
  2232. data/node_modules/lodash/fp/rest.js +0 -5
  2233. data/node_modules/lodash/fp/restFrom.js +0 -5
  2234. data/node_modules/lodash/fp/result.js +0 -5
  2235. data/node_modules/lodash/fp/reverse.js +0 -5
  2236. data/node_modules/lodash/fp/round.js +0 -5
  2237. data/node_modules/lodash/fp/sample.js +0 -5
  2238. data/node_modules/lodash/fp/sampleSize.js +0 -5
  2239. data/node_modules/lodash/fp/seq.js +0 -2
  2240. data/node_modules/lodash/fp/set.js +0 -5
  2241. data/node_modules/lodash/fp/setWith.js +0 -5
  2242. data/node_modules/lodash/fp/shuffle.js +0 -5
  2243. data/node_modules/lodash/fp/size.js +0 -5
  2244. data/node_modules/lodash/fp/slice.js +0 -5
  2245. data/node_modules/lodash/fp/snakeCase.js +0 -5
  2246. data/node_modules/lodash/fp/some.js +0 -5
  2247. data/node_modules/lodash/fp/sortBy.js +0 -5
  2248. data/node_modules/lodash/fp/sortedIndex.js +0 -5
  2249. data/node_modules/lodash/fp/sortedIndexBy.js +0 -5
  2250. data/node_modules/lodash/fp/sortedIndexOf.js +0 -5
  2251. data/node_modules/lodash/fp/sortedLastIndex.js +0 -5
  2252. data/node_modules/lodash/fp/sortedLastIndexBy.js +0 -5
  2253. data/node_modules/lodash/fp/sortedLastIndexOf.js +0 -5
  2254. data/node_modules/lodash/fp/sortedUniq.js +0 -5
  2255. data/node_modules/lodash/fp/sortedUniqBy.js +0 -5
  2256. data/node_modules/lodash/fp/split.js +0 -5
  2257. data/node_modules/lodash/fp/spread.js +0 -5
  2258. data/node_modules/lodash/fp/spreadFrom.js +0 -5
  2259. data/node_modules/lodash/fp/startCase.js +0 -5
  2260. data/node_modules/lodash/fp/startsWith.js +0 -5
  2261. data/node_modules/lodash/fp/string.js +0 -2
  2262. data/node_modules/lodash/fp/stubArray.js +0 -5
  2263. data/node_modules/lodash/fp/stubFalse.js +0 -5
  2264. data/node_modules/lodash/fp/stubObject.js +0 -5
  2265. data/node_modules/lodash/fp/stubString.js +0 -5
  2266. data/node_modules/lodash/fp/stubTrue.js +0 -5
  2267. data/node_modules/lodash/fp/subtract.js +0 -5
  2268. data/node_modules/lodash/fp/sum.js +0 -5
  2269. data/node_modules/lodash/fp/sumBy.js +0 -5
  2270. data/node_modules/lodash/fp/symmetricDifference.js +0 -1
  2271. data/node_modules/lodash/fp/symmetricDifferenceBy.js +0 -1
  2272. data/node_modules/lodash/fp/symmetricDifferenceWith.js +0 -1
  2273. data/node_modules/lodash/fp/tail.js +0 -5
  2274. data/node_modules/lodash/fp/take.js +0 -5
  2275. data/node_modules/lodash/fp/takeLast.js +0 -1
  2276. data/node_modules/lodash/fp/takeLastWhile.js +0 -1
  2277. data/node_modules/lodash/fp/takeRight.js +0 -5
  2278. data/node_modules/lodash/fp/takeRightWhile.js +0 -5
  2279. data/node_modules/lodash/fp/takeWhile.js +0 -5
  2280. data/node_modules/lodash/fp/tap.js +0 -5
  2281. data/node_modules/lodash/fp/template.js +0 -5
  2282. data/node_modules/lodash/fp/templateSettings.js +0 -5
  2283. data/node_modules/lodash/fp/throttle.js +0 -5
  2284. data/node_modules/lodash/fp/thru.js +0 -5
  2285. data/node_modules/lodash/fp/times.js +0 -5
  2286. data/node_modules/lodash/fp/toArray.js +0 -5
  2287. data/node_modules/lodash/fp/toFinite.js +0 -5
  2288. data/node_modules/lodash/fp/toInteger.js +0 -5
  2289. data/node_modules/lodash/fp/toIterator.js +0 -5
  2290. data/node_modules/lodash/fp/toJSON.js +0 -5
  2291. data/node_modules/lodash/fp/toLength.js +0 -5
  2292. data/node_modules/lodash/fp/toLower.js +0 -5
  2293. data/node_modules/lodash/fp/toNumber.js +0 -5
  2294. data/node_modules/lodash/fp/toPairs.js +0 -5
  2295. data/node_modules/lodash/fp/toPairsIn.js +0 -5
  2296. data/node_modules/lodash/fp/toPath.js +0 -5
  2297. data/node_modules/lodash/fp/toPlainObject.js +0 -5
  2298. data/node_modules/lodash/fp/toSafeInteger.js +0 -5
  2299. data/node_modules/lodash/fp/toString.js +0 -5
  2300. data/node_modules/lodash/fp/toUpper.js +0 -5
  2301. data/node_modules/lodash/fp/transform.js +0 -5
  2302. data/node_modules/lodash/fp/trim.js +0 -5
  2303. data/node_modules/lodash/fp/trimChars.js +0 -5
  2304. data/node_modules/lodash/fp/trimCharsEnd.js +0 -5
  2305. data/node_modules/lodash/fp/trimCharsStart.js +0 -5
  2306. data/node_modules/lodash/fp/trimEnd.js +0 -5
  2307. data/node_modules/lodash/fp/trimStart.js +0 -5
  2308. data/node_modules/lodash/fp/truncate.js +0 -5
  2309. data/node_modules/lodash/fp/unapply.js +0 -1
  2310. data/node_modules/lodash/fp/unary.js +0 -5
  2311. data/node_modules/lodash/fp/unescape.js +0 -5
  2312. data/node_modules/lodash/fp/union.js +0 -5
  2313. data/node_modules/lodash/fp/unionBy.js +0 -5
  2314. data/node_modules/lodash/fp/unionWith.js +0 -5
  2315. data/node_modules/lodash/fp/uniq.js +0 -5
  2316. data/node_modules/lodash/fp/uniqBy.js +0 -5
  2317. data/node_modules/lodash/fp/uniqWith.js +0 -5
  2318. data/node_modules/lodash/fp/uniqueId.js +0 -5
  2319. data/node_modules/lodash/fp/unnest.js +0 -1
  2320. data/node_modules/lodash/fp/unset.js +0 -5
  2321. data/node_modules/lodash/fp/unzip.js +0 -5
  2322. data/node_modules/lodash/fp/unzipWith.js +0 -5
  2323. data/node_modules/lodash/fp/update.js +0 -5
  2324. data/node_modules/lodash/fp/updateWith.js +0 -5
  2325. data/node_modules/lodash/fp/upperCase.js +0 -5
  2326. data/node_modules/lodash/fp/upperFirst.js +0 -5
  2327. data/node_modules/lodash/fp/useWith.js +0 -1
  2328. data/node_modules/lodash/fp/util.js +0 -2
  2329. data/node_modules/lodash/fp/value.js +0 -5
  2330. data/node_modules/lodash/fp/valueOf.js +0 -5
  2331. data/node_modules/lodash/fp/values.js +0 -5
  2332. data/node_modules/lodash/fp/valuesIn.js +0 -5
  2333. data/node_modules/lodash/fp/where.js +0 -1
  2334. data/node_modules/lodash/fp/whereEq.js +0 -1
  2335. data/node_modules/lodash/fp/without.js +0 -5
  2336. data/node_modules/lodash/fp/words.js +0 -5
  2337. data/node_modules/lodash/fp/wrap.js +0 -5
  2338. data/node_modules/lodash/fp/wrapperAt.js +0 -5
  2339. data/node_modules/lodash/fp/wrapperChain.js +0 -5
  2340. data/node_modules/lodash/fp/wrapperLodash.js +0 -5
  2341. data/node_modules/lodash/fp/wrapperReverse.js +0 -5
  2342. data/node_modules/lodash/fp/wrapperValue.js +0 -5
  2343. data/node_modules/lodash/fp/xor.js +0 -5
  2344. data/node_modules/lodash/fp/xorBy.js +0 -5
  2345. data/node_modules/lodash/fp/xorWith.js +0 -5
  2346. data/node_modules/lodash/fp/zip.js +0 -5
  2347. data/node_modules/lodash/fp/zipAll.js +0 -5
  2348. data/node_modules/lodash/fp/zipObj.js +0 -1
  2349. data/node_modules/lodash/fp/zipObject.js +0 -5
  2350. data/node_modules/lodash/fp/zipObjectDeep.js +0 -5
  2351. data/node_modules/lodash/fp/zipWith.js +0 -5
  2352. data/node_modules/lodash/fp.js +0 -2
  2353. data/node_modules/lodash/fromPairs.js +0 -28
  2354. data/node_modules/lodash/function.js +0 -25
  2355. data/node_modules/lodash/functions.js +0 -31
  2356. data/node_modules/lodash/functionsIn.js +0 -31
  2357. data/node_modules/lodash/get.js +0 -33
  2358. data/node_modules/lodash/groupBy.js +0 -41
  2359. data/node_modules/lodash/gt.js +0 -29
  2360. data/node_modules/lodash/gte.js +0 -30
  2361. data/node_modules/lodash/has.js +0 -35
  2362. data/node_modules/lodash/hasIn.js +0 -34
  2363. data/node_modules/lodash/head.js +0 -23
  2364. data/node_modules/lodash/identity.js +0 -21
  2365. data/node_modules/lodash/inRange.js +0 -55
  2366. data/node_modules/lodash/includes.js +0 -53
  2367. data/node_modules/lodash/index.js +0 -1
  2368. data/node_modules/lodash/indexOf.js +0 -42
  2369. data/node_modules/lodash/initial.js +0 -22
  2370. data/node_modules/lodash/intersection.js +0 -30
  2371. data/node_modules/lodash/intersectionBy.js +0 -45
  2372. data/node_modules/lodash/intersectionWith.js +0 -41
  2373. data/node_modules/lodash/invert.js +0 -42
  2374. data/node_modules/lodash/invertBy.js +0 -56
  2375. data/node_modules/lodash/invoke.js +0 -24
  2376. data/node_modules/lodash/invokeMap.js +0 -41
  2377. data/node_modules/lodash/isArguments.js +0 -36
  2378. data/node_modules/lodash/isArray.js +0 -26
  2379. data/node_modules/lodash/isArrayBuffer.js +0 -27
  2380. data/node_modules/lodash/isArrayLike.js +0 -33
  2381. data/node_modules/lodash/isArrayLikeObject.js +0 -33
  2382. data/node_modules/lodash/isBoolean.js +0 -29
  2383. data/node_modules/lodash/isBuffer.js +0 -38
  2384. data/node_modules/lodash/isDate.js +0 -27
  2385. data/node_modules/lodash/isElement.js +0 -25
  2386. data/node_modules/lodash/isEmpty.js +0 -77
  2387. data/node_modules/lodash/isEqual.js +0 -35
  2388. data/node_modules/lodash/isEqualWith.js +0 -41
  2389. data/node_modules/lodash/isError.js +0 -36
  2390. data/node_modules/lodash/isFinite.js +0 -36
  2391. data/node_modules/lodash/isFunction.js +0 -37
  2392. data/node_modules/lodash/isInteger.js +0 -33
  2393. data/node_modules/lodash/isLength.js +0 -35
  2394. data/node_modules/lodash/isMap.js +0 -27
  2395. data/node_modules/lodash/isMatch.js +0 -36
  2396. data/node_modules/lodash/isMatchWith.js +0 -41
  2397. data/node_modules/lodash/isNaN.js +0 -38
  2398. data/node_modules/lodash/isNative.js +0 -40
  2399. data/node_modules/lodash/isNil.js +0 -25
  2400. data/node_modules/lodash/isNull.js +0 -22
  2401. data/node_modules/lodash/isNumber.js +0 -38
  2402. data/node_modules/lodash/isObject.js +0 -31
  2403. data/node_modules/lodash/isObjectLike.js +0 -29
  2404. data/node_modules/lodash/isPlainObject.js +0 -62
  2405. data/node_modules/lodash/isRegExp.js +0 -27
  2406. data/node_modules/lodash/isSafeInteger.js +0 -37
  2407. data/node_modules/lodash/isSet.js +0 -27
  2408. data/node_modules/lodash/isString.js +0 -30
  2409. data/node_modules/lodash/isSymbol.js +0 -29
  2410. data/node_modules/lodash/isTypedArray.js +0 -27
  2411. data/node_modules/lodash/isUndefined.js +0 -22
  2412. data/node_modules/lodash/isWeakMap.js +0 -28
  2413. data/node_modules/lodash/isWeakSet.js +0 -28
  2414. data/node_modules/lodash/iteratee.js +0 -53
  2415. data/node_modules/lodash/join.js +0 -26
  2416. data/node_modules/lodash/kebabCase.js +0 -28
  2417. data/node_modules/lodash/keyBy.js +0 -36
  2418. data/node_modules/lodash/keys.js +0 -37
  2419. data/node_modules/lodash/keysIn.js +0 -32
  2420. data/node_modules/lodash/lang.js +0 -58
  2421. data/node_modules/lodash/last.js +0 -20
  2422. data/node_modules/lodash/lastIndexOf.js +0 -46
  2423. data/node_modules/lodash/lodash.js +0 -17209
  2424. data/node_modules/lodash/lodash.min.js +0 -140
  2425. data/node_modules/lodash/lowerCase.js +0 -27
  2426. data/node_modules/lodash/lowerFirst.js +0 -22
  2427. data/node_modules/lodash/lt.js +0 -29
  2428. data/node_modules/lodash/lte.js +0 -30
  2429. data/node_modules/lodash/map.js +0 -53
  2430. data/node_modules/lodash/mapKeys.js +0 -36
  2431. data/node_modules/lodash/mapValues.js +0 -43
  2432. data/node_modules/lodash/matches.js +0 -46
  2433. data/node_modules/lodash/matchesProperty.js +0 -44
  2434. data/node_modules/lodash/math.js +0 -17
  2435. data/node_modules/lodash/max.js +0 -29
  2436. data/node_modules/lodash/maxBy.js +0 -34
  2437. data/node_modules/lodash/mean.js +0 -22
  2438. data/node_modules/lodash/meanBy.js +0 -31
  2439. data/node_modules/lodash/memoize.js +0 -73
  2440. data/node_modules/lodash/merge.js +0 -39
  2441. data/node_modules/lodash/mergeWith.js +0 -39
  2442. data/node_modules/lodash/method.js +0 -34
  2443. data/node_modules/lodash/methodOf.js +0 -33
  2444. data/node_modules/lodash/min.js +0 -29
  2445. data/node_modules/lodash/minBy.js +0 -34
  2446. data/node_modules/lodash/mixin.js +0 -74
  2447. data/node_modules/lodash/multiply.js +0 -22
  2448. data/node_modules/lodash/negate.js +0 -40
  2449. data/node_modules/lodash/next.js +0 -35
  2450. data/node_modules/lodash/noop.js +0 -17
  2451. data/node_modules/lodash/now.js +0 -23
  2452. data/node_modules/lodash/nth.js +0 -29
  2453. data/node_modules/lodash/nthArg.js +0 -32
  2454. data/node_modules/lodash/number.js +0 -5
  2455. data/node_modules/lodash/object.js +0 -49
  2456. data/node_modules/lodash/omit.js +0 -57
  2457. data/node_modules/lodash/omitBy.js +0 -29
  2458. data/node_modules/lodash/once.js +0 -25
  2459. data/node_modules/lodash/orderBy.js +0 -47
  2460. data/node_modules/lodash/over.js +0 -24
  2461. data/node_modules/lodash/overArgs.js +0 -61
  2462. data/node_modules/lodash/overEvery.js +0 -34
  2463. data/node_modules/lodash/overSome.js +0 -37
  2464. data/node_modules/lodash/package.json +0 -17
  2465. data/node_modules/lodash/pad.js +0 -49
  2466. data/node_modules/lodash/padEnd.js +0 -39
  2467. data/node_modules/lodash/padStart.js +0 -39
  2468. data/node_modules/lodash/parseInt.js +0 -43
  2469. data/node_modules/lodash/partial.js +0 -50
  2470. data/node_modules/lodash/partialRight.js +0 -49
  2471. data/node_modules/lodash/partition.js +0 -43
  2472. data/node_modules/lodash/pick.js +0 -25
  2473. data/node_modules/lodash/pickBy.js +0 -37
  2474. data/node_modules/lodash/plant.js +0 -48
  2475. data/node_modules/lodash/property.js +0 -32
  2476. data/node_modules/lodash/propertyOf.js +0 -30
  2477. data/node_modules/lodash/pull.js +0 -29
  2478. data/node_modules/lodash/pullAll.js +0 -29
  2479. data/node_modules/lodash/pullAllBy.js +0 -33
  2480. data/node_modules/lodash/pullAllWith.js +0 -32
  2481. data/node_modules/lodash/pullAt.js +0 -43
  2482. data/node_modules/lodash/random.js +0 -82
  2483. data/node_modules/lodash/range.js +0 -46
  2484. data/node_modules/lodash/rangeRight.js +0 -41
  2485. data/node_modules/lodash/rearg.js +0 -33
  2486. data/node_modules/lodash/reduce.js +0 -51
  2487. data/node_modules/lodash/reduceRight.js +0 -36
  2488. data/node_modules/lodash/reject.js +0 -46
  2489. data/node_modules/lodash/release.md +0 -48
  2490. data/node_modules/lodash/remove.js +0 -53
  2491. data/node_modules/lodash/repeat.js +0 -37
  2492. data/node_modules/lodash/replace.js +0 -29
  2493. data/node_modules/lodash/rest.js +0 -40
  2494. data/node_modules/lodash/result.js +0 -56
  2495. data/node_modules/lodash/reverse.js +0 -34
  2496. data/node_modules/lodash/round.js +0 -26
  2497. data/node_modules/lodash/sample.js +0 -24
  2498. data/node_modules/lodash/sampleSize.js +0 -37
  2499. data/node_modules/lodash/seq.js +0 -16
  2500. data/node_modules/lodash/set.js +0 -35
  2501. data/node_modules/lodash/setWith.js +0 -32
  2502. data/node_modules/lodash/shuffle.js +0 -25
  2503. data/node_modules/lodash/size.js +0 -46
  2504. data/node_modules/lodash/slice.js +0 -37
  2505. data/node_modules/lodash/snakeCase.js +0 -28
  2506. data/node_modules/lodash/some.js +0 -51
  2507. data/node_modules/lodash/sortBy.js +0 -48
  2508. data/node_modules/lodash/sortedIndex.js +0 -24
  2509. data/node_modules/lodash/sortedIndexBy.js +0 -33
  2510. data/node_modules/lodash/sortedIndexOf.js +0 -31
  2511. data/node_modules/lodash/sortedLastIndex.js +0 -25
  2512. data/node_modules/lodash/sortedLastIndexBy.js +0 -33
  2513. data/node_modules/lodash/sortedLastIndexOf.js +0 -31
  2514. data/node_modules/lodash/sortedUniq.js +0 -24
  2515. data/node_modules/lodash/sortedUniqBy.js +0 -26
  2516. data/node_modules/lodash/split.js +0 -52
  2517. data/node_modules/lodash/spread.js +0 -63
  2518. data/node_modules/lodash/startCase.js +0 -29
  2519. data/node_modules/lodash/startsWith.js +0 -39
  2520. data/node_modules/lodash/string.js +0 -33
  2521. data/node_modules/lodash/stubArray.js +0 -23
  2522. data/node_modules/lodash/stubFalse.js +0 -18
  2523. data/node_modules/lodash/stubObject.js +0 -23
  2524. data/node_modules/lodash/stubString.js +0 -18
  2525. data/node_modules/lodash/stubTrue.js +0 -18
  2526. data/node_modules/lodash/subtract.js +0 -22
  2527. data/node_modules/lodash/sum.js +0 -24
  2528. data/node_modules/lodash/sumBy.js +0 -33
  2529. data/node_modules/lodash/tail.js +0 -22
  2530. data/node_modules/lodash/take.js +0 -37
  2531. data/node_modules/lodash/takeRight.js +0 -39
  2532. data/node_modules/lodash/takeRightWhile.js +0 -45
  2533. data/node_modules/lodash/takeWhile.js +0 -45
  2534. data/node_modules/lodash/tap.js +0 -29
  2535. data/node_modules/lodash/template.js +0 -272
  2536. data/node_modules/lodash/templateSettings.js +0 -67
  2537. data/node_modules/lodash/throttle.js +0 -69
  2538. data/node_modules/lodash/thru.js +0 -28
  2539. data/node_modules/lodash/times.js +0 -51
  2540. data/node_modules/lodash/toArray.js +0 -58
  2541. data/node_modules/lodash/toFinite.js +0 -42
  2542. data/node_modules/lodash/toInteger.js +0 -36
  2543. data/node_modules/lodash/toIterator.js +0 -23
  2544. data/node_modules/lodash/toJSON.js +0 -1
  2545. data/node_modules/lodash/toLength.js +0 -38
  2546. data/node_modules/lodash/toLower.js +0 -28
  2547. data/node_modules/lodash/toNumber.js +0 -64
  2548. data/node_modules/lodash/toPairs.js +0 -30
  2549. data/node_modules/lodash/toPairsIn.js +0 -30
  2550. data/node_modules/lodash/toPath.js +0 -33
  2551. data/node_modules/lodash/toPlainObject.js +0 -32
  2552. data/node_modules/lodash/toSafeInteger.js +0 -37
  2553. data/node_modules/lodash/toString.js +0 -28
  2554. data/node_modules/lodash/toUpper.js +0 -28
  2555. data/node_modules/lodash/transform.js +0 -65
  2556. data/node_modules/lodash/trim.js +0 -47
  2557. data/node_modules/lodash/trimEnd.js +0 -41
  2558. data/node_modules/lodash/trimStart.js +0 -43
  2559. data/node_modules/lodash/truncate.js +0 -111
  2560. data/node_modules/lodash/unary.js +0 -22
  2561. data/node_modules/lodash/unescape.js +0 -34
  2562. data/node_modules/lodash/union.js +0 -26
  2563. data/node_modules/lodash/unionBy.js +0 -39
  2564. data/node_modules/lodash/unionWith.js +0 -34
  2565. data/node_modules/lodash/uniq.js +0 -25
  2566. data/node_modules/lodash/uniqBy.js +0 -31
  2567. data/node_modules/lodash/uniqWith.js +0 -28
  2568. data/node_modules/lodash/uniqueId.js +0 -28
  2569. data/node_modules/lodash/unset.js +0 -34
  2570. data/node_modules/lodash/unzip.js +0 -45
  2571. data/node_modules/lodash/unzipWith.js +0 -39
  2572. data/node_modules/lodash/update.js +0 -35
  2573. data/node_modules/lodash/updateWith.js +0 -33
  2574. data/node_modules/lodash/upperCase.js +0 -27
  2575. data/node_modules/lodash/upperFirst.js +0 -22
  2576. data/node_modules/lodash/util.js +0 -34
  2577. data/node_modules/lodash/value.js +0 -1
  2578. data/node_modules/lodash/valueOf.js +0 -1
  2579. data/node_modules/lodash/values.js +0 -34
  2580. data/node_modules/lodash/valuesIn.js +0 -32
  2581. data/node_modules/lodash/without.js +0 -31
  2582. data/node_modules/lodash/words.js +0 -35
  2583. data/node_modules/lodash/wrap.js +0 -30
  2584. data/node_modules/lodash/wrapperAt.js +0 -48
  2585. data/node_modules/lodash/wrapperChain.js +0 -34
  2586. data/node_modules/lodash/wrapperLodash.js +0 -147
  2587. data/node_modules/lodash/wrapperReverse.js +0 -44
  2588. data/node_modules/lodash/wrapperValue.js +0 -21
  2589. data/node_modules/lodash/xor.js +0 -28
  2590. data/node_modules/lodash/xorBy.js +0 -39
  2591. data/node_modules/lodash/xorWith.js +0 -34
  2592. data/node_modules/lodash/zip.js +0 -22
  2593. data/node_modules/lodash/zipObject.js +0 -24
  2594. data/node_modules/lodash/zipObjectDeep.js +0 -23
  2595. data/node_modules/lodash/zipWith.js +0 -32
  2596. data/node_modules/lru-cache/LICENSE +0 -15
  2597. data/node_modules/lru-cache/README.md +0 -166
  2598. data/node_modules/lru-cache/index.js +0 -334
  2599. data/node_modules/lru-cache/package.json +0 -34
  2600. data/node_modules/mime-db/HISTORY.md +0 -486
  2601. data/node_modules/mime-db/LICENSE +0 -22
  2602. data/node_modules/mime-db/README.md +0 -100
  2603. data/node_modules/mime-db/db.json +0 -8417
  2604. data/node_modules/mime-db/index.js +0 -11
  2605. data/node_modules/mime-db/package.json +0 -59
  2606. data/node_modules/mime-types/HISTORY.md +0 -378
  2607. data/node_modules/mime-types/LICENSE +0 -23
  2608. data/node_modules/mime-types/README.md +0 -113
  2609. data/node_modules/mime-types/index.js +0 -188
  2610. data/node_modules/mime-types/package.json +0 -44
  2611. data/node_modules/minimatch/LICENSE +0 -15
  2612. data/node_modules/minimatch/README.md +0 -209
  2613. data/node_modules/minimatch/minimatch.js +0 -923
  2614. data/node_modules/minimatch/package.json +0 -30
  2615. data/node_modules/ms/index.js +0 -162
  2616. data/node_modules/ms/license.md +0 -21
  2617. data/node_modules/ms/package.json +0 -37
  2618. data/node_modules/ms/readme.md +0 -60
  2619. data/node_modules/normalize-path/LICENSE +0 -21
  2620. data/node_modules/normalize-path/README.md +0 -127
  2621. data/node_modules/normalize-path/index.js +0 -35
  2622. data/node_modules/normalize-path/package.json +0 -77
  2623. data/node_modules/nwsapi/LICENSE +0 -22
  2624. data/node_modules/nwsapi/README.md +0 -132
  2625. data/node_modules/nwsapi/dist/lint.log +0 -0
  2626. data/node_modules/nwsapi/package.json +0 -38
  2627. data/node_modules/nwsapi/src/modules/nwsapi-jquery.js +0 -135
  2628. data/node_modules/nwsapi/src/modules/nwsapi-traversal.js +0 -90
  2629. data/node_modules/nwsapi/src/nwsapi.js +0 -1800
  2630. data/node_modules/once/LICENSE +0 -15
  2631. data/node_modules/once/README.md +0 -79
  2632. data/node_modules/once/once.js +0 -42
  2633. data/node_modules/once/package.json +0 -33
  2634. data/node_modules/optionator/CHANGELOG.md +0 -56
  2635. data/node_modules/optionator/LICENSE +0 -22
  2636. data/node_modules/optionator/README.md +0 -238
  2637. data/node_modules/optionator/lib/help.js +0 -260
  2638. data/node_modules/optionator/lib/index.js +0 -465
  2639. data/node_modules/optionator/lib/util.js +0 -54
  2640. data/node_modules/optionator/package.json +0 -44
  2641. data/node_modules/parse5/LICENSE +0 -19
  2642. data/node_modules/parse5/README.md +0 -38
  2643. data/node_modules/parse5/lib/common/doctype.js +0 -162
  2644. data/node_modules/parse5/lib/common/error-codes.js +0 -65
  2645. data/node_modules/parse5/lib/common/foreign-content.js +0 -265
  2646. data/node_modules/parse5/lib/common/html.js +0 -272
  2647. data/node_modules/parse5/lib/common/unicode.js +0 -109
  2648. data/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  2649. data/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  2650. data/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  2651. data/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  2652. data/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  2653. data/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
  2654. data/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  2655. data/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  2656. data/node_modules/parse5/lib/index.js +0 -29
  2657. data/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
  2658. data/node_modules/parse5/lib/parser/index.js +0 -2956
  2659. data/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
  2660. data/node_modules/parse5/lib/serializer/index.js +0 -176
  2661. data/node_modules/parse5/lib/tokenizer/index.js +0 -2196
  2662. data/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
  2663. data/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
  2664. data/node_modules/parse5/lib/tree-adapters/default.js +0 -221
  2665. data/node_modules/parse5/lib/utils/merge-options.js +0 -13
  2666. data/node_modules/parse5/lib/utils/mixin.js +0 -39
  2667. data/node_modules/parse5/package.json +0 -35
  2668. data/node_modules/path-is-absolute/index.js +0 -20
  2669. data/node_modules/path-is-absolute/license +0 -21
  2670. data/node_modules/path-is-absolute/package.json +0 -43
  2671. data/node_modules/path-is-absolute/readme.md +0 -59
  2672. data/node_modules/path-key/index.d.ts +0 -40
  2673. data/node_modules/path-key/index.js +0 -16
  2674. data/node_modules/path-key/license +0 -9
  2675. data/node_modules/path-key/package.json +0 -39
  2676. data/node_modules/path-key/readme.md +0 -61
  2677. data/node_modules/picomatch/CHANGELOG.md +0 -126
  2678. data/node_modules/picomatch/LICENSE +0 -21
  2679. data/node_modules/picomatch/README.md +0 -707
  2680. data/node_modules/picomatch/index.js +0 -3
  2681. data/node_modules/picomatch/lib/constants.js +0 -179
  2682. data/node_modules/picomatch/lib/parse.js +0 -1084
  2683. data/node_modules/picomatch/lib/picomatch.js +0 -342
  2684. data/node_modules/picomatch/lib/scan.js +0 -391
  2685. data/node_modules/picomatch/lib/utils.js +0 -64
  2686. data/node_modules/picomatch/package.json +0 -81
  2687. data/node_modules/prelude-ls/CHANGELOG.md +0 -99
  2688. data/node_modules/prelude-ls/LICENSE +0 -22
  2689. data/node_modules/prelude-ls/README.md +0 -15
  2690. data/node_modules/prelude-ls/lib/Func.js +0 -65
  2691. data/node_modules/prelude-ls/lib/List.js +0 -686
  2692. data/node_modules/prelude-ls/lib/Num.js +0 -130
  2693. data/node_modules/prelude-ls/lib/Obj.js +0 -154
  2694. data/node_modules/prelude-ls/lib/Str.js +0 -92
  2695. data/node_modules/prelude-ls/lib/index.js +0 -178
  2696. data/node_modules/prelude-ls/package.json +0 -52
  2697. data/node_modules/psl/LICENSE +0 -9
  2698. data/node_modules/psl/README.md +0 -215
  2699. data/node_modules/psl/browserstack-logo.svg +0 -90
  2700. data/node_modules/psl/data/rules.json +0 -8834
  2701. data/node_modules/psl/dist/psl.js +0 -9645
  2702. data/node_modules/psl/dist/psl.min.js +0 -1
  2703. data/node_modules/psl/index.js +0 -269
  2704. data/node_modules/psl/package.json +0 -44
  2705. data/node_modules/punycode/LICENSE-MIT.txt +0 -20
  2706. data/node_modules/punycode/README.md +0 -122
  2707. data/node_modules/punycode/package.json +0 -58
  2708. data/node_modules/punycode/punycode.es6.js +0 -441
  2709. data/node_modules/punycode/punycode.js +0 -440
  2710. data/node_modules/readdirp/LICENSE +0 -21
  2711. data/node_modules/readdirp/README.md +0 -122
  2712. data/node_modules/readdirp/index.d.ts +0 -43
  2713. data/node_modules/readdirp/index.js +0 -287
  2714. data/node_modules/readdirp/package.json +0 -122
  2715. data/node_modules/require-directory/LICENSE +0 -22
  2716. data/node_modules/require-directory/README.markdown +0 -184
  2717. data/node_modules/require-directory/index.js +0 -86
  2718. data/node_modules/require-directory/package.json +0 -40
  2719. data/node_modules/safer-buffer/LICENSE +0 -21
  2720. data/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  2721. data/node_modules/safer-buffer/Readme.md +0 -156
  2722. data/node_modules/safer-buffer/dangerous.js +0 -58
  2723. data/node_modules/safer-buffer/package.json +0 -34
  2724. data/node_modules/safer-buffer/safer.js +0 -77
  2725. data/node_modules/safer-buffer/tests.js +0 -406
  2726. data/node_modules/saxes/README.md +0 -323
  2727. data/node_modules/saxes/package.json +0 -70
  2728. data/node_modules/saxes/saxes.d.ts +0 -635
  2729. data/node_modules/saxes/saxes.js +0 -2064
  2730. data/node_modules/saxes/saxes.js.map +0 -1
  2731. data/node_modules/semver/CHANGELOG.md +0 -111
  2732. data/node_modules/semver/LICENSE +0 -15
  2733. data/node_modules/semver/README.md +0 -566
  2734. data/node_modules/semver/bin/semver.js +0 -173
  2735. data/node_modules/semver/classes/comparator.js +0 -135
  2736. data/node_modules/semver/classes/index.js +0 -5
  2737. data/node_modules/semver/classes/range.js +0 -510
  2738. data/node_modules/semver/classes/semver.js +0 -287
  2739. data/node_modules/semver/functions/clean.js +0 -6
  2740. data/node_modules/semver/functions/cmp.js +0 -48
  2741. data/node_modules/semver/functions/coerce.js +0 -51
  2742. data/node_modules/semver/functions/compare-build.js +0 -7
  2743. data/node_modules/semver/functions/compare-loose.js +0 -3
  2744. data/node_modules/semver/functions/compare.js +0 -5
  2745. data/node_modules/semver/functions/diff.js +0 -23
  2746. data/node_modules/semver/functions/eq.js +0 -3
  2747. data/node_modules/semver/functions/gt.js +0 -3
  2748. data/node_modules/semver/functions/gte.js +0 -3
  2749. data/node_modules/semver/functions/inc.js +0 -15
  2750. data/node_modules/semver/functions/lt.js +0 -3
  2751. data/node_modules/semver/functions/lte.js +0 -3
  2752. data/node_modules/semver/functions/major.js +0 -3
  2753. data/node_modules/semver/functions/minor.js +0 -3
  2754. data/node_modules/semver/functions/neq.js +0 -3
  2755. data/node_modules/semver/functions/parse.js +0 -33
  2756. data/node_modules/semver/functions/patch.js +0 -3
  2757. data/node_modules/semver/functions/prerelease.js +0 -6
  2758. data/node_modules/semver/functions/rcompare.js +0 -3
  2759. data/node_modules/semver/functions/rsort.js +0 -3
  2760. data/node_modules/semver/functions/satisfies.js +0 -10
  2761. data/node_modules/semver/functions/sort.js +0 -3
  2762. data/node_modules/semver/functions/valid.js +0 -6
  2763. data/node_modules/semver/index.js +0 -48
  2764. data/node_modules/semver/internal/constants.js +0 -17
  2765. data/node_modules/semver/internal/debug.js +0 -9
  2766. data/node_modules/semver/internal/identifiers.js +0 -23
  2767. data/node_modules/semver/internal/parse-options.js +0 -11
  2768. data/node_modules/semver/internal/re.js +0 -182
  2769. data/node_modules/semver/package.json +0 -41
  2770. data/node_modules/semver/preload.js +0 -2
  2771. data/node_modules/semver/range.bnf +0 -16
  2772. data/node_modules/semver/ranges/gtr.js +0 -4
  2773. data/node_modules/semver/ranges/intersects.js +0 -7
  2774. data/node_modules/semver/ranges/ltr.js +0 -4
  2775. data/node_modules/semver/ranges/max-satisfying.js +0 -25
  2776. data/node_modules/semver/ranges/min-satisfying.js +0 -24
  2777. data/node_modules/semver/ranges/min-version.js +0 -60
  2778. data/node_modules/semver/ranges/outside.js +0 -80
  2779. data/node_modules/semver/ranges/simplify.js +0 -44
  2780. data/node_modules/semver/ranges/subset.js +0 -222
  2781. data/node_modules/semver/ranges/to-comparators.js +0 -8
  2782. data/node_modules/semver/ranges/valid.js +0 -11
  2783. data/node_modules/shebang-command/index.js +0 -19
  2784. data/node_modules/shebang-command/license +0 -9
  2785. data/node_modules/shebang-command/package.json +0 -34
  2786. data/node_modules/shebang-command/readme.md +0 -34
  2787. data/node_modules/shebang-regex/index.d.ts +0 -22
  2788. data/node_modules/shebang-regex/index.js +0 -2
  2789. data/node_modules/shebang-regex/license +0 -9
  2790. data/node_modules/shebang-regex/package.json +0 -35
  2791. data/node_modules/shebang-regex/readme.md +0 -33
  2792. data/node_modules/simple-wcswidth/CHANGELOG.md +0 -13
  2793. data/node_modules/simple-wcswidth/LICENSE +0 -21
  2794. data/node_modules/simple-wcswidth/README.md +0 -100
  2795. data/node_modules/simple-wcswidth/dist/index.d.ts +0 -3
  2796. data/node_modules/simple-wcswidth/dist/index.js +0 -10
  2797. data/node_modules/simple-wcswidth/dist/src/binary-search.d.ts +0 -3
  2798. data/node_modules/simple-wcswidth/dist/src/binary-search.js +0 -24
  2799. data/node_modules/simple-wcswidth/dist/src/models.d.ts +0 -4
  2800. data/node_modules/simple-wcswidth/dist/src/models.js +0 -2
  2801. data/node_modules/simple-wcswidth/dist/src/non-spacing-chars.d.ts +0 -3
  2802. data/node_modules/simple-wcswidth/dist/src/non-spacing-chars.js +0 -149
  2803. data/node_modules/simple-wcswidth/dist/src/wcswidth.d.ts +0 -2
  2804. data/node_modules/simple-wcswidth/dist/src/wcswidth.js +0 -20
  2805. data/node_modules/simple-wcswidth/dist/src/wcwidth.d.ts +0 -2
  2806. data/node_modules/simple-wcswidth/dist/src/wcwidth.js +0 -67
  2807. data/node_modules/simple-wcswidth/package.json +0 -44
  2808. data/node_modules/source-map/CHANGELOG.md +0 -301
  2809. data/node_modules/source-map/LICENSE +0 -28
  2810. data/node_modules/source-map/README.md +0 -742
  2811. data/node_modules/source-map/dist/source-map.debug.js +0 -3234
  2812. data/node_modules/source-map/dist/source-map.js +0 -3233
  2813. data/node_modules/source-map/dist/source-map.min.js +0 -2
  2814. data/node_modules/source-map/dist/source-map.min.js.map +0 -1
  2815. data/node_modules/source-map/lib/array-set.js +0 -121
  2816. data/node_modules/source-map/lib/base64-vlq.js +0 -140
  2817. data/node_modules/source-map/lib/base64.js +0 -67
  2818. data/node_modules/source-map/lib/binary-search.js +0 -111
  2819. data/node_modules/source-map/lib/mapping-list.js +0 -79
  2820. data/node_modules/source-map/lib/quick-sort.js +0 -114
  2821. data/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  2822. data/node_modules/source-map/lib/source-map-generator.js +0 -425
  2823. data/node_modules/source-map/lib/source-node.js +0 -413
  2824. data/node_modules/source-map/lib/util.js +0 -488
  2825. data/node_modules/source-map/package.json +0 -73
  2826. data/node_modules/source-map/source-map.d.ts +0 -98
  2827. data/node_modules/source-map/source-map.js +0 -8
  2828. data/node_modules/sprintf-js/LICENSE +0 -24
  2829. data/node_modules/sprintf-js/README.md +0 -88
  2830. data/node_modules/sprintf-js/bower.json +0 -14
  2831. data/node_modules/sprintf-js/demo/angular.html +0 -20
  2832. data/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
  2833. data/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  2834. data/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
  2835. data/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
  2836. data/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
  2837. data/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
  2838. data/node_modules/sprintf-js/gruntfile.js +0 -36
  2839. data/node_modules/sprintf-js/package.json +0 -22
  2840. data/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
  2841. data/node_modules/sprintf-js/src/sprintf.js +0 -208
  2842. data/node_modules/sprintf-js/test/test.js +0 -82
  2843. data/node_modules/sqlite-parser/CHANGELOG.md +0 -1263
  2844. data/node_modules/sqlite-parser/LICENSE +0 -22
  2845. data/node_modules/sqlite-parser/README.md +0 -187
  2846. data/node_modules/sqlite-parser/bin/sqlite-parser +0 -7
  2847. data/node_modules/sqlite-parser/dist/sqlite-parser.js +0 -19
  2848. data/node_modules/sqlite-parser/lib/index.js +0 -6
  2849. data/node_modules/sqlite-parser/lib/parser.js +0 -6
  2850. data/node_modules/sqlite-parser/lib/streaming-shim.js +0 -6
  2851. data/node_modules/sqlite-parser/lib/streaming.js +0 -6
  2852. data/node_modules/sqlite-parser/lib/tracer.js +0 -6
  2853. data/node_modules/sqlite-parser/package.json +0 -75
  2854. data/node_modules/string-width/index.d.ts +0 -29
  2855. data/node_modules/string-width/index.js +0 -47
  2856. data/node_modules/string-width/license +0 -9
  2857. data/node_modules/string-width/package.json +0 -56
  2858. data/node_modules/string-width/readme.md +0 -50
  2859. data/node_modules/strip-ansi/index.d.ts +0 -17
  2860. data/node_modules/strip-ansi/index.js +0 -4
  2861. data/node_modules/strip-ansi/license +0 -9
  2862. data/node_modules/strip-ansi/package.json +0 -54
  2863. data/node_modules/strip-ansi/readme.md +0 -46
  2864. data/node_modules/symbol-tree/LICENSE +0 -21
  2865. data/node_modules/symbol-tree/README.md +0 -545
  2866. data/node_modules/symbol-tree/lib/SymbolTree.js +0 -838
  2867. data/node_modules/symbol-tree/lib/SymbolTreeNode.js +0 -54
  2868. data/node_modules/symbol-tree/lib/TreeIterator.js +0 -69
  2869. data/node_modules/symbol-tree/lib/TreePosition.js +0 -11
  2870. data/node_modules/symbol-tree/package.json +0 -47
  2871. data/node_modules/to-regex-range/LICENSE +0 -21
  2872. data/node_modules/to-regex-range/README.md +0 -305
  2873. data/node_modules/to-regex-range/index.js +0 -288
  2874. data/node_modules/to-regex-range/package.json +0 -88
  2875. data/node_modules/tough-cookie/LICENSE +0 -12
  2876. data/node_modules/tough-cookie/README.md +0 -582
  2877. data/node_modules/tough-cookie/lib/cookie.js +0 -1671
  2878. data/node_modules/tough-cookie/lib/memstore.js +0 -190
  2879. data/node_modules/tough-cookie/lib/pathMatch.js +0 -61
  2880. data/node_modules/tough-cookie/lib/permuteDomain.js +0 -70
  2881. data/node_modules/tough-cookie/lib/pubsuffix-psl.js +0 -38
  2882. data/node_modules/tough-cookie/lib/store.js +0 -76
  2883. data/node_modules/tough-cookie/lib/version.js +0 -2
  2884. data/node_modules/tough-cookie/node_modules/universalify/LICENSE +0 -20
  2885. data/node_modules/tough-cookie/node_modules/universalify/README.md +0 -76
  2886. data/node_modules/tough-cookie/node_modules/universalify/index.js +0 -25
  2887. data/node_modules/tough-cookie/node_modules/universalify/package.json +0 -34
  2888. data/node_modules/tough-cookie/package.json +0 -109
  2889. data/node_modules/tr46/LICENSE.md +0 -21
  2890. data/node_modules/tr46/README.md +0 -72
  2891. data/node_modules/tr46/index.js +0 -297
  2892. data/node_modules/tr46/lib/mappingTable.json +0 -1
  2893. data/node_modules/tr46/lib/regexes.js +0 -29
  2894. data/node_modules/tr46/lib/statusMapping.js +0 -11
  2895. data/node_modules/tr46/package.json +0 -46
  2896. data/node_modules/type-check/LICENSE +0 -22
  2897. data/node_modules/type-check/README.md +0 -210
  2898. data/node_modules/type-check/lib/check.js +0 -126
  2899. data/node_modules/type-check/lib/index.js +0 -16
  2900. data/node_modules/type-check/lib/parse-type.js +0 -196
  2901. data/node_modules/type-check/package.json +0 -40
  2902. data/node_modules/universalify/LICENSE +0 -20
  2903. data/node_modules/universalify/README.md +0 -76
  2904. data/node_modules/universalify/index.js +0 -24
  2905. data/node_modules/universalify/package.json +0 -34
  2906. data/node_modules/w3c-hr-time/CHANGELOG.md +0 -19
  2907. data/node_modules/w3c-hr-time/LICENSE.md +0 -21
  2908. data/node_modules/w3c-hr-time/README.md +0 -130
  2909. data/node_modules/w3c-hr-time/index.js +0 -11
  2910. data/node_modules/w3c-hr-time/lib/calculate-clock-offset.js +0 -39
  2911. data/node_modules/w3c-hr-time/lib/clock-is-accurate.js +0 -61
  2912. data/node_modules/w3c-hr-time/lib/global-monotonic-clock.js +0 -10
  2913. data/node_modules/w3c-hr-time/lib/performance.js +0 -53
  2914. data/node_modules/w3c-hr-time/lib/utils.js +0 -11
  2915. data/node_modules/w3c-hr-time/package.json +0 -26
  2916. data/node_modules/w3c-xmlserializer/LICENSE.md +0 -25
  2917. data/node_modules/w3c-xmlserializer/README.md +0 -41
  2918. data/node_modules/w3c-xmlserializer/lib/attributes.js +0 -128
  2919. data/node_modules/w3c-xmlserializer/lib/constants.js +0 -44
  2920. data/node_modules/w3c-xmlserializer/lib/serialize.js +0 -371
  2921. data/node_modules/w3c-xmlserializer/package.json +0 -32
  2922. data/node_modules/webidl-conversions/LICENSE.md +0 -12
  2923. data/node_modules/webidl-conversions/README.md +0 -101
  2924. data/node_modules/webidl-conversions/lib/index.js +0 -489
  2925. data/node_modules/webidl-conversions/package.json +0 -30
  2926. data/node_modules/whatwg-encoding/LICENSE.txt +0 -7
  2927. data/node_modules/whatwg-encoding/README.md +0 -50
  2928. data/node_modules/whatwg-encoding/lib/labels-to-names.json +0 -207
  2929. data/node_modules/whatwg-encoding/lib/supported-names.json +0 -37
  2930. data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +0 -47
  2931. data/node_modules/whatwg-encoding/package.json +0 -29
  2932. data/node_modules/whatwg-mimetype/LICENSE.txt +0 -7
  2933. data/node_modules/whatwg-mimetype/README.md +0 -101
  2934. data/node_modules/whatwg-mimetype/lib/mime-type.js +0 -191
  2935. data/node_modules/whatwg-mimetype/lib/parser.js +0 -124
  2936. data/node_modules/whatwg-mimetype/lib/serializer.js +0 -25
  2937. data/node_modules/whatwg-mimetype/lib/utils.js +0 -25
  2938. data/node_modules/whatwg-mimetype/package.json +0 -43
  2939. data/node_modules/whatwg-url/LICENSE.txt +0 -21
  2940. data/node_modules/whatwg-url/README.md +0 -104
  2941. data/node_modules/whatwg-url/dist/Function.js +0 -46
  2942. data/node_modules/whatwg-url/dist/URL-impl.js +0 -217
  2943. data/node_modules/whatwg-url/dist/URL.js +0 -417
  2944. data/node_modules/whatwg-url/dist/URLSearchParams-impl.js +0 -122
  2945. data/node_modules/whatwg-url/dist/URLSearchParams.js +0 -457
  2946. data/node_modules/whatwg-url/dist/VoidFunction.js +0 -30
  2947. data/node_modules/whatwg-url/dist/encoding.js +0 -26
  2948. data/node_modules/whatwg-url/dist/infra.js +0 -26
  2949. data/node_modules/whatwg-url/dist/percent-encoding.js +0 -141
  2950. data/node_modules/whatwg-url/dist/url-state-machine.js +0 -1210
  2951. data/node_modules/whatwg-url/dist/urlencoded.js +0 -102
  2952. data/node_modules/whatwg-url/dist/utils.js +0 -141
  2953. data/node_modules/whatwg-url/index.js +0 -24
  2954. data/node_modules/whatwg-url/package.json +0 -60
  2955. data/node_modules/whatwg-url/webidl2js-wrapper.js +0 -7
  2956. data/node_modules/which/CHANGELOG.md +0 -166
  2957. data/node_modules/which/LICENSE +0 -15
  2958. data/node_modules/which/README.md +0 -54
  2959. data/node_modules/which/bin/node-which +0 -52
  2960. data/node_modules/which/package.json +0 -43
  2961. data/node_modules/which/which.js +0 -125
  2962. data/node_modules/word-wrap/LICENSE +0 -21
  2963. data/node_modules/word-wrap/README.md +0 -182
  2964. data/node_modules/word-wrap/index.d.ts +0 -50
  2965. data/node_modules/word-wrap/index.js +0 -46
  2966. data/node_modules/word-wrap/package.json +0 -77
  2967. data/node_modules/wrap-ansi/index.js +0 -216
  2968. data/node_modules/wrap-ansi/license +0 -9
  2969. data/node_modules/wrap-ansi/package.json +0 -62
  2970. data/node_modules/wrap-ansi/readme.md +0 -91
  2971. data/node_modules/wrappy/LICENSE +0 -15
  2972. data/node_modules/wrappy/README.md +0 -36
  2973. data/node_modules/wrappy/package.json +0 -29
  2974. data/node_modules/wrappy/wrappy.js +0 -33
  2975. data/node_modules/ws/LICENSE +0 -21
  2976. data/node_modules/ws/README.md +0 -496
  2977. data/node_modules/ws/browser.js +0 -8
  2978. data/node_modules/ws/index.js +0 -10
  2979. data/node_modules/ws/lib/buffer-util.js +0 -129
  2980. data/node_modules/ws/lib/constants.js +0 -10
  2981. data/node_modules/ws/lib/event-target.js +0 -184
  2982. data/node_modules/ws/lib/extension.js +0 -223
  2983. data/node_modules/ws/lib/limiter.js +0 -55
  2984. data/node_modules/ws/lib/permessage-deflate.js +0 -518
  2985. data/node_modules/ws/lib/receiver.js +0 -607
  2986. data/node_modules/ws/lib/sender.js +0 -409
  2987. data/node_modules/ws/lib/stream.js +0 -177
  2988. data/node_modules/ws/lib/validation.js +0 -104
  2989. data/node_modules/ws/lib/websocket-server.js +0 -447
  2990. data/node_modules/ws/lib/websocket.js +0 -1078
  2991. data/node_modules/ws/package.json +0 -56
  2992. data/node_modules/xml-name-validator/LICENSE.txt +0 -176
  2993. data/node_modules/xml-name-validator/README.md +0 -36
  2994. data/node_modules/xml-name-validator/lib/generated-parser.js +0 -504
  2995. data/node_modules/xml-name-validator/lib/grammar.pegjs +0 -35
  2996. data/node_modules/xml-name-validator/lib/xml-name-validator.js +0 -17
  2997. data/node_modules/xml-name-validator/package.json +0 -28
  2998. data/node_modules/xmlchars/LICENSE +0 -18
  2999. data/node_modules/xmlchars/README.md +0 -33
  3000. data/node_modules/xmlchars/package.json +0 -51
  3001. data/node_modules/xmlchars/xml/1.0/ed4.d.ts +0 -31
  3002. data/node_modules/xmlchars/xml/1.0/ed4.js +0 -44
  3003. data/node_modules/xmlchars/xml/1.0/ed4.js.map +0 -1
  3004. data/node_modules/xmlchars/xml/1.0/ed5.d.ts +0 -51
  3005. data/node_modules/xmlchars/xml/1.0/ed5.js +0 -105
  3006. data/node_modules/xmlchars/xml/1.0/ed5.js.map +0 -1
  3007. data/node_modules/xmlchars/xml/1.1/ed2.d.ts +0 -73
  3008. data/node_modules/xmlchars/xml/1.1/ed2.js +0 -145
  3009. data/node_modules/xmlchars/xml/1.1/ed2.js.map +0 -1
  3010. data/node_modules/xmlchars/xmlchars.d.ts +0 -170
  3011. data/node_modules/xmlchars/xmlchars.js +0 -191
  3012. data/node_modules/xmlchars/xmlchars.js.map +0 -1
  3013. data/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +0 -28
  3014. data/node_modules/xmlchars/xmlns/1.0/ed3.js +0 -65
  3015. data/node_modules/xmlchars/xmlns/1.0/ed3.js.map +0 -1
  3016. data/node_modules/y18n/CHANGELOG.md +0 -100
  3017. data/node_modules/y18n/LICENSE +0 -13
  3018. data/node_modules/y18n/README.md +0 -127
  3019. data/node_modules/y18n/build/index.cjs +0 -203
  3020. data/node_modules/y18n/build/lib/cjs.js +0 -6
  3021. data/node_modules/y18n/build/lib/index.js +0 -174
  3022. data/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  3023. data/node_modules/y18n/index.mjs +0 -8
  3024. data/node_modules/y18n/package.json +0 -70
  3025. data/node_modules/yallist/LICENSE +0 -15
  3026. data/node_modules/yallist/README.md +0 -204
  3027. data/node_modules/yallist/iterator.js +0 -8
  3028. data/node_modules/yallist/package.json +0 -29
  3029. data/node_modules/yallist/yallist.js +0 -426
  3030. data/node_modules/yargs/CHANGELOG.md +0 -151
  3031. data/node_modules/yargs/LICENSE +0 -21
  3032. data/node_modules/yargs/README.md +0 -204
  3033. data/node_modules/yargs/browser.mjs +0 -7
  3034. data/node_modules/yargs/build/index.cjs +0 -1
  3035. data/node_modules/yargs/build/lib/argsert.js +0 -62
  3036. data/node_modules/yargs/build/lib/command.js +0 -436
  3037. data/node_modules/yargs/build/lib/completion-templates.js +0 -48
  3038. data/node_modules/yargs/build/lib/completion.js +0 -166
  3039. data/node_modules/yargs/build/lib/middleware.js +0 -85
  3040. data/node_modules/yargs/build/lib/parse-command.js +0 -32
  3041. data/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  3042. data/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  3043. data/node_modules/yargs/build/lib/usage.js +0 -567
  3044. data/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  3045. data/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  3046. data/node_modules/yargs/build/lib/utils/levenshtein.js +0 -26
  3047. data/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  3048. data/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  3049. data/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  3050. data/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  3051. data/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  3052. data/node_modules/yargs/build/lib/validation.js +0 -279
  3053. data/node_modules/yargs/build/lib/yargs-factory.js +0 -1452
  3054. data/node_modules/yargs/build/lib/yerror.js +0 -7
  3055. data/node_modules/yargs/helpers/helpers.mjs +0 -10
  3056. data/node_modules/yargs/helpers/index.js +0 -14
  3057. data/node_modules/yargs/helpers/package.json +0 -3
  3058. data/node_modules/yargs/index.cjs +0 -43
  3059. data/node_modules/yargs/index.mjs +0 -8
  3060. data/node_modules/yargs/lib/platform-shims/browser.mjs +0 -94
  3061. data/node_modules/yargs/lib/platform-shims/esm.mjs +0 -67
  3062. data/node_modules/yargs/locales/be.json +0 -46
  3063. data/node_modules/yargs/locales/de.json +0 -46
  3064. data/node_modules/yargs/locales/en.json +0 -51
  3065. data/node_modules/yargs/locales/es.json +0 -46
  3066. data/node_modules/yargs/locales/fi.json +0 -49
  3067. data/node_modules/yargs/locales/fr.json +0 -53
  3068. data/node_modules/yargs/locales/hi.json +0 -49
  3069. data/node_modules/yargs/locales/hu.json +0 -46
  3070. data/node_modules/yargs/locales/id.json +0 -50
  3071. data/node_modules/yargs/locales/it.json +0 -46
  3072. data/node_modules/yargs/locales/ja.json +0 -51
  3073. data/node_modules/yargs/locales/ko.json +0 -49
  3074. data/node_modules/yargs/locales/nb.json +0 -44
  3075. data/node_modules/yargs/locales/nl.json +0 -49
  3076. data/node_modules/yargs/locales/nn.json +0 -44
  3077. data/node_modules/yargs/locales/pirate.json +0 -13
  3078. data/node_modules/yargs/locales/pl.json +0 -49
  3079. data/node_modules/yargs/locales/pt.json +0 -45
  3080. data/node_modules/yargs/locales/pt_BR.json +0 -48
  3081. data/node_modules/yargs/locales/ru.json +0 -46
  3082. data/node_modules/yargs/locales/th.json +0 -46
  3083. data/node_modules/yargs/locales/tr.json +0 -48
  3084. data/node_modules/yargs/locales/uk_UA.json +0 -51
  3085. data/node_modules/yargs/locales/zh_CN.json +0 -48
  3086. data/node_modules/yargs/locales/zh_TW.json +0 -47
  3087. data/node_modules/yargs/package.json +0 -116
  3088. data/node_modules/yargs/yargs +0 -9
  3089. data/node_modules/yargs-parser/CHANGELOG.md +0 -263
  3090. data/node_modules/yargs-parser/LICENSE.txt +0 -14
  3091. data/node_modules/yargs-parser/README.md +0 -518
  3092. data/node_modules/yargs-parser/browser.js +0 -29
  3093. data/node_modules/yargs-parser/build/index.cjs +0 -1042
  3094. data/node_modules/yargs-parser/build/lib/index.js +0 -59
  3095. data/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  3096. data/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  3097. data/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  3098. data/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1037
  3099. data/node_modules/yargs-parser/package.json +0 -87
@@ -1,4934 +0,0 @@
1
- ;(function (globalScope) {
2
- 'use strict';
3
-
4
-
5
- /*
6
- * decimal.js v10.3.1
7
- * An arbitrary-precision Decimal type for JavaScript.
8
- * https://github.com/MikeMcl/decimal.js
9
- * Copyright (c) 2021 Michael Mclaughlin <M8ch88l@gmail.com>
10
- * MIT Licence
11
- */
12
-
13
-
14
- // ----------------------------------- EDITABLE DEFAULTS ------------------------------------ //
15
-
16
-
17
- // The maximum exponent magnitude.
18
- // The limit on the value of `toExpNeg`, `toExpPos`, `minE` and `maxE`.
19
- var EXP_LIMIT = 9e15, // 0 to 9e15
20
-
21
- // The limit on the value of `precision`, and on the value of the first argument to
22
- // `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`.
23
- MAX_DIGITS = 1e9, // 0 to 1e9
24
-
25
- // Base conversion alphabet.
26
- NUMERALS = '0123456789abcdef',
27
-
28
- // The natural logarithm of 10 (1025 digits).
29
- LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058',
30
-
31
- // Pi (1025 digits).
32
- PI = '3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789',
33
-
34
-
35
- // The initial configuration properties of the Decimal constructor.
36
- DEFAULTS = {
37
-
38
- // These values must be integers within the stated ranges (inclusive).
39
- // Most of these values can be changed at run-time using the `Decimal.config` method.
40
-
41
- // The maximum number of significant digits of the result of a calculation or base conversion.
42
- // E.g. `Decimal.config({ precision: 20 });`
43
- precision: 20, // 1 to MAX_DIGITS
44
-
45
- // The rounding mode used when rounding to `precision`.
46
- //
47
- // ROUND_UP 0 Away from zero.
48
- // ROUND_DOWN 1 Towards zero.
49
- // ROUND_CEIL 2 Towards +Infinity.
50
- // ROUND_FLOOR 3 Towards -Infinity.
51
- // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
52
- // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
53
- // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
54
- // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
55
- // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
56
- //
57
- // E.g.
58
- // `Decimal.rounding = 4;`
59
- // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
60
- rounding: 4, // 0 to 8
61
-
62
- // The modulo mode used when calculating the modulus: a mod n.
63
- // The quotient (q = a / n) is calculated according to the corresponding rounding mode.
64
- // The remainder (r) is calculated as: r = a - n * q.
65
- //
66
- // UP 0 The remainder is positive if the dividend is negative, else is negative.
67
- // DOWN 1 The remainder has the same sign as the dividend (JavaScript %).
68
- // FLOOR 3 The remainder has the same sign as the divisor (Python %).
69
- // HALF_EVEN 6 The IEEE 754 remainder function.
70
- // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive.
71
- //
72
- // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian
73
- // division (9) are commonly used for the modulus operation. The other rounding modes can also
74
- // be used, but they may not give useful results.
75
- modulo: 1, // 0 to 9
76
-
77
- // The exponent value at and beneath which `toString` returns exponential notation.
78
- // JavaScript numbers: -7
79
- toExpNeg: -7, // 0 to -EXP_LIMIT
80
-
81
- // The exponent value at and above which `toString` returns exponential notation.
82
- // JavaScript numbers: 21
83
- toExpPos: 21, // 0 to EXP_LIMIT
84
-
85
- // The minimum exponent value, beneath which underflow to zero occurs.
86
- // JavaScript numbers: -324 (5e-324)
87
- minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
88
-
89
- // The maximum exponent value, above which overflow to Infinity occurs.
90
- // JavaScript numbers: 308 (1.7976931348623157e+308)
91
- maxE: EXP_LIMIT, // 1 to EXP_LIMIT
92
-
93
- // Whether to use cryptographically-secure random number generation, if available.
94
- crypto: false // true/false
95
- },
96
-
97
-
98
- // ----------------------------------- END OF EDITABLE DEFAULTS ------------------------------- //
99
-
100
-
101
- Decimal, inexact, noConflict, quadrant,
102
- external = true,
103
-
104
- decimalError = '[DecimalError] ',
105
- invalidArgument = decimalError + 'Invalid argument: ',
106
- precisionLimitExceeded = decimalError + 'Precision limit exceeded',
107
- cryptoUnavailable = decimalError + 'crypto unavailable',
108
- tag = '[object Decimal]',
109
-
110
- mathfloor = Math.floor,
111
- mathpow = Math.pow,
112
-
113
- isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,
114
- isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,
115
- isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,
116
- isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
117
-
118
- BASE = 1e7,
119
- LOG_BASE = 7,
120
- MAX_SAFE_INTEGER = 9007199254740991,
121
-
122
- LN10_PRECISION = LN10.length - 1,
123
- PI_PRECISION = PI.length - 1,
124
-
125
- // Decimal.prototype object
126
- P = { toStringTag: tag };
127
-
128
-
129
- // Decimal prototype methods
130
-
131
-
132
- /*
133
- * absoluteValue abs
134
- * ceil
135
- * clampedTo clamp
136
- * comparedTo cmp
137
- * cosine cos
138
- * cubeRoot cbrt
139
- * decimalPlaces dp
140
- * dividedBy div
141
- * dividedToIntegerBy divToInt
142
- * equals eq
143
- * floor
144
- * greaterThan gt
145
- * greaterThanOrEqualTo gte
146
- * hyperbolicCosine cosh
147
- * hyperbolicSine sinh
148
- * hyperbolicTangent tanh
149
- * inverseCosine acos
150
- * inverseHyperbolicCosine acosh
151
- * inverseHyperbolicSine asinh
152
- * inverseHyperbolicTangent atanh
153
- * inverseSine asin
154
- * inverseTangent atan
155
- * isFinite
156
- * isInteger isInt
157
- * isNaN
158
- * isNegative isNeg
159
- * isPositive isPos
160
- * isZero
161
- * lessThan lt
162
- * lessThanOrEqualTo lte
163
- * logarithm log
164
- * [maximum] [max]
165
- * [minimum] [min]
166
- * minus sub
167
- * modulo mod
168
- * naturalExponential exp
169
- * naturalLogarithm ln
170
- * negated neg
171
- * plus add
172
- * precision sd
173
- * round
174
- * sine sin
175
- * squareRoot sqrt
176
- * tangent tan
177
- * times mul
178
- * toBinary
179
- * toDecimalPlaces toDP
180
- * toExponential
181
- * toFixed
182
- * toFraction
183
- * toHexadecimal toHex
184
- * toNearest
185
- * toNumber
186
- * toOctal
187
- * toPower pow
188
- * toPrecision
189
- * toSignificantDigits toSD
190
- * toString
191
- * truncated trunc
192
- * valueOf toJSON
193
- */
194
-
195
-
196
- /*
197
- * Return a new Decimal whose value is the absolute value of this Decimal.
198
- *
199
- */
200
- P.absoluteValue = P.abs = function () {
201
- var x = new this.constructor(this);
202
- if (x.s < 0) x.s = 1;
203
- return finalise(x);
204
- };
205
-
206
-
207
- /*
208
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the
209
- * direction of positive Infinity.
210
- *
211
- */
212
- P.ceil = function () {
213
- return finalise(new this.constructor(this), this.e + 1, 2);
214
- };
215
-
216
-
217
- /*
218
- * Return a new Decimal whose value is the value of this Decimal clamped to the range
219
- * delineated by `min` and `max`.
220
- *
221
- * min {number|string|Decimal}
222
- * max {number|string|Decimal}
223
- *
224
- */
225
- P.clampedTo = P.clamp = function (min, max) {
226
- var k,
227
- x = this,
228
- Ctor = x.constructor;
229
- min = new Ctor(min);
230
- max = new Ctor(max);
231
- if (!min.s || !max.s) return new Ctor(NaN);
232
- if (min.gt(max)) throw Error(invalidArgument + max);
233
- k = x.cmp(min);
234
- return k < 0 ? min : x.cmp(max) > 0 ? max : new Ctor(x);
235
- };
236
-
237
-
238
- /*
239
- * Return
240
- * 1 if the value of this Decimal is greater than the value of `y`,
241
- * -1 if the value of this Decimal is less than the value of `y`,
242
- * 0 if they have the same value,
243
- * NaN if the value of either Decimal is NaN.
244
- *
245
- */
246
- P.comparedTo = P.cmp = function (y) {
247
- var i, j, xdL, ydL,
248
- x = this,
249
- xd = x.d,
250
- yd = (y = new x.constructor(y)).d,
251
- xs = x.s,
252
- ys = y.s;
253
-
254
- // Either NaN or ±Infinity?
255
- if (!xd || !yd) {
256
- return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1;
257
- }
258
-
259
- // Either zero?
260
- if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0;
261
-
262
- // Signs differ?
263
- if (xs !== ys) return xs;
264
-
265
- // Compare exponents.
266
- if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1;
267
-
268
- xdL = xd.length;
269
- ydL = yd.length;
270
-
271
- // Compare digit by digit.
272
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
273
- if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1;
274
- }
275
-
276
- // Compare lengths.
277
- return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1;
278
- };
279
-
280
-
281
- /*
282
- * Return a new Decimal whose value is the cosine of the value in radians of this Decimal.
283
- *
284
- * Domain: [-Infinity, Infinity]
285
- * Range: [-1, 1]
286
- *
287
- * cos(0) = 1
288
- * cos(-0) = 1
289
- * cos(Infinity) = NaN
290
- * cos(-Infinity) = NaN
291
- * cos(NaN) = NaN
292
- *
293
- */
294
- P.cosine = P.cos = function () {
295
- var pr, rm,
296
- x = this,
297
- Ctor = x.constructor;
298
-
299
- if (!x.d) return new Ctor(NaN);
300
-
301
- // cos(0) = cos(-0) = 1
302
- if (!x.d[0]) return new Ctor(1);
303
-
304
- pr = Ctor.precision;
305
- rm = Ctor.rounding;
306
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
307
- Ctor.rounding = 1;
308
-
309
- x = cosine(Ctor, toLessThanHalfPi(Ctor, x));
310
-
311
- Ctor.precision = pr;
312
- Ctor.rounding = rm;
313
-
314
- return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true);
315
- };
316
-
317
-
318
- /*
319
- *
320
- * Return a new Decimal whose value is the cube root of the value of this Decimal, rounded to
321
- * `precision` significant digits using rounding mode `rounding`.
322
- *
323
- * cbrt(0) = 0
324
- * cbrt(-0) = -0
325
- * cbrt(1) = 1
326
- * cbrt(-1) = -1
327
- * cbrt(N) = N
328
- * cbrt(-I) = -I
329
- * cbrt(I) = I
330
- *
331
- * Math.cbrt(x) = (x < 0 ? -Math.pow(-x, 1/3) : Math.pow(x, 1/3))
332
- *
333
- */
334
- P.cubeRoot = P.cbrt = function () {
335
- var e, m, n, r, rep, s, sd, t, t3, t3plusx,
336
- x = this,
337
- Ctor = x.constructor;
338
-
339
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
340
- external = false;
341
-
342
- // Initial estimate.
343
- s = x.s * mathpow(x.s * x, 1 / 3);
344
-
345
- // Math.cbrt underflow/overflow?
346
- // Pass x to Math.pow as integer, then adjust the exponent of the result.
347
- if (!s || Math.abs(s) == 1 / 0) {
348
- n = digitsToString(x.d);
349
- e = x.e;
350
-
351
- // Adjust n exponent so it is a multiple of 3 away from x exponent.
352
- if (s = (e - n.length + 1) % 3) n += (s == 1 || s == -2 ? '0' : '00');
353
- s = mathpow(n, 1 / 3);
354
-
355
- // Rarely, e may be one less than the result exponent value.
356
- e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));
357
-
358
- if (s == 1 / 0) {
359
- n = '5e' + e;
360
- } else {
361
- n = s.toExponential();
362
- n = n.slice(0, n.indexOf('e') + 1) + e;
363
- }
364
-
365
- r = new Ctor(n);
366
- r.s = x.s;
367
- } else {
368
- r = new Ctor(s.toString());
369
- }
370
-
371
- sd = (e = Ctor.precision) + 3;
372
-
373
- // Halley's method.
374
- // TODO? Compare Newton's method.
375
- for (;;) {
376
- t = r;
377
- t3 = t.times(t).times(t);
378
- t3plusx = t3.plus(x);
379
- r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1);
380
-
381
- // TODO? Replace with for-loop and checkRoundingDigits.
382
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
383
- n = n.slice(sd - 3, sd + 1);
384
-
385
- // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or 4999
386
- // , i.e. approaching a rounding boundary, continue the iteration.
387
- if (n == '9999' || !rep && n == '4999') {
388
-
389
- // On the first iteration only, check to see if rounding up gives the exact result as the
390
- // nines may infinitely repeat.
391
- if (!rep) {
392
- finalise(t, e + 1, 0);
393
-
394
- if (t.times(t).times(t).eq(x)) {
395
- r = t;
396
- break;
397
- }
398
- }
399
-
400
- sd += 4;
401
- rep = 1;
402
- } else {
403
-
404
- // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.
405
- // If not, then there are further digits and m will be truthy.
406
- if (!+n || !+n.slice(1) && n.charAt(0) == '5') {
407
-
408
- // Truncate to the first rounding digit.
409
- finalise(r, e + 1, 1);
410
- m = !r.times(r).times(r).eq(x);
411
- }
412
-
413
- break;
414
- }
415
- }
416
- }
417
-
418
- external = true;
419
-
420
- return finalise(r, e, Ctor.rounding, m);
421
- };
422
-
423
-
424
- /*
425
- * Return the number of decimal places of the value of this Decimal.
426
- *
427
- */
428
- P.decimalPlaces = P.dp = function () {
429
- var w,
430
- d = this.d,
431
- n = NaN;
432
-
433
- if (d) {
434
- w = d.length - 1;
435
- n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE;
436
-
437
- // Subtract the number of trailing zeros of the last word.
438
- w = d[w];
439
- if (w) for (; w % 10 == 0; w /= 10) n--;
440
- if (n < 0) n = 0;
441
- }
442
-
443
- return n;
444
- };
445
-
446
-
447
- /*
448
- * n / 0 = I
449
- * n / N = N
450
- * n / I = 0
451
- * 0 / n = 0
452
- * 0 / 0 = N
453
- * 0 / N = N
454
- * 0 / I = 0
455
- * N / n = N
456
- * N / 0 = N
457
- * N / N = N
458
- * N / I = N
459
- * I / n = I
460
- * I / 0 = I
461
- * I / N = N
462
- * I / I = N
463
- *
464
- * Return a new Decimal whose value is the value of this Decimal divided by `y`, rounded to
465
- * `precision` significant digits using rounding mode `rounding`.
466
- *
467
- */
468
- P.dividedBy = P.div = function (y) {
469
- return divide(this, new this.constructor(y));
470
- };
471
-
472
-
473
- /*
474
- * Return a new Decimal whose value is the integer part of dividing the value of this Decimal
475
- * by the value of `y`, rounded to `precision` significant digits using rounding mode `rounding`.
476
- *
477
- */
478
- P.dividedToIntegerBy = P.divToInt = function (y) {
479
- var x = this,
480
- Ctor = x.constructor;
481
- return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding);
482
- };
483
-
484
-
485
- /*
486
- * Return true if the value of this Decimal is equal to the value of `y`, otherwise return false.
487
- *
488
- */
489
- P.equals = P.eq = function (y) {
490
- return this.cmp(y) === 0;
491
- };
492
-
493
-
494
- /*
495
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the
496
- * direction of negative Infinity.
497
- *
498
- */
499
- P.floor = function () {
500
- return finalise(new this.constructor(this), this.e + 1, 3);
501
- };
502
-
503
-
504
- /*
505
- * Return true if the value of this Decimal is greater than the value of `y`, otherwise return
506
- * false.
507
- *
508
- */
509
- P.greaterThan = P.gt = function (y) {
510
- return this.cmp(y) > 0;
511
- };
512
-
513
-
514
- /*
515
- * Return true if the value of this Decimal is greater than or equal to the value of `y`,
516
- * otherwise return false.
517
- *
518
- */
519
- P.greaterThanOrEqualTo = P.gte = function (y) {
520
- var k = this.cmp(y);
521
- return k == 1 || k === 0;
522
- };
523
-
524
-
525
- /*
526
- * Return a new Decimal whose value is the hyperbolic cosine of the value in radians of this
527
- * Decimal.
528
- *
529
- * Domain: [-Infinity, Infinity]
530
- * Range: [1, Infinity]
531
- *
532
- * cosh(x) = 1 + x^2/2! + x^4/4! + x^6/6! + ...
533
- *
534
- * cosh(0) = 1
535
- * cosh(-0) = 1
536
- * cosh(Infinity) = Infinity
537
- * cosh(-Infinity) = Infinity
538
- * cosh(NaN) = NaN
539
- *
540
- * x time taken (ms) result
541
- * 1000 9 9.8503555700852349694e+433
542
- * 10000 25 4.4034091128314607936e+4342
543
- * 100000 171 1.4033316802130615897e+43429
544
- * 1000000 3817 1.5166076984010437725e+434294
545
- * 10000000 abandoned after 2 minute wait
546
- *
547
- * TODO? Compare performance of cosh(x) = 0.5 * (exp(x) + exp(-x))
548
- *
549
- */
550
- P.hyperbolicCosine = P.cosh = function () {
551
- var k, n, pr, rm, len,
552
- x = this,
553
- Ctor = x.constructor,
554
- one = new Ctor(1);
555
-
556
- if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);
557
- if (x.isZero()) return one;
558
-
559
- pr = Ctor.precision;
560
- rm = Ctor.rounding;
561
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
562
- Ctor.rounding = 1;
563
- len = x.d.length;
564
-
565
- // Argument reduction: cos(4x) = 1 - 8cos^2(x) + 8cos^4(x) + 1
566
- // i.e. cos(x) = 1 - cos^2(x/4)(8 - 8cos^2(x/4))
567
-
568
- // Estimate the optimum number of times to use the argument reduction.
569
- // TODO? Estimation reused from cosine() and may not be optimal here.
570
- if (len < 32) {
571
- k = Math.ceil(len / 3);
572
- n = (1 / tinyPow(4, k)).toString();
573
- } else {
574
- k = 16;
575
- n = '2.3283064365386962890625e-10';
576
- }
577
-
578
- x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true);
579
-
580
- // Reverse argument reduction
581
- var cosh2_x,
582
- i = k,
583
- d8 = new Ctor(8);
584
- for (; i--;) {
585
- cosh2_x = x.times(x);
586
- x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));
587
- }
588
-
589
- return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true);
590
- };
591
-
592
-
593
- /*
594
- * Return a new Decimal whose value is the hyperbolic sine of the value in radians of this
595
- * Decimal.
596
- *
597
- * Domain: [-Infinity, Infinity]
598
- * Range: [-Infinity, Infinity]
599
- *
600
- * sinh(x) = x + x^3/3! + x^5/5! + x^7/7! + ...
601
- *
602
- * sinh(0) = 0
603
- * sinh(-0) = -0
604
- * sinh(Infinity) = Infinity
605
- * sinh(-Infinity) = -Infinity
606
- * sinh(NaN) = NaN
607
- *
608
- * x time taken (ms)
609
- * 10 2 ms
610
- * 100 5 ms
611
- * 1000 14 ms
612
- * 10000 82 ms
613
- * 100000 886 ms 1.4033316802130615897e+43429
614
- * 200000 2613 ms
615
- * 300000 5407 ms
616
- * 400000 8824 ms
617
- * 500000 13026 ms 8.7080643612718084129e+217146
618
- * 1000000 48543 ms
619
- *
620
- * TODO? Compare performance of sinh(x) = 0.5 * (exp(x) - exp(-x))
621
- *
622
- */
623
- P.hyperbolicSine = P.sinh = function () {
624
- var k, pr, rm, len,
625
- x = this,
626
- Ctor = x.constructor;
627
-
628
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
629
-
630
- pr = Ctor.precision;
631
- rm = Ctor.rounding;
632
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
633
- Ctor.rounding = 1;
634
- len = x.d.length;
635
-
636
- if (len < 3) {
637
- x = taylorSeries(Ctor, 2, x, x, true);
638
- } else {
639
-
640
- // Alternative argument reduction: sinh(3x) = sinh(x)(3 + 4sinh^2(x))
641
- // i.e. sinh(x) = sinh(x/3)(3 + 4sinh^2(x/3))
642
- // 3 multiplications and 1 addition
643
-
644
- // Argument reduction: sinh(5x) = sinh(x)(5 + sinh^2(x)(20 + 16sinh^2(x)))
645
- // i.e. sinh(x) = sinh(x/5)(5 + sinh^2(x/5)(20 + 16sinh^2(x/5)))
646
- // 4 multiplications and 2 additions
647
-
648
- // Estimate the optimum number of times to use the argument reduction.
649
- k = 1.4 * Math.sqrt(len);
650
- k = k > 16 ? 16 : k | 0;
651
-
652
- x = x.times(1 / tinyPow(5, k));
653
- x = taylorSeries(Ctor, 2, x, x, true);
654
-
655
- // Reverse argument reduction
656
- var sinh2_x,
657
- d5 = new Ctor(5),
658
- d16 = new Ctor(16),
659
- d20 = new Ctor(20);
660
- for (; k--;) {
661
- sinh2_x = x.times(x);
662
- x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))));
663
- }
664
- }
665
-
666
- Ctor.precision = pr;
667
- Ctor.rounding = rm;
668
-
669
- return finalise(x, pr, rm, true);
670
- };
671
-
672
-
673
- /*
674
- * Return a new Decimal whose value is the hyperbolic tangent of the value in radians of this
675
- * Decimal.
676
- *
677
- * Domain: [-Infinity, Infinity]
678
- * Range: [-1, 1]
679
- *
680
- * tanh(x) = sinh(x) / cosh(x)
681
- *
682
- * tanh(0) = 0
683
- * tanh(-0) = -0
684
- * tanh(Infinity) = 1
685
- * tanh(-Infinity) = -1
686
- * tanh(NaN) = NaN
687
- *
688
- */
689
- P.hyperbolicTangent = P.tanh = function () {
690
- var pr, rm,
691
- x = this,
692
- Ctor = x.constructor;
693
-
694
- if (!x.isFinite()) return new Ctor(x.s);
695
- if (x.isZero()) return new Ctor(x);
696
-
697
- pr = Ctor.precision;
698
- rm = Ctor.rounding;
699
- Ctor.precision = pr + 7;
700
- Ctor.rounding = 1;
701
-
702
- return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
703
- };
704
-
705
-
706
- /*
707
- * Return a new Decimal whose value is the arccosine (inverse cosine) in radians of the value of
708
- * this Decimal.
709
- *
710
- * Domain: [-1, 1]
711
- * Range: [0, pi]
712
- *
713
- * acos(x) = pi/2 - asin(x)
714
- *
715
- * acos(0) = pi/2
716
- * acos(-0) = pi/2
717
- * acos(1) = 0
718
- * acos(-1) = pi
719
- * acos(1/2) = pi/3
720
- * acos(-1/2) = 2*pi/3
721
- * acos(|x| > 1) = NaN
722
- * acos(NaN) = NaN
723
- *
724
- */
725
- P.inverseCosine = P.acos = function () {
726
- var halfPi,
727
- x = this,
728
- Ctor = x.constructor,
729
- k = x.abs().cmp(1),
730
- pr = Ctor.precision,
731
- rm = Ctor.rounding;
732
-
733
- if (k !== -1) {
734
- return k === 0
735
- // |x| is 1
736
- ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0)
737
- // |x| > 1 or x is NaN
738
- : new Ctor(NaN);
739
- }
740
-
741
- if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5);
742
-
743
- // TODO? Special case acos(0.5) = pi/3 and acos(-0.5) = 2*pi/3
744
-
745
- Ctor.precision = pr + 6;
746
- Ctor.rounding = 1;
747
-
748
- x = x.asin();
749
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
750
-
751
- Ctor.precision = pr;
752
- Ctor.rounding = rm;
753
-
754
- return halfPi.minus(x);
755
- };
756
-
757
-
758
- /*
759
- * Return a new Decimal whose value is the inverse of the hyperbolic cosine in radians of the
760
- * value of this Decimal.
761
- *
762
- * Domain: [1, Infinity]
763
- * Range: [0, Infinity]
764
- *
765
- * acosh(x) = ln(x + sqrt(x^2 - 1))
766
- *
767
- * acosh(x < 1) = NaN
768
- * acosh(NaN) = NaN
769
- * acosh(Infinity) = Infinity
770
- * acosh(-Infinity) = NaN
771
- * acosh(0) = NaN
772
- * acosh(-0) = NaN
773
- * acosh(1) = 0
774
- * acosh(-1) = NaN
775
- *
776
- */
777
- P.inverseHyperbolicCosine = P.acosh = function () {
778
- var pr, rm,
779
- x = this,
780
- Ctor = x.constructor;
781
-
782
- if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN);
783
- if (!x.isFinite()) return new Ctor(x);
784
-
785
- pr = Ctor.precision;
786
- rm = Ctor.rounding;
787
- Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4;
788
- Ctor.rounding = 1;
789
- external = false;
790
-
791
- x = x.times(x).minus(1).sqrt().plus(x);
792
-
793
- external = true;
794
- Ctor.precision = pr;
795
- Ctor.rounding = rm;
796
-
797
- return x.ln();
798
- };
799
-
800
-
801
- /*
802
- * Return a new Decimal whose value is the inverse of the hyperbolic sine in radians of the value
803
- * of this Decimal.
804
- *
805
- * Domain: [-Infinity, Infinity]
806
- * Range: [-Infinity, Infinity]
807
- *
808
- * asinh(x) = ln(x + sqrt(x^2 + 1))
809
- *
810
- * asinh(NaN) = NaN
811
- * asinh(Infinity) = Infinity
812
- * asinh(-Infinity) = -Infinity
813
- * asinh(0) = 0
814
- * asinh(-0) = -0
815
- *
816
- */
817
- P.inverseHyperbolicSine = P.asinh = function () {
818
- var pr, rm,
819
- x = this,
820
- Ctor = x.constructor;
821
-
822
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
823
-
824
- pr = Ctor.precision;
825
- rm = Ctor.rounding;
826
- Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6;
827
- Ctor.rounding = 1;
828
- external = false;
829
-
830
- x = x.times(x).plus(1).sqrt().plus(x);
831
-
832
- external = true;
833
- Ctor.precision = pr;
834
- Ctor.rounding = rm;
835
-
836
- return x.ln();
837
- };
838
-
839
-
840
- /*
841
- * Return a new Decimal whose value is the inverse of the hyperbolic tangent in radians of the
842
- * value of this Decimal.
843
- *
844
- * Domain: [-1, 1]
845
- * Range: [-Infinity, Infinity]
846
- *
847
- * atanh(x) = 0.5 * ln((1 + x) / (1 - x))
848
- *
849
- * atanh(|x| > 1) = NaN
850
- * atanh(NaN) = NaN
851
- * atanh(Infinity) = NaN
852
- * atanh(-Infinity) = NaN
853
- * atanh(0) = 0
854
- * atanh(-0) = -0
855
- * atanh(1) = Infinity
856
- * atanh(-1) = -Infinity
857
- *
858
- */
859
- P.inverseHyperbolicTangent = P.atanh = function () {
860
- var pr, rm, wpr, xsd,
861
- x = this,
862
- Ctor = x.constructor;
863
-
864
- if (!x.isFinite()) return new Ctor(NaN);
865
- if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN);
866
-
867
- pr = Ctor.precision;
868
- rm = Ctor.rounding;
869
- xsd = x.sd();
870
-
871
- if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true);
872
-
873
- Ctor.precision = wpr = xsd - x.e;
874
-
875
- x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1);
876
-
877
- Ctor.precision = pr + 4;
878
- Ctor.rounding = 1;
879
-
880
- x = x.ln();
881
-
882
- Ctor.precision = pr;
883
- Ctor.rounding = rm;
884
-
885
- return x.times(0.5);
886
- };
887
-
888
-
889
- /*
890
- * Return a new Decimal whose value is the arcsine (inverse sine) in radians of the value of this
891
- * Decimal.
892
- *
893
- * Domain: [-Infinity, Infinity]
894
- * Range: [-pi/2, pi/2]
895
- *
896
- * asin(x) = 2*atan(x/(1 + sqrt(1 - x^2)))
897
- *
898
- * asin(0) = 0
899
- * asin(-0) = -0
900
- * asin(1/2) = pi/6
901
- * asin(-1/2) = -pi/6
902
- * asin(1) = pi/2
903
- * asin(-1) = -pi/2
904
- * asin(|x| > 1) = NaN
905
- * asin(NaN) = NaN
906
- *
907
- * TODO? Compare performance of Taylor series.
908
- *
909
- */
910
- P.inverseSine = P.asin = function () {
911
- var halfPi, k,
912
- pr, rm,
913
- x = this,
914
- Ctor = x.constructor;
915
-
916
- if (x.isZero()) return new Ctor(x);
917
-
918
- k = x.abs().cmp(1);
919
- pr = Ctor.precision;
920
- rm = Ctor.rounding;
921
-
922
- if (k !== -1) {
923
-
924
- // |x| is 1
925
- if (k === 0) {
926
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
927
- halfPi.s = x.s;
928
- return halfPi;
929
- }
930
-
931
- // |x| > 1 or x is NaN
932
- return new Ctor(NaN);
933
- }
934
-
935
- // TODO? Special case asin(1/2) = pi/6 and asin(-1/2) = -pi/6
936
-
937
- Ctor.precision = pr + 6;
938
- Ctor.rounding = 1;
939
-
940
- x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan();
941
-
942
- Ctor.precision = pr;
943
- Ctor.rounding = rm;
944
-
945
- return x.times(2);
946
- };
947
-
948
-
949
- /*
950
- * Return a new Decimal whose value is the arctangent (inverse tangent) in radians of the value
951
- * of this Decimal.
952
- *
953
- * Domain: [-Infinity, Infinity]
954
- * Range: [-pi/2, pi/2]
955
- *
956
- * atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...
957
- *
958
- * atan(0) = 0
959
- * atan(-0) = -0
960
- * atan(1) = pi/4
961
- * atan(-1) = -pi/4
962
- * atan(Infinity) = pi/2
963
- * atan(-Infinity) = -pi/2
964
- * atan(NaN) = NaN
965
- *
966
- */
967
- P.inverseTangent = P.atan = function () {
968
- var i, j, k, n, px, t, r, wpr, x2,
969
- x = this,
970
- Ctor = x.constructor,
971
- pr = Ctor.precision,
972
- rm = Ctor.rounding;
973
-
974
- if (!x.isFinite()) {
975
- if (!x.s) return new Ctor(NaN);
976
- if (pr + 4 <= PI_PRECISION) {
977
- r = getPi(Ctor, pr + 4, rm).times(0.5);
978
- r.s = x.s;
979
- return r;
980
- }
981
- } else if (x.isZero()) {
982
- return new Ctor(x);
983
- } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) {
984
- r = getPi(Ctor, pr + 4, rm).times(0.25);
985
- r.s = x.s;
986
- return r;
987
- }
988
-
989
- Ctor.precision = wpr = pr + 10;
990
- Ctor.rounding = 1;
991
-
992
- // TODO? if (x >= 1 && pr <= PI_PRECISION) atan(x) = halfPi * x.s - atan(1 / x);
993
-
994
- // Argument reduction
995
- // Ensure |x| < 0.42
996
- // atan(x) = 2 * atan(x / (1 + sqrt(1 + x^2)))
997
-
998
- k = Math.min(28, wpr / LOG_BASE + 2 | 0);
999
-
1000
- for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1));
1001
-
1002
- external = false;
1003
-
1004
- j = Math.ceil(wpr / LOG_BASE);
1005
- n = 1;
1006
- x2 = x.times(x);
1007
- r = new Ctor(x);
1008
- px = x;
1009
-
1010
- // atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...
1011
- for (; i !== -1;) {
1012
- px = px.times(x2);
1013
- t = r.minus(px.div(n += 2));
1014
-
1015
- px = px.times(x2);
1016
- r = t.plus(px.div(n += 2));
1017
-
1018
- if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--;);
1019
- }
1020
-
1021
- if (k) r = r.times(2 << (k - 1));
1022
-
1023
- external = true;
1024
-
1025
- return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true);
1026
- };
1027
-
1028
-
1029
- /*
1030
- * Return true if the value of this Decimal is a finite number, otherwise return false.
1031
- *
1032
- */
1033
- P.isFinite = function () {
1034
- return !!this.d;
1035
- };
1036
-
1037
-
1038
- /*
1039
- * Return true if the value of this Decimal is an integer, otherwise return false.
1040
- *
1041
- */
1042
- P.isInteger = P.isInt = function () {
1043
- return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2;
1044
- };
1045
-
1046
-
1047
- /*
1048
- * Return true if the value of this Decimal is NaN, otherwise return false.
1049
- *
1050
- */
1051
- P.isNaN = function () {
1052
- return !this.s;
1053
- };
1054
-
1055
-
1056
- /*
1057
- * Return true if the value of this Decimal is negative, otherwise return false.
1058
- *
1059
- */
1060
- P.isNegative = P.isNeg = function () {
1061
- return this.s < 0;
1062
- };
1063
-
1064
-
1065
- /*
1066
- * Return true if the value of this Decimal is positive, otherwise return false.
1067
- *
1068
- */
1069
- P.isPositive = P.isPos = function () {
1070
- return this.s > 0;
1071
- };
1072
-
1073
-
1074
- /*
1075
- * Return true if the value of this Decimal is 0 or -0, otherwise return false.
1076
- *
1077
- */
1078
- P.isZero = function () {
1079
- return !!this.d && this.d[0] === 0;
1080
- };
1081
-
1082
-
1083
- /*
1084
- * Return true if the value of this Decimal is less than `y`, otherwise return false.
1085
- *
1086
- */
1087
- P.lessThan = P.lt = function (y) {
1088
- return this.cmp(y) < 0;
1089
- };
1090
-
1091
-
1092
- /*
1093
- * Return true if the value of this Decimal is less than or equal to `y`, otherwise return false.
1094
- *
1095
- */
1096
- P.lessThanOrEqualTo = P.lte = function (y) {
1097
- return this.cmp(y) < 1;
1098
- };
1099
-
1100
-
1101
- /*
1102
- * Return the logarithm of the value of this Decimal to the specified base, rounded to `precision`
1103
- * significant digits using rounding mode `rounding`.
1104
- *
1105
- * If no base is specified, return log[10](arg).
1106
- *
1107
- * log[base](arg) = ln(arg) / ln(base)
1108
- *
1109
- * The result will always be correctly rounded if the base of the log is 10, and 'almost always'
1110
- * otherwise:
1111
- *
1112
- * Depending on the rounding mode, the result may be incorrectly rounded if the first fifteen
1113
- * rounding digits are [49]99999999999999 or [50]00000000000000. In that case, the maximum error
1114
- * between the result and the correctly rounded result will be one ulp (unit in the last place).
1115
- *
1116
- * log[-b](a) = NaN
1117
- * log[0](a) = NaN
1118
- * log[1](a) = NaN
1119
- * log[NaN](a) = NaN
1120
- * log[Infinity](a) = NaN
1121
- * log[b](0) = -Infinity
1122
- * log[b](-0) = -Infinity
1123
- * log[b](-a) = NaN
1124
- * log[b](1) = 0
1125
- * log[b](Infinity) = Infinity
1126
- * log[b](NaN) = NaN
1127
- *
1128
- * [base] {number|string|Decimal} The base of the logarithm.
1129
- *
1130
- */
1131
- P.logarithm = P.log = function (base) {
1132
- var isBase10, d, denominator, k, inf, num, sd, r,
1133
- arg = this,
1134
- Ctor = arg.constructor,
1135
- pr = Ctor.precision,
1136
- rm = Ctor.rounding,
1137
- guard = 5;
1138
-
1139
- // Default base is 10.
1140
- if (base == null) {
1141
- base = new Ctor(10);
1142
- isBase10 = true;
1143
- } else {
1144
- base = new Ctor(base);
1145
- d = base.d;
1146
-
1147
- // Return NaN if base is negative, or non-finite, or is 0 or 1.
1148
- if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN);
1149
-
1150
- isBase10 = base.eq(10);
1151
- }
1152
-
1153
- d = arg.d;
1154
-
1155
- // Is arg negative, non-finite, 0 or 1?
1156
- if (arg.s < 0 || !d || !d[0] || arg.eq(1)) {
1157
- return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);
1158
- }
1159
-
1160
- // The result will have a non-terminating decimal expansion if base is 10 and arg is not an
1161
- // integer power of 10.
1162
- if (isBase10) {
1163
- if (d.length > 1) {
1164
- inf = true;
1165
- } else {
1166
- for (k = d[0]; k % 10 === 0;) k /= 10;
1167
- inf = k !== 1;
1168
- }
1169
- }
1170
-
1171
- external = false;
1172
- sd = pr + guard;
1173
- num = naturalLogarithm(arg, sd);
1174
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
1175
-
1176
- // The result will have 5 rounding digits.
1177
- r = divide(num, denominator, sd, 1);
1178
-
1179
- // If at a rounding boundary, i.e. the result's rounding digits are [49]9999 or [50]0000,
1180
- // calculate 10 further digits.
1181
- //
1182
- // If the result is known to have an infinite decimal expansion, repeat this until it is clear
1183
- // that the result is above or below the boundary. Otherwise, if after calculating the 10
1184
- // further digits, the last 14 are nines, round up and assume the result is exact.
1185
- // Also assume the result is exact if the last 14 are zero.
1186
- //
1187
- // Example of a result that will be incorrectly rounded:
1188
- // log[1048576](4503599627370502) = 2.60000000000000009610279511444746...
1189
- // The above result correctly rounded using ROUND_CEIL to 1 decimal place should be 2.7, but it
1190
- // will be given as 2.6 as there are 15 zeros immediately after the requested decimal place, so
1191
- // the exact result would be assumed to be 2.6, which rounded using ROUND_CEIL to 1 decimal
1192
- // place is still 2.6.
1193
- if (checkRoundingDigits(r.d, k = pr, rm)) {
1194
-
1195
- do {
1196
- sd += 10;
1197
- num = naturalLogarithm(arg, sd);
1198
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
1199
- r = divide(num, denominator, sd, 1);
1200
-
1201
- if (!inf) {
1202
-
1203
- // Check for 14 nines from the 2nd rounding digit, as the first may be 4.
1204
- if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 1e14) {
1205
- r = finalise(r, pr + 1, 0);
1206
- }
1207
-
1208
- break;
1209
- }
1210
- } while (checkRoundingDigits(r.d, k += 10, rm));
1211
- }
1212
-
1213
- external = true;
1214
-
1215
- return finalise(r, pr, rm);
1216
- };
1217
-
1218
-
1219
- /*
1220
- * Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal.
1221
- *
1222
- * arguments {number|string|Decimal}
1223
- *
1224
- P.max = function () {
1225
- Array.prototype.push.call(arguments, this);
1226
- return maxOrMin(this.constructor, arguments, 'lt');
1227
- };
1228
- */
1229
-
1230
-
1231
- /*
1232
- * Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal.
1233
- *
1234
- * arguments {number|string|Decimal}
1235
- *
1236
- P.min = function () {
1237
- Array.prototype.push.call(arguments, this);
1238
- return maxOrMin(this.constructor, arguments, 'gt');
1239
- };
1240
- */
1241
-
1242
-
1243
- /*
1244
- * n - 0 = n
1245
- * n - N = N
1246
- * n - I = -I
1247
- * 0 - n = -n
1248
- * 0 - 0 = 0
1249
- * 0 - N = N
1250
- * 0 - I = -I
1251
- * N - n = N
1252
- * N - 0 = N
1253
- * N - N = N
1254
- * N - I = N
1255
- * I - n = I
1256
- * I - 0 = I
1257
- * I - N = N
1258
- * I - I = N
1259
- *
1260
- * Return a new Decimal whose value is the value of this Decimal minus `y`, rounded to `precision`
1261
- * significant digits using rounding mode `rounding`.
1262
- *
1263
- */
1264
- P.minus = P.sub = function (y) {
1265
- var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd,
1266
- x = this,
1267
- Ctor = x.constructor;
1268
-
1269
- y = new Ctor(y);
1270
-
1271
- // If either is not finite...
1272
- if (!x.d || !y.d) {
1273
-
1274
- // Return NaN if either is NaN.
1275
- if (!x.s || !y.s) y = new Ctor(NaN);
1276
-
1277
- // Return y negated if x is finite and y is ±Infinity.
1278
- else if (x.d) y.s = -y.s;
1279
-
1280
- // Return x if y is finite and x is ±Infinity.
1281
- // Return x if both are ±Infinity with different signs.
1282
- // Return NaN if both are ±Infinity with the same sign.
1283
- else y = new Ctor(y.d || x.s !== y.s ? x : NaN);
1284
-
1285
- return y;
1286
- }
1287
-
1288
- // If signs differ...
1289
- if (x.s != y.s) {
1290
- y.s = -y.s;
1291
- return x.plus(y);
1292
- }
1293
-
1294
- xd = x.d;
1295
- yd = y.d;
1296
- pr = Ctor.precision;
1297
- rm = Ctor.rounding;
1298
-
1299
- // If either is zero...
1300
- if (!xd[0] || !yd[0]) {
1301
-
1302
- // Return y negated if x is zero and y is non-zero.
1303
- if (yd[0]) y.s = -y.s;
1304
-
1305
- // Return x if y is zero and x is non-zero.
1306
- else if (xd[0]) y = new Ctor(x);
1307
-
1308
- // Return zero if both are zero.
1309
- // From IEEE 754 (2008) 6.3: 0 - 0 = -0 - -0 = -0 when rounding to -Infinity.
1310
- else return new Ctor(rm === 3 ? -0 : 0);
1311
-
1312
- return external ? finalise(y, pr, rm) : y;
1313
- }
1314
-
1315
- // x and y are finite, non-zero numbers with the same sign.
1316
-
1317
- // Calculate base 1e7 exponents.
1318
- e = mathfloor(y.e / LOG_BASE);
1319
- xe = mathfloor(x.e / LOG_BASE);
1320
-
1321
- xd = xd.slice();
1322
- k = xe - e;
1323
-
1324
- // If base 1e7 exponents differ...
1325
- if (k) {
1326
- xLTy = k < 0;
1327
-
1328
- if (xLTy) {
1329
- d = xd;
1330
- k = -k;
1331
- len = yd.length;
1332
- } else {
1333
- d = yd;
1334
- e = xe;
1335
- len = xd.length;
1336
- }
1337
-
1338
- // Numbers with massively different exponents would result in a very high number of
1339
- // zeros needing to be prepended, but this can be avoided while still ensuring correct
1340
- // rounding by limiting the number of zeros to `Math.ceil(pr / LOG_BASE) + 2`.
1341
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
1342
-
1343
- if (k > i) {
1344
- k = i;
1345
- d.length = 1;
1346
- }
1347
-
1348
- // Prepend zeros to equalise exponents.
1349
- d.reverse();
1350
- for (i = k; i--;) d.push(0);
1351
- d.reverse();
1352
-
1353
- // Base 1e7 exponents equal.
1354
- } else {
1355
-
1356
- // Check digits to determine which is the bigger number.
1357
-
1358
- i = xd.length;
1359
- len = yd.length;
1360
- xLTy = i < len;
1361
- if (xLTy) len = i;
1362
-
1363
- for (i = 0; i < len; i++) {
1364
- if (xd[i] != yd[i]) {
1365
- xLTy = xd[i] < yd[i];
1366
- break;
1367
- }
1368
- }
1369
-
1370
- k = 0;
1371
- }
1372
-
1373
- if (xLTy) {
1374
- d = xd;
1375
- xd = yd;
1376
- yd = d;
1377
- y.s = -y.s;
1378
- }
1379
-
1380
- len = xd.length;
1381
-
1382
- // Append zeros to `xd` if shorter.
1383
- // Don't add zeros to `yd` if shorter as subtraction only needs to start at `yd` length.
1384
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
1385
-
1386
- // Subtract yd from xd.
1387
- for (i = yd.length; i > k;) {
1388
-
1389
- if (xd[--i] < yd[i]) {
1390
- for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;
1391
- --xd[j];
1392
- xd[i] += BASE;
1393
- }
1394
-
1395
- xd[i] -= yd[i];
1396
- }
1397
-
1398
- // Remove trailing zeros.
1399
- for (; xd[--len] === 0;) xd.pop();
1400
-
1401
- // Remove leading zeros and adjust exponent accordingly.
1402
- for (; xd[0] === 0; xd.shift()) --e;
1403
-
1404
- // Zero?
1405
- if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0);
1406
-
1407
- y.d = xd;
1408
- y.e = getBase10Exponent(xd, e);
1409
-
1410
- return external ? finalise(y, pr, rm) : y;
1411
- };
1412
-
1413
-
1414
- /*
1415
- * n % 0 = N
1416
- * n % N = N
1417
- * n % I = n
1418
- * 0 % n = 0
1419
- * -0 % n = -0
1420
- * 0 % 0 = N
1421
- * 0 % N = N
1422
- * 0 % I = 0
1423
- * N % n = N
1424
- * N % 0 = N
1425
- * N % N = N
1426
- * N % I = N
1427
- * I % n = N
1428
- * I % 0 = N
1429
- * I % N = N
1430
- * I % I = N
1431
- *
1432
- * Return a new Decimal whose value is the value of this Decimal modulo `y`, rounded to
1433
- * `precision` significant digits using rounding mode `rounding`.
1434
- *
1435
- * The result depends on the modulo mode.
1436
- *
1437
- */
1438
- P.modulo = P.mod = function (y) {
1439
- var q,
1440
- x = this,
1441
- Ctor = x.constructor;
1442
-
1443
- y = new Ctor(y);
1444
-
1445
- // Return NaN if x is ±Infinity or NaN, or y is NaN or ±0.
1446
- if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN);
1447
-
1448
- // Return x if y is ±Infinity or x is ±0.
1449
- if (!y.d || x.d && !x.d[0]) {
1450
- return finalise(new Ctor(x), Ctor.precision, Ctor.rounding);
1451
- }
1452
-
1453
- // Prevent rounding of intermediate calculations.
1454
- external = false;
1455
-
1456
- if (Ctor.modulo == 9) {
1457
-
1458
- // Euclidian division: q = sign(y) * floor(x / abs(y))
1459
- // result = x - q * y where 0 <= result < abs(y)
1460
- q = divide(x, y.abs(), 0, 3, 1);
1461
- q.s *= y.s;
1462
- } else {
1463
- q = divide(x, y, 0, Ctor.modulo, 1);
1464
- }
1465
-
1466
- q = q.times(y);
1467
-
1468
- external = true;
1469
-
1470
- return x.minus(q);
1471
- };
1472
-
1473
-
1474
- /*
1475
- * Return a new Decimal whose value is the natural exponential of the value of this Decimal,
1476
- * i.e. the base e raised to the power the value of this Decimal, rounded to `precision`
1477
- * significant digits using rounding mode `rounding`.
1478
- *
1479
- */
1480
- P.naturalExponential = P.exp = function () {
1481
- return naturalExponential(this);
1482
- };
1483
-
1484
-
1485
- /*
1486
- * Return a new Decimal whose value is the natural logarithm of the value of this Decimal,
1487
- * rounded to `precision` significant digits using rounding mode `rounding`.
1488
- *
1489
- */
1490
- P.naturalLogarithm = P.ln = function () {
1491
- return naturalLogarithm(this);
1492
- };
1493
-
1494
-
1495
- /*
1496
- * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if multiplied by
1497
- * -1.
1498
- *
1499
- */
1500
- P.negated = P.neg = function () {
1501
- var x = new this.constructor(this);
1502
- x.s = -x.s;
1503
- return finalise(x);
1504
- };
1505
-
1506
-
1507
- /*
1508
- * n + 0 = n
1509
- * n + N = N
1510
- * n + I = I
1511
- * 0 + n = n
1512
- * 0 + 0 = 0
1513
- * 0 + N = N
1514
- * 0 + I = I
1515
- * N + n = N
1516
- * N + 0 = N
1517
- * N + N = N
1518
- * N + I = N
1519
- * I + n = I
1520
- * I + 0 = I
1521
- * I + N = N
1522
- * I + I = I
1523
- *
1524
- * Return a new Decimal whose value is the value of this Decimal plus `y`, rounded to `precision`
1525
- * significant digits using rounding mode `rounding`.
1526
- *
1527
- */
1528
- P.plus = P.add = function (y) {
1529
- var carry, d, e, i, k, len, pr, rm, xd, yd,
1530
- x = this,
1531
- Ctor = x.constructor;
1532
-
1533
- y = new Ctor(y);
1534
-
1535
- // If either is not finite...
1536
- if (!x.d || !y.d) {
1537
-
1538
- // Return NaN if either is NaN.
1539
- if (!x.s || !y.s) y = new Ctor(NaN);
1540
-
1541
- // Return x if y is finite and x is ±Infinity.
1542
- // Return x if both are ±Infinity with the same sign.
1543
- // Return NaN if both are ±Infinity with different signs.
1544
- // Return y if x is finite and y is ±Infinity.
1545
- else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN);
1546
-
1547
- return y;
1548
- }
1549
-
1550
- // If signs differ...
1551
- if (x.s != y.s) {
1552
- y.s = -y.s;
1553
- return x.minus(y);
1554
- }
1555
-
1556
- xd = x.d;
1557
- yd = y.d;
1558
- pr = Ctor.precision;
1559
- rm = Ctor.rounding;
1560
-
1561
- // If either is zero...
1562
- if (!xd[0] || !yd[0]) {
1563
-
1564
- // Return x if y is zero.
1565
- // Return y if y is non-zero.
1566
- if (!yd[0]) y = new Ctor(x);
1567
-
1568
- return external ? finalise(y, pr, rm) : y;
1569
- }
1570
-
1571
- // x and y are finite, non-zero numbers with the same sign.
1572
-
1573
- // Calculate base 1e7 exponents.
1574
- k = mathfloor(x.e / LOG_BASE);
1575
- e = mathfloor(y.e / LOG_BASE);
1576
-
1577
- xd = xd.slice();
1578
- i = k - e;
1579
-
1580
- // If base 1e7 exponents differ...
1581
- if (i) {
1582
-
1583
- if (i < 0) {
1584
- d = xd;
1585
- i = -i;
1586
- len = yd.length;
1587
- } else {
1588
- d = yd;
1589
- e = k;
1590
- len = xd.length;
1591
- }
1592
-
1593
- // Limit number of zeros prepended to max(ceil(pr / LOG_BASE), len) + 1.
1594
- k = Math.ceil(pr / LOG_BASE);
1595
- len = k > len ? k + 1 : len + 1;
1596
-
1597
- if (i > len) {
1598
- i = len;
1599
- d.length = 1;
1600
- }
1601
-
1602
- // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts.
1603
- d.reverse();
1604
- for (; i--;) d.push(0);
1605
- d.reverse();
1606
- }
1607
-
1608
- len = xd.length;
1609
- i = yd.length;
1610
-
1611
- // If yd is longer than xd, swap xd and yd so xd points to the longer array.
1612
- if (len - i < 0) {
1613
- i = len;
1614
- d = yd;
1615
- yd = xd;
1616
- xd = d;
1617
- }
1618
-
1619
- // Only start adding at yd.length - 1 as the further digits of xd can be left as they are.
1620
- for (carry = 0; i;) {
1621
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
1622
- xd[i] %= BASE;
1623
- }
1624
-
1625
- if (carry) {
1626
- xd.unshift(carry);
1627
- ++e;
1628
- }
1629
-
1630
- // Remove trailing zeros.
1631
- // No need to check for zero, as +x + +y != 0 && -x + -y != 0
1632
- for (len = xd.length; xd[--len] == 0;) xd.pop();
1633
-
1634
- y.d = xd;
1635
- y.e = getBase10Exponent(xd, e);
1636
-
1637
- return external ? finalise(y, pr, rm) : y;
1638
- };
1639
-
1640
-
1641
- /*
1642
- * Return the number of significant digits of the value of this Decimal.
1643
- *
1644
- * [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0.
1645
- *
1646
- */
1647
- P.precision = P.sd = function (z) {
1648
- var k,
1649
- x = this;
1650
-
1651
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
1652
-
1653
- if (x.d) {
1654
- k = getPrecision(x.d);
1655
- if (z && x.e + 1 > k) k = x.e + 1;
1656
- } else {
1657
- k = NaN;
1658
- }
1659
-
1660
- return k;
1661
- };
1662
-
1663
-
1664
- /*
1665
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using
1666
- * rounding mode `rounding`.
1667
- *
1668
- */
1669
- P.round = function () {
1670
- var x = this,
1671
- Ctor = x.constructor;
1672
-
1673
- return finalise(new Ctor(x), x.e + 1, Ctor.rounding);
1674
- };
1675
-
1676
-
1677
- /*
1678
- * Return a new Decimal whose value is the sine of the value in radians of this Decimal.
1679
- *
1680
- * Domain: [-Infinity, Infinity]
1681
- * Range: [-1, 1]
1682
- *
1683
- * sin(x) = x - x^3/3! + x^5/5! - ...
1684
- *
1685
- * sin(0) = 0
1686
- * sin(-0) = -0
1687
- * sin(Infinity) = NaN
1688
- * sin(-Infinity) = NaN
1689
- * sin(NaN) = NaN
1690
- *
1691
- */
1692
- P.sine = P.sin = function () {
1693
- var pr, rm,
1694
- x = this,
1695
- Ctor = x.constructor;
1696
-
1697
- if (!x.isFinite()) return new Ctor(NaN);
1698
- if (x.isZero()) return new Ctor(x);
1699
-
1700
- pr = Ctor.precision;
1701
- rm = Ctor.rounding;
1702
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
1703
- Ctor.rounding = 1;
1704
-
1705
- x = sine(Ctor, toLessThanHalfPi(Ctor, x));
1706
-
1707
- Ctor.precision = pr;
1708
- Ctor.rounding = rm;
1709
-
1710
- return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true);
1711
- };
1712
-
1713
-
1714
- /*
1715
- * Return a new Decimal whose value is the square root of this Decimal, rounded to `precision`
1716
- * significant digits using rounding mode `rounding`.
1717
- *
1718
- * sqrt(-n) = N
1719
- * sqrt(N) = N
1720
- * sqrt(-I) = N
1721
- * sqrt(I) = I
1722
- * sqrt(0) = 0
1723
- * sqrt(-0) = -0
1724
- *
1725
- */
1726
- P.squareRoot = P.sqrt = function () {
1727
- var m, n, sd, r, rep, t,
1728
- x = this,
1729
- d = x.d,
1730
- e = x.e,
1731
- s = x.s,
1732
- Ctor = x.constructor;
1733
-
1734
- // Negative/NaN/Infinity/zero?
1735
- if (s !== 1 || !d || !d[0]) {
1736
- return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);
1737
- }
1738
-
1739
- external = false;
1740
-
1741
- // Initial estimate.
1742
- s = Math.sqrt(+x);
1743
-
1744
- // Math.sqrt underflow/overflow?
1745
- // Pass x to Math.sqrt as integer, then adjust the exponent of the result.
1746
- if (s == 0 || s == 1 / 0) {
1747
- n = digitsToString(d);
1748
-
1749
- if ((n.length + e) % 2 == 0) n += '0';
1750
- s = Math.sqrt(n);
1751
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
1752
-
1753
- if (s == 1 / 0) {
1754
- n = '5e' + e;
1755
- } else {
1756
- n = s.toExponential();
1757
- n = n.slice(0, n.indexOf('e') + 1) + e;
1758
- }
1759
-
1760
- r = new Ctor(n);
1761
- } else {
1762
- r = new Ctor(s.toString());
1763
- }
1764
-
1765
- sd = (e = Ctor.precision) + 3;
1766
-
1767
- // Newton-Raphson iteration.
1768
- for (;;) {
1769
- t = r;
1770
- r = t.plus(divide(x, t, sd + 2, 1)).times(0.5);
1771
-
1772
- // TODO? Replace with for-loop and checkRoundingDigits.
1773
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
1774
- n = n.slice(sd - 3, sd + 1);
1775
-
1776
- // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or
1777
- // 4999, i.e. approaching a rounding boundary, continue the iteration.
1778
- if (n == '9999' || !rep && n == '4999') {
1779
-
1780
- // On the first iteration only, check to see if rounding up gives the exact result as the
1781
- // nines may infinitely repeat.
1782
- if (!rep) {
1783
- finalise(t, e + 1, 0);
1784
-
1785
- if (t.times(t).eq(x)) {
1786
- r = t;
1787
- break;
1788
- }
1789
- }
1790
-
1791
- sd += 4;
1792
- rep = 1;
1793
- } else {
1794
-
1795
- // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.
1796
- // If not, then there are further digits and m will be truthy.
1797
- if (!+n || !+n.slice(1) && n.charAt(0) == '5') {
1798
-
1799
- // Truncate to the first rounding digit.
1800
- finalise(r, e + 1, 1);
1801
- m = !r.times(r).eq(x);
1802
- }
1803
-
1804
- break;
1805
- }
1806
- }
1807
- }
1808
-
1809
- external = true;
1810
-
1811
- return finalise(r, e, Ctor.rounding, m);
1812
- };
1813
-
1814
-
1815
- /*
1816
- * Return a new Decimal whose value is the tangent of the value in radians of this Decimal.
1817
- *
1818
- * Domain: [-Infinity, Infinity]
1819
- * Range: [-Infinity, Infinity]
1820
- *
1821
- * tan(0) = 0
1822
- * tan(-0) = -0
1823
- * tan(Infinity) = NaN
1824
- * tan(-Infinity) = NaN
1825
- * tan(NaN) = NaN
1826
- *
1827
- */
1828
- P.tangent = P.tan = function () {
1829
- var pr, rm,
1830
- x = this,
1831
- Ctor = x.constructor;
1832
-
1833
- if (!x.isFinite()) return new Ctor(NaN);
1834
- if (x.isZero()) return new Ctor(x);
1835
-
1836
- pr = Ctor.precision;
1837
- rm = Ctor.rounding;
1838
- Ctor.precision = pr + 10;
1839
- Ctor.rounding = 1;
1840
-
1841
- x = x.sin();
1842
- x.s = 1;
1843
- x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0);
1844
-
1845
- Ctor.precision = pr;
1846
- Ctor.rounding = rm;
1847
-
1848
- return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true);
1849
- };
1850
-
1851
-
1852
- /*
1853
- * n * 0 = 0
1854
- * n * N = N
1855
- * n * I = I
1856
- * 0 * n = 0
1857
- * 0 * 0 = 0
1858
- * 0 * N = N
1859
- * 0 * I = N
1860
- * N * n = N
1861
- * N * 0 = N
1862
- * N * N = N
1863
- * N * I = N
1864
- * I * n = I
1865
- * I * 0 = N
1866
- * I * N = N
1867
- * I * I = I
1868
- *
1869
- * Return a new Decimal whose value is this Decimal times `y`, rounded to `precision` significant
1870
- * digits using rounding mode `rounding`.
1871
- *
1872
- */
1873
- P.times = P.mul = function (y) {
1874
- var carry, e, i, k, r, rL, t, xdL, ydL,
1875
- x = this,
1876
- Ctor = x.constructor,
1877
- xd = x.d,
1878
- yd = (y = new Ctor(y)).d;
1879
-
1880
- y.s *= x.s;
1881
-
1882
- // If either is NaN, ±Infinity or ±0...
1883
- if (!xd || !xd[0] || !yd || !yd[0]) {
1884
-
1885
- return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd
1886
-
1887
- // Return NaN if either is NaN.
1888
- // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity.
1889
- ? NaN
1890
-
1891
- // Return ±Infinity if either is ±Infinity.
1892
- // Return ±0 if either is ±0.
1893
- : !xd || !yd ? y.s / 0 : y.s * 0);
1894
- }
1895
-
1896
- e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE);
1897
- xdL = xd.length;
1898
- ydL = yd.length;
1899
-
1900
- // Ensure xd points to the longer array.
1901
- if (xdL < ydL) {
1902
- r = xd;
1903
- xd = yd;
1904
- yd = r;
1905
- rL = xdL;
1906
- xdL = ydL;
1907
- ydL = rL;
1908
- }
1909
-
1910
- // Initialise the result array with zeros.
1911
- r = [];
1912
- rL = xdL + ydL;
1913
- for (i = rL; i--;) r.push(0);
1914
-
1915
- // Multiply!
1916
- for (i = ydL; --i >= 0;) {
1917
- carry = 0;
1918
- for (k = xdL + i; k > i;) {
1919
- t = r[k] + yd[i] * xd[k - i - 1] + carry;
1920
- r[k--] = t % BASE | 0;
1921
- carry = t / BASE | 0;
1922
- }
1923
-
1924
- r[k] = (r[k] + carry) % BASE | 0;
1925
- }
1926
-
1927
- // Remove trailing zeros.
1928
- for (; !r[--rL];) r.pop();
1929
-
1930
- if (carry) ++e;
1931
- else r.shift();
1932
-
1933
- y.d = r;
1934
- y.e = getBase10Exponent(r, e);
1935
-
1936
- return external ? finalise(y, Ctor.precision, Ctor.rounding) : y;
1937
- };
1938
-
1939
-
1940
- /*
1941
- * Return a string representing the value of this Decimal in base 2, round to `sd` significant
1942
- * digits using rounding mode `rm`.
1943
- *
1944
- * If the optional `sd` argument is present then return binary exponential notation.
1945
- *
1946
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
1947
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
1948
- *
1949
- */
1950
- P.toBinary = function (sd, rm) {
1951
- return toStringBinary(this, 2, sd, rm);
1952
- };
1953
-
1954
-
1955
- /*
1956
- * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `dp`
1957
- * decimal places using rounding mode `rm` or `rounding` if `rm` is omitted.
1958
- *
1959
- * If `dp` is omitted, return a new Decimal whose value is the value of this Decimal.
1960
- *
1961
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
1962
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
1963
- *
1964
- */
1965
- P.toDecimalPlaces = P.toDP = function (dp, rm) {
1966
- var x = this,
1967
- Ctor = x.constructor;
1968
-
1969
- x = new Ctor(x);
1970
- if (dp === void 0) return x;
1971
-
1972
- checkInt32(dp, 0, MAX_DIGITS);
1973
-
1974
- if (rm === void 0) rm = Ctor.rounding;
1975
- else checkInt32(rm, 0, 8);
1976
-
1977
- return finalise(x, dp + x.e + 1, rm);
1978
- };
1979
-
1980
-
1981
- /*
1982
- * Return a string representing the value of this Decimal in exponential notation rounded to
1983
- * `dp` fixed decimal places using rounding mode `rounding`.
1984
- *
1985
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
1986
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
1987
- *
1988
- */
1989
- P.toExponential = function (dp, rm) {
1990
- var str,
1991
- x = this,
1992
- Ctor = x.constructor;
1993
-
1994
- if (dp === void 0) {
1995
- str = finiteToString(x, true);
1996
- } else {
1997
- checkInt32(dp, 0, MAX_DIGITS);
1998
-
1999
- if (rm === void 0) rm = Ctor.rounding;
2000
- else checkInt32(rm, 0, 8);
2001
-
2002
- x = finalise(new Ctor(x), dp + 1, rm);
2003
- str = finiteToString(x, true, dp + 1);
2004
- }
2005
-
2006
- return x.isNeg() && !x.isZero() ? '-' + str : str;
2007
- };
2008
-
2009
-
2010
- /*
2011
- * Return a string representing the value of this Decimal in normal (fixed-point) notation to
2012
- * `dp` fixed decimal places and rounded using rounding mode `rm` or `rounding` if `rm` is
2013
- * omitted.
2014
- *
2015
- * As with JavaScript numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'.
2016
- *
2017
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
2018
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2019
- *
2020
- * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'.
2021
- * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'.
2022
- * (-0).toFixed(3) is '0.000'.
2023
- * (-0.5).toFixed(0) is '-0'.
2024
- *
2025
- */
2026
- P.toFixed = function (dp, rm) {
2027
- var str, y,
2028
- x = this,
2029
- Ctor = x.constructor;
2030
-
2031
- if (dp === void 0) {
2032
- str = finiteToString(x);
2033
- } else {
2034
- checkInt32(dp, 0, MAX_DIGITS);
2035
-
2036
- if (rm === void 0) rm = Ctor.rounding;
2037
- else checkInt32(rm, 0, 8);
2038
-
2039
- y = finalise(new Ctor(x), dp + x.e + 1, rm);
2040
- str = finiteToString(y, false, dp + y.e + 1);
2041
- }
2042
-
2043
- // To determine whether to add the minus sign look at the value before it was rounded,
2044
- // i.e. look at `x` rather than `y`.
2045
- return x.isNeg() && !x.isZero() ? '-' + str : str;
2046
- };
2047
-
2048
-
2049
- /*
2050
- * Return an array representing the value of this Decimal as a simple fraction with an integer
2051
- * numerator and an integer denominator.
2052
- *
2053
- * The denominator will be a positive non-zero value less than or equal to the specified maximum
2054
- * denominator. If a maximum denominator is not specified, the denominator will be the lowest
2055
- * value necessary to represent the number exactly.
2056
- *
2057
- * [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity.
2058
- *
2059
- */
2060
- P.toFraction = function (maxD) {
2061
- var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r,
2062
- x = this,
2063
- xd = x.d,
2064
- Ctor = x.constructor;
2065
-
2066
- if (!xd) return new Ctor(x);
2067
-
2068
- n1 = d0 = new Ctor(1);
2069
- d1 = n0 = new Ctor(0);
2070
-
2071
- d = new Ctor(d1);
2072
- e = d.e = getPrecision(xd) - x.e - 1;
2073
- k = e % LOG_BASE;
2074
- d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k);
2075
-
2076
- if (maxD == null) {
2077
-
2078
- // d is 10**e, the minimum max-denominator needed.
2079
- maxD = e > 0 ? d : n1;
2080
- } else {
2081
- n = new Ctor(maxD);
2082
- if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n);
2083
- maxD = n.gt(d) ? (e > 0 ? d : n1) : n;
2084
- }
2085
-
2086
- external = false;
2087
- n = new Ctor(digitsToString(xd));
2088
- pr = Ctor.precision;
2089
- Ctor.precision = e = xd.length * LOG_BASE * 2;
2090
-
2091
- for (;;) {
2092
- q = divide(n, d, 0, 1, 1);
2093
- d2 = d0.plus(q.times(d1));
2094
- if (d2.cmp(maxD) == 1) break;
2095
- d0 = d1;
2096
- d1 = d2;
2097
- d2 = n1;
2098
- n1 = n0.plus(q.times(d2));
2099
- n0 = d2;
2100
- d2 = d;
2101
- d = n.minus(q.times(d2));
2102
- n = d2;
2103
- }
2104
-
2105
- d2 = divide(maxD.minus(d0), d1, 0, 1, 1);
2106
- n0 = n0.plus(d2.times(n1));
2107
- d0 = d0.plus(d2.times(d1));
2108
- n0.s = n1.s = x.s;
2109
-
2110
- // Determine which fraction is closer to x, n0/d0 or n1/d1?
2111
- r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1
2112
- ? [n1, d1] : [n0, d0];
2113
-
2114
- Ctor.precision = pr;
2115
- external = true;
2116
-
2117
- return r;
2118
- };
2119
-
2120
-
2121
- /*
2122
- * Return a string representing the value of this Decimal in base 16, round to `sd` significant
2123
- * digits using rounding mode `rm`.
2124
- *
2125
- * If the optional `sd` argument is present then return binary exponential notation.
2126
- *
2127
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
2128
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2129
- *
2130
- */
2131
- P.toHexadecimal = P.toHex = function (sd, rm) {
2132
- return toStringBinary(this, 16, sd, rm);
2133
- };
2134
-
2135
-
2136
- /*
2137
- * Returns a new Decimal whose value is the nearest multiple of `y` in the direction of rounding
2138
- * mode `rm`, or `Decimal.rounding` if `rm` is omitted, to the value of this Decimal.
2139
- *
2140
- * The return value will always have the same sign as this Decimal, unless either this Decimal
2141
- * or `y` is NaN, in which case the return value will be also be NaN.
2142
- *
2143
- * The return value is not affected by the value of `precision`.
2144
- *
2145
- * y {number|string|Decimal} The magnitude to round to a multiple of.
2146
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2147
- *
2148
- * 'toNearest() rounding mode not an integer: {rm}'
2149
- * 'toNearest() rounding mode out of range: {rm}'
2150
- *
2151
- */
2152
- P.toNearest = function (y, rm) {
2153
- var x = this,
2154
- Ctor = x.constructor;
2155
-
2156
- x = new Ctor(x);
2157
-
2158
- if (y == null) {
2159
-
2160
- // If x is not finite, return x.
2161
- if (!x.d) return x;
2162
-
2163
- y = new Ctor(1);
2164
- rm = Ctor.rounding;
2165
- } else {
2166
- y = new Ctor(y);
2167
- if (rm === void 0) {
2168
- rm = Ctor.rounding;
2169
- } else {
2170
- checkInt32(rm, 0, 8);
2171
- }
2172
-
2173
- // If x is not finite, return x if y is not NaN, else NaN.
2174
- if (!x.d) return y.s ? x : y;
2175
-
2176
- // If y is not finite, return Infinity with the sign of x if y is Infinity, else NaN.
2177
- if (!y.d) {
2178
- if (y.s) y.s = x.s;
2179
- return y;
2180
- }
2181
- }
2182
-
2183
- // If y is not zero, calculate the nearest multiple of y to x.
2184
- if (y.d[0]) {
2185
- external = false;
2186
- x = divide(x, y, 0, rm, 1).times(y);
2187
- external = true;
2188
- finalise(x);
2189
-
2190
- // If y is zero, return zero with the sign of x.
2191
- } else {
2192
- y.s = x.s;
2193
- x = y;
2194
- }
2195
-
2196
- return x;
2197
- };
2198
-
2199
-
2200
- /*
2201
- * Return the value of this Decimal converted to a number primitive.
2202
- * Zero keeps its sign.
2203
- *
2204
- */
2205
- P.toNumber = function () {
2206
- return +this;
2207
- };
2208
-
2209
-
2210
- /*
2211
- * Return a string representing the value of this Decimal in base 8, round to `sd` significant
2212
- * digits using rounding mode `rm`.
2213
- *
2214
- * If the optional `sd` argument is present then return binary exponential notation.
2215
- *
2216
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
2217
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2218
- *
2219
- */
2220
- P.toOctal = function (sd, rm) {
2221
- return toStringBinary(this, 8, sd, rm);
2222
- };
2223
-
2224
-
2225
- /*
2226
- * Return a new Decimal whose value is the value of this Decimal raised to the power `y`, rounded
2227
- * to `precision` significant digits using rounding mode `rounding`.
2228
- *
2229
- * ECMAScript compliant.
2230
- *
2231
- * pow(x, NaN) = NaN
2232
- * pow(x, ±0) = 1
2233
-
2234
- * pow(NaN, non-zero) = NaN
2235
- * pow(abs(x) > 1, +Infinity) = +Infinity
2236
- * pow(abs(x) > 1, -Infinity) = +0
2237
- * pow(abs(x) == 1, ±Infinity) = NaN
2238
- * pow(abs(x) < 1, +Infinity) = +0
2239
- * pow(abs(x) < 1, -Infinity) = +Infinity
2240
- * pow(+Infinity, y > 0) = +Infinity
2241
- * pow(+Infinity, y < 0) = +0
2242
- * pow(-Infinity, odd integer > 0) = -Infinity
2243
- * pow(-Infinity, even integer > 0) = +Infinity
2244
- * pow(-Infinity, odd integer < 0) = -0
2245
- * pow(-Infinity, even integer < 0) = +0
2246
- * pow(+0, y > 0) = +0
2247
- * pow(+0, y < 0) = +Infinity
2248
- * pow(-0, odd integer > 0) = -0
2249
- * pow(-0, even integer > 0) = +0
2250
- * pow(-0, odd integer < 0) = -Infinity
2251
- * pow(-0, even integer < 0) = +Infinity
2252
- * pow(finite x < 0, finite non-integer) = NaN
2253
- *
2254
- * For non-integer or very large exponents pow(x, y) is calculated using
2255
- *
2256
- * x^y = exp(y*ln(x))
2257
- *
2258
- * Assuming the first 15 rounding digits are each equally likely to be any digit 0-9, the
2259
- * probability of an incorrectly rounded result
2260
- * P([49]9{14} | [50]0{14}) = 2 * 0.2 * 10^-14 = 4e-15 = 1/2.5e+14
2261
- * i.e. 1 in 250,000,000,000,000
2262
- *
2263
- * If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place).
2264
- *
2265
- * y {number|string|Decimal} The power to which to raise this Decimal.
2266
- *
2267
- */
2268
- P.toPower = P.pow = function (y) {
2269
- var e, k, pr, r, rm, s,
2270
- x = this,
2271
- Ctor = x.constructor,
2272
- yn = +(y = new Ctor(y));
2273
-
2274
- // Either ±Infinity, NaN or ±0?
2275
- if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn));
2276
-
2277
- x = new Ctor(x);
2278
-
2279
- if (x.eq(1)) return x;
2280
-
2281
- pr = Ctor.precision;
2282
- rm = Ctor.rounding;
2283
-
2284
- if (y.eq(1)) return finalise(x, pr, rm);
2285
-
2286
- // y exponent
2287
- e = mathfloor(y.e / LOG_BASE);
2288
-
2289
- // If y is a small integer use the 'exponentiation by squaring' algorithm.
2290
- if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
2291
- r = intPow(Ctor, x, k, pr);
2292
- return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm);
2293
- }
2294
-
2295
- s = x.s;
2296
-
2297
- // if x is negative
2298
- if (s < 0) {
2299
-
2300
- // if y is not an integer
2301
- if (e < y.d.length - 1) return new Ctor(NaN);
2302
-
2303
- // Result is positive if x is negative and the last digit of integer y is even.
2304
- if ((y.d[e] & 1) == 0) s = 1;
2305
-
2306
- // if x.eq(-1)
2307
- if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) {
2308
- x.s = s;
2309
- return x;
2310
- }
2311
- }
2312
-
2313
- // Estimate result exponent.
2314
- // x^y = 10^e, where e = y * log10(x)
2315
- // log10(x) = log10(x_significand) + x_exponent
2316
- // log10(x_significand) = ln(x_significand) / ln(10)
2317
- k = mathpow(+x, yn);
2318
- e = k == 0 || !isFinite(k)
2319
- ? mathfloor(yn * (Math.log('0.' + digitsToString(x.d)) / Math.LN10 + x.e + 1))
2320
- : new Ctor(k + '').e;
2321
-
2322
- // Exponent estimate may be incorrect e.g. x: 0.999999999999999999, y: 2.29, e: 0, r.e: -1.
2323
-
2324
- // Overflow/underflow?
2325
- if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0);
2326
-
2327
- external = false;
2328
- Ctor.rounding = x.s = 1;
2329
-
2330
- // Estimate the extra guard digits needed to ensure five correct rounding digits from
2331
- // naturalLogarithm(x). Example of failure without these extra digits (precision: 10):
2332
- // new Decimal(2.32456).pow('2087987436534566.46411')
2333
- // should be 1.162377823e+764914905173815, but is 1.162355823e+764914905173815
2334
- k = Math.min(12, (e + '').length);
2335
-
2336
- // r = x^y = exp(y*ln(x))
2337
- r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr);
2338
-
2339
- // r may be Infinity, e.g. (0.9999999999999999).pow(-1e+40)
2340
- if (r.d) {
2341
-
2342
- // Truncate to the required precision plus five rounding digits.
2343
- r = finalise(r, pr + 5, 1);
2344
-
2345
- // If the rounding digits are [49]9999 or [50]0000 increase the precision by 10 and recalculate
2346
- // the result.
2347
- if (checkRoundingDigits(r.d, pr, rm)) {
2348
- e = pr + 10;
2349
-
2350
- // Truncate to the increased precision plus five rounding digits.
2351
- r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1);
2352
-
2353
- // Check for 14 nines from the 2nd rounding digit (the first rounding digit may be 4 or 9).
2354
- if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 1e14) {
2355
- r = finalise(r, pr + 1, 0);
2356
- }
2357
- }
2358
- }
2359
-
2360
- r.s = s;
2361
- external = true;
2362
- Ctor.rounding = rm;
2363
-
2364
- return finalise(r, pr, rm);
2365
- };
2366
-
2367
-
2368
- /*
2369
- * Return a string representing the value of this Decimal rounded to `sd` significant digits
2370
- * using rounding mode `rounding`.
2371
- *
2372
- * Return exponential notation if `sd` is less than the number of digits necessary to represent
2373
- * the integer part of the value in normal notation.
2374
- *
2375
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
2376
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2377
- *
2378
- */
2379
- P.toPrecision = function (sd, rm) {
2380
- var str,
2381
- x = this,
2382
- Ctor = x.constructor;
2383
-
2384
- if (sd === void 0) {
2385
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
2386
- } else {
2387
- checkInt32(sd, 1, MAX_DIGITS);
2388
-
2389
- if (rm === void 0) rm = Ctor.rounding;
2390
- else checkInt32(rm, 0, 8);
2391
-
2392
- x = finalise(new Ctor(x), sd, rm);
2393
- str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd);
2394
- }
2395
-
2396
- return x.isNeg() && !x.isZero() ? '-' + str : str;
2397
- };
2398
-
2399
-
2400
- /*
2401
- * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `sd`
2402
- * significant digits using rounding mode `rm`, or to `precision` and `rounding` respectively if
2403
- * omitted.
2404
- *
2405
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
2406
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
2407
- *
2408
- * 'toSD() digits out of range: {sd}'
2409
- * 'toSD() digits not an integer: {sd}'
2410
- * 'toSD() rounding mode not an integer: {rm}'
2411
- * 'toSD() rounding mode out of range: {rm}'
2412
- *
2413
- */
2414
- P.toSignificantDigits = P.toSD = function (sd, rm) {
2415
- var x = this,
2416
- Ctor = x.constructor;
2417
-
2418
- if (sd === void 0) {
2419
- sd = Ctor.precision;
2420
- rm = Ctor.rounding;
2421
- } else {
2422
- checkInt32(sd, 1, MAX_DIGITS);
2423
-
2424
- if (rm === void 0) rm = Ctor.rounding;
2425
- else checkInt32(rm, 0, 8);
2426
- }
2427
-
2428
- return finalise(new Ctor(x), sd, rm);
2429
- };
2430
-
2431
-
2432
- /*
2433
- * Return a string representing the value of this Decimal.
2434
- *
2435
- * Return exponential notation if this Decimal has a positive exponent equal to or greater than
2436
- * `toExpPos`, or a negative exponent equal to or less than `toExpNeg`.
2437
- *
2438
- */
2439
- P.toString = function () {
2440
- var x = this,
2441
- Ctor = x.constructor,
2442
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
2443
-
2444
- return x.isNeg() && !x.isZero() ? '-' + str : str;
2445
- };
2446
-
2447
-
2448
- /*
2449
- * Return a new Decimal whose value is the value of this Decimal truncated to a whole number.
2450
- *
2451
- */
2452
- P.truncated = P.trunc = function () {
2453
- return finalise(new this.constructor(this), this.e + 1, 1);
2454
- };
2455
-
2456
-
2457
- /*
2458
- * Return a string representing the value of this Decimal.
2459
- * Unlike `toString`, negative zero will include the minus sign.
2460
- *
2461
- */
2462
- P.valueOf = P.toJSON = function () {
2463
- var x = this,
2464
- Ctor = x.constructor,
2465
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
2466
-
2467
- return x.isNeg() ? '-' + str : str;
2468
- };
2469
-
2470
-
2471
- // Helper functions for Decimal.prototype (P) and/or Decimal methods, and their callers.
2472
-
2473
-
2474
- /*
2475
- * digitsToString P.cubeRoot, P.logarithm, P.squareRoot, P.toFraction, P.toPower,
2476
- * finiteToString, naturalExponential, naturalLogarithm
2477
- * checkInt32 P.toDecimalPlaces, P.toExponential, P.toFixed, P.toNearest,
2478
- * P.toPrecision, P.toSignificantDigits, toStringBinary, random
2479
- * checkRoundingDigits P.logarithm, P.toPower, naturalExponential, naturalLogarithm
2480
- * convertBase toStringBinary, parseOther
2481
- * cos P.cos
2482
- * divide P.atanh, P.cubeRoot, P.dividedBy, P.dividedToIntegerBy,
2483
- * P.logarithm, P.modulo, P.squareRoot, P.tan, P.tanh, P.toFraction,
2484
- * P.toNearest, toStringBinary, naturalExponential, naturalLogarithm,
2485
- * taylorSeries, atan2, parseOther
2486
- * finalise P.absoluteValue, P.atan, P.atanh, P.ceil, P.cos, P.cosh,
2487
- * P.cubeRoot, P.dividedToIntegerBy, P.floor, P.logarithm, P.minus,
2488
- * P.modulo, P.negated, P.plus, P.round, P.sin, P.sinh, P.squareRoot,
2489
- * P.tan, P.times, P.toDecimalPlaces, P.toExponential, P.toFixed,
2490
- * P.toNearest, P.toPower, P.toPrecision, P.toSignificantDigits,
2491
- * P.truncated, divide, getLn10, getPi, naturalExponential,
2492
- * naturalLogarithm, ceil, floor, round, trunc
2493
- * finiteToString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf,
2494
- * toStringBinary
2495
- * getBase10Exponent P.minus, P.plus, P.times, parseOther
2496
- * getLn10 P.logarithm, naturalLogarithm
2497
- * getPi P.acos, P.asin, P.atan, toLessThanHalfPi, atan2
2498
- * getPrecision P.precision, P.toFraction
2499
- * getZeroString digitsToString, finiteToString
2500
- * intPow P.toPower, parseOther
2501
- * isOdd toLessThanHalfPi
2502
- * maxOrMin max, min
2503
- * naturalExponential P.naturalExponential, P.toPower
2504
- * naturalLogarithm P.acosh, P.asinh, P.atanh, P.logarithm, P.naturalLogarithm,
2505
- * P.toPower, naturalExponential
2506
- * nonFiniteToString finiteToString, toStringBinary
2507
- * parseDecimal Decimal
2508
- * parseOther Decimal
2509
- * sin P.sin
2510
- * taylorSeries P.cosh, P.sinh, cos, sin
2511
- * toLessThanHalfPi P.cos, P.sin
2512
- * toStringBinary P.toBinary, P.toHexadecimal, P.toOctal
2513
- * truncate intPow
2514
- *
2515
- * Throws: P.logarithm, P.precision, P.toFraction, checkInt32, getLn10, getPi,
2516
- * naturalLogarithm, config, parseOther, random, Decimal
2517
- */
2518
-
2519
-
2520
- function digitsToString(d) {
2521
- var i, k, ws,
2522
- indexOfLastWord = d.length - 1,
2523
- str = '',
2524
- w = d[0];
2525
-
2526
- if (indexOfLastWord > 0) {
2527
- str += w;
2528
- for (i = 1; i < indexOfLastWord; i++) {
2529
- ws = d[i] + '';
2530
- k = LOG_BASE - ws.length;
2531
- if (k) str += getZeroString(k);
2532
- str += ws;
2533
- }
2534
-
2535
- w = d[i];
2536
- ws = w + '';
2537
- k = LOG_BASE - ws.length;
2538
- if (k) str += getZeroString(k);
2539
- } else if (w === 0) {
2540
- return '0';
2541
- }
2542
-
2543
- // Remove trailing zeros of last w.
2544
- for (; w % 10 === 0;) w /= 10;
2545
-
2546
- return str + w;
2547
- }
2548
-
2549
-
2550
- function checkInt32(i, min, max) {
2551
- if (i !== ~~i || i < min || i > max) {
2552
- throw Error(invalidArgument + i);
2553
- }
2554
- }
2555
-
2556
-
2557
- /*
2558
- * Check 5 rounding digits if `repeating` is null, 4 otherwise.
2559
- * `repeating == null` if caller is `log` or `pow`,
2560
- * `repeating != null` if caller is `naturalLogarithm` or `naturalExponential`.
2561
- */
2562
- function checkRoundingDigits(d, i, rm, repeating) {
2563
- var di, k, r, rd;
2564
-
2565
- // Get the length of the first word of the array d.
2566
- for (k = d[0]; k >= 10; k /= 10) --i;
2567
-
2568
- // Is the rounding digit in the first word of d?
2569
- if (--i < 0) {
2570
- i += LOG_BASE;
2571
- di = 0;
2572
- } else {
2573
- di = Math.ceil((i + 1) / LOG_BASE);
2574
- i %= LOG_BASE;
2575
- }
2576
-
2577
- // i is the index (0 - 6) of the rounding digit.
2578
- // E.g. if within the word 3487563 the first rounding digit is 5,
2579
- // then i = 4, k = 1000, rd = 3487563 % 1000 = 563
2580
- k = mathpow(10, LOG_BASE - i);
2581
- rd = d[di] % k | 0;
2582
-
2583
- if (repeating == null) {
2584
- if (i < 3) {
2585
- if (i == 0) rd = rd / 100 | 0;
2586
- else if (i == 1) rd = rd / 10 | 0;
2587
- r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 50000 || rd == 0;
2588
- } else {
2589
- r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) &&
2590
- (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 ||
2591
- (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;
2592
- }
2593
- } else {
2594
- if (i < 4) {
2595
- if (i == 0) rd = rd / 1000 | 0;
2596
- else if (i == 1) rd = rd / 100 | 0;
2597
- else if (i == 2) rd = rd / 10 | 0;
2598
- r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999;
2599
- } else {
2600
- r = ((repeating || rm < 4) && rd + 1 == k ||
2601
- (!repeating && rm > 3) && rd + 1 == k / 2) &&
2602
- (d[di + 1] / k / 1000 | 0) == mathpow(10, i - 3) - 1;
2603
- }
2604
- }
2605
-
2606
- return r;
2607
- }
2608
-
2609
-
2610
- // Convert string of `baseIn` to an array of numbers of `baseOut`.
2611
- // Eg. convertBase('255', 10, 16) returns [15, 15].
2612
- // Eg. convertBase('ff', 16, 10) returns [2, 5, 5].
2613
- function convertBase(str, baseIn, baseOut) {
2614
- var j,
2615
- arr = [0],
2616
- arrL,
2617
- i = 0,
2618
- strL = str.length;
2619
-
2620
- for (; i < strL;) {
2621
- for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn;
2622
- arr[0] += NUMERALS.indexOf(str.charAt(i++));
2623
- for (j = 0; j < arr.length; j++) {
2624
- if (arr[j] > baseOut - 1) {
2625
- if (arr[j + 1] === void 0) arr[j + 1] = 0;
2626
- arr[j + 1] += arr[j] / baseOut | 0;
2627
- arr[j] %= baseOut;
2628
- }
2629
- }
2630
- }
2631
-
2632
- return arr.reverse();
2633
- }
2634
-
2635
-
2636
- /*
2637
- * cos(x) = 1 - x^2/2! + x^4/4! - ...
2638
- * |x| < pi/2
2639
- *
2640
- */
2641
- function cosine(Ctor, x) {
2642
- var k, len, y;
2643
-
2644
- if (x.isZero()) return x;
2645
-
2646
- // Argument reduction: cos(4x) = 8*(cos^4(x) - cos^2(x)) + 1
2647
- // i.e. cos(x) = 8*(cos^4(x/4) - cos^2(x/4)) + 1
2648
-
2649
- // Estimate the optimum number of times to use the argument reduction.
2650
- len = x.d.length;
2651
- if (len < 32) {
2652
- k = Math.ceil(len / 3);
2653
- y = (1 / tinyPow(4, k)).toString();
2654
- } else {
2655
- k = 16;
2656
- y = '2.3283064365386962890625e-10';
2657
- }
2658
-
2659
- Ctor.precision += k;
2660
-
2661
- x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1));
2662
-
2663
- // Reverse argument reduction
2664
- for (var i = k; i--;) {
2665
- var cos2x = x.times(x);
2666
- x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1);
2667
- }
2668
-
2669
- Ctor.precision -= k;
2670
-
2671
- return x;
2672
- }
2673
-
2674
-
2675
- /*
2676
- * Perform division in the specified base.
2677
- */
2678
- var divide = (function () {
2679
-
2680
- // Assumes non-zero x and k, and hence non-zero result.
2681
- function multiplyInteger(x, k, base) {
2682
- var temp,
2683
- carry = 0,
2684
- i = x.length;
2685
-
2686
- for (x = x.slice(); i--;) {
2687
- temp = x[i] * k + carry;
2688
- x[i] = temp % base | 0;
2689
- carry = temp / base | 0;
2690
- }
2691
-
2692
- if (carry) x.unshift(carry);
2693
-
2694
- return x;
2695
- }
2696
-
2697
- function compare(a, b, aL, bL) {
2698
- var i, r;
2699
-
2700
- if (aL != bL) {
2701
- r = aL > bL ? 1 : -1;
2702
- } else {
2703
- for (i = r = 0; i < aL; i++) {
2704
- if (a[i] != b[i]) {
2705
- r = a[i] > b[i] ? 1 : -1;
2706
- break;
2707
- }
2708
- }
2709
- }
2710
-
2711
- return r;
2712
- }
2713
-
2714
- function subtract(a, b, aL, base) {
2715
- var i = 0;
2716
-
2717
- // Subtract b from a.
2718
- for (; aL--;) {
2719
- a[aL] -= i;
2720
- i = a[aL] < b[aL] ? 1 : 0;
2721
- a[aL] = i * base + a[aL] - b[aL];
2722
- }
2723
-
2724
- // Remove leading zeros.
2725
- for (; !a[0] && a.length > 1;) a.shift();
2726
- }
2727
-
2728
- return function (x, y, pr, rm, dp, base) {
2729
- var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0,
2730
- yL, yz,
2731
- Ctor = x.constructor,
2732
- sign = x.s == y.s ? 1 : -1,
2733
- xd = x.d,
2734
- yd = y.d;
2735
-
2736
- // Either NaN, Infinity or 0?
2737
- if (!xd || !xd[0] || !yd || !yd[0]) {
2738
-
2739
- return new Ctor(// Return NaN if either NaN, or both Infinity or 0.
2740
- !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN :
2741
-
2742
- // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
2743
- xd && xd[0] == 0 || !yd ? sign * 0 : sign / 0);
2744
- }
2745
-
2746
- if (base) {
2747
- logBase = 1;
2748
- e = x.e - y.e;
2749
- } else {
2750
- base = BASE;
2751
- logBase = LOG_BASE;
2752
- e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
2753
- }
2754
-
2755
- yL = yd.length;
2756
- xL = xd.length;
2757
- q = new Ctor(sign);
2758
- qd = q.d = [];
2759
-
2760
- // Result exponent may be one less than e.
2761
- // The digit array of a Decimal from toStringBinary may have trailing zeros.
2762
- for (i = 0; yd[i] == (xd[i] || 0); i++);
2763
-
2764
- if (yd[i] > (xd[i] || 0)) e--;
2765
-
2766
- if (pr == null) {
2767
- sd = pr = Ctor.precision;
2768
- rm = Ctor.rounding;
2769
- } else if (dp) {
2770
- sd = pr + (x.e - y.e) + 1;
2771
- } else {
2772
- sd = pr;
2773
- }
2774
-
2775
- if (sd < 0) {
2776
- qd.push(1);
2777
- more = true;
2778
- } else {
2779
-
2780
- // Convert precision in number of base 10 digits to base 1e7 digits.
2781
- sd = sd / logBase + 2 | 0;
2782
- i = 0;
2783
-
2784
- // divisor < 1e7
2785
- if (yL == 1) {
2786
- k = 0;
2787
- yd = yd[0];
2788
- sd++;
2789
-
2790
- // k is the carry.
2791
- for (; (i < xL || k) && sd--; i++) {
2792
- t = k * base + (xd[i] || 0);
2793
- qd[i] = t / yd | 0;
2794
- k = t % yd | 0;
2795
- }
2796
-
2797
- more = k || i < xL;
2798
-
2799
- // divisor >= 1e7
2800
- } else {
2801
-
2802
- // Normalise xd and yd so highest order digit of yd is >= base/2
2803
- k = base / (yd[0] + 1) | 0;
2804
-
2805
- if (k > 1) {
2806
- yd = multiplyInteger(yd, k, base);
2807
- xd = multiplyInteger(xd, k, base);
2808
- yL = yd.length;
2809
- xL = xd.length;
2810
- }
2811
-
2812
- xi = yL;
2813
- rem = xd.slice(0, yL);
2814
- remL = rem.length;
2815
-
2816
- // Add zeros to make remainder as long as divisor.
2817
- for (; remL < yL;) rem[remL++] = 0;
2818
-
2819
- yz = yd.slice();
2820
- yz.unshift(0);
2821
- yd0 = yd[0];
2822
-
2823
- if (yd[1] >= base / 2) ++yd0;
2824
-
2825
- do {
2826
- k = 0;
2827
-
2828
- // Compare divisor and remainder.
2829
- cmp = compare(yd, rem, yL, remL);
2830
-
2831
- // If divisor < remainder.
2832
- if (cmp < 0) {
2833
-
2834
- // Calculate trial digit, k.
2835
- rem0 = rem[0];
2836
- if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
2837
-
2838
- // k will be how many times the divisor goes into the current remainder.
2839
- k = rem0 / yd0 | 0;
2840
-
2841
- // Algorithm:
2842
- // 1. product = divisor * trial digit (k)
2843
- // 2. if product > remainder: product -= divisor, k--
2844
- // 3. remainder -= product
2845
- // 4. if product was < remainder at 2:
2846
- // 5. compare new remainder and divisor
2847
- // 6. If remainder > divisor: remainder -= divisor, k++
2848
-
2849
- if (k > 1) {
2850
- if (k >= base) k = base - 1;
2851
-
2852
- // product = divisor * trial digit.
2853
- prod = multiplyInteger(yd, k, base);
2854
- prodL = prod.length;
2855
- remL = rem.length;
2856
-
2857
- // Compare product and remainder.
2858
- cmp = compare(prod, rem, prodL, remL);
2859
-
2860
- // product > remainder.
2861
- if (cmp == 1) {
2862
- k--;
2863
-
2864
- // Subtract divisor from product.
2865
- subtract(prod, yL < prodL ? yz : yd, prodL, base);
2866
- }
2867
- } else {
2868
-
2869
- // cmp is -1.
2870
- // If k is 0, there is no need to compare yd and rem again below, so change cmp to 1
2871
- // to avoid it. If k is 1 there is a need to compare yd and rem again below.
2872
- if (k == 0) cmp = k = 1;
2873
- prod = yd.slice();
2874
- }
2875
-
2876
- prodL = prod.length;
2877
- if (prodL < remL) prod.unshift(0);
2878
-
2879
- // Subtract product from remainder.
2880
- subtract(rem, prod, remL, base);
2881
-
2882
- // If product was < previous remainder.
2883
- if (cmp == -1) {
2884
- remL = rem.length;
2885
-
2886
- // Compare divisor and new remainder.
2887
- cmp = compare(yd, rem, yL, remL);
2888
-
2889
- // If divisor < new remainder, subtract divisor from remainder.
2890
- if (cmp < 1) {
2891
- k++;
2892
-
2893
- // Subtract divisor from remainder.
2894
- subtract(rem, yL < remL ? yz : yd, remL, base);
2895
- }
2896
- }
2897
-
2898
- remL = rem.length;
2899
- } else if (cmp === 0) {
2900
- k++;
2901
- rem = [0];
2902
- } // if cmp === 1, k will be 0
2903
-
2904
- // Add the next digit, k, to the result array.
2905
- qd[i++] = k;
2906
-
2907
- // Update the remainder.
2908
- if (cmp && rem[0]) {
2909
- rem[remL++] = xd[xi] || 0;
2910
- } else {
2911
- rem = [xd[xi]];
2912
- remL = 1;
2913
- }
2914
-
2915
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
2916
-
2917
- more = rem[0] !== void 0;
2918
- }
2919
-
2920
- // Leading zero?
2921
- if (!qd[0]) qd.shift();
2922
- }
2923
-
2924
- // logBase is 1 when divide is being used for base conversion.
2925
- if (logBase == 1) {
2926
- q.e = e;
2927
- inexact = more;
2928
- } else {
2929
-
2930
- // To calculate q.e, first get the number of digits of qd[0].
2931
- for (i = 1, k = qd[0]; k >= 10; k /= 10) i++;
2932
- q.e = i + e * logBase - 1;
2933
-
2934
- finalise(q, dp ? pr + q.e + 1 : pr, rm, more);
2935
- }
2936
-
2937
- return q;
2938
- };
2939
- })();
2940
-
2941
-
2942
- /*
2943
- * Round `x` to `sd` significant digits using rounding mode `rm`.
2944
- * Check for over/under-flow.
2945
- */
2946
- function finalise(x, sd, rm, isTruncated) {
2947
- var digits, i, j, k, rd, roundUp, w, xd, xdi,
2948
- Ctor = x.constructor;
2949
-
2950
- // Don't round if sd is null or undefined.
2951
- out: if (sd != null) {
2952
- xd = x.d;
2953
-
2954
- // Infinity/NaN.
2955
- if (!xd) return x;
2956
-
2957
- // rd: the rounding digit, i.e. the digit after the digit that may be rounded up.
2958
- // w: the word of xd containing rd, a base 1e7 number.
2959
- // xdi: the index of w within xd.
2960
- // digits: the number of digits of w.
2961
- // i: what would be the index of rd within w if all the numbers were 7 digits long (i.e. if
2962
- // they had leading zeros)
2963
- // j: if > 0, the actual index of rd within w (if < 0, rd is a leading zero).
2964
-
2965
- // Get the length of the first word of the digits array xd.
2966
- for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++;
2967
- i = sd - digits;
2968
-
2969
- // Is the rounding digit in the first word of xd?
2970
- if (i < 0) {
2971
- i += LOG_BASE;
2972
- j = sd;
2973
- w = xd[xdi = 0];
2974
-
2975
- // Get the rounding digit at index j of w.
2976
- rd = w / mathpow(10, digits - j - 1) % 10 | 0;
2977
- } else {
2978
- xdi = Math.ceil((i + 1) / LOG_BASE);
2979
- k = xd.length;
2980
- if (xdi >= k) {
2981
- if (isTruncated) {
2982
-
2983
- // Needed by `naturalExponential`, `naturalLogarithm` and `squareRoot`.
2984
- for (; k++ <= xdi;) xd.push(0);
2985
- w = rd = 0;
2986
- digits = 1;
2987
- i %= LOG_BASE;
2988
- j = i - LOG_BASE + 1;
2989
- } else {
2990
- break out;
2991
- }
2992
- } else {
2993
- w = k = xd[xdi];
2994
-
2995
- // Get the number of digits of w.
2996
- for (digits = 1; k >= 10; k /= 10) digits++;
2997
-
2998
- // Get the index of rd within w.
2999
- i %= LOG_BASE;
3000
-
3001
- // Get the index of rd within w, adjusted for leading zeros.
3002
- // The number of leading zeros of w is given by LOG_BASE - digits.
3003
- j = i - LOG_BASE + digits;
3004
-
3005
- // Get the rounding digit at index j of w.
3006
- rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;
3007
- }
3008
- }
3009
-
3010
- // Are there any non-zero digits after the rounding digit?
3011
- isTruncated = isTruncated || sd < 0 ||
3012
- xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1));
3013
-
3014
- // The expression `w % mathpow(10, digits - j - 1)` returns all the digits of w to the right
3015
- // of the digit at (left-to-right) index j, e.g. if w is 908714 and j is 2, the expression
3016
- // will give 714.
3017
-
3018
- roundUp = rm < 4
3019
- ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))
3020
- : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 &&
3021
-
3022
- // Check whether the digit to the left of the rounding digit is odd.
3023
- ((i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10) & 1 ||
3024
- rm == (x.s < 0 ? 8 : 7));
3025
-
3026
- if (sd < 1 || !xd[0]) {
3027
- xd.length = 0;
3028
- if (roundUp) {
3029
-
3030
- // Convert sd to decimal places.
3031
- sd -= x.e + 1;
3032
-
3033
- // 1, 0.1, 0.01, 0.001, 0.0001 etc.
3034
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
3035
- x.e = -sd || 0;
3036
- } else {
3037
-
3038
- // Zero.
3039
- xd[0] = x.e = 0;
3040
- }
3041
-
3042
- return x;
3043
- }
3044
-
3045
- // Remove excess digits.
3046
- if (i == 0) {
3047
- xd.length = xdi;
3048
- k = 1;
3049
- xdi--;
3050
- } else {
3051
- xd.length = xdi + 1;
3052
- k = mathpow(10, LOG_BASE - i);
3053
-
3054
- // E.g. 56700 becomes 56000 if 7 is the rounding digit.
3055
- // j > 0 means i > number of leading zeros of w.
3056
- xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0;
3057
- }
3058
-
3059
- if (roundUp) {
3060
- for (;;) {
3061
-
3062
- // Is the digit to be rounded up in the first word of xd?
3063
- if (xdi == 0) {
3064
-
3065
- // i will be the length of xd[0] before k is added.
3066
- for (i = 1, j = xd[0]; j >= 10; j /= 10) i++;
3067
- j = xd[0] += k;
3068
- for (k = 1; j >= 10; j /= 10) k++;
3069
-
3070
- // if i != k the length has increased.
3071
- if (i != k) {
3072
- x.e++;
3073
- if (xd[0] == BASE) xd[0] = 1;
3074
- }
3075
-
3076
- break;
3077
- } else {
3078
- xd[xdi] += k;
3079
- if (xd[xdi] != BASE) break;
3080
- xd[xdi--] = 0;
3081
- k = 1;
3082
- }
3083
- }
3084
- }
3085
-
3086
- // Remove trailing zeros.
3087
- for (i = xd.length; xd[--i] === 0;) xd.pop();
3088
- }
3089
-
3090
- if (external) {
3091
-
3092
- // Overflow?
3093
- if (x.e > Ctor.maxE) {
3094
-
3095
- // Infinity.
3096
- x.d = null;
3097
- x.e = NaN;
3098
-
3099
- // Underflow?
3100
- } else if (x.e < Ctor.minE) {
3101
-
3102
- // Zero.
3103
- x.e = 0;
3104
- x.d = [0];
3105
- // Ctor.underflow = true;
3106
- } // else Ctor.underflow = false;
3107
- }
3108
-
3109
- return x;
3110
- }
3111
-
3112
-
3113
- function finiteToString(x, isExp, sd) {
3114
- if (!x.isFinite()) return nonFiniteToString(x);
3115
- var k,
3116
- e = x.e,
3117
- str = digitsToString(x.d),
3118
- len = str.length;
3119
-
3120
- if (isExp) {
3121
- if (sd && (k = sd - len) > 0) {
3122
- str = str.charAt(0) + '.' + str.slice(1) + getZeroString(k);
3123
- } else if (len > 1) {
3124
- str = str.charAt(0) + '.' + str.slice(1);
3125
- }
3126
-
3127
- str = str + (x.e < 0 ? 'e' : 'e+') + x.e;
3128
- } else if (e < 0) {
3129
- str = '0.' + getZeroString(-e - 1) + str;
3130
- if (sd && (k = sd - len) > 0) str += getZeroString(k);
3131
- } else if (e >= len) {
3132
- str += getZeroString(e + 1 - len);
3133
- if (sd && (k = sd - e - 1) > 0) str = str + '.' + getZeroString(k);
3134
- } else {
3135
- if ((k = e + 1) < len) str = str.slice(0, k) + '.' + str.slice(k);
3136
- if (sd && (k = sd - len) > 0) {
3137
- if (e + 1 === len) str += '.';
3138
- str += getZeroString(k);
3139
- }
3140
- }
3141
-
3142
- return str;
3143
- }
3144
-
3145
-
3146
- // Calculate the base 10 exponent from the base 1e7 exponent.
3147
- function getBase10Exponent(digits, e) {
3148
- var w = digits[0];
3149
-
3150
- // Add the number of digits of the first word of the digits array.
3151
- for ( e *= LOG_BASE; w >= 10; w /= 10) e++;
3152
- return e;
3153
- }
3154
-
3155
-
3156
- function getLn10(Ctor, sd, pr) {
3157
- if (sd > LN10_PRECISION) {
3158
-
3159
- // Reset global state in case the exception is caught.
3160
- external = true;
3161
- if (pr) Ctor.precision = pr;
3162
- throw Error(precisionLimitExceeded);
3163
- }
3164
- return finalise(new Ctor(LN10), sd, 1, true);
3165
- }
3166
-
3167
-
3168
- function getPi(Ctor, sd, rm) {
3169
- if (sd > PI_PRECISION) throw Error(precisionLimitExceeded);
3170
- return finalise(new Ctor(PI), sd, rm, true);
3171
- }
3172
-
3173
-
3174
- function getPrecision(digits) {
3175
- var w = digits.length - 1,
3176
- len = w * LOG_BASE + 1;
3177
-
3178
- w = digits[w];
3179
-
3180
- // If non-zero...
3181
- if (w) {
3182
-
3183
- // Subtract the number of trailing zeros of the last word.
3184
- for (; w % 10 == 0; w /= 10) len--;
3185
-
3186
- // Add the number of digits of the first word.
3187
- for (w = digits[0]; w >= 10; w /= 10) len++;
3188
- }
3189
-
3190
- return len;
3191
- }
3192
-
3193
-
3194
- function getZeroString(k) {
3195
- var zs = '';
3196
- for (; k--;) zs += '0';
3197
- return zs;
3198
- }
3199
-
3200
-
3201
- /*
3202
- * Return a new Decimal whose value is the value of Decimal `x` to the power `n`, where `n` is an
3203
- * integer of type number.
3204
- *
3205
- * Implements 'exponentiation by squaring'. Called by `pow` and `parseOther`.
3206
- *
3207
- */
3208
- function intPow(Ctor, x, n, pr) {
3209
- var isTruncated,
3210
- r = new Ctor(1),
3211
-
3212
- // Max n of 9007199254740991 takes 53 loop iterations.
3213
- // Maximum digits array length; leaves [28, 34] guard digits.
3214
- k = Math.ceil(pr / LOG_BASE + 4);
3215
-
3216
- external = false;
3217
-
3218
- for (;;) {
3219
- if (n % 2) {
3220
- r = r.times(x);
3221
- if (truncate(r.d, k)) isTruncated = true;
3222
- }
3223
-
3224
- n = mathfloor(n / 2);
3225
- if (n === 0) {
3226
-
3227
- // To ensure correct rounding when r.d is truncated, increment the last word if it is zero.
3228
- n = r.d.length - 1;
3229
- if (isTruncated && r.d[n] === 0) ++r.d[n];
3230
- break;
3231
- }
3232
-
3233
- x = x.times(x);
3234
- truncate(x.d, k);
3235
- }
3236
-
3237
- external = true;
3238
-
3239
- return r;
3240
- }
3241
-
3242
-
3243
- function isOdd(n) {
3244
- return n.d[n.d.length - 1] & 1;
3245
- }
3246
-
3247
-
3248
- /*
3249
- * Handle `max` and `min`. `ltgt` is 'lt' or 'gt'.
3250
- */
3251
- function maxOrMin(Ctor, args, ltgt) {
3252
- var y,
3253
- x = new Ctor(args[0]),
3254
- i = 0;
3255
-
3256
- for (; ++i < args.length;) {
3257
- y = new Ctor(args[i]);
3258
- if (!y.s) {
3259
- x = y;
3260
- break;
3261
- } else if (x[ltgt](y)) {
3262
- x = y;
3263
- }
3264
- }
3265
-
3266
- return x;
3267
- }
3268
-
3269
-
3270
- /*
3271
- * Return a new Decimal whose value is the natural exponential of `x` rounded to `sd` significant
3272
- * digits.
3273
- *
3274
- * Taylor/Maclaurin series.
3275
- *
3276
- * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ...
3277
- *
3278
- * Argument reduction:
3279
- * Repeat x = x / 32, k += 5, until |x| < 0.1
3280
- * exp(x) = exp(x / 2^k)^(2^k)
3281
- *
3282
- * Previously, the argument was initially reduced by
3283
- * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10)
3284
- * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was
3285
- * found to be slower than just dividing repeatedly by 32 as above.
3286
- *
3287
- * Max integer argument: exp('20723265836946413') = 6.3e+9000000000000000
3288
- * Min integer argument: exp('-20723265836946411') = 1.2e-9000000000000000
3289
- * (Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324)
3290
- *
3291
- * exp(Infinity) = Infinity
3292
- * exp(-Infinity) = 0
3293
- * exp(NaN) = NaN
3294
- * exp(±0) = 1
3295
- *
3296
- * exp(x) is non-terminating for any finite, non-zero x.
3297
- *
3298
- * The result will always be correctly rounded.
3299
- *
3300
- */
3301
- function naturalExponential(x, sd) {
3302
- var denominator, guard, j, pow, sum, t, wpr,
3303
- rep = 0,
3304
- i = 0,
3305
- k = 0,
3306
- Ctor = x.constructor,
3307
- rm = Ctor.rounding,
3308
- pr = Ctor.precision;
3309
-
3310
- // 0/NaN/Infinity?
3311
- if (!x.d || !x.d[0] || x.e > 17) {
3312
-
3313
- return new Ctor(x.d
3314
- ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0
3315
- : x.s ? x.s < 0 ? 0 : x : 0 / 0);
3316
- }
3317
-
3318
- if (sd == null) {
3319
- external = false;
3320
- wpr = pr;
3321
- } else {
3322
- wpr = sd;
3323
- }
3324
-
3325
- t = new Ctor(0.03125);
3326
-
3327
- // while abs(x) >= 0.1
3328
- while (x.e > -2) {
3329
-
3330
- // x = x / 2^5
3331
- x = x.times(t);
3332
- k += 5;
3333
- }
3334
-
3335
- // Use 2 * log10(2^k) + 5 (empirically derived) to estimate the increase in precision
3336
- // necessary to ensure the first 4 rounding digits are correct.
3337
- guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
3338
- wpr += guard;
3339
- denominator = pow = sum = new Ctor(1);
3340
- Ctor.precision = wpr;
3341
-
3342
- for (;;) {
3343
- pow = finalise(pow.times(x), wpr, 1);
3344
- denominator = denominator.times(++i);
3345
- t = sum.plus(divide(pow, denominator, wpr, 1));
3346
-
3347
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
3348
- j = k;
3349
- while (j--) sum = finalise(sum.times(sum), wpr, 1);
3350
-
3351
- // Check to see if the first 4 rounding digits are [49]999.
3352
- // If so, repeat the summation with a higher precision, otherwise
3353
- // e.g. with precision: 18, rounding: 1
3354
- // exp(18.404272462595034083567793919843761) = 98372560.1229999999 (should be 98372560.123)
3355
- // `wpr - guard` is the index of first rounding digit.
3356
- if (sd == null) {
3357
-
3358
- if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
3359
- Ctor.precision = wpr += 10;
3360
- denominator = pow = t = new Ctor(1);
3361
- i = 0;
3362
- rep++;
3363
- } else {
3364
- return finalise(sum, Ctor.precision = pr, rm, external = true);
3365
- }
3366
- } else {
3367
- Ctor.precision = pr;
3368
- return sum;
3369
- }
3370
- }
3371
-
3372
- sum = t;
3373
- }
3374
- }
3375
-
3376
-
3377
- /*
3378
- * Return a new Decimal whose value is the natural logarithm of `x` rounded to `sd` significant
3379
- * digits.
3380
- *
3381
- * ln(-n) = NaN
3382
- * ln(0) = -Infinity
3383
- * ln(-0) = -Infinity
3384
- * ln(1) = 0
3385
- * ln(Infinity) = Infinity
3386
- * ln(-Infinity) = NaN
3387
- * ln(NaN) = NaN
3388
- *
3389
- * ln(n) (n != 1) is non-terminating.
3390
- *
3391
- */
3392
- function naturalLogarithm(y, sd) {
3393
- var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2,
3394
- n = 1,
3395
- guard = 10,
3396
- x = y,
3397
- xd = x.d,
3398
- Ctor = x.constructor,
3399
- rm = Ctor.rounding,
3400
- pr = Ctor.precision;
3401
-
3402
- // Is x negative or Infinity, NaN, 0 or 1?
3403
- if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) {
3404
- return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);
3405
- }
3406
-
3407
- if (sd == null) {
3408
- external = false;
3409
- wpr = pr;
3410
- } else {
3411
- wpr = sd;
3412
- }
3413
-
3414
- Ctor.precision = wpr += guard;
3415
- c = digitsToString(xd);
3416
- c0 = c.charAt(0);
3417
-
3418
- if (Math.abs(e = x.e) < 1.5e15) {
3419
-
3420
- // Argument reduction.
3421
- // The series converges faster the closer the argument is to 1, so using
3422
- // ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b
3423
- // multiply the argument by itself until the leading digits of the significand are 7, 8, 9,
3424
- // 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can
3425
- // later be divided by this number, then separate out the power of 10 using
3426
- // ln(a*10^b) = ln(a) + b*ln(10).
3427
-
3428
- // max n is 21 (gives 0.9, 1.0 or 1.1) (9e15 / 21 = 4.2e14).
3429
- //while (c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1) {
3430
- // max n is 6 (gives 0.7 - 1.3)
3431
- while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
3432
- x = x.times(y);
3433
- c = digitsToString(x.d);
3434
- c0 = c.charAt(0);
3435
- n++;
3436
- }
3437
-
3438
- e = x.e;
3439
-
3440
- if (c0 > 1) {
3441
- x = new Ctor('0.' + c);
3442
- e++;
3443
- } else {
3444
- x = new Ctor(c0 + '.' + c.slice(1));
3445
- }
3446
- } else {
3447
-
3448
- // The argument reduction method above may result in overflow if the argument y is a massive
3449
- // number with exponent >= 1500000000000000 (9e15 / 6 = 1.5e15), so instead recall this
3450
- // function using ln(x*10^e) = ln(x) + e*ln(10).
3451
- t = getLn10(Ctor, wpr + 2, pr).times(e + '');
3452
- x = naturalLogarithm(new Ctor(c0 + '.' + c.slice(1)), wpr - guard).plus(t);
3453
- Ctor.precision = pr;
3454
-
3455
- return sd == null ? finalise(x, pr, rm, external = true) : x;
3456
- }
3457
-
3458
- // x1 is x reduced to a value near 1.
3459
- x1 = x;
3460
-
3461
- // Taylor series.
3462
- // ln(y) = ln((1 + x)/(1 - x)) = 2(x + x^3/3 + x^5/5 + x^7/7 + ...)
3463
- // where x = (y - 1)/(y + 1) (|x| < 1)
3464
- sum = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1);
3465
- x2 = finalise(x.times(x), wpr, 1);
3466
- denominator = 3;
3467
-
3468
- for (;;) {
3469
- numerator = finalise(numerator.times(x2), wpr, 1);
3470
- t = sum.plus(divide(numerator, new Ctor(denominator), wpr, 1));
3471
-
3472
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
3473
- sum = sum.times(2);
3474
-
3475
- // Reverse the argument reduction. Check that e is not 0 because, besides preventing an
3476
- // unnecessary calculation, -0 + 0 = +0 and to ensure correct rounding -0 needs to stay -0.
3477
- if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ''));
3478
- sum = divide(sum, new Ctor(n), wpr, 1);
3479
-
3480
- // Is rm > 3 and the first 4 rounding digits 4999, or rm < 4 (or the summation has
3481
- // been repeated previously) and the first 4 rounding digits 9999?
3482
- // If so, restart the summation with a higher precision, otherwise
3483
- // e.g. with precision: 12, rounding: 1
3484
- // ln(135520028.6126091714265381533) = 18.7246299999 when it should be 18.72463.
3485
- // `wpr - guard` is the index of first rounding digit.
3486
- if (sd == null) {
3487
- if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
3488
- Ctor.precision = wpr += guard;
3489
- t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);
3490
- x2 = finalise(x.times(x), wpr, 1);
3491
- denominator = rep = 1;
3492
- } else {
3493
- return finalise(sum, Ctor.precision = pr, rm, external = true);
3494
- }
3495
- } else {
3496
- Ctor.precision = pr;
3497
- return sum;
3498
- }
3499
- }
3500
-
3501
- sum = t;
3502
- denominator += 2;
3503
- }
3504
- }
3505
-
3506
-
3507
- // ±Infinity, NaN.
3508
- function nonFiniteToString(x) {
3509
- // Unsigned.
3510
- return String(x.s * x.s / 0);
3511
- }
3512
-
3513
-
3514
- /*
3515
- * Parse the value of a new Decimal `x` from string `str`.
3516
- */
3517
- function parseDecimal(x, str) {
3518
- var e, i, len;
3519
-
3520
- // Decimal point?
3521
- if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');
3522
-
3523
- // Exponential form?
3524
- if ((i = str.search(/e/i)) > 0) {
3525
-
3526
- // Determine exponent.
3527
- if (e < 0) e = i;
3528
- e += +str.slice(i + 1);
3529
- str = str.substring(0, i);
3530
- } else if (e < 0) {
3531
-
3532
- // Integer.
3533
- e = str.length;
3534
- }
3535
-
3536
- // Determine leading zeros.
3537
- for (i = 0; str.charCodeAt(i) === 48; i++);
3538
-
3539
- // Determine trailing zeros.
3540
- for (len = str.length; str.charCodeAt(len - 1) === 48; --len);
3541
- str = str.slice(i, len);
3542
-
3543
- if (str) {
3544
- len -= i;
3545
- x.e = e = e - i - 1;
3546
- x.d = [];
3547
-
3548
- // Transform base
3549
-
3550
- // e is the base 10 exponent.
3551
- // i is where to slice str to get the first word of the digits array.
3552
- i = (e + 1) % LOG_BASE;
3553
- if (e < 0) i += LOG_BASE;
3554
-
3555
- if (i < len) {
3556
- if (i) x.d.push(+str.slice(0, i));
3557
- for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE));
3558
- str = str.slice(i);
3559
- i = LOG_BASE - str.length;
3560
- } else {
3561
- i -= len;
3562
- }
3563
-
3564
- for (; i--;) str += '0';
3565
- x.d.push(+str);
3566
-
3567
- if (external) {
3568
-
3569
- // Overflow?
3570
- if (x.e > x.constructor.maxE) {
3571
-
3572
- // Infinity.
3573
- x.d = null;
3574
- x.e = NaN;
3575
-
3576
- // Underflow?
3577
- } else if (x.e < x.constructor.minE) {
3578
-
3579
- // Zero.
3580
- x.e = 0;
3581
- x.d = [0];
3582
- // x.constructor.underflow = true;
3583
- } // else x.constructor.underflow = false;
3584
- }
3585
- } else {
3586
-
3587
- // Zero.
3588
- x.e = 0;
3589
- x.d = [0];
3590
- }
3591
-
3592
- return x;
3593
- }
3594
-
3595
-
3596
- /*
3597
- * Parse the value of a new Decimal `x` from a string `str`, which is not a decimal value.
3598
- */
3599
- function parseOther(x, str) {
3600
- var base, Ctor, divisor, i, isFloat, len, p, xd, xe;
3601
-
3602
- if (str.indexOf('_') > -1) {
3603
- str = str.replace(/(\d)_(?=\d)/g, '$1');
3604
- if (isDecimal.test(str)) return parseDecimal(x, str);
3605
- } else if (str === 'Infinity' || str === 'NaN') {
3606
- if (!+str) x.s = NaN;
3607
- x.e = NaN;
3608
- x.d = null;
3609
- return x;
3610
- }
3611
-
3612
- if (isHex.test(str)) {
3613
- base = 16;
3614
- str = str.toLowerCase();
3615
- } else if (isBinary.test(str)) {
3616
- base = 2;
3617
- } else if (isOctal.test(str)) {
3618
- base = 8;
3619
- } else {
3620
- throw Error(invalidArgument + str);
3621
- }
3622
-
3623
- // Is there a binary exponent part?
3624
- i = str.search(/p/i);
3625
-
3626
- if (i > 0) {
3627
- p = +str.slice(i + 1);
3628
- str = str.substring(2, i);
3629
- } else {
3630
- str = str.slice(2);
3631
- }
3632
-
3633
- // Convert `str` as an integer then divide the result by `base` raised to a power such that the
3634
- // fraction part will be restored.
3635
- i = str.indexOf('.');
3636
- isFloat = i >= 0;
3637
- Ctor = x.constructor;
3638
-
3639
- if (isFloat) {
3640
- str = str.replace('.', '');
3641
- len = str.length;
3642
- i = len - i;
3643
-
3644
- // log[10](16) = 1.2041... , log[10](88) = 1.9444....
3645
- divisor = intPow(Ctor, new Ctor(base), i, i * 2);
3646
- }
3647
-
3648
- xd = convertBase(str, base, BASE);
3649
- xe = xd.length - 1;
3650
-
3651
- // Remove trailing zeros.
3652
- for (i = xe; xd[i] === 0; --i) xd.pop();
3653
- if (i < 0) return new Ctor(x.s * 0);
3654
- x.e = getBase10Exponent(xd, xe);
3655
- x.d = xd;
3656
- external = false;
3657
-
3658
- // At what precision to perform the division to ensure exact conversion?
3659
- // maxDecimalIntegerPartDigitCount = ceil(log[10](b) * otherBaseIntegerPartDigitCount)
3660
- // log[10](2) = 0.30103, log[10](8) = 0.90309, log[10](16) = 1.20412
3661
- // E.g. ceil(1.2 * 3) = 4, so up to 4 decimal digits are needed to represent 3 hex int digits.
3662
- // maxDecimalFractionPartDigitCount = {Hex:4|Oct:3|Bin:1} * otherBaseFractionPartDigitCount
3663
- // Therefore using 4 * the number of digits of str will always be enough.
3664
- if (isFloat) x = divide(x, divisor, len * 4);
3665
-
3666
- // Multiply by the binary exponent part if present.
3667
- if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p));
3668
- external = true;
3669
-
3670
- return x;
3671
- }
3672
-
3673
-
3674
- /*
3675
- * sin(x) = x - x^3/3! + x^5/5! - ...
3676
- * |x| < pi/2
3677
- *
3678
- */
3679
- function sine(Ctor, x) {
3680
- var k,
3681
- len = x.d.length;
3682
-
3683
- if (len < 3) {
3684
- return x.isZero() ? x : taylorSeries(Ctor, 2, x, x);
3685
- }
3686
-
3687
- // Argument reduction: sin(5x) = 16*sin^5(x) - 20*sin^3(x) + 5*sin(x)
3688
- // i.e. sin(x) = 16*sin^5(x/5) - 20*sin^3(x/5) + 5*sin(x/5)
3689
- // and sin(x) = sin(x/5)(5 + sin^2(x/5)(16sin^2(x/5) - 20))
3690
-
3691
- // Estimate the optimum number of times to use the argument reduction.
3692
- k = 1.4 * Math.sqrt(len);
3693
- k = k > 16 ? 16 : k | 0;
3694
-
3695
- x = x.times(1 / tinyPow(5, k));
3696
- x = taylorSeries(Ctor, 2, x, x);
3697
-
3698
- // Reverse argument reduction
3699
- var sin2_x,
3700
- d5 = new Ctor(5),
3701
- d16 = new Ctor(16),
3702
- d20 = new Ctor(20);
3703
- for (; k--;) {
3704
- sin2_x = x.times(x);
3705
- x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));
3706
- }
3707
-
3708
- return x;
3709
- }
3710
-
3711
-
3712
- // Calculate Taylor series for `cos`, `cosh`, `sin` and `sinh`.
3713
- function taylorSeries(Ctor, n, x, y, isHyperbolic) {
3714
- var j, t, u, x2,
3715
- i = 1,
3716
- pr = Ctor.precision,
3717
- k = Math.ceil(pr / LOG_BASE);
3718
-
3719
- external = false;
3720
- x2 = x.times(x);
3721
- u = new Ctor(y);
3722
-
3723
- for (;;) {
3724
- t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1);
3725
- u = isHyperbolic ? y.plus(t) : y.minus(t);
3726
- y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1);
3727
- t = u.plus(y);
3728
-
3729
- if (t.d[k] !== void 0) {
3730
- for (j = k; t.d[j] === u.d[j] && j--;);
3731
- if (j == -1) break;
3732
- }
3733
-
3734
- j = u;
3735
- u = y;
3736
- y = t;
3737
- t = j;
3738
- i++;
3739
- }
3740
-
3741
- external = true;
3742
- t.d.length = k + 1;
3743
-
3744
- return t;
3745
- }
3746
-
3747
-
3748
- // Exponent e must be positive and non-zero.
3749
- function tinyPow(b, e) {
3750
- var n = b;
3751
- while (--e) n *= b;
3752
- return n;
3753
- }
3754
-
3755
-
3756
- // Return the absolute value of `x` reduced to less than or equal to half pi.
3757
- function toLessThanHalfPi(Ctor, x) {
3758
- var t,
3759
- isNeg = x.s < 0,
3760
- pi = getPi(Ctor, Ctor.precision, 1),
3761
- halfPi = pi.times(0.5);
3762
-
3763
- x = x.abs();
3764
-
3765
- if (x.lte(halfPi)) {
3766
- quadrant = isNeg ? 4 : 1;
3767
- return x;
3768
- }
3769
-
3770
- t = x.divToInt(pi);
3771
-
3772
- if (t.isZero()) {
3773
- quadrant = isNeg ? 3 : 2;
3774
- } else {
3775
- x = x.minus(t.times(pi));
3776
-
3777
- // 0 <= x < pi
3778
- if (x.lte(halfPi)) {
3779
- quadrant = isOdd(t) ? (isNeg ? 2 : 3) : (isNeg ? 4 : 1);
3780
- return x;
3781
- }
3782
-
3783
- quadrant = isOdd(t) ? (isNeg ? 1 : 4) : (isNeg ? 3 : 2);
3784
- }
3785
-
3786
- return x.minus(pi).abs();
3787
- }
3788
-
3789
-
3790
- /*
3791
- * Return the value of Decimal `x` as a string in base `baseOut`.
3792
- *
3793
- * If the optional `sd` argument is present include a binary exponent suffix.
3794
- */
3795
- function toStringBinary(x, baseOut, sd, rm) {
3796
- var base, e, i, k, len, roundUp, str, xd, y,
3797
- Ctor = x.constructor,
3798
- isExp = sd !== void 0;
3799
-
3800
- if (isExp) {
3801
- checkInt32(sd, 1, MAX_DIGITS);
3802
- if (rm === void 0) rm = Ctor.rounding;
3803
- else checkInt32(rm, 0, 8);
3804
- } else {
3805
- sd = Ctor.precision;
3806
- rm = Ctor.rounding;
3807
- }
3808
-
3809
- if (!x.isFinite()) {
3810
- str = nonFiniteToString(x);
3811
- } else {
3812
- str = finiteToString(x);
3813
- i = str.indexOf('.');
3814
-
3815
- // Use exponential notation according to `toExpPos` and `toExpNeg`? No, but if required:
3816
- // maxBinaryExponent = floor((decimalExponent + 1) * log[2](10))
3817
- // minBinaryExponent = floor(decimalExponent * log[2](10))
3818
- // log[2](10) = 3.321928094887362347870319429489390175864
3819
-
3820
- if (isExp) {
3821
- base = 2;
3822
- if (baseOut == 16) {
3823
- sd = sd * 4 - 3;
3824
- } else if (baseOut == 8) {
3825
- sd = sd * 3 - 2;
3826
- }
3827
- } else {
3828
- base = baseOut;
3829
- }
3830
-
3831
- // Convert the number as an integer then divide the result by its base raised to a power such
3832
- // that the fraction part will be restored.
3833
-
3834
- // Non-integer.
3835
- if (i >= 0) {
3836
- str = str.replace('.', '');
3837
- y = new Ctor(1);
3838
- y.e = str.length - i;
3839
- y.d = convertBase(finiteToString(y), 10, base);
3840
- y.e = y.d.length;
3841
- }
3842
-
3843
- xd = convertBase(str, 10, base);
3844
- e = len = xd.length;
3845
-
3846
- // Remove trailing zeros.
3847
- for (; xd[--len] == 0;) xd.pop();
3848
-
3849
- if (!xd[0]) {
3850
- str = isExp ? '0p+0' : '0';
3851
- } else {
3852
- if (i < 0) {
3853
- e--;
3854
- } else {
3855
- x = new Ctor(x);
3856
- x.d = xd;
3857
- x.e = e;
3858
- x = divide(x, y, sd, rm, 0, base);
3859
- xd = x.d;
3860
- e = x.e;
3861
- roundUp = inexact;
3862
- }
3863
-
3864
- // The rounding digit, i.e. the digit after the digit that may be rounded up.
3865
- i = xd[sd];
3866
- k = base / 2;
3867
- roundUp = roundUp || xd[sd + 1] !== void 0;
3868
-
3869
- roundUp = rm < 4
3870
- ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2))
3871
- : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 ||
3872
- rm === (x.s < 0 ? 8 : 7));
3873
-
3874
- xd.length = sd;
3875
-
3876
- if (roundUp) {
3877
-
3878
- // Rounding up may mean the previous digit has to be rounded up and so on.
3879
- for (; ++xd[--sd] > base - 1;) {
3880
- xd[sd] = 0;
3881
- if (!sd) {
3882
- ++e;
3883
- xd.unshift(1);
3884
- }
3885
- }
3886
- }
3887
-
3888
- // Determine trailing zeros.
3889
- for (len = xd.length; !xd[len - 1]; --len);
3890
-
3891
- // E.g. [4, 11, 15] becomes 4bf.
3892
- for (i = 0, str = ''; i < len; i++) str += NUMERALS.charAt(xd[i]);
3893
-
3894
- // Add binary exponent suffix?
3895
- if (isExp) {
3896
- if (len > 1) {
3897
- if (baseOut == 16 || baseOut == 8) {
3898
- i = baseOut == 16 ? 4 : 3;
3899
- for (--len; len % i; len++) str += '0';
3900
- xd = convertBase(str, base, baseOut);
3901
- for (len = xd.length; !xd[len - 1]; --len);
3902
-
3903
- // xd[0] will always be be 1
3904
- for (i = 1, str = '1.'; i < len; i++) str += NUMERALS.charAt(xd[i]);
3905
- } else {
3906
- str = str.charAt(0) + '.' + str.slice(1);
3907
- }
3908
- }
3909
-
3910
- str = str + (e < 0 ? 'p' : 'p+') + e;
3911
- } else if (e < 0) {
3912
- for (; ++e;) str = '0' + str;
3913
- str = '0.' + str;
3914
- } else {
3915
- if (++e > len) for (e -= len; e-- ;) str += '0';
3916
- else if (e < len) str = str.slice(0, e) + '.' + str.slice(e);
3917
- }
3918
- }
3919
-
3920
- str = (baseOut == 16 ? '0x' : baseOut == 2 ? '0b' : baseOut == 8 ? '0o' : '') + str;
3921
- }
3922
-
3923
- return x.s < 0 ? '-' + str : str;
3924
- }
3925
-
3926
-
3927
- // Does not strip trailing zeros.
3928
- function truncate(arr, len) {
3929
- if (arr.length > len) {
3930
- arr.length = len;
3931
- return true;
3932
- }
3933
- }
3934
-
3935
-
3936
- // Decimal methods
3937
-
3938
-
3939
- /*
3940
- * abs
3941
- * acos
3942
- * acosh
3943
- * add
3944
- * asin
3945
- * asinh
3946
- * atan
3947
- * atanh
3948
- * atan2
3949
- * cbrt
3950
- * ceil
3951
- * clamp
3952
- * clone
3953
- * config
3954
- * cos
3955
- * cosh
3956
- * div
3957
- * exp
3958
- * floor
3959
- * hypot
3960
- * ln
3961
- * log
3962
- * log2
3963
- * log10
3964
- * max
3965
- * min
3966
- * mod
3967
- * mul
3968
- * pow
3969
- * random
3970
- * round
3971
- * set
3972
- * sign
3973
- * sin
3974
- * sinh
3975
- * sqrt
3976
- * sub
3977
- * sum
3978
- * tan
3979
- * tanh
3980
- * trunc
3981
- */
3982
-
3983
-
3984
- /*
3985
- * Return a new Decimal whose value is the absolute value of `x`.
3986
- *
3987
- * x {number|string|Decimal}
3988
- *
3989
- */
3990
- function abs(x) {
3991
- return new this(x).abs();
3992
- }
3993
-
3994
-
3995
- /*
3996
- * Return a new Decimal whose value is the arccosine in radians of `x`.
3997
- *
3998
- * x {number|string|Decimal}
3999
- *
4000
- */
4001
- function acos(x) {
4002
- return new this(x).acos();
4003
- }
4004
-
4005
-
4006
- /*
4007
- * Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to
4008
- * `precision` significant digits using rounding mode `rounding`.
4009
- *
4010
- * x {number|string|Decimal} A value in radians.
4011
- *
4012
- */
4013
- function acosh(x) {
4014
- return new this(x).acosh();
4015
- }
4016
-
4017
-
4018
- /*
4019
- * Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant
4020
- * digits using rounding mode `rounding`.
4021
- *
4022
- * x {number|string|Decimal}
4023
- * y {number|string|Decimal}
4024
- *
4025
- */
4026
- function add(x, y) {
4027
- return new this(x).plus(y);
4028
- }
4029
-
4030
-
4031
- /*
4032
- * Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision`
4033
- * significant digits using rounding mode `rounding`.
4034
- *
4035
- * x {number|string|Decimal}
4036
- *
4037
- */
4038
- function asin(x) {
4039
- return new this(x).asin();
4040
- }
4041
-
4042
-
4043
- /*
4044
- * Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to
4045
- * `precision` significant digits using rounding mode `rounding`.
4046
- *
4047
- * x {number|string|Decimal} A value in radians.
4048
- *
4049
- */
4050
- function asinh(x) {
4051
- return new this(x).asinh();
4052
- }
4053
-
4054
-
4055
- /*
4056
- * Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision`
4057
- * significant digits using rounding mode `rounding`.
4058
- *
4059
- * x {number|string|Decimal}
4060
- *
4061
- */
4062
- function atan(x) {
4063
- return new this(x).atan();
4064
- }
4065
-
4066
-
4067
- /*
4068
- * Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to
4069
- * `precision` significant digits using rounding mode `rounding`.
4070
- *
4071
- * x {number|string|Decimal} A value in radians.
4072
- *
4073
- */
4074
- function atanh(x) {
4075
- return new this(x).atanh();
4076
- }
4077
-
4078
-
4079
- /*
4080
- * Return a new Decimal whose value is the arctangent in radians of `y/x` in the range -pi to pi
4081
- * (inclusive), rounded to `precision` significant digits using rounding mode `rounding`.
4082
- *
4083
- * Domain: [-Infinity, Infinity]
4084
- * Range: [-pi, pi]
4085
- *
4086
- * y {number|string|Decimal} The y-coordinate.
4087
- * x {number|string|Decimal} The x-coordinate.
4088
- *
4089
- * atan2(±0, -0) = ±pi
4090
- * atan2(±0, +0) = ±0
4091
- * atan2(±0, -x) = ±pi for x > 0
4092
- * atan2(±0, x) = ±0 for x > 0
4093
- * atan2(-y, ±0) = -pi/2 for y > 0
4094
- * atan2(y, ±0) = pi/2 for y > 0
4095
- * atan2(±y, -Infinity) = ±pi for finite y > 0
4096
- * atan2(±y, +Infinity) = ±0 for finite y > 0
4097
- * atan2(±Infinity, x) = ±pi/2 for finite x
4098
- * atan2(±Infinity, -Infinity) = ±3*pi/4
4099
- * atan2(±Infinity, +Infinity) = ±pi/4
4100
- * atan2(NaN, x) = NaN
4101
- * atan2(y, NaN) = NaN
4102
- *
4103
- */
4104
- function atan2(y, x) {
4105
- y = new this(y);
4106
- x = new this(x);
4107
- var r,
4108
- pr = this.precision,
4109
- rm = this.rounding,
4110
- wpr = pr + 4;
4111
-
4112
- // Either NaN
4113
- if (!y.s || !x.s) {
4114
- r = new this(NaN);
4115
-
4116
- // Both ±Infinity
4117
- } else if (!y.d && !x.d) {
4118
- r = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75);
4119
- r.s = y.s;
4120
-
4121
- // x is ±Infinity or y is ±0
4122
- } else if (!x.d || y.isZero()) {
4123
- r = x.s < 0 ? getPi(this, pr, rm) : new this(0);
4124
- r.s = y.s;
4125
-
4126
- // y is ±Infinity or x is ±0
4127
- } else if (!y.d || x.isZero()) {
4128
- r = getPi(this, wpr, 1).times(0.5);
4129
- r.s = y.s;
4130
-
4131
- // Both non-zero and finite
4132
- } else if (x.s < 0) {
4133
- this.precision = wpr;
4134
- this.rounding = 1;
4135
- r = this.atan(divide(y, x, wpr, 1));
4136
- x = getPi(this, wpr, 1);
4137
- this.precision = pr;
4138
- this.rounding = rm;
4139
- r = y.s < 0 ? r.minus(x) : r.plus(x);
4140
- } else {
4141
- r = this.atan(divide(y, x, wpr, 1));
4142
- }
4143
-
4144
- return r;
4145
- }
4146
-
4147
-
4148
- /*
4149
- * Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant
4150
- * digits using rounding mode `rounding`.
4151
- *
4152
- * x {number|string|Decimal}
4153
- *
4154
- */
4155
- function cbrt(x) {
4156
- return new this(x).cbrt();
4157
- }
4158
-
4159
-
4160
- /*
4161
- * Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`.
4162
- *
4163
- * x {number|string|Decimal}
4164
- *
4165
- */
4166
- function ceil(x) {
4167
- return finalise(x = new this(x), x.e + 1, 2);
4168
- }
4169
-
4170
-
4171
- /*
4172
- * Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`.
4173
- *
4174
- * x {number|string|Decimal}
4175
- * min {number|string|Decimal}
4176
- * max {number|string|Decimal}
4177
- *
4178
- */
4179
- function clamp(x, min, max) {
4180
- return new this(x).clamp(min, max);
4181
- }
4182
-
4183
-
4184
- /*
4185
- * Configure global settings for a Decimal constructor.
4186
- *
4187
- * `obj` is an object with one or more of the following properties,
4188
- *
4189
- * precision {number}
4190
- * rounding {number}
4191
- * toExpNeg {number}
4192
- * toExpPos {number}
4193
- * maxE {number}
4194
- * minE {number}
4195
- * modulo {number}
4196
- * crypto {boolean|number}
4197
- * defaults {true}
4198
- *
4199
- * E.g. Decimal.config({ precision: 20, rounding: 4 })
4200
- *
4201
- */
4202
- function config(obj) {
4203
- if (!obj || typeof obj !== 'object') throw Error(decimalError + 'Object expected');
4204
- var i, p, v,
4205
- useDefaults = obj.defaults === true,
4206
- ps = [
4207
- 'precision', 1, MAX_DIGITS,
4208
- 'rounding', 0, 8,
4209
- 'toExpNeg', -EXP_LIMIT, 0,
4210
- 'toExpPos', 0, EXP_LIMIT,
4211
- 'maxE', 0, EXP_LIMIT,
4212
- 'minE', -EXP_LIMIT, 0,
4213
- 'modulo', 0, 9
4214
- ];
4215
-
4216
- for (i = 0; i < ps.length; i += 3) {
4217
- if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];
4218
- if ((v = obj[p]) !== void 0) {
4219
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
4220
- else throw Error(invalidArgument + p + ': ' + v);
4221
- }
4222
- }
4223
-
4224
- if (p = 'crypto', useDefaults) this[p] = DEFAULTS[p];
4225
- if ((v = obj[p]) !== void 0) {
4226
- if (v === true || v === false || v === 0 || v === 1) {
4227
- if (v) {
4228
- if (typeof crypto != 'undefined' && crypto &&
4229
- (crypto.getRandomValues || crypto.randomBytes)) {
4230
- this[p] = true;
4231
- } else {
4232
- throw Error(cryptoUnavailable);
4233
- }
4234
- } else {
4235
- this[p] = false;
4236
- }
4237
- } else {
4238
- throw Error(invalidArgument + p + ': ' + v);
4239
- }
4240
- }
4241
-
4242
- return this;
4243
- }
4244
-
4245
-
4246
- /*
4247
- * Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant
4248
- * digits using rounding mode `rounding`.
4249
- *
4250
- * x {number|string|Decimal} A value in radians.
4251
- *
4252
- */
4253
- function cos(x) {
4254
- return new this(x).cos();
4255
- }
4256
-
4257
-
4258
- /*
4259
- * Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision
4260
- * significant digits using rounding mode `rounding`.
4261
- *
4262
- * x {number|string|Decimal} A value in radians.
4263
- *
4264
- */
4265
- function cosh(x) {
4266
- return new this(x).cosh();
4267
- }
4268
-
4269
-
4270
- /*
4271
- * Create and return a Decimal constructor with the same configuration properties as this Decimal
4272
- * constructor.
4273
- *
4274
- */
4275
- function clone(obj) {
4276
- var i, p, ps;
4277
-
4278
- /*
4279
- * The Decimal constructor and exported function.
4280
- * Return a new Decimal instance.
4281
- *
4282
- * v {number|string|Decimal} A numeric value.
4283
- *
4284
- */
4285
- function Decimal(v) {
4286
- var e, i, t,
4287
- x = this;
4288
-
4289
- // Decimal called without new.
4290
- if (!(x instanceof Decimal)) return new Decimal(v);
4291
-
4292
- // Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor
4293
- // which points to Object.
4294
- x.constructor = Decimal;
4295
-
4296
- // Duplicate.
4297
- if (isDecimalInstance(v)) {
4298
- x.s = v.s;
4299
-
4300
- if (external) {
4301
- if (!v.d || v.e > Decimal.maxE) {
4302
-
4303
- // Infinity.
4304
- x.e = NaN;
4305
- x.d = null;
4306
- } else if (v.e < Decimal.minE) {
4307
-
4308
- // Zero.
4309
- x.e = 0;
4310
- x.d = [0];
4311
- } else {
4312
- x.e = v.e;
4313
- x.d = v.d.slice();
4314
- }
4315
- } else {
4316
- x.e = v.e;
4317
- x.d = v.d ? v.d.slice() : v.d;
4318
- }
4319
-
4320
- return;
4321
- }
4322
-
4323
- t = typeof v;
4324
-
4325
- if (t === 'number') {
4326
- if (v === 0) {
4327
- x.s = 1 / v < 0 ? -1 : 1;
4328
- x.e = 0;
4329
- x.d = [0];
4330
- return;
4331
- }
4332
-
4333
- if (v < 0) {
4334
- v = -v;
4335
- x.s = -1;
4336
- } else {
4337
- x.s = 1;
4338
- }
4339
-
4340
- // Fast path for small integers.
4341
- if (v === ~~v && v < 1e7) {
4342
- for (e = 0, i = v; i >= 10; i /= 10) e++;
4343
-
4344
- if (external) {
4345
- if (e > Decimal.maxE) {
4346
- x.e = NaN;
4347
- x.d = null;
4348
- } else if (e < Decimal.minE) {
4349
- x.e = 0;
4350
- x.d = [0];
4351
- } else {
4352
- x.e = e;
4353
- x.d = [v];
4354
- }
4355
- } else {
4356
- x.e = e;
4357
- x.d = [v];
4358
- }
4359
-
4360
- return;
4361
-
4362
- // Infinity, NaN.
4363
- } else if (v * 0 !== 0) {
4364
- if (!v) x.s = NaN;
4365
- x.e = NaN;
4366
- x.d = null;
4367
- return;
4368
- }
4369
-
4370
- return parseDecimal(x, v.toString());
4371
-
4372
- } else if (t !== 'string') {
4373
- throw Error(invalidArgument + v);
4374
- }
4375
-
4376
- // Minus sign?
4377
- if ((i = v.charCodeAt(0)) === 45) {
4378
- v = v.slice(1);
4379
- x.s = -1;
4380
- } else {
4381
- // Plus sign?
4382
- if (i === 43) v = v.slice(1);
4383
- x.s = 1;
4384
- }
4385
-
4386
- return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
4387
- }
4388
-
4389
- Decimal.prototype = P;
4390
-
4391
- Decimal.ROUND_UP = 0;
4392
- Decimal.ROUND_DOWN = 1;
4393
- Decimal.ROUND_CEIL = 2;
4394
- Decimal.ROUND_FLOOR = 3;
4395
- Decimal.ROUND_HALF_UP = 4;
4396
- Decimal.ROUND_HALF_DOWN = 5;
4397
- Decimal.ROUND_HALF_EVEN = 6;
4398
- Decimal.ROUND_HALF_CEIL = 7;
4399
- Decimal.ROUND_HALF_FLOOR = 8;
4400
- Decimal.EUCLID = 9;
4401
-
4402
- Decimal.config = Decimal.set = config;
4403
- Decimal.clone = clone;
4404
- Decimal.isDecimal = isDecimalInstance;
4405
-
4406
- Decimal.abs = abs;
4407
- Decimal.acos = acos;
4408
- Decimal.acosh = acosh; // ES6
4409
- Decimal.add = add;
4410
- Decimal.asin = asin;
4411
- Decimal.asinh = asinh; // ES6
4412
- Decimal.atan = atan;
4413
- Decimal.atanh = atanh; // ES6
4414
- Decimal.atan2 = atan2;
4415
- Decimal.cbrt = cbrt; // ES6
4416
- Decimal.ceil = ceil;
4417
- Decimal.clamp = clamp;
4418
- Decimal.cos = cos;
4419
- Decimal.cosh = cosh; // ES6
4420
- Decimal.div = div;
4421
- Decimal.exp = exp;
4422
- Decimal.floor = floor;
4423
- Decimal.hypot = hypot; // ES6
4424
- Decimal.ln = ln;
4425
- Decimal.log = log;
4426
- Decimal.log10 = log10; // ES6
4427
- Decimal.log2 = log2; // ES6
4428
- Decimal.max = max;
4429
- Decimal.min = min;
4430
- Decimal.mod = mod;
4431
- Decimal.mul = mul;
4432
- Decimal.pow = pow;
4433
- Decimal.random = random;
4434
- Decimal.round = round;
4435
- Decimal.sign = sign; // ES6
4436
- Decimal.sin = sin;
4437
- Decimal.sinh = sinh; // ES6
4438
- Decimal.sqrt = sqrt;
4439
- Decimal.sub = sub;
4440
- Decimal.sum = sum;
4441
- Decimal.tan = tan;
4442
- Decimal.tanh = tanh; // ES6
4443
- Decimal.trunc = trunc; // ES6
4444
-
4445
- if (obj === void 0) obj = {};
4446
- if (obj) {
4447
- if (obj.defaults !== true) {
4448
- ps = ['precision', 'rounding', 'toExpNeg', 'toExpPos', 'maxE', 'minE', 'modulo', 'crypto'];
4449
- for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
4450
- }
4451
- }
4452
-
4453
- Decimal.config(obj);
4454
-
4455
- return Decimal;
4456
- }
4457
-
4458
-
4459
- /*
4460
- * Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant
4461
- * digits using rounding mode `rounding`.
4462
- *
4463
- * x {number|string|Decimal}
4464
- * y {number|string|Decimal}
4465
- *
4466
- */
4467
- function div(x, y) {
4468
- return new this(x).div(y);
4469
- }
4470
-
4471
-
4472
- /*
4473
- * Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision`
4474
- * significant digits using rounding mode `rounding`.
4475
- *
4476
- * x {number|string|Decimal} The power to which to raise the base of the natural log.
4477
- *
4478
- */
4479
- function exp(x) {
4480
- return new this(x).exp();
4481
- }
4482
-
4483
-
4484
- /*
4485
- * Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`.
4486
- *
4487
- * x {number|string|Decimal}
4488
- *
4489
- */
4490
- function floor(x) {
4491
- return finalise(x = new this(x), x.e + 1, 3);
4492
- }
4493
-
4494
-
4495
- /*
4496
- * Return a new Decimal whose value is the square root of the sum of the squares of the arguments,
4497
- * rounded to `precision` significant digits using rounding mode `rounding`.
4498
- *
4499
- * hypot(a, b, ...) = sqrt(a^2 + b^2 + ...)
4500
- *
4501
- * arguments {number|string|Decimal}
4502
- *
4503
- */
4504
- function hypot() {
4505
- var i, n,
4506
- t = new this(0);
4507
-
4508
- external = false;
4509
-
4510
- for (i = 0; i < arguments.length;) {
4511
- n = new this(arguments[i++]);
4512
- if (!n.d) {
4513
- if (n.s) {
4514
- external = true;
4515
- return new this(1 / 0);
4516
- }
4517
- t = n;
4518
- } else if (t.d) {
4519
- t = t.plus(n.times(n));
4520
- }
4521
- }
4522
-
4523
- external = true;
4524
-
4525
- return t.sqrt();
4526
- }
4527
-
4528
-
4529
- /*
4530
- * Return true if object is a Decimal instance (where Decimal is any Decimal constructor),
4531
- * otherwise return false.
4532
- *
4533
- */
4534
- function isDecimalInstance(obj) {
4535
- return obj instanceof Decimal || obj && obj.toStringTag === tag || false;
4536
- }
4537
-
4538
-
4539
- /*
4540
- * Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision`
4541
- * significant digits using rounding mode `rounding`.
4542
- *
4543
- * x {number|string|Decimal}
4544
- *
4545
- */
4546
- function ln(x) {
4547
- return new this(x).ln();
4548
- }
4549
-
4550
-
4551
- /*
4552
- * Return a new Decimal whose value is the log of `x` to the base `y`, or to base 10 if no base
4553
- * is specified, rounded to `precision` significant digits using rounding mode `rounding`.
4554
- *
4555
- * log[y](x)
4556
- *
4557
- * x {number|string|Decimal} The argument of the logarithm.
4558
- * y {number|string|Decimal} The base of the logarithm.
4559
- *
4560
- */
4561
- function log(x, y) {
4562
- return new this(x).log(y);
4563
- }
4564
-
4565
-
4566
- /*
4567
- * Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision`
4568
- * significant digits using rounding mode `rounding`.
4569
- *
4570
- * x {number|string|Decimal}
4571
- *
4572
- */
4573
- function log2(x) {
4574
- return new this(x).log(2);
4575
- }
4576
-
4577
-
4578
- /*
4579
- * Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision`
4580
- * significant digits using rounding mode `rounding`.
4581
- *
4582
- * x {number|string|Decimal}
4583
- *
4584
- */
4585
- function log10(x) {
4586
- return new this(x).log(10);
4587
- }
4588
-
4589
-
4590
- /*
4591
- * Return a new Decimal whose value is the maximum of the arguments.
4592
- *
4593
- * arguments {number|string|Decimal}
4594
- *
4595
- */
4596
- function max() {
4597
- return maxOrMin(this, arguments, 'lt');
4598
- }
4599
-
4600
-
4601
- /*
4602
- * Return a new Decimal whose value is the minimum of the arguments.
4603
- *
4604
- * arguments {number|string|Decimal}
4605
- *
4606
- */
4607
- function min() {
4608
- return maxOrMin(this, arguments, 'gt');
4609
- }
4610
-
4611
-
4612
- /*
4613
- * Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits
4614
- * using rounding mode `rounding`.
4615
- *
4616
- * x {number|string|Decimal}
4617
- * y {number|string|Decimal}
4618
- *
4619
- */
4620
- function mod(x, y) {
4621
- return new this(x).mod(y);
4622
- }
4623
-
4624
-
4625
- /*
4626
- * Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant
4627
- * digits using rounding mode `rounding`.
4628
- *
4629
- * x {number|string|Decimal}
4630
- * y {number|string|Decimal}
4631
- *
4632
- */
4633
- function mul(x, y) {
4634
- return new this(x).mul(y);
4635
- }
4636
-
4637
-
4638
- /*
4639
- * Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision
4640
- * significant digits using rounding mode `rounding`.
4641
- *
4642
- * x {number|string|Decimal} The base.
4643
- * y {number|string|Decimal} The exponent.
4644
- *
4645
- */
4646
- function pow(x, y) {
4647
- return new this(x).pow(y);
4648
- }
4649
-
4650
-
4651
- /*
4652
- * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and with
4653
- * `sd`, or `Decimal.precision` if `sd` is omitted, significant digits (or less if trailing zeros
4654
- * are produced).
4655
- *
4656
- * [sd] {number} Significant digits. Integer, 0 to MAX_DIGITS inclusive.
4657
- *
4658
- */
4659
- function random(sd) {
4660
- var d, e, k, n,
4661
- i = 0,
4662
- r = new this(1),
4663
- rd = [];
4664
-
4665
- if (sd === void 0) sd = this.precision;
4666
- else checkInt32(sd, 1, MAX_DIGITS);
4667
-
4668
- k = Math.ceil(sd / LOG_BASE);
4669
-
4670
- if (!this.crypto) {
4671
- for (; i < k;) rd[i++] = Math.random() * 1e7 | 0;
4672
-
4673
- // Browsers supporting crypto.getRandomValues.
4674
- } else if (crypto.getRandomValues) {
4675
- d = crypto.getRandomValues(new Uint32Array(k));
4676
-
4677
- for (; i < k;) {
4678
- n = d[i];
4679
-
4680
- // 0 <= n < 4294967296
4681
- // Probability n >= 4.29e9, is 4967296 / 4294967296 = 0.00116 (1 in 865).
4682
- if (n >= 4.29e9) {
4683
- d[i] = crypto.getRandomValues(new Uint32Array(1))[0];
4684
- } else {
4685
-
4686
- // 0 <= n <= 4289999999
4687
- // 0 <= (n % 1e7) <= 9999999
4688
- rd[i++] = n % 1e7;
4689
- }
4690
- }
4691
-
4692
- // Node.js supporting crypto.randomBytes.
4693
- } else if (crypto.randomBytes) {
4694
-
4695
- // buffer
4696
- d = crypto.randomBytes(k *= 4);
4697
-
4698
- for (; i < k;) {
4699
-
4700
- // 0 <= n < 2147483648
4701
- n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 0x7f) << 24);
4702
-
4703
- // Probability n >= 2.14e9, is 7483648 / 2147483648 = 0.0035 (1 in 286).
4704
- if (n >= 2.14e9) {
4705
- crypto.randomBytes(4).copy(d, i);
4706
- } else {
4707
-
4708
- // 0 <= n <= 2139999999
4709
- // 0 <= (n % 1e7) <= 9999999
4710
- rd.push(n % 1e7);
4711
- i += 4;
4712
- }
4713
- }
4714
-
4715
- i = k / 4;
4716
- } else {
4717
- throw Error(cryptoUnavailable);
4718
- }
4719
-
4720
- k = rd[--i];
4721
- sd %= LOG_BASE;
4722
-
4723
- // Convert trailing digits to zeros according to sd.
4724
- if (k && sd) {
4725
- n = mathpow(10, LOG_BASE - sd);
4726
- rd[i] = (k / n | 0) * n;
4727
- }
4728
-
4729
- // Remove trailing words which are zero.
4730
- for (; rd[i] === 0; i--) rd.pop();
4731
-
4732
- // Zero?
4733
- if (i < 0) {
4734
- e = 0;
4735
- rd = [0];
4736
- } else {
4737
- e = -1;
4738
-
4739
- // Remove leading words which are zero and adjust exponent accordingly.
4740
- for (; rd[0] === 0; e -= LOG_BASE) rd.shift();
4741
-
4742
- // Count the digits of the first word of rd to determine leading zeros.
4743
- for (k = 1, n = rd[0]; n >= 10; n /= 10) k++;
4744
-
4745
- // Adjust the exponent for leading zeros of the first word of rd.
4746
- if (k < LOG_BASE) e -= LOG_BASE - k;
4747
- }
4748
-
4749
- r.e = e;
4750
- r.d = rd;
4751
-
4752
- return r;
4753
- }
4754
-
4755
-
4756
- /*
4757
- * Return a new Decimal whose value is `x` rounded to an integer using rounding mode `rounding`.
4758
- *
4759
- * To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL).
4760
- *
4761
- * x {number|string|Decimal}
4762
- *
4763
- */
4764
- function round(x) {
4765
- return finalise(x = new this(x), x.e + 1, this.rounding);
4766
- }
4767
-
4768
-
4769
- /*
4770
- * Return
4771
- * 1 if x > 0,
4772
- * -1 if x < 0,
4773
- * 0 if x is 0,
4774
- * -0 if x is -0,
4775
- * NaN otherwise
4776
- *
4777
- * x {number|string|Decimal}
4778
- *
4779
- */
4780
- function sign(x) {
4781
- x = new this(x);
4782
- return x.d ? (x.d[0] ? x.s : 0 * x.s) : x.s || NaN;
4783
- }
4784
-
4785
-
4786
- /*
4787
- * Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits
4788
- * using rounding mode `rounding`.
4789
- *
4790
- * x {number|string|Decimal} A value in radians.
4791
- *
4792
- */
4793
- function sin(x) {
4794
- return new this(x).sin();
4795
- }
4796
-
4797
-
4798
- /*
4799
- * Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision`
4800
- * significant digits using rounding mode `rounding`.
4801
- *
4802
- * x {number|string|Decimal} A value in radians.
4803
- *
4804
- */
4805
- function sinh(x) {
4806
- return new this(x).sinh();
4807
- }
4808
-
4809
-
4810
- /*
4811
- * Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant
4812
- * digits using rounding mode `rounding`.
4813
- *
4814
- * x {number|string|Decimal}
4815
- *
4816
- */
4817
- function sqrt(x) {
4818
- return new this(x).sqrt();
4819
- }
4820
-
4821
-
4822
- /*
4823
- * Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits
4824
- * using rounding mode `rounding`.
4825
- *
4826
- * x {number|string|Decimal}
4827
- * y {number|string|Decimal}
4828
- *
4829
- */
4830
- function sub(x, y) {
4831
- return new this(x).sub(y);
4832
- }
4833
-
4834
-
4835
- /*
4836
- * Return a new Decimal whose value is the sum of the arguments, rounded to `precision`
4837
- * significant digits using rounding mode `rounding`.
4838
- *
4839
- * Only the result is rounded, not the intermediate calculations.
4840
- *
4841
- * arguments {number|string|Decimal}
4842
- *
4843
- */
4844
- function sum() {
4845
- var i = 0,
4846
- args = arguments,
4847
- x = new this(args[i]);
4848
-
4849
- external = false;
4850
- for (; x.s && ++i < args.length;) x = x.plus(args[i]);
4851
- external = true;
4852
-
4853
- return finalise(x, this.precision, this.rounding);
4854
- }
4855
-
4856
-
4857
- /*
4858
- * Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant
4859
- * digits using rounding mode `rounding`.
4860
- *
4861
- * x {number|string|Decimal} A value in radians.
4862
- *
4863
- */
4864
- function tan(x) {
4865
- return new this(x).tan();
4866
- }
4867
-
4868
-
4869
- /*
4870
- * Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision`
4871
- * significant digits using rounding mode `rounding`.
4872
- *
4873
- * x {number|string|Decimal} A value in radians.
4874
- *
4875
- */
4876
- function tanh(x) {
4877
- return new this(x).tanh();
4878
- }
4879
-
4880
-
4881
- /*
4882
- * Return a new Decimal whose value is `x` truncated to an integer.
4883
- *
4884
- * x {number|string|Decimal}
4885
- *
4886
- */
4887
- function trunc(x) {
4888
- return finalise(x = new this(x), x.e + 1, 1);
4889
- }
4890
-
4891
-
4892
- // Create and configure initial Decimal constructor.
4893
- Decimal = clone(DEFAULTS);
4894
- Decimal.prototype.constructor = Decimal;
4895
- Decimal['default'] = Decimal.Decimal = Decimal;
4896
-
4897
- // Create the internal constants from their string values.
4898
- LN10 = new Decimal(LN10);
4899
- PI = new Decimal(PI);
4900
-
4901
-
4902
- // Export.
4903
-
4904
-
4905
- // AMD.
4906
- if (typeof define == 'function' && define.amd) {
4907
- define(function () {
4908
- return Decimal;
4909
- });
4910
-
4911
- // Node and other environments that support module.exports.
4912
- } else if (typeof module != 'undefined' && module.exports) {
4913
- if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') {
4914
- P[Symbol['for']('nodejs.util.inspect.custom')] = P.toString;
4915
- P[Symbol.toStringTag] = 'Decimal';
4916
- }
4917
-
4918
- module.exports = Decimal;
4919
-
4920
- // Browser.
4921
- } else {
4922
- if (!globalScope) {
4923
- globalScope = typeof self != 'undefined' && self && self.self == self ? self : window;
4924
- }
4925
-
4926
- noConflict = globalScope.Decimal;
4927
- Decimal.noConflict = function () {
4928
- globalScope.Decimal = noConflict;
4929
- return Decimal;
4930
- };
4931
-
4932
- globalScope.Decimal = Decimal;
4933
- }
4934
- })(this);