@axium/server 0.25.0 → 0.26.0

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 (386) hide show
  1. package/build/client/_app/immutable/chunks/46qGscyh.js +2 -0
  2. package/build/client/_app/immutable/chunks/46qGscyh.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/46qGscyh.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/B2Vkpbkw.js +2 -0
  5. package/build/client/_app/immutable/chunks/B2Vkpbkw.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/B2Vkpbkw.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/BKixenYx.js +1 -0
  8. package/build/client/_app/immutable/chunks/BKixenYx.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BKixenYx.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/BLtAtlP3.js +1 -0
  11. package/build/client/_app/immutable/chunks/BLtAtlP3.js.br +2 -0
  12. package/build/client/_app/immutable/chunks/BLtAtlP3.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/BNTlty5m.js +1 -0
  14. package/build/client/_app/immutable/chunks/BNTlty5m.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BNTlty5m.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/Beh6Ec8J.js +1 -0
  17. package/build/client/_app/immutable/chunks/Beh6Ec8J.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/Beh6Ec8J.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BrUe-Qen.js +1 -0
  20. package/build/client/_app/immutable/chunks/BrUe-Qen.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BrUe-Qen.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/Bs4cD_pX.js +1 -0
  23. package/build/client/_app/immutable/chunks/Bs4cD_pX.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/Bs4cD_pX.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/C62F-tXu.js +1 -0
  26. package/build/client/_app/immutable/chunks/C62F-tXu.js.br +1 -0
  27. package/build/client/_app/immutable/chunks/C62F-tXu.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CUBtP2L9.js +23 -0
  29. package/build/client/_app/immutable/chunks/CUBtP2L9.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CUBtP2L9.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/CoYD6HNm.js +1 -0
  32. package/build/client/_app/immutable/chunks/CoYD6HNm.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CoYD6HNm.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/D40Zn55h.js +1 -0
  35. package/build/client/_app/immutable/chunks/D40Zn55h.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/D40Zn55h.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/DW7-1esk.js +21 -0
  38. package/build/client/_app/immutable/chunks/DW7-1esk.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/DW7-1esk.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/DvOBbqVY.js +1 -0
  41. package/build/client/_app/immutable/chunks/DvOBbqVY.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/DvOBbqVY.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/DwZYWemd.js +1 -0
  44. package/build/client/_app/immutable/chunks/DwZYWemd.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/DwZYWemd.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js +1 -0
  47. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/FTv0qR3w.js +1 -0
  50. package/build/client/_app/immutable/chunks/FTv0qR3w.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/FTv0qR3w.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/NeK0YGoY.js +1 -0
  53. package/build/client/_app/immutable/chunks/NeK0YGoY.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/NeK0YGoY.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/aArGsq9c.js +1 -0
  56. package/build/client/_app/immutable/chunks/aArGsq9c.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/aArGsq9c.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/lH47zGKU.js +1 -0
  59. package/build/client/_app/immutable/chunks/lH47zGKU.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/lH47zGKU.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/sMHjBQqw.js +1 -0
  62. package/build/client/_app/immutable/chunks/sMHjBQqw.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/sMHjBQqw.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/vQfHcJV6.js +2 -0
  65. package/build/client/_app/immutable/chunks/vQfHcJV6.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/vQfHcJV6.js.gz +0 -0
  67. package/build/client/_app/immutable/entry/app.pLVZKpSD.js +2 -0
  68. package/build/client/_app/immutable/entry/app.pLVZKpSD.js.br +0 -0
  69. package/build/client/_app/immutable/entry/app.pLVZKpSD.js.gz +0 -0
  70. package/build/client/_app/immutable/entry/start.CUaVsIrY.js +1 -0
  71. package/build/client/_app/immutable/entry/start.CUaVsIrY.js.br +2 -0
  72. package/build/client/_app/immutable/entry/start.CUaVsIrY.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js +1 -0
  74. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js +1 -0
  77. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.br +2 -0
  78. package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/10.C5N2XBee.js +1 -0
  80. package/build/client/_app/immutable/nodes/10.C5N2XBee.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/10.C5N2XBee.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/11.CerbuSAv.js +1 -0
  83. package/build/client/_app/immutable/nodes/11.CerbuSAv.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/11.CerbuSAv.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js +1 -0
  86. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/13.CuICShck.js +1 -0
  89. package/build/client/_app/immutable/nodes/13.CuICShck.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/13.CuICShck.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js +1 -0
  92. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js +1 -0
  95. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js +1 -0
  98. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js +1 -0
  101. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js +1 -0
  104. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js +1 -0
  107. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/6.DKIzms8i.js +2 -0
  110. package/build/client/_app/immutable/nodes/6.DKIzms8i.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/6.DKIzms8i.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/7.3UigVXV4.js +1 -0
  113. package/build/client/_app/immutable/nodes/7.3UigVXV4.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/7.3UigVXV4.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js +1 -0
  116. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js +1 -0
  119. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.gz +0 -0
  121. package/build/client/_app/version.json +1 -1
  122. package/build/client/_app/version.json.br +0 -0
  123. package/build/client/_app/version.json.gz +0 -0
  124. package/build/client/styles.css +21 -0
  125. package/build/client/styles.css.br +0 -0
  126. package/build/client/styles.css.gz +0 -0
  127. package/build/server/chunks/{0-CZBaNtSI.js → 0-CNbALTKz.js} +2 -2
  128. package/build/server/chunks/0-CNbALTKz.js.map +1 -0
  129. package/build/server/chunks/1-Dgxy393u.js +9 -0
  130. package/build/server/chunks/1-Dgxy393u.js.map +1 -0
  131. package/build/server/chunks/10-DovmbqKa.js +14 -0
  132. package/build/server/chunks/10-DovmbqKa.js.map +1 -0
  133. package/build/server/chunks/11-CRK_ubcl.js +14 -0
  134. package/build/server/chunks/11-CRK_ubcl.js.map +1 -0
  135. package/build/server/chunks/12-SbQlwMfe.js +9 -0
  136. package/build/server/chunks/12-SbQlwMfe.js.map +1 -0
  137. package/build/server/chunks/13-CbniIW7F.js +14 -0
  138. package/build/server/chunks/13-CbniIW7F.js.map +1 -0
  139. package/build/server/chunks/14-D9Vb_8Yx.js +9 -0
  140. package/build/server/chunks/14-D9Vb_8Yx.js.map +1 -0
  141. package/build/server/chunks/15-D-75Hdef.js +9 -0
  142. package/build/server/chunks/15-D-75Hdef.js.map +1 -0
  143. package/build/server/chunks/2-57exN8ae.js +14 -0
  144. package/build/server/chunks/2-57exN8ae.js.map +1 -0
  145. package/build/server/chunks/{3-B1CwnVF_.js → 3-DNQft-pY.js} +2 -2
  146. package/build/server/chunks/{3-B1CwnVF_.js.map → 3-DNQft-pY.js.map} +1 -1
  147. package/build/server/chunks/4-D9Bwp-f8.js +14 -0
  148. package/build/server/chunks/4-D9Bwp-f8.js.map +1 -0
  149. package/build/server/chunks/5-COEQwZNP.js +14 -0
  150. package/build/server/chunks/5-COEQwZNP.js.map +1 -0
  151. package/build/server/chunks/6-RT4yiDcP.js +14 -0
  152. package/build/server/chunks/6-RT4yiDcP.js.map +1 -0
  153. package/build/server/chunks/7-CVqF_r5D.js +14 -0
  154. package/build/server/chunks/7-CVqF_r5D.js.map +1 -0
  155. package/build/server/chunks/8-C5SO-sVH.js +14 -0
  156. package/build/server/chunks/8-C5SO-sVH.js.map +1 -0
  157. package/build/server/chunks/9-DoCOKtY-.js +14 -0
  158. package/build/server/chunks/9-DoCOKtY-.js.map +1 -0
  159. package/build/server/chunks/FormDialog-ZCY0chY1.js +102 -0
  160. package/build/server/chunks/FormDialog-ZCY0chY1.js.map +1 -0
  161. package/build/server/chunks/{Icon-CG7XnWX5.js → Icon-BVo9qbDf.js} +2 -2
  162. package/build/server/chunks/{Icon-CG7XnWX5.js.map → Icon-BVo9qbDf.js.map} +1 -1
  163. package/build/server/chunks/{Logout-BwzK1P29.js → Logout-CmBZgu0j.js} +4 -3
  164. package/build/server/chunks/{Logout-BwzK1P29.js.map → Logout-CmBZgu0j.js.map} +1 -1
  165. package/build/server/chunks/{_layout.svelte-9KMUotip.js → _layout.svelte-DuS006VZ.js} +6 -4
  166. package/build/server/chunks/_layout.svelte-DuS006VZ.js.map +1 -0
  167. package/build/server/chunks/_page.svelte-BFVobcI7.js +14 -0
  168. package/build/server/chunks/{_page.svelte-Bou2_u6i.js.map → _page.svelte-BFVobcI7.js.map} +1 -1
  169. package/build/server/chunks/{_page.svelte-rrN2zFNa.js → _page.svelte-B_cvhWJS.js} +4 -4
  170. package/build/server/chunks/_page.svelte-B_cvhWJS.js.map +1 -0
  171. package/build/server/chunks/{_page.svelte-BD3HmLo_.js → _page.svelte-BriaBR9l.js} +3 -3
  172. package/build/server/chunks/_page.svelte-BriaBR9l.js.map +1 -0
  173. package/build/server/chunks/{_page.svelte-CAzWL4aq.js → _page.svelte-BtQQzT7H.js} +12 -6
  174. package/build/server/chunks/_page.svelte-BtQQzT7H.js.map +1 -0
  175. package/build/server/chunks/{_page.svelte-BIxxuzff.js → _page.svelte-C8D3c3yB.js} +4 -4
  176. package/build/server/chunks/_page.svelte-C8D3c3yB.js.map +1 -0
  177. package/build/server/chunks/{_page.svelte-cAsZlwLs.js → _page.svelte-CVSb9eHQ.js} +4 -4
  178. package/build/server/chunks/_page.svelte-CVSb9eHQ.js.map +1 -0
  179. package/build/server/chunks/{_page.svelte-BFzPdJ6z.js → _page.svelte-CwRjZqL7.js} +9 -7
  180. package/build/server/chunks/_page.svelte-CwRjZqL7.js.map +1 -0
  181. package/build/server/chunks/{_page.svelte-DgyZKeaF.js → _page.svelte-D9A9RYjx.js} +10 -8
  182. package/build/server/chunks/_page.svelte-D9A9RYjx.js.map +1 -0
  183. package/build/server/chunks/_page.svelte-DGhwqWMM.js +34 -0
  184. package/build/server/chunks/_page.svelte-DGhwqWMM.js.map +1 -0
  185. package/build/server/chunks/{_page.svelte-Ci5V-DhL.js → _page.svelte-DTvnX95_.js} +10 -7
  186. package/build/server/chunks/_page.svelte-DTvnX95_.js.map +1 -0
  187. package/build/server/chunks/{_page.svelte-C25oQ2NT.js → _page.svelte-DUfwpXfC.js} +51 -9
  188. package/build/server/chunks/_page.svelte-DUfwpXfC.js.map +1 -0
  189. package/build/server/chunks/{_page.svelte-CnfRSJsl.js → _page.svelte-DxDoD3rZ.js} +3 -3
  190. package/build/server/chunks/_page.svelte-DxDoD3rZ.js.map +1 -0
  191. package/build/server/chunks/{account-BZSP6KBP.js → account-Bf_llRe2.js} +6 -5
  192. package/build/server/chunks/{account-BZSP6KBP.js.map → account-Bf_llRe2.js.map} +1 -1
  193. package/build/server/chunks/auth_redirect-olBYiIF2.js +24 -0
  194. package/build/server/chunks/auth_redirect-olBYiIF2.js.map +1 -0
  195. package/build/server/chunks/{error.svelte-DTrQqomO.js → error.svelte-CkSCwrMJ.js} +2 -2
  196. package/build/server/chunks/error.svelte-CkSCwrMJ.js.map +1 -0
  197. package/build/server/chunks/{index-DJrm8BZm.js → index-CIEcmmdN.js} +57 -11
  198. package/build/server/chunks/index-CIEcmmdN.js.map +1 -0
  199. package/build/server/chunks/{index-eKiDBuyI.js → index-Tt4zVDIZ.js} +25 -8
  200. package/build/server/chunks/index-Tt4zVDIZ.js.map +1 -0
  201. package/build/server/chunks/{user2-Coq3Frtw.js → user2-CRfK67II.js} +9 -102
  202. package/build/server/chunks/user2-CRfK67II.js.map +1 -0
  203. package/build/server/chunks/{utils-DlBYhQz7.js → utils-h74ns7K6.js} +1 -2
  204. package/build/server/chunks/utils-h74ns7K6.js.map +1 -0
  205. package/build/server/index.js +573 -202
  206. package/build/server/index.js.map +1 -1
  207. package/build/server/manifest.js +26 -18
  208. package/build/server/manifest.js.map +1 -1
  209. package/dist/acl.js +1 -1
  210. package/dist/api/admin.js +20 -3
  211. package/dist/api/metadata.js +3 -3
  212. package/dist/api/users.js +4 -1
  213. package/dist/audit.d.ts +1 -0
  214. package/dist/audit.js +3 -3
  215. package/dist/cli.js +511 -541
  216. package/dist/config.d.ts +6 -6
  217. package/dist/config.js +25 -13
  218. package/dist/database.js +7 -6
  219. package/dist/io.d.ts +0 -50
  220. package/dist/io.js +23 -171
  221. package/dist/linking.js +4 -4
  222. package/dist/requests.d.ts +5 -1
  223. package/dist/requests.js +4 -2
  224. package/dist/routes.js +3 -3
  225. package/dist/serve.d.ts +4 -0
  226. package/dist/serve.js +13 -8
  227. package/package.json +5 -5
  228. package/routes/admin/+layout.ts +2 -0
  229. package/routes/admin/audit/+page.svelte +23 -2
  230. package/routes/admin/audit/+page.ts +4 -2
  231. package/routes/login/client/+page.svelte +72 -0
  232. package/routes/login/client/+page.ts +27 -0
  233. package/build/client/_app/immutable/chunks/1taVrT-y.js +0 -1
  234. package/build/client/_app/immutable/chunks/1taVrT-y.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/1taVrT-y.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/BSFUgC2l.js +0 -23
  237. package/build/client/_app/immutable/chunks/BSFUgC2l.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/BSFUgC2l.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/Bbzjahjl.js +0 -2
  240. package/build/client/_app/immutable/chunks/Bbzjahjl.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/Bbzjahjl.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/BxjargW5.js +0 -1
  243. package/build/client/_app/immutable/chunks/BxjargW5.js.br +0 -0
  244. package/build/client/_app/immutable/chunks/BxjargW5.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/C2ewTgu8.js +0 -1
  246. package/build/client/_app/immutable/chunks/C2ewTgu8.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/C2ewTgu8.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/CFWAHLsq.js +0 -1
  249. package/build/client/_app/immutable/chunks/CFWAHLsq.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/CFWAHLsq.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/CPL43v-I.js +0 -1
  252. package/build/client/_app/immutable/chunks/CPL43v-I.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/CPL43v-I.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/CTKC36WM.js +0 -1
  255. package/build/client/_app/immutable/chunks/CTKC36WM.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/CTKC36WM.js.gz +0 -0
  257. package/build/client/_app/immutable/chunks/CekH6JMP.js +0 -1
  258. package/build/client/_app/immutable/chunks/CekH6JMP.js.br +0 -0
  259. package/build/client/_app/immutable/chunks/CekH6JMP.js.gz +0 -0
  260. package/build/client/_app/immutable/chunks/CqfYW08-.js +0 -1
  261. package/build/client/_app/immutable/chunks/CqfYW08-.js.br +0 -0
  262. package/build/client/_app/immutable/chunks/CqfYW08-.js.gz +0 -0
  263. package/build/client/_app/immutable/chunks/D1v6O410.js +0 -1
  264. package/build/client/_app/immutable/chunks/D1v6O410.js.br +0 -0
  265. package/build/client/_app/immutable/chunks/D1v6O410.js.gz +0 -0
  266. package/build/client/_app/immutable/chunks/DdnE6dyJ.js +0 -2
  267. package/build/client/_app/immutable/chunks/DdnE6dyJ.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/DdnE6dyJ.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/DeieCYM0.js +0 -22
  270. package/build/client/_app/immutable/chunks/DeieCYM0.js.br +0 -0
  271. package/build/client/_app/immutable/chunks/DeieCYM0.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/DfUzlYF5.js +0 -1
  273. package/build/client/_app/immutable/chunks/DfUzlYF5.js.br +0 -0
  274. package/build/client/_app/immutable/chunks/DfUzlYF5.js.gz +0 -0
  275. package/build/client/_app/immutable/chunks/Dnk28BpG.js +0 -1
  276. package/build/client/_app/immutable/chunks/Dnk28BpG.js.br +0 -0
  277. package/build/client/_app/immutable/chunks/Dnk28BpG.js.gz +0 -0
  278. package/build/client/_app/immutable/chunks/DsnmJJEf.js +0 -1
  279. package/build/client/_app/immutable/chunks/DsnmJJEf.js.br +0 -2
  280. package/build/client/_app/immutable/chunks/DsnmJJEf.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/KNAS5R2A.js +0 -3
  282. package/build/client/_app/immutable/chunks/KNAS5R2A.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/KNAS5R2A.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/eyJgPND9.js +0 -1
  285. package/build/client/_app/immutable/chunks/eyJgPND9.js.br +0 -1
  286. package/build/client/_app/immutable/chunks/eyJgPND9.js.gz +0 -0
  287. package/build/client/_app/immutable/entry/app.CPF6A_DV.js +0 -2
  288. package/build/client/_app/immutable/entry/app.CPF6A_DV.js.br +0 -0
  289. package/build/client/_app/immutable/entry/app.CPF6A_DV.js.gz +0 -0
  290. package/build/client/_app/immutable/entry/start.Dos_Ttds.js +0 -1
  291. package/build/client/_app/immutable/entry/start.Dos_Ttds.js.br +0 -2
  292. package/build/client/_app/immutable/entry/start.Dos_Ttds.js.gz +0 -0
  293. package/build/client/_app/immutable/nodes/0.C5HgTRfT.js +0 -1
  294. package/build/client/_app/immutable/nodes/0.C5HgTRfT.js.br +0 -0
  295. package/build/client/_app/immutable/nodes/0.C5HgTRfT.js.gz +0 -0
  296. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js +0 -1
  297. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js.br +0 -0
  298. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js.gz +0 -0
  299. package/build/client/_app/immutable/nodes/10.ukScuXwz.js +0 -1
  300. package/build/client/_app/immutable/nodes/10.ukScuXwz.js.br +0 -5
  301. package/build/client/_app/immutable/nodes/10.ukScuXwz.js.gz +0 -0
  302. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js +0 -1
  303. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js.br +0 -0
  304. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js.gz +0 -0
  305. package/build/client/_app/immutable/nodes/12._vvpCcSG.js +0 -1
  306. package/build/client/_app/immutable/nodes/12._vvpCcSG.js.br +0 -0
  307. package/build/client/_app/immutable/nodes/12._vvpCcSG.js.gz +0 -0
  308. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js +0 -1
  309. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js.br +0 -0
  310. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/14.Cr843Lep.js +0 -1
  312. package/build/client/_app/immutable/nodes/14.Cr843Lep.js.br +0 -0
  313. package/build/client/_app/immutable/nodes/14.Cr843Lep.js.gz +0 -0
  314. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js +0 -1
  315. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js.br +0 -0
  316. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js.gz +0 -0
  317. package/build/client/_app/immutable/nodes/3.DPH7xl7M.js +0 -1
  318. package/build/client/_app/immutable/nodes/3.DPH7xl7M.js.br +0 -0
  319. package/build/client/_app/immutable/nodes/3.DPH7xl7M.js.gz +0 -0
  320. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js +0 -1
  321. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js.br +0 -0
  322. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js.gz +0 -0
  323. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js +0 -1
  324. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js.br +0 -0
  325. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js.gz +0 -0
  326. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js +0 -2
  327. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js.br +0 -0
  328. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js.gz +0 -0
  329. package/build/client/_app/immutable/nodes/7.DFc4sJix.js +0 -1
  330. package/build/client/_app/immutable/nodes/7.DFc4sJix.js.br +0 -0
  331. package/build/client/_app/immutable/nodes/7.DFc4sJix.js.gz +0 -0
  332. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js +0 -1
  333. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js.br +0 -0
  334. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js.gz +0 -0
  335. package/build/client/_app/immutable/nodes/9.BKljyhOi.js +0 -1
  336. package/build/client/_app/immutable/nodes/9.BKljyhOi.js.br +0 -0
  337. package/build/client/_app/immutable/nodes/9.BKljyhOi.js.gz +0 -0
  338. package/build/server/chunks/0-CZBaNtSI.js.map +0 -1
  339. package/build/server/chunks/1-D_3BtEbe.js +0 -9
  340. package/build/server/chunks/1-D_3BtEbe.js.map +0 -1
  341. package/build/server/chunks/10-CLkNMKHU.js +0 -13
  342. package/build/server/chunks/10-CLkNMKHU.js.map +0 -1
  343. package/build/server/chunks/11-5xPYR_1w.js +0 -13
  344. package/build/server/chunks/11-5xPYR_1w.js.map +0 -1
  345. package/build/server/chunks/12-N7UaQj7u.js +0 -9
  346. package/build/server/chunks/12-N7UaQj7u.js.map +0 -1
  347. package/build/server/chunks/13-QYVLpXli.js +0 -9
  348. package/build/server/chunks/13-QYVLpXli.js.map +0 -1
  349. package/build/server/chunks/14-CPY578rT.js +0 -9
  350. package/build/server/chunks/14-CPY578rT.js.map +0 -1
  351. package/build/server/chunks/2-_1jFrcvz.js +0 -13
  352. package/build/server/chunks/2-_1jFrcvz.js.map +0 -1
  353. package/build/server/chunks/4-CcxCcH4F.js +0 -13
  354. package/build/server/chunks/4-CcxCcH4F.js.map +0 -1
  355. package/build/server/chunks/5-CrlH6VoB.js +0 -13
  356. package/build/server/chunks/5-CrlH6VoB.js.map +0 -1
  357. package/build/server/chunks/6-FkP678Uz.js +0 -13
  358. package/build/server/chunks/6-FkP678Uz.js.map +0 -1
  359. package/build/server/chunks/7-B1iCe7VA.js +0 -13
  360. package/build/server/chunks/7-B1iCe7VA.js.map +0 -1
  361. package/build/server/chunks/8-p6n9G-P_.js +0 -13
  362. package/build/server/chunks/8-p6n9G-P_.js.map +0 -1
  363. package/build/server/chunks/9-fc3lKB7X.js +0 -13
  364. package/build/server/chunks/9-fc3lKB7X.js.map +0 -1
  365. package/build/server/chunks/_layout.svelte-9KMUotip.js.map +0 -1
  366. package/build/server/chunks/_page.svelte-BD3HmLo_.js.map +0 -1
  367. package/build/server/chunks/_page.svelte-BFzPdJ6z.js.map +0 -1
  368. package/build/server/chunks/_page.svelte-BIxxuzff.js.map +0 -1
  369. package/build/server/chunks/_page.svelte-Bou2_u6i.js +0 -13
  370. package/build/server/chunks/_page.svelte-C25oQ2NT.js.map +0 -1
  371. package/build/server/chunks/_page.svelte-CAzWL4aq.js.map +0 -1
  372. package/build/server/chunks/_page.svelte-Ci5V-DhL.js.map +0 -1
  373. package/build/server/chunks/_page.svelte-CnfRSJsl.js.map +0 -1
  374. package/build/server/chunks/_page.svelte-DgyZKeaF.js.map +0 -1
  375. package/build/server/chunks/_page.svelte-cAsZlwLs.js.map +0 -1
  376. package/build/server/chunks/_page.svelte-rrN2zFNa.js.map +0 -1
  377. package/build/server/chunks/error.svelte-DTrQqomO.js.map +0 -1
  378. package/build/server/chunks/index-DJrm8BZm.js.map +0 -1
  379. package/build/server/chunks/index-eKiDBuyI.js.map +0 -1
  380. package/build/server/chunks/user2-Coq3Frtw.js.map +0 -1
  381. package/build/server/chunks/utils-DlBYhQz7.js.map +0 -1
  382. package/dist/apps.d.ts +0 -6
  383. package/dist/apps.js +0 -6
  384. package/dist/plugins.d.ts +0 -14
  385. package/dist/plugins.js +0 -64
  386. /package/{axiumd.service → axium.service} +0 -0
