@nanoforge-dev/editor 0.0.2-beta.4555742 → 0.0.2-beta.d5ae009

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 (278) hide show
  1. package/dist/client/_app/immutable/assets/{0.DH-_Mfdo.css → 0.CjGIZXZs.css} +1 -1
  2. package/dist/client/_app/immutable/assets/0.CjGIZXZs.css.br +0 -0
  3. package/dist/client/_app/immutable/assets/0.CjGIZXZs.css.gz +0 -0
  4. package/dist/client/_app/immutable/chunks/{B5BlQANa2.js → B4w9-fYM2.js} +1 -1
  5. package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.br +0 -0
  6. package/dist/client/_app/immutable/chunks/B4w9-fYM2.js.gz +0 -0
  7. package/dist/client/_app/immutable/chunks/{BpsTeBMk2.js → BS47D1Yd2.js} +1 -1
  8. package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.br +0 -0
  9. package/dist/client/_app/immutable/chunks/BS47D1Yd2.js.gz +0 -0
  10. package/dist/client/_app/immutable/chunks/{NRUHq-_72.js → BWDRzheF2.js} +1 -1
  11. package/dist/client/_app/immutable/chunks/BWDRzheF2.js.br +0 -0
  12. package/dist/client/_app/immutable/chunks/BWDRzheF2.js.gz +0 -0
  13. package/dist/client/_app/immutable/chunks/{YpKUr6uE2.js → BZqFHUa32.js} +1 -1
  14. package/dist/client/_app/immutable/chunks/BZqFHUa32.js.br +0 -0
  15. package/dist/client/_app/immutable/chunks/BZqFHUa32.js.gz +0 -0
  16. package/dist/client/_app/immutable/chunks/{CwcsJxhS2.js → Bk9DeFcz2.js} +1 -1
  17. package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.br +0 -0
  18. package/dist/client/_app/immutable/chunks/Bk9DeFcz2.js.gz +0 -0
  19. package/dist/client/_app/immutable/chunks/{D8Kk1mwW.js → BlGyHMDZ.js} +1 -1
  20. package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.br +0 -0
  21. package/dist/client/_app/immutable/chunks/BlGyHMDZ.js.gz +0 -0
  22. package/dist/client/_app/immutable/chunks/{DRG11iPc2.js → BwWAgYKi2.js} +1 -1
  23. package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.br +3 -0
  24. package/dist/client/_app/immutable/chunks/BwWAgYKi2.js.gz +0 -0
  25. package/dist/client/_app/immutable/chunks/{CHHvlOt72.js → BzGBrbo22.js} +1 -1
  26. package/dist/client/_app/immutable/chunks/BzGBrbo22.js.br +0 -0
  27. package/dist/client/_app/immutable/chunks/BzGBrbo22.js.gz +0 -0
  28. package/dist/client/_app/immutable/chunks/{D5kSEVHd2.js → C7bUlFLk2.js} +1 -1
  29. package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.br +0 -0
  30. package/dist/client/_app/immutable/chunks/C7bUlFLk2.js.gz +0 -0
  31. package/dist/client/_app/immutable/chunks/{B41NCdmk2.js → C83DJP9w2.js} +1 -1
  32. package/dist/client/_app/immutable/chunks/C83DJP9w2.js.br +0 -0
  33. package/dist/client/_app/immutable/chunks/C83DJP9w2.js.gz +0 -0
  34. package/dist/client/_app/immutable/chunks/CBO6kAED.js +293 -0
  35. package/dist/client/_app/immutable/chunks/CBO6kAED.js.br +0 -0
  36. package/dist/client/_app/immutable/chunks/CBO6kAED.js.gz +0 -0
  37. package/dist/client/_app/immutable/chunks/{Wjj5hwVF2.js → CKei9xPI2.js} +2 -2
  38. package/dist/client/_app/immutable/chunks/CKei9xPI2.js.br +0 -0
  39. package/dist/client/_app/immutable/chunks/CKei9xPI2.js.gz +0 -0
  40. package/dist/client/_app/immutable/chunks/{Bd4_wRJp.js → CT3UgqBA.js} +1 -1
  41. package/dist/client/_app/immutable/chunks/CT3UgqBA.js.br +0 -0
  42. package/dist/client/_app/immutable/chunks/CT3UgqBA.js.gz +0 -0
  43. package/dist/client/_app/immutable/chunks/{CuyfOZTk2.js → CnhOha0Z2.js} +1 -1
  44. package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.br +0 -0
  45. package/dist/client/_app/immutable/chunks/CnhOha0Z2.js.gz +0 -0
  46. package/dist/client/_app/immutable/chunks/{QKmwP2RH.js → DEqe37pD.js} +2 -2
  47. package/dist/client/_app/immutable/chunks/DEqe37pD.js.br +0 -0
  48. package/dist/client/_app/immutable/chunks/DEqe37pD.js.gz +0 -0
  49. package/dist/client/_app/immutable/chunks/{Bfd-bGrZ2.js → DFXoGGM32.js} +1 -1
  50. package/dist/client/_app/immutable/chunks/DFXoGGM32.js.br +0 -0
  51. package/dist/client/_app/immutable/chunks/DFXoGGM32.js.gz +0 -0
  52. package/dist/client/_app/immutable/chunks/{VTYQK3v_2.js → DH-ThjiG2.js} +2 -2
  53. package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.br +0 -0
  54. package/dist/client/_app/immutable/chunks/DH-ThjiG2.js.gz +0 -0
  55. package/dist/client/_app/immutable/chunks/{CNh34b3X2.js → DHQLzCjY2.js} +1 -1
  56. package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.br +0 -0
  57. package/dist/client/_app/immutable/chunks/DHQLzCjY2.js.gz +0 -0
  58. package/dist/client/_app/immutable/chunks/DNftsqR1.js +1 -0
  59. package/dist/client/_app/immutable/chunks/DNftsqR1.js.br +0 -0
  60. package/dist/client/_app/immutable/chunks/DNftsqR1.js.gz +0 -0
  61. package/dist/client/_app/immutable/chunks/{D8HnIxQ42.js → DT8Ddh1L2.js} +1 -1
  62. package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.br +0 -0
  63. package/dist/client/_app/immutable/chunks/DT8Ddh1L2.js.gz +0 -0
  64. package/dist/client/_app/immutable/chunks/{Cx3ix-dL2.js → DuDzfUqN2.js} +1 -1
  65. package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.br +0 -0
  66. package/dist/client/_app/immutable/chunks/DuDzfUqN2.js.gz +0 -0
  67. package/dist/client/_app/immutable/chunks/{BgJkaMKb.js → FP7xnvT4.js} +1 -1
  68. package/dist/client/_app/immutable/chunks/FP7xnvT4.js.br +0 -0
  69. package/dist/client/_app/immutable/chunks/FP7xnvT4.js.gz +0 -0
  70. package/dist/client/_app/immutable/chunks/{56adh18U.js → Fu4roQAh.js} +1 -1
  71. package/dist/client/_app/immutable/chunks/Fu4roQAh.js.br +0 -0
  72. package/dist/client/_app/immutable/chunks/Fu4roQAh.js.gz +0 -0
  73. package/dist/client/_app/immutable/chunks/{CeXz7yzc.js → MAzZK5cV.js} +1 -1
  74. package/dist/client/_app/immutable/chunks/MAzZK5cV.js.br +0 -0
  75. package/dist/client/_app/immutable/chunks/MAzZK5cV.js.gz +0 -0
  76. package/dist/client/_app/immutable/chunks/ZLGReh43.js +3 -0
  77. package/dist/client/_app/immutable/chunks/ZLGReh43.js.br +0 -0
  78. package/dist/client/_app/immutable/chunks/ZLGReh43.js.gz +0 -0
  79. package/dist/client/_app/immutable/chunks/{CN98h0cI2.js → mRVEsFly2.js} +1 -1
  80. package/dist/client/_app/immutable/chunks/mRVEsFly2.js.br +0 -0
  81. package/dist/client/_app/immutable/chunks/mRVEsFly2.js.gz +0 -0
  82. package/dist/client/_app/immutable/chunks/{DJq0R92X.js → orCHVlgT.js} +1 -1
  83. package/dist/client/_app/immutable/chunks/orCHVlgT.js.br +0 -0
  84. package/dist/client/_app/immutable/chunks/orCHVlgT.js.gz +0 -0
  85. package/dist/client/_app/immutable/chunks/{Drjp27p72.js → uo5fvlDn2.js} +1 -1
  86. package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.br +0 -0
  87. package/dist/client/_app/immutable/chunks/uo5fvlDn2.js.gz +0 -0
  88. package/dist/client/_app/immutable/entry/{app.CgTzSlEq.js → app.D7Qhroat.js} +2 -2
  89. package/dist/client/_app/immutable/entry/app.D7Qhroat.js.br +0 -0
  90. package/dist/client/_app/immutable/entry/app.D7Qhroat.js.gz +0 -0
  91. package/dist/client/_app/immutable/entry/start.Di1N-dwj.js +1 -0
  92. package/dist/client/_app/immutable/entry/start.Di1N-dwj.js.br +1 -0
  93. package/dist/client/_app/immutable/entry/start.Di1N-dwj.js.gz +0 -0
  94. package/dist/client/_app/immutable/nodes/{0.HtU0ZBoq.js → 0.CW6BAtSC.js} +1 -1
  95. package/dist/client/_app/immutable/nodes/0.CW6BAtSC.js.br +0 -0
  96. package/dist/client/_app/immutable/nodes/0.CW6BAtSC.js.gz +0 -0
  97. package/dist/client/_app/immutable/nodes/{1.Hn-xzJlH.js → 1.D2petaCJ.js} +1 -1
  98. package/dist/client/_app/immutable/nodes/1.D2petaCJ.js.br +1 -0
  99. package/dist/client/_app/immutable/nodes/1.D2petaCJ.js.gz +0 -0
  100. package/dist/client/_app/immutable/nodes/{10.5lzO6BCT.js → 10.C4HJc4cu.js} +2 -2
  101. package/dist/client/_app/immutable/nodes/10.C4HJc4cu.js.br +0 -0
  102. package/dist/client/_app/immutable/nodes/10.C4HJc4cu.js.gz +0 -0
  103. package/dist/client/_app/immutable/nodes/{2.BrjqCWm0.js → 2.DnluJ7u1.js} +1 -1
  104. package/dist/client/_app/immutable/nodes/2.DnluJ7u1.js.br +0 -0
  105. package/dist/client/_app/immutable/nodes/2.DnluJ7u1.js.gz +0 -0
  106. package/dist/client/_app/immutable/nodes/{9.Cr9x1mlV.js → 9.BGu6EfS2.js} +1 -1
  107. package/dist/client/_app/immutable/nodes/9.BGu6EfS2.js.br +0 -0
  108. package/dist/client/_app/immutable/nodes/9.BGu6EfS2.js.gz +0 -0
  109. package/dist/client/_app/version.json +1 -1
  110. package/dist/client/_app/version.json.br +0 -0
  111. package/dist/client/_app/version.json.gz +0 -0
  112. package/dist/server/chunks/{0-CQDIDss4.js → 0-D3qhveQr.js} +6 -6
  113. package/dist/server/chunks/{0-CQDIDss4.js.map → 0-D3qhveQr.js.map} +1 -1
  114. package/dist/server/chunks/{1-CYyEReIL.js → 1-DC3uFVBV.js} +6 -6
  115. package/dist/server/chunks/{1-CYyEReIL.js.map → 1-DC3uFVBV.js.map} +1 -1
  116. package/dist/server/chunks/{10-D0mJxn8S.js → 10-BVrMXTW8.js} +10 -10
  117. package/dist/server/chunks/10-BVrMXTW8.js.map +1 -0
  118. package/dist/server/chunks/{2-COraPbPF.js → 2-DX6ErPQr.js} +9 -9
  119. package/dist/server/chunks/{2-COraPbPF.js.map → 2-DX6ErPQr.js.map} +1 -1
  120. package/dist/server/chunks/{3-CcIZ_M60.js → 3-BFIclw2U.js} +114 -3
  121. package/dist/server/chunks/3-BFIclw2U.js.map +1 -0
  122. package/dist/server/chunks/{4-DyArZX6h.js → 4-Cim4b7CK.js} +10 -2
  123. package/dist/server/chunks/4-Cim4b7CK.js.map +1 -0
  124. package/dist/server/chunks/{5-DVrv6Zto.js → 5-DQ3o1uwg.js} +10 -2
  125. package/dist/server/chunks/5-DQ3o1uwg.js.map +1 -0
  126. package/dist/server/chunks/{6-AD0Ee23-.js → 6-CadULKrR.js} +35 -2
  127. package/dist/server/chunks/6-CadULKrR.js.map +1 -0
  128. package/dist/server/chunks/{7-CuJ7XfzT.js → 7-CxjbU6zP.js} +2 -2
  129. package/dist/server/chunks/{7-CuJ7XfzT.js.map → 7-CxjbU6zP.js.map} +1 -1
  130. package/dist/server/chunks/{8-CRPOubhA.js → 8-D8RKzhKE.js} +10 -2
  131. package/dist/server/chunks/8-D8RKzhKE.js.map +1 -0
  132. package/dist/server/chunks/{9-Bk259Pew.js → 9-C-mS2ReE.js} +10 -10
  133. package/dist/server/chunks/9-C-mS2ReE.js.map +1 -0
  134. package/dist/server/chunks/{_layout.svelte-CP4jFwsK.js → _layout.svelte-uX7XiB9K.js} +6 -6
  135. package/dist/server/chunks/_layout.svelte-uX7XiB9K.js.map +1 -0
  136. package/dist/server/chunks/{_page.svelte-DNEdNwOa.js → _page.svelte-ByqpfNPC.js} +7 -7
  137. package/dist/server/chunks/{_page.svelte-DNEdNwOa.js.map → _page.svelte-ByqpfNPC.js.map} +1 -1
  138. package/dist/server/chunks/{_page.svelte-aqS45KvA.js → _page.svelte-C1HyEKjK.js} +9 -9
  139. package/dist/server/chunks/{_page.svelte-aqS45KvA.js.map → _page.svelte-C1HyEKjK.js.map} +1 -1
  140. package/dist/server/chunks/{_page.svelte-C7h5iN8e.js → _page.svelte-CF_EqiqV.js} +6 -6
  141. package/dist/server/chunks/{_page.svelte-C7h5iN8e.js.map → _page.svelte-CF_EqiqV.js.map} +1 -1
  142. package/dist/server/chunks/{_server.ts-BYvWhjnh.js → _server.ts-DFC8ij6-.js} +2 -2
  143. package/dist/server/chunks/{_server.ts-BYvWhjnh.js.map → _server.ts-DFC8ij6-.js.map} +1 -1
  144. package/dist/server/chunks/{_server.ts-CrY08U-x.js → _server.ts-DvvWYqRd.js} +2 -2
  145. package/dist/server/chunks/{_server.ts-CrY08U-x.js.map → _server.ts-DvvWYqRd.js.map} +1 -1
  146. package/dist/server/chunks/app-DUeJj5RD.js.map +1 -1
  147. package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -1
  148. package/dist/server/chunks/{client-BpCCCb_o.js → client-DhMlbh2c.js} +3 -3
  149. package/dist/server/chunks/client-DhMlbh2c.js.map +1 -0
  150. package/dist/server/chunks/decorate-CQ_JIwqD.js +11 -0
  151. package/dist/server/chunks/decorate-CQ_JIwqD.js.map +1 -0
  152. package/dist/server/chunks/{error-CFpEevfM.js → error-Df0LgzGi.js} +8 -8
  153. package/dist/server/chunks/error-Df0LgzGi.js.map +1 -0
  154. package/dist/server/chunks/{error.svelte-DoUr3CqI.js → error.svelte-DM_iE9zL.js} +3 -3
  155. package/dist/server/chunks/{error.svelte-DoUr3CqI.js.map → error.svelte-DM_iE9zL.js.map} +1 -1
  156. package/dist/server/chunks/{events-DeYJGjCt.js → events-Bhh2w-5S.js} +1063 -1059
  157. package/dist/server/chunks/events-Bhh2w-5S.js.map +1 -0
  158. package/dist/server/chunks/{exports-8wSs4fiF.js → exports-CWOtdr_a.js} +4 -4
  159. package/dist/server/chunks/{exports-8wSs4fiF.js.map → exports-CWOtdr_a.js.map} +1 -1
  160. package/dist/server/chunks/format-DGOlJxF5.js.map +1 -1
  161. package/dist/server/chunks/{hooks.server-CG8Cy27D.js → hooks.server-CKcZoYoT.js} +4 -4
  162. package/dist/server/chunks/{hooks.server-CG8Cy27D.js.map → hooks.server-CKcZoYoT.js.map} +1 -1
  163. package/dist/server/chunks/hooks.universal-DhGFdBkK.js.map +1 -1
  164. package/dist/server/chunks/{internal-eM0YTBgj.js → internal-DsA4iYdx.js} +2 -2
  165. package/dist/server/chunks/{internal-eM0YTBgj.js.map → internal-DsA4iYdx.js.map} +1 -1
  166. package/dist/server/chunks/{internal-DXl_jCjC.js → internal2-CRbvkWND.js} +10 -10
  167. package/dist/server/chunks/internal2-CRbvkWND.js.map +1 -0
  168. package/dist/server/chunks/{loader-circle-zqx69BdD.js → loader-circle-CFNm9vip.js} +2 -2
  169. package/dist/server/chunks/{loader-circle-zqx69BdD.js.map → loader-circle-CFNm9vip.js.map} +1 -1
  170. package/dist/server/chunks/{logo-BCJKEF48.js → logo-C422_TRA.js} +4 -4
  171. package/dist/server/chunks/{logo-BCJKEF48.js.map → logo-C422_TRA.js.map} +1 -1
  172. package/dist/server/chunks/{project-loader-Q4QyAH66.js → project-loader-3ZC0fkGL.js} +4 -4
  173. package/dist/server/chunks/{project-loader-Q4QyAH66.js.map → project-loader-3ZC0fkGL.js.map} +1 -1
  174. package/dist/server/chunks/{request-handler-D-qbwxhh.js → request-handler-DIqttORJ.js} +10 -5
  175. package/dist/server/chunks/request-handler-DIqttORJ.js.map +1 -0
  176. package/dist/server/chunks/runtime-CDHWD9vo.js.map +1 -1
  177. package/dist/server/chunks/{schemas-CyYMWYjZ.js → schemas-iHhaE-aY.js} +163 -104
  178. package/dist/server/chunks/schemas-iHhaE-aY.js.map +1 -0
  179. package/dist/server/chunks/{session-CmQRz9-0.js → session-DLCjVGKo.js} +2 -2
  180. package/dist/server/chunks/{session-CmQRz9-0.js.map → session-DLCjVGKo.js.map} +1 -1
  181. package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -1
  182. package/dist/server/chunks/{state-UEnMVrEd.js → state-DHSP_spt.js} +3 -3
  183. package/dist/server/chunks/{state-UEnMVrEd.js.map → state-DHSP_spt.js.map} +1 -1
  184. package/dist/server/index.js +10 -8
  185. package/dist/server/index.js.map +1 -1
  186. package/dist/server/manifest.js +20 -20
  187. package/dist/server/manifest.js.map +1 -1
  188. package/package.json +7 -5
  189. package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.br +0 -0
  190. package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.gz +0 -0
  191. package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
  192. package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
  193. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
  194. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
  195. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
  196. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
  197. package/dist/client/_app/immutable/chunks/BAdxhMRi.js +0 -1
  198. package/dist/client/_app/immutable/chunks/BAdxhMRi.js.br +0 -0
  199. package/dist/client/_app/immutable/chunks/BAdxhMRi.js.gz +0 -0
  200. package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.br +0 -0
  201. package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.gz +0 -0
  202. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
  203. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
  204. package/dist/client/_app/immutable/chunks/BgJkaMKb.js.br +0 -0
  205. package/dist/client/_app/immutable/chunks/BgJkaMKb.js.gz +0 -0
  206. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
  207. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
  208. package/dist/client/_app/immutable/chunks/BtTZd70i.js +0 -293
  209. package/dist/client/_app/immutable/chunks/BtTZd70i.js.br +0 -0
  210. package/dist/client/_app/immutable/chunks/BtTZd70i.js.gz +0 -0
  211. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
  212. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
  213. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
  214. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
  215. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
  216. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
  217. package/dist/client/_app/immutable/chunks/CeXz7yzc.js.br +0 -3
  218. package/dist/client/_app/immutable/chunks/CeXz7yzc.js.gz +0 -0
  219. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
  220. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
  221. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
  222. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
  223. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
  224. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
  225. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
  226. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
  227. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
  228. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
  229. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
  230. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
  231. package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
  232. package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
  233. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
  234. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
  235. package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
  236. package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
  237. package/dist/client/_app/immutable/chunks/H2okCofJ.js +0 -3
  238. package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
  239. package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
  240. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
  241. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
  242. package/dist/client/_app/immutable/chunks/QKmwP2RH.js.br +0 -0
  243. package/dist/client/_app/immutable/chunks/QKmwP2RH.js.gz +0 -0
  244. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
  245. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
  246. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
  247. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
  248. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
  249. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
  250. package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.br +0 -0
  251. package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.gz +0 -0
  252. package/dist/client/_app/immutable/entry/start.DeuMoHin.js +0 -1
  253. package/dist/client/_app/immutable/entry/start.DeuMoHin.js.br +0 -1
  254. package/dist/client/_app/immutable/entry/start.DeuMoHin.js.gz +0 -0
  255. package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.br +0 -0
  256. package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.gz +0 -0
  257. package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.br +0 -0
  258. package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.gz +0 -0
  259. package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.br +0 -0
  260. package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.gz +0 -0
  261. package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.br +0 -0
  262. package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.gz +0 -0
  263. package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.br +0 -0
  264. package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.gz +0 -0
  265. package/dist/server/chunks/10-D0mJxn8S.js.map +0 -1
  266. package/dist/server/chunks/3-CcIZ_M60.js.map +0 -1
  267. package/dist/server/chunks/4-DyArZX6h.js.map +0 -1
  268. package/dist/server/chunks/5-DVrv6Zto.js.map +0 -1
  269. package/dist/server/chunks/6-AD0Ee23-.js.map +0 -1
  270. package/dist/server/chunks/8-CRPOubhA.js.map +0 -1
  271. package/dist/server/chunks/9-Bk259Pew.js.map +0 -1
  272. package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +0 -1
  273. package/dist/server/chunks/client-BpCCCb_o.js.map +0 -1
  274. package/dist/server/chunks/error-CFpEevfM.js.map +0 -1
  275. package/dist/server/chunks/events-DeYJGjCt.js.map +0 -1
  276. package/dist/server/chunks/internal-DXl_jCjC.js.map +0 -1
  277. package/dist/server/chunks/request-handler-D-qbwxhh.js.map +0 -1
  278. package/dist/server/chunks/schemas-CyYMWYjZ.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { n as HttpError, r as Redirect, t as ActionFailure } from "./internal-eM0YTBgj.js";
