PageSourceSearch

https://beancount.io/assets/index-YlZldLzZ.js

js beancount.io collected 2026-10-04 04:12:18 UTC 492,611 bytes, 119 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/i18n-flat-modules-Bowg5rB4.js","assets/preload-helper-BXl3LOEh.js","assets/i18n-slices-PKU48MQd.js","assets/vendor-docsearch-o5v3haRC.js","assets/vendor-react-BCsP31rY.js","assets/search-measurement-BeA0vAVP.js","assets/ga-event-Bneip1j1.js","assets/vendor-apollo-DCpmcJYM.js","assets/style-B56nyqXF.css","assets/locale-switcher-menu-BCZOfW-h.js","assets/dropdown-menu-fc-3ppNt.js","assets/floating-ui.utils.dom-BclqNoGV.js","assets/aos-B7b6CNUa.js","assets/aos-CHS_MAEM.css","assets/index-CI_fM2ng.js","assets/home-page-C25dA7ya.js","assets/accordion-BFw_dtvM.js","assets/youtube-facade-BH0oqzoy.js","assets/cta-buttons-CyMl5uFm.js","assets/product-attribution-BUJpAPsz.js","assets/stripe-De-QR7dF.js","assets/check-CJDma0va.js","assets/clock-Cu5AWbog.js","assets/users-CvR9qg3X.js","assets/book-open-CBAJ3wYF.js","assets/braces-CxF6pdNe.js","assets/play-Dj8is419.js","assets/home-page-Y8HFssCy.css","assets/tracking-CTKjVGcH.js","assets/tracking-2KpfhdxQ.js","assets/arrow-right-Dvf-Advv.js","assets/eye-Dki62Wzq.js","assets/git-compare-arrows-Br-Ao6fL.js","assets/file-text-BQ8iBSXx.js","assets/maximize-2-CjyPUvlE.js","assets/tracking-DN_8VRDL.css","assets/terms-of-service-BRTdc7gM.js","assets/static-mdx-page-VmrY7Qb4.js","assets/mdx-content-Crf_7Dv0.js","assets/LedgerEmbed-Cv1BVxDO.js","assets/file-spreadsheet-DWJU_YZZ.js","assets/download-C_whbKip.js","assets/triangle-alert-B8u2yHm8.js","assets/info-CjbwWD_H.js","assets/clipboard-Jad7xD5G.js","assets/copy-DolWipYc.js","assets/smart-import-B-Mrh3v7.js","assets/smart-import-page-BWu-DW-F.js","assets/sparkles-HgYUYOoq.js","assets/lock-Du1KzWeN.js","assets/smart-import-page-DSZcCilP.css","assets/security-p4JO0GSa.js","assets/security-CyBPEwfT.js","assets/horizontal-scroll-region-c9ugGAUK.js","assets/chevron-left-B9WK4ld-.js","assets/chevron-right-BKq67kkV.js","assets/smartphone-iuOxWO54.js","assets/lock-keyhole-BCaHCx7I.js","assets/cloud-xM3nO7QN.js","assets/code-xml-DJFDDJC0.js","assets/mail-DTTHDr3J.js","assets/security-3JycmDxp.css","assets/reads-and-finds-C1tOk-GS.js","assets/curated-reading-page-CpanLBUQ.js","assets/company-pages-16O9vvin.css","assets/curated-resources-CG4o5GwH.css","assets/privacy-policy-C1GiisFs.js","assets/pricing-CHSkes0h.js","assets/pricing-ZGJgdJNB.js","assets/pricing-DYoNiwN0.css","assets/open-ledger-DONouxXZ.js","assets/open-ledger-page-DqupK4mB.js","assets/open-ledger-scoreboard-export-cQfPEK6R.js","assets/open-ledger-scoreboard-Bt34Ds3g.js","assets/discovery-pages-BPeN0thS.css","assets/mcp-BJdqoyPj.js","assets/mcp-page-CQHPFNTX.js","assets/link-2-CmaqlqM3.js","assets/arrow-down-BjWB3QoC.js","assets/terminal-DaKFHEP5.js","assets/git-commit-horizontal-C6oIBUN8.js","assets/server-D9JtLXbY.js","assets/chart-no-axes-combined-D6E93XeJ.js","assets/mcp-page-C5p3FYpy.css","assets/live-prices-Di1_TqUK.js","assets/live-prices-D0nPcjX0.js","assets/refresh-cw-BDfy4BNS.js","assets/check-check-DglJWxVk.js","assets/live-prices-C--Stq3n.css","assets/link-accounts-BEi9IU6o.js","assets/link-accounts-page-BpRb3imV.js","assets/wallet-sNuB5Mzl.js","assets/link-accounts-page-D1YZ-OgB.css","assets/git-D_OIjb9D.js","assets/git-CEG0ZEuO.js","assets/file-code-corner-DeylFRkN.js","assets/plus-BNhzAo6z.js","assets/git-Dk5_Ka0a.css","assets/for-professionals-WKTWp3zs.js","assets/for-professionals-BiQgLBUj.js","assets/audience-page-CSVjbx_i.js","assets/audience-page-C6QEaJv9.css","assets/for-couples-DYFq0noC.js","assets/for-couples-B4QsTZ63.js","assets/for-ai-agents-DhkTT2pJ.js","assets/for-ai-agents-BiqmgyoL.js","assets/agent-campaign-B22oPven.css","assets/fava-D4VjjIo7.js","assets/fava-Dm7jIqoi.js","assets/fava-DhWecnkq.css","assets/faq-C_y4uzwk.js","assets/faq-page-DahYcUC1.js","assets/page-section-index-mqG-adXR.js","assets/info-pages-1gIPO_W4.css","assets/download-C0tr5pWT.js","assets/download-BNvwqdCA.js","assets/download-D48uSPJV.css","assets/demo-Cpb7IPg-.js","assets/demo-BfzM-Um8.js","assets/contact-qq8uKiFy.js","assets/contact-CjxcDHwe.js","assets/changelog-ABtW_mr0.js","assets/ChangelogPage-blkYoNF1.js","assets/reference-landings-DZwNwwJJ.js","assets/reference-landings-D4steKRG.css","assets/rss-DErMrnmZ.js","assets/brand-assets-Dwl30lSB.js","assets/brand-assets-Bf2XNUx7.js","assets/beancount-ios-uAF92yEu.js","assets/beancount-ios-D34Htk-C.js","assets/mobile-app-page-BnTn5ASz.js","assets/mobile-app-page-DRJtzGh1.css","assets/beancount-cloud-CMrtjxmZ.js","assets/beancount-cloud-DX-M2Uv3.js","assets/beancount-cloud-C8mDRcMc.css","assets/beancount-android-er-O5sB7.js","assets/beancount-android-DikmTuyZ.js","assets/bank-sync-BUjlFxSD.js","assets/awesome-plain-text-accounting-C36GiEc8.js","assets/awesome-plain-text-accounting-SdDuyv1P.js","assets/awesome-beancount-DCQQo7Pd.js","assets/assistant-CR06lF7Y.js","assets/ai-assistant-page-DPJRMHM7.js","assets/receipt-DrNIQb57.js","assets/upload-DyH04I6
1Q.js","assets/ai-assistant-page-BpEKOskV.css","assets/ai-CR06lF7Y.js","assets/affiliate-DtasA6Ez.js","assets/affiliate-ECUYIauH.js","assets/about-us-Dyf0mNCO.js","assets/about-us-ClbUxGYA.js","assets/route-C5H-IVzf.js","assets/route-B93aZ4fE.js","assets/index-CsTAq7do.js","assets/tracking-T6FVX8Hu.js","assets/terms-of-service-CtCduCCd.js","assets/smart-import-DUvvIRkb.js","assets/security-g0p3RIaS.js","assets/reads-and-finds-D3ustQjc.js","assets/privacy-policy-uu-M61VI.js","assets/pricing-ka7jJmsm.js","assets/open-ledger-DUeeLeWO.js","assets/mcp-DHwe5cmU.js","assets/live-prices-D0O8OC9H.js","assets/link-accounts-BD4gthyR.js","assets/git-oYbOEPHo.js","assets/for-professionals-fDZDvOd-.js","assets/for-couples-Dzm-9CDX.js","assets/for-ai-agents-CNinF1f9.js","assets/fava-Bfg2NJnm.js","assets/faq-D5fAJdLI.js","assets/download-Dv_SiQ3H.js","assets/demo-b8xANHUh.js","assets/contact-bhTlPLTN.js","assets/changelog-Bydvakiw.js","assets/brand-assets-gekbmmWV.js","assets/beancount-ios-Bh2kkKWS.js","assets/beancount-cloud-BarimGO3.js","assets/beancount-android-rudjdVbk.js","assets/bank-sync-DNLWaxWG.js","assets/awesome-plain-text-accounting-CZSttV4O.js","assets/awesome-beancount-BBXnKDcR.js","assets/assistant-BMCzzbij.js","assets/ai-BMCzzbij.js","assets/affiliate-DsAT5ivK.js","assets/about-us-CTtZGWy0.js","assets/route-EEcp2Rcs.js","assets/route-ttT-tnqq.js","assets/index-DfkDa8xI.js","assets/index-v_0amZ69.js","assets/icons-Dlx_EjsH.js","assets/percent-DncrA84k.js","assets/tools-CvkLmsW7.css","assets/index-CL9oGFHb.
1js","assets/index-eNV5nOyp.js","assets/founder-resources-Dwbtmr7C.css","assets/index-C2tBBMvr.js","assets/compare-hub-58RUXHer.js","assets/compare-C7m1V_V9.css","assets/index-DwEXvZJz.js","assets/index-BI_79AiM.js","assets/year-over-year-growth-calculator-DgaawdYb.js","assets/year-over-year-growth-calculator-DYRGmq6x.js","assets/local-file-Bb8lGmo8.js","assets/straight-line-depreciation-CxXQDxeY.js","assets/strict-csv-DZXVz6pm.js","assets/use-minor-unit-money-ByWzffU2.js","assets/tool-page-shell-VwUxBG6D.js","assets/tools-analytics-BDAvZA_k.js","assets/deferred-page-share-bar-CfV74QMa.js","assets/trial-balance-BUVt64Ab.js","assets/trial-balance-BA2PfhfN.js","assets/trash-2-D7I2vQNM.js","assets/printer-Bgf0agoi.js","assets/circle-alert-DJLqMKH8.js","assets/straight-line-depreciation-calculator-CiL_K36H.js","assets/straight-line-depreciation-calculator-wdR6oEjR.js","assets/use-calculator-share-restore-CwyFdNh7.js","assets/beancount-syntax-DHMNgJyA.js","assets/receivables-turnover-calculator-Dhbw9NJN.js","assets/receivables-turnover-calculator-C8yow3Oz.js","assets/ofx-to-beancount-C65fDyP3.js","assets/ofx-to-beancount-BsayLW5j.js","assets/use-convert-tracking-CmlOt-F3.js","assets/menu-engineering-calculator-DC4djnb1.js","assets/menu-engineering-calculator-Cbz_dPF2.js","assets/margin-markup-calculator-DeQ8nDos.js","assets/margin-markup-calculator-BFTtklJR.js","assets/ledger-to-beancount-Bk9td7nb.js","assets/ledger-to-beancount-BtGhhGbx.js","assets/invoice-email-ClqPjznq.js","assets/invoice-email-BDvZdiZy.js","assets/expense-report-B4_OkA11.js","assets/expense-report-CIV3P_1V.js","assets/debt-coverage-calculator-CeN0oRee.js","assets/debt-coverage-calculator-BP5ZXtq0.js","assets/customer-concentration-report-BFT0wb0B.js","assets/customer-concentration-report-DGFcHYlF.js","assets/break-even-calculator-D8clD0KN.js","assets/break-even-calculator-inQ-E7sC.js","assets/ar-aging-report-fJI_4Fv7.js","assets/ar-aging-report-C27yREPX.js","assets/privacy-policy-generator-F_u1ZhbD.js","assets/privacy-policy-generator-kydqg9op.js","assets/founder-equity-calculator-i8Ft9Xcp.js","assets/founder-equity-calculator-CGoPjyH_.js","assets/founder-calculator-analytics-Dp5CQ74h.js","assets/can-i-afford-to-hire-an-employee-calculator-PNLWyHWy.js","assets/can-i-afford-to-hire-an-employee-calculator-BN4XYP9V.js","assets/_slug-C8GH1eIs.js","assets/guide-9PdxT9Tf.js","assets/ynab-alternatives-D6y63xZJ.js","assets/compare-ynab-alternatives-D2k2F4qT.js","assets/roundup-landing-page-BdEv7YhQ.js","assets/cta-section-Bhqo8S1G.js","assets/share-section-CrC2u2hu.js","assets/roundup-table-section-B6Y9vwT7.js","assets/xero-alternatives-CzoZT3NP.js","assets/compare-xero-alternatives-C_lCN0Ma.js","assets/wave-alternatives-BFRJx7O9.js","assets/compare-wave-alternatives-7WNafPpg.js","assets/quicken-alternatives-BCDWM2S0.js","assets/compare-quicken-alternatives-CA2voJHI.js","assets/quickbooks-alternatives-DfCeYmHf.js","assets/compare-quickbooks-alternatives-BvTvcHvS.js","assets/monarch-alternatives-mzzuYcwp.js","assets/compare-monarch-alternatives-DPKBGe90.js","assets/mint-alternatives-ClEWUz0o.js","assets/compare-mint-alternatives-ZifUMAxi.js","assets/empower-alternatives-CfwZTkVN.js","assets/compare-empower-alternatives-IxWLR8gv.js","assets/copilot-alternatives-BgQ_R1ua.js","assets/compare-copilot-alternatives-D2_O4NlT.js","assets/best-accounting-tools-for-ai-agents-UCHKRcnH.js","assets/compare-best-accounting-tools-for-ai-agents-CmFjBQVj.js","assets/external-link-DL7EVyGd.js","assets/beancount-vs-ynab-DbSELfiq.js","assets/compare-beancount-vs-ynab-ClRoSgM-.js","assets/default-showcase-C-BW2t59.js","assets/beancount-vs-spreadsheets-D0bLNWVl.js","assets/compare-beancount-vs-spreadsheets-DRfBbpoR.js","assets/beancount-vs-simplifi-CHkglpG8.js","assets/compare-beancount-vs-simplifi-0eswdXHA.js","assets/beancount-vs-quickbooks--x84ZV4U.js","assets/compare-beancount-vs-quickbooks-DNeXJVgO.js","assets/beancount-vs-monarch-B6n6SQVk.js","assets/compare-beancount-vs-monarch-D-tbDjxs.js","assets/beancount-vs-mint-CupPK5Kz.js","assets/compare-beancount-vs-mint-DIwTyifZ.js","assets/beancount-vs-ledger-cli-7B8so-fx.js","assets/compare-beancount-vs-ledger-cli-Cq8BCRyD.js","assets/beancount-vs-hledger-Ev4OXzZR.js","assets/compare-beancount-vs-hledger-N5bhAvx3.js","assets/beancount-vs-gnucash-DhzrL9sc.js","assets/compare-beancount-vs-gnucash-0y2aNdGQ.js","assets/beancount-vs-credit-karma-DQeY0aJs.js","assets/compare-beancount-vs-credit-karma-CPRW4q27.js","assets/beancount-vs-actual-budget-BNW1A3t0.js","assets/compare-beancount-vs-actual-budget-k-1Q_JxI.js","assets/_slug-BDdXyBrB.js","assets/compare-detail-page-D_Bh5KDY.js","assets/route-DEBM16Fd.js","assets/index-BQY5BLc7.js","assets/DocsLanding-DmgWQ9UB.js","assets/DocCategoryIcon-6xNRGc93.js","assets/book-marked-BxSmr30A.js","assets/prices-api-reference-DkRczSO3.js","assets/api-reference-page-Dl_ha_YN.js","assets/api-reference-DswN1cqq.js","assets/_-OAqpaYpr.js","assets/DocPage-CAp-y5Tc.js","assets/content-print-Bl8gAsSp.js","assets/clipboard-CuTJniqO.js","assets/ShareBar-Dbmmc6EX.js","assets/content-print-DaEzNsBY.css","assets/index-YxQsSbcv.js","assets/BlogListPage-DlpXlgh8.js","assets/BlogArchivePage-DMtwZ0CJ.js","assets/BlogArchivePage-CAmIxSOo.css","assets/BlogPagination-w7-3LAS3.js","assets/index-CkcVgK9o.js","assets/index-C_-3WdX6.js","assets/index-lMqRcLrb.js","assets/index-DghvBkjQ.js","assets/year-over-year-growth-calculator-CaqXkexs.js","assets/trial-balance-Cib-KKgg.js","assets/straight-line-depreciation-calculator-pjJexq6k.js","assets/receivables-turnover-calculator-CqGtVbYB.js","assets/ofx-to-beancount-B2nK-7Ho.js","assets/menu-engineering-calculator-5wGOS2k0.js","assets/margin-markup-calculator-Hn8Dw_LQ.js","assets/ledger-to-beancount-BPJ9ZK_p.js","assets/invoice-email-Qygal1Ab.js","assets/expense-report-BF1-TzBw.js","assets/debt-coverage-calculator-Dxllo3Sp.js","assets/customer-concentration-report-BHEa07mY.js","assets/break-even-calculator-Cbd47hEP.js","assets/ar-aging-report-DzztEz3C.js","assets/privacy-policy-generator-GEJTTbsa.js","assets/founder-equity-calculator-CuYNbptI.js","assets/can-i-afford-to-hire-an-employee-calculator-4rEQER2i.js","assets/_slug-BWTenO1Q.js","assets/ynab-alternatives-hPRw1oBH.js","assets/xero-alternatives-CgAaUXCB.js","assets/wave-alternatives-eb249ubV.js","assets/quicken-alternatives-Djp0bMrj.js","assets/quickbooks-alternatives-BjrTr-5G.js","assets/monarch-alternatives-DdGjU7zG.js","assets/mint-alternatives-qCvEs47W.js","assets/empower-alternatives-S9IDNYcx.js","assets/copilot-alternatives-DvLRU5Tq.js","assets/best-accounting-tools-for-ai-agents-B3MAUlij.js","assets/beancount-vs-ynab-DVGjyInG.js","assets/beancount-vs-spreadsheets-DyxAYKp9.js","assets/beancount-vs-simplifi-BV0pD149.js","assets/beancount-vs-quickbooks-x78zzHP2.js","assets/beancount-vs-monarch-4hSr_2KJ.js","assets/beancount-vs-mint-DUq3KXHz.js","assets/beancount-vs-ledger-cli-4OM5cOzQ.js","assets/beancount-vs-hledger-DLwfgJJV.js","assets/beancount-vs-gnucash-DZL9rHm4.js","assets/beancount-vs-credit-karma-BIlMd1UN.js","assets/beancount-vs-actual-budget-BTnUtYhc.js","assets/_slug-xbV8T10K.js","assets/route-BOGfB07E.js","assets/index-CZv9P1ZX.js","assets/prices-api-reference-6JlLScA6.js","assets/api-reference-CYqgO0Rf.js","assets/_-By8EUsgz.js","assets/index-31o9Cb2R.js","assets/csv-to-beancount.index-D1b6l37y.js","assets/csv-to-beancount-BReHAC2X.js","assets/csv-converter-widget-WS6rtIrP.js","assets/csv-to-beancount._bank-DjnAoMEt.js","assets/csv-bank-lander-BbZR5Is9.js","assets/index-QOhfKCMn.js","assets/index-B8QoXG7x.js","assets/BlogTagsListPage-loDeEg5r.js","assets/index-DJfH4slY.js","assets/BlogAuthorsListPage-IV5Q7fU3.js","assets/user-uP-vs7u7.js","assets/_pageNumber-DnWoJH6z.js","assets/csv-to-beancount.index-C5g2CEBp.js","assets/csv-to-beancount._bank-Cldg7xzK.js","assets/index-4C3UGiDy.js","assets/index-DD45AWIU.js","assets/index-brtNTBeX.js","assets/_pageNumber-eU6ghMwa.js","assets/index-Du-_sq5M.js","assets/index-CbZLYCks.js","assets/_pageNumber-Bi9MuJHc.js","assets/index-D-qWML9P.js","assets/BlogTagPage-mtzhSTRP.js","assets/index-CsqsL1pU.js","assets/BlogAuthorPage-BavHPd8-.js","assets/index-BJI2iaeX.js","assets/index-BmGz3IZw.js","assets/_pageNumber-BoPsO9U-.js","assets/index-3kJMflW-.js","assets/index-CVCqKSFz.js","assets/index-DxJeNcU2.js","assets/index-BwNc0cql.js","assets/_pageNumber-CVBhsgy0.js","assets/_pageNumber-9nj6UEAX.js","assets/_slug-BCuQYw3I.js","assets/_slug-B7xBY43L.js","assets/BlogPostPage-CpHoFVav.js","assets/index-8tUgbRJc.js","assets/index-BEkqe8Ab.js","assets/_pageNumber-CRCHZHTt.js","assets/_pageNumber-BppV8Wix.js","assets/_slug-BORuq-JO.js","assets/_slug-K7SFhS5R.js","assets/_pageNumber-dgLGbRpj.js","assets/_pageNumber-2oQMWjo7.js","assets/_slug-puiyy5Xm.js","assets/_slug-Bmd04gsw.js","assets/_pageNumber-BFmerDkj.js","assets/_pageNumber-C8i2U_xq.js","assets/_slug-BFfFWEGN.js","assets/_slug-r0hqiG-3.js"])))=>i.map(i=>d[i]);
2import{r as S,j as m,a as Go,e as Fi,b as hh,R as fh,f as gh}from"./vendor-react-BCsP31rY.js";import{_ as b}from"./preload-helper-BXl3LOEh.js";import{A as bh,I as yh,H as vh,c as kh}from"./vendor-apollo-DCpmcJYM.js";var $h="__TSS_CONTEXT",za=Symbol.for("TSS_SERVER_FUNCTION"),Yr=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),_h="application/x-tss-framed",it={JSON:0,CHUNK:1,END:2,ERROR:3},wh=/;\s*v=(\d+)/;function Rh(e){const t=e.match(wh);return t?parseInt(t[1],10):void 0}function Ph(e){const t=Rh(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var cr=()=>window.__TSS_START_OPTIONS__;const Oi=!1;function Ho(e){return e[e.length-1]}function Sh(e){return typeof e=="function"}function Wt(e,t){return Sh(e)?e(t):e}const Bi=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;function Mi(e){for(const t in e)if(Bi.call(e,t))return!0;return!1}const xh=()=>Object.create(null),zt=(e,t)=>Pt(e,t,xh);function Pt(e,t,o=()=>({}),n=0){if(e===t)return e;if(n>500)return t;const a=t,r=Zr(e)&&Zr(a);if(!r&&!(Nn(e)&&Nn(a)))return a;const s=r?e:Xr(e);
2if(!s)return a;const i=r?a:Xr(a);if(!i)return a;const c=s.length,l=i.length,d=r?new Array(l):o();let u=0;for(let h=0;h<l;h++){const f=r?h:i[h],k=e[f],P=a[f];if(k===P){d[f]=k,(r?h<c:Bi.call(e,f))&&u++;continue}if(k===null||P===null||typeof k!="object"||typeof P!="object"){d[f]=P;continue}const g=Pt(k,P,o,n+1);d[f]=g,g===k&&u++}return c===l&&u===c?e:d}function Xr(e){const t=Object.getOwnPropertyNames(e);for(const a of t)if(!Qr.call(e,a))return!1;const o=Object.getOwnPropertySymbols(e);if(o.length===0)return t;const n=t;for(const a of o){if(!Qr.call(e,a))return!1;n.push(a)}return n}function Nn(e){if(!Jr(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const o=t.prototype;return!(!Jr(o)||!o.hasOwnProperty("isPrototypeOf"))}function Jr(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ne(e,t,o){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0,a=e.length;n<a;n++)if(!Ne(e[n],t[n],o))return!1;return!0}if(Nn(e)&&Nn(t)){const n=o?.ignoreUndefined??!0;if(o?.partial){for(const s in t)if((!n||t[s]!==void 0)&&!Ne(e[s],t[s],o))return!1;return!0}let a=0;if(!n)a=Object.keys(e).length;else for(const s in e)e[s]!==void 0&&a++;let r=0;for(const s in t)if((!n||t[s]!==void 0)&&(r++,r>a||!Ne(e[s],t[s],o)))return!1;return a===r}return!1}function to(e){let t,o;const n=new Promise((a,r)=>{t=a,o=r});return n.status="pending",n.resolve=a=>{n.status="resolved",n.value=a,t(a),e?.(a)},n.reject=a=>{n.status="rejected",o(a)},n}function Th(e){return typeof e?.message!="string"?!1: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")}function Wo(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function Eh(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function es(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return Eh(t)}const Ah=["http:","https:","mailto:","tel:"];function In(e,t){if(!e)return!1;try{const o=new URL(e);return!t.has(o.protocol)}catch{return!1}}const Lh={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ch=/[&><\u2028\u2029]/g;function Nh(e){return e.replace(Ch,t=>Lh[t])}function Bo(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let o=0,n="",a;for(;(a=t.exec(e))!==null;)n+=es(e.slice(o,a.index))+a[0],o=t.lastIndex;n=n+es(o?e.slice(o):e);let r=!1;return n.startsWith("//")&&(r=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:r}}function Ih(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Fh(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function Oe(){throw new Error("Invariant failed")}function Yo(e){const t=new Map;let o,n;const a=r=>{r.next&&(r.prev?(r.prev.next=r.next,r.next.prev=r.prev,r.next=void 0,n&&(n.next=r,r.prev=n)):(r.next.prev=void 0,o=r.next,r.next=void 0,n&&(r.prev=n,n.next=r)),n=r)};return{get(r){const s=t.get(r);if(s)return a(s),s.value},set(r,s){if(t.size>=e&&o){const c=o;t.delete(c.key),c.next&&(o=c.next,c.next.prev=void 0),c===n&&(n=void 0)}const i=t.get(r);if(i)i.value=s,a(i);else{const c={key:r,value:s,prev:n};n&&(n.next=c),n=c,o||(o=c),t.set(r,c)}},clear(){t.clear(),o=void 0,n=void 0}}}const St=4,qi=5;function Oh(e){const t=e.indexOf("{");if(t===-1)return null;const o=e.indexOf("}",t);return o===-1||t+1>=e.length?null:[t,o]}function Di(e,t,o=new Uint16Array(6)){const n=e.indexOf("/",t),a=n===-1?e.length:n,r=e.substring(t,a);if(!r||!r.includes("$"))return o[0]=0,o[1]=t,o[2]=t,o[3]=a,o[4]=a,o[5]=a,o;if(r==="$"){const i=e.length;return o[0]=2,o[1]=t,o[2]=t,o[3]=i,o[4]=i,o[5]=i,o}if(r.charCodeAt(0)===36)return o[0]=1,o[1]=t,o[2]=t+1,o[3]=a,o[4]=a,o[5]=a,o;const s=Oh(r);if(s){const[i,c]=s,l=r.charCodeAt(i+1);
2if(l===45){if(i+2<r.length&&r.charCodeAt(i+2)===36){const d=i+3,u=c;if(d<u)return o[0]=3,o[1]=t+i,o[2]=t+d,o[3]=t+u,o[4]=t+c+1,o[5]=a,o}}else if(l===36){const d=i+1,u=i+2;return u===c?(o[0]=2,o[1]=t+i,o[2]=t+d,o[3]=t+u,o[4]=t+c+1,o[5]=e.length,o):(o[0]=1,o[1]=t+i,o[2]=t+u,o[3]=t+c,o[4]=t+c+1,o[5]=a,o)}}return o[0]=0,o[1]=t,o[2]=t,o[3]=a,o[4]=a,o[5]=a,o}function Kn(e,t,o,n,a,r,s){s?.(o);let i=n;{const c=o.fullPath??o.from,l=c.length,d=o.options?.caseSensitive??e,u=o.options?.params?.parse??o.options?.parseParams;for(;i<l;){const f=Di(c,i,t);let k;const P=i,g=f[5];switch(i=g+1,r++,f[0]){case 0:{const _=c.substring(f[2],f[3]);if(d){const x=a.static?.get(_);if(x)k=x;else{a.static??=new Map;const C=Yt(o.fullPath??o.from);C.parent=a,C.depth=r,k=C,a.static.set(_,C)}}else{const x=_.toLowerCase(),C=a.staticInsensitive?.get(x);if(C)k=C;else{a.staticInsensitive??=new Map;const L=Yt(o.fullPath??o.from);L.parent=a,L.depth=r,k=L,a.staticInsensitive.set(x,L)}}break}case 1:{const _=c.substring(P,f[1]),x=c.substring(f[4],g),C=d&&!!(_||x),L=_?C?_:_.toLowerCase():void 0,F=x?C?x:x.toLowerCase():void 0,U=!u&&a.dynamic?.find(N=>!N.parse&&N.caseSensitive===C&&N.prefix===L&&N.suffix===F);if(U)k=U;else{const N=wa(1,o.fullPath??o.from,C,L,F);k=N,N.depth=r,N.parent=a,a.dynamic??=[],a.dynamic.push(N)}break}case 3:{const _=c.substring(P,f[1]),x=c.substring(f[4],g),C=d&&!!(_||x),L=_?C?_:_.toLowerCase():void 0,F=x?C?x:x.toLowerCase():void 0,U=!u&&a.optional?.find(N=>!N.parse&&N.caseSensitive===C&&N.prefix===L&&N.suffix===F);if(U)k=U;else{const N=wa(3,o.fullPath??o.from,C,L,F);k=N,N.parent=a,N.depth=r,a.optional??=[],a.optional.push(N)}break}case 2:{const _=c.substring(P,f[1]),x=c.substring(f[4],g),C=d&&!!(_||x),L=_?C?_:_.toLowerCase():void 0,F=x?C?x:x.toLowerCase():void 0,U=wa(2,o.fullPath??o.from,C,L,F);k=U,U.parent=a,U.depth=r,a.wildcard??=[],a.wildcard.push(U)}}a=k}if(u&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const f=Yt(o.fullPath??o.from);f.kind=qi,f.parent=a,r++,f.depth=r,a.pathless??=[],a.pathless.push(f),a=f}const h=(o.path||!o.children)&&!o.isRoot;if(h&&c.endsWith("/")){const f=Yt(o.fullPath??o.from);f.kind=St,f.parent=a,r++,f.depth=r,a.index=f,a=f}a.parse=u??null,a.priority=o.options?.params?.priority??0,h&&!a.route&&(a.route=o,a.fullPath=o.fullPath??o.from)}if(o.children)for(const c of o.children)Kn(e,t,c,i,a,r,s)}function _a(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 _t(e){if(e.pathless)for(const t of e.pathless)_t(t);if(e.static)for(const t of e.static.values())_t(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())_t(t);if(e.dynamic?.length){e.dynamic.sort(_a);for(const t of e.dynamic)_t(t)}if(e.optional?.length){e.optional.sort(_a);for(const t of e.optional)_t(t)}if(e.wildcard?.length){e.wildcard.sort(_a);for(const t of e.wildcard)_t(t)}}function Yt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function wa(e,t,o,n,a){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:o,prefix:n,suffix:a}}function Bh(e,t){const o=Yt("/"),n=new Uint16Array(6);for(const a of e)Kn(!1,n,a,1,o,0);_t(o),t.masksTree=o,t.flatCache=Yo(1e3)}function Mh(e,t){e||="/";const o=t.flatCache.get(e);if(o)return o;const n=lr(e,t.masksTree);return t.flatCache.set(e,n),n}function qh(e,t,o,n,a){e||="/",n||="/";const r=t?`case\0${e}`:e;let s=a.singleCache.get(r);return s||(s=Yt("/"),Kn(t,new Uint16Array(6),{from:e},1,s,0),a.singleCache.set(r,s)),lr(n,s,o)}function Dh(e,t,o=!1){const n=o?e:`nofuzz\0${e}`,a=t.matchCache.get(n);if(a!==void 0)return a;e||="/";let r;try{r=lr(e,t.segmentTree,o)}catch(s){if(s instanceof URIError)r=null;else throw s}return r&&(r.branch=ji(r.route)),t.matchCache.set(n,r),r}function Uh(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function jh(e,t=!1,o){const n=Yt(e.fullPath),a=new Uint16Array(6),r={},s={};let i=0;return Kn(t,a,e,1,n,0,c=>
2{if(o?.(c,i),c.id in r&&Oe(),r[c.id]=c,i!==0&&c.path){const l=Uh(c.fullPath);(!s[l]||c.fullPath.endsWith("/"))&&(s[l]=c)}i++}),_t(n),{processedTree:{segmentTree:n,singleCache:Yo(1e3),matchCache:Yo(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:s}}function lr(e,t,o=!1){const n=e.split("/"),a=Kh(e,n,t,o);if(!a)return null;const[r]=Ui(e,n,a);return{route:a.node.route,rawParams:r}}function Ui(e,t,o){const n=Vh(o.node);let a=null;const r=Object.create(null);let s=o.extract?.part??0,i=o.extract?.node??0,c=o.extract?.path??0,l=o.extract?.segment??0;for(;i<n.length;s++,i++,c++,l++){const d=n[i];if(d.kind===St)break;if(d.kind===qi){l--,s--,c--;continue}const u=t[s],h=c;if(u&&(c+=u.length),d.kind===1){a??=o.node.fullPath.split("/");const f=a[l],k=d.prefix?.length??0;if(f.charCodeAt(k)===123){const P=d.suffix?.length??0,g=f.substring(k+2,f.length-P-1),_=u.substring(k,u.length-P);r[g]=decodeURIComponent(_)}else{const P=f.substring(1);r[P]=decodeURIComponent(u)}}else if(d.kind===3){if(o.skipped&1<<i){s--,c=h-1;continue}a??=o.node.fullPath.split("/");const f=a[l],k=d.prefix?.length??0,P=d.suffix?.length??0,g=f.substring(k+3,f.length-P-1),_=d.suffix||d.prefix?u.substring(k,u.length-P):u;_&&(r[g]=decodeURIComponent(_))}else if(d.kind===2){const f=d,k=e.substring(h+(f.prefix?.length??0),e.length-(f.suffix?.length??0)),P=decodeURIComponent(k);r["*"]=P,r._splat=P;break}}return o.rawParams&&Object.assign(r,o.rawParams),[r,{part:s,node:i,path:c,segment:l}]}function ji(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Vh(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Kh(e,t,o,n){if(e==="/"&&o.index)return{node:o.index,skipped:0};const a=!Ho(t),r=a&&e!=="/",s=t.length-(a?1:0),i=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let c=null,l=null;for(;i.length;){const d=i.pop(),{node:u,index:h,skipped:f,depth:k,statics:P,dynamics:g,optionals:_}=d;let{extract:x,rawParams:C}=d;if(u.kind===2&&u.route&&!bn(l,d))continue;if(u.parse){if(!ts(e,t,d))continue;C=d.rawParams,x=d.extract}n&&u.route&&u.kind!==St&&bn(c,d)&&(c=d);const L=h===s;if(L&&(u.route&&(!r||u.kind===St||u.kind===2)&&bn(l,d)&&(l=d),!u.optional&&!u.wildcard&&!u.index&&!u.pathless))continue;const F=L?void 0:t[h];let U;if(L&&u.index){const N={node:u.index,index:h,skipped:f,depth:k+1,statics:P,dynamics:g,optionals:_,extract:x,rawParams:C};let E=!0;if(u.index.parse&&(ts(e,t,N)||(E=!1)),E){if(!g&&!_&&!f&&zh(P,s))return N;
2bn(l,N)&&(l=N)}}if(u.wildcard)for(let N=u.wildcard.length-1;N>=0;N--){const E=u.wildcard[N],{prefix:D,suffix:W}=E;if(!(D&&(L||!(E.caseSensitive?F:U??=F.toLowerCase()).startsWith(D)))){if(W){if(L)continue;const H=t.slice(h).join("/").slice(-W.length);if((E.caseSensitive?H:H.toLowerCase())!==W)continue}i.push({node:E,index:s,skipped:f,depth:k+1,statics:P,dynamics:g,optionals:_,extract:x,rawParams:C})}}if(u.optional){const N=f|1<<k,E=k+1;for(let D=u.optional.length-1;D>=0;D--){const W=u.optional[D];i.push({node:W,index:h,skipped:N,depth:E,statics:P,dynamics:g,optionals:_,extract:x,rawParams:C})}if(!L)for(let D=u.optional.length-1;D>=0;D--){const W=u.optional[D],{prefix:H,suffix:Y}=W;if(H||Y){const Be=W.caseSensitive?F:U??=F.toLowerCase();if(H&&!Be.startsWith(H)||Y&&!Be.endsWith(Y))continue}i.push({node:W,index:h+1,skipped:f,depth:E,statics:P,dynamics:g,optionals:_+gn(s,h),extract:x,rawParams:C})}}if(!L&&u.dynamic&&F)for(let N=u.dynamic.length-1;N>=0;N--){const E=u.dynamic[N],{prefix:D,suffix:W}=E;if(D||W){const H=E.caseSensitive?F:U??=F.toLowerCase();if(D&&!H.startsWith(D)||W&&!H.endsWith(W))continue}i.push({node:E,index:h+1,skipped:f,depth:k+1,statics:P,dynamics:g+gn(s,h),optionals:_,extract:x,rawParams:C})}if(!L&&u.staticInsensitive){const N=u.staticInsensitive.get(U??=F.toLowerCase());N&&i.push({node:N,index:h+1,skipped:f,depth:k+1,statics:P+gn(s,h),dynamics:g,optionals:_,extract:x,rawParams:C})}if(!L&&u.static){const N=u.static.get(F);N&&i.push({node:N,index:h+1,skipped:f,depth:k+1,statics:P+gn(s,h),dynamics:g,optionals:_,extract:x,rawParams:C})}if(u.pathless){const N=k+1;for(let E=u.pathless.length-1;E>=0;E--){const D=u.pathless[E];i.push({node:D,index:h,skipped:f,depth:N,statics:P,dynamics:g,optionals:_,extract:x,rawParams:C})}}}if(l)return l;if(n&&c){let d=c.index;for(let h=0;h<c.index;h++)d+=t[h].length;const u=d===e.length?"/":e.slice(d);return c.rawParams??=Object.create(null),c.rawParams["**"]=decodeURIComponent(u),c}return null}function gn(e,t){return 2**(e-t-1)}function zh(e,t){return e===2**(t-1)-1}function ts(e,t,o){let n,a;try{[n,a]=Ui(e,t,o)}catch{return null}if(o.rawParams=n,o.extract=a,!o.node.parse)return!0;try{if(o.node.parse(n)===!1)return null}catch{}return!0}function bn(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===St)>(e.node.kind===St)||t.node.kind===St==(e.node.kind===St)&&t.depth>e.depth))):!0}function Tn(e){return ur(e.filter(t=>t!==void 0).join("/"))}function ur(e){return e.replace(/\/{2,}/g,"/")}function Vi(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function lt(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Ki(e){return lt(Vi(e))}function Fn(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Gh(e,t,o){return Fn(e,o)===Fn(t,o)}function Hh({base:e,to:t,trailingSlash:o="never",cache:n}){const a=t.startsWith("/"),r=!a&&t===".";let s;if(n){s=a?t:r?e:e+"\0"+t;const l=n.get(s);if(l)return l}let i;if(r)i=e.split("/");else if(a)i=t.split("/");else{for(i=e.split("/");i.length>1&&Ho(i)==="";)i.pop();const l=t.split("/");for(let d=0,u=l.length;d<u;d++){const h=l[d];h===""?d?d===u-1&&i.push(h):i=[h]:h===".."?i.pop():h==="."||i.push(h)}}i.length>1&&(Ho(i)===""?o==="never"&&i.pop():o==="always"&&i.push(""));const c=ur(i.join("/"))||"/";return s&&n&&n.set(s,c),c}function Wh(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),o=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(o,"g");return a=>a.replace(n,r=>t.get(r)??r)}function Ra(e,t,o){const n=t[e];return typeof n!="string"?n:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(a=>ns(a,o)).join("/"):ns(n,o)}function os({path:e,params:t,decoder:o,...n}){let a=!1;const r=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:r,isMissingParams:a};const s=e.length;let i=0,c,l="";for(;i<s;){const d=i;c=Di(e,d,c);const u=c[5];if(i=u+1,d===u)continue;const h=c[0];if(h===0){l+="/"+e.substring(d,u);continue}if(h===2){const f=t._splat;r._splat=f,r["*"]=f;
2const k=e.substring(d,c[1]),P=e.substring(c[4],u);if(!f){a=!0,(k||P)&&(l+="/"+k+P);continue}const g=Ra("_splat",t,o);l+="/"+k+g+P;continue}if(h===1){const f=e.substring(c[2],c[3]);!a&&!(f in t)&&(a=!0),r[f]=t[f];const k=e.substring(d,c[1]),P=e.substring(c[4],u),g=Ra(f,t,o)??"undefined";l+="/"+k+g+P;continue}if(h===3){const f=e.substring(c[2],c[3]),k=t[f];if(k==null)continue;r[f]=k;const P=e.substring(d,c[1]),g=e.substring(c[4],u),_=Ra(f,t,o)??"";l+="/"+P+_+g;continue}}return e.endsWith("/")&&(l+="/"),{usedParams:r,interpolatedPath:l||"/",isMissingParams:a}}function ns(e,t){const o=encodeURIComponent(e);return t?.(o)??o}function V(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Re(e){return e?.isNotFound===!0}function zi(e,t=String){const o=new URLSearchParams;for(const n in e){const a=e[n];a!==void 0&&o.set(n,t(a))}return o.toString()}function Pa(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function Yh(e){const t=new URLSearchParams(e),o=Object.create(null);for(const[n,a]of t.entries()){const r=o[n];r==null?o[n]=Pa(a):Array.isArray(r)?r.push(Pa(a)):o[n]=[r,Pa(a)]}return o}const Qh=Jh(JSON.parse),Xh=Zh(JSON.stringify,JSON.parse);function Jh(e){return t=>{t[0]==="?"&&(t=t.substring(1));const o=Yh(t);for(const n in o){const a=o[n];if(typeof a=="string")try{o[n]=e(a)}catch{}}return o}}function Zh(e,t){const o=typeof t=="function";function n(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(o&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const r=zi(a,n);return r?`?${r}`:""}}const Xt="__root__";function tn(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const o=new Response(null,{status:e.statusCode,headers:t});if(o.options=e,e.throw)throw o;return o}function Ie(e){return e instanceof Response&&!!e.options}function Gi(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return tn(e)}const Ga=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ef=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),zn=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Jt=(e,t,o=!0)=>{const n={...e.router.options.context??{}},a=o?t:t-1;for(let r=0;r<=a;r++){const s=e.matches[r];if(!s)continue;const i=e.router.getMatch(s.id);i&&Object.assign(n,i.__routeContext,i.__beforeLoadContext)}return n},as=(e,t)=>{if(!e.matches.length)return;const o=t.routeId,n=e.matches.findIndex(s=>s.routeId===e.router.routeTree.id),a=n>=0?n:0;let r=o?e.matches.findIndex(s=>s.routeId===o):e.firstBadMatchIndex??e.matches.length-1;r<0&&(r=a);for(let s=r;s>=0;s--){const i=e.matches[s];if(e.router.looseRoutesById[i.routeId].options.notFoundComponent)return s}return o?r:a},xt=(e,t,o)=>{if(!(!Ie(o)&&!Re(o)))throw Ie(o)&&o.redirectHandled&&!o.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=o,e.updateMatch(t.id,n=>({...n,status:Ie(o)?"redirected":Re(o)?"notFound":n.status==="pending"?"success":n.status,context:Jt(e,t.index),isFetching:!1,error:o})),Re(o)&&!o.routeId&&(o.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ie(o)&&(e.rendered=!0,o.options._fromLocation=e.location,o.redirectHandled=!0,o=e.router.resolveRedirect(o))),o},Hi=(e,t)=>{const o=e.router.getMatch(t);return!!(!o||o._nonReactive.dehydrated)},rs=(e,t,o)=>{const n=Jt(e,o);e.updateMatch(t,a=>({...a,context:n}))},Mo=(e,t,o)=>{const{id:n,routeId:a}=e.matches[t],r=e.router.looseRoutesById[a];if(o instanceof Promise)throw o;e.firstBadMatchIndex??=t,xt(e,e.router.getMatch(n),o);try{r.options.onError?.(o)}catch(s){o=s,xt(e,e.router.getMatch(n),o)}e.updateMatch(n,s=>(s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loadPromise?.resolve(),{...s,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Ie(o)&&!Re(o)&&(e.serialError??=o)},Wi=(e,t,o,n)=>
2{if(n._nonReactive.pendingTimeout!==void 0)return;const a=o.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!zn(e,t)&&(o.options.loader||o.options.beforeLoad||Qi(o))&&typeof a=="number"&&a!==1/0&&(o.options.pendingComponent??e.router.options?.defaultPendingComponent)){const r=setTimeout(()=>{Ga(e)},a);n._nonReactive.pendingTimeout=r}},tf=(e,t,o)=>{const n=e.router.getMatch(t);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;Wi(e,t,o,n);const a=()=>{const r=e.router.getMatch(t);r.preload&&(r.status==="redirected"||r.status==="notFound")&&xt(e,r,r.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(a):a()},of=(e,t,o,n)=>{const a=e.router.getMatch(t);let r=a._nonReactive.loadPromise;a._nonReactive.loadPromise=to(()=>{r?.resolve(),r=void 0});const{paramsError:s,searchError:i}=a;s&&Mo(e,o,s),i&&Mo(e,o,i),Wi(e,t,n,a);const c=new AbortController;let l=!1;const d=()=>{l||(l=!0,e.updateMatch(t,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:c})))},u=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,L=>({...L,isFetching:!1}))};if(!n.options.beforeLoad){e.router.batch(()=>{d(),u()});return}a._nonReactive.beforeLoadPromise=to();const h={...Jt(e,o,!1),...a.__routeContext},{search:f,params:k,cause:P}=a,g=zn(e,t),_={search:f,abortController:c,params:k,preload:g,context:h,location:e.location,navigate:L=>e.router.navigate({...L,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?"preload":P,matches:e.matches,routeId:n.id,...e.router.options.additionalContext},x=L=>{if(L===void 0){e.router.batch(()=>{d(),u()});return}(Ie(L)||Re(L))&&(d(),Mo(e,o,L)),e.router.batch(()=>{d(),e.updateMatch(t,F=>({...F,__beforeLoadContext:L})),u()})};let C;try{if(C=n.options.beforeLoad(_),Wo(C))return d(),C.catch(L=>{Mo(e,o,L)}).then(x)}catch(L){d(),Mo(e,o,L)}x(C)},nf=(e,t)=>{const{id:o,routeId:n}=e.matches[t],a=e.router.looseRoutesById[n],r=()=>i(),s=()=>of(e,o,t,a),i=()=>{if(Hi(e,o))return;const c=tf(e,o,a);return Wo(c)?c.then(s):s()};return r()},af=(e,t,o)=>{const n=e.router.getMatch(t);if(!n||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const a={ssr:e.router.options.ssr,matches:e.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([o.options.head?.(a),o.options.scripts?.(a),o.options.headers?.(a)]).then(([r,s,i])=>({meta:r?.meta,links:r?.links,headScripts:r?.scripts,headers:i,scripts:s,styles:r?.styles}))},Yi=(e,t,o,n,a)=>{const r=t[n-1],{params:s,loaderDeps:i,abortController:c,cause:l}=e.router.getMatch(o),d=Jt(e,n),u=zn(e,o);return{params:s,deps:i,preload:!!u,parentMatchPromise:r,abortController:c,context:d,location:e.location,navigate:h=>e.router.navigate({...h,_fromLocation:e.location}),cause:u?"preload":l,route:a,...e.router.options.additionalContext}},ss=async(e,t,o,n,a)=>{try{const r=e.router.getMatch(o);try{(!(Oi??e.router.isServer)||r.ssr===!0)&&Qo(a);const s=a.options.loader,i=typeof s=="function"?s:s?.handler,c=i?.(Yi(e,t,o,n,a)),l=!!i&&Wo(c);if((l||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||r._nonReactive.minPendingPromise)&&e.updateMatch(o,u=>({...u,isFetching:"loader"})),i){const u=l?await c:c;xt(e,e.router.getMatch(o),u),u!==void 0&&e.updateMatch(o,h=>({...h,loaderData:u}))}a._lazyPromise&&await a._lazyPromise;const d=r._nonReactive.minPendingPromise;d&&await d,a._componentsPromise&&await a._componentsPromise,e.updateMatch(o,u=>({...u,error:void 0,context:Jt(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(s){let i=s;if(i?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}e.updateMatch(o,l=>({...l,status:l.status==="pending"?"success":l.status,isFetching:!1,context:Jt(e,n)}));return}const c=r._nonReactive.minPendingPromise;c&&await c,Re(s)&&await a.options.notFoundComponent?.preload?.(),xt(e,e.router.getMatch(o),s);try{a.options.onError?.(s)}catch(l){i=l,xt(e,e.router.getMatch(o),l)}!Ie(i)&&!Re(i)&&await Qo(a,["errorComponent"]),e.updateMatch(o,l=>({...l,error:i,context:Jt(e,n),status:"error",isFetching:!1}))}}catch(r){const s=e.router.getMatch(o);s&&(s._nonReactive.loaderPromise=void 0),xt(e,s,r)}},rf=async(e,t,o)=>{async function n(f,k,P,g,_){const x=Date.now()-k.updatedAt,C=f?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,L=_.options.shouldReload,F=typeof L=="function"?L(Yi(e,t,a,o,_)):L,{status:U,invalid:N}=g,E=x>=C&&(!!e.forceStaleReload||g.cause==="enter"||P!==void 0&&P!==g.id);s=U==="success"&&(N||(F??E)),f&&_.options.preload===!1||(s&&!e.sync&&d?(i=!0,(async()=>{try{await ss(e,t,a,o,_);const D=e.router.getMatch(a);D._nonReactive.loaderPromise?.resolve(),D._nonReactive.loadPromise?.resolve(),D._nonReactive.loaderPromise=void 0,D._nonReactive.loadPromise=void 0}catch(D){Ie(D)&&await e.router.navigate(D.options)}})()):U!=="success"||s?await ss(e,t,a,o,_):rs(e,a,o))}const{id:a,routeId:r}=e.matches[o];let s=!1,i=!1;const c=e.router.looseRoutesById[r],l=c.options.loader,d=((typeof l=="function"?void 0:l?.
2staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(Hi(e,a)){if(!e.router.getMatch(a))return e.matches[o];rs(e,a,o)}else{const f=e.router.getMatch(a),k=e.router.stores.matchesId.get()[o],P=(k&&e.router.stores.matchStores.get(k)||null)?.routeId===r?k:e.router.stores.matches.get().find(_=>_.routeId===r)?.id,g=zn(e,a);if(f._nonReactive.loaderPromise){if(f.status==="success"&&!e.sync&&!f.preload&&d)return f;await f._nonReactive.loaderPromise;const _=e.router.getMatch(a),x=_._nonReactive.error||_.error;x&&xt(e,_,x),_.status==="pending"&&await n(g,f,P,_,c)}else{const _=g&&!e.router.stores.matchStores.has(a),x=e.router.getMatch(a);x._nonReactive.loaderPromise=to(),_!==x.preload&&e.updateMatch(a,C=>({...C,preload:_})),await n(g,f,P,x,c)}}const u=e.router.getMatch(a);i||(u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loadPromise?.resolve(),u._nonReactive.loadPromise=void 0),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,i||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const h=i?u.isFetching:!1;
2return h!==u.isFetching||u.invalid!==!1?(e.updateMatch(a,f=>({...f,isFetching:h,invalid:!1})),e.router.getMatch(a)):u};async function is(e){const t=e,o=[];ef(t.router)&&Ga(t);let n;for(let h=0;h<t.matches.length;h++){try{const f=nf(t,h);Wo(f)&&await f}catch(f){if(Ie(f))throw f;if(Re(f))n=f;else if(!t.preload)throw f;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const a=t.firstBadMatchIndex??t.matches.length,r=n&&!t.preload?as(t,n):void 0,s=n&&t.preload?0:r!==void 0?Math.min(r+1,a):a;let i,c;for(let h=0;h<s;h++)o.push(rf(t,o,h));try{await Promise.all(o)}catch{const h=await Promise.allSettled(o);for(const f of h){if(f.status!=="rejected")continue;const k=f.reason;if(Ie(k))throw k;Re(k)?i??=k:c??=k}if(c!==void 0)throw c}const l=i??(n&&!t.preload?n:void 0);let d=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!l&&n&&t.preload)return t.matches;if(l){const h=as(t,l);h===void 0&&Oe();const f=t.matches[h],k=t.router.looseRoutesById[f.routeId],P=t.router.options?.defaultNotFoundComponent;!k.options.notFoundComponent&&P&&(k.options.notFoundComponent=P),l.routeId=f.routeId;const g=f.routeId===t.router.routeTree.id;t.updateMatch(f.id,_=>({..._,...g?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:l},isFetching:!1})),d=h,await Qo(k,["notFoundComponent"])}else if(!t.preload){const h=t.matches[0];h.globalNotFound||t.router.getMatch(h.id)?.globalNotFound&&t.updateMatch(h.id,f=>({...f,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const h=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Qo(h,["errorComponent"])}for(let h=0;h<=d;h++){const{id:f,routeId:k}=t.matches[h],P=t.router.looseRoutesById[k];try{const g=af(t,f,P);if(g){const _=await g;t.updateMatch(f,x=>({...x,..._}))}}catch(g){console.error(`Error executing head for route ${k}:`,g)}}const u=Ga(t);if(Wo(u)&&await u,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function cs(e,t){const o=t.map(n=>e.options[n]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function Qo(e,t=En){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(n=>{const{id:a,...r}=n.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const o=()=>e._componentsLoaded?void 0:t===En?(()=>{if(e._componentsPromise===void 0){const n=cs(e,En);n?e._componentsPromise=n.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():cs(e,t);return e._lazyPromise?e._lazyPromise.then(o):o()}function Qi(e){for(const t of En)if(e.options[t]?.preload)return!0;return!1}const En=["component","errorComponent","pendingComponent","notFoundComponent"];function sf(e){return{input:({url:t})=>{for(const o of e)t=Ha(o,t);return t},output:({url:t})=>{for(let o=e.length-1;o>=0;o--)t=Xi(e[o],t);return t}}}function cf(e){const t=Ki(e.basepath),o=`/${t}`,n=e.caseSensitive?o:o.toLowerCase(),a=`${n}/`;return{input:({url:r})=>{const s=e.caseSensitive?r.pathname:r.pathname.toLowerCase();return s===n?r.pathname="/":s.startsWith(a)&&(r.pathname=r.pathname.slice(o.length)),r},output:({url:r})=>(r.pathname=Tn(["/",t,r.pathname]),r)}}function Ha(e,t){const o=e?.input?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function Xi(e,t){const o=e?.output?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function lf(e,t){const{createMutableStore:o,createReadonlyStore:n,batch:a,init:r}=t,s=new Map,i=new Map,c=new Map,l=o(e.status),d=o(e.loadedAt),u=o(e.isLoading),h=o(e.isTransitioning),f=o(e.location),k=o(e.resolvedLocation),P=o(e.statusCode),g=o(e.redirect),_=o([]),x=o([]),C=o([]),L=n(()=>Sa(s,_.get())),F=n(()=>Sa(i,x.get())),U=n(()=>Sa(c,C.get())),N=n(()=>_.get()[0]),E=n(()=>_.get().some(ge=>s.get(ge)?.get().status==="pending")),D=n(()=>({locationHref:f.get().href,resolvedLocationHref:k.get()?.href,status:l.get()})),W=n(()=>({status:l.get(),loadedAt:d.get(),isLoading:u.get(),isTransitioning:h.get(),matches:L.get(),location:f.get(),resolvedLocation:k.get(),statusCode:P.get(),redirect:g.get()})),H=Yo(64);function Y(ge){let nt=H.get(ge);return nt||(nt=n(()=>{const po=_.get();for(const z of po){const at=s.get(z);if(at&&at.routeId===ge)return at.get()}}),H.set(ge,nt)),nt}const Be={status:l,loadedAt:d,isLoading:u,isTransitioning:h,location:f,resolvedLocation:k,statusCode:P,redirect:g,matchesId:_,pendingIds:x,cachedIds:C,matches:L,pendingMatches:F,cachedMatches:U,firstId:N,hasPending:E,matchRouteDeps:D,matchStores:s,pendingMatchStores:i,cachedMatchStores:c,__store:W,getRouteMatchStore:Y,setMatches:_e,setPending:Ee,setCached:Ae};_e(e.matches),r?.(Be);function _e(ge){xa(ge,s,_,o,a)}function Ee(ge){xa(ge,i,x,o,a)}function Ae(ge){xa(ge,c,C,o,a)}return Be}function Sa(e,t){const o=[];for(const n of t){const a=e.get(n);a&&o.push(a.get())}return o}function xa(e,t,o,n,a){const r=e.map(i=>i.id),s=new Set(r);a(()=>{for(const i of t.keys())s.has(i)||t.delete(i);for(const i of e){const c=t.get(i.id);if(!c){const l=n(i);l.routeId=i.routeId,t.set(i.id,l);continue}c.routeId=i.routeId,c.get()!==i&&c.set(i)}Fh(o.get(),r)||o.set(r)})}var Tt="__TSR_index",ls="popstate",us="beforeunload";function uf(e){let t=e.getLocation();const o=new Set,n=s=>{t=e.getLocation(),o.forEach(i=>
2i({location:t,action:s}))},a=s=>{e.notifyOnIndexChange??!0?n(s):t=e.getLocation()},r=async({task:s,navigateOpts:i,...c})=>{if(i?.ignoreBlocker??!1){s();return}const l=e.getBlockers?.()??[],d=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&l.length&&d)for(const u of l){const h=On(c.path,c.state);if(await u.blockerFn({currentLocation:t,nextLocation:h,action:c.type})){e.onBlocked?.();return}}s()};return{get location(){return t},get length(){return e.getLength()},subscribers:o,subscribe:s=>(o.add(s),()=>{o.delete(s)}),push:(s,i,c)=>{const l=t.state[Tt];i=ds(l+1,i),r({task:()=>{e.pushState(s,i),n({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:s,state:i})},replace:(s,i,c)=>{const l=t.state[Tt];i=ds(l,i),r({task:()=>{e.replaceState(s,i),n({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:s,state:i})},go:(s,i)=>{r({task:()=>{e.go(s),a({type:"GO",index:s})},navigateOpts:i,type:"GO"})},back:s=>{r({task:()=>{e.back(s?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:s,type:"BACK"})},forward:s=>{r({task:()=>{e.forward(s?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:s,type:"FORWARD"})},canGoBack:()=>t.state[Tt]!==0,createHref:s=>e.createHref(s),block:s=>{if(!e.setBlockers)return()=>{};const i=e.getBlockers?.()??[];return e.setBlockers([...i,s]),()=>{const c=e.getBlockers?.()??[];e.setBlockers?.(c.filter(l=>l!==s))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:n}}function ds(e,t){t||(t={});const o=dr();return{...t,key:o,__TSR_key:o,[Tt]:e}}function df(e){const t=typeof document<"u"?window:void 0,o=t.history.pushState,n=t.history.replaceState;let a=[];const r=()=>a,s=E=>a=E,i=(E=>E),c=(()=>On(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const E=dr();t.history.replaceState({[Tt]:0,key:E,__TSR_key:E},"")}let l=c(),d,u=!1,h=!1,f=!1,k=!1;const P=()=>l;let g,_;const x=()=>{g&&(N._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,"",g.href),N._ignoreSubscribers=!1,g=void 0,_=void 0,d=void 0)},C=(E,D,W)=>{const H=i(D);_||(d=l),l=On(D,W),g={href:H,state:W,isPush:g?.isPush||E==="push"},_||(_=Promise.resolve().then(()=>x()))},L=E=>{l=c(),N.notify({type:E})},F=async()=>{if(h){h=!1;return}const E=c(),D=E.state[Tt]-l.state[Tt],W=D===1,H=D===-1,Y=!W&&!H||u;u=!1;const Be=Y?"GO":H?"BACK":"FORWARD",_e=Y?{type:"GO",index:D}:{type:H?"BACK":"FORWARD"};if(f)f=!1;else{const Ee=r();if(typeof document<"u"&&Ee.length){for(const Ae of Ee)if(await Ae.blockerFn({currentLocation:l,nextLocation:E,action:Be})){h=!0,t.history.go(1),N.notify(_e);return}}}l=c(),N.notify(_e)},U=E=>{if(k){k=!1;return}let D=!1;const W=r();if(typeof document<"u"&&W.length)for(const H of W){const Y=H.enableBeforeUnload??!0;if(Y===!0){D=!0;break}if(typeof Y=="function"&&Y()===!0){D=!0;break}}if(D)return E.preventDefault(),E.returnValue=""},N=uf({getLocation:P,getLength:()=>t.history.length,pushState:(E,D)=>C("push",E,D),replaceState:(E,D)=>C("replace",E,D),back:E=>(E&&(f=!0),k=!0,t.history.back()),forward:E=>{E&&(f=!0),k=!0,t.history.forward()},go:E=>{u=!0,t.history.go(E)},createHref:E=>i(E),flush:x,destroy:()=>{t.history.pushState=o,t.history.replaceState=n,t.removeEventListener(us,U,{capture:!0}),t.removeEventListener(ls,F)},onBlocked:()=>{d&&l!==d&&(l=d)},getBlockers:r,setBlockers:s,notifyOnIndexChange:!1});return t.addEventListener(us,U,{capture:!0}),t.addEventListener(ls,F),t.history.pushState=function(...E){const D=o.apply(t.history,E);return N._ignoreSubscribers||L("PUSH"),D},t.history.replaceState=function(...E){const D=n.apply(t.history,E);return N._ignoreSubscribers||L("REPLACE"),D},N}function pf(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function On(e,t){const o=pf(e),n=o.indexOf("#"),a=o.indexOf("?"),r=dr();return{href:o,pathname:o.substring(0,n>0?a>0?Math.min(n,a):n:a>0?a:o.length),hash:n>-1?o.substring(n):"",search:a>-1?o.slice(a,n===-1?void 0:n):"",state:t||{[Tt]:0,key:r,__TSR_key:r}}}function dr(){return(Math.random()+1).toString(36).substring(7)}function mf(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}
2function Ro(e,t){const o=t,n=e;return{fromLocation:o,toLocation:n,pathChanged:o?.pathname!==n.pathname,hrefChanged:o?.href!==n.href,hashChanged:o?.hash!==n.hash}}const Wa=new WeakMap;var hf=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const n=this.options,a=this.basepath??n?.basepath??"/",r=this.basepath===void 0,s=n?.rewrite;if(this.options={...n,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Wh(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=df()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let d;this.resolvePathCache=Yo(1e3),d=this.buildRouteTree(),this.setRoutes(d)}if(!this.stores&&this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=lf(gf(this.latestLocation),d),xf(this)}let i=!1;const c=this.options.basepath??"/",l=this.options.rewrite;if(r||a!==c||s!==l){this.basepath=c;const d=[],u=Ki(c);u&&u!=="/"&&d.push(cf({basepath:c})),l&&d.push(l),this.rewrite=d.length===0?void 0:d.length===1?d[0]:sf(d),this.history&&this.updateLatestLocation(),i=!0}i&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=jh(this.routeTree,this.options.caseSensitive,(n,a)=>{n.init({originalIndex:a})});return this.options.routeMasks&&Bh(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,n)=>{const a={eventType:o,fn:n};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=o=>{this.subscribers.forEach(n=>{n.eventType===o.type&&n.fn(o)})},this.parseLocation=(o,n)=>{const a=({pathname:c,search:l,hash:d,href:u,state:h})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(c)){const _=this.options.parseSearch(l),x=this.options.stringifySearch(_);return{href:c+x+d,publicHref:c+x+d,pathname:Bo(c).path,external:!1,searchStr:x,search:zt(n?.search,_),hash:Bo(d.slice(1)).path,state:Pt(n?.state,h)}}const f=new URL(u,this.origin),k=Ha(this.rewrite,f),P=this.options.parseSearch(k.search),g=this.options.stringifySearch(P);return k.search=g,{href:k.href.replace(k.origin,""),publicHref:u,pathname:Bo(k.pathname).path,external:!!this.rewrite&&k.origin!==this.origin,searchStr:g,search:zt(n?.search,P),hash:Bo(k.hash.slice(1)).path,state:Pt(n?.state,h)}},r=a(o),{__tempLocation:s,__tempKey:i}=r.state;if(s&&(!i||i===this.tempLocationKey)){const c=a(s);return c.state.key=r.state.key,c.state.__TSR_key=r.state.__TSR_key,delete c.state.__tempLocation,{...c,maskedLocation:r}}return r},this.resolvePathWithBase=(o,n)=>Hh({base:o,to:n.includes("//")?ur(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,n,a)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:n},a):this.matchRoutesInternal(o,n),this.getMatchedRoutes=o=>bf({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const n=this.getMatch(o);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}
2),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const n=this.stores.matchStores.get(o)?.get();n&&(n.status==="pending"||n.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const n=(r={})=>{const s=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(s);r.from;const c=r.unsafeRelative==="path"?s.pathname:r.from??i.fullPath,l=r.to?`${r.to}`:void 0,d=i.search,u=Object.assign(Object.create(null),i.params),h=l?.charCodeAt(0)===47?"/":this.resolvePathWithBase(c,"."),f=l?this.resolvePathWithBase(h,l):h,k=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?u:Object.assign(u,Wt(r.params,u)),P=this.routesByPath[lt(f)];let g;if(P)g=this.getRouteBranch(P);else if(f.includes("$"))g=[];else{const H=this.getMatchedRoutes(f);g=H.matchedRoutes,this.options.notFoundRoute&&(!H.foundRoute||H.foundRoute.path!=="/"&&H.routeParams["**"])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&Mi(k))for(const H of g){const Y=H.options.params?.stringify??H.options.stringifyParams;if(Y)try{Object.assign(k,Y(k))}catch{}}const _=o.leaveParams?f:Bo(os({path:f,params:k,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let x=d;if(o._includeValidateSearch&&this.options.search?.strict){const H={};g.forEach(Y=>{if(Y.options.validateSearch)try{Object.assign(H,An(Y.options.validateSearch,{...H,...x}))}catch{}}),x=H}x=yf({search:x,dest:r,destRoutes:g,_includeValidateSearch:o._includeValidateSearch}),x=zt(d,x);const C=this.options.stringifySearch(x),L=r.hash===!0?s.hash:r.hash?Wt(r.hash,s.hash):void 0,F=L?`#${L}`:"";let U=r.state===!0?s.state:r.state?Wt(r.state,s.state):{};U=Pt(s.state,U);const N=`${_}${C}${F}`;let E,D,W=!1;if(this.rewrite){const H=new URL(N,this.origin),Y=Xi(this.rewrite,H);E=H.href.replace(H.origin,""),Y.origin!==this.origin?(D=Y.href,W=!0):D=Y.pathname+Y.search+Y.hash}else E=Ih(N),D=E;return{publicHref:D,href:E,pathname:_,search:x,searchStr:C,state:U,hash:L??"",external:W,unmaskOnReload:r.unmaskOnReload}},a=(r={},s)=>{const i=n(r);let c=s?n(s):void 0;if(!c){const l=Object.create(null);if(this.options.routeMasks){const d=Mh(i.pathname,this.processedTree);if(d){Object.assign(l,d.rawParams);const{from:u,params:h,...f}=d.route,k=h===!1||h===null?Object.create(null):(h??!0)===!0?l:Object.assign(l,Wt(h,l));s={from:o.from,...f,params:k},c=n(s)}}}return c&&(i.maskedLocation=c),i};return o.mask?a(o,{from:o.from,...o.mask}):a(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:n,...a})=>{let r;const s=()=>{const l=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(u=>{a.state[u]=this.latestLocation.state[u]});const d=Ne(a.state,this.latestLocation.state);return l.forEach(u=>{delete a.state[u]}),d},i=lt(this.latestLocation.href)===lt(a.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=to(()=>{c?.resolve(),c=void 0}),i&&s())this.load();else{let{maskedLocation:l,hashScrollIntoView:d,...u}=a;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,r=a.replace?"REPLACE":"PUSH",this.history[r==="REPLACE"?"replace":"push"](u.publicHref,u.state,{ignoreBlocker:n})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:n,hashScrollIntoView:a,viewTransition:r,ignoreBlocker:s,href:i,...c}={})=>{if(i){const u=this.history.location.state.__TSR_index,h=On(i,{__TSR_index:o?u:u+1}),f=new URL(h.pathname,this.origin);c.to=Ha(this.rewrite,f).pathname,c.search=this.options.parseSearch(h.search),c.hash=h.hash.slice(1)}const l=this.buildLocation({...c,_includeValidateSearch:!0});this.pendingBuiltLocation=l;const d=this.commitLocation({...l,viewTransition:r,replace:o,resetScroll:n,hashScrollIntoView:a,ignoreBlocker:s});return Promise.resolve().then(()=>{this.pendingBuiltLocation===l&&(this.pendingBuiltLocation=void 0)}),d},this.navigate=async({to:o,reloadDocument:n,href:a,publicHref:r,...s})=>{let i=!1;if(a)try{new URL(`${a}`),i=!0}catch{}if(i&&!n&&(n=!0),n){if(o!==void 0||!a){const l=this.buildLocation({to:o,...s});a=a??l.publicHref,r=r??l.publicHref}const c=!i&&r?r:a;if(In(c,this.protocolAllowlist))return Promise.resolve();if(!s.ignoreBlocker){const l=this.history.getBlockers?.()??[];for(const d of l)if(d?.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return s.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...s,href:a,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),n=this.stores.cachedMatches.get().filter(a=>!o.some(r=>r.id===a.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(n)})},this.load=async o=>{const n=o?.action?.type;let a,r,s;const i=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(l=>{this.startTransition(async()=>{try{this.beforeLoad(),n?Wa.set(this.latestLocation,n):Wa.delete(this.latestLocation);const d=this.latestLocation,u=Ro(d,this.stores.resolvedLocation.get());
2this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...u}),this.emit({type:"onBeforeLoad",...u}),await is({router:this,sync:o?.sync,forceStaleReload:i.href===d.href,matches:this.stores.pendingMatches.get(),location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,f=null,k=null,P=null;this.batch(()=>{const g=this.stores.pendingMatches.get(),_=g.length,x=this.stores.matches.get();h=_?x.filter(F=>!this.stores.pendingMatchStores.has(F.id)):null;const C=new Set;for(const F of this.stores.pendingMatchStores.values())F.routeId&&C.add(F.routeId);const L=new Set;for(const F of this.stores.matchStores.values())F.routeId&&L.add(F.routeId);f=_?x.filter(F=>!C.has(F.routeId)):null,k=_?g.filter(F=>!L.has(F.routeId)):null,P=_?g.filter(F=>L.has(F.routeId)):x,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(g),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...h.filter(F=>F.status!=="error"&&F.status!=="notFound"&&F.status!=="redirected")]),this.clearExpiredCache())});for(const[g,_]of[[f,"onLeave"],[k,"onEnter"],[P,"onStay"]])if(g)for(const x of g)this.looseRoutesById[x.routeId].options[_]?.(x)})})}})}catch(d){Ie(d)?(a=d,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):Re(d)&&(r=d);const u=a?a.status:r?404:this.stores.matches.get().some(h=>h.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(u),this.stores.redirect.set(a)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(l=>l.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=o=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const r=this.latestLocation,s=this.stores.resolvedLocation.get(),i=typeof n.types=="function"?n.types(Ro(r,s)):n.types;if(i===!1){o();return}a={update:o,types:i}}else a=o;document.startViewTransition(a)}else o()},this.updateMatch=(o,n)=>{this.startTransition(()=>{const a=this.stores.pendingMatchStores.get(o);if(a){a.set(n);return}const r=this.stores.matchStores.get(o);if(r){r.set(n);return}const s=this.stores.cachedMatchStores.get(o);if(s){const i=n(s.get());i.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(c=>c.filter(l=>l!==o)):s.set(i)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const n=a=>o?.filter?.(a)??!0?{...a,invalid:!0,...o?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(n)),this.stores.setCached(this.stores.cachedMatches.get().map(n)),this.stores.setPending(this.stores.pendingMatches.get().map(n))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const n=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const a=o.options._builtLocation??this.buildLocation(o.options),r=this.getParsedLocationHref(a);o.options.href=r,o.headers.set("Location",r)}else if(n)try{const a=new URL(n);if(this.origin&&a.origin===this.origin){const r=a.pathname+a.search+a.hash;o.options.href=r,o.headers.set("Location",r)}}catch{}if(o.options.href&&!o.options._builtLocation&&In(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const n=o?.filter;n!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(a=>!n(a))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),n=a=>{const r=this.looseRoutesById[a.routeId];if(!r.options.loader)return!0;const s=(a.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return a.status==="error"?!0:o-a.updatedAt>=s};this.clearCache({filter:n})},this.loadRouteChunk=Qo,this.preloadRoute=async o=>{const n=o._builtLocation??this.buildLocation(o);let a=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:o});const r=new Set([...this.stores.matchesId.get(),...this.stores.pe
2ndingIds.get()]),s=new Set([...r,...this.stores.cachedIds.get()]),i=a.filter(c=>!s.has(c.id));if(i.length){const c=this.stores.cachedMatches.get();this.stores.setCached([...c,...i])}try{return a=await is({router:this,matches:a,location:n,preload:!0,updateMatch:(c,l)=>{r.has(c)?a=a.map(d=>d.id===c?l(d):d):this.updateMatch(c,l)}}),a}catch(c){if(Ie(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:n});Re(c)||console.error(c);return}},this.matchRoute=(o,n)=>{const a={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},r=this.buildLocation(a);if(n?.pending&&this.stores.status.get()!=="pending")return!1;const s=(n?.pending===void 0?!this.stores.isLoading.get():n.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),i=qh(r.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,s.pathname,this.processedTree);return!i||o.params&&!Ne(i.rawParams,o.params,{partial:!0})?!1:n?.includeSearch??!0?Ne(s.search,r.search,{partial:!0})?i.rawParams:!1:i.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Xh,parseSearch:e.parseSearch??Qh,protocolAllowlist:e.protocolAllowlist??Ah}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:o}){this.routesById=e,this.routesByPath=t,this.processedTree=o;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=ji(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const o=this.getMatchedRoutes(e.pathname),{foundRoute:n,routeParams:a}=o;let{matchedRoutes:r}=o,s=!1;(n?n.path!=="/"&&a["**"]:lt(e.pathname))&&(this.options.notFoundRoute?r=[...r,this.options.notFoundRoute]:s=!0);const i=s?kf(this.options.notFoundMode,r):void 0,c=new Array(r.length),l=new Map;for(const d of this.stores.matchStores.values())d.routeId&&l.set(d.routeId,d.get());for(let d=0;d<r.length;d++){const u=r[d],h=c[d-1];let f,k,P;{const Y=h?.search??e.search,Be=h?._strictSearch??void 0;try{const _e=An(u.options.validateSearch,{...Y})??void 0;f={...Y,..._e},k={...Be,..._e},P=void 0}catch(_e){let Ee=_e;if(_e instanceof Bn||(Ee=new Bn(_e.message,{cause:_e})),t?.throwOnError)throw Ee;f=Y,k={},P=Ee}}const g=u.options.loaderDeps?.({search:f})??"",_=g?JSON.stringify(g):"",{interpolatedPath:x,usedParams:C}=os({path:u.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),L=u.id+x+_,F=this.getMatch(L),U=l.get(u.id),N=F?._strictParams??C;let E;if(!F)try{ps(u,N)}catch(Y){if(Re(Y)||Ie(Y)?E=Y:E=new ff(Y.message,{cause:Y}),t?.throwOnError)throw E}Object.assign(a,N);const D=U?"stay":"enter";let W;if(F)W={...F,cause:D,params:U?.params??a,_strictParams:N,search:zt(U?U.search:F.search,f),_strictSearch:k};else{const Y=u.options.loader||u.options.beforeLoad||u.lazyFn||Qi(u)?"pending":"success";W={id:L,ssr:u.options.ssr,index:d,routeId:u.id,params:U?.params??a,_strictParams:N,pathname:x,updatedAt:Date.now(),search:U?zt(U.search,f):f,_strictSearch:k,searchError:void 0,status:Y,isFetching:!1,error:void 0,paramsError:E,__routeContext:void 0,_nonReactive:{loadPromise:to()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:D,loaderDeps:U?Pt(U.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:u.options.staticData||{},fullPath:u.fullPath}}t?.preload||(W.globalNotFound=i===u.id),W.searchError=P;const H=this.getParentContext(h);
2W.context={...H,...W.__routeContext,...W.__beforeLoadContext},c[d]=W}for(let d=0;d<c.length;d++){const u=c[d],h=this.looseRoutesById[u.routeId],f=this.getMatch(u.id),k=l.get(u.routeId);if(u.params=k?zt(k.params,a):a,!f){const P=c[d-1],g=this.getParentContext(P);if(h.options.context){const _={deps:u.loaderDeps,params:u.params,context:g??{},location:e,navigate:x=>this.navigate({...x,_fromLocation:e}),buildLocation:this.buildLocation,cause:u.cause,abortController:u.abortController,preload:!!u.preload,matches:c,routeId:h.id};u.__routeContext=h.options.context(_)??void 0}u.context={...g,...u.__routeContext,...u.__beforeLoadContext}}}return c}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:o}=this.getMatchedRoutes(e.pathname),n=Ho(t),a={...e.search};for(const l of t)try{Object.assign(a,An(l.options.validateSearch,a))}catch{}const r=Ho(this.stores.matchesId.get()),s=r&&this.stores.matchStores.get(r)?.get(),i=s&&s.routeId===n.id&&s.pathname===e.pathname;let c;if(i)c=s.params;else{const l=Object.assign(Object.create(null),o);for(const d of t)try{ps(d,l)}catch{}c=l}return{matchedRoutes:t,fullPath:n.fullPath,search:a,params:c}}},Bn=class extends Error{},ff=class extends Error{};function gf(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function An(e,t){if(e==null)return{};if("~standard"in e){const o=e["~standard"].validate(t);if(o instanceof Promise)throw new Bn("Async validation not supported");if(o.issues)throw new Bn(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function bf({pathname:e,routesById:t,processedTree:o}){const n=Object.create(null),a=lt(e);let r;const s=Dh(a,o,!0);return s&&(r=s.route,Object.assign(n,s.rawParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:n,foundRoute:r}}function yf({search:e,dest:t,destRoutes:o,_includeValidateSearch:n}){return vf(o)(e,t,n??!1)}function vf(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const a of e){if("search"in a.options)a.options.search?.middlewares&&t.middlewares.push(...a.options.search.middlewares);else if(a.options.preSearchFilters||a.options.postSearchFilters){const r=({search:s,next:i})=>{let c=s;"preSearchFilters"in a.options&&a.options.preSearchFilters&&(c=a.options.preSearchFilters.reduce((d,u)=>u(d),s));const l=i(c);return"postSearchFilters"in a.options&&a.options.postSearchFilters?a.options.postSearchFilters.reduce((d,u)=>u(d),l):l};t.middlewares.push(r)}if(a.options.validateSearch){const r=({search:s,next:i})=>{const c=i(s);if(!t._includeValidateSearch)return c;try{return{...c,...An(a.options.validateSearch,c)??void 0}}catch{return c}};t.middlewares.push(r)}}const o=({search:a})=>{const r=t.dest;return r.search?r.search===!0?a:Wt(r.search,a):{}};t.middlewares.push(o);const n=(a,r,s)=>{if(a>=s.length)return r;const i=s[a];return i({search:r,next:l=>n(a+1,l,s)})};return function(r,s,i){return t.dest=s,t._includeValidateSearch=i,n(0,r,t.middlewares)}}function kf(e,t){if(e!=="root")for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.children)return n.id}return Xt}function ps(e,t){const o=e.options.params?.parse??e.options.parseParams;if(o){const n=o(t);if(n===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,n)}}function $f(){try{return sessionStorage}catch{return}}const _f="tsr-scroll-restoration-v1_3",Ji=$f();function wf(){try{return JSON.parse(Ji?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function Rf(){try{Ji?.setItem(_f,JSON.stringify(vo))}catch{}}const vo=wf(),ms="data-scroll-restoration-id",Pf=e=>e.state.__TSR_key||e.href;function Sf(e){const t=e.getAttribute(ms);if(t)return`[${ms}="${t}"]`;let o="",n=e,a;for(;a=n.parentNode;){let r=1,s=n;for(;s=s.previousElementSibling;)r++;const i=`${n.localName}:nth-child(${r})`;o=o?`${i} > ${o}`:i,n=a}return o}let yn=!1;const ko="window";function Ya(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function hs(e){const t=[];for(const o of e){if(o===ko)continue;const n=Ya(o);
2n&&t.push(n)}return t}function xf(e,t){if(e.options.scrollRestoration&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,yn=!1;const o=e.options.getScrollRestorationKey||Pf,n=new Map,a=(i,c,l)=>{const d=n.get(i)||{};d.scrollX=c,d.scrollY=l,n.set(i,d)};history.scrollRestoration="manual";const r=i=>{if(!(yn||!e.isScrollRestoring))if(i.target===document)a(ko,scrollX,scrollY);else{const c=i.target;a(c,c.scrollLeft,c.scrollTop)}},s=i=>{if(!e.isScrollRestoring)return;const c=vo[i]||={};for(const[l,d]of n)l===ko?c[ko]=d:l.isConnected&&(c[Sf(l)]=d)};document.addEventListener("scroll",r,!0),e.subscribe("onBeforeLoad",i=>{i.fromLocation&&s(o(i.fromLocation)),n.clear()}),addEventListener("pagehide",()=>{s(o(e.stores.resolvedLocation.get()??e.stores.location.get())),Rf()}),e.subscribe("onRendered",i=>{const c=e.options.scrollRestorationBehavior,l=e.options.scrollToTopSelectors,d=e.resetNextScroll;let u;if(n.clear(),d||(e.resetNextScroll=!0),typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const h=o(i.toLocation),f=i.fromLocation&&o(i.fromLocation);if(e.isScrollRestoring&&f&&f!==h){const k=vo[f];if(k){let P=vo[h];for(const g in k){if(g===ko){if(d)continue}else{const _=Ya(g);if(!_||d&&l&&(u??=hs(l),u.includes(_)))continue}P||(P=vo[h]={}),P[g]??=k[g]}}}yn=!0;try{const k=i.toLocation.hash,P=i.toLocation.state.__hashScrollIntoViewOptions??!0;let g=!1;if(d){const _=Wa.get(i.toLocation),x=k&&P&&(_==="PUSH"||_==="REPLACE"),C=e.isScrollRestoring?vo[h]:void 0;if(C)for(const L in C){const{scrollX:F,scrollY:U}=C[L];if(L===ko){if(x)continue;scrollTo({top:U,left:F,behavior:c}),g=!0}else{const N=Ya(L);N&&(N.scrollLeft=F,N.scrollTop=U)}}if(!g&&!k){const L={top:0,left:0,behavior:c};if(scrollTo(L),l){u??=hs(l);for(const F of u)F.scrollTo(L)}}}!g&&k&&P&&document.getElementById(k)?.scrollIntoView(P)}finally{yn=!1}})}const We=Symbol.for("TSR_DEFERRED_PROMISE");function Tf(e,t){const o=e;return o[We]||(o[We]={status:"pending"},o.then(n=>{o[We].status="success",o[We].data=n}).catch(n=>{o[We].status="error",o[We].error={data:mf(n),__isServerError:!0}})),o}const Ef="Error preloading route! ☝️";function Zi(e,t){if(e)return typeof e=="string"?e:e[t]}function Af(e){return e?.scriptFormat??"module"}function Lf(e,t,o){const n=Cf(t),a=Zi(o,"script")??n.crossOrigin;return{...Af(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:n.href,...a?{crossOrigin:a}:{}}}function Cf(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function vn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const o=new Set;for(const n of t){const a=JSON.stringify(n);o.has(a)||(o.add(a),e.push(n))}}function Nf(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var ec=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=t=>{this.originalIndex=t.originalIndex;const o=this.options,n=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Xt:this.parentRoute||Oe();let a=n?Xt:o?.path;a&&a!=="/"&&(a=Vi(a));const r=o?.id||a;let s=n?Xt:Tn([this.parentRoute.id==="__root__"?"":this.parentRoute.id,r]);a==="__root__"&&(a="/"),s!=="__root__"&&(s=Tn(["/",s]));const i=s==="__root__"?"/":Tn([this.parentRoute.fullPath,a]);this._path=a,this._id=s,this._fullPath=i,this._to=lt(i)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>tn({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},If=class extends ec{constructor(e){super(e)}},Ff=(e=>(e[e.AggregateError=1]="AggregateError",e[e.ArrowFunction=2]="ArrowFunction",e[e.ErrorPrototypeStack=4]="ErrorPrototypeStack",e[e.ObjectAssign=8]="Ob
2jectAssign",e[e.BigIntTypedArray=16]="BigIntTypedArray",e[e.RegExp=32]="RegExp",e))(Ff||{}),dt=Symbol.asyncIterator,tc=Symbol.hasInstance,Po=Symbol.isConcatSpreadable,pt=Symbol.iterator,oc=Symbol.match,nc=Symbol.matchAll,ac=Symbol.replace,rc=Symbol.search,sc=Symbol.species,ic=Symbol.split,cc=Symbol.toPrimitive,So=Symbol.toStringTag,lc=Symbol.unscopables,uc={[dt]:0,[tc]:1,[Po]:2,[pt]:3,[oc]:4,[nc]:5,[ac]:6,[rc]:7,[sc]:8,[ic]:9,[cc]:10,[So]:11,[lc]:12},Of={0:dt,1:tc,2:Po,3:pt,4:oc,5:nc,6:ac,7:rc,8:sc,9:ic,10:cc,11:So,12:lc},p=void 0,Bf={2:!0,3:!1,1:p,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},Mf={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},qf={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function J(e,t,o,n,a,r,s,i,c,l,d,u){return{t:e,i:t,s:o,c:n,m:a,p:r,e:s,a:i,f:c,b:l,o:d,l:u}}function At(e){return J(2,p,e,p,p,p,p,p,p,p,p,p)}var dc=At(2),pc=At(3),Df=At(1),Uf=At(0),jf=At(4),Vf=At(5),Kf=At(6),zf=At(7);function Gf(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case`
3`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"	":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return p}}function Lt(e){let t="",o=0,n;for(let a=0,r=e.length;a<r;a++)n=Gf(e[a]),n&&(t+=e.slice(o,a)+n,o=a+1);return o===0?t=e:t+=e.slice(o),t}function Hf(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
4`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function Ct(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Hf)}var kn="__SEROVAL_REFS__",mc=new Map,_o=new Map;function hc(e){return mc.has(e)}function Wf(e){return _o.has(e)}function Yf(e){if(hc(e))return mc.get(e);throw new Sg(e)}function Qf(e){if(Wf(e))return _o.get(e);throw new xg(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,kn,{value:_o,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,kn,{value:_o,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,kn,{value:_o,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,kn,{value:_o,configurable:!0,writable:!1,enumerable:!1});function pr(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Xf(e){let t=Mf[pr(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function fc(e,t){let o=Xf(e),n=Object.getOwnPropertyNames(e);for(let a=0,r=n.length,s;a<r;a++)s=n[a],s!=="name"&&s!=="message"&&(s==="stack"?t&4&&(o=o||{},o[s]=e[s]):(o=o||{},o[s]=e[s]));return o}function gc(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function Jf(e){switch(e){case Number.POSITIVE_INFINITY:return Vf;case Number.NEGATIVE_INFINITY:return Kf}return e!==e?zf:Object.is(e,-0)?jf:J(0,p,e,p,p,p,p,p,p,p,p,p)}function bc(e){return J(1,p,Lt(e),p,p,p,p,p,p,p,p,p)}function Zf(e){return J(3,p,""+e,p,p,p,p,p,p,p,p,p)}function eg(e){return J(4,e,p,p,p,p,p,p,p,p,p,p)}function tg(e,t){let o=t.valueOf();return J(5,e,o!==o?"":t.toISOString(),p,p,p,p,p,p,p,p,p)}function og(e,t){return J(6,e,p,Lt(t.source),t.flags,p,p,p,p,p,p,p)}function ng(e,t){return J(17,e,uc[t],p,p,p,p,p,p,p,p,p)}function ag(e,t){return J(18,e,Lt(Yf(t)),p,p,p,p,p,p,p,p,p)}function rg(e,t,o){return J(25,e,o,Lt(t),p,p,p,p,p,p,p,p)}function sg(e,t,o){return J(9,e,p,p,p,p,p,o,p,p,gc(t),p)}function ig(e,t){return J(21,e,p,p,p,p,p,p,t,p,p,p)}function cg(e,t,o){return J(15,e,p,t.constructor.name,p,p,p,p,o,t.byteOffset,p,t.length)}function lg(e,t,o){return J(16,e,p,t.constructor.name,p,p,p,p,o,t.byteOffset,p,t.byteLength)}function ug(e,t,o){return J(20,e,p,p,p,p,p,p,o,t.byteOffset,p,t.byteLength)}function dg(e,t,o){return J(13,e,pr(t),p,Lt(t.message),o,p,p,p,p,p,p)}function pg(e,t,o){return J(14,e,pr(t),p,Lt(t.message),o,p,p,p,p,p,p)}function mg(e,t){return J(7,e,p,p,p,p,p,t,p,p,p,p)}function hg(e,t){return J(28,p,p,p,p,p,p,[e,t],p,p,p,p)}function fg(e,t){return J(30,p,p,p,p,p,p,[e,t],p,p,p,p)}function gg(e,t,o){return J(31,e,p,p,p,p,p,o,t,p,p,p)}function bg(e,t){return J(32,e,p,p,p,p,p,p,t,p,p,p)}function yg(e,t){return J(33,e,p,p,p,p,p,p,t,p,p,p)}function vg(e,t){return J(34,e,p,p,p,p,p,p,t,p,p,p)}function kg(e,t,o,n){return J(35,e,o,p,p,p,p,t,p,p,p,n)}
4var $g={parsing:1,serialization:2,deserialization:3};function _g(e){return`Seroval Error (step: ${$g[e]})`}var wg=(e,t)=>_g(e),yc=class extends Error{constructor(e,t){super(wg(e)),this.cause=t}},fs=class extends yc{constructor(e){super("parsing",e)}},Rg=class extends yc{constructor(e){super("deserialization",e)}};function gt(e){return`Seroval Error (specific: ${e})`}var Gn=class extends Error{constructor(t){super(gt(1)),this.value=t}},vc=class extends Error{constructor(e){super(gt(2))}},Pg=class extends Error{constructor(t){super(gt(3))}},on=class extends Error{constructor(e){super(gt(4))}},Sg=class extends Error{constructor(e){super(gt(5)),this.value=e}},xg=class extends Error{constructor(e){super(gt(6))}},Tg=class extends Error{constructor(e){super(gt(7))}},bt=class extends Error{constructor(e){super(gt(8))}},Eg=class extends Error{constructor(e){super(gt(9))}},Ag=class{constructor(e,t){this.value=e,this.replacement=t}},Hn=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,o)=>{e.s=t,e.f=o}),e},Lg=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},Cg=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};Hn.toString();Lg.toString();Cg.toString();var Ng=()=>{let e=[],t=[],o=!0,n=!1,a=0,r=(c,l,d)=>{for(d=0;d<a;d++)t[d]&&t[d][l](c)},s=(c,l,d,u)=>{for(l=0,d=e.length;l<d;l++)u=e[l],!o&&l===d-1?c[n?"return":"throw"](u):c.next(u)},i=(c,l)=>(o&&(l=a++,t[l]=c),s(c),()=>{o&&(t[l]=t[a],t[a--]=void 0)});return{__SEROVAL_STREAM__:!0,on:c=>i(c),next:c=>{o&&(e.push(c),r(c,"next"))},throw:c=>{o&&(e.push(c),r(c,"throw"),o=!1,n=!1,t.length=0)},return:c=>{o&&(e.push(c),r(c,"return"),o=!1,n=!0,t.length=0)}}},Ig=e=>t=>()=>{let o=0,n={[e]:()=>n,next:()=>{if(o>t.d)return{done:!0,value:void 0};let a=o++,r=t.v[a];if(a===t.t)throw r;return{done:a===t.d,value:r}}};return n},Fg=(e,t)=>o=>()=>{let n=0,a=-1,r=!1,s=[],i=[],c=(d=0,u=i.length)=>{for(;d<u;d++)i[d].s({done:!0,value:void 0})};o.on({next:d=>{let u=i.shift();u&&u.s({done:!1,value:d}),s.push(d)},throw:d=>{let u=i.shift();u&&u.f(d),c(),a=s.length,r=!0,s.push(d)},return:d=>{let u=i.shift();u&&u.s({done:!0,value:d}),c(),a=s.length,s.push(d)}});let l={[e]:()=>l,next:()=>{if(a===-1){let h=n++;if(h>=s.length){let f=t();return i.push(f),f.p}return{done:!1,value:s[h]}}if(n>a)return{done:!0,value:void 0};let d=n++,u=s[d];if(d!==a)return{done:!1,value:u};if(r)throw u;return{done:!0,value:u}}};return l},kc=e=>{let t=atob(e),o=t.length,n=new Uint8Array(o);for(let a=0;a<o;a++)n[a]=t.charCodeAt(a);return n.buffer};kc.toString();function Og(e){return"__SEROVAL_SEQUENCE__"in e}function $c(e,t,o){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:o}}function Bg(e){let t=[],o=-1,n=-1,a=e[pt]();for(;;)try{let r=a.next();if(t.push(r.value),r.done){n=t.length-1;break}}catch(r){o=t.length,t.push(r)}return $c(t,o,n)}var Mg=Ig(pt);function qg(e){return Mg(e)}var Dg={},Ug={},jg={0:{},1:{},2:{},3:{},4:{},5:{}};function Vg(e){return"__SEROVAL_STREAM__"in e}function ao(){return Ng()}function Kg(e){let t=ao(),o=e[dt]();async function n(){try{let a=await o.next();a.done?t.return(a.value):(t.next(a.value),await n())}catch(a){t.throw(a)}}return n().catch(()=>{}),t}var zg=Fg(dt,Hn);function Gg(e){return zg(e)}async function Hg(e){try{return[1,await e]}catch(t){return[0,t]}}function Wg(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Ln(e,t){e.marked.add(t)}function Yg(e,t){let o=e.refs.size;return e.refs.set(t,o),o}function Wn(e,t){let o=e.refs.get(t);return o!=null?(Ln(e,o),{type:1,value:eg(o)}):{type:0,value:Yg(e,t)}}function mr(e,t){let o=Wn(e,t);return o.type===1?o:hc(t)?{type:2,value:ag(o.value,t)}:o}function Qt(e,t){let o=mr(e,t);if(o.type!==0)return o.value;if(t in uc)return ng(o.value,t);throw new Gn(t)}function Yn(e,t){let o=Wn(e,jg[t]);return o.type===1?o.value:J(26,o.value,t,p,p,p,p,p,p,p,p,p)}function Qg(e){let t=Wn(e,Dg);return t.type===1?t.value:J(27,t.value,p,p,p,p,p,p,Qt(e,pt),p,p,p)}function Xg(e){let t=Wn(e,Ug);return t.type===1?t.value:J(29,t.value,p,p,p,p,p,[Yn(e,1),Qt(e,dt)],p,p,p,p)}function Jg(e,t,o,n){return J(o?11:10,e,p,p,p,n,p,p,p,p,gc(t),p)}function Zg(e,t,o,n){return J(8,t,p,p,p,p,{k:o,v:n},p,Yn(e,0),p,p,p)}function eb(e,t,o){let n=new Uint8Array(o),a="";for(let r=0,s=n.length;r<s;r++)a+=String.fromCharCode(n[r]);return J(19,t,Lt(btoa(a)),p,p,p,p,p,Yn(e,5),p,p,p)}function tb(e,t){return{base:Wg(e,t),child:void 0}}var ob=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return ve(this._p,this.depth,e)}};async function nb(e,t,o){let n=[];for(let a=0,r=o.length;a<r;a++)a in o?n[a]=await ve(e,t,o[a]):n[a]=0;return n}async function ab(e,t,o,n){return sg(o,n,await nb(e,t,n))}async function hr(e,t,o){let n=Object.entries(o),a=[],r=[];for(let s=0,i=n.length;s<i;s++)a.push(Lt(n[s][0])),r.push(await ve(e,t,n[s][1]));return pt in o&&(a.push(Qt(e.base,pt)),r.push(hg(Qg(e.base),await ve(e,t,Bg(
4o))))),dt in o&&(a.push(Qt(e.base,dt)),r.push(fg(Xg(e.base),await ve(e,t,Kg(o))))),So in o&&(a.push(Qt(e.base,So)),r.push(bc(o[So]))),Po in o&&(a.push(Qt(e.base,Po)),r.push(o[Po]?dc:pc)),{k:a,v:r}}async function Ta(e,t,o,n,a){return Jg(o,n,a,await hr(e,t,n))}async function rb(e,t,o,n){return ig(o,await ve(e,t,n.valueOf()))}async function sb(e,t,o,n){return cg(o,n,await ve(e,t,n.buffer))}async function ib(e,t,o,n){return lg(o,n,await ve(e,t,n.buffer))}async function cb(e,t,o,n){return ug(o,n,await ve(e,t,n.buffer))}async function gs(e,t,o,n){let a=fc(n,e.base.features);return dg(o,n,a?await hr(e,t,a):p)}async function lb(e,t,o,n){let a=fc(n,e.base.features);return pg(o,n,a?await hr(e,t,a):p)}async function ub(e,t,o,n){let a=[],r=[];for(let[s,i]of n.entries())a.push(await ve(e,t,s)),r.push(await ve(e,t,i));return Zg(e.base,o,a,r)}async function db(e,t,o,n){let a=[];for(let r of n.keys())a.push(await ve(e,t,r));return mg(o,a)}async function _c(e,t,o,n){let a=e.base.plugins;if(a)for(let r=0,s=a.length;r<s;r++){let i=a[r];if(i.parse.async&&i.test(n))return rg(o,i.tag,await i.parse.async(n,new ob(e,t),{id:o}))}return p}async function pb(e,t,o,n){let[a,r]=await Hg(n);return J(12,o,a,p,p,p,p,p,await ve(e,t,r),p,p,p)}function mb(e,t,o,n,a){let r=[],s=o.on({next:i=>{Ln(this.base,t),ve(this,e,i).then(c=>{r.push(bg(t,c))},c=>{a(c),s()})},throw:i=>{Ln(this.base,t),ve(this,e,i).then(c=>{r.push(yg(t,c)),n(r),s()},c=>{a(c),s()})},return:i=>{Ln(this.base,t),ve(this,e,i).then(c=>{r.push(vg(t,c)),n(r),s()},c=>{a(c),s()})}})}async function hb(e,t,o,n){return gg(o,Yn(e.base,4),await new Promise(mb.bind(e,t,o,n)))}async function fb(e,t,o,n){let a=[];for(let r=0,s=n.v.length;r<s;r++)a[r]=await ve(e,t,n.v[r]);return kg(o,a,n.t,n.d)}async function gb(e,t,o,n){if(Array.isArray(n))return ab(e,t,o,n);if(Vg(n))return hb(e,t,o,n);if(Og(n))return fb(e,t,o,n);let a=n.constructor;if(a===Ag)return ve(e,t,n.replacement);let r=await _c(e,t,o,n);if(r)return r;switch(a){case Object:return Ta(e,t,o,n,!1);case p:return Ta(e,t,o,n,!0);case Date:return tg(o,n);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return gs(e,t,o,n);case Number:case Boolean:case String:case BigInt:return rb(e,t,o,n);case ArrayBuffer:return eb(e.base,o,n);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return sb(e,t,o,n);case DataView:return cb(e,t,o,n);case Map:return ub(e,t,o,n);case Set:return db(e,t,o,n)}if(a===Promise||n instanceof Promise)return pb(e,t,o,n);let s=e.base.features;if(s&32&&a===RegExp)return og(o,n);if(s&16)switch(a){case BigInt64Array:case BigUint64Array:return ib(e,t,o,n)}if(s&1&&typeof AggregateError<"u"&&(a===AggregateError||n instanceof AggregateError))return lb(e,t,o,n);if(n instanceof Error)return gs(e,t,o,n);if(pt in n||dt in n)return Ta(e,t,o,n,!!a);throw new Gn(n)}async function bb(e,t,o){let n=mr(e.base,o);if(n.type!==0)return n.value;let a=await _c(e,t,n.value,o);if(a)return a;throw new Gn(o)}async function ve(e,t,o){switch(typeof o){case"boolean":return o?dc:pc;case"undefined":return Df;case"string":return bc(o);case"number":return Jf(o);case"bigint":return Zf(o);case"object":{if(o){let n=mr(e.base,o);return n.type===0?await gb(e,t+1,n.value,o):n.value}return Uf}case"symbol":return Qt(e.base,o);case"function":return bb(e,t,o);default:throw new Gn(o)}}async function yb(e,t){try{return await ve(e,0,t)}catch(o){throw o instanceof fs?o:new fs(o)}}var vb=(e=>(e[e.Vanilla=1]="Vanilla",e[e.Cross=2]="Cross",e))(vb||{});function wc(e,t){for(let o=0,n=t.length;o<n;o++){let a=t[o];e.has(a)||(e.add(a),a.extends&&wc(e,a.extends))}}function Rc(e){if(e){let t=new Set;return wc(t,e),[...t]}}function kb(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new Tg(e)}}var $b=1e6,_b=1e4,wb=2e4;function Pc(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Rb=1e3;function Pb(e,t){var o;let n=t.refs||new Map;return"types"in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:(o=t.features)!=null?o:63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Rb}}
4function Sb(e){return{mode:2,base:Pb(2,e),child:p}}var xb=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return oe(this._p,this.depth,e)}};function Sc(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new bt({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function Tb(e,t,o){return Sc(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,o),o}function Eb(e,t,o){return Sc(e.base,t),e.base.refs.set(t,o),o}function ke(e,t,o){return e.mode===1?Tb(e,t,o):Eb(e,t,o)}function Qa(e,t,o){if(Object.hasOwn(t,o))return t[o];throw new bt(e)}function Ab(e,t){return ke(e,t.i,Qf(Ct(t.s)))}function Lb(e,t,o){let n=o.a,a=n.length,r=ke(e,o.i,new Array(a));for(let s=0,i;s<a;s++)i=n[s],i&&(r[s]=oe(e,t,i));return Pc(r,o.o),r}function Cb(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function Nb(e){switch(e){case dt:case Po:case So:case pt:return!0;default:return!1}}function bs(e,t,o){Cb(t)?e[t]=o:Object.defineProperty(e,t,{value:o,configurable:!0,enumerable:!0,writable:!0})}function Ib(e,t,o,n,a){if(typeof n=="string")bs(o,Ct(n),oe(e,t,a));else{let r=oe(e,t,n);switch(typeof r){case"string":bs(o,r,oe(e,t,a));break;case"symbol":Nb(r)&&(o[r]=oe(e,t,a));break;default:throw new bt(n)}}}function xc(e,t,o){e.base.refs.types.set(t,o)}function nn(e,t,o,n){if(e.base.refs.types.get(o)!==n)throw new bt(t)}function Tc(e,t,o,n){let a=o.k;if(a.length>0)for(let r=0,s=o.v,i=a.length;r<i;r++)Ib(e,t,n,a[r],s[r]);return n}function Fb(e,t,o){let n=ke(e,o.i,o.t===10?{}:Object.create(null));return Tc(e,t,o.p,n),Pc(n,o.o),n}function Ob(e,t){return ke(e,t.i,new Date(t.s))}function Bb(e,t){if(e.base.features&32){let o=Ct(t.c);if(o.length>wb)throw new bt(t);return ke(e,t.i,new RegExp(o,t.m))}throw new vc(t)}function Mb(e,t,o){let n=ke(e,o.i,new Set);for(let a=0,r=o.a,s=r.length;a<s;a++)n.add(oe(e,t,r[a]));return n}function qb(e,t,o){let n=ke(e,o.i,new Map);for(let a=0,r=o.e.k,s=o.e.v,i=r.length;a<i;a++)n.set(oe(e,t,r[a]),oe(e,t,s[a]));return n}function Db(e,t){if(t.s.length>$b)throw new bt(t);return ke(e,t.i,kc(Ct(t.s)))}function Ub(e,t,o){var n;let a=kb(o.c),r=oe(e,t,o.f),s=(n=o.b)!=null?n:0;if(s<0||s>r.byteLength)throw new bt(o);return ke(e,o.i,new a(r,s,o.l))}function jb(e,t,o){var n;let a=oe(e,t,o.f),r=(n=o.b)!=null?n:0;if(r<0||r>a.byteLength)throw new bt(o);return ke(e,o.i,new DataView(a,r,o.l))}function Ec(e,t,o,n){if(o.p){let a=Tc(e,t,o.p,{});Object.defineProperties(n,Object.getOwnPropertyDescriptors(a))}return n}function Vb(e,t,o){let n=ke(e,o.i,new AggregateError([],Ct(o.m)));return Ec(e,t,o,n)}function Kb(e,t,o){let n=Qa(o,qf,o.s),a=ke(e,o.i,new n(Ct(o.m)));return Ec(e,t,o,a)}function zb(e,t,o){let n=Hn(),a=ke(e,o.i,n.p),r=oe(e,t,o.f);return o.s?n.s(r):n.f(r),a}function Gb(e,t,o){return ke(e,o.i,Object(oe(e,t,o.f)))}function Hb(e,t,o){let n=e.base.plugins;if(n){let a=Ct(o.c);for(let r=0,s=n.length;r<s;r++){let i=n[r];if(i.tag===a)return ke(e,o.i,i.deserialize(o.s,new xb(e,t),{id:o.i}))}}throw new Pg(o.c)}function Wb(e,t){let o=ke(e,t.i,ke(e,t.s,Hn()).p);return xc(e,t.s,22),o}function Yb(e,t,o){let n=e.base.refs.get(o.i);if(n)return nn(e,o,o.i,22),n.s(oe(e,t,o.a[1])),p;throw new on("Promise")}function Qb(e,t,o){let n=e.base.refs.get(o.i);if(n)return nn(e,o,o.i,22),n.f(oe(e,t,o.a[1])),p;throw new on("Promise")}function Xb(e,t,o){oe(e,t,o.a[0]);let n=oe(e,t,o.a[1]);return qg(n)}function Jb(e,t,o){oe(e,t,o.a[0]);let n=oe(e,t,o.a[1]);return Gg(n)}function Zb(e,t,o){let n=ke(e,o.i,ao());xc(e,o.i,31);let a=o.a,r=a.length;if(r)for(let s=0;s<r;s++)oe(e,t,a[s]);return n}function ey(e,t,o){let n=e.base.refs.get(o.i);if(n)return nn(e,o,o.i,31),n.next(oe(e,t,o.f)),p;throw new on("Stream")}function ty(e,t,o){let n=e.base.refs.get(o.i);if(n)return nn(e,o,o.i,31),n.throw(oe(e,t,o.f)),p;throw new on("Stream")}function oy(e,t,o){let n=e.base.refs.get(o.i);if(n)return nn(e,o,o.i,31),n.return(oe(e,t,o.f)),p;throw new on("Stream")}function ny(e,t,o){return oe(e,t,o.f),p}function ay(e,t,o){return oe(e,t,o.a[1]),p}function ry(e,t,o){let n=ke(e,o.i,$c([],o.s,o.l));for(let a=0,r=o.a.length;a<r;a++)n.v[a]=oe(e,t,o.a[a]);return n}function oe(e,t,o){if(t>e.base.depthLimit)throw new Eg(e.base.depthLimit);switch(t+=1,o.t){case 2:return Qa(o,Bf,o.s);case 0:return Number(o.s);case 1:return Ct(String(o.s));case 3:if(String(o.s).length>_b)throw new bt(o);return BigInt(o.s);case 4:return e.base.refs.get(o.i);case 18:return Ab(e,o);case 9:return Lb(e,t,o);case 10:case 11:return Fb(e,t,o);case 5:return Ob(e,o);case 6:return Bb(e,o);case 7:return Mb(e,t,o);case 8:return qb(e,t,o);case 19:return Db(e,o);case 16:case 15:return Ub(e,t,o);case 20:return jb(e,t,o);case 14:return Vb(e,t,o);case 13:return Kb(e,t,o);case 12:return zb(e,t,o);case 17:return Qa(o,Of,o.s);case 21:return Gb(e,t,o);case 25:return Hb(e,t,o);case 22:return Wb(e,o);case 23:return Yb(e,t,o);case 24:return Qb(e,t,o);case 28:return Xb(e,t,o);case 30:return Jb(e,t,o);case 31:return Zb(e,t,o);case 32:return ey(e,t,o);case 33:return ty(e,t,o);case 34:return oy(e,t,o);case 27:return ny(e,t,o);case 29:return ay(e,t,o);case 35:return ry(e,t,o);default:throw new vc(o)}}function sy(e,t){try{return oe(e,0,t)}catch(o){throw new Rg(o)}}var iy=()=>T;iy.toString();function ys(e,t){let o=Rc(t.plugins),n=Sb({plugins:o,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return sy(n,e)}async function cy(e,t={}){let o=Rc(t.plugins),n=tb(1,{plugins:o,disabledFeatures:t.disabledFeatures});return{t:await yb(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function ly(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,o,n){return{v:o.parse(e.toSerializable(t))}},async async(t,o,n){return{v:await o.parse(e.toSerializable(t))}},stream(t,o,n){return{v:o.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,o,n){return e.fromSerializable(o.deserialize(t.v))}}}var uy=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Mn=globalThis.Buffer,Ac=!!Mn&&typeof Mn.from=="function";function Lc(e){if(e.length===0)return"";if(Ac)return Mn.from(e).toString("base64");const t=32768,o=[];for(let n=0;n<e.length;n+=t){const a=e.subarray(n,n+t);o.push(String.fromCharCode.apply(null,a))}return btoa(o.join(""))}function Cc(e){if(e.length===0)return new Uint8Array(0);if(Ac){const n=Mn.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}const t=atob(e),o=new Uint8Array(t.length);for(let n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return o}const qo=Object.create(null),Do=Object.create(null),dy=e=>new ReadableStream({start(t){e.on({next(o){try{t.enqueue(Cc(o))}catch{}},throw(o){t.error(o)},return(){try{t.close()}catch{}}})}}),py=new TextEncoder,my=e=>
4new ReadableStream({start(t){e.on({next(o){try{typeof o=="string"?t.enqueue(py.encode(o)):t.enqueue(Cc(o.$b64))}catch{}},throw(o){t.error(o)},return(){try{t.close()}catch{}}})}}),hy="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",fy="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function vs(e){const t=ao(),o=e.getReader();return(async()=>{try{for(;;){const{done:n,value:a}=await o.read();if(n){t.return(void 0);break}t.next(Lc(a))}}catch(n){t.throw(n)}finally{o.releaseLock()}})(),t}function ks(e){const t=ao(),o=e.getReader(),n=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:a,value:r}=await o.read();if(a){try{const s=n.decode();s.length>0&&t.next(s)}catch{}t.return(void 0);break}try{const s=n.decode(r,{stream:!0});s.length>0&&t.next(s)}catch{t.next({$b64:Lc(r)})}}}catch(a){t.throw(a)}finally{o.releaseLock()}})(),t}const gy={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===qo},parse:{sync(e,t,o){return{}},async async(e,t,o){return{}},stream(e,t,o){return{}}},serialize(e,t,o){return hy},deserialize(e,t,o){return qo}},{tag:"tss/RawStreamFactoryText",test(e){return e===Do},parse:{sync(e,t,o){return{}},async async(e,t,o){return{}},stream(e,t,o){return{}}},serialize(e,t,o){return fy},deserialize(e,t,o){return Do}}],test(e){return e instanceof uy},parse:{sync(e,t,o){const n=e.hint==="text"?Do:qo;return{hint:t.parse(e.hint),factory:t.parse(n),stream:t.parse(ao())}},async async(e,t,o){const n=e.hint==="text"?Do:qo,a=e.hint==="text"?ks(e.stream):vs(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(n),stream:await t.parse(a)}},stream(e,t,o){const n=e.hint==="text"?Do:qo,a=e.hint==="text"?ks(e.stream):vs(e.stream);return{hint:t.parse(e.hint),factory:t.parse(n),stream:t.parse(a)}}},serialize(e,t,o){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,o){const n=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?my(n):dy(n)}};function by(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,o,n){return e(typeof o?.deserialize=="function"?o.deserialize(t.streamId):t.streamId)}}}const yy={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Rt={},Nc=e=>new ReadableStream({start:t=>{e.on({next:o=>{try{t.enqueue(o)}catch{}},throw:o=>{t.error(o)},return:()=>{try{t.close()}catch{}}})}}),vy={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Rt},parse:{sync(){return Rt},async async(){return await Promise.resolve(Rt)},stream(){return Rt}},serialize(){return Nc.toString()},deserialize(){return Rt}};function $s(e){let t=ao(),o=e.getReader();async function n(){try{let a=await o.read();a.done?t.return(a.value):(t.next(a.value),await n())}catch(a){t.throw(a)}}return n().catch(()=>{}),t}var ky={tag:"seroval/plugins/web/ReadableStream",extends:[vy],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Rt),stream:t.parse(ao())}},async async(e,t){return{factory:await t.parse(Rt),stream:await t.parse($s(e))}},stream(e,t){return{factory:t.parse(Rt),stream:t.parse($s(e))}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){let o=t.deserialize(e.stream);return Nc(o)}},$y=ky;const _y=[yy,gy,$y];function wy(){return[...cr()?.serializationAdapters?.map(ly)??[],..._y]}var _s=new TextDecoder,Ry=new Uint8Array(0),ws=16*1024*1024,Rs=32*1024*1024,Ps=1024,Ss=1e5;function Py(e){const t=new Map,o=new Map,n=new Set;let a=!1,r=null,s=0,i;const c=new ReadableStream({start(u){i=u},cancel(){a=!0;try{r?.cancel()}catch{}t.forEach(u=>{try{u.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),o.clear(),n.clear()}});function l(u){const h=o.get(u);if(h)return h;if(n.has(u))return new ReadableStream({start(k){k.close()}});if(o.size>
4=Ps)throw new Error(`Too many raw streams in framed response (max ${Ps})`);const f=new ReadableStream({start(k){t.set(u,k)},cancel(){n.add(u),t.delete(u),o.delete(u)}});return o.set(u,f),f}function d(u){return l(u),t.get(u)}return(async()=>{const u=e.getReader();r=u;const h=[];let f=0;function k(){if(f<9)return null;const g=h[0];if(g.length>=9)return{type:g[0],streamId:(g[1]<<24|g[2]<<16|g[3]<<8|g[4])>>>0,length:(g[5]<<24|g[6]<<16|g[7]<<8|g[8])>>>0};const _=new Uint8Array(9);let x=0,C=9;for(let L=0;L<h.length&&C>0;L++){const F=h[L],U=Math.min(F.length,C);_.set(F.subarray(0,U),x),x+=U,C-=U}return{type:_[0],streamId:(_[1]<<24|_[2]<<16|_[3]<<8|_[4])>>>0,length:(_[5]<<24|_[6]<<16|_[7]<<8|_[8])>>>0}}function P(g){if(g===0)return Ry;const _=new Uint8Array(g);let x=0,C=g;for(;C>0&&h.length>0;){const L=h[0];if(!L)break;const F=Math.min(L.length,C);_.set(L.subarray(0,F),x),x+=F,C-=F,F===L.length?h.shift():h[0]=L.subarray(F)}return f-=g,_}try{for(;;){const{done:g,value:_}=await u.read();if(a||g)break;if(_){if(f+_.length>Rs)throw new Error(`Framed response buffer exceeded ${Rs} bytes`);for(h.push(_),f+=_.length;;){const x=k();if(!x)break;const{type:C,streamId:L,length:F}=x;if(C!==it.JSON&&C!==it.CHUNK&&C!==it.END&&C!==it.ERROR)throw new Error(`Unknown frame type: ${C}`);if(C===it.JSON){if(L!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(L===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(F>ws)throw new Error(`Frame payload too large: ${F} bytes (max ${ws})`);const U=9+F;if(f<U)break;if(++s>Ss)throw new Error(`Too many frames in framed response (max ${Ss})`);P(9);const N=P(F);switch(C){case it.JSON:try{i.enqueue(_s.decode(N))}catch{}break;case it.CHUNK:{const E=d(L);E&&E.enqueue(N);break}case it.END:{const E=d(L);if(n.add(L),E){try{E.close()}catch{}t.delete(L)}break}case it.ERROR:{const E=d(L);if(n.add(L),E){const D=_s.decode(N);E.error(new Error(D)),t.delete(L)}break}}}}}if(f!==0)throw new Error("Incomplete frame at end of framed response");try{i.close()}catch{}t.forEach(g=>{try{g.close()}catch{}}),t.clear()}catch(g){try{i.error(g)}catch{}t.forEach(_=>{try{_.error(g)}catch{}}),t.clear()}finally{try{u.releaseLock()}catch{}r=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Xo=null;async function Xa(e){e.length>0&&await Promise.allSettled(e)}var Sy=Object.prototype.hasOwnProperty;function Ic(e){for(const t in e)if(Sy.call(e,t))return!0;return!1}async function xy(e,t,o){Xo||(Xo=wy());const n=t[0],a=n.fetch??o,r=n.data instanceof FormData?"formData":"payload",s=n.headers?new Headers(n.headers):new Headers;if(s.set("x-tsr-serverFn","true"),r==="payload"&&s.set("accept",`${_h}, application/x-ndjson, application/json`),n.method==="GET"){if(r==="formData")throw new Error("FormData is not supported with GET requests");const c=await Fc(n);if(c!==void 0){const l=zi({payload:c});e.includes("?")?e+=`&${l}`:e+=`?${l}`}}let i;if(n.method==="POST"){const c=await Ty(n);c?.contentType&&s.set("content-type",c.contentType),i=c?.body}return await Ey(async()=>a(e,{method:n.method,headers:s,signal:n.signal,body:i}))}async function Fc(e){let t=!1;const o={};if(e.data!==void 0&&(t=!0,o.data=e.data),e.context&&Ic(e.context)&&(t=!0,o.context=e.context),t)return Oc(o)}async function Oc(e){return JSON.stringify(await Promise.resolve(cy(e,{plugins:Xo})))}async function Ty(e){if(e.data instanceof FormData){let o;return e.context&&Ic(e.context)&&(o=await Oc(e.context)),o!==void 0&&e.data.set($h,o),{body:e.data}}const t=await Fc(e);if(t)return{body:t,contentType:"application/json"}}async function Ey(e){let t;try{t=await e()}catch(n){if(n instanceof Response)t=n;else throw console.log(n),n}if(t.headers.get("x-tss-raw")==="true")return t;const o=t.headers.get("content-type");if(o||Oe(),t.headers.get("x-tss-serialized")){let n;if(o.includes("application/x-tss-framed")){if(Ph(o),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:a,jsonChunks:r}=Py(t.body),s=[by(a),...Xo||[]],i=new Map;n=await Ay({jsonStream:r,onMessage:c=>ys(c,{refs:i,plugins:s}),onError(c,l){console.error(c,l)}})}else if(o.includes("application/json")){const a=await t.json(),r=[];n=ys(a,{plugins:Xo}),await Xa(r)}if(n||Oe(),n instanceof Error)throw n;return n}if(o.includes("application/json")){const n=await t.json(),a=Gi(n);if(a)throw a;if(Re(n))throw n;return n}if(!t.ok)throw new Error(await t.text());return t}async function Ay({jsonStream:e,onMessage:t,onError:o}){const n=e.getReader(),{value:a,done:r}=await n.read();if(r||!a)throw new Error("Stream ended before first object");const s=JSON.parse(a);let i=!1;const c=(async()=>{try{for(;;){const{value:u,done:h}=await n.read();if(h)break;if(u)try{const f=[];try{t(JSON.parse(u))}finally{}await Xa(f)}catch(f){o?.(`Invalid JSON: ${u}`,f)}}}catch(u){i||o?.("Stream processing error:",u)}
4})();let l;const d=[];try{l=t(s)}catch(u){throw i=!0,n.cancel().catch(()=>{}),u}return await Xa(d),Promise.resolve(l).catch(()=>{i=!0,n.cancel().catch(()=>{})}),c.finally(()=>{try{n.releaseLock()}catch{}}),l}function pe(e){const t="/_serverFn/"+e;return Object.assign((...a)=>{const r=cr()?.serverFns?.fetch;return xy(t,a,r??fetch)},{url:t,serverFnMeta:{id:e},[za]:!0})}var Ly={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(za in e)?!1:!!e[za],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>pe(e)};function Bc(e){if(Array.isArray(e))return e.flatMap(d=>Bc(d));if(typeof e!="string")return[];const t=[];let o=0,n,a,r,s,i;const c=()=>{for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length},l=()=>(a=e.charAt(o),a!=="="&&a!==";"&&a!==",");for(;o<e.length;){for(n=o,i=!1;c();)if(a=e.charAt(o),a===","){for(r=o,o+=1,c(),s=o;o<e.length&&l();)o+=1;o<e.length&&e.charAt(o)==="="?(i=!0,o=s,t.push(e.slice(n,r)),n=o):o=r+1}else o+=1;(!i||o>=e.length)&&t.push(e.slice(n))}return t}function Cy(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function Ny(...e){return e.reduce((t,o)=>{const n=Cy(o);if(!n)return t;for(const[a,r]of n.entries())a==="set-cookie"?Bc(r).forEach(s=>t.append("set-cookie",s)):t.set(a,r);return t},new Headers)}function xs(e){return e.replaceAll("\0","/").replaceAll("�","/")}function Iy(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Fy(e){window.$_TSR||Oe();const t=e.options.serializationAdapters;if(t?.length){const g=new Map;t.forEach(_=>{g.set(_.key,_.fromSerializable)}),window.$_TSR.t=g,window.$_TSR.buffer.forEach(_=>_())}window.$_TSR.initialized=!0,window.$_TSR.router||Oe();const o=window.$_TSR.router;o.matches.forEach(g=>{g.i=xs(g.i)}),o.lastMatchId&&(o.lastMatchId=xs(o.lastMatchId));const{manifest:n,dehydratedData:a,lastMatchId:r}=o;e.ssr={manifest:n};const s=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:s},await e.options.hydrate?.(a);const i=e.matchRoutes(e.stores.location.get()),c=Promise.all(i.map(g=>e.loadRouteChunk(e.looseRoutesById[g.routeId])));function l(g){const _=e.looseRoutesById[g.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(_){const x=to();g._nonReactive.minPendingPromise=x,g._forcePending=!0,setTimeout(()=>{x.resolve(),e.updateMatch(g.id,C=>(C._nonReactive.minPendingPromise=void 0,{...C,_forcePending:void 0}))},_)}}function d(g){const _=e.looseRoutesById[g.routeId];_&&(_.options.ssr=g.ssr)}let u;i.forEach(g=>{const _=o.matches.find(x=>x.i===g.id);if(!_){g._nonReactive.dehydrated=!1,g.ssr=!1,d(g);return}Iy(g,_),d(g),g._nonReactive.dehydrated=g.ssr!==!1,(g.ssr==="data-only"||g.ssr===!1)&&u===void 0&&(u=g.index,l(g))}),e.stores.setMatches(i);const h=e.stores.matches.get(),f=e.stores.location.get();await Promise.all(h.map(async g=>{try{const _=e.looseRoutesById[g.routeId],x=h[g.index-1]?.context??e.options.context;if(_.options.context){const U={deps:g.loaderDeps,params:g.params,context:x??{},location:f,navigate:N=>e.navigate({...N,_fromLocation:f}),buildLocation:e.buildLocation,cause:g.cause,abortController:g.abortController,preload:!1,matches:i,routeId:_.id};g.__routeContext=_.options.context(U)??void 0}g.context={...x,...g.__routeContext,...g.__beforeLoadContext};const C={ssr:e.options.ssr,matches:h,match:g,params:g.params,loaderData:g.loaderData},L=await _.options.head?.(C),F=await _.options.scripts?.(C);g.meta=L?.meta,g.links=L?.links,g.headScripts=L?.scripts,g.styles=L?.styles,g.scripts=F}catch(_){if(Re(_))g.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${g.routeId}`,_);else throw g.error=_,console.error(`Error during hydration for route ${g.routeId}:`,_),_}}));const k=i[i.length-1].id!==r;if(!i.some(g=>g.ssr===!1)&&!k)return i.forEach(g=>{g._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;const P=Promise.resolve().then(()=>e.load()).catch(g=>{console.error("Error during router hydration:",g)});if(k){const g=i[1];g||Oe(),l(g),g._displayPending=!0,g._nonReactive.displayPendingPromise=P,P.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(g.id,_=>({..._,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var qn=S.use,Ko=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Ea(e){const t=S.useRef({value:e,prev:null}),o=t.current.value;return e!==o&&(t.current={value:e,prev:o}),t.current.prev}function Oy(e,t,o={},n={}){S.useEffect(()=>{if(!e.current||n.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([r])=>{t(r)},o);return a.observe(e.current),()=>{a.disconnect()}},[t,o,n.disabled,e])}function By(e){const t=S.useRef(null);return S.useImperativeHandle(e,()=>t.current,[]),t}function My({promise:e}){if(qn)return qn(e);const t=Tf(e);if(t[We].status==="pending")throw t;if(t[We].status==="error")throw t[We].error;return t[We].data}function qy(e){const t=m.jsx(Dy,{...e});
4return e.fallback?m.jsx(S.Suspense,{fallback:e.fallback,children:t}):t}function Dy(e){const t=My(e);return e.children(t)}function fr(e){const t=e.errorComponent??gr;return m.jsx(Uy,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:o,reset:n})=>o?S.createElement(t,{error:o,reset:n}):e.children})}var Uy=class extends S.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const o=e.getResetKey();return t.error&&t.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function gr({error:e}){const[t,o]=S.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(n=>!n),children:t?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),t?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?m.jsx("code",{children:e.message}):null})}):null]})}function Mc({children:e,fallback:t=null}){return br()?m.jsx(Go.Fragment,{children:e}):m.jsx(Go.Fragment,{children:t})}function br(){return Go.useSyncExternalStore(jy,()=>!0,()=>!1)}function jy(){return()=>{}}var qc=S.createContext(null);function $e(e){return S.useContext(qc)}var Qn=S.createContext(void 0),Vy=S.createContext(void 0),le=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(le||{});function Ky({update:e,notify:t,unwatched:o}){return{link:n,unlink:a,propagate:r,checkDirty:s,shallowPropagate:i};function n(l,d,u){const h=d.depsTail;if(h!==void 0&&h.dep===l)return;const f=h!==void 0?h.nextDep:d.deps;if(f!==void 0&&f.dep===l){f.version=u,d.depsTail=f;return}const k=l.subsTail;if(k!==void 0&&k.version===u&&k.sub===d)return;const P=d.depsTail=l.subsTail={version:u,dep:l,sub:d,prevDep:h,nextDep:f,prevSub:k,nextSub:void 0};f!==void 0&&(f.prevDep=P),h!==void 0?h.nextDep=P:d.deps=P,k!==void 0?k.nextSub=P:l.subs=P}function a(l,d=l.sub){const u=l.dep,h=l.prevDep,f=l.nextDep,k=l.nextSub,P=l.prevSub;return f!==void 0?f.prevDep=h:d.depsTail=h,h!==void 0?h.nextDep=f:d.deps=f,k!==void 0?k.prevSub=P:u.subsTail=P,P!==void 0?P.nextSub=k:(u.subs=k)===void 0&&o(u),f}function r(l){let d=l.nextSub,u;e:do{const h=l.sub;let f=h.flags;if(f&60?f&12?f&4?!(f&48)&&c(l,h)?(h.flags=f|40,f&=1):f=0:h.flags=f&-9|32:f=0:h.flags=f|32,f&2&&t(h),f&1){const k=h.subs;if(k!==void 0){const P=(l=k).nextSub;P!==void 0&&(u={value:d,prev:u},d=P);continue}}if((l=d)!==void 0){d=l.nextSub;continue}for(;u!==void 0;)if(l=u.value,u=u.prev,l!==void 0){d=l.nextSub;continue e}break}while(!0)}function s(l,d){let u,h=0,f=!1;e:do{const k=l.dep,P=k.flags;if(d.flags&16)f=!0;else if((P&17)===17){if(e(k)){const g=k.subs;g.nextSub!==void 0&&i(g),f=!0}}else if((P&33)===33){(l.nextSub!==void 0||l.prevSub!==void 0)&&(u={value:l,prev:u}),l=k.deps,d=k,++h;continue}if(!f){const g=l.nextDep;if(g!==void 0){l=g;continue}}for(;h--;){const g=d.subs,_=g.nextSub!==void 0;if(_?(l=u.value,u=u.prev):l=g,f){if(e(d)){_&&i(g),d=l.sub;continue}f=!1}else d.flags&=-33;d=l.sub;const x=l.nextDep;if(x!==void 0){l=x;continue e}}return f}while(!0)}function i(l){do{const d=l.sub,u=d.flags;(u&48)===32&&(d.flags=u|16,(u&6)===2&&t(d))}while((l=l.nextSub)!==void 0)}function c(l,d){let u=d.depsTail;for(;u!==void 0;){if(u===l)return!0;u=u.prevDep}return!1}}function zy(e,t,o){const n=typeof e=="object",a=n?e:void 0;return{next:(n?e.next:e)?.bind(a),error:(n?e.error:t)?.bind(a),complete:(n?e.complete:o)?.bind(a)}}const Ja=[];let Cn=0;const{link:Ts,unlink:Gy,propagate:Hy,checkDirty:Dc,shallowPropagate:Es}=Ky({update(e){return e._update()},notify(e){Ja[Za++]=e,e.flags&=~le.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=le.Mutable|le.Dirty,Dn(e))}});let $n=0,Za=0,He,er=0;function Uc(e){try{++er,e()}finally{--er||jc()}}function Dn(e){const t=e.depsTail;let o=t!==void 0?t.nextDep:e.deps;for(;o!==void 0;)o=Gy(o,e)}function jc(){if(!(er>0)){for(;$n<Za;){const e=Ja[$n];Ja[$n++]=void 0,e.notify()}$n=0,Za=0}}function As(e,t){const o=typeof e=="function",n=e,a={_snapshot:o?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?le.None:le.Mutable,get(){return He!==void 0&&Ts(a,He,Cn),a._snapshot},subscribe(r){const s=zy(r),i={current:!1},c=Wy(()=>{a.get(),i.current?s.next?.(a._snapshot):i.current=!0});return{unsubscribe:()=>{c.stop()}}},_update(r){const s=He,i=t?.compare??Object.is;if(o)He=a,++Cn,a.depsTail=void 0;else if(r===void 0)return!1;o&&(a.flags=le.Mutable|le.RecursedCheck);try{const c=a._snapshot,l=typeof r=="function"?r(c):r===void 0&&o?n(c):r;return c===void 0||!i(c,l)?(a._snapshot=l,!0):!1}finally{He=s,o&&(a.flags&=~le.RecursedCheck),Dn(a)}}};return o?(a.flags=le.Mutable|le.Dirty,a.get=function(){const r=a.flags;
4if(r&le.Dirty||r&le.Pending&&Dc(a.deps,a)){if(a._update()){const s=a.subs;s!==void 0&&Es(s)}}else r&le.Pending&&(a.flags=r&~le.Pending);return He!==void 0&&Ts(a,He,Cn),a._snapshot}):a.set=function(r){if(a._update(r)){const s=a.subs;s!==void 0&&(Hy(s),Es(s),jc())}},a}function Wy(e){const t=()=>{const n=He;He=o,++Cn,o.depsTail=void 0,o.flags=le.Watching|le.RecursedCheck;try{return e()}finally{He=n,o.flags&=~le.RecursedCheck,Dn(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:le.Watching|le.RecursedCheck,notify(){const n=this.flags;n&le.Dirty||n&le.Pending&&Dc(this.deps,this)?t():this.flags=le.Watching},stop(){this.flags=le.None,this.depsTail=void 0,Dn(this)}};return t(),o}var Aa={exports:{}},La={},Ca={exports:{}},Na={};var Ls;function Yy(){if(Ls)return Na;Ls=1;var e=Fi();function t(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var o=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,r=e.useLayoutEffect,s=e.useDebugValue;function i(u,h){var f=h(),k=n({inst:{value:f,getSnapsh
4ot:h}}),P=k[0].inst,g=k[1];return r(function(){P.value=f,P.getSnapshot=h,c(P)&&g({inst:P})},[u,f,h]),a(function(){return c(P)&&g({inst:P}),u(function(){c(P)&&g({inst:P})})},[u]),s(f),f}function c(u){var h=u.getSnapshot;u=u.value;try{var f=h();return!o(u,f)}catch{return!0}}function l(u,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:i;return Na.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Na}var Cs;function Qy(){return Cs||(Cs=1,Ca.exports=Yy()),Ca.exports}var Ns;function Xy(){if(Ns)return La;Ns=1;var e=Fi(),t=Qy();function o(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var n=typeof Object.is=="function"?Object.is:o,a=t.useSyncExternalStore,r=e.useRef,s=e.useEffect,i=e.useMemo,c=e.useDebugValue;return La.useSyncExternalStoreWithSelector=function(l,d,u,h,f){var k=r(null);if(k.current===null){var P={hasValue:!1,value:null};k.current=P}else P=k.current;k=i(function(){function _(U){if(!x){if(x=!0,C=U,U=h(U),f!==void 0&&P.hasValue){var N=P.value;if(f(N,U))return L=N}return L=U}if(N=L,n(C,U))return N;var E=h(U);return f!==void 0&&f(N,E)?(C=U,N):(C=U,L=E)}var x=!1,C,L,F=u===void 0?null:u;return[function(){return _(d())},F===null?void 0:function(){return _(F())}]},[d,u,h,f]);var g=a(l,k[0],k[1]);return s(function(){P.hasValue=!0,P.value=g},[g]),c(g),g},La}var Is;function Jy(){return Is||(Is=1,Aa.exports=Xy()),Aa.exports}var Zy=Jy();function ev(e,t){return e===t}function he(e,t,o=ev){const n=S.useCallback(s=>{if(!e)return()=>{};const{unsubscribe:i}=e.subscribe(s);return i},[e]),a=S.useCallback(()=>e?.get(),[e]);return Zy.useSyncExternalStoreWithSelector(n,a,a,t,o)}var tv={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};
4function ro(e){const t=$e(),o=S.useContext(e.from?Vy:Qn),n=e.from??o,a=n?e.from?t.stores.getRouteMatchStore(n):t.stores.matchStores.get(n):void 0,r=S.useRef(void 0);return he(a??tv,s=>{if((e.shouldThrow??!0)&&!s&&Oe(),s===void 0)return;const i=e.select?e.select(s):s;if(e.structuralSharing??t.options.defaultStructuralSharing){const c=Pt(r.current,i);return r.current=c,c}return i})}function Vc(e){return ro({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Kc(e){const{select:t,...o}=e;return ro({...o,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function zc(e){return ro({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const o=e.strict===!1?t.params:t._strictParams;return e.select?e.select(o):o}})}function Gc(e){return ro({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Hc(e){const t=$e();return S.useCallback(o=>t.navigate({...o,from:o.from??e?.from}),[e?.from,t])}function Wc(e){return ro({...e,select:t=>e.select?e.select(t.context):t.context})}function ov(e,t){const o=$e(),n=By(t),{activeProps:a,inactiveProps:r,activeOptions:s,to:i,preload:c,preloadDelay:l,preloadIntentProximity:d,hashScrollIntoView:u,replace:h,startTransition:f,resetScroll:k,viewTransition:P,children:g,target:_,disabled:x,style:C,className:L,onClick:F,onBlur:U,onFocus:N,onMouseEnter:E,onMouseLeave:D,onTouchStart:W,ignoreBlocker:H,params:Y,search:Be,hash:_e,state:Ee,mask:Ae,reloadDocument:ge,unsafeRelative:nt,from:po,_fromLocation:z,...at}=e,mo=br(),vt=S.useMemo(()=>e,[o,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),je=he(o.stores.location,ce=>ce,(ce,Fe)=>ce.href===Fe.href),ee=S.useMemo(()=>{const ce={_fromLocation:je,...vt};return o.buildLocation(ce)},[o,je,vt]),we=ee.maskedLocation?ee.maskedLocation.publicHref:ee.publicHref,Ut=ee.maskedLocation?ee.maskedLocation.external:ee.external,kt=S.useMemo(()=>cv(we,Ut,o.history,x),[x,Ut,we,o.history]),ie=S.useMemo(()=>{if(kt?.external)return In(kt.href,o.protocolAllowlist)?void 0:kt.href;if(!lv(i)&&!(typeof i!="string"||i.indexOf(":")===-1))try{return new URL(i),In(i,o.protocolAllowlist)?void 0:i}catch{}},[i,kt,o.protocolAllowlist]),ho=S.useMemo(()=>{if(ie)return!1;if(s?.exact){if(!Gh(je.pathname,ee.pathname,o.basepath))return!1}else{const ce=Fn(je.pathname,o.basepath),Fe=Fn(ee.pathname,o.basepath);if(!(ce.startsWith(Fe)&&(ce.length===Fe.length||ce[Fe.length]==="/")))return!1}return(s?.includeSearch??!0)&&!Ne(je.search,ee.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:s?.includeHash?mo&&je.hash===ee.hash:!0},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,je,ie,mo,ee.hash,ee.pathname,ee.search,o.basepath]),rt=ho?Wt(a,{})??nv:Ia,st=ho?Ia:Wt(r,{})??Ia,fo=[L,rt.className,st.className].filter(Boolean).join(" "),jt=(C||rt.style||st.style)&&{...C,...rt.style,...st.style},[uh,zr]=S.useState(!1),Gr=S.useRef(!1),go=e.reloadDocument||ie?!1:c??o.options.defaultPreload,$a=l??o.options.defaultPreloadDelay??0,Vt=S.useCallback(()=>{o.preloadRoute({...vt,_builtLocation:ee}).catch(ce=>{console.warn(ce),console.warn(Ef)})},[o,vt,ee]);Oy(n,S.useCallback(ce=>{ce?.isIntersecting&&Vt()},[Vt]),iv,{disabled:!!x||go!=="viewport"}),S.useEffect(()=>{Gr.current||!x&&go==="render"&&(Vt(),Gr.current=!0)},[x,Vt,go]);const dh=ce=>{const Fe=ce.currentTarget.getAttribute("target"),Kt=_!==void 0?_:Fe;if(!x&&!uv(ce)&&!ce.defaultPrevented&&(!Kt||Kt==="_self")&&ce.button===0){ce.preventDefault(),hh.flushSync(()=>{zr(!0)});const mh=o.subscribe("onResolved",()=>{mh(),zr(!1)});o.navigate({...vt,replace:h,resetScroll:k,hashScrollIntoView:u,startTransition:f,viewTransition:P,ignoreBlocker:H})}};if(ie)return{...at,ref:n,href:ie,...g&&{children:g},..._&&{target:_},...x&&{disabled:x},...C&&{style:C},...L&&{className:L},...F&&{onClick:F},...U&&{onBlur:U},...N&&{onFocus:N},...E&&{onMouseEnter:E},...D&&{onMouseLeave:D},...W&&{onTouchStart:W}};const Hr=ce=>{if(x||go!=="intent")return;if(!$a){Vt();return}const Fe=ce.currentTarget;if(Uo.has(Fe))return;const Kt=setTimeout(()=>{Uo.delete(Fe),Vt()},$a);Uo.set(Fe,Kt)},ph=ce=>{x||go!=="intent"||Vt()},Wr=ce=>{if(x||!go||!$a)return;const Fe=ce.currentTarget,Kt=Uo.get(Fe);Kt&&(clearTimeout(Kt),Uo.delete(Fe))};return{...at,...rt,...st,href:kt?.href,ref:n,onClick:bo([F,dh]),onBlur:bo([U,Wr]),onFocus:bo([N,Hr]),onMouseEnter:bo([E,Hr]),onMouseLeave:bo([D,Wr]),onTouchStart:bo([W,ph]),disabled:!!x,target:_,...jt&&{style:jt},...fo&&{className:fo}
4,...x&&av,...ho&&rv,...mo&&uh&&sv}}var Ia={},nv={className:"active"},av={role:"link","aria-disabled":!0},rv={"data-status":"active","aria-current":"page"},sv={"data-transitioning":"transitioning"},Uo=new WeakMap,iv={rootMargin:"100px"},bo=e=>t=>{for(const o of e)if(o){if(t.defaultPrevented)return;o(t)}};function cv(e,t,o,n){if(!n)return t?{href:e,external:!0}:{href:o.createHref(e)||"/",external:!1}}function lv(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var yr=S.forwardRef((e,t)=>{const{_asChild:o,...n}=e,{type:a,...r}=ov(n,t),s=typeof n.children=="function"?n.children({isActive:r["data-status"]==="active"}):n.children;if(!o){const{disabled:i,...c}=r;return S.createElement("a",c,s)}return S.createElement(o,r,s)});function uv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var dv=class extends ec{constructor(t){super(t),this.useMatch=o=>ro({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>Wc({...o,from:this.id}),this.useSearch=o=>Gc({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>zc({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Kc({...o,from:this.id}),this.useLoaderData=o=>Vc({...o,from:this.id}),this.useNavigate=()=>Hc({from:this.fullPath}),this.Link=Go.forwardRef((o,n)=>m.jsx(yr,{ref:n,from:this.fullPath,...o}))}};function pv(e){return new dv(e)}function mv(){return e=>fv(e)}var hv=class extends If{constructor(e){super(e),this.useMatch=t=>ro({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Wc({...t,from:this.id}),this.useSearch=t=>Gc({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>zc({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Kc({...t,from:this.id}),this.useLoaderData=t=>Vc({...t,from:this.id}),this.useNavigate=()=>Hc({from:this.fullPath}),this.Link=Go.forwardRef((t,o)=>m.jsx(yr,{ref:o,from:this.fullPath,...t}))}};function fv(e){return new hv(e)}function v(e){return new gv(e,{silent:!0}).createRoute}var gv=class{constructor(e,t){this.path=e,this.createRoute=o=>{const n=pv(o);return n.isRoot=!1,n},this.silent=t?.silent}};function y(e,t){let o,n,a,r;const s=()=>(o||(o=e().then(c=>{o=void 0,n=c[t??"default"]}).catch(c=>{if(a=c,Th(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const l=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,"1"),r=!0)}})),o),i=function(l){if(r)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!n)if(qn)qn(s());else throw s();return S.createElement(n,l)};return i.preload=s,i}
4function bv(e){const t=$e(),o=`not-found-${he(t.stores.location,n=>n.pathname)}-${he(t.stores.status,n=>n)}`;return m.jsx(fr,{getResetKey:()=>o,onCatch:(n,a)=>{if(Re(n))e.onCatch?.(n,a);else throw n},errorComponent:({error:n})=>{if(Re(n))return e.fallback?.(n);throw n},children:e.children})}function yv(){return m.jsx("p",{children:"Not Found"})}function $o(e){return m.jsx(m.Fragment,{children:e.children})}function Yc(e,t,o){return t.options.notFoundComponent?m.jsx(t.options.notFoundComponent,{...o}):e.options.defaultNotFoundComponent?m.jsx(e.options.defaultNotFoundComponent,{...o}):m.jsx(yv,{})}function vv(e){return null}function kv(){return vv($e()),null}var Qc=S.memo(function({matchId:t}){const o=$e(),n=o.stores.matchStores.get(t);n||Oe();const a=he(o.stores.loadedAt,s=>s),r=he(n,s=>s);return m.jsx($v,{router:o,matchId:t,resetKey:a,matchState:S.useMemo(()=>{const s=r.routeId,i=o.routesById[s].parentRoute?.id;return{routeId:s,ssr:r.ssr,_displayPending:r._displayPending,parentRouteId:i}},[r._displayPending,r.routeId,r.ssr,o.routesById])})});function $v({router:e,matchId:t,resetKey:o,matchState:n}){const a=e.routesById[n.routeId],r=a.options.pendingComponent??e.options.defaultPendingComponent,s=r?m.jsx(r,{}):null,i=a.options.errorComponent??e.options.defaultErrorComponent,c=a.options.onCatch??e.options.defaultOnCatch,l=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,d=n.ssr===!1||n.ssr==="data-only",u=(!a.isRoot||a.options.wrapInSuspense||d)&&(a.options.wrapInSuspense??r??(a.options.errorComponent?.preload||d))?S.Suspense:$o,h=i?fr:$o,f=l?bv:$o;return m.jsxs(a.isRoot?a.options.shellComponent??$o:$o,{children:[m.jsx(Qn.Provider,{value:t,children:m.jsx(u,{fallback:s,children:m.jsx(h,{getResetKey:()=>o,errorComponent:i||gr,onCatch:(k,P)=>{if(Re(k))throw k.routeId??=n.routeId,k;c?.(k,P)},children:m.jsx(f,{fallback:k=>{if(k.routeId??=n.routeId,!l||k.routeId&&k.routeId!==n.routeId||!k.routeId&&!a.isRoot)throw k;return S.createElement(l,k)},children:d||n._displayPending?m.jsx(Mc,{fallback:s,children:m.jsx(Fs,{matchId:t})}):m.jsx(Fs,{matchId:t})})})})}),n.parentRouteId===Xt?m.jsxs(m.Fragment,{children:[m.jsx(_v,{resetKey:o}),e.options.scrollRestoration&&Oi?m.jsx(kv,{}):null]}):null]})}function _v({resetKey:e}
4){const t=$e(),o=S.useRef(void 0);return Ko(()=>{const n=t.latestLocation.href;(o.current===void 0||o.current!==n)&&(t.emit({type:"onRendered",...Ro(t.stores.location.get(),t.stores.resolvedLocation.get())}),o.current=n)},[t.latestLocation.state.__TSR_key,e,t]),null}var Fs=S.memo(function({matchId:t}){const o=$e(),n=(d,u)=>o.getMatch(d.id)?._nonReactive[u]??d._nonReactive[u],a=o.stores.matchStores.get(t);a||Oe();const r=he(a,d=>d),s=r.routeId,i=o.routesById[s],c=S.useMemo(()=>{const d=(o.routesById[s].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:s,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return d?JSON.stringify(d):void 0},[s,r.loaderDeps,r._strictParams,r._strictSearch,o.options.defaultRemountDeps,o.routesById]),l=S.useMemo(()=>{const d=i.options.component??o.options.defaultComponent;return d?m.jsx(d,{},c):m.jsx(Xc,{})},[c,i.options.component,o.options.defaultComponent]);if(r._displayPending)throw n(r,"displayPendingPromise");if(r._forcePending)throw n(r,"minPendingPromise");if(r.status==="pending"){const d=i.options.pendingMinMs??o.options.defaultPendingMinMs;if(d){const u=o.getMatch(r.id);if(u&&!u._nonReactive.minPendingPromise){const h=to();u._nonReactive.minPendingPromise=h,setTimeout(()=>{h.resolve(),u._nonReactive.minPendingPromise=void 0},d)}}throw n(r,"loadPromise")}if(r.status==="notFound")return Re(r.error)||Oe(),Yc(o,i,r.error);if(r.status==="redirected")throw Ie(r.error)||Oe(),n(r,"loadPromise");if(r.status==="error")throw r.error;return l}
4),Xc=S.memo(function(){const t=$e(),o=S.useContext(Qn);let n,a=!1,r;{const l=o?t.stores.matchStores.get(o):void 0;[n,a]=he(l,d=>[d?.routeId,d?.globalNotFound??!1]),r=he(t.stores.matchesId,d=>d[d.findIndex(u=>u===o)+1])}const s=n?t.routesById[n]:void 0,i=t.options.defaultPendingComponent?m.jsx(t.options.defaultPendingComponent,{}):null;if(a)return s||Oe(),Yc(t,s,void 0);if(!r)return null;const c=m.jsx(Qc,{matchId:r});return n===Xt?m.jsx(S.Suspense,{fallback:i,children:c}):c});function wv(){const e=$e(),t=S.useRef({router:e,mounted:!1}),[o,n]=S.useState(!1),a=he(e.stores.isLoading,u=>u),r=he(e.stores.hasPending,u=>u),s=Ea(a),i=a||o||r,c=Ea(i),l=a||r,d=Ea(l);return e.startTransition=u=>{n(!0),S.startTransition(()=>{u(),n(!1)})},S.useEffect(()=>{const u=e.history.subscribe(e.load),h=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return lt(e.latestLocation.publicHref)!==lt(h.publicHref)&&e.commitLocation({...h,replace:!0}),()=>{u()}},[e,e.history]),Ko(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(h){console.error(h)}})()},[e]),Ko(()=>{s&&!a&&e.emit({type:"onLoad",...Ro(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,a]),Ko(()=>{d&&!l&&e.emit({type:"onBeforeRouteMount",...Ro(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,d,e]),Ko(()=>{if(c&&!i){const u=Ro(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...u}),Uc(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[i,c,e]),null}function Rv(){const e=$e(),t=e.routesById[Xt].options.pendingComponent??e.options.defaultPendingComponent,o=t?m.jsx(t,{}):null,n=m.jsxs(typeof document<"u"&&e.ssr?$o:S.Suspense,{fallback:o,children:[m.jsx(wv,{}),m.jsx(Pv,{})]});return e.options.InnerWrap?m.jsx(e.options.InnerWrap,{children:n}):n}function Pv(){const e=$e(),t=he(e.stores.firstId,a=>a),o=he(e.stores.loadedAt,a=>a),n=t?m.jsx(Qc,{matchId:t}):null;return m.jsx(Qn.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?n:m.jsx(fr,{getResetKey:()=>o,errorComponent:gr,onCatch:void 0,children:n})})}var Sv=e=>({createMutableStore:As,createReadonlyStore:As,batch:Uc}),xv=e=>new Tv(e),Tv=class extends hf{constructor(e){super(e,Sv)}};function Ev({router:e,children:t,...o}){Mi(o)&&e.update({...e.options,...o,context:{...e.options.context,...o.context}});const n=m.jsx(qc.Provider,{value:e,children:t});return e.options.Wrap?m.jsx(e.options.Wrap,{children:n}):n}function Av({router:e,...t}){return m.jsx(Ev,{router:e,...t,children:m.jsx(Rv,{})})}function oo(e){const t=$e({warn:e?.router===void 0}),o=e?.router||t,n=S.useRef(void 0);return he(o.stores.__store,a=>{if(e?.select){if(e.structuralSharing??o.options.defaultStructuralSharing){const r=Pt(n.current,e.select(a));return n.current=r,r}return e.select(a)}return a})}function Os(e,t){if(t)for(const[o,n]of Object.entries(t))o!=="suppressHydrationWarning"&&n!==void 0&&n!==!1&&e.setAttribute(o,typeof n=="boolean"?"":String(n))}function Jc(e){const{attrs:t,children:o,nonce:n,preventScriptHoist:a}=e;switch(e.tag){case"title":return m.jsx("title",{...t,suppressHydrationWarning:!0,children:o});case"meta":return m.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return m.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:n,suppressHydrationWarning:!0});case"style":return e.inlineCss,m.jsx("style",{...t,dangerouslySetInnerHTML:{__html:o},nonce:n});case"script":return m.jsx(Lv,{attrs:t,preventScriptHoist:a,children:o});default:return null}}function Lv({attrs:e,children:t,preventScriptHoist:o}){$e();const n=br(),a=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(S.useEffect(()=>{if(!a){if(e?.src){const r=(()=>{try{const i=document.baseURI||window.location.href;return new URL(e.src,i).href}catch{return e.src}})();for(const i of document.querySelectorAll("script[src]"))if(i.src===r)return;const s=document.createElement("script");return Os(s,e),document.head.appendChild(s),()=>s.remove()}if(typeof t=="string"){const r=typeof e?.type=="string"?e.type:"text/javascript",s=typeof e?.nonce=="string"?e.nonce:void 0;for(const c of document.querySelectorAll("script:not([src])")){if(!(c instanceof HTMLScriptElement))continue;const l=c.getAttribute("type")??"text/javascript",d=c.getAttribute("nonce")??void 0;if(c.textContent===t&&l===r&&d===s)return}const i=document.createElement("script");return i.textContent=t,Os(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t=="string")return m.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});
4if(!n){if(e?.src)return m.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return m.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Cv=e=>{const t=$e(),o=t.options.ssr?.nonce,n=he(t.stores.matches,u=>u.map(h=>h.meta).filter(h=>h!==void 0),Ne),a=S.useMemo(()=>{const u=[],h={};let f;for(let k=n.length-1;k>=0;k--){const P=n[k];for(let g=P.length-1;g>=0;g--){const _=P[g];if(_)if(_.title)f||(f={tag:"title",children:_.title});else if("script:ld+json"in _)try{const x=JSON.stringify(_["script:ld+json"]);u.push({tag:"script",attrs:{type:"application/ld+json"},children:Nh(x)})}catch{}else{const x=_.name??_.property;if(x){if(h[x])continue;h[x]=!0}u.push({tag:"meta",attrs:{..._,nonce:o}})}}}return f&&u.push(f),o&&u.push({tag:"meta",attrs:{property:"csp-nonce",content:o}}),u.reverse(),u},[n,o]),r=he(t.stores.matches,u=>u.flatMap(h=>h.links??[]).filter(h=>h!==void 0).map(h=>({tag:"link",attrs:{...h,nonce:o}})),Ne),s=he(t.stores.matches,u=>{const h=t.ssr?.manifest,f=[];return h&&(u.forEach(k=>{h.routes[k.routeId]?.css?.forEach(P=>{const g=Nf(P);f.push({tag:"link",attrs:{rel:"stylesheet",...g,crossOrigin:Zi(e,"stylesheet")??g.crossOrigin,suppressHydrationWarning:!0,nonce:o}})})}),h.inlineStyle&&f.push({tag:"style",attrs:{...h.inlineStyle.attrs,nonce:o},children:h.inlineStyle.children,inlineCss:!0})),f},Ne),i=he(t.stores.matches,u=>{const h=[],f=t.ssr?.manifest;return f&&u.forEach(k=>{f.routes[k.routeId]?.preloads?.forEach(P=>{h.push({tag:"link",attrs:{...Lf(f,P,e),nonce:o}})})}),h},Ne),c=he(t.stores.matches,u=>u.flatMap(h=>h.styles??[]).filter(h=>h!==void 0).map(({children:h,...f})=>({tag:"style",attrs:{...f,nonce:o},children:h})),Ne),l=he(t.stores.matches,u=>u.flatMap(h=>h.headScripts??[]).filter(h=>h!==void 0).map(({children:h,...f})=>({tag:"script",attrs:{...f,nonce:o},children:h})),Ne),d=[];return vn(d,a),d.push(...i),vn(d,r),d.push(...s),vn(d,c),vn(d,l),d};function Nv(e){const t=Cv(e.assetCrossOrigin),o=$e().options.ssr?.nonce;return m.jsx(m.Fragment,{children:t.map(n=>S.createElement(Jc,{...n,key:`tsr-meta-${JSON.stringify(n)}`,nonce:o}))})}var Iv=()=>{const e=$e(),t=e.options.ssr?.nonce,o=r=>{const s=[],i=e.ssr?.manifest;if(!i)return[];for(const c of r){const l=i.routes[c.routeId]?.scripts;if(l)for(const d of l)s.push({tag:"script",attrs:{...d.attrs,nonce:t},children:d.children,...typeof d.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return s},n=r=>r.map(s=>s.scripts).flat(1).filter(Boolean).map(({children:s,...i})=>({tag:"script",attrs:{...i,suppressHydrationWarning:!0,nonce:t},children:s})),a=he(e.stores.matches,o,Ne);return Fv(e,he(e.stores.matches,n,Ne),a)};function Fv(e,t,o){const n=[...t,...o];return m.jsx(m.Fragment,{children:n.map((a,r)=>S.createElement(Jc,{...a,key:`tsr-scripts-${a.tag}-${r}`}))})}const Ov={theme:"system",resolvedTheme:"dark",setTheme:()=>null},Zc=S.createContext(Ov),el="cms-theme",vr="(prefers-color-scheme: dark)",Bv=()=>typeof window>"u"?"light":window.matchMedia(vr).matches?"dark":"light",Mv=()=>"light",qv=e=>{if(typeof window>"u"||typeof window.matchMedia!="function")return()=>{};const t=window.matchMedia(vr);return typeof t.addEventListener=="function"?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):(t.addListener(e),()=>t.removeListener(e))},tl=()=>{const e=S.useContext(Zc);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},FB=()=>{const{resolvedTheme:e}=tl();return e==="dark"},Dv=e=>e!==null&&["dark","light","system"].includes(e);function Uv({children:e,defaultTheme:t="dark",storageKey:o=el,...n}){const[a,r]=S.useState(t),s=S.useSyncExternalStore(qv,Bv,Mv),i=a==="system"?s:a;S.useEffect(()=>{const l=localStorage.getItem(o);Dv(l)&&r(l)},[o]),S.useEffect(()=>{const l=document.documentElement,d=i;(l.classList.contains("dark")?"dark":l.classList.contains("light")?"light":null)!==d&&(l.classList.remove("light","dark"),l.classList.add(d))},[i]);const c=l=>{localStorage.setItem(o,l),r(l)};return m.jsx(Zc.Provider,{...n,value:{theme:a,resolvedTheme:i,setTheme:c},children:e})}const jv=({children:e})=>m.jsx(Uv,{defaultTheme:"dark",children:e});function kr(e){for(const t of e.plugins??[])if(Array.isArray(t)&&t[0]==="@docusaurus/plugin-google-gtag")return t[1].trackingID??null;return null}const be={title:"Beancount.io",tagline:"Plain-Text Accounting. Powerful, Precise, Auditable.",url:"https://beancount.io",favicon:"/img/favicon.png",plugins:[["@docusaurus/plugin-google-gtag",{trackingID:"G-94TFG6X2Q5",anonymizeIP:!1}],["@docusaurus/plugin-client-redirects",{redirects:[{from:["/about"],to:"/about-us"},{from:["/privacy"],to:"/privacy-policy"},{from:["/page/2023-06-09-tracking-real-estate"],to:"/blog/2023/06/09/tracking-real-estate"},{from:["/page/en/amortize"],to:"/docs/Tips/amortize"},{from:["/page/en/cheat-sheet"],to:"/docs/Basics/cheatsheet"},{from:["/page/legal/privacy-policy/"],to:"/privacy-policy"},{from:["/page/legal/terms-of-service/"],to:"/terms-of-service"},{from:["/page/en/introduction-to-beancount"],to:"/docs/introduction-to-beancount"},{from:["/appstore"],to:"https://onelink.to/38sr93"},{from:["/tg"],to:"https://t.me/beancount"},{from:["/ios"],to:"https://apps.apple.com/us/app/id1527950512"},{from:["/android"],to:"https://play.google.com/store/apps/details?id=io.beancount.android"},{from:["/github"],to:"https://github.com/stargately/beancount-mobile"},{from:["/youtube"],to:"https://www.youtube.com/@beancount_io"}]}],["@docusaurus/plugin-content-blog",{id:"research-logs",path:"research-logs",routeBasePath:"bean-labs/research-logs",blogTitle:"Bean Labs Research Log",blogDescription:"Open experiments and findings from Bean Labs — the Finance AI Agent research initiative by Beancount.io.",postsPerPage:12,tags:"tags.yml",onInl
4ineTags:"warn",truncateMarker:"<!-- truncate -->",remarkPlugins:!0,rehypePlugins:!0}]],i18n:{defaultLocale:"en",locales:["en","zh","bg","ca","de","es","fa","fr","ja","ko","nl","pt","ru","sk","uk","it"],localeConfigs:{en:{label:"English",htmlLang:"en-US"},zh:{label:"中文",htmlLang:"zh"},bg:{label:"Български",htmlLang:"bg"},ca:{label:"Català",htmlLang:"ca"},de:{label:"Deutsch",htmlLang:"de"},es:{label:"Español",htmlLang:"es"},fa:{label:"فارسی",htmlLang:"fa",direction:"rtl"},fr:{label:"Français",htmlLang:"fr"},ja:{label:"日本語",htmlLang:"ja"},ko:{label:"한국어",htmlLang:"ko"},nl:{label:"Nederlands",htmlLang:"nl"},pt:{label:"Português",htmlLang:"pt"},ru:{label:"Русский",htmlLang:"ru"},sk:{label:"Slovenčina",htmlLang:"sk"},uk:{label:"Українська",htmlLang:"uk"},it:{label:"Italiano",htmlLang:"it"}}},presets:[["classic",{docs:{path:"docs",routeBasePath:"docs",sidebarPath:"./sidebars.ts",showLastUpdateTime:!0},blog:{path:"blog",routeBasePath:"blog",tags:"tags.yml",onInlineTags:"throw",postsPerPage:12,blogTitle:"Beancount.io Blog",blogDescription:"Plain-text accounting insights, tutorials, and updates from the Beancount.io team.",truncateMarker:"<!-- truncate -->",remarkPlugins:!0,rehypePlugins:!0}}]],themeConfig:{image:"https://opengraph-image.blockeden.xyz/og/beancount-io/v1/card.webp?title=Plain-Text%20Accounting.%20Powerful%2C%20Precise%2C%20Auditable.",algolia:{appId:"PUCJ1UTI0G",apiKey:"dd45a6ad725ee19b98a656ec3bf6f5df",indexName:"beancount",searchParameters:{}},navbar:{logo:{src:"/img/favicon.svg",height:32},items:[{id:"product",label:"Product",i18nKey:"navbar.product",position:"left",sections:[{id:"bookkeeping",i18nKey:"navbar.group.bookkeeping",items:[{id:"bank-sync",to:"/bank-sync",label:"Bank Sync",i18nKey:"item.label.Bank Sync",descriptionKey:"navbar.description.bankSync",icon:"landmark"},{id:"smart-import",to:"/smart-import",label:"Smart Import",i18nKey:"item.label.Smart Import",descriptionKey:"navbar.description.smartImport",icon:"file-input"}]},{id:"insights-reporting",i18nKey:"navbar.group.insightsReporting",items:[{id:"tracking",to:"/tracking",label:"Tracking",i18nKey:"item.label.Tracking",descriptionKey:"navbar.description.tracking",icon:"line-chart"},{id:"live-prices",to:"/live-prices",label:"Live Prices",i18nKey:"item.label.Live Prices",descriptionKey:"navbar.description.livePrices",icon:"line-chart"},{id:"ai-assistant",to:"/assistant",label:"AI Assistant",i18nKey:"item.label.AI Assistant",descriptionKey:"navbar.description.aiCfo",icon:"bot"},{id:"hosted-fava",to:"/fava",label:"Hosted Fava",i18nKey:"item.label.Hosted Fava",descriptionKey:"navbar.description.hostedFava",icon:"layout-dashboard"}]},{id:"audiences",i18nKey:"navbar.group.audiences",items:[{id:"for-couples",to:"/for-couples",label:"For Couples",i18nKey:"item.label.For Couples",descriptionKey:"navbar.description.forCouples",icon:"heart-handshake"},{id:"for-professionals",to:"/for-professionals",label:"For Professionals",i18nKey:"item.label.For Professionals",descriptionKey:"navbar.description.forProfessionals",icon:"briefcase"}]},{id:"control-integrations",i18nKey:"navbar.group.controlIntegrations",items:[{id:"git-for-beancount",to:"/git",label:"Git for Beancount",i18nKey:"item.label.Git for Beancount",descriptionKey:"navbar.description.git",icon:"git-branch"},{id:"beancount-mcp",to:"/mcp",label:"Beancount MCP",i18nKey:"item.label.Beancount MCP",descriptionKey:"navbar.description.mcp",icon:"plug"}]}]},{id:"resources",label:"Resources",i18nKey:"navbar.resources",position:"left",sections:[{id:"learn",i18nKey:"navbar.group.learn",items:[{id:"help-center",to:"/docs/help-center",label:"Help Center",i18nKey:"item.label.Help Center",descriptionKey:"navbar.description.helpCenter",icon:"circle-help"},{id:"blog",to:"/blog",label:"Blog",i18nKey:"item.label.Blog",descriptionKey:"navbar.description.blog",icon:"newspaper"}]},{id:"proof-trust",i18nKey:"navbar.group.proofTrust",items:[{id:"open-ledger",to:"/open-ledger",label:"Open Ledger",i18nKey:"item.label.Open Ledger",descriptionKey:"navbar.description.openLedger",icon:"book-open-check"},{id:"security",to:"/security",label:"Security",i18nKey:"navbar.security",descriptionKey:"navbar.description.security",icon:"shield-check"}]},{id:"ecosystem",i18nKey:"navbar.group.ecosystem",items:[{id:"awesome-plain-text-accounting",to:"/awesome-plain-text-accounting",label:"Awesome Plain-Text Accounting",i18nKey:"navbar.awesomePlainTextAccounting",descriptionKey:"navbar.description.awesomePlainTextAccounting",icon:"library-big"},{id:"founder-resources",to:"/founder-resources",label:"Founder Resources",i18nKey:"navbar.founderResources",descriptionKey:"navbar.description.founderResources",icon:"rocket"}]}]},{id:"pricing",to:"/pricing",label:"Pricing",i18nKey:"item.label.Pricing",position:"left"},{id:"download",to:"/download",label:"Download",i18nKey:"item.label.Download",position:"left"},{id:"sign-in",href:"https://beancount.io/ledger/?utm_source=beancount.io&utm_medium=cta&utm_campaign=nav_signin",label:"Sign in",i18nKey:"navbar.signIn",position:"right",role:"signin"},{id:"start-free",href:"https://beancount.io/sign-up/?next=%2Fledger%2F&utm_source=beancount.io&utm_medium=cta&utm_campaign=nav_signup",label:"Start Free",i18nKey:"navbar.startFree",position:"right",role:"primary"}]},footer:{logo:{src:"/img/favicon.svg",href:"/",height:32},links:[{title:"Getting Started",items:[{label:"Documentation",to:"/docs/help-center"},{label:"API Reference",to:"/docs/api-reference"},{label:"Quick Start Guide",to:"/docs/Basics/getting-started"},{label:"FAQ",to:"/docs/faq"},{label:"First Transaction",to:"/docs/add-your-first-transaction-ui"},{label:"Open Ledger",to:"/open-ledger"},{label:"Changelog",to:"/changelog"}]},{title:"Features",items:[{label:"Tracking",to:"/tracking"},{label:"Live Prices",to:"/live-prices"},{label:"For Couples",to:"/for-couples"},{label:"For Professionals",to:"/for-professionals"},{label:"Hosted Fava",to:"/fava"},{label:"Git Version Control",to:"/git"},{label:"Beancount MCP",to:"/mcp"},{label:"AI Automation",to:"/docs/Solutions/using-llms-to-automate-and-enhance-bookkeeping-with-beancount"},{label:"Mobile Apps",to:"/download"},{label:"Pricing",to:"/pricing"}]},{title:"Community",items:[{label:"Twitter/X",href:"https://x.com/bexdotco"},{label:"Telegram Chat",href:"https://t.me/beancount"},{label:"GitHub",href:"https://github.com/stargately/beancount-mobile"},{label:"YouTube",href:"https://www.youtube.com/@beancount_io"},{label:"Blog",to:"/blog"},{label:"About Us",to:"/about-us"},{label:"Brand Assets",to:"/brand-assets"}]},{title:"Legal",items:[{label:"Privacy Policy",to:"/privacy-policy"},{label:"Terms of Service",to:"/terms-of-service"},{label:"Security",to:"/security"},{label:"Compare",to:"/compare"},{label:"Founder Resources Hub",to:"/founder-resources"}]}],copyright:`Copyright © 2019 - ${new Date().getFullYear()} Beancount.io`}}},ae=be.i18n?.defaultLocale,mt=be.i18n?.locales??["en"];function ol(e){return mt.includes(e)}function Nt(e){return be.i18n?.localeConfigs?.[e]?.htmlLang??e}function nl(e){return be.i18n?.localeConfigs?.[e]?.direction}
4function al(e){return`language:${Nt(e)}`}function A(e,t,o){const n=t[e];if(!n)return e;let a=n.message;if(o)for(const[r,s]of Object.entries(o))a=a.replaceAll(`{${r}}`,s);return a}function Me(e,t,o){for(const n of t){const a=A(n,e);if(a!==n)return a}return o}async function Vv(e,t){const o=`../../i18n/${t}/${e}.json`,{flatModules:n}=await b(async()=>{const{flatModules:s}=await import("./i18n-flat-modules-Bowg5rB4.js");return{flatModules:s}},__vite__mapDeps([0,1])),a=n()[o];if(a)return a();const{sliceModules:r}=await b(async()=>{const{sliceModules:s}=await import("./i18n-slices-PKU48MQd.js");return{sliceModules:s}},__vite__mapDeps([2,1]));return r()[o]?.()??null}const wt=new Map;function $r(e){return e.length<=1?e:[...new Set(e)].sort()}function rl(e,t){return t.length?`${e}|${t.join(",")}`:e}function sl(e){return typeof e.then=="function"}function il(e,t){const o=rl(e,t),n=wt.get(o);if(n)return n;const a=Kv(e,t);return wt.set(o,a),a.then(r=>{wt.get(o)===a&&wt.set(o,r)},()=>{wt.get(o)===a&&wt.delete(o)}),a}function X(e,t=[]){const o=$r(t),n=il(e,o);return sl(n)?n:Promise.resolve(n)}function cl(e,t,o){const n=$r(t),a=rl(e,n);wt.get(a)!==o&&wt.set(a,o)}function ll(e,t=[]){const o=$r(t),n=il(e,o);if(sl(n))throw n;return n}async function Kv(e,t){const o=`../../i18n/${e}/code.json`,n=`../../i18n/${e}/docusaurus-theme-classic/footer.json`,{flatModules:a,footerModules:r}=await b(async()=>{const{flatModules:d,footerModules:u}=await import("./i18n-flat-modules-Bowg5rB4.js");return{flatModules:d,footerModules:u}},__vite__mapDeps([0,1])),[s,i,...c]=await Promise.all([a()[o]?.()??null,r()[n]?.()??null,...t.map(d=>Vv(d,e))]),l=[s,i,...c].filter(d=>d!==null);return l.length>0?Object.assign({},...l.map(d=>d.default)):e!==ae?X(ae,t):{}}const zv=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_LOCALE:ae,SUPPORTED_LO
4CALES:mt,firstMessage:Me,getHtmlLang:Nt,getLocaleDirection:nl,getMessage:A,isLocaleSupported:ol,loadMessages:X,primeMessages:cl,readMessages:ll,searchFacetFilter:al},Symbol.toStringTag,{value:"Module"})),ul=S.createContext({locale:ae,messages:{},t:e=>e});function Gv({locale:e,messages:t,children:o}){return m.jsx(ul.Provider,{value:{locale:e,messages:t,t:(n,a)=>A(n,t,a)},children:o})}function fe(){return S.useContext(ul)}const dl="https://opengraph-image.blockeden.xyz/og/beancount-io/v1/card.webp",Hv="Plain-Text Accounting. Powerful, Precise, Auditable.";function pl(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\)/g,"%29").replace(/\*/g,"%2A")}const Wv=`${dl}?title=${pl(Hv)}`,Yv=/[\u0644\uFEDD-\uFEE0]/,Qv=/[\u0622\u0623\u0625\u0627\u0671\uFE81-\uFE8E]/,Xv=/[\uFEF5-\uFEFC]/;function Jv(e){return Xv.test(e)||Yv.test(e)&&Qv.test(e)?"arabic-lam-alef":null}function se(e){return Jv(e.title)!==null?Wv:`${dl}?title=${pl(e.title)}`}function G(e){const t=se({title:e});return[{property:"og:image",content:t},{name:"twitter:image",content:t}]}function Zv(e,t){return e.replace(/\/$/,"")+""}const I=Zv(be.url),$=be.title,tr=be.tagline,ek=be.favicon,To=be.themeConfig.image,_r=To,tk=be.noIndex??!1,ok="bex-co/beancount-io",ml=`https://github.com/${ok}`,OB=`${ml}/tree/main/mobile`,nk="https://x.com/bexdotco",ak="https://www.youtube.com/@beancount_io",rk=[nk,ak,ml],BB="/for-ai-agents",MB={title:"agentPostCta.title",description:"agentPostCta.description",action:"agentPostCta.action"},hl=["/blog/2026/09/08/agentic-general-ledger-autonomous-bookkeeping-vs-quickbooks-xero-guide","/blog/2026/05/10/agentic-ai-bookkeeping-2026-autonomous-finance-agents-month-end-close-ap-reconciliation-workflows-guide","/blog/2026/05/13/ai-powered-bookkeeping-automation-generative-ai-transaction-categorization-reconciliation-real-time-reporting-small-business-guide","/blog/2026/08/16/ai-bookkeeping-software-compared-automated-categorization-receipt-reconciliation-cost-guide","/blog/2026/09/10/bea-accounting-cli-for-ai-agents","/bean-labs/research-logs/2026/07/07/finmcp-bench-llm-agents-financial-tool-use-model-context-protocol","/bean-labs/research-logs/2026/07/06/fintrace-trajectory-level-evaluation-llm-tool-calling-financial-tasks","/bean-labs/research-logs/2026/09/10/can-your-agent-balance-these-books"],sk=new Set(hl);function qB(e){return sk.has(e)}const fl="Compare Beancount",gl="Honest, practical comparisons to help you choose the right accounting and budgeting workflow.",an="Compare",bl={"beancount-vs-actual-budget":"compareActualBudget","beancount-vs-credit-karma":"compareCreditKarma","beancount-vs-gnucash":"compareGnucash","beancount-vs-hledger":"compareHledger","beancount-vs-ledger-cli":"compareLedgerCli","beancount-vs-mint":"compareMint","beancount-vs-monarch":"compareMonarch","beancount-vs-quickbooks":"compareQuickbooks","beancount-vs-simplifi":"compareSimplifi","beancount-vs-spreadsheets":"compareSpreadsheets","beancount-vs-ynab":"compareYnab","best-accounting-tools-for-ai-agents":"compareBestAccountingToolsForAiAgents","empower-alternatives":"compareEmpowerAlternatives","mint-alternatives":"compareMintAlternatives","monarch-alternatives":"compareMonarchAlternatives","copilot-alternatives":"compareCopilotAlternatives","quickbooks-alternatives":"compareQuickbooksAlternatives","quicken-alternatives":"compareQuickenAlternatives","ynab-alternatives":"compareYnabAlternatives","wave-alternatives":"compareWaveAlternatives","xero-alternatives":"compareXeroAlternatives"};function ik(e){return`compareShared.app.${e}.name`}const yl=[{slug:"chase",keyPrefix:"toolsCsvPresetChase",name:"Chase",group:"bank",steps:4,faqs:3},{slug:"amex",keyPrefix:"toolsCsvPresetAmex",name:"American Express",group:"bank",steps:4,faqs:3},{slug:"capital-one",keyPrefix:"toolsCsvPresetCapitalOne",name:"Capital One",group:"bank",steps:4,faqs:3},{slug:"bank-of-america",keyPrefix:"toolsCsvPresetBankOfAmerica",name:"Bank of America",group:"bank",steps:5,faqs:3},{slug:"wells-fargo",keyPrefix:"toolsCsvPresetWellsFargo",name:"Wells Fargo",group:"bank",steps:4,faqs:3},{slug:"wise",keyPrefix:"toolsCsvPresetWise",name:"Wise",group:"bank",steps:4,faqs:3},{slug:"fidelity",keyPrefix:"toolsCsvPresetFidelity",name:"Fidelity",group:"bank",steps:5,faqs:3}
4,{slug:"schwab",keyPrefix:"toolsCsvPresetSchwab",name:"Charles Schwab",group:"bank",steps:5,faqs:3},{slug:"citi",keyPrefix:"toolsCsvPresetCiti",name:"Citi",group:"bank",steps:4,faqs:3},{slug:"discover",keyPrefix:"toolsCsvPresetDiscover",name:"Discover",group:"bank",steps:4,faqs:3},{slug:"ally",keyPrefix:"toolsCsvPresetAlly",name:"Ally Bank",group:"bank",steps:4,faqs:3},{slug:"monzo",keyPrefix:"toolsCsvPresetMonzo",name:"Monzo",group:"bank",steps:4,faqs:3},{slug:"us-bank",keyPrefix:"toolsCsvPresetUsBank",name:"U.S. Bank",group:"bank",steps:4,faqs:3},{slug:"td-canada-trust",keyPrefix:"toolsCsvPresetTdCanadaTrust",name:"TD Canada Trust",group:"bank",steps:4,faqs:3},{slug:"apple-card",keyPrefix:"toolsCsvPresetAppleCard",name:"Apple Card",group:"bank",steps:5,faqs:3},{slug:"barclays",keyPrefix:"toolsCsvPresetBarclays",name:"Barclays",group:"bank",steps:4,faqs:3},{slug:"ynab",keyPrefix:"toolsCsvPresetYnab",name:"YNAB",group:"app",steps:5,faqs:3},{slug:"mint",keyPrefix:"toolsCsvPresetMint",name:"Mint",group:"app",steps:3,faqs:3},{slug:"monarch",keyPrefix:"toolsCsvPresetMonarch",name:"Monarch Money",group:"app",steps:4,faqs:3},{slug:"empower",keyPrefix:"toolsCsvPresetEmpower",name:"Empower",group:"app",steps:4,faqs:3},{slug:"n26",keyPrefix:"toolsCsvPresetN26",name:"N26",group:"bank",steps:4,faqs:3},{slug:"starling",keyPrefix:"toolsCsvPresetStarling",name:"Starling Bank",group:"bank",steps:4,faqs:3}
4,{slug:"bunq",keyPrefix:"toolsCsvPresetBunq",name:"bunq",group:"bank",steps:4,faqs:3},{slug:"ing",keyPrefix:"toolsCsvPresetIng",name:"ING",group:"bank",steps:4,faqs:3}],vl="csv-to-beancount";function ck(e){return`/tools/${vl}/${e}`}const lk=Object.fromEntries(yl.map(e=>[`${vl}/${e.slug}`,e.keyPrefix]));function kl(e){return yl.find(t=>t.slug===e)}const uk=["import-transactions","understand-profitability","get-paid","prepare-reports","founder-planning"],DB={csv:"CSV",ofx:"OFX",qif:"QIF",ledger:"Ledger"},$l=[{slug:"csv-to-beancount",nameKey:"toolName.csvToBeancount",englishName:"CSV to Beancount converter",summaryKey:"tools.hub.summary.csvToBeancount",keyPrefix:"toolsCsvToBeancount",icon:"refresh-cw",task:"import-transactions",inputFormats:["csv"]},{slug:"ofx-to-beancount",nameKey:"toolName.ofxToBeancount",englishName:"OFX & QIF to Beancount converter",summaryKey:"tools.hub.summary.ofxToBeancount",keyPrefix:"toolsOfxToBeancount",icon:"upload",task:"import-transactions",inputFormats:["ofx","qif"]},{slug:"ledger-to-beancount",nameKey:"toolName.ledgerToBeancount",summaryKey:"tools.hub.summary.ledgerToBeancount",englishName:"Ledger to Beancount converter",keyPrefix:"toolsLedgerToBeancount",icon:"zap",task:"import-transactions",inputFormats:["ledger"]},{slug:"debt-coverage-calculator",nameKey:"toolName.debtCoverageCalculator",englishName:"Debt coverage calculator",summaryKey:"tools.hub.summary.debtCoverageCalculator",keyPrefix:"toolsDebtCoverageCalculator",icon:"trending-up",task:"understand-profitability"},{slug:"menu-engineering-calculator",nameKey:"toolName.menuEngineeringCalculator",englishName:"Menu engineering calculator",summaryKey:"tools.hub.summary.menuEngineeringCalculator",keyPrefix:"toolsMenuEngineeringCalculator",icon:"layout-dashboard",task:"understand-profitability"},{slug:"receivables-turnover-calculator",nameKey:"toolName.receivablesTurnoverCalculator",englishName:"Receivables turnover calculator",summaryKey:"tools.hub.summary.receivablesTurnoverCalculator",keyPrefix:"toolsReceivablesTurnoverCalculator",icon:"coins",task:"get-paid"},{slug:"straight-line-depreciation-calculator",nameKey:"toolName.straightLineDepreciationCalculator",englishName:"Straight-line depreciation calculator",summaryKey:"tools.hub.summary.straightLineDepreciationCalculator",keyPrefix:"toolsStraightLineDepreciationCalculator",icon:"wallet",task:"prepare-reports"},{slug:"break-even-calculator",nameKey:"toolName.breakEvenCalculator",englishName:"Break-even calculator",summaryKey:"tools.hub.summary.breakEvenCalculator",keyPrefix:"toolsBreakEvenCalculator",icon:"target",task:"understand-profitability"},{slug:"expense-report",nameKey:"toolName.expenseReport",englishName:"Expense report builder",summaryKey:"tools.hub.summary.expenseReport",keyPrefix:"toolsExpenseReport",icon:"receipt",task:"prepare-reports"},{slug:"trial-balance",nameKey:"toolName.trialBalance",englishName:"Trial balance worksheet",summaryKey:"tools.hub.summary.trialBalance",keyPrefix:"toolsTrialBalance",icon:"layout-dashboard",task:"prepare-reports"},{slug:"invoice-email",nameKey:"toolName.invoiceEmail",englishName:"Invoice email composer",summaryKey:"tools.hub.summary.invoiceEmail",keyPrefix:"toolsInvoiceEmail",icon:"megaphone",task:"get-paid"},{slug:"margin-markup-calculator",nameKey:"toolName.marginMarkupCalculator",englishName:"Margin and markup calculator",summaryKey:"tools.hub.summary.marginMarkupCalculator",keyPrefix:"toolsMarginMarkupCalculator",icon:"percent",task:"understand-profitability"},{slug:"year-over-year-growth-calculator",nameKey:"toolName.yearOverYearGrowthCalculator",englishName:"Year-over-year growth calculator",summaryKey:"tools.hub.summary.yearOverYearGrowthCalculator",keyPrefix:"toolsYearOverYearGrowthCalculator",icon:"trending-up",task:"understand-profitability"},{slug:"ar-aging-report",nameKey:"toolName.arAgingReport",englishName:"AR aging report",summaryKey:"tools.hub.summary.arAgingReport",keyPrefix:"toolsArAgingReport",icon:"clock",task:"get-paid"},{slug:"customer-concentration-report",nameKey:"toolName.customerConcentrationReport",englishName:"Customer concentration report",summaryKey:"tools.hub.summary.customerConcentrationReport",keyPrefix:"toolsCustomerConcentrationReport",icon:"users",task:"prepare-reports"}];function _l(e){return`/tools/${e}`}const dk="bank-presets",pk={}
4,mk={...Object.fromEntries($l.map(e=>[e.slug,e.keyPrefix])),...pk},hk={home:{prefixes:["homeDesign"],extraPaths:["/"],primaryPath:"/"},compare:{prefixes:["compare"],extraPaths:["/compare/*"],slices:bl},"compare-landers":{prefixes:["compareShared"],extraPaths:["/compare/*"],childrenOnly:!0,primaryPath:"/compare/beancount-vs-ynab"},tools:{prefixes:["tools"],extraPaths:["/tools/*"],slices:{...mk,...lk}},"tools-csv-rules":{prefixes:["toolsCsvRules","toolsCsvSplit","toolsCsvProfileFile","toolsCsvStatement"],extraPaths:["/tools/csv-to-beancount","/tools/csv-to-beancount/*"],primaryPath:"/tools/csv-to-beancount"},tracking:{prefixes:["tracking"]},"live-prices":{prefixes:["livePrices"]},security:{prefixes:["security"]},"link-accounts":{prefixes:["linkAccounts"],extraPaths:["/bank-sync"]},"smart-import":{prefixes:["smartImport"]},git:{prefixes:["git"]},"awesome-plain-text-accounting":{prefixes:["awesome"]},"awesome-beancount":{prefixes:["curated","reads-and-finds"],extraPaths:["/reads-and-finds"]},"beancount-cloud":{prefixes:["cloud"],extraPaths:["/download"]},"for-couples":{prefixes:["forCouples"]},"for-professionals":{prefixes:["forProfessionals"]},"for-ai-agents":{prefixes:["forAiAgents"]},ai:{prefixes:["ai"],extraPaths:["/assistant"]},mcp:{prefixes:["mcp"]},"api-reference":{prefixes:["apiReference"],extraPaths:["/docs/api-reference","/docs/prices-api-reference"],primaryPath:"/docs/api-reference"},fava:{prefixes:["fava"]},"founder-resources":{prefixes:["founder","privacy","equity","hiring"],extraPaths:["/founder-resources/*"]},affiliate:{prefixes:["affiliate"]},"beancount-android":{prefixes:["android"],extraPaths:["/download"]},"open-ledger":{prefixes:["openLedger"]},"about-us":{prefixes:["about"]},"beancount-ios":{prefixes:["ios"],extraPaths:["/download"]},download:{prefixes:["download"]},"bean-labs":{prefixes:["bean-labs"],extraPaths:["/bean-labs/research-logs","/bean-labs/research-logs/page/*"]},"brand-assets":{prefixes:["brand"]},changelog:{prefixes:["changelog"]},pricing:{prefixes:["pricing"]},faq:{prefixes:["faq"]},"topic-reading":{prefixes:["topicReading"],extraPaths:["/blog/tags/*"],primaryPath:"/blog/tags/bookkeeping"},"topic-follow":{prefixes:["topicFollow"],extraPaths:["/blog/tags/*"],childrenOnly:!0,primaryPath:"/blog/tags/cash-flow"},"agent-post-cta":{prefixes:["agentPostCta"],extraPaths:["/blog/*","/bean-labs/research-logs/*"],childrenOnly:!0,primaryPath:hl[0]},"content-feedback":{prefixes:["contentFeedback"],extraPaths:["/blog/*","/bean-labs/research-logs/*","/docs/*"],childrenOnly:!0,primaryPath:"/blog/2019/09/07/introduction-to-beancount"},"bookkeeping-workbook":{prefixes:["bookkeepingWorkbook"],extraPaths:["/blog/2026/04/12/excel-bookkeeping-the-complete-guide-for-small-businesses","/blog/2026/02/07/how-to-create-income-statement-excel-complete-guide"],primaryPath:"/blog/2026/04/12/excel-bookkeeping-the-complete-guide-for-small-businesses"},"fitness-starter":{prefixes:["fitnessStarter"],extraPaths:["/blog/2026/01/22/fitness-studio-bookkeeping-complete-guide-owners"],primaryPath:"/blog/2026/01/22/fitness-studio-bookkeeping-complete-guide-owners"}},Xn=Object.entries(hk),wl=Xn.filter(e=>e[1].slices!==void 0);function fk(e){const t=e.indexOf(".");return t===-1?e:e.slice(0,t)}const or=new Map;for(const[e,t]of Xn){for(const[o,n]of Object.entries(t.slices??{}))Bs(n,`${e}/${o}`);for(const o of t.prefixes)Bs(o,e)}function Bs(e,t){if(e.includes("."))throw new Error(`message-namespaces: prefix "${e}" (${t}) must be a single dot-free key segment — use a compound name (toolsCsvPresetChase), not a dotted child of the family (tools.csvPreset.chase)`);const o=or.get(e);if(o!==void 0&&o!==t)throw new Error(`message-namespaces: "${e}" is claimed by both ${o} and ${t}`);or.set(e,t)}const nr=new Map,Rl=[];for(const[e,t]of Xn)for(const o of[`/${e}`,...t.extraPaths??[]]){if(o.endsWith("/*")){const n=o.slice(0,-2),a=t.childrenOnly===!0;Rl.push([n,`${n}/`,e,a]),a||Ms(n,e);continue}Ms(o,e)}function Ms(e,t){const o=nr.get(e);if(o){o.includes(t)||o.push(t);return}nr.set(e,[t])}Xn.flatMap(([e,t])=>[e,...Object.keys(t.slices??{}).map(o=>`${e}/${o}`)]);function gk(e,t,o){return e===t||e.startsWith(`${t}${o}`)}function bk(e){const t=fk(e),o=or.get(t);if(o)return o;for(const[n,a]of wl)if(a.prefixes.some(r=>t.startsWith(r)))return n;return null}function wr(e){const t=[...nr.get(e)??[]];for(const[o,n,a,r]of Rl)(r?e.startsWith(n):gk(e,o,"/"))&&!t.includes(a)&&t.pu
4sh(a);for(const[o,n]of wl){if(!t.includes(o)||!e.startsWith(`/${o}/`))continue;const a=e.slice(o.length+2);a in n.slices&&t.push(`${o}/${a}`)}return t}function yk(e){const t=e.replace(/\/+$/g,"");return t===""||t==="/"?"":t.startsWith("/")?t:`/${t}`}function Jo(e,t,o){const n=yk(o),a=t===ae?"":`/${t}`;return`${e}${a}${n}`}function w(e,t){return Jo(I,e,t)}function rn(e){const t=e.replace(/\/+$/g,"").split("/").filter(Boolean);return t.length>0&&t[0]!==ae&&mt.includes(t[0])&&t.shift(),t.length?`/${t.join("/")}`:"/"}function Pl(e){return wr(rn(e))}function Jn(e){const t=e.split("/").filter(Boolean)[0];return t&&t!==ae&&mt.includes(t)?t:ae}function Zn(e,t="blog",o="Beancount.io"){const n=t.startsWith("/")?t:`/${t}`,a=Jo(I,e,`${n}/rss.xml`),r=Jo(I,e,`${n}/atom.xml`);return[{rel:"alternate",type:"application/rss+xml",href:a,title:`${o} RSS Feed`},{rel:"alternate",type:"application/atom+xml",href:r,title:`${o} Atom Feed`}]}function vk(e,t,o){const a=(o===void 0?mt:mt.filter(r=>r===ae||o.includes(r))).map(r=>({hreflang:Nt(r),href:Jo(e,r,t)}));return a.push({hreflang:"x-default",href:Jo(e,ae,t)}),a}function kk(e,t){return vk(I,e,t).map(o=>({rel:"alternate",hrefLang:o.hreflang,href:o.href}))}const Eo={rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",crossOrigin:"anonymous"};function $k({pathname:e,initial:t,children:o}){cl(t.locale,t.namespaces,t.messages);const n=Jn(e),a=Pl(e),r=ll(n,a);return m.jsx(Gv,{locale:n,messages:r,children:o})}const _k={exact:!0};function ut({to:e,params:t,exact:o,...n}){const{locale:a}=fe(),r=a===ae?"":`/${a}`;let s=e;if(t)for(const[c,l]of Object.entries(t))typeof l=="string"&&(s=s.replace(`$${c}`,l));const i=`${r}${s}`;return m.jsx(yr,{to:i,activeOptions:o?_k:void 0,...n})}const wk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,n)=>n?n.toUpperCase():o.toLowerCase()),qs=e=>{const t=Rk(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sl=(...e)=>e.filter((t,o,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===o).join(" ").trim(),Pk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Sk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const xk=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:a="",children:r,iconNode:s,...i},c)=>S.createElement("svg",{ref:c,...Sk,width:t,height:t,stroke:e,strokeWidth:n?Number(o)*24/Number(t):o,className:Sl("lucide",a),...!r&&!Pk(i)&&{"aria-hidden":"true"},...i},[...s.map(([l,d])=>S.createElement(l,d)),...Array.isArray(r)?r:[r]]));const ne=(e,t)=>{const o=S.forwardRef(({className:n,...a},r)=>S.createElement(xk,{ref:r,iconNode:t,className:Sl(`lucide-${wk(qs(e))}`,`lucide-${e}`,n),...a}
4));return o.displayName=qs(e),o};const Tk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ek=ne("arrow-up-right",Tk);const Ak=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],Lk=ne("book-open-check",Ak);const Ck=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Nk=ne("bot",Ck);const Ik=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Fk=ne("briefcase",Ik);const Ok=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Bk=ne("chart-line",Ok);const Mk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xl=ne("chevron-down",Mk);const qk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Dk=ne("circle-question-mark",qk);const Uk=[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1",key:"1q9hii"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],jk=ne("file-input",Uk);const Vk=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Kk=ne("git-branch",Vk);const zk=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Gk=ne("github",zk);const Hk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Wk=ne("globe",Hk);const Yk=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],Qk=ne("heart-handshake",Yk);const Xk=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Jk=ne("landmark",Xk);const Zk=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],e$=ne("layout-dashboard",Zk);const t$=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],o$=ne("library-big",t$);const n$=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],a$=ne("menu",n$);const r$=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],s$=ne("monitor",r$);const i$=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],c$=ne("moon",i$);const l$=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
4],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],u$=ne("newspaper",l$);const d$=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],p$=ne("plug",d$);const m$=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],h$=ne("rocket",m$);const f$=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Tl=ne("search",f$);const g$=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],b$=ne("send",g$);const y$=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],v$=ne("shield-check",y$);const k$=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],$$=ne("sun",k$);const _$=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],El=ne("x",_$);const w$=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Al=ne("zap",w$);function R$(){const[e,t]=S.useState(!1),o=S.useRef(null),n=()=>{t(!1),requestAnimationFrame(()=>o.current?.focus())};return S.useEffect(()=>{if(!e)return;const a=document.body.style.overflow;document.body.style.overflow="hidden";const r=s=>{s.key==="Escape"&&!s.defaultPrevented&&n()};return window.addEventListener("keydown",r),()=>{document.body.style.overflow=a,window.removeEventListener("keydown",r)}},[e]),{open:e,triggerRef:o,openOverlay:()=>t(!0),close:n}}function P$(e){return{buttonText:e("theme.SearchBar.label"),buttonAriaLabel:e("theme.SearchBar.label")}}function S$(e){return{searchBox:{placeholderText:e("theme.SearchModal.searchBox.placeholderText"),clearButtonTitle:e("theme.SearchModal.searchBox.clearButtonTitle"),clearButtonAriaLabel:e("theme.SearchModal.searchBox.resetButtonTitle"),closeButtonText:e("theme.SearchModal.footer.closeText"),closeButtonAriaLabel:e("theme.SearchModal.footer.closeText"),searchInputLabel:e("theme.SearchModal.searchBox.searchInputLabel")},startScreen:{recentSearchesTitle:e("theme.SearchModal.startScreen.recentSearchesTitle"),saveRecentSearchButtonTitle:e("theme.SearchModal.startScreen.saveRecentSearchButtonTitle"),removeRecentSearchButtonTitle:e("theme.SearchModal.startScreen.removeRecentSearchButtonTitle"),favoriteSearchesTitle:e("theme.SearchModal.startScreen.favoriteSearchesTitle"),removeFavoriteSearchButtonTitle:e("theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle"),recentConversationsTitle:e("theme.SearchModal.startScreen.recentConversationsTitle"),removeRecentConversationButtonTitle:e("theme.SearchModal.startScreen.removeRecentConversationButtonTitle")},noResultsScreen:{noResultsText:e("theme.SearchModal.noResultsScreen.noResultsText"),suggestedQueryText:e("theme.SearchModal.noResultsScreen.suggestedQueryText"),reportMissingResultsText:e("theme.SearchModal.noResultsScreen.reportMissingResultsText"),reportMissingResultsLinkText:e("theme.SearchModal.noResultsScreen.reportMissingResultsLinkText")},errorScreen:{titleText:e("theme.SearchModal.errorScreen.titleText"),helpText:e("theme.SearchModal.errorScreen.helpText")},footer:{selectText:e("theme.SearchModal.footer.selectText"),selectKeyAriaLabel:e("theme.SearchModal.footer.selectKeyAriaLabel"),navigateText:e("theme.SearchModal.footer.navigateText"),navigateUpKeyAriaLabel:e("theme.SearchModal.footer.navigateUpKeyAriaLabel"),navigateDownKeyAriaLabel:e("theme.SearchModal.footer.navigateDownKeyAriaLabel"),closeText:e("theme.SearchModal.footer.closeText"),closeKeyAri
4aLabel:e("theme.SearchModal.footer.closeKeyAriaLabel"),poweredByText:e("theme.SearchModal.footer.searchByText")}}}function x$(e){return e("theme.SearchModal.placeholder")}function T$(e){return{button:P$(e),modal:S$(e)}}const E$=[{to:"/docs",labelKey:"theme.NotFound.link.docs"},{to:"/blog",labelKey:"navbar.blog.label"}];function A$(e,t){return`${e===ae?"":`/${e}`}${t}`}function L$(e){return A$(e,"/docs")}function Ds(e){try{e()}catch{}}function C$(e,t,o){let n=0;return{...e,search:((...a)=>{const r=++n;let s=null;o&&Ds(()=>s=o.begin(a[0]));const i=l=>{s!=null&&Ds(()=>o.settle(s,l))};let c;try{c=e.search(...a)}catch(l){throw r===n&&t("error"),i({failed:!0}),l}return c.then(l=>(r===n&&t("ok"),i({failed:!1,response:l}),l),l=>{throw r===n&&t("error"),i({failed:!0}),l})})}}function N$(e,t){const[o,n]=S.useState(!1),a=S.useCallback(s=>C$(e?e(s):s,i=>{n(i==="error")},t),[e,t]),r=S.useCallback(()=>n(!1),[]);return{transformSearchClient:a,showRecovery:o,dismissRecovery:r}}const I$="data-search-overlay-host",F$=".DocSearch-Container";function O$(e){e.getAttribute("role")!=="dialog"&&e.setAttribute("role","dialog"),e.getAttribute("aria-modal")!=="true"&&e.setAttribute("aria-modal","true"),e.getAttribute("tabindex")!=="-1"&&e.setAttribute("tabindex","-1"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-haspopup")}function B$(){const e=document.createElement("div");return e.setAttribute(I$,""),e}function M$(e){const t=S.useMemo(()=>e&&typeof document<"u"?B$():null,[e]);return S.useEffect(()=>{if(!t)return;const o=()=>{for(const a of t.querySelectorAll(F$))O$(a)},n=new MutationObserver(o);return n.observe(t,{childList:!0}),document.body.appendChild(t),o(),()=>{n.disconnect(),t.remove()}},[t]),t}let Us=!1;function q$(){return Promise.all([b(()=>import("./vendor-docsearch-o5v3haRC.js"),__vite__mapDeps([3,4])).then(e=>e.DocSearch),b(()=>import("./search-measurement-BeA0vAVP.js"),__vite__mapDeps([5,4,6,1,7])).then(e=>e.createSearchTelemetry,()=>null)])}function D$(e){const[t,o]=S.useState(0),[n,a]=S.useState(null),[r,s]=S.useState(!1);S.useEffect(()=>{if(!e)return;let c=!1;return q$().then(l=>{c||a(l)},()=>{c||s(!0)}),()=>{c=!0}},[t,e]);const i=S.useCallback(()=>{a(null),s(!1),o(c=>c+1)},[]);return{loaded:n,failed:r,retry:i}}function U$(e,t,o){const n=S.useMemo(()=>e?e(t):null,[e,t]);return S.useEffect(()=>n?.attach(o),[n,o]),n}function j$(){const{t:e}=fe();return m.jsx("button",{type:"button",disabled:!0,"aria-busy":"true","aria-label":e("theme.SearchBar.label"),className:"DocSearch DocSearch-Button",children:m.jsxs("span",{className:"DocSearch-Button-Container",children:[m.jsx(Tl,{size:20,"aria-hidden":"true"}),m.jsx("span",{className:"DocSearch-Button-Placeholder",children:e("theme.SearchBar.label")})]})})}function Ll({role:e,label:t,containerRef:o,trailing:n}){const{t:a}=fe();return m.jsxs("div",{ref:o,role:e,className:"flex min-w-0 items-center gap-2 rounded-full border border-border bg-muted/60 px-2.5 py-1 text-xs text-muted-foreground",children:[m.jsx("span",{className:"hidden truncate md:inline",children:t}),E$.map(r=>m.jsx(ut,{to:r.to,className:"shrink-0 font-medium text-foreground underline-offset-2 hover:underline",children:a(r.labelKey)},r.to)),n]})}function V$({onRetry:e}){const{t}=fe();return m.jsx(Ll,{role:"alert",label:t("theme.SearchModal.errorScreen.titleText"),trailing:m.jsx("button",{type:"button",onClick:e,"aria-label":t("theme.SearchBar.label"),title:t("theme.SearchModal.errorScreen.helpText"),className:"shrink-0 rounded-full p-0.5 hover:bg-muted",children:m.jsx(Tl,{size:14,"aria-hidden":"true"})})})}function K$({onDismiss:e}){const{t}=fe(),o=S.useRef(null);return S.useEffect(()=>{const n=a=>{a.key==="Escape"&&o.current?.contains(document.activeElement)&&(a.stopPropagation(),e())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e]),m.jsx(Ll,{role:"status",label:t("theme.SearchModal.errorScreen.titleText"),containerRef:o,trailing:m.jsx("button",{type:"button","aria-label":t("theme.SearchModal.footer.closeText"),onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-muted",children:m.jsx(El,{size:14,"aria-hidden":"true"})})})}function z$({searchClientFixture:e}={}){const{locale:t,t:o}=fe(),n=be.themeConfig.algolia,a=n?.appId,r=n?.apiKey,s=n?.indexName,i=!!a&&
4!!r&&!!s&&a!=="REPLACE_ME",{loaded:c,failed:l,retry:d}=D$(i),u=c?.[0]??null,h=M$(i),f=U$(c?.[1]??null,t,h),k=N$(e,f?.observer),{dismissRecovery:P}=k,g=S.useRef(null),_=S.useCallback(()=>{g.current?.querySelector("button")?.focus(),P()},[P]);if(S.useEffect(()=>{if(!(!i||Us)){Us=!0,b(()=>Promise.resolve({}),__vite__mapDeps([8]));{const C=document.createElement("link");C.rel="preconnect",C.href=`https://${a}-dsn.algolia.net`,document.head.appendChild(C)}}},[i,a]),!i)return null;const x=n?.searchParameters?{...n.searchParameters}:{};return x.facetFilters=[al(t)],m.jsxs(m.Fragment,{children:[k.showRecovery&&m.jsx(K$,{onDismiss:_}),m.jsx("div",{ref:g,children:l?m.jsx(V$,{onRetry:d}):u?m.jsx(u,{appId:a,apiKey:r,indexName:s,searchParameters:x,placeholder:x$(o),translations:T$(o),getMissingResultsUrl:()=>L$(t),transformSearchClient:k.transformSearchClient,navigator:f?.navigator,hitComponent:f?.hitComponent,portalContainer:h??void 0}):m.jsx(j$,{})})]})}function G$(){const{t:e}=fe();return m.jsx("a",{href:"#main",className:"sr-only focus:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-[100] focus:rounded-lg focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-foreground focus:shadow-lg focus:ring-2 focus:ring-primary focus:outline-none",children:e("theme.skipToContent")})}function js(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cl(...e){return t=>{let o=!1;const n=e.map(a=>{const r=js(a,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let a=0;a<n.length;a++){const r=n[a];typeof r=="function"?r():js(e[a],null)}}}}function UB(...e){return S.useCallback(Cl(...e),e)}var H$=Symbol.for("react.lazy"),Un=fh[" use ".trim().toString()];function W$(e){return typeof e=="object"&&e!==null&&"then"in e}function Nl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===H$&&"_payload"in e&&W$(e._payload)}function Y$(e){const t=X$(e),o=S.forwardRef((n,a)=>{let{children:r,...s}=n;Nl(r)&&typeof Un=="function"&&(r=Un(r._payload));const i=S.Children.toArray(r),c=i.find(Z$);if(c){const l=c.props.children,d=i.map(u=>u===c?S.Children.count(l)>1?S.Children.only(null):S.isValidElement(l)?l.props.children:null:u);return m.jsx(t,{...s,ref:a,children:S.isValidElement(l)?S.cloneElement(l,void 0,d):null})}return m.jsx(t,{...s,ref:a,children:r})});return o.displayName=`${e}.Slot`,o}var Q$=Y$("Slot");function X$(e){const t=S.forwardRef((o,n)=>{let{children:a,...r}=o;if(Nl(a)&&typeof Un=="function"&&(a=Un(a._payload)),S.isValidElement(a)){const s=t_(a),i=e_(r,a.props);return a.type!==S.Fragment&&(i.ref=n?Cl(n,s):s),S.cloneElement(a,i)}return S.Children.count(a)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J$=Symbol("radix.slottable");function Z$(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J$}function e_(e,t){const o={...t};for(const n in t){const a=e[n],r=t[n];/^on[A-Z]/.test(n)?a&&r?o[n]=(...i)=>{const c=r(...i);return a(...i),c}:a&&(o[n]=a):n==="style"?o[n]={...a,...r}:n==="className"&&(o[n]=[a,r].filter(Boolean).join(" "))}return{...e,...o}}function t_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function Il(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Il(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Fl(){for(var e,t,o=0,n="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Il(e))&&(n&&(n+=" "),n+=t);return n}const Vs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ks=Fl,o_=(e,t)=>o=>{var n;if(t?.variants==null)return Ks(e,o?.class,o?.className);const{variants:a,defaultVariants:r}=t,s=Object.keys(a).map(l=>{const d=o?.[l],u=r?.[l];if(d===null)return null;const h=Vs(d)||Vs(u);return a[l][h]}),i=o&&Object.entries(o).reduce((l,d)=>{let[u,h]=d;return h===void 0||(l[u]=h),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,d)=>{let{class:u,className:h,...f}=d;return Object.entries(f).every(k=>{let[P,g]=k;return Array.isArray(g)?g.includes({...r,...i}[P]):{...r,...i}[P]===g})?[...l,u,h]:l},[]);return Ks(e,s,c,o?.class,o?.className)},n_=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;
vendor: 3,755 bytes, line 4
4n++)o[e.length+n]=t[n];return o},a_=(e,t)=>({classGroupId:e,validator:t}),Ol=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),jn="-",zs=[],r_="arbitrary..",s_=e=>{const t=c_(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return i_(s);const i=s.split(jn),c=i[0]===""&&i.length>1?1:0;return Bl(i,c,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const c=n[s],l=o[s];return c?l?n_(l,c):c:l||zs}return o[s]||zs}}},Bl=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const a=e[t],r=o.nextPart.get(a);if(r){const l=Bl(e,t+1,r);if(l)return l}const s=o.validators;if(s===null)return;const i=t===0?e.join(jn):e.slice(t).join(jn),c=s.length;for(let l=0;l<c;l++){const d=s[l];if(d.validator(i))return d.classGroupId}},i_=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?r_+n:void 0})(),c_=e=>{const{theme:t,classGroups:o}=e;return l_(o,t)},l_=(e,t)=>{const o=Ol();for(const n in e){const a=e[n];Rr(a,o,n,t)}return o},Rr=(e,t,o,n)=>{const a=e.length;for(let r=0;r<a;r++){const s=e[r];u_(s,t,o,n)}},u_=(e,t,o,n)=>{if(typeof e=="string"){d_(e,t,o);return}if(typeof e=="function"){p_(e,t,o,n);return}m_(e,t,o,n)},d_=(e,t,o)=>{const n=e===""?t:Ml(t,e);n.classGroupId=o},p_=(e,t,o,n)=>{if(h_(e)){Rr(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(a_(o,e))},m_=(e,t,o,n)=>{const a=Object.entries(e),r=a.length;for(let s=0;s<r;s++){const[i,c]=a[s];Rr(c,Ml(t,i),o,n)}},Ml=(e,t)=>{let o=e;const n=t.split(jn),a=n.length;for(let r=0;r<a;r++){const s=n[r];let i=o.nextPart.get(s);i||(i=Ol(),o.nextPart.set(s,i)),o=i}return o},h_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,f_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const a=(r,s)=>{o[r]=s,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(r){let s=o[r];if(s!==void 0)return s;if((s=n[r])!==void 0)return a(r,s),s},set(r,s){r in o?o[r]=s:a(r,s)}}},ar="!",Gs=":",g_=[],Hs=(e,t,o,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:a}),b_=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=a=>{const r=[];let s=0,i=0,c=0,l;const d=a.length;for(let P=0;P<d;P++){const g=a[P];if(s===0&&i===0){if(g===Gs){r.push(a.slice(c,P)),c=P+1;continue}if(g==="/"){l=P;continue}}g==="["?s++:g==="]"?s--:g==="("?i++:g===")"&&i--}const u=r.length===0?a:a.slice(c);let h=u,f=!1;u.endsWith(ar)?(h=u.slice(0,-1),f=!0):u.startsWith(ar)&&(h=u.slice(1),f=!0);const k=l&&l>c?l-c:void 0;return Hs(r,f,h,k)};if(t){const a=t+Gs,r=n;n=s=>s.startsWith(a)?r(s.slice(a.length)):Hs(g_,!1,s,void 0,!0)}if(o){const a=n;n=r=>o({className:r,parseClassName:a})}return n},y_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let a=[];for(let r=0;r<o.length;r++){const s=o[r],i=s[0]==="[",c=t.has(s);i||c?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},v_=e=>({cache:f_(e.cacheSize),parseClassName:b_(e),sortModifiers:y_(e),postfixLookupClassGroupIds:k_(e),...s_(e)}),k_=e=>{const t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let n=0;n<o.length;n++)t[o[n]]=!0;return t},$_=/\s+/,__=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:r,postfixLookupClassGroupIds:s}=t,i=[],c=e.trim().split($_);let l="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:h,modifiers:f,hasImportantModifier:k,baseClassName:P,maybePostfixModifierPosition:g}=o(u);if(h){l=u+(l.length>0?" "+l:l);continue}let _=!!g,x;if(_){const N=P.substring(0,g);x=n(N);const E=x&&s[x]?n(P):void 0;E&&E!==x&&(x=E,_=!1)}else x=n(P);
vendor: 4,959 bytes, line 4
4if(!x){if(!_){l=u+(l.length>0?" "+l:l);continue}if(x=n(P),!x){l=u+(l.length>0?" "+l:l);continue}_=!1}const C=f.length===0?"":f.length===1?f[0]:r(f).join(":"),L=k?C+ar:C,F=L+x;if(i.indexOf(F)>-1)continue;i.push(F);const U=a(x,_);for(let N=0;N<U.length;++N){const E=U[N];i.push(L+E)}l=u+(l.length>0?" "+l:l)}return l},w_=(...e)=>{let t=0,o,n,a="";for(;t<e.length;)(o=e[t++])&&(n=ql(o))&&(a&&(a+=" "),a+=n);return a},ql=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=ql(e[n]))&&(o&&(o+=" "),o+=t);return o},R_=(e,...t)=>{let o,n,a,r;const s=c=>{const l=t.reduce((d,u)=>u(d),e());return o=v_(l),n=o.cache.get,a=o.cache.set,r=i,i(c)},i=c=>{const l=n(c);if(l)return l;const d=__(c,o);return a(c,d),d};return r=s,(...c)=>r(w_(...c))},P_=[],ye=e=>{const t=o=>o[e]||P_;return t.isThemeGetter=!0,t},Dl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,x_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,A_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$t=e=>S_.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),Fa=e=>e.endsWith("%")&&Q(e.slice(0,-1)),ct=e=>x_.test(e),jl=()=>!0,C_=e=>T_.test(e)&&!E_.test(e),Pr=()=>!1,N_=e=>A_.test(e),I_=e=>L_.test(e),F_=e=>!j(e)&&!K(e),O_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),B_=e=>It(e,zl,Pr),j=e=>Dl.test(e),Gt=e=>It(e,Gl,C_),Ws=e=>It(e,z_,Q),M_=e=>It(e,Wl,jl),q_=e=>It(e,Hl,Pr),Ys=e=>It(e,Vl,Pr),D_=e=>It(e,Kl,I_),_n=e=>It(e,Yl,N_),K=e=>Ul.test(e),jo=e=>so(e,Gl),U_=e=>so(e,Hl),Qs=e=>so(e,Vl),j_=e=>so(e,zl),V_=e=>so(e,Kl),wn=e=>so(e,Yl,!0),K_=e=>so(e,Wl,!0),It=(e,t,o)=>{const n=Dl.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},so=(e,t,o=!1)=>{const n=Ul.exec(e);return n?n[1]?t(n[1]):o:!1},Vl=e=>e==="position"||e==="percentage",Kl=e=>e==="image"||e==="url",zl=e=>e==="length"||e==="size"||e==="bg-size",Gl=e=>e==="length",z_=e=>e==="number",Hl=e=>e==="family-name",Wl=e=>e==="number"||e==="weight",Yl=e=>e==="shadow",G_=()=>{const e=ye("color"),t=ye("font"),o=ye("text"),n=ye("font-weight"),a=ye("tracking"),r=ye("leading"),s=ye("breakpoint"),i=ye("container"),c=ye("spacing"),l=ye("radius"),d=ye("shadow"),u=ye("inset-shadow"),h=ye("text-shadow"),f=ye("drop-shadow"),k=ye("blur"),P=ye("perspective"),g=ye("aspect"),_=ye("ease"),x=ye("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...L(),K,j],U=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[K,j,c],D=()=>[$t,"full","auto",...E()],W=()=>[Ge,"none","subgrid",K,j],H=()=>["auto",{span:["full",Ge,K,j]},Ge,K,j],Y=()=>[Ge,"auto",K,j],Be=()=>["auto","min","max","fr",K,j],_e=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ee=()=>["start","end","center","stretch","center-safe","end-safe"],Ae=()=>["auto",...E()],ge=()=>[$t,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],nt=()=>[$t,"screen","full","dvw","lvw","svw","min","max","fit",...E()],po=()=>[$t,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],z=()=>[e,K,j],at=()=>[...L(),Qs,Ys,{position:[K,j]}],mo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],vt=()=>["auto","cover","contain",j_,B_,{size:[K,j]}],je=()=>[Fa,jo,Gt],ee=()=>["","none","full",l,K,j],we=()=>["",Q,jo,Gt],Ut=()=>["solid","dashed","dotted","double"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Q,Fa,Qs,Ys],ho=()=>["","none",k,K,j],rt=()=>["none",Q,K,j],st=()=>["none",Q,K,j],fo=()=>[Q,K,j],jt=()=>[$t,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ct],breakpoint:[ct],color:[jl],container:[ct],"drop-shadow":[ct],ease:["in","out","in-out"],font:[F_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ct],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ct],shadow:[ct],spacing:["px",Q],text:[ct],"text-shadow":[ct],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$t,j,K,g]}],container:["container"],"container-type":[{"@container":["","normal","size",K,j]}
vendor: 4,910 bytes, line 4
4],"container-named":[O_],columns:[{columns:[Q,j,K,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ge,"auto",K,j]}],basis:[{basis:[$t,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,$t,"auto","initial","none",j]}],grow:[{grow:["",Q,K,j]}],shrink:[{shrink:["",Q,K,j]}],order:[{order:[Ge,"first","last","none",K,j]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Be()}],"auto-rows":[{"auto-rows":Be()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[..._e(),"normal"]}],"justify-items":[{"justify-items":[...Ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ee()]}],"align-content":[{content:["normal",..._e()]}],"align-items":[{items:[...Ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":_e()}],"place-items":[{"place-items":[...Ee(),"baseline"]}],"place-self":[{"place-self":["auto",...Ee()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:Ae()}],mx:[{mx:Ae()}],my:[{my:Ae()}],ms:[{ms:Ae()}],me:[{me:Ae()}],mbs:[{mbs:Ae()}],mbe:[{mbe:Ae()}],mt:[{mt:Ae()}],mr:[{mr:Ae()}],mb:[{mb:Ae()}],ml:[{ml:Ae()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:ge()}],"inline-size":[{inline:["auto",...nt()]}],"min-inline-size":[{"min-inline":["auto",...nt()]}],"max-inline-size":[{"max-inline":["none",...nt()]}],"block-size":[{block:["auto",...po()]}],"min-block-size":[{"min-block":["auto",...po()]}],"max-block-size":[{"max-block":["none",...po()]}],w:[{w:[i,"screen",...ge()]}],"min-w":[{"min-w":[i,"screen","none",...ge()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...ge()]}],h:[{h:["screen","lh",...ge()]}],"min-h":[{"min-h":["screen","lh","none",...ge()]}],"max-h":[{"max-h":["screen","lh",...ge()]}],"font-size":[{text:["base",o,jo,Gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,K_,M_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fa,j]}],"font-family":[{font:[U_,q_,t]}],"font-features":[{"font-features":[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,K,j]}],"line-clamp":[{"line-clamp":[Q,"none",K,Ws]}],leading:[{leading:[r,...E()]}],"list-image":[{"list-image":["none",K,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ut(),"w
4avy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",K,Gt]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Q,"auto",K,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[Ge,K,j]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:at()}],"bg-repeat":[{bg:mo()}],"bg-size":[{bg:vt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ge,K,j],radial:["",K,j],conic:[Ge,K,j]},V_,D_]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:je()}],"gradient-via-pos":[{via:je()}],"gradient-to-pos":[{to:je()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-bs":[{"border-bs":we()}],"border-w-be":[{"border-be":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ut(),"hidden","none"]}],"divide-style":[{divide:[...Ut(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...Ut(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,K,j]}],"outline-w":[{outline:["",Q,jo,Gt]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",d,wn,_n]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",u,wn,_n]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Q,Gt]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",h,wn,_n]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Q,K,j]}],"mix-blend":[{"mix-blend":[...kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":kt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[K,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:at()}],"mask-repeat":[{mask:mo()}],"mask-size":[{mask:vt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,j]}],filter:[{filter:["","none",K,j]}],blur:[{blur:ho()}],brightness:[{brightness:[Q,K,j]}],contrast:[{contrast:[Q,K,j]}],"drop-shadow":[{"drop-shadow":["","none",f,wn,_n]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Q,K,j]}],"hue-rotate":[{"hue-rotate":[Q,K,j]}],invert:[{invert:["",Q,K,j]}],saturate:[{saturate:[Q,K,j]}],sepia:[{sepia:["",Q,K,j]}],"backdrop-filter":[{"backdrop-filter":["","none",K,j]}],"backdrop-blur":[{"backdrop-blur":ho()}],"backdrop-brightness":[{"backdrop-brightness":[Q,K,j]}],"backdrop-contrast":[{"backdrop-contrast":[Q,K,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,K,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,K,j]}],"backdrop-invert":[{"backdrop-invert":["",Q,K,j]}],"backdrop-opacity":[{"backdrop-opacity":[Q,K,j]}],"backdrop-saturate":[{"backdrop-saturate":[Q,K,j]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,K,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",K,j]}],ease:[{ease:["linear","initial",_,K,j]}],delay:[{delay:[Q,K,j]}],animate:[{animate:["none",x,K,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,K,j]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:st()}],"scale-x":[{"scale-x":st()}],"scale-y":[{"scale-y":st()}],"scale-z":[{"scale-z":st()}],"scale-3d":["scale-3d"],skew:[{skew:fo()}],"skew-x":[{"skew-x":fo()}],"skew-y":[{"skew-y":fo()}],transform:[{transform:[K,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:jt()}],"translate-x":[{"translate-x":jt()}],"translate-y":[{"translate-y":jt()}],"translate-z":[{"translate-z":jt()}],"translate-none":["translate-none"],zoom:[{zoom:[Ge,K,j]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}
4],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,j]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Q,jo,Gt,Ws]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},H_=R_(G_);function Ve(...e){return H_(Fl(e))}const Ql=o_("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50 cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-accent",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"text-muted-foreground hover:text-foreground hover:bg-accent",link:"text-primary underline-offset-4 hover:underline",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90"},size:{default:"px-4 py-2",sm:"px-2.5 py-1.5 text-xs",lg:"px-6 py-3 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xo=S.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...a},r)=>{const s=n?Q$:"button";return m.jsx(s,{className:Ve(Ql({variant:t,size:o,className:e})),ref:r,...a})});xo.displayName="Button";function W_(e){return"sections"in e&&Array.isArray(e.sections)}function Xs(e){const t={kind:"link",id:e.id,label:e.label,i18nKey:e.i18nKey,descriptionKey:e.descriptionKey,icon:e.icon,role:e.role??"default"};return e.href?{...t,href:e.href,external:!0}:{...t,to:e.to??"/",external:!1}}function Xl(e){return W_(e)?{kind:"dropdown",id:e.id,label:e.label,i18nKey:e.i18nKey,sections:e.sections.map(t=>({id:t.id,i18nKey:t.i18nKey,items:t.items.map(Xs)}))}:Xs(e)}const Jl=be.themeConfig.navbar.items,Zl=Jl.filter(e=>e.position!=="right").map(Xl),eu=Jl.filter(e=>e.position==="right").map(Xl),Le=be.themeConfig.navbar.logo??null;function Oa(e,t){const o={};return e!==void 0&&(o.width=typeof e=="number"?`${e}px`:e),t!==void 0&&(o.height=typeof t=="number"?`${t}px`:t),o}function tu({onNavigate:e}){const t=Le?Le.srcDark?m.jsxs(m.Fragment,{children:[m.jsx("img",{src:Le.src,alt:"",style:Oa(Le.width,Le.height),className:"h-8 w-auto dark:hidden"}),m.jsx("img",{src:Le.srcDark,alt:"",style:Oa(Le.width,Le.height),className:"hidden h-8 w-auto dark:block"})]}):m.jsx("img",{src:Le.src,alt:"",style:Oa(Le.width,Le.height),className:"h-8 w-auto"}):m.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary",children:m.jsx(Al,{size:18,className:"text-primary-foreground"})}),o=m.jsxs(m.Fragment,{children:[t,m.jsx("span",{className:"hidden text-lg font-bold tracking-tight min-[360px]:inline",children:$})]}),n="flex shrink-0 items-center gap-2.5 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50";return Le?.href&&!Le.href.startsWith("/")?m.jsx("a",{href:Le.href,onClick:e,className:n,"aria-label":$,children:o}):m.jsx(ut,{to:Le?.href??"/",onClick:e,className:n,"aria-label":$,children:o})}
4const Y_={landmark:Jk,"file-input":jk,"line-chart":Bk,bot:Nk,"layout-dashboard":e$,"heart-handshake":Qk,briefcase:Fk,"git-branch":Kk,plug:p$,"circle-help":Dk,newspaper:u$,"book-open-check":Lk,"shield-check":v$,"library-big":o$,rocket:h$};function ou({item:e,active:t}){const{t:o}=fe(),n=e.icon?Y_[e.icon]:null,a=e.descriptionKey?o(e.descriptionKey):void 0;return m.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[n&&m.jsx("span",{"aria-hidden":"true",className:Ve("mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-lg border transition-colors duration-150",t?"border-primary/30 bg-primary/10 text-primary":"border-border/80 bg-muted/60 text-muted-foreground group-hover:border-primary/30 group-hover:bg-primary/10 group-hover:text-primary"),children:m.jsx(n,{className:"size-[18px]",strokeWidth:1.8})}),m.jsxs("div",{className:"min-w-0 pt-px",children:[m.jsx("div",{className:"text-[0.9375rem] font-semibold leading-5 text-foreground",children:o(e.i18nKey)}),a&&m.jsx("p",{className:"mt-0.5 text-[0.8125rem] leading-[1.25rem] text-muted-foreground",children:a})]})]})}function Q_(e){return e.menuId==="product"?"product":e.menuId==="resources"?"resource":e.item.id==="pricing"?"pricing":e.item.role==="demo"?"demo":e.item.role==="signin"?"signin":e.item.role==="primary"?"signup":"utility"}function X_(e){if(!e.external)return e.to;try{return new URL(e.href,"https://beancount.io").pathname}catch{return"/"}}function J_(e){return{nav_item:e.item.id,nav_menu:e.menuId,nav_group:e.sectionId??e.menuId,nav_surface:e.surface,nav_role:Q_(e),locale:e.locale,link_type:e.item.external?"external":"internal",destination_path:X_(e.item)}}function Z_(e){typeof window>"u"||typeof window.gtag!="function"||window.gtag("event","nav_select",J_(e))}function Zo({item:e,surface:t,menuId:o,sectionId:n,className:a,onNavigate:r,children:s,active:i}){const{locale:c}=fe(),l=()=>{Z_({item:e,surface:t,menuId:o,sectionId:n,locale:c}),r?.()};return e.external?m.jsx("a",{href:e.href,onClick:l,className:a,children:s}):m.jsxs(ut,{to:e.to,onClick:l,className:a,"aria-current":i?"page":void 0,children:[s,i&&m.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 -bottom-1 h-px bg-primary"})]})}function Sr(e,t){const o=rn(e);return t==="/"?o==="/":o===t||o.startsWith(`${t}/`)}function nu({item:e,pathname:t,menuId:o}){const{t:n}=fe(),a=!e.external&&Sr(t,e.to),r="relative rounded-sm px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",s=e.role==="primary"?Ve(Ql({size:"sm"}),"relative px-3 text-sm"):e.role==="demo"?Ve(r,"text-sm font-medium text-foreground hover:text-primary"):Ve(r,"text-sm",a?"text-foreground":"text-muted-foreground hover:text-foreground");return m.jsx(Zo,{item:e,surface:"desktop",menuId:o,className:s,active:a,children:n(e.i18nKey)})}function ew({item:e,pathname:t,open:o,onOpen:n,onClose:a}){const{t:r}=fe(),s=S.useRef(null),i=S.useRef(null),c=`desktop-nav-${e.id}`;return S.useEffect(()=>{if(!o)return;const l=u=>{s.current?.contains(u.target)||a()},d=u=>{u.key==="Escape"&&(u.preventDefault(),a(),i.current?.focus())};return document.addEventListener("pointerdown",l),document.addEventListener("keydown",d),()=>{document.removeEventListener("pointerdown",l),document.removeEventListener("keydown",d)}},[a,o]),m.jsxs("div",{ref:s,className:"relative",onMouseEnter:n,children:[m.jsxs(xo,{ref:i,type:"button",variant:"ghost",size:"sm",className:"gap-1 px-2 text-sm font-normal","aria-expanded":o,"aria-controls":c,"aria-haspopup":"true",onClick:()=>o?a():n(),children:[r(e.i18nKey),m.jsx(xl,{size:14,"aria-hidden":"true",className:Ve("transition-transform duration-200",o&&"rotate-180")})]}),m.jsx("div",{id:c,hidden:!o,className:Ve("absolute top-full start-0 z-50 pt-2",e.id==="product"?"w-[44rem]":"w-[38rem]"),children:m.jsx("div",{className:"grid grid-cols-2 gap-x-3 gap-y-5 rounded-xl border border-border bg-background/98 p-4 shadow-xl backdrop-blur-sm",children:e.sections.map(l=>m.jsxs("section",{"aria-labelledby":`${c}-${l.id}`,children:[m.jsx("h2",{id:`${c}-${l.id}`,className:"mb-1.5 px-2 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:r(l.i18nKey)}),m.jsx("div",{className:"space-y-0.5",children:l.items.map(d=>{const u=!d.external&&Sr(t,d.to);return m.jsx(Zo,{item:d,surface:"desktop",menuId:e.id,sectionId:l.id,onNavigate:a,className:Ve("group relative block rounded-xl px-2.5 py-2.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",u?"bg-accent":"hover:bg-accent"),children:m.jsx(ou,{item:d,active:u})},d.id)})})]},l.id))})})]})}function tw({pathname:e,openId:t,onOpen:o,onClose:n}){const{t:a}=fe();return m.jsx("nav",{className:"hidden items-center gap-2 lg:flex","aria-label":a("theme.NavBar.navAriaLabel"),children:Zl.map(r=>r.kind==="dropdown"?m.jsx(ew,{item:r,pathname:e,open:t===r.id,onOpen:()=>o(r.id),onClose:n},r.id):m.jsx(nu,{item:r,pathname:e,menuId:"primary"},r.id))})}function ow({pathname:e}){const{t}=fe();return m.jsx("nav",{className:"hidden items-center gap-3 lg:flex","aria-label":t("theme.NavBar.secondaryNavAriaLabel"),children:eu.map(o=>o.kind==="link"?m.jsx(nu,{item:o,pathname:e,menuId:"utility"},o.id):null)})}const nw=be.i18n?.localeConfigs??{};function aw(e){return nw[e]?.label??e}function rw(){const[e,t]=S.useState(!1),[o,n]=S.useState(!1),[a,r]=S.useState(!1),s=S.useRef(!1),i=S.useCallback(()=>t(!0),[]),c=S.useCallback(()=>{s.current=!0,r(!0),t(!0)},[]),l=S.useCallback(()=>{s.current=!1,r(!1)},[]),d=S.useCallback(k=>{k.button===0&&k.ctrlKey===!1&&n(!0),t(!0)},[]),u=S.useCallback(k=>{(k.key==="Enter"||k.key===" "||k.key==="ArrowDown")&&(k.preventDefault(),n(!0),t(!0))},[]),h=S.useCallback(()=>{n(!0),t(!0)},[]),f=S.useCallback(k=>{k&&s.current&&k.focus()},[]);return{enabled:e,enable:i,openOnLoad:o,autoFocusTrigger:a,handleFocus:c,handleBlur:l,handlePointerDown:d,handleKeyDown:u,handleClick:h,focusFallback:f}}function jB(e){return S.useCallback(t=>{t&&e&&t.focus()},[e])}const sw=S.lazy(()=>b(()=>import("./locale-switcher-menu-BCZOfW-h.js"),__vite__mapDeps([9,4,10,11,7,1])).then(e=>({default:e.LocaleSwitcherMenu})));function Js({label:e,ariaLabel:t,...o}
4){return m.jsxs("button",{type:"button","aria-label":t,className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-2.5 py-1.5 text-base font-normal text-muted-foreground hover:text-foreground hover:bg-accent transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",...o,children:[m.jsx(Wk,{size:16,"aria-hidden":!0}),m.jsx("span",{className:"hidden sm:inline",children:e})]})}function au(){const{t:e,locale:t}=fe(),{enabled:o,enable:n,openOnLoad:a,autoFocusTrigger:r,handleFocus:s,handleBlur:i,handlePointerDown:c,handleKeyDown:l,handleClick:d,focusFallback:u}=rw();if(S.useEffect(()=>{if(o)return;const k=window.setTimeout(()=>n(),4e3);return()=>clearTimeout(k)},[o,n]),mt.length<=1)return null;const h=aw(t),f=e("theme.navbar.mobileLanguageDropdown.label");return o?m.jsx(S.Suspense,{fallback:m.jsx(Js,{label:h,ariaLabel:f,ref:u,onFocus:s,onBlur:i,onPointerDown:c,onKeyDown:l,onClick:d}),children:m.jsx(sw,{defaultOpen:a,autoFocusTrigger:r})}):m.jsx(Js,{label:h,ariaLabel:f,onPointerEnter:n,onFocus:s,onPointerDown:c,onKeyDown:l,onClick:d})}const iw='a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])';function cw(e,t){S.useEffect(()=>{t?.current?.focus();const o=n=>{if(n.key!=="Tab")return;const a=Array.from(e.current?.querySelectorAll(iw)??[]).filter(i=>!i.closest("[hidden]")),r=a[0],s=a.at(-1);!r||!s||(n.shiftKey&&document.activeElement===r?(n.preventDefault(),s.focus()):!n.shiftKey&&document.activeElement===s&&(n.preventDefault(),r.focus()))};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[])}const lw="https://github.com/bex-co/beancount-io",uw="https://api.github.com/repos/bex-co/beancount-io",dw="https://t.me/beancount",pw=219;function mw(e){return e<1e3?String(e):`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`}const Zs="flex items-center gap-1.5 rounded-sm px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50";function ru(){const[e,t]=S.useState(pw);return S.useEffect(()=>{let o=!1;return fetch(uw).then(n=>n.ok?n.json():null).then(n=>{!o&&typeof n?.stargazers_count=="number"&&t(n.stargazers_count)}).catch(()=>{}),()=>{o=!0}},[]),m.jsxs("div",{className:"flex items-center gap-0.5",children:[m.jsxs("a",{href:lw,target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",className:Zs,children:[m.jsx(Gk,{size:18,"aria-hidden":"true"}),m.jsx("span",{className:"hidden text-xs font-medium tabular-nums sm:inline",children:mw(e)})]}),m.jsx("a",{href:dw,target:"_blank",rel:"noopener noreferrer","aria-label":"Telegram",className:Zs,children:m.jsx(b$,{size:18,"aria-hidden":"true"})})]})}function hw({pathname:e,onClose:t}){const{t:o}=fe(),n=S.useRef(null),a=S.useRef(null);return cw(n,a),m.jsxs("div",{ref:n,className:"fixed inset-0 z-[60] flex flex-col bg-background/98 backdrop-blur-xl lg:hidden",role:"dialog","aria-modal":"true","aria-label":o("theme.NavBar.navAriaLabel"),children:[m.jsxs("div",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border/50 px-4 sm:px-6",children:[m.jsx(tu,{onNavigate:t}),m.jsx(xo,{ref:a,type:"button",variant:"ghost",size:"icon",onClick:t,"aria-label":o("navbar.menu.close"),children:m.jsx(El,{size:20})})]}),m.jsx("nav",{className:"flex-1 overflow-y-auto overscroll-contain px-4 py-6 sm:px-8",children:m.jsxs("div",{className:"mx-auto max-w-2xl space-y-3",children:[Zl.map(r=>r.kind==="dropdown"?m.jsx(fw,{item:r,pathname:e,onNavigate:t},r.id):m.jsx(Zo,{item:r,surface:"mobile",menuId:"primary",onNavigate:t,className:"block rounded-xl border border-border px-4 py-3 text-xl font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",children:o(r.i18nKey)},r.id)),m.jsx("div",{className:"grid gap-2 border-t border-border/60 pt-5 sm:grid-cols-3",children:eu.map(r=>r.kind==="link"?m.jsx(Zo,{item:r,surface:"mobile",menuId:"utility",onNavigate:t,className:Ve("flex min-h-11 items-center justify-center rounded-lg px-4 py-2.5 text-center text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",r.role==="primary"?"bg-primary text-primary-foreground shadow hover:bg-primary/90":r.role==="demo"?"border border-primary/40 bg-primary/5 text-foreground hover:bg-primary/10":"border border-border text-muted-foreground hover:bg-accent hover:text-foreground"),children:o(r.i18nKey)},r.id):null)}),m.jsxs("div",{className:"flex items-center justify-between border-t border-border/60 pt-4",children:[m.jsx(ru,{}),m.jsx(au,{})]}),m.jsx("p",{className:"pt-3 text-[11px] uppercase tracking-[0.16em] text-muted-foreground",children:o("site.tagline")})]})})]})}function fw({item:e,pathname:t,onNavigate:o}){const{t:n}=fe(),[a,r]=S.useState(!1),s=`mobile-nav-${e.id}`;return m.jsxs("div",{className:"overflow-hidden rounded-xl border border-border",children:[m.jsxs("button",{type:"button",className:"flex w-full items-center justify-between px-4 py-3 text-start text-xl font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary/50","aria-expanded":a,"aria-controls":s,onClick:()=>r(i=>!i),children:[n(e.i18nKey),m.jsx(xl,{size:18,"aria-hidden":"true",className:Ve("transition-transform duration-200",a&&"rotate-180")}
4)]}),a&&m.jsx("div",{id:s,className:"space-y-5 border-t border-border bg-muted/20 p-4",children:e.sections.map(i=>m.jsxs("section",{"aria-labelledby":`${s}-${i.id}`,children:[m.jsx("h2",{id:`${s}-${i.id}`,className:"mb-1.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:n(i.i18nKey)}),m.jsx("div",{className:"grid gap-1 sm:grid-cols-2",children:i.items.map(c=>{const l=!c.external&&Sr(t,c.to);return m.jsx(Zo,{item:c,surface:"mobile",menuId:e.id,sectionId:i.id,onNavigate:o,className:Ve("group block rounded-xl px-2.5 py-2.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",l?"bg-accent":"hover:bg-accent"),children:m.jsx(ou,{item:c,active:l})},c.id)})})]},i.id))})]})}function su(){const{t:e}=fe(),[t,o]=S.useState(null),n=oo({select:c=>c.location.pathname}),{open:a,triggerRef:r,openOverlay:s,close:i}=R$();return m.jsxs(m.Fragment,{children:[m.jsx(G$,{}),m.jsx("header",{className:"sticky top-0 z-50 border-b border-border/50 bg-background/80 backdrop-blur-sm",children:m.jsxs("div",{className:"mx-auto flex h-14 max-w-[1400px] items-center justify-between gap-4 px-4 sm:px-6",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-5 xl:gap-8",children:[m.jsx(tu,{}),m.jsx(tw,{pathname:n,openId:t,onOpen:c=>o(c),onClose:()=>o(null)})]}),m.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground xl:gap-3",children:[m.jsx(Mc,{children:m.jsx(z$,{})}),m.jsx(ru,{}),m.jsx(ow,{pathname:n}),m.jsx(xo,{ref:r,type:"button",variant:"ghost",size:"icon",onClick:()=>{o(null),s()},"aria-label":e("navbar.menu.open"),"aria-expanded":a,className:"lg:hidden",children:m.jsx(a$,{size:18})})]})]})}),a&&m.jsx(hw,{pathname:n,onClose:i})]})}const gw="https://apps.apple.com/us/app/id1527950512",bw="https://play.google.com/store/apps/details?id=io.beancount.android";function yw({className:e}){const{t}=fe();return m.jsxs("div",{className:`flex flex-wrap items-center gap-3${e?` ${e}`:""}`,children:[m.jsx("a",{href:gw,target:"_blank",rel:"noopener noreferrer",className:"cursor-pointer transition-opacity hover:opacity-80",children:m.jsx("img",{src:"/img/app-store.png",alt:t("footer.appBadge.appStore.alt"),width:320,height:108,loading:"lazy",decoding:"async",className:"h-10 w-auto"})}),m.jsx("a",{href:bw,target:"_blank",rel:"noopener noreferrer",className:"cursor-pointer transition-opacity hover:opacity-80",children:m.jsx("img",{src:"/img/google-play-badge.png",alt:t("footer.appBadge.googlePlay.alt"),width:563,height:167,loading:"lazy",decoding:"async",className:"h-10 w-auto"})})]})}const Rn=[{value:"light",icon:$$},{value:"dark",icon:c$},{value:"system",icon:s$}];function vw(){const{theme:e,setTheme:t}=tl(),{t:o}=fe(),[n,a]=S.useState(!1);S.useEffect(()=>{a(!0)},[]);const r=Rn.findIndex(u=>u.value===e),s=Rn[r>=0?r:2],i=s.icon,c=()=>{const u=(r+1)%Rn.length;t(Rn[u].value)},l=o(`theme.colorToggle.ariaLabel.mode.${s.value}`),d=o("theme.colorToggle.ariaLabel",{mode:l});return n?m.jsxs(xo,{variant:"ghost",size:"sm",className:"text-base font-normal",onClick:c,title:d,"aria-label":d,children:[m.jsx(i,{size:16,"aria-hidden":!0}),m.jsx("span",{className:"hidden sm:inline",children:l})]}):m.jsxs(xo,{variant:"ghost",size:"sm",className:"text-base font-normal","aria-hidden":!0,tabIndex:-1,children:[m.jsx("span",{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline opacity-0",children:"Dark"})]})}const kw=()=>()=>{},$w=()=>!0,_w=()=>!1;function ww(){return S.useSyncExternalStore(kw,$w,_w)}const Rw={"Getting Started":"footer.section.gettingStarted",Features:"footer.section.features",Community:"footer.section.community",Legal:"footer.section.legal"},Pw={Documentation:"footer.link.documentation","API Reference":"footer.link.apiReference","Quick Start Guide":"footer.link.quickStartGuide",FAQ:"footer.link.faq","First Transaction":"footer.link.firstTransaction","Open Ledger":"footer.link.openLedger",Changelog:"footer.link.changelog",Tracking:"footer.link.tracking","Live Prices":"footer.link.livePrices","For Couples":"footer.link.forCouples","For Professionals":"footer.link.forProfessionals","Hosted Fava":"footer.link.hostedFava","Git Version Control":"footer.link.gitVersionControl","Beancount MCP":"footer.link.beancountMcp","AI Automation":"footer.link.aiAutomation","Mobile Apps":"footer.link.mobileAp
4ps",Pricing:"footer.link.pricing","Twitter/X":"footer.link.twitter","Telegram Chat":"footer.link.telegramChat",GitHub:"footer.link.github",YouTube:"footer.link.youtube",Blog:"footer.link.blog","About Us":"footer.link.aboutUs","Brand Assets":"footer.link.brandAssets","Privacy Policy":"footer.link.privacyPolicy","Terms of Service":"footer.link.termsOfService",Security:"footer.link.security",Compare:"footer.link.compare","Founder Resources Hub":"footer.link.founderResources"};function Sw(e){const t=Pw[e.label]??e.label;return e.href?{kind:"link",label:e.label,i18nKey:t,href:e.href,external:!0}:{kind:"link",label:e.label,i18nKey:t,to:e.to??"/",external:!1}}const xr=be.themeConfig.footer,xw=xr.links.map(e=>({title:e.title,i18nKey:Rw[e.title]??e.title,items:e.items.map(Sw)})),Tw=xr.copyright,Ce=xr.logo??null;function Ba(e,t){const o={};return e!==void 0&&(o.width=typeof e=="number"?`${e}px`:e),t!==void 0&&(o.height=typeof t=="number"?`${t}px`:t),o}const ei="group inline-flex min-w-0 max-w-full items-center text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer";function ti({label:e}){return m.jsxs("span",{className:"relative min-w-0 break-words",children:[e,m.jsx("span",{className:"absolute left-0 right-0 -bottom-0.5 h-px scale-x-0 origin-left bg-primary transition-transform duration-300 group-hover:scale-x-100"})]})}function Ew({item:e}){return e.external?m.jsxs("a",{href:e.href,target:e.href.startsWith("mailto:")?void 0:"_blank",rel:e.href.startsWith("mailto:")?void 0:"noopener noreferrer",className:`${ei} gap-1`,children:[m.jsx(ti,{label:e.label}),!e.href.startsWith("mailto:")&&m.jsx(Ek,{size:12,className:"opacity-60 group-hover:opacity-100 group-hover:-translate-y-0.5 group-hover:translate-x-0.5 transition-transform"})]}):m.jsx(ut,{to:e.to,className:ei,children:m.jsx(ti,{label:e.label})})}function Aw(){return ww()?m.jsxs("div",{className:"flex items-center gap-1 border-s border-border/60 ps-3",children:[m.jsx(au,{}),m.jsx(vw,{})]}):null}function iu(){const{t:e}=fe();return m.jsxs("footer",{className:"relative border-t bg-background border-border/50",children:[m.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-primary/0 via-primary/60 to-primary/0"}),m.jsxs("div",{className:"mx-auto max-w-[1400px] px-4 sm:px-6 py-16",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-10 md:grid-cols-[1.6fr_1fr_1fr_1fr_1fr] md:gap-12",children:[m.jsxs("div",{className:"col-span-2 md:col-span-1 flex flex-col gap-5",children:[(()=>{const t=Ce?Ce.srcDark?m.jsxs(m.Fragment,{children:[m.jsx("img",{src:Ce.src,alt:"",style:Ba(Ce.width,Ce.height),className:"h-8 w-auto dark:hidden"}),m.jsx("img",{src:Ce.srcDark,alt:"",style:Ba(Ce.width,Ce.height),className:"h-8 w-auto hidden dark:block"})]}):m.jsx("img",{src:Ce.src,alt:"",style:Ba(Ce.width,Ce.height),className:"h-8 w-auto"}):m.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary flex items-center justify-center",children:m.jsx(Al,{size:18,className:"text-primary-foreground"})}),o=m.jsx("span",{className:"text-lg font-bold tracking-tight",children:$});return Ce?.href&&!Ce.href.startsWith("/")?m.jsxs("a",{href:Ce.href,"aria-label":$,className:"flex items-center gap-2.5 w-fit cursor-pointer",children:[t,o]}):m.jsxs(ut,{to:Ce?.href??"/","aria-label":$,className:"flex items-center gap-2.5 w-fit cursor-pointer",children:[t,o]})})(),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed max-w-xs",children:e("site.tagline")}),m.jsx(yw,{})]}),xw.map(t=>m.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[m.jsx("h2",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:e(t.i18nKey)}),m.jsx("ul",{className:"flex flex-col gap-3",children:t.items.map(o=>m.jsx("li",{children:m.jsx(Ew,{item:{...o,label:e(o.i18nKey)}})},o.label))})]},t.title))]}),m.jsxs("div",{className:"mt-14 pt-6 border-t border-border/50 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[m.jsx("p",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:Tw}),m.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[m.jsx(Aw,{}),m.jsx("p",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground font-mono",children:e("site.tagline")})]})]})]})]})}const Lw=[{to:"/docs/help-center",key:"docs"},{to:"/pricing",key:"pricing"},{to:"/ai",key:"ai"},{to:"/mcp",key:"mcp"}];function cu(){const{t:e}=fe();return m.jsxs("div",{className:"min-h-screen noise-bg flex flex-col",children:[m.jsx(su,{}),m.jsx("main",{id:"main",className:"flex-1 flex items-center justify-center px-4 py-24",children:m.jsxs("div",{className:"text-center max-w-md",children:[m.jsx("p",{className:"text-6xl font-bold text-primary mb-6 tracking-tight",children:"404"}),m.jsx("h1",{className:"text-2xl font-bold mb-3 tracking-tight",children:e("theme.NotFound.title")}),m.jsx("p",{className:"text-muted-foreground mb-2",children:e("theme.NotFound.p1")}),m.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:e("theme.NotFound.p2")}),m.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[m.jsx(ut,{to:"/",className:"inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",children:e("theme.NotFound.link.home")}),m.jsx(ut,{to:"/blog",className:"inline-flex items-center gap-1.5 rounded-lg border border-border px-4 py-2 text-sm font-medium hover:bg-accent transition-colors",children:e("theme.NotFound.link.blog")})]}),m.jsxs("div",{className:"mt-8 pt-6 border-t border-border/50",children:[m.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-3",children:e("theme.NotFound.moreDestinations")}),m.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-sm",children:Lw.map(({to:t,key:o})=>m.jsx(ut,{to:t,className:"text-muted-foreground hover:text-foreground underline-offset-4 hover:underline transition-colors",children:e(`theme.NotFound.link.${o}`)},t))})]})]})}),m.jsx(iu,{})]})}function Cw({nonce:e}){const t=`(function(){try{var s=localStorage.getItem("${el}");var t;if(s==="light"||s==="dark"){t=s}else if(s==="system"){t=window.matchMedia("${vr}
4").matches?"dark":"light"}else{t="dark"}var r=document.documentElement;r.classList.remove("light","dark");r.classList.add(t)}catch(e){document.documentElement.classList.add("dark")}})();`;return m.jsx("script",{nonce:e,dangerouslySetInnerHTML:{__html:t}})}function Nw(e){return e.some(t=>t.status==="notFound"||!!t.globalNotFound)}function Iw(e){return`${e} not found`}function Fw(e,t){return{page_path:e,referrer:t,locale:Jn(e),non_interaction:!0}}const oi=kr(be);function Ow(){const e=oo({select:o=>o.location}),t=oo({select:o=>Nw(o.matches)});return S.useEffect(()=>{const o=t?Iw(e.pathname):void 0;o&&typeof document<"u"&&(document.title=o);const n=oi&&typeof window<"u"&&typeof window.gtag=="function";n&&window.gtag("config",oi,{page_path:e.pathname+e.searchStr,...o?{page_title:o}:{}}),n&&t&&window.gtag("event","404",Fw(e.pathname,typeof document<"u"?document.referrer:""))},[e.pathname,e.searchStr,t]),null}const Bw=kr(be);function Mw(){return S.useEffect(()=>{Bw&&b(async()=>{const{reportWebVitals:e,sendToGA:t}=await import("./web-vitals-LY2bxXfk.js");return{reportWebVitals:e,sendToGA:t}},[]).then(({reportWebVitals:e,sendToGA:t})=>{e(t)})},[]),null}const qw="/assets/style-BGMb0TCO.css";function Dw({nonce:e}){return m.jsx("link",{rel:"stylesheet",href:qw})}const ni=Object.freeze({en:"en_US",zh:"zh_CN",bg:"bg_BG",ca:"ca_ES",de:"de_DE",es:"es_ES",fa:"fa_IR",fr:"fr_FR",ja:"ja_JP",ko:"ko_KR",nl:"nl_NL",pt:"pt_PT",ru:"ru_RU",sk:"sk_SK",uk:"uk_UA",it:"it_IT"});function lu(e){return ni[e]??ni[ae]??"en_US"}const uu=Object.freeze(mt.map(e=>({property:"og:locale:alternate",content:lu(e)})));Object.freeze(uu.map(e=>e.content));function Uw(){return m.jsx(m.Fragment,{children:uu.map(e=>m.jsx("meta",{property:e.property,content:e.content},e.content))})}const jw="https://www.googletagmanager.com",Vw="https://www.google-analytics.com";let rr=!1;function Ht(){rr||(rr=!0,(async()=>{const{default:e}=await b(async()=>{const{default:t}=await import("./aos-B7b6CNUa.js").then(o=>o.a);return{default:t}},__vite__mapDeps([12,4]));try{await b(()=>Promise.resolve({}),__vite__mapDeps([13]))}catch{}e.init({once:!0})})().catch(()=>{}))}function Kw(){const e=oo({select:t=>t.location.pathname});S.useEffect(()=>{if(rr||!document.querySelector("[data-aos]"))return;const t=window.setTimeout(Ht,4e3);return window.addEventListener("scroll",Ht,{once:!0,passive:!0}),window.addEventListener("pointerdown",Ht,{once:!0,passive:!0}),window.addEventListener("keydown",Ht,{once:!0}),()=>{clearTimeout(t),window.removeEventListener("scroll",Ht),window.removeEventListener("pointerdown",Ht),window.removeEventListener("keydown",Ht)}},[e])}const Pn=kr(be);function zw({children:e}){const t=oo({select:a=>a.location.pathname}),o=$e().options.ssr?.nonce,n=Jn(t);return m.jsxs("html",{lang:Nt(n),dir:nl(n),suppressHydrationWarning:!0,children:[m.jsxs("head",{children:[m.jsx(Cw,{nonce:o}),m.jsx(Nv,{}),m.jsx(Uw,{}),m.jsx(Dw,{nonce:o})]}),m.jsxs("body",{children:[e,m.jsx(Iv,{})]})]})}function Gw(){return Kw(),null}function Hw(){const e=ea.useLoaderData(),t=oo({select:o=>o.location.pathname});return m.jsxs(jv,{children:[m.jsx(Ow,{}),m.jsx(Mw,{}),m.jsx(Gw,{}),m.jsx(S.Suspense,{fallback:null,children:m.jsx($k,{pathname:t,initial:e,children:m.jsx(Xc,{})})})]})}const ea=mv()({loader:async({location:e})=>{const t=Jn(e.pathname),o=Pl(e.pathname),n=await X(t,o);return{locale:t,namespaces:o,messages:n}},head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:$},{property:"og:image",content:_r},{name:"twitter:site",content:"@bexdotco"},{name:"robots",content:tk?"noindex,nofollow":"max-image-preview:large, max-snippet:-1"}],links:[{rel:"icon",href:ek},...Pn?[{rel:"preconnect",href:jw},{rel:"preconnect",href:Vw}]:[]],scripts:Pn?[{src:`https://www.googletagmanager.com/gtag/js?id=${Pn}`,async:!0},{children:`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','${Pn}');`}]:[]}),notFoundComponent:cu,shellComponent:zw,component:Hw}),du="/assistant",sn="/bank-sync",ai={"/ai":du,"/link-accounts":sn};function Tr(e){return Object.hasOwn(ai,e)?ai[e]:e}var Ww={};function pu(e,t){if(e===ae){const o=t.replace(new RegExp(`^/${ae}(?=[/?#]|$)`),"");throw tn({href:o.startsWith("/")?o:`/${o}`,replace:!0})}if(e&&!ol(e))throw V()}const Yw=/^\/(blog|bean-labs\/research-logs)\/(\d{4})\/(\d{2})\/(\d{2})\/([^/]+)\/?$/;async function Qw(e){const{getTranslatedLocalesFn:t}=await b(async()=>{const{getTranslatedLocalesFn:o}=await Promise.resolve().then(()=>AR);return{getTranslatedLocalesFn:o}},void 0);return t({data:{year:e.year,month:e.month,day:e.day,slug:e.slug,instance:e.instance}})}
4async function Xw(e){const{SUPPORTED_LOCALES:t}=await b(async()=>{const{SUPPORTED_LOCALES:o}=await Promise.resolve().then(()=>zv);return{SUPPORTED_LOCALES:o}},void 0);return t}const Jw=Ww.VITEST?Xw:Qw;let Zw=Jw;function eR(e){const t=Yw.exec(e);if(!t)return null;const[,o,n,a,r,s]=t;return{year:n,month:a,day:r,slug:s,instance:o==="blog"?"blog":"research-logs"}}async function mu(e){const t=eR(e);if(t)return Zw(t)}function hu(e,t,o){const n=Nt(e??ae),a=t[t.length-1],r=Tr(rn(a.pathname)),s=o??a.loaderData?.translatedLocales;return{links:kk(r,s),scripts:[{children:`document.documentElement.lang=${JSON.stringify(n)};`}]}}const tR=v("/($locale)")({beforeLoad:({params:e,location:t})=>pu(e.locale,t.href),head:async({params:e,matches:t})=>{const o=t[t.length-1],n=Tr(rn(o.pathname)),a=await mu(n);return hu(e.locale,t,a)}}),oR=v("/$locale")({beforeLoad:({params:e,location:t})=>pu(e.locale,t.href),head:async({params:e,matches:t})=>{const o=t[t.length-1],n=Tr(rn(o.pathname)),a=await mu(n);return hu(e.locale,t,a)}}),nR="Beancount";function M(e){const{title:t,description:o,canonicalUrl:n,locale:a,type:r="website",twitterTitle:s=t,image:i,twitterImage:c,ogUrl:l=n}=e;return[{property:"og:title",content:t},{property:"og:description",content:o},{property:"og:type",content:r},{property:"og:site_name",content:nR},{property:"og:locale",content:lu(a)},...i?[{property:"og:image",content:i}]:[],{property:"og:url",content:l},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:s},{name:"twitter:description",content:o},...c?[{name:"twitter:image",content:c}]:[]]}function Ft(e){const{title:t,description:o,canonicalUrl:n,locale:a,type:r="article",image:s,twitterImage:i}=e;return M({title:t,description:o,canonicalUrl:n,locale:a,type:r,image:s,twitterImage:i})}const cn=be.presets?.[0]?.[1]?.blog,VB=cn?.routeBasePath,Pe=cn?.postsPerPage,ht=cn?.blogTitle,Zt=cn?.blogDescription;cn?.truncateMarker;const aR="common.blog",rR="blog.description",sR="common.researchLog",iR="bean-labs.researchLogs.description";function cR(e){for(const t of be.plugins??[])if(Array.isArray(t)&&t[0]==="@docusaurus/plugin-content-blog"&&t[1]?.id===e)return t[1]}const ln=cR("research-logs");ln?.path;const KB=ln?.routeBasePath??"bean-labs/research-logs",Se=ln?.postsPerPage??12,Qe=ln?.blogTitle??"Bean Labs Research Log",eo=ln?.blogDescription??"";function ta(e){const t=e.heroImage||e.image||se({title:e.title});return t.startsWith("/")&&!t.startsWith("//")?Vn(t):t}function Vn(e){if(/^https?:\/\//i.test(e))return e;const t=I.replace(/\/$/,"");return e.startsWith("/")?`${t}${e}`:`${t}/${e}`}function lR(e){return{type:"application/ld+json",children:JSON.stringify(e)}}function q(...e){return e.map(lR)}const fu=`${I}/img/favicon.png`,Et={"@type":"Organization",name:$,url:I,logo:{"@type":"ImageObject",url:fu}};function uR(e){return{"@type":"Person",name:e.name,...e.jobTitle?{jobTitle:e.jobTitle}:{},...e.url?{url:e.url}:{},...e.image?{image:e.image}:{},...e.sameAs&&e.sameAs.length>0?{sameAs:e.sameAs}:{}}}function gu(e,t){return uR({name:e.name,jobTitle:e.title,url:t,image:e.image_url,sameAs:e.sameAs})}function bu(e,t){return gu(e,e.url??`${t}/${e.key}`)}function dR(e,t){const o=e.authorLinks??[];return o.length>0?o.map(n=>bu(n,t)):e.authors.map(n=>({"@type":"Person",name:n}))}function pR(e){if(e.keywords&&e.keywords.length>0)return e.keywords.join(", ");if(e.tags&&e.tags.length>0)return e.tags.join(", ")}function Z(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,o)=>({"@type":"ListItem",position:o+1,name:t.name,item:t.url}))}}function mR(e,t,o){const n=dR(e,o.authorBaseUrl),a=pR(e),r=o.citations?.filter(Boolean)??[],s=e.heroImage,i=e.heroImageWidth,c=e.heroImageHeight,l=s&&i&&c?{"@type":"ImageObject",url:Vn(s),width:i,height:c}:s?Vn(s):e.image||_r;return{"@context":"https://schema.org","@type":"BlogPosting",headline:e.title,description:e.description,datePublished:e.date,dateModified:e.lastModified,image:l,...n.length>0?{author:n}:{},...a?{keywords:a}:{},mainEntityOfPage:{"@type":"WebPage","@id":t},url:t,publisher:Et,...r.length>0?{isBasedOn:r,citation:r.map(d=>({"@type":"ScholarlyArticle",url:d}))}:{}}}function oa(e){const{meta:t,url:o,homeUrl:n,sectionName:a,sectionUrl:r,citations:s,hub:i}=e;return[mR(t,o,{authorBaseUrl:`${r}/authors`,citations:s}),Z([{name:$,url:n},...i?[i]:[],{name:a,url:r},{name:t.title,url:o}])]}function yu(e){const{title:t,description:o,keywords:n,url:a,homeUrl:r,docsName:s,docsUrl:i}=e,c=e.authors??[];return[{"@context":"https://schema.org","@type":"TechArticle",headline:t,description:o,image:_r,...n&&n.length>0?{keywords:n.join(", ")}:{},mainEntityOfPage:{"@type":"WebPage","@id":a},url:a,author:c.length>0?c.map(d=>bu(d,e.authorBaseUrl)):Et,...e.dateModified?{dateModified:e.dateModified}:{},publisher:Et},Z([{name:$,url:r},{name:s,url:i},{name:t,url:a}])]}function un(e,t){return e.map(o=>({title:o.title,url:`${t}/${o.year}/${o.month}/${o.day}/${o.slug}`,...o.heroImage?{image:Vn(o.heroImage)}:{}}))}function yt(e){const{name:t,url:o,description:n,items:a}=e;return{"@context":"https://schema.org","@type":"CollectionPage",name:t,url:o,...n?{description:n}:{},isPartOf:{"@type":"WebSite",name:$,url:I},mainEntity:{"@type":"ItemList",itemListElement:a.map((r,s)=>
4({"@type":"ListItem",position:s+1,url:r.url,name:r.title,...r.image?{image:r.image}:{}}))},publisher:Et}}function hR(e){const{name:t,items:o}=e;return o.length===0?[]:[{"@context":"https://schema.org","@type":"ItemList",...t?{name:t}:{},itemListOrder:"https://schema.org/ItemListOrderDescending",numberOfItems:o.length,itemListElement:o.map((n,a)=>({"@type":"ListItem",position:a+1,item:{"@type":"SoftwareApplication",name:n.name,...n.description?{description:n.description}:{},...n.url?{url:n.url}:{},applicationCategory:"FinanceApplication",operatingSystem:"Web"}}))}]}function fR(e){const{author:t,url:o}=e;return[{"@context":"https://schema.org","@type":"ProfilePage",url:o,mainEntity:gu(t,t.url)}]}function me(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function vu(e){const{url:t,name:o,description:n,terms:a}=e;return a.length===0?[]:[{"@context":"https://schema.org","@type":"DefinedTermSet","@id":t,name:o,url:t,...n?{description:n}:{},publisher:Et,hasDefinedTerm:a.map(r=>({"@type":"DefinedTerm","@id":`${t}#${r.anchor}`,name:r.term,...r.shortDefinition?{description:r.shortDefinition}:{},url:`${t}#${r.anchor}`,inDefinedTermSet:{"@type":"DefinedTermSet","@id":t}}))}]}function xe(e){return{"@context":"https://schema.org","@type":"WebApplication",name:e.name,description:e.description,url:e.url,applicationCategory:e.applicationCategory??"FinanceApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},provider:Et}}function dn(e){return{"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,...e.url?{url:e.url}:{},applicationCategory:e.applicationCategory??"FinanceApplication",...e.operatingSystem?{operatingSystem:e.operatingSystem}:{},...e.offers?{offers:e.offers}:{},...e.featureList?{featureList:e.featureList}:{},provider:Et}}function gR(e){return{"@context":"https://schema.org","@type":"Product",name:e.name,description:e.description,url:e.url,brand:Et,offers:e.offers.filter(t=>t.price!==null).map(t=>({"@type":"Offer",name:t.name,price:String(t.price),priceCurrency:t.priceCurrency,url:t.url,availability:"https://schema.org/InStock",...t.billingDuration?{billingDuration:`P1${t.billingDuration==="year"?"Y":"M"}`}:{}}))}}function ri(e){return[{"@context":"https://schema.org","@type":"Organization",name:$,description:tr,url:e,logo:{"@type":"ImageObject",url:fu},sameAs:[...rk],contactPoint:{"@type":"ContactPoint",contactType:"customer support",email:"[email protected]",url:`${I}/contact`,availableLanguage:[...new Set(mt.map(Nt))]},address:{"@type":"PostalAddress",streetAddress:"600 California Street, 11th Floor",addressLocality:"San Francisco",addressRegion:"CA",postalCode:"94108",addressCountry:"US"}},{"@context":"https://schema.org","@type":"WebSite",name:$,description:tr,url:e}]}function R(e){return e?.locale??ae}function Te(...e){const t=[];for(const o of e){const n=bk(o);n&&!t.includes(n)&&t.push(n)}return t}function te(e,t,o){const n=Te(e,t);return async({params:a})=>{const r=await X(R(a),n);return{pageTitle:A(e,r),pageDesc:A(t,r),...o?.(r)}}}const bR=[["homepage.faqs.question.what-is-beancount","homepage.faqs.answer.what-is-beancount"],["homepage.faqs.question.cost","homepage.faqs.answer.cost"],["homepage.faqs.question.customize","homepage.faqs.answer.customize"],["homepage.faqs.question.migration","homepage.faqs.answer.migration"],["homepage.faqs.question.documentation","homepage.faqs.answer.documentation"],["homepage.faqs.question.data-safety","homepage.faqs.answer.data-safety"],["homepage.faqs.question.support","homepage.faqs.answer.support"],["homepage.faqs.question.prereq","homepage.faqs.answer.prereq"]];function yR(e){const t=A("homepage.faqs.link.help-center",e),o=A("homepage.faqs.link.help-center-support",e);return bR.map(([n,a])=>{let r;return a==="homepage.faqs.answer.documentation"?r=A(a,e,{helpCenter:t}):a==="homepage.faqs.answer.support"?r=A(a,e,{telegram:"telegram",helpCenter:o}):r=A(a,e),{question:A(n,e),answer:r}})}const vR="/img/ledger/overview-example.webp",kR="/img/download/mobile-home.webp",$R=[{rel:"preload",as:"image",type:"image/webp",href:vR,fetchPriority:"high"},{rel:"preload",as:"image",type:"image/webp",href:kR,fetchPriority:"high"}];function si(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function sr(e,t){const o=Object.create(null);if(e)for(const n of Object.keys(e))si(n)&&(o[n]=e[n]);if(t&&typeof t=="object")for(const n of Object.keys(t))si(n)&&(o[n]=t[n]);return o}function ku(e){return Object.create(null)}var $u=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")}
4,re=(e,t)=>{const o=t||e||{};return typeof o.method>"u"&&(o.method="GET"),Object.assign(r=>re(void 0,{...o,...r}),{options:o,middleware:r=>{const s=[...o.middleware||[]];r.map(c=>{Yr in c?c.options.middleware&&s.push(...c.options.middleware):s.push(c)});const i=re(void 0,{...o,middleware:s});return i[Yr]=!0,i},inputValidator:r=>re(void 0,{...o,inputValidator:r}),handler:(...r)=>{const[s,i]=r,c={...o,extractedFn:s,serverFn:i},l=[...c.middleware||[],RR(c)];return s.method=o.method,Object.assign(async d=>{const u=await ii(l,"client",{...s,...c,data:d?.data,headers:d?.headers,signal:d?.signal,fetch:d?.fetch,context:ku()}),h=Gi(u.error);if(h)throw h;if(u.error)throw u.error;return u.result},{...s,method:o.method,__executeServer:async d=>{const u=$u(),h=u.contextAfterGlobalMiddlewares;return await ii(l,"server",{...s,...d,serverFnMeta:s.serverFnMeta,context:sr(d.context,h),request:u.request}).then(f=>({result:f.result,error:f.error,context:f.sendContext}))}})}})};async function ii(e,t,o){let n=_R([...cr()?.functionMiddleware||[],...e]);if(t==="server"){const r=$u();r?.executedRequestMiddlewares&&(n=n.filter(s=>!r.executedRequestMiddlewares.has(s)))}const a=async r=>{const s=n.shift();if(!s)return r;try{"inputValidator"in s.options&&s.options.inputValidator&&t==="server"&&(r.data=await wR(s.options.inputValidator,r.data));let i;if(t==="client"?"client"in s.options&&(i=s.options.client):"server"in s.options&&(i=s.options.server),i){const l=await i({...r,next:async(d={})=>{const u=await a({...r,...d,context:sr(r.context,d.context),sendContext:sr(r.sendContext,d.sendContext),headers:Ny(r.headers,d.headers),_callSiteFetch:r._callSiteFetch,fetch:r._callSiteFetch??d.fetch??r.fetch,result:d.result!==void 0?d.result:d instanceof Response?d:r.result,error:d.error??r.error});if(u.error)throw u.error;return u}});if(Ie(l))return{...r,error:l};if(l instanceof Response)return{...r,result:l};if(!l)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return l}return a(r)}catch(i){return{...r,error:i}}};return a({...o,headers:o.headers||{},sendContext:o.sendContext||{},context:o.context||ku(),_callSiteFetch:o.fetch})}function _R(e,t=100){const o=new Set,n=[],a=(r,s)=>{if(s>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);r.forEach(i=>{i.options.middleware&&a(i.options.middleware,s+1),o.has(i)||(o.add(i),n.push(i))})};return a(e,0),n}async function wR(e,t){if(e==null)return{};if("~standard"in e){const o=await e["~standard"].validate(t);if(o.issues)throw new Error(JSON.stringify(o.issues,void 0,2));return o.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function RR(e){return{"~types":void 0,options:{inputValidator:e.inputValidator,client:async({next:t,sendContext:o,fetch:n,...a})=>{const r={...a,context:o,fetch:n};return t(await e.extractedFn?.(r))},server:async({next:t,...o})=>{const n=await e.serverFn?.(o);return t({...o,result:n})}}}}const PR=4e3;function SR(e,t){return e.length>t?`${e.slice(0,t)}…`:e}function xR(e,t,o){const n=t instanceof Error?t:void 0,a={level:"error",scope:e,message:n?.message||(typeof t=="string"?t:String(t))};return n?.name&&(a.name=n.name),n?.stack&&(a.stack=SR(n.stack,PR)),o&&Object.keys(o).length>0&&(a.context=o),a}function TR(e,t,o){try{console.error(JSON.stringify(xR(e,t,o)))}catch{console.error(`{"level":"error","scope":${JSON.stringify(e)}}`)}}async function Ao(e,t,o){try{return await e()}catch(n){const a=ER(n);return TR(t,n,a?{...o,...a}:o),null}}function ER(e){if(!(e instanceof Error)||e.name!=="LocalizedPostCompileError")return null;const{file:t}=e;return{reason:"mdx-compile",file:String(t??"unknown")}}const Er=re({method:"GET"}).handler(pe("079a35e59b9c57a335cf2df00b4c58bfdd3b4f83baa0369b0101240757eb5610")),Ar=re({method:"GET"}).handler(pe("3c5c31a864ea7cddfbaa1e92c9620ec3aeb2513eb08d61c0e54fa7c39ad640ce")),pn=re({method:"GET"}).handler(pe("08912daa8504763d736f7fe1d482fb893a4a32c27f9b253adbc273ff7f89cc4f")),ft=re({method:"POST"}).handler(pe("f23db20b8008790b6607423583432d5078bdf1eebc78a5e4e6c1225f10502889")),io=re({method:"POST"}).handler(pe("c846b0f7acf5bf76b66d65810d8f9d7d96af9bf772f3986282da0d8262dea229")),Lr=re({method:"POST"}).handler(pe("d143b1907f2b488b2161366ac662fa47ecf8df8ce8b6fcc8eddcfd3669ee72c5")),Cr=re({method:"POST"}).handler(pe("ac1aa7a623a226ba2df55851adeac109cc07cf3620693d3c7a603909964c2f08")),Nr=re({method:"POST"}
4).handler(pe("e70228f5d88536b790ee03f01020b5a06410bbb469bd23cf0ca69dc7a0bd5c8a")),_u=re({method:"GET"}).handler(pe("991c6cd275d1a8d5bfe74849e9aae026c5b14c4aab97316f9de9ed35edb44742")),Ir=re({method:"POST"}).handler(pe("7126d2fcc9be435f37ab388ebf07de87304a753997e020ee4313164a3f4e5a67")),Fr=re({method:"POST"}).handler(pe("9c788602328912810ebe005916e52b9cf0ff2db05844858ad89201216f2053fd")),wu=re({method:"GET"}).handler(pe("afdc8786c4aaea1dad8f1a1073f2b25af089d31bbcc41556c9b39e4d79a31e6b")),AR=Object.freeze(Object.defineProperty({__proto__:null,callLocalizedPostOrNull:Ao,getBeanLabsHubFn:wu,getLocalizedBlogPostFn:Er,getLocalizedResearchLogPostFn:Ar,getTagSegmentsFn:_u,getTranslatedLocalesFn:pn,localizeAuthorFn:Ir,localizePostMetasFn:ft,localizeResearchLogAuthorFn:Fr,localizeResearchLogPostMetasFn:io,localizeResearchLogTagFn:Cr,localizeTagFn:Lr,localizeTagsFn:Nr},Symbol.toStringTag,{value:"Module"})),LR="homeDesign.metaTitle",CR="homeDesign.metaDescription",NR=te(LR,CR,e=>({faqs:yR(e)})),Ru=async({params:e})=>{const[t,o]=await Promise.all([NR({params:e}),Ao(()=>_u({data:{instance:"blog"}}),"getTagSegmentsFn",{})]);return{...t,tagSegments:o??void 0}};function Pu({params:e,loaderData:t}){const o=R(e),n=w(o,"/"),a=t?.pageTitle??$,r=t?.pageDesc??tr,s=se({title:a}),i=t?.faqs,c=i?.length?q(...ri(n),me(i)):q(...ri(n));return{meta:[{title:a},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:o,image:s,twitterImage:s})],scripts:c,links:[{rel:"canonical",href:n},...$R]}}const IR=()=>b(()=>import("./index-CI_fM2ng.js"),__vite__mapDeps([14,4,15,16,17,18,19,6,20,21,22,23,24,25,26,27,1,7])),FR=v("/($locale)/")({loader:Ru,head:Pu,component:y(IR,"component")}),OR=[["tracking.faq.netWorth.question","tracking.faq.netWorth.answer"],["tracking.faq.bankData.question","tracking.faq.bankData.answer"],["tracking.faq.investments.question","tracking.faq.investments.answer"],["tracking.faq.categorize.question","tracking.faq.categorize.answer"],["tracking.faq.dataPortability.question","tracking.faq.dataPortability.answer"],["tracking.faq.free.question","tracking.faq.free.answer"]];function BR(e){return OR.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const MR="Track Spending, Net Worth & Investments in Plain Text",qR="See how beancount.io tracks every account, transaction, report, and investment in one plain-text ledger — net-worth charts, BQL queries, and Fava reports.",Su=te("tracking.meta.title","tracking.meta.description",e=>({faqs:BR(e)}));function xu({params:e,loaderData:t}){const o=w(R(e),"/tracking"),n=t?.pageTitle??MR,a=se({title:n}),r=t?.pageDesc??qR;return{meta:[{title:`${n} | ${$}`},{name:"description",content:r},...M({title:`${n} | ${$}`,description:r,canonicalUrl:o,locale:R(e),twitterTitle:n,image:a,twitterImage:a})],scripts:t?.faqs?.length?q(me(t.faqs)):[],links:[{rel:"canonical",href:o}]}}const DR=()=>b(()=>import("./tracking-CTKjVGcH.js"),__vite__mapDeps([28,29,4,19,30,31,32,33,34,21,35,1,7])),UR=v("/($locale)/tracking")({loader:Su,head:xu,component:y(DR,"component")}),co=re({method:"GET"}).handler(pe("18e46aeea52b6d681b817269afe9aa32bda3cd21b0ba2d0a9a6cd87802237449")),Lo=re({method:"GET"}).handler(pe("9aa84138d0a9f9ecf3c07dc888f2116fa58f198f209611cfb1b950c2707140cd"));re({method:"GET"}).handler(pe("cdd87c0ba0c6f6a85a97b35bfa6f19a59e30d750dafbd63b41704122854e3182"));const na=re({method:"GET"}).handler(pe("1783250d47c92324f97e7f25f994b6dd20cf682f07218c3899fd0590dad59473")),jR=re({method:"GET"}).handler(pe("388de4c43ec52f96ff1951c2a133eb8b0396d6bac80da7740dce1be7c23b8b98")),Tu=re({method:"GET"}).handler(pe("a7ec71828c2e59035e3981c34fa37e7ca02443b872355150f5509acf55b816aa")),VR=()=>b(()=>import("./terms-of-service-BRTdc7gM.js"),__vite__mapDeps([36,4,37,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),KR="terms-of-service",zR="Terms of Service",GR=v("/($locale)/terms-of-service")({loader:async({params:e})=>{try{return await Lo({data:{slug:KR,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/terms-of-service`,a=o?.title??zR,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:R(t)})],links:[{rel:"canonical",href:n}]}},component:y(VR,"component")}),zo="Smart Import — AI-Powered Bank Statement Import for Beancount",ir="Import bank statements, receipts, and spreadsheets into your Beancount ledger with AI-powered Smart Import — no manual data entry required.",Eu="smart import, import bank statement to beancount, beancount CSV import, beancount PDF import, beancount OFX import, AI transaction extraction, automatic transaction categorization, bank statement to beancount, plain text accounting import",HR=[{q:"What file formats can Smart Import read?",a:"CSV, PDF, OFX, and QFX files, plus image scans and photos (PNG or JPG), up to 10 MB per file. Drop an export from your bank, a downloaded statement, or a picture snapped on your phone."},{q:"Does Smart Import actually use AI?",a:"Yes. CSV files are parsed instantly in your browser. PDFs, OFX files, and images are read by an AI model that pulls out each transaction's date, payee, amount, and description. A second AI step then suggests a target account for every row, drawn from your own chart of accounts."},{q:"Will it change my ledger without asking?",a:"No. You preview every extracted transaction, edit any field inline, and remove rows you don't want — then explicitly click Import. Nothing is written until you approve it, and each import lands as a Git commit you can review or revert."},{q:"How is this different from the bean-import command line?",a:"Smart Import runs entirely in your browser — there is no config.py to write, no Python to install, and no per-bank importer to maintain. You drop a file and review the result."},{q:"How is Smart Import different from Bank Sync?",a:"Bank Sync connects to your bank through Plaid and pulls in transactions automatically on an ongoing basis. Smart Import is for files you already have — statements, exports, and scans — and needs no bank connection."},{q:"What if the AI picks the wrong account?",a:"Every suggested account is editable before import. Change it in one click, or assign accounts yourself. Because nothing is committed until you approve, a wrong guess never reaches your ledger."},{q:"Is my financial data safe?",a:"Your ledger lives in your own Git repository, and imported transactions are plain-text Beancount you can read, export, or roll back at any time. There is no proprietary format and no lock-in."}];function Au(){return JSON.stringify([{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Beancount Smart Import",description:"AI-powered import that turns bank statements, CSV exports, OFX files, and scanned documents into reviewable Beancount transactions.",applicationCategory:"FinanceApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free tier available"},provider:{"@type":"Organization",name:"Beancount.io"}},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:HR.map(e=>
4({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}])}const WR=()=>b(()=>import("./smart-import-B-Mrh3v7.js"),__vite__mapDeps([46,47,4,19,21,40,33,48,31,49,30,50,1,7])),YR=v("/($locale)/smart-import")({head:({params:e})=>({meta:[{title:`${zo} | ${$}`},{name:"description",content:ir},{name:"keywords",content:Eu},...M({title:`${zo} | ${$}`,description:ir,canonicalUrl:`${I}/smart-import`,locale:R(e),twitterTitle:zo}),...G(zo)],scripts:[{type:"application/ld+json",children:Au()}],links:[{rel:"canonical",href:`${I}/smart-import`}]}),component:y(WR,"component")}),QR=[["security.faq.safe.question","security.faq.safe.answer"],["security.faq.bankPassword.question","security.faq.bankPassword.answer"],["security.faq.exportDelete.question","security.faq.exportDelete.answer"],["security.faq.shutdown.question","security.faq.shutdown.answer"],["security.faq.sellData.question","security.faq.sellData.answer"],["security.faq.openSource.question","security.faq.openSource.answer"],["security.faq.report.question","security.faq.report.answer"]];function XR(e){return QR.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const JR="Is Beancount.io Safe? Security, Privacy & Data Ownership",ZR="See how Beancount.io protects access, keeps your ledger portable, explains its data providers, and handles responsible vulnerability reports.",Lu=te("security.meta.title","security.meta.description",e=>({faqs:XR(e)}));function Cu({params:e,loaderData:t}){const o=w(R(e),"/security"),n=t?.pageTitle??JR,a=se({title:n}),r=t?.pageDesc??ZR;return{meta:[{title:`${n} | ${$}`},{name:"description",content:r},...M({title:`${n} | ${$}`,description:r,canonicalUrl:o,locale:R(e),twitterTitle:n,image:a,twitterImage:a})],scripts:t?.faqs?.length?q(me(t.faqs)):[],links:[{rel:"canonical",href:o}]}}const eP=()=>b(()=>import("./security-p4JO0GSa.js"),__vite__mapDeps([51,52,4,19,53,54,55,31,33,56,57,32,58,59,30,60,61,1,7])),tP=v("/($locale)/security")({loader:Lu,head:Cu,component:y(eP,"component")}),Nu="reads-and-finds",Iu=async({params:e})=>{try{return await co({data:{slug:Nu,locale:R(e)}})}catch{throw V()}};function Fu({loaderData:e,params:t}){const o=e?.meta;if(!o?.title||!o.description)return{meta:[{title:$}]};const n=w(R(t),`/${Nu}`),a=o.image??se({title:o.title});return{meta:[{title:`${o.title} | ${$}`},{name:"description",content:o.description},...o.keywords?.length?[{name:"keywords",content:o.keywords.join(", ")}]:[],...M({locale:R(t),title:o.title,description:o.description,canonicalUrl:n,image:a,twitterImage:a})],links:[{rel:"canonical",href:n}]}}const oP=()=>b(()=>import("./reads-and-finds-C1tOk-GS.js"),__vite__mapDeps([62,4,63,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,65,7])),nP=v("/($locale)/reads-and-finds")({loader:Iu,head:Fu,component:y(oP,"component")}),aP=()=>b(()=>import("./privacy-policy-C1GiisFs.js"),__vite__mapDeps([66,4,37,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),rP="privacy-policy",sP="Privacy Policy",iP=v("/($locale)/privacy-policy")({loader:async({params:e})=>{try{return await Lo({data:{slug:rP,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/privacy-policy`,a=o?.title??sP,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:R(t)})],links:[{rel:"canonical",href:n}]}},component:y(aP,"component")}),cP="https://beancount.io/sign-up/?next=%2Fledger%2F",zB="https://beancount.io/ledger/open_ledger/example/overview",yo="https://beancount.io/sign-up/?next=%2Fpricing",GB="https://beancount.io/tg",HB="https://beancount.io/settings/general",WB="https://beancount.io/auth/sign-up",YB="https://beancount.io/ledger/open_ledger/example/import",QB="https://beancount.io/ledger/open_ledger/example/files/content",lP=14.99,uP=99.99,dP=99.99,pP=959.88,mP=499.99,hP=4799.88;function fP(){return[{name:"Free",price:0,priceCurrency:"USD",url:cP,billingDuration:"month"},{name:"Premium Monthly",price:lP,priceCurrency:"USD",url:yo,billingDuration:"month"},{name:"Premium Annual",price:uP,priceCurrency:"USD",url:yo,billingDuration:"year"},{name:"Growth Monthly",price:dP,priceCurrency:"USD",url:yo,billingDuration:"month"},{name:"Growth Annual",price:pP,priceCurrency:"USD",url:yo,billingDuration:"year"},{name:"Organization Monthly",price:mP,priceCurrency:"USD",url:yo,billingDuration:"month"},{name:"Organization Annual",price:hP,priceCurrency:"USD",url:yo,billingDuration:"year"}]}
4const Ou=[{qKey:"pricing.faq.q1",aKey:"pricing.faq.a1",question:"Is there a free plan?",answer:"Yes. The Free plan is open source and $0 forever — one ledger, one collaborator, and 1,000 ledger entries, with basic reporting and mobile app sync included."},{qKey:"pricing.faq.q2",aKey:"pricing.faq.a2",question:"What happens to my data if I cancel?",answer:"Your ledger is plain text. Export it anytime and keep working with the open-source Beancount tools — canceling never locks your books away."},{qKey:"pricing.faq.q3",aKey:"pricing.faq.a3",question:"Can I pay annually?",answer:"Yes. Every paid plan offers annual billing at a lower effective monthly price — for example, Premium works out to $8.33 per month billed annually."},{qKey:"pricing.faq.q4",aKey:"pricing.faq.a4",question:"What's the difference between Premium and Growth?",answer:"Premium is for personal finance: 5 ledgers, 5 collaborators, and 500K AI Assistant tokens. Growth adds smart automation — 20 ledgers, 10 collaborators, 2M AI Assistant tokens, and advanced automation & integrations."},{qKey:"pricing.faq.q5",aKey:"pricing.faq.a5",question:"How do I get SSO or invoice billing?",answer:"OIDC single sign-on and multi-entity consolidation come with the Organization plan. Payment by invoice and custom compliance terms are available on Enterprise — contact us."}],gP="Plans for every beancounter",bP="Whether you're starting accounting for yourself or choosing new tools for your team, we've got you covered.",Bu=te("pricing.meta.title","pricing.meta.description",e=>({faqs:Ou.map(t=>({question:A(t.qKey,e),answer:A(t.aKey,e)}))}));function Mu({params:e,loaderData:t}){const o=w(R(e),"/pricing"),n=t?.pageTitle??gP,a=`${n} | ${$}`,r=se({title:n}),s=t?.pageDesc??bP;return{meta:[{title:a},{name:"description",content:s},...M({title:a,description:s,canonicalUrl:o,locale:R(e),twitterTitle:n,image:r,twitterImage:r})],links:[{rel:"canonical",href:o}],scripts:q(gR({name:"Beancount.io",description:s,url:o,offers:fP()}),me(t?.faqs??Ou))}}const yP=()=>b(()=>import("./pricing-CHSkes0h.js"),__vite__mapDeps([67,68,4,20,19,7,6,21,69,1])),vP=v("/($locale)/pricing")({loader:Bu,head:Mu,component:y(yP,"component")}),Or="Open Ledger — Real Company Financials in Beancount",Br="Explore public Beancount ledgers for real companies, inspect every reported period, and read earnings analyses tied directly to auditable plain-text books.",Mr="Open Ledger";function qu({canonicalUrl:e,homeUrl:t,locale:o,title:n=Or,description:a=Br,breadcrumbLabel:r=Mr,companies:s,companyUrl:i}){const c=`${n} | ${$}`,l=s.map(d=>i?i(d):d.ledgerUrl);return{meta:[{title:c},{name:"description",content:a},...M({title:n,description:a,canonicalUrl:e,locale:o}),...G(n)],links:[{rel:"canonical",href:e}],scripts:q(yt({name:n,url:e,description:a,items:s.map((d,u)=>({title:d.displayName,url:l[u]}))}),Z([{name:$,url:t},{name:r,url:e}]))}}const kP="cv",$P="cco",_P="cg",wP="cs",RP="cd";function Vo(e){if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){const t=[];for(const o of e)typeof o=="string"?t.push(o):(typeof o=="number"||typeof o=="boolean")&&t.push(String(o));return t.length===0?void 0:t.length===1?t[0]:t}}function Du(e){const t={}
4,o=Vo(e[kP]),n=Vo(e[$P]),a=Vo(e[_P]),r=Vo(e[wP]),s=Vo(e[RP]);return o!==void 0&&(t.cv=o),n!==void 0&&(t.cco=n),a!==void 0&&(t.cg=a),r!==void 0&&(t.cs=r),s!==void 0&&(t.cd=s),t}const Uu=re({method:"GET"}).handler(pe("d17b687f74755ab2cc4b36ab4229fb5f1c943320d2d2f514f2de365805704f31")),XB=re({method:"GET"}).handler(pe("ce7f5178891710e45b6d631d9c6dab3a8cb90bb6d4f8d5ecd5846991b10dd1cf")),PP=()=>b(()=>import("./open-ledger-DONouxXZ.js"),__vite__mapDeps([70,4,71,19,39,6,44,72,73,64,74,1,7])),SP=v("/($locale)/open-ledger")({validateSearch:e=>Du(e),loader:()=>Uu(),head:({loaderData:e,params:t})=>qu({locale:R(t),canonicalUrl:`${I}/open-ledger`,homeUrl:I,title:Or,description:Br,breadcrumbLabel:Mr,companies:e?.companies??[]}),component:y(PP,"component")}),JB="https://beancount.io/api-gateway/mcp",xP="Beancount MCP — Talk to Your Ledger from Claude, Cursor, and Any AI Tool",TP="Connect your Beancount ledger to Claude Code, Claude Desktop, Cursor, Windsurf, or Zed over the Model Context Protocol. Ask questions, run BQL queries, and commit ledger edits — no copy-
4paste, no exports. Just ask.",EP=[["mcp.faq.q1","mcp.faq.a1"],["mcp.faq.q2","mcp.faq.a2"],["mcp.faq.q3","mcp.faq.a3"],["mcp.faq.q4","mcp.faq.a4"],["mcp.faq.q5","mcp.faq.a5"],["mcp.faq.q6","mcp.faq.a6"]];function AP(e){return EP.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const ju=te("mcp.meta.title","mcp.meta.description",e=>({faqs:AP(e)}));function LP(e){return dn({name:"Beancount MCP Server",description:e,applicationCategory:"FinanceApplication",operatingSystem:"Cross-platform",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Available to all Web Beancount users"},featureList:["runBqlQuery — run Beancount Query Language queries","listLedgerFiles / readLedgerFiles — browse and read the ledger repository","editLedgerFiles — atomic git-commit edits with dry-run preview","API-key tools — list, mint, and revoke scoped keys","Bank tools — stage and submit imports, manage linked connections"]})}function Vu({params:e,loaderData:t}){const o=R(e),n=w(o,"/mcp"),a=t?.pageTitle??xP,r=t?.pageDesc??TP,s=t?.faqs??[],i=`${a} | ${$}`;return{meta:[{title:i},{name:"description",content:r},...M({title:i,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a),{name:"keywords",content:"Beancount MCP, Model Context Protocol, Claude Beancount integration, BQL AI query, plain-text accounting AI, MCP server, OAuth 2.1 MCP, ledger AI assistant"}],scripts:q(...s.length?[me(s)]:[],LP(r)),links:[{rel:"canonical",href:n}]}}const CP=()=>b(()=>import("./mcp-BJdqoyPj.js"),__vite__mapDeps([75,76,4,21,45,16,19,77,78,30,57,79,33,80,31,81,55,82,83,1,7])),NP=v("/($locale)/mcp")({loader:ju,head:Vu,component:y(CP,"component")}),IP=["realtime","cost","manual","outage","compatibility","coverage"];function FP(e){return IP.map(t=>({question:A(`livePrices.faq.${t}.question`,e),answer:A(`livePrices.faq.${t}.answer`,e)}))}const Ku=te("livePrices.meta.title","livePrices.meta.description",e=>({faqs:FP(e)}));function zu({params:e,loaderData:t}){const o=t?.pageTitle??"Automatic Beancount Prices & Portfolio Valuation",n=`${o} | ${$}`,a=se({title:o}),r=t?.pageDesc??"Find automatic price feeds for crypto, stocks, funds and currencies. Choose your valuation currency and copy supported Beancount includes to your hosted ledger.",s=R(e),i=w(s,"/live-prices");return{meta:[{title:n},{name:"description",content:r},...M({title:n,description:r,canonicalUrl:i,locale:s,image:a,twitterImage:a})],links:[{rel:"canonical",href:i}],scripts:t?.faqs?.length?q(me(t.faqs)):[]}}const OP=()=>b(()=>import("./live-prices-Di1_TqUK.js"),__vite__mapDeps([84,85,4,16,18,19,44,33,21,45,86,87,88,1,7])),BP=v("/($locale)/live-prices")({loader:Ku,head:zu,component:y(OP,"component")}),aa="Bank Sync — Auto-Sync Transactions to Beancount with Plaid",ra="Sync your bank accounts to Beancount with Plaid integration. Securely import transactions from 12,000+ banks and let AI categorize them automatically.";function sa(e){const{title:t,desc:o,canonicalUrl:n,locale:a,faqs:r}=e;return{meta:[{title:`${t} | ${$}`},{name:"description",content:o},...M({title:`${t} | ${$}`,description:o,canonicalUrl:n,locale:a,twitterTitle:t})],scripts:r?.length?q(me(r)):[],links:[{rel:"canonical",href:n}]}}const MP=[["linkAccounts.whichBanksAreSupported","linkAccounts.plaidSupportsOver12000Financial"],["linkAccounts.isMyBankingDataSecure","linkAccounts.absolutelyYourBankCredentialsAreNever"],["linkAccounts.howAccurateIsTheAiCategorization","linkAccounts.aiCategorizationStartsAtAround80"],["linkAccounts.howOftenAreTransactionsSynced","linkAccounts.youCanManuallySyncAtAny"],["linkAccounts.canIImportHistoricalTransactions","linkAccounts.yesWhenYouFirstConnectA"],["linkAccounts.whatIfAiCategorizesSomethingWrong","linkAccounts.youAlwaysHaveFullEditorialControl"]];function ia(e){return MP.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const qP=()=>b(()=>import("./link-accounts-BEi9IU6o.js"),__vite__mapDeps([89,90,4,19,48,21,91,87,78,30,92,1,7])),DP=v("/($locale)/link-accounts")({loader:te("linkAccounts.meta.title","linkAccounts.meta.description",e=>({faqs:ia(e)})),head:({params:e,loaderData:t})=>sa({locale:R(e),title:t?.pageTitle??aa,desc:t?.pageDesc??ra,canonicalUrl:w(R(e),sn),faqs:t?.faqs}),component:y(qP,"component")}),UP=[["git.howDoesGitHostingWorkWith","git.weProvideAGitServerAt"],["git.canIUseMyOwnGit","git.absolutelySinceYourLedgerIsIn"],["git.whatHappensToMyDataIf","git.youKeepEverythingYourCompleteFinancial"],["git.isMyFinancialDataSecureIn","git.yesWeUseHttpsForAll"],["git.howDoICollaborateWithMy","git.youCanAddYourAccountantAs"]];function jP(e){return UP.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const VP="Git for Beancount | Version Control for Your Finances",Ma="Manage your accounting ledger with standard Git workflows. Clone, edit locally, and push changes. Complete data ownership with zero vendor lock-in.",Gu=te("git.meta.title","git.meta.description",e=>({faqs:jP(e)}));function Hu({params:e,loaderData:t}){const o=t?.pageTitle??VP,n=se({title:o});return{meta:[{title:`${o} | ${$}`},{name:"description",content:t?.pageDesc??Ma},...M({title:`${o} | ${$}`,description:t?.pageDesc??Ma,canonicalUrl:w(R(e),"/git"),locale:R(e),twitterTitle:o,image:n,twitterImage:n}),{name:"keywords",content:"git accounting, version control finances, beancount git, distributed ledger, financial data ownership, plain text accounting git"}],scripts:[...q(dn({name:"Beancount Git Integration",description:t?.pageDesc??Ma,url:w(R(e),"/git"),applicationCategory:"FinanceApplication",operatingSystem:"Cross-platform",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free tier available"},featureList:["Git-based version control","Data sovereignty","Tool flexibility"]})),...t?.faqs?.length?q(me(t.faqs)):[]],links:[{rel:"canonical",href:w(R(e),"/git")}]}}const KP=()=>b(()=>import("./git-D_OIjb9D.js"),__vite__mapDeps([93,94,4,16,17,19,30,21,57,95,78,59,41,23,96,80,97,1,7])),zP=v("/($locale)/git")({loader:Gu,head:Hu,component:y(KP,"component")}
4),GP=[["forProfessionals.faq.multipleClients.question","forProfessionals.faq.multipleClients.answer"],["forProfessionals.faq.clientData.question","forProfessionals.faq.clientData.answer"],["forProfessionals.faq.apiAutomation.question","forProfessionals.faq.apiAutomation.answer"],["forProfessionals.faq.clientLeaves.question","forProfessionals.faq.clientLeaves.answer"]];function HP(e){return GP.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const WP="Beancount for Accountants & Financial Professionals",YP="Manage every client's books in one auditable plain-text workspace — double-entry validation, instant reports, BQL queries, and zero lock-in.",Wu=te("forProfessionals.meta.title","forProfessionals.meta.description",e=>({faqs:HP(e)}));function Yu({params:e,loaderData:t}){const o=w(R(e),"/for-professionals"),n=t?.pageTitle??WP,a=se({title:n}),r=t?.pageDesc??YP;return{meta:[{title:`${n} | ${$}`},{name:"description",content:r},...M({title:`${n} | ${$}`,description:r,canonicalUrl:o,locale:R(e),twitterTitle:n,image:a,twitterImage:a})],scripts:t?.faqs?.length?q(me(t.faqs)):[],links:[{rel:"canonical",href:o}]}}const QP=()=>b(()=>import("./for-professionals-WKTWp3zs.js"),__vite__mapDeps([98,99,4,100,19,30,21,33,32,23,59,34,101,1,7])),XP=v("/($locale)/for-professionals")({loader:Wu,head:Yu,component:y(QP,"component")}),JP=[["forCouples.faq.combineFinances.question","forCouples.faq.combineFinances.answer"],["forCouples.faq.privateAccounts.question","forCouples.faq.privateAccounts.answer"],["forCouples.faq.splitSpending.question","forCouples.faq.splitSpending.answer"],["forCouples.faq.dataLockIn.question","forCouples.faq.dataLockIn.answer"]];function ZP(e){return JP.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const eS="Beancount for Couples - Shared Finances in One Plain-Text Ledger",tS="Track joint and separate accounts together, review spending as a household, and grow your net worth as a couple — all in one private, plain-text ledger.",Qu=te("forCouples.meta.title","forCouples.meta.description",e=>({faqs:ZP(e)}));function Xu({params:e,loaderData:t}){const o=w(R(e),"/for-couples"),n=t?.pageTitle??eS,a=se({title:n}),r=t?.pageDesc??tS;return{meta:[{title:`${n} | ${$}`},{name:"description",content:r},...M({title:`${n} | ${$}`,description:r,canonicalUrl:o,locale:R(e),twitterTitle:n,image:a,twitterImage:a})],scripts:t?.faqs?.length?q(me(t.faqs)):[],links:[{rel:"canonical",href:o}]}}const oS=()=>b(()=>import("./for-couples-DYFq0noC.js"),__vite__mapDeps([102,103,4,100,19,30,21,33,32,23,59,34,101,1,7])),nS=v("/($locale)/for-couples")({loader:Qu,head:Xu,component:y(oS,"component")}),aS=[["forAiAgents.faq.account.question","forAiAgents.faq.account.answer"],["forAiAgents.faq.configuresAgent.question","forAiAgents.faq.configuresAgent.answer"],["forAiAgents.faq.ledgerStaysLocal.question","forAiAgents.faq.ledgerStaysLocal.answer"],["forAiAgents.faq.safetyNet.question","forAiAgents.faq.safetyNet.answer"],["forAiAgents.faq.askExtra.question","forAiAgents.faq.askExtra.answer"]];function rS(e){return aS.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const sS="Give your AI agent a ledger",iS="Install the bea CLI in two commands, then hand your existing AI agent its first bookkeeping task: a local USD ledger with a verified 987.50 USD balance. No account needed for local books.",Ju=te("forAiAgents.meta.title","forAiAgents.meta.description",e=>({faqs:rS(e)}));function Zu({params:e,loaderData:t}){const o=w(R(e),"/for-ai-agents"),n=t?.pageTitle??sS,a=se({title:n}),r=t?.pageDesc??iS;return{meta:[{title:`${n} | ${$}`},{name:"description",content:r},...M({title:`${n} | ${$}`,description:r,canonicalUrl:o,locale:R(e),twitterTitle:n,image:a,twitterImage:a})],scripts:t?.faqs?.length?q(me(t.faqs)):[],links:[{rel:"canonical",href:o}]}}const cS=()=>b(()=>import("./for-ai-agents-DhkTT2pJ.js"),__vite__mapDeps([104,105,4,44,6,79,78,95,87,30,41,21,45,64,106,1,7])),lS=v("/($locale)/for-ai-agents")({loader:Ju,head:Zu,component:y(cS,"component")}),uS="Hosted Fava - The Ultimate Beancount Web Interface",ci="Transform your plain-text accounting with our hosted Fava service. Beautiful visualizations, interactive reports, and seamless Beancount integration with zero setup - start managing your finances instantly.",ed=te("fava.meta.title","fava.meta.description");function td({params:e,loaderData:t}){const o=t?.pageTitle??uS,n=se({title:o});return{meta:[{title:`${o} | ${$}`},{name:"description",content:t?.pageDesc??ci},...M({title:`${o} | ${$}`,description:t?.pageDesc??ci,canonicalUrl:w(R(e),"/fava"),locale:R(e),twitterTitle:o,image:n,twitterImage:n}),{name:"keywords",content:"hosted fava, fava hosting, managed fava, beancount hosting, beancount web interface, plain text accounting, financial visualization, accounting dashboard"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Hosted Fava",description:"Hosted Fava service for beautiful Beancount plain-text accounting with zero setup",applicationCategory:"FinanceApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free tier available"},provider:{"@type":"Organization",name:"Beancount.io"}})}],links:[{rel:"canonical",href:w(R(e),"/fava")}]}}const dS=()=>b(()=>import("./fava-D4VjjIo7.js"),__vite__mapDeps([107,108,4,19,30,81,21,58,33,109,1,7])),pS=v("/($locale)/fava")({loader:ed,head:td,component:y(dS,"component")}),mS=()=>b(()=>import("./faq-C_y4uzwk.js"),__vite__mapDeps([110,4,111,38,1,39,6,40,41,30,42,43,44,21,45,16,112,19,64,113,7]
4)),hS="faq",fS="FAQ",gS="Frequently asked questions about Beancount.io",bS=v("/($locale)/faq")({loader:async({params:e})=>{try{return await co({data:{slug:hS,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/faq`,a=o?.faqs,r=o?.title??fS,s=o?.description??gS;return{meta:[{title:`${r} | ${$}`},{name:"description",content:s},...M({title:r,description:s,canonicalUrl:n,locale:R(t)})],links:[{rel:"canonical",href:n}],scripts:a?.length?q(me(a),Z([{name:$,url:I},{name:r,url:n}])):[]}},component:y(mS,"component")}),yS="Use Beancount on Web, iOS, Android & Git",vS="Access Beancount in your browser, on iOS or Android, or through the plain-text and Git tools you already use.",od=te("download.meta.title","download.meta.description");function nd({params:e,loaderData:t}){const o=w(R(e),"/download"),n=t?.pageTitle??yS,a=t?.pageDesc??vS,r=se({title:n});return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:R(e),twitterTitle:n,image:r,twitterImage:r}),{name:"keywords",content:"beancount, web app, ios app, android app, git accounting, plain text accounting, expense tracker, personal finance"}],links:[{rel:"canonical",href:o}],scripts:q(dn({name:"Beancount",description:a,url:o,applicationCategory:"FinanceApplication",operatingSystem:"Web, iOS, Android, macOS, Windows, Linux",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}}))}}const kS=()=>b(()=>import("./download-C0tr5pWT.js"),__vite__mapDeps([114,115,4,19,30,56,79,116,1,7])),$S=v("/($locale)/download")({loader:od,head:nd,component:y(kS,"component")}),_S=()=>b(()=>import("./demo-Cpb7IPg-.js"),__vite__mapDeps([117,4,118,38,1,39,6,40,41,30,42,43,44,21,45,16,18,19,64,113,7])),wS="demo",RS="Demo",PS="See Beancount.io in action",SS=v("/($locale)/demo")({loader:async({params:e})=>{try{return await Lo({data:{slug:wS,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/demo`,a=o?.title??RS,r=o?.description??PS;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:R(t)})],links:[{rel:"canonical",href:n}]}},component:y(_S,"component")}),xS=()=>b(()=>import("./contact-qq8uKiFy.js"),__vite__mapDeps([119,4,120,38,1,39,6,40,41,30,42,43,44,21,45,16,112,64,113,7])),TS="contact",ES="Contact",AS=v("/($locale)/contact")({loader:async({params:e})=>{try{return await co({data:{slug:TS,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/contact`,a=o?.title??ES,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:R(t)})],links:[{rel:"canonical",href:n}]}},component:y(xS,"component")}),Ye={permalink:"changelog",instanceId:"blog",basePath:"/changelog",labelKeys:["changelog.hero.title","link.item.label.Changelog"],descriptionKeys:["changelog.hero.subtitle"],englishLabel:"Changelog",englishDescription:"Product updates, new features, bug fixes, and release notes for Beancount.io."},LS=[Ye,{permalink:"bookkeeping",instanceId:"blog",basePath:"/blog/tags/bookkeeping",labelKeys:[],descriptionKeys:[],englishLabel:"Bookkeeping",englishDescription:"Modern bookkeeping techniques using plain-text and automated workflows"},{permalink:"cash-flow",instanceId:"blog",basePath:"/blog/tags/cash-flow",labelKeys:[],descriptionKeys:[],englishLabel:"Cash Flow",englishDescription:"Track and optimize cash flow for better financial health and stability"},{permalink:"plain-text-accounting",instanceId:"blog",basePath:"/blog/tags/plain-text-accounting",labelKeys:[],descriptionKeys:[],englishLabel:"Plain-Text Accounting",englishDescription:"Discover the power of version-controlled, human-readable financial records"}];function ad(e,t){return`${e} ${t}`}function CS(e,t){const o=`${e}/tags/${t}`;return LS.find(n=>n.basePath===o)}const ca={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogAuthor"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}
4,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogAuthor"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"sameAs"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}}]}}]}}]},rd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogAuthors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogAuthors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}}]}}]},sd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogPost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"month"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"day"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}},{kind:"Argument",name:{kind:"Name",value:"month"},value:{kind:"Variable",name:{kind:"Name",value:"month"}}},{kind:"Argument",name:{kind:"Name",value:"day"},value:{kind:"Variable",name:{kind:"Name",value:"day"}}},{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"heroImage"}},{kind:"Field",name:{kind:"Name",value:"heroImageWidth"}},{kind:"Field",name:{kind:"Name",value:"heroImageHeight"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"sources"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"sameAs"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"tagLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}}]}},{kind:"Field",name:{kind:"Name",value:"hasMath"}},{kind:"Field",name:{kind:"Name",value:"headings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"depth"}}]}},{kind:"Field",name:{kind:"Name",value:"matchedToolPath"}},{kind:"Field",name:{kind:"Name",value:"relatedPosts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}}]}},{kind:"Field",name:{kind:"Name",value:"openLedgerSeries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"company"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"ledgerUrl"}},{kind:"Field",name:{kind:"Name",value:"sector"}}]}},{kind:"Field",name:{kind:"Name",value:"hubPath"}},{kind:"Field",name:{kind:"Name",value:"previous"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"date"}}]}},{kind:"Field",name:{kind:"Name",value:"next"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"date"}}]}},{kind:"Field",name:{kind:"Name",value:"peers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"ledgerUrl"}},{kind:"Field",name:{kind:"Name",value:"latestPost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"date"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"figures"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"period"}},{kind:"Field",name:{kind:"Name",value:"revenue"}},{kind:"Field",name:{kind:"Name",value:"netIncome"}},{kind:"Field",name:{kind:"Name",value:"unit"}},{kind:"Field",name:{kind:"Name",value:"periodEnd"}},{kind:"Field",name:{kind:"Name",value:"revenueBasis"}},{kind:"Field",name:{kind:"Name",value:"provenance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"derivation"}},{kind:"Field",name:{kind:"Name",value:"filing"}}]}}]}}]}}]}}]}}]},la={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogPosts"}
4,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogPosts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}}]}}]},mn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permalink"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}
4,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"permalink"},value:{kind:"Variable",name:{kind:"Name",value:"permalink"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tag"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}},{kind:"Field",name:{kind:"Name",value:"readingSequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}}]}},{kind:"Field",name:{kind:"Name",value:"whyKey"}},{kind:"Field",name:{kind:"Name",value:"englishWhy"}}]}}]}}]}}]},id={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BlogTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}}]}}]},ua={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogAuthor"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}
4,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogAuthor"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"sameAs"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}}]}}]}}]},cd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogAuthors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogAuthors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}}]}}]},ld={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogPost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"month"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"day"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}},{kind:"Argument",name:{kind:"Name",value:"month"},value:{kind:"Variable",name:{kind:"Name",value:"month"}}},{kind:"Argument",name:{kind:"Name",value:"day"},value:{kind:"Variable",name:{kind:"Name",value:"day"}}},{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"heroImage"}},{kind:"Field",name:{kind:"Name",value:"heroImageWidth"}},{kind:"Field",name:{kind:"Name",value:"heroImageHeight"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"sources"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"image_url"}},{kind:"Field",name:{kind:"Name",value:"sameAs"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"tagLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}}]}},{kind:"Field",name:{kind:"Name",value:"hasMath"}},{kind:"Field",name:{kind:"Name",value:"headings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"depth"}}]}},{kind:"Field",name:{kind:"Name",value:"matchedToolPath"}},{kind:"Field",name:{kind:"Name",value:"relatedPosts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}}]}}]}}]}}]},da={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogPosts"}
4,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogPosts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}}]}}]},pa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permalink"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}
4,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"permalink"},value:{kind:"Variable",name:{kind:"Name",value:"permalink"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tag"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"day"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"lastModified"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"keywords"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"authors"}},{kind:"Field",name:{kind:"Name",value:"excerpt"}},{kind:"Field",name:{kind:"Name",value:"pinned"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"authorLinks"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}},{kind:"Field",name:{kind:"Name",value:"page"}},{kind:"Field",name:{kind:"Name",value:"pageSize"}}]}}]}}]}}]},ud={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ResearchLogTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"researchLogTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"permalink"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"count"}}]}}]}}]},NS=100,dd="Every Beancount.io release, newest first — new features, integrations, and fixes.";function IS(e){return{slug:e.slug,year:e.year,month:e.month,day:e.day,date:e.date,title:e.title,description:e.description}}async function pd({context:e,params:t}){const o=R(t),[n,a]=await Promise.all([e.client.query({query:mn,variables:{permalink:Ye.permalink,page:1,pageSize:NS},fetchPolicy:"network-only"}),X(o,["changelog"])]),{data:r,error:s}=n;if(!r)throw s??new Error("BlogTag query returned no data");if(!r.blogTag)throw V();const i=[...r.blogTag.posts.posts];return{posts:(o===ae?i:await ft({data:{locale:o,posts:i}})).map(IS),pageTitle:Me(a,["changelog.meta.title",...Ye.labelKeys],Ye.englishLabel),pageDesc:Me(a,["changelog.meta.description"],dd),pageLabel:Me(a,Ye.labelKeys,Ye.englishLabel)}}function md({params:e,loaderData:t}){const o=R(e),n=w(o,Ye.basePath),a=t?.pageTitle??Ye.englishLabel,r=t?.pageDesc??dd,s=t?.pageLabel??Ye.englishLabel,i=t?.posts??[];return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...G(a),...M({title:a,description:r,canonicalUrl:n,locale:o})],scripts:i.length?q(yt({name:a,url:n,description:r,items:un(i,w(o,"/blog"))}),Z([{name:$,url:w(o,"/")},{name:s,url:n}])):[],links:[{rel:"canonical",href:n},...Zn(o,Ye.basePath,ad($,s))]}}const FS=()=>b(()=>import("./changelog-ABtW_mr0.js"),__vite__mapDeps([121,4,122,123,124,18,19,125,64,1,7])),OS=v("/($locale)/changelog")({loader:pd,head:md,component:y(FS,"component")}),BS="Brand Assets & Guidelines",MS="Download official Beancount.io brand assets, logos, and learn about our brand guidelines for content creation and partnerships.",hd=te("brand.brandAssetsGuidelines","brand.meta.description");function fd({params:e,loaderData:t}){const o=w(R(e),"/brand-assets"),n=t?.pageTitle??BS,a=t?.pageDesc??MS,r=se({title:n});return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:R(e),twitterTitle:n,image:r,twitterImage:r})],links:[{rel:"canonical",href:o}]}}const qS=()=>b(()=>import("./brand-assets-Dwl30lSB.js"),__vite__mapDeps([126,127,4,19,44,21,45,41,64,1,7])),DS=v("/($locale)/brand-assets")({loader:hd,head:fd,component:y(qS,"component")}),US=[["common.isMyFinancialDataSecure","ios.yesBeancountForIosPrioritizesYour"],["common.howDoISyncWithMy","ios.beancountForIosSeamlesslySyncsWith"],["common.howCanIContributeToThe","common.asAnOpenSourceProjectWe"]];function jS(e){return US.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const VS="Beancount for iOS - Plain-Text Accounting on Your Mobile Device",qa="Manage your finances on the go with Beancount for iOS. Track expenses, review transactions, and maintain your financial records from your mobile device.",gd=te("ios.meta.title","ios.meta.description",e=>({faqs:jS(e)}));function bd({params:e,loaderData:t}){const o=t?.pageTitle??VS,n=se({title:o});return{meta:[{title:`${o} | ${$}`},{name:"description",content:t?.pageDesc??qa},...M({title:`${o} | ${$}`,description:t?.pageDesc??qa,canonicalUrl:w(R(e),"/beancount-ios"),locale:R(e),twitterTitle:o,image:n,twitterImage:n}),{name:"keywords",content:"beancount, ios, accounting, finance, mobile app, plain text accounting, financial tracking, expense tracker"}],links:[{rel:"canonical",href:w(R(e),"/beancount-ios")}],scripts:[...q(dn({name:"Beancount for iOS",description:t?.pageDesc??qa,url:w(R(e),"/beancount-ios"),applicationCategory:"FinanceApplication",operatingSystem:"iOS",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}})),...t?.faqs?.length?q(me(t.faqs)):[]]}}const KS=()=>b(()=>import("./beancount-ios-uAF92yEu.js"),__vite__mapDeps([128,129,4,130,56,30,82,96,58,59,34,131,1,7])),zS=v("/($locale)/beancount-ios")({loader:gd,head:bd,component:y(KS,"component")}),GS="Beancount Cloud — Hosted Plain-Text Accounting",Da="Beancount is plain-text, double-entry accounting you can version with Git, automate with scripts, and audit line-by-line—with AI to handle the data entry.",yd=te("cloud.meta.title","cloud.meta.description");function vd({params:e,loaderData:t}){const o=t?.pageTitle??GS,n=se({title:o});return{meta:[{title:`${o} | ${$}`},{name:"description",content:t?.pageDesc??Da},...M({title:`${o} | ${$}`,description:t?.pageDesc??Da,canonicalUrl:w(R(e),"/beancount-cloud"),locale:R(e),twitterTitle:o,image:n,twitterImage:n}),{name:"keywords",content:"beancount cloud, cloud accounting, plain text accounting, hosted beancount, enterprise accounting, AI accounting, team accounting, beancount hosting"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Beancount Cloud",description:t?.pageDesc??Da,url:w(R(e),"/beancount-cloud"),applicationCategory:"FinanceApplication",operatingSystem:"Web Browser, iOS, Android",provider:{"@type":"Organization",name:"Beancount.io",url:"https://beancount.io"}})}],links:[{rel:"canonical",href:w(R(e),"/beancount-cloud")}]}}const HS=()=>b(()=>import("./beancount-cloud-CMrtjxmZ.js"),__vite__mapDeps([132,133,4,19,58,30,82,34,56,33,134,1,7])),WS=v("/($locale)/beancount-cloud")({loader:yd,head:vd,component:y(HS,"component")}),YS=[["common.isMyFinancialDataSecure","android.yesBeancountForAndroidPrioritizesYour"],["common.howDoISyncWithMy","android.beancountForAndroidSeamlesslySyncsWith"],["common.howCanIContributeToThe","common.asAnOpenSourceProjectWe"]];function QS(e){return YS.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const XS="Beancount for Android - Plain-Text Accounting on Your Mobile Device",Ua="Manage your finances on the go with Beancount for Android. Track expenses, review transactions, and maintain your financial records from your mobile device.",kd=te("android.meta.title","android.meta.description",e=>({faqs:QS(e)}));function $d({params:e,loaderData:t}){const o=t?.pageTitle??XS,n=se({title:o});return{meta:[{title:`${o} | ${$}`},{name:"description",content:t?.pageDesc??Ua},...M({title:`${o} | ${$}`,description:t?.pageDesc??Ua,canonicalUrl:w(R(e),"/beancount-android"),locale:R(e),twitterTitle:o,image:n,twitterImage:n}),{name:"google-play-app",content:"app-id=io.beancount.android"},{name:"keywords",content:"beancount, android, accounting, finance, mobile app, plain text accounting, financial tracking, expense tracker"}],links:[{rel:"canonical",href:w(R(e),"/beancount-android")}],scripts:[...q(dn({name:"Beancount for Android",description:t?.pageDesc??Ua,url:"https://play.google.com/store/apps/details?id=io.beancount.android",applicationCategory:"FinanceApplication",operatingSystem:"Android",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}})),...t?.faqs?.length?q(me(t.faqs)):[]]}}const JS=()=>b(()=>import("./beancount-android-er-O5sB7.js"),__vite__mapDeps([135,136,4,130,56,30,82,96,58,59,34,131,1,7])),ZS=v("/($locale)/beancount-android")({loader:kd,head:$d,component:y(JS,"component")}),ex=()=>b(()=>
4import("./bank-sync-BUjlFxSD.js"),__vite__mapDeps([137,90,4,19,48,21,91,87,78,30,92,1,7])),tx=v("/($locale)/bank-sync")({loader:te("linkAccounts.meta.title","linkAccounts.meta.description",e=>({faqs:ia(e)})),head:({params:e,loaderData:t})=>sa({locale:R(e),title:t?.pageTitle??aa,desc:t?.pageDesc??ra,canonicalUrl:w(R(e),sn),faqs:t?.faqs}),component:y(ex,"component")}),ox="Awesome Plain Text Accounting - Tools, Resources & Community",nx="Discover the world of plain text accounting. Comprehensive collection of tools, resources, and community links for Ledger, hledger, Beancount, and more.",li=`${I}/img/awesome-plain-text-accounting/hero.jpg`,_d=te("awesome.meta.title","awesome.meta.description");function wd({params:e,loaderData:t}){const o=w(R(e),"/awesome-plain-text-accounting"),n=t?.pageTitle??ox,a=t?.pageDesc??nx;return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:R(e),twitterTitle:n,image:li,twitterImage:li})],links:[{rel:"canonical",href:o}]}}const ax=()=>b(()=>import("./awesome-plain-text-accounting-C36GiEc8.js"),__vite__mapDeps([138,139,4,19,79,56,30,23,64,65,1,7])),rx=v("/($locale)/awesome-plain-text-accounting")({loader:_d,head:wd,component:y(ax,"component")}),sx=()=>b(()=>import("./awesome-beancount-DCQQo7Pd.js"),__vite__mapDeps([140,4,63,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,65,7])),ix="awesome-beancount",cx=v("/($locale)/awesome-beancount")({loader:async({params:e})=>{try{return await co({data:{slug:ix,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/awesome-beancount`,a=o?.title??"Awesome Beancount",r=o?.description??"Curated Beancount resources and tools";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({locale:R(t),title:a,description:r,canonicalUrl:n})],links:[{rel:"canonical",href:n}]}},component:y(sx,"component")}),lx="Beancount AI Assistant — Ask Questions About Your Own Finances",ux="Beancount AI Assistant answers plain-English questions about your finances using your real numbers. Scan receipts, import bank statements, and draft transactions you approve — on plain-text books you own.",dx="AI accounting assistant, ask questions about your finances, chat with your ledger, AI bookkeeping assistant, scan receipts into accounting, import bank statements to beancount, plain-text accounting AI, ask about your spending, multilingual accounting assistant, Beancount AI assistant",px=[["ai.faq.q1","ai.faq.a1"],["ai.faq.q2","ai.faq.a2"],["ai.faq.q3","ai.faq.a3"],["ai.faq.q4","ai.faq.a4"],["ai.faq.q5","ai.faq.a5"],["ai.faq.q6","ai.faq.a6"],["ai.faq.q7","ai.faq.a7"]];function mx(e){return px.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const ma=te("ai.meta.title","ai.meta.description",e=>({faqs:mx(e)}));function hx(e){return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Beancount AI Assistant",description:e,applicationCategory:"FinanceApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free tier available"},provider:{"@type":"Organization",name:"Beancount.io"}}}function ha({params:e,loaderData:t}){const o=R(e),n=w(o,du),a=t?.pageTitle??lx,r=t?.pageDesc??ux,s=t?.faqs??[];return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a),{name:"keywords",content:dx}],scripts:q(...s.length?[me(s)]:[],hx(r)),links:[{rel:"canonical",href:n}]}}const fx=()=>b(()=>import("./assistant-CR06lF7Y.js"),__vite__mapDeps([141,142,4,17,16,19,30,26,31,21,33,143,144,145,1,7])),gx=v("/($locale)/assistant")({loader:ma,head:ha,component:y(fx,"component")}),no={beancount:{path:"/docs/api-reference",specUrl:"https://beancount.io/api-gateway/v1/openapi.json",labelKey:"apiReference.beancount",titleKey:"apiReference.meta.title",descriptionKey:"apiReference.meta.description",title:"REST API reference",description:"Explore the Beancount.io REST API, inspect request and response schemas, and try authenticated ledger operations from an interactive OpenAPI reference."},prices:{path:"/docs/prices-api-reference",specUrl:"https://beancount.io/prices/openapi.json",labelKey:"apiReference.prices",titleKey:"apiReference.prices.title",descriptionKey:"apiReference.prices.description",title:"Beancount Prices API reference",description:"Explore the Beancount Prices API with interactive endpoint documentation, request and response schemas, and code samples from its OpenAPI specification."}},bx=v("/($locale)/api-reference")({beforeLoad:({location:e})=>{throw tn({href:`${no.beancount.path}${e.searchStr}${e.hash}`,replace:!0,statusCode:301})}}),yx=()=>b(()=>import("./ai-CR06lF7Y.js"),__vite__mapDeps([146,142,4,17,16,19,30,26,31,21,33,143,144,145,1,7])),vx=v("/($locale)/ai")({loader:ma,head:ha,component:y(yx,"component")}),kx="Affiliate Program - Partner with Beancount.io",$x="Introduce your audience to Beancount.io. Explore recurring commissions, payout terms, and how to apply to the affiliate program.",Rd=te("affiliate.meta.title","affiliate.meta.description");function Pd({params:e,loaderData:t}){const o=w(R(e),"/affiliate"),n=t?.pageTitle??kx,a=t?.pageDesc??$x,r=se({title:n});return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:R(e),twitterTitle:n,image:r,twitterImage:r})],links:[{rel:"canonical",href:o}]}}const _x=()=>b(()=>import("./affiliate-DtasA6Ez.js"),__vite__mapDeps([147,148,4,19,41,24,64,1,7])),wx=v("/($locale)/affiliate")({loader:Rd,head:Pd,component:y(_x,"component")}),Rx="About Us",Px="Learn about Beancount.io's mission to make financial data as open, transparent, and programmable as code.",Sd=te("about.meta.title","about.meta.description");function xd({params:e,loaderData:t}){const o=w(R(e),"/about-us"),n=t?.pageTitle??Rx,a=t?.pageDesc??Px,r=se({title:n});return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:R(e),twitterTitle:n,image:r,twitterImage:r})],links:[{rel:"canonical",href:o}]}}const Sx=()=>b(()=>import("./about-us-Dyf0mNCO.js"),__vite__mapDeps([149,150,4,64,1,7])),xx=v("/($locale)/about-us")({loader:Sd,head:xd,component:y(Sx,"component")}),Tx=()=>b(()=>import("./route-C5H-IVzf.js"),__vite__mapDeps([151,4,1,7])),Ex=v("/($locale)/docs")({component:y(Tx,"component")}),Ax=()=>b(()=>import("./route-B93aZ4fE.js"),__vite__mapDeps([152,4,1,7])),Lx=v("/($locale)/blog")({head:()=>({links:Zn(ae,"blog")}),component:y(Ax,"component")}),Cx=()=>b(()=>import("./index-CsTAq7do.js"),__vite__mapDeps([153,4,15,16,17,18,19,6,20,21,22,23,24,25,26,27,1,7])),Nx=v("/$locale/")({loader:Ru,head:Pu,component:y(Cx,"component")}),Ix=()=>b(()=>import("./tracking-T6FVX8Hu.js"),__vite__mapDeps([154,29,4,19,30,31,32,33,34,21,35,1,7])),Fx=v("/$locale/tracking")({loader:Su,head:xu,component:y(Ix,"component")}),Ox=()=>b(()=>import("./terms-of-service-CtCduCCd.js"),__vite__mapDeps([155,4,37,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),Bx="terms-of-service",Mx="Terms of Service",qx=v("/$locale/terms-of-service")({loader:async({params:e})=>{try{return await Lo({data:{slug:Bx,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/terms-of-service"),a=o?.title??Mx,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:t.locale})],links:[{rel:"canonical",href:n}]}},component:y(Ox,"component")}),Dx=()=>b(()=>import("./smart-import-DUvvIRkb.js"),__vite__mapDeps([156,47,4,19,21,40,33,48,31,49,30,50,1,7])),Ux=v("/$locale/smart-import")({loader:te("smartImport.meta.title","smartImport.meta.description"),head:({params:e,loaderData:t})=>{const o=w(e.locale,"/smart-import"),n=t?.pageTitle??zo,a=t?.pageDesc??ir;return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},{name:"keywords",content:Eu},...M({title:`${n} | ${$}`,description:a,canonicalUrl:o,locale:e.locale,twitterTitle:n}),...G(n)],scripts:[{type:"application/ld+json",children:Au()}],links:[{rel:"canonical",href:o}]}},component:y(Dx,"component")}),jx=()=>b(()=>import("./security-g0p3RIaS.js"),__vite__mapDeps([157,52,4,19,53,54,55,31,33,56,5
47,32,58,59,30,60,61,1,7])),Vx=v("/$locale/security")({loader:Lu,head:Cu,component:y(jx,"component")}),Kx=()=>b(()=>import("./reads-and-finds-D3ustQjc.js"),__vite__mapDeps([158,4,63,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,65,7])),zx=v("/$locale/reads-and-finds")({loader:Iu,head:Fu,component:y(Kx,"component")}),Gx=()=>b(()=>import("./privacy-policy-uu-M61VI.js"),__vite__mapDeps([159,4,37,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),Hx="privacy-policy",Wx="Privacy Policy",Yx=v("/$locale/privacy-policy")({loader:async({params:e})=>{try{return await Lo({data:{slug:Hx,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/privacy-policy"),a=o?.title??Wx,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:t.locale})],links:[{rel:"canonical",href:n}]}},component:y(Gx,"component")}),Qx=()=>b(()=>import("./pricing-ka7jJmsm.js"),__vite__mapDeps([160,68,4,20,19,7,6,21,69,1])),Xx=v("/$locale/pricing")({loader:Bu,head:Mu,component:y(Qx,"component")}),Jx="https://beancount.io/ledger";function ZB(e,t,o=""){const n=o?`/${o.replace(/^\/+/,"")}`:"";return`${Jx}/${e}/${t}${n}`}function Zx(e,t){if(t===ae)return e;try{const o=new URL(e);return o.searchParams.set("lang",t),o.toString()}catch{return e}}const eT=()=>b(()=>import("./open-ledger-DUeeLeWO.js"),__vite__mapDeps([161,4,71,19,39,6,44,72,73,64,74,1,7])),tT=v("/$locale/open-ledger")({validateSearch:e=>Du(e),loader:async({params:e})=>{const[t,o]=await Promise.all([Uu(),X(e.locale,["open-ledger"])]);return{showcase:t,title:A("openLedger.meta.title",o),description:A("openLedger.meta.description",o),breadcrumbLabel:A("openLedger.breadcrumb",o)}},head:({params:e,loaderData:t})=>qu({locale:e.locale,canonicalUrl:w(e.locale,"/open-ledger"),homeUrl:w(e.locale,"/"),title:t?.title??Or,description:t?.description??Br,breadcrumbLabel:t?.breadcrumbLabel??Mr,companies:t?.showcase.companies??[],companyUrl:o=>Zx(o.ledgerUrl,e.locale)}),component:y(eT,"component")}),oT=()=>b(()=>import("./mcp-DHwe5cmU.js"),__vite__mapDeps([162,76,4,21,45,16,19,77,78,30,57,79,33,80,31,81,55,82,83,1,7])),nT=v("/$locale/mcp")({loader:ju,head:Vu,component:y(oT,"component")}),aT=()=>b(()=>import("./live-prices-D0O8OC9H.js"),__vite__mapDeps([163,85,4,16,18,19,44,33,21,45,86,87,88,1,7])),rT=v("/$locale/live-prices")({loader:Ku,head:zu,component:y(aT,"component")}),sT=()=>b(()=>import("./link-accounts-BD4gthyR.js"),__vite__mapDeps([164,90,4,19,48,21,91,87,78,30,92,1,7])),iT=v("/$locale/link-accounts")({loader:te("linkAccounts.meta.title","linkAccounts.meta.description",e=>({faqs:ia(e)})),head:({params:e,loaderData:t})=>sa({locale:e.locale,title:t?.pageTitle??aa,desc:t?.pageDesc??ra,canonicalUrl:w(e.locale,sn),faqs:t?.faqs}),component:y(sT,"component")}),cT=()=>b(()=>import("./git-oYbOEPHo.js"),__vite__mapDeps([165,94,4,16,17,19,30,21,57,95,78,59,41,23,96,80,97,1,7])),lT=v("/$locale/git")({loader:Gu,head:Hu,component:y(cT,"component")}),uT=()=>b(()=>import("./for-professionals-fDZDvOd-.js"),__vite__mapDeps([166,99,4,100,19,30,21,33,32,23,59,34,101,1,7])),dT=v("/$locale/for-professionals")({loader:Wu,head:Yu,component:y(uT,"component")}),pT=()=>b(()=>import("./for-couples-Dzm-9CDX.js"),__vite__mapDeps([167,103,4,100,19,30,21,33,32,23,59,34,101,1,7])),mT=v("/$locale/for-couples")({loader:Qu,head:Xu,component:y(pT,"component")}),hT=()=>b(()=>import("./for-ai-agents-CNinF1f9.js"),__vite__mapDeps([168,105,4,44,6,79,78,95,87,30,41,21,45,64,106,1,7])),fT=v("/$locale/for-ai-agents")({loader:Ju,head:Zu,component:y(hT,"component")}),gT=()=>b(()=>import("./fava-Bfg2NJnm.js"),__vite__mapDeps([169,108,4,19,30,81,21,58,33,109,1,7])),bT=v("/$locale/fava")({loader:ed,head:td,component:y(gT,"component")}),yT=()=>b(()=>import("./faq-D5fAJdLI.js"),__vite__mapDeps([170,4,111,38,1,39,6,40,41,30,42,43,44,21,45,16,112,19,64,113,7])),vT="faq",kT="FAQ",$T="Frequently asked questions about Beancount.io",_T=v("/$locale/faq")({loader:async({params:e})=>{try{return await co({data:{slug:vT,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/faq"),a=w(t.locale,"/"),r=o?.faqs,s=o?.title??kT,i=o?.description??$T;return{meta:[{title:`${s} | ${$}`},{name:"description",content:i},...M({title:s,description:i,canonicalUrl:n,locale:t.locale})],links:[{rel:"canonical",href:n}],scripts:r?.length?q(me(r),Z([{name:$,url:a},{name:s,url:n}])):[]}},component:y(yT,"component")}),wT=()=>b(()=>import("./download-Dv_SiQ3H.js"),__vite__mapDeps([171,115,4,19,30,56,79,116,1,7])),RT=v("/$locale/download")({loader:
4od,head:nd,component:y(wT,"component")}),PT=()=>b(()=>import("./demo-b8xANHUh.js"),__vite__mapDeps([172,4,118,38,1,39,6,40,41,30,42,43,44,21,45,16,18,19,64,113,7])),ST="demo",xT="Demo",TT="See Beancount.io in action",ET=v("/$locale/demo")({loader:async({params:e})=>{try{return await Lo({data:{slug:ST,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/demo"),a=o?.title??xT,r=o?.description??TT;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:t.locale})],links:[{rel:"canonical",href:n}]}},component:y(PT,"component")}),AT=()=>b(()=>import("./contact-bhTlPLTN.js"),__vite__mapDeps([173,4,120,38,1,39,6,40,41,30,42,43,44,21,45,16,112,64,113,7])),LT="contact",CT="Contact",NT=v("/$locale/contact")({loader:async({params:e})=>{try{return await co({data:{slug:LT,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/contact"),a=o?.title??CT,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:a,description:r,canonicalUrl:n,locale:t.locale})],links:[{rel:"canonical",href:n}]}},component:y(AT,"component")}),IT=()=>b(()=>import("./changelog-Bydvakiw.js"),__vite__mapDeps([174,4,122,123,124,18,19,125,64,1,7])),FT=v("/$locale/changelog")({loader:pd,head:md,component:y(IT,"component")}),OT=()=>b(()=>import("./brand-assets-gekbmmWV.js"),__vite__mapDeps([175,127,4,19,44,21,45,41,64,1,7])),BT=v("/$locale/brand-assets")({loader:hd,head:fd,component:y(OT,"component")}),MT=()=>b(()=>import("./beancount-ios-Bh2kkKWS.js"),__vite__mapDeps([176,129,4,130,56,30,82,96,58,59,34,131,1,7])),qT=v("/$locale/beancount-ios")({loader:gd,head:bd,component:y(MT,"component")}),DT=()=>b(()=>import("./beancount-cloud-BarimGO3.js"),__vite__mapDeps([177,133,4,19,58,30,82,34,56,33,134,1,7])),UT=v("/$locale/beancount-cloud")({loader:yd,head:vd,component:y(DT,"component")}),jT=()=>b(()=>import("./beancount-android-rudjdVbk.js"),__vite__mapDeps([178,136,4,130,56,30,82,96,58,59,34,131,1,7])),VT=v("/$locale/beancount-android")({loader:kd,head:$d,component:y(jT,"component")}),KT=()=>b(()=>import("./bank-sync-DNLWaxWG.js"),__vite__mapDeps([179,90,4,19,48,21,91,87,78,30,92,1,7])),zT=v("/$locale/bank-sync")({loader:te("linkAccounts.meta.title","linkAccounts.meta.description",e=>({faqs:ia(e)})),head:({params:e,loaderData:t})=>sa({locale:e.locale,title:t?.pageTitle??aa,desc:t?.pageDesc??ra,canonicalUrl:w(e.locale,sn),faqs:t?.faqs}),component:y(KT,"component")}),GT=()=>b(()=>import("./awesome-plain-text-accounting-CZSttV4O.js"),__vite__mapDeps([180,139,4,19,79,56,30,23,64,65,1,7])),HT=v("/$locale/awesome-plain-text-accounting")({loader:_d,head:wd,component:y(GT,"component")}),WT=()=>b(()=>import("./awesome-beancount-BBXnKDcR.js"),__vite__mapDeps([181,4,63,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,65,7])),YT="awesome-beancount",QT=v("/$locale/awesome-beancount")({loader:async({params:e})=>{try{return await co({data:{slug:YT,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,"/awesome-beancount"),a=o?.title??"Awesome Beancount",r=o?.description??"Curated Beancount resources and tools";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({locale:t.locale,title:a,description:r,canonicalUrl:n})],links:[{rel:"canonical",href:n}]}},component:y(WT,"component")}),XT=()=>b(()=>import("./assistant-BMCzzbij.js"),__vite__mapDeps([182,142,4,17,16,19,30,26,31,21,33,143,144,145,1,7])),JT=v("/$locale/assistant")({loader:ma,head:ha,component:y(XT,"component")}),ZT=v("/$locale/api-reference")({beforeLoad:({location:e,params:t})=>{throw tn({href:`/${t.locale}${no.beancount.path}${e.searchStr}${e.hash}`,replace:!0,statusCode:301})}}),e0=()=>b(()=>import("./ai-BMCzzbij.js"),__vite__mapDeps([183,142,4,17,16,19,30,26,31,21,33,143,144,145,1,7])),t0=v("/$locale/ai")({loader:ma,head:ha,component:y(e0,"component")}),o0=()=>b(()=>import("./affiliate-DsAT5ivK.js"),__vite__mapDeps([184,148,4,19,41,24,64,1,7])),n0=v("/$locale/affiliate")({loader:Rd,head:Pd,component:y(o0,"component")}),a0=()=>b(()=>import("./about-us-CTtZGWy0.js"),__vite__mapDeps([185,150,4,64,1,7])),r0=v("/$locale/about-us")({loader:Sd,head:xd,component:y(a0,"component")}),s0=()=>b(()=>import("./route-EEcp2Rcs.js"),__vite__mapDeps([186,4,1,7])),i0=v("/$locale/docs")({component:y(s0,"component")}),c0=()=>b(()=>import("./route-ttT-tnqq.js"),__vite__mapDeps([187,4,1,7])),l0=v("/$locale/blog")({head:({params:e})=>({links:Zn(e.locale??ae,"blog")}),component:y(c0,"component")}),u0=[{id:"getting-started",titleKey:"founder.resources.category.getting-started",resources:[{id:"startup-formation-checklist",title:"Startup Formation Checklist",titleKey:"founder.resources.startup-formation-checklist.title",descriptionKey:"founder.resources.startup-formation-checklist.description",path:"/founder-resources/startup-formation-checklist",resourceType:"template"},{id:"business-structure-guide",title:"Business Structure Guide",titleKey:"founder.resources.business-structure-guide.title",descriptionKey:"founder.resources.business-structure-guide.description",path:"/founder-resources/business-structure-guide",resourceType:"guide"},{id:"founder-equity-calculator",title:"Founder Equity Calculator",titleKey:"founder.resources.founder-equity-calculator.title",descriptionKey:"founder.resources.founder-equity-calculator.description",path:"/founder-resources/founder-equity-calculator",resourceType:"calculator",featured:!0},{id:"essential-business-licenses",title:"Essential Business Licenses",titleKey:"founder.resources.essential-business-licenses.title",descriptionKey:"founder.resources.essential-business-licenses.description",path:"/founder-resources/essential-business-licenses",resourceType:"guide"},{id:"startup-cheat-sheet",title:"Startup Cheat Sheet",titleKey:"founder.resources.startup-cheat-sheet.title",descriptionKey:"founder.resources.startup-cheat-sheet.description",path:"/founder-resources/startup-cheat-sheet",resourceType:"template"}]},{id:"finances",titleKey:"founder.resources.category.finances",resources:[{id:"beancount-setup",title:"Beancount Setup for Startups",titleKey:"founder.resources.beancount-setup.title",descriptionKey:"founder.resources.beancount-setup.description",path:"/founder-resources/beancount-setup-for-startups",resourceType:"guide"},{id:"chart-of-accounts",title:"Startup Chart of Accounts",titleKey:"founder.resources.chart-of-accounts.title",descriptionKey:"founder.resources.chart-of-accounts.description",path:"/founder-resources/startup-chart-of-accounts",resourceType:"guide"},{id:"cash-flow-forecasting",title:"Cash Flow Forecasting",titleKey:"founder.resources.cash-flow-forecasting.title",descriptionKey:"founder.resources.cash-flow-forecasting.description",path:"/founder-resources/cash-flow-forecasting",resourceType:"guide"},{id:"tax-planning",title:"Tax Planning (S-Corp Election)",titleKey:"founder.resources.tax-planning.title",descriptionKey:"founder.resources.tax-planning.description",path:"/blog/2025/08/08/s-corp-election",resourceType:"article"}]},{id:"fundraising",titleKey:"founder.resources.category.fundraising",resources:[{id:"pitch-deck",title:"Pitch Deck Template",titleKey:"founder.resources.pitch-deck.title",descriptionKey:"founder.resources.pitch-deck.description",path:"/founder-resources/pitch-deck-template",resourceType:"template"},{id:"financial-model",title:"Financial Model Templates",titleKey:"founder.resources.financial-model.title",descriptionKey:"founder.resources.financial-model.de
4scription",path:"/founder-resources/financial-model-templates",resourceType:"template"},{id:"term-sheet",title:"Term Sheet Negotiation Guide",titleKey:"founder.resources.term-sheet.title",descriptionKey:"founder.resources.term-sheet.description",path:"/founder-resources/term-sheet-negotiation",resourceType:"guide"},{id:"investor-database",title:"Investor Database",titleKey:"founder.resources.investor-database.title",descriptionKey:"founder.resources.investor-database.description",path:"/founder-resources/investor-database",resourceType:"guide"}]},{id:"team",titleKey:"founder.resources.category.team",resources:[{id:"employee-equity",title:"Employee Equity Plans",titleKey:"founder.resources.employee-equity.title",descriptionKey:"founder.resources.employee-equity.description",path:"/founder-resources/employee-equity-plans",resourceType:"guide"},{id:"remote-team",title:"Remote Team Playbook",titleKey:"founder.resources.remote-team.title",descriptionKey:"founder.resources.remote-team.description",path:"/founder-resources/remote-team-playbook",resourceType:"guide"},{id:"hiring-toolkit",title:"Hiring Toolkit",titleKey:"founder.resources.hiring-toolkit.title",descriptionKey:"founder.resources.hiring-toolkit.description",path:"/founder-resources/hiring-toolkit",resourceType:"template"},{id:"salary-benchmarking",title:"Salary Benchmarking",titleKey:"founder.resources.salary-benchmarking.title",descriptionKey:"founder.resources.salary-benchmarking.description",path:"/founder-resources/salary-benchmarking",resourceType:"guide"},{id:"can-afford-hire",title:"Can I Afford to Hire an Employee?",titleKey:"founder.resources.can-afford-hire.title",descriptionKey:"founder.resources.can-afford-hire.description",path:"/founder-resources/can-i-afford-to-hire-an-employee-calculator",resourceType:"calculator",featured:!0}]},{id:"legal",titleKey:"founder.resources.category.legal",resources:[{id:"legal-compliance",title:"Legal Compliance Calendar",titleKey:"founder.resources.legal-compliance.title",descriptionKey:"founder.resources.legal-compliance.description",path:"/founder-resources/legal-compliance-calendar",resourceType:"template"},{id:"contract-templates",title:"Contract Templates",titleKey:"founder.resources.contract-templates.title",descriptionKey:"founder.resources.contract-templates.description",path:"/founder-resources/contract-templates",resourceType:"template"},{id:"ip-protection",title:"IP Protection Guide",titleKey:"founder.resources.ip-protection.title",descriptionKey:"founder.resources.ip-protection.description",path:"/founder-resources/ip-production-guide",resourceType:"guide"},{id:"privacy-policy",title:"Privacy Policy Generator",titleKey:"founder.resources.privacy-policy.title",descriptionKey:"founder.resources.privacy-policy.description",path:"/founder-resources/privacy-policy-generator",resourceType:"generator",featured:!0}]},{id:"growth",titleKey:"founder.resources.category.growth",resources:[{id:"growth-metrics",title:"Growth Metrics Dashboard",titleKey:"founder.resources.growth-metrics.title",descriptionKey:"founder.resources.growth-metrics.description",path:"/founder-resources/growth-metrics-dashboard",resourceType:"template"},{id:"content-marketing",title:"Content Marketing Playbook",titleKey:"founder.resources.content-marketing.title",descriptionKey:"founder.resources.content-marketing.description",path:"/founder-resources/content-marketing-playbook",resourceType:"guide"},{id:"product-led-growth",title:"Product-Led Growth Guide",titleKey:"founder.resources.product-led-growth.title",descriptionKey:"founder.resources.product-led-growth.description",path:"/founder-resources/product-led-growth",resourceType:"guide"},{id:"email-automation",title:"Email Automation Guide",titleKey:"founder.resources.email-automation.title",descriptionKey:"founder.resources.email-automation.description",path:"/founder-resources/email-automation",resourceType:"guide"}]}],qr=u0.flatMap(e=>e.resources.map(t=>({...t,categoryId:e.id,featured:"featured"in t?t.featured:!1}))),eM=qr.filter(e=>e.featured);function Td(e){const t=qr.find(o=>o.id===e);
4if(!t)throw new Error(`Unknown founder resource id: ${e}`);return t}function tM(e){return Td(e).path}function d0(e){return e.replace(/-([a-z])/g,(t,o)=>o.toUpperCase())}function ui(e){return`tools.hub.task.${d0(e)}.title`}const p0=["founder-equity-calculator","can-afford-hire","financial-model","privacy-policy"];function m0(e){return`tools.hub.founderResource.${e}`}function h0(e){return`tools.hub.resourceType.${e}`}const oM={path:_l("csv-to-beancount"),hash:dk,labelKey:"tools.navigation.presets"},f0=uk.map(e=>e==="founder-planning"?{id:e,headingKey:ui(e),entries:p0.map(t=>{const o=Td(t);return{kind:"founder-resource",id:t,path:o.path,resource:o,labelKey:m0(t),typeKey:h0(o.resourceType)}})}:{id:e,headingKey:ui(e),entries:$l.filter(t=>t.task===e).map(t=>({kind:"tool",path:_l(t.slug),tool:t}))}).filter(e=>e.entries.length>0),Ed=f0.flatMap(e=>e.id==="founder-planning"?[]:e.entries),g0="Plain-text accounting tools",b0="Free browser tools for plain-text accounting — no upload, no account, no waiting.";async function Ad({params:e}){const t=await X(R(e),["tools"]);return{pageTitle:A("tools.hub.title",t),pageDesc:A("tools.hub.description",t),toolNames:Ed.map(({tool:o})=>A(o.nameKey,t))}}function Ld({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools"),a=t?.pageTitle??g0,r=t?.pageDesc??b0;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:R(e),twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(yt({name:a,url:n,description:r,items:Ed.map(({tool:s,path:i},c)=>({title:t?.toolNames?.[c]??s.slug,url:w(o,i)}))}),Z([{name:$,url:w(o,"/")},{name:a,url:n}]))}}const y0=()=>b(()=>import("./index-DfkDa8xI.js"),__vite__mapDeps([188,189,4,190,22,191,143,144,23,56,86,91,49,6,64,192,1,7])),v0=v("/($locale)/tools/")({loader:Ad,head:Ld,component:y(y0,"component")}),k0="Founder Resources Hub",$0="Essential startup resources: incorporation, accounting, fundraising, hiring, legal, and growth tools. Find what you need quickly.",Cd=te("founder.meta.title","founder.meta.description");function Nd({params:e,loaderData:t}){const o=R(e),n=w(o,"/founder-resources"),a=w(o,"/"),r=t?.pageTitle??k0,s=t?.pageDesc??$0,i=se({title:r});return{meta:[{title:`${r} | ${$}`},{name:"description",content:s},...M({title:`${r} | ${$}`,description:s,canonicalUrl:n,locale:o,twitterTitle:r,image:i,twitterImage:i})],links:[{rel:"canonical",href:n}],scripts:q(yt({name:r,url:n,description:s,items:qr.map(c=>({title:c.title,url:w(o,c.path)}))}),Z([{name:$,url:a},{name:r,url:n}]))}}const _0=()=>b(()=>
4import("./index-CL9oGFHb.js"),__vite__mapDeps([193,194,4,19,24,33,64,195,1,7])),w0=v("/($locale)/founder-resources/")({loader:Cd,head:Nd,component:y(_0,"component")});function Id({title:e,description:t,canonicalUrl:o,locale:n,type:a,scripts:r}){return{meta:[{title:`${e} | ${$}`},{name:"description",content:t},...M({title:e,description:t,canonicalUrl:o,locale:n,type:a}),...G(e)],links:[{rel:"canonical",href:o}],scripts:r}}function Dr(e){const{meta:t,canonicalUrl:o,homeUrl:n,compareUrl:a,compareLabel:r,locale:s}=e,i=[Z([{name:$,url:n},{name:r,url:a},{name:t.title,url:o}]),...t.faqs?.length?[me(t.faqs)]:[]];return Id({title:t.title,description:t.description,canonicalUrl:o,locale:s,type:"article",scripts:q(...i)})}function Fd(e){const{title:t,description:o,canonicalUrl:n,homeUrl:a,compareLabel:r,pages:s,locale:i}=e;return Id({title:t,description:o,canonicalUrl:n,locale:i,type:"website",scripts:q(yt({name:t,url:n,description:o,items:s.map(c=>({title:c.title,url:`${n}/${c.slug}`}))}),Z([{name:$,url:a},{name:r,url:n}]))})}const R0=()=>b(()=>import("./index-C2tBBMvr.js"),__vite__mapDeps([196,4,197,64,198,1,7])),P0=v("/($locale)/compare/")({loader:()=>Tu({data:{locale:"en"}}),head:({loaderData:e,params:t})=>Fd({locale:R(t),title:fl,description:gl,canonicalUrl:`${I}/compare`,homeUrl:I,compareLabel:an,pages:e??[]}),component:y(R0,"component")}),S0="Bean Labs — Finance AI Agent Research",x0="Open experiments and findings from Bean Labs — the Finance AI Agent research initiative by Beancount.io.",di="bean-labs.meta.title",pi="bean-labs.researchLogs.description",mi="bean-labs.name";async function Od({params:e}){const t=R(e),o=Te(di,pi,mi),[n,a]=await Promise.all([X(t,o),wu({data:{locale:t}})]);return{pageTitle:A(di,n),pageDesc:A(pi,n),breadcrumbLabel:A(mi,n),hub:a}}function Bd({params:e,loaderData:t}){const o=R(e),n=t?.pageTitle??S0,a=t?.pageDesc??x0,r=t?.breadcrumbLabel??"Bean Labs",s=w(o,"/bean-labs"),i=se({title:n}),c=w(o,"/"),l=w(o,"/bean-labs/research-logs"),d=t?.hub?.posts??[];return{meta:[{title:`${n} | ${$}`},{name:"description",content:a},...M({title:`${n} | ${$}`,description:a,canonicalUrl:s,locale:o,twitterTitle:n,image:i,twitterImage:i})],links:[{rel:"canonical",href:s}],scripts:q(yt({name:n,url:s,description:a,items:un(d,l)}),Z([{name:$,url:c},{name:r,url:s}]))}}const T0=()=>b(()=>import("./index-DwEXvZJz.js"),__vite__mapDeps([199,4,200,59,24,125,64,74,1,7])),E0=v("/($locale)/bean-labs/")({loader:Od,head:Bd,component:y(T0,"component")}),A0="Year-over-year growth calculator",L0="Compare monthly monetary values with the same month last year. See signed changes, missing months and zero or negative baseline explanations, in your browser.",C0=Te("toolsYearOverYearGrowthCalculator.meta.description","tools.hub.breadcrumb","toolName.yearOverYearGrowthCalculator");async function Md({params:e}){const t=await X(R(e),C0);return{pageTitle:A("toolName.yearOverYearGrowthCalculator",t),pageDesc:A("toolsYearOverYearGrowthCalculator.meta.description",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function qd({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/year-over-year-growth-calculator"),a=t?.pageTitle??A0,r=t?.pageDesc??L0;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const N0=()=>b(()=>import("./year-over-year-growth-calculator-DgaawdYb.js"),__vite__mapDeps([201,202,4,44,203,204,6,205,72,73,206,207,16,18,19,208,209,1,64,192,41,195,7])),I0=v("/($locale)/tools/year-over-year-growth-calculator")({loader:Md,head:qd,component:y(N0,"component")}),F0="Trial balance worksheet",O0="Enter each account's ending debit or credit balance and check that the columns agree, with exact totals and the difference. Runs in your browser.",B0=Te("toolsTrialBalance.hero.title","tools.hub.breadcrumb","toolName.trialBalance");async function Dd({params:e}){const t=await X(R(e),B0);return{pageTitle:A("toolName.trialBalance",t),pageDesc:A("tools.hub.summary.trialBalance",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function Ud({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/trial-balance"),a=t?.pageTitle??F0,r=t?.pageDesc??O0;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const M0=()=>b(()=>import("./trial-balance-BUVt64Ab.js"),__vite__mapDeps([210,211,4,204,203,205,72,73,44,6,207,16,18,19,208,209,1,64,192,206,212,96,213,41,214,43,195,7])),q0=v("/($locale)/tools/trial-balance")({loader:Dd,head:Ud,component:y(M0,"component")});function Co(e){const{pageUrl:t,locale:o,sharePreview:n}=e,a=n?.title??e.title,r=n?.description??e.description,s=e.cardImage?.(a);return{cardTitle:a,meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:t,ogUrl:n?`${t}${n.search}`:t,locale:o,twitterTitle:a,image:s,twitterImage:s})]}}const D0=async()=>null;function No({search:e}){return e}function Io(e,t){return async({params:o,deps:n})=>{const[a,r]=await Promise.all([t({params:o}),D0(e,n??{},R(o))]);return r?{...a,sharePreview:r}:a}}const U0="Straight-line depreciation calculator",j0="Turn cost, residual value and useful life into a reconciled month-by-month book schedule, with a worked example.",V0=Te("toolsStraightLineDepreciationCalculator.hero.title","tools.hub.breadcrumb","toolName.straightLineDepreciationCalculator"),jd=No,Vd=Io("straight-line-depreciation-calculator",async({params:e})=>{const t=await X(R(e),V0);return{pageTitle:A("toolName.straightLineDepreciationCalculator",t),pageDesc:A("tools.hub.summary.straightLineDepreciationCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}});function Kd({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/straight-line-depreciation-calculator"),a=t?.pageTitle??U0,r=t?.pageDesc??j0,s=Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview});return{meta:[...s.meta,...G(s.cardTitle)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const K0="v",z0="t",G0="eb cx tx od pr in tg cs or cr pd co rv ul fm ea ca op mc mp cu sa be oh re ts me".split(" "),H0=/^r(0|[1-9]\d{0,5})$/;function qe(e){const t={};for(const o in e)(o===K0||o===z0||G0.includes(o)||H0.test(o))&&(t[o]=e[o]);return t}const W0=()=>b(()=>import("./straight-line-depreciation-calculator-CiL_K36H.js"),__vite__mapDeps([215,4,216,18,19,217,44,6,77,218,204,72,73,209,1,41,64,192,195,7])),Y0=v("/($locale)/tools/straight-line-depreciation-calculator")({validateSearch:qe,loaderDeps:jd,loader:Vd,head:Kd,component:y(W0,"component")}),Q0="Receivables turnover calculator",X0="Turn net credit sales and average receivables into turnover and a collection-
4period estimate, with a worked example and a downloadable summary.",J0=Te("toolsReceivablesTurnoverCalculator.hero.title","tools.hub.breadcrumb","toolName.receivablesTurnoverCalculator"),zd=No,Gd=Io("receivables-turnover-calculator",async({params:e})=>{const t=await X(R(e),J0);return{pageTitle:A("toolName.receivablesTurnoverCalculator",t),pageDesc:A("tools.hub.summary.receivablesTurnoverCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}});function Hd({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/receivables-turnover-calculator"),a=t?.pageTitle??Q0,r=t?.pageDesc??X0,s=Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview});return{meta:[...s.meta,...G(s.cardTitle)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const Z0=()=>b(()=>import("./receivables-turnover-calculator-Dhbw9NJN.js"),__vite__mapDeps([219,4,220,18,19,217,44,6,77,218,204,209,1,41,64,192,195,7])),eE=v("/($locale)/tools/receivables-turnover-calculator")({validateSearch:qe,loaderDeps:zd,loader:Gd,head:Hd,component:y(Z0,"component")}),Wd=[["toolsOfxToBeancount.faq.privacy.q","toolsOfxToBeancount.faq.privacy.a"],["toolsOfxToBeancount.faq.formats.q","toolsOfxToBeancount.faq.formats.a"],["toolsOfxToBeancount.faq.counter.q","toolsOfxToBeancount.faq.counter.a"],["toolsOfxToBeancount.faq.duplicates.q","toolsOfxToBeancount.faq.duplicates.a"],["toolsOfxToBeancount.faq.splits.q","toolsOfxToBeancount.faq.splits.a"],["toolsOfxToBeancount.faq.statements.q","toolsOfxToBeancount.faq.statements.a"]];function tE(e){return Wd.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const nM=`!Type:Bank
5D01/16/2026
6T1850.00
7PACME PAYROLL
8MJanuary pay
9L--Split--
10SSalary
11EGross pay
12$2400.00
13STaxes:Federal
14EWithholding
15$-450.00
16S[Savings]
17EAutomatic transfer
18$-100.00
19^
20D01/18/2026
21T-100.00
22PCOSTCO
23MWeekly shop
24L--Split--
25SGroceries
26EProduce and bread
27$-60.00
28SHousehold
29ECleaning supplies
30$-40.00
31^
32D01/20/2026
33T-25.00
34PCITY PARKING
35^
36`,aM=[["Salary","Income:Salary"],["Taxes:Federal","Expenses:Taxes:Federal"],["[Savings]","Assets:Savings"],["Groceries","Expenses:Groceries"],["Household","Expenses:Household"]],rM=`2026-01-16 * "ACME PAYROLL" "January pay"
37  Assets:Bank:Checking    1850.00 USD
38  Income:Salary           -2400.00 USD
39    memo: "Gross pay"
40  Expenses:Taxes:Federal  450.00 USD
41    memo: "Withholding"
42  Assets:Savings          100.00 USD
43    memo: "Automatic transfer"
44
452026-01-18 * "COSTCO" "Weekly shop"
46  Assets:Bank:Checking    -100.00 USD
47  Expenses:Groceries      60.00 USD
48    memo: "Produce and bread"
49  Expenses:Household      40.00 USD
50    memo: "Cleaning supplies"
51
522026-01-20 * "CITY PARKING"
53  Assets:Bank:Checking    -25.00 USD
54  Expenses:Uncategorized  25.00 USD
55`;function Yd(e){return`OFXHEADER:100
56DATA:OFXSGML
57VERSION:102
58
59<OFX>
60<SIGNONMSGSRSV1><SONRS>
61<FI><ORG>Example Bank<FID>1001</FI>
62</SONRS></SIGNONMSGSRSV1>
63<BANKMSGSRSV1><STMTTRNRS><STMTRS>
64<CURDEF>USD
65<BANKACCTFROM>
66<BANKID>021000021
67<ACCTID>123456789
68<ACCTTYPE>CHECKING
69</BANKACCTFROM>
70<BANKTRANLIST>
71${e}</BANKTRANLIST>
72</STMTRS></STMTTRNRS></BANKMSGSRSV1>
73</OFX>
74`}const sM=Yd(`<STMTTRN>
75<TRNTYPE>DEBIT
76<DTPOSTED>20260128
77<TRNAMT>-64.20
78<FITID>20260128-1
79<NAME>CORNER GROCER
80</STMTTRN>
81<STMTTRN>
82<TRNTYPE>DEBIT
83<DTPOSTED>20260130
84<TRNAMT>-18.00
85<FITID>20260130-1
86<NAME>CITY PARKING
87</STMTTRN>
88`),iM=Yd(`<STMTTRN>
89<TRNTYPE>DEBIT
90<DTPOSTED>20260128
91<TRNAMT>-64.20
92<FITID>20260128-1
93<NAME>CORNER GROCER
94</STMTTRN>
95<STMTTRN>
96<TRNTYPE>DEBIT
97<DTPOSTED>20260130
98<TRNAMT>-21.00
99<FITID>20260130-1
100<NAME>CITY PARKING
101</STMTTRN>
102<STMTTRN>
103<TRNTYPE>DEBIT
104<DTPOSTED>20260203
105<TRNAMT>-42.35
106<FITID>20260203-1
107<NAME>ACME HARDWARE
108</STMTTRN>
109`),cM=`2026-01-30 * "CITY PARKING"
110  id: "20260130-1"
111  Assets:Bank:Checking    -21.00 USD
112  Expenses:Uncategorized  21.00 USD
113
1142026-02-03 * "ACME HARDWARE"
115  id: "20260203-1"
116  Assets:Bank:Checking    -42.35 USD
117  Expenses:Uncategorized  42.35 USD
118`,oE="OFX & QIF to Beancount converter",nE="Convert an OFX, QFX or QIF bank export to Beancount in your browser. Nothing is uploaded, and anything unreadable is reported with its line.",aE=Te(Wd[0][0],"tools.hub.breadcrumb");async function Qd({params:e}){const t=await X(R(e),aE);return{pageTitle:A("toolName.ofxToBeancount",t),pageDesc:A("tools.hub.summary.ofxToBeancount",t),faqs:tE(t),toolsLabel:A("tools.hub.breadcrumb",t)}}function Xd({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/ofx-to-beancount"),a=t?.pageTitle??oE,r=t?.pageDesc??nE,s=t?.faqs??[];return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:R(e),twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]),...s.length>0?[me(s)]:[])}}const rE=()=>b(()=>import("./ofx-to-beancount-C65fDyP3.js"),__vite__mapDeps([221,222,4,223,18,19,44,208,6,218,144,21,45,41,203,207,16,209,1,64,192,7])),sE=v("/($locale)/tools/ofx-to-beancount")({loader:Qd,head:Xd,component:y(rE,"component")}),iE="Menu engineering calculator",cE="Classify one menu category into stars, plowhorses, puzzles and dogs from price, food cost and units s
118old — with a worked example and CSV export.",lE=Te("toolsMenuEngineeringCalculator.hero.title","tools.hub.breadcrumb","toolName.menuEngineeringCalculator"),Jd=No,Zd=Io("menu-engineering-calculator",async({params:e})=>{const t=await X(R(e),lE);return{pageTitle:A("toolName.menuEngineeringCalculator",t),pageDesc:A("tools.hub.summary.menuEngineeringCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}});function ep({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/menu-engineering-calculator"),a=t?.pageTitle??iE,r=t?.pageDesc??cE,s=Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview});return{meta:[...s.meta,...G(s.cardTitle)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const uE=()=>b(()=>import("./menu-engineering-calculator-DC4djnb1.js"),__vite__mapDeps([224,4,225,18,19,217,44,6,77,218,204,72,73,41,209,1,212,64,192,195,7])),dE=v("/($locale)/tools/menu-engineering-calculator")({validateSearch:qe,loaderDeps:Jd,loader:Zd,head:ep,component:y(uE,"component")}),pE="Margin and markup calculator",mE="Turn a unit cost and selling price into gross profit, gross margin and markup, or find the price that hits a target margin or markup.",hE=Te("toolsMarginMarkupCalculator.hero.title","tools.hub.breadcrumb","toolName.marginMarkupCalculator");async function tp({params:e}){const t=await X(R(e),hE);return{pageTitle:A("toolName.marginMarkupCalculator",t),pageDesc:A("tools.hub.summary.marginMarkupCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function op({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/margin-markup-calculator"),a=t?.pageTitle??pE,r=t?.pageDesc??mE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const fE=()=>b(()=>import("./margin-markup-calculator-DeQ8nDos.js"),__vite__mapDeps([226,227,4,44,6,204,207,16,18,19,208,209,1,64,192,206,214,43,41,191,195,7])),gE=v("/($locale)/tools/margin-markup-calculator")({loader:tp,head:op,component:y(fE,"component")}),np=[["toolsLedgerToBeancount.faq.privacy.q","toolsLedgerToBeancount.faq.privacy.a"],["toolsLedgerToBeancount.faq.differences.q","toolsLedgerToBeancount.faq.differences.a"],["toolsLedgerToBeancount.faq.unsupported.q","toolsLedgerToBeancount.faq.unsupported.a"],["toolsLedgerToBeancount.faq.verify.q","toolsLedgerToBeancount.faq.verify.a"]];function bE(e){return np.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const yE="Ledger to Beancount converter",vE="Convert a Ledger or hledger journal to Beancount in your browser, with an explicit report of anything that did not map.",kE=Te(np[0][0],"tools.hub.breadcrumb");async function ap({params:e}){const t=await X(R(e),kE);return{pageTitle:A("toolName.ledgerToBeancount",t),pageDesc:A("tools.hub.summary.ledgerToBeancount",t),faqs:bE(t),toolsLabel:A("tools.hub.breadcrumb",t)}}function rp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/ledger-to-beancount"),a=t?.pageTitle??yE,r=t?.pageDesc??vE,s=t?.faqs??[];return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:R(e),twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]),...s.length>0?[me(s)]:[])}}const $E=()=>b(()=>import("./ledger-to-beancount-Bk9td7nb.js"),__vite__mapDeps([228,229,4,208,6,218,223,18,19,44,144,21,45,41,207,16,209,1,64,192,7])),_E=v("/($locale)/tools/ledger-to-beancount")({loader:ap,head:rp,component:y($E,"component")}),wE="Invoice email composer",RE="Pick an invoice email stage, reconcile the remaining balance and review a ready subject and body — nothing you type leaves your browser.",PE=Te("toolsInvoiceEmail.hero.title","tools.hub.breadcrumb","toolName.invoiceEmail");async function sp({params:e}){const t=await X(R(e),PE);return{pageTitle:A("toolName.invoiceEmail",t),pageDesc:A("tools.hub.summary.invoiceEmail",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function ip({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/invoice-email"),a=t?.pageTitle??wE,r=t?.pageDesc??RE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const SE=()=>b(()=>import("./invoice-email-ClqPjznq.js"),__vite__mapDeps([230,231,4,204,44,6,207,16,18,19,208,209,1,64,192,206,60,214,43,21,45,41,195,7])),xE=v("/($locale)/tools/invoice-email")({loader:sp,head:ip,component:y(SE,"component")}),TE="Expense report builder",EE="Build an itemized expense report in your browser: receipts, who paid and exact totals, with the amount owed back to you kept separate.",AE=Te("toolsExpenseReport.hero.title","tools.hub.breadcrumb","toolName.expenseReport");async function cp({params:e}){const t=await X(R(e),AE);return{pageTitle:A("toolName.expenseReport",t),pageDesc:A("tools.hub.summary.expenseReport",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function lp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/expense-report"),a=t?.pageTitle??TE,r=t?.pageDesc??EE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const LE=()=>b(()=>import("./expense-report-B4_OkA11.js"),__vite__mapDeps([232,233,4,204,72,73,44,6,207,16,18,19,208,209,1,64,192,206,212,96,213,41,195,7])),CE=v("/($locale)/tools/expense-report")({loader:cp,head:lp,component:y(LE,"component")}),NE="Debt coverage calculator",IE="Compute an EBITDA-based FCCR and DSCR from the same inputs, with a worked example and a downloadable summary.",FE=Te("toolsDebtCoverageCalculator.hero.title","tools.hub.breadcrumb","toolName.debtCoverageCalculator"),up=No,dp=Io("debt-coverage-calculator",async({params:e})=>{const t=await X(R(e),FE);return{pageTitle:A("toolName.debtCoverageCalculator",t),pageDesc:A("tools.hub.summary.debtCoverageCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}});function pp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/debt-coverage-calculator"),a=t?.pageTitle??NE,r=t?.pageDesc??IE,s=Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview});return{meta:[...s.meta,...G(s.cardTitle)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const OE=()=>b(()=>import("./debt-coverage-calculator-CeN0oRee.js"),__vite__mapDeps([234,4,235,18,19,217,44,6,77,218,204,209,1,41,64,192,195,7])),BE=v("/($locale)/tools/debt-coverage-calculator")({validateSearch:qe,loaderDeps:up,loader:dp,head:pp,component:y(OE,"component")}),ME="Customer concentration report",qE="Calculate customer revenue shares, total revenue and top-one/top-five concentration for a selected period and currency. Your figures stay in your browser.",DE=Te("toolsCustomerConcentrationReport.meta.description","tools.hub.breadcrumb","toolName.customerConcentrationReport");async function mp({params:e}){const t=await X(R(e),DE);return{pageTitle:A("toolName.customerConcentrationReport",t),pageDesc:A("toolsCustomerConcentrationReport.meta.description",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function hp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/customer-concentration-report"),a=t?.pageTitle??ME,r=t?.pageDesc??qE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const UE=()=>b(()=>import("./customer-concentration-report-BFT0wb0B.js"),__vite__mapDeps([236,237,4,204,203,205,72,73,6,44,206,207,16,18,19,208,209,1,64,192,41,212,96,195,7])),jE=v("/($locale)/tools/customer-concentration-report")({loader:mp,head:hp,component:y(UE,"component")}),VE="Break-even calculator",KE="Turn price, variable cost and fixed costs into a break-even point, a margin of safety and a downloadable summary.",zE=Te("toolsBreakEvenCalculator.hero.title","tools.hub.breadcrumb","toolName.breakEvenCalculator");async function fp({params:e}){const t=await X(R(e),zE);return{pageTitle:A("toolName.breakEvenCalculator",t),pageDesc:A("tools.hub.summary.breakEvenCalculator",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function gp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/break-even-calculator"),a=t?.pageTitle??VE,r=t?.pageDesc??KE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const GE=()=>b(()=>import("./break-even-calculator-D8clD0KN.js"),__vite__mapDeps([238,239,4,18,19,6,204,44,209,1,41,64,192,195,7])),HE=v("/($locale)/tools/break-even-calculator")({loader:fp,head:gp,component:y(GE,"component")}),WE="AR aging report",YE="Build an accounts receivable aging report in your browser: open invoice balances by customer in current, 1–30, 31–60, 61–90 and 91+ day buckets.",QE=Te("toolsArAgingReport.hero.title","tools.hub.breadcrumb","toolName.arAgingReport");async function bp({params:e}){const t=await X(R(e),QE);return{pageTitle:A("toolName.arAgingReport",t),pageDesc:A("tools.hub.summary.arAgingReport",t),toolsLabel:A("tools.hub.breadcrumb",t)}}function yp({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/ar-aging-report"),a=t?.pageTitle??WE,r=t?.pageDesc??YE;return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]))}}const XE=()=>b(()=>import("./ar-aging-report-fJI_4Fv7.js"),__vite__mapDeps([240,241,4,204,203,205,72,73,6,44,207,16,18,19,208,209,1,64,192,206,212,96,41,21,213,195,7])),JE=v("/($locale)/tools/ar-aging-report")({loader:bp,head:yp,component:y(XE,"component")}),vp="Founder Resources";function Ur(e,t){return te(e,t,o=>({sectionLabel:Me(o,["navbar.founderResources"],vp)}))}function jr(e,t,o,n){return Z([{name:$,url:w(e,"/")},{name:t??vp,url:w(e,"/founder-resources")},{name:o,url:n}])}const ZE="Privacy Policy Generator",eA="Create an English privacy-policy draft from your company and data-handling details. Review, copy, or download it.",kp=Ur("privacy.generator.page.title","privacy.generator.page.description");function $p({params:e,loaderData:t}){const o=R(e),n=w(o,"/founder-resources/privacy-policy-generator"),a=t?.pageTitle??ZE,r=t?.pageDesc??eA,s=se({title:a});return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:o,twitterTitle:a,image:s,twitterImage:s})],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n,applicationCategory:"BusinessApplication"}),jr(o,t?.sectionLabel,a,n))}}const tA=()=>b(()=>import("./privacy-policy-generator-F_u1ZhbD.js"),__vite__mapDeps([242,243,4,44,45,41,64,195,1,7])),oA=v("/($locale)/founder-resources/privacy-policy-generator")({loader:kp,head:$p,component:y(tA,"component")}),nA="Founder Equity Calculator",aA="Calculate fair equity distribution among co-founders based on contribution, experience, investment, and commitment. Free tool for startups and entrepreneurs.",_p=No,wp=Io("founder-equity-calculator",Ur("equity.calculator.page.title","equity.calculator.page.description"));function Rp({params:e,loaderData:t}){const o=R(e),n=w(o,"/founder-resources/founder-equity-calculator"),a=t?.pageTitle??nA,r=t?.pageDesc??aA;return{meta:Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview,cardImage:i=>se({title:i})}).meta,links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),jr(o,t?.sectionLabel,a,n))}}const rA=()=>b(()=>import("./founder-equity-calculator-i8Ft9Xcp.js"),__vite__mapDeps([244,4,245,217,44,6,77,218,204,246,41,144,64,195,1,7])),sA=v("/($locale)/founder-resources/founder-equity-calculator")({validateSearch:qe,loaderDeps:_p,loader:wp,head:Rp,component:y(rA,"component")}),iA="Can I Afford to Hire an Employee?",cA="Estimate the full cost of a new hire and the revenue needed to support them.",Pp=No,Sp=Io("can-i-afford-to-hire-an-employee-calculator",Ur("hiring.calculator.page.title","hiring.calculator.page.description"));function xp({params:e,loaderData:t}){const o=R(e),n=w(o,"/founder-resources/can-i-afford-to-hire-an-employee-calculator"),a=t?.pageTitle??iA,r=t?.pageDesc??cA;return{meta:Co({title:a,description:r,pageUrl:n,locale:o,sharePreview:t?.sharePreview,cardImage:i=>se({title:i})}).meta,links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),jr(o,t?.sectionLabel,a,n))}}const lA=()=>b(()=>import("./can-i-afford-to-hire-an-employee-calculator-PNLWyHWy.js"),__vite__mapDeps([247,4,248,217,44,6,77,218,204,246,19,41,144,214,64,195,1,7])),uA=v("/($locale)/founder-resources/can-i-afford-to-hire-an-employee-calculator")({validateSearch:qe,loaderDeps:Pp,loader:Sp,head:xp,component:y(lA,"component")}),dA=()=>b(()=>import("./_slug-C8GH1eIs.js"),__vite__mapDeps([249,4,250,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,195,7])),pA=v("/($locale)/founder-resources/$slug")({loader:async({params:e})=>
118{try{return await na({data:{path:`founder-resources/${e.slug}`,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=`${I}/founder-resources/${t.slug}`,a=o?.title??t.slug,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...G(a),...Ft({locale:R(t),title:a,description:r,canonicalUrl:n})],links:[{rel:"canonical",href:n}]}},component:y(dA,"component")});function Tp(e,t){return async function({params:n}){const a=R(n);try{const[r,s]=await Promise.all([jR({data:{path:`compare/${e}`,locale:a}}),X(a,wr(`/compare/${e}`))]);return{meta:r.meta,faqs:r.meta.faqs,compareLabel:A("compare.hub.breadcrumb",s),...t?.(s)}}catch{throw V()}}}function Ke(e){return Tp(e)}function Xe(e,t){const o=bl[e];return Tp(e,n=>({rankedItems:t.map(a=>({name:A(ik(a),n),description:A(`${o}.apps.${a}.tagline`,n)}))}))}function Ep(e,{params:t,loaderData:o}){const n=o?.meta;if(!n)return null;const a=R(t);return Dr({meta:n,canonicalUrl:w(a,`/compare/${e}`),homeUrl:w(a,"/"),compareUrl:w(a,"/compare"),compareLabel:o?.compareLabel??an,locale:a})}function Ap(e){return{meta:[{title:`${e} | ${$}`}]}}function ze(e,t){return function(n){return Ep(e,n)??Ap(t)}}function Je(e,t){return function(n){const a=Ep(e,n);if(!a)return Ap(t);const{meta:r,rankedItems:s}=n.loaderData??{};return{...a,scripts:[...a.scripts,...q(...hR({name:r?.title,items:s??[]}))]}}}const Lp="ynab-alternatives",mA=["beancount","actual","monarch","everyDollar","goodbudget","pocketsmith"],Cp=Xe(Lp,mA),Np=Je(Lp,"Best YNAB Alternatives"),hA=()=>b(()=>import("./ynab-alternatives-D6y63xZJ.js"),__vite__mapDeps([251,4,252,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),fA=v("/($locale)/compare/ynab-alternatives")({loader:Cp,head:Np,component:y(hA,"component")}),Ip="xero-alternatives",gA=["beancount","quickbooks","zoho","freshbooks","wave","gnucash"],Fp=Xe(Ip,gA),Op=Je(Ip,"Best Xero Alternatives"),bA=()=>b(()=>import("./xero-alternatives-CzoZT3NP.js"),__vite__mapDeps([257,4,258,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),yA=v("/($locale)/compare/xero-alternatives")({loader:Fp,head:Op,component:y(bA,"component")}),Bp="wave-alternatives",vA=["beancount","zoho","quickbooks","freshbooks","xero","gnucash"],Mp=Xe(Bp,vA),qp=Je(Bp,"Best Wave Accounting Alternatives"),kA=()=>b(()=>import("./wave-alternatives-BFRJx7O9.js"),__vite__mapDeps([259,4,260,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),$A=v("/($locale)/compare/wave-alternatives")({loader:Mp,head:qp,component:y(kA,"component")}),Dp="quicken-alternatives",_A=["beancount","monarch","moneydance","actual","simplifi","ynab"],Up=Xe(Dp,_A),jp=Je(Dp,"Best Quicken Alternatives"),wA=()=>b(()=>import("./quicken-alternatives-BCDWM2S0.js"),__vite__mapDeps([261,4,262,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),RA=v("/($locale)/compare/quicken-alternatives")({loader:Up,head:jp,component:y(wA,"component")}),Vp="quickbooks-alternatives",PA=["beancount","xero","wave","freshbooks","zoho","gnucash"],Kp=Xe(Vp,PA),zp=Je(Vp,"Best QuickBooks Alternatives"),SA=()=>b(()=>import("./quickbooks-alternatives-DfCeYmHf.js"),__vite__mapDeps([263,4,264,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),xA=v("/($locale)/compare/quickbooks-alternatives")({loader:Kp,head:zp,component:y(SA,"component")}),Gp="monarch-alternatives",TA=["beancount","actual","simplifi","copilot","ynab","empower"],Hp=Xe(Gp,TA),Wp=Je(Gp,"Best Monarch Money Alternatives"),EA=()=>b(()=>import("./monarch-alternatives-mzzuYcwp.js"),__vite__mapDeps([265,4,266,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),AA=v("/($locale)/compare/monarch-alternatives")({loader:Hp,head:Wp,component:y(EA,"component")}),Yp="mint-alternatives",LA=["beancount","monarch","ynab","actual","copilot","creditKarma"],Qp=Xe(Yp,LA),Xp=Je(Yp,"Best Mint Alternatives"),CA=()=>b(()=>import("./mint-alternatives-ClEWUz0o.js"),__vite__mapDeps([267,4,268,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),NA=v("/($locale)/compare/mint-alternatives")({loader:Qp,head:Xp,component:y(CA,"component")}),Jp="empower-alternatives",IA=["beancount","kubera","projectionlab","sharesight","monarch","simplifi"],Zp=Xe(Jp,IA),em=Je(Jp,"Best Empower Personal Dashboard Alternatives"),FA=()=>b(()=>import("./empower-alternatives-CfwZTkVN.js"),__vite__mapDeps([269,4,270,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),OA=v("/($locale)/compare/empower-alternatives")({loader:Zp,head:em,component:y(FA,"component")}),tm="copilot-alternatives",BA=["beancount","monarch","simplifi","ynab","actual","empower"],om=Xe(tm,BA),nm=Je(tm,"Best Copilot Money Alternatives"),MA=()=>b(()=>import("./copilot-alternatives-BgQ_R1ua.js"),__vite__mapDeps([271,4,272,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),qA=v("/($locale)/compare/copilot-alternatives")({loader:
118om,head:nm,component:y(MA,"component")}),am="best-accounting-tools-for-ai-agents",DA=["beancount","hledger","xero","quickbooks","puzzle"],rm=Xe(am,DA),sm=Je(am,"Best Accounting Tools for AI Agents"),UA=()=>b(()=>import("./best-accounting-tools-for-ai-agents-UCHKRcnH.js"),__vite__mapDeps([273,4,274,256,255,53,54,55,16,209,1,79,78,30,87,24,275,64,198,106,7])),jA=v("/($locale)/compare/best-accounting-tools-for-ai-agents")({loader:rm,head:sm,component:y(UA,"component")}),im="beancount-vs-ynab",cm=Ke(im),lm=ze(im,"Beancount vs YNAB"),VA=()=>b(()=>import("./beancount-vs-ynab-DbSELfiq.js"),__vite__mapDeps([276,4,277,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),KA=v("/($locale)/compare/beancount-vs-ynab")({loader:cm,head:lm,component:y(VA,"component")}),um="beancount-vs-spreadsheets",dm=Ke(um),pm=ze(um,"Beancount vs Excel & Google Sheets"),zA=()=>b(()=>import("./beancount-vs-spreadsheets-D0bLNWVl.js"),__vite__mapDeps([279,4,280,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),GA=v("/($locale)/compare/beancount-vs-spreadsheets")({loader:dm,head:pm,component:y(zA,"component")}),mm="beancount-vs-simplifi",hm=Ke(mm),fm=ze(mm,"Beancount vs Simplifi"),HA=()=>b(()=>import("./beancount-vs-simplifi-CHkglpG8.js"),__vite__mapDeps([281,4,282,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),WA=v("/($locale)/compare/beancount-vs-simplifi")({loader:hm,head:fm,component:y(HA,"component")}),gm="beancount-vs-quickbooks",bm=Ke(gm),ym=ze(gm,"Beancount vs QuickBooks"),YA=()=>b(()=>import("./beancount-vs-quickbooks--x84ZV4U.js"),__vite__mapDeps([283,4,284,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),QA=v("/($locale)/compare/beancount-vs-quickbooks")({loader:bm,head:ym,component:y(YA,"component")}),vm="beancount-vs-monarch",km=Ke(vm),$m=ze(vm,"Beancount vs Monarch Money"),XA=()=>b(()=>import("./beancount-vs-monarch-B6n6SQVk.js"),__vite__mapDeps([285,4,286,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),JA=v("/($locale)/compare/beancount-vs-monarch")({loader:km,head:$m,component:y(XA,"component")}),_m="beancount-vs-mint",wm=Ke(_m),Rm=ze(_m,"Beancount vs Mint"),ZA=()=>b(()=>import("./beancount-vs-mint-CupPK5Kz.js"),__vite__mapDeps([287,4,288,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),eL=v("/($locale)/compare/beancount-vs-mint")({loader:wm,head:Rm,component:y(ZA,"component")}),Pm="beancount-vs-ledger-cli",Sm=Ke(Pm),xm=ze(Pm,"Beancount vs Ledger CLI"),tL=()=>b(()=>import("./beancount-vs-ledger-cli-7B8so-fx.js"),__vite__mapDeps([289,4,290,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),oL=v("/($locale)/compare/beancount-vs-ledger-cli")({loader:Sm,head:xm,component:y(tL,"component")}),Tm="beancount-vs-hledger",Em=Ke(Tm),Am=ze(Tm,"Beancount vs hledger"),nL=()=>b(()=>import("./beancount-vs-hledger-Ev4OXzZR.js"),__vite__mapDeps([291,4,292,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),aL=v("/($locale)/compare/beancount-vs-hledger")({loader:Em,head:Am,component:y(nL,"component")}),Lm="beancount-vs-gnucash",Cm=Ke(Lm),Nm=ze(Lm,"Beancount vs GnuCash"),rL=()=>b(()=>import("./beancount-vs-gnucash-DhzrL9sc.js"),__vite__mapDeps([293,4,294,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),sL=v("/($locale)/compare/beancount-vs-gnucash")({loader:Cm,head:Nm,component:y(rL,"component")}),Im="beancount-vs-credit-karma",Fm=Ke(Im),Om=ze(Im,"Beancount vs Credit Karma"),iL=()=>b(()=>import("./beancount-vs-credit-karma-DQeY0aJs.js"),__vite__mapDeps([295,4,296,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),cL=v("/($locale)/compare/beancount-vs-credit-karma")({loader:Fm,head:Om,component:y(iL,"component")}),Bm="beancount-vs-actual-budget",Mm=Ke(Bm),qm=ze(Bm,"Beancount vs Actual Budget"),lL=()=>b(()=>import("./beancount-vs-actual-budget-BNW1A3t0.js"),__vite__mapDeps([297,4,298,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),uL=v("/($locale)/compare/beancount-vs-actual-budget")({loader:Mm,head:qm,component:y(lL,"component")}),dL=()=>b(()=>
118import("./_slug-BDdXyBrB.js"),__vite__mapDeps([299,4,300,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),pL=v("/($locale)/compare/$slug")({loader:async({params:e})=>{try{return await na({data:{path:`compare/${e.slug}`,locale:R(e)}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta;if(!o)return{meta:[{title:`${t.slug} | ${$}`}]};const n=`${I}/compare/${t.slug}`;return Dr({locale:R(t),meta:o,canonicalUrl:n,homeUrl:I,compareUrl:`${I}/compare`,compareLabel:an})},component:y(dL,"component")}),mL=()=>b(()=>import("./route-DEBM16Fd.js"),__vite__mapDeps([301,4,1,7])),hL=v("/($locale)/bean-labs/research-logs")({component:y(mL,"component")}),Dm=re({method:"GET"}).handler(pe("8016672637fff68602a322115c41028d52fdf16acfdf0ef123203ff1d3fa7ee8")),Um=re({method:"GET"}).handler(pe("0296903fc98c50263f70ba24c839cc0c0a45bf3ca254b4bb2e873a53e3facefc")),Fo="Documentation",jm="Guides, references, and recipes for plain-text accounting with Beancount.io — from your first transaction to scripted, auditable workflows.",fL="docs.landing.metaTitle";async function Vm(e){return Me(await X(e),[fL],Fo)}function en(e){return`${e} | ${$}`}function Km(e){const{title:t,description:o,canonicalUrl:n,homeUrl:a,locale:r}=e,s=e.docsName??Fo;return{meta:[{title:en(t)},{name:"description",content:o},...M({title:t,description:o,canonicalUrl:n,locale:r,image:To})],scripts:q(Z([{name:$,url:a},{name:s,url:n}])),links:[{rel:"canonical",href:n}]}}const gL=()=>b(()=>import("./index-BQY5BLc7.js"),__vite__mapDeps([302,4,303,123,124,18,19,304,305,25,64,1,7])),bL=te("docs.landing.metaTitle","docs.landing.metaDescription"),yL=v("/($locale)/docs/")({loader:async({params:e})=>{const t=e.locale??ae,[o,n]=await Promise.all([Um({data:{locale:t}}),bL({params:e})]);return{sidebar:o,...n}},head:({loaderData:e,params:t})=>Km({title:e?.pageTitle??Fo,description:e?.pageDesc??jm,docsName:e?.pageTitle,canonicalUrl:`${I}/docs`,homeUrl:I,locale:R(t)}),component:y(gL,"component")}),zm=te(no.beancount.titleKey,no.beancount.descriptionKey),Gm=te(no.prices.titleKey,no.prices.descriptionKey);function fa({params:e,loaderData:t},o="beancount"){const n=no[o],a=R(e),r=w(a,n.path),s=t?.pageTitle??n.title,i=t?.pageDesc??n.description;return{meta:[{title:`${s} | ${$}`},{name:"description",content:i},...M({title:s,description:i,canonicalUrl:r,locale:a}),...G(s),{name:"keywords",content:o==="prices"?"Beancount Prices API, prices API, OpenAPI, Scalar API reference":"Beancount API, REST API, OpenAPI, Scalar API reference, ledger API, accounting API"}],links:[{rel:"canonical",href:r}]}}const vL=()=>b(()=>import("./prices-api-reference-DkRczSO3.js"),__vite__mapDeps([306,307,1,4,7])),kL=v("/($locale)/docs/prices-api-reference")({loader:Gm,head:e=>fa(e,"prices"),component:y(vL,"component")}),$L=()=>b(()=>import("./api-reference-DswN1cqq.js"),__vite__mapDeps([308,307,1,4,7])),_L=v("/($locale)/docs/api-reference")({loader:zm,head:fa,component:y($L,"component")}),wL=()=>b(()=>import("./_-OAqpaYpr.js"),__vite__mapDeps([309,4,310,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,304,305,25,55,275,18,7])),RL=v("/($locale)/docs/$")({loader:async({params:e})=>{const t=e._splat??"",o=e.locale??ae,[n,a]=await Promise.all([Dm({data:{slug:t,locale:o}}),Vm(o)]);if(!n)throw V();return{...n,docsName:a}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.docsName??Fo;if(!o)return{meta:[{title:en(n)}]};const a=`${I}/docs/${o.id}`;return{meta:[{title:en(o.title)},{name:"description",content:o.description},...o.keywords.length>0?[{name:"keywords",content:o.keywords.join(", ")}]:[],...G(o.title),...Ft({locale:R(t),title:o.title,description:o.description,canonicalUrl:a})],scripts:q(...yu({title:o.title,description:o.description,keywords:o.keywords,url:a,homeUrl:I,docsName:n,docsUrl:`${I}/docs`,authors:e?.authorLinks,authorBaseUrl:`${I}/blog/authors`,dateModified:e?.lastUpdated}),...vu({url:a,name:o.title,description:o.description,terms:e?.glossaryTerms??[]}),...e?.faqEntries?.length?[me(e.faqEntries)]:[]),links:[{rel:"canonical",href:a},...e?.hasMath?[Eo]:[]]}},component:y(wL,"component")}),PL=60;function Vr(e){return[yt({name:e.name,url:e.url,description:e.description,items:un(e.posts,e.sectionUrl)})]}function Ot(e){return[yt({name:`Posts tagged "${e.label}"`,url:e.url,description:e.description,items:un(e.posts,e.sectionUrl)}),Z([{name:$,url:e.homeUrl},{name:e.sectionName,url:e.sectionUrl},{name:e.listName,url:`${e.sectionUrl}/tags`},{name:e.label,url:e.url}])]}function Bt(e){return[yt({name:e.name,url:e.url,description:e.description,items:un(e.posts,e.sectionUrl)}),...fR({author:e.author,url:e.url}),Z([{name:$,url:e.homeUrl},{name:e.sectionName,url:e.sectionUrl},{name:e.listName,url:`${e.sectionUrl}/authors`},{name:e.author.name,url:e.url}])]}function SL(e){return[Z([{name:$,url:e.homeUrl},{name:e.sectionName,url:e.sectionUrl},{name:e.listName,url:e.url}])]}const ja=` | ${$}`;function ga(e){const t=e.trim();return t?t.endsWith(ja)||t===$?t:[...t].length+[...ja].length<=PL?`${t}${ja}`:t:$}function ba(e){return e.seoTitle?.trim()||e.title}function Hm(e,t,o){return w(o?ae:e,t)}async function ya(e,t,o){return Me(await X(e),[t],o)}function lo(e){return ya(e,aR,ht)}function uo(e){return ya(e,sR,Qe)}function Wm(e){return ya(e,"common.beanLabs","Bean Labs")}function xL(e,t){return`${e} (${t})`}function Ym(e){return ya(e,rR,Zt)}async function Qm(e){return Me(await X(e,["bean-labs"]),[iR],eo)}function Oo(e){const t=e.page!==void 0?xL(e.sectionName,e.page):e.sectionName,o=`${t} | ${$}`;return{meta:[{title:o},{name:"description",content:e.description},...M({title:o,description:e.description,canonicalUrl:e.canonicalUrl,locale:e.locale,image:To})],scripts:q(...Vr({name:t,url:e.canonicalUrl,description:e.description,sectionUrl:e.sectionUrl,posts:e.posts??[]})),links:[{rel:"canonical",href:e.canonicalUrl}]}}function Xm(e,t,o,n){if(!n)return[];const a=CS(t,o);return a?Zn(e,a.basePath,ad($,n)):[]}const TL=()=>b(()=>import("./index-YxQsSbcv.js"),__vite__mapDeps([315,4,316,317,18,19,318,64,319,1,7])),EL=v("/($locale)/blog/")({loader:async({params:e,context:t})=>{const o=R(e),[n,{data:a,error:r}]=await Promise.all([lo(o),t.client.query({query:la,variables:{page:1,pageSize:Pe},fetchPolicy:"network-only"})]);if(!a)throw r??new Error("BlogPosts query returned no data");return{...a.blogPosts,sectionName:n}},head:({loaderData:e,params:t})=>{const o=e?.sectionName??ht,n=`${o} | ${$}`;return{meta:[{title:n},{name:"description",content:Zt},...M({title:n,description:Zt,canonicalUrl:`${I}/blog`,locale:R(t),image:To})],scripts:q(...Vr({name:o,url:`${I}/blog`,description:Zt,sectionUrl:`${I}/blog`,posts:e?.posts??[]})),links:[{rel:"canonical",href:`${I}/blog`}]}},component:y(TL,"component")}),AL=()=>b(()=>import("./index-CkcVgK9o.js"),__vite__mapDeps([320,189,4,190,22,191,143,144,23,56,86,91,49,6,64,192,1,7])),LL=v("/$locale/tools/")({loader:Ad,head:Ld,component:y(AL,"component")}),CL=()=>b(()=>import("./index-C_-3WdX6.js"),__vite__mapDeps([321,194,4,19,24,33,64,195,1,7])),NL=v("/$locale/founder-resources/")({loader:Cd,head:Nd,component:y(CL,"component")}),IL=()=>b(()=>import("./index-lMqRcLrb.js"),__vite__mapDeps([322,4,197,64,198,1,7])),FL=v("/$locale/compare/")({loader:async({params:e})=>
118{const[t,o]=await Promise.all([Tu({data:{locale:e.locale}}),X(e.locale,["compare"])]);return{pages:t,title:A("compare.hub.title",o),description:A("compare.hub.description",o),compareLabel:A("compare.hub.breadcrumb",o)}},head:({params:e,loaderData:t})=>Fd({locale:e.locale,title:t?.title??fl,description:t?.description??gl,canonicalUrl:w(e.locale,"/compare"),homeUrl:w(e.locale,"/"),compareLabel:t?.compareLabel??an,pages:t?.pages??[]}),component:y(IL,"component")}),OL=()=>b(()=>import("./index-DghvBkjQ.js"),__vite__mapDeps([323,4,200,59,24,125,64,74,1,7])),BL=v("/$locale/bean-labs/")({loader:Od,head:Bd,component:y(OL,"component")}),ML=()=>b(()=>import("./year-over-year-growth-calculator-CaqXkexs.js"),__vite__mapDeps([324,202,4,44,203,204,6,205,72,73,206,207,16,18,19,208,209,1,64,192,41,195,7])),qL=v("/$locale/tools/year-over-year-growth-calculator")({loader:Md,head:qd,component:y(ML,"component")}),DL=()=>b(()=>import("./trial-balance-Cib-KKgg.js"),__vite__mapDeps([325,211,4,204,203,205,72,73,44,6,207,16,18,19,208,209,1,64,192,206,212,96,213,41,214,43,195,7])),UL=v("/$locale/tools/trial-balance")({loader:Dd,head:Ud,component:y(DL,"component")}),jL=()=>b(()=>import("./straight-line-depreciation-calculator-pjJexq6k.js"),__vite__mapDeps([326,4,216,18,19,217,44,6,77,218,204,72,73,209,1,41,64,192,195,7])),VL=v("/$locale/tools/straight-line-depreciation-calculator")({validateSearch:qe,loaderDeps:jd,loader:Vd,head:Kd,component:y(jL,"component")}),KL=()=>b(()=>import("./receivables-turnover-calculator-CqGtVbYB.js"),__vite__mapDeps([327,4,220,18,19,217,44,6,77,218,204,209,1,41,64,192,195,7])),zL=v("/$locale/tools/receivables-turnover-calculator")({validateSearch:qe,loaderDeps:zd,loader:Gd,head:Hd,component:y(KL,"component")}),GL=()=>b(()=>import("./ofx-to-beancount-B2nK-7Ho.js"),__vite__mapDeps([328,222,4,223,18,19,44,208,6,218,144,21,45,41,203,207,16,209,1,64,192,7])),HL=v("/$locale/tools/ofx-to-beancount")({loader:Qd,head:Xd,component:y(GL,"component")}),WL=()=>b(()=>import("./menu-engineering-calculator-5wGOS2k0.js"),__vite__mapDeps([329,4,225,18,19,217,44,6,77,218,204,72,73,41,209,1,212,64,192,195,7])),YL=v("/$locale/tools/menu-engineering-calculator")({validateSearch:qe,loaderDeps:Jd,loader:Zd,head:ep,component:y(WL,"component")}),QL=()=>b(()=>import("./margin-markup-calculator-Hn8Dw_LQ.js"),__vite__mapDeps([330,227,4,44,6,204,207,16,18,19,208,209,1,64,192,206,214,43,41,191,195,7])),XL=v("/$locale/tools/margin-markup-calculator")({loader:tp,head:op,component:y(QL,"component")}),JL=()=>b(()=>import("./ledger-to-beancount-BPJ9ZK_p.js"),__vite__mapDeps([331,229,4,208,6,218,223,18,19,44,144,21,45,41,207,16,209,1,64,192,7])),ZL=v("/$locale/tools/ledger-to-beancount")({loader:ap,head:rp,component:y(JL,"component")}),eC=()=>b(()=>import("./invoice-email-Qygal1Ab.js"),__vite__mapDeps([332,231,4,204,44,6,207,16,18,19,208,209,1,64,192,206,60,214,43,21,45,41,195,7])),tC=v("/$locale/tools/invoice-email")({loader:sp,head:ip,component:y(eC,"component")}),oC=()=>b(()=>import("./expense-report-BF1-TzBw.js"),__vite__mapDeps([333,233,4,204,72,73,44,6,207,16,18,19,208,209,1,64,192,206,212,96,213,41,195,7])),nC=v("/$locale/tools/expense-report")({loader:cp,head:lp,component:y(oC,"component")}),aC=()=>b(()=>import("./debt-coverage-calculator-Dxllo3Sp.js"),__vite__mapDeps([334,4,235,18,19,217,44,6,77,218,204,209,1,41,64,192,195,7])),rC=v("/$locale/tools/debt-coverage-calculator")({validateSearch:qe,loaderDeps:up,loader:dp,head:pp,component:y(aC,"component")}),sC=()=>b(()=>import("./customer-concentration-report-BHEa07mY.js"),__vite__mapDeps([335,237,4,204,203,205,72,73,6,44,206,207,16,18,19,208,209,1,64,192,41,212,96,195,7])),iC=v("/$locale/tools/customer-concentration-report")({loader:mp,head:hp,component:y(sC,"component")}),cC=()=>b(()=>import("./break-even-calculator-Cbd47hEP.js"),__vite__mapDeps([336,239,4,18,19,6,204,44,209,1,41,64,192,195,7])),lC=v("/$locale/tools/break-even-calculator")({loader:fp,head:gp,component:y(cC,"component")}),uC=()=>b(()=>import("./ar-aging-report-DzztEz3C.js"),__vite__mapDeps([337,241,4,204,203,205,72,73,6,44,207,16,18,19,208,209,1,64,192,206,212,96,41,21,213,195,7])),dC=v("/$locale/tools/ar-aging-report")({loader:bp,head:yp,component:y(uC,"component")}),pC=()=>b(()=>import("./privacy-policy-generator-GEJTTbsa.js"),__vite__mapDeps([338,243,4,44,45,41,64,195,1,7])),mC=v("/$locale/founder-resources/privacy-policy-generator")({loader:kp,head:$p,component:y(pC,"component")}),hC=()=>b(()=>import("./founder-equity-calculator-CuYNbptI.js"),__vite__mapDeps([339,4,245,217,44,6,77,218,204,246,41,144,64,195,1,7])),fC=v("/$locale/founder-resources/founder-equity-calculator")({validateSearch:qe,loaderDeps:_p,loader:wp,head:Rp,component:y(hC,"component")}),gC=()=>b(()=>import("./can-i-afford-to-hire-an-employee-calculator-4rEQER2i.js"),__vite__mapDeps([340,4,248,217,44,6,77,218,204,246,19,41,144,214,64,195,1,7])),bC=v("/$locale/founder-resources/can-i-afford-to-hire-an-employee-calculator")({validateSearch:qe,loaderDeps:Pp,loader:Sp,head:xp,component:y(gC,"component")}),yC=()=>b(()=>import("./_slug-BWTenO1Q.js"),__vite__mapDeps([341,4,250,38,1,39,6,40,41,30,42,43,44,21,45,16,19,64,195,7])),vC=v("/$locale/founder-resources/$slug")({loader:async({params:e})=>
118{try{return await na({data:{path:`founder-resources/${e.slug}`,locale:e.locale}})}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=w(t.locale,`/founder-resources/${t.slug}`),a=o?.title??t.slug,r=o?.description??"";return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...G(a),...Ft({locale:t.locale,title:a,description:r,canonicalUrl:n})],links:[{rel:"canonical",href:n}]}},component:y(yC,"component")}),kC=()=>b(()=>import("./ynab-alternatives-hPRw1oBH.js"),__vite__mapDeps([342,4,252,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),$C=v("/$locale/compare/ynab-alternatives")({loader:Cp,head:Np,component:y(kC,"component")}),_C=()=>b(()=>import("./xero-alternatives-CgAaUXCB.js"),__vite__mapDeps([343,4,258,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),wC=v("/$locale/compare/xero-alternatives")({loader:Fp,head:Op,component:y(_C,"component")}),RC=()=>b(()=>import("./wave-alternatives-eb249ubV.js"),__vite__mapDeps([344,4,260,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),PC=v("/$locale/compare/wave-alternatives")({loader:Mp,head:qp,component:y(RC,"component")}),SC=()=>b(()=>import("./quicken-alternatives-Djp0bMrj.js"),__vite__mapDeps([345,4,262,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),xC=v("/$locale/compare/quicken-alternatives")({loader:Up,head:jp,component:y(SC,"component")}),TC=()=>b(()=>import("./quickbooks-alternatives-BjrTr-5G.js"),__vite__mapDeps([346,4,264,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),EC=v("/$locale/compare/quickbooks-alternatives")({loader:Kp,head:zp,component:y(TC,"component")}),AC=()=>b(()=>import("./monarch-alternatives-DdGjU7zG.js"),__vite__mapDeps([347,4,266,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),LC=v("/$locale/compare/monarch-alternatives")({loader:Hp,head:Wp,component:y(AC,"component")}),CC=()=>b(()=>import("./mint-alternatives-qCvEs47W.js"),__vite__mapDeps([348,4,268,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),NC=v("/$locale/compare/mint-alternatives")({loader:Qp,head:Xp,component:y(CC,"component")}),IC=()=>b(()=>import("./empower-alternatives-S9IDNYcx.js"),__vite__mapDeps([349,4,270,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),FC=v("/$locale/compare/empower-alternatives")({loader:Zp,head:em,component:y(IC,"component")}),OC=()=>b(()=>import("./copilot-alternatives-DvLRU5Tq.js"),__vite__mapDeps([350,4,272,253,254,18,19,255,53,54,55,16,209,1,21,256,64,198,7])),BC=v("/$locale/compare/copilot-alternatives")({loader:om,head:nm,component:y(OC,"component")}),MC=()=>b(()=>import("./best-accounting-tools-for-ai-agents-B3MAUlij.js"),__vite__mapDeps([351,4,274,256,255,53,54,55,16,209,1,79,78,30,87,24,275,64,198,106,7])),qC=v("/$locale/compare/best-accounting-tools-for-ai-agents")({loader:rm,head:sm,component:y(MC,"component")}),DC=()=>b(()=>import("./beancount-vs-ynab-DVGjyInG.js"),__vite__mapDeps([352,4,277,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),UC=v("/$locale/compare/beancount-vs-ynab")({loader:cm,head:lm,component:y(DC,"component")}),jC=()=>b(()=>import("./beancount-vs-spreadsheets-DyxAYKp9.js"),__vite__mapDeps([353,4,280,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),VC=v("/$locale/compare/beancount-vs-spreadsheets")({loader:dm,head:pm,component:y(jC,"component")}),KC=()=>b(()=>import("./beancount-vs-simplifi-BV0pD149.js"),__vite__mapDeps([354,4,282,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),zC=v("/$locale/compare/beancount-vs-simplifi")({loader:hm,head:fm,component:y(KC,"component")}),GC=()=>b(()=>import("./beancount-vs-quickbooks-x78zzHP2.js"),__vite__mapDeps([355,4,284,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),HC=v("/$locale/compare/beancount-vs-quickbooks")({loader:bm,head:ym,component:y(GC,"component")}),WC=()=>b(()=>import("./beancount-vs-monarch-4hSr_2KJ.js"),__vite__mapDeps([356,4,286,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),YC=v("/$locale/compare/beancount-vs-monarch")({loader:km,head:$m,component:y(WC,"component")}),QC=()=>b(()=>import("./beancount-vs-mint-DUq3KXHz.js"),__vite__mapDeps([357,4,288,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),XC=v("/$locale/compare/beancount-vs-mint")({loader:wm,head:Rm,component:y(QC,"component")}),JC=()=>b(()=>import("./beancount-vs-ledger-cli-4OM5cOzQ.js"),__vite__mapDeps([358,4,290,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),ZC=v("/$locale/compare/beancount-vs-ledger-cli")({loader:Sm,head:xm,component:y(JC,"component")}),eN=()=>b(()=>import("./beancount-vs-hledger-DLwfgJJV.js"),__vite__mapDeps([359,4,292,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),tN=v("/$locale/compare/beancount-vs-hledger")({loader:Em,head:Am,component:y(eN,"component")}),oN=()=>b(()=>import("./beancount-vs-gnucash-DZL9rHm4.js"),__vite__mapDeps([360,4,294,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),nN=v("/$locale/compare/beancount-vs-gnucash")({loader:Cm,head:Nm,component:y(oN,"component")}),aN=()=>b(()=>import("./beancount-vs-credit-karma-BIlMd1UN.js"),__vite__mapDeps([361,4,296,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),rN=v("/$locale/compare/beancount-vs-credit-karma")({loader:Fm,head:Om,component:y(aN,"component")}),sN=()=>b(()=>import("./beancount-vs-actual-budget-BTnUtYhc.js"),__vite__mapDeps([362,4,298,278,254,18,19,255,53,54,55,16,209,1,21,190,22,191,143,144,23,56,86,91,49,64,198,7])),iN=v("/$locale/compare/beancount-vs-actual-budget")({loader:Mm,head:qm,component:y(sN,"component")}),cN=()=>b(()=>import("./_slug-xbV8T10K.js"),__vite__mapDeps([363,4,300,38,1,39,6,40,41,30,42,43,44,21,45,16,7])),lN=v("/$locale/compare/$slug")({loader:async({params:e})=>
118{try{const[t,o]=await Promise.all([na({data:{path:`compare/${e.slug}`,locale:e.locale}}),X(e.locale,wr(`/compare/${e.slug}`))]);return{...t,compareLabel:A("compare.hub.breadcrumb",o)}}catch{throw V()}},head:({loaderData:e,params:t})=>{const o=e?.meta;if(!o)return{meta:[{title:`${t.slug} | ${$}`}]};const n=w(t.locale,`/compare/${t.slug}`);return Dr({locale:t.locale,meta:o,canonicalUrl:n,homeUrl:w(t.locale,"/"),compareUrl:w(t.locale,"/compare"),compareLabel:e?.compareLabel??an})},component:y(cN,"component")}),uN=()=>b(()=>import("./route-BOGfB07E.js"),__vite__mapDeps([364,4,1,7])),dN=v("/$locale/bean-labs/research-logs")({component:y(uN,"component")}),pN=()=>b(()=>import("./index-CZv9P1ZX.js"),__vite__mapDeps([365,4,303,123,124,18,19,304,305,25,64,1,7])),mN=te("docs.landing.metaTitle","docs.landing.metaDescription"),hN=v("/$locale/docs/")({loader:async({params:e})=>{const[t,o]=await Promise.all([Um({data:{locale:e.locale}}),mN({params:e})]);return{sidebar:t,...o}},head:({loaderData:e,params:t})=>Km({locale:t.locale,title:e?.pageTitle??Fo,description:e?.pageDesc??jm,docsName:e?.pageTitle,canonicalUrl:w(t.locale,"/docs"),homeUrl:w(t.locale,"/")}),component:y(pN,"component")}),fN=()=>b(()=>import("./prices-api-reference-6JlLScA6.js"),__vite__mapDeps([366,307,1,4,7])),gN=v("/$locale/docs/prices-api-reference")({loader:Gm,head:e=>fa(e,"prices"),component:y(fN,"component")}),bN=()=>b(()=>import("./api-reference-CYqgO0Rf.js"),__vite__mapDeps([367,307,1,4,7])),yN=v("/$locale/docs/api-reference")({loader:zm,head:fa,component:y(bN,"component")}),vN=()=>b(()=>import("./_-By8EUsgz.js"),__vite__mapDeps([368,4,310,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,304,305,25,55,275,18,7])),kN=v("/$locale/docs/$")({loader:async({params:e})=>{const t=e._splat??"",o=e.locale,[n,a]=await Promise.all([Dm({data:{slug:t,locale:o}}),Vm(o)]);if(!n)throw V();return{...n,docsName:a}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.docsName??Fo;if(!o)return{meta:[{title:en(n)}]};const a=w(t.locale,`/docs/${o.id}`);return{meta:[{title:en(o.title)},{name:"description",content:o.description},...o.keywords.length>0?[{name:"keywords",content:o.keywords.join(", ")}]:[],...G(o.title),...Ft({locale:t.locale,title:o.title,description:o.description,canonicalUrl:a})],scripts:q(...yu({title:o.title,description:o.description,keywords:o.keywords,url:a,homeUrl:w(t.locale,"/"),docsName:n,docsUrl:w(t.locale,"/docs"),authors:e?.authorLinks,authorBaseUrl:w(t.locale,"/blog/authors"),dateModified:e?.lastUpdated}),...vu({url:a,name:o.title,description:o.description,terms:e?.glossaryTerms??[]}),...e?.faqEntries?.length?[me(e.faqEntries)]:[]),links:[{rel:"canonical",href:a},...e?.hasMath?[Eo]:[]]}},component:y(vN,"component")}),$N=()=>b(()=>import("./index-31o9Cb2R.js"),__vite__mapDeps([369,4,316,317,18,19,318,64,319,1,7])),_N=v("/$locale/blog/")({loader:async({params:e,context:t})=>{const[o,n,{data:a,error:r}]=await Promise.all([lo(e.locale),Ym(e.locale),t.client.query({query:la,variables:{page:1,pageSize:Pe},fetchPolicy:"network-only"})]);if(!a)throw r??new Error("BlogPosts query returned no data");const s=await ft({data:{locale:e.locale,posts:[...a.blogPosts.posts]}});return{...a.blogPosts,posts:s,sectionName:o,sectionDescription:n}},head:({loaderData:e,params:t})=>{const o=e?.sectionName??ht,n=e?.sectionDescription??Zt;return Oo({sectionName:o,description:n,canonicalUrl:w(t.locale,"/blog"),sectionUrl:w(t.locale,"/blog"),locale:t.locale,posts:e?.posts??[]})},component:y($N,"component")}),Jm=[["toolsCsvToBeancount.faq.privacy.q","toolsCsvToBeancount.faq.privacy.a"],["toolsCsvToBeancount.faq.formats.q","toolsCsvToBeancount.faq.formats.a"],["toolsCsvToBeancount.faq.accounts.q","toolsCsvToBeancount.faq.accounts.a"],["toolsCsvToBeancount.faq.reconcile.q","toolsCsvToBeancount.faq.reconcile.a"],["toolsCsvToBeancount.faq.split.q","toolsCsvToBeancount.faq.split.a"],["toolsCsvToBeancount.faq.automate.q","toolsCsvToBeancount.faq.automate.a"]];function wN(e){return Jm.map(([t,o])=>({question:A(t,e),answer:A(o,e)}))}const RN="CSV to Beancount converter",PN="Turn a bank CSV export into balanced double-entry Beancount transactions, entirely in your browser.",SN=Te(Jm[0][0],"tools.hub.breadcrumb");async function Zm({params:e}){const t=await X(R(e),SN);return{pageTitle:A("toolName.csvToBeancount",t),pageDesc:A("tools.hub.summary.csvToBeancount",t),faqs:wN(t),toolsLabel:A("tools.hub.breadcrumb",t)}}function eh({params:e,loaderData:t}){const o=R(e),n=w(o,"/tools/csv-to-beancount"),a=t?.pageTitle??RN,r=t?.pageDesc??PN,s=t?.faqs??[];return{meta:[{title:`${a} | ${$}`},{name:"description",content:r},...M({title:`${a} | ${$}`,description:r,canonicalUrl:n,locale:R(e),twitterTitle:a}),...G(a)],links:[{rel:"canonical",href:n}],scripts:q(xe({name:a,description:r,url:n}),Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:a,url:n}]),...s.length>0?[me(s)]:[])}}const xN=()=>b(()=>import("./csv-to-beancount.index-D1b6l37y.js"),__vite__mapDeps([370,371,4,372,18,19,218,223,44,208,6,144,21,45,41,53,54,55,203,207,16,209,1,64,192,7])),TN=v("/($locale)/tools/csv-to-beancount/")({loader:Zm,head:eh,component:y(xN,"component")});function EN(e){return Array.from({length:e.faqs},(t,o)=>[`${e.keyPrefix}.faq.q${o+1}`,`${e.keyPrefix}.faq.a${o+1}`])}function AN(e,t){return EN(e).map(([o,n])=>({question:A(o,t),answer:A(n,t)}))}function lM(e){return Array.from({length:e.steps},(t,o)=>`${e.keyPrefix}.export.s${o+1}`)}function th(e){const t=e?.bank;return typeof t=="string"?t:""}async function oh({params:e}){const t=kl(th(e));if(!t)throw V();const o=await X(R(e),Te(`${t.keyPrefix}.title`,"tools.hub.breadcrumb"));return{slug:t.slug,pageTitle:A(`${t.keyPrefix}.title`,o),pageDesc:A(`${t.keyPrefix}.summary`,o),faqs:AN(t,o),toolsLabel:A("tools.hub.breadcrumb",o),converterLabel:A("toolName.csvToBeancount",o)}}function nh({params:e,loaderData:t}){const o=R(e),n=th(e),a=kl(n),r=w(o,ck(n)),s=t?.pageTitle??`${a?.name??n} CSV to Beancount`,i=t?.pageDesc??`Convert a ${a?.name??n} CSV export into balanced Beancount transactions in your browser.`,c=t?.faqs??[];return{meta:[{title:`${s} | ${$}`},{name:"description",content:i},...M({title:`${s} | ${$}`,description:i,canonicalUrl:r,locale:R(e),twitterTitle:s}),...G(s)],links:[{rel:"canonical",href:r}],scripts:q(Z([{name:$,url:w(o,"/")},{name:t?.toolsLabel??"Tools",url:w(o,"/tools")},{name:t?.converterLabel??"CSV to Beancount",url:w(o,"/tools/csv-to-beancount")},{name:s,url:r}]),...c.length>0?[me(c)]:[])}}const LN=()=>b(()=>import("./csv-to-beancount._bank-DjnAoMEt.js"),__vite__mapDeps([373,4,374,16,18,19,208,6,372,218,223,44,144,21,45,41,53,54,55,203,209,1,64,192,7])),CN=v("/($locale)/tools/csv-to-beancount/$bank")({loader:
118oh,head:nh,component:y(LN,"component")}),Sn="/bean-labs/research-logs",NN=()=>b(()=>import("./index-QOhfKCMn.js"),__vite__mapDeps([375,4,316,317,18,19,318,64,319,1,7])),IN=v("/($locale)/bean-labs/research-logs/")({loader:async({params:e,context:t})=>{const o=R(e),[n,{data:a,error:r}]=await Promise.all([uo(o),t.client.query({query:da,variables:{page:1,pageSize:Se},fetchPolicy:"network-only"})]);if(!a)throw r??new Error("ResearchLogPosts query returned no data");return{...a.researchLogPosts,sectionName:n}},head:({loaderData:e,params:t})=>{const o=e?.sectionName??Qe,n=`${o} | ${$}`;return{meta:[{title:n},{name:"description",content:eo},...M({title:n,description:eo,canonicalUrl:`${I}${Sn}`,locale:R(t),image:To})],scripts:q(...Vr({name:o,url:`${I}${Sn}`,description:eo,sectionUrl:`${I}${Sn}`,posts:e?.posts??[]})),links:[{rel:"canonical",href:`${I}${Sn}`}]}},component:y(NN,"component")}),FN=3;function ON(e){return e>=FN}const BN=Object.freeze({min:70,max:160}),xn=new Map;function MN(e){const t=xn.get(e);if(t)return t;const o=new Intl.DateTimeFormat(e,{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"});return xn.size>64&&xn.clear(),xn.set(e,o),o}function uM(e,t){const o=new Date(e);if(Number.isNaN(o.getTime()))return null;try{return MN(t).format(o)}catch{return o.toISOString().slice(0,10)}}function ah(e,t,o){if(!Number.isFinite(e))return String(e);try{return e.toLocaleString(t,o)}catch{return String(e)}}function qN(e,t,o){if(!Number.isFinite(e))return String(e);const n=t.length===4&&t.startsWith("M")?t.slice(1):t;try{return new Intl.NumberFormat(Nt(o),{style:"currency",currency:n,notation:"compact",compactDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:1}).format(e*1e6)}catch{return`${ah(e,o)} ${t}`}}function DN(e,t,o){return`${ah(e,o)} ${t}`}function dM(e,t,o){return{compact:qN(e,t,o),raw:DN(e,t,o)}}function UN(e,t){if(!Number.isFinite(e))return String(e);try{return new Intl.NumberFormat(Nt(t),{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}).format(e)}catch{return`${(e*100).toFixed(1)}%`}}function pM(e,t,o){return!Number.isFinite(t)||t===0||!Number.isFinite(e)?"—":UN(e/t,o)}function mM(e,t){if(t==null)return null;const o=e("theme.blog.post.readingTime.plurals",{readingTime:String(t)});if(!o.includes("|"))return o;const n=o.split("|");return t===1?n[0]:n[n.length-1]}function rh(e,t){const o=e("theme.blog.post.plurals",{count:String(t)});if(!o.includes("|"))return o;const n=o.split("|");return t===1?n[0]:n[n.length-1]}function De(e){return e!==void 0&&e>1?[{name:"robots",content:"noindex,follow"}]:[]}function va(e){return e!==void 0&&!ON(e)?[{name:"robots",content:"noindex,follow"}]:[]}const Kr={tags:{name:"theme.tags.tagsPageTitle",description:"blog.tags.browseByTopic"},authors:{name:"theme.blog.authorsList.pageTitle",description:"blog.authors.browseByAuthor"}},ka={tags:{name:"Tags",description:"Browse every Beancount.io post by topic: accounting, bookkeeping, tax and finance guides."},authors:{name:"Authors",description:"Browse Beancount.io posts by author: accounting, bookkeeping and finance guides."}};function sh(e,t,o){return{sectionName:e,listName:t,listTitle:`${t} | ${$} ${e}`,listDescription:o}}async function ue(e,t,o){const[n,a]=await Promise.all([t==="blog"?lo(e):uo(e),X(e)]),r=Kr[o],s=ka[o];return sh(n,Me(a,[r.name],s.name),Me(a,[r.description],s.description))}function de(e,t){const o=ka[t];return sh(e==="blog"?ht:Qe,o.name,o.description)}function Mt(e){const{names:t,url:o,homeUrl:n,sectionUrl:a,locale:r}=e;return{meta:[{title:t.listTitle},{name:"description",content:t.listDescription},...M({title:t.listTitle,description:t.listDescription,canonicalUrl:o,locale:r,image:To}
118)],scripts:q(...SL({url:o,homeUrl:n,sectionName:t.sectionName,listName:t.listName,sectionUrl:a})),links:[{rel:"canonical",href:o}]}}function ih(e,t){return[...e].length>=BN.min?e:`${/[.!?。!?]$/u.test(e)?e:`${e}.`} ${t}`}async function qt(e,t,o){const n=await X(e),a=(i,c)=>A(i,n,c),r=a("theme.blog.tagTitle",{nPosts:rh(a,t.count),tagName:t.label}),s=o&&o>1?` (${o})`:"";return{headline:r,title:`${r}${s} | ${$}`,description:ih(t.description||r,Me(n,[Kr.tags.description],ka.tags.description))}}async function Dt(e,t,o,n){const a=await X(e),r=(c,l)=>A(c,a,l),s=r("theme.blog.author.pageTitle",{authorName:t.name,nPosts:rh(r,o)}),i=n&&n>1?` (${n})`:"";return{headline:s,title:`${s}${i} | ${$}`,description:ih(t.title?`${t.name} — ${t.title}`:s,Me(a,[Kr.authors.description],ka.authors.description))}}const jN=()=>b(()=>import("./index-B8QoXG7x.js"),__vite__mapDeps([376,4,377,317,18,19,318,64,1,7])),VN=v("/($locale)/blog/tags/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:id,fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogTags query returned no data");const a=R(e),[r,s]=await Promise.all([Nr({data:{locale:a,tags:o.blogTags}}),ue(a,"blog","tags")]);return{tags:r,names:s}},head:({loaderData:e,params:t})=>Mt({locale:R(t),names:e?.names??de("blog","tags"),url:`${I}/blog/tags`,homeUrl:I,sectionUrl:`${I}/blog`}),component:y(jN,"component")}),KN=()=>b(()=>import("./index-DJfH4slY.js"),__vite__mapDeps([378,4,379,317,18,19,318,64,380,1,7])),zN=v("/($locale)/blog/authors/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:rd,fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogAuthors query returned no data");return{authors:o.blogAuthors,names:await ue(R(e),"blog","authors")}},head:({loaderData:e,params:t})=>Mt({locale:R(t),names:e?.names??de("blog","authors"),url:`${I}/blog/authors`,homeUrl:I,sectionUrl:`${I}/blog`}),component:y(KN,"component")});function Ue(e,t){return Math.max(1,Math.ceil(e/t))}const GN=()=>b(()=>import("./_pageNumber-DnWoJH6z.js"),__vite__mapDeps([381,4,316,317,18,19,318,64,319,1,7])),HN=v("/($locale)/blog/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const n=R(e),[a,{data:r,error:s}]=await Promise.all([lo(n),t.client.query({query:la,variables:{page:o,pageSize:Pe},fetchPolicy:"network-only"})]);if(!r)throw s??new Error("BlogPosts query returned no data");const i=Ue(r.blogPosts.totalCount,Pe);if(o>i)throw V();return{...r.blogPosts,sectionName:a}},head:({loaderData:e,params:t})=>{const o=e?.page??Number(t.pageNumber),n=R(t),a=e?.sectionName??ht,r=Oo({sectionName:a,description:Zt,canonicalUrl:`${I}/blog/page/${o}`,sectionUrl:`${I}/blog`,locale:n,page:o,posts:e?.posts??[]});return{...r,meta:[...r.meta,...De(o)]}},component:y(GN,"component")}),WN=()=>b(()=>import("./csv-to-beancount.index-C5g2CEBp.js"),__vite__mapDeps([382,371,4,372,18,19,218,223,44,208,6,144,21,45,41,53,54,55,203,207,16,209,1,64,192,7])),YN=v("/$locale/tools/csv-to-beancount/")({loader:Zm,head:eh,component:y(WN,"component")}),QN=()=>b(()=>import("./csv-to-beancount._bank-Cldg7xzK.js"),__vite__mapDeps([383,4,374,16,18,19,208,6,372,218,223,44,144,21,45,41,53,54,55,203,209,1,64,192,7])),XN=v("/$locale/tools/csv-to-beancount/$bank")({loader:oh,head:nh,component:y(QN,"component")}),hi="/bean-labs/research-logs",JN=()=>b(()=>import("./index-4C3UGiDy.js"),__vite__mapDeps([384,4,316,317,18,19,318,64,319,1,7])),ZN=v("/$locale/bean-labs/research-logs/")({loader:async({params:e,context:t})=>{const[o,n,{data:a,error:r}]=await Promise.all([uo(e.locale),Qm(e.locale),t.client.query({query:da,variables:{page:1,pageSize:Se},fetchPolicy:"network-only"})]);if(!a)throw r??new Error("ResearchLogPosts query returned no data");const s=await io({data:{locale:e.locale,posts:[...a.researchLogPosts.posts]}});return{...a.researchLogPosts,posts:s,sectionName:o,sectionDescription:n}},head:({loaderData:e,params:t})=>{const o=e?.sectionName??Qe,n=e?.sectionDescription??eo;return Oo({sectionName:o,description:n,canonicalUrl:w(t.locale,hi),sectionUrl:w(t.locale,hi),locale:t.locale,posts:e?.posts??[]})},component:y(JN,"component")}),eI=()=>b(()=>import("./index-DD45AWIU.js"),__vite__mapDeps([385,4,377,317,18,19,318,64,1,7])),tI=v("/$locale/blog/tags/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:id,fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogTags query returned no data");const[a,r]=await Promise.all([Nr({data:{locale:e.locale,tags:o.blogTags}}),ue(e.locale,"blog","tags")]);return{tags:a,names:r}},head:({loaderData:e,params:t})=>Mt({locale:t.locale,names:e?.names??de("blog","tags"),url:w(t.locale,"/blog/tags"),homeUrl:w(t.locale,"/"),sectionUrl:w(t.locale,"/blog")}),component:y(eI,"component")}),oI=()=>b(()=>import("./index-brtNTBeX.js"),__vite__mapDeps([386,4,379,317,18,19,318,64,380,1,7])),nI=v("/$locale/blog/authors/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:rd,fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogAuthors query returned no data");return{authors:o.blogAuthors,names:await ue(e.locale,"blog","authors")}},head:({loaderData:e,params:t})=>Mt({locale:t.locale,names:e?.names??de("blog","authors"),url:w(t.locale,"/blog/authors"),homeUrl:w(t.locale,"/"),sectionUrl:w(t.locale,"/blog")}),component:y(oI,"component")}),aI=()=>b(()=>import("./_pageNumber-eU6ghMwa.js"),__vite__mapDeps([387,4,316,317,18,19,318,64,319,1,7])),rI=v("/$locale/blog/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const[{data:n,error:a},r,s]=await Promise.all([t.client.query({query:la,variables:{page:o,pageSize:Pe},fetchPolicy:"network-only"}),lo(e.locale),Ym(e.locale)]);if(!n)throw a??new Error("BlogPosts query returned no data");const i=Ue(n.blogPosts.totalCount,Pe);if(o>i)throw V();const c=await ft({data:{locale:e.locale,posts:[...n.blogPosts.posts]}});return{...n.blogPosts,posts:c,sectionName:r,sectionDescription:s}},head:({loaderData:e,params:t})=>{const o=e?.page??Number(t.pageNumber),n=e?.sectionName??ht,a=e?.sectionDescription??Zt,r=Oo({sectionName:n,description:a,canonicalUrl:w(t.locale,`/blog/page/${o}`),sectionUrl:w(t.locale,"/blog"),locale:t.locale,page:o,posts:e?.posts??[]});return{...r,meta:[...r.meta,...De(o)]}},component:y(aI,"component")}),fi="/bean-labs/research-logs",sI=()=>b(()=>import("./index-Du-_sq5M.js"),__vite__mapDeps([388,4,377,317,18,19,318,64,1,7])),iI=v("/($locale)/bean-labs/research-logs/tags/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ud,fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogTags query returned no data");return{tags:o.researchLogTags,names:await ue(R(e),"research-logs","tags")}},head:({loaderData:e,params:t})=>Mt({locale:R(t),names:e?.names??de("research-logs","tags"),url:`${I}${fi}/tags`,homeUrl:I,sectionUrl:`${I}${fi}`}),component:y(sI,"component")}),gi="/bean-labs/research-logs",cI=()=>b(()=>import("./index-CbZLYCks.js"),__vite__mapDeps([389,4,379,317,18,19,318,64,380,1,7])),lI=v("/($locale)/bean-labs/research-logs/authors/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:cd,fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogAuthors query returned no data");return{authors:o.researchLogAuthors,names:await ue(R(e),"research-logs","authors")}},head:({loaderData:e,params:t})=>Mt({locale:R(t),names:e?.names??de("research-logs","authors"),url:`${I}${gi}/authors`,homeUrl:I,sectionUrl:`${I}${gi}`}),component:y(cI,"component")}),bi="/bean-labs/research-logs",uI=()=>b(()=>import("./_pageNumber-Bi9MuJHc.js"),__vite__mapDeps([390,4,316,317,18,19,318,64,319,1,7])),dI=v("/($locale)/bean-labs/research-logs/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const n=R(e),[a,{data:r,error:s}]=await Promise.all([uo(n),t.client.query({query:da,variables:{page:o,pageSize:Se},fetchPolicy:"network-only"})]);if(!r)throw s??new Error("ResearchLogPosts query returned no data");const i=Ue(r.researchLogPosts.totalCount,Se);if(o>i)throw V();return{...r.researchLogPosts,sectionName:a}},head:({loaderData:e,params:t})=>{const o=e?.page??Number(t.pageNumber),n=R(t),a=e?.sectionName??Qe,r=Oo({sectionName:a,description:eo,canonicalUrl:`${I}${bi}/page/${o}`,sectionUrl:`${I}${bi}`,locale:n,page:o,posts:e?.posts??[]});return{...r,meta:[...r.meta,...De(o)]}},component:y(uI,"component")}),pI=()=>b(()=>import("./index-D-qWML9P.js"),__vite__mapDeps([391,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),mI=v("/($locale)/blog/tags/$permalink/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:mn,variables:{permalink:e.permalink,page:1,pageSize:Pe},fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogTag query returned no data");if(!o.blogTag)throw V();const a=R(e);return{...o.blogTag,seo:await qt(a,o.blogTag.tag),names:await ue(a,"blog","tags")}},head:({loaderData:e,params:t})=>{const o=`${I}
118/blog/tags/${t.permalink}`,n=R(t),a=e?.names??de("blog","tags"),r=e?`Posts tagged "${e.tag.label}" | ${$} ${a.sectionName}`:`Tag | ${$} ${a.sectionName}`,s=e?.seo?.description??`Blog posts tagged with "${e?.tag.label??"this topic"}".`;return{meta:[{title:r},{name:"description",content:s},...e?G(e.tag.label):[],...M({title:r,description:s,canonicalUrl:o,locale:R(t)}),...va(e?.tag.count)],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:I,sectionName:a.sectionName,listName:a.listName,sectionUrl:`${I}/blog`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o},...Xm(n,"/blog",t.permalink,e?.tag.label??"")]}},component:y(pI,"component")}),hI=()=>b(()=>import("./index-CsqsL1pU.js"),__vite__mapDeps([393,4,394,317,18,19,318,64,319,380,1,7])),fI=v("/($locale)/blog/authors/$authorKey/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ca,variables:{key:e.authorKey,page:1,pageSize:Pe},fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogAuthor query returned no data");if(!o.blogAuthor)throw V();const a=R(e);return{...o.blogAuthor,seo:await Dt(a,o.blogAuthor.author,o.blogAuthor.posts.totalCount),names:await ue(a,"blog","authors")}},head:({loaderData:e,params:t})=>{const o=`${I}/blog/authors/${t.authorKey}`,n=e?.names??de("blog","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} | ${$}`,s=e?.seo?.description??`Blog posts written by ${a}.`;return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:R(t)})],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}/blog`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(hI,"component")}),yi="/bean-labs/research-logs",gI=()=>b(()=>import("./index-BJI2iaeX.js"),__vite__mapDeps([395,4,377,317,18,19,318,64,1,7])),bI=v("/$locale/bean-labs/research-logs/tags/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ud,fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogTags query returned no data");return{tags:o.researchLogTags,names:await ue(e.locale,"research-logs","tags")}},head:({loaderData:e,params:t})=>Mt({locale:t.locale,names:e?.names??de("research-logs","tags"),url:w(t.locale,`${yi}/tags`),homeUrl:w(t.locale,"/"),sectionUrl:w(t.locale,yi)}),component:y(gI,"component")}),vi="/bean-labs/research-logs",yI=()=>b(()=>import("./index-BmGz3IZw.js"),__vite__mapDeps([396,4,379,317,18,19,318,64,380,1,7])),vI=v("/$locale/bean-labs/research-logs/authors/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:cd,fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogAuthors query returned no data");return{authors:o.researchLogAuthors,names:await ue(e.locale,"research-logs","authors")}},head:({loaderData:e,params:t})=>Mt({locale:t.locale,names:e?.names??de("research-logs","authors"),url:w(t.locale,`${vi}/authors`),homeUrl:w(t.locale,"/"),sectionUrl:w(t.locale,vi)}),component:y(yI,"component")}),ki="/bean-labs/research-logs",kI=()=>b(()=>import("./_pageNumber-BoPsO9U-.js"),__vite__mapDeps([397,4,316,317,18,19,318,64,319,1,7])),$I=v("/$locale/bean-labs/research-logs/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const[{data:n,error:a},r,s]=await Promise.all([t.client.query({query:da,variables:{page:o,pageSize:Se},fetchPolicy:"network-only"}),uo(e.locale),Qm(e.locale)]);if(!n)throw a??new Error("ResearchLogPosts query returned no data");const i=Ue(n.researchLogPosts.totalCount,Se);if(o>i)throw V();const c=await io({data:{locale:e.locale,posts:[...n.researchLogPosts.posts]}});return{...n.researchLogPosts,posts:c,sectionName:r,sectionDescription:s}},head:({loaderData:e,params:t})=>{const o=e?.page??Number(t.pageNumber),n=e?.sectionName??Qe,a=e?.sectionDescription??eo,r=Oo({sectionName:n,description:a,canonicalUrl:w(t.locale,`${ki}/page/${o}`),sectionUrl:w(t.locale,ki),locale:t.locale,page:o,posts:e?.posts??[]});return{...r,meta:[...r.meta,...De(o)]}},component:y(kI,"component")}),_I=()=>b(()=>import("./index-3kJMflW-.js"),__vite__mapDeps([398,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),wI=v("/$locale/blog/tags/$permalink/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:mn,variables:{permalink:e.permalink,page:1,pageSize:Pe},fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogTag query returned no data");if(!o.blogTag)throw V();const a=o.blogTag.readingSequence??[],[r,s,i]=await Promise.all([ft({data:{locale:e.locale,posts:[...o.blogTag.posts.posts]}}),Lr({data:{locale:e.locale,tag:o.blogTag.tag}}),a.length>0?ft({data:{locale:e.locale,posts:a.map(u=>({...u.post}))}}):Promise.resolve([])]),c={...o.blogTag.tag,...s},l=await qt(e.locale,c),d=await ue(e.locale,"blog","tags");return{...o.blogTag,tag:c,posts:{...o.blogTag.posts,posts:r},readingSequence:a.map((u,h)=>({...u,post:i[h]??u.post}
118)),seo:l,names:d}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`/blog/tags/${t.permalink}`),n=e?.names??de("blog","tags"),a=e?.seo?.title??(e?`${e.tag.label} | ${$}`:`Tag | ${$}`),r=e?.seo?.description??e?.tag.description??"";return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:t.locale}),...va(e?.tag.count)],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,"/blog"),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o},...Xm(t.locale,"/blog",t.permalink,e?.tag.label??"")]}},component:y(_I,"component")}),RI=()=>b(()=>import("./index-CVCqKSFz.js"),__vite__mapDeps([399,4,394,317,18,19,318,64,319,380,1,7])),PI=v("/$locale/blog/authors/$authorKey/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ca,variables:{key:e.authorKey,page:1,pageSize:Pe},fetchPolicy:"network-only"});if(!o)throw n??new Error("BlogAuthor query returned no data");if(!o.blogAuthor)throw V();const[a,r]=await Promise.all([ft({data:{locale:e.locale,posts:[...o.blogAuthor.posts.posts]}}),Ir({data:{locale:e.locale,author:o.blogAuthor.author}})]),s={...o.blogAuthor.author,...r},i=await Dt(e.locale,s,o.blogAuthor.posts.totalCount),c=await ue(e.locale,"blog","authors");return{...o.blogAuthor,author:s,posts:{...o.blogAuthor.posts,posts:a},seo:i,names:c}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`/blog/authors/${t.authorKey}`),n=e?.names??de("blog","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} | ${$}`,s=e?.seo?.description??"";return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:t.locale})],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,"/blog"),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(RI,"component")}),$i="/bean-labs/research-logs",SI=()=>b(()=>import("./index-DxJeNcU2.js"),__vite__mapDeps([400,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),xI=v("/($locale)/bean-labs/research-logs/tags/$permalink/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:pa,variables:{permalink:e.permalink,page:1,pageSize:Se},fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogTag query returned no data");if(!o.researchLogTag)throw V();const a=R(e);return{...o.researchLogTag,seo:await qt(a,o.researchLogTag.tag),names:await ue(a,"research-logs","tags")}},head:({loaderData:e,params:t})=>{const o=`${I}${$i}/tags/${t.permalink}`,n=e?.names??de("research-logs","tags"),a=e?`Posts tagged "${e.tag.label}" | ${$} ${n.sectionName}`:`Tag | ${$} ${n.sectionName}`,r=e?.seo?.description??`Research log posts tagged with "${e?.tag.label??"this topic"}".`;return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:R(t)}),...va(e?.tag.count)],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}${$i}`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(SI,"component")}),_i="/bean-labs/research-logs",TI=()=>b(()=>import("./index-BwNc0cql.js"),__vite__mapDeps([401,4,394,317,18,19,318,64,319,380,1,7])),EI=v("/($locale)/bean-labs/research-logs/authors/$authorKey/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ua,variables:{key:e.authorKey,page:1,pageSize:Se},fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogAuthor query returned no data");if(!o.researchLogAuthor)throw V();const a=R(e);return{...o.researchLogAuthor,seo:await Dt(a,o.researchLogAuthor.author,o.researchLogAuthor.posts.totalCount),names:await ue(a,"research-logs","authors")}},head:({loaderData:e,params:t})=>{const o=`${I}${_i}/authors/${t.authorKey}`,n=e?.names??de("research-logs","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} | ${$}`,s=e?.seo?.description??`Research log posts written by ${a}.`;return{meta:[{title:r},{name:"description",content:s}
118,...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:R(t)})],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}${_i}`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(TI,"component")}),AI=()=>b(()=>import("./_pageNumber-CVBhsgy0.js"),__vite__mapDeps([402,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),LI=v("/($locale)/blog/tags/$permalink/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:mn,variables:{permalink:e.permalink,page:o,pageSize:Pe},fetchPolicy:"network-only"});if(!n)throw a??new Error("BlogTag query returned no data");if(!n.blogTag)throw V();const r=Ue(n.blogTag.posts.totalCount,Pe);if(o>r)throw V();const s=R(e);return{...n.blogTag,seo:await qt(s,n.blogTag.tag,Number(e.pageNumber)),names:await ue(s,"blog","tags")}},head:({loaderData:e,params:t})=>{const o=`${I}/blog/tags/${t.permalink}/page/${t.pageNumber}`,n=e?.names??de("blog","tags"),a=e?`Posts tagged "${e.tag.label}" — Page ${e.posts.page} | ${$} ${n.sectionName}`:`Tag | ${$} ${n.sectionName}`,r=e?.seo?.description??`Blog posts tagged with "${e?.tag.label??"this topic"}".`;return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:R(t)}),...De(Number(t.pageNumber))],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}/blog`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(AI,"component")}),CI=()=>b(()=>import("./_pageNumber-9nj6UEAX.js"),__vite__mapDeps([403,4,394,317,18,19,318,64,319,380,1,7])),NI=v("/($locale)/blog/authors/$authorKey/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:ca,variables:{key:e.authorKey,page:o,pageSize:Pe},fetchPolicy:"network-only"});if(!n)throw a??new Error("BlogAuthor query returned no data");if(!n.blogAuthor)throw V();const r=Ue(n.blogAuthor.posts.totalCount,Pe);if(o>r)throw V();const s=R(e);return{...n.blogAuthor,seo:await Dt(s,n.blogAuthor.author,n.blogAuthor.posts.totalCount,Number(e.pageNumber)),names:await ue(s,"blog","authors")}},head:({loaderData:e,params:t})=>{const o=`${I}/blog/authors/${t.authorKey}/page/${t.pageNumber}`,n=e?.names??de("blog","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} (${e?.posts.page??t.pageNumber}) | ${$}`,s=e?.seo?.description??`Blog posts written by ${a}.`;return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:R(t)}),...De(Number(t.pageNumber))],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}/blog`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(CI,"component")}),II=()=>b(()=>import("./_slug-BCuQYw3I.js"),__vite__mapDeps([404,4,1,7])),FI=()=>b(()=>import("./_slug-B7xBY43L.js"),__vite__mapDeps([405,4,406,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,73,305,24,54,55,22,18,380,7])),OI=v("/($locale)/blog/$year/$month/$day/$slug")({loader:async({params:e,context:t})=>{const o=R(e),n={year:e.year,month:e.month,day:e.day,slug:e.slug},[a,r,s]=await Promise.all([lo(o),pn({data:n}),o===ae?Promise.resolve(null):Ao(()=>Er({data:{...e,locale:o}}),"getLocalizedBlogPostFn",{locale:o,...e})]);if(s)return{...s,sectionName:a,translatedLocales:r};const{data:i,error:c}=await t.client.query({query:sd,variables:e,fetchPolicy:"no-cache"});if(!i)throw c??new Error("BlogPost query returned no data");if(!i.blogPost)throw V();return{...i.blogPost,sectionName:a,translatedLocales:r}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.sectionName??ht;if(!o)return{meta:[{title:`Blog | ${$}`}]};const a=`${I}
118/blog/${t.year}/${t.month}/${t.day}/${t.slug}`,r=ta(o),s=ba(o);return{meta:[{title:ga(s)},{name:"description",content:o.description},...Ft({locale:R(t),title:s,description:o.description,canonicalUrl:a,image:r,twitterImage:r})],scripts:q(...oa({meta:o,url:a,homeUrl:I,sectionName:n,sectionUrl:`${I}/blog`})),links:[{rel:"canonical",href:a},...e?.hasMath?[Eo]:[]]}},component:y(FI,"component"),errorComponent:y(II,"errorComponent")}),wi="/bean-labs/research-logs",BI=()=>b(()=>import("./index-8tUgbRJc.js"),__vite__mapDeps([407,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),MI=v("/$locale/bean-labs/research-logs/tags/$permalink/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:pa,variables:{permalink:e.permalink,page:1,pageSize:Se},fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogTag query returned no data");if(!o.researchLogTag)throw V();const[a,r]=await Promise.all([io({data:{locale:e.locale,posts:[...o.researchLogTag.posts.posts]}}),Cr({data:{locale:e.locale,tag:o.researchLogTag.tag}})]),s={...o.researchLogTag.tag,...r},i=await qt(e.locale,s),c=await ue(e.locale,"research-logs","tags");return{...o.researchLogTag,tag:s,posts:{...o.researchLogTag.posts,posts:a},seo:i,names:c}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`${wi}/tags/${t.permalink}`),n=e?.names??de("research-logs","tags"),a=e?.seo?.title??(e?`${e.tag.label} | ${$} ${n.sectionName}`:`Tag | ${$} ${n.sectionName}`),r=e?.seo?.description??e?.tag.description??"";return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:t.locale}),...va(e?.tag.count)],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,wi),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(BI,"component")}),Ri="/bean-labs/research-logs",qI=()=>b(()=>import("./index-BEkqe8Ab.js"),__vite__mapDeps([408,4,394,317,18,19,318,64,319,380,1,7])),DI=v("/$locale/bean-labs/research-logs/authors/$authorKey/")({loader:async({params:e,context:t})=>{const{data:o,error:n}=await t.client.query({query:ua,variables:{key:e.authorKey,page:1,pageSize:Se},fetchPolicy:"network-only"});if(!o)throw n??new Error("ResearchLogAuthor query returned no data");if(!o.researchLogAuthor)throw V();const[a,r]=await Promise.all([io({data:{locale:e.locale,posts:[...o.researchLogAuthor.posts.posts]}}),Fr({data:{locale:e.locale,author:o.researchLogAuthor.author}})]),s={...o.researchLogAuthor.author,...r},i=await Dt(e.locale,s,o.researchLogAuthor.posts.totalCount),c=await ue(e.locale,"research-logs","authors");return{...o.researchLogAuthor,author:s,posts:{...o.researchLogAuthor.posts,posts:a},seo:i,names:c}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`${Ri}/authors/${t.authorKey}`),n=e?.names??de("research-logs","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} | ${$}`,s=e?.seo?.description??"";return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:t.locale})],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,Ri),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(qI,"component")}),UI=()=>b(()=>import("./_pageNumber-CRCHZHTt.js"),__vite__mapDeps([409,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),jI=v("/$locale/blog/tags/$permalink/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:mn,variables:{permalink:e.permalink,page:o,pageSize:Pe},fetchPolicy:"network-only"});if(!n)throw a??new Error("BlogTag query returned no data");if(!n.blogTag)throw V();const r=Ue(n.blogTag.posts.totalCount,Pe);if(o>r)throw V();const[s,i]=await Promise.all([ft({data:{locale:e.locale,posts:[...n.blogTag.posts.posts]}}),Lr({data:{locale:e.locale,tag:n.blogTag.tag}})]),c={...n.blogTag.tag,...i},l=await qt(e.locale,c,n.blogTag.posts.page),d=await ue(e.locale,"blog","tags");return{...n.blogTag,tag:c,posts:{...n.blogTag.posts,posts:s}
118,seo:l,names:d}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`/blog/tags/${t.permalink}/page/${t.pageNumber}`),n=e?.names??de("blog","tags"),a=e?.seo?.title??(e?`${e.tag.label} | ${$}`:`Tag | ${$}`),r=e?.seo?.description??e?.tag.description??"";return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:t.locale}),...De(Number(t.pageNumber))],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,"/blog"),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(UI,"component")}),VI=()=>b(()=>import("./_pageNumber-BppV8Wix.js"),__vite__mapDeps([410,4,394,317,18,19,318,64,319,380,1,7])),KI=v("/$locale/blog/authors/$authorKey/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:ca,variables:{key:e.authorKey,page:o,pageSize:Pe},fetchPolicy:"network-only"});if(!n)throw a??new Error("BlogAuthor query returned no data");if(!n.blogAuthor)throw V();const r=Ue(n.blogAuthor.posts.totalCount,Pe);if(o>r)throw V();const[s,i]=await Promise.all([ft({data:{locale:e.locale,posts:[...n.blogAuthor.posts.posts]}}),Ir({data:{locale:e.locale,author:n.blogAuthor.author}})]),c={...n.blogAuthor.author,...i},l=await Dt(e.locale,c,n.blogAuthor.posts.totalCount,n.blogAuthor.posts.page),d=await ue(e.locale,"blog","authors");return{...n.blogAuthor,author:c,posts:{...n.blogAuthor.posts,posts:s},seo:l,names:d}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`/blog/authors/${t.authorKey}/page/${t.pageNumber}`),n=e?.names??de("blog","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} (${e?.posts.page??t.pageNumber}) | ${$}`,s=e?.seo?.description??"";return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:t.locale}),...De(Number(t.pageNumber))],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,"/blog"),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(VI,"component")}),zI=()=>b(()=>import("./_slug-BORuq-JO.js"),__vite__mapDeps([411,4,1,7])),GI=()=>b(()=>import("./_slug-K7SFhS5R.js"),__vite__mapDeps([412,4,406,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,73,305,24,54,55,22,18,380,7])),HI=v("/$locale/blog/$year/$month/$day/$slug")({loader:async({params:e,context:t})=>{const o=e.locale,n={year:e.year,month:e.month,day:e.day,slug:e.slug},[a,r,s]=await Promise.all([lo(o),Ao(()=>Er({data:{...e,locale:o}}),"getLocalizedBlogPostFn",{...e,locale:o}),pn({data:n})]);if(r)return{...r,sectionName:a,translatedLocales:s,isFallback:!1};const{year:i,month:c,day:l,slug:d}=e,{data:u,error:h}=await t.client.query({query:sd,variables:{year:i,month:c,day:l,slug:d},fetchPolicy:"no-cache"});if(!u)throw h??new Error("BlogPost query returned no data");if(!u.blogPost)throw V();return{...u.blogPost,sectionName:a,translatedLocales:s,isFallback:!0}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.sectionName??ht;if(!o)return{meta:[{title:`${ht} | ${$}`}]};const a=`/blog/${t.year}/${t.month}/${t.day}/${t.slug}`,r=Hm(t.locale,a,e?.isFallback===!0),s=ta(o),i=ba(o);return{meta:[{title:ga(i)},{name:"description",content:o.description},...Ft({locale:t.locale,title:i,description:o.description,canonicalUrl:r,image:s,twitterImage:s})],scripts:q(...oa({meta:o,url:r,homeUrl:w(t.locale,"/"),sectionName:n,sectionUrl:w(t.locale,"/blog")})),links:[{rel:"canonical",href:r},...e?.hasMath?[Eo]:[]]}},component:y(GI,"component"),errorComponent:y(zI,"errorComponent")}),Pi="/bean-labs/research-logs",WI=()=>b(()=>import("./_pageNumber-dgLGbRpj.js"),__vite__mapDeps([413,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),YI=v("/($locale)/bean-labs/research-logs/tags/$permalink/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}
118=await t.client.query({query:pa,variables:{permalink:e.permalink,page:o,pageSize:Se},fetchPolicy:"network-only"});if(!n)throw a??new Error("ResearchLogTag query returned no data");if(!n.researchLogTag)throw V();const r=Ue(n.researchLogTag.posts.totalCount,Se);if(o>r)throw V();const s=R(e);return{...n.researchLogTag,seo:await qt(s,n.researchLogTag.tag,Number(e.pageNumber)),names:await ue(s,"research-logs","tags")}},head:({loaderData:e,params:t})=>{const o=`${I}${Pi}/tags/${t.permalink}/page/${t.pageNumber}`,n=e?.names??de("research-logs","tags"),a=e?`Posts tagged "${e.tag.label}" — Page ${e.posts.page} | ${$} ${n.sectionName}`:`Tag | ${$} ${n.sectionName}`,r=e?.seo?.description??`Research log posts tagged with "${e?.tag.label??"this topic"}".`;return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:R(t)}),...De(Number(t.pageNumber))],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}${Pi}`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(WI,"component")}),Si="/bean-labs/research-logs",QI=()=>b(()=>import("./_pageNumber-2oQMWjo7.js"),__vite__mapDeps([414,4,394,317,18,19,318,64,319,380,1,7])),XI=v("/($locale)/bean-labs/research-logs/authors/$authorKey/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:ua,variables:{key:e.authorKey,page:o,pageSize:Se},fetchPolicy:"network-only"});if(!n)throw a??new Error("ResearchLogAuthor query returned no data");if(!n.researchLogAuthor)throw V();const r=Ue(n.researchLogAuthor.posts.totalCount,Se);if(o>r)throw V();const s=R(e);return{...n.researchLogAuthor,seo:await Dt(s,n.researchLogAuthor.author,n.researchLogAuthor.posts.totalCount,Number(e.pageNumber)),names:await ue(s,"research-logs","authors")}},head:({loaderData:e,params:t})=>{const o=`${I}${Si}/authors/${t.authorKey}/page/${t.pageNumber}`,n=e?.names??de("research-logs","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} (${e?.posts.page??t.pageNumber}) | ${$}`,s=e?.seo?.description??`Research log posts written by ${a}.`;return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:R(t)}),...De(Number(t.pageNumber))],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:I,sectionName:n.sectionName,listName:n.listName,sectionUrl:`${I}${Si}`,posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(QI,"component")}),xi="/bean-labs/research-logs",JI=["arxiv.org","openreview.net","aclanthology.org","semanticscholar.org","neurips.cc","doi.org"];function ZI(e){const t=e.toLowerCase();return JI.some(o=>t===o||t.endsWith(`.${o}`))}function ch(e){if(!e?.length)return[];const t=[];for(const o of e)try{const{hostname:n}=new URL(o);ZI(n)&&t.push(o)}catch{}return t}const e1=()=>b(()=>import("./_slug-puiyy5Xm.js"),__vite__mapDeps([415,4,1,7])),t1=()=>b(()=>import("./_slug-Bmd04gsw.js"),__vite__mapDeps([416,4,406,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,73,305,24,54,55,22,18,380,7])),o1=v("/($locale)/bean-labs/research-logs/$year/$month/$day/$slug")({loader:async({params:e,context:t})=>{const o=R(e),n={year:e.year,month:e.month,day:e.day,slug:e.slug,instance:"research-logs"},[a,r,s,i]=await Promise.all([uo(o),Wm(o),pn({data:n}),o===ae?Promise.resolve(null):Ao(()=>Ar({data:{...e,locale:o}}),"getLocalizedResearchLogPostFn",{locale:o,...e})]);if(i)return{...i,sectionName:a,hubName:r,translatedLocales:s};const{data:c,error:l}=await t.client.query({query:ld,variables:e,fetchPolicy:"network-only"});if(!c)throw l??new Error("ResearchLogPost query returned no data");if(!c.researchLogPost)throw V();return{...c.researchLogPost,sectionName:a,hubName:r,translatedLocales:s}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.sectionName??Qe,a=e?.hubName??"Bean Labs";if(!o)return{meta:[{title:`${Qe} | ${$}`}]};const r=`${I}
118${xi}/${t.year}/${t.month}/${t.day}/${t.slug}`,s=ta(o),i=ba(o);return{meta:[{title:ga(i)},{name:"description",content:o.description},...Ft({locale:R(t),title:i,description:o.description,canonicalUrl:r,image:s,twitterImage:s})],scripts:q(...oa({meta:o,url:r,homeUrl:I,sectionName:n,sectionUrl:`${I}${xi}`,hub:{name:a,url:`${I}/bean-labs`},citations:ch(o.sources)})),links:[{rel:"canonical",href:r},...e?.hasMath?[Eo]:[]]}},component:y(t1,"component"),errorComponent:y(e1,"errorComponent")}),Ti="/bean-labs/research-logs",n1=()=>b(()=>import("./_pageNumber-BFmerDkj.js"),__vite__mapDeps([417,4,392,317,18,19,318,64,319,44,6,42,21,312,125,1,7])),a1=v("/$locale/bean-labs/research-logs/tags/$permalink/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:pa,variables:{permalink:e.permalink,page:o,pageSize:Se},fetchPolicy:"network-only"});if(!n)throw a??new Error("ResearchLogTag query returned no data");if(!n.researchLogTag)throw V();const r=Ue(n.researchLogTag.posts.totalCount,Se);if(o>r)throw V();const[s,i]=await Promise.all([io({data:{locale:e.locale,posts:[...n.researchLogTag.posts.posts]}}),Cr({data:{locale:e.locale,tag:n.researchLogTag.tag}})]),c={...n.researchLogTag.tag,...i},l=await qt(e.locale,c,n.researchLogTag.posts.page),d=await ue(e.locale,"research-logs","tags");return{...n.researchLogTag,tag:c,posts:{...n.researchLogTag.posts,posts:s},seo:l,names:d}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`${Ti}/tags/${t.permalink}/page/${t.pageNumber}`),n=e?.names??de("research-logs","tags"),a=e?.seo?.title??(e?`${e.tag.label} | ${$} ${n.sectionName}`:`Tag | ${$} ${n.sectionName}`),r=e?.seo?.description??e?.tag.description??"";return{meta:[{title:a},{name:"description",content:r},...e?G(e.tag.label):[],...M({title:a,description:r,canonicalUrl:o,locale:t.locale}),...De(Number(t.pageNumber))],scripts:e?q(...Ot({label:e.tag.label,url:o,description:e.tag.description||void 0,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,Ti),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(n1,"component")}),Ei="/bean-labs/research-logs",r1=()=>b(()=>import("./_pageNumber-C8i2U_xq.js"),__vite__mapDeps([418,4,394,317,18,19,318,64,319,380,1,7])),s1=v("/$locale/bean-labs/research-logs/authors/$authorKey/page/$pageNumber")({loader:async({params:e,context:t})=>{const o=Number(e.pageNumber);if(!Number.isInteger(o)||o<2)throw V();const{data:n,error:a}=await t.client.query({query:ua,variables:{key:e.authorKey,page:o,pageSize:Se},fetchPolicy:"network-only"});if(!n)throw a??new Error("ResearchLogAuthor query returned no data");if(!n.researchLogAuthor)throw V();const r=Ue(n.researchLogAuthor.posts.totalCount,Se);if(o>r)throw V();const[s,i]=await Promise.all([io({data:{locale:e.locale,posts:[...n.researchLogAuthor.posts.posts]}}),Fr({data:{locale:e.locale,author:n.researchLogAuthor.author}})]),c={...n.researchLogAuthor.author,...i},l=await Dt(e.locale,c,n.researchLogAuthor.posts.totalCount,n.researchLogAuthor.posts.page),d=await ue(e.locale,"research-logs","authors");return{...n.researchLogAuthor,author:c,posts:{...n.researchLogAuthor.posts,posts:s},seo:l,names:d}},head:({loaderData:e,params:t})=>{const o=w(t.locale,`${Ei}/authors/${t.authorKey}/page/${t.pageNumber}`),n=e?.names??de("research-logs","authors"),a=e?.author.name??"Author",r=e?.seo?.title??`${a} (${e?.posts.page??t.pageNumber}) | ${$}`,s=e?.seo?.description??"";return{meta:[{title:r},{name:"description",content:s},...e?G(e.author.name):[],...M({title:r,description:s,canonicalUrl:o,locale:t.locale}),...De(Number(t.pageNumber))],scripts:e?q(...Bt({author:e.author,name:e.seo?.headline??e.author.name,url:o,description:s,homeUrl:w(t.locale,"/"),sectionName:n.sectionName,listName:n.listName,sectionUrl:w(t.locale,Ei),posts:e.posts.posts})):void 0,links:[{rel:"canonical",href:o}]}},component:y(r1,"component")}),Ai="/bean-labs/research-logs",i1=()=>b(()=>import("./_slug-BFfFWEGN.js"),__vite__mapDeps([419,4,1,7])),c1=()=>b(()=>import("./_slug-r0hqiG-3.js"),__vite__mapDeps([420,4,406,38,1,39,6,40,41,30,42,43,44,21,45,16,311,312,313,19,60,314,73,305,24,54,55,22,18,380,7])),l1=v("/$locale/bean-labs/research-logs/$year/$month/$day/$slug")({loader:async({params:e,context:t})=>{const o=e.locale,n={year:e.year,month:e.month,day:e.day,slug:e.slug,instance:"research-logs"},[a,r,s,i]=await Promise.all([uo(o),Wm(o),Ao(()=>Ar({data:{...e,locale:o}}),"getLocalizedResearchLogPostFn",{...e,locale:o}),pn({data:n})]);if(s)return{...s,sectionName:a,hubName:r,translatedLocales:i,isFallback:!1};const{year:c,month:l,day:d,slug:u}=e,{data:h,error:f}=await t.client.query({query:ld,variables:{year:c,month:l,day:d,slug:u},fetchPolicy:"network-only"});if(!h)throw f??new Error("ResearchLogPost query returned no data");
118if(!h.researchLogPost)throw V();return{...h.researchLogPost,sectionName:a,hubName:r,translatedLocales:i,isFallback:!0}},head:({loaderData:e,params:t})=>{const o=e?.meta,n=e?.sectionName??Qe,a=e?.hubName??"Bean Labs";if(!o)return{meta:[{title:`${Qe} | ${$}`}]};const r=`${Ai}/${t.year}/${t.month}/${t.day}/${t.slug}`,s=Hm(t.locale,r,e?.isFallback===!0),i=ta(o),c=ba(o);return{meta:[{title:ga(c)},{name:"description",content:o.description},...Ft({locale:t.locale,title:c,description:o.description,canonicalUrl:s,image:i,twitterImage:i})],scripts:q(...oa({meta:o,url:s,homeUrl:w(t.locale,"/"),sectionName:n,sectionUrl:w(t.locale,Ai),hub:{name:a,url:w(t.locale,"/bean-labs")},citations:ch(o.sources)})),links:[{rel:"canonical",href:s},...e?.hasMath?[Eo]:[]]}},component:y(c1,"component"),errorComponent:y(i1,"errorComponent")}),O=tR.update({id:"/($locale)",getParentRoute:()=>ea}),B=oR.update({id:"/$locale",path:"/$locale",getParentRoute:()=>ea}),u1=FR.update({id:"/",path:"/",getParentRoute:()=>O}),d1=UR.update({id:"/tracking",path:"/tracking",getParentRoute:()=>O}),p1=GR.update({id:"/terms-of-service",path:"/terms-of-service",getParentRoute:()=>O}),m1=YR.update({id:"/smart-import",path:"/smart-import",getParentRoute:()=>O}),h1=tP.update({id:"/security",path:"/security",getParentRoute:()=>O}),f1=nP.update({id:"/reads-and-finds",path:"/reads-and-finds",getParentRoute:()=>O}),g1=iP.update({id:"/privacy-policy",path:"/privacy-policy",getParentRoute:()=>O}),b1=vP.update({id:"/pricing",path:"/pricing",getParentRoute:()=>O}),y1=SP.update({id:"/open-ledger",path:"/open-ledger",getParentRoute:()=>O}),v1=NP.update({id:"/mcp",path:"/mcp",getParentRoute:()=>O}),k1=BP.update({id:"/live-prices",path:"/live-prices",getParentRoute:()=>O}),$1=DP.update({id:"/link-accounts",path:"/link-accounts",getParentRoute:()=>O}),_1=zP.update({id:"/git",path:"/git",getParentRoute:()=>O}),w1=XP.update({id:"/for-professionals",path:"/for-professionals",getParentRoute:()=>O}),R1=nS.update({id:"/for-couples",path:"/for-couples",getParentRoute:()=>O}),P1=lS.update({id:"/for-ai-agents",path:"/for-ai-agents",getParentRoute:()=>O}),S1=pS.update({id:"/fava",path:"/fava",getParentRoute:()=>O}),x1=bS.update({id:"/faq",path:"/faq",getParentRoute:()=>O}),T1=$S.update({id:"/download",path:"/download",getParentRoute:()=>O}),E1=SS.update({id:"/demo",path:"/demo",getParentRoute:()=>O}),A1=AS.update({id:"/contact",path:"/contact",getParentRoute:()=>O}),L1=OS.update({id:"/changelog",path:"/changelog",getParentRoute:()=>O}),C1=DS.update({id:"/brand-assets",path:"/brand-assets",getParentRoute:()=>O}),N1=zS.update({id:"/beancount-ios",path:"/beancount-ios",getParentRoute:()=>O}),I1=WS.update({id:"/beancount-cloud",path:"/beancount-cloud",getParentRoute:()=>O}),F1=ZS.update({id:"/beancount-android",path:"/beancount-android",getParentRoute:()=>O}),O1=tx.update({id:"/bank-sync",path:"/bank-sync",getParentRoute:()=>O}),B1=rx.update({id:"/awesome-plain-text-accounting",path:"/awesome-plain-text-accounting",getParentRoute:()=>O}),M1=cx.update({id:"/awesome-beancount",path:"/awesome-beancount",getParentRoute:()=>O}),q1=gx.update({id:"/assistant",path:"/assistant",getParentRoute:()=>O}),D1=bx.update({id:"/api-reference",path:"/api-reference",getParentRoute:()=>O}),U1=vx.update({id:"/ai",path:"/ai",getParentRoute:()=>O}),j1=wx.update({id:"/affiliate",path:"/affiliate",getParentRoute:()=>O}),V1=xx.update({id:"/about-us",path:"/about-us",getParentRoute:()=>O}),hn=Ex.update({id:"/docs",path:"/docs",getParentRoute:()=>O}),Ze=Lx.update({id:"/blog",path:"/blog",getParentRoute:()=>O}),K1=Nx.update({id:"/",path:"/",getParentRoute:()=>B}),z1=Fx.update({id:"/tracking",path:"/tracking",getParentRoute:()=>B}),G1=qx.update({id:"/terms-of-service",path:"/terms-of-service",getParentRoute:()=>B}),H1=Ux.update({id:"/smart-import",path:"/smart-import",getParentRoute:()=>B}),W1=Vx.update({id:"/security",path:"/security",getParentRoute:()=>B}),Y1=zx.update({id:"/reads-and-finds",path:"/reads-and-finds",getParentRoute:()=>B}),Q1=Yx.update({id:"/privacy-policy",path:"/privacy-policy",getParentRoute:()=>B}),X1=Xx.update({id:"/pricing",path:"/pricing",getParentRoute:()=>B}),J1=tT.update({id:"/open-ledger",path:"/open-ledger",getParentRoute:()=>B}),Z1=nT.update({id:"/mcp",path:"/mcp",getParentRoute:()=>B}),eF=rT.update({id:"/live-prices",path:"/live-prices",getParentRoute:()=>B}),tF=iT.update({id:"/link-accounts",path:"/link-accounts",getParentRoute:()=>B}),oF=lT.update({id:"/git",path:"/git",getParentRoute:()=>B}),nF=dT.update({id:"/for-professionals",path:"/for-professionals",getParentRoute:()=>B}),aF=mT.update({id:"/for-couples",path:"/for-couples",getParentRoute:()=>B}),rF=fT.update({id:"/for-ai-agents",path:"/for-ai-agents",getParentRoute:()=>B}),sF=bT.update({id:"/fava",path:"/fava",getParentRoute:()=>B}),iF=_T.update({id:"/faq",path:"/faq",getParentRoute:()=>B}),cF=RT.update({id:"/download",path:"/download",getParentRoute:()=>B}),lF=ET.update({id:"/demo",path:"/demo",getParentRoute:()=>B}),uF=NT.update({id:"/contact",path:"/contact",getParentRoute:()=>B}),dF=FT.update({id:"/changelog",path:"/changelog",getParentRoute:()=>B}),pF=BT.update({id:"/brand-assets",path:"/brand-assets",getParentRoute:()=>B}),mF=qT.update({id:"/beancount-ios",path:"/beancount-ios",getParentRoute:()=>B}),hF=UT.update({id:"/beancount-cloud",path:"/beancount-cloud",getParentRoute:()=>B}),fF=VT.update({id:"/beancount-android",path:"/beancount-android",getParentRoute:()=>B}),gF=zT.update({id:"/bank-sync",path:"/bank-sync",getParentRoute:()=>B}),bF=HT.update({id:"/awesome-plain-text-accounting",path:"/awesome-plain-text-accounting",getParentRoute:()=>B}),yF=QT.update({id:"/awesome-beancount",path:"/awesome-beancount",getParentRoute:()=>B}),vF=JT.update({id:"/assistant",path:"/assistant",getParentRoute:()=>B}),kF=ZT.update({id:"/api-reference",path:"/api-reference",getParentRoute:()=>B}),$F=t0.update({id:"/ai",path:"/ai",getParentRoute:()=>B}),_F=n0.update({id:"/affiliate",path:"/affiliate",getParentRoute:()=>B}),wF=r0.update({id:"/about-us",path:"/about-us",getParentRoute:()=>B}),fn=i0.update({id:"/docs",path:"/docs",getParentRoute:()=>B}),et=l0.update({id:"/blog",path:"/blog",getParentRoute:()=>B}),RF=v0.update({id:"/tools/",path:"/tools/",getParentRoute:()=>O}),PF=w0.update({id:"/founder-resources/",path:"/founder-resources/",getParentRoute:()=>O}),SF=P0.update({id:"/compare/",path:"/compare/",getParentRoute:()=>O}),xF=E0.update({id:"/bean-labs/",path:"/bean-labs/",getParentRoute:()=>O}),TF=I0.update({id:"/tools/year-over-year-growth-calculator",path:"/tools/year-over-year-growth-calculator",getParentRoute:()=>O}),EF=q0.update({id:"/tools/trial-balance",path:"/tools/trial-balance",getParentRoute:()=>O}),AF=Y0.update({id:"/tools/straight-line-depreciation-calculator",path:"/tools/straight-line-depreciation-calculator",getParentRoute:()=>O}),LF=eE.update({id:"/tools/receivables-turnover-calculator",path:"/tools/receivables-turnover-calculator",getParentRoute:()=>O}),CF=sE.update({id:"/tools/ofx-to-beancount",path:"/tools/ofx-to-beancount",getParentRoute:()=>O}),NF=dE.update({id:"/tools/menu-engineering-calculator",path:"/tools/menu-engineering-calculator",getParentRoute:()=>O}),IF=gE.update({id:"/tools/margin-markup-calculator",path:"/tools/margin-markup-calculator",getParentRoute:()=>O}),FF=_E.update({id:"/tools/ledger-to-beancount",path:"/tools/ledger-to-beancount",getParentRoute:()=>O}),OF=xE.update({id:"/tools/invoice-email",path:"/tools/invoice-email",getParentRoute:()=>O}),BF=CE.update({id:"/tools/expense-report",path:"/tools/expense-report",getParentRoute:()=>O}),MF=BE.update({id:"/tools/debt-coverage-calculator",path:"/tools/debt-coverage-calculator",getParentRoute:()=>O}),qF=jE.update({id:"/tools/customer-concentration-report",path:"/tools/customer-concentration-report",getParentRoute:()=>O}),DF=HE.update({id:"/tools/break-even-calculator",path:"/tools/break-even-calculator",getParentRoute:()=>O}),UF=JE.update({id:"/tools/ar-aging-report",path:"/tools/ar-aging-report",getParentRoute:()=>O}),jF=oA.update({id:"/founder-resources/privacy-policy-generator",path:"/founder-resources/privacy-policy-generator",getParentRoute:()=>O}),VF=sA.update({id:"/founder-resources/founder-equity-calculator",path:"/founder-resources/founder-equity-calculator",getParentRoute:()=>O}),KF=uA.update({id:"/founder-resources/can-i-afford-to-hire-an-employee-calculator",path:"/founder-resources/can-i-afford-to-hire-an-employee-calculator",getParentRoute:()=>O}),zF=pA.update({id:"/founder-resources/$slug",path:"/founder-resources/$slug",getParentRoute:()=>O}),GF=fA.update({id:"/compare/ynab-alternatives",path:"/compare/ynab-alternatives",getParentRoute:()=>O}),HF=yA.update({id:"/compare/xero-alternatives",path:"/compare/xero-alternatives",getParentRoute:()=>O}),WF=$A.update({id:"/compare/wave-alternatives",path:"/compare/wave-alternatives",getParentRoute:()=>O}),YF=RA.update({id:"/compare/quicken-alternatives",path:"/compare/quicken-alternatives",getParentRoute:()=>O}),QF=xA.update({id:"/compare/quickbooks-alternatives",path:"/compare/quickbooks-alternatives",getParentRoute:()=>O}),XF=AA.update({id:"/compare/monarch-alternatives",path:"/compare/monarch-alternatives",getParentRoute:()=>O}),JF=NA.update({id:"/compare/mint-alternatives",path:"/compare/mint-alternatives",getParentRoute:()=>O}),ZF=OA.update({id:"/compare/empower-alternatives",path:"/compare/empower-alternatives",getParentRoute:()=>O}),eO=qA.update({id:"/compare/copilot-alternatives",path:"/compare/copilot-alternatives",getParentRoute:()=>O}),tO=jA.update({id:"/compare/best-accounting-tools-for-ai-agents",path:"/compare/best-accounting-tools-for-ai-agents",getParentRoute:()=>O}),oO=KA.update({id:"/compare/beancount-vs-ynab",path:"/compare/beancount-vs-ynab",getParentRoute:()=>O}),nO=GA.update({id:"/compare/beancount-vs-spreadsheets",path:"/compare/beancount-vs-spreadsheets",getParentRoute:()=>O}),aO=WA.update({id:"/compare/beancount-vs-simplifi",path:"/compare/beancount-vs-simplifi",getParentRoute:()=>O}),rO=QA.update({id:"/compare/beancount-vs-quickbooks",path:"/compare/beancount-vs-quickbooks",getParentRoute:()=>O}),sO=JA.update({id:"/compare/beancount-vs-monarch",path:"/compare/beancount-vs-monarch",getParentRoute:()=>O}),iO=eL.update({id:"/compare/beancount-vs-mint",path:"/compare/beancount-vs-mint",getParentRoute:()=>O}),cO=oL.update({id:"/compare/beancount-vs-ledger-cli",path:"/compare/beancount-vs-ledger-cli",getParentRoute:()=>O}),lO=aL.update({id:"/compare/beancount-vs-hledger",path:"/compare/beancount-vs-hledger",getParentRoute:()=>O}),uO=sL.update({id:"/compare/beancount-vs-gnucash",path:"/compare/beancount-vs-gnucash",getParentRoute:()=>O}),dO=cL.update({id:"/compare/beancount-vs-credit-karma",path:"/compare/beancount-vs-credit-karma",getParentRoute:()=>O}),pO=uL.update({id:"/compare/beancount-vs-actual-budget",path:"/compare/beancount-vs-actual-budget",getParentRoute:()=>O}),mO=pL.update({id:"/compare/$slug",path:"/compare/$slug",getParentRoute:()=>O}),tt=hL.update({id:"/bean-labs/research-logs",path:"/bean-labs/research-logs",getParentRoute:()=>O}),hO=yL.update({id:"/",path:"/",getParentRoute:()=>hn}),fO=kL.update({id:"/prices-api-reference",path:"/prices-api-reference",getParentRoute:()=>hn}),gO=_L.update({id:"/api-reference",path:"/api-reference",getParentRoute:()=>hn}),bO=RL.update({id:"/$",path:"/$",getParentRoute:()=>hn}),yO=EL.update({id:"/",path:"/",getParentRoute:()=>Ze}),vO=LL.update({id:"/tools/",path:"/tools/",getParentRoute:()=>B}),kO=NL.update({id:"/founder-resources/",path:"/founder-resources/",getParentRoute:()=>B}),$O=FL.update({id:"/compare/",path:"/compare/",getParentRoute:()=>B}),_O=BL.update({id:"/bean-labs/",path:"/bean-labs/",getParentRoute:()=>B}),wO=qL.update({id:"/tools/year-over-year-growth-calculator",path:"/tools/year-over-year-growth-calculator",getParentRoute:()=>B}),RO=UL.update({id:"/tools/trial-balance",path:"/tools/trial-balance",getParentRoute:()=>B}),PO=VL.update({id:"/tools/straight-line-depreciation-calculator",path:"/tools/straight-line-depreciation-calculator",getParentRoute:()=>B}),SO=zL.update({id:"/tools/receivables-turnover-calculator",path:"/tools/receivables-turnover-calculator",getParentRoute:()=>B}),xO=HL.update({id:"/tools/ofx-to-beancount",path:"/tools/ofx-to-beancount",getParentRoute:()=>B}),TO=YL.update({id:"/tools/menu-engineering-calculator",path:"/tools/menu-engineering-calculator",getParentRoute:()=>B}),EO=XL.update({id:"/tools/margin-markup-calculator",path:"/tools/margin-markup-calculator",getParentRoute:()=>B}),AO=ZL.update({id:"/tools/ledger-to-beancount",path:"/tools/ledger-to-beancount",getParentRoute:()=>B}),LO=tC.update({id:"/tools/invoice-email",path:"/tools/invoice-email",getParentRoute:()=>B}),CO=nC.update({id:"/tools/expense-report",path:"/tools/expense-report",getParentRoute:()=>B}),NO=rC.update({id:"/tools/debt-coverage-calculator",path:"/tools/debt-coverage-calculator",getParentRoute:()=>B}),IO=iC.update({id:"/tools/customer-concentration-report",path:"/tools/customer-concentration-report",getParentRoute:()=>B}),FO=lC.update({id:"/tools/break-even-calculator",path:"/tools/break-even-calculator",getParentRoute:()=>B}),OO=dC.update({id:"/tools/ar-aging-report",path:"/tools/ar-aging-report",getParentRoute:()=>B}),BO=mC.update({id:"/founder-resources/privacy-policy-generator",path:"/founder-resources/privacy-policy-generator",getParentRoute:()=>B}),MO=fC.update({id:"/founder-resources/founder-equity-calculator",path:"/founder-resources/founder-equity-calculator",getParentRoute:()=>B}),qO=bC.update({id:"/founder-resources/can-i-afford-to-hire-an-employee-calculator",path:"/founder-resources/can-i-afford-to-hire-an-employee-calculator",getParentRoute:()=>B}),DO=vC.update({id:"/founder-resources/$slug",path:"/founder-resources/$slug",getParentRoute:()=>B}),UO=$C.update({id:"/compare/ynab-alternatives",path:"/compare/ynab-alternatives",getParentRoute:()=>B}),jO=wC.update({id:"/compare/xero-alternatives",path:"/compare/xero-alternatives",getParentRoute:()=>B}),VO=PC.update({id:"/compare/wave-alternatives",path:"/compare/wave-alternatives",getParentRoute:()=>B}),KO=xC.update({id:"/compare/quicken-alternatives",path:"/compare/quicken-alternatives",getParentRoute:()=>B}),zO=EC.update({id:"/compare/quickbooks-alternatives",path:"/compare/quickbooks-alternatives",getParentRoute:()=>B}),GO=LC.update({id:"/compare/monarch-alternatives",path:"/compare/monarch-alternatives",getParentRoute:()=>B}),HO=NC.update({id:"/compare/mint-alternatives",path:"/compare/mint-alternatives",getParentRoute:()=>B}),WO=FC.update({id:"/compare/empower-alternatives",path:"/compare/empower-alternatives",getParentRoute:()=>B}),YO=BC.update({id:"/compare/copilot-alternatives",path:"/compare/copilot-alternatives",getParentRoute:()=>B}),QO=qC.update({id:"/compare/best-accounting-tools-for-ai-agents",path:"/compare/best-accounting-tools-for-ai-agents",getParentRoute:()=>B}),XO=UC.update({id:"/compare/beancount-vs-ynab",path:"/compare/beancount-vs-ynab",getParentRoute:()=>B}),JO=VC.update({id:"/compare/beancount-vs-spreadsheets",path:"/compare/beancount-vs-spreadsheets",getParentRoute:()=>B}),ZO=zC.update({id:"/compare/beancount-vs-simplifi",path:"/compare/beancount-vs-simplifi",getParentRoute:()=>B}),e2=HC.update({id:"/compare/beancount-vs-quickbooks",path:"/compare/beancount-vs-quickbooks",getParentRoute:()=>B}
118),t2=YC.update({id:"/compare/beancount-vs-monarch",path:"/compare/beancount-vs-monarch",getParentRoute:()=>B}),o2=XC.update({id:"/compare/beancount-vs-mint",path:"/compare/beancount-vs-mint",getParentRoute:()=>B}),n2=ZC.update({id:"/compare/beancount-vs-ledger-cli",path:"/compare/beancount-vs-ledger-cli",getParentRoute:()=>B}),a2=tN.update({id:"/compare/beancount-vs-hledger",path:"/compare/beancount-vs-hledger",getParentRoute:()=>B}),r2=nN.update({id:"/compare/beancount-vs-gnucash",path:"/compare/beancount-vs-gnucash",getParentRoute:()=>B}),s2=rN.update({id:"/compare/beancount-vs-credit-karma",path:"/compare/beancount-vs-credit-karma",getParentRoute:()=>B}),i2=iN.update({id:"/compare/beancount-vs-actual-budget",path:"/compare/beancount-vs-actual-budget",getParentRoute:()=>B}),c2=lN.update({id:"/compare/$slug",path:"/compare/$slug",getParentRoute:()=>B}),ot=dN.update({id:"/bean-labs/research-logs",path:"/bean-labs/research-logs",getParentRoute:()=>B}),l2=hN.update({id:"/",path:"/",getParentRoute:()=>fn}),u2=gN.update({id:"/prices-api-reference",path:"/prices-api-reference",getParentRoute:()=>fn}),d2=yN.update({id:"/api-reference",path:"/api-reference",getParentRoute:()=>fn}),p2=kN.update({id:"/$",path:"/$",getParentRoute:()=>fn}),m2=_N.update({id:"/",path:"/",getParentRoute:()=>et}),h2=TN.update({id:"/tools/csv-to-beancount/",path:"/tools/csv-to-beancount/",getParentRoute:()=>O}),f2=CN.update({id:"/tools/csv-to-beancount/$bank",path:"/tools/csv-to-beancount/$bank",getParentRoute:()=>O}),g2=IN.update({id:"/",path:"/",getParentRoute:()=>tt}),b2=VN.update({id:"/tags/",path:"/tags/",getParentRoute:()=>Ze}),y2=zN.update({id:"/authors/",path:"/authors/",getParentRoute:()=>Ze}),v2=HN.update({id:"/page/$pageNumber",path:"/page/$pageNumber",getParentRoute:()=>Ze}),k2=YN.update({id:"/tools/csv-to-beancount/",path:"/tools/csv-to-beancount/",getParentRoute:()=>B}),$2=XN.update({id:"/tools/csv-to-beancount/$bank",path:"/tools/csv-to-beancount/$bank",getParentRoute:()=>B}),_2=ZN.update({id:"/",path:"/",getParentRoute:()=>ot}),w2=tI.update({id:"/tags/",path:"/tags/",getParentRoute:()=>et}),R2=nI.update({id:"/authors/",path:"/authors/",getParentRoute:()=>et}),P2=rI.update({id:"/page/$pageNumber",path:"/page/$pageNumber",getParentRoute:()=>et}),S2=iI.update({id:"/tags/",path:"/tags/",getParentRoute:()=>tt}),x2=lI.update({id:"/authors/",path:"/authors/",getParentRoute:()=>tt}),T2=dI.update({id:"/page/$pageNumber",path:"/page/$pageNumber",getParentRoute:()=>tt}),E2=mI.update({id:"/tags/$permalink/",path:"/tags/$permalink/",getParentRoute:()=>Ze}),A2=fI.update({id:"/authors/$authorKey/",path:"/authors/$authorKey/",getParentRoute:()=>Ze}),L2=bI.update({id:"/tags/",path:"/tags/",getParentRoute:()=>ot}),C2=vI.update({id:"/authors/",path:"/authors/",getParentRoute:()=>ot}),N2=$I.update({id:"/page/$pageNumber",path:"/page/$pageNumber",getParentRoute:()=>ot}),I2=wI.update({id:"/tags/$permalink/",path:"/tags/$permalink/",getParentRoute:()=>et}),F2=PI.update({id:"/authors/$authorKey/",path:"/authors/$authorKey/",getParentRoute:()=>et}),O2=xI.update({id:"/tags/$permalink/",path:"/tags/$permalink/",getParentRoute:()=>tt}),B2=EI.update({id:"/authors/$authorKey/",path:"/authors/$authorKey/",getParentRoute:()=>tt}),M2=LI.update({id:"/tags/$permalink/page/$pageNumber",path:"/tags/$permalink/page/$pageNumber",getParentRoute:()=>Ze}),q2=NI.update({id:"/authors/$authorKey/page/$pageNumber",path:"/authors/$authorKey/page/$pageNumber",getParentRoute:()=>Ze}),D2=OI.update({id:"/$year/$month/$day/$slug",path:"/$year/$month/$day/$slug",getParentRoute:()=>Ze}),U2=MI.update({id:"/tags/$permalink/",path:"/tags/$permalink/",getParentRoute:()=>ot}),j2=DI.update({id:"/authors/$authorKey/",path:"/authors/$authorKey/",getParentRoute:()=>ot}),V2=jI.update({id:"/tags/$permalink/page/$pageNumber",path:"/tags/$permalink/page/$pageNumber",getParentRoute:()=>et}),K2=KI.update({id:"/authors/$authorKey/page/$pageNumber",path:"/authors/$authorKey/page/$pageNumber",getParentRoute:()=>et}),z2=HI.update({id:"/$year/$month/$day/$slug",path:"/$year/$month/$day/$slug",getParentRoute:()=>et}),G2=YI.update({id:"/tags/$permalink/page/$pageNumber",path:"/tags/$permalink/page/$pageNumber",getParentRoute:()=>tt}),H2=XI.update({id:"/authors/$authorKey/page/$pageNumber",path:"/authors/$authorKey/page/$pageNumber",getParentRoute:()=>tt}),W2=o1.update({id:"/$year/$month/$day/$slug",path:"/$year/$month/$day/$slug",getParentRoute:()=>tt}),Y2=a1.update({id:"/tags/$permalink/page/$pageNumber",path:"/tags/$permalink/page/$pageNumber",getParentRoute:()=>ot}),Q2=s1.update({id:"/authors/$authorKey/page/$pageNumber",path:"/authors/$authorKey/page/$pageNumber",getParentRoute:()=>ot}),X2=l1.update({id:"/$year/$month/$day/$slug",path:"/$year/$month/$day/$slug",getParentRoute:()=>ot}),J2={LocaleBlogIndexRoute:m2,LocaleBlogPagePageNumberRoute:P2,LocaleBlogAuthorsIndexRoute:R2,LocaleBlogTagsIndexRoute:w2,LocaleBlogAuthorsAuthorKeyIndexRoute:F2,LocaleBlogTagsPermalinkIndexRoute:I2,LocaleBlogYearMonthDaySlugRoute:z2,LocaleBlogAuthorsAuthorKeyPagePageNumberRoute:K2,LocaleBlogTagsPermalinkPagePageNumberRoute:V2},Z2=et._addFileChildren(J2),eB={LocaleDocsSplatRoute:p2,LocaleDocsApiReferenceRoute:d2,LocaleDocsPricesApiReferenceRoute:u2,LocaleDocsIndexRoute:l2},tB=fn._addFileChildren(eB),oB={LocaleBeanLabsResearchLogsIndexRoute:_2,LocaleBeanLabsResearchLogsPagePageNumberRoute:N2,LocaleBeanLabsResearchLogsAuthorsIndexRoute:C2,LocaleBeanLabsResearchLogsTagsIndexRoute:L2,LocaleBeanLabsResearchLogsAuthorsAuthorKeyIndexRoute:j2,LocaleBeanLabsResearchLogsTagsPermalinkIndexRoute:U2,LocaleBeanLabsResearchLogsYearMonthDaySlugRoute:X2,
118LocaleBeanLabsResearchLogsAuthorsAuthorKeyPagePageNumberRoute:Q2,LocaleBeanLabsResearchLogsTagsPermalinkPagePageNumberRoute:Y2},nB=ot._addFileChildren(oB),aB={LocaleBlogRouteRoute:Z2,LocaleDocsRouteRoute:tB,LocaleAboutUsRoute:wF,LocaleAffiliateRoute:_F,LocaleAiRoute:$F,LocaleApiReferenceRoute:kF,LocaleAssistantRoute:vF,LocaleAwesomeBeancountRoute:yF,LocaleAwesomePlainTextAccountingRoute:bF,LocaleBankSyncRoute:gF,LocaleBeancountAndroidRoute:fF,LocaleBeancountCloudRoute:hF,LocaleBeancountIosRoute:mF,LocaleBrandAssetsRoute:pF,LocaleChangelogRoute:dF,LocaleContactRoute:uF,LocaleDemoRoute:lF,LocaleDownloadRoute:cF,LocaleFaqRoute:iF,LocaleFavaRoute:sF,LocaleForAiAgentsRoute:rF,LocaleForCouplesRoute:aF,LocaleForProfessionalsRoute:nF,LocaleGitRoute:oF,LocaleLinkAccountsRoute:tF,LocaleLivePricesRoute:eF,LocaleMcpRoute:Z1,LocaleOpenLedgerRoute:J1,LocalePricingRoute:X1,LocalePrivacyPolicyRoute:Q1,LocaleReadsAndFindsRoute:Y1,LocaleSecurityRoute:W1,LocaleSmartImportRoute:H1,LocaleTermsOfServiceRoute:G1,LocaleTrackingRoute:z1,LocaleIndexRoute:K1,LocaleBeanLabsResearchLogsRouteRoute:nB,LocaleCompareSlugRoute:c2,LocaleCompareBeancountVsActualBudgetRoute:i2,LocaleCompareBeancountVsCreditKarmaRoute:s2,LocaleCompareBeancountVsGnucashRoute:r2,LocaleCompareBeancountVsHledgerRoute:a2,LocaleCompareBeancountVsLedgerCliRoute:n2,LocaleCompareBeancountVsMintRoute:o2,LocaleCompareBeancountVsMonarchRoute:t2,LocaleCompareBeancountVsQuickbooksRoute:e2,LocaleCompareBeancountVsSimplifiRoute:ZO,LocaleCompareBeancountVsSpreadsheetsRoute:JO,LocaleCompareBeancountVsYnabRoute:XO,LocaleCompareBestAccountingToolsForAiAgentsRoute:QO,LocaleCompareCopilotAlternativesRoute:YO,LocaleCompareEmpowerAlternativesRoute:WO,LocaleCompareMintAlternativesRoute:HO,LocaleCompareMonarchAlternativesRoute:GO,LocaleCompareQuickbooksAlternativesRoute:zO,LocaleCompareQuickenAlternativesRoute:KO,LocaleCompareWaveAlternativesRoute:VO,LocaleCompareXeroAlternativesRoute:jO,LocaleCompareYnabAlternativesRoute:UO,LocaleFounderResourcesSlugRoute:DO,LocaleFounderResourcesCanIAffordToHireAnEmployeeCalculatorRoute:qO,LocaleFounderResourcesFounderEquityCalculatorRoute:MO,LocaleFounderResourcesPrivacyPolicyGeneratorRoute:BO,LocaleToolsArAgingReportRoute:OO,LocaleToolsBreakEvenCalculatorRoute:FO,LocaleToolsCustomerConcentrationReportRoute:IO,LocaleToolsDebtCoverageCalculatorRoute:NO,LocaleToolsExpenseReportRoute:CO,LocaleToolsInvoiceEmailRoute:LO,LocaleToolsLedgerToBeancountRoute:AO,LocaleToolsMarginMarkupCalculatorRoute:EO,LocaleToolsMenuEngineeringCalculatorRoute:TO,LocaleToolsOfxToBeancountRoute:xO,LocaleToolsReceivablesTurnoverCalculatorRoute:SO,LocaleToolsStraightLineDepreciationCalculatorRoute:PO,LocaleToolsTrialBalanceRoute:RO,LocaleToolsYearOverYearGrowthCalculatorRoute:wO,LocaleBeanLabsIndexRoute:_O,LocaleCompareIndexRoute:$O,LocaleFounderResourcesIndexRoute:kO,LocaleToolsIndexRoute:vO,LocaleToolsCsvToBeancountBankRoute:$2,LocaleToolsCsvToBeancountIndexRoute:k2},rB=B._addFileChildren(aB),sB={localeBlogIndexRoute:yO,localeBlogPagePageNumberRoute:v2,localeBlogAuthorsIndexRoute:y2,localeBlogTagsIndexRoute:b2,localeBlogAuthorsAuthorKeyIndexRoute:A2,localeBlogTagsPermalinkIndexRoute:E2,localeBlogYearMonthDaySlugRoute:D2,localeBlogAuthorsAuthorKeyPagePageNumberRoute:q2,localeBlogTagsPermalinkPagePageNumberRoute:M2},iB=Ze._addFileChildren(sB),cB={localeDocsSplatRoute:bO,localeDocsApiReferenceRoute:gO,localeDocsPricesApiReferenceRoute:fO,localeDocsIndexRoute:hO},lB=hn._addFileChildren(cB),uB={localeBeanLabsResearchLogsIndexRoute:g2,localeBeanLabsResearchLogsPagePageNumberRoute:T2,localeBeanLabsResearchLogsAuthorsIndexRoute:x2,localeBeanLabsResearchLogsTagsIndexRoute:S2,localeBeanLabsResearchLogsAuthorsAuthorKeyIndexRoute:B2,localeBeanLabsResearchLogsTagsPermalinkIndexRoute:O2,localeBeanLabsResearchLogsYearMonthDaySlugRoute:W2,localeBeanLabsResearchLogsAuthorsAuthorKeyPagePageNumberRoute:H2,localeBeanLabsResearchLogsTagsPermalinkPagePageNumberRoute:G2},dB=tt._addFileChildren(uB),pB={localeBlogRouteRoute:iB,localeDocsRouteRoute:lB,localeAboutUsRoute:V1,localeAffiliateRoute:j1,localeAiRoute:U1,localeApiReferenceRoute:D1,localeAssistantRoute:q1,localeAwesomeBeancountRoute:M1,localeAwesomePlainTextAccountingRoute:B1,localeBankSyncRoute:O1,localeBeancountAndroidRoute:F1,localeBeancountCloudRoute:I1,localeBeancountIosRoute:N1,localeBrandAssetsRoute:C1,localeChangelogRoute:L1,localeContactRoute:A1,localeDemoRoute:E1,localeDownloadRoute:T1,localeFaqRoute:x1,localeFavaRoute:S1,localeForAiAgentsRoute:P1,localeForCouplesRoute:R1,localeForProfessionalsRoute:w1,localeGitRoute:_1,localeLinkAccountsRoute:$1,localeLivePricesRoute:k1,localeMcpRoute:v1,localeOpenLedgerRoute:y1,localePricingRoute:b1,localePrivacyPolicyRoute:g1,localeReadsAndFindsRoute:f1,localeSecurityRoute:h1,localeSmartImportRoute:m1,localeTermsOfServiceRoute:p1,localeTrackingRoute:d1,localeIndexRoute:u1,localeBeanLabsResearchLogsRouteRoute:dB,localeCompareSlugRoute:mO,localeCompareBeancountVsActualBudgetRoute:pO,localeCompareBeancountVsCreditKarmaRoute:dO,localeCompareBeancountVsGnucashRoute:uO,localeCompareBeancountVsHledgerRoute:lO,localeCompareBeancountVsLedgerCliRoute:cO,localeCompareBeancountVsMintRoute:iO,localeCompareBeancountVsMonarchRoute:sO,localeCompareBeancountVsQuickbooksRoute:rO,localeCompareBeancountVsSimplifiRoute:aO,localeCompareBeancountVsSpreadsheetsRoute:nO,localeCompareBeancountVsYnabRoute:oO,localeCompareBestAccountingToolsForAiAgentsRoute:tO,localeCompareCopilotAlternativesRoute:eO,localeCompareEmpowerAlternativesRoute:ZF,localeCompareMintAlternativesRoute:JF,localeCompareMonarchAlternativesRoute:XF,localeCompareQuickbooksAlternativesRoute:QF,localeCompareQuickenAlternativesRoute:YF,localeCompareWaveAlternativesRoute:WF,localeCompareXeroAlternativesRoute:HF,localeCompareYnabAlternativesRoute:GF,localeFounderResourcesSlugRoute:zF,localeFounderResourcesCanIAffordToHireAnEmployeeCalculatorRoute:KF,localeFounderResourcesFounderEquityCalculatorRoute:VF,localeFounderResourcesPrivacyPolicyGeneratorRoute:jF,localeToolsArAgingReportRoute:UF,localeToolsBreakEvenCalculatorRoute:DF,localeToolsCustomerConcentrationReportRoute:qF,localeToolsDebtCoverageCalculatorRoute:MF,localeToolsExpenseReportRoute:BF,localeToolsInvoiceEmailRoute:OF,localeToolsLedgerToBeancountRoute:FF,localeToolsMarginMarkupCalculatorRoute:IF,localeToolsMenuEngineeringCalculatorRoute:NF,localeToolsOfxToBeancountRoute:CF,localeToolsReceivablesTurnoverCalculatorRoute:LF,localeToolsStraightLineDepreciationCalculatorRoute:AF,localeToolsTrialBalanceRoute:EF,localeToolsYearOverYearGrowthCalculatorRoute:TF,localeBeanLabsIndexRoute:xF,localeCompareIndexRoute:SF,localeFounderResourcesIndexRoute:PF,localeToolsIndexRoute:RF,localeToolsCsvToBeancountBankRoute:f2,localeToolsCsvToBeancountIndexRoute:h2},mB=O._addFileChildren(pB),hB={LocaleRouteRoute:rB,localeRouteRoute:mB},Li=ea._addFileChildren(hB),fB="/graphql",gB={graphqlUrl:fB};let Va=null;function bB(){return new bh({link:new vh({uri:gB.graphqlUrl,fetch,credentials:"include"}),cache:new yh})}function yB(){return Va||(Va=bB()),Va}const vB=yB;function kB({error:e,info:t,reset:o}){const{t:n}=fe(),a=$e(),r=oo({select:i=>i.location.pathname});S.useEffect(()=>{b(async()=>{const{reportClientError:i,buildErrorReport:c}=await import("./error-reporting-DSeYqUqC.js");return{reportClientError:i,buildErrorReport:c}},[]).then(({reportClientError:i,buildErrorReport:c})=>{i(c(e,t,r))})},[e,t,r]);function s(){a.invalidate(),o()}return m.jsxs("div",{className:"min-h-screen noise-bg flex flex-col",children:[m.jsx(su,{}),m.jsx("main",{id:"main",className:"flex-1 flex items-center justify-center px-4 py-24",children:m.jsxs("div",{className:"text-center max-w-md",children:[m.jsx("p",{className:"text-6xl font-bold text-primary mb-6 tracking-tight",children:"500"}),m.jsx("h1",{className:"text-2xl font-bold mb-3 tracking-tight",children:n("theme.ErrorPageContent.title")}),null,m.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[m.jsx("button",{type:"button",onClick:s,className:"inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",children:n("theme.ErrorPageContent.tryAgain")}),m.jsx(ut,{to:"/blog",className:"inline-flex items-center gap-1.5 rounded-lg border border-border px-4 py-2 text-sm font-medium hover:bg-accent transition-colors",children:n("theme.NotFound.link.blog")})]})]})}),m.jsx(iu,{})]})}const Ci="bc:chunk-reload-at",$B=3e4;function _B(){typeof window>"u"||window.addEventListener("vite:preloadError",e=>{let t=0;try{t=Number(sessionStorage.getItem(Ci)??0)}catch{}if(!(Date.now()-t<$B)){try{sessionStorage.setItem(Ci,String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()}})}const wo=new WeakSet;function Ni({match:e,matches:t}){for(const o of t){if(o.id===e.id)return!0;
118if(o.globalNotFound||o.status==="notFound"||o.status==="error")return!1}return!0}function Ii(e){const t=e.head;if(t&&!wo.has(t)){const n=a=>Ni(a)?t(a):{};wo.add(n),e.head=n}const o=e.scripts;if(o&&!wo.has(o)){const n=a=>Ni(a)?o(a):void 0;wo.add(n),e.scripts=n}}function lh(e){Ii(e.options);const t=e.lazyFn;if(t&&!wo.has(t)){const o=async()=>{const n=await t();return Ii(n.options),n};wo.add(o),e.lazyFn=o}for(const o of e.children??[])lh(o)}_B();const wB=()=>{};async function RB(){lh(Li);const e=vB(),t=await wB();return xv({routeTree:Li,defaultNotFoundComponent:cu,defaultErrorComponent:kB,scrollRestoration:!0,defaultPreload:"intent",defaultPreloadStaleTime:3e4,defaultStaleTime:3e5,ssr:t,context:{client:e},dehydrate:()=>({apolloState:e.cache.extract()}),hydrate:n=>{e.cache.restore(n.apolloState)},Wrap(n){return m.jsx(kh,{client:e,children:n.children})}})}async function PB(){const e=await RB();let t;return t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(Ly),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await Fy(e),e}var SB=PB;async function xB(){const e=await SB();return window.$_TSR?.h(),e}var Ka;function TB(){return Ka||(Ka=xB()),m.jsx(qy,{promise:Ka,children:e=>m.jsx(Av,{router:e})})}S.startTransition(()=>{gh.hydrateRoot(document,m.jsx(S.StrictMode,{children:m.jsx(TB,{})}))});export{yA as $,su as A,NT as B,GB as C,zB as D,FT as E,GP as F,QT as G,P0 as H,US as I,E0 as J,v$ as K,ut as L,ww as M,Y0 as N,Xc as O,eE as P,dE as Q,FR as R,cP as S,BE as T,sA as U,ah as V,w as W,El as X,uA as Y,pA as Z,fA as _,GR as a,IN as a$,$A as a0,RA as a1,xA as a2,AA as a3,NA as a4,OA as a5,qA as a6,jA as a7,KA as a8,GA as a9,PC as aA,xC as aB,EC as aC,LC as aD,NC as aE,FC as aF,BC as aG,qC as aH,UC as aI,VC as aJ,zC as aK,HC as aL,YC as aM,XC as aN,ZC as aO,tN as aP,nN as aQ,rN as aR,iN as aS,lN as aT,hN as aU,kN as aV,_N as aW,dk as aX,Jm as aY,yl as aZ,CN as a_,WA as aa,QA as ab,JA as ac,eL as ad,oL as ae,aL as af,sL as ag,cL as ah,uL as ai,pL as aj,yL as ak,RL as al,EL as am,aR as an,rR as ao,FL as ap,BL as aq,VL as ar,zL as as,YL as at,rC as au,fC as av,bC as aw,vC as ax,$C as ay,wC as az,nP as b,lP as b$,iR as b0,sR as b1,Sn as b2,VN as b3,zN as b4,HN as b5,XN as b6,ZN as b7,hi as b8,tI as b9,OI as bA,MI as bB,wi as bC,DI as bD,Ri as bE,jI as bF,KI as bG,HI as bH,YI as bI,Pi as bJ,XI as bK,Si as bL,o1 as bM,xi as bN,a1 as bO,Ti as bP,s1 as bQ,Ei as bR,l1 as bS,Ai as bT,FB as bU,yo as bV,hP as bW,mP as bX,pP as bY,dP as bZ,uP as b_,nI as ba,rI as bb,iI as bc,fi as bd,lI as be,gi as bf,dI as bg,bi as bh,mI as bi,fI as bj,rh as bk,bI as bl,yi as bm,vI as bn,vi as bo,$I as bp,ki as bq,wI as br,PI as bs,xI as bt,$i as bu,EI as bv,_i as bw,LI as bx,NI as by,cu as bz,iP as c,Al as c$,Jo as c0,Ye as c1,uM as c2,Gk as c3,jk as c4,Nk as c5,Kk as c6,ae as c7,ol as c8,f0 as c9,nl as cA,xl as cB,aS as cC,no as cD,Mc as cE,tl as cF,mM as cG,Ue as cH,HR as cI,YB as cJ,QR as cK,XB as cL,dM as cM,kP as cN,$P as cO,_P as cP,wP as cQ,RP as cR,pM as cS,ok as cT,ml as cU,s$ as cV,Nt as cW,UN as cX,h$ as cY,OR as cZ,cw as c_,oM as ca,DB as cb,eM as cc,tM as cd,u0 as ce,qr as cf,np as cg,ik as ch,KB as ci,kl as cj,lM as ck,EN as cl,Tl as cm,mt as cn,jB as co,oo as cp,Js as cq,aw as cr,rn as cs,Zx as ct,ZB as cu,Jk as cv,MP as cw,WB as cx,QB as cy,UP as cz,SP as d,Wk as d0,px as d1,sM as d2,iM as d3,cM as d4,Wd as d5,nM as d6,aM as d7,rM as d8,CS as d9,LS as dA,se as dB,vR as dC,kR as dD,bR as dE,p$ as dF,Cl as dG,UB as dH,Fl as dI,FP as da,e$ as db,Ou as dc,HB as dd,JB as de,EP as df,xo as dg,I as dh,R$ as di,a$ as dj,H0 as dk,K0 as dl,z0 as dm,G0 as dn,Hc as dp,rw as dq,BB as dr,o_ as ds,qB as dt,MB as du,Ql as dv,$l as dw,_l as dx,ch as dy,VB as dz,bS as e,SS as f,AS as g,OS as h,cx as i,ne as j,iu as k,Ve as l,JP as m,b$ as n,YS as o,Ek as p,OB as q,Nx as r,nk as s,qx as t,fe as u,zx as v,Yx as w,tT as x,_T as y,ET as z};
119//# sourceMappingURL=index-YlZldLzZ.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.