@maudecode/talaria-web 1.22.0 → 1.23.3
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/_release.json +4 -4
- package/dist/api/chat-router.d.ts +8 -0
- package/dist/api/raw-routes.d.ts +1 -1
- package/dist/api/raw-routes.js +12 -2
- package/dist/api/raw-routes.js.map +1 -1
- package/dist/api/router.d.ts +41 -0
- package/dist/api/router.js +2 -0
- package/dist/api/router.js.map +1 -1
- package/dist/api/sessions-router.d.ts +59 -0
- package/dist/api/sessions-router.js +5 -2
- package/dist/api/sessions-router.js.map +1 -1
- package/dist/api/settings-router.d.ts +37 -0
- package/dist/api/settings-router.js +2 -1
- package/dist/api/settings-router.js.map +1 -1
- package/dist/api/tools-router.js +5 -2
- package/dist/api/tools-router.js.map +1 -1
- package/dist/cli/ctl.d.ts +5 -2
- package/dist/cli/ctl.js +90 -42
- package/dist/cli/ctl.js.map +1 -1
- package/dist/feedback.d.ts +8 -5
- package/dist/feedback.js +204 -21
- package/dist/feedback.js.map +1 -1
- package/dist/http/context.d.ts +3 -1
- package/dist/http/context.js.map +1 -1
- package/dist/providers/catalog.d.ts +1 -1
- package/dist/providers/catalog.js +27 -9
- package/dist/providers/catalog.js.map +1 -1
- package/dist/release.d.ts +14 -1
- package/dist/release.js +40 -2
- package/dist/release.js.map +1 -1
- package/dist/runtime.js +2 -1
- package/dist/runtime.js.map +1 -1
- package/dist/sessions/list.d.ts +1 -1
- package/dist/sessions/list.js +11 -5
- package/dist/sessions/list.js.map +1 -1
- package/dist/sessions/relay.d.ts +31 -2
- package/dist/sessions/relay.js +43 -3
- package/dist/sessions/relay.js.map +1 -1
- package/dist/sessions/service.js +2 -0
- package/dist/sessions/service.js.map +1 -1
- package/dist/sessions/shares.d.ts +2 -0
- package/dist/sessions/shares.js +20 -7
- package/dist/sessions/shares.js.map +1 -1
- package/dist/sessions/source-kind.js +2 -0
- package/dist/sessions/source-kind.js.map +1 -1
- package/dist/sessions/state-db.js +5 -2
- package/dist/sessions/state-db.js.map +1 -1
- package/dist/sessions/streams.d.ts +5 -2
- package/dist/sessions/streams.js +4 -6
- package/dist/sessions/streams.js.map +1 -1
- package/dist/sessions/titles.d.ts +2 -0
- package/dist/sessions/titles.js +11 -0
- package/dist/sessions/titles.js.map +1 -1
- package/dist/sessions/turn.js +17 -12
- package/dist/sessions/turn.js.map +1 -1
- package/dist/settings.js +4 -0
- package/dist/settings.js.map +1 -1
- package/dist/sidecar/client.d.ts +3 -0
- package/dist/sidecar/client.js +2 -1
- package/dist/sidecar/client.js.map +1 -1
- package/dist/sidecar/discover.js +3 -2
- package/dist/sidecar/discover.js.map +1 -1
- package/dist/tools/insights.d.ts +3 -0
- package/dist/tools/insights.js +6 -7
- package/dist/tools/insights.js.map +1 -1
- package/dist/tools/update-notifications.d.ts +2 -0
- package/dist/tools/update-notifications.js +7 -3
- package/dist/tools/update-notifications.js.map +1 -1
- package/dist/tools/updates.d.ts +10 -0
- package/dist/tools/updates.js +81 -22
- package/dist/tools/updates.js.map +1 -1
- package/dist/workspace/media-refs.js +10 -3
- package/dist/workspace/media-refs.js.map +1 -1
- package/package.json +4 -3
- package/sidecar/scripts/suite_runner.py +55 -8
- package/static/dist/FILES.txt +133 -134
- package/static/dist/assets/AppShell-gqksikn6.js +8 -0
- package/static/dist/assets/{Button-dlsibkzq.js → Button-jb6xj81a.js} +1 -1
- package/static/dist/assets/ChatPage-gn8tw8iz.js +2 -0
- package/static/dist/assets/Composer-ciob0r67.js +5 -0
- package/static/dist/assets/{ConnectTargets-ejplzo4q.js → ConnectTargets-ia7cjrnj.js} +1 -1
- package/static/dist/assets/{Dialog-rksfyyq5.js → Dialog-f3v9qr7e.js} +1 -1
- package/static/dist/assets/ExtensionRoute-ljky7jna.js +1 -0
- package/static/dist/assets/HubRoute-jm9l1ukv.js +2 -0
- package/static/dist/assets/Markdown-gxs8oram.js +2 -0
- package/static/dist/assets/{MarkdownRenderer-74ysuomr.js → MarkdownRenderer-f10z0l04.js} +6 -6
- package/static/dist/assets/{OAuthSignIn-i4flsuq2.js → OAuthSignIn-ki08dz6o.js} +1 -1
- package/static/dist/assets/{QueueCard-msz9wd1m.js → QueueCard-drffrjx8.js} +1 -1
- package/static/dist/assets/{ResourceSwitch-b70zg4xd.js → ResourceSwitch-cgybm4i0.js} +1 -1
- package/static/dist/assets/{RightPanel-f5v61m8j.js → RightPanel-df81kzcn.js} +1 -1
- package/static/dist/assets/{Select-f3l897pt.js → Select-jp3nv3t3.js} +1 -1
- package/static/dist/assets/SessionListPanel-kk343vgy.js +1 -0
- package/static/dist/assets/{SettingsLayout-f4akmrt2.js → SettingsLayout-byvxpnsd.js} +1 -1
- package/static/dist/assets/TerminalPanel-gzeygyic.js +16 -0
- package/static/dist/assets/Toaster-m2sdn0wn.js +1 -0
- package/static/dist/assets/{_app-lrjgufcy.js → _app-dt0pkffy.js} +1 -1
- package/static/dist/assets/{_app.ext._extensionId-k3xitxr1.js → _app.ext._extensionId-hdqpjuex.js} +1 -1
- package/static/dist/assets/_app.groups-moxntnwj.js +1 -0
- package/static/dist/assets/{_app.index-n3otiki0.js → _app.index-cl2gm9em.js} +1 -1
- package/static/dist/assets/{_app.insights-b0mzlh6m.js → _app.insights-bcp4gxdl.js} +1 -1
- package/static/dist/assets/{_app.kanban-d923g7j5.js → _app.kanban-gdd14nha.js} +1 -1
- package/static/dist/assets/{_app.logs-donegue1.js → _app.logs-db8a8laq.js} +1 -1
- package/static/dist/assets/{_app.memory-hdnled08.js → _app.memory-lgdi2669.js} +1 -1
- package/static/dist/assets/{_app.profiles-fumot3jk.js → _app.profiles-dkg4fm1b.js} +1 -1
- package/static/dist/assets/{_app.session._sessionId-crmdl2ux.js → _app.session._sessionId-d7cr52yh.js} +1 -1
- package/static/dist/assets/{_app.settings-jui8iesz.js → _app.settings-k0vrjcz3.js} +1 -1
- package/static/dist/assets/_app.settings._section-jgjqzy3i.js +3 -0
- package/static/dist/assets/{_app.skills-heqcn21m.js → _app.skills-j5pd1f46.js} +1 -1
- package/static/dist/assets/_app.tasks-fmr2hs25.js +1 -0
- package/static/dist/assets/{_app.todos-bl6kk2zq.js → _app.todos-n1rbjgs1.js} +1 -1
- package/static/dist/assets/{_app.workspaces-frvh3o7w.js → _app.workspaces-jabuzmma.js} +1 -1
- package/static/dist/assets/{abnfDiagram-VCTEODGH-dppg3yfx.js → abnfDiagram-VCTEODGH-cwtu63e4.js} +1 -1
- package/static/dist/assets/{architecture-7GRP2DOG-gbajejh3.js → architecture-7GRP2DOG-e8ck2qln.js} +1 -1
- package/static/dist/assets/{architectureDiagram-5GKGNRK7-bzrxyais.js → architectureDiagram-5GKGNRK7-l5uhvf2v.js} +1 -1
- package/static/dist/assets/{archive-yhdyz231.js → archive-mgopz8hd.js} +1 -1
- package/static/dist/assets/{blockDiagram-I7D4REHJ-gmk9koab.js → blockDiagram-I7D4REHJ-lvqprrhm.js} +1 -1
- package/static/dist/assets/{c4Diagram-7LVT6UL2-bfqiqqcz.js → c4Diagram-7LVT6UL2-hyd1bxif.js} +1 -1
- package/static/dist/assets/channel-ce4j80w5.js +1 -0
- package/static/dist/assets/{chunk-4HAMMTFA-i9s6h4wv.js → chunk-4HAMMTFA-d5t6xbqw.js} +1 -1
- package/static/dist/assets/{chunk-75Z2AOVW-gnt6pnso.js → chunk-75Z2AOVW-hnipvlu1.js} +1 -1
- package/static/dist/assets/{chunk-DU6HZSFF-gq439wot.js → chunk-DU6HZSFF-f2bonwqc.js} +1 -1
- package/static/dist/assets/{chunk-F27PBJKO-wvx90pbt.js → chunk-F27PBJKO-imfznb35.js} +1 -1
- package/static/dist/assets/{chunk-GMAD6QVW-mc2gu30k.js → chunk-GMAD6QVW-hvo88yc8.js} +1 -1
- package/static/dist/assets/{chunk-GVQU2GXP-f8fxa2ym.js → chunk-GVQU2GXP-jfhd47pz.js} +1 -1
- package/static/dist/assets/{chunk-IMKFNOWR-lnsl31hj.js → chunk-IMKFNOWR-jvhamece.js} +1 -1
- package/static/dist/assets/{chunk-L3NEJ4N5-kbfdidwu.js → chunk-L3NEJ4N5-jbkt3z9p.js} +1 -1
- package/static/dist/assets/{chunk-OSK3NFVY-dvxsduj6.js → chunk-OSK3NFVY-nnn8mve5.js} +1 -1
- package/static/dist/assets/{chunk-P2QGCYS3-ivo3i1wf.js → chunk-P2QGCYS3-n9so2yzs.js} +1 -1
- package/static/dist/assets/{chunk-POPQ4Y6H-i0gfu0hx.js → chunk-POPQ4Y6H-b8anbnt4.js} +1 -1
- package/static/dist/assets/{chunk-PWAF6VOD-jb0fdyb0.js → chunk-PWAF6VOD-liiad75u.js} +1 -1
- package/static/dist/assets/{chunk-SHT3W25Y-b7ou2xsp.js → chunk-SHT3W25Y-gsw9gt9o.js} +1 -1
- package/static/dist/assets/{chunk-SVP7TREG-e2v7me5v.js → chunk-SVP7TREG-hncvhoeu.js} +1 -1
- package/static/dist/assets/{chunk-TICWLB2K-e5zlai62.js → chunk-TICWLB2K-eirs0boy.js} +1 -1
- package/static/dist/assets/classDiagram-ZZMXUADV-jq8hkfss.js +1 -0
- package/static/dist/assets/classDiagram-v2-VYDZK3BY-jq8hkfss.js +1 -0
- package/static/dist/assets/{completionAudio-c5at041z.js → completionAudio-efhz2964.js} +1 -1
- package/static/dist/assets/{copy-jj3oiw13.js → copy-penlemr7.js} +1 -1
- package/static/dist/assets/{cynefin-OW5HDTMX-n5n1ck70.js → cynefin-OW5HDTMX-lse8sgjo.js} +1 -1
- package/static/dist/assets/{cynefinDiagram-5FMLGOSQ-b33npu4f.js → cynefinDiagram-5FMLGOSQ-lh1lr5jh.js} +1 -1
- package/static/dist/assets/{dagre-GXQ25YYZ-miwvae07.js → dagre-GXQ25YYZ-ksgzal5q.js} +1 -1
- package/static/dist/assets/{diagram-S7CK7UJ4-j8fphsp4.js → diagram-S7CK7UJ4-b1dg2vqu.js} +1 -1
- package/static/dist/assets/{diagram-UQ7AKVKN-5cixo166.js → diagram-UQ7AKVKN-oi4tooeu.js} +1 -1
- package/static/dist/assets/{diagram-VSXAHHWV-ii3bf92m.js → diagram-VSXAHHWV-i200wbxt.js} +1 -1
- package/static/dist/assets/{diagram-VX7I27RA-b3cfgx81.js → diagram-VX7I27RA-klkvwv2v.js} +1 -1
- package/static/dist/assets/{diagram-Z3DM3KII-bey9lqr8.js → diagram-Z3DM3KII-hl0yuaua.js} +1 -1
- package/static/dist/assets/{dist-cb8um5dh.js → dist-f027inn3.js} +4 -4
- package/static/dist/assets/{ebnfDiagram-PWID7BFC-2m4wrnqc.js → ebnfDiagram-PWID7BFC-m0dvixp4.js} +1 -1
- package/static/dist/assets/{erDiagram-RLTQ6QDP-kak5te0n.js → erDiagram-RLTQ6QDP-o4ion00y.js} +1 -1
- package/static/dist/assets/{eventmodeling-NTZA5JFV-ojcc486t.js → eventmodeling-NTZA5JFV-cto4lz9x.js} +1 -1
- package/static/dist/assets/feedbackVideo.worker-JBVT3sDD.js +480 -0
- package/static/dist/assets/flowDiagram-HODETNUW-g3mqinb3.js +1 -0
- package/static/dist/assets/{folder-plus-fk6j7tlv.js → folder-plus-juyoa9t5.js} +1 -1
- package/static/dist/assets/{ganttDiagram-EL5Y4UJY-k6nfmhrh.js → ganttDiagram-EL5Y4UJY-ibcujv8n.js} +1 -1
- package/static/dist/assets/{getPseudoElementBounds-mwj3vqni.js → getPseudoElementBounds-k2g02exy.js} +1 -1
- package/static/dist/assets/{gitGraph-4MIJSDKK-bxq1lbhy.js → gitGraph-4MIJSDKK-imd4cuj0.js} +1 -1
- package/static/dist/assets/{gitGraphDiagram-WWUBYQGX-ehvoankt.js → gitGraphDiagram-WWUBYQGX-j1upe2p9.js} +1 -1
- package/static/dist/assets/{highlighted-body-KPVGNVTW-nr4nfdq7.js → highlighted-body-KPVGNVTW-bba59apd.js} +1 -1
- package/static/dist/assets/{host-dhgqiozp.js → host-b0vy4fmt.js} +1 -1
- package/static/dist/assets/index-f2zqyt9g.js +13 -0
- package/static/dist/assets/index-o1y6ztpz.css +2 -0
- package/static/dist/assets/{info-A6RAGUB7-dtsj0ybw.js → info-A6RAGUB7-hs8nxymo.js} +1 -1
- package/static/dist/assets/{infoDiagram-27XIBGKW-jena90ao.js → infoDiagram-27XIBGKW-bacbjycq.js} +1 -1
- package/static/dist/assets/{ishikawaDiagram-5VMMS53U-kia6bn5u.js → ishikawaDiagram-5VMMS53U-km1x9nh9.js} +1 -1
- package/static/dist/assets/{journeyDiagram-3NMN7TZE-ipsa6icb.js → journeyDiagram-3NMN7TZE-cdog9ipl.js} +1 -1
- package/static/dist/assets/{kanban-definition-UXKFOSKX-moxx59kp.js → kanban-definition-UXKFOSKX-ej65w4ml.js} +1 -1
- package/static/dist/assets/{lazyRouteComponent-i74ujrfk.js → lazyRouteComponent-n94laok7.js} +1 -1
- package/static/dist/assets/{line-lgrkg9no.js → line-hogjbhn0.js} +1 -1
- package/static/dist/assets/{link-2-fp49mwl2.js → link-2-ke0n3wfv.js} +1 -1
- package/static/dist/assets/{link-es18mse1.js → link-cegpbi7n.js} +2 -2
- package/static/dist/assets/{login-o6gfl4gy.js → login-nfckx8au.js} +1 -1
- package/static/dist/assets/mermaid-HWGCJPDP-hd0jj0vp.js +1 -0
- package/static/dist/assets/{mermaid-parser.core-fflovwf2.js → mermaid-parser.core-otfins17.js} +3 -3
- package/static/dist/assets/{mindmap-definition-YA3MSWOX-ic8l9whi.js → mindmap-definition-YA3MSWOX-e5qtwbyi.js} +1 -1
- package/static/dist/assets/{onboarding-bxm7gdrr.js → onboarding-jzh8f4l4.js} +1 -1
- package/static/dist/assets/{packet-AYTQ26CC-ntci3088.js → packet-AYTQ26CC-h02x81cf.js} +1 -1
- package/static/dist/assets/{pegDiagram-XKGWAZYB-e3btz04w.js → pegDiagram-XKGWAZYB-g9y7743p.js} +1 -1
- package/static/dist/assets/{pie-WAS4IAKB-o2dc7l36.js → pie-WAS4IAKB-nk4yj7x1.js} +1 -1
- package/static/dist/assets/{pieDiagram-E7YTZNPT-gro55rrw.js → pieDiagram-E7YTZNPT-gqs39a41.js} +1 -1
- package/static/dist/assets/{presence-lq6m12ga.js → presence-izfzh7wv.js} +1 -1
- package/static/dist/assets/{quadrantDiagram-AXDQQJYC-fxulmd7d.js → quadrantDiagram-AXDQQJYC-im3m9pv6.js} +1 -1
- package/static/dist/assets/queryKeys-i9qbt7i5.js +9 -0
- package/static/dist/assets/{radar-RG4KPBEZ-9pcospra.js → radar-RG4KPBEZ-fzapkstq.js} +1 -1
- package/static/dist/assets/{railroad-74A4TZTK-nzdga12j.js → railroad-74A4TZTK-23sief4p.js} +1 -1
- package/static/dist/assets/{railroad-abnf-HS5TGJTU-ep3ytel0.js → railroad-abnf-HS5TGJTU-ffkapsp5.js} +1 -1
- package/static/dist/assets/{railroad-ebnf-LZEXJU2U-iw7uc1wy.js → railroad-ebnf-LZEXJU2U-oylukhb3.js} +1 -1
- package/static/dist/assets/{railroad-peg-WCYAUIDC-fo3b3gme.js → railroad-peg-WCYAUIDC-oibw2zhx.js} +1 -1
- package/static/dist/assets/{railroadDiagram-O6MQD6OU-lxpxf8f0.js → railroadDiagram-O6MQD6OU-hl0s0erl.js} +1 -1
- package/static/dist/assets/{requirementDiagram-BXWQKSXE-lrozucd2.js → requirementDiagram-BXWQKSXE-ide499vb.js} +1 -1
- package/static/dist/assets/{sankeyDiagram-P5KCCOFB-iusxy9mq.js → sankeyDiagram-P5KCCOFB-jcri7jou.js} +1 -1
- package/static/dist/assets/{sequenceDiagram-WJ2MYXX4-o987q8ti.js → sequenceDiagram-WJ2MYXX4-cwr73aj7.js} +1 -1
- package/static/dist/assets/{share._token-bfw7f9m5.js → share._token-hw9yyjl4.js} +2 -2
- package/static/dist/assets/{sliders-horizontal-l65hoa3x.js → sliders-horizontal-n7u17ayj.js} +1 -1
- package/static/dist/assets/{stateDiagram-D77RDMKH-hh23v7y5.js → stateDiagram-D77RDMKH-k4mrb97t.js} +1 -1
- package/static/dist/assets/stateDiagram-v2-MP3YSRHH-ua4axhbr.js +1 -0
- package/static/dist/assets/{swimlanes-42K2YHIH-gj2t3rm8.js → swimlanes-42K2YHIH-w9p0wqk5.js} +1 -1
- package/static/dist/assets/swimlanesDiagram-VR7AAH4N-om5at2aj.js +8 -0
- package/static/dist/assets/{timeline-definition-24CTP7MA-84s2w2sr.js → timeline-definition-24CTP7MA-cipbmg69.js} +1 -1
- package/static/dist/assets/{toast-gqqcvxiy.js → toast-nskepge4.js} +1 -1
- package/static/dist/assets/{treeView-Q6P3EWNA-cmuj50l7.js → treeView-Q6P3EWNA-dr7af67f.js} +1 -1
- package/static/dist/assets/{treemap-WGGIJYW6-dpjlg0xc.js → treemap-WGGIJYW6-m8eq8ad4.js} +1 -1
- package/static/dist/assets/{tts-jw84jlqy.js → tts-d0hv9xzo.js} +1 -1
- package/static/dist/assets/{useForm-lxzhiqao.js → useForm-l0383y9g.js} +1 -1
- package/static/dist/assets/{useParams-dt6gkoq7.js → useParams-iin0s8xu.js} +1 -1
- package/static/dist/assets/{useSearch-o8t49csk.js → useSearch-ha7eumeg.js} +1 -1
- package/static/dist/assets/{useTranscript-gx9umcc2.js → useTranscript-imk5pwg3.js} +1 -1
- package/static/dist/assets/{vennDiagram-4TSXK5OY-g9g5o8vy.js → vennDiagram-4TSXK5OY-blyr9wa6.js} +1 -1
- package/static/dist/assets/{wardley-WFR3VGLG-ij35obrl.js → wardley-WFR3VGLG-c66wxxyf.js} +1 -1
- package/static/dist/assets/{wardleyDiagram-VM6X3IG4-f9my7q7w.js → wardleyDiagram-VM6X3IG4-h4o81ma2.js} +1 -1
- package/static/dist/assets/{xychartDiagram-S5SC5T6Z-olqx1s1p.js → xychartDiagram-S5SC5T6Z-lh1casu6.js} +1 -1
- package/static/dist/index.html +1 -1
- package/static/dist/sw.js +1 -1
- package/static/dist/assets/AppShell-hvysbd9x.js +0 -8
- package/static/dist/assets/ChatPage-jikwrwfd.js +0 -2
- package/static/dist/assets/Composer-mnke8ss2.js +0 -5
- package/static/dist/assets/ExtensionRoute-igk5h0rj.js +0 -1
- package/static/dist/assets/HubRoute-eooassx4.js +0 -2
- package/static/dist/assets/Markdown-m5pzgvtx.js +0 -2
- package/static/dist/assets/SessionListPanel-brnzacw9.js +0 -1
- package/static/dist/assets/States-msohx3c0.js +0 -1
- package/static/dist/assets/TerminalPanel-bnu5xawo.js +0 -16
- package/static/dist/assets/Toaster-d6col3ch.js +0 -1
- package/static/dist/assets/_app.groups-bt4wdwnd.js +0 -1
- package/static/dist/assets/_app.settings._section-do84hsqw.js +0 -3
- package/static/dist/assets/_app.tasks-jiudtutt.js +0 -1
- package/static/dist/assets/channel-grt3rob4.js +0 -1
- package/static/dist/assets/classDiagram-ZZMXUADV-nnsp49jr.js +0 -1
- package/static/dist/assets/classDiagram-v2-VYDZK3BY-nnsp49jr.js +0 -1
- package/static/dist/assets/flowDiagram-HODETNUW-kxr9sicu.js +0 -1
- package/static/dist/assets/index-hx7z4wdj.js +0 -13
- package/static/dist/assets/index-o8ebuc5x.css +0 -2
- package/static/dist/assets/mermaid-HWGCJPDP-n2kbzsao.js +0 -1
- package/static/dist/assets/queryKeys-cnvn6pea.js +0 -9
- package/static/dist/assets/refresh-cw-d14h79x5.js +0 -1
- package/static/dist/assets/stateDiagram-v2-MP3YSRHH-jukr0d8h.js +0 -1
- package/static/dist/assets/swimlanesDiagram-VR7AAH4N-ik9m9j2m.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-n9gs7k4d.js";import{m as t}from"./src-h89s0hs4.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-n9gs7k4d.js";import{m as t}from"./src-h89s0hs4.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-f2bonwqc.js";import"./chunk-75Z2AOVW-hnipvlu1.js";import"./chunk-P2QGCYS3-n9so2yzs.js";import"./chunk-PWAF6VOD-liiad75u.js";import"./chunk-GMAD6QVW-hvo88yc8.js";import"./chunk-4HAMMTFA-d5t6xbqw.js";import{i as l,r as u}from"./chunk-GVQU2GXP-jfhd47pz.js";import{n as d}from"./chunk-L3NEJ4N5-jbkt3z9p.js";import{f,i as p,r as m}from"./dist-f027inn3.js";import{t as h}from"./chunk-5VM5RSS4-br0zxsux.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(h,[2,25]),t(h,[2,26]),t(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},t(g,[2,14],{7:_,11:v}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(h,[2,31]),{21:[1,39]},{22:[1,40]},t(g,[2,13],{7:_,11:v}),t(y,[2,11]),t(y,[2,12]),t(p,[2,15],{24:b}),t(h,[2,30]),{22:[1,41]},t(h,[2,27]),t(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
package/static/dist/assets/{lazyRouteComponent-i74ujrfk.js → lazyRouteComponent-n94laok7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{_ as r,d as i,g as a,h as o,m as s,n as c,t as l,u,x as d}from"./link-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{_ as r,d as i,g as a,h as o,m as s,n as c,t as l,u,x as d}from"./link-cegpbi7n.js";import{la as f}from"./queryKeys-i9qbt7i5.js";import{t as p}from"./useParams-iin0s8xu.js";import{t as m}from"./useSearch-ha7eumeg.js";var h=e(t(),1),g=h.use,_=h.useLayoutEffect,v=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=i:this.parentRoute||r();let c=n?i:t?.path;c&&c!==`/`&&(c=o(c));let l=t?.id||c,u=n?i:s((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(l??``));c===`__root__`&&(c=`/`);let d=u===`__root__`?`/`:c===void 0?this.parentRoute.fullPath:s(this.parentRoute.fullPath+`/`+c);this._path=c,this._id=u,this._fullPath=d,this._to=a(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>u({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},y=class extends v{constructor(e){super(e)}};function b(e){return c({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function x(e){let{select:t,...n}=e;return c({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function S(e){return c({...e,select:t=>e.select?e.select(t.context):t.context})}var C=n(),w=class extends v{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>m({...e,from:this.id}),this.useParams=e=>p({...e,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>b({...e,from:this.id}),this.useNavigate=()=>f({from:this.fullPath}),this.Link=h.forwardRef((e,t)=>(0,C.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function T(e){return new w(e)}function E(){return e=>O(e)}var D=class extends y{constructor(e){super(e),this.useMatch=e=>c({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>m({...e,from:this.id}),this.useParams=e=>p({...e,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>b({...e,from:this.id}),this.useNavigate=()=>f({from:this.fullPath}),this.Link=h.forwardRef((e,t)=>(0,C.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function O(e){return new D(e)}function k(e){return e=>{let t=T(e);return t.isRoot=!1,t}}function A(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(d(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(g)g(a());else throw a()}return h.createElement(r,e)};return o.preload=a,o}export{_ as i,k as n,E as r,A as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./path-b509aej0.js";import{t as n}from"./array-f36850hm.js";import{rt as r}from"./chunk-75Z2AOVW-
|
|
1
|
+
import{n as e,t}from"./path-b509aej0.js";import{t as n}from"./array-f36850hm.js";import{rt as r}from"./chunk-75Z2AOVW-hnipvlu1.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./Toaster-
|
|
1
|
+
import{r as e}from"./Toaster-m2sdn0wn.js";var t={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{oa as r,sa as i}from"./queryKeys-cnvn6pea.js";function a(e){return e[e.length-1]}function o(e,t){return typeof e==`function`?e(t):e}var s=Object.prototype.hasOwnProperty;function c(e){for(let t in e)if(s.call(e,t))return!0;return!1}var l=()=>Object.create(null),u=(e,t)=>d(e,t,!0);function d(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(f(e)&&f(t)))return t;let o=Object.keys(e),c=o.length,u=Object.keys(t),p=u.length;if(i?c!==e.length||p!==t.length||c&&a(o)!==`${c-1}`||p&&a(u)!==`${p-1}`:c!==Object.getOwnPropertyNames(e).length||p!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let m=0,h,g,_;if(i){for(;m<p&&(_=m,g=e[_],h=t[_],h=g===h?g:typeof g==`object`?d(g,h,n,r):h,h===g);m++);if(m===p&&c===p)return e}else{let i=c===p,a=!0;for(;m<p;m++){_=u[m],g=e[_];let c=t[_];h=g===c?g:typeof g==`object`?d(g,c,n,r):c,i&&=h===g&&(o[m]===_||s.call(e,_)),a&&=Object.is(h,c),o[m]=h}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(a)return t}let v=i?u.fill(0):n?l():{};for(let a=0;a<p;a++)_=i?a:u[a],i?(g=e[_],a>m&&(h=t[_],h=g===h?g:typeof g==`object`?d(g,h,n,r):h),v[_]=a<m?g:h):v[_]=o[a];return v}function f(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function p(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!p(a,o,n,r))return!1}return!0}if(f(e)&&f(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!p(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!p(e[a],t[a],n,r)))return!1;return i===0}return!1}function m(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var h=/[\x00-\x1f\x7f"<>`{}]/g;function g(e){return e.replace(h,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function _(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return g(t)}var v=[`http:`,`https:`,`mailto:`,`tel:`];function y(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var b=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function x(e,t){if(!e)return!1;if(b.test(e))return!0;let n=y(e);return n?!t.has(n):!1}var S={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},C=/[&><\u2028\u2029]/g;function w(e){return e.replace(C,e=>S[e])}function T(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=_(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=_(r?e.slice(r):e)}return t}function E(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function D(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function O(){throw Error(`Invariant failed`)}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/+/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function ee(e){return j(A(e))}function M(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function N(e,t,n=`never`,r){if(t.includes(`//`)&&(t=k(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,o;if(r){o=i?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(i)s=e.split(`/`);else{for(e.includes(`//`)&&(e=k(e)),s=e.split(`/`);s.length>1&&a(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(a(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(i?k(c):c)||`/`;return o&&r&&r.set(o,l),l}function P(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function F(e){return e==null||e===``}function te(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function ne(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&F(f)){if(c===`/`&&!d)continue;f=``}o+=c+te(s,f,r)+(d||``)}}return o+a||`/`}function re(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ie(e){return e?.isNotFound===!0}function ae(){try{return sessionStorage}catch{return}}var oe=`tsr-scroll-restoration-v1_3`,se=ae();function ce(){try{return JSON.parse(se?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var I=ce(),le=`data-scroll-restoration-id`,ue=e=>e.state.__TSR_key||e.href;function de(e){let t=e.getAttribute(le);if(t)return`[${le}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var fe=!1,pe=`window`;function me(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function he(e){let t=new Set;for(let n of e){if(n===pe)continue;let e=me(n);e&&t.add(e)}return t}function ge(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||ue,a=new Set,o=e=>{let t=I[e]||={};for(let e of a)e===document?t[pe]={scrollX,scrollY}:e.isConnected&&(t[de(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,fe=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{fe||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{se?.setItem(oe,JSON.stringify(I))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=I[d];if(e){let t=I[u];for(let n in e){if(n===pe){if(s)continue}else{let e=me(n);if(!e||s&&o&&(l??=he(o),l.has(e)))continue}t||=I[u]={},t[n]??=e[n]}}}fe=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=he(o));let t=e&&i&&c,s=r.e?I[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===pe){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=me(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{fe=!1}}))}function _e(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function ve(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ye(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=ve(r):Array.isArray(t)?t.push(ve(r)):n[e]=[t,ve(r)]}return n}var be=/^(?:\s|["[{\d-]|fa|nu|tr)/,xe=Ce(JSON.parse),Se=we(JSON.stringify,JSON.parse);function Ce(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ye(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!be.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function we(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!be.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=_e(e,r);return t?`?${t}`:``}}var Te=`__root__`;function Ee(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function De(e){return e instanceof Response&&!!e.options}function Oe(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var L=4,ke=5;function Ae(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function je(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function R(e,t,n,r,i,o){let s=n,c=t.fullPath??t.from,l=t.options,u=c.length,d=c.endsWith(`/`)?u-1:u,f=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,m,h=o?n-1:0;if(!r||c.includes(`$`)){m=o?.slice()??[];let e=a(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+c.substring(n-(c[n-2]===`/`?2:1),d)],h=u)}for(;s<u;){let e=s,t=c.indexOf(`/`,e),n=t===-1?u:t,a=je(c,e,n);s=n+1;let o;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)o=n;else{let n=z(r);o=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,s=n+1),m&&h<n&&(h<e-1&&m.push(c.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)o=y;else{let e=z(r,t,_,l,g);o=e,v.push(e),v.length===2&&i?.push(v)}}r=o}m&&h<d&&m.push(c.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=z(r,ke);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=z(r,L);r.index=e,r=e}return r.parse=p??null,r.priority=l?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,s,g]}function Me(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function z(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Ne(e,t){let n=z(),r=[];function i(e,t,n,a){let[o,s,c]=R(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(Me);t.masksTree=n,t.flatCache=Oe(1e3)}function Pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Re(e,t.masksTree);return t.flatCache.set(e,r),r}function Fe(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=z(),R(t,{from:e},1,o),i.singleCache.set(a,o)),Re(r,o,n)}function Ie(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Re(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Be(a.route)),t.matchCache.set(r,a),a}function Le(e,t=!1){let n=z(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&O(),i[e.id]=e,o!==0&&e.path){let t=j(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=R(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(Me);return{processedTree:{segmentTree:n,singleCache:Oe(1e3),matchCache:Oe(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Re(e,t,n=!1){let r=e.split(`/`),i=He(e,r,t,n);if(!i)return null;let[a]=ze(e,r,i);return{route:i.node.route,rawParams:a}}function ze(e,t,n){let r=Ve(n.node),i=n.node.data&&Ae(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===L)break;if(u.kind===ke){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ve(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function He(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!a(t),o=i&&e!==`/`,s=t.length-+!!i,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:a,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ke(u,n))continue;if(i.parse){if(!Ge(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==L&&Ke(l,n)&&(l=n);let _=a===s;if(_&&(i.route&&(!o||i.kind===L||i.kind===2)&&Ke(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[a],y;if(_&&i.index){let n={node:i.index,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ge(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&We(f,s))return n;Ke(u,n)&&(u=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:o}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(o){if(_)continue;let e=t.slice(a).join(`/`),i=e.slice(-o.length);if((n.caseSensitive?i:i.toLowerCase())!==o||e.length-o.length<r.length)continue}c.push({node:n,index:s,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];c.push({node:n,index:a,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p,optionals:m+Ue(s,a),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p+Ue(s,a),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&c.push({node:e,index:a+1,skipped:d,statics:f+Ue(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&c.push({node:e,index:a+1,skipped:d,statics:f+Ue(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];c.push({node:t,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function Ue(e,t){return 2**(e-t-1)}function We(e,t){return e===2**(t-1)-1}function Ge(e,t,n){let r,i;try{[r,i]=ze(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ke(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===L)>(e.node.kind===L)||t.node.kind===L==(e.node.kind===L)&&t.node.depth>e.node.depth)))}function qe(e,t,n){let r=ee(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=k(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Je(n,s.input({url:e})),output:({url:e})=>s.output({url:Ye(n,e)})}:s}function Je(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ye(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Xe(e){let t=e;return{get(){return t},set(e){t=o(e,t)}}}function Ze(e){return{get(){return e()}}}function Qe(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{D(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var B=`__TSR_index`,$e=`popstate`,et=`beforeunload`,tt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function nt(e){let t=tt.exec(e);return t?`/`+e.slice(t[0].length):e}function rt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
-
\r`.includes(e)?``:encodeURIComponent(e))),nt(e)}function it(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=st(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[B];i=at(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[B];i=at(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[B]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function at(e,t){let n=ct();return{...t,key:n,__TSR_key:n,[B]:e}}function ot(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>rt(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>st(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ct();t.history.replaceState({[B]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=st(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[B]-l.state[B],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=it({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(et,x,{capture:!0}),t.removeEventListener($e,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(et,x,{capture:!0}),t.addEventListener($e,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function st(e,t){let n=rt(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=ct();t={[B]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function ct(){return(Math.random()+1).toString(36).slice(7)}function lt(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function ut(e){return e.pathname+e.search+e.hash}function dt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function ft(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function pt({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function mt(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function ht(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var gt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:ot()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&ee(n)?qe(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Qe(this.latestLocation,e),ge(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Le(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Ne(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Oe(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:T(e),external:!1,searchStr:o,search:u(t?.search,i),hash:T(r.slice(1)),state:d(t?.state,a)}}let o=Je(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:T(nt(o.pathname)),external:!!this.rewrite&<(o,this.origin),searchStr:c,search:u(t?.search,s),hash:T(o.hash.slice(1)),state:d(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ie(j(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=st(n.href,{});n={...n,to:Je(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,u=N(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),d=this.routesByPath[j(u)],f=u.includes(`$`),p;if(d)p=d._branch??=Be(d);else if(f)p=[];else{let[e,t,n]=this.getMatchedRoutes(u);p=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(p=[...p,this.options.notFoundRoute])}let m=f?d?._interpolation??R(!1,{fullPath:u},0):void 0,h;for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(h??=xt(n.params,e),!c(h))break;h===e&&(h=Object.assign(l(),h));try{Object.assign(h,t(h))}catch{}}}h??=xt(n.params,St(n.params,m)?o()[3]:Ct);let g=e.leaveParams?u:nt(T(m?ne(u,m,h,this.pathParamsDecoder):u)),_=wt(p,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,bt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},y=_.length?Tt(_,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||Ct,b=this.options.stringifySearch(y),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Ct,w=`${g}${b}${S}`,D,O,k=!1;if(this.rewrite){let e=new URL(w,this.origin),t=e.origin,n=Ye(this.rewrite,e);D=ut(e),lt(n,t)?(O=n.href,k=!0):O=nt(ut(n))}else D=E(w),O=D;return{publicHref:O,href:D,pathname:g,search:y,searchStr:b,state:C,hash:x??``,external:k,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Pe(r.pathname,this.processedTree);if(t){let i=Object.assign(l(),t.rawParams),{from:a,params:o,...s}=t.route,c=xt(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return _t(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=j(this.latestLocation.href)===j(n.href)&&p(pt(n.state),pt(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?y(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return _t(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ln(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ft(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&dt(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(b.test(n)||(r=y(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:lt(e,this.origin)||(n=ut(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=V,this.preloadRoute=e=>un(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?N(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Fe(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!p(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?p(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=P(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Se,parseSearch:e.parseSearch??xe,protocolAllowlist:e.protocolAllowlist??v}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=R(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:j(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Et(this.options.notFoundMode,a):void 0,c=Array(a.length),f=this._committed,p=(e,t)=>{let n=f[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?f.find(t=>t.routeId===e.id):void 0},m;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],f,h,g;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=bt(i.options.validateSearch,{...n})??void 0;f={...n,...e},h={...r,...e}}catch(e){let r=e;if(e instanceof vt||(r=new vt(e.message,{cause:e})),t?.throwOnError)throw r;f=n,h={},g=r}}let _=``,v=``;try{_=i.options.loaderDeps?.({search:f})??``,v=_&&JSON.stringify(_)||``}catch(e){if(t?.throwOnError)throw e;g??=e}let y=l(),b=i._interpolation?ne(i.fullPath,i._interpolation,r,this.pathParamsDecoder,y):i.fullPath,x=i.id+b+v,S=p(i,n),C=this._cache.get(x)??(S?.id===x?S:void 0);m=C?._strictParams??Object.assign(y,m);let w;if(!C)try{Dt(i,m)}catch(e){if(w=ie(e)||De(e)?e:new yt(e.message,{cause:e}),t?.throwOnError)throw w}let T=S?`stay`:`enter`,E;if(C)E={...C,cause:T,search:u(S?S.search:C.search,f),_strictSearch:h,searchError:g};else{let e=dt(i)?`pending`:`success`;E={id:x,ssr:i.options.ssr,index:n,routeId:i.id,params:S?.params??m,_strictParams:m,pathname:b,updatedAt:Date.now(),search:S?u(S.search,f):f,_strictSearch:h,searchError:g,status:e,isFetching:!1,error:void 0,paramsError:w,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:S?d(S.loaderDeps,_):_,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let D=s===i.id;E._notFound&&!D&&(E.error=void 0),E._notFound=D,c[n]=E}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?u(n.params,m):m,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=a(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[o,s]=this.getMatchedRoutes(e.pathname),c=a(o),l={...e.search};for(let e of o)try{Object.assign(l,bt(e.options.validateSearch,l))}catch{}let u=n&&n.routeId===c.id&&n.pathname===e.pathname,d;if(u)d=n.params;else{let e=s;for(let t of o)try{Dt(t,e)}catch{}d=e}let f=[o,c.fullPath,l,d];return this.lightweightCache.set(e,[r,f]),f}};async function _t(e,t,{replace:n,ignoreBlocker:r}){if(!x(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var vt=class extends Error{},yt=class extends Error{};function bt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new vt(`Async validation not supported`);if(n.issues)throw new vt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function xt(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function St(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!s.call(e,t[1]))}var Ct=Object.freeze({});function wt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=bt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Tt(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=o(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Et(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Te}function Dt(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ot(e,t){return e.options[t]?.preload?.()}function kt(e,t){let n=Ot(e,`component`),r=Ot(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function V(e,t,n){let r=()=>t===!1?void 0:t?Ot(e,t):kt(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function At(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function jt(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function Mt(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0)t=Math.min(t,Math.max(n+1,r._assetEnd));else if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var H=0,U=1,Nt=2,W=3,G=[4];function K(e){return typeof e[0]==`number`}function q(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function J(e,t){return e.routesById[t.routeId]}function Pt(e,t,n){return De(e)?[W,e]:ie(e)?(e.routeId||=n,[Nt,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[U,e]):[H,e]}function Ft(e,t){let n=Pt(t,!0,e.id);if(n[0]!==U)return n;try{e.options.onError?.(n[1])}catch(t){n=Pt(t,!0,e.id)}return n}function It(e,t,n,r,i){return i[0].signal.aborted?G:Yt(e,t,n,Ft(n,r),i)}async function Lt(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=J(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Y(e,r),[i,It(e,t,u,a,n)]}if(c.aborted)return[i,G];let p=r.paramsError??r.searchError;if(p!==void 0)return Y(e,r),[i,It(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Bt(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?q(a,c):a);if(c.aborted)return[i,G];let s=Yt(e,t,u,Pt(o,!1,u.id),n);if(s[0]!==H)return Y(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Y(e,r),[i,It(e,t,u,a,n)]}finally{r.status=h,Bt(e,r,!1,n[0])}}i()}function Rt(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Y(e,t){let n=t._flight;t._flight=void 0,Rt(e,t,n)?.abort()}function X(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Rt(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function zt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Bt(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Vt(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Ht(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return G;if(!i)return[H,void 0];let l=n._flight;Bt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Vt(e,t,n,r,s,a,!!o[3]))).then(e=>Pt(e,!1,r.id),e=>Pt(e,!0,r.id)).then(t=>(t[0]!==H&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===U&&l[2]?Ft(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Yt(e,t,r,await q(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Y(e,n),G}finally{Bt(e,n,!1,s)}}function Ut(e,t,n){t[0]!==W&&(e.status=`success`,e.error=void 0,t[0]===H?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Wt(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Y(e,r)}function Gt(e,t){return t[0]===U||t[0]===Nt?{...e,status:t[0]===U?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Kt(e,t,n,r,i,a,o){let s=t[1][n],c=J(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Vt(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=G)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,Y(e,s),p=It(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Rt(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ht(e,t,s,c,g,i,a).then(t=>(Ut(s,t,l),t[0]===H&&(m&&!a[0].signal.aborted&&Wt(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[H,s.loaderData]),T=(async()=>{try{let e=V(c,void 0,C);e&&await q(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,It(e,t,c,r,a)]}let r=await w;x&&r[0]===H&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Gt(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Ht(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ut(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Gt(E,e))}async function qt(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=J(e,t[n]);try{let e=V(i,!1);e&&await q(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Z(e,t){t[2]&&=(X(e,t[2].map(e=>e[3])),void 0)}async function Jt(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=W)throw[a,t];!i&&t[0]!==H&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===W)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Yt(e,t,n,r,i,a){for(;r[0]===W;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[W,t]:[W,t,a]}return[W,o,n]}catch(e){r=a?[U,e]:Ft(n,e),a=!0}}return r}async function Xt(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Nt?qt(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=W)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==H&&t[0]<W&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=W){let n=s[1];if(n[0]!==W||n[1].options.reloadDocument||n[2])return Z(e,t),n;c=!0,s=[0,[U,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===U?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=J(e,u);try{await q(i?Promise.resolve().then(()=>V(m,l===U?`errorComponent`:`notFoundComponent`)):Promise.all([V(m),V(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Z(e,t),G}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Z(e,t),X(e,o),p()):u.status=`success`}return t}async function Zt(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=J(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await q(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Qt(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await qt(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Kt(e,i,t,u,f,r,l)},m=await Lt(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Nt){let t=await qt(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=W&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Xt(e,i,u,r[0],Jt(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Jt(i[2],void 0,void 0,h.then(e=>K(e)?0:At(n).length,()=>0))),o=await h}catch(t){if(Z(e,i),t===a&&a.aborted)return G;throw t}return K(o)?o:Zt(e,o,a,r[6]===n.length?r[6]:0)}function $t(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=J(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>$t(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function en(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function tn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!At(t[3]).some(e=>e.id===n[1]))return;let i;try{await q(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function nn(e,t){e._committed=t,e.stores.setMatches(t)}function rn(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=At(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=J(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=mt(n);nn(e,n),X(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),ht(e,i,n,a,l,t)}async function an(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function on(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function sn(e,t,n,r,i){let a=n.map(e=>({...e}));zt(a);for(let t of r)Y(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Xt(e,o,r,t[0],i)}catch(t){throw X(e,a),t}if(K(s))X(e,a),s[0]===W&&e._tx===t&&e._committed===n&&await on(e,t,s);else if(await Zt(e,s,t[0].signal),e._tx!==t||e._committed!==n)X(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Y(e,n))}nn(e,a),X(e,n,a)}}async function cn(e,t,n,r,i,a){let o=await Qt(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(K(o)){let n=o[0]===W&&e._tx===t;if((!n||o[1].options.reloadDocument)&&en(e,t),X(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){en(e,t);return}await on(e,t,o);return}let s=o[1];if(e._tx===t&&await tn(e,t),e._tx!==t){en(e,t),X(e,s),Z(e,o);return}let c=t[2],l=ft(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await tn(e,t),e._tx!==t){en(e,t),X(e,s),Z(e,o);return}let n=await e.startTransition(()=>{en(e,t),rn(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&sn(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):Z(e,o)})}async function ln(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=ft(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await an(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});zt(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){X(e,m),await an(e,n);return}e._preflight=void 0;let g,_=()=>cn(e,y,f,()=>$t(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>an(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Bt(e,t,!1)}n[0].abort(),X(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&$t(e,y),g?.(_()),await y[5]):(X(e,y[3]),y[3]=[],g?.(),await an(e,y))}async function un(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),zt(a),o=(e._preloads??=new Map).set(i,a),s=await Qt(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),X(e,a)),i.abort()}if(!K(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){ie(e)||console.error(e);return}}}var dn=`Error preloading route! ☝️`,Q=e(t(),1);function fn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{jt(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var pn=Q.createContext(void 0),mn=Q.createContext(void 0),hn={};function gn(e,t){let n=Q.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=d(n.current,i):i}}function _n(e){let t=i(),n=Q.useContext(e.from?mn:pn),a=e.from??n,o=t.stores.getMatchStore(a),s=gn(e,t),c=r(o,e=>e?s(e):hn);if(c!==hn)return c;(e.shouldThrow??!0)&&O()}n();function vn(...e){let t=Q.useRef(e),n=t.current;return e.forEach((e,t)=>{p(n[t],e,!1,!0)||(n[t]=e)}),t.current}function yn(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(dn)})}function bn(e,t){let n=typeof e==`string`&&y(e);if(n)return t.has(n)?e:null}function xn(e,t,n,r){let i=M(e.pathname,r),a=M(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!p(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Sn(e,t,n){let r=i(),a=Q.useRef(null),o=Q.useCallback(e=>{if(a.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[b,x,S]=vn(e.search,e.params,s),C=Q.useContext(pn),w=(r.stores._linkScopes??={})[C]??=fn(r,C),[T,E,D]=Q.useMemo(()=>{let t=bn(c,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,s=()=>{let e=w[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=kn(t,r,d),s=d||o&&!y(o)?xn(e,t,S,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,s,S?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[r,w,e.from,e.hash,e.href,c,b,x,e.state,e.mask,e.unsafeRelative,S,d]),[O,k]=Q.useSyncExternalStore(w[1],E,D||E),A=k===void 0&&O,j=d||O===void 0,ee=Q.useRef(!1),M=e.reloadDocument||A||j?!1:l??r.options.defaultPreload,N=u??r.options.defaultPreloadDelay??0,P=Q.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?a.t??=setTimeout(()=>{a.t=void 0,yn(r,T)},N):yn(r,T):t===!1&&On(a)},[r,T,a,M,N]);Q.useEffect(()=>{if(!M)return;M===`render`&&!ee.current&&(ee.current=!0,yn(r,T));let e=!0,t;return M===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),On(a)}},[r,T,M,P,a]);let F=En(e,n);if(F.ref=t?o:a,A)return F.href=A,F;let te=t=>{let n=f??t.currentTarget.getAttribute(`target`);j||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),On(a),r.navigate({...e,_fromLocation:T._fromLocation}))},ne=()=>{M===`intent`&&yn(r,T)},re=()=>{M===`intent`&&On(a)};return F.onClick=$(p,te),F.onBlur=$(m,re),F.onFocus=$(h,P),F.onMouseEnter=$(g,P),F.onMouseLeave=$(_,re),F.onTouchStart=$(v,ne),Dn(F,e,k,O,j,n)}var Cn={},wn={className:`active`},Tn=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function En(e,t){let n={};for(let r in e)Tn.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Dn(e,t,n,r,i,a){let{activeProps:s,inactiveProps:c,className:l,style:u,target:d}=t,f=o(n?s:c,{})??(n?wn:Cn);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var On=e=>{clearTimeout(e.t),e.t=void 0},$=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function kn(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!x(i,t.protocolAllowlist))return i}var An=Q.memo(Q.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Sn(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return Q.createElement(n,r,i)}),jn);function jn(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Tn.has(r)||!p(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}export{O as _,Mt as a,c as b,Xe as c,Te as d,ie as f,j as g,A as h,pn as i,Ze as l,k as m,_n as n,gt as o,re as p,gn as r,ft as s,An as t,Ee as u,p as v,m as x,w as y};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{da as r,ua as i}from"./queryKeys-i9qbt7i5.js";function a(e){return e[e.length-1]}function o(e,t){return typeof e==`function`?e(t):e}var s=Object.prototype.hasOwnProperty;function c(e){for(let t in e)if(s.call(e,t))return!0;return!1}var l=()=>Object.create(null),u=(e,t)=>d(e,t,!0);function d(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(f(e)&&f(t)))return t;let o=Object.keys(e),c=o.length,u=Object.keys(t),p=u.length;if(i?c!==e.length||p!==t.length||c&&a(o)!==`${c-1}`||p&&a(u)!==`${p-1}`:c!==Object.getOwnPropertyNames(e).length||p!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let m=0,h,g,_;if(i){for(;m<p&&(_=m,g=e[_],h=t[_],h=g===h?g:typeof g==`object`?d(g,h,n,r):h,h===g);m++);if(m===p&&c===p)return e}else{let i=c===p,a=!0;for(;m<p;m++){_=u[m],g=e[_];let c=t[_];h=g===c?g:typeof g==`object`?d(g,c,n,r):c,i&&=h===g&&(o[m]===_||s.call(e,_)),a&&=Object.is(h,c),o[m]=h}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(a)return t}let v=i?u.fill(0):n?l():{};for(let a=0;a<p;a++)_=i?a:u[a],i?(g=e[_],a>m&&(h=t[_],h=g===h?g:typeof g==`object`?d(g,h,n,r):h),v[_]=a<m?g:h):v[_]=o[a];return v}function f(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function p(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!p(a,o,n,r))return!1}return!0}if(f(e)&&f(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!p(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!p(e[a],t[a],n,r)))return!1;return i===0}return!1}function m(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var h=/[\x00-\x1f\x7f"<>`{}]/g;function g(e){return e.replace(h,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function _(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return g(t)}var v=[`http:`,`https:`,`mailto:`,`tel:`];function y(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var b=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function x(e,t){if(!e)return!1;if(b.test(e))return!0;let n=y(e);return n?!t.has(n):!1}var S={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},C=/[&><\u2028\u2029]/g;function w(e){return e.replace(C,e=>S[e])}function T(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=_(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=_(r?e.slice(r):e)}return t}function E(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function D(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function O(){throw Error(`Invariant failed`)}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/+/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function ee(e){return j(A(e))}function M(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function N(e,t,n=`never`,r){if(t.includes(`//`)&&(t=k(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,o;if(r){o=i?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(i)s=e.split(`/`);else{for(e.includes(`//`)&&(e=k(e)),s=e.split(`/`);s.length>1&&a(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(a(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(i?k(c):c)||`/`;return o&&r&&r.set(o,l),l}function P(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function F(e){return e==null||e===``}function te(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function ne(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&F(f)){if(c===`/`&&!d)continue;f=``}o+=c+te(s,f,r)+(d||``)}}return o+a||`/`}function re(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ie(e){return e?.isNotFound===!0}function ae(){try{return sessionStorage}catch{return}}var oe=`tsr-scroll-restoration-v1_3`,se=ae();function ce(){try{return JSON.parse(se?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var I=ce(),le=`data-scroll-restoration-id`,ue=e=>e.state.__TSR_key||e.href;function de(e){let t=e.getAttribute(le);if(t)return`[${le}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var fe=!1,pe=`window`;function me(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function he(e){let t=new Set;for(let n of e){if(n===pe)continue;let e=me(n);e&&t.add(e)}return t}function ge(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||ue,a=new Set,o=e=>{let t=I[e]||={};for(let e of a)e===document?t[pe]={scrollX,scrollY}:e.isConnected&&(t[de(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,fe=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{fe||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{se?.setItem(oe,JSON.stringify(I))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=I[d];if(e){let t=I[u];for(let n in e){if(n===pe){if(s)continue}else{let e=me(n);if(!e||s&&o&&(l??=he(o),l.has(e)))continue}t||=I[u]={},t[n]??=e[n]}}}fe=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=he(o));let t=e&&i&&c,s=r.e?I[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===pe){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=me(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{fe=!1}}))}function _e(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function ve(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ye(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=ve(r):Array.isArray(t)?t.push(ve(r)):n[e]=[t,ve(r)]}return n}var be=/^(?:\s|["[{\d-]|fa|nu|tr)/,xe=Ce(JSON.parse),Se=we(JSON.stringify,JSON.parse);function Ce(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ye(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!be.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function we(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!be.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=_e(e,r);return t?`?${t}`:``}}var Te=`__root__`;function Ee(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function De(e){return e instanceof Response&&!!e.options}function Oe(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var L=4,ke=5;function Ae(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function je(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function R(e,t,n,r,i,o){let s=n,c=t.fullPath??t.from,l=t.options,u=c.length,d=c.endsWith(`/`)?u-1:u,f=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,m,h=o?n-1:0;if(!r||c.includes(`$`)){m=o?.slice()??[];let e=a(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+c.substring(n-(c[n-2]===`/`?2:1),d)],h=u)}for(;s<u;){let e=s,t=c.indexOf(`/`,e),n=t===-1?u:t,a=je(c,e,n);s=n+1;let o;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)o=n;else{let n=z(r);o=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,s=n+1),m&&h<n&&(h<e-1&&m.push(c.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)o=y;else{let e=z(r,t,_,l,g);o=e,v.push(e),v.length===2&&i?.push(v)}}r=o}m&&h<d&&m.push(c.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=z(r,ke);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=z(r,L);r.index=e,r=e}return r.parse=p??null,r.priority=l?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,s,g]}function Me(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function z(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Ne(e,t){let n=z(),r=[];function i(e,t,n,a){let[o,s,c]=R(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(Me);t.masksTree=n,t.flatCache=Oe(1e3)}function Pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Re(e,t.masksTree);return t.flatCache.set(e,r),r}function Fe(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=z(),R(t,{from:e},1,o),i.singleCache.set(a,o)),Re(r,o,n)}function Ie(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Re(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Be(a.route)),t.matchCache.set(r,a),a}function Le(e,t=!1){let n=z(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&O(),i[e.id]=e,o!==0&&e.path){let t=j(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=R(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(Me);return{processedTree:{segmentTree:n,singleCache:Oe(1e3),matchCache:Oe(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Re(e,t,n=!1){let r=e.split(`/`),i=He(e,r,t,n);if(!i)return null;let[a]=ze(e,r,i);return{route:i.node.route,rawParams:a}}function ze(e,t,n){let r=Ve(n.node),i=n.node.data&&Ae(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===L)break;if(u.kind===ke){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ve(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function He(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!a(t),o=i&&e!==`/`,s=t.length-+!!i,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:a,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ke(u,n))continue;if(i.parse){if(!Ge(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==L&&Ke(l,n)&&(l=n);let _=a===s;if(_&&(i.route&&(!o||i.kind===L||i.kind===2)&&Ke(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[a],y;if(_&&i.index){let n={node:i.index,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ge(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&We(f,s))return n;Ke(u,n)&&(u=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:o}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(o){if(_)continue;let e=t.slice(a).join(`/`),i=e.slice(-o.length);if((n.caseSensitive?i:i.toLowerCase())!==o||e.length-o.length<r.length)continue}c.push({node:n,index:s,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];c.push({node:n,index:a,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p,optionals:m+Ue(s,a),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p+Ue(s,a),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&c.push({node:e,index:a+1,skipped:d,statics:f+Ue(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&c.push({node:e,index:a+1,skipped:d,statics:f+Ue(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];c.push({node:t,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function Ue(e,t){return 2**(e-t-1)}function We(e,t){return e===2**(t-1)-1}function Ge(e,t,n){let r,i;try{[r,i]=ze(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ke(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===L)>(e.node.kind===L)||t.node.kind===L==(e.node.kind===L)&&t.node.depth>e.node.depth)))}function qe(e,t,n){let r=ee(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=k(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Je(n,s.input({url:e})),output:({url:e})=>s.output({url:Ye(n,e)})}:s}function Je(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ye(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Xe(e){let t=e;return{get(){return t},set(e){t=o(e,t)}}}function Ze(e){return{get(){return e()}}}function Qe(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{D(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var B=`__TSR_index`,$e=`popstate`,et=`beforeunload`,tt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function nt(e){let t=tt.exec(e);return t?`/`+e.slice(t[0].length):e}function rt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
+
\r`.includes(e)?``:encodeURIComponent(e))),nt(e)}function it(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=st(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[B];i=at(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[B];i=at(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[B]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function at(e,t){let n=ct();return{...t,key:n,__TSR_key:n,[B]:e}}function ot(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>rt(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>st(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ct();t.history.replaceState({[B]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=st(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[B]-l.state[B],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=it({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(et,x,{capture:!0}),t.removeEventListener($e,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(et,x,{capture:!0}),t.addEventListener($e,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function st(e,t){let n=rt(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=ct();t={[B]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function ct(){return(Math.random()+1).toString(36).slice(7)}function lt(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function ut(e){return e.pathname+e.search+e.hash}function dt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function ft(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function pt({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function mt(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function ht(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var gt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:ot()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&ee(n)?qe(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Qe(this.latestLocation,e),ge(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Le(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Ne(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Oe(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:T(e),external:!1,searchStr:o,search:u(t?.search,i),hash:T(r.slice(1)),state:d(t?.state,a)}}let o=Je(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:T(nt(o.pathname)),external:!!this.rewrite&<(o,this.origin),searchStr:c,search:u(t?.search,s),hash:T(o.hash.slice(1)),state:d(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ie(j(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=st(n.href,{});n={...n,to:Je(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,u=N(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),d=this.routesByPath[j(u)],f=u.includes(`$`),p;if(d)p=d._branch??=Be(d);else if(f)p=[];else{let[e,t,n]=this.getMatchedRoutes(u);p=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(p=[...p,this.options.notFoundRoute])}let m=f?d?._interpolation??R(!1,{fullPath:u},0):void 0,h;for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(h??=xt(n.params,e),!c(h))break;h===e&&(h=Object.assign(l(),h));try{Object.assign(h,t(h))}catch{}}}h??=xt(n.params,St(n.params,m)?o()[3]:Ct);let g=e.leaveParams?u:nt(T(m?ne(u,m,h,this.pathParamsDecoder):u)),_=wt(p,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,bt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},y=_.length?Tt(_,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||Ct,b=this.options.stringifySearch(y),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Ct,w=`${g}${b}${S}`,D,O,k=!1;if(this.rewrite){let e=new URL(w,this.origin),t=e.origin,n=Ye(this.rewrite,e);D=ut(e),lt(n,t)?(O=n.href,k=!0):O=nt(ut(n))}else D=E(w),O=D;return{publicHref:O,href:D,pathname:g,search:y,searchStr:b,state:C,hash:x??``,external:k,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Pe(r.pathname,this.processedTree);if(t){let i=Object.assign(l(),t.rawParams),{from:a,params:o,...s}=t.route,c=xt(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return _t(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=j(this.latestLocation.href)===j(n.href)&&p(pt(n.state),pt(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?y(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return _t(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ln(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ft(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&dt(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(b.test(n)||(r=y(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:lt(e,this.origin)||(n=ut(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=V,this.preloadRoute=e=>un(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?N(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Fe(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!p(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?p(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=P(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Se,parseSearch:e.parseSearch??xe,protocolAllowlist:e.protocolAllowlist??v}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=R(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:j(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Et(this.options.notFoundMode,a):void 0,c=Array(a.length),f=this._committed,p=(e,t)=>{let n=f[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?f.find(t=>t.routeId===e.id):void 0},m;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],f,h,g;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=bt(i.options.validateSearch,{...n})??void 0;f={...n,...e},h={...r,...e}}catch(e){let r=e;if(e instanceof vt||(r=new vt(e.message,{cause:e})),t?.throwOnError)throw r;f=n,h={},g=r}}let _=``,v=``;try{_=i.options.loaderDeps?.({search:f})??``,v=_&&JSON.stringify(_)||``}catch(e){if(t?.throwOnError)throw e;g??=e}let y=l(),b=i._interpolation?ne(i.fullPath,i._interpolation,r,this.pathParamsDecoder,y):i.fullPath,x=i.id+b+v,S=p(i,n),C=this._cache.get(x)??(S?.id===x?S:void 0);m=C?._strictParams??Object.assign(y,m);let w;if(!C)try{Dt(i,m)}catch(e){if(w=ie(e)||De(e)?e:new yt(e.message,{cause:e}),t?.throwOnError)throw w}let T=S?`stay`:`enter`,E;if(C)E={...C,cause:T,search:u(S?S.search:C.search,f),_strictSearch:h,searchError:g};else{let e=dt(i)?`pending`:`success`;E={id:x,ssr:i.options.ssr,index:n,routeId:i.id,params:S?.params??m,_strictParams:m,pathname:b,updatedAt:Date.now(),search:S?u(S.search,f):f,_strictSearch:h,searchError:g,status:e,isFetching:!1,error:void 0,paramsError:w,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:S?d(S.loaderDeps,_):_,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let D=s===i.id;E._notFound&&!D&&(E.error=void 0),E._notFound=D,c[n]=E}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?u(n.params,m):m,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=a(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[o,s]=this.getMatchedRoutes(e.pathname),c=a(o),l={...e.search};for(let e of o)try{Object.assign(l,bt(e.options.validateSearch,l))}catch{}let u=n&&n.routeId===c.id&&n.pathname===e.pathname,d;if(u)d=n.params;else{let e=s;for(let t of o)try{Dt(t,e)}catch{}d=e}let f=[o,c.fullPath,l,d];return this.lightweightCache.set(e,[r,f]),f}};async function _t(e,t,{replace:n,ignoreBlocker:r}){if(!x(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var vt=class extends Error{},yt=class extends Error{};function bt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new vt(`Async validation not supported`);if(n.issues)throw new vt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function xt(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function St(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!s.call(e,t[1]))}var Ct=Object.freeze({});function wt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=bt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Tt(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=o(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Et(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Te}function Dt(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ot(e,t){return e.options[t]?.preload?.()}function kt(e,t){let n=Ot(e,`component`),r=Ot(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function V(e,t,n){let r=()=>t===!1?void 0:t?Ot(e,t):kt(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function At(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function jt(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function Mt(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0)t=Math.min(t,Math.max(n+1,r._assetEnd));else if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var H=0,U=1,Nt=2,W=3,G=[4];function K(e){return typeof e[0]==`number`}function q(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function J(e,t){return e.routesById[t.routeId]}function Pt(e,t,n){return De(e)?[W,e]:ie(e)?(e.routeId||=n,[Nt,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[U,e]):[H,e]}function Ft(e,t){let n=Pt(t,!0,e.id);if(n[0]!==U)return n;try{e.options.onError?.(n[1])}catch(t){n=Pt(t,!0,e.id)}return n}function It(e,t,n,r,i){return i[0].signal.aborted?G:Yt(e,t,n,Ft(n,r),i)}async function Lt(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=J(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Y(e,r),[i,It(e,t,u,a,n)]}if(c.aborted)return[i,G];let p=r.paramsError??r.searchError;if(p!==void 0)return Y(e,r),[i,It(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Bt(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?q(a,c):a);if(c.aborted)return[i,G];let s=Yt(e,t,u,Pt(o,!1,u.id),n);if(s[0]!==H)return Y(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Y(e,r),[i,It(e,t,u,a,n)]}finally{r.status=h,Bt(e,r,!1,n[0])}}i()}function Rt(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Y(e,t){let n=t._flight;t._flight=void 0,Rt(e,t,n)?.abort()}function X(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Rt(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function zt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Bt(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Vt(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Ht(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return G;if(!i)return[H,void 0];let l=n._flight;Bt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Vt(e,t,n,r,s,a,!!o[3]))).then(e=>Pt(e,!1,r.id),e=>Pt(e,!0,r.id)).then(t=>(t[0]!==H&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===U&&l[2]?Ft(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Yt(e,t,r,await q(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Y(e,n),G}finally{Bt(e,n,!1,s)}}function Ut(e,t,n){t[0]!==W&&(e.status=`success`,e.error=void 0,t[0]===H?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Wt(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Y(e,r)}function Gt(e,t){return t[0]===U||t[0]===Nt?{...e,status:t[0]===U?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Kt(e,t,n,r,i,a,o){let s=t[1][n],c=J(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Vt(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=G)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,Y(e,s),p=It(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Rt(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ht(e,t,s,c,g,i,a).then(t=>(Ut(s,t,l),t[0]===H&&(m&&!a[0].signal.aborted&&Wt(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[H,s.loaderData]),T=(async()=>{try{let e=V(c,void 0,C);e&&await q(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,It(e,t,c,r,a)]}let r=await w;x&&r[0]===H&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Gt(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Ht(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ut(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Gt(E,e))}async function qt(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=J(e,t[n]);try{let e=V(i,!1);e&&await q(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Z(e,t){t[2]&&=(X(e,t[2].map(e=>e[3])),void 0)}async function Jt(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=W)throw[a,t];!i&&t[0]!==H&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===W)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Yt(e,t,n,r,i,a){for(;r[0]===W;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[W,t]:[W,t,a]}return[W,o,n]}catch(e){r=a?[U,e]:Ft(n,e),a=!0}}return r}async function Xt(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Nt?qt(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=W)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==H&&t[0]<W&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=W){let n=s[1];if(n[0]!==W||n[1].options.reloadDocument||n[2])return Z(e,t),n;c=!0,s=[0,[U,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===U?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=J(e,u);try{await q(i?Promise.resolve().then(()=>V(m,l===U?`errorComponent`:`notFoundComponent`)):Promise.all([V(m),V(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Z(e,t),G}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Z(e,t),X(e,o),p()):u.status=`success`}return t}async function Zt(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=J(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await q(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Qt(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await qt(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Kt(e,i,t,u,f,r,l)},m=await Lt(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Nt){let t=await qt(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=W&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Xt(e,i,u,r[0],Jt(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Jt(i[2],void 0,void 0,h.then(e=>K(e)?0:At(n).length,()=>0))),o=await h}catch(t){if(Z(e,i),t===a&&a.aborted)return G;throw t}return K(o)?o:Zt(e,o,a,r[6]===n.length?r[6]:0)}function $t(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=J(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>$t(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function en(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function tn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!At(t[3]).some(e=>e.id===n[1]))return;let i;try{await q(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function nn(e,t){e._committed=t,e.stores.setMatches(t)}function rn(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=At(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=J(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=mt(n);nn(e,n),X(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),ht(e,i,n,a,l,t)}async function an(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function on(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function sn(e,t,n,r,i){let a=n.map(e=>({...e}));zt(a);for(let t of r)Y(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Xt(e,o,r,t[0],i)}catch(t){throw X(e,a),t}if(K(s))X(e,a),s[0]===W&&e._tx===t&&e._committed===n&&await on(e,t,s);else if(await Zt(e,s,t[0].signal),e._tx!==t||e._committed!==n)X(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Y(e,n))}nn(e,a),X(e,n,a)}}async function cn(e,t,n,r,i,a){let o=await Qt(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(K(o)){let n=o[0]===W&&e._tx===t;if((!n||o[1].options.reloadDocument)&&en(e,t),X(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){en(e,t);return}await on(e,t,o);return}let s=o[1];if(e._tx===t&&await tn(e,t),e._tx!==t){en(e,t),X(e,s),Z(e,o);return}let c=t[2],l=ft(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await tn(e,t),e._tx!==t){en(e,t),X(e,s),Z(e,o);return}let n=await e.startTransition(()=>{en(e,t),rn(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&sn(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):Z(e,o)})}async function ln(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=ft(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await an(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});zt(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){X(e,m),await an(e,n);return}e._preflight=void 0;let g,_=()=>cn(e,y,f,()=>$t(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>an(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Bt(e,t,!1)}n[0].abort(),X(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&$t(e,y),g?.(_()),await y[5]):(X(e,y[3]),y[3]=[],g?.(),await an(e,y))}async function un(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),zt(a),o=(e._preloads??=new Map).set(i,a),s=await Qt(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),X(e,a)),i.abort()}if(!K(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){ie(e)||console.error(e);return}}}var dn=`Error preloading route! ☝️`,Q=e(t(),1);function fn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{jt(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var pn=Q.createContext(void 0),mn=Q.createContext(void 0),hn={};function gn(e,t){let n=Q.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=d(n.current,i):i}}function _n(e){let t=r(),n=Q.useContext(e.from?mn:pn),a=e.from??n,o=t.stores.getMatchStore(a),s=gn(e,t),c=i(o,e=>e?s(e):hn);if(c!==hn)return c;(e.shouldThrow??!0)&&O()}n();function vn(...e){let t=Q.useRef(e),n=t.current;return e.forEach((e,t)=>{p(n[t],e,!1,!0)||(n[t]=e)}),t.current}function yn(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(dn)})}function bn(e,t){let n=typeof e==`string`&&y(e);if(n)return t.has(n)?e:null}function xn(e,t,n,r){let i=M(e.pathname,r),a=M(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!p(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Sn(e,t,n){let i=r(),a=Q.useRef(null),o=Q.useCallback(e=>{if(a.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[b,x,S]=vn(e.search,e.params,s),C=Q.useContext(pn),w=(i.stores._linkScopes??={})[C]??=fn(i,C),[T,E,D]=Q.useMemo(()=>{let t=bn(c,i.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},r,a,o,s=()=>{let e=w[0]();if(e!==r){n._fromLocation=e;let t=i.buildLocation(n),o=kn(t,i,d),s=d||o&&!y(o)?xn(e,t,S,i.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),r=e}return a};return[n,s,S?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[i,w,e.from,e.hash,e.href,c,b,x,e.state,e.mask,e.unsafeRelative,S,d]),[O,k]=Q.useSyncExternalStore(w[1],E,D||E),A=k===void 0&&O,j=d||O===void 0,ee=Q.useRef(!1),M=e.reloadDocument||A||j?!1:l??i.options.defaultPreload,N=u??i.options.defaultPreloadDelay??0,P=Q.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?a.t??=setTimeout(()=>{a.t=void 0,yn(i,T)},N):yn(i,T):t===!1&&On(a)},[i,T,a,M,N]);Q.useEffect(()=>{if(!M)return;M===`render`&&!ee.current&&(ee.current=!0,yn(i,T));let e=!0,t;return M===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),On(a)}},[i,T,M,P,a]);let F=En(e,n);if(F.ref=t?o:a,A)return F.href=A,F;let te=t=>{let n=f??t.currentTarget.getAttribute(`target`);j||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),On(a),i.navigate({...e,_fromLocation:T._fromLocation}))},ne=()=>{M===`intent`&&yn(i,T)},re=()=>{M===`intent`&&On(a)};return F.onClick=$(p,te),F.onBlur=$(m,re),F.onFocus=$(h,P),F.onMouseEnter=$(g,P),F.onMouseLeave=$(_,re),F.onTouchStart=$(v,ne),Dn(F,e,k,O,j,n)}var Cn={},wn={className:`active`},Tn=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function En(e,t){let n={};for(let r in e)Tn.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Dn(e,t,n,r,i,a){let{activeProps:s,inactiveProps:c,className:l,style:u,target:d}=t,f=o(n?s:c,{})??(n?wn:Cn);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var On=e=>{clearTimeout(e.t),e.t=void 0},$=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function kn(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!x(i,t.protocolAllowlist))return i}var An=Q.memo(Q.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Sn(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return Q.createElement(n,r,i)}),jn);function jn(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Tn.has(r)||!p(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}export{O as _,Mt as a,c as b,Xe as c,Te as d,ie as f,j as g,A as h,pn as i,Ze as l,k as m,_n as n,gt as o,re as p,gn as r,ft as s,An as t,Ee as u,p as v,m as x,w as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{l as r,o as i,r as a,t as o}from"./runtime-nlxpnegr.js";import{
|
|
1
|
+
import{r as e}from"./rolldown-runtime-bnnw9q4a.js";import{n as t,t as n}from"./jsx-runtime-o40ukmjl.js";import{l as r,o as i,r as a,t as o}from"./runtime-nlxpnegr.js";import{Dn as s,Hn as c,Un as l}from"./queryKeys-i9qbt7i5.js";import{g as u}from"./toast-nskepge4.js";import{$ as d,q as f,r as p}from"./index-f2zqyt9g.js";import{a as m,n as h,r as g}from"./passkeys-ktie3sr0.js";var _=()=>`Sign in`,v=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_btn;return r?r(e):_(e)}),y=()=>`Connection failed`,b=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_conn_failed;return r?r(e):y(e)}),x=()=>`Invalid password`,S=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_invalid_pw;return r?r(e):x(e)}),C=()=>`Password`,w=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_placeholder;return r?r(e):C(e)}),T=()=>`SSO is temporarily unavailable.`,E=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_sso_unavailable;return r?r(e):T(e)}),D=()=>`Enter your password to continue`,O=((e={},t={})=>{let n=t.locale??o(),r=a[n]?.login_subtitle;return r?r(e):D(e)}),k=e(t(),1),A=r();function j(e){if(!e||!e.startsWith(`/`)||e.charAt(1)===`/`||e.charAt(1)===`\\`||/[\x00-\x1f\x7f\s]/.test(e)||e.length>2048)return`./`;let t=e,n=!1;for(let e=0;e<8;e++){let e=(t.split(`?`)[0]??``).split(`#`)[0]?.split(`&`)[0]?.replace(/\/+$/,``)??``;if(e===`/login`||e.endsWith(`/login`))return`./`;let r;try{r=decodeURIComponent(t)}catch{n=!0;break}if(r===t){n=!0;break}t=r}return n?e:`./`}var M=n();function N(e){let t=(0,A.c)(42),{next:n}=e,r=p(),[a,o]=(0,k.useState)(``),[d,_]=(0,k.useState)(null),[y,x]=(0,k.useState)(!1),C;t[0]===n?C=t[1]:(C=j(n),t[0]=n,t[1]=C);let T=C,D;t[2]===T?D=t[3]:(D=()=>{f(),window.location.assign(T===`./`?i(``).href:i(T).href)},t[2]=T,t[3]=D);let N=D,P;t[4]!==N||t[5]!==a?(P=async e=>{e.preventDefault(),_(null),x(!0);try{await s(a),N()}catch(e){let t=e;_(u(t)&&t.kind===`http`?t.message||S():b())}x(!1)},t[4]=N,t[5]=a,t[6]=P):P=t[6];let F=P,I;t[7]===N?I=t[8]:(I=async()=>{if(m()){_(null),x(!0);try{let e=await l(),t=await navigator.credentials.get({publicKey:h(e.publicKey)});t?(await c(g(t)),N()):_(`Passkey cancelled`)}catch(e){let t=e;_(t instanceof Error?t.message:b())}x(!1)}},t[7]=N,t[8]=I);let L=I,R=`api/auth/oidc/start${T===`./`?``:`?next=${encodeURIComponent(T)}`}`,z;t[9]===R?z=t[10]:(z=i(R),t[9]=R,t[10]=z);let B=z.href,V=r.auth.password_auth_enabled&&!r.auth.passwordless_enabled,H;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,M.jsx)(`div`,{className:`brandmark mx-auto mb-3 h-12 w-12`,"aria-hidden":`true`}),t[11]=H):H=t[11];let U;t[12]===r.bot_name?U=t[13]:(U=(0,M.jsx)(`h1`,{className:`mb-1 text-lg font-semibold text-strong`,children:r.bot_name}),t[12]=r.bot_name,t[13]=U);let W;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,M.jsx)(`p`,{className:`mb-6 text-xs text-muted`,children:O()}),t[14]=W):W=t[14];let G;t[15]===F?G=t[16]:(G=e=>{F(e)},t[15]=F,t[16]=G);let K;t[17]!==y||t[18]!==a||t[19]!==V?(K=V&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`label`,{htmlFor:`pw`,className:`sr-only`,children:w()}),(0,M.jsx)(`input`,{id:`pw`,type:`password`,autoComplete:`current-password`,autoFocus:!0,value:a,onChange:e=>o(e.target.value),placeholder:w(),className:`w-full rounded-lg border border-border bg-input px-3.5 py-2.5 text-sm text-text focus:border-accent`}),(0,M.jsx)(`button`,{type:`submit`,disabled:y,className:`w-full rounded-lg border border-accent-bg-strong bg-accent-bg px-3 py-2.5 text-sm font-semibold text-accent-text hover:bg-accent-bg-strong disabled:opacity-60`,children:v()})]}),t[17]=y,t[18]=a,t[19]=V,t[20]=K):K=t[20];let q;t[21]!==r.auth.passkeys_enabled||t[22]!==y||t[23]!==L?(q=r.auth.passkeys_enabled&&m()&&(0,M.jsx)(`button`,{type:`button`,disabled:y,onClick:()=>{L()},className:`w-full rounded-lg border border-warning bg-input px-3 py-2.5 text-sm font-semibold text-warning`,children:`Sign in with passkey`}),t[21]=r.auth.passkeys_enabled,t[22]=y,t[23]=L,t[24]=q):q=t[24];let J;t[25]!==r.auth.oidc_enabled||t[26]!==B?(J=r.auth.oidc_enabled&&(0,M.jsx)(`a`,{id:`oidc-login`,href:B,className:`block w-full rounded-lg border border-success bg-input px-3 py-2.5 text-sm font-semibold text-success no-underline`,children:`Sign in with SSO`}),t[25]=r.auth.oidc_enabled,t[26]=B,t[27]=J):J=t[27];let Y;t[28]!==G||t[29]!==K||t[30]!==q||t[31]!==J?(Y=(0,M.jsxs)(`form`,{onSubmit:G,className:`flex flex-col gap-3`,children:[K,q,J]}),t[28]=G,t[29]=K,t[30]=q,t[31]=J,t[32]=Y):Y=t[32];let X;t[33]===r.auth.oidc_unavailable?X=t[34]:(X=r.auth.oidc_unavailable&&(0,M.jsx)(`p`,{role:`status`,className:`mt-3 text-xs text-muted`,children:E()}),t[33]=r.auth.oidc_unavailable,t[34]=X);let Z;t[35]===d?Z=t[36]:(Z=d&&(0,M.jsx)(`div`,{role:`alert`,className:`mt-3 text-xs text-error`,children:d}),t[35]=d,t[36]=Z);let Q;return t[37]!==Y||t[38]!==X||t[39]!==Z||t[40]!==U?(Q=(0,M.jsx)(`main`,{className:`flex h-full items-center justify-center bg-bg p-4 text-text`,children:(0,M.jsxs)(`div`,{className:`w-80 rounded-2xl border border-border bg-surface p-8 text-center shadow-md`,children:[H,U,W,Y,X,Z]})}),t[37]=Y,t[38]=X,t[39]=Z,t[40]=U,t[41]=Q):Q=t[41],Q}function P(){let e=(0,A.c)(2),{next:t}=d.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,M.jsx)(N,{next:t}),e[0]=t,e[1]=n),n}export{P as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{r as Mermaid}from"./MarkdownRenderer-f10z0l04.js";
|
package/static/dist/assets/{mermaid-parser.core-fflovwf2.js → mermaid-parser.core-otfins17.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./info-A6RAGUB7-
|
|
2
|
-
import{rt as e}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./info-A6RAGUB7-hs8nxymo.js","./chunk-FOHPRMQF-ipewusgj.js","./packet-AYTQ26CC-h02x81cf.js","./pie-WAS4IAKB-nk4yj7x1.js","./treeView-Q6P3EWNA-dr7af67f.js","./architecture-7GRP2DOG-e8ck2qln.js","./gitGraph-4MIJSDKK-imd4cuj0.js","./eventmodeling-NTZA5JFV-cto4lz9x.js","./radar-RG4KPBEZ-fzapkstq.js","./railroad-74A4TZTK-23sief4p.js","./railroad-ebnf-LZEXJU2U-oylukhb3.js","./railroad-abnf-HS5TGJTU-ffkapsp5.js","./railroad-peg-WCYAUIDC-oibw2zhx.js","./treemap-WGGIJYW6-m8eq8ad4.js","./wardley-WFR3VGLG-c66wxxyf.js","./cynefin-OW5HDTMX-lse8sgjo.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{rt as e}from"./index-f2zqyt9g.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-ipewusgj.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
3
3
|
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
4
4
|
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
5
|
-
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-
|
|
5
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}}else n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-hs8nxymo.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]),import.meta.url);$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-h02x81cf.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]),import.meta.url);$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-nk4yj7x1.js`);return{createPieServices:e}},__vite__mapDeps([3,1]),import.meta.url);$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-dr7af67f.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]),import.meta.url);$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-e8ck2qln.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]),import.meta.url);$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-imd4cuj0.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]),import.meta.url);$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-cto4lz9x.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]),import.meta.url);$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-fzapkstq.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]),import.meta.url);$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-23sief4p.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]),import.meta.url);$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-oylukhb3.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]),import.meta.url);$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-ffkapsp5.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]),import.meta.url);$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-oibw2zhx.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]),import.meta.url);$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-m8eq8ad4.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]),import.meta.url);$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-c66wxxyf.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]),import.meta.url);$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-lse8sgjo.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]),import.meta.url);$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
|
|
6
6
|
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
|
|
7
7
|
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-n9gs7k4d.js";import{m as t}from"./src-h89s0hs4.js";import{b as n,et as r,f as i,k as a,rt as o,tt as s,x as c,z as l}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-n9gs7k4d.js";import{m as t}from"./src-h89s0hs4.js";import{b as n,et as r,f as i,k as a,rt as o,tt as s,x as c,z as l}from"./chunk-DU6HZSFF-f2bonwqc.js";import"./chunk-75Z2AOVW-hnipvlu1.js";import"./chunk-P2QGCYS3-n9so2yzs.js";import"./chunk-PWAF6VOD-liiad75u.js";import"./chunk-GMAD6QVW-hvo88yc8.js";import"./chunk-4HAMMTFA-d5t6xbqw.js";import"./chunk-GVQU2GXP-jfhd47pz.js";import"./chunk-L3NEJ4N5-jbkt3z9p.js";import"./chunk-OSK3NFVY-nnn8mve5.js";import{n as u,t as d}from"./dist-f027inn3.js";import{t as f}from"./chunk-XXDRQBXY-jkmnqu65.js";import{t as p}from"./chunk-POPQ4Y6H-b8anbnt4.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|