agent-tower 0.7.2-beta.8 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/utils/database-runtime.test.js +82 -5
  2. package/dist/utils/database-runtime.test.js.map +1 -1
  3. package/dist/utils/index.d.ts.map +1 -1
  4. package/dist/utils/index.js +29 -1
  5. package/dist/utils/index.js.map +1 -1
  6. package/dist/web/assets/{AgentDemoPage-CtCYXopw.js → AgentDemoPage-BfXkNCdN.js} +1 -1
  7. package/dist/web/assets/{AgentEnvironmentSettingsPage-DSWN546Y.js → AgentEnvironmentSettingsPage-GHjKIWpb.js} +1 -1
  8. package/dist/web/assets/AttachmentPreview-CLN1lnLe.js +2 -0
  9. package/dist/web/assets/{BranchSelect-Dxs7HnMM.js → BranchSelect-Cofp8vYf.js} +1 -1
  10. package/dist/web/assets/{BrandLogo-Ilm880Xs.js → BrandLogo-BUimEX-9.js} +1 -1
  11. package/dist/web/assets/{ConversationPage-B55Bj_ft.js → ConversationPage-R7vNaOQv.js} +1 -1
  12. package/dist/web/assets/{CreateTaskInput-CxWPeToI.js → CreateTaskInput-CasITF8y.js} +1 -1
  13. package/dist/web/assets/{DemoPage-Dyn-U9JO.js → DemoPage-DK-ikg1_.js} +1 -1
  14. package/dist/web/assets/{DesignSystemPage-BxypsRUZ.js → DesignSystemPage-BhjNs2vP.js} +1 -1
  15. package/dist/web/assets/EditableTaskTitle-BJ9Rxggf.js +70 -0
  16. package/dist/web/assets/{ExecutionPermissionSelector-CQ_GNxR0.js → ExecutionPermissionSelector-B8befbxJ.js} +1 -1
  17. package/dist/web/assets/{GeneralSettingsPage-CzoejPZP.js → GeneralSettingsPage-RMN2al8I.js} +1 -1
  18. package/dist/web/assets/{LoadingPreviewPage-BlW2PJhI.js → LoadingPreviewPage-BDlf89rJ.js} +1 -1
  19. package/dist/web/assets/{McpSettingsPage-DD7EqD4L.js → McpSettingsPage-CPNxFF67.js} +1 -1
  20. package/dist/web/assets/{MemberAvatar-B2pAdWUi.js → MemberAvatar-YVr_erAr.js} +1 -1
  21. package/dist/web/assets/{MobileTaskDetail-CvmNW0BQ.js → MobileTaskDetail-QNUHMq7u.js} +1 -1
  22. package/dist/web/assets/{NotificationSettingsPage-BIqldIRf.js → NotificationSettingsPage-BEyuyu3Z.js} +1 -1
  23. package/dist/web/assets/{ProfileSettingsPage-DMxpHmF1.js → ProfileSettingsPage-CHe4LlRp.js} +1 -1
  24. package/dist/web/assets/{ProjectKanbanPage-CHW79td4.js → ProjectKanbanPage-Bt_01giW.js} +7 -7
  25. package/dist/web/assets/{ProjectSettingsPage-DKiEUkoa.js → ProjectSettingsPage-cus6Ns97.js} +1 -1
  26. package/dist/web/assets/{ProviderSettingsPage-DZT7wyE2.js → ProviderSettingsPage-DqA_B1Ey.js} +1 -1
  27. package/dist/web/assets/{SettingsMasterDetail-DnF0lsV1.js → SettingsMasterDetail-DjWR9Sqk.js} +1 -1
  28. package/dist/web/assets/{TaskDetail-D_970BDY.js → TaskDetail-rEXNe2h3.js} +1 -1
  29. package/dist/web/assets/{TeamSettingsPage-BJIEZ7xL.js → TeamSettingsPage-DwWROtW6.js} +1 -1
  30. package/dist/web/assets/{TranslationSettingsPage-D3mazqEW.js → TranslationSettingsPage-Cod9c4Ug.js} +1 -1
  31. package/dist/web/assets/{arc-hUh7ykl8.js → arc-DEy33vTc.js} +1 -1
  32. package/dist/web/assets/{architectureDiagram-3BPJPVTR-CcV9CLkm.js → architectureDiagram-3BPJPVTR-Ky1D1LBk.js} +1 -1
  33. package/dist/web/assets/{at-sign-B-nhoGyH.js → at-sign-C48_y345.js} +1 -1
  34. package/dist/web/assets/{blockDiagram-GPEHLZMM-5q3Y9y0e.js → blockDiagram-GPEHLZMM-BNgB7kNT.js} +1 -1
  35. package/dist/web/assets/{c4Diagram-AAUBKEIU-CorBXi06.js → c4Diagram-AAUBKEIU-4GMrPMgQ.js} +1 -1
  36. package/dist/web/assets/channel-DTP-syjA.js +1 -0
  37. package/dist/web/assets/check-BmiJ7qMY.js +1 -0
  38. package/dist/web/assets/{chevron-down-CPnvItQw.js → chevron-down-3y5Aiolp.js} +1 -1
  39. package/dist/web/assets/{chevron-up-B8PE5N0G.js → chevron-up-DqaYcjpq.js} +1 -1
  40. package/dist/web/assets/{chunk-2J33WTMH-BUf5B4z4.js → chunk-2J33WTMH-C439hRe_.js} +1 -1
  41. package/dist/web/assets/{chunk-4BX2VUAB-CdnOHkro.js → chunk-4BX2VUAB-D8GK3M3t.js} +1 -1
  42. package/dist/web/assets/{chunk-55IACEB6-U7edZDpP.js → chunk-55IACEB6-Dl4UhJ8X.js} +1 -1
  43. package/dist/web/assets/{chunk-727SXJPM-B64Tuhla.js → chunk-727SXJPM-BSEeayBq.js} +1 -1
  44. package/dist/web/assets/{chunk-AQP2D5EJ-dXfe56jB.js → chunk-AQP2D5EJ-B6chbZfT.js} +1 -1
  45. package/dist/web/assets/{chunk-FMBD7UC4-DDYbxc1Q.js → chunk-FMBD7UC4-DaLkiLdQ.js} +1 -1
  46. package/dist/web/assets/{chunk-ND2GUHAM-BQDGMv0R.js → chunk-ND2GUHAM-DeQwZAAT.js} +1 -1
  47. package/dist/web/assets/{chunk-QZHKN3VN-DB8q4xAj.js → chunk-QZHKN3VN-CLRr4YRM.js} +1 -1
  48. package/dist/web/assets/classDiagram-4FO5ZUOK-CUKgurLa.js +1 -0
  49. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CUKgurLa.js +1 -0
  50. package/dist/web/assets/{code-block-OCS4YCEC-BSdICyOa.js → code-block-OCS4YCEC-CnoxUpOx.js} +1 -1
  51. package/dist/web/assets/{confirm-dialog-DxEBZEbV.js → confirm-dialog-ltNBFYCs.js} +1 -1
  52. package/dist/web/assets/{content-CMUL3HGx.js → content-DPQMfMae.js} +1 -1
  53. package/dist/web/assets/{copy-DyxlXxiU.js → copy-HRMhTkIG.js} +1 -1
  54. package/dist/web/assets/{cose-bilkent-S5V4N54A-Dx6eMnll.js → cose-bilkent-S5V4N54A-C1UiYzfk.js} +1 -1
  55. package/dist/web/assets/{cssMode-ZnNWfjZ6.js → cssMode-DkuSsGeg.js} +1 -1
  56. package/dist/web/assets/{dagre-BM42HDAG-Cxe8pLgD.js → dagre-BM42HDAG-CTJpBgye.js} +1 -1
  57. package/dist/web/assets/{diagram-2AECGRRQ-RMsswEBe.js → diagram-2AECGRRQ-Dj1_TEYp.js} +1 -1
  58. package/dist/web/assets/{diagram-5GNKFQAL-Bi4E0hzx.js → diagram-5GNKFQAL-V-KUpwqh.js} +1 -1
  59. package/dist/web/assets/{diagram-KO2AKTUF-Mv6CDCyn.js → diagram-KO2AKTUF-CXG1ZIeX.js} +1 -1
  60. package/dist/web/assets/{diagram-LMA3HP47-CJ3qKNzK.js → diagram-LMA3HP47-BZSJUwk9.js} +1 -1
  61. package/dist/web/assets/{diagram-OG6HWLK6-D8SBY4ft.js → diagram-OG6HWLK6-CCr4gq4u.js} +1 -1
  62. package/dist/web/assets/{dialog-BYdeYC2Y.js → dialog-CuFEdqLg.js} +1 -1
  63. package/dist/web/assets/{erDiagram-TEJ5UH35-DwVSCU6X.js → erDiagram-TEJ5UH35-Djtyzh6z.js} +1 -1
  64. package/dist/web/assets/{flowDiagram-I6XJVG4X-CyipYAWd.js → flowDiagram-I6XJVG4X-BmSVSiXJ.js} +1 -1
  65. package/dist/web/assets/{freemarker2-DbH_yMCO.js → freemarker2-DdptX5f1.js} +1 -1
  66. package/dist/web/assets/{ganttDiagram-6RSMTGT7-CsC6Wjt4.js → ganttDiagram-6RSMTGT7-r5vQX-b5.js} +1 -1
  67. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-E5jNbqlq.js → gitGraphDiagram-PVQCEYII-Zj9aloh9.js} +1 -1
  68. package/dist/web/assets/{globe-B2rgTPH3.js → globe-B9I-jHBB.js} +1 -1
  69. package/dist/web/assets/{handlebars-C5VY_S-z.js → handlebars-B34f-LAf.js} +1 -1
  70. package/dist/web/assets/{hooks-Ct0srfV-.js → hooks-BLxb16IA.js} +1 -1
  71. package/dist/web/assets/{html-e5uLnAgN.js → html-CnvOQ63o.js} +1 -1
  72. package/dist/web/assets/{htmlMode-BeNiGozX.js → htmlMode-RdxZ8Svp.js} +1 -1
  73. package/dist/web/assets/{icon-button-BEMJj_6T.js → icon-button-CYiKa-7C.js} +1 -1
  74. package/dist/web/assets/{index-DNdMmXBr.js → index-B1oVmCie.js} +1 -1
  75. package/dist/web/assets/index-BJObbxud.js +122 -0
  76. package/dist/web/assets/{index-CAjqC8pT.js → index-Bhvt-E6d.js} +1 -1
  77. package/dist/web/assets/{index-CPGzLjEC.js → index-BtUQYU5l.js} +1 -1
  78. package/dist/web/assets/{index-IMdA08Ok.js → index-CThFsQNP.js} +1 -1
  79. package/dist/web/assets/{index-BYPOXP6w.js → index-DZLnTISJ.js} +1 -1
  80. package/dist/web/assets/{index-kr6U6_pi.js → index-DcOU2m2F.js} +1 -1
  81. package/dist/web/assets/{index-DppwrK2G.js → index-Dk3bRQAK.js} +1 -1
  82. package/dist/web/assets/{index-C-M0QDqc.js → index-DkRy6eNX.js} +4 -4
  83. package/dist/web/assets/{infoDiagram-5YYISTIA-5_0wrRXl.js → infoDiagram-5YYISTIA-BHtVaxZx.js} +1 -1
  84. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-aQujIFZw.js → ishikawaDiagram-YF4QCWOH-BYmwjkbC.js} +1 -1
  85. package/dist/web/assets/javascript-BhombDEO.js +1 -0
  86. package/dist/web/assets/{journeyDiagram-JHISSGLW-ClMzHdqI.js → journeyDiagram-JHISSGLW-c8BBqqRS.js} +1 -1
  87. package/dist/web/assets/{jsonMode-nHmLVf-n.js → jsonMode-BJGOUeaV.js} +1 -1
  88. package/dist/web/assets/{kanban-definition-UN3LZRKU-BFVlt0tz.js → kanban-definition-UN3LZRKU-D4Vr-oFT.js} +1 -1
  89. package/dist/web/assets/{kbd-Bfq5K6Ux.js → kbd-C88ut3t9.js} +1 -1
  90. package/dist/web/assets/{key-round-BqsaQdce.js → key-round-Cjbj2qNa.js} +1 -1
  91. package/dist/web/assets/{layers-DI4vFJ4F.js → layers-eaHAVcc3.js} +1 -1
  92. package/dist/web/assets/{linear-DZ-6PAPS.js → linear-opi90s0L.js} +1 -1
  93. package/dist/web/assets/{link-BU4PN723.js → link-BSGb85gq.js} +1 -1
  94. package/dist/web/assets/{liquid-BPIyogoj.js → liquid-Czy1WpPz.js} +1 -1
  95. package/dist/web/assets/{lspLanguageFeatures-DH4Z8jiM.js → lspLanguageFeatures-DWu2Ubf0.js} +1 -1
  96. package/dist/web/assets/{mdx-CI8yO2pV.js → mdx-DhXfoSnM.js} +1 -1
  97. package/dist/web/assets/{menu-C3uB3M7p.js → menu--sjyisSg.js} +1 -1
  98. package/dist/web/assets/{mermaid-NOHMQCX5-BqeX1osS.js → mermaid-NOHMQCX5-BSNbBj78.js} +35 -35
  99. package/dist/web/assets/{message-square-E5K8E3A-.js → message-square-BLEJN6p7.js} +1 -1
  100. package/dist/web/assets/{mindmap-definition-RKZ34NQL-C7dea0db.js → mindmap-definition-RKZ34NQL-BN3ZjBh-.js} +1 -1
  101. package/dist/web/assets/{modal-Cz1iIVeD.js → modal-CSGOqphK.js} +1 -1
  102. package/dist/web/assets/{monaco-DM3DuGN5.js → monaco-BkuNyOkP.js} +3 -3
  103. package/dist/web/assets/{paperclip-COXNce_v.js → paperclip-CTNoXpUW.js} +1 -1
  104. package/dist/web/assets/{pencil-BFc4n44f.js → pencil-Cp70ZwtG.js} +1 -1
  105. package/dist/web/assets/{people-BaCetIqh.js → people-DT78SebR.js} +1 -1
  106. package/dist/web/assets/{pieDiagram-4H26LBE5-2q5medug.js → pieDiagram-4H26LBE5-CfmFHpPI.js} +1 -1
  107. package/dist/web/assets/{popover-CJCQLoGu.js → popover-BiVxGGgp.js} +1 -1
  108. package/dist/web/assets/{python-CSxVPG9p.js → python-DIcQDjcf.js} +1 -1
  109. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DHPEM56s.js → quadrantDiagram-W4KKPZXB-CeaumJAa.js} +1 -1
  110. package/dist/web/assets/{razor-CVoIieeS.js → razor-DYK6Rxer.js} +1 -1
  111. package/dist/web/assets/{requirementDiagram-4Y6WPE33-B_KyH7PP.js → requirementDiagram-4Y6WPE33-BWWCDXCE.js} +1 -1
  112. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-CrqkZAYW.js → sankeyDiagram-5OEKKPKP-DAJut743.js} +1 -1
  113. package/dist/web/assets/{search-CkiBPir_.js → search-DniD_AGC.js} +1 -1
  114. package/dist/web/assets/{search-field-CbM2P2KE.js → search-field-CQLDXLeA.js} +1 -1
  115. package/dist/web/assets/{select-DJsEG0jq.js → select-B5RYunTs.js} +1 -1
  116. package/dist/web/assets/{select-Br0TAs7A.js → select-BPdJrr5M.js} +1 -1
  117. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-BRTm1WQA.js → sequenceDiagram-3UESZ5HK-CynjRGW4.js} +1 -1
  118. package/dist/web/assets/{server-DYeSE1wn.js → server-xswxWpKD.js} +1 -1
  119. package/dist/web/assets/{stateDiagram-AJRCARHV-qN49iyR2.js → stateDiagram-AJRCARHV-amAtpx9w.js} +1 -1
  120. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-V-lSceg1.js +1 -0
  121. package/dist/web/assets/{textarea-B7vtoRE3.js → textarea-BVyPl9rM.js} +1 -1
  122. package/dist/web/assets/{timeline-definition-PNZ67QCA-BzarcDi3.js → timeline-definition-PNZ67QCA-DZ9W7WlP.js} +1 -1
  123. package/dist/web/assets/{toggles-jo27o0AH.js → toggles-QcIz43DP.js} +1 -1
  124. package/dist/web/assets/{tooltip-DbVtCXcO.js → tooltip-CPqGK_WZ.js} +1 -1
  125. package/dist/web/assets/{track-C0vxnITw.js → track-Ckye0-tt.js} +1 -1
  126. package/dist/web/assets/{trash-2-CUM-XX8B.js → trash-2-CvUJsbtT.js} +1 -1
  127. package/dist/web/assets/{tsMode-7D3gqep6.js → tsMode-c5x0d47n.js} +1 -1
  128. package/dist/web/assets/{typescript-CbOVEQNg.js → typescript-i7eYblLt.js} +1 -1
  129. package/dist/web/assets/{upload-CJ6jVmte.js → upload-CsXAmAun.js} +1 -1
  130. package/dist/web/assets/{use-profiles-B0xXAf7Z.js → use-profiles-DuXaBRju.js} +1 -1
  131. package/dist/web/assets/{use-projects-BlTwWxkY.js → use-projects-Ddz0knyr.js} +1 -1
  132. package/dist/web/assets/{use-providers-FMSfyTD1.js → use-providers-Td1-gyrN.js} +1 -1
  133. package/dist/web/assets/use-translation-settings-NYM0lmBx.js +1 -0
  134. package/dist/web/assets/{use-workspaces-DYrEp0Lw.js → use-workspaces-CdJZLmGh.js} +1 -1
  135. package/dist/web/assets/{useNormalizedLogs-D0N8MJdH.js → useNormalizedLogs--RbVywYa.js} +1 -1
  136. package/dist/web/assets/{useTokenUsage-WB3ZQ25v.js → useTokenUsage-DDXf7E4p.js} +1 -1
  137. package/dist/web/assets/{vennDiagram-CIIHVFJN-B6oZetvf.js → vennDiagram-CIIHVFJN-CB2Ubvy9.js} +1 -1
  138. package/dist/web/assets/{wardley-L42UT6IY-Bzuhm76f.js → wardley-L42UT6IY-BXOkk77I.js} +1 -1
  139. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-DaC-FUf5.js → wardleyDiagram-YWT4CUSO-VA6ywdQQ.js} +1 -1
  140. package/dist/web/assets/{xml-Cfa9tkdT.js → xml-D2EGActB.js} +1 -1
  141. package/dist/web/assets/{xychartDiagram-2RQKCTM6-CCvRIJRL.js → xychartDiagram-2RQKCTM6-FNcvDj5G.js} +1 -1
  142. package/dist/web/assets/{yaml-C86f7VLL.js → yaml-jeiIZSL4.js} +1 -1
  143. package/dist/web/index.html +1 -1
  144. package/package.json +1 -1
  145. package/dist/web/assets/AttachmentPreview-DRG5_cfN.js +0 -2
  146. package/dist/web/assets/EditableTaskTitle-Dh-SmvFW.js +0 -70
  147. package/dist/web/assets/channel-By24WpLg.js +0 -1
  148. package/dist/web/assets/check-DqPSoX0r.js +0 -1
  149. package/dist/web/assets/classDiagram-4FO5ZUOK-DxHoimtR.js +0 -1
  150. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DxHoimtR.js +0 -1
  151. package/dist/web/assets/index-Cm6snkmR.js +0 -122
  152. package/dist/web/assets/javascript-D7QVj9jR.js +0 -1
  153. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-B1clBPkJ.js +0 -1
  154. package/dist/web/assets/use-translation-settings-BOlszecX.js +0 -1
