@organizaone/o1-code 0.21.7 → 0.21.10

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 (276) hide show
  1. package/chunks/{MaxSizedBox-KSMVEOUG.js → MaxSizedBox-FJ6C2KZK.js} +26 -27
  2. package/chunks/{StandaloneSessionPicker-WBGTMJDM.js → StandaloneSessionPicker-CWXWHXGS.js} +41 -42
  3. package/chunks/{acp-subagent-executor-7NJVMZZY.js → acp-subagent-executor-FNXCNLE4.js} +24 -24
  4. package/chunks/{acpAgent-B2GHZBGB.js → acpAgent-SV63EP4F.js} +109 -110
  5. package/chunks/{agent-TH4FMIEQ.js → agent-7YR4AKUE.js} +13 -13
  6. package/chunks/{agent-headless-S7SDHOOR.js → agent-headless-PA5EHZLH.js} +13 -13
  7. package/chunks/{all-providers-VN6R4EOW.js → all-providers-IRY4MO56.js} +3 -3
  8. package/chunks/{anthropicContentGenerator-SJCJCLLS.js → anthropicContentGenerator-BK3JPNMQ.js} +7 -7
  9. package/chunks/{bridge-XC5DHEQ2.js → bridge-X4L7QZHF.js} +25 -25
  10. package/chunks/{build-MAJLYX7D.js → build-U7CYF476.js} +3 -1
  11. package/chunks/{chunk-AWMOHE2Z.js → chunk-2AS35LME.js} +4 -4
  12. package/chunks/{chunk-R6QCRZTF.js → chunk-2J5KVLHY.js} +22 -2
  13. package/chunks/{chunk-2GBUKUFR.js → chunk-2VBHBRZZ.js} +5 -5
  14. package/chunks/{chunk-JQAQ6BCR.js → chunk-37HZ4W24.js} +1 -1
  15. package/chunks/{chunk-JJRS5WW2.js → chunk-3DOSV7VB.js} +2 -2
  16. package/chunks/{chunk-R7SPXY4A.js → chunk-3MYKJC6P.js} +1 -1
  17. package/chunks/{chunk-IE4RH3YW.js → chunk-4ABCTDVK.js} +1 -1
  18. package/chunks/{chunk-N2D4M5H7.js → chunk-5GSWMIDF.js} +2 -2
  19. package/chunks/{chunk-W2B55HZP.js → chunk-5RHVEZCT.js} +2 -2
  20. package/chunks/{chunk-V5NPRDZP.js → chunk-5YWGYTY5.js} +4 -4
  21. package/chunks/{chunk-7UVSBCBO.js → chunk-6G2QCKHE.js} +40 -42
  22. package/chunks/{chunk-54JQMCRJ.js → chunk-77C6SJX6.js} +1 -1
  23. package/chunks/{chunk-KQH2ZTLC.js → chunk-7EZKXBZF.js} +24897 -31464
  24. package/chunks/{chunk-P7RO4QSF.js → chunk-7HN3RHKV.js} +998 -87
  25. package/chunks/{chunk-LJG2GEUH.js → chunk-A4PPT6FK.js} +2 -2
  26. package/chunks/{chunk-R66FHOGT.js → chunk-A5M4PU7C.js} +1 -1
  27. package/chunks/{chunk-3VJZ4EGX.js → chunk-A6QLPS5V.js} +3 -3
  28. package/chunks/{chunk-NUSDLSOD.js → chunk-AAJUSHR6.js} +1 -1
  29. package/chunks/{chunk-HIMOZPLA.js → chunk-AAW2TG66.js} +1 -0
  30. package/chunks/{chunk-H73LIQA3.js → chunk-AIPLJV3Z.js} +8 -8
  31. package/chunks/{chunk-7DQWDZUQ.js → chunk-AZMVJ5C3.js} +1 -1
  32. package/chunks/{chunk-YYMSSOUH.js → chunk-AZW3MOGG.js} +1 -1
  33. package/chunks/{chunk-JNTC73DK.js → chunk-BDB73PON.js} +344 -251
  34. package/chunks/{chunk-6CE7A7XV.js → chunk-CHKOOGOG.js} +8 -8
  35. package/chunks/{chunk-XYA43OKS.js → chunk-CRZLYMW5.js} +1 -1
  36. package/chunks/{chunk-SCDW5FBL.js → chunk-CZFWZRC5.js} +1 -1
  37. package/chunks/{chunk-DOARTD2M.js → chunk-D45V5VQP.js} +1 -1
  38. package/chunks/{chunk-TJYFNI7A.js → chunk-DPMMO2N7.js} +1 -1
  39. package/chunks/{chunk-TJQTTY4F.js → chunk-DQORDG4A.js} +2 -2
  40. package/chunks/{chunk-NU7LOATP.js → chunk-DTJG43NT.js} +4 -4
  41. package/chunks/{chunk-R5HO4EJV.js → chunk-E2NTOSGU.js} +1 -1
  42. package/chunks/{chunk-NBMN763T.js → chunk-EI3BQUUV.js} +3 -3
  43. package/chunks/{chunk-RVRJZT5M.js → chunk-EVIGOLAL.js} +1 -1
  44. package/chunks/{chunk-SJXR2EXI.js → chunk-F6E5OEF4.js} +1 -1
  45. package/chunks/{chunk-XRY6XLJD.js → chunk-FGRVF6H3.js} +1350 -168
  46. package/chunks/{chunk-6NBAY4AG.js → chunk-FLQMNGAF.js} +3 -3
  47. package/chunks/{chunk-AM6SU4HK.js → chunk-G3IKG3HV.js} +2 -2
  48. package/chunks/{chunk-7TFQ4MBE.js → chunk-GC2ERDQL.js} +3 -3
  49. package/chunks/{chunk-TC2TJAOF.js → chunk-GM2WNDZ5.js} +1 -1
  50. package/chunks/{chunk-JM6J5ASY.js → chunk-GVCGYCCE.js} +2 -2
  51. package/chunks/{chunk-RUHXHJDO.js → chunk-HEELTUTL.js} +1 -1
  52. package/chunks/{chunk-PMYQMKUC.js → chunk-IHOWB2BG.js} +6 -6
  53. package/chunks/{chunk-V3XZTGJW.js → chunk-ILSK2K5P.js} +1 -1
  54. package/chunks/{chunk-QYSP7E7N.js → chunk-JB5RH2RR.js} +2 -2
  55. package/chunks/{chunk-EOZZ7CZT.js → chunk-JD2XBV4H.js} +7 -7
  56. package/chunks/{chunk-N3P6HTB2.js → chunk-JS723QZ3.js} +4 -4
  57. package/chunks/{chunk-IZWMLSJK.js → chunk-KAKF4XJG.js} +4 -4
  58. package/chunks/{chunk-XMWIH4MM.js → chunk-KBL56IWK.js} +1 -1
  59. package/chunks/{chunk-ECDA4WRP.js → chunk-KEKBYXC3.js} +4 -4
  60. package/chunks/{chunk-JY2XL5ZF.js → chunk-LPQZYMAP.js} +2 -2
  61. package/chunks/{chunk-PC65ZVRU.js → chunk-M7UZ3MU6.js} +2 -2
  62. package/chunks/{chunk-7SWY3CW2.js → chunk-MSWEGIQG.js} +1 -1
  63. package/chunks/{chunk-5NQPR6ZR.js → chunk-NCGQPRHQ.js} +12 -12
  64. package/chunks/{chunk-VZTF4OOG.js → chunk-NHTNE6KQ.js} +1 -1
  65. package/chunks/{chunk-EWPNBHJ5.js → chunk-NLU5GWN2.js} +2 -2
  66. package/chunks/{chunk-HVQQIKDI.js → chunk-NUF3FLRS.js} +1 -1
  67. package/chunks/{chunk-KXLKGWX4.js → chunk-NXEXWZLN.js} +6 -6
  68. package/chunks/{chunk-K2SSUCN3.js → chunk-OCLOTHK2.js} +1 -1
  69. package/chunks/{chunk-6VF7EU56.js → chunk-P4JFO6QK.js} +5 -2
  70. package/chunks/{chunk-D6FL5RTE.js → chunk-P6NZWNQV.js} +4 -4
  71. package/chunks/{chunk-PRNMGVOU.js → chunk-PAUZVMDC.js} +2 -2
  72. package/chunks/{chunk-HCKSE3DQ.js → chunk-PC7DSMKL.js} +1 -1
  73. package/chunks/{chunk-35MAUYQX.js → chunk-PKKMIKJY.js} +4 -4
  74. package/chunks/{chunk-FYIXVVSS.js → chunk-PN3OU2HT.js} +7 -7
  75. package/chunks/{chunk-IEKYDNVM.js → chunk-PTOAGZBC.js} +3 -3
  76. package/chunks/{chunk-UFBWN6GO.js → chunk-Q76KPZ6F.js} +7 -7
  77. package/chunks/{chunk-I376VKOZ.js → chunk-QAJJA76Y.js} +2 -2
  78. package/chunks/{chunk-MRTHM5GF.js → chunk-R5AMOGLJ.js} +13 -4
  79. package/chunks/{chunk-T5C5LMFJ.js → chunk-RGQ47LIC.js} +11 -11
  80. package/chunks/{chunk-3HKTHY6V.js → chunk-RWOFJXCI.js} +37 -37
  81. package/chunks/{chunk-CCKT3LRB.js → chunk-S4PWRZB6.js} +2 -2
  82. package/chunks/{chunk-KMWAEX43.js → chunk-S6F7ZE4T.js} +5898 -931
  83. package/chunks/{chunk-HDGYCLNB.js → chunk-S6HB6BVJ.js} +1 -1
  84. package/chunks/{chunk-ESBIRQCE.js → chunk-S7L7UWX7.js} +1 -1
  85. package/chunks/{chunk-JOBZWTVK.js → chunk-SLH747HE.js} +2 -2
  86. package/chunks/{chunk-OJF7X35J.js → chunk-SLXNWEFC.js} +5 -5
  87. package/chunks/{chunk-HH62GKKA.js → chunk-SMJRDORP.js} +1 -1
  88. package/chunks/{chunk-E4ETMOCY.js → chunk-T224WOVX.js} +2 -2
  89. package/chunks/{chunk-CBZAVLXA.js → chunk-UKFESCEI.js} +2 -2
  90. package/chunks/{chunk-UPG4HSDF.js → chunk-UMI446BY.js} +1 -1
  91. package/chunks/{chunk-R2LEWAYI.js → chunk-UTWS2ZCR.js} +1 -1
  92. package/chunks/{chunk-RY6YWQNA.js → chunk-UU3BV6SB.js} +1 -1
  93. package/chunks/{chunk-EYUVZKAI.js → chunk-VFN6U5I2.js} +2 -2
  94. package/chunks/{chunk-M75MHHKK.js → chunk-VHHVDB5F.js} +1 -1
  95. package/chunks/{chunk-6BN2BUXV.js → chunk-VY2R32ZP.js} +5 -5
  96. package/chunks/{chunk-EZKRQYVY.js → chunk-WMH3SYFF.js} +3 -3
  97. package/chunks/{chunk-E7EWK6XV.js → chunk-WOEB2UQY.js} +3 -3
  98. package/chunks/{chunk-GD7S43QP.js → chunk-XDUTL6ZZ.js} +4 -4
  99. package/chunks/{chunk-FQVQT4TX.js → chunk-XT3S375S.js} +5 -5
  100. package/chunks/{chunk-JEA3U65O.js → chunk-XV4KEHP2.js} +2 -2
  101. package/chunks/{chunk-W7NMNNKN.js → chunk-YA7ULYER.js} +12 -12
  102. package/chunks/{chunk-5CQHXP4X.js → chunk-YKVRRLWF.js} +3 -3
  103. package/chunks/{chunk-JYDVXBGK.js → chunk-Z7UCHNEI.js} +3 -3
  104. package/chunks/{chunk-37YWUOWY.js → chunk-ZCX6KV2Q.js} +552 -553
  105. package/chunks/{codex-subagent-executor-WMH54RGD.js → codex-subagent-executor-BAF5CFEM.js} +24 -24
  106. package/chunks/{contextCommand-VC2Q2P3K.js → contextCommand-IVSOHLW5.js} +23 -23
  107. package/chunks/{core-runtime-BO4A6L7N.js → core-runtime-5UV3KSLE.js} +22 -22
  108. package/chunks/{create-sub-session-B3RRZWZX.js → create-sub-session-OAMGFOTT.js} +23 -23
  109. package/chunks/{daemon-git-worktree-guard-FG4LCHET.js → daemon-git-worktree-guard-5CT5ACGZ.js} +22 -22
  110. package/chunks/{daemon-status-provider-JMSXKGL2.js → daemon-status-provider-4O5GUQXO.js} +30 -30
  111. package/chunks/{daemon-trust-policy-B3G5SW6N.js → daemon-trust-policy-ZTONW2EF.js} +27 -27
  112. package/chunks/{daemon-trust-policy-monitor-2CA65WGV.js → daemon-trust-policy-monitor-AH3MSX6S.js} +27 -27
  113. package/chunks/{deferred-core-runtime-3RDIX523.js → deferred-core-runtime-EZELEJEB.js} +22 -22
  114. package/chunks/{edit-L5GTDREM.js → edit-5E7R4FGC.js} +15 -15
  115. package/chunks/{enterPlanMode-U3GDJRHW.js → enterPlanMode-2ZA3VKE5.js} +13 -13
  116. package/chunks/{environment-I7WX5X5M.js → environment-PZC2VS6I.js} +24 -24
  117. package/chunks/{errors-VRJJMYRX.js → errors-PCDU7EH5.js} +24 -24
  118. package/chunks/{execution-tool-ZP54ULEB.js → execution-tool-VOKPN4R3.js} +15 -15
  119. package/chunks/{execution-worker-KVOEQMMI.js → execution-worker-IBFJY6CH.js} +18 -18
  120. package/chunks/{exitPlanMode-E2WUKN3H.js → exitPlanMode-3KEJ5X4V.js} +13 -13
  121. package/chunks/{fast-path-XC37ILCB.js → fast-path-SWIIYG2P.js} +2 -2
  122. package/chunks/{foreground-runner-DP6XQSZM.js → foreground-runner-SQ4PZZRO.js} +77 -40
  123. package/chunks/{glob-C7LO5FXS.js → glob-OESTKXLC.js} +13 -13
  124. package/chunks/{goal-tools-3AWUWDA2.js → goal-tools-BOLGH57J.js} +13 -13
  125. package/chunks/{handleAutoUpdate-DQ4TG2MS.js → handleAutoUpdate-Q4PZA3AF.js} +25 -25
  126. package/chunks/{i18n-5CVW67JG.js → i18n-NREBC77M.js} +22 -22
  127. package/chunks/{image-gen-27Q5XGGZ.js → image-gen-KX5VPAGI.js} +3 -3
  128. package/chunks/{initializer-H76QQXH4.js → initializer-AZDTSPLB.js} +28 -29
  129. package/chunks/{installationInfo-FHGRGQBH.js → installationInfo-MIBZV3CK.js} +22 -22
  130. package/chunks/{list-YUF62GHJ.js → list-G3F6YMX3.js} +29 -29
  131. package/chunks/{llm-ADULBBKO.js → llm-2ZTGYBSH.js} +58 -58
  132. package/chunks/{llm-content-generator-6U5TYIES.js → llm-content-generator-J7URYLZ7.js} +5 -5
  133. package/chunks/{loadedSettingsAdapter-EYPSWKNO.js → loadedSettingsAdapter-T5K3RK6B.js} +27 -27
  134. package/chunks/{local-execution-environment-OJVVXTIM.js → local-execution-environment-VZZ6GAFG.js} +18 -18
  135. package/chunks/{loggingContentGenerator-FBAGMYJO.js → loggingContentGenerator-3TU53NDQ.js} +15 -15
  136. package/chunks/{managed-npm-update-ODTVQ62K.js → managed-npm-update-SZ7V4ZXK.js} +22 -22
  137. package/chunks/{mcp-B5XE2ZPU.js → mcp-JOYX3TT5.js} +27 -27
  138. package/chunks/{model-call-collection-MVGLDLNL.js → model-call-collection-YABIWR5B.js} +1 -1
  139. package/chunks/{model-configuration-5FSAEZFG.js → model-configuration-CJKGPW2E.js} +28 -28
  140. package/chunks/{modelConfigUtils-WXI3RUVN.js → modelConfigUtils-EZMPC47D.js} +24 -24
  141. package/chunks/{monitor-YSKEJ67F.js → monitor-SG5LYTI4.js} +13 -13
  142. package/chunks/{nonInteractiveCli-Y4VQGPU3.js → nonInteractiveCli-KKENBKF7.js} +58 -59
  143. package/chunks/{nonInteractiveToolExecutor-S6DZNQYH.js → nonInteractiveToolExecutor-4CS4TEMJ.js} +14 -14
  144. package/chunks/{notebook-edit-B7RQZI4A.js → notebook-edit-57PXAYZN.js} +14 -14
  145. package/chunks/{omni-WXNOAMT7.js → omni-FUNBK2BA.js} +12 -12
  146. package/chunks/{openai-44SFHTR2.js → openai-XJV7KGB7.js} +11 -3
  147. package/chunks/{openaiContentGenerator-7LKIXBKH.js → openaiContentGenerator-VSMKP2PK.js} +11 -11
  148. package/chunks/{openaiResponsesContentGenerator-BCQ4GRCZ.js → openaiResponsesContentGenerator-HKMETP6V.js} +7 -7
  149. package/chunks/{processUtils-UOUOWKIO.js → processUtils-QMGAKTAD.js} +2 -2
  150. package/chunks/{prompt-terminal-ledger-GCAC6CVW.js → prompt-terminal-ledger-26V5OPOY.js} +23 -23
  151. package/chunks/{pty-host-process-Y4BPXZFM.js → pty-host-process-UP752FWV.js} +1 -1
  152. package/chunks/{reactive-degrade-DAD2GNTE.js → reactive-degrade-J7RMY47P.js} +11 -11
  153. package/chunks/{read-file-4M25AWZW.js → read-file-NOSU4AB6.js} +2 -2
  154. package/chunks/{resumeHistoryUtils-A2ZIPK72.js → resumeHistoryUtils-KQDIT4GG.js} +27 -28
  155. package/chunks/{ripGrep-ULG5YOFZ.js → ripGrep-X5XFME7P.js} +2 -2
  156. package/chunks/{run-o1-code-serve-J3KMS2EV.js → run-o1-code-serve-LBX526TI.js} +43 -43
  157. package/chunks/{sandboxConfig-37E2NZVJ.js → sandboxConfig-XSQ3WWPO.js} +22 -22
  158. package/chunks/{scheduled-tasks-VYOEL3HD.js → scheduled-tasks-2C2BJKKF.js} +28 -28
  159. package/chunks/{scheduler-JOUK3FZE.js → scheduler-MYI7M6ZV.js} +24 -24
  160. package/chunks/{serve-26KUEPHX.js → serve-I4442E26.js} +27 -27
  161. package/chunks/{server-PTOFCXOE.js → server-QYP5Y5X7.js} +134 -134
  162. package/chunks/{session-2Q2UN3P6.js → session-OIFZMGIG.js} +59 -60
  163. package/chunks/{session-YDZJ2DIQ.js → session-OYM3OHGL.js} +2 -2
  164. package/chunks/{session-attachments-root-N5HYHFBJ.js → session-attachments-root-MRIKLMKD.js} +22 -22
  165. package/chunks/{session-pr-refresh-JFJZC4R2.js → session-pr-refresh-6GHYSKLU.js} +27 -27
  166. package/chunks/{settings-AL3WSHXU.js → settings-CTNVOXKI.js} +26 -26
  167. package/chunks/{shell-PIDQ3F7H.js → shell-PYQDIUC3.js} +13 -13
  168. package/chunks/{skill-KBAFPZTY.js → skill-6PVIODCP.js} +2 -2
  169. package/chunks/{skill-settings-XKAM252R.js → skill-settings-TJTEFJ2P.js} +26 -26
  170. package/chunks/{spawnChannel-43MBG5JQ.js → spawnChannel-73QZTEZU.js} +23 -23
  171. package/chunks/{standalone-update-PKNAEETO.js → standalone-update-I7B4HYFF.js} +24 -24
  172. package/chunks/{startInteractiveUI-UJC4FAPU.js → startInteractiveUI-2IHBYFXY.js} +229 -177
  173. package/chunks/{supervisor-runner-YD27MXSJ.js → supervisor-runner-MDQEC376.js} +2 -2
  174. package/chunks/{team-create-GMWVLBIQ.js → team-create-NUDDVJB3.js} +13 -13
  175. package/chunks/{team-plan-approval-UCQJ57EP.js → team-plan-approval-HSZUKHPE.js} +13 -13
  176. package/chunks/{terminal-image-renderer-P55NEO7K.js → terminal-image-renderer-HWTISMNL.js} +22 -22
  177. package/chunks/{theme-manager-QTT6RX5N.js → theme-manager-MROOV6VP.js} +23 -24
  178. package/chunks/{tool-result-media-YP4IHM2C.js → tool-result-media-MX55ROPV.js} +12 -12
  179. package/chunks/{tool-search-G2ORH5ZP.js → tool-search-AQFQKLVO.js} +2 -2
  180. package/chunks/{total-session-admission-PIGPEE7I.js → total-session-admission-KVWPGZPG.js} +25 -25
  181. package/chunks/{trustedFolders-F3R55CXV.js → trustedFolders-QJG5VHDQ.js} +23 -23
  182. package/chunks/{undici-I7LHD7IT.js → undici-M5SHDWIM.js} +659 -230
  183. package/chunks/{update-relaunch-ZKMM7F7X.js → update-relaunch-2JR5JPF2.js} +5 -5
  184. package/chunks/{updateCheck-J3VNU2IK.js → updateCheck-YMZA57UC.js} +22 -22
  185. package/chunks/{upload-config-47HNQCBS.js → upload-config-FAYLOGRK.js} +9 -9
  186. package/chunks/{useAutoAcceptIndicator-7CHZOIWY.js → useAutoAcceptIndicator-YP5XVQYG.js} +30 -30
  187. package/chunks/{validateNonInterActiveAuth-IKMKA66V.js → validateNonInterActiveAuth-4EB6LXQY.js} +56 -57
  188. package/chunks/{version-3U5P6SJG.js → version-ZN2GS3CQ.js} +1 -1
  189. package/chunks/{web-fetch-4VJCYGQW.js → web-fetch-ICZ3KY5Z.js} +3 -3
  190. package/chunks/{web-search-K6CE33DM.js → web-search-UTZSXUV5.js} +10 -10
  191. package/chunks/{web-shell-static-OOIIII74.js → web-shell-static-LITKZKQN.js} +2 -2
  192. package/chunks/{workflow-7CZKMVZN.js → workflow-X6BKVUYT.js} +14 -14
  193. package/chunks/{workspace-providers-status-6KD3IGK5.js → workspace-providers-status-4BAUYRPL.js} +32 -32
  194. package/chunks/{workspace-registration-store-MDPW7CEZ.js → workspace-registration-store-6LZKX2RB.js} +1 -1
  195. package/chunks/{workspace-registry-WGBHXPDQ.js → workspace-registry-M3HEVDT5.js} +25 -25
  196. package/chunks/{workspace-runtime-coordinator-Z3HOGU45.js → workspace-runtime-coordinator-4VTVVFTK.js} +25 -25
  197. package/chunks/{workspace-service-JLH4B5SW.js → workspace-service-QMGQB3OE.js} +29 -29
  198. package/chunks/{workspace-skills-status-DK7QZDFR.js → workspace-skills-status-ZY3N5ZUH.js} +28 -28
  199. package/chunks/{workspace-trust-reconciler-7ZJMFTAS.js → workspace-trust-reconciler-BFW5OR5C.js} +30 -30
  200. package/chunks/{write-file-CLOS6ZQS.js → write-file-KLEVHL3D.js} +15 -15
  201. package/chunks/{zoom-image-U3KNRND3.js → zoom-image-PXWPZ35Z.js} +2 -2
  202. package/cli.js +16 -16
  203. package/examples/mcp-server/example.ts +4 -4
  204. package/examples/mcp-server/package.json +2 -2
  205. package/examples/starter/example.ts +4 -4
  206. package/examples/starter/package.json +2 -2
  207. package/execution-worker.js +1 -1
  208. package/export-transcript-document.js +136 -199
  209. package/package.json +2 -2
  210. package/release-notes.json +13 -0
  211. package/web-shell/assets/{abnfDiagram-VCTEODGH-C8eqGoOq.js → abnfDiagram-VCTEODGH-CyS097jd.js} +1 -1
  212. package/web-shell/assets/{arc-CoUm8dfZ.js → arc-C5ag-p3N.js} +1 -1
  213. package/web-shell/assets/{architectureDiagram-5GKGNRK7-TpllHxSp.js → architectureDiagram-5GKGNRK7-BdMkuHkQ.js} +1 -1
  214. package/web-shell/assets/{blockDiagram-NRAW4CY4-WEyyYhux.js → blockDiagram-NRAW4CY4-C3UYLyTT.js} +1 -1
  215. package/web-shell/assets/{c4Diagram-UCG6FXSJ-CtPTXMOO.js → c4Diagram-UCG6FXSJ-DFtJftTV.js} +1 -1
  216. package/web-shell/assets/channel-oDZ5nd9A.js +1 -0
  217. package/web-shell/assets/{chunk-2Q5K7J3B-Ds196WJl.js → chunk-2Q5K7J3B-C2aFjqep.js} +1 -1
  218. package/web-shell/assets/{chunk-5VM5RSS4-sKeSdrrt.js → chunk-5VM5RSS4-tYH7pzRt.js} +1 -1
  219. package/web-shell/assets/{chunk-F27PBJKO-LHNSMQOB.js → chunk-F27PBJKO-DwY_ngVY.js} +1 -1
  220. package/web-shell/assets/{chunk-G27WJ6UU-CZvAc4j3.js → chunk-G27WJ6UU-CW5E-aG-.js} +1 -1
  221. package/web-shell/assets/{chunk-JWPE2WC7-Dphlp9Xg.js → chunk-JWPE2WC7-UhCqXW5N.js} +1 -1
  222. package/web-shell/assets/{chunk-LCL6LL3I-CMPXpFS5.js → chunk-LCL6LL3I-KnzQ1zLY.js} +1 -1
  223. package/web-shell/assets/{chunk-POPQ4Y6H-CGWcjLpZ.js → chunk-POPQ4Y6H-DDzG7AYc.js} +1 -1
  224. package/web-shell/assets/{chunk-SVP7TREG-CE4Pe9fb.js → chunk-SVP7TREG-DsNsZgNu.js} +1 -1
  225. package/web-shell/assets/{chunk-XXDRQBXY-BtIM7Aj_.js → chunk-XXDRQBXY-DsN_-dPN.js} +1 -1
  226. package/web-shell/assets/classDiagram-DTDB5LWJ-DqPncmiN.js +1 -0
  227. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DqPncmiN.js +1 -0
  228. package/web-shell/assets/{cose-bilkent-JH36ORCC-DG8UnitR.js → cose-bilkent-JH36ORCC-DFcKfzfA.js} +1 -1
  229. package/web-shell/assets/{cynefin-OW5HDTMX-wSfFFOGS.js → cynefin-OW5HDTMX-ByKijDw9.js} +1 -1
  230. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CCo9QoOk.js → cynefinDiagram-5FMLGOSQ-B4kGwEej.js} +1 -1
  231. package/web-shell/assets/{dagre-3AP2YEHR-BCMIHNF9.js → dagre-3AP2YEHR-CRV8UYTU.js} +1 -1
  232. package/web-shell/assets/{diagram-S7CK7UJ4-DdqeWJG1.js → diagram-S7CK7UJ4-DKTiyERa.js} +1 -1
  233. package/web-shell/assets/{diagram-UQ7AKVKN-CFZzixOJ.js → diagram-UQ7AKVKN-D5mn_Nku.js} +1 -1
  234. package/web-shell/assets/{diagram-VSXAHHWV-Q3zbYC-V.js → diagram-VSXAHHWV-Dh_rhvjS.js} +1 -1
  235. package/web-shell/assets/{diagram-VX7I27RA-LAng4oE6.js → diagram-VX7I27RA-hUvldCLj.js} +1 -1
  236. package/web-shell/assets/{diagram-Z3DM3KII-DP8kMQos.js → diagram-Z3DM3KII-w_Fbc1_z.js} +1 -1
  237. package/web-shell/assets/{ebnfDiagram-PWID7BFC-C8p0vrLb.js → ebnfDiagram-PWID7BFC-DiNETIFd.js} +1 -1
  238. package/web-shell/assets/{erDiagram-SSCWMZ5O-BsVb4lXS.js → erDiagram-SSCWMZ5O-C4AcmrAq.js} +1 -1
  239. package/web-shell/assets/{flowDiagram-A5DVABFB-DPojesgF.js → flowDiagram-A5DVABFB-D9mOOdFA.js} +1 -1
  240. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BwIOKSIg.js → ganttDiagram-EL5Y4UJY-CN6niq6J.js} +1 -1
  241. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-2ufnLs3X.js → gitGraphDiagram-WWUBYQGX-D5AoFWfE.js} +1 -1
  242. package/web-shell/assets/{index-DUXz2aHf.js → index-CS8CwW9f.js} +516 -485
  243. package/web-shell/assets/{index-CJrdSS1J.js → index-DOw9K3Bq.js} +1 -1
  244. package/web-shell/assets/{infoDiagram-RXCK75RN-CBJzq9Eg.js → infoDiagram-RXCK75RN-BMmTZffy.js} +1 -1
  245. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CCRdDcqz.js → ishikawaDiagram-5VMMS53U-DEKpvoPS.js} +1 -1
  246. package/web-shell/assets/{journeyDiagram-EYS64GPL-BNEHCVRP.js → journeyDiagram-EYS64GPL-DlCviwKj.js} +1 -1
  247. package/web-shell/assets/{kanban-definition-3QL26DDD-C4_Fz7Af.js → kanban-definition-3QL26DDD-BkVlPyRx.js} +1 -1
  248. package/web-shell/assets/{layout-DJCbyo7j.js → layout-CJPeVll6.js} +1 -1
  249. package/web-shell/assets/{linear-BT7vD4rS.js → linear-B09bulGi.js} +1 -1
  250. package/web-shell/assets/mermaid.core-CiMLBEnS.js +312 -0
  251. package/web-shell/assets/{mindmap-definition-FBJOCRG2-CWyPLmaT.js → mindmap-definition-FBJOCRG2-VMATJEz6.js} +1 -1
  252. package/web-shell/assets/{pegDiagram-XKGWAZYB-C26bsO8L.js → pegDiagram-XKGWAZYB-BBteqi33.js} +1 -1
  253. package/web-shell/assets/{pieDiagram-E7YTZNPT-YbicVSIw.js → pieDiagram-E7YTZNPT-CfYDtWH-.js} +1 -1
  254. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Bfb9tuq4.js → quadrantDiagram-AXDQQJYC-B4NTRdT0.js} +1 -1
  255. package/web-shell/assets/{railroadDiagram-O6MQD6OU-BWq89Gp-.js → railroadDiagram-O6MQD6OU-DpvXXjTt.js} +1 -1
  256. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CbimERt9.js → requirementDiagram-EFPCY7ZU-Uj9T6A6X.js} +1 -1
  257. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-2eUcs1CY.js → sankeyDiagram-P5KCCOFB-PjVo1Bfo.js} +1 -1
  258. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DlTCWm8V.js → sequenceDiagram-WJ2MYXX4-CW2KqqvI.js} +1 -1
  259. package/web-shell/assets/{sizeCapture-X5ZJPWSS-B8238B5f.js → sizeCapture-X5ZJPWSS-BSxJAFlW.js} +1 -1
  260. package/web-shell/assets/{stateDiagram-HBIQ2CUA-Dd2jd_kW.js → stateDiagram-HBIQ2CUA-Cx2NCYF1.js} +1 -1
  261. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BGcfdFqB.js +1 -0
  262. package/web-shell/assets/{swimlanes-XN3QIQJK-D7DY2esd.js → swimlanes-XN3QIQJK-BqbjLLi8.js} +1 -1
  263. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DHmBybUx.js +8 -0
  264. package/web-shell/assets/{timeline-definition-24CTP7MA-CgGRayzz.js → timeline-definition-24CTP7MA-Dua9VLHV.js} +1 -1
  265. package/web-shell/assets/{vennDiagram-4TSXK5OY-aF-kYD6H.js → vennDiagram-4TSXK5OY-C8PCMTKz.js} +1 -1
  266. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BcTegb-P.js → wardleyDiagram-VM6X3IG4-Bcs1T3GE.js} +1 -1
  267. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Cbp7US-v.js → xychartDiagram-S5SC5T6Z-CkNyXMHd.js} +1 -1
  268. package/web-shell/index.html +1 -1
  269. package/web-shell/sw.js +1 -1
  270. package/chunks/chunk-YQQ7QFC5.js +0 -945
  271. package/web-shell/assets/channel-Cq574eJp.js +0 -1
  272. package/web-shell/assets/classDiagram-DTDB5LWJ-DZow5usR.js +0 -1
  273. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DZow5usR.js +0 -1
  274. package/web-shell/assets/mermaid.core-Cqv8h1sX.js +0 -312
  275. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-qZPDJzMf.js +0 -1
  276. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B1OVWrqB.js +0 -8