@@ -1,10 +1,9 @@
1
1
  import { json, text, error } from '@sveltejs/kit';
2
2
  import { Redirect, SvelteKitError, HttpError, ActionFailure } from '@sveltejs/kit/internal';
3
3
  import { with_request_store, merge_tracing } from '@sveltejs/kit/internal/server';
4
- import { d as define_property, s as safe_equals, o as object_prototype, a as array_prototype, g as get_descriptor, i as is_extensible, b as array_from, e as equals, c as get_prototype_of, f as is_array, h as deferred, r as run_all, j as index_of, t as text_decoder, k as base64_decode, l as decode_pathname, m as decode_params, n as normalize_path, p as disable_search, v as validate_layout_server_exports, q as validate_layout_exports, u as validate_page_server_exports, w as validate_page_exports, x as text_encoder, y as resolve, z as make_trackable, A as get_relative_path, B as base64_encode, C as readable, D as writable } from './chunks/utils-DlBYhQz7.js';
5
- import { r as render, L as LEGACY_PROPS, U as UNOWNED, E as ERROR_VALUE, C as COMMENT_NODE, H as HYDRATION_START, a as HYDRATION_ERROR, S as STATE_SYMBOL, b as UNINITIALIZED, D as DERIVED, c as DIRTY, d as CLEAN, M as MAYBE_DIRTY, e as DISCONNECTED, I as INERT, f as EFFECT, A as ASYNC, B as BLOCK_EFFECT, i as is_passive_event, g as BRANCH_EFFECT, R as ROOT_EFFECT, h as DESTROYED, j as REACTION_IS_UPDATING, k as EFFECT_RAN, l as EFFECT_PRESERVED, m as HEAD_EFFECT, n as BOUNDARY_EFFECT, o as EFFECT_TRANSPARENT, p as INSPECT_EFFECT, q as STALE_REACTION, s as HYDRATION_END, t as RENDER_EFFECT, u as HYDRATION_START_ELSE, v as USER_EFFECT } from './chunks/index-DJrm8BZm.js';
4
+ import { d as define_property, s as safe_equals, o as object_prototype, a as array_prototype, g as get_descriptor, i as is_extensible, b as array_from, e as equals, c as get_prototype_of, f as is_array, h as deferred, r as run_all, j as index_of, t as text_decoder, k as base64_decode, l as decode_pathname, m as decode_params, n as normalize_path, p as disable_search, v as validate_layout_server_exports, q as validate_layout_exports, u as validate_page_server_exports, w as validate_page_exports, x as text_encoder, y as resolve, z as make_trackable, A as get_relative_path, B as base64_encode, C as readable, D as writable } from './chunks/utils-h74ns7K6.js';
5
+ import { r as render, L as LEGACY_PROPS, U as UNOWNED, E as ERROR_VALUE, C as COMMENT_NODE, H as HYDRATION_START, a as HYDRATION_ERROR, S as STATE_SYMBOL, b as UNINITIALIZED, D as DERIVED, c as DIRTY, d as CLEAN, M as MAYBE_DIRTY, e as DISCONNECTED, I as INERT, B as BOUNDARY_EFFECT, f as EFFECT, g as BLOCK_EFFECT, W as WAS_MARKED, i as is_passive_event, h as BRANCH_EFFECT, R as ROOT_EFFECT, j as DESTROYED, A as ASYNC, k as REACTION_IS_UPDATING, l as EFFECT_RAN, m as EFFECT_PRESERVED, n as EFFECT_TRANSPARENT, o as HEAD_EFFECT, p as EAGER_EFFECT, q as STALE_REACTION, s as HYDRATION_END, t as RENDER_EFFECT, u as HYDRATION_START_ELSE, v as USER_EFFECT } from './chunks/index-CIEcmmdN.js';
6
6
  import { s as setContext } from './chunks/context-R2425nfV.js';
