decocms 4.122.0 → 4.122.1
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-BVcbGU63.js → AlertCircle-XnshFjYW.js} +1 -1
- package/dist/client/assets/{AreaChart-BOEksfko.js → AreaChart-CJi4tHw0.js} +1 -1
- package/dist/client/assets/{ArrowRight-CKlvyIoh.js → ArrowRight-CX6eNZSi.js} +1 -1
- package/dist/client/assets/{ArrowUp-zrMcuXAr.js → ArrowUp-VZsF9axi.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BRtGTw6u.js → ArrowUpRight-Df_nmFmy.js} +1 -1
- package/dist/client/assets/{Check-K9ygl0O6.js → Check-CC9gPb_A.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ddtle1Hu.js → CheckCircle-CxnbmKEy.js} +1 -1
- package/dist/client/assets/{ChevronDown-ivzZdE8w.js → ChevronDown-BgfnpwV0.js} +1 -1
- package/dist/client/assets/{ChevronRight-wehtSt4J.js → ChevronRight-21KH5QUR.js} +1 -1
- package/dist/client/assets/{ChevronUp-DtesMDJI.js → ChevronUp-C5_Sfc3S.js} +1 -1
- package/dist/client/assets/{Copy01-B2yggp1R.js → Copy01-Diq48EWM.js} +1 -1
- package/dist/client/assets/{DotsVertical-0w0ZkjcP.js → DotsVertical-CnVoFOdL.js} +1 -1
- package/dist/client/assets/{Eye-CZVpzZj3.js → Eye-CPji9XgK.js} +1 -1
- package/dist/client/assets/{FilterLines-xmnqgD9Q.js → FilterLines-CrGTcOfX.js} +1 -1
- package/dist/client/assets/{Globe01-dnwQ58ni.js → Globe01-DVNadxp3.js} +1 -1
- package/dist/client/assets/{Globe04-C5N1Fi_a.js → Globe04-BDFigbbA.js} +1 -1
- package/dist/client/assets/{HardDrive-BP9_iF3o.js → HardDrive-CJF16wvx.js} +1 -1
- package/dist/client/assets/{Image01-CTFJ4q_z.js → Image01-COoMGEPb.js} +1 -1
- package/dist/client/assets/{Key01-DXv7srOu.js → Key01-CtX8cIgY.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BPQ9stJD.js → LayoutLeft-B98Y7j9l.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BktZyAnv.js → LinkExternal01-Calr_A6c.js} +1 -1
- package/dist/client/assets/{LogOut01-BDBTSoW6.js → LogOut01-qYuBvoFH.js} +1 -1
- package/dist/client/assets/{Monitor01-7QFBOkji.js → Monitor01-BiNi2Su2.js} +1 -1
- package/dist/client/assets/{Package-D8m71yLY.js → Package-BgoRXE8D.js} +1 -1
- package/dist/client/assets/{Palette-DWy3dzj0.js → Palette-BwpXM3TT.js} +1 -1
- package/dist/client/assets/{Play-lriwSM0x.js → Play-BgnxS2-x.js} +1 -1
- package/dist/client/assets/{Plus-DQlLKoK7.js → Plus-D-8cpNUO.js} +1 -1
- package/dist/client/assets/{SearchLg-CoOX4SoC.js → SearchLg-B8C5Qm8O.js} +1 -1
- package/dist/client/assets/{SearchMd-Dg6mSNN_.js → SearchMd-BZf1S_oW.js} +1 -1
- package/dist/client/assets/{Settings02-BrQ1R_C3.js → Settings02-Yvc0vxEw.js} +1 -1
- package/dist/client/assets/{Shield01-BeZ6Sg4x.js → Shield01-BICJ_pln.js} +1 -1
- package/dist/client/assets/{Star01-DkiTL7fS.js → Star01-1QXq7d0Q.js} +1 -1
- package/dist/client/assets/{Stars01-DTVv_6xg.js → Stars01-CB8X2GZM.js} +1 -1
- package/dist/client/assets/{Stars02-Rv7Zpq5p.js → Stars02-D8l4enBD.js} +1 -1
- package/dist/client/assets/{Sun-DIwJT6kw.js → Sun-AMWwxXLJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-YOHN8l_Y.js → SwitchHorizontal01-CdbWhzYI.js} +1 -1
- package/dist/client/assets/{Tool01-zKnvH-kk.js → Tool01-m1EmcVyA.js} +1 -1
- package/dist/client/assets/{Tool02-a1QDD1BE.js → Tool02-r9aj6Qyy.js} +1 -1
- package/dist/client/assets/{Trash01-CvmXP6ap.js → Trash01-CVr9u3xi.js} +1 -1
- package/dist/client/assets/{TrendUp01-DbtFTYSl.js → TrendUp01-h4x0FenV.js} +1 -1
- package/dist/client/assets/{Upload01-Ur6u-B1R.js → Upload01-D2PYYKGU.js} +1 -1
- package/dist/client/assets/{User01-ELT05I_C.js → User01-DqUeIcrF.js} +1 -1
- package/dist/client/assets/{Users01-DmKZlyCu.js → Users01-Ca4DQ08l.js} +1 -1
- package/dist/client/assets/{Users03-B2Rmdg8K.js → Users03-BLeBKZva.js} +1 -1
- package/dist/client/assets/{X-DjQw217D.js → X-pxLklxt-.js} +1 -1
- package/dist/client/assets/{XCircle-BNVPuHya.js → XCircle-Jor3fl3p.js} +1 -1
- package/dist/client/assets/{XClose-BO1Lwhh7.js → XClose-DoQ8FIVP.js} +1 -1
- package/dist/client/assets/{Zap-C4HzUZ29.js → Zap-BYKdCfkZ.js} +1 -1
- package/dist/client/assets/{ZapSquare-CqrPlIO3.js → ZapSquare-DiexjyhK.js} +1 -1
- package/dist/client/assets/{ZoomOut-CAsxnm2x.js → ZoomOut-CeX9nBzw.js} +1 -1
- package/dist/client/assets/{access-gate-uwgBtsBP.js → access-gate-D2NTAiXe.js} +1 -1
- package/dist/client/assets/{add-section-modal-fmj_3SB_.js → add-section-modal-BchN4rJK.js} +1 -1
- package/dist/client/assets/{agent-icon-B2LgmiRt.js → agent-icon-DklLFaSa.js} +1 -1
- package/dist/client/assets/{agents-list-DgcidbX7.js → agents-list-yGdtBETf.js} +1 -1
- package/dist/client/assets/{ai-providers-CERVG5fP.js → ai-providers-D-pBdRNb.js} +1 -1
- package/dist/client/assets/{alert-2pYy2aRx.js → alert-CCaFcfw-.js} +1 -1
- package/dist/client/assets/{alert-dialog-BsAEBtVk.js → alert-dialog-DSeYsJav.js} +1 -1
- package/dist/client/assets/{app-editor-DgQfdAPl.js → app-editor-DgafYaZq.js} +1 -1
- package/dist/client/assets/{auth-BbZNerdw.js → auth-BTPRevv4.js} +1 -1
- package/dist/client/assets/{auth-catchall-3qQJZ3DD.js → auth-catchall-C-vZ1kE7.js} +1 -1
- package/dist/client/assets/{auth-entry-tAavwvU4.js → auth-entry-Df_hdiFv.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DBnc8xhv.js → auth-split-layout-CUBOf-5N.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BUz0jLWA.js → authenticate-and-persist-oauth-DFwi7YAk.js} +1 -1
- package/dist/client/assets/{automation-list-row-CnMPr30w.js → automation-list-row-dutMC3QV.js} +1 -1
- package/dist/client/assets/{automation-runs-qvWRqyqv.js → automation-runs-6THMzkHu.js} +1 -1
- package/dist/client/assets/{automations-Dg-olwgA.js → automations-gJHR9nJP.js} +1 -1
- package/dist/client/assets/{autosend-BeIUwx1c.js → autosend-WnRL52gX.js} +1 -1
- package/dist/client/assets/{avatar-B1FBqiPq.js → avatar-CNc6KWqj.js} +1 -1
- package/dist/client/assets/{badge-8mmmFMes.js → badge-BUAKnV1x.js} +1 -1
- package/dist/client/assets/{block-document-NADzTy6R.js → block-document-C9dlt-Wu.js} +1 -1
- package/dist/client/assets/{brand-context-mtl0KcSc.js → brand-context-B_RsO18l.js} +1 -1
- package/dist/client/assets/{buckets-CU5R4UIm.js → buckets-BdraU0oC.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-KIgh2LVc.js → bulk-category-panel-DIdL5aVk.js} +1 -1
- package/dist/client/assets/{calendar-BYOoZCNu.js → calendar-DFq-LIxY.js} +1 -1
- package/dist/client/assets/{capability-load-error-B3Yd05Zp.js → capability-load-error-Cua73DjP.js} +1 -1
- package/dist/client/assets/{card-CsVINvzI.js → card-Bt7sN6sd.js} +1 -1
- package/dist/client/assets/{category-editor-CvpFkxzC.js → category-editor-B_4G1qfQ.js} +1 -1
- package/dist/client/assets/{chat-context-DG5VMA6B.js → chat-context-BUCy41wb.js} +1 -1
- package/dist/client/assets/{checkbox-CAW6yy-f.js → checkbox-BXjzUPh_.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B6BWMPYn.js → cli-auth-success-8L6jmEDx.js} +1 -1
- package/dist/client/assets/{collection-detail-0HHoB7Wa.js → collection-detail-CT5tUPp_.js} +1 -1
- package/dist/client/assets/{collection-display-button-CO7gLnSL.js → collection-display-button-BihXKLw-.js} +1 -1
- package/dist/client/assets/{collection-search-HTEknyDM.js → collection-search-B20qLeZq.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-MD0_mE3R.js → collection-table-wrapper-pcUXsBYu.js} +1 -1
- package/dist/client/assets/{collection-tabs-Cu0giObB.js → collection-tabs-DNI8PqVZ.js} +1 -1
- package/dist/client/assets/{command-BYmAVtGu.js → command-NGsH11Ja.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CdHE3DqV.js → commerce-onboarding-ff2KN1v5.js} +1 -1
- package/dist/client/assets/{companions-core-C84CnqsZ.js → companions-core-C8hdG_qv.js} +1 -1
- package/dist/client/assets/{connect-D3rtWj_4.js → connect-BHc2KMsa.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CVLI9IFZ.js → connect-desktop-dialog-D2pvlftk.js} +1 -1
- package/dist/client/assets/{connection-card-CChyV7In.js → connection-card-B_6si4eG.js} +1 -1
- package/dist/client/assets/{connection-detail-Bg9BuBrs.js → connection-detail-CMWEPIQH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BsaAWJ8U.js → connection-form-helpers-BV8uHczM.js} +1 -1
- package/dist/client/assets/{connections-C9JbsGCi.js → connections-P-vwwiwU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DWTCLkf7.js → decopilot-sse-pool-B_K0sO1S.js} +1 -1
- package/dist/client/assets/{dialog-C7PMQncq.js → dialog-7TP2Rj2D.js} +1 -1
- package/dist/client/assets/{domain-settings-CwQ6FgAI.js → domain-settings-B7eZyho2.js} +1 -1
- package/dist/client/assets/{drawer-D1Kw_X2C.js → drawer-CO8Igk5a.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C3car2Q8.js → dropdown-menu-CZyflK5H.js} +1 -1
- package/dist/client/assets/{empty-state-B7ZzKn6B.js → empty-state-VEwKl4O7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-wIgwD813.js → extract-connection-data-BEJV81wi.js} +1 -1
- package/dist/client/assets/{file-explorer-CmnYIvY2.js → file-explorer-C_O3bBMQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-Cg3Nm1XZ.js → file-type-icon-C50voPyF.js} +1 -1
- package/dist/client/assets/{files-DPifkXR8.js → files-Hd_gZAjO.js} +1 -1
- package/dist/client/assets/{form-zrd7LYxu.js → form-C8YEeakk.js} +1 -1
- package/dist/client/assets/{general-BmB5iylu.js → general-Be1-PGE8.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CcvybfZV.js → github-repo-picker-1AJl1NXF.js} +1 -1
- package/dist/client/assets/{hooks-CxPB8UeZ.js → hooks-OLVSgKAi.js} +1 -1
- package/dist/client/assets/{index-QzdsfBYd.js → index-7lMfFoqm.js} +3 -3
- package/dist/client/assets/{index-DvEa4Fvr.js → index-B4lL0hIV.js} +1 -1
- package/dist/client/assets/{index-DEfykvQ6.js → index-BAgEiubw.js} +1 -1
- package/dist/client/assets/{index-BZmVwpHk.js → index-BJQ6k3ml.js} +1 -1
- package/dist/client/assets/{index-CtckDipO.js → index-BTlTRvWO.js} +1 -1
- package/dist/client/assets/{index-CPojIfJr.js → index-BXCOoie9.js} +1 -1
- package/dist/client/assets/{index-DSvM3i2U.js → index-BYC4n0jP.js} +1 -1
- package/dist/client/assets/{index-Cb8ogyWE.js → index-BhfXxR4M.js} +1 -1
- package/dist/client/assets/{index-DX-8pprv.js → index-C6_YevgU.js} +6 -6
- package/dist/client/assets/{index-DuYUqDOf.js → index-CQZUcwEe.js} +1 -1
- package/dist/client/assets/{index-Dig78Jy9.js → index-DZVUOwCL.js} +3 -3
- package/dist/client/assets/{index-C6BpFIWK.js → index-J6blKtEw.js} +1 -1
- package/dist/client/assets/{index-BGtGWsgH.js → index-LUsO6ZZ_.js} +1 -1
- package/dist/client/assets/{index-redirect-Pb6lGISE.js → index-redirect-DDOFkqxt.js} +1 -1
- package/dist/client/assets/{input-P-LUerq4.js → input-AF9b5wfZ.js} +1 -1
- package/dist/client/assets/{integration-icon-DB0SNVRE.js → integration-icon-C0xV3gWf.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CGMe2vvR.js → invite-member-dialog-DItYBiCO.js} +1 -1
- package/dist/client/assets/{label-DNCggKDl.js → label-nodTVgZf.js} +1 -1
- package/dist/client/assets/{layout-DTJcqcHF.js → layout-BGjUr9lp.js} +1 -1
- package/dist/client/assets/{login-BhaHlz0z.js → login-D1YDbLq2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-aEWbqsXM.js → mcp-oauth-BjijQ5bq.js} +1 -1
- package/dist/client/assets/{members-PCbHjis6.js → members-v3D2yTyU.js} +1 -1
- package/dist/client/assets/{monaco-editor-CTTjzlzK.js → monaco-editor-Czt4oHBX.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Cz8AzIWJ.js → monitoring-stats-row-D1GDqK5f.js} +1 -1
- package/dist/client/assets/{multi-select-BaubaUW1.js → multi-select-9uXcESFr.js} +1 -1
- package/dist/client/assets/{oauth-callback-2HSRTiii.js → oauth-callback-Cav7uxU-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CBuRFGN7.js → oauth-callback-ai-provider-CJoJluLi.js} +1 -1
- package/dist/client/assets/{onboarding-CM2VMCK1.js → onboarding-IcNCmj2O.js} +1 -1
- package/dist/client/assets/{org-install-GTqzYXN8.js → org-install-CWAsf9QZ.js} +1 -1
- package/dist/client/assets/{org-layout-Dxs5EZzy.js → org-layout-Dkc6Qlkh.js} +1 -1
- package/dist/client/assets/{organization-choice-CcqIPbFg.js → organization-choice-BaPiXTPG.js} +1 -1
- package/dist/client/assets/{orgs-BAxBwjH2.js → orgs-CwNHaIHg.js} +1 -1
- package/dist/client/assets/{page-seo-form-DFcFiRHt.js → page-seo-form-BOYoN6bZ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DXiuTEP8.js +1 -0
- package/dist/client/assets/{popover-1ACpRRoe.js → popover-BkL7Aezg.js} +1 -1
- package/dist/client/assets/{post-editor-BRl6XFlu.js → post-editor-Ct47SA6n.js} +1 -1
- package/dist/client/assets/{primitives-BDg7LeKI.js → primitives-imUpb_yp.js} +1 -1
- package/dist/client/assets/{profile-CFpO-2Tz.js → profile-BBHY4rF4.js} +1 -1
- package/dist/client/assets/project-app-view-BpUbnUrn.js +1 -0
- package/dist/client/assets/record-editor-BXVKRGlE.js +1 -0
- package/dist/client/assets/redirect-editor-Hi2Ju6Qo.js +1 -0
- package/dist/client/assets/registry-BUELmiFb.js +2 -0
- package/dist/client/assets/{registry-layout-CzJ79GRR.js → registry-layout-Bv1SR3XU.js} +1 -1
- package/dist/client/assets/{reports-BSHwZlIz.js → reports-D4PlxJN8.js} +1 -1
- package/dist/client/assets/{require-capability-Dp0qTVxW.js → require-capability-CYOL6S-e.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Bf2ygqfO.js → required-auth-layout-BadNf0FP.js} +1 -1
- package/dist/client/assets/{reset-password-Cr-rT1U0.js → reset-password-Dz_BpeEr.js} +1 -1
- package/dist/client/assets/{roles-CQt6_mFB.js → roles-DsHBeIpX.js} +1 -1
- package/dist/client/assets/{search-input-CzVqrwgl.js → search-input-eRtomdpQ.js} +1 -1
- package/dist/client/assets/{secrets-Dgw-jCWn.js → secrets-xaPO_Ul_.js} +1 -1
- package/dist/client/assets/{sections-editor-Cnnis1lL.js → sections-editor-BjUPIuiJ.js} +1 -1
- package/dist/client/assets/{select-BL9zv-JP.js → select-CefiTUgj.js} +1 -1
- package/dist/client/assets/{select-model-C52p56Qc.js → select-model-hpWFXkSi.js} +1 -1
- package/dist/client/assets/{self-tool-result-BbtpoGjo.js → self-tool-result-CHvmSsIX.js} +1 -1
- package/dist/client/assets/{seo-editor--8Xe31OX.js → seo-editor-D_EWnP3f.js} +1 -1
- package/dist/client/assets/{settings-layout-CplRCtU8.js → settings-layout-D50iDa_2.js} +1 -1
- package/dist/client/assets/{settings-section-DidGbszQ.js → settings-section-C960zryl.js} +1 -1
- package/dist/client/assets/{shell-controls-XRYGqE-R.js → shell-controls-DJ1Rert2.js} +1 -1
- package/dist/client/assets/{shell-layout-3WAcXYR2.js → shell-layout-NJLfF0_e.js} +1 -1
- package/dist/client/assets/{sidebar-BAaF24ye.js → sidebar-CMNFHIra.js} +1 -1
- package/dist/client/assets/{skeleton-onz47XQi.js → skeleton-Bo-YgqMO.js} +1 -1
- package/dist/client/assets/{sso-DLTxsRbf.js → sso-DhMmI1Te.js} +1 -1
- package/dist/client/assets/{store-CEhJ3ho8.js → store-Bsofkibg.js} +1 -1
- package/dist/client/assets/store-registry-B9ezBnJK.js +2 -0
- package/dist/client/assets/{studio-tools-BhhcZfev.js → studio-tools-BBHXaaAJ.js} +1 -1
- package/dist/client/assets/{switch-m3W7oBlX.js → switch-DI_ObHYK.js} +1 -1
- package/dist/client/assets/{table-BsyOuaNT.js → table-v2gjL7EU.js} +1 -1
- package/dist/client/assets/{tabs-BQp4xLjw.js → tabs-DKQG6gs3.js} +1 -1
- package/dist/client/assets/{textarea-CkyHXuQm.js → textarea-DEJkcZ7j.js} +1 -1
- package/dist/client/assets/{toggle-group-C9YlqJGO.js → toggle-group-BLkkLS1l.js} +1 -1
- package/dist/client/assets/{toolbar-DYjFUHXX.js → toolbar-Dh7M70Tq.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DEXhPEY6.js → toolbar-icon-button-BZllJ9er.js} +1 -1
- package/dist/client/assets/{tooltip-D0dd9ydB.js → tooltip-BOHK0On4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-iWGeiPtA.js → use-ai-providers-Bsac7hB5.js} +1 -1
- package/dist/client/assets/{use-api-keys-DGNPcQCu.js → use-api-keys-DnTpcPgs.js} +1 -1
- package/dist/client/assets/{use-automations-DbG3Rylz.js → use-automations-DafBUEuO.js} +1 -1
- package/dist/client/assets/{use-autosave-CiUUhqUi.js → use-autosave-BOabYPsY.js} +1 -1
- package/dist/client/assets/{use-capability-BxZIF_3J.js → use-capability-CdM4FECT.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BqpT3lz9.js → use-clock-tick-BkPc4RjU.js} +1 -1
- package/dist/client/assets/{use-connection-B_ydhIaR.js → use-connection-ClgMFrpZ.js} +1 -1
- package/dist/client/assets/{use-copy-DKPJm23R.js → use-copy-Dlj9Yo44.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CMfpLhg7.js → use-create-virtual-mcp-CygnaVQO.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-O_qaz61i.js → use-debounced-autosave-BmDbwXYT.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Jiqdx_qI.js → use-debounced-value-B2oza6eL.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CaUme1US.js → use-deco-credits-DmhRJlBv.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BYrGmZOI.js → use-decopilot-events-D7VrwkLK.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BFylMDGc.js → use-delete-connection-CsINVPMB.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Ur6VnLj1.js → use-deployment-admin-HefNEWxn.js} +1 -1
- package/dist/client/assets/{use-file-configs-D378SSra.js → use-file-configs-CtM14T7F.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dl1pnFE_.js → use-infinite-scroll-BRCCFOe_.js} +1 -1
- package/dist/client/assets/{use-join-requests-Dy5u_fZi.js → use-join-requests-CZNyDpek.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C48HeCw9.js → use-mcp-auth-status-tjupSmgi.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BpYZJj4o.js → use-mcp-client-BBS2wBc8.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-l53r1zOu.js → use-mcp-tools-RPaTGUO_.js} +1 -1
- package/dist/client/assets/{use-members-CTrDSEbl.js → use-members-BXFbi5lw.js} +1 -1
- package/dist/client/assets/{use-mobile-CRkRo6zy.js → use-mobile-JVtF6XY7.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D7z6mwyi.js → use-navigate-to-agent-DqfXAZ-6.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C7NIGHa2.js → use-org-auth-client-BpFhLPx3.js} +1 -1
- package/dist/client/assets/{use-org-sso-C3FJc_XM.js → use-org-sso-f_QvizBC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Bt8yo51m.js → use-organization-roles-D2s60vTB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D2HSrnf_.js → use-organization-settings-DfEYzIUp.js} +1 -1
- package/dist/client/assets/{use-registry-app-Cy2XVJ8o.js → use-registry-app-BwHReYDm.js} +1 -1
- package/dist/client/assets/{use-registry-connections-xT5_Tp16.js → use-registry-connections-Di8iJvGo.js} +1 -1
- package/dist/client/assets/{use-secrets-Dlwxdo4W.js → use-secrets-QRS4UIur.js} +1 -1
- package/dist/client/assets/{use-status-sounds-yNgZe7Tt.js → use-status-sounds-DOnHpSDd.js} +1 -1
- package/dist/client/assets/{use-view-mode-YuddT2eW.js → use-view-mode-Dv530cbk.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-vNY0_cuG.js → use-virtual-mcp-QKzdLITZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CQw734Ep.js +1 -0
- package/dist/client/assets/{useQueries-CP5a8Gkq.js → useQueries-_vDV4wPR.js} +1 -1
- package/dist/client/assets/{useRouterState-XbyODXg7.js → useRouterState-Dl-TgL1P.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kVqRtLqF.js +1 -0
- package/dist/client/assets/{users-Dxjht4mz.js → users-darNPvos.js} +1 -1
- package/dist/client/assets/{variant-calendar-DkYf5C0v.js → variant-calendar-aSuL9KCY.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CeUnqVr5.js → view-mode-toggle-7H-3wpDq.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +219 -219
- package/dist/server/server.js +151 -151
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-Cb3ncQL_.js +0 -1
- package/dist/client/assets/project-app-view-CQAJMpON.js +0 -1
- package/dist/client/assets/record-editor-BukgEZzD.js +0 -1
- package/dist/client/assets/redirect-editor-DNT93xia.js +0 -1
- package/dist/client/assets/registry-DEFqq62K.js +0 -2
- package/dist/client/assets/store-registry-B7kPXz4u.js +0 -2
- package/dist/client/assets/useInfiniteQuery-aIQ9VGjU.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-TkWZQEXd.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,a_ as kn,r as N,ab as Es,m as de,j as l,v as Ts,k as Ds,B as Z,b as se,ay as Sn,t as fe,y as Fs,L as Is,f as Ls,d as Nn,u as Pn,E as Tt}from"./index-QzdsfBYd.js";import{s as Cn}from"./Eye-CZVpzZj3.js";import{a as ht}from"./Palette-DWy3dzj0.js";import{s as Ms}from"./Plus-DQlLKoK7.js";import{i as Os}from"./SearchLg-CoOX4SoC.js";import{i as mt}from"./Upload01-Ur6u-B1R.js";import{s as zn}from"./XClose-BO1Lwhh7.js";import{i as Ut}from"./Zap-C4HzUZ29.js";import{u as $n}from"./use-mobile-CRkRo6zy.js";import{A as Rs,a as As,b as _s,c as Bs,d as Us,e as Hs,f as Ks,g as qs}from"./alert-dialog-BsAEBtVk.js";import{a as En,b as Ue,d as nt,e as st,i as Tn,h as Ws,c as Vs}from"./dialog-C7PMQncq.js";import{I as Ye}from"./input-P-LUerq4.js";import{F as Ne,M as Ht,d as Dn}from"./file-type-icon-Cg3Nm1XZ.js";import{T as Gs}from"./toolbar-DYjFUHXX.js";import{a as Xs}from"./Package-D8m71yLY.js";import{u as Qs}from"./use-debounced-value-Jiqdx_qI.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{c as Zs,f as dt,s as Js,b 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-CAsxnm2x.js";import{S as ce}from"./skeleton-onz47XQi.js";import{T as lr}from"./textarea-CkyHXuQm.js";import{t as ir}from"./ChevronDown-ivzZdE8w.js";import{n as ar}from"./ChevronUp-DtesMDJI.js";import{i as pt}from"./X-DjQw217D.js";import{a as or,b as cr,P as dr}from"./popover-1ACpRRoe.js";import{c as ve,T as we,a as je}from"./tooltip-D0dd9ydB.js";import{i as ur}from"./Check-K9ygl0O6.js";import{a as fr}from"./Copy01-B2yggp1R.js";import{n as Ze,i as yt}from"./Globe01-dnwQ58ni.js";import{i as Mn}from"./Key01-DXv7srOu.js";import{n as On}from"./LinkExternal01-BktZyAnv.js";import{l as hr,F as mr}from"./index-Cb8ogyWE.js";import{a as pr}from"./Image01-CTFJ4q_z.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-C3car2Q8.js";import{i as xr}from"./LayoutLeft-BPQ9stJD.js";import{i as br}from"./ChevronRight-wehtSt4J.js";import{t as gr}from"./Stars01-DTVv_6xg.js";import{a as Rn}from"./DotsVertical-0w0ZkjcP.js";import{s as An}from"./Trash01-CvmXP6ap.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 Tr(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 Dr(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 w=(await Promise.allSettled(b.files.map(j=>{const C=b.dir?`${b.dir}/${j.name}`:j.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find(Fr);if(w)throw w.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:w,getPanelSize:j,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),k=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}=k.current,U={...K};k.current.id=A,k.current.idIsFromProps=a!==void 0,k.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(k.current,U)}),Fe(()=>{const q=k.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(k.current)},expand:q=>{w(k.current,q)},getId(){return A},getSize(){return j(k.current)},isCollapsed(){return v(k.current)},isExpanded(){return!v(k.current)},resize:q=>{W(k.current,q)}}),[y,w,j,v,A,W]);const G=C(k.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 Dt(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,De=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=De.get(a))!==null&&i!==void 0?i:0;return De.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=De.get(a))!==null&&f!==void 0?f:1;if(De.set(a,u-1),xt(),u===1&&De.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?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("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&&De.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)):De.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 w=a[y];V(w!=null,`Previous layout not found for panel index ${y}`);const j=w+x,C=_e({panelConstraints:t,panelIndex:y,size:j});if(xe(w,C)||(x-=C-w,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 w=o.findIndex(j=>j.id===p);if(w>=0){const j=o[w];V(j,`No panel data found for index ${w}`);const C=s[w],{collapsedSize:S=0,collapsible:v,minSize:g=0}=j.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([]),w=Vr(),j=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,D=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,D)||(y(D),g.current.layout=D,I&&I(D),Oe(F,D,j.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 D=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=Te(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:D,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,j.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:D}=g.current;if(P.constraints.collapsible){const R=D.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=Te(D,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(D,P)===D.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(D,ae,j.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=Te(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]),k=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:D,panelSize:R}=Te(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),D===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:D,panelSize:R}=Te(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!D||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const D=O.order,R=F.order;return D==null&&R==null?0:D==null?-1:R==null?1:D-R}),g.current.panelDataArrayChanged=!0,w()},[w]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:D}=g.current;let R=null;if(P){const ee=sl(P,D,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:D}));const Y=dn({layout:R,panelConstraints:D.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(D,Y,j.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(D){D.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(D,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(D)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(D)||Gn(D))&&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,j.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:D}=g.current,R=D.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=Te(D,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(D,P)===D.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(D,z,j.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:D=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=Te(F,P,O);z!=null&&(R&&ee&&ke(z,D)?ke(D,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 D=kt(P,m.current);V(D,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:D.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 j.current[P.id],g.current.panelDataArrayChanged=!0,w())},[w]),T=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:k,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,k,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:T},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 Te(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),w=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{w.current.onClick=a,w.current.onDragging=c,w.current.onPointerDown=d,w.current.onPointerUp=f});const j=N.useContext(vt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=j,M=Xt(r),[A,k]=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 T=v(M);U(()=>T)}},[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 T=y.current;V(T,"Element ref not attached");let B=!1;return qr(M,T,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){k("inactive");return}switch(I){case"down":{k("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:D,onPointerDown:R}=w.current;D?.(!0),R?.();break}case"move":{const{state:D}=H.current;B=!0,D!=="drag"&&k("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{k("hover"),$();const{onClick:D,onDragging:R,onPointerUp:Y}=w.current;R?.(!1),Y?.(),B||D?.();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,a_ as kn,r as N,ab as Es,m as de,j as l,v as Ts,k as Ds,B as Z,b as se,ay as Sn,t as fe,y as Fs,L as Is,f as Ls,d as Nn,u as Pn,E as Tt}from"./index-7lMfFoqm.js";import{s as Cn}from"./Eye-CPji9XgK.js";import{a as ht}from"./Palette-BwpXM3TT.js";import{s as Ms}from"./Plus-D-8cpNUO.js";import{i as Os}from"./SearchLg-B8C5Qm8O.js";import{i as mt}from"./Upload01-D2PYYKGU.js";import{s as zn}from"./XClose-DoQ8FIVP.js";import{i as Ut}from"./Zap-BYKdCfkZ.js";import{u as $n}from"./use-mobile-JVtF6XY7.js";import{A as Rs,a as As,b as _s,c as Bs,d as Us,e as Hs,f as Ks,g as qs}from"./alert-dialog-DSeYsJav.js";import{a as En,b as Ue,d as nt,e as st,i as Tn,h as Ws,c as Vs}from"./dialog-7TP2Rj2D.js";import{I as Ye}from"./input-AF9b5wfZ.js";import{F as Ne,M as Ht,d as Dn}from"./file-type-icon-C50voPyF.js";import{T as Gs}from"./toolbar-Dh7M70Tq.js";import{a as Xs}from"./Package-BgoRXE8D.js";import{u as Qs}from"./use-debounced-value-B2oza6eL.js";import{p as gt,b as ne,a as Me,c as Fn,d as Ys}from"./location-BpLtHjTZ.js";import{c as Zs,f as dt,s as Js,b 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-CeX9nBzw.js";import{S as ce}from"./skeleton-Bo-YgqMO.js";import{T as lr}from"./textarea-DEJkcZ7j.js";import{t as ir}from"./ChevronDown-BgfnpwV0.js";import{n as ar}from"./ChevronUp-C5_Sfc3S.js";import{i as pt}from"./X-pxLklxt-.js";import{a as or,b as cr,P as dr}from"./popover-BkL7Aezg.js";import{c as ve,T as we,a as je}from"./tooltip-BOHK0On4.js";import{i as ur}from"./Check-CC9gPb_A.js";import{a as fr}from"./Copy01-Diq48EWM.js";import{n as Ze,i as yt}from"./Globe01-DVNadxp3.js";import{i as Mn}from"./Key01-CtX8cIgY.js";import{n as On}from"./LinkExternal01-Calr_A6c.js";import{l as hr,F as mr}from"./index-BhfXxR4M.js";import{a as pr}from"./Image01-COoMGEPb.js";import{c as Kt,D as qt,b as Wt,a as Ie}from"./dropdown-menu-CZyflK5H.js";import{i as xr}from"./LayoutLeft-B98Y7j9l.js";import{i as br}from"./ChevronRight-21KH5QUR.js";import{t as gr}from"./Stars01-CB8X2GZM.js";import{a as Rn}from"./DotsVertical-CnVoFOdL.js";import{s as An}from"./Trash01-CVr9u3xi.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 Tr(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 Dr(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 w=(await Promise.allSettled(b.files.map(j=>{const C=b.dir?`${b.dir}/${j.name}`:j.name;return he(be(t.slug,n,"file",{path:C}),{method:"PUT",headers:{"content-type":j.type||"application/octet-stream"},body:j})}))).find(Fr);if(w)throw w.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:w,getPanelSize:j,getPanelStyle:C,groupId:S,isPanelCollapsed:v,reevaluatePanelConstraints:g,registerPanel:$,resizePanel:W,unregisterPanel:M}=b,A=Xt(a),k=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}=k.current,U={...K};k.current.id=A,k.current.idIsFromProps=a!==void 0,k.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(k.current,U)}),Fe(()=>{const q=k.current;return $(q),()=>{M(q)}},[h,A,$,M]),N.useImperativeHandle(i,()=>({collapse:()=>{y(k.current)},expand:q=>{w(k.current,q)},getId(){return A},getSize(){return j(k.current)},isCollapsed(){return v(k.current)},isExpanded(){return!v(k.current)},resize:q=>{W(k.current,q)}}),[y,w,j,v,A,W]);const G=C(k.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 Dt(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,De=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=De.get(a))!==null&&i!==void 0?i:0;return De.set(a,o+1),Je.add(c),xt(),function(){var f;jt.delete(n),Je.delete(c);const u=(f=De.get(a))!==null&&f!==void 0?f:1;if(De.set(a,u-1),xt(),u===1&&De.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?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("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&&De.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)):De.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 w=a[y];V(w!=null,`Previous layout not found for panel index ${y}`);const j=w+x,C=_e({panelConstraints:t,panelIndex:y,size:j});if(xe(w,C)||(x-=C-w,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 w=o.findIndex(j=>j.id===p);if(w>=0){const j=o[w];V(j,`No panel data found for index ${w}`);const C=s[w],{collapsedSize:S=0,collapsible:v,minSize:g=0}=j.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([]),w=Vr(),j=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,D=dn({layout:P,panelConstraints:F.map(R=>R.constraints)});on(O,D)||(y(D),g.current.layout=D,I&&I(D),Oe(F,D,j.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 D=F.map(me=>me.constraints),{collapsedSize:R=0,panelSize:Y,pivotIndices:ee}=Te(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:D,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});ut(O,z)||(y(z),g.current.layout=z,I&&I(z),Oe(F,z,j.current))}}},[]),W=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:D}=g.current;if(P.constraints.collapsible){const R=D.map(J=>J.constraints),{collapsedSize:Y=0,panelSize:ee=0,minSize:me=0,pivotIndices:pe}=Te(D,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(D,P)===D.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(D,ae,j.current))}}},[]),M=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{panelSize:F}=Te(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]),k=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:D,panelSize:R}=Te(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),D===!0&&ke(R,F)},[]),G=N.useCallback(P=>{const{layout:I,panelDataArray:O}=g.current,{collapsedSize:F=0,collapsible:D,panelSize:R}=Te(O,P,I);return V(R!=null,`Panel size not found for panel "${P.id}"`),!D||Le(R,F)>0},[]),q=N.useCallback(P=>{const{panelDataArray:I}=g.current;I.push(P),I.sort((O,F)=>{const D=O.order,R=F.order;return D==null&&R==null?0:D==null?-1:R==null?1:D-R}),g.current.panelDataArrayChanged=!0,w()},[w]);Fe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:P,onLayout:I,storage:O}=v.current,{layout:F,panelDataArray:D}=g.current;let R=null;if(P){const ee=sl(P,D,O);ee&&(C.current=new Map(Object.entries(ee.expandToSizes)),R=ee.layout)}R==null&&(R=el({panelDataArray:D}));const Y=dn({layout:R,panelConstraints:D.map(ee=>ee.constraints)});on(F,Y)||(y(Y),g.current.layout=Y,I&&I(Y),Oe(D,Y,j.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(D){D.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(D,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(D)?"keyboard":"mouse-or-touch"}),ot=!ut(J,Ee);(Vn(D)||Gn(D))&&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,j.current))}},[]),U=N.useCallback((P,I)=>{const{onLayout:O}=v.current,{layout:F,panelDataArray:D}=g.current,R=D.map(J=>J.constraints),{panelSize:Y,pivotIndices:ee}=Te(D,P,F);V(Y!=null,`Panel size not found for panel "${P.id}"`);const pe=Re(D,P)===D.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(D,z,j.current))},[]),H=N.useCallback((P,I)=>{const{layout:O,panelDataArray:F}=g.current,{collapsedSize:D=0,collapsible:R}=I,{collapsedSize:Y=0,collapsible:ee,maxSize:me=100,minSize:pe=0}=P.constraints,{panelSize:z}=Te(F,P,O);z!=null&&(R&&ee&&ke(z,D)?ke(D,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 D=kt(P,m.current);V(D,`Drag handle element not found for id "${P}"`);const R=rs(O,I);x({dragHandleId:P,dragHandleRect:D.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 j.current[P.id],g.current.panelDataArrayChanged=!0,w())},[w]),T=N.useMemo(()=>({collapsePanel:$,direction:s,dragState:p,expandPanel:W,getPanelSize:M,getPanelStyle:A,groupId:h,isPanelCollapsed:k,isPanelExpanded:G,reevaluatePanelConstraints:H,registerPanel:q,registerResizeHandle:K,resizePanel:U,startDragging:_,stopDragging:Q,unregisterPanel:le,panelGroupElement:m.current}),[$,p,s,W,M,A,h,k,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:T},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 Te(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),w=N.useRef({onClick:a,onDragging:c,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{w.current.onClick=a,w.current.onDragging=c,w.current.onPointerDown=d,w.current.onPointerUp=f});const j=N.useContext(vt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:S,registerResizeHandle:v,startDragging:g,stopDragging:$,panelGroupElement:W}=j,M=Xt(r),[A,k]=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 T=v(M);U(()=>T)}},[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 T=y.current;V(T,"Element ref not attached");let B=!1;return qr(M,T,C,{coarse:_,fine:Q},(I,O,F)=>{if(!O){k("inactive");return}switch(I){case"down":{k("drag"),B=!1,V(F,'Expected event to be defined for "down" action'),g(M,F);const{onDragging:D,onPointerDown:R}=w.current;D?.(!0),R?.();break}case"move":{const{state:D}=H.current;B=!0,D!=="drag"&&k("hover"),V(F,'Expected event to be defined for "move" action'),K(F);break}case"up":{k("hover"),$();const{onClick:D,onDragging:R,onPointerUp:Y}=w.current;R?.(!1),Y?.(),B||D?.();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
|
`)}function vl(n){const e=E.c(10),{icon:t,className:s}=n,r=s===void 0?"size-4":s;if(t.kind==="component"){const{Component:a}=t;let c;return e[0]!==a||e[1]!==r?(c=l.jsx(a,{className:r}),e[0]=a,e[1]=r,e[2]=c):c=e[2],c}if(t.kind==="url"){const a=t.src;let c;e[3]!==r?(c=de(r,"rounded-sm object-cover"),e[3]=r,e[4]=c):c=e[4];let o;return e[5]!==t.src||e[6]!==c?(o=l.jsx("img",{src:a,alt:"",className:c}),e[5]=t.src,e[6]=c,e[7]=o):o=e[7],o}let i;return e[8]!==r?(i=l.jsx(Xs,{className:r}),e[8]=r,e[9]=i):i=e[9],i}function wl(n){const e=E.c(19),{title:t,icon:s,active:r,onClick:i,disabled:a,locked:c,className:o,testId:d,dataTour:f}=n,u=a===void 0?!1:a,h=c===void 0?!1:c,m=h||void 0,p=h&&"pointer-events-none",x=r?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let b;e[0]!==o||e[1]!==p||e[2]!==x?(b=de("shrink-0 flex items-center gap-1.5 h-7 rounded-md px-2","[transition:background-color_180ms_ease,color_180ms_ease]","disabled:opacity-40 disabled:pointer-events-none",p,x,o),e[0]=o,e[1]=p,e[2]=x,e[3]=b):b=e[3];let y;e[4]!==s?(y=l.jsx("span",{className:"flex size-5 items-center justify-center shrink-0",children:l.jsx(vl,{icon:s})}),e[4]=s,e[5]=y):y=e[5];let w;e[6]!==t?(w=l.jsx("span",{className:"max-md:hidden whitespace-nowrap text-sm font-medium leading-none",children:t}),e[6]=t,e[7]=w):w=e[7];let j;return e[8]!==r||e[9]!==f||e[10]!==u||e[11]!==i||e[12]!==m||e[13]!==b||e[14]!==y||e[15]!==w||e[16]!==d||e[17]!==t?(j=l.jsxs("button",{type:"button",onClick:i,disabled:u,"data-testid":d,"data-tour":f,"aria-pressed":r,"aria-disabled":m,"aria-label":t,className:b,children:[y,w]}),e[8]=r,e[9]=f,e[10]=u,e[11]=i,e[12]=m,e[13]=b,e[14]=y,e[15]=w,e[16]=d,e[17]=t,e[18]=j):j=e[18],j}hr.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function jl(n){const e=E.c(11),{value:t,filename:s}=n,[r]=Ts(),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(Ds,{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 kl=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Sl=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 Nl(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return kl.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=mn?"markdown":"download":Sl.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(jl,{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(Nl(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 Pl(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 w;e[30]!==o?(w=()=>window.open(o,"_blank","noopener"),e[30]=o,e[31]=w):w=e[31];let j;e[32]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(On,{size:14}),e[32]=j):j=e[32];let C;e[33]!==y||e[34]!==w?(C=l.jsx(we,{asChild:!0,children:l.jsx(Z,{variant:"ghost",size:"icon","aria-label":y,onClick:w,children:j})}),e[33]=y,e[34]=w,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 Cl(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 zl(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?ps(t).length:null}function $l(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>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,f as p,j as s,k as u,N as a}from"./index-
|
|
1
|
+
import{c as g,f as p,j as s,k as u,N as a}from"./index-7lMfFoqm.js";import{a as x}from"./use-capability-CdM4FECT.js";import{C as j}from"./capability-load-error-Cua73DjP.js";function v(){const t=g.c(21);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:f,error:c}=x();if(f){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:s.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("registry:manage")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/store",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("monitoring:view")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}if(i("members:manage")){let e;return t[17]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[17]=r,t[18]=e):e=t[18],e}let n;return t[19]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[19]=r,t[20]=n):n=t[20],n}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,m as a,j as d}from"./index-
|
|
1
|
+
import{c as s,m as a,j as d}from"./index-7lMfFoqm.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-background dark:bg-input/30 px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as h,r as C,m as L}from"./index-
|
|
1
|
+
import{c as k,j as h,r as C,m as L}from"./index-7lMfFoqm.js";import{n as Z}from"./Tool02-r9aj6Qyy.js";import{A as y}from"./agent-icon-DklLFaSa.js";const M={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},R={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},T={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28},W={"2xs":"xs",xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"lg"};function G(E){const t=k.c(13),{icon:e,name:s,size:w,className:o,fallbackIcon:c,fit:g}=E,n=w===void 0?"md":w,I=g===void 0?"cover":g;if(e?.startsWith("icon://")||e?.includes("#agentcolor=")){const r=W[n];let l;return t[0]!==o||t[1]!==e||t[2]!==s||t[3]!==r?(l=h.jsx(y,{icon:e,name:s,size:r,className:o}),t[0]=o,t[1]=e,t[2]=s,t[3]=r,t[4]=l):l=t[4],l}const S=e??"no-icon";let i;return t[5]!==o||t[6]!==c||t[7]!==I||t[8]!==e||t[9]!==s||t[10]!==n||t[11]!==S?(i=h.jsx($,{icon:e,name:s,size:n,className:o,fallbackIcon:c,fit:I},S),t[5]=o,t[6]=c,t[7]=I,t[8]=e,t[9]=s,t[10]=n,t[11]=S,t[12]=i):i=t[12],i}function $(E){const t=k.c(25),{icon:e,name:s,size:w,className:o,fallbackIcon:c,fit:g}=E,n=w===void 0?"md":w,I=g===void 0?"cover":g,[S,i]=C.useState(!1),r=!!e&&S,l=M[n],p=R[n];let a;t[0]!==o||t[1]!==l||t[2]!==p?(a=L("rounded-lg border border-border shrink-0 overflow-hidden aspect-square bg-white",l,p,o),t[0]=o,t[1]=l,t[2]=p,t[3]=a):a=t[3];const N=e||void 0,_=I==="contain"?"object-contain":"object-cover",A=!r&&"hidden";let m;t[4]!==_||t[5]!==A?(m=L("h-full w-full",_,A),t[4]=_,t[5]=A,t[6]=m):m=t[6];let v,j;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=()=>i(!1),j=()=>i(!0),t[7]=v,t[8]=j):(v=t[7],j=t[8]);let d;t[9]!==s||t[10]!==N||t[11]!==m?(d=h.jsx("img",{src:N,alt:s,className:m,onError:v,onLoad:j}),t[9]=s,t[10]=N,t[11]=m,t[12]=d):d=t[12];const z=r&&"hidden";let f;t[13]!==z?(f=L("h-full w-full flex items-center justify-center bg-muted/20",z),t[13]=z,t[14]=f):f=t[14];let x;t[15]!==c||t[16]!==n?(x=c??h.jsx(Z,{size:T[n],className:"text-muted-foreground"}),t[15]=c,t[16]=n,t[17]=x):x=t[17];let u;t[18]!==f||t[19]!==x?(u=h.jsx("div",{className:f,children:x}),t[18]=f,t[19]=x,t[20]=u):u=t[20];let b;return t[21]!==d||t[22]!==u||t[23]!==a?(b=h.jsxs("div",{className:a,children:[d,u]}),t[21]=d,t[22]=u,t[23]=a,t[24]=b):b=t[24],b}export{G as I};
|
package/dist/client/assets/{invite-member-dialog-CGMe2vvR.js → invite-member-dialog-DItYBiCO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as B,r as I,F as L,o as O,a as V,Z as K,b as q,e as z,p,t as c,K as v,j as o,B as j}from"./index-
|
|
1
|
+
import{X as B,r as I,F as L,o as O,a as V,Z as K,b as q,e as z,p,t as c,K as v,j as o,B as j}from"./index-7lMfFoqm.js";import{e as Q,D as k,d as G,a as H,b as U,c as X}from"./dialog-7TP2Rj2D.js";import{a as Y,F as C,b as D,c as Z,d as M,e as S}from"./form-C8YEeakk.js";import{S as J,a as W,b as $,c as _,d as ee}from"./select-CefiTUgj.js";import{T as oe}from"./textarea-DEJkcZ7j.js";import{u as ne}from"./use-org-auth-client-BpFhLPx3.js";import{u as se}from"./use-organization-roles-D2s60vTB.js";const ie=B().email("Invalid email address");function te(l){if(!l.trim())return[];const u=l.split(/[,;\n]/).map(r=>r.trim().toLowerCase()).filter(r=>r.length>0);return Array.from(new Set(u))}function he({trigger:l}){const[u,r]=I.useState(!1),{locator:h}=L(),w=ne(),x=O(),{data:F}=V.useSession(),f=F?.user?.email,{roles:E,isLoading:P}=se(),T=E.filter(n=>n.role!=="owner"),t=K({mode:"onChange",defaultValues:{emailsText:"",role:"user"}}),y=t.watch("emailsText"),A=t.watch("role"),m=te(y).filter(n=>{const e=ie.safeParse(n).success,i=!f||n!==f.toLowerCase();return e&&i}),s=q(),a=z({mutationFn:async({emails:n,role:e})=>{if(!e)throw new Error(s("common.inviteMemberDialog.errorSelectRole"));const i=await Promise.allSettled(n.map(async d=>{const g=await w.organization.inviteMember({email:d,role:e});if(g.error)throw new Error(g.error.message);return g.data})),b=i.filter(d=>d.status==="rejected");if(b.length>0)throw new Error(s("common.inviteMemberDialog.errorFailedInvite",{count:b.length}));return i},onSuccess:(n,{emails:e,role:i})=>{p("member_invited",{count:e.length,role:i}),x.invalidateQueries({queryKey:v.members(h)}),x.invalidateQueries({queryKey:v.invitations(h)}),c.success(e.length===1?s("common.inviteMemberDialog.successSingle"):s("common.inviteMemberDialog.successMultiple",{count:e.length})),t.reset({emailsText:"",role:"user"}),r(!1)},onError:(n,{emails:e,role:i})=>{p("member_invite_failed",{count:e.length,role:i,error:n instanceof Error?n.message:String(n)}),c.error(n instanceof Error?n.message:s("common.inviteMemberDialog.errorGeneric"))}}),N=n=>{if(m.length===0){c.error(s("common.inviteMemberDialog.errorNoValidEmail"));return}if(!n.role){c.error(s("common.inviteMemberDialog.errorSelectRole"));return}a.mutate({emails:m,role:n.role})},R=m.length>0&&!!A;return o.jsxs(Q,{open:u,onOpenChange:r,children:[o.jsx(k,{asChild:!0,children:l}),o.jsxs(G,{className:"sm:max-w-lg",children:[o.jsx(H,{children:o.jsx(U,{children:s("common.inviteMemberDialog.title")})}),o.jsx(Y,{...t,children:o.jsxs("form",{onSubmit:t.handleSubmit(N),className:"space-y-4",children:[o.jsx(C,{control:t.control,name:"emailsText",render:({field:n})=>o.jsxs(D,{children:[o.jsx(Z,{children:s("common.inviteMemberDialog.emailLabel")}),o.jsx(M,{children:o.jsx(oe,{...n,disabled:a.isPending,placeholder:s("common.inviteMemberDialog.emailPlaceholder"),className:"min-h-[120px] resize-none"})}),o.jsx(S,{})]})}),o.jsx(C,{control:t.control,name:"role",render:({field:n})=>o.jsxs(D,{children:[o.jsx(M,{children:o.jsxs(J,{value:n.value,onValueChange:n.onChange,disabled:a.isPending||P,children:[o.jsx(W,{className:"w-full",children:o.jsx($,{placeholder:s("common.inviteMemberDialog.roleSelectPlaceholder")})}),o.jsx(_,{children:T.map(e=>{const i=[];return e.isBuiltin||(e.allowsAllStaticPermissions?i.push(s("common.inviteMemberDialog.permFullOrgAccess")):e.staticPermissionCount&&e.staticPermissionCount>0&&i.push(s("common.inviteMemberDialog.permOrgPerms",{count:e.staticPermissionCount})),e.allowsAllConnections?i.push(s("common.inviteMemberDialog.permAllConnections")):e.connectionCount&&e.connectionCount>0&&i.push(s("common.inviteMemberDialog.permConnections",{count:e.connectionCount})),(e.connectionCount!==0||e.allowsAllConnections)&&(e.allowsAllTools?i.push(s("common.inviteMemberDialog.permAllTools")):e.toolCount&&e.toolCount>0&&i.push(s("common.inviteMemberDialog.permTools",{count:e.toolCount})))),o.jsx(ee,{value:e.role,children:o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{children:e.label}),!e.isBuiltin&&i.length>0&&o.jsx("span",{className:"text-xs text-muted-foreground",children:i.join(", ")})]})},e.role)})})]})}),o.jsx(S,{})]})}),o.jsxs(X,{children:[o.jsx(j,{variant:"outline",onClick:()=>{t.reset({emailsText:"",role:"user"}),r(!1)},type:"button",disabled:a.isPending,children:s("common.inviteMemberDialog.cancelButton")}),o.jsx(j,{type:"submit",disabled:a.isPending||!R,children:a.isPending?s("common.inviteMemberDialog.invitingButton"):s("common.inviteMemberDialog.inviteButton",{count:m.length||0})})]})]})})]})]})}export{he as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m as r,j as i,bF as p}from"./index-
|
|
1
|
+
import{c as n,m as r,j as i,bF as p}from"./index-7lMfFoqm.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as s,b,k as j,B as _,L as y,l as g,O as v,m as N}from"./index-
|
|
1
|
+
import{c as p,j as s,b,k as j,B as _,L as y,l as g,O as v,m as N}from"./index-7lMfFoqm.js";import{u as A}from"./useRouterState-Dl-TgL1P.js";import{R as S}from"./required-auth-layout-BadNf0FP.js";import{u as R}from"./use-deployment-admin-HefNEWxn.js";const T=[{to:"/_admin/users",labelKey:"admin.layout.usersTab"},{to:"/_admin/orgs",labelKey:"admin.layout.organizationsTab"}];function k(){const e=p.c(6);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:D},e[0]=o):o=e[0];const c=A(o),r=b();let t;e[1]!==c||e[2]!==r?(t=T.map(a=>s.jsx(y,{to:a.to,className:N("-mb-px border-b-2 px-3 py-2.5 text-sm font-medium transition-colors",c.startsWith(a.to)?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground"),children:r(a.labelKey)},a.to)),e[1]=c,e[2]=r,e[3]=t):t=e[3];let i;return e[4]!==t?(i=s.jsx("nav",{className:"flex items-center gap-1 border-b border-border px-4 md:px-10",children:t}),e[4]=t,e[5]=i):i=e[5],i}function D(e){return e.location.pathname}function L(){const e=p.c(22),{isAdmin:o,loading:c,needsEmailVerification:r}=R(),t=b();if(c){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex h-dvh flex-1 items-center justify-center",children:s.jsx(j,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0],n}if(!o){let n;e[1]!==t?(n=t("admin.layout.adminDashboardArea"),e[1]=t,e[2]=n):n=e[2];let l;e[3]!==r||e[4]!==t?(l=t(r?"admin.layout.emailVerificationRequired":"admin.layout.restrictedToDashboard"),e[3]=r,e[4]=t,e[5]=l):l=e[5];let m;e[6]!==t?(m=t("admin.layout.goHome"),e[6]=t,e[7]=m):m=e[7];let d;e[8]!==m?(d=s.jsx(_,{variant:"outline",size:"sm",asChild:!0,children:s.jsx(y,{to:"/",children:m})}),e[8]=m,e[9]=d):d=e[9];let h;return e[10]!==n||e[11]!==l||e[12]!==d?(h=s.jsx(g,{area:n,description:l,action:d}),e[10]=n,e[11]=l,e[12]=d,e[13]=h):h=e[13],h}let i;e[14]!==t?(i=t("admin.layout.adminDashboard"),e[14]=t,e[15]=i):i=e[15];let a;e[16]!==i?(a=s.jsx("div",{className:"shrink-0 px-4 pt-6 md:px-10",children:s.jsx("h1",{className:"pb-4 text-xl font-medium",children:i})}),e[16]=i,e[17]=a):a=e[17];let f;e[18]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(k,{}),e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(v,{})}),e[19]=u):u=e[19];let x;return e[20]!==a?(x=s.jsxs("div",{className:"flex h-dvh flex-col overflow-hidden bg-background",children:[a,f,u]}),e[20]=a,e[21]=x):x=e[21],x}function $(){const e=p.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(S,{children:s.jsx(L,{})}),e[0]=o):o=e[0],o}export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,u as f,j as o,S as g,N as p}from"./index-
|
|
1
|
+
import{a,u as f,j as o,S as g,N as p}from"./index-7lMfFoqm.js";import{A as x}from"./auth-entry-Df_hdiFv.js";import{A as S}from"./auth-split-layout-CUBOf-5N.js";import"./input-AF9b5wfZ.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";function y(e){if(!e.client_id||e.response_type!=="code")return null;const t=new URLSearchParams;return e.client_id&&t.set("client_id",e.client_id),e.redirect_uri&&t.set("redirect_uri",e.redirect_uri),e.response_type&&t.set("response_type",e.response_type),e.state&&t.set("state",e.state),e.scope&&t.set("scope",e.scope),e.code_challenge&&t.set("code_challenge",e.code_challenge),e.code_challenge_method&&t.set("code_challenge_method",e.code_challenge_method),`/api/auth/mcp/authorize?${t.toString()}`}function N(){const e=a.useSession(),t=f({from:"/login"}),{next:i="/",client_id:r,redirect_uri:s,response_type:l,state:h,scope:u,code_challenge:d,code_challenge_method:_}=t,n=i.startsWith("/")&&!i.startsWith("//")?i:"/",c=y({client_id:r,redirect_uri:s,response_type:l,state:h,scope:u,code_challenge:d,code_challenge_method:_});return e.data?c?(window.location.href=c,o.jsx(g,{})):o.jsx(p,{to:n}):o.jsx(S,{children:o.jsx(x,{callbackUrl:n,redirectUrl:c})})}export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as x,b as N,c as z,a as D}from"./auth-
|
|
1
|
+
import{d as x,b as N,c as z,a as D}from"./auth-BTPRevv4.js";function E(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString(16)}function H(){return window.location.origin}function C(){try{const t=window.location.hostname;return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}const M=new Map,R="mcp:oauth:callback:";class W{serverUrl;_clientMetadata;_redirectUrl;_windowMode;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(e){this.serverUrl=e.serverUrl,this._redirectUrl=e.callbackUrl??`${H()}/oauth/callback`,this._windowMode=e.windowMode??"popup";const n=e.scope?Array.isArray(e.scope)?e.scope.join(" "):e.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:e.clientName??"@decocms/mesh MCP client",...n&&{scope:n}},M.set(E(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(e){this._clientInfo=e}tokens(){return this._tokens??void 0}saveTokens(e){this._tokens=e}redirectToAuthorization(e){if(this._windowMode==="tab"){if(!window.open(e.toString(),"_blank"))throw new Error("Tab was blocked")}else{const o=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2;if(!window.open(e.toString(),"mcp-oauth",`width=600,height=700,left=${o},top=${s},popup=yes`)&&!window.open(e.toString(),"_blank"))throw new Error("Popup was blocked")}}saveCodeVerifier(e){this._codeVerifier=e}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){M.delete(E(this.serverUrl))}}async function G(t){const e=t.meshUrl??window.location.origin,n=t.orgSlug?`/api/${encodeURIComponent(t.orgSlug)}/mcp/${t.connectionId}`:`/mcp/${t.connectionId}`,r=new URL(n,e),o=new W({serverUrl:r.href,clientName:t.clientName,clientUri:t.clientUri,callbackUrl:t.callbackUrl,scope:t.scope,windowMode:t.windowMode}),s={fn:null};try{const i=new Promise((l,d)=>{const k=t.timeout||12e4;let b,p=!1;const L=o.state(),A=`${R}${L}`,h=()=>{window.removeEventListener("message",v),window.removeEventListener("storage",O),clearTimeout(b);try{localStorage.removeItem(A)}catch{}};s.fn=u=>{p||(p=!0,h(),d(u))};const U=async u=>{if(p)return;if(p=!0,!u.success){h(),d(new Error(u.error||"OAuth authentication failed"));return}const{code:m,state:$}=u;if(!m){h(),d(new Error("Missing authorization code"));return}if(o.getStoredState()!==$){h(),d(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const T=(await x(r))?.authorization_servers?.[0]||r,S=await N(T),g=o.clientInformation();if(!g){h(),d(new Error("Client information not found"));return}const P=o.codeVerifier(),V=await z(T,{metadata:S,clientInformation:g,authorizationCode:m,codeVerifier:P,redirectUri:o.redirectUrl,resource:new URL(r)});h(),l({tokens:V,clientId:g.client_id??null,clientSecret:"client_secret"in g?g.client_secret:null,tokenEndpoint:S?.token_endpoint??null,userinfoEndpoint:S?.userinfo_endpoint??null})}catch(I){h(),d(I)}},v=async u=>{!C()&&u.origin!==window.location.origin||u.data?.type==="mcp:oauth:callback"&&await U(u.data)},O=async u=>{if(!(u.key!==A||!u.newValue))try{const m=JSON.parse(u.newValue);await U(m)}catch{}};window.addEventListener("message",v),window.addEventListener("storage",O),b=setTimeout(()=>{p||(p=!0,h(),d(new Error("OAuth authentication timeout")))},k)});if(i.catch(()=>{}),await D(o,{serverUrl:r})==="REDIRECT"){const l=await i,d=l.tokens;return{token:l.tokens.access_token,tokenInfo:{accessToken:l.tokens.access_token,refreshToken:l.tokens.refresh_token??null,expiresIn:l.tokens.expires_in??null,scope:l.tokens.scope??null,clientId:l.clientId,clientSecret:l.clientSecret,tokenEndpoint:l.tokenEndpoint,userinfoEndpoint:l.userinfoEndpoint,idToken:typeof d.id_token=="string"?d.id_token:null},error:null}}const a=o.tokens(),w=o.clientInformation(),f=a;return{token:a?.access_token||null,tokenInfo:a?{accessToken:a.access_token,refreshToken:a.refresh_token??null,expiresIn:a.expires_in??null,scope:a.scope??null,clientId:w?.client_id??null,clientSecret:w&&"client_secret"in w?w.client_secret:null,tokenEndpoint:null,userinfoEndpoint:null,idToken:f&&typeof f.id_token=="string"?f.id_token:null}:null,error:null}}catch(i){return s.fn&&s.fn(i instanceof Error?i:new Error(String(i))),{token:null,tokenInfo:null,error:i instanceof Error?i.message:String(i)}}finally{o.cleanup()}}function y(t,e){if(window.opener&&!window.opener.closed){const n=C()?"*":window.location.origin;return window.opener.postMessage(t,n),!0}if(e)try{const n=`${R}${e}`;return localStorage.setItem(n,JSON.stringify(t)),!0}catch{}return!1}async function X(){const t=new URLSearchParams(window.location.search),e=t.get("code");let n=t.get("state");const r=t.get("error"),o=t.get("error_description");let s=n;if(n)try{const c=atob(n),a=JSON.parse(c);a.clientState&&(s=a.clientState)}catch{}if(r){const c=o||r;return y({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}if(!e||!n){const c="Missing code or state parameter";return y({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}return n=s||n,y({type:"mcp:oauth:callback",success:!0,code:e,state:n},n)?{success:!0}:{success:!1,error:"Parent window not available"}}function _(){if(typeof window<"u"&&window.location?.origin)return window.location.origin}function j(t){try{const e=_(),n=e?new URL(t,e):new URL(t),r=n.pathname.match(/^\/api\/[^/]+\/mcp\/([^/]+)/);return r?r[1]??null:n.pathname.match(/^\/mcp\/([^/]+)/)?.[1]??null}catch{return null}}function J(t){try{const e=_();return(e?new URL(t,e):new URL(t)).pathname.match(/^\/api\/([^/]+)\/mcp\//)?.[1]??null}catch{return null}}async function K(t,e,n){try{const r=`/api/${encodeURIComponent(e)}/connections/${t}/oauth-token/status`,o=n?new URL(r,n).href:r,s=_(),i=!n||new URL(n).origin===s,c=await fetch(o,{credentials:i?"include":"omit"});return c.ok?{hasToken:(await c.json()).hasToken===!0}:{hasToken:!1}}catch{return{hasToken:!1}}}async function q({url:t,token:e,orgId:n,meshUrl:r}){try{const o=new Headers;o.set("Content-Type","application/json"),o.set("Accept","application/json, text/event-stream");const s=await fetch(t,{method:"POST",headers:o,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"@decocms/mesh MCP client",version:"1.0.0"}}})}),i=j(t),c=J(t),a=_(),w=r??(a?new URL(t,a).origin:new URL(t).origin);if(s.ok)return{isAuthenticated:!0,supportsOAuth:!1,hasOAuthToken:(i&&c?await K(i,c,w):{hasToken:!1}).hasToken};let f;try{const k=await s.json();f=k.error||k.message}catch{}return s.status>=500?{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:f||`HTTP ${s.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!s.headers.get("WWW-Authenticate"),hasOAuthToken:!1,error:f||`HTTP ${s.status}`}}catch(o){return console.error("[isConnectionAuthenticated] Error:",o),{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:o.message}}}export{G as a,X as h,q as i};
|