@mindstone/mcp-server-xero 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 (1076) hide show
  1. package/README.md +12 -5
  2. package/dist/auth/bridge.js +17 -0
  3. package/dist/auth/token-grant.js +196 -0
  4. package/dist/bridge-reader.js +124 -0
  5. package/dist/clients/sdk-axios.js +30 -0
  6. package/dist/clients/xero-client.js +156 -18
  7. package/dist/clients/xero-scopes.js +8 -0
  8. package/dist/handlers/create-xero-bank-transaction.handler.js +2 -1
  9. package/dist/handlers/create-xero-contact.handler.js +2 -1
  10. package/dist/handlers/create-xero-credit-note.handler.js +2 -1
  11. package/dist/handlers/create-xero-invoice.handler.js +2 -1
  12. package/dist/handlers/create-xero-manual-journal.handler.js +2 -1
  13. package/dist/handlers/create-xero-payment.handler.js +2 -1
  14. package/dist/handlers/create-xero-purchase-order.handler.js +2 -1
  15. package/dist/handlers/create-xero-quote.handler.js +2 -1
  16. package/dist/handlers/create-xero-tracking-category.handler.js +2 -1
  17. package/dist/handlers/history-handler-factory.js +2 -1
  18. package/dist/handlers/list-xero-organisation-details.handler.js +2 -1
  19. package/dist/handlers/list-xero-payroll-employee-leave-balances.handler.js +2 -1
  20. package/dist/handlers/list-xero-payroll-employee-leave-types.handler.js +2 -1
  21. package/dist/handlers/list-xero-payroll-employee-leave.handler.js +2 -1
  22. package/dist/handlers/list-xero-payroll-leave-periods.handler.js +2 -1
  23. package/dist/handlers/list-xero-profit-and-loss.handler.js +1 -1
  24. package/dist/handlers/update-xero-bank-transaction.handler.js +3 -2
  25. package/dist/handlers/update-xero-contact.handler.js +2 -1
  26. package/dist/handlers/update-xero-credit-note.handler.js +2 -1
  27. package/dist/handlers/update-xero-invoice.handler.js +2 -1
  28. package/dist/handlers/update-xero-manual-journal.handler.js +2 -1
  29. package/dist/handlers/update-xero-quote.handler.js +2 -1
  30. package/dist/handlers/update-xero-tracking-category.handler.js +3 -2
  31. package/dist/handlers/update-xero-tracking-options.handler.js +3 -2
  32. package/dist/hardened-json-file.js +91 -0
  33. package/dist/helpers/connector-error.js +11 -0
  34. package/dist/helpers/format-error.js +41 -14
  35. package/dist/helpers/format-token-error.js +4 -0
  36. package/dist/helpers/xero-currencies.js +2 -1
  37. package/dist/tools/sign-in.tool.js +82 -0
  38. package/dist/tools/tool-factory.js +2 -0
  39. package/node_modules/@hono/node-server/README.md +118 -26
  40. package/node_modules/@hono/node-server/dist/conninfo.cjs +22 -0
  41. package/node_modules/@hono/node-server/dist/{conninfo.d.ts → conninfo.d.cts} +4 -3
  42. package/node_modules/@hono/node-server/dist/conninfo.d.mts +4 -3
  43. package/node_modules/@hono/node-server/dist/conninfo.mjs +19 -16
  44. package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +5 -0
  45. package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +11 -0
  46. package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
  47. package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
  48. package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
  49. package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
  50. package/node_modules/@hono/node-server/dist/index.cjs +1365 -0
  51. package/node_modules/@hono/node-server/dist/index.d.cts +101 -0
  52. package/node_modules/@hono/node-server/dist/index.d.mts +101 -8
  53. package/node_modules/@hono/node-server/dist/index.mjs +1335 -637
  54. package/node_modules/@hono/node-server/dist/serve-static.cjs +153 -0
  55. package/node_modules/@hono/node-server/dist/serve-static.d.cts +19 -0
  56. package/node_modules/@hono/node-server/dist/serve-static.d.mts +15 -13
  57. package/node_modules/@hono/node-server/dist/serve-static.mjs +145 -145
  58. package/node_modules/@hono/node-server/dist/utils/response.cjs +8 -0
  59. package/node_modules/@hono/node-server/dist/utils/response.d.cts +4 -0
  60. package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -2
  61. package/node_modules/@hono/node-server/dist/utils/response.mjs +6 -9
  62. package/node_modules/@hono/node-server/dist/utils/stream.cjs +65 -0
  63. package/node_modules/@hono/node-server/dist/utils/stream.d.cts +6 -0
  64. package/node_modules/@hono/node-server/dist/utils/stream.d.mts +6 -0
  65. package/node_modules/@hono/node-server/dist/utils/stream.mjs +64 -0
  66. package/node_modules/@hono/node-server/package.json +80 -55
  67. package/node_modules/@modelcontextprotocol/sdk/README.md +8 -2
  68. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +43 -2
  69. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -1
  70. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +26 -5
  71. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -1
  72. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +26 -4
  73. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -1
  74. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +127 -24
  75. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -1
  76. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -1
  77. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +1 -12
  78. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -1
  79. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +13 -0
  80. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +1 -1
  81. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +17 -4
  82. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +1 -1
  83. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +7 -0
  84. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -1
  85. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +9 -3
  86. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -1
  87. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +13 -0
  88. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -1
  89. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +28 -13
  90. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -1
  91. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +1 -0
  92. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +1 -1
  93. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +11 -2
  94. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map +1 -1
  95. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +2 -0
  96. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -1
  97. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +63 -20
  98. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +1 -1
  99. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +71 -29
  100. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map +1 -1
  101. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +45 -6
  102. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +1 -1
  103. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +71 -31
  104. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -1
  105. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +61 -18
  106. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map +1 -1
  107. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +57 -19
  108. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -1
  109. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +64 -17
  110. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +1 -1
  111. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +61 -13
  112. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
  113. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +4 -0
  114. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +1 -1
  115. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +1 -1
  116. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +17 -8
  117. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +1 -1
  118. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +31 -14
  119. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +1 -1
  120. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +9 -1
  121. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +1 -1
  122. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +17 -1
  123. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +1 -1
  124. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -1
  125. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +6 -3
  126. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -1
  127. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +1 -1
  128. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +3 -1
  129. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +1 -1
  130. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -1
  131. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +1 -12
  132. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -1
  133. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +12 -1
  134. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  135. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +56 -2
  136. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  137. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.d.ts +25 -0
  138. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.d.ts.map +1 -0
  139. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.js +64 -0
  140. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.js.map +1 -0
  141. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts +5 -0
  142. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts.map +1 -0
  143. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +17 -0
  144. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js.map +1 -0
  145. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +9 -1
  146. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -1
  147. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +10 -4
  148. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -1
  149. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +31 -1
  150. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -1
  151. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +252 -42
  152. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -1
  153. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -1
  154. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +25 -6
  155. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -1
  156. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +3 -0
  157. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +1 -1
  158. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +12 -2
  159. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map +1 -1
  160. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts +32 -0
  161. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts.map +1 -0
  162. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +64 -0
  163. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js.map +1 -0
  164. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +1 -0
  165. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -1
  166. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +39 -9
  167. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -1
  168. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +5 -0
  169. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -1
  170. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +10 -1
  171. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -1
  172. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +18 -8
  173. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  174. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +77 -0
  175. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +1 -1
  176. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +43 -2
  177. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -1
  178. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +26 -5
  179. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -1
  180. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +26 -4
  181. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -1
  182. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +127 -24
  183. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -1
  184. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -1
  185. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +2 -13
  186. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -1
  187. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +13 -0
  188. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +1 -1
  189. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +18 -5
  190. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +1 -1
  191. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +7 -0
  192. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -1
  193. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +9 -3
  194. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -1
  195. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +13 -0
  196. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -1
  197. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +29 -14
  198. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -1
  199. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +1 -0
  200. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map +1 -1
  201. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +11 -2
  202. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map +1 -1
  203. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +2 -0
  204. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -1
  205. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +63 -20
  206. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +1 -1
  207. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +71 -29
  208. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map +1 -1
  209. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +45 -6
  210. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +1 -1
  211. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +71 -31
  212. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -1
  213. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +61 -18
  214. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map +1 -1
  215. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +57 -19
  216. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -1
  217. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +64 -17
  218. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +1 -1
  219. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +61 -13
  220. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
  221. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +4 -0
  222. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +1 -1
  223. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +1 -1
  224. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +17 -8
  225. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +1 -1
  226. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +31 -14
  227. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +1 -1
  228. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +9 -1
  229. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +1 -1
  230. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +17 -1
  231. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +1 -1
  232. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -1
  233. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +6 -3
  234. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +1 -1
  235. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +1 -1
  236. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +3 -1
  237. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +1 -1
  238. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -1
  239. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +2 -13
  240. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -1
  241. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +12 -1
  242. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  243. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +56 -2
  244. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  245. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.d.ts +25 -0
  246. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.d.ts.map +1 -0
  247. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
  248. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js.map +1 -0
  249. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts +5 -0
  250. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts.map +1 -0
  251. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  252. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js.map +1 -0
  253. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +9 -1
  254. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -1
  255. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +10 -4
  256. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -1
  257. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +31 -1
  258. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -1
  259. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +252 -42
  260. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -1
  261. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -1
  262. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +25 -6
  263. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -1
  264. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +3 -0
  265. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +1 -1
  266. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +12 -2
  267. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +1 -1
  268. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts +32 -0
  269. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts.map +1 -0
  270. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  271. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js.map +1 -0
  272. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +1 -0
  273. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -1
  274. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +39 -9
  275. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -1
  276. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +5 -0
  277. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -1
  278. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +9 -0
  279. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -1
  280. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +18 -8
  281. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  282. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +72 -0
  283. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +1 -1
  284. package/node_modules/@modelcontextprotocol/sdk/package.json +4 -3
  285. package/node_modules/axios/CHANGELOG.md +214 -1
  286. package/node_modules/axios/README.md +471 -82
  287. package/node_modules/axios/dist/axios.js +2009 -516
  288. package/node_modules/axios/dist/axios.min.js +3 -3
  289. package/node_modules/axios/dist/axios.min.js.map +1 -1
  290. package/node_modules/axios/dist/browser/axios.cjs +2174 -487
  291. package/node_modules/axios/dist/esm/axios.js +2174 -487
  292. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  293. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  294. package/node_modules/axios/dist/node/axios.cjs +2410 -515
  295. package/node_modules/axios/index.d.cts +150 -75
  296. package/node_modules/axios/index.d.ts +144 -69
  297. package/node_modules/axios/lib/adapters/adapters.js +1 -1
  298. package/node_modules/axios/lib/adapters/fetch.js +272 -75
  299. package/node_modules/axios/lib/adapters/http.js +475 -122
  300. package/node_modules/axios/lib/adapters/xhr.js +173 -16
  301. package/node_modules/axios/lib/core/Axios.js +114 -35
  302. package/node_modules/axios/lib/core/AxiosError.js +105 -3
  303. package/node_modules/axios/lib/core/AxiosHeaders.js +151 -12
  304. package/node_modules/axios/lib/core/InterceptorManager.js +118 -8
  305. package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
  306. package/node_modules/axios/lib/core/buildFullPath.js +55 -1
  307. package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
  308. package/node_modules/axios/lib/core/dispatchRequest.js +45 -2
  309. package/node_modules/axios/lib/core/mergeConfig.js +203 -90
  310. package/node_modules/axios/lib/core/methodList.js +17 -0
  311. package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  312. package/node_modules/axios/lib/defaults/index.js +2 -1
  313. package/node_modules/axios/lib/defaults/transitional.js +2 -0
  314. package/node_modules/axios/lib/env/data.js +1 -1
  315. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
  316. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -3
  317. package/node_modules/axios/lib/helpers/Http2Sessions.js +4 -1
  318. package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
  319. package/node_modules/axios/lib/helpers/buildURL.js +6 -3
  320. package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
  321. package/node_modules/axios/lib/helpers/composeSignals.js +18 -4
  322. package/node_modules/axios/lib/helpers/cookies.js +30 -2
  323. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +156 -63
  324. package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
  325. package/node_modules/axios/lib/helpers/formDataToJSON.js +60 -8
  326. package/node_modules/axios/lib/helpers/fromDataURI.js +12 -3
  327. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
  328. package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  329. package/node_modules/axios/lib/helpers/parseHeaders.js +7 -4
  330. package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  331. package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
  332. package/node_modules/axios/lib/helpers/resolveConfig.js +33 -25
  333. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +345 -3
  334. package/node_modules/axios/lib/helpers/throttle.js +3 -2
  335. package/node_modules/axios/lib/helpers/toFormData.js +60 -30
  336. package/node_modules/axios/lib/helpers/validator.js +1 -1
  337. package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  338. package/node_modules/axios/lib/utils.js +271 -23
  339. package/node_modules/axios/package.json +31 -30
  340. package/node_modules/body-parser/README.md +33 -14
  341. package/node_modules/body-parser/index.js +4 -20
  342. package/node_modules/body-parser/lib/read.js +85 -68
  343. package/node_modules/body-parser/lib/types/json.js +67 -39
  344. package/node_modules/body-parser/lib/types/raw.js +3 -3
  345. package/node_modules/body-parser/lib/types/text.js +3 -3
  346. package/node_modules/body-parser/lib/types/urlencoded.js +21 -25
  347. package/node_modules/body-parser/lib/utils.js +14 -27
  348. package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
  349. package/node_modules/body-parser/node_modules/content-type/README.md +71 -0
  350. package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +46 -0
  351. package/node_modules/body-parser/node_modules/content-type/dist/index.js +176 -0
  352. package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
  353. package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
  354. package/node_modules/body-parser/package.json +24 -16
  355. package/node_modules/es-object-atoms/CHANGELOG.md +21 -14
  356. package/node_modules/es-object-atoms/isObject.d.ts +1 -1
  357. package/node_modules/es-object-atoms/package.json +6 -7
  358. package/node_modules/es-object-atoms/tsconfig.json +1 -0
  359. package/node_modules/express-rate-limit/dist/index.cjs +90 -12
  360. package/node_modules/express-rate-limit/dist/index.d.cts +27 -0
  361. package/node_modules/express-rate-limit/dist/index.d.mts +27 -0
  362. package/node_modules/express-rate-limit/dist/index.d.ts +27 -0
  363. package/node_modules/express-rate-limit/dist/index.mjs +76 -12
  364. package/node_modules/express-rate-limit/{license.md → license} +7 -6
  365. package/node_modules/express-rate-limit/package.json +19 -16
  366. package/node_modules/express-rate-limit/readme.md +1 -0
  367. package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  368. package/node_modules/fast-uri/README.md +8 -0
  369. package/node_modules/fast-uri/index.js +355 -50
  370. package/node_modules/fast-uri/lib/schemes.js +9 -4
  371. package/node_modules/fast-uri/lib/utils.js +448 -92
  372. package/node_modules/fast-uri/package.json +1 -1
  373. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  374. package/node_modules/fast-uri/test/equal.test.js +31 -3
  375. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +2 -0
  376. package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  377. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  378. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  379. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  380. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  381. package/node_modules/fast-uri/test/parse.test.js +7 -3
  382. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  383. package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
  384. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +137 -0
  385. package/node_modules/fast-uri/test/scheme-validation.test.js +163 -0
  386. package/node_modules/fast-uri/test/security-normalization.test.js +139 -0
  387. package/node_modules/fast-uri/test/security.test.js +301 -3
  388. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  389. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  390. package/node_modules/follow-redirects/README.md +27 -1
  391. package/node_modules/follow-redirects/index.js +12 -6
  392. package/node_modules/follow-redirects/package.json +1 -1
  393. package/node_modules/form-data/CHANGELOG.md +29 -2
  394. package/node_modules/form-data/README.md +4 -4
  395. package/node_modules/form-data/lib/form_data.js +14 -2
  396. package/node_modules/form-data/package.json +7 -7
  397. package/node_modules/hasown/CHANGELOG.md +18 -0
  398. package/node_modules/hasown/eslint.config.mjs +6 -0
  399. package/node_modules/hasown/package.json +13 -14
  400. package/node_modules/hono/README.md +2 -3
  401. package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
  402. package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +42 -23
  403. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +320 -351
  404. package/node_modules/hono/dist/adapter/aws-lambda/index.js +2 -8
  405. package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
  406. package/node_modules/hono/dist/adapter/bun/conninfo.js +20 -25
  407. package/node_modules/hono/dist/adapter/bun/index.js +3 -13
  408. package/node_modules/hono/dist/adapter/bun/serve-static.js +27 -27
  409. package/node_modules/hono/dist/adapter/bun/server.js +11 -5
  410. package/node_modules/hono/dist/adapter/bun/ssg.js +25 -15
  411. package/node_modules/hono/dist/adapter/bun/websocket.js +61 -66
  412. package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -9
  413. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +59 -62
  414. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +2 -8
  415. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -9
  416. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +3 -8
  417. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +5 -6
  418. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +26 -20
  419. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +21 -34
  420. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +31 -39
  421. package/node_modules/hono/dist/adapter/deno/conninfo.js +16 -13
  422. package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
  423. package/node_modules/hono/dist/adapter/deno/index.js +3 -10
  424. package/node_modules/hono/dist/adapter/deno/serve-static.js +33 -38
  425. package/node_modules/hono/dist/adapter/deno/ssg.js +27 -16
  426. package/node_modules/hono/dist/adapter/deno/websocket.js +30 -30
  427. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -9
  428. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +102 -71
  429. package/node_modules/hono/dist/adapter/lambda-edge/index.js +2 -6
  430. package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -9
  431. package/node_modules/hono/dist/adapter/netlify/handler.js +10 -8
  432. package/node_modules/hono/dist/adapter/netlify/index.js +3 -2
  433. package/node_modules/hono/dist/adapter/netlify/mod.js +2 -6
  434. package/node_modules/hono/dist/adapter/service-worker/handler.js +15 -19
  435. package/node_modules/hono/dist/adapter/service-worker/index.js +23 -7
  436. package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
  437. package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -10
  438. package/node_modules/hono/dist/adapter/vercel/handler.js +8 -6
  439. package/node_modules/hono/dist/adapter/vercel/index.js +2 -6
  440. package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
  441. package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +42 -44
  442. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +328 -380
  443. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -34
  444. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
  445. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +21 -47
  446. package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -45
  447. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +29 -50
  448. package/node_modules/hono/dist/cjs/adapter/bun/server.js +11 -26
  449. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +24 -35
  450. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +63 -89
  451. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -31
  452. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +61 -85
  453. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -34
  454. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -31
  455. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -33
  456. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +7 -29
  457. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +27 -42
  458. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +21 -55
  459. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +33 -62
  460. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +16 -34
  461. package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -38
  462. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +33 -59
  463. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +27 -37
  464. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +32 -53
  465. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -31
  466. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +105 -103
  467. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -30
  468. package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -31
  469. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +10 -29
  470. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -21
  471. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -30
  472. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +16 -41
  473. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +25 -30
  474. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
  475. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -32
  476. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +8 -27
  477. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -30
  478. package/node_modules/hono/dist/cjs/client/client.js +140 -190
  479. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +62 -80
  480. package/node_modules/hono/dist/cjs/client/index.js +7 -32
  481. package/node_modules/hono/dist/cjs/client/types.js +0 -15
  482. package/node_modules/hono/dist/cjs/client/utils.js +54 -89
  483. package/node_modules/hono/dist/cjs/compose.js +49 -66
  484. package/node_modules/hono/dist/cjs/context.js +379 -431
  485. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +50 -38
  486. package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -27
  487. package/node_modules/hono/dist/cjs/helper/adapter/index.js +33 -73
  488. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
  489. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
  490. package/node_modules/hono/dist/cjs/helper/cookie/index.js +75 -116
  491. package/node_modules/hono/dist/cjs/helper/css/common.js +167 -241
  492. package/node_modules/hono/dist/cjs/helper/css/index.js +136 -143
  493. package/node_modules/hono/dist/cjs/helper/dev/index.js +45 -71
  494. package/node_modules/hono/dist/cjs/helper/factory/index.js +30 -51
  495. package/node_modules/hono/dist/cjs/helper/html/index.js +32 -62
  496. package/node_modules/hono/dist/cjs/helper/proxy/index.js +113 -102
  497. package/node_modules/hono/dist/cjs/helper/route/index.js +125 -66
  498. package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -43
  499. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +56 -64
  500. package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +55 -57
  501. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +200 -298
  502. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +53 -76
  503. package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -35
  504. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +53 -84
  505. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +23 -53
  506. package/node_modules/hono/dist/cjs/helper/streaming/text.js +10 -32
  507. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +13 -32
  508. package/node_modules/hono/dist/cjs/helper/testing/index.js +16 -31
  509. package/node_modules/hono/dist/cjs/helper/websocket/index.js +51 -76
  510. package/node_modules/hono/dist/cjs/hono-base.js +346 -401
  511. package/node_modules/hono/dist/cjs/hono.js +27 -42
  512. package/node_modules/hono/dist/cjs/http-exception.js +55 -56
  513. package/node_modules/hono/dist/cjs/index.js +22 -30
  514. package/node_modules/hono/dist/cjs/jsx/base.js +264 -359
  515. package/node_modules/hono/dist/cjs/jsx/children.js +16 -41
  516. package/node_modules/hono/dist/cjs/jsx/components.js +120 -174
  517. package/node_modules/hono/dist/cjs/jsx/constants.js +17 -42
  518. package/node_modules/hono/dist/cjs/jsx/context.js +166 -58
  519. package/node_modules/hono/dist/cjs/jsx/dom/client.js +49 -69
  520. package/node_modules/hono/dist/cjs/jsx/dom/components.js +23 -52
  521. package/node_modules/hono/dist/cjs/jsx/dom/context.js +39 -67
  522. package/node_modules/hono/dist/cjs/jsx/dom/css.js +143 -158
  523. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +55 -64
  524. package/node_modules/hono/dist/cjs/jsx/dom/index.js +114 -173
  525. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +282 -375
  526. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +14 -49
  527. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -32
  528. package/node_modules/hono/dist/cjs/jsx/dom/render.js +471 -587
  529. package/node_modules/hono/dist/cjs/jsx/dom/server.js +37 -60
  530. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +7 -30
  531. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +227 -317
  532. package/node_modules/hono/dist/cjs/jsx/index.js +86 -135
  533. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +20 -43
  534. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +117 -168
  535. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
  536. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +14 -39
  537. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +29 -67
  538. package/node_modules/hono/dist/cjs/jsx/streaming.js +123 -165
  539. package/node_modules/hono/dist/cjs/jsx/types.js +0 -15
  540. package/node_modules/hono/dist/cjs/jsx/utils.js +91 -175
  541. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +98 -86
  542. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +100 -109
  543. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +65 -72
  544. package/node_modules/hono/dist/cjs/middleware/cache/index.js +166 -117
  545. package/node_modules/hono/dist/cjs/middleware/combine/index.js +135 -95
  546. package/node_modules/hono/dist/cjs/middleware/compress/index.js +74 -83
  547. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +49 -41
  548. package/node_modules/hono/dist/cjs/middleware/cors/index.js +107 -107
  549. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +103 -74
  550. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +58 -51
  551. package/node_modules/hono/dist/cjs/middleware/etag/index.js +73 -87
  552. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +161 -169
  553. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +99 -77
  554. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -27
  555. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +118 -130
  556. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -38
  557. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +120 -136
  558. package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -35
  559. package/node_modules/hono/dist/cjs/middleware/language/language.js +184 -197
  560. package/node_modules/hono/dist/cjs/middleware/logger/index.js +41 -62
  561. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +84 -0
  562. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +101 -100
  563. package/node_modules/hono/dist/cjs/middleware/mount/index.js +72 -0
  564. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +23 -30
  565. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +40 -35
  566. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -27
  567. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +34 -42
  568. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -29
  569. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
  570. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +143 -166
  571. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +58 -93
  572. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +15 -38
  573. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +40 -45
  574. package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -35
  575. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +178 -116
  576. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +85 -58
  577. package/node_modules/hono/dist/cjs/preset/quick.js +18 -37
  578. package/node_modules/hono/dist/cjs/preset/tiny.js +15 -33
  579. package/node_modules/hono/dist/cjs/request/constants.js +5 -27
  580. package/node_modules/hono/dist/cjs/request.js +334 -336
  581. package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -27
  582. package/node_modules/hono/dist/cjs/router/linear-router/router.js +95 -138
  583. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -27
  584. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +41 -69
  585. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -34
  586. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +18 -45
  587. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +95 -131
  588. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +92 -161
  589. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +88 -206
  590. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +83 -80
  591. package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -27
  592. package/node_modules/hono/dist/cjs/router/smart-router/router.js +49 -79
  593. package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -27
  594. package/node_modules/hono/dist/cjs/router/trie-router/node.js +134 -200
  595. package/node_modules/hono/dist/cjs/router/trie-router/router.js +15 -47
  596. package/node_modules/hono/dist/cjs/router/utils.js +5 -0
  597. package/node_modules/hono/dist/cjs/router.js +37 -37
  598. package/node_modules/hono/dist/cjs/types.js +5 -28
  599. package/node_modules/hono/dist/cjs/utils/accept.js +177 -228
  600. package/node_modules/hono/dist/cjs/utils/basic-auth.js +16 -40
  601. package/node_modules/hono/dist/cjs/utils/body.js +89 -89
  602. package/node_modules/hono/dist/cjs/utils/buffer.js +43 -90
  603. package/node_modules/hono/dist/cjs/utils/color.js +35 -44
  604. package/node_modules/hono/dist/cjs/utils/compress.js +11 -26
  605. package/node_modules/hono/dist/cjs/utils/concurrent.js +29 -59
  606. package/node_modules/hono/dist/cjs/utils/constants.js +7 -26
  607. package/node_modules/hono/dist/cjs/utils/cookie.js +108 -177
  608. package/node_modules/hono/dist/cjs/utils/crypto.js +30 -61
  609. package/node_modules/hono/dist/cjs/utils/encode.js +31 -48
  610. package/node_modules/hono/dist/cjs/utils/filepath.js +23 -54
  611. package/node_modules/hono/dist/cjs/utils/handler.js +11 -33
  612. package/node_modules/hono/dist/cjs/utils/headers.js +0 -15
  613. package/node_modules/hono/dist/cjs/utils/html.js +96 -137
  614. package/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
  615. package/node_modules/hono/dist/cjs/utils/ipaddr.js +213 -279
  616. package/node_modules/hono/dist/cjs/utils/jwt/index.js +14 -27
  617. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -42
  618. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +119 -199
  619. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +123 -205
  620. package/node_modules/hono/dist/cjs/utils/jwt/types.js +122 -159
  621. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +9 -28
  622. package/node_modules/hono/dist/cjs/utils/mime.js +75 -101
  623. package/node_modules/hono/dist/cjs/utils/mount.js +51 -0
  624. package/node_modules/hono/dist/cjs/utils/stream.js +88 -102
  625. package/node_modules/hono/dist/cjs/utils/types.js +0 -15
  626. package/node_modules/hono/dist/cjs/utils/url.js +199 -228
  627. package/node_modules/hono/dist/cjs/validator/index.js +3 -27
  628. package/node_modules/hono/dist/cjs/validator/utils.js +0 -15
  629. package/node_modules/hono/dist/cjs/validator/validator.js +63 -106
  630. package/node_modules/hono/dist/client/client.js +139 -175
  631. package/node_modules/hono/dist/client/fetch-result-please.js +59 -56
  632. package/node_modules/hono/dist/client/index.js +3 -7
  633. package/node_modules/hono/dist/client/types.js +1 -0
  634. package/node_modules/hono/dist/client/utils.js +51 -65
  635. package/node_modules/hono/dist/compose.js +49 -45
  636. package/node_modules/hono/dist/context.js +376 -407
  637. package/node_modules/hono/dist/helper/accepts/accepts.js +49 -16
  638. package/node_modules/hono/dist/helper/accepts/index.js +1 -4
  639. package/node_modules/hono/dist/helper/adapter/index.js +33 -52
  640. package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
  641. package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
  642. package/node_modules/hono/dist/helper/cookie/index.js +74 -94
  643. package/node_modules/hono/dist/helper/css/common.js +169 -222
  644. package/node_modules/hono/dist/helper/css/index.js +132 -129
  645. package/node_modules/hono/dist/helper/dev/index.js +44 -49
  646. package/node_modules/hono/dist/helper/factory/index.js +27 -27
  647. package/node_modules/hono/dist/helper/html/index.js +30 -39
  648. package/node_modules/hono/dist/helper/proxy/index.js +116 -84
  649. package/node_modules/hono/dist/helper/route/index.js +123 -43
  650. package/node_modules/hono/dist/helper/ssg/index.js +3 -18
  651. package/node_modules/hono/dist/helper/ssg/middleware.js +53 -40
  652. package/node_modules/hono/dist/helper/ssg/plugins.js +55 -36
  653. package/node_modules/hono/dist/helper/ssg/ssg.js +200 -283
  654. package/node_modules/hono/dist/helper/ssg/utils.js +54 -56
  655. package/node_modules/hono/dist/helper/streaming/index.js +2 -8
  656. package/node_modules/hono/dist/helper/streaming/sse.js +50 -60
  657. package/node_modules/hono/dist/helper/streaming/stream.js +22 -31
  658. package/node_modules/hono/dist/helper/streaming/text.js +9 -10
  659. package/node_modules/hono/dist/helper/streaming/utils.js +9 -12
  660. package/node_modules/hono/dist/helper/testing/index.js +16 -10
  661. package/node_modules/hono/dist/helper/websocket/index.js +49 -53
  662. package/node_modules/hono/dist/hono-base.js +343 -377
  663. package/node_modules/hono/dist/hono.js +26 -20
  664. package/node_modules/hono/dist/http-exception.js +53 -33
  665. package/node_modules/hono/dist/index.js +19 -6
  666. package/node_modules/hono/dist/jsx/base.js +252 -326
  667. package/node_modules/hono/dist/jsx/children.js +16 -20
  668. package/node_modules/hono/dist/jsx/components.js +119 -152
  669. package/node_modules/hono/dist/jsx/constants.js +10 -15
  670. package/node_modules/hono/dist/jsx/context.js +162 -35
  671. package/node_modules/hono/dist/jsx/dom/client.js +45 -48
  672. package/node_modules/hono/dist/jsx/dom/components.js +21 -29
  673. package/node_modules/hono/dist/jsx/dom/context.js +37 -44
  674. package/node_modules/hono/dist/jsx/dom/css.js +142 -147
  675. package/node_modules/hono/dist/jsx/dom/hooks/index.js +52 -40
  676. package/node_modules/hono/dist/jsx/dom/index.js +71 -134
  677. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +275 -359
  678. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +14 -18
  679. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -8
  680. package/node_modules/hono/dist/jsx/dom/render.js +492 -593
  681. package/node_modules/hono/dist/jsx/dom/server.js +33 -29
  682. package/node_modules/hono/dist/jsx/dom/utils.js +6 -8
  683. package/node_modules/hono/dist/jsx/hooks/index.js +238 -307
  684. package/node_modules/hono/dist/jsx/index.js +45 -98
  685. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +20 -22
  686. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +113 -154
  687. package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
  688. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +12 -16
  689. package/node_modules/hono/dist/jsx/jsx-runtime.js +25 -42
  690. package/node_modules/hono/dist/jsx/streaming.js +121 -142
  691. package/node_modules/hono/dist/jsx/types.js +1 -0
  692. package/node_modules/hono/dist/jsx/utils.js +105 -168
  693. package/node_modules/hono/dist/middleware/basic-auth/index.js +96 -63
  694. package/node_modules/hono/dist/middleware/bearer-auth/index.js +101 -89
  695. package/node_modules/hono/dist/middleware/body-limit/index.js +65 -51
  696. package/node_modules/hono/dist/middleware/cache/index.js +169 -99
  697. package/node_modules/hono/dist/middleware/combine/index.js +134 -73
  698. package/node_modules/hono/dist/middleware/compress/index.js +75 -63
  699. package/node_modules/hono/dist/middleware/context-storage/index.js +49 -19
  700. package/node_modules/hono/dist/middleware/cors/index.js +107 -86
  701. package/node_modules/hono/dist/middleware/csrf/index.js +103 -53
  702. package/node_modules/hono/dist/middleware/etag/digest.js +59 -31
  703. package/node_modules/hono/dist/middleware/etag/index.js +73 -66
  704. package/node_modules/hono/dist/middleware/ip-restriction/index.js +163 -158
  705. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +97 -54
  706. package/node_modules/hono/dist/middleware/jwk/index.js +1 -4
  707. package/node_modules/hono/dist/middleware/jwk/jwk.js +116 -107
  708. package/node_modules/hono/dist/middleware/jwt/index.js +2 -10
  709. package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -109
  710. package/node_modules/hono/dist/middleware/language/index.js +2 -15
  711. package/node_modules/hono/dist/middleware/language/language.js +180 -172
  712. package/node_modules/hono/dist/middleware/logger/index.js +43 -37
  713. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +83 -0
  714. package/node_modules/hono/dist/middleware/method-override/index.js +101 -79
  715. package/node_modules/hono/dist/middleware/mount/index.js +71 -0
  716. package/node_modules/hono/dist/middleware/powered-by/index.js +23 -9
  717. package/node_modules/hono/dist/middleware/pretty-json/index.js +40 -14
  718. package/node_modules/hono/dist/middleware/request-id/index.js +1 -4
  719. package/node_modules/hono/dist/middleware/request-id/request-id.js +33 -20
  720. package/node_modules/hono/dist/middleware/secure-headers/index.js +1 -5
  721. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
  722. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +145 -147
  723. package/node_modules/hono/dist/middleware/serve-static/index.js +58 -72
  724. package/node_modules/hono/dist/middleware/serve-static/path.js +15 -17
  725. package/node_modules/hono/dist/middleware/timeout/index.js +40 -23
  726. package/node_modules/hono/dist/middleware/timing/index.js +2 -9
  727. package/node_modules/hono/dist/middleware/timing/timing.js +178 -95
  728. package/node_modules/hono/dist/middleware/trailing-slash/index.js +85 -37
  729. package/node_modules/hono/dist/preset/quick.js +17 -15
  730. package/node_modules/hono/dist/preset/tiny.js +14 -11
  731. package/node_modules/hono/dist/request/constants.js +4 -5
  732. package/node_modules/hono/dist/request.js +329 -310
  733. package/node_modules/hono/dist/router/linear-router/index.js +1 -4
  734. package/node_modules/hono/dist/router/linear-router/router.js +93 -115
  735. package/node_modules/hono/dist/router/pattern-router/index.js +1 -4
  736. package/node_modules/hono/dist/router/pattern-router/router.js +39 -46
  737. package/node_modules/hono/dist/router/reg-exp-router/index.js +1 -7
  738. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +17 -23
  739. package/node_modules/hono/dist/router/reg-exp-router/node.js +90 -108
  740. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +89 -137
  741. package/node_modules/hono/dist/router/reg-exp-router/router.js +82 -183
  742. package/node_modules/hono/dist/router/reg-exp-router/trie.js +80 -56
  743. package/node_modules/hono/dist/router/smart-router/index.js +1 -4
  744. package/node_modules/hono/dist/router/smart-router/router.js +46 -55
  745. package/node_modules/hono/dist/router/trie-router/index.js +1 -4
  746. package/node_modules/hono/dist/router/trie-router/node.js +132 -177
  747. package/node_modules/hono/dist/router/trie-router/router.js +11 -22
  748. package/node_modules/hono/dist/router/utils.js +4 -0
  749. package/node_modules/hono/dist/router.js +35 -14
  750. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +4 -1
  751. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +150 -104
  752. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +4 -8
  753. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +152 -113
  754. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +4 -1
  755. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +6 -10
  756. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +7 -2
  757. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +4 -5
  758. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +5 -1
  759. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +31 -16
  760. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +4 -1
  761. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +29 -17
  762. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +3 -7
  763. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +6 -1
  764. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +4 -7
  765. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +5 -2
  766. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +10 -5
  767. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +10 -2
  768. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +6 -1
  769. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +4 -1
  770. package/node_modules/hono/dist/types/adapter/deno/deno.d.ts +1 -0
  771. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +5 -8
  772. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +7 -2
  773. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +5 -1
  774. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +6 -1
  775. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +6 -1
  776. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +84 -58
  777. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +3 -7
  778. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +4 -1
  779. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +6 -1
  780. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +3 -5
  781. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +3 -2
  782. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +9 -7
  783. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +7 -9
  784. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -7
  785. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +6 -1
  786. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +6 -1
  787. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +3 -6
  788. package/node_modules/hono/dist/types/client/client.d.ts +5 -3
  789. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +21 -19
  790. package/node_modules/hono/dist/types/client/index.d.ts +5 -7
  791. package/node_modules/hono/dist/types/client/types.d.ts +135 -160
  792. package/node_modules/hono/dist/types/client/utils.d.ts +6 -4
  793. package/node_modules/hono/dist/types/compose.d.ts +4 -2
  794. package/node_modules/hono/dist/types/context.d.ts +335 -331
  795. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +11 -9
  796. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +2 -5
  797. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +4 -6
  798. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +2 -5
  799. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +25 -23
  800. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +10 -12
  801. package/node_modules/hono/dist/types/helper/css/common.d.ts +11 -9
  802. package/node_modules/hono/dist/types/helper/css/index.d.ts +26 -28
  803. package/node_modules/hono/dist/types/helper/dev/index.d.ts +10 -12
  804. package/node_modules/hono/dist/types/helper/factory/index.d.ts +26 -73
  805. package/node_modules/hono/dist/types/helper/html/index.d.ts +4 -7
  806. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +20 -22
  807. package/node_modules/hono/dist/types/helper/route/index.d.ts +6 -4
  808. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +4 -7
  809. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +8 -6
  810. package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +3 -1
  811. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +44 -37
  812. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +5 -3
  813. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +4 -8
  814. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +10 -8
  815. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +4 -2
  816. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +4 -2
  817. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +2 -0
  818. package/node_modules/hono/dist/types/helper/testing/index.d.ts +8 -9
  819. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +30 -33
  820. package/node_modules/hono/dist/types/hono-base.d.ts +225 -210
  821. package/node_modules/hono/dist/types/hono.d.ts +11 -10
  822. package/node_modules/hono/dist/types/http-exception.d.ts +20 -22
  823. package/node_modules/hono/dist/types/index.d.ts +6 -37
  824. package/node_modules/hono/dist/types/jsx/base.d.ts +43 -36
  825. package/node_modules/hono/dist/types/jsx/children.d.ts +8 -6
  826. package/node_modules/hono/dist/types/jsx/components.d.ts +8 -5
  827. package/node_modules/hono/dist/types/jsx/constants.d.ts +3 -0
  828. package/node_modules/hono/dist/types/jsx/context.d.ts +48 -6
  829. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +9 -10
  830. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +9 -6
  831. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -1
  832. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +27 -30
  833. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +11 -12
  834. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +79 -83
  835. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +10 -6
  836. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +4 -6
  837. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +3 -7
  838. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +32 -50
  839. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +87 -85
  840. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +2 -0
  841. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +22 -20
  842. package/node_modules/hono/dist/types/jsx/index.d.ts +71 -73
  843. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -1
  844. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +7 -4
  845. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +708 -708
  846. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +4 -7
  847. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +8 -10
  848. package/node_modules/hono/dist/types/jsx/streaming.d.ts +10 -10
  849. package/node_modules/hono/dist/types/jsx/types.d.ts +12 -13
  850. package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
  851. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +17 -19
  852. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +48 -49
  853. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +6 -8
  854. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +17 -17
  855. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +8 -8
  856. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +9 -10
  857. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +6 -8
  858. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +11 -13
  859. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +6 -8
  860. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +2 -0
  861. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +6 -8
  862. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +11 -12
  863. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +13 -13
  864. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +2 -1
  865. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +21 -22
  866. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +7 -6
  867. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +29 -29
  868. package/node_modules/hono/dist/types/middleware/language/index.d.ts +6 -5
  869. package/node_modules/hono/dist/types/middleware/language/language.d.ts +60 -44
  870. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +3 -5
  871. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +47 -0
  872. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +14 -16
  873. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +48 -0
  874. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +8 -10
  875. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +18 -20
  876. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +6 -5
  877. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +9 -11
  878. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +6 -6
  879. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +5 -3
  880. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +55 -57
  881. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +24 -24
  882. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +2 -0
  883. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +5 -7
  884. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +6 -5
  885. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +17 -20
  886. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +35 -37
  887. package/node_modules/hono/dist/types/preset/quick.d.ts +6 -9
  888. package/node_modules/hono/dist/types/preset/tiny.d.ts +6 -9
  889. package/node_modules/hono/dist/types/request/constants.d.ts +2 -0
  890. package/node_modules/hono/dist/types/request.d.ts +288 -286
  891. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +2 -5
  892. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -5
  893. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +2 -5
  894. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -5
  895. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +3 -6
  896. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +3 -1
  897. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +9 -4
  898. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +11 -10
  899. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +10 -9
  900. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -4
  901. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +2 -5
  902. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -9
  903. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +2 -5
  904. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +6 -5
  905. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +7 -6
  906. package/node_modules/hono/dist/types/router/utils.d.ts +3 -0
  907. package/node_modules/hono/dist/types/router.d.ts +24 -23
  908. package/node_modules/hono/dist/types/types.d.ts +146 -505
  909. package/node_modules/hono/dist/types/utils/accept.d.ts +5 -3
  910. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +4 -2
  911. package/node_modules/hono/dist/types/utils/body.d.ts +46 -50
  912. package/node_modules/hono/dist/types/utils/buffer.d.ts +7 -5
  913. package/node_modules/hono/dist/types/utils/color.d.ts +2 -0
  914. package/node_modules/hono/dist/types/utils/compress.d.ts +2 -0
  915. package/node_modules/hono/dist/types/utils/concurrent.d.ts +6 -4
  916. package/node_modules/hono/dist/types/utils/constants.d.ts +2 -0
  917. package/node_modules/hono/dist/types/utils/cookie.d.ts +21 -19
  918. package/node_modules/hono/dist/types/utils/crypto.d.ts +5 -7
  919. package/node_modules/hono/dist/types/utils/encode.d.ts +2 -0
  920. package/node_modules/hono/dist/types/utils/filepath.d.ts +5 -3
  921. package/node_modules/hono/dist/types/utils/handler.d.ts +2 -0
  922. package/node_modules/hono/dist/types/utils/headers.d.ts +4 -2
  923. package/node_modules/hono/dist/types/utils/html.d.ts +11 -9
  924. package/node_modules/hono/dist/types/utils/http-status.d.ts +2 -0
  925. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +4 -6
  926. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -12
  927. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +15 -13
  928. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +4 -7
  929. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +26 -29
  930. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +48 -45
  931. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +2 -0
  932. package/node_modules/hono/dist/types/utils/mime.d.ts +60 -57
  933. package/node_modules/hono/dist/types/utils/mount.d.ts +4 -0
  934. package/node_modules/hono/dist/types/utils/stream.d.ts +27 -25
  935. package/node_modules/hono/dist/types/utils/types.d.ts +15 -27
  936. package/node_modules/hono/dist/types/utils/url.d.ts +7 -0
  937. package/node_modules/hono/dist/types/validator/index.d.ts +3 -7
  938. package/node_modules/hono/dist/types/validator/utils.d.ts +6 -8
  939. package/node_modules/hono/dist/types/validator/validator.d.ts +11 -9
  940. package/node_modules/hono/dist/types.js +4 -6
  941. package/node_modules/hono/dist/utils/accept.js +185 -215
  942. package/node_modules/hono/dist/utils/basic-auth.js +18 -21
  943. package/node_modules/hono/dist/utils/body.js +88 -67
  944. package/node_modules/hono/dist/utils/buffer.js +44 -70
  945. package/node_modules/hono/dist/utils/color.js +33 -21
  946. package/node_modules/hono/dist/utils/compress.js +11 -5
  947. package/node_modules/hono/dist/utils/concurrent.js +29 -38
  948. package/node_modules/hono/dist/utils/constants.js +7 -5
  949. package/node_modules/hono/dist/utils/cookie.js +115 -163
  950. package/node_modules/hono/dist/utils/crypto.js +30 -40
  951. package/node_modules/hono/dist/utils/encode.js +30 -26
  952. package/node_modules/hono/dist/utils/filepath.js +23 -33
  953. package/node_modules/hono/dist/utils/handler.js +10 -11
  954. package/node_modules/hono/dist/utils/headers.js +1 -0
  955. package/node_modules/hono/dist/utils/html.js +97 -117
  956. package/node_modules/hono/dist/utils/http-status.js +1 -0
  957. package/node_modules/hono/dist/utils/ipaddr.js +227 -272
  958. package/node_modules/hono/dist/utils/jwt/index.js +12 -4
  959. package/node_modules/hono/dist/utils/jwt/jwa.js +24 -20
  960. package/node_modules/hono/dist/utils/jwt/jws.js +115 -174
  961. package/node_modules/hono/dist/utils/jwt/jwt.js +121 -197
  962. package/node_modules/hono/dist/utils/jwt/types.js +79 -95
  963. package/node_modules/hono/dist/utils/jwt/utf8.js +9 -7
  964. package/node_modules/hono/dist/utils/mime.js +74 -79
  965. package/node_modules/hono/dist/utils/mount.js +50 -0
  966. package/node_modules/hono/dist/utils/stream.js +86 -79
  967. package/node_modules/hono/dist/utils/types.js +1 -0
  968. package/node_modules/hono/dist/utils/url.js +199 -208
  969. package/node_modules/hono/dist/validator/index.js +1 -4
  970. package/node_modules/hono/dist/validator/utils.js +1 -0
  971. package/node_modules/hono/dist/validator/validator.js +61 -83
  972. package/node_modules/hono/package.json +69 -47
  973. package/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
  974. package/node_modules/iconv-lite/encodings/utf32.js +10 -3
  975. package/node_modules/iconv-lite/package.json +2 -2
  976. package/node_modules/iconv-lite/types/encodings.d.ts +2 -0
  977. package/node_modules/ip-address/README.md +173 -143
  978. package/node_modules/ip-address/dist/address-error.d.ts +11 -0
  979. package/node_modules/ip-address/dist/address-error.js.map +1 -1
  980. package/node_modules/ip-address/dist/common.d.ts +54 -0
  981. package/node_modules/ip-address/dist/common.js +93 -6
  982. package/node_modules/ip-address/dist/common.js.map +1 -1
  983. package/node_modules/ip-address/dist/ipv4.d.ts +88 -8
  984. package/node_modules/ip-address/dist/ipv4.js +146 -29
  985. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  986. package/node_modules/ip-address/dist/ipv6.d.ts +156 -11
  987. package/node_modules/ip-address/dist/ipv6.js +340 -96
  988. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  989. package/node_modules/ip-address/dist/v4/constants.d.ts +12 -0
  990. package/node_modules/ip-address/dist/v4/constants.js +45 -2
  991. package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
  992. package/node_modules/ip-address/dist/v6/constants.d.ts +17 -0
  993. package/node_modules/ip-address/dist/v6/constants.js +53 -3
  994. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  995. package/node_modules/ip-address/package.json +8 -5
  996. package/node_modules/proxy-addr/HISTORY.md +60 -54
  997. package/node_modules/proxy-addr/README.md +1 -1
  998. package/node_modules/proxy-addr/index.js +32 -0
  999. package/node_modules/proxy-addr/package.json +8 -4
  1000. package/node_modules/qs/.editorconfig +1 -1
  1001. package/node_modules/qs/.github/THREAT_MODEL.md +6 -4
  1002. package/node_modules/qs/CHANGELOG.md +116 -1
  1003. package/node_modules/qs/README.md +107 -8
  1004. package/node_modules/qs/dist/qs.js +28 -28
  1005. package/node_modules/qs/eslint.config.mjs +61 -50
  1006. package/node_modules/qs/lib/formats.js +7 -2
  1007. package/node_modules/qs/lib/parse.js +137 -18
  1008. package/node_modules/qs/lib/stringify.js +32 -15
  1009. package/node_modules/qs/lib/utils.js +213 -24
  1010. package/node_modules/qs/package.json +11 -10
  1011. package/node_modules/qs/test/parse.js +928 -2
  1012. package/node_modules/qs/test/stringify.js +769 -0
  1013. package/node_modules/qs/test/utils.js +450 -2
  1014. package/node_modules/side-channel/CHANGELOG.md +10 -0
  1015. package/node_modules/side-channel/README.md +1 -1
  1016. package/node_modules/side-channel/index.js +5 -2
  1017. package/node_modules/side-channel/package.json +10 -10
  1018. package/node_modules/side-channel/test/index.js +16 -0
  1019. package/node_modules/side-channel-list/CHANGELOG.md +25 -4
  1020. package/node_modules/side-channel-list/index.js +1 -3
  1021. package/node_modules/side-channel-list/package.json +8 -8
  1022. package/node_modules/side-channel-list/test/index.js +50 -0
  1023. package/node_modules/type-is/index.js +8 -18
  1024. package/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
  1025. package/node_modules/type-is/node_modules/content-type/README.md +71 -0
  1026. package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +46 -0
  1027. package/node_modules/type-is/node_modules/content-type/dist/index.js +176 -0
  1028. package/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
  1029. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  1030. package/node_modules/type-is/package.json +9 -5
  1031. package/package.json +1 -1
  1032. package/node_modules/@hono/node-server/dist/conninfo.js +0 -42
  1033. package/node_modules/@hono/node-server/dist/globals.d.mts +0 -2
  1034. package/node_modules/@hono/node-server/dist/globals.d.ts +0 -2
  1035. package/node_modules/@hono/node-server/dist/globals.js +0 -29
  1036. package/node_modules/@hono/node-server/dist/globals.mjs +0 -5
  1037. package/node_modules/@hono/node-server/dist/index.d.ts +0 -8
  1038. package/node_modules/@hono/node-server/dist/index.js +0 -702
  1039. package/node_modules/@hono/node-server/dist/listener.d.mts +0 -13
  1040. package/node_modules/@hono/node-server/dist/listener.d.ts +0 -13
  1041. package/node_modules/@hono/node-server/dist/listener.js +0 -670
  1042. package/node_modules/@hono/node-server/dist/listener.mjs +0 -635
  1043. package/node_modules/@hono/node-server/dist/request.d.mts +0 -25
  1044. package/node_modules/@hono/node-server/dist/request.d.ts +0 -25
  1045. package/node_modules/@hono/node-server/dist/request.js +0 -238
  1046. package/node_modules/@hono/node-server/dist/request.mjs +0 -206
  1047. package/node_modules/@hono/node-server/dist/response.d.mts +0 -26
  1048. package/node_modules/@hono/node-server/dist/response.d.ts +0 -26
  1049. package/node_modules/@hono/node-server/dist/response.js +0 -112
  1050. package/node_modules/@hono/node-server/dist/response.mjs +0 -85
  1051. package/node_modules/@hono/node-server/dist/serve-static.d.ts +0 -17
  1052. package/node_modules/@hono/node-server/dist/serve-static.js +0 -177
  1053. package/node_modules/@hono/node-server/dist/server.d.mts +0 -10
  1054. package/node_modules/@hono/node-server/dist/server.d.ts +0 -10
  1055. package/node_modules/@hono/node-server/dist/server.js +0 -696
  1056. package/node_modules/@hono/node-server/dist/server.mjs +0 -660
  1057. package/node_modules/@hono/node-server/dist/types.d.mts +0 -44
  1058. package/node_modules/@hono/node-server/dist/types.d.ts +0 -44
  1059. package/node_modules/@hono/node-server/dist/types.js +0 -18
  1060. package/node_modules/@hono/node-server/dist/types.mjs +0 -0
  1061. package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +0 -3
  1062. package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +0 -3
  1063. package/node_modules/@hono/node-server/dist/utils/response/constants.js +0 -30
  1064. package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +0 -5
  1065. package/node_modules/@hono/node-server/dist/utils/response.d.ts +0 -3
  1066. package/node_modules/@hono/node-server/dist/utils/response.js +0 -37
  1067. package/node_modules/@hono/node-server/dist/utils.d.mts +0 -9
  1068. package/node_modules/@hono/node-server/dist/utils.d.ts +0 -9
  1069. package/node_modules/@hono/node-server/dist/utils.js +0 -99
  1070. package/node_modules/@hono/node-server/dist/utils.mjs +0 -71
  1071. package/node_modules/@hono/node-server/dist/vercel.d.mts +0 -7
  1072. package/node_modules/@hono/node-server/dist/vercel.d.ts +0 -7
  1073. package/node_modules/@hono/node-server/dist/vercel.js +0 -677
  1074. package/node_modules/@hono/node-server/dist/vercel.mjs +0 -640
  1075. package/node_modules/hasown/.eslintrc +0 -5
  1076. package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1,9 +1,103 @@
