decocms 4.4.0 → 4.5.0
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-CM6D9elR.js → AlertCircle-BxTbR_B1.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Kqa5fEjt.js → ArrowUpRight-S4NNBOkv.js} +1 -1
- package/dist/client/assets/{CheckCircle-8DKF8Yx5.js → CheckCircle-BtIJRHva.js} +1 -1
- package/dist/client/assets/{ChevronDown-DGuR7uUZ.js → ChevronDown-Ee_3Sayw.js} +1 -1
- package/dist/client/assets/{ChevronRight-BswIt99A.js → ChevronRight-DCf9L0Ls.js} +1 -1
- package/dist/client/assets/{ChevronUp-DSdWQUoR.js → ChevronUp-CGE39voI.js} +1 -1
- package/dist/client/assets/{DotsVertical-DSosYpI1.js → DotsVertical-fVEXRB26.js} +1 -1
- package/dist/client/assets/{Eye-Dn1AISrx.js → Eye-fTf2jKhH.js} +1 -1
- package/dist/client/assets/{FilterLines-CmWI-8pG.js → FilterLines-Ba5JOCcM.js} +1 -1
- package/dist/client/assets/{Globe01-CcXDI4W7.js → Globe01-DYSo0Sr2.js} +1 -1
- package/dist/client/assets/{Globe04-B9Btoycr.js → Globe04-3H1XgmQN.js} +1 -1
- package/dist/client/assets/{HardDrive-BqXWgcmp.js → HardDrive-JOn6Ez5n.js} +1 -1
- package/dist/client/assets/{Key01-F6-x7vNY.js → Key01-DV-6LIf3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DpqtgcH3.js → LayoutLeft-BtE5tmf6.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DOU6-C1w.js → LinkExternal01-CALVZhat.js} +1 -1
- package/dist/client/assets/{Monitor01-SkSQUhmT.js → Monitor01-CWc8cxQO.js} +1 -1
- package/dist/client/assets/{Palette-CnoObDqZ.js → Palette-Dok2NINN.js} +1 -1
- package/dist/client/assets/{Play-DzGcMRv3.js → Play-CllDczEk.js} +1 -1
- package/dist/client/assets/{Plus-DDlkoJBs.js → Plus-B6q1KrRb.js} +1 -1
- package/dist/client/assets/{SearchLg-CdT_y89m.js → SearchLg-ZiEk0E-L.js} +1 -1
- package/dist/client/assets/{SearchMd-UY2xUREv.js → SearchMd-CXYhXBwx.js} +1 -1
- package/dist/client/assets/{Settings02-QyYEyYyn.js → Settings02-D7AphFkm.js} +1 -1
- package/dist/client/assets/{Shield01-V8b5EFFL.js → Shield01-DKJBa4Nn.js} +1 -1
- package/dist/client/assets/{Star01-GVe4t6O1.js → Star01-Bf-FCZNm.js} +1 -1
- package/dist/client/assets/{Stars01-BIVPeWqS.js → Stars01-DlOkHfPH.js} +1 -1
- package/dist/client/assets/{Stars02-DVZm69DV.js → Stars02-BQPdDCaK.js} +1 -1
- package/dist/client/assets/{Sun-B2ndPBZP.js → Sun-BkeePoRn.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BL4xnvxO.js → SwitchHorizontal01-5oVLoUdS.js} +1 -1
- package/dist/client/assets/{Tool01-Ci5EQ1tM.js → Tool01-CYPQsW1Y.js} +1 -1
- package/dist/client/assets/{Trash01-Cc007jho.js → Trash01-xnv05M2J.js} +1 -1
- package/dist/client/assets/{Upload01-DB9meUjO.js → Upload01-Cxp7zIDh.js} +1 -1
- package/dist/client/assets/{User01-Dz-_mMMJ.js → User01-DuB-iQs0.js} +1 -1
- package/dist/client/assets/{Users01-Ctg0iuAM.js → Users01-BkkYER_Z.js} +1 -1
- package/dist/client/assets/{Users03-BazvU-rC.js → Users03-UgyNhO90.js} +1 -1
- package/dist/client/assets/{X-_dGiBqSn.js → X-DJbyjHqp.js} +1 -1
- package/dist/client/assets/{XCircle-CmN6DNsv.js → XCircle-DaUcrc3Z.js} +1 -1
- package/dist/client/assets/{XClose-BpreRuFP.js → XClose-Dpj0HG8O.js} +1 -1
- package/dist/client/assets/{Zap-CWxLsQ6b.js → Zap-3WgTvh1l.js} +1 -1
- package/dist/client/assets/{ZapSquare-D5x1wm0t.js → ZapSquare-_6Gbk0W4.js} +1 -1
- package/dist/client/assets/{ZoomOut-C0bVPfpC.js → ZoomOut-sMdcQ1z1.js} +1 -1
- package/dist/client/assets/{access-gate-CpQ3bOMg.js → access-gate-D5zqAUht.js} +1 -1
- package/dist/client/assets/{add-section-modal-D22Rp_ry.js → add-section-modal-C7LYK9_a.js} +1 -1
- package/dist/client/assets/{agent-icon-BjxA8YR3.js → agent-icon-CGghaYK_.js} +1 -1
- package/dist/client/assets/{agents-list-C17XwfcN.js → agents-list-Cr4gcaIM.js} +1 -1
- package/dist/client/assets/{ai-providers-DNjwL7U0.js → ai-providers-DRcnzRGt.js} +1 -1
- package/dist/client/assets/{alert-CTzYtGwN.js → alert-82Lday5Z.js} +1 -1
- package/dist/client/assets/{alert-dialog-DMWXmTGp.js → alert-dialog-BS58YIPS.js} +1 -1
- package/dist/client/assets/{app-editor-uAXMllzs.js → app-editor-C6Aqhesa.js} +1 -1
- package/dist/client/assets/{auth-DraSXrC6.js → auth-ThTV5Po4.js} +1 -1
- package/dist/client/assets/{auth-catchall--3ZAEbBd.js → auth-catchall-DZl4u1uA.js} +1 -1
- package/dist/client/assets/{auth-entry-DRJ-aW15.js → auth-entry-CbD2Yx6O.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B77S9w6i.js → auth-split-layout-CDtLb6rM.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-HBteAcVm.js → authenticate-and-persist-oauth-M7g3Ip6K.js} +1 -1
- package/dist/client/assets/{automation-list-row-NZNZGrlr.js → automation-list-row-BpAVCpYu.js} +1 -1
- package/dist/client/assets/{automation-runs-BoQeZ1gh.js → automation-runs-Ct44UxLc.js} +1 -1
- package/dist/client/assets/{automations-bd5MK3eJ.js → automations-kb18v3_J.js} +1 -1
- package/dist/client/assets/{avatar-COMRxqae.js → avatar-DlocwZ2L.js} +1 -1
- package/dist/client/assets/{badge-B1dPfLuK.js → badge-D5YEUUHD.js} +1 -1
- package/dist/client/assets/{block-document-B6TgjyKW.js → block-document-BRIyZXG2.js} +1 -1
- package/dist/client/assets/{brand-context-DGv078pp.js → brand-context-BsgCnvPI.js} +1 -1
- package/dist/client/assets/{buckets-LnyV7EWC.js → buckets-B7WQPWC0.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BP0Mtj3P.js → bulk-category-panel-DNM5EmBU.js} +1 -1
- package/dist/client/assets/{capability-load-error-WTr85D-I.js → capability-load-error-DT9Z3j9_.js} +1 -1
- package/dist/client/assets/{card-Bys-wDTW.js → card-Cw03QSbR.js} +1 -1
- package/dist/client/assets/{category-editor-Cm1sAVk_.js → category-editor-BmiPat5J.js} +1 -1
- package/dist/client/assets/{chat-context-huSCeR82.js → chat-context-ooWv73sg.js} +1 -1
- package/dist/client/assets/{checkbox-BIDlFz_0.js → checkbox-B68Qec99.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DJ5lbMQC.js → cli-auth-success-Ddd6u0XZ.js} +1 -1
- package/dist/client/assets/{collection-detail-UTQtN0-J.js → collection-detail-D6Q9VAn2.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bnm_JutP.js → collection-display-button-BMNWXm85.js} +1 -1
- package/dist/client/assets/{collection-search-CKMDHnku.js → collection-search-3IpRbGNr.js} +1 -1
- package/dist/client/assets/{collection-tabs-CWrBkWhe.js → collection-tabs-DddR_OZb.js} +1 -1
- package/dist/client/assets/{command-DrgMAh0a.js → command-DwLXEYqP.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-B8pBrcvE.js → commerce-onboarding-Bck_AFlf.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CvuFk-NY.js → connect-desktop-dialog-CDwS1V65.js} +1 -1
- package/dist/client/assets/{connection-card-DIh-SIqT.js → connection-card-DOtnovDK.js} +1 -1
- package/dist/client/assets/{connection-detail-CWog7XFK.js → connection-detail-BahmY-gv.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DV-bwjt7.js → connection-form-helpers-DP7j8TIB.js} +1 -1
- package/dist/client/assets/{connections-BkvcH3F-.js → connections-CZ4QvltE.js} +1 -1
- package/dist/client/assets/{context-menu-BPHfkJEs.js → context-menu-CTpu9MH_.js} +1 -1
- package/dist/client/assets/{decopilot-BxOK0Z8W.js → decopilot-B32iA6AV.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Chmwc1_x.js → decopilot-sse-pool-DCtLG819.js} +1 -1
- package/dist/client/assets/{dialog-o7scRbG9.js → dialog-dc-6JiKe.js} +1 -1
- package/dist/client/assets/{domain-settings-DIv14WFm.js → domain-settings-DVO7PCYm.js} +1 -1
- package/dist/client/assets/{drawer-B-Vy7tMY.js → drawer-xBBvxQN0.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D-VNET4I.js → dropdown-menu-DxGNuqoA.js} +1 -1
- package/dist/client/assets/{empty-state-1p_UpPHY.js → empty-state-BUpOZfFd.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BVX9Eneo.js → extract-connection-data-qNy8FwuR.js} +1 -1
- package/dist/client/assets/{file-explorer-Bh9kp1sm.js → file-explorer-CFShRASg.js} +1 -1
- package/dist/client/assets/{file-type-icon-LHBbJJTG.js → file-type-icon-CU03wRXW.js} +1 -1
- package/dist/client/assets/{files-Bw3w16xX.js → files-DbReNsVo.js} +1 -1
- package/dist/client/assets/{form-DX8cQ4SA.js → form-BCFMjlpa.js} +1 -1
- package/dist/client/assets/{general-DzJAxzRR.js → general-DqokVySt.js} +1 -1
- package/dist/client/assets/{github-repo-picker-ZmfhFTO6.js → github-repo-picker-DmmFpG_f.js} +1 -1
- package/dist/client/assets/{hooks-BUt6AoQh.js → hooks-BPJw1hei.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-DZhtwoRn.js → import-from-deco-dialog-Cqmqz1ZK.js} +1 -1
- package/dist/client/assets/{index-BPD9Iyv5.js → index-BEMAWvDc.js} +1 -1
- package/dist/client/assets/{index-BBTFoidO.js → index-BLrDPPMI.js} +1 -1
- package/dist/client/assets/{index-DvDkdoxH.js → index-CDodpQIo.js} +1 -1
- package/dist/client/assets/{index-NJ9aYDVC.js → index-CK3mNMke.js} +1 -1
- package/dist/client/assets/{index-Db3cPjnW.js → index-CLce2SDk.js} +1 -1
- package/dist/client/assets/{index-CXy6rN6i.js → index-CcSfK5lN.js} +3 -3
- package/dist/client/assets/{index-CjKis1yy.js → index-Ckv1trie.js} +1 -1
- package/dist/client/assets/{index-CpgVJVWB.js → index-DQFapqGr.js} +5 -5
- package/dist/client/assets/{index-DKs6HTlj.js → index-DqI8yCZf.js} +1 -1
- package/dist/client/assets/{index-VkScKLdP.js → index-NlBPD228.js} +1 -1
- package/dist/client/assets/{index-DCwPnlYH.js → index-R31BplOc.js} +1 -1
- package/dist/client/assets/{index-Cod7u1PQ.js → index-RTYNd1V2.js} +1 -1
- package/dist/client/assets/{index-CAV1BNai.js → index-akSYqf8U.js} +1 -1
- package/dist/client/assets/{index-CL3KBg-D.js → index-nRRJjntw.js} +1 -1
- package/dist/client/assets/{index-redirect-B6MtHNAq.js → index-redirect-CZcY1QKs.js} +1 -1
- package/dist/client/assets/{input-BlhkemhH.js → input-DP5SZ5ZB.js} +1 -1
- package/dist/client/assets/{integration-icon-BSHD1Ijr.js → integration-icon-DN8Vp_dc.js} +1 -1
- package/dist/client/assets/{label-CL8Vh65B.js → label-BwKyZwbE.js} +1 -1
- package/dist/client/assets/{login-B4UwjrwL.js → login-CKE5Qo30.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CXj7zg3h.js → mcp-oauth-BwPcgk4Y.js} +1 -1
- package/dist/client/assets/{members-CZJJNFCT.js → members-Dk5LMfPA.js} +1 -1
- package/dist/client/assets/{monaco-editor-DBScTPL_.js → monaco-editor-DbRZxEyH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DS-oLjL7.js → monitoring-stats-row-DwWeNnqf.js} +1 -1
- package/dist/client/assets/{oauth-callback-DmaJ1bda.js → oauth-callback-C17HjdP4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BQMnSXh3.js → oauth-callback-ai-provider-rgF6sNOu.js} +1 -1
- package/dist/client/assets/{onboarding-Byb6DxyK.js → onboarding-BNRfMpQ2.js} +1 -1
- package/dist/client/assets/{org-install-DE37K5KN.js → org-install-BnZbsTit.js} +1 -1
- package/dist/client/assets/{org-layout-des0Y5a9.js → org-layout-7GtbTFGB.js} +1 -1
- package/dist/client/assets/{organization-choice-COkZ5W_o.js → organization-choice-deKiTsSC.js} +1 -1
- package/dist/client/assets/{page-seo-form-BcrUATEU.js → page-seo-form-DPZN4zKV.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Dqa4kKTw.js +1 -0
- package/dist/client/assets/{popover-SD8gnUXm.js → popover-B5x5gTCp.js} +1 -1
- package/dist/client/assets/{post-editor-BDlfII0z.js → post-editor-oh2IXwsc.js} +1 -1
- package/dist/client/assets/{primitives-CVsZF3ex.js → primitives-dzbeBlHQ.js} +1 -1
- package/dist/client/assets/{profile-DBUkydtR.js → profile-Bc0rxORl.js} +1 -1
- package/dist/client/assets/project-app-view-LEo1Vn4l.js +1 -0
- package/dist/client/assets/record-editor-Gj0bd3Dm.js +1 -0
- package/dist/client/assets/registry-DYhqURup.js +2 -0
- package/dist/client/assets/{registry-layout-BL9jjFNp.js → registry-layout-BQWFVx3q.js} +1 -1
- package/dist/client/assets/{require-capability-CLQ4GBGj.js → require-capability-Bh5SW_Rr.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BzYoSj-D.js → required-auth-layout-DnZfZ2NE.js} +1 -1
- package/dist/client/assets/{reset-password-C3Zmx-Z-.js → reset-password-BOF0PLif.js} +1 -1
- package/dist/client/assets/{roles-RwbAlbhC.js → roles-BHggaHP0.js} +1 -1
- package/dist/client/assets/{scroll-area-DgIklajW.js → scroll-area-KBEcsrNl.js} +1 -1
- package/dist/client/assets/{search-input-BwHA7yOt.js → search-input-DfY0Idtt.js} +1 -1
- package/dist/client/assets/{secrets-Cu_Gp7gT.js → secrets-D-WMYerP.js} +1 -1
- package/dist/client/assets/{sections-editor-CaNl1tLu.js → sections-editor-D_gqV6Dc.js} +1 -1
- package/dist/client/assets/{select-DM3pFFAV.js → select-0LBXKeau.js} +1 -1
- package/dist/client/assets/{select-model-C1odlJ1X.js → select-model-DHY-fBEi.js} +1 -1
- package/dist/client/assets/{seo-editor-C28ZayGa.js → seo-editor-CPi1zeyc.js} +1 -1
- package/dist/client/assets/{settings-layout-C_nc5y3_.js → settings-layout-D7Afx7A0.js} +1 -1
- package/dist/client/assets/{settings-section-6b9w_VoZ.js → settings-section-DiijSJ5F.js} +1 -1
- package/dist/client/assets/{sheet-BJF6qruz.js → sheet-Ct7wtAfe.js} +1 -1
- package/dist/client/assets/{shell-controls-C9tE75mS.js → shell-controls-DU_OnqdT.js} +1 -1
- package/dist/client/assets/{shell-layout-gi6XYvgE.js → shell-layout-CDjO22II.js} +1 -1
- package/dist/client/assets/{shell-route-loading-Agan4lHM.js → shell-route-loading-CqrB-PeS.js} +1 -1
- package/dist/client/assets/{sidebar-BD77ZDQ1.js → sidebar-s0ed1fkY.js} +1 -1
- package/dist/client/assets/{skeleton-CuVDGSZE.js → skeleton-C_Ikhywu.js} +1 -1
- package/dist/client/assets/{sortable.esm-DpWg8tde.js → sortable.esm-7lIk8nOy.js} +1 -1
- package/dist/client/assets/{sso-B9XBpXX9.js → sso-CoJgF1-W.js} +1 -1
- package/dist/client/assets/{store-Il1Qjdpz.js → store-BPq7Nqia.js} +1 -1
- package/dist/client/assets/store-registry-BnNC38bf.js +2 -0
- package/dist/client/assets/{studio-tools-C-Eel15b.js → studio-tools-HEHEmVw-.js} +1 -1
- package/dist/client/assets/{switch-DWXEjjcR.js → switch-D5rba96V.js} +1 -1
- package/dist/client/assets/{table-sXVKQ5vt.js → table-62RfQr_D.js} +1 -1
- package/dist/client/assets/{tabs-BeXAqCdo.js → tabs-oM87nUQU.js} +1 -1
- package/dist/client/assets/{task-status-CaQuE65s.js → task-status-CeaMIgEp.js} +1 -1
- package/dist/client/assets/{textarea-C30KYfio.js → textarea-CVXNf-WA.js} +1 -1
- package/dist/client/assets/{toggle-group-B6oTaI1f.js → toggle-group-BKEhvkzp.js} +1 -1
- package/dist/client/assets/{toolbar-DuZrnshW.js → toolbar-BupXX3L-.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CG8gWMNZ.js → toolbar-icon-button-SISLmn3t.js} +1 -1
- package/dist/client/assets/{tools-list-BSe55AC9.js → tools-list-DUfNx_di.js} +1 -1
- package/dist/client/assets/{tooltip-BRQCINXK.js → tooltip-Bmj8PlAJ.js} +1 -1
- package/dist/client/assets/{types-ywta9rZ4.js → types-Op5a7f4H.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CpUPA2Pj.js → use-ai-providers-la4AIHaF.js} +1 -1
- package/dist/client/assets/{use-automations-BSn8_z4p.js → use-automations-DEaRUIlF.js} +1 -1
- package/dist/client/assets/{use-capability-AkUZCu97.js → use-capability-BHX3IXJ3.js} +1 -1
- package/dist/client/assets/{use-clock-tick-7J301cSN.js → use-clock-tick-CFuWOCEr.js} +1 -1
- package/dist/client/assets/{use-collections-BhzLncHB.js → use-collections-CrBZtgZk.js} +1 -1
- package/dist/client/assets/{use-connection-CSQdDXlG.js → use-connection-DKlrZD28.js} +1 -1
- package/dist/client/assets/{use-copy-3aLRhzTZ.js → use-copy-Bh4dFYsC.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ClyuqzV0.js → use-create-virtual-mcp-C3Y4h4CF.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DwyO4Yri.js → use-debounced-autosave-Ygvicrk8.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BGsbVLHA.js → use-debounced-value-2_5DMhS6.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B8-U5_6h.js → use-decopilot-events-CVwOiMhy.js} +1 -1
- package/dist/client/assets/{use-delete-connection-yP5RphYi.js → use-delete-connection-CTv7SwDX.js} +1 -1
- package/dist/client/assets/{use-file-configs-XF2AvMPs.js → use-file-configs-D21Ck6kN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CkXtceVR.js → use-infinite-scroll-DuPlVcYm.js} +1 -1
- package/dist/client/assets/{use-join-requests-mfteqXVe.js → use-join-requests-CZlC6_lG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CRWIqSWI.js → use-mcp-client-CWJJ80Qb.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BV9cBymv.js → use-mcp-prompts-C9VlrieU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dgj65Z69.js → use-mcp-tools-CXfsDocs.js} +1 -1
- package/dist/client/assets/{use-members-BZOJ4ncQ.js → use-members-BUflZqKM.js} +1 -1
- package/dist/client/assets/{use-mobile-DgvzRDzB.js → use-mobile-Cg20Hyt3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DTqeD3lq.js → use-navigate-to-agent-Vbfee0Zl.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Dx974y4u.js → use-org-auth-client-C_5ald3U.js} +1 -1
- package/dist/client/assets/{use-org-fs-DI1Q1Ycz.js → use-org-fs-BwJ8cmxH.js} +1 -1
- package/dist/client/assets/{use-org-sso-kfQLtl8D.js → use-org-sso-BSFJGRQT.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B2GmBYYT.js → use-organization-roles-DChXn0D6.js} +1 -1
- package/dist/client/assets/{use-organization-settings-ClL7mSbK.js → use-organization-settings-DJVuBTtS.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DzyhBLO8.js → use-registry-connections-M3aYVWwj.js} +1 -1
- package/dist/client/assets/{use-secrets-BX0N_3N-.js → use-secrets-BJQohwUW.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BsVH7G2F.js → use-status-sounds-CGe3HaCo.js} +1 -1
- package/dist/client/assets/{use-view-mode-D4v-Vh_n.js → use-view-mode-DGxdFIYR.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-7AWl-thI.js → use-virtual-mcp-CHZDkVtB.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-yG_KEAOQ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CnJ1E1GC.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-D4Gfj0Tf.js → useSuspenseQueries-DmSeACIV.js} +1 -1
- package/dist/client/assets/{variant-calendar-C9mxKuI5.js → variant-calendar-Cunl_q8R.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dcs21C2T.js → view-mode-toggle-468Aaag6.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-D1Z6hzyV.js +0 -1
- package/dist/client/assets/project-app-view-Bk8oTYIF.js +0 -1
- package/dist/client/assets/record-editor-DL8IQ3xy.js +0 -1
- package/dist/client/assets/registry-Bd0JPSYO.js +0 -2
- package/dist/client/assets/store-registry-BN4Ygwm2.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DbI8AV-k.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DT-JxV4F.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as k,aM as ys,c as R,l as ae,j as s,J as ws,i as js,B as Y,K as se,k as me,ac as yn,D as Ve,m as Ft,t as ce,ae as ks,G as Ss,e as zs,b as wn,u as jn,E as $t}from"./index-CXy6rN6i.js";import{i as Ns}from"./ChevronRight-BswIt99A.js";import{a as Cs,s as kn}from"./Eye-Dn1AISrx.js";import{n as qe,i as pt}from"./Globe01-CcXDI4W7.js";import{b as $s,c as Ps,e as Es,i as Ds,f as Sn,a as _t,g as Ts,h as Ms,d as Os}from"./ZoomOut-C0bVPfpC.js";import{a as ct}from"./Palette-CnoObDqZ.js";import{s as As}from"./Plus-DDlkoJBs.js";import{i as Rs}from"./SearchLg-CdT_y89m.js";import{t as Is}from"./Stars01-BIVPeWqS.js";import{i as dt}from"./Upload01-DB9meUjO.js";import{s as zn}from"./XClose-BpreRuFP.js";import{i as Ut}from"./Zap-CWxLsQ6b.js";import{u as Nn}from"./use-mobile-DgvzRDzB.js";import{f as Ls,a as Fs,b as _s,c as Us,d as Bs,e as Hs,A as qs,g as Ws}from"./alert-dialog-DMWXmTGp.js";import{c as Cn,a as Le,d as Xe,e as Qe,f as $n,b as Ks,D as Gs}from"./dialog-o7scRbG9.js";import{I as We}from"./input-BlhkemhH.js";import{S as oe}from"./skeleton-CuVDGSZE.js";import{F as we,M as Bt,d as Pn}from"./file-type-icon-LHBbJJTG.js";import{T as Vs}from"./toolbar-DuZrnshW.js";import{u as Xs}from"./use-debounced-value-BGsbVLHA.js";import{i as En,f as Dn,j as Qs,d as Tn,e as Ys,a as Ye,u as At,k as Ht,l as Zs,b as Js,m as Mn,n as el}from"./use-org-fs-DI1Q1Ycz.js";import{i as xt}from"./DotsVertical-DSosYpI1.js";import{i as On}from"./Key01-F6-x7vNY.js";import{s as gt}from"./Trash01-Cc007jho.js";import{D as Ze,a as Je,b as et,c as pe}from"./dropdown-menu-D-VNET4I.js";import{T as tl}from"./textarea-C30KYfio.js";import{t as nl}from"./ChevronDown-DGuR7uUZ.js";import{i as sl,n as ll}from"./ChevronUp-DSdWQUoR.js";import{i as ut}from"./X-_dGiBqSn.js";import{a as rl,P as il,b as ol}from"./popover-SD8gnUXm.js";import{T as xe,a as ge,b as be}from"./tooltip-BRQCINXK.js";import{n as An}from"./LinkExternal01-DOU6-C1w.js";import{l as al,F as cl}from"./index-DCwPnlYH.js";import{i as dl}from"./LayoutLeft-DpqtgcH3.js";const bt=k.createContext(null);bt.displayName="PanelGroupContext";const ne={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"},qt=10,Ee=k.useLayoutEffect,en=ys.useId,ul=typeof en=="function"?en:()=>null;let fl=0;function Wt(t=null){const e=ul(),n=k.useRef(t||e||null);return n.current===null&&(n.current=""+fl++),t??n.current}function Rn({children:t,className:e="",collapsedSize:n,collapsible:l,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:m,style:h,tagName:p="div",...g}){const y=k.useContext(bt);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:b,getPanelSize:j,getPanelStyle:z,groupId:N,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:O,unregisterPanel:T}=y,v=Wt(o),$=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:n,collapsible:l,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:m});k.useRef({didLogMissingDefaultSizeWarning:!1}),Ee(()=>{const{callbacks:F,constraints:_}=$.current,B={..._};$.current.id=v,$.current.idIsFromProps=o!==void 0,$.current.order=m,F.onCollapse=d,F.onExpand=f,F.onResize=u,_.collapsedSize=n,_.collapsible=l,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w($.current,B)}),Ee(()=>{const F=$.current;return M(F),()=>{T(F)}},[m,v,M,T]),k.useImperativeHandle(i,()=>({collapse:()=>{x($.current)},expand:F=>{b($.current,F)},getId(){return v},getSize(){return j($.current)},isCollapsed(){return C($.current)},isExpanded(){return!C($.current)},resize:F=>{O($.current,F)}}),[x,b,j,C,v,O]);const K=z($.current,r);return k.createElement(p,{...g,children:t,className:e,id:v,style:{...K,...h},[ne.groupId]:N,[ne.panel]:"",[ne.panelCollapsible]:l||void 0,[ne.panelId]:v,[ne.panelSize]:parseFloat(""+K.flexGrow).toFixed(1)})}const In=k.forwardRef((t,e)=>k.createElement(Rn,{...t,forwardedRef:e}));Rn.displayName="Panel";In.displayName="forwardRef(Panel)";let Rt=null,at=-1,Se=null;function ml(t,e){if(e){const n=(e&Bn)!==0,l=(e&Hn)!==0,r=(e&qn)!==0,i=(e&Wn)!==0;if(n)return r?"se-resize":i?"ne-resize":"e-resize";if(l)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hl(){Se!==null&&(document.head.removeChild(Se),Rt=null,Se=null,at=-1)}function Pt(t,e){var n,l;const r=ml(t,e);if(Rt!==r){if(Rt=r,Se===null&&(Se=document.createElement("style"),document.head.appendChild(Se)),at>=0){var i;(i=Se.sheet)===null||i===void 0||i.removeRule(at)}at=(n=(l=Se.sheet)===null||l===void 0?void 0:l.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function Ln(t){return t.type==="keydown"}function Fn(t){return t.type.startsWith("pointer")}function _n(t){return t.type.startsWith("mouse")}function vt(t){if(Fn(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(_n(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pl(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function xl(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function gl(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:sn(t),b:sn(e)};let l;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),l=t;V(l,"Stacking order can only be calculated for elements with a common ancestor");const r={a:nn(tn(n.a)),b:nn(tn(n.b))};if(r.a===r.b){const i=l.childNodes,o={a:n.a.at(-1),b:n.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(r.a-r.b)}const bl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vl(t){var e;const n=getComputedStyle((e=Un(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function yl(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||vl(t))||+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"||bl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function tn(t){let e=t.length;for(;e--;){const n=t[e];if(V(n,"Missing node"),yl(n))return n}return null}function nn(t){return t&&Number(getComputedStyle(t).zIndex)||0}function sn(t){const e=[];for(;t;)e.push(t),t=Un(t);return e}function Un(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Bn=1,Hn=2,qn=4,Wn=8,wl=pl()==="coarse";let fe=[],Ie=!1,Pe=new Map,yt=new Map;const Ke=new Set;function jl(t,e,n,l,r){var i;const{ownerDocument:o}=e,a={direction:n,element:e,hitAreaMargins:l,setResizeHandlerState:r},c=(i=Pe.get(o))!==null&&i!==void 0?i:0;return Pe.set(o,c+1),Ke.add(a),ft(),function(){var f;yt.delete(t),Ke.delete(a);const u=(f=Pe.get(o))!==null&&f!==void 0?f:1;if(Pe.set(o,u-1),ft(),u===1&&Pe.delete(o),fe.includes(a)){const m=fe.indexOf(a);m>=0&&fe.splice(m,1),Gt(),r("up",!0,null)}}}function kl(t){const{target:e}=t,{x:n,y:l}=vt(t);Ie=!0,Kt({target:e,x:n,y:l}),ft(),fe.length>0&&(mt("down",t),t.preventDefault(),Kn(e)||t.stopImmediatePropagation())}function Et(t){const{x:e,y:n}=vt(t);if(Ie&&t.buttons===0&&(Ie=!1,mt("up",t)),!Ie){const{target:l}=t;Kt({target:l,x:e,y:n})}mt("move",t),Gt(),fe.length>0&&t.preventDefault()}function Dt(t){const{target:e}=t,{x:n,y:l}=vt(t);yt.clear(),Ie=!1,fe.length>0&&(t.preventDefault(),Kn(e)||t.stopImmediatePropagation()),mt("up",t),Kt({target:e,x:n,y:l}),Gt(),ft()}function Kn(t){let e=t;for(;e;){if(e.hasAttribute(ne.resizeHandle))return!0;e=e.parentElement}return!1}function Kt({target:t,x:e,y:n}){fe.splice(0);let l=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(l=t),Ke.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,m=wl?o.coarse:o.fine;if(e>=d-m&&e<=f+m&&n>=u-m&&n<=c+m){if(l!==null&&document.contains(l)&&i!==l&&!i.contains(l)&&!l.contains(i)&&gl(l,i)>0){let p=l,g=!1;for(;p&&!p.contains(i);){if(xl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}fe.push(r)}})}function Tt(t,e){yt.set(t,e)}function Gt(){let t=!1,e=!1;fe.forEach(l=>{const{direction:r}=l;r==="horizontal"?t=!0:e=!0});let n=0;yt.forEach(l=>{n|=l}),t&&e?Pt("intersection",n):t?Pt("horizontal",n):e?Pt("vertical",n):hl()}let Mt=new AbortController;function ft(){Mt.abort(),Mt=new AbortController;const t={capture:!0,signal:Mt.signal};Ke.size&&(Ie?(fe.length>0&&Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("contextmenu",Dt,t),l.addEventListener("pointerleave",Et,t),l.addEventListener("pointermove",Et,t))}),window.addEventListener("pointerup",Dt,t),window.addEventListener("pointercancel",Dt,t)):Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("pointerdown",kl,t),l.addEventListener("pointermove",Et,t))}))}function mt(t,e){Ke.forEach(n=>{const{setResizeHandlerState:l}=n,r=fe.includes(n);l(t,r,e)})}function Sl(){const[t,e]=k.useState(0);return k.useCallback(()=>e(n=>n+1),[])}function V(t,e){if(!t)throw console.error(e),Error(e)}function De(t,e,n=qt){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ve(t,e,n=qt){return De(t,e,n)===0}function ue(t,e,n){return De(t,e,n)===0}function zl(t,e,n){if(t.length!==e.length)return!1;for(let l=0;l<t.length;l++){const r=t[l],i=e[l];if(!ue(r,i,n))return!1}return!0}function Re({panelConstraints:t,panelIndex:e,size:n}){const l=t[e];V(l!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=l;if(De(n,a)<0)if(i){const c=(r+a)/2;De(n,c)<0?n=r:n=a}else n=a;return n=Math.min(o,n),n=parseFloat(n.toFixed(qt)),n}function _e({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:l,prevLayout:r,trigger:i}){if(ue(t,0))return e;const o=[...e],[a,c]=l;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:a,m=n[u];V(m,`Panel constraints not found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,h)){const x=g-y;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}{const u=t<0?a:c,m=n[u];V(m,`No panel constraints found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,g)){const x=y-h;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}}{const u=t<0?1:-1;let m=t<0?c:a,h=0;for(;;){const g=e[m];V(g!=null,`Previous layout not found for panel index ${m}`);const x=Re({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=x,m+=u,m<0||m>=n.length)break}const p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let m=t<0?a:c;for(;m>=0&&m<n.length;){const h=Math.abs(t)-Math.abs(d),p=e[m];V(p!=null,`Previous layout not found for panel index ${m}`);const g=p-h,y=Re({panelConstraints:n,panelIndex:m,size:g});if(!ue(p,y)&&(d+=p-y,o[m]=y,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?m--:m++}}if(zl(r,o))return r;{const u=t<0?c:a,m=e[u];V(m!=null,`Previous layout not found for panel index ${u}`);const h=m+d,p=Re({panelConstraints:n,panelIndex:u,size:h});if(o[u]=p,!ue(p,h)){let g=h-p,x=t<0?c:a;for(;x>=0&&x<n.length;){const b=o[x];V(b!=null,`Previous layout not found for panel index ${x}`);const j=b+g,z=Re({panelConstraints:n,panelIndex:x,size:j});if(ue(b,z)||(g-=z-b,o[x]=z),ue(g,0))break;t>0?x--:x++}}}const f=o.reduce((u,m)=>m+u,0);return ue(f,100)?o:r}function Nl({layout:t,panelsArray:e,pivotIndices:n}){let l=0,r=100,i=0,o=0;const a=n[0];V(a!=null,"No pivot index found"),e.forEach((u,m)=>{const{constraints:h}=u,{maxSize:p=100,minSize:g=0}=h;m===a?(l=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(l,100-o),f=t[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ge(t,e=document){return Array.from(e.querySelectorAll(`[${ne.resizeHandleId}][data-panel-group-id="${t}"]`))}function Gn(t,e,n=document){const r=Ge(t,n).findIndex(i=>i.getAttribute(ne.resizeHandleId)===e);return r??null}function Vn(t,e,n){const l=Gn(t,e,n);return l!=null?[l,l+1]:[-1,-1]}function Xn(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const l=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return l||null}function wt(t,e=document){const n=e.querySelector(`[${ne.resizeHandleId}="${t}"]`);return n||null}function Cl(t,e,n,l=document){var r,i,o,a;const c=wt(e,l),d=Ge(t,l),f=c?d.indexOf(c):-1,u=(r=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,m=(o=(a=n[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,m]}function $l({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:l,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Ee(()=>{if(!i)return;const a=Ge(n,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Nl({layout:l,panelsArray:r,pivotIndices:[c,c+1]}),m=a[c];if(m!=null){const h=r[c];V(h,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(d)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.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")})}},[n,l,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Xn(n,i);V(d!=null,`No group found for id "${n}"`);const f=Ge(n,i);V(f,`No resize handles found for group id "${n}"`);const u=f.map(m=>{const h=m.getAttribute(ne.resizeHandleId);V(h,"Resize handle element has no handle id attribute");const[p,g]=Cl(n,h,c,i);if(p==null||g==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const b=c.findIndex(j=>j.id===p);if(b>=0){const j=c[b];V(j,`No panel data found for index ${b}`);const z=l[b],{collapsedSize:N=0,collapsible:C,minSize:w=0}=j.constraints;if(z!=null&&C){const M=_e({delta:ue(z,N)?w-N:N-z,initialLayout:l,panelConstraints:c.map(O=>O.constraints),pivotIndices:Vn(n,h,i),prevLayout:l,trigger:"keyboard"});l!==M&&o(M)}}break}}};return m.addEventListener("keydown",y),()=>{m.removeEventListener("keydown",y)}});return()=>{u.forEach(m=>m())}},[i,t,e,n,l,r,o])}function ln(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Qn(t,e){const n=t==="horizontal",{x:l,y:r}=vt(e);return n?l:r}function Pl(t,e,n,l,r){const i=n==="horizontal",o=wt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(ne.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=l;const d=Qn(n,t),f=Xn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),m=i?u.width:u.height;return(d-c)/m*100}function El(t,e,n,l,r,i){if(Ln(t)){const o=n==="horizontal";let a=0;t.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(t.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 l==null?0:Pl(t,e,n,l,i)}function Dl({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let l=0,r=100;for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(l++,e[i]=a,r-=a)}for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=t.length-l,d=r/c;l++,e[i]=d,r-=d}return e}function Te(t,e,n){e.forEach((l,r)=>{const i=t[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=n[c];if(u==null||l!==u){n[c]=l;const{onCollapse:m,onExpand:h,onResize:p}=o;p&&p(l,u),f&&(m||h)&&(h&&(u==null||ve(u,d))&&!ve(l,d)&&h(),m&&(u==null||!ve(u,d))&&ve(l,d)&&m())}})}function ot(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tl({defaultSize:t,dragState:e,layout:n,panelData:l,panelIndex:r,precision:i=3}){const o=n[r];let a;return o==null?a=t!=null?t.toPrecision(i):"1":l.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Ml(t,e=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}function rn(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Yn(t){return`react-resizable-panels:${t}`}function Zn(t){return t.map(e=>{const{constraints:n,id:l,idIsFromProps:r,order:i}=e;return r?l:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Jn(t,e){try{const n=Yn(t),l=e.getItem(n);if(l){const r=JSON.parse(l);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Ol(t,e,n){var l,r;const i=(l=Jn(t,n))!==null&&l!==void 0?l:{},o=Zn(e);return(r=i[o])!==null&&r!==void 0?r:null}function Al(t,e,n,l,r){var i;const o=Yn(t),a=Zn(e),c=(i=Jn(t,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(n.entries()),layout:l};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function on({layout:t,panelConstraints:e}){const n=[...t],l=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ue(l,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=100/l*o;n[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=Re({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,n[i]=a)}if(!ue(r,0))for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Re({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,n[i]=c,ue(r,0)))break}return n}const Rl=100,Ue={getItem:t=>(rn(Ue),Ue.getItem(t)),setItem:(t,e)=>{rn(Ue),Ue.setItem(t,e)}},an={};function es({autoSaveId:t=null,children:e,className:n="",direction:l,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ue,style:d,tagName:f="div",...u}){const m=Wt(i),h=k.useRef(null),[p,g]=k.useState(null),[y,x]=k.useState([]),b=Sl(),j=k.useRef({}),z=k.useRef(new Map),N=k.useRef(0),C=k.useRef({autoSaveId:t,direction:l,dragState:p,id:m,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:y,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current,D=on({layout:S,panelConstraints:U.map(H=>H.constraints)});ln(L,D)||(x(D),w.current.layout=D,I&&I(D),Te(U,D,j.current))}}),[]),Ee(()=>{C.current.autoSaveId=t,C.current.direction=l,C.current.dragState=p,C.current.id=m,C.current.onLayout=o,C.current.storage=c}),$l({committedValuesRef:C,eagerValuesRef:w,groupId:m,layout:y,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:h.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(t){if(y.length===0||y.length!==S.length)return;let I=an[t];I==null&&(I=Ml(Al,Rl),an[t]=I);const L=[...S],U=new Map(z.current);I(t,L,U,y,c)}},[t,y,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current;if(S.constraints.collapsible){const D=U.map(de=>de.constraints),{collapsedSize:H=0,panelSize:Q,pivotIndices:ee}=$e(U,S,L);if(V(Q!=null,`Panel size not found for panel "${S.id}"`),!ve(Q,H)){z.current.set(S.id,Q);const P=Oe(U,S)===U.length-1?Q-H:H-Q,X=_e({delta:P,initialLayout:L,panelConstraints:D,pivotIndices:ee,prevLayout:L,trigger:"imperative-api"});ot(L,X)||(x(X),w.current.layout=X,I&&I(X),Te(U,X,j.current))}}},[]),O=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current;if(S.constraints.collapsible){const H=D.map(te=>te.constraints),{collapsedSize:Q=0,panelSize:ee=0,minSize:de=0,pivotIndices:P}=$e(D,S,U),X=I??de;if(ve(ee,Q)){const te=z.current.get(S.id),he=te!=null&&te>=X?te:X,Ne=Oe(D,S)===D.length-1?ee-he:he-ee,ie=_e({delta:Ne,initialLayout:U,panelConstraints:H,pivotIndices:P,prevLayout:U,trigger:"imperative-api"});ot(U,ie)||(x(ie),w.current.layout=ie,L&&L(ie),Te(D,ie,j.current))}}},[]),T=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{panelSize:U}=$e(L,S,I);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,I)=>{const{panelDataArray:L}=w.current,U=Oe(L,S);return Tl({defaultSize:I,dragState:p,layout:y,panelData:L,panelIndex:U})},[p,y]),$=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),D===!0&&ve(H,U)},[]),K=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),!D||De(H,U)>0},[]),F=k.useCallback(S=>{const{panelDataArray:I}=w.current;I.push(S),I.sort((L,U)=>{const D=L.order,H=U.order;return D==null&&H==null?0:D==null?-1:H==null?1:D-H}),w.current.panelDataArrayChanged=!0,b()},[b]);Ee(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:I,storage:L}=C.current,{layout:U,panelDataArray:D}=w.current;let H=null;if(S){const ee=Ol(S,D,L);ee&&(z.current=new Map(Object.entries(ee.expandToSizes)),H=ee.layout)}H==null&&(H=Dl({panelDataArray:D}));const Q=on({layout:H,panelConstraints:D.map(ee=>ee.constraints)});ln(U,Q)||(x(Q),w.current.layout=Q,I&&I(Q),Te(D,Q,j.current))}}),Ee(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let I=!1;const L=h.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(D){D.preventDefault();const H=h.current;if(!H)return()=>null;const{direction:Q,dragState:ee,id:de,keyboardResizeBy:P,onLayout:X}=C.current,{layout:te,panelDataArray:he}=w.current,{initialLayout:je}=ee??{},Ne=Vn(de,S,H);let ie=El(D,S,Q,ee,P,H);const lt=Q==="horizontal";lt&&I&&(ie=-ie);const Nt=he.map(Ct=>Ct.constraints),Ce=_e({delta:ie,initialLayout:je??te,panelConstraints:Nt,pivotIndices:Ne,prevLayout:te,trigger:Ln(D)?"keyboard":"mouse-or-touch"}),rt=!ot(te,Ce);(Fn(D)||_n(D))&&N.current!=ie&&(N.current=ie,!rt&&ie!==0?lt?Tt(S,ie<0?Bn:Hn):Tt(S,ie<0?qn:Wn):Tt(S,0)),rt&&(x(Ce),w.current.layout=Ce,X&&X(Ce),Te(he,Ce,j.current))}},[]),B=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current,H=D.map(te=>te.constraints),{panelSize:Q,pivotIndices:ee}=$e(D,S,U);V(Q!=null,`Panel size not found for panel "${S.id}"`);const P=Oe(D,S)===D.length-1?Q-I:I-Q,X=_e({delta:P,initialLayout:U,panelConstraints:H,pivotIndices:ee,prevLayout:U,trigger:"imperative-api"});ot(U,X)||(x(X),w.current.layout=X,L&&L(X),Te(D,X,j.current))},[]),G=k.useCallback((S,I)=>{const{layout:L,panelDataArray:U}=w.current,{collapsedSize:D=0,collapsible:H}=I,{collapsedSize:Q=0,collapsible:ee,maxSize:de=100,minSize:P=0}=S.constraints,{panelSize:X}=$e(U,S,L);X!=null&&(H&&ee&&ve(X,D)?ve(D,Q)||B(S,Q):X<P?B(S,P):X>de&&B(S,de))},[B]),q=k.useCallback((S,I)=>{const{direction:L}=C.current,{layout:U}=w.current;if(!h.current)return;const D=wt(S,h.current);V(D,`Drag handle element not found for id "${S}"`);const H=Qn(L,I);g({dragHandleId:S,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),J=k.useCallback(()=>{g(null)},[]),Z=k.useCallback(S=>{const{panelDataArray:I}=w.current,L=Oe(I,S);L>=0&&(I.splice(L,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,b())},[b]),A=k.useMemo(()=>({collapsePanel:M,direction:l,dragState:p,expandPanel:O,getPanelSize:T,getPanelStyle:v,groupId:m,isPanelCollapsed:$,isPanelExpanded:K,reevaluatePanelConstraints:G,registerPanel:F,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:J,unregisterPanel:Z,panelGroupElement:h.current}),[M,p,l,O,T,v,m,$,K,G,F,_,B,q,J,Z]),W={display:"flex",flexDirection:l==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(bt.Provider,{value:A},k.createElement(f,{...u,children:e,className:n,id:i,ref:h,style:{...W,...d},[ne.group]:"",[ne.groupDirection]:l,[ne.groupId]:m}))}const ts=k.forwardRef((t,e)=>k.createElement(es,{...t,forwardedRef:e}));es.displayName="PanelGroup";ts.displayName="forwardRef(PanelGroup)";function Oe(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function $e(t,e,n){const l=Oe(t,e),i=l===t.length-1?[l-1,l]:[l,l+1],o=n[l];return{...e.constraints,panelSize:o,pivotIndices:i}}function Il({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:l}){k.useEffect(()=>{if(t||n==null||l==null)return;const r=wt(e,l);if(r==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(),n(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(ne.groupId);V(a,`No group element found for id "${a}"`);const c=Ge(a,l),d=Gn(a,e,l);V(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 r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[l,t,e,n])}function ns({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:l,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:m=0,tagName:h="div",...p}){var g,y;const x=k.useRef(null),b=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{b.current.onClick=o,b.current.onDragging=a,b.current.onPointerDown=d,b.current.onPointerUp=f});const j=k.useContext(bt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:N,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:O}=j,T=Wt(r),[v,$]=k.useState("inactive"),[K,F]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Ee(()=>{G.current.state=v}),k.useEffect(()=>{if(n)B(null);else{const A=C(T);B(()=>A)}},[n,T,C]);const q=(g=l?.coarse)!==null&&g!==void 0?g:15,J=(y=l?.fine)!==null&&y!==void 0?y:5;k.useEffect(()=>{if(n||_==null)return;const A=x.current;V(A,"Element ref not attached");let W=!1;return jl(T,A,z,{coarse:q,fine:J},(I,L,U)=>{if(!L){$("inactive");return}switch(I){case"down":{$("drag"),W=!1,V(U,'Expected event to be defined for "down" action'),w(T,U);const{onDragging:D,onPointerDown:H}=b.current;D?.(!0),H?.();break}case"move":{const{state:D}=G.current;W=!0,D!=="drag"&&$("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{$("hover"),M();const{onClick:D,onDragging:H,onPointerUp:Q}=b.current;H?.(!1),Q?.(),W||D?.();break}}})},[q,z,n,J,C,T,_,w,M]),Il({disabled:n,handleId:T,resizeHandler:_,panelGroupElement:O});const Z={touchAction:"none",userSelect:"none"};return k.createElement(h,{...p,children:t,className:e,id:r,onBlur:()=>{F(!1),i?.()},onFocus:()=>{F(!0),c?.()},ref:x,role:"separator",style:{...Z,...u},tabIndex:m,[ne.groupDirection]:z,[ne.groupId]:N,[ne.resizeHandle]:"",[ne.resizeHandleActive]:v==="drag"?"pointer":K?"keyboard":void 0,[ne.resizeHandleEnabled]:!n,[ne.resizeHandleId]:T,[ne.resizeHandleState]:v})}ns.displayName="PanelResizeHandle";function Ll(t){const e=R.c(10);let n,l,r;e[0]!==t?({className:n,ref:r,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==r||e[8]!==i?(o=s.jsx(ts,{ref:r,"data-slot":"resizable-panel-group",className:i,...l}),e[6]=l,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function cn(t){const e=R.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let l;return e[2]!==n?(l=s.jsx(In,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=l):l=e[3],l}function Fl(t){const e=R.c(12);let n,l,r;e[0]!==t?({withHandle:r,className:n,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("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",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&s.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:s.jsx($s,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==l||e[9]!==i||e[10]!==o?(a=s.jsx(ns,{"data-slot":"resizable-handle",className:i,...l,children:o}),e[8]=l,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function _l(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function Ul(t){if(_l(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function Bl(t){try{return decodeURIComponent(t)}catch{return t}}function Hl(t){return Ul(t),encodeURIComponent(t)}function ql(t){return`.deco/blocks/${Hl(t)}.json`}function bo(t){return`/${ql(t)}`}const vo=1e4,Wl=3;function It(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function Vt(t){return t.startsWith("/")?t.slice(1):t}function ht(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function Kl(t){const e=ht(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function yo(t,e){const n=e.replace(/^\/+|\/+$/g,"");return ht(n?`${t==="/"?"":t}/${n}`:t)}function wo(t,e){return e==="directory"?t:Kl(t)}function jo(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function Gl(t){const e=Vt(t);return e?e.split("/").filter(Boolean).length:0}function ko(t,e,n,l=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:l||!!n.truncated}}function So(t,e){return Gl(t)>=Wl&&!e.has(t)}function zo(t,e,n=[]){const l=Vt(t);if(e.includes(l)||n.includes(l))return!0;if(!l)return!1;const r=`${l}/`;return e.some(i=>i.startsWith(r))||n.some(i=>i.startsWith(r))}function No(t){const e=Vt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const l=e.slice(n.length,-5);return Bl(l)}function Vl(t){if(!t)return"plaintext";const e=t.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"}function Co(t){const e=It(t).split("/").filter(Boolean),n=["/"];let l="";for(const r of e.slice(0,-1))l+=`/${r}`,n.push(l);return n}function $o(t,e=[]){const n={children:[]},l=i=>{const a=It(i).split("/").filter(Boolean);let c=n,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(m=>m.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const a=It(i).split("/").filter(Boolean);let c=n,d="";a.forEach((f,u)=>{d+=`/${f}`;const m=u===a.length-1;let h=c.children.find(p=>p.name===f);h||(h={name:f,path:d,kind:m?"file":"directory",children:[]},c.children.push(h)),c=h})}for(const i of e)l(ht(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(n.children),n.children}function Xl(t,e,n=0){const l=[];for(const r of t)r.name!==".gitkeep"&&(l.push({node:r,depth:n}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&l.push(...Xl(r.children,e,n+1)));return l}function Po(t){return t.split(`
|
|
1
|
+
import{r as k,aM as ys,c as R,l as ae,j as s,J as ws,i as js,B as Y,K as se,k as me,ac as yn,D as Ve,m as Ft,t as ce,ae as ks,G as Ss,e as zs,b as wn,u as jn,E as $t}from"./index-CcSfK5lN.js";import{i as Ns}from"./ChevronRight-DCf9L0Ls.js";import{a as Cs,s as kn}from"./Eye-fTf2jKhH.js";import{n as qe,i as pt}from"./Globe01-DYSo0Sr2.js";import{b as $s,c as Ps,e as Es,i as Ds,f as Sn,a as _t,g as Ts,h as Ms,d as Os}from"./ZoomOut-sMdcQ1z1.js";import{a as ct}from"./Palette-Dok2NINN.js";import{s as As}from"./Plus-B6q1KrRb.js";import{i as Rs}from"./SearchLg-ZiEk0E-L.js";import{t as Is}from"./Stars01-DlOkHfPH.js";import{i as dt}from"./Upload01-Cxp7zIDh.js";import{s as zn}from"./XClose-Dpj0HG8O.js";import{i as Ut}from"./Zap-3WgTvh1l.js";import{u as Nn}from"./use-mobile-Cg20Hyt3.js";import{f as Ls,a as Fs,b as _s,c as Us,d as Bs,e as Hs,A as qs,g as Ws}from"./alert-dialog-BS58YIPS.js";import{c as Cn,a as Le,d as Xe,e as Qe,f as $n,b as Ks,D as Gs}from"./dialog-dc-6JiKe.js";import{I as We}from"./input-DP5SZ5ZB.js";import{S as oe}from"./skeleton-C_Ikhywu.js";import{F as we,M as Bt,d as Pn}from"./file-type-icon-CU03wRXW.js";import{T as Vs}from"./toolbar-BupXX3L-.js";import{u as Xs}from"./use-debounced-value-2_5DMhS6.js";import{i as En,f as Dn,j as Qs,d as Tn,e as Ys,a as Ye,u as At,k as Ht,l as Zs,b as Js,m as Mn,n as el}from"./use-org-fs-BwJ8cmxH.js";import{i as xt}from"./DotsVertical-fVEXRB26.js";import{i as On}from"./Key01-DV-6LIf3.js";import{s as gt}from"./Trash01-xnv05M2J.js";import{D as Ze,a as Je,b as et,c as pe}from"./dropdown-menu-DxGNuqoA.js";import{T as tl}from"./textarea-CVXNf-WA.js";import{t as nl}from"./ChevronDown-Ee_3Sayw.js";import{i as sl,n as ll}from"./ChevronUp-CGE39voI.js";import{i as ut}from"./X-DJbyjHqp.js";import{a as rl,P as il,b as ol}from"./popover-B5x5gTCp.js";import{T as xe,a as ge,b as be}from"./tooltip-Bmj8PlAJ.js";import{n as An}from"./LinkExternal01-CALVZhat.js";import{l as al,F as cl}from"./index-R31BplOc.js";import{i as dl}from"./LayoutLeft-BtE5tmf6.js";const bt=k.createContext(null);bt.displayName="PanelGroupContext";const ne={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"},qt=10,Ee=k.useLayoutEffect,en=ys.useId,ul=typeof en=="function"?en:()=>null;let fl=0;function Wt(t=null){const e=ul(),n=k.useRef(t||e||null);return n.current===null&&(n.current=""+fl++),t??n.current}function Rn({children:t,className:e="",collapsedSize:n,collapsible:l,defaultSize:r,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:m,style:h,tagName:p="div",...g}){const y=k.useContext(bt);if(y===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:b,getPanelSize:j,getPanelStyle:z,groupId:N,isPanelCollapsed:C,reevaluatePanelConstraints:w,registerPanel:M,resizePanel:O,unregisterPanel:T}=y,v=Wt(o),$=k.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:n,collapsible:l,defaultSize:r,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:m});k.useRef({didLogMissingDefaultSizeWarning:!1}),Ee(()=>{const{callbacks:F,constraints:_}=$.current,B={..._};$.current.id=v,$.current.idIsFromProps=o!==void 0,$.current.order=m,F.onCollapse=d,F.onExpand=f,F.onResize=u,_.collapsedSize=n,_.collapsible=l,_.defaultSize=r,_.maxSize=a,_.minSize=c,(B.collapsedSize!==_.collapsedSize||B.collapsible!==_.collapsible||B.maxSize!==_.maxSize||B.minSize!==_.minSize)&&w($.current,B)}),Ee(()=>{const F=$.current;return M(F),()=>{T(F)}},[m,v,M,T]),k.useImperativeHandle(i,()=>({collapse:()=>{x($.current)},expand:F=>{b($.current,F)},getId(){return v},getSize(){return j($.current)},isCollapsed(){return C($.current)},isExpanded(){return!C($.current)},resize:F=>{O($.current,F)}}),[x,b,j,C,v,O]);const K=z($.current,r);return k.createElement(p,{...g,children:t,className:e,id:v,style:{...K,...h},[ne.groupId]:N,[ne.panel]:"",[ne.panelCollapsible]:l||void 0,[ne.panelId]:v,[ne.panelSize]:parseFloat(""+K.flexGrow).toFixed(1)})}const In=k.forwardRef((t,e)=>k.createElement(Rn,{...t,forwardedRef:e}));Rn.displayName="Panel";In.displayName="forwardRef(Panel)";let Rt=null,at=-1,Se=null;function ml(t,e){if(e){const n=(e&Bn)!==0,l=(e&Hn)!==0,r=(e&qn)!==0,i=(e&Wn)!==0;if(n)return r?"se-resize":i?"ne-resize":"e-resize";if(l)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hl(){Se!==null&&(document.head.removeChild(Se),Rt=null,Se=null,at=-1)}function Pt(t,e){var n,l;const r=ml(t,e);if(Rt!==r){if(Rt=r,Se===null&&(Se=document.createElement("style"),document.head.appendChild(Se)),at>=0){var i;(i=Se.sheet)===null||i===void 0||i.removeRule(at)}at=(n=(l=Se.sheet)===null||l===void 0?void 0:l.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function Ln(t){return t.type==="keydown"}function Fn(t){return t.type.startsWith("pointer")}function _n(t){return t.type.startsWith("mouse")}function vt(t){if(Fn(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(_n(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function pl(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function xl(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function gl(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:sn(t),b:sn(e)};let l;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),l=t;V(l,"Stacking order can only be calculated for elements with a common ancestor");const r={a:nn(tn(n.a)),b:nn(tn(n.b))};if(r.a===r.b){const i=l.childNodes,o={a:n.a.at(-1),b:n.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(r.a-r.b)}const bl=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vl(t){var e;const n=getComputedStyle((e=Un(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function yl(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||vl(t))||+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"||bl.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function tn(t){let e=t.length;for(;e--;){const n=t[e];if(V(n,"Missing node"),yl(n))return n}return null}function nn(t){return t&&Number(getComputedStyle(t).zIndex)||0}function sn(t){const e=[];for(;t;)e.push(t),t=Un(t);return e}function Un(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Bn=1,Hn=2,qn=4,Wn=8,wl=pl()==="coarse";let fe=[],Ie=!1,Pe=new Map,yt=new Map;const Ke=new Set;function jl(t,e,n,l,r){var i;const{ownerDocument:o}=e,a={direction:n,element:e,hitAreaMargins:l,setResizeHandlerState:r},c=(i=Pe.get(o))!==null&&i!==void 0?i:0;return Pe.set(o,c+1),Ke.add(a),ft(),function(){var f;yt.delete(t),Ke.delete(a);const u=(f=Pe.get(o))!==null&&f!==void 0?f:1;if(Pe.set(o,u-1),ft(),u===1&&Pe.delete(o),fe.includes(a)){const m=fe.indexOf(a);m>=0&&fe.splice(m,1),Gt(),r("up",!0,null)}}}function kl(t){const{target:e}=t,{x:n,y:l}=vt(t);Ie=!0,Kt({target:e,x:n,y:l}),ft(),fe.length>0&&(mt("down",t),t.preventDefault(),Kn(e)||t.stopImmediatePropagation())}function Et(t){const{x:e,y:n}=vt(t);if(Ie&&t.buttons===0&&(Ie=!1,mt("up",t)),!Ie){const{target:l}=t;Kt({target:l,x:e,y:n})}mt("move",t),Gt(),fe.length>0&&t.preventDefault()}function Dt(t){const{target:e}=t,{x:n,y:l}=vt(t);yt.clear(),Ie=!1,fe.length>0&&(t.preventDefault(),Kn(e)||t.stopImmediatePropagation()),mt("up",t),Kt({target:e,x:n,y:l}),Gt(),ft()}function Kn(t){let e=t;for(;e;){if(e.hasAttribute(ne.resizeHandle))return!0;e=e.parentElement}return!1}function Kt({target:t,x:e,y:n}){fe.splice(0);let l=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(l=t),Ke.forEach(r=>{const{element:i,hitAreaMargins:o}=r,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,m=wl?o.coarse:o.fine;if(e>=d-m&&e<=f+m&&n>=u-m&&n<=c+m){if(l!==null&&document.contains(l)&&i!==l&&!i.contains(l)&&!l.contains(i)&&gl(l,i)>0){let p=l,g=!1;for(;p&&!p.contains(i);){if(xl(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}fe.push(r)}})}function Tt(t,e){yt.set(t,e)}function Gt(){let t=!1,e=!1;fe.forEach(l=>{const{direction:r}=l;r==="horizontal"?t=!0:e=!0});let n=0;yt.forEach(l=>{n|=l}),t&&e?Pt("intersection",n):t?Pt("horizontal",n):e?Pt("vertical",n):hl()}let Mt=new AbortController;function ft(){Mt.abort(),Mt=new AbortController;const t={capture:!0,signal:Mt.signal};Ke.size&&(Ie?(fe.length>0&&Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("contextmenu",Dt,t),l.addEventListener("pointerleave",Et,t),l.addEventListener("pointermove",Et,t))}),window.addEventListener("pointerup",Dt,t),window.addEventListener("pointercancel",Dt,t)):Pe.forEach((e,n)=>{const{body:l}=n;e>0&&(l.addEventListener("pointerdown",kl,t),l.addEventListener("pointermove",Et,t))}))}function mt(t,e){Ke.forEach(n=>{const{setResizeHandlerState:l}=n,r=fe.includes(n);l(t,r,e)})}function Sl(){const[t,e]=k.useState(0);return k.useCallback(()=>e(n=>n+1),[])}function V(t,e){if(!t)throw console.error(e),Error(e)}function De(t,e,n=qt){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ve(t,e,n=qt){return De(t,e,n)===0}function ue(t,e,n){return De(t,e,n)===0}function zl(t,e,n){if(t.length!==e.length)return!1;for(let l=0;l<t.length;l++){const r=t[l],i=e[l];if(!ue(r,i,n))return!1}return!0}function Re({panelConstraints:t,panelIndex:e,size:n}){const l=t[e];V(l!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:r=0,collapsible:i,maxSize:o=100,minSize:a=0}=l;if(De(n,a)<0)if(i){const c=(r+a)/2;De(n,c)<0?n=r:n=a}else n=a;return n=Math.min(o,n),n=parseFloat(n.toFixed(qt)),n}function _e({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:l,prevLayout:r,trigger:i}){if(ue(t,0))return e;const o=[...e],[a,c]=l;V(a!=null,"Invalid first pivot index"),V(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:a,m=n[u];V(m,`Panel constraints not found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,h)){const x=g-y;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}{const u=t<0?a:c,m=n[u];V(m,`No panel constraints found for index ${u}`);const{collapsedSize:h=0,collapsible:p,minSize:g=0}=m;if(p){const y=e[u];if(V(y!=null,`Previous layout not found for panel index ${u}`),ue(y,g)){const x=y-h;De(x,Math.abs(t))>0&&(t=t<0?0-x:x)}}}}{const u=t<0?1:-1;let m=t<0?c:a,h=0;for(;;){const g=e[m];V(g!=null,`Previous layout not found for panel index ${m}`);const x=Re({panelConstraints:n,panelIndex:m,size:100})-g;if(h+=x,m+=u,m<0||m>=n.length)break}const p=Math.min(Math.abs(t),Math.abs(h));t=t<0?0-p:p}{let m=t<0?a:c;for(;m>=0&&m<n.length;){const h=Math.abs(t)-Math.abs(d),p=e[m];V(p!=null,`Previous layout not found for panel index ${m}`);const g=p-h,y=Re({panelConstraints:n,panelIndex:m,size:g});if(!ue(p,y)&&(d+=p-y,o[m]=y,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?m--:m++}}if(zl(r,o))return r;{const u=t<0?c:a,m=e[u];V(m!=null,`Previous layout not found for panel index ${u}`);const h=m+d,p=Re({panelConstraints:n,panelIndex:u,size:h});if(o[u]=p,!ue(p,h)){let g=h-p,x=t<0?c:a;for(;x>=0&&x<n.length;){const b=o[x];V(b!=null,`Previous layout not found for panel index ${x}`);const j=b+g,z=Re({panelConstraints:n,panelIndex:x,size:j});if(ue(b,z)||(g-=z-b,o[x]=z),ue(g,0))break;t>0?x--:x++}}}const f=o.reduce((u,m)=>m+u,0);return ue(f,100)?o:r}function Nl({layout:t,panelsArray:e,pivotIndices:n}){let l=0,r=100,i=0,o=0;const a=n[0];V(a!=null,"No pivot index found"),e.forEach((u,m)=>{const{constraints:h}=u,{maxSize:p=100,minSize:g=0}=h;m===a?(l=g,r=p):(i+=g,o+=p)});const c=Math.min(r,100-i),d=Math.max(l,100-o),f=t[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ge(t,e=document){return Array.from(e.querySelectorAll(`[${ne.resizeHandleId}][data-panel-group-id="${t}"]`))}function Gn(t,e,n=document){const r=Ge(t,n).findIndex(i=>i.getAttribute(ne.resizeHandleId)===e);return r??null}function Vn(t,e,n){const l=Gn(t,e,n);return l!=null?[l,l+1]:[-1,-1]}function Xn(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const l=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return l||null}function wt(t,e=document){const n=e.querySelector(`[${ne.resizeHandleId}="${t}"]`);return n||null}function Cl(t,e,n,l=document){var r,i,o,a;const c=wt(e,l),d=Ge(t,l),f=c?d.indexOf(c):-1,u=(r=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:null,m=(o=(a=n[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,m]}function $l({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:l,panelDataArray:r,panelGroupElement:i,setLayout:o}){k.useRef({didWarnAboutMissingResizeHandle:!1}),Ee(()=>{if(!i)return;const a=Ge(n,i);for(let c=0;c<r.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Nl({layout:l,panelsArray:r,pivotIndices:[c,c+1]}),m=a[c];if(m!=null){const h=r[c];V(h,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",h.id),m.setAttribute("aria-valuemax",""+Math.round(d)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.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")})}},[n,l,r,i]),k.useEffect(()=>{if(!i)return;const a=e.current;V(a,"Eager values not found");const{panelDataArray:c}=a,d=Xn(n,i);V(d!=null,`No group found for id "${n}"`);const f=Ge(n,i);V(f,`No resize handles found for group id "${n}"`);const u=f.map(m=>{const h=m.getAttribute(ne.resizeHandleId);V(h,"Resize handle element has no handle id attribute");const[p,g]=Cl(n,h,c,i);if(p==null||g==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const b=c.findIndex(j=>j.id===p);if(b>=0){const j=c[b];V(j,`No panel data found for index ${b}`);const z=l[b],{collapsedSize:N=0,collapsible:C,minSize:w=0}=j.constraints;if(z!=null&&C){const M=_e({delta:ue(z,N)?w-N:N-z,initialLayout:l,panelConstraints:c.map(O=>O.constraints),pivotIndices:Vn(n,h,i),prevLayout:l,trigger:"keyboard"});l!==M&&o(M)}}break}}};return m.addEventListener("keydown",y),()=>{m.removeEventListener("keydown",y)}});return()=>{u.forEach(m=>m())}},[i,t,e,n,l,r,o])}function ln(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Qn(t,e){const n=t==="horizontal",{x:l,y:r}=vt(e);return n?l:r}function Pl(t,e,n,l,r){const i=n==="horizontal",o=wt(e,r);V(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(ne.groupId);V(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=l;const d=Qn(n,t),f=Xn(a,r);V(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),m=i?u.width:u.height;return(d-c)/m*100}function El(t,e,n,l,r,i){if(Ln(t)){const o=n==="horizontal";let a=0;t.shiftKey?a=100:r!=null?a=r:a=10;let c=0;switch(t.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 l==null?0:Pl(t,e,n,l,i)}function Dl({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let l=0,r=100;for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(l++,e[i]=a,r-=a)}for(let i=0;i<t.length;i++){const o=n[i];V(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=t.length-l,d=r/c;l++,e[i]=d,r-=d}return e}function Te(t,e,n){e.forEach((l,r)=>{const i=t[r];V(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=n[c];if(u==null||l!==u){n[c]=l;const{onCollapse:m,onExpand:h,onResize:p}=o;p&&p(l,u),f&&(m||h)&&(h&&(u==null||ve(u,d))&&!ve(l,d)&&h(),m&&(u==null||!ve(u,d))&&ve(l,d)&&m())}})}function ot(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Tl({defaultSize:t,dragState:e,layout:n,panelData:l,panelIndex:r,precision:i=3}){const o=n[r];let a;return o==null?a=t!=null?t.toPrecision(i):"1":l.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Ml(t,e=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}function rn(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Yn(t){return`react-resizable-panels:${t}`}function Zn(t){return t.map(e=>{const{constraints:n,id:l,idIsFromProps:r,order:i}=e;return r?l:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Jn(t,e){try{const n=Yn(t),l=e.getItem(n);if(l){const r=JSON.parse(l);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Ol(t,e,n){var l,r;const i=(l=Jn(t,n))!==null&&l!==void 0?l:{},o=Zn(e);return(r=i[o])!==null&&r!==void 0?r:null}function Al(t,e,n,l,r){var i;const o=Yn(t),a=Zn(e),c=(i=Jn(t,r))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(n.entries()),layout:l};try{r.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function on({layout:t,panelConstraints:e}){const n=[...t],l=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ue(l,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=100/l*o;n[i]=a}let r=0;for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=Re({panelConstraints:e,panelIndex:i,size:o});o!=a&&(r+=o-a,n[i]=a)}if(!ue(r,0))for(let i=0;i<e.length;i++){const o=n[i];V(o!=null,`No layout data found for index ${i}`);const a=o+r,c=Re({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(r-=c-o,n[i]=c,ue(r,0)))break}return n}const Rl=100,Ue={getItem:t=>(rn(Ue),Ue.getItem(t)),setItem:(t,e)=>{rn(Ue),Ue.setItem(t,e)}},an={};function es({autoSaveId:t=null,children:e,className:n="",direction:l,forwardedRef:r,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=Ue,style:d,tagName:f="div",...u}){const m=Wt(i),h=k.useRef(null),[p,g]=k.useState(null),[y,x]=k.useState([]),b=Sl(),j=k.useRef({}),z=k.useRef(new Map),N=k.useRef(0),C=k.useRef({autoSaveId:t,direction:l,dragState:p,id:m,keyboardResizeBy:a,onLayout:o,storage:c}),w=k.useRef({layout:y,panelDataArray:[],panelDataArrayChanged:!1});k.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),k.useImperativeHandle(r,()=>({getId:()=>C.current.id,getLayout:()=>{const{layout:S}=w.current;return S},setLayout:S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current,D=on({layout:S,panelConstraints:U.map(H=>H.constraints)});ln(L,D)||(x(D),w.current.layout=D,I&&I(D),Te(U,D,j.current))}}),[]),Ee(()=>{C.current.autoSaveId=t,C.current.direction=l,C.current.dragState=p,C.current.id=m,C.current.onLayout=o,C.current.storage=c}),$l({committedValuesRef:C,eagerValuesRef:w,groupId:m,layout:y,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:h.current}),k.useEffect(()=>{const{panelDataArray:S}=w.current;if(t){if(y.length===0||y.length!==S.length)return;let I=an[t];I==null&&(I=Ml(Al,Rl),an[t]=I);const L=[...S],U=new Map(z.current);I(t,L,U,y,c)}},[t,y,c]),k.useEffect(()=>{});const M=k.useCallback(S=>{const{onLayout:I}=C.current,{layout:L,panelDataArray:U}=w.current;if(S.constraints.collapsible){const D=U.map(de=>de.constraints),{collapsedSize:H=0,panelSize:Q,pivotIndices:ee}=$e(U,S,L);if(V(Q!=null,`Panel size not found for panel "${S.id}"`),!ve(Q,H)){z.current.set(S.id,Q);const P=Oe(U,S)===U.length-1?Q-H:H-Q,X=_e({delta:P,initialLayout:L,panelConstraints:D,pivotIndices:ee,prevLayout:L,trigger:"imperative-api"});ot(L,X)||(x(X),w.current.layout=X,I&&I(X),Te(U,X,j.current))}}},[]),O=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current;if(S.constraints.collapsible){const H=D.map(te=>te.constraints),{collapsedSize:Q=0,panelSize:ee=0,minSize:de=0,pivotIndices:P}=$e(D,S,U),X=I??de;if(ve(ee,Q)){const te=z.current.get(S.id),he=te!=null&&te>=X?te:X,Ne=Oe(D,S)===D.length-1?ee-he:he-ee,ie=_e({delta:Ne,initialLayout:U,panelConstraints:H,pivotIndices:P,prevLayout:U,trigger:"imperative-api"});ot(U,ie)||(x(ie),w.current.layout=ie,L&&L(ie),Te(D,ie,j.current))}}},[]),T=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{panelSize:U}=$e(L,S,I);return V(U!=null,`Panel size not found for panel "${S.id}"`),U},[]),v=k.useCallback((S,I)=>{const{panelDataArray:L}=w.current,U=Oe(L,S);return Tl({defaultSize:I,dragState:p,layout:y,panelData:L,panelIndex:U})},[p,y]),$=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),D===!0&&ve(H,U)},[]),K=k.useCallback(S=>{const{layout:I,panelDataArray:L}=w.current,{collapsedSize:U=0,collapsible:D,panelSize:H}=$e(L,S,I);return V(H!=null,`Panel size not found for panel "${S.id}"`),!D||De(H,U)>0},[]),F=k.useCallback(S=>{const{panelDataArray:I}=w.current;I.push(S),I.sort((L,U)=>{const D=L.order,H=U.order;return D==null&&H==null?0:D==null?-1:H==null?1:D-H}),w.current.panelDataArrayChanged=!0,b()},[b]);Ee(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:S,onLayout:I,storage:L}=C.current,{layout:U,panelDataArray:D}=w.current;let H=null;if(S){const ee=Ol(S,D,L);ee&&(z.current=new Map(Object.entries(ee.expandToSizes)),H=ee.layout)}H==null&&(H=Dl({panelDataArray:D}));const Q=on({layout:H,panelConstraints:D.map(ee=>ee.constraints)});ln(U,Q)||(x(Q),w.current.layout=Q,I&&I(Q),Te(D,Q,j.current))}}),Ee(()=>{const S=w.current;return()=>{S.layout=[]}},[]);const _=k.useCallback(S=>{let I=!1;const L=h.current;return L&&window.getComputedStyle(L,null).getPropertyValue("direction")==="rtl"&&(I=!0),function(D){D.preventDefault();const H=h.current;if(!H)return()=>null;const{direction:Q,dragState:ee,id:de,keyboardResizeBy:P,onLayout:X}=C.current,{layout:te,panelDataArray:he}=w.current,{initialLayout:je}=ee??{},Ne=Vn(de,S,H);let ie=El(D,S,Q,ee,P,H);const lt=Q==="horizontal";lt&&I&&(ie=-ie);const Nt=he.map(Ct=>Ct.constraints),Ce=_e({delta:ie,initialLayout:je??te,panelConstraints:Nt,pivotIndices:Ne,prevLayout:te,trigger:Ln(D)?"keyboard":"mouse-or-touch"}),rt=!ot(te,Ce);(Fn(D)||_n(D))&&N.current!=ie&&(N.current=ie,!rt&&ie!==0?lt?Tt(S,ie<0?Bn:Hn):Tt(S,ie<0?qn:Wn):Tt(S,0)),rt&&(x(Ce),w.current.layout=Ce,X&&X(Ce),Te(he,Ce,j.current))}},[]),B=k.useCallback((S,I)=>{const{onLayout:L}=C.current,{layout:U,panelDataArray:D}=w.current,H=D.map(te=>te.constraints),{panelSize:Q,pivotIndices:ee}=$e(D,S,U);V(Q!=null,`Panel size not found for panel "${S.id}"`);const P=Oe(D,S)===D.length-1?Q-I:I-Q,X=_e({delta:P,initialLayout:U,panelConstraints:H,pivotIndices:ee,prevLayout:U,trigger:"imperative-api"});ot(U,X)||(x(X),w.current.layout=X,L&&L(X),Te(D,X,j.current))},[]),G=k.useCallback((S,I)=>{const{layout:L,panelDataArray:U}=w.current,{collapsedSize:D=0,collapsible:H}=I,{collapsedSize:Q=0,collapsible:ee,maxSize:de=100,minSize:P=0}=S.constraints,{panelSize:X}=$e(U,S,L);X!=null&&(H&&ee&&ve(X,D)?ve(D,Q)||B(S,Q):X<P?B(S,P):X>de&&B(S,de))},[B]),q=k.useCallback((S,I)=>{const{direction:L}=C.current,{layout:U}=w.current;if(!h.current)return;const D=wt(S,h.current);V(D,`Drag handle element not found for id "${S}"`);const H=Qn(L,I);g({dragHandleId:S,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:H,initialLayout:U})},[]),J=k.useCallback(()=>{g(null)},[]),Z=k.useCallback(S=>{const{panelDataArray:I}=w.current,L=Oe(I,S);L>=0&&(I.splice(L,1),delete j.current[S.id],w.current.panelDataArrayChanged=!0,b())},[b]),A=k.useMemo(()=>({collapsePanel:M,direction:l,dragState:p,expandPanel:O,getPanelSize:T,getPanelStyle:v,groupId:m,isPanelCollapsed:$,isPanelExpanded:K,reevaluatePanelConstraints:G,registerPanel:F,registerResizeHandle:_,resizePanel:B,startDragging:q,stopDragging:J,unregisterPanel:Z,panelGroupElement:h.current}),[M,p,l,O,T,v,m,$,K,G,F,_,B,q,J,Z]),W={display:"flex",flexDirection:l==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return k.createElement(bt.Provider,{value:A},k.createElement(f,{...u,children:e,className:n,id:i,ref:h,style:{...W,...d},[ne.group]:"",[ne.groupDirection]:l,[ne.groupId]:m}))}const ts=k.forwardRef((t,e)=>k.createElement(es,{...t,forwardedRef:e}));es.displayName="PanelGroup";ts.displayName="forwardRef(PanelGroup)";function Oe(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function $e(t,e,n){const l=Oe(t,e),i=l===t.length-1?[l-1,l]:[l,l+1],o=n[l];return{...e.constraints,panelSize:o,pivotIndices:i}}function Il({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:l}){k.useEffect(()=>{if(t||n==null||l==null)return;const r=wt(e,l);if(r==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(),n(o);break}case"F6":{o.preventDefault();const a=r.getAttribute(ne.groupId);V(a,`No group element found for id "${a}"`);const c=Ge(a,l),d=Gn(a,e,l);V(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 r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[l,t,e,n])}function ns({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:l,id:r,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:m=0,tagName:h="div",...p}){var g,y;const x=k.useRef(null),b=k.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});k.useEffect(()=>{b.current.onClick=o,b.current.onDragging=a,b.current.onPointerDown=d,b.current.onPointerUp=f});const j=k.useContext(bt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:N,registerResizeHandle:C,startDragging:w,stopDragging:M,panelGroupElement:O}=j,T=Wt(r),[v,$]=k.useState("inactive"),[K,F]=k.useState(!1),[_,B]=k.useState(null),G=k.useRef({state:v});Ee(()=>{G.current.state=v}),k.useEffect(()=>{if(n)B(null);else{const A=C(T);B(()=>A)}},[n,T,C]);const q=(g=l?.coarse)!==null&&g!==void 0?g:15,J=(y=l?.fine)!==null&&y!==void 0?y:5;k.useEffect(()=>{if(n||_==null)return;const A=x.current;V(A,"Element ref not attached");let W=!1;return jl(T,A,z,{coarse:q,fine:J},(I,L,U)=>{if(!L){$("inactive");return}switch(I){case"down":{$("drag"),W=!1,V(U,'Expected event to be defined for "down" action'),w(T,U);const{onDragging:D,onPointerDown:H}=b.current;D?.(!0),H?.();break}case"move":{const{state:D}=G.current;W=!0,D!=="drag"&&$("hover"),V(U,'Expected event to be defined for "move" action'),_(U);break}case"up":{$("hover"),M();const{onClick:D,onDragging:H,onPointerUp:Q}=b.current;H?.(!1),Q?.(),W||D?.();break}}})},[q,z,n,J,C,T,_,w,M]),Il({disabled:n,handleId:T,resizeHandler:_,panelGroupElement:O});const Z={touchAction:"none",userSelect:"none"};return k.createElement(h,{...p,children:t,className:e,id:r,onBlur:()=>{F(!1),i?.()},onFocus:()=>{F(!0),c?.()},ref:x,role:"separator",style:{...Z,...u},tabIndex:m,[ne.groupDirection]:z,[ne.groupId]:N,[ne.resizeHandle]:"",[ne.resizeHandleActive]:v==="drag"?"pointer":K?"keyboard":void 0,[ne.resizeHandleEnabled]:!n,[ne.resizeHandleId]:T,[ne.resizeHandleState]:v})}ns.displayName="PanelResizeHandle";function Ll(t){const e=R.c(10);let n,l,r;e[0]!==t?({className:n,ref:r,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==r||e[8]!==i?(o=s.jsx(ts,{ref:r,"data-slot":"resizable-panel-group",className:i,...l}),e[6]=l,e[7]=r,e[8]=i,e[9]=o):o=e[9],o}function cn(t){const e=R.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let l;return e[2]!==n?(l=s.jsx(In,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=l):l=e[3],l}function Fl(t){const e=R.c(12);let n,l,r;e[0]!==t?({withHandle:r,className:n,...l}=t,e[0]=t,e[1]=n,e[2]=l,e[3]=r):(n=e[1],l=e[2],r=e[3]);let i;e[4]!==n?(i=ae("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",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==r?(o=r&&s.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:s.jsx($s,{className:"size-2.5"})}),e[6]=r,e[7]=o):o=e[7];let a;return e[8]!==l||e[9]!==i||e[10]!==o?(a=s.jsx(ns,{"data-slot":"resizable-handle",className:i,...l,children:o}),e[8]=l,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function _l(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function Ul(t){if(_l(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function Bl(t){try{return decodeURIComponent(t)}catch{return t}}function Hl(t){return Ul(t),encodeURIComponent(t)}function ql(t){return`.deco/blocks/${Hl(t)}.json`}function bo(t){return`/${ql(t)}`}const vo=1e4,Wl=3;function It(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function Vt(t){return t.startsWith("/")?t.slice(1):t}function ht(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function Kl(t){const e=ht(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function yo(t,e){const n=e.replace(/^\/+|\/+$/g,"");return ht(n?`${t==="/"?"":t}/${n}`:t)}function wo(t,e){return e==="directory"?t:Kl(t)}function jo(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function Gl(t){const e=Vt(t);return e?e.split("/").filter(Boolean).length:0}function ko(t,e,n,l=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:l||!!n.truncated}}function So(t,e){return Gl(t)>=Wl&&!e.has(t)}function zo(t,e,n=[]){const l=Vt(t);if(e.includes(l)||n.includes(l))return!0;if(!l)return!1;const r=`${l}/`;return e.some(i=>i.startsWith(r))||n.some(i=>i.startsWith(r))}function No(t){const e=Vt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const l=e.slice(n.length,-5);return Bl(l)}function Vl(t){if(!t)return"plaintext";const e=t.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"}function Co(t){const e=It(t).split("/").filter(Boolean),n=["/"];let l="";for(const r of e.slice(0,-1))l+=`/${r}`,n.push(l);return n}function $o(t,e=[]){const n={children:[]},l=i=>{const a=It(i).split("/").filter(Boolean);let c=n,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(m=>m.name===f);u?u.kind==="file"&&(u.kind="directory"):(u={name:f,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const a=It(i).split("/").filter(Boolean);let c=n,d="";a.forEach((f,u)=>{d+=`/${f}`;const m=u===a.length-1;let h=c.children.find(p=>p.name===f);h||(h={name:f,path:d,kind:m?"file":"directory",children:[]},c.children.push(h)),c=h})}for(const i of e)l(ht(i));const r=i=>{i.sort((o,a)=>o.kind!==a.kind?o.kind==="directory"?-1:1:o.name.localeCompare(a.name));for(const o of i)o.children.length>0&&r(o.children)};return r(n.children),n.children}function Xl(t,e,n=0){const l=[];for(const r of t)r.name!==".gitkeep"&&(l.push({node:r,depth:n}),r.kind==="directory"&&r.children.length>0&&e.has(r.path)&&l.push(...Xl(r.children,e,n+1)));return l}function Po(t){return t.split(`
|
|
2
2
|
`).map(e=>{const n=e.match(/^\d+\t(.*)/);return n?n[1]:e}).join(`
|
|
3
3
|
`)}al.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Ql(t){const e=R.c(11),{value:n,filename:l}=t,[r]=ws(),i=r.theme==="dark"||r.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==l?(o=Vl(l),e[0]=l,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(js,{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 m;return e[6]!==l||e[7]!==o||e[8]!==a||e[9]!==n?(m=s.jsx(cl,{path:l,language:o,value:n,theme:a,loading:c,options:u},l),e[6]=l,e[7]=o,e[8]=a,e[9]=n,e[10]=m):m=e[10],m}function ss(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Yl=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Zl=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),dn=2*1024*1024;function Jl(t,e){const n=t.split(".").pop()?.toLowerCase()??"";return Yl.has(n)?"image":n==="pdf"?"pdf":n==="html"||n==="htm"?"html":n==="md"||n==="markdown"?e<=dn?"markdown":"download":Zl.has(n)&&e<=dn?"text":"download"}function ls(){const t=R.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe,{className:"h-6 w-2/3"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(oe,{className:"h-3 w-full"}),s.jsx(oe,{className:"h-3 w-5/6"}),s.jsx(oe,{className:"h-3 w-2/3"})]})]})}),t[1]=n):n=t[1],n}function rs(t){const e=R.c(20),{file:n,note:l}=t;let r;e[0]!==n.filename?(r=s.jsx(we,{filename:n.filename,className:"h-12 w-10"}),e[0]=n.filename,e[1]=r):r=e[1];let i;e[2]!==n.filename?(i=s.jsx("span",{className:"text-sm font-medium text-foreground",children:n.filename}),e[2]=n.filename,e[3]=i):i=e[3];let o;e[4]!==n.size?(o=ss(n.size),e[4]=n.size,e[5]=o):o=e[5];const a=l?` · ${l}`:"";let c;e[6]!==o||e[7]!==a?(c=s.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=s.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=s.jsx(qe,{size:14}),e[12]=f):f=e[12];let u;e[13]!==n.downloadUrl||e[14]!==n.filename?(u=s.jsx(Y,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:n.downloadUrl,download:n.filename,children:[f,"Download"]})}),e[13]=n.downloadUrl,e[14]=n.filename,e[15]=u):u=e[15];let m;return e[16]!==r||e[17]!==d||e[18]!==u?(m=s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[r,d,u]})}),e[16]=r,e[17]=d,e[18]=u,e[19]=m):m=e[19],m}function un(t){const e=R.c(16),{file:n,markdown:l}=t;let r;e[0]!==n.downloadUrl?(r=se.fileText(n.downloadUrl),e[0]=n.downloadUrl,e[1]=r):r=e[1];let i;e[2]!==n.downloadUrl?(i=async()=>{const u=await fetch(n.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=n.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==i?(o={queryKey:r,queryFn:i,staleTime:6e4,retry:!1},e[4]=r,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=me(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ls,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==n?(u=s.jsx(rs,{file:n,note:"preview unavailable"}),e[8]=n,e[9]=u):u=e[9],u}if(l){const u=`file-preview-${n.key}`;let m;return e[10]!==a||e[11]!==u?(m=s.jsx("div",{className:"h-full overflow-y-auto",children:s.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:s.jsx(Bt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=m):m=e[12],m}let f;return e[13]!==a||e[14]!==n.filename?(f=s.jsx(Ql,{value:a,filename:n.filename}),e[13]=a,e[14]=n.filename,e[15]=f):f=e[15],f}function is(t){const e=R.c(15),{file:n}=t;switch(Jl(n.filename,n.size)){case"image":{let r;return e[0]!==n.downloadUrl||e[1]!==n.filename?(r=s.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:s.jsx("img",{src:n.downloadUrl,alt:n.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=n.downloadUrl,e[1]=n.filename,e[2]=r):r=e[2],r}case"pdf":{let r;return e[3]!==n.downloadUrl||e[4]!==n.filename?(r=s.jsx("iframe",{src:n.downloadUrl,title:n.filename,className:"block h-full w-full bg-white"}),e[3]=n.downloadUrl,e[4]=n.filename,e[5]=r):r=e[5],r}case"html":{let r;return e[6]!==n.downloadUrl||e[7]!==n.filename?(r=s.jsx("iframe",{src:n.downloadUrl,title:n.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=n.downloadUrl,e[7]=n.filename,e[8]=r):r=e[8],r}case"markdown":{let r;return e[9]!==n?(r=s.jsx(un,{file:n,markdown:!0}),e[9]=n,e[10]=r):r=e[10],r}case"text":{let r;return e[11]!==n?(r=s.jsx(un,{file:n,markdown:!1}),e[11]=n,e[12]=r):r=e[12],r}default:{let r;return e[13]!==n?(r=s.jsx(rs,{file:n}),e[13]=n,e[14]=r):r=e[14],r}}}function er(t){const e=R.c(40),{readUrl:n,editor:l,downloadName:r,trailing:i}=t;let o;e[0]!==n?(o=new URL(n,window.location.origin).toString(),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]!==l?(c=l.deckDetected&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:l.railOpen?"secondary":"ghost",size:"icon","aria-label":l.railOpen?"Hide slide list":"Show slide list",onClick:()=>l.setRailOpen(!l.railOpen),children:s.jsx(dl,{size:14})})}),s.jsx(be,{side:"bottom",children:l.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=l,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=s.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=s.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 m;e[12]!==l.agentUpdated||e[13]!==l.reload?(m=l.agentUpdated&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:l.reload,children:[s.jsx(yn,{size:12}),"Agent updated — reload"]})}),s.jsx(be,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=l.agentUpdated,e[13]=l.reload,e[14]=m):m=e[14];let h;e[15]!==l.saving?(h=l.saving&&s.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=l.saving,e[16]=h):h=e[16];let p;e[17]!==l?(p=l.deckDetected&&l.writable&&s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:l.editMode?"secondary":"ghost",size:"icon","aria-label":l.editMode?"Done editing":"Edit inline",className:ae(l.editMode&&"text-primary"),onClick:()=>l.setEditMode(!l.editMode),children:s.jsx(Ps,{size:14})})}),s.jsx(be,{side:"bottom",children:l.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=l,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==r||e[21]!==l.deckDetected?(g=l.deckDetected?s.jsxs(Ze,{children:[s.jsx(Je,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Download",children:s.jsx(qe,{size:14})})}),s.jsxs(et,{align:"end",children:[s.jsxs(pe,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[s.jsx(Es,{size:14}),"Export as PDF"]}),s.jsx(pe,{asChild:!0,children:s.jsxs("a",{href:a,download:r,children:[s.jsx(Ds,{size:14}),"Download HTML"]})})]})]}):s.jsxs(xe,{children:[s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:s.jsx("a",{href:a,download:r,children:s.jsx(qe,{size:14})})})}),s.jsx(be,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=r,e[21]=l.deckDetected,e[22]=g):g=e[22];let y;e[23]!==a?(y=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=y):y=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(An,{size:14}),e[25]=x):x=e[25];let b;e[26]!==y?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:y,children:x})}),e[26]=y,e[27]=b):b=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(be,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let z;e[29]!==b?(z=s.jsxs(xe,{children:[b,j]}),e[29]=b,e[30]=z):z=e[30];let N;return e[31]!==z||e[32]!==c||e[33]!==u||e[34]!==m||e[35]!==h||e[36]!==p||e[37]!==g||e[38]!==i?(N=s.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,m,h,p,g,z,i]}),e[31]=z,e[32]=c,e[33]=u,e[34]=m,e[35]=h,e[36]=p,e[37]=g,e[38]=i,e[39]=N):N=e[39],N}const Ae=1;function tr(t){if(typeof t!="object"||t===null||t.v!==Ae||t.source!=="deck-viewer")return null;const e=t;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ke extends Error{constructor(e,n){super(e),this.code=n,this.name="DeckOpError"}code}function os(t){return[...t.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function nr(t){const n=new DOMParser().parseFromString(t,"text/html").querySelector("deck-viewer");return n?os(n).length:null}function sr(t,e){const n=new DOMParser().parseFromString(t,"text/html"),l=n.querySelector("deck-viewer");if(!l)throw new ke("no <deck-viewer> element in source","no-viewer");const r=os(l),i=e.kind==="move"?e.from:e.at,o=r[i];if(!o)throw new ke(`slide index ${i} out of range (${r.length})`,"stale-index");switch(e.kind){case"remove":{if(r.length<=1)throw new ke("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>=r.length)throw new ke(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?r[e.to]:r[e.to].nextSibling;l.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ke(`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 ke("replace html has no root element","bad-op");o.replaceWith(n.importNode(d,!0));break}default:throw new ke(`unknown op kind: ${e.kind}`,"bad-op")}return`${t.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${n.documentElement.outerHTML}
|