1
+ import { n as HttpError, r as Redirect, t as ActionFailure } from "./internal-DsA4iYdx.js";
2
2
  //#region node_modules/.pnpm/esm-env@1.2.2/node_modules/esm-env/dev-fallback.js
3
3
  const node_env = globalThis.process?.env?.NODE_ENV;
4
4
  var dev_fallback_default = node_env && !node_env.toLowerCase().startsWith("prod");
5
5
  //#endregion
6
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/runtime/utils.js
6
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/utils.js
7
7
  const text_encoder = new TextEncoder();
8
8
  //#endregion
9
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/index.js
9
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/index.js
10
10
  /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
11
11
  /**
12
12
  * @template {number} TNumber
@@ -154,4 +154,4 @@ function fail(status, data) {
154
154
  //#endregion
155
155
  export { redirect as a, json as i, fail as n, text as o, isRedirect as r, error as t };
156
156
 
157
- //# sourceMappingURL=exports-8wSs4fiF.js.map
157
+ //# sourceMappingURL=exports-CWOtdr_a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports-8wSs4fiF.js","names":["DEV"],"sources":["../../../node_modules/.pnpm/esm-env@1.2.2/node_modules/esm-env/dev-fallback.js","../../../node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/runtime/utils.js","../../../node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["const node_env = globalThis.process?.env?.NODE_ENV;\nexport default node_env && !node_env.toLowerCase().startsWith('prod');\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid or the location cannot be used as a header value.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"x_google_ignoreList":[0,1,2],"mappings":";;AAAA,MAAM,WAAW,WAAW,SAAS,KAAK;AAC1C,IAAA,uBAAe,YAAY,CAAC,SAAS,YAAY,EAAE,WAAW,MAAM;;;ACCpE,MAAa,eAAe,IAAI,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwE5C,SAAgB,MAAM,QAAQ,MAAM;CACnC,IAAiBA,yBAAS,MAAM,MAAM,KAAK,SAAS,OAAO,SAAS,MACnE,MAAM,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ules/esm-env/dev-fallback.js","../../../node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/utils.js","../../../node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["const node_env = globalThis.process?.env?.NODE_ENV;\nexport default node_env && !node_env.toLowerCase().startsWith('prod');\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid or the location cannot be used as a header value.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix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AAI,QAAQ,MAAM,OAAO;CACzC,IAAI,CAAC,QAAQ,IAAI,gBAAgB,GAAG;EACnC,MAAM,UAAU,aAAa,OAAO,IAAI;EACxC,QAAQ,IAAI,kBAAkB,QAAQ,WAAW,SAAS,CAAC;EAC3D,OAAO,IAAI,SAAS,SAAS;GAC5B,GAAG;GACH;EACD,CAAC;CACF;CAEA,OAAO,IAAI,SAAS,MAAM;EACzB,GAAG;EACH;CACD,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,KAAK,QAAQ,MAAM;CAElC,OAAO,IAAI,cAAc,QAAQ,IAAI;AACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"format-DGOlJxF5.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/chunks/format.js"],"sourcesContent":["//#region \\0virtual:env/static/public\n/** @type {import('$env/static/public').PUBLIC_DOCS_URL} */\nvar PUBLIC_DOCS_URL = \"https://docs.nanoforge.eu\";\n/** @type {import('$env/static/public').PUBLIC_MODE} */\nvar PUBLIC_MODE = \"ONLINE\";\n/** @type {import('$env/static/public').PUBLIC_PM_URL} */\nvar PUBLIC_PM_URL = \"https://projects.nanoforge.eu\";\n/** @type {import('$env/static/public').PUBLIC_LANDING_URL} */\nvar PUBLIC_LANDING_URL = \"https://nanoforge.eu\";\n//#endregion\n//#region src/lib/utils/http/client.ts\nvar HttpClient = class {\n\t_baseUrl;\n\t_baseOptions;\n\t_middlewares;\n\tconstructor(baseUrl, options) {\n\t\tthis._baseUrl = baseUrl;\n\t\tthis._baseOptions = options ?? { headers: { \"Content-Type\": \"application/json\" } };\n\t\tthis._middlewares = [];\n\t}\n\tget(path, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"GET\"\n\t\t\t});\n\t\t});\n\t}\n\tpost(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tput(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tpatch(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, async (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tdelete(path, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"DELETE\"\n\t\t\t});\n\t\t});\n\t}\n\tuseMiddlewares(...middlewares) {\n\t\tfor (const middleware of middlewares) this._middlewares.push(middleware);\n\t\treturn this;\n\t}\n\t_request(path, request) {\n\t\treturn fetch(path, request);\n\t}\n\t_applyMiddlewares(path, options, callback) {\n\t\tconst baseParams = {\n\t\t\tpath,\n\t\t\tfullPath: this._getUrl(path),\n\t\t\toptions: {\n\t\t\t\t...this._baseOptions,\n\t\t\t\t...options\n\t\t\t}\n\t\t};\n\t\tconst middlewares = this._middlewares.slice();\n\t\tlet response;\n\t\tconst execution = async (params) => {\n\t\t\tif (!params) params = baseParams;\n\t\t\tconst middleware = middlewares.shift();\n\t\t\tif (!middleware) response = await callback(params.fullPath, params.options);\n\t\t\telse response = await middleware(params, execution) ?? response;\n\t\t\treturn response;\n\t\t};\n\t\treturn execution(baseParams);\n\t}\n\t_getUrl(path) {\n\t\treturn `${this._baseUrl}${path}`;\n\t}\n};\n//#endregion\n//#region src/lib/utils/format.ts\nvar WordList = class {\n\twords;\n\tconstructor(words) {\n\t\tthis.words = words;\n\t}\n\ttoKebab() {\n\t\treturn this.words.join(\"-\");\n\t}\n\ttoPascal() {\n\t\treturn this.words.map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(\"\");\n\t}\n\ttoCamel() {\n\t\treturn this.words.map((word, i) => i === 0 ? word.toLowerCase() : word.charAt(0).toUpperCase() + word.slice(1)).join(\"\");\n\t}\n\ttoSnake() {\n\t\treturn this.words.join(\"_\");\n\t}\n};\nvar toWords = (str) => {\n\treturn str.replace(/([a-z])([A-Z])/g, \"$1 $2\").replace(/([A-Z]+)([A-Z][a-z])/g, \"$1 $2\").replace(/[-_]+/g, \" \").trim().split(/\\s+/).filter(Boolean);\n};\nvar fromKebab = (str) => new WordList(str.split(\"-\"));\nvar fromPascal = (str) => new WordList(str.split(/(?=[A-Z])/).map((word) => word.toLowerCase()));\nvar fromCamel = (str) => new WordList(str.split(/(?=[A-Z])/).map((word) => word.toLowerCase()));\nvar fromSnake = (str) => new WordList(str.split(\"_\"));\nvar fromAll = (str) => new WordList(toWords(str).map((word) => word.toLowerCase()));\nvar formatFrom = {\n\tkebab: fromKebab,\n\tpascal: fromPascal,\n\tcamel: fromCamel,\n\tsnake: fromSnake,\n\tall: fromAll\n};\n//#endregion\nexport { PUBLIC_MODE as a, PUBLIC_LANDING_URL as i, HttpClient as n, PUBLIC_PM_URL as o, PUBLIC_DOCS_URL as r, formatFrom as t };\n"],"mappings":";;AAIA,IAAI,cAAc;AAOlB,IAAI,aAAa,MAAM;CACtB;CACA;CACA;CACA,YAAY,SAAS,SAAS;EAC7B,KAAK,WAAW;EAChB,KAAK,eAAe,WAAW,EAAE,SAAS,EAAE,gBAAgB,mBAAmB,EAAE;EACjF,KAAK,eAAe,CAAC;CACtB;CACA,IAAI,MAAM,SAAS;EAClB,OAAO,KAAK,kBAAkB,MAAM,UAAU,SAAS,eAAe;GACrE,OAAO,KAAK,SAAS,SAAS;IAC7B,GAAG;IACH,QAAQ;GACT,CAAC;EACF,CAAC;CACF;CACA,KAAK,MAAM,MAAM,SAA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"sources":["../../../.svelte-kit/adapter-bun/chunks/format.js"],"sourcesContent":["//#region \\0virtual:env/static/public\n/** @type {import('$env/static/public').PUBLIC_DOCS_URL} */\nvar PUBLIC_DOCS_URL = \"https://docs.nanoforge.eu\";\n/** @type {import('$env/static/public').PUBLIC_MODE} */\nvar PUBLIC_MODE = \"ONLINE\";\n/** @type {import('$env/static/public').PUBLIC_PM_URL} */\nvar PUBLIC_PM_URL = \"https://projects.nanoforge.eu\";\n/** @type {import('$env/static/public').PUBLIC_LANDING_URL} */\nvar PUBLIC_LANDING_URL = \"https://nanoforge.eu\";\n//#endregion\n//#region src/lib/utils/http/client.ts\nvar HttpClient = class {\n\t_baseUrl;\n\t_baseOptions;\n\t_middlewares;\n\tconstructor(baseUrl, options) {\n\t\tthis._baseUrl = baseUrl;\n\t\tthis._baseOptions = options ?? { headers: { \"Content-Type\": \"application/json\" } };\n\t\tthis._middlewares = [];\n\t}\n\tget(path, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"GET\"\n\t\t\t});\n\t\t});\n\t}\n\tpost(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tput(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tpatch(path, body, options) {\n\t\treturn this._applyMiddlewares(path, options, async (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\tbody\n\t\t\t});\n\t\t});\n\t}\n\tdelete(path, options) {\n\t\treturn this._applyMiddlewares(path, options, (newPath, newOptions) => {\n\t\t\treturn this._request(newPath, {\n\t\t\t\t...newOptions,\n\t\t\t\tmethod: \"DELETE\"\n\t\t\t});\n\t\t});\n\t}\n\tuseMiddlewares(...middlewares) {\n\t\tfor (const middleware of middlewares) this._middlewares.push(middleware);\n\t\treturn this;\n\t}\n\t_request(path, request) {\n\t\treturn fetch(path, request);\n\t}\n\t_applyMiddlewares(path, options, callback) {\n\t\tconst baseParams = {\n\t\t\tpath,\n\t\t\tfullPath: this._getUrl(path),\n\t\t\toptions: {\n\t\t\t\t...this._baseOptions,\n\t\t\t\t...options\n\t\t\t}\n\t\t};\n\t\tconst middlewares = this._middlewares.slice();\n\t\tlet response;\n\t\tconst execution = async (params) => {\n\t\t\tif (!params) params = baseParams;\n\t\t\tconst middleware = middlewares.shift();\n\t\t\tif (!middleware) response = await callback(params.fullPath, params.options);\n\t\t\telse response = await middleware(params, execution) ?? response;\n\t\t\treturn response;\n\t\t};\n\t\treturn execution(baseParams);\n\t}\n\t_getUrl(path) {\n\t\treturn `${this._baseUrl}${path}`;\n\t}\n};\n//#endregion\n//#region src/lib/utils/format.ts\nvar WordList = class {\n\twords;\n\tconstructor(words) {\n\t\tthis.words = words;\n\t}\n\ttoKebab() {\n\t\treturn this.words.join(\"-\");\n\t}\n\ttoPascal() {\n\t\treturn this.words.map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(\"\");\n\t}\n\ttoCamel() {\n\t\treturn this.words.map((word, i) => i === 0 ? word.toLowerCase() : word.charAt(0).toUpperCase() + word.slice(1)).join(\"\");\n\t}\n\ttoSnake() {\n\t\treturn this.words.join(\"_\");\n\t}\n};\nvar toWords = (str) => {\n\treturn str.replace(/([a-z])([A-Z])/g, \"$1 $2\").replace(/([A-Z]+)([A-Z][a-z])/g, \"$1 $2\").replace(/[-_]+/g, \" \").trim().split(/\\s+/).filter(Boolean);\n};\nvar fromKebab = (str) => new WordList(str.split(\"-\"));\nvar fromPascal = (str) => new WordList(str.split(/(?=[A-Z])/).map((word) => word.toLowerCase()));\nvar fromCamel = (str) => new WordList(str.split(/(?=[A-Z])/).map((word) => word.toLowerCase()));\nvar fromSnake = (str) => new WordList(str.split(\"_\"));\nvar fromAll = (str) => new WordList(toWords(str).map((word) => word.toLowerCase()));\nvar formatFrom = {\n\tkebab: fromKebab,\n\tpascal: fromPascal,\n\tcamel: fromCamel,\n\tsnake: fromSnake,\n\tall: fromAll\n};\n//#endregion\nexport { PUBLIC_MODE as a, PUBLIC_LANDING_URL as i, HttpClient as n, PUBLIC_PM_URL as o, PUBLIC_DOCS_URL as r, formatFrom as t };\n"],"mappings":";;AAIA,IAAI,cAAc;AAOlB,IAAI,aAAa,MAAM;CACtB;CACA;CACA;CACA,YAAY,SAAS,SAAS;EAC7B,KAAK,WAAW;EAChB,KAAK,eAAe,WAAW,EAAE,SAAS,EAAE,gBAAgB,mBAAmB,EAAE;EACjF,KAAK,eAAe,CAAC;CACtB;CACA,IAAI,MAAM,SAAS;EAClB,OAAO,KAAK,kBAAkB,MAAM,UAAU,SAAS,eAAe;GACrE,OAAO,KAAK,SAAS,SAAS;IAC7B,GAAG;IACH,QAAQ;GACT,CAAC;EACF,CAAC;CACF;CACA,KAAK,MAAM,MAAM,SAAS;EACzB,OAAO,KAAK,kBAAkB,MAAM,UAAU,SAAS,eAAe;GACrE,OAAO,KAAK,SAAS,SAAS;IAC7B,GAAG;IACH,QAAQ;IACR;GACD,CAAC;EACF,CAAC;CACF;CACA,IAAI,MAAM,MAAM,SAAS;EACxB,OAAO,KAAK,kBAAkB,MAAM,UAAU,SAAS,eAAe;GACrE,OAAO,KAAK,SAAS,SAAS;IAC7B,GAAG;IACH,QAAQ;IACR;GACD,CAAC;EACF,CAAC;CACF;CACA,MAAM,MAAM,MAAM,SAAS;EAC1B,OAAO,KAAK,kBAAkB,MAAM,SAAS,OAAO,SAAS,eAAe;GAC3E,OAAO,KAAK,SAAS,SAAS;IAC7B,GAAG;IACH,QA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AK,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE;CACxH;CACA,UAAU;EACT,OAAO,KAAK,MAAM,KAAK,GAAG;CAC3B;AACD;AACA,IAAI,WAAW,QAAQ;CACtB,OAAO,IAAI,QAAQ,mBAAmB,OAAO,CAAC,CAAC,QAAQ,yBAAyB,OAAO,CAAC,CAAC,QAAQ,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO;AACnJ;AACA,IAAI,aAAa,QAAQ,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC;AACpD,IAAI,cAAc,QAAQ,IAAI,SAAS,IAAI,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,KAAK,YAAY,CAAC,CAAC;AAC/F,IAAI,aAAa,QAAQ,IAAI,SAAS,IAAI,MAAM,WAAW,CAAC,CAAC,KAAK,SAAS,KAAK,YAAY,CAAC,CAAC;AAC9F,IAAI,aAAa,QAAQ,IAAI,SAAS,IAAI,MAAM,GAAG,CAAC;AACpD,IAAI,WAAW,QAAQ,IAAI,SAAS,QAAQ,GAAG,CAAC,CAAC,KAAK,SAAS,KAAK,YAAY,CAAC,CAAC;AAClF,IAAI,aAAa;CAChB,OAAO;CACP,QAAQ;CACR,OAAO;CACP,OAAO;CACP,KAAK;AACN"}
@@ -1,7 +1,7 @@
1
- import { A as with_request_store, D as merge_tracing, O as get_request_store } from "./internal-DXl_jCjC.js";
2
- import { c as sessionHandle, n as checkAuthorizationHandle } from "./session-CmQRz9-0.js";
1
+ import { A as with_request_store, D as merge_tracing, O as get_request_store } from "./internal2-CRbvkWND.js";
2
+ import { c as sessionHandle, n as checkAuthorizationHandle } from "./session-DLCjVGKo.js";
3
3
  import { a as serverAsyncLocalStorage, i as overwriteServerAsyncLocalStorage, n as getStrategyForUrl, o as shouldRedirect, r as isExcludedByRouteStrategy, t as deLocalizeUrl } from "./runtime-CDHWD9vo.js";
