@nanoforge-dev/editor 0.0.1 → 0.0.2-beta.4555742
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.DH-_Mfdo.css +1 -0
- package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.gz +0 -0
- package/dist/client/_app/immutable/assets/10.BP_hUVIU.css +1 -0
- package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.br +0 -0
- package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.gz +0 -0
- package/dist/client/_app/immutable/assets/editor.BuC0XPbM.css.gz +0 -0
- package/dist/client/_app/immutable/assets/error.CV-KWLNP.css +1 -0
- package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.br +1 -0
- package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/08VXUWAP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/43DmfD33.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js +1 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
- package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/6RTg0lbw2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B2921r3t2.js +1 -0
- package/dist/client/_app/immutable/chunks/B2921r3t2.js.br +1 -0
- package/dist/client/_app/immutable/chunks/B2921r3t2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{XIokwnxj2.js → B41NCdmk2.js} +1 -1
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B5-_aFwp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js +1 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B8J7ngcE2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B9JPFI3C2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BAdxhMRi.js +1 -0
- package/dist/client/_app/immutable/chunks/BAdxhMRi.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BAdxhMRi.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BEEn4gHE.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BEtHBSE62.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BKFRmAUx.js +0 -0
- package/dist/client/_app/immutable/chunks/BKFRmAUx.js.br +1 -0
- package/dist/client/_app/immutable/chunks/BKFRmAUx.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BKxtCVv1.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BOotOW0E2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BWPQTe0t.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BYgofb2h.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Ba7i2nA0.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bc_sGQ0U.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bd4_wRJp.js +1 -0
- package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BeGwcela.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js +1 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BgJkaMKb.js +1 -0
- package/dist/client/_app/immutable/chunks/BgJkaMKb.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BgJkaMKb.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js +1 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bri6UV-V2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BtTZd70i.js +293 -0
- package/dist/client/_app/immutable/chunks/BtTZd70i.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BtTZd70i.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BvRk9kiK.js +0 -0
- package/dist/client/_app/immutable/chunks/BvRk9kiK.js.br +1 -0
- package/dist/client/_app/immutable/chunks/BvRk9kiK.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwWrilGY.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bxkupp3x.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bz4Y3fRF.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C-y9NEjX2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C50LmoI1.js +0 -0
- package/dist/client/_app/immutable/chunks/C50LmoI1.js.br +1 -0
- package/dist/client/_app/immutable/chunks/C50LmoI1.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C531GsRP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C5_-GSwl2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C7h46wYY.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C8Ef5oNN2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CC2rA5mh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js +1 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CIPQ_RoX.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js +1 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js +1 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CRfGWb83.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CVaqCwHa.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CcwsVR0C.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CeXz7yzc.js +1 -0
- package/dist/client/_app/immutable/chunks/CeXz7yzc.js.br +3 -0
- package/dist/client/_app/immutable/chunks/CeXz7yzc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CfSJPG6W2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Cimd5fb32.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Cl5WnCnS.js +0 -0
- package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.br +1 -0
- package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ClamHrr6.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Cm7r79vr.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CopQ2nXW.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CpzslTdj2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CsQS60Ue2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js +4 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js +1 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BnEty9Zf.js → Cx3ix-dL2.js} +1 -1
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D-oSqn_W2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D-ptJ9y-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D05T4iGw2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D3hlyOfw.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{Bi01QGTh2.js → D5kSEVHd2.js} +1 -1
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{B1bBmRUz2.js → D8HnIxQ42.js} +1 -1
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js +1 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
- package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DHpiXF5c.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DIMkf-bt.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DISqw1ZD.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js +1 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DMUM7wLl.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js +1 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DT7zqm-g.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DTj74zXo.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DV3o63ZY2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DZFCIeNp2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D_Lu-MrJ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DauUninz.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DbInun42.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DdL9SqIa.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/De2hgUGE.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DezsRK8O.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DgrK8UCQ.js +0 -0
- package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.br +1 -0
- package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DkqhCAOL.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DmHpPYUd.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DpFanUEy2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DrH0SRf2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js +872 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DybRo6-H.js +0 -0
- package/dist/client/_app/immutable/chunks/DybRo6-H.js.br +1 -0
- package/dist/client/_app/immutable/chunks/DybRo6-H.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/FvmIjYaQ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js +3 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
- package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/JwdpM2S5.js +1 -0
- package/dist/client/_app/immutable/chunks/JwdpM2S5.js.br +0 -0
- package/dist/client/_app/immutable/chunks/JwdpM2S5.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/NEE52Syq.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js +1 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
- package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/QKmwP2RH.js +6 -0
- package/dist/client/_app/immutable/chunks/QKmwP2RH.js.br +0 -0
- package/dist/client/_app/immutable/chunks/QKmwP2RH.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/SOo6toE5.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/{BwWFGvpp2.js → VTYQK3v_2.js} +2 -2
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js +2 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js +1 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Z5eAx3Zn.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/bTuwJoIa.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/fmXr3nnJ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/gp-XZpBa.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/i0X4ZdIN.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/nr791fC2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/onAF5SnQ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/oz_6vUea.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/sBoK_t0W2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CgTzSlEq.js +2 -0
- package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.DeuMoHin.js +1 -0
- package/dist/client/_app/immutable/entry/start.DeuMoHin.js.br +1 -0
- package/dist/client/_app/immutable/entry/start.DeuMoHin.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js +9 -0
- package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js +1 -0
- package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js +6 -0
- package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.br +0 -0
- package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js +1 -0
- package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js +1 -0
- package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.br +0 -0
- package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.gz +0 -0
- package/dist/client/_app/immutable/workers/{css.worker-DRFWP4k7.js → css.worker-CvXBzhp8.js} +2 -2
- package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.br +0 -0
- package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.gz +0 -0
- package/dist/client/_app/immutable/workers/{html.worker-CXAEVlCI.js → html.worker-BO6WuOEO.js} +3 -3
- package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.br +0 -0
- package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.gz +0 -0
- package/dist/client/_app/immutable/workers/{json.worker-Dkwen84u.js → json.worker-BkJRGcCJ.js} +2 -2
- package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.br +0 -0
- package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.gz +0 -0
- package/dist/client/_app/immutable/workers/{ts.worker-DJwDx_mp.js → ts.worker-B0J26iPs.js} +33 -18
- package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.br +0 -0
- package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.gz +0 -0
- package/dist/client/_app/version.json +1 -1
- package/dist/client/_app/version.json.br +0 -0
- package/dist/client/_app/version.json.gz +0 -0
- package/dist/client/assets/fonts/dmmono-53a90e28.woff2 +0 -0
- package/dist/client/assets/fonts/dmmono-cd6ed524.woff2 +0 -0
- package/dist/client/assets/fonts/dmsans-56778fc7.woff2 +0 -0
- package/dist/client/assets/fonts/dmsans-7c37c8a6.woff2 +0 -0
- package/dist/client/assets/fonts/dmserifdisplay-1f997542.woff2 +0 -0
- package/dist/client/assets/fonts/dmserifdisplay-b6206db2.woff2 +0 -0
- package/dist/client/favicon.svg.gz +0 -0
- package/dist/server/chunks/0-CQDIDss4.js +16 -0
- package/dist/server/chunks/0-CQDIDss4.js.map +1 -0
- package/dist/server/chunks/{1-BgVLfks1.js → 1-CYyEReIL.js} +7 -7
- package/dist/server/chunks/{1-BgVLfks1.js.map → 1-CYyEReIL.js.map} +1 -1
- package/dist/server/chunks/10-D0mJxn8S.js +22 -0
- package/dist/server/chunks/10-D0mJxn8S.js.map +1 -0
- package/dist/server/chunks/{2-CzdRJh2P.js → 2-COraPbPF.js} +13 -13
- package/dist/server/chunks/2-COraPbPF.js.map +1 -0
- package/dist/server/chunks/3-CcIZ_M60.js +152 -0
- package/dist/server/chunks/3-CcIZ_M60.js.map +1 -0
- package/dist/server/chunks/4-DyArZX6h.js +21 -0
- package/dist/server/chunks/4-DyArZX6h.js.map +1 -0
- package/dist/server/chunks/5-DVrv6Zto.js +21 -0
- package/dist/server/chunks/5-DVrv6Zto.js.map +1 -0
- package/dist/server/chunks/6-AD0Ee23-.js +65 -0
- package/dist/server/chunks/6-AD0Ee23-.js.map +1 -0
- package/dist/server/chunks/7-CuJ7XfzT.js +27 -0
- package/dist/server/chunks/7-CuJ7XfzT.js.map +1 -0
- package/dist/server/chunks/8-CRPOubhA.js +27 -0
- package/dist/server/chunks/8-CRPOubhA.js.map +1 -0
- package/dist/server/chunks/9-Bk259Pew.js +22 -0
- package/dist/server/chunks/9-Bk259Pew.js.map +1 -0
- package/dist/server/chunks/_layout.svelte-CP4jFwsK.js +1944 -0
- package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +1 -0
- package/dist/server/chunks/_page.svelte-C7h5iN8e.js +599 -0
- package/dist/server/chunks/_page.svelte-C7h5iN8e.js.map +1 -0
- package/dist/server/chunks/_page.svelte-DNEdNwOa.js +155 -0
- package/dist/server/chunks/_page.svelte-DNEdNwOa.js.map +1 -0
- package/dist/server/chunks/_page.svelte-aqS45KvA.js +6249 -0
- package/dist/server/chunks/_page.svelte-aqS45KvA.js.map +1 -0
- package/dist/server/chunks/_server.ts-BYvWhjnh.js +19 -0
- package/dist/server/chunks/_server.ts-BYvWhjnh.js.map +1 -0
- package/dist/server/chunks/_server.ts-CrY08U-x.js +35 -0
- package/dist/server/chunks/_server.ts-CrY08U-x.js.map +1 -0
- package/dist/server/chunks/{app-l-cuFP__.js → app-DUeJj5RD.js} +1 -1
- package/dist/server/chunks/app-DUeJj5RD.js.map +1 -0
- package/dist/server/chunks/{chunk-9PtDFT_4.js → chunk-ByNZkrT6.js} +5 -7
- package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -0
- package/dist/server/chunks/chunk-D7D4PA-g.js +13 -0
- package/dist/server/chunks/{client-Dx0O-q6m.js → client-BpCCCb_o.js} +53 -9
- package/dist/server/chunks/client-BpCCCb_o.js.map +1 -0
- package/dist/server/chunks/const-Dy5RfQqP.js +17 -0
- package/dist/server/chunks/const-Dy5RfQqP.js.map +1 -0
- package/dist/server/chunks/error-CFpEevfM.js +14938 -0
- package/dist/server/chunks/error-CFpEevfM.js.map +1 -0
- package/dist/server/chunks/error.svelte-DoUr3CqI.js +12 -0
- package/dist/server/chunks/error.svelte-DoUr3CqI.js.map +1 -0
- package/dist/server/chunks/{dev-7V6fUCff.js → events-DeYJGjCt.js} +621 -150
- package/dist/server/chunks/events-DeYJGjCt.js.map +1 -0
- package/dist/server/chunks/{exports-j3HcL9It.js → exports-8wSs4fiF.js} +4 -5
- package/dist/server/chunks/exports-8wSs4fiF.js.map +1 -0
- package/dist/server/chunks/format-DGOlJxF5.js +123 -0
- package/dist/server/chunks/format-DGOlJxF5.js.map +1 -0
- package/dist/server/chunks/hooks.server-CG8Cy27D.js +362 -0
- package/dist/server/chunks/hooks.server-CG8Cy27D.js.map +1 -0
- package/dist/server/chunks/{hooks.universal-0JHSyeLw.js → hooks.universal-DhGFdBkK.js} +2 -2
- package/dist/server/chunks/{hooks.universal-0JHSyeLw.js.map → hooks.universal-DhGFdBkK.js.map} +1 -1
- package/dist/server/chunks/{internal-BqoJe00m.js → internal-DXl_jCjC.js} +184 -253
- package/dist/server/chunks/internal-DXl_jCjC.js.map +1 -0
- package/dist/server/chunks/{internal-BgFVxXcc.js → internal-eM0YTBgj.js} +2 -2
- package/dist/server/chunks/{internal-BgFVxXcc.js.map → internal-eM0YTBgj.js.map} +1 -1
- package/dist/server/chunks/loader-circle-zqx69BdD.js +1592 -0
- package/dist/server/chunks/loader-circle-zqx69BdD.js.map +1 -0
- package/dist/server/chunks/logo-BCJKEF48.js +848 -0
- package/dist/server/chunks/logo-BCJKEF48.js.map +1 -0
- package/dist/server/chunks/project-loader-Q4QyAH66.js +185 -0
- package/dist/server/chunks/project-loader-Q4QyAH66.js.map +1 -0
- package/dist/server/chunks/request-handler-D-qbwxhh.js +1084 -0
- package/dist/server/chunks/request-handler-D-qbwxhh.js.map +1 -0
- package/dist/server/chunks/{runtime-ISoc6PNh.js → runtime-CDHWD9vo.js} +3 -7
- package/dist/server/chunks/runtime-CDHWD9vo.js.map +1 -0
- package/dist/server/chunks/schemas-CyYMWYjZ.js +11324 -0
- package/dist/server/chunks/schemas-CyYMWYjZ.js.map +1 -0
- package/dist/server/chunks/{hooks.server-DqaQ1y1I.js → session-CmQRz9-0.js} +77 -368
- package/dist/server/chunks/session-CmQRz9-0.js.map +1 -0
- package/dist/server/chunks/{shared-server-D--cyMsO.js → shared-server-Cha0Qlv9.js} +1 -1
- package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -0
- package/dist/server/chunks/{error.svelte-C5CCEI9O.js → state-UEnMVrEd.js} +5 -33
- package/dist/server/chunks/state-UEnMVrEd.js.map +1 -0
- package/dist/server/chunks/window-D774FEA_.js +6 -0
- package/dist/server/chunks/window-D774FEA_.js.map +1 -0
- package/dist/server/index.js +381 -231
- package/dist/server/index.js.map +1 -1
- package/dist/server/manifest.js +98 -26
- package/dist/server/manifest.js.map +1 -1
- package/package.json +55 -41
- package/dist/client/_app/immutable/assets/0.562EP7L3.css +0 -1
- package/dist/client/_app/immutable/assets/0.562EP7L3.css.br +0 -0
- package/dist/client/_app/immutable/assets/0.562EP7L3.css.gz +0 -0
- package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css +0 -1
- package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.br +0 -0
- package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.gz +0 -0
- package/dist/client/_app/immutable/assets/api.CD54FDqW.css +0 -1
- package/dist/client/_app/immutable/assets/api.CD54FDqW.css.br +0 -0
- package/dist/client/_app/immutable/assets/api.CD54FDqW.css.gz +0 -0
- package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js +0 -1
- package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/1rG2eYdz2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/5CAt0tAC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/5TEFcS4X2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/5k3Q8YWH.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B0Q9zT_Q.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B1GYE4NT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B3IjbASq.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B3VOL0kZ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B5crfj0i.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BAtlESPp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BCAAnHTF2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BEN0jOJp.js +0 -1
- package/dist/client/_app/immutable/chunks/BEN0jOJp.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BEN0jOJp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BHHccBgG2.js +0 -1
- package/dist/client/_app/immutable/chunks/BHHccBgG2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BHHccBgG2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BHxBHC3k.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BK6ghPUh.js +0 -1
- package/dist/client/_app/immutable/chunks/BK6ghPUh.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BK6ghPUh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BL9YzxJT.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BNqbTcCU.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BSRtLNCV.js +0 -3
- package/dist/client/_app/immutable/chunks/BSRtLNCV.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BSRtLNCV.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BSa9oWuP.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BTEHXt4u.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BUMhJFWc.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BXNW00E2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B__0yjCH2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/B_rYXvqX.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BaORWDBQ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BeRB61Rp.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Berct1R62.js +0 -1
- package/dist/client/_app/immutable/chunks/Berct1R62.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Berct1R62.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BnEty9Zf.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BnEty9Zf.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Bp42GhE_.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BqR20QL0.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BuvsQ_0P.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/BxyUv_372.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C459oz3p.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C4oBl-ul.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C5dBxjD0.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C7TuqZTk.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C84aX3eL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CGFoxiJT2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CGdCAl_w2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CJL4GRLV2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CKihvhpr.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CKybJfA6.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CQai7aNJ.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CQghOihB.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CTK4WrGL2.js +0 -1
- package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CUVqITEW2.js +0 -1
- package/dist/client/_app/immutable/chunks/CUVqITEW2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CUVqITEW2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CVmNMiIj.js +0 -1
- package/dist/client/_app/immutable/chunks/CVmNMiIj.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CVmNMiIj.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CW_66Q8N.js +0 -872
- package/dist/client/_app/immutable/chunks/CW_66Q8N.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CW_66Q8N.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CXBbh9s-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CXlfFz7D2.js +0 -1
- package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/C_QqwttH.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CbFxQFBh.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CmjNmBcK.js +0 -1
- package/dist/client/_app/immutable/chunks/CmjNmBcK.js.br +0 -0
- package/dist/client/_app/immutable/chunks/CmjNmBcK.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CntDmp6G.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CqqoQT4S.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CtzzCjLE2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/CziQemry2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Czovc13W.js +0 -1
- package/dist/client/_app/immutable/chunks/Czovc13W.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Czovc13W.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D38BHtSY.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DBkS_L3S.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DEoC-BX-.js +0 -11
- package/dist/client/_app/immutable/chunks/DEoC-BX-.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DEoC-BX-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DHkiqSLl.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DL7ZpfJd.js +0 -1
- package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DUC3NMun2.js +0 -4
- package/dist/client/_app/immutable/chunks/DUC3NMun2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DUC3NMun2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DWUlubL2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/D_HtEbjl.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DaCLQrfC.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DbxPn-f9.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DhPi0T7V2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DkZEX-tr.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js +0 -1
- package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DrDIkqkr2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DunPnEs5.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/DxLN9Q9A.js +0 -1
- package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.br +0 -0
- package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/GhmjqkHA.js +0 -1
- package/dist/client/_app/immutable/chunks/GhmjqkHA.js.br +0 -0
- package/dist/client/_app/immutable/chunks/GhmjqkHA.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/H_bCfo1Z.js +0 -1
- package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.br +0 -1
- package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/KoMdYtDs2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/OELm4xo1.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/OdxrjoDx.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/SlhV96tq.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/X9L1iai42.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/XIokwnxj2.js.br +0 -0
- package/dist/client/_app/immutable/chunks/XIokwnxj2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js +0 -1
- package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.br +0 -0
- package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/acVTcwNd.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/bLoc39kl.js +0 -2
- package/dist/client/_app/immutable/chunks/bLoc39kl.js.br +0 -0
- package/dist/client/_app/immutable/chunks/bLoc39kl.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/dm7qVrFn2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/if7vWS9-.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/kAc38cH_.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/kks0AxFY2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/mA7hbneB.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/qWHUp0PJ2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/u6JPB_fg2.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/v_jBEYI6.js.gz +0 -0
- package/dist/client/_app/immutable/chunks/x4VkYCou2.js.gz +0 -0
- package/dist/client/_app/immutable/entry/app.CrM2Umgq.js +0 -2
- package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.br +0 -0
- package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.gz +0 -0
- package/dist/client/_app/immutable/entry/start.25Vi3KZA.js +0 -1
- package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.br +0 -0
- package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js +0 -1
- package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.br +0 -0
- package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js +0 -1
- package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.br +0 -0
- package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/2.CwofzauD.js +0 -4
- package/dist/client/_app/immutable/nodes/2.CwofzauD.js.br +0 -0
- package/dist/client/_app/immutable/nodes/2.CwofzauD.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/3.CU9DPzka.js +0 -1
- package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.br +0 -0
- package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js +0 -5
- package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.br +0 -0
- package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.gz +0 -0
- package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js +0 -1
- package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.br +0 -0
- package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.gz +0 -0
- package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.br +0 -0
- package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.gz +0 -0
- package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.br +0 -0
- package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.gz +0 -0
- package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.br +0 -0
- package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.gz +0 -0
- package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.br +0 -0
- package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.gz +0 -0
- package/dist/server/chunks/0-DmwMCtOF.js +0 -16
- package/dist/server/chunks/0-DmwMCtOF.js.map +0 -1
- package/dist/server/chunks/2-CzdRJh2P.js.map +0 -1
- package/dist/server/chunks/3-C6uctiU1.js +0 -185
- package/dist/server/chunks/3-C6uctiU1.js.map +0 -1
- package/dist/server/chunks/4-BO3KTp14.js +0 -390
- package/dist/server/chunks/4-BO3KTp14.js.map +0 -1
- package/dist/server/chunks/5-LbaHRTVX.js +0 -259
- package/dist/server/chunks/5-LbaHRTVX.js.map +0 -1
- package/dist/server/chunks/_layout.svelte-BzcRjvYO.js +0 -11
- package/dist/server/chunks/_layout.svelte-BzcRjvYO.js.map +0 -1
- package/dist/server/chunks/_page.svelte-CB5X_URD.js +0 -197
- package/dist/server/chunks/_page.svelte-CB5X_URD.js.map +0 -1
- package/dist/server/chunks/_page.svelte-DMwjXpw4.js +0 -13
- package/dist/server/chunks/_page.svelte-DMwjXpw4.js.map +0 -1
- package/dist/server/chunks/_page.svelte-XIYDQw7d.js +0 -14
- package/dist/server/chunks/_page.svelte-XIYDQw7d.js.map +0 -1
- package/dist/server/chunks/_page.svelte-paWD_HcG.js +0 -4302
- package/dist/server/chunks/_page.svelte-paWD_HcG.js.map +0 -1
- package/dist/server/chunks/api-9BLkbfaG.js +0 -9126
- package/dist/server/chunks/api-9BLkbfaG.js.map +0 -1
- package/dist/server/chunks/app-l-cuFP__.js.map +0 -1
- package/dist/server/chunks/client-Dx0O-q6m.js.map +0 -1
- package/dist/server/chunks/dev-7V6fUCff.js.map +0 -1
- package/dist/server/chunks/error.svelte-C5CCEI9O.js.map +0 -1
- package/dist/server/chunks/exports-j3HcL9It.js.map +0 -1
- package/dist/server/chunks/forms-CffPpDq6.js +0 -36
- package/dist/server/chunks/forms-CffPpDq6.js.map +0 -1
- package/dist/server/chunks/hooks.server-DqaQ1y1I.js.map +0 -1
- package/dist/server/chunks/internal-BqoJe00m.js.map +0 -1
- package/dist/server/chunks/runtime-ISoc6PNh.js.map +0 -1
- package/dist/server/chunks/server-BlOy0jJl.js +0 -91
- package/dist/server/chunks/server-BlOy0jJl.js.map +0 -1
- package/dist/server/chunks/shared-server-D--cyMsO.js.map +0 -1
- /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js → 08VXUWAP.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js.br → 08VXUWAP.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js → 43DmfD33.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js.br → 43DmfD33.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CQghOihB.js → 6RTg0lbw2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CQghOihB.js.br → 6RTg0lbw2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js → B5-_aFwp.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js.br → B5-_aFwp.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js → B8J7ngcE2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js.br → B8J7ngcE2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js → B9JPFI3C2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js.br → B9JPFI3C2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js → BEEn4gHE.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js.br → BEEn4gHE.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BxyUv_372.js → BEtHBSE62.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BxyUv_372.js.br → BEtHBSE62.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DunPnEs5.js → BKxtCVv1.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DunPnEs5.js.br → BKxtCVv1.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js → BOotOW0E2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js.br → BOotOW0E2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js → BWPQTe0t.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js.br → BWPQTe0t.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B5crfj0i.js → BYgofb2h.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B5crfj0i.js.br → BYgofb2h.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js → Ba7i2nA0.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js.br → Ba7i2nA0.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BAtlESPp.js → Bc_sGQ0U.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BAtlESPp.js.br → Bc_sGQ0U.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js → BeGwcela.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js.br → BeGwcela.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js → Bri6UV-V2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js.br → Bri6UV-V2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js → BwWrilGY.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js.br → BwWrilGY.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js → Bxkupp3x.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js.br → Bxkupp3x.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BqR20QL0.js → Bz4Y3fRF.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BqR20QL0.js.br → Bz4Y3fRF.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js → C-y9NEjX2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js.br → C-y9NEjX2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js → C531GsRP.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js.br → C531GsRP.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CKybJfA6.js → C5_-GSwl2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CKybJfA6.js.br → C5_-GSwl2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js → C7h46wYY.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js.br → C7h46wYY.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js → C8Ef5oNN2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js.br → C8Ef5oNN2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DWUlubL2.js → CC2rA5mh.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DWUlubL2.js.br → CC2rA5mh.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js → CIPQ_RoX.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js.br → CIPQ_RoX.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C_QqwttH.js → CRfGWb83.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C_QqwttH.js.br → CRfGWb83.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js → CVaqCwHa.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js.br → CVaqCwHa.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{SlhV96tq.js → CcwsVR0C.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{SlhV96tq.js.br → CcwsVR0C.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js → CfSJPG6W2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js.br → CfSJPG6W2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js → Cimd5fb32.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js.br → Cimd5fb32.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{if7vWS9-.js → ClamHrr6.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{if7vWS9-.js.br → ClamHrr6.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js → Cm7r79vr.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js.br → Cm7r79vr.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js → CopQ2nXW.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js.br → CopQ2nXW.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CziQemry2.js → CpzslTdj2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CziQemry2.js.br → CpzslTdj2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js → CsQS60Ue2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js.br → CsQS60Ue2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js → D-oSqn_W2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js.br → D-oSqn_W2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js → D-ptJ9y-.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js.br → D-ptJ9y-.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{acVTcwNd.js → D05T4iGw2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{acVTcwNd.js.br → D05T4iGw2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js → D3hlyOfw.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js.br → D3hlyOfw.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B3IjbASq.js → DHpiXF5c.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B3IjbASq.js.br → DHpiXF5c.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{kAc38cH_.js → DIMkf-bt.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{kAc38cH_.js.br → DIMkf-bt.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js → DISqw1ZD.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js.br → DISqw1ZD.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CKihvhpr.js → DMUM7wLl.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CKihvhpr.js.br → DMUM7wLl.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js → DT7zqm-g.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js.br → DT7zqm-g.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js → DTj74zXo.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js.br → DTj74zXo.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js → DV3o63ZY2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js.br → DV3o63ZY2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js → DZFCIeNp2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js.br → DZFCIeNp2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js → D_Lu-MrJ.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js.br → D_Lu-MrJ.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js → DauUninz.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js.br → DauUninz.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js → DbInun42.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js.br → DbInun42.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js → DdL9SqIa.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js.br → DdL9SqIa.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js → De2hgUGE.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js.br → De2hgUGE.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js → DezsRK8O.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js.br → DezsRK8O.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js → DkqhCAOL.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js.br → DkqhCAOL.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js → DmHpPYUd.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js.br → DmHpPYUd.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{D38BHtSY.js → DpFanUEy2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{D38BHtSY.js.br → DpFanUEy2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js → DrH0SRf2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js.br → DrH0SRf2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js → FvmIjYaQ.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js.br → FvmIjYaQ.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{CntDmp6G.js → NEE52Syq.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{CntDmp6G.js.br → NEE52Syq.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{X9L1iai42.js → SOo6toE5.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{X9L1iai42.js.br → SOo6toE5.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{OELm4xo1.js → Z5eAx3Zn.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{OELm4xo1.js.br → Z5eAx3Zn.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{BXNW00E2.js → bTuwJoIa.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{BXNW00E2.js.br → bTuwJoIa.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js → fmXr3nnJ2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js.br → fmXr3nnJ2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{mA7hbneB.js → gp-XZpBa.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{mA7hbneB.js.br → gp-XZpBa.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js → i0X4ZdIN.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js.br → i0X4ZdIN.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{C459oz3p.js → nr791fC2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{C459oz3p.js.br → nr791fC2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js → onAF5SnQ2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js.br → onAF5SnQ2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js → oz_6vUea.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js.br → oz_6vUea.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js → sBoK_t0W2.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js.br → sBoK_t0W2.js.br} +0 -0
- /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js → xihTtKlq.js} +0 -0
- /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js.br → xihTtKlq.js.br} +0 -0
|
@@ -0,0 +1,1084 @@
|
|
|
1
|
+
import { n as fail } from "./exports-8wSs4fiF.js";
|
|
2
|
+
import { t as private_env } from "./shared-server-Cha0Qlv9.js";
|
|
3
|
+
import { t as Exception } from "./const-Dy5RfQqP.js";
|
|
4
|
+
import { n as PUBLIC_MODE, r as formatFrom, t as HttpClient } from "./format-DGOlJxF5.js";
|
|
5
|
+
import { a as getProject, i as getOrCreateSession, l as tryAddProjectSession, o as resolveProject, r as generateKey, s as resolveSession, t as addProjectToSession } from "./session-CmQRz9-0.js";
|
|
6
|
+
import path, { dirname, join, resolve } from "node:path";
|
|
7
|
+
import fs, { existsSync } from "node:fs";
|
|
8
|
+
import { $ } from "bun";
|
|
9
|
+
import { config } from "dotenv";
|
|
10
|
+
import ts from "typescript";
|
|
11
|
+
//#region .svelte-kit/adapter-bun/chunks/request-handler.js
|
|
12
|
+
var parseFormDataBody = (rawBody, c) => {
|
|
13
|
+
return parseBody(Object.fromEntries(Array.from(rawBody.entries()).map(([key, value]) => [key, JSON.parse(value)])), c);
|
|
14
|
+
};
|
|
15
|
+
var parseBody = (baseBody, c) => {
|
|
16
|
+
return baseBody;
|
|
17
|
+
};
|
|
18
|
+
var getContext = async (event) => {
|
|
19
|
+
const session = await resolveSession(event.locals.session);
|
|
20
|
+
const project = resolveProject(event.request.headers, session);
|
|
21
|
+
return {
|
|
22
|
+
online: PUBLIC_MODE === "ONLINE",
|
|
23
|
+
session,
|
|
24
|
+
project
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
var setTokensInCookies = (cookies, { accessToken, refreshToken, tokenExpiresAt }) => {
|
|
28
|
+
cookies.set("accessToken", accessToken, {
|
|
29
|
+
httpOnly: true,
|
|
30
|
+
secure: private_env.NODE_ENV === "production",
|
|
31
|
+
sameSite: "lax",
|
|
32
|
+
path: "/",
|
|
33
|
+
expires: new Date(tokenExpiresAt)
|
|
34
|
+
});
|
|
35
|
+
cookies.set("refreshToken", refreshToken, {
|
|
36
|
+
httpOnly: true,
|
|
37
|
+
secure: private_env.NODE_ENV === "production",
|
|
38
|
+
sameSite: "lax",
|
|
39
|
+
path: "/",
|
|
40
|
+
maxAge: 3600 * 24 * 30
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var refreshToken = async (cookies, force = false) => {
|
|
44
|
+
let accessToken = force ? void 0 : cookies.get("accessToken");
|
|
45
|
+
const refreshToken = cookies.get("refreshToken");
|
|
46
|
+
if (!accessToken) {
|
|
47
|
+
if (!refreshToken) throw new Exception("Unauthorized", "No token found", 401);
|
|
48
|
+
try {
|
|
49
|
+
const tokens = await getNoAuthApi().auth.refreshToken({ refreshToken });
|
|
50
|
+
setTokensInCookies(cookies, tokens);
|
|
51
|
+
accessToken = tokens.accessToken;
|
|
52
|
+
} catch {
|
|
53
|
+
throw new Exception("Unauthorized", "Invalid refresh token", 401);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return accessToken;
|
|
57
|
+
};
|
|
58
|
+
var getRequestParams = (params, token) => ({
|
|
59
|
+
...params,
|
|
60
|
+
options: {
|
|
61
|
+
...params.options,
|
|
62
|
+
headers: {
|
|
63
|
+
...params.options.headers,
|
|
64
|
+
Authorization: `Bearer ${token}`
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
var useTokenMiddleware = (cookies) => {
|
|
69
|
+
return async (params, next) => {
|
|
70
|
+
const res = await next(getRequestParams(params, cookies.get("accessToken") ?? await refreshToken(cookies)));
|
|
71
|
+
if (res.status === 401) return await next(getRequestParams(params, await refreshToken(cookies, true)));
|
|
72
|
+
return res;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
var BaseRepository = class {
|
|
76
|
+
_client;
|
|
77
|
+
_online;
|
|
78
|
+
constructor(client, online = true) {
|
|
79
|
+
this._client = client;
|
|
80
|
+
this._online = online;
|
|
81
|
+
}
|
|
82
|
+
get(path, options) {
|
|
83
|
+
return this.runRequest("get", path, options);
|
|
84
|
+
}
|
|
85
|
+
post(path, body, options) {
|
|
86
|
+
return this.runRequestBody("post", path, body, options);
|
|
87
|
+
}
|
|
88
|
+
put(path, body, options) {
|
|
89
|
+
return this.runRequestBody("put", path, body, options);
|
|
90
|
+
}
|
|
91
|
+
patch(path, body, options) {
|
|
92
|
+
return this.runRequestBody("patch", path, body, options);
|
|
93
|
+
}
|
|
94
|
+
delete(path, options) {
|
|
95
|
+
return this.runRequest("delete", path, options);
|
|
96
|
+
}
|
|
97
|
+
assertOnline() {
|
|
98
|
+
if (!this._online) throw new Error("This route is only available in online mode");
|
|
99
|
+
}
|
|
100
|
+
async runRequest(request, path, options) {
|
|
101
|
+
if (!options?.offline) this.assertOnline();
|
|
102
|
+
const res = await this._client[request](path, options);
|
|
103
|
+
if (!res.ok) throw new Error(`Request failed with status code ${res.status}`, { cause: await res.json() });
|
|
104
|
+
return await res.json();
|
|
105
|
+
}
|
|
106
|
+
async runRequestBody(request, path, body, options) {
|
|
107
|
+
if (!options?.offline) this.assertOnline();
|
|
108
|
+
const res = await this._client[request](path, body === void 0 ? void 0 : JSON.stringify(body), options);
|
|
109
|
+
const data = await res.json();
|
|
110
|
+
if (!res.ok) throw new Error(`Request failed with status code ${res.status}`, { cause: data });
|
|
111
|
+
return data;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
var AuthRepository = class extends BaseRepository {
|
|
115
|
+
refreshToken(input) {
|
|
116
|
+
return this.post(`/auth/refresh-token`, input);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var ProjectRepository = class extends BaseRepository {
|
|
120
|
+
getProject(id) {
|
|
121
|
+
return this.get(`/editor/projects/${id}`);
|
|
122
|
+
}
|
|
123
|
+
getProjects() {
|
|
124
|
+
return this.get(`/projects`);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
var RegistryRepository = class extends BaseRepository {
|
|
128
|
+
getPackage(packageName) {
|
|
129
|
+
return this.get(`/registry/${packageName}`, { offline: true });
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var DEFAULT_API_URL = "https://api.nanoforge.eu";
|
|
133
|
+
var getNoAuthApi = () => {
|
|
134
|
+
const client = new HttpClient(private_env.API_URL ?? DEFAULT_API_URL, { headers: { "Content-Type": "application/json" } });
|
|
135
|
+
const isOnline = PUBLIC_MODE === "ONLINE";
|
|
136
|
+
return {
|
|
137
|
+
auth: new AuthRepository(client, isOnline),
|
|
138
|
+
registry: new RegistryRepository(client, isOnline)
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
var getApi = (cookies) => {
|
|
142
|
+
if (!private_env.API_KEY) throw new Error("API_KEY is not defined");
|
|
143
|
+
const client = new HttpClient(private_env.API_URL ?? DEFAULT_API_URL, { headers: {
|
|
144
|
+
"Content-Type": "application/json",
|
|
145
|
+
"Api-Key": private_env.API_KEY
|
|
146
|
+
} }).useMiddlewares(useTokenMiddleware(cookies));
|
|
147
|
+
return {
|
|
148
|
+
auth: new AuthRepository(client),
|
|
149
|
+
projects: new ProjectRepository(client),
|
|
150
|
+
registry: new RegistryRepository(client)
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
var CLI_NEW_DEFAULTS = {
|
|
154
|
+
packageManager: "npm",
|
|
155
|
+
language: "ts",
|
|
156
|
+
strict: false,
|
|
157
|
+
server: false,
|
|
158
|
+
skipInstall: false,
|
|
159
|
+
docker: false,
|
|
160
|
+
git: false,
|
|
161
|
+
gitRemote: false
|
|
162
|
+
};
|
|
163
|
+
var CLI_INSTALL_DEFAULTS = {};
|
|
164
|
+
var CLI_BUILD_DEFAULTS = {};
|
|
165
|
+
var CLI_START_DEFAULTS = {};
|
|
166
|
+
var CLI_DEV_DEFAULTS = {};
|
|
167
|
+
var CLI_GENERATE_DEFAULTS = {};
|
|
168
|
+
var CLI_CREATE_DEFAULTS = {};
|
|
169
|
+
var CliError = class extends Exception {
|
|
170
|
+
constructor(message) {
|
|
171
|
+
super("Internal Server Error", message, 500);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
var Cli = class {
|
|
175
|
+
_projectPath;
|
|
176
|
+
constructor(context) {
|
|
177
|
+
this._projectPath = context.project?.path;
|
|
178
|
+
}
|
|
179
|
+
new(opts, runOpts) {
|
|
180
|
+
return this.runCommand("new", [], { ...opts }, CLI_NEW_DEFAULTS, runOpts);
|
|
181
|
+
}
|
|
182
|
+
install(pkgs, opts, runOpts) {
|
|
183
|
+
this.assertProject();
|
|
184
|
+
return this.runCommand("install", pkgs, {
|
|
185
|
+
...opts,
|
|
186
|
+
directory: this._projectPath
|
|
187
|
+
}, CLI_INSTALL_DEFAULTS, runOpts);
|
|
188
|
+
}
|
|
189
|
+
build(opts, runOpts) {
|
|
190
|
+
this.assertProject();
|
|
191
|
+
return this.runCommand("build", [], {
|
|
192
|
+
...opts,
|
|
193
|
+
directory: this._projectPath
|
|
194
|
+
}, CLI_BUILD_DEFAULTS, runOpts);
|
|
195
|
+
}
|
|
196
|
+
start(opts, runOpts) {
|
|
197
|
+
this.assertProject();
|
|
198
|
+
return this.runCommand("start", [], {
|
|
199
|
+
...opts,
|
|
200
|
+
directory: this._projectPath
|
|
201
|
+
}, CLI_START_DEFAULTS, runOpts);
|
|
202
|
+
}
|
|
203
|
+
dev(opts, runOpts) {
|
|
204
|
+
this.assertProject();
|
|
205
|
+
return this.runCommand("dev", [], {
|
|
206
|
+
...opts,
|
|
207
|
+
directory: this._projectPath
|
|
208
|
+
}, CLI_DEV_DEFAULTS, runOpts);
|
|
209
|
+
}
|
|
210
|
+
generate(opts, runOpts) {
|
|
211
|
+
this.assertProject();
|
|
212
|
+
return this.runCommand("generate", [], {
|
|
213
|
+
...opts,
|
|
214
|
+
directory: this._projectPath
|
|
215
|
+
}, CLI_GENERATE_DEFAULTS, runOpts);
|
|
216
|
+
}
|
|
217
|
+
create(part, opts, runOpts) {
|
|
218
|
+
this.assertProject();
|
|
219
|
+
return this.runCommand("create", [part], {
|
|
220
|
+
...opts,
|
|
221
|
+
directory: this._projectPath
|
|
222
|
+
}, CLI_CREATE_DEFAULTS, runOpts);
|
|
223
|
+
}
|
|
224
|
+
runCommand(command, params, opts, defaultOpts, { async = false } = {}) {
|
|
225
|
+
const fullCommand = [
|
|
226
|
+
private_env.NF_CLI_PATH ?? "nf",
|
|
227
|
+
command,
|
|
228
|
+
...params,
|
|
229
|
+
...this.resolveParams(opts, defaultOpts)
|
|
230
|
+
];
|
|
231
|
+
if (async) {
|
|
232
|
+
const res = Bun.spawn(fullCommand, {
|
|
233
|
+
stdout: "pipe",
|
|
234
|
+
stderr: "pipe",
|
|
235
|
+
cwd: private_env.FS_ROOT ?? void 0
|
|
236
|
+
});
|
|
237
|
+
res.exited.then((exitCode) => {
|
|
238
|
+
if (exitCode !== 0) {
|
|
239
|
+
console.log(res.stdout.toString());
|
|
240
|
+
console.error(res.stderr.toString());
|
|
241
|
+
throw new CliError(res.stderr.toString());
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
} else {
|
|
245
|
+
const res = Bun.spawnSync(fullCommand, {
|
|
246
|
+
stdout: "pipe",
|
|
247
|
+
stderr: "pipe",
|
|
248
|
+
cwd: private_env.FS_ROOT ?? void 0
|
|
249
|
+
});
|
|
250
|
+
if (res.exitCode !== 0) {
|
|
251
|
+
console.log(res.stdout.toString());
|
|
252
|
+
console.error(res.stderr.toString());
|
|
253
|
+
throw new CliError(res.stderr.toString());
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
mergeParams(...opts) {
|
|
258
|
+
const merged = {};
|
|
259
|
+
for (const opt of opts) for (const [key, value] of Object.entries(opt)) {
|
|
260
|
+
if (value === void 0) continue;
|
|
261
|
+
merged[key] = value;
|
|
262
|
+
}
|
|
263
|
+
return merged;
|
|
264
|
+
}
|
|
265
|
+
resolveParams(opts, defaultOpts) {
|
|
266
|
+
const params = [];
|
|
267
|
+
for (const [key, value] of Object.entries(this.mergeParams(defaultOpts, opts))) {
|
|
268
|
+
const name = formatFrom.camel(key).toKebab();
|
|
269
|
+
if (typeof value === "boolean") if (value) params.push(`--${name}`);
|
|
270
|
+
else params.push(`--no-${name}`);
|
|
271
|
+
else params.push(`--${name}`, `${value}`);
|
|
272
|
+
}
|
|
273
|
+
return params;
|
|
274
|
+
}
|
|
275
|
+
assertProject() {
|
|
276
|
+
if (!this._projectPath) throw new CliError("No project path set");
|
|
277
|
+
if (!Bun.file(this._projectPath).exists()) throw new CliError("Project does not exist");
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
var resolveRootPath = (userPath) => {
|
|
281
|
+
return resolve(resolve(private_env.FS_ROOT ?? ""), userPath);
|
|
282
|
+
};
|
|
283
|
+
var FileSystemError = class extends Exception {
|
|
284
|
+
constructor(message) {
|
|
285
|
+
super("Bad Request", message, 400);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
function directoryContentToFileEntries(directoryContent, basePath = "") {
|
|
289
|
+
const entries = [];
|
|
290
|
+
directoryContent.files.forEach((file) => {
|
|
291
|
+
entries.push(basePath + "/" + file);
|
|
292
|
+
});
|
|
293
|
+
Object.entries(directoryContent.directories).forEach(([path, dirContent]) => {
|
|
294
|
+
if (!dirContent) return;
|
|
295
|
+
entries.push(...directoryContentToFileEntries(dirContent, basePath + "/" + path));
|
|
296
|
+
});
|
|
297
|
+
return entries;
|
|
298
|
+
}
|
|
299
|
+
var ProjectDirectory = class {
|
|
300
|
+
path;
|
|
301
|
+
projectPath;
|
|
302
|
+
constructor(dirPath, projectPath) {
|
|
303
|
+
this.path = resolve(projectPath, "./" + dirPath);
|
|
304
|
+
this.projectPath = projectPath;
|
|
305
|
+
this._checkPathIsInsideProject();
|
|
306
|
+
}
|
|
307
|
+
read(recursive = false) {
|
|
308
|
+
this._checkPathExists();
|
|
309
|
+
this._checkPathIsDir();
|
|
310
|
+
this._checkPathIsReadable();
|
|
311
|
+
return this._readDirContent(this.path, recursive);
|
|
312
|
+
}
|
|
313
|
+
create() {
|
|
314
|
+
this._checkPathNotExists();
|
|
315
|
+
fs.mkdirSync(this.path, { recursive: true });
|
|
316
|
+
}
|
|
317
|
+
delete(recursive = false) {
|
|
318
|
+
this._checkPathExists();
|
|
319
|
+
this._checkPathIsDir();
|
|
320
|
+
if (!recursive) this._checkDirIsEmpty();
|
|
321
|
+
fs.rmSync(this.path, { recursive });
|
|
322
|
+
}
|
|
323
|
+
rename(newPath) {
|
|
324
|
+
const absoluteNewDirPath = resolve(this.projectPath, "./" + newPath);
|
|
325
|
+
this._checkPathIsInsideProject(absoluteNewDirPath);
|
|
326
|
+
this._checkPathExists();
|
|
327
|
+
this._checkPathIsDir();
|
|
328
|
+
this._checkPathIsWritable();
|
|
329
|
+
const newFolderPath = dirname(absoluteNewDirPath);
|
|
330
|
+
this._checkPathExists(newFolderPath);
|
|
331
|
+
this._checkPathIsWritable(newFolderPath);
|
|
332
|
+
this._checkPathNotExists(absoluteNewDirPath);
|
|
333
|
+
fs.renameSync(this.path, absoluteNewDirPath);
|
|
334
|
+
this.path = absoluteNewDirPath;
|
|
335
|
+
}
|
|
336
|
+
assertExists() {
|
|
337
|
+
this._checkPathExists();
|
|
338
|
+
this._checkPathIsDir();
|
|
339
|
+
this._checkPathIsReadable();
|
|
340
|
+
}
|
|
341
|
+
_checkPathIsInsideProject(path = this.path) {
|
|
342
|
+
if (!path.startsWith(this.projectPath)) throw new FileSystemError(`Path ${path} is outside of the project directory`);
|
|
343
|
+
}
|
|
344
|
+
_checkPathExists(path = this.path) {
|
|
345
|
+
if (!fs.existsSync(path)) throw new FileSystemError(`Path ${path} should exist`);
|
|
346
|
+
}
|
|
347
|
+
_checkPathNotExists(path = this.path) {
|
|
348
|
+
if (fs.existsSync(path)) throw new FileSystemError(`Path ${path} should not exist`);
|
|
349
|
+
}
|
|
350
|
+
_checkPathIsDir(path = this.path) {
|
|
351
|
+
let stats;
|
|
352
|
+
try {
|
|
353
|
+
stats = fs.lstatSync(path);
|
|
354
|
+
} catch {
|
|
355
|
+
throw new FileSystemError(`Path ${path} does not exist`);
|
|
356
|
+
}
|
|
357
|
+
if (!stats.isDirectory()) throw new FileSystemError(`Path ${path} is not a directory`);
|
|
358
|
+
}
|
|
359
|
+
_checkPathIsWritable(path = this.path) {
|
|
360
|
+
try {
|
|
361
|
+
fs.accessSync(path, fs.constants.W_OK);
|
|
362
|
+
} catch {
|
|
363
|
+
throw new FileSystemError(`Path ${path} writable`);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
_checkPathIsReadable(path = this.path) {
|
|
367
|
+
try {
|
|
368
|
+
fs.accessSync(path, fs.constants.R_OK);
|
|
369
|
+
} catch {
|
|
370
|
+
throw new FileSystemError(`Path ${path} writable`);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
_checkDirIsEmpty(path = this.path) {
|
|
374
|
+
if (fs.readdirSync(path).length > 0) throw new FileSystemError(`Directory ${path} is not empty`);
|
|
375
|
+
}
|
|
376
|
+
_readDirContent(path = this.path, recursive = false) {
|
|
377
|
+
const dirContent = {
|
|
378
|
+
files: [],
|
|
379
|
+
directories: {}
|
|
380
|
+
};
|
|
381
|
+
fs.readdirSync(path, {
|
|
382
|
+
withFileTypes: true,
|
|
383
|
+
recursive: false
|
|
384
|
+
}).forEach((item) => {
|
|
385
|
+
if (item.isFile()) dirContent.files.push(item.name);
|
|
386
|
+
else if (item.isDirectory()) dirContent.directories[item.name] = recursive ? this._readDirContent(path + "/" + item.name, recursive) : null;
|
|
387
|
+
});
|
|
388
|
+
return dirContent;
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
var ProjectFile = class {
|
|
392
|
+
_path;
|
|
393
|
+
projectPath;
|
|
394
|
+
constructor(filePath, projectPath) {
|
|
395
|
+
this._path = path.resolve(projectPath, "./" + filePath);
|
|
396
|
+
this.projectPath = projectPath;
|
|
397
|
+
this._checkPathIsInsideProject();
|
|
398
|
+
}
|
|
399
|
+
get path() {
|
|
400
|
+
this._checkPathExists();
|
|
401
|
+
return this._path;
|
|
402
|
+
}
|
|
403
|
+
read(encoding) {
|
|
404
|
+
this.isReadable();
|
|
405
|
+
return fs.readFileSync(this._path).toString(encoding);
|
|
406
|
+
}
|
|
407
|
+
readStream() {
|
|
408
|
+
this.isReadable();
|
|
409
|
+
return Bun.file(this._path).stream();
|
|
410
|
+
}
|
|
411
|
+
readJson() {
|
|
412
|
+
const raw = this.read();
|
|
413
|
+
return JSON.parse(raw);
|
|
414
|
+
}
|
|
415
|
+
write(text) {
|
|
416
|
+
this._checkWritableAndCreateFolder();
|
|
417
|
+
fs.writeFileSync(this._path, text, { flush: true });
|
|
418
|
+
}
|
|
419
|
+
writeJson(content) {
|
|
420
|
+
const raw = JSON.stringify(content);
|
|
421
|
+
this.write(raw);
|
|
422
|
+
}
|
|
423
|
+
getWriteStream() {
|
|
424
|
+
this._checkWritableAndCreateFolder();
|
|
425
|
+
return fs.createWriteStream(this._path);
|
|
426
|
+
}
|
|
427
|
+
delete() {
|
|
428
|
+
this._checkPathExists();
|
|
429
|
+
this._checkPathIsFile();
|
|
430
|
+
this._checkPathIsWritable();
|
|
431
|
+
fs.rmSync(this._path);
|
|
432
|
+
}
|
|
433
|
+
rename(newPath) {
|
|
434
|
+
const absoluteNewPath = path.resolve(this.projectPath, "./" + newPath);
|
|
435
|
+
this._checkPathIsInsideProject(newPath);
|
|
436
|
+
this._checkPathExists();
|
|
437
|
+
this._checkPathIsFile();
|
|
438
|
+
this._checkPathIsWritable();
|
|
439
|
+
const newFolderPath = path.dirname(absoluteNewPath);
|
|
440
|
+
this._checkPathExists(newFolderPath);
|
|
441
|
+
this._checkPathIsWritable(newFolderPath);
|
|
442
|
+
this._checkPathNotExists(absoluteNewPath);
|
|
443
|
+
fs.renameSync(this._path, absoluteNewPath);
|
|
444
|
+
this._path = absoluteNewPath;
|
|
445
|
+
}
|
|
446
|
+
isReadable() {
|
|
447
|
+
this._checkPathExists();
|
|
448
|
+
this._checkPathIsFile();
|
|
449
|
+
this._checkPathIsReadable();
|
|
450
|
+
}
|
|
451
|
+
_checkWritableAndCreateFolder() {
|
|
452
|
+
const folderPath = path.dirname(this._path);
|
|
453
|
+
try {
|
|
454
|
+
this._checkPathExists(folderPath);
|
|
455
|
+
} catch {
|
|
456
|
+
fs.mkdirSync(folderPath, { recursive: true });
|
|
457
|
+
}
|
|
458
|
+
if (fs.existsSync(this._path)) {
|
|
459
|
+
this._checkPathIsFile();
|
|
460
|
+
this._checkPathIsWritable();
|
|
461
|
+
} else {
|
|
462
|
+
this._checkPathExists(folderPath);
|
|
463
|
+
this._checkPathIsDir(folderPath);
|
|
464
|
+
this._checkPathIsWritable(folderPath);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
_checkPathIsInsideProject(path = this._path) {
|
|
468
|
+
if (!path.startsWith(this.projectPath)) throw new FileSystemError(`Path ${path} is outside of the project directory`);
|
|
469
|
+
}
|
|
470
|
+
_checkPathExists(path = this._path) {
|
|
471
|
+
if (!fs.existsSync(path)) throw new FileSystemError(`Path ${path} should exist`);
|
|
472
|
+
}
|
|
473
|
+
_checkPathNotExists(path = this._path) {
|
|
474
|
+
if (fs.existsSync(path)) throw new FileSystemError(`Path ${path} should not exist`);
|
|
475
|
+
}
|
|
476
|
+
_checkPathIsFile(path = this._path) {
|
|
477
|
+
let stats;
|
|
478
|
+
try {
|
|
479
|
+
stats = fs.lstatSync(path);
|
|
480
|
+
} catch {
|
|
481
|
+
throw new FileSystemError(`Path ${path} does not exist`);
|
|
482
|
+
}
|
|
483
|
+
if (!stats.isFile()) throw new FileSystemError(`Path ${path} is not a this.path`);
|
|
484
|
+
}
|
|
485
|
+
_checkPathIsDir(path = this._path) {
|
|
486
|
+
let stats;
|
|
487
|
+
try {
|
|
488
|
+
stats = fs.lstatSync(path);
|
|
489
|
+
} catch {
|
|
490
|
+
throw new FileSystemError(`Path ${path} does not exist`);
|
|
491
|
+
}
|
|
492
|
+
if (!stats.isDirectory()) throw new FileSystemError(`Path ${path} is not a directory`);
|
|
493
|
+
}
|
|
494
|
+
_checkPathIsWritable(path = this._path) {
|
|
495
|
+
try {
|
|
496
|
+
fs.accessSync(path, fs.constants.W_OK);
|
|
497
|
+
} catch {
|
|
498
|
+
throw new FileSystemError(`Path ${path} writable`);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
_checkPathIsReadable(path = this._path) {
|
|
502
|
+
try {
|
|
503
|
+
fs.accessSync(path, fs.constants.R_OK);
|
|
504
|
+
} catch {
|
|
505
|
+
throw new FileSystemError(`Path ${path} writable`);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
var FileSystem = class {
|
|
510
|
+
_rootPath;
|
|
511
|
+
constructor(arg) {
|
|
512
|
+
if (typeof arg === "string") {
|
|
513
|
+
this._rootPath = resolveRootPath(arg);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
if (!arg.project) throw new Exception("Bad Request", "Project is not defined", 400);
|
|
517
|
+
this._rootPath = resolveRootPath(arg.project.path);
|
|
518
|
+
}
|
|
519
|
+
getDirectory(path) {
|
|
520
|
+
return new ProjectDirectory(path, this._rootPath);
|
|
521
|
+
}
|
|
522
|
+
getFile(path) {
|
|
523
|
+
return new ProjectFile(path, this._rootPath);
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
var Git = class {
|
|
527
|
+
_rootPath;
|
|
528
|
+
constructor() {
|
|
529
|
+
this._rootPath = resolve(private_env.FS_ROOT ?? "");
|
|
530
|
+
}
|
|
531
|
+
async clone(url, options) {
|
|
532
|
+
const path = await this.resolvePath(url);
|
|
533
|
+
if (existsSync(path)) return path;
|
|
534
|
+
await this.runCommand("clone", [url, path], { ...options });
|
|
535
|
+
return path;
|
|
536
|
+
}
|
|
537
|
+
async runCommand(command, params, options) {
|
|
538
|
+
let sshPath;
|
|
539
|
+
if (options?.sshKey) sshPath = await this.createSshKeyFile(options.sshKey);
|
|
540
|
+
const cwd = resolve(this._rootPath, options?.path ?? "");
|
|
541
|
+
const sshEnv = sshPath ? { GIT_SSH_COMMAND: `ssh -i ${sshPath}` } : {};
|
|
542
|
+
try {
|
|
543
|
+
await $`git ${command} ${params}`.cwd(cwd).env({
|
|
544
|
+
...process.env,
|
|
545
|
+
...sshEnv
|
|
546
|
+
});
|
|
547
|
+
} finally {
|
|
548
|
+
if (sshPath) await this.deleteSshKeyFile(sshPath);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
async createSshKeyFile(sshKey) {
|
|
552
|
+
const path = `/tmp/nanoforge/${generateKey()}`;
|
|
553
|
+
await Bun.file(path).write(sshKey);
|
|
554
|
+
return path;
|
|
555
|
+
}
|
|
556
|
+
async deleteSshKeyFile(path) {
|
|
557
|
+
await Bun.file(path).delete();
|
|
558
|
+
}
|
|
559
|
+
async resolvePath(url) {
|
|
560
|
+
const basePath = url.split("/").pop()?.replace(".git", "");
|
|
561
|
+
if (!basePath) throw new Error("Invalid URL");
|
|
562
|
+
const fullBasePath = resolve(this._rootPath, basePath);
|
|
563
|
+
let path = fullBasePath;
|
|
564
|
+
while (await Bun.file(path).exists()) path = resolve(fullBasePath, generateKey(5));
|
|
565
|
+
return path;
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
var loadProject = async (projectSession, handler) => {
|
|
569
|
+
const session = await getOrCreateSession(handler.event.locals.session);
|
|
570
|
+
const projectId = tryAddProjectSession(projectSession);
|
|
571
|
+
addProjectToSession(session, projectId);
|
|
572
|
+
handler.context = {
|
|
573
|
+
...handler.context,
|
|
574
|
+
project: projectSession
|
|
575
|
+
};
|
|
576
|
+
return {
|
|
577
|
+
id: projectId,
|
|
578
|
+
cacheResolvable: handler.context.online ? projectSession.gateway?.id : projectSession.path
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
var loadProjectFromId = async (id, handler) => {
|
|
582
|
+
const session = await getOrCreateSession(handler.event.locals.session);
|
|
583
|
+
const projectSession = getProject(id, session);
|
|
584
|
+
if (!projectSession) throw new Exception("Bad Request", "Project not found", 400);
|
|
585
|
+
addProjectToSession(session, id);
|
|
586
|
+
handler.context = {
|
|
587
|
+
...handler.context,
|
|
588
|
+
project: projectSession
|
|
589
|
+
};
|
|
590
|
+
return {
|
|
591
|
+
id,
|
|
592
|
+
cacheResolvable: handler.context.online ? projectSession.gateway?.id : projectSession.path
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
var LibraryHandler = class {
|
|
596
|
+
handler;
|
|
597
|
+
constructor(handler) {
|
|
598
|
+
this.handler = handler;
|
|
599
|
+
}
|
|
600
|
+
async installLibrary(name) {
|
|
601
|
+
this.handler._cli.install([name], {
|
|
602
|
+
server: this.handler._part === "server" || void 0,
|
|
603
|
+
lib: true
|
|
604
|
+
});
|
|
605
|
+
return { save: {
|
|
606
|
+
id: this._resolveIdFromName(name),
|
|
607
|
+
type: "",
|
|
608
|
+
name: "",
|
|
609
|
+
path: name
|
|
610
|
+
} };
|
|
611
|
+
}
|
|
612
|
+
_resolveIdFromName(name) {
|
|
613
|
+
const [org, pkg] = name.split("/");
|
|
614
|
+
if (!org || !pkg) throw new Error("Invalid library name");
|
|
615
|
+
const id = !pkg ? org : pkg;
|
|
616
|
+
return `${formatFrom.kebab(id).toCamel()}Library`;
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
var PREFIX_CLIENT = "NANOFORGE_CLIENT_";
|
|
620
|
+
var PREFIX_SERVER = "NANOFORGE_SERVER_";
|
|
621
|
+
var PREFIX = "NANOFORGE_";
|
|
622
|
+
var loadEnv = (path) => {
|
|
623
|
+
const env = {};
|
|
624
|
+
config({
|
|
625
|
+
path,
|
|
626
|
+
processEnv: env
|
|
627
|
+
});
|
|
628
|
+
return env;
|
|
629
|
+
};
|
|
630
|
+
var parseEnv = (part, env) => {
|
|
631
|
+
const partPrefix = part === "client" ? PREFIX_CLIENT : PREFIX_SERVER;
|
|
632
|
+
return Object.fromEntries(Object.entries(env).filter(([key]) => key.startsWith(PREFIX) && (part === "client" && !key.startsWith(PREFIX_SERVER) || part === "server" && !key.startsWith(PREFIX_CLIENT))).map(([key, value]) => [key.replace(new RegExp(`^${partPrefix}|${PREFIX}`), ""), value]));
|
|
633
|
+
};
|
|
634
|
+
var resolveEnv = (part, projectPath) => {
|
|
635
|
+
return parseEnv(part, loadEnv(resolve(projectPath, ".env")));
|
|
636
|
+
};
|
|
637
|
+
var Loader = class {
|
|
638
|
+
handler;
|
|
639
|
+
_fs;
|
|
640
|
+
_basePath;
|
|
641
|
+
constructor(handler) {
|
|
642
|
+
this.handler = handler;
|
|
643
|
+
this._basePath = join(this.handler._path, ".nanoforge", this.handler._part);
|
|
644
|
+
this._fs = new FileSystem(this._basePath);
|
|
645
|
+
}
|
|
646
|
+
getEnv() {
|
|
647
|
+
return resolveEnv(this.handler._part, this.handler._path);
|
|
648
|
+
}
|
|
649
|
+
getManifest() {
|
|
650
|
+
return {
|
|
651
|
+
version: "1.0.0",
|
|
652
|
+
files: directoryContentToFileEntries(this._fs.getDirectory(".").read(true)).map((path) => ({ path }))
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
getFile(path) {
|
|
656
|
+
return this._fs.getFile(path);
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
var PackageTypeEnum = /* @__PURE__ */ function(PackageTypeEnum) {
|
|
660
|
+
PackageTypeEnum["COMPONENT"] = "component";
|
|
661
|
+
PackageTypeEnum["SYSTEM"] = "system";
|
|
662
|
+
return PackageTypeEnum;
|
|
663
|
+
}({});
|
|
664
|
+
var MANIFEST_TITLES = {
|
|
665
|
+
[PackageTypeEnum.COMPONENT]: "EDITOR_COMPONENT_MANIFEST",
|
|
666
|
+
[PackageTypeEnum.SYSTEM]: "EDITOR_SYSTEM_MANIFEST"
|
|
667
|
+
};
|
|
668
|
+
var findManifestNode = (title, source) => {
|
|
669
|
+
let res = null;
|
|
670
|
+
source.forEachChild((node) => {
|
|
671
|
+
if (!ts.isVariableStatement(node)) return;
|
|
672
|
+
node.declarationList.declarations.forEach((decl) => {
|
|
673
|
+
if (!ts.isVariableDeclaration(decl)) return;
|
|
674
|
+
if (decl.name.getText() === title) res = decl;
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
return res;
|
|
678
|
+
};
|
|
679
|
+
var getName = (source) => {
|
|
680
|
+
let res = null;
|
|
681
|
+
source.forEachChild((node) => {
|
|
682
|
+
if (!ts.isExportAssignment(node)) return;
|
|
683
|
+
if (!node.getChildren().some((n) => n.getText() === "export") || !node.getChildren().some((n) => n.getText() === "default")) return;
|
|
684
|
+
res = node.expression.getFirstToken()?.getText();
|
|
685
|
+
});
|
|
686
|
+
return res;
|
|
687
|
+
};
|
|
688
|
+
var parseProperty = (prop) => {
|
|
689
|
+
if (!ts.isPropertyAssignment(prop)) return {};
|
|
690
|
+
const name = prop.name.getText();
|
|
691
|
+
const value = prop.initializer;
|
|
692
|
+
if (!value) return {};
|
|
693
|
+
return { [name]: parseElement(value) };
|
|
694
|
+
};
|
|
695
|
+
var parseElement = (value) => {
|
|
696
|
+
if (ts.isStringLiteral(value)) return value.text;
|
|
697
|
+
if (ts.isNumericLiteral(value)) return Number(value.text);
|
|
698
|
+
if (ts.isLiteralTypeLiteral(value)) {
|
|
699
|
+
const txt = value.getText();
|
|
700
|
+
if (txt === "true") return true;
|
|
701
|
+
if (txt === "false") return false;
|
|
702
|
+
if (txt === "null") return null;
|
|
703
|
+
if (txt === "undefined") return void 0;
|
|
704
|
+
}
|
|
705
|
+
if (ts.isArrayLiteralExpression(value)) return value.elements.map((el) => parseElement(el));
|
|
706
|
+
if (ts.isObjectLiteralExpression(value)) return value.properties.reduce((acc, prop) => {
|
|
707
|
+
return {
|
|
708
|
+
...acc,
|
|
709
|
+
...parseProperty(prop)
|
|
710
|
+
};
|
|
711
|
+
}, {});
|
|
712
|
+
throw new Error("Unknown element type");
|
|
713
|
+
};
|
|
714
|
+
var getManifestFromNode = (source) => {
|
|
715
|
+
if (!source) return null;
|
|
716
|
+
const init = source.initializer;
|
|
717
|
+
if (!init) return null;
|
|
718
|
+
if (!ts.isObjectLiteralExpression(init)) return null;
|
|
719
|
+
return parseElement(init);
|
|
720
|
+
};
|
|
721
|
+
var parseManifest = (title, source) => {
|
|
722
|
+
const id = getName(source);
|
|
723
|
+
const manifest = getManifestFromNode(findManifestNode(title, source));
|
|
724
|
+
if (!id || !manifest) return null;
|
|
725
|
+
return {
|
|
726
|
+
id,
|
|
727
|
+
...manifest
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
var resolveManifest = (type, content) => {
|
|
731
|
+
const source = ts.createSourceFile("tmp.ts", content, ts.ScriptTarget.ESNext, true);
|
|
732
|
+
return parseManifest(MANIFEST_TITLES[type], source);
|
|
733
|
+
};
|
|
734
|
+
var PackageHandler = class {
|
|
735
|
+
handler;
|
|
736
|
+
constructor(handler) {
|
|
737
|
+
this.handler = handler;
|
|
738
|
+
}
|
|
739
|
+
async installComponent(name) {
|
|
740
|
+
const rc = await this.handler._api.registry.getPackage(name);
|
|
741
|
+
if (rc.type !== "component") throw new Error(`Can only add component: ${name} is a ${rc.type}`);
|
|
742
|
+
this.handler._cli.install([name], { server: this.handler._part === "server" || void 0 });
|
|
743
|
+
return this._getNewComponentPackage(rc.name, rc._file);
|
|
744
|
+
}
|
|
745
|
+
async installSystem(name) {
|
|
746
|
+
const rs = await this.handler._api.registry.getPackage(name);
|
|
747
|
+
if (rs.type !== "system") throw new Error(`Can only add system: ${name} is a ${rs.type}`);
|
|
748
|
+
this.handler._cli.install([name], { server: this.handler._part === "server" || void 0 });
|
|
749
|
+
return this._getNewSystemPackage(rs.name, rs._file);
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Create a new component in the project
|
|
753
|
+
* @beta function to be reworked
|
|
754
|
+
*
|
|
755
|
+
* @param {string} name - Name of the component
|
|
756
|
+
*/
|
|
757
|
+
createComponent(name) {
|
|
758
|
+
this._createPackage(PackageTypeEnum.COMPONENT, name);
|
|
759
|
+
return this._getNewComponentPackage(formatFrom.all(name).toPascal() + "Component", formatFrom.all(name).toKebab() + ".component");
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Create a new system in the project and update the save file
|
|
763
|
+
* @beta function to be reworked
|
|
764
|
+
*
|
|
765
|
+
* @param {string} name - Name of the system
|
|
766
|
+
*/
|
|
767
|
+
createSystem(name) {
|
|
768
|
+
this._createPackage(PackageTypeEnum.SYSTEM, name);
|
|
769
|
+
return this._getNewSystemPackage(formatFrom.all(name).toCamel() + "System", formatFrom.all(name).toKebab() + ".system");
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Get the manifest of the component
|
|
773
|
+
* @beta function to be reworked
|
|
774
|
+
*
|
|
775
|
+
* @param {string} path - Path from `/<client|server>`
|
|
776
|
+
*
|
|
777
|
+
* @returns Manifest of the component
|
|
778
|
+
*/
|
|
779
|
+
getComponentManifest(path) {
|
|
780
|
+
return this._getPackageManifest(PackageTypeEnum.COMPONENT, path);
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Get the manifest of the system
|
|
784
|
+
* @beta function to be reworked
|
|
785
|
+
*
|
|
786
|
+
* @param {string} path - Path from `/<client|server>`
|
|
787
|
+
*
|
|
788
|
+
* @returns Manifest of the system
|
|
789
|
+
*/
|
|
790
|
+
getSystemManifest(path) {
|
|
791
|
+
return this._getPackageManifest(PackageTypeEnum.SYSTEM, path);
|
|
792
|
+
}
|
|
793
|
+
async getComponents() {
|
|
794
|
+
return this._resolvesPackages(PackageTypeEnum.COMPONENT);
|
|
795
|
+
}
|
|
796
|
+
async getSystems() {
|
|
797
|
+
return this._resolvesPackages(PackageTypeEnum.SYSTEM);
|
|
798
|
+
}
|
|
799
|
+
_resolvesPackages(type) {
|
|
800
|
+
const basePath = type === PackageTypeEnum.COMPONENT ? "./components" : "./systems";
|
|
801
|
+
const content = this.handler.fs.getDirectory(basePath).read(true);
|
|
802
|
+
return this._resolvesPackageFilesPathFromContent(content).map((path) => this._resolvesPackage(type, join(basePath, path)));
|
|
803
|
+
}
|
|
804
|
+
_resolvesPackage(type, path) {
|
|
805
|
+
const manifest = this._getPackageManifest(type, path);
|
|
806
|
+
const res = {
|
|
807
|
+
manifest,
|
|
808
|
+
save: {
|
|
809
|
+
name: manifest.id,
|
|
810
|
+
path
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
if (type === PackageTypeEnum.COMPONENT) res.save.params = manifest.params.map(({ name }) => name);
|
|
814
|
+
return res;
|
|
815
|
+
}
|
|
816
|
+
_resolvesPackageFilesPathFromContent(content, path = "") {
|
|
817
|
+
const files = content.files.map((file) => join(path, file));
|
|
818
|
+
const directories = Object.entries(content.directories).map(([key, value]) => {
|
|
819
|
+
if (!value) return [];
|
|
820
|
+
return this._resolvesPackageFilesPathFromContent(value, join(path, key)).filter(Boolean);
|
|
821
|
+
});
|
|
822
|
+
return [...files, ...directories.flat()];
|
|
823
|
+
}
|
|
824
|
+
_getNewComponentPackage(name, fileName) {
|
|
825
|
+
const path = `./components/${fileName}`;
|
|
826
|
+
const manifest = this._findPackageManifest(this.getComponentManifest, path);
|
|
827
|
+
return {
|
|
828
|
+
manifest,
|
|
829
|
+
save: {
|
|
830
|
+
name,
|
|
831
|
+
path,
|
|
832
|
+
paramsNames: manifest.params.map(({ name }) => name)
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
_getNewSystemPackage(name, fileName) {
|
|
837
|
+
const path = `./systems/${fileName}`;
|
|
838
|
+
return {
|
|
839
|
+
manifest: this._findPackageManifest(this.getSystemManifest, path),
|
|
840
|
+
save: {
|
|
841
|
+
name,
|
|
842
|
+
path
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
_findPackageManifest(manifestGetter, path) {
|
|
847
|
+
const manifest = [
|
|
848
|
+
"",
|
|
849
|
+
".ts",
|
|
850
|
+
".js"
|
|
851
|
+
].reduce((result, p) => {
|
|
852
|
+
if (result) return result;
|
|
853
|
+
try {
|
|
854
|
+
return manifestGetter(path + p);
|
|
855
|
+
} catch (e) {
|
|
856
|
+
if (!(e instanceof FileSystemError)) throw e;
|
|
857
|
+
}
|
|
858
|
+
}, void 0);
|
|
859
|
+
if (!manifest) throw new FileSystemError("Can't find package manifest");
|
|
860
|
+
return manifest;
|
|
861
|
+
}
|
|
862
|
+
_createPackage(type, name) {
|
|
863
|
+
this.handler._cli.create(type, {
|
|
864
|
+
name,
|
|
865
|
+
server: this.handler._part === "server" || void 0
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
_getPackageManifest(type, path) {
|
|
869
|
+
return resolveManifest(type, this.handler._rootFs.getFile(this._resolvePartPath(path)).read());
|
|
870
|
+
}
|
|
871
|
+
_resolvePartPath(path) {
|
|
872
|
+
return join(this.handler._part, path);
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
var SaveHandler = class {
|
|
876
|
+
handler;
|
|
877
|
+
constructor(handler) {
|
|
878
|
+
this.handler = handler;
|
|
879
|
+
}
|
|
880
|
+
async getSave() {
|
|
881
|
+
return this.handler._rootFs.getFile(this.resolveSavePath()).readJson();
|
|
882
|
+
}
|
|
883
|
+
async updateSave(save) {
|
|
884
|
+
this.handler._rootFs.getFile(this.resolveSavePath()).writeJson(save);
|
|
885
|
+
}
|
|
886
|
+
resolveSavePath() {
|
|
887
|
+
return `.nanoforge/${this.handler._part}.save.json`;
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
var ProjectHandler = class {
|
|
891
|
+
_path;
|
|
892
|
+
_part;
|
|
893
|
+
_cli;
|
|
894
|
+
_api;
|
|
895
|
+
_rootFs;
|
|
896
|
+
_fs;
|
|
897
|
+
_loader;
|
|
898
|
+
_save;
|
|
899
|
+
_package;
|
|
900
|
+
_library;
|
|
901
|
+
constructor(handler, context, part) {
|
|
902
|
+
if (!context.project) throw new Exception("Bad Request", "Project missing in context", 400);
|
|
903
|
+
this._path = context.project.path;
|
|
904
|
+
this._part = part;
|
|
905
|
+
this._cli = handler.cli;
|
|
906
|
+
this._api = handler.api;
|
|
907
|
+
this._rootFs = handler.fs;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Get the file system of the project content
|
|
911
|
+
* This file system has his root at /<client|server>
|
|
912
|
+
*/
|
|
913
|
+
get fs() {
|
|
914
|
+
if (!this._fs) this._fs = new FileSystem(join(this._path, this._part));
|
|
915
|
+
return this._fs;
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Get the loader functions of the project
|
|
919
|
+
*/
|
|
920
|
+
get loader() {
|
|
921
|
+
if (!this._loader) this._loader = new Loader(this);
|
|
922
|
+
return this._loader;
|
|
923
|
+
}
|
|
924
|
+
get save() {
|
|
925
|
+
if (!this._save) this._save = new SaveHandler(this);
|
|
926
|
+
return this._save;
|
|
927
|
+
}
|
|
928
|
+
get package() {
|
|
929
|
+
if (!this._package) this._package = new PackageHandler(this);
|
|
930
|
+
return this._package;
|
|
931
|
+
}
|
|
932
|
+
get library() {
|
|
933
|
+
if (!this._library) this._library = new LibraryHandler(this);
|
|
934
|
+
return this._library;
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
var ProjectManager = class {
|
|
938
|
+
_handler;
|
|
939
|
+
_context;
|
|
940
|
+
_client;
|
|
941
|
+
_server;
|
|
942
|
+
constructor(handler, context) {
|
|
943
|
+
this._handler = handler;
|
|
944
|
+
this._context = context;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Get the client project handler
|
|
948
|
+
* @beta The separation between client and server projects is not the final goal of the project manager.
|
|
949
|
+
*/
|
|
950
|
+
get client() {
|
|
951
|
+
if (!this._client) this._client = new ProjectHandler(this._handler, this._context, "client");
|
|
952
|
+
return this._client;
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Get the server project handler
|
|
956
|
+
* @beta The separation between client and server projects is not the final goal of the project manager.
|
|
957
|
+
*/
|
|
958
|
+
get server() {
|
|
959
|
+
if (!this._server) this._server = new ProjectHandler(this._handler, this._context, "server");
|
|
960
|
+
return this._server;
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
var Handler = class {
|
|
964
|
+
_context;
|
|
965
|
+
_event;
|
|
966
|
+
_body;
|
|
967
|
+
_apiCache;
|
|
968
|
+
_cliCache;
|
|
969
|
+
_fsCache;
|
|
970
|
+
_gitCache;
|
|
971
|
+
_projectCache;
|
|
972
|
+
constructor(context, event, body) {
|
|
973
|
+
this._context = context;
|
|
974
|
+
this._event = event;
|
|
975
|
+
this._body = body;
|
|
976
|
+
}
|
|
977
|
+
get context() {
|
|
978
|
+
return this._context;
|
|
979
|
+
}
|
|
980
|
+
set context(context) {
|
|
981
|
+
this._context = context;
|
|
982
|
+
this._apiCache = void 0;
|
|
983
|
+
this._cliCache = void 0;
|
|
984
|
+
this._fsCache = void 0;
|
|
985
|
+
this._gitCache = void 0;
|
|
986
|
+
}
|
|
987
|
+
get event() {
|
|
988
|
+
return this._event;
|
|
989
|
+
}
|
|
990
|
+
get body() {
|
|
991
|
+
return this._body;
|
|
992
|
+
}
|
|
993
|
+
get api() {
|
|
994
|
+
if (!this._apiCache) this._apiCache = this._context.online ? getApi(this._event.cookies) : getNoAuthApi();
|
|
995
|
+
return this._apiCache;
|
|
996
|
+
}
|
|
997
|
+
get cli() {
|
|
998
|
+
if (!this._cliCache) this._cliCache = new Cli(this._context);
|
|
999
|
+
return this._cliCache;
|
|
1000
|
+
}
|
|
1001
|
+
get fs() {
|
|
1002
|
+
if (!this._fsCache) this._fsCache = new FileSystem(this._context);
|
|
1003
|
+
return this._fsCache;
|
|
1004
|
+
}
|
|
1005
|
+
get git() {
|
|
1006
|
+
if (!this._gitCache) this._gitCache = new Git();
|
|
1007
|
+
return this._gitCache;
|
|
1008
|
+
}
|
|
1009
|
+
get project() {
|
|
1010
|
+
if (!this._projectCache) this._projectCache = new ProjectManager(this, this._context);
|
|
1011
|
+
return this._projectCache;
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
var DEFAULT_OPTIONS = {
|
|
1015
|
+
onlineOnly: false,
|
|
1016
|
+
offlineOnly: false,
|
|
1017
|
+
projectOptional: false
|
|
1018
|
+
};
|
|
1019
|
+
var assertProject = (context, options) => {
|
|
1020
|
+
if (options.projectOptional) return;
|
|
1021
|
+
if (!context.session) throw new Exception("Bad Request", "No session", 400);
|
|
1022
|
+
if (!context.project) throw new Exception("Bad Request", "Request required a project", 400);
|
|
1023
|
+
if (context.online && !context.project.gateway) throw new Exception("Internal Server Error", "Project don't have gateway on online mode", 500);
|
|
1024
|
+
};
|
|
1025
|
+
var assertMode = (context, options) => {
|
|
1026
|
+
if (options.onlineOnly && !context.online) throw new Exception("Method Not Allowed", "This action is not available offline", 405);
|
|
1027
|
+
if (options.offlineOnly && context.online) throw new Exception("Method Not Allowed", "This action is not available online", 405);
|
|
1028
|
+
};
|
|
1029
|
+
var assertRequest = (context, rawOptions) => {
|
|
1030
|
+
const options = {
|
|
1031
|
+
...DEFAULT_OPTIONS,
|
|
1032
|
+
...rawOptions
|
|
1033
|
+
};
|
|
1034
|
+
assertMode(context, options);
|
|
1035
|
+
assertProject(context, options);
|
|
1036
|
+
};
|
|
1037
|
+
var handleError$1 = (e) => {
|
|
1038
|
+
console.error(e);
|
|
1039
|
+
if (e instanceof Exception) return fail(e.status, {
|
|
1040
|
+
error: e.error,
|
|
1041
|
+
message: e.message
|
|
1042
|
+
});
|
|
1043
|
+
return fail(500, {
|
|
1044
|
+
error: "Internal Server Error",
|
|
1045
|
+
message: e.toString()
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
var useActionHandler = (callback, options) => {
|
|
1049
|
+
return async (event) => {
|
|
1050
|
+
try {
|
|
1051
|
+
const context = await getContext(event);
|
|
1052
|
+
const body = parseFormDataBody(await event.request.formData(), options?.body);
|
|
1053
|
+
assertRequest(context, options);
|
|
1054
|
+
return await callback(new Handler(context, event, body));
|
|
1055
|
+
} catch (e) {
|
|
1056
|
+
return handleError$1(e);
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
var handleError = (e) => {
|
|
1061
|
+
if (e instanceof Exception) return Response.json({
|
|
1062
|
+
error: e.error,
|
|
1063
|
+
message: e.message
|
|
1064
|
+
}, { status: e.status });
|
|
1065
|
+
return Response.json({
|
|
1066
|
+
error: "Internal Server Error",
|
|
1067
|
+
message: e
|
|
1068
|
+
}, { status: 500 });
|
|
1069
|
+
};
|
|
1070
|
+
var useRequestHandler = (callback, options) => {
|
|
1071
|
+
return async (event) => {
|
|
1072
|
+
try {
|
|
1073
|
+
const context = await getContext(event);
|
|
1074
|
+
assertRequest(context, options);
|
|
1075
|
+
return await callback(new Handler(context, event, {}));
|
|
1076
|
+
} catch (e) {
|
|
1077
|
+
return handleError(e);
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
//#endregion
|
|
1082
|
+
export { useRequestHandler as i, loadProjectFromId as n, useActionHandler as r, loadProject as t };
|
|
1083
|
+
|
|
1084
|
+
//# sourceMappingURL=request-handler-D-qbwxhh.js.map
|