@agent-profile/web 0.1.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/9.BDcQmxob.css +1 -0
- package/build/client/_app/immutable/assets/9.BDcQmxob.css.br +0 -0
- package/build/client/_app/immutable/assets/9.BDcQmxob.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BcMnim1Z.js +2 -0
- package/build/client/_app/immutable/chunks/BcMnim1Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcMnim1Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5fBh0I2.js +1 -0
- package/build/client/_app/immutable/chunks/D5fBh0I2.js.br +2 -0
- package/build/client/_app/immutable/chunks/D5fBh0I2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js +3 -0
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJ5W1vn7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTBN031P.js +1 -0
- package/build/client/_app/immutable/chunks/DTBN031P.js.br +2 -0
- package/build/client/_app/immutable/chunks/DTBN031P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_wMLkFK.js +1 -0
- package/build/client/_app/immutable/chunks/D_wMLkFK.js.br +2 -0
- package/build/client/_app/immutable/chunks/D_wMLkFK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m4VeB-e-.js +3 -0
- package/build/client/_app/immutable/chunks/m4VeB-e-.js.br +0 -0
- package/build/client/_app/immutable/chunks/m4VeB-e-.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DMWpO7sJ.js +2 -0
- package/build/client/_app/immutable/entry/app.DMWpO7sJ.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DMWpO7sJ.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BBaMgJ1R.js +1 -0
- package/build/client/_app/immutable/entry/start.BBaMgJ1R.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BBaMgJ1R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Dv0k2Jqi.js +1 -0
- package/build/client/_app/immutable/nodes/0.Dv0k2Jqi.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Dv0k2Jqi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.E6HqFVj7.js +1 -0
- package/build/client/_app/immutable/nodes/1.E6HqFVj7.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.E6HqFVj7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DorD5wKe.js +3 -0
- package/build/client/_app/immutable/nodes/10.DorD5wKe.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DorD5wKe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Bhdlxk-S.js → 11.3lkgWYOd.js} +2 -2
- package/build/client/_app/immutable/nodes/11.3lkgWYOd.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.3lkgWYOd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.p6ol8gkx.js +1 -0
- package/build/client/_app/immutable/nodes/12.p6ol8gkx.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.p6ol8gkx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.CI-wpOC8.js → 2.DMK5rlQk.js} +2 -2
- package/build/client/_app/immutable/nodes/2.DMK5rlQk.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DMK5rlQk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BBvN4Erf.js +2 -0
- package/build/client/_app/immutable/nodes/3.BBvN4Erf.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BBvN4Erf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.3VL8fZOS.js +4 -0
- package/build/client/_app/immutable/nodes/4.3VL8fZOS.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.3VL8fZOS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js +2 -0
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CiNtblYV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BRCCYakl.js +5 -0
- package/build/client/_app/immutable/nodes/6.BRCCYakl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BRCCYakl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Bn-YL1OM.js +4 -0
- package/build/client/_app/immutable/nodes/7.Bn-YL1OM.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Bn-YL1OM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CkQQuOBs.js +1 -0
- package/build/client/_app/immutable/nodes/8.CkQQuOBs.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CkQQuOBs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.6KxRZbKJ.js +9 -0
- package/build/client/_app/immutable/nodes/9.6KxRZbKJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.6KxRZbKJ.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-DWEpTDaF.js → 0-D1xG012U.js} +8 -8
- package/build/server/chunks/{0-DWEpTDaF.js.map → 0-D1xG012U.js.map} +1 -1
- package/build/server/chunks/1-B1kTzRNn.js +9 -0
- package/build/server/chunks/{1-B68UkVTE.js.map → 1-B1kTzRNn.js.map} +1 -1
- package/build/server/chunks/{9-tHCipeiW.js → 10-DahfOzGu.js} +7 -7
- package/build/server/chunks/10-DahfOzGu.js.map +1 -0
- package/build/server/chunks/11-mzYblRmm.js +9 -0
- package/build/server/chunks/11-mzYblRmm.js.map +1 -0
- package/build/server/chunks/{11-Ms74wtl9.js → 12-Dw1Y6Xen.js} +5 -5
- package/build/server/chunks/{11-Ms74wtl9.js.map → 12-Dw1Y6Xen.js.map} +1 -1
- package/build/server/chunks/{2-bmpngDVe.js → 2-Cbd6Pglj.js} +3 -3
- package/build/server/chunks/{2-bmpngDVe.js.map → 2-Cbd6Pglj.js.map} +1 -1
- package/build/server/chunks/3-DjAsck26.js +9 -0
- package/build/server/chunks/{3-BkezOAX7.js.map → 3-DjAsck26.js.map} +1 -1
- package/build/server/chunks/{4-CSfQwQwV.js → 4-CKQYCTZo.js} +5 -5
- package/build/server/chunks/{4-CSfQwQwV.js.map → 4-CKQYCTZo.js.map} +1 -1
- package/build/server/chunks/5-BDp1sX0Q.js +9 -0
- package/build/server/chunks/{5-D_pZV4fS.js.map → 5-BDp1sX0Q.js.map} +1 -1
- package/build/server/chunks/6-CUIuzy6O.js +9 -0
- package/build/server/chunks/{6-DcbRMrH1.js.map → 6-CUIuzy6O.js.map} +1 -1
- package/build/server/chunks/{7-BsMFIBGU.js → 7-BDv5_nF1.js} +6 -6
- package/build/server/chunks/{7-BsMFIBGU.js.map → 7-BDv5_nF1.js.map} +1 -1
- package/build/server/chunks/8-CspJz0xl.js +9 -0
- package/build/server/chunks/{8-DWleYW_e.js.map → 8-CspJz0xl.js.map} +1 -1
- package/build/server/chunks/9-BpgaO-rd.js +33 -0
- package/build/server/chunks/9-BpgaO-rd.js.map +1 -0
- package/build/server/chunks/{Badge-BYK3z3lr.js → Badge-DCQxSQCS.js} +2 -2
- package/build/server/chunks/{Badge-BYK3z3lr.js.map → Badge-DCQxSQCS.js.map} +1 -1
- package/build/server/chunks/{SafetyBadge-BXNCgLE-.js → SafetyBadge-BxEGojgX.js} +2 -2
- package/build/server/chunks/{SafetyBadge-BXNCgLE-.js.map → SafetyBadge-BxEGojgX.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-Cv35k3JT.js → _layout.svelte-6X0-Uv9x.js} +15 -5
- package/build/server/chunks/_layout.svelte-6X0-Uv9x.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BftcSD3f.js → _page.svelte-1wUrXGW-.js} +3 -3
- package/build/server/chunks/{_page.svelte-BftcSD3f.js.map → _page.svelte-1wUrXGW-.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-B-Kaw1RF.js → _page.svelte-B3CasgD8.js} +2 -2
- package/build/server/chunks/{_page.svelte-B-Kaw1RF.js.map → _page.svelte-B3CasgD8.js.map} +1 -1
- package/build/server/chunks/_page.svelte-BEU4JrAd.js +433 -0
- package/build/server/chunks/_page.svelte-BEU4JrAd.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Cat8tEeF.js → _page.svelte-Bi4xsxv7.js} +4 -4
- package/build/server/chunks/{_page.svelte-Cat8tEeF.js.map → _page.svelte-Bi4xsxv7.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CIEY8g8A.js → _page.svelte-BikYFdJv.js} +4 -4
- package/build/server/chunks/{_page.svelte-CIEY8g8A.js.map → _page.svelte-BikYFdJv.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CmuUQI4Y.js → _page.svelte-Bx-fv-rO.js} +43 -20
- package/build/server/chunks/_page.svelte-Bx-fv-rO.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DZX4Bixr.js → _page.svelte-CveCaqpY.js} +5 -5
- package/build/server/chunks/{_page.svelte-DZX4Bixr.js.map → _page.svelte-CveCaqpY.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DyI46sDh.js → _page.svelte-D8ffqrO3.js} +3 -3
- package/build/server/chunks/{_page.svelte-DyI46sDh.js.map → _page.svelte-D8ffqrO3.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DLQqGym0.js → _page.svelte-DNmC-yjw.js} +4 -4
- package/build/server/chunks/{_page.svelte-DLQqGym0.js.map → _page.svelte-DNmC-yjw.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DHNevyzi.js → _page.svelte-wL3fdD1l.js} +4 -4
- package/build/server/chunks/{_page.svelte-DHNevyzi.js.map → _page.svelte-wL3fdD1l.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CUnw0pLx.js → _page.svelte-xTZOj1o8.js} +3 -3
- package/build/server/chunks/{_page.svelte-CUnw0pLx.js.map → _page.svelte-xTZOj1o8.js.map} +1 -1
- package/build/server/chunks/_server.ts-BBDD0W6t.js +167 -0
- package/build/server/chunks/_server.ts-BBDD0W6t.js.map +1 -0
- package/build/server/chunks/_server.ts-BkOJmVFg.js +101 -0
- package/build/server/chunks/_server.ts-BkOJmVFg.js.map +1 -0
- package/build/server/chunks/{_server.ts-BUQYdxPs.js → _server.ts-BkcLO56D.js} +2 -2
- package/build/server/chunks/{_server.ts-BUQYdxPs.js.map → _server.ts-BkcLO56D.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Dq1jAomo.js → _server.ts-C2WpZqPW.js} +4 -4
- package/build/server/chunks/{_server.ts-Dq1jAomo.js.map → _server.ts-C2WpZqPW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-5396UuLQ.js → _server.ts-CKn8ym8s.js} +2 -2
- package/build/server/chunks/{_server.ts-5396UuLQ.js.map → _server.ts-CKn8ym8s.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DHt1bGpF.js → _server.ts-CaVH9FSD.js} +4 -4
- package/build/server/chunks/{_server.ts-DHt1bGpF.js.map → _server.ts-CaVH9FSD.js.map} +1 -1
- package/build/server/chunks/_server.ts-D7iLlRbM.js +337 -0
- package/build/server/chunks/_server.ts-D7iLlRbM.js.map +1 -0
- package/build/server/chunks/_server.ts-DPqZOGG_.js +18 -0
- package/build/server/chunks/_server.ts-DPqZOGG_.js.map +1 -0
- package/build/server/chunks/{_server.ts-sMKRiXFg.js → _server.ts-Dz9oKgWc.js} +5 -5
- package/build/server/chunks/{_server.ts-sMKRiXFg.js.map → _server.ts-Dz9oKgWc.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CvdpZfED.js → _server.ts-fVP0SuTW.js} +2 -2
- package/build/server/chunks/{_server.ts-CvdpZfED.js.map → _server.ts-fVP0SuTW.js.map} +1 -1
- package/build/server/chunks/{client-92HF3fc9.js → client-CydontyB.js} +3 -3
- package/build/server/chunks/{client-92HF3fc9.js.map → client-CydontyB.js.map} +1 -1
- package/build/server/chunks/{dev-Duv_-rxF.js → dev-BdIdjvaY.js} +216 -82
- package/build/server/chunks/dev-BdIdjvaY.js.map +1 -0
- package/build/server/chunks/{doctorSummary-Bm0dY6PW.js → doctorSummary-BOtGdd9z.js} +3 -3
- package/build/server/chunks/{doctorSummary-Bm0dY6PW.js.map → doctorSummary-BOtGdd9z.js.map} +1 -1
- package/build/server/chunks/{error.svelte-BEI8QxGW.js → error.svelte-_CDx8UPv.js} +4 -4
- package/build/server/chunks/{error.svelte-BEI8QxGW.js.map → error.svelte-_CDx8UPv.js.map} +1 -1
- package/build/server/chunks/{hooks.server-BKavEpqC.js → hooks.server-Dva4z7fv.js} +35 -1
- package/build/server/chunks/hooks.server-Dva4z7fv.js.map +1 -0
- package/build/server/chunks/{internal-DBeni9My.js → internal-DyPeC3rk.js} +21 -16
- package/build/server/chunks/internal-DyPeC3rk.js.map +1 -0
- package/build/server/chunks/{marketingSeo-Do5o0grg.js → marketingSeo-CugwK52J.js} +2 -2
- package/build/server/chunks/{marketingSeo-Do5o0grg.js.map → marketingSeo-CugwK52J.js.map} +1 -1
- package/build/server/chunks/migrationReport-f6NoxAVZ.js +40 -0
- package/build/server/chunks/migrationReport-f6NoxAVZ.js.map +1 -0
- package/build/server/chunks/{profileApiHelpers-BFzohffv.js → profileApiHelpers-DCoI7zMU.js} +3 -3
- package/build/server/chunks/{profileApiHelpers-BFzohffv.js.map → profileApiHelpers-DCoI7zMU.js.map} +1 -1
- package/build/server/chunks/{projectContext-Cxsfz84C.js → projectContext-B1D-bieW.js} +2439 -127
- package/build/server/chunks/projectContext-B1D-bieW.js.map +1 -0
- package/build/server/chunks/{src2-DNqJAXv6.js → src2-BtraGDB1.js} +2 -2
- package/build/server/chunks/src2-BtraGDB1.js.map +1 -0
- package/build/server/chunks/{src3-jm480tTA.js → src3-BXch_OaJ.js} +347 -10
- package/build/server/chunks/src3-BXch_OaJ.js.map +1 -0
- package/build/server/chunks/{tokenStore-DQfTa-N3.js → tokenStore-CTHhmHsk.js} +30 -2
- package/build/server/chunks/tokenStore-CTHhmHsk.js.map +1 -0
- package/build/server/index.js +4 -5
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +58 -22
- package/build/server/manifest.js.map +1 -1
- package/package.json +7 -7
- package/build/client/_app/immutable/chunks/6SrQtk22.js +0 -3
- package/build/client/_app/immutable/chunks/6SrQtk22.js.br +0 -0
- package/build/client/_app/immutable/chunks/6SrQtk22.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1X0Iqjr.js +0 -3
- package/build/client/_app/immutable/chunks/B1X0Iqjr.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1X0Iqjr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BN4Ca4cJ.js +0 -1
- package/build/client/_app/immutable/chunks/BN4Ca4cJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BN4Ca4cJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYeYmN2n.js +0 -1
- package/build/client/_app/immutable/chunks/BYeYmN2n.js.br +0 -2
- package/build/client/_app/immutable/chunks/BYeYmN2n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0_SwbnT.js +0 -2
- package/build/client/_app/immutable/chunks/D0_SwbnT.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0_SwbnT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRoN73NW.js +0 -1
- package/build/client/_app/immutable/chunks/DRoN73NW.js.br +0 -2
- package/build/client/_app/immutable/chunks/DRoN73NW.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B45QQayJ.js +0 -2
- package/build/client/_app/immutable/entry/app.B45QQayJ.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B45QQayJ.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BIlQ_snM.js +0 -1
- package/build/client/_app/immutable/entry/start.BIlQ_snM.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BIlQ_snM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.JRffyfUR.js +0 -1
- package/build/client/_app/immutable/nodes/0.JRffyfUR.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.JRffyfUR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.56EgwKsF.js +0 -1
- package/build/client/_app/immutable/nodes/1.56EgwKsF.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.56EgwKsF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Bhdlxk-S.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bhdlxk-S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DAqRx2TI.js +0 -1
- package/build/client/_app/immutable/nodes/11.DAqRx2TI.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DAqRx2TI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CI-wpOC8.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CI-wpOC8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Bphawycs.js +0 -2
- package/build/client/_app/immutable/nodes/3.Bphawycs.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bphawycs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BGFkNM65.js +0 -4
- package/build/client/_app/immutable/nodes/4.BGFkNM65.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BGFkNM65.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.VTs5grF0.js +0 -2
- package/build/client/_app/immutable/nodes/5.VTs5grF0.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.VTs5grF0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CndSdLIk.js +0 -5
- package/build/client/_app/immutable/nodes/6.CndSdLIk.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CndSdLIk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DpFk4StA.js +0 -4
- package/build/client/_app/immutable/nodes/7.DpFk4StA.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DpFk4StA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.Y7A99ODL.js +0 -1
- package/build/client/_app/immutable/nodes/8.Y7A99ODL.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.Y7A99ODL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DF3LeTGi.js +0 -3
- package/build/client/_app/immutable/nodes/9.DF3LeTGi.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DF3LeTGi.js.gz +0 -0
- package/build/server/chunks/1-B68UkVTE.js +0 -9
- package/build/server/chunks/10-D7op0myD.js +0 -9
- package/build/server/chunks/10-D7op0myD.js.map +0 -1
- package/build/server/chunks/3-BkezOAX7.js +0 -9
- package/build/server/chunks/5-D_pZV4fS.js +0 -9
- package/build/server/chunks/6-DcbRMrH1.js +0 -9
- package/build/server/chunks/8-DWleYW_e.js +0 -9
- package/build/server/chunks/9-tHCipeiW.js.map +0 -1
- package/build/server/chunks/_layout.svelte-Cv35k3JT.js.map +0 -1
- package/build/server/chunks/_page.svelte-CmuUQI4Y.js.map +0 -1
- package/build/server/chunks/dev-Duv_-rxF.js.map +0 -1
- package/build/server/chunks/hooks.server-BKavEpqC.js.map +0 -1
- package/build/server/chunks/internal-DBeni9My.js.map +0 -1
- package/build/server/chunks/projectContext-Cxsfz84C.js.map +0 -1
- package/build/server/chunks/src2-DNqJAXv6.js.map +0 -1
- package/build/server/chunks/src3-jm480tTA.js.map +0 -1
- package/build/server/chunks/tokenStore-DQfTa-N3.js.map +0 -1
- /package/build/client/_app/immutable/assets/{9.BsbC-D7w.css → 10.BsbC-D7w.css} +0 -0
- /package/build/client/_app/immutable/assets/{9.BsbC-D7w.css.br → 10.BsbC-D7w.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{9.BsbC-D7w.css.gz → 10.BsbC-D7w.css.gz} +0 -0
- /package/build/client/_app/immutable/chunks/{I8rQr1kY.js → CP97kCR3.js} +0 -0
- /package/build/client/_app/immutable/chunks/{I8rQr1kY.js.br → CP97kCR3.js.br} +0 -0
- /package/build/client/_app/immutable/chunks/{I8rQr1kY.js.gz → CP97kCR3.js.gz} +0 -0
- /package/build/client/_app/immutable/chunks/{BFYQcBYR.js → O6-aNYLC.js} +0 -0
- /package/build/client/_app/immutable/chunks/{BFYQcBYR.js.br → O6-aNYLC.js.br} +0 -0
- /package/build/client/_app/immutable/chunks/{BFYQcBYR.js.gz → O6-aNYLC.js.gz} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { v as verifyCsrfToken,
|
|
1
|
+
import { z as loadProjectContext, A as writeProfileAtomic, B as ProfileWriteError } from './projectContext-B1D-bieW.js';
|
|
2
|
+
import { r as readJsonRequestBody, a as readDiskProfile, v as validateCandidate } from './profileApiHelpers-DCoI7zMU.js';
|
|
3
|
+
import { v as verifyCsrfToken, a as consumePlan } from './tokenStore-CTHhmHsk.js';
|
|
4
4
|
import { j as json } from './index-CLnuRv4X.js';
|
|
5
5
|
import 'node:fs/promises';
|
|
6
6
|
import 'process';
|
|
@@ -44,7 +44,7 @@ var POST = async ({ request }) => {
|
|
|
44
44
|
error: "stale_profile",
|
|
45
45
|
message: "Profile changed since plan was issued; reload and retry."
|
|
46
46
|
}, { status: 409 });
|
|
47
|
-
const { parseProfileYaml } = await import('./src2-
|
|
47
|
+
const { parseProfileYaml } = await import('./src2-BtraGDB1.js');
|
|
48
48
|
const reparse = parseProfileYaml(plan.candidateYaml);
|
|
49
49
|
if (!reparse.ok) return json({
|
|
50
50
|
error: "invalid_profile",
|
|
@@ -97,4 +97,4 @@ function isRecord(v) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
export { POST };
|
|
100
|
-
//# sourceMappingURL=_server.ts-
|
|
100
|
+
//# sourceMappingURL=_server.ts-Dz9oKgWc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Dz9oKgWc.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/profile/apply/_server.ts.js"],"sourcesContent":["import { f as ProfileWriteError, g as writeProfileAtomic, t as loadProjectContext } from \"../../../../../chunks/projectContext.js\";\nimport { i as validateCandidate, n as readDiskProfile, r as readJsonRequestBody } from \"../../../../../chunks/profileApiHelpers.js\";\nimport { n as consumePlan, s as verifyCsrfToken } from \"../../../../../chunks/tokenStore.js\";\nimport { json } from \"@sveltejs/kit\";\n//#region src/routes/api/profile/apply/+server.ts\nvar POST = async ({ request }) => {\n\tif (!verifyCsrfToken(request.headers.get(\"x-csrf-token\"))) return json({ error: \"csrf_failed\" }, { status: 403 });\n\tif (!(request.headers.get(\"content-type\") ?? \"\").includes(\"application/json\")) return json({ error: \"unsupported_media_type\" }, { status: 415 });\n\tconst parsedBody = await readJsonRequestBody(request);\n\tif (!parsedBody.ok) return json({\n\t\terror: parsedBody.error,\n\t\tmessage: parsedBody.message\n\t}, { status: parsedBody.status });\n\tconst body = parsedBody.body;\n\tif (!isRecord(body) || typeof body.planToken !== \"string\") return json({\n\t\terror: \"invalid_request\",\n\t\tmessage: \"Missing planToken.\"\n\t}, { status: 400 });\n\tconst plan = consumePlan(body.planToken);\n\tif (!plan) return json({\n\t\terror: \"plan_expired\",\n\t\tmessage: \"Plan token has expired or is unknown.\"\n\t}, { status: 410 });\n\tconst ctx = await loadProjectContext();\n\tconst disk = await readDiskProfile(ctx.rootDir);\n\tif (!disk.ok) {\n\t\tif (disk.reason === \"not_found\") return json({ error: \"file_not_found\" }, { status: 404 });\n\t\treturn json({\n\t\t\terror: \"invalid_profile\",\n\t\t\tissues: disk.issues,\n\t\t\tunsupportedEditing: disk.unsupportedEditing\n\t\t}, { status: 422 });\n\t}\n\tif (disk.etag !== plan.etag) return json({\n\t\terror: \"stale_profile\",\n\t\tmessage: \"Profile changed since plan was issued; reload and retry.\"\n\t}, { status: 409 });\n\tconst { parseProfileYaml } = await import(\"../../../../../chunks/src2.js\");\n\tconst reparse = parseProfileYaml(plan.candidateYaml);\n\tif (!reparse.ok) return json({\n\t\terror: \"invalid_profile\",\n\t\tissues: reparse.issues\n\t}, { status: 422 });\n\tconst revalidation = validateCandidate(reparse.profile);\n\tif (!revalidation.ok) {\n\t\tif (revalidation.reason === \"secret_like\") return json({\n\t\t\terror: \"secret_like_value\",\n\t\t\tpaths: revalidation.paths\n\t\t}, { status: 422 });\n\t\tif (revalidation.reason === \"invalid_encoding\") return json({\n\t\t\terror: \"invalid_encoding\",\n\t\t\tpaths: revalidation.paths\n\t\t}, { status: 422 });\n\t\treturn json({\n\t\t\terror: \"invalid_profile\",\n\t\t\tissues: revalidation.issues\n\t\t}, { status: 422 });\n\t}\n\tif (revalidation.etag !== plan.candidateEtag) return json({\n\t\terror: \"candidate_mismatch\",\n\t\tmessage: \"Reviewed candidate hash no longer matches.\"\n\t}, { status: 409 });\n\tconst candidateBytes = Buffer.from(plan.candidateYaml, \"utf8\");\n\ttry {\n\t\tconst result = await writeProfileAtomic(ctx.rootDir, candidateBytes, plan.etag);\n\t\treturn json({\n\t\t\taction: result.action,\n\t\t\tbytes: result.bytes,\n\t\t\tetag: result.etag\n\t\t});\n\t} catch (err) {\n\t\tif (err instanceof ProfileWriteError) {\n\t\t\tif (err.code === \"stale\") return json({\n\t\t\t\terror: \"stale_profile\",\n\t\t\t\tmessage: err.message\n\t\t\t}, { status: 409 });\n\t\t\tif (err.code === \"symlink\" || err.code === \"traversal\") return json({\n\t\t\t\terror: \"write_failed\",\n\t\t\t\tmessage: \"Write rejected by safety check.\"\n\t\t\t}, { status: 422 });\n\t\t\tif (err.code === \"not_found\") return json({ error: \"file_not_found\" }, { status: 404 });\n\t\t}\n\t\treturn json({ error: \"write_failed\" }, { status: 500 });\n\t}\n};\nfunction isRecord(v) {\n\treturn typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\n//#endregion\nexport { POST };\n"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as buildSitemapXml } from './marketingSeo-
|
|
1
|
+
import { c as buildSitemapXml } from './marketingSeo-CugwK52J.js';
|
|
2
2
|
|
|
3
3
|
//#region src/routes/sitemap.xml/+server.ts
|
|
4
4
|
var prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === "1";
|
|
5
5
|
var GET = () => new Response(buildSitemapXml(), { headers: { "content-type": "application/xml; charset=utf-8" } });
|
|
6
6
|
|
|
7
7
|
export { GET, prerender };
|
|
8
|
-
//# sourceMappingURL=_server.ts-
|
|
8
|
+
//# sourceMappingURL=_server.ts-fVP0SuTW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-fVP0SuTW.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/sitemap.xml/_server.ts.js"],"sourcesContent":["import { r as buildSitemapXml } from \"../../../chunks/marketingSeo.js\";\n//#region src/routes/sitemap.xml/+server.ts\nvar prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\nvar GET = () => new Response(buildSitemapXml(), { headers: { \"content-type\": \"application/xml; charset=utf-8\" } });\n//#endregion\nexport { GET, prerender };\n"],"names":[],"mappings":";;AACA;AACG,IAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK;AAC3D,IAAC,GAAG,GAAG,MAAM,IAAI,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,gCAAgC,EAAE,EAAE;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as index_server_exports } from './internal-
|
|
2
|
-
import { n as noop } from './dev-
|
|
1
|
+
import { i as index_server_exports } from './internal-DyPeC3rk.js';
|
|
2
|
+
import { n as noop } from './dev-BdIdjvaY.js';
|
|
3
3
|
|
|
4
4
|
var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
5
5
|
var placeholder_url = "a:";
|
|
@@ -20,4 +20,4 @@ if (is_legacy) {
|
|
|
20
20
|
/** @import { RemoteQueryCacheEntry } from './remote-functions/query.svelte.js' */
|
|
21
21
|
/** @import { RemoteLiveQueryCacheEntry } from './remote-functions/query-live.svelte.js' */
|
|
22
22
|
var { onMount, tick } = index_server_exports;
|
|
23
|
-
//# sourceMappingURL=client-
|
|
23
|
+
//# sourceMappingURL=client-CydontyB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-
|
|
1
|
+
{"version":3,"file":"client-CydontyB.js","sources":["../../../.svelte-kit/adapter-node/chunks/client.js"],"sourcesContent":["import { a as index_server_exports } from \"./environment.js\";\nimport { v as noop } from \"./shared.js\";\nimport \"./exports.js\";\nimport { $ as noop$1, A as writable } from \"./dev.js\";\nimport \"./internal.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"@sveltejs/kit/internal/server\";\nvar PRELOAD_PRIORITIES = {\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n};\n({ ...PRELOAD_PRIORITIES }), PRELOAD_PRIORITIES.hover;\n/** @param {any} value */\nfunction notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === void 0 || ready && new_value !== old_value) run(old_value = new_value);\n\t\t});\n\t}\n\treturn {\n\t\tnotify,\n\t\tset,\n\t\tsubscribe\n\t};\n}\nvar updated_listener = { v: noop };\nfunction create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\treturn {\n\t\tsubscribe,\n\t\tcheck: async () => false\n\t};\n}\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/client/state.svelte.js\nvar page;\nvar navigating;\nvar updated;\nvar is_legacy = noop$1.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop$1.toString());\nvar placeholder_url = \"a:\";\nif (is_legacy) {\n\tpage = {\n\t\tdata: {},\n\t\tform: null,\n\t\terror: null,\n\t\tparams: {},\n\t\troute: { id: null },\n\t\tstate: {},\n\t\tstatus: -1,\n\t\turl: new URL(placeholder_url)\n\t};\n\tnavigating = { current: null };\n\tupdated = { current: false };\n} else {\n\tpage = new class Page {\n\t\tdata = {};\n\t\tform = null;\n\t\terror = null;\n\t\tparams = {};\n\t\troute = { id: null };\n\t\tstate = {};\n\t\tstatus = -1;\n\t\turl = new URL(placeholder_url);\n\t}();\n\tnavigating = new class Navigating {\n\t\tcurrent = null;\n\t}();\n\tupdated = new class Updated {\n\t\tcurrent = false;\n\t}();\n\tupdated_listener.v = () => updated.current = true;\n}\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/client/client.js\n/** @import { RemoteQueryCacheEntry } from './remote-functions/query.svelte.js' */\n/** @import { RemoteLiveQueryCacheEntry } from './remote-functions/query-live.svelte.js' */\nvar { onMount, tick } = index_server_exports;\nvar stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(null),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n//#endregion\nexport { updated as i, navigating as n, page as r, stores as t };\n"],"names":["noop$1"],"mappings":";;;AAwDA,IAAI,SAAS,GAAGA,IAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAACA,IAAM,CAAC,QAAQ,EAAE,CAAC;AACnG,IAAI,eAAe,GAAG,IAAI;AAC1B,IAAI,SAAS,EAAE;AACf,EAAQ;AACR,EAAE,IAAI,EAAE,EAAE;AACV,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,KAAK,EAAE,IAAI;AACb,EAAE,MAAM,EAAE,EAAE;AACZ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;AACrB,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,MAAM,EAAE,EAAE;AACZ,EAAE,GAAG,EAAE,IAAI,GAAG,CAAC,eAAe;AAC9B,GAAE;AAGF;AAmBA;AACA;AACA;AACA;AACA,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,oBAAoB"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
const UNDEFINED = -1;
|
|
2
|
+
const HOLE = -2;
|
|
3
|
+
const NAN = -3;
|
|
4
|
+
const POSITIVE_INFINITY = -4;
|
|
5
|
+
const NEGATIVE_INFINITY = -5;
|
|
6
|
+
const NEGATIVE_ZERO = -6;
|
|
7
|
+
const SPARSE = -7;
|
|
8
|
+
|
|
9
|
+
// The largest valid value for a JavaScript array's `length` property,
|
|
10
|
+
// and the largest valid array index (one less than the max length).
|
|
11
|
+
const MAX_ARRAY_LEN = 2 ** 32 - 1;
|
|
12
|
+
const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
|
|
13
|
+
|
|
1
14
|
/** @type {Record<string, string>} */
|
|
2
15
|
const escaped = {
|
|
3
16
|
'<': '\\u003C',
|
|
@@ -113,19 +126,33 @@ function stringify_key(key) {
|
|
|
113
126
|
return is_identifier.test(key) ? '.' + key : '[' + JSON.stringify(key) + ']';
|
|
114
127
|
}
|
|
115
128
|
|
|
129
|
+
/** @param {number} n */
|
|
130
|
+
function is_valid_array_index(n) {
|
|
131
|
+
if (!Number.isInteger(n)) return false;
|
|
132
|
+
if (n < 0) return false;
|
|
133
|
+
if (n > MAX_ARRAY_INDEX) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** @param {number} n */
|
|
138
|
+
function is_valid_array_len(n) {
|
|
139
|
+
if (!Number.isInteger(n)) return false;
|
|
140
|
+
if (n < 0) return false;
|
|
141
|
+
if (n > MAX_ARRAY_LEN) return false;
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
|
|
116
145
|
/** @param {string} s */
|
|
117
|
-
function
|
|
146
|
+
function is_valid_array_index_string(s) {
|
|
118
147
|
if (s.length === 0) return false;
|
|
119
148
|
if (s.length > 1 && s.charCodeAt(0) === 48) return false; // leading zero
|
|
120
149
|
for (let i = 0; i < s.length; i++) {
|
|
121
150
|
const c = s.charCodeAt(i);
|
|
122
151
|
if (c < 48 || c > 57) return false;
|
|
123
152
|
}
|
|
124
|
-
// by this point we know it's a string of digits, but it has to be within
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (n < 0) return false;
|
|
128
|
-
return true;
|
|
153
|
+
// by this point we know it's a string of digits, but it has to be within
|
|
154
|
+
// the range of valid array indices
|
|
155
|
+
return is_valid_array_index(+s);
|
|
129
156
|
}
|
|
130
157
|
|
|
131
158
|
/**
|
|
@@ -135,7 +162,7 @@ function is_valid_array_index(s) {
|
|
|
135
162
|
function valid_array_indices(array) {
|
|
136
163
|
const keys = Object.keys(array);
|
|
137
164
|
for (var i = keys.length - 1; i >= 0; i--) {
|
|
138
|
-
if (
|
|
165
|
+
if (is_valid_array_index_string(keys[i])) {
|
|
139
166
|
break;
|
|
140
167
|
}
|
|
141
168
|
}
|
|
@@ -928,6 +955,10 @@ var REACTION_IS_UPDATING = 1 << 21;
|
|
|
928
955
|
var ERROR_VALUE = 1 << 23;
|
|
929
956
|
var STATE_SYMBOL = Symbol("$state");
|
|
930
957
|
var LEGACY_PROPS = Symbol("legacy props");
|
|
958
|
+
var ATTRIBUTES_CACHE = Symbol("attributes");
|
|
959
|
+
var CLASS_CACHE = Symbol("class");
|
|
960
|
+
var STYLE_CACHE = Symbol("style");
|
|
961
|
+
var TEXT_CACHE = Symbol("text");
|
|
931
962
|
/** allow users to ignore aborted signal errors if `reason.name === 'StaleReactionError` */
|
|
932
963
|
var STALE_REACTION = new class StaleReactionError extends Error {
|
|
933
964
|
name = "StaleReactionError";
|
|
@@ -1513,11 +1544,18 @@ function writable(value, start = noop) {
|
|
|
1513
1544
|
//#region ../../node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
1514
1545
|
/** @import { Fork } from 'svelte' */
|
|
1515
1546
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
1516
|
-
/** @type {
|
|
1517
|
-
var
|
|
1547
|
+
/** @type {Batch | null} */
|
|
1548
|
+
var first_batch = null;
|
|
1549
|
+
/** @type {Batch | null} */
|
|
1550
|
+
var last_batch = null;
|
|
1518
1551
|
/** @type {Batch | null} */
|
|
1519
1552
|
var current_batch = null;
|
|
1520
1553
|
/**
|
|
1554
|
+
* This is needed to avoid overwriting inputs
|
|
1555
|
+
* @type {Batch | null}
|
|
1556
|
+
*/
|
|
1557
|
+
var previous_batch = null;
|
|
1558
|
+
/**
|
|
1521
1559
|
* When time travelling (i.e. working in one batch, while other batches
|
|
1522
1560
|
* still have ongoing work), we ignore the real values of affected
|
|
1523
1561
|
* signals in favour of their values within the batch
|
|
@@ -1547,6 +1585,15 @@ var flush_count = 0;
|
|
|
1547
1585
|
var uid = 1;
|
|
1548
1586
|
var Batch = class Batch {
|
|
1549
1587
|
id = uid++;
|
|
1588
|
+
/** True as soon as `#process` was called */
|
|
1589
|
+
#started = false;
|
|
1590
|
+
linked = true;
|
|
1591
|
+
/** @type {Batch | null} */
|
|
1592
|
+
#prev = null;
|
|
1593
|
+
/** @type {Batch | null} */
|
|
1594
|
+
#next = null;
|
|
1595
|
+
/** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
|
|
1596
|
+
async_deriveds = /* @__PURE__ */ new Map();
|
|
1550
1597
|
/**
|
|
1551
1598
|
* The current values of any signals that are updated in this batch.
|
|
1552
1599
|
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
@@ -1561,6 +1608,12 @@ var Batch = class Batch {
|
|
|
1561
1608
|
*/
|
|
1562
1609
|
previous = /* @__PURE__ */ new Map();
|
|
1563
1610
|
/**
|
|
1611
|
+
* Async effects which this batch doesn't take into account anymore when calculating blockers,
|
|
1612
|
+
* as it has a value for it already.
|
|
1613
|
+
* @type {Set<Effect>}
|
|
1614
|
+
*/
|
|
1615
|
+
unblocked = /* @__PURE__ */ new Set();
|
|
1616
|
+
/**
|
|
1564
1617
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
1565
1618
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
1566
1619
|
* @type {Set<(batch: Batch) => void>}
|
|
@@ -1577,10 +1630,9 @@ var Batch = class Batch {
|
|
|
1577
1630
|
*/
|
|
1578
1631
|
#fork_commit_callbacks = /* @__PURE__ */ new Set();
|
|
1579
1632
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
* @type {Map<Effect, number>}
|
|
1633
|
+
* The number of async effects that are currently in flight
|
|
1582
1634
|
*/
|
|
1583
|
-
#pending =
|
|
1635
|
+
#pending = 0;
|
|
1584
1636
|
/**
|
|
1585
1637
|
* Async effects that are currently in flight, _not_ inside a pending boundary
|
|
1586
1638
|
* @type {Map<Effect, number>}
|
|
@@ -1627,15 +1679,11 @@ var Batch = class Batch {
|
|
|
1627
1679
|
#unskipped_branches = /* @__PURE__ */ new Set();
|
|
1628
1680
|
is_fork = false;
|
|
1629
1681
|
#decrement_queued = false;
|
|
1630
|
-
/** @type {Set<Batch>} */
|
|
1631
|
-
#blockers = /* @__PURE__ */ new Set();
|
|
1632
1682
|
#is_deferred() {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
#is_blocked() {
|
|
1636
|
-
for (const batch of this.#blockers) for (const effect of batch.#blocking_pending.keys()) {
|
|
1637
|
-
var skipped = false;
|
|
1683
|
+
if (this.is_fork) return true;
|
|
1684
|
+
for (const effect of this.#blocking_pending.keys()) {
|
|
1638
1685
|
var e = effect;
|
|
1686
|
+
var skipped = false;
|
|
1639
1687
|
while (e.parent !== null) {
|
|
1640
1688
|
if (this.#skipped_branches.has(e)) {
|
|
1641
1689
|
skipped = true;
|
|
@@ -1680,8 +1728,9 @@ var Batch = class Batch {
|
|
|
1680
1728
|
this.#unskipped_branches.add(effect);
|
|
1681
1729
|
}
|
|
1682
1730
|
#process() {
|
|
1731
|
+
this.#started = true;
|
|
1683
1732
|
if (flush_count++ > 1e3) {
|
|
1684
|
-
|
|
1733
|
+
this.#unlink();
|
|
1685
1734
|
infinite_loop_guard();
|
|
1686
1735
|
}
|
|
1687
1736
|
if (!this.#is_deferred()) {
|
|
@@ -1720,29 +1769,39 @@ var Batch = class Batch {
|
|
|
1720
1769
|
}
|
|
1721
1770
|
collected_effects = null;
|
|
1722
1771
|
legacy_updates = null;
|
|
1723
|
-
if (this.#is_deferred()
|
|
1772
|
+
if (this.#is_deferred()) {
|
|
1724
1773
|
this.#defer_effects(render_effects);
|
|
1725
1774
|
this.#defer_effects(effects);
|
|
1726
1775
|
for (const [e, t] of this.#skipped_branches) reset_branch(e, t);
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
this.#deferred?.resolve();
|
|
1776
|
+
if (updates.length > 0)
|
|
1777
|
+
/** @type {Batch} */ current_batch.#process();
|
|
1778
|
+
return;
|
|
1779
|
+
}
|
|
1780
|
+
const earlier_batch = this.#find_earlier_batch();
|
|
1781
|
+
if (earlier_batch) {
|
|
1782
|
+
earlier_batch.#merge(this);
|
|
1783
|
+
return;
|
|
1736
1784
|
}
|
|
1785
|
+
this.#dirty_effects.clear();
|
|
1786
|
+
this.#maybe_dirty_effects.clear();
|
|
1787
|
+
for (const fn of this.#commit_callbacks) fn(this);
|
|
1788
|
+
this.#commit_callbacks.clear();
|
|
1789
|
+
previous_batch = this;
|
|
1790
|
+
flush_queued_effects(render_effects);
|
|
1791
|
+
flush_queued_effects(effects);
|
|
1792
|
+
previous_batch = null;
|
|
1793
|
+
this.#deferred?.resolve();
|
|
1737
1794
|
var next_batch = current_batch;
|
|
1795
|
+
if (this.linked && this.#pending === 0) this.#unlink();
|
|
1738
1796
|
if (this.#roots.length > 0) {
|
|
1739
|
-
|
|
1797
|
+
if (next_batch === null) {
|
|
1798
|
+
next_batch = this;
|
|
1799
|
+
this.#link();
|
|
1800
|
+
}
|
|
1801
|
+
const batch = next_batch;
|
|
1740
1802
|
batch.#roots.push(...this.#roots.filter((r) => !batch.#roots.includes(r)));
|
|
1741
1803
|
}
|
|
1742
|
-
if (next_batch !== null)
|
|
1743
|
-
batches.add(next_batch);
|
|
1744
|
-
next_batch.#process();
|
|
1745
|
-
}
|
|
1804
|
+
if (next_batch !== null) next_batch.#process();
|
|
1746
1805
|
}
|
|
1747
1806
|
/**
|
|
1748
1807
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -1780,6 +1839,58 @@ var Batch = class Batch {
|
|
|
1780
1839
|
}
|
|
1781
1840
|
}
|
|
1782
1841
|
}
|
|
1842
|
+
#find_earlier_batch() {
|
|
1843
|
+
var batch = this.#prev;
|
|
1844
|
+
while (batch !== null) {
|
|
1845
|
+
if (!batch.is_fork) {
|
|
1846
|
+
for (const [value, [, is_derived]] of this.current) if (batch.current.has(value) && !is_derived) return batch;
|
|
1847
|
+
}
|
|
1848
|
+
batch = batch.#prev;
|
|
1849
|
+
}
|
|
1850
|
+
return null;
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* @param {Batch} batch
|
|
1854
|
+
*/
|
|
1855
|
+
#merge(batch) {
|
|
1856
|
+
for (const [source, value] of batch.current) {
|
|
1857
|
+
if (!this.previous.has(source) && batch.previous.has(source)) this.previous.set(source, batch.previous.get(source));
|
|
1858
|
+
this.current.set(source, value);
|
|
1859
|
+
}
|
|
1860
|
+
for (const [effect, deferred] of batch.async_deriveds) {
|
|
1861
|
+
const d = this.async_deriveds.get(effect);
|
|
1862
|
+
if (d) deferred.promise.then(d.resolve);
|
|
1863
|
+
}
|
|
1864
|
+
/**
|
|
1865
|
+
* mark all effects that depend on `batch.current`, except the
|
|
1866
|
+
* async effects that we just resolved (TODO unless they depend
|
|
1867
|
+
* on values in this batch that are NOT in the later batch?).
|
|
1868
|
+
* Through this we also will populate the correct #skipped_branches,
|
|
1869
|
+
* oncommit callbacks etc, so we don't need to merge them separately.
|
|
1870
|
+
* @param {Value} value
|
|
1871
|
+
*/
|
|
1872
|
+
const mark = (value) => {
|
|
1873
|
+
var reactions = value.reactions;
|
|
1874
|
+
if (reactions === null) return;
|
|
1875
|
+
for (const reaction of reactions) {
|
|
1876
|
+
var flags = reaction.f;
|
|
1877
|
+
if ((flags & 2) !== 0) mark(reaction);
|
|
1878
|
+
else {
|
|
1879
|
+
var effect = reaction;
|
|
1880
|
+
if (flags & 4194320 && !this.async_deriveds.has(effect)) {
|
|
1881
|
+
this.#maybe_dirty_effects.delete(effect);
|
|
1882
|
+
set_signal_status(effect, DIRTY);
|
|
1883
|
+
this.schedule(effect);
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
};
|
|
1888
|
+
for (const source of this.current.keys()) mark(source);
|
|
1889
|
+
this.oncommit(() => batch.discard());
|
|
1890
|
+
batch.#unlink();
|
|
1891
|
+
current_batch = this;
|
|
1892
|
+
this.#process();
|
|
1893
|
+
}
|
|
1783
1894
|
/**
|
|
1784
1895
|
* @param {Effect[]} effects
|
|
1785
1896
|
*/
|
|
@@ -1828,7 +1939,7 @@ var Batch = class Batch {
|
|
|
1828
1939
|
for (const fn of this.#discard_callbacks) fn(this);
|
|
1829
1940
|
this.#discard_callbacks.clear();
|
|
1830
1941
|
this.#fork_commit_callbacks.clear();
|
|
1831
|
-
|
|
1942
|
+
this.#unlink();
|
|
1832
1943
|
}
|
|
1833
1944
|
/**
|
|
1834
1945
|
* @param {Effect} effect
|
|
@@ -1837,7 +1948,8 @@ var Batch = class Batch {
|
|
|
1837
1948
|
this.#new_effects.push(effect);
|
|
1838
1949
|
}
|
|
1839
1950
|
#commit() {
|
|
1840
|
-
|
|
1951
|
+
this.#unlink();
|
|
1952
|
+
for (let batch = first_batch; batch !== null; batch = batch.#next) {
|
|
1841
1953
|
var is_earlier = batch.id < this.id;
|
|
1842
1954
|
/** @type {Source[]} */
|
|
1843
1955
|
var sources = [];
|
|
@@ -1849,6 +1961,11 @@ var Batch = class Batch {
|
|
|
1849
1961
|
}
|
|
1850
1962
|
sources.push(source);
|
|
1851
1963
|
}
|
|
1964
|
+
if (is_earlier) for (const [effect, deferred] of this.async_deriveds) {
|
|
1965
|
+
const d = batch.async_deriveds.get(effect);
|
|
1966
|
+
if (d) deferred.promise.then(d.resolve);
|
|
1967
|
+
}
|
|
1968
|
+
if (!batch.#started) continue;
|
|
1852
1969
|
var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
1853
1970
|
if (others.length === 0) {
|
|
1854
1971
|
if (is_earlier) batch.discard();
|
|
@@ -1864,11 +1981,13 @@ var Batch = class Batch {
|
|
|
1864
1981
|
var checked = /* @__PURE__ */ new Map();
|
|
1865
1982
|
for (var source of sources) mark_effects(source, others, marked, checked);
|
|
1866
1983
|
checked = /* @__PURE__ */ new Map();
|
|
1867
|
-
var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1984
|
+
var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c.v : true);
|
|
1985
|
+
if (current_unequal.length > 0) {
|
|
1986
|
+
for (const effect of this.#new_effects) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
|
|
1987
|
+
set_signal_status(effect, DIRTY);
|
|
1988
|
+
batch.schedule(effect);
|
|
1989
|
+
} else batch.#dirty_effects.add(effect);
|
|
1990
|
+
}
|
|
1872
1991
|
if (batch.#roots.length > 0) {
|
|
1873
1992
|
batch.apply();
|
|
1874
1993
|
for (var root of batch.#roots) batch.#traverse(root, [], []);
|
|
@@ -1877,21 +1996,13 @@ var Batch = class Batch {
|
|
|
1877
1996
|
batch.deactivate();
|
|
1878
1997
|
}
|
|
1879
1998
|
}
|
|
1880
|
-
for (const batch of batches) if (batch.#blockers.has(this)) {
|
|
1881
|
-
batch.#blockers.delete(this);
|
|
1882
|
-
if (batch.#blockers.size === 0 && !batch.#is_deferred()) {
|
|
1883
|
-
batch.activate();
|
|
1884
|
-
batch.#process();
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
1999
|
}
|
|
1888
2000
|
/**
|
|
1889
2001
|
* @param {boolean} blocking
|
|
1890
2002
|
* @param {Effect} effect
|
|
1891
2003
|
*/
|
|
1892
2004
|
increment(blocking, effect) {
|
|
1893
|
-
|
|
1894
|
-
this.#pending.set(effect, pending_count + 1);
|
|
2005
|
+
this.#pending += 1;
|
|
1895
2006
|
if (blocking) {
|
|
1896
2007
|
let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
|
|
1897
2008
|
this.#blocking_pending.set(effect, blocking_pending_count + 1);
|
|
@@ -1900,22 +2011,19 @@ var Batch = class Batch {
|
|
|
1900
2011
|
/**
|
|
1901
2012
|
* @param {boolean} blocking
|
|
1902
2013
|
* @param {Effect} effect
|
|
1903
|
-
* @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
|
|
1904
2014
|
*/
|
|
1905
|
-
decrement(blocking, effect
|
|
1906
|
-
|
|
1907
|
-
if (pending_count === 1) this.#pending.delete(effect);
|
|
1908
|
-
else this.#pending.set(effect, pending_count - 1);
|
|
2015
|
+
decrement(blocking, effect) {
|
|
2016
|
+
this.#pending -= 1;
|
|
1909
2017
|
if (blocking) {
|
|
1910
2018
|
let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
|
|
1911
2019
|
if (blocking_pending_count === 1) this.#blocking_pending.delete(effect);
|
|
1912
2020
|
else this.#blocking_pending.set(effect, blocking_pending_count - 1);
|
|
1913
2021
|
}
|
|
1914
|
-
if (this.#decrement_queued
|
|
2022
|
+
if (this.#decrement_queued) return;
|
|
1915
2023
|
this.#decrement_queued = true;
|
|
1916
2024
|
queue_micro_task(() => {
|
|
1917
2025
|
this.#decrement_queued = false;
|
|
1918
|
-
this.flush();
|
|
2026
|
+
if (this.linked) this.flush();
|
|
1919
2027
|
});
|
|
1920
2028
|
}
|
|
1921
2029
|
/**
|
|
@@ -1950,13 +2058,10 @@ var Batch = class Batch {
|
|
|
1950
2058
|
static ensure() {
|
|
1951
2059
|
if (current_batch === null) {
|
|
1952
2060
|
const batch = current_batch = new Batch();
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
if (!
|
|
1956
|
-
|
|
1957
|
-
batch.flush();
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
2061
|
+
batch.#link();
|
|
2062
|
+
if (!is_processing && !is_flushing_sync) queue_micro_task(() => {
|
|
2063
|
+
if (!batch.#started) batch.flush();
|
|
2064
|
+
});
|
|
1960
2065
|
}
|
|
1961
2066
|
return current_batch;
|
|
1962
2067
|
}
|
|
@@ -1990,6 +2095,23 @@ var Batch = class Batch {
|
|
|
1990
2095
|
}
|
|
1991
2096
|
this.#roots.push(e);
|
|
1992
2097
|
}
|
|
2098
|
+
#link() {
|
|
2099
|
+
if (last_batch === null) first_batch = last_batch = this;
|
|
2100
|
+
else {
|
|
2101
|
+
last_batch.#next = this;
|
|
2102
|
+
this.#prev = last_batch;
|
|
2103
|
+
}
|
|
2104
|
+
last_batch = this;
|
|
2105
|
+
}
|
|
2106
|
+
#unlink() {
|
|
2107
|
+
var prev = this.#prev;
|
|
2108
|
+
var next = this.#next;
|
|
2109
|
+
if (prev === null) first_batch = next;
|
|
2110
|
+
else prev.#next = next;
|
|
2111
|
+
if (next === null) last_batch = prev;
|
|
2112
|
+
else next.#prev = prev;
|
|
2113
|
+
this.linked = false;
|
|
2114
|
+
}
|
|
1993
2115
|
};
|
|
1994
2116
|
/**
|
|
1995
2117
|
* Synchronously flush any pending updates.
|
|
@@ -2216,9 +2338,9 @@ function createSubscriber(start) {
|
|
|
2216
2338
|
/** @import { Effect, Source, TemplateNode, } from '#client' */
|
|
2217
2339
|
/**
|
|
2218
2340
|
* @typedef {{
|
|
2219
|
-
* onerror?: (error: unknown, reset: () => void) => void;
|
|
2220
|
-
* failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
|
|
2221
|
-
* pending?: (anchor: Node) => void;
|
|
2341
|
+
* onerror?: ((error: unknown, reset: () => void) => void) | null;
|
|
2342
|
+
* failed?: ((anchor: Node, error: () => unknown, reset: () => () => void) => void) | null;
|
|
2343
|
+
* pending?: ((anchor: Node) => void) | null;
|
|
2222
2344
|
* }} BoundaryProps
|
|
2223
2345
|
*/
|
|
2224
2346
|
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
|
|
@@ -2596,8 +2718,10 @@ function update_derived(derived) {
|
|
|
2596
2718
|
if (!derived.equals(value)) {
|
|
2597
2719
|
derived.wv = increment_write_version();
|
|
2598
2720
|
if (!current_batch?.is_fork || derived.deps === null) {
|
|
2599
|
-
if (current_batch !== null)
|
|
2600
|
-
|
|
2721
|
+
if (current_batch !== null) {
|
|
2722
|
+
current_batch.capture(derived, value, true);
|
|
2723
|
+
previous_batch?.capture(derived, value, true);
|
|
2724
|
+
} else derived.v = value;
|
|
2601
2725
|
if (derived.deps === null) {
|
|
2602
2726
|
set_signal_status(derived, CLEAN);
|
|
2603
2727
|
return;
|
|
@@ -2633,7 +2757,7 @@ function unfreeze_derived_effects(derived) {
|
|
|
2633
2757
|
//#endregion
|
|
2634
2758
|
//#region ../../node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
2635
2759
|
/** @import { Derived, Effect, Source, Value } from '#client' */
|
|
2636
|
-
/** @type {Set<
|
|
2760
|
+
/** @type {Set<Effect>} */
|
|
2637
2761
|
var eager_effects = /* @__PURE__ */ new Set();
|
|
2638
2762
|
/** @type {Map<Source, any>} */
|
|
2639
2763
|
var old_values = /* @__PURE__ */ new Map();
|
|
@@ -2717,7 +2841,13 @@ function flush_eager_effects() {
|
|
|
2717
2841
|
eager_effects_deferred = false;
|
|
2718
2842
|
for (const effect of eager_effects) {
|
|
2719
2843
|
if ((effect.f & 1024) !== 0) set_signal_status(effect, MAYBE_DIRTY);
|
|
2720
|
-
|
|
2844
|
+
let dirty;
|
|
2845
|
+
try {
|
|
2846
|
+
dirty = is_dirty(effect);
|
|
2847
|
+
} catch {
|
|
2848
|
+
dirty = true;
|
|
2849
|
+
}
|
|
2850
|
+
if (dirty) update_effect(effect);
|
|
2721
2851
|
}
|
|
2722
2852
|
eager_effects.clear();
|
|
2723
2853
|
}
|
|
@@ -2743,7 +2873,8 @@ function mark_reactions(signal, status, updated_during_traversal) {
|
|
|
2743
2873
|
var flags = reaction.f;
|
|
2744
2874
|
var not_dirty = (flags & DIRTY) === 0;
|
|
2745
2875
|
if (not_dirty) set_signal_status(reaction, status);
|
|
2746
|
-
if ((flags &
|
|
2876
|
+
if ((flags & 131072) !== 0) eager_effects.add(reaction);
|
|
2877
|
+
else if ((flags & 2) !== 0) {
|
|
2747
2878
|
var derived = reaction;
|
|
2748
2879
|
batch_values?.delete(derived);
|
|
2749
2880
|
if ((flags & 65536) === 0) {
|
|
@@ -2934,13 +3065,13 @@ function init_operations() {
|
|
|
2934
3065
|
first_child_getter = get_descriptor(node_prototype, "firstChild").get;
|
|
2935
3066
|
next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
|
|
2936
3067
|
if (is_extensible(element_prototype)) {
|
|
2937
|
-
element_prototype
|
|
2938
|
-
element_prototype
|
|
2939
|
-
element_prototype
|
|
2940
|
-
element_prototype.__style = void 0;
|
|
3068
|
+
/** @type {any} */ element_prototype[CLASS_CACHE] = void 0;
|
|
3069
|
+
/** @type {any} */ element_prototype[ATTRIBUTES_CACHE] = null;
|
|
3070
|
+
/** @type {any} */ element_prototype[STYLE_CACHE] = void 0;
|
|
2941
3071
|
element_prototype.__e = void 0;
|
|
2942
3072
|
}
|
|
2943
|
-
if (is_extensible(text_prototype))
|
|
3073
|
+
if (is_extensible(text_prototype))
|
|
3074
|
+
/** @type {any} */ text_prototype[TEXT_CACHE] = void 0;
|
|
2944
3075
|
}
|
|
2945
3076
|
/**
|
|
2946
3077
|
* @param {string} value
|
|
@@ -3746,7 +3877,7 @@ function attributes(attrs, css_hash, classes, styles, flags = 0) {
|
|
|
3746
3877
|
for (name of Object.keys(attrs)) {
|
|
3747
3878
|
if (typeof attrs[name] === "function") continue;
|
|
3748
3879
|
if (name[0] === "$" && name[1] === "$") continue;
|
|
3749
|
-
if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
|
|
3880
|
+
if (name === "" || INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
|
|
3750
3881
|
var value = attrs[name];
|
|
3751
3882
|
var lower = name.toLowerCase();
|
|
3752
3883
|
if (lowercase) name = lower;
|
|
@@ -4399,7 +4530,10 @@ var Renderer = class Renderer {
|
|
|
4399
4530
|
} catch (error) {
|
|
4400
4531
|
const { context, failed, transformError } = item.#boundary;
|
|
4401
4532
|
set_ssr_context(context);
|
|
4402
|
-
let
|
|
4533
|
+
let promise = transformError(error);
|
|
4534
|
+
set_ssr_context(null);
|
|
4535
|
+
let transformed = await promise;
|
|
4536
|
+
set_ssr_context(context);
|
|
4403
4537
|
const failed_renderer = new Renderer(item.global, item);
|
|
4404
4538
|
failed_renderer.type = item.type;
|
|
4405
4539
|
failed_renderer.#out.push(Renderer.#serialize_failed_boundary(transformed));
|
|
@@ -4554,5 +4688,5 @@ var SSRState = class {
|
|
|
4554
4688
|
}
|
|
4555
4689
|
};
|
|
4556
4690
|
|
|
4557
|
-
export {
|
|
4558
|
-
//# sourceMappingURL=dev-
|
|
4691
|
+
export { mutable_source as $, stringify_key as A, stringify_string as B, valid_array_indices as C, DevalueError as D, run as E, setContext as F, hasContext as G, HOLE as H, getAllContexts as I, getAbortSignal as J, createContext as K, ssr_context as L, MAX_ARRAY_INDEX as M, NAN as N, lifecycle_function_unavailable as O, POSITIVE_INFINITY as P, experimental_async_required as Q, get_render_context as R, SPARSE as S, hydratable_serialization_failed as T, UNDEFINED as U, render as V, set as W, LEGACY_PROPS as X, get as Y, flushSync as Z, define_property as _, attr_class as a, init_operations as a0, get_first_child as a1, get_next_sibling as a2, HYDRATION_ERROR as a3, set_hydrating as a4, set_hydrate_node as a5, hydration_failed as a6, clear_text_content as a7, component_root as a8, hydrate_node as a9, create_text as aa, boundary as ab, array_from as ac, is_passive_event as ad, set_active_reaction as ae, set_active_effect as af, active_reaction as ag, active_effect as ah, hydrating as ai, push as aj, component_context as ak, hydration_mismatch as al, pop as am, attr as b, ensure_array_like as c, clsx$1 as d, escape_html as e, derived as f, getContext as g, html as h, head as i, attr_style as j, stringify as k, bind_props as l, uneval as m, noop as n, NEGATIVE_INFINITY as o, NEGATIVE_ZERO as p, is_valid_array_len as q, readable as r, store_get as s, is_valid_array_index as t, unsubscribe_stores as u, is_primitive as v, writable as w, get_type as x, is_plain_object as y, enumerable_symbols as z };
|
|
4692
|
+
//# sourceMappingURL=dev-BdIdjvaY.js.map
|