decocms 4.455.0 → 4.455.1

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 (355) hide show
  1. package/dist/client/assets/{AlertCircle-BOPAUEgU.js → AlertCircle-SZjuoMGZ.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CJHdSsRl.js → AreaChart-ezLCE2QB.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DGlO1CKr.js → ArrowLeft-BgUASx7T.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Duh-8Vv0.js → ArrowUp-CwQ1Q4VU.js} +1 -1
  5. package/dist/client/assets/{Building02-D_rXBsfQ.js → Building02-Dl4T9LNW.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-DIS9sPOp.js → CartesianChart-CojVOGED.js} +1 -1
  7. package/dist/client/assets/{Check-CcPSzxsY.js → Check-BmlrCmw2.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-CxJ9MBI3.js → CheckCircle-DgPqabhN.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-C9klasvw.js → ChevronUp-6u3SxMoQ.js} +1 -1
  10. package/dist/client/assets/{Copy01-ByHdq7k3.js → Copy01-CkifUnly.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-D7Ll8vXp.js → CreditCard01-K1-aiN4b.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CXVrXTYw.js → DotsVertical-DmnxoC5N.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-D4SFBJLe.js → ErrorBarContext-BaefuZVc.js} +1 -1
  14. package/dist/client/assets/{Image01-DAe5wd3u.js → Image01-0yU0yxN3.js} +1 -1
  15. package/dist/client/assets/{Key01-Dje7twgn.js → Key01-CUdVlBTP.js} +1 -1
  16. package/dist/client/assets/{Line-p8cNw9wz.js → Line-D6mMu8nu.js} +1 -1
  17. package/dist/client/assets/{Link01-BFa5_pnw.js → Link01-7z-hjzg6.js} +1 -1
  18. package/dist/client/assets/{LinkBroken01-BQ3rvf4O.js → LinkBroken01-Br_uH__F.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-ChFFafWR.js → LinkExternal01-DvsbzHx1.js} +1 -1
  20. package/dist/client/assets/{Monitor01-tvCvi4o_.js → Monitor01-DQFu-UId.js} +1 -1
  21. package/dist/client/assets/{Palette-BFtTwWPg.js → Palette-TILTwgWi.js} +1 -1
  22. package/dist/client/assets/{Plus-Dk5G0eGJ.js → Plus-Cn427okX.js} +1 -1
  23. package/dist/client/assets/{SearchMd-DJptVqPP.js → SearchMd-Pjthnah9.js} +1 -1
  24. package/dist/client/assets/{Sector-CoYmht1l.js → Sector-Xhgx4JKP.js} +1 -1
  25. package/dist/client/assets/{ShoppingBag01-mUPmqGRd.js → ShoppingBag01-b6nsxdpv.js} +1 -1
  26. package/dist/client/assets/{Sun-Bl8Ky_if.js → Sun-CJnoMxxW.js} +1 -1
  27. package/dist/client/assets/{Tool01-CGCC9pfF.js → Tool01-bUbUk8P7.js} +1 -1
  28. package/dist/client/assets/{Trash01-BA-bFjuS.js → Trash01-CuygCR6g.js} +1 -1
  29. package/dist/client/assets/{Upload01-C13aB89v.js → Upload01-XLRbUIeR.js} +1 -1
  30. package/dist/client/assets/{User01-B42bcRzQ.js → User01-CVYpMQND.js} +1 -1
  31. package/dist/client/assets/{UserSquare-B6-k4uk5.js → UserSquare-COhFlYGn.js} +1 -1
  32. package/dist/client/assets/{Users01-BmXeKAri.js → Users01-pRhNWrqE.js} +1 -1
  33. package/dist/client/assets/{X-BdtW9stL.js → X-C5Ha4Ozq.js} +1 -1
  34. package/dist/client/assets/{XAxis-G213xRid.js → XAxis-BHJE6EzV.js} +1 -1
  35. package/dist/client/assets/{XClose-Bsj_jKUE.js → XClose-KiYAVi9i.js} +1 -1
  36. package/dist/client/assets/{ZoomOut-BQf_lYpX.js → ZoomOut-FmWelmyS.js} +1 -1
  37. package/dist/client/assets/{access-gate-BtTwTt-9.js → access-gate-jiNu9DZN.js} +1 -1
  38. package/dist/client/assets/{add-connection-dialog-CwnC8yt-.js → add-connection-dialog-GjKD1wTC.js} +1 -1
  39. package/dist/client/assets/{agent-analytics-CPj4bxgs.js → agent-analytics-BeJKrtcQ.js} +1 -1
  40. package/dist/client/assets/agent-app-Do5ejS2P.js +1 -0
  41. package/dist/client/assets/{agent-assets-D5PkhLx3.js → agent-assets-DiAZ_mWn.js} +1 -1
  42. package/dist/client/assets/{agent-automation-Cd6QYcZt.js → agent-automation-CrHxUPPr.js} +1 -1
  43. package/dist/client/assets/{agent-automations-WUChl97S.js → agent-automations-CuCVxPFr.js} +1 -1
  44. package/dist/client/assets/{agent-connect-sources-BTKe88uu.js → agent-connect-sources-GeY0E65Q.js} +1 -1
  45. package/dist/client/assets/agent-deck-CxzsNhg0.js +1 -0
  46. package/dist/client/assets/{agent-e2e-D92Tz-G3.js → agent-e2e-DZ7uBNEc.js} +1 -1
  47. package/dist/client/assets/{agent-experiments-B5NLiDa9.js → agent-experiments-UwQT4D0C.js} +1 -1
  48. package/dist/client/assets/{agent-file-BlaR5see.js → agent-file-Ce07C-Ee.js} +1 -1
  49. package/dist/client/assets/{agent-hosting-CoW01d6P.js → agent-hosting-DnoFF3km.js} +1 -1
  50. package/dist/client/assets/{agent-icon-QobcC4y1.js → agent-icon-Cy4Knhmf.js} +1 -1
  51. package/dist/client/assets/agent-library-JYcPcTMu.js +1 -0
  52. package/dist/client/assets/agent-library-file-D3Jksi3M.js +1 -0
  53. package/dist/client/assets/{agent-monitor-B-qOXS0c.js → agent-monitor-C43eVtFQ.js} +1 -1
  54. package/dist/client/assets/{agent-overview-CLWCQeaZ.js → agent-overview-vIXC5G1N.js} +1 -1
  55. package/dist/client/assets/agent-settings-Cfyz43YR.js +1 -0
  56. package/dist/client/assets/{agent-site-editor-DFNItXi0.js → agent-site-editor-D0zVo-Vf.js} +1 -1
  57. package/dist/client/assets/agent-site-editor-code-ILiFF32S.js +2 -0
  58. package/dist/client/assets/{agent-site-editor-content-DeSoO3Vu.js → agent-site-editor-content-4dMPOtfn.js} +3 -3
  59. package/dist/client/assets/{agent-site-editor-preview-BQKa6vcQ.js → agent-site-editor-preview-BiJ7TdOp.js} +3 -3
  60. package/dist/client/assets/agent-view-BkydMMwW.js +1 -0
  61. package/dist/client/assets/{agent-view-guard-BggSlJ4I.js → agent-view-guard-D5KfTxlv.js} +1 -1
  62. package/dist/client/assets/{agents-list-Ckh7S6i4.js → agents-list-AbKO_jsf.js} +1 -1
  63. package/dist/client/assets/{ai-providers-KNbVRi9R.js → ai-providers-D1Du1MXh.js} +1 -1
  64. package/dist/client/assets/{alert-dialog-13GPwGkk.js → alert-dialog-BNhkZQ_x.js} +1 -1
  65. package/dist/client/assets/{alert-BZ6uRdL8.js → alert-mIYni7ha.js} +1 -1
  66. package/dist/client/assets/{analytics-sections-C4iGKBOV.js → analytics-sections-Bg673VR8.js} +1 -1
  67. package/dist/client/assets/{api-keys-Btl9HmTY.js → api-keys-Cr3l0gpB.js} +1 -1
  68. package/dist/client/assets/api-keys-DdRKMXqU.js +1 -0
  69. package/dist/client/assets/app-editor-COtME4c7.js +1 -0
  70. package/dist/client/assets/{asset-utils-B4wnf4gp.js → asset-utils-B80sbnEy.js} +1 -1
  71. package/dist/client/assets/{auth-BMIwdKU8.js → auth-Bj6m-efj.js} +1 -1
  72. package/dist/client/assets/{auth-catchall-CsvXshlN.js → auth-catchall-D4Dz-fGV.js} +1 -1
  73. package/dist/client/assets/{auth-entry-BuNH69Nv.js → auth-entry-CF8efX0d.js} +1 -1
  74. package/dist/client/assets/{auth-split-layout-rkoJUdAV.js → auth-split-layout-CRqrdELw.js} +1 -1
  75. package/dist/client/assets/{authenticate-and-persist-oauth-DWogyy0B.js → authenticate-and-persist-oauth-BWVpVcAz.js} +1 -1
  76. package/dist/client/assets/{automation-list-row-db5LJ5pV.js → automation-list-row-a-sDX1L7.js} +1 -1
  77. package/dist/client/assets/{automation-runs-_74LLZTB.js → automation-runs-Be2AhhQU.js} +1 -1
  78. package/dist/client/assets/{automations-qyXzvoeZ.js → automations-BIY-zWGm.js} +1 -1
  79. package/dist/client/assets/{autosend-B5Obavo-.js → autosend-Bo0qMh1p.js} +1 -1
  80. package/dist/client/assets/{avatar-Bpp_lL_f.js → avatar-s9hDkne5.js} +1 -1
  81. package/dist/client/assets/{badge-DTNkOzY0.js → badge-BbvQ8-kh.js} +1 -1
  82. package/dist/client/assets/{block-document-BLOu51_T.js → block-document-DF2zCbSa.js} +1 -1
  83. package/dist/client/assets/{blocks-preview-workspace-context-BmjkHogK.js → blocks-preview-workspace-context-C9Q4VcWA.js} +1 -1
  84. package/dist/client/assets/{blog-schema-B4_qQgjF.js → blog-schema-CsdFUd69.js} +1 -1
  85. package/dist/client/assets/{buckets-CCNSYAgt.js → buckets-BVpQmWhs.js} +1 -1
  86. package/dist/client/assets/{build-improve-prompt-doc-oJt1CVIT.js → build-improve-prompt-doc-DTV8byFL.js} +1 -1
  87. package/dist/client/assets/{calendar-BRUBvVES.js → calendar-DJKbaXkW.js} +1 -1
  88. package/dist/client/assets/{capability-load-error-th8zEGOp.js → capability-load-error-DToq0UrY.js} +1 -1
  89. package/dist/client/assets/{category-editor-CRqB5ots.js → category-editor-B8R6lxvV.js} +1 -1
  90. package/dist/client/assets/{chart-DBFqaeAD.js → chart-DXNUc0Wn.js} +1 -1
  91. package/dist/client/assets/{chat-context-BHWxNMFT.js → chat-context-DVCvFwd3.js} +1 -1
  92. package/dist/client/assets/{chat-draft-SnGEiSWm.js → chat-draft-CJgB-tPy.js} +1 -1
  93. package/dist/client/assets/{checkbox-DuccoC4e.js → checkbox-DUCWAAon.js} +1 -1
  94. package/dist/client/assets/{choose-editor-Blu_E7S8.js → choose-editor-lgVz_Mxm.js} +1 -1
  95. package/dist/client/assets/{claim-phase-copy-J9IiJiw_.js → claim-phase-copy-yqhsaXjf.js} +1 -1
  96. package/dist/client/assets/{cli-auth-success-g5vIj6jD.js → cli-auth-success-DwgBWIew.js} +1 -1
  97. package/dist/client/assets/{client-icons-ByIvBqps.js → client-icons-DmzJtt6h.js} +1 -1
  98. package/dist/client/assets/{collapsible-qdaAxaaw.js → collapsible-BhnvXHYQ.js} +1 -1
  99. package/dist/client/assets/{collection-detail-CRpVPceB.js → collection-detail-DTU4uoSg.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-CAE4H1Z5.js → collection-display-button-kGszYmIr.js} +1 -1
  101. package/dist/client/assets/{collection-search-BG7vK4NS.js → collection-search-BXjiZfAv.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-C-F_T5Eb.js → collection-table-wrapper-DdfR_Ktb.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-DrZNeSEC.js → collection-tabs-BulYWegd.js} +1 -1
  104. package/dist/client/assets/{column-rules-C1VVvSzv.js → column-rules-BIwgwIU8.js} +1 -1
  105. package/dist/client/assets/{combobox-B0tRCuGZ.js → combobox-kDUiEF-N.js} +1 -1
  106. package/dist/client/assets/{command-D4xFqyr9.js → command-8n8txvgK.js} +1 -1
  107. package/dist/client/assets/{companion-mcps-section-Cz5vCHft.js → companion-mcps-section-1uHuucoN.js} +1 -1
  108. package/dist/client/assets/{config-DPczwNxh.js → config-CV4o64fo.js} +1 -1
  109. package/dist/client/assets/{connect-pk9RQf7E.js → connect-BAQqdM6H.js} +1 -1
  110. package/dist/client/assets/{connect-layout-B5AnMnce.js → connect-layout-BpNxIzne.js} +1 -1
  111. package/dist/client/assets/{connection-BBVDOaSM.js → connection-MWqOhcq1.js} +1 -1
  112. package/dist/client/assets/{connection-card-D1TMmLIT.js → connection-card-BqicHzqi.js} +1 -1
  113. package/dist/client/assets/{connection-detail-DQ776dHS.js → connection-detail-BPnXf2m6.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-CFQwZ1sv.js → connection-form-helpers-c3p1hlVt.js} +1 -1
  115. package/dist/client/assets/{connections-D5_-1i7h.js → connections-y97m_u9F.js} +1 -1
  116. package/dist/client/assets/{context-BzZmRn5A.js → context-D0fXSS45.js} +1 -1
  117. package/dist/client/assets/{context-menu-Dt0_Wi5C.js → context-menu-Cms7vHsB.js} +1 -1
  118. package/dist/client/assets/{create-organization-dialog-SVvYPMqI.js → create-organization-dialog-DV81cdD7.js} +1 -1
  119. package/dist/client/assets/{daily-pulse-Dy2ScJNC.js → daily-pulse-BBf1JfuT.js} +1 -1
  120. package/dist/client/assets/{decopilot-Bh5nOuj8.js → decopilot-YF_T6wlZ.js} +1 -1
  121. package/dist/client/assets/{device-hint-BWrI1ZAV.js → device-hint-nzQNoBun.js} +1 -1
  122. package/dist/client/assets/{dialog-CwJ0Tacd.js → dialog-BI1xJ9QE.js} +1 -1
  123. package/dist/client/assets/{discover-BN5fZmxX.js → discover-BI727LpY.js} +1 -1
  124. package/dist/client/assets/{domain-settings-C0ggYD-b.js → domain-settings-BKNUQKjc.js} +1 -1
  125. package/dist/client/assets/{download-app-dialog-BlTQi4L1.js → download-app-dialog-D_tAj3wC.js} +1 -1
  126. package/dist/client/assets/{drawer-LGekY388.js → drawer-C_V65MTv.js} +1 -1
  127. package/dist/client/assets/{editor-DIJFF-Rn.js → editor-MmTYGWbR.js} +1 -1
  128. package/dist/client/assets/{empty-state-DdDKihxt.js → empty-state-CcAOCIdu.js} +1 -1
  129. package/dist/client/assets/{empty-state-Db66egMr.js → empty-state-DdqIwUzh.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-BZKTCWVm.js → extract-connection-data-BphfLFqb.js} +1 -1
  131. package/dist/client/assets/{feature-gate-DIpT85T7.js → feature-gate-B_eK5iBD.js} +1 -1
  132. package/dist/client/assets/{feature-paywall--RganMza.js → feature-paywall-DWdxE8g5.js} +1 -1
  133. package/dist/client/assets/{file-explorer-B0caqImY.js → file-explorer-C0x2mX1a.js} +1 -1
  134. package/dist/client/assets/{file-preview-BVUwkvqy.js → file-preview-DraufLN1.js} +1 -1
  135. package/dist/client/assets/{file-share-button-Dfx-yCi-.js → file-share-button-nm9-puhb.js} +1 -1
  136. package/dist/client/assets/{file-type-icon-CYHSeMg9.js → file-type-icon---8xc9A3.js} +1 -1
  137. package/dist/client/assets/flat-project-DSx6ncsS.js +1 -0
  138. package/dist/client/assets/{folder-icon-Bz05bjxQ.js → folder-icon-BKl95mgA.js} +1 -1
  139. package/dist/client/assets/{form-DXEENu_8.js → form-DBZy3h_k.js} +1 -1
  140. package/dist/client/assets/{gateway-client-DafKkh5Q.js → gateway-client-DLwMoVSk.js} +1 -1
  141. package/dist/client/assets/{general-P5nYRAWt.js → general-JozDjOAF.js} +1 -1
  142. package/dist/client/assets/{home-C9qFKdi5.js → home-D816nm29.js} +1 -1
  143. package/dist/client/assets/{icon-button-c-SlONOU.js → icon-button-DJOiw-b_.js} +1 -1
  144. package/dist/client/assets/{index-CaP5SDB2.js → index-83q9Ewq1.js} +1 -1
  145. package/dist/client/assets/{index-ZDbB-PVr.js → index-BBLsGP5X.js} +1 -1
  146. package/dist/client/assets/{index-Dl3JXElC.js → index-BHxlMSIR.js} +1 -1
  147. package/dist/client/assets/{index-txkdKzZ6.js → index-B_hHkWjN.js} +1 -1
  148. package/dist/client/assets/{index-KD5FDUeP.js → index-BlUUh9y1.js} +1 -1
  149. package/dist/client/assets/{index-0glLJTM3.js → index-BnsOjLj5.js} +1 -1
  150. package/dist/client/assets/{index-D9bgHbh-.js → index-By8xil-d.js} +1 -1
  151. package/dist/client/assets/{index-DK7oXPIL.js → index-CS9Lxig6.js} +1 -1
  152. package/dist/client/assets/{index-mRG9os_M.js → index-CTTDNGFi.js} +1 -1
  153. package/dist/client/assets/{index-Ccz5AaI_.js → index-Co0BO1QR.js} +1 -1
  154. package/dist/client/assets/{index-DGWe6sla.js → index-D7YVnT5y.js} +1 -1
  155. package/dist/client/assets/{index-ehY3MQSN.js → index-DROc98p5.js} +3 -3
  156. package/dist/client/assets/{index-BOGZM7Pw.js → index-OBKgoLrS.js} +3 -3
  157. package/dist/client/assets/{index-DlDzsxeJ.js → index-nLAjrXPh.js} +1 -1
  158. package/dist/client/assets/{index-redirect-zukIYzlP.js → index-redirect-XmpHbWI0.js} +1 -1
  159. package/dist/client/assets/{index-DuKSozhT.js → index-yiQcNbRY.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-CHVbl4Al.js → infiniteQueryObserver-Bysh3DKm.js} +1 -1
  161. package/dist/client/assets/{infra-billing-D94tvu0v.js → infra-billing-CrRHsYb5.js} +1 -1
  162. package/dist/client/assets/{input-qBVmxar0.js → input-CcBq0Qtl.js} +3 -3
  163. package/dist/client/assets/{input-C0ZWiiGy.js → input-Kws07Y5R.js} +1 -1
  164. package/dist/client/assets/{input-Cbyu0LGy.js → input-xNv48kMp.js} +1 -1
  165. package/dist/client/assets/{integration-icon-DUuPtqFs.js → integration-icon-D2va06Ai.js} +1 -1
  166. package/dist/client/assets/{label-CKukDnnz.js → label-BsArcFBD.js} +1 -1
  167. package/dist/client/assets/{layout-DZr1Z4Vi.js → layout-DgSCQhnk.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-O_a0ihqp.js → legacy-agents-deep-_Rsc7ywf.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-B6sO18wU.js → legacy-main-redirect-BKsErYAe.js} +1 -1
  170. package/dist/client/assets/library-DXXDvCqk.js +1 -0
  171. package/dist/client/assets/{library-tab-CGsiOX6E.js → library-tab-DsEkCV3p.js} +1 -1
  172. package/dist/client/assets/{login-hdkcuXfq.js → login-Lx_WumW3.js} +1 -1
  173. package/dist/client/assets/{markdown-DNk_PyOf.js → markdown-DNNvyUFL.js} +1 -1
  174. package/dist/client/assets/{mcp-app-renderer-CJ5u3TPG.js → mcp-app-renderer-Bvvl0FWT.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-cSH4PfZY.js → mcp-oauth-3C0PcQv6.js} +1 -1
  176. package/dist/client/assets/{members-C-_zRkLX.js → members-DvRk0bvv.js} +1 -1
  177. package/dist/client/assets/{memory-DLRzHb1w.js → memory-B8oV5gBw.js} +1 -1
  178. package/dist/client/assets/{mini-report-page-CFzUUmyT.js → mini-report-page-DdQ7SKpZ.js} +1 -1
  179. package/dist/client/assets/{mock-board-Si0mPE9y.js → mock-board-DBOMi-p8.js} +1 -1
  180. package/dist/client/assets/{monaco-editor-C4uDUO_q.js → monaco-editor-0FKvs3m8.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-CllZiW9E.js → monitoring-stats-row-bsHcY4Ek.js} +1 -1
  182. package/dist/client/assets/{multi-select-DiHVOPXR.js → multi-select-CsrBGXiU.js} +1 -1
  183. package/dist/client/assets/{mustache-C7f92o5k.js → mustache-R5ZIENHD.js} +1 -1
  184. package/dist/client/assets/{new-project-dialog-CiCMTA1C.js → new-project-dialog-BXg1Q86m.js} +1 -1
  185. package/dist/client/assets/{oauth-callback-Cb4S9fwE.js → oauth-callback-CJsOiTzu.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-ai-provider-CD_A5mvP.js → oauth-callback-ai-provider-BQmwZWeP.js} +1 -1
  187. package/dist/client/assets/{onboarding-B2wyTbOl.js → onboarding-Cg9R0el4.js} +1 -1
  188. package/dist/client/assets/{openai-conversation-WSjKAhvH.js → openai-conversation-BL4VQkfR.js} +1 -1
  189. package/dist/client/assets/{optimistic-project-sidebar-views-BBFtzDV4.js → optimistic-project-sidebar-views-De10Nj6j.js} +1 -1
  190. package/dist/client/assets/{org-file-open-context--_UQSpdl.js → org-file-open-context-BosMDtdb.js} +1 -1
  191. package/dist/client/assets/{organization-choice-Bs4XFXgS.js → organization-choice-oi2kSFzc.js} +1 -1
  192. package/dist/client/assets/{orgs-DzdQslwf.js → orgs-YLkB30CC.js} +1 -1
  193. package/dist/client/assets/{page-seo-form-vON-l1GZ.js → page-seo-form-B7zbvDL2.js} +1 -1
  194. package/dist/client/assets/{pair-IorbWgZn.js → pair-BtqMUvq4.js} +1 -1
  195. package/dist/client/assets/{plan-ladder-DSodyL3Q.js → plan-ladder-2SN6IZxx.js} +1 -1
  196. package/dist/client/assets/{popover-DvKxqM1r.js → popover-Cb13NGPe.js} +1 -1
  197. package/dist/client/assets/{post-calendar-DiEfiKrj.js → post-calendar-RlXieGQw.js} +1 -1
  198. package/dist/client/assets/{post-editor-HV3DNHNH.js → post-editor-_9DsSzJD.js} +1 -1
  199. package/dist/client/assets/{preview-content-Bd42BahA.js → preview-content-DOOZEe7K.js} +1 -1
  200. package/dist/client/assets/{preview-dialog-DBXVi9mo.js → preview-dialog-hfrg0TdN.js} +1 -1
  201. package/dist/client/assets/{profile-C62VIFSL.js → profile-tDdLE8vh.js} +1 -1
  202. package/dist/client/assets/{project-app-view-DYaaNrnC.js → project-app-view-Rd2WBl7i.js} +1 -1
  203. package/dist/client/assets/{project-feed-DDiBGrsP.js → project-feed-CrFrudQ9.js} +1 -1
  204. package/dist/client/assets/{project-icon-DQrOXeEW.js → project-icon-DFU40NC2.js} +1 -1
  205. package/dist/client/assets/project-reports-D2_GUrbe.js +1 -0
  206. package/dist/client/assets/project-tasks-BulftSHT.js +1 -0
  207. package/dist/client/assets/{projects-C-62vsjh.js → projects-QV8eEeko.js} +1 -1
  208. package/dist/client/assets/{projects-empty-state-DllkKglW.js → projects-empty-state-xo5NNNQh.js} +1 -1
  209. package/dist/client/assets/{prompts-53mGvQlZ.js → prompts-BX7-kI7o.js} +1 -1
  210. package/dist/client/assets/record-editor-B0H5WqkE.js +1 -0
  211. package/dist/client/assets/{redirect-editor-C2CflIXw.js → redirect-editor-Bi6rLeHR.js} +1 -1
  212. package/dist/client/assets/{reports-DQcmX2XK.js → reports-CA7N6twS.js} +1 -1
  213. package/dist/client/assets/reports-CHglz2zQ.js +1 -0
  214. package/dist/client/assets/{reports-onboarding-DRfSptAM.js → reports-onboarding-DERDE-0k.js} +1 -1
  215. package/dist/client/assets/{reports-tab-BGRnmmWF.js → reports-tab-3gFhJXg-.js} +2 -2
  216. package/dist/client/assets/{repositories-ltvP9f3v.js → repositories-DMFw7emx.js} +1 -1
  217. package/dist/client/assets/{repository-binding-CEDkA6og.js → repository-binding-BXNOickW.js} +1 -1
  218. package/dist/client/assets/{repository-import-picker-BT060hhl.js → repository-import-picker-Tdhv79ml.js} +1 -1
  219. package/dist/client/assets/{repository-picker-Bowb7b9f.js → repository-picker-PURciVL4.js} +1 -1
  220. package/dist/client/assets/{require-capability-DN9BJlNM.js → require-capability-J3WiMSvq.js} +1 -1
  221. package/dist/client/assets/{required-auth-layout-CKgEUo-z.js → required-auth-layout-D2VAA74b.js} +1 -1
  222. package/dist/client/assets/{reset-password-B6iTpX4u.js → reset-password-C0vsdMzy.js} +1 -1
  223. package/dist/client/assets/{resizable-Cd8jDRB7.js → resizable-pZE9eaKX.js} +1 -1
  224. package/dist/client/assets/{resolve-tab-icon-X0M-w-vv.js → resolve-tab-icon-vYim2A6S.js} +1 -1
  225. package/dist/client/assets/{review-settings-CsnvQ-Qq.js → review-settings-CgwxmK2U.js} +1 -1
  226. package/dist/client/assets/{rich-text-link-control-ClsuTwdo.js → rich-text-link-control-B2JcdNT_.js} +1 -1
  227. package/dist/client/assets/{roles-CU8q7gVb.js → roles-DuPCSfd2.js} +1 -1
  228. package/dist/client/assets/{route-NLnkR9WP.js → route-Cg_bXToL.js} +1 -1
  229. package/dist/client/assets/{route-CIn0WnXQ.js → route-Ycp8NA6O.js} +1 -1
  230. package/dist/client/assets/route-eIs4MDaB.js +1 -0
  231. package/dist/client/assets/{runnable-block-editor-2ItVAsl7.js → runnable-block-editor-CEeBI7Ji.js} +1 -1
  232. package/dist/client/assets/{sandbox-lifecycle-context-C0vkuH66.js → sandbox-lifecycle-context-D9pUeLC3.js} +1 -1
  233. package/dist/client/assets/{schema-W3hqtN1B.js → schema-EK91AuqK.js} +1 -1
  234. package/dist/client/assets/{scroll-area-BN7R6f0c.js → scroll-area-CGd0e1tw.js} +1 -1
  235. package/dist/client/assets/{search-input-dP8TWy_f.js → search-input-Z6QSPnUN.js} +1 -1
  236. package/dist/client/assets/{search-toggle-BY33vUyT.js → search-toggle-HnNumyyq.js} +1 -1
  237. package/dist/client/assets/{secret-picker-Bw0HhGwk.js → secret-picker-CqLw8TkH.js} +1 -1
  238. package/dist/client/assets/{secrets-D3WU-wHx.js → secrets-DlDhor0l.js} +1 -1
  239. package/dist/client/assets/{sections-editor-Bnb_Ii_2.js → sections-editor-BzSi4RpW.js} +1 -1
  240. package/dist/client/assets/{select-CGC5E9nf.js → select-BhJ8bhDe.js} +1 -1
  241. package/dist/client/assets/{select-model-B24PK9T9.js → select-model-R1qyXM2Q.js} +1 -1
  242. package/dist/client/assets/{seo-editor-C0eExFGM.js → seo-editor-CbZ5Ttz-.js} +1 -1
  243. package/dist/client/assets/{separator-CJCi7EK2.js → separator-DdUyNk8m.js} +1 -1
  244. package/dist/client/assets/{settings-tab-6YGWJaPP.js → settings-tab-CFhR9sQ7.js} +1 -1
  245. package/dist/client/assets/{sheet-DOIzAtMq.js → sheet-Bogqpryv.js} +1 -1
  246. package/dist/client/assets/{shell-layout-B9OaioSj.js → shell-layout-DG1i0o3w.js} +1 -1
  247. package/dist/client/assets/{skills-DdHXbE4c.js → skills-C6p2ywNh.js} +1 -1
  248. package/dist/client/assets/{sso-WAQdj9Pk.js → sso-CaX3-wST.js} +1 -1
  249. package/dist/client/assets/{suggestion-CotdwSyy.js → suggestion-hd077eb-.js} +1 -1
  250. package/dist/client/assets/{switch-Ctdc8it1.js → switch-CBzf58ch.js} +1 -1
  251. package/dist/client/assets/{synced-repos-DFq2CK-H.js → synced-repos-B3IgFu_d.js} +1 -1
  252. package/dist/client/assets/{tab-icon-glyph-CXhMb9aF.js → tab-icon-glyph-BfZAz2Nh.js} +1 -1
  253. package/dist/client/assets/{table-BCWfTyhH.js → table-DdKwpV9k.js} +1 -1
  254. package/dist/client/assets/{tabs-BCc9oqWy.js → tabs-8xIz4UtP.js} +1 -1
  255. package/dist/client/assets/{task-board-Dh6sWb9t.js → task-board-BzFCmVqC.js} +1 -1
  256. package/dist/client/assets/{task-route-BGcHuycG.js → task-route-BFxRMUrM.js} +1 -1
  257. package/dist/client/assets/{task-status-CjAgmdGY.js → task-status-BFjuRlF8.js} +1 -1
  258. package/dist/client/assets/{taskboard-analytics-CgboMqfv.js → taskboard-analytics-CUklyXct.js} +1 -1
  259. package/dist/client/assets/{tasks-CQrn-rBP.js → tasks-BBOADBVx.js} +1 -1
  260. package/dist/client/assets/tasks-BklBZeO8.js +1 -0
  261. package/dist/client/assets/{textarea-e3h0PKfc.js → textarea-Cat7zkJf.js} +1 -1
  262. package/dist/client/assets/{thread-analytics-u-mhBpUO.js → thread-analytics-CVNcoFuI.js} +1 -1
  263. package/dist/client/assets/{thread-button-D5H005fQ.js → thread-button-9Si-8tRp.js} +1 -1
  264. package/dist/client/assets/{thread-intent-CNOpHUCE.js → thread-intent-Dk0A6ZtT.js} +1 -1
  265. package/dist/client/assets/{thread-route-DU2TTrlu.js → thread-route-BW9F2J6m.js} +1 -1
  266. package/dist/client/assets/{thread-route-esGiDSRu.js → thread-route-elF7W4D7.js} +1 -1
  267. package/dist/client/assets/{thread-sheet-body-Bn55RhIb.js → thread-sheet-body-DjYFhNWp.js} +1 -1
  268. package/dist/client/assets/{toggle-group-BUS82Kqf.js → toggle-group-B9Z8QVLn.js} +1 -1
  269. package/dist/client/assets/{toolbar-icon-button-B8tRovqj.js → toolbar-icon-button-BZarRBLi.js} +1 -1
  270. package/dist/client/assets/{tooltip-DoWVDYxv.js → tooltip-B7_4-yXG.js} +1 -1
  271. package/dist/client/assets/{track-slrdEZ2N.js → track-oTFNmgLQ.js} +1 -1
  272. package/dist/client/assets/{types-BlCCVKMl.js → types-co2Ht9Mj.js} +1 -1
  273. package/dist/client/assets/{usage-stats-ELYwp3GN.js → usage-stats-BGChWuhD.js} +1 -1
  274. package/dist/client/assets/{use-ai-providers-BuwFLwdC.js → use-ai-providers-DeSnAgnd.js} +1 -1
  275. package/dist/client/assets/{use-automations-B8HKsWEy.js → use-automations-D9GmwdRn.js} +1 -1
  276. package/dist/client/assets/{use-autosave-77sC71ka.js → use-autosave-CPw75416.js} +1 -1
  277. package/dist/client/assets/{use-chat-layout-state-Cd1SDWUO.js → use-chat-layout-state-Che4U26N.js} +1 -1
  278. package/dist/client/assets/{use-clock-tick-DkYE6iX2.js → use-clock-tick-C5v7xKB3.js} +1 -1
  279. package/dist/client/assets/{use-connect-companion-sjR8VGIZ.js → use-connect-companion-DQZNt_6L.js} +1 -1
  280. package/dist/client/assets/{use-connection-C4j2pJbz.js → use-connection-CldQc5wk.js} +1 -1
  281. package/dist/client/assets/{use-copy-BiyQhtNG.js → use-copy-C60AwJfN.js} +1 -1
  282. package/dist/client/assets/{use-create-virtual-mcp-C0a_KTOz.js → use-create-virtual-mcp-C1-gls-6.js} +1 -1
  283. package/dist/client/assets/{use-date-fns-locale-dFt0Hwsj.js → use-date-fns-locale-DrogVNbI.js} +1 -1
  284. package/dist/client/assets/{use-debounced-autosave-D58XDw_5.js → use-debounced-autosave-DEq3njSh.js} +1 -1
  285. package/dist/client/assets/{use-debounced-value-C1TKx6na.js → use-debounced-value-8t15K3Ro.js} +1 -1
  286. package/dist/client/assets/{use-deco-credits--by3KJXE.js → use-deco-credits-odXtC5vU.js} +1 -1
  287. package/dist/client/assets/{use-decopilot-events-DL6Ppxgb.js → use-decopilot-events-PV6rJUEO.js} +1 -1
  288. package/dist/client/assets/{use-delete-connection-Cc8dNIWp.js → use-delete-connection-ZGYKa162.js} +1 -1
  289. package/dist/client/assets/{use-deployment-admin-D0_O_QSr.js → use-deployment-admin-WZmDKf2R.js} +1 -1
  290. package/dist/client/assets/{use-fast-preview-draft-url-KJgu2gHZ.js → use-fast-preview-draft-url-DhkmOrTf.js} +1 -1
  291. package/dist/client/assets/{use-file-configs-j21JL3yE.js → use-file-configs-Cb37DNRD.js} +1 -1
  292. package/dist/client/assets/{use-infinite-scroll-BAQqTty_.js → use-infinite-scroll-CUV2ONAi.js} +1 -1
  293. package/dist/client/assets/{use-join-requests-B2449AYt.js → use-join-requests-CTH575eV.js} +1 -1
  294. package/dist/client/assets/{use-main-panel-tabs-NhZJRbOq.js → use-main-panel-tabs-Dlf1NeW3.js} +1 -1
  295. package/dist/client/assets/{use-mcp-auth-status-CG-b2BD1.js → use-mcp-auth-status-CdQemSFp.js} +1 -1
  296. package/dist/client/assets/{use-mcp-client-9jF2B0Tz.js → use-mcp-client-BLH9AyVn.js} +1 -1
  297. package/dist/client/assets/{use-mcp-prompts-DNAsQeJA.js → use-mcp-prompts-Dn5An3ZZ.js} +1 -1
  298. package/dist/client/assets/{use-mcp-tools-Dbm0kb0W.js → use-mcp-tools-Dvd6qKab.js} +1 -1
  299. package/dist/client/assets/{use-members-CmQfPBAn.js → use-members-Bs-9PW58.js} +1 -1
  300. package/dist/client/assets/{use-mobile-9GiVme_1.js → use-mobile-VzbSoGMr.js} +1 -1
  301. package/dist/client/assets/{use-navigate-to-agent-CSgL519X.js → use-navigate-to-agent-DC1x2gVp.js} +1 -1
  302. package/dist/client/assets/use-new-blocks-editor-Dt6P6iFj.js +1 -0
  303. package/dist/client/assets/{use-open-billing-url-CIF0WByS.js → use-open-billing-url-CqWGNwIl.js} +1 -1
  304. package/dist/client/assets/{use-org-auth-client-BBAyh5Tz.js → use-org-auth-client-BwlmPJlb.js} +1 -1
  305. package/dist/client/assets/{use-org-fs-DF_BlZtj.js → use-org-fs-CAxytlY9.js} +1 -1
  306. package/dist/client/assets/{use-org-repo-syncs-kX31P2gW.js → use-org-repo-syncs-7w0mnChN.js} +1 -1
  307. package/dist/client/assets/{use-org-sso-BmivjhbI.js → use-org-sso-pd_XhDQs.js} +1 -1
  308. package/dist/client/assets/{use-organization-roles-DEPf_2N_.js → use-organization-roles-0bUJSiHD.js} +1 -1
  309. package/dist/client/assets/{use-organization-settings-BgEtBsl7.js → use-organization-settings-HU4xq5ST.js} +1 -1
  310. package/dist/client/assets/{use-panel-navigate-4MoLzTpw.js → use-panel-navigate-CRJv_Vri.js} +1 -1
  311. package/dist/client/assets/{use-project-scope-CUYDg9gO.js → use-project-scope-C7BcZz2G.js} +1 -1
  312. package/dist/client/assets/{use-releases-Dgq67fk3.js → use-releases-CWzjTbPz.js} +1 -1
  313. package/dist/client/assets/{use-reports-diagnostic-D9eBWCCe.js → use-reports-diagnostic-C57CEzOi.js} +1 -1
  314. package/dist/client/assets/{use-secrets-D-qkpxrJ.js → use-secrets-DWHT5uVx.js} +1 -1
  315. package/dist/client/assets/{use-section-preview-base-LT3afhUQ.js → use-section-preview-base-D8KaMaNX.js} +1 -1
  316. package/dist/client/assets/{use-session-runtime-C1jT9-WF.js → use-session-runtime-C3g9swZ6.js} +1 -1
  317. package/dist/client/assets/{use-tags-D0iZ2cgD.js → use-tags-UVdMm4OW.js} +1 -1
  318. package/dist/client/assets/{use-task-board-analytics-B0Mv4i0Z.js → use-task-board-analytics-BsB8uLyj.js} +1 -1
  319. package/dist/client/assets/{use-task-board-events-Q5BqAnUD.js → use-task-board-events-UNKoOCA_.js} +1 -1
  320. package/dist/client/assets/{use-task-metadata-B9tqJ9GP.js → use-task-metadata-Db3_7a5j.js} +1 -1
  321. package/dist/client/assets/{use-thread-analytics-D5tK9O4P.js → use-thread-analytics-jm9iLDFp.js} +1 -1
  322. package/dist/client/assets/{use-thread-outputs-CDQWo15F.js → use-thread-outputs-COXL75K0.js} +1 -1
  323. package/dist/client/assets/useInfiniteQuery-DsKCSoLS.js +1 -0
  324. package/dist/client/assets/{useQueries-DvMDA4qD.js → useQueries-DVNZ_TAh.js} +1 -1
  325. package/dist/client/assets/useSuspenseInfiniteQuery-D4CsLbSw.js +1 -0
  326. package/dist/client/assets/{users-BE1CJVdF.js → users-BjcMnF7Q.js} +1 -1
  327. package/dist/client/assets/{utils-CZW3O45l.js → utils-BdWBNy3y.js} +1 -1
  328. package/dist/client/assets/{variant-calendar-C_oSHjpD.js → variant-calendar-COGidEDl.js} +1 -1
  329. package/dist/client/assets/{variant-matcher-override-B9Dx0Ujt.js → variant-matcher-override-CffNE4hW.js} +1 -1
  330. package/dist/client/assets/{view-mode-toggle-BjrOeE_u.js → view-mode-toggle-EBcGWFvm.js} +1 -1
  331. package/dist/client/assets/{virtual-mcp-DkCjKqhT.js → virtual-mcp-CRDba5ev.js} +1 -1
  332. package/dist/client/index.html +1 -1
  333. package/dist/server/cli.js +1 -1
  334. package/dist/server/server.js +1 -1
  335. package/package.json +1 -1
  336. package/dist/client/assets/agent-app-CjNO2lXq.js +0 -1
  337. package/dist/client/assets/agent-deck-BBsYONOP.js +0 -1
  338. package/dist/client/assets/agent-library-DJDlIAqS.js +0 -1
  339. package/dist/client/assets/agent-library-file-CZjl7KSc.js +0 -1
  340. package/dist/client/assets/agent-settings-DhGEY9it.js +0 -1
  341. package/dist/client/assets/agent-site-editor-code-D1HLX1NJ.js +0 -2
  342. package/dist/client/assets/agent-view-YbbJ0c-k.js +0 -1
  343. package/dist/client/assets/api-keys-C1C00ELj.js +0 -1
  344. package/dist/client/assets/app-editor-Cr-wsjho.js +0 -1
  345. package/dist/client/assets/flat-project-CXofx1Tp.js +0 -1
  346. package/dist/client/assets/library-DOnOZswk.js +0 -1
  347. package/dist/client/assets/project-reports-HuiRnlkO.js +0 -1
  348. package/dist/client/assets/project-tasks-Ck5F7vye.js +0 -1
  349. package/dist/client/assets/record-editor-BAdOwM42.js +0 -1
  350. package/dist/client/assets/reports-Dyr-R6yJ.js +0 -1
  351. package/dist/client/assets/route-qm6cYbsf.js +0 -1
  352. package/dist/client/assets/tasks-L9jj-kWQ.js +0 -1
  353. package/dist/client/assets/use-new-blocks-editor-CQ_89Cdt.js +0 -1
  354. package/dist/client/assets/useInfiniteQuery-pxyjNhep.js +0 -1
  355. package/dist/client/assets/useSuspenseInfiniteQuery-Cf0qcKEf.js +0 -1
