decocms 4.95.0 → 4.95.2
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-2HcEr3aA.js → AlertCircle-8aL2p4Jm.js} +1 -1
- package/dist/client/assets/{AreaChart-C8HEwiaS.js → AreaChart-CH1JlaHA.js} +1 -1
- package/dist/client/assets/{ArrowRight-BhbwwlKa.js → ArrowRight-BmTkQdSS.js} +1 -1
- package/dist/client/assets/{ArrowUp-bMePGYxE.js → ArrowUp-BRv6jMcd.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B7W17SiR.js → ArrowUpRight-DgWDf4bB.js} +1 -1
- package/dist/client/assets/{Check-r7PeF0eX.js → Check-xlx8bieA.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cgo9UV5-.js → CheckCircle-BhHr7P8S.js} +1 -1
- package/dist/client/assets/{ChevronDown-DyTq4IzF.js → ChevronDown-z_OgoJuG.js} +1 -1
- package/dist/client/assets/{ChevronRight-B_jrVjJU.js → ChevronRight-HByc-_dD.js} +1 -1
- package/dist/client/assets/{ChevronUp-CVW5xbC5.js → ChevronUp-C0dubflE.js} +1 -1
- package/dist/client/assets/{Copy01-BJc2r-WF.js → Copy01-BhLnIcPa.js} +1 -1
- package/dist/client/assets/{DotsVertical-1ay7rtoJ.js → DotsVertical-9e8whEmO.js} +1 -1
- package/dist/client/assets/{Eye-CtVV9e2j.js → Eye-Dmrq3Yx3.js} +1 -1
- package/dist/client/assets/{FilterLines-BhHlEzjv.js → FilterLines-LxfJFt1s.js} +1 -1
- package/dist/client/assets/{Globe01-DoHz4MgR.js → Globe01-C1OI0rNn.js} +1 -1
- package/dist/client/assets/{Globe04-S2vGDspM.js → Globe04-D37KO3Rl.js} +1 -1
- package/dist/client/assets/{HardDrive-CQEIN_su.js → HardDrive-xaUFGQWK.js} +1 -1
- package/dist/client/assets/{Image01-CUXxaE-D.js → Image01-D2MElAgS.js} +1 -1
- package/dist/client/assets/{Key01-Ccp0XsVr.js → Key01-CJ4v8ToT.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CGrbMvWa.js → LayoutLeft-BXx4559W.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ClJ56TMW.js → LinkExternal01-RdFrwyl0.js} +1 -1
- package/dist/client/assets/{Monitor01-DZz4yj0_.js → Monitor01-ByOW8gCA.js} +1 -1
- package/dist/client/assets/{Package-B1orPXJq.js → Package-BApyVZZF.js} +1 -1
- package/dist/client/assets/{Palette-BaolxSVv.js → Palette-gwCbQEVd.js} +1 -1
- package/dist/client/assets/{Play-BWff13WX.js → Play-CRcD5urt.js} +1 -1
- package/dist/client/assets/{Plus-Cu-dDUfk.js → Plus-CpvaryXc.js} +1 -1
- package/dist/client/assets/{SearchLg-DfHFdpE-.js → SearchLg-BLbYMh4R.js} +1 -1
- package/dist/client/assets/{SearchMd-qK78kgKQ.js → SearchMd-BbTMkDIb.js} +1 -1
- package/dist/client/assets/{Settings02-N8cMhnfQ.js → Settings02-CoD4T3JT.js} +1 -1
- package/dist/client/assets/{Shield01-DzRHTS33.js → Shield01-BSQ914Nd.js} +1 -1
- package/dist/client/assets/{Star01-Q-9vFIbP.js → Star01-B_ldc-QG.js} +1 -1
- package/dist/client/assets/{Stars01-BbbMQszh.js → Stars01-BEQN6TZj.js} +1 -1
- package/dist/client/assets/{Stars02-DCuS3QE8.js → Stars02-wl-TgjVw.js} +1 -1
- package/dist/client/assets/{Sun-Dq-7buJu.js → Sun-DcglW2RF.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D-Fk1Pa5.js → SwitchHorizontal01-BjhVVVE7.js} +1 -1
- package/dist/client/assets/{Tool01-C64m7h3m.js → Tool01-F8NWFSUY.js} +1 -1
- package/dist/client/assets/{Tool02-B_YdiFiC.js → Tool02-CYQFsqUw.js} +1 -1
- package/dist/client/assets/{Trash01-DoLHcQlV.js → Trash01-CFIi5PAY.js} +1 -1
- package/dist/client/assets/{TrendUp01-BVy6RgXF.js → TrendUp01-B11vKIzx.js} +1 -1
- package/dist/client/assets/{Upload01-BPvQLpzL.js → Upload01-CYv9Q0Sh.js} +1 -1
- package/dist/client/assets/{User01-Di4I1dn1.js → User01-BHW_CvWq.js} +1 -1
- package/dist/client/assets/{Users01-T3tcC-Q_.js → Users01-CVvGtppm.js} +1 -1
- package/dist/client/assets/{Users03-BMR8RGYj.js → Users03-Bg-uyP8J.js} +1 -1
- package/dist/client/assets/{X-WxvHrb7f.js → X-B9OMbRgI.js} +1 -1
- package/dist/client/assets/{XCircle-BPUwDg8K.js → XCircle-z2zpbAQl.js} +1 -1
- package/dist/client/assets/{XClose-Dqd4RGLi.js → XClose-Bvx5TP10.js} +1 -1
- package/dist/client/assets/{Zap-DHQd1aMk.js → Zap-CaoQpAZT.js} +1 -1
- package/dist/client/assets/{ZapSquare-BmThZYRa.js → ZapSquare-NmRRaYpN.js} +1 -1
- package/dist/client/assets/{ZoomOut-B9HTC-JQ.js → ZoomOut-Bjuv5wtp.js} +1 -1
- package/dist/client/assets/{access-gate-CiaKpwyl.js → access-gate-CSvdc98W.js} +1 -1
- package/dist/client/assets/{add-section-modal-CrYnB29L.js → add-section-modal-BlKiDhBw.js} +1 -1
- package/dist/client/assets/{agent-icon-BXYEXsD8.js → agent-icon-kMrNxjYJ.js} +1 -1
- package/dist/client/assets/{agents-list-CD7gGa6m.js → agents-list-4wX4J2kJ.js} +1 -1
- package/dist/client/assets/{ai-providers-mL_iWLDv.js → ai-providers-Dj7ASIds.js} +1 -1
- package/dist/client/assets/{alert-BVUEKz6K.js → alert-CgsPHe2o.js} +1 -1
- package/dist/client/assets/{alert-dialog-CQ4lOqNP.js → alert-dialog-lT11Jsbj.js} +1 -1
- package/dist/client/assets/{app-editor-CxVQHVzd.js → app-editor-B3W7tylT.js} +1 -1
- package/dist/client/assets/{auth-Rl68lRVa.js → auth-CaW_gj1t.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwDVkZ9z.js → auth-catchall-CWTTCQsz.js} +1 -1
- package/dist/client/assets/{auth-entry-L4m_eDn0.js → auth-entry-IJFQq8w-.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DhwakX9p.js → auth-split-layout-C25aJ8eh.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-HF1OZ01K.js → authenticate-and-persist-oauth-jkSUOcu8.js} +1 -1
- package/dist/client/assets/{automation-list-row-x3AaazOu.js → automation-list-row-QQUoi2db.js} +1 -1
- package/dist/client/assets/{automation-runs-0ENPNaN0.js → automation-runs-Cs7mheBT.js} +1 -1
- package/dist/client/assets/{automations-kZfpWYqo.js → automations-BzzWpoAs.js} +1 -1
- package/dist/client/assets/{autosend-CnyvzRSd.js → autosend-CSO0mWVp.js} +1 -1
- package/dist/client/assets/{avatar-Dn3KdrEK.js → avatar-BHNRf2BK.js} +1 -1
- package/dist/client/assets/{badge-CKZbj9Sm.js → badge-0FaSmMEN.js} +1 -1
- package/dist/client/assets/{block-document-CRrTuFYl.js → block-document-BV8UCOiY.js} +1 -1
- package/dist/client/assets/{brand-context-CsUWTEth.js → brand-context-CnL-EXLr.js} +1 -1
- package/dist/client/assets/{buckets-CEkgv2gt.js → buckets-BhRo2ooL.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BdB8TLi0.js → bulk-category-panel-CzxYutCW.js} +1 -1
- package/dist/client/assets/{calendar-CGH-FtPb.js → calendar-ajXRpj7H.js} +1 -1
- package/dist/client/assets/{capability-load-error-CMXIJbu-.js → capability-load-error-D08tgLJn.js} +1 -1
- package/dist/client/assets/{card-CLBtulnR.js → card-CxpjTUKu.js} +1 -1
- package/dist/client/assets/{category-editor-DcCdN9-a.js → category-editor-VzyKXFmI.js} +1 -1
- package/dist/client/assets/{chat-context-pauDMQs4.js → chat-context-BKkLQtRB.js} +1 -1
- package/dist/client/assets/{checkbox-Bb7u4GZC.js → checkbox-9SStA5q1.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CZgAirYQ.js → cli-auth-success-DMtwNV80.js} +1 -1
- package/dist/client/assets/{collection-detail-C70k2D6K.js → collection-detail-CjiPw-t8.js} +1 -1
- package/dist/client/assets/{collection-display-button-DTP4Dxoo.js → collection-display-button-BkQRfMlH.js} +1 -1
- package/dist/client/assets/{collection-search-BSRwuL9Y.js → collection-search-DZDCl18y.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CzTLwDF7.js → collection-table-wrapper-3CLNdiVr.js} +1 -1
- package/dist/client/assets/{collection-tabs-C4WFDf3L.js → collection-tabs-C2iwwrh8.js} +1 -1
- package/dist/client/assets/{command-CvLmqp8n.js → command-Dv4-KFR5.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-B0oLV1r7.js → commerce-onboarding-Cw_rAIUN.js} +1 -1
- package/dist/client/assets/{companions-core-9oVSiVay.js → companions-core-AOH9czLM.js} +1 -1
- package/dist/client/assets/{connect-Ds4xNTIm.js → connect-Cqt8XvcG.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Bm-6O5pA.js → connect-desktop-dialog-CcP2o0mO.js} +1 -1
- package/dist/client/assets/{connection-card-BNqCCiGi.js → connection-card-DSeJr6d2.js} +1 -1
- package/dist/client/assets/{connection-detail-BRMVl_cy.js → connection-detail-D0NuPfPl.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DYH9RX4H.js → connection-form-helpers-Ce26XCbs.js} +1 -1
- package/dist/client/assets/{connections-Bg4y0t1s.js → connections-CaxsgoYU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-naE4E78u.js → decopilot-sse-pool-DWXTDK7c.js} +1 -1
- package/dist/client/assets/{dialog-6hX1U4fH.js → dialog-B8iPXZfB.js} +1 -1
- package/dist/client/assets/{domain-settings-B6DIiCSh.js → domain-settings-DkOZ5_VY.js} +1 -1
- package/dist/client/assets/{drawer-CMaklRD3.js → drawer-D5z1QpZ1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CLAwAQZ_.js → dropdown-menu-D3W9Mypw.js} +1 -1
- package/dist/client/assets/{empty-state-D6L5fS3f.js → empty-state-B0XUVWqe.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dghmfry-.js → extract-connection-data-ChcGsUj8.js} +1 -1
- package/dist/client/assets/{file-explorer-Dff-06fS.js → file-explorer-DIO_SQJ1.js} +1 -1
- package/dist/client/assets/{file-type-icon-DYLY0CLy.js → file-type-icon-CICh64eJ.js} +1 -1
- package/dist/client/assets/{files-Byu3w8YW.js → files-Cql2muKm.js} +1 -1
- package/dist/client/assets/{form-CXNEyHcq.js → form-BbtpCekf.js} +1 -1
- package/dist/client/assets/{general-C9Pthex4.js → general-DPD4y6iK.js} +1 -1
- package/dist/client/assets/{github-repo-picker-ByxtRg3O.js → github-repo-picker-qhKlxIkP.js} +1 -1
- package/dist/client/assets/{hooks-Cr9i_kle.js → hooks-QkqjVdn8.js} +1 -1
- package/dist/client/assets/{index-evctrtQu.js → index-B72iIhnj.js} +1 -1
- package/dist/client/assets/{index-CV14bajU.js → index-BD3KwOs3.js} +1 -1
- package/dist/client/assets/{index-CXp3cTwF.js → index-BDQNsoxm.js} +1 -1
- package/dist/client/assets/{index-Dk4s7aLa.js → index-BUJePXEL.js} +1 -1
- package/dist/client/assets/{index-DI7mK1zX.js → index-BdfBtWtk.js} +1 -1
- package/dist/client/assets/{index-CDnDqO3O.js → index-BmTD_ujn.js} +1 -1
- package/dist/client/assets/{index-DV5mK7sA.js → index-Bz75jbQc.js} +1 -1
- package/dist/client/assets/{index-hjE2XX6X.js → index-CfAl6qA3.js} +3 -3
- package/dist/client/assets/{index-CEV5VePz.js → index-CwSqgILb.js} +9 -9
- package/dist/client/assets/{index-B9kIH6x6.js → index-D7GpXBZi.js} +1 -1
- package/dist/client/assets/{index-DeLkeJ6_.js → index-DCLh1sVt.js} +1 -1
- package/dist/client/assets/{index-XuMG--e3.js → index-DFylQUoD.js} +3 -3
- package/dist/client/assets/{index-yrbDmgjx.js → index-DyxjlEL3.js} +1 -1
- package/dist/client/assets/{index-BDK2Fs0Q.js → index-krar3iag.js} +1 -1
- package/dist/client/assets/{index-redirect-D17YCYHU.js → index-redirect-BIF-9n41.js} +1 -1
- package/dist/client/assets/{input-B3wVtT8N.js → input-C96iFBVQ.js} +1 -1
- package/dist/client/assets/{integration-icon-DggrBo9Y.js → integration-icon-B1RhpoYr.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-Bh4TasFC.js → invite-member-dialog-xjgZGOB2.js} +1 -1
- package/dist/client/assets/{label-DIrBJY9t.js → label-Dyml5mFF.js} +1 -1
- package/dist/client/assets/{layout-n4kDijNp.js → layout-DDL4dMPD.js} +1 -1
- package/dist/client/assets/{login-DGWtKNDl.js → login-CoR8jNzG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-pu4HGP5E.js → mcp-oauth-C3_4QnQD.js} +1 -1
- package/dist/client/assets/{members-CUcHZIpS.js → members-Bq1eH0V7.js} +1 -1
- package/dist/client/assets/{monaco-editor-DChvc4zo.js → monaco-editor-CzUxXwGN.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D77T8MAB.js → monitoring-stats-row-B0DrzvEt.js} +1 -1
- package/dist/client/assets/{multi-select-BczX2BCu.js → multi-select-rPe-eyDx.js} +1 -1
- package/dist/client/assets/{oauth-callback-CujWwGsW.js → oauth-callback-BrUhk0Wa.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CNcJryZL.js → oauth-callback-ai-provider-B8YVCFyJ.js} +1 -1
- package/dist/client/assets/{onboarding-Cxp9OgE5.js → onboarding-COoyusCG.js} +1 -1
- package/dist/client/assets/{org-install-Cp_uS_Yv.js → org-install-JAHRkU5h.js} +1 -1
- package/dist/client/assets/{org-layout-C0amQSWr.js → org-layout-D60pVxIN.js} +1 -1
- package/dist/client/assets/{organization-choice-D1e_IHEx.js → organization-choice-C6Ls0A49.js} +1 -1
- package/dist/client/assets/{orgs-BUQRHrF9.js → orgs-DztT5sab.js} +1 -1
- package/dist/client/assets/{page-seo-form-f2sOWcXy.js → page-seo-form-B_P0EHl2.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DHzmRm4L.js +1 -0
- package/dist/client/assets/{popover-CMANpc1P.js → popover-CNhMnjco.js} +1 -1
- package/dist/client/assets/{post-editor-igPGWwZT.js → post-editor-D_xoTmn-.js} +1 -1
- package/dist/client/assets/{primitives-C4ghey6q.js → primitives-CBYGlggB.js} +1 -1
- package/dist/client/assets/{profile-Bf08wFsB.js → profile-cvRYji9N.js} +1 -1
- package/dist/client/assets/project-app-view-CBEQxExF.js +1 -0
- package/dist/client/assets/record-editor-PW0VGnvH.js +1 -0
- package/dist/client/assets/redirect-editor-DsFvTbg2.js +1 -0
- package/dist/client/assets/registry-CvDjs0_s.js +2 -0
- package/dist/client/assets/{registry-layout-DOJrhsn0.js → registry-layout-bAxFNLjy.js} +1 -1
- package/dist/client/assets/{reports-Sz2eHkkE.js → reports-CQcFaphb.js} +1 -1
- package/dist/client/assets/{require-capability-DssBmal1.js → require-capability-DxlH57sg.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Bb2Q5WiD.js → required-auth-layout-C-fhbIaJ.js} +1 -1
- package/dist/client/assets/{reset-password-DJkbgIKv.js → reset-password-DNx83PQG.js} +1 -1
- package/dist/client/assets/{roles-CDQ9N9B4.js → roles-BHDPkFyx.js} +1 -1
- package/dist/client/assets/{search-input-CSYveeK1.js → search-input-DzbdykkS.js} +1 -1
- package/dist/client/assets/{secrets-CWzBjHiy.js → secrets-BiPQdzxP.js} +1 -1
- package/dist/client/assets/{sections-editor-DO4ujnsl.js → sections-editor-DtTXEdpr.js} +1 -1
- package/dist/client/assets/{select-DL_WbMjV.js → select-DfWJsEeW.js} +1 -1
- package/dist/client/assets/{select-model-CaxXX-qs.js → select-model-va_ybRaj.js} +1 -1
- package/dist/client/assets/{self-tool-result-eufZmVSR.js → self-tool-result-BYn91ML_.js} +1 -1
- package/dist/client/assets/{seo-editor-OjDkwsRD.js → seo-editor-DhB9wLXc.js} +1 -1
- package/dist/client/assets/{settings-layout-wzi-9zmk.js → settings-layout-C0ekeOOv.js} +1 -1
- package/dist/client/assets/{settings-section-Dd__vNvn.js → settings-section-ZxnBfBdb.js} +1 -1
- package/dist/client/assets/{shell-controls-BTcTNUhC.js → shell-controls-CWv-6pxT.js} +1 -1
- package/dist/client/assets/{shell-layout-DpzKWAdD.js → shell-layout-B3ubQVJp.js} +1 -1
- package/dist/client/assets/{sidebar-DTKf3TAO.js → sidebar-Bmfjcji7.js} +1 -1
- package/dist/client/assets/{skeleton-CRh0JIjf.js → skeleton-DYsdfnWI.js} +1 -1
- package/dist/client/assets/{sso-oJUn63Bv.js → sso-DxE0pH8a.js} +1 -1
- package/dist/client/assets/{store-Dd0zwstp.js → store-DQtXE3rO.js} +1 -1
- package/dist/client/assets/store-registry-DJ5jwwgh.js +2 -0
- package/dist/client/assets/{studio-tools-Cwafm64U.js → studio-tools-CZ0lHHg8.js} +1 -1
- package/dist/client/assets/{switch-BsoYdree.js → switch-C8NVFCle.js} +1 -1
- package/dist/client/assets/{table-CEQ8Au0q.js → table-rrhMpufJ.js} +1 -1
- package/dist/client/assets/{tabs-DVvTTvBh.js → tabs-Zz7_UEQN.js} +1 -1
- package/dist/client/assets/{textarea-BF2PPtYX.js → textarea-Q9mIBUV-.js} +1 -1
- package/dist/client/assets/{toggle-group-BXTeLVn8.js → toggle-group-B8ZzagA8.js} +1 -1
- package/dist/client/assets/{toolbar-BJJ7OCXe.js → toolbar-1oJVDPdM.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-C2xHuQlk.js → toolbar-icon-button-CqHN6MBe.js} +1 -1
- package/dist/client/assets/{tooltip-BjzKDci2.js → tooltip-lvzwcxmr.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Tfs_Zyru.js → use-ai-providers-DLA17X4H.js} +1 -1
- package/dist/client/assets/{use-api-keys-C8D3OUO8.js → use-api-keys-ZZNQlaQa.js} +1 -1
- package/dist/client/assets/{use-automations-vXGmFiw2.js → use-automations-CtAoOh2g.js} +1 -1
- package/dist/client/assets/{use-autosave-C6DGbMlv.js → use-autosave-Dj0woe8W.js} +1 -1
- package/dist/client/assets/{use-capability-y7XYwlsw.js → use-capability-x07oRB_v.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CwOJk-hB.js → use-clock-tick-Cdnpjga1.js} +1 -1
- package/dist/client/assets/{use-collections-DJK7cqPG.js → use-collections-DJ2e88Xq.js} +1 -1
- package/dist/client/assets/{use-connection-dHOeVykL.js → use-connection-CawdsRuN.js} +1 -1
- package/dist/client/assets/{use-copy-BY_6H8f2.js → use-copy-aPelM9gN.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-a5AS9maG.js → use-create-virtual-mcp-D42LRs4W.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-gEZrBMKF.js → use-debounced-autosave-D46G2Nb3.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DQ8ybCk8.js → use-debounced-value-U6TK_cAJ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cu_CLKNZ.js → use-deco-credits-tLUAgc-O.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D-gabFqa.js → use-decopilot-events-zHZ5c1US.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B903DB_v.js → use-delete-connection-B0eSidiK.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D2f6o1L8.js → use-deployment-admin-C0wf5iR9.js} +1 -1
- package/dist/client/assets/{use-file-configs-CtCwpKQk.js → use-file-configs-D6OQvi29.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CkiTZdcb.js → use-infinite-scroll-DgeL9DrI.js} +1 -1
- package/dist/client/assets/{use-join-requests-BBRb_n5o.js → use-join-requests-DYt3ADmT.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BHa4HLcz.js → use-mcp-auth-status-mlZiRJgT.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cp3sti4v.js → use-mcp-client-CAtCw6yl.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DgSJyhyt.js → use-mcp-tools-BkyW84hu.js} +1 -1
- package/dist/client/assets/{use-members-C6jzD8WY.js → use-members-BPomUDuY.js} +1 -1
- package/dist/client/assets/{use-mobile-DbFQjNJH.js → use-mobile-D0KrjV8M.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-N_9ZB1GC.js → use-navigate-to-agent-CYMIGICl.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-MugnqO7R.js → use-org-auth-client-BY7CXLsN.js} +1 -1
- package/dist/client/assets/{use-org-sso-BH3PKJVF.js → use-org-sso-BNL5m012.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D_pL2V2J.js → use-organization-roles-DP7VZAnw.js} +1 -1
- package/dist/client/assets/{use-organization-settings-V8HCNVpz.js → use-organization-settings-Btln8Py9.js} +1 -1
- package/dist/client/assets/{use-registry-app-WmzUMowe.js → use-registry-app-DGmz0d5i.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CBLHoxJf.js → use-registry-connections-BNAx72pz.js} +1 -1
- package/dist/client/assets/{use-secrets-BJw6jDsG.js → use-secrets-Brx7T76W.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B6WaacbM.js → use-status-sounds-WASJAR7W.js} +1 -1
- package/dist/client/assets/{use-t-B9aftsnE.js → use-t-Ca0ZB4W6.js} +1 -1
- package/dist/client/assets/{use-view-mode-DgNetGEu.js → use-view-mode-CcZjEdUn.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CEu5JSht.js → use-virtual-mcp--wK0dI9I.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BT7hVNXg.js +1 -0
- package/dist/client/assets/{useRouterState-BG4WF0xx.js → useRouterState-G26gh0wT.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CIkQZwY0.js +1 -0
- package/dist/client/assets/{users-Coh1cMye.js → users-Cd08kHgh.js} +1 -1
- package/dist/client/assets/{variant-calendar-C_iW_fje.js → variant-calendar-DuJ3EROs.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-uNwYCqf-.js → view-mode-toggle-IMXhdpcC.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +385 -385
- package/dist/server/server.js +271 -271
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-B907fpZL.js +0 -1
- package/dist/client/assets/project-app-view-BUDk-BSC.js +0 -1
- package/dist/client/assets/record-editor-UtL4Nppx.js +0 -1
- package/dist/client/assets/redirect-editor-Bpf86Ru1.js +0 -1
- package/dist/client/assets/registry-BM7__SCn.js +0 -2
- package/dist/client/assets/store-registry-CmUCkxOW.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BB4xZyBn.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-zeGOhvz4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,C as de,n as Je,d as Ge,K as X,m as ie,aY as jn,r as N,ap as $s,l as ce,j as r,U as Ps,i as Es,B as J,aL as kn,t as ue,w as Ds,L as Ts,e as Fs,b as Sn,u as Nn,E as Et}from"./index-hjE2XX6X.js";import{s as zn}from"./Eye-CtVV9e2j.js";import{a as ft}from"./Palette-BaolxSVv.js";import{s as Is}from"./Plus-Cu-dDUfk.js";import{i as Ms}from"./SearchLg-DfHFdpE-.js";import{i as ht}from"./Upload01-BPvQLpzL.js";import{s as Cn}from"./XClose-Dqd4RGLi.js";import{i as Ut}from"./Zap-DHQd1aMk.js";import{u as $n}from"./use-mobile-DbFQjNJH.js";import{f as Ls,a as Os,b as Rs,c as As,d as _s,e as Us,A as Bs,g as Hs}from"./alert-dialog-CQ4lOqNP.js";import{D as Pn,a as Ue,d as et,e as tt,i as En,h as qs,c as Ks}from"./dialog-6hX1U4fH.js";import{I as Xe}from"./input-B3wVtT8N.js";import{F as ke,M as Bt,d as Dn}from"./file-type-icon-DYLY0CLy.js";import{T as Ws}from"./toolbar-BJJ7OCXe.js";import{a as Gs}from"./Package-B1orPXJq.js";import{u as Vs}from"./use-debounced-value-DQ8ybCk8.js";import{p as gt,b as le,a as Me,c as Tn,d as Xs}from"./location-BpLtHjTZ.js";import{b as Qs,f as ct,s as Ys,c as tn,d as Zs,g as Js,i as el,h as Fn,a as In,j as tl,e as nl}from"./ZoomOut-B9HTC-JQ.js";import{S as ae}from"./skeleton-CRh0JIjf.js";import{T as sl}from"./textarea-BF2PPtYX.js";import{t as ll}from"./ChevronDown-DyTq4IzF.js";import{n as rl}from"./ChevronUp-CVW5xbC5.js";import{i as mt}from"./X-WxvHrb7f.js";import{P as il,b as ol,a as al}from"./popover-CMANpc1P.js";import{b as be,T as ye,a as ve}from"./tooltip-BjzKDci2.js";import{i as cl}from"./Check-r7PeF0eX.js";import{a as dl}from"./Copy01-BJc2r-WF.js";import{n as Qe,i as bt}from"./Globe01-DoHz4MgR.js";import{i as Mn}from"./Key01-Ccp0XsVr.js";import{n as Ln}from"./LinkExternal01-ClJ56TMW.js";import{l as ul,F as fl}from"./index-yrbDmgjx.js";import{a as hl}from"./Image01-CUXxaE-D.js";import{D as Ht,a as qt,c as Kt,d as Fe}from"./dropdown-menu-CLAwAQZ_.js";import{i as ml}from"./LayoutLeft-CGrbMvWa.js";import{i as pl}from"./ChevronRight-B_jrVjJU.js";import{t as xl}from"./Stars01-BbbMQszh.js";import{i as On}from"./DotsVertical-1ay7rtoJ.js";import{s as Rn}from"./Trash01-DoLHcQlV.js";function An(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const l=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${l?`?${l}`:""}`}async function fe(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let l="";try{l=(await s.json()).error??""}catch{}throw new Error(l||`HTTP ${s.status}`)}function Wt(n,e){const t=$.c(11),{org:s}=de();let l;t[0]!==s.id||t[1]!==e||t[2]!==n?(l=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=l):l=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await fe(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(gl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==l||t[9]!==i?(o={queryKey:l,placeholderData:jn,queryFn:i},t[8]=l,t[9]=i,t[10]=o):o=t[10],ie(o)}function gl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function _n(n,e,t){const s=$.c(15),{org:l}=de();let i;s[0]!==l.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(l.id,n??"",e),s[0]=l.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==l.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fe(pe(l.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=l.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function bl(n){const e=$.c(9),{org:t}=de();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 l;e[3]!==t.slug||e[4]!==n?(l=async()=>await(await fe(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=l):l=e[5];let i;return e[6]!==s||e[7]!==l?(i={queryKey:s,queryFn:l},e[6]=s,e[7]=l,e[8]=i):i=e[8],ie(i)}function yl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:l}=de();let i;t[0]!==l.id?(i=X.orgFsRecent(l.id),t[0]=l.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==l.slug?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=l.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function vl(n,e){const t=$.c(11),s=50,{org:l}=de();let i;t[0]!==l.id||t[1]!==n?(i=X.orgFsSearch(l.id,n),t[0]=l.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==l.slug||t[5]!==n?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=l.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:jn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Ao(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const l=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await fe(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(wl)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==l||e[6]!==i?(o={queryKey:s,enabled:l,queryFn:i},e[4]=s,e[5]=l,e[6]=i,e[7]=o):o=e[7],ie(o)}function wl(n){return{volume:n.volume,path:n.path}}async function _o(n){const e=await fe(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function jl(n,e,t){return(await fe(pe(n,e,"read",{path:t}))).text()}const kl=new Set(["md","mdx","markdown","txt","text"]),Sl=25,Nl=64*1024,zl=256*1024,Cl=4;function $l(n){const e=n.lastIndexOf(".");return e===-1?!1:kl.has(n.slice(e+1).toLowerCase())}async function Uo(n,e,t){const s=t?`${t}/`:"",l=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await fe(pe(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<Cl&&a.push({path:m.path,depth:u.depth+1});continue}$l(m.path)&&m.size<=Nl&&i.length<Sl?i.push(m.path):o.push(l(m.path))}}const c=await Promise.all(i.map(u=>jl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>zl){o.push(l(u));return}f+=m.length,d.push({relPath:l(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function Un(){const n=$.c(7),{org:e}=de();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 fe(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let l;return n[4]!==t||n[5]!==s?(l={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=l):l=n[6],ie(l)}function Pl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=l=>pe(t.slug,n,"read",{path:l}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function nt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,l)=>pe(e.slug,s,"read",{path:l}),n[0]=e.slug,n[1]=t):t=n[1],t}function Bn(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async l=>(await(await fe(pe(t.slug,n,"file",{path:l.path}),{method:"PUT",headers:{"content-type":l.contentType??"text/html; charset=utf-8"},body:l.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Ge(s)}function El(n){const e=$.c(18),{org:t}=de(),s=Je();let l;e[0]!==t||e[1]!==n?(l=async d=>(await(await fe(pe(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]=l):l=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 o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(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]=a):a=e[12];let c;return e[13]!==l||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:l,onMutate:i,onError:o,onSettled:a},e[13]=l,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],Ge(c)}function Ot(n){const e=$.c(26),{org:t}=de(),s=Je();let l;e[0]!==t||e[1]!==s||e[2]!==n?(l=()=>{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]=l):l=e[3];const i=l;let o;e[4]!==t||e[5]!==n?(o=async g=>{const y=(await Promise.allSettled(g.files.map(v=>{const k=g.dir?`${g.dir}/${v.name}`:v.name;return fe(pe(t.slug,n,"file",{path:k}),{method:"PUT",headers:{"content-type":v.type||"application/octet-stream"},body:v})}))).find(Dl);if(y)throw y.reason},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=Ge(a);let d;e[10]!==t||e[11]!==n?(d=async g=>{await fe(pe(t.slug,n,"dir",{path:g}),{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=Ge(f);let h;e[16]!==t||e[17]!==n?(h=async g=>{await fe(pe(t.slug,n,"file",{path:g}),{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=Ge(m);let x;return e[22]!==u||e[23]!==p||e[24]!==c?(x={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=x):x=e[25],x}function Dl(n){return n.status==="rejected"}const yt=N.createContext(null);yt.displayName="PanelGroupContext";const se={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,Te=N.useLayoutEffect,nn=$s.useId,Tl=typeof nn=="function"?nn:()=>null;let Fl=0;function Vt(n=null){const e=Tl(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Fl++),n??t.current}function Hn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:l,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const g=N.useContext(yt);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:y,getPanelSize:v,getPanelStyle:k,groupId:C,isPanelCollapsed:S,reevaluatePanelConstraints:j,registerPanel:B,resizePanel:R,unregisterPanel:_}=g,w=Vt(o),I=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:l,maxSize:a,minSize:c},id:w,idIsFromProps:o!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Te(()=>{const{callbacks:U,constraints:O}=I.current,H={...O};I.current.id=w,I.current.idIsFromProps=o!==void 0,I.current.order=h,U.onCollapse=d,U.onExpand=f,U.onResize=u,O.collapsedSize=t,O.collapsible=s,O.defaultSize=l,O.maxSize=a,O.minSize=c,(H.collapsedSize!==O.collapsedSize||H.collapsible!==O.collapsible||H.maxSize!==O.maxSize||H.minSize!==O.minSize)&&j(I.current,H)}),Te(()=>{const U=I.current;return B(U),()=>{_(U)}},[h,w,B,_]),N.useImperativeHandle(i,()=>({collapse:()=>{b(I.current)},expand:U=>{y(I.current,U)},getId(){return w},getSize(){return v(I.current)},isCollapsed(){return S(I.current)},isExpanded(){return!S(I.current)},resize:U=>{R(I.current,U)}}),[b,y,v,S,w,R]);const Z=k(I.current,l);return N.createElement(p,{...x,children:n,className:e,id:w,style:{...Z,...m},[se.groupId]:C,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:w,[se.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Hn,{...n,forwardedRef:e}));Hn.displayName="Panel";qn.displayName="forwardRef(Panel)";let Rt=null,ut=-1,ze=null;function Il(n,e){if(e){const t=(e&Xn)!==0,s=(e&Qn)!==0,l=(e&Yn)!==0,i=(e&Zn)!==0;if(t)return l?"se-resize":i?"ne-resize":"e-resize";if(s)return l?"sw-resize":i?"nw-resize":"w-resize";if(l)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 Ml(){ze!==null&&(document.head.removeChild(ze),Rt=null,ze=null,ut=-1)}function Dt(n,e){var t,s;const l=Il(n,e);if(Rt!==l){if(Rt=l,ze===null&&(ze=document.createElement("style"),document.head.appendChild(ze)),ut>=0){var i;(i=ze.sheet)===null||i===void 0||i.removeRule(ut)}ut=(t=(s=ze.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${l} !important;}`))!==null&&t!==void 0?t:-1}}function Kn(n){return n.type==="keydown"}function Wn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function vt(n){if(Wn(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 Ll(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ol(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 Rl(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:rn(n),b:rn(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;G(s,"Stacking order can only be calculated for elements with a common ancestor");const l={a:ln(sn(t.a)),b:ln(sn(t.b))};if(l.a===l.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(l.a-l.b)}const Al=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function _l(n){var e;const t=getComputedStyle((e=Vn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Ul(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||_l(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"||Al.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function sn(n){let e=n.length;for(;e--;){const t=n[e];if(G(t,"Missing node"),Ul(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function rn(n){const e=[];for(;n;)e.push(n),n=Vn(n);return e}function Vn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Xn=1,Qn=2,Yn=4,Zn=8,Bl=Ll()==="coarse";let xe=[],_e=!1,De=new Map,wt=new Map;const Ye=new Set;function Hl(n,e,t,s,l){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:l},c=(i=De.get(o))!==null&&i!==void 0?i:0;return De.set(o,c+1),Ye.add(a),pt(),function(){var f;wt.delete(n),Ye.delete(a);const u=(f=De.get(o))!==null&&f!==void 0?f:1;if(De.set(o,u-1),pt(),u===1&&De.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),l("up",!0,null)}}}function ql(n){const{target:e}=n,{x:t,y:s}=vt(n);_e=!0,Xt({target:e,x:t,y:s}),pt(),xe.length>0&&(xt("down",n),n.preventDefault(),Jn(e)||n.stopImmediatePropagation())}function Tt(n){const{x:e,y:t}=vt(n);if(_e&&n.buttons===0&&(_e=!1,xt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}xt("move",n),Qt(),xe.length>0&&n.preventDefault()}function Ft(n){const{target:e}=n,{x:t,y:s}=vt(n);wt.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Jn(e)||n.stopImmediatePropagation()),xt("up",n),Xt({target:e,x:t,y:s}),Qt(),pt()}function Jn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Ye.forEach(l=>{const{element:i,hitAreaMargins:o}=l,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Bl?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&Rl(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ol(p.getBoundingClientRect(),a)){x=!0;break}p=p.parentElement}if(x)return}xe.push(l)}})}function It(n,e){wt.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:l}=s;l==="horizontal"?n=!0:e=!0});let t=0;wt.forEach(s=>{t|=s}),n&&e?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("vertical",t):Ml()}let Mt=new AbortController;function pt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Ye.size&&(_e?(xe.length>0&&De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Ft,n),s.addEventListener("pointerleave",Tt,n),s.addEventListener("pointermove",Tt,n))}),window.addEventListener("pointerup",Ft,n),window.addEventListener("pointercancel",Ft,n)):De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",ql,n),s.addEventListener("pointermove",Tt,n))}))}function xt(n,e){Ye.forEach(t=>{const{setResizeHandlerState:s}=t,l=xe.includes(t);s(n,l,e)})}function Kl(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function G(n,e){if(!n)throw console.error(e),Error(e)}function Ie(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function we(n,e,t=Gt){return Ie(n,e,t)===0}function me(n,e,t){return Ie(n,e,t)===0}function Wl(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const l=n[s],i=e[s];if(!me(l,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];G(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:l=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Ie(t,a)<0)if(i){const c=(l+a)/2;Ie(t,c)<0?t=l:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function qe({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:l,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;G(a!=null,"Invalid first pivot index"),G(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];G(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const g=e[u];if(G(g!=null,`Previous layout not found for panel index ${u}`),me(g,m)){const b=x-g;Ie(b,Math.abs(n))>0&&(n=n<0?0-b:b)}}}{const u=n<0?a:c,h=t[u];G(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const g=e[u];if(G(g!=null,`Previous layout not found for panel index ${u}`),me(g,x)){const b=g-m;Ie(b,Math.abs(n))>0&&(n=n<0?0-b:b)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const x=e[h];G(x!=null,`Previous layout not found for panel index ${h}`);const b=Ae({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=b,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?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];G(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,g=Ae({panelConstraints:t,panelIndex:h,size:x});if(!me(p,g)&&(d+=p-g,o[h]=g,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Wl(l,o))return l;{const u=n<0?c:a,h=e[u];G(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let x=m-p,b=n<0?c:a;for(;b>=0&&b<t.length;){const y=o[b];G(y!=null,`Previous layout not found for panel index ${b}`);const v=y+x,k=Ae({panelConstraints:t,panelIndex:b,size:v});if(me(y,k)||(x-=k-y,o[b]=k),me(x,0))break;n>0?b--:b++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:l}function Gl({layout:n,panelsArray:e,pivotIndices:t}){let s=0,l=100,i=0,o=0;const a=t[0];G(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===a?(s=x,l=p):(i+=x,o+=p)});const c=Math.min(l,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ze(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function es(n,e,t=document){const l=Ze(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return l??null}function ts(n,e,t){const s=es(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ns(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 jt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function Vl(n,e,t,s=document){var l,i,o,a;const c=jt(e,s),d=Ze(n,s),f=c?d.indexOf(c):-1,u=(l=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&l!==void 0?l:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Xl({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:l,panelGroupElement:i,setLayout:o}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Te(()=>{if(!i)return;const a=Ze(t,i);for(let c=0;c<l.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Gl({layout:s,panelsArray:l,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=l[c];G(m,`No panel data found for index "${c}"`),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()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,l,i]),N.useEffect(()=>{if(!i)return;const a=e.current;G(a,"Eager values not found");const{panelDataArray:c}=a,d=ns(t,i);G(d!=null,`No group found for id "${t}"`);const f=Ze(t,i);G(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);G(m,"Resize handle element has no handle id attribute");const[p,x]=Vl(t,m,c,i);if(p==null||x==null)return()=>{};const g=b=>{if(!b.defaultPrevented)switch(b.key){case"Enter":{b.preventDefault();const y=c.findIndex(v=>v.id===p);if(y>=0){const v=c[y];G(v,`No panel data found for index ${y}`);const k=s[y],{collapsedSize:C=0,collapsible:S,minSize:j=0}=v.constraints;if(k!=null&&S){const B=qe({delta:me(k,C)?j-C:C-k,initialLayout:s,panelConstraints:c.map(R=>R.constraints),pivotIndices:ts(t,m,i),prevLayout:s,trigger:"keyboard"});s!==B&&o(B)}}break}}};return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,l,o])}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 ss(n,e){const t=n==="horizontal",{x:s,y:l}=vt(e);return t?s:l}function Ql(n,e,t,s,l){const i=t==="horizontal",o=jt(e,l);G(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);G(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=ss(t,n),f=ns(a,l);G(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Yl(n,e,t,s,l,i){if(Kn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:l!=null?a=l:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Ql(n,e,t,s,i)}function Zl({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,l=100;for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,l-=a)}for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=l/c;s++,e[i]=d,l-=d}return e}function Le(n,e,t){e.forEach((s,l)=>{const i=n[l];G(i,`Panel data not found for index ${l}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||we(u,d))&&!we(s,d)&&m(),h&&(u==null||!we(u,d))&&we(s,d)&&h())}})}function dt(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 Jl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:l,precision:i=3}){const o=t[l];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function er(n,e=10){let t=null;return(...l)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...l)},e)}}function an(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 rs(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:l,order:i}=e;return l?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function is(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const l=JSON.parse(s);if(typeof l=="object"&&l!=null)return l}}catch{}return null}function tr(n,e,t){var s,l;const i=(s=is(n,t))!==null&&s!==void 0?s:{},o=rs(e);return(l=i[o])!==null&&l!==void 0?l:null}function nr(n,e,t,s,l){var i;const o=ls(n),a=rs(e),c=(i=is(n,l))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{l.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function cn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let l=0;for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(l+=o-a,t[i]=a)}if(!me(l,0))for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=o+l,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(l-=c-o,t[i]=c,me(l,0)))break}return t}const sr=100,Ke={getItem:n=>(an(Ke),Ke.getItem(n)),setItem:(n,e)=>{an(Ke),Ke.setItem(n,e)}},dn={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:l,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ke,style:d,tagName:f="div",...u}){const h=Vt(i),m=N.useRef(null),[p,x]=N.useState(null),[g,b]=N.useState([]),y=Kl(),v=N.useRef({}),k=N.useRef(new Map),C=N.useRef(0),S=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),j=N.useRef({layout:g,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(l,()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:z}=j.current;return z},setLayout:z=>{const{onLayout:F}=S.current,{layout:M,panelDataArray:L}=j.current,D=cn({layout:z,panelConstraints:L.map(A=>A.constraints)});on(M,D)||(b(D),j.current.layout=D,F&&F(D),Le(L,D,v.current))}}),[]),Te(()=>{S.current.autoSaveId=n,S.current.direction=s,S.current.dragState=p,S.current.id=h,S.current.onLayout=o,S.current.storage=c}),Xl({committedValuesRef:S,eagerValuesRef:j,groupId:h,layout:g,panelDataArray:j.current.panelDataArray,setLayout:b,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:z}=j.current;if(n){if(g.length===0||g.length!==z.length)return;let F=dn[n];F==null&&(F=er(nr,sr),dn[n]=F);const M=[...z],L=new Map(k.current);F(n,M,L,g,c)}},[n,g,c]),N.useEffect(()=>{});const B=N.useCallback(z=>{const{onLayout:F}=S.current,{layout:M,panelDataArray:L}=j.current;if(z.constraints.collapsible){const D=L.map(he=>he.constraints),{collapsedSize:A=0,panelSize:Q,pivotIndices:te}=Ee(L,z,M);if(G(Q!=null,`Panel size not found for panel "${z.id}"`),!we(Q,A)){k.current.set(z.id,Q);const P=Oe(L,z)===L.length-1?Q-A:A-Q,V=qe({delta:P,initialLayout:M,panelConstraints:D,pivotIndices:te,prevLayout:M,trigger:"imperative-api"});dt(M,V)||(b(V),j.current.layout=V,F&&F(V),Le(L,V,v.current))}}},[]),R=N.useCallback((z,F)=>{const{onLayout:M}=S.current,{layout:L,panelDataArray:D}=j.current;if(z.constraints.collapsible){const A=D.map(ne=>ne.constraints),{collapsedSize:Q=0,panelSize:te=0,minSize:he=0,pivotIndices:P}=Ee(D,z,L),V=F??he;if(we(te,Q)){const ne=k.current.get(z.id),ge=ne!=null&&ne>=V?ne:V,$e=Oe(D,z)===D.length-1?te-ge:ge-te,oe=qe({delta:$e,initialLayout:L,panelConstraints:A,pivotIndices:P,prevLayout:L,trigger:"imperative-api"});dt(L,oe)||(b(oe),j.current.layout=oe,M&&M(oe),Le(D,oe,v.current))}}},[]),_=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{panelSize:L}=Ee(M,z,F);return G(L!=null,`Panel size not found for panel "${z.id}"`),L},[]),w=N.useCallback((z,F)=>{const{panelDataArray:M}=j.current,L=Oe(M,z);return Jl({defaultSize:F,dragState:p,layout:g,panelData:M,panelIndex:L})},[p,g]),I=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),D===!0&&we(A,L)},[]),Z=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),!D||Ie(A,L)>0},[]),U=N.useCallback(z=>{const{panelDataArray:F}=j.current;F.push(z),F.sort((M,L)=>{const D=M.order,A=L.order;return D==null&&A==null?0:D==null?-1:A==null?1:D-A}),j.current.panelDataArrayChanged=!0,y()},[y]);Te(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:F,storage:M}=S.current,{layout:L,panelDataArray:D}=j.current;let A=null;if(z){const te=tr(z,D,M);te&&(k.current=new Map(Object.entries(te.expandToSizes)),A=te.layout)}A==null&&(A=Zl({panelDataArray:D}));const Q=cn({layout:A,panelConstraints:D.map(te=>te.constraints)});on(L,Q)||(b(Q),j.current.layout=Q,F&&F(Q),Le(D,Q,v.current))}}),Te(()=>{const z=j.current;return()=>{z.layout=[]}},[]);const O=N.useCallback(z=>{let F=!1;const M=m.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(D){D.preventDefault();const A=m.current;if(!A)return()=>null;const{direction:Q,dragState:te,id:he,keyboardResizeBy:P,onLayout:V}=S.current,{layout:ne,panelDataArray:ge}=j.current,{initialLayout:Se}=te??{},$e=ts(he,z,A);let oe=Yl(D,z,Q,te,P,A);const it=Q==="horizontal";it&&F&&(oe=-oe);const $t=ge.map(Pt=>Pt.constraints),Pe=qe({delta:oe,initialLayout:Se??ne,panelConstraints:$t,pivotIndices:$e,prevLayout:ne,trigger:Kn(D)?"keyboard":"mouse-or-touch"}),ot=!dt(ne,Pe);(Wn(D)||Gn(D))&&C.current!=oe&&(C.current=oe,!ot&&oe!==0?it?It(z,oe<0?Xn:Qn):It(z,oe<0?Yn:Zn):It(z,0)),ot&&(b(Pe),j.current.layout=Pe,V&&V(Pe),Le(ge,Pe,v.current))}},[]),H=N.useCallback((z,F)=>{const{onLayout:M}=S.current,{layout:L,panelDataArray:D}=j.current,A=D.map(ne=>ne.constraints),{panelSize:Q,pivotIndices:te}=Ee(D,z,L);G(Q!=null,`Panel size not found for panel "${z.id}"`);const P=Oe(D,z)===D.length-1?Q-F:F-Q,V=qe({delta:P,initialLayout:L,panelConstraints:A,pivotIndices:te,prevLayout:L,trigger:"imperative-api"});dt(L,V)||(b(V),j.current.layout=V,M&&M(V),Le(D,V,v.current))},[]),W=N.useCallback((z,F)=>{const{layout:M,panelDataArray:L}=j.current,{collapsedSize:D=0,collapsible:A}=F,{collapsedSize:Q=0,collapsible:te,maxSize:he=100,minSize:P=0}=z.constraints,{panelSize:V}=Ee(L,z,M);V!=null&&(A&&te&&we(V,D)?we(D,Q)||H(z,Q):V<P?H(z,P):V>he&&H(z,he))},[H]),q=N.useCallback((z,F)=>{const{direction:M}=S.current,{layout:L}=j.current;if(!m.current)return;const D=jt(z,m.current);G(D,`Drag handle element not found for id "${z}"`);const A=ss(M,F);x({dragHandleId:z,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:A,initialLayout:L})},[]),ee=N.useCallback(()=>{x(null)},[]),Y=N.useCallback(z=>{const{panelDataArray:F}=j.current,M=Oe(F,z);M>=0&&(F.splice(M,1),delete v.current[z.id],j.current.panelDataArrayChanged=!0,y())},[y]),T=N.useMemo(()=>({collapsePanel:B,direction:s,dragState:p,expandPanel:R,getPanelSize:_,getPanelStyle:w,groupId:h,isPanelCollapsed:I,isPanelExpanded:Z,reevaluatePanelConstraints:W,registerPanel:U,registerResizeHandle:O,resizePanel:H,startDragging:q,stopDragging:ee,unregisterPanel:Y,panelGroupElement:m.current}),[B,p,s,R,_,w,h,I,Z,W,U,O,H,q,ee,Y]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(yt.Provider,{value:T},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const as=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";as.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Ee(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function lr({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const l=jt(e,s);if(l==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=l.getAttribute(se.groupId);G(a,`No group element found for id "${a}"`);const c=Ze(a,s),d=es(a,e,s);G(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}},[s,n,e,t])}function cs({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:l,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,g;const b=N.useRef(null),y=N.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const v=N.useContext(yt);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:k,groupId:C,registerResizeHandle:S,startDragging:j,stopDragging:B,panelGroupElement:R}=v,_=Vt(l),[w,I]=N.useState("inactive"),[Z,U]=N.useState(!1),[O,H]=N.useState(null),W=N.useRef({state:w});Te(()=>{W.current.state=w}),N.useEffect(()=>{if(t)H(null);else{const T=S(_);H(()=>T)}},[t,_,S]);const q=(x=s?.coarse)!==null&&x!==void 0?x:15,ee=(g=s?.fine)!==null&&g!==void 0?g:5;N.useEffect(()=>{if(t||O==null)return;const T=b.current;G(T,"Element ref not attached");let K=!1;return Hl(_,T,k,{coarse:q,fine:ee},(F,M,L)=>{if(!M){I("inactive");return}switch(F){case"down":{I("drag"),K=!1,G(L,'Expected event to be defined for "down" action'),j(_,L);const{onDragging:D,onPointerDown:A}=y.current;D?.(!0),A?.();break}case"move":{const{state:D}=W.current;K=!0,D!=="drag"&&I("hover"),G(L,'Expected event to be defined for "move" action'),O(L);break}case"up":{I("hover"),B();const{onClick:D,onDragging:A,onPointerUp:Q}=y.current;A?.(!1),Q?.(),K||D?.();break}}})},[q,k,t,ee,S,_,O,j,B]),lr({disabled:t,handleId:_,resizeHandler:O,panelGroupElement:R});const Y={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:l,onBlur:()=>{U(!1),i?.()},onFocus:()=>{U(!0),c?.()},ref:b,role:"separator",style:{...Y,...u},tabIndex:h,[se.groupDirection]:k,[se.groupId]:C,[se.resizeHandle]:"",[se.resizeHandleActive]:w==="drag"?"pointer":Z?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:_,[se.resizeHandleState]:w})}cs.displayName="PanelResizeHandle";function rr(n){const e=$.c(10);let t,s,l;e[0]!==n?({className:t,ref:l,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==l||e[8]!==i?(o=r.jsx(as,{ref:l,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=l,e[8]=i,e[9]=o):o=e[9],o}function un(n){const 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=r.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ir(n){const e=$.c(12);let t,s,l;e[0]!==n?({withHandle:l,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("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 o;e[6]!==l?(o=l&&r.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsx(Qs,{className:"size-2.5"})}),e[6]=l,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=r.jsx(cs,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function or(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 ar(n){if(or(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function cr(n){try{return decodeURIComponent(n)}catch{return n}}function dr(n){return ar(n),encodeURIComponent(n)}function ur(n){return`.deco/blocks/${dr(n)}.json`}function Bo(n){return`/${ur(n)}`}const Ho=1e4,fr=3;function At(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function kt(n){return n.startsWith("/")?n.slice(1):n}function qo(n){const e=kt(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function Be(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function hr(n){const e=Be(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ko(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Be(t?`${n==="/"?"":n}/${t}`:n)}function Wo(n,e){return e==="directory"?n:hr(n)}function Go(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 mr(n){const e=kt(n);return e?e.split("/").filter(Boolean).length:0}function Vo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xo(n,e){return mr(n)>=fr&&!e.has(n)}function Qo(n,e,t=[]){const s=kt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const l=`${s}/`;return e.some(i=>i.startsWith(l))||t.some(i=>i.startsWith(l))}function Yo(n){const e=kt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return cr(s)}function pr(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 xr="#94a3b8";function Zo(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ct,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ct,color:"#d9a441"}:e.endsWith(".json")?{Icon:Ys,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ct,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ct,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:hl,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:tn,color:"#64748b"}:{Icon:tn,color:xr}}function Jo(n){const e=At(n).split("/").filter(Boolean),t=["/"];let s="";for(const l of e.slice(0,-1))s+=`/${l}`,t.push(s);return t}function ea(n,e=[]){const t={path:"/",children:[]},s=new Map,l=a=>{let c=s.get(a.path);return c||(c=new Map,s.set(a.path,c)),c},i=a=>{const d=At(a).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=l(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 a of n){const d=At(a).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=l(f);let g=x.get(h);g||(g={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(g),x.set(h,g)),f=g})}for(const a of e)i(Be(a));const o=a=>{a.sort((c,d)=>c.kind!==d.kind?c.kind==="directory"?-1:1:c.name.localeCompare(d.name));for(const c of a)c.children.length>0&&o(c.children)};return o(t.children),t.children}function gr(n,e,t=0){const s=[];for(const l of n)l.name!==".gitkeep"&&(s.push({node:l,depth:t}),l.kind==="directory"&&l.children.length>0&&e.has(l.path)&&s.push(...gr(l.children,e,t+1)));return s}function ta(n){const e=[];for(const t of n.split(`
|
|
1
|
+
import{c as $,C as de,n as Je,d as Ge,K as X,m as ie,aY as jn,r as N,ap as $s,l as ce,j as r,U as Ps,i as Es,B as J,aL as kn,t as ue,w as Ds,L as Ts,e as Fs,b as Sn,u as Nn,E as Et}from"./index-CfAl6qA3.js";import{s as zn}from"./Eye-Dmrq3Yx3.js";import{a as ft}from"./Palette-gwCbQEVd.js";import{s as Is}from"./Plus-CpvaryXc.js";import{i as Ms}from"./SearchLg-BLbYMh4R.js";import{i as ht}from"./Upload01-CYv9Q0Sh.js";import{s as Cn}from"./XClose-Bvx5TP10.js";import{i as Ut}from"./Zap-CaoQpAZT.js";import{u as $n}from"./use-mobile-D0KrjV8M.js";import{f as Ls,a as Os,b as Rs,c as As,d as _s,e as Us,A as Bs,g as Hs}from"./alert-dialog-lT11Jsbj.js";import{D as Pn,a as Ue,d as et,e as tt,i as En,h as qs,c as Ks}from"./dialog-B8iPXZfB.js";import{I as Xe}from"./input-C96iFBVQ.js";import{F as ke,M as Bt,d as Dn}from"./file-type-icon-CICh64eJ.js";import{T as Ws}from"./toolbar-1oJVDPdM.js";import{a as Gs}from"./Package-BApyVZZF.js";import{u as Vs}from"./use-debounced-value-U6TK_cAJ.js";import{p as gt,b as le,a as Me,c as Tn,d as Xs}from"./location-BpLtHjTZ.js";import{b as Qs,f as ct,s as Ys,c as tn,d as Zs,g as Js,i as el,h as Fn,a as In,j as tl,e as nl}from"./ZoomOut-Bjuv5wtp.js";import{S as ae}from"./skeleton-DYsdfnWI.js";import{T as sl}from"./textarea-Q9mIBUV-.js";import{t as ll}from"./ChevronDown-z_OgoJuG.js";import{n as rl}from"./ChevronUp-C0dubflE.js";import{i as mt}from"./X-B9OMbRgI.js";import{P as il,b as ol,a as al}from"./popover-CNhMnjco.js";import{b as be,T as ye,a as ve}from"./tooltip-lvzwcxmr.js";import{i as cl}from"./Check-xlx8bieA.js";import{a as dl}from"./Copy01-BhLnIcPa.js";import{n as Qe,i as bt}from"./Globe01-C1OI0rNn.js";import{i as Mn}from"./Key01-CJ4v8ToT.js";import{n as Ln}from"./LinkExternal01-RdFrwyl0.js";import{l as ul,F as fl}from"./index-DyxjlEL3.js";import{a as hl}from"./Image01-D2MElAgS.js";import{D as Ht,a as qt,c as Kt,d as Fe}from"./dropdown-menu-D3W9Mypw.js";import{i as ml}from"./LayoutLeft-BXx4559W.js";import{i as pl}from"./ChevronRight-HByc-_dD.js";import{t as xl}from"./Stars01-BEQN6TZj.js";import{i as On}from"./DotsVertical-9e8whEmO.js";import{s as Rn}from"./Trash01-CFIi5PAY.js";function An(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const l=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${l?`?${l}`:""}`}async function fe(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let l="";try{l=(await s.json()).error??""}catch{}throw new Error(l||`HTTP ${s.status}`)}function Wt(n,e){const t=$.c(11),{org:s}=de();let l;t[0]!==s.id||t[1]!==e||t[2]!==n?(l=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=l):l=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await fe(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(gl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==l||t[9]!==i?(o={queryKey:l,placeholderData:jn,queryFn:i},t[8]=l,t[9]=i,t[10]=o):o=t[10],ie(o)}function gl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function _n(n,e,t){const s=$.c(15),{org:l}=de();let i;s[0]!==l.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(l.id,n??"",e),s[0]=l.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==l.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fe(pe(l.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=l.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function bl(n){const e=$.c(9),{org:t}=de();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 l;e[3]!==t.slug||e[4]!==n?(l=async()=>await(await fe(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=l):l=e[5];let i;return e[6]!==s||e[7]!==l?(i={queryKey:s,queryFn:l},e[6]=s,e[7]=l,e[8]=i):i=e[8],ie(i)}function yl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:l}=de();let i;t[0]!==l.id?(i=X.orgFsRecent(l.id),t[0]=l.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==l.slug?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=l.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function vl(n,e){const t=$.c(11),s=50,{org:l}=de();let i;t[0]!==l.id||t[1]!==n?(i=X.orgFsSearch(l.id,n),t[0]=l.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==l.slug||t[5]!==n?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=l.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:jn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Ao(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const l=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await fe(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(wl)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==l||e[6]!==i?(o={queryKey:s,enabled:l,queryFn:i},e[4]=s,e[5]=l,e[6]=i,e[7]=o):o=e[7],ie(o)}function wl(n){return{volume:n.volume,path:n.path}}async function _o(n){const e=await fe(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function jl(n,e,t){return(await fe(pe(n,e,"read",{path:t}))).text()}const kl=new Set(["md","mdx","markdown","txt","text"]),Sl=25,Nl=64*1024,zl=256*1024,Cl=4;function $l(n){const e=n.lastIndexOf(".");return e===-1?!1:kl.has(n.slice(e+1).toLowerCase())}async function Uo(n,e,t){const s=t?`${t}/`:"",l=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await fe(pe(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<Cl&&a.push({path:m.path,depth:u.depth+1});continue}$l(m.path)&&m.size<=Nl&&i.length<Sl?i.push(m.path):o.push(l(m.path))}}const c=await Promise.all(i.map(u=>jl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>zl){o.push(l(u));return}f+=m.length,d.push({relPath:l(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function Un(){const n=$.c(7),{org:e}=de();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 fe(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let l;return n[4]!==t||n[5]!==s?(l={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=l):l=n[6],ie(l)}function Pl(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=l=>pe(t.slug,n,"read",{path:l}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function nt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,l)=>pe(e.slug,s,"read",{path:l}),n[0]=e.slug,n[1]=t):t=n[1],t}function Bn(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async l=>(await(await fe(pe(t.slug,n,"file",{path:l.path}),{method:"PUT",headers:{"content-type":l.contentType??"text/html; charset=utf-8"},body:l.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],Ge(s)}function El(n){const e=$.c(18),{org:t}=de(),s=Je();let l;e[0]!==t||e[1]!==n?(l=async d=>(await(await fe(pe(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]=l):l=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 o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(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]=a):a=e[12];let c;return e[13]!==l||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:l,onMutate:i,onError:o,onSettled:a},e[13]=l,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],Ge(c)}function Ot(n){const e=$.c(26),{org:t}=de(),s=Je();let l;e[0]!==t||e[1]!==s||e[2]!==n?(l=()=>{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]=l):l=e[3];const i=l;let o;e[4]!==t||e[5]!==n?(o=async g=>{const y=(await Promise.allSettled(g.files.map(v=>{const k=g.dir?`${g.dir}/${v.name}`:v.name;return fe(pe(t.slug,n,"file",{path:k}),{method:"PUT",headers:{"content-type":v.type||"application/octet-stream"},body:v})}))).find(Dl);if(y)throw y.reason},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=Ge(a);let d;e[10]!==t||e[11]!==n?(d=async g=>{await fe(pe(t.slug,n,"dir",{path:g}),{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=Ge(f);let h;e[16]!==t||e[17]!==n?(h=async g=>{await fe(pe(t.slug,n,"file",{path:g}),{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=Ge(m);let x;return e[22]!==u||e[23]!==p||e[24]!==c?(x={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=x):x=e[25],x}function Dl(n){return n.status==="rejected"}const yt=N.createContext(null);yt.displayName="PanelGroupContext";const se={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,Te=N.useLayoutEffect,nn=$s.useId,Tl=typeof nn=="function"?nn:()=>null;let Fl=0;function Vt(n=null){const e=Tl(),t=N.useRef(n||e||null);return t.current===null&&(t.current=""+Fl++),n??t.current}function Hn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:l,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...x}){const g=N.useContext(yt);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:y,getPanelSize:v,getPanelStyle:k,groupId:C,isPanelCollapsed:S,reevaluatePanelConstraints:j,registerPanel:B,resizePanel:R,unregisterPanel:_}=g,w=Vt(o),I=N.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:l,maxSize:a,minSize:c},id:w,idIsFromProps:o!==void 0,order:h});N.useRef({didLogMissingDefaultSizeWarning:!1}),Te(()=>{const{callbacks:U,constraints:O}=I.current,H={...O};I.current.id=w,I.current.idIsFromProps=o!==void 0,I.current.order=h,U.onCollapse=d,U.onExpand=f,U.onResize=u,O.collapsedSize=t,O.collapsible=s,O.defaultSize=l,O.maxSize=a,O.minSize=c,(H.collapsedSize!==O.collapsedSize||H.collapsible!==O.collapsible||H.maxSize!==O.maxSize||H.minSize!==O.minSize)&&j(I.current,H)}),Te(()=>{const U=I.current;return B(U),()=>{_(U)}},[h,w,B,_]),N.useImperativeHandle(i,()=>({collapse:()=>{b(I.current)},expand:U=>{y(I.current,U)},getId(){return w},getSize(){return v(I.current)},isCollapsed(){return S(I.current)},isExpanded(){return!S(I.current)},resize:U=>{R(I.current,U)}}),[b,y,v,S,w,R]);const Z=k(I.current,l);return N.createElement(p,{...x,children:n,className:e,id:w,style:{...Z,...m},[se.groupId]:C,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:w,[se.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const qn=N.forwardRef((n,e)=>N.createElement(Hn,{...n,forwardedRef:e}));Hn.displayName="Panel";qn.displayName="forwardRef(Panel)";let Rt=null,ut=-1,ze=null;function Il(n,e){if(e){const t=(e&Xn)!==0,s=(e&Qn)!==0,l=(e&Yn)!==0,i=(e&Zn)!==0;if(t)return l?"se-resize":i?"ne-resize":"e-resize";if(s)return l?"sw-resize":i?"nw-resize":"w-resize";if(l)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 Ml(){ze!==null&&(document.head.removeChild(ze),Rt=null,ze=null,ut=-1)}function Dt(n,e){var t,s;const l=Il(n,e);if(Rt!==l){if(Rt=l,ze===null&&(ze=document.createElement("style"),document.head.appendChild(ze)),ut>=0){var i;(i=ze.sheet)===null||i===void 0||i.removeRule(ut)}ut=(t=(s=ze.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${l} !important;}`))!==null&&t!==void 0?t:-1}}function Kn(n){return n.type==="keydown"}function Wn(n){return n.type.startsWith("pointer")}function Gn(n){return n.type.startsWith("mouse")}function vt(n){if(Wn(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 Ll(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ol(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 Rl(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:rn(n),b:rn(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;G(s,"Stacking order can only be calculated for elements with a common ancestor");const l={a:ln(sn(t.a)),b:ln(sn(t.b))};if(l.a===l.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(l.a-l.b)}const Al=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function _l(n){var e;const t=getComputedStyle((e=Vn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Ul(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||_l(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"||Al.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function sn(n){let e=n.length;for(;e--;){const t=n[e];if(G(t,"Missing node"),Ul(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function rn(n){const e=[];for(;n;)e.push(n),n=Vn(n);return e}function Vn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Xn=1,Qn=2,Yn=4,Zn=8,Bl=Ll()==="coarse";let xe=[],_e=!1,De=new Map,wt=new Map;const Ye=new Set;function Hl(n,e,t,s,l){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:l},c=(i=De.get(o))!==null&&i!==void 0?i:0;return De.set(o,c+1),Ye.add(a),pt(),function(){var f;wt.delete(n),Ye.delete(a);const u=(f=De.get(o))!==null&&f!==void 0?f:1;if(De.set(o,u-1),pt(),u===1&&De.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),l("up",!0,null)}}}function ql(n){const{target:e}=n,{x:t,y:s}=vt(n);_e=!0,Xt({target:e,x:t,y:s}),pt(),xe.length>0&&(xt("down",n),n.preventDefault(),Jn(e)||n.stopImmediatePropagation())}function Tt(n){const{x:e,y:t}=vt(n);if(_e&&n.buttons===0&&(_e=!1,xt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}xt("move",n),Qt(),xe.length>0&&n.preventDefault()}function Ft(n){const{target:e}=n,{x:t,y:s}=vt(n);wt.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Jn(e)||n.stopImmediatePropagation()),xt("up",n),Xt({target:e,x:t,y:s}),Qt(),pt()}function Jn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Ye.forEach(l=>{const{element:i,hitAreaMargins:o}=l,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=Bl?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&Rl(s,i)>0){let p=s,x=!1;for(;p&&!p.contains(i);){if(Ol(p.getBoundingClientRect(),a)){x=!0;break}p=p.parentElement}if(x)return}xe.push(l)}})}function It(n,e){wt.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:l}=s;l==="horizontal"?n=!0:e=!0});let t=0;wt.forEach(s=>{t|=s}),n&&e?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("vertical",t):Ml()}let Mt=new AbortController;function pt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Ye.size&&(_e?(xe.length>0&&De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Ft,n),s.addEventListener("pointerleave",Tt,n),s.addEventListener("pointermove",Tt,n))}),window.addEventListener("pointerup",Ft,n),window.addEventListener("pointercancel",Ft,n)):De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",ql,n),s.addEventListener("pointermove",Tt,n))}))}function xt(n,e){Ye.forEach(t=>{const{setResizeHandlerState:s}=t,l=xe.includes(t);s(n,l,e)})}function Kl(){const[n,e]=N.useState(0);return N.useCallback(()=>e(t=>t+1),[])}function G(n,e){if(!n)throw console.error(e),Error(e)}function Ie(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function we(n,e,t=Gt){return Ie(n,e,t)===0}function me(n,e,t){return Ie(n,e,t)===0}function Wl(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const l=n[s],i=e[s];if(!me(l,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];G(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:l=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Ie(t,a)<0)if(i){const c=(l+a)/2;Ie(t,c)<0?t=l:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function qe({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:l,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;G(a!=null,"Invalid first pivot index"),G(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];G(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const g=e[u];if(G(g!=null,`Previous layout not found for panel index ${u}`),me(g,m)){const b=x-g;Ie(b,Math.abs(n))>0&&(n=n<0?0-b:b)}}}{const u=n<0?a:c,h=t[u];G(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:x=0}=h;if(p){const g=e[u];if(G(g!=null,`Previous layout not found for panel index ${u}`),me(g,x)){const b=g-m;Ie(b,Math.abs(n))>0&&(n=n<0?0-b:b)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const x=e[h];G(x!=null,`Previous layout not found for panel index ${h}`);const b=Ae({panelConstraints:t,panelIndex:h,size:100})-x;if(m+=b,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?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];G(p!=null,`Previous layout not found for panel index ${h}`);const x=p-m,g=Ae({panelConstraints:t,panelIndex:h,size:x});if(!me(p,g)&&(d+=p-g,o[h]=g,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(Wl(l,o))return l;{const u=n<0?c:a,h=e[u];G(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let x=m-p,b=n<0?c:a;for(;b>=0&&b<t.length;){const y=o[b];G(y!=null,`Previous layout not found for panel index ${b}`);const v=y+x,k=Ae({panelConstraints:t,panelIndex:b,size:v});if(me(y,k)||(x-=k-y,o[b]=k),me(x,0))break;n>0?b--:b++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:l}function Gl({layout:n,panelsArray:e,pivotIndices:t}){let s=0,l=100,i=0,o=0;const a=t[0];G(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:x=0}=m;h===a?(s=x,l=p):(i+=x,o+=p)});const c=Math.min(l,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ze(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function es(n,e,t=document){const l=Ze(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return l??null}function ts(n,e,t){const s=es(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ns(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 jt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function Vl(n,e,t,s=document){var l,i,o,a;const c=jt(e,s),d=Ze(n,s),f=c?d.indexOf(c):-1,u=(l=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&l!==void 0?l:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Xl({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:l,panelGroupElement:i,setLayout:o}){N.useRef({didWarnAboutMissingResizeHandle:!1}),Te(()=>{if(!i)return;const a=Ze(t,i);for(let c=0;c<l.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Gl({layout:s,panelsArray:l,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=l[c];G(m,`No panel data found for index "${c}"`),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()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,l,i]),N.useEffect(()=>{if(!i)return;const a=e.current;G(a,"Eager values not found");const{panelDataArray:c}=a,d=ns(t,i);G(d!=null,`No group found for id "${t}"`);const f=Ze(t,i);G(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);G(m,"Resize handle element has no handle id attribute");const[p,x]=Vl(t,m,c,i);if(p==null||x==null)return()=>{};const g=b=>{if(!b.defaultPrevented)switch(b.key){case"Enter":{b.preventDefault();const y=c.findIndex(v=>v.id===p);if(y>=0){const v=c[y];G(v,`No panel data found for index ${y}`);const k=s[y],{collapsedSize:C=0,collapsible:S,minSize:j=0}=v.constraints;if(k!=null&&S){const B=qe({delta:me(k,C)?j-C:C-k,initialLayout:s,panelConstraints:c.map(R=>R.constraints),pivotIndices:ts(t,m,i),prevLayout:s,trigger:"keyboard"});s!==B&&o(B)}}break}}};return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,l,o])}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 ss(n,e){const t=n==="horizontal",{x:s,y:l}=vt(e);return t?s:l}function Ql(n,e,t,s,l){const i=t==="horizontal",o=jt(e,l);G(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);G(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=ss(t,n),f=ns(a,l);G(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Yl(n,e,t,s,l,i){if(Kn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:l!=null?a=l:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Ql(n,e,t,s,i)}function Zl({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,l=100;for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,l-=a)}for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=l/c;s++,e[i]=d,l-=d}return e}function Le(n,e,t){e.forEach((s,l)=>{const i=n[l];G(i,`Panel data not found for index ${l}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||we(u,d))&&!we(s,d)&&m(),h&&(u==null||!we(u,d))&&we(s,d)&&h())}})}function dt(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 Jl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:l,precision:i=3}){const o=t[l];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function er(n,e=10){let t=null;return(...l)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...l)},e)}}function an(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 rs(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:l,order:i}=e;return l?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function is(n,e){try{const t=ls(n),s=e.getItem(t);if(s){const l=JSON.parse(s);if(typeof l=="object"&&l!=null)return l}}catch{}return null}function tr(n,e,t){var s,l;const i=(s=is(n,t))!==null&&s!==void 0?s:{},o=rs(e);return(l=i[o])!==null&&l!==void 0?l:null}function nr(n,e,t,s,l){var i;const o=ls(n),a=rs(e),c=(i=is(n,l))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{l.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function cn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let l=0;for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(l+=o-a,t[i]=a)}if(!me(l,0))for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=o+l,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(l-=c-o,t[i]=c,me(l,0)))break}return t}const sr=100,Ke={getItem:n=>(an(Ke),Ke.getItem(n)),setItem:(n,e)=>{an(Ke),Ke.setItem(n,e)}},dn={};function os({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:l,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ke,style:d,tagName:f="div",...u}){const h=Vt(i),m=N.useRef(null),[p,x]=N.useState(null),[g,b]=N.useState([]),y=Kl(),v=N.useRef({}),k=N.useRef(new Map),C=N.useRef(0),S=N.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),j=N.useRef({layout:g,panelDataArray:[],panelDataArrayChanged:!1});N.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),N.useImperativeHandle(l,()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:z}=j.current;return z},setLayout:z=>{const{onLayout:F}=S.current,{layout:M,panelDataArray:L}=j.current,D=cn({layout:z,panelConstraints:L.map(A=>A.constraints)});on(M,D)||(b(D),j.current.layout=D,F&&F(D),Le(L,D,v.current))}}),[]),Te(()=>{S.current.autoSaveId=n,S.current.direction=s,S.current.dragState=p,S.current.id=h,S.current.onLayout=o,S.current.storage=c}),Xl({committedValuesRef:S,eagerValuesRef:j,groupId:h,layout:g,panelDataArray:j.current.panelDataArray,setLayout:b,panelGroupElement:m.current}),N.useEffect(()=>{const{panelDataArray:z}=j.current;if(n){if(g.length===0||g.length!==z.length)return;let F=dn[n];F==null&&(F=er(nr,sr),dn[n]=F);const M=[...z],L=new Map(k.current);F(n,M,L,g,c)}},[n,g,c]),N.useEffect(()=>{});const B=N.useCallback(z=>{const{onLayout:F}=S.current,{layout:M,panelDataArray:L}=j.current;if(z.constraints.collapsible){const D=L.map(he=>he.constraints),{collapsedSize:A=0,panelSize:Q,pivotIndices:te}=Ee(L,z,M);if(G(Q!=null,`Panel size not found for panel "${z.id}"`),!we(Q,A)){k.current.set(z.id,Q);const P=Oe(L,z)===L.length-1?Q-A:A-Q,V=qe({delta:P,initialLayout:M,panelConstraints:D,pivotIndices:te,prevLayout:M,trigger:"imperative-api"});dt(M,V)||(b(V),j.current.layout=V,F&&F(V),Le(L,V,v.current))}}},[]),R=N.useCallback((z,F)=>{const{onLayout:M}=S.current,{layout:L,panelDataArray:D}=j.current;if(z.constraints.collapsible){const A=D.map(ne=>ne.constraints),{collapsedSize:Q=0,panelSize:te=0,minSize:he=0,pivotIndices:P}=Ee(D,z,L),V=F??he;if(we(te,Q)){const ne=k.current.get(z.id),ge=ne!=null&&ne>=V?ne:V,$e=Oe(D,z)===D.length-1?te-ge:ge-te,oe=qe({delta:$e,initialLayout:L,panelConstraints:A,pivotIndices:P,prevLayout:L,trigger:"imperative-api"});dt(L,oe)||(b(oe),j.current.layout=oe,M&&M(oe),Le(D,oe,v.current))}}},[]),_=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{panelSize:L}=Ee(M,z,F);return G(L!=null,`Panel size not found for panel "${z.id}"`),L},[]),w=N.useCallback((z,F)=>{const{panelDataArray:M}=j.current,L=Oe(M,z);return Jl({defaultSize:F,dragState:p,layout:g,panelData:M,panelIndex:L})},[p,g]),I=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),D===!0&&we(A,L)},[]),Z=N.useCallback(z=>{const{layout:F,panelDataArray:M}=j.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),!D||Ie(A,L)>0},[]),U=N.useCallback(z=>{const{panelDataArray:F}=j.current;F.push(z),F.sort((M,L)=>{const D=M.order,A=L.order;return D==null&&A==null?0:D==null?-1:A==null?1:D-A}),j.current.panelDataArrayChanged=!0,y()},[y]);Te(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:F,storage:M}=S.current,{layout:L,panelDataArray:D}=j.current;let A=null;if(z){const te=tr(z,D,M);te&&(k.current=new Map(Object.entries(te.expandToSizes)),A=te.layout)}A==null&&(A=Zl({panelDataArray:D}));const Q=cn({layout:A,panelConstraints:D.map(te=>te.constraints)});on(L,Q)||(b(Q),j.current.layout=Q,F&&F(Q),Le(D,Q,v.current))}}),Te(()=>{const z=j.current;return()=>{z.layout=[]}},[]);const O=N.useCallback(z=>{let F=!1;const M=m.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(D){D.preventDefault();const A=m.current;if(!A)return()=>null;const{direction:Q,dragState:te,id:he,keyboardResizeBy:P,onLayout:V}=S.current,{layout:ne,panelDataArray:ge}=j.current,{initialLayout:Se}=te??{},$e=ts(he,z,A);let oe=Yl(D,z,Q,te,P,A);const it=Q==="horizontal";it&&F&&(oe=-oe);const $t=ge.map(Pt=>Pt.constraints),Pe=qe({delta:oe,initialLayout:Se??ne,panelConstraints:$t,pivotIndices:$e,prevLayout:ne,trigger:Kn(D)?"keyboard":"mouse-or-touch"}),ot=!dt(ne,Pe);(Wn(D)||Gn(D))&&C.current!=oe&&(C.current=oe,!ot&&oe!==0?it?It(z,oe<0?Xn:Qn):It(z,oe<0?Yn:Zn):It(z,0)),ot&&(b(Pe),j.current.layout=Pe,V&&V(Pe),Le(ge,Pe,v.current))}},[]),H=N.useCallback((z,F)=>{const{onLayout:M}=S.current,{layout:L,panelDataArray:D}=j.current,A=D.map(ne=>ne.constraints),{panelSize:Q,pivotIndices:te}=Ee(D,z,L);G(Q!=null,`Panel size not found for panel "${z.id}"`);const P=Oe(D,z)===D.length-1?Q-F:F-Q,V=qe({delta:P,initialLayout:L,panelConstraints:A,pivotIndices:te,prevLayout:L,trigger:"imperative-api"});dt(L,V)||(b(V),j.current.layout=V,M&&M(V),Le(D,V,v.current))},[]),W=N.useCallback((z,F)=>{const{layout:M,panelDataArray:L}=j.current,{collapsedSize:D=0,collapsible:A}=F,{collapsedSize:Q=0,collapsible:te,maxSize:he=100,minSize:P=0}=z.constraints,{panelSize:V}=Ee(L,z,M);V!=null&&(A&&te&&we(V,D)?we(D,Q)||H(z,Q):V<P?H(z,P):V>he&&H(z,he))},[H]),q=N.useCallback((z,F)=>{const{direction:M}=S.current,{layout:L}=j.current;if(!m.current)return;const D=jt(z,m.current);G(D,`Drag handle element not found for id "${z}"`);const A=ss(M,F);x({dragHandleId:z,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:A,initialLayout:L})},[]),ee=N.useCallback(()=>{x(null)},[]),Y=N.useCallback(z=>{const{panelDataArray:F}=j.current,M=Oe(F,z);M>=0&&(F.splice(M,1),delete v.current[z.id],j.current.panelDataArrayChanged=!0,y())},[y]),T=N.useMemo(()=>({collapsePanel:B,direction:s,dragState:p,expandPanel:R,getPanelSize:_,getPanelStyle:w,groupId:h,isPanelCollapsed:I,isPanelExpanded:Z,reevaluatePanelConstraints:W,registerPanel:U,registerResizeHandle:O,resizePanel:H,startDragging:q,stopDragging:ee,unregisterPanel:Y,panelGroupElement:m.current}),[B,p,s,R,_,w,h,I,Z,W,U,O,H,q,ee,Y]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return N.createElement(yt.Provider,{value:T},N.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const as=N.forwardRef((n,e)=>N.createElement(os,{...n,forwardedRef:e}));os.displayName="PanelGroup";as.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Ee(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function lr({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){N.useEffect(()=>{if(n||t==null||s==null)return;const l=jt(e,s);if(l==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=l.getAttribute(se.groupId);G(a,`No group element found for id "${a}"`);const c=Ze(a,s),d=es(a,e,s);G(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}},[s,n,e,t])}function cs({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:l,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var x,g;const b=N.useRef(null),y=N.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});N.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const v=N.useContext(yt);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:k,groupId:C,registerResizeHandle:S,startDragging:j,stopDragging:B,panelGroupElement:R}=v,_=Vt(l),[w,I]=N.useState("inactive"),[Z,U]=N.useState(!1),[O,H]=N.useState(null),W=N.useRef({state:w});Te(()=>{W.current.state=w}),N.useEffect(()=>{if(t)H(null);else{const T=S(_);H(()=>T)}},[t,_,S]);const q=(x=s?.coarse)!==null&&x!==void 0?x:15,ee=(g=s?.fine)!==null&&g!==void 0?g:5;N.useEffect(()=>{if(t||O==null)return;const T=b.current;G(T,"Element ref not attached");let K=!1;return Hl(_,T,k,{coarse:q,fine:ee},(F,M,L)=>{if(!M){I("inactive");return}switch(F){case"down":{I("drag"),K=!1,G(L,'Expected event to be defined for "down" action'),j(_,L);const{onDragging:D,onPointerDown:A}=y.current;D?.(!0),A?.();break}case"move":{const{state:D}=W.current;K=!0,D!=="drag"&&I("hover"),G(L,'Expected event to be defined for "move" action'),O(L);break}case"up":{I("hover"),B();const{onClick:D,onDragging:A,onPointerUp:Q}=y.current;A?.(!1),Q?.(),K||D?.();break}}})},[q,k,t,ee,S,_,O,j,B]),lr({disabled:t,handleId:_,resizeHandler:O,panelGroupElement:R});const Y={touchAction:"none",userSelect:"none"};return N.createElement(m,{...p,children:n,className:e,id:l,onBlur:()=>{U(!1),i?.()},onFocus:()=>{U(!0),c?.()},ref:b,role:"separator",style:{...Y,...u},tabIndex:h,[se.groupDirection]:k,[se.groupId]:C,[se.resizeHandle]:"",[se.resizeHandleActive]:w==="drag"?"pointer":Z?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:_,[se.resizeHandleState]:w})}cs.displayName="PanelResizeHandle";function rr(n){const e=$.c(10);let t,s,l;e[0]!==n?({className:t,ref:l,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==l||e[8]!==i?(o=r.jsx(as,{ref:l,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=l,e[8]=i,e[9]=o):o=e[9],o}function un(n){const 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=r.jsx(qn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function ir(n){const e=$.c(12);let t,s,l;e[0]!==n?({withHandle:l,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("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 o;e[6]!==l?(o=l&&r.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsx(Qs,{className:"size-2.5"})}),e[6]=l,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=r.jsx(cs,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function or(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 ar(n){if(or(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function cr(n){try{return decodeURIComponent(n)}catch{return n}}function dr(n){return ar(n),encodeURIComponent(n)}function ur(n){return`.deco/blocks/${dr(n)}.json`}function Bo(n){return`/${ur(n)}`}const Ho=1e4,fr=3;function At(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function kt(n){return n.startsWith("/")?n.slice(1):n}function qo(n){const e=kt(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function Be(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function hr(n){const e=Be(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ko(n,e){const t=e.replace(/^\/+|\/+$/g,"");return Be(t?`${n==="/"?"":n}/${t}`:n)}function Wo(n,e){return e==="directory"?n:hr(n)}function Go(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 mr(n){const e=kt(n);return e?e.split("/").filter(Boolean).length:0}function Vo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Xo(n,e){return mr(n)>=fr&&!e.has(n)}function Qo(n,e,t=[]){const s=kt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const l=`${s}/`;return e.some(i=>i.startsWith(l))||t.some(i=>i.startsWith(l))}function Yo(n){const e=kt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return cr(s)}function pr(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 xr="#94a3b8";function Zo(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ct,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ct,color:"#d9a441"}:e.endsWith(".json")?{Icon:Ys,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ct,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ct,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:hl,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:tn,color:"#64748b"}:{Icon:tn,color:xr}}function Jo(n){const e=At(n).split("/").filter(Boolean),t=["/"];let s="";for(const l of e.slice(0,-1))s+=`/${l}`,t.push(s);return t}function ea(n,e=[]){const t={path:"/",children:[]},s=new Map,l=a=>{let c=s.get(a.path);return c||(c=new Map,s.set(a.path,c)),c},i=a=>{const d=At(a).split("/").filter(Boolean);let f=t,u="";for(const h of d){u+=`/${h}`;const m=l(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 a of n){const d=At(a).split("/").filter(Boolean);let f=t,u="";d.forEach((h,m)=>{u+=`/${h}`;const p=m===d.length-1,x=l(f);let g=x.get(h);g||(g={name:h,path:u,kind:p?"file":"directory",children:[]},f.children.push(g),x.set(h,g)),f=g})}for(const a of e)i(Be(a));const o=a=>{a.sort((c,d)=>c.kind!==d.kind?c.kind==="directory"?-1:1:c.name.localeCompare(d.name));for(const c of a)c.children.length>0&&o(c.children)};return o(t.children),t.children}function gr(n,e,t=0){const s=[];for(const l of n)l.name!==".gitkeep"&&(s.push({node:l,depth:t}),l.kind==="directory"&&l.children.length>0&&e.has(l.path)&&s.push(...gr(l.children,e,t+1)));return s}function ta(n){const e=[];for(const t of n.split(`
|
|
2
2
|
`)){if(!t)continue;const s=t.indexOf(":");if(s<0)continue;const l=t.indexOf(":",s+1);if(l<0)continue;const i=Number.parseInt(t.slice(s+1,l),10);Number.isFinite(i)&&e.push({path:Be(t.slice(0,s)),line:i,text:t.slice(l+1)})}return e}function na(n,e,t){const s=e.trim().toLowerCase();if(!s)return[];const l=[];for(const i of n)if((i.split("/").pop()??i).toLowerCase().includes(s)&&(l.push(Be(i)),l.length>=t))break;return l}const fn=24;function sa(n,e){const t=n.replace(/^\s+/,""),s=e.trim().toLowerCase();if(!s)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const l=t.toLowerCase().indexOf(s);if(l<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const i=l>fn,o=i?t.slice(l-fn):t,a=o.toLowerCase(),c=[];let d=0;for(;;){const f=a.indexOf(s,d);if(f<0){d<o.length&&c.push({text:o.slice(d),match:!1});break}f>d&&c.push({text:o.slice(d,f),match:!1}),c.push({text:o.slice(f,f+s.length),match:!0}),d=f+s.length}return{leadingEllipsis:i,segments:c}}function la(n){const e=[],t=new Map;for(const s of n){let l=t.get(s.path);l||(l={path:s.path,matches:[]},t.set(s.path,l),e.push(l)),l.matches.push(s)}return e}function ra(n){return n.split(`
|
|
3
3
|
`).map(e=>e.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}ul.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function br(n){const e=$.c(11),{value:t,filename:s}=n,[l]=Ps(),i=l.theme==="dark"||l.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=pr(s),e[0]=s,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsx(Es,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=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]!==o||e[8]!==a||e[9]!==t?(h=r.jsx(fl,{path:s,language:o,value:t,theme:a,loading:c,options:u},s),e[6]=s,e[7]=o,e[8]=a,e[9]=t,e[10]=h):h=e[10],h}function ds(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const yr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),vr=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),hn=2*1024*1024;function wr(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return yr.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=hn?"markdown":"download":vr.has(t)&&e<=hn?"text":"download"}function us(){const n=$.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(ae,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx(ae,{className:"h-3 w-full"}),r.jsx(ae,{className:"h-3 w-5/6"}),r.jsx(ae,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function fs(n){const e=$.c(20),{file:t,note:s}=n;let l;e[0]!==t.filename?(l=r.jsx(ke,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=l):l=e[1];let i;e[2]!==t.filename?(i=r.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=ds(t.size),e[4]=t.size,e[5]=o):o=e[5];const a=s?` · ${s}`:"";let c;e[6]!==o||e[7]!==a?(c=r.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,a]}),e[6]=o,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=r.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(Qe,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=r.jsx(J,{asChild:!0,variant:"outline",size:"sm",children:r.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]!==l||e[17]!==d||e[18]!==u?(h=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[l,d,u]})}),e[16]=l,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function mn(n){const e=$.c(16),{file:t,markdown:s}=n;let l;e[0]!==t.downloadUrl?(l=X.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=l):l=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 o;e[4]!==l||e[5]!==i?(o={queryKey:l,queryFn:i,staleTime:6e4,retry:!1},e[4]=l,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=ie(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(us,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==t?(u=r.jsx(fs,{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]!==a||e[11]!==u?(h=r.jsx("div",{className:"h-full overflow-y-auto",children:r.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:r.jsx(Bt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==a||e[14]!==t.filename?(f=r.jsx(br,{value:a,filename:t.filename}),e[13]=a,e[14]=t.filename,e[15]=f):f=e[15],f}function hs(n){const e=$.c(15),{file:t}=n;switch(wr(t.filename,t.size)){case"image":{let l;return e[0]!==t.downloadUrl||e[1]!==t.filename?(l=r.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:r.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]=l):l=e[2],l}case"pdf":{let l;return e[3]!==t.downloadUrl||e[4]!==t.filename?(l=r.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]=l):l=e[5],l}case"html":{let l;return e[6]!==t.downloadUrl||e[7]!==t.filename?(l=r.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]=l):l=e[8],l}case"markdown":{let l;return e[9]!==t?(l=r.jsx(mn,{file:t,markdown:!0}),e[9]=t,e[10]=l):l=e[10],l}case"text":{let l;return e[11]!==t?(l=r.jsx(mn,{file:t,markdown:!1}),e[11]=t,e[12]=l):l=e[12],l}default:{let l;return e[13]!==t?(l=r.jsx(fs,{file:t}),e[13]=t,e[14]=l):l=e[14],l}}}function jr(n){const e=$.c(40),{readUrl:t,editor:s,downloadName:l,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const a=o;let c;e[2]!==s?(c=s.deckDetected&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:r.jsx(ml,{size:14})})}),r.jsx(ve,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==a?(d=()=>window.open(a,"_blank","noopener"),e[4]=a,e[5]=d):d=e[5];let f;e[6]!==a?(f=r.jsx("span",{className:"truncate",children:a}),e[6]=a,e[7]=f):f=e[7];let u;e[8]!==a||e[9]!==d||e[10]!==f?(u=r.jsx("button",{type:"button",onClick:d,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:a,children:f}),e[8]=a,e[9]=d,e[10]=f,e[11]=u):u=e[11];let h;e[12]!==s.agentUpdated||e[13]!==s.reload?(h=s.agentUpdated&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[r.jsx(kn,{size:12}),"Agent updated — reload"]})}),r.jsx(ve,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=h):h=e[14];let m;e[15]!==s.saving?(m=s.saving&&r.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=m):m=e[16];let p;e[17]!==s?(p=s.deckDetected&&s.writable&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ce(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:r.jsx(Zs,{size:14})})}),r.jsx(ve,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=p):p=e[18];let x;e[19]!==a||e[20]!==l||e[21]!==s.deckDetected?(x=s.deckDetected?r.jsxs(Ht,{children:[r.jsx(qt,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Download",children:r.jsx(Qe,{size:14})})}),r.jsxs(Kt,{align:"end",children:[r.jsxs(Fe,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[r.jsx(Js,{size:14}),"Export as PDF"]}),r.jsx(Fe,{asChild:!0,children:r.jsxs("a",{href:a,download:l,children:[r.jsx(el,{size:14}),"Download HTML"]})})]})]}):r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:r.jsx("a",{href:a,download:l,children:r.jsx(Qe,{size:14})})})}),r.jsx(ve,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=l,e[21]=s.deckDetected,e[22]=x):x=e[22];let g;e[23]!==a?(g=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=g):g=e[24];let b;e[25]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx(Ln,{size:14}),e[25]=b):b=e[25];let y;e[26]!==g?(y=r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:g,children:b})}),e[26]=g,e[27]=y):y=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(ve,{side:"bottom",children:"Open in new tab"}),e[28]=v):v=e[28];let k;e[29]!==y?(k=r.jsxs(be,{children:[y,v]}),e[29]=y,e[30]=k):k=e[30];let C;return e[31]!==k||e[32]!==c||e[33]!==u||e[34]!==h||e[35]!==m||e[36]!==p||e[37]!==x||e[38]!==i?(C=r.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,h,m,p,x,k,i]}),e[31]=k,e[32]=c,e[33]=u,e[34]=h,e[35]=m,e[36]=p,e[37]=x,e[38]=i,e[39]=C):C=e[39],C}const Re=1;function kr(n){if(typeof n!="object"||n===null||n.v!==Re||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 Ne extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function ms(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Sr(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?ms(t).length:null}function Nr(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new Ne("no <deck-viewer> element in source","no-viewer");const l=ms(s),i=e.kind==="move"?e.from:e.at,o=l[i];if(!o)throw new Ne(`slide index ${i} out of range (${l.length})`,"stale-index");switch(e.kind){case"remove":{if(l.length<=1)throw new Ne("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=l.length)throw new Ne(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?l[e.to]:l[e.to].nextSibling;s.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new Ne(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new Ne("replace html has no root element","bad-op");o.replaceWith(t.importNode(d,!0));break}default:throw new Ne(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,aV as L,dL as R,cL as Ee,cN as ke,cP as Se,F as xe,dM as q}from"./index-hjE2XX6X.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',Le='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:N=!1,vimBindings:A=!0,...O}=t,U=L(),ne=L(),H=L(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(Le))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?He(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=L(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;N(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function N(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:q(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:N,onClick:A?void 0:I},t.children)}),qe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=L(),v=n.useRef(null),b=n.useRef(null),i=L(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:q(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:q(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:q(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:q(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ne=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:qe,Separator:je,Dialog:ze,Empty:Ne,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
|
|
1
|
+
import{r as n,aV as L,dL as R,cL as Ee,cN as ke,cP as Se,F as xe,dM as q}from"./index-CfAl6qA3.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',Le='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:N=!1,vimBindings:A=!0,...O}=t,U=L(),ne=L(),H=L(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(Le))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?He(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=L(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;N(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function N(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:q(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:N,onClick:A?void 0:I},t.children)}),qe=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=L(),v=n.useRef(null),b=n.useRef(null),i=L(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:q(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:q(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:q(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:q(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ne=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:qe,Separator:je,Dialog:ze,Empty:Ne,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
|