1
+ ## **6.17.1**
2
+ - [Fix] `parse`: `interpretNumericEntities`: decode code points above U+FFFF as surrogate pairs (#640)
3
+ - [Fix] `parse`: respect `plainObjects` for `[]` with `parseArrays: false` (#639)
4
+ - [Fix] `utils`: `merge`: count the elements of a sparse array against `arrayLimit`, not its holes
5
+ - [Fix] `parse`: guard bracket-wrapped prototype keys at depth 0 (#638)
6
+ - [Refactor] `parse`: extract wrapping-bracket stripping helper
7
+ - [readme] document that `depth: 0` and `depth: false` keep keys flat
8
+ - [Tests] `parse`: pin depth-0 bracket stripping and prototype keys kept by `allowPrototypes`/`plainObjects`
9
+
10
+ ## **6.17.0**
11
+ - [New] `stringify`: add `WHATWG` format (#623)
12
+ - [Fix] `stringify`: do not sort the caller's `filter` array in place (#637)
13
+ - [Fix] `parse`: copy an own `__proto__` key as data (#636)
14
+ - [Fix] `parse`: decode percent-encoded dots case-insensitively (#635)
15
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
16
+ - [Fix] `parse`: preserve comma arrays when interpreting numeric entities (#630)
17
+ - [Fix] `parse`: allow scalar fields with a zero array limit (#627)
18
+ - [Fix] `parse`: do not count an existing comma array toward `arrayLimit` when `duplicates` discards or replaces it
19
+ - [Fix] `utils`: `encode`: encode lone surrogates as U+FFFD instead of consuming the next code unit (#624)
20
+ - [eslint] fix indentation
21
+ - [readme] document the encoder's `format` argument
22
+ - [meta] add changelog acknowledgement
23
+ - [meta] fix changelog indents
24
+ - [Dev Deps] update `eslint`, `evalmd`, `npmignore`
25
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
26
+ - [Tests] `stringify`: pin `sort` order for nested keys selected by an array `filter`
27
+ - [Tests] `parse`: cover `interpretNumericEntities` across value shapes, keys, and the charset sentinel
28
+ - [Tests] `parse`: cover more input that builds no array at a zero or negative `arrayLimit`
29
+ - [Tests] `parse`: cover `comma` with a zero or negative `arrayLimit`, and combining a full comma array
30
+ - [Tests] `parse`: pin the behavior of a zero or negative `arrayLimit`
31
+ - [Tests] `utils`/`stringify`: pin `~`, `*`, and parens encoding in RFC3986 and RFC1738
32
+
33
+ ## **6.16.2**
34
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
35
+ - [meta] use double quotes for better OS support
36
+ - [Dev Deps] update `evalmd`, `npmignore`
37
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
38
+
39
+ ## **6.16.1**
40
+ - [Fix] `parse`: do not mutate an object input
41
+ - [Fix] `stringify`: stop re-encoding structural separator dots when `encodeDotInKeys` is set (#564)
42
+ - [Fix] `stringify`: `arrayFormat: 'comma'`: pass the full encoder arguments with `encodeValuesOnly`
43
+ - [Fix] `utils`: encode `+` as `%2B` in iso-8859-1 mode so values round-trip (#565)
44
+ - [Fix] parse: only convert top-level dots to brackets when allowDots is on (#621)
45
+ - [Fix] `stringify`: ignore inherited array format names (#622)
46
+ - [Fix] `stringify`: `arrayFormat: 'comma'`: do not throw on elements with no callable `toString`
47
+ - [Fix] `utils`: `merge`: seed an overflow container's index from its own keys, not just the source
48
+ - [Fix] `utils`: `merge`: keep a `strictMerge` conflict container's index and `arrayLimit` correct
49
+ - [Fix] `parse`: only treat `[]` as array syntax when it ends the key
50
+ - [Perf] `decode`: skip decoders when there is no percent sign (#583)
51
+ - [Robustness] `utils`: `merge`: apply `arrayLimit` to the two-element array built for colliding values
52
+ - [Robustness] `parse`: bound the nesting added by repeated `strictMerge` conflicts (credit @Yeaseen)
53
+ - [Docs] document that `qs` and flat parsers disagree about parameter names
54
+ - [Docs] clarify that `throwOnLimitExceeded` limits each array, not the total number of values
55
+ - [Docs] clarify 6.14.1/6.15.2 parse bracket behavior change (#567, #568)
56
+ - [meta] fix changelog indents
57
+ - [actions] set least-privilege `cache-mode`
58
+ - [Tests] `utils`: `decode`: add missing cases
59
+ - [Tests] `parse`: characterize the `]=` split when an `=` precedes any bracket group (#620)
60
+ - [Tests] `parse`: `allowDots`: cover stray close brackets before a dot
61
+ - [Dev Deps] update `@ljharb/eslint-config`, `eslint`, `tape`
62
+
63
+ ## **6.16.0**
64
+ - [New] `stringify`: add a `depth` option to bound recursion depth (default `Infinity`)
65
+ - [Fix] stringify: serialize Date values when a filter is provided
66
+ - [Fix] `parse`: enforce `arrayLimit` on comma groups under `[]=` when `throwOnLimitExceeded` is set
67
+ - [Fix] `parse`: flatten a collection appended to an overflowed array (#571)
68
+ - [Fix] `utils`: `isBuffer`: do not invoke a non-callable `constructor.isBuffer`
69
+ - [Fix] `stringify`: do not let `allowEmptyArrays` skip cycle detection (or drop own keys) on an empty array with own properties
70
+ - [Fix] `stringify`: encode dots in a top-level key with a primitive value when encodeDotInKeys is set (#562)
71
+ - [Docs] threat model: clarify `stringify` deep-nesting DoS is caller-bounded
72
+ - [Docs] clarify `arrayLimit` is a representation threshold, not an element-count cap
73
+ - [Tests] `parse`: remove a test that pinned `[]=` comma groups escaping `arrayLimit`
74
+ - [Tests] `stringify`: pin current `encodeDotInKeys` separator-dot behavior
75
+ - [Dev Deps] update `@ljharb/eslint-config`, `eslint`
76
+ - [Dev Deps] update `eslint`, `evalmd`
77
+
78
+ ## **6.15.4**
79
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
80
+ - [meta] use double quotes for better OS support
81
+ - [Dev Deps] update `@ljharb/eslint-config`, `evalmd`, `npmignore`, `tape`
82
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
83
+
84
+ ## **6.15.3**
85
+ - [Fix] `parse`: enforce `throwOnLimitExceeded` for cumulative array growth via `combine`/`merge`
86
+ - [Fix] `utils`: respect encoding of surrogate pairs across chunks (#559)
87
+ - [Robustness] `parse`: throw the `arrayLimit` error before splitting oversized comma values
88
+ - [Robustness] `utils.merge` / `utils.assign`: avoid invoking `__proto__` setter when copying own properties
89
+ - [Robustness] `utils`: enforce `arrayLimit` consistently across `merge`'s array paths
90
+ - [Perf] `utils`: make `compact` O(n) via a side-channel visited-set instead of `Array.indexOf`
91
+ - [Deps] update `side-channel`
92
+ - [Dev Deps] update `eslint`, `mock-property`, `tape`
93
+ - [Tests] `parse`: characterize current lenient handling of unbalanced bracket keys (#558)
94
+
1
95
  ## **6.15.2**
2
96
  - [Fix] `stringify`: skip null/undefined entries in `arrayFormat: 'comma'` + `encodeValuesOnly` instead of crashing in `encoder`
3
97
  - [Fix] `stringify`: use configured `delimiter` after `charsetSentinel` (#555)
4
98
  - [Fix] `stringify`: apply `formatter` to encoded key under `strictNullHandling` (#554)
5
99
  - [Fix] `stringify`: skip null/undefined filter-array entries instead of crashing in `encoder` (#551)
6
- - [Fix] `parse`: handle nested bracket groups and add regression tests (#530)
100
+ - [Fix] `parse`: handle nested bracket groups and add regression tests (#530); changes output for some unbalanced bracket keys (see #558)
7
101
  - [readme] fix grammar (#550)
8
102
  - [Dev Deps] update `@ljharb/eslint-config`
9
103
  - [Tests] add regression tests for keys containing percent-encoded bracket text
@@ -18,6 +112,13 @@
18
112
  - [New] `parse`: add `strictMerge` option to wrap object/primitive conflicts in an array (#425, #122)
19
113
  - [Fix] `duplicates` option should not apply to bracket notation keys (#514)
20
114
 
115
+ ## **6.14.3**
116
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
117
+ - [meta] use double quotes for better OS support
118
+ - [Deps] update `side-channel`
119
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `mock-property`, `npmignore`, `tape`
120
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
121
+
21
122
  ## **6.14.2**
22
123
  - [Fix] `parse`: mark overflow objects for indexed notation exceeding `arrayLimit` (#546)
23
124
  - [Fix] `arrayLimit` means max count, not max index, in `combine`/`merge`/`parseArrayValue`
@@ -50,6 +151,13 @@
50
151
  - [Dev Deps] update `es-value-fixtures`, `has-bigints`, `has-proto`, `has-symbols`
51
152
  - [Tests] increase coverage
52
153
 
154
+ ## **6.13.4**
155
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
156
+ - [meta] use double quotes for better OS support
157
+ - [Deps] update `side-channel`
158
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `for-each`, `has-symbols`, `mock-property`, `npmignore`, `object-inspect`, `tape`
159
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
160
+
53
161
  ## **6.13.3**
54
162
  [Fix] fix regressions from robustness refactor
55
163
  [actions] update reusable workflows
@@ -77,6 +185,13 @@
77
185
  - [New] `parse`: add `strictDepth` option (#511)
78
186
  - [Tests] use `npm audit` instead of `aud`
79
187
 
188
+ ## **6.12.6**
189
+ - [Fix] `stringify`: encode keys when `allowEmptyArrays` is set (#561)
190
+ - [meta] use `npm audit` instead of `aud`
191
+ - [Deps] update `side-channel`
192
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-value-fixtures`, `eslint`, `evalmd`, `for-each`, `has-symbols`, `mock-property`, `npmignore`, `object-inspect`, `tape`
193
+ - [Tests] `stringify`: pin `allowEmptyArrays` output for keys that need no encoding
194
+
80
195
  ## **6.12.5**
81
196
  - [Fix] fix regressions from robustness refactor
82
197
  - [actions] update reusable workflows
@@ -85,6 +85,25 @@ assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), {
85
85
  });
86
86
  ```
87
87
 
88
+ Since v6.14.1 and v6.15.2, `parse` interprets nested bracket groups more consistently.
89
+ Query strings with unbalanced `[`/`]` can produce different results than in 6.15.1;
90
+ see [#558](https://github.com/ljharb/qs/issues/558).
91
+
92
+ Because of that bracket grammar,
93
+ **qs** does not agree with `URLSearchParams`,
94
+ `node:querystring`, or any other flat parser about what the "name" of a parameter is,
95
+ and it never has.
96
+ `URLSearchParams` reads `'foo[bar]=baz'` as one flat name `foo[bar]`;
97
+ **qs** reads it as the path `foo.bar`.
98
+ Text that **qs**'s grammar cannot place,
99
+ such as the `extra` in `'foo[bar]extra=baz'`,
100
+ is currently dropped, so several distinct flat names can resolve to the same **qs** path
101
+ (see [#619](https://github.com/ljharb/qs/issues/619)).
102
+
103
+ So validating, authorizing, filtering,
104
+ or signing a query string with one parser and then consuming it with another is unsafe: a deny list or signature computed over `URLSearchParams` names does not constrain what **qs** will produce from the same string.
105
+ Parse the input once, with **qs**, and apply your checks to the resulting object.
106
+
88
107
  By default, when nesting objects **qs** will only parse up to 5 children deep.
89
108
  This means if you attempt to parse a string like `'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
90
109
 
@@ -115,6 +134,15 @@ var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
115
134
  assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } });
116
135
  ```
117
136
 
137
+ Setting `depth` to `0` or `false` turns off nesting,
138
+ so keys are never split into nested objects or arrays,
139
+ whether or not their brackets are percent-encoded:
140
+
141
+ ```javascript
142
+ assert.deepEqual(qs.parse('a[b][c]=d', { depth: 0 }), { 'a[b][c]': 'd' });
143
+ assert.deepEqual(qs.parse('a%5Bb%5D=c', { depth: false }), { 'a[b]': 'c' });
144
+ ```
145
+
118
146
  You can configure **qs** to throw an error when parsing nested input beyond this depth using the `strictDepth` option (defaulted to false):
119
147
 
120
148
  ```javascript
@@ -126,16 +154,22 @@ try {
126
154
  }
127
155
  ```
128
156
 
129
- The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number. The strictDepth option adds a layer of protection by throwing an error when the limit is exceeded, allowing you to catch and handle such cases.
157
+ The depth limit helps mitigate abuse when **qs** is used to parse user input,
158
+ and it is recommended to keep it a reasonably small number.
159
+ The strictDepth option adds a layer of protection by throwing an error when the limit is exceeded,
160
+ allowing you to catch and handle such cases.
130
161
 
131
- For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
162
+ For similar reasons, by default **qs** will only parse up to 1000 parameters.
163
+ This can be overridden by passing a `parameterLimit` option:
132
164
 
133
165
  ```javascript
134
166
  var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
135
167
  assert.deepEqual(limited, { a: 'b' });
136
168
  ```
137
169
 
138
- If you want an error to be thrown whenever the a limit is exceeded (eg, `parameterLimit`, `arrayLimit`), set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit.
170
+ If you want an error to be thrown whenever a limit is exceeded (eg, `parameterLimit`, `arrayLimit`),
171
+ set the `throwOnLimitExceeded` option to `true`.
172
+ This option will generate a descriptive error if the query string exceeds a configured limit.
139
173
  ```javascript
140
174
  try {
141
175
  qs.parse('a=1&b=2&c=3&d=4', { parameterLimit: 3, throwOnLimitExceeded: true });
@@ -147,6 +181,11 @@ try {
147
181
 
148
182
  When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `parameterLimit` and ignore the rest without throwing an error.
149
183
 
184
+ Note that `parameterLimit` only bounds the number of `&`-delimited parameters; it does not limit how many values a single parameter expands into.
185
+ In particular, when `comma: true` is enabled, a single parameter's value is split on commas into arbitrarily many elements, which `parameterLimit` does not constrain.
186
+ Setting `throwOnLimitExceeded: true` (see `arrayLimit` below) makes **qs** reject a query string with more than `parameterLimit` parameters, one that uses an array index of `arrayLimit` or greater, or one that would produce any array longer than `arrayLimit`, including an array produced by comma splitting.
187
+ `arrayLimit` applies to each array separately, including each parameter's comma-split value, so the total number of values across all parameters can still reach `parameterLimit` times `arrayLimit`, which is 20,000 at the default limits; always bound the input size at the transport layer as well (e.g. an HTTP body-size limit).
188
+
150
189
  To bypass the leading question mark, use `ignoreQueryPrefix`:
151
190
 
152
191
  ```javascript
@@ -291,6 +330,8 @@ assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
291
330
  Any array members with an index of `20` or greater will instead be converted to an object with the index as the key.
292
331
  This is needed to handle cases when someone sent, for example, `a[999999999]` and it will take significant time to iterate over this huge array.
293
332
 
333
+ Since v6.14.1 and v6.15.2, the arrayLimit now applies to arrays specified using both the `[]` and `[0]` syntaxes.
334
+
294
335
  ```javascript
295
336
  var withMaxIndex = qs.parse('a[100]=b');
296
337
  assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
@@ -303,7 +344,8 @@ var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
303
344
  assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
304
345
  ```
305
346
 
306
- If you want to throw an error whenever the array limit is exceeded, set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit.
347
+ If you want to throw an error whenever the array limit is exceeded, set the `throwOnLimitExceeded` option to `true`.
348
+ This option will generate a descriptive error if the query string exceeds a configured limit.
307
349
  ```javascript
308
350
  try {
309
351
  qs.parse('a[1]=b', { arrayLimit: 0, throwOnLimitExceeded: true });
@@ -313,7 +355,13 @@ try {
313
355
  }
314
356
  ```
315
357
 
316
- When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key
358
+ When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key.
359
+
360
+ Note that `arrayLimit` is a *representation* threshold that controls when a numerically-indexed collection switches from an array to an object; it is **not** a hard cap on the total number of elements parsed.
361
+ With the default `throwOnLimitExceeded: false`, exceeding `arrayLimit` never rejects or truncates input; it only changes the container type, and the resulting object still holds every element (so its size stays proportional to the input).
362
+ This conversion is itself a safeguard: it avoids allocating a huge sparse array for input like `a[999999999]`.
363
+ If you need a hard limit that rejects oversized arrays in untrusted query strings, set `throwOnLimitExceeded: true`.
364
+ `throwOnLimitExceeded` still limits each array separately, not the total: with `comma: true`, each comma-separated group under `a[]=` counts as one element of the outer array, and can itself hold up to `arrayLimit` elements.
317
365
 
318
366
  To prevent array syntax (`a[]`, `a[0]`) from being parsed as arrays, set `parseArrays` to `false`.
319
367
  Note that duplicate keys (e.g. `a=b&a=c`) may still produce arrays when `duplicates` is `'combine'` (the default).
@@ -357,6 +405,15 @@ assert.deepEqual(arraysOfObjects, { a: ['b', 'c'] })
357
405
  ```
358
406
  (_this cannot convert nested objects, such as `a={b:1},{c:d}`_)
359
407
 
408
+ With `[]` or index notation, the values from each comma-separated group stay together as one element of the array, while repeated plain keys flatten into one array:
409
+ ```javascript
410
+ var nestedGroups = qs.parse('a[]=b,c&a[]=d', { comma: true });
411
+ assert.deepEqual(nestedGroups, { a: [['b', 'c'], 'd'] });
412
+
413
+ var flatGroups = qs.parse('a=b,c&a=d', { comma: true });
414
+ assert.deepEqual(flatGroups, { a: ['b', 'c', 'd'] });
415
+ ```
416
+
360
417
  ### Parsing primitive/scalar values (numbers, booleans, null, etc)
361
418
 
362
419
  By default, all values are parsed as strings.
@@ -376,7 +433,8 @@ If you wish to auto-convert values which look like numbers, booleans, and other
376
433
  qs.stringify(object, [options]);
377
434
  ```
378
435
 
379
- When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
436
+ When stringifying, **qs** by default URI encodes output.
437
+ Objects are stringified as you would expect:
380
438
 
381
439
  ```javascript
382
440
  assert.equal(qs.stringify({ a: 'b' }), 'a=b');
@@ -410,6 +468,20 @@ var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
410
468
 
411
469
  _(Note: the `encoder` option does not apply if `encode` is `false`)_
412
470
 
471
+ By default, `qs.stringify` serializes an object of any nesting depth.
472
+ For backwards compatibility, and because its input is the caller's own object rather than a query string parsed by **qs**, this is unbounded.
473
+ If you serialize objects whose nesting can be influenced by untrusted input, bound it with the numeric `depth` option (default `Infinity`);
474
+ exceeding it throws a catchable `RangeError` instead of eventually overflowing the call stack:
475
+
476
+ ```javascript
477
+ try {
478
+ qs.stringify({ a: { b: { c: { d: 'e' } } } }, { depth: 2 });
479
+ } catch (err) {
480
+ assert(err instanceof RangeError);
481
+ assert.strictEqual(err.message, 'Input depth exceeded depth option of 2');
482
+ }
483
+ ```
484
+
413
485
  Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
414
486
 
415
487
  ```javascript
@@ -431,6 +503,20 @@ var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultE
431
503
  }})
432
504
  ```
433
505
 
506
+ The encoder also receives the `format` option as a fifth argument.
507
+ An encoder that wraps `defaultEncoder` should pass all of its arguments through,
508
+ since the default encoding depends on `format` (for example, RFC1738 leaves parentheses unencoded):
509
+
510
+ ```javascript
511
+ var wrapped = qs.stringify({ a: 'b(c)' }, {
512
+ format: 'RFC1738',
513
+ encoder: function (str, defaultEncoder, charset, type, format) {
514
+ return defaultEncoder(str, defaultEncoder, charset, type, format);
515
+ }
516
+ });
517
+ assert.equal(wrapped, 'a=b(c)');
518
+ ```
519
+
434
520
  The type argument is also provided to the decoder:
435
521
 
436
522
  ```javascript
@@ -644,7 +730,8 @@ var equalsInsensitive = qs.parse('a&b=');
644
730
  assert.deepEqual(equalsInsensitive, { a: '', b: '' });
645
731
  ```
646
732
 
647
- To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
733
+ To distinguish between `null` values and empty strings use the `strictNullHandling` flag.
734
+ In the result string the `null`
648
735
  values have no `=` sign:
649
736
 
650
737
  ```javascript
@@ -712,7 +799,8 @@ var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder })
712
799
  assert.deepEqual(obj, { a: 'こんにちは!' });
713
800
  ```
714
801
 
715
- ### RFC 3986 and RFC 1738 space encoding
802
+ <a name="rfc-3986-and-rfc-1738-space-encoding"></a>
803
+ ### Encoding formats: RFC 3986, RFC 1738, and WHATWG
716
804
 
717
805
  RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible.
718
806
  In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'.
@@ -723,6 +811,17 @@ assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
723
811
  assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
724
812
  ```
725
813
 
814
+ To percent-encode keys and values the same way as the [WHATWG `application/x-www-form-urlencoded` serializer](https://url.spec.whatwg.org/#concept-urlencoded-serializer) (what `URLSearchParams` and HTML form submission use), use the `WHATWG` format.
815
+ Like RFC1738 it encodes ' ' as '+'; it also leaves `*` unencoded, but percent-encodes `~`, `(`, and `)`.
816
+ It only affects encoding; how `null`, dates, arrays, and objects are serialized is unchanged:
817
+
818
+ ```javascript
819
+ assert.equal(qs.stringify({ a: 'b c~*()' }, { format: 'WHATWG' }), 'a=b+c%7E*%28%29');
820
+ ```
821
+
822
+ _(Note: the `WHATWG` format matches `URLSearchParams` encoding only with the default `utf-8` charset, and only when keys are encoded too, so not with `encodeValuesOnly`.
823
+ With `charset: 'iso-8859-1'`, every format uses the same `escape`-based encoding, which leaves characters like `@` and `/` unencoded; only the space handling differs)_
824
+
726
825
  ## Security
727
826
 
728
827
  Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
@@ -1,32 +1,35 @@
1
1
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- "use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};module.exports={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};
2
+ "use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986",WHATWG:"WHATWG"};module.exports={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)},WHATWG:function(e){return replace.call(e,percentTwenties,"+")}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986,WHATWG:Format.WHATWG};
3
3
 
4
4
  },{}],2:[function(require,module,exports){
5
5
  "use strict";var stringify=require(4),parse=require(3),formats=require(1);module.exports={formats:formats,parse:parse,stringify:stringify};
6
6
 
7
- },{"1":1,"3":3,"4":4}],3:[function(require,module,exports){
8
- "use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==a?a+1:a);if(t.throwOnLimitExceeded&&void 0!==a&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(1===a?"":"s")+" allowed.");var l,n=-1,s=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)0===o[l].indexOf("utf8=")&&(o[l]===charsetSentinel?s="utf-8":o[l]===isoSentinel&&(s="iso-8859-1"),n=l,l=o.length);for(l=0;l<o.length;++l)if(l!==n){var d,c,p=o[l],u=p.indexOf("]="),y=-1===u?p.indexOf("="):u+1;if(-1===y?(d=t.decoder(p,defaults.decoder,s,"key"),c=t.strictNullHandling?null:""):null!==(d=t.decoder(p.slice(0,y),defaults.decoder,s,"key"))&&(c=utils.maybeMap(parseArrayValue(p.slice(y+1),t,isArray(r[d])?r[d].length:0),function(e){return t.decoder(e,defaults.decoder,s,"value")})),c&&t.interpretNumericEntities&&"iso-8859-1"===s&&(c=interpretNumericEntities(String(c))),p.indexOf("[]=")>-1&&(c=isArray(c)?[c]:c),t.comma&&isArray(c)&&c.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");c=utils.combine([],c,t.arrayLimit,t.plainObjects)}if(null!==d){var f=has.call(r,d);f&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?r[d]=utils.combine(r[d],c,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(r[d]=c)}}return r},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=i?t:parseArrayValue(t,r,a),n=e.length-1;n>=0;--n){var s,d=e[n];if("[]"===d&&r.parseArrays)s=utils.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:utils.combine([],l,r.arrayLimit,r.plainObjects);else{s=r.plainObjects?{__proto__:null}:{};var c="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,u=parseInt(p,10),y=!isNaN(u)&&d!==p&&String(u)===p&&u>=0&&r.parseArrays;if(r.parseArrays||""!==p)if(y&&u<r.arrayLimit)(s=[])[u]=l;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");y?(s[u]=l,utils.markOverflow(s,u)):"__proto__"!==p&&(s[p]=l)}else s={0:l}}l=s}return l},splitKeyIntoSegments=function splitKeyIntoSegments(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&has.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&has.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var l=r.length,n=a,s=0;n>=0&&s<t.depth;){for(var d=1,c=n+1,p=-1;c<l&&p<0;){var u=r.charCodeAt(c);91===u?d+=1:93===u&&0==(d-=1)&&(p=c),c+=1}if(p<0)return i[i.length]="["+r.slice(n)+"]",i;var y=r.slice(n,p+1),f=y.slice(1,-1);if(!t.plainObjects&&has.call(Object.prototype,f)&&!t.allowPrototypes)return;i[i.length]=y,s+=1,n=r.indexOf("[",p+1)}if(n>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(n)+"]"}return i},parseKeys=function parseQueryStringKeys(e,t,r,i){if(e){var a=splitKeyIntoSegments(e,r);if(a)return parseObject(a,t,r,i)}},normalizeParseOptions=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:defaults.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:defaults.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};module.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),l=0;l<o.length;++l){var n=o[l],s=parseKeys(n,i[n],r,"string"==typeof e);a=utils.merge(a,s,r)}return!0===r.allowSparse?a:utils.compact(a)};
7
+ },{"1":1,"3":3,"4":4}],4:[function(require,module,exports){
8
+ "use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function stringify(e,r,t,o,n,a,i,l,s,f,u,d,c,y,p,m,h,v,g,b){var w=e;if(b>g)throw new RangeError("Input depth exceeded depth option of "+g);for(var D=v,A=0,S=!1;void 0!==(D=D.get(sentinel))&&!S;){var E=D.get(e);if(A+=1,void 0!==E){if(E===A)throw new RangeError("Cyclic object value");S=!0}void 0===D.get(sentinel)&&(A=0)}if((w="function"==typeof f?f(r,w):w)instanceof Date?w=c(w):"comma"===t&&isArray(w)&&(w=utils.maybeMap(w,function(e){return e instanceof Date?c(e):e})),null===w){if(a)return p(s&&!m?s(r,defaults.encoder,h,"key",y):r);w=""}if(isNonNullishPrimitive(w)||utils.isBuffer(w))return s?[p(m?r:s(r,defaults.encoder,h,"key",y))+"="+p(s(w,defaults.encoder,h,"value",y))]:[p(r)+"="+p(String(w))];var N,O=[];if(void 0===w)return O;if("comma"===t&&isArray(w))m&&s&&(w=utils.maybeMap(w,function(e){return null==e?e:s(e,defaults.encoder,h,"value",y)})),N=[{value:w.length>0?utils.toCoercible(w).join(",")||null:void 0}];else if(isArray(f))N=f;else{var T=Object.keys(w);N=u?T.sort(u):T}var k=String(r),I=o&&isArray(w)&&1===w.length?k+"[]":k;if(n&&isArray(w)&&0===w.length&&0===Object.keys(w).length)return p(s&&!m?s(I,defaults.encoder,h,"key",y):I)+"[]";for(var P=0;P<N.length;++P){var x=N[P],K="object"==typeof x&&x&&void 0!==x.value?x.value:w[x];if(!i||null!==K){var z=d&&l?String(x).replace(/\./g,"%2E"):String(x),j=isArray(w)?"function"==typeof t?t(I,z):I:I+(d?"."+z:"["+z+"]");v.set(e,A);var F=getSideChannel();F.set(sentinel,v),pushToArray(O,stringify(K,j,t,o,n,a,i,l,"comma"===t&&m&&isArray(w)?null:s,f,u,d,c,y,p,m,h,F,g,b+1))}}return O},normalizeStringifyOptions=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,n=formats.formatters[t],a=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(a=e.filter),o=has.call(arrayPrefixGenerators,e.arrayFormat)?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:defaults.depth,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:a,format:t,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}};module.exports=function(e,r){var t,o,n=e,a=normalizeStringifyOptions(r);"function"==typeof a.filter?n=(o=a.filter)("",n):isArray(a.filter)&&(t=o=a.filter.slice());var i=[];if("object"!=typeof n||null===n)return"";var l=arrayPrefixGenerators[a.arrayFormat],s="comma"===l&&a.commaRoundTrip;t||(t=Object.keys(n)),a.sort&&t.sort(a.sort);for(var f=getSideChannel(),u=0;u<t.length;++u){var d=t[u];if(null!=d){var c=n[d];if(!a.skipNulls||null!==c){var y=a.encodeDotInKeys?String(d).replace(/\./g,"%2E"):String(d);pushToArray(i,stringify(c,y,l,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,o,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f,a.depth,0))}}}var p=i.join(a.delimiter),m=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?m+="utf8=%26%2310003%3B"+a.delimiter:m+="utf8=%E2%9C%93"+a.delimiter),p.length>0?m+p:""};
9
9
 
10
- },{"5":5}],4:[function(require,module,exports){
11
- "use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function stringify(e,r,t,o,a,n,i,l,s,f,u,d,y,c,p,m,h,v){for(var g=e,w=v,b=0,A=!1;void 0!==(w=w.get(sentinel))&&!A;){var D=w.get(e);if(b+=1,void 0!==D){if(D===b)throw new RangeError("Cyclic object value");A=!0}void 0===w.get(sentinel)&&(b=0)}if("function"==typeof f?g=f(r,g):g instanceof Date?g=y(g):"comma"===t&&isArray(g)&&(g=utils.maybeMap(g,function(e){return e instanceof Date?y(e):e})),null===g){if(n)return p(s&&!m?s(r,defaults.encoder,h,"key",c):r);g=""}if(isNonNullishPrimitive(g)||utils.isBuffer(g))return s?[p(m?r:s(r,defaults.encoder,h,"key",c))+"="+p(s(g,defaults.encoder,h,"value",c))]:[p(r)+"="+p(String(g))];var S,E=[];if(void 0===g)return E;if("comma"===t&&isArray(g))m&&s&&(g=utils.maybeMap(g,function(e){return null==e?e:s(e)})),S=[{value:g.length>0?g.join(",")||null:void 0}];else if(isArray(f))S=f;else{var N=Object.keys(g);S=u?N.sort(u):N}var T=l?String(r).replace(/\./g,"%2E"):String(r),O=o&&isArray(g)&&1===g.length?T+"[]":T;if(a&&isArray(g)&&0===g.length)return O+"[]";for(var k=0;k<S.length;++k){var I=S[k],P="object"==typeof I&&I&&void 0!==I.value?I.value:g[I];if(!i||null!==P){var x=d&&l?String(I).replace(/\./g,"%2E"):String(I),z=isArray(g)?"function"==typeof t?t(O,x):O:O+(d?"."+x:"["+x+"]");v.set(e,b);var K=getSideChannel();K.set(sentinel,v),pushToArray(E,stringify(P,z,t,o,a,n,i,l,"comma"===t&&m&&isArray(g)?null:s,f,u,d,y,c,p,m,h,K))}}return E},normalizeStringifyOptions=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,a=formats.formatters[t],n=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(n=e.filter),o=e.arrayFormat in arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:n,format:t,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}};module.exports=function(e,r){var t,o=e,a=normalizeStringifyOptions(r);"function"==typeof a.filter?o=(0,a.filter)("",o):isArray(a.filter)&&(t=a.filter);var n=[];if("object"!=typeof o||null===o)return"";var i=arrayPrefixGenerators[a.arrayFormat],l="comma"===i&&a.commaRoundTrip;t||(t=Object.keys(o)),a.sort&&t.sort(a.sort);for(var s=getSideChannel(),f=0;f<t.length;++f){var u=t[f];if(null!=u){var d=o[u];a.skipNulls&&null===d||pushToArray(n,stringify(d,u,i,l,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,s))}}var y=n.join(a.delimiter),c=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?c+="utf8=%26%2310003%3B"+a.delimiter:c+="utf8=%E2%9C%93"+a.delimiter),y.length>0?c+y:""};
10
+ },{"1":1,"46":46,"5":5}],3:[function(require,module,exports){
11
+ "use strict";var getSideChannel=require(46),utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,getPrototypeOf=Object.getPrototypeOf,fromCharCode=String.fromCharCode,isPlainContainer=function isPlainContainer(e){if(!e||"object"!=typeof e)return!1;if(isArray(e))return!0;var t=getPrototypeOf(e);return t===Object.prototype||null===t},emptyCopyOf=function emptyCopyOf(e){if(isArray(e)){var t=[];return t.length=e.length,t}return null===getPrototypeOf(e)?{__proto__:null}:{}},copyInput=function copyInput(e){for(var t=getSideChannel(),r={},i=[{source:e,target:r}],a=0;a<i.length;++a)for(var o=i[a].source,n=i[a].target,l=Object.keys(o),s=0;s<l.length;++s){var c=o[l[s]];if(isPlainContainer(c)){if(!t.has(c)){var p=emptyCopyOf(c);t.set(c,p),i[i.length]={source:c,target:p}}utils.setProperty(n,l[s],t.get(c))}else utils.setProperty(n,l[s],c)}return r},defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){var r=parseInt(t,10);return r>65535&&r<=1114111?fromCharCode(55296|(r-=65536)>>10,56320|1023&r):fromCharCode(r)})},parseArrayValue=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if((i+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit&&r>0)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==a?a+1:a);if(t.throwOnLimitExceeded&&void 0!==a&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(1===a?"":"s")+" allowed.");var n,l=-1,s=t.charset;if(t.charsetSentinel)for(n=0;n<o.length;++n)0===o[n].indexOf("utf8=")&&(o[n]===charsetSentinel?s="utf-8":o[n]===isoSentinel&&(s="iso-8859-1"),l=n,n=o.length);for(n=0;n<o.length;++n)if(n!==l){var c,p,d=o[n],u=d.indexOf("]="),f=-1===u?d.indexOf("="):u+1,y=f>1&&"[]"===d.slice(f-2,f);if(-1===f?(c=t.decoder(d,defaults.decoder,s,"key"),p=t.strictNullHandling?null:""):null!==(c=t.decoder(d.slice(0,f),defaults.decoder,s,"key"))&&(p=utils.maybeMap(parseArrayValue(d.slice(f+1),t,isArray(r[c])&&("combine"===t.duplicates||y)?r[c].length:0),function(e){return t.decoder(e,defaults.decoder,s,"value")})),p&&t.interpretNumericEntities&&"iso-8859-1"===s&&(p=utils.maybeMap(p,function(e){return e?interpretNumericEntities(String(e)):e})),y&&(p=isArray(p)?[p]:p),t.comma&&isArray(p)&&p.length>t.arrayLimit&&(p=utils.combine([],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==c){var m=has.call(r,c);m&&("combine"===t.duplicates||y)?r[c]=utils.combine(r[c],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):m&&"last"!==t.duplicates||(r[c]=p)}}return r},stripWrappingBrackets=function stripWrappingBrackets(e){return"["===e.charAt(0)&&"]"===e.charAt(e.length-1)?e.slice(1,-1):e},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var n=i?t:parseArrayValue(t,r,a),l=e.length-1;l>=0;--l){var s,c=e[l];if("[]"===c&&r.parseArrays)s=utils.isOverflow(n)?n:r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:utils.combine([],n,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{s=r.plainObjects?{__proto__:null}:{};var p=stripWrappingBrackets(c),d=r.decodeDotInKeys?p.replace(/%2E/gi,"."):p,u=parseInt(d,10),f=!isNaN(u)&&c!==d&&String(u)===d&&u>=0&&r.parseArrays;if(r.parseArrays||""!==d)if(f&&u<r.arrayLimit)(s=[])[u]=n;else{if(f&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");f?(s[u]=n,utils.markOverflow(s,u)):"__proto__"!==d&&(s[d]=n)}else s[0]=n}n=s}return n},topLevelDotsToBrackets=function topLevelDotsToBrackets(e){for(var t="",r=0,i=0;i<e.length;i+=1){var a=e.charCodeAt(i);if(91===a)r+=1,t+="[";else if(93===a)r>0&&(r-=1),t+="]";else if(46===a&&0===r&&i+1<e.length&&46!==e.charCodeAt(i+1)&&91!==e.charCodeAt(i+1)){for(var o=i+1,n=o;n<e.length&&46!==e.charCodeAt(n)&&91!==e.charCodeAt(n);)n+=1;t+="["+e.slice(o,n)+"]",i=n-1}else t+=e.charAt(i)}return t},splitKeyIntoSegments=function splitKeyIntoSegments(e,t){var r=t.allowDots?topLevelDotsToBrackets(e):e;if(t.depth<=0){if(!t.plainObjects&&has.call(Object.prototype,stripWrappingBrackets(r))&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&has.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var n=r.length,l=a,s=0;l>=0&&s<t.depth;){for(var c=1,p=l+1,d=-1;p<n&&d<0;){var u=r.charCodeAt(p);91===u?c+=1:93===u&&0==(c-=1)&&(d=p),p+=1}if(d<0)return i[i.length]="["+r.slice(l)+"]",i;var f=r.slice(l,d+1),y=f.slice(1,-1);if(!t.plainObjects&&has.call(Object.prototype,y)&&!t.allowPrototypes)return;i[i.length]=f,s+=1,l=r.indexOf("[",d+1)}if(l>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i},parseKeys=function parseQueryStringKeys(e,t,r,i){if(e){var a=splitKeyIntoSegments(e,r);if(a)return parseObject(a,t,r,i)}},normalizeParseOptions=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:defaults.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:defaults.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};module.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):copyInput(e),a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),n=0;n<o.length;++n){var l=o[n],s=parseKeys(l,i[l],r,"string"==typeof e);a=utils.merge(a,s,r)}return!0===r.allowSparse?a:utils.compact(a)};
12
12
 
13
- },{"1":1,"46":46,"5":5}],5:[function(require,module,exports){
14
- "use strict";var formats=require(1),getSideChannel=require(46),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],o=0;o<t.length;++o)void 0!==t[o]&&(n[n.length]=t[o]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&n>t.arrayLimit)return markOverflow(arrayToObject(e.concat(r),t),n);e[n]=r}else{if(!e||"object"!=typeof e)return[e,r];if(isOverflow(e)){var o=getMaxIndex(e)+1;e[o]=r,setMaxIndex(e,o)}else{if(t&&t.strictMerge)return[e,r];(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var a=Object.keys(r),i=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},c=0;c<a.length;c++)i[parseInt(a[c],10)+1]=r[a[c]];return markOverflow(i,getMaxIndex(r)+1)}var l=[e].concat(r);return t&&"number"==typeof t.arrayLimit&&l.length>t.arrayLimit?markOverflow(arrayToObject(l,t),l.length-1):l}var f=e;return isArray(e)&&!isArray(r)&&(f=arrayToObject(e,t)),isArray(e)&&isArray(r)?(r.forEach(function(r,n){if(has.call(e,n)){var o=e[n];o&&"object"==typeof o&&r&&"object"==typeof r?e[n]=merge(o,r,t):e[e.length]=r}else e[n]=r}),e):Object.keys(r).reduce(function(e,n){var o=r[n];if(has.call(e,n)?e[n]=merge(e[n],o,t):e[n]=o,isOverflow(r)&&!isOverflow(e)&&markOverflow(e,getMaxIndex(r)),isOverflow(e)){var a=parseInt(n,10);String(a)===n&&a>=0&&a>getMaxIndex(e)&&setMaxIndex(e,a)}return e},f)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},e)},decode=function(e,r,t){var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},limit=1024,encode=function encode(e,r,t,n,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===t)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",c=0;c<a.length;c+=limit){for(var l=a.length>=limit?a.slice(c,c+limit):a,f=[],s=0;s<l.length;++s){var u=l.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===formats.RFC1738&&(40===u||41===u)?f[f.length]=l.charAt(s):u<128?f[f.length]=hexTable[u]:u<2048?f[f.length]=hexTable[192|u>>6]+hexTable[128|63&u]:u<55296||u>=57344?f[f.length]=hexTable[224|u>>12]+hexTable[128|u>>6&63]+hexTable[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(s)),f[f.length]=hexTable[240|u>>18]+hexTable[128|u>>12&63]+hexTable[128|u>>6&63]+hexTable[128|63&u])}i+=f.join("")}return i},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],n=0;n<r.length;++n)for(var o=r[n],a=o.obj[o.prop],i=Object.keys(a),c=0;c<i.length;++c){var l=i[c],f=a[l];"object"==typeof f&&null!==f&&-1===t.indexOf(f)&&(r[r.length]={obj:a,prop:l},t[t.length]=f)}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},combine=function combine(e,r,t,n){if(isOverflow(e)){var o=getMaxIndex(e)+1;return e[o]=r,setMaxIndex(e,o),e}var a=[].concat(e,r);return a.length>t?markOverflow(arrayToObject(a,{plainObjects:n}),a.length-1):a},maybeMap=function maybeMap(e,r){if(isArray(e)){for(var t=[],n=0;n<e.length;n+=1)t[t.length]=r(e[n]);return t}return r(e)};module.exports={/* common-shake removed: arrayToObject:arrayToObject *//* common-shake removed: assign:assign */combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isOverflow:isOverflow,isRegExp:isRegExp,markOverflow:markOverflow,maybeMap:maybeMap,merge:merge};
13
+ },{"46":46,"5":5}],5:[function(require,module,exports){
14
+ "use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},conflictChannel=getSideChannel(),markConflict=function markConflict(e,r){return conflictChannel.set(e,r),e},isConflict=function isConflict(e){return conflictChannel.has(e)},getConflictIndex=function getConflictIndex(e){return conflictChannel.get(e)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],i=0;i<t.length;++i)void 0!==t[i]&&(n[n.length]=t[i]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},setProperty=function setProperty(e,r,t){"__proto__"===r&&defineProperty?defineProperty(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t},maxNumericIndex=function maxNumericIndex(e,r){for(var t=r,n=Object.keys(e),i=0;i<n.length;++i){var o=parseInt(n[i],10);String(o)===n[i]&&o>t&&(t=o)}return t},countElements=function countElements(e){for(var r=0,t=0;t<e.length;++t)has.call(e,t)&&(r+=1);return r},limitedPair=function limitedPair(e,r,t){var n=[e,r];if(t&&"number"==typeof t.arrayLimit&&n.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(n,t),1)}return n},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&countElements(e)>=t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(r),t),n)}e[n]=r}else{if(!e||"object"!=typeof e)return limitedPair(e,r,t);if(isOverflow(e)){var i=getMaxIndex(e)+1;e[i]=r,setMaxIndex(e,i)}else if(t&&t.strictMerge&&isConflict(e)){var o=getConflictIndex(e)+1;if(t.throwOnLimitExceeded&&"number"==typeof t.arrayLimit&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");e[o]=r,markConflict(e,o)}else{if(t&&t.strictMerge){var a=limitedPair(e,r,t);return isArray(a)?markConflict(a,1):a}(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var l=Object.keys(r),f=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},c=0;c<l.length;c++)f[parseInt(l[c],10)+1]=r[l[c]];return markOverflow(f,getMaxIndex(r)+1)}var s=[e].concat(r);if(t&&"number"==typeof t.arrayLimit&&s.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(s,t),s.length-1)}return s}var y=e;if(isArray(e)&&!isArray(r)&&(y=arrayToObject(e,t),isConflict(e)&&markConflict(y,e.length-1)),isArray(e)&&isArray(r)){if(r.forEach(function(r,n){if(has.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=merge(i,r,t):e[e.length]=r}else e[n]=r}),t&&"number"==typeof t.arrayLimit&&countElements(e)>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,t),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var i=r[n];if(has.call(e,n)?setProperty(e,n,merge(e[n],i,t)):setProperty(e,n,i),isOverflow(r)&&!isOverflow(e)&&markOverflow(e,maxNumericIndex(e,getMaxIndex(r))),isOverflow(e)){var o=parseInt(n,10);String(o)===n&&o>=0&&o>getMaxIndex(e)&&setMaxIndex(e,o)}if(isConflict(e)){var a=parseInt(n,10);String(a)===n&&a>getConflictIndex(e)&&markConflict(e,a)}return e},y)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return setProperty(e,t,r[t]),e},e)},decode=function(e,r,t){if("string"==typeof e&&-1===e.indexOf("%"))return-1===e.indexOf("+")?e:e.replace(/\+/g," ");var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},hasToPrimitive="function"==typeof Symbol&&"symbol"==typeof Symbol.toPrimitive,arrayJoin=Array.prototype.join,arrayToString=Array.prototype.toString,objectToString=Object.prototype.toString,toCoercible=function toCoercible(e,r){if(!e||"object"!=typeof e&&"function"!=typeof e)return e;if(hasToPrimitive&&null!=e[Symbol.toPrimitive])return e;if(isArray(e)&&e.toString===arrayToString&&e.join===arrayJoin){var t,n=r||getSideChannel();if(n.has(e))return"";n.set(e,!0);for(var i=0;i<e.length;i+=1){var o=e[i],a=toCoercible(o,n);if(!t&&a!==o){t=[];for(var l=0;l<i;l+=1)t[l]=e[l]}t&&(t[i]=a)}return n.delete(e),t||e}if("function"==typeof e.toString)return e;var f=e.valueOf;if("function"==typeof f){var c=f.call(e);if(!c||"object"!=typeof c&&"function"!=typeof c)return String(c)}return objectToString.call(e)},limit=1024,encode=function encode(e,r,t,n,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(toCoercible(e))),"iso-8859-1"===t)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}).replace(/\+/g,"%2B");for(var a="",l=0;l<o.length;l+=limit){var f=o.length>=limit?o.slice(l,l+limit):o;if(l+limit<o.length){var c=f.charCodeAt(f.length-1);c>=55296&&c<=56319&&(f=f.slice(0,-1),l-=1)}for(var s=[],y=0;y<f.length;++y){var u=f.charCodeAt(y);if(45===u||46===u||95===u||126===u&&i!==formats.WHATWG||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===formats.RFC1738&&(40===u||41===u)||i===formats.WHATWG&&42===u)s[s.length]=f.charAt(y);else if(u<128)s[s.length]=hexTable[u];else if(u<2048)s[s.length]=hexTable[192|u>>6]+hexTable[128|63&u];else if(u<55296||u>=57344)s[s.length]=hexTable[224|u>>12]+hexTable[128|u>>6&63]+hexTable[128|63&u];else{var m=f.charCodeAt(y+1);u<=56319&&m>=56320&&m<=57343?(y+=1,u=65536+((1023&u)<<10|1023&m),s[s.length]=hexTable[240|u>>18]+hexTable[128|u>>12&63]+hexTable[128|u>>6&63]+hexTable[128|63&u]):s[s.length]="%EF%BF%BD"}}a+=s.join("")}return a},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=getSideChannel(),n=0;n<r.length;++n)for(var i=r[n],o=i.obj[i.prop],a=Object.keys(o),l=0;l<a.length;++l){var f=a[l],c=o[f];"object"!=typeof c||null===c||t.has(c)||(r[r.length]={obj:o,prop:f},t.set(c,!0))}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},combine=function combine(e,r,t,n,i){if(isOverflow(e)){if(i)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");for(var o=isArray(r)?r:[r],a=getMaxIndex(e),l=0;l<o.length;++l)e[a+=1]=o[l];return setMaxIndex(e,a),e}var f=[].concat(e,r);if(f.length>t){if(i)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(f,{plainObjects:n}),f.length-1)}return f},maybeMap=function maybeMap(e,r){if(isArray(e)){for(var t=[],n=0;n<e.length;n+=1)t[t.length]=r(e[n]);return t}return r(e)};module.exports={/* common-shake removed: arrayToObject:arrayToObject *//* common-shake removed: assign:assign */combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isOverflow:isOverflow,isRegExp:isRegExp,markOverflow:markOverflow,maybeMap:maybeMap,merge:merge,setProperty:setProperty,toCoercible:toCoercible};
15
15
 
16
- },{"1":1,"46":46}],46:[function(require,module,exports){
17
- "use strict";var $TypeError=require(20),inspect=require(42),getSideChannelList=require(43),getSideChannelMap=require(44),getSideChannelWeakMap=require(45),makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList;module.exports=function getSideChannel(){var e,n={assert:function(e){if(!n.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,t){e||(e=makeChannel()),e.set(n,t)}};return n};
16
+ },{"1":1,"14":14,"46":46}],46:[function(require,module,exports){
17
+ "use strict";var $TypeError=require(20),inspect=require(42),getSideChannelList=require(43),getSideChannelMap=require(44),getSideChannelWeakMap=require(45),makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList;module.exports=function getSideChannel(){var e,n={assert:function(e){if(!n.has(e)){var t=e&&Object(e)===e?"the given object key":inspect(e);throw new $TypeError("Side channel does not contain "+t)}},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,t){e||(e=makeChannel()),e.set(n,t)}};return n};
18
18
 
19
- },{"20":20,"42":42,"43":43,"44":44,"45":45}],6:[function(require,module,exports){
19
+ },{"20":20,"42":42,"43":43,"44":44,"45":45}],14:[function(require,module,exports){
20
+ "use strict";var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty;
21
+
22
+ },{}],6:[function(require,module,exports){
20
23
 
21
24
  },{}],7:[function(require,module,exports){
22
25
  "use strict";var bind=require(24),$apply=require(8),$call=require(9),$reflectApply=require(11);module.exports=$reflectApply||bind.call($call,$apply);
23
26
 
24
- },{"11":11,"24":24,"8":8,"9":9}],9:[function(require,module,exports){
25
- "use strict";module.exports=Function.prototype.call;
26
-
27
- },{}],8:[function(require,module,exports){
27
+ },{"11":11,"24":24,"8":8,"9":9}],8:[function(require,module,exports){
28
28
  "use strict";module.exports=Function.prototype.apply;
29
29
 
30
+ },{}],9:[function(require,module,exports){
31
+ "use strict";module.exports=Function.prototype.call;
32
+
30
33
  },{}],24:[function(require,module,exports){
31
34
  "use strict";var implementation=require(23);module.exports=Function.prototype.bind||implementation;
32
35
 
@@ -51,10 +54,7 @@
51
54
  },{"10":10,"30":30}],30:[function(require,module,exports){
52
55
  "use strict";var $gOPD=require(29);if($gOPD)try{$gOPD([],"length")}catch(g){$gOPD=null}module.exports=$gOPD;
53
56
 
54
- },{"29":29}],14:[function(require,module,exports){
55
- "use strict";var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty;
56
-
57
- },{}],15:[function(require,module,exports){
57
+ },{"29":29}],15:[function(require,module,exports){
58
58
  "use strict";module.exports=EvalError;
59
59
 
60
60
  },{}],16:[function(require,module,exports){
@@ -81,18 +81,18 @@
81
81
  },{}],35:[function(require,module,exports){
82
82
  "use strict";module.exports=Math.floor;
83
83
 
84
- },{}],34:[function(require,module,exports){
85
- "use strict";module.exports=Math.abs;
84
+ },{}],37:[function(require,module,exports){
85
+ "use strict";module.exports=Math.max;
86
86
 
87
87
  },{}],38:[function(require,module,exports){
88
88
  "use strict";module.exports=Math.min;
89
89
 
90
+ },{}],34:[function(require,module,exports){
91
+ "use strict";module.exports=Math.abs;
92
+
90
93
  },{}],40:[function(require,module,exports){
91
94
  "use strict";module.exports=Math.round;
92
95
 
93
- },{}],37:[function(require,module,exports){
94
- "use strict";module.exports=Math.max;
95
-
96
96
  },{}],39:[function(require,module,exports){
97
97
  "use strict";module.exports=Math.pow;
98
98
 
@@ -102,16 +102,16 @@
102
102
  },{}],26:[function(require,module,exports){
103
103
  "use strict";var $Object=require(22);module.exports=$Object.getPrototypeOf||null;
104
104
 
105
- },{"22":22}],33:[function(require,module,exports){
106
- "use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
107
-
108
- },{"24":24}],41:[function(require,module,exports){
105
+ },{"22":22}],41:[function(require,module,exports){
109
106
  "use strict";var $isNaN=require(36);module.exports=function sign(i){return $isNaN(i)||0===i?i:i<0?-1:1};
110
107
 
111
108
  },{"36":36}],31:[function(require,module,exports){
112
109
  "use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require(32);module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()};
113
110
 
114
- },{"32":32}],28:[function(require,module,exports){
111
+ },{"32":32}],33:[function(require,module,exports){
112
+ "use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
113
+
114
+ },{"24":24}],28:[function(require,module,exports){
115
115
  "use strict";var reflectGetProto=require(27),originalGetProto=require(26),getDunderProto=require(13);module.exports=reflectGetProto?function getProto(t){return reflectGetProto(t)}:originalGetProto?function getProto(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return originalGetProto(t)}:getDunderProto?function getProto(t){return getDunderProto(t)}:null;
116
116
 
117
117
  },{"13":13,"26":26,"27":27}],29:[function(require,module,exports){