decocms 4.99.2 → 4.99.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-hYag6BbI.js → AlertCircle-fiDS7_AW.js} +1 -1
- package/dist/client/assets/{AreaChart-dF42II9e.js → AreaChart-DxhBn9wy.js} +1 -1
- package/dist/client/assets/{ArrowRight-n-TBn01e.js → ArrowRight-9GBJcAzh.js} +1 -1
- package/dist/client/assets/{ArrowUp-CV_nwp67.js → ArrowUp-GKsX4ymJ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CUu0poE7.js → ArrowUpRight-BhWNpWmN.js} +1 -1
- package/dist/client/assets/{Check-BqUfCoBF.js → Check-DvvfRjUe.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ci5HXbyi.js → CheckCircle-Cvb-lbjg.js} +1 -1
- package/dist/client/assets/{ChevronDown-B5nNx5Dx.js → ChevronDown-DZ-jDRym.js} +1 -1
- package/dist/client/assets/{ChevronRight-BIhvsLci.js → ChevronRight-DmaF2KcG.js} +1 -1
- package/dist/client/assets/{ChevronUp-DskNR2pe.js → ChevronUp-CQzKniDQ.js} +1 -1
- package/dist/client/assets/{Copy01-CZUAh9vx.js → Copy01-DGEOyuGr.js} +1 -1
- package/dist/client/assets/{DotsVertical-DH3n__PV.js → DotsVertical-CWjsr_al.js} +1 -1
- package/dist/client/assets/{Eye-CbhCOWW3.js → Eye-CWa5dXIE.js} +1 -1
- package/dist/client/assets/{FilterLines-CjyDVxAQ.js → FilterLines-BIlRq4mR.js} +1 -1
- package/dist/client/assets/{Globe01-xZl4NLjm.js → Globe01-ZdvsPDpI.js} +1 -1
- package/dist/client/assets/{Globe04-DHgs3GZc.js → Globe04-CjO6O9V5.js} +1 -1
- package/dist/client/assets/{HardDrive-BwxUHvE5.js → HardDrive-Cod4A6U2.js} +1 -1
- package/dist/client/assets/{Image01-zzq68Thg.js → Image01-FyQXnSXj.js} +1 -1
- package/dist/client/assets/{Key01-BG2GwAxV.js → Key01-B4xADcX6.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CJjI1ZVY.js → LayoutLeft-DDMDiPaa.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DuM-ETL7.js → LinkExternal01-DL_QKpQ5.js} +1 -1
- package/dist/client/assets/{Monitor01-DCBBoK-Q.js → Monitor01-CDEweoV1.js} +1 -1
- package/dist/client/assets/{Package-DGdUJKLk.js → Package-mMextKzb.js} +1 -1
- package/dist/client/assets/{Palette-B9U3WzWJ.js → Palette-p7QyTC7O.js} +1 -1
- package/dist/client/assets/{Play-MPnFN4Ot.js → Play-BzzjvNI5.js} +1 -1
- package/dist/client/assets/{Plus-D8R0whKy.js → Plus-Dt2Yhyfh.js} +1 -1
- package/dist/client/assets/{SearchLg-DxljGMIS.js → SearchLg-BBp_s4Dj.js} +1 -1
- package/dist/client/assets/{SearchMd-Cl1wFEaP.js → SearchMd-BwzXBBsV.js} +1 -1
- package/dist/client/assets/{Settings02-CHWQ4cze.js → Settings02-CliIZSVh.js} +1 -1
- package/dist/client/assets/{Shield01-KvnJOfKG.js → Shield01-DWjrtIKN.js} +1 -1
- package/dist/client/assets/{Star01-CFLS8vM8.js → Star01-BrPZaGSa.js} +1 -1
- package/dist/client/assets/{Stars01-Du90yOKu.js → Stars01-BY37QciR.js} +1 -1
- package/dist/client/assets/{Stars02-DNKnMVas.js → Stars02-CMx-K6u1.js} +1 -1
- package/dist/client/assets/{Sun-wJrJ62L2.js → Sun-ClK3sjmD.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Bu9Qz3KN.js → SwitchHorizontal01-CTf78TZt.js} +1 -1
- package/dist/client/assets/{Tool01-C2j5CN3o.js → Tool01-LP3q4otf.js} +1 -1
- package/dist/client/assets/{Tool02-M4Cw_hi1.js → Tool02-Bipf7COd.js} +1 -1
- package/dist/client/assets/{Trash01-BRj8BMoQ.js → Trash01-14_1Tnwj.js} +1 -1
- package/dist/client/assets/{TrendUp01-DCszOWxx.js → TrendUp01-BN8qR-i9.js} +1 -1
- package/dist/client/assets/{Upload01-BYmQrCvZ.js → Upload01-Cfc7GuB6.js} +1 -1
- package/dist/client/assets/{User01-xWnqcBX5.js → User01-BbohxxFz.js} +1 -1
- package/dist/client/assets/{Users01-BCCI59Cd.js → Users01-lKxa2VVF.js} +1 -1
- package/dist/client/assets/{Users03-BhAf1OI0.js → Users03-CO5Y5hvQ.js} +1 -1
- package/dist/client/assets/{X-D9a7mA7z.js → X-B40Y8kiW.js} +1 -1
- package/dist/client/assets/{XCircle-CLqcbEJ5.js → XCircle-DrOLD6mg.js} +1 -1
- package/dist/client/assets/{XClose-B4_aZN-d.js → XClose-BMwC2_sa.js} +1 -1
- package/dist/client/assets/{Zap-BM4kHy7D.js → Zap-BZm41LU9.js} +1 -1
- package/dist/client/assets/{ZapSquare-CHvbVMtu.js → ZapSquare-Bul-sGGy.js} +1 -1
- package/dist/client/assets/{ZoomOut-BgBVt7xO.js → ZoomOut-BSj54N9w.js} +1 -1
- package/dist/client/assets/{access-gate-Blc6kHRZ.js → access-gate-CjoP2Msz.js} +1 -1
- package/dist/client/assets/{add-section-modal-CLgI9snf.js → add-section-modal-YKFqmJWP.js} +1 -1
- package/dist/client/assets/{agent-icon-CWafS0z1.js → agent-icon-BNe5wvto.js} +1 -1
- package/dist/client/assets/{agents-list-DARePumV.js → agents-list-DPeZ1pG7.js} +1 -1
- package/dist/client/assets/{ai-providers-CcOvZknr.js → ai-providers-CInmCp7R.js} +1 -1
- package/dist/client/assets/{alert-CEbwozBK.js → alert-BJhB26lO.js} +1 -1
- package/dist/client/assets/{alert-dialog-Dlf2Maxi.js → alert-dialog-BH_YxgzX.js} +1 -1
- package/dist/client/assets/{app-editor-CfMliRW7.js → app-editor-1L5oz9ks.js} +1 -1
- package/dist/client/assets/{auth-_luaz7eq.js → auth-Bfaa5Nnx.js} +1 -1
- package/dist/client/assets/{auth-catchall-BIhNL7Oo.js → auth-catchall-RIN6fuxD.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu2S0sSm.js → auth-entry-BBSeggf0.js} +1 -1
- package/dist/client/assets/{auth-split-layout-jhdl7GwA.js → auth-split-layout-CW9g-Cb9.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DuV0O3R6.js → authenticate-and-persist-oauth-BuRou6TJ.js} +1 -1
- package/dist/client/assets/{automation-list-row-BOa-I3b7.js → automation-list-row-DRN4ABtG.js} +1 -1
- package/dist/client/assets/{automation-runs-5NMUIL2C.js → automation-runs-s0X2uzfx.js} +1 -1
- package/dist/client/assets/{automations-BaTgc-lk.js → automations-b-l_mnYg.js} +1 -1
- package/dist/client/assets/{autosend-BqtYaPyS.js → autosend-Cqh7_BGg.js} +1 -1
- package/dist/client/assets/{avatar-Bm7TRFyI.js → avatar-BJtM7hLm.js} +1 -1
- package/dist/client/assets/{badge-BfKxdp6w.js → badge-DerU0lq3.js} +1 -1
- package/dist/client/assets/{block-document-SAqGRPVB.js → block-document-DtQ5nOjc.js} +1 -1
- package/dist/client/assets/{brand-context-7QvMVJRB.js → brand-context-BX26L7au.js} +1 -1
- package/dist/client/assets/{buckets-DN160Fe5.js → buckets-BMcb1PGb.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BeU95ijv.js → bulk-category-panel-DzJaxKWi.js} +1 -1
- package/dist/client/assets/{calendar-ChM-0ri5.js → calendar-CCSi_BNb.js} +1 -1
- package/dist/client/assets/{capability-load-error-DED97G7U.js → capability-load-error-DA-Z7tqV.js} +1 -1
- package/dist/client/assets/{card-_b2At37s.js → card-BCwVAtlo.js} +1 -1
- package/dist/client/assets/{category-editor-C3tPwo-O.js → category-editor-CzHWtArG.js} +1 -1
- package/dist/client/assets/{chat-context-CWj_5Xjy.js → chat-context-CfFa5zRe.js} +1 -1
- package/dist/client/assets/{checkbox-B8I8ULDM.js → checkbox-Bpi2g3Yj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BZZJ8ljw.js → cli-auth-success-B6iVQI8W.js} +1 -1
- package/dist/client/assets/{collection-detail-CAJRlJNz.js → collection-detail-BDq8cA1t.js} +1 -1
- package/dist/client/assets/{collection-display-button-MK8sJgYK.js → collection-display-button-D6xMZgK_.js} +1 -1
- package/dist/client/assets/{collection-search-JF6iMFQe.js → collection-search-BkO5-3pu.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DfpdV9wl.js → collection-table-wrapper-Z9UU-0VK.js} +1 -1
- package/dist/client/assets/{collection-tabs-DTBgpjpb.js → collection-tabs-C8IMxLsk.js} +1 -1
- package/dist/client/assets/{command-X9fO0ToS.js → command-Zusiz35D.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CKQucrdu.js → commerce-onboarding-BarX2haQ.js} +1 -1
- package/dist/client/assets/{companions-core-j_0J30PJ.js → companions-core-CxJOQO0T.js} +1 -1
- package/dist/client/assets/{connect-BeRtumRu.js → connect-7re-GI3j.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CUJxiyZC.js → connect-desktop-dialog-BCaCYRe_.js} +1 -1
- package/dist/client/assets/{connection-card-Bxo1rJ_l.js → connection-card-BjIwvRbn.js} +1 -1
- package/dist/client/assets/{connection-detail-VMrYv0bl.js → connection-detail-DzdmR3xV.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Dwr0QnsN.js → connection-form-helpers-txVwz5G7.js} +1 -1
- package/dist/client/assets/{connections-k5M7YhJ5.js → connections-C4neFx0K.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CsaxjWqo.js → decopilot-sse-pool-CeioZxmv.js} +1 -1
- package/dist/client/assets/{dialog-DTERmMdq.js → dialog-l3xsGghG.js} +1 -1
- package/dist/client/assets/{domain-settings-QEBY_O22.js → domain-settings-CuvKkNLj.js} +1 -1
- package/dist/client/assets/{drawer-D592XSz-.js → drawer-DcSq4N7n.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DCVSlDdU.js → dropdown-menu-Bir5Fgmh.js} +1 -1
- package/dist/client/assets/{empty-state-DnkxLOwP.js → empty-state-gf_9HGtN.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D0xv5f6d.js → extract-connection-data-CT0YXBga.js} +1 -1
- package/dist/client/assets/{file-explorer-Cc7Fo9Vw.js → file-explorer-92hvx_qH.js} +1 -1
- package/dist/client/assets/{file-type-icon-DKZTktyz.js → file-type-icon-kQHE0NHO.js} +1 -1
- package/dist/client/assets/{files-C52diAtY.js → files-CGmlL-KD.js} +1 -1
- package/dist/client/assets/{form-CTIDjV5U.js → form-DXTrwuDx.js} +1 -1
- package/dist/client/assets/{general-CA388VDO.js → general-DXHk5oGa.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DTwuNdN8.js → github-repo-picker-DlcuijzG.js} +1 -1
- package/dist/client/assets/{hooks-CGrRNfgB.js → hooks-ll207OVq.js} +1 -1
- package/dist/client/assets/{index-BbVhqZHS.js → index-B7KjTQzo.js} +1 -1
- package/dist/client/assets/{index-DcuzUaPh.js → index-BBwJszhG.js} +1 -1
- package/dist/client/assets/{index-vNH0v8Fd.js → index-BKJyH6X3.js} +1 -1
- package/dist/client/assets/{index-pOKU1sel.js → index-BbFZiKY6.js} +1 -1
- package/dist/client/assets/{index-CziH8yUr.js → index-C453XWrl.js} +1 -1
- package/dist/client/assets/{index-zBE2ow0w.js → index-C8XQkXwk.js} +1 -1
- package/dist/client/assets/{index-DExceWv9.js → index-CINib8w0.js} +1 -1
- package/dist/client/assets/{index-BndAfnBN.js → index-D1aI2VWY.js} +3 -3
- package/dist/client/assets/{index-fNoeLmyx.js → index-DHwdJGDi.js} +1 -1
- package/dist/client/assets/{index-AYpZp1GA.js → index-DWGf3Uqn.js} +1 -1
- package/dist/client/assets/{index-Dq0Rv4T6.js → index-DiGSBNNS.js} +1 -1
- package/dist/client/assets/{index-BG2iLEXm.js → index-FFCelBie.js} +23 -23
- package/dist/client/assets/{index-pSvo-p7O.js → index-U35CdImZ.js} +1 -1
- package/dist/client/assets/{index-BFgGPpC8.js → index-_mKxmArS.js} +29 -29
- package/dist/client/assets/{index-redirect-WN2k7pJg.js → index-redirect-Em_ioZOU.js} +1 -1
- package/dist/client/assets/{input-CsC1Diu-.js → input-DbUxhT6M.js} +1 -1
- package/dist/client/assets/{integration-icon-pm2IQO2U.js → integration-icon-B-KYyWfj.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-D7IRVBXl.js → invite-member-dialog-C6CdWfcJ.js} +1 -1
- package/dist/client/assets/{label-DqXNZATI.js → label-Bpqw9bzP.js} +1 -1
- package/dist/client/assets/{layout-BqTeageM.js → layout-DFYMNErq.js} +1 -1
- package/dist/client/assets/{login-ClDrj-2f.js → login-Cdo05-kE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BORbgW4H.js → mcp-oauth-DQDnGyRI.js} +1 -1
- package/dist/client/assets/{members-WF-PminE.js → members-DJ5lDboO.js} +1 -1
- package/dist/client/assets/{monaco-editor-B9HyQg7v.js → monaco-editor-DXApMBxG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-pvL8qOz4.js → monitoring-stats-row-BBmqCUz5.js} +1 -1
- package/dist/client/assets/{multi-select-BDaSL9uP.js → multi-select-eomaPrVp.js} +1 -1
- package/dist/client/assets/{oauth-callback-B5QzBUa_.js → oauth-callback-1IfoxCun.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BDKSQRVP.js → oauth-callback-ai-provider-D-CSKGfG.js} +1 -1
- package/dist/client/assets/{onboarding-iNKOe8fc.js → onboarding-BO96B2FE.js} +1 -1
- package/dist/client/assets/{org-install-CWBMjUat.js → org-install-DvspRyCQ.js} +1 -1
- package/dist/client/assets/{org-layout-BAP0xFKg.js → org-layout-B3Dy7-V_.js} +1 -1
- package/dist/client/assets/{organization-choice-BSm2aJn0.js → organization-choice-m7eklayo.js} +1 -1
- package/dist/client/assets/{orgs-DmDVOJNZ.js → orgs-DWgG2LpO.js} +1 -1
- package/dist/client/assets/{page-seo-form-D3Q5GmQ_.js → page-seo-form-BhG09c74.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BrWS78iL.js +1 -0
- package/dist/client/assets/{popover-BHJXyBcl.js → popover-DpFbBkBo.js} +1 -1
- package/dist/client/assets/{post-editor-L5eyLvH2.js → post-editor-NncA8uzA.js} +1 -1
- package/dist/client/assets/{primitives-BTXI1UhP.js → primitives-CY_7ufWI.js} +1 -1
- package/dist/client/assets/{profile-D40D6IbB.js → profile-B0wXhFgM.js} +1 -1
- package/dist/client/assets/project-app-view-DUx1-hba.js +1 -0
- package/dist/client/assets/record-editor-C0f7DYyN.js +1 -0
- package/dist/client/assets/{redirect-editor-DJ1Y_Dqx.js → redirect-editor-DY_CbnDP.js} +1 -1
- package/dist/client/assets/registry-DaV_fulZ.js +2 -0
- package/dist/client/assets/{registry-layout-Czee_ui1.js → registry-layout-BUYtYuDp.js} +1 -1
- package/dist/client/assets/{reports-BvsqcplZ.js → reports-XD9N1I1Q.js} +1 -1
- package/dist/client/assets/{require-capability-DmAVYrxg.js → require-capability-D0QKYTm0.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DZtKKGLa.js → required-auth-layout-icEM_Ml9.js} +1 -1
- package/dist/client/assets/{reset-password-Bk83Kx_H.js → reset-password-v4T31_aL.js} +1 -1
- package/dist/client/assets/{roles-DsJ5Ylxf.js → roles-Cho7n5oz.js} +1 -1
- package/dist/client/assets/{search-input-CwAJ7BWA.js → search-input-BKHqY1wA.js} +1 -1
- package/dist/client/assets/{secrets-B-pJRADZ.js → secrets-B7GwKv2d.js} +1 -1
- package/dist/client/assets/{sections-editor-CJbGysPH.js → sections-editor-DwSiIVgc.js} +1 -1
- package/dist/client/assets/{select-DyDdd0ox.js → select-CuAydbdU.js} +1 -1
- package/dist/client/assets/{select-model-J8fBCN0u.js → select-model-BExUO4JY.js} +1 -1
- package/dist/client/assets/{self-tool-result-nnnPnWxT.js → self-tool-result-DfQGPAsW.js} +1 -1
- package/dist/client/assets/{seo-editor-CCzJc2E0.js → seo-editor-MwJKnZLt.js} +1 -1
- package/dist/client/assets/{settings-layout-DwppcUBS.js → settings-layout-Cz1dGgro.js} +1 -1
- package/dist/client/assets/{settings-section-ZQhYRZpE.js → settings-section-CbJWA4ox.js} +1 -1
- package/dist/client/assets/{shell-controls-scS1Rhux.js → shell-controls-y9aIQ7x_.js} +1 -1
- package/dist/client/assets/{shell-layout-EXrCt72h.js → shell-layout-CHO1pLCZ.js} +1 -1
- package/dist/client/assets/{sidebar-DosOHS89.js → sidebar-D45qSSBJ.js} +1 -1
- package/dist/client/assets/{skeleton-BTs-Tdu0.js → skeleton-CUb_vbtI.js} +1 -1
- package/dist/client/assets/{sso-BM8eE3tq.js → sso-DEw_qir-.js} +1 -1
- package/dist/client/assets/{store-CRnZmc6Z.js → store-Dpq3qYvJ.js} +1 -1
- package/dist/client/assets/store-registry-C2PdPDdV.js +2 -0
- package/dist/client/assets/{studio-tools-ukrAmOkD.js → studio-tools-BdW_h_mN.js} +1 -1
- package/dist/client/assets/{switch-C9pj46Z6.js → switch-CDbKvhXY.js} +1 -1
- package/dist/client/assets/{table-DWcE-ljO.js → table-CkrYAtk0.js} +1 -1
- package/dist/client/assets/{tabs-CzbcVejC.js → tabs-B-F7sREm.js} +1 -1
- package/dist/client/assets/{textarea-I-beCo8f.js → textarea-BQZjwmVD.js} +1 -1
- package/dist/client/assets/{toggle-group-CSett6iF.js → toggle-group-BZFWkaw0.js} +1 -1
- package/dist/client/assets/{toolbar-f60X9WiD.js → toolbar-DCimB-CS.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BFnmKkKr.js → toolbar-icon-button-Dmx_LFTr.js} +1 -1
- package/dist/client/assets/{tooltip-BDJ7iYv_.js → tooltip-C4U4Wgsq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-7OtHxRqt.js → use-ai-providers-T_E_id-I.js} +1 -1
- package/dist/client/assets/{use-api-keys-B-WaFIiT.js → use-api-keys-4FrVSpbE.js} +1 -1
- package/dist/client/assets/{use-automations-886ySqJq.js → use-automations-BUXtTCFy.js} +1 -1
- package/dist/client/assets/{use-autosave-CXrMNytc.js → use-autosave-z-ROfQHq.js} +1 -1
- package/dist/client/assets/{use-capability-HyvPV9Kc.js → use-capability-BHHFpvlY.js} +1 -1
- package/dist/client/assets/{use-clock-tick-ByL-Lh2G.js → use-clock-tick-DLLARH5p.js} +1 -1
- package/dist/client/assets/{use-connection-C8ytM15b.js → use-connection-B9qZKcoh.js} +1 -1
- package/dist/client/assets/{use-copy-8xFrbNwA.js → use-copy-Bxceou4m.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-vCdnBcqV.js → use-create-virtual-mcp-C1wtAgd1.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dl0bn9CK.js → use-debounced-autosave-BqrjW_-X.js} +1 -1
- package/dist/client/assets/{use-debounced-value-KA9O7hhh.js → use-debounced-value-8HNwmEkr.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DO8B21gs.js → use-deco-credits-CDbqKqht.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-ik0j7Idu.js → use-decopilot-events-Ba5vJEFF.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CB9H-v-Z.js → use-delete-connection-DgzRNG4V.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DmUmcR7f.js → use-deployment-admin-BRdbsPRi.js} +1 -1
- package/dist/client/assets/{use-file-configs-BrCSqQHA.js → use-file-configs-5ZHzVO0q.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-0_XM1a-S.js → use-infinite-scroll-D8NTXEgX.js} +1 -1
- package/dist/client/assets/{use-join-requests-DKHalNnE.js → use-join-requests-BaBGFrAY.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DlBw1ZFI.js → use-mcp-auth-status-zx0QwBf3.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DYOS_8eo.js → use-mcp-client-BVGi6TBB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BLQoKB-2.js → use-mcp-tools-Ccu0LwDs.js} +1 -1
- package/dist/client/assets/{use-members-XmfA74-e.js → use-members-B4NokiWw.js} +1 -1
- package/dist/client/assets/{use-mobile-CLI42gmv.js → use-mobile-CiKsktWu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cilssw61.js → use-navigate-to-agent-CplzdyaA.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DOOxheWY.js → use-org-auth-client-UiiHz3lJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-ClgxAraI.js → use-org-sso-BoimmJxm.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D9JXEbEX.js → use-organization-roles-B-GEX0lX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-VgIejHMx.js → use-organization-settings-B_ukpMrR.js} +1 -1
- package/dist/client/assets/{use-registry-app-DNeAw21p.js → use-registry-app-CcgCwwCh.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bluv6sTk.js → use-registry-connections-CUyHbVk3.js} +1 -1
- package/dist/client/assets/{use-secrets-3k-32-A8.js → use-secrets-CBAldYLF.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D9IFNrZv.js → use-status-sounds-Tf4OCvJi.js} +1 -1
- package/dist/client/assets/{use-view-mode-CjB0RzKt.js → use-view-mode-QxX-qVi6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B8ePNwQG.js → use-virtual-mcp-D9fGaqAR.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dnz60xMI.js +1 -0
- package/dist/client/assets/{useRouterState-DUsZKnyS.js → useRouterState-Dcu1xX09.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DR9pCTcR.js +1 -0
- package/dist/client/assets/{users-KkKpy9nz.js → users-Ha5WMRT3.js} +1 -1
- package/dist/client/assets/{variant-calendar-y8BhfKBh.js → variant-calendar-BSMTAO8T.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-RIrGcafb.js → view-mode-toggle-FgmEpZQ7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-BHz6iSrk.js +0 -1
- package/dist/client/assets/project-app-view-dFDZ7PrH.js +0 -1
- package/dist/client/assets/record-editor-JpnOewHP.js +0 -1
- package/dist/client/assets/registry-US3Gsp4u.js +0 -2
- package/dist/client/assets/store-registry-BWDgwr86.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CzUic10e.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B96CIiaZ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as E,F as ue,o as tt,e as Xe,K as X,n as oe,aZ as kn,r as N,aq as Es,m as de,j as l,v as Ds,k as Ts,B as Z,b as se,aM as Sn,t as fe,y as Fs,L as Is,f as Ls,d as Nn,u as Pn,E as Dt}from"./index-BFgGPpC8.js";import{s as Cn}from"./Eye-CbhCOWW3.js";import{a as ht}from"./Palette-B9U3WzWJ.js";import{s as Ms}from"./Plus-D8R0whKy.js";import{i as Os}from"./SearchLg-DxljGMIS.js";import{i as mt}from"./Upload01-BYmQrCvZ.js";import{s as zn}from"./XClose-B4_aZN-d.js";import{i as Ut}from"./Zap-BM4kHy7D.js";import{u as $n}from"./use-mobile-CLI42gmv.js";import{f as Rs,e as As,b as _s,A as Bs,a as Us,d as Hs,c as Ks,g as qs}from"./alert-dialog-Dlf2Maxi.js";import{a as En,b as Ue,d as nt,e as st,i as Dn,h as Ws,c as Vs}from"./dialog-DTERmMdq.js";import{I as Ye}from"./input-CsC1Diu-.js";import{F as Ne,M as Ht,d as Tn}from"./file-type-icon-DKZTktyz.js";import{T as Gs}from"./toolbar-f60X9WiD.js";import{a as Xs}from"./Package-DGdUJKLk.js";import{u as Qs}from"./use-debounced-value-KA9O7hhh.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{b as Zs,f as dt,s as Js,c as nn,d as er,g as tr,i as nr,h as In,a as Ln,j as sr,e as rr}from"./ZoomOut-BgBVt7xO.js";import{S as ce}from"./skeleton-BTs-Tdu0.js";import{T as lr}from"./textarea-I-beCo8f.js";import{t as ir}from"./ChevronDown-B5nNx5Dx.js";import{n as ar}from"./ChevronUp-DskNR2pe.js";import{i as pt}from"./X-D9a7mA7z.js";import{P as or,a as cr,b as dr}from"./popover-BHJXyBcl.js";import{b as ve,T as we,a as je}from"./tooltip-BDJ7iYv_.js";import{i as ur}from"./Check-BqUfCoBF.js";import{a as fr}from"./Copy01-CZUAh9vx.js";import{n as Ze,i as yt}from"./Globe01-xZl4NLjm.js";import{i as Mn}from"./Key01-BG2GwAxV.js";import{n as On}from"./LinkExternal01-DuM-ETL7.js";import{l as hr,F as mr}from"./index-Dq0Rv4T6.js";import{a as pr}from"./Image01-zzq68Thg.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-DCVSlDdU.js";import{i as xr}from"./LayoutLeft-CJjI1ZVY.js";import{i as br}from"./ChevronRight-BIhvsLci.js";import{t as gr}from"./Stars01-Du90yOKu.js";import{i as Rn}from"./DotsVertical-DH3n__PV.js";import{s as An}from"./Trash01-BRj8BMoQ.js";function _n(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function be(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Vt(n,e){const t=E.c(11),{org:s}=ue();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(be(s.slug,n,"list",{path:e}))).json()).entries.toSorted(yr),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let a;return t[8]!==r||t[9]!==i?(a={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=a):a=t[10],oe(a)}function yr(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Bn(n,e,t){const s=E.c(15),{org:r}=ue();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let o;s[6]!==r.slug||s[7]!==e||s[8]!==n?(o=async()=>{const f=await he(be(r.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=o):o=s[9];let d;return s[10]!==i||s[11]!==a||s[12]!==c||s[13]!==o?(d={queryKey:i,enabled:a,refetchInterval:c,queryFn:o},s[10]=i,s[11]=a,s[12]=c,s[13]=o,s[14]=d):d=s[14],oe(d)}function vr(n){const e=E.c(9),{org:t}=ue();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(be(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],oe(i)}function wr(n,e){const t=E.c(9),s=n===void 0?60:n,{org:r}=ue();let i;t[0]!==r.id?(i=X.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let c;t[2]!==s||t[3]!==r.slug?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=c):c=t[4];let o;return t[5]!==i||t[6]!==a||t[7]!==c?(o={queryKey:i,enabled:a,queryFn:c},t[5]=i,t[6]=a,t[7]=c,t[8]=o):o=t[8],oe(o)}function jr(n,e){const t=E.c(11),s=50,{org:r}=ue();let i;t[0]!==r.id||t[1]!==n?(i=X.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const a=n.length>0;let c;t[3]!==s||t[4]!==r.slug||t[5]!==n?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=c):c=t[6];let o;return t[7]!==i||t[8]!==a||t[9]!==c?(o={queryKey:i,enabled:a,placeholderData:kn,queryFn:c},t[7]=i,t[8]=a,t[9]=c,t[10]=o):o=t[10],oe(o)}function Aa(n){const e=E.c(8),{org:t}=ue();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const c=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:o}=await c.json();return o.map(kr)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],oe(a)}function kr(n){return{volume:n.volume,path:n.path}}async function _a(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function Sr(n,e,t){return(await he(be(n,e,"read",{path:t}))).text()}const Nr=new Set(["md","mdx","markdown","txt","text"]),Pr=25,Cr=64*1024,zr=256*1024,$r=4;function Er(n){const e=n.lastIndexOf(".");return e===-1?!1:Nr.has(n.slice(e+1).toLowerCase())}async function Ba(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],c=[{path:t,depth:0}];for(;c.length>0;){const u=c.shift();if(!u)break;let h;try{h=(await(await he(be(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,x)=>p.path.localeCompare(x.path))){if(m.kind==="dir"){u.depth<$r&&c.push({path:m.path,depth:u.depth+1});continue}Er(m.path)&&m.size<=Cr&&i.length<Pr?i.push(m.path):a.push(r(m.path))}}const o=await Promise.all(i.map(u=>Sr(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=o[h];if(m==null||f+m.length>zr){a.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),a.sort(),{files:d,omittedPaths:a}}function Un(){const n=E.c(7),{org:e}=ue();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],oe(r)}function Dr(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>be(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function rt(){const n=E.c(2),{org:e}=ue();let t;return n[0]!==e.slug?(t=(s,r)=>be(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function Hn(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(be(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Xe(s)}function Tr(n){const e=E.c(18),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(be(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let c;e[9]!==t||e[10]!==s||e[11]!==n?(c=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=c):c=e[12];let o;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==c?(o={mutationFn:r,onMutate:i,onError:a,onSettled:c},e[13]=r,e[14]=i,e[15]=a,e[16]=c,e[17]=o):o=e[17],Xe(o)}function Rt(n){const e=E.c(26),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async b=>{const j=(await Promise.allSettled(b.files.map(k=>{const C=b.dir?`${b.dir}/${k.name}`:k.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":k.type||"application/octet-stream"},body:k})}))).find(Fr);if(j)throw j.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let c;e[7]!==i||e[8]!==a?(c={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=c):c=e[9];const o=Xe(c);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(be(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=Xe(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(be(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=Xe(m);let x;return e[22]!==u||e[23]!==p||e[24]!==o?(x={upload:o,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=o,e[25]=x):x=e[25],x}function Fr(n){return n.status==="rejected"}const vt=N.createContext(null);vt.displayName="PanelGroupContext";const te={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Fe=N.useLayoutEffect,sn=Es.useId,Ir=typeof sn=="function"?sn:()=>null;let Lr=0;function Xt(n=null){const e=Ir(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Lr++),n??t.current}function Kn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:a,maxSize:c,minSize:o,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const b=N.useContext(vt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:j,getPanelSize:k,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),w=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:c,minSize:o},id:A,idIsFromProps:a!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:q,constraints:K}=w.current,U={...K};w.current.id=A,w.current.idIsFromProps=a!==void 0,w.current.order=h,q.onCollapse=d,q.onExpand=f,q.onResize=u,K.collapsedSize=t,K.collapsible=s,K.defaultSize=r,K.maxSize=c,K.minSize=o,(U.collapsedSize!==K.collapsedSize||U.collapsible!==K.collapsible||U.maxSize!==K.maxSize||U.minSize!==K.minSize)&&g(w.current,U)}),Fe(()=>{const q=w.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(w.current)},expand:q=>{j(w.current,q)},getId(){return A},getSize(){return k(w.current)},isCollapsed(){return v(w.current)},isExpanded(){return!v(w.current)},resize:q=>{W(w.current,q)}}),[y,j,k,v,A,W]);const G=C(w.current,r);return N.createElement(p,{...x,children:n,className:e,id:A,style:{...G,...m},[te.groupId]:S,[te.panel]:"",[te.panelCollapsible]:s||void 0,[te.panelId]:A,[te.panelSize]:parseFloat(""+G.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Kn,{...n,forwardedRef:e}));Kn.displayName="Panel";qn.displayName="forwardRef(Panel)";let At=null,ft=-1,Ce=null;function Mr(n,e){if(e){const t=(e&Qn)!==0,s=(e&Yn)!==0,r=(e&Zn)!==0,i=(e&Jn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Or(){Ce!==null&&(document.head.removeChild(Ce),At=null,Ce=null,ft=-1)}function Tt(n,e){var t,s;const r=Mr(n,e);if(At!==r){if(At=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Wn(n){return n.type==="keydown"}function Vn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function wt(n){if(Vn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Gn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rr(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ar(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function _r(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:an(n),b:an(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:ln(rn(t.a)),b:ln(rn(t.b))};if(r.a===r.b){const i=s.childNodes,a={a:t.a.at(-1),b:t.b.at(-1)};let c=i.length;for(;c--;){const o=i[c];if(o===a.a)return 1;if(o===a.b)return-1}}return Math.sign(r.a-r.b)}const Br=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ur(n){var e;const t=getComputedStyle((e=Xn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hr(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ur(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Br.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function rn(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Hr(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function an(n){const e=[];for(;n;)e.push(n),n=Xn(n);return e}function Xn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Qn=1,Yn=2,Zn=4,Jn=8,Kr=Rr()==="coarse";let ge=[],Be=!1,Te=new Map,jt=new Map;const Je=new Set;function qr(n,e,t,s,r){var i;const{ownerDocument:a}=e,c={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},o=(i=Te.get(a))!==null&&i!==void 0?i:0;return Te.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=Te.get(a))!==null&&f!==void 0?f:1;if(Te.set(a,u-1),xt(),u===1&&Te.delete(a),ge.includes(c)){const h=ge.indexOf(c);h>=0&&ge.splice(h,1),Yt(),r("up",!0,null)}}}function Wr(n){const{target:e}=n,{x:t,y:s}=wt(n);Be=!0,Qt({target:e,x:t,y:s}),xt(),ge.length>0&&(bt("down",n),n.preventDefault(),es(e)||n.stopImmediatePropagation())}function Ft(n){const{x:e,y:t}=wt(n);if(Be&&n.buttons===0&&(Be=!1,bt("up",n)),!Be){const{target:s}=n;Qt({target:s,x:e,y:t})}bt("move",n),Yt(),ge.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=wt(n);jt.clear(),Be=!1,ge.length>0&&(n.preventDefault(),es(e)||n.stopImmediatePropagation()),bt("up",n),Qt({target:e,x:t,y:s}),Yt(),xt()}function es(n){let e=n;for(;e;){if(e.hasAttribute(te.resizeHandle))return!0;e=e.parentElement}return!1}function Qt({target:n,x:e,y:t}){ge.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Je.forEach(r=>{const{element:i,hitAreaMargins:a}=r,c=i.getBoundingClientRect(),{bottom:o,left:d,right:f,top:u}=c,h=Kr?a.coarse:a.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=o+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&_r(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ar(p.getBoundingClientRect(),c)){x=!0;break}p=p.parentElement}if(x)return}ge.push(r)}})}function Lt(n,e){jt.set(n,e)}function Yt(){let n=!1,e=!1;ge.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;jt.forEach(s=>{t|=s}),n&&e?Tt("intersection",t):n?Tt("horizontal",t):e?Tt("vertical",t):Or()}let Mt=new AbortController;function xt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Je.size&&(Be?(ge.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Ft,n),s.addEventListener("pointermove",Ft,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Wr,n),s.addEventListener("pointermove",Ft,n))}))}function bt(n,e){Je.forEach(t=>{const{setResizeHandlerState:s}=t,r=ge.includes(t);s(n,r,e)})}function Vr(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Le(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function ke(n,e,t=Gt){return Le(n,e,t)===0}function xe(n,e,t){return Le(n,e,t)===0}function Gr(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!xe(r,i,t))return!1}return!0}function _e({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:a=100,minSize:c=0}=s;if(Le(t,c)<0)if(i){const o=(r+c)/2;Le(t,o)<0?t=r:t=c}else t=c;return t=Math.min(a,t),t=parseFloat(t.toFixed(Gt)),t}function We({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(xe(n,0))return e;const a=[...e],[c,o]=s;V(c!=null,"Invalid first pivot index"),V(o!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?o:c,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,m)){const y=x-b;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const u=n<0?c:o,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,x)){const y=b-m;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const u=n<0?1:-1;let h=n<0?o:c,m=0;for(;;){const x=e[h];V(x!=null,`Previous layout not found for panel index ${h}`);const y=_e({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=y,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?c:o;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,b=_e({panelConstraints:t,panelIndex:h,size:x});if(!xe(p,b)&&(d+=p-b,a[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Gr(r,a))return r;{const u=n<0?o:c,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=_e({panelConstraints:t,panelIndex:u,size:m});if(a[u]=p,!xe(p,m)){let x=m-p,y=n<0?o:c;for(;y>=0&&y<t.length;){const j=a[y];V(j!=null,`Previous layout not found for panel index ${y}`);const k=j+x,C=_e({panelConstraints:t,panelIndex:y,size:k});if(xe(j,C)||(x-=C-j,a[y]=C),xe(x,0))break;n>0?y--:y++}}}const f=a.reduce((u,h)=>h+u,0);return xe(f,100)?a:r}function Xr({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,a=0;const c=t[0];V(c!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===c?(s=x,r=p):(i+=x,a+=p)});const o=Math.min(r,100-i),d=Math.max(s,100-a),f=n[c];return{valueMax:o,valueMin:d,valueNow:f}}function et(n,e=document){return Array.from(e.querySelectorAll(`[${te.resizeHandleId}][data-panel-group-id="${n}"]`))}function ts(n,e,t=document){const r=et(n,t).findIndex(i=>i.getAttribute(te.resizeHandleId)===e);return r??null}function ns(n,e,t){const s=ts(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ss(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function kt(n,e=document){const t=e.querySelector(`[${te.resizeHandleId}="${n}"]`);return t||null}function Qr(n,e,t,s=document){var r,i,a,c;const o=kt(e,s),d=et(n,s),f=o?d.indexOf(o):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(a=(c=t[f+1])===null||c===void 0?void 0:c.id)!==null&&a!==void 0?a:null;return[u,h]}function Yr({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:a}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const c=et(t,i);for(let o=0;o<r.length-1;o++){const{valueMax:d,valueMin:f,valueNow:u}=Xr({layout:s,panelsArray:r,pivotIndices:[o,o+1]}),h=c[o];if(h!=null){const m=r[o];V(m,`No panel data found for index "${o}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{c.forEach((o,d)=>{o.removeAttribute("aria-controls"),o.removeAttribute("aria-valuemax"),o.removeAttribute("aria-valuemin"),o.removeAttribute("aria-valuenow")})}},[t,s,r,i]),N.useEffect(()=>{if(!i)return;const c=e.current;V(c,"Eager values not found");const{panelDataArray:o}=c,d=ss(t,i);V(d!=null,`No group found for id "${t}"`);const f=et(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(te.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,x]=Qr(t,m,o,i);if(p==null||x==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const j=o.findIndex(k=>k.id===p);if(j>=0){const k=o[j];V(k,`No panel data found for index ${j}`);const C=s[j],{collapsedSize:S=0,collapsible:v,minSize:g=0}=k.constraints;if(C!=null&&v){const $=We({delta:xe(C,S)?g-S:S-C,initialLayout:s,panelConstraints:o.map(W=>W.constraints),pivotIndices:ns(t,m,i),prevLayout:s,trigger:"keyboard"});s!==$&&a($)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,a])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function rs(n,e){const t=n==="horizontal",{x:s,y:r}=wt(e);return t?s:r}function Zr(n,e,t,s,r){const i=t==="horizontal",a=kt(e,r);V(a,`No resize handle element found for id "${e}"`);const c=a.getAttribute(te.groupId);V(c,"Resize handle element has no group id attribute");let{initialCursorPosition:o}=s;const d=rs(t,n),f=ss(c,r);V(f,`No group element found for id "${c}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-o)/h*100}function Jr(n,e,t,s,r,i){if(Wn(n)){const a=t==="horizontal";let c=0;n.shiftKey?c=100:r!=null?c=r:c=10;let o=0;switch(n.key){case"ArrowDown":o=a?0:c;break;case"ArrowLeft":o=a?-c:0;break;case"ArrowRight":o=a?c:0;break;case"ArrowUp":o=a?0:-c;break;case"End":o=100;break;case"Home":o=-100;break}return o}else return s==null?0:Zr(n,e,t,s,i)}function el({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;c!=null&&(s++,e[i]=c,r-=c)}for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;if(c!=null)continue;const o=n.length-s,d=r/o;s++,e[i]=d,r-=d}return e}function Oe(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:a,constraints:c,id:o}=i,{collapsedSize:d=0,collapsible:f}=c,u=t[o];if(u==null||s!==u){t[o]=s;const{onCollapse:h,onExpand:m,onResize:p}=a;p&&p(s,u),f&&(h||m)&&(m&&(u==null||ke(u,d))&&!ke(s,d)&&m(),h&&(u==null||!ke(u,d))&&ke(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function tl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const a=t[r];let c;return a==null?c=n!=null?n.toPrecision(i):"1":s.length===1?c="1":c=a.toPrecision(i),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function nl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ls(n){return`react-resizable-panels:${n}`}function is(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function as(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function sl(n,e,t){var s,r;const i=(s=as(n,t))!==null&&s!==void 0?s:{},a=is(e);return(r=i[a])!==null&&r!==void 0?r:null}function rl(n,e,t,s,r){var i;const a=ls(n),c=is(e),o=(i=as(n,r))!==null&&i!==void 0?i:{};o[c]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(a,JSON.stringify(o))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,a)=>i+a,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!xe(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=100/s*a;t[i]=c}let r=0;for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=_e({panelConstraints:e,panelIndex:i,size:a});a!=c&&(r+=a-c,t[i]=c)}if(!xe(r,0))for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=a+r,o=_e({panelConstraints:e,panelIndex:i,size:c});if(a!==o&&(r-=o-a,t[i]=o,xe(r,0)))break}return t}const ll=100,Ve={getItem:n=>(cn(Ve),Ve.getItem(n)),setItem:(n,e)=>{cn(Ve),Ve.setItem(n,e)}},un={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:a=null,keyboardResizeBy:c=null,storage:o=Ve,style:d,tagName:f="div",...u}){const h=Xt(i),m=N.useRef(null),[p,x]=N.useState(null),[b,y]=N.useState([]),j=Vr(),k=N.useRef({}),C=N.useRef(new Map),S=N.useRef(0),v=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:c,onLayout:a,storage:o}),g=N.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=g.current;return P},setLayout:P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current,T=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,T)||(y(T),g.current.layout=T,I&&I(T),Oe(F,T,k.current))}}),[]),Fe(()=>{v.current.autoSaveId=n,v.current.direction=s,v.current.dragState=p,v.current.id=h,v.current.onLayout=a,v.current.storage=o}),Yr({committedValuesRef:v,eagerValuesRef:g,groupId:h,layout:b,panelDataArray:g.current.panelDataArray,setLayout:y,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:P}=g.current;if(n){if(b.length===0||b.length!==P.length)return;let I=un[n];I==null&&(I=nl(rl,ll),un[n]=I);const O=[...P],F=new Map(C.current);I(n,O,F,b,o)}},[n,b,o]),N.useEffect(()=>{});const $=N.useCallback(P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current;if(P.constraints.collapsible){const T=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=De(F,P,O);if(V(Y!=null,`Panel size not found for panel "${P.id}"`),!ke(Y,R)){C.current.set(P.id,Y);const pe=Re(F,P)===F.length-1?Y-R:R-Y,z=We({delta:pe,initialLayout:O,panelConstraints:T,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,k.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current;if(P.constraints.collapsible){const R=T.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=De(T,P,F),z=I??me;if(ke(ee,Y)){const J=C.current.get(P.id),ie=J!=null&&J>=z?J:z,$e=Re(T,P)===T.length-1?ee-ie:ie-ee,ae=We({delta:$e,initialLayout:F,panelConstraints:R,pivotIndices:pe,prevLayout:F,trigger:"imperative-api"});ut(F,ae)||(y(ae),g.current.layout=ae,O&&O(ae),Oe(T,ae,k.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=De(O,P,I);return V(F!=null,`Panel size not found for panel "${P.id}"`),F},[]),A=N.useCallback((P,I)=>{const{panelDataArray:O}=g.current,F=Re(O,P);return tl({defaultSize:I,dragState:p,layout:b,panelData:O,panelIndex:F})},[p,b]),w=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),T===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!T||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const T=O.order,R=F.order;return T==null&&R==null?0:T==null?-1:R==null?1:T-R}),g.current.panelDataArrayChanged=!0,j()},[j]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:T}=g.current;let R=null;if(P){const ee=sl(P,T,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:T}));const Y=dn({layout:R,panelConstraints:T.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(T,Y,k.current))}}),Fe(()=>{const P=g.current;return()=>{P.layout=[]}},[]);const K=N.useCallback(P=>{let I=!1;const O=m.current;return O&&window.getComputedStyle(O,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(T){T.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Y,dragState:ee,id:me,keyboardResizeBy:pe,onLayout:z}=v.current,{layout:J,panelDataArray:ie}=g.current,{initialLayout:ye}=ee??{},$e=ns(me,P,R);let ae=Jr(T,P,Y,ee,pe,R);const Ke=Y==="horizontal";Ke&&I&&(ae=-ae);const $t=ie.map(Et=>Et.constraints),Ee=We({delta:ae,initialLayout:ye??J,panelConstraints:$t,pivotIndices:$e,prevLayout:J,trigger:Wn(T)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(T)||Gn(T))&&S.current!=ae&&(S.current=ae,!ot&&ae!==0?Ke?Lt(P,ae<0?Qn:Yn):Lt(P,ae<0?Zn:Jn):Lt(P,0)),ot&&(y(Ee),g.current.layout=Ee,z&&z(Ee),Oe(ie,Ee,k.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current,R=T.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=De(T,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(T,P)===T.length-1?Y-I:I-Y,z=We({delta:pe,initialLayout:F,panelConstraints:R,pivotIndices:ee,prevLayout:F,trigger:"imperative-api"});ut(F,z)||(y(z),g.current.layout=z,O&&O(z),Oe(T,z,k.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:T=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=De(F,P,O);z!=null&&(R&&ee&&ke(z,T)?ke(T,Y)||U(P,Y):z<pe?U(P,pe):z>me&&U(P,me))},[U]),_=N.useCallback((P,I)=>{const{direction:O}=v.current,{layout:F}=g.current;if(!m.current)return;const T=kt(P,m.current);V(T,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:R,initialLayout:F})},[]),Q=N.useCallback(()=>{x(null)},[]),le=N.useCallback(P=>{const{panelDataArray:I}=g.current,O=Re(I,P);O>=0&&(I.splice(O,1),delete k.current[P.id],g.current.panelDataArrayChanged=!0,j())},[j]),D=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:w,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,w,G,H,q,K,U,_,Q,le]),B={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(vt.Provider,{value:D},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...B,...d},[te.group]:"",[te.groupDirection]:s,[te.groupId]:h}))}const cs=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";cs.displayName="forwardRef(PanelGroup)";function Re(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Re(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],a=t[s];return{...e.constraints,panelSize:a,pivotIndices:i}}function il({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const r=kt(e,s);if(r==null)return;const i=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),t(a);break}case"F6":{a.preventDefault();const c=r.getAttribute(te.groupId);V(c,`No group element found for id "${c}"`);const o=et(c,s),d=ts(c,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=a.shiftKey?d>0?d-1:o.length-1:d+1<o.length?d+1:0;o[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function ds({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:a,onDragging:c,onFocus:o,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,b;const y=N.useRef(null),j=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{j.current.onClick=a,j.current.onDragging=c,j.current.onPointerDown=d,j.current.onPointerUp=f});const k=N.useContext(vt);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=k,M=Xt(r),[A,w]=N.useState("inactive"),[G,q]=N.useState(!1),[K,U]=N.useState(null),H=N.useRef({state:A});Fe(()=>{H.current.state=A}),N.useEffect(()=>{if(t)U(null);else{const D=v(M);U(()=>D)}},[t,M,v]);const _=(x=s?.coarse)!==null&&x!==void 0?x:15,Q=(b=s?.fine)!==null&&b!==void 0?b:5;N.useEffect(()=>{if(t||K==null)return;const D=y.current;V(D,"Element ref not attached");let B=!1;return qr(M,D,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){w("inactive");return}switch(I){case"down":{w("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:T,onPointerDown:R}=j.current;T?.(!0),R?.();break}case"move":{const{state:T}=H.current;B=!0,T!=="drag"&&w("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{w("hover"),$();const{onClick:T,onDragging:R,onPointerUp:Y}=j.current;R?.(!1),Y?.(),B||T?.();break}}})},[_,C,t,Q,v,M,K,g,$]),il({disabled:t,handleId:M,resizeHandler:K,panelGroupElement:W});const le={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{q(!1),i?.()},onFocus:()=>{q(!0),o?.()},ref:y,role:"separator",style:{...le,...u},tabIndex:h,[te.groupDirection]:C,[te.groupId]:S,[te.resizeHandle]:"",[te.resizeHandleActive]:A==="drag"?"pointer":G?"keyboard":void 0,[te.resizeHandleEnabled]:!t,[te.resizeHandleId]:M,[te.resizeHandleState]:A})}ds.displayName="PanelResizeHandle";function al(n){const e=E.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let a;return e[6]!==s||e[7]!==r||e[8]!==i?(a=l.jsx(cs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=a):a=e[9],a}function fn(n){const e=E.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ol(n){const e=E.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let a;e[6]!==r?(a=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Zs,{className:"size-2.5"})}),e[6]=r,e[7]=a):a=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==a?(c=l.jsx(ds,{"data-slot":"resizable-handle",className:i,...s,children:a}),e[8]=s,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}function cl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function dl(n){if(cl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ul(n){try{return decodeURIComponent(n)}catch{return n}}function fl(n){return dl(n),encodeURIComponent(n)}function hl(n){return`.deco/blocks/${fl(n)}.json`}function Ua(n){return`/${hl(n)}`}const Ha=1e4,ml=3;function _t(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function St(n){return n.startsWith("/")?n.slice(1):n}function Ka(n){const e=St(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function He(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function pl(n){const e=He(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qa(n,e){const t=e.replace(/^\/+|\/+$/g,"");return He(t?`${n==="/"?"":n}/${t}`:n)}function Wa(n,e){return e==="directory"?n:pl(n)}function Va(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function xl(n){const e=St(n);return e?e.split("/").filter(Boolean).length:0}function Ga(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xa(n,e){return xl(n)>=ml&&!e.has(n)}function Qa(n,e,t=[]){const s=St(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ya(n){const e=St(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ul(s)}function bl(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const gl="#94a3b8";function Za(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:dt,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:dt,color:"#d9a441"}:e.endsWith(".json")?{Icon:Js,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:dt,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:dt,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:pr,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:nn,color:"#64748b"}:{Icon:nn,color:gl}}function Ja(n){const e=_t(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function eo(n,e=[]){const t={path:"/",children:[]},s=new Map,r=c=>{let o=s.get(c.path);return o||(o=new Map,s.set(c.path,o)),o},i=c=>{const d=_t(c).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=r(f);let p=m.get(h);p?p.kind==="file"&&(p.kind="directory"):(p={name:h,path:u,kind:"directory",children:[]},f.children.push(p),m.set(h,p)),f=p}};for(const c of n){const d=_t(c).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=r(f);let b=x.get(h);b||(b={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(b),x.set(h,b)),f=b})}for(const c of e)i(He(c));const a=c=>{c.sort((o,d)=>o.kind!==d.kind?o.kind==="directory"?-1:1:o.name.localeCompare(d.name));for(const o of c)o.children.length>0&&a(o.children)};return a(t.children),t.children}function yl(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...yl(r.children,e,t+1)));return s}function to(n){const e=[];for(const t of n.split(`
|
|
1
|
+
import{c as E,F as ue,o as tt,e as Xe,K as X,n as oe,aZ as kn,r as N,aq as Es,m as de,j as l,v as Ds,k as Ts,B as Z,b as se,aM as Sn,t as fe,y as Fs,L as Is,f as Ls,d as Nn,u as Pn,E as Dt}from"./index-_mKxmArS.js";import{s as Cn}from"./Eye-CWa5dXIE.js";import{a as ht}from"./Palette-p7QyTC7O.js";import{s as Ms}from"./Plus-Dt2Yhyfh.js";import{i as Os}from"./SearchLg-BBp_s4Dj.js";import{i as mt}from"./Upload01-Cfc7GuB6.js";import{s as zn}from"./XClose-BMwC2_sa.js";import{i as Ut}from"./Zap-BZm41LU9.js";import{u as $n}from"./use-mobile-CiKsktWu.js";import{f as Rs,e as As,b as _s,A as Bs,a as Us,d as Hs,c as Ks,g as qs}from"./alert-dialog-BH_YxgzX.js";import{a as En,b as Ue,d as nt,e as st,i as Dn,h as Ws,c as Vs}from"./dialog-l3xsGghG.js";import{I as Ye}from"./input-DbUxhT6M.js";import{F as Ne,M as Ht,d as Tn}from"./file-type-icon-kQHE0NHO.js";import{T as Gs}from"./toolbar-DCimB-CS.js";import{a as Xs}from"./Package-mMextKzb.js";import{u as Qs}from"./use-debounced-value-8HNwmEkr.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{b as Zs,f as dt,s as Js,c as nn,d as er,g as tr,i as nr,h as In,a as Ln,j as sr,e as rr}from"./ZoomOut-BSj54N9w.js";import{S as ce}from"./skeleton-CUb_vbtI.js";import{T as lr}from"./textarea-BQZjwmVD.js";import{t as ir}from"./ChevronDown-DZ-jDRym.js";import{n as ar}from"./ChevronUp-CQzKniDQ.js";import{i as pt}from"./X-B40Y8kiW.js";import{P as or,a as cr,b as dr}from"./popover-DpFbBkBo.js";import{b as ve,T as we,a as je}from"./tooltip-C4U4Wgsq.js";import{i as ur}from"./Check-DvvfRjUe.js";import{a as fr}from"./Copy01-DGEOyuGr.js";import{n as Ze,i as yt}from"./Globe01-ZdvsPDpI.js";import{i as Mn}from"./Key01-B4xADcX6.js";import{n as On}from"./LinkExternal01-DL_QKpQ5.js";import{l as hr,F as mr}from"./index-DiGSBNNS.js";import{a as pr}from"./Image01-FyQXnSXj.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-Bir5Fgmh.js";import{i as xr}from"./LayoutLeft-DDMDiPaa.js";import{i as br}from"./ChevronRight-DmaF2KcG.js";import{t as gr}from"./Stars01-BY37QciR.js";import{i as Rn}from"./DotsVertical-CWjsr_al.js";import{s as An}from"./Trash01-14_1Tnwj.js";function _n(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function be(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function he(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Vt(n,e){const t=E.c(11),{org:s}=ue();let r;t[0]!==s.id||t[1]!==e||t[2]!==n?(r=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=r):r=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await he(be(s.slug,n,"list",{path:e}))).json()).entries.toSorted(yr),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let a;return t[8]!==r||t[9]!==i?(a={queryKey:r,placeholderData:kn,queryFn:i},t[8]=r,t[9]=i,t[10]=a):a=t[10],oe(a)}function yr(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function Bn(n,e,t){const s=E.c(15),{org:r}=ue();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let o;s[6]!==r.slug||s[7]!==e||s[8]!==n?(o=async()=>{const f=await he(be(r.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=r.slug,s[7]=e,s[8]=n,s[9]=o):o=s[9];let d;return s[10]!==i||s[11]!==a||s[12]!==c||s[13]!==o?(d={queryKey:i,enabled:a,refetchInterval:c,queryFn:o},s[10]=i,s[11]=a,s[12]=c,s[13]=o,s[14]=d):d=s[14],oe(d)}function vr(n){const e=E.c(9),{org:t}=ue();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async()=>await(await he(be(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,queryFn:r},e[6]=s,e[7]=r,e[8]=i):i=e[8],oe(i)}function wr(n,e){const t=E.c(9),s=n===void 0?60:n,{org:r}=ue();let i;t[0]!==r.id?(i=X.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let c;t[2]!==s||t[3]!==r.slug?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=c):c=t[4];let o;return t[5]!==i||t[6]!==a||t[7]!==c?(o={queryKey:i,enabled:a,queryFn:c},t[5]=i,t[6]=a,t[7]=c,t[8]=o):o=t[8],oe(o)}function jr(n,e){const t=E.c(11),s=50,{org:r}=ue();let i;t[0]!==r.id||t[1]!==n?(i=X.orgFsSearch(r.id,n),t[0]=r.id,t[1]=n,t[2]=i):i=t[2];const a=n.length>0;let c;t[3]!==s||t[4]!==r.slug||t[5]!==n?(c=async()=>(await(await he(`/api/${encodeURIComponent(r.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=r.slug,t[5]=n,t[6]=c):c=t[6];let o;return t[7]!==i||t[8]!==a||t[9]!==c?(o={queryKey:i,enabled:a,placeholderData:kn,queryFn:c},t[7]=i,t[8]=a,t[9]=c,t[10]=o):o=t[10],oe(o)}function Aa(n){const e=E.c(8),{org:t}=ue();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const c=await he(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:o}=await c.json();return o.map(kr)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],oe(a)}function kr(n){return{volume:n.volume,path:n.path}}async function _a(n){const e=await he(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function Sr(n,e,t){return(await he(be(n,e,"read",{path:t}))).text()}const Nr=new Set(["md","mdx","markdown","txt","text"]),Pr=25,Cr=64*1024,zr=256*1024,$r=4;function Er(n){const e=n.lastIndexOf(".");return e===-1?!1:Nr.has(n.slice(e+1).toLowerCase())}async function Ba(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],c=[{path:t,depth:0}];for(;c.length>0;){const u=c.shift();if(!u)break;let h;try{h=(await(await he(be(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,x)=>p.path.localeCompare(x.path))){if(m.kind==="dir"){u.depth<$r&&c.push({path:m.path,depth:u.depth+1});continue}Er(m.path)&&m.size<=Cr&&i.length<Pr?i.push(m.path):a.push(r(m.path))}}const o=await Promise.all(i.map(u=>Sr(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=o[h];if(m==null||f+m.length>zr){a.push(r(u));return}f+=m.length,d.push({relPath:r(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),a.sort(),{files:d,omittedPaths:a}}function Un(){const n=E.c(7),{org:e}=ue();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await he(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],oe(r)}function Dr(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>be(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function rt(){const n=E.c(2),{org:e}=ue();let t;return n[0]!==e.slug?(t=(s,r)=>be(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function Hn(n){const e=E.c(3),{org:t}=ue();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await he(be(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Xe(s)}function Tr(n){const e=E.c(18),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==n?(r=async d=>(await(await he(be(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let c;e[9]!==t||e[10]!==s||e[11]!==n?(c=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=c):c=e[12];let o;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==c?(o={mutationFn:r,onMutate:i,onError:a,onSettled:c},e[13]=r,e[14]=i,e[15]=a,e[16]=c,e[17]=o):o=e[17],Xe(o)}function Rt(n){const e=E.c(26),{org:t}=ue(),s=tt();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async b=>{const j=(await Promise.allSettled(b.files.map(k=>{const C=b.dir?`${b.dir}/${k.name}`:k.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":k.type||"application/octet-stream"},body:k})}))).find(Fr);if(j)throw j.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let c;e[7]!==i||e[8]!==a?(c={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=c):c=e[9];const o=Xe(c);let d;e[10]!==t||e[11]!==n?(d=async b=>{await he(be(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=Xe(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await he(be(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=Xe(m);let x;return e[22]!==u||e[23]!==p||e[24]!==o?(x={upload:o,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=o,e[25]=x):x=e[25],x}function Fr(n){return n.status==="rejected"}const vt=N.createContext(null);vt.displayName="PanelGroupContext";const te={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Fe=N.useLayoutEffect,sn=Es.useId,Ir=typeof sn=="function"?sn:()=>null;let Lr=0;function Xt(n=null){const e=Ir(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Lr++),n??t.current}function Kn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:r,forwardedRef:i,id:a,maxSize:c,minSize:o,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const b=N.useContext(vt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:j,getPanelSize:k,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),w=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:r,maxSize:c,minSize:o},id:A,idIsFromProps:a!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Fe(()=>{const{callbacks:q,constraints:K}=w.current,U={...K};w.current.id=A,w.current.idIsFromProps=a!==void 0,w.current.order=h,q.onCollapse=d,q.onExpand=f,q.onResize=u,K.collapsedSize=t,K.collapsible=s,K.defaultSize=r,K.maxSize=c,K.minSize=o,(U.collapsedSize!==K.collapsedSize||U.collapsible!==K.collapsible||U.maxSize!==K.maxSize||U.minSize!==K.minSize)&&g(w.current,U)}),Fe(()=>{const q=w.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(w.current)},expand:q=>{j(w.current,q)},getId(){return A},getSize(){return k(w.current)},isCollapsed(){return v(w.current)},isExpanded(){return!v(w.current)},resize:q=>{W(w.current,q)}}),[y,j,k,v,A,W]);const G=C(w.current,r);return N.createElement(p,{...x,children:n,className:e,id:A,style:{...G,...m},[te.groupId]:S,[te.panel]:"",[te.panelCollapsible]:s||void 0,[te.panelId]:A,[te.panelSize]:parseFloat(""+G.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Kn,{...n,forwardedRef:e}));Kn.displayName="Panel";qn.displayName="forwardRef(Panel)";let At=null,ft=-1,Ce=null;function Mr(n,e){if(e){const t=(e&Qn)!==0,s=(e&Yn)!==0,r=(e&Zn)!==0,i=(e&Jn)!==0;if(t)return r?"se-resize":i?"ne-resize":"e-resize";if(s)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Or(){Ce!==null&&(document.head.removeChild(Ce),At=null,Ce=null,ft=-1)}function Tt(n,e){var t,s;const r=Mr(n,e);if(At!==r){if(At=r,Ce===null&&(Ce=document.createElement("style"),document.head.appendChild(Ce)),ft>=0){var i;(i=Ce.sheet)===null||i===void 0||i.removeRule(ft)}ft=(t=(s=Ce.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${r} !important;}`))!==null&&t!==void 0?t:-1}}function Wn(n){return n.type==="keydown"}function Vn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function wt(n){if(Vn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Gn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rr(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ar(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function _r(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:an(n),b:an(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;V(s,"Stacking order can only be calculated for elements with a common ancestor");const r={a:ln(rn(t.a)),b:ln(rn(t.b))};if(r.a===r.b){const i=s.childNodes,a={a:t.a.at(-1),b:t.b.at(-1)};let c=i.length;for(;c--;){const o=i[c];if(o===a.a)return 1;if(o===a.b)return-1}}return Math.sign(r.a-r.b)}const Br=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Ur(n){var e;const t=getComputedStyle((e=Xn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Hr(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Ur(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Br.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function rn(n){let e=n.length;for(;e--;){const t=n[e];if(V(t,"Missing node"),Hr(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function an(n){const e=[];for(;n;)e.push(n),n=Xn(n);return e}function Xn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Qn=1,Yn=2,Zn=4,Jn=8,Kr=Rr()==="coarse";let ge=[],Be=!1,Te=new Map,jt=new Map;const Je=new Set;function qr(n,e,t,s,r){var i;const{ownerDocument:a}=e,c={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:r},o=(i=Te.get(a))!==null&&i!==void 0?i:0;return Te.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=Te.get(a))!==null&&f!==void 0?f:1;if(Te.set(a,u-1),xt(),u===1&&Te.delete(a),ge.includes(c)){const h=ge.indexOf(c);h>=0&&ge.splice(h,1),Yt(),r("up",!0,null)}}}function Wr(n){const{target:e}=n,{x:t,y:s}=wt(n);Be=!0,Qt({target:e,x:t,y:s}),xt(),ge.length>0&&(bt("down",n),n.preventDefault(),es(e)||n.stopImmediatePropagation())}function Ft(n){const{x:e,y:t}=wt(n);if(Be&&n.buttons===0&&(Be=!1,bt("up",n)),!Be){const{target:s}=n;Qt({target:s,x:e,y:t})}bt("move",n),Yt(),ge.length>0&&n.preventDefault()}function It(n){const{target:e}=n,{x:t,y:s}=wt(n);jt.clear(),Be=!1,ge.length>0&&(n.preventDefault(),es(e)||n.stopImmediatePropagation()),bt("up",n),Qt({target:e,x:t,y:s}),Yt(),xt()}function es(n){let e=n;for(;e;){if(e.hasAttribute(te.resizeHandle))return!0;e=e.parentElement}return!1}function Qt({target:n,x:e,y:t}){ge.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Je.forEach(r=>{const{element:i,hitAreaMargins:a}=r,c=i.getBoundingClientRect(),{bottom:o,left:d,right:f,top:u}=c,h=Kr?a.coarse:a.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=o+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&_r(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ar(p.getBoundingClientRect(),c)){x=!0;break}p=p.parentElement}if(x)return}ge.push(r)}})}function Lt(n,e){jt.set(n,e)}function Yt(){let n=!1,e=!1;ge.forEach(s=>{const{direction:r}=s;r==="horizontal"?n=!0:e=!0});let t=0;jt.forEach(s=>{t|=s}),n&&e?Tt("intersection",t):n?Tt("horizontal",t):e?Tt("vertical",t):Or()}let Mt=new AbortController;function xt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Je.size&&(Be?(ge.length>0&&Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",It,n),s.addEventListener("pointerleave",Ft,n),s.addEventListener("pointermove",Ft,n))}),window.addEventListener("pointerup",It,n),window.addEventListener("pointercancel",It,n)):Te.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Wr,n),s.addEventListener("pointermove",Ft,n))}))}function bt(n,e){Je.forEach(t=>{const{setResizeHandlerState:s}=t,r=ge.includes(t);s(n,r,e)})}function Vr(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function V(n,e){if(!n)throw console.error(e),Error(e)}function Le(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function ke(n,e,t=Gt){return Le(n,e,t)===0}function xe(n,e,t){return Le(n,e,t)===0}function Gr(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const r=n[s],i=e[s];if(!xe(r,i,t))return!1}return!0}function _e({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];V(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:a=100,minSize:c=0}=s;if(Le(t,c)<0)if(i){const o=(r+c)/2;Le(t,o)<0?t=r:t=c}else t=c;return t=Math.min(a,t),t=parseFloat(t.toFixed(Gt)),t}function We({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:r,trigger:i}){if(xe(n,0))return e;const a=[...e],[c,o]=s;V(c!=null,"Invalid first pivot index"),V(o!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?o:c,h=t[u];V(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,m)){const y=x-b;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}{const u=n<0?c:o,h=t[u];V(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const b=e[u];if(V(b!=null,`Previous layout not found for panel index ${u}`),xe(b,x)){const y=b-m;Le(y,Math.abs(n))>0&&(n=n<0?0-y:y)}}}}{const u=n<0?1:-1;let h=n<0?o:c,m=0;for(;;){const x=e[h];V(x!=null,`Previous layout not found for panel index ${h}`);const y=_e({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=y,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?c:o;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];V(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,b=_e({panelConstraints:t,panelIndex:h,size:x});if(!xe(p,b)&&(d+=p-b,a[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Gr(r,a))return r;{const u=n<0?o:c,h=e[u];V(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=_e({panelConstraints:t,panelIndex:u,size:m});if(a[u]=p,!xe(p,m)){let x=m-p,y=n<0?o:c;for(;y>=0&&y<t.length;){const j=a[y];V(j!=null,`Previous layout not found for panel index ${y}`);const k=j+x,C=_e({panelConstraints:t,panelIndex:y,size:k});if(xe(j,C)||(x-=C-j,a[y]=C),xe(x,0))break;n>0?y--:y++}}}const f=a.reduce((u,h)=>h+u,0);return xe(f,100)?a:r}function Xr({layout:n,panelsArray:e,pivotIndices:t}){let s=0,r=100,i=0,a=0;const c=t[0];V(c!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===c?(s=x,r=p):(i+=x,a+=p)});const o=Math.min(r,100-i),d=Math.max(s,100-a),f=n[c];return{valueMax:o,valueMin:d,valueNow:f}}function et(n,e=document){return Array.from(e.querySelectorAll(`[${te.resizeHandleId}][data-panel-group-id="${n}"]`))}function ts(n,e,t=document){const r=et(n,t).findIndex(i=>i.getAttribute(te.resizeHandleId)===e);return r??null}function ns(n,e,t){const s=ts(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ss(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function kt(n,e=document){const t=e.querySelector(`[${te.resizeHandleId}="${n}"]`);return t||null}function Qr(n,e,t,s=document){var r,i,a,c;const o=kt(e,s),d=et(n,s),f=o?d.indexOf(o):-1,u=(r=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,h=(a=(c=t[f+1])===null||c===void 0?void 0:c.id)!==null&&a!==void 0?a:null;return[u,h]}function Yr({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:r,panelGroupElement:i,setLayout:a}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Fe(()=>{if(!i)return;const c=et(t,i);for(let o=0;o<r.length-1;o++){const{valueMax:d,valueMin:f,valueNow:u}=Xr({layout:s,panelsArray:r,pivotIndices:[o,o+1]}),h=c[o];if(h!=null){const m=r[o];V(m,`No panel data found for index "${o}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{c.forEach((o,d)=>{o.removeAttribute("aria-controls"),o.removeAttribute("aria-valuemax"),o.removeAttribute("aria-valuemin"),o.removeAttribute("aria-valuenow")})}},[t,s,r,i]),N.useEffect(()=>{if(!i)return;const c=e.current;V(c,"Eager values not found");const{panelDataArray:o}=c,d=ss(t,i);V(d!=null,`No group found for id "${t}"`);const f=et(t,i);V(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(te.resizeHandleId);V(m,"Resize handle element has no handle id attribute");const[p,x]=Qr(t,m,o,i);if(p==null||x==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const j=o.findIndex(k=>k.id===p);if(j>=0){const k=o[j];V(k,`No panel data found for index ${j}`);const C=s[j],{collapsedSize:S=0,collapsible:v,minSize:g=0}=k.constraints;if(C!=null&&v){const $=We({delta:xe(C,S)?g-S:S-C,initialLayout:s,panelConstraints:o.map(W=>W.constraints),pivotIndices:ns(t,m,i),prevLayout:s,trigger:"keyboard"});s!==$&&a($)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,r,a])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function rs(n,e){const t=n==="horizontal",{x:s,y:r}=wt(e);return t?s:r}function Zr(n,e,t,s,r){const i=t==="horizontal",a=kt(e,r);V(a,`No resize handle element found for id "${e}"`);const c=a.getAttribute(te.groupId);V(c,"Resize handle element has no group id attribute");let{initialCursorPosition:o}=s;const d=rs(t,n),f=ss(c,r);V(f,`No group element found for id "${c}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-o)/h*100}function Jr(n,e,t,s,r,i){if(Wn(n)){const a=t==="horizontal";let c=0;n.shiftKey?c=100:r!=null?c=r:c=10;let o=0;switch(n.key){case"ArrowDown":o=a?0:c;break;case"ArrowLeft":o=a?-c:0;break;case"ArrowRight":o=a?c:0;break;case"ArrowUp":o=a?0:-c;break;case"End":o=100;break;case"Home":o=-100;break}return o}else return s==null?0:Zr(n,e,t,s,i)}function el({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,r=100;for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;c!=null&&(s++,e[i]=c,r-=c)}for(let i=0;i<n.length;i++){const a=t[i];V(a,`Panel constraints not found for index ${i}`);const{defaultSize:c}=a;if(c!=null)continue;const o=n.length-s,d=r/o;s++,e[i]=d,r-=d}return e}function Oe(n,e,t){e.forEach((s,r)=>{const i=n[r];V(i,`Panel data not found for index ${r}`);const{callbacks:a,constraints:c,id:o}=i,{collapsedSize:d=0,collapsible:f}=c,u=t[o];if(u==null||s!==u){t[o]=s;const{onCollapse:h,onExpand:m,onResize:p}=a;p&&p(s,u),f&&(h||m)&&(m&&(u==null||ke(u,d))&&!ke(s,d)&&m(),h&&(u==null||!ke(u,d))&&ke(s,d)&&h())}})}function ut(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function tl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:r,precision:i=3}){const a=t[r];let c;return a==null?c=n!=null?n.toPrecision(i):"1":s.length===1?c="1":c=a.toPrecision(i),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function nl(n,e=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}function cn(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ls(n){return`react-resizable-panels:${n}`}function is(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:r,order:i}=e;return r?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function as(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const r=JSON.parse(s);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function sl(n,e,t){var s,r;const i=(s=as(n,t))!==null&&s!==void 0?s:{},a=is(e);return(r=i[a])!==null&&r!==void 0?r:null}function rl(n,e,t,s,r){var i;const a=ls(n),c=is(e),o=(i=as(n,r))!==null&&i!==void 0?i:{};o[c]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{r.setItem(a,JSON.stringify(o))}catch(d){console.error(d)}}function dn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,a)=>i+a,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!xe(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=100/s*a;t[i]=c}let r=0;for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=_e({panelConstraints:e,panelIndex:i,size:a});a!=c&&(r+=a-c,t[i]=c)}if(!xe(r,0))for(let i=0;i<e.length;i++){const a=t[i];V(a!=null,`No layout data found for index ${i}`);const c=a+r,o=_e({panelConstraints:e,panelIndex:i,size:c});if(a!==o&&(r-=o-a,t[i]=o,xe(r,0)))break}return t}const ll=100,Ve={getItem:n=>(cn(Ve),Ve.getItem(n)),setItem:(n,e)=>{cn(Ve),Ve.setItem(n,e)}},un={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:r,id:i=null,onLayout:a=null,keyboardResizeBy:c=null,storage:o=Ve,style:d,tagName:f="div",...u}){const h=Xt(i),m=N.useRef(null),[p,x]=N.useState(null),[b,y]=N.useState([]),j=Vr(),k=N.useRef({}),C=N.useRef(new Map),S=N.useRef(0),v=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:c,onLayout:a,storage:o}),g=N.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(r,()=>({getId:()=>v.current.id,getLayout:()=>{const{layout:P}=g.current;return P},setLayout:P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current,T=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,T)||(y(T),g.current.layout=T,I&&I(T),Oe(F,T,k.current))}}),[]),Fe(()=>{v.current.autoSaveId=n,v.current.direction=s,v.current.dragState=p,v.current.id=h,v.current.onLayout=a,v.current.storage=o}),Yr({committedValuesRef:v,eagerValuesRef:g,groupId:h,layout:b,panelDataArray:g.current.panelDataArray,setLayout:y,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:P}=g.current;if(n){if(b.length===0||b.length!==P.length)return;let I=un[n];I==null&&(I=nl(rl,ll),un[n]=I);const O=[...P],F=new Map(C.current);I(n,O,F,b,o)}},[n,b,o]),N.useEffect(()=>{});const $=N.useCallback(P=>{const{onLayout:I}=v.current,{layout:O,panelDataArray:F}=g.current;if(P.constraints.collapsible){const T=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=De(F,P,O);if(V(Y!=null,`Panel size not found for panel "${P.id}"`),!ke(Y,R)){C.current.set(P.id,Y);const pe=Re(F,P)===F.length-1?Y-R:R-Y,z=We({delta:pe,initialLayout:O,panelConstraints:T,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,k.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current;if(P.constraints.collapsible){const R=T.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=De(T,P,F),z=I??me;if(ke(ee,Y)){const J=C.current.get(P.id),ie=J!=null&&J>=z?J:z,$e=Re(T,P)===T.length-1?ee-ie:ie-ee,ae=We({delta:$e,initialLayout:F,panelConstraints:R,pivotIndices:pe,prevLayout:F,trigger:"imperative-api"});ut(F,ae)||(y(ae),g.current.layout=ae,O&&O(ae),Oe(T,ae,k.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=De(O,P,I);return V(F!=null,`Panel size not found for panel "${P.id}"`),F},[]),A=N.useCallback((P,I)=>{const{panelDataArray:O}=g.current,F=Re(O,P);return tl({defaultSize:I,dragState:p,layout:b,panelData:O,panelIndex:F})},[p,b]),w=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),T===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:T,panelSize:R}=De(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!T||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const T=O.order,R=F.order;return T==null&&R==null?0:T==null?-1:R==null?1:T-R}),g.current.panelDataArrayChanged=!0,j()},[j]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:T}=g.current;let R=null;if(P){const ee=sl(P,T,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:T}));const Y=dn({layout:R,panelConstraints:T.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(T,Y,k.current))}}),Fe(()=>{const P=g.current;return()=>{P.layout=[]}},[]);const K=N.useCallback(P=>{let I=!1;const O=m.current;return O&&window.getComputedStyle(O,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(T){T.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Y,dragState:ee,id:me,keyboardResizeBy:pe,onLayout:z}=v.current,{layout:J,panelDataArray:ie}=g.current,{initialLayout:ye}=ee??{},$e=ns(me,P,R);let ae=Jr(T,P,Y,ee,pe,R);const Ke=Y==="horizontal";Ke&&I&&(ae=-ae);const $t=ie.map(Et=>Et.constraints),Ee=We({delta:ae,initialLayout:ye??J,panelConstraints:$t,pivotIndices:$e,prevLayout:J,trigger:Wn(T)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(T)||Gn(T))&&S.current!=ae&&(S.current=ae,!ot&&ae!==0?Ke?Lt(P,ae<0?Qn:Yn):Lt(P,ae<0?Zn:Jn):Lt(P,0)),ot&&(y(Ee),g.current.layout=Ee,z&&z(Ee),Oe(ie,Ee,k.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:T}=g.current,R=T.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=De(T,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(T,P)===T.length-1?Y-I:I-Y,z=We({delta:pe,initialLayout:F,panelConstraints:R,pivotIndices:ee,prevLayout:F,trigger:"imperative-api"});ut(F,z)||(y(z),g.current.layout=z,O&&O(z),Oe(T,z,k.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:T=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=De(F,P,O);z!=null&&(R&&ee&&ke(z,T)?ke(T,Y)||U(P,Y):z<pe?U(P,pe):z>me&&U(P,me))},[U]),_=N.useCallback((P,I)=>{const{direction:O}=v.current,{layout:F}=g.current;if(!m.current)return;const T=kt(P,m.current);V(T,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:T.getBoundingClientRect(),initialCursorPosition:R,initialLayout:F})},[]),Q=N.useCallback(()=>{x(null)},[]),le=N.useCallback(P=>{const{panelDataArray:I}=g.current,O=Re(I,P);O>=0&&(I.splice(O,1),delete k.current[P.id],g.current.panelDataArrayChanged=!0,j())},[j]),D=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:w,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,w,G,H,q,K,U,_,Q,le]),B={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(vt.Provider,{value:D},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...B,...d},[te.group]:"",[te.groupDirection]:s,[te.groupId]:h}))}const cs=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";cs.displayName="forwardRef(PanelGroup)";function Re(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function De(n,e,t){const s=Re(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],a=t[s];return{...e.constraints,panelSize:a,pivotIndices:i}}function il({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const r=kt(e,s);if(r==null)return;const i=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),t(a);break}case"F6":{a.preventDefault();const c=r.getAttribute(te.groupId);V(c,`No group element found for id "${c}"`);const o=et(c,s),d=ts(c,e,s);V(d!==null,`No resize element found for id "${e}"`);const f=a.shiftKey?d>0?d-1:o.length-1:d+1<o.length?d+1:0;o[f].focus();break}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[s,n,e,t])}function ds({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:r,onBlur:i,onClick:a,onDragging:c,onFocus:o,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,b;const y=N.useRef(null),j=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{j.current.onClick=a,j.current.onDragging=c,j.current.onPointerDown=d,j.current.onPointerUp=f});const k=N.useContext(vt);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=k,M=Xt(r),[A,w]=N.useState("inactive"),[G,q]=N.useState(!1),[K,U]=N.useState(null),H=N.useRef({state:A});Fe(()=>{H.current.state=A}),N.useEffect(()=>{if(t)U(null);else{const D=v(M);U(()=>D)}},[t,M,v]);const _=(x=s?.coarse)!==null&&x!==void 0?x:15,Q=(b=s?.fine)!==null&&b!==void 0?b:5;N.useEffect(()=>{if(t||K==null)return;const D=y.current;V(D,"Element ref not attached");let B=!1;return qr(M,D,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){w("inactive");return}switch(I){case"down":{w("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:T,onPointerDown:R}=j.current;T?.(!0),R?.();break}case"move":{const{state:T}=H.current;B=!0,T!=="drag"&&w("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{w("hover"),$();const{onClick:T,onDragging:R,onPointerUp:Y}=j.current;R?.(!1),Y?.(),B||T?.();break}}})},[_,C,t,Q,v,M,K,g,$]),il({disabled:t,handleId:M,resizeHandler:K,panelGroupElement:W});const le={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:r,onBlur:()=>{q(!1),i?.()},onFocus:()=>{q(!0),o?.()},ref:y,role:"separator",style:{...le,...u},tabIndex:h,[te.groupDirection]:C,[te.groupId]:S,[te.resizeHandle]:"",[te.resizeHandleActive]:A==="drag"?"pointer":G?"keyboard":void 0,[te.resizeHandleEnabled]:!t,[te.resizeHandleId]:M,[te.resizeHandleState]:A})}ds.displayName="PanelResizeHandle";function al(n){const e=E.c(10);let t,s,r;e[0]!==n?({className:t,ref:r,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let a;return e[6]!==s||e[7]!==r||e[8]!==i?(a=l.jsx(cs,{ref:r,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=r,e[8]=i,e[9]=a):a=e[9],a}function fn(n){const e=E.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ol(n){const e=E.c(12);let t,s,r;e[0]!==n?({withHandle:r,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=r):(t=e[1],s=e[2],r=e[3]);let i;e[4]!==t?(i=de("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let a;e[6]!==r?(a=r&&l.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:l.jsx(Zs,{className:"size-2.5"})}),e[6]=r,e[7]=a):a=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==a?(c=l.jsx(ds,{"data-slot":"resizable-handle",className:i,...s,children:a}),e[8]=s,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}function cl(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function dl(n){if(cl(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function ul(n){try{return decodeURIComponent(n)}catch{return n}}function fl(n){return dl(n),encodeURIComponent(n)}function hl(n){return`.deco/blocks/${fl(n)}.json`}function Ua(n){return`/${hl(n)}`}const Ha=1e4,ml=3;function _t(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function St(n){return n.startsWith("/")?n.slice(1):n}function Ka(n){const e=St(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function He(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function pl(n){const e=He(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qa(n,e){const t=e.replace(/^\/+|\/+$/g,"");return He(t?`${n==="/"?"":n}/${t}`:n)}function Wa(n,e){return e==="directory"?n:pl(n)}function Va(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function xl(n){const e=St(n);return e?e.split("/").filter(Boolean).length:0}function Ga(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xa(n,e){return xl(n)>=ml&&!e.has(n)}function Qa(n,e,t=[]){const s=St(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const r=`${s}/`;return e.some(i=>i.startsWith(r))||t.some(i=>i.startsWith(r))}function Ya(n){const e=St(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return ul(s)}function bl(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const gl="#94a3b8";function Za(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:dt,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:dt,color:"#d9a441"}:e.endsWith(".json")?{Icon:Js,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:dt,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:dt,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:pr,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:nn,color:"#64748b"}:{Icon:nn,color:gl}}function Ja(n){const e=_t(n).split("/").filter(Boolean),t=["/"];let s="";for(const r of e.slice(0,-1))s+=`/${r}`,t.push(s);return t}function eo(n,e=[]){const t={path:"/",children:[]},s=new Map,r=c=>{let o=s.get(c.path);return o||(o=new Map,s.set(c.path,o)),o},i=c=>{const d=_t(c).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=r(f);let p=m.get(h);p?p.kind==="file"&&(p.kind="directory"):(p={name:h,path:u,kind:"directory",children:[]},f.children.push(p),m.set(h,p)),f=p}};for(const c of n){const d=_t(c).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=r(f);let b=x.get(h);b||(b={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(b),x.set(h,b)),f=b})}for(const c of e)i(He(c));const a=c=>{c.sort((o,d)=>o.kind!==d.kind?o.kind==="directory"?-1:1:o.name.localeCompare(d.name));for(const o of c)o.children.length>0&&a(o.children)};return a(t.children),t.children}function yl(n,e,t=0){const s=[];for(const r of n)r.name!==".gitkeep"&&(s.push({node:r,depth:t}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&s.push(...yl(r.children,e,t+1)));return s}function to(n){const e=[];for(const t of n.split(`
|
|
2
2
|
`)){if(!t)continue;const s=t.indexOf(":");if(s<0)continue;const r=t.indexOf(":",s+1);if(r<0)continue;const i=Number.parseInt(t.slice(s+1,r),10);Number.isFinite(i)&&e.push({path:He(t.slice(0,s)),line:i,text:t.slice(r+1)})}return e}function no(n,e,t){const s=e.trim().toLowerCase();if(!s)return[];const r=[];for(const i of n)if((i.split("/").pop()??i).toLowerCase().includes(s)&&(r.push(He(i)),r.length>=t))break;return r}const hn=24;function so(n,e){const t=n.replace(/^\s+/,""),s=e.trim().toLowerCase();if(!s)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const r=t.toLowerCase().indexOf(s);if(r<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const i=r>hn,a=i?t.slice(r-hn):t,c=a.toLowerCase(),o=[];let d=0;for(;;){const f=c.indexOf(s,d);if(f<0){d<a.length&&o.push({text:a.slice(d),match:!1});break}f>d&&o.push({text:a.slice(d,f),match:!1}),o.push({text:a.slice(f,f+s.length),match:!0}),d=f+s.length}return{leadingEllipsis:i,segments:o}}function ro(n){const e=[],t=new Map;for(const s of n){let r=t.get(s.path);r||(r={path:s.path,matches:[]},t.set(s.path,r),e.push(r)),r.matches.push(s)}return e}function lo(n){return n.split(`
|
|
3
3
|
`).map(e=>e.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}hr.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function vl(n){const e=E.c(11),{value:t,filename:s}=n,[r]=Ds(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let a;e[0]!==s?(a=bl(s),e[0]=s,e[1]=a):a=e[1];const c=i?"vs-dark":"light";let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsx(Ts,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=o):o=e[2];let d,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},f={top:12,bottom:12},e[3]=d,e[4]=f):(d=e[3],f=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:f,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let h;return e[6]!==s||e[7]!==a||e[8]!==c||e[9]!==t?(h=l.jsx(mr,{path:s,language:a,value:t,theme:c,loading:o,options:u},s),e[6]=s,e[7]=a,e[8]=c,e[9]=t,e[10]=h):h=e[10],h}function us(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const wl=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),jl=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),mn=2*1024*1024;function kl(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return wl.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=mn?"markdown":"download":jl.has(t)&&e<=mn?"text":"download"}function fs(){const n=E.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(ce,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(ce,{className:"h-3 w-full"}),l.jsx(ce,{className:"h-3 w-5/6"}),l.jsx(ce,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function hs(n){const e=E.c(20),{file:t,note:s}=n;let r;e[0]!==t.filename?(r=l.jsx(Ne,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=r):r=e[1];let i;e[2]!==t.filename?(i=l.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let a;e[4]!==t.size?(a=us(t.size),e[4]=t.size,e[5]=a):a=e[5];const c=s?` · ${s}`:"";let o;e[6]!==a||e[7]!==c?(o=l.jsxs("span",{className:"text-xs text-muted-foreground",children:[a,c]}),e[6]=a,e[7]=c,e[8]=o):o=e[8];let d;e[9]!==i||e[10]!==o?(d=l.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,o]}),e[9]=i,e[10]=o,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Ze,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=l.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[f,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let h;return e[16]!==r||e[17]!==d||e[18]!==u?(h=l.jsx("div",{className:"flex h-full w-full items-center justify-center",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,d,u]})}),e[16]=r,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function pn(n){const e=E.c(16),{file:t,markdown:s}=n;let r;e[0]!==t.downloadUrl?(r=X.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const u=await fetch(t.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let a;e[4]!==r||e[5]!==i?(a={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=a):a=e[6];const{data:c,isPending:o,isError:d}=oe(a);if(o){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(fs,{}),e[7]=u):u=e[7],u}if(d||c===void 0){let u;return e[8]!==t?(u=l.jsx(hs,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=u):u=e[9],u}if(s){const u=`file-preview-${t.key}`;let h;return e[10]!==c||e[11]!==u?(h=l.jsx("div",{className:"h-full overflow-y-auto",children:l.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:l.jsx(Ht,{id:u,text:c})})}),e[10]=c,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==c||e[14]!==t.filename?(f=l.jsx(vl,{value:c,filename:t.filename}),e[13]=c,e[14]=t.filename,e[15]=f):f=e[15],f}function ms(n){const e=E.c(15),{file:t}=n;switch(kl(t.filename,t.size)){case"image":{let r;return e[0]!==t.downloadUrl||e[1]!==t.filename?(r=l.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:l.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==t.downloadUrl||e[4]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==t.downloadUrl||e[7]!==t.filename?(r=l.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==t?(r=l.jsx(pn,{file:t,markdown:!0}),e[9]=t,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==t?(r=l.jsx(pn,{file:t,markdown:!1}),e[11]=t,e[12]=r):r=e[12],r}default:{let r;return e[13]!==t?(r=l.jsx(hs,{file:t}),e[13]=t,e[14]=r):r=e[14],r}}}function Sl(n){const e=E.c(52),{readUrl:t,editor:s,downloadName:r,trailing:i}=n,a=se();let c;e[0]!==t?(c=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=c):c=e[1];const o=c;let d;e[2]!==s||e[3]!==a?(d=s.deckDetected&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?a("deck.deckToolbar.hideSlideList"):a("deck.deckToolbar.showSlideList"),onClick:()=>s.setRailOpen(!s.railOpen),children:l.jsx(xr,{size:14})})}),l.jsx(je,{side:"bottom",children:s.railOpen?a("deck.deckToolbar.hideSlideList"):a("deck.deckToolbar.showSlideList")})]}),e[2]=s,e[3]=a,e[4]=d):d=e[4];let f;e[5]!==o?(f=()=>window.open(o,"_blank","noopener"),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==o?(u=l.jsx("span",{className:"truncate",children:o}),e[7]=o,e[8]=u):u=e[8];let h;e[9]!==o||e[10]!==f||e[11]!==u?(h=l.jsx("button",{type:"button",onClick:f,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:o,children:u}),e[9]=o,e[10]=f,e[11]=u,e[12]=h):h=e[12];let m;e[13]!==s.agentUpdated||e[14]!==s.reload||e[15]!==a?(m=s.agentUpdated&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[l.jsx(Sn,{size:12}),a("deck.deckToolbar.agentUpdatedReload")]})}),l.jsx(je,{side:"bottom",children:a("deck.deckToolbar.agentRewriteWarning")})]}),e[13]=s.agentUpdated,e[14]=s.reload,e[15]=a,e[16]=m):m=e[16];let p;e[17]!==s.saving||e[18]!==a?(p=s.saving&&l.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:a("deck.deckToolbar.saving")}),e[17]=s.saving,e[18]=a,e[19]=p):p=e[19];let x;e[20]!==s||e[21]!==a?(x=s.deckDetected&&s.writable&&l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?a("deck.deckToolbar.doneEditing"):a("deck.deckToolbar.editInline"),className:de(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:l.jsx(er,{size:14})})}),l.jsx(je,{side:"bottom",children:s.editMode?a("deck.deckToolbar.doneEditing"):a("deck.deckToolbar.editInlineTooltip")})]}),e[20]=s,e[21]=a,e[22]=x):x=e[22];let b;e[23]!==o||e[24]!==r||e[25]!==s.deckDetected||e[26]!==a?(b=s.deckDetected?l.jsxs(Kt,{children:[l.jsx(qt,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":a("deck.deckToolbar.download"),children:l.jsx(Ze,{size:14})})}),l.jsxs(Wt,{align:"end",children:[l.jsxs(Ie,{onClick:()=>window.open(`${o}#print`,"_blank","noopener"),children:[l.jsx(tr,{size:14}),a("deck.deckToolbar.exportAsPdf")]}),l.jsx(Ie,{asChild:!0,children:l.jsxs("a",{href:o,download:r,children:[l.jsx(nr,{size:14}),a("deck.deckToolbar.downloadHtml")]})})]})]}):l.jsxs(ve,{children:[l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":a("deck.deckToolbar.download"),asChild:!0,children:l.jsx("a",{href:o,download:r,children:l.jsx(Ze,{size:14})})})}),l.jsx(je,{side:"bottom",children:a("deck.deckToolbar.download")})]}),e[23]=o,e[24]=r,e[25]=s.deckDetected,e[26]=a,e[27]=b):b=e[27];let y;e[28]!==a?(y=a("deck.deckToolbar.openInNewTab"),e[28]=a,e[29]=y):y=e[29];let j;e[30]!==o?(j=()=>window.open(o,"_blank","noopener"),e[30]=o,e[31]=j):j=e[31];let k;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx(On,{size:14}),e[32]=k):k=e[32];let C;e[33]!==y||e[34]!==j?(C=l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":y,onClick:j,children:k})}),e[33]=y,e[34]=j,e[35]=C):C=e[35];let S;e[36]!==a?(S=a("deck.deckToolbar.openInNewTab"),e[36]=a,e[37]=S):S=e[37];let v;e[38]!==S?(v=l.jsx(je,{side:"bottom",children:S}),e[38]=S,e[39]=v):v=e[39];let g;e[40]!==C||e[41]!==v?(g=l.jsxs(ve,{children:[C,v]}),e[40]=C,e[41]=v,e[42]=g):g=e[42];let $;return e[43]!==g||e[44]!==d||e[45]!==h||e[46]!==m||e[47]!==p||e[48]!==x||e[49]!==b||e[50]!==i?($=l.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[d,h,m,p,x,b,g,i]}),e[43]=g,e[44]=d,e[45]=h,e[46]=m,e[47]=p,e[48]=x,e[49]=b,e[50]=i,e[51]=$):$=e[51],$}const Ae=1;function Nl(n){if(typeof n!="object"||n===null||n.v!==Ae||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class Pe extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function ps(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Pl(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?ps(t).length:null}function Cl(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new Pe("no <deck-viewer> element in source","no-viewer");const r=ps(s),i=e.kind==="move"?e.from:e.at,a=r[i];if(!a)throw new Pe(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new Pe("cannot remove the last slide","bad-op");a.remove();break}case"duplicate":{const o=a.cloneNode(!0);o.removeAttribute("id");for(const d of o.querySelectorAll("[id]"))d.removeAttribute("id");a.after(o);break}case"move":{if(e.to<0||e.to>=r.length)throw new Pe(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const o=e.to<e.from?r[e.to]:r[e.to].nextSibling;s.insertBefore(a,o)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new Pe(`invalid attribute name: ${e.name}`,"bad-op");a.setAttribute(e.name,e.value);break}case"remove-attr":{a.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new Pe("replace html has no root element","bad-op");a.replaceWith(t.importNode(d,!0));break}default:throw new Pe(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|