7
- import { parse as parse$1, serialize } from 'cookie';
8
7
 
9
8
  const DEV = false;
10
9
  let base = "";
@@ -699,7 +698,13 @@ function unflatten(parsed, revivers) {
699
698
 
700
699
  const reviver = revivers?.[type];
701
700
  if (reviver) {
702
- return (hydrated[index] = reviver(hydrate(value[1])));
701
+ let i = value[1];
702
+ if (typeof i !== 'number') {
703
+ // if it's not a number, it was serialized by a builtin reviver
704
+ // so we need to munge it into the format expected by a custom reviver
705
+ i = values.push(value[1]) - 1;
706
+ }
707
+ return (hydrated[index] = reviver(hydrate(i)));
703
708
  }
704
709
 
705
710
  switch (type) {
@@ -1183,6 +1188,7 @@ function set_component_context(context) {
1183
1188
  function push(props, runes = false, fn) {
1184
1189
  component_context = {
1185
1190
  p: component_context,
1191
+ i: false,
1186
1192
  c: null,
1187
1193
  e: null,
1188
1194
  s: props,
@@ -1202,6 +1208,7 @@ function pop(component) {
1202
1208
  create_user_effect(fn);
1203
1209
  }
1204
1210
  }
1211
+ context.i = true;
1205
1212
  component_context = context.p;
1206
1213
  return (
1207
1214
  /** @type {T} */
@@ -1231,7 +1238,6 @@ function flush_tasks() {
1231
1238
  run_micro_tasks();
1232
1239
  }
1233
1240
  }
1234
- const adjustments = /* @__PURE__ */ new WeakMap();
1235
1241
  function handle_error(error) {
1236
1242
  var effect = active_effect;
1237
1243
  if (effect === null) {
@@ -1240,9 +1246,6 @@ function handle_error(error) {
1240
1246
  }
1241
1247
  if ((effect.f & EFFECT_RAN) === 0) {
1242
1248
  if ((effect.f & BOUNDARY_EFFECT) === 0) {
1243
- if (!effect.parent && error instanceof Error) {
1244
- apply_adjustments(error);
1245
- }
1246
1249
  throw error;
1247
1250
  }
1248
1251
  effect.b.error(error);
@@ -1262,31 +1265,17 @@ function invoke_error_boundary(error, effect) {
1262
1265
  }
1263
1266
  effect = effect.parent;
1264
1267
  }
1265
- if (error instanceof Error) {
1266
- apply_adjustments(error);
1267
- }
1268
1268
  throw error;
1269
1269
  }
1270
- function apply_adjustments(error) {
1271
- const adjusted = adjustments.get(error);
1272
- if (adjusted) {
1273
- define_property(error, "message", {
1274
- value: adjusted.message
1275
- });
1276
- define_property(error, "stack", {
1277
- value: adjusted.stack
1278
- });
1279
- }
1280
- }
1281
1270
  const batches = /* @__PURE__ */ new Set();
1282
1271
  let current_batch = null;
1283
1272
  let batch_values = null;
1284
- let effect_pending_updates = /* @__PURE__ */ new Set();
1285
1273
  let queued_root_effects = [];
1286
1274
  let last_scheduled_effect = null;
1287
1275
  let is_flushing = false;
1288
1276
  let is_flushing_sync = false;
1289
1277
  class Batch {
1278
+ committed = false;
1290
1279
  /**
1291
1280
  * The current values of any sources that are updated in this batch
1292
1281
  * They keys of this map are identical to `this.#previous`
@@ -1298,46 +1287,32 @@ class Batch {
1298
1287
  * They keys of this map are identical to `this.#current`
1299
1288
  * @type {Map<Source, any>}
1300
1289
  */
1301
- #previous = /* @__PURE__ */ new Map();
1290
+ previous = /* @__PURE__ */ new Map();
1302
1291
  /**
1303
1292
  * When the batch is committed (and the DOM is updated), we need to remove old branches
1304
1293
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
1305
1294
  * @type {Set<() => void>}
1306
1295
  */
1307
- #callbacks = /* @__PURE__ */ new Set();
1296
+ #commit_callbacks = /* @__PURE__ */ new Set();
1297
+ /**
1298
+ * If a fork is discarded, we need to destroy any effects that are no longer needed
1299
+ * @type {Set<(batch: Batch) => void>}
1300
+ */
1301
+ #discard_callbacks = /* @__PURE__ */ new Set();
1308
1302
  /**
1309
1303
  * The number of async effects that are currently in flight
1310
1304
  */
1311
1305
  #pending = 0;
1306
+ /**
1307
+ * The number of async effects that are currently in flight, _not_ inside a pending boundary
1308
+ */
1309
+ #blocking_pending = 0;
1312
1310
  /**
1313
1311
  * A deferred that resolves when the batch is committed, used with `settled()`
1314
1312
  * TODO replace with Promise.withResolvers once supported widely enough
1315
1313
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
1316
1314
  */
1317
1315
  #deferred = null;
1318
- /**
1319
- * Async effects inside a newly-created `<svelte:boundary>`
1320
- * — these do not prevent the batch from committing
1321
- * @type {Effect[]}
1322
- */
1323
- #boundary_async_effects = [];
1324
- /**
1325
- * Template effects and `$effect.pre` effects, which run when
1326
- * a batch is committed
1327
- * @type {Effect[]}
1328
- */
1329
- #render_effects = [];
1330
- /**
1331
- * The same as `#render_effects`, but for `$effect` (which runs after)
1332
- * @type {Effect[]}
1333
- */
1334
- #effects = [];
1335
- /**
1336
- * Block effects, which may need to re-run on subsequent flushes
1337
- * in order to update internal sources (e.g. each block items)
1338
- * @type {Effect[]}
1339
- */
1340
- #block_effects = [];
1341
1316
  /**
1342
1317
  * Deferred effects (which run after async work has completed) that are DIRTY
1343
1318
  * @type {Effect[]}
@@ -1354,6 +1329,7 @@ class Batch {
1354
1329
  * @type {Set<Effect>}
1355
1330
  */
1356
1331
  skipped_effects = /* @__PURE__ */ new Set();
1332
+ is_fork = false;
1357
1333
  /**
1358
1334
  *
1359
1335
  * @param {Effect[]} root_effects
@@ -1361,39 +1337,38 @@ class Batch {
1361
1337
  process(root_effects) {
1362
1338
  queued_root_effects = [];
1363
1339
  this.apply();
1340
+ var target = {
1341
+ parent: null,
1342
+ effect: null,
1343
+ effects: [],
1344
+ render_effects: [],
1345
+ block_effects: []
1346
+ };
1364
1347
  for (const root2 of root_effects) {
1365
- this.#traverse_effect_tree(root2);
1348
+ this.#traverse_effect_tree(root2, target);
1366
1349
  }
1367
- if (this.#pending === 0) {
1368
- var previous_batch_sources = batch_values;
1369
- this.#commit();
1370
- var render_effects = this.#render_effects;
1371
- var effects = this.#effects;
1372
- this.#render_effects = [];
1373
- this.#effects = [];
1374
- this.#block_effects = [];
1350
+ if (!this.is_fork) {
1351
+ this.#resolve();
1352
+ }
1353
+ if (this.#blocking_pending > 0 || this.is_fork) {
1354
+ this.#defer_effects(target.effects);
1355
+ this.#defer_effects(target.render_effects);
1356
+ this.#defer_effects(target.block_effects);
1357
+ } else {
1375
1358
  current_batch = null;
1376
- batch_values = previous_batch_sources;
1377
- flush_queued_effects(render_effects);
1378
- flush_queued_effects(effects);
1359
+ flush_queued_effects(target.render_effects);
1360
+ flush_queued_effects(target.effects);
1379
1361
  this.#deferred?.resolve();
1380
- } else {
1381
- this.#defer_effects(this.#render_effects);
1382
- this.#defer_effects(this.#effects);
1383
- this.#defer_effects(this.#block_effects);
1384
1362
  }
1385
1363
  batch_values = null;
1386
- for (const effect of this.#boundary_async_effects) {
1387
- update_effect(effect);
1388
- }
1389
- this.#boundary_async_effects = [];
1390
1364
  }
1391
1365
  /**
1392
1366
  * Traverse the effect tree, executing effects or stashing
1393
1367
  * them for later execution as appropriate
1394
1368
  * @param {Effect} root
1369
+ * @param {EffectTarget} target
1395
1370
  */
1396
- #traverse_effect_tree(root2) {
1371
+ #traverse_effect_tree(root2, target) {
1397
1372
  root2.f ^= CLEAN;
1398
1373
  var effect = root2.first;
1399
1374
  while (effect !== null) {
@@ -1401,18 +1376,23 @@ class Batch {
1401
1376
  var is_branch = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
1402
1377
  var is_skippable_branch = is_branch && (flags2 & CLEAN) !== 0;
1403
1378
  var skip = is_skippable_branch || (flags2 & INERT) !== 0 || this.skipped_effects.has(effect);
1379
+ if ((effect.f & BOUNDARY_EFFECT) !== 0 && effect.b?.is_pending()) {
1380
+ target = {
1381
+ parent: target,
1382
+ effect,
1383
+ effects: [],
1384
+ render_effects: [],
1385
+ block_effects: []
1386
+ };
1387
+ }
1404
1388
  if (!skip && effect.fn !== null) {
1405
1389
  if (is_branch) {
1406
1390
  effect.f ^= CLEAN;
1407
1391
  } else if ((flags2 & EFFECT) !== 0) {
1408
- this.#effects.push(effect);
1409
- } else if ((flags2 & CLEAN) === 0) {
1410
- if ((flags2 & ASYNC) !== 0 && effect.b?.is_pending()) {
1411
- this.#boundary_async_effects.push(effect);
1412
- } else if (is_dirty(effect)) {
1413
- if ((effect.f & BLOCK_EFFECT) !== 0) this.#block_effects.push(effect);
1414
- update_effect(effect);
1415
- }
1392
+ target.effects.push(effect);
1393
+ } else if (is_dirty(effect)) {
1394
+ if ((effect.f & BLOCK_EFFECT) !== 0) target.block_effects.push(effect);
1395
+ update_effect(effect);
1416
1396
  }
1417
1397
  var child = effect.first;
1418
1398
  if (child !== null) {
@@ -1423,6 +1403,13 @@ class Batch {
1423
1403
  var parent = effect.parent;
1424
1404
  effect = effect.next;
1425
1405
  while (effect === null && parent !== null) {
1406
+ if (parent === target.effect) {
1407
+ this.#defer_effects(target.effects);
1408
+ this.#defer_effects(target.render_effects);
1409
+ this.#defer_effects(target.block_effects);
1410
+ target = /** @type {EffectTarget} */
1411
+ target.parent;
1412
+ }
1426
1413
  effect = parent.next;
1427
1414
  parent = parent.parent;
1428
1415
  }
@@ -1437,7 +1424,6 @@ class Batch {
1437
1424
  target.push(e);
1438
1425
  set_signal_status(e, CLEAN);
1439
1426
  }
1440
- effects.length = 0;
1441
1427
  }
1442
1428
  /**
1443
1429
  * Associate a change to a given source with the current
@@ -1446,8 +1432,8 @@ class Batch {
1446
1432
  * @param {any} value
1447
1433
  */
1448
1434
  capture(source2, value) {
1449
- if (!this.#previous.has(source2)) {
1450
- this.#previous.set(source2, value);
1435
+ if (!this.previous.has(source2)) {
1436
+ this.previous.set(source2, value);
1451
1437
  }
1452
1438
  this.current.set(source2, source2.v);
1453
1439
  batch_values?.set(source2, source2.v);
@@ -1460,35 +1446,42 @@ class Batch {
1460
1446
  batch_values = null;
1461
1447
  }
1462
1448
  flush() {
1449
+ this.activate();
1463
1450
  if (queued_root_effects.length > 0) {
1464
- this.activate();
1465
1451
  flush_effects();
1466
1452
  if (current_batch !== null && current_batch !== this) {
1467
1453
  return;
1468
1454
  }
1469
1455
  } else if (this.#pending === 0) {
1470
- this.#commit();
1456
+ this.process([]);
1471
1457
  }
1472
1458
  this.deactivate();
1473
- for (const update of effect_pending_updates) {
1474
- effect_pending_updates.delete(update);
1475
- update();
1476
- if (current_batch !== null) {
1477
- break;
1478
- }
1459
+ }
1460
+ discard() {
1461
+ for (const fn of this.#discard_callbacks) fn(this);
1462
+ this.#discard_callbacks.clear();
1463
+ }
1464
+ #resolve() {
1465
+ if (this.#blocking_pending === 0) {
1466
+ for (const fn of this.#commit_callbacks) fn();
1467
+ this.#commit_callbacks.clear();
1468
+ }
1469
+ if (this.#pending === 0) {
1470
+ this.#commit();
1479
1471
  }
1480
1472
  }
1481
- /**
1482
- * Append and remove branches to/from the DOM
1483
- */
1484
1473
  #commit() {
1485
- for (const fn of this.#callbacks) {
1486
- fn();
1487
- }
1488
- this.#callbacks.clear();
1489
1474
  if (batches.size > 1) {
1490
- this.#previous.clear();
1491
- let is_earlier = true;
1475
+ this.previous.clear();
1476
+ var previous_batch_values = batch_values;
1477
+ var is_earlier = true;
1478
+ var dummy_target = {
1479
+ parent: null,
1480
+ effect: null,
1481
+ effects: [],
1482
+ render_effects: [],
1483
+ block_effects: []
1484
+ };
1492
1485
  for (const batch of batches) {
1493
1486
  if (batch === this) {
1494
1487
  is_earlier = false;
@@ -1510,14 +1503,16 @@ class Batch {
1510
1503
  }
1511
1504
  const others = [...batch.current.keys()].filter((s) => !this.current.has(s));
1512
1505
  if (others.length > 0) {
1506
+ const marked = /* @__PURE__ */ new Set();
1507
+ const checked = /* @__PURE__ */ new Map();
1513
1508
  for (const source2 of sources) {
1514
- mark_effects(source2, others);
1509
+ mark_effects(source2, others, marked, checked);
1515
1510
  }
1516
1511
  if (queued_root_effects.length > 0) {
1517
1512
  current_batch = batch;
1518
1513
  batch.apply();
1519
1514
  for (const root2 of queued_root_effects) {
1520
- batch.#traverse_effect_tree(root2);
1515
+ batch.#traverse_effect_tree(root2, dummy_target);
1521
1516
  }
1522
1517
  queued_root_effects = [];
1523
1518
  batch.deactivate();
@@ -1525,14 +1520,29 @@ class Batch {
1525
1520
  }
1526
1521
  }
1527
1522
  current_batch = null;
1523
+ batch_values = previous_batch_values;
1528
1524
  }
1525
+ this.committed = true;
1529
1526
  batches.delete(this);
1530
1527
  }
1531
- increment() {
1528
+ /**
1529
+ *
1530
+ * @param {boolean} blocking
1531
+ */
1532
+ increment(blocking) {
1532
1533
  this.#pending += 1;
1534
+ if (blocking) this.#blocking_pending += 1;
1533
1535
  }
1534
- decrement() {
1536
+ /**
1537
+ *
1538
+ * @param {boolean} blocking
1539
+ */
1540
+ decrement(blocking) {
1535
1541
  this.#pending -= 1;
1542
+ if (blocking) this.#blocking_pending -= 1;
1543
+ this.revive();
1544
+ }
1545
+ revive() {
1536
1546
  for (const e of this.#dirty_effects) {
1537
1547
  set_signal_status(e, DIRTY);
1538
1548
  schedule_effect(e);
@@ -1541,11 +1551,17 @@ class Batch {
1541
1551
  set_signal_status(e, MAYBE_DIRTY);
1542
1552
  schedule_effect(e);
1543
1553
  }
1554
+ this.#dirty_effects = [];
1555
+ this.#maybe_dirty_effects = [];
1544
1556
  this.flush();
1545
1557
  }
1546
1558
  /** @param {() => void} fn */
1547
- add_callback(fn) {
1548
- this.#callbacks.add(fn);
1559
+ oncommit(fn) {
1560
+ this.#commit_callbacks.add(fn);
1561
+ }
1562
+ /** @param {(batch: Batch) => void} fn */
1563
+ ondiscard(fn) {
1564
+ this.#discard_callbacks.add(fn);
1549
1565
  }
1550
1566
  settled() {
1551
1567
  return (this.#deferred ??= deferred()).promise;
@@ -1634,7 +1650,7 @@ function flush_queued_effects(effects) {
1634
1650
  while (i < length) {
1635
1651
  var effect = effects[i++];
1636
1652
  if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) {
1637
- eager_block_effects = [];
1653
+ eager_block_effects = /* @__PURE__ */ new Set();
1638
1654
  update_effect(effect);
1639
1655
  if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
1640
1656
  if (effect.teardown === null && effect.ac === null) {
@@ -1643,18 +1659,34 @@ function flush_queued_effects(effects) {
1643
1659
  effect.fn = null;
1644
1660
  }
1645
1661
  }
1646
- if (eager_block_effects?.length > 0) {
1662
+ if (eager_block_effects?.size > 0) {
1647
1663
  old_values.clear();
1648
1664
  for (const e of eager_block_effects) {
1649
- update_effect(e);
1665
+ if ((e.f & (DESTROYED | INERT)) !== 0) continue;
1666
+ const ordered_effects = [e];
1667
+ let ancestor = e.parent;
1668
+ while (ancestor !== null) {
1669
+ if (eager_block_effects.has(ancestor)) {
1670
+ eager_block_effects.delete(ancestor);
1671
+ ordered_effects.push(ancestor);
1672
+ }
1673
+ ancestor = ancestor.parent;
1674
+ }
1675
+ for (let j = ordered_effects.length - 1; j >= 0; j--) {
1676
+ const e2 = ordered_effects[j];
1677
+ if ((e2.f & (DESTROYED | INERT)) !== 0) continue;
1678
+ update_effect(e2);
1679
+ }
1650
1680
  }
1651
- eager_block_effects = [];
1681
+ eager_block_effects.clear();
1652
1682
  }
1653
1683
  }
1654
1684
  }
1655
1685
  eager_block_effects = null;
1656
1686
  }
1657
- function mark_effects(value, sources) {
1687
+ function mark_effects(value, sources, marked, checked) {
1688
+ if (marked.has(value)) return;
1689
+ marked.add(value);
1658
1690
  if (value.reactions !== null) {
1659
1691
  for (const reaction of value.reactions) {
1660
1692
  const flags2 = reaction.f;
@@ -1662,9 +1694,12 @@ function mark_effects(value, sources) {
1662
1694
  mark_effects(
1663
1695
  /** @type {Derived} */
1664
1696
  reaction,
1665
- sources
1697
+ sources,
1698
+ marked,
1699
+ checked
1666
1700
  );
1667
- } else if ((flags2 & (ASYNC | BLOCK_EFFECT)) !== 0 && depends_on(reaction, sources)) {
1701
+ } else if ((flags2 & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags2 & DIRTY) === 0 && // we may have scheduled this one already
1702
+ depends_on(reaction, sources, checked)) {
1668
1703
  set_signal_status(reaction, DIRTY);
1669
1704
  schedule_effect(
1670
1705
  /** @type {Effect} */
@@ -1674,7 +1709,9 @@ function mark_effects(value, sources) {
1674
1709
  }
1675
1710
  }
1676
1711
  }
1677
- function depends_on(reaction, sources) {
1712
+ function depends_on(reaction, sources, checked) {
1713
+ const depends = checked.get(reaction);
1714
+ if (depends !== void 0) return depends;
1678
1715
  if (reaction.deps !== null) {
1679
1716
  for (const dep of reaction.deps) {
1680
1717
  if (sources.includes(dep)) {
@@ -1683,12 +1720,19 @@ function depends_on(reaction, sources) {
1683
1720
  if ((dep.f & DERIVED) !== 0 && depends_on(
1684
1721
  /** @type {Derived} */
1685
1722
  dep,
1686
- sources
1723
+ sources,
1724
+ checked
1687
1725
  )) {
1726
+ checked.set(
1727
+ /** @type {Derived} */
1728
+ dep,
1729
+ true
1730
+ );
1688
1731
  return true;
1689
1732
  }
1690
1733
  }
1691
1734
  }
1735
+ checked.set(reaction, false);
1692
1736
  return false;
1693
1737
  }
1694
1738
  function schedule_effect(signal) {
@@ -1758,6 +1802,8 @@ class Boundary {
1758
1802
  #failed_effect = null;
1759
1803
  /** @type {DocumentFragment | null} */
1760
1804
  #offscreen_fragment = null;
1805
+ /** @type {TemplateNode | null} */
1806
+ #pending_anchor = null;
1761
1807
  #local_pending_count = 0;
1762
1808
  #pending_count = 0;
1763
1809
  #is_creating_fallback = false;
@@ -1769,11 +1815,6 @@ class Boundary {
1769
1815
  * @type {Source<number> | null}
1770
1816
  */
1771
1817
  #effect_pending = null;
1772
- #effect_pending_update = () => {
1773
- if (this.#effect_pending) {
1774
- internal_set(this.#effect_pending, this.#local_pending_count);
1775
- }
1776
- };
1777
1818
  #effect_pending_subscriber = createSubscriber(() => {
1778
1819
  this.#effect_pending = source(this.#local_pending_count);
1779
1820
  return () => {
@@ -1808,8 +1849,9 @@ class Boundary {
1808
1849
  this.#hydrate_resolved_content();
1809
1850
  }
1810
1851
  } else {
1852
+ var anchor = this.#get_anchor();
1811
1853
  try {
1812
- this.#main_effect = branch(() => children(this.#anchor));
1854
+ this.#main_effect = branch(() => children(anchor));
1813
1855
  } catch (error) {
1814
1856
  this.error(error);
1815
1857
  }
@@ -1819,6 +1861,9 @@ class Boundary {
1819
1861
  this.#pending = false;
1820
1862
  }
1821
1863
  }
1864
+ return () => {
1865
+ this.#pending_anchor?.remove();
1866
+ };
1822
1867
  }, flags);
1823
1868
  if (hydrating) {
1824
1869
  this.#anchor = hydrate_node;
@@ -1839,9 +1884,10 @@ class Boundary {
1839
1884
  }
1840
1885
  this.#pending_effect = branch(() => pending(this.#anchor));
1841
1886
  Batch.enqueue(() => {
1887
+ var anchor = this.#get_anchor();
1842
1888
  this.#main_effect = this.#run(() => {
1843
1889
  Batch.ensure();
1844
- return branch(() => this.#children(this.#anchor));
1890
+ return branch(() => this.#children(anchor));
1845
1891
  });
1846
1892
  if (this.#pending_count > 0) {
1847
1893
  this.#show_pending_snippet();
@@ -1857,6 +1903,15 @@ class Boundary {
1857
1903
  }
1858
1904
  });
1859
1905
  }
1906
+ #get_anchor() {
1907
+ var anchor = this.#anchor;
1908
+ if (this.#pending) {
1909
+ this.#pending_anchor = create_text();
1910
+ this.#anchor.before(this.#pending_anchor);
1911
+ anchor = this.#pending_anchor;
1912
+ }
1913
+ return anchor;
1914
+ }
1860
1915
  /**
1861
1916
  * Returns `true` if the effect exists inside a boundary whose pending snippet is shown
1862
1917
  * @returns {boolean}
@@ -1895,6 +1950,10 @@ class Boundary {
1895
1950
  );
1896
1951
  if (this.#main_effect !== null) {
1897
1952
  this.#offscreen_fragment = document.createDocumentFragment();
1953
+ this.#offscreen_fragment.append(
1954
+ /** @type {TemplateNode} */
1955
+ this.#pending_anchor
1956
+ );
1898
1957
  move_effect(this.#main_effect, this.#offscreen_fragment);
1899
1958
  }
1900
1959
  if (this.#pending_effect === null) {
@@ -1925,9 +1984,6 @@ class Boundary {
1925
1984
  this.#anchor.before(this.#offscreen_fragment);
1926
1985
  this.#offscreen_fragment = null;
1927
1986
  }
1928
- queue_micro_task(() => {
1929
- Batch.ensure().flush();
1930
- });
1931
1987
  }
1932
1988
  }
1933
1989
  /**
@@ -1939,7 +1995,9 @@ class Boundary {
1939
1995
  update_pending_count(d) {
1940
1996
  this.#update_pending_count(d);
1941
1997
  this.#local_pending_count += d;
1942
- effect_pending_updates.add(this.#effect_pending_update);
1998
+ if (this.#effect_pending) {
1999
+ internal_set(this.#effect_pending, this.#local_pending_count);
2000
+ }
1943
2001
  }
1944
2002
  get_effect_pending() {
1945
2003
  this.#effect_pending_subscriber();
@@ -2018,6 +2076,7 @@ class Boundary {
2018
2076
  if (failed) {
2019
2077
  queue_micro_task(() => {
2020
2078
  this.#failed_effect = this.#run(() => {
2079
+ Batch.ensure();
2021
2080
  this.#is_creating_fallback = true;
2022
2081
  try {
2023
2082
  return branch(() => {
@@ -2042,18 +2101,6 @@ class Boundary {
2042
2101
  }
2043
2102
  }
2044
2103
  }
2045
- function move_effect(effect, fragment) {
2046
- var node = effect.nodes_start;
2047
- var end = effect.nodes_end;
2048
- while (node !== null) {
2049
- var next2 = node === end ? null : (
2050
- /** @type {TemplateNode} */
2051
- /* @__PURE__ */ get_next_sibling(node)
2052
- );
2053
- fragment.append(node);
2054
- node = next2;
2055
- }
2056
- }
2057
2104
  function destroy_derived_effects(derived) {
2058
2105
  var effects = derived.effects;
2059
2106
  if (effects !== null) {
@@ -2085,6 +2132,7 @@ function execute_derived(derived) {
2085
2132
  set_active_effect(get_derived_parent_effect(derived));
2086
2133
  {
2087
2134
  try {
2135
+ derived.f &= ~WAS_MARKED;
2088
2136
  destroy_derived_effects(derived);
2089
2137
  value = update_reaction(derived);
2090
2138
  } finally {
@@ -2109,7 +2157,9 @@ function update_derived(derived) {
2109
2157
  set_signal_status(derived, status);
2110
2158
  }
2111
2159
  }
2160
+ let eager_effects = /* @__PURE__ */ new Set();
2112
2161
  const old_values = /* @__PURE__ */ new Map();
2162
+ let eager_effects_deferred = false;
2113
2163
  function source(v, stack) {
2114
2164
  var signal = {
2115
2165
  f: 0,
@@ -2139,7 +2189,7 @@ function mutable_source(initial_value, immutable = false, trackable = true) {
2139
2189
  function set(source2, value, should_proxy = false) {
2140
2190
  if (active_reaction !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
2141
2191
  // to ensure we error if state is set inside an inspect effect
2142
- (!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
2192
+ (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
2143
2193
  state_unsafe_mutation();
2144
2194
  }
2145
2195
  let new_value = should_proxy ? proxy(value) : value;
@@ -2174,9 +2224,25 @@ function internal_set(source2, value) {
2174
2224
  untracked_writes.push(source2);
2175
2225
  }
2176
2226
  }
2227
+ if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) {
2228
+ flush_eager_effects();
2229
+ }
2177
2230
  }
2178
2231
  return value;
2179
2232
  }
2233
+ function flush_eager_effects() {
2234
+ eager_effects_deferred = false;
2235
+ const inspects = Array.from(eager_effects);
2236
+ for (const effect of inspects) {
2237
+ if ((effect.f & CLEAN) !== 0) {
2238
+ set_signal_status(effect, MAYBE_DIRTY);
2239
+ }
2240
+ if (is_dirty(effect)) {
2241
+ update_effect(effect);
2242
+ }
2243
+ }
2244
+ eager_effects.clear();
2245
+ }
2180
2246
  function increment(source2) {
2181
2247
  set(source2, source2.v + 1);
2182
2248
  }
@@ -2192,15 +2258,18 @@ function mark_reactions(signal, status) {
2192
2258
  set_signal_status(reaction, status);
2193
2259
  }
2194
2260
  if ((flags2 & DERIVED) !== 0) {
2195
- mark_reactions(
2196
- /** @type {Derived} */
2197
- reaction,
2198
- MAYBE_DIRTY
2199
- );
2261
+ if ((flags2 & WAS_MARKED) === 0) {
2262
+ reaction.f |= WAS_MARKED;
2263
+ mark_reactions(
2264
+ /** @type {Derived} */
2265
+ reaction,
2266
+ MAYBE_DIRTY
2267
+ );
2268
+ }
2200
2269
  } else if (not_dirty) {
2201
2270
  if ((flags2 & BLOCK_EFFECT) !== 0) {
2202
2271
  if (eager_block_effects !== null) {
2203
- eager_block_effects.push(
2272
+ eager_block_effects.add(
2204
2273
  /** @type {Effect} */
2205
2274
  reaction
2206
2275
  );
@@ -2502,6 +2571,9 @@ function create_effect(type, fn, sync, push2 = true) {
2502
2571
  if (sync && e.deps === null && e.teardown === null && e.nodes_start === null && e.first === e.last && // either `null`, or a singular child
2503
2572
  (e.f & EFFECT_PRESERVED) === 0) {
2504
2573
  e = e.first;
2574
+ if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) {
2575
+ e.f |= EFFECT_TRANSPARENT;
2576
+ }
2505
2577
  }
2506
2578
  if (e !== null) {
2507
2579
  e.parent = parent;
@@ -2643,11 +2715,11 @@ function unlink_effect(effect) {
2643
2715
  if (parent.last === effect) parent.last = prev;
2644
2716
  }
2645
2717
  }
2646
- function pause_effect(effect, callback) {
2718
+ function pause_effect(effect, callback, destroy = true) {
2647
2719
  var transitions = [];
2648
2720
  pause_children(effect, transitions, true);
2649
2721
  run_out_transitions(transitions, () => {
2650
- destroy_effect(effect);
2722
+ if (destroy) destroy_effect(effect);
2651
2723
  if (callback) callback();
2652
2724
  });
2653
2725
  }
@@ -2675,11 +2747,26 @@ function pause_children(effect, transitions, local) {
2675
2747
  var child = effect.first;
2676
2748
  while (child !== null) {
2677
2749
  var sibling = child.next;
2678
- var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0;
2750
+ var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || // If this is a branch effect without a block effect parent,
2751
+ // it means the parent block effect was pruned. In that case,
2752
+ // transparency information was transferred to the branch effect.
2753
+ (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
2679
2754
  pause_children(child, transitions, transparent ? local : false);
2680
2755
  child = sibling;
2681
2756
  }
2682
2757
  }
2758
+ function move_effect(effect, fragment) {
2759
+ var node = effect.nodes_start;
2760
+ var end = effect.nodes_end;
2761
+ while (node !== null) {
2762
+ var next2 = node === end ? null : (
2763
+ /** @type {TemplateNode} */
2764
+ /* @__PURE__ */ get_next_sibling(node)
2765
+ );
2766
+ fragment.append(node);
2767
+ node = next2;
2768
+ }
2769
+ }
2683
2770
  let is_updating_effect = false;
2684
2771
  function set_is_updating_effect(value) {
2685
2772
  is_updating_effect = value;
@@ -2731,6 +2818,9 @@ function is_dirty(reaction) {
2731
2818
  if ((flags2 & MAYBE_DIRTY) !== 0) {
2732
2819
  var dependencies = reaction.deps;
2733
2820
  var is_unowned = (flags2 & UNOWNED) !== 0;
2821
+ if (flags2 & DERIVED) {
2822
+ reaction.f &= ~WAS_MARKED;
2823
+ }
2734
2824
  if (dependencies !== null) {
2735
2825
  var i;
2736
2826
  var dependency;
@@ -3129,12 +3219,7 @@ function handle_event_propagation(event) {
3129
3219
  current_target.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
3130
3220
  // -> the target could not have been disabled because it emits the event in the first place
3131
3221
  event.target === current_target)) {
3132
- if (is_array(delegated)) {
3133
- var [fn, ...data] = delegated;
3134
- fn.apply(current_target, [event, ...data]);
3135
- } else {
3136
- delegated.call(current_target, event);
3137
- }
3222
+ delegated.call(current_target, event);
3138
3223
  }
3139
3224
  } catch (error) {
3140
3225
  if (throw_error) {
@@ -3632,7 +3717,7 @@ const options = {
3632
3717
  <div class="error">
3633
3718
  <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
3634
3719
  },
3635
- version_hash: "1qcsm56"
3720
+ version_hash: "142war7"
3636
3721
  };
3637
3722
  async function get_hooks() {
3638
3723
  let handle;
@@ -3672,6 +3757,291 @@ function create_remote_cache_key(id, payload) {
3672
3757
  return id + "/" + payload;
3673
3758
  }
3674
3759
 
3760
+ var cookie = {};
3761
+
3762
+ /*!
3763
+ * cookie
3764
+ * Copyright(c) 2012-2014 Roman Shtylman
3765
+ * Copyright(c) 2015 Douglas Christopher Wilson
3766
+ * MIT Licensed
3767
+ */
3768
+
3769
+ var hasRequiredCookie;
3770
+
3771
+ function requireCookie () {
3772
+ if (hasRequiredCookie) return cookie;
3773
+ hasRequiredCookie = 1;
3774
+
3775
+ /**
3776
+ * Module exports.
3777
+ * @public
3778
+ */
3779
+
3780
+ cookie.parse = parse;
3781
+ cookie.serialize = serialize;
3782
+
3783
+ /**
3784
+ * Module variables.
3785
+ * @private
3786
+ */
3787
+
3788
+ var __toString = Object.prototype.toString;
3789
+
3790
+ /**
3791
+ * RegExp to match field-content in RFC 7230 sec 3.2
3792
+ *
3793
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
3794
+ * field-vchar = VCHAR / obs-text
3795
+ * obs-text = %x80-FF
3796
+ */
3797
+
3798
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
3799
+
3800
+ /**
3801
+ * Parse a cookie header.
3802
+ *
3803
+ * Parse the given cookie header string into an object
3804
+ * The object has the various cookies as keys(names) => values
3805
+ *
3806
+ * @param {string} str
3807
+ * @param {object} [options]
3808
+ * @return {object}
3809
+ * @public
3810
+ */
3811
+
3812
+ function parse(str, options) {
3813
+ if (typeof str !== 'string') {
3814
+ throw new TypeError('argument str must be a string');
3815
+ }
3816
+
3817
+ var obj = {};
3818
+ var opt = options || {};
3819
+ var dec = opt.decode || decode;
3820
+
3821
+ var index = 0;
3822
+ while (index < str.length) {
3823
+ var eqIdx = str.indexOf('=', index);
3824
+
3825
+ // no more cookie pairs
3826
+ if (eqIdx === -1) {
3827
+ break
3828
+ }
3829
+
3830
+ var endIdx = str.indexOf(';', index);
3831
+
3832
+ if (endIdx === -1) {
3833
+ endIdx = str.length;
3834
+ } else if (endIdx < eqIdx) {
3835
+ // backtrack on prior semicolon
3836
+ index = str.lastIndexOf(';', eqIdx - 1) + 1;
3837
+ continue
3838
+ }
3839
+
3840
+ var key = str.slice(index, eqIdx).trim();
3841
+
3842
+ // only assign once
3843
+ if (undefined === obj[key]) {
3844
+ var val = str.slice(eqIdx + 1, endIdx).trim();
3845
+
3846
+ // quoted values
3847
+ if (val.charCodeAt(0) === 0x22) {
3848
+ val = val.slice(1, -1);
3849
+ }
3850
+
3851
+ obj[key] = tryDecode(val, dec);
3852
+ }
3853
+
3854
+ index = endIdx + 1;
3855
+ }
3856
+
3857
+ return obj;
3858
+ }
3859
+
3860
+ /**
3861
+ * Serialize data into a cookie header.
3862
+ *
3863
+ * Serialize the a name value pair into a cookie string suitable for
3864
+ * http headers. An optional options object specified cookie parameters.
3865
+ *
3866
+ * serialize('foo', 'bar', { httpOnly: true })
3867
+ * => "foo=bar; httpOnly"
3868
+ *
3869
+ * @param {string} name
3870
+ * @param {string} val
3871
+ * @param {object} [options]
3872
+ * @return {string}
3873
+ * @public
3874
+ */
3875
+
3876
+ function serialize(name, val, options) {
3877
+ var opt = options || {};
3878
+ var enc = opt.encode || encode;
3879
+
3880
+ if (typeof enc !== 'function') {
3881
+ throw new TypeError('option encode is invalid');
3882
+ }
3883
+
3884
+ if (!fieldContentRegExp.test(name)) {
3885
+ throw new TypeError('argument name is invalid');
3886
+ }
3887
+
3888
+ var value = enc(val);
3889
+
3890
+ if (value && !fieldContentRegExp.test(value)) {
3891
+ throw new TypeError('argument val is invalid');
3892
+ }
3893
+
3894
+ var str = name + '=' + value;
3895
+
3896
+ if (null != opt.maxAge) {
3897
+ var maxAge = opt.maxAge - 0;
3898
+
3899
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
3900
+ throw new TypeError('option maxAge is invalid')
3901
+ }
3902
+
3903
+ str += '; Max-Age=' + Math.floor(maxAge);
3904
+ }
3905
+
3906
+ if (opt.domain) {
3907
+ if (!fieldContentRegExp.test(opt.domain)) {
3908
+ throw new TypeError('option domain is invalid');
3909
+ }
3910
+
3911
+ str += '; Domain=' + opt.domain;
3912
+ }
3913
+
3914
+ if (opt.path) {
3915
+ if (!fieldContentRegExp.test(opt.path)) {
3916
+ throw new TypeError('option path is invalid');
3917
+ }
3918
+
3919
+ str += '; Path=' + opt.path;
3920
+ }
3921
+
3922
+ if (opt.expires) {
3923
+ var expires = opt.expires;
3924
+
3925
+ if (!isDate(expires) || isNaN(expires.valueOf())) {
3926
+ throw new TypeError('option expires is invalid');
3927
+ }
3928
+
3929
+ str += '; Expires=' + expires.toUTCString();
3930
+ }
3931
+
3932
+ if (opt.httpOnly) {
3933
+ str += '; HttpOnly';
3934
+ }
3935
+
3936
+ if (opt.secure) {
3937
+ str += '; Secure';
3938
+ }
3939
+
3940
+ if (opt.partitioned) {
3941
+ str += '; Partitioned';
3942
+ }
3943
+
3944
+ if (opt.priority) {
3945
+ var priority = typeof opt.priority === 'string'
3946
+ ? opt.priority.toLowerCase()
3947
+ : opt.priority;
3948
+
3949
+ switch (priority) {
3950
+ case 'low':
3951
+ str += '; Priority=Low';
3952
+ break
3953
+ case 'medium':
3954
+ str += '; Priority=Medium';
3955
+ break
3956
+ case 'high':
3957
+ str += '; Priority=High';
3958
+ break
3959
+ default:
3960
+ throw new TypeError('option priority is invalid')
3961
+ }
3962
+ }
3963
+
3964
+ if (opt.sameSite) {
3965
+ var sameSite = typeof opt.sameSite === 'string'
3966
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
3967
+
3968
+ switch (sameSite) {
3969
+ case true:
3970
+ str += '; SameSite=Strict';
3971
+ break;
3972
+ case 'lax':
3973
+ str += '; SameSite=Lax';
3974
+ break;
3975
+ case 'strict':
3976
+ str += '; SameSite=Strict';
3977
+ break;
3978
+ case 'none':
3979
+ str += '; SameSite=None';
3980
+ break;
3981
+ default:
3982
+ throw new TypeError('option sameSite is invalid');
3983
+ }
3984
+ }
3985
+
3986
+ return str;
3987
+ }
3988
+
3989
+ /**
3990
+ * URL-decode string value. Optimized to skip native call when no %.
3991
+ *
3992
+ * @param {string} str
3993
+ * @returns {string}
3994
+ */
3995
+
3996
+ function decode (str) {
3997
+ return str.indexOf('%') !== -1
3998
+ ? decodeURIComponent(str)
3999
+ : str
4000
+ }
4001
+
4002
+ /**
4003
+ * URL-encode value.
4004
+ *
4005
+ * @param {string} val
4006
+ * @returns {string}
4007
+ */
4008
+
4009
+ function encode (val) {
4010
+ return encodeURIComponent(val)
4011
+ }
4012
+
4013
+ /**
4014
+ * Determine if value is a Date.
4015
+ *
4016
+ * @param {*} val
4017
+ * @private
4018
+ */
4019
+
4020
+ function isDate (val) {
4021
+ return __toString.call(val) === '[object Date]' ||
4022
+ val instanceof Date
4023
+ }
4024
+
4025
+ /**
4026
+ * Try decoding a string using a decoding function.
4027
+ *
4028
+ * @param {string} str
4029
+ * @param {function} decode
4030
+ * @private
4031
+ */
4032
+
4033
+ function tryDecode(str, decode) {
4034
+ try {
4035
+ return decode(str);
4036
+ } catch (e) {
4037
+ return str;
4038
+ }
4039
+ }
4040
+ return cookie;
4041
+ }
4042
+
4043
+ var cookieExports = requireCookie();
4044
+
3675
4045
  var setCookie = {exports: {}};
3676
4046
 
3677
4047
  var hasRequiredSetCookie;
@@ -3686,6 +4056,14 @@ function requireSetCookie () {
3686
4056
  silent: false,
3687
4057
  };
3688
4058
 
4059
+ function isForbiddenKey(key) {
4060
+ return typeof key !== "string" || key in {};
4061
+ }
4062
+
4063
+ function createNullObj() {
4064
+ return Object.create(null);
4065
+ }
4066
+
3689
4067
  function isNonEmptyString(str) {
3690
4068
  return typeof str === "string" && !!str.trim();
3691
4069
  }
@@ -3702,30 +4080,35 @@ function requireSetCookie () {
3702
4080
  ? Object.assign({}, defaultParseOptions, options)
3703
4081
  : defaultParseOptions;
3704
4082
 
4083
+ if (isForbiddenKey(name)) {
4084
+ return null;
4085
+ }
4086
+
3705
4087
  try {
3706
4088
  value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
3707
4089
  } catch (e) {
3708
4090
  console.error(
3709
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
3710
- value +
3711
- "'. Set options.decodeValues to false to disable this feature.",
4091
+ "set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
3712
4092
  e
3713
4093
  );
3714
4094
  }
3715
4095
 
3716
- var cookie = {
3717
- name: name,
3718
- value: value,
3719
- };
4096
+ var cookie = createNullObj();
4097
+ cookie.name = name;
4098
+ cookie.value = value;
3720
4099
 
3721
4100
  parts.forEach(function (part) {
3722
4101
  var sides = part.split("=");
3723
4102
  var key = sides.shift().trimLeft().toLowerCase();
4103
+ if (isForbiddenKey(key)) {
4104
+ return;
4105
+ }
3724
4106
  var value = sides.join("=");
3725
4107
  if (key === "expires") {
3726
4108
  cookie.expires = new Date(value);
3727
4109
  } else if (key === "max-age") {
3728
- cookie.maxAge = parseInt(value, 10);
4110
+ var n = parseInt(value, 10);
4111
+ if (!Number.isNaN(n)) cookie.maxAge = n;
3729
4112
  } else if (key === "secure") {
3730
4113
  cookie.secure = true;
3731
4114
  } else if (key === "httponly") {
@@ -3734,7 +4117,7 @@ function requireSetCookie () {
3734
4117
  cookie.sameSite = value;
3735
4118
  } else if (key === "partitioned") {
3736
4119
  cookie.partitioned = true;
3737
- } else {
4120
+ } else if (key) {
3738
4121
  cookie[key] = value;
3739
4122
  }
3740
4123
  });
@@ -3767,7 +4150,7 @@ function requireSetCookie () {
3767
4150
  if (!options.map) {
3768
4151
  return [];
3769
4152
  } else {
3770
- return {};
4153
+ return createNullObj();
3771
4154
  }
3772
4155
  }
3773
4156
 
@@ -3777,7 +4160,7 @@ function requireSetCookie () {
3777
4160
  // but getSetCookie returns an uncombined array
3778
4161
  input = input.headers.getSetCookie();
3779
4162
  } else if (input.headers["set-cookie"]) {
3780
- // fast-path for node.js (which automatically normalizes header names to lower-case
4163
+ // fast-path for node.js (which automatically normalizes header names to lower-case)
3781
4164
  input = input.headers["set-cookie"];
3782
4165
  } else {
3783
4166
  // slow-path for other environments - see #25
@@ -3801,14 +4184,19 @@ function requireSetCookie () {
3801
4184
  }
3802
4185
 
3803
4186
  if (!options.map) {
3804
- return input.filter(isNonEmptyString).map(function (str) {
3805
- return parseString(str, options);
3806
- });
4187
+ return input
4188
+ .filter(isNonEmptyString)
4189
+ .map(function (str) {
4190
+ return parseString(str, options);
4191
+ })
4192
+ .filter(Boolean);
3807
4193
  } else {
3808
- var cookies = {};
4194
+ var cookies = createNullObj();
3809
4195
  return input.filter(isNonEmptyString).reduce(function (cookies, str) {
3810
4196
  var cookie = parseString(str, options);
3811
- cookies[cookie.name] = cookie;
4197
+ if (cookie && !isForbiddenKey(cookie.name)) {
4198
+ cookies[cookie.name] = cookie;
4199
+ }
3812
4200
  return cookies;
3813
4201
  }, cookies);
3814
4202
  }
@@ -4517,46 +4905,29 @@ function try_serialize(data, fn, route_id) {
4517
4905
  throw error2;
4518
4906
  }
4519
4907
  }
4520
- function defer() {
4521
- let fulfil;
4522
- let reject;
4523
- const promise = new Promise((f, r) => {
4524
- fulfil = f;
4525
- reject = r;
4526
- });
4527
- return { promise, fulfil, reject };
4528
- }
4529
4908
  function create_async_iterator() {
4530
- let count = 0;
4531
- const deferred = [defer()];
4909
+ let resolved = -1;
4910
+ let returned = -1;
4911
+ const deferred = [];
4532
4912
  return {
4533
4913
  iterate: (transform = (x) => x) => {
4534
4914
  return {
4535
4915
  [Symbol.asyncIterator]() {
4536
4916
  return {
4537
4917
  next: async () => {
4538
- const next = await deferred[0].promise;
4539
- if (!next.done) {
4540
- deferred.shift();
4541
- return { value: transform(next.value), done: false };
4542
- }
4543
- return next;
4918
+ const next = deferred[++returned];
4919
+ if (!next) return { value: null, done: true };
4920
+ const value = await next.promise;
4921
+ return { value: transform(value), done: false };
4544
4922
  }
4545
4923
  };
4546
4924
  }
4547
4925
  };
4548
4926
  },
4549
4927
  add: (promise) => {
4550
- count += 1;
4928
+ deferred.push(with_resolvers());
4551
4929
  void promise.then((value) => {
4552
- deferred[deferred.length - 1].fulfil({
4553
- value,
4554
- done: false
4555
- });
4556
- deferred.push(defer());
4557
- if (--count === 0) {
4558
- deferred[deferred.length - 1].fulfil({ done: true });
4559
- }
4930
+ deferred[++resolved].resolve(value);
4560
4931
  });
4561
4932
  }
4562
4933
  };
@@ -5965,7 +6336,7 @@ ${indent}}`);
5965
6336
  async start(controller) {
5966
6337
  controller.enqueue(text_encoder.encode(transformed + "\n"));
5967
6338
  for await (const chunk of chunks) {
5968
- controller.enqueue(text_encoder.encode(chunk));
6339
+ if (chunk.length) controller.enqueue(text_encoder.encode(chunk));
5969
6340
  }
5970
6341
  controller.close();
5971
6342
  },
@@ -6819,7 +7190,7 @@ function generate_cookie_key(domain, path, name) {
6819
7190
  }
6820
7191
  function get_cookies(request, url) {
6821
7192
  const header = request.headers.get("cookie") ?? "";
6822
- const initial_cookies = parse$1(header, { decode: (value) => value });
7193
+ const initial_cookies = cookieExports.parse(header, { decode: (value) => value });
6823
7194
  let normalized_url;
6824
7195
  const new_cookies = /* @__PURE__ */ new Map();
6825
7196
  const defaults = {
@@ -6843,7 +7214,7 @@ function get_cookies(request, url) {
6843
7214
  if (best_match) {
6844
7215
  return best_match.options.maxAge === 0 ? void 0 : best_match.value;
6845
7216
  }
6846
- const req_cookies = parse$1(header, { decode: opts?.decode });
7217
+ const req_cookies = cookieExports.parse(header, { decode: opts?.decode });
6847
7218
  const cookie = req_cookies[name];
6848
7219
  return cookie;
6849
7220
  },
@@ -6851,7 +7222,7 @@ function get_cookies(request, url) {
6851
7222
  * @param {import('cookie').CookieParseOptions} [opts]
6852
7223
  */
6853
7224
  getAll(opts) {
6854
- const cookies2 = parse$1(header, { decode: opts?.decode });
7225
+ const cookies2 = cookieExports.parse(header, { decode: opts?.decode });
6855
7226
  const lookup = /* @__PURE__ */ new Map();
6856
7227
  for (const c of new_cookies.values()) {
6857
7228
  if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
@@ -6905,7 +7276,7 @@ function get_cookies(request, url) {
6905
7276
  }
6906
7277
  path = resolve(normalized_url, path);
6907
7278
  }
6908
- return serialize(name, value, { ...defaults, ...options2, path });
7279
+ return cookieExports.serialize(name, value, { ...defaults, ...options2, path });
6909
7280
  }
6910
7281
  };
6911
7282
  function get_cookie_header(destination, header2) {
@@ -6920,7 +7291,7 @@ function get_cookies(request, url) {
6920
7291
  combined_cookies[cookie.name] = encoder(cookie.value);
6921
7292
  }
6922
7293
  if (header2) {
6923
- const parsed = parse$1(header2, { decode: (value) => value });
7294
+ const parsed = cookieExports.parse(header2, { decode: (value) => value });
6924
7295
  for (const name in parsed) {
6925
7296
  combined_cookies[name] = parsed[name];
6926
7297
  }
@@ -6962,10 +7333,10 @@ function path_matches(path, constraint) {
6962
7333
  function add_cookies_to_headers(headers2, cookies) {
6963
7334
  for (const new_cookie of cookies) {
6964
7335
  const { name, value, options: options2 } = new_cookie;
6965
- headers2.append("set-cookie", serialize(name, value, options2));
7336
+ headers2.append("set-cookie", cookieExports.serialize(name, value, options2));
6966
7337
  if (options2.path.endsWith(".html")) {
6967
7338
  const path = add_data_suffix(options2.path);
6968
- headers2.append("set-cookie", serialize(name, value, { ...options2, path }));
7339
+ headers2.append("set-cookie", cookieExports.serialize(name, value, { ...options2, path }));
6969
7340
  }
6970
7341
  }
6971
7342
  }