@@ -5148,7 +5148,7 @@ var require_utf322 = __commonJS({
5148
5148
  __name(Utf32Encoder, "Utf32Encoder");
5149
5149
  Utf32Encoder.prototype.write = function(str) {
5150
5150
  var src = Buffer2.from(str, "ucs2");
5151
- var dst = Buffer2.alloc(src.length * 2);
5151
+ var dst = Buffer2.alloc(src.length * 2 + 4);
5152
5152
  var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
5153
5153
  var offset = 0;
5154
5154
  for (var i = 0; i < src.length; i += 2) {
@@ -5216,9 +5216,9 @@ var require_utf322 = __commonJS({
5216
5216
  }
5217
5217
  if (overflow.length === 4) {
5218
5218
  if (isLE) {
5219
- codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
5219
+ codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
5220
5220
  } else {
5221
- codepoint = overflow[i + 3] | overflow[i + 2] << 8 | overflow[i + 1] << 16 | overflow[i] << 24;
5221
+ codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
5222
5222
  }
5223
5223
  overflow.length = 0;
5224
5224
  offset = _writeCodepoint(dst, offset, codepoint, badChar);
@@ -5254,7 +5254,11 @@ var require_utf322 = __commonJS({
5254
5254
  }
5255
5255
  __name(_writeCodepoint, "_writeCodepoint");
5256
5256
  Utf32Decoder.prototype.end = function() {
5257
+ if (this.overflow.length === 0) {
5258
+ return;
5259
+ }
5257
5260
  this.overflow.length = 0;
5261
+ return String.fromCharCode(this.badChar);
5258
5262
  };
5259
5263
  exports.utf32 = Utf32AutoCodec;
5260
5264
  exports.ucs4 = "utf32";
@@ -5903,6 +5907,8 @@ var require_sbcs_data2 = __commonJS({
5903
5907
  elot928: "iso88597",
5904
5908
  hebrew: "iso88598",
5905
5909
  hebrew8: "iso88598",
5910
+ iso88598i: "iso88598",
5911
+ iso88598e: "iso88598",
5906
5912
  turkish: "iso88599",
5907
5913
  turkish8: "iso88599",
5908
5914
  thai: "iso885911",
@@ -18675,14 +18681,17 @@ var require_dist2 = __commonJS({
18675
18681
  }
18676
18682
  __name(format, "format");
18677
18683
  function parse(header, options) {
18684
+ const stopChar = options?.comma === true ? COMMA : 65536;
18678
18685
  const len = header.length;
18679
- let index = skipOWS(header, 0, len);
18686
+ let index = skipOWS(header, options?.start ?? 0, len);
18680
18687
  const valueStart = index;
18681
- index = skipValue(header, index, len);
18688
+ index = skipValue(header, index, len, stopChar);
18682
18689
  const valueEnd = trailingOWS(header, valueStart, index);
18683
18690
  const type = header.slice(valueStart, valueEnd).toLowerCase();
18684
- const parameters = options?.parameters === false ? new NullObject() : parseParameters(header, index, len);
18685
- return { type, parameters };
18691
+ if (options?.parameters === false) {
18692
+ return { type, index, parameters: new NullObject() };
18693
+ }
18694
+ return parseParameters(header, type, index, len, stopChar);
18686
18695
  }
18687
18696
  __name(parse, "parse");
18688
18697
  var SP = 32;
@@ -18691,13 +18700,18 @@ var require_dist2 = __commonJS({
18691
18700
  var EQ = 61;
18692
18701
  var DQUOTE = 34;
18693
18702
  var BSLASH = 92;
18694
- function parseParameters(header, index, len) {
18703
+ var COMMA = 44;
18704
+ function parseParameters(header, type, index, len, stopChar) {
18695
18705
  const parameters = new NullObject();
18696
18706
  parameter: while (index < len) {
18707
+ if (header.charCodeAt(index) === stopChar)
18708
+ break;
18697
18709
  index = skipOWS(header, index + 1, len);
18698
18710
  const keyStart = index;
18699
18711
  while (index < len) {
18700
18712
  const code = header.charCodeAt(index);
18713
+ if (code === stopChar)
18714
+ break parameter;
18701
18715
  if (code === SEMI)
18702
18716
  continue parameter;
18703
18717
  if (code === EQ) {
@@ -18710,7 +18724,7 @@ var require_dist2 = __commonJS({
18710
18724
  while (index < len) {
18711
18725
  const code2 = header.charCodeAt(index++);
18712
18726
  if (code2 === DQUOTE) {
18713
- index = skipValue(header, index, len);
18727
+ index = skipValue(header, index, len, stopChar);
18714
18728
  if (parameters[key] === void 0)
18715
18729
  parameters[key] = value;
18716
18730
  break;
@@ -18724,7 +18738,7 @@ var require_dist2 = __commonJS({
18724
18738
  continue parameter;
18725
18739
  }
18726
18740
  const valueStart = index;
18727
- index = skipValue(header, index, len);
18741
+ index = skipValue(header, index, len, stopChar);
18728
18742
  if (parameters[key] === void 0) {
18729
18743
  const valueEnd = trailingOWS(header, valueStart, index);
18730
18744
  parameters[key] = header.slice(valueStart, valueEnd);
@@ -18734,13 +18748,13 @@ var require_dist2 = __commonJS({
18734
18748
  index++;
18735
18749
  }
18736
18750
  }
18737
- return parameters;
18751
+ return { type, index, parameters };
18738
18752
  }
18739
18753
  __name(parseParameters, "parseParameters");
18740
- function skipValue(str, index, len) {
18754
+ function skipValue(str, index, len, stopChar) {
18741
18755
  while (index < len) {
18742
- const char = str.charCodeAt(index);
18743
- if (char === SEMI)
18756
+ const code = str.charCodeAt(index);
18757
+ if (code === SEMI || code === stopChar)
18744
18758
  break;
18745
18759
  index++;
18746
18760
  }
@@ -18778,63 +18792,6 @@ var require_dist2 = __commonJS({
18778
18792
  }
18779
18793
  });
18780
18794
 
18781
- // node_modules/body-parser/lib/utils.js
18782
- var require_utils = __commonJS({
18783
- "node_modules/body-parser/lib/utils.js"(exports, module) {
18784
- "use strict";
18785
- init_esbuild_shims();
18786
- var bytes = require_bytes();
18787
- var contentType = require_dist2();
18788
- var typeis = require_type_is();
18789
- module.exports = {
18790
- getCharset,
18791
- normalizeOptions,
18792
- passthrough
18793
- };
18794
- function getCharset(req) {
18795
- const header = req.headers["content-type"];
18796
- if (!header) return void 0;
18797
- return contentType.parse(header).parameters.charset?.toLowerCase();
18798
- }
18799
- __name(getCharset, "getCharset");
18800
- function typeChecker(type) {
18801
- return /* @__PURE__ */ __name(function checkType(req) {
18802
- return Boolean(typeis(req, type));
18803
- }, "checkType");
18804
- }
18805
- __name(typeChecker, "typeChecker");
18806
- function normalizeOptions(options, defaultType) {
18807
- if (!defaultType) {
18808
- throw new TypeError("defaultType must be provided");
18809
- }
18810
- const inflate = options?.inflate !== false;
18811
- const limit = typeof options?.limit === "undefined" || options?.limit === null ? 102400 : bytes.parse(options.limit);
18812
- const type = options?.type || defaultType;
18813
- const verify = options?.verify || false;
18814
- const defaultCharset = options?.defaultCharset || "utf-8";
18815
- if (limit === null) {
18816
- throw new TypeError(`option limit "${String(options.limit)}" is invalid`);
18817
- }
18818
- if (verify !== false && typeof verify !== "function") {
18819
- throw new TypeError("option verify must be function");
18820
- }
18821
- const shouldParse = typeof type !== "function" ? typeChecker(type) : type;
18822
- return {
18823
- inflate,
18824
- limit,
18825
- verify,
18826
- defaultCharset,
18827
- shouldParse
18828
- };
18829
- }
18830
- __name(normalizeOptions, "normalizeOptions");
18831
- function passthrough(value) {
18832
- return value;
18833
- }
18834
- __name(passthrough, "passthrough");
18835
- }
18836
- });
18837
-
18838
18795
  // node_modules/body-parser/lib/read.js
18839
18796
  var require_read = __commonJS({
18840
18797
  "node_modules/body-parser/lib/read.js"(exports, module) {
@@ -18846,8 +18803,9 @@ var require_read = __commonJS({
18846
18803
  var onFinished = require_on_finished();
18847
18804
  var zlib = __require("node:zlib");
18848
18805
  var hasBody = require_type_is().hasBody;
18849
- var { getCharset } = require_utils();
18806
+ var contentType = require_dist2();
18850
18807
  module.exports = read;
18808
+ var hasZstandardSupport = "createZstdDecompress" in zlib;
18851
18809
  function read(req, res, next, parse, debug, options) {
18852
18810
  if (onFinished.isFinished(req)) {
18853
18811
  debug("body already parsed");
@@ -18881,26 +18839,40 @@ var require_read = __commonJS({
18881
18839
  }
18882
18840
  }
18883
18841
  let length;
18884
- const opts = options;
18885
18842
  let stream;
18886
- const verify = opts.verify;
18887
- try {
18888
- stream = contentstream(req, debug, opts.inflate);
18889
- length = stream.length;
18890
- stream.length = void 0;
18891
- } catch (err) {
18892
- return next(err);
18893
- }
18894
- opts.length = length;
18895
- opts.encoding = verify ? null : encoding;
18896
- if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
18843
+ const verify = options.verify;
18844
+ if (verify && encoding !== null && !iconv.encodingExists(encoding)) {
18897
18845
  return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
18898
18846
  charset: encoding.toLowerCase(),
18899
18847
  type: "charset.unsupported"
18900
18848
  }));
18901
18849
  }
18850
+ try {
18851
+ const contentEncoding = (req.headers["content-encoding"] || "identity").toLowerCase();
18852
+ debug('content-encoding "%s"', contentEncoding);
18853
+ if (options.inflate === false && contentEncoding !== "identity") {
18854
+ throw createError(415, "content encoding unsupported", {
18855
+ encoding: contentEncoding,
18856
+ type: "encoding.unsupported"
18857
+ });
18858
+ }
18859
+ if (contentEncoding === "identity") {
18860
+ length = req.headers["content-length"];
18861
+ stream = req;
18862
+ } else {
18863
+ stream = createDecompressionStream(contentEncoding, debug);
18864
+ req.pipe(stream);
18865
+ }
18866
+ } catch (err) {
18867
+ return next(err);
18868
+ }
18869
+ const rawBodyOptions = {
18870
+ length,
18871
+ encoding: verify ? null : encoding,
18872
+ limit: options.limit
18873
+ };
18902
18874
  debug("read body");
18903
- getBody(stream, opts, function(error, body) {
18875
+ getBody(stream, rawBodyOptions, function(error, body) {
18904
18876
  if (error) {
18905
18877
  let _error;
18906
18878
  if (error.type === "encoding.unsupported") {
@@ -18920,6 +18892,13 @@ var require_read = __commonJS({
18920
18892
  }, "onfinished"));
18921
18893
  return;
18922
18894
  }
18895
+ if (stream !== req) {
18896
+ req.unpipe(stream);
18897
+ stream.on("error", () => {
18898
+ });
18899
+ stream.destroy();
18900
+ req.resume();
18901
+ }
18923
18902
  if (verify) {
18924
18903
  try {
18925
18904
  debug("verify body");
@@ -18948,25 +18927,6 @@ var require_read = __commonJS({
18948
18927
  });
18949
18928
  }
18950
18929
  __name(read, "read");
18951
- function contentstream(req, debug, inflate) {
18952
- const encoding = (req.headers["content-encoding"] || "identity").toLowerCase();
18953
- const length = req.headers["content-length"];
18954
- debug('content-encoding "%s"', encoding);
18955
- if (inflate === false && encoding !== "identity") {
18956
- throw createError(415, "content encoding unsupported", {
18957
- encoding,
18958
- type: "encoding.unsupported"
18959
- });
18960
- }
18961
- if (encoding === "identity") {
18962
- req.length = length;
18963
- return req;
18964
- }
18965
- const stream = createDecompressionStream(encoding, debug);
18966
- req.pipe(stream);
18967
- return stream;
18968
- }
18969
- __name(contentstream, "contentstream");
18970
18930
  function createDecompressionStream(encoding, debug) {
18971
18931
  switch (encoding) {
18972
18932
  case "deflate":
@@ -18978,12 +18938,16 @@ var require_read = __commonJS({
18978
18938
  case "br":
18979
18939
  debug("brotli decompress body");
18980
18940
  return zlib.createBrotliDecompress();
18981
- default:
18982
- throw createError(415, 'unsupported content encoding "' + encoding + '"', {
18983
- encoding,
18984
- type: "encoding.unsupported"
18985
- });
18941
+ case "zstd":
18942
+ if (hasZstandardSupport) {
18943
+ debug("zstd decompress body");
18944
+ return zlib.createZstdDecompress();
18945
+ }
18986
18946
  }
18947
+ throw createError(415, 'unsupported content encoding "' + encoding + '"', {
18948
+ encoding,
18949
+ type: "encoding.unsupported"
18950
+ });
18987
18951
  }
18988
18952
  __name(createDecompressionStream, "createDecompressionStream");
18989
18953
  function dump(req, callback) {
@@ -18995,6 +18959,61 @@ var require_read = __commonJS({
18995
18959
  }
18996
18960
  }
18997
18961
  __name(dump, "dump");
18962
+ function getCharset(req) {
18963
+ const header = req.headers["content-type"];
18964
+ if (!header) return void 0;
18965
+ return contentType.parse(header).parameters.charset?.toLowerCase();
18966
+ }
18967
+ __name(getCharset, "getCharset");
18968
+ }
18969
+ });
18970
+
18971
+ // node_modules/body-parser/lib/utils.js
18972
+ var require_utils = __commonJS({
18973
+ "node_modules/body-parser/lib/utils.js"(exports, module) {
18974
+ "use strict";
18975
+ init_esbuild_shims();
18976
+ var bytes = require_bytes();
18977
+ var typeis = require_type_is();
18978
+ module.exports = {
18979
+ normalizeOptions,
18980
+ passthrough
18981
+ };
18982
+ function typeChecker(type) {
18983
+ return /* @__PURE__ */ __name(function checkType(req) {
18984
+ return Boolean(typeis(req, type));
18985
+ }, "checkType");
18986
+ }
18987
+ __name(typeChecker, "typeChecker");
18988
+ function normalizeOptions(options, defaultType) {
18989
+ if (!defaultType) {
18990
+ throw new TypeError("defaultType must be provided");
18991
+ }
18992
+ const inflate = options?.inflate !== false;
18993
+ const limit = typeof options?.limit === "undefined" || options?.limit === null ? 102400 : bytes.parse(options.limit);
18994
+ const type = options?.type || defaultType;
18995
+ const verify = options?.verify || false;
18996
+ const defaultCharset = options?.defaultCharset || "utf-8";
18997
+ if (limit === null) {
18998
+ throw new TypeError(`option limit "${String(options.limit)}" is invalid`);
18999
+ }
19000
+ if (verify !== false && typeof verify !== "function") {
19001
+ throw new TypeError("option verify must be function");
19002
+ }
19003
+ const shouldParse = typeof type !== "function" ? typeChecker(type) : type;
19004
+ return {
19005
+ inflate,
19006
+ limit,
19007
+ verify,
19008
+ defaultCharset,
19009
+ shouldParse
19010
+ };
19011
+ }
19012
+ __name(normalizeOptions, "normalizeOptions");
19013
+ function passthrough(value) {
19014
+ return value;
19015
+ }
19016
+ __name(passthrough, "passthrough");
18998
19017
  }
18999
19018
  });
19000
19019
 
@@ -19007,7 +19026,7 @@ var require_json = __commonJS({
19007
19026
  var read = require_read();
19008
19027
  var { normalizeOptions } = require_utils();
19009
19028
  module.exports = json;
19010
- var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/;
19029
+ var FIRST_NON_WHITESPACE_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d]|$)/;
19011
19030
  var JSON_SYNTAX_CHAR = "#";
19012
19031
  var JSON_SYNTAX_REGEXP = /#+/g;
19013
19032
  function json(options) {
@@ -19031,10 +19050,12 @@ var require_json = __commonJS({
19031
19050
  if (body.length === 0) {
19032
19051
  return {};
19033
19052
  }
19034
- const first = firstchar(body);
19035
- if (first !== "{" && first !== "[") {
19036
- debug("strict violation");
19037
- throw createStrictSyntaxError(body, first);
19053
+ if (body[0] !== "{" && body[0] !== "[") {
19054
+ const first = firstNonWhitespaceChar(body);
19055
+ if (first !== "{" && first !== "[") {
19056
+ debug("strict violation");
19057
+ throw createStrictSyntaxError(body, first);
19058
+ }
19038
19059
  }
19039
19060
  try {
19040
19061
  debug("parse json");
@@ -19082,11 +19103,11 @@ var require_json = __commonJS({
19082
19103
  }
19083
19104
  }
19084
19105
  __name(createStrictSyntaxError, "createStrictSyntaxError");
19085
- function firstchar(str) {
19086
- const match = FIRST_CHAR_REGEXP.exec(str);
19087
- return match ? match[1] : void 0;
19106
+ function firstNonWhitespaceChar(str) {
19107
+ const match = FIRST_NON_WHITESPACE_REGEXP.exec(str);
19108
+ return match && match[1] ? match[1] : void 0;
19088
19109
  }
19089
- __name(firstchar, "firstchar");
19110
+ __name(firstNonWhitespaceChar, "firstNonWhitespaceChar");
19090
19111
  function normalizeJsonSyntaxError(error, obj) {
19091
19112
  const keys = Object.getOwnPropertyNames(error);
19092
19113
  for (let i = 0; i < keys.length; i++) {
@@ -20846,16 +20867,17 @@ var require_side_channel = __commonJS({
20846
20867
  }
20847
20868
  });
20848
20869
 
20849
- // node_modules/qs/lib/formats.js
20870
+ // node_modules/body-parser/node_modules/qs/lib/formats.js
20850
20871
  var require_formats = __commonJS({
20851
- "node_modules/qs/lib/formats.js"(exports, module) {
20872
+ "node_modules/body-parser/node_modules/qs/lib/formats.js"(exports, module) {
20852
20873
  "use strict";
20853
20874
  init_esbuild_shims();
20854
20875
  var replace = String.prototype.replace;
20855
20876
  var percentTwenties = /%20/g;
20856
20877
  var Format = {
20857
20878
  RFC1738: "RFC1738",
20858
- RFC3986: "RFC3986"
20879
+ RFC3986: "RFC3986",
20880
+ WHATWG: "WHATWG"
20859
20881
  };
20860
20882
  module.exports = {
20861
20883
  "default": Format.RFC3986,
@@ -20865,17 +20887,21 @@ var require_formats = __commonJS({
20865
20887
  }, "RFC1738"),
20866
20888
  RFC3986: /* @__PURE__ */ __name(function(value) {
20867
20889
  return String(value);
20868
- }, "RFC3986")
20890
+ }, "RFC3986"),
20891
+ WHATWG: /* @__PURE__ */ __name(function(value) {
20892
+ return replace.call(value, percentTwenties, "+");
20893
+ }, "WHATWG")
20869
20894
  },
20870
20895
  RFC1738: Format.RFC1738,
20871
- RFC3986: Format.RFC3986
20896
+ RFC3986: Format.RFC3986,
20897
+ WHATWG: Format.WHATWG
20872
20898
  };
20873
20899
  }
20874
20900
  });
20875
20901
 
20876
- // node_modules/qs/lib/utils.js
20902
+ // node_modules/body-parser/node_modules/qs/lib/utils.js
20877
20903
  var require_utils2 = __commonJS({
20878
- "node_modules/qs/lib/utils.js"(exports, module) {
20904
+ "node_modules/body-parser/node_modules/qs/lib/utils.js"(exports, module) {
20879
20905
  "use strict";
20880
20906
  init_esbuild_shims();
20881
20907
  var formats = require_formats();
@@ -20897,6 +20923,17 @@ var require_utils2 = __commonJS({
20897
20923
  var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
20898
20924
  overflowChannel.set(obj, maxIndex);
20899
20925
  }, "setMaxIndex");
20926
+ var conflictChannel = getSideChannel();
20927
+ var markConflict = /* @__PURE__ */ __name(function markConflict2(obj, maxIndex) {
20928
+ conflictChannel.set(obj, maxIndex);
20929
+ return obj;
20930
+ }, "markConflict");
20931
+ var isConflict = /* @__PURE__ */ __name(function isConflict2(obj) {
20932
+ return conflictChannel.has(obj);
20933
+ }, "isConflict");
20934
+ var getConflictIndex = /* @__PURE__ */ __name(function getConflictIndex2(obj) {
20935
+ return conflictChannel.get(obj);
20936
+ }, "getConflictIndex");
20900
20937
  var hexTable = (function() {
20901
20938
  var array = [];
20902
20939
  for (var i = 0; i < 256; ++i) {
@@ -20940,6 +20977,27 @@ var require_utils2 = __commonJS({
20940
20977
  obj[key] = value;
20941
20978
  }
20942
20979
  }, "setProperty");
20980
+ var maxNumericIndex = /* @__PURE__ */ __name(function maxNumericIndex2(obj, min) {
20981
+ var max = min;
20982
+ var keys = Object.keys(obj);
20983
+ for (var i = 0; i < keys.length; ++i) {
20984
+ var num = parseInt(keys[i], 10);
20985
+ if (String(num) === keys[i] && num > max) {
20986
+ max = num;
20987
+ }
20988
+ }
20989
+ return max;
20990
+ }, "maxNumericIndex");
20991
+ var limitedPair = /* @__PURE__ */ __name(function limitedPair2(first, second, options) {
20992
+ var pair = [first, second];
20993
+ if (options && typeof options.arrayLimit === "number" && pair.length > options.arrayLimit) {
20994
+ if (options.throwOnLimitExceeded) {
20995
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
20996
+ }
20997
+ return markOverflow(arrayToObject(pair, options), 1);
20998
+ }
20999
+ return pair;
21000
+ }, "limitedPair");
20943
21001
  var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
20944
21002
  if (!source) {
20945
21003
  return target;
@@ -20959,13 +21017,21 @@ var require_utils2 = __commonJS({
20959
21017
  var newIndex = getMaxIndex(target) + 1;
20960
21018
  target[newIndex] = source;
20961
21019
  setMaxIndex(target, newIndex);
21020
+ } else if (options && options.strictMerge && isConflict(target)) {
21021
+ var nextConflict = getConflictIndex(target) + 1;
21022
+ if (options.throwOnLimitExceeded && typeof options.arrayLimit === "number" && nextConflict >= options.arrayLimit) {
21023
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
21024
+ }
21025
+ target[nextConflict] = source;
21026
+ markConflict(target, nextConflict);
20962
21027
  } else if (options && options.strictMerge) {
20963
- return [target, source];
21028
+ var conflict = limitedPair(target, source, options);
21029
+ return isArray(conflict) ? markConflict(conflict, 1) : conflict;
20964
21030
  } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
20965
21031
  target[source] = true;
20966
21032
  }
20967
21033
  } else {
20968
- return [target, source];
21034
+ return limitedPair(target, source, options);
20969
21035
  }
20970
21036
  return target;
20971
21037
  }
@@ -20991,6 +21057,9 @@ var require_utils2 = __commonJS({
20991
21057
  var mergeTarget = target;
20992
21058
  if (isArray(target) && !isArray(source)) {
20993
21059
  mergeTarget = arrayToObject(target, options);
21060
+ if (isConflict(target)) {
21061
+ markConflict(mergeTarget, target.length - 1);
21062
+ }
20994
21063
  }
20995
21064
  if (isArray(target) && isArray(source)) {
20996
21065
  source.forEach(function(item, i) {
@@ -21021,7 +21090,7 @@ var require_utils2 = __commonJS({
21021
21090
  setProperty(acc, key, value);
21022
21091
  }
21023
21092
  if (isOverflow(source) && !isOverflow(acc)) {
21024
- markOverflow(acc, getMaxIndex(source));
21093
+ markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
21025
21094
  }
21026
21095
  if (isOverflow(acc)) {
21027
21096
  var keyNum = parseInt(key, 10);
@@ -21029,6 +21098,12 @@ var require_utils2 = __commonJS({
21029
21098
  setMaxIndex(acc, keyNum);
21030
21099
  }
21031
21100
  }
21101
+ if (isConflict(acc)) {
21102
+ var conflictKey = parseInt(key, 10);
21103
+ if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
21104
+ markConflict(acc, conflictKey);
21105
+ }
21106
+ }
21032
21107
  return acc;
21033
21108
  }, mergeTarget);
21034
21109
  }, "merge");
@@ -21039,6 +21114,9 @@ var require_utils2 = __commonJS({
21039
21114
  }, target);
21040
21115
  }, "assignSingleSource");
21041
21116
  var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
21117
+ if (typeof str === "string" && str.indexOf("%") === -1) {
21118
+ return str.indexOf("+") === -1 ? str : str.replace(/\+/g, " ");
21119
+ }
21042
21120
  var strWithoutPlus = str.replace(/\+/g, " ");
21043
21121
  if (charset === "iso-8859-1") {
21044
21122
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -21049,6 +21127,52 @@ var require_utils2 = __commonJS({
21049
21127
  return strWithoutPlus;
21050
21128
  }
21051
21129
  }, "decode");
21130
+ var hasToPrimitive = typeof Symbol === "function" && typeof Symbol.toPrimitive === "symbol";
21131
+ var arrayJoin = Array.prototype.join;
21132
+ var arrayToString = Array.prototype.toString;
21133
+ var objectToString = Object.prototype.toString;
21134
+ var toCoercible = /* @__PURE__ */ __name(function toCoercible2(value, joining) {
21135
+ if (!value || typeof value !== "object" && typeof value !== "function") {
21136
+ return value;
21137
+ }
21138
+ if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
21139
+ return value;
21140
+ }
21141
+ if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
21142
+ var ancestors = joining || getSideChannel();
21143
+ if (ancestors.has(value)) {
21144
+ return "";
21145
+ }
21146
+ ancestors.set(value, true);
21147
+ var copy;
21148
+ for (var i = 0; i < value.length; i += 1) {
21149
+ var item = value[i];
21150
+ var coerced = toCoercible2(item, ancestors);
21151
+ if (!copy && coerced !== item) {
21152
+ copy = [];
21153
+ for (var j = 0; j < i; j += 1) {
21154
+ copy[j] = value[j];
21155
+ }
21156
+ }
21157
+ if (copy) {
21158
+ copy[i] = coerced;
21159
+ }
21160
+ }
21161
+ ancestors["delete"](value);
21162
+ return copy || value;
21163
+ }
21164
+ if (typeof value.toString === "function") {
21165
+ return value;
21166
+ }
21167
+ var valueOf = value.valueOf;
21168
+ if (typeof valueOf === "function") {
21169
+ var primitive = valueOf.call(value);
21170
+ if (!primitive || typeof primitive !== "object" && typeof primitive !== "function") {
21171
+ return String(primitive);
21172
+ }
21173
+ }
21174
+ return objectToString.call(value);
21175
+ }, "toCoercible");
21052
21176
  var limit = 1024;
21053
21177
  var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
21054
21178
  if (str.length === 0) {
@@ -21058,12 +21182,12 @@ var require_utils2 = __commonJS({
21058
21182
  if (typeof str === "symbol") {
21059
21183
  string = Symbol.prototype.toString.call(str);
21060
21184
  } else if (typeof str !== "string") {
21061
- string = String(str);
21185
+ string = String(toCoercible(str));
21062
21186
  }
21063
21187
  if (charset === "iso-8859-1") {
21064
21188
  return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
21065
21189
  return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
21066
- });
21190
+ }).replace(/\+/g, "%2B");
21067
21191
  }
21068
21192
  var out = "";
21069
21193
  for (var j = 0; j < string.length; j += limit) {
@@ -21078,7 +21202,7 @@ var require_utils2 = __commonJS({
21078
21202
  var arr = [];
21079
21203
  for (var i = 0; i < segment.length; ++i) {
21080
21204
  var c = segment.charCodeAt(i);
21081
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
21205
+ if (c === 45 || c === 46 || c === 95 || c === 126 && format !== formats.WHATWG || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41) || format === formats.WHATWG && c === 42) {
21082
21206
  arr[arr.length] = segment.charAt(i);
21083
21207
  continue;
21084
21208
  }
@@ -21094,9 +21218,14 @@ var require_utils2 = __commonJS({
21094
21218
  arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
21095
21219
  continue;
21096
21220
  }
21097
- i += 1;
21098
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
21099
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
21221
+ var next = segment.charCodeAt(i + 1);
21222
+ if (c <= 56319 && next >= 56320 && next <= 57343) {
21223
+ i += 1;
21224
+ c = 65536 + ((c & 1023) << 10 | next & 1023);
21225
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
21226
+ } else {
21227
+ arr[arr.length] = "%EF%BF%BD";
21228
+ }
21100
21229
  }
21101
21230
  out += arr.join("");
21102
21231
  }
@@ -21175,14 +21304,16 @@ var require_utils2 = __commonJS({
21175
21304
  isRegExp,
21176
21305
  markOverflow,
21177
21306
  maybeMap,
21178
- merge
21307
+ merge,
21308
+ setProperty,
21309
+ toCoercible
21179
21310
  };
21180
21311
  }
21181
21312
  });
21182
21313
 
21183
- // node_modules/qs/lib/stringify.js
21314
+ // node_modules/body-parser/node_modules/qs/lib/stringify.js
21184
21315
  var require_stringify = __commonJS({
21185
- "node_modules/qs/lib/stringify.js"(exports, module) {
21316
+ "node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports, module) {
21186
21317
  "use strict";
21187
21318
  init_esbuild_shims();
21188
21319
  var getSideChannel = require_side_channel();
@@ -21291,20 +21422,20 @@ var require_stringify = __commonJS({
21291
21422
  if (generateArrayPrefix === "comma" && isArray(obj)) {
21292
21423
  if (encodeValuesOnly && encoder) {
21293
21424
  obj = utils.maybeMap(obj, function(v) {
21294
- return v == null ? v : encoder(v);
21425
+ return v == null ? v : encoder(v, defaults.encoder, charset, "value", format);
21295
21426
  });
21296
21427
  }
21297
- objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
21428
+ objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(",") || null : void 0 }];
21298
21429
  } else if (isArray(filter)) {
21299
21430
  objKeys = filter;
21300
21431
  } else {
21301
21432
  var keys = Object.keys(obj);
21302
21433
  objKeys = sort ? keys.sort(sort) : keys;
21303
21434
  }
21304
- var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
21435
+ var encodedPrefix = String(prefix);
21305
21436
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
21306
21437
  if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
21307
- return adjustedPrefix + "[]";
21438
+ return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, "key", format) : adjustedPrefix) + "[]";
21308
21439
  }
21309
21440
  for (var j = 0; j < objKeys.length; ++j) {
21310
21441
  var key = objKeys[j];
@@ -21372,7 +21503,7 @@ var require_stringify = __commonJS({
21372
21503
  filter = opts.filter;
21373
21504
  }
21374
21505
  var arrayFormat;
21375
- if (opts.arrayFormat in arrayPrefixGenerators) {
21506
+ if (has.call(arrayPrefixGenerators, opts.arrayFormat)) {
21376
21507
  arrayFormat = opts.arrayFormat;
21377
21508
  } else if ("indices" in opts) {
21378
21509
  arrayFormat = opts.indices ? "indices" : "repeat";
@@ -21415,7 +21546,7 @@ var require_stringify = __commonJS({
21415
21546
  filter = options.filter;
21416
21547
  obj = filter("", obj);
21417
21548
  } else if (isArray(options.filter)) {
21418
- filter = options.filter;
21549
+ filter = options.filter.slice();
21419
21550
  objKeys = filter;
21420
21551
  }
21421
21552
  var keys = [];
@@ -21451,7 +21582,7 @@ var require_stringify = __commonJS({
21451
21582
  options.skipNulls,
21452
21583
  options.encodeDotInKeys,
21453
21584
  options.encode ? options.encoder : null,
21454
- options.filter,
21585
+ filter,
21455
21586
  options.sort,
21456
21587
  options.allowDots,
21457
21588
  options.serializeDate,
@@ -21478,14 +21609,58 @@ var require_stringify = __commonJS({
21478
21609
  }
21479
21610
  });
21480
21611
 
21481
- // node_modules/qs/lib/parse.js
21612
+ // node_modules/body-parser/node_modules/qs/lib/parse.js
21482
21613
  var require_parse = __commonJS({
21483
- "node_modules/qs/lib/parse.js"(exports, module) {
21614
+ "node_modules/body-parser/node_modules/qs/lib/parse.js"(exports, module) {
21484
21615
  "use strict";
21485
21616
  init_esbuild_shims();
21617
+ var getSideChannel = require_side_channel();
21486
21618
  var utils = require_utils2();
21487
21619
  var has = Object.prototype.hasOwnProperty;
21488
21620
  var isArray = Array.isArray;
21621
+ var getPrototypeOf = Object.getPrototypeOf;
21622
+ var isPlainContainer = /* @__PURE__ */ __name(function isPlainContainer2(value) {
21623
+ if (!value || typeof value !== "object") {
21624
+ return false;
21625
+ }
21626
+ if (isArray(value)) {
21627
+ return true;
21628
+ }
21629
+ var proto = getPrototypeOf(value);
21630
+ return proto === Object.prototype || proto === null;
21631
+ }, "isPlainContainer");
21632
+ var emptyCopyOf = /* @__PURE__ */ __name(function emptyCopyOf2(value) {
21633
+ if (isArray(value)) {
21634
+ var arr = [];
21635
+ arr.length = value.length;
21636
+ return arr;
21637
+ }
21638
+ return getPrototypeOf(value) === null ? { __proto__: null } : {};
21639
+ }, "emptyCopyOf");
21640
+ var copyInput = /* @__PURE__ */ __name(function copyInput2(input) {
21641
+ var copies = getSideChannel();
21642
+ var result = {};
21643
+ var queue = [{ source: input, target: result }];
21644
+ for (var i = 0; i < queue.length; ++i) {
21645
+ var source = queue[i].source;
21646
+ var target = queue[i].target;
21647
+ var keys = Object.keys(source);
21648
+ for (var j = 0; j < keys.length; ++j) {
21649
+ var value = source[keys[j]];
21650
+ if (isPlainContainer(value)) {
21651
+ if (!copies.has(value)) {
21652
+ var copy = emptyCopyOf(value);
21653
+ copies.set(value, copy);
21654
+ queue[queue.length] = { source: value, target: copy };
21655
+ }
21656
+ utils.setProperty(target, keys[j], copies.get(value));
21657
+ } else {
21658
+ utils.setProperty(target, keys[j], value);
21659
+ }
21660
+ }
21661
+ }
21662
+ return result;
21663
+ }, "copyInput");
21489
21664
  var defaults = {
21490
21665
  allowDots: false,
21491
21666
  allowEmptyArrays: false,
@@ -21530,7 +21705,7 @@ var require_parse = __commonJS({
21530
21705
  }
21531
21706
  return val.split(",");
21532
21707
  }
21533
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
21708
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit && currentArrayLength > 0) {
21534
21709
  throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
21535
21710
  }
21536
21711
  return val;
@@ -21572,6 +21747,7 @@ var require_parse = __commonJS({
21572
21747
  var part = parts[i];
21573
21748
  var bracketEqualsPos = part.indexOf("]=");
21574
21749
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
21750
+ var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === "[]";
21575
21751
  var key;
21576
21752
  var val;
21577
21753
  if (pos === -1) {
@@ -21584,7 +21760,7 @@ var require_parse = __commonJS({
21584
21760
  parseArrayValue(
21585
21761
  part.slice(pos + 1),
21586
21762
  options,
21587
- isArray(obj[key]) ? obj[key].length : 0
21763
+ isArray(obj[key]) && (options.duplicates === "combine" || isEmptyBracketKey) ? obj[key].length : 0
21588
21764
  ),
21589
21765
  function(encodedVal) {
21590
21766
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
@@ -21593,9 +21769,11 @@ var require_parse = __commonJS({
21593
21769
  }
21594
21770
  }
21595
21771
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
21596
- val = interpretNumericEntities(String(val));
21772
+ val = utils.maybeMap(val, function(value) {
21773
+ return value ? interpretNumericEntities(String(value)) : value;
21774
+ });
21597
21775
  }
21598
- if (part.indexOf("[]=") > -1) {
21776
+ if (isEmptyBracketKey) {
21599
21777
  val = isArray(val) ? [val] : val;
21600
21778
  }
21601
21779
  if (options.comma && isArray(val) && val.length > options.arrayLimit) {
@@ -21603,7 +21781,7 @@ var require_parse = __commonJS({
21603
21781
  }
21604
21782
  if (key !== null) {
21605
21783
  var existing = has.call(obj, key);
21606
- if (existing && (options.duplicates === "combine" || part.indexOf("[]=") > -1)) {
21784
+ if (existing && (options.duplicates === "combine" || isEmptyBracketKey)) {
21607
21785
  obj[key] = utils.combine(
21608
21786
  obj[key],
21609
21787
  val,
@@ -21643,7 +21821,7 @@ var require_parse = __commonJS({
21643
21821
  } else {
21644
21822
  obj = options.plainObjects ? { __proto__: null } : {};
21645
21823
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
21646
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
21824
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
21647
21825
  var index = parseInt(decodedRoot, 10);
21648
21826
  var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
21649
21827
  if (!options.parseArrays && decodedRoot === "") {
@@ -21664,8 +21842,35 @@ var require_parse = __commonJS({
21664
21842
  }
21665
21843
  return leaf;
21666
21844
  }, "parseObject");
21845
+ var topLevelDotsToBrackets = /* @__PURE__ */ __name(function topLevelDotsToBrackets2(key) {
21846
+ var result = "";
21847
+ var depth = 0;
21848
+ for (var i = 0; i < key.length; i += 1) {
21849
+ var cu = key.charCodeAt(i);
21850
+ if (cu === 91) {
21851
+ depth += 1;
21852
+ result += "[";
21853
+ } else if (cu === 93) {
21854
+ if (depth > 0) {
21855
+ depth -= 1;
21856
+ }
21857
+ result += "]";
21858
+ } else if (cu === 46 && depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 46 && key.charCodeAt(i + 1) !== 91) {
21859
+ var start = i + 1;
21860
+ var j = start;
21861
+ while (j < key.length && key.charCodeAt(j) !== 46 && key.charCodeAt(j) !== 91) {
21862
+ j += 1;
21863
+ }
21864
+ result += "[" + key.slice(start, j) + "]";
21865
+ i = j - 1;
21866
+ } else {
21867
+ result += key.charAt(i);
21868
+ }
21869
+ }
21870
+ return result;
21871
+ }, "topLevelDotsToBrackets");
21667
21872
  var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(originalKey, options) {
21668
- var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
21873
+ var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
21669
21874
  if (options.depth <= 0) {
21670
21875
  if (!options.plainObjects && has.call(Object.prototype, key)) {
21671
21876
  if (!options.allowPrototypes) {
@@ -21791,7 +21996,7 @@ var require_parse = __commonJS({
21791
21996
  if (str === "" || str === null || typeof str === "undefined") {
21792
21997
  return options.plainObjects ? { __proto__: null } : {};
21793
21998
  }
21794
- var tempObj = typeof str === "string" ? parseValues(str, options) : str;
21999
+ var tempObj = typeof str === "string" ? parseValues(str, options) : copyInput(str);
21795
22000
  var obj = options.plainObjects ? { __proto__: null } : {};
21796
22001
  var keys = Object.keys(tempObj);
21797
22002
  for (var i = 0; i < keys.length; ++i) {
@@ -21807,9 +22012,9 @@ var require_parse = __commonJS({
21807
22012
  }
21808
22013
  });
21809
22014
 
21810
- // node_modules/qs/lib/index.js
22015
+ // node_modules/body-parser/node_modules/qs/lib/index.js
21811
22016
  var require_lib3 = __commonJS({
21812
- "node_modules/qs/lib/index.js"(exports, module) {
22017
+ "node_modules/body-parser/node_modules/qs/lib/index.js"(exports, module) {
21813
22018
  "use strict";
21814
22019
  init_esbuild_shims();
21815
22020
  var stringify = require_stringify();
@@ -23253,17 +23458,994 @@ var require_proxy_addr = __commonJS({
23253
23458
  }
23254
23459
  });
23255
23460
 
23256
- // node_modules/express/lib/utils.js
23257
- var require_utils3 = __commonJS({
23258
- "node_modules/express/lib/utils.js"(exports) {
23259
- "use strict";
23461
+ // node_modules/qs/lib/formats.js
23462
+ var require_formats2 = __commonJS({
23463
+ "node_modules/qs/lib/formats.js"(exports, module) {
23464
+ "use strict";
23465
+ init_esbuild_shims();
23466
+ var replace = String.prototype.replace;
23467
+ var percentTwenties = /%20/g;
23468
+ var Format = {
23469
+ RFC1738: "RFC1738",
23470
+ RFC3986: "RFC3986"
23471
+ };
23472
+ module.exports = {
23473
+ "default": Format.RFC3986,
23474
+ formatters: {
23475
+ RFC1738: /* @__PURE__ */ __name(function(value) {
23476
+ return replace.call(value, percentTwenties, "+");
23477
+ }, "RFC1738"),
23478
+ RFC3986: /* @__PURE__ */ __name(function(value) {
23479
+ return String(value);
23480
+ }, "RFC3986")
23481
+ },
23482
+ RFC1738: Format.RFC1738,
23483
+ RFC3986: Format.RFC3986
23484
+ };
23485
+ }
23486
+ });
23487
+
23488
+ // node_modules/qs/lib/utils.js
23489
+ var require_utils3 = __commonJS({
23490
+ "node_modules/qs/lib/utils.js"(exports, module) {
23491
+ "use strict";
23492
+ init_esbuild_shims();
23493
+ var formats = require_formats2();
23494
+ var getSideChannel = require_side_channel();
23495
+ var defineProperty = require_es_define_property();
23496
+ var has = Object.prototype.hasOwnProperty;
23497
+ var isArray = Array.isArray;
23498
+ var overflowChannel = getSideChannel();
23499
+ var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
23500
+ overflowChannel.set(obj, maxIndex);
23501
+ return obj;
23502
+ }, "markOverflow");
23503
+ var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
23504
+ return overflowChannel.has(obj);
23505
+ }, "isOverflow");
23506
+ var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
23507
+ return overflowChannel.get(obj);
23508
+ }, "getMaxIndex");
23509
+ var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
23510
+ overflowChannel.set(obj, maxIndex);
23511
+ }, "setMaxIndex");
23512
+ var hexTable = (function() {
23513
+ var array = [];
23514
+ for (var i = 0; i < 256; ++i) {
23515
+ array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
23516
+ }
23517
+ return array;
23518
+ })();
23519
+ var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
23520
+ while (queue.length > 1) {
23521
+ var item = queue.pop();
23522
+ var obj = item.obj[item.prop];
23523
+ if (isArray(obj)) {
23524
+ var compacted = [];
23525
+ for (var j = 0; j < obj.length; ++j) {
23526
+ if (typeof obj[j] !== "undefined") {
23527
+ compacted[compacted.length] = obj[j];
23528
+ }
23529
+ }
23530
+ item.obj[item.prop] = compacted;
23531
+ }
23532
+ }
23533
+ }, "compactQueue");
23534
+ var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
23535
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
23536
+ for (var i = 0; i < source.length; ++i) {
23537
+ if (typeof source[i] !== "undefined") {
23538
+ obj[i] = source[i];
23539
+ }
23540
+ }
23541
+ return obj;
23542
+ }, "arrayToObject");
23543
+ var setProperty = /* @__PURE__ */ __name(function setProperty2(obj, key, value) {
23544
+ if (key === "__proto__" && defineProperty) {
23545
+ defineProperty(obj, key, {
23546
+ configurable: true,
23547
+ enumerable: true,
23548
+ value,
23549
+ writable: true
23550
+ });
23551
+ } else {
23552
+ obj[key] = value;
23553
+ }
23554
+ }, "setProperty");
23555
+ var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
23556
+ if (!source) {
23557
+ return target;
23558
+ }
23559
+ if (typeof source !== "object" && typeof source !== "function") {
23560
+ if (isArray(target)) {
23561
+ var nextIndex = target.length;
23562
+ if (options && typeof options.arrayLimit === "number" && nextIndex >= options.arrayLimit) {
23563
+ if (options.throwOnLimitExceeded) {
23564
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
23565
+ }
23566
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
23567
+ }
23568
+ target[nextIndex] = source;
23569
+ } else if (target && typeof target === "object") {
23570
+ if (isOverflow(target)) {
23571
+ var newIndex = getMaxIndex(target) + 1;
23572
+ target[newIndex] = source;
23573
+ setMaxIndex(target, newIndex);
23574
+ } else if (options && options.strictMerge) {
23575
+ return [target, source];
23576
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
23577
+ target[source] = true;
23578
+ }
23579
+ } else {
23580
+ return [target, source];
23581
+ }
23582
+ return target;
23583
+ }
23584
+ if (!target || typeof target !== "object") {
23585
+ if (isOverflow(source)) {
23586
+ var sourceKeys = Object.keys(source);
23587
+ var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
23588
+ for (var m = 0; m < sourceKeys.length; m++) {
23589
+ var oldKey = parseInt(sourceKeys[m], 10);
23590
+ result[oldKey + 1] = source[sourceKeys[m]];
23591
+ }
23592
+ return markOverflow(result, getMaxIndex(source) + 1);
23593
+ }
23594
+ var combined = [target].concat(source);
23595
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
23596
+ if (options.throwOnLimitExceeded) {
23597
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
23598
+ }
23599
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
23600
+ }
23601
+ return combined;
23602
+ }
23603
+ var mergeTarget = target;
23604
+ if (isArray(target) && !isArray(source)) {
23605
+ mergeTarget = arrayToObject(target, options);
23606
+ }
23607
+ if (isArray(target) && isArray(source)) {
23608
+ source.forEach(function(item, i) {
23609
+ if (has.call(target, i)) {
23610
+ var targetItem = target[i];
23611
+ if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
23612
+ target[i] = merge2(targetItem, item, options);
23613
+ } else {
23614
+ target[target.length] = item;
23615
+ }
23616
+ } else {
23617
+ target[i] = item;
23618
+ }
23619
+ });
23620
+ if (options && typeof options.arrayLimit === "number" && target.length > options.arrayLimit) {
23621
+ if (options.throwOnLimitExceeded) {
23622
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
23623
+ }
23624
+ return markOverflow(arrayToObject(target, options), target.length - 1);
23625
+ }
23626
+ return target;
23627
+ }
23628
+ return Object.keys(source).reduce(function(acc, key) {
23629
+ var value = source[key];
23630
+ if (has.call(acc, key)) {
23631
+ setProperty(acc, key, merge2(acc[key], value, options));
23632
+ } else {
23633
+ setProperty(acc, key, value);
23634
+ }
23635
+ if (isOverflow(source) && !isOverflow(acc)) {
23636
+ markOverflow(acc, getMaxIndex(source));
23637
+ }
23638
+ if (isOverflow(acc)) {
23639
+ var keyNum = parseInt(key, 10);
23640
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
23641
+ setMaxIndex(acc, keyNum);
23642
+ }
23643
+ }
23644
+ return acc;
23645
+ }, mergeTarget);
23646
+ }, "merge");
23647
+ var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
23648
+ return Object.keys(source).reduce(function(acc, key) {
23649
+ setProperty(acc, key, source[key]);
23650
+ return acc;
23651
+ }, target);
23652
+ }, "assignSingleSource");
23653
+ var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
23654
+ var strWithoutPlus = str.replace(/\+/g, " ");
23655
+ if (charset === "iso-8859-1") {
23656
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
23657
+ }
23658
+ try {
23659
+ return decodeURIComponent(strWithoutPlus);
23660
+ } catch (e) {
23661
+ return strWithoutPlus;
23662
+ }
23663
+ }, "decode");
23664
+ var limit = 1024;
23665
+ var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
23666
+ if (str.length === 0) {
23667
+ return str;
23668
+ }
23669
+ var string = str;
23670
+ if (typeof str === "symbol") {
23671
+ string = Symbol.prototype.toString.call(str);
23672
+ } else if (typeof str !== "string") {
23673
+ string = String(str);
23674
+ }
23675
+ if (charset === "iso-8859-1") {
23676
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
23677
+ return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
23678
+ });
23679
+ }
23680
+ var out = "";
23681
+ for (var j = 0; j < string.length; j += limit) {
23682
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
23683
+ if (j + limit < string.length) {
23684
+ var last = segment.charCodeAt(segment.length - 1);
23685
+ if (last >= 55296 && last <= 56319) {
23686
+ segment = segment.slice(0, -1);
23687
+ j -= 1;
23688
+ }
23689
+ }
23690
+ var arr = [];
23691
+ for (var i = 0; i < segment.length; ++i) {
23692
+ var c = segment.charCodeAt(i);
23693
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
23694
+ arr[arr.length] = segment.charAt(i);
23695
+ continue;
23696
+ }
23697
+ if (c < 128) {
23698
+ arr[arr.length] = hexTable[c];
23699
+ continue;
23700
+ }
23701
+ if (c < 2048) {
23702
+ arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
23703
+ continue;
23704
+ }
23705
+ if (c < 55296 || c >= 57344) {
23706
+ arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
23707
+ continue;
23708
+ }
23709
+ i += 1;
23710
+ c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
23711
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
23712
+ }
23713
+ out += arr.join("");
23714
+ }
23715
+ return out;
23716
+ }, "encode");
23717
+ var compact = /* @__PURE__ */ __name(function compact2(value) {
23718
+ var queue = [{ obj: { o: value }, prop: "o" }];
23719
+ var refs = getSideChannel();
23720
+ for (var i = 0; i < queue.length; ++i) {
23721
+ var item = queue[i];
23722
+ var obj = item.obj[item.prop];
23723
+ var keys = Object.keys(obj);
23724
+ for (var j = 0; j < keys.length; ++j) {
23725
+ var key = keys[j];
23726
+ var val = obj[key];
23727
+ if (typeof val === "object" && val !== null && !refs.has(val)) {
23728
+ queue[queue.length] = { obj, prop: key };
23729
+ refs.set(val, true);
23730
+ }
23731
+ }
23732
+ }
23733
+ compactQueue(queue);
23734
+ return value;
23735
+ }, "compact");
23736
+ var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
23737
+ return Object.prototype.toString.call(obj) === "[object RegExp]";
23738
+ }, "isRegExp");
23739
+ var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
23740
+ if (!obj || typeof obj !== "object") {
23741
+ return false;
23742
+ }
23743
+ return !!(obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj));
23744
+ }, "isBuffer");
23745
+ var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects, throwOnLimitExceeded) {
23746
+ if (isOverflow(a)) {
23747
+ if (throwOnLimitExceeded) {
23748
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
23749
+ }
23750
+ var bValues = isArray(b) ? b : [b];
23751
+ var newIndex = getMaxIndex(a);
23752
+ for (var i = 0; i < bValues.length; ++i) {
23753
+ newIndex += 1;
23754
+ a[newIndex] = bValues[i];
23755
+ }
23756
+ setMaxIndex(a, newIndex);
23757
+ return a;
23758
+ }
23759
+ var result = [].concat(a, b);
23760
+ if (result.length > arrayLimit) {
23761
+ if (throwOnLimitExceeded) {
23762
+ throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
23763
+ }
23764
+ return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
23765
+ }
23766
+ return result;
23767
+ }, "combine");
23768
+ var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
23769
+ if (isArray(val)) {
23770
+ var mapped = [];
23771
+ for (var i = 0; i < val.length; i += 1) {
23772
+ mapped[mapped.length] = fn(val[i]);
23773
+ }
23774
+ return mapped;
23775
+ }
23776
+ return fn(val);
23777
+ }, "maybeMap");
23778
+ module.exports = {
23779
+ arrayToObject,
23780
+ assign,
23781
+ combine,
23782
+ compact,
23783
+ decode,
23784
+ encode,
23785
+ isBuffer,
23786
+ isOverflow,
23787
+ isRegExp,
23788
+ markOverflow,
23789
+ maybeMap,
23790
+ merge
23791
+ };
23792
+ }
23793
+ });
23794
+
23795
+ // node_modules/qs/lib/stringify.js
23796
+ var require_stringify2 = __commonJS({
23797
+ "node_modules/qs/lib/stringify.js"(exports, module) {
23798
+ "use strict";
23799
+ init_esbuild_shims();
23800
+ var getSideChannel = require_side_channel();
23801
+ var utils = require_utils3();
23802
+ var formats = require_formats2();
23803
+ var has = Object.prototype.hasOwnProperty;
23804
+ var arrayPrefixGenerators = {
23805
+ brackets: /* @__PURE__ */ __name(function brackets(prefix) {
23806
+ return prefix + "[]";
23807
+ }, "brackets"),
23808
+ comma: "comma",
23809
+ indices: /* @__PURE__ */ __name(function indices(prefix, key) {
23810
+ return prefix + "[" + key + "]";
23811
+ }, "indices"),
23812
+ repeat: /* @__PURE__ */ __name(function repeat(prefix) {
23813
+ return prefix;
23814
+ }, "repeat")
23815
+ };
23816
+ var isArray = Array.isArray;
23817
+ var push = Array.prototype.push;
23818
+ var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
23819
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
23820
+ }, "pushToArray");
23821
+ var toISO = Date.prototype.toISOString;
23822
+ var defaultFormat = formats["default"];
23823
+ var defaults = {
23824
+ addQueryPrefix: false,
23825
+ allowDots: false,
23826
+ allowEmptyArrays: false,
23827
+ arrayFormat: "indices",
23828
+ charset: "utf-8",
23829
+ charsetSentinel: false,
23830
+ commaRoundTrip: false,
23831
+ delimiter: "&",
23832
+ depth: Infinity,
23833
+ encode: true,
23834
+ encodeDotInKeys: false,
23835
+ encoder: utils.encode,
23836
+ encodeValuesOnly: false,
23837
+ filter: void 0,
23838
+ format: defaultFormat,
23839
+ formatter: formats.formatters[defaultFormat],
23840
+ // deprecated
23841
+ indices: false,
23842
+ serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
23843
+ return toISO.call(date);
23844
+ }, "serializeDate"),
23845
+ skipNulls: false,
23846
+ strictNullHandling: false
23847
+ };
23848
+ var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
23849
+ return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
23850
+ }, "isNonNullishPrimitive");
23851
+ var sentinel = {};
23852
+ var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel, depth, currentDepth) {
23853
+ var obj = object;
23854
+ if (currentDepth > depth) {
23855
+ throw new RangeError("Input depth exceeded depth option of " + depth);
23856
+ }
23857
+ var tmpSc = sideChannel;
23858
+ var step = 0;
23859
+ var findFlag = false;
23860
+ while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
23861
+ var pos = tmpSc.get(object);
23862
+ step += 1;
23863
+ if (typeof pos !== "undefined") {
23864
+ if (pos === step) {
23865
+ throw new RangeError("Cyclic object value");
23866
+ } else {
23867
+ findFlag = true;
23868
+ }
23869
+ }
23870
+ if (typeof tmpSc.get(sentinel) === "undefined") {
23871
+ step = 0;
23872
+ }
23873
+ }
23874
+ obj = typeof filter === "function" ? filter(prefix, obj) : obj;
23875
+ if (obj instanceof Date) {
23876
+ obj = serializeDate(obj);
23877
+ } else if (generateArrayPrefix === "comma" && isArray(obj)) {
23878
+ obj = utils.maybeMap(obj, function(value2) {
23879
+ if (value2 instanceof Date) {
23880
+ return serializeDate(value2);
23881
+ }
23882
+ return value2;
23883
+ });
23884
+ }
23885
+ if (obj === null) {
23886
+ if (strictNullHandling) {
23887
+ return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
23888
+ }
23889
+ obj = "";
23890
+ }
23891
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
23892
+ if (encoder) {
23893
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
23894
+ return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
23895
+ }
23896
+ return [formatter(prefix) + "=" + formatter(String(obj))];
23897
+ }
23898
+ var values = [];
23899
+ if (typeof obj === "undefined") {
23900
+ return values;
23901
+ }
23902
+ var objKeys;
23903
+ if (generateArrayPrefix === "comma" && isArray(obj)) {
23904
+ if (encodeValuesOnly && encoder) {
23905
+ obj = utils.maybeMap(obj, function(v) {
23906
+ return v == null ? v : encoder(v);
23907
+ });
23908
+ }
23909
+ objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
23910
+ } else if (isArray(filter)) {
23911
+ objKeys = filter;
23912
+ } else {
23913
+ var keys = Object.keys(obj);
23914
+ objKeys = sort ? keys.sort(sort) : keys;
23915
+ }
23916
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
23917
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
23918
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
23919
+ return adjustedPrefix + "[]";
23920
+ }
23921
+ for (var j = 0; j < objKeys.length; ++j) {
23922
+ var key = objKeys[j];
23923
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
23924
+ if (skipNulls && value === null) {
23925
+ continue;
23926
+ }
23927
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
23928
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
23929
+ sideChannel.set(object, step);
23930
+ var valueSideChannel = getSideChannel();
23931
+ valueSideChannel.set(sentinel, sideChannel);
23932
+ pushToArray(values, stringify2(
23933
+ value,
23934
+ keyPrefix,
23935
+ generateArrayPrefix,
23936
+ commaRoundTrip,
23937
+ allowEmptyArrays,
23938
+ strictNullHandling,
23939
+ skipNulls,
23940
+ encodeDotInKeys,
23941
+ generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
23942
+ filter,
23943
+ sort,
23944
+ allowDots,
23945
+ serializeDate,
23946
+ format,
23947
+ formatter,
23948
+ encodeValuesOnly,
23949
+ charset,
23950
+ valueSideChannel,
23951
+ depth,
23952
+ currentDepth + 1
23953
+ ));
23954
+ }
23955
+ return values;
23956
+ }, "stringify");
23957
+ var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
23958
+ if (!opts) {
23959
+ return defaults;
23960
+ }
23961
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
23962
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
23963
+ }
23964
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
23965
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
23966
+ }
23967
+ if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
23968
+ throw new TypeError("Encoder has to be a function.");
23969
+ }
23970
+ var charset = opts.charset || defaults.charset;
23971
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
23972
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
23973
+ }
23974
+ var format = formats["default"];
23975
+ if (typeof opts.format !== "undefined") {
23976
+ if (!has.call(formats.formatters, opts.format)) {
23977
+ throw new TypeError("Unknown format option provided.");
23978
+ }
23979
+ format = opts.format;
23980
+ }
23981
+ var formatter = formats.formatters[format];
23982
+ var filter = defaults.filter;
23983
+ if (typeof opts.filter === "function" || isArray(opts.filter)) {
23984
+ filter = opts.filter;
23985
+ }
23986
+ var arrayFormat;
23987
+ if (opts.arrayFormat in arrayPrefixGenerators) {
23988
+ arrayFormat = opts.arrayFormat;
23989
+ } else if ("indices" in opts) {
23990
+ arrayFormat = opts.indices ? "indices" : "repeat";
23991
+ } else {
23992
+ arrayFormat = defaults.arrayFormat;
23993
+ }
23994
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
23995
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
23996
+ }
23997
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
23998
+ return {
23999
+ addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
24000
+ allowDots,
24001
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
24002
+ arrayFormat,
24003
+ charset,
24004
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
24005
+ commaRoundTrip: !!opts.commaRoundTrip,
24006
+ delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
24007
+ depth: typeof opts.depth === "number" ? opts.depth : defaults.depth,
24008
+ encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
24009
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
24010
+ encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
24011
+ encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
24012
+ filter,
24013
+ format,
24014
+ formatter,
24015
+ serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
24016
+ skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
24017
+ sort: typeof opts.sort === "function" ? opts.sort : null,
24018
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
24019
+ };
24020
+ }, "normalizeStringifyOptions");
24021
+ module.exports = function(object, opts) {
24022
+ var obj = object;
24023
+ var options = normalizeStringifyOptions(opts);
24024
+ var objKeys;
24025
+ var filter;
24026
+ if (typeof options.filter === "function") {
24027
+ filter = options.filter;
24028
+ obj = filter("", obj);
24029
+ } else if (isArray(options.filter)) {
24030
+ filter = options.filter;
24031
+ objKeys = filter;
24032
+ }
24033
+ var keys = [];
24034
+ if (typeof obj !== "object" || obj === null) {
24035
+ return "";
24036
+ }
24037
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
24038
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
24039
+ if (!objKeys) {
24040
+ objKeys = Object.keys(obj);
24041
+ }
24042
+ if (options.sort) {
24043
+ objKeys.sort(options.sort);
24044
+ }
24045
+ var sideChannel = getSideChannel();
24046
+ for (var i = 0; i < objKeys.length; ++i) {
24047
+ var key = objKeys[i];
24048
+ if (typeof key === "undefined" || key === null) {
24049
+ continue;
24050
+ }
24051
+ var value = obj[key];
24052
+ if (options.skipNulls && value === null) {
24053
+ continue;
24054
+ }
24055
+ var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
24056
+ pushToArray(keys, stringify(
24057
+ value,
24058
+ encodedKey,
24059
+ generateArrayPrefix,
24060
+ commaRoundTrip,
24061
+ options.allowEmptyArrays,
24062
+ options.strictNullHandling,
24063
+ options.skipNulls,
24064
+ options.encodeDotInKeys,
24065
+ options.encode ? options.encoder : null,
24066
+ options.filter,
24067
+ options.sort,
24068
+ options.allowDots,
24069
+ options.serializeDate,
24070
+ options.format,
24071
+ options.formatter,
24072
+ options.encodeValuesOnly,
24073
+ options.charset,
24074
+ sideChannel,
24075
+ options.depth,
24076
+ 0
24077
+ ));
24078
+ }
24079
+ var joined = keys.join(options.delimiter);
24080
+ var prefix = options.addQueryPrefix === true ? "?" : "";
24081
+ if (options.charsetSentinel) {
24082
+ if (options.charset === "iso-8859-1") {
24083
+ prefix += "utf8=%26%2310003%3B" + options.delimiter;
24084
+ } else {
24085
+ prefix += "utf8=%E2%9C%93" + options.delimiter;
24086
+ }
24087
+ }
24088
+ return joined.length > 0 ? prefix + joined : "";
24089
+ };
24090
+ }
24091
+ });
24092
+
24093
+ // node_modules/qs/lib/parse.js
24094
+ var require_parse2 = __commonJS({
24095
+ "node_modules/qs/lib/parse.js"(exports, module) {
24096
+ "use strict";
24097
+ init_esbuild_shims();
24098
+ var utils = require_utils3();
24099
+ var has = Object.prototype.hasOwnProperty;
24100
+ var isArray = Array.isArray;
24101
+ var defaults = {
24102
+ allowDots: false,
24103
+ allowEmptyArrays: false,
24104
+ allowPrototypes: false,
24105
+ allowSparse: false,
24106
+ arrayLimit: 20,
24107
+ charset: "utf-8",
24108
+ charsetSentinel: false,
24109
+ comma: false,
24110
+ decodeDotInKeys: false,
24111
+ decoder: utils.decode,
24112
+ delimiter: "&",
24113
+ depth: 5,
24114
+ duplicates: "combine",
24115
+ ignoreQueryPrefix: false,
24116
+ interpretNumericEntities: false,
24117
+ parameterLimit: 1e3,
24118
+ parseArrays: true,
24119
+ plainObjects: false,
24120
+ strictDepth: false,
24121
+ strictMerge: true,
24122
+ strictNullHandling: false,
24123
+ throwOnLimitExceeded: false
24124
+ };
24125
+ var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
24126
+ return str.replace(/&#(\d+);/g, function($0, numberStr) {
24127
+ return String.fromCharCode(parseInt(numberStr, 10));
24128
+ });
24129
+ }, "interpretNumericEntities");
24130
+ var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
24131
+ if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
24132
+ if (options.throwOnLimitExceeded) {
24133
+ var commaCount = 0;
24134
+ var commaIndex = val.indexOf(",");
24135
+ while (commaIndex > -1) {
24136
+ commaCount += 1;
24137
+ if (commaCount >= options.arrayLimit) {
24138
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
24139
+ }
24140
+ commaIndex = val.indexOf(",", commaIndex + 1);
24141
+ }
24142
+ }
24143
+ return val.split(",");
24144
+ }
24145
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
24146
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
24147
+ }
24148
+ return val;
24149
+ }, "parseArrayValue");
24150
+ var isoSentinel = "utf8=%26%2310003%3B";
24151
+ var charsetSentinel = "utf8=%E2%9C%93";
24152
+ var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
24153
+ var obj = { __proto__: null };
24154
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
24155
+ cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
24156
+ var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
24157
+ var parts = cleanStr.split(
24158
+ options.delimiter,
24159
+ options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
24160
+ );
24161
+ if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
24162
+ throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
24163
+ }
24164
+ var skipIndex = -1;
24165
+ var i;
24166
+ var charset = options.charset;
24167
+ if (options.charsetSentinel) {
24168
+ for (i = 0; i < parts.length; ++i) {
24169
+ if (parts[i].indexOf("utf8=") === 0) {
24170
+ if (parts[i] === charsetSentinel) {
24171
+ charset = "utf-8";
24172
+ } else if (parts[i] === isoSentinel) {
24173
+ charset = "iso-8859-1";
24174
+ }
24175
+ skipIndex = i;
24176
+ i = parts.length;
24177
+ }
24178
+ }
24179
+ }
24180
+ for (i = 0; i < parts.length; ++i) {
24181
+ if (i === skipIndex) {
24182
+ continue;
24183
+ }
24184
+ var part = parts[i];
24185
+ var bracketEqualsPos = part.indexOf("]=");
24186
+ var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
24187
+ var key;
24188
+ var val;
24189
+ if (pos === -1) {
24190
+ key = options.decoder(part, defaults.decoder, charset, "key");
24191
+ val = options.strictNullHandling ? null : "";
24192
+ } else {
24193
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
24194
+ if (key !== null) {
24195
+ val = utils.maybeMap(
24196
+ parseArrayValue(
24197
+ part.slice(pos + 1),
24198
+ options,
24199
+ isArray(obj[key]) ? obj[key].length : 0
24200
+ ),
24201
+ function(encodedVal) {
24202
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
24203
+ }
24204
+ );
24205
+ }
24206
+ }
24207
+ if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
24208
+ val = interpretNumericEntities(String(val));
24209
+ }
24210
+ if (part.indexOf("[]=") > -1) {
24211
+ val = isArray(val) ? [val] : val;
24212
+ }
24213
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
24214
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
24215
+ }
24216
+ if (key !== null) {
24217
+ var existing = has.call(obj, key);
24218
+ if (existing && (options.duplicates === "combine" || part.indexOf("[]=") > -1)) {
24219
+ obj[key] = utils.combine(
24220
+ obj[key],
24221
+ val,
24222
+ options.arrayLimit,
24223
+ options.plainObjects,
24224
+ options.throwOnLimitExceeded
24225
+ );
24226
+ } else if (!existing || options.duplicates === "last") {
24227
+ obj[key] = val;
24228
+ }
24229
+ }
24230
+ }
24231
+ return obj;
24232
+ }, "parseQueryStringValues");
24233
+ var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
24234
+ var currentArrayLength = 0;
24235
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
24236
+ var parentKey = chain.slice(0, -1).join("");
24237
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
24238
+ }
24239
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
24240
+ for (var i = chain.length - 1; i >= 0; --i) {
24241
+ var obj;
24242
+ var root = chain[i];
24243
+ if (root === "[]" && options.parseArrays) {
24244
+ if (utils.isOverflow(leaf)) {
24245
+ obj = leaf;
24246
+ } else {
24247
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
24248
+ [],
24249
+ leaf,
24250
+ options.arrayLimit,
24251
+ options.plainObjects,
24252
+ options.throwOnLimitExceeded
24253
+ );
24254
+ }
24255
+ } else {
24256
+ obj = options.plainObjects ? { __proto__: null } : {};
24257
+ var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
24258
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
24259
+ var index = parseInt(decodedRoot, 10);
24260
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
24261
+ if (!options.parseArrays && decodedRoot === "") {
24262
+ obj = { 0: leaf };
24263
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
24264
+ obj = [];
24265
+ obj[index] = leaf;
24266
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
24267
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
24268
+ } else if (isValidArrayIndex) {
24269
+ obj[index] = leaf;
24270
+ utils.markOverflow(obj, index);
24271
+ } else if (decodedRoot !== "__proto__") {
24272
+ obj[decodedRoot] = leaf;
24273
+ }
24274
+ }
24275
+ leaf = obj;
24276
+ }
24277
+ return leaf;
24278
+ }, "parseObject");
24279
+ var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(originalKey, options) {
24280
+ var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
24281
+ if (options.depth <= 0) {
24282
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
24283
+ if (!options.allowPrototypes) {
24284
+ return;
24285
+ }
24286
+ }
24287
+ return [key];
24288
+ }
24289
+ var segments = [];
24290
+ var first = key.indexOf("[");
24291
+ var parent = first >= 0 ? key.slice(0, first) : key;
24292
+ if (parent) {
24293
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
24294
+ if (!options.allowPrototypes) {
24295
+ return;
24296
+ }
24297
+ }
24298
+ segments[segments.length] = parent;
24299
+ }
24300
+ var n = key.length;
24301
+ var open = first;
24302
+ var collected = 0;
24303
+ while (open >= 0 && collected < options.depth) {
24304
+ var level = 1;
24305
+ var i = open + 1;
24306
+ var close = -1;
24307
+ while (i < n && close < 0) {
24308
+ var cu = key.charCodeAt(i);
24309
+ if (cu === 91) {
24310
+ level += 1;
24311
+ } else if (cu === 93) {
24312
+ level -= 1;
24313
+ if (level === 0) {
24314
+ close = i;
24315
+ }
24316
+ }
24317
+ i += 1;
24318
+ }
24319
+ if (close < 0) {
24320
+ segments[segments.length] = "[" + key.slice(open) + "]";
24321
+ return segments;
24322
+ }
24323
+ var seg = key.slice(open, close + 1);
24324
+ var content = seg.slice(1, -1);
24325
+ if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
24326
+ return;
24327
+ }
24328
+ segments[segments.length] = seg;
24329
+ collected += 1;
24330
+ open = key.indexOf("[", close + 1);
24331
+ }
24332
+ if (open >= 0) {
24333
+ if (options.strictDepth === true) {
24334
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
24335
+ }
24336
+ segments[segments.length] = "[" + key.slice(open) + "]";
24337
+ }
24338
+ return segments;
24339
+ }, "splitKeyIntoSegments");
24340
+ var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
24341
+ if (!givenKey) {
24342
+ return;
24343
+ }
24344
+ var keys = splitKeyIntoSegments(givenKey, options);
24345
+ if (!keys) {
24346
+ return;
24347
+ }
24348
+ return parseObject(keys, val, options, valuesParsed);
24349
+ }, "parseQueryStringKeys");
24350
+ var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
24351
+ if (!opts) {
24352
+ return defaults;
24353
+ }
24354
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
24355
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
24356
+ }
24357
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
24358
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
24359
+ }
24360
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
24361
+ throw new TypeError("Decoder has to be a function.");
24362
+ }
24363
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
24364
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
24365
+ }
24366
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
24367
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
24368
+ }
24369
+ var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
24370
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
24371
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
24372
+ throw new TypeError("The duplicates option must be either combine, first, or last");
24373
+ }
24374
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
24375
+ return {
24376
+ allowDots,
24377
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
24378
+ allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
24379
+ allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
24380
+ arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
24381
+ charset,
24382
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
24383
+ comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
24384
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
24385
+ decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
24386
+ delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
24387
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
24388
+ depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
24389
+ duplicates,
24390
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
24391
+ interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
24392
+ parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
24393
+ parseArrays: opts.parseArrays !== false,
24394
+ plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
24395
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
24396
+ strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
24397
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
24398
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
24399
+ };
24400
+ }, "normalizeParseOptions");
24401
+ module.exports = function(str, opts) {
24402
+ var options = normalizeParseOptions(opts);
24403
+ if (str === "" || str === null || typeof str === "undefined") {
24404
+ return options.plainObjects ? { __proto__: null } : {};
24405
+ }
24406
+ var tempObj = typeof str === "string" ? parseValues(str, options) : str;
24407
+ var obj = options.plainObjects ? { __proto__: null } : {};
24408
+ var keys = Object.keys(tempObj);
24409
+ for (var i = 0; i < keys.length; ++i) {
24410
+ var key = keys[i];
24411
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
24412
+ obj = utils.merge(obj, newObj, options);
24413
+ }
24414
+ if (options.allowSparse === true) {
24415
+ return obj;
24416
+ }
24417
+ return utils.compact(obj);
24418
+ };
24419
+ }
24420
+ });
24421
+
24422
+ // node_modules/qs/lib/index.js
24423
+ var require_lib4 = __commonJS({
24424
+ "node_modules/qs/lib/index.js"(exports, module) {
24425
+ "use strict";
24426
+ init_esbuild_shims();
24427
+ var stringify = require_stringify2();
24428
+ var parse = require_parse2();
24429
+ var formats = require_formats2();
24430
+ module.exports = {
24431
+ formats,
24432
+ parse,
24433
+ stringify
24434
+ };
24435
+ }
24436
+ });
24437
+
24438
+ // node_modules/express/lib/utils.js
24439
+ var require_utils4 = __commonJS({
24440
+ "node_modules/express/lib/utils.js"(exports) {
24441
+ "use strict";
23260
24442
  init_esbuild_shims();
23261
24443
  var { METHODS } = __require("node:http");
23262
24444
  var contentType = require_content_type();
23263
24445
  var etag = require_etag();
23264
24446
  var mime = require_mime_types();
23265
24447
  var proxyaddr = require_proxy_addr();
23266
- var qs = require_lib3();
24448
+ var qs = require_lib4();
23267
24449
  var querystring = __require("node:querystring");
23268
24450
  var { Buffer: Buffer2 } = __require("node:buffer");
23269
24451
  exports.methods = METHODS.map((method) => method.toLowerCase());
@@ -24575,10 +25757,10 @@ var require_application = __commonJS({
24575
25757
  var debug = require_src()("express:application");
24576
25758
  var View = require_view();
24577
25759
  var http = __require("node:http");
24578
- var methods = require_utils3().methods;
24579
- var compileETag = require_utils3().compileETag;
24580
- var compileQueryParser = require_utils3().compileQueryParser;
24581
- var compileTrust = require_utils3().compileTrust;
25760
+ var methods = require_utils4().methods;
25761
+ var compileETag = require_utils4().compileETag;
25762
+ var compileQueryParser = require_utils4().compileQueryParser;
25763
+ var compileTrust = require_utils4().compileTrust;
24582
25764
  var resolve = __require("node:path").resolve;
24583
25765
  var once = require_once();
24584
25766
  var Router = require_router();
@@ -26796,9 +27978,9 @@ var require_response = __commonJS({
26796
27978
  var pathIsAbsolute = __require("node:path").isAbsolute;
26797
27979
  var statuses = require_statuses();
26798
27980
  var sign = require_cookie_signature().sign;
26799
- var normalizeType = require_utils3().normalizeType;
26800
- var normalizeTypes = require_utils3().normalizeTypes;
26801
- var setCharset = require_utils3().setCharset;
27981
+ var normalizeType = require_utils4().normalizeType;
27982
+ var normalizeTypes = require_utils4().normalizeTypes;
27983
+ var setCharset = require_utils4().setCharset;
26802
27984
  var cookie = require_cookie();
26803
27985
  var send = require_send();
26804
27986
  var extname = path.extname;