@@ -1 +1 @@
1
- import{c as f,f as p,am as u,j as s,aM as x,N as a}from"./index-BOGZM7Pw.js";import{C as j}from"./capability-load-error-th8zEGOp.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
1
+ import{c as f,f as p,am as u,j as s,aM as x,N as a}from"./index-OBKgoLrS.js";import{C as j}from"./capability-load-error-DToq0UrY.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
@@ -1,4 +1,4 @@
1
- import{c as fo,r as F,b as cc,as as Hf,j as R,h as Vf,B as cl,av as ul,au as jf,at as Wf,eo as uc,ep as Kf,aR as Uf,eq as Kt,er as _f,l as dc}from"./index-BOGZM7Pw.js";import{d as qf,g as Jf}from"./gateway-client-DafKkh5Q.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-CwJ0Tacd.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-DXEENu_8.js";import{I as oh}from"./input-C0ZWiiGy.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context--_UQSpdl.js";import{T as ah,a as ch,b as uh}from"./tooltip-DoWVDYxv.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
1
+ import{c as fo,r as F,b as cc,as as Hf,j as R,h as Vf,B as cl,av as ul,au as jf,at as Wf,eo as uc,ep as Kf,aR as Uf,eq as Kt,er as _f,l as dc}from"./index-OBKgoLrS.js";import{d as qf,g as Jf}from"./gateway-client-DLwMoVSk.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-BI1xJ9QE.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-DBZy3h_k.js";import{I as oh}from"./input-Kws07Y5R.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context-BosMDtdb.js";import{T as ah,a as ch,b as uh}from"./tooltip-B7_4-yXG.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
2
2
  `)}}Ut.empty=new Ut(!0);class kh{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Cc(t){let e=[];do e.push(Sh(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Sh(t){let e=[];do e.push(xh(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function xh(t){let e=Eh(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Ch(t,e);else break;return e}function pl(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Ch(t,e){let n=pl(t),r=n;return t.eat(",")&&(t.next!="}"?r=pl(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Mh(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Eh(t){if(t.eat("(")){let e=Cc(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Mh(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Th(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=n())}else if(o.type=="star"){let a=n();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=n();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=n();i(s(o.expr,a),u),a=u}if(o.max==-1)i(s(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=n();r(a,u),i(s(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Mc(t,e){return e-t}function ml(t,e){let n=[];return r(e),n.sort(Mc);function r(i){let s=t[i];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&n.indexOf(a)==-1&&r(a)}}}function wh(t){let e=Object.create(null);return n(ml(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<i.length;u++)i[u][0]==l&&(c=i[u][1]);ml(t,a).forEach(u=>{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new Ut(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(Mc);s.next.push({type:i[o][0],next:e[l.join(",")]||n(l)})}return s}}function vh(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:c}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ec(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Tc(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let s=t[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function wc(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in t)t[i].validate&&t[i].validate(e[i])}function vc(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Nh(t,r,e[r]);return n}let gl=class Ac{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=vc(e,r.attrs),this.defaultAttrs=Ec(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ut.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Tc(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Bt(this,this.computeAttrs(e),k.from(n),$.setFrom(r))}createChecked(e=null,n,r){return n=k.from(n),this.checkContent(n),new Bt(this,this.computeAttrs(e),n,$.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=k.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(k.empty,!0);return s?new Bt(this,e,n.append(s),$.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){wc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:$.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Ac(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Ah(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}class Nh{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Ah(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Ri{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=vc(e,i.attrs),this.excluded=null;let s=Ec(this.attrs);this.instance=s?new $(this,s):null}create(e=null){return!e&&this.instance?this.instance:new $(this,Tc(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Ri(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){wc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Nc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=se.from(e.nodes),n.marks=se.from(e.marks||{}),this.nodes=gl.compile(this.spec.nodes,this),this.marks=Ri.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=Ut.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?yl(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:yl(this,o.split(" "))}this.nodeFromJSON=i=>Bt.fromJSON(this,i),this.markFromJSON=i=>$.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof gl){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Wr(r,r.defaultAttrs,e,$.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function yl(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],s=t.marks[i],o=s;if(s)n.push(s);else for(let l in t.marks){let a=t.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function Oh(t){return t.tag!=null}function Dh(t){return t.style!=null}class He{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Oh(i))this.tags.push(i);else if(Dh(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new kl(this,n,!1);return r.addAll(e,$.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new kl(this,n,!0);return r.addAll(e,$.none,n.from,n.to),M.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Ph(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,n,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(o.getAttrs){let a=o.getAttrs(n);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let l=n[o];if((l.priority==null?50:l.priority)<s)break}n.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new He(e,He.schemaRules(e)))}}const Oc={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Rh={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Dc={ol:!0,ul:!0},er=1,vs=2,Bn=4;function bl(t,e,n){return e!=null?(e?er:0)|(e==="full"?vs:0):t&&t.whitespace=="pre"?er|vs:n&~Bn}class Cr{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=$.none,this.match=s||(o&Bn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(k.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&er)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=k.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Oc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class kl{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,s,o=bl(null,n.preserveWhitespace,0)|(r?Bn:0);i?s=new Cr(i.type,i.attrs,$.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new Cr(null,null,$.none,!0,null,o):s=new Cr(e.schema.topNodeType,null,$.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,s=i.options&vs?"full":this.localPreserveWS||(i.options&er)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
3
3
  `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),n,!0),l[a]&&this.insertNode(o.text(l[a]),n,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Dc.hasOwnProperty(o)&&this.parser.normalizeLists&&Ih(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Rh.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,u=this.needsBlock;if(Oc.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=a&&a.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(s,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,n.attrs||null,r,n.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=$.none;for(let l of i.concat(e.marks))(s.type?s.type.allowsMarkType(l.type):xl(l.type,e.type))&&(o=l.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let s=this.findPlace(e.create(n),r,!1);return s&&(s=this.enterInner(e,n,r,!0,i)),s}enterInner(e,n,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=bl(e,s,o.options);o.options&Bn&&o.content.length==0&&(l|=Bn);let a=$.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):xl(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Cr(e,n,a,i,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=er)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function Ih(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Dc.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Ph(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Sl(t){let e={};for(let n in t)e[n]=t[n];return e}function xl(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||s.indexOf(u)<0&&o(u))return!0}};if(o(i.contentMatch))return!0}}class nt{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Mr(n).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,a=0;for(;l<s.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)i=s.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,n);u&&(s.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){if(e.isText)return Mr(n).createTextNode(e.text);let{dom:r,contentDOM:i}=Lr(Mr(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Lr(Mr(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:Lr(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new nt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Cl(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Cl(e.marks)}}function Cl(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Mr(t){return t.document||window.document}const Ml=new WeakMap;function Lh(t){let e=Ml.get(t);return e===void 0&&Ml.set(t,e=$h(t)),e}function $h(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Lr(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=Lh(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let l,a=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(t.createTextNode(f));else{let{dom:h,contentDOM:p}=Lr(t,f,n,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const Rc=65535,Ic=Math.pow(2,16);function zh(t,e){return t+e*Ic}function El(t){return t&Rc}function Bh(t){return(t-(t&Rc))/Ic}const Pc=1,Lc=2,$r=4,$c=8;class As{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&$c)>0}get deletedBefore(){return(this.delInfo&(Pc|$r))>0}get deletedAfter(){return(this.delInfo&(Lc|$r))>0}get deletedAcross(){return(this.delInfo&$r)>0}}class xe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&xe.empty)return xe.empty}recover(e){let n=0,r=El(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+Bh(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?i:0);if(a>e)break;let c=this.ranges[l+s],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:n:n,h=a+i+(f<0?0:u);if(r)return h;let p=e==(n<0?a:d)?null:zh(l/3,e-a),g=e==a?Lc:e==d?Pc:$r;return(n<0?e!=a:e!=d)&&(g|=$c),new As(h,g,p)}i+=u-c}return r?e+i:new As(e+i,0,null)}touches(e,n){let r=0,i=El(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),a=o+(this.inverted?0:s),c=this.ranges[i+n],u=this.ranges[i+r];e(l,l+c,a,a+u),s+=u-c}}invert(){return new xe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?xe.empty:new xe(e<0?[0,-e,0]:[0,0,e])}}xe.empty=new xe([]);class tr{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new tr(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new tr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],l=o.mapResult(e,n);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this._maps[a].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new As(e,i,null)}}const Gi=Object.create(null);class fe{getMap(){return xe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Gi[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Gi)throw new RangeError("Duplicate use of step JSON ID "+e);return Gi[e]=n,n.prototype.jsonID=e,n}}class G{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new G(e,null)}static fail(e){return new G(null,e)}static fromReplace(e,n,r,i){try{return G.ok(e.replace(n,r,i))}catch(s){if(s instanceof Qn)return G.fail(s.message);throw s}}}function ho(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let s=t.child(i);s.content.size&&(s=s.copy(ho(s.content,e,s))),s.isInline&&(s=e(s,n,i)),r.push(s)}return k.fromArray(r)}class mt extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new M(ho(n.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,s)}invert(){return new De(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new mt(n.pos,r.pos,this.mark)}merge(e){return e instanceof mt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mt(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("addMark",mt);class De extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new M(ho(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,r)}invert(){return new mt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new De(n.pos,r.pos,this.mark)}merge(e){return e instanceof De&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new De(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new De(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("removeMark",De);class gt extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new gt(this.pos,n.marks[i]);return new gt(this.pos,this.mark)}}return new _t(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new gt(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new gt(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("addNodeMark",gt);class _t extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new gt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new _t(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new _t(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("removeNodeMark",_t);class q extends fe{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Ns(e,this.from,this.to)?G.fail("Structure replace would overwrite content"):G.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new xe([this.from,this.to-this.from,this.slice.size])}invert(e){return new q(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&q.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new q(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof q)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new q(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new q(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new q(n.from,n.to,M.fromJSON(e,n.slice),!!n.structure)}}q.MAP_BIAS=1;fe.jsonID("replace",q);class ee extends fe{constructor(e,n,r,i,s,o,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Ns(e,this.from,this.gapFrom)||Ns(e,this.gapTo,this.to)))return G.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return G.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?G.fromReplace(e,this.from,this.to,r):G.fail("Content does not fit in gap")}getMap(){return new xe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new ee(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||s>r.pos?null:new ee(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ee(n.from,n.to,n.gapFrom,n.gapTo,M.fromJSON(e,n.slice),n.insert,!!n.structure)}}fe.jsonID("replaceAround",ee);function Ns(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Fh(t,e,n,r){let i=[],s=[],o,l;t.doc.nodesBetween(e,n,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,n),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:i.push(o=new De(f,h,d[g])));l&&l.to==f?l.to=h:s.push(l=new mt(f,h,r))}}),i.forEach(a=>t.step(a)),s.forEach(a=>t.step(a))}function Hh(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof Ri){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,n);for(let u=0;u<a.length;u++){let d=a[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==s-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=s):i.push({style:d,from:Math.max(l,e),to:c,step:s})}}}),i.forEach(o=>t.step(new De(o.from,o.to,o.style)))}function po(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<s.childCount;a++){let c=s.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new q(l,u,M.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new De(l,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new M(k.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new q(l+f.index,l+f.index+f[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(k.empty,!0);t.replace(l,l,new M(a,0,0))}for(let a=o.length-1;a>=0;a--)t.step(o[a])}function Vh(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Mn(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,s=0;;--r){let o=t.$from.node(r),l=t.$from.index(r)+i,a=t.$to.indexAfter(r)-s;if(r<t.depth&&o.canReplace(l,a,n))return r;if(r==0||o.type.spec.isolating||!Vh(o,l,a))break;l&&(i=1),a<o.childCount&&(s=1)}return null}function jh(t,e,n){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),a=o,c=l,u=k.empty,d=0;for(let p=s,g=!1;p>n;p--)g||r.index(p)>0?(g=!0,u=k.from(r.node(p).copy(u)),d++):a--;let f=k.empty,h=0;for(let p=s,g=!1;p>n;p--)g||i.after(p+1)<i.end(p)?(g=!0,f=k.from(i.node(p).copy(f)),h++):c++;t.step(new ee(a,c,o,l,new M(u.append(f),d,h),u.size-d,!0))}function mo(t,e,n=null,r=t){let i=Wh(t,e),s=i&&Kh(r,e);return s?i.map(Tl).concat({type:e,attrs:n}).concat(s.map(Tl)):null}function Tl(t){return{type:t,attrs:null}}function Wh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return n.canReplaceWith(r,i,o)?s:null}function Kh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<i;c++)a=a.matchType(n.child(c).type);return!a||!a.validEnd?null:o}function Uh(t,e,n){let r=k.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let l=n[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new ee(i,s,i,s,new M(r,0,0),n.length,!0))}function _h(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&qh(t.doc,t.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Bc(t,o,l,s),po(t,t.mapping.slice(s).map(l,1),r,void 0,c===null);let u=t.mapping.slice(s),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return t.step(new ee(d,f,d+1,f-1,new M(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&zc(t,o,l,s),!1}})}function zc(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Bc(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(`
@@ -1 +1 @@
1
- import{dg as g,dh as d,di as v}from"./index-BOGZM7Pw.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
1
+ import{dg as g,dh as d,di as v}from"./index-OBKgoLrS.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
@@ -1 +1 @@
1
- import{f0 as He,co as Ht,r as S,f3 as ie,aR as $t,c as Z,j as s,fI as Jt,b as de,fK as Qt,fL as Ct,fM as _t,e$ as L,ed as ge,B as Ze,aS as ae}from"./index-BOGZM7Pw.js";import{i as er}from"./CreditCard01-D7Ll8vXp.js";import{n as tr}from"./LinkExternal01-ChFFafWR.js";import{B as C}from"./badge-DTNkOzY0.js";import{M as rr}from"./multi-select-DiHVOPXR.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-CGC5E9nf.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-BCWfTyhH.js";import{aH as fr,aI as kt,aJ as dr,aK as gr,aL as mr,aM as yr,aN as pr,aO as hr,P as br,aP as ue,aQ as vr,J as D,aR as jr,W as xr,an as fe,aS as Ut,z as Y,aT as Sr,aU as wr,j as Je,aV as Or,aW as Pr,v as Br,x as Ar,aE as Tr,Z as Dr,D as se,X as Nr,r as Er,a5 as qr,aX as Mr,aY as Ir,aZ as Rr,a_ as Lr,a$ as _r,b0 as kr,b1 as Ur,b2 as Fr,b3 as Wr,b4 as Kr,C as zr,Y as Vr,b5 as Zr}from"./CartesianChart-DIS9sPOp.js";import{X as Gr}from"./XAxis-G213xRid.js";import{R as Xr,S as Yr}from"./Sector-CoYmht1l.js";import{A as Hr,a as $r}from"./AreaChart-CJHdSsRl.js";import{R as Jr}from"./require-capability-DN9BJlNM.js";import"./checkbox-DuccoC4e.js";import"./Check-CcPSzxsY.js";import"./ChevronUp-C9klasvw.js";import"./command-D4xFqyr9.js";import"./index-Ccz5AaI_.js";import"./dialog-CwJ0Tacd.js";import"./X-BdtW9stL.js";import"./SearchMd-DJptVqPP.js";import"./popover-DvKxqM1r.js";import"./index-0glLJTM3.js";import"./index-CaP5SDB2.js";import"./access-gate-BtTwTt-9.js";import"./capability-load-error-th8zEGOp.js";var me={},ye={},Qe;function Qr(){return Qe||(Qe=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){const a=new Map;for(let l=0;l<r.length;l++){const o=r[l],u=n(o,l,r);a.has(u)||a.set(u,o)}return Array.from(a.values())}t.uniqBy=e})(ye)),ye}var pe={},Ce;function Cr(){return Ce||(Ce=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}t.ary=e})(pe)),pe}var he={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(he)),he}var be={},ve={},tt;function en(){return tt||(tt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return typeof r=="object"&&r!==null}t.isObjectLike=e})(ve)),ve}var rt;function tn(){return rt||(rt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(be)),be}var je={},xe={},nt;function rn(){return nt||(nt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=kt();function r(n){return function(a){return e.get(a,n)}}t.property=r})(xe)),xe}var Se={},we={},Oe={},Pe={},it;function Wt(){return it||(it=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null||typeof r!="object"&&typeof r!="function"}t.isPrimitive=e})(Pe)),Pe}var at;function nn(){return at||(at=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=dr(),r=Wt(),n=gr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function h(g,p,v,c,b,j){const O=d(g,p,v,c,b,j);return O!==void 0?!!O:l(g,p,h,j)},new Map)}function l(f,i,d,h){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,h);case"function":return Object.keys(i).length>0?l(f,{...i},d,h):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,h){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,h);if(i instanceof Map)return u(f,i,d,h);if(i instanceof Set)return y(f,i,d,h);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(h?.has(i))return h.get(i)===f;h?.set(i,f);try{for(let p=0;p<g.length;p++){const v=g[p];if(!r.isPrimitive(f)&&!(v in f)||i[v]===void 0&&f[v]!==void 0||i[v]===null&&f[v]!==null||!d(f[v],i[v],v,f,i,h))return!1}return!0}finally{h?.delete(i)}}function u(f,i,d,h){if(i.size===0)return!0;if(!(f instanceof Map))return!1;for(const[g,p]of i.entries()){const v=f.get(g);if(d(v,p,g,f,i,h)===!1)return!1}return!0}function m(f,i,d,h){if(i.length===0)return!0;if(!Array.isArray(f))return!1;const g=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let b=0;b<f.length;b++){if(g.has(b))continue;const j=f[b];let O=!1;if(d(j,v,p,f,i,h)&&(O=!0),O){g.add(b),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,h){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,h):!1}t.isMatchWith=a,t.isSetMatch=y})(Oe)),Oe}var st;function Kt(){return st||(st=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=nn();function r(n,a){return e.isMatchWith(n,a,()=>{})}t.isMatch=r})(we)),we}var Be={},Ae={},Te={},ot;function an(){return ot||(ot=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}t.getSymbols=e})(Te)),Te}var De={},lt;function Ge(){return lt||(lt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}t.getTag=e})(De)),De}var Ne={},ct;function zt(){return ct||(ct=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",l="[object Arguments]",o="[object Symbol]",u="[object Date]",m="[object Map]",y="[object Set]",f="[object Array]",i="[object Function]",d="[object ArrayBuffer]",h="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",b="[object Uint16Array]",j="[object Uint32Array]",O="[object BigUint64Array]",x="[object Int8Array]",P="[object Int16Array]",A="[object Int32Array]",B="[object BigInt64Array]",T="[object Float32Array]",E="[object Float64Array]";t.argumentsTag=l,t.arrayBufferTag=d,t.arrayTag=f,t.bigInt64ArrayTag=B,t.bigUint64ArrayTag=O,t.booleanTag=a,t.dataViewTag=p,t.dateTag=u,t.errorTag=g,t.float32ArrayTag=T,t.float64ArrayTag=E,t.functionTag=i,t.int16ArrayTag=P,t.int32ArrayTag=A,t.int8ArrayTag=x,t.mapTag=m,t.numberTag=n,t.objectTag=h,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=b,t.uint32ArrayTag=j,t.uint8ArrayTag=v,t.uint8ClampedArrayTag=c})(Ne)),Ne}var Ee={},qe={},ut;function sn(){return ut||(ut=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof He=="object"&&He||(function(){return this})()||Function("return this")();t.globalThis=e})(qe)),qe}var ft;function on(){return ft||(ft=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=sn();function r(n){return typeof e.globalThis.Buffer<"u"&&e.globalThis.Buffer.isBuffer(n)}t.isBuffer=r})(Ee)),Ee}var Me={},dt;function ln(){return dt||(dt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}t.isTypedArray=e})(Me)),Me}var gt;function Vt(){return gt||(gt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=an(),r=Ge(),n=zt(),a=on(),l=Wt(),o=ln();function u(i,d){return m(i,void 0,i,new Map,d)}function m(i,d,h,g=new Map,p=void 0){const v=p?.(i,d,h,g);if(v!==void 0)return v;if(l.isPrimitive(i))return i;if(g.has(i))return g.get(i);if(Array.isArray(i)){const c=new Array(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;g.set(i,c);for(const[b,j]of i)c.set(b,m(j,b,h,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const b of i)c.add(m(b,void 0,h,g,p));return c}if(a.isBuffer(i))return i.subarray();if(o.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return g.set(i,c),y(c,i,h,g,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Error){const c=structuredClone(i);return g.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,h,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,h,g,p),c}return i}function y(i,d,h=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const b=v[c],j=Object.getOwnPropertyDescriptor(i,b);(j==null||j.writable)&&(i[b]=m(d[b],b,h,g,p))}}function f(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}t.cloneDeepWith=u,t.cloneDeepWithImpl=m,t.copyProperties=y})(Ae)),Ae}var mt;function cn(){return mt||(mt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt();function r(n){return e.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}t.cloneDeep=r})(Be)),Be}var yt;function un(){return yt||(yt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=cn();function n(a){return a=r.cloneDeep(a),l=>e.isMatch(l,a)}t.matches=n})(Se)),Se}var Ie={},Re={},Le={},pt;function fn(){return pt||(pt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt(),r=Ge(),n=zt();function a(l,o){return e.cloneDeepWith(l,(u,m,y,f)=>{const i=o?.(u,m,y,f);if(i!==void 0)return i;if(typeof l=="object"){if(r.getTag(l)===n.objectTag&&typeof l.constructor!="function"){const d={};return f.set(l,d),e.copyProperties(d,l,y,f),d}switch(Object.prototype.toString.call(l)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new l.constructor(l?.valueOf());return e.copyProperties(d,l),d}case n.argumentsTag:{const d={};return e.copyProperties(d,l),d.length=l.length,d[Symbol.iterator]=l[Symbol.iterator],d}default:return}}})}t.cloneDeepWith=a})(Le)),Le}var ht;function dn(){return ht||(ht=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fn();function r(n){return e.cloneDeepWith(n)}t.cloneDeep=r})(Re)),Re}var _e={},ke={},bt;function gn(){return bt||(bt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ge();function r(n){return n!==null&&typeof n=="object"&&e.getTag(n)==="[object Arguments]"}t.isArguments=r})(ke)),ke}var vt;function mn(){return vt||(vt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=mr(),r=pr(),n=gn(),a=yr();function l(o,u){let m;if(Array.isArray(u)?m=u:typeof u=="string"&&e.isDeepKey(u)&&o?.[u]==null?m=a.toPath(u):m=[u],m.length===0)return!1;let y=o;for(let f=0;f<m.length;f++){const i=m[f];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}t.has=l})(_e)),_e}var jt;function yn(){return jt||(jt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=hr(),n=dn(),a=kt(),l=mn();function o(u,m){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return m=n.cloneDeep(m),function(y){const f=a.get(y,u);return f===void 0?l.has(y,u):m===void 0?f===void 0:e.isMatch(f,m)}}t.matchesProperty=o})(Ie)),Ie}var xt;function pn(){return xt||(xt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ft(),r=rn(),n=un(),a=yn();function l(o){if(o==null)return e.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?a.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}t.iteratee=l})(je)),je}var St;function hn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Qr(),r=Cr(),n=Ft(),a=tn(),l=pn();function o(u,m=n.identity){return a.isArrayLikeObject(u)?e.uniqBy(Array.from(u),r.ary(l.iteratee(m),1)):[]}t.uniqBy=o})(me)),me}var Ue,wt;function bn(){return wt||(wt=1,Ue=hn().uniqBy),Ue}var vn=bn();const Ot=Ht(vn);function jn(t,e,r){return e===!0?Ot(t,r):typeof e=="function"?Ot(t,e):t}var oe=1;function xn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[e,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var l=a.getBoundingClientRect(),o={height:l.height,left:l.left,top:l.top,width:l.width};(Math.abs(o.height-e.height)>oe||Math.abs(o.left-e.left)>oe||Math.abs(o.top-e.top)>oe||Math.abs(o.width-e.width)>oe)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[e.width,e.height,e.top,e.left,...t]);return[e,n]}function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ke.apply(null,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pt(Object(r),!0).forEach(function(n){Sn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sn(t,e,r){return(e=wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wn(t){var e=On(t,"string");return typeof e=="symbol"?e:e+""}function On(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pn(t){return Array.isArray(t)&&ue(t[0])&&ue(t[1])?t.join(" ~ "):t}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function Bn(t,e){return e==null?t:vr(t,e)}var An=t=>{var{separator:e=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=t,h=()=>{if(l&&l.length){var x={padding:0,margin:0},P=Bn(l,u),A=P.map((B,T)=>{if(!B||B.type==="none")return null;var E=B.formatter||o||Pn,{value:N,name:_}=B,F=N,W=_;if(E){var M=E(N,_,B,T,l);if(Array.isArray(M))[F,W]=M;else if(M!=null)F=M;else return null}var K=re(re({},J.itemStyle),{},{color:B.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:K},ue(W)?S.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ue(W)?S.createElement("span",{className:"recharts-tooltip-item-separator"},e):null,S.createElement("span",{className:"recharts-tooltip-item-value"},F),S.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:x},A)}return null},g=re(re({},J.contentStyle),r),p=re({margin:0},a),v=!br(f),c=v?f:"",b=ie("recharts-default-tooltip",m),j=ie("recharts-tooltip-label",y);v&&i&&l!==void 0&&l!==null&&(c=i(f,l));var O=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Ke({className:b,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),h())},ne="recharts-tooltip-wrapper",Tn={visibility:"hidden"};function Dn(t){var{coordinate:e,translateX:r,translateY:n}=t;return ie(ne,{["".concat(ne,"-right")]:D(r)&&e&&D(e.x)&&r>=e.x,["".concat(ne,"-left")]:D(r)&&e&&D(e.x)&&r<e.x,["".concat(ne,"-bottom")]:D(n)&&e&&D(e.y)&&n>=e.y,["".concat(ne,"-top")]:D(n)&&e&&D(e.y)&&n<e.y})}function Bt(t){var{allowEscapeViewBox:e,coordinate:r,key:n,offset:a,position:l,reverseDirection:o,tooltipDimension:u,viewBox:m,viewBoxDimension:y}=t;if(l&&D(l[n]))return l[n];var f=r[n]-u-(a>0?a:0),i=r[n]+a;if(e[n])return o[n]?f:i;var d=m[n];if(d==null)return 0;if(o[n]){var h=f,g=d;return h<g?Math.max(i,d):Math.max(f,d)}if(y==null)return 0;var p=i+u,v=d+y;return p>v?Math.max(f,d):Math.max(i,d)}function Nn(t){var{translateX:e,translateY:r,useTranslate3d:n}=t;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function En(t){var{allowEscapeViewBox:e,coordinate:r,offsetTop:n,offsetLeft:a,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:m,viewBox:y}=t,f,i,d;return u.height>0&&u.width>0&&r?(i=Bt({allowEscapeViewBox:e,coordinate:r,key:"x",offset:a,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:y,viewBoxDimension:y.width}),d=Bt({allowEscapeViewBox:e,coordinate:r,key:"y",offset:n,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:y,viewBoxDimension:y.height}),f=Nn({translateX:i,translateY:d,useTranslate3d:m})):f=Tn,{cssProperties:f,cssClasses:Dn({translateX:i,translateY:d,coordinate:r})}}function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?At(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mn(t){var e=In(t,"string");return typeof e=="symbol"?e:e+""}function In(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rn(t){if(!(t.prefersReducedMotion&&t.isAnimationActive==="auto")&&t.isAnimationActive&&t.active)return"transform ".concat(t.animationDuration,"ms ").concat(t.animationEasing)}function Ln(t){var e,r,n,a,l,o,u=jr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,b,j;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=t.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(b=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(e=t.coordinate)===null||e===void 0?void 0:e.x,(r=t.coordinate)===null||r===void 0?void 0:r.y]),m.dismissed&&(((n=(a=t.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==m.dismissedAtCoordinate.x||((l=(o=t.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0)!==m.dismissedAtCoordinate.y)&&y(Q(Q({},m),{},{dismissed:!1}));var{cssClasses:f,cssProperties:i}=En({allowEscapeViewBox:t.allowEscapeViewBox,coordinate:t.coordinate,offsetLeft:typeof t.offset=="number"?t.offset:t.offset.x,offsetTop:typeof t.offset=="number"?t.offset:t.offset.y,position:t.position,reverseDirection:t.reverseDirection,tooltipBox:{height:t.lastBoundingBox.height,width:t.lastBoundingBox.width},useTranslate3d:t.useTranslate3d,viewBox:t.viewBox}),d=t.hasPortalFromProps?{}:Q(Q({transition:Rn({prefersReducedMotion:u,isAnimationActive:t.isAnimationActive,active:t.active,animationDuration:t.animationDuration,animationEasing:t.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Q(Q({},d),{},{visibility:!m.dismissed&&t.active&&t.hasPayload?"visible":"hidden"},t.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:t.innerRef},t.children)}var _n=S.memo(Ln),kn=["x","y","top","left","width","height","className"];function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ze.apply(null,arguments)}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Un(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(r),!0).forEach(function(n){Fn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fn(t,e,r){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t,e){if(t==null)return{};var r,n,a=Vn(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)r=l[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function Vn(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var Zn=(t,e,r,n,a,l)=>"M".concat(t,",").concat(a,"v").concat(n,"M").concat(l,",").concat(e,"h").concat(r),Gn=t=>{var{x:e=0,y:r=0,top:n=0,left:a=0,width:l=0,height:o=0,className:u}=t,m=zn(t,kn),y=Un({x:e,y:r,top:n,left:a,width:l,height:o},m);return!D(e)||!D(r)||!D(l)||!D(o)||!D(n)||!D(a)?null:S.createElement("path",ze({},xr(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Xn(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function Zt(t){var{cx:e,cy:r,radius:n,startAngle:a,endAngle:l}=t,o=fe(e,r,n,a),u=fe(e,r,n,l);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:a,endAngle:l}}function Yn(t,e,r){if(t==="horizontal")return[{x:e.x,y:r.top},{x:e.x,y:r.top+r.height}];if(t==="vertical")return[{x:r.left,y:e.y},{x:r.left+r.width,y:e.y}];if(Ut(e)){if(t==="centric"){var{cx:n,cy:a,innerRadius:l,outerRadius:o,angle:u}=e,m=fe(n,a,l,u),y=fe(n,a,o,u);return[{x:m.x,y:m.y},{x:y.x,y:y.y}]}return Zt(e)}}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(r),!0).forEach(function(n){Hn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hn(t,e,r){return(e=$n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){var e=Jn(t,"string");return typeof e=="symbol"?e:e+""}function Jn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qn=()=>Y(Or),Cn=()=>{var t=Qn(),e=Y(Sr),r=Y(wr);return!t||!r?Je(void 0,e):Je(Nt(Nt({},t),{},{scale:r}),e)};function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ve.apply(null,arguments)}function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Et(Object(r),!0).forEach(function(n){ei(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t,e,r){return(e=ti(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ti(t){var e=ri(t,"string");return typeof e=="symbol"?e:e+""}function ri(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ni(t){var{cursor:e,cursorComp:r,cursorProps:n}=t;return S.isValidElement(e)?S.cloneElement(e,n):S.createElement(r,n)}function ii(t){var e,{coordinate:r,payload:n,index:a,offset:l,tooltipAxisBandSize:o,layout:u,cursor:m,tooltipEventType:y,chartName:f}=t,i=r,d=n,h=a;if(!m||!i||f!=="ScatterChart"&&y!=="axis")return null;var g,p,v;if(f==="ScatterChart")g=i,p=Gn,v=se.cursorLine;else if(f==="BarChart")g=Xn(u,i,l,o),p=Xr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:b,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:b,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Yr,v=se.cursorLine}else g={points:Yn(u,i,l)},p=Nr,v=se.cursorLine;var P=typeof m=="object"&&"className"in m?m.className:void 0,A=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},l),g),Tr(m)),{},{payload:d,payloadIndex:h,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Dr,{zIndex:(e=t.zIndex)!==null&&e!==void 0?e:v},S.createElement(ni,{cursor:m,cursorComp:p,cursorProps:A}))}function ai(t){var e=Cn(),r=Pr(),n=Br(),a=Ar();return e==null||r==null||n==null||a==null?null:S.createElement(ii,Ve({},t,{offset:r,layout:n,tooltipAxisBandSize:e,chartName:a}))}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qt(Object(r),!0).forEach(function(n){si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function si(t,e,r){return(e=oi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oi(t){var e=li(t,"string");return typeof e=="symbol"?e:e+""}function li(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){return t.dataKey}function ui(t,e){return S.isValidElement(t)?S.cloneElement(t,e):typeof t=="function"?S.createElement(t,e):S.createElement(An,e)}var It=[],fi={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function di(t){var e,r,n=Er(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:h,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:b,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=qr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Mr({shared:b,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,b,j,P,a,B]);var T=Ir(),E=Rr(),N=Lr(b),{activeIndex:_,isActive:F}=(e=Y(U=>_r(U,N,j,B)))!==null&&e!==void 0?e:{},W=Y(U=>kr(U,N,j,B)),M=Y(U=>Ur(U,N,j,B)),K=Y(U=>Fr(U,N,j,B)),I=W,z=Wr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Kr(N,j,K,G,_,R);var X=x??z;if(X==null||T==null||N==null)return null;var q=I??It;R||(q=It),y&&q.length&&(q=jn(q.filter(U=>U.value!=null&&(U.hide!==!0||n.includeHidden)),d,ci));var $=q.length>0,w=Mt(Mt({},n),{},{payload:q,label:G,active:R,activeIndex:_,coordinate:K,accessibilityLayer:E}),k=S.createElement(_n,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:f,active:R,coordinate:K,hasPayload:$,offset:i,position:h,reverseDirection:g,useTranslate3d:p,viewBox:T,wrapperStyle:v,lastBoundingBox:V,innerRef:H,hasPortalFromProps:!!x},ui(m,w));return S.createElement(S.Fragment,null,$t.createPortal(k,X),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Xe=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),Rt=["B","KB","MB","GB","TB","PB"];function Gt(t){if(t<=0)return"0 B";const e=Math.min(Rt.length-1,Math.floor(Math.log(t)/Math.log(1024))),r=t/1024**e;return`${r.toFixed(r>=100||e===0?0:1)} ${Rt[e]}`}const Fe=50,gi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",mi=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Xt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Ye(t){return Xt(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function yi(){const t=new Date;return Array.from({length:12},(e,r)=>{const n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function pi(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function Lt(t){const e=Z.c(30),{usage:r,metric:n,colorNum:a,formatValue:l,height:o}=t,u=`var(--chart-${a})`,m=`infra-billing-${n}`;let y;e[0]!==r?(y=r.map(hi),e[0]=r,e[1]=y):y=e[1];const f=y;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},e[2]=i):i=e[2];let d,h;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),h=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=h):(d=e[4],h=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==h?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,h]})}),e[6]=m,e[7]=d,e[8]=h,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(zr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Gr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Vr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:l,width:68})]}),e[10]=l,e[11]=o,e[12]=p):p=e[12];let v,c;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=v,e[14]=c):(v=e[13],c=e[14]);let b;e[15]!==l?(b=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=b):b=e[16];const j=`url(#${m})`;let O;e[17]!==u||e[18]!==n||e[19]!==j?(O=s.jsx(Hr,{type:"linear",dataKey:n,stroke:u,strokeWidth:2,fill:j,dot:!1}),e[17]=u,e[18]=n,e[19]=j,e[20]=O):O=e[20];let x;e[21]!==f||e[22]!==O||e[23]!==g||e[24]!==p||e[25]!==b?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,b,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=b,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Zr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function hi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function bi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Qt(),[a,l]=S.useState(null),o=yi(),[u,m]=S.useState(o[0].value);let y;t[0]!==a||t[1]!==r?(y=a??r.slice(0,Fe),t[0]=a,t[1]=r,t[2]=y):y=t[2];const f=y,i=!a&&r.length>Fe,{data:d,isLoading:h}=Ct(f,u),g=_t();if(n){let w;return t[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ae,{className:"h-64 w-full"}),t[3]=w):w=t[3],w}if(r.length===0){let w;t[4]!==e?(w=e("settings.infraBilling.noSites"),t[4]=e,t[5]=w):w=t[5];let k;return t[6]!==w?(k=s.jsx(L,{className:"p-6 text-sm text-muted-foreground",children:w}),t[6]=w,t[7]=k):k=t[7],k}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,b=(w,k)=>c?k(ce(p,w)):"—",j=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Xe.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:b("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:b("dataTransferBytes",Gt)}],O=xi;let x;t[8]!==d?.teams?(x=d?.teams??[],t[8]=d?.teams,t[9]=x):x=t[9];const P=x;let A;t[10]!==d?.siteSlugsWithoutTeam?(A=d?.siteSlugsWithoutTeam??[],t[10]=d?.siteSlugsWithoutTeam,t[11]=A):A=t[11];const B=A,T=P.length===1?P[0]:void 0,E=T?.billing??null,N=P.length+(B.length>0?1:0)>1,_=ce(p,"pageviews"),F=_>0?ce(p,"requests")/_:0,W=v&&c&&_>0?F.toFixed(F<10?1:0):"—";let M;t[12]!==d?.billingUnavailable||t[13]!==T||t[14]!==e||t[15]!==P.length?(M=d?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):P.length>1?e("settings.infraBilling.multipleTeams",{count:String(P.length)}):T?Yt(T,e):e("settings.infraBilling.noTeam"),t[12]=d?.billingUnavailable,t[13]=T,t[14]=e,t[15]=P.length,t[16]=M):M=t[16];const K=M;let I;t[17]!==r?(I=r.map(ji),t[17]=r,t[18]=I):I=t[18];let z;t[19]!==e?(z=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=z):z=t[20];let R;t[21]!==f||t[22]!==I||t[23]!==z?(R=s.jsx(rr,{className:"w-auto min-w-56 max-w-full",options:I,defaultValue:f,maxCount:2,placeholder:z,onValueChange:l}),t[21]=f,t[22]=I,t[23]=z,t[24]=R):R=t[24];let V;t[25]!==e?(V=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=V):V=t[26];let H;t[27]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(sr,{}),t[27]=H):H=t[27];let G;t[28]!==V?(G=s.jsx(or,{className:"w-48","aria-label":V,children:H}),t[28]=V,t[29]=G):G=t[29];let X;t[30]!==f.length||t[31]!==e?(X=f.length===0&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=f.length,t[31]=e,t[32]=X):X=t[32];let q;t[33]!==e||t[34]!==i?(q=i&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(Fe)})}),t[33]=e,t[34]=i,t[35]=q):q=t[35];let $;return t[36]!==d?.usageUnavailable||t[37]!==e?($=d?.usageUnavailable&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=d?.usageUnavailable,t[37]=e,t[38]=$):$=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[R,s.jsxs(nr,{value:u,onValueChange:m,children:[G,s.jsx(ir,{children:o.map(vi)})]})]}),X,q,$,f.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(ge,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(L,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(er,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),T&&E?.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(T.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[E?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),h?s.jsx(ae,{className:"h-5 w-16"}):s.jsx(C,{variant:E.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${E.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:E.nextBillingDate?Ye(E.nextBillingDate):"—"})]})]}):!h&&s.jsx("p",{className:"text-xs text-muted-foreground",children:K}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:W})]})]})]}),j.map(w=>s.jsxs(L,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:o.find(k=>k.value===u)?.label})]}),h?s.jsx(ae,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:w.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:64})})]},w.key))]})}),s.jsx(ge,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:j.map(w=>s.jsxs(L,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:w.description})]}),s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:220})]},w.key))})}),s.jsx(ge,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:d?d.billingUnavailable?s.jsx(L,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[P.map(w=>s.jsx(Oi,{team:w,showSites:N},w.siteSlugs.join(","))),B.length>0&&s.jsxs(L,{className:"flex flex-col gap-1 p-4",children:[N&&s.jsx("span",{className:"text-sm font-medium",children:B.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(L,{children:s.jsx(ae,{className:"m-4 h-24"})})})})]})]})}function vi(t){return s.jsx(ar,{value:t.value,children:t.label},t.value)}function ji(t){return{label:t,value:t}}function xi(t){return t==="dataTransferBytes"?Gt:Si}function Si(t){return Xe.format(t)}function wi(t){return Xe.format(t)}function Yt(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Oi(t){const e=Z.c(13),{team:r,showSites:n}=t,a=de(),l=_t(),o=r.billing;let u;e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==r.siteSlugs?(u=n&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:r.siteSlugs.join(", ")}),o&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(C,{variant:o.planType==="free"?"secondary":"success",children:a(`settings.infraBilling.plan.${o.planType}`)}),o.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:a("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:Ye(o.nextBillingDate)})]}),o.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:l.isPending,onClick:()=>l.mutate(r.siteSlugs),children:a("settings.infraBilling.manageButton")})]})]}),e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=r.siteSlugs,e[5]=u):u=e[5];let m;e[6]!==o||e[7]!==a||e[8]!==r?(m=o?o.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:a("settings.infraBilling.noInvoices")}):s.jsx(Pi,{invoices:o.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:Yt(r,a)}),e[6]=o,e[7]=a,e[8]=r,e[9]=m):m=e[9];let y;return e[10]!==u||e[11]!==m?(y=s.jsxs(L,{className:"gap-0 overflow-x-auto",children:[u,m]}),e[10]=u,e[11]=m,e[12]=y):y=e[12],y}function Pi(t){const e=Z.c(40),{invoices:r}=t,n=de();let a;e[0]!==r?(a=r.some(Bi),e[0]=r,e[1]=a):a=e[1];const l=a;let o;e[2]!==n?(o=n("settings.infraBilling.invoiceReference"),e[2]=n,e[3]=o):o=e[3];let u;e[4]!==o?(u=s.jsx(ee,{children:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==n?(m=n("settings.infraBilling.invoiceDue"),e[6]=n,e[7]=m):m=e[7];let y;e[8]!==m?(y=s.jsx(ee,{children:m}),e[8]=m,e[9]=y):y=e[9];let f;e[10]!==n?(f=n("settings.infraBilling.invoiceAmount"),e[10]=n,e[11]=f):f=e[11];let i;e[12]!==f?(i=s.jsx(ee,{children:f}),e[12]=f,e[13]=i):i=e[13];let d;e[14]!==n?(d=n("settings.infraBilling.invoiceStatus"),e[14]=n,e[15]=d):d=e[15];let h;e[16]!==d?(h=s.jsx(ee,{children:d}),e[16]=d,e[17]=h):h=e[17];let g;e[18]!==n?(g=n("settings.infraBilling.invoiceDocuments"),e[18]=n,e[19]=g):g=e[19];let p;e[20]!==g?(p=s.jsx(ee,{children:g}),e[20]=g,e[21]=p):p=e[21];let v;e[22]!==p||e[23]!==u||e[24]!==y||e[25]!==i||e[26]!==h?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,h,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=h,e[27]=v):v=e[27];let c;if(e[28]!==r||e[29]!==n||e[30]!==l){let O;e[32]!==n||e[33]!==l?(O=x=>s.jsxs($e,{children:[s.jsx(te,{children:x.referenceMonth?Xt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Ye(x.dueDate):"—"}),s.jsx(te,{className:"tabular-nums",children:mi.format(x.value)}),s.jsx(te,{children:s.jsx(Ai,{status:x.status})}),s.jsxs(te,{className:"flex gap-2",children:[x.nfUrl&&s.jsx(We,{href:x.nfUrl,label:n("settings.infraBilling.invoiceNf")}),x.bankSlipUrl&&s.jsx(We,{href:x.bankSlipUrl,label:n("settings.infraBilling.invoiceBankSlip")}),!x.bankSlipUrl&&!l&&x.nfUrl&&s.jsx(We,{href:gi,label:n("settings.infraBilling.invoiceBankTransfer")}),!x.nfUrl&&!x.bankSlipUrl&&"—"]})]},x.id),e[32]=n,e[33]=l,e[34]=O):O=e[34],c=r.map(O),e[28]=r,e[29]=n,e[30]=l,e[31]=c}else c=e[31];let b;e[35]!==c?(b=s.jsx(cr,{children:c}),e[35]=c,e[36]=b):b=e[36];let j;return e[37]!==v||e[38]!==b?(j=s.jsxs(ur,{children:[v,b]}),e[37]=v,e[38]=b,e[39]=j):j=e[39],j}function Bi(t){return!!t.bankSlipUrl}function We(t){const e=Z.c(4),{href:r,label:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(tr,{size:14}),e[0]=a):a=e[0];let l;return e[1]!==r||e[2]!==n?(l=s.jsx(Ze,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),e[1]=r,e[2]=n,e[3]=l):l=e[3],l}function Ai(t){const e=Z.c(14),{status:r}=t,n=de(),a=r.toLowerCase();if(a==="paid"){let o;e[0]!==n?(o=n("settings.infraBilling.statusPaid"),e[0]=n,e[1]=o):o=e[1];let u;return e[2]!==o?(u=s.jsx(C,{variant:"success",children:o}),e[2]=o,e[3]=u):u=e[3],u}if(a==="overdue"){let o;e[4]!==n?(o=n("settings.infraBilling.statusOverdue"),e[4]=n,e[5]=o):o=e[5];let u;return e[6]!==o?(u=s.jsx(C,{variant:"destructive",children:o}),e[6]=o,e[7]=u):u=e[7],u}if(a==="registered"){let o;e[8]!==n?(o=n("settings.infraBilling.statusPending"),e[8]=n,e[9]=o):o=e[9];let u;return e[10]!==o?(u=s.jsx(C,{variant:"warning",children:o}),e[10]=o,e[11]=u):u=e[11],u}let l;return e[12]!==r?(l=s.jsx(C,{variant:"secondary",children:r}),e[12]=r,e[13]=l):l=e[13],l}function Ti(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jt,{group:"billing",children:s.jsx(bi,{})}),t[0]=e):e=t[0],e}function ea(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{ea as default};
1
+ import{f0 as He,co as Ht,r as S,f3 as ie,aR as $t,c as Z,j as s,fI as Jt,b as de,fK as Qt,fL as Ct,fM as _t,e$ as L,ed as ge,B as Ze,aS as ae}from"./index-OBKgoLrS.js";import{i as er}from"./CreditCard01-K1-aiN4b.js";import{n as tr}from"./LinkExternal01-DvsbzHx1.js";import{B as C}from"./badge-BbvQ8-kh.js";import{M as rr}from"./multi-select-CsrBGXiU.js";import{S as nr,d as ir,c as ar,a as sr,b as or}from"./select-BhJ8bhDe.js";import{T as ee,a as lr,b as $e,c as te,d as cr,e as ur}from"./table-DdKwpV9k.js";import{aH as fr,aI as kt,aJ as dr,aK as gr,aL as mr,aM as yr,aN as pr,aO as hr,P as br,aP as ue,aQ as vr,J as D,aR as jr,W as xr,an as fe,aS as Ut,z as Y,aT as Sr,aU as wr,j as Je,aV as Or,aW as Pr,v as Br,x as Ar,aE as Tr,Z as Dr,D as se,X as Nr,r as Er,a5 as qr,aX as Mr,aY as Ir,aZ as Rr,a_ as Lr,a$ as _r,b0 as kr,b1 as Ur,b2 as Fr,b3 as Wr,b4 as Kr,C as zr,Y as Vr,b5 as Zr}from"./CartesianChart-CojVOGED.js";import{X as Gr}from"./XAxis-BHJE6EzV.js";import{R as Xr,S as Yr}from"./Sector-Xhgx4JKP.js";import{A as Hr,a as $r}from"./AreaChart-ezLCE2QB.js";import{R as Jr}from"./require-capability-J3WiMSvq.js";import"./checkbox-DUCWAAon.js";import"./Check-BmlrCmw2.js";import"./ChevronUp-6u3SxMoQ.js";import"./command-8n8txvgK.js";import"./index-Co0BO1QR.js";import"./dialog-BI1xJ9QE.js";import"./X-C5Ha4Ozq.js";import"./SearchMd-Pjthnah9.js";import"./popover-Cb13NGPe.js";import"./index-BnsOjLj5.js";import"./index-83q9Ewq1.js";import"./access-gate-jiNu9DZN.js";import"./capability-load-error-DToq0UrY.js";var me={},ye={},Qe;function Qr(){return Qe||(Qe=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){const a=new Map;for(let l=0;l<r.length;l++){const o=r[l],u=n(o,l,r);a.has(u)||a.set(u,o)}return Array.from(a.values())}t.uniqBy=e})(ye)),ye}var pe={},Ce;function Cr(){return Ce||(Ce=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r,n){return function(...a){return r.apply(this,a.slice(0,n))}}t.ary=e})(pe)),pe}var he={},et;function Ft(){return et||(et=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r}t.identity=e})(he)),he}var be={},ve={},tt;function en(){return tt||(tt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return typeof r=="object"&&r!==null}t.isObjectLike=e})(ve)),ve}var rt;function tn(){return rt||(rt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fr(),r=en();function n(a){return r.isObjectLike(a)&&e.isArrayLike(a)}t.isArrayLikeObject=n})(be)),be}var je={},xe={},nt;function rn(){return nt||(nt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=kt();function r(n){return function(a){return e.get(a,n)}}t.property=r})(xe)),xe}var Se={},we={},Oe={},Pe={},it;function Wt(){return it||(it=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null||typeof r!="object"&&typeof r!="function"}t.isPrimitive=e})(Pe)),Pe}var at;function nn(){return at||(at=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=dr(),r=Wt(),n=gr();function a(f,i,d){return typeof d!="function"?a(f,i,()=>{}):l(f,i,function h(g,p,v,c,b,j){const O=d(g,p,v,c,b,j);return O!==void 0?!!O:l(g,p,h,j)},new Map)}function l(f,i,d,h){if(i===f)return!0;switch(typeof i){case"object":return o(f,i,d,h);case"function":return Object.keys(i).length>0?l(f,{...i},d,h):n.isEqualsSameValueZero(f,i);default:return e.isObject(f)?typeof i=="string"?i==="":!0:n.isEqualsSameValueZero(f,i)}}function o(f,i,d,h){if(i==null)return!0;if(Array.isArray(i))return m(f,i,d,h);if(i instanceof Map)return u(f,i,d,h);if(i instanceof Set)return y(f,i,d,h);const g=Object.keys(i);if(f==null||r.isPrimitive(f))return g.length===0;if(g.length===0)return!0;if(h?.has(i))return h.get(i)===f;h?.set(i,f);try{for(let p=0;p<g.length;p++){const v=g[p];if(!r.isPrimitive(f)&&!(v in f)||i[v]===void 0&&f[v]!==void 0||i[v]===null&&f[v]!==null||!d(f[v],i[v],v,f,i,h))return!1}return!0}finally{h?.delete(i)}}function u(f,i,d,h){if(i.size===0)return!0;if(!(f instanceof Map))return!1;for(const[g,p]of i.entries()){const v=f.get(g);if(d(v,p,g,f,i,h)===!1)return!1}return!0}function m(f,i,d,h){if(i.length===0)return!0;if(!Array.isArray(f))return!1;const g=new Set;for(let p=0;p<i.length;p++){const v=i[p];let c=!1;for(let b=0;b<f.length;b++){if(g.has(b))continue;const j=f[b];let O=!1;if(d(j,v,p,f,i,h)&&(O=!0),O){g.add(b),c=!0;break}}if(!c)return!1}return!0}function y(f,i,d,h){return i.size===0?!0:f instanceof Set?m([...f],[...i],d,h):!1}t.isMatchWith=a,t.isSetMatch=y})(Oe)),Oe}var st;function Kt(){return st||(st=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=nn();function r(n,a){return e.isMatchWith(n,a,()=>{})}t.isMatch=r})(we)),we}var Be={},Ae={},Te={},ot;function an(){return ot||(ot=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}t.getSymbols=e})(Te)),Te}var De={},lt;function Ge(){return lt||(lt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}t.getTag=e})(De)),De}var Ne={},ct;function zt(){return ct||(ct=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",l="[object Arguments]",o="[object Symbol]",u="[object Date]",m="[object Map]",y="[object Set]",f="[object Array]",i="[object Function]",d="[object ArrayBuffer]",h="[object Object]",g="[object Error]",p="[object DataView]",v="[object Uint8Array]",c="[object Uint8ClampedArray]",b="[object Uint16Array]",j="[object Uint32Array]",O="[object BigUint64Array]",x="[object Int8Array]",P="[object Int16Array]",A="[object Int32Array]",B="[object BigInt64Array]",T="[object Float32Array]",E="[object Float64Array]";t.argumentsTag=l,t.arrayBufferTag=d,t.arrayTag=f,t.bigInt64ArrayTag=B,t.bigUint64ArrayTag=O,t.booleanTag=a,t.dataViewTag=p,t.dateTag=u,t.errorTag=g,t.float32ArrayTag=T,t.float64ArrayTag=E,t.functionTag=i,t.int16ArrayTag=P,t.int32ArrayTag=A,t.int8ArrayTag=x,t.mapTag=m,t.numberTag=n,t.objectTag=h,t.regexpTag=e,t.setTag=y,t.stringTag=r,t.symbolTag=o,t.uint16ArrayTag=b,t.uint32ArrayTag=j,t.uint8ArrayTag=v,t.uint8ClampedArrayTag=c})(Ne)),Ne}var Ee={},qe={},ut;function sn(){return ut||(ut=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof He=="object"&&He||(function(){return this})()||Function("return this")();t.globalThis=e})(qe)),qe}var ft;function on(){return ft||(ft=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=sn();function r(n){return typeof e.globalThis.Buffer<"u"&&e.globalThis.Buffer.isBuffer(n)}t.isBuffer=r})(Ee)),Ee}var Me={},dt;function ln(){return dt||(dt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}t.isTypedArray=e})(Me)),Me}var gt;function Vt(){return gt||(gt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=an(),r=Ge(),n=zt(),a=on(),l=Wt(),o=ln();function u(i,d){return m(i,void 0,i,new Map,d)}function m(i,d,h,g=new Map,p=void 0){const v=p?.(i,d,h,g);if(v!==void 0)return v;if(l.isPrimitive(i))return i;if(g.has(i))return g.get(i);if(Array.isArray(i)){const c=new Array(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return Object.hasOwn(i,"index")&&(c.index=i.index),Object.hasOwn(i,"input")&&(c.input=i.input),c}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const c=new RegExp(i.source,i.flags);return c.lastIndex=i.lastIndex,c}if(i instanceof Map){const c=new Map;g.set(i,c);for(const[b,j]of i)c.set(b,m(j,b,h,g,p));return c}if(i instanceof Set){const c=new Set;g.set(i,c);for(const b of i)c.add(m(b,void 0,h,g,p));return c}if(a.isBuffer(i))return i.subarray();if(o.isTypedArray(i)){const c=new(Object.getPrototypeOf(i)).constructor(i.length);g.set(i,c);for(let b=0;b<i.length;b++)c[b]=m(i[b],b,h,g,p);return c}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const c=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return g.set(i,c),y(c,i,h,g,p),c}if(typeof File<"u"&&i instanceof File){const c=new File([i],i.name,{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(typeof Blob<"u"&&i instanceof Blob){const c=new Blob([i],{type:i.type});return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Error){const c=structuredClone(i);return g.set(i,c),c.message=i.message,c.name=i.name,c.stack=i.stack,c.cause=i.cause,c.constructor=i.constructor,y(c,i,h,g,p),c}if(i instanceof Boolean){const c=new Boolean(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof Number){const c=new Number(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(i instanceof String){const c=new String(i.valueOf());return g.set(i,c),y(c,i,h,g,p),c}if(typeof i=="object"&&f(i)){const c=Object.create(Object.getPrototypeOf(i));return g.set(i,c),y(c,i,h,g,p),c}return i}function y(i,d,h=i,g,p){const v=[...Object.keys(d),...e.getSymbols(d)];for(let c=0;c<v.length;c++){const b=v[c],j=Object.getOwnPropertyDescriptor(i,b);(j==null||j.writable)&&(i[b]=m(d[b],b,h,g,p))}}function f(i){switch(r.getTag(i)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}t.cloneDeepWith=u,t.cloneDeepWithImpl=m,t.copyProperties=y})(Ae)),Ae}var mt;function cn(){return mt||(mt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt();function r(n){return e.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}t.cloneDeep=r})(Be)),Be}var yt;function un(){return yt||(yt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=cn();function n(a){return a=r.cloneDeep(a),l=>e.isMatch(l,a)}t.matches=n})(Se)),Se}var Ie={},Re={},Le={},pt;function fn(){return pt||(pt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Vt(),r=Ge(),n=zt();function a(l,o){return e.cloneDeepWith(l,(u,m,y,f)=>{const i=o?.(u,m,y,f);if(i!==void 0)return i;if(typeof l=="object"){if(r.getTag(l)===n.objectTag&&typeof l.constructor!="function"){const d={};return f.set(l,d),e.copyProperties(d,l,y,f),d}switch(Object.prototype.toString.call(l)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new l.constructor(l?.valueOf());return e.copyProperties(d,l),d}case n.argumentsTag:{const d={};return e.copyProperties(d,l),d.length=l.length,d[Symbol.iterator]=l[Symbol.iterator],d}default:return}}})}t.cloneDeepWith=a})(Le)),Le}var ht;function dn(){return ht||(ht=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=fn();function r(n){return e.cloneDeepWith(n)}t.cloneDeep=r})(Re)),Re}var _e={},ke={},bt;function gn(){return bt||(bt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ge();function r(n){return n!==null&&typeof n=="object"&&e.getTag(n)==="[object Arguments]"}t.isArguments=r})(ke)),ke}var vt;function mn(){return vt||(vt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=mr(),r=pr(),n=gn(),a=yr();function l(o,u){let m;if(Array.isArray(u)?m=u:typeof u=="string"&&e.isDeepKey(u)&&o?.[u]==null?m=a.toPath(u):m=[u],m.length===0)return!1;let y=o;for(let f=0;f<m.length;f++){const i=m[f];if((y==null||!Object.hasOwn(y,i))&&!((Array.isArray(y)||n.isArguments(y))&&r.isIndex(i)&&i<y.length))return!1;y=y[i]}return!0}t.has=l})(_e)),_e}var jt;function yn(){return jt||(jt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Kt(),r=hr(),n=dn(),a=kt(),l=mn();function o(u,m){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return m=n.cloneDeep(m),function(y){const f=a.get(y,u);return f===void 0?l.has(y,u):m===void 0?f===void 0:e.isMatch(f,m)}}t.matchesProperty=o})(Ie)),Ie}var xt;function pn(){return xt||(xt=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Ft(),r=rn(),n=un(),a=yn();function l(o){if(o==null)return e.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?a.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}t.iteratee=l})(je)),je}var St;function hn(){return St||(St=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=Qr(),r=Cr(),n=Ft(),a=tn(),l=pn();function o(u,m=n.identity){return a.isArrayLikeObject(u)?e.uniqBy(Array.from(u),r.ary(l.iteratee(m),1)):[]}t.uniqBy=o})(me)),me}var Ue,wt;function bn(){return wt||(wt=1,Ue=hn().uniqBy),Ue}var vn=bn();const Ot=Ht(vn);function jn(t,e,r){return e===!0?Ot(t,r):typeof e=="function"?Ot(t,e):t}var oe=1;function xn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[e,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(a=>{if(a!=null){var l=a.getBoundingClientRect(),o={height:l.height,left:l.left,top:l.top,width:l.width};(Math.abs(o.height-e.height)>oe||Math.abs(o.left-e.left)>oe||Math.abs(o.top-e.top)>oe||Math.abs(o.width-e.width)>oe)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[e.width,e.height,e.top,e.left,...t]);return[e,n]}function Ke(){return Ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ke.apply(null,arguments)}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pt(Object(r),!0).forEach(function(n){Sn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sn(t,e,r){return(e=wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wn(t){var e=On(t,"string");return typeof e=="symbol"?e:e+""}function On(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pn(t){return Array.isArray(t)&&ue(t[0])&&ue(t[1])?t.join(" ~ "):t}var J={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function Bn(t,e){return e==null?t:vr(t,e)}var An=t=>{var{separator:e=J.separator,contentStyle:r,itemStyle:n,labelStyle:a=J.labelStyle,payload:l,formatter:o,itemSorter:u,wrapperClassName:m,labelClassName:y,label:f,labelFormatter:i,accessibilityLayer:d=J.accessibilityLayer}=t,h=()=>{if(l&&l.length){var x={padding:0,margin:0},P=Bn(l,u),A=P.map((B,T)=>{if(!B||B.type==="none")return null;var E=B.formatter||o||Pn,{value:N,name:_}=B,F=N,W=_;if(E){var M=E(N,_,B,T,l);if(Array.isArray(M))[F,W]=M;else if(M!=null)F=M;else return null}var K=re(re({},J.itemStyle),{},{color:B.color||J.itemStyle.color},n);return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:K},ue(W)?S.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ue(W)?S.createElement("span",{className:"recharts-tooltip-item-separator"},e):null,S.createElement("span",{className:"recharts-tooltip-item-value"},F),S.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:x},A)}return null},g=re(re({},J.contentStyle),r),p=re({margin:0},a),v=!br(f),c=v?f:"",b=ie("recharts-default-tooltip",m),j=ie("recharts-tooltip-label",y);v&&i&&l!==void 0&&l!==null&&(c=i(f,l));var O=d?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Ke({className:b,style:g},O),S.createElement("p",{className:j,style:p},S.isValidElement(c)?c:"".concat(c)),h())},ne="recharts-tooltip-wrapper",Tn={visibility:"hidden"};function Dn(t){var{coordinate:e,translateX:r,translateY:n}=t;return ie(ne,{["".concat(ne,"-right")]:D(r)&&e&&D(e.x)&&r>=e.x,["".concat(ne,"-left")]:D(r)&&e&&D(e.x)&&r<e.x,["".concat(ne,"-bottom")]:D(n)&&e&&D(e.y)&&n>=e.y,["".concat(ne,"-top")]:D(n)&&e&&D(e.y)&&n<e.y})}function Bt(t){var{allowEscapeViewBox:e,coordinate:r,key:n,offset:a,position:l,reverseDirection:o,tooltipDimension:u,viewBox:m,viewBoxDimension:y}=t;if(l&&D(l[n]))return l[n];var f=r[n]-u-(a>0?a:0),i=r[n]+a;if(e[n])return o[n]?f:i;var d=m[n];if(d==null)return 0;if(o[n]){var h=f,g=d;return h<g?Math.max(i,d):Math.max(f,d)}if(y==null)return 0;var p=i+u,v=d+y;return p>v?Math.max(f,d):Math.max(i,d)}function Nn(t){var{translateX:e,translateY:r,useTranslate3d:n}=t;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function En(t){var{allowEscapeViewBox:e,coordinate:r,offsetTop:n,offsetLeft:a,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:m,viewBox:y}=t,f,i,d;return u.height>0&&u.width>0&&r?(i=Bt({allowEscapeViewBox:e,coordinate:r,key:"x",offset:a,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:y,viewBoxDimension:y.width}),d=Bt({allowEscapeViewBox:e,coordinate:r,key:"y",offset:n,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:y,viewBoxDimension:y.height}),f=Nn({translateX:i,translateY:d,useTranslate3d:m})):f=Tn,{cssProperties:f,cssClasses:Dn({translateX:i,translateY:d,coordinate:r})}}function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?At(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mn(t){var e=In(t,"string");return typeof e=="symbol"?e:e+""}function In(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rn(t){if(!(t.prefersReducedMotion&&t.isAnimationActive==="auto")&&t.isAnimationActive&&t.active)return"transform ".concat(t.animationDuration,"ms ").concat(t.animationEasing)}function Ln(t){var e,r,n,a,l,o,u=jr(),[m,y]=S.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));S.useEffect(()=>{var g=p=>{if(p.key==="Escape"){var v,c,b,j;y({dismissed:!0,dismissedAtCoordinate:{x:(v=(c=t.coordinate)===null||c===void 0?void 0:c.x)!==null&&v!==void 0?v:0,y:(b=(j=t.coordinate)===null||j===void 0?void 0:j.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(e=t.coordinate)===null||e===void 0?void 0:e.x,(r=t.coordinate)===null||r===void 0?void 0:r.y]),m.dismissed&&(((n=(a=t.coordinate)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)!==m.dismissedAtCoordinate.x||((l=(o=t.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0)!==m.dismissedAtCoordinate.y)&&y(Q(Q({},m),{},{dismissed:!1}));var{cssClasses:f,cssProperties:i}=En({allowEscapeViewBox:t.allowEscapeViewBox,coordinate:t.coordinate,offsetLeft:typeof t.offset=="number"?t.offset:t.offset.x,offsetTop:typeof t.offset=="number"?t.offset:t.offset.y,position:t.position,reverseDirection:t.reverseDirection,tooltipBox:{height:t.lastBoundingBox.height,width:t.lastBoundingBox.width},useTranslate3d:t.useTranslate3d,viewBox:t.viewBox}),d=t.hasPortalFromProps?{}:Q(Q({transition:Rn({prefersReducedMotion:u,isAnimationActive:t.isAnimationActive,active:t.active,animationDuration:t.animationDuration,animationEasing:t.animationEasing})},i),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Q(Q({},d),{},{visibility:!m.dismissed&&t.active&&t.hasPayload?"visible":"hidden"},t.wrapperStyle);return S.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:t.innerRef},t.children)}var _n=S.memo(Ln),kn=["x","y","top","left","width","height","className"];function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ze.apply(null,arguments)}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Un(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(r),!0).forEach(function(n){Fn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fn(t,e,r){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t,e){if(t==null)return{};var r,n,a=Vn(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)r=l[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function Vn(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var Zn=(t,e,r,n,a,l)=>"M".concat(t,",").concat(a,"v").concat(n,"M").concat(l,",").concat(e,"h").concat(r),Gn=t=>{var{x:e=0,y:r=0,top:n=0,left:a=0,width:l=0,height:o=0,className:u}=t,m=zn(t,kn),y=Un({x:e,y:r,top:n,left:a,width:l,height:o},m);return!D(e)||!D(r)||!D(l)||!D(o)||!D(n)||!D(a)?null:S.createElement("path",ze({},xr(y),{className:ie("recharts-cross",u),d:Zn(e,r,l,o,n,a)}))};function Xn(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function Zt(t){var{cx:e,cy:r,radius:n,startAngle:a,endAngle:l}=t,o=fe(e,r,n,a),u=fe(e,r,n,l);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:a,endAngle:l}}function Yn(t,e,r){if(t==="horizontal")return[{x:e.x,y:r.top},{x:e.x,y:r.top+r.height}];if(t==="vertical")return[{x:r.left,y:e.y},{x:r.left+r.width,y:e.y}];if(Ut(e)){if(t==="centric"){var{cx:n,cy:a,innerRadius:l,outerRadius:o,angle:u}=e,m=fe(n,a,l,u),y=fe(n,a,o,u);return[{x:m.x,y:m.y},{x:y.x,y:y.y}]}return Zt(e)}}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(r),!0).forEach(function(n){Hn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hn(t,e,r){return(e=$n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t){var e=Jn(t,"string");return typeof e=="symbol"?e:e+""}function Jn(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qn=()=>Y(Or),Cn=()=>{var t=Qn(),e=Y(Sr),r=Y(wr);return!t||!r?Je(void 0,e):Je(Nt(Nt({},t),{},{scale:r}),e)};function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ve.apply(null,arguments)}function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Et(Object(r),!0).forEach(function(n){ei(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t,e,r){return(e=ti(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ti(t){var e=ri(t,"string");return typeof e=="symbol"?e:e+""}function ri(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ni(t){var{cursor:e,cursorComp:r,cursorProps:n}=t;return S.isValidElement(e)?S.cloneElement(e,n):S.createElement(r,n)}function ii(t){var e,{coordinate:r,payload:n,index:a,offset:l,tooltipAxisBandSize:o,layout:u,cursor:m,tooltipEventType:y,chartName:f}=t,i=r,d=n,h=a;if(!m||!i||f!=="ScatterChart"&&y!=="axis")return null;var g,p,v;if(f==="ScatterChart")g=i,p=Gn,v=se.cursorLine;else if(f==="BarChart")g=Xn(u,i,l,o),p=Xr,v=se.cursorRectangle;else if(u==="radial"&&Ut(i)){var{cx:c,cy:b,radius:j,startAngle:O,endAngle:x}=Zt(i);g={cx:c,cy:b,startAngle:O,endAngle:x,innerRadius:j,outerRadius:j},p=Yr,v=se.cursorLine}else g={points:Yn(u,i,l)},p=Nr,v=se.cursorLine;var P=typeof m=="object"&&"className"in m?m.className:void 0,A=le(le(le(le({stroke:"#ccc",pointerEvents:"none"},l),g),Tr(m)),{},{payload:d,payloadIndex:h,className:ie("recharts-tooltip-cursor",P)});return S.createElement(Dr,{zIndex:(e=t.zIndex)!==null&&e!==void 0?e:v},S.createElement(ni,{cursor:m,cursorComp:p,cursorProps:A}))}function ai(t){var e=Cn(),r=Pr(),n=Br(),a=Ar();return e==null||r==null||n==null||a==null?null:S.createElement(ii,Ve({},t,{offset:r,layout:n,tooltipAxisBandSize:e,chartName:a}))}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Mt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qt(Object(r),!0).forEach(function(n){si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function si(t,e,r){return(e=oi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oi(t){var e=li(t,"string");return typeof e=="symbol"?e:e+""}function li(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){return t.dataKey}function ui(t,e){return S.isValidElement(t)?S.cloneElement(t,e):typeof t=="function"?S.createElement(t,e):S.createElement(An,e)}var It=[],fi={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function di(t){var e,r,n=Er(t,fi),{active:a,allowEscapeViewBox:l,animationDuration:o,animationEasing:u,content:m,filterNull:y,isAnimationActive:f,offset:i,payloadUniqBy:d,position:h,reverseDirection:g,useTranslate3d:p,wrapperStyle:v,cursor:c,shared:b,trigger:j,defaultIndex:O,portal:x,axisId:P}=n,A=qr(),B=typeof O=="number"?String(O):O;S.useEffect(()=>{A(Mr({shared:b,trigger:j,axisId:P,active:a,defaultIndex:B}))},[A,b,j,P,a,B]);var T=Ir(),E=Rr(),N=Lr(b),{activeIndex:_,isActive:F}=(e=Y(U=>_r(U,N,j,B)))!==null&&e!==void 0?e:{},W=Y(U=>kr(U,N,j,B)),M=Y(U=>Ur(U,N,j,B)),K=Y(U=>Fr(U,N,j,B)),I=W,z=Wr(),R=(r=a??F)!==null&&r!==void 0?r:!1,[V,H]=xn([I,R]),G=N==="axis"?M:void 0;Kr(N,j,K,G,_,R);var X=x??z;if(X==null||T==null||N==null)return null;var q=I??It;R||(q=It),y&&q.length&&(q=jn(q.filter(U=>U.value!=null&&(U.hide!==!0||n.includeHidden)),d,ci));var $=q.length>0,w=Mt(Mt({},n),{},{payload:q,label:G,active:R,activeIndex:_,coordinate:K,accessibilityLayer:E}),k=S.createElement(_n,{allowEscapeViewBox:l,animationDuration:o,animationEasing:u,isAnimationActive:f,active:R,coordinate:K,hasPayload:$,offset:i,position:h,reverseDirection:g,useTranslate3d:p,viewBox:T,wrapperStyle:v,lastBoundingBox:V,innerRef:H,hasPortalFromProps:!!x},ui(m,w));return S.createElement(S.Fragment,null,$t.createPortal(k,X),R&&S.createElement(ai,{cursor:c,tooltipEventType:N,coordinate:K,payload:q,index:_}))}const Xe=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),Rt=["B","KB","MB","GB","TB","PB"];function Gt(t){if(t<=0)return"0 B";const e=Math.min(Rt.length-1,Math.floor(Math.log(t)/Math.log(1024))),r=t/1024**e;return`${r.toFixed(r>=100||e===0?0:1)} ${Rt[e]}`}const Fe=50,gi="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",mi=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Xt(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function Ye(t){return Xt(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function yi(){const t=new Date;return Array.from({length:12},(e,r)=>{const n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-r,1));return{value:n.toISOString().slice(0,10),label:n.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function pi(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function Lt(t){const e=Z.c(30),{usage:r,metric:n,colorNum:a,formatValue:l,height:o}=t,u=`var(--chart-${a})`,m=`infra-billing-${n}`;let y;e[0]!==r?(y=r.map(hi),e[0]=r,e[1]=y):y=e[1];const f=y;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={left:0,right:4,top:8,bottom:0},e[2]=i):i=e[2];let d,h;e[3]!==u?(d=s.jsx("stop",{offset:"0%",stopColor:u,stopOpacity:.25}),h=s.jsx("stop",{offset:"100%",stopColor:u,stopOpacity:0}),e[3]=u,e[4]=d,e[5]=h):(d=e[4],h=e[5]);let g;e[6]!==m||e[7]!==d||e[8]!==h?(g=s.jsx("defs",{children:s.jsxs("linearGradient",{id:m,x1:"0",y1:"0",x2:"0",y2:"1",children:[d,h]})}),e[6]=m,e[7]=d,e[8]=h,e[9]=g):g=e[9];let p;e[10]!==l||e[11]!==o?(p=o>100&&s.jsxs(s.Fragment,{children:[s.jsx(zr,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Gr,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Vr,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:l,width:68})]}),e[10]=l,e[11]=o,e[12]=p):p=e[12];let v,c;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={stroke:"var(--border)",strokeDasharray:"4 4"},c={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=v,e[14]=c):(v=e[13],c=e[14]);let b;e[15]!==l?(b=s.jsx(di,{cursor:v,contentStyle:c,formatter:A=>l(Number(A)||0)}),e[15]=l,e[16]=b):b=e[16];const j=`url(#${m})`;let O;e[17]!==u||e[18]!==n||e[19]!==j?(O=s.jsx(Hr,{type:"linear",dataKey:n,stroke:u,strokeWidth:2,fill:j,dot:!1}),e[17]=u,e[18]=n,e[19]=j,e[20]=O):O=e[20];let x;e[21]!==f||e[22]!==O||e[23]!==g||e[24]!==p||e[25]!==b?(x=s.jsxs($r,{data:f,margin:i,children:[g,p,b,O]}),e[21]=f,e[22]=O,e[23]=g,e[24]=p,e[25]=b,e[26]=x):x=e[26];let P;return e[27]!==o||e[28]!==x?(P=s.jsx(Zr,{width:"100%",height:o,children:x}),e[27]=o,e[28]=x,e[29]=P):P=e[29],P}function hi(t){return{...t,label:pi(t.date)}}function ce(t,e){return t.reduce((r,n)=>r+n[e],0)}function bi(){const t=Z.c(39),e=de(),{sites:r,isLoading:n}=Qt(),[a,l]=S.useState(null),o=yi(),[u,m]=S.useState(o[0].value);let y;t[0]!==a||t[1]!==r?(y=a??r.slice(0,Fe),t[0]=a,t[1]=r,t[2]=y):y=t[2];const f=y,i=!a&&r.length>Fe,{data:d,isLoading:h}=Ct(f,u),g=_t();if(n){let w;return t[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ae,{className:"h-64 w-full"}),t[3]=w):w=t[3],w}if(r.length===0){let w;t[4]!==e?(w=e("settings.infraBilling.noSites"),t[4]=e,t[5]=w):w=t[5];let k;return t[6]!==w?(k=s.jsx(L,{className:"p-6 text-sm text-muted-foreground",children:w}),t[6]=w,t[7]=k):k=t[7],k}const p=d?.usage??[],v=d?.pageviewsAvailable??!1,c=!!d&&!d.usageUnavailable,b=(w,k)=>c?k(ce(p,w)):"—",j=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:v&&c?Xe.format(ce(p,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:b("requests",wi)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:b("dataTransferBytes",Gt)}],O=xi;let x;t[8]!==d?.teams?(x=d?.teams??[],t[8]=d?.teams,t[9]=x):x=t[9];const P=x;let A;t[10]!==d?.siteSlugsWithoutTeam?(A=d?.siteSlugsWithoutTeam??[],t[10]=d?.siteSlugsWithoutTeam,t[11]=A):A=t[11];const B=A,T=P.length===1?P[0]:void 0,E=T?.billing??null,N=P.length+(B.length>0?1:0)>1,_=ce(p,"pageviews"),F=_>0?ce(p,"requests")/_:0,W=v&&c&&_>0?F.toFixed(F<10?1:0):"—";let M;t[12]!==d?.billingUnavailable||t[13]!==T||t[14]!==e||t[15]!==P.length?(M=d?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):P.length>1?e("settings.infraBilling.multipleTeams",{count:String(P.length)}):T?Yt(T,e):e("settings.infraBilling.noTeam"),t[12]=d?.billingUnavailable,t[13]=T,t[14]=e,t[15]=P.length,t[16]=M):M=t[16];const K=M;let I;t[17]!==r?(I=r.map(ji),t[17]=r,t[18]=I):I=t[18];let z;t[19]!==e?(z=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=z):z=t[20];let R;t[21]!==f||t[22]!==I||t[23]!==z?(R=s.jsx(rr,{className:"w-auto min-w-56 max-w-full",options:I,defaultValue:f,maxCount:2,placeholder:z,onValueChange:l}),t[21]=f,t[22]=I,t[23]=z,t[24]=R):R=t[24];let V;t[25]!==e?(V=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=V):V=t[26];let H;t[27]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(sr,{}),t[27]=H):H=t[27];let G;t[28]!==V?(G=s.jsx(or,{className:"w-48","aria-label":V,children:H}),t[28]=V,t[29]=G):G=t[29];let X;t[30]!==f.length||t[31]!==e?(X=f.length===0&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=f.length,t[31]=e,t[32]=X):X=t[32];let q;t[33]!==e||t[34]!==i?(q=i&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(Fe)})}),t[33]=e,t[34]=i,t[35]=q):q=t[35];let $;return t[36]!==d?.usageUnavailable||t[37]!==e?($=d?.usageUnavailable&&s.jsx(L,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=d?.usageUnavailable,t[37]=e,t[38]=$):$=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[R,s.jsxs(nr,{value:u,onValueChange:m,children:[G,s.jsx(ir,{children:o.map(vi)})]})]}),X,q,$,f.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(ge,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(L,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(er,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),T&&E?.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(T.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[E?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),h?s.jsx(ae,{className:"h-5 w-16"}):s.jsx(C,{variant:E.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${E.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:E.nextBillingDate?Ye(E.nextBillingDate):"—"})]})]}):!h&&s.jsx("p",{className:"text-xs text-muted-foreground",children:K}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:W})]})]})]}),j.map(w=>s.jsxs(L,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:o.find(k=>k.value===u)?.label})]}),h?s.jsx(ae,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:w.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:64})})]},w.key))]})}),s.jsx(ge,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:j.map(w=>s.jsxs(L,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:w.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:w.description})]}),s.jsx(Lt,{usage:p,metric:w.key,colorNum:w.colorNum,formatValue:O(w.key),height:220})]},w.key))})}),s.jsx(ge,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:d?d.billingUnavailable?s.jsx(L,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[P.map(w=>s.jsx(Oi,{team:w,showSites:N},w.siteSlugs.join(","))),B.length>0&&s.jsxs(L,{className:"flex flex-col gap-1 p-4",children:[N&&s.jsx("span",{className:"text-sm font-medium",children:B.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(L,{children:s.jsx(ae,{className:"m-4 h-24"})})})})]})]})}function vi(t){return s.jsx(ar,{value:t.value,children:t.label},t.value)}function ji(t){return{label:t,value:t}}function xi(t){return t==="dataTransferBytes"?Gt:Si}function Si(t){return Xe.format(t)}function wi(t){return Xe.format(t)}function Yt(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Oi(t){const e=Z.c(13),{team:r,showSites:n}=t,a=de(),l=_t(),o=r.billing;let u;e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==r.siteSlugs?(u=n&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:r.siteSlugs.join(", ")}),o&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(C,{variant:o.planType==="free"?"secondary":"success",children:a(`settings.infraBilling.plan.${o.planType}`)}),o.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:a("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:Ye(o.nextBillingDate)})]}),o.canManageSubscription&&s.jsx(Ze,{variant:"outline",size:"sm",disabled:l.isPending,onClick:()=>l.mutate(r.siteSlugs),children:a("settings.infraBilling.manageButton")})]})]}),e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=r.siteSlugs,e[5]=u):u=e[5];let m;e[6]!==o||e[7]!==a||e[8]!==r?(m=o?o.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:a("settings.infraBilling.noInvoices")}):s.jsx(Pi,{invoices:o.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:Yt(r,a)}),e[6]=o,e[7]=a,e[8]=r,e[9]=m):m=e[9];let y;return e[10]!==u||e[11]!==m?(y=s.jsxs(L,{className:"gap-0 overflow-x-auto",children:[u,m]}),e[10]=u,e[11]=m,e[12]=y):y=e[12],y}function Pi(t){const e=Z.c(40),{invoices:r}=t,n=de();let a;e[0]!==r?(a=r.some(Bi),e[0]=r,e[1]=a):a=e[1];const l=a;let o;e[2]!==n?(o=n("settings.infraBilling.invoiceReference"),e[2]=n,e[3]=o):o=e[3];let u;e[4]!==o?(u=s.jsx(ee,{children:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==n?(m=n("settings.infraBilling.invoiceDue"),e[6]=n,e[7]=m):m=e[7];let y;e[8]!==m?(y=s.jsx(ee,{children:m}),e[8]=m,e[9]=y):y=e[9];let f;e[10]!==n?(f=n("settings.infraBilling.invoiceAmount"),e[10]=n,e[11]=f):f=e[11];let i;e[12]!==f?(i=s.jsx(ee,{children:f}),e[12]=f,e[13]=i):i=e[13];let d;e[14]!==n?(d=n("settings.infraBilling.invoiceStatus"),e[14]=n,e[15]=d):d=e[15];let h;e[16]!==d?(h=s.jsx(ee,{children:d}),e[16]=d,e[17]=h):h=e[17];let g;e[18]!==n?(g=n("settings.infraBilling.invoiceDocuments"),e[18]=n,e[19]=g):g=e[19];let p;e[20]!==g?(p=s.jsx(ee,{children:g}),e[20]=g,e[21]=p):p=e[21];let v;e[22]!==p||e[23]!==u||e[24]!==y||e[25]!==i||e[26]!==h?(v=s.jsx(lr,{children:s.jsxs($e,{children:[u,y,i,h,p]})}),e[22]=p,e[23]=u,e[24]=y,e[25]=i,e[26]=h,e[27]=v):v=e[27];let c;if(e[28]!==r||e[29]!==n||e[30]!==l){let O;e[32]!==n||e[33]!==l?(O=x=>s.jsxs($e,{children:[s.jsx(te,{children:x.referenceMonth?Xt(x.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(te,{children:x.dueDate?Ye(x.dueDate):"—"}),s.jsx(te,{className:"tabular-nums",children:mi.format(x.value)}),s.jsx(te,{children:s.jsx(Ai,{status:x.status})}),s.jsxs(te,{className:"flex gap-2",children:[x.nfUrl&&s.jsx(We,{href:x.nfUrl,label:n("settings.infraBilling.invoiceNf")}),x.bankSlipUrl&&s.jsx(We,{href:x.bankSlipUrl,label:n("settings.infraBilling.invoiceBankSlip")}),!x.bankSlipUrl&&!l&&x.nfUrl&&s.jsx(We,{href:gi,label:n("settings.infraBilling.invoiceBankTransfer")}),!x.nfUrl&&!x.bankSlipUrl&&"—"]})]},x.id),e[32]=n,e[33]=l,e[34]=O):O=e[34],c=r.map(O),e[28]=r,e[29]=n,e[30]=l,e[31]=c}else c=e[31];let b;e[35]!==c?(b=s.jsx(cr,{children:c}),e[35]=c,e[36]=b):b=e[36];let j;return e[37]!==v||e[38]!==b?(j=s.jsxs(ur,{children:[v,b]}),e[37]=v,e[38]=b,e[39]=j):j=e[39],j}function Bi(t){return!!t.bankSlipUrl}function We(t){const e=Z.c(4),{href:r,label:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(tr,{size:14}),e[0]=a):a=e[0];let l;return e[1]!==r||e[2]!==n?(l=s.jsx(Ze,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",children:[a,n]})}),e[1]=r,e[2]=n,e[3]=l):l=e[3],l}function Ai(t){const e=Z.c(14),{status:r}=t,n=de(),a=r.toLowerCase();if(a==="paid"){let o;e[0]!==n?(o=n("settings.infraBilling.statusPaid"),e[0]=n,e[1]=o):o=e[1];let u;return e[2]!==o?(u=s.jsx(C,{variant:"success",children:o}),e[2]=o,e[3]=u):u=e[3],u}if(a==="overdue"){let o;e[4]!==n?(o=n("settings.infraBilling.statusOverdue"),e[4]=n,e[5]=o):o=e[5];let u;return e[6]!==o?(u=s.jsx(C,{variant:"destructive",children:o}),e[6]=o,e[7]=u):u=e[7],u}if(a==="registered"){let o;e[8]!==n?(o=n("settings.infraBilling.statusPending"),e[8]=n,e[9]=o):o=e[9];let u;return e[10]!==o?(u=s.jsx(C,{variant:"warning",children:o}),e[10]=o,e[11]=u):u=e[11],u}let l;return e[12]!==r?(l=s.jsx(C,{variant:"secondary",children:r}),e[12]=r,e[13]=l):l=e[13],l}function Ti(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jt,{group:"billing",children:s.jsx(bi,{})}),t[0]=e):e=t[0],e}function ea(){const t=Z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Jr,{capability:"members:manage",area:"billing",children:s.jsx(Ti,{})}),t[0]=e):e=t[0],e}export{ea as default};