pi-codex-auto-review 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1034) hide show
  1. package/README.md +19 -10
  2. package/dist/approval-commands.d.ts +4 -0
  3. package/dist/approval-commands.js +176 -0
  4. package/dist/approval-commands.js.map +1 -0
  5. package/dist/approval-settings.d.ts +9 -0
  6. package/dist/approval-settings.js +40 -0
  7. package/dist/approval-settings.js.map +1 -0
  8. package/dist/approvals.d.ts +2 -1
  9. package/dist/approvals.js +3 -2
  10. package/dist/approvals.js.map +1 -1
  11. package/dist/cli.js +5 -5
  12. package/dist/cli.js.map +1 -1
  13. package/dist/contracts.d.ts +2 -0
  14. package/dist/contracts.js.map +1 -1
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +26 -38
  17. package/dist/index.js.map +1 -1
  18. package/dist/policy/index.d.ts +0 -1
  19. package/dist/policy/index.js +11 -32
  20. package/dist/policy/index.js.map +1 -1
  21. package/dist/review/context.d.ts +14 -1
  22. package/dist/review/context.js +83 -13
  23. package/dist/review/context.js.map +1 -1
  24. package/dist/review/investigation.d.ts +3 -3
  25. package/dist/review/investigation.js +1 -1
  26. package/dist/review/investigation.js.map +1 -1
  27. package/dist/review/lifecycle.js +2 -2
  28. package/dist/review/lifecycle.js.map +1 -1
  29. package/dist/review/policy.js +20 -3
  30. package/dist/review/policy.js.map +1 -1
  31. package/dist/review/user-input.d.ts +5 -0
  32. package/dist/review/user-input.js +31 -0
  33. package/dist/review/user-input.js.map +1 -0
  34. package/dist/reviewer.d.ts +11 -1
  35. package/dist/reviewer.js +12 -2
  36. package/dist/reviewer.js.map +1 -1
  37. package/dist/tools/controller.d.ts +11 -6
  38. package/dist/tools/controller.js +102 -55
  39. package/dist/tools/controller.js.map +1 -1
  40. package/dist/tools/environment.d.ts +2 -0
  41. package/dist/tools/environment.js +9 -0
  42. package/dist/tools/environment.js.map +1 -0
  43. package/dist/tools/executor.d.ts +14 -0
  44. package/dist/tools/executor.js +75 -0
  45. package/dist/tools/executor.js.map +1 -0
  46. package/dist/tools/external.d.ts +1 -0
  47. package/dist/tools/external.js.map +1 -1
  48. package/dist/tools/mcp.js +1 -0
  49. package/dist/tools/mcp.js.map +1 -1
  50. package/dist/tools/mutation-queue.d.ts +1 -0
  51. package/dist/tools/mutation-queue.js +16 -0
  52. package/dist/tools/mutation-queue.js.map +1 -0
  53. package/docs/publishing.md +7 -7
  54. package/docs/security/dependencies.md +13 -3
  55. package/docs/testing/auto-review-protection.md +31 -8
  56. package/docs/usage.md +33 -18
  57. package/package.json +11 -14
  58. package/dist/sandbox/broker.d.ts +0 -1
  59. package/dist/sandbox/broker.js +0 -139
  60. package/dist/sandbox/broker.js.map +0 -1
  61. package/dist/sandbox/config.d.ts +0 -5
  62. package/dist/sandbox/config.js +0 -97
  63. package/dist/sandbox/config.js.map +0 -1
  64. package/dist/sandbox/directory-scan.d.ts +0 -1
  65. package/dist/sandbox/directory-scan.js +0 -32
  66. package/dist/sandbox/directory-scan.js.map +0 -1
  67. package/dist/sandbox/executor.d.ts +0 -20
  68. package/dist/sandbox/executor.js +0 -146
  69. package/dist/sandbox/executor.js.map +0 -1
  70. package/dist/sandbox/hard-links.d.ts +0 -4
  71. package/dist/sandbox/hard-links.js +0 -155
  72. package/dist/sandbox/hard-links.js.map +0 -1
  73. package/dist/sandbox/linux-read-paths.d.ts +0 -7
  74. package/dist/sandbox/linux-read-paths.js +0 -47
  75. package/dist/sandbox/linux-read-paths.js.map +0 -1
  76. package/dist/sandbox/paths.d.ts +0 -3
  77. package/dist/sandbox/paths.js +0 -10
  78. package/dist/sandbox/paths.js.map +0 -1
  79. package/dist/sandbox/runtime-write-paths.d.ts +0 -2
  80. package/dist/sandbox/runtime-write-paths.js +0 -8
  81. package/dist/sandbox/runtime-write-paths.js.map +0 -1
  82. package/dist/sandbox/seccomp.d.ts +0 -5
  83. package/dist/sandbox/seccomp.js +0 -16
  84. package/dist/sandbox/seccomp.js.map +0 -1
  85. package/dist/sandbox/worker.d.ts +0 -1
  86. package/dist/sandbox/worker.js +0 -78
  87. package/dist/sandbox/worker.js.map +0 -1
  88. package/node_modules/@anthropic-ai/sandbox-runtime/LICENSE +0 -201
  89. package/node_modules/@anthropic-ai/sandbox-runtime/README.md +0 -901
  90. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +0 -3
  91. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +0 -1
  92. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +0 -472
  93. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +0 -1
  94. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +0 -19
  95. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +0 -1
  96. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +0 -17
  97. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +0 -1
  98. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +0 -52
  99. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +0 -1
  100. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +0 -153
  101. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +0 -1
  102. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +0 -164
  103. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +0 -1
  104. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +0 -246
  105. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +0 -1
  106. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +0 -58
  107. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +0 -1
  108. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +0 -128
  109. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +0 -1
  110. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +0 -124
  111. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +0 -1
  112. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +0 -258
  113. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +0 -1
  114. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +0 -87
  115. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +0 -1
  116. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +0 -138
  117. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +0 -1
  118. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +0 -67
  119. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +0 -1
  120. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +0 -113
  121. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +0 -1
  122. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +0 -70
  123. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +0 -1
  124. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +0 -171
  125. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +0 -1
  126. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +0 -120
  127. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +0 -1
  128. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +0 -281
  129. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +0 -1
  130. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +0 -108
  131. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +0 -1
  132. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +0 -208
  133. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +0 -1
  134. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +0 -82
  135. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +0 -1
  136. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +0 -155
  137. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +0 -1
  138. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +0 -44
  139. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +0 -1
  140. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +0 -220
  141. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +0 -1
  142. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +0 -150
  143. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +0 -1
  144. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +0 -678
  145. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +0 -1
  146. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +0 -32
  147. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +0 -1
  148. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +0 -111
  149. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +0 -1
  150. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +0 -305
  151. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +0 -1
  152. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +0 -2605
  153. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +0 -1
  154. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +0 -55
  155. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +0 -1
  156. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +0 -152
  157. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +0 -1
  158. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +0 -12
  159. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +0 -1
  160. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +0 -43
  161. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +0 -1
  162. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +0 -116
  163. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +0 -1
  164. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +0 -1195
  165. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +0 -1
  166. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +0 -200
  167. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +0 -1
  168. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +0 -443
  169. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +0 -1
  170. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +0 -28
  171. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +0 -1
  172. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +0 -114
  173. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +0 -1
  174. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +0 -59
  175. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +0 -1
  176. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +0 -159
  177. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +0 -1
  178. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +0 -147
  179. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +0 -1
  180. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +0 -445
  181. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +0 -1
  182. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +0 -17
  183. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +0 -1
  184. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +0 -163
  185. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +0 -1
  186. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +0 -83
  187. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +0 -1
  188. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +0 -212
  189. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +0 -1
  190. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +0 -76
  191. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +0 -1
  192. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +0 -221
  193. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +0 -1
  194. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +0 -1691
  195. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +0 -1
  196. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +0 -1233
  197. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +0 -1
  198. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +0 -97
  199. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +0 -1
  200. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +0 -1937
  201. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +0 -1
  202. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +0 -113
  203. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +0 -1
  204. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +0 -3
  205. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +0 -1
  206. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +0 -411
  207. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +0 -1
  208. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +0 -1408
  209. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +0 -1
  210. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +0 -37
  211. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +0 -1
  212. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +0 -125
  213. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +0 -1
  214. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +0 -57
  215. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +0 -1
  216. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +0 -332
  217. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +0 -1
  218. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +0 -100
  219. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +0 -1
  220. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +0 -546
  221. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +0 -1
  222. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +0 -923
  223. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +0 -1
  224. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +0 -1419
  225. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +0 -1
  226. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +0 -31
  227. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +0 -1
  228. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +0 -69
  229. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +0 -1
  230. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +0 -7
  231. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +0 -1
  232. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +0 -25
  233. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +0 -1
  234. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +0 -15
  235. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +0 -1
  236. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +0 -49
  237. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +0 -1
  238. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +0 -17
  239. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +0 -1
  240. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +0 -37
  241. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +0 -1
  242. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +0 -27
  243. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +0 -1
  244. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +0 -47
  245. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +0 -1
  246. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +0 -9
  247. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +0 -1
  248. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +0 -25
  249. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +0 -1
  250. package/node_modules/@anthropic-ai/sandbox-runtime/package.json +0 -88
  251. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +0 -95
  252. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
  253. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
  254. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +0 -69
  255. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
  256. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
  257. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +0 -28
  258. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
  259. package/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +0 -27
  260. package/node_modules/@pondwader/socks5-server/LICENSE +0 -20
  261. package/node_modules/@pondwader/socks5-server/README.md +0 -151
  262. package/node_modules/@pondwader/socks5-server/dist/index.d.mts +0 -87
  263. package/node_modules/@pondwader/socks5-server/dist/index.d.ts +0 -87
  264. package/node_modules/@pondwader/socks5-server/dist/index.js +0 -346
  265. package/node_modules/@pondwader/socks5-server/dist/index.mjs +0 -307
  266. package/node_modules/@pondwader/socks5-server/package.json +0 -31
  267. package/node_modules/commander/LICENSE +0 -22
  268. package/node_modules/commander/Readme.md +0 -1157
  269. package/node_modules/commander/esm.mjs +0 -16
  270. package/node_modules/commander/index.js +0 -24
  271. package/node_modules/commander/lib/argument.js +0 -149
  272. package/node_modules/commander/lib/command.js +0 -2509
  273. package/node_modules/commander/lib/error.js +0 -39
  274. package/node_modules/commander/lib/help.js +0 -520
  275. package/node_modules/commander/lib/option.js +0 -330
  276. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  277. package/node_modules/commander/package-support.json +0 -16
  278. package/node_modules/commander/package.json +0 -84
  279. package/node_modules/commander/typings/esm.d.mts +0 -3
  280. package/node_modules/commander/typings/index.d.ts +0 -969
  281. package/node_modules/node-forge/.editorconfig +0 -17
  282. package/node_modules/node-forge/.eslintrc.js +0 -24
  283. package/node_modules/node-forge/.github/workflows/main.yaml +0 -96
  284. package/node_modules/node-forge/.istanbul.yml +0 -2
  285. package/node_modules/node-forge/.npmignore +0 -15
  286. package/node_modules/node-forge/CHANGELOG.md +0 -555
  287. package/node_modules/node-forge/CONTRIBUTING.md +0 -18
  288. package/node_modules/node-forge/LICENSE +0 -331
  289. package/node_modules/node-forge/README.md +0 -2071
  290. package/node_modules/node-forge/RELEASE.md +0 -19
  291. package/node_modules/node-forge/SECURITY.md +0 -5
  292. package/node_modules/node-forge/examples/create-cert.js +0 -110
  293. package/node_modules/node-forge/examples/create-csr.js +0 -66
  294. package/node_modules/node-forge/examples/create-pkcs12.js +0 -160
  295. package/node_modules/node-forge/examples/imap.js +0 -46
  296. package/node_modules/node-forge/examples/sign-p7.js +0 -115
  297. package/node_modules/node-forge/examples/tls.js +0 -189
  298. package/node_modules/node-forge/flash/PooledSocket.as +0 -18
  299. package/node_modules/node-forge/flash/README.md +0 -48
  300. package/node_modules/node-forge/flash/SocketEvent.as +0 -36
  301. package/node_modules/node-forge/flash/SocketPool.as +0 -754
  302. package/node_modules/node-forge/flash/mod_fsp/README +0 -135
  303. package/node_modules/node-forge/flash/mod_fsp/mod_fsp.c +0 -415
  304. package/node_modules/node-forge/flash/package.json +0 -28
  305. package/node_modules/node-forge/flash/policyserver.js +0 -65
  306. package/node_modules/node-forge/flash/policyserver.py +0 -112
  307. package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  308. package/node_modules/node-forge/karma-sauce.conf.js +0 -79
  309. package/node_modules/node-forge/karma.conf.js +0 -133
  310. package/node_modules/node-forge/lib/aes.js +0 -1091
  311. package/node_modules/node-forge/lib/aesCipherSuites.js +0 -282
  312. package/node_modules/node-forge/lib/asn1-validator.js +0 -91
  313. package/node_modules/node-forge/lib/asn1.js +0 -1503
  314. package/node_modules/node-forge/lib/baseN.js +0 -186
  315. package/node_modules/node-forge/lib/cipher.js +0 -230
  316. package/node_modules/node-forge/lib/cipherModes.js +0 -999
  317. package/node_modules/node-forge/lib/des.js +0 -496
  318. package/node_modules/node-forge/lib/ed25519.js +0 -1091
  319. package/node_modules/node-forge/lib/forge.js +0 -13
  320. package/node_modules/node-forge/lib/form.js +0 -149
  321. package/node_modules/node-forge/lib/hmac.js +0 -146
  322. package/node_modules/node-forge/lib/http.js +0 -1346
  323. package/node_modules/node-forge/lib/index.all.js +0 -16
  324. package/node_modules/node-forge/lib/index.js +0 -33
  325. package/node_modules/node-forge/lib/jsbn.js +0 -1294
  326. package/node_modules/node-forge/lib/kem.js +0 -168
  327. package/node_modules/node-forge/lib/log.js +0 -319
  328. package/node_modules/node-forge/lib/md.all.js +0 -13
  329. package/node_modules/node-forge/lib/md.js +0 -11
  330. package/node_modules/node-forge/lib/md5.js +0 -289
  331. package/node_modules/node-forge/lib/mgf.js +0 -12
  332. package/node_modules/node-forge/lib/mgf1.js +0 -57
  333. package/node_modules/node-forge/lib/oids.js +0 -180
  334. package/node_modules/node-forge/lib/pbe.js +0 -1023
  335. package/node_modules/node-forge/lib/pbkdf2.js +0 -211
  336. package/node_modules/node-forge/lib/pem.js +0 -237
  337. package/node_modules/node-forge/lib/pkcs1.js +0 -276
  338. package/node_modules/node-forge/lib/pkcs12.js +0 -1078
  339. package/node_modules/node-forge/lib/pkcs7.js +0 -1260
  340. package/node_modules/node-forge/lib/pkcs7asn1.js +0 -410
  341. package/node_modules/node-forge/lib/pki.js +0 -102
  342. package/node_modules/node-forge/lib/prime.js +0 -297
  343. package/node_modules/node-forge/lib/prime.worker.js +0 -168
  344. package/node_modules/node-forge/lib/prng.js +0 -419
  345. package/node_modules/node-forge/lib/pss.js +0 -241
  346. package/node_modules/node-forge/lib/random.js +0 -191
  347. package/node_modules/node-forge/lib/rc2.js +0 -410
  348. package/node_modules/node-forge/lib/rsa.js +0 -1973
  349. package/node_modules/node-forge/lib/sha1.js +0 -319
  350. package/node_modules/node-forge/lib/sha256.js +0 -327
  351. package/node_modules/node-forge/lib/sha512.js +0 -561
  352. package/node_modules/node-forge/lib/socket.js +0 -287
  353. package/node_modules/node-forge/lib/ssh.js +0 -236
  354. package/node_modules/node-forge/lib/tls.js +0 -4282
  355. package/node_modules/node-forge/lib/tlssocket.js +0 -249
  356. package/node_modules/node-forge/lib/util.js +0 -2652
  357. package/node_modules/node-forge/lib/x509.js +0 -3251
  358. package/node_modules/node-forge/lib/xhr.js +0 -738
  359. package/node_modules/node-forge/package.json +0 -123
  360. package/node_modules/node-forge/tests/.eslintrc.js +0 -5
  361. package/node_modules/node-forge/tests/README.md +0 -4
  362. package/node_modules/node-forge/tests/benchmarks/aes-speed.js +0 -62
  363. package/node_modules/node-forge/tests/benchmarks/so-44303784.js +0 -246
  364. package/node_modules/node-forge/tests/flash/README.md +0 -7
  365. package/node_modules/node-forge/tests/flash/Test.as +0 -96
  366. package/node_modules/node-forge/tests/flash/build-flash.xml +0 -7
  367. package/node_modules/node-forge/tests/flash/index.html +0 -28
  368. package/node_modules/node-forge/tests/index.html +0 -33
  369. package/node_modules/node-forge/tests/issues/heartbleed.js +0 -55
  370. package/node_modules/node-forge/tests/issues/issue-428.html +0 -95
  371. package/node_modules/node-forge/tests/issues/issue-428.js +0 -375
  372. package/node_modules/node-forge/tests/karma/index.js +0 -8
  373. package/node_modules/node-forge/tests/karma/testWorker.js +0 -65
  374. package/node_modules/node-forge/tests/karma/web-worker-rsa.js +0 -55
  375. package/node_modules/node-forge/tests/legacy/common.html +0 -65
  376. package/node_modules/node-forge/tests/legacy/common.js +0 -2199
  377. package/node_modules/node-forge/tests/legacy/form.html +0 -148
  378. package/node_modules/node-forge/tests/legacy/form.js +0 -40
  379. package/node_modules/node-forge/tests/legacy/http.html +0 -235
  380. package/node_modules/node-forge/tests/legacy/index.html +0 -70
  381. package/node_modules/node-forge/tests/legacy/keygen.html +0 -113
  382. package/node_modules/node-forge/tests/legacy/login.css +0 -26
  383. package/node_modules/node-forge/tests/legacy/loginDemo.html +0 -32
  384. package/node_modules/node-forge/tests/legacy/loginDemo.js +0 -149
  385. package/node_modules/node-forge/tests/legacy/performance.html +0 -533
  386. package/node_modules/node-forge/tests/legacy/result.txt +0 -1
  387. package/node_modules/node-forge/tests/legacy/socketPool.html +0 -302
  388. package/node_modules/node-forge/tests/legacy/tasks.html +0 -54
  389. package/node_modules/node-forge/tests/legacy/tasks.js +0 -378
  390. package/node_modules/node-forge/tests/legacy/tls.html +0 -389
  391. package/node_modules/node-forge/tests/legacy/webid.html +0 -89
  392. package/node_modules/node-forge/tests/legacy/webid.js +0 -313
  393. package/node_modules/node-forge/tests/legacy/ws-webid.js +0 -120
  394. package/node_modules/node-forge/tests/legacy/xhr.html +0 -67
  395. package/node_modules/node-forge/tests/legacy/xhr.js +0 -590
  396. package/node_modules/node-forge/tests/pocs/ghsa-2328-f5f3-gj25.js +0 -85
  397. package/node_modules/node-forge/tests/pocs/ghsa-ppp5-5v6c-4jwp.js +0 -166
  398. package/node_modules/node-forge/tests/pocs/ghsa-q67f-28xg-22rw.js +0 -103
  399. package/node_modules/node-forge/tests/security/cve-2025-12816.js +0 -75
  400. package/node_modules/node-forge/tests/security/ghsa-554w-wpv2-vw27.js +0 -81
  401. package/node_modules/node-forge/tests/security/index.js +0 -3
  402. package/node_modules/node-forge/tests/server.crt +0 -26
  403. package/node_modules/node-forge/tests/server.js +0 -87
  404. package/node_modules/node-forge/tests/server.key +0 -27
  405. package/node_modules/node-forge/tests/support/task.js +0 -718
  406. package/node_modules/node-forge/tests/tests.css +0 -61
  407. package/node_modules/node-forge/tests/unit/aes.js +0 -1498
  408. package/node_modules/node-forge/tests/unit/asn1.js +0 -1337
  409. package/node_modules/node-forge/tests/unit/csr.js +0 -129
  410. package/node_modules/node-forge/tests/unit/des.js +0 -231
  411. package/node_modules/node-forge/tests/unit/ed25519.js +0 -395
  412. package/node_modules/node-forge/tests/unit/forge.js +0 -2
  413. package/node_modules/node-forge/tests/unit/hmac.js +0 -64
  414. package/node_modules/node-forge/tests/unit/index.html +0 -20
  415. package/node_modules/node-forge/tests/unit/index.js +0 -27
  416. package/node_modules/node-forge/tests/unit/jsbn.js +0 -40
  417. package/node_modules/node-forge/tests/unit/kem.js +0 -167
  418. package/node_modules/node-forge/tests/unit/md5.js +0 -114
  419. package/node_modules/node-forge/tests/unit/mgf1.js +0 -16
  420. package/node_modules/node-forge/tests/unit/pbkdf2.js +0 -182
  421. package/node_modules/node-forge/tests/unit/pem.js +0 -159
  422. package/node_modules/node-forge/tests/unit/pkcs1.js +0 -1077
  423. package/node_modules/node-forge/tests/unit/pkcs12.js +0 -739
  424. package/node_modules/node-forge/tests/unit/pkcs7.js +0 -792
  425. package/node_modules/node-forge/tests/unit/random.js +0 -48
  426. package/node_modules/node-forge/tests/unit/rc2.js +0 -88
  427. package/node_modules/node-forge/tests/unit/rsa.js +0 -1278
  428. package/node_modules/node-forge/tests/unit/sha1.js +0 -72
  429. package/node_modules/node-forge/tests/unit/sha256.js +0 -79
  430. package/node_modules/node-forge/tests/unit/sha512.js +0 -200
  431. package/node_modules/node-forge/tests/unit/ssh.js +0 -175
  432. package/node_modules/node-forge/tests/unit/tls.js +0 -175
  433. package/node_modules/node-forge/tests/unit/util.js +0 -595
  434. package/node_modules/node-forge/tests/unit/x509.js +0 -1986
  435. package/node_modules/node-forge/tests/websockets/server-webid.js +0 -495
  436. package/node_modules/node-forge/tests/websockets/server-ws.js +0 -158
  437. package/node_modules/node-forge/webpack-tests.config.js +0 -26
  438. package/node_modules/node-forge/webpack.config.js +0 -130
  439. package/node_modules/zod/LICENSE +0 -21
  440. package/node_modules/zod/README.md +0 -208
  441. package/node_modules/zod/index.cjs +0 -33
  442. package/node_modules/zod/index.d.cts +0 -4
  443. package/node_modules/zod/index.d.ts +0 -4
  444. package/node_modules/zod/index.js +0 -4
  445. package/node_modules/zod/package.json +0 -118
  446. package/node_modules/zod/src/index.ts +0 -4
  447. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  448. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  449. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  450. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  451. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  452. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  453. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  454. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  455. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  456. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  457. package/node_modules/zod/src/v3/errors.ts +0 -13
  458. package/node_modules/zod/src/v3/external.ts +0 -6
  459. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  460. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  461. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  462. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  463. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  464. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  465. package/node_modules/zod/src/v3/index.ts +0 -4
  466. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  467. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  468. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  469. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  470. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  471. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  472. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  473. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  474. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  475. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  476. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  477. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  478. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  479. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  480. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  481. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  482. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  483. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  484. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  485. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  486. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  487. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  488. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  489. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  490. package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  491. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  492. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  493. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  494. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  495. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  496. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  497. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  498. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  499. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  500. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  501. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  502. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  503. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  504. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  505. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  506. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  507. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  508. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  509. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  510. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  511. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  512. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  513. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  514. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  515. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  516. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  517. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  518. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  519. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  520. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  521. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  522. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  523. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  524. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  525. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  526. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  527. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  528. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  529. package/node_modules/zod/src/v3/types.ts +0 -5136
  530. package/node_modules/zod/src/v4/classic/checks.ts +0 -30
  531. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  532. package/node_modules/zod/src/v4/classic/compat.ts +0 -66
  533. package/node_modules/zod/src/v4/classic/errors.ts +0 -75
  534. package/node_modules/zod/src/v4/classic/external.ts +0 -50
  535. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  536. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  537. package/node_modules/zod/src/v4/classic/parse.ts +0 -33
  538. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  539. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  540. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  541. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  542. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  543. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  544. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  545. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  546. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  547. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  548. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  549. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  550. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  551. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  552. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  553. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  554. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  555. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  556. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  557. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  558. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  559. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  560. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  561. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  562. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  563. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  564. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  565. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  566. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  567. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  568. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  569. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  570. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  571. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  572. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  573. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  574. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  575. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  576. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  577. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  578. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  579. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  580. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  581. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  582. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  583. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  584. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  585. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  586. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  587. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  588. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  589. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  590. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  591. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  592. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  593. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  594. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  595. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  596. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  597. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  598. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  599. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  600. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  601. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  602. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  603. package/node_modules/zod/src/v4/core/api.ts +0 -1594
  604. package/node_modules/zod/src/v4/core/checks.ts +0 -1283
  605. package/node_modules/zod/src/v4/core/config.ts +0 -15
  606. package/node_modules/zod/src/v4/core/core.ts +0 -134
  607. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  608. package/node_modules/zod/src/v4/core/errors.ts +0 -424
  609. package/node_modules/zod/src/v4/core/function.ts +0 -176
  610. package/node_modules/zod/src/v4/core/index.ts +0 -15
  611. package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  612. package/node_modules/zod/src/v4/core/parse.ts +0 -94
  613. package/node_modules/zod/src/v4/core/regexes.ts +0 -135
  614. package/node_modules/zod/src/v4/core/registries.ts +0 -96
  615. package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  616. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  617. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  618. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  619. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  620. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  621. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  622. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  623. package/node_modules/zod/src/v4/core/util.ts +0 -775
  624. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  625. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  626. package/node_modules/zod/src/v4/index.ts +0 -4
  627. package/node_modules/zod/src/v4/locales/ar.ts +0 -125
  628. package/node_modules/zod/src/v4/locales/az.ts +0 -121
  629. package/node_modules/zod/src/v4/locales/be.ts +0 -184
  630. package/node_modules/zod/src/v4/locales/ca.ts +0 -127
  631. package/node_modules/zod/src/v4/locales/cs.ts +0 -142
  632. package/node_modules/zod/src/v4/locales/de.ts +0 -124
  633. package/node_modules/zod/src/v4/locales/en.ts +0 -127
  634. package/node_modules/zod/src/v4/locales/eo.ts +0 -125
  635. package/node_modules/zod/src/v4/locales/es.ts +0 -125
  636. package/node_modules/zod/src/v4/locales/fa.ts +0 -134
  637. package/node_modules/zod/src/v4/locales/fi.ts +0 -131
  638. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  639. package/node_modules/zod/src/v4/locales/fr.ts +0 -124
  640. package/node_modules/zod/src/v4/locales/he.ts +0 -125
  641. package/node_modules/zod/src/v4/locales/hu.ts +0 -126
  642. package/node_modules/zod/src/v4/locales/id.ts +0 -125
  643. package/node_modules/zod/src/v4/locales/index.ts +0 -39
  644. package/node_modules/zod/src/v4/locales/it.ts +0 -125
  645. package/node_modules/zod/src/v4/locales/ja.ts +0 -122
  646. package/node_modules/zod/src/v4/locales/kh.ts +0 -126
  647. package/node_modules/zod/src/v4/locales/ko.ts +0 -131
  648. package/node_modules/zod/src/v4/locales/mk.ts +0 -127
  649. package/node_modules/zod/src/v4/locales/ms.ts +0 -124
  650. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  651. package/node_modules/zod/src/v4/locales/no.ts +0 -124
  652. package/node_modules/zod/src/v4/locales/ota.ts +0 -125
  653. package/node_modules/zod/src/v4/locales/pl.ts +0 -126
  654. package/node_modules/zod/src/v4/locales/ps.ts +0 -133
  655. package/node_modules/zod/src/v4/locales/pt.ts +0 -123
  656. package/node_modules/zod/src/v4/locales/ru.ts +0 -184
  657. package/node_modules/zod/src/v4/locales/sl.ts +0 -126
  658. package/node_modules/zod/src/v4/locales/sv.ts +0 -127
  659. package/node_modules/zod/src/v4/locales/ta.ts +0 -125
  660. package/node_modules/zod/src/v4/locales/th.ts +0 -126
  661. package/node_modules/zod/src/v4/locales/tr.ts +0 -121
  662. package/node_modules/zod/src/v4/locales/ua.ts +0 -126
  663. package/node_modules/zod/src/v4/locales/ur.ts +0 -126
  664. package/node_modules/zod/src/v4/locales/vi.ts +0 -125
  665. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  666. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  667. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  668. package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  669. package/node_modules/zod/src/v4/mini/external.ts +0 -40
  670. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  671. package/node_modules/zod/src/v4/mini/iso.ts +0 -62
  672. package/node_modules/zod/src/v4/mini/parse.ts +0 -1
  673. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  674. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  675. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  676. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  677. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  678. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  679. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  680. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  681. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  682. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  683. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  684. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  685. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  686. package/node_modules/zod/src/v4-mini/index.ts +0 -1
  687. package/node_modules/zod/v3/ZodError.cjs +0 -138
  688. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  689. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  690. package/node_modules/zod/v3/ZodError.js +0 -133
  691. package/node_modules/zod/v3/errors.cjs +0 -17
  692. package/node_modules/zod/v3/errors.d.cts +0 -5
  693. package/node_modules/zod/v3/errors.d.ts +0 -5
  694. package/node_modules/zod/v3/errors.js +0 -9
  695. package/node_modules/zod/v3/external.cjs +0 -22
  696. package/node_modules/zod/v3/external.d.cts +0 -6
  697. package/node_modules/zod/v3/external.d.ts +0 -6
  698. package/node_modules/zod/v3/external.js +0 -6
  699. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  700. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  701. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  702. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  703. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  704. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  705. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  706. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  707. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  708. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  709. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  710. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  711. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  712. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  713. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  714. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  715. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  716. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  717. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  718. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  719. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  720. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  721. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  722. package/node_modules/zod/v3/helpers/util.js +0 -133
  723. package/node_modules/zod/v3/index.cjs +0 -33
  724. package/node_modules/zod/v3/index.d.cts +0 -4
  725. package/node_modules/zod/v3/index.d.ts +0 -4
  726. package/node_modules/zod/v3/index.js +0 -4
  727. package/node_modules/zod/v3/locales/en.cjs +0 -111
  728. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  729. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  730. package/node_modules/zod/v3/locales/en.js +0 -109
  731. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  732. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  733. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  734. package/node_modules/zod/v3/standard-schema.js +0 -1
  735. package/node_modules/zod/v3/types.cjs +0 -3775
  736. package/node_modules/zod/v3/types.d.cts +0 -1031
  737. package/node_modules/zod/v3/types.d.ts +0 -1031
  738. package/node_modules/zod/v3/types.js +0 -3693
  739. package/node_modules/zod/v4/classic/checks.cjs +0 -32
  740. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  741. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  742. package/node_modules/zod/v4/classic/checks.js +0 -1
  743. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  744. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  745. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  746. package/node_modules/zod/v4/classic/coerce.js +0 -17
  747. package/node_modules/zod/v4/classic/compat.cjs +0 -57
  748. package/node_modules/zod/v4/classic/compat.d.cts +0 -46
  749. package/node_modules/zod/v4/classic/compat.d.ts +0 -46
  750. package/node_modules/zod/v4/classic/compat.js +0 -27
  751. package/node_modules/zod/v4/classic/errors.cjs +0 -67
  752. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  753. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  754. package/node_modules/zod/v4/classic/errors.js +0 -41
  755. package/node_modules/zod/v4/classic/external.cjs +0 -70
  756. package/node_modules/zod/v4/classic/external.d.cts +0 -13
  757. package/node_modules/zod/v4/classic/external.d.ts +0 -13
  758. package/node_modules/zod/v4/classic/external.js +0 -18
  759. package/node_modules/zod/v4/classic/index.cjs +0 -33
  760. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  761. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  762. package/node_modules/zod/v4/classic/index.js +0 -4
  763. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  764. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  765. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  766. package/node_modules/zod/v4/classic/iso.js +0 -30
  767. package/node_modules/zod/v4/classic/parse.cjs +0 -32
  768. package/node_modules/zod/v4/classic/parse.d.cts +0 -23
  769. package/node_modules/zod/v4/classic/parse.d.ts +0 -23
  770. package/node_modules/zod/v4/classic/parse.js +0 -6
  771. package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  772. package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  773. package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  774. package/node_modules/zod/v4/classic/schemas.js +0 -1006
  775. package/node_modules/zod/v4/core/api.cjs +0 -1039
  776. package/node_modules/zod/v4/core/api.d.cts +0 -284
  777. package/node_modules/zod/v4/core/api.d.ts +0 -284
  778. package/node_modules/zod/v4/core/api.js +0 -906
  779. package/node_modules/zod/v4/core/checks.cjs +0 -591
  780. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  781. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  782. package/node_modules/zod/v4/core/checks.js +0 -565
  783. package/node_modules/zod/v4/core/core.cjs +0 -67
  784. package/node_modules/zod/v4/core/core.d.cts +0 -49
  785. package/node_modules/zod/v4/core/core.d.ts +0 -49
  786. package/node_modules/zod/v4/core/core.js +0 -61
  787. package/node_modules/zod/v4/core/doc.cjs +0 -39
  788. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  789. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  790. package/node_modules/zod/v4/core/doc.js +0 -35
  791. package/node_modules/zod/v4/core/errors.cjs +0 -226
  792. package/node_modules/zod/v4/core/errors.d.cts +0 -208
  793. package/node_modules/zod/v4/core/errors.d.ts +0 -208
  794. package/node_modules/zod/v4/core/errors.js +0 -195
  795. package/node_modules/zod/v4/core/function.cjs +0 -102
  796. package/node_modules/zod/v4/core/function.d.cts +0 -52
  797. package/node_modules/zod/v4/core/function.d.ts +0 -52
  798. package/node_modules/zod/v4/core/function.js +0 -75
  799. package/node_modules/zod/v4/core/index.cjs +0 -44
  800. package/node_modules/zod/v4/core/index.d.cts +0 -15
  801. package/node_modules/zod/v4/core/index.d.ts +0 -15
  802. package/node_modules/zod/v4/core/index.js +0 -15
  803. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  804. package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  805. package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  806. package/node_modules/zod/v4/core/json-schema.js +0 -1
  807. package/node_modules/zod/v4/core/parse.cjs +0 -87
  808. package/node_modules/zod/v4/core/parse.d.cts +0 -25
  809. package/node_modules/zod/v4/core/parse.d.ts +0 -25
  810. package/node_modules/zod/v4/core/parse.js +0 -57
  811. package/node_modules/zod/v4/core/regexes.cjs +0 -103
  812. package/node_modules/zod/v4/core/regexes.d.cts +0 -62
  813. package/node_modules/zod/v4/core/regexes.d.ts +0 -62
  814. package/node_modules/zod/v4/core/regexes.js +0 -95
  815. package/node_modules/zod/v4/core/registries.cjs +0 -56
  816. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  817. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  818. package/node_modules/zod/v4/core/registries.js +0 -51
  819. package/node_modules/zod/v4/core/schemas.cjs +0 -1748
  820. package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  821. package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  822. package/node_modules/zod/v4/core/schemas.js +0 -1717
  823. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  824. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  825. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  826. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  827. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  828. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  829. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  830. package/node_modules/zod/v4/core/to-json-schema.js +0 -849
  831. package/node_modules/zod/v4/core/util.cjs +0 -539
  832. package/node_modules/zod/v4/core/util.d.cts +0 -183
  833. package/node_modules/zod/v4/core/util.d.ts +0 -183
  834. package/node_modules/zod/v4/core/util.js +0 -493
  835. package/node_modules/zod/v4/core/versions.cjs +0 -8
  836. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  837. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  838. package/node_modules/zod/v4/core/versions.js +0 -5
  839. package/node_modules/zod/v4/index.cjs +0 -22
  840. package/node_modules/zod/v4/index.d.cts +0 -3
  841. package/node_modules/zod/v4/index.d.ts +0 -3
  842. package/node_modules/zod/v4/index.js +0 -3
  843. package/node_modules/zod/v4/locales/ar.cjs +0 -142
  844. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  845. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  846. package/node_modules/zod/v4/locales/ar.js +0 -116
  847. package/node_modules/zod/v4/locales/az.cjs +0 -141
  848. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  849. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  850. package/node_modules/zod/v4/locales/az.js +0 -115
  851. package/node_modules/zod/v4/locales/be.cjs +0 -190
  852. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  853. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  854. package/node_modules/zod/v4/locales/be.js +0 -164
  855. package/node_modules/zod/v4/locales/ca.cjs +0 -144
  856. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  857. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  858. package/node_modules/zod/v4/locales/ca.js +0 -118
  859. package/node_modules/zod/v4/locales/cs.cjs +0 -161
  860. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  861. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  862. package/node_modules/zod/v4/locales/cs.js +0 -135
  863. package/node_modules/zod/v4/locales/de.cjs +0 -142
  864. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  865. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  866. package/node_modules/zod/v4/locales/de.js +0 -116
  867. package/node_modules/zod/v4/locales/en.cjs +0 -145
  868. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  869. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  870. package/node_modules/zod/v4/locales/en.js +0 -117
  871. package/node_modules/zod/v4/locales/eo.cjs +0 -144
  872. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  873. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  874. package/node_modules/zod/v4/locales/eo.js +0 -116
  875. package/node_modules/zod/v4/locales/es.cjs +0 -143
  876. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  877. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  878. package/node_modules/zod/v4/locales/es.js +0 -117
  879. package/node_modules/zod/v4/locales/fa.cjs +0 -148
  880. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  881. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  882. package/node_modules/zod/v4/locales/fa.js +0 -122
  883. package/node_modules/zod/v4/locales/fi.cjs +0 -148
  884. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  885. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  886. package/node_modules/zod/v4/locales/fi.js +0 -122
  887. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  888. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  889. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  890. package/node_modules/zod/v4/locales/fr-CA.js +0 -117
  891. package/node_modules/zod/v4/locales/fr.cjs +0 -142
  892. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  893. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  894. package/node_modules/zod/v4/locales/fr.js +0 -116
  895. package/node_modules/zod/v4/locales/he.cjs +0 -143
  896. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  897. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  898. package/node_modules/zod/v4/locales/he.js +0 -117
  899. package/node_modules/zod/v4/locales/hu.cjs +0 -143
  900. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  901. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  902. package/node_modules/zod/v4/locales/hu.js +0 -117
  903. package/node_modules/zod/v4/locales/id.cjs +0 -142
  904. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  905. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  906. package/node_modules/zod/v4/locales/id.js +0 -116
  907. package/node_modules/zod/v4/locales/index.cjs +0 -84
  908. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  909. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  910. package/node_modules/zod/v4/locales/index.js +0 -39
  911. package/node_modules/zod/v4/locales/it.cjs +0 -143
  912. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  913. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  914. package/node_modules/zod/v4/locales/it.js +0 -117
  915. package/node_modules/zod/v4/locales/ja.cjs +0 -141
  916. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  917. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  918. package/node_modules/zod/v4/locales/ja.js +0 -115
  919. package/node_modules/zod/v4/locales/kh.cjs +0 -143
  920. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  921. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  922. package/node_modules/zod/v4/locales/kh.js +0 -117
  923. package/node_modules/zod/v4/locales/ko.cjs +0 -147
  924. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  925. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  926. package/node_modules/zod/v4/locales/ko.js +0 -121
  927. package/node_modules/zod/v4/locales/mk.cjs +0 -144
  928. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  929. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  930. package/node_modules/zod/v4/locales/mk.js +0 -118
  931. package/node_modules/zod/v4/locales/ms.cjs +0 -142
  932. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  933. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  934. package/node_modules/zod/v4/locales/ms.js +0 -116
  935. package/node_modules/zod/v4/locales/nl.cjs +0 -143
  936. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  937. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  938. package/node_modules/zod/v4/locales/nl.js +0 -117
  939. package/node_modules/zod/v4/locales/no.cjs +0 -142
  940. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  941. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  942. package/node_modules/zod/v4/locales/no.js +0 -116
  943. package/node_modules/zod/v4/locales/ota.cjs +0 -143
  944. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  945. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  946. package/node_modules/zod/v4/locales/ota.js +0 -117
  947. package/node_modules/zod/v4/locales/pl.cjs +0 -143
  948. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  949. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  950. package/node_modules/zod/v4/locales/pl.js +0 -117
  951. package/node_modules/zod/v4/locales/ps.cjs +0 -148
  952. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  953. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  954. package/node_modules/zod/v4/locales/ps.js +0 -122
  955. package/node_modules/zod/v4/locales/pt.cjs +0 -142
  956. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  957. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  958. package/node_modules/zod/v4/locales/pt.js +0 -116
  959. package/node_modules/zod/v4/locales/ru.cjs +0 -190
  960. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  961. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  962. package/node_modules/zod/v4/locales/ru.js +0 -164
  963. package/node_modules/zod/v4/locales/sl.cjs +0 -143
  964. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  965. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  966. package/node_modules/zod/v4/locales/sl.js +0 -117
  967. package/node_modules/zod/v4/locales/sv.cjs +0 -144
  968. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  969. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  970. package/node_modules/zod/v4/locales/sv.js +0 -118
  971. package/node_modules/zod/v4/locales/ta.cjs +0 -143
  972. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  973. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  974. package/node_modules/zod/v4/locales/ta.js +0 -117
  975. package/node_modules/zod/v4/locales/th.cjs +0 -143
  976. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  977. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  978. package/node_modules/zod/v4/locales/th.js +0 -117
  979. package/node_modules/zod/v4/locales/tr.cjs +0 -143
  980. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  981. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  982. package/node_modules/zod/v4/locales/tr.js +0 -115
  983. package/node_modules/zod/v4/locales/ua.cjs +0 -143
  984. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  985. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  986. package/node_modules/zod/v4/locales/ua.js +0 -117
  987. package/node_modules/zod/v4/locales/ur.cjs +0 -143
  988. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  989. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  990. package/node_modules/zod/v4/locales/ur.js +0 -117
  991. package/node_modules/zod/v4/locales/vi.cjs +0 -142
  992. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  993. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  994. package/node_modules/zod/v4/locales/vi.js +0 -116
  995. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  996. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  997. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  998. package/node_modules/zod/v4/locales/zh-CN.js +0 -116
  999. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  1000. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  1001. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1002. package/node_modules/zod/v4/locales/zh-TW.js +0 -117
  1003. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  1004. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1005. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1006. package/node_modules/zod/v4/mini/checks.js +0 -1
  1007. package/node_modules/zod/v4/mini/coerce.cjs +0 -47
  1008. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1009. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1010. package/node_modules/zod/v4/mini/coerce.js +0 -17
  1011. package/node_modules/zod/v4/mini/external.cjs +0 -62
  1012. package/node_modules/zod/v4/mini/external.d.cts +0 -11
  1013. package/node_modules/zod/v4/mini/external.d.ts +0 -11
  1014. package/node_modules/zod/v4/mini/external.js +0 -13
  1015. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1016. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1017. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1018. package/node_modules/zod/v4/mini/index.js +0 -3
  1019. package/node_modules/zod/v4/mini/iso.cjs +0 -60
  1020. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1021. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1022. package/node_modules/zod/v4/mini/iso.js +0 -30
  1023. package/node_modules/zod/v4/mini/parse.cjs +0 -8
  1024. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1025. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1026. package/node_modules/zod/v4/mini/parse.js +0 -1
  1027. package/node_modules/zod/v4/mini/schemas.cjs +0 -839
  1028. package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  1029. package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  1030. package/node_modules/zod/v4/mini/schemas.js +0 -732
  1031. package/node_modules/zod/v4-mini/index.cjs +0 -17
  1032. package/node_modules/zod/v4-mini/index.d.cts +0 -1
  1033. package/node_modules/zod/v4-mini/index.d.ts +0 -1
  1034. package/node_modules/zod/v4-mini/index.js +0 -1