@@ -1,4 +1,4 @@
1
- import{p as le}from"./chunk-4BX2VUAB-CdnOHkro.js";import{I as he}from"./chunk-QZHKN3VN-DB8q4xAj.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,D as J,l as w,d as me,c as W,u as pe,E as be,z as we,k as B,F as ke,G as ve,H as Ce}from"./index-C-M0QDqc.js";import{p as Ee}from"./wardley-L42UT6IY-Bzuhm76f.js";import"./index-Cm6snkmR.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{p as le}from"./chunk-4BX2VUAB-D8GK3M3t.js";import{I as he}from"./chunk-QZHKN3VN-CLRr4YRM.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,D as J,l as w,d as me,c as W,u as pe,E as be,z as we,k as B,F as ke,G as ve,H as Ce}from"./index-DkRy6eNX.js";import{p as Ee}from"./wardley-L42UT6IY-BXOkk77I.js";import"./index-BJObbxud.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -1 +1 @@
1
- import{c}from"./index-Cm6snkmR.js";const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],a=c("globe",e);export{a as G};
1
+ import{c}from"./index-BJObbxud.js";const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],a=c("globe",e);export{a as G};
@@ -1 +1 @@
1
- import{l as t}from"./monaco-DM3DuGN5.js";import"./EditableTaskTitle-Dh-SmvFW.js";import"./index-Cm6snkmR.js";import"./mermaid-NOHMQCX5-BqeX1osS.js";import"./AttachmentPreview-DRG5_cfN.js";import"./tooltip-DbVtCXcO.js";import"./kbd-Bfq5K6Ux.js";import"./index-CAjqC8pT.js";import"./index-DNdMmXBr.js";import"./index-DppwrK2G.js";import"./use-translation-settings-BOlszecX.js";import"./copy-DyxlXxiU.js";import"./index-kr6U6_pi.js";import"./chevron-down-CPnvItQw.js";import"./use-providers-FMSfyTD1.js";import"./MemberAvatar-B2pAdWUi.js";import"./people-BaCetIqh.js";import"./chevron-up-B8PE5N0G.js";import"./at-sign-B-nhoGyH.js";import"./paperclip-COXNce_v.js";import"./check-DqPSoX0r.js";import"./useTokenUsage-WB3ZQ25v.js";import"./CreateTaskInput-CxWPeToI.js";import"./use-projects-BlTwWxkY.js";import"./BrandLogo-Ilm880Xs.js";import"./hooks-Ct0srfV-.js";import"./index-CPGzLjEC.js";import"./index-BYPOXP6w.js";import"./trash-2-CUM-XX8B.js";import"./ExecutionPermissionSelector-CQ_GNxR0.js";import"./menu-C3uB3M7p.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-DxEBZEbV.js";import"./dialog-BYdeYC2Y.js";import"./modal-Cz1iIVeD.js";import"./select-Br0TAs7A.js";import"./select-DJsEG0jq.js";import"./index-IMdA08Ok.js";import"./layers-DI4vFJ4F.js";import"./message-square-E5K8E3A-.js";import"./textarea-B7vtoRE3.js";import"./content-CMUL3HGx.js";import"./search-field-CbM2P2KE.js";import"./popover-CJCQLoGu.js";import"./search-CkiBPir_.js";import"./server-DYeSE1wn.js";import"./icon-button-BEMJj_6T.js";import"./use-workspaces-DYrEp0Lw.js";import"./upload-CJ6jVmte.js";import"./globe-B2rgTPH3.js";import"./ProjectKanbanPage-CHW79td4.js";import"./BranchSelect-Dxs7HnMM.js";import"./pencil-BFc4n44f.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],et={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},mt={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{et as conf,mt as language};
1
+ import{l as t}from"./monaco-BkuNyOkP.js";import"./EditableTaskTitle-BJ9Rxggf.js";import"./index-BJObbxud.js";import"./mermaid-NOHMQCX5-BSNbBj78.js";import"./AttachmentPreview-CLN1lnLe.js";import"./tooltip-CPqGK_WZ.js";import"./kbd-C88ut3t9.js";import"./index-Bhvt-E6d.js";import"./index-B1oVmCie.js";import"./index-Dk3bRQAK.js";import"./use-translation-settings-NYM0lmBx.js";import"./copy-HRMhTkIG.js";import"./index-DcOU2m2F.js";import"./chevron-down-3y5Aiolp.js";import"./use-providers-Td1-gyrN.js";import"./MemberAvatar-YVr_erAr.js";import"./people-DT78SebR.js";import"./chevron-up-DqaYcjpq.js";import"./at-sign-C48_y345.js";import"./paperclip-CTNoXpUW.js";import"./check-BmiJ7qMY.js";import"./useTokenUsage-DDXf7E4p.js";import"./CreateTaskInput-CasITF8y.js";import"./use-projects-Ddz0knyr.js";import"./BrandLogo-BUimEX-9.js";import"./hooks-BLxb16IA.js";import"./index-BtUQYU5l.js";import"./index-DZLnTISJ.js";import"./trash-2-CvUJsbtT.js";import"./ExecutionPermissionSelector-B8befbxJ.js";import"./menu--sjyisSg.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-ltNBFYCs.js";import"./dialog-CuFEdqLg.js";import"./modal-CSGOqphK.js";import"./select-BPdJrr5M.js";import"./select-B5RYunTs.js";import"./index-CThFsQNP.js";import"./layers-eaHAVcc3.js";import"./message-square-BLEJN6p7.js";import"./textarea-BVyPl9rM.js";import"./content-DPQMfMae.js";import"./search-field-CQLDXLeA.js";import"./popover-BiVxGGgp.js";import"./search-DniD_AGC.js";import"./server-xswxWpKD.js";import"./icon-button-CYiKa-7C.js";import"./use-workspaces-CdJZLmGh.js";import"./upload-CsXAmAun.js";import"./globe-B9I-jHBB.js";import"./ProjectKanbanPage-Bt_01giW.js";import"./BranchSelect-Cofp8vYf.js";import"./pencil-Cp70ZwtG.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],et={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},mt={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{et as conf,mt as language};
@@ -1 +1 @@
1
- import{c as f,r as n}from"./index-Cm6snkmR.js";const l=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],h=f("folder",l);function v(e=480){const[t,o]=n.useState(null),[d,u]=n.useState(0);return n.useEffect(()=>{if(!t||typeof ResizeObserver>"u")return;const c=new ResizeObserver(i=>{const r=Math.floor(i[0]?.contentRect.width??0);u(a=>a===r?a:r)});return c.observe(t),()=>c.disconnect()},[t]),[o,d||(typeof ResizeObserver<"u"?0:e)]}function m({value:e,defaultValue:t,onChange:o}){const[d,u]=n.useState(t),s=e!==void 0,c=s?e:d,i=n.useCallback(r=>{s||u(r),o?.(r)},[s,o]);return[c,i]}function p(e){if(typeof window>"u"||!window.matchMedia)return()=>{};const t=window.matchMedia("(prefers-reduced-motion: reduce)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function w(){return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function M(){return n.useSyncExternalStore(p,w,()=>!1)}function y(e){return`${e}-${n.useId().replace(/[^a-zA-Z0-9_-]/g,"")}`}export{h as F,y as a,v as b,M as c,m as u};
1
+ import{c as f,r as n}from"./index-BJObbxud.js";const l=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],h=f("folder",l);function v(e=480){const[t,o]=n.useState(null),[d,u]=n.useState(0);return n.useEffect(()=>{if(!t||typeof ResizeObserver>"u")return;const c=new ResizeObserver(i=>{const r=Math.floor(i[0]?.contentRect.width??0);u(a=>a===r?a:r)});return c.observe(t),()=>c.disconnect()},[t]),[o,d||(typeof ResizeObserver<"u"?0:e)]}function m({value:e,defaultValue:t,onChange:o}){const[d,u]=n.useState(t),s=e!==void 0,c=s?e:d,i=n.useCallback(r=>{s||u(r),o?.(r)},[s,o]);return[c,i]}function p(e){if(typeof window>"u"||!window.matchMedia)return()=>{};const t=window.matchMedia("(prefers-reduced-motion: reduce)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function w(){return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function M(){return n.useSyncExternalStore(p,w,()=>!1)}function y(e){return`${e}-${n.useId().replace(/[^a-zA-Z0-9_-]/g,"")}`}export{h as F,y as a,v as b,M as c,m as u};
@@ -1 +1 @@
1
- import{l as t}from"./monaco-DM3DuGN5.js";import"./EditableTaskTitle-Dh-SmvFW.js";import"./index-Cm6snkmR.js";import"./mermaid-NOHMQCX5-BqeX1osS.js";import"./AttachmentPreview-DRG5_cfN.js";import"./tooltip-DbVtCXcO.js";import"./kbd-Bfq5K6Ux.js";import"./index-CAjqC8pT.js";import"./index-DNdMmXBr.js";import"./index-DppwrK2G.js";import"./use-translation-settings-BOlszecX.js";import"./copy-DyxlXxiU.js";import"./index-kr6U6_pi.js";import"./chevron-down-CPnvItQw.js";import"./use-providers-FMSfyTD1.js";import"./MemberAvatar-B2pAdWUi.js";import"./people-BaCetIqh.js";import"./chevron-up-B8PE5N0G.js";import"./at-sign-B-nhoGyH.js";import"./paperclip-COXNce_v.js";import"./check-DqPSoX0r.js";import"./useTokenUsage-WB3ZQ25v.js";import"./CreateTaskInput-CxWPeToI.js";import"./use-projects-BlTwWxkY.js";import"./BrandLogo-Ilm880Xs.js";import"./hooks-Ct0srfV-.js";import"./index-CPGzLjEC.js";import"./index-BYPOXP6w.js";import"./trash-2-CUM-XX8B.js";import"./ExecutionPermissionSelector-CQ_GNxR0.js";import"./menu-C3uB3M7p.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-DxEBZEbV.js";import"./dialog-BYdeYC2Y.js";import"./modal-Cz1iIVeD.js";import"./select-Br0TAs7A.js";import"./select-DJsEG0jq.js";import"./index-IMdA08Ok.js";import"./layers-DI4vFJ4F.js";import"./message-square-E5K8E3A-.js";import"./textarea-B7vtoRE3.js";import"./content-CMUL3HGx.js";import"./search-field-CbM2P2KE.js";import"./popover-CJCQLoGu.js";import"./search-CkiBPir_.js";import"./server-DYeSE1wn.js";import"./icon-button-BEMJj_6T.js";import"./use-workspaces-DYrEp0Lw.js";import"./upload-CJ6jVmte.js";import"./globe-B2rgTPH3.js";import"./ProjectKanbanPage-CHW79td4.js";import"./BranchSelect-Dxs7HnMM.js";import"./pencil-BFc4n44f.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],et={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},it={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{et as conf,it as language};
1
+ import{l as t}from"./monaco-BkuNyOkP.js";import"./EditableTaskTitle-BJ9Rxggf.js";import"./index-BJObbxud.js";import"./mermaid-NOHMQCX5-BSNbBj78.js";import"./AttachmentPreview-CLN1lnLe.js";import"./tooltip-CPqGK_WZ.js";import"./kbd-C88ut3t9.js";import"./index-Bhvt-E6d.js";import"./index-B1oVmCie.js";import"./index-Dk3bRQAK.js";import"./use-translation-settings-NYM0lmBx.js";import"./copy-HRMhTkIG.js";import"./index-DcOU2m2F.js";import"./chevron-down-3y5Aiolp.js";import"./use-providers-Td1-gyrN.js";import"./MemberAvatar-YVr_erAr.js";import"./people-DT78SebR.js";import"./chevron-up-DqaYcjpq.js";import"./at-sign-C48_y345.js";import"./paperclip-CTNoXpUW.js";import"./check-BmiJ7qMY.js";import"./useTokenUsage-DDXf7E4p.js";import"./CreateTaskInput-CasITF8y.js";import"./use-projects-Ddz0knyr.js";import"./BrandLogo-BUimEX-9.js";import"./hooks-BLxb16IA.js";import"./index-BtUQYU5l.js";import"./index-DZLnTISJ.js";import"./trash-2-CvUJsbtT.js";import"./ExecutionPermissionSelector-B8befbxJ.js";import"./menu--sjyisSg.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-ltNBFYCs.js";import"./dialog-CuFEdqLg.js";import"./modal-CSGOqphK.js";import"./select-BPdJrr5M.js";import"./select-B5RYunTs.js";import"./index-CThFsQNP.js";import"./layers-eaHAVcc3.js";import"./message-square-BLEJN6p7.js";import"./textarea-BVyPl9rM.js";import"./content-DPQMfMae.js";import"./search-field-CQLDXLeA.js";import"./popover-BiVxGGgp.js";import"./search-DniD_AGC.js";import"./server-xswxWpKD.js";import"./icon-button-CYiKa-7C.js";import"./use-workspaces-CdJZLmGh.js";import"./upload-CsXAmAun.js";import"./globe-B9I-jHBB.js";import"./ProjectKanbanPage-Bt_01giW.js";import"./BranchSelect-Cofp8vYf.js";import"./pencil-Cp70ZwtG.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],et={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},it={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{et as conf,it as language};
@@ -1 +1 @@
1
- import{c as D,l as t}from"./monaco-DM3DuGN5.js";import{H as p,D as g,h as d,F as l,b as c,S as u,c as h,f as w,g as _,C as R}from"./lspLanguageFeatures-DH4Z8jiM.js";import{a as Fe,e as Le,d as Ee,R as He,i as be,j as ye,t as Te,k as Ue}from"./lspLanguageFeatures-DH4Z8jiM.js";import"./EditableTaskTitle-Dh-SmvFW.js";import"./index-Cm6snkmR.js";import"./mermaid-NOHMQCX5-BqeX1osS.js";import"./AttachmentPreview-DRG5_cfN.js";import"./tooltip-DbVtCXcO.js";import"./kbd-Bfq5K6Ux.js";import"./index-CAjqC8pT.js";import"./index-DNdMmXBr.js";import"./index-DppwrK2G.js";import"./use-translation-settings-BOlszecX.js";import"./copy-DyxlXxiU.js";import"./index-kr6U6_pi.js";import"./chevron-down-CPnvItQw.js";import"./use-providers-FMSfyTD1.js";import"./MemberAvatar-B2pAdWUi.js";import"./people-BaCetIqh.js";import"./chevron-up-B8PE5N0G.js";import"./at-sign-B-nhoGyH.js";import"./paperclip-COXNce_v.js";import"./check-DqPSoX0r.js";import"./useTokenUsage-WB3ZQ25v.js";import"./CreateTaskInput-CxWPeToI.js";import"./use-projects-BlTwWxkY.js";import"./BrandLogo-Ilm880Xs.js";import"./hooks-Ct0srfV-.js";import"./index-CPGzLjEC.js";import"./index-BYPOXP6w.js";import"./trash-2-CUM-XX8B.js";import"./ExecutionPermissionSelector-CQ_GNxR0.js";import"./menu-C3uB3M7p.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-DxEBZEbV.js";import"./dialog-BYdeYC2Y.js";import"./modal-Cz1iIVeD.js";import"./select-Br0TAs7A.js";import"./select-DJsEG0jq.js";import"./index-IMdA08Ok.js";import"./layers-DI4vFJ4F.js";import"./message-square-E5K8E3A-.js";import"./textarea-B7vtoRE3.js";import"./content-CMUL3HGx.js";import"./search-field-CbM2P2KE.js";import"./popover-CJCQLoGu.js";import"./search-CkiBPir_.js";import"./server-DYeSE1wn.js";import"./icon-button-BEMJj_6T.js";import"./use-workspaces-DYrEp0Lw.js";import"./upload-CJ6jVmte.js";import"./globe-B2rgTPH3.js";import"./ProjectKanbanPage-CHW79td4.js";import"./BranchSelect-Dxs7HnMM.js";import"./pencil-BFc4n44f.js";const I=120*1e3;class f{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/assets/html.worker-CwpTb9lJ.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(r=>e)}}class v extends R{constructor(o){super(o,[".",":","<",'"',"=","/"])}}function Se(i){const o=new f(i),e=(...n)=>o.getLanguageServiceWorker(...n);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new p(e)),t.registerDocumentHighlightProvider(r,new g(e)),t.registerLinkProvider(r,new d(e)),t.registerFoldingRangeProvider(r,new l(e)),t.registerDocumentSymbolProvider(r,new c(e)),t.registerSelectionRangeProvider(r,new u(e)),t.registerRenameProvider(r,new h(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function Ce(i){const o=[],e=[],r=new f(i);o.push(r);const n=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(n))),a.hovers&&e.push(t.registerHoverProvider(s,new p(n))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new g(n))),a.links&&e.push(t.registerLinkProvider(s,new d(n))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new c(n))),a.rename&&e.push(t.registerRenameProvider(s,new h(n))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new l(n))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new u(n))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(n))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(n)))}return P(),o.push(m(e)),m(o)}function m(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,Fe as DefinitionAdapter,Le as DiagnosticsAdapter,Ee as DocumentColorAdapter,w as DocumentFormattingEditProvider,g as DocumentHighlightAdapter,d as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,c as DocumentSymbolAdapter,l as FoldingRangeAdapter,p as HoverAdapter,He as ReferenceAdapter,h as RenameAdapter,u as SelectionRangeAdapter,f as WorkerManager,be as fromPosition,ye as fromRange,Ce as setupMode,Se as setupMode1,Te as toRange,Ue as toTextEdit};
1
+ import{c as D,l as t}from"./monaco-BkuNyOkP.js";import{H as p,D as g,h as d,F as l,b as c,S as u,c as h,f as w,g as _,C as R}from"./lspLanguageFeatures-DWu2Ubf0.js";import{a as Fe,e as Le,d as Ee,R as He,i as be,j as ye,t as Te,k as Ue}from"./lspLanguageFeatures-DWu2Ubf0.js";import"./EditableTaskTitle-BJ9Rxggf.js";import"./index-BJObbxud.js";import"./mermaid-NOHMQCX5-BSNbBj78.js";import"./AttachmentPreview-CLN1lnLe.js";import"./tooltip-CPqGK_WZ.js";import"./kbd-C88ut3t9.js";import"./index-Bhvt-E6d.js";import"./index-B1oVmCie.js";import"./index-Dk3bRQAK.js";import"./use-translation-settings-NYM0lmBx.js";import"./copy-HRMhTkIG.js";import"./index-DcOU2m2F.js";import"./chevron-down-3y5Aiolp.js";import"./use-providers-Td1-gyrN.js";import"./MemberAvatar-YVr_erAr.js";import"./people-DT78SebR.js";import"./chevron-up-DqaYcjpq.js";import"./at-sign-C48_y345.js";import"./paperclip-CTNoXpUW.js";import"./check-BmiJ7qMY.js";import"./useTokenUsage-DDXf7E4p.js";import"./CreateTaskInput-CasITF8y.js";import"./use-projects-Ddz0knyr.js";import"./BrandLogo-BUimEX-9.js";import"./hooks-BLxb16IA.js";import"./index-BtUQYU5l.js";import"./index-DZLnTISJ.js";import"./trash-2-CvUJsbtT.js";import"./ExecutionPermissionSelector-B8befbxJ.js";import"./menu--sjyisSg.js";import"./menu-styles-DWynpVVz.js";import"./confirm-dialog-ltNBFYCs.js";import"./dialog-CuFEdqLg.js";import"./modal-CSGOqphK.js";import"./select-BPdJrr5M.js";import"./select-B5RYunTs.js";import"./index-CThFsQNP.js";import"./layers-eaHAVcc3.js";import"./message-square-BLEJN6p7.js";import"./textarea-BVyPl9rM.js";import"./content-DPQMfMae.js";import"./search-field-CQLDXLeA.js";import"./popover-BiVxGGgp.js";import"./search-DniD_AGC.js";import"./server-xswxWpKD.js";import"./icon-button-CYiKa-7C.js";import"./use-workspaces-CdJZLmGh.js";import"./upload-CsXAmAun.js";import"./globe-B9I-jHBB.js";import"./ProjectKanbanPage-Bt_01giW.js";import"./BranchSelect-Cofp8vYf.js";import"./pencil-Cp70ZwtG.js";const I=120*1e3;class f{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/assets/html.worker-CwpTb9lJ.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(r=>e)}}class v extends R{constructor(o){super(o,[".",":","<",'"',"=","/"])}}function Se(i){const o=new f(i),e=(...n)=>o.getLanguageServiceWorker(...n);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new p(e)),t.registerDocumentHighlightProvider(r,new g(e)),t.registerLinkProvider(r,new d(e)),t.registerFoldingRangeProvider(r,new l(e)),t.registerDocumentSymbolProvider(r,new c(e)),t.registerSelectionRangeProvider(r,new u(e)),t.registerRenameProvider(r,new h(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function Ce(i){const o=[],e=[],r=new f(i);o.push(r);const n=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(n))),a.hovers&&e.push(t.registerHoverProvider(s,new p(n))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new g(n))),a.links&&e.push(t.registerLinkProvider(s,new d(n))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new c(n))),a.rename&&e.push(t.registerRenameProvider(s,new h(n))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new l(n))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new u(n))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(n))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(n)))}return P(),o.push(m(e)),m(o)}function m(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,Fe as DefinitionAdapter,Le as DiagnosticsAdapter,Ee as DocumentColorAdapter,w as DocumentFormattingEditProvider,g as DocumentHighlightAdapter,d as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,c as DocumentSymbolAdapter,l as FoldingRangeAdapter,p as HoverAdapter,He as ReferenceAdapter,h as RenameAdapter,u as SelectionRangeAdapter,f as WorkerManager,be as fromPosition,ye as fromRange,Ce as setupMode,Se as setupMode1,Te as toRange,Ue as toTextEdit};
@@ -1 +1 @@
1
- import{j as e,S as c,b as l}from"./index-Cm6snkmR.js";function d({label:s,variant:n="ghost",tone:o="neutral",size:a="md",loading:t=!1,showTitle:r=!0,className:u,disabled:i,children:b,type:m,...x}){return e.jsx("button",{type:m??"button","data-slot":"icon-button","aria-label":s,title:r?s:void 0,className:l({variant:n,tone:o,size:a,iconOnly:!0,loading:t,className:u}),disabled:i||t,"aria-busy":t||void 0,...x,children:t?e.jsx(c,{size:a==="xs"?"xs":"sm"}):b})}export{d as I};
1
+ import{j as e,S as c,b as l}from"./index-BJObbxud.js";function d({label:s,variant:n="ghost",tone:o="neutral",size:a="md",loading:t=!1,showTitle:r=!0,className:u,disabled:i,children:b,type:m,...x}){return e.jsx("button",{type:m??"button","data-slot":"icon-button","aria-label":s,title:r?s:void 0,className:l({variant:n,tone:o,size:a,iconOnly:!0,loading:t,className:u}),disabled:i||t,"aria-busy":t||void 0,...x,children:t?e.jsx(c,{size:a==="xs"?"xs":"sm"}):b})}export{d as I};
@@ -1 +1 @@
1
- import{r as O,aB as xt,aC as be,j as Y,P as At,z as It,E as Ae}from"./index-Cm6snkmR.js";import{a as Re}from"./index-CAjqC8pT.js";function Oe(t){const[e,n]=O.useState(void 0);return xt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}const Se=["top","right","bottom","left"],Z=Math.min,W=Math.max,lt=Math.round,st=Math.floor,j=t=>({x:t,y:t}),Ce={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function yt(t,e,n){return W(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Ee=new Set(["top","bottom"]);function V(t){return Ee.has(U(t))?"y":"x"}function St(t){return Rt(V(t))}function Le(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=St(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=at(s)),[s,at(s)]}function De(t){const e=at(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Pe[e])}const $t=["left","right"],kt=["right","left"],Me=["top","bottom"],Te=["bottom","top"];function $e(t,e,n){switch(t){case"top":case"bottom":return n?e?kt:$t:e?$t:kt;case"left":case"right":return e?Me:Te;default:return[]}}function ke(t,e,n,o){const r=tt(t);let i=$e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function at(t){return t.replace(/left|right|bottom|top/g,e=>Ce[e])}function Fe(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xt(t){return typeof t!="number"?Fe(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=St(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}async function Ne(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=q(e,t),p=Xt(d),w=c[h?u==="floating"?"reference":"floating":u],g=ft(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},A=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-A.top+p.top)/x.y,bottom:(A.bottom-g.bottom+p.bottom)/x.y,left:(g.left-A.left+p.left)/x.x,right:(A.right-g.right+p.right)/x.x}}const We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ft(a,o,l),h=o,d={},p=0;for(let w=0;w<c.length;w++){var m;const{name:g,fn:v}=c[w],{x:y,y:x,data:A,reset:R}=await v({x:f,y:u,initialPlacement:o,placement:h,strategy:r,middlewareData:d,rects:a,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Ne},elements:{reference:t,floating:e}});f=y??f,u=x??u,d={...d,[g]:{...d[g],...A}},R&&p<=50&&(p++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(a=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):R.rects),{x:f,y:u}=Ft(a,h,l)),w=-1)}return{x:f,y:u,placement:h,strategy:r,middlewareData:d}},He=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=Xt(f),h={x:n,y:o},d=St(r),p=Ot(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",y=w?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[d]-h[d]-i.floating[p],A=h[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let S=R?R[y]:0;(!S||!await(s.isElement==null?void 0:s.isElement(R)))&&(S=c.floating[y]||i.floating[p]);const M=x/2-A/2,F=S/2-m[p]/2-1,D=Z(u[g],F),$=Z(u[v],F),k=D,P=S-m[p]-$,C=S/2-m[p]/2+M,N=yt(k,C,P),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?D:$)-m[p]/2<0,L=E?C<k?C-k:C-P:0;return{[d]:h[d]+L,data:{[d]:N,centerOffset:C-N-L,...E&&{alignmentOffset:L}},reset:E}}}),ze=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),v=V(c),y=U(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=h||(y||!m?[at(c)]:De(c)),R=p!=="none";!h&&R&&A.push(...ke(c,m,p,x));const S=[c,...A],M=await l.detectOverflow(e,w),F=[];let D=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=Le(r,s,x);F.push(M[C[0]],M[C[1]])}if(D=[...D,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=S[C];if(N&&(!(u==="alignment"?v!==V(N):!1)||D.every(b=>V(b.placement)===v?b.overflows[0]>0:!0)))return{data:{index:C,overflows:D},reset:{placement:N}};let E=(k=D.filter(L=>L.overflows[0]<=0).sort((L,b)=>L.overflows[1]-b.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var P;const L=(P=D.filter(b=>{if(R){const T=V(b.placement);return T===v||T==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(T=>T>0).reduce((T,_)=>T+_,0)]).sort((b,T)=>b[1]-T[1])[0])==null?void 0:P[0];L&&(E=L);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Wt(t){return Se.some(e=>t[e]>=0)}const Be=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=q(t,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=Nt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wt(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=Nt(s,n.floating);return{data:{escapedOffsets:c,escaped:Wt(c)}}}default:return{}}}}},Yt=new Set(["left","top"]);async function _e(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Yt.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const Ve=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await _e(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},je=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:v,y}=g;return{x:v,y}}},...a}=q(t,e),f={x:n,y:o},u=await i.detectOverflow(e,a),h=V(U(r)),d=Rt(h);let p=f[d],m=f[h];if(s){const g=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=p+u[g],x=p-u[v];p=yt(y,p,x)}if(c){const g=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=m+u[g],x=m-u[v];m=yt(y,m,x)}const w=l.fn({...e,[d]:p,[h]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[d]:s,[h]:c}}}}}},Ie=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),h=Rt(u);let d=f[h],p=f[u];const m=q(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=h==="y"?"height":"width",x=i.reference[h]-i.floating[y]+w.mainAxis,A=i.reference[h]+i.reference[y]-w.mainAxis;d<x?d=x:d>A&&(d=A)}if(a){var g,v;const y=h==="y"?"width":"height",x=Yt.has(U(r)),A=i.reference[u]-i.floating[y]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=i.reference[u]+i.reference[y]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<A?p=A:p>R&&(p=R)}return{[h]:d,[u]:p}}}},Xe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await s.detectOverflow(e,a),u=U(r),h=tt(r),d=V(r)==="y",{width:p,height:m}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const v=m-f.top-f.bottom,y=p-f.left-f.right,x=Z(m-f[w],v),A=Z(p-f[g],y),R=!e.middlewareData.shift;let S=x,M=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(S=v),R&&!h){const D=W(f.left,0),$=W(f.right,0),k=W(f.top,0),P=W(f.bottom,0);d?M=p-2*(D!==0||$!==0?D+$:W(f.left,f.right)):S=m-2*(k!==0||P!==0?k+P:W(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:S});const F=await s.getDimensions(c.floating);return p!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function dt(){return typeof window<"u"}function et(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return dt()?t instanceof Node||t instanceof H(t).Node:!1}function z(t){return dt()?t instanceof Element||t instanceof H(t).Element:!1}function I(t){return dt()?t instanceof HTMLElement||t instanceof H(t).HTMLElement:!1}function Ht(t){return!dt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof H(t).ShadowRoot}const Ye=new Set(["inline","contents"]);function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ye.has(r)}const qe=new Set(["table","td","th"]);function Ue(t){return qe.has(et(t))}const Ze=[":popover-open",":modal"];function pt(t){return Ze.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ke=["transform","translate","scale","rotate","perspective"],Ge=["transform","translate","scale","rotate","perspective","filter"],Je=["paint","layout","strict","content"];function Ct(t){const e=Pt(),n=z(t)?B(t):t;return Ke.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Ge.some(o=>(n.willChange||"").includes(o))||Je.some(o=>(n.contain||"").includes(o))}function Qe(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(pt(e))return null;e=K(e)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tn=new Set(["html","body","#document"]);function Q(t){return tn.has(et(t))}function B(t){return H(t).getComputedStyle(t)}function ht(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ht(t)&&t.host||X(t);return Ht(e)?e.host:e}function Ut(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Ut(e)}function ot(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Ut(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=H(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],rt(r)?r:[],c&&n?ot(c):[])}return e.concat(r,ot(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Zt(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=lt(n)!==i||lt(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return z(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Zt(e);let s=(i?lt(n.width):n.width)/o,c=(i?lt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const en=j(0);function Kt(t){const e=H(t);return!Pt()||!e.visualViewport?en:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function nn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==H(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=j(1);e&&(o?z(o)&&(s=J(o)):s=J(t));const c=nn(i,n,o)?Kt(i):j(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const h=H(i),d=o&&z(o)?H(o):o;let p=h,m=bt(p);for(;m&&o&&d!==p;){const w=J(m),g=m.getBoundingClientRect(),v=B(m),y=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=y,a+=x,p=H(m),m=bt(p)}}return ft({width:f,height:u,x:l,y:a})}function mt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function Gt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-mt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function on(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?pt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const f=j(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||rt(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!i?Gt(s,l):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function rn(t){return Array.from(t.getClientRects())}function sn(t){const e=X(t),n=ht(t),o=t.ownerDocument.body,r=W(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=W(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+mt(t);const c=-n.scrollTop;return B(o).direction==="rtl"&&(s+=W(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const zt=25;function cn(t,e){const n=H(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=Pt();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=mt(o);if(a<=0){const f=o.ownerDocument,u=f.body,h=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=zt&&(i-=p)}else a<=zt&&(i+=a);return{width:i,height:s,x:c,y:l}}const ln=new Set(["absolute","fixed"]);function an(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):j(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=cn(t,n);else if(e==="document")o=sn(X(t));else if(z(e))o=an(e,n);else{const r=Kt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ft(o)}function Jt(t,e){const n=K(t);return n===e||!z(n)||Q(n)?!1:B(n).position==="fixed"||Jt(n,e)}function fn(t,e){const n=e.get(t);if(n)return n;let o=ot(t,[],!1).filter(c=>z(c)&&et(c)!=="body"),r=null;const i=B(t).position==="fixed";let s=i?K(t):t;for(;z(s)&&!Q(s);){const c=B(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&ln.has(r.position)||rt(s)&&!l&&Jt(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function un(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?pt(e)?[]:fn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=W(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=W(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dn(t){const{width:e,height:n}=Zt(t);return{width:e,height:n}}function pn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);function a(){l.x=mt(r)}if(o||!o&&!i)if((et(e)!=="body"||rt(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?Gt(r,c):j(0),u=s.left+c.scrollLeft-l.x-f.x,h=s.top+c.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function gt(t){return B(t).position==="static"}function _t(t,e){if(!I(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=H(t);if(pt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(z(r)&&!gt(r))return r;r=K(r)}return n}let o=_t(t,e);for(;o&&Ue(o)&&gt(o);)o=_t(o,e);return o&&Q(o)&&gt(o)&&!Ct(o)?n:o||Qe(t)||n}const hn=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:pn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function mn(t){return B(t).direction==="rtl"}const gn={convertOffsetParentRelativeRectToViewportRelativeRect:on,getDocumentElement:X,getClippingRect:un,getOffsetParent:Qt,getElementRects:hn,getClientRects:rn,getDimensions:dn,getScale:J,isElement:z,isRTL:mn};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wn(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=st(u),m=st(r.clientWidth-(f+h)),w=st(r.clientHeight-(u+d)),g=st(f),y={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:W(0,Z(1,l))||1};let x=!0;function A(R){const S=R[0].intersectionRatio;if(S!==l){if(!x)return s();S?s(!1,S):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!te(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(A,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(t)}return s(!0),i}function xn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?ot(a):[],...ot(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?wn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!te(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const yn=Ve,vn=je,bn=ze,An=Xe,Rn=Be,Vt=He,On=Ie,Sn=(t,e,n)=>{const o=new Map,r={platform:gn,...n},i={...r.platform,_c:o};return We(t,e,{...r,platform:i})};var Cn=typeof document<"u",Pn=function(){},ct=Cn?O.useLayoutEffect:Pn;function ut(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!ut(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!ut(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ee(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jt(t,e){const n=ee(t);return Math.round(e*n)/n}function wt(t){const e=O.useRef(t);return ct(()=>{e.current=t}),e}function En(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=O.useState(o);ut(h,o)||d(o);const[p,m]=O.useState(null),[w,g]=O.useState(null),v=O.useCallback(b=>{b!==R.current&&(R.current=b,m(b))},[]),y=O.useCallback(b=>{b!==S.current&&(S.current=b,g(b))},[]),x=i||p,A=s||w,R=O.useRef(null),S=O.useRef(null),M=O.useRef(f),F=l!=null,D=wt(l),$=wt(r),k=wt(a),P=O.useCallback(()=>{if(!R.current||!S.current)return;const b={placement:e,strategy:n,middleware:h};$.current&&(b.platform=$.current),Sn(R.current,S.current,b).then(T=>{const _={...T,isPositioned:k.current!==!1};C.current&&!ut(M.current,_)&&(M.current=_,be.flushSync(()=>{u(_)}))})},[h,e,n,$,k]);ct(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[a]);const C=O.useRef(!1);ct(()=>(C.current=!0,()=>{C.current=!1}),[]),ct(()=>{if(x&&(R.current=x),A&&(S.current=A),x&&A){if(D.current)return D.current(x,A,P);P()}},[x,A,P,D,F]);const N=O.useMemo(()=>({reference:R,floating:S,setReference:v,setFloating:y}),[v,y]),E=O.useMemo(()=>({reference:x,floating:A}),[x,A]),L=O.useMemo(()=>{const b={position:n,left:0,top:0};if(!E.floating)return b;const T=jt(E.floating,f.x),_=jt(E.floating,f.y);return c?{...b,transform:"translate("+T+"px, "+_+"px)",...ee(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:_}},[n,c,E.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:P,refs:N,elements:E,floatingStyles:L}),[f,P,N,E,L])}const Ln=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Vt({element:o.current,padding:r}).fn(n):{}:o?Vt({element:o,padding:r}).fn(n):{}}}},Dn=(t,e)=>({...yn(t),options:[t,e]}),Mn=(t,e)=>({...vn(t),options:[t,e]}),Tn=(t,e)=>({...On(t),options:[t,e]}),$n=(t,e)=>({...bn(t),options:[t,e]}),kn=(t,e)=>({...An(t),options:[t,e]}),Fn=(t,e)=>({...Rn(t),options:[t,e]}),Nn=(t,e)=>({...Ln(t),options:[t,e]});var Wn="Arrow",ne=O.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsx(At.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});ne.displayName=Wn;var Hn=ne,Lt="Popper",[oe,qn]=Ae(Lt),[zn,re]=oe(Lt),ie=t=>{const{__scopePopper:e,children:n}=t,[o,r]=O.useState(null);return Y.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ie.displayName=Lt;var se="PopperAnchor",ce=O.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=re(se,n),s=O.useRef(null),c=It(e,s),l=O.useRef(null);return O.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsx(At.div,{...r,ref:c})});ce.displayName=se;var Dt="PopperContent",[Bn,_n]=oe(Dt),le=O.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Dt,n),[g,v]=O.useState(null),y=It(e,nt=>v(nt)),[x,A]=O.useState(null),R=Oe(x),S=R?.width??0,M=R?.height??0,F=o+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,P={padding:D,boundary:$.filter(jn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:L,middlewareData:b}=En({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>xn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[Dn({mainAxis:r+M,alignmentAxis:s}),l&&Mn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Tn():void 0,...P}),l&&$n({...P}),kn({...P,apply:({elements:nt,rects:Tt,availableWidth:we,availableHeight:xe})=>{const{width:ye,height:ve}=Tt.reference,it=nt.floating.style;it.setProperty("--radix-popper-available-width",`${we}px`),it.setProperty("--radix-popper-available-height",`${xe}px`),it.setProperty("--radix-popper-anchor-width",`${ye}px`),it.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),x&&Nn({element:x,padding:c}),In({arrowWidth:S,arrowHeight:M}),h&&Fn({strategy:"referenceHidden",...P})]}),[T,_]=ue(E),Mt=Re(p);xt(()=>{L&&Mt?.()},[L,Mt]);const de=b.arrow?.x,pe=b.arrow?.y,he=b.arrow?.centerOffset!==0,[me,ge]=O.useState();return xt(()=>{g&&ge(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:L?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[b.transformOrigin?.x,b.transformOrigin?.y].join(" "),...b.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Bn,{scope:n,placedSide:T,onArrowChange:A,arrowX:de,arrowY:pe,shouldHideArrow:he,children:Y.jsx(At.div,{"data-side":T,"data-align":_,...m,ref:y,style:{...m.style,animation:L?void 0:"none"}})})})});le.displayName=Dt;var ae="PopperArrow",Vn={top:"bottom",right:"left",bottom:"top",left:"right"},fe=O.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=_n(ae,o),s=Vn[i.placedSide];return Y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsx(Hn,{...r,ref:n,style:{...r.style,display:"block"}})})});fe.displayName=ae;function jn(t){return t!==null}var In=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=ue(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function ue(t){const[e,n="center"]=t.split("-");return[e,n]}var Un=ie,Zn=ce,Kn=le,Gn=fe;export{Zn as A,Kn as C,Un as R,Gn as a,qn as c,Oe as u};
1
+ import{r as O,aB as xt,aC as be,j as Y,P as At,z as It,E as Ae}from"./index-BJObbxud.js";import{a as Re}from"./index-Bhvt-E6d.js";function Oe(t){const[e,n]=O.useState(void 0);return xt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}const Se=["top","right","bottom","left"],Z=Math.min,W=Math.max,lt=Math.round,st=Math.floor,j=t=>({x:t,y:t}),Ce={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function yt(t,e,n){return W(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Ee=new Set(["top","bottom"]);function V(t){return Ee.has(U(t))?"y":"x"}function St(t){return Rt(V(t))}function Le(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=St(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=at(s)),[s,at(s)]}function De(t){const e=at(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Pe[e])}const $t=["left","right"],kt=["right","left"],Me=["top","bottom"],Te=["bottom","top"];function $e(t,e,n){switch(t){case"top":case"bottom":return n?e?kt:$t:e?$t:kt;case"left":case"right":return e?Me:Te;default:return[]}}function ke(t,e,n,o){const r=tt(t);let i=$e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function at(t){return t.replace(/left|right|bottom|top/g,e=>Ce[e])}function Fe(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xt(t){return typeof t!="number"?Fe(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=St(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}async function Ne(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=q(e,t),p=Xt(d),w=c[h?u==="floating"?"reference":"floating":u],g=ft(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},A=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-A.top+p.top)/x.y,bottom:(A.bottom-g.bottom+p.bottom)/x.y,left:(g.left-A.left+p.left)/x.x,right:(A.right-g.right+p.right)/x.x}}const We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ft(a,o,l),h=o,d={},p=0;for(let w=0;w<c.length;w++){var m;const{name:g,fn:v}=c[w],{x:y,y:x,data:A,reset:R}=await v({x:f,y:u,initialPlacement:o,placement:h,strategy:r,middlewareData:d,rects:a,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Ne},elements:{reference:t,floating:e}});f=y??f,u=x??u,d={...d,[g]:{...d[g],...A}},R&&p<=50&&(p++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(a=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):R.rects),{x:f,y:u}=Ft(a,h,l)),w=-1)}return{x:f,y:u,placement:h,strategy:r,middlewareData:d}},He=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=Xt(f),h={x:n,y:o},d=St(r),p=Ot(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",y=w?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[d]-h[d]-i.floating[p],A=h[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let S=R?R[y]:0;(!S||!await(s.isElement==null?void 0:s.isElement(R)))&&(S=c.floating[y]||i.floating[p]);const M=x/2-A/2,F=S/2-m[p]/2-1,D=Z(u[g],F),$=Z(u[v],F),k=D,P=S-m[p]-$,C=S/2-m[p]/2+M,N=yt(k,C,P),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?D:$)-m[p]/2<0,L=E?C<k?C-k:C-P:0;return{[d]:h[d]+L,data:{[d]:N,centerOffset:C-N-L,...E&&{alignmentOffset:L}},reset:E}}}),ze=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),v=V(c),y=U(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=h||(y||!m?[at(c)]:De(c)),R=p!=="none";!h&&R&&A.push(...ke(c,m,p,x));const S=[c,...A],M=await l.detectOverflow(e,w),F=[];let D=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=Le(r,s,x);F.push(M[C[0]],M[C[1]])}if(D=[...D,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=S[C];if(N&&(!(u==="alignment"?v!==V(N):!1)||D.every(b=>V(b.placement)===v?b.overflows[0]>0:!0)))return{data:{index:C,overflows:D},reset:{placement:N}};let E=(k=D.filter(L=>L.overflows[0]<=0).sort((L,b)=>L.overflows[1]-b.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var P;const L=(P=D.filter(b=>{if(R){const T=V(b.placement);return T===v||T==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(T=>T>0).reduce((T,_)=>T+_,0)]).sort((b,T)=>b[1]-T[1])[0])==null?void 0:P[0];L&&(E=L);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Wt(t){return Se.some(e=>t[e]>=0)}const Be=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=q(t,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=Nt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wt(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=Nt(s,n.floating);return{data:{escapedOffsets:c,escaped:Wt(c)}}}default:return{}}}}},Yt=new Set(["left","top"]);async function _e(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Yt.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const Ve=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await _e(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},je=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:v,y}=g;return{x:v,y}}},...a}=q(t,e),f={x:n,y:o},u=await i.detectOverflow(e,a),h=V(U(r)),d=Rt(h);let p=f[d],m=f[h];if(s){const g=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=p+u[g],x=p-u[v];p=yt(y,p,x)}if(c){const g=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=m+u[g],x=m-u[v];m=yt(y,m,x)}const w=l.fn({...e,[d]:p,[h]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[d]:s,[h]:c}}}}}},Ie=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),h=Rt(u);let d=f[h],p=f[u];const m=q(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=h==="y"?"height":"width",x=i.reference[h]-i.floating[y]+w.mainAxis,A=i.reference[h]+i.reference[y]-w.mainAxis;d<x?d=x:d>A&&(d=A)}if(a){var g,v;const y=h==="y"?"width":"height",x=Yt.has(U(r)),A=i.reference[u]-i.floating[y]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=i.reference[u]+i.reference[y]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<A?p=A:p>R&&(p=R)}return{[h]:d,[u]:p}}}},Xe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await s.detectOverflow(e,a),u=U(r),h=tt(r),d=V(r)==="y",{width:p,height:m}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const v=m-f.top-f.bottom,y=p-f.left-f.right,x=Z(m-f[w],v),A=Z(p-f[g],y),R=!e.middlewareData.shift;let S=x,M=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(S=v),R&&!h){const D=W(f.left,0),$=W(f.right,0),k=W(f.top,0),P=W(f.bottom,0);d?M=p-2*(D!==0||$!==0?D+$:W(f.left,f.right)):S=m-2*(k!==0||P!==0?k+P:W(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:S});const F=await s.getDimensions(c.floating);return p!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function dt(){return typeof window<"u"}function et(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return dt()?t instanceof Node||t instanceof H(t).Node:!1}function z(t){return dt()?t instanceof Element||t instanceof H(t).Element:!1}function I(t){return dt()?t instanceof HTMLElement||t instanceof H(t).HTMLElement:!1}function Ht(t){return!dt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof H(t).ShadowRoot}const Ye=new Set(["inline","contents"]);function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ye.has(r)}const qe=new Set(["table","td","th"]);function Ue(t){return qe.has(et(t))}const Ze=[":popover-open",":modal"];function pt(t){return Ze.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ke=["transform","translate","scale","rotate","perspective"],Ge=["transform","translate","scale","rotate","perspective","filter"],Je=["paint","layout","strict","content"];function Ct(t){const e=Pt(),n=z(t)?B(t):t;return Ke.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Ge.some(o=>(n.willChange||"").includes(o))||Je.some(o=>(n.contain||"").includes(o))}function Qe(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(pt(e))return null;e=K(e)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tn=new Set(["html","body","#document"]);function Q(t){return tn.has(et(t))}function B(t){return H(t).getComputedStyle(t)}function ht(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ht(t)&&t.host||X(t);return Ht(e)?e.host:e}function Ut(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Ut(e)}function ot(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Ut(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=H(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],rt(r)?r:[],c&&n?ot(c):[])}return e.concat(r,ot(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Zt(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=lt(n)!==i||lt(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return z(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Zt(e);let s=(i?lt(n.width):n.width)/o,c=(i?lt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const en=j(0);function Kt(t){const e=H(t);return!Pt()||!e.visualViewport?en:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function nn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==H(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=j(1);e&&(o?z(o)&&(s=J(o)):s=J(t));const c=nn(i,n,o)?Kt(i):j(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const h=H(i),d=o&&z(o)?H(o):o;let p=h,m=bt(p);for(;m&&o&&d!==p;){const w=J(m),g=m.getBoundingClientRect(),v=B(m),y=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=y,a+=x,p=H(m),m=bt(p)}}return ft({width:f,height:u,x:l,y:a})}function mt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function Gt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-mt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function on(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?pt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const f=j(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||rt(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!i?Gt(s,l):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function rn(t){return Array.from(t.getClientRects())}function sn(t){const e=X(t),n=ht(t),o=t.ownerDocument.body,r=W(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=W(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+mt(t);const c=-n.scrollTop;return B(o).direction==="rtl"&&(s+=W(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const zt=25;function cn(t,e){const n=H(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=Pt();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=mt(o);if(a<=0){const f=o.ownerDocument,u=f.body,h=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=zt&&(i-=p)}else a<=zt&&(i+=a);return{width:i,height:s,x:c,y:l}}const ln=new Set(["absolute","fixed"]);function an(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):j(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=cn(t,n);else if(e==="document")o=sn(X(t));else if(z(e))o=an(e,n);else{const r=Kt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ft(o)}function Jt(t,e){const n=K(t);return n===e||!z(n)||Q(n)?!1:B(n).position==="fixed"||Jt(n,e)}function fn(t,e){const n=e.get(t);if(n)return n;let o=ot(t,[],!1).filter(c=>z(c)&&et(c)!=="body"),r=null;const i=B(t).position==="fixed";let s=i?K(t):t;for(;z(s)&&!Q(s);){const c=B(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&ln.has(r.position)||rt(s)&&!l&&Jt(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function un(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?pt(e)?[]:fn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=W(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=W(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dn(t){const{width:e,height:n}=Zt(t);return{width:e,height:n}}function pn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);function a(){l.x=mt(r)}if(o||!o&&!i)if((et(e)!=="body"||rt(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?Gt(r,c):j(0),u=s.left+c.scrollLeft-l.x-f.x,h=s.top+c.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function gt(t){return B(t).position==="static"}function _t(t,e){if(!I(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=H(t);if(pt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(z(r)&&!gt(r))return r;r=K(r)}return n}let o=_t(t,e);for(;o&&Ue(o)&&gt(o);)o=_t(o,e);return o&&Q(o)&&gt(o)&&!Ct(o)?n:o||Qe(t)||n}const hn=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:pn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function mn(t){return B(t).direction==="rtl"}const gn={convertOffsetParentRelativeRectToViewportRelativeRect:on,getDocumentElement:X,getClippingRect:un,getOffsetParent:Qt,getElementRects:hn,getClientRects:rn,getDimensions:dn,getScale:J,isElement:z,isRTL:mn};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wn(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=st(u),m=st(r.clientWidth-(f+h)),w=st(r.clientHeight-(u+d)),g=st(f),y={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:W(0,Z(1,l))||1};let x=!0;function A(R){const S=R[0].intersectionRatio;if(S!==l){if(!x)return s();S?s(!1,S):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!te(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(A,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(t)}return s(!0),i}function xn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?ot(a):[],...ot(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?wn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!te(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const yn=Ve,vn=je,bn=ze,An=Xe,Rn=Be,Vt=He,On=Ie,Sn=(t,e,n)=>{const o=new Map,r={platform:gn,...n},i={...r.platform,_c:o};return We(t,e,{...r,platform:i})};var Cn=typeof document<"u",Pn=function(){},ct=Cn?O.useLayoutEffect:Pn;function ut(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!ut(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!ut(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ee(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jt(t,e){const n=ee(t);return Math.round(e*n)/n}function wt(t){const e=O.useRef(t);return ct(()=>{e.current=t}),e}function En(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=O.useState(o);ut(h,o)||d(o);const[p,m]=O.useState(null),[w,g]=O.useState(null),v=O.useCallback(b=>{b!==R.current&&(R.current=b,m(b))},[]),y=O.useCallback(b=>{b!==S.current&&(S.current=b,g(b))},[]),x=i||p,A=s||w,R=O.useRef(null),S=O.useRef(null),M=O.useRef(f),F=l!=null,D=wt(l),$=wt(r),k=wt(a),P=O.useCallback(()=>{if(!R.current||!S.current)return;const b={placement:e,strategy:n,middleware:h};$.current&&(b.platform=$.current),Sn(R.current,S.current,b).then(T=>{const _={...T,isPositioned:k.current!==!1};C.current&&!ut(M.current,_)&&(M.current=_,be.flushSync(()=>{u(_)}))})},[h,e,n,$,k]);ct(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[a]);const C=O.useRef(!1);ct(()=>(C.current=!0,()=>{C.current=!1}),[]),ct(()=>{if(x&&(R.current=x),A&&(S.current=A),x&&A){if(D.current)return D.current(x,A,P);P()}},[x,A,P,D,F]);const N=O.useMemo(()=>({reference:R,floating:S,setReference:v,setFloating:y}),[v,y]),E=O.useMemo(()=>({reference:x,floating:A}),[x,A]),L=O.useMemo(()=>{const b={position:n,left:0,top:0};if(!E.floating)return b;const T=jt(E.floating,f.x),_=jt(E.floating,f.y);return c?{...b,transform:"translate("+T+"px, "+_+"px)",...ee(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:_}},[n,c,E.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:P,refs:N,elements:E,floatingStyles:L}),[f,P,N,E,L])}const Ln=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Vt({element:o.current,padding:r}).fn(n):{}:o?Vt({element:o,padding:r}).fn(n):{}}}},Dn=(t,e)=>({...yn(t),options:[t,e]}),Mn=(t,e)=>({...vn(t),options:[t,e]}),Tn=(t,e)=>({...On(t),options:[t,e]}),$n=(t,e)=>({...bn(t),options:[t,e]}),kn=(t,e)=>({...An(t),options:[t,e]}),Fn=(t,e)=>({...Rn(t),options:[t,e]}),Nn=(t,e)=>({...Ln(t),options:[t,e]});var Wn="Arrow",ne=O.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsx(At.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});ne.displayName=Wn;var Hn=ne,Lt="Popper",[oe,qn]=Ae(Lt),[zn,re]=oe(Lt),ie=t=>{const{__scopePopper:e,children:n}=t,[o,r]=O.useState(null);return Y.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ie.displayName=Lt;var se="PopperAnchor",ce=O.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=re(se,n),s=O.useRef(null),c=It(e,s),l=O.useRef(null);return O.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsx(At.div,{...r,ref:c})});ce.displayName=se;var Dt="PopperContent",[Bn,_n]=oe(Dt),le=O.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Dt,n),[g,v]=O.useState(null),y=It(e,nt=>v(nt)),[x,A]=O.useState(null),R=Oe(x),S=R?.width??0,M=R?.height??0,F=o+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,P={padding:D,boundary:$.filter(jn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:L,middlewareData:b}=En({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>xn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[Dn({mainAxis:r+M,alignmentAxis:s}),l&&Mn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Tn():void 0,...P}),l&&$n({...P}),kn({...P,apply:({elements:nt,rects:Tt,availableWidth:we,availableHeight:xe})=>{const{width:ye,height:ve}=Tt.reference,it=nt.floating.style;it.setProperty("--radix-popper-available-width",`${we}px`),it.setProperty("--radix-popper-available-height",`${xe}px`),it.setProperty("--radix-popper-anchor-width",`${ye}px`),it.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),x&&Nn({element:x,padding:c}),In({arrowWidth:S,arrowHeight:M}),h&&Fn({strategy:"referenceHidden",...P})]}),[T,_]=ue(E),Mt=Re(p);xt(()=>{L&&Mt?.()},[L,Mt]);const de=b.arrow?.x,pe=b.arrow?.y,he=b.arrow?.centerOffset!==0,[me,ge]=O.useState();return xt(()=>{g&&ge(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:L?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[b.transformOrigin?.x,b.transformOrigin?.y].join(" "),...b.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Bn,{scope:n,placedSide:T,onArrowChange:A,arrowX:de,arrowY:pe,shouldHideArrow:he,children:Y.jsx(At.div,{"data-side":T,"data-align":_,...m,ref:y,style:{...m.style,animation:L?void 0:"none"}})})})});le.displayName=Dt;var ae="PopperArrow",Vn={top:"bottom",right:"left",bottom:"top",left:"right"},fe=O.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=_n(ae,o),s=Vn[i.placedSide];return Y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsx(Hn,{...r,ref:n,style:{...r.style,display:"block"}})})});fe.displayName=ae;function jn(t){return t!==null}var In=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=ue(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function ue(t){const[e,n="center"]=t.split("-");return[e,n]}var Un=ie,Zn=ce,Kn=le,Gn=fe;export{Zn as A,Kn as C,Un as R,Gn as a,qn as c,Oe as u};