@better-svelte-email/preview-server 2.1.1 → 2.1.2

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 (1037) hide show
  1. package/build/client/_app/immutable/assets/0.By7obJiv.css +1 -0
  2. package/build/client/_app/immutable/assets/0.By7obJiv.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.By7obJiv.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/2pZ28JA1.js +1 -0
  5. package/build/client/_app/immutable/chunks/2pZ28JA1.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/2pZ28JA1.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/8PwUyIlP2.js +1 -0
  8. package/build/client/_app/immutable/chunks/8PwUyIlP2.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/8PwUyIlP2.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/AoC3-GXO2.js +1 -0
  11. package/build/client/_app/immutable/chunks/AoC3-GXO2.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/AoC3-GXO2.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/B0iNQslz.js +1 -0
  14. package/build/client/_app/immutable/chunks/B0iNQslz.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/B0iNQslz.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/B1eC0VY6.js +1 -0
  17. package/build/client/_app/immutable/chunks/B1eC0VY6.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/B1eC0VY6.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/B2gwz-sJ2.js +1 -0
  20. package/build/client/_app/immutable/chunks/B2gwz-sJ2.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/B2gwz-sJ2.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/B3OdPoN_.js +1 -0
  23. package/build/client/_app/immutable/chunks/B3OdPoN_.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/B3OdPoN_.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/B4nfriop.js +1 -0
  26. package/build/client/_app/immutable/chunks/B4nfriop.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/B4nfriop.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/B92yCKkz2.js +1 -0
  29. package/build/client/_app/immutable/chunks/B92yCKkz2.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/B92yCKkz2.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/BCyR5SPb.js +1 -0
  32. package/build/client/_app/immutable/chunks/BCyR5SPb.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/BCyR5SPb.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/BHIi3qVr2.js +1 -0
  35. package/build/client/_app/immutable/chunks/BHIi3qVr2.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/BHIi3qVr2.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/BHpQb5nM.js +1 -0
  38. package/build/client/_app/immutable/chunks/BHpQb5nM.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/BHpQb5nM.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/BL4DOeuO.js +1 -0
  41. package/build/client/_app/immutable/chunks/BL4DOeuO.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/BL4DOeuO.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/BLb6t9Lh.js +1 -0
  44. package/build/client/_app/immutable/chunks/BLb6t9Lh.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/BLb6t9Lh.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/BLs_XbWi2.js +1 -0
  47. package/build/client/_app/immutable/chunks/BLs_XbWi2.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/BLs_XbWi2.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/BML5mF2J.js +1 -0
  50. package/build/client/_app/immutable/chunks/BML5mF2J.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/BML5mF2J.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/BO_NcNPW.js +1 -0
  53. package/build/client/_app/immutable/chunks/BO_NcNPW.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/BO_NcNPW.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/BPpVW1t9.js +1 -0
  56. package/build/client/_app/immutable/chunks/BPpVW1t9.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/BPpVW1t9.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/BYnGhZoM.js +1 -0
  59. package/build/client/_app/immutable/chunks/BYnGhZoM.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/BYnGhZoM.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/B_bV9PQ92.js +1 -0
  62. package/build/client/_app/immutable/chunks/B_bV9PQ92.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/B_bV9PQ92.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/Bf_OO4m5.js +1 -0
  65. package/build/client/_app/immutable/chunks/Bf_OO4m5.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/Bf_OO4m5.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/BiFt_7mu2.js +1 -0
  68. package/build/client/_app/immutable/chunks/BiFt_7mu2.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/BiFt_7mu2.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/Bj7E1mRn.js +1 -0
  71. package/build/client/_app/immutable/chunks/Bj7E1mRn.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Bj7E1mRn.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  74. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/BmuOG9ZW.js +1 -0
  77. package/build/client/_app/immutable/chunks/BmuOG9ZW.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/BmuOG9ZW.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/Bozd7klA.js +1 -0
  80. package/build/client/_app/immutable/chunks/Bozd7klA.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/Bozd7klA.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/BuyVToAU.js +1 -0
  83. package/build/client/_app/immutable/chunks/BuyVToAU.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/BuyVToAU.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/BxpfTIzt.js +1 -0
  86. package/build/client/_app/immutable/chunks/BxpfTIzt.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/BxpfTIzt.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/BzltqjU8.js +1 -0
  89. package/build/client/_app/immutable/chunks/BzltqjU8.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/BzltqjU8.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/C0MpOrj4.js +1 -0
  92. package/build/client/_app/immutable/chunks/C0MpOrj4.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/C0MpOrj4.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/C1IUL_tW2.js +1 -0
  95. package/build/client/_app/immutable/chunks/C1IUL_tW2.js.br +0 -0
  96. package/build/client/_app/immutable/chunks/C1IUL_tW2.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/C2pBCSgt.js +1 -0
  98. package/build/client/_app/immutable/chunks/C2pBCSgt.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/C2pBCSgt.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/C2tE-Xb62.js +1 -0
  101. package/build/client/_app/immutable/chunks/C2tE-Xb62.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/C2tE-Xb62.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/C3eVgNwp2.js +1 -0
  104. package/build/client/_app/immutable/chunks/C3eVgNwp2.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/C3eVgNwp2.js.gz +0 -0
  106. package/build/client/_app/immutable/chunks/C4aeQxkf2.js +1 -0
  107. package/build/client/_app/immutable/chunks/C4aeQxkf2.js.br +0 -0
  108. package/build/client/_app/immutable/chunks/C4aeQxkf2.js.gz +0 -0
  109. package/build/client/_app/immutable/chunks/C5bbMRzS.js +1 -0
  110. package/build/client/_app/immutable/chunks/C5bbMRzS.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/C5bbMRzS.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/C8oCnwJJ2.js +1 -0
  113. package/build/client/_app/immutable/chunks/C8oCnwJJ2.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/C8oCnwJJ2.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/C9Q5zVZY.js +1 -0
  116. package/build/client/_app/immutable/chunks/C9Q5zVZY.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/C9Q5zVZY.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/CA9gdOdF.js +1 -0
  119. package/build/client/_app/immutable/chunks/CA9gdOdF.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/CA9gdOdF.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/CCSX75yM2.js +1 -0
  122. package/build/client/_app/immutable/chunks/CCSX75yM2.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/CCSX75yM2.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/CDG3PAdG.js +1 -0
  125. package/build/client/_app/immutable/chunks/CDG3PAdG.js.br +0 -0
  126. package/build/client/_app/immutable/chunks/CDG3PAdG.js.gz +0 -0
  127. package/build/client/_app/immutable/chunks/CJteGSc7.js +1 -0
  128. package/build/client/_app/immutable/chunks/CJteGSc7.js.br +0 -0
  129. package/build/client/_app/immutable/chunks/CJteGSc7.js.gz +0 -0
  130. package/build/client/_app/immutable/chunks/CJy9scTx2.js +1 -0
  131. package/build/client/_app/immutable/chunks/CJy9scTx2.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/CJy9scTx2.js.gz +0 -0
  133. package/build/client/_app/immutable/chunks/CLbN30Ww2.js +1 -0
  134. package/build/client/_app/immutable/chunks/CLbN30Ww2.js.br +0 -0
  135. package/build/client/_app/immutable/chunks/CLbN30Ww2.js.gz +0 -0
  136. package/build/client/_app/immutable/chunks/CVhNsCIr.js +1 -0
  137. package/build/client/_app/immutable/chunks/CVhNsCIr.js.br +0 -0
  138. package/build/client/_app/immutable/chunks/CVhNsCIr.js.gz +0 -0
  139. package/build/client/_app/immutable/chunks/CWbY0LAI.js +1 -0
  140. package/build/client/_app/immutable/chunks/CWbY0LAI.js.br +0 -0
  141. package/build/client/_app/immutable/chunks/CWbY0LAI.js.gz +0 -0
  142. package/build/client/_app/immutable/chunks/CYIUgYqB2.js +1 -0
  143. package/build/client/_app/immutable/chunks/CYIUgYqB2.js.br +0 -0
  144. package/build/client/_app/immutable/chunks/CYIUgYqB2.js.gz +0 -0
  145. package/build/client/_app/immutable/chunks/C_ew8g7J2.js +1 -0
  146. package/build/client/_app/immutable/chunks/C_ew8g7J2.js.br +0 -0
  147. package/build/client/_app/immutable/chunks/C_ew8g7J2.js.gz +0 -0
  148. package/build/client/_app/immutable/chunks/Cc8H0qaz.js +1 -0
  149. package/build/client/_app/immutable/chunks/Cc8H0qaz.js.br +0 -0
  150. package/build/client/_app/immutable/chunks/Cc8H0qaz.js.gz +0 -0
  151. package/build/client/_app/immutable/chunks/CjNLYCLg2.js +1 -0
  152. package/build/client/_app/immutable/chunks/CjNLYCLg2.js.br +0 -0
  153. package/build/client/_app/immutable/chunks/CjNLYCLg2.js.gz +0 -0
  154. package/build/client/_app/immutable/chunks/CjRP0NjD2.js +1 -0
  155. package/build/client/_app/immutable/chunks/CjRP0NjD2.js.br +0 -0
  156. package/build/client/_app/immutable/chunks/CjRP0NjD2.js.gz +0 -0
  157. package/build/client/_app/immutable/chunks/CmhtYr-H.js +1 -0
  158. package/build/client/_app/immutable/chunks/CmhtYr-H.js.br +0 -0
  159. package/build/client/_app/immutable/chunks/CmhtYr-H.js.gz +0 -0
  160. package/build/client/_app/immutable/chunks/CogqGmtf2.js +1 -0
  161. package/build/client/_app/immutable/chunks/CogqGmtf2.js.br +0 -0
  162. package/build/client/_app/immutable/chunks/CogqGmtf2.js.gz +0 -0
  163. package/build/client/_app/immutable/chunks/Cs6JJXT5.js +1 -0
  164. package/build/client/_app/immutable/chunks/Cs6JJXT5.js.br +0 -0
  165. package/build/client/_app/immutable/chunks/Cs6JJXT5.js.gz +0 -0
  166. package/build/client/_app/immutable/chunks/CsCG9XlY2.js +1 -0
  167. package/build/client/_app/immutable/chunks/CsCG9XlY2.js.br +0 -0
  168. package/build/client/_app/immutable/chunks/CsCG9XlY2.js.gz +0 -0
  169. package/build/client/_app/immutable/chunks/CtfBBspg2.js +1 -0
  170. package/build/client/_app/immutable/chunks/CtfBBspg2.js.br +0 -0
  171. package/build/client/_app/immutable/chunks/CtfBBspg2.js.gz +0 -0
  172. package/build/client/_app/immutable/chunks/CtsyrtPq.js +1 -0
  173. package/build/client/_app/immutable/chunks/CtsyrtPq.js.br +0 -0
  174. package/build/client/_app/immutable/chunks/CtsyrtPq.js.gz +0 -0
  175. package/build/client/_app/immutable/chunks/Cx4VUS55.js +1 -0
  176. package/build/client/_app/immutable/chunks/Cx4VUS55.js.br +0 -0
  177. package/build/client/_app/immutable/chunks/Cx4VUS55.js.gz +0 -0
  178. package/build/client/_app/immutable/chunks/CyEgAFGc.js +1 -0
  179. package/build/client/_app/immutable/chunks/CyEgAFGc.js.br +0 -0
  180. package/build/client/_app/immutable/chunks/CyEgAFGc.js.gz +0 -0
  181. package/build/client/_app/immutable/chunks/CyOMC1H12.js +1 -0
  182. package/build/client/_app/immutable/chunks/CyOMC1H12.js.br +0 -0
  183. package/build/client/_app/immutable/chunks/CyOMC1H12.js.gz +0 -0
  184. package/build/client/_app/immutable/chunks/CyoNGCRj2.js +1 -0
  185. package/build/client/_app/immutable/chunks/CyoNGCRj2.js.br +0 -0
  186. package/build/client/_app/immutable/chunks/CyoNGCRj2.js.gz +0 -0
  187. package/build/client/_app/immutable/chunks/D0apG41V2.js +1 -0
  188. package/build/client/_app/immutable/chunks/D0apG41V2.js.br +0 -0
  189. package/build/client/_app/immutable/chunks/D0apG41V2.js.gz +0 -0
  190. package/build/client/_app/immutable/chunks/D2hLgkL3.js +1 -0
  191. package/build/client/_app/immutable/chunks/D2hLgkL3.js.br +0 -0
  192. package/build/client/_app/immutable/chunks/D2hLgkL3.js.gz +0 -0
  193. package/build/client/_app/immutable/chunks/D3_lVCrH.js +3 -0
  194. package/build/client/_app/immutable/chunks/D3_lVCrH.js.br +0 -0
  195. package/build/client/_app/immutable/chunks/D3_lVCrH.js.gz +0 -0
  196. package/build/client/_app/immutable/chunks/D8mc0qWB.js +1 -0
  197. package/build/client/_app/immutable/chunks/D8mc0qWB.js.br +0 -0
  198. package/build/client/_app/immutable/chunks/D8mc0qWB.js.gz +0 -0
  199. package/build/client/_app/immutable/chunks/D8qrblp8.js +1 -0
  200. package/build/client/_app/immutable/chunks/D8qrblp8.js.br +0 -0
  201. package/build/client/_app/immutable/chunks/D8qrblp8.js.gz +0 -0
  202. package/build/client/_app/immutable/chunks/D8y1tx0e2.js +1 -0
  203. package/build/client/_app/immutable/chunks/D8y1tx0e2.js.br +0 -0
  204. package/build/client/_app/immutable/chunks/D8y1tx0e2.js.gz +0 -0
  205. package/build/client/_app/immutable/chunks/DBj4K9d_2.js +1 -0
  206. package/build/client/_app/immutable/chunks/DBj4K9d_2.js.br +0 -0
  207. package/build/client/_app/immutable/chunks/DBj4K9d_2.js.gz +0 -0
  208. package/build/client/_app/immutable/chunks/DET9eGgo.js +1 -0
  209. package/build/client/_app/immutable/chunks/DET9eGgo.js.br +0 -0
  210. package/build/client/_app/immutable/chunks/DET9eGgo.js.gz +0 -0
  211. package/build/client/_app/immutable/chunks/DHYfO66s2.js +1 -0
  212. package/build/client/_app/immutable/chunks/DHYfO66s2.js.br +0 -0
  213. package/build/client/_app/immutable/chunks/DHYfO66s2.js.gz +0 -0
  214. package/build/client/_app/immutable/chunks/DHhcNfbx.js +1 -0
  215. package/build/client/_app/immutable/chunks/DHhcNfbx.js.br +0 -0
  216. package/build/client/_app/immutable/chunks/DHhcNfbx.js.gz +0 -0
  217. package/build/client/_app/immutable/chunks/DIA3aJp6.js +1 -0
  218. package/build/client/_app/immutable/chunks/DIA3aJp6.js.br +0 -0
  219. package/build/client/_app/immutable/chunks/DIA3aJp6.js.gz +0 -0
  220. package/build/client/_app/immutable/chunks/DJARFHrx.js +1 -0
  221. package/build/client/_app/immutable/chunks/DJARFHrx.js.br +0 -0
  222. package/build/client/_app/immutable/chunks/DJARFHrx.js.gz +0 -0
  223. package/build/client/_app/immutable/chunks/DJoGK9kf.js +1 -0
  224. package/build/client/_app/immutable/chunks/DJoGK9kf.js.br +0 -0
  225. package/build/client/_app/immutable/chunks/DJoGK9kf.js.gz +0 -0
  226. package/build/client/_app/immutable/chunks/DMgNhnYS.js +1 -0
  227. package/build/client/_app/immutable/chunks/DMgNhnYS.js.br +0 -0
  228. package/build/client/_app/immutable/chunks/DMgNhnYS.js.gz +0 -0
  229. package/build/client/_app/immutable/chunks/DNvRKwb02.js +1 -0
  230. package/build/client/_app/immutable/chunks/DNvRKwb02.js.br +0 -0
  231. package/build/client/_app/immutable/chunks/DNvRKwb02.js.gz +0 -0
  232. package/build/client/_app/immutable/chunks/DO-qXg-I2.js +1 -0
  233. package/build/client/_app/immutable/chunks/DO-qXg-I2.js.br +0 -0
  234. package/build/client/_app/immutable/chunks/DO-qXg-I2.js.gz +0 -0
  235. package/build/client/_app/immutable/chunks/DOwzaHZ02.js +1 -0
  236. package/build/client/_app/immutable/chunks/DOwzaHZ02.js.br +0 -0
  237. package/build/client/_app/immutable/chunks/DOwzaHZ02.js.gz +0 -0
  238. package/build/client/_app/immutable/chunks/DPeYfO_X.js +1 -0
  239. package/build/client/_app/immutable/chunks/DPeYfO_X.js.br +0 -0
  240. package/build/client/_app/immutable/chunks/DPeYfO_X.js.gz +0 -0
  241. package/build/client/_app/immutable/chunks/DRtTh9R_.js +1 -0
  242. package/build/client/_app/immutable/chunks/DRtTh9R_.js.br +0 -0
  243. package/build/client/_app/immutable/chunks/DRtTh9R_.js.gz +0 -0
  244. package/build/client/_app/immutable/chunks/DX1BQOs82.js +1 -0
  245. package/build/client/_app/immutable/chunks/DX1BQOs82.js.br +0 -0
  246. package/build/client/_app/immutable/chunks/DX1BQOs82.js.gz +0 -0
  247. package/build/client/_app/immutable/chunks/DXvs48Yn.js +1 -0
  248. package/build/client/_app/immutable/chunks/DXvs48Yn.js.br +0 -0
  249. package/build/client/_app/immutable/chunks/DXvs48Yn.js.gz +0 -0
  250. package/build/client/_app/immutable/chunks/DYvRD3hg2.js +1 -0
  251. package/build/client/_app/immutable/chunks/DYvRD3hg2.js.br +0 -0
  252. package/build/client/_app/immutable/chunks/DYvRD3hg2.js.gz +0 -0
  253. package/build/client/_app/immutable/chunks/D_kqbw5z.js +1 -0
  254. package/build/client/_app/immutable/chunks/D_kqbw5z.js.br +0 -0
  255. package/build/client/_app/immutable/chunks/D_kqbw5z.js.gz +0 -0
  256. package/build/client/_app/immutable/chunks/DaM5BcfV.js +1 -0
  257. package/build/client/_app/immutable/chunks/DaM5BcfV.js.br +0 -0
  258. package/build/client/_app/immutable/chunks/DaM5BcfV.js.gz +0 -0
  259. package/build/client/_app/immutable/chunks/DatEshCS.js +1 -0
  260. package/build/client/_app/immutable/chunks/DatEshCS.js.br +0 -0
  261. package/build/client/_app/immutable/chunks/DatEshCS.js.gz +0 -0
  262. package/build/client/_app/immutable/chunks/Dbkyqgda2.js +1 -0
  263. package/build/client/_app/immutable/chunks/Dbkyqgda2.js.br +0 -0
  264. package/build/client/_app/immutable/chunks/Dbkyqgda2.js.gz +0 -0
  265. package/build/client/_app/immutable/chunks/Dc2A3rbH2.js +1 -0
  266. package/build/client/_app/immutable/chunks/Dc2A3rbH2.js.br +0 -0
  267. package/build/client/_app/immutable/chunks/Dc2A3rbH2.js.gz +0 -0
  268. package/build/client/_app/immutable/chunks/DeSyfjfB.js +1 -0
  269. package/build/client/_app/immutable/chunks/DeSyfjfB.js.br +0 -0
  270. package/build/client/_app/immutable/chunks/DeSyfjfB.js.gz +0 -0
  271. package/build/client/_app/immutable/chunks/Dgaz7aur.js +1 -0
  272. package/build/client/_app/immutable/chunks/Dgaz7aur.js.br +0 -0
  273. package/build/client/_app/immutable/chunks/Dgaz7aur.js.gz +0 -0
  274. package/build/client/_app/immutable/chunks/Dgfk8zCU.js +1 -0
  275. package/build/client/_app/immutable/chunks/Dgfk8zCU.js.br +0 -0
  276. package/build/client/_app/immutable/chunks/Dgfk8zCU.js.gz +0 -0
  277. package/build/client/_app/immutable/chunks/DgjMoLWr.js +1 -0
  278. package/build/client/_app/immutable/chunks/DgjMoLWr.js.br +0 -0
  279. package/build/client/_app/immutable/chunks/DgjMoLWr.js.gz +0 -0
  280. package/build/client/_app/immutable/chunks/Dh5ihWbf.js +1 -0
  281. package/build/client/_app/immutable/chunks/Dh5ihWbf.js.br +0 -0
  282. package/build/client/_app/immutable/chunks/Dh5ihWbf.js.gz +0 -0
  283. package/build/client/_app/immutable/chunks/DjuaAJKi.js +1 -0
  284. package/build/client/_app/immutable/chunks/DjuaAJKi.js.br +0 -0
  285. package/build/client/_app/immutable/chunks/DjuaAJKi.js.gz +0 -0
  286. package/build/client/_app/immutable/chunks/DlX1gWpk.js +1 -0
  287. package/build/client/_app/immutable/chunks/DlX1gWpk.js.br +0 -0
  288. package/build/client/_app/immutable/chunks/DlX1gWpk.js.gz +0 -0
  289. package/build/client/_app/immutable/chunks/DmoyGeAS2.js +1 -0
  290. package/build/client/_app/immutable/chunks/DmoyGeAS2.js.br +0 -0
  291. package/build/client/_app/immutable/chunks/DmoyGeAS2.js.gz +0 -0
  292. package/build/client/_app/immutable/chunks/DqHOMS-s.js +1 -0
  293. package/build/client/_app/immutable/chunks/DqHOMS-s.js.br +0 -0
  294. package/build/client/_app/immutable/chunks/DqHOMS-s.js.gz +0 -0
  295. package/build/client/_app/immutable/chunks/DqNF_brF2.js +1 -0
  296. package/build/client/_app/immutable/chunks/DqNF_brF2.js.br +0 -0
  297. package/build/client/_app/immutable/chunks/DqNF_brF2.js.gz +0 -0
  298. package/build/client/_app/immutable/chunks/Dtn6NLbI.js +1 -0
  299. package/build/client/_app/immutable/chunks/Dtn6NLbI.js.br +0 -0
  300. package/build/client/_app/immutable/chunks/Dtn6NLbI.js.gz +0 -0
  301. package/build/client/_app/immutable/chunks/Dtv7UOty2.js +1 -0
  302. package/build/client/_app/immutable/chunks/Dtv7UOty2.js.br +0 -0
  303. package/build/client/_app/immutable/chunks/Dtv7UOty2.js.gz +0 -0
  304. package/build/client/_app/immutable/chunks/DuBRPxYg.js +1 -0
  305. package/build/client/_app/immutable/chunks/DuBRPxYg.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/DuBRPxYg.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/DuQiBVJu.js +29 -0
  308. package/build/client/_app/immutable/chunks/DuQiBVJu.js.br +0 -0
  309. package/build/client/_app/immutable/chunks/DuQiBVJu.js.gz +0 -0
  310. package/build/client/_app/immutable/chunks/DuqgYnXA.js +1 -0
  311. package/build/client/_app/immutable/chunks/DuqgYnXA.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/DuqgYnXA.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/Ft8OTbFq2.js +1 -0
  314. package/build/client/_app/immutable/chunks/Ft8OTbFq2.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/Ft8OTbFq2.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/GPf5fMLC2.js +1 -0
  317. package/build/client/_app/immutable/chunks/GPf5fMLC2.js.br +0 -0
  318. package/build/client/_app/immutable/chunks/GPf5fMLC2.js.gz +0 -0
  319. package/build/client/_app/immutable/chunks/KFGFyKwG.js +1 -0
  320. package/build/client/_app/immutable/chunks/KFGFyKwG.js.br +0 -0
  321. package/build/client/_app/immutable/chunks/KFGFyKwG.js.gz +0 -0
  322. package/build/client/_app/immutable/chunks/KNb_0kK5.js +1 -0
  323. package/build/client/_app/immutable/chunks/KNb_0kK5.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/KNb_0kK5.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/MfeErNn-.js +1 -0
  326. package/build/client/_app/immutable/chunks/MfeErNn-.js.br +0 -0
  327. package/build/client/_app/immutable/chunks/MfeErNn-.js.gz +0 -0
  328. package/build/client/_app/immutable/chunks/OOMz51rW.js +1 -0
  329. package/build/client/_app/immutable/chunks/OOMz51rW.js.br +0 -0
  330. package/build/client/_app/immutable/chunks/OOMz51rW.js.gz +0 -0
  331. package/build/client/_app/immutable/chunks/PMQDBV5J.js +1 -0
  332. package/build/client/_app/immutable/chunks/PMQDBV5J.js.br +0 -0
  333. package/build/client/_app/immutable/chunks/PMQDBV5J.js.gz +0 -0
  334. package/build/client/_app/immutable/chunks/QtN_jOZp.js +1 -0
  335. package/build/client/_app/immutable/chunks/QtN_jOZp.js.br +0 -0
  336. package/build/client/_app/immutable/chunks/QtN_jOZp.js.gz +0 -0
  337. package/build/client/_app/immutable/chunks/QuimFY2S.js +1 -0
  338. package/build/client/_app/immutable/chunks/QuimFY2S.js.br +0 -0
  339. package/build/client/_app/immutable/chunks/QuimFY2S.js.gz +0 -0
  340. package/build/client/_app/immutable/chunks/R8nAf1vR.js +1 -0
  341. package/build/client/_app/immutable/chunks/R8nAf1vR.js.br +0 -0
  342. package/build/client/_app/immutable/chunks/R8nAf1vR.js.gz +0 -0
  343. package/build/client/_app/immutable/chunks/SCjQUq34.js +1 -0
  344. package/build/client/_app/immutable/chunks/SCjQUq34.js.br +0 -0
  345. package/build/client/_app/immutable/chunks/SCjQUq34.js.gz +0 -0
  346. package/build/client/_app/immutable/chunks/UdsmMDCL2.js +1 -0
  347. package/build/client/_app/immutable/chunks/UdsmMDCL2.js.br +0 -0
  348. package/build/client/_app/immutable/chunks/UdsmMDCL2.js.gz +0 -0
  349. package/build/client/_app/immutable/chunks/V5Yjt9wD2.js +1 -0
  350. package/build/client/_app/immutable/chunks/V5Yjt9wD2.js.br +0 -0
  351. package/build/client/_app/immutable/chunks/V5Yjt9wD2.js.gz +0 -0
  352. package/build/client/_app/immutable/chunks/XT7mgm2-.js +1 -0
  353. package/build/client/_app/immutable/chunks/XT7mgm2-.js.br +0 -0
  354. package/build/client/_app/immutable/chunks/XT7mgm2-.js.gz +0 -0
  355. package/build/client/_app/immutable/chunks/_6rzW9BS.js +1 -0
  356. package/build/client/_app/immutable/chunks/_6rzW9BS.js.br +0 -0
  357. package/build/client/_app/immutable/chunks/_6rzW9BS.js.gz +0 -0
  358. package/build/client/_app/immutable/chunks/aMsaMD1D2.js +1 -0
  359. package/build/client/_app/immutable/chunks/aMsaMD1D2.js.br +0 -0
  360. package/build/client/_app/immutable/chunks/aMsaMD1D2.js.gz +0 -0
  361. package/build/client/_app/immutable/chunks/aviLwsDM.js +2 -0
  362. package/build/client/_app/immutable/chunks/aviLwsDM.js.br +0 -0
  363. package/build/client/_app/immutable/chunks/aviLwsDM.js.gz +0 -0
  364. package/build/client/_app/immutable/chunks/b1-zR7XP.js +1 -0
  365. package/build/client/_app/immutable/chunks/b1-zR7XP.js.br +0 -0
  366. package/build/client/_app/immutable/chunks/b1-zR7XP.js.gz +0 -0
  367. package/build/client/_app/immutable/chunks/b4xeCETc.js +1 -0
  368. package/build/client/_app/immutable/chunks/b4xeCETc.js.br +0 -0
  369. package/build/client/_app/immutable/chunks/b4xeCETc.js.gz +0 -0
  370. package/build/client/_app/immutable/chunks/cM1P9coc.js +1 -0
  371. package/build/client/_app/immutable/chunks/cM1P9coc.js.br +0 -0
  372. package/build/client/_app/immutable/chunks/cM1P9coc.js.gz +0 -0
  373. package/build/client/_app/immutable/chunks/c_oH4hRZ.js +1 -0
  374. package/build/client/_app/immutable/chunks/c_oH4hRZ.js.br +0 -0
  375. package/build/client/_app/immutable/chunks/c_oH4hRZ.js.gz +0 -0
  376. package/build/client/_app/immutable/chunks/fg40_ntQ.js +1 -0
  377. package/build/client/_app/immutable/chunks/fg40_ntQ.js.br +0 -0
  378. package/build/client/_app/immutable/chunks/fg40_ntQ.js.gz +0 -0
  379. package/build/client/_app/immutable/chunks/fhodw31A2.js +1 -0
  380. package/build/client/_app/immutable/chunks/fhodw31A2.js.br +0 -0
  381. package/build/client/_app/immutable/chunks/fhodw31A2.js.gz +0 -0
  382. package/build/client/_app/immutable/chunks/i9_wZDsL2.js +1 -0
  383. package/build/client/_app/immutable/chunks/i9_wZDsL2.js.br +0 -0
  384. package/build/client/_app/immutable/chunks/i9_wZDsL2.js.gz +0 -0
  385. package/build/client/_app/immutable/chunks/nQErZH7l.js +24 -0
  386. package/build/client/_app/immutable/chunks/nQErZH7l.js.br +0 -0
  387. package/build/client/_app/immutable/chunks/nQErZH7l.js.gz +0 -0
  388. package/build/client/_app/immutable/chunks/o5QeSYPS2.js +1 -0
  389. package/build/client/_app/immutable/chunks/o5QeSYPS2.js.br +0 -0
  390. package/build/client/_app/immutable/chunks/o5QeSYPS2.js.gz +0 -0
  391. package/build/client/_app/immutable/chunks/pk7CcyRt2.js +1 -0
  392. package/build/client/_app/immutable/chunks/pk7CcyRt2.js.br +0 -0
  393. package/build/client/_app/immutable/chunks/pk7CcyRt2.js.gz +0 -0
  394. package/build/client/_app/immutable/chunks/qdxAdBWQ2.js +1 -0
  395. package/build/client/_app/immutable/chunks/qdxAdBWQ2.js.br +0 -0
  396. package/build/client/_app/immutable/chunks/qdxAdBWQ2.js.gz +0 -0
  397. package/build/client/_app/immutable/chunks/sDfmG-q52.js +1 -0
  398. package/build/client/_app/immutable/chunks/sDfmG-q52.js.br +0 -0
  399. package/build/client/_app/immutable/chunks/sDfmG-q52.js.gz +0 -0
  400. package/build/client/_app/immutable/entry/app.Cf1kynW5.js +2 -0
  401. package/build/client/_app/immutable/entry/app.Cf1kynW5.js.br +0 -0
  402. package/build/client/_app/immutable/entry/app.Cf1kynW5.js.gz +0 -0
  403. package/build/client/_app/immutable/entry/start.BzFDNUTP.js +1 -0
  404. package/build/client/_app/immutable/entry/start.BzFDNUTP.js.br +0 -0
  405. package/build/client/_app/immutable/entry/start.BzFDNUTP.js.gz +0 -0
  406. package/build/client/_app/immutable/nodes/0.Di6pZ7QE.js +1 -0
  407. package/build/client/_app/immutable/nodes/0.Di6pZ7QE.js.br +0 -0
  408. package/build/client/_app/immutable/nodes/0.Di6pZ7QE.js.gz +0 -0
  409. package/build/client/_app/immutable/nodes/1.Dqv2_VBm.js +1 -0
  410. package/build/client/_app/immutable/nodes/1.Dqv2_VBm.js.br +1 -0
  411. package/build/client/_app/immutable/nodes/1.Dqv2_VBm.js.gz +0 -0
  412. package/build/client/_app/immutable/nodes/2.CjcBXjcg.js +1 -0
  413. package/build/client/_app/immutable/nodes/2.CjcBXjcg.js.br +0 -0
  414. package/build/client/_app/immutable/nodes/2.CjcBXjcg.js.gz +0 -0
  415. package/build/client/_app/immutable/nodes/3.CjcBXjcg.js +1 -0
  416. package/build/client/_app/immutable/nodes/3.CjcBXjcg.js.br +0 -0
  417. package/build/client/_app/immutable/nodes/3.CjcBXjcg.js.gz +0 -0
  418. package/build/client/_app/version.json +1 -1
  419. package/build/client/_app/version.json.br +0 -0
  420. package/build/client/_app/version.json.gz +0 -0
  421. package/build/env.js +9 -33
  422. package/build/env.js.map +1 -0
  423. package/build/handler.js +24 -1493
  424. package/build/handler.js.map +1 -0
  425. package/build/index.js +34 -231
  426. package/build/index.js.map +1 -0
  427. package/build/server/chunks/chunks/client.js-D_n8ztuu.js +37 -0
  428. package/build/server/chunks/chunks/client.js-D_n8ztuu.js.map +1 -0
  429. package/build/server/chunks/chunks/dist.js-Cjy4fJ8I.js +215 -0
  430. package/build/server/chunks/chunks/dist.js-Cjy4fJ8I.js.map +1 -0
  431. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
  432. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
  433. package/build/server/chunks/chunks/exports.js-M407IRCT.js +367 -0
  434. package/build/server/chunks/chunks/exports.js-M407IRCT.js.map +1 -0
  435. package/build/server/chunks/chunks/internal.js-JDOUzQXG.js +4925 -0
  436. package/build/server/chunks/chunks/internal.js-JDOUzQXG.js.map +1 -0
  437. package/build/server/chunks/chunks/internal2.js-Bkb6J7OW.js +471 -0
  438. package/build/server/chunks/chunks/internal2.js-Bkb6J7OW.js.map +1 -0
  439. package/build/server/chunks/chunks/preview-api.js-DFLf7Qia.js +66 -0
  440. package/build/server/chunks/chunks/preview-api.js-DFLf7Qia.js.map +1 -0
  441. package/build/server/chunks/chunks/preview-workbench.js-r46FAtaD.js +10453 -0
  442. package/build/server/chunks/chunks/preview-workbench.js-r46FAtaD.js.map +1 -0
  443. package/build/server/chunks/chunks/send-email-config.js-kjBFi9BP.js +9 -0
  444. package/build/server/chunks/chunks/send-email-config.js-kjBFi9BP.js.map +1 -0
  445. package/build/server/chunks/chunks/shared-server.js-X-h81DQm.js +22 -0
  446. package/build/server/chunks/chunks/shared-server.js-X-h81DQm.js.map +1 -0
  447. package/build/server/chunks/chunks/shared.js-CMUZRVdw.js +599 -0
  448. package/build/server/chunks/chunks/shared.js-CMUZRVdw.js.map +1 -0
  449. package/build/server/chunks/chunks/state.js-c_5yT7l3.js +61 -0
  450. package/build/server/chunks/chunks/state.js-c_5yT7l3.js.map +1 -0
  451. package/build/server/chunks/chunks/utils.js-BulZbGp_.js +748 -0
  452. package/build/server/chunks/chunks/utils.js-BulZbGp_.js.map +1 -0
  453. package/build/server/chunks/entries/fallbacks/error.svelte.js-Bqmfe4zf.js +19 -0
  454. package/build/server/chunks/entries/fallbacks/error.svelte.js-Bqmfe4zf.js.map +1 -0
  455. package/build/server/chunks/entries/hooks.server.js-Cyi_B_F7.js +11 -0
  456. package/build/server/chunks/entries/hooks.server.js-Cyi_B_F7.js.map +1 -0
  457. package/build/server/chunks/entries/pages/_...email_/_page.server.ts.js-veRKlqKf.js +30 -0
  458. package/build/server/chunks/entries/pages/_...email_/_page.server.ts.js-veRKlqKf.js.map +1 -0
  459. package/build/server/chunks/entries/pages/_...email_/_page.svelte.js-BZIBolly.js +24 -0
  460. package/build/server/chunks/entries/pages/_...email_/_page.svelte.js-BZIBolly.js.map +1 -0
  461. package/build/server/chunks/entries/pages/_layout.server.ts.js-CxDOHZpA.js +25 -0
  462. package/build/server/chunks/entries/pages/_layout.server.ts.js-CxDOHZpA.js.map +1 -0
  463. package/build/server/chunks/entries/pages/_layout.svelte.js-CjwKzgJn.js +29 -0
  464. package/build/server/chunks/entries/pages/_layout.svelte.js-CjwKzgJn.js.map +1 -0
  465. package/build/server/chunks/entries/pages/_page.server.ts.js-CmdnlMr9.js +24 -0
  466. package/build/server/chunks/entries/pages/_page.server.ts.js-CmdnlMr9.js.map +1 -0
  467. package/build/server/chunks/entries/pages/_page.svelte.js-B7d-Pkg8.js +24 -0
  468. package/build/server/chunks/entries/pages/_page.svelte.js-B7d-Pkg8.js.map +1 -0
  469. package/build/server/chunks/handler-C6XD7uxC.js +1206 -0
  470. package/build/server/chunks/handler-C6XD7uxC.js.map +1 -0
  471. package/build/server/chunks/index.js-FWva2MxP.js +3701 -0
  472. package/build/server/chunks/index.js-FWva2MxP.js.map +1 -0
  473. package/build/server/chunks/manifest.js-Cs6Il7RU.js +50 -0
  474. package/build/server/chunks/manifest.js-Cs6Il7RU.js.map +1 -0
  475. package/build/server/chunks/nodes/0.js-C09MpjVZ.js +15 -0
  476. package/build/server/chunks/nodes/0.js-C09MpjVZ.js.map +1 -0
  477. package/build/server/chunks/nodes/1.js-B3hAPkEQ.js +9 -0
  478. package/build/server/chunks/nodes/1.js-B3hAPkEQ.js.map +1 -0
  479. package/build/server/chunks/nodes/2.js-Cugi_VAS.js +15 -0
  480. package/build/server/chunks/nodes/2.js-Cugi_VAS.js.map +1 -0
  481. package/build/server/chunks/nodes/3.js-BAAob8rz.js +15 -0
  482. package/build/server/chunks/nodes/3.js-BAAob8rz.js.map +1 -0
  483. package/build/shims.js +2 -30
  484. package/build/shims.js.map +1 -0
  485. package/package.json +10 -10
  486. package/build/client/_app/immutable/assets/0.DDKrVtzt.css +0 -1
  487. package/build/client/_app/immutable/assets/0.DDKrVtzt.css.br +0 -0
  488. package/build/client/_app/immutable/assets/0.DDKrVtzt.css.gz +0 -0
  489. package/build/client/_app/immutable/chunks/-17pq3dv.js +0 -1
  490. package/build/client/_app/immutable/chunks/-17pq3dv.js.br +0 -0
  491. package/build/client/_app/immutable/chunks/-17pq3dv.js.gz +0 -0
  492. package/build/client/_app/immutable/chunks/-HmGlDdd.js +0 -1
  493. package/build/client/_app/immutable/chunks/-HmGlDdd.js.br +0 -0
  494. package/build/client/_app/immutable/chunks/-HmGlDdd.js.gz +0 -0
  495. package/build/client/_app/immutable/chunks/0W20VsaO2.js +0 -1
  496. package/build/client/_app/immutable/chunks/0W20VsaO2.js.br +0 -0
  497. package/build/client/_app/immutable/chunks/0W20VsaO2.js.gz +0 -0
  498. package/build/client/_app/immutable/chunks/3VR1Za6u2.js +0 -1
  499. package/build/client/_app/immutable/chunks/3VR1Za6u2.js.br +0 -0
  500. package/build/client/_app/immutable/chunks/3VR1Za6u2.js.gz +0 -0
  501. package/build/client/_app/immutable/chunks/8hFPv34g2.js +0 -1
  502. package/build/client/_app/immutable/chunks/8hFPv34g2.js.br +0 -0
  503. package/build/client/_app/immutable/chunks/8hFPv34g2.js.gz +0 -0
  504. package/build/client/_app/immutable/chunks/B16xEiuN.js +0 -1
  505. package/build/client/_app/immutable/chunks/B16xEiuN.js.br +0 -0
  506. package/build/client/_app/immutable/chunks/B16xEiuN.js.gz +0 -0
  507. package/build/client/_app/immutable/chunks/B1IS1UjX.js +0 -1
  508. package/build/client/_app/immutable/chunks/B1IS1UjX.js.br +0 -0
  509. package/build/client/_app/immutable/chunks/B1IS1UjX.js.gz +0 -0
  510. package/build/client/_app/immutable/chunks/B1aemsqp.js +0 -1
  511. package/build/client/_app/immutable/chunks/B1aemsqp.js.br +0 -0
  512. package/build/client/_app/immutable/chunks/B1aemsqp.js.gz +0 -0
  513. package/build/client/_app/immutable/chunks/B1oJTuiP.js +0 -1
  514. package/build/client/_app/immutable/chunks/B1oJTuiP.js.br +0 -0
  515. package/build/client/_app/immutable/chunks/B1oJTuiP.js.gz +0 -0
  516. package/build/client/_app/immutable/chunks/B2ZjjTQN2.js +0 -1
  517. package/build/client/_app/immutable/chunks/B2ZjjTQN2.js.br +0 -0
  518. package/build/client/_app/immutable/chunks/B2ZjjTQN2.js.gz +0 -0
  519. package/build/client/_app/immutable/chunks/B4R74twV.js +0 -1
  520. package/build/client/_app/immutable/chunks/B4R74twV.js.br +0 -0
  521. package/build/client/_app/immutable/chunks/B4R74twV.js.gz +0 -0
  522. package/build/client/_app/immutable/chunks/B8P2RnGF.js +0 -1
  523. package/build/client/_app/immutable/chunks/B8P2RnGF.js.br +0 -0
  524. package/build/client/_app/immutable/chunks/B8P2RnGF.js.gz +0 -0
  525. package/build/client/_app/immutable/chunks/B98XyvsZ.js +0 -1
  526. package/build/client/_app/immutable/chunks/B98XyvsZ.js.br +0 -0
  527. package/build/client/_app/immutable/chunks/B98XyvsZ.js.gz +0 -0
  528. package/build/client/_app/immutable/chunks/B9nnXTul.js +0 -1
  529. package/build/client/_app/immutable/chunks/B9nnXTul.js.br +0 -0
  530. package/build/client/_app/immutable/chunks/B9nnXTul.js.gz +0 -0
  531. package/build/client/_app/immutable/chunks/BAv3TVTh.js +0 -1
  532. package/build/client/_app/immutable/chunks/BAv3TVTh.js.br +0 -0
  533. package/build/client/_app/immutable/chunks/BAv3TVTh.js.gz +0 -0
  534. package/build/client/_app/immutable/chunks/BFHwR3_K2.js +0 -1
  535. package/build/client/_app/immutable/chunks/BFHwR3_K2.js.br +0 -0
  536. package/build/client/_app/immutable/chunks/BFHwR3_K2.js.gz +0 -0
  537. package/build/client/_app/immutable/chunks/BGGCY6bA2.js +0 -1
  538. package/build/client/_app/immutable/chunks/BGGCY6bA2.js.br +0 -0
  539. package/build/client/_app/immutable/chunks/BGGCY6bA2.js.gz +0 -0
  540. package/build/client/_app/immutable/chunks/BJRYOnBV.js +0 -1
  541. package/build/client/_app/immutable/chunks/BJRYOnBV.js.br +0 -0
  542. package/build/client/_app/immutable/chunks/BJRYOnBV.js.gz +0 -0
  543. package/build/client/_app/immutable/chunks/BJqTYE0q.js +0 -1
  544. package/build/client/_app/immutable/chunks/BJqTYE0q.js.br +0 -0
  545. package/build/client/_app/immutable/chunks/BJqTYE0q.js.gz +0 -0
  546. package/build/client/_app/immutable/chunks/BN08jTvb.js +0 -1
  547. package/build/client/_app/immutable/chunks/BN08jTvb.js.br +0 -0
  548. package/build/client/_app/immutable/chunks/BN08jTvb.js.gz +0 -0
  549. package/build/client/_app/immutable/chunks/BPRmScrq2.js +0 -1
  550. package/build/client/_app/immutable/chunks/BPRmScrq2.js.br +0 -0
  551. package/build/client/_app/immutable/chunks/BPRmScrq2.js.gz +0 -0
  552. package/build/client/_app/immutable/chunks/BQ4d5aaZ.js +0 -1
  553. package/build/client/_app/immutable/chunks/BQ4d5aaZ.js.br +0 -0
  554. package/build/client/_app/immutable/chunks/BQ4d5aaZ.js.gz +0 -0
  555. package/build/client/_app/immutable/chunks/BSLxv6zn2.js +0 -1
  556. package/build/client/_app/immutable/chunks/BSLxv6zn2.js.br +0 -0
  557. package/build/client/_app/immutable/chunks/BSLxv6zn2.js.gz +0 -0
  558. package/build/client/_app/immutable/chunks/BSmT1qUT.js +0 -1
  559. package/build/client/_app/immutable/chunks/BSmT1qUT.js.br +0 -0
  560. package/build/client/_app/immutable/chunks/BSmT1qUT.js.gz +0 -0
  561. package/build/client/_app/immutable/chunks/BXfVp92A.js +0 -1
  562. package/build/client/_app/immutable/chunks/BXfVp92A.js.br +0 -0
  563. package/build/client/_app/immutable/chunks/BXfVp92A.js.gz +0 -0
  564. package/build/client/_app/immutable/chunks/BZ_LzKzd.js +0 -3
  565. package/build/client/_app/immutable/chunks/BZ_LzKzd.js.br +0 -0
  566. package/build/client/_app/immutable/chunks/BZ_LzKzd.js.gz +0 -0
  567. package/build/client/_app/immutable/chunks/B_2b09HZ2.js +0 -1
  568. package/build/client/_app/immutable/chunks/B_2b09HZ2.js.br +0 -0
  569. package/build/client/_app/immutable/chunks/B_2b09HZ2.js.gz +0 -0
  570. package/build/client/_app/immutable/chunks/B_aWORvf2.js +0 -1
  571. package/build/client/_app/immutable/chunks/B_aWORvf2.js.br +0 -0
  572. package/build/client/_app/immutable/chunks/B_aWORvf2.js.gz +0 -0
  573. package/build/client/_app/immutable/chunks/BdB92CPq.js +0 -1
  574. package/build/client/_app/immutable/chunks/BdB92CPq.js.br +0 -0
  575. package/build/client/_app/immutable/chunks/BdB92CPq.js.gz +0 -0
  576. package/build/client/_app/immutable/chunks/BgCJLMeH.js +0 -1
  577. package/build/client/_app/immutable/chunks/BgCJLMeH.js.br +0 -0
  578. package/build/client/_app/immutable/chunks/BgCJLMeH.js.gz +0 -0
  579. package/build/client/_app/immutable/chunks/Bk4SNUv9.js +0 -1
  580. package/build/client/_app/immutable/chunks/Bk4SNUv9.js.br +0 -0
  581. package/build/client/_app/immutable/chunks/Bk4SNUv9.js.gz +0 -0
  582. package/build/client/_app/immutable/chunks/BkL0c1yp.js +0 -29
  583. package/build/client/_app/immutable/chunks/BkL0c1yp.js.br +0 -0
  584. package/build/client/_app/immutable/chunks/BkL0c1yp.js.gz +0 -0
  585. package/build/client/_app/immutable/chunks/BkgvMgsI.js +0 -1
  586. package/build/client/_app/immutable/chunks/BkgvMgsI.js.br +0 -0
  587. package/build/client/_app/immutable/chunks/BkgvMgsI.js.gz +0 -0
  588. package/build/client/_app/immutable/chunks/Bkvf4V-c.js +0 -1
  589. package/build/client/_app/immutable/chunks/Bkvf4V-c.js.br +0 -0
  590. package/build/client/_app/immutable/chunks/Bkvf4V-c.js.gz +0 -0
  591. package/build/client/_app/immutable/chunks/Bmzj9gkB2.js +0 -1
  592. package/build/client/_app/immutable/chunks/Bmzj9gkB2.js.br +0 -0
  593. package/build/client/_app/immutable/chunks/Bmzj9gkB2.js.gz +0 -0
  594. package/build/client/_app/immutable/chunks/Bo4NYOV-2.js +0 -1
  595. package/build/client/_app/immutable/chunks/Bo4NYOV-2.js.br +0 -0
  596. package/build/client/_app/immutable/chunks/Bo4NYOV-2.js.gz +0 -0
  597. package/build/client/_app/immutable/chunks/BoSgizvQ.js +0 -1
  598. package/build/client/_app/immutable/chunks/BoSgizvQ.js.br +0 -0
  599. package/build/client/_app/immutable/chunks/BoSgizvQ.js.gz +0 -0
  600. package/build/client/_app/immutable/chunks/BooTrami.js +0 -1
  601. package/build/client/_app/immutable/chunks/BooTrami.js.br +0 -0
  602. package/build/client/_app/immutable/chunks/BooTrami.js.gz +0 -0
  603. package/build/client/_app/immutable/chunks/BqLGMj_J.js +0 -1
  604. package/build/client/_app/immutable/chunks/BqLGMj_J.js.br +0 -0
  605. package/build/client/_app/immutable/chunks/BqLGMj_J.js.gz +0 -0
  606. package/build/client/_app/immutable/chunks/BrsZFFmf2.js +0 -1
  607. package/build/client/_app/immutable/chunks/BrsZFFmf2.js.br +0 -0
  608. package/build/client/_app/immutable/chunks/BrsZFFmf2.js.gz +0 -0
  609. package/build/client/_app/immutable/chunks/BsRQq5mF2.js +0 -1
  610. package/build/client/_app/immutable/chunks/BsRQq5mF2.js.br +0 -0
  611. package/build/client/_app/immutable/chunks/BsRQq5mF2.js.gz +0 -0
  612. package/build/client/_app/immutable/chunks/BthvhNj62.js +0 -1
  613. package/build/client/_app/immutable/chunks/BthvhNj62.js.br +0 -0
  614. package/build/client/_app/immutable/chunks/BthvhNj62.js.gz +0 -0
  615. package/build/client/_app/immutable/chunks/Bvj-fe0b.js +0 -1
  616. package/build/client/_app/immutable/chunks/Bvj-fe0b.js.br +0 -0
  617. package/build/client/_app/immutable/chunks/Bvj-fe0b.js.gz +0 -0
  618. package/build/client/_app/immutable/chunks/BzQDf8nc.js +0 -1
  619. package/build/client/_app/immutable/chunks/BzQDf8nc.js.br +0 -0
  620. package/build/client/_app/immutable/chunks/BzQDf8nc.js.gz +0 -0
  621. package/build/client/_app/immutable/chunks/BzYEjzvh2.js +0 -1
  622. package/build/client/_app/immutable/chunks/BzYEjzvh2.js.br +0 -0
  623. package/build/client/_app/immutable/chunks/BzYEjzvh2.js.gz +0 -0
  624. package/build/client/_app/immutable/chunks/C6vDhewU2.js +0 -1
  625. package/build/client/_app/immutable/chunks/C6vDhewU2.js.br +0 -0
  626. package/build/client/_app/immutable/chunks/C6vDhewU2.js.gz +0 -0
  627. package/build/client/_app/immutable/chunks/CCwZ4IZg2.js +0 -1
  628. package/build/client/_app/immutable/chunks/CCwZ4IZg2.js.br +0 -0
  629. package/build/client/_app/immutable/chunks/CCwZ4IZg2.js.gz +0 -0
  630. package/build/client/_app/immutable/chunks/CDP4bMou2.js +0 -1
  631. package/build/client/_app/immutable/chunks/CDP4bMou2.js.br +0 -0
  632. package/build/client/_app/immutable/chunks/CDP4bMou2.js.gz +0 -0
  633. package/build/client/_app/immutable/chunks/CGtDVq-d.js +0 -1
  634. package/build/client/_app/immutable/chunks/CGtDVq-d.js.br +0 -0
  635. package/build/client/_app/immutable/chunks/CGtDVq-d.js.gz +0 -0
  636. package/build/client/_app/immutable/chunks/CJ3rzSJv2.js +0 -1
  637. package/build/client/_app/immutable/chunks/CJ3rzSJv2.js.br +0 -0
  638. package/build/client/_app/immutable/chunks/CJ3rzSJv2.js.gz +0 -0
  639. package/build/client/_app/immutable/chunks/CJt204Rd2.js +0 -1
  640. package/build/client/_app/immutable/chunks/CJt204Rd2.js.br +0 -0
  641. package/build/client/_app/immutable/chunks/CJt204Rd2.js.gz +0 -0
  642. package/build/client/_app/immutable/chunks/CKzVLygQ.js +0 -1
  643. package/build/client/_app/immutable/chunks/CKzVLygQ.js.br +0 -0
  644. package/build/client/_app/immutable/chunks/CKzVLygQ.js.gz +0 -0
  645. package/build/client/_app/immutable/chunks/CLCfMLGq.js +0 -1
  646. package/build/client/_app/immutable/chunks/CLCfMLGq.js.br +0 -0
  647. package/build/client/_app/immutable/chunks/CLCfMLGq.js.gz +0 -0
  648. package/build/client/_app/immutable/chunks/CTweb8Dz.js +0 -1
  649. package/build/client/_app/immutable/chunks/CTweb8Dz.js.br +0 -0
  650. package/build/client/_app/immutable/chunks/CTweb8Dz.js.gz +0 -0
  651. package/build/client/_app/immutable/chunks/CWnYOMnW.js +0 -1
  652. package/build/client/_app/immutable/chunks/CWnYOMnW.js.br +0 -0
  653. package/build/client/_app/immutable/chunks/CWnYOMnW.js.gz +0 -0
  654. package/build/client/_app/immutable/chunks/CWz8FtVL.js +0 -1
  655. package/build/client/_app/immutable/chunks/CWz8FtVL.js.br +0 -0
  656. package/build/client/_app/immutable/chunks/CWz8FtVL.js.gz +0 -0
  657. package/build/client/_app/immutable/chunks/CXtmUGW6.js +0 -1
  658. package/build/client/_app/immutable/chunks/CXtmUGW6.js.br +0 -0
  659. package/build/client/_app/immutable/chunks/CXtmUGW6.js.gz +0 -0
  660. package/build/client/_app/immutable/chunks/CaWjb8XO.js +0 -1
  661. package/build/client/_app/immutable/chunks/CaWjb8XO.js.br +0 -0
  662. package/build/client/_app/immutable/chunks/CaWjb8XO.js.gz +0 -0
  663. package/build/client/_app/immutable/chunks/CbNiRIh-.js +0 -1
  664. package/build/client/_app/immutable/chunks/CbNiRIh-.js.br +0 -4
  665. package/build/client/_app/immutable/chunks/CbNiRIh-.js.gz +0 -0
  666. package/build/client/_app/immutable/chunks/CbSgvYap2.js +0 -1
  667. package/build/client/_app/immutable/chunks/CbSgvYap2.js.br +0 -0
  668. package/build/client/_app/immutable/chunks/CbSgvYap2.js.gz +0 -0
  669. package/build/client/_app/immutable/chunks/Cc44KRCO.js +0 -1
  670. package/build/client/_app/immutable/chunks/Cc44KRCO.js.br +0 -0
  671. package/build/client/_app/immutable/chunks/Cc44KRCO.js.gz +0 -0
  672. package/build/client/_app/immutable/chunks/CdkpiU2Y.js +0 -1
  673. package/build/client/_app/immutable/chunks/CdkpiU2Y.js.br +0 -0
  674. package/build/client/_app/immutable/chunks/CdkpiU2Y.js.gz +0 -0
  675. package/build/client/_app/immutable/chunks/CiiDBU1e2.js +0 -1
  676. package/build/client/_app/immutable/chunks/CiiDBU1e2.js.br +0 -0
  677. package/build/client/_app/immutable/chunks/CiiDBU1e2.js.gz +0 -0
  678. package/build/client/_app/immutable/chunks/Cip0aZkd.js +0 -1
  679. package/build/client/_app/immutable/chunks/Cip0aZkd.js.br +0 -0
  680. package/build/client/_app/immutable/chunks/Cip0aZkd.js.gz +0 -0
  681. package/build/client/_app/immutable/chunks/Cm23YOpf.js +0 -1
  682. package/build/client/_app/immutable/chunks/Cm23YOpf.js.br +0 -0
  683. package/build/client/_app/immutable/chunks/Cm23YOpf.js.gz +0 -0
  684. package/build/client/_app/immutable/chunks/Cp2uCuqX.js +0 -1
  685. package/build/client/_app/immutable/chunks/Cp2uCuqX.js.br +0 -0
  686. package/build/client/_app/immutable/chunks/Cp2uCuqX.js.gz +0 -0
  687. package/build/client/_app/immutable/chunks/Ct-N23RA.js +0 -1
  688. package/build/client/_app/immutable/chunks/Ct-N23RA.js.br +0 -0
  689. package/build/client/_app/immutable/chunks/Ct-N23RA.js.gz +0 -0
  690. package/build/client/_app/immutable/chunks/CwAfbKce2.js +0 -1
  691. package/build/client/_app/immutable/chunks/CwAfbKce2.js.br +0 -0
  692. package/build/client/_app/immutable/chunks/CwAfbKce2.js.gz +0 -0
  693. package/build/client/_app/immutable/chunks/D-SYTocK2.js +0 -1
  694. package/build/client/_app/immutable/chunks/D-SYTocK2.js.br +0 -0
  695. package/build/client/_app/immutable/chunks/D-SYTocK2.js.gz +0 -0
  696. package/build/client/_app/immutable/chunks/D-hUJG0B.js +0 -1
  697. package/build/client/_app/immutable/chunks/D-hUJG0B.js.br +0 -0
  698. package/build/client/_app/immutable/chunks/D-hUJG0B.js.gz +0 -0
  699. package/build/client/_app/immutable/chunks/D1RDc8F4.js +0 -1
  700. package/build/client/_app/immutable/chunks/D1RDc8F4.js.br +0 -0
  701. package/build/client/_app/immutable/chunks/D1RDc8F4.js.gz +0 -0
  702. package/build/client/_app/immutable/chunks/D3lp4efA.js +0 -24
  703. package/build/client/_app/immutable/chunks/D3lp4efA.js.br +0 -0
  704. package/build/client/_app/immutable/chunks/D3lp4efA.js.gz +0 -0
  705. package/build/client/_app/immutable/chunks/D4M0hln8.js +0 -1
  706. package/build/client/_app/immutable/chunks/D4M0hln8.js.br +0 -0
  707. package/build/client/_app/immutable/chunks/D4M0hln8.js.gz +0 -0
  708. package/build/client/_app/immutable/chunks/D4Vgedfg2.js +0 -1
  709. package/build/client/_app/immutable/chunks/D4Vgedfg2.js.br +0 -0
  710. package/build/client/_app/immutable/chunks/D4Vgedfg2.js.gz +0 -0
  711. package/build/client/_app/immutable/chunks/D5Xp3sXg.js +0 -1
  712. package/build/client/_app/immutable/chunks/D5Xp3sXg.js.br +0 -0
  713. package/build/client/_app/immutable/chunks/D5Xp3sXg.js.gz +0 -0
  714. package/build/client/_app/immutable/chunks/D5rtTcwt2.js +0 -1
  715. package/build/client/_app/immutable/chunks/D5rtTcwt2.js.br +0 -0
  716. package/build/client/_app/immutable/chunks/D5rtTcwt2.js.gz +0 -0
  717. package/build/client/_app/immutable/chunks/DAP-xmEs2.js +0 -1
  718. package/build/client/_app/immutable/chunks/DAP-xmEs2.js.br +0 -0
  719. package/build/client/_app/immutable/chunks/DAP-xmEs2.js.gz +0 -0
  720. package/build/client/_app/immutable/chunks/DE70LPWp.js +0 -1
  721. package/build/client/_app/immutable/chunks/DE70LPWp.js.br +0 -0
  722. package/build/client/_app/immutable/chunks/DE70LPWp.js.gz +0 -0
  723. package/build/client/_app/immutable/chunks/DETTlOr02.js +0 -1
  724. package/build/client/_app/immutable/chunks/DETTlOr02.js.br +0 -0
  725. package/build/client/_app/immutable/chunks/DETTlOr02.js.gz +0 -0
  726. package/build/client/_app/immutable/chunks/DI99ib-x.js +0 -1
  727. package/build/client/_app/immutable/chunks/DI99ib-x.js.br +0 -0
  728. package/build/client/_app/immutable/chunks/DI99ib-x.js.gz +0 -0
  729. package/build/client/_app/immutable/chunks/DIGJJ_pR.js +0 -1
  730. package/build/client/_app/immutable/chunks/DIGJJ_pR.js.br +0 -0
  731. package/build/client/_app/immutable/chunks/DIGJJ_pR.js.gz +0 -0
  732. package/build/client/_app/immutable/chunks/DJ5XKQeo.js +0 -1
  733. package/build/client/_app/immutable/chunks/DJ5XKQeo.js.br +0 -0
  734. package/build/client/_app/immutable/chunks/DJ5XKQeo.js.gz +0 -0
  735. package/build/client/_app/immutable/chunks/DKOlJaKm.js +0 -1
  736. package/build/client/_app/immutable/chunks/DKOlJaKm.js.br +0 -0
  737. package/build/client/_app/immutable/chunks/DKOlJaKm.js.gz +0 -0
  738. package/build/client/_app/immutable/chunks/DKYcEghF2.js +0 -1
  739. package/build/client/_app/immutable/chunks/DKYcEghF2.js.br +0 -0
  740. package/build/client/_app/immutable/chunks/DKYcEghF2.js.gz +0 -0
  741. package/build/client/_app/immutable/chunks/DLo_doFS.js +0 -1
  742. package/build/client/_app/immutable/chunks/DLo_doFS.js.br +0 -0
  743. package/build/client/_app/immutable/chunks/DLo_doFS.js.gz +0 -0
  744. package/build/client/_app/immutable/chunks/DMQGE0ep.js +0 -1
  745. package/build/client/_app/immutable/chunks/DMQGE0ep.js.br +0 -0
  746. package/build/client/_app/immutable/chunks/DMQGE0ep.js.gz +0 -0
  747. package/build/client/_app/immutable/chunks/DNbQjlRi.js +0 -1
  748. package/build/client/_app/immutable/chunks/DNbQjlRi.js.br +0 -0
  749. package/build/client/_app/immutable/chunks/DNbQjlRi.js.gz +0 -0
  750. package/build/client/_app/immutable/chunks/DPqtD3GE.js +0 -1
  751. package/build/client/_app/immutable/chunks/DPqtD3GE.js.br +0 -0
  752. package/build/client/_app/immutable/chunks/DPqtD3GE.js.gz +0 -0
  753. package/build/client/_app/immutable/chunks/DSh2HLQt2.js +0 -1
  754. package/build/client/_app/immutable/chunks/DSh2HLQt2.js.br +0 -0
  755. package/build/client/_app/immutable/chunks/DSh2HLQt2.js.gz +0 -0
  756. package/build/client/_app/immutable/chunks/DV17i1UV2.js +0 -1
  757. package/build/client/_app/immutable/chunks/DV17i1UV2.js.br +0 -0
  758. package/build/client/_app/immutable/chunks/DV17i1UV2.js.gz +0 -0
  759. package/build/client/_app/immutable/chunks/DWJF1LvW.js +0 -1
  760. package/build/client/_app/immutable/chunks/DWJF1LvW.js.br +0 -0
  761. package/build/client/_app/immutable/chunks/DWJF1LvW.js.gz +0 -0
  762. package/build/client/_app/immutable/chunks/DWtOEHum.js +0 -1
  763. package/build/client/_app/immutable/chunks/DWtOEHum.js.br +0 -0
  764. package/build/client/_app/immutable/chunks/DWtOEHum.js.gz +0 -0
  765. package/build/client/_app/immutable/chunks/DYhrFGRu.js +0 -1
  766. package/build/client/_app/immutable/chunks/DYhrFGRu.js.br +0 -0
  767. package/build/client/_app/immutable/chunks/DYhrFGRu.js.gz +0 -0
  768. package/build/client/_app/immutable/chunks/DYnBP6_5.js +0 -1
  769. package/build/client/_app/immutable/chunks/DYnBP6_5.js.br +0 -0
  770. package/build/client/_app/immutable/chunks/DYnBP6_5.js.gz +0 -0
  771. package/build/client/_app/immutable/chunks/D_BNbkN3.js +0 -1
  772. package/build/client/_app/immutable/chunks/D_BNbkN3.js.br +0 -0
  773. package/build/client/_app/immutable/chunks/D_BNbkN3.js.gz +0 -0
  774. package/build/client/_app/immutable/chunks/Db0FcQF5.js +0 -1
  775. package/build/client/_app/immutable/chunks/Db0FcQF5.js.br +0 -0
  776. package/build/client/_app/immutable/chunks/Db0FcQF5.js.gz +0 -0
  777. package/build/client/_app/immutable/chunks/DcLAeLz52.js +0 -1
  778. package/build/client/_app/immutable/chunks/DcLAeLz52.js.br +0 -0
  779. package/build/client/_app/immutable/chunks/DcLAeLz52.js.gz +0 -0
  780. package/build/client/_app/immutable/chunks/Dez8vKl4.js +0 -1
  781. package/build/client/_app/immutable/chunks/Dez8vKl4.js.br +0 -0
  782. package/build/client/_app/immutable/chunks/Dez8vKl4.js.gz +0 -0
  783. package/build/client/_app/immutable/chunks/Dg85fqjY2.js +0 -1
  784. package/build/client/_app/immutable/chunks/Dg85fqjY2.js.br +0 -0
  785. package/build/client/_app/immutable/chunks/Dg85fqjY2.js.gz +0 -0
  786. package/build/client/_app/immutable/chunks/Djn5o6TS2.js +0 -1
  787. package/build/client/_app/immutable/chunks/Djn5o6TS2.js.br +0 -0
  788. package/build/client/_app/immutable/chunks/Djn5o6TS2.js.gz +0 -0
  789. package/build/client/_app/immutable/chunks/DmnnY3QQ.js +0 -1
  790. package/build/client/_app/immutable/chunks/DmnnY3QQ.js.br +0 -0
  791. package/build/client/_app/immutable/chunks/DmnnY3QQ.js.gz +0 -0
  792. package/build/client/_app/immutable/chunks/DnXou9Ir2.js +0 -1
  793. package/build/client/_app/immutable/chunks/DnXou9Ir2.js.br +0 -0
  794. package/build/client/_app/immutable/chunks/DnXou9Ir2.js.gz +0 -0
  795. package/build/client/_app/immutable/chunks/DonLKvLd.js +0 -1
  796. package/build/client/_app/immutable/chunks/DonLKvLd.js.br +0 -0
  797. package/build/client/_app/immutable/chunks/DonLKvLd.js.gz +0 -0
  798. package/build/client/_app/immutable/chunks/DshXNtvi2.js +0 -1
  799. package/build/client/_app/immutable/chunks/DshXNtvi2.js.br +0 -0
  800. package/build/client/_app/immutable/chunks/DshXNtvi2.js.gz +0 -0
  801. package/build/client/_app/immutable/chunks/DwIHMF0Q2.js +0 -1
  802. package/build/client/_app/immutable/chunks/DwIHMF0Q2.js.br +0 -0
  803. package/build/client/_app/immutable/chunks/DwIHMF0Q2.js.gz +0 -0
  804. package/build/client/_app/immutable/chunks/FMPmPwt6.js +0 -1
  805. package/build/client/_app/immutable/chunks/FMPmPwt6.js.br +0 -0
  806. package/build/client/_app/immutable/chunks/FMPmPwt6.js.gz +0 -0
  807. package/build/client/_app/immutable/chunks/FagB-xkq2.js +0 -1
  808. package/build/client/_app/immutable/chunks/FagB-xkq2.js.br +0 -0
  809. package/build/client/_app/immutable/chunks/FagB-xkq2.js.gz +0 -0
  810. package/build/client/_app/immutable/chunks/FwRTkJ1A.js +0 -1
  811. package/build/client/_app/immutable/chunks/FwRTkJ1A.js.br +0 -0
  812. package/build/client/_app/immutable/chunks/FwRTkJ1A.js.gz +0 -0
  813. package/build/client/_app/immutable/chunks/K91LO6St.js +0 -1
  814. package/build/client/_app/immutable/chunks/K91LO6St.js.br +0 -0
  815. package/build/client/_app/immutable/chunks/K91LO6St.js.gz +0 -0
  816. package/build/client/_app/immutable/chunks/LxULFDih2.js +0 -1
  817. package/build/client/_app/immutable/chunks/LxULFDih2.js.br +0 -0
  818. package/build/client/_app/immutable/chunks/LxULFDih2.js.gz +0 -0
  819. package/build/client/_app/immutable/chunks/OTjmBuCE2.js +0 -1
  820. package/build/client/_app/immutable/chunks/OTjmBuCE2.js.br +0 -0
  821. package/build/client/_app/immutable/chunks/OTjmBuCE2.js.gz +0 -0
  822. package/build/client/_app/immutable/chunks/SemFz8562.js +0 -1
  823. package/build/client/_app/immutable/chunks/SemFz8562.js.br +0 -0
  824. package/build/client/_app/immutable/chunks/SemFz8562.js.gz +0 -0
  825. package/build/client/_app/immutable/chunks/VAyPSnFM.js +0 -1
  826. package/build/client/_app/immutable/chunks/VAyPSnFM.js.br +0 -0
  827. package/build/client/_app/immutable/chunks/VAyPSnFM.js.gz +0 -0
  828. package/build/client/_app/immutable/chunks/WVgW_Yn5.js +0 -1
  829. package/build/client/_app/immutable/chunks/WVgW_Yn5.js.br +0 -0
  830. package/build/client/_app/immutable/chunks/WVgW_Yn5.js.gz +0 -0
  831. package/build/client/_app/immutable/chunks/ZfbyBpFw2.js +0 -1
  832. package/build/client/_app/immutable/chunks/ZfbyBpFw2.js.br +0 -0
  833. package/build/client/_app/immutable/chunks/ZfbyBpFw2.js.gz +0 -0
  834. package/build/client/_app/immutable/chunks/_WBxvWKO.js +0 -1
  835. package/build/client/_app/immutable/chunks/_WBxvWKO.js.br +0 -0
  836. package/build/client/_app/immutable/chunks/_WBxvWKO.js.gz +0 -0
  837. package/build/client/_app/immutable/chunks/_x9L4_0l.js +0 -1
  838. package/build/client/_app/immutable/chunks/_x9L4_0l.js.br +0 -0
  839. package/build/client/_app/immutable/chunks/_x9L4_0l.js.gz +0 -0
  840. package/build/client/_app/immutable/chunks/aTknR1v9.js +0 -1
  841. package/build/client/_app/immutable/chunks/aTknR1v9.js.br +0 -0
  842. package/build/client/_app/immutable/chunks/aTknR1v9.js.gz +0 -0
  843. package/build/client/_app/immutable/chunks/hon4tzzS2.js +0 -1
  844. package/build/client/_app/immutable/chunks/hon4tzzS2.js.br +0 -0
  845. package/build/client/_app/immutable/chunks/hon4tzzS2.js.gz +0 -0
  846. package/build/client/_app/immutable/chunks/pcaL3nV52.js +0 -1
  847. package/build/client/_app/immutable/chunks/pcaL3nV52.js.br +0 -0
  848. package/build/client/_app/immutable/chunks/pcaL3nV52.js.gz +0 -0
  849. package/build/client/_app/immutable/chunks/vHuN1awK.js +0 -3
  850. package/build/client/_app/immutable/chunks/vHuN1awK.js.br +0 -0
  851. package/build/client/_app/immutable/chunks/vHuN1awK.js.gz +0 -0
  852. package/build/client/_app/immutable/chunks/vZmcsNee.js +0 -1
  853. package/build/client/_app/immutable/chunks/vZmcsNee.js.br +0 -0
  854. package/build/client/_app/immutable/chunks/vZmcsNee.js.gz +0 -0
  855. package/build/client/_app/immutable/chunks/yHfhbx61.js +0 -1
  856. package/build/client/_app/immutable/chunks/yHfhbx61.js.br +0 -0
  857. package/build/client/_app/immutable/chunks/yHfhbx61.js.gz +0 -0
  858. package/build/client/_app/immutable/entry/app.D3wgtDG9.js +0 -2
  859. package/build/client/_app/immutable/entry/app.D3wgtDG9.js.br +0 -0
  860. package/build/client/_app/immutable/entry/app.D3wgtDG9.js.gz +0 -0
  861. package/build/client/_app/immutable/entry/start.O0FFu8_0.js +0 -1
  862. package/build/client/_app/immutable/entry/start.O0FFu8_0.js.br +0 -1
  863. package/build/client/_app/immutable/entry/start.O0FFu8_0.js.gz +0 -0
  864. package/build/client/_app/immutable/nodes/0.-bLgee87.js +0 -1
  865. package/build/client/_app/immutable/nodes/0.-bLgee87.js.br +0 -0
  866. package/build/client/_app/immutable/nodes/0.-bLgee87.js.gz +0 -0
  867. package/build/client/_app/immutable/nodes/1.Cv2FjOpD.js +0 -1
  868. package/build/client/_app/immutable/nodes/1.Cv2FjOpD.js.br +0 -1
  869. package/build/client/_app/immutable/nodes/1.Cv2FjOpD.js.gz +0 -0
  870. package/build/client/_app/immutable/nodes/2.CvZgARQ8.js +0 -1
  871. package/build/client/_app/immutable/nodes/2.CvZgARQ8.js.br +0 -0
  872. package/build/client/_app/immutable/nodes/2.CvZgARQ8.js.gz +0 -0
  873. package/build/client/_app/immutable/nodes/3.CvZgARQ8.js +0 -1
  874. package/build/client/_app/immutable/nodes/3.CvZgARQ8.js.br +0 -0
  875. package/build/client/_app/immutable/nodes/3.CvZgARQ8.js.gz +0 -0
  876. package/build/server/chunks/0-BMs5qwPn.js +0 -32
  877. package/build/server/chunks/0-BMs5qwPn.js.map +0 -1
  878. package/build/server/chunks/1-DlcOl1ee.js +0 -9
  879. package/build/server/chunks/1-DlcOl1ee.js.map +0 -1
  880. package/build/server/chunks/2-BweW21WZ.js +0 -33
  881. package/build/server/chunks/2-BweW21WZ.js.map +0 -1
  882. package/build/server/chunks/3-uvCLP4aZ.js +0 -39
  883. package/build/server/chunks/3-uvCLP4aZ.js.map +0 -1
  884. package/build/server/chunks/_layout.svelte-D3bZoFdR.js +0 -26
  885. package/build/server/chunks/_layout.svelte-D3bZoFdR.js.map +0 -1
  886. package/build/server/chunks/_page.svelte-B9hJc3P0.js +0 -22
  887. package/build/server/chunks/_page.svelte-B9hJc3P0.js.map +0 -1
  888. package/build/server/chunks/_page.svelte-D1e0LSg3.js +0 -22
  889. package/build/server/chunks/_page.svelte-D1e0LSg3.js.map +0 -1
  890. package/build/server/chunks/client-D-xCtO_w.js +0 -34
  891. package/build/server/chunks/client-D-xCtO_w.js.map +0 -1
  892. package/build/server/chunks/dist-DPv-_2q0.js +0 -215
  893. package/build/server/chunks/dist-DPv-_2q0.js.map +0 -1
  894. package/build/server/chunks/error.svelte-DxLuKrYl.js +0 -16
  895. package/build/server/chunks/error.svelte-DxLuKrYl.js.map +0 -1
  896. package/build/server/chunks/hooks.server-Cyi_B_F7.js +0 -11
  897. package/build/server/chunks/hooks.server-Cyi_B_F7.js.map +0 -1
  898. package/build/server/chunks/internal-Nx8Rcxrk.js +0 -6290
  899. package/build/server/chunks/internal-Nx8Rcxrk.js.map +0 -1
  900. package/build/server/chunks/preview-api-DTcDkNE9.js +0 -72
  901. package/build/server/chunks/preview-api-DTcDkNE9.js.map +0 -1
  902. package/build/server/chunks/preview-workbench-C63y6d-R.js +0 -10449
  903. package/build/server/chunks/preview-workbench-C63y6d-R.js.map +0 -1
  904. package/build/server/chunks/shared-server-CB6hj8Uq.js +0 -22
  905. package/build/server/chunks/shared-server-CB6hj8Uq.js.map +0 -1
  906. package/build/server/chunks/state-elHCYq4i.js +0 -61
  907. package/build/server/chunks/state-elHCYq4i.js.map +0 -1
  908. package/build/server/index.js +0 -4368
  909. package/build/server/index.js.map +0 -1
  910. package/build/server/manifest.js +0 -54
  911. package/build/server/manifest.js.map +0 -1
  912. /package/build/client/_app/immutable/chunks/{9MfHhQsQ2.js → 9MfHhQsQ.js} +0 -0
  913. /package/build/client/_app/immutable/chunks/{9MfHhQsQ2.js.br → 9MfHhQsQ.js.br} +0 -0
  914. /package/build/client/_app/immutable/chunks/{9MfHhQsQ2.js.gz → 9MfHhQsQ.js.gz} +0 -0
  915. /package/build/client/_app/immutable/chunks/{B5W6OYN7.js → B5W6OYN72.js} +0 -0
  916. /package/build/client/_app/immutable/chunks/{B5W6OYN7.js.br → B5W6OYN72.js.br} +0 -0
  917. /package/build/client/_app/immutable/chunks/{B5W6OYN7.js.gz → B5W6OYN72.js.gz} +0 -0
  918. /package/build/client/_app/immutable/chunks/{B5eOa1yu2.js → B5eOa1yu.js} +0 -0
  919. /package/build/client/_app/immutable/chunks/{B5eOa1yu2.js.br → B5eOa1yu.js.br} +0 -0
  920. /package/build/client/_app/immutable/chunks/{B5eOa1yu2.js.gz → B5eOa1yu.js.gz} +0 -0
  921. /package/build/client/_app/immutable/chunks/{BRdr0IET.js → BRdr0IET2.js} +0 -0
  922. /package/build/client/_app/immutable/chunks/{BRdr0IET.js.br → BRdr0IET2.js.br} +0 -0
  923. /package/build/client/_app/immutable/chunks/{BRdr0IET.js.gz → BRdr0IET2.js.gz} +0 -0
  924. /package/build/client/_app/immutable/chunks/{BSWPekZh.js → BSWPekZh2.js} +0 -0
  925. /package/build/client/_app/immutable/chunks/{BSWPekZh.js.br → BSWPekZh2.js.br} +0 -0
  926. /package/build/client/_app/immutable/chunks/{BSWPekZh.js.gz → BSWPekZh2.js.gz} +0 -0
  927. /package/build/client/_app/immutable/chunks/{BWXHIvNe.js → BWXHIvNe2.js} +0 -0
  928. /package/build/client/_app/immutable/chunks/{BWXHIvNe.js.br → BWXHIvNe2.js.br} +0 -0
  929. /package/build/client/_app/immutable/chunks/{BWXHIvNe.js.gz → BWXHIvNe2.js.gz} +0 -0
  930. /package/build/client/_app/immutable/chunks/{BZCL-v6S2.js → BZCL-v6S.js} +0 -0
  931. /package/build/client/_app/immutable/chunks/{BZCL-v6S2.js.br → BZCL-v6S.js.br} +0 -0
  932. /package/build/client/_app/immutable/chunks/{BZCL-v6S2.js.gz → BZCL-v6S.js.gz} +0 -0
  933. /package/build/client/_app/immutable/chunks/{Bm3Qr25_.js → Bm3Qr25_2.js} +0 -0
  934. /package/build/client/_app/immutable/chunks/{Bm3Qr25_.js.br → Bm3Qr25_2.js.br} +0 -0
  935. /package/build/client/_app/immutable/chunks/{Bm3Qr25_.js.gz → Bm3Qr25_2.js.gz} +0 -0
  936. /package/build/client/_app/immutable/chunks/{BnjxR4X62.js → BnjxR4X6.js} +0 -0
  937. /package/build/client/_app/immutable/chunks/{BnjxR4X62.js.br → BnjxR4X6.js.br} +0 -0
  938. /package/build/client/_app/immutable/chunks/{BnjxR4X62.js.gz → BnjxR4X6.js.gz} +0 -0
  939. /package/build/client/_app/immutable/chunks/{BnlCZFoB2.js → BnlCZFoB.js} +0 -0
  940. /package/build/client/_app/immutable/chunks/{BnlCZFoB2.js.br → BnlCZFoB.js.br} +0 -0
  941. /package/build/client/_app/immutable/chunks/{BnlCZFoB2.js.gz → BnlCZFoB.js.gz} +0 -0
  942. /package/build/client/_app/immutable/chunks/{Bqwy1Gya2.js → Bqwy1Gya.js} +0 -0
  943. /package/build/client/_app/immutable/chunks/{Bqwy1Gya2.js.br → Bqwy1Gya.js.br} +0 -0
  944. /package/build/client/_app/immutable/chunks/{Bqwy1Gya2.js.gz → Bqwy1Gya.js.gz} +0 -0
  945. /package/build/client/_app/immutable/chunks/{C3h-C4tm2.js → C3h-C4tm.js} +0 -0
  946. /package/build/client/_app/immutable/chunks/{C3h-C4tm2.js.br → C3h-C4tm.js.br} +0 -0
  947. /package/build/client/_app/immutable/chunks/{C3h-C4tm2.js.gz → C3h-C4tm.js.gz} +0 -0
  948. /package/build/client/_app/immutable/chunks/{C5JeTiTv.js → C5JeTiTv2.js} +0 -0
  949. /package/build/client/_app/immutable/chunks/{C5JeTiTv.js.br → C5JeTiTv2.js.br} +0 -0
  950. /package/build/client/_app/immutable/chunks/{C5JeTiTv.js.gz → C5JeTiTv2.js.gz} +0 -0
  951. /package/build/client/_app/immutable/chunks/{CBce3t8t.js → CBce3t8t2.js} +0 -0
  952. /package/build/client/_app/immutable/chunks/{CBce3t8t.js.br → CBce3t8t2.js.br} +0 -0
  953. /package/build/client/_app/immutable/chunks/{CBce3t8t.js.gz → CBce3t8t2.js.gz} +0 -0
  954. /package/build/client/_app/immutable/chunks/{CDeNXAV02.js → CDeNXAV0.js} +0 -0
  955. /package/build/client/_app/immutable/chunks/{CDeNXAV02.js.br → CDeNXAV0.js.br} +0 -0
  956. /package/build/client/_app/immutable/chunks/{CDeNXAV02.js.gz → CDeNXAV0.js.gz} +0 -0
  957. /package/build/client/_app/immutable/chunks/{CDv2pdJW2.js → CDv2pdJW.js} +0 -0
  958. /package/build/client/_app/immutable/chunks/{CDv2pdJW2.js.br → CDv2pdJW.js.br} +0 -0
  959. /package/build/client/_app/immutable/chunks/{CDv2pdJW2.js.gz → CDv2pdJW.js.gz} +0 -0
  960. /package/build/client/_app/immutable/chunks/{CHQ94UKr.js → CHQ94UKr2.js} +0 -0
  961. /package/build/client/_app/immutable/chunks/{CHQ94UKr.js.br → CHQ94UKr2.js.br} +0 -0
  962. /package/build/client/_app/immutable/chunks/{CHQ94UKr.js.gz → CHQ94UKr2.js.gz} +0 -0
  963. /package/build/client/_app/immutable/chunks/{CZbG8q4J2.js → CZbG8q4J.js} +0 -0
  964. /package/build/client/_app/immutable/chunks/{CZbG8q4J2.js.br → CZbG8q4J.js.br} +0 -0
  965. /package/build/client/_app/immutable/chunks/{CZbG8q4J2.js.gz → CZbG8q4J.js.gz} +0 -0
  966. /package/build/client/_app/immutable/chunks/{CZd0xW_V.js → CZd0xW_V2.js} +0 -0
  967. /package/build/client/_app/immutable/chunks/{CZd0xW_V.js.br → CZd0xW_V2.js.br} +0 -0
  968. /package/build/client/_app/immutable/chunks/{CZd0xW_V.js.gz → CZd0xW_V2.js.gz} +0 -0
  969. /package/build/client/_app/immutable/chunks/{CcmNWLt0.js → CcmNWLt02.js} +0 -0
  970. /package/build/client/_app/immutable/chunks/{CcmNWLt0.js.br → CcmNWLt02.js.br} +0 -0
  971. /package/build/client/_app/immutable/chunks/{CcmNWLt0.js.gz → CcmNWLt02.js.gz} +0 -0
  972. /package/build/client/_app/immutable/chunks/{Cfkwpbl8.js → Cfkwpbl82.js} +0 -0
  973. /package/build/client/_app/immutable/chunks/{Cfkwpbl8.js.br → Cfkwpbl82.js.br} +0 -0
  974. /package/build/client/_app/immutable/chunks/{Cfkwpbl8.js.gz → Cfkwpbl82.js.gz} +0 -0
  975. /package/build/client/_app/immutable/chunks/{CohzipZa.js → CohzipZa2.js} +0 -0
  976. /package/build/client/_app/immutable/chunks/{CohzipZa.js.br → CohzipZa2.js.br} +0 -0
  977. /package/build/client/_app/immutable/chunks/{CohzipZa.js.gz → CohzipZa2.js.gz} +0 -0
  978. /package/build/client/_app/immutable/chunks/{Cv5bFMCO2.js → Cv5bFMCO.js} +0 -0
  979. /package/build/client/_app/immutable/chunks/{Cv5bFMCO2.js.br → Cv5bFMCO.js.br} +0 -0
  980. /package/build/client/_app/immutable/chunks/{Cv5bFMCO2.js.gz → Cv5bFMCO.js.gz} +0 -0
  981. /package/build/client/_app/immutable/chunks/{DB4EqR-F2.js → DB4EqR-F.js} +0 -0
  982. /package/build/client/_app/immutable/chunks/{DB4EqR-F2.js.br → DB4EqR-F.js.br} +0 -0
  983. /package/build/client/_app/immutable/chunks/{DB4EqR-F2.js.gz → DB4EqR-F.js.gz} +0 -0
  984. /package/build/client/_app/immutable/chunks/{DCQb3MpD2.js → DCQb3MpD.js} +0 -0
  985. /package/build/client/_app/immutable/chunks/{DCQb3MpD2.js.br → DCQb3MpD.js.br} +0 -0
  986. /package/build/client/_app/immutable/chunks/{DCQb3MpD2.js.gz → DCQb3MpD.js.gz} +0 -0
  987. /package/build/client/_app/immutable/chunks/{DDpmG2fV.js → DDpmG2fV2.js} +0 -0
  988. /package/build/client/_app/immutable/chunks/{DDpmG2fV.js.br → DDpmG2fV2.js.br} +0 -0
  989. /package/build/client/_app/immutable/chunks/{DDpmG2fV.js.gz → DDpmG2fV2.js.gz} +0 -0
  990. /package/build/client/_app/immutable/chunks/{DMoTqEGO.js → DMoTqEGO2.js} +0 -0
  991. /package/build/client/_app/immutable/chunks/{DMoTqEGO.js.br → DMoTqEGO2.js.br} +0 -0
  992. /package/build/client/_app/immutable/chunks/{DMoTqEGO.js.gz → DMoTqEGO2.js.gz} +0 -0
  993. /package/build/client/_app/immutable/chunks/{DcIDlBhZ2.js → DcIDlBhZ.js} +0 -0
  994. /package/build/client/_app/immutable/chunks/{DcIDlBhZ2.js.br → DcIDlBhZ.js.br} +0 -0
  995. /package/build/client/_app/immutable/chunks/{DcIDlBhZ2.js.gz → DcIDlBhZ.js.gz} +0 -0
  996. /package/build/client/_app/immutable/chunks/{DhmEMT88.js → DhmEMT882.js} +0 -0
  997. /package/build/client/_app/immutable/chunks/{DhmEMT88.js.br → DhmEMT882.js.br} +0 -0
  998. /package/build/client/_app/immutable/chunks/{DhmEMT88.js.gz → DhmEMT882.js.gz} +0 -0
  999. /package/build/client/_app/immutable/chunks/{DluEY0Gj2.js → DluEY0Gj.js} +0 -0
  1000. /package/build/client/_app/immutable/chunks/{DluEY0Gj2.js.br → DluEY0Gj.js.br} +0 -0
  1001. /package/build/client/_app/immutable/chunks/{DluEY0Gj2.js.gz → DluEY0Gj.js.gz} +0 -0
  1002. /package/build/client/_app/immutable/chunks/{DsUTQ-LC2.js → DsUTQ-LC.js} +0 -0
  1003. /package/build/client/_app/immutable/chunks/{DsUTQ-LC2.js.br → DsUTQ-LC.js.br} +0 -0
  1004. /package/build/client/_app/immutable/chunks/{DsUTQ-LC2.js.gz → DsUTQ-LC.js.gz} +0 -0
  1005. /package/build/client/_app/immutable/chunks/{DswuEJGm.js → DswuEJGm2.js} +0 -0
  1006. /package/build/client/_app/immutable/chunks/{DswuEJGm.js.br → DswuEJGm2.js.br} +0 -0
  1007. /package/build/client/_app/immutable/chunks/{DswuEJGm.js.gz → DswuEJGm2.js.gz} +0 -0
  1008. /package/build/client/_app/immutable/chunks/{Fe1Jh2GI2.js → Fe1Jh2GI.js} +0 -0
  1009. /package/build/client/_app/immutable/chunks/{Fe1Jh2GI2.js.br → Fe1Jh2GI.js.br} +0 -0
  1010. /package/build/client/_app/immutable/chunks/{Fe1Jh2GI2.js.gz → Fe1Jh2GI.js.gz} +0 -0
  1011. /package/build/client/_app/immutable/chunks/{IvuFDN5E.js → IvuFDN5E2.js} +0 -0
  1012. /package/build/client/_app/immutable/chunks/{IvuFDN5E.js.br → IvuFDN5E2.js.br} +0 -0
  1013. /package/build/client/_app/immutable/chunks/{IvuFDN5E.js.gz → IvuFDN5E2.js.gz} +0 -0
  1014. /package/build/client/_app/immutable/chunks/{R4sQ-3Hc.js → R4sQ-3Hc2.js} +0 -0
  1015. /package/build/client/_app/immutable/chunks/{R4sQ-3Hc.js.br → R4sQ-3Hc2.js.br} +0 -0
  1016. /package/build/client/_app/immutable/chunks/{R4sQ-3Hc.js.gz → R4sQ-3Hc2.js.gz} +0 -0
  1017. /package/build/client/_app/immutable/chunks/{VbXTXTou2.js → VbXTXTou.js} +0 -0
  1018. /package/build/client/_app/immutable/chunks/{VbXTXTou2.js.br → VbXTXTou.js.br} +0 -0
  1019. /package/build/client/_app/immutable/chunks/{VbXTXTou2.js.gz → VbXTXTou.js.gz} +0 -0
  1020. /package/build/client/_app/immutable/chunks/{Yf0g_uY-.js → Yf0g_uY-2.js} +0 -0
  1021. /package/build/client/_app/immutable/chunks/{Yf0g_uY-.js.br → Yf0g_uY-2.js.br} +0 -0
  1022. /package/build/client/_app/immutable/chunks/{Yf0g_uY-.js.gz → Yf0g_uY-2.js.gz} +0 -0
  1023. /package/build/client/_app/immutable/chunks/{eJ-hLW7d.js → eJ-hLW7d2.js} +0 -0
  1024. /package/build/client/_app/immutable/chunks/{eJ-hLW7d.js.br → eJ-hLW7d2.js.br} +0 -0
  1025. /package/build/client/_app/immutable/chunks/{eJ-hLW7d.js.gz → eJ-hLW7d2.js.gz} +0 -0
  1026. /package/build/client/_app/immutable/chunks/{iXnhIJG72.js → iXnhIJG7.js} +0 -0
  1027. /package/build/client/_app/immutable/chunks/{iXnhIJG72.js.br → iXnhIJG7.js.br} +0 -0
  1028. /package/build/client/_app/immutable/chunks/{iXnhIJG72.js.gz → iXnhIJG7.js.gz} +0 -0
  1029. /package/build/client/_app/immutable/chunks/{oeQT6MSM2.js → oeQT6MSM.js} +0 -0
  1030. /package/build/client/_app/immutable/chunks/{oeQT6MSM2.js.br → oeQT6MSM.js.br} +0 -0
  1031. /package/build/client/_app/immutable/chunks/{oeQT6MSM2.js.gz → oeQT6MSM.js.gz} +0 -0
  1032. /package/build/client/_app/immutable/chunks/{sltzmVWM.js → sltzmVWM2.js} +0 -0
  1033. /package/build/client/_app/immutable/chunks/{sltzmVWM.js.br → sltzmVWM2.js.br} +0 -0
  1034. /package/build/client/_app/immutable/chunks/{sltzmVWM.js.gz → sltzmVWM2.js.gz} +0 -0
  1035. /package/build/client/_app/immutable/chunks/{vGVdxbeo2.js → vGVdxbeo.js} +0 -0
  1036. /package/build/client/_app/immutable/chunks/{vGVdxbeo2.js.br → vGVdxbeo.js.br} +0 -0
  1037. /package/build/client/_app/immutable/chunks/{vGVdxbeo2.js.gz → vGVdxbeo.js.gz} +0 -0
