@axerity/cli 0.3.5 → 0.3.6
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.
- package/dist/client/_app/immutable/assets/0.D_9a5iYh.css +1 -0
- package/dist/client/_app/immutable/chunks/4WKVz0dQ2.js +8 -0
- package/dist/client/_app/immutable/chunks/{BxHXOXhk.js → 5Snhw0Ea.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CU8220Uu.js → 7mNMRbyk.js} +7 -7
- package/dist/client/_app/immutable/chunks/8HqVteX22.js +132 -0
- package/dist/client/_app/immutable/chunks/B1bQHaXp2.js +1 -0
- package/dist/client/_app/immutable/chunks/B1vLyBkH.js +1 -0
- package/dist/client/_app/immutable/chunks/B38mTxN_2.js +1 -0
- package/dist/client/_app/immutable/chunks/B6Q2kmfG.js +1 -0
- package/dist/client/_app/immutable/chunks/B8df50Oe.js +1 -0
- package/dist/client/_app/immutable/chunks/B8pCsplA.js +4 -0
- package/dist/client/_app/immutable/chunks/BBJaonHc.js +7 -0
- package/dist/client/_app/immutable/chunks/BC0Z6JSt.js +127 -0
- package/dist/client/_app/immutable/chunks/BIZlbVKk.js +1 -0
- package/dist/client/_app/immutable/chunks/BLTdZGww.js +10 -0
- package/dist/client/_app/immutable/chunks/BO5quTzD2.js +1 -0
- package/dist/client/_app/immutable/chunks/BVDV3lUS.js +1 -0
- package/dist/client/_app/immutable/chunks/{D1JHp0AN.js → BYhISeFr2.js} +3 -3
- package/dist/client/_app/immutable/chunks/B_cUqGeH.js +2 -0
- package/dist/client/_app/immutable/chunks/Bb7SY-Hh.js +2 -0
- package/dist/client/_app/immutable/chunks/{BmELG9zI.js → BbOlTtur.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bf-rMgGa.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrHSbMyX.js → Bg_yhsUP.js} +1 -1
- package/dist/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/dist/client/_app/immutable/chunks/Bq8Occ6m.js +1 -0
- package/dist/client/_app/immutable/chunks/Bs-bH16d2.js +36 -0
- package/dist/client/_app/immutable/chunks/BtTEEMTW.js +1 -0
- package/dist/client/_app/immutable/chunks/{BR2ZZ_D-.js → Bu2P_wCT.js} +9 -9
- package/dist/client/_app/immutable/chunks/C1MWiow4.js +1 -0
- package/dist/client/_app/immutable/chunks/{fbLwfhmm.js → C2-00Pdo.js} +8 -8
- package/dist/client/_app/immutable/chunks/C2FXoa5Z.js +1 -0
- package/dist/client/_app/immutable/chunks/CCHqIdNO.js +3 -0
- package/dist/client/_app/immutable/chunks/CDyVd27m2.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrFMGgWF.js → CF0onlHk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CFMX0wTB2.js +2 -0
- package/dist/client/_app/immutable/chunks/CGzhSlOG2.js +88 -0
- package/dist/client/_app/immutable/chunks/{D1OSA14p2.js → CHdTS7qa2.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CKUCToaK2.js → CHnO8ozm.js} +6 -6
- package/dist/client/_app/immutable/chunks/CIA0ThW0.js +1 -0
- package/dist/client/_app/immutable/chunks/CIFyFl372.js +2 -0
- package/dist/client/_app/immutable/chunks/CK1Au-AH.js +1 -0
- package/dist/client/_app/immutable/chunks/CORzmJfE2.js +1 -0
- package/dist/client/_app/immutable/chunks/{CrvMImwA.js → CP8i6059.js} +2 -2
- package/dist/client/_app/immutable/chunks/CR4TeO0O.js +156 -0
- package/dist/client/_app/immutable/chunks/CTgm3pse.js +1 -0
- package/dist/client/_app/immutable/chunks/CWKhPslf.js +1 -0
- package/dist/client/_app/immutable/chunks/{DWEIbyGx2.js → CWiCMZki2.js} +1 -1
- package/dist/client/_app/immutable/chunks/CZBscxHQ2.js +1 -0
- package/dist/client/_app/immutable/chunks/{Vhh-h91d.js → CddkPoXu.js} +1 -1
- package/dist/client/_app/immutable/chunks/CfzXM2Sw.js +24 -0
- package/dist/client/_app/immutable/chunks/{DVnPUkm_2.js → CgljPyk-.js} +1 -1
- package/dist/client/_app/immutable/chunks/Chofv7Zs2.js +11 -0
- package/dist/client/_app/immutable/chunks/CkDjHmRi.js +1 -0
- package/dist/client/_app/immutable/chunks/CqddNm0P.js +24 -0
- package/dist/client/_app/immutable/chunks/CtlrWY5d.js +1 -0
- package/dist/client/_app/immutable/chunks/CuRJVwEq.js +1 -0
- package/dist/client/_app/immutable/chunks/Cwm_NK7g2.js +1 -0
- package/dist/client/_app/immutable/chunks/{KMes_wgj.js → CxArn52D.js} +6 -6
- package/dist/client/_app/immutable/chunks/D0XLW3Y72.js +1 -0
- package/dist/client/_app/immutable/chunks/D3baVd8h.js +39 -0
- package/dist/client/_app/immutable/chunks/{DyvOZK_m.js → D53c3C1L.js} +1 -1
- package/dist/client/_app/immutable/chunks/D9D9EADq2.js +1 -0
- package/dist/client/_app/immutable/chunks/DAEwZWEo.js +1 -0
- package/dist/client/_app/immutable/chunks/DEkYOWll.js +1 -0
- package/dist/client/_app/immutable/chunks/DJR_kvNW.js +1 -0
- package/dist/client/_app/immutable/chunks/DJmG1hmx.js +1 -0
- package/dist/client/_app/immutable/chunks/DLuFpqVZ.js +1 -0
- package/dist/client/_app/immutable/chunks/DMWLK-DU2.js +231 -0
- package/dist/client/_app/immutable/chunks/DNzq6p3w.js +161 -0
- package/dist/client/_app/immutable/chunks/DSoM-AhV.js +292 -0
- package/dist/client/_app/immutable/chunks/{B2siGgVq.js → DUiFqfXY.js} +24 -24
- package/dist/client/_app/immutable/chunks/DVuOupEf.js +1 -0
- package/dist/client/_app/immutable/chunks/DY1BZ4Qc2.js +1 -0
- package/dist/client/_app/immutable/chunks/DYYXZ3DX.js +1 -0
- package/dist/client/_app/immutable/chunks/DbGyXH9B.js +1 -0
- package/dist/client/_app/immutable/chunks/DbfGBa34.js +1 -0
- package/dist/client/_app/immutable/chunks/{h6BdjjI92.js → Djp6vQyU2.js} +2 -2
- package/dist/client/_app/immutable/chunks/DlkSjMNB.js +3 -0
- package/dist/client/_app/immutable/chunks/{CqOdyAh12.js → Dq77RFat2.js} +19 -19
- package/dist/client/_app/immutable/chunks/DsF7k-Jl.js +1 -0
- package/dist/client/_app/immutable/chunks/{Cnog5E312.js → GV4wa_W82.js} +6 -6
- package/dist/client/_app/immutable/chunks/H8ZPB3lI.js +1 -0
- package/dist/client/_app/immutable/chunks/{D8Ssgrsp2.js → KythIMN82.js} +1 -1
- package/dist/client/_app/immutable/chunks/LevMccfs.js +62 -0
- package/dist/client/_app/immutable/chunks/{BQXWlheM.js → MzKa3KJg.js} +1 -1
- package/dist/client/_app/immutable/chunks/{CO67I5FU.js → NwNz5UVg2.js} +7 -7
- package/dist/client/_app/immutable/chunks/WMQzk859.js +30 -0
- package/dist/client/_app/immutable/chunks/WqY32s1D.js +1 -0
- package/dist/client/_app/immutable/chunks/Xcyiycol2.js +34 -0
- package/dist/client/_app/immutable/chunks/hAYnLAr22.js +1 -0
- package/dist/client/_app/immutable/chunks/iW3ggMaf.js +1 -0
- package/dist/client/_app/immutable/chunks/mm27JPdG.js +85 -0
- package/dist/client/_app/immutable/chunks/mo9pLZen2.js +1 -0
- package/dist/client/_app/immutable/chunks/oWq97GrB.js +106 -0
- package/dist/client/_app/immutable/chunks/p8FwW_Sl.js +2 -0
- package/dist/client/_app/immutable/chunks/pHJTmPlB.js +41 -0
- package/dist/client/_app/immutable/chunks/qYxEWMoP2.js +1 -0
- package/dist/client/_app/immutable/chunks/snDW7wxp2.js +7 -0
- package/dist/client/_app/immutable/chunks/tvl5MGrS.js +62 -0
- package/dist/client/_app/immutable/entry/{app.CgHR81tV.js → app.CWJWi65e.js} +2 -2
- package/dist/client/_app/immutable/entry/start.BnjVfvzh.js +1 -0
- package/dist/client/_app/immutable/nodes/{0.CobOaRD5.js → 0.KjaOE5W4.js} +1 -1
- package/dist/client/_app/immutable/nodes/{1.qTCoGQFD.js → 1.BQfw1BrI.js} +1 -1
- package/dist/client/_app/immutable/nodes/2.Bm2kCMEX.js +21 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/env.js +9 -33
- package/dist/env.js.map +1 -0
- package/dist/handler.js +23 -1493
- package/dist/handler.js.map +1 -0
- package/dist/index.js +33 -231
- package/dist/index.js.map +1 -0
- package/dist/server/chunks/{Icon-D_bt1s8e.js → chunks/Icon.js-BuPXv_NW.js} +16 -14
- package/dist/server/chunks/chunks/Icon.js-BuPXv_NW.js.map +1 -0
- package/dist/server/chunks/{content-store-DiAyzxeN.js → chunks/content-store.js-BvDwR1n-.js} +7 -5
- package/dist/server/chunks/chunks/content-store.js-BvDwR1n-.js.map +1 -0
- package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js +13 -0
- package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js.map +1 -0
- package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
- package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js +152 -0
- package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js.map +1 -0
- package/dist/server/chunks/{internal2-Bc8foJGq.js → chunks/internal.js-CS2S4fsh.js} +2931 -3573
- package/dist/server/chunks/chunks/internal.js-CS2S4fsh.js.map +1 -0
- package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js +475 -0
- package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js.map +1 -0
- package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js +4 -0
- package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js.map +1 -0
- package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js +215 -0
- package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js.map +1 -0
- package/dist/server/chunks/{exports-CH1B8Gr7.js → chunks/shared.js-DL3We7L2.js} +13 -195
- package/dist/server/chunks/chunks/shared.js-DL3We7L2.js.map +1 -0
- package/dist/server/chunks/{site-BmQjyngY.js → chunks/site.js-B9j7u8c5.js} +4 -2
- package/dist/server/chunks/chunks/site.js-B9j7u8c5.js.map +1 -0
- package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js +740 -0
- package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js.map +1 -0
- package/dist/server/chunks/{_server.ts-tZSfwDeb.js → entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js} +5 -3
- package/dist/server/chunks/entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js.map +1 -0
- package/dist/server/chunks/{_server.ts-Mvb_AvZ7.js → entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js} +6 -4
- package/dist/server/chunks/entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BiuBmycB.js → entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js} +6 -4
- package/dist/server/chunks/entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BrQ12Pi8.js → entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js} +6 -4
- package/dist/server/chunks/entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js.map +1 -0
- package/dist/server/chunks/{_server.ts-hIjLcSna.js → entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js} +6 -4
- package/dist/server/chunks/entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js.map +1 -0
- package/dist/server/chunks/{_server.ts-CxAt0FC-.js → entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js} +6 -4
- package/dist/server/chunks/entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BuJsBV3k.js → entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js} +5 -3
- package/dist/server/chunks/entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js.map +1 -0
- package/dist/server/chunks/{_server.ts-BHDH2l-Y.js → entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js} +6 -4
- package/dist/server/chunks/entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js.map +1 -0
- package/dist/server/chunks/{hooks.server-BgYYtJeF.js → entries/hooks.server.js-DgpmswzZ.js} +5 -3
- package/dist/server/chunks/entries/hooks.server.js-DgpmswzZ.js.map +1 -0
- package/dist/server/chunks/{docpage-BkHysAhp.js → entries/matchers/docpage.js-BkHysAhp.js} +1 -1
- package/dist/server/chunks/entries/matchers/docpage.js-BkHysAhp.js.map +1 -0
- package/dist/server/chunks/{mdfile-DBiwGtNY.js → entries/matchers/mdfile.js-DBiwGtNY.js} +1 -1
- package/dist/server/chunks/entries/matchers/mdfile.js-DBiwGtNY.js.map +1 -0
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js +31 -0
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-DJGygMvW.js → entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js} +32 -29
- package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js.map +1 -0
- package/dist/server/chunks/{_error.svelte-BzOa8mhP.js → entries/pages/_error.svelte.js-C5IizUHI.js} +9 -6
- package/dist/server/chunks/entries/pages/_error.svelte.js-C5IizUHI.js.map +1 -0
- package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js +18 -0
- package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js.map +1 -0
- package/dist/server/chunks/{_layout.svelte-CCRK_bJN.js → entries/pages/_layout.svelte.js-C9fzvWFB.js} +4 -2
- package/dist/server/chunks/entries/pages/_layout.svelte.js-C9fzvWFB.js.map +1 -0
- package/dist/server/chunks/handler-ColT39Lk.js +1206 -0
- package/dist/server/chunks/handler-ColT39Lk.js.map +1 -0
- package/dist/server/{index.js → chunks/index.js-0pMmjHBu.js} +444 -1155
- package/dist/server/chunks/index.js-0pMmjHBu.js.map +1 -0
- package/dist/server/{manifest.js → chunks/manifest.js-Du2tEIKJ.js} +16 -20
- package/dist/server/chunks/manifest.js-Du2tEIKJ.js.map +1 -0
- package/dist/server/chunks/{0-BqBdfSPj.js → nodes/0.js-479vKOsq.js} +11 -21
- package/dist/server/chunks/nodes/0.js-479vKOsq.js.map +1 -0
- package/dist/server/chunks/nodes/1.js-BUjLAE1S.js +9 -0
- package/dist/server/chunks/nodes/1.js-BUjLAE1S.js.map +1 -0
- package/dist/server/chunks/nodes/2.js-kHx_y3-d.js +32 -0
- package/dist/server/chunks/nodes/2.js-kHx_y3-d.js.map +1 -0
- package/dist/shims.js +2 -30
- package/dist/shims.js.map +1 -0
- package/package.json +26 -26
- package/dist/client/_app/immutable/assets/0.CZH7ZxPr.css +0 -1
- package/dist/client/_app/immutable/chunks/4QUyWxRp.js +0 -1
- package/dist/client/_app/immutable/chunks/5brL7le7.js +0 -1
- package/dist/client/_app/immutable/chunks/AVywM_y2.js +0 -85
- package/dist/client/_app/immutable/chunks/B-2v_FHk2.js +0 -36
- package/dist/client/_app/immutable/chunks/B2NH8-JT.js +0 -2
- package/dist/client/_app/immutable/chunks/B6GEGn8a.js +0 -10
- package/dist/client/_app/immutable/chunks/BMrnNhEK.js +0 -1
- package/dist/client/_app/immutable/chunks/BPr4vZF2.js +0 -292
- package/dist/client/_app/immutable/chunks/B_aLYNof2.js +0 -62
- package/dist/client/_app/immutable/chunks/Bcl_F5Rk.js +0 -162
- package/dist/client/_app/immutable/chunks/Bhp_hF4I.js +0 -7
- package/dist/client/_app/immutable/chunks/BiwHu9iZ.js +0 -34
- package/dist/client/_app/immutable/chunks/BncN_SFM.js +0 -1
- package/dist/client/_app/immutable/chunks/BqfYRTli.js +0 -1
- package/dist/client/_app/immutable/chunks/Bxc19hA4.js +0 -231
- package/dist/client/_app/immutable/chunks/C-2ebXi62.js +0 -1
- package/dist/client/_app/immutable/chunks/C5YJ1yll.js +0 -1
- package/dist/client/_app/immutable/chunks/C9ACkxc9.js +0 -1
- package/dist/client/_app/immutable/chunks/C9oUh5bS.js +0 -1
- package/dist/client/_app/immutable/chunks/CA-FvMpm2.js +0 -1
- package/dist/client/_app/immutable/chunks/CB683wti.js +0 -24
- package/dist/client/_app/immutable/chunks/CBw-Ef8i.js +0 -1
- package/dist/client/_app/immutable/chunks/CDzGDeIO.js +0 -2
- package/dist/client/_app/immutable/chunks/CGhzzHe4.js +0 -1
- package/dist/client/_app/immutable/chunks/CJIjuuPI.js +0 -3
- package/dist/client/_app/immutable/chunks/CLAkFX7S2.js +0 -1
- package/dist/client/_app/immutable/chunks/CNNqHIOE.js +0 -1
- package/dist/client/_app/immutable/chunks/COtBc-WT.js +0 -1
- package/dist/client/_app/immutable/chunks/CPyDT9bL.js +0 -3
- package/dist/client/_app/immutable/chunks/CRPRTyhe2.js +0 -43
- package/dist/client/_app/immutable/chunks/CVwLGEVp.js +0 -9
- package/dist/client/_app/immutable/chunks/CYVFLYUH2.js +0 -132
- package/dist/client/_app/immutable/chunks/CmhcKymT2.js +0 -4
- package/dist/client/_app/immutable/chunks/CnsHLsSU2.js +0 -1
- package/dist/client/_app/immutable/chunks/D-mF3Ymq2.js +0 -1
- package/dist/client/_app/immutable/chunks/DI0aitcY.js +0 -1
- package/dist/client/_app/immutable/chunks/DL8TMeQv.js +0 -4
- package/dist/client/_app/immutable/chunks/DWR0mSia.js +0 -24
- package/dist/client/_app/immutable/chunks/D_bFluSV2.js +0 -1
- package/dist/client/_app/immutable/chunks/DlpIbxXb.js +0 -159
- package/dist/client/_app/immutable/chunks/Drqwbptl2.js +0 -1
- package/dist/client/_app/immutable/chunks/DshlDaTJ.js +0 -1
- package/dist/client/_app/immutable/chunks/DtVGcudl.js +0 -3
- package/dist/client/_app/immutable/chunks/JN-hBVZx.js +0 -1
- package/dist/client/_app/immutable/chunks/KQRMt0jm2.js +0 -1
- package/dist/client/_app/immutable/chunks/KSCXtHEz.js +0 -30
- package/dist/client/_app/immutable/chunks/MNRJQPsd.js +0 -124
- package/dist/client/_app/immutable/chunks/S_AIhi7v2.js +0 -2
- package/dist/client/_app/immutable/chunks/hFfQmBrk2.js +0 -1
- package/dist/client/_app/immutable/chunks/pO9ctS3B.js +0 -1
- package/dist/client/_app/immutable/chunks/qKp3hrn2.js +0 -1
- package/dist/client/_app/immutable/chunks/uObJDEK6.js +0 -106
- package/dist/client/_app/immutable/chunks/vNSaohXd.js +0 -1
- package/dist/client/_app/immutable/chunks/wdqFE1Ck.js +0 -1
- package/dist/client/_app/immutable/chunks/zl68KYpW2.js +0 -10
- package/dist/client/_app/immutable/entry/start.D53DkRpy.js +0 -1
- package/dist/client/_app/immutable/nodes/2.B5pNRXME.js +0 -21
- package/dist/server/chunks/0-BqBdfSPj.js.map +0 -1
- package/dist/server/chunks/1-vuc33ojX.js +0 -9
- package/dist/server/chunks/1-vuc33ojX.js.map +0 -1
- package/dist/server/chunks/2-CRAxE8tu.js +0 -54
- package/dist/server/chunks/2-CRAxE8tu.js.map +0 -1
- package/dist/server/chunks/Icon-D_bt1s8e.js.map +0 -1
- package/dist/server/chunks/_error.svelte-BzOa8mhP.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-CCRK_bJN.js.map +0 -1
- package/dist/server/chunks/_page.svelte-DJGygMvW.js.map +0 -1
- package/dist/server/chunks/_server.ts-BHDH2l-Y.js.map +0 -1
- package/dist/server/chunks/_server.ts-BiuBmycB.js.map +0 -1
- package/dist/server/chunks/_server.ts-BrQ12Pi8.js.map +0 -1
- package/dist/server/chunks/_server.ts-BuJsBV3k.js.map +0 -1
- package/dist/server/chunks/_server.ts-CxAt0FC-.js.map +0 -1
- package/dist/server/chunks/_server.ts-Mvb_AvZ7.js.map +0 -1
- package/dist/server/chunks/_server.ts-hIjLcSna.js.map +0 -1
- package/dist/server/chunks/_server.ts-tZSfwDeb.js.map +0 -1
- package/dist/server/chunks/content-store-DiAyzxeN.js.map +0 -1
- package/dist/server/chunks/docpage-BkHysAhp.js.map +0 -1
- package/dist/server/chunks/exports-CH1B8Gr7.js.map +0 -1
- package/dist/server/chunks/hooks.server-BgYYtJeF.js.map +0 -1
- package/dist/server/chunks/internal2-Bc8foJGq.js.map +0 -1
- package/dist/server/chunks/mdfile-DBiwGtNY.js.map +0 -1
- package/dist/server/chunks/site-BmQjyngY.js.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/manifest.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{BifhSqXX.js → BifhSqXX2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C8Fc0cco.js → C8Fc0cco2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CSKSodPl2.js → CSKSodPl.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{D6jRqBbL.js → D6jRqBbL2.js} +0 -0
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import { c as coalesce_to_error, g as get_status, a as get_message, p as parse } from './shared.js-DL3We7L2.js';
|
|
2
|
+
import { u as uneval } from './internal2.js-DnoW9Dd1.js';
|
|
3
|
+
import { json, text } from '@sveltejs/kit';
|
|
4
|
+
import { HttpError, SvelteKitError } from '@sveltejs/kit/internal';
|
|
5
|
+
import { with_request_store } from '@sveltejs/kit/internal/server';
|
|
6
|
+
|
|
7
|
+
var ENDPOINT_METHODS = [
|
|
8
|
+
"GET",
|
|
9
|
+
"POST",
|
|
10
|
+
"PUT",
|
|
11
|
+
"PATCH",
|
|
12
|
+
"DELETE",
|
|
13
|
+
"OPTIONS",
|
|
14
|
+
"HEAD"
|
|
15
|
+
];
|
|
16
|
+
var PAGE_METHODS = [
|
|
17
|
+
"GET",
|
|
18
|
+
"POST",
|
|
19
|
+
"HEAD"
|
|
20
|
+
];
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region node_modules/.pnpm/set-cookie-parser@3.1.1/node_modules/set-cookie-parser/lib/set-cookie.js
|
|
23
|
+
var defaultParseOptions = {
|
|
24
|
+
decodeValues: true,
|
|
25
|
+
map: false,
|
|
26
|
+
silent: false,
|
|
27
|
+
split: "auto"
|
|
28
|
+
};
|
|
29
|
+
function isForbiddenKey(key) {
|
|
30
|
+
return typeof key !== "string" || key in {};
|
|
31
|
+
}
|
|
32
|
+
function createNullObj() {
|
|
33
|
+
return Object.create(null);
|
|
34
|
+
}
|
|
35
|
+
function isNonEmptyString(str) {
|
|
36
|
+
return typeof str === "string" && !!str.trim();
|
|
37
|
+
}
|
|
38
|
+
function parseString(setCookieValue, options) {
|
|
39
|
+
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
40
|
+
var parsed = parseNameValuePair(parts.shift());
|
|
41
|
+
var name = parsed.name;
|
|
42
|
+
var value = parsed.value;
|
|
43
|
+
options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
|
|
44
|
+
if (isForbiddenKey(name)) return null;
|
|
45
|
+
try {
|
|
46
|
+
value = options.decodeValues ? decodeURIComponent(value) : value;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.", e);
|
|
49
|
+
}
|
|
50
|
+
var cookie = createNullObj();
|
|
51
|
+
cookie.name = name;
|
|
52
|
+
cookie.value = value;
|
|
53
|
+
parts.forEach(function(part) {
|
|
54
|
+
var sides = part.split("=");
|
|
55
|
+
var key = sides.shift().trim().toLowerCase();
|
|
56
|
+
if (isForbiddenKey(key)) return;
|
|
57
|
+
var value = sides.join("=").trim();
|
|
58
|
+
if (key === "expires") cookie.expires = new Date(value);
|
|
59
|
+
else if (key === "max-age") {
|
|
60
|
+
var n = parseInt(value, 10);
|
|
61
|
+
if (!Number.isNaN(n)) cookie.maxAge = n;
|
|
62
|
+
} else if (key === "secure") cookie.secure = true;
|
|
63
|
+
else if (key === "httponly") cookie.httpOnly = true;
|
|
64
|
+
else if (key === "samesite") cookie.sameSite = value;
|
|
65
|
+
else if (key === "partitioned") cookie.partitioned = true;
|
|
66
|
+
else if (key) cookie[key] = value;
|
|
67
|
+
});
|
|
68
|
+
return cookie;
|
|
69
|
+
}
|
|
70
|
+
function parseNameValuePair(nameValuePairStr) {
|
|
71
|
+
var name = "";
|
|
72
|
+
var value = "";
|
|
73
|
+
var nameValueArr = nameValuePairStr.split("=");
|
|
74
|
+
if (nameValueArr.length > 1) {
|
|
75
|
+
name = nameValueArr.shift();
|
|
76
|
+
value = nameValueArr.join("=");
|
|
77
|
+
} else value = nameValuePairStr;
|
|
78
|
+
return {
|
|
79
|
+
name,
|
|
80
|
+
value
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function parseSetCookie(input, options) {
|
|
84
|
+
options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
|
|
85
|
+
if (!input) if (!options.map) return [];
|
|
86
|
+
else return createNullObj();
|
|
87
|
+
if (input.headers) if (typeof input.headers.getSetCookie === "function") input = input.headers.getSetCookie();
|
|
88
|
+
else if (input.headers["set-cookie"]) input = input.headers["set-cookie"];
|
|
89
|
+
else {
|
|
90
|
+
var sch = input.headers[Object.keys(input.headers).find(function(key) {
|
|
91
|
+
return key.toLowerCase() === "set-cookie";
|
|
92
|
+
})];
|
|
93
|
+
if (!sch && input.headers.cookie && !options.silent) console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.");
|
|
94
|
+
input = sch;
|
|
95
|
+
}
|
|
96
|
+
var split = options.split;
|
|
97
|
+
var isArray = Array.isArray(input);
|
|
98
|
+
if (split === "auto") split = !isArray;
|
|
99
|
+
if (!isArray) input = [input];
|
|
100
|
+
input = input.filter(isNonEmptyString);
|
|
101
|
+
if (split) input = input.map(splitCookiesString).flat();
|
|
102
|
+
if (!options.map) return input.map(function(str) {
|
|
103
|
+
return parseString(str, options);
|
|
104
|
+
}).filter(Boolean);
|
|
105
|
+
else {
|
|
106
|
+
var cookies = createNullObj();
|
|
107
|
+
return input.reduce(function(cookies, str) {
|
|
108
|
+
var cookie = parseString(str, options);
|
|
109
|
+
if (cookie && !isForbiddenKey(cookie.name)) cookies[cookie.name] = cookie;
|
|
110
|
+
return cookies;
|
|
111
|
+
}, cookies);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function splitCookiesString(cookiesString) {
|
|
115
|
+
if (Array.isArray(cookiesString)) return cookiesString;
|
|
116
|
+
if (typeof cookiesString !== "string") return [];
|
|
117
|
+
var cookiesStrings = [];
|
|
118
|
+
var pos = 0;
|
|
119
|
+
var start;
|
|
120
|
+
var ch;
|
|
121
|
+
var lastComma;
|
|
122
|
+
var nextStart;
|
|
123
|
+
var cookiesSeparatorFound;
|
|
124
|
+
function skipWhitespace() {
|
|
125
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
|
|
126
|
+
return pos < cookiesString.length;
|
|
127
|
+
}
|
|
128
|
+
function notSpecialChar() {
|
|
129
|
+
ch = cookiesString.charAt(pos);
|
|
130
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
131
|
+
}
|
|
132
|
+
while (pos < cookiesString.length) {
|
|
133
|
+
start = pos;
|
|
134
|
+
cookiesSeparatorFound = false;
|
|
135
|
+
while (skipWhitespace()) {
|
|
136
|
+
ch = cookiesString.charAt(pos);
|
|
137
|
+
if (ch === ",") {
|
|
138
|
+
lastComma = pos;
|
|
139
|
+
pos += 1;
|
|
140
|
+
skipWhitespace();
|
|
141
|
+
nextStart = pos;
|
|
142
|
+
while (pos < cookiesString.length && notSpecialChar()) pos += 1;
|
|
143
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
144
|
+
cookiesSeparatorFound = true;
|
|
145
|
+
pos = nextStart;
|
|
146
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
147
|
+
start = pos;
|
|
148
|
+
} else pos = lastComma + 1;
|
|
149
|
+
} else pos += 1;
|
|
150
|
+
}
|
|
151
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
152
|
+
}
|
|
153
|
+
return cookiesStrings;
|
|
154
|
+
}
|
|
155
|
+
parseSetCookie.parseSetCookie = parseSetCookie;
|
|
156
|
+
parseSetCookie.parse = parseSetCookie;
|
|
157
|
+
parseSetCookie.parseString = parseString;
|
|
158
|
+
parseSetCookie.splitCookiesString = splitCookiesString;
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/form-utils.js
|
|
161
|
+
/** @import { RemoteForm } from '@sveltejs/kit' */
|
|
162
|
+
/** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
|
|
163
|
+
/** @import { StandardSchemaV1 } from '@standard-schema/spec' */
|
|
164
|
+
var decoder = new TextDecoder();
|
|
165
|
+
/**
|
|
166
|
+
* Sets a value in a nested object using a path string, mutating the original object
|
|
167
|
+
* @param {Record<string, any>} object
|
|
168
|
+
* @param {string} path_string
|
|
169
|
+
* @param {any} value
|
|
170
|
+
*/
|
|
171
|
+
function set_nested_value(object, path_string, value) {
|
|
172
|
+
if (path_string.startsWith("n:")) {
|
|
173
|
+
path_string = path_string.slice(2);
|
|
174
|
+
value = value === "" ? void 0 : parseFloat(value);
|
|
175
|
+
} else if (path_string.startsWith("b:")) {
|
|
176
|
+
path_string = path_string.slice(2);
|
|
177
|
+
value = value === "on";
|
|
178
|
+
}
|
|
179
|
+
deep_set(object, split_path(path_string), value);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Convert `FormData` into a POJO
|
|
183
|
+
* @param {FormData} data
|
|
184
|
+
*/
|
|
185
|
+
function convert_formdata(data) {
|
|
186
|
+
/** @type {Record<string, any>} */
|
|
187
|
+
const result = {};
|
|
188
|
+
for (let key of data.keys()) {
|
|
189
|
+
const is_array = key.endsWith("[]");
|
|
190
|
+
/** @type {any[]} */
|
|
191
|
+
let values = data.getAll(key);
|
|
192
|
+
if (is_array) key = key.slice(0, -2);
|
|
193
|
+
values = values.filter((entry) => typeof entry === "string" || entry.name !== "" || entry.size > 0);
|
|
194
|
+
if (values.length === 0 && !is_array) continue;
|
|
195
|
+
if (key.startsWith("n:")) {
|
|
196
|
+
key = key.slice(2);
|
|
197
|
+
values = values.map((v) => v === "" ? void 0 : parseFloat(v));
|
|
198
|
+
} else if (key.startsWith("b:")) {
|
|
199
|
+
key = key.slice(2);
|
|
200
|
+
values = values.map((v) => v === "on");
|
|
201
|
+
}
|
|
202
|
+
if (values.length > 1 && !is_array) throw new Error(`Form cannot contain duplicated keys — "${key}" has ${values.length} values`);
|
|
203
|
+
set_nested_value(result, key, is_array ? values : values[0]);
|
|
204
|
+
}
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
var BINARY_FORM_CONTENT_TYPE = "application/x-sveltekit-formdata";
|
|
208
|
+
var BINARY_FORM_VERSION = 0;
|
|
209
|
+
var HEADER_BYTES = 7;
|
|
210
|
+
/**
|
|
211
|
+
* @param {Request} request
|
|
212
|
+
* @returns {Promise<{ data: Record<string, any>; meta: BinaryFormMeta; form_data: FormData | null }>}
|
|
213
|
+
*/
|
|
214
|
+
async function deserialize_binary_form(request) {
|
|
215
|
+
if (request.headers.get("content-type") !== "application/x-sveltekit-formdata") {
|
|
216
|
+
const form_data = await request.formData();
|
|
217
|
+
return {
|
|
218
|
+
data: convert_formdata(form_data),
|
|
219
|
+
meta: {},
|
|
220
|
+
form_data
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
if (!request.body) throw deserialize_error("no body");
|
|
224
|
+
const reader = request.body.getReader();
|
|
225
|
+
/** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
|
|
226
|
+
const chunks = [];
|
|
227
|
+
/**
|
|
228
|
+
* @param {number} index
|
|
229
|
+
* @returns {Promise<Uint8Array<ArrayBuffer> | undefined>}
|
|
230
|
+
*/
|
|
231
|
+
function get_chunk(index) {
|
|
232
|
+
if (index in chunks) return chunks[index];
|
|
233
|
+
let i = chunks.length;
|
|
234
|
+
while (i <= index) {
|
|
235
|
+
chunks[i] = reader.read().then((chunk) => chunk.value);
|
|
236
|
+
i++;
|
|
237
|
+
}
|
|
238
|
+
return chunks[index];
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* @param {number} offset
|
|
242
|
+
* @param {number} length
|
|
243
|
+
* @returns {Promise<Uint8Array | null>}
|
|
244
|
+
*/
|
|
245
|
+
async function get_buffer(offset, length) {
|
|
246
|
+
/** @type {Uint8Array} */
|
|
247
|
+
let start_chunk;
|
|
248
|
+
let chunk_start = 0;
|
|
249
|
+
/** @type {number} */
|
|
250
|
+
let chunk_index;
|
|
251
|
+
for (chunk_index = 0;; chunk_index++) {
|
|
252
|
+
const chunk = await get_chunk(chunk_index);
|
|
253
|
+
if (!chunk) return null;
|
|
254
|
+
const chunk_end = chunk_start + chunk.byteLength;
|
|
255
|
+
if (offset >= chunk_start && offset < chunk_end) {
|
|
256
|
+
start_chunk = chunk;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
chunk_start = chunk_end;
|
|
260
|
+
}
|
|
261
|
+
if (offset + length <= chunk_start + start_chunk.byteLength) return start_chunk.subarray(offset - chunk_start, offset + length - chunk_start);
|
|
262
|
+
const chunks = [start_chunk.subarray(offset - chunk_start)];
|
|
263
|
+
let cursor = start_chunk.byteLength - offset + chunk_start;
|
|
264
|
+
while (cursor < length) {
|
|
265
|
+
chunk_index++;
|
|
266
|
+
let chunk = await get_chunk(chunk_index);
|
|
267
|
+
if (!chunk) return null;
|
|
268
|
+
if (chunk.byteLength > length - cursor) chunk = chunk.subarray(0, length - cursor);
|
|
269
|
+
chunks.push(chunk);
|
|
270
|
+
cursor += chunk.byteLength;
|
|
271
|
+
}
|
|
272
|
+
const buffer = new Uint8Array(length);
|
|
273
|
+
cursor = 0;
|
|
274
|
+
for (const chunk of chunks) {
|
|
275
|
+
buffer.set(chunk, cursor);
|
|
276
|
+
cursor += chunk.byteLength;
|
|
277
|
+
}
|
|
278
|
+
return buffer;
|
|
279
|
+
}
|
|
280
|
+
const header = await get_buffer(0, HEADER_BYTES);
|
|
281
|
+
if (!header) throw deserialize_error("too short");
|
|
282
|
+
if (header[0] !== BINARY_FORM_VERSION) throw deserialize_error(`got version ${header[0]}, expected version ${BINARY_FORM_VERSION}`);
|
|
283
|
+
const header_view = new DataView(header.buffer, header.byteOffset, header.byteLength);
|
|
284
|
+
const data_length = header_view.getUint32(1, true);
|
|
285
|
+
const file_offsets_length = header_view.getUint16(5, true);
|
|
286
|
+
const data_buffer = await get_buffer(HEADER_BYTES, data_length);
|
|
287
|
+
if (!data_buffer) throw deserialize_error("data too short");
|
|
288
|
+
/** @type {Array<number | undefined>} */
|
|
289
|
+
let file_offsets;
|
|
290
|
+
/** @type {number} */
|
|
291
|
+
let files_start_offset;
|
|
292
|
+
if (file_offsets_length > 0) {
|
|
293
|
+
const file_offsets_buffer = await get_buffer(HEADER_BYTES + data_length, file_offsets_length);
|
|
294
|
+
if (!file_offsets_buffer) throw deserialize_error("file offset table too short");
|
|
295
|
+
const parsed_offsets = JSON.parse(decoder.decode(file_offsets_buffer));
|
|
296
|
+
if (!Array.isArray(parsed_offsets) || parsed_offsets.some((n) => typeof n !== "number" || !Number.isInteger(n) || n < 0)) throw deserialize_error("invalid file offset table");
|
|
297
|
+
file_offsets = parsed_offsets;
|
|
298
|
+
files_start_offset = HEADER_BYTES + data_length + file_offsets_length;
|
|
299
|
+
}
|
|
300
|
+
/** @type {Array<{ offset: number, size: number }>} */
|
|
301
|
+
const file_spans = [];
|
|
302
|
+
const [data, meta] = parse(decoder.decode(data_buffer), { File: ([name, type, size, last_modified, index]) => {
|
|
303
|
+
if (typeof name !== "string" || typeof type !== "string" || typeof size !== "number" || typeof last_modified !== "number" || typeof index !== "number") throw deserialize_error("invalid file metadata");
|
|
304
|
+
let offset = file_offsets[index];
|
|
305
|
+
if (offset === void 0) throw deserialize_error("duplicate file offset table index");
|
|
306
|
+
file_offsets[index] = void 0;
|
|
307
|
+
offset += files_start_offset;
|
|
308
|
+
file_spans.push({
|
|
309
|
+
offset,
|
|
310
|
+
size
|
|
311
|
+
});
|
|
312
|
+
return new Proxy(new LazyFile(name, type, size, last_modified, get_chunk, offset), { getPrototypeOf() {
|
|
313
|
+
return File.prototype;
|
|
314
|
+
} });
|
|
315
|
+
} });
|
|
316
|
+
file_spans.sort((a, b) => a.offset - b.offset || a.size - b.size);
|
|
317
|
+
for (let i = 1; i < file_spans.length; i++) {
|
|
318
|
+
const previous = file_spans[i - 1];
|
|
319
|
+
const current = file_spans[i];
|
|
320
|
+
const previous_end = previous.offset + previous.size;
|
|
321
|
+
if (previous_end < current.offset) throw deserialize_error("gaps in file data");
|
|
322
|
+
if (previous_end > current.offset) throw deserialize_error("overlapping file data");
|
|
323
|
+
}
|
|
324
|
+
(async () => {
|
|
325
|
+
let has_more = true;
|
|
326
|
+
while (has_more) has_more = !!await get_chunk(chunks.length);
|
|
327
|
+
})();
|
|
328
|
+
return {
|
|
329
|
+
data,
|
|
330
|
+
meta,
|
|
331
|
+
form_data: null
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @param {string} message
|
|
336
|
+
*/
|
|
337
|
+
function deserialize_error(message) {
|
|
338
|
+
return new SvelteKitError(400, "Bad Request", `Could not deserialize binary form: ${message}`);
|
|
339
|
+
}
|
|
340
|
+
/** @implements {File} */
|
|
341
|
+
var LazyFile = class LazyFile {
|
|
342
|
+
/** @type {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} */
|
|
343
|
+
#get_chunk;
|
|
344
|
+
/** @type {number} */
|
|
345
|
+
#offset;
|
|
346
|
+
/**
|
|
347
|
+
* @param {string} name
|
|
348
|
+
* @param {string} type
|
|
349
|
+
* @param {number} size
|
|
350
|
+
* @param {number} last_modified
|
|
351
|
+
* @param {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} get_chunk
|
|
352
|
+
* @param {number} offset
|
|
353
|
+
*/
|
|
354
|
+
constructor(name, type, size, last_modified, get_chunk, offset) {
|
|
355
|
+
this.name = name;
|
|
356
|
+
this.type = type;
|
|
357
|
+
this.size = size;
|
|
358
|
+
this.lastModified = last_modified;
|
|
359
|
+
this.webkitRelativePath = "";
|
|
360
|
+
this.#get_chunk = get_chunk;
|
|
361
|
+
this.#offset = offset;
|
|
362
|
+
this.arrayBuffer = this.arrayBuffer.bind(this);
|
|
363
|
+
this.bytes = this.bytes.bind(this);
|
|
364
|
+
this.slice = this.slice.bind(this);
|
|
365
|
+
this.stream = this.stream.bind(this);
|
|
366
|
+
this.text = this.text.bind(this);
|
|
367
|
+
}
|
|
368
|
+
/** @type {ArrayBuffer | undefined} */
|
|
369
|
+
#buffer;
|
|
370
|
+
async arrayBuffer() {
|
|
371
|
+
this.#buffer ??= await new Response(this.stream()).arrayBuffer();
|
|
372
|
+
return this.#buffer;
|
|
373
|
+
}
|
|
374
|
+
async bytes() {
|
|
375
|
+
return new Uint8Array(await this.arrayBuffer());
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @param {number=} start
|
|
379
|
+
* @param {number=} end
|
|
380
|
+
* @param {string=} contentType
|
|
381
|
+
*/
|
|
382
|
+
slice(start = 0, end = this.size, contentType = this.type) {
|
|
383
|
+
if (start < 0) start = Math.max(this.size + start, 0);
|
|
384
|
+
else start = Math.min(start, this.size);
|
|
385
|
+
if (end < 0) end = Math.max(this.size + end, 0);
|
|
386
|
+
else end = Math.min(end, this.size);
|
|
387
|
+
const size = Math.max(end - start, 0);
|
|
388
|
+
return new LazyFile(this.name, contentType, size, this.lastModified, this.#get_chunk, this.#offset + start);
|
|
389
|
+
}
|
|
390
|
+
stream() {
|
|
391
|
+
let cursor = 0;
|
|
392
|
+
let chunk_index = 0;
|
|
393
|
+
return new ReadableStream({
|
|
394
|
+
start: async (controller) => {
|
|
395
|
+
let chunk_start = 0;
|
|
396
|
+
/** @type {Uint8Array} */
|
|
397
|
+
let start_chunk;
|
|
398
|
+
for (chunk_index = 0;; chunk_index++) {
|
|
399
|
+
const chunk = await this.#get_chunk(chunk_index);
|
|
400
|
+
if (!chunk) return null;
|
|
401
|
+
const chunk_end = chunk_start + chunk.byteLength;
|
|
402
|
+
if (this.#offset >= chunk_start && this.#offset < chunk_end) {
|
|
403
|
+
start_chunk = chunk;
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
chunk_start = chunk_end;
|
|
407
|
+
}
|
|
408
|
+
if (this.#offset + this.size <= chunk_start + start_chunk.byteLength) {
|
|
409
|
+
controller.enqueue(start_chunk.subarray(this.#offset - chunk_start, this.#offset + this.size - chunk_start));
|
|
410
|
+
controller.close();
|
|
411
|
+
} else {
|
|
412
|
+
controller.enqueue(start_chunk.subarray(this.#offset - chunk_start));
|
|
413
|
+
cursor = start_chunk.byteLength - this.#offset + chunk_start;
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
pull: async (controller) => {
|
|
417
|
+
chunk_index++;
|
|
418
|
+
let chunk = await this.#get_chunk(chunk_index);
|
|
419
|
+
if (!chunk) {
|
|
420
|
+
controller.error("incomplete file data");
|
|
421
|
+
controller.close();
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
if (chunk.byteLength > this.size - cursor) chunk = chunk.subarray(0, this.size - cursor);
|
|
425
|
+
controller.enqueue(chunk);
|
|
426
|
+
cursor += chunk.byteLength;
|
|
427
|
+
if (cursor >= this.size) controller.close();
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
async text() {
|
|
432
|
+
return decoder.decode(await this.arrayBuffer());
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
var path_regex = /^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;
|
|
436
|
+
/**
|
|
437
|
+
* @param {string} path
|
|
438
|
+
*/
|
|
439
|
+
function split_path(path) {
|
|
440
|
+
if (!path_regex.test(path)) throw new Error(`Invalid path ${path}`);
|
|
441
|
+
return path.split(/\.|\[|\]/).filter(Boolean);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Check if a property key is dangerous and could lead to prototype pollution
|
|
445
|
+
* @param {string} key
|
|
446
|
+
*/
|
|
447
|
+
function check_prototype_pollution(key) {
|
|
448
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") throw new Error(`Invalid key "${key}"`);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Sets a value in a nested object using an array of keys, mutating the original object.
|
|
452
|
+
* @param {Record<string, any>} object
|
|
453
|
+
* @param {string[]} keys
|
|
454
|
+
* @param {any} value
|
|
455
|
+
*/
|
|
456
|
+
function deep_set(object, keys, value) {
|
|
457
|
+
let current = object;
|
|
458
|
+
for (let i = 0; i < keys.length - 1; i += 1) {
|
|
459
|
+
const key = keys[i];
|
|
460
|
+
check_prototype_pollution(key);
|
|
461
|
+
const is_array = /^\d+$/.test(keys[i + 1]);
|
|
462
|
+
const inner = Object.hasOwn(current, key) ? current[key] : void 0;
|
|
463
|
+
const exists = inner != null;
|
|
464
|
+
if (exists && is_array !== Array.isArray(inner)) throw new Error(`Invalid array key ${keys[i + 1]}`);
|
|
465
|
+
if (!exists) current[key] = is_array ? [] : {};
|
|
466
|
+
current = current[key];
|
|
467
|
+
}
|
|
468
|
+
const final_key = keys[keys.length - 1];
|
|
469
|
+
check_prototype_pollution(final_key);
|
|
470
|
+
current[final_key] = value;
|
|
471
|
+
}
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/http.js
|
|
474
|
+
/**
|
|
475
|
+
* Given an Accept header and a list of possible content types, pick
|
|
476
|
+
* the most suitable one to respond with
|
|
477
|
+
* @param {string} accept
|
|
478
|
+
* @param {string[]} types
|
|
479
|
+
*/
|
|
480
|
+
function negotiate(accept, types) {
|
|
481
|
+
/** @type {Array<{ type: string, subtype: string, q: number, i: number }>} */
|
|
482
|
+
const parts = [];
|
|
483
|
+
accept.split(",").forEach((str, i) => {
|
|
484
|
+
const match = /([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(str);
|
|
485
|
+
if (match) {
|
|
486
|
+
const [, type, subtype, q = "1"] = match;
|
|
487
|
+
parts.push({
|
|
488
|
+
type,
|
|
489
|
+
subtype,
|
|
490
|
+
q: +q,
|
|
491
|
+
i
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
parts.sort((a, b) => {
|
|
496
|
+
if (a.q !== b.q) return b.q - a.q;
|
|
497
|
+
if (a.subtype === "*" !== (b.subtype === "*")) return a.subtype === "*" ? 1 : -1;
|
|
498
|
+
if (a.type === "*" !== (b.type === "*")) return a.type === "*" ? 1 : -1;
|
|
499
|
+
return a.i - b.i;
|
|
500
|
+
});
|
|
501
|
+
let accepted;
|
|
502
|
+
let min_priority = Infinity;
|
|
503
|
+
for (const mimetype of types) {
|
|
504
|
+
const [type, subtype] = mimetype.split("/");
|
|
505
|
+
const priority = parts.findIndex((part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*"));
|
|
506
|
+
if (priority !== -1 && priority < min_priority) {
|
|
507
|
+
accepted = mimetype;
|
|
508
|
+
min_priority = priority;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
return accepted;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Reads all `Set-Cookie` headers as separate values. `Headers.get('set-cookie')`
|
|
515
|
+
* collapses them into a single comma-joined string that browsers cannot parse, so
|
|
516
|
+
* we use `Headers.getSetCookie()` where available and fall back to splitting the
|
|
517
|
+
* joined string otherwise.
|
|
518
|
+
*
|
|
519
|
+
* TODO 3.0 `getSetCookie` is available in Node 19.7+; once we drop support for
|
|
520
|
+
* older versions we can use it directly and remove the `splitCookiesString` fallback
|
|
521
|
+
* @param {Headers} headers
|
|
522
|
+
* @returns {string[]}
|
|
523
|
+
*/
|
|
524
|
+
function get_set_cookies(headers) {
|
|
525
|
+
if (typeof headers.getSetCookie === "function") return headers.getSetCookie();
|
|
526
|
+
const set_cookie = headers.get("set-cookie");
|
|
527
|
+
return set_cookie ? splitCookiesString(set_cookie) : [];
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Returns `true` if the request contains a `content-type` header with the given type
|
|
531
|
+
* @param {Request} request
|
|
532
|
+
* @param {...string} types
|
|
533
|
+
*/
|
|
534
|
+
function is_content_type(request, ...types) {
|
|
535
|
+
const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? "";
|
|
536
|
+
return types.includes(type.toLowerCase());
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @param {Request} request
|
|
540
|
+
*/
|
|
541
|
+
function is_form_content_type(request) {
|
|
542
|
+
return is_content_type(request, "application/x-www-form-urlencoded", "multipart/form-data", "text/plain", BINARY_FORM_CONTENT_TYPE);
|
|
543
|
+
}
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/misc.js
|
|
546
|
+
var s = JSON.stringify;
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/escape.js
|
|
549
|
+
/**
|
|
550
|
+
* When inside a double-quoted attribute value, only `&` and `"` hold special meaning.
|
|
551
|
+
* @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state
|
|
552
|
+
* @type {Record<string, string>}
|
|
553
|
+
*/
|
|
554
|
+
var escape_html_attr_dict = {
|
|
555
|
+
"&": "&",
|
|
556
|
+
"\"": """
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* @type {Record<string, string>}
|
|
560
|
+
*/
|
|
561
|
+
var escape_html_dict = {
|
|
562
|
+
"&": "&",
|
|
563
|
+
"<": "<"
|
|
564
|
+
};
|
|
565
|
+
var escape_html_attr_regex = new RegExp(`[${Object.keys(escape_html_attr_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
|
|
566
|
+
var escape_html_regex = new RegExp(`[${Object.keys(escape_html_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
|
|
567
|
+
/**
|
|
568
|
+
* Escapes unpaired surrogates (which are allowed in js strings but invalid in HTML) and
|
|
569
|
+
* escapes characters that are special.
|
|
570
|
+
*
|
|
571
|
+
* @param {string} str
|
|
572
|
+
* @param {boolean} [is_attr]
|
|
573
|
+
* @returns {string} escaped string
|
|
574
|
+
* @example const html = `<tag data-value="${escape_html('value', true)}">...</tag>`;
|
|
575
|
+
*/
|
|
576
|
+
function escape_html(str, is_attr) {
|
|
577
|
+
const dict = is_attr ? escape_html_attr_dict : escape_html_dict;
|
|
578
|
+
return str.replace(is_attr ? escape_html_attr_regex : escape_html_regex, (match) => {
|
|
579
|
+
if (match.length === 2) return match;
|
|
580
|
+
return dict[match] ?? `&#${match.charCodeAt(0)};`;
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/utils.js
|
|
585
|
+
/** @import { ServerHooks } from 'types' */
|
|
586
|
+
/**
|
|
587
|
+
* @param {Partial<Record<import('types').HttpMethod, any>>} mod
|
|
588
|
+
* @param {import('types').HttpMethod} method
|
|
589
|
+
*/
|
|
590
|
+
function method_not_allowed(mod, method) {
|
|
591
|
+
return text(`${method} method not allowed`, {
|
|
592
|
+
status: 405,
|
|
593
|
+
headers: { allow: allowed_methods(mod).join(", ") }
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
/** @param {Partial<Record<import('types').HttpMethod, any>>} mod */
|
|
597
|
+
function allowed_methods(mod) {
|
|
598
|
+
const allowed = ENDPOINT_METHODS.filter((method) => method in mod);
|
|
599
|
+
if ("GET" in mod && !("HEAD" in mod)) allowed.push("HEAD");
|
|
600
|
+
return allowed;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @param {import('types').SSROptions} options
|
|
604
|
+
*/
|
|
605
|
+
function get_global_name(options) {
|
|
606
|
+
return `__sveltekit_${options.version_hash}`;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Return as a response that renders the error.html
|
|
610
|
+
*
|
|
611
|
+
* @param {import('types').SSROptions} options
|
|
612
|
+
* @param {number} status
|
|
613
|
+
* @param {string} message
|
|
614
|
+
*/
|
|
615
|
+
function static_error_page(options, status, message) {
|
|
616
|
+
return text(options.templates.error({
|
|
617
|
+
status,
|
|
618
|
+
message: escape_html(message)
|
|
619
|
+
}), {
|
|
620
|
+
headers: { "content-type": "text/html; charset=utf-8" },
|
|
621
|
+
status
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* @param {import('@sveltejs/kit').RequestEvent} event
|
|
626
|
+
* @param {import('types').RequestState} state
|
|
627
|
+
* @param {import('types').SSROptions} options
|
|
628
|
+
* @param {unknown} error
|
|
629
|
+
*/
|
|
630
|
+
async function handle_fatal_error(event, state, options, error) {
|
|
631
|
+
error = error instanceof HttpError ? error : coalesce_to_error(error);
|
|
632
|
+
const status = get_status(error);
|
|
633
|
+
const body = await handle_error_and_jsonify(event, state, options, error);
|
|
634
|
+
const type = negotiate(event.request.headers.get("accept") || "text/html", ["application/json", "text/html"]);
|
|
635
|
+
if (event.isDataRequest || type === "application/json") return json(body, { status });
|
|
636
|
+
return static_error_page(options, status, body.message);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* @param {import('@sveltejs/kit').RequestEvent} event
|
|
640
|
+
* @param {import('types').RequestState} state
|
|
641
|
+
* @param {import('types').SSROptions} options
|
|
642
|
+
* @param {any} error
|
|
643
|
+
* @returns {Promise<App.Error>}
|
|
644
|
+
*/
|
|
645
|
+
async function handle_error_and_jsonify(event, state, options, error) {
|
|
646
|
+
if (error instanceof HttpError) return {
|
|
647
|
+
message: "Unknown Error",
|
|
648
|
+
...error.body
|
|
649
|
+
};
|
|
650
|
+
const status = get_status(error);
|
|
651
|
+
const message = get_message(error);
|
|
652
|
+
return await with_request_store({
|
|
653
|
+
event,
|
|
654
|
+
state
|
|
655
|
+
}, () => options.hooks.handleError({
|
|
656
|
+
error,
|
|
657
|
+
event,
|
|
658
|
+
status,
|
|
659
|
+
message
|
|
660
|
+
})) ?? { message };
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* @param {number} status
|
|
664
|
+
* @param {string} location
|
|
665
|
+
*/
|
|
666
|
+
function redirect_response(status, location) {
|
|
667
|
+
return new Response(void 0, {
|
|
668
|
+
status,
|
|
669
|
+
headers: { location }
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* @param {import('@sveltejs/kit').RequestEvent} event
|
|
674
|
+
* @param {Error & { path: string }} error
|
|
675
|
+
*/
|
|
676
|
+
function clarify_devalue_error(event, error) {
|
|
677
|
+
if (error.path) return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`;
|
|
678
|
+
if (error.path === "") return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`;
|
|
679
|
+
return error.message;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @param {import('types').ServerDataNode} node
|
|
683
|
+
*/
|
|
684
|
+
function serialize_uses(node) {
|
|
685
|
+
const uses = {};
|
|
686
|
+
if (node.uses && node.uses.dependencies.size > 0) uses.dependencies = Array.from(node.uses.dependencies);
|
|
687
|
+
if (node.uses && node.uses.search_params.size > 0) uses.search_params = Array.from(node.uses.search_params);
|
|
688
|
+
if (node.uses && node.uses.params.size > 0) uses.params = Array.from(node.uses.params);
|
|
689
|
+
if (node.uses?.parent) uses.parent = 1;
|
|
690
|
+
if (node.uses?.route) uses.route = 1;
|
|
691
|
+
if (node.uses?.url) uses.url = 1;
|
|
692
|
+
return uses;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Returns `true` if the given path was prerendered
|
|
696
|
+
* @param {import('@sveltejs/kit').SSRManifest} manifest
|
|
697
|
+
* @param {string} pathname Should include the base and be decoded
|
|
698
|
+
*/
|
|
699
|
+
function has_prerendered_path(manifest, pathname) {
|
|
700
|
+
return manifest._.prerendered_routes.has(pathname) || pathname.at(-1) === "/" && manifest._.prerendered_routes.has(pathname.slice(0, -1));
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Formats the error into a nice message with sanitized stack trace
|
|
704
|
+
* @param {number} status
|
|
705
|
+
* @param {Error} error
|
|
706
|
+
* @param {import('@sveltejs/kit').RequestEvent} event
|
|
707
|
+
*/
|
|
708
|
+
function format_server_error(status, error, event) {
|
|
709
|
+
const formatted_text = `\n\x1b[1;31m[${status}] ${event.request.method} ${event.url.pathname}\x1b[0m`;
|
|
710
|
+
if (status === 404) return formatted_text;
|
|
711
|
+
return `${formatted_text}\n${error.stack}`;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Returns the filename without the extension. e.g., `+page.server`, `+page`, etc.
|
|
715
|
+
* @param {string | undefined} node_id
|
|
716
|
+
* @returns {string}
|
|
717
|
+
*/
|
|
718
|
+
function get_node_type(node_id) {
|
|
719
|
+
const filename = (node_id?.split("/"))?.at(-1);
|
|
720
|
+
if (!filename) return "unknown";
|
|
721
|
+
return filename.split(".").slice(0, -1).join(".");
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Creates a serialiser for non-arbitrary POJOs using the app's transport hook
|
|
725
|
+
* @param {ServerHooks['transport']} transport
|
|
726
|
+
* @returns {(thing: unknown) => string | undefined}
|
|
727
|
+
*/
|
|
728
|
+
function create_replacer(transport) {
|
|
729
|
+
/** @param {unknown} thing */
|
|
730
|
+
const replacer = (thing) => {
|
|
731
|
+
for (const key in transport) {
|
|
732
|
+
const encoded = transport[key].encode(thing);
|
|
733
|
+
if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
return replacer;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export { ENDPOINT_METHODS as E, PAGE_METHODS as P, handle_fatal_error as a, static_error_page as b, handle_error_and_jsonify as c, get_global_name as d, create_replacer as e, format_server_error as f, get_set_cookies as g, has_prerendered_path as h, is_form_content_type as i, serialize_uses as j, clarify_devalue_error as k, get_node_type as l, method_not_allowed as m, negotiate as n, escape_html as o, parseString as p, deserialize_binary_form as q, redirect_response as r, s };
|
|
740
|
+
//# sourceMappingURL=utils.js-BqOwS4Ug.js.map
|