decocms 4.505.2 → 4.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-BGmgNUi8.js → ActiveShapeUtils-qG-AEsLH.js} +1 -1
- package/dist/client/assets/{AlertCircle-BIhx1OOA.js → AlertCircle-DZq02EzT.js} +1 -1
- package/dist/client/assets/{AreaChart-NTOYQV4b.js → AreaChart-BtdW-Fy2.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C_xMypbp.js → ArrowLeft-C_qdjo3L.js} +1 -1
- package/dist/client/assets/{ArrowUp-D8ia-BLP.js → ArrowUp-B_lKPC5O.js} +1 -1
- package/dist/client/assets/{BarChart-z81pvLho.js → BarChart-4XWgQXi5.js} +1 -1
- package/dist/client/assets/{Building02-Bu9sfjbg.js → Building02-LYkR_QXB.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DVVR_K8B.js → CategoricalChart-CHtvdKKv.js} +1 -1
- package/dist/client/assets/{CheckCircle-C0zUZT_f.js → CheckCircle-B9QHilAa.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BXcOXVLY.js → ChevronSelectorVertical-0ysVIDar.js} +1 -1
- package/dist/client/assets/{ChevronUp-BNQKU6Cu.js → ChevronUp-D4PiHnN0.js} +1 -1
- package/dist/client/assets/{Copy01-7StEdMvr.js → Copy01-DJEr7OLy.js} +1 -1
- package/dist/client/assets/{CreditCard01-B-OOpOuj.js → CreditCard01-b36fqa11.js} +1 -1
- package/dist/client/assets/{DotsVertical-DlD0BohB.js → DotsVertical-CV1b1y4C.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DyfMq1Vf.js → ErrorBarContext-UL-jymXX.js} +1 -1
- package/dist/client/assets/{Globe04-CkYPSYr8.js → Globe04-DKUCyty7.js} +1 -1
- package/dist/client/assets/{Image01-DH2NgDr7.js → Image01-CyRCJwXT.js} +1 -1
- package/dist/client/assets/{Key01-DPrJgF_f.js → Key01-DWXRgH6w.js} +1 -1
- package/dist/client/assets/{Link01-EwrQnCAj.js → Link01-CNb9DW_9.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CKnd9LCY.js → LinkBroken01-BU-4AKfc.js} +1 -1
- package/dist/client/assets/{Monitor01-BSew-T8c.js → Monitor01-yE6iFgVP.js} +1 -1
- package/dist/client/assets/{Play-bKNPMcOD.js → Play-ChRMrCTB.js} +1 -1
- package/dist/client/assets/{Plus-C1jGf_Gu.js → Plus-DtZhz_pb.js} +1 -1
- package/dist/client/assets/{SearchMd-DjoAJ_aH.js → SearchMd-BQTuqO8x.js} +1 -1
- package/dist/client/assets/{Sector-_F0EuVMq.js → Sector-DeEfQN_u.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BynB5rGF.js → ShoppingBag01-CQIeNQm_.js} +1 -1
- package/dist/client/assets/{Sun-B5VGOrX8.js → Sun-kLYmwsq0.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CoAm6c3b.js → SwitchHorizontal01-DGImzN1R.js} +1 -1
- package/dist/client/assets/{Tool01-gHo5_usT.js → Tool01-BRVvW2LV.js} +1 -1
- package/dist/client/assets/{Trash01-B2L35h4N.js → Trash01-Bt3rK1ka.js} +1 -1
- package/dist/client/assets/{Upload01-BmOSnWKa.js → Upload01-s7SnRMvp.js} +1 -1
- package/dist/client/assets/{User01-DeoupK5c.js → User01-BmCbB_zb.js} +1 -1
- package/dist/client/assets/{UserSquare-DGLSfuGI.js → UserSquare-DL7MdeuL.js} +1 -1
- package/dist/client/assets/{Users01-staROqDK.js → Users01-BVggEmV6.js} +1 -1
- package/dist/client/assets/{XAxis-BkGXfrFX.js → XAxis-CDuxbcPP.js} +1 -1
- package/dist/client/assets/{XClose-SgZ1xYAr.js → XClose-UWi3HSZE.js} +1 -1
- package/dist/client/assets/{ZoomOut-GzEhPwmD.js → ZoomOut-B4Rw_R2z.js} +1 -1
- package/dist/client/assets/{access-gate-CZeXfxLf.js → access-gate-D3L-T38D.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BGa3ZBmA.js → add-connection-dialog-8k8OTwPv.js} +1 -1
- package/dist/client/assets/{agent-analytics-DPwSJREO.js → agent-analytics-bu3kFNJu.js} +1 -1
- package/dist/client/assets/agent-app-BMA5upH5.js +1 -0
- package/dist/client/assets/{agent-assets-DCX0ywK3.js → agent-assets-DJjZB71J.js} +1 -1
- package/dist/client/assets/{agent-automation-Ddwg84ee.js → agent-automation-5jRP2Yu0.js} +1 -1
- package/dist/client/assets/{agent-automations-CMrVMHoV.js → agent-automations-DBSfm1Um.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DyZZpidr.js → agent-connect-sources-C1dugrdG.js} +1 -1
- package/dist/client/assets/agent-deck-BJf1WFap.js +1 -0
- package/dist/client/assets/{agent-e2e-LNoWf1q1.js → agent-e2e-PI2OzWvI.js} +1 -1
- package/dist/client/assets/{agent-experiments-DhSnChQH.js → agent-experiments-DRdlymR5.js} +1 -1
- package/dist/client/assets/{agent-file-D7lhfRwe.js → agent-file-BzADFUid.js} +1 -1
- package/dist/client/assets/{agent-hosting-z-dkVRLB.js → agent-hosting-CPH-NeL_.js} +1 -1
- package/dist/client/assets/{agent-icon-Cgp1-Rbx.js → agent-icon-Blcoi2NV.js} +1 -1
- package/dist/client/assets/agent-library-BqFtXY1m.js +1 -0
- package/dist/client/assets/agent-library-file-CQDlY3Yr.js +1 -0
- package/dist/client/assets/{agent-monitor-lcAtszWh.js → agent-monitor-PGLXk9dq.js} +1 -1
- package/dist/client/assets/{agent-overview-A0XZkNZX.js → agent-overview-D278LRIL.js} +1 -1
- package/dist/client/assets/{agent-releases-CdrTvT-G.js → agent-releases-CwPpC6Zn.js} +1 -1
- package/dist/client/assets/agent-settings-DeB5MuX_.js +1 -0
- package/dist/client/assets/{agent-site-editor-rsHLltUo.js → agent-site-editor-BSI5T3i7.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Dq4KRDBk.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Blm2auu-.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CCk80iIG.js +1 -0
- package/dist/client/assets/agent-view-Cl8uWNJN.js +1 -0
- package/dist/client/assets/{agent-view-guard-qqtbmzn8.js → agent-view-guard-CVWBSVAR.js} +1 -1
- package/dist/client/assets/{agents-list-Bl683eN3.js → agents-list-DYmELJk-.js} +1 -1
- package/dist/client/assets/ai-providers-B3x7urKU.js +6 -0
- package/dist/client/assets/{alert-CBqUZF_B.js → alert-Dp8EatFO.js} +1 -1
- package/dist/client/assets/{alert-dialog-CWY9Kc3Y.js → alert-dialog-qlQC4zlU.js} +1 -1
- package/dist/client/assets/{analytics-sections-CaEiZicR.js → analytics-sections-BirEZrZQ.js} +1 -1
- package/dist/client/assets/{api-keys-ZpWV4LWE.js → api-keys-7UDmxa_w.js} +1 -1
- package/dist/client/assets/api-keys-DSwUfsL4.js +1 -0
- package/dist/client/assets/{app-editor-CpBb0p40.js → app-editor-tLSj0Sjg.js} +1 -1
- package/dist/client/assets/{asset-utils-xrLuSjSE.js → asset-utils-DYZVbDw1.js} +1 -1
- package/dist/client/assets/{auth-DN7Bvt0x.js → auth-CLglKqB6.js} +1 -1
- package/dist/client/assets/{auth-catchall-LDgnpYFX.js → auth-catchall-CrJHPLPw.js} +1 -1
- package/dist/client/assets/{auth-entry-DBQx8en_.js → auth-entry-CD3L2RvS.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Fwc5hwZ5.js → auth-split-layout-UjhzYVxM.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DxbO9IXQ.js → authenticate-and-persist-oauth-ClVBgGv4.js} +1 -1
- package/dist/client/assets/{automation-list-row-D5qFdHQB.js → automation-list-row-CAEPQbgy.js} +1 -1
- package/dist/client/assets/{automation-runs-DcR0jeNA.js → automation-runs-dUM-MaiP.js} +1 -1
- package/dist/client/assets/{automations-Dityp5_M.js → automations-megKF7It.js} +1 -1
- package/dist/client/assets/{autosend-CGqWx5OM.js → autosend-CE_yiNtR.js} +1 -1
- package/dist/client/assets/{avatar-BEzB55DL.js → avatar-B8cS3VPt.js} +1 -1
- package/dist/client/assets/{badge-BH_WGjDS.js → badge-Qzxf6tet.js} +1 -1
- package/dist/client/assets/{block-document-5J5cVbgF.js → block-document-AKpwbifj.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Cbvinja6.js → blocks-preview-workspace-context-VkiPmc8G.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Cr3Mgd7m.js → blocks-tab-states-BbjL1qhZ.js} +3 -3
- package/dist/client/assets/{blog-schema-Izy6f_kE.js → blog-schema-DL-wxhkE.js} +1 -1
- package/dist/client/assets/{board-analytics-DmM8aqHX.js → board-analytics-C1pwywOy.js} +1 -1
- package/dist/client/assets/{buckets-geowc7lF.js → buckets-DZKIT9DY.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-5cXWIMm8.js → build-improve-prompt-doc-1VLAf1m8.js} +1 -1
- package/dist/client/assets/{calendar-D2pB4wtO.js → calendar-BuSRVV5D.js} +1 -1
- package/dist/client/assets/{capability-load-error-Dds-uRz2.js → capability-load-error-DBmMi5Hs.js} +1 -1
- package/dist/client/assets/{category-editor-BTiGDErD.js → category-editor-DVRF9hj1.js} +1 -1
- package/dist/client/assets/{chart-BES0Ixch.js → chart-NrDAd4pe.js} +1 -1
- package/dist/client/assets/{chat-context-DnIdZBaI.js → chat-context-Ch-VpD9W.js} +1 -1
- package/dist/client/assets/{chat-draft-CRVPT9el.js → chat-draft-B2p2B6Yw.js} +1 -1
- package/dist/client/assets/{checkbox-Uc-RZ_Vx.js → checkbox-C0-Eo7G1.js} +1 -1
- package/dist/client/assets/{choose-editor-tZFlebbQ.js → choose-editor-BeLyDWVx.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CRs28Mxh.js → cli-auth-success-DUKgfRgt.js} +1 -1
- package/dist/client/assets/{client-icons-mh3r1xQL.js → client-icons-DtQhx8-x.js} +1 -1
- package/dist/client/assets/cms-settings-editor-Dxh-Mvqb.js +1 -0
- package/dist/client/assets/{collapsible-Ds-16t3Z.js → collapsible-EpmgpNpi.js} +1 -1
- package/dist/client/assets/{collection-detail-BUD1Fj-1.js → collection-detail-BTHodnm7.js} +1 -1
- package/dist/client/assets/{collection-display-button-B4UCXL7F.js → collection-display-button-__Pm6Nmn.js} +1 -1
- package/dist/client/assets/{collection-search-DRsC_wPy.js → collection-search-ehqGBK_4.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B4kBTbV1.js → collection-table-wrapper-BBPmRt9r.js} +1 -1
- package/dist/client/assets/{collection-tabs-G4I4mgEg.js → collection-tabs-iTmpvLeT.js} +1 -1
- package/dist/client/assets/{column-rules-Bx5p17lP.js → column-rules-adUN8XvK.js} +1 -1
- package/dist/client/assets/{combobox-BjJigzYO.js → combobox-BUo7EBrO.js} +1 -1
- package/dist/client/assets/{command-DYQfaTJP.js → command-BAgcQ2fh.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-g374jTYK.js → companion-mcps-section-CAn17bJY.js} +1 -1
- package/dist/client/assets/{config-TpF0U9xK.js → config-BDu66MgM.js} +1 -1
- package/dist/client/assets/{connect-CX0GhSHk.js → connect-2yc9-JJp.js} +1 -1
- package/dist/client/assets/{connect-layout-BMKwPFI2.js → connect-layout-DtIoh422.js} +1 -1
- package/dist/client/assets/{connection-Chcd5gfb.js → connection-B8e9uIdy.js} +1 -1
- package/dist/client/assets/{connection-card-BZ2hvQNx.js → connection-card-CLVSIR42.js} +1 -1
- package/dist/client/assets/{connection-detail-F-9yuMeT.js → connection-detail-DN36Ozvh.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CYVYxK9g.js → connection-form-helpers-CSZF_TQx.js} +1 -1
- package/dist/client/assets/{connections-BrK9YMjs.js → connections-DC5XESZs.js} +1 -1
- package/dist/client/assets/{content-tab-KxngU340.js → content-tab-DUe9Pk3L.js} +3 -3
- package/dist/client/assets/{context-tSOe45h9.js → context-DdNfBAMU.js} +1 -1
- package/dist/client/assets/{context-menu-BXe1H0QA.js → context-menu-DJ87apJ2.js} +1 -1
- package/dist/client/assets/{core.esm-CPRa5yRj.js → core.esm-C7s0VVJH.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-B9kEJeCB.js → create-organization-dialog-DoF61er3.js} +1 -1
- package/dist/client/assets/{daily-pulse-BA8HcQTn.js → daily-pulse-C775e_y-.js} +1 -1
- package/dist/client/assets/{discover-ut7HMfOm.js → discover-C_Que9Au.js} +1 -1
- package/dist/client/assets/{domain-settings-DReys8Mx.js → domain-settings-CT-S0BOV.js} +1 -1
- package/dist/client/assets/{drawer-WlRFS7Ay.js → drawer-CixpU7n-.js} +1 -1
- package/dist/client/assets/{editor-DATgPuQr.js → editor-BKRP2Iwc.js} +1 -1
- package/dist/client/assets/{editor-classes-Dqv6lj24.js → editor-classes-DZByr-lI.js} +1 -1
- package/dist/client/assets/{empty-state-moJi-5lI.js → empty-state-BZZcWHI_.js} +1 -1
- package/dist/client/assets/{empty-state-B1yxQlJg.js → empty-state-DQLm0d5k.js} +1 -1
- package/dist/client/assets/{extract-connection-data--Fovqgj9.js → extract-connection-data-DJs0gTBx.js} +1 -1
- package/dist/client/assets/{feature-gate-DijBSCNJ.js → feature-gate-CgRSy5_Q.js} +1 -1
- package/dist/client/assets/{feature-paywall-v1Fb6fZF.js → feature-paywall-EueGiC9A.js} +1 -1
- package/dist/client/assets/{file-explorer-CisB6hMY.js → file-explorer-cu0ZoZ2i.js} +1 -1
- package/dist/client/assets/{file-preview-BUCUOt-k.js → file-preview-BJ_PkL7X.js} +1 -1
- package/dist/client/assets/{file-share-button-BUqpTgXp.js → file-share-button-rEinR-qh.js} +1 -1
- package/dist/client/assets/{file-type-icon-IzZjwu7K.js → file-type-icon-C2JXE2hG.js} +1 -1
- package/dist/client/assets/flat-project-fhJMf2Fo.js +1 -0
- package/dist/client/assets/{folder-icon-Bsi0vn7I.js → folder-icon-Cayf6XFB.js} +1 -1
- package/dist/client/assets/{form-DSbydQ9O.js → form-BivWj0r6.js} +1 -1
- package/dist/client/assets/{general-DcBh6hf3.js → general-BQtDTtDD.js} +1 -1
- package/dist/client/assets/{home-Bq-bjcAt.js → home-DncG44Vc.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-C0L18XKn.js → hosted-publish-feedback-CfrjUALv.js} +1 -1
- package/dist/client/assets/{icon-button-C0jFpnCv.js → icon-button-DxqkkLQj.js} +1 -1
- package/dist/client/assets/{index-BiA-t4Hy.js → index-5vR8G6oj.js} +1 -1
- package/dist/client/assets/{index-B4FWh-TU.js → index-B26ImUL7.js} +1 -1
- package/dist/client/assets/{index-BOYIuRkz.js → index-BF64aC--.js} +1 -1
- package/dist/client/assets/{index-BQ2qZBgx.js → index-BYmaAL9a.js} +1 -1
- package/dist/client/assets/{index-CeKAW7ia.js → index-BmYzltjg.js} +1 -1
- package/dist/client/assets/{index-_CyfhGXa.js → index-BtcVoJOD.js} +1 -1
- package/dist/client/assets/{index-WULssi-Q.js → index-BvuLMeCw.js} +3 -3
- package/dist/client/assets/{index-BbDc7Y9O.js → index-C-gf76Hu.js} +1 -1
- package/dist/client/assets/{index-C1tHNU3p.js → index-C47EvNjt.js} +1 -1
- package/dist/client/assets/{index-DR8Su143.js → index-CZciUUmu.js} +1 -1
- package/dist/client/assets/{index-CpsTTiQE.js → index-CvK4-KP3.js} +1 -1
- package/dist/client/assets/{index-Bio6kNpV.js → index-DV6FL3mH.js} +1 -1
- package/dist/client/assets/{index-D7sc3WaJ.js → index-NRMbjvM1.js} +1 -1
- package/dist/client/assets/{index-wFdxw2k_.js → index-TD9q6ZAx.js} +5 -5
- package/dist/client/assets/{index-redirect-w-0W0NUM.js → index-redirect-CCsqcmui.js} +1 -1
- package/dist/client/assets/{index-DCKP2AL5.js → index-xlh3U8dq.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-1Nb7ygTX.js → infiniteQueryObserver-X8qh_Va6.js} +1 -1
- package/dist/client/assets/{infra-billing-hV6CHYxH.js → infra-billing-fufjpAYz.js} +1 -1
- package/dist/client/assets/{input-Ceh9947-.js → input-BSUErVvJ.js} +3 -3
- package/dist/client/assets/{input-CzNDxW-p.js → input-h8042dl0.js} +1 -1
- package/dist/client/assets/{integration-icon-BPag0HQm.js → integration-icon-DJtlg_0w.js} +1 -1
- package/dist/client/assets/{jira-icon-ifmeQn21.js → jira-icon-D0XL00z9.js} +1 -1
- package/dist/client/assets/{label-CQYxH0TR.js → label-B-SEr3Fs.js} +1 -1
- package/dist/client/assets/{layout-CdChXOi6.js → layout-BI2BIstR.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BtUjTNH_.js → legacy-agents-deep-jcGaNAHc.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CGRT9wAN.js → legacy-main-redirect-D6tF7agn.js} +1 -1
- package/dist/client/assets/library-DntM1dnS.js +1 -0
- package/dist/client/assets/{library-tab-nrpvyINN.js → library-tab-BZkqrpuT.js} +1 -1
- package/dist/client/assets/{login-DQqSSnqy.js → login-C9lgbiSh.js} +1 -1
- package/dist/client/assets/{markdown-DurQwPzV.js → markdown-B-jDeUMA.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-NiFsT2pJ.js → mcp-app-renderer-Bk4hyaxU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-XpCTKkfu.js → mcp-oauth-CaxV9wcl.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dff3yojn.js → mcp-oauth-V-o-AEQP.js} +1 -1
- package/dist/client/assets/{members-DMVi5o98.js → members-BLeFrNm9.js} +1 -1
- package/dist/client/assets/{memory-DIF2ywrA.js → memory-BsNDNxr2.js} +1 -1
- package/dist/client/assets/{mini-report-page-DHPkzjD_.js → mini-report-page-B0fqOWnH.js} +1 -1
- package/dist/client/assets/mock-board-BFTY4RvG.js +1 -0
- package/dist/client/assets/{monaco-editor-Dct1EfHT.js → monaco-editor-D49CJi8U.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DMDJZVd2.js → monitoring-stats-row-BB3CDHWN.js} +1 -1
- package/dist/client/assets/{multi-select-Cn966z1g.js → multi-select-BvMK4932.js} +1 -1
- package/dist/client/assets/{mustache-BYEVEnz3.js → mustache-HTehKKTG.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BDSi2lYl.js → new-project-dialog-DoLb5YVK.js} +1 -1
- package/dist/client/assets/{oauth-callback-DXdUEFpc.js → oauth-callback-Blwmfj1R.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DlAWIja6.js → oauth-callback-ai-provider-Dc9onjjw.js} +1 -1
- package/dist/client/assets/{onboarding-SJ6Q72M4.js → onboarding-K-cgEcDl.js} +1 -1
- package/dist/client/assets/{openai-conversation-lYlmwIzY.js → openai-conversation-R6WmtJ5r.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bp7eA4v5.js → optimistic-project-sidebar-views-Bmh9CacI.js} +1 -1
- package/dist/client/assets/{order-monitor-day-t8Y-HAbt.js → order-monitor-day-CZfhLaiW.js} +1 -1
- package/dist/client/assets/{organization-choice-xE4qpP6H.js → organization-choice-dC-onaYV.js} +1 -1
- package/dist/client/assets/{orgs-BnzYsVdt.js → orgs-BOJwmOLw.js} +1 -1
- package/dist/client/assets/{page-seo-form-Dm5HWm7X.js → page-seo-form-CrsEBL3M.js} +1 -1
- package/dist/client/assets/{pair-B_9py9M_.js → pair-CYYi6JKh.js} +1 -1
- package/dist/client/assets/{plan-ladder-hsk9sMi3.js → plan-ladder-Okx-KzN5.js} +1 -1
- package/dist/client/assets/{popover-B8WQyYwE.js → popover-gJO3R5Ii.js} +1 -1
- package/dist/client/assets/{post-calendar-HzlqyoFX.js → post-calendar-BgDWtRgx.js} +1 -1
- package/dist/client/assets/{post-editor-_yiJ-Kct.js → post-editor-CxINLeRV.js} +1 -1
- package/dist/client/assets/{preview-content-B8YyjekZ.js → preview-content-Cfi8bwXI.js} +1 -1
- package/dist/client/assets/{preview-dialog-bksJINeP.js → preview-dialog-jZ9sRQON.js} +1 -1
- package/dist/client/assets/{preview-panel-B8wW3oOG.js → preview-panel-CN8PRsYc.js} +1 -1
- package/dist/client/assets/{preview-tab-D_zCwBYM.js → preview-tab-DRuTgCNI.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DbDjfkAQ.js → product-picker-dialog-DB4JPBCA.js} +1 -1
- package/dist/client/assets/{profile-DdCmH2hW.js → profile-DEiIcjHZ.js} +1 -1
- package/dist/client/assets/{project-app-view-ChMgcNAY.js → project-app-view-Ml2wH3iy.js} +1 -1
- package/dist/client/assets/{project-feed-CB9OPO_N.js → project-feed-CfssvHDQ.js} +1 -1
- package/dist/client/assets/{project-icon-BwmwhXEd.js → project-icon-BlJz5cOI.js} +1 -1
- package/dist/client/assets/project-reports-CsI0AQuY.js +1 -0
- package/dist/client/assets/project-tasks-DLi14b92.js +1 -0
- package/dist/client/assets/{projects-BmqEzMnN.js → projects-Dzy3_FXd.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BscYKwea.js → projects-empty-state-BDYeDrMv.js} +1 -1
- package/dist/client/assets/{prompts-DopKJbNh.js → prompts-DV4Kjfa5.js} +1 -1
- package/dist/client/assets/record-editor-wOnCkFPK.js +1 -0
- package/dist/client/assets/{redirect-editor-Bh_26SDR.js → redirect-editor-DFCv83sL.js} +1 -1
- package/dist/client/assets/reports-AMpsYdUr.js +1 -0
- package/dist/client/assets/{reports-DNvLVhhR.js → reports-DXYrq_BO.js} +1 -1
- package/dist/client/assets/{reports-onboarding-aJM_IDTw.js → reports-onboarding-1VulbTO6.js} +1 -1
- package/dist/client/assets/{reports-tab-BMc9C4Qh.js → reports-tab-DmNt_T04.js} +2 -2
- package/dist/client/assets/{repositories-BD5gqmJg.js → repositories-D6jC23CW.js} +1 -1
- package/dist/client/assets/{repository-binding-09n9zNFN.js → repository-binding-BnejFX7t.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DL9csYfh.js → repository-import-picker-h-r8nnEf.js} +1 -1
- package/dist/client/assets/{repository-picker-DABBo0DW.js → repository-picker-FTAXO4Nx.js} +1 -1
- package/dist/client/assets/{require-capability-BEWYbP4S.js → require-capability-BewAou1A.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BF8PRozy.js → required-auth-layout-gIZfj42y.js} +1 -1
- package/dist/client/assets/{reset-password-ScHjA5IF.js → reset-password-Bq09blPf.js} +1 -1
- package/dist/client/assets/{resizable-DkYJhCH3.js → resizable-CGzf0YCQ.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BFjWL9qV.js → resolve-tab-icon-Daxo01Gi.js} +1 -1
- package/dist/client/assets/{review-settings-BGU-nfDw.js → review-settings-DR_kj-Ru.js} +1 -1
- package/dist/client/assets/roles-DWOkvlO_.js +1 -0
- package/dist/client/assets/{route-C0_qtTp0.js → route-B-p6J_u6.js} +1 -1
- package/dist/client/assets/route-G0-ZvPpf.js +1 -0
- package/dist/client/assets/route-UiPRedfp.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-Ue82FfDC.js → sandbox-lifecycle-context-rc29IhVV.js} +1 -1
- package/dist/client/assets/{schema-Fm9WpUHJ.js → schema-BGirdKR7.js} +1 -1
- package/dist/client/assets/schema-DTvMW5Bj.js +1 -0
- package/dist/client/assets/{scroll-area-CB_2Aaiz.js → scroll-area-D0jo1bkt.js} +1 -1
- package/dist/client/assets/{search-input-BLMScalM.js → search-input-DIOUBltI.js} +1 -1
- package/dist/client/assets/{search-toggle-CRC9Uyem.js → search-toggle-BWyMsPKk.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-DKMPhCC7.js → secret-ciphertext-ANOQlePB.js} +1 -1
- package/dist/client/assets/{secret-picker-Ct5TqLUt.js → secret-picker--4BFyqbe.js} +1 -1
- package/dist/client/assets/{secrets-W81BJ6O0.js → secrets-BxBi0DW0.js} +1 -1
- package/dist/client/assets/{sections-editor-CoFpY6Pb.js → sections-editor-cLAvYqLX.js} +1 -1
- package/dist/client/assets/{select-model-Dao29CnX.js → select-model-Dqb1K6bc.js} +1 -1
- package/dist/client/assets/{select-XSwSofuZ.js → select-vip2MDSn.js} +1 -1
- package/dist/client/assets/{seo-editor-CXJw5HQb.js → seo-editor-DDZSfwYW.js} +1 -1
- package/dist/client/assets/{separator-DKnUckca.js → separator-BQ3AM4Ug.js} +1 -1
- package/dist/client/assets/{settings-tab-B0y-8xZD.js → settings-tab-eia9Fz-X.js} +1 -1
- package/dist/client/assets/{sheet-BvEf_UVQ.js → sheet-IYrYpc2B.js} +1 -1
- package/dist/client/assets/{shell-layout-CBiOwFtT.js → shell-layout-BM51_FIv.js} +1 -1
- package/dist/client/assets/site-editor-C5iX5zAy.js +1 -0
- package/dist/client/assets/{site-editor-toast-DZvdp8hl.js → site-editor-toast-DbJhMk7V.js} +1 -1
- package/dist/client/assets/{skills-B9A_KuNf.js → skills-D2FiXzGW.js} +1 -1
- package/dist/client/assets/{slider-CIERvkTu.js → slider-CwnL3HRa.js} +1 -1
- package/dist/client/assets/{sortable.esm-DVeag0L1.js → sortable.esm-BmwNKHYn.js} +1 -1
- package/dist/client/assets/{sso-SHUpqa2t.js → sso-DMQ-B__P.js} +1 -1
- package/dist/client/assets/{suggestion-8feXh3Uo.js → suggestion-B_X9vnmO.js} +1 -1
- package/dist/client/assets/{switch-CIYZwU4n.js → switch-B9eCMptF.js} +1 -1
- package/dist/client/assets/{symbol-BBXD1fl1.js → symbol-BnsdD8oy.js} +1 -1
- package/dist/client/assets/{synced-repos-DUkzQSzh.js → synced-repos-VO9uiFX2.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Di0eKueD.js → tab-icon-glyph-D53P8msf.js} +1 -1
- package/dist/client/assets/{table-D32JWTgg.js → table-D9fzXIkZ.js} +1 -1
- package/dist/client/assets/{tabs-DWLSC789.js → tabs-BawejvDB.js} +1 -1
- package/dist/client/assets/task-board-ouLvp423.js +1 -0
- package/dist/client/assets/{task-route-DcEcJOK4.js → task-route-CjHIKjev.js} +1 -1
- package/dist/client/assets/{task-status-DCsFB7tb.js → task-status-Buh7B1MG.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DhwjY7M5.js +1 -0
- package/dist/client/assets/tasks-Ds4uIhX_.js +1 -0
- package/dist/client/assets/{tasks-CxWkzUmt.js → tasks-FmvKs9d3.js} +1 -1
- package/dist/client/assets/{textarea-BRAhDvOh.js → textarea-B-TS083j.js} +1 -1
- package/dist/client/assets/{thread-analytics-C2SSbO3U.js → thread-analytics-ykgOvgFb.js} +1 -1
- package/dist/client/assets/{thread-intent-DLRGXMNS.js → thread-intent-S-gJClOG.js} +1 -1
- package/dist/client/assets/{thread-route-zVWhMReX.js → thread-route-CQmCTEyn.js} +1 -1
- package/dist/client/assets/{thread-route-uTiqhl-l.js → thread-route-DtCL8-V4.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BxMopJ4Q.js → thread-sheet-body-DacE2e8a.js} +1 -1
- package/dist/client/assets/{time-range-picker-DrHQe3U8.js → time-range-picker-BIBoZiWJ.js} +1 -1
- package/dist/client/assets/{toggle-group-D9ChEXcL.js → toggle-group-DI4ttUmk.js} +1 -1
- package/dist/client/assets/{tool-namespace-B6bl3mST.js → tool-namespace-DSuLhjHC.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CrX4dIfH.js → toolbar-icon-button-UylaJSAo.js} +1 -1
- package/dist/client/assets/{tooltip-BP_lFNWX.js → tooltip-D3Lno7Sd.js} +1 -1
- package/dist/client/assets/{tooltipContext-BwHz9WYB.js → tooltipContext-BF4YYYQ4.js} +1 -1
- package/dist/client/assets/{track-XuWYLpsB.js → track-9gnPqqM1.js} +1 -1
- package/dist/client/assets/{types-DzDNRCBv.js → types-oDc7dHni.js} +1 -1
- package/dist/client/assets/{url-slug-DZjL4P4N.js → url-slug-CzRjxv-k.js} +1 -1
- package/dist/client/assets/{usage-stats-BrfBlLKo.js → usage-stats-DadTD3M-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-bNjYR9g2.js → use-ai-providers-AcvGe9-V.js} +1 -1
- package/dist/client/assets/{use-app-takeover-n62Fmu8v.js → use-app-takeover-BEzFC8oO.js} +1 -1
- package/dist/client/assets/{use-automations-CS_cSvCE.js → use-automations-CN350YMB.js} +1 -1
- package/dist/client/assets/{use-autosave-cTT6Hu-H.js → use-autosave-Dav7fRBX.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-CO4_t1mA.js → use-chat-navigation-DlxbS2Ir.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DpInA1iA.js → use-clock-tick-Biiz8lzy.js} +1 -1
- package/dist/client/assets/{use-connect-companion-XyjuBcsZ.js → use-connect-companion-VKAyFcK2.js} +1 -1
- package/dist/client/assets/{use-connection-CHo2bcMw.js → use-connection-OOD0tHd7.js} +1 -1
- package/dist/client/assets/{use-content-sync-BfdqJCQu.js → use-content-sync-BQvWp4_o.js} +1 -1
- package/dist/client/assets/{use-copy-DUoQxyl0.js → use-copy-Cn4Z57YH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DEnk__H8.js → use-create-virtual-mcp-CZW2rCq7.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-HDKinbV-.js → use-date-fns-locale-ZV1qLyjT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DYYkzWY_.js → use-debounced-autosave-DoWWmWzG.js} +1 -1
- package/dist/client/assets/{use-debounced-value-G0eXCuJA.js → use-debounced-value-WEbEbeed.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DM3bKm1X.js → use-deco-credits-D1idFaA8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-1AtUjySK.js → use-decopilot-events-BITSrHb-.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cg3msRwS.js → use-delete-connection-KMdMK-5V.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BH9iAY5E.js → use-deployment-admin-B_soKFRv.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-Ba1RyXTm.js → use-ensure-project-folder-BUN6VVAV.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DuVBfmnv.js → use-fast-preview-draft-url-CSXqCUZ_.js} +1 -1
- package/dist/client/assets/{use-file-configs-DpVdr_mk.js → use-file-configs-DMVCBG-z.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-fbccvd5L.js → use-infinite-scroll-DjYaDj_j.js} +1 -1
- package/dist/client/assets/{use-join-requests-BU-AH2wa.js → use-join-requests-Be-FCByX.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BbpwWXur.js → use-main-panel-tabs-Cloon3zW.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DRC6-H1Z.js → use-mcp-auth-status-Bv4IbKQl.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CgigId7h.js → use-mcp-client-fTyLcuiX.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C5fo7JyP.js → use-mcp-prompts-CyqOUVUD.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CMQDcWNX.js → use-mcp-tools-sv7pv5ex.js} +1 -1
- package/dist/client/assets/{use-members-DKO2z7jU.js → use-members-CvY21L2Q.js} +1 -1
- package/dist/client/assets/{use-mobile-BLPp5y7v.js → use-mobile-2T0aye5I.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CVa4wG4H.js → use-navigate-to-agent-BpeT4fqu.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BNJHjUYg.js → use-open-billing-url-Db0e3guK.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BryWu6mx.js → use-org-auth-client-CWA2hWCM.js} +1 -1
- package/dist/client/assets/{use-org-fs-Busfyhv0.js → use-org-fs-CPNJqv-N.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Bz1fQYYa.js → use-org-repo-syncs-MWiNxGjz.js} +1 -1
- package/dist/client/assets/{use-org-sso-bcSBbFXH.js → use-org-sso-BMLNRQyf.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DffTFg63.js → use-organization-roles-DwFJmstu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cc-OpUav.js → use-organization-settings-lug340cj.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cse0kIZg.js → use-panel-navigate-CfJ9Qf-l.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DgHBfVGR.js → use-project-native-view-presence-DdsfKci4.js} +1 -1
- package/dist/client/assets/{use-project-scope-B3ANi1IJ.js → use-project-scope-C99MQSqi.js} +1 -1
- package/dist/client/assets/{use-recent-apps-ClF4CK3T.js → use-recent-apps-BumxbfgY.js} +1 -1
- package/dist/client/assets/{use-releases-D0BOJZ8M.js → use-releases-CRk_-gGM.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CoBZgwNK.js → use-reports-diagnostic-WXyHMxuT.js} +1 -1
- package/dist/client/assets/{use-secrets-J4K2lbya.js → use-secrets-nvhTtgV_.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C2OLAuvH.js → use-section-preview-base-BBIzI-Pc.js} +1 -1
- package/dist/client/assets/{use-tags-pVd2xiCJ.js → use-tags-Dawb8nJP.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-gYEm-02X.js → use-task-board-analytics-BaDTyaMf.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Df7dgtVf.js → use-task-board-events-viqZq2i-.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DkQx7M2j.js → use-task-board-item-prs-BTOeRNoi.js} +1 -1
- package/dist/client/assets/{use-task-board-items-C6IVrd-u.js → use-task-board-items-Dp3mGHSl.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B_eO6NAU.js → use-task-metadata-Buvn0eAk.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DtMoL4PA.js → use-thread-analytics-DOC2eb9z.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BI5SHJYx.js → use-thread-outputs-Bmumw8UE.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CQY9cAw7.js +1 -0
- package/dist/client/assets/{useQueries-CNpRnVIa.js → useQueries-4Zja_Hbg.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XqqzZbmr.js +1 -0
- package/dist/client/assets/{users-ivFpS9Lq.js → users-Cbsspkn2.js} +1 -1
- package/dist/client/assets/{utils-bWD-X54y.js → utils-zbsUBoHt.js} +1 -1
- package/dist/client/assets/{variant-calendar-DksJ_7_J.js → variant-calendar-BnIxTRkB.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-Bmae6Tqf.js → variant-draft-pointer-DEL-ZLWj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C21oeZ12.js → view-mode-toggle-CGu3ANob.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DQ5n4L-p.js → virtual-mcp-DQFtuDZf.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DENohcwv.js → watch-sse-pool-C7fmCtIy.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/migrate-dbos.js +1 -1
- package/dist/server/migrate.js +218 -214
- package/dist/server/server.js +754 -754
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CLxKR8tP.js +0 -1
- package/dist/client/assets/agent-deck-CrnhUXqK.js +0 -1
- package/dist/client/assets/agent-library-DaueecGi.js +0 -1
- package/dist/client/assets/agent-library-file-9M8Zj4zk.js +0 -1
- package/dist/client/assets/agent-settings-BmHxaKU2.js +0 -1
- package/dist/client/assets/agent-site-editor-code-y6AvE-5T.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B1_2Oozw.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BwrdNA-b.js +0 -1
- package/dist/client/assets/agent-view-BuDZYnBO.js +0 -1
- package/dist/client/assets/ai-providers-Cn_Nj1qE.js +0 -6
- package/dist/client/assets/api-keys-_y0SevGg.js +0 -1
- package/dist/client/assets/cms-settings-editor-DXaCAKpH.js +0 -1
- package/dist/client/assets/flat-project-BVJS2Ar0.js +0 -1
- package/dist/client/assets/library-UKyRew3D.js +0 -1
- package/dist/client/assets/mock-board-BOb4XDb6.js +0 -1
- package/dist/client/assets/project-reports-C6XPjSeE.js +0 -1
- package/dist/client/assets/project-tasks-DEZ-La_L.js +0 -1
- package/dist/client/assets/record-editor-Cyo5F4-b.js +0 -1
- package/dist/client/assets/reports-DBoKBg_K.js +0 -1
- package/dist/client/assets/roles-D7RemnKj.js +0 -1
- package/dist/client/assets/route-DuM3NpZo.js +0 -1
- package/dist/client/assets/route-OZFS68ac.js +0 -1
- package/dist/client/assets/schema-v1GsTRkZ.js +0 -1
- package/dist/client/assets/site-editor-CjiR59U-.js +0 -1
- package/dist/client/assets/task-board-CjLfzLYs.js +0 -1
- package/dist/client/assets/taskboard-analytics-ZWeq2HS-.js +0 -1
- package/dist/client/assets/tasks-By3Yi7H-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D7970gdx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BFNRElUS.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ye,b as ke,j as O,r as et,ah as $t,B as xt,l as Lt,a5 as Ct}from"./index-wFdxw2k_.js";import{a as Mt}from"./Copy01-7StEdMvr.js";import{a as Bt,b as Vt,A as Dt}from"./alert-CBqUZF_B.js";import{u as It}from"./use-copy-DUoQxyl0.js";const te="https://docs.decocms.com/storefront/blocks",Ut={quickstart:`${te}/next/quickstart`,siteEditor:`${te}/next/site-editor#edit-on-your-machine`,serve:`${te}/next/cli#deco-serve`,schema:`${te}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${te}/next/troubleshooting#site-editor`};function Jr(e){const t=ye.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Ft),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=O.jsx(O.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Ft(e,t){return t%2===1?O.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):O.jsx(et.Fragment,{children:e},t)}function en(e){const t=ye.c(31),{command:r}=e,n=ke(),{handleCopy:s,copied:i}=It();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=O.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=a):a=t[0];let l;t[1]!==r?(l=r.split(" ").map(Yt),t[1]=r,t[2]=l):l=t[2];let f;t[3]!==l?(f=O.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,l]}),t[3]=l,t[4]=f):f=t[4];let h;t[5]!==n?(h=n("decoServe.guide.copy"),t[5]=n,t[6]=h):h=t[6];let _;t[7]!==r||t[8]!==s?(_=()=>{s(r).catch(Nt)},t[7]=r,t[8]=s,t[9]=_):_=t[9];let E;t[10]!==i?(E=i?O.jsx($t,{className:"text-success"}):O.jsx(Mt,{}),t[10]=i,t[11]=E):E=t[11];let $;t[12]!==i||t[13]!==n?($=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=$):$=t[14];let x;t[15]!==$?(x=O.jsx("span",{"aria-hidden":"true",children:$}),t[15]=$,t[16]=x):x=t[16];let D;t[17]!==h||t[18]!==_||t[19]!==E||t[20]!==x?(D=O.jsxs(xt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":h,onClick:_,children:[E,x]}),t[17]=h,t[18]=_,t[19]=E,t[20]=x,t[21]=D):D=t[21];let P;t[22]!==i||t[23]!==n?(P=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=P):P=t[24];let I;t[25]!==P?(I=O.jsx("span",{className:"sr-only","aria-live":"polite",children:P}),t[25]=P,t[26]=I):I=t[26];let Y;return t[27]!==I||t[28]!==f||t[29]!==D?(Y=O.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[f,D,I]}),t[27]=I,t[28]=f,t[29]=D,t[30]=Y):Y=t[30],Y}function Nt(){}function Yt(e,t){return O.jsxs(et.Fragment,{children:[t>0&&" ",O.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const zt={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function tn(e){const t=ye.c(20),{links:r,className:n}=e,s=ke();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let a;t[2]!==n?(a=Lt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=a):a=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let f;t[6]!==l?(f=O.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=f):f=t[7];let h;if(t[8]!==r||t[9]!==s){let $;t[11]!==s?($=x=>O.jsxs("a",{href:Ut[x],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(zt[x]),O.jsx(Ct,{"aria-hidden":"true",className:"size-3.5"}),O.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},x),t[11]=s,t[12]=$):$=t[12],h=r.map($),t[8]=r,t[9]=s,t[10]=h}else h=t[10];let _;t[13]!==h?(_=O.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:h}),t[13]=h,t[14]=_):_=t[14];let E;return t[15]!==i||t[16]!==a||t[17]!==f||t[18]!==_?(E=O.jsxs("nav",{"aria-label":i,className:a,children:[f,_]}),t[15]=i,t[16]=a,t[17]=f,t[18]=_,t[19]=E):E=t[19],E}function rn(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function nn(){const e=ye.c(11),t=ke();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=O.jsx(Bt,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=O.jsx(Vt,{children:s}),e[6]=s,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==i?(a=O.jsx(Dt,{variant:"destructive",children:O.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=a):a=e[10],a}const sn="website/loaders/secret.ts",on=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Wt=/^(?:[0-9a-f]{2})*$/i;function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function Kt(e){return typeof e=="string"&&Wt.test(e)}class Ht extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(qt(e)){const n=e.encrypted;if(n!==void 0&&!Kt(n))throw new Ht(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Gt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function an(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function se(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function cn(e,t){return se(e,t)!==null}function Pe(e,t){const r=se(e,t);return r!==null&&r.includes("sections")}function Qt(e,t){const r=se(e,t);return r!==null&&r.includes("apps")}function Xt(e,t){const r=se(e,t);return r!==null&&r.includes("matchers")}function de(e,t){return!(!e||t&&se(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function je(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const ln="oklch(0.7278 0.151 289)",Zt="website/matchers/always.ts",tt="website/matchers/never.ts",ge="website/flags/multivariate.ts",J="website/flags/multivariate/section.ts";function we(){return{__resolveType:Zt}}function X(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Jt=12,er=8,Te=32,tr=40,rr="__SECTION_REF__";function ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const nr="VideoWidget";function Q(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function $e(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Le(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=$e(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const f of Object.values(r))if(f[l])return f[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Qt(e,t))return!0;const r=$e(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(a=>a in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function sr(e){return e==="site/apps/site.ts"?!1:$e(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function un(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?Le(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},a=o=>{if(o.startsWith("#/root/")){const c=o.slice(7);return i[c]??{}}const d=o.split("/").pop()??"",m=s[d];return m||(d===rr?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=a(n.$ref):Object.keys(n).length>0?l=n:l=r;const f=o=>typeof o.$ref=="string"?a(o.$ref):o,h=o=>{const m=f(o).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},_=(o,d)=>{const m=f(o);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:d},E=(o,d=new Set)=>{if(typeof o.$ref!="string"||o.properties||o.anyOf||o.allOf||o.oneOf||o.type)return o;const m=o.$ref.split("/").pop()??"";return!m||d.has(m)?o:E(a(o.$ref),new Set([...d,m]))},$=o=>{const d=o.properties?.__resolveType?.enum;return Array.isArray(d)&&typeof d[0]=="string"?d[0]:void 0},x=o=>$(o)!==void 0,D=(o,d=new Set)=>{if(typeof o.$ref!="string")return[];const m=o.$ref.split("/").pop()??"";if(!m||d.has(m))return[];const c=a(o.$ref),C=c.anyOf??c.oneOf;if(!Array.isArray(C))return[];const w=new Set([...d,m]);return C.flatMap(L=>x(L)?[L]:D(L,w))},P=o=>{const d=o.hide;return d===!0||d==="true"},I=o=>typeof o=="string"&&(o.includes("://")||!/\s/.test(o)&&(o.includes("|")||o.includes("&")||o.includes("@"))),Y=(o,d=new Set,m=0)=>{if(m>Jt)return{};if(typeof o.$ref=="string"){const C=o.$ref.split("/").pop()??"";return d.has(C)?{}:Y(a(o.$ref),new Set([...d,C]),m+1)}let c={};o.properties&&typeof o.properties=="object"&&(c={...c,...o.properties}),Array.isArray(o.required)&&(c.__required=[...Q(c.__required),...Q(o.required)]);for(const C of["allOf","anyOf","oneOf"]){const w=o[C];if(Array.isArray(w))for(const L of w){const U=Q(c.__required),z=Y(L,d,m+1);c={...c,...z};const B=C==="allOf"?[...U,...Q(z.__required)]:U;B.length>0?c.__required=B:delete c.__required}}return c},V=(o,d=0,m=new Set)=>{let c=o,C;if(typeof o.$ref=="string"){c=a(o.$ref);const k=o.$ref.split("/").pop()??"";C=k,k===nr&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const w=C!==void 0&&m.has(C),L=C!==void 0?new Set([...m,C]):m,U=(k,g,S,b=!0)=>!w&&(!b||S<=tr)&&g<er?V(k,g,L):void 0;let z;{const k=c.anyOf??c.oneOf;if(Array.isArray(k)){const g=k.filter(b=>!(b.type==="null"||b.type===null)),S=b=>{if(typeof b.const=="string"||typeof b.const=="number")return b.const;if(Array.isArray(b.enum)&&b.enum.length===1&&(typeof b.enum[0]=="string"||typeof b.enum[0]=="number"))return b.enum[0]};g.length>0&&g.every(b=>S(b)!==void 0)&&(z=g.map(b=>S(b)))}}let B,ee,Fe=!1;if(c.type)B=Array.isArray(c.type)?String(c.type.find(k=>k!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const g=(c.anyOf??c.oneOf).filter(S=>!(S.type==="null"||S.type===null));if(g.length===0)B="null";else if(g.length===1){const S=g[0];ee=S,B=S.type?Array.isArray(S.type)?String(S.type[0]):String(S.type):typeof S.$ref=="string"?"object":"string"}else{if(z){const y=u=>typeof o[u]=="string"?o[u]:typeof c[u]=="string"?c[u]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:z,format:y("format"),options:y("options")}}const S=g.filter(x),b=g.map(y=>E(y)).find(ae),H=y=>{if(typeof y.$ref!="string")return;const u=E(y),p=u.anyOf??u.oneOf;if(!Array.isArray(p))return;const v=[...p.filter(x),...p.filter(T=>!x(T)).flatMap(T=>D(T))],j=p.filter(T=>{if(x(T)||T.type==="null")return!1;const M=f(T),F=M.properties;return!F?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!F)});return v.length>0&&j.length>0?{data:j,loaders:v}:void 0},G=g.flatMap(y=>{const u=H(y);return u?[u]:[]}),kt=G.length===0&&g.filter(y=>!ae(E(y))).every(y=>typeof y.$ref=="string"||S.includes(y)),Pt=S.some(y=>{const u=y.properties?.__resolveType?.enum;return Array.isArray(u)&&u[0]===ge}),_e=(y=[])=>{const u=new Map;for(const R of[...S,...g.filter(A=>!S.includes(A)).flatMap(A=>D(A)),...y]){const A=$(R);A&&!u.has(A)&&u.set(A,R)}const p=[...u].map(([R,A])=>({resolveType:R,title:typeof A.title=="string"?A.title:X(R),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,u.size)})),v=[];for(const R of g){if(S.includes(R)||typeof R.$ref!="string")continue;const A=a(R.$ref);let W;const q=A.properties?.__resolveType;if(Array.isArray(q?.enum)&&typeof q.enum[0]=="string"&&(W=q.enum[0]),!W&&Array.isArray(A.allOf))for(const wt of A.allOf){const Ae=wt.properties?.__resolveType?.enum;if(Array.isArray(Ae)&&typeof Ae[0]=="string"){W=Ae[0];break}}W&&v.push({resolveType:W,title:typeof A.title=="string"&&!A.title.startsWith("#")?A.title:X(W),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,g.length)})}const j=new Set(p.map(R=>R.resolveType)),T=[...p,...v.filter(R=>!j.has(R.resolveType))],M=g.filter(R=>!S.includes(R)),F=M.length===1&&!w?V(M[0],d+1,L):void 0;return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:T,plainSchema:F,hidden:P(c)||P(o)?!0:void 0}};if(b){const y=!Xe(b,a);if(y&&G.length>0){const u=typeof o.title=="string"?o.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,p=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,v=g.find(T=>ae(E(T))),j=G.flatMap(T=>T.data);return{type:"inline-union",title:u,description:p,inlineUnionBranches:[...j.map((T,M)=>({title:_(T,`Option ${M+1}`),schema:V(T,d+1,L)})),{title:_(v,`Option ${j.length+1}`),schema:V(b,d+1,L)}],loaderRef:{..._e(G.flatMap(T=>T.loaders)),title:u,description:p},hidden:P(c)||P(o)?!0:void 0}}if(y&&g.length>1&&kt){const u=V(b,d+1,L),p=typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:u.title,v=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:u.description;return{...u,type:"array",title:p,description:v,loaderRef:S.length>0?{..._e(),title:p,description:v}:void 0}}if(Pt){const u=V(b,d+1,L);return{...u,type:"array",title:typeof c.title=="string"?c.title:u.title,description:typeof c.description=="string"?c.description:u.description}}}if(S.length>0)return _e();const ze=y=>{const u=f(y);if(typeof u.title=="string"&&Ge(u.title))return!0;const p=u.properties?.__resolveType?.enum;if(Array.isArray(p)&&typeof p[0]=="string")return!0;if(Array.isArray(u.allOf))for(const v of u.allOf){const j=v.properties?.__resolveType?.enum;if(Array.isArray(j)&&typeof j[0]=="string")return!0}return!1},We=g.map(y=>h(y));if(g.length>1&&We.every(y=>typeof y=="string")&&!g.some(ze)){const y=g.map((u,p)=>{const v=f(u),j=We[p];return{resolveType:j,title:_(u,j),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:j,schema:U(v,d+1,g.length,!1)}});return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const u=f(y);return u.type==="object"||!!u.properties},jt=y=>{const u=E(y);return ae(u)?!Xe(u,a):!1},Ke=d<Te&&g.every(y=>qe(y)||jt(y))&&g.some(qe);if(g.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const u of g){const p=a(u.$ref);let v,j,T=!1;if(typeof p.title=="string"){const R=Ge(p.title);R&&(v=R.blockId,j=R.blockId)}if(!v&&Array.isArray(p.allOf))for(const R of p.allOf){const q=((R.properties??{}).__resolveType??{}).enum;if(Array.isArray(q)&&typeof q[0]=="string"){v=q[0],T=!0;break}}if(!v){const A=p.properties?.__resolveType?.enum;Array.isArray(A)&&typeof A[0]=="string"&&(v=A[0],T=!0)}v||(v=u.$ref.split("/").pop()??"");const M=v.includes("/")||T&&!Gt(v),F=M?void 0:h(u);!F&&!M||T&&v==="lazy"||y.push({resolveType:F??v,title:j??(typeof p.title=="string"&&!p.title.startsWith("#")?p.title:X(v)),description:typeof p.description=="string"?p.description:void 0,discriminatorValue:F,schema:U(p,d+1,g.length)})}return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}if(Ke){const y=p=>{if(typeof p.const=="string"||typeof p.const=="number"||typeof p.const=="boolean")return p.const;if(Array.isArray(p.enum)&&p.enum.length===1&&(typeof p.enum[0]=="string"||typeof p.enum[0]=="number"||typeof p.enum[0]=="boolean"))return p.enum[0]},u=g.map((p,v)=>{const j=f(p).properties??{},T={};for(const[M,F]of Object.entries(j)){const R=y(F);R!==void 0&&(T[M]=R)}return{title:_(p,`Option ${v+1}`),schema:V(p,d+1),discriminators:Object.keys(T).length?T:void 0}});return{type:"inline-union",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:u,hidden:P(c)||P(o)?!0:void 0}}B="object"}}else c.allOf?(B="object",Fe=I(c.title)):typeof o.$ref=="string"&&(B="object");let oe,Ne,Ye=!1;if(d<Te&&!w){const k=Y(c),g=k.__resolveType?.enum;Ye=Array.isArray(g)&&g.length===1&&g[0]==="lazy";const S=Q(k.__required);S.length>0&&(Ne=S);const b=Object.entries(k).filter(([H])=>!H.startsWith("__")&&H!=="@type");if(b.length>0){oe={};for(const[H,G]of b)oe[H]=V(G,d+1,L)}}let he;if((B==="array"||c.type==="array")&&d<Te&&!w){const k=c.items;if(k){he=V(k,d+1,L);const g=f(k);typeof g.title=="string"&&g.title.includes("{{")&&(he.titleBy=g.title)}}const K=k=>{const g=ee?.[k];return typeof g=="string"?g:void 0},Ot=()=>{if("default"in o)return o.default;if("default"in c)return c.default;if(ee&&"default"in ee)return ee.default};return{type:B??"string",title:typeof o.title=="string"?o.title:!Fe&&typeof c.title=="string"?c.title:K("title"),description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:K("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:z??void 0,format:typeof o.format=="string"?o.format:typeof c.format=="string"?c.format:K("format"),properties:oe,required:Ne,items:he,lazy:Ye&&oe?.value?!0:void 0,recursiveRef:w&&typeof o.$ref=="string"&&(B==="object"||B==="array"||c.type==="array")?o.$ref:void 0,hidden:P(c)||P(o)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:K("titleBy"),image:typeof c.image=="string"?c.image:K("image"),options:typeof o.options=="string"?o.options:typeof c.options=="string"?c.options:K("options")}};if("ref"in t)return V({$ref:t.ref});const De=l.properties??{},Rt=Object.keys(De).every(o=>o.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const o=De.__resolveType,d=Array.isArray(o?.enum)&&typeof o.enum[0]=="string"?o.enum[0]:typeof o?.const=="string"?o.const:typeof o?.default=="string"?o.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const w=V(c,0);if(w.type==="inline-union"&&w.inlineUnionBranches){const L=I(w.title);return{...w,title:L?void 0:w.title,inlineUnionBranches:d?w.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:d}})):w.inlineUnionBranches}}}}const Ie=Y(l),ve={};for(const[o,d]of Object.entries(Ie))o.startsWith("__")||o==="@type"||(ve[o]=V(d,0));if(Object.keys(ve).length===0)return null;const Ue=Q(Ie.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ve,required:Ue.length>0?Ue:void 0}}function fn(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,a=i.properties??{};if(Object.keys(a).some(h=>!h.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const f=a.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function pn(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,a]of Object.entries(n))i.startsWith("__")||(s[i]=t(a));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=i.icon,l=i.logo,f=i,h=E=>E===!0||E==="true",_=h(f.hide)||h(f.ignore)||h(f.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof l=="string"?l:void 0,hidden:_||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function yn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ir(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function dn(e){const t=e.trim();return t?ir(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Me=/:([A-Za-z0-9_-]+)|\*/g;function gn(e){const t=[];for(const r of e.matchAll(Me)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Me))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function vn(e,t){return ct(e).replace(Me,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const or=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function N(e){return or.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),ar=lt[0],cr=new Set(["site/sections/Theme/Theme.tsx"]);function me(e){return!!(cr.has(e)||N(e)||e.toLowerCase().includes("preview"))}function lr(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":ar}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ur(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(me(i))continue;const a=Ce(i,e);r.push({resolveType:i,title:a.title??X(i),description:a.description,previewBlock:i,isSavedBlock:!1})}return r}function hn(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))me(i)||r.has(i)||r.set(i,{resolveType:i,title:X(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==J)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let a=i.__resolveType;if(typeof a=="string"&&N(a)&&(a=i.section?.__resolveType??a),typeof a=="string"&&Pe(e,a))return a}return r}function fr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a!="string"||ut.has(a)||typeof i.path=="string"||me(a)||!(Pe(e,a)||a===J&&fr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pr(e,t){const r=de(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||X(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function _n(e,t){const r=lr(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,a=l=>{if(!me(l.resolveType)){if(de(l.resolveType,e)){je(l.resolveType)||i.set(l.resolveType,l);return}Pe(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ur(e))a(l);for(const l of s)a(pr(e,l));for(const l of pt(e,t))a(l);return[...i.values()].sort((l,f)=>l.title.localeCompare(f.title))}function An(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Be="website/loaders/redirect.ts",Tn=new Set([Be,"website/loaders/redirects.ts"]),Ve="redirect",yr=[301,302,307,308],dr={temporary:307,permanent:301};function Sn(e){return e.flat?e.status??(e.type==="permanent"?301:302):dr[e.type]}const ue=e=>typeof e=="string"?e:"",gr=e=>e==="permanent"?"permanent":"temporary",mr=e=>yr.find(t=>t===e);function vr(e){const t=mr(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Ve)return vr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:gr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function hr(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Be&&s.__resolveType!==Ve||t.push({key:r,...yt(s)})}return t}function bn(e){return yt(e)}function En(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Be}}function _r(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ar=1e3;function Rn(e,t){const r=_r(t);for(let n=0;n<Ar;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function Tr(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function On(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const a=e.find(l=>l.key.endsWith(`-${r}`));if(a)return a}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(a=>a.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,a)=>i.key.localeCompare(a.key))[0]??null}const Sr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return Sr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const ne="site",gt="site/apps/site.ts";function Ee(e,t){return e===ne?!0:t.__resolveType===gt}function kn(e,t){return e?mt(e,t).length>0||hr(e).length>0?!0:t?kr(e,t).length>0||Rr(e,t)?!0:Or(e,t).length>0:!1:!1}function br(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Tr(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=br(n,s,t);i&&r.push(i)}return r}function fe(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>fe(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>fe(s,t,r+1))}function Er(e,t,r){const n=mt(e,r),s=new Set(n.map(a=>a.key)),i=new Set([t]);for(let a=!0;a;){a=!1;for(const[l,f]of Object.entries(e))i.has(l)||s.has(l)||fe(f,i)&&(i.add(l),a=!0)}return n.filter(a=>a.key!==t&&fe(e[a.key],i))}function Pn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Er(e,t,r).sort((i,a)=>n(i)-n(a)||(i.path<a.path?-1:i.path>a.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Re(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Rr(e,t){const r=e[ne];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Ee(ne,n)||st(t,s)))return{key:ne,name:Re(ne,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Ee(n,i))continue;const a=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Re(n,i,t),resolveType:a}}return null}function Or(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a=="string"&&(dt(a,t)||typeof i.path!="string"&&(Ee(n,i)||!st(t,a)&&!sr(a)||r.push({key:n,name:Re(n,i,t),resolveType:a})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function kr(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Pr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function jr(e){return e.includes("matchers")||e.includes("Match")}function ht(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Pr.has(r)?!1:t?Xt(t,r):jr(r)}function jn(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!de(n,e)||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;ht(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ie(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!de(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:ht(s,r)}function wn(e,t,r){return ie(e,t,r)?e?.__resolveType??null:null}function _t(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ie(e,t,r)){const a=t[n]??{},l=a.__resolveType??n,{__resolveType:f,name:h,..._}=a;return{resolveType:l,data:_,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function wr(e,t,r){const n=_t(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function $n(e,t,r){if(e)return ie(e,t,r)?wr(e,t,r):e}function $r(e,t,r,n){if(!e)return"Default";if(ie(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function xn(e,t,r){return{__resolveType:e,...t,name:r}}function Ln(e){return{__resolveType:e}}function Cn(e,t,r){const n=_t(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Mn(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function pe(e){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Bn(e){const t=At(e);return{__resolveType:J,variants:[{value:t,rule:{__resolveType:tt}}]}}function Vn(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const r=pe(e);return r?N(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function ce(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Dn(e){const t=pe(e);if(t)return ce(t);if(N(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=pe(n);return ce(s||n)}return ce(e)}function In(e){return pe(e)}const xr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:xr.includes(t)||t.includes("always")}function Lr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Un(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=Lr(r),i=n[s]?.value;if(!i)return null;const a=structuredClone(i);return t.isLazy?{...e,section:a}:a}function St(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Fn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function Nn(e,t){const r=e.__resolveType??"";if(!r)return null;if(N(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function Cr(e,t){const r=e.__resolveType??"";return N(r)?{...e,section:t}:t}function Mr(e,t,r){return t.isLazy?{...e,section:r}:r}function Yn(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:Cr(i,r)},{...e,variants:n}}function zn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Wn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function qn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function Kn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Oe(e){return{rule:we(),value:structuredClone(e)}}function bt(e,t){return{...t,__resolveType:J,variants:e}}function Hn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Br(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=St(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Vr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Br(e,t);if(!n)return null;const s=bt([Oe(n),Oe(n)]);return t.isLazy?{...e,section:s}:s}function Gn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=St(e,t);if(!s)return null;const i=s.variants??[],a=i[i.length-1]?.value;if(!a)return null;const l=bt([...i,Oe(a)],s);return{section:Mr(e,t,l),newVariantIndex:i.length}}const n=Vr(e,t);return n?{section:n,newVariantIndex:1}:null}function Dr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ge?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Qn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===J&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ge}function Xn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Zn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:we(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Jn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function es(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const a=i[r];return Array.isArray(a?.value)?a.value:[]}}return[]}function ts(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(f=>$r(f.rule,t,r)),a=i.reduce((f,h)=>(f[h]=(f[h]??0)+1,f),{}),l={};return s.map((f,h)=>{const _=i[h]??`Variant ${h+1}`,E=a[_]??1;let $=_;return E>1&&(l[_]=(l[_]??0)+1,$=`${_} ${l[_]}`),{label:$||`Variant ${h+1}`,sections:Array.isArray(f.value)?f.value:[],rule:f.rule}})}}return[]}function re(e){return{rule:we(),value:e}}function Z(e,t){return{...t,__resolveType:ge,variants:e}}function rs(e,t){const r=structuredClone(t);if(Array.isArray(e))return Z([re(e),re(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?Z([...n.variants,re(r)],n):null}return Z([re([]),re(r)])}function ns(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ss(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function is(e,t){if(t.length===0)return Z([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return Z(t,e);if(Array.isArray(r?.value))return r.value}return Z(t,e)}function Ir(e,t,r){const n=[];for(const[i,a]of Object.entries(e))i!==t&&n.push(a);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const a of i)n.push(a);continue}r(i);for(const a of Object.values(i))n.push(a)}}}function os(e,t,r){if(!t)return 0;let n=0;return Ir(e,t,s=>{s.__resolveType===t&&ie(s,e,r)&&n++}),n}const as={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function le(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===J}function Ur(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>le(r.resolveType)):!1}function cs(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>le(t.resolveType))}function ls(e,t){if(t==="global"||t==="sections"||Dr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ur(r):!1}const us="secret",Fr=[256,384,512],Nr=12,Yr=16,zr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Wr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Se(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Wr(n)===e?n:null}function qr(e){if(typeof e!="string"||!zr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Se(t),i=Se(r),a=Se(n);return!s||!i||!a||!Fr.includes(s.byteLength)||i.byteLength!==Nr||a.byteLength<Yr?null:{wrappedKey:s,iv:i,ciphertext:a}}function fs(e){return qr(e)!==null}export{X as $,Re as A,Ce as B,as as C,ar as D,dr as E,Sn as F,He as G,ln as H,On as I,Rr as J,hr as K,nn as L,hn as M,tt as N,Jn as O,rs as P,Rn as Q,Jr as R,us as S,En as T,Ut as U,be as V,de as W,ge as X,an as Y,Ge as Z,Qe as _,Tr as a,Gt as a0,Zt as a1,J as a2,Dr as a3,un as a4,cn as a5,ls as a6,jn as a7,wr as a8,Ln as a9,An as aA,Hn as aB,St as aC,Fn as aD,Nn as aE,_t as aF,Gn as aG,ns as aH,qn as aI,Mr as aJ,Un as aK,Kn as aL,Wn as aM,zn as aN,Vn as aO,In as aP,Bn as aQ,is as aR,os as aS,Yn as aT,Lr as aU,ss as aV,bn as aW,yr as aX,$n as aa,ts as ab,cs as ac,_n as ad,we as ae,Tt as af,$r as ag,wn as ah,Cn as ai,ie as aj,xn as ak,Mn as al,Kt as am,on as an,sn as ao,fs as ap,Qn as aq,Et as ar,Xn as as,Zn as at,Tn as au,je as av,fn as aw,pn as ax,st as ay,Dn as az,qt as b,le as c,Pn as d,gn as e,vn as f,vt as g,en as h,Ee as i,tn as j,N as k,mn as l,yn as m,at as n,kn as o,br as p,mt as q,kr as r,rn as s,Je as t,es as u,dn as v,lr as w,it as x,gt as y,sr as z};
|
|
1
|
+
import{c as ye,b as ke,j as O,r as et,ah as $t,B as xt,l as Lt,a5 as Ct}from"./index-TD9q6ZAx.js";import{a as Mt}from"./Copy01-DJEr7OLy.js";import{a as Bt,b as Vt,A as Dt}from"./alert-Dp8EatFO.js";import{u as It}from"./use-copy-Cn4Z57YH.js";const te="https://docs.decocms.com/storefront/blocks",Ut={quickstart:`${te}/next/quickstart`,siteEditor:`${te}/next/site-editor#edit-on-your-machine`,serve:`${te}/next/cli#deco-serve`,schema:`${te}/next/cli#deco-schema-and-deco-content`,troubleshooting:`${te}/next/troubleshooting#site-editor`};function Jr(e){const t=ye.c(4),{text:r}=e;let n;t[0]!==r?(n=r.split("`").map(Ft),t[0]=r,t[1]=n):n=t[1];let s;return t[2]!==n?(s=O.jsx(O.Fragment,{children:n}),t[2]=n,t[3]=s):s=t[3],s}function Ft(e,t){return t%2===1?O.jsx("code",{className:"whitespace-nowrap rounded bg-muted px-1 py-px font-mono text-[0.85em] text-foreground",children:e},t):O.jsx(et.Fragment,{children:e},t)}function en(e){const t=ye.c(31),{command:r}=e,n=ke(),{handleCopy:s,copied:i}=It();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=O.jsxs("span",{"aria-hidden":"true",className:"select-none text-muted-foreground",children:["$"," "]}),t[0]=a):a=t[0];let l;t[1]!==r?(l=r.split(" ").map(Yt),t[1]=r,t[2]=l):l=t[2];let f;t[3]!==l?(f=O.jsxs("code",{className:"min-w-0 flex-1 overflow-x-auto py-1.5 font-mono text-xs leading-5 text-foreground",children:[a,l]}),t[3]=l,t[4]=f):f=t[4];let h;t[5]!==n?(h=n("decoServe.guide.copy"),t[5]=n,t[6]=h):h=t[6];let _;t[7]!==r||t[8]!==s?(_=()=>{s(r).catch(Nt)},t[7]=r,t[8]=s,t[9]=_):_=t[9];let E;t[10]!==i?(E=i?O.jsx($t,{className:"text-success"}):O.jsx(Mt,{}),t[10]=i,t[11]=E):E=t[11];let $;t[12]!==i||t[13]!==n?($=n(i?"decoServe.guide.copied":"decoServe.guide.copyShort"),t[12]=i,t[13]=n,t[14]=$):$=t[14];let x;t[15]!==$?(x=O.jsx("span",{"aria-hidden":"true",children:$}),t[15]=$,t[16]=x):x=t[16];let D;t[17]!==h||t[18]!==_||t[19]!==E||t[20]!==x?(D=O.jsxs(xt,{type:"button",variant:"ghost",size:"sm",className:"shrink-0 self-start","aria-label":h,onClick:_,children:[E,x]}),t[17]=h,t[18]=_,t[19]=E,t[20]=x,t[21]=D):D=t[21];let P;t[22]!==i||t[23]!==n?(P=i?n("decoServe.guide.copiedAnnouncement"):"",t[22]=i,t[23]=n,t[24]=P):P=t[24];let I;t[25]!==P?(I=O.jsx("span",{className:"sr-only","aria-live":"polite",children:P}),t[25]=P,t[26]=I):I=t[26];let Y;return t[27]!==I||t[28]!==f||t[29]!==D?(Y=O.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-muted/60 py-1 pr-1 pl-3",children:[f,D,I]}),t[27]=I,t[28]=f,t[29]=D,t[30]=Y):Y=t[30],Y}function Nt(){}function Yt(e,t){return O.jsxs(et.Fragment,{children:[t>0&&" ",O.jsx("span",{className:"whitespace-nowrap",children:e})]},t)}const zt={quickstart:"decoServe.docs.quickstart",siteEditor:"decoServe.docs.siteEditor",serve:"decoServe.docs.serve",schema:"decoServe.docs.schema",troubleshooting:"decoServe.docs.troubleshooting"};function tn(e){const t=ye.c(20),{links:r,className:n}=e,s=ke();let i;t[0]!==s?(i=s("decoServe.docs.heading"),t[0]=s,t[1]=i):i=t[1];let a;t[2]!==n?(a=Lt("flex flex-col gap-2 text-sm",n),t[2]=n,t[3]=a):a=t[3];let l;t[4]!==s?(l=s("decoServe.docs.heading"),t[4]=s,t[5]=l):l=t[5];let f;t[6]!==l?(f=O.jsx("span",{className:"text-muted-foreground",children:l}),t[6]=l,t[7]=f):f=t[7];let h;if(t[8]!==r||t[9]!==s){let $;t[11]!==s?($=x=>O.jsxs("a",{href:Ut[x],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-foreground underline-offset-4 hover:underline focus-visible:underline",children:[s(zt[x]),O.jsx(Ct,{"aria-hidden":"true",className:"size-3.5"}),O.jsx("span",{className:"sr-only",children:s("decoServe.docs.newTab")})]},x),t[11]=s,t[12]=$):$=t[12],h=r.map($),t[8]=r,t[9]=s,t[10]=h}else h=t[10];let _;t[13]!==h?(_=O.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:h}),t[13]=h,t[14]=_):_=t[14];let E;return t[15]!==i||t[16]!==a||t[17]!==f||t[18]!==_?(E=O.jsxs("nav",{"aria-label":i,className:a,children:[f,_]}),t[15]=i,t[16]=a,t[17]=f,t[18]=_,t[19]=E):E=t[19],E}function rn(e,t,r){switch(t.reason){case"not-answering":return{title:e("decoServe.state.notAnswering.title"),body:e("decoServe.state.notAnswering.short",{host:r})};case"outdated":return{title:e("decoServe.state.outdated.title"),body:e("decoServe.state.outdated.body",{host:r})};case"version-mismatch":return{title:e("decoServe.state.versionMismatch.title"),body:e("decoServe.state.versionMismatch.body",{host:r})};case"not-deco-serve":return{title:e("decoServe.state.notDecoServe.title",{host:r}),body:e("decoServe.state.notDecoServe.body",{host:r})};case"not-v8":return{title:e("decoServe.state.notV8.title"),body:e("decoServe.state.notV8.body",{host:r})};case"error":return{title:e("decoServe.state.error.title"),body:e("decoServe.state.error.body",{detail:t.detail??""})}}}function nn(){const e=ye.c(11),t=ke();let r;e[0]!==t?(r=t("decoServe.lna.deniedTitle"),e[0]=t,e[1]=r):r=e[1];let n;e[2]!==r?(n=O.jsx(Bt,{className:"line-clamp-none",children:r}),e[2]=r,e[3]=n):n=e[3];let s;e[4]!==t?(s=t("decoServe.lna.deniedBody"),e[4]=t,e[5]=s):s=e[5];let i;e[6]!==s?(i=O.jsx(Vt,{children:s}),e[6]=s,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==i?(a=O.jsx(Dt,{variant:"destructive",children:O.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[n,i]})}),e[8]=n,e[9]=i,e[10]=a):a=e[10],a}const sn="website/loaders/secret.ts",on=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Wt=/^(?:[0-9a-f]{2})*$/i;function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function Kt(e){return typeof e=="string"&&Wt.test(e)}class Ht extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function He(e,t=""){if(Array.isArray(e))return e.map((n,s)=>He(n,`${t}/${s}`));if(!e||typeof e!="object")return e;const r=Object.entries(e);if(qt(e)){const n=e.encrypted;if(n!==void 0&&!Kt(n))throw new Ht(t||"/");return Object.fromEntries(r.filter(([s])=>s!=="value"))}return Object.fromEntries(r.map(([n,s])=>[n,He(s,`${t}/${n}`)]))}function Ge(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Gt(e){return e.includes("@")}function Qe(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function an(e,t){if(e===t)return!0;const r=Qe(e);return r?t===r||Qe(t)===r:!1}function se(e,t){const r=e.manifest?.blocks??{};for(const[n,s]of Object.entries(r))if(t in s)return n;return null}function cn(e,t){return se(e,t)!==null}function Pe(e,t){const r=se(e,t);return r!==null&&r.includes("sections")}function Qt(e,t){const r=se(e,t);return r!==null&&r.includes("apps")}function Xt(e,t){const r=se(e,t);return r!==null&&r.includes("matchers")}function de(e,t){return!(!e||t&&se(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function je(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const ln="oklch(0.7278 0.151 289)",Zt="website/matchers/always.ts",tt="website/matchers/never.ts",ge="website/flags/multivariate.ts",J="website/flags/multivariate/section.ts";function we(){return{__resolveType:Zt}}function X(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())||e}const Jt=12,er=8,Te=32,tr=40,rr="__SECTION_REF__";function ae(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Xe(e,t){let r=e.items;if(!r)return!1;if(typeof r.$ref=="string"&&(r=t(r.$ref)),Array.isArray(r.anyOf)||Array.isArray(r.oneOf))return!0;const s=r.properties?.__resolveType?.enum;return Array.isArray(s)&&typeof s[0]=="string"}const nr="VideoWidget";function Q(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function rt(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function $e(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function xe(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function nt(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Le(e,t){const r=t.manifest?.blocks??{};for(const l of Object.values(r))if(l[e])return l[e];const n=$e(e)??xe(e);if(n){for(const l of nt(n.vendor,n.app))for(const f of Object.values(r))if(f[l])return f[l]}const s=rt(e);for(const l of Object.values(r))if(l[s])return l[s];const i=t.schema??{};return(i.$defs??i.definitions??{})[s]?{$ref:`#/definitions/${s}`}:{}}function st(e,t){if(Qt(e,t))return!0;const r=$e(t)??xe(t);if(!r)return!1;const n=e.manifest?.blocks?.apps??{};if(nt(r.vendor,r.app).some(a=>a in n))return!0;const s=rt(t),i=e.schema?.$defs??e.schema?.definitions??{};return s in i}function sr(e){return e==="site/apps/site.ts"?!1:$e(e)!==null||xe(e)!==null}function it(e,t){return ot(t,{resolveType:e})}function un(e,t){return ot(t,{ref:e})}function ot(e,t){const r=e.schema??{},n="resolveType"in t?Le(t.resolveType,e):{},s=r.$defs??r.definitions??{},i=r.root??{},a=o=>{if(o.startsWith("#/root/")){const c=o.slice(7);return i[c]??{}}const d=o.split("/").pop()??"",m=s[d];return m||(d===rr?i.sections??{}:{})};let l;typeof n.$ref=="string"?l=a(n.$ref):Object.keys(n).length>0?l=n:l=r;const f=o=>typeof o.$ref=="string"?a(o.$ref):o,h=o=>{const m=f(o).properties?.type;if(m){if(typeof m.const=="string")return m.const;if(typeof m.default=="string")return m.default;if(Array.isArray(m.enum)&&typeof m.enum[0]=="string")return m.enum[0]}},_=(o,d)=>{const m=f(o);return typeof m.title=="string"&&!m.title.startsWith("#")?m.title:d},E=(o,d=new Set)=>{if(typeof o.$ref!="string"||o.properties||o.anyOf||o.allOf||o.oneOf||o.type)return o;const m=o.$ref.split("/").pop()??"";return!m||d.has(m)?o:E(a(o.$ref),new Set([...d,m]))},$=o=>{const d=o.properties?.__resolveType?.enum;return Array.isArray(d)&&typeof d[0]=="string"?d[0]:void 0},x=o=>$(o)!==void 0,D=(o,d=new Set)=>{if(typeof o.$ref!="string")return[];const m=o.$ref.split("/").pop()??"";if(!m||d.has(m))return[];const c=a(o.$ref),C=c.anyOf??c.oneOf;if(!Array.isArray(C))return[];const w=new Set([...d,m]);return C.flatMap(L=>x(L)?[L]:D(L,w))},P=o=>{const d=o.hide;return d===!0||d==="true"},I=o=>typeof o=="string"&&(o.includes("://")||!/\s/.test(o)&&(o.includes("|")||o.includes("&")||o.includes("@"))),Y=(o,d=new Set,m=0)=>{if(m>Jt)return{};if(typeof o.$ref=="string"){const C=o.$ref.split("/").pop()??"";return d.has(C)?{}:Y(a(o.$ref),new Set([...d,C]),m+1)}let c={};o.properties&&typeof o.properties=="object"&&(c={...c,...o.properties}),Array.isArray(o.required)&&(c.__required=[...Q(c.__required),...Q(o.required)]);for(const C of["allOf","anyOf","oneOf"]){const w=o[C];if(Array.isArray(w))for(const L of w){const U=Q(c.__required),z=Y(L,d,m+1);c={...c,...z};const B=C==="allOf"?[...U,...Q(z.__required)]:U;B.length>0?c.__required=B:delete c.__required}}return c},V=(o,d=0,m=new Set)=>{let c=o,C;if(typeof o.$ref=="string"){c=a(o.$ref);const k=o.$ref.split("/").pop()??"";C=k,k===nr&&!c.format&&(c={...c,format:"video-uri"})}c=E(c);const w=C!==void 0&&m.has(C),L=C!==void 0?new Set([...m,C]):m,U=(k,g,S,b=!0)=>!w&&(!b||S<=tr)&&g<er?V(k,g,L):void 0;let z;{const k=c.anyOf??c.oneOf;if(Array.isArray(k)){const g=k.filter(b=>!(b.type==="null"||b.type===null)),S=b=>{if(typeof b.const=="string"||typeof b.const=="number")return b.const;if(Array.isArray(b.enum)&&b.enum.length===1&&(typeof b.enum[0]=="string"||typeof b.enum[0]=="number"))return b.enum[0]};g.length>0&&g.every(b=>S(b)!==void 0)&&(z=g.map(b=>S(b)))}}let B,ee,Fe=!1;if(c.type)B=Array.isArray(c.type)?String(c.type.find(k=>k!=="null")??c.type[0]):String(c.type);else if(c.anyOf||c.oneOf){const g=(c.anyOf??c.oneOf).filter(S=>!(S.type==="null"||S.type===null));if(g.length===0)B="null";else if(g.length===1){const S=g[0];ee=S,B=S.type?Array.isArray(S.type)?String(S.type[0]):String(S.type):typeof S.$ref=="string"?"object":"string"}else{if(z){const y=u=>typeof o[u]=="string"?o[u]:typeof c[u]=="string"?c[u]:void 0;return{type:"string",title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,enum:z,format:y("format"),options:y("options")}}const S=g.filter(x),b=g.map(y=>E(y)).find(ae),H=y=>{if(typeof y.$ref!="string")return;const u=E(y),p=u.anyOf??u.oneOf;if(!Array.isArray(p))return;const v=[...p.filter(x),...p.filter(T=>!x(T)).flatMap(T=>D(T))],j=p.filter(T=>{if(x(T)||T.type==="null")return!1;const M=f(T),F=M.properties;return!F?.__resolveType&&!M.anyOf&&!M.oneOf&&(M.type==="object"||!!F)});return v.length>0&&j.length>0?{data:j,loaders:v}:void 0},G=g.flatMap(y=>{const u=H(y);return u?[u]:[]}),kt=G.length===0&&g.filter(y=>!ae(E(y))).every(y=>typeof y.$ref=="string"||S.includes(y)),Pt=S.some(y=>{const u=y.properties?.__resolveType?.enum;return Array.isArray(u)&&u[0]===ge}),_e=(y=[])=>{const u=new Map;for(const R of[...S,...g.filter(A=>!S.includes(A)).flatMap(A=>D(A)),...y]){const A=$(R);A&&!u.has(A)&&u.set(A,R)}const p=[...u].map(([R,A])=>({resolveType:R,title:typeof A.title=="string"?A.title:X(R),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,u.size)})),v=[];for(const R of g){if(S.includes(R)||typeof R.$ref!="string")continue;const A=a(R.$ref);let W;const q=A.properties?.__resolveType;if(Array.isArray(q?.enum)&&typeof q.enum[0]=="string"&&(W=q.enum[0]),!W&&Array.isArray(A.allOf))for(const wt of A.allOf){const Ae=wt.properties?.__resolveType?.enum;if(Array.isArray(Ae)&&typeof Ae[0]=="string"){W=Ae[0];break}}W&&v.push({resolveType:W,title:typeof A.title=="string"&&!A.title.startsWith("#")?A.title:X(W),description:typeof A.description=="string"?A.description:void 0,schema:U(A,d+1,g.length)})}const j=new Set(p.map(R=>R.resolveType)),T=[...p,...v.filter(R=>!j.has(R.resolveType))],M=g.filter(R=>!S.includes(R)),F=M.length===1&&!w?V(M[0],d+1,L):void 0;return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:T,plainSchema:F,hidden:P(c)||P(o)?!0:void 0}};if(b){const y=!Xe(b,a);if(y&&G.length>0){const u=typeof o.title=="string"?o.title:typeof c.title=="string"&&!I(c.title)?c.title:void 0,p=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,v=g.find(T=>ae(E(T))),j=G.flatMap(T=>T.data);return{type:"inline-union",title:u,description:p,inlineUnionBranches:[...j.map((T,M)=>({title:_(T,`Option ${M+1}`),schema:V(T,d+1,L)})),{title:_(v,`Option ${j.length+1}`),schema:V(b,d+1,L)}],loaderRef:{..._e(G.flatMap(T=>T.loaders)),title:u,description:p},hidden:P(c)||P(o)?!0:void 0}}if(y&&g.length>1&&kt){const u=V(b,d+1,L),p=typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:u.title,v=typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:u.description;return{...u,type:"array",title:p,description:v,loaderRef:S.length>0?{..._e(),title:p,description:v}:void 0}}if(Pt){const u=V(b,d+1,L);return{...u,type:"array",title:typeof c.title=="string"?c.title:u.title,description:typeof c.description=="string"?c.description:u.description}}}if(S.length>0)return _e();const ze=y=>{const u=f(y);if(typeof u.title=="string"&&Ge(u.title))return!0;const p=u.properties?.__resolveType?.enum;if(Array.isArray(p)&&typeof p[0]=="string")return!0;if(Array.isArray(u.allOf))for(const v of u.allOf){const j=v.properties?.__resolveType?.enum;if(Array.isArray(j)&&typeof j[0]=="string")return!0}return!1},We=g.map(y=>h(y));if(g.length>1&&We.every(y=>typeof y=="string")&&!g.some(ze)){const y=g.map((u,p)=>{const v=f(u),j=We[p];return{resolveType:j,title:_(u,j),description:typeof v.description=="string"?v.description:void 0,discriminatorValue:j,schema:U(v,d+1,g.length,!1)}});return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,discriminatorKey:"type",anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}const qe=y=>{if(ze(y))return!1;const u=f(y);return u.type==="object"||!!u.properties},jt=y=>{const u=E(y);return ae(u)?!Xe(u,a):!1},Ke=d<Te&&g.every(y=>qe(y)||jt(y))&&g.some(qe);if(g.every(y=>typeof y.$ref=="string")&&!Ke){const y=[];for(const u of g){const p=a(u.$ref);let v,j,T=!1;if(typeof p.title=="string"){const R=Ge(p.title);R&&(v=R.blockId,j=R.blockId)}if(!v&&Array.isArray(p.allOf))for(const R of p.allOf){const q=((R.properties??{}).__resolveType??{}).enum;if(Array.isArray(q)&&typeof q[0]=="string"){v=q[0],T=!0;break}}if(!v){const A=p.properties?.__resolveType?.enum;Array.isArray(A)&&typeof A[0]=="string"&&(v=A[0],T=!0)}v||(v=u.$ref.split("/").pop()??"");const M=v.includes("/")||T&&!Gt(v),F=M?void 0:h(u);!F&&!M||T&&v==="lazy"||y.push({resolveType:F??v,title:j??(typeof p.title=="string"&&!p.title.startsWith("#")?p.title:X(v)),description:typeof p.description=="string"?p.description:void 0,discriminatorValue:F,schema:U(p,d+1,g.length)})}return{type:"block-ref",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:void 0,anyOfRefs:y,hidden:P(c)||P(o)?!0:void 0}}if(Ke){const y=p=>{if(typeof p.const=="string"||typeof p.const=="number"||typeof p.const=="boolean")return p.const;if(Array.isArray(p.enum)&&p.enum.length===1&&(typeof p.enum[0]=="string"||typeof p.enum[0]=="number"||typeof p.enum[0]=="boolean"))return p.enum[0]},u=g.map((p,v)=>{const j=f(p).properties??{},T={};for(const[M,F]of Object.entries(j)){const R=y(F);R!==void 0&&(T[M]=R)}return{title:_(p,`Option ${v+1}`),schema:V(p,d+1),discriminators:Object.keys(T).length?T:void 0}});return{type:"inline-union",title:typeof o.title=="string"?o.title:typeof c.title=="string"?c.title:void 0,description:typeof c.description=="string"?c.description:void 0,inlineUnionBranches:u,hidden:P(c)||P(o)?!0:void 0}}B="object"}}else c.allOf?(B="object",Fe=I(c.title)):typeof o.$ref=="string"&&(B="object");let oe,Ne,Ye=!1;if(d<Te&&!w){const k=Y(c),g=k.__resolveType?.enum;Ye=Array.isArray(g)&&g.length===1&&g[0]==="lazy";const S=Q(k.__required);S.length>0&&(Ne=S);const b=Object.entries(k).filter(([H])=>!H.startsWith("__")&&H!=="@type");if(b.length>0){oe={};for(const[H,G]of b)oe[H]=V(G,d+1,L)}}let he;if((B==="array"||c.type==="array")&&d<Te&&!w){const k=c.items;if(k){he=V(k,d+1,L);const g=f(k);typeof g.title=="string"&&g.title.includes("{{")&&(he.titleBy=g.title)}}const K=k=>{const g=ee?.[k];return typeof g=="string"?g:void 0},Ot=()=>{if("default"in o)return o.default;if("default"in c)return c.default;if(ee&&"default"in ee)return ee.default};return{type:B??"string",title:typeof o.title=="string"?o.title:!Fe&&typeof c.title=="string"?c.title:K("title"),description:typeof o.description=="string"?o.description:typeof c.description=="string"?c.description:K("description"),default:Ot(),enum:Array.isArray(c.enum)?c.enum:z??void 0,format:typeof o.format=="string"?o.format:typeof c.format=="string"?c.format:K("format"),properties:oe,required:Ne,items:he,lazy:Ye&&oe?.value?!0:void 0,recursiveRef:w&&typeof o.$ref=="string"&&(B==="object"||B==="array"||c.type==="array")?o.$ref:void 0,hidden:P(c)||P(o)?!0:void 0,titleBy:typeof c.titleBy=="string"?c.titleBy:K("titleBy"),image:typeof c.image=="string"?c.image:K("image"),options:typeof o.options=="string"?o.options:typeof c.options=="string"?c.options:K("options")}};if("ref"in t)return V({$ref:t.ref});const De=l.properties??{},Rt=Object.keys(De).every(o=>o.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&Rt){const o=De.__resolveType,d=Array.isArray(o?.enum)&&typeof o.enum[0]=="string"?o.enum[0]:typeof o?.const=="string"?o.const:typeof o?.default=="string"?o.default:void 0;for(const m of l.allOf){const c=E(m);if(!(Array.isArray(c.anyOf)||Array.isArray(c.oneOf))||c.properties)continue;const w=V(c,0);if(w.type==="inline-union"&&w.inlineUnionBranches){const L=I(w.title);return{...w,title:L?void 0:w.title,inlineUnionBranches:d?w.inlineUnionBranches.map(U=>({...U,discriminators:{...U.discriminators??{},__resolveType:d}})):w.inlineUnionBranches}}}}const Ie=Y(l),ve={};for(const[o,d]of Object.entries(Ie))o.startsWith("__")||o==="@type"||(ve[o]=V(d,0));if(Object.keys(ve).length===0)return null;const Ue=Q(Ie.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:ve,required:Ue.length>0?Ue:void 0}}function fn(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:n,a=i.properties??{};if(Object.keys(a).some(h=>!h.startsWith("__")))return!1;if(i.additionalProperties===!0)return!0;const f=a.__resolveType;return!!f&&Array.isArray(f.enum)&&f.enum[0]===e}function pn(e){const t=n=>{switch(typeof n){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(n===null)return{type:"string"};if(Array.isArray(n))return{type:"array",items:t(n[0])};const s={};for(const[i,a]of Object.entries(n))i.startsWith("__")||(s[i]=t(a));return{type:"object",properties:s}}default:return{type:"string"}}},r={};for(const[n,s]of Object.entries(e))n.startsWith("__")||(r[n]=t(s));return Object.keys(r).length===0?null:{type:"object",properties:r}}function Ce(e,t){const r=t.schema??{},n=Le(e,t),s=r.$defs??r.definitions??{},i=typeof n.$ref=="string"?s[n.$ref.split("/").pop()??""]??{}:Object.keys(n).length>0?n:{...r,...n},a=i.icon,l=i.logo,f=i,h=E=>E===!0||E==="true",_=h(f.hide)||h(f.ignore)||h(f.unlisted);return{title:typeof i.title=="string"?i.title:void 0,description:typeof i.description=="string"?i.description:void 0,icon:typeof a=="string"?a:void 0,logo:typeof l=="string"?l:void 0,hidden:_||void 0}}function at(e){return e.replace(/\/+$/,"")||"/"}function yn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function ir(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function dn(e){const t=e.trim();return t?ir(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const Me=/:([A-Za-z0-9_-]+)|\*/g;function gn(e){const t=[];for(const r of e.matchAll(Me)){const n=r[1]??"*";t.includes(n)||t.push(n)}return t}function ct(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function mn(e){e=ct(e);const t=[];let r=0;for(const n of e.matchAll(Me))n.index>r&&t.push({type:"text",text:e.slice(r,n.index)}),t.push({type:"param",name:n[1]??"*"}),r=n.index+n[0].length;return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}function vn(e,t){return ct(e).replace(Me,(r,n)=>{const s=t[n??"*"]?.trim();return s?n!==void 0?encodeURIComponent(s):s.split("/").filter(Boolean).map(encodeURIComponent).join("/")||r:r})}const or=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],Ze="website/sections/Rendering/Lazy.tsx";function N(e){return or.some(t=>e.endsWith(t))}const lt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],ut=new Set(lt),ar=lt[0],cr=new Set(["site/sections/Theme/Theme.tsx"]);function me(e){return!!(cr.has(e)||N(e)||e.toLowerCase().includes("preview"))}function lr(e){const t=e.manifest?.blocks??{};for(const r of Object.values(t))for(const n of Object.keys(r))if(ut.has(n))return n;return Object.hasOwn(t.pages??{},"page")?"page":ar}function be(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return be(e.items);if(e.properties){const t=[];for(const r of Object.values(e.properties))t.push(...be(r));return t}return[]}function ur(e){const t=e.manifest?.blocks??{},r=[];for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s)){if(me(i))continue;const a=Ce(i,e);r.push({resolveType:i,title:a.title??X(i),description:a.description,previewBlock:i,isSavedBlock:!1})}return r}function hn(e){const t=e.manifest?.blocks??{},r=new Map;for(const[n,s]of Object.entries(t))if(n.includes("sections"))for(const i of Object.keys(s))me(i)||r.has(i)||r.set(i,{resolveType:i,title:X(i)});return[...r.values()].sort((n,s)=>n.title.localeCompare(s.title))}function ft(e,t){const r=t.__resolveType;if(typeof r!="string")return"";if(r!==J)return r;const n=t.variants;if(!Array.isArray(n))return r;for(const s of n){const i=s?.value;if(!i)continue;let a=i.__resolveType;if(typeof a=="string"&&N(a)&&(a=i.section?.__resolveType??a),typeof a=="string"&&Pe(e,a))return a}return r}function fr(e,t){return ft(e,t)!==t.__resolveType}function pt(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a!="string"||ut.has(a)||typeof i.path=="string"||me(a)||!(Pe(e,a)||a===J&&fr(e,i))||r.push({resolveType:n,title:n,description:typeof i.name=="string"?i.name:void 0,previewBlock:n,isSavedBlock:!0})}return r}function pr(e,t){const r=de(t.resolveType,e),n=r?{}:Ce(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||n.title||X(t.resolveType),description:t.description??n.description,previewBlock:t.resolveType,isSavedBlock:r}}function _n(e,t){const r=lr(e),n=it(r,e),s=be(n?.properties?.sections),i=new Map,a=l=>{if(!me(l.resolveType)){if(de(l.resolveType,e)){je(l.resolveType)||i.set(l.resolveType,l);return}Pe(e,l.resolveType)&&(i.has(l.resolveType)||i.set(l.resolveType,l))}};for(const l of ur(e))a(l);for(const l of s)a(pr(e,l));for(const l of pt(e,t))a(l);return[...i.values()].sort((l,f)=>l.title.localeCompare(f.title))}function An(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const r=t.theme;if(!(!r||typeof r!="object"||Array.isArray(r)))return r}const Be="website/loaders/redirect.ts",Tn=new Set([Be,"website/loaders/redirects.ts"]),Ve="redirect",yr=[301,302,307,308],dr={temporary:307,permanent:301};function Sn(e){return e.flat?e.status??(e.type==="permanent"?301:302):dr[e.type]}const ue=e=>typeof e=="string"?e:"",gr=e=>e==="permanent"?"permanent":"temporary",mr=e=>yr.find(t=>t===e);function vr(e){const t=mr(e.status);return{from:ue(e.from),to:ue(e.to),type:e.permanent===!0?"permanent":"temporary",discardQueryParameters:e.discardQueryParameters===!0,flat:!0,...t?{status:t}:{}}}function yt(e){if(e?.__resolveType===Ve)return vr(e);const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:ue(t.from),to:ue(t.to),type:gr(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function hr(e){const t=[];for(const[r,n]of Object.entries(e)){if(!n||typeof n!="object"||Array.isArray(n))continue;const s=n;s.__resolveType!==Be&&s.__resolveType!==Ve||t.push({key:r,...yt(s)})}return t}function bn(e){return yt(e)}function En(e,t){if(e.flat){const{status:n,discardQueryParameters:s,...i}=t??{};return{...i,__resolveType:Ve,from:e.from,to:e.to,permanent:e.type==="permanent",...e.status?{status:e.status}:{},...e.discardQueryParameters?{discardQueryParameters:!0}:{}}}const r={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(r.discardQueryParameters=!0),{redirect:r,__resolveType:Be}}function _r(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Ar=1e3;function Rn(e,t){const r=_r(t);for(let n=0;n<Ar;n++){const s=`redirects-${r}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,s))return s}throw new Error("Could not generate a unique redirect block key")}function Tr(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function On(e,t){const{pageId:r,path:n,pathTemplate:s}=t;if(r){const i=e.find(l=>l.key===r);if(i)return i;const a=e.find(l=>l.key.endsWith(`-${r}`));if(a)return a}if(n){const i=Je(e,n);if(i)return i}if(s){const i=Je(e,s);if(i)return i}return null}function Je(e,t,r){const n=at;if(r){const i=e.find(a=>a.key===r);if(i)return i}const s=e.filter(i=>n(i.path)===n(t));return s.length===0?null:s.length===1?s[0]??null:[...s].sort((i,a)=>i.key.localeCompare(a.key))[0]??null}const Sr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function dt(e,t){return Sr.has(e)||Object.hasOwn(t?.manifest?.blocks?.pages??{},e)}const ne="site",gt="site/apps/site.ts";function Ee(e,t){return e===ne?!0:t.__resolveType===gt}function kn(e,t){return e?mt(e,t).length>0||hr(e).length>0?!0:t?kr(e,t).length>0||Rr(e,t)?!0:Or(e,t).length>0:!1:!1}function br(e,t,r){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!dt(n.__resolveType,r)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Tr(e),path:n.path}}function mt(e,t){const r=[];for(const[n,s]of Object.entries(e)){const i=br(n,s,t);i&&r.push(i)}return r}function fe(e,t,r=0){if(r>64||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(s=>fe(s,t,r+1));const n=e;return typeof n.__resolveType=="string"&&t.has(n.__resolveType)?!0:Object.values(n).some(s=>fe(s,t,r+1))}function Er(e,t,r){const n=mt(e,r),s=new Set(n.map(a=>a.key)),i=new Set([t]);for(let a=!0;a;){a=!1;for(const[l,f]of Object.entries(e))i.has(l)||s.has(l)||fe(f,i)&&(i.add(l),a=!0)}return n.filter(a=>a.key!==t&&fe(e[a.key],i))}function Pn(e,t,r){const n=i=>at(i.path)==="/"?0:/:[A-Za-z0-9_-]|\*/.test(i.path)?2:1,[s]=Er(e,t,r).sort((i,a)=>n(i)-n(a)||(i.path<a.path?-1:i.path>a.path?1:0));return s??null}function vt(e,t){if(typeof t.name=="string"){const r=t.name.trim();if(r)return r}return e.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Re(e,t,r){const n=typeof t.__resolveType=="string"?t.__resolveType:"",s=n?Ce(n,r):{};if(s.title)return s.title;if(typeof t.name=="string"){const i=t.name.trim();if(i)return i}return e.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Rr(e,t){const r=e[ne];if(r&&typeof r=="object"&&!Array.isArray(r)){const n=r,s=n.__resolveType;if(typeof s=="string"&&(Ee(ne,n)||st(t,s)))return{key:ne,name:Re(ne,n,t),resolveType:s}}for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;if(!Ee(n,i))continue;const a=typeof i.__resolveType=="string"?i.__resolveType:gt;return{key:n,name:Re(n,i,t),resolveType:a}}return null}function Or(e,t){const r=[];for(const[n,s]of Object.entries(e)){if(n.includes("/")||!s||typeof s!="object"||Array.isArray(s))continue;const i=s,a=i.__resolveType;typeof a=="string"&&(dt(a,t)||typeof i.path!="string"&&(Ee(n,i)||!st(t,a)&&!sr(a)||r.push({key:n,name:Re(n,i,t),resolveType:a})))}return r.sort((n,s)=>n.name.localeCompare(s.name))}function kr(e,t){return pt(t,e).map(r=>{const n=e[r.resolveType],s=ft(t,n);return{key:r.resolveType,name:r.description??vt(r.resolveType,n),resolveType:s}}).sort((r,n)=>r.name.localeCompare(n.name))}const Pr=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function jr(e){return e.includes("matchers")||e.includes("Match")}function ht(e,t){const r=e.__resolveType;return typeof r!="string"||!r||Pr.has(r)?!1:t?Xt(t,r):jr(r)}function jn(e,t){const r=[];for(const[n,s]of Object.entries(t)){if(n.includes("/")||!de(n,e)||je(n)||!s||typeof s!="object"||Array.isArray(s))continue;const i=s;ht(i,e)&&r.push({blockKey:n,matcherResolveType:i.__resolveType??"",name:typeof i.name=="string"?i.name:void 0})}return r.sort((n,s)=>(n.name??n.blockKey).localeCompare(s.name??s.blockKey))}function ie(e,t,r){if(!e)return!1;const n=e.__resolveType;if(typeof n!="string"||!de(n,r)||!Object.hasOwn(t,n))return!1;const s=t[n];return!s||typeof s!="object"||Array.isArray(s)?!1:ht(s,r)}function wn(e,t,r){return ie(e,t,r)?e?.__resolveType??null:null}function _t(e,t,r){if(!e)return null;const n=e.__resolveType??"";if(!n)return null;if(ie(e,t,r)){const a=t[n]??{},l=a.__resolveType??n,{__resolveType:f,name:h,..._}=a;return{resolveType:l,data:_,blockKey:n}}const{__resolveType:s,...i}=e;return{resolveType:n,data:i}}function wr(e,t,r){const n=_t(e,t,r);return n?{__resolveType:n.resolveType,...n.data}:{__resolveType:""}}function $n(e,t,r){if(e)return ie(e,t,r)?wr(e,t,r):e}function $r(e,t,r,n){if(!e)return"Default";if(ie(e,t,n)){const s=e.__resolveType??"",i=t[s];return vt(s,i)}return r(e)}function xn(e,t,r){return{__resolveType:e,...t,name:r}}function Ln(e){return{__resolveType:e}}function Cn(e,t,r){const n=_t(e,t,r);return n?{resolveType:n.resolveType,formValue:n.data}:{resolveType:"",formValue:{}}}function Mn(e,t){const r={__resolveType:e};if(!e||!t)return r;const n=it(e,t),s=n?.type==="inline-union"?n.inlineUnionBranches?.[0]?.discriminators:void 0;return s?{...r,...s}:r}function At(e){const t=e.__resolveType??"";return N(t)?e.section??e:e}function pe(e){const s=(N(e.__resolveType??"")?e.section:e)?.variants?.[0];return s?.rule?.__resolveType!==tt?null:s?.value??null}function Bn(e){const t=At(e);return{__resolveType:J,variants:[{value:t,rule:{__resolveType:tt}}]}}function Vn(e){const t=e.__resolveType??"";if(!t)return null;if(N(t))return e.section??null;const r=pe(e);return r?N(r.__resolveType??"")?r:{__resolveType:Ze,section:At(r)}:{__resolveType:Ze,section:e}}function ce(e){const t=e.__resolveType??"";if(!t)return null;if(N(t)){const r=e.section,n=r?.__resolveType??"";return!n||!r?null:{resolveType:n,data:r}}return{resolveType:t,data:e}}function Dn(e){const t=pe(e);if(t)return ce(t);if(N(e.__resolveType??"")){const n=e.section;if(!n)return null;const s=pe(n);return ce(s||n)}return ce(e)}function In(e){return pe(e)}const xr=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function Tt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:xr.includes(t)||t.includes("always")}function Lr(e){const t=e.variants??[];if(t.length===0)return-1;const r=t.findIndex(n=>Tt(n.rule));return r!==-1?r:t.length-1}function Un(e,t,r){const n=r.variants??[];if(n.length===0)return null;const s=Lr(r),i=n[s]?.value;if(!i)return null;const a=structuredClone(i);return t.isLazy?{...e,section:a}:a}function St(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function Fn(e,t){return Array.isArray(e.variants)?e.variants.map((r,n)=>({label:t(r.rule)||`Variant ${n+1}`,value:r.value??{},rule:r.rule})):[]}function Nn(e,t){const r=e.__resolveType??"";if(!r)return null;if(N(r)){const n=e.section??e,s=n.__resolveType??r;if(!s.includes("/")&&s in t){const i=t[s]??{};return{data:{...i},resolveType:i.__resolveType??s}}return{data:{...n},resolveType:s}}if(!r.includes("/")&&r in t){const n=t[r]??{};return{data:{...n},resolveType:n.__resolveType??r}}return{data:{...e},resolveType:r}}function Cr(e,t){const r=e.__resolveType??"";return N(r)?{...e,section:t}:t}function Mr(e,t,r){return t.isLazy?{...e,section:r}:r}function Yn(e,t,r){const n=[...e.variants??[]],s=n[t];if(!s)return e;const i=s.value??{};return n[t]={...s,value:Cr(i,r)},{...e,variants:n}}function zn(e,t,r){const n=[...e.variants??[]];return n[t]?(n[t]={...n[t],rule:r},{...e,variants:n}):e}function Wn(e,t){const r=[...e.variants??[]],n=r[t];return n?(r.splice(t+1,0,structuredClone(n)),{...e,variants:r}):e}function qn(e,t,r){const n=[...e.variants??[]];if(t===r||t<0||r<0||t>=n.length||r>=n.length)return e;const[s]=n.splice(t,1);return s?(n.splice(r,0,s),{...e,variants:n}):e}function Kn(e,t){const r=[...e.variants??[]];return r.length<=1?null:(r.splice(t,1),{...e,variants:r})}function Oe(e){return{rule:we(),value:structuredClone(e)}}function bt(e,t){return{...t,__resolveType:J,variants:e}}function Hn(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function Br(e,t){if(t.isHidden)return null;if(t.isMultivariate){const n=St(e,t)?.variants??[],s=n[n.length-1]?.value;return s?structuredClone(s):null}if(t.isLazy){const r=e.section;return r?structuredClone(r):null}return structuredClone(e)}function Vr(e,t,r){if(t.isMultivariate||t.isHidden)return null;const n=Br(e,t);if(!n)return null;const s=bt([Oe(n),Oe(n)]);return t.isLazy?{...e,section:s}:s}function Gn(e,t,r){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const s=St(e,t);if(!s)return null;const i=s.variants??[],a=i[i.length-1]?.value;if(!a)return null;const l=bt([...i,Oe(a)],s);return{section:Mr(e,t,l),newVariantIndex:i.length}}const n=Vr(e,t);return n?{section:n,newVariantIndex:1}:null}function Dr(e){return e.anyOfRefs?.some(t=>t.resolveType!==ge?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function Qn(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===J&&Array.isArray(t.variants)}function Et(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===ge}function Xn(e){if(!Et(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const r=t[0]?.value;return Array.isArray(r)?r:null}function Zn(e,t){if(!Et(e))return t;const r=structuredClone(e),n=[...r.variants??[]];return n.length===0?n.push({rule:we(),value:t}):n[0]={...n[0],value:t},{...r,variants:n}}function Jn(e,t){const n=e[t]?.sections;if(!n||Array.isArray(n))return 1;const s=n;return Array.isArray(s.variants)?s.variants.length:1}function es(e,t,r){const s=e[t]?.sections;if(Array.isArray(s))return r===0?s:[];if(s&&typeof s=="object"){const i=s.variants;if(Array.isArray(i)){const a=i[r];return Array.isArray(a?.value)?a.value:[]}}return[]}function ts(e,t,r){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.variants)){const s=n.variants,i=s.map(f=>$r(f.rule,t,r)),a=i.reduce((f,h)=>(f[h]=(f[h]??0)+1,f),{}),l={};return s.map((f,h)=>{const _=i[h]??`Variant ${h+1}`,E=a[_]??1;let $=_;return E>1&&(l[_]=(l[_]??0)+1,$=`${_} ${l[_]}`),{label:$||`Variant ${h+1}`,sections:Array.isArray(f.value)?f.value:[],rule:f.rule}})}}return[]}function re(e){return{rule:we(),value:e}}function Z(e,t){return{...t,__resolveType:ge,variants:e}}function rs(e,t){const r=structuredClone(t);if(Array.isArray(e))return Z([re(e),re(r)]);if(e&&typeof e=="object"){const n=e;return Array.isArray(n.variants)?Z([...n.variants,re(r)],n):null}return Z([re([]),re(r)])}function ns(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function ss(e,t){const r=e[t];if(!r)return null;const n=[...e];return n.splice(t+1,0,structuredClone(r)),n}function is(e,t){if(t.length===0)return Z([],e);if(t.length===1){const r=t[0],n=r?.rule;if(!Tt(n))return Z(t,e);if(Array.isArray(r?.value))return r.value}return Z(t,e)}function Ir(e,t,r){const n=[];for(const[i,a]of Object.entries(e))i!==t&&n.push(a);const s=new Set;for(;n.length>0;){const i=n.pop();if(!(!i||typeof i!="object")&&!s.has(i)){if(s.add(i),Array.isArray(i)){for(const a of i)n.push(a);continue}r(i);for(const a of Object.values(i))n.push(a)}}}function os(e,t,r){if(!t)return 0;let n=0;return Ir(e,t,s=>{s.__resolveType===t&&ie(s,e,r)&&n++}),n}const as={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};function le(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===J}function Ur(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(r=>le(r.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(r=>le(r.resolveType)):!1}function cs(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>le(t.resolveType))}function ls(e,t){if(t==="global"||t==="sections"||Dr(e))return!0;const r=e.type==="array"?e.items:void 0;return r?Ur(r):!1}const us="secret",Fr=[256,384,512],Nr=12,Yr=16,zr=/^v1\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function Wr(e){let t="";for(const r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Se(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4===1)return null;const t=e.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat((4-e.length%4)%4);let r;try{r=atob(t)}catch{return null}const n=Uint8Array.from(r,s=>s.charCodeAt(0));return Wr(n)===e?n:null}function qr(e){if(typeof e!="string"||!zr.test(e))return null;const[,t="",r="",n=""]=e.split("."),s=Se(t),i=Se(r),a=Se(n);return!s||!i||!a||!Fr.includes(s.byteLength)||i.byteLength!==Nr||a.byteLength<Yr?null:{wrappedKey:s,iv:i,ciphertext:a}}function fs(e){return qr(e)!==null}export{X as $,Re as A,Ce as B,as as C,ar as D,dr as E,Sn as F,He as G,ln as H,On as I,Rr as J,hr as K,nn as L,hn as M,tt as N,Jn as O,rs as P,Rn as Q,Jr as R,us as S,En as T,Ut as U,be as V,de as W,ge as X,an as Y,Ge as Z,Qe as _,Tr as a,Gt as a0,Zt as a1,J as a2,Dr as a3,un as a4,cn as a5,ls as a6,jn as a7,wr as a8,Ln as a9,An as aA,Hn as aB,St as aC,Fn as aD,Nn as aE,_t as aF,Gn as aG,ns as aH,qn as aI,Mr as aJ,Un as aK,Kn as aL,Wn as aM,zn as aN,Vn as aO,In as aP,Bn as aQ,is as aR,os as aS,Yn as aT,Lr as aU,ss as aV,bn as aW,yr as aX,$n as aa,ts as ab,cs as ac,_n as ad,we as ae,Tt as af,$r as ag,wn as ah,Cn as ai,ie as aj,xn as ak,Mn as al,Kt as am,on as an,sn as ao,fs as ap,Qn as aq,Et as ar,Xn as as,Zn as at,Tn as au,je as av,fn as aw,pn as ax,st as ay,Dn as az,qt as b,le as c,Pn as d,gn as e,vn as f,vt as g,en as h,Ee as i,tn as j,N as k,mn as l,yn as m,at as n,kn as o,br as p,mt as q,kr as r,rn as s,Je as t,es as u,dn as v,lr as w,it as x,gt as y,sr as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,b as d,j as l}from"./index-
|
|
1
|
+
import{c as x,b as d,j as l}from"./index-TD9q6ZAx.js";import{s as j}from"./User01-BmCbB_zb.js";import{t as E}from"./Users01-BVggEmV6.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as y,j as s,n as C,fI as E,H as F,r as N,b1 as L,B as D,af as T,D as O,q as B,s as A,v as R,aM as I,I as _,w as q,t as z}from"./index-
|
|
1
|
+
import{c as j,b as y,j as s,n as C,fI as E,H as F,r as N,b1 as L,B as D,af as T,D as O,q as B,s as A,v as R,aM as I,I as _,w as q,t as z}from"./index-TD9q6ZAx.js";import{i as H}from"./AlertCircle-DZq02EzT.js";import{s as V}from"./Plus-DtZhz_pb.js";import{s as M}from"./User01-BmCbB_zb.js";import{t as G}from"./Users01-BVggEmV6.js";import{L as w}from"./label-B-SEr3Fs.js";import{S as J,b as K,a as Q,d as U,c as P}from"./select-vip2MDSn.js";import{T as W}from"./textarea-B-TS083j.js";import{u as X,a as Y}from"./use-secrets-nvhTtgV_.js";import{R as Z}from"./require-capability-BewAou1A.js";import"./index-BdQq_4o_.js";import"./index-B26ImUL7.js";import"./ChevronUp-D4PiHnN0.js";import"./access-gate-D3L-T38D.js";import"./capability-load-error-DBmMi5Hs.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?M:G;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(I,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(K,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(q,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};
|