4
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/hooks/sequence.js
4
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/hooks/sequence.js
5
5
  /** @import { Handle, RequestEvent, ResolveOptions } from '@sveltejs/kit' */
6
6
  /** @import { MaybePromise } from 'types' */
7
7
  /**
@@ -359,4 +359,4 @@ var handle = sequence(sessionHandle, handleParaglide, checkAuthorizationHandle);
359
359
  //#endregion
360
360
  export { handle };
361
361
 
362
- //# sourceMappingURL=hooks.server-CG8Cy27D.js.map
362
+ //# sourceMappingURL=hooks.server-CKcZoYoT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.server-CG8Cy27D.js","names":[],"sources":["../../../node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/hooks/sequence.js","../../../.svelte-kit/adapter-bun/entries/hooks.server.js"],"sourcesContent":["/** @import { Handle, RequestEvent, ResolveOptions } from '@sveltejs/kit' */\n/** @import { MaybePromise } from 'types' */\nimport {\n\tmerge_tracing,\n\tget_request_store,\n\twith_request_store\n} from '@sveltejs/kit/internal/server';\n\n/**\n * A helper function for sequencing multiple `handle` calls in a middleware-like manner.\n * The behavior for the `handle` options is as follows:\n * - `transformPageChunk` is applied in reverse order and merged\n * - `preload` is applied in forward order, the first option \"wins\" and no `preload` options after it are called\n * - `filterSerializedResponseHeaders` behaves the same as `preload`\n *\n * ```js\n * /// file: src/hooks.server.js\n * import { sequence } from '@sveltejs/kit/hooks';\n *\n * /// type: import('@sveltejs/kit').Handle\n * async function first({ event, resolve }) {\n * \tconsole.log('first pre-processing');\n * \tconst result = await resolve(event, {\n * \t\ttransformPageChunk: ({ html }) => {\n * \t\t\t// transforms are applied in reverse order\n * \t\t\tconsole.log('first transform');\n * \t\t\treturn html;\n * \t\t},\n * \t\tpreload: () => {\n * \t\t\t// this one wins as it's the first defined in the chain\n * \t\t\tconsole.log('first preload');\n * \t\t\treturn true;\n * \t\t}\n * \t});\n * \tconsole.log('first post-processing');\n * \treturn result;\n * }\n *\n * /// type: import('@sveltejs/kit').Handle\n * async function second({ event, resolve }) {\n * \tconsole.log('second pre-processing');\n * \tconst result = await resolve(event, {\n * \t\ttransformPageChunk: ({ html }) => {\n * \t\t\tconsole.log('second transform');\n * \t\t\treturn html;\n * \t\t},\n * \t\tpreload: () => {\n * \t\t\tconsole.log('second preload');\n * \t\t\treturn true;\n * \t\t},\n * \t\tfilterSerializedResponseHeaders: () => {\n * \t\t\t// this one wins as it's the first defined in the chain\n * \t\t\tconsole.log('second filterSerializedResponseHeaders');\n * \t\t\treturn true;\n * \t\t}\n * \t});\n * \tconsole.log('second post-processing');\n * \treturn result;\n * }\n *\n * export const handle = sequence(first, second);\n * ```\n *\n * The example above would print:\n *\n * ```\n * first pre-processing\n * first preload\n * second pre-processing\n * second filterSerializedResponseHeaders\n * second transform\n * first transform\n * second post-processing\n * first post-processing\n * ```\n *\n * @param {...Handle} handlers The chain of `handle` functions\n * @returns {Handle}\n */\nexport function sequence(...handlers) {\n\tconst length = handlers.length;\n\tif (!length) return ({ event, resolve }) => resolve(event);\n\n\treturn ({ event, resolve }) => {\n\t\tconst { state } = get_request_store();\n\t\treturn apply_handle(0, event, {});\n\n\t\t/**\n\t\t * @param {number} i\n\t\t * @param {RequestEvent} event\n\t\t * @param {ResolveOptions | undefined} parent_options\n\t\t * @returns {MaybePromise<Response>}\n\t\t */\n\t\tfunction apply_handle(i, event, parent_options) {\n\t\t\tconst handle = handlers[i];\n\n\t\t\treturn state.tracing.record_span({\n\t\t\t\tname: `sveltekit.handle.sequenced.${handle.name ? handle.name : i}`,\n\t\t\t\tattributes: {},\n\t\t\t\tfn: async (current) => {\n\t\t\t\t\tconst traced_event = merge_tracing(event, current);\n\t\t\t\t\treturn await with_request_store({ event: traced_event, state }, () =>\n\t\t\t\t\t\thandle({\n\t\t\t\t\t\t\tevent: traced_event,\n\t\t\t\t\t\t\tresolve: (event, options) => {\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['transformPageChunk']} */\n\t\t\t\t\t\t\t\tconst transformPageChunk = async ({ html, done }) => {\n\t\t\t\t\t\t\t\t\tif (options?.transformPageChunk) {\n\t\t\t\t\t\t\t\t\t\thtml = (await options.transformPageChunk({ html, done })) ?? '';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (parent_options?.transformPageChunk) {\n\t\t\t\t\t\t\t\t\t\thtml = (await parent_options.transformPageChunk({ html, done })) ?? '';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn html;\n\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['filterSerializedResponseHeaders']} */\n\t\t\t\t\t\t\t\tconst filterSerializedResponseHeaders =\n\t\t\t\t\t\t\t\t\tparent_options?.filterSerializedResponseHeaders ??\n\t\t\t\t\t\t\t\t\toptions?.filterSerializedResponseHeaders;\n\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['preload']} */\n\t\t\t\t\t\t\t\tconst preload = parent_options?.preload ?? options?.preload;\n\n\t\t\t\t\t\t\t\treturn i < length - 1\n\t\t\t\t\t\t\t\t\t? apply_handle(i + 1, event, {\n\t\t\t\t\t\t\t\t\t\t\ttransformPageChunk,\n\t\t\t\t\t\t\t\t\t\t\tfilterSerializedResponseHeaders,\n\t\t\t\t\t\t\t\t\t\t\tpreload\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: resolve(event, {\n\t\t\t\t\t\t\t\t\t\t\ttransformPageChunk,\n\t\t\t\t\t\t\t\t\t\t\tfilterSerializedResponseHeaders,\n\t\t\t\t\t\t\t\t\t\t\tpreload\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n}\n","import { a as sessionHandle, i as checkAuthorizationHandle } from \"../chunks/session.js\";\nimport { a as serverAsyncLocalStorage, i as overwriteServerAsyncLocalStorage, n as getStrategyForUrl, o as shouldRedirect, r as isExcludedByRouteStrategy, t as deLocalizeUrl } from \"../chunks/runtime.js\";\nimport { sequence } from \"@sveltejs/kit/hooks\";\n//#region src/lib/paraglide/server.js\n/**\n* Server middleware that handles locale-based routing and request processing.\n*\n* Configure `disableAsyncLocalStorage` when generating Paraglide with\n* `paraglideVitePlugin()` or `compile()`, not when calling\n* `paraglideMiddleware()`. Keep AsyncLocalStorage enabled by default and\n* only disable it for runtimes that lack `AsyncLocalStorage` support and\n* guarantee request isolation.\n*\n* This middleware performs several key functions:\n*\n* 1. Determines the locale for the incoming request using configured strategies\n* 2. Handles URL localization and redirects (only for document requests)\n* 3. Maintains locale state using AsyncLocalStorage to prevent request interference\n*\n* When URL strategy is used:\n*\n* - The locale is extracted from the URL for all request types\n* - If URL doesn't match the determined locale, redirects to localized URL (only for document requests)\n* - De-localizes URLs before passing to server (e.g., `/fr/about` → `/about`)\n*\n* @see https://inlang.com/m/gerre34r/library-inlang-paraglideJs/middleware\n*\n* @template T - The return type of the resolve function\n*\n* @param {Request} request - The incoming request object\n* @param {(args: { request: Request, locale: import(\"./runtime.js\").Locale }) => T | Promise<T>} resolve - Function to handle the request. The callback receives:\n* - `request`: A modified request with a delocalized URL when the URL strategy is used (e.g., `/fr/about` → `/about`).\n* If your framework handles URL localization itself (e.g., TanStack Router's `rewrite` option), use the original\n* request instead to avoid redirect loops.\n* - `locale`: The determined locale for this request.\n* @param {{\n* effectiveRequestUrl?: string | URL | ((request: Request) => string | URL),\n* onRedirect?: (response: Response) => void\n* }} [options] - Options to control middleware behavior. `effectiveRequestUrl` sets the effective request URL used for route matching, URL-based locale detection, redirects, and `getUrlOrigin()`.\n* @returns {Promise<Response>}\n*\n* @example\n* ```typescript\n* // Basic usage in metaframeworks like NextJS, SvelteKit, Astro, Nuxt, etc.\n* export const handle = async ({ event, resolve }) => {\n* return paraglideMiddleware(event.request, ({ request, locale }) => {\n* // let the framework further resolve the request\n* return resolve(request);\n* });\n* };\n* ```\n*\n* @example\n* ```typescript\n* // Usage in a framework like Express JS or Hono\n* app.use(async (req, res, next) => {\n* const result = await paraglideMiddleware(req, ({ request, locale }) => {\n* // If a redirect happens this won't be called\n* return next(request);\n* });\n* });\n* ```\n*\n* @example\n* ```typescript\n* // Usage with frameworks that handle URL localization/delocalization themselves\n* //\n* // Some frameworks like TanStack Router handle URL localization and delocalization\n* // themselves via their own rewrite APIs (e.g., `rewrite.input`/`rewrite.output`).\n* //\n* // When the framework handles this, the middleware's URL delocalization is not needed.\n* // Using the modified `request` from the callback would cause a redirect loop because\n* // both the middleware and the framework would attempt to delocalize the URL.\n* //\n* // Solution: Pass the original request to the handler instead of the modified one.\n* // The middleware still handles locale detection, cookies, and AsyncLocalStorage context.\n* //\n* // ❌ WRONG - causes redirect loop when framework handles URL rewriting:\n* // paraglideMiddleware(req, ({ request }) => handler.fetch(request))\n* //\n* // ✅ CORRECT - use original request when framework handles URL localization:\n* // paraglideMiddleware(req, () => handler.fetch(req))\n*\n* * *\n* export default {\n* fetch(req: Request): Promise<Response> {\n* // TanStack Router handles URL rewriting via deLocalizeUrl/localizeUrl\n* // so we pass the original `req` instead of the modified `request`\n* return paraglideMiddleware(req, () => handler.fetch(req))\n* },\n* }\n* ```\n*/\nasync function paraglideMiddleware(request, resolve, options) {\n\tif (!serverAsyncLocalStorage) {\n\t\tconst { AsyncLocalStorage } = await import(\"node:async_hooks\");\n\t\toverwriteServerAsyncLocalStorage(new AsyncLocalStorage());\n\t} else if (!serverAsyncLocalStorage) overwriteServerAsyncLocalStorage(createMockAsyncLocalStorage());\n\tconst url = resolveMiddlewareUrl(request, options?.effectiveRequestUrl);\n\tconst origin = url.origin;\n\tif (isExcludedByRouteStrategy(url.href)) {\n\t\tconst locale = \"en\";\n\t\tconst newRequest = cloneRequestWithFallback(request, url);\n\t\t/** @type {Set<string>} */\n\t\tconst messageCalls = /* @__PURE__ */ new Set();\n\t\treturn await serverAsyncLocalStorage?.run({\n\t\t\tlocale,\n\t\t\torigin,\n\t\t\tmessageCalls\n\t\t}, () => resolve({\n\t\t\tlocale,\n\t\t\trequest: newRequest\n\t\t}));\n\t}\n\tconst strategy = getStrategyForUrl(url.href);\n\tconst decision = await shouldRedirect({\n\t\trequest,\n\t\teffectiveRequestUrl: url\n\t});\n\tconst locale = decision.locale;\n\tif (request.headers.get(\"Sec-Fetch-Dest\") === \"document\" && decision.shouldRedirect && decision.redirectUrl) {\n\t\t/** @type {Record<string, string>} */\n\t\tconst headers = {};\n\t\tif (strategy.includes(\"preferredLanguage\")) headers[\"Vary\"] = \"Accept-Language\";\n\t\tconst response = new Response(null, {\n\t\t\tstatus: 307,\n\t\t\theaders: {\n\t\t\t\tLocation: decision.redirectUrl.href,\n\t\t\t\t...headers\n\t\t\t}\n\t\t});\n\t\toptions?.onRedirect?.(response);\n\t\treturn response;\n\t}\n\tlet newRequest;\n\tif (strategy.includes(\"url\")) newRequest = cloneRequestWithFallback(request, deLocalizeUrl(url));\n\telse newRequest = cloneRequestWithFallback(request, url);\n\t/** @type {Set<string>} */\n\tconst messageCalls = /* @__PURE__ */ new Set();\n\treturn await serverAsyncLocalStorage?.run({\n\t\tlocale,\n\t\torigin,\n\t\tmessageCalls\n\t}, () => resolve({\n\t\tlocale,\n\t\trequest: newRequest\n\t}));\n}\n/**\n* @param {Request} request\n* @param {string | URL | ((request: Request) => string | URL) | undefined} effectiveRequestUrl\n* @returns {URL}\n*/\nfunction resolveMiddlewareUrl(request, effectiveRequestUrl) {\n\tif (typeof effectiveRequestUrl === \"function\") return new URL(effectiveRequestUrl(request), request.url);\n\tif (typeof effectiveRequestUrl === \"string\" || effectiveRequestUrl instanceof URL) return new URL(effectiveRequestUrl, request.url);\n\treturn new URL(request.url);\n}\n/**\n* Some metaframeworks (NextJS) require a new Request object.\n* https://github.com/opral/inlang-paraglide-js/issues/411\n*\n* However, some frameworks (TanStack Start 1.143+) use custom Request\n* implementations that cannot be cloned with `new Request(request)`.\n* https://github.com/opral/paraglide-js/issues/573\n*\n* Effective request URL overrides behind proxies:\n* https://github.com/opral/paraglide-js/issues/652\n*\n* @param {Request} request\n* @param {string | URL} [url]\n* @returns {Request}\n*/\nfunction cloneRequestWithFallback(request, url = request.url) {\n\tconst targetUrl = typeof url === \"string\" ? url : url.href;\n\tif (targetUrl === request.url) try {\n\t\treturn new Request(request.clone());\n\t} catch {\n\t\ttry {\n\t\t\treturn new Request(request);\n\t\t} catch {\n\t\t\treturn request;\n\t\t}\n\t}\n\ttry {\n\t\treturn new Request(targetUrl, request.clone());\n\t} catch {\n\t\ttry {\n\t\t\treturn new Request(targetUrl, request);\n\t\t} catch {\n\t\t\treturn request;\n\t\t}\n\t}\n}\n/**\n* Creates a mock AsyncLocalStorage implementation for environments where\n* native AsyncLocalStorage is not available or disabled.\n*\n* This mock implementation mimics the behavior of the native AsyncLocalStorage\n* but doesn't require the async_hooks module. It's used as a fallback when\n* the runtime does not expose AsyncLocalStorage or when it has been disabled.\n*\n* @returns {import(\"./runtime.js\").ParaglideAsyncLocalStorage}\n*/\nfunction createMockAsyncLocalStorage() {\n\t/** @type {any} */\n\tlet currentStore = void 0;\n\treturn {\n\t\tgetStore() {\n\t\t\treturn currentStore;\n\t\t},\n\t\tasync run(store, callback) {\n\t\t\tcurrentStore = store;\n\t\t\ttry {\n\t\t\t\treturn await callback();\n\t\t\t} finally {\n\t\t\t\tcurrentStore = void 0;\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\n//#region src/hooks.server.ts\nvar handleParaglide = ({ event, resolve }) => paraglideMiddleware(event.request, ({ request, locale }) => {\n\tevent.request = request;\n\treturn resolve(event, { transformPageChunk: ({ html }) => html.replace(\"%paraglide.lang%\", locale) });\n});\nvar handle = sequence(sessionHandle, handleParaglide, checkAuthorizationHandle);\n//#endregion\nexport { handle };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,SAAgB,SAAS,GAAG,UAAU;CACrC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QAAQ,QAAQ,EAAE,OAAO,cAAc,QAAQ,KAAK;CAEzD,QAAQ,EAAE,OAAO,cAAc;EAC9B,MAAM,EAAE,UAAU,kBAAkB;EACpC,OAAO,aAAa,GAAG,OAAO,CAAC,CAAC;;;;;;;EAQhC,SAAS,aAAa,GAAG,OAAO,gBAAgB;GAC/C,MAAM,SAAS,SAAS;GAExB,OAAO,MAAM,QAAQ,YAAY;IAChC,MAAM,8BAA8B,OAAO,OAAO,OAAO,OAAO;IAChE,YAAY,CAAC;IACb,IAAI,OAAO,YAAY;KACtB,MAAM,eAAe,cAAc,OAAO,OAAO;KACjD,OAAO,MAAM,mBAAmB;MAAE,OAAO;MAAc;KAAM,SAC5D,OAAO;MACN,OAAO;MACP,UAAU,OAAO,YAAY;;OAE5B,MAAM,qBAAqB,OAAO,EAAE,MAAM,WAAW;QACpD,IAAI,SAAS,oBACZ,OAAQ,MAAM,QAAQ,mBAAmB;SAAE;SAAM;QAAK,CAAC,KAAM;QAG9D,IAAI,gBAAgB,oBACnB,OAAQ,MAAM,eAAe,mBAAmB;SAAE;SAAM;QAAK,CAAC,KAAM;QAGrE,OAAO;OACR;;OAGA,MAAM,kCACL,gBAAgB,mCAChB,SAAS;;OAGV,MAAM,UAAU,gBAAgB,WAAW,SAAS;OAEpD,OAAO,IAAI,SAAS,IACjB,aAAa,IAAI,GAAG,OAAO;QAC3B;QACA;QACA;OACD,CAAC,IACA,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E,WAAW,KAAK,QAAQ,oBAAoB,MAAM,EAAE,CAAC;AACrG,CAAC;AACD,IAAI,SAAS,SAAS,eAAe,iBAAiB,wBAAwB"}
1
+ {"version":3,"file":"hooks.server-CKcZoYoT.js","names":[],"sources":["../../../node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/hooks/sequence.js","../../../.svelte-kit/adapter-bun/entries/hooks.server.js"],"sourcesContent":["/** @import { Handle, RequestEvent, ResolveOptions } from '@sveltejs/kit' */\n/** @import { MaybePromise } from 'types' */\nimport {\n\tmerge_tracing,\n\tget_request_store,\n\twith_request_store\n} from '@sveltejs/kit/internal/server';\n\n/**\n * A helper function for sequencing multiple `handle` calls in a middleware-like manner.\n * The behavior for the `handle` options is as follows:\n * - `transformPageChunk` is applied in reverse order and merged\n * - `preload` is applied in forward order, the first option \"wins\" and no `preload` options after it are called\n * - `filterSerializedResponseHeaders` behaves the same as `preload`\n *\n * ```js\n * /// file: src/hooks.server.js\n * import { sequence } from '@sveltejs/kit/hooks';\n *\n * /// type: import('@sveltejs/kit').Handle\n * async function first({ event, resolve }) {\n * \tconsole.log('first pre-processing');\n * \tconst result = await resolve(event, {\n * \t\ttransformPageChunk: ({ html }) => {\n * \t\t\t// transforms are applied in reverse order\n * \t\t\tconsole.log('first transform');\n * \t\t\treturn html;\n * \t\t},\n * \t\tpreload: () => {\n * \t\t\t// this one wins as it's the first defined in the chain\n * \t\t\tconsole.log('first preload');\n * \t\t\treturn true;\n * \t\t}\n * \t});\n * \tconsole.log('first post-processing');\n * \treturn result;\n * }\n *\n * /// type: import('@sveltejs/kit').Handle\n * async function second({ event, resolve }) {\n * \tconsole.log('second pre-processing');\n * \tconst result = await resolve(event, {\n * \t\ttransformPageChunk: ({ html }) => {\n * \t\t\tconsole.log('second transform');\n * \t\t\treturn html;\n * \t\t},\n * \t\tpreload: () => {\n * \t\t\tconsole.log('second preload');\n * \t\t\treturn true;\n * \t\t},\n * \t\tfilterSerializedResponseHeaders: () => {\n * \t\t\t// this one wins as it's the first defined in the chain\n * \t\t\tconsole.log('second filterSerializedResponseHeaders');\n * \t\t\treturn true;\n * \t\t}\n * \t});\n * \tconsole.log('second post-processing');\n * \treturn result;\n * }\n *\n * export const handle = sequence(first, second);\n * ```\n *\n * The example above would print:\n *\n * ```\n * first pre-processing\n * first preload\n * second pre-processing\n * second filterSerializedResponseHeaders\n * second transform\n * first transform\n * second post-processing\n * first post-processing\n * ```\n *\n * @param {...Handle} handlers The chain of `handle` functions\n * @returns {Handle}\n */\nexport function sequence(...handlers) {\n\tconst length = handlers.length;\n\tif (!length) return ({ event, resolve }) => resolve(event);\n\n\treturn ({ event, resolve }) => {\n\t\tconst { state } = get_request_store();\n\t\treturn apply_handle(0, event, {});\n\n\t\t/**\n\t\t * @param {number} i\n\t\t * @param {RequestEvent} event\n\t\t * @param {ResolveOptions | undefined} parent_options\n\t\t * @returns {MaybePromise<Response>}\n\t\t */\n\t\tfunction apply_handle(i, event, parent_options) {\n\t\t\tconst handle = handlers[i];\n\n\t\t\treturn state.tracing.record_span({\n\t\t\t\tname: `sveltekit.handle.sequenced.${handle.name ? handle.name : i}`,\n\t\t\t\tattributes: {},\n\t\t\t\tfn: async (current) => {\n\t\t\t\t\tconst traced_event = merge_tracing(event, current);\n\t\t\t\t\treturn await with_request_store({ event: traced_event, state }, () =>\n\t\t\t\t\t\thandle({\n\t\t\t\t\t\t\tevent: traced_event,\n\t\t\t\t\t\t\tresolve: (event, options) => {\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['transformPageChunk']} */\n\t\t\t\t\t\t\t\tconst transformPageChunk = async ({ html, done }) => {\n\t\t\t\t\t\t\t\t\tif (options?.transformPageChunk) {\n\t\t\t\t\t\t\t\t\t\thtml = (await options.transformPageChunk({ html, done })) ?? '';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (parent_options?.transformPageChunk) {\n\t\t\t\t\t\t\t\t\t\thtml = (await parent_options.transformPageChunk({ html, done })) ?? '';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn html;\n\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['filterSerializedResponseHeaders']} */\n\t\t\t\t\t\t\t\tconst filterSerializedResponseHeaders =\n\t\t\t\t\t\t\t\t\tparent_options?.filterSerializedResponseHeaders ??\n\t\t\t\t\t\t\t\t\toptions?.filterSerializedResponseHeaders;\n\n\t\t\t\t\t\t\t\t/** @type {ResolveOptions['preload']} */\n\t\t\t\t\t\t\t\tconst preload = parent_options?.preload ?? options?.preload;\n\n\t\t\t\t\t\t\t\treturn i < length - 1\n\t\t\t\t\t\t\t\t\t? apply_handle(i + 1, event, {\n\t\t\t\t\t\t\t\t\t\t\ttransformPageChunk,\n\t\t\t\t\t\t\t\t\t\t\tfilterSerializedResponseHeaders,\n\t\t\t\t\t\t\t\t\t\t\tpreload\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: resolve(event, {\n\t\t\t\t\t\t\t\t\t\t\ttransformPageChunk,\n\t\t\t\t\t\t\t\t\t\t\tfilterSerializedResponseHeaders,\n\t\t\t\t\t\t\t\t\t\t\tpreload\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n}\n","import { a as sessionHandle, i as checkAuthorizationHandle } from \"../chunks/session.js\";\nimport { a as serverAsyncLocalStorage, i as overwriteServerAsyncLocalStorage, n as getStrategyForUrl, o as shouldRedirect, r as isExcludedByRouteStrategy, t as deLocalizeUrl } from \"../chunks/runtime.js\";\nimport { sequence } from \"@sveltejs/kit/hooks\";\n//#region src/lib/paraglide/server.js\n/**\n* Server middleware that handles locale-based routing and request processing.\n*\n* Configure `disableAsyncLocalStorage` when generating Paraglide with\n* `paraglideVitePlugin()` or `compile()`, not when calling\n* `paraglideMiddleware()`. Keep AsyncLocalStorage enabled by default and\n* only disable it for runtimes that lack `AsyncLocalStorage` support and\n* guarantee request isolation.\n*\n* This middleware performs several key functions:\n*\n* 1. Determines the locale for the incoming request using configured strategies\n* 2. Handles URL localization and redirects (only for document requests)\n* 3. Maintains locale state using AsyncLocalStorage to prevent request interference\n*\n* When URL strategy is used:\n*\n* - The locale is extracted from the URL for all request types\n* - If URL doesn't match the determined locale, redirects to localized URL (only for document requests)\n* - De-localizes URLs before passing to server (e.g., `/fr/about` → `/about`)\n*\n* @see https://inlang.com/m/gerre34r/library-inlang-paraglideJs/middleware\n*\n* @template T - The return type of the resolve function\n*\n* @param {Request} request - The incoming request object\n* @param {(args: { request: Request, locale: import(\"./runtime.js\").Locale }) => T | Promise<T>} resolve - Function to handle the request. The callback receives:\n* - `request`: A modified request with a delocalized URL when the URL strategy is used (e.g., `/fr/about` → `/about`).\n* If your framework handles URL localization itself (e.g., TanStack Router's `rewrite` option), use the original\n* request instead to avoid redirect loops.\n* - `locale`: The determined locale for this request.\n* @param {{\n* effectiveRequestUrl?: string | URL | ((request: Request) => string | URL),\n* onRedirect?: (response: Response) => void\n* }} [options] - Options to control middleware behavior. `effectiveRequestUrl` sets the effective request URL used for route matching, URL-based locale detection, redirects, and `getUrlOrigin()`.\n* @returns {Promise<Response>}\n*\n* @example\n* ```typescript\n* // Basic usage in metaframeworks like NextJS, SvelteKit, Astro, Nuxt, etc.\n* export const handle = async ({ event, resolve }) => {\n* return paraglideMiddleware(event.request, ({ request, locale }) => {\n* // let the framework further resolve the request\n* return resolve(request);\n* });\n* };\n* ```\n*\n* @example\n* ```typescript\n* // Usage in a framework like Express JS or Hono\n* app.use(async (req, res, next) => {\n* const result = await paraglideMiddleware(req, ({ request, locale }) => {\n* // If a redirect happens this won't be called\n* return next(request);\n* });\n* });\n* ```\n*\n* @example\n* ```typescript\n* // Usage with frameworks that handle URL localization/delocalization themselves\n* //\n* // Some frameworks like TanStack Router handle URL localization and delocalization\n* // themselves via their own rewrite APIs (e.g., `rewrite.input`/`rewrite.output`).\n* //\n* // When the framework handles this, the middleware's URL delocalization is not needed.\n* // Using the modified `request` from the callback would cause a redirect loop because\n* // both the middleware and the framework would attempt to delocalize the URL.\n* //\n* // Solution: Pass the original request to the handler instead of the modified one.\n* // The middleware still handles locale detection, cookies, and AsyncLocalStorage context.\n* //\n* // ❌ WRONG - causes redirect loop when framework handles URL rewriting:\n* // paraglideMiddleware(req, ({ request }) => handler.fetch(request))\n* //\n* // ✅ CORRECT - use original request when framework handles URL localization:\n* // paraglideMiddleware(req, () => handler.fetch(req))\n*\n* * *\n* export default {\n* fetch(req: Request): Promise<Response> {\n* // TanStack Router handles URL rewriting via deLocalizeUrl/localizeUrl\n* // so we pass the original `req` instead of the modified `request`\n* return paraglideMiddleware(req, () => handler.fetch(req))\n* },\n* }\n* ```\n*/\nasync function paraglideMiddleware(request, resolve, options) {\n\tif (!serverAsyncLocalStorage) {\n\t\tconst { AsyncLocalStorage } = await import(\"node:async_hooks\");\n\t\toverwriteServerAsyncLocalStorage(new AsyncLocalStorage());\n\t} else if (!serverAsyncLocalStorage) overwriteServerAsyncLocalStorage(createMockAsyncLocalStorage());\n\tconst url = resolveMiddlewareUrl(request, options?.effectiveRequestUrl);\n\tconst origin = url.origin;\n\tif (isExcludedByRouteStrategy(url.href)) {\n\t\tconst locale = \"en\";\n\t\tconst newRequest = cloneRequestWithFallback(request, url);\n\t\t/** @type {Set<string>} */\n\t\tconst messageCalls = /* @__PURE__ */ new Set();\n\t\treturn await serverAsyncLocalStorage?.run({\n\t\t\tlocale,\n\t\t\torigin,\n\t\t\tmessageCalls\n\t\t}, () => resolve({\n\t\t\tlocale,\n\t\t\trequest: newRequest\n\t\t}));\n\t}\n\tconst strategy = getStrategyForUrl(url.href);\n\tconst decision = await shouldRedirect({\n\t\trequest,\n\t\teffectiveRequestUrl: url\n\t});\n\tconst locale = decision.locale;\n\tif (request.headers.get(\"Sec-Fetch-Dest\") === \"document\" && decision.shouldRedirect && decision.redirectUrl) {\n\t\t/** @type {Record<string, string>} */\n\t\tconst headers = {};\n\t\tif (strategy.includes(\"preferredLanguage\")) headers[\"Vary\"] = \"Accept-Language\";\n\t\tconst response = new Response(null, {\n\t\t\tstatus: 307,\n\t\t\theaders: {\n\t\t\t\tLocation: decision.redirectUrl.href,\n\t\t\t\t...headers\n\t\t\t}\n\t\t});\n\t\toptions?.onRedirect?.(response);\n\t\treturn response;\n\t}\n\tlet newRequest;\n\tif (strategy.includes(\"url\")) newRequest = cloneRequestWithFallback(request, deLocalizeUrl(url));\n\telse newRequest = cloneRequestWithFallback(request, url);\n\t/** @type {Set<string>} */\n\tconst messageCalls = /* @__PURE__ */ new Set();\n\treturn await serverAsyncLocalStorage?.run({\n\t\tlocale,\n\t\torigin,\n\t\tmessageCalls\n\t}, () => resolve({\n\t\tlocale,\n\t\trequest: newRequest\n\t}));\n}\n/**\n* @param {Request} request\n* @param {string | URL | ((request: Request) => string | URL) | undefined} effectiveRequestUrl\n* @returns {URL}\n*/\nfunction resolveMiddlewareUrl(request, effectiveRequestUrl) {\n\tif (typeof effectiveRequestUrl === \"function\") return new URL(effectiveRequestUrl(request), request.url);\n\tif (typeof effectiveRequestUrl === \"string\" || effectiveRequestUrl instanceof URL) return new URL(effectiveRequestUrl, request.url);\n\treturn new URL(request.url);\n}\n/**\n* Some metaframeworks (NextJS) require a new Request object.\n* https://github.com/opral/inlang-paraglide-js/issues/411\n*\n* However, some frameworks (TanStack Start 1.143+) use custom Request\n* implementations that cannot be cloned with `new Request(request)`.\n* https://github.com/opral/paraglide-js/issues/573\n*\n* Effective request URL overrides behind proxies:\n* https://github.com/opral/paraglide-js/issues/652\n*\n* @param {Request} request\n* @param {string | URL} [url]\n* @returns {Request}\n*/\nfunction cloneRequestWithFallback(request, url = request.url) {\n\tconst targetUrl = typeof url === \"string\" ? url : url.href;\n\tif (targetUrl === request.url) try {\n\t\treturn new Request(request.clone());\n\t} catch {\n\t\ttry {\n\t\t\treturn new Request(request);\n\t\t} catch {\n\t\t\treturn request;\n\t\t}\n\t}\n\ttry {\n\t\treturn new Request(targetUrl, request.clone());\n\t} catch {\n\t\ttry {\n\t\t\treturn new Request(targetUrl, request);\n\t\t} catch {\n\t\t\treturn request;\n\t\t}\n\t}\n}\n/**\n* Creates a mock AsyncLocalStorage implementation for environments where\n* native AsyncLocalStorage is not available or disabled.\n*\n* This mock implementation mimics the behavior of the native AsyncLocalStorage\n* but doesn't require the async_hooks module. It's used as a fallback when\n* the runtime does not expose AsyncLocalStorage or when it has been disabled.\n*\n* @returns {import(\"./runtime.js\").ParaglideAsyncLocalStorage}\n*/\nfunction createMockAsyncLocalStorage() {\n\t/** @type {any} */\n\tlet currentStore = void 0;\n\treturn {\n\t\tgetStore() {\n\t\t\treturn currentStore;\n\t\t},\n\t\tasync run(store, callback) {\n\t\t\tcurrentStore = store;\n\t\t\ttry {\n\t\t\t\treturn await callback();\n\t\t\t} finally {\n\t\t\t\tcurrentStore = void 0;\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\n//#region src/hooks.server.ts\nvar handleParaglide = ({ event, resolve }) => paraglideMiddleware(event.request, ({ request, locale }) => {\n\tevent.request = request;\n\treturn resolve(event, { transformPageChunk: ({ html }) => html.replace(\"%paraglide.lang%\", locale) });\n});\nvar handle = sequence(sessionHandle, handleParaglide, checkAuthorizationHandle);\n//#endregion\nexport { handle };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,SAAgB,SAAS,GAAG,UAAU;CACrC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QAAQ,QAAQ,EAAE,OAAO,cAAc,QAAQ,KAAK;CAEzD,QAAQ,EAAE,OAAO,cAAc;EAC9B,MAAM,EAAE,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,SAAS,yBAAyB,SAAS,MAAM,QAAQ,KAAK;CAC7D,MAAM,YAAY,OAAO,QAAQ,WAAW,MAAM,IAAI;CACtD,IAAI,cAAc,QAAQ,KAAK,IAAI;EAClC,OAAO,IAAI,QAAQ,QAAQ,MAAM,CAAC;CACnC,QAAQ;EACP,IAAI;GACH,OAAO,IAAI,QAAQ,OAAO;EAC3B,QAAQ;GACP,OAAO;EACR;CACD;CACA,IAAI;EACH,OAAO,IAAI,QAAQ,WAAW,QAAQ,MAAM,CAAC;CAC9C,QAAQ;EACP,IAAI;GACH,OAAO,IAAI,QAAQ,WAAW,OAAO;EACtC,QAAQ;GACP,OAAO;EACR;CACD;AACD;;;;;;;;;;;AAWA,SAAS,8BAA8B;;CAEtC,IAAI,eAAe,KAAK;CACxB,OAAO;EACN,WAAW;GACV,OAAO;EACR;EACA,MAAM,IAAI,OAAO,UAAU;GAC1B,eAAe;GACf,IAAI;IACH,OAAO,MAAM,SAAS;GACvB,UAAU;IACT,eAAe,KAAK;GACrB;EACD;CACD;AACD;AAGA,IAAI,mBAAmB,EAAE,OAAO,cAAc,oBAAoB,MAAM,UAAU,EAAE,SAAS,aAAa;CACzG,MAAM,UAAU;CAChB,OAAO,QAAQ,OAAO,EAAE,qBAAqB,EAAE,WAAW,KAAK,QAAQ,oBAAoB,MAAM,EAAE,CAAC;AACrG,CAAC;AACD,IAAI,SAAS,SAAS,eAAe,iBAAiB,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.universal-DhGFdBkK.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/entries/hooks.universal.js"],"sourcesContent":["import { t as deLocalizeUrl } from \"../chunks/runtime.js\";\n//#region src/hooks.ts\nvar reroute = (request) => deLocalizeUrl(request.url).pathname;\n//#endregion\nexport { reroute };\n"],"mappings":";;AAEA,IAAI,WAAW,YAAY,cAAc,QAAQ,GAAG,EAAE"}
1
+ {"version":3,"file":"hooks.universal-DhGFdBkK.js","names":[],"sources":["../../../.svelte-kit/adapter-bun/entries/hooks.universal.js"],"sourcesContent":["import { t as deLocalizeUrl } from \"../chunks/runtime.js\";\n//#region src/hooks.ts\nvar reroute = (request) => deLocalizeUrl(request.url).pathname;\n//#endregion\nexport { reroute };\n"],"mappings":";;AAEA,IAAI,WAAW,YAAY,cAAc,QAAQ,GAAG,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/internal/index.js
1
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/internal/index.js
2
2
  /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
3
3
  var HttpError = class {
4
4
  /**
@@ -63,4 +63,4 @@ var ActionFailure = class {
63
63
  //#endregion
64
64
  export { SvelteKitError as i, HttpError as n, Redirect as r, ActionFailure as t };
65
65
 
66
- //# sourceMappingURL=internal-eM0YTBgj.js.map
66
+ //# sourceMappingURL=internal-DsA4iYdx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-eM0YTBgj.js","names":[],"sources":["../../../node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/internal/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAa,YAAb,MAAuB;;;;;CAKtB,YAAY,QAAQ,MAAM;EACzB,KAAK,SAAS;EACd,IAAI,OAAO,SAAS,UACnB,KAAK,OAAO,EAAE,SAAS,KAAK;OACtB,IAAI,MACV,KAAK,OAAO;OAEZ,KAAK,OAAO,EAAE,SAAS,UAAU,SAAS;CAE5C;CAEA,WAAW;EACV,OAAO,KAAK,UAAU,KAAK,IAAI;CAChC;AACD;AAEA,IAAa,WAAb,MAAsB;;;;;CAKrB,YAAY,QAAQ,UAAU;EAC7B,IAAI;GACH,IAAI,QAAQ,EAAE,SAAS,CAAC;EACzB,QAAQ;GACP,MAAM,IAAI,MACT,6BAA6B,KAAK,UAAU,QAAQ,EAAE,sEAEvD;EACD;EAEA,KAAK,SAAS;EACd,KAAK,WAAW;CACjB;AACD;;;;;;AAOA,IAAa,iBAAb,cAAoC,MAAM;;;;;;CAMzC,YAAY,QAAQ,MAAM,SAAS;EAClC,MAAM,OAAO;EACb,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD;;;;AAKA,IAAa,gBAAb,MAA2B;;;;;CAK1B,YAAY,QAAQ,MAAM;EACzB,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD"}
1
+ {"version":3,"file":"internal-DsA4iYdx.js","names":[],"sources":["../../../node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/internal/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAa,YAAb,MAAuB;;;;;CAKtB,YAAY,QAAQ,MAAM;EACzB,KAAK,SAAS;EACd,IAAI,OAAO,SAAS,UACnB,KAAK,OAAO,EAAE,SAAS,KAAK;OACtB,IAAI,MACV,KAAK,OAAO;OAEZ,KAAK,OAAO,EAAE,SAAS,UAAU,SAAS;CAE5C;CAEA,WAAW;EACV,OAAO,KAAK,UAAU,KAAK,IAAI;CAChC;AACD;AAEA,IAAa,WAAb,MAAsB;;;;;CAKrB,YAAY,QAAQ,UAAU;EAC7B,IAAI;GACH,IAAI,QAAQ,EAAE,SAAS,CAAC;EACzB,QAAQ;GACP,MAAM,IAAI,MACT,6BAA6B,KAAK,UAAU,QAAQ,EAAE,sEAEvD;EACD;EAEA,KAAK,SAAS;EACd,KAAK,WAAW;CACjB;AACD;;;;;;AAOA,IAAa,iBAAb,cAAoC,MAAM;;;;;;CAMzC,YAAY,QAAQ,MAAM,SAAS;EAClC,MAAM,OAAO;EACb,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD;;;;AAKA,IAAa,gBAAb,MAA2B;;;;;CAK1B,YAAY,QAAQ,MAAM;EACzB,KAAK,SAAS;EACd,KAAK,OAAO;CACb;AACD"}
@@ -1,5 +1,5 @@
1
- import { A as flushSync, B as hydrating, C as define_property, F as get_first_child, G as is_passive_event, H as hydration_mismatch, I as get_next_sibling, J as is_valid_array_index, K as is_plain_object, L as get_type, M as get$1, O as enumerable_symbols, S as create_text, V as hydration_failed, W as init_operations, Y as is_valid_array_len, Z as mutable_source, _ as boundary, at as render, b as component_context, c as LEGACY_PROPS, ct as setContext, d as array_from, et as pop, ht as stringify_string, i as root_event_handles, j as get, l as MAX_ARRAY_INDEX, lt as set_hydrate_node, mt as stringify_key, n as handle_event_propagation, nt as push, o as DevalueError, q as is_primitive, s as HYDRATION_ERROR, st as set, t as all_registered_events, u as active_effect, ut as set_hydrating, v as clear_text_content, w as derived, x as component_root, xt as valid_array_indices, z as hydrate_node } from "./events-DeYJGjCt.js";
2
- import { i as SvelteKitError, n as HttpError } from "./internal-eM0YTBgj.js";
1
+ import { A as flushSync, B as hydrating, C as define_property, F as get_first_child, G as is_passive_event, H as hydration_mismatch, I as get_next_sibling, J as is_valid_array_index, K as is_plain_object, L as get_type, M as get$1, O as enumerable_symbols, S as create_text, V as hydration_failed, W as init_operations, Y as is_valid_array_len, Z as mutable_source, _ as boundary, at as render, b as component_context, c as LEGACY_PROPS, ct as setContext, d as array_from, et as pop, ht as stringify_string, i as root_event_handles, j as get, l as MAX_ARRAY_INDEX, lt as set_hydrate_node, mt as stringify_key, n as handle_event_propagation, nt as push, o as DevalueError, q as is_primitive, s as HYDRATION_ERROR, st as set, t as all_registered_events, u as active_effect, ut as set_hydrating, v as clear_text_content, w as derived, x as component_root, xt as valid_array_indices, z as hydrate_node } from "./events-Bhh2w-5S.js";
2
+ import { i as SvelteKitError, n as HttpError } from "./internal-DsA4iYdx.js";
3
3
  //#region .svelte-kit/adapter-bun/chunks/shared.js
4
4
  function noop() {}
5
5
  /**
@@ -576,7 +576,7 @@ function split_remote_key(key) {
576
576
  };
577
577
  }
578
578
  //#endregion
579
- //#region .svelte-kit/adapter-bun/chunks/environment.js
579
+ //#region .svelte-kit/adapter-bun/chunks/internal.js
580
580
  var base = "";
581
581
  var assets = base;
582
582
  var app_dir = "_app";
@@ -601,10 +601,10 @@ function reset() {
601
601
  assets = initial.assets;
602
602
  }
603
603
  //#endregion
604
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/runtime/server/constants.js
604
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/constants.js
605
605
  const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
606
606
  //#endregion
607
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/internal/event.js
607
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/internal/event.js
608
608
  /** @import { RequestEvent } from '@sveltejs/kit' */
609
609
  /** @import { RequestStore } from 'types' */
610
610
  /** @import { AsyncLocalStorage } from 'node:async_hooks' */
@@ -640,7 +640,7 @@ function with_request_store(store, fn) {
640
640
  }
641
641
  }
642
642
  //#endregion
643
- //#region node_modules/.pnpm/@sveltejs+kit@2.62.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.1_@typescript-eslin_ff7e9b56f2a99882237f19fc345f302e/node_modules/@sveltejs/kit/src/exports/internal/server.js
643
+ //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/exports/internal/server.js
644
644
  /**
645
645
  * @template {{ tracing: { enabled: boolean, root: import('@opentelemetry/api').Span, current: import('@opentelemetry/api').Span } }} T
646
646
  * @param {T} event_like
@@ -1102,7 +1102,7 @@ var validate_page_exports = validator(valid_page_exports);
1102
1102
  var validate_layout_server_exports = validator(valid_layout_server_exports);
1103
1103
  var validate_page_server_exports = validator(valid_page_server_exports);
1104
1104
  //#endregion
1105
- //#region .svelte-kit/adapter-bun/chunks/internal.js
1105
+ //#region .svelte-kit/adapter-bun/chunks/internal2.js
1106
1106
  var read_implementation = null;
1107
1107
  function set_read_implementation(fn) {
1108
1108
  read_implementation = fn;
@@ -1574,7 +1574,7 @@ var options = {
1574
1574
  app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"%paraglide.lang%\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.svg\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
1575
1575
  error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
1576
1576
  },
1577
- version_hash: "1nmsxzv"
1577
+ version_hash: "6y1yr6"
1578
1578
  };
1579
1579
  async function get_hooks() {
1580
1580
  let handle;
@@ -1582,7 +1582,7 @@ async function get_hooks() {
1582
1582
  let handleError;
1583
1583
  let handleValidationError;
1584
1584
  let init;
1585
- ({handle, handleFetch, handleError, handleValidationError, init} = await import("./hooks.server-CG8Cy27D.js"));
1585
+ ({handle, handleFetch, handleError, handleValidationError, init} = await import("./hooks.server-CKcZoYoT.js"));
1586
1586
  let reroute;
1587
1587
  let transport;
1588
1588
  ({reroute, transport} = await import("./hooks.universal-DhGFdBkK.js"));
@@ -1599,4 +1599,4 @@ async function get_hooks() {
1599
1599
  //#endregion
1600
1600
  export { text_encoder as $, with_request_store as A, coalesce_to_error as B, validate_layout_exports as C, merge_tracing as D, validate_page_server_exports as E, override as F, noop as G, get_message as H, reset as I, parse as J, normalize_error as K, INVALIDATED_PARAM as L, assets as M, base as N, get_request_store as O, initial_base as P, stringify$1 as Q, TRAILING_SLASH_PARAM as R, strip_resolution_suffix as S, validate_page_exports as T, get_relative_path as U, create_remote_key as V, get_status as W, split_remote_key as X, parse_remote_arg as Y, stringify as Z, noop_span as _, set_read_implementation as a, resolve_route as b, compact as c, find_route as d, fromStore as f, make_trackable as g, hash as h, set_manifest as i, app_dir as j, try_get_request_store as k, decode_pathname as l, has_resolution_suffix as m, options as n, add_data_suffix as o, has_data_suffix as p, once as q, read_implementation as r, add_resolution_suffix as s, get_hooks as t, disable_search as u, normalize_path as v, validate_layout_server_exports as w, strip_data_suffix as x, resolve as y, base64_encode as z };
1601
1601
 
1602
- //# sourceMappingURL=internal-DXl_jCjC.js.map
1602
+ //# sourceMappingURL=internal2-CRbvkWND.js.map