@@ -1,4368 +0,0 @@
1
- import { c as coalesce_to_error, g as get_status, a as get_message, u as uneval, p as parse, _ as __commonJSMin, o as options, b as get_hooks, n as noop, h as has_resolution_suffix, d as has_data_suffix, e as base, s as strip_resolution_suffix, f as strip_data_suffix, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, i as decode_pathname, j as add_data_suffix, k as add_resolution_suffix, l as find_route, m as normalize_path, q as disable_search, v as validate_layout_server_exports, r as validate_layout_exports, t as validate_page_server_exports, w as validate_page_exports, x as noop_span, y as resolve, z as read_implementation, A as override, B as assets, C as reset, D as app_dir, E as create_remote_key, F as hash, G as text_encoder, H as compact, J as once, K as normalize_error, L as get_relative_path, M as make_trackable, N as writable, O as readable, P as parse_remote_arg, Q as stringify, R as stringify$1, S as split_remote_key, U as base64_encode, V as set_read_implementation } from './chunks/internal-Nx8Rcxrk.js';
2
- import { json, text, isRedirect, error } from '@sveltejs/kit';
3
- import { HttpError, SvelteKitError, Redirect, ActionFailure } from '@sveltejs/kit/internal';
4
- import { with_request_store, merge_tracing } from '@sveltejs/kit/internal/server';
5
- import { s as set_private_env, a as set_public_env, p as public_env } from './chunks/shared-server-CB6hj8Uq.js';
6
- import 'clsx';
7
-
8
- var ENDPOINT_METHODS = [
9
- "GET",
10
- "POST",
11
- "PUT",
12
- "PATCH",
13
- "DELETE",
14
- "OPTIONS",
15
- "HEAD"
16
- ];
17
- var PAGE_METHODS = [
18
- "GET",
19
- "POST",
20
- "HEAD"
21
- ];
22
- //#endregion
23
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/form-utils.js
24
- /** @import { RemoteForm } from '@sveltejs/kit' */
25
- /** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
26
- /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
27
- var decoder = new TextDecoder();
28
- /**
29
- * Sets a value in a nested object using a path string, mutating the original object
30
- * @param {Record<string, any>} object
31
- * @param {string} path_string
32
- * @param {any} value
33
- */
34
- function set_nested_value(object, path_string, value) {
35
- if (path_string.startsWith("n:")) {
36
- path_string = path_string.slice(2);
37
- value = value === "" ? void 0 : parseFloat(value);
38
- } else if (path_string.startsWith("b:")) {
39
- path_string = path_string.slice(2);
40
- value = value === "on";
41
- }
42
- deep_set(object, split_path(path_string), value);
43
- }
44
- /**
45
- * Convert `FormData` into a POJO
46
- * @param {FormData} data
47
- */
48
- function convert_formdata(data) {
49
- /** @type {Record<string, any>} */
50
- const result = {};
51
- for (let key of data.keys()) {
52
- const is_array = key.endsWith("[]");
53
- /** @type {any[]} */
54
- let values = data.getAll(key);
55
- if (is_array) key = key.slice(0, -2);
56
- if (values.length > 1 && !is_array) throw new Error(`Form cannot contain duplicated keys — "${key}" has ${values.length} values`);
57
- values = values.filter((entry) => typeof entry === "string" || entry.name !== "" || entry.size > 0);
58
- if (key.startsWith("n:")) {
59
- key = key.slice(2);
60
- values = values.map((v) => v === "" ? void 0 : parseFloat(v));
61
- } else if (key.startsWith("b:")) {
62
- key = key.slice(2);
63
- values = values.map((v) => v === "on");
64
- }
65
- set_nested_value(result, key, is_array ? values : values[0]);
66
- }
67
- return result;
68
- }
69
- var BINARY_FORM_CONTENT_TYPE = "application/x-sveltekit-formdata";
70
- var BINARY_FORM_VERSION = 0;
71
- var HEADER_BYTES = 7;
72
- /**
73
- * @param {Request} request
74
- * @returns {Promise<{ data: Record<string, any>; meta: BinaryFormMeta; form_data: FormData | null }>}
75
- */
76
- async function deserialize_binary_form(request) {
77
- if (request.headers.get("content-type") !== "application/x-sveltekit-formdata") {
78
- const form_data = await request.formData();
79
- return {
80
- data: convert_formdata(form_data),
81
- meta: {},
82
- form_data
83
- };
84
- }
85
- if (!request.body) throw deserialize_error("no body");
86
- const reader = request.body.getReader();
87
- /** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
88
- const chunks = [];
89
- /**
90
- * @param {number} index
91
- * @returns {Promise<Uint8Array<ArrayBuffer> | undefined>}
92
- */
93
- function get_chunk(index) {
94
- if (index in chunks) return chunks[index];
95
- let i = chunks.length;
96
- while (i <= index) {
97
- chunks[i] = reader.read().then((chunk) => chunk.value);
98
- i++;
99
- }
100
- return chunks[index];
101
- }
102
- /**
103
- * @param {number} offset
104
- * @param {number} length
105
- * @returns {Promise<Uint8Array | null>}
106
- */
107
- async function get_buffer(offset, length) {
108
- /** @type {Uint8Array} */
109
- let start_chunk;
110
- let chunk_start = 0;
111
- /** @type {number} */
112
- let chunk_index;
113
- for (chunk_index = 0;; chunk_index++) {
114
- const chunk = await get_chunk(chunk_index);
115
- if (!chunk) return null;
116
- const chunk_end = chunk_start + chunk.byteLength;
117
- if (offset >= chunk_start && offset < chunk_end) {
118
- start_chunk = chunk;
119
- break;
120
- }
121
- chunk_start = chunk_end;
122
- }
123
- if (offset + length <= chunk_start + start_chunk.byteLength) return start_chunk.subarray(offset - chunk_start, offset + length - chunk_start);
124
- const chunks = [start_chunk.subarray(offset - chunk_start)];
125
- let cursor = start_chunk.byteLength - offset + chunk_start;
126
- while (cursor < length) {
127
- chunk_index++;
128
- let chunk = await get_chunk(chunk_index);
129
- if (!chunk) return null;
130
- if (chunk.byteLength > length - cursor) chunk = chunk.subarray(0, length - cursor);
131
- chunks.push(chunk);
132
- cursor += chunk.byteLength;
133
- }
134
- const buffer = new Uint8Array(length);
135
- cursor = 0;
136
- for (const chunk of chunks) {
137
- buffer.set(chunk, cursor);
138
- cursor += chunk.byteLength;
139
- }
140
- return buffer;
141
- }
142
- const header = await get_buffer(0, HEADER_BYTES);
143
- if (!header) throw deserialize_error("too short");
144
- if (header[0] !== BINARY_FORM_VERSION) throw deserialize_error(`got version ${header[0]}, expected version ${BINARY_FORM_VERSION}`);
145
- const header_view = new DataView(header.buffer, header.byteOffset, header.byteLength);
146
- const data_length = header_view.getUint32(1, true);
147
- const file_offsets_length = header_view.getUint16(5, true);
148
- const data_buffer = await get_buffer(HEADER_BYTES, data_length);
149
- if (!data_buffer) throw deserialize_error("data too short");
150
- /** @type {Array<number | undefined>} */
151
- let file_offsets;
152
- /** @type {number} */
153
- let files_start_offset;
154
- if (file_offsets_length > 0) {
155
- const file_offsets_buffer = await get_buffer(HEADER_BYTES + data_length, file_offsets_length);
156
- if (!file_offsets_buffer) throw deserialize_error("file offset table too short");
157
- const parsed_offsets = JSON.parse(decoder.decode(file_offsets_buffer));
158
- if (!Array.isArray(parsed_offsets) || parsed_offsets.some((n) => typeof n !== "number" || !Number.isInteger(n) || n < 0)) throw deserialize_error("invalid file offset table");
159
- file_offsets = parsed_offsets;
160
- files_start_offset = HEADER_BYTES + data_length + file_offsets_length;
161
- }
162
- /** @type {Array<{ offset: number, size: number }>} */
163
- const file_spans = [];
164
- const [data, meta] = parse(decoder.decode(data_buffer), { File: ([name, type, size, last_modified, index]) => {
165
- if (typeof name !== "string" || typeof type !== "string" || typeof size !== "number" || typeof last_modified !== "number" || typeof index !== "number") throw deserialize_error("invalid file metadata");
166
- let offset = file_offsets[index];
167
- if (offset === void 0) throw deserialize_error("duplicate file offset table index");
168
- file_offsets[index] = void 0;
169
- offset += files_start_offset;
170
- file_spans.push({
171
- offset,
172
- size
173
- });
174
- return new Proxy(new LazyFile(name, type, size, last_modified, get_chunk, offset), { getPrototypeOf() {
175
- return File.prototype;
176
- } });
177
- } });
178
- file_spans.sort((a, b) => a.offset - b.offset || a.size - b.size);
179
- for (let i = 1; i < file_spans.length; i++) {
180
- const previous = file_spans[i - 1];
181
- const current = file_spans[i];
182
- const previous_end = previous.offset + previous.size;
183
- if (previous_end < current.offset) throw deserialize_error("gaps in file data");
184
- if (previous_end > current.offset) throw deserialize_error("overlapping file data");
185
- }
186
- (async () => {
187
- let has_more = true;
188
- while (has_more) has_more = !!await get_chunk(chunks.length);
189
- })();
190
- return {
191
- data,
192
- meta,
193
- form_data: null
194
- };
195
- }
196
- /**
197
- * @param {string} message
198
- */
199
- function deserialize_error(message) {
200
- return new SvelteKitError(400, "Bad Request", `Could not deserialize binary form: ${message}`);
201
- }
202
- /** @implements {File} */
203
- var LazyFile = class LazyFile {
204
- /** @type {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} */
205
- #get_chunk;
206
- /** @type {number} */
207
- #offset;
208
- /**
209
- * @param {string} name
210
- * @param {string} type
211
- * @param {number} size
212
- * @param {number} last_modified
213
- * @param {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} get_chunk
214
- * @param {number} offset
215
- */
216
- constructor(name, type, size, last_modified, get_chunk, offset) {
217
- this.name = name;
218
- this.type = type;
219
- this.size = size;
220
- this.lastModified = last_modified;
221
- this.webkitRelativePath = "";
222
- this.#get_chunk = get_chunk;
223
- this.#offset = offset;
224
- this.arrayBuffer = this.arrayBuffer.bind(this);
225
- this.bytes = this.bytes.bind(this);
226
- this.slice = this.slice.bind(this);
227
- this.stream = this.stream.bind(this);
228
- this.text = this.text.bind(this);
229
- }
230
- /** @type {ArrayBuffer | undefined} */
231
- #buffer;
232
- async arrayBuffer() {
233
- this.#buffer ??= await new Response(this.stream()).arrayBuffer();
234
- return this.#buffer;
235
- }
236
- async bytes() {
237
- return new Uint8Array(await this.arrayBuffer());
238
- }
239
- /**
240
- * @param {number=} start
241
- * @param {number=} end
242
- * @param {string=} contentType
243
- */
244
- slice(start = 0, end = this.size, contentType = this.type) {
245
- if (start < 0) start = Math.max(this.size + start, 0);
246
- else start = Math.min(start, this.size);
247
- if (end < 0) end = Math.max(this.size + end, 0);
248
- else end = Math.min(end, this.size);
249
- const size = Math.max(end - start, 0);
250
- return new LazyFile(this.name, contentType, size, this.lastModified, this.#get_chunk, this.#offset + start);
251
- }
252
- stream() {
253
- let cursor = 0;
254
- let chunk_index = 0;
255
- return new ReadableStream({
256
- start: async (controller) => {
257
- let chunk_start = 0;
258
- /** @type {Uint8Array} */
259
- let start_chunk;
260
- for (chunk_index = 0;; chunk_index++) {
261
- const chunk = await this.#get_chunk(chunk_index);
262
- if (!chunk) return null;
263
- const chunk_end = chunk_start + chunk.byteLength;
264
- if (this.#offset >= chunk_start && this.#offset < chunk_end) {
265
- start_chunk = chunk;
266
- break;
267
- }
268
- chunk_start = chunk_end;
269
- }
270
- if (this.#offset + this.size <= chunk_start + start_chunk.byteLength) {
271
- controller.enqueue(start_chunk.subarray(this.#offset - chunk_start, this.#offset + this.size - chunk_start));
272
- controller.close();
273
- } else {
274
- controller.enqueue(start_chunk.subarray(this.#offset - chunk_start));
275
- cursor = start_chunk.byteLength - this.#offset + chunk_start;
276
- }
277
- },
278
- pull: async (controller) => {
279
- chunk_index++;
280
- let chunk = await this.#get_chunk(chunk_index);
281
- if (!chunk) {
282
- controller.error("incomplete file data");
283
- controller.close();
284
- return;
285
- }
286
- if (chunk.byteLength > this.size - cursor) chunk = chunk.subarray(0, this.size - cursor);
287
- controller.enqueue(chunk);
288
- cursor += chunk.byteLength;
289
- if (cursor >= this.size) controller.close();
290
- }
291
- });
292
- }
293
- async text() {
294
- return decoder.decode(await this.arrayBuffer());
295
- }
296
- };
297
- var path_regex = /^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;
298
- /**
299
- * @param {string} path
300
- */
301
- function split_path(path) {
302
- if (!path_regex.test(path)) throw new Error(`Invalid path ${path}`);
303
- return path.split(/\.|\[|\]/).filter(Boolean);
304
- }
305
- /**
306
- * Check if a property key is dangerous and could lead to prototype pollution
307
- * @param {string} key
308
- */
309
- function check_prototype_pollution(key) {
310
- if (key === "__proto__" || key === "constructor" || key === "prototype") throw new Error(`Invalid key "${key}"`);
311
- }
312
- /**
313
- * Sets a value in a nested object using an array of keys, mutating the original object.
314
- * @param {Record<string, any>} object
315
- * @param {string[]} keys
316
- * @param {any} value
317
- */
318
- function deep_set(object, keys, value) {
319
- let current = object;
320
- for (let i = 0; i < keys.length - 1; i += 1) {
321
- const key = keys[i];
322
- check_prototype_pollution(key);
323
- const is_array = /^\d+$/.test(keys[i + 1]);
324
- const inner = Object.hasOwn(current, key) ? current[key] : void 0;
325
- const exists = inner != null;
326
- if (exists && is_array !== Array.isArray(inner)) throw new Error(`Invalid array key ${keys[i + 1]}`);
327
- if (!exists) current[key] = is_array ? [] : {};
328
- current = current[key];
329
- }
330
- const final_key = keys[keys.length - 1];
331
- check_prototype_pollution(final_key);
332
- current[final_key] = value;
333
- }
334
- //#endregion
335
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/http.js
336
- /**
337
- * Given an Accept header and a list of possible content types, pick
338
- * the most suitable one to respond with
339
- * @param {string} accept
340
- * @param {string[]} types
341
- */
342
- function negotiate(accept, types) {
343
- /** @type {Array<{ type: string, subtype: string, q: number, i: number }>} */
344
- const parts = [];
345
- accept.split(",").forEach((str, i) => {
346
- const match = /([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(str);
347
- if (match) {
348
- const [, type, subtype, q = "1"] = match;
349
- parts.push({
350
- type,
351
- subtype,
352
- q: +q,
353
- i
354
- });
355
- }
356
- });
357
- parts.sort((a, b) => {
358
- if (a.q !== b.q) return b.q - a.q;
359
- if (a.subtype === "*" !== (b.subtype === "*")) return a.subtype === "*" ? 1 : -1;
360
- if (a.type === "*" !== (b.type === "*")) return a.type === "*" ? 1 : -1;
361
- return a.i - b.i;
362
- });
363
- let accepted;
364
- let min_priority = Infinity;
365
- for (const mimetype of types) {
366
- const [type, subtype] = mimetype.split("/");
367
- const priority = parts.findIndex((part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*"));
368
- if (priority !== -1 && priority < min_priority) {
369
- accepted = mimetype;
370
- min_priority = priority;
371
- }
372
- }
373
- return accepted;
374
- }
375
- /**
376
- * Returns `true` if the request contains a `content-type` header with the given type
377
- * @param {Request} request
378
- * @param {...string} types
379
- */
380
- function is_content_type(request, ...types) {
381
- const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? "";
382
- return types.includes(type.toLowerCase());
383
- }
384
- /**
385
- * @param {Request} request
386
- */
387
- function is_form_content_type(request) {
388
- return is_content_type(request, "application/x-www-form-urlencoded", "multipart/form-data", "text/plain", BINARY_FORM_CONTENT_TYPE);
389
- }
390
- //#endregion
391
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/misc.js
392
- var s = JSON.stringify;
393
- //#endregion
394
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/escape.js
395
- /**
396
- * When inside a double-quoted attribute value, only `&` and `"` hold special meaning.
397
- * @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state
398
- * @type {Record<string, string>}
399
- */
400
- var escape_html_attr_dict = {
401
- "&": "&amp;",
402
- "\"": "&quot;"
403
- };
404
- /**
405
- * @type {Record<string, string>}
406
- */
407
- var escape_html_dict = {
408
- "&": "&amp;",
409
- "<": "&lt;"
410
- };
411
- var escape_html_attr_regex = new RegExp(`[${Object.keys(escape_html_attr_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
412
- var escape_html_regex = new RegExp(`[${Object.keys(escape_html_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
413
- /**
414
- * Escapes unpaired surrogates (which are allowed in js strings but invalid in HTML) and
415
- * escapes characters that are special.
416
- *
417
- * @param {string} str
418
- * @param {boolean} [is_attr]
419
- * @returns {string} escaped string
420
- * @example const html = `<tag data-value="${escape_html('value', true)}">...</tag>`;
421
- */
422
- function escape_html(str, is_attr) {
423
- const dict = is_attr ? escape_html_attr_dict : escape_html_dict;
424
- return str.replace(is_attr ? escape_html_attr_regex : escape_html_regex, (match) => {
425
- if (match.length === 2) return match;
426
- return dict[match] ?? `&#${match.charCodeAt(0)};`;
427
- });
428
- }
429
- //#endregion
430
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/utils.js
431
- /** @import { ServerHooks } from 'types' */
432
- /**
433
- * @param {Partial<Record<import('types').HttpMethod, any>>} mod
434
- * @param {import('types').HttpMethod} method
435
- */
436
- function method_not_allowed(mod, method) {
437
- return text(`${method} method not allowed`, {
438
- status: 405,
439
- headers: { allow: allowed_methods(mod).join(", ") }
440
- });
441
- }
442
- /** @param {Partial<Record<import('types').HttpMethod, any>>} mod */
443
- function allowed_methods(mod) {
444
- const allowed = ENDPOINT_METHODS.filter((method) => method in mod);
445
- if ("GET" in mod && !("HEAD" in mod)) allowed.push("HEAD");
446
- return allowed;
447
- }
448
- /**
449
- * @param {import('types').SSROptions} options
450
- */
451
- function get_global_name(options) {
452
- return `__sveltekit_${options.version_hash}`;
453
- }
454
- /**
455
- * Return as a response that renders the error.html
456
- *
457
- * @param {import('types').SSROptions} options
458
- * @param {number} status
459
- * @param {string} message
460
- */
461
- function static_error_page(options, status, message) {
462
- return text(options.templates.error({
463
- status,
464
- message: escape_html(message)
465
- }), {
466
- headers: { "content-type": "text/html; charset=utf-8" },
467
- status
468
- });
469
- }
470
- /**
471
- * @param {import('@sveltejs/kit').RequestEvent} event
472
- * @param {import('types').RequestState} state
473
- * @param {import('types').SSROptions} options
474
- * @param {unknown} error
475
- */
476
- async function handle_fatal_error(event, state, options, error) {
477
- error = error instanceof HttpError ? error : coalesce_to_error(error);
478
- const status = get_status(error);
479
- const body = await handle_error_and_jsonify(event, state, options, error);
480
- const type = negotiate(event.request.headers.get("accept") || "text/html", ["application/json", "text/html"]);
481
- if (event.isDataRequest || type === "application/json") return json(body, { status });
482
- return static_error_page(options, status, body.message);
483
- }
484
- /**
485
- * @param {import('@sveltejs/kit').RequestEvent} event
486
- * @param {import('types').RequestState} state
487
- * @param {import('types').SSROptions} options
488
- * @param {any} error
489
- * @returns {Promise<App.Error>}
490
- */
491
- async function handle_error_and_jsonify(event, state, options, error) {
492
- if (error instanceof HttpError) return {
493
- message: "Unknown Error",
494
- ...error.body
495
- };
496
- const status = get_status(error);
497
- const message = get_message(error);
498
- return await with_request_store({
499
- event,
500
- state
501
- }, () => options.hooks.handleError({
502
- error,
503
- event,
504
- status,
505
- message
506
- })) ?? { message };
507
- }
508
- /**
509
- * @param {number} status
510
- * @param {string} location
511
- */
512
- function redirect_response(status, location) {
513
- return new Response(void 0, {
514
- status,
515
- headers: { location }
516
- });
517
- }
518
- /**
519
- * @param {import('@sveltejs/kit').RequestEvent} event
520
- * @param {Error & { path: string }} error
521
- */
522
- function clarify_devalue_error(event, error) {
523
- if (error.path) return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`;
524
- if (error.path === "") return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`;
525
- return error.message;
526
- }
527
- /**
528
- * @param {import('types').ServerDataNode} node
529
- */
530
- function serialize_uses(node) {
531
- const uses = {};
532
- if (node.uses && node.uses.dependencies.size > 0) uses.dependencies = Array.from(node.uses.dependencies);
533
- if (node.uses && node.uses.search_params.size > 0) uses.search_params = Array.from(node.uses.search_params);
534
- if (node.uses && node.uses.params.size > 0) uses.params = Array.from(node.uses.params);
535
- if (node.uses?.parent) uses.parent = 1;
536
- if (node.uses?.route) uses.route = 1;
537
- if (node.uses?.url) uses.url = 1;
538
- return uses;
539
- }
540
- /**
541
- * Returns `true` if the given path was prerendered
542
- * @param {import('@sveltejs/kit').SSRManifest} manifest
543
- * @param {string} pathname Should include the base and be decoded
544
- */
545
- function has_prerendered_path(manifest, pathname) {
546
- return manifest._.prerendered_routes.has(pathname) || pathname.at(-1) === "/" && manifest._.prerendered_routes.has(pathname.slice(0, -1));
547
- }
548
- /**
549
- * Formats the error into a nice message with sanitized stack trace
550
- * @param {number} status
551
- * @param {Error} error
552
- * @param {import('@sveltejs/kit').RequestEvent} event
553
- */
554
- function format_server_error(status, error, event) {
555
- const formatted_text = `\n\x1b[1;31m[${status}] ${event.request.method} ${event.url.pathname}\x1b[0m`;
556
- if (status === 404) return formatted_text;
557
- return `${formatted_text}\n${error.stack}`;
558
- }
559
- /**
560
- * Returns the filename without the extension. e.g., `+page.server`, `+page`, etc.
561
- * @param {string | undefined} node_id
562
- * @returns {string}
563
- */
564
- function get_node_type(node_id) {
565
- const filename = (node_id?.split("/"))?.at(-1);
566
- if (!filename) return "unknown";
567
- return filename.split(".").slice(0, -1).join(".");
568
- }
569
- /**
570
- * Creates a serialiser for non-arbitrary POJOs using the app's transport hook
571
- * @param {ServerHooks['transport']} transport
572
- * @returns {(thing: unknown) => string | undefined}
573
- */
574
- function create_replacer(transport) {
575
- /** @param {unknown} thing */
576
- const replacer = (thing) => {
577
- for (const key in transport) {
578
- const encoded = transport[key].encode(thing);
579
- if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
580
- }
581
- };
582
- return replacer;
583
- }
584
-
585
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/promise.js
586
- /** @see https://github.com/microsoft/TypeScript/blob/904e7dd97dc8da1352c8e05d70829dff17c73214/src/lib/es2024.promise.d.ts */
587
- /**
588
- * @template T
589
- * @typedef {{
590
- * promise: Promise<T>;
591
- * resolve: (value: T | PromiseLike<T>) => void;
592
- * reject: (reason?: any) => void;
593
- * }} PromiseWithResolvers<T>
594
- */
595
- /**
596
- * TODO: Whenever Node >21 is minimum supported version, we can use `Promise.withResolvers` to avoid this ceremony
597
- *
598
- * @template T
599
- * @returns {PromiseWithResolvers<T>}
600
- */
601
- function with_resolvers() {
602
- let resolve;
603
- let reject;
604
- return {
605
- promise: new Promise((res, rej) => {
606
- resolve = res;
607
- reject = rej;
608
- }),
609
- resolve,
610
- reject
611
- };
612
- }
613
- //#endregion
614
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/constants.js
615
- var NULL_BODY_STATUS = [
616
- 101,
617
- 103,
618
- 204,
619
- 205,
620
- 304
621
- ];
622
- var IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
623
- //#endregion
624
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js
625
- /**
626
- * @param {import('@sveltejs/kit').RequestEvent} event
627
- * @param {import('types').RequestState} event_state
628
- * @param {import('types').SSREndpoint} mod
629
- * @param {import('types').SSRState} state
630
- * @returns {Promise<Response>}
631
- */
632
- async function render_endpoint(event, event_state, mod, state) {
633
- const method = event.request.method;
634
- let handler = mod[method] || mod.fallback;
635
- if (method === "HEAD" && !mod.HEAD && mod.GET) handler = mod.GET;
636
- if (!handler) return method_not_allowed(mod, method);
637
- const prerender = mod.prerender ?? state.prerender_default;
638
- if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) throw new Error("Cannot prerender endpoints that have mutative methods");
639
- if (state.prerendering && !state.prerendering.inside_reroute && !prerender) if (state.depth > 0) throw new Error(`${event.route.id} is not prerenderable`);
640
- else return new Response(void 0, { status: 204 });
641
- try {
642
- const response = await with_request_store({
643
- event,
644
- state: event_state
645
- }, () => handler(event));
646
- if (!(response instanceof Response)) throw new Error(`Invalid response from route ${event.url.pathname}: handler should return a Response object`);
647
- if (state.prerendering && (!state.prerendering.inside_reroute || prerender)) {
648
- const cloned = new Response(response.clone().body, {
649
- status: response.status,
650
- statusText: response.statusText,
651
- headers: new Headers(response.headers)
652
- });
653
- cloned.headers.set("x-sveltekit-prerender", String(prerender));
654
- if (state.prerendering.inside_reroute && prerender) {
655
- cloned.headers.set("x-sveltekit-routeid", encodeURI(event.route.id));
656
- state.prerendering.dependencies.set(event.url.pathname, {
657
- response: cloned,
658
- body: null
659
- });
660
- } else return cloned;
661
- }
662
- return response;
663
- } catch (e) {
664
- if (e instanceof Redirect) return new Response(void 0, {
665
- status: e.status,
666
- headers: { location: e.location }
667
- });
668
- throw e;
669
- }
670
- }
671
- /**
672
- * @param {import('@sveltejs/kit').RequestEvent} event
673
- */
674
- function is_endpoint_request(event) {
675
- const { method, headers } = event.request;
676
- if (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) return true;
677
- if (method === "POST" && headers.get("x-sveltekit-action") === "true") return false;
678
- return negotiate(event.request.headers.get("accept") ?? "*/*", ["*", "text/html"]) !== "text/html";
679
- }
680
- //#endregion
681
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/telemetry/record_span.js
682
- /** @import { RecordSpan } from 'types' */
683
- /** @type {RecordSpan} */
684
- async function record_span({ name, attributes, fn }) {
685
- return fn(noop_span);
686
- }
687
- //#endregion
688
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js
689
- /** @import { RequestEvent, ActionResult, Actions } from '@sveltejs/kit' */
690
- /** @import { SSROptions, SSRNode, ServerNode, ServerHooks } from 'types' */
691
- /** @param {RequestEvent} event */
692
- function is_action_json_request(event) {
693
- return negotiate(event.request.headers.get("accept") ?? "*/*", ["application/json", "text/html"]) === "application/json" && event.request.method === "POST";
694
- }
695
- /**
696
- * @param {RequestEvent} event
697
- * @param {import('types').RequestState} event_state
698
- * @param {SSROptions} options
699
- * @param {SSRNode['server'] | undefined} server
700
- */
701
- async function handle_action_json_request(event, event_state, options, server) {
702
- const actions = server?.actions;
703
- if (!actions) {
704
- const no_actions_error = new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`);
705
- return action_json({
706
- type: "error",
707
- error: await handle_error_and_jsonify(event, event_state, options, no_actions_error)
708
- }, {
709
- status: no_actions_error.status,
710
- headers: { allow: "GET" }
711
- });
712
- }
713
- check_named_default_separate(actions);
714
- try {
715
- const data = await call_action(event, event_state, actions);
716
- if (data instanceof ActionFailure) return action_json({
717
- type: "failure",
718
- status: data.status,
719
- data: stringify_action_response(data.data, event.route.id, options.hooks.transport)
720
- });
721
- else return action_json({
722
- type: "success",
723
- status: data ? 200 : 204,
724
- data: stringify_action_response(data, event.route.id, options.hooks.transport)
725
- });
726
- } catch (e) {
727
- const err = normalize_error(e);
728
- if (err instanceof Redirect) return action_json_redirect(err);
729
- return action_json({
730
- type: "error",
731
- error: await handle_error_and_jsonify(event, event_state, options, check_incorrect_fail_use(err))
732
- }, { status: get_status(err) });
733
- }
734
- }
735
- /**
736
- * @param {HttpError | Error} error
737
- */
738
- function check_incorrect_fail_use(error) {
739
- return error instanceof ActionFailure ? /* @__PURE__ */ new Error("Cannot \"throw fail()\". Use \"return fail()\"") : error;
740
- }
741
- /**
742
- * @param {Redirect} redirect
743
- */
744
- function action_json_redirect(redirect) {
745
- return action_json({
746
- type: "redirect",
747
- status: redirect.status,
748
- location: redirect.location
749
- });
750
- }
751
- /**
752
- * @param {ActionResult} data
753
- * @param {ResponseInit} [init]
754
- */
755
- function action_json(data, init) {
756
- return json(data, init);
757
- }
758
- /**
759
- * @param {RequestEvent} event
760
- */
761
- function is_action_request(event) {
762
- return event.request.method === "POST";
763
- }
764
- /**
765
- * @param {RequestEvent} event
766
- * @param {import('types').RequestState} event_state
767
- * @param {SSRNode['server'] | undefined} server
768
- * @returns {Promise<ActionResult>}
769
- */
770
- async function handle_action_request(event, event_state, server) {
771
- const actions = server?.actions;
772
- if (!actions) {
773
- event.setHeaders({ allow: "GET" });
774
- return {
775
- type: "error",
776
- error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
777
- };
778
- }
779
- check_named_default_separate(actions);
780
- try {
781
- const data = await call_action(event, event_state, actions);
782
- if (data instanceof ActionFailure) return {
783
- type: "failure",
784
- status: data.status,
785
- data: data.data
786
- };
787
- else return {
788
- type: "success",
789
- status: 200,
790
- data
791
- };
792
- } catch (e) {
793
- const err = normalize_error(e);
794
- if (err instanceof Redirect) return {
795
- type: "redirect",
796
- status: err.status,
797
- location: err.location
798
- };
799
- return {
800
- type: "error",
801
- error: check_incorrect_fail_use(err)
802
- };
803
- }
804
- }
805
- /**
806
- * @param {Actions} actions
807
- */
808
- function check_named_default_separate(actions) {
809
- if (actions.default && Object.keys(actions).length > 1) throw new Error("When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#named-actions");
810
- }
811
- /**
812
- * @param {RequestEvent} event
813
- * @param {import('types').RequestState} event_state
814
- * @param {NonNullable<ServerNode['actions']>} actions
815
- * @throws {Redirect | HttpError | SvelteKitError | Error}
816
- */
817
- async function call_action(event, event_state, actions) {
818
- const url = new URL(event.request.url);
819
- let name = "default";
820
- for (const param of url.searchParams) if (param[0].startsWith("/")) {
821
- name = param[0].slice(1);
822
- if (name === "default") throw new Error("Cannot use reserved action name \"default\"");
823
- break;
824
- }
825
- const action = actions[name];
826
- if (!action) throw new SvelteKitError(404, "Not Found", `No action with name '${name}' found`);
827
- if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `Form actions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
828
- return record_span({
829
- name: "sveltekit.form_action",
830
- attributes: {
831
- "http.route": event.route.id || "unknown"
832
- },
833
- fn: async (current) => {
834
- const traced_event = merge_tracing(event, current);
835
- const result = await with_request_store({
836
- event: traced_event,
837
- state: event_state
838
- }, () => action(traced_event));
839
- if (result instanceof ActionFailure) current.setAttributes({
840
- "sveltekit.form_action.result.type": "failure",
841
- "sveltekit.form_action.result.status": result.status
842
- });
843
- return result;
844
- }
845
- });
846
- }
847
- /**
848
- * Try to `devalue.uneval` the data object, and if it fails, return a proper Error with context
849
- * @param {any} data
850
- * @param {string} route_id
851
- * @param {ServerHooks['transport']} transport
852
- */
853
- function uneval_action_response(data, route_id, transport) {
854
- const replacer = create_replacer(transport);
855
- return try_serialize(data, (value) => uneval(value, replacer), route_id);
856
- }
857
- /**
858
- * Try to `devalue.stringify` the data object, and if it fails, return a proper Error with context
859
- * @param {any} data
860
- * @param {string} route_id
861
- * @param {ServerHooks['transport']} transport
862
- */
863
- function stringify_action_response(data, route_id, transport) {
864
- const encoders = Object.fromEntries(Object.entries(transport).map(([key, value]) => [key, value.encode]));
865
- return try_serialize(data, (value) => stringify$1(value, encoders), route_id);
866
- }
867
- /**
868
- * @param {any} data
869
- * @param {(data: any) => string} fn
870
- * @param {string} route_id
871
- */
872
- function try_serialize(data, fn, route_id) {
873
- try {
874
- return fn(data);
875
- } catch (e) {
876
- const error = e;
877
- if (data instanceof Response) throw new Error(`Data returned from action inside ${route_id} is not serializable. Form actions need to return plain objects or fail(). E.g. return { success: true } or return fail(400, { message: "invalid" });`, { cause: e });
878
- if ("path" in error) {
879
- let message = `Data returned from action inside ${route_id} is not serializable: ${error.message}`;
880
- if (error.path !== "") message += ` (data.${error.path})`;
881
- throw new Error(message, { cause: e });
882
- }
883
- throw error;
884
- }
885
- }
886
- //#endregion
887
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/streaming.js
888
- /**
889
- * Create an async iterator and a function to push values into it
890
- * @template T
891
- * @returns {{
892
- * iterate: (transform?: (input: T) => T) => AsyncIterable<T>;
893
- * add: (promise: Promise<T>) => void;
894
- * }}
895
- */
896
- function create_async_iterator() {
897
- let resolved = -1;
898
- let returned = -1;
899
- /** @type {import('./promise.js').PromiseWithResolvers<T>[]} */
900
- const deferred = [];
901
- return {
902
- iterate: (transform = (x) => x) => {
903
- return { [Symbol.asyncIterator]() {
904
- return { next: async () => {
905
- const next = deferred[++returned];
906
- if (!next) return {
907
- value: null,
908
- done: true
909
- };
910
- return {
911
- value: transform(await next.promise),
912
- done: false
913
- };
914
- } };
915
- } };
916
- },
917
- add: (promise) => {
918
- deferred.push(with_resolvers());
919
- promise.then((value) => {
920
- deferred[++resolved].resolve(value);
921
- });
922
- }
923
- };
924
- }
925
- //#endregion
926
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/data_serializer.js
927
- /**
928
- * If the serialized data contains promises, `chunks` will be an
929
- * async iterable containing their resolutions
930
- * @param {import('@sveltejs/kit').RequestEvent} event
931
- * @param {import('types').RequestState} event_state
932
- * @param {import('types').SSROptions} options
933
- * @returns {import('./types.js').ServerDataSerializer}
934
- */
935
- function server_data_serializer(event, event_state, options) {
936
- let promise_id = 1;
937
- let max_nodes = -1;
938
- const iterator = create_async_iterator();
939
- const global = get_global_name(options);
940
- /** @param {number} index */
941
- function get_replacer(index) {
942
- /** @param {any} thing */
943
- return function replacer(thing) {
944
- if (typeof thing?.then === "function") {
945
- const id = promise_id++;
946
- const promise = thing.then(
947
- /** @param {any} data */
948
- (data) => ({ data })
949
- ).catch(
950
- /** @param {any} error */
951
- async (error) => ({ error: await handle_error_and_jsonify(event, event_state, options, error) })
952
- ).then(
953
- /**
954
- * @param {{data: any; error: any}} result
955
- */
956
- async ({ data, error }) => {
957
- let str;
958
- try {
959
- str = uneval(error ? [, error] : [data], replacer);
960
- } catch {
961
- error = await handle_error_and_jsonify(event, event_state, options, /* @__PURE__ */ new Error(`Failed to serialize promise while rendering ${event.route.id}`));
962
- str = uneval([, error], replacer);
963
- }
964
- return {
965
- index,
966
- str: `${global}.resolve(${id}, ${str.includes("app.decode") ? `(app) => ${str}` : `() => ${str}`})`
967
- };
968
- }
969
- );
970
- iterator.add(promise);
971
- return `${global}.defer(${id})`;
972
- } else for (const key in options.hooks.transport) {
973
- const encoded = options.hooks.transport[key].encode(thing);
974
- if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
975
- }
976
- };
977
- }
978
- const strings = [];
979
- return {
980
- set_max_nodes(i) {
981
- max_nodes = i;
982
- },
983
- add_node(i, node) {
984
- try {
985
- if (!node) {
986
- strings[i] = "null";
987
- return;
988
- }
989
- /** @type {any} */
990
- const payload = {
991
- type: "data",
992
- data: node.data,
993
- uses: serialize_uses(node)
994
- };
995
- if (node.slash) payload.slash = node.slash;
996
- strings[i] = uneval(payload, get_replacer(i));
997
- } catch (e) {
998
- e.path = e.path.slice(1);
999
- throw new Error(clarify_devalue_error(event, e), { cause: e });
1000
- }
1001
- },
1002
- get_data(csp) {
1003
- const open = `<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>`;
1004
- const close = `<\/script>\n`;
1005
- return {
1006
- data: `[${compact(max_nodes > -1 ? strings.slice(0, max_nodes) : strings).join(",")}]`,
1007
- chunks: promise_id > 1 ? iterator.iterate(({ index, str }) => {
1008
- if (max_nodes > -1 && index >= max_nodes) return "";
1009
- return open + str + close;
1010
- }) : null
1011
- };
1012
- }
1013
- };
1014
- }
1015
- /**
1016
- * If the serialized data contains promises, `chunks` will be an
1017
- * async iterable containing their resolutions
1018
- * @param {import('@sveltejs/kit').RequestEvent} event
1019
- * @param {import('types').RequestState} event_state
1020
- * @param {import('types').SSROptions} options
1021
- * @returns {import('./types.js').ServerDataSerializerJson}
1022
- */
1023
- function server_data_serializer_json(event, event_state, options) {
1024
- let promise_id = 1;
1025
- const iterator = create_async_iterator();
1026
- const reducers = {
1027
- ...Object.fromEntries(Object.entries(options.hooks.transport).map(([key, value]) => [key, value.encode])),
1028
- /** @param {any} thing */
1029
- Promise: (thing) => {
1030
- if (typeof thing?.then !== "function") return;
1031
- const id = promise_id++;
1032
- /** @type {'data' | 'error'} */
1033
- let key = "data";
1034
- const promise = thing.catch(
1035
- /** @param {any} e */
1036
- async (e) => {
1037
- key = "error";
1038
- return handle_error_and_jsonify(event, event_state, options, e);
1039
- }
1040
- ).then(
1041
- /** @param {any} value */
1042
- async (value) => {
1043
- let str;
1044
- try {
1045
- str = stringify$1(value, reducers);
1046
- } catch {
1047
- const error = await handle_error_and_jsonify(event, event_state, options, /* @__PURE__ */ new Error(`Failed to serialize promise while rendering ${event.route.id}`));
1048
- key = "error";
1049
- str = stringify$1(error, reducers);
1050
- }
1051
- return `{"type":"chunk","id":${id},"${key}":${str}}\n`;
1052
- }
1053
- );
1054
- iterator.add(promise);
1055
- return id;
1056
- }
1057
- };
1058
- const strings = [];
1059
- return {
1060
- add_node(i, node) {
1061
- try {
1062
- if (!node) {
1063
- strings[i] = "null";
1064
- return;
1065
- }
1066
- if (node.type === "error" || node.type === "skip") {
1067
- strings[i] = JSON.stringify(node);
1068
- return;
1069
- }
1070
- strings[i] = `{"type":"data","data":${stringify$1(node.data, reducers)},"uses":${JSON.stringify(serialize_uses(node))}${node.slash ? `,"slash":${JSON.stringify(node.slash)}` : ""}}`;
1071
- } catch (e) {
1072
- e.path = "data" + e.path;
1073
- throw new Error(clarify_devalue_error(event, e), { cause: e });
1074
- }
1075
- },
1076
- get_data() {
1077
- return {
1078
- data: `{"type":"data","nodes":[${strings.join(",")}]}\n`,
1079
- chunks: promise_id > 1 ? iterator.iterate() : null
1080
- };
1081
- }
1082
- };
1083
- }
1084
- //#endregion
1085
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js
1086
- /**
1087
- * Calls the user's server `load` function.
1088
- * @param {{
1089
- * event: import('@sveltejs/kit').RequestEvent;
1090
- * event_state: import('types').RequestState;
1091
- * state: import('types').SSRState;
1092
- * node: import('types').SSRNode | undefined;
1093
- * parent: () => Promise<Record<string, any>>;
1094
- * }} opts
1095
- * @returns {Promise<import('types').ServerDataNode | null>}
1096
- */
1097
- async function load_server_data({ event, event_state, state, node, parent }) {
1098
- if (!node?.server) return null;
1099
- let is_tracking = true;
1100
- const uses = {
1101
- dependencies: /* @__PURE__ */ new Set(),
1102
- params: /* @__PURE__ */ new Set(),
1103
- parent: false,
1104
- route: false,
1105
- url: false,
1106
- search_params: /* @__PURE__ */ new Set()
1107
- };
1108
- const load = node.server.load;
1109
- const slash = node.server.trailingSlash;
1110
- if (!load) return {
1111
- type: "data",
1112
- data: null,
1113
- uses,
1114
- slash
1115
- };
1116
- const url = make_trackable(event.url, () => {
1117
- if (is_tracking) uses.url = true;
1118
- }, (param) => {
1119
- if (is_tracking) uses.search_params.add(param);
1120
- });
1121
- if (state.prerendering) disable_search(url);
1122
- return {
1123
- type: "data",
1124
- data: await record_span({
1125
- name: "sveltekit.load",
1126
- attributes: {
1127
- "sveltekit.load.node_id": node.server_id || "unknown",
1128
- "sveltekit.load.node_type": get_node_type(node.server_id),
1129
- "http.route": event.route.id || "unknown"
1130
- },
1131
- fn: async (current) => {
1132
- const traced_event = merge_tracing(event, current);
1133
- return await with_request_store({
1134
- event: traced_event,
1135
- state: event_state
1136
- }, () => load.call(null, {
1137
- ...traced_event,
1138
- fetch: (info, init) => {
1139
- new URL(info instanceof Request ? info.url : info, event.url);
1140
- return event.fetch(info, init);
1141
- },
1142
- /** @param {string[]} deps */
1143
- depends: (...deps) => {
1144
- for (const dep of deps) {
1145
- const { href } = new URL(dep, event.url);
1146
- uses.dependencies.add(href);
1147
- }
1148
- },
1149
- params: new Proxy(event.params, { get: (target, key) => {
1150
- if (is_tracking) uses.params.add(key);
1151
- return target[key];
1152
- } }),
1153
- parent: async () => {
1154
- if (is_tracking) uses.parent = true;
1155
- return parent();
1156
- },
1157
- route: new Proxy(event.route, { get: (target, key) => {
1158
- if (is_tracking) uses.route = true;
1159
- return target[key];
1160
- } }),
1161
- url,
1162
- untrack(fn) {
1163
- is_tracking = false;
1164
- try {
1165
- return fn();
1166
- } finally {
1167
- is_tracking = true;
1168
- }
1169
- }
1170
- }));
1171
- }
1172
- }) ?? null,
1173
- uses,
1174
- slash
1175
- };
1176
- }
1177
- /**
1178
- * Calls the user's `load` function.
1179
- * @param {{
1180
- * event: import('@sveltejs/kit').RequestEvent;
1181
- * event_state: import('types').RequestState;
1182
- * fetched: import('./types.js').Fetched[];
1183
- * node: import('types').SSRNode | undefined;
1184
- * parent: () => Promise<Record<string, any>>;
1185
- * resolve_opts: import('types').RequiredResolveOptions;
1186
- * server_data_promise: Promise<import('types').ServerDataNode | null>;
1187
- * state: import('types').SSRState;
1188
- * csr: boolean;
1189
- * }} opts
1190
- * @returns {Promise<Record<string, any | Promise<any>> | null>}
1191
- */
1192
- async function load_data({ event, event_state, fetched, node, parent, server_data_promise, state, resolve_opts, csr }) {
1193
- const server_data_node = await server_data_promise;
1194
- const load = node?.universal?.load;
1195
- if (!load) return server_data_node?.data ?? null;
1196
- return await record_span({
1197
- name: "sveltekit.load",
1198
- attributes: {
1199
- "sveltekit.load.node_id": node.universal_id || "unknown",
1200
- "sveltekit.load.node_type": get_node_type(node.universal_id),
1201
- "http.route": event.route.id || "unknown"
1202
- },
1203
- fn: async (current) => {
1204
- const traced_event = merge_tracing(event, current);
1205
- return await with_request_store({
1206
- event: traced_event,
1207
- state: {
1208
- ...event_state,
1209
- is_in_universal_load: true
1210
- }
1211
- }, () => load.call(null, {
1212
- url: event.url,
1213
- params: event.params,
1214
- data: server_data_node?.data ?? null,
1215
- route: event.route,
1216
- fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts),
1217
- setHeaders: event.setHeaders,
1218
- depends: noop,
1219
- parent,
1220
- untrack: (fn) => fn(),
1221
- tracing: traced_event.tracing
1222
- }));
1223
- }
1224
- }) ?? null;
1225
- }
1226
- /**
1227
- * @param {Pick<import('@sveltejs/kit').RequestEvent, 'fetch' | 'url' | 'request' | 'route'>} event
1228
- * @param {import('types').SSRState} state
1229
- * @param {import('./types.js').Fetched[]} fetched
1230
- * @param {boolean} csr
1231
- * @param {Pick<Required<import('@sveltejs/kit').ResolveOptions>, 'filterSerializedResponseHeaders'>} resolve_opts
1232
- * @returns {typeof fetch}
1233
- */
1234
- function create_universal_fetch(event, state, fetched, csr, resolve_opts) {
1235
- /**
1236
- * @param {URL | RequestInfo} input
1237
- * @param {RequestInit} [init]
1238
- */
1239
- const universal_fetch = async (input, init) => {
1240
- const cloned_body = input instanceof Request && input.body ? input.clone().body : null;
1241
- const cloned_headers = input instanceof Request && [...input.headers].length ? new Headers(input.headers) : init?.headers;
1242
- let response = await event.fetch(input, init);
1243
- const url = new URL(input instanceof Request ? input.url : input, event.url);
1244
- const same_origin = url.origin === event.url.origin;
1245
- /** @type {import('types').PrerenderDependency} */
1246
- let dependency;
1247
- if (same_origin) {
1248
- if (state.prerendering) {
1249
- dependency = {
1250
- response,
1251
- body: null
1252
- };
1253
- state.prerendering.dependencies.set(url.pathname, dependency);
1254
- }
1255
- } else if (url.protocol === "https:" || url.protocol === "http:") if ((input instanceof Request ? input.mode : init?.mode ?? "cors") === "no-cors") response = new Response("", {
1256
- status: response.status,
1257
- statusText: response.statusText,
1258
- headers: response.headers
1259
- });
1260
- else {
1261
- const acao = response.headers.get("access-control-allow-origin");
1262
- if (!acao || acao !== event.url.origin && acao !== "*") throw new Error(`CORS error: ${acao ? "Incorrect" : "No"} 'Access-Control-Allow-Origin' header is present on the requested resource`);
1263
- }
1264
- /** @type {ReadableStream<Uint8Array>} */
1265
- let teed_body;
1266
- const proxy = new Proxy(response, { get(response, key, receiver) {
1267
- /**
1268
- * @param {string | undefined} body
1269
- * @param {boolean} is_b64
1270
- */
1271
- async function push_fetched(body, is_b64) {
1272
- const status_number = Number(response.status);
1273
- if (isNaN(status_number)) throw new Error(`response.status is not a number. value: "${response.status}" type: ${typeof response.status}`);
1274
- fetched.push({
1275
- url: same_origin ? url.href.slice(event.url.origin.length) : url.href,
1276
- method: event.request.method,
1277
- request_body: input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init?.body,
1278
- request_headers: cloned_headers,
1279
- response_body: body,
1280
- response,
1281
- is_b64
1282
- });
1283
- }
1284
- if (key === "body") {
1285
- if (response.body === null) return null;
1286
- if (teed_body) return teed_body;
1287
- const [a, b] = response.body.tee();
1288
- (async () => {
1289
- let result = new Uint8Array();
1290
- for await (const chunk of a) {
1291
- const combined = new Uint8Array(result.length + chunk.length);
1292
- combined.set(result, 0);
1293
- combined.set(chunk, result.length);
1294
- result = combined;
1295
- }
1296
- if (dependency) dependency.body = new Uint8Array(result);
1297
- push_fetched(base64_encode(result), true);
1298
- })();
1299
- return teed_body = b;
1300
- }
1301
- if (key === "arrayBuffer") return async () => {
1302
- const buffer = await response.arrayBuffer();
1303
- const bytes = new Uint8Array(buffer);
1304
- if (dependency) dependency.body = bytes;
1305
- if (buffer instanceof ArrayBuffer) await push_fetched(base64_encode(bytes), true);
1306
- return buffer;
1307
- };
1308
- async function text() {
1309
- const body = await response.text();
1310
- if (body === "" && NULL_BODY_STATUS.includes(response.status)) {
1311
- await push_fetched(void 0, false);
1312
- return;
1313
- }
1314
- if (!body || typeof body === "string") await push_fetched(body, false);
1315
- if (dependency) dependency.body = body;
1316
- return body;
1317
- }
1318
- if (key === "text") return text;
1319
- if (key === "json") return async () => {
1320
- const body = await text();
1321
- return body ? JSON.parse(body) : void 0;
1322
- };
1323
- const value = Reflect.get(response, key, response);
1324
- if (value instanceof Function) return Object.defineProperties(
1325
- /**
1326
- * @this {any}
1327
- */
1328
- function() {
1329
- return Reflect.apply(value, this === receiver ? response : this, arguments);
1330
- },
1331
- {
1332
- name: { value: value.name },
1333
- length: { value: value.length }
1334
- }
1335
- );
1336
- return value;
1337
- } });
1338
- if (csr) {
1339
- const get = response.headers.get;
1340
- response.headers.get = (key) => {
1341
- const lower = key.toLowerCase();
1342
- const value = get.call(response.headers, lower);
1343
- if (value && !lower.startsWith("x-sveltekit-")) {
1344
- if (!resolve_opts.filterSerializedResponseHeaders(lower, value)) throw new Error(`Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://svelte.dev/docs/kit/hooks#Server-hooks-handle (at ${event.route.id})`);
1345
- }
1346
- return value;
1347
- };
1348
- }
1349
- return proxy;
1350
- };
1351
- return (input, init) => {
1352
- const response = universal_fetch(input, init);
1353
- response.catch(noop);
1354
- return response;
1355
- };
1356
- }
1357
- /**
1358
- * @param {ReadableStream<Uint8Array>} stream
1359
- */
1360
- async function stream_to_string(stream) {
1361
- let result = "";
1362
- const reader = stream.getReader();
1363
- const decoder = new TextDecoder();
1364
- while (true) {
1365
- const { done, value } = await reader.read();
1366
- if (done) {
1367
- result += decoder.decode();
1368
- break;
1369
- }
1370
- result += decoder.decode(value, { stream: true });
1371
- }
1372
- return result;
1373
- }
1374
- //#endregion
1375
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/serialize_data.js
1376
- /**
1377
- * Inside a script element, only `<\/script` and `<!--` hold special meaning to the HTML parser.
1378
- *
1379
- * The first closes the script element, so everything after is treated as raw HTML.
1380
- * The second disables further parsing until `-->`, so the script element might be unexpectedly
1381
- * kept open up until an unrelated HTML comment in the page.
1382
- *
1383
- * U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR are escaped for the sake of pre-2018
1384
- * browsers.
1385
- *
1386
- * @see tests for unsafe parsing examples.
1387
- * @see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements
1388
- * @see https://html.spec.whatwg.org/multipage/syntax.html#cdata-rcdata-restrictions
1389
- * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-state
1390
- * @see https://html.spec.whatwg.org/multipage/parsing.html#script-data-double-escaped-state
1391
- * @see https://github.com/tc39/proposal-json-superset
1392
- * @type {Record<string, string>}
1393
- */
1394
- var replacements = {
1395
- "<": "\\u003C",
1396
- "\u2028": "\\u2028",
1397
- "\u2029": "\\u2029"
1398
- };
1399
- var pattern = new RegExp(`[${Object.keys(replacements).join("")}]`, "g");
1400
- /**
1401
- * Generates a raw HTML string containing a safe script element carrying data and associated attributes.
1402
- *
1403
- * It escapes all the special characters needed to guarantee the element is unbroken, but care must
1404
- * be taken to ensure it is inserted in the document at an acceptable position for a script element,
1405
- * and that the resulting string isn't further modified.
1406
- *
1407
- * @param {import('./types.js').Fetched} fetched
1408
- * @param {(name: string, value: string) => boolean} filter
1409
- * @param {boolean} [prerendering]
1410
- * @returns {string} The raw HTML of a script element carrying the JSON payload.
1411
- * @example const html = serialize_data('/data.json', null, { foo: 'bar' });
1412
- */
1413
- function serialize_data(fetched, filter, prerendering = false) {
1414
- /** @type {Record<string, string>} */
1415
- const headers = {};
1416
- let cache_control = null;
1417
- let age = null;
1418
- let varyAny = false;
1419
- for (const [key, value] of fetched.response.headers) {
1420
- if (filter(key, value)) headers[key] = value;
1421
- if (key === "cache-control") cache_control = value;
1422
- else if (key === "age") age = value;
1423
- else if (key === "vary" && value.trim() === "*") varyAny = true;
1424
- }
1425
- const payload = {
1426
- status: fetched.response.status,
1427
- statusText: fetched.response.statusText,
1428
- headers,
1429
- body: fetched.response_body
1430
- };
1431
- const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]);
1432
- const attrs = [
1433
- "type=\"application/json\"",
1434
- "data-sveltekit-fetched",
1435
- `data-url="${escape_html(fetched.url, true)}"`
1436
- ];
1437
- if (fetched.is_b64) attrs.push("data-b64");
1438
- if (fetched.request_headers || fetched.request_body) {
1439
- /** @type {import('types').StrictBody[]} */
1440
- const values = [];
1441
- if (fetched.request_headers) values.push([...new Headers(fetched.request_headers)].join(","));
1442
- if (fetched.request_body) values.push(fetched.request_body);
1443
- attrs.push(`data-hash="${hash(...values)}"`);
1444
- }
1445
- if (!prerendering && fetched.method === "GET" && cache_control && !varyAny) {
1446
- const match = /s-maxage=(\d+)/g.exec(cache_control) ?? /max-age=(\d+)/g.exec(cache_control);
1447
- if (match) {
1448
- const ttl = +match[1] - +(age ?? "0");
1449
- attrs.push(`data-ttl="${ttl}"`);
1450
- }
1451
- }
1452
- return `<script ${attrs.join(" ")}>${safe_payload}<\/script>`;
1453
- }
1454
- //#endregion
1455
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/crypto.js
1456
- /**
1457
- * SHA-256 hashing function adapted from https://bitwiseshiftleft.github.io/sjcl
1458
- * modified and redistributed under BSD license
1459
- * @param {string} data
1460
- */
1461
- function sha256(data) {
1462
- if (!key[0]) precompute();
1463
- const out = init.slice(0);
1464
- const array = encode(data);
1465
- for (let i = 0; i < array.length; i += 16) {
1466
- const w = array.subarray(i, i + 16);
1467
- let tmp;
1468
- let a;
1469
- let b;
1470
- let out0 = out[0];
1471
- let out1 = out[1];
1472
- let out2 = out[2];
1473
- let out3 = out[3];
1474
- let out4 = out[4];
1475
- let out5 = out[5];
1476
- let out6 = out[6];
1477
- let out7 = out[7];
1478
- for (let i = 0; i < 64; i++) {
1479
- if (i < 16) tmp = w[i];
1480
- else {
1481
- a = w[i + 1 & 15];
1482
- b = w[i + 14 & 15];
1483
- tmp = w[i & 15] = (a >>> 7 ^ a >>> 18 ^ a >>> 3 ^ a << 25 ^ a << 14) + (b >>> 17 ^ b >>> 19 ^ b >>> 10 ^ b << 15 ^ b << 13) + w[i & 15] + w[i + 9 & 15] | 0;
1484
- }
1485
- tmp = tmp + out7 + (out4 >>> 6 ^ out4 >>> 11 ^ out4 >>> 25 ^ out4 << 26 ^ out4 << 21 ^ out4 << 7) + (out6 ^ out4 & (out5 ^ out6)) + key[i];
1486
- out7 = out6;
1487
- out6 = out5;
1488
- out5 = out4;
1489
- out4 = out3 + tmp | 0;
1490
- out3 = out2;
1491
- out2 = out1;
1492
- out1 = out0;
1493
- out0 = tmp + (out1 & out2 ^ out3 & (out1 ^ out2)) + (out1 >>> 2 ^ out1 >>> 13 ^ out1 >>> 22 ^ out1 << 30 ^ out1 << 19 ^ out1 << 10) | 0;
1494
- }
1495
- out[0] = out[0] + out0 | 0;
1496
- out[1] = out[1] + out1 | 0;
1497
- out[2] = out[2] + out2 | 0;
1498
- out[3] = out[3] + out3 | 0;
1499
- out[4] = out[4] + out4 | 0;
1500
- out[5] = out[5] + out5 | 0;
1501
- out[6] = out[6] + out6 | 0;
1502
- out[7] = out[7] + out7 | 0;
1503
- }
1504
- const bytes = new Uint8Array(out.buffer);
1505
- reverse_endianness(bytes);
1506
- return btoa(String.fromCharCode(...bytes));
1507
- }
1508
- /** The SHA-256 initialization vector */
1509
- var init = new Uint32Array(8);
1510
- /** The SHA-256 hash key */
1511
- var key = new Uint32Array(64);
1512
- /** Function to precompute init and key. */
1513
- function precompute() {
1514
- /** @param {number} x */
1515
- function frac(x) {
1516
- return (x - Math.floor(x)) * 4294967296;
1517
- }
1518
- let prime = 2;
1519
- for (let i = 0; i < 64; prime++) {
1520
- let is_prime = true;
1521
- for (let factor = 2; factor * factor <= prime; factor++) if (prime % factor === 0) {
1522
- is_prime = false;
1523
- break;
1524
- }
1525
- if (is_prime) {
1526
- if (i < 8) init[i] = frac(prime ** (1 / 2));
1527
- key[i] = frac(prime ** (1 / 3));
1528
- i++;
1529
- }
1530
- }
1531
- }
1532
- /** @param {Uint8Array} bytes */
1533
- function reverse_endianness(bytes) {
1534
- for (let i = 0; i < bytes.length; i += 4) {
1535
- const a = bytes[i + 0];
1536
- const b = bytes[i + 1];
1537
- const c = bytes[i + 2];
1538
- const d = bytes[i + 3];
1539
- bytes[i + 0] = d;
1540
- bytes[i + 1] = c;
1541
- bytes[i + 2] = b;
1542
- bytes[i + 3] = a;
1543
- }
1544
- }
1545
- /** @param {string} str */
1546
- function encode(str) {
1547
- const encoded = text_encoder.encode(str);
1548
- const length = encoded.length * 8;
1549
- const size = 512 * Math.ceil((length + 65) / 512);
1550
- const bytes = new Uint8Array(size / 8);
1551
- bytes.set(encoded);
1552
- bytes[encoded.length] = 128;
1553
- reverse_endianness(bytes);
1554
- const words = new Uint32Array(bytes.buffer);
1555
- words[words.length - 2] = Math.floor(length / 4294967296);
1556
- words[words.length - 1] = length;
1557
- return words;
1558
- }
1559
- //#endregion
1560
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/csp.js
1561
- var array = new Uint8Array(16);
1562
- function generate_nonce() {
1563
- crypto.getRandomValues(array);
1564
- return btoa(String.fromCharCode(...array));
1565
- }
1566
- var quoted = new Set([
1567
- "self",
1568
- "unsafe-eval",
1569
- "unsafe-hashes",
1570
- "unsafe-inline",
1571
- "none",
1572
- "strict-dynamic",
1573
- "report-sample",
1574
- "wasm-unsafe-eval",
1575
- "script"
1576
- ]);
1577
- var crypto_pattern = /^(nonce|sha\d\d\d)-/;
1578
- var BaseProvider = class {
1579
- /** @type {boolean} */
1580
- #use_hashes;
1581
- /** @type {boolean} */
1582
- #script_needs_csp;
1583
- /** @type {boolean} */
1584
- #script_src_needs_csp;
1585
- /** @type {boolean} */
1586
- #script_src_elem_needs_csp;
1587
- /** @type {boolean} */
1588
- #style_needs_csp;
1589
- /** @type {boolean} */
1590
- #style_src_needs_csp;
1591
- /** @type {boolean} */
1592
- #style_src_attr_needs_csp;
1593
- /** @type {boolean} */
1594
- #style_src_elem_needs_csp;
1595
- /** @type {import('types').CspDirectives} */
1596
- #directives;
1597
- /** @type {Set<import('types').Csp.Source>} */
1598
- #script_src;
1599
- /** @type {Set<import('types').Csp.Source>} */
1600
- #script_src_elem;
1601
- /** @type {Set<import('types').Csp.Source>} */
1602
- #style_src;
1603
- /** @type {Set<import('types').Csp.Source>} */
1604
- #style_src_attr;
1605
- /** @type {Set<import('types').Csp.Source>} */
1606
- #style_src_elem;
1607
- /** @type {boolean} */
1608
- script_needs_nonce;
1609
- /** @type {boolean} */
1610
- style_needs_nonce;
1611
- /** @type {boolean} */
1612
- script_needs_hash;
1613
- /** @type {string} */
1614
- #nonce;
1615
- /**
1616
- * @param {boolean} use_hashes
1617
- * @param {import('types').CspDirectives} directives
1618
- * @param {string} nonce
1619
- */
1620
- constructor(use_hashes, directives, nonce) {
1621
- this.#use_hashes = use_hashes;
1622
- this.#directives = directives;
1623
- const d = this.#directives;
1624
- this.#script_src = /* @__PURE__ */ new Set();
1625
- this.#script_src_elem = /* @__PURE__ */ new Set();
1626
- this.#style_src = /* @__PURE__ */ new Set();
1627
- this.#style_src_attr = /* @__PURE__ */ new Set();
1628
- this.#style_src_elem = /* @__PURE__ */ new Set();
1629
- const effective_script_src = d["script-src"] || d["default-src"];
1630
- const script_src_elem = d["script-src-elem"];
1631
- const effective_style_src = d["style-src"] || d["default-src"];
1632
- const style_src_attr = d["style-src-attr"];
1633
- const style_src_elem = d["style-src-elem"];
1634
- /** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */
1635
- const style_needs_csp = (directive) => !!directive && !directive.some((value) => value === "unsafe-inline");
1636
- /** @param {(import('types').Csp.Source | import('types').Csp.ActionSource)[] | undefined} directive */
1637
- const script_needs_csp = (directive) => !!directive && (!directive.some((value) => value === "unsafe-inline") || directive.some((value) => value === "strict-dynamic"));
1638
- this.#script_src_needs_csp = script_needs_csp(effective_script_src);
1639
- this.#script_src_elem_needs_csp = script_needs_csp(script_src_elem);
1640
- this.#style_src_needs_csp = style_needs_csp(effective_style_src);
1641
- this.#style_src_attr_needs_csp = style_needs_csp(style_src_attr);
1642
- this.#style_src_elem_needs_csp = style_needs_csp(style_src_elem);
1643
- this.#script_needs_csp = this.#script_src_needs_csp || this.#script_src_elem_needs_csp;
1644
- this.#style_needs_csp = this.#style_src_needs_csp || this.#style_src_attr_needs_csp || this.#style_src_elem_needs_csp;
1645
- this.script_needs_nonce = this.#script_needs_csp && !this.#use_hashes;
1646
- this.style_needs_nonce = this.#style_needs_csp && !this.#use_hashes;
1647
- this.script_needs_hash = this.#script_needs_csp && this.#use_hashes;
1648
- this.#nonce = nonce;
1649
- }
1650
- /** @param {string} content */
1651
- add_script(content) {
1652
- if (!this.#script_needs_csp) return;
1653
- /** @type {`nonce-${string}` | `sha256-${string}`} */
1654
- const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
1655
- if (this.#script_src_needs_csp) this.#script_src.add(source);
1656
- if (this.#script_src_elem_needs_csp) this.#script_src_elem.add(source);
1657
- }
1658
- /** @param {`sha256-${string}`[]} hashes */
1659
- add_script_hashes(hashes) {
1660
- for (const hash of hashes) {
1661
- if (this.#script_src_needs_csp) this.#script_src.add(hash);
1662
- if (this.#script_src_elem_needs_csp) this.#script_src_elem.add(hash);
1663
- }
1664
- }
1665
- /** @param {string} content */
1666
- add_style(content) {
1667
- if (!this.#style_needs_csp) return;
1668
- /** @type {`nonce-${string}` | `sha256-${string}`} */
1669
- const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
1670
- if (this.#style_src_needs_csp) this.#style_src.add(source);
1671
- if (this.#style_src_attr_needs_csp) this.#style_src_attr.add(source);
1672
- if (this.#style_src_elem_needs_csp) {
1673
- const sha256_empty_comment_hash = "sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=";
1674
- const d = this.#directives;
1675
- if (d["style-src-elem"] && !d["style-src-elem"].includes(sha256_empty_comment_hash) && !this.#style_src_elem.has(sha256_empty_comment_hash)) this.#style_src_elem.add(sha256_empty_comment_hash);
1676
- if (source !== sha256_empty_comment_hash) this.#style_src_elem.add(source);
1677
- }
1678
- }
1679
- /**
1680
- * @param {boolean} [is_meta]
1681
- */
1682
- get_header(is_meta = false) {
1683
- const header = [];
1684
- const directives = { ...this.#directives };
1685
- if (this.#style_src.size > 0) directives["style-src"] = [...directives["style-src"] || directives["default-src"] || [], ...this.#style_src];
1686
- if (this.#style_src_attr.size > 0) directives["style-src-attr"] = [...directives["style-src-attr"] || [], ...this.#style_src_attr];
1687
- if (this.#style_src_elem.size > 0) directives["style-src-elem"] = [...directives["style-src-elem"] || [], ...this.#style_src_elem];
1688
- if (this.#script_src.size > 0) directives["script-src"] = [...directives["script-src"] || directives["default-src"] || [], ...this.#script_src];
1689
- if (this.#script_src_elem.size > 0) directives["script-src-elem"] = [...directives["script-src-elem"] || [], ...this.#script_src_elem];
1690
- for (const key in directives) {
1691
- if (is_meta && (key === "frame-ancestors" || key === "report-uri" || key === "sandbox")) continue;
1692
- const value = directives[key];
1693
- if (!value) continue;
1694
- const directive = [key];
1695
- if (Array.isArray(value)) value.forEach((value) => {
1696
- if (quoted.has(value) || crypto_pattern.test(value)) directive.push(`'${value}'`);
1697
- else directive.push(value);
1698
- });
1699
- header.push(directive.join(" "));
1700
- }
1701
- return header.join("; ");
1702
- }
1703
- };
1704
- var CspProvider = class extends BaseProvider {
1705
- get_meta() {
1706
- const content = this.get_header(true);
1707
- if (!content) return;
1708
- return `<meta http-equiv="content-security-policy" content="${escape_html(content, true)}">`;
1709
- }
1710
- };
1711
- var CspReportOnlyProvider = class extends BaseProvider {
1712
- /**
1713
- * @param {boolean} use_hashes
1714
- * @param {import('types').CspDirectives} directives
1715
- * @param {string} nonce
1716
- */
1717
- constructor(use_hashes, directives, nonce) {
1718
- super(use_hashes, directives, nonce);
1719
- if (Object.values(directives).filter((v) => !!v).length > 0) {
1720
- const has_report_to = directives["report-to"]?.length ?? false;
1721
- const has_report_uri = directives["report-uri"]?.length ?? false;
1722
- if (!has_report_to && !has_report_uri) throw Error("`content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both");
1723
- }
1724
- }
1725
- };
1726
- var Csp = class {
1727
- /** @readonly */
1728
- nonce = generate_nonce();
1729
- /** @type {CspProvider} */
1730
- csp_provider;
1731
- /** @type {CspReportOnlyProvider} */
1732
- report_only_provider;
1733
- /**
1734
- * @param {import('./types.js').CspConfig} config
1735
- * @param {import('./types.js').CspOpts} opts
1736
- */
1737
- constructor({ mode, directives, reportOnly }, { prerender }) {
1738
- const use_hashes = mode === "hash" || mode === "auto" && prerender;
1739
- this.csp_provider = new CspProvider(use_hashes, directives, this.nonce);
1740
- this.report_only_provider = new CspReportOnlyProvider(use_hashes, reportOnly, this.nonce);
1741
- }
1742
- get script_needs_hash() {
1743
- return this.csp_provider.script_needs_hash || this.report_only_provider.script_needs_hash;
1744
- }
1745
- get script_needs_nonce() {
1746
- return this.csp_provider.script_needs_nonce || this.report_only_provider.script_needs_nonce;
1747
- }
1748
- get style_needs_nonce() {
1749
- return this.csp_provider.style_needs_nonce || this.report_only_provider.style_needs_nonce;
1750
- }
1751
- /** @param {string} content */
1752
- add_script(content) {
1753
- this.csp_provider.add_script(content);
1754
- this.report_only_provider.add_script(content);
1755
- }
1756
- /** @param {`sha256-${string}`[]} hashes */
1757
- add_script_hashes(hashes) {
1758
- this.csp_provider.add_script_hashes(hashes);
1759
- this.report_only_provider.add_script_hashes(hashes);
1760
- }
1761
- /** @param {string} content */
1762
- add_style(content) {
1763
- this.csp_provider.add_style(content);
1764
- this.report_only_provider.add_style(content);
1765
- }
1766
- };
1767
- //#endregion
1768
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/server_routing.js
1769
- /**
1770
- * @param {import('types').SSRClientRoute} route
1771
- * @param {URL} url
1772
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1773
- * @returns {string}
1774
- */
1775
- function generate_route_object(route, url, manifest) {
1776
- const { errors, layouts, leaf } = route;
1777
- const nodes = [
1778
- ...errors,
1779
- ...layouts.map((l) => l?.[1]),
1780
- leaf[1]
1781
- ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(manifest._.client.nodes?.[n], url)}`).join(",\n ");
1782
- /** @type {import('types').CSRRouteServer} */
1783
- return [
1784
- `{\n\tid: ${s(route.id)}`,
1785
- `errors: ${s(route.errors)}`,
1786
- `layouts: ${s(route.layouts)}`,
1787
- `leaf: ${s(route.leaf)}`,
1788
- `nodes: {\n\t\t${nodes}\n\t}\n}`
1789
- ].join(",\n ");
1790
- }
1791
- /**
1792
- * @param {string | undefined} import_path
1793
- * @param {URL} url
1794
- */
1795
- function create_client_import(import_path, url) {
1796
- if (!import_path) return "Promise.resolve({})";
1797
- if (import_path[0] === "/") return `import('${import_path}')`;
1798
- if (assets !== "") return `import('${assets}/${import_path}')`;
1799
- let path = get_relative_path(url.pathname, `${base}/${import_path}`);
1800
- if (path[0] !== ".") path = `./${path}`;
1801
- return `import('${path}')`;
1802
- }
1803
- /**
1804
- * @param {string} resolved_path
1805
- * @param {URL} url
1806
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1807
- * @returns {Promise<Response>}
1808
- */
1809
- async function resolve_route(resolved_path, url, manifest) {
1810
- if (!manifest._.client.routes) return text("Server-side route resolution disabled", { status: 400 });
1811
- const matchers = await manifest._.matchers();
1812
- const result = find_route(resolved_path, manifest._.client.routes, matchers);
1813
- return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest).response;
1814
- }
1815
- /**
1816
- * @param {import('types').SSRClientRoute | null} route
1817
- * @param {Partial<Record<string, string>>} params
1818
- * @param {URL} url
1819
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1820
- * @returns {{response: Response, body: string}}
1821
- */
1822
- function create_server_routing_response(route, params, url, manifest) {
1823
- const headers = new Headers({ "content-type": "application/javascript; charset=utf-8" });
1824
- if (route) {
1825
- const csr_route = generate_route_object(route, url, manifest);
1826
- const body = `${create_css_import(route, url, manifest)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1827
- return {
1828
- response: text(body, { headers }),
1829
- body
1830
- };
1831
- } else return {
1832
- response: text("", { headers }),
1833
- body: ""
1834
- };
1835
- }
1836
- /**
1837
- * This function generates the client-side import for the CSS files that are
1838
- * associated with the current route. Vite takes care of that when using
1839
- * client-side route resolution, but for server-side resolution it does
1840
- * not know about the CSS files automatically.
1841
- *
1842
- * @param {import('types').SSRClientRoute} route
1843
- * @param {URL} url
1844
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1845
- * @returns {string}
1846
- */
1847
- function create_css_import(route, url, manifest) {
1848
- const { errors, layouts, leaf } = route;
1849
- let css = "";
1850
- for (const node of [
1851
- ...errors,
1852
- ...layouts.map((l) => l?.[1]),
1853
- leaf[1]
1854
- ]) {
1855
- if (typeof node !== "number") continue;
1856
- const node_css = manifest._.client.css?.[node];
1857
- for (const css_path of node_css ?? []) css += `'${assets || base}/${css_path}',`;
1858
- }
1859
- if (!css) return "";
1860
- return `${create_client_import(manifest._.client.start, url)}.then(x => x.load_css([${css}]));`;
1861
- }
1862
- //#endregion
1863
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/render.js
1864
- var updated = {
1865
- ...readable(false),
1866
- check: () => false
1867
- };
1868
- /**
1869
- * Creates the HTML response.
1870
- * @param {{
1871
- * branch: Array<import('./types.js').Loaded>;
1872
- * fetched: Array<import('./types.js').Fetched>;
1873
- * options: import('types').SSROptions;
1874
- * manifest: import('@sveltejs/kit').SSRManifest;
1875
- * state: import('types').SSRState;
1876
- * page_config: { ssr: boolean; csr: boolean };
1877
- * status: number;
1878
- * error: App.Error | null;
1879
- * event: import('@sveltejs/kit').RequestEvent;
1880
- * event_state: import('types').RequestState;
1881
- * resolve_opts: import('types').RequiredResolveOptions;
1882
- * action_result?: import('@sveltejs/kit').ActionResult;
1883
- * data_serializer: import('./types.js').ServerDataSerializer;
1884
- * error_components?: Array<import('types').SSRComponent | undefined>
1885
- * }} opts
1886
- */
1887
- async function render_response({ branch, fetched, options, manifest, state, page_config, status, error = null, event, event_state, resolve_opts, action_result, data_serializer, error_components }) {
1888
- if (state.prerendering) {
1889
- if (options.csp.mode === "nonce") throw new Error("Cannot use prerendering if config.kit.csp.mode === \"nonce\"");
1890
- if (options.app_template_contains_nonce) throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
1891
- }
1892
- const { client } = manifest._;
1893
- const modulepreloads = new Set(client.imports);
1894
- const stylesheets = new Set(client.stylesheets);
1895
- const fonts = new Set(client.fonts);
1896
- /**
1897
- * The value of the Link header that is added to the response when not prerendering
1898
- * @type {Set<string>}
1899
- */
1900
- const link_headers = /* @__PURE__ */ new Set();
1901
- /** @type {Map<string, string>} */
1902
- const inline_styles = /* @__PURE__ */ new Map();
1903
- /** @type {ReturnType<typeof options.root.render>} */
1904
- let rendered;
1905
- const form_value = action_result?.type === "success" || action_result?.type === "failure" ? action_result.data ?? null : null;
1906
- /** @type {string} */
1907
- let base$1 = base;
1908
- /** @type {string} */
1909
- let assets$1 = assets;
1910
- /**
1911
- * An expression that will evaluate in the client to determine the resolved base path.
1912
- * We use a relative path when possible to support IPFS, the internet archive, etc.
1913
- */
1914
- let base_expression = s(base);
1915
- const csp = new Csp(options.csp, { prerender: !!state.prerendering });
1916
- if (!state.prerendering?.fallback) {
1917
- base$1 = event.url.pathname.slice(base.length).split("/").slice(2).map(() => "..").join("/") || ".";
1918
- base_expression = `new URL(${s(base$1)}, location).pathname.slice(0, -1)`;
1919
- if (!assets || assets[0] === "/" && assets !== "/_svelte_kit_assets") assets$1 = base$1;
1920
- } else if (options.hash_routing) base_expression = "new URL('.', location).pathname.slice(0, -1)";
1921
- if (page_config.ssr) {
1922
- /** @type {Record<string, any>} */
1923
- const props = {
1924
- stores: {
1925
- page: writable(null),
1926
- navigating: writable(null),
1927
- updated
1928
- },
1929
- constructors: await Promise.all(branch.map(({ node }) => {
1930
- if (!node.component) throw new Error(`Missing +page.svelte component for route ${event.route.id}`);
1931
- return node.component();
1932
- })),
1933
- form: form_value
1934
- };
1935
- if (error_components) {
1936
- if (error) props.error = error;
1937
- props.errors = error_components;
1938
- }
1939
- let data = {};
1940
- for (let i = 0; i < branch.length; i += 1) {
1941
- data = {
1942
- ...data,
1943
- ...branch[i].data
1944
- };
1945
- props[`data_${i}`] = data;
1946
- }
1947
- props.page = {
1948
- error,
1949
- params: event.params,
1950
- route: event.route,
1951
- status,
1952
- url: event.url,
1953
- data,
1954
- form: form_value,
1955
- state: {}
1956
- };
1957
- const render_opts = {
1958
- context: new Map([["__request__", { page: props.page }]]),
1959
- csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },
1960
- transformError: error_components ? async (e) => {
1961
- if (isRedirect(e)) throw e;
1962
- const transformed = await handle_error_and_jsonify(event, event_state, options, e);
1963
- props.page.error = props.error = error = transformed;
1964
- props.page.status = status = get_status(e);
1965
- return transformed;
1966
- } : void 0
1967
- };
1968
- try {
1969
- rendered = await with_request_store({
1970
- event,
1971
- state: {
1972
- ...event_state,
1973
- is_in_render: true
1974
- }
1975
- }, async () => {
1976
- override({
1977
- base: base$1,
1978
- assets: assets$1
1979
- });
1980
- const maybe_promise = options.root.render(props, render_opts);
1981
- const rendered = options.async && "then" in maybe_promise ? maybe_promise.then((r) => r) : maybe_promise;
1982
- if (options.async) reset();
1983
- const { head, html, css, hashes } = options.async ? await rendered : rendered;
1984
- if (hashes) csp.add_script_hashes(hashes.script);
1985
- return {
1986
- head,
1987
- html,
1988
- css,
1989
- hashes
1990
- };
1991
- });
1992
- } finally {
1993
- reset();
1994
- }
1995
- } else rendered = {
1996
- head: "",
1997
- html: "",
1998
- css: {
1999
- code: "",
2000
- map: null
2001
- },
2002
- hashes: { script: [] }
2003
- };
2004
- for (const { node } of branch) {
2005
- for (const url of node.imports) modulepreloads.add(url);
2006
- for (const url of node.stylesheets) stylesheets.add(url);
2007
- for (const url of node.fonts) fonts.add(url);
2008
- if (node.inline_styles && !client.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
2009
- if (typeof css === "string") {
2010
- inline_styles.set(filename, css);
2011
- return;
2012
- }
2013
- inline_styles.set(filename, css(`${assets$1}/${app_dir}/immutable/assets`, assets$1));
2014
- });
2015
- }
2016
- const head = new Head(rendered.head, !!state.prerendering);
2017
- let body = rendered.html;
2018
- /** @param {string} path */
2019
- const prefixed = (path) => {
2020
- if (path.startsWith("/")) return base + path;
2021
- return `${assets$1}/${path}`;
2022
- };
2023
- const style = client.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
2024
- if (style) {
2025
- const attributes = [];
2026
- if (csp.style_needs_nonce) attributes.push(`nonce="${csp.nonce}"`);
2027
- csp.add_style(style);
2028
- head.add_style(style, attributes);
2029
- }
2030
- for (const dep of stylesheets) {
2031
- const path = prefixed(dep);
2032
- const attributes = ["rel=\"stylesheet\""];
2033
- if (inline_styles.has(dep)) attributes.push("disabled", "media=\"(max-width: 0)\"");
2034
- else if (resolve_opts.preload({
2035
- type: "css",
2036
- path
2037
- })) link_headers.add(`<${encodeURI(path)}>; rel="preload"; as="style"; nopush`);
2038
- head.add_stylesheet(path, attributes);
2039
- }
2040
- for (const dep of fonts) {
2041
- const path = prefixed(dep);
2042
- if (resolve_opts.preload({
2043
- type: "font",
2044
- path
2045
- })) {
2046
- const ext = dep.slice(dep.lastIndexOf(".") + 1);
2047
- head.add_link_tag(path, [
2048
- "rel=\"preload\"",
2049
- "as=\"font\"",
2050
- `type="font/${ext}"`,
2051
- "crossorigin"
2052
- ]);
2053
- link_headers.add(`<${encodeURI(path)}>; rel="preload"; as="font"; type="font/${ext}"; crossorigin; nopush`);
2054
- }
2055
- }
2056
- const global = get_global_name(options);
2057
- const { data, chunks } = data_serializer.get_data(csp);
2058
- if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!state.prerendering)).join("\n ")}`;
2059
- if (page_config.csr) {
2060
- const route = manifest._.client.routes?.find((r) => r.id === event.route.id) ?? null;
2061
- if (client.uses_env_dynamic_public && state.prerendering) modulepreloads.add(`${app_dir}/env.js`);
2062
- if (!client.inline) {
2063
- const included_modulepreloads = Array.from(modulepreloads, (dep) => prefixed(dep)).filter((path) => resolve_opts.preload({
2064
- type: "js",
2065
- path
2066
- }));
2067
- for (const path of included_modulepreloads) {
2068
- link_headers.add(`<${encodeURI(path)}>; rel="modulepreload"; nopush`);
2069
- if (options.preload_strategy !== "modulepreload") head.add_script_preload(path);
2070
- else head.add_link_tag(path, ["rel=\"modulepreload\""]);
2071
- }
2072
- }
2073
- if (manifest._.client.routes && state.prerendering && !state.prerendering.fallback) {
2074
- const pathname = add_resolution_suffix(event.url.pathname);
2075
- state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), manifest));
2076
- }
2077
- const blocks = [];
2078
- const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
2079
- const properties = [`base: ${base_expression}`];
2080
- if (assets) properties.push(`assets: ${s(assets)}`);
2081
- if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : s(public_env)}`);
2082
- if (chunks) {
2083
- blocks.push("const deferred = new Map();");
2084
- properties.push(`defer: (id) => new Promise((fulfil, reject) => {
2085
- deferred.set(id, { fulfil, reject });
2086
- })`);
2087
- let app_declaration = "";
2088
- if (Object.keys(options.hooks.transport).length > 0) if (client.inline) app_declaration = `const app = __sveltekit_${options.version_hash}.app.app;`;
2089
- else if (client.app) app_declaration = `const app = await import(${s(prefixed(client.app))});`;
2090
- else app_declaration = `const { app } = await import(${s(prefixed(client.start))});`;
2091
- const prelude = app_declaration ? `${app_declaration}
2092
- const [data, error] = fn(app);` : `const [data, error] = fn();`;
2093
- properties.push(`resolve: async (id, fn) => {
2094
- ${prelude}
2095
-
2096
- const try_to_resolve = () => {
2097
- if (!deferred.has(id)) {
2098
- setTimeout(try_to_resolve, 0);
2099
- return;
2100
- }
2101
- const { fulfil, reject } = deferred.get(id);
2102
- deferred.delete(id);
2103
- if (error) reject(error);
2104
- else fulfil(data);
2105
- }
2106
- try_to_resolve();
2107
- }`);
2108
- }
2109
- blocks.push(`${global} = {
2110
- ${properties.join(",\n ")}
2111
- };`);
2112
- const args = ["element"];
2113
- blocks.push("const element = document.currentScript.parentElement;");
2114
- if (page_config.ssr) {
2115
- const serialized = {
2116
- form: "null",
2117
- error: "null"
2118
- };
2119
- if (form_value) serialized.form = uneval_action_response(form_value, event.route.id, options.hooks.transport);
2120
- if (error) serialized.error = uneval(error);
2121
- const hydrate = [
2122
- `node_ids: [${branch.map(({ node }) => node.index).join(", ")}]`,
2123
- `data: ${data}`,
2124
- `form: ${serialized.form}`,
2125
- `error: ${serialized.error}`
2126
- ];
2127
- if (status !== 200) hydrate.push(`status: ${status}`);
2128
- if (manifest._.client.routes) {
2129
- if (route) {
2130
- const stringified = generate_route_object(route, event.url, manifest).replaceAll("\n", "\n ");
2131
- hydrate.push(`params: ${uneval(event.params)}`, `server_route: ${stringified}`);
2132
- }
2133
- } else if (options.embedded) hydrate.push(`params: ${uneval(event.params)}`, `route: ${s(event.route)}`);
2134
- const indent = " ".repeat(load_env_eagerly ? 7 : 6);
2135
- args.push(`{\n${indent}\t${hydrate.join(`,\n${indent}\t`)}\n${indent}}`);
2136
- }
2137
- const { remote } = event_state;
2138
- let serialized_query_data = "";
2139
- let serialized_prerender_data = "";
2140
- if (remote.data) {
2141
- /** @type {Record<string, any>} */
2142
- const query = {};
2143
- /** @type {Record<string, any>} */
2144
- const prerender = {};
2145
- for (const [internals, cache] of remote.data) {
2146
- if (!internals.id) continue;
2147
- for (const key in cache) {
2148
- const entry = cache[key];
2149
- if (!entry.serialize) continue;
2150
- const remote_key = create_remote_key(internals.id, key);
2151
- const store = internals.type === "prerender" ? prerender : query;
2152
- if (event_state.remote.refreshes?.has(remote_key) || event_state.remote.reconnects?.has(remote_key)) store[remote_key] = await entry.data;
2153
- else {
2154
- const result = await Promise.race([Promise.resolve(entry.data).then((v) => ({
2155
- settled: true,
2156
- value: v
2157
- }), (e) => ({
2158
- settled: true,
2159
- error: e
2160
- })), new Promise((resolve) => {
2161
- queueMicrotask(() => resolve({ settled: false }));
2162
- })]);
2163
- if (result.settled) {
2164
- if ("error" in result) throw result.error;
2165
- store[remote_key] = result.value;
2166
- }
2167
- }
2168
- }
2169
- }
2170
- const replacer = create_replacer(options.hooks.transport);
2171
- if (Object.keys(query).length > 0) serialized_query_data = `${global}.query = ${uneval(query, replacer)};\n\n\t\t\t\t\t\t`;
2172
- if (Object.keys(prerender).length > 0) serialized_prerender_data = `${global}.prerender = ${uneval(prerender, replacer)};\n\n\t\t\t\t\t\t`;
2173
- }
2174
- const serialized_remote_data = `${serialized_query_data}${serialized_prerender_data}`;
2175
- const boot = client.inline ? `${client.inline.script}
2176
-
2177
- ${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
2178
- import(${s(prefixed(client.start))}),
2179
- import(${s(prefixed(client.app))})
2180
- ]).then(([kit, app]) => {
2181
- ${serialized_remote_data}kit.start(app, ${args.join(", ")});
2182
- });` : `import(${s(prefixed(client.start))}).then((app) => {
2183
- ${serialized_remote_data}app.start(${args.join(", ")})
2184
- });`;
2185
- if (load_env_eagerly) blocks.push(`import(${s(`${base$1}/${app_dir}/env.js`)}).then(({ env }) => {
2186
- ${global}.env = env;
2187
-
2188
- ${boot.replace(/\n/g, "\n ")}
2189
- });`);
2190
- else blocks.push(boot);
2191
- if (options.service_worker) {
2192
- let opts = "";
2193
- if (options.service_worker_options != null) opts = `, ${s({ ...options.service_worker_options })}`;
2194
- blocks.push(`if ('serviceWorker' in navigator) {
2195
- const script_url = '${prefixed("service-worker.js")}';
2196
- const policy = globalThis?.window?.trustedTypes?.createPolicy(
2197
- 'sveltekit-trusted-url',
2198
- { createScriptURL(url) { return url; } }
2199
- );
2200
- const sanitised = policy?.createScriptURL(script_url) ?? script_url;
2201
- addEventListener('load', function () {
2202
- navigator.serviceWorker.register(sanitised${opts});
2203
- });
2204
- }`);
2205
- }
2206
- const init_app = `
2207
- {
2208
- ${blocks.join("\n\n ")}
2209
- }
2210
- `;
2211
- csp.add_script(init_app);
2212
- body += `\n\t\t\t<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>${init_app}<\/script>\n\t\t`;
2213
- }
2214
- const headers = new Headers({
2215
- "x-sveltekit-page": "true",
2216
- "content-type": "text/html"
2217
- });
2218
- if (state.prerendering) {
2219
- const csp_headers = csp.csp_provider.get_meta();
2220
- if (csp_headers) head.add_http_equiv(csp_headers);
2221
- if (state.prerendering.cache) head.add_http_equiv(`<meta http-equiv="cache-control" content="${state.prerendering.cache}">`);
2222
- } else {
2223
- const csp_header = csp.csp_provider.get_header();
2224
- if (csp_header) headers.set("content-security-policy", csp_header);
2225
- const report_only_header = csp.report_only_provider.get_header();
2226
- if (report_only_header) headers.set("content-security-policy-report-only", report_only_header);
2227
- if (link_headers.size) headers.set("link", Array.from(link_headers).join(", "));
2228
- }
2229
- const html = options.templates.app({
2230
- head: head.build(),
2231
- body,
2232
- assets: assets$1,
2233
- nonce: csp.nonce,
2234
- env: public_env
2235
- });
2236
- const transformed = await resolve_opts.transformPageChunk({
2237
- html,
2238
- done: true
2239
- }) || "";
2240
- if (!chunks) headers.set("etag", `"${hash(transformed)}"`);
2241
- return !chunks ? text(transformed, {
2242
- status,
2243
- headers
2244
- }) : new Response(new ReadableStream({
2245
- async start(controller) {
2246
- controller.enqueue(text_encoder.encode(transformed + "\n"));
2247
- for await (const chunk of chunks) if (chunk.length) controller.enqueue(text_encoder.encode(chunk));
2248
- controller.close();
2249
- },
2250
- type: "bytes"
2251
- }), { headers });
2252
- }
2253
- var Head = class {
2254
- #rendered;
2255
- #prerendering;
2256
- /** @type {string[]} */
2257
- #http_equiv = [];
2258
- /** @type {string[]} */
2259
- #link_tags = [];
2260
- /** @type {string[]} */
2261
- #script_preloads = [];
2262
- /** @type {string[]} */
2263
- #style_tags = [];
2264
- /** @type {string[]} */
2265
- #stylesheet_links = [];
2266
- /**
2267
- * @param {string} rendered
2268
- * @param {boolean} prerendering
2269
- */
2270
- constructor(rendered, prerendering) {
2271
- this.#rendered = rendered;
2272
- this.#prerendering = prerendering;
2273
- }
2274
- build() {
2275
- return [
2276
- ...this.#http_equiv,
2277
- ...this.#link_tags,
2278
- ...this.#script_preloads,
2279
- this.#rendered,
2280
- ...this.#style_tags,
2281
- ...this.#stylesheet_links
2282
- ].join("\n ");
2283
- }
2284
- /**
2285
- * @param {string} style
2286
- * @param {string[]} attributes
2287
- */
2288
- add_style(style, attributes) {
2289
- this.#style_tags.push(`<style${attributes.length ? " " + attributes.join(" ") : ""}>${style}</style>`);
2290
- }
2291
- /**
2292
- * @param {string} href
2293
- * @param {string[]} attributes
2294
- */
2295
- add_stylesheet(href, attributes) {
2296
- this.#stylesheet_links.push(`<link href="${href}" ${attributes.join(" ")}>`);
2297
- }
2298
- /** @param {string} href */
2299
- add_script_preload(href) {
2300
- this.#script_preloads.push(`<link rel="preload" as="script" crossorigin="anonymous" href="${href}">`);
2301
- }
2302
- /**
2303
- * @param {string} href
2304
- * @param {string[]} attributes
2305
- */
2306
- add_link_tag(href, attributes) {
2307
- if (!this.#prerendering) return;
2308
- this.#link_tags.push(`<link href="${href}" ${attributes.join(" ")}>`);
2309
- }
2310
- /** @param {string} tag */
2311
- add_http_equiv(tag) {
2312
- if (!this.#prerendering) return;
2313
- this.#http_equiv.push(tag);
2314
- }
2315
- };
2316
- //#endregion
2317
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/page_nodes.js
2318
- var PageNodes = class {
2319
- /** All layout nodes and the page node, if any */
2320
- data;
2321
- /**
2322
- * @param {Array<import('types').SSRNode | undefined>} nodes
2323
- */
2324
- constructor(nodes) {
2325
- this.data = nodes;
2326
- }
2327
- layouts() {
2328
- return this.data.slice(0, -1);
2329
- }
2330
- page() {
2331
- return this.data.at(-1);
2332
- }
2333
- validate() {
2334
- for (const layout of this.layouts()) if (layout) {
2335
- validate_layout_server_exports(layout.server, layout.server_id);
2336
- validate_layout_exports(layout.universal, layout.universal_id);
2337
- }
2338
- const page = this.page();
2339
- if (page) {
2340
- validate_page_server_exports(page.server, page.server_id);
2341
- validate_page_exports(page.universal, page.universal_id);
2342
- }
2343
- }
2344
- /**
2345
- * @template {'prerender' | 'ssr' | 'csr' | 'trailingSlash'} Option
2346
- * @param {Option} option
2347
- * @returns {Value | undefined}
2348
- */
2349
- #get_option(option) {
2350
- /** @typedef {(import('types').UniversalNode | import('types').ServerNode)[Option]} Value */
2351
- return this.data.reduce((value, node) => {
2352
- return node?.universal?.[option] ?? node?.server?.[option] ?? value;
2353
- }, void 0);
2354
- }
2355
- csr() {
2356
- return this.#get_option("csr") ?? true;
2357
- }
2358
- ssr() {
2359
- return this.#get_option("ssr") ?? true;
2360
- }
2361
- prerender() {
2362
- return this.#get_option("prerender") ?? false;
2363
- }
2364
- trailing_slash() {
2365
- return this.#get_option("trailingSlash") ?? "never";
2366
- }
2367
- get_config() {
2368
- /** @type {any} */
2369
- let current = {};
2370
- for (const node of this.data) {
2371
- if (!node?.universal?.config && !node?.server?.config) continue;
2372
- current = {
2373
- ...current,
2374
- ...node?.universal?.config,
2375
- ...node?.server?.config
2376
- };
2377
- }
2378
- return Object.keys(current).length ? current : void 0;
2379
- }
2380
- should_prerender_data() {
2381
- return this.data.some((node) => node?.server?.load || node?.server?.trailingSlash !== void 0);
2382
- }
2383
- };
2384
- //#endregion
2385
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js
2386
- /**
2387
- * @typedef {import('./types.js').Loaded} Loaded
2388
- */
2389
- /**
2390
- * @param {{
2391
- * event: import('@sveltejs/kit').RequestEvent;
2392
- * event_state: import('types').RequestState;
2393
- * options: import('types').SSROptions;
2394
- * manifest: import('@sveltejs/kit').SSRManifest;
2395
- * state: import('types').SSRState;
2396
- * status: number;
2397
- * error: unknown;
2398
- * resolve_opts: import('types').RequiredResolveOptions;
2399
- * }} opts
2400
- */
2401
- async function respond_with_error({ event, event_state, options, manifest, state, status, error, resolve_opts }) {
2402
- if (event.request.headers.get("x-sveltekit-error")) return static_error_page(
2403
- options,
2404
- status,
2405
- /** @type {Error} */
2406
- error.message
2407
- );
2408
- /** @type {import('./types.js').Fetched[]} */
2409
- const fetched = [];
2410
- try {
2411
- const branch = [];
2412
- const default_layout = await manifest._.nodes[0]();
2413
- const nodes = new PageNodes([default_layout]);
2414
- const ssr = nodes.ssr();
2415
- const csr = nodes.csr();
2416
- const data_serializer = server_data_serializer(event, event_state, options);
2417
- if (ssr) {
2418
- state.error = true;
2419
- const server_data_promise = load_server_data({
2420
- event,
2421
- event_state,
2422
- state,
2423
- node: default_layout,
2424
- parent: async () => ({})
2425
- });
2426
- const server_data = await server_data_promise;
2427
- data_serializer.add_node(0, server_data);
2428
- const data = await load_data({
2429
- event,
2430
- event_state,
2431
- fetched,
2432
- node: default_layout,
2433
- parent: async () => ({}),
2434
- resolve_opts,
2435
- server_data_promise,
2436
- state,
2437
- csr
2438
- });
2439
- branch.push({
2440
- node: default_layout,
2441
- server_data,
2442
- data
2443
- }, {
2444
- node: await manifest._.nodes[1](),
2445
- data: null,
2446
- server_data: null
2447
- });
2448
- }
2449
- return await render_response({
2450
- options,
2451
- manifest,
2452
- state,
2453
- page_config: {
2454
- ssr,
2455
- csr
2456
- },
2457
- status,
2458
- error: await handle_error_and_jsonify(event, event_state, options, error),
2459
- branch,
2460
- error_components: [],
2461
- fetched,
2462
- event,
2463
- event_state,
2464
- resolve_opts,
2465
- data_serializer
2466
- });
2467
- } catch (e) {
2468
- if (e instanceof Redirect) return redirect_response(e.status, e.location);
2469
- return static_error_page(options, get_status(e), (await handle_error_and_jsonify(event, event_state, options, e)).message);
2470
- }
2471
- }
2472
- //#endregion
2473
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/remote.js
2474
- /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2475
- /** @import { RemoteFormInternals, RemoteFunctionResponse, RemoteInternals, RequestState, SSROptions } from 'types' */
2476
- /** @type {typeof handle_remote_call_internal} */
2477
- async function handle_remote_call(event, state, options, manifest, id) {
2478
- return record_span({
2479
- name: "sveltekit.remote.call",
2480
- attributes: { },
2481
- fn: (current) => {
2482
- const traced_event = merge_tracing(event, current);
2483
- return with_request_store({
2484
- event: traced_event,
2485
- state
2486
- }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
2487
- }
2488
- });
2489
- }
2490
- /**
2491
- * @param {RequestEvent} event
2492
- * @param {RequestState} state
2493
- * @param {SSROptions} options
2494
- * @param {SSRManifest} manifest
2495
- * @param {string} id
2496
- */
2497
- async function handle_remote_call_internal(event, state, options, manifest, id) {
2498
- const [hash, name, additional_args] = id.split("/");
2499
- const remotes = manifest._.remotes;
2500
- if (!remotes[hash]) error(404);
2501
- const fn = (await remotes[hash]()).default[name];
2502
- if (!fn) error(404);
2503
- /** @type {RemoteInternals} */
2504
- const internals = fn.__;
2505
- const transport = options.hooks.transport;
2506
- event.tracing.current.setAttributes({
2507
- "sveltekit.remote.call.type": internals.type,
2508
- "sveltekit.remote.call.name": internals.name
2509
- });
2510
- try {
2511
- if (internals.type === "query_batch") {
2512
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`);
2513
- /** @type {{ payloads: string[] }} */
2514
- const { payloads } = await event.request.json();
2515
- const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
2516
- return json({
2517
- type: "result",
2518
- result: stringify(await with_request_store({
2519
- event,
2520
- state
2521
- }, () => internals.run(args, options)), transport)
2522
- });
2523
- }
2524
- if (internals.type === "form") {
2525
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
2526
- if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `\`form\` functions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
2527
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2528
- state.remote.requested = create_requested_map(meta.remote_refreshes);
2529
- if (additional_args && !("id" in data)) data.id = JSON.parse(decodeURIComponent(additional_args));
2530
- const fn = internals.fn;
2531
- const result = await with_request_store({
2532
- event,
2533
- state
2534
- }, () => fn(data, meta, form_data));
2535
- return json({
2536
- type: "result",
2537
- result: stringify(result, transport),
2538
- refreshes: result.issues ? void 0 : await serialize_singleflight(state.remote.refreshes),
2539
- reconnects: result.issues ? void 0 : await serialize_singleflight(state.remote.reconnects)
2540
- });
2541
- }
2542
- if (internals.type === "command") {
2543
- /** @type {{ payload: string, refreshes?: string[] }} */
2544
- const { payload, refreshes } = await event.request.json();
2545
- state.remote.requested = create_requested_map(refreshes);
2546
- const arg = parse_remote_arg(payload, transport);
2547
- return json({
2548
- type: "result",
2549
- result: stringify(await with_request_store({
2550
- event,
2551
- state
2552
- }, () => fn(arg)), transport),
2553
- refreshes: await serialize_singleflight(state.remote.refreshes),
2554
- reconnects: await serialize_singleflight(state.remote.reconnects)
2555
- });
2556
- }
2557
- if (internals.type === "query_live") {
2558
- if (event.request.method !== "GET") throw new SvelteKitError(405, "Method Not Allowed", `\`query.live\` functions must be invoked via GET request, not ${event.request.method}`);
2559
- const payload = new URL(event.request.url).searchParams.get("payload");
2560
- const generator = internals.run(event, state, parse_remote_arg(payload, transport));
2561
- const encoder = new TextEncoder();
2562
- /**
2563
- * @param {ReadableStreamDefaultController} controller
2564
- * @param {any} payload
2565
- */
2566
- function send(controller, payload) {
2567
- controller.enqueue(encoder.encode(JSON.stringify(payload) + "\n"));
2568
- }
2569
- let closed = false;
2570
- /** @type {string | undefined} */
2571
- let result = void 0;
2572
- async function cancel() {
2573
- if (closed) return;
2574
- closed = true;
2575
- await generator.return(void 0);
2576
- }
2577
- event.request.signal.addEventListener("abort", cancel, { once: true });
2578
- return new Response(new ReadableStream({
2579
- async pull(controller) {
2580
- if (event.request.signal.aborted) {
2581
- await cancel();
2582
- controller.close();
2583
- return;
2584
- }
2585
- try {
2586
- while (true) {
2587
- const { value, done } = await generator.next();
2588
- if (done) {
2589
- await cancel();
2590
- controller.close();
2591
- return;
2592
- }
2593
- if (result !== (result = stringify(value, transport))) {
2594
- send(controller, {
2595
- type: "result",
2596
- result
2597
- });
2598
- return;
2599
- }
2600
- }
2601
- } catch (error) {
2602
- if (!event.request.signal.aborted) if (error instanceof Redirect) send(controller, {
2603
- type: "redirect",
2604
- location: error.location
2605
- });
2606
- else {
2607
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2608
- send(controller, {
2609
- type: "error",
2610
- error: await handle_error_and_jsonify(event, state, options, error),
2611
- status
2612
- });
2613
- }
2614
- await cancel();
2615
- controller.close();
2616
- }
2617
- },
2618
- cancel
2619
- }), { headers: {
2620
- "cache-control": "private, no-store",
2621
- "content-type": "application/x-ndjson"
2622
- } });
2623
- }
2624
- const payload = internals.type === "prerender" ? additional_args : new URL(event.request.url).searchParams.get("payload");
2625
- return json({
2626
- type: "result",
2627
- result: stringify(await with_request_store({
2628
- event,
2629
- state
2630
- }, () => fn(parse_remote_arg(payload, transport))), transport)
2631
- });
2632
- } catch (error) {
2633
- if (error instanceof Redirect) return json({
2634
- type: "redirect",
2635
- location: error.location,
2636
- refreshes: await serialize_singleflight(state.remote.refreshes),
2637
- reconnects: await serialize_singleflight(state.remote.reconnects)
2638
- });
2639
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2640
- return json({
2641
- type: "error",
2642
- error: await handle_error_and_jsonify(event, state, options, error),
2643
- status
2644
- }, {
2645
- status: state.prerendering ? status : void 0,
2646
- headers: { "cache-control": "private, no-store" }
2647
- });
2648
- }
2649
- /** @param {Map<string, Promise<any>> | null} map */
2650
- async function serialize_singleflight(map) {
2651
- if (!map || map.size === 0) return;
2652
- const results = await Promise.all(Array.from(map, async ([key, promise]) => {
2653
- try {
2654
- return [key, {
2655
- type: "result",
2656
- data: await promise
2657
- }];
2658
- } catch (error) {
2659
- return [key, {
2660
- type: "error",
2661
- status: error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500,
2662
- error: await handle_error_and_jsonify(event, state, options, error)
2663
- }];
2664
- }
2665
- }));
2666
- return stringify(Object.fromEntries(results), transport);
2667
- }
2668
- }
2669
- /**
2670
- * @param {string[] | undefined} refreshes
2671
- */
2672
- function create_requested_map(refreshes) {
2673
- /** @type {Map<string, string[]>} */
2674
- const requested = /* @__PURE__ */ new Map();
2675
- for (const key of refreshes ?? []) {
2676
- const parts = split_remote_key(key);
2677
- const existing = requested.get(parts.id);
2678
- if (existing) existing.push(parts.payload);
2679
- else requested.set(parts.id, [parts.payload]);
2680
- }
2681
- return requested;
2682
- }
2683
- /** @type {typeof handle_remote_form_post_internal} */
2684
- async function handle_remote_form_post(event, state, manifest, id) {
2685
- return record_span({
2686
- name: "sveltekit.remote.form.post",
2687
- attributes: { },
2688
- fn: (current) => {
2689
- const traced_event = merge_tracing(event, current);
2690
- return with_request_store({
2691
- event: traced_event,
2692
- state
2693
- }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
2694
- }
2695
- });
2696
- }
2697
- /**
2698
- * @param {RequestEvent} event
2699
- * @param {RequestState} state
2700
- * @param {SSRManifest} manifest
2701
- * @param {string} id
2702
- * @returns {Promise<ActionResult>}
2703
- */
2704
- async function handle_remote_form_post_internal(event, state, manifest, id) {
2705
- const [hash, name, action_id] = id.split("/");
2706
- let form = (await manifest._.remotes[hash]?.())?.default[name];
2707
- if (!form) {
2708
- event.setHeaders({ allow: "GET" });
2709
- return {
2710
- type: "error",
2711
- error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
2712
- };
2713
- }
2714
- if (action_id) form = with_request_store({
2715
- event,
2716
- state
2717
- }, () => form.for(JSON.parse(action_id)));
2718
- try {
2719
- const fn = form.__.fn;
2720
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2721
- if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
2722
- await with_request_store({
2723
- event,
2724
- state
2725
- }, () => fn(data, meta, form_data));
2726
- return {
2727
- type: "success",
2728
- status: 200
2729
- };
2730
- } catch (e) {
2731
- const err = normalize_error(e);
2732
- if (err instanceof Redirect) return {
2733
- type: "redirect",
2734
- status: err.status,
2735
- location: err.location
2736
- };
2737
- return {
2738
- type: "error",
2739
- error: check_incorrect_fail_use(err)
2740
- };
2741
- }
2742
- }
2743
- /**
2744
- * @param {URL} url
2745
- */
2746
- function get_remote_id(url) {
2747
- return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
2748
- }
2749
- /**
2750
- * @param {URL} url
2751
- */
2752
- function get_remote_action(url) {
2753
- return url.searchParams.get("/remote");
2754
- }
2755
- //#endregion
2756
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/page/index.js
2757
- /** @import { ActionResult, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2758
- /** @import { PageNodeIndexes, RequestState, RequiredResolveOptions, ServerDataNode, SSRComponent, SSRNode, SSROptions, SSRState } from 'types' */
2759
- /**
2760
- * The maximum request depth permitted before assuming we're stuck in an infinite loop
2761
- */
2762
- var MAX_DEPTH = 10;
2763
- /**
2764
- * @param {RequestEvent} event
2765
- * @param {RequestState} event_state
2766
- * @param {PageNodeIndexes} page
2767
- * @param {SSROptions} options
2768
- * @param {SSRManifest} manifest
2769
- * @param {SSRState} state
2770
- * @param {import('../../../utils/page_nodes.js').PageNodes} nodes
2771
- * @param {RequiredResolveOptions} resolve_opts
2772
- * @returns {Promise<Response>}
2773
- */
2774
- async function render_page(event, event_state, page, options, manifest, state, nodes, resolve_opts) {
2775
- if (state.depth > MAX_DEPTH) return text(`Not found: ${event.url.pathname}`, { status: 404 });
2776
- if (is_action_json_request(event)) return handle_action_json_request(event, event_state, options, (await manifest._.nodes[page.leaf]())?.server);
2777
- try {
2778
- const leaf_node = nodes.page();
2779
- let status = 200;
2780
- /** @type {ActionResult | undefined} */
2781
- let action_result = void 0;
2782
- if (is_action_request(event)) {
2783
- const remote_id = get_remote_action(event.url);
2784
- if (remote_id) action_result = await handle_remote_form_post(event, event_state, manifest, remote_id);
2785
- else action_result = await handle_action_request(event, event_state, leaf_node.server);
2786
- if (action_result?.type === "redirect") return redirect_response(action_result.status, action_result.location);
2787
- if (action_result?.type === "error") status = get_status(action_result.error);
2788
- if (action_result?.type === "failure") status = action_result.status;
2789
- }
2790
- const should_prerender = nodes.prerender();
2791
- if (should_prerender) {
2792
- if (leaf_node.server?.actions) throw new Error("Cannot prerender pages with actions");
2793
- } else if (state.prerendering) return new Response(void 0, { status: 204 });
2794
- state.prerender_default = should_prerender;
2795
- const should_prerender_data = nodes.should_prerender_data();
2796
- const data_pathname = add_data_suffix(event.url.pathname);
2797
- /** @type {import('./types.js').Fetched[]} */
2798
- const fetched = [];
2799
- const ssr = nodes.ssr();
2800
- const csr = nodes.csr();
2801
- if (ssr === false && !(state.prerendering && should_prerender_data)) return await render_response({
2802
- branch: compact(nodes.data).map((node) => {
2803
- return {
2804
- node,
2805
- data: null,
2806
- server_data: null
2807
- };
2808
- }),
2809
- fetched,
2810
- page_config: {
2811
- ssr: false,
2812
- csr
2813
- },
2814
- status,
2815
- error: null,
2816
- event,
2817
- event_state,
2818
- options,
2819
- manifest,
2820
- state,
2821
- resolve_opts,
2822
- data_serializer: server_data_serializer(event, event_state, options)
2823
- });
2824
- /** @type {Array<import('./types.js').Loaded | null>} */
2825
- const branch = [];
2826
- /** @type {Error | null} */
2827
- let load_error = null;
2828
- const data_serializer = server_data_serializer(event, event_state, options);
2829
- const data_serializer_json = state.prerendering && should_prerender_data ? server_data_serializer_json(event, event_state, options) : null;
2830
- /** @type {Array<Promise<ServerDataNode | null>>} */
2831
- const server_promises = nodes.data.map((node, i) => {
2832
- if (load_error) throw load_error;
2833
- return Promise.resolve().then(async () => {
2834
- try {
2835
- if (node === leaf_node && action_result?.type === "error") throw action_result.error;
2836
- const server_data = await load_server_data({
2837
- event,
2838
- event_state,
2839
- state,
2840
- node,
2841
- parent: async () => {
2842
- /** @type {Record<string, any>} */
2843
- const data = {};
2844
- for (let j = 0; j < i; j += 1) {
2845
- const parent = await server_promises[j];
2846
- if (parent) Object.assign(data, parent.data);
2847
- }
2848
- return data;
2849
- }
2850
- });
2851
- if (node) data_serializer.add_node(i, server_data);
2852
- data_serializer_json?.add_node(i, server_data);
2853
- return server_data;
2854
- } catch (e) {
2855
- load_error = e;
2856
- throw load_error;
2857
- }
2858
- });
2859
- });
2860
- /** @type {Array<Promise<Record<string, any> | null>>} */
2861
- const load_promises = nodes.data.map((node, i) => {
2862
- if (load_error) throw load_error;
2863
- return Promise.resolve().then(async () => {
2864
- try {
2865
- return await load_data({
2866
- event,
2867
- event_state,
2868
- fetched,
2869
- node,
2870
- parent: async () => {
2871
- const data = {};
2872
- for (let j = 0; j < i; j += 1) Object.assign(data, await load_promises[j]);
2873
- return data;
2874
- },
2875
- resolve_opts,
2876
- server_data_promise: server_promises[i],
2877
- state,
2878
- csr
2879
- });
2880
- } catch (e) {
2881
- load_error = e;
2882
- throw load_error;
2883
- }
2884
- });
2885
- });
2886
- for (const p of server_promises) p.catch(noop);
2887
- for (const p of load_promises) p.catch(noop);
2888
- for (let i = 0; i < nodes.data.length; i += 1) {
2889
- const node = nodes.data[i];
2890
- if (node) try {
2891
- const server_data = await server_promises[i];
2892
- const data = await load_promises[i];
2893
- branch.push({
2894
- node,
2895
- server_data,
2896
- data
2897
- });
2898
- } catch (e) {
2899
- const err = normalize_error(e);
2900
- if (err instanceof Redirect) {
2901
- if (state.prerendering && should_prerender_data) {
2902
- const body = JSON.stringify({
2903
- type: "redirect",
2904
- location: err.location
2905
- });
2906
- state.prerendering.dependencies.set(data_pathname, {
2907
- response: text(body),
2908
- body
2909
- });
2910
- }
2911
- return redirect_response(err.status, err.location);
2912
- }
2913
- const status = get_status(err);
2914
- const error = await handle_error_and_jsonify(event, event_state, options, err);
2915
- while (i--) if (page.errors[i]) {
2916
- const index = page.errors[i];
2917
- const node = await manifest._.nodes[index]();
2918
- let j = i;
2919
- while (!branch[j]) j -= 1;
2920
- data_serializer.set_max_nodes(j + 1);
2921
- const layouts = compact(branch.slice(0, j + 1));
2922
- const nodes = new PageNodes(layouts.map((layout) => layout.node));
2923
- const error_branch = layouts.concat({
2924
- node,
2925
- data: null,
2926
- server_data: null
2927
- });
2928
- return await render_response({
2929
- event,
2930
- event_state,
2931
- options,
2932
- manifest,
2933
- state,
2934
- resolve_opts,
2935
- page_config: {
2936
- ssr: nodes.ssr(),
2937
- csr: nodes.csr()
2938
- },
2939
- status,
2940
- error,
2941
- error_components: await load_error_components(options, ssr, error_branch, page, manifest),
2942
- branch: error_branch,
2943
- fetched,
2944
- data_serializer
2945
- });
2946
- }
2947
- return static_error_page(options, status, error.message);
2948
- }
2949
- else branch.push(null);
2950
- }
2951
- if (state.prerendering && data_serializer_json) {
2952
- let { data, chunks } = data_serializer_json.get_data();
2953
- if (chunks) for await (const chunk of chunks) data += chunk;
2954
- state.prerendering.dependencies.set(data_pathname, {
2955
- response: text(data),
2956
- body: data
2957
- });
2958
- }
2959
- return await render_response({
2960
- event,
2961
- event_state,
2962
- options,
2963
- manifest,
2964
- state,
2965
- resolve_opts,
2966
- page_config: {
2967
- csr,
2968
- ssr
2969
- },
2970
- status,
2971
- error: null,
2972
- branch: compact(branch),
2973
- action_result,
2974
- fetched,
2975
- data_serializer: !ssr ? server_data_serializer(event, event_state, options) : data_serializer,
2976
- error_components: await load_error_components(options, ssr, branch, page, manifest)
2977
- });
2978
- } catch (e) {
2979
- if (e instanceof Redirect) return redirect_response(e.status, e.location);
2980
- return await respond_with_error({
2981
- event,
2982
- event_state,
2983
- options,
2984
- manifest,
2985
- state,
2986
- status: e instanceof HttpError ? e.status : 500,
2987
- error: e,
2988
- resolve_opts
2989
- });
2990
- }
2991
- }
2992
- /**
2993
- *
2994
- * @param {SSROptions} options
2995
- * @param {boolean} ssr
2996
- * @param {Array<import('./types.js').Loaded | null>} branch
2997
- * @param {PageNodeIndexes} page
2998
- * @param {SSRManifest} manifest
2999
- */
3000
- async function load_error_components(options, ssr, branch, page, manifest) {
3001
- /** @type {Array<SSRComponent | undefined> | undefined} */
3002
- let error_components;
3003
- if (options.server_error_boundaries && ssr) {
3004
- let last_idx = -1;
3005
- error_components = await Promise.all(branch.map((b, i) => {
3006
- if (i === 0) return void 0;
3007
- if (!b) return null;
3008
- i--;
3009
- while (i > last_idx + 1 && page.errors[i] === void 0) i -= 1;
3010
- last_idx = i;
3011
- const idx = page.errors[i];
3012
- if (idx == null) return void 0;
3013
- return manifest._.nodes[idx]?.().then((e) => e.component?.()).catch(() => void 0);
3014
- }).filter((e) => e !== null));
3015
- }
3016
- return error_components;
3017
- }
3018
- //#endregion
3019
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/data/index.js
3020
- /**
3021
- * @param {import('@sveltejs/kit').RequestEvent} event
3022
- * @param {import('types').RequestState} event_state
3023
- * @param {import('types').SSRRoute} route
3024
- * @param {import('types').SSROptions} options
3025
- * @param {import('@sveltejs/kit').SSRManifest} manifest
3026
- * @param {import('types').SSRState} state
3027
- * @param {boolean[] | undefined} invalidated_data_nodes
3028
- * @param {import('types').TrailingSlash} trailing_slash
3029
- * @returns {Promise<Response>}
3030
- */
3031
- async function render_data(event, event_state, route, options, manifest, state, invalidated_data_nodes, trailing_slash) {
3032
- if (!route.page) return new Response(void 0, { status: 404 });
3033
- try {
3034
- const node_ids = [...route.page.layouts, route.page.leaf];
3035
- const invalidated = invalidated_data_nodes ?? node_ids.map(() => true);
3036
- let aborted = false;
3037
- const url = new URL(event.url);
3038
- url.pathname = normalize_path(url.pathname, trailing_slash);
3039
- const new_event = {
3040
- ...event,
3041
- url
3042
- };
3043
- const functions = node_ids.map((n, i) => {
3044
- return once(async () => {
3045
- try {
3046
- if (aborted) return { type: "skip" };
3047
- return load_server_data({
3048
- event: new_event,
3049
- event_state,
3050
- state,
3051
- node: n == void 0 ? n : await manifest._.nodes[n](),
3052
- parent: async () => {
3053
- /** @type {Record<string, any>} */
3054
- const data = {};
3055
- for (let j = 0; j < i; j += 1) {
3056
- const parent = await functions[j]();
3057
- if (parent) Object.assign(data, parent.data);
3058
- }
3059
- return data;
3060
- }
3061
- });
3062
- } catch (e) {
3063
- aborted = true;
3064
- throw e;
3065
- }
3066
- });
3067
- });
3068
- const promises = functions.map(async (fn, i) => {
3069
- if (!invalidated[i]) return { type: "skip" };
3070
- return fn();
3071
- });
3072
- let length = promises.length;
3073
- const nodes = await Promise.all(promises.map((p, i) => p.catch(async (error) => {
3074
- if (error instanceof Redirect) throw error;
3075
- length = Math.min(length, i + 1);
3076
- return {
3077
- type: "error",
3078
- error: await handle_error_and_jsonify(event, event_state, options, error),
3079
- status: error instanceof HttpError || error instanceof SvelteKitError ? error.status : void 0
3080
- };
3081
- })));
3082
- const data_serializer = server_data_serializer_json(event, event_state, options);
3083
- for (let i = 0; i < nodes.length; i++) data_serializer.add_node(i, nodes[i]);
3084
- const { data, chunks } = data_serializer.get_data();
3085
- if (!chunks) return json_response(data);
3086
- return new Response(new ReadableStream({
3087
- async start(controller) {
3088
- controller.enqueue(text_encoder.encode(data));
3089
- for await (const chunk of chunks) controller.enqueue(text_encoder.encode(chunk));
3090
- controller.close();
3091
- },
3092
- type: "bytes"
3093
- }), { headers: {
3094
- "content-type": "text/sveltekit-data",
3095
- "cache-control": "private, no-store"
3096
- } });
3097
- } catch (e) {
3098
- const error = normalize_error(e);
3099
- if (error instanceof Redirect) return redirect_json_response(error);
3100
- else return json_response(await handle_error_and_jsonify(event, event_state, options, error), 500);
3101
- }
3102
- }
3103
- /**
3104
- * @param {Record<string, any> | string} json
3105
- * @param {number} [status]
3106
- */
3107
- function json_response(json, status = 200) {
3108
- return text(typeof json === "string" ? json : JSON.stringify(json), {
3109
- status,
3110
- headers: {
3111
- "content-type": "application/json",
3112
- "cache-control": "private, no-store"
3113
- }
3114
- });
3115
- }
3116
- /**
3117
- * @param {Redirect} redirect
3118
- */
3119
- function redirect_json_response(redirect) {
3120
- return json_response({
3121
- type: "redirect",
3122
- location: redirect.location
3123
- });
3124
- }
3125
- /*!
3126
- * cookie
3127
- * Copyright(c) 2012-2014 Roman Shtylman
3128
- * Copyright(c) 2015 Douglas Christopher Wilson
3129
- * MIT Licensed
3130
- */
3131
- //#endregion
3132
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/cookie.js
3133
- var import_cookie = (/* @__PURE__ */ __commonJSMin(((exports$1) => {
3134
- /**
3135
- * Module exports.
3136
- * @public
3137
- */
3138
- exports$1.parse = parse;
3139
- exports$1.serialize = serialize;
3140
- /**
3141
- * Module variables.
3142
- * @private
3143
- */
3144
- var __toString = Object.prototype.toString;
3145
- /**
3146
- * RegExp to match field-content in RFC 7230 sec 3.2
3147
- *
3148
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
3149
- * field-vchar = VCHAR / obs-text
3150
- * obs-text = %x80-FF
3151
- */
3152
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
3153
- /**
3154
- * Parse a cookie header.
3155
- *
3156
- * Parse the given cookie header string into an object
3157
- * The object has the various cookies as keys(names) => values
3158
- *
3159
- * @param {string} str
3160
- * @param {object} [options]
3161
- * @return {object}
3162
- * @public
3163
- */
3164
- function parse(str, options) {
3165
- if (typeof str !== "string") throw new TypeError("argument str must be a string");
3166
- var obj = {};
3167
- var dec = (options || {}).decode || decode;
3168
- var index = 0;
3169
- while (index < str.length) {
3170
- var eqIdx = str.indexOf("=", index);
3171
- if (eqIdx === -1) break;
3172
- var endIdx = str.indexOf(";", index);
3173
- if (endIdx === -1) endIdx = str.length;
3174
- else if (endIdx < eqIdx) {
3175
- index = str.lastIndexOf(";", eqIdx - 1) + 1;
3176
- continue;
3177
- }
3178
- var key = str.slice(index, eqIdx).trim();
3179
- if (void 0 === obj[key]) {
3180
- var val = str.slice(eqIdx + 1, endIdx).trim();
3181
- if (val.charCodeAt(0) === 34) val = val.slice(1, -1);
3182
- obj[key] = tryDecode(val, dec);
3183
- }
3184
- index = endIdx + 1;
3185
- }
3186
- return obj;
3187
- }
3188
- /**
3189
- * Serialize data into a cookie header.
3190
- *
3191
- * Serialize the a name value pair into a cookie string suitable for
3192
- * http headers. An optional options object specified cookie parameters.
3193
- *
3194
- * serialize('foo', 'bar', { httpOnly: true })
3195
- * => "foo=bar; httpOnly"
3196
- *
3197
- * @param {string} name
3198
- * @param {string} val
3199
- * @param {object} [options]
3200
- * @return {string}
3201
- * @public
3202
- */
3203
- function serialize(name, val, options) {
3204
- var opt = options || {};
3205
- var enc = opt.encode || encode;
3206
- if (typeof enc !== "function") throw new TypeError("option encode is invalid");
3207
- if (!fieldContentRegExp.test(name)) throw new TypeError("argument name is invalid");
3208
- var value = enc(val);
3209
- if (value && !fieldContentRegExp.test(value)) throw new TypeError("argument val is invalid");
3210
- var str = name + "=" + value;
3211
- if (null != opt.maxAge) {
3212
- var maxAge = opt.maxAge - 0;
3213
- if (isNaN(maxAge) || !isFinite(maxAge)) throw new TypeError("option maxAge is invalid");
3214
- str += "; Max-Age=" + Math.floor(maxAge);
3215
- }
3216
- if (opt.domain) {
3217
- if (!fieldContentRegExp.test(opt.domain)) throw new TypeError("option domain is invalid");
3218
- str += "; Domain=" + opt.domain;
3219
- }
3220
- if (opt.path) {
3221
- if (!fieldContentRegExp.test(opt.path)) throw new TypeError("option path is invalid");
3222
- str += "; Path=" + opt.path;
3223
- }
3224
- if (opt.expires) {
3225
- var expires = opt.expires;
3226
- if (!isDate(expires) || isNaN(expires.valueOf())) throw new TypeError("option expires is invalid");
3227
- str += "; Expires=" + expires.toUTCString();
3228
- }
3229
- if (opt.httpOnly) str += "; HttpOnly";
3230
- if (opt.secure) str += "; Secure";
3231
- if (opt.partitioned) str += "; Partitioned";
3232
- if (opt.priority) switch (typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority) {
3233
- case "low":
3234
- str += "; Priority=Low";
3235
- break;
3236
- case "medium":
3237
- str += "; Priority=Medium";
3238
- break;
3239
- case "high":
3240
- str += "; Priority=High";
3241
- break;
3242
- default: throw new TypeError("option priority is invalid");
3243
- }
3244
- if (opt.sameSite) switch (typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite) {
3245
- case true:
3246
- str += "; SameSite=Strict";
3247
- break;
3248
- case "lax":
3249
- str += "; SameSite=Lax";
3250
- break;
3251
- case "strict":
3252
- str += "; SameSite=Strict";
3253
- break;
3254
- case "none":
3255
- str += "; SameSite=None";
3256
- break;
3257
- default: throw new TypeError("option sameSite is invalid");
3258
- }
3259
- return str;
3260
- }
3261
- /**
3262
- * URL-decode string value. Optimized to skip native call when no %.
3263
- *
3264
- * @param {string} str
3265
- * @returns {string}
3266
- */
3267
- function decode(str) {
3268
- return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str;
3269
- }
3270
- /**
3271
- * URL-encode value.
3272
- *
3273
- * @param {string} val
3274
- * @returns {string}
3275
- */
3276
- function encode(val) {
3277
- return encodeURIComponent(val);
3278
- }
3279
- /**
3280
- * Determine if value is a Date.
3281
- *
3282
- * @param {*} val
3283
- * @private
3284
- */
3285
- function isDate(val) {
3286
- return __toString.call(val) === "[object Date]" || val instanceof Date;
3287
- }
3288
- /**
3289
- * Try decoding a string using a decoding function.
3290
- *
3291
- * @param {string} str
3292
- * @param {function} decode
3293
- * @private
3294
- */
3295
- function tryDecode(str, decode) {
3296
- try {
3297
- return decode(str);
3298
- } catch (e) {
3299
- return str;
3300
- }
3301
- }
3302
- })))();
3303
- var INVALID_COOKIE_CHARACTER_REGEX = /[\x00-\x1F\x7F()<>@,;:"/[\]?={} \t]/;
3304
- /** @param {import('./page/types.js').Cookie['options']} options */
3305
- function validate_options(options) {
3306
- if (options?.path === void 0) throw new Error("You must specify a `path` when setting, deleting or serializing cookies");
3307
- }
3308
- /**
3309
- * Generates a unique key for a cookie based on its domain, path, and name in
3310
- * the format: `<domain>/<path>?<name>`.
3311
- * If domain is undefined, it will be omitted.
3312
- * For example: `/?name`, `example.com/foo?name`.
3313
- *
3314
- * @param {string | undefined} domain
3315
- * @param {string} path
3316
- * @param {string} name
3317
- * @returns {string}
3318
- */
3319
- function generate_cookie_key(domain, path, name) {
3320
- return `${domain || ""}${path}?${encodeURIComponent(name)}`;
3321
- }
3322
- /**
3323
- * @param {Request} request
3324
- * @param {URL} url
3325
- */
3326
- function get_cookies(request, url) {
3327
- const header = request.headers.get("cookie") ?? "";
3328
- const initial_cookies = (0, import_cookie.parse)(header, { decode: (value) => value });
3329
- /** @type {string | undefined} */
3330
- let normalized_url;
3331
- /** @type {Map<string, import('./page/types.js').Cookie>} */
3332
- const new_cookies = /* @__PURE__ */ new Map();
3333
- /** @type {import('cookie').CookieSerializeOptions} */
3334
- const defaults = {
3335
- httpOnly: true,
3336
- sameSite: "lax",
3337
- secure: url.hostname === "localhost" && url.protocol === "http:" ? false : true
3338
- };
3339
- /** @type {import('@sveltejs/kit').Cookies} */
3340
- const cookies = {
3341
- /**
3342
- * @param {string} name
3343
- * @param {import('cookie').CookieParseOptions} [opts]
3344
- */
3345
- get(name, opts) {
3346
- const best_match = Array.from(new_cookies.values()).filter((c) => {
3347
- return c.name === name && domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path);
3348
- }).sort((a, b) => b.options.path.length - a.options.path.length)[0];
3349
- if (best_match) return best_match.options.maxAge === 0 ? void 0 : best_match.value;
3350
- return (0, import_cookie.parse)(header, { decode: opts?.decode })[name];
3351
- },
3352
- /**
3353
- * @param {import('cookie').CookieParseOptions} [opts]
3354
- */
3355
- getAll(opts) {
3356
- const cookies = (0, import_cookie.parse)(header, { decode: opts?.decode });
3357
- const lookup = /* @__PURE__ */ new Map();
3358
- for (const c of new_cookies.values()) if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
3359
- const existing = lookup.get(c.name);
3360
- if (!existing || c.options.path.length > existing.options.path.length) lookup.set(c.name, c);
3361
- }
3362
- for (const c of lookup.values()) cookies[c.name] = c.value;
3363
- return Object.entries(cookies).map(([name, value]) => ({
3364
- name,
3365
- value
3366
- }));
3367
- },
3368
- /**
3369
- * @param {string} name
3370
- * @param {string} value
3371
- * @param {import('./page/types.js').Cookie['options']} options
3372
- */
3373
- set(name, value, options) {
3374
- const illegal_characters = name.match(INVALID_COOKIE_CHARACTER_REGEX);
3375
- if (illegal_characters) console.warn(`The cookie name "${name}" will be invalid in SvelteKit 3.0 as it contains ${illegal_characters.join(" and ")}. See RFC 2616 for more details https://datatracker.ietf.org/doc/html/rfc2616#section-2.2`);
3376
- validate_options(options);
3377
- set_internal(name, value, {
3378
- ...defaults,
3379
- ...options
3380
- });
3381
- },
3382
- /**
3383
- * @param {string} name
3384
- * @param {import('./page/types.js').Cookie['options']} options
3385
- */
3386
- delete(name, options) {
3387
- validate_options(options);
3388
- cookies.set(name, "", {
3389
- ...options,
3390
- maxAge: 0
3391
- });
3392
- },
3393
- /**
3394
- * @param {string} name
3395
- * @param {string} value
3396
- * @param {import('./page/types.js').Cookie['options']} options
3397
- */
3398
- serialize(name, value, options) {
3399
- validate_options(options);
3400
- let path = options.path;
3401
- if (!options.domain || options.domain === url.hostname) {
3402
- if (!normalized_url) throw new Error("Cannot serialize cookies until after the route is determined");
3403
- path = resolve(normalized_url, path);
3404
- }
3405
- return (0, import_cookie.serialize)(name, value, {
3406
- ...defaults,
3407
- ...options,
3408
- path
3409
- });
3410
- }
3411
- };
3412
- /**
3413
- * @param {URL} destination
3414
- * @param {string | null} header
3415
- */
3416
- function get_cookie_header(destination, header) {
3417
- /** @type {Record<string, string>} */
3418
- const combined_cookies = { ...initial_cookies };
3419
- for (const cookie of new_cookies.values()) {
3420
- if (!domain_matches(destination.hostname, cookie.options.domain)) continue;
3421
- if (!path_matches(destination.pathname, cookie.options.path)) continue;
3422
- const encoder = cookie.options.encode || encodeURIComponent;
3423
- combined_cookies[cookie.name] = encoder(cookie.value);
3424
- }
3425
- if (header) {
3426
- const parsed = (0, import_cookie.parse)(header, { decode: (value) => value });
3427
- for (const name in parsed) combined_cookies[name] = parsed[name];
3428
- }
3429
- return Object.entries(combined_cookies).map(([name, value]) => `${name}=${value}`).join("; ");
3430
- }
3431
- /** @type {Array<() => void>} */
3432
- const internal_queue = [];
3433
- /**
3434
- * @param {string} name
3435
- * @param {string} value
3436
- * @param {import('./page/types.js').Cookie['options']} options
3437
- */
3438
- function set_internal(name, value, options) {
3439
- if (!normalized_url) {
3440
- internal_queue.push(() => set_internal(name, value, options));
3441
- return;
3442
- }
3443
- let path = options.path;
3444
- if (!options.domain || options.domain === url.hostname) path = resolve(normalized_url, path);
3445
- const cookie_key = generate_cookie_key(options.domain, path, name);
3446
- const cookie = {
3447
- name,
3448
- value,
3449
- options: {
3450
- ...options,
3451
- path
3452
- }
3453
- };
3454
- new_cookies.set(cookie_key, cookie);
3455
- }
3456
- /**
3457
- * @param {import('types').TrailingSlash} trailing_slash
3458
- */
3459
- function set_trailing_slash(trailing_slash) {
3460
- normalized_url = normalize_path(url.pathname, trailing_slash);
3461
- internal_queue.forEach((fn) => fn());
3462
- }
3463
- return {
3464
- cookies,
3465
- new_cookies,
3466
- get_cookie_header,
3467
- set_internal,
3468
- set_trailing_slash
3469
- };
3470
- }
3471
- /**
3472
- * @param {string} hostname
3473
- * @param {string} [constraint]
3474
- */
3475
- function domain_matches(hostname, constraint) {
3476
- if (!constraint) return true;
3477
- const normalized = constraint[0] === "." ? constraint.slice(1) : constraint;
3478
- if (hostname === normalized) return true;
3479
- return hostname.endsWith("." + normalized);
3480
- }
3481
- /**
3482
- * @param {string} path
3483
- * @param {string} [constraint]
3484
- */
3485
- function path_matches(path, constraint) {
3486
- if (!constraint) return true;
3487
- const normalized = constraint.endsWith("/") ? constraint.slice(0, -1) : constraint;
3488
- if (path === normalized) return true;
3489
- return path.startsWith(normalized + "/");
3490
- }
3491
- /**
3492
- * @param {Headers} headers
3493
- * @param {MapIterator<import('./page/types.js').Cookie>} cookies
3494
- */
3495
- function add_cookies_to_headers(headers, cookies) {
3496
- for (const new_cookie of cookies) {
3497
- const { name, value, options } = new_cookie;
3498
- headers.append("set-cookie", (0, import_cookie.serialize)(name, value, options));
3499
- if (options.path.endsWith(".html")) {
3500
- const path = add_data_suffix(options.path);
3501
- headers.append("set-cookie", (0, import_cookie.serialize)(name, value, {
3502
- ...options,
3503
- path
3504
- }));
3505
- }
3506
- }
3507
- }
3508
- //#endregion
3509
- //#region ../../node_modules/.bun/set-cookie-parser@3.1.0/node_modules/set-cookie-parser/lib/set-cookie.js
3510
- var defaultParseOptions = {
3511
- decodeValues: true,
3512
- map: false,
3513
- silent: false,
3514
- split: "auto"
3515
- };
3516
- function isForbiddenKey(key) {
3517
- return typeof key !== "string" || key in {};
3518
- }
3519
- function createNullObj() {
3520
- return Object.create(null);
3521
- }
3522
- function isNonEmptyString(str) {
3523
- return typeof str === "string" && !!str.trim();
3524
- }
3525
- function parseString(setCookieValue, options) {
3526
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
3527
- var parsed = parseNameValuePair(parts.shift());
3528
- var name = parsed.name;
3529
- var value = parsed.value;
3530
- options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
3531
- if (isForbiddenKey(name)) return null;
3532
- try {
3533
- value = options.decodeValues ? decodeURIComponent(value) : value;
3534
- } catch (e) {
3535
- console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.", e);
3536
- }
3537
- var cookie = createNullObj();
3538
- cookie.name = name;
3539
- cookie.value = value;
3540
- parts.forEach(function(part) {
3541
- var sides = part.split("=");
3542
- var key = sides.shift().trimLeft().toLowerCase();
3543
- if (isForbiddenKey(key)) return;
3544
- var value = sides.join("=");
3545
- if (key === "expires") cookie.expires = new Date(value);
3546
- else if (key === "max-age") {
3547
- var n = parseInt(value, 10);
3548
- if (!Number.isNaN(n)) cookie.maxAge = n;
3549
- } else if (key === "secure") cookie.secure = true;
3550
- else if (key === "httponly") cookie.httpOnly = true;
3551
- else if (key === "samesite") cookie.sameSite = value;
3552
- else if (key === "partitioned") cookie.partitioned = true;
3553
- else if (key) cookie[key] = value;
3554
- });
3555
- return cookie;
3556
- }
3557
- function parseNameValuePair(nameValuePairStr) {
3558
- var name = "";
3559
- var value = "";
3560
- var nameValueArr = nameValuePairStr.split("=");
3561
- if (nameValueArr.length > 1) {
3562
- name = nameValueArr.shift();
3563
- value = nameValueArr.join("=");
3564
- } else value = nameValuePairStr;
3565
- return {
3566
- name,
3567
- value
3568
- };
3569
- }
3570
- function parseSetCookie(input, options) {
3571
- options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
3572
- if (!input) if (!options.map) return [];
3573
- else return createNullObj();
3574
- if (input.headers) if (typeof input.headers.getSetCookie === "function") input = input.headers.getSetCookie();
3575
- else if (input.headers["set-cookie"]) input = input.headers["set-cookie"];
3576
- else {
3577
- var sch = input.headers[Object.keys(input.headers).find(function(key) {
3578
- return key.toLowerCase() === "set-cookie";
3579
- })];
3580
- if (!sch && input.headers.cookie && !options.silent) console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.");
3581
- input = sch;
3582
- }
3583
- var split = options.split;
3584
- var isArray = Array.isArray(input);
3585
- if (split === "auto") split = !isArray;
3586
- if (!isArray) input = [input];
3587
- input = input.filter(isNonEmptyString);
3588
- if (split) input = input.map(splitCookiesString).flat();
3589
- if (!options.map) return input.map(function(str) {
3590
- return parseString(str, options);
3591
- }).filter(Boolean);
3592
- else {
3593
- var cookies = createNullObj();
3594
- return input.reduce(function(cookies, str) {
3595
- var cookie = parseString(str, options);
3596
- if (cookie && !isForbiddenKey(cookie.name)) cookies[cookie.name] = cookie;
3597
- return cookies;
3598
- }, cookies);
3599
- }
3600
- }
3601
- function splitCookiesString(cookiesString) {
3602
- if (Array.isArray(cookiesString)) return cookiesString;
3603
- if (typeof cookiesString !== "string") return [];
3604
- var cookiesStrings = [];
3605
- var pos = 0;
3606
- var start;
3607
- var ch;
3608
- var lastComma;
3609
- var nextStart;
3610
- var cookiesSeparatorFound;
3611
- function skipWhitespace() {
3612
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
3613
- return pos < cookiesString.length;
3614
- }
3615
- function notSpecialChar() {
3616
- ch = cookiesString.charAt(pos);
3617
- return ch !== "=" && ch !== ";" && ch !== ",";
3618
- }
3619
- while (pos < cookiesString.length) {
3620
- start = pos;
3621
- cookiesSeparatorFound = false;
3622
- while (skipWhitespace()) {
3623
- ch = cookiesString.charAt(pos);
3624
- if (ch === ",") {
3625
- lastComma = pos;
3626
- pos += 1;
3627
- skipWhitespace();
3628
- nextStart = pos;
3629
- while (pos < cookiesString.length && notSpecialChar()) pos += 1;
3630
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
3631
- cookiesSeparatorFound = true;
3632
- pos = nextStart;
3633
- cookiesStrings.push(cookiesString.substring(start, lastComma));
3634
- start = pos;
3635
- } else pos = lastComma + 1;
3636
- } else pos += 1;
3637
- }
3638
- if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
3639
- }
3640
- return cookiesStrings;
3641
- }
3642
- parseSetCookie.parseSetCookie = parseSetCookie;
3643
- parseSetCookie.parse = parseSetCookie;
3644
- parseSetCookie.parseString = parseString;
3645
- parseSetCookie.splitCookiesString = splitCookiesString;
3646
- //#endregion
3647
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/fetch.js
3648
- /**
3649
- * @param {{
3650
- * event: import('@sveltejs/kit').RequestEvent;
3651
- * options: import('types').SSROptions;
3652
- * manifest: import('@sveltejs/kit').SSRManifest;
3653
- * state: import('types').SSRState;
3654
- * get_cookie_header: (url: URL, header: string | null) => string;
3655
- * set_internal: (name: string, value: string, opts: import('./page/types.js').Cookie['options']) => void;
3656
- * }} opts
3657
- * @returns {typeof fetch}
3658
- */
3659
- function create_fetch({ event, options, manifest, state, get_cookie_header, set_internal }) {
3660
- /**
3661
- * @type {typeof fetch}
3662
- */
3663
- const server_fetch = async (info, init) => {
3664
- const original_request = normalize_fetch_input(info, init, event.url);
3665
- let mode = (info instanceof Request ? info.mode : init?.mode) ?? "cors";
3666
- let credentials = (info instanceof Request ? info.credentials : init?.credentials) ?? "same-origin";
3667
- return options.hooks.handleFetch({
3668
- event,
3669
- request: original_request,
3670
- fetch: async (info, init) => {
3671
- const request = normalize_fetch_input(info, init, event.url);
3672
- const url = new URL(request.url);
3673
- if (!request.headers.has("origin")) request.headers.set("origin", event.url.origin);
3674
- if (info !== original_request) {
3675
- mode = (info instanceof Request ? info.mode : init?.mode) ?? "cors";
3676
- credentials = (info instanceof Request ? info.credentials : init?.credentials) ?? "same-origin";
3677
- }
3678
- if ((request.method === "GET" || request.method === "HEAD") && (mode === "no-cors" && url.origin !== event.url.origin || url.origin === event.url.origin)) request.headers.delete("origin");
3679
- const decoded = decodeURIComponent(url.pathname);
3680
- if (url.origin !== event.url.origin || base && decoded !== base && !decoded.startsWith(`${base}/`)) {
3681
- if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
3682
- const cookie = get_cookie_header(url, request.headers.get("cookie"));
3683
- if (cookie) request.headers.set("cookie", cookie);
3684
- }
3685
- return fetch(request);
3686
- }
3687
- const prefix = assets || base;
3688
- const filename = (decoded.startsWith(prefix) ? decoded.slice(prefix.length) : decoded).slice(1);
3689
- const filename_html = `${filename}/index.html`;
3690
- const is_asset = manifest.assets.has(filename) || filename in manifest._.server_assets;
3691
- const is_asset_html = manifest.assets.has(filename_html) || filename_html in manifest._.server_assets;
3692
- if (is_asset || is_asset_html) {
3693
- const file = is_asset ? filename : filename_html;
3694
- if (state.read) {
3695
- const type = is_asset ? manifest.mimeTypes[filename.slice(filename.lastIndexOf("."))] : "text/html";
3696
- return new Response(state.read(file), { headers: type ? { "content-type": type } : {} });
3697
- } else if (read_implementation && file in manifest._.server_assets) {
3698
- const length = manifest._.server_assets[file];
3699
- const type = manifest.mimeTypes[file.slice(file.lastIndexOf("."))];
3700
- return new Response(read_implementation(file), { headers: {
3701
- "Content-Length": "" + length,
3702
- "Content-Type": type
3703
- } });
3704
- }
3705
- return await fetch(request);
3706
- }
3707
- if (has_prerendered_path(manifest, base + decoded)) return await fetch(request);
3708
- if (credentials !== "omit") {
3709
- const cookie = get_cookie_header(url, request.headers.get("cookie"));
3710
- if (cookie) request.headers.set("cookie", cookie);
3711
- const authorization = event.request.headers.get("authorization");
3712
- if (authorization && !request.headers.has("authorization")) request.headers.set("authorization", authorization);
3713
- }
3714
- if (!request.headers.has("accept")) request.headers.set("accept", "*/*");
3715
- if (!request.headers.has("accept-language")) request.headers.set("accept-language", event.request.headers.get("accept-language"));
3716
- const response = await internal_fetch(request, options, manifest, state);
3717
- const set_cookie = response.headers.get("set-cookie");
3718
- if (set_cookie) for (const str of splitCookiesString(set_cookie)) {
3719
- const { name, value, ...options } = parseString(str, { decodeValues: false });
3720
- set_internal(name, value, {
3721
- path: options.path ?? (url.pathname.split("/").slice(0, -1).join("/") || "/"),
3722
- encode: (value) => value,
3723
- ...options
3724
- });
3725
- }
3726
- return response;
3727
- }
3728
- });
3729
- };
3730
- return (input, init) => {
3731
- const response = server_fetch(input, init);
3732
- response.catch(noop);
3733
- return response;
3734
- };
3735
- }
3736
- /**
3737
- * @param {RequestInfo | URL} info
3738
- * @param {RequestInit | undefined} init
3739
- * @param {URL} url
3740
- */
3741
- function normalize_fetch_input(info, init, url) {
3742
- if (info instanceof Request) return info;
3743
- return new Request(typeof info === "string" ? new URL(info, url) : info, init);
3744
- }
3745
- /**
3746
- * @param {Request} request
3747
- * @param {import('types').SSROptions} options
3748
- * @param {import('@sveltejs/kit').SSRManifest} manifest
3749
- * @param {import('types').SSRState} state
3750
- * @returns {Promise<Response>}
3751
- */
3752
- async function internal_fetch(request, options, manifest, state) {
3753
- if (request.signal) {
3754
- if (request.signal.aborted) throw new DOMException("The operation was aborted.", "AbortError");
3755
- let remove_abort_listener = noop;
3756
- /** @type {Promise<never>} */
3757
- const abort_promise = new Promise((_, reject) => {
3758
- const on_abort = () => {
3759
- reject(new DOMException("The operation was aborted.", "AbortError"));
3760
- };
3761
- request.signal.addEventListener("abort", on_abort, { once: true });
3762
- remove_abort_listener = () => request.signal.removeEventListener("abort", on_abort);
3763
- });
3764
- const result = await Promise.race([respond(request, options, manifest, {
3765
- ...state,
3766
- depth: state.depth + 1
3767
- }), abort_promise]);
3768
- remove_abort_listener();
3769
- return result;
3770
- } else return await respond(request, options, manifest, {
3771
- ...state,
3772
- depth: state.depth + 1
3773
- });
3774
- }
3775
- //#endregion
3776
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/env_module.js
3777
- /** @type {string} */
3778
- var body;
3779
- /** @type {string} */
3780
- var etag;
3781
- /** @type {Headers} */
3782
- var headers;
3783
- /**
3784
- * @param {Request} request
3785
- * @returns {Response}
3786
- */
3787
- function get_public_env(request) {
3788
- body ??= `export const env=${JSON.stringify(public_env)}`;
3789
- etag ??= `W/${Date.now()}`;
3790
- headers ??= new Headers({
3791
- "content-type": "application/javascript; charset=utf-8",
3792
- etag
3793
- });
3794
- if (request.headers.get("if-none-match") === etag) return new Response(void 0, {
3795
- status: 304,
3796
- headers
3797
- });
3798
- return new Response(body, { headers });
3799
- }
3800
- //#endregion
3801
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/respond.js
3802
- /** @import { RequestState, SSRNode } from 'types' */
3803
- /** @type {import('types').RequiredResolveOptions['transformPageChunk']} */
3804
- var default_transform = ({ html }) => html;
3805
- /** @type {import('types').RequiredResolveOptions['filterSerializedResponseHeaders']} */
3806
- var default_filter = () => false;
3807
- /** @type {import('types').RequiredResolveOptions['preload']} */
3808
- var default_preload = ({ type }) => type === "js" || type === "css";
3809
- var page_methods = new Set([
3810
- "GET",
3811
- "HEAD",
3812
- "POST"
3813
- ]);
3814
- var allowed_page_methods = new Set([
3815
- "GET",
3816
- "HEAD",
3817
- "OPTIONS"
3818
- ]);
3819
- var respond = propagate_context(internal_respond);
3820
- /**
3821
- * @param {Request} request
3822
- * @param {import('types').SSROptions} options
3823
- * @param {import('@sveltejs/kit').SSRManifest} manifest
3824
- * @param {import('types').SSRState} state
3825
- * @returns {Promise<Response>}
3826
- */
3827
- async function internal_respond(request, options, manifest, state) {
3828
- /** URL but stripped from the potential `/__data.json` suffix and its search param */
3829
- const url = new URL(request.url);
3830
- const is_route_resolution_request = has_resolution_suffix(url.pathname);
3831
- const is_data_request = has_data_suffix(url.pathname);
3832
- const remote_id = get_remote_id(url);
3833
- {
3834
- const request_origin = request.headers.get("origin");
3835
- if (remote_id) {
3836
- if (request.method !== "GET" && request_origin !== url.origin) return json({ message: "Cross-site remote requests are forbidden" }, { status: 403 });
3837
- } else if (options.csrf_check_origin) {
3838
- if (is_form_content_type(request) && (request.method === "POST" || request.method === "PUT" || request.method === "PATCH" || request.method === "DELETE") && request_origin !== url.origin && (!request_origin || !options.csrf_trusted_origins.includes(request_origin))) {
3839
- const message = `Cross-site ${request.method} form submissions are forbidden`;
3840
- const opts = { status: 403 };
3841
- if (request.headers.get("accept") === "application/json") return json({ message }, opts);
3842
- return text(message, opts);
3843
- }
3844
- }
3845
- }
3846
- if (options.hash_routing && url.pathname !== base + "/" && url.pathname !== "/[fallback]") return text("Not found", { status: 404 });
3847
- /** @type {boolean[] | undefined} */
3848
- let invalidated_data_nodes;
3849
- if (is_route_resolution_request)
3850
- /**
3851
- * If the request is for a route resolution, first modify the URL, then continue as normal
3852
- * for path resolution, then return the route object as a JS file.
3853
- */
3854
- url.pathname = strip_resolution_suffix(url.pathname);
3855
- else if (is_data_request) {
3856
- url.pathname = strip_data_suffix(url.pathname) + (url.searchParams.get("x-sveltekit-trailing-slash") === "1" ? "/" : "") || "/";
3857
- url.searchParams.delete(TRAILING_SLASH_PARAM);
3858
- invalidated_data_nodes = url.searchParams.get(INVALIDATED_PARAM)?.split("").map((node) => node === "1");
3859
- url.searchParams.delete(INVALIDATED_PARAM);
3860
- } else if (remote_id) {
3861
- url.pathname = request.headers.get("x-sveltekit-pathname") ?? base;
3862
- url.search = request.headers.get("x-sveltekit-search") ?? "";
3863
- }
3864
- /** @type {Record<string, string>} */
3865
- const headers = {};
3866
- const { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash } = get_cookies(request, url);
3867
- /** @type {RequestState} */
3868
- const event_state = {
3869
- prerendering: state.prerendering,
3870
- transport: options.hooks.transport,
3871
- handleValidationError: options.hooks.handleValidationError,
3872
- tracing: { record_span },
3873
- remote: {
3874
- data: null,
3875
- forms: null,
3876
- refreshes: null,
3877
- requested: null,
3878
- reconnects: null,
3879
- batches: null,
3880
- live_iterators: null
3881
- },
3882
- is_in_remote_function: false,
3883
- is_in_render: false,
3884
- is_in_universal_load: false
3885
- };
3886
- /** @type {import('@sveltejs/kit').RequestEvent} */
3887
- const event = {
3888
- cookies,
3889
- fetch: null,
3890
- getClientAddress: state.getClientAddress || (() => {
3891
- throw new Error(`@sveltejs/adapter-node does not specify getClientAddress. Please raise an issue`);
3892
- }),
3893
- locals: {},
3894
- params: {},
3895
- platform: state.platform,
3896
- request,
3897
- route: { id: null },
3898
- setHeaders: (new_headers) => {
3899
- for (const key in new_headers) {
3900
- const lower = key.toLowerCase();
3901
- const value = new_headers[key];
3902
- if (lower === "set-cookie") throw new Error("Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies");
3903
- else if (lower in headers) if (lower === "server-timing") headers[lower] += ", " + value;
3904
- else throw new Error(`"${key}" header is already set`);
3905
- else {
3906
- headers[lower] = value;
3907
- if (state.prerendering && lower === "cache-control") state.prerendering.cache = value;
3908
- }
3909
- }
3910
- },
3911
- url,
3912
- isDataRequest: is_data_request,
3913
- isSubRequest: state.depth > 0,
3914
- isRemoteRequest: !!remote_id
3915
- };
3916
- event.fetch = create_fetch({
3917
- event,
3918
- options,
3919
- manifest,
3920
- state,
3921
- get_cookie_header,
3922
- set_internal
3923
- });
3924
- if (state.emulator?.platform) event.platform = await state.emulator.platform({
3925
- config: {},
3926
- prerender: !!state.prerendering?.fallback
3927
- });
3928
- /** @type {string | null} */
3929
- let resolved_path = url.pathname;
3930
- if (!remote_id) {
3931
- const prerendering_reroute_state = state.prerendering?.inside_reroute;
3932
- try {
3933
- if (state.prerendering) state.prerendering.inside_reroute = true;
3934
- resolved_path = await options.hooks.reroute({
3935
- url: new URL(url),
3936
- fetch: event.fetch
3937
- }) ?? url.pathname;
3938
- } catch {
3939
- return text("Internal Server Error", { status: 500 });
3940
- } finally {
3941
- if (state.prerendering) state.prerendering.inside_reroute = prerendering_reroute_state;
3942
- }
3943
- }
3944
- /** @type {import('types').RequiredResolveOptions} */
3945
- let resolve_opts = {
3946
- transformPageChunk: default_transform,
3947
- filterSerializedResponseHeaders: default_filter,
3948
- preload: default_preload
3949
- };
3950
- /** @type {import('types').TrailingSlash} */
3951
- let trailing_slash = "never";
3952
- /** @type {PageNodes | undefined} */
3953
- let page_nodes;
3954
- try {
3955
- resolved_path = decode_pathname(resolved_path);
3956
- } catch {
3957
- resolved_path = null;
3958
- return await handle();
3959
- }
3960
- if (resolved_path !== decode_pathname(url.pathname) && !state.prerendering?.fallback && has_prerendered_path(manifest, resolved_path)) {
3961
- const url = new URL(request.url);
3962
- url.pathname = is_data_request ? add_data_suffix(resolved_path) : is_route_resolution_request ? add_resolution_suffix(resolved_path) : resolved_path;
3963
- try {
3964
- const response = await fetch(url, request);
3965
- const headers = new Headers(response.headers);
3966
- if (headers.has("content-encoding")) {
3967
- headers.delete("content-encoding");
3968
- headers.delete("content-length");
3969
- }
3970
- return new Response(response.body, {
3971
- headers,
3972
- status: response.status,
3973
- statusText: response.statusText
3974
- });
3975
- } catch (error) {
3976
- return await handle_fatal_error(event, event_state, options, error);
3977
- }
3978
- }
3979
- /** @type {import('types').SSRRoute | null} */
3980
- let route = null;
3981
- if (base && !state.prerendering?.fallback) {
3982
- if (!resolved_path.startsWith(base)) return text("Not found", { status: 404 });
3983
- resolved_path = resolved_path.slice(base.length) || "/";
3984
- }
3985
- if (is_route_resolution_request) return resolve_route(resolved_path, new URL(request.url), manifest);
3986
- if (resolved_path === `/_app/env.js`) return get_public_env(request);
3987
- if (!remote_id && resolved_path.startsWith(`/_app`)) {
3988
- const headers = new Headers();
3989
- headers.set("cache-control", "public, max-age=0, must-revalidate");
3990
- return text("Not found", {
3991
- status: 404,
3992
- headers
3993
- });
3994
- }
3995
- if (!state.prerendering?.fallback) {
3996
- const matchers = await manifest._.matchers();
3997
- const result = find_route(resolved_path, manifest._.routes, matchers);
3998
- if (result) {
3999
- route = result.route;
4000
- event.route = { id: route.id };
4001
- event.params = result.params;
4002
- }
4003
- }
4004
- try {
4005
- page_nodes = route?.page ? new PageNodes(await load_page_nodes(route.page, manifest)) : void 0;
4006
- if (route && !remote_id) {
4007
- if (url.pathname === base || url.pathname === base + "/") trailing_slash = "always";
4008
- else if (page_nodes) trailing_slash = page_nodes.trailing_slash();
4009
- else if (route.endpoint) trailing_slash = (await route.endpoint()).trailingSlash ?? "never";
4010
- if (!is_data_request) {
4011
- const normalized = normalize_path(url.pathname, trailing_slash);
4012
- if (normalized !== url.pathname && !state.prerendering?.fallback) return new Response(void 0, {
4013
- status: 308,
4014
- headers: {
4015
- "x-sveltekit-normalize": "1",
4016
- location: (normalized.startsWith("//") ? url.origin + normalized : normalized) + (url.search === "?" ? "" : url.search)
4017
- }
4018
- });
4019
- }
4020
- if (state.before_handle || state.emulator?.platform) {
4021
- let config = {};
4022
- /** @type {import('types').PrerenderOption} */
4023
- let prerender = false;
4024
- if (route.endpoint) {
4025
- const node = await route.endpoint();
4026
- config = node.config ?? config;
4027
- prerender = node.prerender ?? prerender;
4028
- } else if (page_nodes) {
4029
- config = page_nodes.get_config() ?? config;
4030
- prerender = page_nodes.prerender();
4031
- }
4032
- if (state.emulator?.platform) event.platform = await state.emulator.platform({
4033
- config,
4034
- prerender
4035
- });
4036
- if (state.before_handle) return await state.before_handle(event, config, prerender, handle);
4037
- }
4038
- }
4039
- return await handle();
4040
- } catch (e) {
4041
- if (e instanceof Redirect) try {
4042
- const response = is_data_request || remote_id ? redirect_json_response(e) : route?.page && is_action_json_request(event) ? action_json_redirect(e) : redirect_response(e.status, e.location);
4043
- add_cookies_to_headers(response.headers, new_cookies.values());
4044
- return response;
4045
- } catch (err) {
4046
- return await handle_fatal_error(event, event_state, options, err);
4047
- }
4048
- return await handle_fatal_error(event, event_state, options, e);
4049
- }
4050
- async function handle() {
4051
- set_trailing_slash(trailing_slash);
4052
- if (state.prerendering && !state.prerendering.fallback && !state.prerendering.inside_reroute) disable_search(url);
4053
- const response = await record_span({
4054
- name: "sveltekit.handle.root",
4055
- attributes: {
4056
- "http.route": event.route.id || "unknown",
4057
- "http.method": event.request.method,
4058
- "http.url": event.url.href,
4059
- "sveltekit.is_sub_request": event.isSubRequest
4060
- },
4061
- fn: async (root_span) => {
4062
- const traced_event = {
4063
- ...event,
4064
- tracing: {
4065
- enabled: false,
4066
- root: root_span,
4067
- current: root_span
4068
- }
4069
- };
4070
- return await with_request_store({
4071
- event: traced_event,
4072
- state: event_state
4073
- }, () => options.hooks.handle({
4074
- event: traced_event,
4075
- resolve: (event, opts) => {
4076
- return record_span({
4077
- name: "sveltekit.resolve",
4078
- attributes: { "http.route": event.route.id || "unknown" },
4079
- fn: (resolve_span) => {
4080
- return with_request_store(null, () => resolve(merge_tracing(event, resolve_span), page_nodes, opts).then((response) => {
4081
- for (const key in headers) {
4082
- const value = headers[key];
4083
- response.headers.set(key, value);
4084
- }
4085
- add_cookies_to_headers(response.headers, new_cookies.values());
4086
- if (state.prerendering && event.route.id !== null) response.headers.set("x-sveltekit-routeid", encodeURI(event.route.id));
4087
- resolve_span.setAttributes({
4088
- "http.response.status_code": response.status,
4089
- "http.response.body.size": response.headers.get("content-length") || "unknown"
4090
- });
4091
- return response;
4092
- }));
4093
- }
4094
- });
4095
- }
4096
- }));
4097
- }
4098
- });
4099
- if (response.status === 200 && response.headers.has("etag")) {
4100
- let if_none_match_value = request.headers.get("if-none-match");
4101
- if (if_none_match_value?.startsWith("W/\"")) if_none_match_value = if_none_match_value.substring(2);
4102
- const etag = response.headers.get("etag");
4103
- if (if_none_match_value === etag) {
4104
- const headers = new Headers({ etag });
4105
- for (const key of [
4106
- "cache-control",
4107
- "content-location",
4108
- "date",
4109
- "expires",
4110
- "vary",
4111
- "set-cookie"
4112
- ]) {
4113
- const value = response.headers.get(key);
4114
- if (value) headers.set(key, value);
4115
- }
4116
- return new Response(void 0, {
4117
- status: 304,
4118
- headers
4119
- });
4120
- }
4121
- }
4122
- if (is_data_request && response.status >= 300 && response.status <= 308) {
4123
- const location = response.headers.get("location");
4124
- if (location) return redirect_json_response(new Redirect(response.status, location));
4125
- }
4126
- return response;
4127
- }
4128
- /**
4129
- * @param {import('@sveltejs/kit').RequestEvent} event
4130
- * @param {PageNodes | undefined} page_nodes
4131
- * @param {import('@sveltejs/kit').ResolveOptions} [opts]
4132
- */
4133
- async function resolve(event, page_nodes, opts) {
4134
- try {
4135
- if (opts) resolve_opts = {
4136
- transformPageChunk: opts.transformPageChunk || default_transform,
4137
- filterSerializedResponseHeaders: opts.filterSerializedResponseHeaders || default_filter,
4138
- preload: opts.preload || default_preload
4139
- };
4140
- if (resolved_path === null) return await respond_with_error({
4141
- event,
4142
- event_state,
4143
- options,
4144
- manifest,
4145
- state,
4146
- status: 400,
4147
- error: new SvelteKitError(400, "Malformed URI", `Failed to decode URI: ${event.url.pathname}`),
4148
- resolve_opts
4149
- });
4150
- if (options.hash_routing || state.prerendering?.fallback) return await render_response({
4151
- event,
4152
- event_state,
4153
- options,
4154
- manifest,
4155
- state,
4156
- page_config: {
4157
- ssr: false,
4158
- csr: true
4159
- },
4160
- status: 200,
4161
- error: null,
4162
- branch: [{
4163
- node: await manifest._.nodes[0](),
4164
- data: null,
4165
- server_data: null
4166
- }],
4167
- fetched: [],
4168
- resolve_opts,
4169
- data_serializer: server_data_serializer(event, event_state, options)
4170
- });
4171
- if (remote_id) return await handle_remote_call(event, event_state, options, manifest, remote_id);
4172
- if (route) {
4173
- const method = event.request.method;
4174
- /** @type {Response} */
4175
- let response;
4176
- if (is_data_request) response = await render_data(event, event_state, route, options, manifest, state, invalidated_data_nodes, trailing_slash);
4177
- else if (route.endpoint && (!route.page || is_endpoint_request(event))) response = await render_endpoint(event, event_state, await route.endpoint(), state);
4178
- else if (route.page) if (!page_nodes) throw new Error("page_nodes not found. This should never happen");
4179
- else if (page_methods.has(method)) response = await render_page(event, event_state, route.page, options, manifest, state, page_nodes, resolve_opts);
4180
- else {
4181
- const allowed_methods = new Set(allowed_page_methods);
4182
- if ((await manifest._.nodes[route.page.leaf]())?.server?.actions) allowed_methods.add("POST");
4183
- if (method === "OPTIONS") response = new Response(null, {
4184
- status: 204,
4185
- headers: { allow: Array.from(allowed_methods.values()).join(", ") }
4186
- });
4187
- else response = method_not_allowed([...allowed_methods].reduce((acc, curr) => {
4188
- acc[curr] = true;
4189
- return acc;
4190
- }, {}), method);
4191
- }
4192
- else throw new Error("Route is neither page nor endpoint. This should never happen");
4193
- if (request.method === "GET" && route.page && route.endpoint) {
4194
- const vary = response.headers.get("vary")?.split(",")?.map((v) => v.trim().toLowerCase());
4195
- if (!(vary?.includes("accept") || vary?.includes("*"))) {
4196
- response = new Response(response.body, {
4197
- status: response.status,
4198
- statusText: response.statusText,
4199
- headers: new Headers(response.headers)
4200
- });
4201
- response.headers.append("Vary", "Accept");
4202
- }
4203
- }
4204
- return response;
4205
- }
4206
- if (state.error && event.isSubRequest) {
4207
- const headers = new Headers(request.headers);
4208
- headers.set("x-sveltekit-error", "true");
4209
- return await fetch(request, { headers });
4210
- }
4211
- if (state.error) return text("Internal Server Error", { status: 500 });
4212
- if (state.depth === 0) return await respond_with_error({
4213
- event,
4214
- event_state,
4215
- options,
4216
- manifest,
4217
- state,
4218
- status: 404,
4219
- error: new SvelteKitError(404, "Not Found", `Not found: ${event.url.pathname}`),
4220
- resolve_opts
4221
- });
4222
- if (state.prerendering) return text("not found", { status: 404 });
4223
- const response = await fetch(request);
4224
- return new Response(response.body, response);
4225
- } catch (e) {
4226
- return await handle_fatal_error(event, event_state, options, e);
4227
- } finally {
4228
- event.cookies.set = () => {
4229
- throw new Error("Cannot use `cookies.set(...)` after the response has been generated");
4230
- };
4231
- event.setHeaders = () => {
4232
- throw new Error("Cannot use `setHeaders(...)` after the response has been generated");
4233
- };
4234
- }
4235
- }
4236
- }
4237
- /**
4238
- * @param {import('types').PageNodeIndexes} page
4239
- * @param {import('@sveltejs/kit').SSRManifest} manifest
4240
- */
4241
- function load_page_nodes(page, manifest) {
4242
- return Promise.all([...page.layouts.map((n) => n == void 0 ? n : manifest._.nodes[n]()), manifest._.nodes[page.leaf]()]);
4243
- }
4244
- /**
4245
- * It's likely that, in a distributed system, there are spans starting outside the SvelteKit server -- eg.
4246
- * started on the frontend client, or in a service that calls the SvelteKit server. There are standardized
4247
- * ways to represent this context in HTTP headers, so we can extract that context and run our tracing inside of it
4248
- * so that when our traces are exported, they are associated with the correct parent context.
4249
- * @param {typeof internal_respond} fn
4250
- * @returns {typeof internal_respond}
4251
- */
4252
- function propagate_context(fn) {
4253
- return async (req, ...rest) => {
4254
- return fn(req, ...rest);
4255
- };
4256
- }
4257
- //#endregion
4258
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/utils/env.js
4259
- /**
4260
- * @param {Record<string, string>} env
4261
- * @param {string} allowed
4262
- * @param {string} disallowed
4263
- * @returns {Record<string, string>}
4264
- */
4265
- function filter_env(env, allowed, disallowed) {
4266
- return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith(allowed) && (disallowed === "" || !k.startsWith(disallowed))));
4267
- }
4268
- //#endregion
4269
- //#region ../../node_modules/.bun/@sveltejs+kit@2.61.0+3501bccc2e8029bb/node_modules/@sveltejs/kit/src/runtime/server/index.js
4270
- /** @import { PromiseWithResolvers } from '../../utils/promise.js' */
4271
- /** @type {Promise<any>} */
4272
- var init_promise;
4273
- /** @type {Promise<void> | null} */
4274
- var current = null;
4275
- var Server = class {
4276
- /** @type {import('types').SSROptions} */
4277
- #options;
4278
- /** @type {import('@sveltejs/kit').SSRManifest} */
4279
- #manifest;
4280
- /** @param {import('@sveltejs/kit').SSRManifest} manifest */
4281
- constructor(manifest) {
4282
- /** @type {import('types').SSROptions} */
4283
- this.#options = options;
4284
- this.#manifest = manifest;
4285
- if (IN_WEBCONTAINER) {
4286
- const respond = this.respond.bind(this);
4287
- /** @type {typeof respond} */
4288
- this.respond = async (...args) => {
4289
- const { promise, resolve } = with_resolvers();
4290
- const previous = current;
4291
- current = promise;
4292
- await previous;
4293
- return respond(...args).finally(resolve);
4294
- };
4295
- }
4296
- }
4297
- /**
4298
- * @param {import('@sveltejs/kit').ServerInitOptions} opts
4299
- */
4300
- async init({ env, read }) {
4301
- const { env_public_prefix, env_private_prefix } = this.#options;
4302
- set_private_env(filter_env(env, env_private_prefix, env_public_prefix));
4303
- set_public_env(filter_env(env, env_public_prefix, env_private_prefix));
4304
- if (read) {
4305
- /** @param {string} file */
4306
- const wrapped_read = (file) => {
4307
- const result = read(file);
4308
- if (result instanceof ReadableStream) return result;
4309
- else return new ReadableStream({ async start(controller) {
4310
- try {
4311
- const stream = await Promise.resolve(result);
4312
- if (!stream) {
4313
- controller.close();
4314
- return;
4315
- }
4316
- const reader = stream.getReader();
4317
- while (true) {
4318
- const { done, value } = await reader.read();
4319
- if (done) break;
4320
- controller.enqueue(value);
4321
- }
4322
- controller.close();
4323
- } catch (error) {
4324
- controller.error(error);
4325
- }
4326
- } });
4327
- };
4328
- set_read_implementation(wrapped_read);
4329
- }
4330
- await (init_promise ??= (async () => {
4331
- try {
4332
- const module = await get_hooks();
4333
- this.#options.hooks = {
4334
- handle: module.handle || (({ event, resolve }) => resolve(event)),
4335
- handleError: module.handleError || (({ status, error, event }) => {
4336
- const error_message = format_server_error(status, error, event);
4337
- console.error(error_message);
4338
- }),
4339
- handleFetch: module.handleFetch || (({ request, fetch }) => fetch(request)),
4340
- handleValidationError: module.handleValidationError || (({ issues }) => {
4341
- console.error("Remote function schema validation failed:", issues);
4342
- return { message: "Bad Request" };
4343
- }),
4344
- reroute: module.reroute || noop,
4345
- transport: module.transport || {}
4346
- };
4347
- module.transport && Object.fromEntries(Object.entries(module.transport).map(([k, v]) => [k, v.decode]));
4348
- if (module.init) await module.init();
4349
- } catch (e) {
4350
- throw e;
4351
- }
4352
- })());
4353
- }
4354
- /**
4355
- * @param {Request} request
4356
- * @param {import('types').RequestOptions} options
4357
- */
4358
- async respond(request, options) {
4359
- return respond(request, this.#options, this.#manifest, {
4360
- ...options,
4361
- error: false,
4362
- depth: 0
4363
- });
4364
- }
4365
- };
4366
-
4367
- export { Server };
4368
- //# sourceMappingURL=index.js.map