@@ -1,1294 +0,0 @@
1
- // Copyright (c) 2005 Tom Wu
2
- // All Rights Reserved.
3
- // See "LICENSE" for details.
4
-
5
- // Basic JavaScript BN library - subset useful for RSA encryption.
6
-
7
- /*
8
- Licensing (LICENSE)
9
- -------------------
10
-
11
- This software is covered under the following copyright:
12
- */
13
- /*
14
- * Copyright (c) 2003-2005 Tom Wu
15
- * All Rights Reserved.
16
- *
17
- * Permission is hereby granted, free of charge, to any person obtaining
18
- * a copy of this software and associated documentation files (the
19
- * "Software"), to deal in the Software without restriction, including
20
- * without limitation the rights to use, copy, modify, merge, publish,
21
- * distribute, sublicense, and/or sell copies of the Software, and to
22
- * permit persons to whom the Software is furnished to do so, subject to
23
- * the following conditions:
24
- *
25
- * The above copyright notice and this permission notice shall be
26
- * included in all copies or substantial portions of the Software.
27
- *
28
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
29
- * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
30
- * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
31
- *
32
- * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
33
- * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
34
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
35
- * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
36
- * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
37
- *
38
- * In addition, the following condition applies:
39
- *
40
- * All redistributions must retain an intact copy of this copyright notice
41
- * and disclaimer.
42
- */
43
- /*
44
- Address all questions regarding this license to:
45
-
46
- Tom Wu
47
- tjw@cs.Stanford.EDU
48
- */
49
- var forge = require('./forge');
50
-
51
- module.exports = forge.jsbn = forge.jsbn || {};
52
-
53
- // Bits per digit
54
- var dbits;
55
-
56
- // JavaScript engine analysis
57
- var canary = 0xdeadbeefcafe;
58
- var j_lm = ((canary&0xffffff)==0xefcafe);
59
-
60
- // (public) Constructor
61
- function BigInteger(a,b,c) {
62
- this.data = [];
63
- if(a != null)
64
- if("number" == typeof a) this.fromNumber(a,b,c);
65
- else if(b == null && "string" != typeof a) this.fromString(a,256);
66
- else this.fromString(a,b);
67
- }
68
- forge.jsbn.BigInteger = BigInteger;
69
-
70
- // return new, unset BigInteger
71
- function nbi() { return new BigInteger(null); }
72
-
73
- // am: Compute w_j += (x*this_i), propagate carries,
74
- // c is initial carry, returns final carry.
75
- // c < 3*dvalue, x < 2*dvalue, this_i < dvalue
76
- // We need to select the fastest one that works in this environment.
77
-
78
- // am1: use a single mult and divide to get the high bits,
79
- // max digit bits should be 26 because
80
- // max internal value = 2*dvalue^2-2*dvalue (< 2^53)
81
- function am1(i,x,w,j,c,n) {
82
- while(--n >= 0) {
83
- var v = x*this.data[i++]+w.data[j]+c;
84
- c = Math.floor(v/0x4000000);
85
- w.data[j++] = v&0x3ffffff;
86
- }
87
- return c;
88
- }
89
- // am2 avoids a big mult-and-extract completely.
90
- // Max digit bits should be <= 30 because we do bitwise ops
91
- // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)
92
- function am2(i,x,w,j,c,n) {
93
- var xl = x&0x7fff, xh = x>>15;
94
- while(--n >= 0) {
95
- var l = this.data[i]&0x7fff;
96
- var h = this.data[i++]>>15;
97
- var m = xh*l+h*xl;
98
- l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff);
99
- c = (l>>>30)+(m>>>15)+xh*h+(c>>>30);
100
- w.data[j++] = l&0x3fffffff;
101
- }
102
- return c;
103
- }
104
- // Alternately, set max digit bits to 28 since some
105
- // browsers slow down when dealing with 32-bit numbers.
106
- function am3(i,x,w,j,c,n) {
107
- var xl = x&0x3fff, xh = x>>14;
108
- while(--n >= 0) {
109
- var l = this.data[i]&0x3fff;
110
- var h = this.data[i++]>>14;
111
- var m = xh*l+h*xl;
112
- l = xl*l+((m&0x3fff)<<14)+w.data[j]+c;
113
- c = (l>>28)+(m>>14)+xh*h;
114
- w.data[j++] = l&0xfffffff;
115
- }
116
- return c;
117
- }
118
-
119
- // node.js (no browser)
120
- if(typeof(navigator) === 'undefined')
121
- {
122
- BigInteger.prototype.am = am3;
123
- dbits = 28;
124
- } else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) {
125
- BigInteger.prototype.am = am2;
126
- dbits = 30;
127
- }
128
- else if(j_lm && (navigator.appName != "Netscape")) {
129
- BigInteger.prototype.am = am1;
130
- dbits = 26;
131
- }
132
- else { // Mozilla/Netscape seems to prefer am3
133
- BigInteger.prototype.am = am3;
134
- dbits = 28;
135
- }
136
-
137
- BigInteger.prototype.DB = dbits;
138
- BigInteger.prototype.DM = ((1<<dbits)-1);
139
- BigInteger.prototype.DV = (1<<dbits);
140
-
141
- var BI_FP = 52;
142
- BigInteger.prototype.FV = Math.pow(2,BI_FP);
143
- BigInteger.prototype.F1 = BI_FP-dbits;
144
- BigInteger.prototype.F2 = 2*dbits-BI_FP;
145
-
146
- // Digit conversions
147
- var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
148
- var BI_RC = new Array();
149
- var rr,vv;
150
- rr = "0".charCodeAt(0);
151
- for(vv = 0; vv <= 9; ++vv) BI_RC[rr++] = vv;
152
- rr = "a".charCodeAt(0);
153
- for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
154
- rr = "A".charCodeAt(0);
155
- for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
156
-
157
- function int2char(n) { return BI_RM.charAt(n); }
158
- function intAt(s,i) {
159
- var c = BI_RC[s.charCodeAt(i)];
160
- return (c==null)?-1:c;
161
- }
162
-
163
- // (protected) copy this to r
164
- function bnpCopyTo(r) {
165
- for(var i = this.t-1; i >= 0; --i) r.data[i] = this.data[i];
166
- r.t = this.t;
167
- r.s = this.s;
168
- }
169
-
170
- // (protected) set from integer value x, -DV <= x < DV
171
- function bnpFromInt(x) {
172
- this.t = 1;
173
- this.s = (x<0)?-1:0;
174
- if(x > 0) this.data[0] = x;
175
- else if(x < -1) this.data[0] = x+this.DV;
176
- else this.t = 0;
177
- }
178
-
179
- // return bigint initialized to value
180
- function nbv(i) { var r = nbi(); r.fromInt(i); return r; }
181
-
182
- // (protected) set from string and radix
183
- function bnpFromString(s,b) {
184
- var k;
185
- if(b == 16) k = 4;
186
- else if(b == 8) k = 3;
187
- else if(b == 256) k = 8; // byte array
188
- else if(b == 2) k = 1;
189
- else if(b == 32) k = 5;
190
- else if(b == 4) k = 2;
191
- else { this.fromRadix(s,b); return; }
192
- this.t = 0;
193
- this.s = 0;
194
- var i = s.length, mi = false, sh = 0;
195
- while(--i >= 0) {
196
- var x = (k==8)?s[i]&0xff:intAt(s,i);
197
- if(x < 0) {
198
- if(s.charAt(i) == "-") mi = true;
199
- continue;
200
- }
201
- mi = false;
202
- if(sh == 0)
203
- this.data[this.t++] = x;
204
- else if(sh+k > this.DB) {
205
- this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<<sh;
206
- this.data[this.t++] = (x>>(this.DB-sh));
207
- }
208
- else
209
- this.data[this.t-1] |= x<<sh;
210
- sh += k;
211
- if(sh >= this.DB) sh -= this.DB;
212
- }
213
- if(k == 8 && (s[0]&0x80) != 0) {
214
- this.s = -1;
215
- if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)<<sh;
216
- }
217
- this.clamp();
218
- if(mi) BigInteger.ZERO.subTo(this,this);
219
- }
220
-
221
- // (protected) clamp off excess high words
222
- function bnpClamp() {
223
- var c = this.s&this.DM;
224
- while(this.t > 0 && this.data[this.t-1] == c) --this.t;
225
- }
226
-
227
- // (public) return string representation in given radix
228
- function bnToString(b) {
229
- if(this.s < 0) return "-"+this.negate().toString(b);
230
- var k;
231
- if(b == 16) k = 4;
232
- else if(b == 8) k = 3;
233
- else if(b == 2) k = 1;
234
- else if(b == 32) k = 5;
235
- else if(b == 4) k = 2;
236
- else return this.toRadix(b);
237
- var km = (1<<k)-1, d, m = false, r = "", i = this.t;
238
- var p = this.DB-(i*this.DB)%k;
239
- if(i-- > 0) {
240
- if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); }
241
- while(i >= 0) {
242
- if(p < k) {
243
- d = (this.data[i]&((1<<p)-1))<<(k-p);
244
- d |= this.data[--i]>>(p+=this.DB-k);
245
- }
246
- else {
247
- d = (this.data[i]>>(p-=k))&km;
248
- if(p <= 0) { p += this.DB; --i; }
249
- }
250
- if(d > 0) m = true;
251
- if(m) r += int2char(d);
252
- }
253
- }
254
- return m?r:"0";
255
- }
256
-
257
- // (public) -this
258
- function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
259
-
260
- // (public) |this|
261
- function bnAbs() { return (this.s<0)?this.negate():this; }
262
-
263
- // (public) return + if this > a, - if this < a, 0 if equal
264
- function bnCompareTo(a) {
265
- var r = this.s-a.s;
266
- if(r != 0) return r;
267
- var i = this.t;
268
- r = i-a.t;
269
- if(r != 0) return (this.s<0)?-r:r;
270
- while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r;
271
- return 0;
272
- }
273
-
274
- // returns bit length of the integer x
275
- function nbits(x) {
276
- var r = 1, t;
277
- if((t=x>>>16) != 0) { x = t; r += 16; }
278
- if((t=x>>8) != 0) { x = t; r += 8; }
279
- if((t=x>>4) != 0) { x = t; r += 4; }
280
- if((t=x>>2) != 0) { x = t; r += 2; }
281
- if((t=x>>1) != 0) { x = t; r += 1; }
282
- return r;
283
- }
284
-
285
- // (public) return the number of bits in "this"
286
- function bnBitLength() {
287
- if(this.t <= 0) return 0;
288
- return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM));
289
- }
290
-
291
- // (protected) r = this << n*DB
292
- function bnpDLShiftTo(n,r) {
293
- var i;
294
- for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i];
295
- for(i = n-1; i >= 0; --i) r.data[i] = 0;
296
- r.t = this.t+n;
297
- r.s = this.s;
298
- }
299
-
300
- // (protected) r = this >> n*DB
301
- function bnpDRShiftTo(n,r) {
302
- for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i];
303
- r.t = Math.max(this.t-n,0);
304
- r.s = this.s;
305
- }
306
-
307
- // (protected) r = this << n
308
- function bnpLShiftTo(n,r) {
309
- var bs = n%this.DB;
310
- var cbs = this.DB-bs;
311
- var bm = (1<<cbs)-1;
312
- var ds = Math.floor(n/this.DB), c = (this.s<<bs)&this.DM, i;
313
- for(i = this.t-1; i >= 0; --i) {
314
- r.data[i+ds+1] = (this.data[i]>>cbs)|c;
315
- c = (this.data[i]&bm)<<bs;
316
- }
317
- for(i = ds-1; i >= 0; --i) r.data[i] = 0;
318
- r.data[ds] = c;
319
- r.t = this.t+ds+1;
320
- r.s = this.s;
321
- r.clamp();
322
- }
323
-
324
- // (protected) r = this >> n
325
- function bnpRShiftTo(n,r) {
326
- r.s = this.s;
327
- var ds = Math.floor(n/this.DB);
328
- if(ds >= this.t) { r.t = 0; return; }
329
- var bs = n%this.DB;
330
- var cbs = this.DB-bs;
331
- var bm = (1<<bs)-1;
332
- r.data[0] = this.data[ds]>>bs;
333
- for(var i = ds+1; i < this.t; ++i) {
334
- r.data[i-ds-1] |= (this.data[i]&bm)<<cbs;
335
- r.data[i-ds] = this.data[i]>>bs;
336
- }
337
- if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<<cbs;
338
- r.t = this.t-ds;
339
- r.clamp();
340
- }
341
-
342
- // (protected) r = this - a
343
- function bnpSubTo(a,r) {
344
- var i = 0, c = 0, m = Math.min(a.t,this.t);
345
- while(i < m) {
346
- c += this.data[i]-a.data[i];
347
- r.data[i++] = c&this.DM;
348
- c >>= this.DB;
349
- }
350
- if(a.t < this.t) {
351
- c -= a.s;
352
- while(i < this.t) {
353
- c += this.data[i];
354
- r.data[i++] = c&this.DM;
355
- c >>= this.DB;
356
- }
357
- c += this.s;
358
- }
359
- else {
360
- c += this.s;
361
- while(i < a.t) {
362
- c -= a.data[i];
363
- r.data[i++] = c&this.DM;
364
- c >>= this.DB;
365
- }
366
- c -= a.s;
367
- }
368
- r.s = (c<0)?-1:0;
369
- if(c < -1) r.data[i++] = this.DV+c;
370
- else if(c > 0) r.data[i++] = c;
371
- r.t = i;
372
- r.clamp();
373
- }
374
-
375
- // (protected) r = this * a, r != this,a (HAC 14.12)
376
- // "this" should be the larger one if appropriate.
377
- function bnpMultiplyTo(a,r) {
378
- var x = this.abs(), y = a.abs();
379
- var i = x.t;
380
- r.t = i+y.t;
381
- while(--i >= 0) r.data[i] = 0;
382
- for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t);
383
- r.s = 0;
384
- r.clamp();
385
- if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
386
- }
387
-
388
- // (protected) r = this^2, r != this (HAC 14.16)
389
- function bnpSquareTo(r) {
390
- var x = this.abs();
391
- var i = r.t = 2*x.t;
392
- while(--i >= 0) r.data[i] = 0;
393
- for(i = 0; i < x.t-1; ++i) {
394
- var c = x.am(i,x.data[i],r,2*i,0,1);
395
- if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {
396
- r.data[i+x.t] -= x.DV;
397
- r.data[i+x.t+1] = 1;
398
- }
399
- }
400
- if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1);
401
- r.s = 0;
402
- r.clamp();
403
- }
404
-
405
- // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)
406
- // r != q, this != m. q or r may be null.
407
- function bnpDivRemTo(m,q,r) {
408
- var pm = m.abs();
409
- if(pm.t <= 0) return;
410
- var pt = this.abs();
411
- if(pt.t < pm.t) {
412
- if(q != null) q.fromInt(0);
413
- if(r != null) this.copyTo(r);
414
- return;
415
- }
416
- if(r == null) r = nbi();
417
- var y = nbi(), ts = this.s, ms = m.s;
418
- var nsh = this.DB-nbits(pm.data[pm.t-1]); // normalize modulus
419
- if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }
420
- else { pm.copyTo(y); pt.copyTo(r); }
421
- var ys = y.t;
422
- var y0 = y.data[ys-1];
423
- if(y0 == 0) return;
424
- var yt = y0*(1<<this.F1)+((ys>1)?y.data[ys-2]>>this.F2:0);
425
- var d1 = this.FV/yt, d2 = (1<<this.F1)/yt, e = 1<<this.F2;
426
- var i = r.t, j = i-ys, t = (q==null)?nbi():q;
427
- y.dlShiftTo(j,t);
428
- if(r.compareTo(t) >= 0) {
429
- r.data[r.t++] = 1;
430
- r.subTo(t,r);
431
- }
432
- BigInteger.ONE.dlShiftTo(ys,t);
433
- t.subTo(y,y); // "negative" y so we can replace sub with am later
434
- while(y.t < ys) y.data[y.t++] = 0;
435
- while(--j >= 0) {
436
- // Estimate quotient digit
437
- var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2);
438
- if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out
439
- y.dlShiftTo(j,t);
440
- r.subTo(t,r);
441
- while(r.data[i] < --qd) r.subTo(t,r);
442
- }
443
- }
444
- if(q != null) {
445
- r.drShiftTo(ys,q);
446
- if(ts != ms) BigInteger.ZERO.subTo(q,q);
447
- }
448
- r.t = ys;
449
- r.clamp();
450
- if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder
451
- if(ts < 0) BigInteger.ZERO.subTo(r,r);
452
- }
453
-
454
- // (public) this mod a
455
- function bnMod(a) {
456
- var r = nbi();
457
- this.abs().divRemTo(a,null,r);
458
- if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
459
- return r;
460
- }
461
-
462
- // Modular reduction using "classic" algorithm
463
- function Classic(m) { this.m = m; }
464
- function cConvert(x) {
465
- if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
466
- else return x;
467
- }
468
- function cRevert(x) { return x; }
469
- function cReduce(x) { x.divRemTo(this.m,null,x); }
470
- function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
471
- function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
472
-
473
- Classic.prototype.convert = cConvert;
474
- Classic.prototype.revert = cRevert;
475
- Classic.prototype.reduce = cReduce;
476
- Classic.prototype.mulTo = cMulTo;
477
- Classic.prototype.sqrTo = cSqrTo;
478
-
479
- // (protected) return "-1/this % 2^DB"; useful for Mont. reduction
480
- // justification:
481
- // xy == 1 (mod m)
482
- // xy = 1+km
483
- // xy(2-xy) = (1+km)(1-km)
484
- // x[y(2-xy)] = 1-k^2m^2
485
- // x[y(2-xy)] == 1 (mod m^2)
486
- // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2
487
- // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.
488
- // JS multiply "overflows" differently from C/C++, so care is needed here.
489
- function bnpInvDigit() {
490
- if(this.t < 1) return 0;
491
- var x = this.data[0];
492
- if((x&1) == 0) return 0;
493
- var y = x&3; // y == 1/x mod 2^2
494
- y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4
495
- y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8
496
- y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16
497
- // last step - calculate inverse mod DV directly;
498
- // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
499
- y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits
500
- // we really want the negative inverse, and -DV < y < DV
501
- return (y>0)?this.DV-y:-y;
502
- }
503
-
504
- // Montgomery reduction
505
- function Montgomery(m) {
506
- this.m = m;
507
- this.mp = m.invDigit();
508
- this.mpl = this.mp&0x7fff;
509
- this.mph = this.mp>>15;
510
- this.um = (1<<(m.DB-15))-1;
511
- this.mt2 = 2*m.t;
512
- }
513
-
514
- // xR mod m
515
- function montConvert(x) {
516
- var r = nbi();
517
- x.abs().dlShiftTo(this.m.t,r);
518
- r.divRemTo(this.m,null,r);
519
- if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
520
- return r;
521
- }
522
-
523
- // x/R mod m
524
- function montRevert(x) {
525
- var r = nbi();
526
- x.copyTo(r);
527
- this.reduce(r);
528
- return r;
529
- }
530
-
531
- // x = x/R mod m (HAC 14.32)
532
- function montReduce(x) {
533
- while(x.t <= this.mt2) // pad x so am has enough room later
534
- x.data[x.t++] = 0;
535
- for(var i = 0; i < this.m.t; ++i) {
536
- // faster way of calculating u0 = x.data[i]*mp mod DV
537
- var j = x.data[i]&0x7fff;
538
- var u0 = (j*this.mpl+(((j*this.mph+(x.data[i]>>15)*this.mpl)&this.um)<<15))&x.DM;
539
- // use am to combine the multiply-shift-add into one call
540
- j = i+this.m.t;
541
- x.data[j] += this.m.am(0,u0,x,i,0,this.m.t);
542
- // propagate carry
543
- while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; }
544
- }
545
- x.clamp();
546
- x.drShiftTo(this.m.t,x);
547
- if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
548
- }
549
-
550
- // r = "x^2/R mod m"; x != r
551
- function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
552
-
553
- // r = "xy/R mod m"; x,y != r
554
- function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
555
-
556
- Montgomery.prototype.convert = montConvert;
557
- Montgomery.prototype.revert = montRevert;
558
- Montgomery.prototype.reduce = montReduce;
559
- Montgomery.prototype.mulTo = montMulTo;
560
- Montgomery.prototype.sqrTo = montSqrTo;
561
-
562
- // (protected) true iff this is even
563
- function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; }
564
-
565
- // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
566
- function bnpExp(e,z) {
567
- if(e > 0xffffffff || e < 1) return BigInteger.ONE;
568
- var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;
569
- g.copyTo(r);
570
- while(--i >= 0) {
571
- z.sqrTo(r,r2);
572
- if((e&(1<<i)) > 0) z.mulTo(r2,g,r);
573
- else { var t = r; r = r2; r2 = t; }
574
- }
575
- return z.revert(r);
576
- }
577
-
578
- // (public) this^e % m, 0 <= e < 2^32
579
- function bnModPowInt(e,m) {
580
- var z;
581
- if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);
582
- return this.exp(e,z);
583
- }
584
-
585
- // protected
586
- BigInteger.prototype.copyTo = bnpCopyTo;
587
- BigInteger.prototype.fromInt = bnpFromInt;
588
- BigInteger.prototype.fromString = bnpFromString;
589
- BigInteger.prototype.clamp = bnpClamp;
590
- BigInteger.prototype.dlShiftTo = bnpDLShiftTo;
591
- BigInteger.prototype.drShiftTo = bnpDRShiftTo;
592
- BigInteger.prototype.lShiftTo = bnpLShiftTo;
593
- BigInteger.prototype.rShiftTo = bnpRShiftTo;
594
- BigInteger.prototype.subTo = bnpSubTo;
595
- BigInteger.prototype.multiplyTo = bnpMultiplyTo;
596
- BigInteger.prototype.squareTo = bnpSquareTo;
597
- BigInteger.prototype.divRemTo = bnpDivRemTo;
598
- BigInteger.prototype.invDigit = bnpInvDigit;
599
- BigInteger.prototype.isEven = bnpIsEven;
600
- BigInteger.prototype.exp = bnpExp;
601
-
602
- // public
603
- BigInteger.prototype.toString = bnToString;
604
- BigInteger.prototype.negate = bnNegate;
605
- BigInteger.prototype.abs = bnAbs;
606
- BigInteger.prototype.compareTo = bnCompareTo;
607
- BigInteger.prototype.bitLength = bnBitLength;
608
- BigInteger.prototype.mod = bnMod;
609
- BigInteger.prototype.modPowInt = bnModPowInt;
610
-
611
- // "constants"
612
- BigInteger.ZERO = nbv(0);
613
- BigInteger.ONE = nbv(1);
614
-
615
- // jsbn2 lib
616
-
617
- // Copyright (c) 2005-2009 Tom Wu
618
- // All Rights Reserved.
619
- // See "LICENSE" for details (See jsbn.js for LICENSE).
620
-
621
- // Extended JavaScript BN functions, required for RSA private ops.
622
-
623
- // Version 1.1: new BigInteger("0", 10) returns "proper" zero
624
- // Version 1.2: square() API, isProbablePrime fix
625
-
626
- // (public)
627
- function bnClone() { var r = nbi(); this.copyTo(r); return r; }
628
-
629
- // (public) return value as integer
630
- function bnIntValue() {
631
- if(this.s < 0) {
632
- if(this.t == 1) return this.data[0]-this.DV;
633
- else if(this.t == 0) return -1;
634
- }
635
- else if(this.t == 1) return this.data[0];
636
- else if(this.t == 0) return 0;
637
- // assumes 16 < DB < 32
638
- return ((this.data[1]&((1<<(32-this.DB))-1))<<this.DB)|this.data[0];
639
- }
640
-
641
- // (public) return value as byte
642
- function bnByteValue() { return (this.t==0)?this.s:(this.data[0]<<24)>>24; }
643
-
644
- // (public) return value as short (assumes DB>=16)
645
- function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; }
646
-
647
- // (protected) return x s.t. r^x < DV
648
- function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }
649
-
650
- // (public) 0 if this == 0, 1 if this > 0
651
- function bnSigNum() {
652
- if(this.s < 0) return -1;
653
- else if(this.t <= 0 || (this.t == 1 && this.data[0] <= 0)) return 0;
654
- else return 1;
655
- }
656
-
657
- // (protected) convert to radix string
658
- function bnpToRadix(b) {
659
- if(b == null) b = 10;
660
- if(this.signum() == 0 || b < 2 || b > 36) return "0";
661
- var cs = this.chunkSize(b);
662
- var a = Math.pow(b,cs);
663
- var d = nbv(a), y = nbi(), z = nbi(), r = "";
664
- this.divRemTo(d,y,z);
665
- while(y.signum() > 0) {
666
- r = (a+z.intValue()).toString(b).substr(1) + r;
667
- y.divRemTo(d,y,z);
668
- }
669
- return z.intValue().toString(b) + r;
670
- }
671
-
672
- // (protected) convert from radix string
673
- function bnpFromRadix(s,b) {
674
- this.fromInt(0);
675
- if(b == null) b = 10;
676
- var cs = this.chunkSize(b);
677
- var d = Math.pow(b,cs), mi = false, j = 0, w = 0;
678
- for(var i = 0; i < s.length; ++i) {
679
- var x = intAt(s,i);
680
- if(x < 0) {
681
- if(s.charAt(i) == "-" && this.signum() == 0) mi = true;
682
- continue;
683
- }
684
- w = b*w+x;
685
- if(++j >= cs) {
686
- this.dMultiply(d);
687
- this.dAddOffset(w,0);
688
- j = 0;
689
- w = 0;
690
- }
691
- }
692
- if(j > 0) {
693
- this.dMultiply(Math.pow(b,j));
694
- this.dAddOffset(w,0);
695
- }
696
- if(mi) BigInteger.ZERO.subTo(this,this);
697
- }
698
-
699
- // (protected) alternate constructor
700
- function bnpFromNumber(a,b,c) {
701
- if("number" == typeof b) {
702
- // new BigInteger(int,int,RNG)
703
- if(a < 2) this.fromInt(1);
704
- else {
705
- this.fromNumber(a,c);
706
- if(!this.testBit(a-1)) // force MSB set
707
- this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);
708
- if(this.isEven()) this.dAddOffset(1,0); // force odd
709
- while(!this.isProbablePrime(b)) {
710
- this.dAddOffset(2,0);
711
- if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);
712
- }
713
- }
714
- }
715
- else {
716
- // new BigInteger(int,RNG)
717
- var x = new Array(), t = a&7;
718
- x.length = (a>>3)+1;
719
- b.nextBytes(x);
720
- if(t > 0) x[0] &= ((1<<t)-1); else x[0] = 0;
721
- this.fromString(x,256);
722
- }
723
- }
724
-
725
- // (public) convert to bigendian byte array
726
- function bnToByteArray() {
727
- var i = this.t, r = new Array();
728
- r[0] = this.s;
729
- var p = this.DB-(i*this.DB)%8, d, k = 0;
730
- if(i-- > 0) {
731
- if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p)
732
- r[k++] = d|(this.s<<(this.DB-p));
733
- while(i >= 0) {
734
- if(p < 8) {
735
- d = (this.data[i]&((1<<p)-1))<<(8-p);
736
- d |= this.data[--i]>>(p+=this.DB-8);
737
- }
738
- else {
739
- d = (this.data[i]>>(p-=8))&0xff;
740
- if(p <= 0) { p += this.DB; --i; }
741
- }
742
- if((d&0x80) != 0) d |= -256;
743
- if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;
744
- if(k > 0 || d != this.s) r[k++] = d;
745
- }
746
- }
747
- return r;
748
- }
749
-
750
- function bnEquals(a) { return(this.compareTo(a)==0); }
751
- function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
752
- function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
753
-
754
- // (protected) r = this op a (bitwise)
755
- function bnpBitwiseTo(a,op,r) {
756
- var i, f, m = Math.min(a.t,this.t);
757
- for(i = 0; i < m; ++i) r.data[i] = op(this.data[i],a.data[i]);
758
- if(a.t < this.t) {
759
- f = a.s&this.DM;
760
- for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f);
761
- r.t = this.t;
762
- }
763
- else {
764
- f = this.s&this.DM;
765
- for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]);
766
- r.t = a.t;
767
- }
768
- r.s = op(this.s,a.s);
769
- r.clamp();
770
- }
771
-
772
- // (public) this & a
773
- function op_and(x,y) { return x&y; }
774
- function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }
775
-
776
- // (public) this | a
777
- function op_or(x,y) { return x|y; }
778
- function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }
779
-
780
- // (public) this ^ a
781
- function op_xor(x,y) { return x^y; }
782
- function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }
783
-
784
- // (public) this & ~a
785
- function op_andnot(x,y) { return x&~y; }
786
- function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }
787
-
788
- // (public) ~this
789
- function bnNot() {
790
- var r = nbi();
791
- for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i];
792
- r.t = this.t;
793
- r.s = ~this.s;
794
- return r;
795
- }
796
-
797
- // (public) this << n
798
- function bnShiftLeft(n) {
799
- var r = nbi();
800
- if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);
801
- return r;
802
- }
803
-
804
- // (public) this >> n
805
- function bnShiftRight(n) {
806
- var r = nbi();
807
- if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);
808
- return r;
809
- }
810
-
811
- // return index of lowest 1-bit in x, x < 2^31
812
- function lbit(x) {
813
- if(x == 0) return -1;
814
- var r = 0;
815
- if((x&0xffff) == 0) { x >>= 16; r += 16; }
816
- if((x&0xff) == 0) { x >>= 8; r += 8; }
817
- if((x&0xf) == 0) { x >>= 4; r += 4; }
818
- if((x&3) == 0) { x >>= 2; r += 2; }
819
- if((x&1) == 0) ++r;
820
- return r;
821
- }
822
-
823
- // (public) returns index of lowest 1-bit (or -1 if none)
824
- function bnGetLowestSetBit() {
825
- for(var i = 0; i < this.t; ++i)
826
- if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]);
827
- if(this.s < 0) return this.t*this.DB;
828
- return -1;
829
- }
830
-
831
- // return number of 1 bits in x
832
- function cbit(x) {
833
- var r = 0;
834
- while(x != 0) { x &= x-1; ++r; }
835
- return r;
836
- }
837
-
838
- // (public) return number of set bits
839
- function bnBitCount() {
840
- var r = 0, x = this.s&this.DM;
841
- for(var i = 0; i < this.t; ++i) r += cbit(this.data[i]^x);
842
- return r;
843
- }
844
-
845
- // (public) true iff nth bit is set
846
- function bnTestBit(n) {
847
- var j = Math.floor(n/this.DB);
848
- if(j >= this.t) return(this.s!=0);
849
- return((this.data[j]&(1<<(n%this.DB)))!=0);
850
- }
851
-
852
- // (protected) this op (1<<n)
853
- function bnpChangeBit(n,op) {
854
- var r = BigInteger.ONE.shiftLeft(n);
855
- this.bitwiseTo(r,op,r);
856
- return r;
857
- }
858
-
859
- // (public) this | (1<<n)
860
- function bnSetBit(n) { return this.changeBit(n,op_or); }
861
-
862
- // (public) this & ~(1<<n)
863
- function bnClearBit(n) { return this.changeBit(n,op_andnot); }
864
-
865
- // (public) this ^ (1<<n)
866
- function bnFlipBit(n) { return this.changeBit(n,op_xor); }
867
-
868
- // (protected) r = this + a
869
- function bnpAddTo(a,r) {
870
- var i = 0, c = 0, m = Math.min(a.t,this.t);
871
- while(i < m) {
872
- c += this.data[i]+a.data[i];
873
- r.data[i++] = c&this.DM;
874
- c >>= this.DB;
875
- }
876
- if(a.t < this.t) {
877
- c += a.s;
878
- while(i < this.t) {
879
- c += this.data[i];
880
- r.data[i++] = c&this.DM;
881
- c >>= this.DB;
882
- }
883
- c += this.s;
884
- }
885
- else {
886
- c += this.s;
887
- while(i < a.t) {
888
- c += a.data[i];
889
- r.data[i++] = c&this.DM;
890
- c >>= this.DB;
891
- }
892
- c += a.s;
893
- }
894
- r.s = (c<0)?-1:0;
895
- if(c > 0) r.data[i++] = c;
896
- else if(c < -1) r.data[i++] = this.DV+c;
897
- r.t = i;
898
- r.clamp();
899
- }
900
-
901
- // (public) this + a
902
- function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }
903
-
904
- // (public) this - a
905
- function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }
906
-
907
- // (public) this * a
908
- function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }
909
-
910
- // (public) this^2
911
- function bnSquare() { var r = nbi(); this.squareTo(r); return r; }
912
-
913
- // (public) this / a
914
- function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }
915
-
916
- // (public) this % a
917
- function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }
918
-
919
- // (public) [this/a,this%a]
920
- function bnDivideAndRemainder(a) {
921
- var q = nbi(), r = nbi();
922
- this.divRemTo(a,q,r);
923
- return new Array(q,r);
924
- }
925
-
926
- // (protected) this *= n, this >= 0, 1 < n < DV
927
- function bnpDMultiply(n) {
928
- this.data[this.t] = this.am(0,n-1,this,0,0,this.t);
929
- ++this.t;
930
- this.clamp();
931
- }
932
-
933
- // (protected) this += n << w words, this >= 0
934
- function bnpDAddOffset(n,w) {
935
- if(n == 0) return;
936
- while(this.t <= w) this.data[this.t++] = 0;
937
- this.data[w] += n;
938
- while(this.data[w] >= this.DV) {
939
- this.data[w] -= this.DV;
940
- if(++w >= this.t) this.data[this.t++] = 0;
941
- ++this.data[w];
942
- }
943
- }
944
-
945
- // A "null" reducer
946
- function NullExp() {}
947
- function nNop(x) { return x; }
948
- function nMulTo(x,y,r) { x.multiplyTo(y,r); }
949
- function nSqrTo(x,r) { x.squareTo(r); }
950
-
951
- NullExp.prototype.convert = nNop;
952
- NullExp.prototype.revert = nNop;
953
- NullExp.prototype.mulTo = nMulTo;
954
- NullExp.prototype.sqrTo = nSqrTo;
955
-
956
- // (public) this^e
957
- function bnPow(e) { return this.exp(e,new NullExp()); }
958
-
959
- // (protected) r = lower n words of "this * a", a.t <= n
960
- // "this" should be the larger one if appropriate.
961
- function bnpMultiplyLowerTo(a,n,r) {
962
- var i = Math.min(this.t+a.t,n);
963
- r.s = 0; // assumes a,this >= 0
964
- r.t = i;
965
- while(i > 0) r.data[--i] = 0;
966
- var j;
967
- for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t);
968
- for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i);
969
- r.clamp();
970
- }
971
-
972
- // (protected) r = "this * a" without lower n words, n > 0
973
- // "this" should be the larger one if appropriate.
974
- function bnpMultiplyUpperTo(a,n,r) {
975
- --n;
976
- var i = r.t = this.t+a.t-n;
977
- r.s = 0; // assumes a,this >= 0
978
- while(--i >= 0) r.data[i] = 0;
979
- for(i = Math.max(n-this.t,0); i < a.t; ++i)
980
- r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n);
981
- r.clamp();
982
- r.drShiftTo(1,r);
983
- }
984
-
985
- // Barrett modular reduction
986
- function Barrett(m) {
987
- // setup Barrett
988
- this.r2 = nbi();
989
- this.q3 = nbi();
990
- BigInteger.ONE.dlShiftTo(2*m.t,this.r2);
991
- this.mu = this.r2.divide(m);
992
- this.m = m;
993
- }
994
-
995
- function barrettConvert(x) {
996
- if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);
997
- else if(x.compareTo(this.m) < 0) return x;
998
- else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }
999
- }
1000
-
1001
- function barrettRevert(x) { return x; }
1002
-
1003
- // x = x mod m (HAC 14.42)
1004
- function barrettReduce(x) {
1005
- x.drShiftTo(this.m.t-1,this.r2);
1006
- if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }
1007
- this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);
1008
- this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);
1009
- while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);
1010
- x.subTo(this.r2,x);
1011
- while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
1012
- }
1013
-
1014
- // r = x^2 mod m; x != r
1015
- function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
1016
-
1017
- // r = x*y mod m; x,y != r
1018
- function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
1019
-
1020
- Barrett.prototype.convert = barrettConvert;
1021
- Barrett.prototype.revert = barrettRevert;
1022
- Barrett.prototype.reduce = barrettReduce;
1023
- Barrett.prototype.mulTo = barrettMulTo;
1024
- Barrett.prototype.sqrTo = barrettSqrTo;
1025
-
1026
- // (public) this^e % m (HAC 14.85)
1027
- function bnModPow(e,m) {
1028
- var i = e.bitLength(), k, r = nbv(1), z;
1029
- if(i <= 0) return r;
1030
- else if(i < 18) k = 1;
1031
- else if(i < 48) k = 3;
1032
- else if(i < 144) k = 4;
1033
- else if(i < 768) k = 5;
1034
- else k = 6;
1035
- if(i < 8)
1036
- z = new Classic(m);
1037
- else if(m.isEven())
1038
- z = new Barrett(m);
1039
- else
1040
- z = new Montgomery(m);
1041
-
1042
- // precomputation
1043
- var g = new Array(), n = 3, k1 = k-1, km = (1<<k)-1;
1044
- g[1] = z.convert(this);
1045
- if(k > 1) {
1046
- var g2 = nbi();
1047
- z.sqrTo(g[1],g2);
1048
- while(n <= km) {
1049
- g[n] = nbi();
1050
- z.mulTo(g2,g[n-2],g[n]);
1051
- n += 2;
1052
- }
1053
- }
1054
-
1055
- var j = e.t-1, w, is1 = true, r2 = nbi(), t;
1056
- i = nbits(e.data[j])-1;
1057
- while(j >= 0) {
1058
- if(i >= k1) w = (e.data[j]>>(i-k1))&km;
1059
- else {
1060
- w = (e.data[j]&((1<<(i+1))-1))<<(k1-i);
1061
- if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1);
1062
- }
1063
-
1064
- n = k;
1065
- while((w&1) == 0) { w >>= 1; --n; }
1066
- if((i -= n) < 0) { i += this.DB; --j; }
1067
- if(is1) { // ret == 1, don't bother squaring or multiplying it
1068
- g[w].copyTo(r);
1069
- is1 = false;
1070
- }
1071
- else {
1072
- while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }
1073
- if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }
1074
- z.mulTo(r2,g[w],r);
1075
- }
1076
-
1077
- while(j >= 0 && (e.data[j]&(1<<i)) == 0) {
1078
- z.sqrTo(r,r2); t = r; r = r2; r2 = t;
1079
- if(--i < 0) { i = this.DB-1; --j; }
1080
- }
1081
- }
1082
- return z.revert(r);
1083
- }
1084
-
1085
- // (public) gcd(this,a) (HAC 14.54)
1086
- function bnGCD(a) {
1087
- var x = (this.s<0)?this.negate():this.clone();
1088
- var y = (a.s<0)?a.negate():a.clone();
1089
- if(x.compareTo(y) < 0) { var t = x; x = y; y = t; }
1090
- var i = x.getLowestSetBit(), g = y.getLowestSetBit();
1091
- if(g < 0) return x;
1092
- if(i < g) g = i;
1093
- if(g > 0) {
1094
- x.rShiftTo(g,x);
1095
- y.rShiftTo(g,y);
1096
- }
1097
- while(x.signum() > 0) {
1098
- if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);
1099
- if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);
1100
- if(x.compareTo(y) >= 0) {
1101
- x.subTo(y,x);
1102
- x.rShiftTo(1,x);
1103
- }
1104
- else {
1105
- y.subTo(x,y);
1106
- y.rShiftTo(1,y);
1107
- }
1108
- }
1109
- if(g > 0) y.lShiftTo(g,y);
1110
- return y;
1111
- }
1112
-
1113
- // (protected) this % n, n < 2^26
1114
- function bnpModInt(n) {
1115
- if(n <= 0) return 0;
1116
- var d = this.DV%n, r = (this.s<0)?n-1:0;
1117
- if(this.t > 0)
1118
- if(d == 0) r = this.data[0]%n;
1119
- else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n;
1120
- return r;
1121
- }
1122
-
1123
- // (public) 1/this % m (HAC 14.61)
1124
- function bnModInverse(m) {
1125
- // FORGE: jsbn fix
1126
- // avoid infinite loop
1127
- if(this.signum() == 0) {
1128
- // returning zero to align with similar behavior when no multiplicative
1129
- // inverse module m is found.
1130
- return BigInteger.ZERO;
1131
- }
1132
- var ac = m.isEven();
1133
- if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
1134
- var u = m.clone(), v = this.clone();
1135
- var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);
1136
- while(u.signum() != 0) {
1137
- while(u.isEven()) {
1138
- u.rShiftTo(1,u);
1139
- if(ac) {
1140
- if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }
1141
- a.rShiftTo(1,a);
1142
- }
1143
- else if(!b.isEven()) b.subTo(m,b);
1144
- b.rShiftTo(1,b);
1145
- }
1146
- while(v.isEven()) {
1147
- v.rShiftTo(1,v);
1148
- if(ac) {
1149
- if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }
1150
- c.rShiftTo(1,c);
1151
- }
1152
- else if(!d.isEven()) d.subTo(m,d);
1153
- d.rShiftTo(1,d);
1154
- }
1155
- if(u.compareTo(v) >= 0) {
1156
- u.subTo(v,u);
1157
- if(ac) a.subTo(c,a);
1158
- b.subTo(d,b);
1159
- }
1160
- else {
1161
- v.subTo(u,v);
1162
- if(ac) c.subTo(a,c);
1163
- d.subTo(b,d);
1164
- }
1165
- }
1166
- if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;
1167
- if(d.compareTo(m) >= 0) return d.subtract(m);
1168
- if(d.signum() < 0) d.addTo(m,d); else return d;
1169
- if(d.signum() < 0) return d.add(m); else return d;
1170
- }
1171
-
1172
- var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];
1173
- var lplim = (1<<26)/lowprimes[lowprimes.length-1];
1174
-
1175
- // (public) test primality with certainty >= 1-.5^t
1176
- function bnIsProbablePrime(t) {
1177
- var i, x = this.abs();
1178
- if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) {
1179
- for(i = 0; i < lowprimes.length; ++i)
1180
- if(x.data[0] == lowprimes[i]) return true;
1181
- return false;
1182
- }
1183
- if(x.isEven()) return false;
1184
- i = 1;
1185
- while(i < lowprimes.length) {
1186
- var m = lowprimes[i], j = i+1;
1187
- while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];
1188
- m = x.modInt(m);
1189
- while(i < j) if(m%lowprimes[i++] == 0) return false;
1190
- }
1191
- return x.millerRabin(t);
1192
- }
1193
-
1194
- // (protected) true if probably prime (HAC 4.24, Miller-Rabin)
1195
- function bnpMillerRabin(t) {
1196
- var n1 = this.subtract(BigInteger.ONE);
1197
- var k = n1.getLowestSetBit();
1198
- if(k <= 0) return false;
1199
- var r = n1.shiftRight(k);
1200
- var prng = bnGetPrng();
1201
- var a;
1202
- for(var i = 0; i < t; ++i) {
1203
- // select witness 'a' at random from between 1 and n1
1204
- do {
1205
- a = new BigInteger(this.bitLength(), prng);
1206
- }
1207
- while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0);
1208
- var y = a.modPow(r,this);
1209
- if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {
1210
- var j = 1;
1211
- while(j++ < k && y.compareTo(n1) != 0) {
1212
- y = y.modPowInt(2,this);
1213
- if(y.compareTo(BigInteger.ONE) == 0) return false;
1214
- }
1215
- if(y.compareTo(n1) != 0) return false;
1216
- }
1217
- }
1218
- return true;
1219
- }
1220
-
1221
- // get pseudo random number generator
1222
- function bnGetPrng() {
1223
- // create prng with api that matches BigInteger secure random
1224
- return {
1225
- // x is an array to fill with bytes
1226
- nextBytes: function(x) {
1227
- for(var i = 0; i < x.length; ++i) {
1228
- x[i] = Math.floor(Math.random() * 0x0100);
1229
- }
1230
- }
1231
- };
1232
- }
1233
-
1234
- // protected
1235
- BigInteger.prototype.chunkSize = bnpChunkSize;
1236
- BigInteger.prototype.toRadix = bnpToRadix;
1237
- BigInteger.prototype.fromRadix = bnpFromRadix;
1238
- BigInteger.prototype.fromNumber = bnpFromNumber;
1239
- BigInteger.prototype.bitwiseTo = bnpBitwiseTo;
1240
- BigInteger.prototype.changeBit = bnpChangeBit;
1241
- BigInteger.prototype.addTo = bnpAddTo;
1242
- BigInteger.prototype.dMultiply = bnpDMultiply;
1243
- BigInteger.prototype.dAddOffset = bnpDAddOffset;
1244
- BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;
1245
- BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;
1246
- BigInteger.prototype.modInt = bnpModInt;
1247
- BigInteger.prototype.millerRabin = bnpMillerRabin;
1248
-
1249
- // public
1250
- BigInteger.prototype.clone = bnClone;
1251
- BigInteger.prototype.intValue = bnIntValue;
1252
- BigInteger.prototype.byteValue = bnByteValue;
1253
- BigInteger.prototype.shortValue = bnShortValue;
1254
- BigInteger.prototype.signum = bnSigNum;
1255
- BigInteger.prototype.toByteArray = bnToByteArray;
1256
- BigInteger.prototype.equals = bnEquals;
1257
- BigInteger.prototype.min = bnMin;
1258
- BigInteger.prototype.max = bnMax;
1259
- BigInteger.prototype.and = bnAnd;
1260
- BigInteger.prototype.or = bnOr;
1261
- BigInteger.prototype.xor = bnXor;
1262
- BigInteger.prototype.andNot = bnAndNot;
1263
- BigInteger.prototype.not = bnNot;
1264
- BigInteger.prototype.shiftLeft = bnShiftLeft;
1265
- BigInteger.prototype.shiftRight = bnShiftRight;
1266
- BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;
1267
- BigInteger.prototype.bitCount = bnBitCount;
1268
- BigInteger.prototype.testBit = bnTestBit;
1269
- BigInteger.prototype.setBit = bnSetBit;
1270
- BigInteger.prototype.clearBit = bnClearBit;
1271
- BigInteger.prototype.flipBit = bnFlipBit;
1272
- BigInteger.prototype.add = bnAdd;
1273
- BigInteger.prototype.subtract = bnSubtract;
1274
- BigInteger.prototype.multiply = bnMultiply;
1275
- BigInteger.prototype.divide = bnDivide;
1276
- BigInteger.prototype.remainder = bnRemainder;
1277
- BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;
1278
- BigInteger.prototype.modPow = bnModPow;
1279
- BigInteger.prototype.modInverse = bnModInverse;
1280
- BigInteger.prototype.pow = bnPow;
1281
- BigInteger.prototype.gcd = bnGCD;
1282
- BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
1283
-
1284
- // JSBN-specific extension
1285
- BigInteger.prototype.square = bnSquare;
1286
-
1287
- // BigInteger interfaces not implemented in jsbn:
1288
-
1289
- // BigInteger(int signum, byte[] magnitude)
1290
- // double doubleValue()
1291
- // float floatValue()
1292
- // int hashCode()
1293
- // long longValue()
1294
- // static BigInteger valueOf(long val)