decocms 4.574.5 → 4.574.8

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.
Files changed (398) hide show
  1. package/dist/client/assets/{AlertCircle-Dhxv_VvX.js → AlertCircle-BAmHKKsU.js} +1 -1
  2. package/dist/client/assets/{AreaChart-p06QdUOH.js → AreaChart-Dzi9L-5c.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DPiUStmH.js → ArrowLeft-gk0ZCHpe.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-C5MIVxlv.js → ArrowUp-Oow5hGQz.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-CR71csgM.js → CartesianChart-GB7-WfQw.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-C7-Bo6NS.js → CategoricalChart-BQlyLGsu.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DQiPh0bs.js → CheckCircle-DmfFwydo.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-C_LOUUD2.js → ChevronSelectorVertical-DhmNgA1s.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BusAGBPt.js → ChevronUp-h3R0LiST.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-B86ybMWX.js → CreditCard01-opvzFjuh.js} +1 -1
  11. package/dist/client/assets/{Globe04-BgmGeS07.js → Globe04-B7My-KRc.js} +1 -1
  12. package/dist/client/assets/{Key01-bRc0D6iU.js → Key01-DtUFXCmn.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-CExBuGlw.js → LinkBroken01-DbqgHdC0.js} +1 -1
  14. package/dist/client/assets/{Minus-BuxaQmfP.js → Minus-BrKkP3oW.js} +1 -1
  15. package/dist/client/assets/{Monitor01-CWmH5Gyz.js → Monitor01-ZcR52K7T.js} +1 -1
  16. package/dist/client/assets/{Play-xrfH4Yz5.js → Play-CmLZLyOc.js} +1 -1
  17. package/dist/client/assets/{Plus-BRIZEm-m.js → Plus-Ci-A-fWx.js} +1 -1
  18. package/dist/client/assets/ReferenceLine-k6lFOpoF.js +1 -0
  19. package/dist/client/assets/{SearchMd-CHeeKxSQ.js → SearchMd-DjJWIBOz.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-CpRghVvA.js → ShoppingBag01-DqYzokeC.js} +1 -1
  21. package/dist/client/assets/{Sun-fB3zW2OU.js → Sun-DRGxYgs4.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-DIK7cKae.js → SwitchHorizontal01-BUmyYri2.js} +1 -1
  23. package/dist/client/assets/{Tool01-Bw_Gs9HT.js → Tool01-BpRZdana.js} +1 -1
  24. package/dist/client/assets/{Tooltip-XKGOcBmc.js → Tooltip-CiaiPRI1.js} +1 -1
  25. package/dist/client/assets/{Trash01-BIlzZ3AH.js → Trash01-b7MmLF07.js} +1 -1
  26. package/dist/client/assets/{Upload01-DuNH7edt.js → Upload01-DGExuych.js} +1 -1
  27. package/dist/client/assets/{UserSquare-BV7Jqoa-.js → UserSquare-aPvg2Nw7.js} +1 -1
  28. package/dist/client/assets/{Users01-Cy9FwTEl.js → Users01-BKOqY1GP.js} +1 -1
  29. package/dist/client/assets/{XClose-DeJhJbxg.js → XClose-w7hRM8A3.js} +1 -1
  30. package/dist/client/assets/{Zap-Bp1s63-N.js → Zap-z5XiOqRJ.js} +1 -1
  31. package/dist/client/assets/{access-gate-BO57Fy6P.js → access-gate-DVYwMQ0P.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-BC7Osx_R.js → add-connection-dialog-KFg0vdbz.js} +1 -1
  33. package/dist/client/assets/agent-app-DXwdoAjf.js +1 -0
  34. package/dist/client/assets/{agent-assets-BUrt3dPh.js → agent-assets-DBXXdN-F.js} +1 -1
  35. package/dist/client/assets/{agent-automation-BNwHO-72.js → agent-automation-mqokXjnT.js} +1 -1
  36. package/dist/client/assets/{agent-automations-BAX6zuIx.js → agent-automations-4REoeTdH.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-vVzb3Jt5.js → agent-calendar-D3Ep29wr.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-CpYu5jEI.js → agent-capabilities-CVf7Tm9q.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-BuHIOYH8.js → agent-connect-sources-5aNARyd1.js} +1 -1
  40. package/dist/client/assets/agent-deck-Dd-94Ll1.js +1 -0
  41. package/dist/client/assets/{agent-e2e-HxqodN3d.js → agent-e2e-B_HILHfY.js} +1 -1
  42. package/dist/client/assets/agent-experiments-ScITEgVg.js +1 -0
  43. package/dist/client/assets/{agent-file-9keGK7G7.js → agent-file-ChXQ_dxN.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-Ba3TD5BK.js → agent-hosting-Q-HUFuhy.js} +1 -1
  45. package/dist/client/assets/{agent-icon-DbfcsXV4.js → agent-icon-Cq6bkxhD.js} +1 -1
  46. package/dist/client/assets/agent-library-BeNJQBOC.js +1 -0
  47. package/dist/client/assets/agent-library-file-B2Ucnk93.js +1 -0
  48. package/dist/client/assets/agent-overview-CmWFjWhR.js +1 -0
  49. package/dist/client/assets/{agent-releases-DUbgEATu.js → agent-releases-V69FFrsa.js} +2 -2
  50. package/dist/client/assets/agent-settings-ClO775W2.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-uQzxcM8C.js → agent-site-editor-CN1s3wDa.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-CbYxsWDQ.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-DiQWw-fO.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-lCIgS5W9.js +1 -0
  55. package/dist/client/assets/agent-view-BNMlU9Xn.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-W_TpFLj2.js → agent-view-guard-D_qa8QG0.js} +1 -1
  57. package/dist/client/assets/{ai-providers-BHXvN3lN.js → ai-providers-Dpuo8FL0.js} +1 -1
  58. package/dist/client/assets/{alert-DBbkuMuk.js → alert-UQKKr_Kk.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-B3bcjZGS.js → analytics-sections-CplA1JwF.js} +1 -1
  60. package/dist/client/assets/{api-keys-BxiY8kcp.js → api-keys-C2CtORaM.js} +1 -1
  61. package/dist/client/assets/api-keys-VCcvSSAk.js +1 -0
  62. package/dist/client/assets/{app-editor-r0R62IBH.js → app-editor-DxS_SOS1.js} +1 -1
  63. package/dist/client/assets/{asset-utils-MeaeLnLx.js → asset-utils-D7YjAVSU.js} +1 -1
  64. package/dist/client/assets/{auth-eHRARwQ2.js → auth-Cy8U0vN0.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-BT8BEBDX.js → auth-catchall-BzWkrG7V.js} +1 -1
  66. package/dist/client/assets/{auth-entry-z3QPpDZU.js → auth-entry-D9eSm7L9.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-DfToASYD.js → auth-split-layout-QrGrLjO_.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-CjW_HJT8.js → authenticate-and-persist-oauth-qsvUUvW_.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-DDqzJ6yN.js → automation-list-row-CirPKB_R.js} +1 -1
  70. package/dist/client/assets/{automation-runs-Ck7meZnh.js → automation-runs-DkcFNSpy.js} +1 -1
  71. package/dist/client/assets/{automations-Bl1cCncB.js → automations-DQrJLYNP.js} +1 -1
  72. package/dist/client/assets/{autosend-YTrROtL8.js → autosend-BneXym43.js} +1 -1
  73. package/dist/client/assets/{badge-BLj5oaM_.js → badge-DkIOux3v.js} +1 -1
  74. package/dist/client/assets/{block-document-BISqnz_T.js → block-document-C7UjkOY9.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-BtXgnaQN.js → blocks-preview-workspace-context-CfDmwLLA.js} +1 -1
  76. package/dist/client/assets/blocks-tab-states-BfcuzOZT.js +1 -0
  77. package/dist/client/assets/{blog-schema-DD6KWf6e.js → blog-schema-D_gjHI6M.js} +1 -1
  78. package/dist/client/assets/{buckets-BQqb0o4o.js → buckets-CzLaj5xW.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-80nYNz4Z.js → build-improve-prompt-doc-UX5YM4et.js} +1 -1
  80. package/dist/client/assets/{calendar-BI3ebszn.js → calendar-DoivltYN.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-D_eJcYHf.js → capability-load-error-Dk8QULrM.js} +1 -1
  82. package/dist/client/assets/{category-editor-I5YxNQQ5.js → category-editor-CKte_uBr.js} +1 -1
  83. package/dist/client/assets/chart-BpO8BFbN.js +13 -0
  84. package/dist/client/assets/{chat-context-DrqBnMGV.js → chat-context-B1Dc5lsu.js} +1 -1
  85. package/dist/client/assets/{chat-draft-DSgKm45E.js → chat-draft-zRebzdTN.js} +1 -1
  86. package/dist/client/assets/{checkbox-CfVXlX4u.js → checkbox-BADwu2Rj.js} +1 -1
  87. package/dist/client/assets/{choose-editor-D3_bqd8J.js → choose-editor-mfO2CtNV.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-CCk5-b6l.js → cli-auth-success-BkkXQ3np.js} +1 -1
  89. package/dist/client/assets/{client-icons-DE5s9EhF.js → client-icons-CHsHOEe7.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-DUGWgHGi.js → cms-settings-editor-DfZDkcQ1.js} +1 -1
  91. package/dist/client/assets/cms-store-drafts-BuRwcXPq.js +1 -0
  92. package/dist/client/assets/{collapsible-DCKPxsPs.js → collapsible-BFh_qMlo.js} +1 -1
  93. package/dist/client/assets/{collection-detail-99jcqq1O.js → collection-detail-Cq-xHp6m.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-DJquIZj0.js → collection-display-button-BYbMEj23.js} +1 -1
  95. package/dist/client/assets/{collection-search-CcswFoQz.js → collection-search-Bg84Y9_0.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-u0Q_f-Jr.js → collection-table-wrapper-4Lsn1giX.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-B6DksJOI.js → collection-tabs-D57aIX5v.js} +1 -1
  98. package/dist/client/assets/{combobox-f-1LbAQg.js → combobox-iSV-CQzM.js} +1 -1
  99. package/dist/client/assets/{command-B13rzls6.js → command-CnVdPyj_.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-Dhc8wIjl.js → companion-mcps-section-Bmqe6SeC.js} +1 -1
  101. package/dist/client/assets/{config-CODdLsbj.js → config-DUlh6l4D.js} +1 -1
  102. package/dist/client/assets/{connect-nqV0IwGn.js → connect-Bw0GJuTn.js} +3 -3
  103. package/dist/client/assets/{connect-layout-CV6GZLu5.js → connect-layout-CwJayWyX.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-CGrEF7EH.js → connect-source-dialog-B1fyzn4u.js} +1 -1
  105. package/dist/client/assets/{connection-CpcxYbw-.js → connection-Ds0NPGRv.js} +1 -1
  106. package/dist/client/assets/{connection-card-DbTrHYwh.js → connection-card-Cnzr9qgv.js} +1 -1
  107. package/dist/client/assets/{connection-detail-BXwTjfTg.js → connection-detail-C94Si9oS.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-BFeW48f1.js → connection-form-helpers-DLZm80Vh.js} +1 -1
  109. package/dist/client/assets/{connection-slug-BlCRUE5Z.js → connection-slug-JtkQvH-U.js} +1 -1
  110. package/dist/client/assets/{connections-C3cZP6N-.js → connections-BwWpc88q.js} +1 -1
  111. package/dist/client/assets/{content-tab-BZA7n8sL.js → content-tab-Frzx5T6f.js} +3 -3
  112. package/dist/client/assets/{context-EiAaoy2D.js → context--tEugIHA.js} +1 -1
  113. package/dist/client/assets/{context-menu-CoBBaT-n.js → context-menu-DmK-hmJb.js} +1 -1
  114. package/dist/client/assets/{context-shell-DYEfNRo8.js → context-shell-M8Z1NRsU.js} +3 -3
  115. package/dist/client/assets/{core.esm-CZ_suStd.js → core.esm-PCFOeq2F.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-CsKJ38nv.js → create-organization-dialog-c0RCVWjZ.js} +1 -1
  117. package/dist/client/assets/{device-hint-DlZdZHNJ.js → device-hint-Cb5Yk9vR.js} +1 -1
  118. package/dist/client/assets/{discover-V8VmtY63.js → discover-1n4s1YWq.js} +1 -1
  119. package/dist/client/assets/{domain-settings-CqMNMzW1.js → domain-settings-BWnBbfZl.js} +1 -1
  120. package/dist/client/assets/{drawer-Cgf4oN4m.js → drawer-BbDXg4uh.js} +1 -1
  121. package/dist/client/assets/{editor-Bl3rIcVI.js → editor-SbnY9UBB.js} +1 -1
  122. package/dist/client/assets/{editor-classes-D2R7rw-c.js → editor-classes-DIUoFA4r.js} +1 -1
  123. package/dist/client/assets/{empty-state-aXWI3-Mm.js → empty-state-DUtU0We7.js} +1 -1
  124. package/dist/client/assets/{empty-state-D5-IJmKF.js → empty-state-Dx0vUNGR.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-CcWoxHNu.js → experiments-tab-choice-8BUY4PRB.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-D7JZIpe1.js → extract-connection-data-5aIWs5nm.js} +1 -1
  127. package/dist/client/assets/{feature-gate-BB1BinIq.js → feature-gate-B4_WUn2S.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-DadXALbq.js → feature-paywall-Ci_hk3eZ.js} +1 -1
  129. package/dist/client/assets/{file-explorer-Dl028uja.js → file-explorer-DS7-0IU7.js} +1 -1
  130. package/dist/client/assets/{file-preview-4Tbf_ub4.js → file-preview-3QxlKUQz.js} +1 -1
  131. package/dist/client/assets/{file-share-button-DjQHOi0O.js → file-share-button-CA034yeE.js} +1 -1
  132. package/dist/client/assets/{file-type-icon-Bdzds_J6.js → file-type-icon-Bp2pbI2H.js} +1 -1
  133. package/dist/client/assets/{folder-icon-JFUPr6Oa.js → folder-icon-BkUUZm4G.js} +1 -1
  134. package/dist/client/assets/{form-BYhtZm8M.js → form-BZxHXIID.js} +1 -1
  135. package/dist/client/assets/{general-DbKg9blt.js → general-j2gaIDEz.js} +1 -1
  136. package/dist/client/assets/{github-icon-iZdKbq4s.js → github-icon-ddw588tY.js} +1 -1
  137. package/dist/client/assets/{home-DVdXJNEh.js → home-8Ff5iue5.js} +1 -1
  138. package/dist/client/assets/{home-overview-8NqH5SXV.js → home-overview-DGDE6TGI.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-DBUQw0wz.js → hosted-reconcile-DB9dOS9F.js} +1 -1
  140. package/dist/client/assets/{icon-button-Bkz9RDzV.js → icon-button-D5w08aAD.js} +1 -1
  141. package/dist/client/assets/{index-I6t84B1M.js → index--SSY-JG1.js} +1 -1
  142. package/dist/client/assets/{index-cvR6uZtJ.js → index-B5NK1-t4.js} +1 -1
  143. package/dist/client/assets/{index-D2JCiu4r.js → index-BSoGrbzN.js} +1 -1
  144. package/dist/client/assets/{index-BV2_mRhH.js → index-Bew7RNKQ.js} +1 -1
  145. package/dist/client/assets/{index-DNAVFVoL.js → index-Bs6auyxm.js} +1 -1
  146. package/dist/client/assets/{index-CorYIdad.js → index-CH52vsqw.js} +1 -1
  147. package/dist/client/assets/{index-DV7H7fST.js → index-CMIbJ8MG.js} +1 -1
  148. package/dist/client/assets/{index-BiJyBzx-.js → index-CTsVtX6Z.js} +1 -1
  149. package/dist/client/assets/{index-DXd61UF-.js → index-CllkIJqm.js} +1 -1
  150. package/dist/client/assets/{index-BYLma6nR.js → index-Cp6n42Yr.js} +39 -39
  151. package/dist/client/assets/{index-jDgMG-M0.js → index-CuNO2v8I.js} +1 -1
  152. package/dist/client/assets/{index-DVzGX6Yk.js → index-D4OC_zRz.js} +1 -1
  153. package/dist/client/assets/{index-CyB8FMpF.js → index-DXV9Rrgh.js} +1 -1
  154. package/dist/client/assets/{index-DENYSVWJ.js → index-DY7W6fVv.js} +1 -1
  155. package/dist/client/assets/{index-DatF-lrE.js → index-DZucODSP.js} +1 -1
  156. package/dist/client/assets/{index-CBKPLOSd.js → index-Dz6SE42K.js} +1 -1
  157. package/dist/client/assets/{index-redirect-2Xzyc9Yp.js → index-redirect-D5oUlGVq.js} +1 -1
  158. package/dist/client/assets/{infiniteQueryObserver-deqizdYY.js → infiniteQueryObserver-C6Hka48g.js} +1 -1
  159. package/dist/client/assets/{infra-billing-tyxMYA7K.js → infra-billing-cI61pY-d.js} +1 -1
  160. package/dist/client/assets/{input-ZtRkRndM.js → input-C0CJR9vr.js} +4 -4
  161. package/dist/client/assets/{input-CZkeDxU4.js → input-DGGlfIK5.js} +1 -1
  162. package/dist/client/assets/{integration-icon-CknO8J8O.js → integration-icon-C9enxTmo.js} +1 -1
  163. package/dist/client/assets/{jira-icon-MwO2xsZ2.js → jira-icon-BrLIhIWw.js} +1 -1
  164. package/dist/client/assets/{label-CjHEjKyC.js → label-DollvLW8.js} +1 -1
  165. package/dist/client/assets/{layout-BPQjilkO.js → layout-BfONeqKu.js} +1 -1
  166. package/dist/client/assets/{legacy-admin-welcome-dialog-CCJK6F5I.js → legacy-admin-welcome-dialog-DGD5VDL8.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-CJaEmbG0.js → legacy-agents-deep-gnvJlDT7.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-vnkqH-1j.js → legacy-main-redirect-Ceue37fQ.js} +1 -1
  169. package/dist/client/assets/library-DKGbQOFX.js +1 -0
  170. package/dist/client/assets/{library-tab-CdWEZxRI.js → library-tab-C4UPTrtu.js} +1 -1
  171. package/dist/client/assets/{login-DS_iw6N1.js → login-BJ2i0F0x.js} +1 -1
  172. package/dist/client/assets/{markdown-Da1uCT0e.js → markdown-BAasaHPS.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-mf0rf7E1.js → mcp-app-renderer-BZ0wqpxq.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-CaiLBqRy.js → mcp-oauth-BdTbmZs-.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-HzcRe8g5.js → mcp-oauth-DMVjZNG4.js} +1 -1
  176. package/dist/client/assets/{members-CMznzVfQ.js → members-B5rwN-xs.js} +1 -1
  177. package/dist/client/assets/{memory-DBtEhQbQ.js → memory-D2wUtT6f.js} +1 -1
  178. package/dist/client/assets/{mock-board-WAMSCCQz.js → mock-board-B5ve8ttC.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-DOm9wfYQ.js → monaco-editor-D3FwWS6z.js} +1 -1
  180. package/dist/client/assets/{monitoring-DLU9E9jL.js → monitoring-NCSiQ2Pk.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-BZhbxHPL.js → monitoring-stats-row-us5YxB_s.js} +1 -1
  182. package/dist/client/assets/{multi-select-DrnuD1mN.js → multi-select-C9p48rxb.js} +1 -1
  183. package/dist/client/assets/{mustache-BrMR8WIh.js → mustache-BE51OfHp.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-DFynUe1k.js → named-rule-view-Dr1gx6K_.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-EugQEueI.js → new-project-dialog-COHpjNot.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-qT5-0tMU.js → oauth-callback-CUBLm5wr.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider--_rbTYAf.js → oauth-callback-ai-provider-CIj7gVYm.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-cQG5I8Ec.js → oauth-consent-bt38CVDY.js} +1 -1
  189. package/dist/client/assets/{onboarding-C7OJySzu.js → onboarding-Bx5RinvH.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-Cm9EexiP.js → openai-conversation-BtohP0w7.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-DQEq-a-n.js → optimistic-project-sidebar-views-BFYfi1F9.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-Baz0Q4B-.js → order-monitor-day-CKVt2dpk.js} +1 -1
  193. package/dist/client/assets/{organization-choice-BvHaYYrY.js → organization-choice-BLQB1MdJ.js} +1 -1
  194. package/dist/client/assets/{orgs-CO5qg_zx.js → orgs-CEDevUSC.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-sv1QSuWm.js → own-accounts-section-BvxGuDLU.js} +1 -1
  196. package/dist/client/assets/{pair-BV2vQ0xm.js → pair-BjJ0vlX3.js} +8 -8
  197. package/dist/client/assets/{parse-sections-4T2NkKUg.js → parse-sections-CLMVUWEK.js} +3 -3
  198. package/dist/client/assets/{plan-CurU7CCP.js → plan-KNHptWXW.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-Bu3Ap_FZ.js → plan-ladder-NH52TbUB.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-BoXPSn1R.js → plan-usage-card-CicIxe-V.js} +2 -2
  201. package/dist/client/assets/{popover-N7uvMIxz.js → popover-D24o9prf.js} +1 -1
  202. package/dist/client/assets/{post-calendar-dGcUdPXO.js → post-calendar-Bz188EnX.js} +1 -1
  203. package/dist/client/assets/{post-editor-C7cux0l4.js → post-editor-CuUceih2.js} +1 -1
  204. package/dist/client/assets/{preview-content-CT2MLe31.js → preview-content-BA-6vON6.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-j29O32-o.js → preview-dialog-oxja9bAU.js} +1 -1
  206. package/dist/client/assets/{preview-panel-DrbFpZBA.js → preview-panel-D9I-ugJU.js} +1 -1
  207. package/dist/client/assets/{preview-tab-DXgIeou6.js → preview-tab-BwdMydLW.js} +3 -3
  208. package/dist/client/assets/{product-picker-dialog-DQbb069K.js → product-picker-dialog-COzRJ8BW.js} +1 -1
  209. package/dist/client/assets/{profile-B1D5-rlo.js → profile-My2od47M.js} +1 -1
  210. package/dist/client/assets/project-app-view-E76q47JL.js +1 -0
  211. package/dist/client/assets/{project-apps-CmXREDt2.js → project-apps-DrYTNZ5G.js} +1 -1
  212. package/dist/client/assets/{project-icon-BFruPc7B.js → project-icon-BM-iwutu.js} +1 -1
  213. package/dist/client/assets/{project-index-BZNO31D8.js → project-index-BUVdFrBG.js} +1 -1
  214. package/dist/client/assets/project-reports-Fc7-jScE.js +1 -0
  215. package/dist/client/assets/project-tasks-Bhf7Ee7Q.js +1 -0
  216. package/dist/client/assets/{projects-iB2V9afU.js → projects-B3gCjiBk.js} +1 -1
  217. package/dist/client/assets/{projects-empty-state-MtIbG9US.js → projects-empty-state-CTxV56Xs.js} +1 -1
  218. package/dist/client/assets/{prompts-BG_4qmzz.js → prompts-D5bhWe_R.js} +1 -1
  219. package/dist/client/assets/{record-editor-8mMyqAq_.js → record-editor-D6SsY0SM.js} +1 -1
  220. package/dist/client/assets/{redirect-editor-DODrcHmb.js → redirect-editor-B3698ZCQ.js} +1 -1
  221. package/dist/client/assets/reports-CANELH-J.js +1 -0
  222. package/dist/client/assets/{reports-u6Dfo5ym.js → reports-DaZdSGhj.js} +1 -1
  223. package/dist/client/assets/{reports-onboarding-0hyPuCKx.js → reports-onboarding-AyYmW8fp.js} +1 -1
  224. package/dist/client/assets/{reports-tab-Bz7eFHcA.js → reports-tab-CxSjMYsb.js} +2 -2
  225. package/dist/client/assets/repositories-BSWAcVK8.js +1 -0
  226. package/dist/client/assets/{repositories-CFziQK7w.js → repositories-DQ6Ky9_o.js} +1 -1
  227. package/dist/client/assets/{repository-binding-BkD30urH.js → repository-binding-D4ffxM0-.js} +1 -1
  228. package/dist/client/assets/{repository-picker-CfUR1P6V.js → repository-picker-D3voXCbp.js} +1 -1
  229. package/dist/client/assets/{require-capability-B1_EID-G.js → require-capability-D4DqAm-3.js} +1 -1
  230. package/dist/client/assets/{required-auth-layout-DFKnKCtp.js → required-auth-layout-CNDWmtf1.js} +1 -1
  231. package/dist/client/assets/{reset-password-DjNcJ5K0.js → reset-password-BiiJ_CmP.js} +1 -1
  232. package/dist/client/assets/{resizable-CSObW6nE.js → resizable-DsL82mTc.js} +1 -1
  233. package/dist/client/assets/{resolve-tab-icon-j_0ryOQr.js → resolve-tab-icon-BRctEg0A.js} +1 -1
  234. package/dist/client/assets/{review-settings-WwIoSq9p.js → review-settings-BJLhtyo0.js} +1 -1
  235. package/dist/client/assets/{role-color-beneWoQ9.js → role-color-Lpygw__k.js} +1 -1
  236. package/dist/client/assets/{roles-DmQOwh5E.js → roles-miGbxbmy.js} +1 -1
  237. package/dist/client/assets/{route-Bd0M38TP.js → route-CHU5WEK3.js} +1 -1
  238. package/dist/client/assets/{route-Dnfk_OL6.js → route-Dp0kuMSx.js} +1 -1
  239. package/dist/client/assets/route-wjqv8tCV.js +1 -0
  240. package/dist/client/assets/{sandbox-lifecycle-context-B7r5ICXq.js → sandbox-lifecycle-context-WRNVQRt_.js} +1 -1
  241. package/dist/client/assets/{schema-hGrr4U87.js → schema-DEsOzh4i.js} +1 -1
  242. package/dist/client/assets/{schema-x3j4FByb.js → schema-wLAfgKNj.js} +1 -1
  243. package/dist/client/assets/{scroll-area-BUQV_LXH.js → scroll-area-DOw7gsKP.js} +1 -1
  244. package/dist/client/assets/{search-input-CuXTJoya.js → search-input-B3MNzTE0.js} +1 -1
  245. package/dist/client/assets/{search-toggle-Dozi3jn4.js → search-toggle-DReGYaJo.js} +1 -1
  246. package/dist/client/assets/{secret-picker-BjW_LSzb.js → secret-picker-C20_xwTo.js} +1 -1
  247. package/dist/client/assets/{secrets-D3c82efw.js → secrets-BySkDPIF.js} +1 -1
  248. package/dist/client/assets/{section-array-field-DdQmkBVv.js → section-array-field-DTljbrtq.js} +1 -1
  249. package/dist/client/assets/{sections-BugzxN3d.js → sections-BoRSb0eA.js} +1 -1
  250. package/dist/client/assets/{sections-editor-vn3XqGqZ.js → sections-editor-CHnIwFIR.js} +1 -1
  251. package/dist/client/assets/{select-D61WZk1O.js → select-CF7TydOZ.js} +1 -1
  252. package/dist/client/assets/{select-model-B9-VeM83.js → select-model-B9Bic-T3.js} +1 -1
  253. package/dist/client/assets/{seo-editor-CHKnAUms.js → seo-editor-DOkOiarr.js} +1 -1
  254. package/dist/client/assets/{separator-BVRCWUXh.js → separator-DhcQY19g.js} +1 -1
  255. package/dist/client/assets/settings-tab-D25mtqBG.js +1 -0
  256. package/dist/client/assets/{sheet-DIBHWB2f.js → sheet-BdVmV6Pq.js} +1 -1
  257. package/dist/client/assets/{shell-layout-B0sxwrmk.js → shell-layout-MQ4OcCap.js} +1 -1
  258. package/dist/client/assets/{site-draft-actions-CIqEMxV-.js → site-draft-actions-BaadF58T.js} +1 -1
  259. package/dist/client/assets/{site-draft-view-CRnAEeje.js → site-draft-view-Ccdq_-fk.js} +1 -1
  260. package/dist/client/assets/site-editor-4daajG8m.js +1 -0
  261. package/dist/client/assets/site-editor-toast-DM5YZS3Y.js +1 -0
  262. package/dist/client/assets/{skills-DSWQxTlW.js → skills-DJOLRmph.js} +1 -1
  263. package/dist/client/assets/{slider-DRwKc5id.js → slider-DJcSL4Tw.js} +1 -1
  264. package/dist/client/assets/{sortable.esm-D0_nmGGR.js → sortable.esm-C_BgVL5v.js} +1 -1
  265. package/dist/client/assets/{sso-CzNpdX7R.js → sso-BZDDOaue.js} +1 -1
  266. package/dist/client/assets/suggestion-B3N1mIWr.js +2 -0
  267. package/dist/client/assets/{super-agent-icon-CqYKR78y.js → super-agent-icon-g2NhNxGd.js} +1 -1
  268. package/dist/client/assets/{switch-DqhVUDGb.js → switch-IAv0jmhq.js} +1 -1
  269. package/dist/client/assets/{synced-repos-bxt0QNXE.js → synced-repos-GfE9kIif.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-isGtQ89b.js → tab-icon-glyph-CJmmHM_1.js} +1 -1
  271. package/dist/client/assets/{table-BjC5y-mI.js → table-DO96vrVz.js} +1 -1
  272. package/dist/client/assets/{tabs-D47HrxyT.js → tabs-B1aOuHa_.js} +1 -1
  273. package/dist/client/assets/{task-board-CpInFlas.js → task-board-Bc-7X8Cr.js} +1 -1
  274. package/dist/client/assets/{task-route-BlJmoQnB.js → task-route-UOwF7ZyB.js} +1 -1
  275. package/dist/client/assets/{task-status-CtyIOSPd.js → task-status-BjQzfxdG.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-lEMFRF2F.js → taskboard-analytics-CIxAcfXM.js} +1 -1
  277. package/dist/client/assets/{tasks-iEvVDxme.js → tasks-6JgQa8El.js} +3 -3
  278. package/dist/client/assets/tasks-Cbn3588T.js +1 -0
  279. package/dist/client/assets/{textarea-CjxhqOyq.js → textarea-DCa16Aq1.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-Bh5IuMZi.js → thread-analytics-10dzcGNV.js} +1 -1
  281. package/dist/client/assets/{thread-intent-D7K3VC0B.js → thread-intent-Ddlv1EMC.js} +1 -1
  282. package/dist/client/assets/{thread-route-D6poUO7_.js → thread-route-AJ1czxsb.js} +1 -1
  283. package/dist/client/assets/{thread-route-CsxQz3Zx.js → thread-route-C_pt-wyk.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body-DYxNtyxr.js → thread-sheet-body-BF95jdw2.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-CikQym1Z.js → time-range-picker-BOytGVlx.js} +1 -1
  286. package/dist/client/assets/{toggle-group-CouAljQq.js → toggle-group-DTX-YKoE.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-COJtiQ4T.js → tool-namespace-BKOiLsuX.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-D0VA8wi_.js → tool-set-selector-DnHiuvkS.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-BuwmFHmx.js → toolbar-icon-button-BImRw-Lv.js} +1 -1
  290. package/dist/client/assets/{tooltip-Bw3qe--M.js → tooltip-D6hu1dbX.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-6k_VEZRX.js → tooltipContext-Dofwvvi6.js} +1 -1
  292. package/dist/client/assets/{track-BwadfAZS.js → track-t0ME1Ly8.js} +1 -1
  293. package/dist/client/assets/{types-CbWt7gMo.js → types-CM-Rkav0.js} +1 -1
  294. package/dist/client/assets/{url-slug-_FVYRYFw.js → url-slug-jY-crr9m.js} +1 -1
  295. package/dist/client/assets/{usage-stats-DQ3lpFK8.js → usage-stats-wdmn6GE1.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-BZwoM77S.js → use-ai-providers-CRYxK9KK.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-DBwwofns.js → use-apply-named-rule-DvjmPUTS.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-CTdK-Xy9.js +1 -0
  299. package/dist/client/assets/{use-automations-9JK3KVgm.js → use-automations-BpFoHkvb.js} +1 -1
  300. package/dist/client/assets/{use-autosave-CSUjUglY.js → use-autosave-DGu11Mbg.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-BY-tUedz.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-COqGCuVV.js → use-chat-layout-state-SqWJFsf3.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-BwV4F0O9.js → use-cms-publish-actions-XDOPUQHc.js} +3 -3
  304. package/dist/client/assets/{use-connect-companion-BhuBsXQo.js → use-connect-companion-B3czJAuB.js} +1 -1
  305. package/dist/client/assets/use-connection-BQ2tY3eA.js +1 -0
  306. package/dist/client/assets/{use-content-sync-sIXdICgs.js → use-content-sync-fcT1LgMa.js} +1 -1
  307. package/dist/client/assets/{use-copy-D-EOd5RI.js → use-copy-8YzW6-lz.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-DXTlo7HL.js → use-date-fns-locale-PI2Bl-dF.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-Ah58n7xN.js → use-debounced-autosave-BcrhTA1Q.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-8OKqfUuy.js → use-debounced-value-BTFyu_fg.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-DV2KUq3D.js → use-deco-credits-DT_w_P1F.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-CuinN1iK.js → use-decopilot-events-Cgg-kjzY.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-B-VzkPwb.js → use-delete-connection-B-NX9bKA.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-CE6RFF-x.js → use-deployment-admin-59-ElZAe.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-BsP1ZFGQ.js → use-entitlements-DLe5ef_A.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-BfYOm91V.js → use-fast-preview-draft-url-D1k789oB.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-BTHP9YUm.js → use-file-configs-BpNaWDSz.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-CzcA3Fgb.js → use-id-selection-ouzPuXIU.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-Bh-qnCwx.js → use-inbox-feed-ClYflJTd.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-xgBjudJA.js → use-infinite-scroll-BgEfhgKU.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-VyWhRMSX.js → use-join-requests-BUkPdRUf.js} +1 -1
  322. package/dist/client/assets/use-main-panel-tabs-DvzXIGUh.js +1 -0
  323. package/dist/client/assets/{use-mcp-auth-status-CCwaj4pF.js → use-mcp-auth-status-D-uKGgD8.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-Ch_pgKFL.js → use-mcp-client-DwDMU7Zt.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-M3rH9N-2.js → use-mcp-prompts-C6NWo9MQ.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-BAO0S55a.js → use-mcp-tools-DZaATGrv.js} +1 -1
  327. package/dist/client/assets/{use-mobile-ye6iRWDK.js → use-mobile-BGUAkmF8.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-Gvsecy1g.js → use-move-blocks-CC7bxDZW.js} +1 -1
  329. package/dist/client/assets/use-navigate-to-agent-DgVOA-5d.js +1 -0
  330. package/dist/client/assets/{use-org-fs-DKzRfuIW.js → use-org-fs-DunUzjbR.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-Cj0yTqTx.js → use-org-repo-syncs-DrOMrEnQ.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-BxORdMDV.js → use-org-sso-bHD0WS2b.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-BQAdDt_y.js → use-organization-settings-CPT_AQxx.js} +1 -1
  334. package/dist/client/assets/{use-project-native-view-presence-CMhFGTuR.js → use-project-native-view-presence-1t6Rz_Yq.js} +1 -1
  335. package/dist/client/assets/{use-project-scope-CT4H1KgC.js → use-project-scope-DZ381aQg.js} +1 -1
  336. package/dist/client/assets/{use-recent-apps-CbbMz9JX.js → use-recent-apps-CMUESJxc.js} +1 -1
  337. package/dist/client/assets/{use-reports-diagnostic-DrVbktZZ.js → use-reports-diagnostic-Rl_4afQa.js} +1 -1
  338. package/dist/client/assets/{use-sandbox-events-DEsMUhZf.js → use-sandbox-events-C4Btxk0W.js} +1 -1
  339. package/dist/client/assets/{use-secrets-BS4OhqRX.js → use-secrets-DWea_YYg.js} +1 -1
  340. package/dist/client/assets/{use-section-preview-base-DRm79v_2.js → use-section-preview-base-C5OIxUQk.js} +1 -1
  341. package/dist/client/assets/{use-sidebar-collapsed-BJ9DvrgE.js → use-sidebar-collapsed-DwaUZcOQ.js} +1 -1
  342. package/dist/client/assets/{use-tags-CWUQFfwf.js → use-tags-CnnPBapF.js} +1 -1
  343. package/dist/client/assets/{use-task-board-analytics-DRF7V1gC.js → use-task-board-analytics-BCEU5OIE.js} +1 -1
  344. package/dist/client/assets/{use-task-board-events-D_nE-0RI.js → use-task-board-events-C0YoK98Y.js} +1 -1
  345. package/dist/client/assets/{use-task-board-item-prs-CMNSM7NS.js → use-task-board-item-prs-DHx4WnJL.js} +1 -1
  346. package/dist/client/assets/{use-task-board-items-BhqAiSTX.js → use-task-board-items-Gk66Irve.js} +1 -1
  347. package/dist/client/assets/{use-task-board-prompts-r37U5HHf.js → use-task-board-prompts-_ANJzZ4J.js} +1 -1
  348. package/dist/client/assets/{use-task-metadata-CpdEm_Eq.js → use-task-metadata-DJcBNC2v.js} +1 -1
  349. package/dist/client/assets/{use-thread-outputs-BCCXEsgi.js → use-thread-outputs-sLAJub_R.js} +1 -1
  350. package/dist/client/assets/{use-voice-input-CaKlieI0.js → use-voice-input-CxbYDlyj.js} +1 -1
  351. package/dist/client/assets/useInfiniteQuery-B3K8Xwsj.js +1 -0
  352. package/dist/client/assets/{useQueries-DWMnudrU.js → useQueries-mzrH2emD.js} +1 -1
  353. package/dist/client/assets/useSuspenseInfiniteQuery-DMjSwk6C.js +1 -0
  354. package/dist/client/assets/{users-Ct8iD2nc.js → users-Bu6Qt6s2.js} +1 -1
  355. package/dist/client/assets/{utils-B4FS_bBy.js → utils-DM_dS343.js} +1 -1
  356. package/dist/client/assets/{variant-calendar-By_yM7B4.js → variant-calendar-CTxdQFVd.js} +1 -1
  357. package/dist/client/assets/{variant-matcher-override-DQF4FE1V.js → variant-matcher-override-BVs7zu47.js} +1 -1
  358. package/dist/client/assets/{view-header-Cv_9dvGb.js → view-header-p1uaKDV9.js} +1 -1
  359. package/dist/client/assets/{virtual-mcp-DzM6ah-n.js → virtual-mcp-C1hB0s55.js} +1 -1
  360. package/dist/client/assets/{watch-sse-pool-DPXy7vY-.js → watch-sse-pool-xnhJvZvd.js} +1 -1
  361. package/dist/client/index.html +1 -1
  362. package/dist/server/server.js +676 -676
  363. package/package.json +1 -1
  364. package/dist/client/assets/ReferenceLine-DTFZ8A_b.js +0 -1
  365. package/dist/client/assets/agent-app-Cj_RWyLT.js +0 -1
  366. package/dist/client/assets/agent-deck-DPIGRh0M.js +0 -1
  367. package/dist/client/assets/agent-experiments-CCFPdPhX.js +0 -1
  368. package/dist/client/assets/agent-library-CziMMPAP.js +0 -1
  369. package/dist/client/assets/agent-library-file-Bl2JiaxW.js +0 -1
  370. package/dist/client/assets/agent-overview-CCjalTIF.js +0 -1
  371. package/dist/client/assets/agent-settings-CLD9LbBl.js +0 -1
  372. package/dist/client/assets/agent-site-editor-code-CvwSMvs6.js +0 -2
  373. package/dist/client/assets/agent-site-editor-content-CyqRl7Mo.js +0 -1
  374. package/dist/client/assets/agent-site-editor-preview-BZ6vFBEq.js +0 -1
  375. package/dist/client/assets/agent-view-0jyw-9ou.js +0 -1
  376. package/dist/client/assets/api-keys-BDo54WOl.js +0 -1
  377. package/dist/client/assets/blocks-tab-states-Bf5o8VNw.js +0 -1
  378. package/dist/client/assets/chart-BtV3lIyv.js +0 -13
  379. package/dist/client/assets/cms-store-drafts-gAOezeiH.js +0 -1
  380. package/dist/client/assets/library-L-o62vZM.js +0 -1
  381. package/dist/client/assets/project-app-view-J0Hex_YV.js +0 -1
  382. package/dist/client/assets/project-reports-C2YJUhOx.js +0 -1
  383. package/dist/client/assets/project-tasks-RuOnvKJR.js +0 -1
  384. package/dist/client/assets/reports-CpJEGryk.js +0 -1
  385. package/dist/client/assets/repositories-C4iLn-xt.js +0 -1
  386. package/dist/client/assets/route-BEz3Pav8.js +0 -1
  387. package/dist/client/assets/settings-tab-W8DgvzPC.js +0 -1
  388. package/dist/client/assets/site-editor-DNhcEXBI.js +0 -1
  389. package/dist/client/assets/site-editor-toast-GFZxIyjf.js +0 -1
  390. package/dist/client/assets/suggestion-R4Fq_9Vs.js +0 -2
  391. package/dist/client/assets/tasks-CKan_WUB.js +0 -1
  392. package/dist/client/assets/use-ask-in-chat-DaKY6vDh.js +0 -1
  393. package/dist/client/assets/use-blocks-v8-project-BM6s65-m.js +0 -1
  394. package/dist/client/assets/use-connection-D5sijlzo.js +0 -1
  395. package/dist/client/assets/use-main-panel-tabs-DGfwa0le.js +0 -1
  396. package/dist/client/assets/use-navigate-to-agent-jetKe7lC.js +0 -1
  397. package/dist/client/assets/useInfiniteQuery-DmLlHKe0.js +0 -1
  398. package/dist/client/assets/useSuspenseInfiniteQuery-B6k_dV9w.js +0 -1
@@ -1,13 +0,0 @@
1
- import{r as S,fE as de,ge,dF as V,fi as L,c as Kn,m as Z,j as k}from"./index-BYLma6nR.js";import{aq as iu,ar as Ce,$ as jn,as as Bn,at as ou,N as aa,c as X,A as su,au as uu,o as ue,av as cu,aw as ae,ax as ie,ay as gs,az as _s,aA as xs,aB as lu,aC as fu,aD as ia,aE as du,aF as oa,aG as vu,L as Oe,aH as hu,B as pu,aI as ws,R as yu,aJ as bu,aK as mu,Z as $n,D as Gn,z as Ss,H as gu,aL as _u,aM as xu,E as wu,F as qe,h as Os,Q as qs,a1 as Su,X as Ps,aN as Ou,aO as qu,aP as sa,I as Pu,J as Au,M as W,Y as Iu,aQ as Tu,C as Cu,T as Ru,aR as Eu,O as ua,ae as ju}from"./CategoricalChart-C7-Bo6NS.js";import{S as Bu,C as Du,u as As,a as Is,b as Ts}from"./tooltipContext-6k_VEZRX.js";import{s as Q,a as ee,u as Nu,G as Mu,b as ku}from"./CartesianChart-CR71csgM.js";import"./index-DNAVFVoL.js";var ca=(r,e,t)=>{var n=t??r;if(!Ce(n))return jn(n,e,0)},Lu=(r,e,t)=>{var n={},a=r.filter(iu),i=r.filter(c=>c.stackId==null),o=a.reduce((c,l)=>{var f=c[l.stackId];return f==null&&(f=[]),f.push(l),c[l.stackId]=f,c},n),s=Object.entries(o).map(c=>{var l,[f,v]=c,p=v.map(d=>d.dataKey),m=ca(e,t,(l=v[0])===null||l===void 0?void 0:l.barSize);return{stackId:f,dataKeys:p,barSize:m}}),u=i.map(c=>{var l=[c.dataKey].filter(v=>v!=null),f=ca(e,t,c.barSize);return{stackId:void 0,dataKeys:l,barSize:f}});return[...s,...u]};function la(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function _e(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?la(Object(t),!0).forEach(function(n){Fu(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):la(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Fu(r,e,t){return(e=Ku(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ku(r){var e=$u(r,"string");return typeof e=="symbol"?e:e+""}function $u(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Gu(r,e,t,n,a){var i,o=n.length;if(!(o<1)){var s=jn(r,t,0,!0),u,c=[];if(Bn((i=n[0])===null||i===void 0?void 0:i.barSize)){var l=!1,f=t/o,v=n.reduce((h,x)=>h+(x.barSize||0),0);v+=(o-1)*s,v>=t&&(v-=(o-1)*s,s=0),v>=t&&f>0&&(l=!0,f*=.9,v=o*f);var p=(t-v)/2>>0,m={offset:p-s,size:0};u=n.reduce((h,x)=>{var g,A={stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:m.offset+m.size+s,size:l?f:(g=x.barSize)!==null&&g!==void 0?g:0}},w=[...h,A];return m=A.position,w},c)}else{var d=jn(e,t,0,!0);t-2*d-(o-1)*s<=0&&(s=0);var b=(t-2*d-(o-1)*s)/o;b>1&&(b>>=0);var y=Bn(a)?Math.min(b,a):b;u=n.reduce((h,x,g)=>[...h,{stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:d+(b+s)*g+(b-y)/2,size:y}}],c)}return u}}var Hu=(r,e,t,n,a,i,o)=>{var s=Ce(o)?e:o,u=Gu(t,n,a!==i?a:i,r,s);return a!==i&&u!=null&&(u=u.map(c=>_e(_e({},c),{},{position:_e(_e({},c.position),{},{offset:c.position.offset-a/2})}))),u},zu=(r,e)=>{var t=ou(e);if(!(!r||t==null||e==null)){var{stackId:n}=e;if(n!=null){var a=r[n];if(a){var{stackedData:i}=a;if(i)return i.find(o=>o.key===t)}}}},Wu=(r,e)=>{if(!(r==null||e==null)){var t=r.find(n=>n.stackId===e.stackId&&e.dataKey!=null&&n.dataKeys.includes(e.dataKey));if(t!=null)return t.position}};function Uu(r,e){return r&&typeof r=="object"&&"zIndex"in r&&typeof r.zIndex=="number"&&Bn(r.zIndex)?r.zIndex:e}var Vu=["children"];function Xu(r,e){if(r==null)return{};var t,n,a=Yu(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(a[t]=r[t])}return a}function Yu(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}var Ju={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Zu=S.createContext(Ju);function Qu(r){var{children:e}=r,t=Xu(r,Vu);return S.createElement(Zu.Provider,{value:t},e)}var ec="Invariant failed";function rc(r,e){throw new Error(ec)}function Dn(){return Dn=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Dn.apply(null,arguments)}function Hn(r){return S.createElement(Bu,Dn({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},r))}var tc=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,a)=>{if(aa(e))return e;var i=aa(n)||Ce(n);return i?e(n,a):(i||rc(),t)}},nc=(r,e,t)=>t,ac=(r,e)=>e,ye=X([_s,ac],(r,e)=>r.filter(t=>t.type==="bar").find(t=>t.id===e)),ic=X([ye],r=>r?.maxBarSize),oc=(r,e,t,n)=>n,sc=X([ue,_s,Q,ee,nc],(r,e,t,n,a)=>e.filter(i=>r==="horizontal"?i.xAxisId===t:i.yAxisId===n).filter(i=>i.isPanorama===a).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),uc=(r,e,t)=>{var n=ue(r),a=Q(r,e),i=ee(r,e);if(!(a==null||i==null))return n==="horizontal"?ia(r,"yAxis",i,t):ia(r,"xAxis",a,t)},cc=(r,e)=>{var t=ue(r),n=Q(r,e),a=ee(r,e);if(!(n==null||a==null))return t==="horizontal"?oa(r,"xAxis",n):oa(r,"yAxis",a)},lc=X([sc,du,cc],Lu),fc=(r,e,t)=>{var n,a,i=ye(r,e);if(i==null)return 0;var o=Q(r,e),s=ee(r,e);if(o==null||s==null)return 0;var u=ue(r),c=xs(r),{maxBarSize:l}=i,f=Ce(l)?c:l,v,p;return u==="horizontal"?(v=ae(r,"xAxis",o,t),p=ie(r,"xAxis",o,t)):(v=ae(r,"yAxis",s,t),p=ie(r,"yAxis",s,t)),(n=(a=gs(v,p,!0))!==null&&a!==void 0?a:f)!==null&&n!==void 0?n:0},Cs=(r,e,t)=>{var n=ue(r),a=Q(r,e),i=ee(r,e);if(!(a==null||i==null)){var o,s;return n==="horizontal"?(o=ae(r,"xAxis",a,t),s=ie(r,"xAxis",a,t)):(o=ae(r,"yAxis",i,t),s=ie(r,"yAxis",i,t)),gs(o,s)}},dc=X([lc,xs,lu,fu,fc,Cs,ic],Hu),vc=(r,e,t)=>{var n=Q(r,e);if(n!=null)return ae(r,"xAxis",n,t)},hc=(r,e,t)=>{var n=ee(r,e);if(n!=null)return ae(r,"yAxis",n,t)},pc=(r,e,t)=>{var n=Q(r,e);if(n!=null)return ie(r,"xAxis",n,t)},yc=(r,e,t)=>{var n=ee(r,e);if(n!=null)return ie(r,"yAxis",n,t)},bc=X([dc,ye],Wu),mc=X([uc,ye],zu),gc=X([su,uu,vc,hc,pc,yc,bc,ue,cu,Cs,mc,ye,oc],(r,e,t,n,a,i,o,s,u,c,l,f,v)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:d}=u;if(!(f==null||o==null||e==null||s!=="horizontal"&&s!=="vertical"||t==null||n==null||a==null||i==null||c==null)){var{data:b}=f,y;if(b!=null&&b.length>0?y=b:y=p?.slice(m,d+1),y!=null)return Uc({layout:s,barSettings:f,pos:o,parentViewBox:e,bandSize:c,xAxis:t,yAxis:n,xAxisTicks:a,yAxisTicks:i,stackedData:l,displayedData:y,offset:r,cells:v,dataStartIndex:m})}}),_c=["index"];function Nn(){return Nn=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Nn.apply(null,arguments)}function xc(r,e){if(r==null)return{};var t,n,a=wc(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(a[t]=r[t])}return a}function wc(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}var Rs=S.createContext(void 0),Sc=r=>{var e=S.useContext(Rs);if(e!=null)return e.stackId;if(r!=null)return vu(r)},Oc=(r,e)=>"recharts-bar-stack-clip-path-".concat(r,"-").concat(e),qc=r=>{var e=S.useContext(Rs);if(e!=null){var{stackId:t}=e;return"url(#".concat(Oc(t,r),")")}},Es=r=>{var{index:e}=r,t=xc(r,_c),n=qc(e);return S.createElement(Oe,Nn({className:"recharts-bar-stack-layer",clipPath:n},t))},Pc=["onMouseEnter","onMouseLeave","onClick"],Ac=["value","background","tooltipPosition"],Ic=["id"],Tc=["onMouseEnter","onClick","onMouseLeave"];function U(){return U=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},U.apply(null,arguments)}function fa(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function F(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fa(Object(t),!0).forEach(function(n){Cc(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fa(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Cc(r,e,t){return(e=Rc(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Rc(r){var e=Ec(r,"string");return typeof e=="symbol"?e:e+""}function Ec(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Pe(r,e){if(r==null)return{};var t,n,a=jc(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(a[t]=r[t])}return a}function jc(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}var Bc=r=>{var{dataKey:e,name:t,fill:n,legendType:a,hide:i}=r;return[{inactive:i,dataKey:e,type:a,color:n,value:Ss(t,e),payload:r}]},Dc=S.memo(r=>{var{dataKey:e,stroke:t,strokeWidth:n,fill:a,name:i,hide:o,unit:s,tooltipType:u,id:c}=r,l={dataDefinedOnItem:void 0,getPosition:_u,settings:{stroke:t,strokeWidth:n,fill:a,dataKey:e,nameKey:void 0,name:Ss(i,e),hide:o,type:u,color:a,unit:s,graphicalItemId:c}};return S.createElement(gu,{tooltipEntrySettings:l})});function Nc(r){var e=qe(qs),{data:t,dataKey:n,background:a,allOtherBarProps:i}=r,{onMouseEnter:o,onMouseLeave:s,onClick:u}=i,c=Pe(i,Pc),l=As(o,n,i.id),f=Is(s),v=Ts(u,n,i.id);if(!a||t==null)return null;var p=Su(a);return S.createElement($n,{zIndex:Uu(a,Gn.barBackground)},t.map((m,d)=>{var{value:b,background:y,tooltipPosition:h}=m,x=Pe(m,Ac);if(!y)return null;var g=l(m,d),A=f(m,d),w=v(m,d),_=F(F(F(F(F({option:a,isActive:String(d)===e},x),{},{fill:"#eee"},y),p),Ps(c,m,d)),{},{onMouseEnter:g,onMouseLeave:A,onClick:w,dataKey:n,index:d,className:"recharts-bar-background-rectangle"});return S.createElement(Hn,U({key:"background-bar-".concat(d)},_))}))}function Mc(r){var{showLabels:e,children:t,rects:n}=r,a=n?.map(i=>{var o={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return F(F({},o),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:o,fill:i.fill})});return S.createElement(Tu,{value:e?a:void 0},t)}function kc(r){var{shape:e,activeBar:t,baseProps:n,entry:a,index:i,dataKey:o}=r,s=qe(qs),u=qe(Ru),c=t&&String(a.originalDataIndex)===s&&(u==null||o===u),[l,f]=S.useState(!1),[v,p]=S.useState(!1);S.useEffect(()=>{var x;return c?(f(!0),x=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(x)}},[c]);var m=S.useCallback(()=>{c||f(!1)},[c]),d=c&&v,b=c||l,y;c?t===!0?y=e:y=t:y=e;var h=S.createElement(Hn,U({},n,{name:String(n.name)},a,{isActive:d,option:y,index:i,dataKey:o,onTransitionEnd:m}));return b?S.createElement($n,{zIndex:Gn.activeBar},S.createElement(Es,{index:a.originalDataIndex},h)):h}function Lc(r){var{shape:e,baseProps:t,entry:n,index:a,dataKey:i}=r;return S.createElement(Hn,U({},t,{name:String(t.name)},n,{isActive:!1,option:e,index:a,dataKey:i}))}function Fc(r){var e,{data:t,props:n}=r,a=(e=Cu(n))!==null&&e!==void 0?e:{},{id:i}=a,o=Pe(a,Ic),{shape:s,dataKey:u,activeBar:c}=n,{onMouseEnter:l,onClick:f,onMouseLeave:v}=n,p=Pe(n,Tc),m=As(l,u,i),d=Is(v),b=Ts(f,u,i);return t?S.createElement(S.Fragment,null,t.map((y,h)=>S.createElement(Es,U({index:y.originalDataIndex,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(h),className:"recharts-bar-rectangle"},Ps(p,y,h),{onMouseEnter:m(y,h),onMouseLeave:d(y,h),onClick:b(y,h)}),c?S.createElement(kc,{shape:s,activeBar:c,baseProps:o,entry:y,index:h,dataKey:u}):S.createElement(Lc,{shape:s,baseProps:o,entry:y,index:h,dataKey:u})))):null}function Kc(r){var{props:e,previousRectanglesRef:t}=r,{data:n,layout:a,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:u,onAnimationEnd:c,onAnimationStart:l}=e,f=t.current,v=Pu(e,"recharts-bar-"),[p,m]=S.useState(!1),d=!p,b=S.useCallback(()=>{typeof c=="function"&&c(),m(!1)},[c]),y=S.useCallback(()=>{typeof l=="function"&&l(),m(!0)},[l]);return S.createElement(Mc,{showLabels:d,rects:n},S.createElement(Au,{animationId:v,begin:o,duration:s,isActive:i,easing:u,onAnimationEnd:b,onAnimationStart:y,key:v},h=>{var x=h===1?n:n?.map((g,A)=>{var w=f&&f[A];if(w)return F(F({},g),{},{x:W(w.x,g.x,h),y:W(w.y,g.y,h),width:W(w.width,g.width,h),height:W(w.height,g.height,h)});if(a==="horizontal"){var _=W(0,g.height,h),I=W(g.stackedBarStart,g.y,h);return F(F({},g),{},{y:I,height:_})}var C=W(0,g.width,h),R=W(g.stackedBarStart,g.x,h);return F(F({},g),{},{width:C,x:R})});return h>0&&(t.current=x??null),x==null?null:S.createElement(Oe,null,S.createElement(Fc,{props:e,data:x}))}),S.createElement(Iu,{label:e.label}),e.children)}function $c(r){var e=S.useRef(null);return S.createElement(Kc,{previousRectanglesRef:e,props:r})}var js=0,Gc=(r,e)=>{var t=Array.isArray(r.value)?r.value[1]:r.value;return{x:r.x,y:r.y,value:t,errorVal:Os(r,e)}};class Hc extends S.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:a,xAxisId:i,yAxisId:o,needClip:s,background:u,id:c}=this.props;if(e||t==null)return null;var l=de("recharts-bar",a),f=c;return S.createElement(Oe,{className:l,id:c},s&&S.createElement("defs",null,S.createElement(Mu,{clipPathId:f,xAxisId:i,yAxisId:o})),S.createElement(Oe,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},S.createElement(Nc,{data:t,dataKey:n,background:u,allOtherBarProps:this.props}),S.createElement($c,this.props)))}}var zc={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:js,xAxisId:0,yAxisId:0,zIndex:Gn.bar};function Wc(r){var{xAxisId:e,yAxisId:t,hide:n,legendType:a,minPointSize:i,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l}=r,{needClip:f}=Nu(e,t),v=xu(),p=ws(),m=wu(r.children,Du),d=qe(h=>gc(h,r.id,p,m));if(v!=="vertical"&&v!=="horizontal")return null;var b,y=d?.[0];return y==null||y.height==null||y.width==null?b=0:b=v==="vertical"?y.height/2:y.width/2,S.createElement(Qu,{xAxisId:e,yAxisId:t,data:d,dataPointFormatter:Gc,errorBarOffset:b},S.createElement(Hc,U({},r,{layout:v,needClip:f,data:d,xAxisId:e,yAxisId:t,hide:n,legendType:a,minPointSize:i,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l})))}function Uc(r){var{layout:e,barSettings:{dataKey:t,minPointSize:n,hasCustomShape:a},pos:i,bandSize:o,xAxis:s,yAxis:u,xAxisTicks:c,yAxisTicks:l,stackedData:f,displayedData:v,offset:p,cells:m,parentViewBox:d,dataStartIndex:b}=r,y=e==="horizontal"?u:s,h=f?y.scale.domain():null,x=Ou({numericAxis:y}),g=y.scale.map(x);return v.map((A,w)=>{var _,I,C,R,O,B;if(f){var q=f[w+b];if(q==null)return null;_=qu(q,h)}else _=Os(A,t),Array.isArray(_)||(_=[x,_]);var P=tc(n,js)(_[1],w);if(e==="horizontal"){var T,E=u.scale.map(_[0]),j=u.scale.map(_[1]);if(E==null||j==null)return null;I=sa({axis:s,ticks:c,bandSize:o,offset:i.offset,entry:A,index:w}),C=(T=j??E)!==null&&T!==void 0?T:void 0,R=i.size;var D=E-j;if(O=Eu(D)?0:D,B={x:I,y:p.top,width:R,height:p.height},Math.abs(P)>0&&Math.abs(O)<Math.abs(P)){var $=ua(O||P)*(Math.abs(P)-Math.abs(O));C-=$,O+=$}}else{var N=s.scale.map(_[0]),M=s.scale.map(_[1]);if(N==null||M==null)return null;if(I=N,C=sa({axis:u,ticks:l,bandSize:o,offset:i.offset,entry:A,index:w}),R=M-N,O=i.size,B={x:p.left,y:C,width:p.width,height:O},Math.abs(P)>0&&Math.abs(R)<Math.abs(P)){var K=ua(R||P)*(Math.abs(P)-Math.abs(R));R+=K}}if(I==null||C==null||R==null||O==null||!a&&(R===0||O===0))return null;var J=F(F({},A),{},{stackedBarStart:g,x:I,y:C,width:R,height:O,value:f?_:_[1],payload:A,background:B,tooltipPosition:{x:I+R/2,y:C+O/2},parentViewBox:d,originalDataIndex:w},m&&m[w]&&m[w].props);return J}).filter(Boolean)}function Vc(r){var e=pu(r,zc),t=Sc(e.stackId),n=ws();return S.createElement(yu,{id:e.id,type:"bar"},a=>S.createElement(S.Fragment,null,S.createElement(bu,{legendPayload:Bc(e)}),S.createElement(Dc,{dataKey:e.dataKey,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:a}),S.createElement(mu,{type:"bar",id:a,data:void 0,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,stackId:t,hide:e.hide,barSize:e.barSize,minPointSize:e.minPointSize,maxBarSize:e.maxBarSize,isPanorama:n,hasCustomShape:e.shape!=null}),S.createElement($n,{zIndex:e.zIndex},S.createElement(Wc,U({},e,{id:a})))))}var Xc=S.memo(Vc,hu);Xc.displayName="Bar";var Yc=["axis","item"],mv=S.forwardRef((r,e)=>S.createElement(ku,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Yc,tooltipPayloadSearcher:ju,categoricalChartProps:r,ref:e})),ke,da;function G(){if(da)return ke;da=1;var r=Array.isArray;return ke=r,ke}var Le,va;function Bs(){if(va)return Le;va=1;var r=typeof ge=="object"&&ge&&ge.Object===Object&&ge;return Le=r,Le}var Fe,ha;function z(){if(ha)return Fe;ha=1;var r=Bs(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Fe=t,Fe}var Ke,pa;function be(){if(pa)return Ke;pa=1;var r=z(),e=r.Symbol;return Ke=e,Ke}var $e,ya;function Jc(){if(ya)return $e;ya=1;var r=be(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var s=t.call(o,a),u=o[a];try{o[a]=void 0;var c=!0}catch{}var l=n.call(o);return c&&(s?o[a]=u:delete o[a]),l}return $e=i,$e}var Ge,ba;function Zc(){if(ba)return Ge;ba=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ge=t,Ge}var He,ma;function re(){if(ma)return He;ma=1;var r=be(),e=Jc(),t=Zc(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?e(s):t(s)}return He=o,He}var ze,ga;function te(){if(ga)return ze;ga=1;function r(e){return e!=null&&typeof e=="object"}return ze=r,ze}var We,_a;function me(){if(_a)return We;_a=1;var r=re(),e=te(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return We=n,We}var Ue,xa;function zn(){if(xa)return Ue;xa=1;var r=G(),e=me(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return Ue=a,Ue}var Ve,wa;function Y(){if(wa)return Ve;wa=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ve=r,Ve}var Xe,Sa;function Wn(){if(Sa)return Xe;Sa=1;var r=re(),e=Y(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!e(s))return!1;var u=r(s);return u==n||u==a||u==t||u==i}return Xe=o,Xe}var Ye,Oa;function Qc(){if(Oa)return Ye;Oa=1;var r=z(),e=r["__core-js_shared__"];return Ye=e,Ye}var Je,qa;function el(){if(qa)return Je;qa=1;var r=Qc(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return Je=t,Je}var Ze,Pa;function Ds(){if(Pa)return Ze;Pa=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Ze=t,Ze}var Qe,Aa;function rl(){if(Aa)return Qe;Aa=1;var r=Wn(),e=el(),t=Y(),n=Ds(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,l=RegExp("^"+u.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(v){if(!t(v)||e(v))return!1;var p=r(v)?l:i;return p.test(n(v))}return Qe=f,Qe}var er,Ia;function tl(){if(Ia)return er;Ia=1;function r(e,t){return e?.[t]}return er=r,er}var rr,Ta;function ne(){if(Ta)return rr;Ta=1;var r=rl(),e=tl();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return rr=t,rr}var tr,Ca;function Re(){if(Ca)return tr;Ca=1;var r=ne(),e=r(Object,"create");return tr=e,tr}var nr,Ra;function nl(){if(Ra)return nr;Ra=1;var r=Re();function e(){this.__data__=r?r(null):{},this.size=0}return nr=e,nr}var ar,Ea;function al(){if(Ea)return ar;Ea=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return ar=r,ar}var ir,ja;function il(){if(ja)return ir;ja=1;var r=Re(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var s=o[i];return s===e?void 0:s}return n.call(o,i)?o[i]:void 0}return ir=a,ir}var or,Ba;function ol(){if(Ba)return or;Ba=1;var r=Re(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return or=n,or}var sr,Da;function sl(){if(Da)return sr;Da=1;var r=Re(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return sr=t,sr}var ur,Na;function ul(){if(Na)return ur;Na=1;var r=nl(),e=al(),t=il(),n=ol(),a=sl();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,ur=i,ur}var cr,Ma;function cl(){if(Ma)return cr;Ma=1;function r(){this.__data__=[],this.size=0}return cr=r,cr}var lr,ka;function Un(){if(ka)return lr;ka=1;function r(e,t){return e===t||e!==e&&t!==t}return lr=r,lr}var fr,La;function Ee(){if(La)return fr;La=1;var r=Un();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return fr=e,fr}var dr,Fa;function ll(){if(Fa)return dr;Fa=1;var r=Ee(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():t.call(i,o,1),--this.size,!0}return dr=n,dr}var vr,Ka;function fl(){if(Ka)return vr;Ka=1;var r=Ee();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return vr=e,vr}var hr,$a;function dl(){if($a)return hr;$a=1;var r=Ee();function e(t){return r(this.__data__,t)>-1}return hr=e,hr}var pr,Ga;function vl(){if(Ga)return pr;Ga=1;var r=Ee();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return pr=e,pr}var yr,Ha;function je(){if(Ha)return yr;Ha=1;var r=cl(),e=ll(),t=fl(),n=dl(),a=vl();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,yr=i,yr}var br,za;function Vn(){if(za)return br;za=1;var r=ne(),e=z(),t=r(e,"Map");return br=t,br}var mr,Wa;function hl(){if(Wa)return mr;Wa=1;var r=ul(),e=je(),t=Vn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return mr=n,mr}var gr,Ua;function pl(){if(Ua)return gr;Ua=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return gr=r,gr}var _r,Va;function Be(){if(Va)return _r;Va=1;var r=pl();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return _r=e,_r}var xr,Xa;function yl(){if(Xa)return xr;Xa=1;var r=Be();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return xr=e,xr}var wr,Ya;function bl(){if(Ya)return wr;Ya=1;var r=Be();function e(t){return r(this,t).get(t)}return wr=e,wr}var Sr,Ja;function ml(){if(Ja)return Sr;Ja=1;var r=Be();function e(t){return r(this,t).has(t)}return Sr=e,Sr}var Or,Za;function gl(){if(Za)return Or;Za=1;var r=Be();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Or=e,Or}var qr,Qa;function Xn(){if(Qa)return qr;Qa=1;var r=hl(),e=yl(),t=bl(),n=ml(),a=gl();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,qr=i,qr}var Pr,ei;function _l(){if(ei)return Pr;ei=1;var r=Xn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],u=i.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return i.cache=u.set(s,c)||u,c};return i.cache=new(t.Cache||r),i}return t.Cache=r,Pr=t,Pr}var Ar,ri;function xl(){if(ri)return Ar;ri=1;var r=_l(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Ar=t,Ar}var Ir,ti;function wl(){if(ti)return Ir;ti=1;var r=xl(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,s,u,c){i.push(u?c.replace(t,"$1"):s||o)}),i});return Ir=n,Ir}var Tr,ni;function Ns(){if(ni)return Tr;ni=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Tr=r,Tr}var Cr,ai;function Sl(){if(ai)return Cr;ai=1;var r=be(),e=Ns(),t=G(),n=me(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(t(s))return e(s,o)+"";if(n(s))return i?i.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Cr=o,Cr}var Rr,ii;function Ol(){if(ii)return Rr;ii=1;var r=Sl();function e(t){return t==null?"":r(t)}return Rr=e,Rr}var Er,oi;function Ms(){if(oi)return Er;oi=1;var r=G(),e=zn(),t=wl(),n=Ol();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return Er=a,Er}var jr,si;function De(){if(si)return jr;si=1;var r=me();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return jr=e,jr}var Br,ui;function Yn(){if(ui)return Br;ui=1;var r=Ms(),e=De();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return Br=t,Br}var Dr,ci;function ks(){if(ci)return Dr;ci=1;var r=Yn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return Dr=e,Dr}ks();var Nr,li;function ql(){if(li)return Nr;li=1;function r(e){return e==null}return Nr=r,Nr}var Pl=ql();const Al=V(Pl);var Mr,fi;function Il(){if(fi)return Mr;fi=1;var r=re(),e=G(),t=te(),n="[object String]";function a(i){return typeof i=="string"||!e(i)&&t(i)&&r(i)==n}return Mr=a,Mr}var Tl=Il();const Ls=V(Tl);var Cl=Wn();const Rl=V(Cl);Y();var kr,di;function Fs(){if(di)return kr;di=1;var r=re(),e=te(),t="[object Number]";function n(a){return typeof a=="number"||e(a)&&r(a)==t}return kr=n,kr}var Lr,vi;function El(){if(vi)return Lr;vi=1;var r=Fs();function e(t){return r(t)&&t!=+t}return Lr=e,Lr}var jl=El();const Bl=V(jl);var Dl=Fs();const Nl=V(Dl);var xe=function(e){return Ls(e)&&e.indexOf("%")===e.length-1},H=function(e){return Nl(e)&&!Bl(e)},Ae=function(e){return H(e)||Ls(e)},Ml=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Fr=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},Kr,hi;function kl(){if(hi)return Kr;hi=1;var r=je();function e(){this.__data__=new r,this.size=0}return Kr=e,Kr}var $r,pi;function Ll(){if(pi)return $r;pi=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return $r=r,$r}var Gr,yi;function Fl(){if(yi)return Gr;yi=1;function r(e){return this.__data__.get(e)}return Gr=r,Gr}var Hr,bi;function Kl(){if(bi)return Hr;bi=1;function r(e){return this.__data__.has(e)}return Hr=r,Hr}var zr,mi;function $l(){if(mi)return zr;mi=1;var r=je(),e=Vn(),t=Xn(),n=200;function a(i,o){var s=this.__data__;if(s instanceof r){var u=s.__data__;if(!e||u.length<n-1)return u.push([i,o]),this.size=++s.size,this;s=this.__data__=new t(u)}return s.set(i,o),this.size=s.size,this}return zr=a,zr}var Wr,gi;function Ks(){if(gi)return Wr;gi=1;var r=je(),e=kl(),t=Ll(),n=Fl(),a=Kl(),i=$l();function o(s){var u=this.__data__=new r(s);this.size=u.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,Wr=o,Wr}var Ur,_i;function Gl(){if(_i)return Ur;_i=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Ur=e,Ur}var Vr,xi;function Hl(){if(xi)return Vr;xi=1;function r(e){return this.__data__.has(e)}return Vr=r,Vr}var Xr,wi;function $s(){if(wi)return Xr;wi=1;var r=Xn(),e=Gl(),t=Hl();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Xr=n,Xr}var Yr,Si;function zl(){if(Si)return Yr;Si=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Yr=r,Yr}var Jr,Oi;function Gs(){if(Oi)return Jr;Oi=1;function r(e,t){return e.has(t)}return Jr=r,Jr}var Zr,qi;function Hs(){if(qi)return Zr;qi=1;var r=$s(),e=zl(),t=Gs(),n=1,a=2;function i(o,s,u,c,l,f){var v=u&n,p=o.length,m=s.length;if(p!=m&&!(v&&m>p))return!1;var d=f.get(o),b=f.get(s);if(d&&b)return d==s&&b==o;var y=-1,h=!0,x=u&a?new r:void 0;for(f.set(o,s),f.set(s,o);++y<p;){var g=o[y],A=s[y];if(c)var w=v?c(A,g,y,s,o,f):c(g,A,y,o,s,f);if(w!==void 0){if(w)continue;h=!1;break}if(x){if(!e(s,function(_,I){if(!t(x,I)&&(g===_||l(g,_,u,c,f)))return x.push(I)})){h=!1;break}}else if(!(g===A||l(g,A,u,c,f))){h=!1;break}}return f.delete(o),f.delete(s),h}return Zr=i,Zr}var Qr,Pi;function Wl(){if(Pi)return Qr;Pi=1;var r=z(),e=r.Uint8Array;return Qr=e,Qr}var et,Ai;function Ul(){if(Ai)return et;Ai=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return et=r,et}var rt,Ii;function Jn(){if(Ii)return rt;Ii=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return rt=r,rt}var tt,Ti;function Vl(){if(Ti)return tt;Ti=1;var r=be(),e=Wl(),t=Un(),n=Hs(),a=Ul(),i=Jn(),o=1,s=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",v="[object Number]",p="[object RegExp]",m="[object Set]",d="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",h="[object DataView]",x=r?r.prototype:void 0,g=x?x.valueOf:void 0;function A(w,_,I,C,R,O,B){switch(I){case h:if(w.byteLength!=_.byteLength||w.byteOffset!=_.byteOffset)return!1;w=w.buffer,_=_.buffer;case y:return!(w.byteLength!=_.byteLength||!O(new e(w),new e(_)));case u:case c:case v:return t(+w,+_);case l:return w.name==_.name&&w.message==_.message;case p:case d:return w==_+"";case f:var q=a;case m:var P=C&o;if(q||(q=i),w.size!=_.size&&!P)return!1;var T=B.get(w);if(T)return T==_;C|=s,B.set(w,_);var E=n(q(w),q(_),C,R,O,B);return B.delete(w),E;case b:if(g)return g.call(w)==g.call(_)}return!1}return tt=A,tt}var nt,Ci;function zs(){if(Ci)return nt;Ci=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return nt=r,nt}var at,Ri;function Xl(){if(Ri)return at;Ri=1;var r=zs(),e=G();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return at=t,at}var it,Ei;function Yl(){if(Ei)return it;Ei=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}return it=r,it}var ot,ji;function Jl(){if(ji)return ot;ji=1;function r(){return[]}return ot=r,ot}var st,Bi;function Zl(){if(Bi)return st;Bi=1;var r=Yl(),e=Jl(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(s){return n.call(o,s)}))}:e;return st=i,st}var ut,Di;function Ql(){if(Di)return ut;Di=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return ut=r,ut}var ct,Ni;function ef(){if(Ni)return ct;Ni=1;var r=re(),e=te(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return ct=n,ct}var lt,Mi;function Zn(){if(Mi)return lt;Mi=1;var r=ef(),e=te(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return lt=i,lt}var le={exports:{}},ft,ki;function rf(){if(ki)return ft;ki=1;function r(){return!1}return ft=r,ft}le.exports;var Li;function Ws(){return Li||(Li=1,(function(r,e){var t=z(),n=rf(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,s=o?t.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;r.exports=c})(le,le.exports)),le.exports}var dt,Fi;function Qn(){if(Fi)return dt;Fi=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return dt=t,dt}var vt,Ki;function ea(){if(Ki)return vt;Ki=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return vt=e,vt}var ht,$i;function tf(){if($i)return ht;$i=1;var r=re(),e=ea(),t=te(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",v="[object RegExp]",p="[object Set]",m="[object String]",d="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",h="[object Float32Array]",x="[object Float64Array]",g="[object Int8Array]",A="[object Int16Array]",w="[object Int32Array]",_="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",O={};O[h]=O[x]=O[g]=O[A]=O[w]=O[_]=O[I]=O[C]=O[R]=!0,O[n]=O[a]=O[b]=O[i]=O[y]=O[o]=O[s]=O[u]=O[c]=O[l]=O[f]=O[v]=O[p]=O[m]=O[d]=!1;function B(q){return t(q)&&e(q.length)&&!!O[r(q)]}return ht=B,ht}var pt,Gi;function Us(){if(Gi)return pt;Gi=1;function r(e){return function(t){return e(t)}}return pt=r,pt}var fe={exports:{}};fe.exports;var Hi;function nf(){return Hi||(Hi=1,(function(r,e){var t=Bs(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,s=(function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();r.exports=s})(fe,fe.exports)),fe.exports}var yt,zi;function Vs(){if(zi)return yt;zi=1;var r=tf(),e=Us(),t=nf(),n=t&&t.isTypedArray,a=n?e(n):r;return yt=a,yt}var bt,Wi;function af(){if(Wi)return bt;Wi=1;var r=Ql(),e=Zn(),t=G(),n=Ws(),a=Qn(),i=Vs(),o=Object.prototype,s=o.hasOwnProperty;function u(c,l){var f=t(c),v=!f&&e(c),p=!f&&!v&&n(c),m=!f&&!v&&!p&&i(c),d=f||v||p||m,b=d?r(c.length,String):[],y=b.length;for(var h in c)(l||s.call(c,h))&&!(d&&(h=="length"||p&&(h=="offset"||h=="parent")||m&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||a(h,y)))&&b.push(h);return b}return bt=u,bt}var mt,Ui;function of(){if(Ui)return mt;Ui=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return mt=e,mt}var gt,Vi;function sf(){if(Vi)return gt;Vi=1;function r(e,t){return function(n){return e(t(n))}}return gt=r,gt}var _t,Xi;function uf(){if(Xi)return _t;Xi=1;var r=sf(),e=r(Object.keys,Object);return _t=e,_t}var xt,Yi;function cf(){if(Yi)return xt;Yi=1;var r=of(),e=uf(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return xt=a,xt}var wt,Ji;function Ne(){if(Ji)return wt;Ji=1;var r=Wn(),e=ea();function t(n){return n!=null&&e(n.length)&&!r(n)}return wt=t,wt}var St,Zi;function ra(){if(Zi)return St;Zi=1;var r=af(),e=cf(),t=Ne();function n(a){return t(a)?r(a):e(a)}return St=n,St}var Ot,Qi;function lf(){if(Qi)return Ot;Qi=1;var r=Xl(),e=Zl(),t=ra();function n(a){return r(a,t,e)}return Ot=n,Ot}var qt,eo;function ff(){if(eo)return qt;eo=1;var r=lf(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,s,u,c,l){var f=s&e,v=r(i),p=v.length,m=r(o),d=m.length;if(p!=d&&!f)return!1;for(var b=p;b--;){var y=v[b];if(!(f?y in o:n.call(o,y)))return!1}var h=l.get(i),x=l.get(o);if(h&&x)return h==o&&x==i;var g=!0;l.set(i,o),l.set(o,i);for(var A=f;++b<p;){y=v[b];var w=i[y],_=o[y];if(u)var I=f?u(_,w,y,o,i,l):u(w,_,y,i,o,l);if(!(I===void 0?w===_||c(w,_,s,u,l):I)){g=!1;break}A||(A=y=="constructor")}if(g&&!A){var C=i.constructor,R=o.constructor;C!=R&&"constructor"in i&&"constructor"in o&&!(typeof C=="function"&&C instanceof C&&typeof R=="function"&&R instanceof R)&&(g=!1)}return l.delete(i),l.delete(o),g}return qt=a,qt}var Pt,ro;function df(){if(ro)return Pt;ro=1;var r=ne(),e=z(),t=r(e,"DataView");return Pt=t,Pt}var At,to;function vf(){if(to)return At;to=1;var r=ne(),e=z(),t=r(e,"Promise");return At=t,At}var It,no;function Xs(){if(no)return It;no=1;var r=ne(),e=z(),t=r(e,"Set");return It=t,It}var Tt,ao;function hf(){if(ao)return Tt;ao=1;var r=ne(),e=z(),t=r(e,"WeakMap");return Tt=t,Tt}var Ct,io;function pf(){if(io)return Ct;io=1;var r=df(),e=Vn(),t=vf(),n=Xs(),a=hf(),i=re(),o=Ds(),s="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",v="[object DataView]",p=o(r),m=o(e),d=o(t),b=o(n),y=o(a),h=i;return(r&&h(new r(new ArrayBuffer(1)))!=v||e&&h(new e)!=s||t&&h(t.resolve())!=c||n&&h(new n)!=l||a&&h(new a)!=f)&&(h=function(x){var g=i(x),A=g==u?x.constructor:void 0,w=A?o(A):"";if(w)switch(w){case p:return v;case m:return s;case d:return c;case b:return l;case y:return f}return g}),Ct=h,Ct}var Rt,oo;function yf(){if(oo)return Rt;oo=1;var r=Ks(),e=Hs(),t=Vl(),n=ff(),a=pf(),i=G(),o=Ws(),s=Vs(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",v=Object.prototype,p=v.hasOwnProperty;function m(d,b,y,h,x,g){var A=i(d),w=i(b),_=A?l:a(d),I=w?l:a(b);_=_==c?f:_,I=I==c?f:I;var C=_==f,R=I==f,O=_==I;if(O&&o(d)){if(!o(b))return!1;A=!0,C=!1}if(O&&!C)return g||(g=new r),A||s(d)?e(d,b,y,h,x,g):t(d,b,_,y,h,x,g);if(!(y&u)){var B=C&&p.call(d,"__wrapped__"),q=R&&p.call(b,"__wrapped__");if(B||q){var P=B?d.value():d,T=q?b.value():b;return g||(g=new r),x(P,T,y,h,g)}}return O?(g||(g=new r),n(d,b,y,h,x,g)):!1}return Rt=m,Rt}var Et,so;function Ys(){if(so)return Et;so=1;var r=yf(),e=te();function t(n,a,i,o,s){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,s)}return Et=t,Et}var jt,uo;function bf(){if(uo)return jt;uo=1;var r=Ks(),e=Ys(),t=1,n=2;function a(i,o,s,u){var c=s.length,l=c,f=!u;if(i==null)return!l;for(i=Object(i);c--;){var v=s[c];if(f&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++c<l;){v=s[c];var p=v[0],m=i[p],d=v[1];if(f&&v[2]){if(m===void 0&&!(p in i))return!1}else{var b=new r;if(u)var y=u(m,d,p,i,o,b);if(!(y===void 0?e(d,m,t|n,u,b):y))return!1}}return!0}return jt=a,jt}var Bt,co;function Js(){if(co)return Bt;co=1;var r=Y();function e(t){return t===t&&!r(t)}return Bt=e,Bt}var Dt,lo;function mf(){if(lo)return Dt;lo=1;var r=Js(),e=ra();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,r(s)]}return a}return Dt=t,Dt}var Nt,fo;function Zs(){if(fo)return Nt;fo=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return Nt=r,Nt}var Mt,vo;function gf(){if(vo)return Mt;vo=1;var r=bf(),e=mf(),t=Zs();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return Mt=n,Mt}var kt,ho;function _f(){if(ho)return kt;ho=1;function r(e,t){return e!=null&&t in Object(e)}return kt=r,kt}var Lt,po;function xf(){if(po)return Lt;po=1;var r=Ms(),e=Zn(),t=G(),n=Qn(),a=ea(),i=De();function o(s,u,c){u=r(u,s);for(var l=-1,f=u.length,v=!1;++l<f;){var p=i(u[l]);if(!(v=s!=null&&c(s,p)))break;s=s[p]}return v||++l!=f?v:(f=s==null?0:s.length,!!f&&a(f)&&n(p,f)&&(t(s)||e(s)))}return Lt=o,Lt}var Ft,yo;function wf(){if(yo)return Ft;yo=1;var r=_f(),e=xf();function t(n,a){return n!=null&&e(n,a,r)}return Ft=t,Ft}var Kt,bo;function Sf(){if(bo)return Kt;bo=1;var r=Ys(),e=ks(),t=wf(),n=zn(),a=Js(),i=Zs(),o=De(),s=1,u=2;function c(l,f){return n(l)&&a(f)?i(o(l),f):function(v){var p=e(v,l);return p===void 0&&p===f?t(v,l):r(f,p,s|u)}}return Kt=c,Kt}var $t,mo;function Me(){if(mo)return $t;mo=1;function r(e){return e}return $t=r,$t}var Gt,go;function Of(){if(go)return Gt;go=1;function r(e){return function(t){return t?.[e]}}return Gt=r,Gt}var Ht,_o;function qf(){if(_o)return Ht;_o=1;var r=Yn();function e(t){return function(n){return r(n,t)}}return Ht=e,Ht}var zt,xo;function Pf(){if(xo)return zt;xo=1;var r=Of(),e=qf(),t=zn(),n=De();function a(i){return t(i)?r(n(i)):e(i)}return zt=a,zt}var Wt,wo;function Qs(){if(wo)return Wt;wo=1;var r=gf(),e=Sf(),t=Me(),n=G(),a=Pf();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return Wt=i,Wt}var Ut,So;function Af(){if(So)return Ut;So=1;function r(e,t,n,a){for(var i=e.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(e[o],o,e))return o;return-1}return Ut=r,Ut}var Vt,Oo;function If(){if(Oo)return Vt;Oo=1;function r(e){return e!==e}return Vt=r,Vt}var Xt,qo;function Tf(){if(qo)return Xt;qo=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Xt=r,Xt}var Yt,Po;function Cf(){if(Po)return Yt;Po=1;var r=Af(),e=If(),t=Tf();function n(a,i,o){return i===i?t(a,i,o):r(a,e,o)}return Yt=n,Yt}var Jt,Ao;function Rf(){if(Ao)return Jt;Ao=1;var r=Cf();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Jt=e,Jt}var Zt,Io;function Ef(){if(Io)return Zt;Io=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Zt=r,Zt}var Qt,To;function jf(){if(To)return Qt;To=1;function r(){}return Qt=r,Qt}var en,Co;function Bf(){if(Co)return en;Co=1;var r=Xs(),e=jf(),t=Jn(),n=1/0,a=r&&1/t(new r([,-0]))[1]==n?function(i){return new r(i)}:e;return en=a,en}var rn,Ro;function Df(){if(Ro)return rn;Ro=1;var r=$s(),e=Rf(),t=Ef(),n=Gs(),a=Bf(),i=Jn(),o=200;function s(u,c,l){var f=-1,v=e,p=u.length,m=!0,d=[],b=d;if(l)m=!1,v=t;else if(p>=o){var y=c?null:a(u);if(y)return i(y);m=!1,v=n,b=new r}else b=c?[]:d;e:for(;++f<p;){var h=u[f],x=c?c(h):h;if(h=l||h!==0?h:0,m&&x===x){for(var g=b.length;g--;)if(b[g]===x)continue e;c&&b.push(x),d.push(h)}else v(b,x,l)||(b!==d&&b.push(x),d.push(h))}return d}return rn=s,rn}var tn,Eo;function Nf(){if(Eo)return tn;Eo=1;var r=Qs(),e=Df();function t(n,a){return n&&n.length?e(n,r(a,2)):[]}return tn=t,tn}var Mf=Nf();const jo=V(Mf);function kf(r,e,t){return e===!0?jo(r,t):Rl(e)?jo(r,e):r}var nn,Bo;function Lf(){if(Bo)return nn;Bo=1;var r=be(),e=Zn(),t=G(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return nn=a,nn}var an,Do;function Ff(){if(Do)return an;Do=1;var r=zs(),e=Lf();function t(n,a,i,o,s){var u=-1,c=n.length;for(i||(i=e),s||(s=[]);++u<c;){var l=n[u];a>0&&i(l)?a>1?t(l,a-1,i,o,s):r(s,l):o||(s[s.length]=l)}return s}return an=t,an}var on,No;function Kf(){if(No)return on;No=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),s=a(t),u=s.length;u--;){var c=s[e?u:++i];if(n(o[c],c,o)===!1)break}return t}}return on=r,on}var sn,Mo;function $f(){if(Mo)return sn;Mo=1;var r=Kf(),e=r();return sn=e,sn}var un,ko;function Gf(){if(ko)return un;ko=1;var r=$f(),e=ra();function t(n,a){return n&&r(n,a,e)}return un=t,un}var cn,Lo;function Hf(){if(Lo)return cn;Lo=1;var r=Ne();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,s=n?o:-1,u=Object(a);(n?s--:++s<o)&&i(u[s],s,u)!==!1;);return a}}return cn=e,cn}var ln,Fo;function zf(){if(Fo)return ln;Fo=1;var r=Gf(),e=Hf(),t=e(r);return ln=t,ln}var fn,Ko;function Wf(){if(Ko)return fn;Ko=1;var r=zf(),e=Ne();function t(n,a){var i=-1,o=e(n)?Array(n.length):[];return r(n,function(s,u,c){o[++i]=a(s,u,c)}),o}return fn=t,fn}var dn,$o;function Uf(){if($o)return dn;$o=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return dn=r,dn}var vn,Go;function Vf(){if(Go)return vn;Go=1;var r=me();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,s=r(t),u=n!==void 0,c=n===null,l=n===n,f=r(n);if(!c&&!f&&!s&&t>n||s&&u&&l&&!c&&!f||i&&u&&l||!a&&l||!o)return 1;if(!i&&!s&&!f&&t<n||f&&a&&o&&!i&&!s||c&&a&&o||!u&&o||!l)return-1}return 0}return vn=e,vn}var hn,Ho;function Xf(){if(Ho)return hn;Ho=1;var r=Vf();function e(t,n,a){for(var i=-1,o=t.criteria,s=n.criteria,u=o.length,c=a.length;++i<u;){var l=r(o[i],s[i]);if(l){if(i>=c)return l;var f=a[i];return l*(f=="desc"?-1:1)}}return t.index-n.index}return hn=e,hn}var pn,zo;function Yf(){if(zo)return pn;zo=1;var r=Ns(),e=Yn(),t=Qs(),n=Wf(),a=Uf(),i=Us(),o=Xf(),s=Me(),u=G();function c(l,f,v){f.length?f=r(f,function(d){return u(d)?function(b){return e(b,d.length===1?d[0]:d)}:d}):f=[s];var p=-1;f=r(f,i(t));var m=n(l,function(d,b,y){var h=r(f,function(x){return x(d)});return{criteria:h,index:++p,value:d}});return a(m,function(d,b){return o(d,b,v)})}return pn=c,pn}var yn,Wo;function Jf(){if(Wo)return yn;Wo=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return yn=r,yn}var bn,Uo;function Zf(){if(Uo)return bn;Uo=1;var r=Jf(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,u=e(o.length-a,0),c=Array(u);++s<u;)c[s]=o[a+s];s=-1;for(var l=Array(a+1);++s<a;)l[s]=o[s];return l[a]=i(c),r(n,this,l)}}return bn=t,bn}var mn,Vo;function Qf(){if(Vo)return mn;Vo=1;function r(e){return function(){return e}}return mn=r,mn}var gn,Xo;function ed(){if(Xo)return gn;Xo=1;var r=ne(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return gn=e,gn}var _n,Yo;function rd(){if(Yo)return _n;Yo=1;var r=Qf(),e=ed(),t=Me(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return _n=n,_n}var xn,Jo;function td(){if(Jo)return xn;Jo=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var s=t(),u=e-(s-o);if(o=s,u>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return xn=n,xn}var wn,Zo;function nd(){if(Zo)return wn;Zo=1;var r=rd(),e=td(),t=e(r);return wn=t,wn}var Sn,Qo;function ad(){if(Qo)return Sn;Qo=1;var r=Me(),e=Zf(),t=nd();function n(a,i){return t(e(a,i,r),a+"")}return Sn=n,Sn}var On,es;function id(){if(es)return On;es=1;var r=Un(),e=Ne(),t=Qn(),n=Y();function a(i,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?e(s)&&t(o,s.length):u=="string"&&o in s)?r(s[o],i):!1}return On=a,On}var qn,rs;function od(){if(rs)return qn;rs=1;var r=Ff(),e=Yf(),t=ad(),n=id(),a=t(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,r(o,1),[])});return qn=a,qn}var sd=od();const ud=V(sd);function ve(r){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(r)}function Mn(){return Mn=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Mn.apply(this,arguments)}function cd(r,e){return vd(r)||dd(r,e)||fd(r,e)||ld()}function ld(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fd(r,e){if(r){if(typeof r=="string")return ts(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ts(r,e)}}function ts(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function dd(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(t=t.call(r)).next,e!==0)for(;!(u=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function vd(r){if(Array.isArray(r))return r}function ns(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Pn(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ns(Object(t),!0).forEach(function(n){hd(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function hd(r,e,t){return e=pd(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function pd(r){var e=yd(r,"string");return ve(e)=="symbol"?e:e+""}function yd(r,e){if(ve(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(ve(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function bd(r){return Array.isArray(r)&&Ae(r[0])&&Ae(r[1])?r.join(" ~ "):r}var md=function(e){var t=e.separator,n=t===void 0?" : ":t,a=e.contentStyle,i=a===void 0?{}:a,o=e.itemStyle,s=o===void 0?{}:o,u=e.labelStyle,c=u===void 0?{}:u,l=e.payload,f=e.formatter,v=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,d=e.label,b=e.labelFormatter,y=e.accessibilityLayer,h=y===void 0?!1:y,x=function(){if(l&&l.length){var B={padding:0,margin:0},q=(v?ud(l,v):l).map(function(P,T){if(P.type==="none")return null;var E=Pn({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},s),j=P.formatter||f||bd,D=P.value,$=P.name,N=D,M=$;if(j&&N!=null&&M!=null){var K=j(D,$,P,T,l);if(Array.isArray(K)){var J=cd(K,2);N=J[0],M=J[1]}else N=K}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:E},Ae(M)?L.createElement("span",{className:"recharts-tooltip-item-name"},M):null,Ae(M)?L.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,L.createElement("span",{className:"recharts-tooltip-item-value"},N),L.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:B},q)}return null},g=Pn({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),A=Pn({margin:0},c),w=!Al(d),_=w?d:"",I=de("recharts-default-tooltip",p),C=de("recharts-tooltip-label",m);w&&b&&l!==void 0&&l!==null&&(_=b(d,l));var R=h?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",Mn({className:I,style:g},R),L.createElement("p",{className:C,style:A},L.isValidElement(_)?_:"".concat(_)),x())};function he(r){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(r)}function we(r,e,t){return e=gd(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function gd(r){var e=_d(r,"string");return he(e)=="symbol"?e:e+""}function _d(r,e){if(he(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(he(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var ce="recharts-tooltip-wrapper",xd={visibility:"hidden"};function wd(r){var e=r.coordinate,t=r.translateX,n=r.translateY;return de(ce,we(we(we(we({},"".concat(ce,"-right"),H(t)&&e&&H(e.x)&&t>=e.x),"".concat(ce,"-left"),H(t)&&e&&H(e.x)&&t<e.x),"".concat(ce,"-bottom"),H(n)&&e&&H(e.y)&&n>=e.y),"".concat(ce,"-top"),H(n)&&e&&H(e.y)&&n<e.y))}function as(r){var e=r.allowEscapeViewBox,t=r.coordinate,n=r.key,a=r.offsetTopLeft,i=r.position,o=r.reverseDirection,s=r.tooltipDimension,u=r.viewBox,c=r.viewBoxDimension;if(i&&H(i[n]))return i[n];var l=t[n]-s-a,f=t[n]+a;if(e[n])return o[n]?l:f;if(o[n]){var v=l,p=u[n];return v<p?Math.max(f,u[n]):Math.max(l,u[n])}var m=f+s,d=u[n]+c;return m>d?Math.max(l,u[n]):Math.max(f,u[n])}function Sd(r){var e=r.translateX,t=r.translateY,n=r.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(t,"px, 0)"):"translate(".concat(e,"px, ").concat(t,"px)")}}function Od(r){var e=r.allowEscapeViewBox,t=r.coordinate,n=r.offsetTopLeft,a=r.position,i=r.reverseDirection,o=r.tooltipBox,s=r.useTranslate3d,u=r.viewBox,c,l,f;return o.height>0&&o.width>0&&t?(l=as({allowEscapeViewBox:e,coordinate:t,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=as({allowEscapeViewBox:e,coordinate:t,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=Sd({translateX:l,translateY:f,useTranslate3d:s})):c=xd,{cssProperties:c,cssClasses:wd({translateX:l,translateY:f,coordinate:t})}}function oe(r){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(r)}function is(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function os(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?is(Object(t),!0).forEach(function(n){Ln(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):is(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function qd(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Pd(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,ru(n.key),n)}}function Ad(r,e,t){return e&&Pd(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Id(r,e,t){return e=Ie(e),Td(r,eu()?Reflect.construct(e,t||[],Ie(r).constructor):e.apply(r,t))}function Td(r,e){if(e&&(oe(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cd(r)}function Cd(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function eu(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eu=function(){return!!r})()}function Ie(r){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ie(r)}function Rd(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&kn(r,e)}function kn(r,e){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},kn(r,e)}function Ln(r,e,t){return e=ru(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ru(r){var e=Ed(r,"string");return oe(e)=="symbol"?e:e+""}function Ed(r,e){if(oe(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var ss=1,jd=(function(r){function e(){var t;qd(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=Id(this,e,[].concat(a)),Ln(t,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ln(t,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,c,l;t.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=t.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(c=(l=t.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&c!==void 0?c:0}})}}),t}return Rd(e,r),Ad(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>ss||Math.abs(n.height-this.state.lastBoundingBox.height)>ss)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,u=a.animationEasing,c=a.children,l=a.coordinate,f=a.hasPayload,v=a.isAnimationActive,p=a.offset,m=a.position,d=a.reverseDirection,b=a.useTranslate3d,y=a.viewBox,h=a.wrapperStyle,x=Od({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:p,position:m,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),g=x.cssClasses,A=x.cssProperties,w=os(os({transition:v&&i?"transform ".concat(s,"ms ").concat(u):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},h);return L.createElement("div",{tabIndex:-1,className:g,style:w,ref:function(I){n.wrapperNode=I}},c)}}])})(S.PureComponent),Bd=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Dd={isSsr:Bd()};function se(r){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(r)}function us(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function cs(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?us(Object(t),!0).forEach(function(n){ta(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Nd(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Md(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,nu(n.key),n)}}function kd(r,e,t){return e&&Md(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Ld(r,e,t){return e=Te(e),Fd(r,tu()?Reflect.construct(e,t||[],Te(r).constructor):e.apply(r,t))}function Fd(r,e){if(e&&(se(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kd(r)}function Kd(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function tu(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tu=function(){return!!r})()}function Te(r){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Te(r)}function $d(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Fn(r,e)}function Fn(r,e){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Fn(r,e)}function ta(r,e,t){return e=nu(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function nu(r){var e=Gd(r,"string");return se(e)=="symbol"?e:e+""}function Gd(r,e){if(se(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(se(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Hd(r){return r.dataKey}function zd(r,e){return L.isValidElement(r)?L.cloneElement(r,e):typeof r=="function"?L.createElement(r,e):L.createElement(md,e)}var na=(function(r){function e(){return Nd(this,e),Ld(this,e,arguments)}return $d(e,r),kd(e,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,u=a.animationEasing,c=a.content,l=a.coordinate,f=a.filterNull,v=a.isAnimationActive,p=a.offset,m=a.payload,d=a.payloadUniqBy,b=a.position,y=a.reverseDirection,h=a.useTranslate3d,x=a.viewBox,g=a.wrapperStyle,A=m??[];f&&A.length&&(A=kf(m.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),d,Hd));var w=A.length>0;return L.createElement(jd,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:v,active:i,coordinate:l,hasPayload:w,offset:p,position:b,reverseDirection:y,useTranslate3d:h,viewBox:x,wrapperStyle:g},zd(c,cs(cs({},this.props),{},{payload:A})))}}])})(S.PureComponent);ta(na,"displayName","Tooltip");ta(na,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Dd.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var An,ls;function Wd(){if(ls)return An;ls=1;var r=z(),e=function(){return r.Date.now()};return An=e,An}var In,fs;function Ud(){if(fs)return In;fs=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return In=e,In}var Tn,ds;function Vd(){if(ds)return Tn;ds=1;var r=Ud(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return Tn=t,Tn}var Cn,vs;function Xd(){if(vs)return Cn;vs=1;var r=Vd(),e=Y(),t=me(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(t(c))return n;if(e(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=e(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=r(c);var f=i.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):a.test(c)?n:+c}return Cn=u,Cn}var Rn,hs;function Yd(){if(hs)return Rn;hs=1;var r=Y(),e=Wd(),t=Xd(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,c){var l,f,v,p,m,d,b=0,y=!1,h=!1,x=!0;if(typeof s!="function")throw new TypeError(n);u=t(u)||0,r(c)&&(y=!!c.leading,h="maxWait"in c,v=h?a(t(c.maxWait)||0,u):v,x="trailing"in c?!!c.trailing:x);function g(q){var P=l,T=f;return l=f=void 0,b=q,p=s.apply(T,P),p}function A(q){return b=q,m=setTimeout(I,u),y?g(q):p}function w(q){var P=q-d,T=q-b,E=u-P;return h?i(E,v-T):E}function _(q){var P=q-d,T=q-b;return d===void 0||P>=u||P<0||h&&T>=v}function I(){var q=e();if(_(q))return C(q);m=setTimeout(I,w(q))}function C(q){return m=void 0,x&&l?g(q):(l=f=void 0,p)}function R(){m!==void 0&&clearTimeout(m),b=0,l=d=f=m=void 0}function O(){return m===void 0?p:C(e())}function B(){var q=e(),P=_(q);if(l=arguments,f=this,d=q,P){if(m===void 0)return A(d);if(h)return clearTimeout(m),m=setTimeout(I,u),g(d)}return m===void 0&&(m=setTimeout(I,u)),p}return B.cancel=R,B.flush=O,B}return Rn=o,Rn}var En,ps;function Jd(){if(ps)return En;ps=1;var r=Yd(),e=Y(),t="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(t);return e(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),r(a,i,{leading:s,maxWait:i,trailing:u})}return En=n,En}var Zd=Jd();const Qd=V(Zd);function pe(r){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(r)}function ys(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Se(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ys(Object(t),!0).forEach(function(n){ev(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ys(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function ev(r,e,t){return e=rv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function rv(r){var e=tv(r,"string");return pe(e)=="symbol"?e:e+""}function tv(r,e){if(pe(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function nv(r,e){return sv(r)||ov(r,e)||iv(r,e)||av()}function av(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iv(r,e){if(r){if(typeof r=="string")return bs(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return bs(r,e)}}function bs(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function ov(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(t=t.call(r)).next,e!==0)for(;!(u=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function sv(r){if(Array.isArray(r))return r}var uv=S.forwardRef(function(r,e){var t=r.aspect,n=r.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=r.width,o=i===void 0?"100%":i,s=r.height,u=s===void 0?"100%":s,c=r.minWidth,l=c===void 0?0:c,f=r.minHeight,v=r.maxHeight,p=r.children,m=r.debounce,d=m===void 0?0:m,b=r.id,y=r.className,h=r.onResize,x=r.style,g=x===void 0?{}:x,A=S.useRef(null),w=S.useRef();w.current=h,S.useImperativeHandle(e,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var _=S.useState({containerWidth:a.width,containerHeight:a.height}),I=nv(_,2),C=I[0],R=I[1],O=S.useCallback(function(q,P){R(function(T){var E=Math.round(q),j=Math.round(P);return T.containerWidth===E&&T.containerHeight===j?T:{containerWidth:E,containerHeight:j}})},[]);S.useEffect(function(){var q=function($){var N,M=$[0].contentRect,K=M.width,J=M.height;O(K,J),(N=w.current)===null||N===void 0||N.call(w,K,J)};d>0&&(q=Qd(q,d,{trailing:!0,leading:!1}));var P=new ResizeObserver(q),T=A.current.getBoundingClientRect(),E=T.width,j=T.height;return O(E,j),P.observe(A.current),function(){P.disconnect()}},[O,d]);var B=S.useMemo(function(){var q=C.containerWidth,P=C.containerHeight;if(q<0||P<0)return null;Fr(xe(o)||xe(u),`The width(%s) and height(%s) are both fixed numbers,
4
- maybe you don't need to use a ResponsiveContainer.`,o,u),Fr(!t||t>0,"The aspect(%s) must be greater than zero.",t);var T=xe(o)?q:o,E=xe(u)?P:u;t&&t>0&&(T?E=T/t:E&&(T=E*t),v&&E>v&&(E=v)),Fr(T>0||E>0,`The width(%s) and height(%s) of chart should be greater than 0,
5
- please check the style of container, or the props width(%s) and height(%s),
6
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
7
- height and width.`,T,E,o,u,l,f,t);var j=!Array.isArray(p)&&Ml(p.type).endsWith("Chart");return L.Children.map(p,function(D){return L.isValidElement(D)?S.cloneElement(D,Se({width:T,height:E},j?{style:Se({height:"100%",width:"100%",maxHeight:E,maxWidth:T},D.props.style)}:{})):D})},[t,p,u,v,f,l,C,o]);return L.createElement("div",{id:b?"".concat(b):void 0,className:de("recharts-responsive-container",y),style:Se(Se({},g),{},{width:o,height:u,minWidth:l,minHeight:f,maxHeight:v}),ref:A},B)});const cv={light:"",dark:".dark"},au=S.createContext(null);function lv(){const r=S.useContext(au);if(!r)throw new Error("useChart must be used within a <ChartContainer />");return r}function gv(r){const e=Kn.c(28);let t,n,a,i,o;e[0]!==r?({id:i,className:n,children:t,config:a,...o}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=a,e[4]=i,e[5]=o):(t=e[1],n=e[2],a=e[3],i=e[4],o=e[5]);const s=S.useId();let u;e[6]!==i||e[7]!==s?(u=i||s.replace(/:/g,""),e[6]=i,e[7]=s,e[8]=u):u=e[8];const c=`chart-${u}`;let l;e[9]!==a?(l={config:a},e[9]=a,e[10]=l):l=e[10];let f;e[11]!==n?(f=Z("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",n),e[11]=n,e[12]=f):f=e[12];let v;e[13]!==c||e[14]!==a?(v=k.jsx(fv,{id:c,config:a}),e[13]=c,e[14]=a,e[15]=v):v=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p={width:240,height:180},e[16]=p):p=e[16];let m;e[17]!==t?(m=k.jsx(uv,{initialDimension:p,children:t}),e[17]=t,e[18]=m):m=e[18];let d;e[19]!==c||e[20]!==o||e[21]!==f||e[22]!==v||e[23]!==m?(d=k.jsxs("div",{"data-slot":"chart","data-chart":c,className:f,...o,children:[v,m]}),e[19]=c,e[20]=o,e[21]=f,e[22]=v,e[23]=m,e[24]=d):d=e[24];let b;return e[25]!==l||e[26]!==d?(b=k.jsx(au.Provider,{value:l,children:d}),e[25]=l,e[26]=d,e[27]=b):b=e[27],b}const fv=r=>{const e=Kn.c(8),{id:t,config:n}=r;let a;e[0]!==n?(a=Object.entries(n).filter(dv),e[0]=n,e[1]=a):a=e[1];const i=a;if(!i.length)return null;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=Object.entries(cv),e[2]=o):o=e[2];let s;e[3]!==i||e[4]!==t?(s=o.map(l=>{const[f,v]=l;return`
8
- ${v} [data-chart=${t}] {
9
- ${i.map(p=>{const[m,d]=p,b=d.theme?.[f]||d.color;return b?` --color-${m}: ${b};`:null}).join(`
10
- `)}
11
- }
12
- `}),e[3]=i,e[4]=t,e[5]=s):s=e[5];const u=s.join(`
13
- `);let c;return e[6]!==u?(c=k.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),e[6]=u,e[7]=c):c=e[7],c},_v=na;function xv(r){const e=Kn.c(47),{active:t,payload:n,className:a,indicator:i,hideLabel:o,hideIndicator:s,label:u,labelFormatter:c,labelClassName:l,formatter:f,color:v,nameKey:p,labelKey:m}=r,d=i===void 0?"dot":i,b=o===void 0?!1:o,y=s===void 0?!1:s,{config:h}=lv();let x;e[0]!==n?(x=Array.isArray(n)?n:[],e[0]=n,e[1]=x):x=e[1];const g=x;let A;e:{if(b||!g?.length){A=null;break e}const[q]=g,P=`${m||q?.dataKey||q?.name||"value"}`;let T;e[2]!==h||e[3]!==q||e[4]!==P?(T=ms(h,q,P),e[2]=h,e[3]=q,e[4]=P,e[5]=T):T=e[5];const j=!m&&typeof u=="string"?h[u]?.label||u:T?.label;if(c){let N;e[6]!==l?(N=Z("font-medium",l),e[6]=l,e[7]=N):N=e[7];let M;e[8]!==c||e[9]!==g||e[10]!==j?(M=c(j,g),e[8]=c,e[9]=g,e[10]=j,e[11]=M):M=e[11];let K;e[12]!==N||e[13]!==M?(K=k.jsx("div",{className:N,children:M}),e[12]=N,e[13]=M,e[14]=K):K=e[14],A=K;break e}if(!j){A=null;break e}let D;e[15]!==l?(D=Z("font-medium",l),e[15]=l,e[16]=D):D=e[16];let $;e[17]!==D||e[18]!==j?($=k.jsx("div",{className:D,children:j}),e[17]=D,e[18]=j,e[19]=$):$=e[19],A=$}const w=A;if(!t||!g?.length)return null;const _=g.length===1&&d!=="dot";let I;e[20]!==a?(I=Z("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",a),e[20]=a,e[21]=I):I=e[21];const C=_?null:w;let R;if(e[22]!==v||e[23]!==h||e[24]!==f||e[25]!==y||e[26]!==d||e[27]!==p||e[28]!==_||e[29]!==g||e[30]!==w){let q;e[32]!==v||e[33]!==h||e[34]!==f||e[35]!==y||e[36]!==d||e[37]!==p||e[38]!==_||e[39]!==w?(q=(P,T)=>{const E=`${p||P.name||P.dataKey||"value"}`,j=ms(h,P,E),D=v||P.payload.fill||P.color;return k.jsx("div",{className:Z("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",d==="dot"&&"items-center"),children:f&&P?.value!==void 0&&P.name?f(P.value,P.name,P,T,P.payload):k.jsxs(k.Fragment,{children:[j?.icon?k.jsx(j.icon,{}):!y&&k.jsx("div",{className:Z("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":d==="dot","w-1":d==="line","w-0 border-[1.5px] border-dashed bg-transparent":d==="dashed","my-0.5":_&&d==="dashed"}),style:{"--color-bg":D,"--color-border":D}}),k.jsxs("div",{className:Z("flex flex-1 justify-between leading-none",_?"items-end":"items-center"),children:[k.jsxs("div",{className:"grid gap-1.5",children:[_?w:null,k.jsx("span",{className:"text-muted-foreground",children:j?.label||P.name})]}),P.value&&k.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:P.value.toLocaleString()})]})]})},P.dataKey)},e[32]=v,e[33]=h,e[34]=f,e[35]=y,e[36]=d,e[37]=p,e[38]=_,e[39]=w,e[40]=q):q=e[40],R=g.map(q),e[22]=v,e[23]=h,e[24]=f,e[25]=y,e[26]=d,e[27]=p,e[28]=_,e[29]=g,e[30]=w,e[31]=R}else R=e[31];let O;e[41]!==R?(O=k.jsx("div",{className:"grid gap-1.5",children:R}),e[41]=R,e[42]=O):O=e[42];let B;return e[43]!==I||e[44]!==C||e[45]!==O?(B=k.jsxs("div",{className:I,children:[C,O]}),e[43]=I,e[44]=C,e[45]=O,e[46]=B):B=e[46],B}function ms(r,e,t){if(typeof e!="object"||e===null)return;const n="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let a=t;return t in e&&typeof e[t]=="string"?a=e[t]:n&&t in n&&typeof n[t]=="string"&&(a=n[t]),a in r?r[a]:r[t]}function dv(r){const[,e]=r;return e.theme||e.color}export{Xc as B,_v as C,Qu as S,xv as a,mv as b,gv as c};
@@ -1 +0,0 @@
1
- import{c as q,a4 as O,q as v,bz as Q,i as P,K as N,fL as T,e as z}from"./index-BYLma6nR.js";import{u as A,c as F}from"./repository-binding-BkD30urH.js";import{r as V}from"./serial-task-queue-CGOeQgpr.js";function j(t,e){return t.some(n=>n.branch===e.branch)?t:[...t,e]}function U(t,e){return t.filter(n=>n.branch!==e)}function B(t,e){const n=t.find(a=>a.branch===e);return!n||n.runtime==="sandbox"?t:t.map(a=>a===n?{...a,runtime:"sandbox"}:a)}function I(t,e,n){return t.map(a=>a.branch===e?{...a,name:n}:a)}function M(t){return{content:t.filter(e=>e.runtime!=="sandbox"),code:t.filter(e=>e.runtime==="sandbox")}}const E=["orange","violet","blue","pink","amber","teal"];function ee(t){return E[t%E.length]}function te(t,e){const n=`${e} `,a=t.reduce((s,i)=>{if(!i.name.startsWith(n))return s;const r=Number(i.name.slice(n.length));return Number.isInteger(r)&&r>s?r:s},0);return`${e} ${a+1}`}const W={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"},Y={orange:"text-orange-500",violet:"text-violet-500",blue:"text-blue-500",pink:"text-pink-500",amber:"text-amber-500",teal:"text-teal-500"};function ne(t){return t&&Y[t]||"text-muted-foreground"}function ae(t){return t&&W[t]||"bg-muted-foreground"}function se(t){const e=q.c(30),n=A(t);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={silent:!0},e[0]=a):a=e[0];const s=F(a),{org:i}=O(),r=v();let u;e[1]!==n?.metadata?.releases?(u=n?.metadata?.releases??[],e[1]=n?.metadata?.releases,e[2]=u):u=e[2];const c=u;let m;e[3]!==i||e[4]!==t?(m=o=>o[1]===i.id&&o[3]==="collection"&&o[4]==="VIRTUAL_MCP"&&o[5]===t,e[3]=i,e[4]=t,e[5]=m):m=e[5];const b=m;let h;e[6]!==b||e[7]!==r||e[8]!==c?(h=()=>{for(const[,o]of r.getQueriesData({predicate:f=>b(f.queryKey)}))if(o?.item)return o.item.metadata?.releases??[];return c},e[6]=b,e[7]=r,e[8]=c,e[9]=h):h=e[9];const D=h;let S;e[10]!==s||e[11]!==b||e[12]!==r||e[13]!==D||e[14]!==t?(S=o=>V(`vm-releases:${t}`,async()=>{const f=D(),g=o(f);if(g!==f){r.setQueriesData({predicate:d=>b(d.queryKey)},d=>d?.item?{item:{...d.item,metadata:{...d.item.metadata,releases:g}}}:d);try{await s.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(d){const _=d;throw r.invalidateQueries({predicate:K=>b(K.queryKey)}),_}}}),e[10]=s,e[11]=b,e[12]=r,e[13]=D,e[14]=t,e[15]=S):S=e[15];const l=S;let p;e[16]!==l?(p=o=>l(f=>j(f,o)),e[16]=l,e[17]=p):p=e[17];const w=p;let y;e[18]!==l?(y=(o,f)=>l(g=>I(g,o,f)),e[18]=l,e[19]=y):y=e[19];const $=y;let x;e[20]!==l?(x=o=>l(f=>U(f,o)),e[20]=l,e[21]=x):x=e[21];const L=x;let C;e[22]!==l?(C=o=>l(f=>B(f,o)),e[22]=l,e[23]=C):C=e[23];const k=C;let R;return e[24]!==w||e[25]!==L||e[26]!==k||e[27]!==c||e[28]!==$?(R={releases:c,createRelease:w,renameRelease:$,deleteRelease:L,markSandbox:k},e[24]=w,e[25]=L,e[26]=k,e[27]=c,e[28]=$,e[29]=R):R=e[29],R}function G(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function re(t){return t?.name||t?.email?.split("@")[0]||void 0}function oe(t){const e=G(t),n=Date.now().toString(36).split("").reverse().join("");return`${e}-${n}`}function ie(t,e){if(!e?.length)return[];const n=new Set(t.map(s=>s.branch)),a=new Set;return e.filter(s=>s.via==="studio"||n.has(s.name)||a.has(s.name)?!1:(a.add(s.name),!0)).sort((s,i)=>i.createdAt.localeCompare(s.createdAt))}function ue(t){switch(t){case"cli":return"CLI";case"token":return"API";case"studio-agent":return"Studio";default:return t}}function ce(t,e){const n=q.c(6),a=Q(A(t)?.metadata),s=N.hostedDrafts(a??""),i=e&&!!a;let r;n[0]!==a?(r=async()=>{const{drafts:m}=await T(a,"drafts");return m??[]},n[0]=a,n[1]=r):r=n[1];let u;return n[2]!==s||n[3]!==i||n[4]!==r?(u={queryKey:s,enabled:i,staleTime:3e4,retry:!1,queryFn:r},n[2]=s,n[3]=i,n[4]=r,n[5]=u):u=n[5],P(u)}function le(t){const e=q.c(10),n=A(t)?.metadata;let a;e[0]!==n?(a=Q(n),e[0]=n,e[1]=a):a=e[1];const s=a,i=v();let r;e[2]!==s?(r=async m=>{if(!s)throw new Error("This project has no hosted CMS site");await H(s,m)},e[2]=s,e[3]=r):r=e[3];let u;e[4]!==i||e[5]!==s?(u=()=>i.invalidateQueries({queryKey:N.hostedDrafts(s??"")}),e[4]=i,e[5]=s,e[6]=u):u=e[6];let c;return e[7]!==r||e[8]!==u?(c={mutationFn:r,onSettled:u},e[7]=r,e[8]=u,e[9]=c):c=e[9],z(c)}function fe(t,e){if(e!==void 0)return e.some(n=>n.name===t&&n.via!=="studio")}async function H(t,e){await T(t,`drafts/${encodeURIComponent(e)}`,{method:"DELETE"})}export{ce as a,te as b,re as c,ie as d,le as e,M as f,oe as g,ne as h,fe as i,ee as n,ae as r,ue as s,se as u};
@@ -1 +0,0 @@
1
- import{c as $,d as A,u as J,j as m,n as U}from"./index-BYLma6nR.js";import{a4 as q,J as z,R as D}from"./chat-context-DrqBnMGV.js";import{u as F}from"./use-mobile-ye6iRWDK.js";import{u as G,C as R}from"./index-jDgMG-M0.js";import{C as B,o as K,d as Q}from"./context-shell-DYEfNRo8.js";import{L as E}from"./preview-panel-DrbFpZBA.js";import{L as V}from"./library-tab-CdWEZxRI.js";import"./autosend-YTrROtL8.js";import"./thread-route-CsxQz3Zx.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./use-entitlements-BsP1ZFGQ.js";import"./use-ai-providers-BZwoM77S.js";import"./use-decopilot-events-CuinN1iK.js";import"./use-organization-settings-BQAdDt_y.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./require-capability-B1_EID-G.js";import"./access-gate-BO57Fy6P.js";import"./capability-load-error-D_eJcYHf.js";import"./sections-BugzxN3d.js";import"./textarea-CjxhqOyq.js";import"./empty-state-D5-IJmKF.js";import"./use-ask-in-chat-DaKY6vDh.js";import"./use-org-fs-DKzRfuIW.js";import"./preview-content-CT2MLe31.js";import"./icon-button-Bkz9RDzV.js";import"./file-share-button-DjQHOi0O.js";import"./popover-N7uvMIxz.js";import"./file-preview-4Tbf_ub4.js";import"./utils-B4FS_bBy.js";import"./editor-Bl3rIcVI.js";import"./file-type-icon-Bdzds_J6.js";import"./markdown-Da1uCT0e.js";import"./use-copy-D-EOd5RI.js";import"./search-input-CuXTJoya.js";import"./use-org-repo-syncs-Cj0yTqTx.js";import"./preview-dialog-j29O32-o.js";import"./folder-icon-JFUPr6Oa.js";import"./empty-state-aXWI3-Mm.js";import"./table-BjC5y-mI.js";function qe(){const t=$.c(56),_=A();let b;t[0]===Symbol.for("react.memo_cache_sentinel")?(b={strict:!1},t[0]=b):b=t[0];const{preview:e,expanded:k,section:M}=J(b);let j;t[1]!==M?(j=K(M),t[1]=M,t[2]=j):j=t[2];const l=j;let v;t[3]!==_?(v=i=>_({to:".",search:r=>({...r,...i.path!==void 0&&{path:i.path},preview:i.preview,expanded:i.expanded})}),t[3]=_,t[4]=v):v=t[4];const o=v;let y;t[5]!==o?(y=()=>o({}),t[5]=o,t[6]=y):y=t[6];const p=y,H=F(),C=G().threadOpen&&!H;if(l!=="files"){let i;t[7]!==l?(i=m.jsx(Q,{section:l}),t[7]=l,t[8]=i):i=t[8];let r;return t[9]!==l||t[10]!==i?(r=m.jsx(R.Content,{children:m.jsx(B,{section:l,children:i})}),t[9]=l,t[10]=i,t[11]=r):r=t[11],r}if(e&&(k||C)){let i,r,n,s,f;if(t[12]!==p||t[13]!==e||t[14]!==o){let T;t[20]!==e?(T=e.lastIndexOf("/"),t[20]=e,t[21]=T):T=t[21];const I=e.slice(0,Math.max(T,0));r=R.Content,i=U.Breadcrumbs,n="page",t[22]!==p?(s={onSelect:p},t[22]=p,t[23]=s):s=t[23];let L;t[24]!==o?(L=O=>({key:`folder:${O.path}`,label:O.label,onSelect:()=>o({path:O.path})}),t[24]=o,t[25]=L):L=t[25];const N=q(I,D).map(L);let u;t[26]!==e?(u=z(e),t[26]=e,t[27]=u):u=t[27];let P;t[28]!==u?(P={key:"file",label:u},t[28]=u,t[29]=P):P=t[29],f=[...N,P],t[12]=p,t[13]=e,t[14]=o,t[15]=i,t[16]=r,t[17]=n,t[18]=s,t[19]=f}else i=t[15],r=t[16],n=t[17],s=t[18],f=t[19];let c;t[30]!==i||t[31]!==n||t[32]!==s||t[33]!==f?(c=m.jsx(i,{after:n,parent:s,items:f}),t[30]=i,t[31]=n,t[32]=s,t[33]=f,t[34]=c):c=t[34];let d;t[35]!==C||t[36]!==e||t[37]!==o?(d=C?void 0:()=>o({preview:e}),t[35]=C,t[36]=e,t[37]=o,t[38]=d):d=t[38];let h;t[39]!==d?(h={expanded:!0,onToggle:d},t[39]=d,t[40]=h):h=t[40];let x;t[41]!==p||t[42]!==e||t[43]!==h?(x=m.jsx(E,{previewPath:e,onClose:p,expand:h},e),t[41]=p,t[42]=e,t[43]=h,t[44]=x):x=t[44];let w;return t[45]!==r||t[46]!==x||t[47]!==c?(w=m.jsxs(r,{children:[c,x]}),t[45]=r,t[46]=x,t[47]=c,t[48]=w):w=t[48],w}let a;t[49]!==p||t[50]!==e||t[51]!==o?(a=e&&m.jsx(E,{variant:"aside",previewPath:e,onClose:p,expand:{expanded:!1,onToggle:()=>o({preview:e,expanded:!0})}},e),t[49]=p,t[50]=e,t[51]=o,t[52]=a):a=t[52];let g;t[53]===Symbol.for("react.memo_cache_sentinel")?(g=m.jsx(B,{section:"files",children:m.jsx(V,{filePreview:"side"})}),t[53]=g):g=t[53];let S;return t[54]!==a?(S=m.jsx(R.Content,{aside:a,children:g}),t[54]=a,t[55]=S):S=t[55],S}export{qe as default};
@@ -1 +0,0 @@
1
- import{e8 as Z,e6 as tt,aF as et,hB as ot,c as J,a4 as rt,j as N,d as it,r as W}from"./index-BYLma6nR.js";import{a as st,g as K,s as $}from"./tool-namespace-COJtiQ4T.js";import{u as nt}from"./use-mcp-client-Ch_pgKFL.js";import{a as at,b as lt}from"./use-mcp-tools-BAO0S55a.js";import{c as mt}from"./content-blocks-o63cs2vh.js";import{M as pt}from"./mcp-app-renderer-mf0rf7E1.js";import{g as ct,M as Y}from"./types-CbWt7gMo.js";import{b as ut,d as ft}from"./chat-context-DrqBnMGV.js";import{g as dt}from"./shell-layout-B0sxwrmk.js";import{p as gt}from"./task-route-BlJmoQnB.js";import{C as ht}from"./connect-source-dialog-CGrEF7EH.js";import"./auth-eHRARwQ2.js";import"./autosend-YTrROtL8.js";import"./thread-route-CsxQz3Zx.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./use-entitlements-BsP1ZFGQ.js";import"./use-ai-providers-BZwoM77S.js";import"./use-decopilot-events-CuinN1iK.js";import"./use-organization-settings-BQAdDt_y.js";import"./Globe04-BgmGeS07.js";import"./UserSquare-BV7Jqoa-.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./use-mobile-ye6iRWDK.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./task-key-BCHdFiOO.js";import"./project-index-BZNO31D8.js";import"./core.esm-CZ_suStd.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-BhuBsXQo.js";import"./companions-core-DhUD88pR.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C58hYmYC.js";import"./form-BYhtZm8M.js";import"./icon-button-Bkz9RDzV.js";import"./useQueries-DWMnudrU.js";import"./authenticate-and-persist-oauth-CjW_HJT8.js";import"./mcp-oauth-HzcRe8g5.js";import"./mcp-oauth-CaiLBqRy.js";import"./track-BwadfAZS.js";import"./extract-connection-data-D7JZIpe1.js";import"./connection-CpcxYbw-.js";import"./url-slug-_FVYRYFw.js";const X="studio://navigate",At=new Set(["vtex","ga4","gsc","github"]);function St(n){const[t]=n;if(n.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null,l=null,e=null;try{const r=new URL(t.uri).searchParams;o=r.get("main"),l=r.get("field"),e=r.get("task")}catch{}const m=o&&ot.has(o)?o:null;return{isNavigate:!0,tab:m,field:m==="connect-sources"&&l&&At.has(l)?l:null,task:m==="board"&&e?gt(e):null}}const Ct=2e3,xt=Z(et(),tt());function Nt(n){const[t]=n;if(n.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return null;let o=null;try{o=new URL(t.uri).searchParams.get("args")}catch{return null}return o&&z(o)?o:null}function z(n){if(!(!n||n.length>Ct))try{const t=xt.safeParse(JSON.parse(n));return t.success?t.data:void 0}catch{return}}function It(n){const t=J.c(50),{client:o,resourceURI:l,tool:e,connectionId:m,orgId:r,args:c,searchArgs:u}=n,f=it(),{sendMessage:d}=ut(),{setAppContext:s,clearAppContext:g}=ft(),{openSidePanel:a,openTab:h,closeTab:A}=dt(),i=`${m}:${e.name}`,[S,D]=W.useState(null);let x;t[0]!==A?(x=p=>p==="inline"?(A(),"inline"):"fullscreen",t[0]=A,t[1]=x):x=t[1];const O=x,[L]=W.useState(u);let I;t[2]!==L||t[3]!==e.annotations?.readOnlyHint?(I=e.annotations?.readOnlyHint&&z(L),t[2]=L,t[3]=e.annotations?.readOnlyHint,t[4]=I):I=t[4];let y;t[5]!==c||t[6]!==I?(y={...c,...I},t[5]=c,t[6]=I,t[7]=y):y=t[7];const R=y;let k;t[8]!==o||t[9]!==e.name||t[10]!==R?(k={client:o,toolName:e.name,toolArguments:R},t[8]=o,t[9]=e.name,t[10]=R,t[11]=k):k=t[11];const{data:w}=lt(k);let E;if(t[12]!==e._meta||t[13]!==e.name){const p=K(e._meta);E=$(e.name,p),t[12]=e._meta,t[13]=e.name,t[14]=E}else E=t[14];const F=E;let v;t[15]!==e.inputSchema?(v=e.inputSchema??{type:"object"},t[15]=e.inputSchema,t[16]=v):v=t[16];let j;t[17]!==F||t[18]!==v||t[19]!==e?(j={...e,name:F,inputSchema:v},t[17]=F,t[18]=v,t[19]=e,t[20]=j):j=t[20];const B=j;let U;t[21]!==f||t[22]!==a||t[23]!==h||t[24]!==d?(U=p=>{const V=Nt(p.content);if(V){f({to:".",search:Q=>({...Q,args:V}),replace:!0});return}const C=St(p.content);if(C.isNavigate){C.tab==="connect-sources"&&C.field?D(C.field):C.tab&&h(C.tab,C.task?{taskKey:C.task,replace:!1}:void 0);return}const q=mt(p.content);q.content.length>0&&(a(),d({tiptapDoc:q}))},t[21]=f,t[22]=a,t[23]=h,t[24]=d,t[25]=U):U=t[25];const G=U;let M;t[26]!==B?(M={tool:B},t[26]=B,t[27]=M):M=t[27];let P;t[28]!==s||t[29]!==i?(P=p=>s(i,p),t[28]=s,t[29]=i,t[30]=P):P=t[30];let _;t[31]!==g||t[32]!==i?(_=()=>g(i),t[31]=g,t[32]=i,t[33]=_):_=t[33];let T;t[34]!==o||t[35]!==G||t[36]!==O||t[37]!==r||t[38]!==l||t[39]!==P||t[40]!==_||t[41]!==M||t[42]!==R||t[43]!==w?(T=N.jsx(pt,{resourceURI:l,orgId:r,toolInfo:M,toolInput:R,toolResult:w,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:G,onUpdateModelContext:P,onTeardown:_,onRequestDisplayMode:O,className:"h-full"}),t[34]=o,t[35]=G,t[36]=O,t[37]=r,t[38]=l,t[39]=P,t[40]=_,t[41]=M,t[42]=R,t[43]=w,t[44]=T):T=t[44];let b;t[45]!==S?(b=S&&N.jsx(ht,{field:S,onClose:()=>D(null)}),t[45]=S,t[46]=b):b=t[46];let H;return t[47]!==T||t[48]!==b?(H=N.jsxs(N.Fragment,{children:[T,b]}),t[47]=T,t[48]=b,t[49]=H):H=t[49],H}function ao(n){const t=J.c(21),{connectionId:o,toolName:l,args:e,searchArgs:m}=n,{org:r}=rt();let c;t[0]!==o||t[1]!==r.id||t[2]!==r.slug?(c={connectionId:o,orgId:r.id,orgSlug:r.slug},t[0]=o,t[1]=r.id,t[2]=r.slug,t[3]=c):c=t[3];const u=nt(c);let f;t[4]!==u?(f={client:u},t[4]=u,t[5]=f):f=t[5];const{data:d}=at(f);let s,g,a;t[6]!==l||t[7]!==d.tools?(s=st(decodeURIComponent(l)),a=d.tools.find(i=>i.name===s)??d.tools.find(i=>{const S=K(i._meta);if(!S)return!1;if($(i.name,S)===s)return!0;const x=$(s,S);return x!==s&&i.name===x}),g=a?._meta?ct(a._meta):void 0,t[6]=l,t[7]=d.tools,t[8]=s,t[9]=g,t[10]=a):(s=t[8],g=t[9],a=t[10]);const h=g;if(!a||!h){let i;return t[11]!==s?(i=N.jsx("div",{className:"flex items-center justify-center h-full w-full",children:N.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',s,'" not found or has no UI']})}),t[11]=s,t[12]=i):i=t[12],i}let A;return t[13]!==e||t[14]!==u||t[15]!==o||t[16]!==r.id||t[17]!==h||t[18]!==m||t[19]!==a?(A=N.jsx(It,{client:u,resourceURI:h,tool:a,connectionId:o,orgId:r.id,args:e,searchArgs:m}),t[13]=e,t[14]=u,t[15]=o,t[16]=r.id,t[17]=h,t[18]=m,t[19]=a,t[20]=A):A=t[20],A}export{ao as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as m,j as r}from"./index-BYLma6nR.js";import{C as i}from"./index-jDgMG-M0.js";import{R as p}from"./reports-tab-Bz7eFHcA.js";import"./use-mobile-ye6iRWDK.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./thread-route-CsxQz3Zx.js";import"./autosend-YTrROtL8.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./use-organization-settings-BQAdDt_y.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./site-url-en5df9c-.js";import"./use-reports-diagnostic-DrVbktZZ.js";import"./companions-core-DhUD88pR.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C58hYmYC.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";import"./projects-empty-state-MtIbG9US.js";import"./project-profile-dMAv1_XF.js";function qt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{qt as default};
@@ -1 +0,0 @@
1
- import{c as l,a4 as n,j as r,K as f}from"./index-BYLma6nR.js";import{C as d}from"./index-jDgMG-M0.js";import{m as u,P as x,T as h}from"./mock-board-WAMSCCQz.js";import{F as j}from"./feature-gate-BB1BinIq.js";import"./use-mobile-ye6iRWDK.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./thread-route-CsxQz3Zx.js";import"./autosend-YTrROtL8.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./use-organization-settings-BQAdDt_y.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./core.esm-CZ_suStd.js";import"./sortable.esm-D0_nmGGR.js";import"./use-task-board-analytics-DRF7V1gC.js";import"./combobox-f-1LbAQg.js";import"./popover-N7uvMIxz.js";import"./use-task-board-prompts-r37U5HHf.js";import"./badge-BLj5oaM_.js";import"./icon-button-Bkz9RDzV.js";import"./use-org-fs-DKzRfuIW.js";import"./use-automations-9JK3KVgm.js";import"./search-toggle-Dozi3jn4.js";import"./context-menu-CoBBaT-n.js";import"./super-agent-icon-CqYKR78y.js";import"./use-task-board-items-BhqAiSTX.js";import"./config-CODdLsbj.js";import"./use-task-board-events-D_nE-0RI.js";import"./use-decopilot-events-CuinN1iK.js";import"./sprints-C1z9xhcL.js";import"./select-D61WZk1O.js";import"./index-BdQq_4o_.js";import"./task-route-BlJmoQnB.js";import"./task-key-BCHdFiOO.js";import"./project-index-BZNO31D8.js";import"./use-tags-CWUQFfwf.js";import"./feedback-BqoIMOg7.js";import"./calendar-BI3ebszn.js";import"./alert-DBbkuMuk.js";import"./collapsible-DCKPxsPs.js";import"./use-copy-D-EOd5RI.js";import"./markdown-Da1uCT0e.js";import"./chat-context-DrqBnMGV.js";import"./use-entitlements-BsP1ZFGQ.js";import"./use-ai-providers-BZwoM77S.js";import"./index-BV2_mRhH.js";import"./usage-stats-DQ3lpFK8.js";import"./tool-namespace-COJtiQ4T.js";import"./form-BYhtZm8M.js";import"./utils-CVEq3hMx.js";import"./editor-classes-D2R7rw-c.js";import"./suggestion-R4Fq_9Vs.js";import"./index-DatF-lrE.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-CMNSM7NS.js";import"./use-connection-D5sijlzo.js";import"./github-repo-scope-C58hYmYC.js";import"./thread-sheet-body-DYxNtyxr.js";import"./useSuspenseInfiniteQuery-B6k_dV9w.js";import"./pair-BV2vQ0xm.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-mf0rf7E1.js";import"./types-CbWt7gMo.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-mcp-prompts-M3rH9N-2.js";import"./use-thread-outputs-BCCXEsgi.js";import"./file-type-icon-Bdzds_J6.js";import"./use-infinite-scroll-xgBjudJA.js";import"./task-status-CtyIOSPd.js";import"./separator-BVRCWUXh.js";import"./chat-draft-DSgKm45E.js";import"./feature-paywall-DadXALbq.js";import"./plan-ladder-Bu3Ap_FZ.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function qo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{qo as default};
@@ -1 +0,0 @@
1
- import{c as m,j as r}from"./index-BYLma6nR.js";import{C as i}from"./index-jDgMG-M0.js";import{R as p}from"./reports-tab-Bz7eFHcA.js";import"./use-mobile-ye6iRWDK.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./thread-route-CsxQz3Zx.js";import"./autosend-YTrROtL8.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./use-organization-settings-BQAdDt_y.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./site-url-en5df9c-.js";import"./use-reports-diagnostic-DrVbktZZ.js";import"./companions-core-DhUD88pR.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C58hYmYC.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";import"./projects-empty-state-MtIbG9US.js";import"./project-profile-dMAv1_XF.js";function vt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{vt as default};
@@ -1 +0,0 @@
1
- import{c as r,j as t}from"./index-BYLma6nR.js";import{OrgRepositoriesPage as m}from"./repositories-CFziQK7w.js";import{R as p}from"./require-capability-B1_EID-G.js";import"./repository-picker-CfUR1P6V.js";import"./ArrowLeft-DPiUStmH.js";import"./Plus-BRIZEm-m.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./label-CjHEjKyC.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./SearchMd-CHeeKxSQ.js";import"./ShoppingBag01-CpRghVvA.js";import"./use-debounced-value-8OKqfUuy.js";import"./use-organization-settings-BQAdDt_y.js";import"./schema-x3j4FByb.js";import"./task-board-CpInFlas.js";import"./LinkBroken01-CExBuGlw.js";import"./checkbox-CfVXlX4u.js";import"./Minus-BuxaQmfP.js";import"./Users01-Cy9FwTEl.js";import"./empty-state-aXWI3-Mm.js";import"./badge-BLj5oaM_.js";import"./alert-DBbkuMuk.js";import"./icon-button-Bkz9RDzV.js";import"./collapsible-DCKPxsPs.js";import"./select-D61WZk1O.js";import"./index-BdQq_4o_.js";import"./ChevronUp-BusAGBPt.js";import"./textarea-CjxhqOyq.js";import"./Trash01-BIlzZ3AH.js";import"./secret-picker-BjW_LSzb.js";import"./use-secrets-BS4OhqRX.js";import"./access-gate-BO57Fy6P.js";import"./capability-load-error-D_eJcYHf.js";function L(){const o=r.c(1);let i;return o[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(p,{capability:"file-configs:manage",area:"files",children:t.jsx(m,{})}),o[0]=i):i=o[0],i}export{L as default};
@@ -1 +0,0 @@
1
- import{c as x,l as h,m as j,j as i,P as u,aQ as g,O as P,n as R}from"./index-BYLma6nR.js";import{u as b}from"./use-mobile-ye6iRWDK.js";import{R as v}from"./index-jDgMG-M0.js";import{A as _}from"./plan-usage-card-BoXPSn1R.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./thread-route-CsxQz3Zx.js";import"./autosend-YTrROtL8.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./use-organization-settings-BQAdDt_y.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./badge-BLj5oaM_.js";import"./popover-N7uvMIxz.js";import"./toggle-group-CouAljQq.js";import"./active-indicator-CCMhAsc_.js";import"./use-ai-providers-BZwoM77S.js";import"./use-entitlements-BsP1ZFGQ.js";import"./plan-ladder-Bu3Ap_FZ.js";function Lt(){const t=x.c(16),d=b();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={select:B},t[0]=s):s=t[0];const l=h(s),c=!d&&"p-1.5";let o;t[1]!==c?(o=j("flex-1 min-h-0",c),t[1]=c,t[2]=o):o=t[2];const f=d?"plain":"card";let r;t[3]!==l?(r=l?i.jsx(_,{}):void 0,t[3]=l,t[4]=r):r=t[4];let m;t[5]!==r?(m=i.jsx(v,{actions:r}),t[5]=r,t[6]=m):m=t[6];let n;t[7]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(u.Content,{children:i.jsx(g,{children:i.jsx(P,{})})}),t[7]=n):n=t[7];let p;t[8]!==m?(p=i.jsxs(R.Breadcrumbs.Provider,{children:[m,n]}),t[8]=m,t[9]=p):p=t[9];let e;t[10]!==f||t[11]!==p?(e=i.jsx(u,{"data-testid":"settings-panel",variant:f,children:p}),t[10]=f,t[11]=p,t[12]=e):e=t[12];let a;return t[13]!==o||t[14]!==e?(a=i.jsx("div",{className:o,children:e}),t[13]=o,t[14]=e,t[15]=a):a=t[15],a}function B(t){return t.location.pathname.endsWith("/settings/ai-providers")}export{Lt as default};
@@ -1 +0,0 @@
1
- import{c as e,j as o}from"./index-BYLma6nR.js";import{V as a}from"./index-CyB8FMpF.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1 +0,0 @@
1
- import{c as u,r as g,j as n,J as G,a0 as F,a as E,l as O,b as P,n as y,L as H}from"./index-BYLma6nR.js";import{C as M}from"./chat-context-DrqBnMGV.js";import{C as x}from"./index-jDgMG-M0.js";import{L}from"./index-DVzGX6Yk.js";import{B as V}from"./blocks-preview-workspace-context-BtXgnaQN.js";import{e as T,p as J,s as K,a as W,r as U,T as $,u as R,b as z}from"./site-editor-toast-GFZxIyjf.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-DXgIeou6.js";import{C as Y}from"./content-tab-BZA7n8sL.js";import{T as Z}from"./tab-icon-glyph-isGtQ89b.js";import{r as tt}from"./resolve-tab-icon-j_0ryOQr.js";import et from"./agent-site-editor-uQzxcM8C.js";import"./autosend-YTrROtL8.js";import"./thread-route-CsxQz3Zx.js";import"./use-project-scope-CT4H1KgC.js";import"./repository-binding-BkD30urH.js";import"./use-mcp-client-Ch_pgKFL.js";import"./auth-eHRARwQ2.js";import"./thread-intent-D7K3VC0B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DPXy7vY-.js";import"./task-board-CpInFlas.js";import"./schema-x3j4FByb.js";import"./use-entitlements-BsP1ZFGQ.js";import"./use-ai-providers-BZwoM77S.js";import"./use-decopilot-events-CuinN1iK.js";import"./use-organization-settings-BQAdDt_y.js";import"./use-mobile-ye6iRWDK.js";import"./use-sidebar-collapsed-BJ9DvrgE.js";import"./use-chat-layout-state-COqGCuVV.js";import"./agent-icon-DbfcsXV4.js";import"./AlertCircle-Dhxv_VvX.js";import"./Tool01-Bw_Gs9HT.js";import"./ArrowUp-C5MIVxlv.js";import"./ArrowLeft-DPiUStmH.js";import"./LinkBroken01-CExBuGlw.js";import"./ShoppingBag01-CpRghVvA.js";import"./Globe04-BgmGeS07.js";import"./CheckCircle-DQiPh0bs.js";import"./ChevronUp-BusAGBPt.js";import"./ChevronSelectorVertical-C_LOUUD2.js";import"./UserSquare-BV7Jqoa-.js";import"./CreditCard01-B86ybMWX.js";import"./SwitchHorizontal01-DIK7cKae.js";import"./Key01-bRc0D6iU.js";import"./Minus-BuxaQmfP.js";import"./Monitor01-CWmH5Gyz.js";import"./Sun-fB3zW2OU.js";import"./Play-xrfH4Yz5.js";import"./Plus-BRIZEm-m.js";import"./SearchMd-CHeeKxSQ.js";import"./Trash01-BIlzZ3AH.js";import"./Upload01-DuNH7edt.js";import"./Users01-Cy9FwTEl.js";import"./XClose-DeJhJbxg.js";import"./Zap-Bp1s63-N.js";import"./tooltip-Bw3qe--M.js";import"./index-CorYIdad.js";import"./toolbar-icon-button-BuwmFHmx.js";import"./shell-layout-B0sxwrmk.js";import"./use-deployment-admin-CE6RFF-x.js";import"./admin-fetch-BhTJlAsX.js";import"./command-B13rzls6.js";import"./index-D2JCiu4r.js";import"./integration-icon-CknO8J8O.js";import"./project-icon-BFruPc7B.js";import"./use-navigate-to-agent-jetKe7lC.js";import"./use-debounced-value-8OKqfUuy.js";import"./new-project-dialog-EugQEueI.js";import"./label-CjHEjKyC.js";import"./repository-picker-CfUR1P6V.js";import"./github-icon-iZdKbq4s.js";import"./useInfiniteQuery-DmLlHKe0.js";import"./infiniteQueryObserver-deqizdYY.js";import"./collection-search-CcswFoQz.js";import"./legacy-admin-welcome-dialog-CCJK6F5I.js";import"./drawer-Cgf4oN4m.js";import"./required-auth-layout-DFKnKCtp.js";import"./use-org-sso-BxORdMDV.js";import"./sheet-DIBHWB2f.js";import"./resizable-CSObW6nE.js";import"./core.esm-CZ_suStd.js";import"./sortable.esm-D0_nmGGR.js";import"./context-menu-CoBBaT-n.js";import"./create-organization-dialog-CsKJ38nv.js";import"./form-BYhtZm8M.js";import"./project-apps-CmXREDt2.js";import"./use-recent-apps-CbbMz9JX.js";import"./feedback-BqoIMOg7.js";import"./textarea-CjxhqOyq.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DEsMUhZf.js";import"./use-blocks-v8-project-BM6s65-m.js";import"./use-voice-input-CaKlieI0.js";import"./popover-N7uvMIxz.js";import"./index-cvR6uZtJ.js";import"./checkbox-CfVXlX4u.js";import"./select-D61WZk1O.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-B4FS_bBy.js";import"./sandbox-git-api-DcqI6XE4.js";import"./parse-sections-4T2NkKUg.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BV2vQ0xm.js";import"./collapsible-DCKPxsPs.js";import"./use-copy-D-EOd5RI.js";import"./usage-stats-DQ3lpFK8.js";import"./tool-namespace-COJtiQ4T.js";import"./utils-CVEq3hMx.js";import"./markdown-Da1uCT0e.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-mf0rf7E1.js";import"./types-CbWt7gMo.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-connection-D5sijlzo.js";import"./use-mcp-prompts-M3rH9N-2.js";import"./use-thread-outputs-BCCXEsgi.js";import"./file-type-icon-Bdzds_J6.js";import"./section-array-field-DdQmkBVv.js";import"./blocks-tab-states-Bf5o8VNw.js";import"./empty-state-D5-IJmKF.js";import"./hosted-reconcile-DBUQw0wz.js";import"./slider-DRwKc5id.js";import"./index-BiJyBzx-.js";import"./tooltipContext-6k_VEZRX.js";import"./CategoricalChart-C7-Bo6NS.js";import"./index-DNAVFVoL.js";import"./switch-DqhVUDGb.js";import"./scroll-area-BUQV_LXH.js";import"./monaco-editor-DOm9wfYQ.js";import"./editor-Bl3rIcVI.js";import"./calendar-BI3ebszn.js";import"./editor-classes-D2R7rw-c.js";import"./toggle-group-CouAljQq.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-f-1LbAQg.js";import"./search-input-CuXTJoya.js";import"./tabs-D47HrxyT.js";import"./use-file-configs-BTHP9YUm.js";import"./asset-utils-MeaeLnLx.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-B7r5ICXq.js";import"./variant-matcher-override-DQF4FE1V.js";import"./use-fast-preview-draft-url-BfYOm91V.js";import"./useQueries-DWMnudrU.js";import"./device-hint-DlZdZHNJ.js";import"./alert-DBbkuMuk.js";import"./virtual-mcp-DzM6ah-n.js";import"./url-slug-_FVYRYFw.js";import"./app-preview-url-9Od4s8Sz.js";import"./agent-capabilities-CpYu5jEI.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-CpdEm_Eq.js";import"./view-header-Cv_9dvGb.js";import"./use-cms-publish-actions-BwV4F0O9.js";import"./use-content-sync-sIXdICgs.js";import"./mustache-BrMR8WIh.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-Gvsecy1g.js";import"./badge-BLj5oaM_.js";import"./empty-state-aXWI3-Mm.js";import"./collection-table-wrapper-u0Q_f-Jr.js";import"./table-BjC5y-mI.js";import"./site-draft-actions-CIqEMxV-.js";import"./separator-BVRCWUXh.js";import"./cms-store-drafts-gAOezeiH.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-DXd61UF-.js";import"./input-ZtRkRndM.js";import"./icon-button-Bkz9RDzV.js";import"./chat-draft-DSgKm45E.js";import"./use-deco-credits-DV2KUq3D.js";import"./input-CZkeDxU4.js";import"./suggestion-R4Fq_9Vs.js";import"./use-org-fs-DKzRfuIW.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DadXALbq.js";import"./plan-ladder-Bu3Ap_FZ.js";import"./add-connection-dialog-BC7Osx_R.js";import"./extract-connection-data-D7JZIpe1.js";import"./metadata-D72DunRR.js";import"./connection-CpcxYbw-.js";import"./connection-card-DbTrHYwh.js";import"./connection-slug-BlCRUE5Z.js";import"./schema-hGrr4U87.js";import"./connection-form-helpers-BFeW48f1.js";import"./authenticate-and-persist-oauth-CjW_HJT8.js";import"./mcp-oauth-HzcRe8g5.js";import"./mcp-oauth-CaiLBqRy.js";import"./collection-tabs-B6DksJOI.js";import"./use-infinite-scroll-xgBjudJA.js";import"./useSuspenseInfiniteQuery-B6k_dV9w.js";import"./use-task-board-events-D_nE-0RI.js";import"./save-changes-debug-nBi-n9eV.js";import"./site-draft-view-CRnAEeje.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const ot=e=>e;function it(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?ot:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(rt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function rt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=G(),{language:s}=r;let p;t[0]!==m?(p=N=>m({endpoint:N}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let S;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(S=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=S):S=t[12];const _=S;let j;return t[13]!==C||t[14]!==i||t[15]!==_?(j=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=j):j=t[16],j}const v="deco-serve",w="working-tree",nt={id:"",slug:"",name:"",logo:null},st={id:v,slug:v},mt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function pt(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?J(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&K(o),{candidates:W(o,U()),invalidLink:t&&!o}}const at=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function ct(){const e=u.c(6),t=P();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:lt},e[0]=o):o=e[0];const c=O(o);let m;e[1]!==t||e[2]!==c?(m=at.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(H,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(Z,{icon:tt({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function lt(e){return e.matches.at(-1)?.staticData.siteEditorView}function A(e){const t=u.c(14),{children:o}=e,c=P(),{connection:m}=z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(X,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function dt(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const D={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ut(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ft},e[0]=o):o=e[0];const c=O(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(ct,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(et,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...D,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ft(e){return e.matches.at(-1)?.staticData.siteEditorView}function ht(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...D,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},vt={connection:null,set:b,clear:b};function er(){const e=u.c(3),[t]=g.useState(pt);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(F,{org:nt,project:st,children:n.jsx(it,{candidates:t.candidates,invalidLink:t.invalidLink,shell:kt,editor:xt})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function xt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(dt,{onLost:t}),n.jsx(M,{value:mt,children:n.jsx(V,{children:n.jsx(ut,{})})})]})}function kt(e){return n.jsx($.Provider,{value:vt,children:n.jsx(ht,{children:e})})}function or(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(A,{children:n.jsx(Q,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function ir(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(A,{children:n.jsx(Y,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{ir as SiteEditorContent,or as SiteEditorPreview,er as default};
@@ -1 +0,0 @@
1
- import{c as $,q as W,i as C,K as g,eX as Ue,d2 as Un,aE as Mt,aF as K,b9 as Qe,ba as Qn,e8 as De,e6 as Cn,bV as pe,eY as Fn,eZ as Bn,r as L,e_ as Vn,e$ as G,f0 as X,bA as Hn,a as Jn,as as _e,a4 as Wn,bz as At,f1 as Gn,f2 as Lt,aq as Yn,bh as F,bo as Ut,f3 as zn,f4 as Xn,f5 as Zn,t as ne,j as z}from"./index-BYLma6nR.js";import{u as Ce}from"./repository-binding-BkD30urH.js";import{e as Qt}from"./backoff-CrEUbyZT.js";import{b as Se}from"./sandbox-url-D3mC8qhT.js";import{u as qn}from"./chat-context-DrqBnMGV.js";import{i as Kn,u as eo}from"./use-sandbox-events-DEsMUhZf.js";import{u as Fe}from"./use-blocks-v8-project-BM6s65-m.js";import{u as Ct}from"./use-voice-input-CaKlieI0.js";import{s as ut}from"./thread-intent-D7K3VC0B.js";import{s as to}from"./utils-B4FS_bBy.js";import{a as no}from"./sandbox-git-api-DcqI6XE4.js";const p={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class S extends Error{code;data;constructor(t,n,o){super(n),this.name="ContentProtocolError",this.code=t,this.data=o}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(t){return new S(t.code,t.message,t.data)}}const te="deco-content",Te={major:1},Ft=1;async function oo(e){let t=new Uint8Array(await e.arrayBuffer());if(t[0]===31&&t[1]===139){const n=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));t=new Uint8Array(await new Response(n).arrayBuffer())}return JSON.parse(new TextDecoder().decode(t))}const Re={major:Te.major,minor:Ft},Bt=`the endpoint speaks an older ${te} than this client needs (${Re.major}.${Re.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function ae(e,t,n){const o={reason:t,required:{...Re}};if(n){o.actual={protocol:n.protocol,major:n.version?.major,minor:n.version?.minor};const s=n.server;typeof s?.name=="string"&&typeof s.version=="string"&&(o.server={name:s.name,version:s.version})}return new S(p.Unsupported,e,o)}function Vt(e){const t=e??{},{protocol:n,version:o}=t;if(n!==te)throw ae(`the endpoint speaks ${JSON.stringify(n)}, not ${te}`,"protocol",t);if(o?.major!==Te.major)throw ae(`the endpoint speaks ${te} ${String(o?.major)}.x; this client speaks ${Te.major}.x`,"major",t);if(typeof o.minor!="number"||o.minor<Ft)throw ae(Bt,"outdated",t);return e}function ft(e,t){return t.code===p.MethodNotFound&&e.startsWith("changes.")?ae(Bt,"outdated"):S.from(t)}function Be(e){const t=e.fetch??(r=>fetch(r));let n=1;async function o(r){const i={"content-type":"application/json",accept:"application/json",...e.headers},a=await t(new Request(e.endpoint,{method:"POST",headers:i,body:JSON.stringify(r)}));let c;try{c=await oo(a)}catch{throw new S(p.Unavailable,`the endpoint answered HTTP ${a.status} without a JSON-RPC body`)}if(!a.ok||!Array.isArray(c)&&c?.id===null){const l=c?.error;throw l?S.from(l):new S(p.Unavailable,`the endpoint answered HTTP ${a.status}`)}return c}const s=async(r,i)=>{const a=n++,c=await o({jsonrpc:"2.0",id:a,method:r,params:i??{}});if(c.error)throw ft(r,c.error);return c.result};return{call:s,describe:async()=>Vt(await s("describe")),schemaGet:r=>s("schema.get",r),blocksList:r=>s("blocks.list",r),blocksApply:r=>s("blocks.apply",r),changesList:r=>s("changes.list",r),changesGet:r=>s("changes.get",r),changesDiscard:r=>s("changes.discard",r),async batch(r){const i=r.map(()=>n++),a=await o(r.map((l,u)=>({jsonrpc:"2.0",id:i[u],method:l.method,params:l.params??{}}))),c=new Map(a.map(l=>[l.id,l]));return i.map((l,u)=>{const d=c.get(l);return d?d.error?{ok:!1,error:ft(r[u].method,d.error)}:{ok:!0,result:d.result}:{ok:!1,error:new S(p.InternalError,"no response for this call")}})}}}function Ve(e){return e&&!e.edited?{ifNoneMatch:e.revision}:{}}const dt=20,ht=5,gt=500;function He(e){return e instanceof S?e.code===p.MethodNotFound?!0:e.code===p.Unsupported&&e.data?.reason==="outdated":!1}function de(e,t,n=e){return n&&n!==e?n:t.notModified?e?{...e,base:t.base}:null:{revision:t.revision,base:t.base,changes:t.changes}}async function so(e,t,n){const o=g.contentChanges(n),s=e.getQueryData(o),r=await t.changesList(Ve(s)),i=de(s,r,e.getQueryData(o));if(i)return i;const a=await t.changesList({}),c=de(void 0,a,e.getQueryData(o));if(!c)throw new S(p.InternalError,"changes.list returned notModified without a cached list");return c}async function Ht(e,t){const n=[];for(let r=0;r<t.length;r+=dt)n.push(t.slice(r,r+dt));const o=Object.create(null),s=[];for(let r=0;r<n.length;r+=ht){const i=await e.batch(n.slice(r,r+ht).map(a=>({method:"changes.get",params:{names:a}})));for(const a of i){if(!a.ok)throw a.error;const c=a.result;Object.assign(o,c.entries),s.push(...c.diagnostics)}}return{entries:o,diagnostics:s}}async function xr(e,t){let n={revision:"",versions:{}};for(let o=0;o<t.length;o+=gt){const s=t.slice(o,o+gt),r=await e.changesDiscard({names:s.map(i=>i.name),ifMatch:Object.fromEntries(s.map(i=>[i.name,i.version]))});n={revision:r.revision,versions:{...n.versions,...r.versions}}}return n}function Pr(e){return e instanceof S&&e.code===p.Conflict}function Je(e){return e?.kind==="protocol"?e:null}function $r(e,t,n){const o=$.c(14);let s;o[0]!==n?(s={},o[0]=n,o[1]=s):s=o[1];const r=s,i=W();let a;o[2]!==e?(a=Je(e),o[2]=e,o[3]=a):a=o[3];const c=a,l=!!c&&!!t&&r.enabled!==!1;let u;o[4]!==t?(u=g.contentChanges(t??""),o[4]=t,o[5]=u):u=o[5];let d;o[6]!==t||o[7]!==l||o[8]!==c||o[9]!==i?(d=l?()=>so(i,c.client,t):Ue,o[6]=t,o[7]=l,o[8]=c,o[9]=i,o[10]=d):d=o[10];let f;return o[11]!==u||o[12]!==d?(f={queryKey:u,queryFn:d,staleTime:0},o[11]=u,o[12]=d,o[13]=f):f=o[13],C(f)}function ro(e){if(!e)return"";const t=Object.entries(e.changes).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>[n,o.kind,o.version,o.baseVersion]);return JSON.stringify([e.revision,e.base.revision,e.base.resolvedRef,t])}function jr(e,t,n){const o=$.c(14);let s;o[0]!==e?(s=Je(e),o[0]=e,o[1]=s):s=o[1];const r=s;let i;o[2]!==n?(i=n?Object.keys(n.changes):[],o[2]=n,o[3]=i):i=o[3];const a=i,c=!!r&&!!t&&!!n&&a.length>0;let l;o[4]!==t||o[5]!==n?(l=g.contentChangeSides(t??"",ro(n)),o[4]=t,o[5]=n,o[6]=l):l=o[6];let u;o[7]!==c||o[8]!==a||o[9]!==r?(u=c?()=>Ht(r.client,a):Ue,o[7]=c,o[8]=a,o[9]=r,o[10]=u):u=o[10];let d;return o[11]!==l||o[12]!==u?(d={queryKey:l,queryFn:u,staleTime:Number.POSITIVE_INFINITY},o[11]=l,o[12]=u,o[13]=d):d=o[13],C(d)}function Nr(e,t,n){const o=$.c(16);let s;o[0]!==e?(s=Je(e),o[0]=e,o[1]=s):s=o[1];const r=s;let i,a,c,l;if(o[2]!==t||o[3]!==n?.changes||o[4]!==r){const f=Object.entries(n?.changes??{}).filter(uo).map(lo).sort(co);a=f.map(ao);const h=JSON.stringify(f.map(io));i=!!r&&!!t&&a.length>0,l=C,c=g.contentDeletedCopies(t??"",h),o[2]=t,o[3]=n?.changes,o[4]=r,o[5]=i,o[6]=a,o[7]=c,o[8]=l}else i=o[5],a=o[6],c=o[7],l=o[8];let u;o[9]!==i||o[10]!==a||o[11]!==r?(u=i?async()=>{const f=await Ht(r.client,a),h=Object.create(null);for(const[v,b]of Object.entries(f.entries))h[v]=b.before&&typeof b.before=="object"?b.before:null;return h}:Ue,o[9]=i,o[10]=a,o[11]=r,o[12]=u):u=o[12];let d;return o[13]!==c||o[14]!==u?(d={queryKey:c,queryFn:u,staleTime:Number.POSITIVE_INFINITY,placeholderData:Un},o[13]=c,o[14]=u,o[15]=d):d=o[15],l(d)}function io(e){return[e.name,e.base]}function ao(e){return e.name}function co(e,t){return e.name<t.name?-1:e.name>t.name?1:0}function lo(e){const[t,n]=e;return{name:t,base:n.baseVersion??""}}function uo(e){const[,t]=e;return t.kind==="delete"}function Jt(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")return!1;const n=t.hostname.toLowerCase();return n==="127.0.0.1"||n==="[::1]"||n==="localhost"}catch{return!1}}function he(e){try{const t=new URL(e);return(t.hostname==="127.0.0.1"||t.hostname==="[::1]")&&(t.hostname="localhost"),t.href}catch{return e}}const Wt=Mt({endpoint:K().max(2048).refine(e=>Jt(e)&&new URL(e).pathname==="/rpc").transform(he)});function Mr(e){const t=new URLSearchParams(e.replace(/^#/,"")),n=Wt.safeParse({endpoint:t.get("endpoint")??""});return n.success?n.data:null}function Gt(e){const t=Wt.safeParse(e);return t.success?t.data:null}const Yt="studio:deco-serve-last";function Ar(e){try{localStorage.setItem(Yt,JSON.stringify(e))}catch{}}function Lr(){try{const e=localStorage.getItem(Yt);return e?Gt(JSON.parse(e)):null}catch{return null}}function Ur(e){try{return new URL(he(e)).host}catch{return e}}function fo(e,t=1e4){return Math.min(1e3*2**Math.max(0,e-1),t)}const ho="http://localhost:4545/rpc";class We extends Error{constructor(t="the endpoint isn't deco serve"){super(t),this.name="NotDecoServeError"}}function go(e){if(e instanceof We)return{reason:"not-deco-serve"};if(!(e instanceof S))return{reason:"not-answering"};switch(e.code){case p.Unauthorized:case p.MethodNotFound:return{reason:"outdated"};case p.Unsupported:return He(e)?{reason:"outdated"}:{reason:"version-mismatch"};case p.Unavailable:return/^the endpoint answered HTTP/.test(e.message)?{reason:"not-deco-serve"}:{reason:"error",detail:e.message};default:return{reason:"error",detail:e.message}}}function Qr(e,t){if(e)return[he(e.endpoint)];const n=[t?.endpoint,ho].filter(o=>!!o).map(he);return[...new Set(n)]}const vo=Mt({blocks:De(K(),De(K(),Cn()).refine(Qe)),versions:De(K(),K().min(1)),missing:Qn(K())});function bo(e,t){const n=vo.parse(e),o=Object.keys(n.blocks),s=Object.keys(n.versions),r=[...o,...n.missing],i=new Set(t);if(s.length!==o.length||o.some(a=>!Object.hasOwn(n.versions,a))||r.length!==i.size||new Set(r).size!==r.length||r.some(a=>!i.has(a)))throw new Error("The CMS block response did not account for the requested names");return n}function oe(e,t){const n=e.index?.entries[t];return!!n&&Qe(e.blocks[t])&&e.versions[t]===n.version}function wo(e,t,n){const o=new Map;let s=!1;for(const[r,i]of Object.entries(n.blocks)){const a=t.index?.entries[r];if(a){if(n.versions[r]!==a.version){s||=a.version===e.index?.entries[r]?.version;continue}t.blocks[r]!==e.blocks[r]||t.versions[r]!==e.versions[r]||o.set(r,i)}}return s||=n.missing.some(r=>!!t.index?.entries[r]),{blocks:o.size?{...t.blocks,...Object.fromEntries(o)}:t.blocks,versions:o.size?{...t.versions,...Object.fromEntries([...o.keys()].map(r=>[r,n.versions[r]]))}:t.versions,refreshIndex:s}}function mo(e,t,n){return!!e.index&&t.every(o=>e.index?.entries[o]?oe(e,o)&&(!n||n[o]===e.blocks[o]):!n||n[o]===void 0)}const vt=50,bt=10;function po(e,t=n=>fetch(n)){let n=1;return{async batch(o){const s=o.map(()=>n++),r=await t(new Request(e,{method:"POST",headers:{"content-type":"application/json"},credentials:"include",signal:pe(),body:JSON.stringify(o.map((c,l)=>({jsonrpc:"2.0",id:s[l],method:c.method,params:c.params??{}})))}));if(!r.ok)throw new S(p.Unavailable,`the hosted CMS answered ${r.status}`);const i=await r.json(),a=new Map((Array.isArray(i)?i:[]).map(c=>[c.id,c]));return s.map(c=>{const l=a.get(c);return l?l.error?{ok:!1,error:S.from(l.error)}:{ok:!0,result:l.result}:{ok:!1,error:new S(p.InternalError,"no response for this call")}})}}}function So(e,t){if(!e)return t??{};const n={};for(const[o,s]of Object.entries(e.entries)){if(t&&Object.hasOwn(t,o)){n[o]=t[o];continue}n[o]={[Bn]:!0,...s.meta?.type?{__resolveType:s.meta.type}:{},...s.meta?.path!==void 0?{path:s.meta.path}:{},...s.meta?.refs?.length?{[Fn]:s.meta.refs}:{}}}for(const[o,s]of Object.entries(t??{}))Object.hasOwn(n,o)||(n[o]=s);return n}function yo(e,t){return e?.entries[t]?.meta?.refs??[]}function ko(e,t){return Object.hasOwn(e.draft,t)?e.draft[t]?.version??null:null}function Ge(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function xe(e,t){if(Array.isArray(e)){for(const n of e)xe(n,t);return}if(Ge(e))for(const[n,o]of Object.entries(e))n==="__resolveType"&&typeof o=="string"?t.add(o):xe(o,t)}function zt(e,t){if(!Ge(e))return;const n={};typeof e.__resolveType=="string"&&(n.type=e.__resolveType),typeof e.path=="string"&&(n.path=e.path);const o=new Set;xe(e,o);const s=[...o].filter(r=>t.has(r)).sort();return s.length>0&&(n.refs=s),Object.keys(n).length>0?n:void 0}function Xt(e,t,n,o){G(e),e.setQueryData(g.contentIndex(t),s=>{if(!s)return s;const r={...s.entries},i={...s.draft},a=new Set([...Object.keys(r),...Object.keys(o)]);for(const[c,l]of Object.entries(n)){const u=i[c]?.editor??null;if(l===null||l===X){delete r[c],i[c]={operation:"delete",version:X,editor:u};continue}const d=zt(o[c],a);r[c]={version:l,...d?{meta:d}:{}},i[c]={operation:"set",version:l,editor:u}}return{...s,entries:r,draft:i}})}function Oo(e,t,n,o){e.setQueryData(g.contentIndex(t),s=>{if(!s)return s;const r={...s.draft},i={...s.entries};if(o===null)delete r[n];else if(r[n]={operation:o.block===null?"delete":"set",version:o.version,editor:r[n]?.editor??null},o.block===null)delete i[n];else{const a=new Set([...Object.keys(i),n]),c=zt(o.block,a);i[n]={version:o.version,...c?{meta:c}:{}}}return{...s,entries:i,draft:r}})}const wt=new WeakMap;async function Ye(e,t,n,o,s=new Set){const r=e.getQueryData(g.contentIndex(n));if(!r)throw new S(p.Unavailable,"The CMS index is not loaded yet");let i=wt.get(e);i||(i=new Map,wt.set(e,i));const a=e.getQueryData(g.decofile(n))??{},c=e.getQueryData(g.contentVersions(n))??{},l=[],u=[];for(const f of new Set(o)){const h=r.entries[f];if(!h||s.has(f)||Qe(a[f])&&c[f]===h.version)continue;const v=i.get(`${n}\0${f}`);v?l.push(v):u.push(f)}if(u.length>0){const f=Do(e,t,n,u);for(const h of u){const v=`${n}\0${h}`;i.set(v,f),f.catch(()=>{}).finally(()=>{i.get(v)===f&&i.delete(v)})}l.push(f)}await Promise.all(l);const d=ge(e,n);if(o.some(f=>d.index?.entries[f]&&!s.has(f)&&!oe(d,f)))throw new S(p.Unavailable,"A CMS block changed while loading; try again")}async function Eo(e,t,n,o,s){if(!t){const i=o?.[s];return Ge(i)&&!Hn(i)?i:void 0}await Ye(e,t,n,[s]);const r=ge(e,n);return r.index?.entries[s]&&oe(r,s)?r.blocks[s]:void 0}function ge(e,t){return{index:e.getQueryData(g.contentIndex(t)),blocks:e.getQueryData(g.decofile(t))??{},versions:e.getQueryData(g.contentVersions(t))??{}}}async function Do(e,t,n,o){const s=ge(e,n),r=[];for(let i=0;i<o.length;i+=vt)r.push(o.slice(i,i+vt));for(let i=0;i<r.length;i+=bt){const a=r.slice(i,i+bt),c=await t.batch(a.map(l=>({method:"cms.blocks",params:{names:l}})));if(c.length!==a.length)throw new S(p.InternalError,"Incomplete CMS batch response");for(const[l,u]of c.entries()){if(!u.ok)throw u.error;const d=bo(u.result,a[l]),f=ge(e,n),h=wo(s,f,d);if(G(e),h.blocks!==f.blocks&&e.setQueryData(g.decofile(n),h.blocks),h.versions!==f.versions&&e.setQueryData(g.contentVersions(n),h.versions),h.refreshIndex)throw e.invalidateQueries({queryKey:g.decofile(n),exact:!0},{cancelRefetch:!1}),new S(p.Unavailable,"The CMS index changed while loading blocks; try again")}}}function ze(e){const t=$.c(4);let n;t[0]!==e?(n=g.contentIndex(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:Io,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s}async function Io(){throw new Error("the content index is set by the poll")}function mt(e,t){const n=$.c(8);let o;n[0]!==t?(o=Vn(t),n[0]=t,n[1]=o):o=n[1];const s=o;let r;n[2]!==e||n[3]!==s?(r=a=>e.getQueryCache().subscribe(c=>{c.query.queryHash===s&&a()}),n[2]=e,n[3]=s,n[4]=r):r=n[4];let i;return n[5]!==e||n[6]!==t?(i=()=>e.getQueryData(t),n[5]=e,n[6]=t,n[7]=i):i=n[7],L.useSyncExternalStore(r,i)}const pt=3e4;function _o(e){if(!(e instanceof S))return;const t=e.data?.retryAfterMs;return typeof t=="number"&&t>0?t:void 0}function To(e,t,n,o){const s=$.c(15),r=W(),i=ze(t);let a;s[0]!==t?(a=g.decofile(t),s[0]=t,s[1]=a):a=s[1];const c=mt(r,a);let l;s[2]!==t?(l=g.contentVersions(t),s[2]=t,s[3]=l):l=s[3];const u=mt(r,l),d=o?.withRefs??!1,f=new Set(n);if(d)for(const m of n)for(const E of yo(i,m))f.add(E);const h=[...f].filter(m=>!!i?.entries[m]).sort(),v={index:i,blocks:c??{},versions:u??{}},b=h.some(m=>!oe(v,m)),w=JSON.stringify(h.map(m=>[m,i?.entries[m]?.version,oe(v,m)])),[R,k]=L.useState(null),[N,I]=L.useState(0),_=R?.key===w?R:null;L.useEffect(()=>{if(!e||!w)return;let m=!0;const E=JSON.parse(w).map(Po);return Ye(r,e,t,E).then(()=>{m&&k(j=>j?.key===w?null:j)},j=>{m&&k(U=>({key:w,count:(U?.key===w?U.count:0)+1,retryAfterMs:_o(j)}))}),()=>{m=!1}},[e,r,t,w,N]);let T;s[4]!==_||s[5]!==I?(T=()=>{if(!_)return;const m=Math.min(pt,_.retryAfterMs??Qt(pt,1e3,_.count-1,2,.5)),E=setTimeout(()=>I(xo),m);return()=>clearTimeout(E)},s[4]=_,s[5]=I,s[6]=T):T=s[6];let y;s[7]!==_?(y=[_],s[7]=_,s[8]=y):y=s[8],L.useEffect(T,y);const O=!e||mo(v,[...f],o?.listing),D=!!e&&b&&_!==null;let x;s[9]!==I?(x=()=>I(Ro),s[9]=I,s[10]=x):x=s[10];let M;return s[11]!==O||s[12]!==D||s[13]!==x?(M={ready:O,failed:D,retry:x},s[11]=O,s[12]=D,s[13]=x,s[14]=M):M=s[14],M}function Ro(e){return e+1}function xo(e){return e+1}function Po(e){const[t]=e;return t}const Zt=L.createContext(null);function $o(e){const t=$.c(24),n=L.useContext(Zt),o=Fe(n?null:e),{data:s}=Jn.useSession(),r=s?.user?.id??"",i=!!e&&!!r;let a;t[0]!==i||t[1]!==r||t[2]!==e?(a=i?_e.decoServeConnection(r,e):null,t[0]=i,t[1]=r,t[2]=e,t[3]=a):a=t[3];const[c,l]=yt(a);let u;t[4]!==i||t[5]!==r||t[6]!==e?(u=i?_e.decoServeEndpoint(r,e):null,t[4]=i,t[5]=r,t[6]=e,t[7]=u):u=t[7];const[d,f]=yt(u);if(n)return n;let h;t[8]!==c||t[9]!==i||t[10]!==o?(h=i&&o?Gt(c):null,t[8]=c,t[9]=i,t[10]=o,t[11]=h):h=t[11];const v=h,b=i&&o&&typeof d=="string"?d:null;let w;t[12]!==f||t[13]!==l||t[14]!==i?(w=N=>{i&&(l(N),f(N.endpoint))},t[12]=f,t[13]=l,t[14]=i,t[15]=w):w=t[15];let R;t[16]!==l||t[17]!==i?(R=()=>{i&&l(null)},t[16]=l,t[17]=i,t[18]=R):R=t[18];let k;return t[19]!==v||t[20]!==b||t[21]!==w||t[22]!==R?(k={connection:v,lastEndpoint:b,set:w,clear:R},t[19]=v,t[20]=b,t[21]=w,t[22]=R,t[23]=k):k=t[23],k}function St(e){try{const t=localStorage.getItem(e);return t===null?null:JSON.parse(t)}catch{return null}}function yt(e){const t=$.c(17),n=W(),o=e??"";let s;t[0]!==o?(s=["localStorage",o],t[0]=o,t[1]=s):s=t[1];const r=s;let i,a;t[2]!==e?(i=()=>e?St(e):null,a=()=>e?St(e):null,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]);const c=!!e;let l;t[5]!==r||t[6]!==i||t[7]!==a||t[8]!==c?(l={queryKey:r,queryFn:i,initialData:a,enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[5]=r,t[6]=i,t[7]=a,t[8]=c,t[9]=l):l=t[9];const{data:u}=C(l);let d;t[10]!==e||t[11]!==n||t[12]!==r?(d=b=>{if(e){try{b===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(b))}catch{}n.setQueryData(r,b)}},t[10]=e,t[11]=n,t[12]=r,t[13]=d):d=t[13];const f=d,h=e?u??null:null;let v;return t[14]!==f||t[15]!==h?(v=[h,f],t[14]=f,t[15]=h,t[16]=v):v=t[16],v}function qt(e,t=""){return{source:e,cacheKeySuffix:e==="github"?"":e==="sandbox"?":sandbox":`:serve:${t}`}}function jo(e){return JSON.stringify([e.kind==="legacy"?"legacy":"protocol",e.source,e.cacheKeySuffix])}function Cr(e){return e.kind==="protocol"||e.kind==="unavailable"}function Fr(e){const t=e.hasOrg?e.orgFlag:!1,{backend:n}=e;return n===null||n==="legacy"?t:!0}function Br(e,t,n){return t!=="github"||!n?!1:e.kind==="pending"?!0:e.kind==="unavailable"&&e.siteNotOwned?!1:(e.kind==="protocol"||e.kind==="unavailable")&&e.source==="github"}function Vr(e){if(e.kind!=="protocol"||e.source!=="local")return null;const t=e.describe.preview?.url;return t&&Jt(t)?t:null}function Hr(e,t){return e.kind!=="protocol"||e.source!=="local"||!e.describe.assets||!t?null:new URL(t.endpoint).origin}function Kt(e){return e.hasServeConnection?"local":e.runtime==="sandbox"?"sandbox":"github"}function No(e){if(!e.hasProject)return"legacy";const t=Kt(e);if(t==="local")return"protocol-local";if(!e.v8)return"legacy";if(t==="sandbox"){const o=e.sandboxSite;return o==="ready"?"protocol-sandbox":o==="error"?"retrying-sandbox":"pending"}const n=e.githubSite;return n==="ready"?"protocol-github":n==="not-owned"?"site-not-owned-github":n==="error"?"unavailable-github":"pending"}function Mo(e){return{github:e.v8&&e.mode==="github",sandbox:e.v8&&e.mode==="sandbox"&&e.workingTreeReady}}function kt(e){return e.isError||e.errorUpdateCount>0}function Ao(e,t,n){if(!t||n.size===0)return e;const o={...e};for(const s of n)Object.hasOwn(t,s)?o[s]=t[s]:delete o[s];return o}function Lo(e){if(!e||typeof e!="object")return[];const t=e,n=[];return typeof t.blockKey=="string"&&n.push(t.blockKey),t.writes&&typeof t.writes=="object"&&n.push(...Object.keys(t.writes)),Array.isArray(t.deletes)&&n.push(...t.deletes.filter(o=>typeof o=="string")),n}const en="__noSchema";function tn(){return{manifest:{blocks:{}},schema:{definitions:{},root:{}},[en]:!0}}function Jr(e){return!!e&&e[en]===!0}function Xe(e){if(!e.ok)return e.error.code===p.NotFound;const t=e.result;return t.notModified===!1&&t.schema===null}function Uo(e,t){return(typeof t.name=="string"?t.name.trim():"")||e}const Qo=(e,t)=>e.label.localeCompare(t.label)||e.key.localeCompare(t.key);function Wr(e){const t=new Map;for(const[n,o]of Object.entries(e)){const s=o&&typeof o=="object"&&!Array.isArray(o)?o:{},r=typeof s.__resolveType=="string"?s.__resolveType:null,i=t.get(r)??[];i.push({key:n,label:Uo(n,s)}),t.set(r,i)}return[...t.entries()].map(([n,o])=>({resolveType:n,blocks:o.sort(Qo)})).sort((n,o)=>n.resolveType===null?1:o.resolveType===null?-1:Ot(n.resolveType).localeCompare(Ot(o.resolveType))||n.resolveType.localeCompare(o.resolveType))}function Ot(e){return(e.split("/").filter(Boolean).at(-1)??e).replace(/\.(tsx?|jsx?)$/,"")||e}function Et(e,t,n){if(t.length===0)return n;const[o,...s]=t;if(Array.isArray(e)&&typeof o=="number"){const r=e.slice();return r[o]=Et(e[o],s,n),r}if(e&&typeof e=="object"&&typeof o=="string"){const r=e,i={};for(const a of Object.keys(r))i[a]=a===o?Et(r[a],s,n):r[a];return i}return e}function Gr(e){if(e.trim()==="")return null;const t=Number(e);return Number.isFinite(t)?t:null}class Dt extends Error{}const Ze="site-not-owned";async function Co(e){return e.status!==409?!1:(await e.clone().json().catch(()=>null))?.code==="site_not_owned"}async function Fo(e,t=n=>fetch(n)){const n=Be({endpoint:e,fetch:async o=>{const s=await t(new Request(o,{signal:pe(o.signal)}));if(await Co(s))throw new Dt;return s}});try{return await Ke(n)}catch(o){if(o instanceof Dt)return Ze;throw o}}async function Bo(e,t,n){await t();const o=await Fo(e,n);return o===Ze?o:{...o,hosted:po(e,n)}}const qe=5e3;function Vo(e){if(!e.site)throw new Error("this project names no site");return Gn(e.site,e.branch)}function Ho(e){return new URL(Se(e,"rpc"),window.location.origin).href}async function Ke(e){const[t,n]=await e.batch([{method:"describe"},{method:"schema.get"}]);if(!t?.ok)throw t?.error??new Error("no describe");if(t.result?.protocol!==te)throw new We;const s=Vt(t.result);if(!n)throw new Error("no schema.get");if(Xe(n))return{client:e,describe:s,hasSchema:!1};if(n.ok)return{client:e,describe:s,hasSchema:!0};throw n.error}function Jo(e,t=n=>fetch(n)){return Ke(Be({endpoint:e,fetch:n=>t(new Request(n,{signal:pe(n.signal)}))}))}function re(e,t){const n=$.c(40),{org:o}=Wn(),{connection:s}=$o(e),{runtime:r}=Ct(e),i=L.useContext(Zt),a=Fe(e),c=At(Ce(e)?.metadata),l=Kt({hasServeConnection:!!s,runtime:r}),u=qt(l,s?.endpoint??""),d=qn()?.taskId??null,f=Kn(eo().lifecycle.phase),h=W(),v=Mo({mode:l,v8:a,workingTreeReady:f}),b=v.github&&!!o.slug&&!!e&&!!t,w=C({queryKey:g.contentBackend(o.slug,e??"",t??"","github"),queryFn:()=>Bo(Vo({orgSlug:o.slug,site:c,branch:t}),()=>Lt(c,t)),enabled:b,staleTime:Number.POSITIVE_INFINITY,...It}),R=v.sandbox&&!!o.slug&&!!e&&!!t;let k;n[0]!==t||n[1]!==o.slug||n[2]!==d||n[3]!==e?(k=()=>Jo(Ho({orgSlug:o.slug,virtualMcpId:e,branch:t,threadId:d})),n[0]=t,n[1]=o.slug,n[2]=d,n[3]=e,n[4]=k):k=n[4];const N=C({queryKey:g.contentBackend(o.slug,e??"",t??"","sandbox",d??""),queryFn:k,enabled:R,staleTime:Number.POSITIVE_INFINITY,...It}),I=!!s;let _;n[5]!==s?.endpoint||n[6]!==o.slug||n[7]!==e?(_=g.contentBackend(o.slug,e??"","local",s?.endpoint??""),n[5]=s?.endpoint,n[6]=o.slug,n[7]=e,n[8]=_):_=n[8];let T;n[9]!==s?(T=()=>qo(s.endpoint),n[9]=s,n[10]=T):T=n[10];let y;n[11]!==I||n[12]!==_||n[13]!==T?(y={queryKey:_,queryFn:T,enabled:I,staleTime:Number.POSITIVE_INFINITY,retry:Yo,retryDelay:Go,refetchInterval:Wo},n[11]=I,n[12]=_,n[13]=T,n[14]=y):y=n[14];const O=C(y);let D;n[15]!==s?.endpoint||n[16]!==o.slug||n[17]!==e?(D=g.contentBackend(o.slug,e??"","local",s?.endpoint??""),n[15]=s?.endpoint,n[16]=o.slug,n[17]=e,n[18]=D):D=n[18];const x=D;let M;n[19]!==s?.endpoint||n[20]!==o.slug||n[21]!==e?(M=g.contentBackend(o.slug,e??"","local-describe",s?.endpoint??""),n[19]=s?.endpoint,n[20]=o.slug,n[21]=e,n[22]=M):M=n[22];let m;n[23]!==O.data||n[24]!==x||n[25]!==h?(m=async()=>{try{return await O.data.client.describe()}catch(q){const Ln=q;throw h.invalidateQueries({queryKey:x,exact:!0},{cancelRefetch:!1}),Ln}},n[23]=O.data,n[24]=x,n[25]=h,n[26]=m):m=n[26];const E=!!O.data&&!i;let j;n[27]!==M||n[28]!==m||n[29]!==E?(j={queryKey:M,queryFn:m,enabled:E,refetchInterval:qe,retry:!1},n[27]=M,n[28]=m,n[29]=E,n[30]=j):j=n[30];const A=C(j).data??O.data?.describe,Q=No({hasProject:!!e,hasServeConnection:!!s,runtime:r,v8:a,githubSite:w.data===Ze?"not-owned":w.data?"ready":kt(w)?"error":"loading",sandboxSite:zo({data:N.data,isError:kt(N),workingTreeReady:f})});if(Q==="pending")return{kind:"pending",...u};if(Q==="retrying-sandbox")return{kind:"pending",retrying:"sandbox",...u};if(Q==="legacy")return{kind:"legacy"};if(Q==="protocol-github")return{...Pe(u,w.data),site:c};if(Q==="site-not-owned-github")return{kind:"unavailable",...u,siteNotOwned:!0};if(Q==="protocol-sandbox")return Pe(u,N.data);if(Q==="unavailable-github"){let q;return n[31]!==u?(q={kind:"unavailable",...u},n[31]=u,n[32]=q):q=n[32],q}const P=O.error??O.failureReason,V=s?.endpoint??"";let H;return n[33]!==A||n[34]!==O.data||n[35]!==O.failureCount||n[36]!==O.isError||n[37]!==V||n[38]!==P?(H=Zo({probed:O.data,isError:O.isError,failureCount:O.failureCount,failure:P,describe:A,endpoint:V}),n[33]=A,n[34]=O.data,n[35]=O.failureCount,n[36]=O.isError,n[37]=V,n[38]=P,n[39]=H):H=n[39],H}function Wo(e){return e.state.status==="error"||e.state.data?.hasSchema===!1?qe:!1}function Go(e){return fo(e+1)}function Yo(e,t){return!(t instanceof S)&&!(t instanceof We)}function zo(e){return e.data!==void 0?"ready":e.workingTreeReady?e.isError?"error":"loading":"unavailable"}const Xo=3;function Zo(e){const t=qt("local",e.endpoint),n=e.probed?Pe(t,{...e.probed,describe:e.describe??e.probed.describe}):null;return e.isError||e.failureCount>0?n?.kind==="protocol"&&!e.isError&&e.failureCount<Xo?n:{kind:"unavailable",...t,problem:go(e.failure)}:n??{kind:"pending",...t}}const It={retry:2,refetchInterval:e=>e.state.status==="error"?qe:!1};function Pe(e,t){return{kind:"protocol",...e,client:t.client,describe:t.describe,hasSchema:t.hasSchema,...t.hosted?{hosted:t.hosted}:{}}}function qo(e,t){return Ke(Be({endpoint:e,fetch:n=>fetch(n,{signal:pe(t?AbortSignal.any([t,n.signal]):n.signal)})}))}function $e(e){const t=`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`;return e.protocolSuffix?`${t}${e.protocolSuffix}`:e.localPreviewUrl?`${t}:local:${e.localPreviewUrl}`:t}function Ko(e,t){return $e({...e,protocolSuffix:t.cacheKeySuffix})}function es(e,t,n){return e?t==="pending"?{ready:!1,failed:!1}:t==="unavailable"?{ready:!1,failed:!0}:n:{ready:!0,failed:!1}}function ts(e,t){return JSON.stringify([e?.orgSlug,e?.virtualMcpId,e?.branch,jo(t)])}function ns(e,t,n){const o=$.c(21),s=W(),r=re(e?.virtualMcpId,e?.branch),i=e&&r.kind==="protocol"&&r.hosted?r:null;let a;o[0]!==i||o[1]!==e?(a=i&&e?Ko(e,i):"",o[0]=i,o[1]=e,o[2]=a):a=o[2];const c=To(i?.hosted,a,t,n),l=e!==null;let u;o[3]!==r.kind||o[4]!==c||o[5]!==l?(u=es(l,r.kind,c),o[3]=r.kind,o[4]=c,o[5]=l,o[6]=u):u=o[6];const d=u,f=r.kind!=="legacy";let h;o[7]!==r||o[8]!==e?(h=ts(e,r),o[7]=r,o[8]=e,o[9]=h):h=o[9];let v;o[10]!==r.kind||o[11]!==r.source||o[12]!==c||o[13]!==s||o[14]!==e?(v=()=>{if(c.retry(),!e||r.kind!=="unavailable")return;const w=r.source;s.resetQueries({queryKey:g.contentBackend(e.orgSlug,e.virtualMcpId,...w==="local"?["local"]:[e.branch,w])})},o[10]=r.kind,o[11]=r.source,o[12]=c,o[13]=s,o[14]=e,o[15]=v):v=o[15];let b;return o[16]!==d||o[17]!==f||o[18]!==h||o[19]!==v?(b={...d,v8:f,scopeKey:h,retry:v},o[16]=d,o[17]=f,o[18]=h,o[19]=v,o[20]=b):b=o[20],b}function nn(e){const t=$.c(12);let n;t[0]!==e?(n=_e.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const o=n,[s,r]=Yn(o,null),i=Fe(e);let a;t[2]!==s||t[3]!==e?(a=e?ut(s):null,t[2]=s,t[3]=e,t[4]=a):a=t[4];const l=i?null:a;let u,d;t[5]!==r?(u=h=>r(ut(h)),d=()=>r(null),t[5]=r,t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f;return t[8]!==l||t[9]!==u||t[10]!==d?(f={url:l,setUrl:u,clear:d},t[8]=l,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}function os(e,t){const n=(e??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${t}`:t}function _t(e){let t;try{t=JSON.parse(e)}catch{return null}return typeof t!="object"||t===null||Array.isArray(t)?null:t}function ye(e,t,n){return["decofile-write",e,t,n]}function ss(e,t,n){return{id:ye(e,t,n).join(":")}}class et extends Error{constructor(t,n,o=[],s=!1){super(n),this.blocks=t,this.fields=o,this.carriedStored=s,this.name="BlockConflictError"}blocks;fields;carriedStored}function tt(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function nt(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function rs(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function is(e,t,n){e.setQueryData(g.decofileDraft(tt(t)),n)}function as(e,t){return e.getQueryData(g.decofileDraft(tt(t)))??null}async function cs(e,t){return(await fetch(nt(e),{cache:"no-store",headers:{"if-none-match":`"${t}"`}}).catch(()=>null))?.status===200}function Yr(e){const t=$.c(4);let n;t[0]!==e?(n=g.decofileDraft(e?tt(e):""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:ls,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s??null}async function ls(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function us(e,t){const n=await fetch(nt(t),{cache:"no-store"});if(!n.ok){const s=new Error(`Failed to fetch decofile: ${n.status}`);throw s.status=n.status,s}const o=await n.json();return o.token&&is(e,t,{version:o.version,token:o.token,apiHost:o.apiHost??window.location.host}),o.decofile}async function zr(e,t){const n=await fetch(nt(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const s=await n.json().catch(()=>({}));throw s.code==="block-conflict"?new et(s.blocks??[],s.error??"Block changed"):new Error(s.error??`Save failed (${n.status})`)}if(!n.ok)return rs(n,"Save");const o=await n.json();return{...o,apiHost:o.apiHost??window.location.host}}const on=3e3,fs=15e3,ds=2*6e4,sn={now:()=>Date.now(),setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),hidden:()=>typeof document<"u"&&document.visibilityState==="hidden"};function hs(e){return e<ds?on:fs}function gs(e,t=sn){const n=t.now();let o=!1,s=!1,r=null;const i=()=>{o||(r=t.setTimeout(a,hs(t.now()-n)))},a=()=>{if(r=null,o)return;const{read:c,skip:l}=e();if(s||t.hidden()||l?.()){i();return}s=!0;let u;try{u=c()}catch{u=void 0}Promise.resolve(u).catch(()=>{}).finally(()=>{s=!1}),i()};return i(),()=>{o=!0,r!==null&&t.clearTimeout(r)}}const Tt=()=>0;function vs(e,t,n=sn){const o=L.useRef(t);o.current=t;const[s]=L.useState(()=>({polling:()=>gs(()=>o.current,n),idle:()=>()=>{}}));L.useSyncExternalStore(e?s.polling:s.idle,Tt,Tt)}function rn(e,t){return Se(e,t)}function bs(e,t){return Se(e,"preview-fetch",{path:t})}function Xr(e){return rn(e,"preview-invoke")}function Zr(e){return rn(e,"catalog-invoke")}function an(e){try{const{hostname:t}=new URL(e);return t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="::1"}catch{return!1}}function ws(){if(typeof document>"u")return null;const e=Array.from(document.querySelectorAll("iframe"));for(const t of e){const n=t.getAttribute("src");if(n&&an(n))return n}return null}function ms(e,t){const n=e.previewUrl??e.getFallbackPreviewUrl?.()??ws();return n&&an(n)?new URL(t,n).toString():bs(e,t)}function ps(e){return ms(e,"/.decofile")}function Ss(e){return e===400?"absent":e===404?"unavailable":e>=200&&e<300?"ok":"error"}function Rt(e){return e.liveOk||e.committedAbsent?404:e.liveStatus??502}async function ys(e,t){const n=Se(e,"read"),o=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:t,full:!0})}),s=Ss(o.status);if(s==="absent")return{kind:"absent"};if(s==="unavailable")return{kind:"unavailable"};if(s==="error"){const i=new Error(`Failed to read ${t}: ${o.status}`);throw i.status=o.status,i}const r=await o.json();return typeof r.content!="string"?{kind:"unavailable"}:{kind:"data",data:to(r.content)}}async function ks(e,t){const n=await ys(e,t);if(n.kind!=="data")return n;try{return{kind:"data",data:JSON.parse(n.data)}}catch{return{kind:"unavailable"}}}async function qr(e){const t=`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}/meta`,n=await fetch(t,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const o=new Error(`Failed to read committed meta: ${n.status}`);throw o.status=n.status,o}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function Os(e){return Ce(e)?.metadata?.runtime?.path??null}function je(e,t,n,o){const s=F(e),r=Object.keys(n?.changes??{}).find(a=>F(a)===s);if(r!==void 0&&n)return n.changes[r].baseVersion;const i=Object.keys(t?.draft??{}).some(a=>F(a)===s);if(t&&!i){const a=Object.keys(t.entries).find(c=>F(c)===s);return a===void 0?null:t.entries[a].version}return o?.[e]??null}class cn extends Error{constructor(t){super(t instanceof Error?t.message:String(t),{cause:t}),this.name="ServeLostError"}}function Kr(e){return e instanceof S&&e.code===p.Conflict}function ln(e){const t=e.data?.violations;return!Array.isArray(t)||t.length===0?e.message:t.slice(0,3).map(n=>n.message).join("; ")}class ot extends Error{constructor(){super("The draft's changes couldn't be read"),this.name="HostedDraftUnreadError"}}class st extends Error{constructor(){super("The blocks kept changing while the change was saved"),this.name="HostedKeptChangingError"}}function ei(e,t){return(t instanceof ot||t instanceof st)&&(t.message=un(e,t,"github")),t}function un(e,t,n){if(t instanceof ot)return e("siteEditor.save.draftUnread");if(t instanceof st)return e("siteEditor.save.keptChanging");if(t instanceof et)return t.message;if(n==="local")return Ds(e,t);if(t instanceof S)switch(t.code){case p.Conflict:return e("siteEditor.save.conflict");case p.ReadOnly:return e("siteEditor.save.readOnly");case p.InvalidBlock:case p.InvalidParams:return e("siteEditor.save.invalid");case p.LimitExceeded:return e("siteEditor.save.tooLarge")}return e("siteEditor.save.failed")}function Es(e,t){if(t==="local"||e instanceof et||e instanceof ot||e instanceof st)return null;if(e instanceof S){const n=e.code===p.InvalidBlock||e.code===p.InvalidParams?ln(e):e.message;return n?`${e.code}: ${n}`:null}return e.message||null}function Ds(e,t){if(t instanceof cn)return e("decoServe.save.serverGone");if(t instanceof S)switch(t.code){case p.Conflict:return e("decoServe.save.conflict");case p.ReadOnly:return e("decoServe.save.readOnly");case p.InvalidBlock:case p.InvalidParams:return e("decoServe.save.invalid",{detail:ln(t)});case p.LimitExceeded:return e("decoServe.save.tooLarge")}return e("sectionsEditor.sectionsEditor.saveFailed",{error:t.message})}function Is(e,t,n){return e===null?0:Math.max(0,n-Math.max(0,t-e))}function _s(e,t){const[n,o]=L.useState(e),s=L.useRef(null);return e&&!n&&o(!0),L.useEffect(()=>{if(e){s.current??=Date.now();return}if(!n)return;const r=()=>{s.current=null,o(!1)},i=Is(s.current,Date.now(),t);if(i===0){r();return}const a=setTimeout(r,i);return()=>clearTimeout(a)},[e,n,t]),n}const Ts="decocms:content-writes",Ne=new Set;let Y;function fn(){if(Y!==void 0)return Y;Y=null;try{typeof BroadcastChannel=="function"&&(Y=new BroadcastChannel(Ts),Y.addEventListener("message",e=>{const t=e.data?.cacheKey;if(typeof t=="string")for(const n of[...Ne])n(t)}))}catch{Y=null}return Y}function Rs(e){try{fn()?.postMessage({cacheKey:e})}catch{}}function xs(e){return fn(),Ne.add(e),()=>{Ne.delete(e)}}const dn="__at=",hn="__test=",Ps=/^[0-9a-f]{12}-[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;function $s(e){return e.at!==void 0||Object.keys(e.tests??{}).length>0}function ee(e){return typeof e=="string"&&Ps.test(e)}function xt(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function js(e){const t=e.tests??{};return[...e.at!==void 0?[dn+xt(e.at)]:[],...Object.keys(t).map(n=>hn+xt(`${n}=${t[n]?"on":"off"}`))]}function Pt(e,t){const o=[...e.split("&").filter(s=>s&&!s.startsWith(dn)&&!s.startsWith(hn)),...t];return o.length>0?`?${o.join("&")}`:""}function ve(e,t){const n=js(t),o=e.indexOf("?"),s=o===-1?e:e.slice(0,o);if(ee(s))return s+Pt(o===-1?"":e.slice(o+1),n);const r=e.lastIndexOf("@");if(r<=0)return e;const i=e.slice(0,r),a=i.indexOf("?"),c=a===-1?i:i.slice(0,a),l=a===-1?"":i.slice(a+1);return`${c}${Pt(l,n)}${e.slice(r)}`}function ti(e,t,n){if(!$s(t))return e;try{const o=new URL(e),s=o.searchParams.get("__draft");return s&&s!=="off"?(o.searchParams.set("__draft",ve(s,t)),o.toString()):ee(n)?(o.searchParams.set("__draft",ve(n,t)),o.toString()):e}catch{return e}}function ni(e,t,n="/"){if(!e||!ee(t))return null;try{const o=new URL(n,e);return o.searchParams.set("__draft",t),o.toString()}catch{return null}}function gn(e){return btoa(encodeURIComponent(e))}function oi(e,t,n){const o=Ns(e,t,n);return o.searchParams.set("__cb",crypto.randomUUID()),o.toString()}function Ns(e,t,n){const o=new URL(e).origin,s=new URL(`/live/previews/${encodeURIComponent(t)}`,o);return s.searchParams.set("path","/"),s.searchParams.set("pathTemplate","/"),s.searchParams.set("props",gn(JSON.stringify({path:"/",sections:[{__resolveType:n}]}))),s}const Ms="__draft";function si(e){return`${`${e.apiHost}/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}?token=${e.token}`}@${e.version}`}const As="off";function Ls(e,t){if(!t)return e;const n=new URL(e);return n.searchParams.set(Ms,t),n.toString()}function ri(e){const t=e.pageBlock.__resolveType;if(typeof t!="string"||!t)return null;const n=new URL(e.previewBaseUrl).origin,o=new URL(`/live/previews/${encodeURIComponent(t)}`,n);o.searchParams.set("__decoFBT","0"),o.searchParams.set("__d",""),o.searchParams.set("path",e.path),o.searchParams.set("pathTemplate",e.pathTemplate);const{__resolveType:s,...r}=e.pageBlock,i=JSON.stringify({__props:r,__decofile:e.decofile});return{src:o.toString(),body:i}}function ii(e,t,n,o){const s=new URL(e).origin,r=new URL(`/live/previews/${encodeURIComponent(t)}`,s);r.searchParams.set("__d","");const i=[{__resolveType:"preview",block:n}];return o&&i.push(o),r.searchParams.set("props",gn(JSON.stringify({sections:i}))),r.toString()}function ai(e){return e.fastPreviewActive&&e.previewServerUrl?e.previewServerUrl:e.sandboxUrl??null}const $t="__variant=";function vn(e,t,n){return`${e}@${t}=${n}`}function ci(e,t){return!e||!t.multivariate||t.variants.length<=1?[]:t.index<0||t.index>=t.variants.length?[]:[vn(e,"sections",t.index)]}function li(e){const t=Array.isArray(e.mvObj.variants)?e.mvObj.variants:[];if(!e.pageKey||e.sectionIndex<0)return[];if(e.selectedVariantIndex<0||e.selectedVariantIndex>=t.length)return[];const o=`${e.page.multivariate?`sections.variants.${e.page.index}.value${e.page.lazyValues?".value":""}`:"sections"}.${e.sectionIndex}${e.sectionLazy?".section":""}`;return[vn(e.pageKey,o,e.selectedVariantIndex)]}function ui(e,t){return[...t,...e]}function Us(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function rt(e,t){const n=e.lastIndexOf("@");if(n<=0)return e;const o=e.slice(0,n),s=o.indexOf("?"),r=s===-1?o:o.slice(0,s),a=[...s===-1?[]:o.slice(s+1).split("&").filter(l=>l&&!l.startsWith($t)),...t.map(l=>$t+Us(l))],c=a.length>0?`?${a.join("&")}`:"";return`${r}${c}${e.slice(n)}`}function fi(e,t,n=!1){if(t.length===0&&!n)return null;try{const o=new URL(e),s=o.hostname==="[::1]"?`localhost${o.port?`:${o.port}`:""}`:o.host;return rt(`${s}${o.pathname}@local`,t)}catch{return null}}function di(e,t){if(t.length===0)return e;try{const n=new URL(e),o=n.searchParams.get("__draft");return!o||o==="off"?e:(n.searchParams.set("__draft",rt(o,t)),n.toString())}catch{return e}}function Qs(e){const{pointer:t}=e;if(!t||t===As)return null;const n=t.indexOf("?");return ee(n===-1?t:t.slice(0,n))||t.lastIndexOf("@")<=0?null:ee(e.heldRevision)&&e.forcedVariants.length===0?ve(e.heldRevision,e.previewOptions):ve(rt(t,e.forcedVariants),e.previewOptions)}function Cs(e,t){if(!e||!t)return null;try{return Ls(e,t)}catch{return null}}function hi(e,t,n){if(!e||!n)return null;try{return Cs(new URL(t,e).toString(),n)}catch{return null}}const be={forcedVariants:[],previewOptions:{}},ce=new Map,le=new Map,Me=new Map;function bn(e){for(const t of Me.get(e)??[])t()}function wn(e,t){const n=ee(t)?t:null;(le.get(e)??null)!==n&&(n?le.set(e,n):le.delete(e),bn(e))}function Fs(e){return le.get(e)??null}function Bs(e,t){return JSON.stringify(e)===JSON.stringify(t)}function gi(e,t){const n=ce.get(e)??be,o=t??be;Bs(n,o)||(t?ce.set(e,o):ce.delete(e),bn(e))}function Vs(e){return ce.get(e)??be}function mn(e,t){let n=Me.get(e);return n||(n=new Set,Me.set(e,n)),n.add(t),()=>{n.delete(t)}}function Hs(e){const t=$.c(3);let n,o;return t[0]!==e?(n=s=>mn(e,s),o=()=>Vs(e),t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,Js)}function Js(){return be}function Ws(e){const t=$.c(3);let n,o;return t[0]!==e?(n=s=>e?mn(e,s):Ys,o=()=>e?Fs(e):null,t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),L.useSyncExternalStore(n,o,Gs)}function Gs(){return null}function Ys(){}function vi(e,t){const n=$.c(4),o=Hs(e),s=Ws(e);let r;return n[0]!==o||n[1]!==s||n[2]!==t?(r=Qs({pointer:t,heldRevision:s,...o}),n[0]=o,n[1]=s,n[2]=t,n[3]=r):r=n[3],r}const pn={phase:"idle",inFlight:0,reload:{seq:0,navigates:!1},epoch:0},zs=15e3,we=new Map;function Z(e,t){return`${e}/${t}`}function B(e){let t=we.get(e);return t||(t={state:pn,listeners:new Set,previews:0,timer:null,discardListeners:new Set},we.set(e,t)),t}function J(e,t){const n=B(e);n.state={...n.state,...t};for(const o of n.listeners)o()}function ke(e){e.timer&&clearTimeout(e.timer),e.timer=null}function it(e){return we.get(e)?.state??pn}function Xs(e,t){const n=B(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function bi(e){const t=B(e);return t.previews++,()=>{t.previews--,t.previews===0&&t.state.phase==="reloading"&&(ke(t),J(e,{phase:"idle"}))}}function wi(e){const t=we.get(e);!t||t.state.phase!=="reloading"||(ke(t),J(e,{phase:"idle"}))}function Sn(e){const t=B(e);ke(t),J(e,{phase:"saving",inFlight:t.state.inFlight+1})}function ue(e,t){const n=B(e),o=Math.max(0,n.state.inFlight-1);if(o>0){J(e,{inFlight:o});return}if(!t.ok||n.previews===0){J(e,{phase:"idle",inFlight:o});return}yn(e,t.navigates,o)}function yn(e,t,n=0){const o=B(e);ke(o),o.timer=setTimeout(()=>{o.timer=null,o.state.phase==="reloading"&&J(e,{phase:"idle"})},zs),J(e,{phase:"reloading",inFlight:n,reload:{seq:o.state.reload.seq+1,navigates:t}})}function Zs(e){return e?.kind==="protocol"&&e.source==="github"}async function fe(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:s,branch:r,backend:i,cacheKey:a}=e,c=t.kind==="publish"||t.kind==="reapply"?n.invalidateQueries({queryKey:g.hostedReleases(o,s)}):null;if(i?.kind!=="protocol")return await c,{navigates:!1};const l=r?g.protocolDraftRead(o,s,r):null,u=l?JSON.stringify(n.getQueryData(l)??null):null,d=c?[c]:[];if(a&&t.reread&&d.push(n.invalidateQueries({queryKey:g.decofile(a)})),a&&!t.adopted&&d.push(n.invalidateQueries({queryKey:g.contentChanges(a)})),r&&i.source==="sandbox"&&d.push(n.invalidateQueries({queryKey:no(o,s,r)})),Zs(i)&&l&&!t.adopted&&d.push(n.invalidateQueries({queryKey:l})),await Promise.all(d),t.kind!=="edit"){const v=Z(o,s);J(v,{epoch:it(v).epoch+1})}const f=l?JSON.stringify(n.getQueryData(l)??null):null,h=u!==f;return h&&await new Promise(v=>Ut.schedule(v)),{navigates:h}}async function qs(e,t){return Sn(Z(e.orgSlug,e.virtualMcpId)),kn(e,t)}function jt(e){return e.branch?JSON.stringify(e.queryClient.getQueryData(g.protocolDraftRead(e.orgSlug,e.virtualMcpId,e.branch))??null):null}async function kn(e,t){const n=Z(e.orgSlug,e.virtualMcpId),o=t.adopted?jt(e):null;let s;try{s=await t.write()}catch(i){throw ue(n,{ok:!1,navigates:!1}),t.refreshOnError&&fe(e,{kind:t.kind,reread:!0}).catch(()=>{}),i}if(e.backend?.kind==="protocol"&&e.cacheKey&&Rs(e.cacheKey),wn(n,t.shownRevision?.(s)??null),t.adopted){const i=jt(e)!==o;return i&&await new Promise(a=>Ut.schedule(a)),ue(n,{ok:!0,navigates:i}),t.reread&&fe(e,t).catch(()=>{}),s}let r=!1;try{({navigates:r}=await fe(e,t))}catch{}finally{ue(n,{ok:!0,navigates:r})}return s}function mi(e,t){const{queryClient:n,orgSlug:o,virtualMcpId:s,branch:r}=e,i=Z(o,s),a=new Set(t.blockKeys);for(const u of[...B(i).discardListeners])u(a);Sn(i);let c=!1;const l=()=>(c=!0,kn(e,{kind:"discard",reread:!0,write:t.write}));return r?n.getMutationCache().build(n,{mutationKey:ye(o,s,r),scope:ss(o,s,r),mutationFn:l}).execute(void 0).catch(u=>{throw c||ue(i,{ok:!1,navigates:!1}),u}):l()}function pi(e,t,n){const o=$.c(8);let s;o[0]!==e||o[1]!==t?(s=Z(e,t),o[0]=e,o[1]=t,o[2]=s):s=o[2];const r=s;let i;o[3]!==n||o[4]!==r?(i=()=>{const c=B(r).discardListeners;return c.add(n),()=>{c.delete(n)}},o[3]=n,o[4]=r,o[5]=i):i=o[5];let a;o[6]!==r?(a=[r],o[6]=r,o[7]=a):a=o[7],L.useEffect(i,a)}function On(e){const t=Z(e.orgSlug,e.virtualMcpId);it(t).inFlight>0||(wn(t,null),fe(e,{kind:"external"}).then(({navigates:n})=>{const o=B(t);o.previews>0&&o.state.inFlight===0&&yn(t,n)}).catch(()=>{}))}function Ks(e,t){const n=$.c(7);let o;n[0]!==e||n[1]!==t?(o=Z(e,t),n[0]=e,n[1]=t,n[2]=o):o=n[2];const s=o;let r;n[3]!==s?(r=l=>Xs(s,l),n[3]=s,n[4]=r):r=n[4];const i=r;let a;n[5]!==s?(a=()=>it(s),n[5]=s,n[6]=a):a=n[6];const c=a;return L.useSyncExternalStore(i,c,c)}const er=500;function Si(e,t){const{phase:n}=Ks(e,t);return _s(n!=="idle",er)}function tr(e){const t=new Error(`${e} unavailable (content server unreachable)`);return t.status=502,t}function En(e,t){return g.liveMeta(e.orgSlug,e.virtualMcpId,e.branch,`protocol${t.cacheKeySuffix}`,"")}function yi(e,t,n,o){if(o?.source==="github"){const i=e.getQueryData(g.contentIndex(t));return i?ko(i,n):nr(e,t,n)}const s=e.getQueryData(g.contentVersions(t));if(!s)return;if(Object.hasOwn(s,n))return s[n];const r=e.getQueryData(g.decofile(t));return r&&Object.hasOwn(r,n)?void 0:null}function Dn(e,t){if(Object.hasOwn(e.changes,t))return e.changes[t];const n=F(t),o=Object.keys(e.changes).find(s=>F(s)===n);return o===void 0?void 0:e.changes[o]}function nr(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(o)return In(o,Oe(e,t),n)}function In(e,t,n){const o=Dn(e,n);return o?.kind==="delete"?o.version??X:o?o.version:t.has(F(n))?X:null}function ki(e,t,n){const o=e.getQueryData(g.contentChanges(t));if(!o)return!1;const s=Dn(o,n);return s?s.kind==="set"&&s.baseVersion===null:Oe(e,t).has(F(n))}function Oi(e,t){const n=e.getQueryData(g.decofile(t)),o=e.getQueryData(g.contentChanges(t));if(!n||!o)return null;const s=Oe(e,t);return{blocks:n,versionOf:r=>In(o,s,r)}}function Oe(e,t){return new Set(e.getQueryData(g.contentDraftTombstones(t)))}function me(e,t,n,o){const s=F(n),r=Oe(e,t);r.has(s)!==o&&(o?r.add(s):r.delete(s),G(e),e.setQueryData(g.contentDraftTombstones(t),[...r]))}function _n(e,t,n,o){const s=o.revision,r=e.getQueryData(g.contentVersions(n)),i=Object.entries(o.versions??{}).map(([f,h])=>[f,h===X?null:h]),a=e.getQueryData(g.contentChanges(n)),c=e.getQueryData(g.contentIndex(n)),l=new Set(i.flatMap(([f])=>je(f,c,a,r)===null?[f]:[])),u=new Set(i.flatMap(([f,h])=>h===null?[]:[F(f)]));e.setQueryData(g.contentChanges(n),f=>{if(!f)return f;const h={...f.changes};for(const[v,b]of i){const w=je(v,c,f,r);b!==null?h[v]={kind:"set",version:b,baseVersion:w}:w!==null?h[v]={kind:"delete",version:null,baseVersion:w}:delete h[v]}return{...f,changes:h,edited:!0}});for(const[f,h]of i)h!==null?me(e,n,f,!1):!u.has(F(f))&&l.has(f)&&me(e,n,f,!0);const d=o.revision;return d&&d!=="none"&&e.setQueryData(g.protocolDraftRead(t.orgSlug,t.virtualMcpId,t.branch),f=>f&&{...f,version:d}),s}function Ee(e,t,n){G(e),e.setQueryData(g.contentVersions(t),o=>{const s={...o};for(const[r,i]of Object.entries(n))i===null?delete s[r]:s[r]=i;return s})}function Tn(e,t){const n=e.getMutationCache().findAll({mutationKey:ye(t.orgSlug,t.virtualMcpId,t.branch),status:"pending"});return new Set(n.flatMap(o=>Lo(o.state.variables)))}function Ae(e,t){e.resetQueries({queryKey:g.contentBackend(t.orgSlug,t.virtualMcpId,"local")})}async function se(e,t,n,o){try{return await o()}catch(s){const r=!(s instanceof S);throw t.source==="local"&&r?(Ae(e,n),new cn(s)):(t.source==="local"&&He(s)&&Ae(e,n),s)}}const Nt=new WeakMap;function at(e){let t=Nt.get(e);return t||(t={inFlight:new Map,rereading:new Set},Nt.set(e,t)),t}function Rn(e,t,n,o){const{inFlight:s}=at(e),r=s.get(o);if(r)return r;const i=ct(e,t,n,o,!0);return s.set(o,i),i.finally(()=>{s.get(o)===i&&s.delete(o)})}function or(e,t,n){const o=$.c(8),s=W(),r=t?.orgSlug,i=t?.virtualMcpId,a=t?.branch;let c,l;o[0]!==e||o[1]!==a||o[2]!==n||o[3]!==r||o[4]!==s||o[5]!==i?(c=()=>{if(!e||!r||!i||!a)return;const u={orgSlug:r,virtualMcpId:i,branch:a},{rereading:d}=at(s);return xs(f=>{f===n&&(d.has(n)||(d.add(n),rr(s,e,u,n).catch(sr).finally(()=>d.delete(n))))})},l=[s,e,r,i,a,n],o[0]=e,o[1]=a,o[2]=n,o[3]=r,o[4]=s,o[5]=i,o[6]=c,o[7]=l):(c=o[6],l=o[7]),L.useEffect(c,l)}function sr(){}async function rr(e,t,n,o){const s=at(e).inFlight.get(o);return s&&await s.catch(()=>{}),Rn(e,t,n,o)}async function ct(e,t,n,o,s){G(e);const r=g.decofile(o),i=En(n,t),a=g.contentRevision(o),c=g.contentVersions(o),l=e.getQueryData(r),u=e.getQueryData(c),f=e.getQueryData(i),h=e.getQueryData(a)??void 0,v=s&&l&&u?h?.revision:void 0,b=s&&f?h?.schemaVersion:void 0,w=g.contentChanges(o),R=e.getQueryData(w);if(t.source==="github"&&t.hosted)return ir(e,t,t.hosted,n,o,{conditional:s,seen:h,currentMeta:f,schemaIfNoneMatch:b,seenChanges:R});const[k,N,I]=await se(e,t,n,()=>t.client.batch([{method:"blocks.list",params:v?{ifNoneMatch:v}:{}},{method:"schema.get",params:b?{ifNoneMatch:b}:{}},{method:"changes.list",params:Ve(R)}])),_=e.getQueryData(a)?.revision,T=_!==void 0&&_!==h?.revision;if(I?.ok){const E=T?null:de(R,I.result);E&&e.setQueryData(w,E)}else I&&t.source==="local"&&He(I.error)&&Ae(e,n);if(!k?.ok)throw k?.error??new Error("no blocks.list");if(!N)throw new Error("no schema.get");const y=k.result,O=Xe(N),D=N.ok&&!O?N.result:null;if(y.notModified&&(!l||!u)||D?.notModified&&!f)return ct(e,t,n,o,!1);const x=y.notModified?new Set:Tn(e,n),M=y.notModified?l:Ao(y.blocks,l,x),m=O?tn():D?D.notModified?f:D.schema:N.error;if(e.setQueryData(a,{revision:T?_:y.notModified?h?.revision:y.revision,schemaVersion:D?D.notModified?h?.schemaVersion:D.version??void 0:void 0}),e.setQueryData(r,M),!y.notModified){const E=e.getQueryData(c),j={...y.versions};for(const U of x){const A=E?.[U];A!==void 0?j[U]=A:delete j[U]}e.setQueryData(c,j)}return m instanceof S||e.setQueryData(i,m),!T&&!y.notModified&&l&&h?.revision&&y.revision!==h.revision&&On({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o}),{blocks:M,meta:m}}async function ir(e,t,n,o,s,r){const i=g.decofile(s),a=g.contentIndex(s),c=g.contentRevision(s),l=g.contentVersions(s),u=En(o,t),d=g.contentChanges(s),f=e.getQueryData(a),h=r.conditional&&f?r.seen?.revision:void 0,[v,b,w]=await se(e,t,o,()=>n.batch([{method:"cms.index",params:h?{ifNoneMatch:h}:{}},{method:"schema.get",params:r.schemaIfNoneMatch?{ifNoneMatch:r.schemaIfNoneMatch}:{}},{method:"changes.list",params:Ve(r.seenChanges)}])),R=e.getQueryData(a)??f,k=e.getQueryData(c)?.revision,N=k!==void 0&&k!==r.seen?.revision;if(w?.ok&&!N){const P=de(r.seenChanges,w.result);P&&e.setQueryData(d,P)}if(!v?.ok)throw v?.error??new Error("no cms.index");if(!b)throw new Error("no schema.get");const I=v.result,_=Xe(b),T=b.ok&&!_?b.result:null;if(I.notModified&&!f||T?.notModified&&!r.currentMeta)return ct(e,t,o,s,!1);const y=_?tn():T?T.notModified?r.currentMeta:T.schema:b.error;y instanceof S||e.setQueryData(u,y);const O=T?T.notModified?r.seen?.schemaVersion:T.version??void 0:void 0,D=e.getQueryData(i)??{};if(I.notModified||N)return e.setQueryData(c,{revision:N?k:r.seen?.revision,schemaVersion:O}),e.setQueryData(i,D),{blocks:D,meta:y};const x={revision:I.revision,resolvedRef:I.resolvedRef,sequence:I.sequence,entries:I.entries,draft:I.draft};e.setQueryData(a,x);const M=!!r.seen?.revision&&x.revision!==r.seen.revision&&(!r.seen.revision.startsWith("s-")||!!f&&xn(f.draft,x.draft));M&&e.setQueryData(g.protocolDraftRead(o.orgSlug,o.virtualMcpId,o.branch),P=>P&&{...P,version:x.revision}),e.setQueryData(c,{revision:x.revision,schemaVersion:O});const m=Tn(e,o),E=e.getQueryData(l)??{},j={},U={},A=[];for(const[P,V]of Object.entries(D)){const H=x.entries[P];!H&&!m.has(P)||(j[P]=V,E[P]!==void 0&&(U[P]=E[P]),H&&!m.has(P)&&E[P]!==H.version&&A.push(P))}return e.setQueryData(i,j),e.setQueryData(l,U),A.length>0&&await Ye(e,n,s,A,m),R&&M&&ar(R,x)&&On({queryClient:e,orgSlug:o.orgSlug,virtualMcpId:o.virtualMcpId,branch:o.branch,backend:t,cacheKey:s}),{blocks:e.getQueryData(i)??j,meta:y}}function ar(e,t){if(xn(e.draft,t.draft))return!0;const n=Object.keys(t.entries);return n.length!==Object.keys(e.entries).length?!0:n.some(o=>!Object.hasOwn(e.entries,o)||e.entries[o]?.version!==t.entries[o]?.version)}function xn(e,t){const n=Object.keys(t);return n.length!==Object.keys(e).length?!0:n.some(o=>!Object.hasOwn(e,o)||e[o]?.version!==t[o]?.version)}function cr(e,t){const n=[...Object.keys(t.set??{}),...t.delete??[]];return Object.fromEntries(n.filter(o=>Object.hasOwn(e,o)).map(o=>[o,e[o]]))}function Ie(e){if(!(e instanceof S)||e.code!==p.Unavailable)return;const t=e.data?.landed;if(!(!t||typeof t!="object"||Array.isArray(t)))return Object.fromEntries(Object.entries(t).filter(n=>typeof n[1]=="string"))}async function lr(e,t){if(!(e instanceof S)||e.code!==p.Conflict)return;const n=e.data?.entries;if(!n||typeof n!="object")return;const o=Object.entries(n);if(o.length===0)return;const s=t.set??{},r=new Set(t.delete??[]),i={};for(const[a,c]of o){const l=c?.actual;if(typeof l!="string"||(Object.hasOwn(s,a)?await Zn(s[a]):r.has(a)?X:void 0)!==l)return;i[a]=l}return i}function ur(e,t){const n=Object.fromEntries(Object.entries(e.set??{}).filter(([s])=>!Object.hasOwn(t,s))),o=(e.delete??[]).filter(s=>!Object.hasOwn(t,s));return{...Object.keys(n).length>0?{set:n}:{},...o.length>0?{delete:o}:{}}}function ie(e,t,n,o,s){G(e),_n(e,t,n,{revision:e.getQueryData(g.contentRevision(n))?.revision??"",versions:s}),Ee(e,n,Object.fromEntries(Object.entries(s).map(([r,i])=>[r,i===X?null:i]))),Xt(e,n,s,o.set??{})}async function Ei(e,t,n,o,s,r){if(t.source==="github"){const a=[...Object.keys(s.set??{}),...s.delete??[]].filter(l=>!r||!Object.hasOwn(r,l));if(a.length>0)throw new Error(`A hosted save needs a precondition for every block it touches (missing: ${a.join(", ")})`);const c=zn(s.set);if(c.length>0)throw new Error(`A hosted save can't write a block that isn't loaded (${c.join(", ")})`)}return qs({queryClient:e,orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,backend:t,cacheKey:o},{kind:"edit",adopted:t.source==="github",write:async()=>{const i=(u,d=r)=>se(e,t,n,()=>t.client.blocksApply({set:u.set,delete:u.delete,...d?{ifMatch:cr(d,u)}:{}}));let a;try{a=await i(s)}catch(u){const d=t.source==="github"?Ie(u):void 0;if(!d)throw u;const f=ur(s,d);Object.keys(d).length>0&&ie(e,n,o,s,d);let h;try{h=await i(f)}catch(v){const b=Ie(v);b&&Object.keys(b).length>0&&ie(e,n,o,f,b);const w=await lr(v,f);if(!w)throw v;ie(e,n,o,f,w);try{h=await i(f,{...r,...w})}catch(R){const k=Ie(R);throw k&&Object.keys(k).length>0&&ie(e,n,o,f,k),R}}a={...h,versions:{...d,...h.versions}}}G(e);const c=t.source==="github"?_n(e,n,o,a):a.revision;t.source==="github"&&Xt(e,o,a.versions??{},s.set??{}),e.setQueryData(g.contentRevision(o),u=>({...u,revision:c}));const l=a.versions??{};return Ee(e,o,l),{revision:c,versions:l}}})}function Pn(e,t){if(!(e instanceof S))return;const n=e.data?.draft;if(!n||typeof n!="object"||!Object.hasOwn(n,t))return;const o=n[t];return o&&typeof o.version=="string"?o:void 0}function $n(e,t,n){if(!(n instanceof S))return;const o=n.data?.draft;if(!(!o||typeof o!="object"))for(const[s,r]of Object.entries(o))r===null&&me(e,t,s,!1)}function jn(e,t,n,o){G(e),Xn(e,n,o);const s=o.block===null,r=e.getQueryData(g.contentVersions(t)),i=e.getQueryData(g.contentChanges(t)),a=je(n,e.getQueryData(g.contentIndex(t)),i,r);if(i){const c=F(n),l=Object.fromEntries(Object.entries(i.changes).filter(([u])=>F(u)!==c));s?a!==null&&(l[n]={kind:"delete",version:null,baseVersion:a}):l[n]={kind:"set",version:o.version,baseVersion:a},e.setQueryData(g.contentChanges(t),{...i,changes:l,edited:!0})}me(e,t,n,s&&a===null),e.setQueryData(g.decofile(t),c=>{const l={...c};return s?delete l[n]:l[n]=o.block,l}),Ee(e,t,{[n]:s?null:o.version}),Oo(e,t,n,o)}function Di(e,t,n,o){if(t.source!=="github"||!(o instanceof S))return!1;$n(e,n,o);const s=o.data?.draft;if(!s||typeof s!="object")return!1;const r=Object.keys(s),i=r.map(a=>Pn(o,a));return r.length===0||i.some(a=>a===void 0)?!1:(e.cancelQueries({queryKey:g.decofile(n)}),r.forEach((a,c)=>{jn(e,n,a,i[c])}),!0)}async function Ii(e,t,n,o,s,r){t.source==="github"&&$n(e,o,r);const i=t.source==="github"?Pn(r,s):void 0;if(i)return e.cancelQueries({queryKey:g.decofile(o)}),jn(e,o,s,i),!0;await e.invalidateQueries({queryKey:g.decofile(o)});let a;try{const l=(await se(e,t,n,()=>t.client.changesGet({names:[s]}))).entries[s];if(l&&l.after===null&&l.version!==null)return!1;a={value:l?.after??null,version:l?.version??null},t.source==="github"&&e.setQueryData(g.contentChanges(o),u=>{if(!u)return u;const d={...u.changes};return l?.kind?d[s]={kind:l.kind,version:l.version,baseVersion:l.baseVersion}:delete d[s],{...u,changes:d,edited:!0}})}catch{const c=await se(e,t,n,()=>t.client.blocksList({}));if(c.notModified)return!1;a={value:c.blocks[s]??null,version:c.versions[s]??null}}return e.setQueryData(g.decofile(o),c=>{const l={...c};return a.value===null?delete l[s]:l[s]=a.value,l}),Ee(e,o,{[s]:a.version}),!1}function fr(e){const t=$.c(17),n=Ce(e?.virtualMcpId)?.metadata;let o;t[0]!==n?(o=At(n),t[0]=n,t[1]=o):o=t[1];const s=o;let r;t[2]!==e?.branch||t[3]!==e?.orgSlug||t[4]!==e?.virtualMcpId?(r=g.protocolDraftRead(e?.orgSlug??"",e?.virtualMcpId??"",e?.branch??""),t[2]=e?.branch,t[3]=e?.orgSlug,t[4]=e?.virtualMcpId,t[5]=r):r=t[5];let i;t[6]!==e||t[7]!==s?(i=async()=>{const b=await Lt(s,e.branch),w=b.pointer?.lastIndexOf("@")??-1;return{draft:b.pointer&&w>0?b.pointer.slice(0,w):null,version:b.pointer&&w>0?b.pointer.slice(w+1):b.etag}},t[6]=e,t[7]=s,t[8]=i):i=t[8];const a=!!e&&!!s;let c;t[9]!==r||t[10]!==i||t[11]!==a?(c={queryKey:r,queryFn:i,enabled:a,staleTime:Number.POSITIVE_INFINITY},t[9]=r,t[10]=i,t[11]=a,t[12]=c):c=t[12];const{data:l,isPending:u,isError:d}=C(c),f=!!e&&!!s&&u&&!d;if(!e||!l?.draft||!l.version){let b;return t[13]!==f?(b={pointer:null,pending:f},t[13]=f,t[14]=b):b=t[14],b}const h=`${l.draft}@${l.version}`;let v;return t[15]!==h?(v={pointer:h,pending:!1},t[15]=h,t[16]=v):v=t[16],v}function _i(e){return fr(e).pointer}function Ti(e){const t=$.c(4);let n;t[0]!==e?(n=g.contentRevision(e),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==n?(o={queryKey:n,enabled:!1,queryFn:dr,staleTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=o):o=t[3];const{data:s}=C(o);return s?.revision}async function dr(){throw new Error("content revisions are set by reads and writes")}function lt(e,t){const n=$.c(6),{url:o}=nn(e?.virtualMcpId),s=re(e?.virtualMcpId,e?.branch);if(!e)return"";let r;return n[0]!==s.cacheKeySuffix||n[1]!==s.kind||n[2]!==o||n[3]!==t?.tunnel||n[4]!==e?(r=s.kind!=="legacy"&&s.cacheKeySuffix!==void 0?$e({...e,protocolSuffix:s.cacheKeySuffix}):$e({...e,localPreviewUrl:t?.tunnel===!1?null:o}),n[0]=s.cacheKeySuffix,n[1]=s.kind,n[2]=o,n[3]=t?.tunnel,n[4]=e,n[5]=r):r=n[5],r}function Ri(e,t){const n=$.c(46),{url:o}=nn(e?.virtualMcpId),s=!!o,r=re(e?.virtualMcpId,e?.branch),i=r.kind==="protocol"?r:null,a=lt(e),c=t?.fetchEnabled??!0,l=Os(e?.virtualMcpId),u=Ct(e?.virtualMcpId).runtime==="cms",d=W();let f;n[0]!==a?(f=g.decofile(a),n[0]=a,n[1]=f):f=n[1];const h=f;or(i,i&&e?e:null,a);let v;n[2]!==e||n[3]!==d||n[4]!==h?(v=()=>{if(!e||d.isMutating({mutationKey:ye(e.orgSlug,e.virtualMcpId,e.branch)})>0)return!0;const E=d.getQueryState(h);return E?.fetchStatus==="fetching"||Date.now()-(E?.dataUpdatedAt??0)<on/2},n[2]=e,n[3]=d,n[4]=h,n[5]=v):v=n[5];let b;n[6]!==u||n[7]!==s||n[8]!==e||n[9]!==i||n[10]!==d||n[11]!==h?(b=async()=>{if(e){if(!i&&u&&!s){const E=as(d,e)?.version;if(E&&!await cs(e,E))return}await d.refetchQueries({queryKey:h,exact:!0},{cancelRefetch:!1})}},n[6]=u,n[7]=s,n[8]=e,n[9]=i,n[10]=d,n[11]=h,n[12]=b):b=n[12];let w;n[13]!==v||n[14]!==b?(w={skip:v,read:b},n[13]=v,n[14]=b,n[15]=w):w=n[15],vs(!!t?.pollWhile&&!!e,w);const R=ze(i?.hosted?a:"");let k;n[16]!==r.kind||n[17]!==u||n[18]!==c||n[19]!==a||n[20]!==s||n[21]!==o||n[22]!==l||n[23]!==e||n[24]!==i||n[25]!==d?(k=async()=>{if(i)return(await Rn(d,i,e,a)).blocks;if(r.kind==="unavailable")throw tr("decofile");if(s){const A=await fetch(new URL("/.decofile",o).toString(),{cache:"no-store"}).catch(vr),Q=A?.ok?_t(await A.text()):null;if(Q)return Q;const P=new Error("decofile unavailable (local tunnel unreachable)");throw P.status=502,P}if(u)return us(d,e);const E=()=>ks(e,os(l,".deco/blocks.gen.json"));if(c){const A=await fetch(ps(e),{cache:"no-store"}).catch(gr);if(A?.ok){const V=_t(await A.text());if(V)return V}const Q=await E();if(Q.kind==="data")return Q.data;const P=new Error(`Failed to fetch decofile: ${A?.status??"network error"}`);throw P.status=Rt({liveOk:!!A?.ok,liveStatus:A?.status,committedAbsent:Q.kind==="absent"}),P}const j=await E();if(j.kind==="data")return j.data;const U=new Error("decofile unavailable (preview down, no committed snapshot)");throw U.status=Rt({liveOk:!1,committedAbsent:j.kind==="absent"}),U},n[16]=r.kind,n[17]=u,n[18]=c,n[19]=a,n[20]=s,n[21]=o,n[22]=l,n[23]=e,n[24]=i,n[25]=d,n[26]=k):k=n[26];const N=!!e&&r.kind!=="pending",I=i?0:3e4,_=i?.describe.pollIntervalMs,T=i?"always":void 0;let y;n[27]!==u||n[28]!==s||n[29]!==i?(y=(E,j)=>{if(i||u||s)return E<3;const U=j.status;return U!==502&&U!==404&&E<2},n[27]=u,n[28]=s,n[29]=i,n[30]=y):y=n[30];let O;n[31]!==h||n[32]!==k||n[33]!==N||n[34]!==I||n[35]!==_||n[36]!==T||n[37]!==y?(O={queryKey:h,queryFn:k,enabled:N,staleTime:I,refetchInterval:_,refetchIntervalInBackground:!1,refetchOnWindowFocus:T,retry:y,retryDelay:hr},n[31]=h,n[32]=k,n[33]=N,n[34]=I,n[35]=_,n[36]=T,n[37]=y,n[38]=O):O=n[38];const D=C(O);let x;n[39]!==R||n[40]!==D?(x=R&&D.data?So(R,D.data):void 0,n[39]=R,n[40]=D,n[41]=x):x=n[41];const M=x;let m;return n[42]!==M||n[43]!==i?.hosted||n[44]!==D?(m=i?.hosted&&M?{...D,data:M}:D,n[42]=M,n[43]=i?.hosted,n[44]=D,n[45]=m):m=n[45],m}function hr(e){return Qt(5e3,1e3,e,2,0)}function gr(){return null}function vr(){return null}function xi(e,t,n){return ns(e,t,n)}function Pi(e){const t=$.c(4),n=W(),o=re(e?.virtualMcpId,e?.branch),s=lt(e),r=o.kind==="protocol"?o.hosted:void 0;let i;return t[0]!==s||t[1]!==n||t[2]!==r?(i=(a,c)=>Eo(n,r,s,a,c),t[0]=s,t[1]=n,t[2]=r,t[3]=i):i=t[3],i}function $i(e,t){const n=$.c(3),o=re(e?.virtualMcpId,e?.branch),s=lt(e),r=ze(o.kind==="protocol"&&o.hosted?s:"");let i;return n[0]!==r?.entries||n[1]!==t?(i=Object.entries(r?.entries??{}).filter(a=>{const[,c]=a;return t(c.meta?.type??"")}).map(br),n[0]=r?.entries,n[1]=t,n[2]=i):i=n[2],i}function br(e){const[t]=e;return t}const wr="site-editor-save",Nn={id:wr,description:void 0,action:void 0,cancel:void 0},ji="site-editor-undo",Le="site-editor-publish";function mr(e){const t=$.c(7),{label:n,detail:o}=e;let s;t[0]!==n?(s=z.jsx("summary",{className:"cursor-pointer select-none text-muted-foreground",children:n}),t[0]=n,t[1]=s):s=t[1];let r;t[2]!==o?(r=z.jsx("p",{className:"mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground",children:o}),t[2]=o,t[3]=r):r=t[3];let i;return t[4]!==s||t[5]!==r?(i=z.jsxs("details",{className:"mt-1 text-xs",children:[s,r]}),t[4]=s,t[5]=r,t[6]=i):i=t[6],i}function Mn(e,t){return t?z.jsx(mr,{label:e("siteEditor.details"),detail:t}):void 0}function Ni(e,t,n){ne.error(un(e,t,n),{...Nn,description:Mn(e,Es(t,n))})}function Mi(e,t,n=!1){ne.info(e(t?"sectionsEditor.reconcile.leftDeleted":"sectionsEditor.reconcile.keptTheirs"),{...Nn,description:e(t?n?"sectionsEditor.reconcile.leftDeletedNeverPublishedHint":"sectionsEditor.reconcile.leftDeletedHint":"sectionsEditor.reconcile.keptTheirsHint")})}const An={action:void 0,duration:void 0};function Ai(e,t){ne.success(t?e("siteEditor.publish.publishedOn",{host:t}):e("siteEditor.publish.published"),{...An,id:Le,description:void 0})}function Li(e,{headline:t,body:n,detail:o,retry:s,pending:r,tone:i="error"}){const a=Mn(e,o??null);ne[i](t,{id:Le,description:n&&a?z.jsxs(z.Fragment,{children:[z.jsx("p",{children:n}),a]}):n??a,action:s?{label:e("siteEditor.tryAgain"),onClick:c=>{c.preventDefault(),ne.loading(r??e("thread.publishPopover.publishing"),{...An,id:Le,description:void 0}),s()}}:void 0,duration:s?Number.POSITIVE_INFINITY:void 0})}function Ui(e){return e instanceof Error?e.message||null:e==null?null:String(e)}export{jo as $,Vr as A,ai as B,Pi as C,Si as D,Br as E,fr as F,Z as G,Ws as H,gi as I,fi as J,ve as K,As as L,Ls as M,ti as N,di as O,oi as P,wi as Q,bi as R,Ks as S,Zt as T,Ti as U,ri as V,ss as W,ye as X,qs as Y,ys as Z,rs as _,Qr as a,Zr as a$,Ko as a0,$r as a1,Nr as a2,$i as a3,ns as a4,Mi as a5,ki as a6,ei as a7,et as a8,Kr as a9,vi as aA,hi as aB,st as aC,Di as aD,Rn as aE,qr as aF,Le as aG,An as aH,Ai as aI,mi as aJ,xr as aK,Pr as aL,He as aM,Yr as aN,_i as aO,si as aP,ee as aQ,ni as aR,Li as aS,ji as aT,Nn as aU,S as aV,p as aW,Ye as aX,Tn as aY,So as aZ,ii as a_,tr as aa,rr as ab,ot as ac,Ei as ad,Ii as ae,Ni as af,yi as ag,En as ah,is as ai,zr as aj,pi as ak,Oi as al,Fr as am,Wr as an,Ot as ao,Et as ap,Gr as aq,ms as ar,Hr as as,ho as at,Mn as au,Ui as av,Ns as aw,jr as ax,so as ay,mr as az,$o as b,ci as b0,li as b1,ui as b2,nn as c,fo as d,Ur as e,go as f,qo as g,Xr as h,Jt as i,bs as j,Ri as k,lt as l,Cr as m,Jr as n,Os as o,Mr as p,os as q,Lr as r,Ar as s,xi as t,re as u,Qs as v,Cs as w,$s as x,ks as y,Kt as z};