decocms 4.81.1 → 4.81.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BEwYvEH8.js → AlertCircle-DU6qWK9T.js} +1 -1
- package/dist/client/assets/{AreaChart-BLGaxlLf.js → AreaChart-BX2a1Rtg.js} +1 -1
- package/dist/client/assets/{ArrowUp-CEZnrkmY.js → ArrowUp-DYmWx-L-.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-dQMqs6Cp.js → ArrowUpRight-DmbxJntq.js} +1 -1
- package/dist/client/assets/{Check-DaMzVABD.js → Check-B1SirwZu.js} +1 -1
- package/dist/client/assets/{CheckCircle-UCDxsfel.js → CheckCircle-DlnXCgUt.js} +1 -1
- package/dist/client/assets/{ChevronDown-BE1u6Af1.js → ChevronDown-XW3mndxm.js} +1 -1
- package/dist/client/assets/{ChevronRight-DIx28vbN.js → ChevronRight-CMxF_EMm.js} +1 -1
- package/dist/client/assets/{ChevronUp-BlWUXjHa.js → ChevronUp-CBA75LiO.js} +1 -1
- package/dist/client/assets/{Circle-fbHJSQ9i.js → Circle-HACtkegN.js} +1 -1
- package/dist/client/assets/{Copy01-CUSINCy2.js → Copy01-DvYXKq8Z.js} +1 -1
- package/dist/client/assets/{DotsVertical-CLbmJmSz.js → DotsVertical-Bk2adjcS.js} +1 -1
- package/dist/client/assets/{Eye-DuURW-Nq.js → Eye-CikrhNcF.js} +1 -1
- package/dist/client/assets/{FilterLines-B87AdnF9.js → FilterLines-CKkJTX1P.js} +1 -1
- package/dist/client/assets/{Flag01-BO4lpp-4.js → Flag01-BiiEWwXG.js} +1 -1
- package/dist/client/assets/{Globe01-BaUO7lmU.js → Globe01-BPvkaID5.js} +1 -1
- package/dist/client/assets/{Globe04-BnrTUS5n.js → Globe04-BLOGIunc.js} +1 -1
- package/dist/client/assets/{HardDrive-DMn-Xski.js → HardDrive-BBQgAxPW.js} +1 -1
- package/dist/client/assets/{Image01-DjySPnlH.js → Image01-BxR0qJ9h.js} +1 -1
- package/dist/client/assets/{Key01-PWC8jtJj.js → Key01-CSjfIfTE.js} +1 -1
- package/dist/client/assets/{LayoutLeft-B3R842oK.js → LayoutLeft-vGwalVIw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CpBtMHuG.js → LinkExternal01-BapUlNlT.js} +1 -1
- package/dist/client/assets/{List-DIU-lzSu.js → List-D4fyC4RM.js} +1 -1
- package/dist/client/assets/{Monitor01-CzaMdv7O.js → Monitor01-gh3GDPr8.js} +1 -1
- package/dist/client/assets/{Package-B_oKQWoV.js → Package-BXkFeDMT.js} +1 -1
- package/dist/client/assets/{Palette-aZdbCqyk.js → Palette-DvrEWWT4.js} +1 -1
- package/dist/client/assets/{Play-DRAYi9GU.js → Play-D6amoQin.js} +1 -1
- package/dist/client/assets/{Plus-s9iAOKuQ.js → Plus-Bz7loY4f.js} +1 -1
- package/dist/client/assets/{SearchLg-D7fyGYfG.js → SearchLg-DvTulfGj.js} +1 -1
- package/dist/client/assets/{SearchMd-Cgk12b2j.js → SearchMd-LCBR2m3m.js} +1 -1
- package/dist/client/assets/{Settings02-Bf4dvOr1.js → Settings02-B51ZDizH.js} +1 -1
- package/dist/client/assets/{Shield01-CV5E9a5h.js → Shield01-CfKQ60er.js} +1 -1
- package/dist/client/assets/{Star01-D9NDG_K5.js → Star01-BrCcPuVF.js} +1 -1
- package/dist/client/assets/{Stars01-9oF50wFw.js → Stars01-CAjraTXl.js} +1 -1
- package/dist/client/assets/{Stars02-CuDGdqsM.js → Stars02-BjTmIaMZ.js} +1 -1
- package/dist/client/assets/{Sun-BcKbTGMs.js → Sun-DWrRa3yX.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BFZD0RQ8.js → SwitchHorizontal01-BLcjEnbu.js} +1 -1
- package/dist/client/assets/{Tool01-CDnvj0uR.js → Tool01-cmPVPWfy.js} +1 -1
- package/dist/client/assets/{Tool02-DlByzAO-.js → Tool02-B26tsl4g.js} +1 -1
- package/dist/client/assets/{Trash01-DHjnsqdk.js → Trash01-CL-hhLHz.js} +1 -1
- package/dist/client/assets/{TrendUp01-XpyTc9GG.js → TrendUp01-ZVidFF-q.js} +1 -1
- package/dist/client/assets/{Upload01-DWk5QdvZ.js → Upload01-vsvHLvaA.js} +1 -1
- package/dist/client/assets/{User01-VzenJT7w.js → User01-DPvuGxxC.js} +1 -1
- package/dist/client/assets/{UserPlus01-BpBDMd2t.js → UserPlus01-DTRkkPuG.js} +1 -1
- package/dist/client/assets/{Users01-CjHd9xfH.js → Users01-DAkYa73h.js} +1 -1
- package/dist/client/assets/{Users03-pKQ_og6v.js → Users03-dXp1ufdN.js} +1 -1
- package/dist/client/assets/{X-DlRJ2rqT.js → X-nh-lAoJ9.js} +1 -1
- package/dist/client/assets/{XCircle-K0IQBPd0.js → XCircle-BGAsxFPn.js} +1 -1
- package/dist/client/assets/{XClose-B_9k3jc3.js → XClose-CSyFLxIV.js} +1 -1
- package/dist/client/assets/{Zap-DeIxpPY7.js → Zap-Di08z3mI.js} +1 -1
- package/dist/client/assets/{ZapSquare-BaakKayG.js → ZapSquare-ChpA6sdD.js} +1 -1
- package/dist/client/assets/{ZoomOut-C-tHH6wi.js → ZoomOut-Bw94mtVG.js} +1 -1
- package/dist/client/assets/{access-gate-t7k-r6f5.js → access-gate-CrLLz-yL.js} +1 -1
- package/dist/client/assets/{add-section-modal-ituJeJzv.js → add-section-modal-BBh5-rgO.js} +1 -1
- package/dist/client/assets/{agent-icon-D6kd22oH.js → agent-icon-C-qK9QQP.js} +1 -1
- package/dist/client/assets/{agents-list-DcnkUGTw.js → agents-list-BFe2ryV7.js} +1 -1
- package/dist/client/assets/{ai-providers-RgY3bWJs.js → ai-providers-BM1lVkZu.js} +1 -1
- package/dist/client/assets/{alert-x-JAPruG.js → alert-DZjqlIoS.js} +1 -1
- package/dist/client/assets/{alert-dialog-8_X0aNT3.js → alert-dialog-n6V7r3dX.js} +1 -1
- package/dist/client/assets/{app-editor-L43rURc1.js → app-editor-BCzWBSCz.js} +1 -1
- package/dist/client/assets/{auth-6KA8z5G8.js → auth-BiUmtjwE.js} +1 -1
- package/dist/client/assets/{auth-catchall-CS4blww9.js → auth-catchall-CCvesDsm.js} +1 -1
- package/dist/client/assets/{auth-entry-Dzp94EEi.js → auth-entry-CO3BGHHT.js} +1 -1
- package/dist/client/assets/{auth-split-layout-VDQH2qfB.js → auth-split-layout-C1oeyfdQ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-8GYIZfXz.js → authenticate-and-persist-oauth-BVokl0ja.js} +1 -1
- package/dist/client/assets/{automation-list-row-BOCbV_Ns.js → automation-list-row-D_PKR44H.js} +1 -1
- package/dist/client/assets/{automation-runs-Bo6eq350.js → automation-runs-B3MRH4Ue.js} +1 -1
- package/dist/client/assets/automations-7K3BAiEK.js +1 -0
- package/dist/client/assets/{autosend-CINvvdzL.js → autosend-CXJZF5Z0.js} +1 -1
- package/dist/client/assets/{avatar-2zWMLB2T.js → avatar-CjaRl_73.js} +1 -1
- package/dist/client/assets/{badge-2lKqaUI-.js → badge-Bgeg2fRu.js} +1 -1
- package/dist/client/assets/{block-document-xwmZEDx9.js → block-document-_pMFHiYF.js} +1 -1
- package/dist/client/assets/{brand-context-QV5KXSnt.js → brand-context-Bi72USxh.js} +1 -1
- package/dist/client/assets/{buckets-DtQe1thi.js → buckets-CdfoFreA.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-GPIb0k63.js → bulk-category-panel-C0mBaEOS.js} +1 -1
- package/dist/client/assets/{calendar-DRapou-N.js → calendar-BWkFk64D.js} +1 -1
- package/dist/client/assets/{capability-load-error-BUZNW9xs.js → capability-load-error-Ce_wOXia.js} +1 -1
- package/dist/client/assets/{card-CJ0y5cjM.js → card-X8PevBIr.js} +1 -1
- package/dist/client/assets/{category-editor-DxrNO-QK.js → category-editor-DAi0v4SL.js} +1 -1
- package/dist/client/assets/{chat-context-R-odo0Kg.js → chat-context-Dk_Lat8F.js} +1 -1
- package/dist/client/assets/{checkbox-DdLC4QO_.js → checkbox-_0aEsmsd.js} +1 -1
- package/dist/client/assets/{cli-auth-success-ZZZNlwYc.js → cli-auth-success-Cng7kHAN.js} +1 -1
- package/dist/client/assets/{collection-detail-B7p2qGWU.js → collection-detail-BSXBusUs.js} +1 -1
- package/dist/client/assets/{collection-display-button-B958eBpw.js → collection-display-button-GDt3-KE2.js} +1 -1
- package/dist/client/assets/{collection-search-BdnUR825.js → collection-search-C5ZBxcYE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BhgppEMv.js → collection-table-wrapper-CsFDZ-oD.js} +1 -1
- package/dist/client/assets/{collection-tabs-8h0fVgGY.js → collection-tabs-BLo9632I.js} +1 -1
- package/dist/client/assets/{command-Bx4KWJlr.js → command-DMYAZJ4K.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-D_gmh511.js → commerce-onboarding-BKfuEAwm.js} +1 -1
- package/dist/client/assets/{companions-core-C8O0VmQb.js → companions-core-gEXsFjyG.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BcjZgII9.js → connect-desktop-dialog-Dxqz10c5.js} +1 -1
- package/dist/client/assets/{connection-card-BePNIerf.js → connection-card-itgnn1o8.js} +1 -1
- package/dist/client/assets/{connection-detail-BLX3TZNB.js → connection-detail-D8POxKuW.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BHVLouG0.js → connection-form-helpers-BLfFowmr.js} +1 -1
- package/dist/client/assets/{connections-BTpu6CuP.js → connections-fXI70Tj4.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Ce4OiEDe.js → decopilot-sse-pool-iUHbQN32.js} +1 -1
- package/dist/client/assets/{dialog-D2mzeoLX.js → dialog-DSMMHp7k.js} +1 -1
- package/dist/client/assets/{domain-settings-DUGu7Kg-.js → domain-settings-CrH1Ztmo.js} +1 -1
- package/dist/client/assets/{drawer-DRmu_rY1.js → drawer-DVZ6LfPY.js} +1 -1
- package/dist/client/assets/{dropdown-menu-zO3-29Rw.js → dropdown-menu-C25KxtxJ.js} +1 -1
- package/dist/client/assets/empty-state-BRubSasg.js +1 -0
- package/dist/client/assets/{extract-connection-data-cVPSbnIM.js → extract-connection-data-BM6vnnLN.js} +1 -1
- package/dist/client/assets/{file-explorer-Ba7SSvmb.js → file-explorer-Bjem1H-N.js} +1 -1
- package/dist/client/assets/{file-type-icon-MhD4jz4S.js → file-type-icon-5IRBmGyW.js} +1 -1
- package/dist/client/assets/{files-DSNEc-Js.js → files-DljQiShy.js} +1 -1
- package/dist/client/assets/{form-uZqegpZr.js → form-v_v0yrL_.js} +1 -1
- package/dist/client/assets/{general-CfzET2AQ.js → general-CCFcm1Qv.js} +1 -1
- package/dist/client/assets/{github-repo-picker-m2Mr9t46.js → github-repo-picker-XYJ5PlsS.js} +1 -1
- package/dist/client/assets/{hooks-BJZw1ba7.js → hooks-D2zwv91o.js} +1 -1
- package/dist/client/assets/{index-BTwTiMGE.js → index-B0jR2vR4.js} +1 -1
- package/dist/client/assets/{index-zC4wMbq1.js → index-Bv2X_RsF.js} +1 -1
- package/dist/client/assets/{index-DxJ3NFee.js → index-C9N_dWzA.js} +1 -1
- package/dist/client/assets/{index-Byd60uPi.js → index-CEIVV-eX.js} +5 -5
- package/dist/client/assets/{index-CINDE3gW.js → index-CK-_Svsz.js} +1 -1
- package/dist/client/assets/{index-d_9554Y1.js → index-CW-frCvB.js} +3 -3
- package/dist/client/assets/{index-rTTfkhzt.js → index-CXwn5wJs.js} +1 -1
- package/dist/client/assets/{index-CdqAAzrT.js → index-CbKtPPYD.js} +1 -1
- package/dist/client/assets/{index-BLXoIjsE.js → index-CtAI_Tcv.js} +1 -1
- package/dist/client/assets/{index-G-0PiF0n.js → index-DCkGXUo7.js} +1 -1
- package/dist/client/assets/{index-DyWrYiQZ.js → index-D_aEBgoO.js} +1 -1
- package/dist/client/assets/{index-1f8TvskQ.js → index-E1YY2L0V.js} +1 -1
- package/dist/client/assets/{index-vXr1Im7Z.js → index-RPh27idC.js} +2 -2
- package/dist/client/assets/{index-DkKmPO2L.js → index-don4pY8a.js} +1 -1
- package/dist/client/assets/{index-redirect-C1Jy3bXO.js → index-redirect-DWsiHE_H.js} +1 -1
- package/dist/client/assets/{input-Cn3HFYBz.js → input-Bh6jfBSY.js} +1 -1
- package/dist/client/assets/{integration-icon-y9Ce5Ars.js → integration-icon-COnO4G_g.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CM6LNIy3.js → invite-member-dialog-D6xpR-Qy.js} +1 -1
- package/dist/client/assets/{label-Bj2IN0tE.js → label-0VMJq-Lb.js} +1 -1
- package/dist/client/assets/{layout-BDjIIlw1.js → layout-CzNN-LbN.js} +1 -1
- package/dist/client/assets/{login-DkEdK7yE.js → login-r--GMbC0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dd2LLdAc.js → mcp-oauth-CTMtegDM.js} +1 -1
- package/dist/client/assets/{members-Bp3mVV_G.js → members-Y8qsAhwm.js} +1 -1
- package/dist/client/assets/{monaco-editor-B6etC9gn.js → monaco-editor-AmLAOARt.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CTwd1sRa.js → monitoring-stats-row-D2OiWqgN.js} +1 -1
- package/dist/client/assets/{multi-select-GYPItwk2.js → multi-select-CECHHZ2Q.js} +1 -1
- package/dist/client/assets/{oauth-callback-BRdZdYy_.js → oauth-callback-Dim9aq-a.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cba6UZhh.js → oauth-callback-ai-provider-Wt7pRmmv.js} +1 -1
- package/dist/client/assets/{onboarding-B4a05ioB.js → onboarding-BKUilEh5.js} +1 -1
- package/dist/client/assets/{org-install-rIrPXEww.js → org-install-EaOEXvIc.js} +1 -1
- package/dist/client/assets/{org-layout-DpQD_b6S.js → org-layout-CkAZlUK_.js} +1 -1
- package/dist/client/assets/{organization-choice-Dvc06LEo.js → organization-choice-BDpNe-kr.js} +1 -1
- package/dist/client/assets/{orgs-CyO7LFCE.js → orgs-BBPF2dvP.js} +1 -1
- package/dist/client/assets/{page-seo-form-CZ2Y2h-_.js → page-seo-form-BLchAW2-.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Cd2F_u4n.js +1 -0
- package/dist/client/assets/{popover-CEfkL5Ok.js → popover-CStICzGk.js} +1 -1
- package/dist/client/assets/{post-editor-Cch5aF9t.js → post-editor-kLIsDRl5.js} +1 -1
- package/dist/client/assets/{primitives-RP8ieO9G.js → primitives-Cy4duky0.js} +1 -1
- package/dist/client/assets/{profile-BcomJUic.js → profile-DjYxdZ1v.js} +1 -1
- package/dist/client/assets/project-app-view-DSqs7t7m.js +1 -0
- package/dist/client/assets/record-editor-Bo6yXT4o.js +1 -0
- package/dist/client/assets/redirect-editor-CjFkFKFF.js +1 -0
- package/dist/client/assets/registry-BhkXI7WR.js +2 -0
- package/dist/client/assets/{registry-layout-CsT03P25.js → registry-layout-T7XwrR9-.js} +1 -1
- package/dist/client/assets/{reports-CHWNlOsM.js → reports-Cli9K1Os.js} +1 -1
- package/dist/client/assets/{require-capability-ILpab2-c.js → require-capability-vQhT2fzw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DMdOyseA.js → required-auth-layout-u-LZwScR.js} +1 -1
- package/dist/client/assets/{reset-password-77WKKfVZ.js → reset-password-DU77F14W.js} +1 -1
- package/dist/client/assets/{roles-BNgO_3EV.js → roles-UarmzT95.js} +1 -1
- package/dist/client/assets/{search-input-DJgcKOu4.js → search-input-D3ST0qhK.js} +1 -1
- package/dist/client/assets/{secrets-DMlw99CN.js → secrets-CnMya7Aa.js} +1 -1
- package/dist/client/assets/{sections-editor-BUfSOREy.js → sections-editor-VJungP8L.js} +1 -1
- package/dist/client/assets/{select-model-Cd6NiVau.js → select-model-XJdXc61b.js} +1 -1
- package/dist/client/assets/{select-CKR1QLGY.js → select-x3JQ-RMK.js} +1 -1
- package/dist/client/assets/{self-tool-result-B790UGHN.js → self-tool-result-DjEGnrMB.js} +1 -1
- package/dist/client/assets/{seo-editor-CIo7VrLi.js → seo-editor-VDc1kVOl.js} +1 -1
- package/dist/client/assets/{settings-layout-DHtSgskM.js → settings-layout-DM49EMy5.js} +1 -1
- package/dist/client/assets/{settings-section-lu8K8qNr.js → settings-section-rDf583ia.js} +1 -1
- package/dist/client/assets/{shell-controls-CNT8qZFR.js → shell-controls-YRxMt7Ep.js} +1 -1
- package/dist/client/assets/{shell-layout-CuLyGySI.js → shell-layout-F5G52jTC.js} +1 -1
- package/dist/client/assets/{sidebar-EhIhuJ6p.js → sidebar-BKNPuVLe.js} +1 -1
- package/dist/client/assets/{skeleton-bIy0rnkE.js → skeleton-6SB_9DNZ.js} +1 -1
- package/dist/client/assets/{sso-C2u69Rg0.js → sso-zrdH8Br4.js} +1 -1
- package/dist/client/assets/{store-4U9JC4Kw.js → store-C083vtgL.js} +1 -1
- package/dist/client/assets/store-registry-BTX3JlmI.js +2 -0
- package/dist/client/assets/{studio-tools-xfuZIAbL.js → studio-tools-Dh5WF9Xa.js} +1 -1
- package/dist/client/assets/{switch-i6z5ncuh.js → switch-Dof4h0cK.js} +1 -1
- package/dist/client/assets/{table-h5O0COJ_.js → table-BMAClQxa.js} +1 -1
- package/dist/client/assets/{tabs-BvTX2JTj.js → tabs-kA2W3Sac.js} +1 -1
- package/dist/client/assets/{textarea-DrazYtku.js → textarea-C_jCSzCx.js} +1 -1
- package/dist/client/assets/{toggle-group-CdMv1mZc.js → toggle-group-CyCl4f6n.js} +1 -1
- package/dist/client/assets/{toolbar-CFJklGTz.js → toolbar-BWE-_zyA.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Dq_erqID.js → toolbar-icon-button-Kwfu3goF.js} +1 -1
- package/dist/client/assets/{tooltip-tSWBpVdP.js → tooltip-2HPu4RGb.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Pgsewvyy.js → use-ai-providers-Blpgxebg.js} +1 -1
- package/dist/client/assets/{use-automations-xzPa9Qz9.js → use-automations-Bt3dZ-M9.js} +1 -1
- package/dist/client/assets/{use-autosave-eHHyPcju.js → use-autosave-C6muYSz0.js} +1 -1
- package/dist/client/assets/{use-capability-DleMNRmL.js → use-capability-BQHuJWJr.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Sgq-h4Pq.js → use-clock-tick-BMPCELUk.js} +1 -1
- package/dist/client/assets/{use-collections-BRdyCpG3.js → use-collections-C1J3GQpR.js} +1 -1
- package/dist/client/assets/{use-connection-CNzH1Q18.js → use-connection-NmR6dvUm.js} +1 -1
- package/dist/client/assets/{use-copy-DNncdZ-d.js → use-copy-NStrWZLh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CNF0DmqK.js → use-create-virtual-mcp-qIpQsEnE.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DYIe9X8a.js → use-debounced-autosave-CGIXl8u6.js} +1 -1
- package/dist/client/assets/{use-debounced-value-o42v0FWI.js → use-debounced-value-DqlOqEus.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BJVagszH.js → use-deco-credits-CVLKWJIA.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-ir8wyd_9.js → use-decopilot-events-Bc8oHEVV.js} +1 -1
- package/dist/client/assets/{use-delete-connection-AP4DZUNl.js → use-delete-connection-Cqubh5me.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DsRG4oEa.js → use-deployment-admin-BCJqypmY.js} +1 -1
- package/dist/client/assets/{use-file-configs-DcSi6Dfk.js → use-file-configs-Dg3JAXLL.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dd_dskw1.js → use-infinite-scroll-HBo6BgG2.js} +1 -1
- package/dist/client/assets/{use-join-requests-CWZQEkA-.js → use-join-requests-S9TrPHEO.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BfJAIJmp.js → use-mcp-auth-status-CESYdV6e.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DELo29Hq.js → use-mcp-client-Byx07Dkp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bq9j7ZxM.js → use-mcp-tools-BjViD0C1.js} +1 -1
- package/dist/client/assets/{use-members-BEHPSyO8.js → use-members-CJQYBP-7.js} +1 -1
- package/dist/client/assets/{use-mobile-CuRr7MNX.js → use-mobile-BmSCNgu-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-tANgJdAX.js → use-navigate-to-agent-SXHfducG.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BaXkofgJ.js → use-org-auth-client-DvA4mWM6.js} +1 -1
- package/dist/client/assets/{use-org-sso-DhfrnXc7.js → use-org-sso-BxYFEe-j.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BiPGN_Sn.js → use-organization-roles-CBOBYmxE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BhItPJtz.js → use-organization-settings-DkmAV78T.js} +1 -1
- package/dist/client/assets/{use-registry-app-DF6gqHLv.js → use-registry-app-CT5qp6qN.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BiyYTISI.js → use-registry-connections-DJYW5MTo.js} +1 -1
- package/dist/client/assets/{use-secrets-DApxiwPB.js → use-secrets-00nGi3R2.js} +1 -1
- package/dist/client/assets/{use-status-sounds-mB08SLvZ.js → use-status-sounds-CtFZ8vsn.js} +1 -1
- package/dist/client/assets/{use-view-mode-CHRpcv8m.js → use-view-mode-BUDQh3CV.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dsl5gp0V.js → use-virtual-mcp-BWDACHuK.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Byg89hfs.js +1 -0
- package/dist/client/assets/{useRouterState-BbJ_h8lR.js → useRouterState-NHNd_HiS.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-t0KcEsNQ.js +1 -0
- package/dist/client/assets/{users-Ci8BILWB.js → users-Dju8Mwa7.js} +1 -1
- package/dist/client/assets/{variant-calendar-Di62Bi78.js → variant-calendar-lVo1tb7b.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DP-Vkbud.js → view-mode-toggle-BOhixd9T.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/automations-BQT-5v7c.js +0 -1
- package/dist/client/assets/empty-state-BCavGeRQ.js +0 -1
- package/dist/client/assets/page-seo-sheet-Dj6qR8N3.js +0 -1
- package/dist/client/assets/project-app-view-BE2ZnDer.js +0 -1
- package/dist/client/assets/record-editor-CyBa6iML.js +0 -1
- package/dist/client/assets/redirect-editor-C1Q_i4NO.js +0 -1
- package/dist/client/assets/registry-DLCfIcM-.js +0 -2
- package/dist/client/assets/store-registry-DoLvSu2s.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C9ZV5Ac1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B9Qfbkt0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as d,r as p,j as r}from"./index-
|
|
1
|
+
import{c as f,l as d,r as p,j as r}from"./index-CW-frCvB.js";import{r as w}from"./sidebar-BKNPuVLe.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-CW-frCvB.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as re,r as q,b as yt,C as He,j as t,B as Z,t as Ie,l as de,K as ut,m as wt,x as ls,u as rs,p as ft,E as as}from"./index-
|
|
1
|
+
import{c as re,r as q,b as yt,C as He,j as t,B as Z,t as Ie,l as de,K as ut,m as wt,x as ls,u as rs,p as ft,E as as}from"./index-CW-frCvB.js";import{S as os}from"./search-input-D3ST0qhK.js";import{P as Le}from"./index-CXwn5wJs.js";import{E as St}from"./empty-state-BRubSasg.js";import{R as ns}from"./require-capability-vQhT2fzw.js";import{N as Tt,A as is,Q as cs,U as Mt,V as it,W as Pt,X as pt,Y as ds,Z as Dt,_ as Ut,L as ms,$ as us}from"./automation-runs-B3MRH4Ue.js";import{u as vt}from"./use-connection-NmR6dvUm.js";import{g as Vt}from"./connection-slug-eyAPH6o3.js";import{B as qe}from"./badge-Bgeg2fRu.js";import{b as tt,P as st,a as lt}from"./popover-CStICzGk.js";import{b as ct,T as dt,a as mt}from"./tooltip-2HPu4RGb.js";import{i as ht}from"./Check-B1SirwZu.js";import{a as ot}from"./Copy01-DvYXKq8Z.js";import{n as Lt}from"./Globe01-BPvkaID5.js";import{i as It}from"./FilterLines-CKkJTX1P.js";import{i as xs}from"./Key01-CSjfIfTE.js";import{i as fs}from"./Play-D6amoQin.js";import{an as ps,U as hs}from"./agent-icon-C-qK9QQP.js";import{M as Ft}from"./monaco-editor-AmLAOARt.js";import{u as gs}from"./use-members-CJQYBP-7.js";import{u as js}from"./use-mcp-client-Byx07Dkp.js";import{u as vs}from"./use-virtual-mcp-BWDACHuK.js";import{S as Ns,W as bs}from"./constants-BHDe7bIw.js";import{n as rt}from"./Tool02-B26tsl4g.js";import{c as ys}from"./SwitchHorizontal01-BLcjEnbu.js";import{s as ws}from"./Plus-Bz7loY4f.js";import{s as Ss}from"./Trash01-CL-hhLHz.js";import{I as Ge}from"./input-Bh6jfBSY.js";import{M as We}from"./multi-select-CECHHZ2Q.js";import{a as Xe,b as Ye,c as Ze,d as ge,S as et}from"./select-x3JQ-RMK.js";import{t as Kt}from"./ChevronDown-XW3mndxm.js";import{s as Is}from"./Stars02-BjTmIaMZ.js";import{C as Cs}from"./calendar-BWkFk64D.js";import{b as ks}from"./UserPlus01-DTRkkPuG.js";import{T as _s}from"./textarea-C_jCSzCx.js";import{C as qt}from"./collection-tabs-BLo9632I.js";import{S as Ts}from"./switch-Dof4h0cK.js";import{L as Ms}from"./label-0VMJq-Lb.js";import{I as Be}from"./integration-icon-COnO4G_g.js";import{A as Bt}from"./avatar-CjaRl_73.js";import{A as Ds,a as Ls,b as Fs}from"./alert-DZjqlIoS.js";import{C as Ht}from"./card-X8PevBIr.js";import{K as Me}from"./monitoring-stats-row-D2OiWqgN.js";import{u as Jt}from"./studio-tools-Dh5WF9Xa.js";import{u as $s}from"./useSuspenseInfiniteQuery-t0KcEsNQ.js";import{o as Rs,m as Os,p as zs,q as As}from"./sidebar-BKNPuVLe.js";import{T as $e,a as xt,b as Qt,c as Gt,d as Wt,e as oe}from"./table-BMAClQxa.js";import{n as Es}from"./ChevronUp-CBA75LiO.js";import{u as Ps}from"./use-infinite-scroll-HBo6BgG2.js";import{c as Us,b as Vs}from"./use-automations-Bt3dZ-M9.js";import"./SearchMd-LCBR2m3m.js";import"./use-capability-BQHuJWJr.js";import"./access-gate-CrLLz-yL.js";import"./capability-load-error-Ce_wOXia.js";import"./useInfiniteQuery-Byg89hfs.js";import"./use-clock-tick-BMPCELUk.js";import"./AlertCircle-DU6qWK9T.js";import"./CheckCircle-DlnXCgUt.js";import"./Circle-HACtkegN.js";import"./XCircle-BGAsxFPn.js";import"./Stars01-CAjraTXl.js";import"./ChevronRight-CMxF_EMm.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-NStrWZLh.js";import"./file-type-icon-5IRBmGyW.js";import"./dialog-DSMMHp7k.js";import"./X-nh-lAoJ9.js";import"./ZoomOut-Bw94mtVG.js";import"./use-mobile-BmSCNgu-.js";import"./tab-id-BijBBRwE.js";import"./hooks-D2zwv91o.js";import"./decopilot-sse-pool-iUHbQN32.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-Dk_Lat8F.js";import"./autosend-CXJZF5Z0.js";import"./use-ai-providers-Blpgxebg.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-Bc8oHEVV.js";import"./use-organization-settings-DkmAV78T.js";import"./index-Bv2X_RsF.js";import"./Eye-CikrhNcF.js";import"./Star01-BrCcPuVF.js";import"./XClose-CSyFLxIV.js";import"./ZapSquare-ChpA6sdD.js";import"./Tool01-cmPVPWfy.js";import"./Monitor01-gh3GDPr8.js";import"./Upload01-vsvHLvaA.js";import"./shell-layout-F5G52jTC.js";import"./Users03-dXp1ufdN.js";import"./SearchLg-DvTulfGj.js";import"./Zap-Di08z3mI.js";import"./required-auth-layout-u-LZwScR.js";import"./use-org-sso-BxYFEe-j.js";import"./Image01-BxR0qJ9h.js";import"./LinkExternal01-BapUlNlT.js";import"./ArrowUpRight-DmbxJntq.js";import"./Palette-DvrEWWT4.js";import"./use-navigate-to-agent-SXHfducG.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BX2a1Rtg.js";import"./form-v_v0yrL_.js";import"./use-collections-C1J3GQpR.js";import"./ArrowUp-DYmWx-L-.js";import"./Settings02-B51ZDizH.js";import"./TrendUp01-ZVidFF-q.js";import"./DotsVertical-Bk2adjcS.js";import"./Flag01-BiiEWwXG.js";import"./Globe04-BLOGIunc.js";import"./HardDrive-BBQgAxPW.js";import"./LayoutLeft-vGwalVIw.js";import"./List-D4fyC4RM.js";import"./Sun-DWrRa3yX.js";import"./Package-BXkFeDMT.js";import"./Shield01-CfKQ60er.js";import"./User01-DPvuGxxC.js";import"./Users01-DAkYa73h.js";import"./index-C9N_dWzA.js";import"./use-org-auth-client-DvA4mWM6.js";import"./auth-BiUmtjwE.js";import"./checkbox-_0aEsmsd.js";import"./command-DMYAZJ4K.js";import"./index-don4pY8a.js";const Nt={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Re(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${r}`}).join(",")}function Ks(s){return s?s.split(",").map(e=>{const[l,r,...o]=e.split(":");return{key:decodeURIComponent(l||""),operator:r||"eq",value:decodeURIComponent(o.join(":")||"")}}):[]}function nt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function $t(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...r]=e.split("=");return{key:l||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[l,...r]=e.split("~");return{key:l||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[l,...r]=e.split("@");return{key:l||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function qs(s){const e={},l={},r=[],o={};for(const a of s)if(a.key.trim())switch(a.operator){case"eq":a.value&&(e[a.key]=a.value);break;case"contains":a.value&&(l[a.key]=`%${a.value}%`);break;case"exists":r.push(a.key);break;case"in":a.value&&(o[a.key]=a.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(o).length>0?o:void 0}}function Rt(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};if(typeof s._decocms_truncated=="string")return{content:s._decocms_truncated,isTruncated:!0,originalSize:s._decocms_truncated.length};const e=JSON.stringify(s,null,2),l=e.length;return l<=Nt.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:l}:{content:e.slice(0,Nt.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,C as de,n as Ze,d as We,K as X,m as ie,aY as wn,r as S,ap as Cs,l as ce,j as r,U as $s,i as Ps,B as J,aL as jn,t as ue,w as Es,L as Ds,e as Ts,b as kn,u as Sn,E as Et}from"./index-d_9554Y1.js";import{s as Nn}from"./Eye-DuURW-Nq.js";import{a as ut}from"./Palette-aZdbCqyk.js";import{s as Fs}from"./Plus-s9iAOKuQ.js";import{i as Is}from"./SearchLg-D7fyGYfG.js";import{i as ft}from"./Upload01-DWk5QdvZ.js";import{s as zn}from"./XClose-B_9k3jc3.js";import{i as Ut}from"./Zap-DeIxpPY7.js";import{u as Cn}from"./use-mobile-CuRr7MNX.js";import{f as Ms,a as Ls,b as Os,c as Rs,d as As,e as _s,A as Us,g as Bs}from"./alert-dialog-8_X0aNT3.js";import{D as $n,a as Ue,d as Je,e as et,i as Pn,h as Hs,c as qs}from"./dialog-D2mzeoLX.js";import{I as Ve}from"./input-Cn3HFYBz.js";import{F as ke,M as Bt,d as En}from"./file-type-icon-MhD4jz4S.js";import{T as Ks}from"./toolbar-CFJklGTz.js";import{a as Ws}from"./Package-B_oKQWoV.js";import{u as Gs}from"./use-debounced-value-o42v0FWI.js";import{p as gt,b as le,a as Me,c as Dn,d as Vs}from"./location-BpLtHjTZ.js";import{b as Xs,f as at,s as Qs,c as tn,d as Ys,g as Zs,i as Js,h as Tn,a as Fn,j as el,e as tl}from"./ZoomOut-C-tHH6wi.js";import{S as ae}from"./skeleton-bIy0rnkE.js";import{T as nl}from"./textarea-DrazYtku.js";import{t as sl}from"./ChevronDown-BE1u6Af1.js";import{n as ll}from"./ChevronUp-BlWUXjHa.js";import{i as ht}from"./X-DlRJ2rqT.js";import{P as rl,b as il,a as ol}from"./popover-CEfkL5Ok.js";import{b as be,T as ye,a as ve}from"./tooltip-tSWBpVdP.js";import{i as al}from"./Check-DaMzVABD.js";import{a as cl}from"./Copy01-CUSINCy2.js";import{n as Xe,i as bt}from"./Globe01-BaUO7lmU.js";import{i as In}from"./Key01-PWC8jtJj.js";import{n as Mn}from"./LinkExternal01-CpBtMHuG.js";import{l as dl,F as ul}from"./index-DxJ3NFee.js";import{a as fl}from"./Image01-DjySPnlH.js";import{D as Ht,a as qt,c as Kt,d as Fe}from"./dropdown-menu-zO3-29Rw.js";import{i as hl}from"./LayoutLeft-B3R842oK.js";import{i as ml}from"./ChevronRight-DIx28vbN.js";import{t as pl}from"./Stars01-9oF50wFw.js";import{i as Ln}from"./DotsVertical-CLbmJmSz.js";import{s as On}from"./Trash01-DHjnsqdk.js";function Rn(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const l=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${l?`?${l}`:""}`}async function fe(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let l="";try{l=(await s.json()).error??""}catch{}throw new Error(l||`HTTP ${s.status}`)}function Wt(n,e){const t=$.c(11),{org:s}=de();let l;t[0]!==s.id||t[1]!==e||t[2]!==n?(l=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=l):l=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await fe(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(xl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==l||t[9]!==i?(o={queryKey:l,placeholderData:wn,queryFn:i},t[8]=l,t[9]=i,t[10]=o):o=t[10],ie(o)}function xl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function An(n,e,t){const s=$.c(15),{org:l}=de();let i;s[0]!==l.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(l.id,n??"",e),s[0]=l.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==l.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fe(pe(l.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=l.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function gl(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let l;e[3]!==t.slug||e[4]!==n?(l=async()=>await(await fe(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=l):l=e[5];let i;return e[6]!==s||e[7]!==l?(i={queryKey:s,queryFn:l},e[6]=s,e[7]=l,e[8]=i):i=e[8],ie(i)}function bl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:l}=de();let i;t[0]!==l.id?(i=X.orgFsRecent(l.id),t[0]=l.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==l.slug?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=l.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function yl(n,e){const t=$.c(11),s=50,{org:l}=de();let i;t[0]!==l.id||t[1]!==n?(i=X.orgFsSearch(l.id,n),t[0]=l.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==l.slug||t[5]!==n?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=l.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:wn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Oo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const l=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await fe(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(vl)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==l||e[6]!==i?(o={queryKey:s,enabled:l,queryFn:i},e[4]=s,e[5]=l,e[6]=i,e[7]=o):o=e[7],ie(o)}function vl(n){return{volume:n.volume,path:n.path}}async function Ro(n){const e=await fe(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function wl(n,e,t){return(await fe(pe(n,e,"read",{path:t}))).text()}const jl=new Set(["md","mdx","markdown","txt","text"]),kl=25,Sl=64*1024,Nl=256*1024,zl=4;function Cl(n){const e=n.lastIndexOf(".");return e===-1?!1:jl.has(n.slice(e+1).toLowerCase())}async function Ao(n,e,t){const s=t?`${t}/`:"",l=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await fe(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<zl&&a.push({path:m.path,depth:u.depth+1});continue}Cl(m.path)&&m.size<=Sl&&i.length<kl?i.push(m.path):o.push(l(m.path))}}const c=await Promise.all(i.map(u=>wl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>Nl){o.push(l(u));return}f+=m.length,d.push({relPath:l(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function _n(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await fe(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let l;return n[4]!==t||n[5]!==s?(l={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=l):l=n[6],ie(l)}function $l(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=l=>pe(t.slug,n,"read",{path:l}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function tt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,l)=>pe(e.slug,s,"read",{path:l}),n[0]=e.slug,n[1]=t):t=n[1],t}function Un(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async l=>(await(await fe(pe(t.slug,n,"file",{path:l.path}),{method:"PUT",headers:{"content-type":l.contentType??"text/html; charset=utf-8"},body:l.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],We(s)}function Pl(n){const e=$.c(18),{org:t}=de(),s=Ze();let l;e[0]!==t||e[1]!==n?(l=async d=>(await(await fe(pe(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=l):l=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==l||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:l,onMutate:i,onError:o,onSettled:a},e[13]=l,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function Ot(n){const e=$.c(26),{org:t}=de(),s=Ze();let l;e[0]!==t||e[1]!==s||e[2]!==n?(l=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=l):l=e[3];const i=l;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await fe(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await fe(pe(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await fe(pe(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const yt=S.createContext(null);yt.displayName="PanelGroupContext";const se={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Te=S.useLayoutEffect,nn=Cs.useId,El=typeof nn=="function"?nn:()=>null;let Dl=0;function Vt(n=null){const e=El(),t=S.useRef(n||e||null);return t.current===null&&(t.current=""+Dl++),n??t.current}function Bn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:l,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=S.useContext(yt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:C,isPanelCollapsed:k,reevaluatePanelConstraints:w,registerPanel:B,resizePanel:R,unregisterPanel:_}=b,v=Vt(o),I=S.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:l,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});S.useRef({didLogMissingDefaultSizeWarning:!1}),Te(()=>{const{callbacks:U,constraints:O}=I.current,H={...O};I.current.id=v,I.current.idIsFromProps=o!==void 0,I.current.order=h,U.onCollapse=d,U.onExpand=f,U.onResize=u,O.collapsedSize=t,O.collapsible=s,O.defaultSize=l,O.maxSize=a,O.minSize=c,(H.collapsedSize!==O.collapsedSize||H.collapsible!==O.collapsible||H.maxSize!==O.maxSize||H.minSize!==O.minSize)&&w(I.current,H)}),Te(()=>{const U=I.current;return B(U),()=>{_(U)}},[h,v,B,_]),S.useImperativeHandle(i,()=>({collapse:()=>{x(I.current)},expand:U=>{y(I.current,U)},getId(){return v},getSize(){return j(I.current)},isCollapsed(){return k(I.current)},isExpanded(){return!k(I.current)},resize:U=>{R(I.current,U)}}),[x,y,j,k,v,R]);const Z=N(I.current,l);return S.createElement(p,{...g,children:n,className:e,id:v,style:{...Z,...m},[se.groupId]:C,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Hn=S.forwardRef((n,e)=>S.createElement(Bn,{...n,forwardedRef:e}));Bn.displayName="Panel";Hn.displayName="forwardRef(Panel)";let Rt=null,dt=-1,ze=null;function Tl(n,e){if(e){const t=(e&Vn)!==0,s=(e&Xn)!==0,l=(e&Qn)!==0,i=(e&Yn)!==0;if(t)return l?"se-resize":i?"ne-resize":"e-resize";if(s)return l?"sw-resize":i?"nw-resize":"w-resize";if(l)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Fl(){ze!==null&&(document.head.removeChild(ze),Rt=null,ze=null,dt=-1)}function Dt(n,e){var t,s;const l=Tl(n,e);if(Rt!==l){if(Rt=l,ze===null&&(ze=document.createElement("style"),document.head.appendChild(ze)),dt>=0){var i;(i=ze.sheet)===null||i===void 0||i.removeRule(dt)}dt=(t=(s=ze.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${l} !important;}`))!==null&&t!==void 0?t:-1}}function qn(n){return n.type==="keydown"}function Kn(n){return n.type.startsWith("pointer")}function Wn(n){return n.type.startsWith("mouse")}function vt(n){if(Kn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Wn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Il(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ml(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function Ll(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:rn(n),b:rn(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;G(s,"Stacking order can only be calculated for elements with a common ancestor");const l={a:ln(sn(t.a)),b:ln(sn(t.b))};if(l.a===l.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(l.a-l.b)}const Ol=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Rl(n){var e;const t=getComputedStyle((e=Gn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Al(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Rl(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Ol.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function sn(n){let e=n.length;for(;e--;){const t=n[e];if(G(t,"Missing node"),Al(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function rn(n){const e=[];for(;n;)e.push(n),n=Gn(n);return e}function Gn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Vn=1,Xn=2,Qn=4,Yn=8,_l=Il()==="coarse";let xe=[],_e=!1,De=new Map,wt=new Map;const Qe=new Set;function Ul(n,e,t,s,l){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:l},c=(i=De.get(o))!==null&&i!==void 0?i:0;return De.set(o,c+1),Qe.add(a),mt(),function(){var f;wt.delete(n),Qe.delete(a);const u=(f=De.get(o))!==null&&f!==void 0?f:1;if(De.set(o,u-1),mt(),u===1&&De.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),l("up",!0,null)}}}function Bl(n){const{target:e}=n,{x:t,y:s}=vt(n);_e=!0,Xt({target:e,x:t,y:s}),mt(),xe.length>0&&(pt("down",n),n.preventDefault(),Zn(e)||n.stopImmediatePropagation())}function Tt(n){const{x:e,y:t}=vt(n);if(_e&&n.buttons===0&&(_e=!1,pt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}pt("move",n),Qt(),xe.length>0&&n.preventDefault()}function Ft(n){const{target:e}=n,{x:t,y:s}=vt(n);wt.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Zn(e)||n.stopImmediatePropagation()),pt("up",n),Xt({target:e,x:t,y:s}),Qt(),mt()}function Zn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(l=>{const{element:i,hitAreaMargins:o}=l,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=_l?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&Ll(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Ml(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(l)}})}function It(n,e){wt.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:l}=s;l==="horizontal"?n=!0:e=!0});let t=0;wt.forEach(s=>{t|=s}),n&&e?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("vertical",t):Fl()}let Mt=new AbortController;function mt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Qe.size&&(_e?(xe.length>0&&De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Ft,n),s.addEventListener("pointerleave",Tt,n),s.addEventListener("pointermove",Tt,n))}),window.addEventListener("pointerup",Ft,n),window.addEventListener("pointercancel",Ft,n)):De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Bl,n),s.addEventListener("pointermove",Tt,n))}))}function pt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,l=xe.includes(t);s(n,l,e)})}function Hl(){const[n,e]=S.useState(0);return S.useCallback(()=>e(t=>t+1),[])}function G(n,e){if(!n)throw console.error(e),Error(e)}function Ie(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function we(n,e,t=Gt){return Ie(n,e,t)===0}function me(n,e,t){return Ie(n,e,t)===0}function ql(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const l=n[s],i=e[s];if(!me(l,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];G(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:l=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Ie(t,a)<0)if(i){const c=(l+a)/2;Ie(t,c)<0?t=l:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:l,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;G(a!=null,"Invalid first pivot index"),G(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];G(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(G(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Ie(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];G(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(G(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Ie(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];G(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];G(p!=null,`Previous layout not found for panel index ${h}`);const g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(ql(l,o))return l;{const u=n<0?c:a,h=e[u];G(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];G(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:l}function Kl({layout:n,panelsArray:e,pivotIndices:t}){let s=0,l=100,i=0,o=0;const a=t[0];G(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,l=p):(i+=g,o+=p)});const c=Math.min(l,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Jn(n,e,t=document){const l=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return l??null}function es(n,e,t){const s=Jn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ts(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function jt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function Wl(n,e,t,s=document){var l,i,o,a;const c=jt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(l=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&l!==void 0?l:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Gl({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:l,panelGroupElement:i,setLayout:o}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Te(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<l.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Kl({layout:s,panelsArray:l,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=l[c];G(m,`No panel data found for index "${c}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,l,i]),S.useEffect(()=>{if(!i)return;const a=e.current;G(a,"Eager values not found");const{panelDataArray:c}=a,d=ts(t,i);G(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);G(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);G(m,"Resize handle element has no handle id attribute");const[p,g]=Wl(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];G(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:C=0,collapsible:k,minSize:w=0}=j.constraints;if(N!=null&&k){const B=He({delta:me(N,C)?w-C:C-N,initialLayout:s,panelConstraints:c.map(R=>R.constraints),pivotIndices:es(t,m,i),prevLayout:s,trigger:"keyboard"});s!==B&&o(B)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,l,o])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function ns(n,e){const t=n==="horizontal",{x:s,y:l}=vt(e);return t?s:l}function Vl(n,e,t,s,l){const i=t==="horizontal",o=jt(e,l);G(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);G(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=ns(t,n),f=ts(a,l);G(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Xl(n,e,t,s,l,i){if(qn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:l!=null?a=l:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Vl(n,e,t,s,i)}function Ql({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,l=100;for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,l-=a)}for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=l/c;s++,e[i]=d,l-=d}return e}function Le(n,e,t){e.forEach((s,l)=>{const i=n[l];G(i,`Panel data not found for index ${l}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||we(u,d))&&!we(s,d)&&m(),h&&(u==null||!we(u,d))&&we(s,d)&&h())}})}function ct(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Yl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:l,precision:i=3}){const o=t[l];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Zl(n,e=10){let t=null;return(...l)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...l)},e)}}function an(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ss(n){return`react-resizable-panels:${n}`}function ls(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:l,order:i}=e;return l?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function rs(n,e){try{const t=ss(n),s=e.getItem(t);if(s){const l=JSON.parse(s);if(typeof l=="object"&&l!=null)return l}}catch{}return null}function Jl(n,e,t){var s,l;const i=(s=rs(n,t))!==null&&s!==void 0?s:{},o=ls(e);return(l=i[o])!==null&&l!==void 0?l:null}function er(n,e,t,s,l){var i;const o=ss(n),a=ls(e),c=(i=rs(n,l))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{l.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function cn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let l=0;for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(l+=o-a,t[i]=a)}if(!me(l,0))for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=o+l,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(l-=c-o,t[i]=c,me(l,0)))break}return t}const tr=100,qe={getItem:n=>(an(qe),qe.getItem(n)),setItem:(n,e)=>{an(qe),qe.setItem(n,e)}},dn={};function is({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:l,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=S.useRef(null),[p,g]=S.useState(null),[b,x]=S.useState([]),y=Hl(),j=S.useRef({}),N=S.useRef(new Map),C=S.useRef(0),k=S.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=S.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:()=>k.current.id,getLayout:()=>{const{layout:z}=w.current;return z},setLayout:z=>{const{onLayout:F}=k.current,{layout:M,panelDataArray:L}=w.current,D=cn({layout:z,panelConstraints:L.map(A=>A.constraints)});on(M,D)||(x(D),w.current.layout=D,F&&F(D),Le(L,D,j.current))}}),[]),Te(()=>{k.current.autoSaveId=n,k.current.direction=s,k.current.dragState=p,k.current.id=h,k.current.onLayout=o,k.current.storage=c}),Gl({committedValuesRef:k,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),S.useEffect(()=>{const{panelDataArray:z}=w.current;if(n){if(b.length===0||b.length!==z.length)return;let F=dn[n];F==null&&(F=Zl(er,tr),dn[n]=F);const M=[...z],L=new Map(N.current);F(n,M,L,b,c)}},[n,b,c]),S.useEffect(()=>{});const B=S.useCallback(z=>{const{onLayout:F}=k.current,{layout:M,panelDataArray:L}=w.current;if(z.constraints.collapsible){const D=L.map(he=>he.constraints),{collapsedSize:A=0,panelSize:Q,pivotIndices:te}=Ee(L,z,M);if(G(Q!=null,`Panel size not found for panel "${z.id}"`),!we(Q,A)){N.current.set(z.id,Q);const P=Oe(L,z)===L.length-1?Q-A:A-Q,V=He({delta:P,initialLayout:M,panelConstraints:D,pivotIndices:te,prevLayout:M,trigger:"imperative-api"});ct(M,V)||(x(V),w.current.layout=V,F&&F(V),Le(L,V,j.current))}}},[]),R=S.useCallback((z,F)=>{const{onLayout:M}=k.current,{layout:L,panelDataArray:D}=w.current;if(z.constraints.collapsible){const A=D.map(ne=>ne.constraints),{collapsedSize:Q=0,panelSize:te=0,minSize:he=0,pivotIndices:P}=Ee(D,z,L),V=F??he;if(we(te,Q)){const ne=N.current.get(z.id),ge=ne!=null&&ne>=V?ne:V,$e=Oe(D,z)===D.length-1?te-ge:ge-te,oe=He({delta:$e,initialLayout:L,panelConstraints:A,pivotIndices:P,prevLayout:L,trigger:"imperative-api"});ct(L,oe)||(x(oe),w.current.layout=oe,M&&M(oe),Le(D,oe,j.current))}}},[]),_=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{panelSize:L}=Ee(M,z,F);return G(L!=null,`Panel size not found for panel "${z.id}"`),L},[]),v=S.useCallback((z,F)=>{const{panelDataArray:M}=w.current,L=Oe(M,z);return Yl({defaultSize:F,dragState:p,layout:b,panelData:M,panelIndex:L})},[p,b]),I=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),D===!0&&we(A,L)},[]),Z=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),!D||Ie(A,L)>0},[]),U=S.useCallback(z=>{const{panelDataArray:F}=w.current;F.push(z),F.sort((M,L)=>{const D=M.order,A=L.order;return D==null&&A==null?0:D==null?-1:A==null?1:D-A}),w.current.panelDataArrayChanged=!0,y()},[y]);Te(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:F,storage:M}=k.current,{layout:L,panelDataArray:D}=w.current;let A=null;if(z){const te=Jl(z,D,M);te&&(N.current=new Map(Object.entries(te.expandToSizes)),A=te.layout)}A==null&&(A=Ql({panelDataArray:D}));const Q=cn({layout:A,panelConstraints:D.map(te=>te.constraints)});on(L,Q)||(x(Q),w.current.layout=Q,F&&F(Q),Le(D,Q,j.current))}}),Te(()=>{const z=w.current;return()=>{z.layout=[]}},[]);const O=S.useCallback(z=>{let F=!1;const M=m.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(D){D.preventDefault();const A=m.current;if(!A)return()=>null;const{direction:Q,dragState:te,id:he,keyboardResizeBy:P,onLayout:V}=k.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Se}=te??{},$e=es(he,z,A);let oe=Xl(D,z,Q,te,P,A);const rt=Q==="horizontal";rt&&F&&(oe=-oe);const $t=ge.map(Pt=>Pt.constraints),Pe=He({delta:oe,initialLayout:Se??ne,panelConstraints:$t,pivotIndices:$e,prevLayout:ne,trigger:qn(D)?"keyboard":"mouse-or-touch"}),it=!ct(ne,Pe);(Kn(D)||Wn(D))&&C.current!=oe&&(C.current=oe,!it&&oe!==0?rt?It(z,oe<0?Vn:Xn):It(z,oe<0?Qn:Yn):It(z,0)),it&&(x(Pe),w.current.layout=Pe,V&&V(Pe),Le(ge,Pe,j.current))}},[]),H=S.useCallback((z,F)=>{const{onLayout:M}=k.current,{layout:L,panelDataArray:D}=w.current,A=D.map(ne=>ne.constraints),{panelSize:Q,pivotIndices:te}=Ee(D,z,L);G(Q!=null,`Panel size not found for panel "${z.id}"`);const P=Oe(D,z)===D.length-1?Q-F:F-Q,V=He({delta:P,initialLayout:L,panelConstraints:A,pivotIndices:te,prevLayout:L,trigger:"imperative-api"});ct(L,V)||(x(V),w.current.layout=V,M&&M(V),Le(D,V,j.current))},[]),W=S.useCallback((z,F)=>{const{layout:M,panelDataArray:L}=w.current,{collapsedSize:D=0,collapsible:A}=F,{collapsedSize:Q=0,collapsible:te,maxSize:he=100,minSize:P=0}=z.constraints,{panelSize:V}=Ee(L,z,M);V!=null&&(A&&te&&we(V,D)?we(D,Q)||H(z,Q):V<P?H(z,P):V>he&&H(z,he))},[H]),q=S.useCallback((z,F)=>{const{direction:M}=k.current,{layout:L}=w.current;if(!m.current)return;const D=jt(z,m.current);G(D,`Drag handle element not found for id "${z}"`);const A=ns(M,F);g({dragHandleId:z,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:A,initialLayout:L})},[]),ee=S.useCallback(()=>{g(null)},[]),Y=S.useCallback(z=>{const{panelDataArray:F}=w.current,M=Oe(F,z);M>=0&&(F.splice(M,1),delete j.current[z.id],w.current.panelDataArrayChanged=!0,y())},[y]),T=S.useMemo(()=>({collapsePanel:B,direction:s,dragState:p,expandPanel:R,getPanelSize:_,getPanelStyle:v,groupId:h,isPanelCollapsed:I,isPanelExpanded:Z,reevaluatePanelConstraints:W,registerPanel:U,registerResizeHandle:O,resizePanel:H,startDragging:q,stopDragging:ee,unregisterPanel:Y,panelGroupElement:m.current}),[B,p,s,R,_,v,h,I,Z,W,U,O,H,q,ee,Y]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(yt.Provider,{value:T},S.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const os=S.forwardRef((n,e)=>S.createElement(is,{...n,forwardedRef:e}));is.displayName="PanelGroup";os.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Ee(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function nr({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){S.useEffect(()=>{if(n||t==null||s==null)return;const l=jt(e,s);if(l==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=l.getAttribute(se.groupId);G(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Jn(a,e,s);G(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}},[s,n,e,t])}function as({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:l,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=S.useRef(null),y=S.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});S.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=S.useContext(yt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:C,registerResizeHandle:k,startDragging:w,stopDragging:B,panelGroupElement:R}=j,_=Vt(l),[v,I]=S.useState("inactive"),[Z,U]=S.useState(!1),[O,H]=S.useState(null),W=S.useRef({state:v});Te(()=>{W.current.state=v}),S.useEffect(()=>{if(t)H(null);else{const T=k(_);H(()=>T)}},[t,_,k]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;S.useEffect(()=>{if(t||O==null)return;const T=x.current;G(T,"Element ref not attached");let K=!1;return Ul(_,T,N,{coarse:q,fine:ee},(F,M,L)=>{if(!M){I("inactive");return}switch(F){case"down":{I("drag"),K=!1,G(L,'Expected event to be defined for "down" action'),w(_,L);const{onDragging:D,onPointerDown:A}=y.current;D?.(!0),A?.();break}case"move":{const{state:D}=W.current;K=!0,D!=="drag"&&I("hover"),G(L,'Expected event to be defined for "move" action'),O(L);break}case"up":{I("hover"),B();const{onClick:D,onDragging:A,onPointerUp:Q}=y.current;A?.(!1),Q?.(),K||D?.();break}}})},[q,N,t,ee,k,_,O,w,B]),nr({disabled:t,handleId:_,resizeHandler:O,panelGroupElement:R});const Y={touchAction:"none",userSelect:"none"};return S.createElement(m,{...p,children:n,className:e,id:l,onBlur:()=>{U(!1),i?.()},onFocus:()=>{U(!0),c?.()},ref:x,role:"separator",style:{...Y,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:C,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":Z?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:_,[se.resizeHandleState]:v})}as.displayName="PanelResizeHandle";function sr(n){const e=$.c(10);let t,s,l;e[0]!==n?({className:t,ref:l,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==l||e[8]!==i?(o=r.jsx(os,{ref:l,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=l,e[8]=i,e[9]=o):o=e[9],o}function un(n){const e=$.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(Hn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function lr(n){const e=$.c(12);let t,s,l;e[0]!==n?({withHandle:l,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==l?(o=l&&r.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsx(Xs,{className:"size-2.5"})}),e[6]=l,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=r.jsx(as,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function rr(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function ir(n){if(rr(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function or(n){try{return decodeURIComponent(n)}catch{return n}}function ar(n){return ir(n),encodeURIComponent(n)}function cr(n){return`.deco/blocks/${ar(n)}.json`}function _o(n){return`/${cr(n)}`}const Uo=1e4,dr=3;function At(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function kt(n){return n.startsWith("/")?n.slice(1):n}function Bo(n){const e=kt(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function xt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function ur(n){const e=xt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ho(n,e){const t=e.replace(/^\/+|\/+$/g,"");return xt(t?`${n==="/"?"":n}/${t}`:n)}function qo(n,e){return e==="directory"?n:ur(n)}function Ko(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function fr(n){const e=kt(n);return e?e.split("/").filter(Boolean).length:0}function Wo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Go(n,e){return fr(n)>=dr&&!e.has(n)}function Vo(n,e,t=[]){const s=kt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const l=`${s}/`;return e.some(i=>i.startsWith(l))||t.some(i=>i.startsWith(l))}function Xo(n){const e=kt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return or(s)}function hr(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const mr="#94a3b8";function Qo(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:at,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:at,color:"#d9a441"}:e.endsWith(".json")?{Icon:Qs,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:at,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:at,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:fl,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:tn,color:"#64748b"}:{Icon:tn,color:mr}}function Yo(n){const e=At(n).split("/").filter(Boolean),t=["/"];let s="";for(const l of e.slice(0,-1))s+=`/${l}`,t.push(s);return t}function Zo(n,e=[]){const t={children:[]},s=i=>{const a=At(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.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 n){const a=At(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(xt(i));const l=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&&l(o.children)};return l(t.children),t.children}function pr(n,e,t=0){const s=[];for(const l of n)l.name!==".gitkeep"&&(s.push({node:l,depth:t}),l.kind==="directory"&&l.children.length>0&&e.has(l.path)&&s.push(...pr(l.children,e,t+1)));return s}function Jo(n){return n.split(`
|
|
1
|
+
import{c as $,C as de,n as Ze,d as We,K as X,m as ie,aY as wn,r as S,ap as Cs,l as ce,j as r,U as $s,i as Ps,B as J,aL as jn,t as ue,w as Es,L as Ds,e as Ts,b as kn,u as Sn,E as Et}from"./index-CW-frCvB.js";import{s as Nn}from"./Eye-CikrhNcF.js";import{a as ut}from"./Palette-DvrEWWT4.js";import{s as Fs}from"./Plus-Bz7loY4f.js";import{i as Is}from"./SearchLg-DvTulfGj.js";import{i as ft}from"./Upload01-vsvHLvaA.js";import{s as zn}from"./XClose-CSyFLxIV.js";import{i as Ut}from"./Zap-Di08z3mI.js";import{u as Cn}from"./use-mobile-BmSCNgu-.js";import{f as Ms,a as Ls,b as Os,c as Rs,d as As,e as _s,A as Us,g as Bs}from"./alert-dialog-n6V7r3dX.js";import{D as $n,a as Ue,d as Je,e as et,i as Pn,h as Hs,c as qs}from"./dialog-DSMMHp7k.js";import{I as Ve}from"./input-Bh6jfBSY.js";import{F as ke,M as Bt,d as En}from"./file-type-icon-5IRBmGyW.js";import{T as Ks}from"./toolbar-BWE-_zyA.js";import{a as Ws}from"./Package-BXkFeDMT.js";import{u as Gs}from"./use-debounced-value-DqlOqEus.js";import{p as gt,b as le,a as Me,c as Dn,d as Vs}from"./location-BpLtHjTZ.js";import{b as Xs,f as at,s as Qs,c as tn,d as Ys,g as Zs,i as Js,h as Tn,a as Fn,j as el,e as tl}from"./ZoomOut-Bw94mtVG.js";import{S as ae}from"./skeleton-6SB_9DNZ.js";import{T as nl}from"./textarea-C_jCSzCx.js";import{t as sl}from"./ChevronDown-XW3mndxm.js";import{n as ll}from"./ChevronUp-CBA75LiO.js";import{i as ht}from"./X-nh-lAoJ9.js";import{P as rl,b as il,a as ol}from"./popover-CStICzGk.js";import{b as be,T as ye,a as ve}from"./tooltip-2HPu4RGb.js";import{i as al}from"./Check-B1SirwZu.js";import{a as cl}from"./Copy01-DvYXKq8Z.js";import{n as Xe,i as bt}from"./Globe01-BPvkaID5.js";import{i as In}from"./Key01-CSjfIfTE.js";import{n as Mn}from"./LinkExternal01-BapUlNlT.js";import{l as dl,F as ul}from"./index-C9N_dWzA.js";import{a as fl}from"./Image01-BxR0qJ9h.js";import{D as Ht,a as qt,c as Kt,d as Fe}from"./dropdown-menu-C25KxtxJ.js";import{i as hl}from"./LayoutLeft-vGwalVIw.js";import{i as ml}from"./ChevronRight-CMxF_EMm.js";import{t as pl}from"./Stars01-CAjraTXl.js";import{i as Ln}from"./DotsVertical-Bk2adjcS.js";import{s as On}from"./Trash01-CL-hhLHz.js";function Rn(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function pe(n,e,t,s){const l=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${l?`?${l}`:""}`}async function fe(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let l="";try{l=(await s.json()).error??""}catch{}throw new Error(l||`HTTP ${s.status}`)}function Wt(n,e){const t=$.c(11),{org:s}=de();let l;t[0]!==s.id||t[1]!==e||t[2]!==n?(l=X.orgFsList(s.id,n,e),t[0]=s.id,t[1]=e,t[2]=n,t[3]=l):l=t[3];let i;t[4]!==s.slug||t[5]!==e||t[6]!==n?(i=async()=>(await(await fe(pe(s.slug,n,"list",{path:e}))).json()).entries.toSorted(xl),t[4]=s.slug,t[5]=e,t[6]=n,t[7]=i):i=t[7];let o;return t[8]!==l||t[9]!==i?(o={queryKey:l,placeholderData:wn,queryFn:i},t[8]=l,t[9]=i,t[10]=o):o=t[10],ie(o)}function xl(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}function An(n,e,t){const s=$.c(15),{org:l}=de();let i;s[0]!==l.id||s[1]!==e||s[2]!==n?(i=X.orgFsStat(l.id,n??"",e),s[0]=l.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const o=n!==null;let a;s[4]!==t?(a=t?.refetchIntervalWhenAbsent?f=>f.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=a):a=s[5];let c;s[6]!==l.slug||s[7]!==e||s[8]!==n?(c=async()=>{const f=await fe(pe(l.slug,n??"","stat",{path:e}),void 0,{allow404:!0});return f.status===404?null:(await f.json()).entry},s[6]=l.slug,s[7]=e,s[8]=n,s[9]=c):c=s[9];let d;return s[10]!==i||s[11]!==o||s[12]!==a||s[13]!==c?(d={queryKey:i,enabled:o,refetchInterval:a,queryFn:c},s[10]=i,s[11]=o,s[12]=a,s[13]=c,s[14]=d):d=s[14],ie(d)}function gl(n){const e=$.c(9),{org:t}=de();let s;e[0]!==t.id||e[1]!==n?(s=X.orgFsUsage(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let l;e[3]!==t.slug||e[4]!==n?(l=async()=>await(await fe(pe(t.slug,n,"usage"))).json(),e[3]=t.slug,e[4]=n,e[5]=l):l=e[5];let i;return e[6]!==s||e[7]!==l?(i={queryKey:s,queryFn:l},e[6]=s,e[7]=l,e[8]=i):i=e[8],ie(i)}function bl(n,e){const t=$.c(9),s=n===void 0?60:n,{org:l}=de();let i;t[0]!==l.id?(i=X.orgFsRecent(l.id),t[0]=l.id,t[1]=i):i=t[1];const o=e?.enabled;let a;t[2]!==s||t[3]!==l.slug?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=l.slug,t[4]=a):a=t[4];let c;return t[5]!==i||t[6]!==o||t[7]!==a?(c={queryKey:i,enabled:o,queryFn:a},t[5]=i,t[6]=o,t[7]=a,t[8]=c):c=t[8],ie(c)}function yl(n,e){const t=$.c(11),s=50,{org:l}=de();let i;t[0]!==l.id||t[1]!==n?(i=X.orgFsSearch(l.id,n),t[0]=l.id,t[1]=n,t[2]=i):i=t[2];const o=n.length>0;let a;t[3]!==s||t[4]!==l.slug||t[5]!==n?(a=async()=>(await(await fe(`/api/${encodeURIComponent(l.slug)}/fs/search?q=${encodeURIComponent(n)}&limit=${s}`)).json()).entries,t[3]=s,t[4]=l.slug,t[5]=n,t[6]=a):a=t[6];let c;return t[7]!==i||t[8]!==o||t[9]!==a?(c={queryKey:i,enabled:o,placeholderData:wn,queryFn:a},t[7]=i,t[8]=o,t[9]=a,t[10]=c):c=t[10],ie(c)}function Oo(n){const e=$.c(8),{org:t}=de();let s;e[0]!==t.id?(s=X.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const l=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const a=await fe(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await a.json();return c.map(vl)},e[2]=t.slug,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==l||e[6]!==i?(o={queryKey:s,enabled:l,queryFn:i},e[4]=s,e[5]=l,e[6]=i,e[7]=o):o=e[7],ie(o)}function vl(n){return{volume:n.volume,path:n.path}}async function Ro(n){const e=await fe(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}async function wl(n,e,t){return(await fe(pe(n,e,"read",{path:t}))).text()}const jl=new Set(["md","mdx","markdown","txt","text"]),kl=25,Sl=64*1024,Nl=256*1024,zl=4;function Cl(n){const e=n.lastIndexOf(".");return e===-1?!1:jl.has(n.slice(e+1).toLowerCase())}async function Ao(n,e,t){const s=t?`${t}/`:"",l=u=>u.startsWith(s)?u.slice(s.length):u,i=[],o=[],a=[{path:t,depth:0}];for(;a.length>0;){const u=a.shift();if(!u)break;let h;try{h=(await(await fe(pe(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const m of[...h].sort((p,g)=>p.path.localeCompare(g.path))){if(m.kind==="dir"){u.depth<zl&&a.push({path:m.path,depth:u.depth+1});continue}Cl(m.path)&&m.size<=Sl&&i.length<kl?i.push(m.path):o.push(l(m.path))}}const c=await Promise.all(i.map(u=>wl(n,e,u).catch(()=>null))),d=[];let f=0;return i.forEach((u,h)=>{const m=c[h];if(m==null||f+m.length>Nl){o.push(l(u));return}f+=m.length,d.push({relPath:l(u),content:m})}),d.sort((u,h)=>u.relPath==="SKILL.md"?-1:h.relPath==="SKILL.md"?1:u.relPath.localeCompare(h.relPath)),o.sort(),{files:d,omittedPaths:o}}function _n(){const n=$.c(7),{org:e}=de();let t;n[0]!==e.id?(t=X.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await fe(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let l;return n[4]!==t||n[5]!==s?(l={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=l):l=n[6],ie(l)}function $l(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t.slug||e[1]!==n?(s=l=>pe(t.slug,n,"read",{path:l}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function tt(){const n=$.c(2),{org:e}=de();let t;return n[0]!==e.slug?(t=(s,l)=>pe(e.slug,s,"read",{path:l}),n[0]=e.slug,n[1]=t):t=n[1],t}function Un(n){const e=$.c(3),{org:t}=de();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async l=>(await(await fe(pe(t.slug,n,"file",{path:l.path}),{method:"PUT",headers:{"content-type":l.contentType??"text/html; charset=utf-8"},body:l.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],We(s)}function Pl(n){const e=$.c(18),{org:t}=de(),s=Ze();let l;e[0]!==t||e[1]!==n?(l=async d=>(await(await fe(pe(t.slug,n,"public",{path:d.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:d.mode,password:d.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=l):l=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async d=>{const f=X.orgFsStat(t.id,n,d.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),h=d.mode!=="private";return s.setQueryData(f,m=>m&&{...m,readPublic:h,effectivePublic:h,shareMode:d.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let o;e[7]!==s?(o=(d,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==s||e[11]!==n?(a=(d,f,u)=>{s.invalidateQueries({queryKey:X.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=a):a=e[12];let c;return e[13]!==l||e[14]!==i||e[15]!==o||e[16]!==a?(c={mutationFn:l,onMutate:i,onError:o,onSettled:a},e[13]=l,e[14]=i,e[15]=o,e[16]=a,e[17]=c):c=e[17],We(c)}function Ot(n){const e=$.c(26),{org:t}=de(),s=Ze();let l;e[0]!==t||e[1]!==s||e[2]!==n?(l=()=>{s.invalidateQueries({queryKey:X.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:X.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:X.orgFsSearchRoot(t.id)})},e[0]=t,e[1]=s,e[2]=n,e[3]=l):l=e[3];const i=l;let o;e[4]!==t||e[5]!==n?(o=async b=>{for(const x of b.files){const y=b.dir?`${b.dir}/${x.name}`:x.name;await fe(pe(t.slug,n,"file",{path:y}),{method:"PUT",headers:{"content-type":x.type||"application/octet-stream"},body:x})}},e[4]=t,e[5]=n,e[6]=o):o=e[6];let a;e[7]!==i||e[8]!==o?(a={mutationFn:o,onSettled:i},e[7]=i,e[8]=o,e[9]=a):a=e[9];const c=We(a);let d;e[10]!==t||e[11]!==n?(d=async b=>{await fe(pe(t.slug,n,"dir",{path:b}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=d):d=e[12];let f;e[13]!==i||e[14]!==d?(f={mutationFn:d,onSuccess:i},e[13]=i,e[14]=d,e[15]=f):f=e[15];const u=We(f);let h;e[16]!==t||e[17]!==n?(h=async b=>{await fe(pe(t.slug,n,"file",{path:b}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=h):h=e[18];let m;e[19]!==i||e[20]!==h?(m={mutationFn:h,onSuccess:i},e[19]=i,e[20]=h,e[21]=m):m=e[21];const p=We(m);let g;return e[22]!==u||e[23]!==p||e[24]!==c?(g={upload:c,mkdir:u,remove:p},e[22]=u,e[23]=p,e[24]=c,e[25]=g):g=e[25],g}const yt=S.createContext(null);yt.displayName="PanelGroupContext";const se={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gt=10,Te=S.useLayoutEffect,nn=Cs.useId,El=typeof nn=="function"?nn:()=>null;let Dl=0;function Vt(n=null){const e=El(),t=S.useRef(n||e||null);return t.current===null&&(t.current=""+Dl++),n??t.current}function Bn({children:n,className:e="",collapsedSize:t,collapsible:s,defaultSize:l,forwardedRef:i,id:o,maxSize:a,minSize:c,onCollapse:d,onExpand:f,onResize:u,order:h,style:m,tagName:p="div",...g}){const b=S.useContext(yt);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:j,getPanelStyle:N,groupId:C,isPanelCollapsed:k,reevaluatePanelConstraints:w,registerPanel:B,resizePanel:R,unregisterPanel:_}=b,v=Vt(o),I=S.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:u},constraints:{collapsedSize:t,collapsible:s,defaultSize:l,maxSize:a,minSize:c},id:v,idIsFromProps:o!==void 0,order:h});S.useRef({didLogMissingDefaultSizeWarning:!1}),Te(()=>{const{callbacks:U,constraints:O}=I.current,H={...O};I.current.id=v,I.current.idIsFromProps=o!==void 0,I.current.order=h,U.onCollapse=d,U.onExpand=f,U.onResize=u,O.collapsedSize=t,O.collapsible=s,O.defaultSize=l,O.maxSize=a,O.minSize=c,(H.collapsedSize!==O.collapsedSize||H.collapsible!==O.collapsible||H.maxSize!==O.maxSize||H.minSize!==O.minSize)&&w(I.current,H)}),Te(()=>{const U=I.current;return B(U),()=>{_(U)}},[h,v,B,_]),S.useImperativeHandle(i,()=>({collapse:()=>{x(I.current)},expand:U=>{y(I.current,U)},getId(){return v},getSize(){return j(I.current)},isCollapsed(){return k(I.current)},isExpanded(){return!k(I.current)},resize:U=>{R(I.current,U)}}),[x,y,j,k,v,R]);const Z=N(I.current,l);return S.createElement(p,{...g,children:n,className:e,id:v,style:{...Z,...m},[se.groupId]:C,[se.panel]:"",[se.panelCollapsible]:s||void 0,[se.panelId]:v,[se.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const Hn=S.forwardRef((n,e)=>S.createElement(Bn,{...n,forwardedRef:e}));Bn.displayName="Panel";Hn.displayName="forwardRef(Panel)";let Rt=null,dt=-1,ze=null;function Tl(n,e){if(e){const t=(e&Vn)!==0,s=(e&Xn)!==0,l=(e&Qn)!==0,i=(e&Yn)!==0;if(t)return l?"se-resize":i?"ne-resize":"e-resize";if(s)return l?"sw-resize":i?"nw-resize":"w-resize";if(l)return"s-resize";if(i)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Fl(){ze!==null&&(document.head.removeChild(ze),Rt=null,ze=null,dt=-1)}function Dt(n,e){var t,s;const l=Tl(n,e);if(Rt!==l){if(Rt=l,ze===null&&(ze=document.createElement("style"),document.head.appendChild(ze)),dt>=0){var i;(i=ze.sheet)===null||i===void 0||i.removeRule(dt)}dt=(t=(s=ze.sheet)===null||s===void 0?void 0:s.insertRule(`*{cursor: ${l} !important;}`))!==null&&t!==void 0?t:-1}}function qn(n){return n.type==="keydown"}function Kn(n){return n.type.startsWith("pointer")}function Wn(n){return n.type.startsWith("mouse")}function vt(n){if(Kn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(Wn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Il(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ml(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function Ll(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:rn(n),b:rn(e)};let s;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),s=n;G(s,"Stacking order can only be calculated for elements with a common ancestor");const l={a:ln(sn(t.a)),b:ln(sn(t.b))};if(l.a===l.b){const i=s.childNodes,o={a:t.a.at(-1),b:t.b.at(-1)};let a=i.length;for(;a--;){const c=i[a];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(l.a-l.b)}const Ol=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Rl(n){var e;const t=getComputedStyle((e=Gn(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Al(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Rl(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Ol.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function sn(n){let e=n.length;for(;e--;){const t=n[e];if(G(t,"Missing node"),Al(t))return t}return null}function ln(n){return n&&Number(getComputedStyle(n).zIndex)||0}function rn(n){const e=[];for(;n;)e.push(n),n=Gn(n);return e}function Gn(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const Vn=1,Xn=2,Qn=4,Yn=8,_l=Il()==="coarse";let xe=[],_e=!1,De=new Map,wt=new Map;const Qe=new Set;function Ul(n,e,t,s,l){var i;const{ownerDocument:o}=e,a={direction:t,element:e,hitAreaMargins:s,setResizeHandlerState:l},c=(i=De.get(o))!==null&&i!==void 0?i:0;return De.set(o,c+1),Qe.add(a),mt(),function(){var f;wt.delete(n),Qe.delete(a);const u=(f=De.get(o))!==null&&f!==void 0?f:1;if(De.set(o,u-1),mt(),u===1&&De.delete(o),xe.includes(a)){const h=xe.indexOf(a);h>=0&&xe.splice(h,1),Qt(),l("up",!0,null)}}}function Bl(n){const{target:e}=n,{x:t,y:s}=vt(n);_e=!0,Xt({target:e,x:t,y:s}),mt(),xe.length>0&&(pt("down",n),n.preventDefault(),Zn(e)||n.stopImmediatePropagation())}function Tt(n){const{x:e,y:t}=vt(n);if(_e&&n.buttons===0&&(_e=!1,pt("up",n)),!_e){const{target:s}=n;Xt({target:s,x:e,y:t})}pt("move",n),Qt(),xe.length>0&&n.preventDefault()}function Ft(n){const{target:e}=n,{x:t,y:s}=vt(n);wt.clear(),_e=!1,xe.length>0&&(n.preventDefault(),Zn(e)||n.stopImmediatePropagation()),pt("up",n),Xt({target:e,x:t,y:s}),Qt(),mt()}function Zn(n){let e=n;for(;e;){if(e.hasAttribute(se.resizeHandle))return!0;e=e.parentElement}return!1}function Xt({target:n,x:e,y:t}){xe.splice(0);let s=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(s=n),Qe.forEach(l=>{const{element:i,hitAreaMargins:o}=l,a=i.getBoundingClientRect(),{bottom:c,left:d,right:f,top:u}=a,h=_l?o.coarse:o.fine;if(e>=d-h&&e<=f+h&&t>=u-h&&t<=c+h){if(s!==null&&document.contains(s)&&i!==s&&!i.contains(s)&&!s.contains(i)&&Ll(s,i)>0){let p=s,g=!1;for(;p&&!p.contains(i);){if(Ml(p.getBoundingClientRect(),a)){g=!0;break}p=p.parentElement}if(g)return}xe.push(l)}})}function It(n,e){wt.set(n,e)}function Qt(){let n=!1,e=!1;xe.forEach(s=>{const{direction:l}=s;l==="horizontal"?n=!0:e=!0});let t=0;wt.forEach(s=>{t|=s}),n&&e?Dt("intersection",t):n?Dt("horizontal",t):e?Dt("vertical",t):Fl()}let Mt=new AbortController;function mt(){Mt.abort(),Mt=new AbortController;const n={capture:!0,signal:Mt.signal};Qe.size&&(_e?(xe.length>0&&De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("contextmenu",Ft,n),s.addEventListener("pointerleave",Tt,n),s.addEventListener("pointermove",Tt,n))}),window.addEventListener("pointerup",Ft,n),window.addEventListener("pointercancel",Ft,n)):De.forEach((e,t)=>{const{body:s}=t;e>0&&(s.addEventListener("pointerdown",Bl,n),s.addEventListener("pointermove",Tt,n))}))}function pt(n,e){Qe.forEach(t=>{const{setResizeHandlerState:s}=t,l=xe.includes(t);s(n,l,e)})}function Hl(){const[n,e]=S.useState(0);return S.useCallback(()=>e(t=>t+1),[])}function G(n,e){if(!n)throw console.error(e),Error(e)}function Ie(n,e,t=Gt){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function we(n,e,t=Gt){return Ie(n,e,t)===0}function me(n,e,t){return Ie(n,e,t)===0}function ql(n,e,t){if(n.length!==e.length)return!1;for(let s=0;s<n.length;s++){const l=n[s],i=e[s];if(!me(l,i,t))return!1}return!0}function Ae({panelConstraints:n,panelIndex:e,size:t}){const s=n[e];G(s!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:l=0,collapsible:i,maxSize:o=100,minSize:a=0}=s;if(Ie(t,a)<0)if(i){const c=(l+a)/2;Ie(t,c)<0?t=l:t=a}else t=a;return t=Math.min(o,t),t=parseFloat(t.toFixed(Gt)),t}function He({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:s,prevLayout:l,trigger:i}){if(me(n,0))return e;const o=[...e],[a,c]=s;G(a!=null,"Invalid first pivot index"),G(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=n<0?c:a,h=t[u];G(h,`Panel constraints not found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(G(b!=null,`Previous layout not found for panel index ${u}`),me(b,m)){const x=g-b;Ie(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}{const u=n<0?a:c,h=t[u];G(h,`No panel constraints found for index ${u}`);const{collapsedSize:m=0,collapsible:p,minSize:g=0}=h;if(p){const b=e[u];if(G(b!=null,`Previous layout not found for panel index ${u}`),me(b,g)){const x=b-m;Ie(x,Math.abs(n))>0&&(n=n<0?0-x:x)}}}}{const u=n<0?1:-1;let h=n<0?c:a,m=0;for(;;){const g=e[h];G(g!=null,`Previous layout not found for panel index ${h}`);const x=Ae({panelConstraints:t,panelIndex:h,size:100})-g;if(m+=x,h+=u,h<0||h>=t.length)break}const p=Math.min(Math.abs(n),Math.abs(m));n=n<0?0-p:p}{let h=n<0?a:c;for(;h>=0&&h<t.length;){const m=Math.abs(n)-Math.abs(d),p=e[h];G(p!=null,`Previous layout not found for panel index ${h}`);const g=p-m,b=Ae({panelConstraints:t,panelIndex:h,size:g});if(!me(p,b)&&(d+=p-b,o[h]=b,d.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?h--:h++}}if(ql(l,o))return l;{const u=n<0?c:a,h=e[u];G(h!=null,`Previous layout not found for panel index ${u}`);const m=h+d,p=Ae({panelConstraints:t,panelIndex:u,size:m});if(o[u]=p,!me(p,m)){let g=m-p,x=n<0?c:a;for(;x>=0&&x<t.length;){const y=o[x];G(y!=null,`Previous layout not found for panel index ${x}`);const j=y+g,N=Ae({panelConstraints:t,panelIndex:x,size:j});if(me(y,N)||(g-=N-y,o[x]=N),me(g,0))break;n>0?x--:x++}}}const f=o.reduce((u,h)=>h+u,0);return me(f,100)?o:l}function Kl({layout:n,panelsArray:e,pivotIndices:t}){let s=0,l=100,i=0,o=0;const a=t[0];G(a!=null,"No pivot index found"),e.forEach((u,h)=>{const{constraints:m}=u,{maxSize:p=100,minSize:g=0}=m;h===a?(s=g,l=p):(i+=g,o+=p)});const c=Math.min(l,100-i),d=Math.max(s,100-o),f=n[a];return{valueMax:c,valueMin:d,valueNow:f}}function Ye(n,e=document){return Array.from(e.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${n}"]`))}function Jn(n,e,t=document){const l=Ye(n,t).findIndex(i=>i.getAttribute(se.resizeHandleId)===e);return l??null}function es(n,e,t){const s=Jn(n,e,t);return s!=null?[s,s+1]:[-1,-1]}function ts(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const s=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return s||null}function jt(n,e=document){const t=e.querySelector(`[${se.resizeHandleId}="${n}"]`);return t||null}function Wl(n,e,t,s=document){var l,i,o,a;const c=jt(e,s),d=Ye(n,s),f=c?d.indexOf(c):-1,u=(l=(i=t[f])===null||i===void 0?void 0:i.id)!==null&&l!==void 0?l:null,h=(o=(a=t[f+1])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null;return[u,h]}function Gl({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:s,panelDataArray:l,panelGroupElement:i,setLayout:o}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Te(()=>{if(!i)return;const a=Ye(t,i);for(let c=0;c<l.length-1;c++){const{valueMax:d,valueMin:f,valueNow:u}=Kl({layout:s,panelsArray:l,pivotIndices:[c,c+1]}),h=a[c];if(h!=null){const m=l[c];G(m,`No panel data found for index "${c}"`),h.setAttribute("aria-controls",m.id),h.setAttribute("aria-valuemax",""+Math.round(d)),h.setAttribute("aria-valuemin",""+Math.round(f)),h.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{a.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[t,s,l,i]),S.useEffect(()=>{if(!i)return;const a=e.current;G(a,"Eager values not found");const{panelDataArray:c}=a,d=ts(t,i);G(d!=null,`No group found for id "${t}"`);const f=Ye(t,i);G(f,`No resize handles found for group id "${t}"`);const u=f.map(h=>{const m=h.getAttribute(se.resizeHandleId);G(m,"Resize handle element has no handle id attribute");const[p,g]=Wl(t,m,c,i);if(p==null||g==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=c.findIndex(j=>j.id===p);if(y>=0){const j=c[y];G(j,`No panel data found for index ${y}`);const N=s[y],{collapsedSize:C=0,collapsible:k,minSize:w=0}=j.constraints;if(N!=null&&k){const B=He({delta:me(N,C)?w-C:C-N,initialLayout:s,panelConstraints:c.map(R=>R.constraints),pivotIndices:es(t,m,i),prevLayout:s,trigger:"keyboard"});s!==B&&o(B)}}break}}};return h.addEventListener("keydown",b),()=>{h.removeEventListener("keydown",b)}});return()=>{u.forEach(h=>h())}},[i,n,e,t,s,l,o])}function on(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function ns(n,e){const t=n==="horizontal",{x:s,y:l}=vt(e);return t?s:l}function Vl(n,e,t,s,l){const i=t==="horizontal",o=jt(e,l);G(o,`No resize handle element found for id "${e}"`);const a=o.getAttribute(se.groupId);G(a,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=s;const d=ns(t,n),f=ts(a,l);G(f,`No group element found for id "${a}"`);const u=f.getBoundingClientRect(),h=i?u.width:u.height;return(d-c)/h*100}function Xl(n,e,t,s,l,i){if(qn(n)){const o=t==="horizontal";let a=0;n.shiftKey?a=100:l!=null?a=l:a=10;let c=0;switch(n.key){case"ArrowDown":c=o?0:a;break;case"ArrowLeft":c=o?-a:0;break;case"ArrowRight":c=o?a:0;break;case"ArrowUp":c=o?0:-a;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return s==null?0:Vl(n,e,t,s,i)}function Ql({panelDataArray:n}){const e=Array(n.length),t=n.map(i=>i.constraints);let s=0,l=100;for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;a!=null&&(s++,e[i]=a,l-=a)}for(let i=0;i<n.length;i++){const o=t[i];G(o,`Panel constraints not found for index ${i}`);const{defaultSize:a}=o;if(a!=null)continue;const c=n.length-s,d=l/c;s++,e[i]=d,l-=d}return e}function Le(n,e,t){e.forEach((s,l)=>{const i=n[l];G(i,`Panel data not found for index ${l}`);const{callbacks:o,constraints:a,id:c}=i,{collapsedSize:d=0,collapsible:f}=a,u=t[c];if(u==null||s!==u){t[c]=s;const{onCollapse:h,onExpand:m,onResize:p}=o;p&&p(s,u),f&&(h||m)&&(m&&(u==null||we(u,d))&&!we(s,d)&&m(),h&&(u==null||!we(u,d))&&we(s,d)&&h())}})}function ct(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Yl({defaultSize:n,dragState:e,layout:t,panelData:s,panelIndex:l,precision:i=3}){const o=t[l];let a;return o==null?a=n!=null?n.toPrecision(i):"1":s.length===1?a="1":a=o.toPrecision(i),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Zl(n,e=10){let t=null;return(...l)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...l)},e)}}function an(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function ss(n){return`react-resizable-panels:${n}`}function ls(n){return n.map(e=>{const{constraints:t,id:s,idIsFromProps:l,order:i}=e;return l?s:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function rs(n,e){try{const t=ss(n),s=e.getItem(t);if(s){const l=JSON.parse(s);if(typeof l=="object"&&l!=null)return l}}catch{}return null}function Jl(n,e,t){var s,l;const i=(s=rs(n,t))!==null&&s!==void 0?s:{},o=ls(e);return(l=i[o])!==null&&l!==void 0?l:null}function er(n,e,t,s,l){var i;const o=ss(n),a=ls(e),c=(i=rs(n,l))!==null&&i!==void 0?i:{};c[a]={expandToSizes:Object.fromEntries(t.entries()),layout:s};try{l.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function cn({layout:n,panelConstraints:e}){const t=[...n],s=t.reduce((i,o)=>i+o,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(i=>`${i}%`).join(", ")}`);if(!me(s,100)&&t.length>0)for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=100/s*o;t[i]=a}let l=0;for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=Ae({panelConstraints:e,panelIndex:i,size:o});o!=a&&(l+=o-a,t[i]=a)}if(!me(l,0))for(let i=0;i<e.length;i++){const o=t[i];G(o!=null,`No layout data found for index ${i}`);const a=o+l,c=Ae({panelConstraints:e,panelIndex:i,size:a});if(o!==c&&(l-=c-o,t[i]=c,me(l,0)))break}return t}const tr=100,qe={getItem:n=>(an(qe),qe.getItem(n)),setItem:(n,e)=>{an(qe),qe.setItem(n,e)}},dn={};function is({autoSaveId:n=null,children:e,className:t="",direction:s,forwardedRef:l,id:i=null,onLayout:o=null,keyboardResizeBy:a=null,storage:c=qe,style:d,tagName:f="div",...u}){const h=Vt(i),m=S.useRef(null),[p,g]=S.useState(null),[b,x]=S.useState([]),y=Hl(),j=S.useRef({}),N=S.useRef(new Map),C=S.useRef(0),k=S.useRef({autoSaveId:n,direction:s,dragState:p,id:h,keyboardResizeBy:a,onLayout:o,storage:c}),w=S.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:()=>k.current.id,getLayout:()=>{const{layout:z}=w.current;return z},setLayout:z=>{const{onLayout:F}=k.current,{layout:M,panelDataArray:L}=w.current,D=cn({layout:z,panelConstraints:L.map(A=>A.constraints)});on(M,D)||(x(D),w.current.layout=D,F&&F(D),Le(L,D,j.current))}}),[]),Te(()=>{k.current.autoSaveId=n,k.current.direction=s,k.current.dragState=p,k.current.id=h,k.current.onLayout=o,k.current.storage=c}),Gl({committedValuesRef:k,eagerValuesRef:w,groupId:h,layout:b,panelDataArray:w.current.panelDataArray,setLayout:x,panelGroupElement:m.current}),S.useEffect(()=>{const{panelDataArray:z}=w.current;if(n){if(b.length===0||b.length!==z.length)return;let F=dn[n];F==null&&(F=Zl(er,tr),dn[n]=F);const M=[...z],L=new Map(N.current);F(n,M,L,b,c)}},[n,b,c]),S.useEffect(()=>{});const B=S.useCallback(z=>{const{onLayout:F}=k.current,{layout:M,panelDataArray:L}=w.current;if(z.constraints.collapsible){const D=L.map(he=>he.constraints),{collapsedSize:A=0,panelSize:Q,pivotIndices:te}=Ee(L,z,M);if(G(Q!=null,`Panel size not found for panel "${z.id}"`),!we(Q,A)){N.current.set(z.id,Q);const P=Oe(L,z)===L.length-1?Q-A:A-Q,V=He({delta:P,initialLayout:M,panelConstraints:D,pivotIndices:te,prevLayout:M,trigger:"imperative-api"});ct(M,V)||(x(V),w.current.layout=V,F&&F(V),Le(L,V,j.current))}}},[]),R=S.useCallback((z,F)=>{const{onLayout:M}=k.current,{layout:L,panelDataArray:D}=w.current;if(z.constraints.collapsible){const A=D.map(ne=>ne.constraints),{collapsedSize:Q=0,panelSize:te=0,minSize:he=0,pivotIndices:P}=Ee(D,z,L),V=F??he;if(we(te,Q)){const ne=N.current.get(z.id),ge=ne!=null&&ne>=V?ne:V,$e=Oe(D,z)===D.length-1?te-ge:ge-te,oe=He({delta:$e,initialLayout:L,panelConstraints:A,pivotIndices:P,prevLayout:L,trigger:"imperative-api"});ct(L,oe)||(x(oe),w.current.layout=oe,M&&M(oe),Le(D,oe,j.current))}}},[]),_=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{panelSize:L}=Ee(M,z,F);return G(L!=null,`Panel size not found for panel "${z.id}"`),L},[]),v=S.useCallback((z,F)=>{const{panelDataArray:M}=w.current,L=Oe(M,z);return Yl({defaultSize:F,dragState:p,layout:b,panelData:M,panelIndex:L})},[p,b]),I=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),D===!0&&we(A,L)},[]),Z=S.useCallback(z=>{const{layout:F,panelDataArray:M}=w.current,{collapsedSize:L=0,collapsible:D,panelSize:A}=Ee(M,z,F);return G(A!=null,`Panel size not found for panel "${z.id}"`),!D||Ie(A,L)>0},[]),U=S.useCallback(z=>{const{panelDataArray:F}=w.current;F.push(z),F.sort((M,L)=>{const D=M.order,A=L.order;return D==null&&A==null?0:D==null?-1:A==null?1:D-A}),w.current.panelDataArrayChanged=!0,y()},[y]);Te(()=>{if(w.current.panelDataArrayChanged){w.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:F,storage:M}=k.current,{layout:L,panelDataArray:D}=w.current;let A=null;if(z){const te=Jl(z,D,M);te&&(N.current=new Map(Object.entries(te.expandToSizes)),A=te.layout)}A==null&&(A=Ql({panelDataArray:D}));const Q=cn({layout:A,panelConstraints:D.map(te=>te.constraints)});on(L,Q)||(x(Q),w.current.layout=Q,F&&F(Q),Le(D,Q,j.current))}}),Te(()=>{const z=w.current;return()=>{z.layout=[]}},[]);const O=S.useCallback(z=>{let F=!1;const M=m.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(D){D.preventDefault();const A=m.current;if(!A)return()=>null;const{direction:Q,dragState:te,id:he,keyboardResizeBy:P,onLayout:V}=k.current,{layout:ne,panelDataArray:ge}=w.current,{initialLayout:Se}=te??{},$e=es(he,z,A);let oe=Xl(D,z,Q,te,P,A);const rt=Q==="horizontal";rt&&F&&(oe=-oe);const $t=ge.map(Pt=>Pt.constraints),Pe=He({delta:oe,initialLayout:Se??ne,panelConstraints:$t,pivotIndices:$e,prevLayout:ne,trigger:qn(D)?"keyboard":"mouse-or-touch"}),it=!ct(ne,Pe);(Kn(D)||Wn(D))&&C.current!=oe&&(C.current=oe,!it&&oe!==0?rt?It(z,oe<0?Vn:Xn):It(z,oe<0?Qn:Yn):It(z,0)),it&&(x(Pe),w.current.layout=Pe,V&&V(Pe),Le(ge,Pe,j.current))}},[]),H=S.useCallback((z,F)=>{const{onLayout:M}=k.current,{layout:L,panelDataArray:D}=w.current,A=D.map(ne=>ne.constraints),{panelSize:Q,pivotIndices:te}=Ee(D,z,L);G(Q!=null,`Panel size not found for panel "${z.id}"`);const P=Oe(D,z)===D.length-1?Q-F:F-Q,V=He({delta:P,initialLayout:L,panelConstraints:A,pivotIndices:te,prevLayout:L,trigger:"imperative-api"});ct(L,V)||(x(V),w.current.layout=V,M&&M(V),Le(D,V,j.current))},[]),W=S.useCallback((z,F)=>{const{layout:M,panelDataArray:L}=w.current,{collapsedSize:D=0,collapsible:A}=F,{collapsedSize:Q=0,collapsible:te,maxSize:he=100,minSize:P=0}=z.constraints,{panelSize:V}=Ee(L,z,M);V!=null&&(A&&te&&we(V,D)?we(D,Q)||H(z,Q):V<P?H(z,P):V>he&&H(z,he))},[H]),q=S.useCallback((z,F)=>{const{direction:M}=k.current,{layout:L}=w.current;if(!m.current)return;const D=jt(z,m.current);G(D,`Drag handle element not found for id "${z}"`);const A=ns(M,F);g({dragHandleId:z,dragHandleRect:D.getBoundingClientRect(),initialCursorPosition:A,initialLayout:L})},[]),ee=S.useCallback(()=>{g(null)},[]),Y=S.useCallback(z=>{const{panelDataArray:F}=w.current,M=Oe(F,z);M>=0&&(F.splice(M,1),delete j.current[z.id],w.current.panelDataArrayChanged=!0,y())},[y]),T=S.useMemo(()=>({collapsePanel:B,direction:s,dragState:p,expandPanel:R,getPanelSize:_,getPanelStyle:v,groupId:h,isPanelCollapsed:I,isPanelExpanded:Z,reevaluatePanelConstraints:W,registerPanel:U,registerResizeHandle:O,resizePanel:H,startDragging:q,stopDragging:ee,unregisterPanel:Y,panelGroupElement:m.current}),[B,p,s,R,_,v,h,I,Z,W,U,O,H,q,ee,Y]),K={display:"flex",flexDirection:s==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(yt.Provider,{value:T},S.createElement(f,{...u,children:e,className:t,id:i,ref:m,style:{...K,...d},[se.group]:"",[se.groupDirection]:s,[se.groupId]:h}))}const os=S.forwardRef((n,e)=>S.createElement(is,{...n,forwardedRef:e}));is.displayName="PanelGroup";os.displayName="forwardRef(PanelGroup)";function Oe(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Ee(n,e,t){const s=Oe(n,e),i=s===n.length-1?[s-1,s]:[s,s+1],o=t[s];return{...e.constraints,panelSize:o,pivotIndices:i}}function nr({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:s}){S.useEffect(()=>{if(n||t==null||s==null)return;const l=jt(e,s);if(l==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),t(o);break}case"F6":{o.preventDefault();const a=l.getAttribute(se.groupId);G(a,`No group element found for id "${a}"`);const c=Ye(a,s),d=Jn(a,e,s);G(d!==null,`No resize element found for id "${e}"`);const f=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[f].focus();break}}};return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}},[s,n,e,t])}function as({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:s,id:l,onBlur:i,onClick:o,onDragging:a,onFocus:c,onPointerDown:d,onPointerUp:f,style:u={},tabIndex:h=0,tagName:m="div",...p}){var g,b;const x=S.useRef(null),y=S.useRef({onClick:o,onDragging:a,onPointerDown:d,onPointerUp:f});S.useEffect(()=>{y.current.onClick=o,y.current.onDragging=a,y.current.onPointerDown=d,y.current.onPointerUp=f});const j=S.useContext(yt);if(j===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:N,groupId:C,registerResizeHandle:k,startDragging:w,stopDragging:B,panelGroupElement:R}=j,_=Vt(l),[v,I]=S.useState("inactive"),[Z,U]=S.useState(!1),[O,H]=S.useState(null),W=S.useRef({state:v});Te(()=>{W.current.state=v}),S.useEffect(()=>{if(t)H(null);else{const T=k(_);H(()=>T)}},[t,_,k]);const q=(g=s?.coarse)!==null&&g!==void 0?g:15,ee=(b=s?.fine)!==null&&b!==void 0?b:5;S.useEffect(()=>{if(t||O==null)return;const T=x.current;G(T,"Element ref not attached");let K=!1;return Ul(_,T,N,{coarse:q,fine:ee},(F,M,L)=>{if(!M){I("inactive");return}switch(F){case"down":{I("drag"),K=!1,G(L,'Expected event to be defined for "down" action'),w(_,L);const{onDragging:D,onPointerDown:A}=y.current;D?.(!0),A?.();break}case"move":{const{state:D}=W.current;K=!0,D!=="drag"&&I("hover"),G(L,'Expected event to be defined for "move" action'),O(L);break}case"up":{I("hover"),B();const{onClick:D,onDragging:A,onPointerUp:Q}=y.current;A?.(!1),Q?.(),K||D?.();break}}})},[q,N,t,ee,k,_,O,w,B]),nr({disabled:t,handleId:_,resizeHandler:O,panelGroupElement:R});const Y={touchAction:"none",userSelect:"none"};return S.createElement(m,{...p,children:n,className:e,id:l,onBlur:()=>{U(!1),i?.()},onFocus:()=>{U(!0),c?.()},ref:x,role:"separator",style:{...Y,...u},tabIndex:h,[se.groupDirection]:N,[se.groupId]:C,[se.resizeHandle]:"",[se.resizeHandleActive]:v==="drag"?"pointer":Z?"keyboard":void 0,[se.resizeHandleEnabled]:!t,[se.resizeHandleId]:_,[se.resizeHandleState]:v})}as.displayName="PanelResizeHandle";function sr(n){const e=$.c(10);let t,s,l;e[0]!==n?({className:t,ref:l,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==l||e[8]!==i?(o=r.jsx(os,{ref:l,"data-slot":"resizable-panel-group",className:i,...s}),e[6]=s,e[7]=l,e[8]=i,e[9]=o):o=e[9],o}function un(n){const e=$.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(Hn,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=s):s=e[3],s}function lr(n){const e=$.c(12);let t,s,l;e[0]!==n?({withHandle:l,className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let i;e[4]!==t?(i=ce("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=i):i=e[5];let o;e[6]!==l?(o=l&&r.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsx(Xs,{className:"size-2.5"})}),e[6]=l,e[7]=o):o=e[7];let a;return e[8]!==s||e[9]!==i||e[10]!==o?(a=r.jsx(as,{"data-slot":"resizable-handle",className:i,...s,children:o}),e[8]=s,e[9]=i,e[10]=o,e[11]=a):a=e[11],a}function rr(n){if(!n||n.includes("\\")||n.includes("..")||n.includes("\0"))return!0;try{const e=decodeURIComponent(n);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==n&&e.includes("/")){const t=(n.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>t)return!0}return!1}catch{return!0}}function ir(n){if(rr(n))throw new Error(`Invalid block key: ${n||"(empty)"}`)}function or(n){try{return decodeURIComponent(n)}catch{return n}}function ar(n){return ir(n),encodeURIComponent(n)}function cr(n){return`.deco/blocks/${ar(n)}.json`}function _o(n){return`/${cr(n)}`}const Uo=1e4,dr=3;function At(n){return n.trim()?(n.startsWith("/")?n:`/${n}`).replace(/\/+/g,"/"):"/"}function kt(n){return n.startsWith("/")?n.slice(1):n}function Bo(n){const e=kt(n);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function xt(n){return n.trim()?n.startsWith("/")?n:`/${n}`:"/"}function ur(n){const e=xt(n);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function Ho(n,e){const t=e.replace(/^\/+|\/+$/g,"");return xt(t?`${n==="/"?"":n}/${t}`:n)}function qo(n,e){return e==="directory"?n:ur(n)}function Ko(n){const e=n.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function fr(n){const e=kt(n);return e?e.split("/").filter(Boolean).length:0}function Wo(n,e,t,s=!1){return{files:[...new Set([...n,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:s||!!t.truncated}}function Go(n,e){return fr(n)>=dr&&!e.has(n)}function Vo(n,e,t=[]){const s=kt(n);if(e.includes(s)||t.includes(s))return!0;if(!s)return!1;const l=`${s}/`;return e.some(i=>i.startsWith(l))||t.some(i=>i.startsWith(l))}function Xo(n){const e=kt(n),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const s=e.slice(t.length,-5);return or(s)}function hr(n){if(!n)return"plaintext";const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const mr="#94a3b8";function Qo(n){const e=n.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:at,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:at,color:"#d9a441"}:e.endsWith(".json")?{Icon:Qs,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:at,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:at,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:fl,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:tn,color:"#64748b"}:{Icon:tn,color:mr}}function Yo(n){const e=At(n).split("/").filter(Boolean),t=["/"];let s="";for(const l of e.slice(0,-1))s+=`/${l}`,t.push(s);return t}function Zo(n,e=[]){const t={children:[]},s=i=>{const a=At(i).split("/").filter(Boolean);let c=t,d="";for(const f of a){d+=`/${f}`;let u=c.children.find(h=>h.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 n){const a=At(i).split("/").filter(Boolean);let c=t,d="";a.forEach((f,u)=>{d+=`/${f}`;const h=u===a.length-1;let m=c.children.find(p=>p.name===f);m||(m={name:f,path:d,kind:h?"file":"directory",children:[]},c.children.push(m)),c=m})}for(const i of e)s(xt(i));const l=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&&l(o.children)};return l(t.children),t.children}function pr(n,e,t=0){const s=[];for(const l of n)l.name!==".gitkeep"&&(s.push({node:l,depth:t}),l.kind==="directory"&&l.children.length>0&&e.has(l.path)&&s.push(...pr(l.children,e,t+1)));return s}function Jo(n){return n.split(`
|
|
2
2
|
`).map(e=>{const t=e.match(/^\d+\t(.*)/);return t?t[1]:e}).join(`
|
|
3
3
|
`)}dl.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function xr(n){const e=$.c(11),{value:t,filename:s}=n,[l]=$s(),i=l.theme==="dark"||l.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==s?(o=hr(s),e[0]=s,e[1]=o):o=e[1];const a=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsx(Ps,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=e[2];let d,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},f={top:12,bottom:12},e[3]=d,e[4]=f):(d=e[3],f=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:f,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let h;return e[6]!==s||e[7]!==o||e[8]!==a||e[9]!==t?(h=r.jsx(ul,{path:s,language:o,value:t,theme:a,loading:c,options:u},s),e[6]=s,e[7]=o,e[8]=a,e[9]=t,e[10]=h):h=e[10],h}function cs(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}const gr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),br=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),fn=2*1024*1024;function yr(n,e){const t=n.split(".").pop()?.toLowerCase()??"";return gr.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=fn?"markdown":"download":br.has(t)&&e<=fn?"text":"download"}function ds(){const n=$.c(2);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(ae,{className:"h-6 w-2/3"}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx(ae,{className:"h-3 w-full"}),r.jsx(ae,{className:"h-3 w-5/6"}),r.jsx(ae,{className:"h-3 w-2/3"})]})]})}),n[1]=t):t=n[1],t}function us(n){const e=$.c(20),{file:t,note:s}=n;let l;e[0]!==t.filename?(l=r.jsx(ke,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=l):l=e[1];let i;e[2]!==t.filename?(i=r.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=i):i=e[3];let o;e[4]!==t.size?(o=cs(t.size),e[4]=t.size,e[5]=o):o=e[5];const a=s?` · ${s}`:"";let c;e[6]!==o||e[7]!==a?(c=r.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,a]}),e[6]=o,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=r.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(Xe,{size:14}),e[12]=f):f=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=r.jsx(J,{asChild:!0,variant:"outline",size:"sm",children:r.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[f,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let h;return e[16]!==l||e[17]!==d||e[18]!==u?(h=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[l,d,u]})}),e[16]=l,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function hn(n){const e=$.c(16),{file:t,markdown:s}=n;let l;e[0]!==t.downloadUrl?(l=X.fileText(t.downloadUrl),e[0]=t.downloadUrl,e[1]=l):l=e[1];let i;e[2]!==t.downloadUrl?(i=async()=>{const u=await fetch(t.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=t.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==l||e[5]!==i?(o={queryKey:l,queryFn:i,staleTime:6e4,retry:!1},e[4]=l,e[5]=i,e[6]=o):o=e[6];const{data:a,isPending:c,isError:d}=ie(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(ds,{}),e[7]=u):u=e[7],u}if(d||a===void 0){let u;return e[8]!==t?(u=r.jsx(us,{file:t,note:"preview unavailable"}),e[8]=t,e[9]=u):u=e[9],u}if(s){const u=`file-preview-${t.key}`;let h;return e[10]!==a||e[11]!==u?(h=r.jsx("div",{className:"h-full overflow-y-auto",children:r.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:r.jsx(Bt,{id:u,text:a})})}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h}let f;return e[13]!==a||e[14]!==t.filename?(f=r.jsx(xr,{value:a,filename:t.filename}),e[13]=a,e[14]=t.filename,e[15]=f):f=e[15],f}function fs(n){const e=$.c(15),{file:t}=n;switch(yr(t.filename,t.size)){case"image":{let l;return e[0]!==t.downloadUrl||e[1]!==t.filename?(l=r.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:r.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=l):l=e[2],l}case"pdf":{let l;return e[3]!==t.downloadUrl||e[4]!==t.filename?(l=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=l):l=e[5],l}case"html":{let l;return e[6]!==t.downloadUrl||e[7]!==t.filename?(l=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=l):l=e[8],l}case"markdown":{let l;return e[9]!==t?(l=r.jsx(hn,{file:t,markdown:!0}),e[9]=t,e[10]=l):l=e[10],l}case"text":{let l;return e[11]!==t?(l=r.jsx(hn,{file:t,markdown:!1}),e[11]=t,e[12]=l):l=e[12],l}default:{let l;return e[13]!==t?(l=r.jsx(us,{file:t}),e[13]=t,e[14]=l):l=e[14],l}}}function vr(n){const e=$.c(40),{readUrl:t,editor:s,downloadName:l,trailing:i}=n;let o;e[0]!==t?(o=new URL(t,window.location.origin).toString(),e[0]=t,e[1]=o):o=e[1];const a=o;let c;e[2]!==s?(c=s.deckDetected&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:s.railOpen?"secondary":"ghost",size:"icon","aria-label":s.railOpen?"Hide slide list":"Show slide list",onClick:()=>s.setRailOpen(!s.railOpen),children:r.jsx(hl,{size:14})})}),r.jsx(ve,{side:"bottom",children:s.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==a?(d=()=>window.open(a,"_blank","noopener"),e[4]=a,e[5]=d):d=e[5];let f;e[6]!==a?(f=r.jsx("span",{className:"truncate",children:a}),e[6]=a,e[7]=f):f=e[7];let u;e[8]!==a||e[9]!==d||e[10]!==f?(u=r.jsx("button",{type:"button",onClick:d,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:a,children:f}),e[8]=a,e[9]=d,e[10]=f,e[11]=u):u=e[11];let h;e[12]!==s.agentUpdated||e[13]!==s.reload?(h=s.agentUpdated&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:s.reload,children:[r.jsx(jn,{size:12}),"Agent updated — reload"]})}),r.jsx(ve,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=s.agentUpdated,e[13]=s.reload,e[14]=h):h=e[14];let m;e[15]!==s.saving?(m=s.saving&&r.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=s.saving,e[16]=m):m=e[16];let p;e[17]!==s?(p=s.deckDetected&&s.writable&&r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:s.editMode?"secondary":"ghost",size:"icon","aria-label":s.editMode?"Done editing":"Edit inline",className:ce(s.editMode&&"text-primary"),onClick:()=>s.setEditMode(!s.editMode),children:r.jsx(Ys,{size:14})})}),r.jsx(ve,{side:"bottom",children:s.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=s,e[18]=p):p=e[18];let g;e[19]!==a||e[20]!==l||e[21]!==s.deckDetected?(g=s.deckDetected?r.jsxs(Ht,{children:[r.jsx(qt,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Download",children:r.jsx(Xe,{size:14})})}),r.jsxs(Kt,{align:"end",children:[r.jsxs(Fe,{onClick:()=>window.open(`${a}#print`,"_blank","noopener"),children:[r.jsx(Zs,{size:14}),"Export as PDF"]}),r.jsx(Fe,{asChild:!0,children:r.jsxs("a",{href:a,download:l,children:[r.jsx(Js,{size:14}),"Download HTML"]})})]})]}):r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:r.jsx("a",{href:a,download:l,children:r.jsx(Xe,{size:14})})})}),r.jsx(ve,{side:"bottom",children:"Download"})]}),e[19]=a,e[20]=l,e[21]=s.deckDetected,e[22]=g):g=e[22];let b;e[23]!==a?(b=()=>window.open(a,"_blank","noopener"),e[23]=a,e[24]=b):b=e[24];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(Mn,{size:14}),e[25]=x):x=e[25];let y;e[26]!==b?(y=r.jsx(ye,{asChild:!0,children:r.jsx(J,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:x})}),e[26]=b,e[27]=y):y=e[27];let j;e[28]===Symbol.for("react.memo_cache_sentinel")?(j=r.jsx(ve,{side:"bottom",children:"Open in new tab"}),e[28]=j):j=e[28];let N;e[29]!==y?(N=r.jsxs(be,{children:[y,j]}),e[29]=y,e[30]=N):N=e[30];let C;return e[31]!==N||e[32]!==c||e[33]!==u||e[34]!==h||e[35]!==m||e[36]!==p||e[37]!==g||e[38]!==i?(C=r.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,h,m,p,g,N,i]}),e[31]=N,e[32]=c,e[33]=u,e[34]=h,e[35]=m,e[36]=p,e[37]=g,e[38]=i,e[39]=C):C=e[39],C}const Re=1;function wr(n){if(typeof n!="object"||n===null||n.v!==Re||n.source!=="deck-viewer")return null;const e=n;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class Ne extends Error{constructor(e,t){super(e),this.code=t,this.name="DeckOpError"}code}function hs(n){return[...n.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function jr(n){const t=new DOMParser().parseFromString(n,"text/html").querySelector("deck-viewer");return t?hs(t).length:null}function kr(n,e){const t=new DOMParser().parseFromString(n,"text/html"),s=t.querySelector("deck-viewer");if(!s)throw new Ne("no <deck-viewer> element in source","no-viewer");const l=hs(s),i=e.kind==="move"?e.from:e.at,o=l[i];if(!o)throw new Ne(`slide index ${i} out of range (${l.length})`,"stale-index");switch(e.kind){case"remove":{if(l.length<=1)throw new Ne("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=l.length)throw new Ne(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?l[e.to]:l[e.to].nextSibling;s.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new Ne(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new Ne("replace html has no root element","bad-op");o.replaceWith(t.importNode(d,!0));break}default:throw new Ne(`unknown op kind: ${e.kind}`,"bad-op")}return`${n.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${t.documentElement.outerHTML}
|