claude-mux 0.30.13 → 0.30.14

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 (361) hide show
  1. package/CLAUDE.md +14 -3
  2. package/dist/fleet-places.d.ts +7 -1
  3. package/dist/fleet-places.d.ts.map +1 -1
  4. package/dist/fleet-places.js +14 -1
  5. package/dist/fleet-places.js.map +1 -1
  6. package/dist/server/dictation-marks.d.ts.map +1 -1
  7. package/dist/server/dictation-marks.js +23 -1
  8. package/dist/server/dictation-marks.js.map +1 -1
  9. package/dist/transcript/parser.d.ts +7 -0
  10. package/dist/transcript/parser.d.ts.map +1 -1
  11. package/dist/transcript/parser.js +19 -3
  12. package/dist/transcript/parser.js.map +1 -1
  13. package/dist/transcript/past-sessions.d.ts.map +1 -1
  14. package/dist/transcript/past-sessions.js +4 -1
  15. package/dist/transcript/past-sessions.js.map +1 -1
  16. package/dist/utils/version.d.ts +1 -1
  17. package/dist/utils/version.js +1 -1
  18. package/dist/web/client/_app/immutable/chunks/{sULMfRFG.js → B4FaHfAQ.js} +2 -2
  19. package/dist/web/client/_app/immutable/chunks/{sULMfRFG.js.map → B4FaHfAQ.js.map} +1 -1
  20. package/dist/web/client/_app/immutable/chunks/{W5_HMZ5E.js → B5Hkb2u5.js} +2 -2
  21. package/dist/web/client/_app/immutable/chunks/{W5_HMZ5E.js.map → B5Hkb2u5.js.map} +1 -1
  22. package/{web/.svelte-kit/output/client/_app/immutable/chunks/BQzv8cqz.js → dist/web/client/_app/immutable/chunks/BOpEbBRb.js} +2 -2
  23. package/{web/.svelte-kit/output/client/_app/immutable/chunks/BQzv8cqz.js.map → dist/web/client/_app/immutable/chunks/BOpEbBRb.js.map} +1 -1
  24. package/dist/web/client/_app/immutable/chunks/{Q5yhzux8.js → BeYjnogg.js} +2 -2
  25. package/{web/.svelte-kit/output/client/_app/immutable/chunks/Q5yhzux8.js.map → dist/web/client/_app/immutable/chunks/BeYjnogg.js.map} +1 -1
  26. package/dist/web/client/_app/immutable/chunks/{VceCNUd7.js → C00rm3mY.js} +2 -2
  27. package/{web/.svelte-kit/output/client/_app/immutable/chunks/VceCNUd7.js.map → dist/web/client/_app/immutable/chunks/C00rm3mY.js.map} +1 -1
  28. package/dist/web/client/_app/immutable/chunks/{CtjkAirr.js → CKg7gbPm.js} +9 -9
  29. package/dist/web/client/_app/immutable/chunks/CKg7gbPm.js.map +1 -0
  30. package/dist/web/client/_app/immutable/chunks/CPEphjdk.js +4 -0
  31. package/dist/web/client/_app/immutable/chunks/CPEphjdk.js.map +1 -0
  32. package/dist/web/client/_app/immutable/chunks/{BQQ3-rqs.js → CPlFo88J.js} +2 -2
  33. package/dist/web/client/_app/immutable/chunks/{BQQ3-rqs.js.map → CPlFo88J.js.map} +1 -1
  34. package/dist/web/client/_app/immutable/chunks/{BvX4FYxp.js → CtnjySwS.js} +2 -2
  35. package/dist/web/client/_app/immutable/chunks/{BvX4FYxp.js.map → CtnjySwS.js.map} +1 -1
  36. package/dist/web/client/_app/immutable/chunks/{XgSsj0QY.js → D3EW0jRH.js} +2 -2
  37. package/{web/.svelte-kit/output/client/_app/immutable/chunks/XgSsj0QY.js.map → dist/web/client/_app/immutable/chunks/D3EW0jRH.js.map} +1 -1
  38. package/dist/web/client/_app/immutable/chunks/{CtlIfY1C.js → D3umr-Qr.js} +2 -2
  39. package/{web/.svelte-kit/output/client/_app/immutable/chunks/CtlIfY1C.js.map → dist/web/client/_app/immutable/chunks/D3umr-Qr.js.map} +1 -1
  40. package/dist/web/client/_app/immutable/chunks/{CM0CI9GL.js → D8-_Y-M6.js} +3 -3
  41. package/dist/web/client/_app/immutable/chunks/{CM0CI9GL.js.map → D8-_Y-M6.js.map} +1 -1
  42. package/dist/web/client/_app/immutable/chunks/{cvsGFvDx.js → DDvK7Qo9.js} +2 -2
  43. package/{web/.svelte-kit/output/client/_app/immutable/chunks/cvsGFvDx.js.map → dist/web/client/_app/immutable/chunks/DDvK7Qo9.js.map} +1 -1
  44. package/dist/web/client/_app/immutable/chunks/{CiU8KBun.js → _VFi-7U7.js} +2 -2
  45. package/dist/web/client/_app/immutable/chunks/{CiU8KBun.js.map → _VFi-7U7.js.map} +1 -1
  46. package/dist/web/client/_app/immutable/chunks/{DlENCZqZ.js → mQ6hkLuy.js} +2 -2
  47. package/dist/web/client/_app/immutable/chunks/{DlENCZqZ.js.map → mQ6hkLuy.js.map} +1 -1
  48. package/dist/web/client/_app/immutable/entry/{app.BwTbN8wB.js → app.CTFza_OS.js} +3 -3
  49. package/{web/.svelte-kit/output/client/_app/immutable/entry/app.BwTbN8wB.js.map → dist/web/client/_app/immutable/entry/app.CTFza_OS.js.map} +1 -1
  50. package/dist/web/client/_app/immutable/entry/start.B-zlkyrt.js +2 -0
  51. package/dist/web/client/_app/immutable/entry/start.B-zlkyrt.js.map +1 -0
  52. package/{web/.svelte-kit/output/client/_app/immutable/nodes/0.BnHV-ElR.js → dist/web/client/_app/immutable/nodes/0.Cztuq8Ih.js} +2 -2
  53. package/dist/web/client/_app/immutable/nodes/{0.BnHV-ElR.js.map → 0.Cztuq8Ih.js.map} +1 -1
  54. package/dist/web/client/_app/immutable/nodes/{1.Dc3ryOCf.js → 1.BOOL0V7K.js} +2 -2
  55. package/dist/web/client/_app/immutable/nodes/{1.Dc3ryOCf.js.map → 1.BOOL0V7K.js.map} +1 -1
  56. package/dist/web/client/_app/immutable/nodes/{2.DUrpAceY.js → 2.CArUpZNe.js} +2 -2
  57. package/dist/web/client/_app/immutable/nodes/{2.DUrpAceY.js.map → 2.CArUpZNe.js.map} +1 -1
  58. package/dist/web/client/_app/immutable/nodes/{3.BaCofjAn.js → 3.DSvIWalA.js} +2 -2
  59. package/dist/web/client/_app/immutable/nodes/{3.BaCofjAn.js.map → 3.DSvIWalA.js.map} +1 -1
  60. package/dist/web/client/_app/immutable/nodes/{4.v1wYkrvS.js → 4.H6RMG_cy.js} +2 -2
  61. package/dist/web/client/_app/immutable/nodes/{4.v1wYkrvS.js.map → 4.H6RMG_cy.js.map} +1 -1
  62. package/dist/web/client/_app/immutable/nodes/{5.Bn4A77jK.js → 5.BHSt0Suo.js} +2 -2
  63. package/dist/web/client/_app/immutable/nodes/{5.Bn4A77jK.js.map → 5.BHSt0Suo.js.map} +1 -1
  64. package/dist/web/client/_app/immutable/nodes/{6.C2hEoITj.js → 6.CzLoA0w7.js} +2 -2
  65. package/dist/web/client/_app/immutable/nodes/{6.C2hEoITj.js.map → 6.CzLoA0w7.js.map} +1 -1
  66. package/dist/web/client/_app/immutable/nodes/{7.BcHOjWdp.js → 7.fqq2vVa9.js} +2 -2
  67. package/dist/web/client/_app/immutable/nodes/{7.BcHOjWdp.js.map → 7.fqq2vVa9.js.map} +1 -1
  68. package/dist/web/client/_app/immutable/nodes/{8.D7NtqIYy.js → 8.DNFFjTla.js} +2 -2
  69. package/dist/web/client/_app/immutable/nodes/{8.D7NtqIYy.js.map → 8.DNFFjTla.js.map} +1 -1
  70. package/dist/web/client/_app/immutable/nodes/{9.D-211z9-.js → 9.0kMPrp2-.js} +2 -2
  71. package/dist/web/client/_app/immutable/nodes/{9.D-211z9-.js.map → 9.0kMPrp2-.js.map} +1 -1
  72. package/dist/web/client/_app/version.json +1 -1
  73. package/dist/web/server/chunks/{0-CvglVGCY.js → 0-B_KxXX-N.js} +14 -14
  74. package/dist/web/server/chunks/{0-CvglVGCY.js.map → 0-B_KxXX-N.js.map} +1 -1
  75. package/dist/web/server/chunks/{1-D-gJDFrG.js → 1-BmEKuUDK.js} +4 -4
  76. package/dist/web/server/chunks/{1-D-gJDFrG.js.map → 1-BmEKuUDK.js.map} +1 -1
  77. package/dist/web/server/chunks/{2-BCmEU5Qq.js → 2-BJ3dzws2.js} +13 -13
  78. package/dist/web/server/chunks/{2-BCmEU5Qq.js.map → 2-BJ3dzws2.js.map} +1 -1
  79. package/dist/web/server/chunks/{3-CHn5Kw-T.js → 3-CLYKGzT3.js} +10 -10
  80. package/dist/web/server/chunks/{3-CHn5Kw-T.js.map → 3-CLYKGzT3.js.map} +1 -1
  81. package/dist/web/server/chunks/{4-Cxg7VcZ7.js → 4-CsoWHVgX.js} +12 -12
  82. package/dist/web/server/chunks/{4-Cxg7VcZ7.js.map → 4-CsoWHVgX.js.map} +1 -1
  83. package/dist/web/server/chunks/{5-DSgvnHF_.js → 5-oPM6ncgT.js} +9 -9
  84. package/dist/web/server/chunks/{5-DSgvnHF_.js.map → 5-oPM6ncgT.js.map} +1 -1
  85. package/dist/web/server/chunks/{6-B0rymWRR.js → 6-gvgju2ZN.js} +5 -5
  86. package/dist/web/server/chunks/{6-B0rymWRR.js.map → 6-gvgju2ZN.js.map} +1 -1
  87. package/dist/web/server/chunks/{7-CNomBJux.js → 7-D8hylKrz.js} +10 -10
  88. package/dist/web/server/chunks/{7-CNomBJux.js.map → 7-D8hylKrz.js.map} +1 -1
  89. package/dist/web/server/chunks/{8-TYbX-1bO.js → 8-Br4hTtby.js} +12 -12
  90. package/dist/web/server/chunks/{8-TYbX-1bO.js.map → 8-Br4hTtby.js.map} +1 -1
  91. package/dist/web/server/chunks/{9-XGQQvTLc.js → 9-9uvmfsEs.js} +9 -9
  92. package/dist/web/server/chunks/{9-XGQQvTLc.js.map → 9-9uvmfsEs.js.map} +1 -1
  93. package/dist/web/server/chunks/{_layout.svelte-yrPX5VFm.js → _layout.svelte-DamAAFpK.js} +58 -37
  94. package/dist/web/server/chunks/_layout.svelte-DamAAFpK.js.map +1 -0
  95. package/dist/web/server/chunks/{_page.svelte-C_kFA0Lq.js → _page.svelte-DFE4jmT9.js} +4 -4
  96. package/dist/web/server/chunks/{_page.svelte-C_kFA0Lq.js.map → _page.svelte-DFE4jmT9.js.map} +1 -1
  97. package/dist/web/server/chunks/{_page.svelte-DvxpwsgS.js → _page.svelte-DHPGbCS1.js} +6 -6
  98. package/dist/web/server/chunks/{_page.svelte-DvxpwsgS.js.map → _page.svelte-DHPGbCS1.js.map} +1 -1
  99. package/dist/web/server/chunks/{_server.ts-Dz01Gvhk.js → _server.ts-0RT4n9LX.js} +2 -2
  100. package/dist/web/server/chunks/{_server.ts-Dz01Gvhk.js.map → _server.ts-0RT4n9LX.js.map} +1 -1
  101. package/dist/web/server/chunks/{_server.ts-D2Tvcncu.js → _server.ts-3kbpguQ1.js} +3 -3
  102. package/dist/web/server/chunks/{_server.ts-D2Tvcncu.js.map → _server.ts-3kbpguQ1.js.map} +1 -1
  103. package/dist/web/server/chunks/{_server.ts-TN_Ka6cR.js → _server.ts-4m17ESHV.js} +2 -2
  104. package/dist/web/server/chunks/{_server.ts-TN_Ka6cR.js.map → _server.ts-4m17ESHV.js.map} +1 -1
  105. package/dist/web/server/chunks/{_server.ts-Bj1Eewby.js → _server.ts-8Bs2jUgD.js} +2 -2
  106. package/dist/web/server/chunks/{_server.ts-Bj1Eewby.js.map → _server.ts-8Bs2jUgD.js.map} +1 -1
  107. package/dist/web/server/chunks/{_server.ts-BWVtnpJh.js → _server.ts-95cbXKdT.js} +3 -3
  108. package/dist/web/server/chunks/{_server.ts-BWVtnpJh.js.map → _server.ts-95cbXKdT.js.map} +1 -1
  109. package/dist/web/server/chunks/{_server.ts-CyOA1rOq.js → _server.ts-B56-XF-Z.js} +3 -3
  110. package/dist/web/server/chunks/{_server.ts-CyOA1rOq.js.map → _server.ts-B56-XF-Z.js.map} +1 -1
  111. package/dist/web/server/chunks/{_server.ts-1ZhqL5o8.js → _server.ts-BAC_No-1.js} +2 -2
  112. package/dist/web/server/chunks/{_server.ts-1ZhqL5o8.js.map → _server.ts-BAC_No-1.js.map} +1 -1
  113. package/dist/web/server/chunks/{_server.ts-ji7L8HUR.js → _server.ts-BCpfYsYw.js} +3 -3
  114. package/dist/web/server/chunks/{_server.ts-ji7L8HUR.js.map → _server.ts-BCpfYsYw.js.map} +1 -1
  115. package/dist/web/server/chunks/{_server.ts-9iRpDv9e.js → _server.ts-BGToJuLp.js} +2 -2
  116. package/dist/web/server/chunks/{_server.ts-9iRpDv9e.js.map → _server.ts-BGToJuLp.js.map} +1 -1
  117. package/dist/web/server/chunks/{_server.ts-DQJ-tygD.js → _server.ts-BW87LYkE.js} +2 -2
  118. package/dist/web/server/chunks/{_server.ts-DQJ-tygD.js.map → _server.ts-BW87LYkE.js.map} +1 -1
  119. package/dist/web/server/chunks/{_server.ts-VgbTPrqV.js → _server.ts-BXjUy61V.js} +2 -2
  120. package/dist/web/server/chunks/{_server.ts-VgbTPrqV.js.map → _server.ts-BXjUy61V.js.map} +1 -1
  121. package/dist/web/server/chunks/{_server.ts-FoPsfjo3.js → _server.ts-BYyaN7ik.js} +2 -2
  122. package/dist/web/server/chunks/{_server.ts-FoPsfjo3.js.map → _server.ts-BYyaN7ik.js.map} +1 -1
  123. package/dist/web/server/chunks/{_server.ts-CNBy2p2U.js → _server.ts-Bjzi1JAu.js} +2 -2
  124. package/dist/web/server/chunks/{_server.ts-CNBy2p2U.js.map → _server.ts-Bjzi1JAu.js.map} +1 -1
  125. package/dist/web/server/chunks/{_server.ts-CSK1ReRS.js → _server.ts-CBU5vhD8.js} +2 -2
  126. package/dist/web/server/chunks/{_server.ts-CSK1ReRS.js.map → _server.ts-CBU5vhD8.js.map} +1 -1
  127. package/dist/web/server/chunks/{_server.ts-Cv8SUkC5.js → _server.ts-CG-7TORV.js} +3 -3
  128. package/dist/web/server/chunks/{_server.ts-Cv8SUkC5.js.map → _server.ts-CG-7TORV.js.map} +1 -1
  129. package/dist/web/server/chunks/{_server.ts-DPctaiWC.js → _server.ts-COCrEIiW.js} +2 -2
  130. package/dist/web/server/chunks/{_server.ts-DPctaiWC.js.map → _server.ts-COCrEIiW.js.map} +1 -1
  131. package/dist/web/server/chunks/{_server.ts-C7uhdF7Y.js → _server.ts-CPCsEz_B.js} +4 -4
  132. package/dist/web/server/chunks/{_server.ts-C7uhdF7Y.js.map → _server.ts-CPCsEz_B.js.map} +1 -1
  133. package/dist/web/server/chunks/{_server.ts-DsyqZudf.js → _server.ts-CPGa_LDW.js} +2 -2
  134. package/dist/web/server/chunks/{_server.ts-DsyqZudf.js.map → _server.ts-CPGa_LDW.js.map} +1 -1
  135. package/dist/web/server/chunks/{_server.ts-B9RfKfyc.js → _server.ts-CT1m86tm.js} +2 -2
  136. package/dist/web/server/chunks/{_server.ts-B9RfKfyc.js.map → _server.ts-CT1m86tm.js.map} +1 -1
  137. package/dist/web/server/chunks/{_server.ts-CwFbAWCg.js → _server.ts-CXzAFIps.js} +2 -2
  138. package/dist/web/server/chunks/{_server.ts-CwFbAWCg.js.map → _server.ts-CXzAFIps.js.map} +1 -1
  139. package/dist/web/server/chunks/{_server.ts-DHuyjZQx.js → _server.ts-C_H2gKKu.js} +2 -2
  140. package/dist/web/server/chunks/{_server.ts-DHuyjZQx.js.map → _server.ts-C_H2gKKu.js.map} +1 -1
  141. package/dist/web/server/chunks/{_server.ts-DVgdt6Zu.js → _server.ts-CjH9MxGk.js} +3 -3
  142. package/dist/web/server/chunks/{_server.ts-DVgdt6Zu.js.map → _server.ts-CjH9MxGk.js.map} +1 -1
  143. package/dist/web/server/chunks/{_server.ts-DrFiP32b.js → _server.ts-CrQk3PtI.js} +3 -3
  144. package/dist/web/server/chunks/{_server.ts-DrFiP32b.js.map → _server.ts-CrQk3PtI.js.map} +1 -1
  145. package/dist/web/server/chunks/{_server.ts-CA8nszPb.js → _server.ts-Cy5Matw4.js} +3 -3
  146. package/dist/web/server/chunks/{_server.ts-CA8nszPb.js.map → _server.ts-Cy5Matw4.js.map} +1 -1
  147. package/dist/web/server/chunks/{_server.ts-CovkmnvY.js → _server.ts-D9PPu5p4.js} +3 -3
  148. package/dist/web/server/chunks/{_server.ts-CovkmnvY.js.map → _server.ts-D9PPu5p4.js.map} +1 -1
  149. package/dist/web/server/chunks/{_server.ts-vhti5VvF.js → _server.ts-DGvNQ4Mq.js} +3 -3
  150. package/dist/web/server/chunks/{_server.ts-vhti5VvF.js.map → _server.ts-DGvNQ4Mq.js.map} +1 -1
  151. package/dist/web/server/chunks/{_server.ts-iK8ih9Bi.js → _server.ts-DJOSnwXV.js} +2 -2
  152. package/dist/web/server/chunks/{_server.ts-iK8ih9Bi.js.map → _server.ts-DJOSnwXV.js.map} +1 -1
  153. package/dist/web/server/chunks/{_server.ts-DK-6ddNq.js → _server.ts-DPoluZc6.js} +3 -3
  154. package/dist/web/server/chunks/{_server.ts-DK-6ddNq.js.map → _server.ts-DPoluZc6.js.map} +1 -1
  155. package/dist/web/server/chunks/{_server.ts-BozsVs8t.js → _server.ts-DS6kibxL.js} +2 -2
  156. package/dist/web/server/chunks/{_server.ts-BozsVs8t.js.map → _server.ts-DS6kibxL.js.map} +1 -1
  157. package/dist/web/server/chunks/{_server.ts-DozhhYwq.js → _server.ts-DUl0ucUP.js} +3 -3
  158. package/dist/web/server/chunks/{_server.ts-DozhhYwq.js.map → _server.ts-DUl0ucUP.js.map} +1 -1
  159. package/dist/web/server/chunks/{_server.ts-78nODRDJ.js → _server.ts-DWj22oj9.js} +2 -2
  160. package/dist/web/server/chunks/{_server.ts-78nODRDJ.js.map → _server.ts-DWj22oj9.js.map} +1 -1
  161. package/dist/web/server/chunks/{_server.ts-CA1j9wWk.js → _server.ts-DZrVaelC.js} +2 -2
  162. package/dist/web/server/chunks/{_server.ts-CA1j9wWk.js.map → _server.ts-DZrVaelC.js.map} +1 -1
  163. package/dist/web/server/chunks/{_server.ts-CzcknkWq.js → _server.ts-DrG3j6Ao.js} +2 -2
  164. package/dist/web/server/chunks/{_server.ts-CzcknkWq.js.map → _server.ts-DrG3j6Ao.js.map} +1 -1
  165. package/dist/web/server/chunks/{_server.ts-AAllMdwT.js → _server.ts-Dwy38J9J.js} +2 -2
  166. package/dist/web/server/chunks/{_server.ts-AAllMdwT.js.map → _server.ts-Dwy38J9J.js.map} +1 -1
  167. package/dist/web/server/chunks/{_server.ts-CgChlIKq.js → _server.ts-DxGjRezI.js} +2 -2
  168. package/dist/web/server/chunks/{_server.ts-CgChlIKq.js.map → _server.ts-DxGjRezI.js.map} +1 -1
  169. package/dist/web/server/chunks/{_server.ts-KbQyErIR.js → _server.ts-XMUjHO61.js} +2 -2
  170. package/dist/web/server/chunks/{_server.ts-KbQyErIR.js.map → _server.ts-XMUjHO61.js.map} +1 -1
  171. package/dist/web/server/chunks/{_server.ts-DGTSZoLn.js → _server.ts-dvT2bXEB.js} +2 -2
  172. package/dist/web/server/chunks/{_server.ts-DGTSZoLn.js.map → _server.ts-dvT2bXEB.js.map} +1 -1
  173. package/dist/web/server/chunks/{_server.ts-BxscGs8D.js → _server.ts-m835uDm6.js} +2 -2
  174. package/dist/web/server/chunks/{_server.ts-BxscGs8D.js.map → _server.ts-m835uDm6.js.map} +1 -1
  175. package/dist/web/server/chunks/{checkbox-DiJTAtHi.js → checkbox-BYzlWW56.js} +2 -2
  176. package/dist/web/server/chunks/{checkbox-DiJTAtHi.js.map → checkbox-BYzlWW56.js.map} +1 -1
  177. package/dist/web/server/chunks/{create-id-DpoSQWrl.js → create-id-s6T_m-1j.js} +3 -3
  178. package/dist/web/server/chunks/{create-id-DpoSQWrl.js.map → create-id-s6T_m-1j.js.map} +1 -1
  179. package/dist/web/server/chunks/{discover-DjR28OqK.js → discover-DykzHz0t.js} +2 -2
  180. package/dist/web/server/chunks/{discover-DjR28OqK.js.map → discover-DykzHz0t.js.map} +1 -1
  181. package/dist/web/server/chunks/{drafts.svelte-DsFAtH-s.js → drafts.svelte-c94J-DBB.js} +3 -3
  182. package/dist/web/server/chunks/{drafts.svelte-DsFAtH-s.js.map → drafts.svelte-c94J-DBB.js.map} +1 -1
  183. package/dist/web/server/chunks/{end-session-BbBa9yD0.js → end-session-Czy_WW42.js} +2 -2
  184. package/dist/web/server/chunks/{end-session-BbBa9yD0.js.map → end-session-Czy_WW42.js.map} +1 -1
  185. package/dist/web/server/chunks/{files-4i3igWea.js → files-DNH191y7.js} +2 -2
  186. package/dist/web/server/chunks/{files-4i3igWea.js.map → files-DNH191y7.js.map} +1 -1
  187. package/dist/web/server/chunks/{fleet-DZJSFWuH.js → fleet-CWHlZjSd.js} +4 -4
  188. package/dist/web/server/chunks/{fleet-DZJSFWuH.js.map → fleet-CWHlZjSd.js.map} +1 -1
  189. package/dist/web/server/chunks/{git-D9dLEKUF.js → git-CHO9UIOQ.js} +13 -5
  190. package/dist/web/server/chunks/git-CHO9UIOQ.js.map +1 -0
  191. package/dist/web/server/chunks/{git-history-De9t0yF-.js → git-history-CxyH4jQb.js} +2 -2
  192. package/dist/web/server/chunks/{git-history-De9t0yF-.js.map → git-history-CxyH4jQb.js.map} +1 -1
  193. package/dist/web/server/chunks/{hooks.server-C3Uglne7.js → hooks.server-DgHxEf6H.js} +6 -6
  194. package/dist/web/server/chunks/{hooks.server-C3Uglne7.js.map → hooks.server-DgHxEf6H.js.map} +1 -1
  195. package/dist/web/server/chunks/{message-queue-sFcJCRjz.js → message-queue-DhLshpoF.js} +13 -2
  196. package/dist/web/server/chunks/message-queue-DhLshpoF.js.map +1 -0
  197. package/dist/web/server/chunks/{project-CbPa8Mu7.js → project-CBPdIh2n.js} +2 -2
  198. package/dist/web/server/chunks/{project-CbPa8Mu7.js.map → project-CBPdIh2n.js.map} +1 -1
  199. package/dist/web/server/chunks/{project-icons-CSb1bfT9.js → project-icons-bWhaFSVy.js} +4 -4
  200. package/dist/web/server/chunks/{project-icons-CSb1bfT9.js.map → project-icons-bWhaFSVy.js.map} +1 -1
  201. package/dist/web/server/chunks/{push-BJ7P9DGd.js → push-LMlCp4Lc.js} +5 -5
  202. package/dist/web/server/chunks/{push-BJ7P9DGd.js.map → push-LMlCp4Lc.js.map} +1 -1
  203. package/dist/web/server/chunks/{remote-control-C1d9R3w4.js → remote-control-BvYkVDhx.js} +2 -2
  204. package/dist/web/server/chunks/{remote-control-C1d9R3w4.js.map → remote-control-BvYkVDhx.js.map} +1 -1
  205. package/dist/web/server/chunks/{start-session-CKbupnLS.js → start-session-HljgutDe.js} +3 -3
  206. package/dist/web/server/chunks/{start-session-CKbupnLS.js.map → start-session-HljgutDe.js.map} +1 -1
  207. package/dist/web/server/chunks/{version-BqEJmw2g.js → version-ox9yLZ0P.js} +2 -2
  208. package/dist/web/server/chunks/version-ox9yLZ0P.js.map +1 -0
  209. package/dist/web/server/chunks/{web-preview-Bi5fjydK.js → web-preview-H5eiWlBD.js} +2 -2
  210. package/dist/web/server/chunks/{web-preview-Bi5fjydK.js.map → web-preview-H5eiWlBD.js.map} +1 -1
  211. package/dist/web/server/chunks/{ws-handlers-zemeJ8Si.js → ws-handlers-k_sOue-0.js} +6 -5
  212. package/dist/web/server/chunks/ws-handlers-k_sOue-0.js.map +1 -0
  213. package/dist/web/server/chunks/{ws-managers-C5VXKb_r.js → ws-managers-D2qC6Gla.js} +2 -2
  214. package/dist/web/server/chunks/{ws-managers-C5VXKb_r.js.map → ws-managers-D2qC6Gla.js.map} +1 -1
  215. package/dist/web/server/chunks/{ws-messages-jOSwT1Yq.js → ws-messages-B81v2RXg.js} +7 -2
  216. package/dist/web/server/chunks/ws-messages-B81v2RXg.js.map +1 -0
  217. package/dist/web/server/index.js +2 -2
  218. package/dist/web/server/index.js.map +1 -1
  219. package/dist/web/server/manifest.js +53 -53
  220. package/dist/web/server/manifest.js.map +1 -1
  221. package/package.json +1 -1
  222. package/src/fleet-places.ts +17 -1
  223. package/src/server/dictation-marks.ts +24 -1
  224. package/src/transcript/parser.ts +20 -3
  225. package/src/transcript/past-sessions.ts +3 -1
  226. package/src/utils/version.ts +1 -1
  227. package/tests/fleet-places.test.ts +20 -0
  228. package/tests/server/dictation-marks.test.ts +16 -0
  229. package/tests/transcript/parser.test.ts +34 -0
  230. package/tests/transcript/past-sessions.test.ts +5 -0
  231. package/web/.svelte-kit/adapter-bun/chunks/git.js +13 -4
  232. package/web/.svelte-kit/adapter-bun/chunks/git.js.map +1 -1
  233. package/web/.svelte-kit/adapter-bun/chunks/internal2.js +1 -1
  234. package/web/.svelte-kit/adapter-bun/chunks/internal2.js.map +1 -1
  235. package/web/.svelte-kit/adapter-bun/chunks/message-queue.js +14 -1
  236. package/web/.svelte-kit/adapter-bun/chunks/message-queue.js.map +1 -1
  237. package/web/.svelte-kit/adapter-bun/chunks/version.js +1 -1
  238. package/web/.svelte-kit/adapter-bun/chunks/version.js.map +1 -1
  239. package/web/.svelte-kit/adapter-bun/chunks/ws-handlers.js +2 -1
  240. package/web/.svelte-kit/adapter-bun/chunks/ws-handlers.js.map +1 -1
  241. package/web/.svelte-kit/adapter-bun/chunks/ws-messages.js +6 -1
  242. package/web/.svelte-kit/adapter-bun/chunks/ws-messages.js.map +1 -1
  243. package/web/.svelte-kit/adapter-bun/entries/pages/_layout.svelte.js +72 -45
  244. package/web/.svelte-kit/adapter-bun/entries/pages/_layout.svelte.js.map +1 -1
  245. package/web/.svelte-kit/adapter-bun/manifest-full.js +1 -1
  246. package/web/.svelte-kit/adapter-bun/manifest.js +1 -1
  247. package/web/.svelte-kit/adapter-bun/nodes/0.js +1 -1
  248. package/web/.svelte-kit/adapter-bun/nodes/1.js +1 -1
  249. package/web/.svelte-kit/adapter-bun/nodes/2.js +1 -1
  250. package/web/.svelte-kit/adapter-bun/nodes/3.js +1 -1
  251. package/web/.svelte-kit/adapter-bun/nodes/4.js +1 -1
  252. package/web/.svelte-kit/adapter-bun/nodes/5.js +1 -1
  253. package/web/.svelte-kit/adapter-bun/nodes/6.js +1 -1
  254. package/web/.svelte-kit/adapter-bun/nodes/7.js +1 -1
  255. package/web/.svelte-kit/adapter-bun/nodes/8.js +1 -1
  256. package/web/.svelte-kit/adapter-bun/nodes/9.js +1 -1
  257. package/web/.svelte-kit/generated/server/internal.js +1 -1
  258. package/web/.svelte-kit/output/client/.vite/manifest.json +237 -237
  259. package/web/.svelte-kit/output/client/_app/immutable/chunks/{sULMfRFG.js → B4FaHfAQ.js} +2 -2
  260. package/web/.svelte-kit/output/client/_app/immutable/chunks/{sULMfRFG.js.map → B4FaHfAQ.js.map} +1 -1
  261. package/web/.svelte-kit/output/client/_app/immutable/chunks/{W5_HMZ5E.js → B5Hkb2u5.js} +2 -2
  262. package/web/.svelte-kit/output/client/_app/immutable/chunks/{W5_HMZ5E.js.map → B5Hkb2u5.js.map} +1 -1
  263. package/{dist/web/client/_app/immutable/chunks/BQzv8cqz.js → web/.svelte-kit/output/client/_app/immutable/chunks/BOpEbBRb.js} +2 -2
  264. package/{dist/web/client/_app/immutable/chunks/BQzv8cqz.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/BOpEbBRb.js.map} +1 -1
  265. package/web/.svelte-kit/output/client/_app/immutable/chunks/{Q5yhzux8.js → BeYjnogg.js} +2 -2
  266. package/{dist/web/client/_app/immutable/chunks/Q5yhzux8.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/BeYjnogg.js.map} +1 -1
  267. package/web/.svelte-kit/output/client/_app/immutable/chunks/{VceCNUd7.js → C00rm3mY.js} +2 -2
  268. package/{dist/web/client/_app/immutable/chunks/VceCNUd7.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/C00rm3mY.js.map} +1 -1
  269. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CtjkAirr.js → CKg7gbPm.js} +9 -9
  270. package/web/.svelte-kit/output/client/_app/immutable/chunks/CKg7gbPm.js.map +1 -0
  271. package/web/.svelte-kit/output/client/_app/immutable/chunks/CPEphjdk.js +4 -0
  272. package/web/.svelte-kit/output/client/_app/immutable/chunks/CPEphjdk.js.map +1 -0
  273. package/web/.svelte-kit/output/client/_app/immutable/chunks/{BQQ3-rqs.js → CPlFo88J.js} +2 -2
  274. package/web/.svelte-kit/output/client/_app/immutable/chunks/{BQQ3-rqs.js.map → CPlFo88J.js.map} +1 -1
  275. package/web/.svelte-kit/output/client/_app/immutable/chunks/{BvX4FYxp.js → CtnjySwS.js} +2 -2
  276. package/web/.svelte-kit/output/client/_app/immutable/chunks/{BvX4FYxp.js.map → CtnjySwS.js.map} +1 -1
  277. package/web/.svelte-kit/output/client/_app/immutable/chunks/{XgSsj0QY.js → D3EW0jRH.js} +2 -2
  278. package/{dist/web/client/_app/immutable/chunks/XgSsj0QY.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/D3EW0jRH.js.map} +1 -1
  279. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CtlIfY1C.js → D3umr-Qr.js} +2 -2
  280. package/{dist/web/client/_app/immutable/chunks/CtlIfY1C.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/D3umr-Qr.js.map} +1 -1
  281. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CM0CI9GL.js → D8-_Y-M6.js} +3 -3
  282. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CM0CI9GL.js.map → D8-_Y-M6.js.map} +1 -1
  283. package/web/.svelte-kit/output/client/_app/immutable/chunks/{cvsGFvDx.js → DDvK7Qo9.js} +2 -2
  284. package/{dist/web/client/_app/immutable/chunks/cvsGFvDx.js.map → web/.svelte-kit/output/client/_app/immutable/chunks/DDvK7Qo9.js.map} +1 -1
  285. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CiU8KBun.js → _VFi-7U7.js} +2 -2
  286. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CiU8KBun.js.map → _VFi-7U7.js.map} +1 -1
  287. package/web/.svelte-kit/output/client/_app/immutable/chunks/{DlENCZqZ.js → mQ6hkLuy.js} +2 -2
  288. package/web/.svelte-kit/output/client/_app/immutable/chunks/{DlENCZqZ.js.map → mQ6hkLuy.js.map} +1 -1
  289. package/web/.svelte-kit/output/client/_app/immutable/entry/{app.BwTbN8wB.js → app.CTFza_OS.js} +3 -3
  290. package/{dist/web/client/_app/immutable/entry/app.BwTbN8wB.js.map → web/.svelte-kit/output/client/_app/immutable/entry/app.CTFza_OS.js.map} +1 -1
  291. package/web/.svelte-kit/output/client/_app/immutable/entry/start.B-zlkyrt.js +2 -0
  292. package/web/.svelte-kit/output/client/_app/immutable/entry/start.B-zlkyrt.js.map +1 -0
  293. package/{dist/web/client/_app/immutable/nodes/0.BnHV-ElR.js → web/.svelte-kit/output/client/_app/immutable/nodes/0.Cztuq8Ih.js} +2 -2
  294. package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.BnHV-ElR.js.map → 0.Cztuq8Ih.js.map} +1 -1
  295. package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.Dc3ryOCf.js → 1.BOOL0V7K.js} +2 -2
  296. package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.Dc3ryOCf.js.map → 1.BOOL0V7K.js.map} +1 -1
  297. package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.DUrpAceY.js → 2.CArUpZNe.js} +2 -2
  298. package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.DUrpAceY.js.map → 2.CArUpZNe.js.map} +1 -1
  299. package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.BaCofjAn.js → 3.DSvIWalA.js} +2 -2
  300. package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.BaCofjAn.js.map → 3.DSvIWalA.js.map} +1 -1
  301. package/web/.svelte-kit/output/client/_app/immutable/nodes/4.H6RMG_cy.js +2 -0
  302. package/web/.svelte-kit/output/client/_app/immutable/nodes/{4.v1wYkrvS.js.map → 4.H6RMG_cy.js.map} +1 -1
  303. package/web/.svelte-kit/output/client/_app/immutable/nodes/5.BHSt0Suo.js +2 -0
  304. package/web/.svelte-kit/output/client/_app/immutable/nodes/{5.Bn4A77jK.js.map → 5.BHSt0Suo.js.map} +1 -1
  305. package/web/.svelte-kit/output/client/_app/immutable/nodes/{6.C2hEoITj.js → 6.CzLoA0w7.js} +2 -2
  306. package/web/.svelte-kit/output/client/_app/immutable/nodes/{6.C2hEoITj.js.map → 6.CzLoA0w7.js.map} +1 -1
  307. package/web/.svelte-kit/output/client/_app/immutable/nodes/{7.BcHOjWdp.js → 7.fqq2vVa9.js} +2 -2
  308. package/web/.svelte-kit/output/client/_app/immutable/nodes/{7.BcHOjWdp.js.map → 7.fqq2vVa9.js.map} +1 -1
  309. package/web/.svelte-kit/output/client/_app/immutable/nodes/8.DNFFjTla.js +2 -0
  310. package/web/.svelte-kit/output/client/_app/immutable/nodes/{8.D7NtqIYy.js.map → 8.DNFFjTla.js.map} +1 -1
  311. package/web/.svelte-kit/output/client/_app/immutable/nodes/9.0kMPrp2-.js +2 -0
  312. package/web/.svelte-kit/output/client/_app/immutable/nodes/{9.D-211z9-.js.map → 9.0kMPrp2-.js.map} +1 -1
  313. package/web/.svelte-kit/output/client/_app/version.json +1 -1
  314. package/web/.svelte-kit/output/server/chunks/git.js +13 -4
  315. package/web/.svelte-kit/output/server/chunks/git.js.map +1 -1
  316. package/web/.svelte-kit/output/server/chunks/internal2.js +1 -1
  317. package/web/.svelte-kit/output/server/chunks/internal2.js.map +1 -1
  318. package/web/.svelte-kit/output/server/chunks/message-queue.js +14 -1
  319. package/web/.svelte-kit/output/server/chunks/message-queue.js.map +1 -1
  320. package/web/.svelte-kit/output/server/chunks/version.js +1 -1
  321. package/web/.svelte-kit/output/server/chunks/version.js.map +1 -1
  322. package/web/.svelte-kit/output/server/chunks/ws-handlers.js +2 -1
  323. package/web/.svelte-kit/output/server/chunks/ws-handlers.js.map +1 -1
  324. package/web/.svelte-kit/output/server/chunks/ws-messages.js +6 -1
  325. package/web/.svelte-kit/output/server/chunks/ws-messages.js.map +1 -1
  326. package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js +72 -45
  327. package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js.map +1 -1
  328. package/web/.svelte-kit/output/server/manifest-full.js +1 -1
  329. package/web/.svelte-kit/output/server/manifest.js +1 -1
  330. package/web/.svelte-kit/output/server/nodes/0.js +1 -1
  331. package/web/.svelte-kit/output/server/nodes/1.js +1 -1
  332. package/web/.svelte-kit/output/server/nodes/2.js +1 -1
  333. package/web/.svelte-kit/output/server/nodes/3.js +1 -1
  334. package/web/.svelte-kit/output/server/nodes/4.js +1 -1
  335. package/web/.svelte-kit/output/server/nodes/5.js +1 -1
  336. package/web/.svelte-kit/output/server/nodes/6.js +1 -1
  337. package/web/.svelte-kit/output/server/nodes/7.js +1 -1
  338. package/web/.svelte-kit/output/server/nodes/8.js +1 -1
  339. package/web/.svelte-kit/output/server/nodes/9.js +1 -1
  340. package/web/src/lib/components/AllSessionsPanel.svelte +9 -1
  341. package/web/src/lib/components/FolderPicker.svelte +49 -21
  342. package/dist/web/client/_app/immutable/chunks/CtjkAirr.js.map +0 -1
  343. package/dist/web/client/_app/immutable/chunks/Dck--FBb.js +0 -4
  344. package/dist/web/client/_app/immutable/chunks/Dck--FBb.js.map +0 -1
  345. package/dist/web/client/_app/immutable/entry/start.B2ZPizAt.js +0 -2
  346. package/dist/web/client/_app/immutable/entry/start.B2ZPizAt.js.map +0 -1
  347. package/dist/web/server/chunks/_layout.svelte-yrPX5VFm.js.map +0 -1
  348. package/dist/web/server/chunks/git-D9dLEKUF.js.map +0 -1
  349. package/dist/web/server/chunks/message-queue-sFcJCRjz.js.map +0 -1
  350. package/dist/web/server/chunks/version-BqEJmw2g.js.map +0 -1
  351. package/dist/web/server/chunks/ws-handlers-zemeJ8Si.js.map +0 -1
  352. package/dist/web/server/chunks/ws-messages-jOSwT1Yq.js.map +0 -1
  353. package/web/.svelte-kit/output/client/_app/immutable/chunks/CtjkAirr.js.map +0 -1
  354. package/web/.svelte-kit/output/client/_app/immutable/chunks/Dck--FBb.js +0 -4
  355. package/web/.svelte-kit/output/client/_app/immutable/chunks/Dck--FBb.js.map +0 -1
  356. package/web/.svelte-kit/output/client/_app/immutable/entry/start.B2ZPizAt.js +0 -2
  357. package/web/.svelte-kit/output/client/_app/immutable/entry/start.B2ZPizAt.js.map +0 -1
  358. package/web/.svelte-kit/output/client/_app/immutable/nodes/4.v1wYkrvS.js +0 -2
  359. package/web/.svelte-kit/output/client/_app/immutable/nodes/5.Bn4A77jK.js +0 -2
  360. package/web/.svelte-kit/output/client/_app/immutable/nodes/8.D7NtqIYy.js +0 -2
  361. package/web/.svelte-kit/output/client/_app/immutable/nodes/9.D-211z9-.js +0 -2
@@ -1,4 +1,4 @@
1
- import{l as Je,m as vn,bs as fs,k as ds,q as gr,aA as lt,t as de,a8 as ps,bp as ln,bt as gs,v as mr,aC as ms,aJ as bs,bu as ws,bv as vs,bo as ys,br as xs,bw as ks,X as Ss,I as ue,a7 as si,bd as As,bx as Ps,aS as Ts,a2 as ct,D as oi,g as M,i as p,j as S,p as G,x as z,f as F,a as D,b as Y,z as T,c as Ze,by as br,ax as Cs,bz as ut,K as Es,w as le,ac as ne,bA as Os,O as Rs,R as _s,L as ee,bB as Ls,h as It,U as Is,s as fe,be as Ds,A as Ee,B as Oe,o as Et,d as Ge}from"./BeqCgGI7.js";import{s as Fs}from"./CM0CI9GL.js";import"./DxJTiTth.js";import{B as Ms,p as w,i as ce,c as Se,r as be,b as ai}from"./Cjnj9mVX.js";import{a as wr,s as He,g as yn,b as xn,o as $e,f as Ns}from"./VDVYssW5.js";import{Y as zs,ai as Bs,aj as Yt,M as C,A as ie,N as $,C as kt,ak as Ws,al as kn,am as Hs,an as js,a8 as ye,I as vr,ao as yr,ap as Vs,z as mt,aq as qs,ar as Us,y as Ks,K as bt,a9 as je,as as Mt,E as Zs,D as Xs,R as li,G as Gs,Q as Ys,J as Qs,L as Js,P as In,at as $s,O as eo}from"./CtjkAirr.js";import{c as vt}from"./BgY8YOrV.js";const to=Symbol("NaN");function no(t,e,n){Je&&vn();var r=new Ms(t),i=!fs();ds(()=>{var s=e();s!==s&&(s=to),i&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}function qu(t,e,n=!1,r=!1,i=!1,s=!1){var o=t,a="";if(n){var l=t;Je&&(o=gr(lt(l)))}de(()=>{var c=ps;if(a===(a=e()??"")){Je&&vn();return}if(n&&!Je){c.nodes=null,l.innerHTML=a,a!==""&&ln(lt(l),l.lastChild);return}if(c.nodes!==null&&(gs(c.nodes.start,c.nodes.end),c.nodes=null),a!==""){if(Je){mr.data;for(var u=vn(),h=u;u!==null&&(u.nodeType!==ms||u.data!=="");)h=u,u=bs(u);if(u===null)throw ws(),vs;ln(mr,h),o=gr(u);return}var d=r?xs:i?ks:void 0,f=ys(r?"svg":i?"math":"template",d);f.innerHTML=a;var g=r||i?f:f.content;if(ln(lt(g),g.lastChild),r||i)for(;lt(g);)o.before(lt(g));else o.before(g)}})}function Uu(t,e,n){Ss(()=>{var r=ue(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,s={};si(()=>{var o=n();As(o),i&&Ps(s,o)&&(s=o,r.update(o))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ro(t,e,n=e){var r=new WeakSet;Ts(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=cn(t)?un(s):s,n(s),ct!==null&&r.add(ct),await oi(),s!==(s=e())){var o=t.selectionStart,a=t.selectionEnd,l=t.value.length;if(t.value=s??"",a!==null){var c=t.value.length;o===a&&a===l&&c>l?(t.selectionStart=c,t.selectionEnd=c):(t.selectionStart=o,t.selectionEnd=Math.min(a,c))}}}),(Je&&t.defaultValue!==t.value||ue(e)==null&&t.value)&&(n(cn(t)?un(t.value):t.value),ct!==null&&r.add(ct)),si(()=>{var i=e();if(t===document.activeElement){var s=ct;if(r.has(s))return}cn(t)&&i===un(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function cn(t){var e=t.type;return e==="number"||e==="range"}function un(t){return t===""?null:+t}const io=()=>{const t=Fs;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Ku={subscribe(t){return io().page.subscribe(t)}},Zu="(max-width: 768px)";class so{#e=M(!1);get open(){return p(this.#e)}set open(e){S(this.#e,e,!0)}toggle(){this.open=!this.open}close(){this.open=!1}}const Xu=new so;var oo=Ze("<iconify-icon></iconify-icon>",2),ao=Ze('<span role="img"></span>');function Gu(t,e){G(e,!0);let n=w(e,"size",3,"md"),r=w(e,"title",3,null);const i=T(()=>zs(e.state)),s=T(()=>({sm:{dot:7,icon:13},md:{dot:8,icon:15},lg:{dot:12,icon:18}})[n()]),o=T(()=>r()||p(i).label),a=T(()=>p(i).pulse?-(Date.now()%1600):0);var l=z(),c=F(l);{var u=d=>{var f=oo();wr(f,1,"state-icon svelte-hy3pce"),de(()=>He(f,"icon",p(i).icon)),He(f,"role","img"),de(()=>He(f,"aria-label",p(o))),de(()=>He(f,"title",r())),de(()=>yn(f,`color: ${p(i).color??""}; font-size: ${p(s).icon??""}px;`)),D(d,f)},h=d=>{var f=ao();let g;de(()=>{g=wr(f,1,"state-dot svelte-hy3pce",null,g,{"pulse-dot":p(i).pulse}),yn(f,`background: ${p(i).color??""}; width: ${p(s).dot??""}px; height: ${p(s).dot??""}px; animation-delay: ${p(a)??""}ms;`),xn(f,"aria-label",p(o)),xn(f,"title",r())}),D(d,f)};ce(c,d=>{p(i).icon?d(u):d(h,-1)})}D(t,l),Y()}const xr=6;function Yu(t,e){let n=e,r=null,i=!1,s=0,o=0;t.style.userSelect="none",t.style.setProperty("-webkit-user-select","none"),t.style.setProperty("-webkit-touch-callout","none"),t.style.touchAction||(t.style.touchAction="manipulation");function a(){r&&(clearTimeout(r),r=null)}function l(v,P){n.enabled&&!n.enabled()||(i=!1,s=v,o=P,a(),r=setTimeout(()=>{r=null,i=!0,n.onTrigger()},n.ms??500))}function c(){const v=i;a(),v&&n.onRelease?.()}function u(v,P){return Math.abs(v-s)>xr||Math.abs(P-o)>xr}function h(v){v.button===0&&l(v.clientX,v.clientY)}function d(v){r&&u(v.clientX,v.clientY)&&a()}function f(v){const P=v.touches[0];l(P?.clientX??0,P?.clientY??0)}function g(v){const P=v.touches[0];r&&P&&u(P.clientX,P.clientY)&&a()}function m(v){c(),i&&(v.preventDefault(),i=!1)}function b(v){i&&(v.preventDefault(),v.stopPropagation(),i=!1)}function y(){c(),i=!1}function x(v){if(i){v.preventDefault();return}a()}return t.addEventListener("mousedown",h),t.addEventListener("mousemove",d),t.addEventListener("touchstart",f,{passive:!0}),t.addEventListener("touchmove",g,{passive:!0}),t.addEventListener("touchend",m),t.addEventListener("touchcancel",y),t.addEventListener("mouseup",c),t.addEventListener("mouseleave",c),t.addEventListener("dragstart",x),t.addEventListener("click",b,{capture:!0}),{destroy(){a(),t.removeEventListener("mousedown",h),t.removeEventListener("mousemove",d),t.removeEventListener("touchstart",f),t.removeEventListener("touchmove",g),t.removeEventListener("touchend",m),t.removeEventListener("touchcancel",y),t.removeEventListener("mouseup",c),t.removeEventListener("mouseleave",c),t.removeEventListener("dragstart",x),t.removeEventListener("click",b,{capture:!0})},update(v){n=v}}}class lo extends Map{#e=new Map;#t=M(0);#n=M(0);#r=br||-1;constructor(e){if(super(),e){for(var[n,r]of e)super.set(n,r);this.#n.v=super.size}}#i(e){return br===this.#r?M(e):Cs(e)}has(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#i(0),n.set(e,r);else return p(this.#t),!1;return p(r),!0}forEach(e,n){this.#o(),super.forEach(e,n)}get(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#i(0),n.set(e,r);else{p(this.#t);return}return p(r),super.get(e)}getOrInsert(e,n){return super.has(e)||this.set(e,n),this.get(e)}getOrInsertComputed(e,n){return super.has(e)||this.set(e,n(e)),this.get(e)}set(e,n){var r=this.#e,i=r.get(e),s=super.get(e),o=super.set(e,n),a=this.#t;if(i===void 0)i=this.#i(0),r.set(e,i),S(this.#n,super.size),ut(a);else if(s!==n){ut(i);var l=a.reactions===null?null:new Set(a.reactions),c=l===null||!i.reactions?.every(u=>l.has(u));c&&ut(a)}return o}delete(e){var n=this.#e,r=n.get(e),i=super.delete(e);return r!==void 0&&(n.delete(e),S(r,-1)),i&&(S(this.#n,super.size),ut(this.#t)),i}clear(){if(super.size!==0){super.clear();var e=this.#e;S(this.#n,0);for(var n of e.values())S(n,-1);ut(this.#t),e.clear()}}#o(){p(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var n of super.keys())if(!e.has(n)){var r=this.#i(0);e.set(n,r)}}for([,r]of this.#e)p(r)}keys(){return p(this.#t),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(this.#n),super.size}}function co(t){return typeof t=="function"}function kr(t){return co(t)?t():t}class uo{#e={width:0,height:0};#t=!1;#n;#r;#i;#o=T(()=>(p(this.#s)?.(),this.getSize().width));#a=T(()=>(p(this.#s)?.(),this.getSize().height));#s=T(()=>{const e=kr(this.#r);if(e)return Es(n=>{if(!this.#i)return;const r=new this.#i.ResizeObserver(i=>{this.#t=!0;for(const s of i){const o=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(o)?o:[o];this.#e.width=a.reduce((l,c)=>Math.max(l,c.inlineSize),0),this.#e.height=a.reduce((l,c)=>Math.max(l,c.blockSize),0)}n()});return r.observe(e),()=>{this.#t=!1,r.disconnect()}})});constructor(e,n={box:"border-box"}){this.#i=n.window??Bs,this.#n=n,this.#r=e,this.#e={width:0,height:0}}calculateSize(){const e=kr(this.#r);if(!e||!this.#i)return;const n=e.offsetWidth,r=e.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const i=this.#i.getComputedStyle(e),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),c=n-s-a,u=r-o-l;return{width:c,height:u}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return p(this.#s)?.(),this.getSize()}get width(){return p(this.#o)}get height(){return p(this.#a)}}function rt(t){le(()=>()=>{t()})}function Dn(t){oi().then(t)}const ho=1,fo=9,po=11;function Sn(t){return Yt(t)&&t.nodeType===ho&&typeof t.nodeName=="string"}function ci(t){return Yt(t)&&t.nodeType===fo}function go(t){return Yt(t)&&t.constructor?.name==="VisualViewport"}function mo(t){return Yt(t)&&t.nodeType!==void 0}function ui(t){return mo(t)&&t.nodeType===po&&"host"in t}function bo(t,e){if(!t||!e||!Sn(t)||!Sn(e))return!1;const n=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(n&&ui(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function hi(t){return ci(t)?t:go(t)?t.document:t?.ownerDocument??document}function fi(t){return ui(t)?fi(t.host):ci(t)?t.defaultView??window:Sn(t)?t.ownerDocument?.defaultView??window:window}function wt(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class Fn{element;#e=T(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return p(this.#e)}set root(e){S(this.#e,e)}constructor(e){typeof e=="function"?this.element=C(e):this.element=e}getDocument=()=>hi(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>wt(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,n)=>this.getWindow().setTimeout(e,n);clearTimeout=e=>this.getWindow().clearTimeout(e)}class wo{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,rt(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();const n=this.#r,r=()=>{n===this.#r&&this.#o(e)},i=()=>{if(n!==this.#r)return;const o=this.#e.ref.current;if(!o)return;if(typeof o.getAnimations!="function"){this.#o(e);return}const a=o.getAnimations();if(a.length===0){r();return}Promise.all(a.map(l=>l.finished)).then(()=>{r()}).catch(()=>{if(n!==this.#r)return;if(o.getAnimations().some(u=>u.pending||u.playState!=="finished")){i();return}r()})},s=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,i()})};if(!this.#e.afterTick.current){s();return}this.#t=window.requestAnimationFrame(()=>{this.#t=null;const o="data-starting-style",a=this.#e.ref.current;if(a){if(!a.hasAttribute(o)){s();return}this.#n=new MutationObserver(()=>{n===this.#r&&(a.hasAttribute(o)||(this.#n?.disconnect(),this.#n=null,s()))}),this.#n.observe(a,{attributes:!0,attributeFilter:[o]})}})}#o(e){const n=this.#r,r=()=>{n===this.#r&&e()};this.#e.afterTick.current?Dn(r):r()}}class Sr{#e;#t;#n;#r=M(!1);#i=M(void 0);#o=!1;#a=null;constructor(e){this.#e=e,S(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new wo({ref:this.#e.ref,afterTick:this.#e.open}),rt(()=>this.#s()),ie(()=>this.#e.open.current,n=>{if(!this.#o){this.#o=!0;return}if(this.#s(),!n&&this.#e.shouldSkipExitAnimation?.()){S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.();return}if(n&&S(this.#r,!0),S(this.#i,n?"starting":"ending",!0),n&&(this.#a=window.requestAnimationFrame(()=>{this.#a=null,this.#e.open.current&&S(this.#i,void 0)})),!this.#t){n||S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.();return}this.#n.run(()=>{n===this.#e.open.current&&(this.#e.open.current||S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.())})})}get shouldRender(){return p(this.#r)}get transitionStatus(){return p(this.#i)}#s(){this.#a!==null&&(window.cancelAnimationFrame(this.#a),this.#a=null)}}function Z(){}function vo(t,e){var n=z(),r=F(n);no(r,()=>e.children,i=>{var s=z(),o=F(s);$(o,()=>e.children??ne),D(i,s)}),D(t,n)}const yo=new kt("BitsConfig");function xo(){const t=new ko(null,{});return yo.getOr(t).opts}class ko{opts;constructor(e,n){const r=So(e,n);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function So(t,e){return n=>C(()=>{const i=n(e)?.current;if(i!==void 0)return i;if(t!==null)return n(t.opts)?.current})}function Ao(t,e){return n=>{const r=xo();return C(()=>{const i=n();if(i!==void 0)return i;const s=t(r).current;return s!==void 0?s:e})}}const Po=Ao(t=>t.defaultPortalTo,"body");function To(t,e){G(e,!0);const n=Po(()=>e.to),r=Os();let i=T(s);function s(){if(!Ws||e.disabled)return null;let h=null;return typeof n.current=="string"?h=document.querySelector(n.current):h=n.current,h}let o;function a(){o&&(_s(o),o=null)}ie([()=>p(i),()=>e.disabled],([h,d])=>{if(!h||d){a();return}return o=Rs(vo,{target:h,props:{children:e.children},context:r}),()=>{a()}});var l=z(),c=F(l);{var u=h=>{var d=z(),f=F(d);$(f,()=>e.children??ne),D(h,d)};ce(c,h=>{e.disabled&&h(u)})}D(t,l),Y()}function Co(t,e=500){let n=null,r=null;const i=(...s)=>{i.destroy(),r=s,n=setTimeout(i.flush,e)};return i.flush=()=>{if(r===null)return;const s=r;i.destroy(),t(...s)},i.destroy=()=>{n!==null&&(clearTimeout(n),n=null),r=null},i}function di(t,e){return t===e||t.contains(e)}function pi(t){return t?.ownerDocument??document}function Qu(t){if(!t)return null;for(const e of t.childNodes)if(e.nodeType!==Node.COMMENT_NODE)return e;return null}function Eo(t,e){const{clientX:n,clientY:r}=t,i=e.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}const Oo="data-context-menu-trigger",Ro="data-context-menu-content";globalThis.bitsDismissableLayers??=new Map;class Mn{static create(e){return new Mn(e)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=null;#o=!1;#a=void 0;#s;#l=Z;#c=!1;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#s=e.onFocusOutside;let n=Z,r=null;const i=()=>{r=null,this.#v(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#l(),n()};ie([()=>this.opts.enabled.current,()=>this.opts.ref.current],([s,o])=>{const a=s?o:null;r!==a&&(i(),a&&(r=a,this.#a=pi(a),globalThis.bitsDismissableLayers.set(this,this.#t),n=this.#f()))}),rt(()=>{this.#c=!0,i()})}#h=e=>{e.defaultPrevented||this.#c||!this.opts.ref.current||Dn(()=>{this.#c||!this.opts.ref.current||this.#w(e.target)||e.target&&!this.#o&&this.#s.current?.(e)})};#f(){const e=this.#a,n=i=>{ue(()=>{this.#u.flush(),this.#p(i),this.#b(i)})},r=i=>{i.cancelBubble||i!==this.#i||(this.#m(i),i.pointerType==="touch"?(this.#u.destroy(),this.#d(i)):this.#u(i))};return e.addEventListener("pointerdown",n,!0),e.addEventListener("pointerdown",r),kn(()=>e.removeEventListener("pointerdown",n,!0),()=>e.removeEventListener("pointerdown",r),ee(e,"focusin",this.#h))}#g=e=>{let n=e;n.defaultPrevented&&(n=Ar(e)),this.#e.current(e)};#d=e=>{if(!this.opts.ref.current){this.#l();return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||Io(e,this.opts.ref.current);if(!this.#r||this.#y()||!n){this.#l();return}let r=e;if(r.defaultPrevented&&(r=Ar(r)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#l();return}if(e.pointerType==="touch"){this.#l();let i=null,s=Z;const o=a=>{s(),this.#g(a)};s=kn(ee(this.#a,"click",o,{once:!0}),ee(this.#a,"click",a=>{i=setTimeout(()=>o(a),0)},{once:!0,capture:!0}),()=>{i!==null&&clearTimeout(i),i=null}),this.#l=s}else this.#e.current(r)};#u=Co(this.#d,10);#p=e=>{this.#n[e.type]=!0};#m=e=>{this.#n[e.type]=!1};#b=e=>{this.#i=e,this.opts.ref.current&&(this.#r=Lo(this.opts.ref.current))};#w=e=>this.opts.ref.current?di(this.opts.ref.current,e):!1;#v=()=>{for(const e in this.#n)this.#n[e]=!1;this.#r=!1,this.#i=null};#y(){return Object.values(this.#n).some(Boolean)}#x=()=>{this.#o=!0};#k=()=>{this.#o=!1};props={onfocuscapture:this.#x,onblurcapture:this.#k}}function _o(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function Lo(t){const e=[...globalThis.bitsDismissableLayers],n=_o(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function Io(t,e){const n=t.target;if(!Hs(n))return!1;const r=!!n.closest(`[${Oo}]`),i=!!e.closest(`[${Ro}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&i?!0:r&&i?!1:pi(n).documentElement.contains(n)&&!di(e,n)&&Eo(t,e)}function Ar(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let i=!1;return new Proxy(r,{get:(o,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:a==="defaultPrevented"?i:a in o?o[a]:t[a]})}function Do(t,e){G(e,!0);let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"onInteractOutside",3,Z),i=w(e,"onFocusOutside",3,Z),s=w(e,"isValidEvent",3,()=>!1);const o=Mn.create({id:C(()=>e.id),interactOutsideBehavior:C(()=>n()),onInteractOutside:C(()=>r()),enabled:C(()=>e.enabled),onFocusOutside:C(()=>i()),isValidEvent:C(()=>s()),ref:ue(()=>e.ref)});var a=z(),l=F(a);$(l,()=>e.children??ne,()=>({props:o.props})),D(t,a),Y()}globalThis.bitsEscapeLayers??=new Map;class Nn{static create(e){return new Nn(e)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Fn(this.opts.ref);let n=Z;ie(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=this.#e()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>ee(this.domContext.getDocument(),"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==js||!Fo(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Fo(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function Mo(t,e){G(e,!0);let n=w(e,"escapeKeydownBehavior",3,"close"),r=w(e,"onEscapeKeydown",3,Z);Nn.create({escapeKeydownBehavior:C(()=>n()),onEscapeKeydown:C(()=>r()),enabled:C(()=>e.enabled),ref:ue(()=>e.ref)});var i=z(),s=F(i);$(s,()=>e.children??ne),D(t,i),Y()}class zn{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new zn),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=wt(document);r&&r!==document.body&&this.#n.set(e,r),this.#e.current=this.#e.current.filter(i=>i!==e),this.#e.current.unshift(e),e.resume()}unregister(e){this.#e.current=this.#e.current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,n){this.#t.set(e,n)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){this.#n.set(e,n)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}}var gi=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Nt=gi.join(","),mi=typeof Element>"u",Ve=mi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zt=!mi&&Element.prototype.getRootNode?function(t){return t==null||t.getRootNode==null?void 0:t.getRootNode()}:function(t){return t?.ownerDocument},Bt=function(e,n){n===void 0&&(n=!0);var r=e==null||e.getAttribute==null?void 0:e.getAttribute("inert"),i=r===""||r==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Bt(e.parentNode));return s},No=function(e){var n,r=e==null||e.getAttribute==null||(n=e.getAttribute("contenteditable"))==null?void 0:n.toLowerCase();return r===""||r==="true"||r==="plaintext-only"},bi=function(e,n,r){if(Bt(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Nt));return n&&Ve.call(e,Nt)&&i.unshift(e),i=i.filter(r),i},Wt=function(e,n,r){for(var i=[],s=Array.from(e);s.length;){var o=s.shift();if(!Bt(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),l=a.length?a:o.children,c=Wt(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:o,candidates:c})}else{var u=Ve.call(o,Nt);u&&r.filter(o)&&(n||!e.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!Bt(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&d){var f=Wt(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else s.unshift.apply(s,o.children)}}return i},wi=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},vi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||No(e))&&!wi(e)?0:e.tabIndex},zo=function(e,n){var r=vi(e);return r<0&&n&&!wi(e)?0:r},Bo=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},yi=function(e){return e.tagName==="INPUT"},Wo=function(e){return yi(e)&&e.type==="hidden"},Ho=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},jo=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Vo=function(e){if(!e.name)return!0;var n=e.form||zt(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=jo(i,e.form);return!s||s===e},qo=function(e){return yi(e)&&e.type==="radio"},Uo=function(e){return qo(e)&&!Vo(e)},Ko=function(e){var n,r=e&&zt(e),i=(n=r)==null?void 0:n.host,s=!1;if(r&&r!==e){var o,a;for(s=!!((o=i)!=null&&(o=o.ownerDocument)!=null&&o.contains(i)||e!=null&&(a=e.ownerDocument)!=null&&a.contains(e));!s&&i;){var l,c;r=zt(i),i=(l=r)==null?void 0:l.host,s=!!((c=i)!=null&&(c=c.ownerDocument)!=null&&c.contains(i))}}return s},Pr=function(e){var n=e.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Zo=function(e,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var o=getComputedStyle(e),a=o.visibility;if(a==="hidden"||a==="collapse")return!0;var l=Ve.call(e,"details>summary:first-of-type"),c=l?e.parentElement:e;if(Ve.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var u=e;e;){var h=e.parentElement,d=zt(e);if(h&&!h.shadowRoot&&i(h)===!0)return Pr(e);e.assignedSlot?e=e.assignedSlot:!h&&d!==e.ownerDocument?e=d.host:e=h}e=u}if(Ko(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pr(e);return!1},Xo=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ve.call(n,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}n=n.parentElement}return!1},Ht=function(e,n){return!(n.disabled||Wo(n)||Zo(n,e)||Ho(n)||Xo(n))},An=function(e,n){return!(Uo(n)||vi(n)<0||!Ht(e,n))},Go=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},xi=function(e){var n=[],r=[];return e.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,l=zo(a,o),c=o?xi(i.candidates):a;l===0?o?n.push.apply(n,c):n.push(a):r.push({documentOrder:s,tabIndex:l,item:i,isScope:o,content:c})}),r.sort(Bo).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Yo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Wt([e],n.includeContainer,{filter:An.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Go}):r=bi(e,n.includeContainer,An.bind(null,n)),xi(r)},Qo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Wt([e],n.includeContainer,{filter:Ht.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=bi(e,n.includeContainer,Ht.bind(null,n)),r},Jo=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ve.call(e,Nt)===!1?!1:An(n,e)},$o=gi.concat("iframe:not([inert]):not([inert] *)").join(","),ea=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ve.call(e,$o)===!1?!1:Ht(n,e)};function Tr(t,e){const n=e.getRootNode();for(;t;){const r=t.getRootNode();if(r===n)return t;t=r!==t&&"host"in r?r.host:null}return null}class Bn{#e=!1;#t=null;#n=zn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#o(){for(const e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#l(),this.#a()}unmount(){this.#t&&(this.#o(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#t=null)}#a(){if(!this.#t)return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t||this.#e||!this.#n.isActiveScope(this)||this.#t.contains(Tr(wt(this.#t.ownerDocument),this.#t)))return;const n=this.#h();n?(n.focus({preventScroll:!0}),this.#n.setFocusMemory(this,n)):this.#t.focus({preventScroll:!0})})}#s(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&n.isConnected)try{n.focus({preventScroll:!0})}catch{document.body.focus()}}}#l(){if(!this.#t||!this.#i.trap.current)return;const e=this.#t,n=e.ownerDocument,r=o=>{if(this.#e||!this.#n.isActiveScope(this))return;const a=Tr(o.composedPath()[0],e);if(a!==null&&e.contains(a))this.#n.setFocusMemory(this,a);else{const c=this.#n.getFocusMemory(this);if(c&&e.contains(c)&&ea(c))o.preventDefault(),c.focus({preventScroll:!0});else{const u=this.#h(),h=this.#f()[0];(u||h||e).focus({preventScroll:!0})}}},i=o=>{if(!this.#i.loop||this.#e||o.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#c();if(a.length===0)return;const l=a[0],c=a[a.length-1];!o.shiftKey&&wt(n)===c?(o.preventDefault(),l.focus()):o.shiftKey&&wt(n)===l&&(o.preventDefault(),c.focus())};this.#r.push(ee(n,"focusin",r,{capture:!0}),ee(e,"keydown",i));const s=new MutationObserver(()=>{const o=this.#n.getFocusMemory(this);if(o&&!e.contains(o)){const a=this.#h(),l=this.#f()[0],c=a||l;c?(c.focus({preventScroll:!0}),this.#n.setFocusMemory(this,c)):e.focus({preventScroll:!0})}});s.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#c(){return this.#t?Yo(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#h(){return this.#c()[0]||null}#f(){return this.#t?Qo(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(e){let n=null;return ie([()=>e.ref.current,()=>e.enabled.current],([r,i])=>{r&&i?(n||(n=new Bn(e)),n.mount(r)):n&&(n.unmount(),n=null)}),rt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function ta(t,e){G(e,!0);let n=w(e,"enabled",3,!1),r=w(e,"trapFocus",3,!1),i=w(e,"loop",3,!1),s=w(e,"onCloseAutoFocus",3,Z),o=w(e,"onOpenAutoFocus",3,Z);const a=Bn.use({enabled:C(()=>n()),trap:C(()=>r()),loop:ue(()=>i()),onCloseAutoFocus:C(()=>s()),onOpenAutoFocus:C(()=>o()),ref:ue(()=>e.ref)});var l=z(),c=F(l);$(c,()=>e.focusScope??ne,()=>({props:a.props})),D(t,l),Y()}const Cr=()=>{};globalThis.bitsTextSelectionLayers??=new Map;class Wn{static create(e){return new Wn(e)}opts;domContext;#e=Z;#t=!1;#n=Cr;#r=Cr;constructor(e){this.opts=e,this.domContext=new Fn(e.ref);let n=Z;ie(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,i,s])=>(this.#t=r,this.#n=i,this.#r=s,r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#i()),()=>{this.#t=!1,n(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return kn(ee(this.domContext.getDocument(),"pointerdown",this.#a),ee(this.domContext.getDocument(),"pointerup",this.#o))}#o=e=>{this.#s(),!e.defaultPrevented&&this.#r(e)};#a=e=>{if(!this.#t)return;this.#s();const n=this.opts.ref.current,r=e.target;!vr(n)||!vr(r)||!ra(this)||!bo(n,r)||(this.#n(e),!e.defaultPrevented&&(this.#e=na(n,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=Z}}const Er=t=>t.style.userSelect||t.style.webkitUserSelect;function na(t,e){const n=Er(e),r=Er(t);return Ot(e,"none"),Ot(t,"text"),()=>{Ot(e,n),Ot(t,r)}}function Ot(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function ra(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function ia(t,e){G(e,!0);let n=w(e,"preventOverflowTextSelection",3,!0),r=w(e,"onPointerDown",3,Z),i=w(e,"onPointerUp",3,Z);Wn.create({id:C(()=>e.id),onPointerDown:C(()=>r()),onPointerUp:C(()=>i()),enabled:C(()=>e.enabled&&n()),ref:ue(()=>e.ref)});var s=z(),o=F(s);$(o,()=>e.children??ne),D(t,s),Y()}globalThis.bitsIdCounter??={current:0};function Hn(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}class sa{#e;#t=0;#n=M();#r;constructor(e){this.#e=e}#i(){this.#t-=1,this.#r&&this.#t<=0&&(this.#r(),S(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,p(this.#n)===void 0&&(this.#r=Ls(()=>{S(this.#n,this.#e(...e),!0)})),le(()=>()=>{this.#i()}),p(this.#n)}}const Dt=new lo,Or=["padding-right","margin-right","overflow","overflow-x","overflow-y","pointer-events","--scrollbar-width"];let ht=null,Rr=!1;const et=new Set;let hn=null,ft=null,dt=!1;function Ye(t,e,n){t.setProperty(e,n),et.add(e),e==="overflow"&&(et.add("overflow-x"),et.add("overflow-y"))}const _r=C(()=>{for(const t of Dt.values())if(t)return!0;return!1});let fn=null;const oa=new sa(()=>{function t(o,a){const l=ht?.get(a);l?.value?o.body.style.setProperty(a,l.value,l.priority):o.body.style.removeProperty(a)}function e(o){for(const a of Or)et.has(a)&&t(o,a);!Rr&&o.body.style.length===0&&o.body.removeAttribute("style"),ht=null,et.clear(),yr&&hn?.()}function n(o){et.delete("pointer-events")&&t(o,"pointer-events")}function r(){ft!==null&&(window.clearTimeout(ft),ft=null)}function i(o,a){r(),dt=!0,fn=Date.now();const l=fn,c=()=>{ft=null,fn===l&&(ki(Dt)?dt=!1:(dt=!1,a()))},u=o===null?24:o;ft=window.setTimeout(c,u)}function s(){if(ht===null&&Dt.size===0&&!dt){Rr=document.body.hasAttribute("style"),ht=new Map;for(const o of Or)ht.set(o,{value:document.body.style.getPropertyValue(o),priority:document.body.style.getPropertyPriority(o)})}}return ie(()=>_r.current,()=>{if(!_r.current)return;s(),dt=!1;const o=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),l=o.scrollbarGutter?.includes("stable")||a.scrollbarGutter?.includes("stable"),c=window.innerWidth-document.documentElement.clientWidth,h={padding:Number.parseInt(a.paddingRight??"0",10)+c,margin:Number.parseInt(a.marginRight??"0",10)};c>0&&!l&&(Ye(document.body.style,"padding-right",`${h.padding}px`),Ye(document.body.style,"margin-right",`${h.margin}px`),Ye(document.body.style,"--scrollbar-width",`${c}px`)),Ye(document.body.style,"overflow","hidden"),yr&&(hn=ee(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),Dn(()=>{Ye(document.body.style,"pointer-events","none"),Ye(document.body.style,"overflow","hidden")})}),rt(()=>()=>{hn?.()}),{get lockMap(){return Dt},resetBodyStyle:e,restorePointerEvents:n,scheduleCleanupIfNoNewLocks:i,cancelPendingCleanup:r,ensureInitialStyleCaptured:s}});class aa{#e=Hn();#t;#n=()=>null;#r;locked;constructor(e,n=()=>null){this.#t=e,this.#n=n,this.#r=oa.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=C(()=>this.#r.lockMap.get(this.#e)??!1,r=>this.#r.lockMap.set(this.#e,r)),rt(()=>{if(this.#r.lockMap.delete(this.#e),ki(this.#r.lockMap))return;const r=this.#n(),i=document;this.#r.restorePointerEvents(i),this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle(i)})}))}}function ki(t){for(const[e,n]of t)if(n)return!0;return!1}function Lr(t,e){G(e,!0);let n=w(e,"preventScroll",3,!0),r=w(e,"restoreScrollDelay",3,null);ue(()=>{n()&&new aa(n(),()=>r())}),Y()}const jn=new kt("Floating.Root"),Vn=new kt("Floating.Root");class jt{static create(e=!1){return e?Vn.set(new jt):jn.set(new jt)}anchorNode=ye(null);customAnchorNode=ye(null);triggerNode=ye(null);constructor(){le(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Pn{static create(e,n=!1){return n?new Pn(e,Vn.get()):new Pn(e,jn.get())}opts;root;constructor(e,n){this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=Vs(e.virtualEl.current):n.triggerNode=e.ref}}function la(t,e){G(e,!0);let n=w(e,"tooltip",3,!1);jt.create(ue(()=>n()));var r=z(),i=F(r);$(i,()=>e.children??ne),D(t,r),Y()}function Fe(t){return typeof t=="function"?t():t}function Si(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ir(t,e){const n=Si(t);return Math.round(e*n)/n}function Dr(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}const ca=["top","right","bottom","left"],Re=Math.min,xe=Math.max,Vt=Math.round,Rt=Math.floor,ke=t=>({x:t,y:t}),ua={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(t,e,n){return xe(t,Re(e,n))}function Ae(t,e){return typeof t=="function"?t(e):t}function _e(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function qn(t){return t==="x"?"y":"x"}function Un(t){return t==="y"?"height":"width"}function pe(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Kn(t){return qn(pe(t))}function ha(t,e,n){n===void 0&&(n=!1);const r=it(t),i=Kn(t),s=Un(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=qt(o)),[o,qt(o)]}function fa(t){const e=qt(t);return[Tn(t),e,Tn(e)]}function Tn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Fr=["left","right"],Mr=["right","left"],da=["top","bottom"],pa=["bottom","top"];function ga(t,e,n){switch(t){case"top":case"bottom":return n?e?Mr:Fr:e?Fr:Mr;case"left":case"right":return e?da:pa;default:return[]}}function ma(t,e,n,r){const i=it(t);let s=ga(_e(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Tn)))),s}function qt(t){const e=_e(t);return ua[e]+t.slice(e.length)}function ba(t){var e,n,r,i;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(i=t.left)!=null?i:0}}function Pi(t){return typeof t!="number"?ba(t):{top:t,right:t,bottom:t,left:t}}function Ut(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Nr(t,e,n){let{reference:r,floating:i}=t;const s=pe(e),o=Kn(e),a=Un(o),l=_e(e),c=s==="y",u=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}const g=it(e);return g&&(f[o]+=d*(g==="end"?1:-1)*(n&&c?-1:1)),f}async function wa(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Ae(e,t),g=Pi(f),b=a[d?h==="floating"?"reference":"floating":h],y=Ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},O=Ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(y.top-O.top+g.top)/P.y,bottom:(O.bottom-y.bottom+g.bottom)/P.y,left:(y.left-O.left+g.left)/P.x,right:(O.right-y.right+g.right)/P.x}}const va=50,ya=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:wa},l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:h}=Nr(c,r,l),d=r,f=0;const g={};for(let m=0;m<s.length;m++){const b=s[m];if(!b)continue;const{name:y,fn:x}=b,{x:v,y:P,data:O,reset:k}=await x({x:u,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:g,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,h=P??h,g[y]={...g[y],...O},k&&f<va&&(f++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:h}=Nr(c,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:g}},xa=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=Ae(t,e)||{};if(c==null)return{};const h=Pi(u),d={x:n,y:r},f=Kn(i),g=Un(f),m=await o.getDimensions(c),b=f==="y",y=b?"top":"left",x=b?"bottom":"right",v=b?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[f]-d[f]-s.floating[g],O=d[f]-s.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let I=k?k[v]:0;(!I||!await(o.isElement==null?void 0:o.isElement(k)))&&(I=a.floating[v]||s.floating[g]);const V=P/2-O/2,q=I/2-m[g]/2-1,N=Re(h[y],q),B=Re(h[x],q),U=I-m[g]-B,K=I/2-m[g]/2+V,H=Ai(N,K,U),A=!l.arrow&&it(i)!=null&&K!==H&&s.reference[g]/2-(K<N?N:B)-m[g]/2<0,E=A?K<N?K-N:K-U:0;return{[f]:d[f]+E,data:{[f]:H,centerOffset:K-H-E,...A&&{alignmentOffset:E}},reset:A}}}),ka=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Ae(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=_e(i),x=pe(a),v=_e(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=d||(v||!m?[qt(a)]:fa(a)),k=g!=="none";!d&&k&&O.push(...ma(a,m,g,P));const I=[a,...O],V=await l.detectOverflow(e,b),q=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&q.push(V[y]),h){const H=ha(i,o,P);q.push(V[H[0]],V[H[1]])}if(N=[...N,{placement:i,overflows:q}],!q.every(H=>H<=0)){var B,U;const H=(((B=s.flip)==null?void 0:B.index)||0)+1,A=I[H];if(A&&(!(h==="alignment"?x!==pe(A):!1)||N.every(L=>pe(L.placement)===x?L.overflows[0]>0:!0)))return{data:{index:H,overflows:N},reset:{placement:A}};let E=(U=N.filter(R=>R.overflows[0]<=0).sort((R,L)=>R.overflows[1]-L.overflows[1])[0])==null?void 0:U.placement;if(!E)switch(f){case"bestFit":{var K;const R=(K=N.filter(L=>{if(k){const W=pe(L.placement);return W===x||W==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(W=>W>0).reduce((W,Q)=>W+Q,0)]).sort((L,W)=>L[1]-W[1])[0])==null?void 0:K[0];R&&(E=R);break}case"initialPlacement":E=a;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function zr(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Br(t){return ca.some(e=>t[e]>=0)}const Sa=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...s}=Ae(t,e);switch(i){case"referenceHidden":{const o=await r.detectOverflow(e,{...s,elementContext:"reference"}),a=zr(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Br(a)}}}case"escaped":{const o=await r.detectOverflow(e,{...s,altBoundary:!0}),a=zr(o,n.floating);return{data:{escapedOffsets:a,escaped:Br(a)}}}default:return{}}}}},Ti=new Set(["left","top"]);async function Aa(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_e(n),a=it(n),l=pe(n)==="y",c=Ti.has(o)?-1:1,u=s&&l?-1:1,h=Ae(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),l?{x:f*u,y:d*c}:{x:d*c,y:f*u}}const Pa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await Aa(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Ta=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:v,y:P}=x;return{x:v,y:P}}},...c}=Ae(t,e),u={x:n,y:r},h=await s.detectOverflow(e,c),d=pe(i),f=qn(d);let g=u[f],m=u[d];const b=(x,v)=>Ai(v+h[x==="y"?"top":"left"],v,v-h[x==="y"?"bottom":"right"]);o&&(g=b(f,g)),a&&(m=b(d,m));const y=l.fn({...e,[f]:g,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:o,[d]:a}}}}}},Ca=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;const{x:i,y:s,placement:o,rects:a,middlewareData:l}=e,{offset:c=0,mainAxis:u=!0,crossAxis:h=!0}=Ae(t,e),d={x:i,y:s},f=pe(o),g=qn(f);let m=d[g],b=d[f];const y=Ae(c,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(r=y.crossAxis)!=null?r:0};if(u){const O=g==="y"?"height":"width",k=a.reference[g]-a.floating[O]+x.mainAxis,I=a.reference[g]+a.reference[O]-x.mainAxis;m<k?m=k:m>I&&(m=I)}if(h){var v,P;const O=g==="y"?"width":"height",k=Ti.has(_e(o)),I=a.reference[f]-a.floating[O]+(k&&((v=l.offset)==null?void 0:v[f])||0)+(k?0:x.crossAxis),V=a.reference[f]+a.reference[O]+(k?0:((P=l.offset)==null?void 0:P[f])||0)-(k?x.crossAxis:0);b<I?b=I:b>V&&(b=V)}return{[g]:m,[f]:b}}}},Ea=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:i,elements:s}=e,{apply:o=()=>{},...a}=Ae(t,e),l=await i.detectOverflow(e,a),c=_e(n),u=it(n),h=pe(n)==="y",{width:d,height:f}=r.floating;let g,m;c==="top"||c==="bottom"?(g=c,m=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,g=u==="end"?"top":"bottom");const b=f-l.top-l.bottom,y=d-l.left-l.right,x=Re(f-l[g],b),v=Re(d-l[m],y),P=e.middlewareData.shift,O=!P;let k=x,I=v;P!=null&&P.enabled.x&&(I=y),P!=null&&P.enabled.y&&(k=b),O&&!u&&(h?I=d-2*xe(l.left,l.right):k=f-2*xe(l.top,l.bottom)),await o({...e,availableWidth:I,availableHeight:k});const V=await i.getDimensions(s.floating);return d!==V.width||f!==V.height?{reset:{rects:!0}}:{}}}};function Qt(){return typeof window<"u"}function st(t){return Ci(t)?(t.nodeName||"").toLowerCase():"#document"}function te(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pe(t){var e;return(e=(Ci(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ci(t){return Qt()?t instanceof Node||t instanceof te(t).Node:!1}function ge(t){return Qt()?t instanceof Element||t instanceof te(t).Element:!1}function Le(t){return Qt()?t instanceof HTMLElement||t instanceof te(t).HTMLElement:!1}function Wr(t){return!Qt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof te(t).ShadowRoot}function Jt(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=me(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function Oa(t){return/^(table|td|th)$/.test(st(t))}function $t(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Ra=/transform|translate|scale|rotate|perspective|filter/,_a=/paint|layout|strict|content/,Me=t=>!!t&&t!=="none";let dn;function Zn(t){const e=ge(t)?me(t):t;return Me(e.transform)||Me(e.translate)||Me(e.scale)||Me(e.rotate)||Me(e.perspective)||!Xn()&&(Me(e.backdropFilter)||Me(e.filter))||Ra.test(e.willChange||"")||_a.test(e.contain||"")}function La(t){let e=qe(t);for(;Le(e)&&!yt(e);){if(Zn(e))return e;if($t(e))return null;e=qe(e)}return null}function Xn(){return dn==null&&(dn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dn}function yt(t){return/^(html|body|#document)$/.test(st(t))}function me(t){return te(t).getComputedStyle(t)}function en(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function qe(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wr(t)&&t.host||Pe(t);return Wr(e)?e.host:e}function Ei(t){const e=qe(t);return yt(e)?(t.ownerDocument||t).body:Le(e)&&Jt(e)?e:Ei(e)}function xt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ei(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=te(i);if(s){const a=Cn(o);return e.concat(o,o.visualViewport||[],Jt(i)?i:[],a&&n?xt(a):[])}else return e.concat(i,xt(i,[],n))}function Cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Oi(t){const e=me(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Le(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=Vt(n)!==s||Vt(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Gn(t){return ge(t)?t:t.contextElement}function tt(t){const e=Gn(t);if(!Le(e))return ke(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Oi(e);let o=(s?Vt(n.width):n.width)/r,a=(s?Vt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Ia=ke(0);function Ri(t){const e=te(t);return!Xn()||!e.visualViewport?Ia:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Da(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===te(t)}function Ue(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Gn(t);let o=ke(1);e&&(r?ge(r)&&(o=tt(r)):o=tt(t));const a=Da(s,n,r)?Ri(s):ke(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,h=i.height/o.y;if(s&&r){const d=te(s),f=ge(r)?te(r):r;let g=d,m=Cn(g);for(;m&&f!==g;){const b=tt(m),y=m.getBoundingClientRect(),x=me(m),v=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,P=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,h*=b.y,l+=v,c+=P,g=te(m),m=Cn(g)}}return Ut({width:u,height:h,x:l,y:c})}function tn(t,e){const n=en(t).scrollLeft;return e?e.left+n:Ue(Pe(t)).left+n}function _i(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tn(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Fa(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=Pe(r),a=e?$t(e.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ke(1);const u=ke(0),h=Le(r);if((h||!s)&&((st(r)!=="body"||Jt(o))&&(l=en(r)),h)){const f=Ue(r);c=tt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const d=o&&!h&&!s?_i(o,l):ke(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function Ma(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Na(t){const e=en(t),n=t.ownerDocument.body,r=xe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+tn(t);const o=-e.scrollTop;return me(n).direction==="rtl"&&(s+=xe(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:o}}const za=25;function Ba(t,e,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",i=te(t),s=Pe(t),o=i.visualViewport;let a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){const d=!Xn()||e==="fixed";r?d||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,d&&(c=o.offsetLeft,u=o.offsetTop))}if(tn(s)<=0){const d=s.ownerDocument,f=d.body,g=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(s.clientWidth-f.clientWidth-m),y=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;y<=za&&(a-=y)}return{width:a,height:l,x:c,y:u}}function Wa(t,e){const n=Ue(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=tt(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Hr(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=Ba(t,n,e);else if(e==="document")r=Na(Pe(t));else if(ge(e))r=Wa(e,n);else{const i=Ri(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ut(r)}function Ha(t,e){const n=e.get(t);if(n)return n;let r=xt(t,[],!1).filter(a=>ge(a)&&st(a)!=="body"),i=null;const s=me(t).position==="fixed";let o=s?qe(t):t;for(;ge(o)&&!yt(o);){const a=me(o),l=Zn(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(h=>h!==o):i=a,o=qe(o)}return e.set(t,r),r}function ja(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?$t(e)?[]:Ha(e,this._c):[].concat(n),r],a=Hr(e,o[0],i);let l=a.top,c=a.right,u=a.bottom,h=a.left;for(let d=1;d<o.length;d++){const f=Hr(e,o[d],i);l=xe(f.top,l),c=Re(f.right,c),u=Re(f.bottom,u),h=xe(f.left,h)}return{width:c-h,height:u-l,x:h,y:l}}function Va(t){const{width:e,height:n}=Oi(t);return{width:e,height:n}}function qa(t,e,n){const r=Le(e),i=Pe(e),s=n==="fixed",o=Ue(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=ke(0);if((r||!s)&&((st(e)!=="body"||Jt(i))&&(a=en(e)),r)){const d=Ue(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}!r&&i&&(l.x=tn(i));const c=i&&!r&&!s?_i(i,a):ke(0),u=o.left+a.scrollLeft-l.x-c.x,h=o.top+a.scrollTop-l.y-c.y;return{x:u,y:h,width:o.width,height:o.height}}function pn(t){return me(t).position==="static"}function jr(t,e){if(!Le(t)||me(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Pe(t)===n&&(n=n.ownerDocument.body),n}function Li(t,e){const n=te(t);if($t(t))return n;if(!Le(t)){let i=qe(t);for(;i&&!yt(i);){if(ge(i)&&!pn(i))return i;i=qe(i)}return n}let r=jr(t,e);for(;r&&Oa(r)&&pn(r);)r=jr(r,e);return r&&yt(r)&&pn(r)&&!Zn(r)?n:r||La(t)||n}const Ua=async function(t){const e=this.getOffsetParent||Li,n=this.getDimensions,r=await n(t.floating);return{reference:qa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ka(t){return me(t).direction==="rtl"}const Za={convertOffsetParentRelativeRectToViewportRelativeRect:Fa,getDocumentElement:Pe,getClippingRect:ja,getOffsetParent:Li,getElementRects:Ua,getClientRects:Ma,getDimensions:Va,getScale:tt,isElement:ge,isRTL:Ka};function Ii(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Xa(t,e,n){let r=null,i;const s=Pe(t);function o(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),o();const d=t.getBoundingClientRect(),{left:f,top:g,width:m,height:b}=d;if(u||e(),!m||!b)return;const y=Rt(g),x=Rt(s.clientWidth-(f+m)),v=Rt(s.clientHeight-(g+b)),P=Rt(f),k={rootMargin:-y+"px "+-x+"px "+-v+"px "+-P+"px",threshold:xe(0,Re(1,h))||1};let I=!0;function V(q){const N=q[0].intersectionRatio;if(!Ii(d,t.getBoundingClientRect()))return a();if(N!==h){if(!I)return a();N?a(!1,N):i=setTimeout(()=>{a(!1,1e-7)},1e3)}I=!1}try{r=new IntersectionObserver(V,{...k,root:s.ownerDocument})}catch{r=new IntersectionObserver(V,k)}r.observe(t)}const l=te(t),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),o()}}function Ga(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Gn(t),u=i||s?[...c?xt(c):[],...e?xt(e):[]]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n),s&&y.addEventListener("resize",n)});const h=c&&a?Xa(c,n,s):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&f&&e&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(e)})),n()}),c&&!l&&f.observe(c),e&&f.observe(e));let g,m=l?Ue(t):null;l&&b();function b(){const y=Ue(t);m&&!Ii(m,y)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h?.(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const Ya=Pa,Qa=Ta,Ja=ka,$a=Ea,el=Sa,tl=xa,nl=Ca,rl=(t,e,n)=>{const r=new Map,i=n??{},s={...Za,...i.platform,_c:r};return ya(t,e,{...i,platform:s})};function il(t){const e=t.whileElementsMounted,n=T(()=>Fe(t.open)??!0),r=T(()=>Fe(t.middleware)),i=T(()=>Fe(t.transform)??!0),s=T(()=>Fe(t.placement)??"bottom"),o=T(()=>Fe(t.strategy)??"absolute"),a=T(()=>Fe(t.sideOffset)??0),l=T(()=>Fe(t.alignOffset)??0),c=t.reference;let u=M(0),h=M(0);const d=ye(null);let f=M(It(p(o))),g=M(It(p(s))),m=M(It({})),b=M(!1),y=!1,x=0,v=!1;const P=T(()=>{const B=d.current?Ir(d.current,p(u)):p(u),U=d.current?Ir(d.current,p(h)):p(h);return p(i)?{position:p(f),left:"0",top:"0",transform:`translate(${B}px, ${U}px)`,...d.current&&Si(d.current)>=1.5&&{willChange:"transform"}}:{position:p(f),left:`${B}px`,top:`${U}px`}});let O;function k(){if(v||c.current===null||d.current===null)return;const B=c.current,U=d.current,K=++x;rl(B,U,{middleware:p(r),placement:p(s),strategy:p(o)}).then(H=>{if(K!==x||c.current!==B||d.current!==U)return;if(sl(B)){S(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const E=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(H.x<=E&&H.y<=E)return}S(u,H.x,!0),S(h,H.y,!0),S(f,H.strategy,!0),S(g,H.placement,!0),S(m,H.middlewareData,!0),S(b,!0)})}function I(){typeof O=="function"&&(O(),O=void 0),x++}function V(){if(I(),e===void 0){k();return}p(n)&&(c.current===null||d.current===null||(O=e(c.current,d.current,k)))}function q(){!p(n)&&d.current===null&&S(b,!1)}function N(){return[p(r),p(s),p(o),p(a),p(l),p(n)]}return le(()=>{e===void 0&&p(n)&&k()}),le(V),le(()=>{if(e!==void 0){if(N(),!p(n)){y=!1;return}if(!p(b)){y=!1;return}if(!y){y=!0;return}k()}}),le(q),le(()=>()=>{v=!0,I()}),{floating:d,reference:c,get strategy(){return p(f)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(b)},get floatingStyles(){return p(P)},get update(){return k}}}function sl(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const ol={top:"bottom",right:"left",bottom:"top",left:"right"},En=new kt("Floating.Content");class Kt{static create(e,n=!1){return n?En.set(new Kt(e,Vn.get())):En.set(new Kt(e,jn.get()))}opts;root;contentRef=ye(null);wrapperRef=ye(null);arrowRef=ye(null);contentAttachment=mt(this.contentRef);wrapperAttachment=mt(this.wrapperRef);arrowAttachment=mt(this.arrowRef);arrowId=ye(Hn());#e=T(()=>{if(typeof this.opts.style=="string")return qs(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new uo(()=>this.arrowRef.current??void 0);#r=T(()=>this.#n?.width??0);#i=T(()=>this.#n?.height??0);#o=T(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=T(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=T(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#s)}set hasExplicitBoundaries(e){S(this.#s,e)}#l=T(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(Us),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(e){S(this.#l,e)}#c=M(void 0);#h=M(void 0);#f=M(void 0);#g=M(void 0);#d=T(()=>[Ya({mainAxis:this.opts.sideOffset.current+p(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?nl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ja({...this.detectOverflowOptions}),$a({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=e.reference;S(this.#c,n,!0),S(this.#h,r,!0),S(this.#f,i,!0),S(this.#g,s,!0)}}),this.arrowRef.current&&tl({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),al({arrowWidth:p(this.#r),arrowHeight:p(this.#i)}),this.opts.hideWhenDetached.current&&el({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#d)}set middleware(e){S(this.#d,e)}floating;#u=T(()=>ll(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(e){S(this.#u,e)}#p=T(()=>cl(this.floating.placement));get placedAlign(){return p(this.#p)}set placedAlign(e){S(this.#p,e)}#m=T(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(e){S(this.#m,e)}#b=T(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#b)}set arrowY(e){S(this.#b,e)}#w=T(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#w)}set cannotCenterArrow(e){S(this.#w,e)}#v=M("auto");get contentZIndex(){return p(this.#v)}set contentZIndex(e){S(this.#v,e,!0)}#y=T(()=>ol[this.placedSide]);get arrowBaseSide(){return p(this.#y)}set arrowBaseSide(e){S(this.#y,e)}#x=T(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#h)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#x)}set wrapperProps(e){S(this.#x,e)}#k=T(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Ks({...p(this.#e)}),...this.contentAttachment}));get props(){return p(this.#k)}set props(e){S(this.#k,e)}#S=T(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#S)}set arrowStyle(e){S(this.#S,e)}constructor(e,n){this.opts=e,this.root=n,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ie(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=il({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Ga(...r,{animationFrame:this.#t?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),le(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ie([()=>this.contentRef.current,()=>this.opts.enabled.current],([r,i])=>{if(!r||!i)return;const s=fi(r),o=s.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=s.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{s.cancelAnimationFrame(o)}}),le(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Di{static create(e){return new Di(e,En.get())}opts;content;constructor(e,n){this.opts=e,this.content=n}#e=T(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#e)}set props(e){S(this.#e,e)}}function al(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=Yn(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=o?h:`${d}px`,m=`${-l}px`):c==="top"?(g=o?h:`${d}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=o?h:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=o?h:`${f}px`),{data:{x:g,y:m}}}}}function Yn(t){const[e,n="center"]=t.split("-");return[e,n]}function ll(t){return Yn(t)[0]}function cl(t){return Yn(t)[1]}function ul(t,e){G(e,!0);let n=w(e,"side",3,"bottom"),r=w(e,"sideOffset",3,0),i=w(e,"align",3,"center"),s=w(e,"alignOffset",3,0),o=w(e,"arrowPadding",3,0),a=w(e,"avoidCollisions",3,!0),l=w(e,"collisionBoundary",19,()=>[]),c=w(e,"collisionPadding",3,0),u=w(e,"hideWhenDetached",3,!1),h=w(e,"onPlaced",3,()=>{}),d=w(e,"sticky",3,"partial"),f=w(e,"updatePositionStrategy",3,"optimized"),g=w(e,"strategy",3,"fixed"),m=w(e,"dir",3,"ltr"),b=w(e,"style",19,()=>({})),y=w(e,"wrapperId",19,Hn),x=w(e,"customAnchor",3,null),v=w(e,"tooltip",3,!1);const P=Kt.create({side:C(()=>n()),sideOffset:C(()=>r()),align:C(()=>i()),alignOffset:C(()=>s()),id:C(()=>e.id),arrowPadding:C(()=>o()),avoidCollisions:C(()=>a()),collisionBoundary:C(()=>l()),collisionPadding:C(()=>c()),hideWhenDetached:C(()=>u()),onPlaced:C(()=>h()),sticky:C(()=>d()),updatePositionStrategy:C(()=>f()),strategy:C(()=>g()),dir:C(()=>m()),style:C(()=>b()),enabled:C(()=>e.enabled),wrapperId:C(()=>y()),customAnchor:C(()=>x())},ue(()=>v())),O=T(()=>bt(P.wrapperProps,{style:{pointerEvents:"auto"}}));var k=z(),I=F(k);$(I,()=>e.content??ne,()=>({props:P.props,wrapperProps:p(O)})),D(t,k),Y()}function hl(t,e){G(e,!0),Is(()=>{e.onPlaced?.()});var n=z(),r=F(n);$(r,()=>e.content??ne,()=>({props:{},wrapperProps:{}})),D(t,n),Y()}var fl=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dl(t,e){let n=w(e,"isStatic",3,!1),r=be(e,fl);var i=z(),s=F(i);{var o=l=>{hl(l,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=l=>{ul(l,Se({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>r))};ce(s,l=>{n()?l(o):l(a,-1)})}D(t,i)}var pl=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),gl=Ze("<!> <!>",1);function Fi(t,e){G(e,!0);let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=w(e,"tooltip",3,!1),l=w(e,"contentPointerEvents",3,"auto"),c=be(e,pl);const u=T(()=>e.preventScroll??!0),h=T(()=>e.strategy??(p(u)?"fixed":"absolute"));dl(t,{get isStatic(){return o()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return p(h)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(f,g)=>{let m=()=>(g?.()).props,b=()=>(g?.()).wrapperProps;var y=gl(),x=F(y);{var v=k=>{Lr(k,{get preventScroll(){return p(u)}})},P=k=>{Lr(k,{get preventScroll(){return p(u)}})};ce(x,k=>{e.forceMount&&e.enabled?k(v):e.forceMount||k(P,1)})}var O=fe(x,2);ta(O,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return r()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(I,V)=>{let q=()=>(V?.()).props;Mo(I,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(N,B)=>{Do(N,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return e.enabled},get ref(){return e.ref},children:(K,H)=>{let A=()=>(H?.()).props;ia(K,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(E,R)=>{var L=z(),W=F(L);{let Q=T(()=>({props:bt(c,m(),A(),q(),{id:e.id,style:{pointerEvents:l()}}),wrapperProps:b()}));$(W,()=>e.popper??ne,()=>p(Q))}D(E,L)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(f,y)},$$slots:{content:!0}}),Y()}var ml=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function bl(t,e){let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=be(e,ml);var l=z(),c=F(l);{var u=h=>{Fi(h,Se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};ce(c,h=>{e.shouldRender&&h(u)})}D(t,l)}var wl=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function vl(t,e){let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=be(e,wl);Fi(t,Se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}function gn(t,e){const[n,r]=t;let i=!1;const s=e.length;for(let o=0,a=s-1;o<s;a=o++){const[l,c]=e[o]??[0,0],[u,h]=e[a]??[0,0];c>=r!=h>=r&&n<=(u-l)*(r-c)/(h-c)+l&&(i=!i)}return i}function mn(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function Vr(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,i=e.left+e.width/2,s=e.top+e.height/2,o=i-n,a=s-r;return Math.abs(o)>Math.abs(a)?o>0?"right":"left":a>0?"bottom":"top"}class yl{#e;#t;#n;#r=null;#i=null;#o=[];#a=null;#s=null;#l=null;#c(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#c(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#r||!this.#i)&&(this.#u(),this.#e.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#n!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#i)&&(this.#u(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;const n=e.transitIntentTimeout;this.#n=typeof n=="number"&&n>0?n:null,ie([e.triggerNode,e.contentNode,e.enabled],([r,i,s])=>{if(!r||!i||!s){this.#a=null,this.#u();return}this.#a&&this.#a!==r&&this.#u(),this.#a=r;const o=hi(r),a=d=>{this.#d([d.clientX,d.clientY],r,i)},l=d=>{const f=d.relatedTarget;if(je(f)&&i.contains(f))return;const g=this.#e.ignoredTargets?.()??[];je(f)&&g.some(m=>m===f||m.contains(f))||(this.#o=je(f)&&g.length>0?g.filter(m=>f.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#i="content",this.#h())},c=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const f=d.relatedTarget;je(f)&&r.contains(f)||(this.#r=[d.clientX,d.clientY],this.#i="trigger",this.#h())};return[ee(o,"pointermove",a),ee(r,"pointerleave",l),ee(r,"pointerenter",c),ee(i,"pointerenter",u),ee(i,"pointerleave",h)].reduce((d,f)=>()=>{d(),f()},()=>{})})}#d(e,n,r){if(!this.#r||!this.#i)return;this.#c(),this.#g();const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(this.#i==="content"&&mn(e,s)){this.#u();return}if(this.#i==="trigger"&&mn(e,i)){this.#u();return}if(this.#i==="content"&&this.#o.length>0)for(const u of this.#o){const h=u.getBoundingClientRect();if(mn(e,h))return;const d=Vr(i,h),f=this.#p(i,h,d);if(f&&gn(e,f))return}const o=Vr(i,s),a=this.#p(i,s,o);if(a&&gn(e,a))return;const l=this.#i==="content"?s:i,c=this.#m(this.#r,l,o,this.#i);gn(e,c)||(this.#u(),this.#e.onPointerExit())}#u(){this.#r=null,this.#i=null,this.#o=[],this.#c(),this.#f()}#p(e,n,r){const i=this.#t;switch(r){case"top":return[[Math.min(e.left,n.left)-i,e.top],[Math.min(e.left,n.left)-i,n.bottom],[Math.max(e.right,n.right)+i,n.bottom],[Math.max(e.right,n.right)+i,e.top]];case"bottom":return[[Math.min(e.left,n.left)-i,e.bottom],[Math.min(e.left,n.left)-i,n.top],[Math.max(e.right,n.right)+i,n.top],[Math.max(e.right,n.right)+i,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-i],[n.right,Math.min(e.top,n.top)-i],[n.right,Math.max(e.bottom,n.bottom)+i],[e.left,Math.max(e.bottom,n.bottom)+i]];case"right":return[[e.right,Math.min(e.top,n.top)-i],[n.left,Math.min(e.top,n.top)-i],[n.left,Math.max(e.bottom,n.bottom)+i],[e.right,Math.max(e.bottom,n.bottom)+i]]}}#m(e,n,r,i){const s=this.#t*4,[o,a]=e;switch(i==="trigger"?this.#b(r):r){case"top":return[[o-s,a+s],[o+s,a+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[o-s,a-s],[o+s,a-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[o+s,a-s],[o+s,a+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[o-s,a-s],[o-s,a+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}}#b(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const On=Qs({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qn=new kt("Popover.Root");class Jn{static create(e){return Qn.set(new Jn(e))}opts;#e=M(null);get contentNode(){return p(this.#e)}set contentNode(e){S(this.#e,e,!0)}contentPresence;#t=M(null);get triggerNode(){return p(this.#t)}set triggerNode(e){S(this.#t,e,!0)}#n=M(null);get overlayNode(){return p(this.#n)}set overlayNode(e){S(this.#n,e,!0)}overlayPresence;#r=M(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(e){S(this.#r,e,!0)}#i=M(!1);get hasInteractedWithContent(){return p(this.#i)}set hasInteractedWithContent(e){S(this.#i,e,!0)}#o=M(!1);get hoverCooldown(){return p(this.#o)}set hoverCooldown(e){S(this.#o,e,!0)}#a=M(0);get closeDelay(){return p(this.#a)}set closeDelay(e){S(this.#a,e,!0)}#s=null;#l=null;constructor(e){this.opts=e,this.contentPresence=new Sr({ref:C(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Sr({ref:C(()=>this.overlayNode),open:this.opts.open}),ie(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(e){this.#l=e}#c(){this.#s!==null&&this.#l&&(this.#l.clearTimeout(this.#s),this.#s=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#s=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#s=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Mi{static create(e){return new Mi(e,Qn.get())}opts;root;attachment;domContext;#e=null;#t=null;#n=M(!1);constructor(e,n){this.opts=e,this.root=n,this.attachment=mt(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new Fn(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),ie(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}#r(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#o(){this.#r(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Mt(e)||(S(this.#n,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},n)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Mt(e)||(S(this.#n,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#o(),p(this.#n)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#n)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===Zs||e.key===Xs)&&(e.preventDefault(),this.#o(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#s=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Gs(this.root.opts.open.current),"data-state":li(this.root.opts.open.current),"aria-controls":this.#a(),[On.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#s)}set props(e){S(this.#s,e)}}class $n{static create(e){return new $n(e,Qn.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=mt(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new yl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const n=e.target;je(n)&&Jo(n)&&this.root.markInteraction()}onpointerenter(e){Mt(e)||this.root.cancelDelayedClose()}onpointerleave(e){Mt(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!je(e.target))return;const n=e.target.closest(On.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(je(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#e)}set snippetProps(e){S(this.#e,e)}#t=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":li(this.root.opts.open.current),...Ys(this.root.contentPresence.transitionStatus),[On.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#t)}set props(e){S(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var xl=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),qr=Ze("<div><div><!></div></div>");function kl(t,e){const n=Ds();G(e,!0);let r=w(e,"ref",15,null),i=w(e,"id",19,()=>Js(n)),s=w(e,"forceMount",3,!1),o=w(e,"onOpenAutoFocus",3,Z),a=w(e,"onCloseAutoFocus",3,Z),l=w(e,"onEscapeKeydown",3,Z),c=w(e,"onInteractOutside",3,Z),u=w(e,"trapFocus",3,!0),h=w(e,"preventScroll",3,!1),d=w(e,"customAnchor",3,null),f=be(e,xl);const g=$n.create({id:C(()=>i()),ref:C(()=>r(),k=>r(k)),onInteractOutside:C(()=>c()),onEscapeKeydown:C(()=>l()),customAnchor:C(()=>d())}),m=T(()=>bt(f,g.props)),b=T(()=>u()&&g.shouldTrapFocus);function y(k){g.shouldTrapFocus||k.preventDefault(),o()(k)}var x=z(),v=F(x);{var P=k=>{vl(k,Se(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return p(b)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:y,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(V,q)=>{let N=()=>(q?.()).props,B=()=>(q?.()).wrapperProps;const U=T(()=>bt(N(),{style:Dr("popover")},{style:e.style}));var K=z(),H=F(K);{var A=R=>{var L=z(),W=F(L);{let Q=T(()=>({props:p(U),wrapperProps:B(),...g.snippetProps}));$(W,()=>e.child,()=>p(Q))}D(R,L)},E=R=>{var L=qr();$e(L,()=>({...B()}));var W=Ee(L);$e(W,()=>({...p(U)}));var Q=Ee(W);$(Q,()=>e.children??ne),Oe(W),Oe(L),D(R,L)};ce(H,R=>{e.child?R(A):R(E,-1)})}D(V,K)},$$slots:{popper:!0}}))},O=k=>{bl(k,Se(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return p(b)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:y,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(V,q)=>{let N=()=>(q?.()).props,B=()=>(q?.()).wrapperProps;const U=T(()=>bt(N(),{style:Dr("popover")},{style:e.style}));var K=z(),H=F(K);{var A=R=>{var L=z(),W=F(L);{let Q=T(()=>({props:p(U),wrapperProps:B(),...g.snippetProps}));$(W,()=>e.child,()=>p(Q))}D(R,L)},E=R=>{var L=qr();$e(L,()=>({...B()}));var W=Ee(L);$e(W,()=>({...p(U)}));var Q=Ee(W);$(Q,()=>e.children??ne),Oe(W),Oe(L),D(R,L)};ce(H,R=>{e.child?R(A):R(E,-1)})}D(V,K)},$$slots:{popper:!0}}))};ce(v,k=>{s()?k(P):s()||k(O,1)})}D(t,x),Y()}function Sl(t,e){G(e,!0);let n=w(e,"open",15,!1),r=w(e,"onOpenChange",3,Z),i=w(e,"onOpenChangeComplete",3,Z);Jn.create({open:C(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:C(()=>i())}),la(t,{children:(s,o)=>{var a=z(),l=F(a);$(l,()=>e.children??ne),D(s,a)},$$slots:{default:!0}}),Y()}function Ju(t){let e=0,n=0;for(const r of t)e+=r.additions,n+=r.deletions;return{additions:e,deletions:n}}const Al=[/(^|\/)(package-lock\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb?|deno\.lock)$/,/(^|\/)(Cargo\.lock|Gemfile\.lock|composer\.lock|poetry\.lock|uv\.lock|Pipfile\.lock|go\.sum|flake\.lock|mix\.lock|pubspec\.lock|Podfile\.lock)$/,/(^|\/)(dist|build|out|coverage|node_modules|vendor|\.svelte-kit|\.next|\.nuxt|__generated__)\//,/\.min\.(js|css)$/,/\.(map|snap)$/,/(^|\/)__snapshots__\//,/[._-]generated\.[^/]+$/,/\.(pb|gen)\.[^/]+$/];function $u(t){return Al.some(e=>e.test(t))}function eh(t){return t.untracked?"?":t.kind==="added"?"A":t.kind==="deleted"?"D":t.kind==="renamed"?"R":"M"}function th(t,e){if(!e||!t.startsWith("/"))return t;const n=e.endsWith("/")?e:`${e}/`;return t.startsWith(n)?t.slice(n.length):t}const Pl=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;function nh(t,e={}){const n=[];let r=1,i=1,s=t.length>0;for(const o of t){const a=Pl.exec(o.header);let l=null,c=null;if(a){l=Number(a[1]),c=Number(a[3]);const u=Number(a[2]??1),h=Number(a[4]??1),d=u===0?l+1:l;d>r&&n.push({type:"gap",count:d-r,from:i,old:r}),r=d+u,i=(h===0?c+1:c)+h}else s=!1;n.push({type:"hunk",header:o.header});for(const u of o.lines){const h=u[0],d=u.slice(1);if(h==="+")n.push({type:"add",old:null,new:c,text:d}),c!==null&&c++;else if(h==="-")n.push({type:"del",old:l,new:null,text:d}),l!==null&&l++;else{if(h==="\\")continue;n.push({type:"context",old:l,new:c,text:d}),l!==null&&l++,c!==null&&c++}}}return e.tail&&s&&n.push({type:"gap",count:null,from:i,old:r}),n}function rh(t){const e=t.split("/").pop()??"";if(/^Dockerfile/.test(e))return"dockerfile";if(e==="Makefile")return"makefile";const n=e.includes(".")?e.split(".").pop().toLowerCase():"";return Tl[n]??null}const Tl={ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",svelte:"xml",vue:"xml",html:"xml",xml:"xml",svg:"xml",css:"css",scss:"scss",json:"json",jsonl:"json",md:"markdown",py:"python",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"ini",ini:"ini",rs:"rust",go:"go",sql:"sql",java:"java",kt:"kotlin",c:"c",h:"c",cpp:"cpp",hpp:"cpp",rb:"ruby",php:"php",swift:"swift",lua:"lua"};function ih(t,e,n,r){const i=new Map;for(const l of e)l.id&&i.set(l.id,l);const s=new Map;let o=null,a=null;for(const l of t)l.kind==="user"&&n.has(l.id)&&(o&&a&&s.set(a,o),o=i.get(l.id)??null),a=l.id;return o&&a&&!r&&s.set(a,o),s}var Cl=new Set(["$$slots","$$events","$$legacy","open"]);function El(t,e){G(e,!0);let n=w(e,"open",15,!1),r=be(e,Cl);var i=z(),s=F(i);vt(s,()=>Sl,(o,a)=>{a(o,Se(()=>r,{get open(){return n()},set open(l){n(l)}}))}),D(t,i),Y()}var Ol=new Set(["$$slots","$$events","$$legacy"]);function Rl(t,e){let n=be(e,Ol);var r=z(),i=F(r);vt(i,()=>To,(s,o)=>{o(s,Se(()=>n))}),D(t,r)}var _l=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);function Ll(t,e){G(e,!0);let n=w(e,"ref",15,null),r=w(e,"sideOffset",3,4),i=w(e,"align",3,"center"),s=be(e,_l);Rl(t,Se(()=>e.portalProps,{children:(o,a)=>{var l=z(),c=F(l);{let u=T(()=>In("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-(--z-floating) w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e.class));vt(c,()=>kl,(h,d)=>{d(h,Se({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return i()},get class(){return p(u)}},()=>s,{get ref(){return n()},set ref(f){n(f)}}))})}D(o,l)},$$slots:{default:!0}})),Y()}var Il=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Dl=Ze("<input/>");function sh(t,e){G(e,!0);let n=w(e,"ref",15,null),r=w(e,"value",15),i=w(e,"data-slot",3,"input"),s=be(e,Il);var o=Dl();$e(o,a=>({"data-slot":i(),class:a,...s}),[()=>In("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex h-10 w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-[3px]",e.class)],void 0,void 0,void 0,!0),ai(o,a=>n(a),()=>n()),ro(o,r),D(t,o),Y()}function oh(t){const e=t.split("/").pop()??"";if(/^Dockerfile/.test(e))return"docker";if(e==="Makefile")return"make";if(e.startsWith(".")&&!e.slice(1).includes("."))return Fl[e]??null;const n=e.includes(".")?e.split(".").pop().toLowerCase():"";return Ml[n]??null}const Fl={".gitignore":"shellscript",".env":"shellscript",".bashrc":"shellscript",".zshrc":"shellscript"},Ml={ts:"typescript",mts:"typescript",cts:"typescript",tsx:"tsx",js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"jsx",svelte:"svelte",html:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",json:"json",jsonl:"json",jsonc:"jsonc",md:"markdown",py:"python",sh:"shellscript",bash:"shellscript",zsh:"shellscript",yml:"yaml",yaml:"yaml",toml:"toml",rs:"rust",go:"go",sql:"sql",diff:"diff",patch:"diff"};function ah(t){return/\.(md|markdown)$/i.test(t)}function lh(t){return t.split("/").pop()??t}function ch(t){return t.split("/").slice(0,-1).join("/")}function uh(t){const e=t.split("/").slice(0,-1);return e.map((n,r)=>e.slice(0,r+1).join("/"))}function Nl(t,e){const n=t.toLowerCase().replace(/\s+/g,"");if(!n)return 0;const r=e.toLowerCase();let i=null;for(let s=r.indexOf(n[0]);s!==-1;s=r.indexOf(n[0],s+1)){const o=zl(n,r,e,s);if(o===null)break;(i===null||o>i)&&(i=o)}return i===null?null:i-e.length*.01}function zl(t,e,n,r){const i=n.lastIndexOf("/")+1;let s=0,o=r-1,a=0;for(const l of t){const c=e.indexOf(l,o+1);if(c===-1)return null;a=c===o+1?a+1:0,s+=1+a*2;const u=n[c-1];(c===0||u==="/"||u==="-"||u==="_"||u===".")&&(s+=3),c>=i&&(s+=2),o=c}return s}function hh(t,e,n=50){const r=[];for(const i of e){const s=Nl(t,i);s!==null&&r.push({path:i,score:s})}return r.sort((i,s)=>s.score-i.score).slice(0,n).map(i=>i.path)}const Bl=new Set(["Read","Edit","Write","MultiEdit","NotebookEdit"]);function Wl(t){const e=/^@@ -\d+(?:,\d+)? \+(\d+)/.exec(t.header);if(!e)return null;let n=Number(e[1]);for(const r of t.lines){if(r.startsWith("+"))return n;r.startsWith(" ")&&n++}return Number(e[1])}function fh(t){if(!Bl.has(t.name))return null;let e={};try{e=JSON.parse(t.input)}catch{const i=/"(?:file_path|notebook_path)":\s*"((?:[^"\\]|\\.)*)"/.exec(t.input);i&&(e={file_path:JSON.parse(`"${i[1]}"`)})}const n=t.patch?.file||(typeof e.file_path=="string"?e.file_path:null)||(typeof e.notebook_path=="string"?e.notebook_path:null);if(!n)return null;if(t.name==="Read"){const i=Number(e.offset);return{path:n,line:Number.isInteger(i)&&i>0?i:null}}const r=t.patch?.hunks[0];return{path:n,line:r?Wl(r):null}}function er(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xe=er();function Ni(t){Xe=t}var We={exec:()=>null};function Ne(t){let e=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=e[r];return i||(i=t(r),e[r]=i),i}}function _(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(X.caret,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,e)};return r}var Hl=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),X={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ne(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:</?(?:${At})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}>`))},jl=/^(?:[ \t]*(?:\n|$))+/,Vl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ql=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,St=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ul=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,zi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bi=_(zi).replace(/bull/g,tr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Kl=_(zi).replace(/bull/g,tr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),nr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Zl=/^[^\n]+/,rr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Xl=_(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gl=_(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,tr).getRegex(),At="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ir=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Yl=_("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ir).replace("tag",At).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wi=t=>_(nr).replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex(),Ql=Wi(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Jl=Wi(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),$l=_(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Jl).getRegex(),sr={blockquote:$l,code:Vl,def:Xl,fences:ql,heading:Ul,hr:St,html:Yl,lheading:Bi,list:Gl,newline:jl,paragraph:Ql,table:We,text:Zl},Ur=_("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex(),ec={...sr,lheading:Kl,table:Ur,paragraph:_(nr).replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ur).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex()},tc={...sr,html:_(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ir).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(nr).replace("hr",St).replace("heading",` *#{1,6} *[^
1
+ import{l as Je,m as vn,bs as fs,k as ds,q as gr,aA as lt,t as de,a8 as ps,bp as ln,bt as gs,v as mr,aC as ms,aJ as bs,bu as ws,bv as vs,bo as ys,br as xs,bw as ks,X as Ss,I as ue,a7 as si,bd as As,bx as Ps,aS as Ts,a2 as ct,D as oi,g as M,i as p,j as S,p as G,x as z,f as F,a as D,b as Y,z as T,c as Ze,by as br,ax as Cs,bz as ut,K as Es,w as le,ac as ne,bA as Os,O as Rs,R as _s,L as ee,bB as Ls,h as It,U as Is,s as fe,be as Ds,A as Ee,B as Oe,o as Et,d as Ge}from"./BeqCgGI7.js";import{s as Fs}from"./D8-_Y-M6.js";import"./DxJTiTth.js";import{B as Ms,p as w,i as ce,c as Se,r as be,b as ai}from"./Cjnj9mVX.js";import{a as wr,s as He,g as yn,b as xn,o as $e,f as Ns}from"./VDVYssW5.js";import{Y as zs,ai as Bs,aj as Yt,M as C,A as ie,N as $,C as kt,ak as Ws,al as kn,am as Hs,an as js,a8 as ye,I as vr,ao as yr,ap as Vs,z as mt,aq as qs,ar as Us,y as Ks,K as bt,a9 as je,as as Mt,E as Zs,D as Xs,R as li,G as Gs,Q as Ys,J as Qs,L as Js,P as In,at as $s,O as eo}from"./CKg7gbPm.js";import{c as vt}from"./BgY8YOrV.js";const to=Symbol("NaN");function no(t,e,n){Je&&vn();var r=new Ms(t),i=!fs();ds(()=>{var s=e();s!==s&&(s=to),i&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}function qu(t,e,n=!1,r=!1,i=!1,s=!1){var o=t,a="";if(n){var l=t;Je&&(o=gr(lt(l)))}de(()=>{var c=ps;if(a===(a=e()??"")){Je&&vn();return}if(n&&!Je){c.nodes=null,l.innerHTML=a,a!==""&&ln(lt(l),l.lastChild);return}if(c.nodes!==null&&(gs(c.nodes.start,c.nodes.end),c.nodes=null),a!==""){if(Je){mr.data;for(var u=vn(),h=u;u!==null&&(u.nodeType!==ms||u.data!=="");)h=u,u=bs(u);if(u===null)throw ws(),vs;ln(mr,h),o=gr(u);return}var d=r?xs:i?ks:void 0,f=ys(r?"svg":i?"math":"template",d);f.innerHTML=a;var g=r||i?f:f.content;if(ln(lt(g),g.lastChild),r||i)for(;lt(g);)o.before(lt(g));else o.before(g)}})}function Uu(t,e,n){Ss(()=>{var r=ue(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,s={};si(()=>{var o=n();As(o),i&&Ps(s,o)&&(s=o,r.update(o))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ro(t,e,n=e){var r=new WeakSet;Ts(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=cn(t)?un(s):s,n(s),ct!==null&&r.add(ct),await oi(),s!==(s=e())){var o=t.selectionStart,a=t.selectionEnd,l=t.value.length;if(t.value=s??"",a!==null){var c=t.value.length;o===a&&a===l&&c>l?(t.selectionStart=c,t.selectionEnd=c):(t.selectionStart=o,t.selectionEnd=Math.min(a,c))}}}),(Je&&t.defaultValue!==t.value||ue(e)==null&&t.value)&&(n(cn(t)?un(t.value):t.value),ct!==null&&r.add(ct)),si(()=>{var i=e();if(t===document.activeElement){var s=ct;if(r.has(s))return}cn(t)&&i===un(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function cn(t){var e=t.type;return e==="number"||e==="range"}function un(t){return t===""?null:+t}const io=()=>{const t=Fs;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},Ku={subscribe(t){return io().page.subscribe(t)}},Zu="(max-width: 768px)";class so{#e=M(!1);get open(){return p(this.#e)}set open(e){S(this.#e,e,!0)}toggle(){this.open=!this.open}close(){this.open=!1}}const Xu=new so;var oo=Ze("<iconify-icon></iconify-icon>",2),ao=Ze('<span role="img"></span>');function Gu(t,e){G(e,!0);let n=w(e,"size",3,"md"),r=w(e,"title",3,null);const i=T(()=>zs(e.state)),s=T(()=>({sm:{dot:7,icon:13},md:{dot:8,icon:15},lg:{dot:12,icon:18}})[n()]),o=T(()=>r()||p(i).label),a=T(()=>p(i).pulse?-(Date.now()%1600):0);var l=z(),c=F(l);{var u=d=>{var f=oo();wr(f,1,"state-icon svelte-hy3pce"),de(()=>He(f,"icon",p(i).icon)),He(f,"role","img"),de(()=>He(f,"aria-label",p(o))),de(()=>He(f,"title",r())),de(()=>yn(f,`color: ${p(i).color??""}; font-size: ${p(s).icon??""}px;`)),D(d,f)},h=d=>{var f=ao();let g;de(()=>{g=wr(f,1,"state-dot svelte-hy3pce",null,g,{"pulse-dot":p(i).pulse}),yn(f,`background: ${p(i).color??""}; width: ${p(s).dot??""}px; height: ${p(s).dot??""}px; animation-delay: ${p(a)??""}ms;`),xn(f,"aria-label",p(o)),xn(f,"title",r())}),D(d,f)};ce(c,d=>{p(i).icon?d(u):d(h,-1)})}D(t,l),Y()}const xr=6;function Yu(t,e){let n=e,r=null,i=!1,s=0,o=0;t.style.userSelect="none",t.style.setProperty("-webkit-user-select","none"),t.style.setProperty("-webkit-touch-callout","none"),t.style.touchAction||(t.style.touchAction="manipulation");function a(){r&&(clearTimeout(r),r=null)}function l(v,P){n.enabled&&!n.enabled()||(i=!1,s=v,o=P,a(),r=setTimeout(()=>{r=null,i=!0,n.onTrigger()},n.ms??500))}function c(){const v=i;a(),v&&n.onRelease?.()}function u(v,P){return Math.abs(v-s)>xr||Math.abs(P-o)>xr}function h(v){v.button===0&&l(v.clientX,v.clientY)}function d(v){r&&u(v.clientX,v.clientY)&&a()}function f(v){const P=v.touches[0];l(P?.clientX??0,P?.clientY??0)}function g(v){const P=v.touches[0];r&&P&&u(P.clientX,P.clientY)&&a()}function m(v){c(),i&&(v.preventDefault(),i=!1)}function b(v){i&&(v.preventDefault(),v.stopPropagation(),i=!1)}function y(){c(),i=!1}function x(v){if(i){v.preventDefault();return}a()}return t.addEventListener("mousedown",h),t.addEventListener("mousemove",d),t.addEventListener("touchstart",f,{passive:!0}),t.addEventListener("touchmove",g,{passive:!0}),t.addEventListener("touchend",m),t.addEventListener("touchcancel",y),t.addEventListener("mouseup",c),t.addEventListener("mouseleave",c),t.addEventListener("dragstart",x),t.addEventListener("click",b,{capture:!0}),{destroy(){a(),t.removeEventListener("mousedown",h),t.removeEventListener("mousemove",d),t.removeEventListener("touchstart",f),t.removeEventListener("touchmove",g),t.removeEventListener("touchend",m),t.removeEventListener("touchcancel",y),t.removeEventListener("mouseup",c),t.removeEventListener("mouseleave",c),t.removeEventListener("dragstart",x),t.removeEventListener("click",b,{capture:!0})},update(v){n=v}}}class lo extends Map{#e=new Map;#t=M(0);#n=M(0);#r=br||-1;constructor(e){if(super(),e){for(var[n,r]of e)super.set(n,r);this.#n.v=super.size}}#i(e){return br===this.#r?M(e):Cs(e)}has(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#i(0),n.set(e,r);else return p(this.#t),!1;return p(r),!0}forEach(e,n){this.#o(),super.forEach(e,n)}get(e){var n=this.#e,r=n.get(e);if(r===void 0)if(super.has(e))r=this.#i(0),n.set(e,r);else{p(this.#t);return}return p(r),super.get(e)}getOrInsert(e,n){return super.has(e)||this.set(e,n),this.get(e)}getOrInsertComputed(e,n){return super.has(e)||this.set(e,n(e)),this.get(e)}set(e,n){var r=this.#e,i=r.get(e),s=super.get(e),o=super.set(e,n),a=this.#t;if(i===void 0)i=this.#i(0),r.set(e,i),S(this.#n,super.size),ut(a);else if(s!==n){ut(i);var l=a.reactions===null?null:new Set(a.reactions),c=l===null||!i.reactions?.every(u=>l.has(u));c&&ut(a)}return o}delete(e){var n=this.#e,r=n.get(e),i=super.delete(e);return r!==void 0&&(n.delete(e),S(r,-1)),i&&(S(this.#n,super.size),ut(this.#t)),i}clear(){if(super.size!==0){super.clear();var e=this.#e;S(this.#n,0);for(var n of e.values())S(n,-1);ut(this.#t),e.clear()}}#o(){p(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var n of super.keys())if(!e.has(n)){var r=this.#i(0);e.set(n,r)}}for([,r]of this.#e)p(r)}keys(){return p(this.#t),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(this.#n),super.size}}function co(t){return typeof t=="function"}function kr(t){return co(t)?t():t}class uo{#e={width:0,height:0};#t=!1;#n;#r;#i;#o=T(()=>(p(this.#s)?.(),this.getSize().width));#a=T(()=>(p(this.#s)?.(),this.getSize().height));#s=T(()=>{const e=kr(this.#r);if(e)return Es(n=>{if(!this.#i)return;const r=new this.#i.ResizeObserver(i=>{this.#t=!0;for(const s of i){const o=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(o)?o:[o];this.#e.width=a.reduce((l,c)=>Math.max(l,c.inlineSize),0),this.#e.height=a.reduce((l,c)=>Math.max(l,c.blockSize),0)}n()});return r.observe(e),()=>{this.#t=!1,r.disconnect()}})});constructor(e,n={box:"border-box"}){this.#i=n.window??Bs,this.#n=n,this.#r=e,this.#e={width:0,height:0}}calculateSize(){const e=kr(this.#r);if(!e||!this.#i)return;const n=e.offsetWidth,r=e.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const i=this.#i.getComputedStyle(e),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),c=n-s-a,u=r-o-l;return{width:c,height:u}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return p(this.#s)?.(),this.getSize()}get width(){return p(this.#o)}get height(){return p(this.#a)}}function rt(t){le(()=>()=>{t()})}function Dn(t){oi().then(t)}const ho=1,fo=9,po=11;function Sn(t){return Yt(t)&&t.nodeType===ho&&typeof t.nodeName=="string"}function ci(t){return Yt(t)&&t.nodeType===fo}function go(t){return Yt(t)&&t.constructor?.name==="VisualViewport"}function mo(t){return Yt(t)&&t.nodeType!==void 0}function ui(t){return mo(t)&&t.nodeType===po&&"host"in t}function bo(t,e){if(!t||!e||!Sn(t)||!Sn(e))return!1;const n=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(n&&ui(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function hi(t){return ci(t)?t:go(t)?t.document:t?.ownerDocument??document}function fi(t){return ui(t)?fi(t.host):ci(t)?t.defaultView??window:Sn(t)?t.ownerDocument?.defaultView??window:window}function wt(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class Fn{element;#e=T(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return p(this.#e)}set root(e){S(this.#e,e)}constructor(e){typeof e=="function"?this.element=C(e):this.element=e}getDocument=()=>hi(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>wt(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,n)=>this.getWindow().setTimeout(e,n);clearTimeout=e=>this.getWindow().clearTimeout(e)}class wo{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,rt(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();const n=this.#r,r=()=>{n===this.#r&&this.#o(e)},i=()=>{if(n!==this.#r)return;const o=this.#e.ref.current;if(!o)return;if(typeof o.getAnimations!="function"){this.#o(e);return}const a=o.getAnimations();if(a.length===0){r();return}Promise.all(a.map(l=>l.finished)).then(()=>{r()}).catch(()=>{if(n!==this.#r)return;if(o.getAnimations().some(u=>u.pending||u.playState!=="finished")){i();return}r()})},s=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,i()})};if(!this.#e.afterTick.current){s();return}this.#t=window.requestAnimationFrame(()=>{this.#t=null;const o="data-starting-style",a=this.#e.ref.current;if(a){if(!a.hasAttribute(o)){s();return}this.#n=new MutationObserver(()=>{n===this.#r&&(a.hasAttribute(o)||(this.#n?.disconnect(),this.#n=null,s()))}),this.#n.observe(a,{attributes:!0,attributeFilter:[o]})}})}#o(e){const n=this.#r,r=()=>{n===this.#r&&e()};this.#e.afterTick.current?Dn(r):r()}}class Sr{#e;#t;#n;#r=M(!1);#i=M(void 0);#o=!1;#a=null;constructor(e){this.#e=e,S(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new wo({ref:this.#e.ref,afterTick:this.#e.open}),rt(()=>this.#s()),ie(()=>this.#e.open.current,n=>{if(!this.#o){this.#o=!0;return}if(this.#s(),!n&&this.#e.shouldSkipExitAnimation?.()){S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.();return}if(n&&S(this.#r,!0),S(this.#i,n?"starting":"ending",!0),n&&(this.#a=window.requestAnimationFrame(()=>{this.#a=null,this.#e.open.current&&S(this.#i,void 0)})),!this.#t){n||S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.();return}this.#n.run(()=>{n===this.#e.open.current&&(this.#e.open.current||S(this.#r,!1),S(this.#i,void 0),this.#e.onComplete?.())})})}get shouldRender(){return p(this.#r)}get transitionStatus(){return p(this.#i)}#s(){this.#a!==null&&(window.cancelAnimationFrame(this.#a),this.#a=null)}}function Z(){}function vo(t,e){var n=z(),r=F(n);no(r,()=>e.children,i=>{var s=z(),o=F(s);$(o,()=>e.children??ne),D(i,s)}),D(t,n)}const yo=new kt("BitsConfig");function xo(){const t=new ko(null,{});return yo.getOr(t).opts}class ko{opts;constructor(e,n){const r=So(e,n);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function So(t,e){return n=>C(()=>{const i=n(e)?.current;if(i!==void 0)return i;if(t!==null)return n(t.opts)?.current})}function Ao(t,e){return n=>{const r=xo();return C(()=>{const i=n();if(i!==void 0)return i;const s=t(r).current;return s!==void 0?s:e})}}const Po=Ao(t=>t.defaultPortalTo,"body");function To(t,e){G(e,!0);const n=Po(()=>e.to),r=Os();let i=T(s);function s(){if(!Ws||e.disabled)return null;let h=null;return typeof n.current=="string"?h=document.querySelector(n.current):h=n.current,h}let o;function a(){o&&(_s(o),o=null)}ie([()=>p(i),()=>e.disabled],([h,d])=>{if(!h||d){a();return}return o=Rs(vo,{target:h,props:{children:e.children},context:r}),()=>{a()}});var l=z(),c=F(l);{var u=h=>{var d=z(),f=F(d);$(f,()=>e.children??ne),D(h,d)};ce(c,h=>{e.disabled&&h(u)})}D(t,l),Y()}function Co(t,e=500){let n=null,r=null;const i=(...s)=>{i.destroy(),r=s,n=setTimeout(i.flush,e)};return i.flush=()=>{if(r===null)return;const s=r;i.destroy(),t(...s)},i.destroy=()=>{n!==null&&(clearTimeout(n),n=null),r=null},i}function di(t,e){return t===e||t.contains(e)}function pi(t){return t?.ownerDocument??document}function Qu(t){if(!t)return null;for(const e of t.childNodes)if(e.nodeType!==Node.COMMENT_NODE)return e;return null}function Eo(t,e){const{clientX:n,clientY:r}=t,i=e.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}const Oo="data-context-menu-trigger",Ro="data-context-menu-content";globalThis.bitsDismissableLayers??=new Map;class Mn{static create(e){return new Mn(e)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=null;#o=!1;#a=void 0;#s;#l=Z;#c=!1;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#s=e.onFocusOutside;let n=Z,r=null;const i=()=>{r=null,this.#v(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#l(),n()};ie([()=>this.opts.enabled.current,()=>this.opts.ref.current],([s,o])=>{const a=s?o:null;r!==a&&(i(),a&&(r=a,this.#a=pi(a),globalThis.bitsDismissableLayers.set(this,this.#t),n=this.#f()))}),rt(()=>{this.#c=!0,i()})}#h=e=>{e.defaultPrevented||this.#c||!this.opts.ref.current||Dn(()=>{this.#c||!this.opts.ref.current||this.#w(e.target)||e.target&&!this.#o&&this.#s.current?.(e)})};#f(){const e=this.#a,n=i=>{ue(()=>{this.#u.flush(),this.#p(i),this.#b(i)})},r=i=>{i.cancelBubble||i!==this.#i||(this.#m(i),i.pointerType==="touch"?(this.#u.destroy(),this.#d(i)):this.#u(i))};return e.addEventListener("pointerdown",n,!0),e.addEventListener("pointerdown",r),kn(()=>e.removeEventListener("pointerdown",n,!0),()=>e.removeEventListener("pointerdown",r),ee(e,"focusin",this.#h))}#g=e=>{let n=e;n.defaultPrevented&&(n=Ar(e)),this.#e.current(e)};#d=e=>{if(!this.opts.ref.current){this.#l();return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||Io(e,this.opts.ref.current);if(!this.#r||this.#y()||!n){this.#l();return}let r=e;if(r.defaultPrevented&&(r=Ar(r)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#l();return}if(e.pointerType==="touch"){this.#l();let i=null,s=Z;const o=a=>{s(),this.#g(a)};s=kn(ee(this.#a,"click",o,{once:!0}),ee(this.#a,"click",a=>{i=setTimeout(()=>o(a),0)},{once:!0,capture:!0}),()=>{i!==null&&clearTimeout(i),i=null}),this.#l=s}else this.#e.current(r)};#u=Co(this.#d,10);#p=e=>{this.#n[e.type]=!0};#m=e=>{this.#n[e.type]=!1};#b=e=>{this.#i=e,this.opts.ref.current&&(this.#r=Lo(this.opts.ref.current))};#w=e=>this.opts.ref.current?di(this.opts.ref.current,e):!1;#v=()=>{for(const e in this.#n)this.#n[e]=!1;this.#r=!1,this.#i=null};#y(){return Object.values(this.#n).some(Boolean)}#x=()=>{this.#o=!0};#k=()=>{this.#o=!1};props={onfocuscapture:this.#x,onblurcapture:this.#k}}function _o(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function Lo(t){const e=[...globalThis.bitsDismissableLayers],n=_o(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function Io(t,e){const n=t.target;if(!Hs(n))return!1;const r=!!n.closest(`[${Oo}]`),i=!!e.closest(`[${Ro}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&i?!0:r&&i?!1:pi(n).documentElement.contains(n)&&!di(e,n)&&Eo(t,e)}function Ar(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let i=!1;return new Proxy(r,{get:(o,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:a==="defaultPrevented"?i:a in o?o[a]:t[a]})}function Do(t,e){G(e,!0);let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"onInteractOutside",3,Z),i=w(e,"onFocusOutside",3,Z),s=w(e,"isValidEvent",3,()=>!1);const o=Mn.create({id:C(()=>e.id),interactOutsideBehavior:C(()=>n()),onInteractOutside:C(()=>r()),enabled:C(()=>e.enabled),onFocusOutside:C(()=>i()),isValidEvent:C(()=>s()),ref:ue(()=>e.ref)});var a=z(),l=F(a);$(l,()=>e.children??ne,()=>({props:o.props})),D(t,a),Y()}globalThis.bitsEscapeLayers??=new Map;class Nn{static create(e){return new Nn(e)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Fn(this.opts.ref);let n=Z;ie(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=this.#e()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>ee(this.domContext.getDocument(),"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==js||!Fo(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Fo(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function Mo(t,e){G(e,!0);let n=w(e,"escapeKeydownBehavior",3,"close"),r=w(e,"onEscapeKeydown",3,Z);Nn.create({escapeKeydownBehavior:C(()=>n()),onEscapeKeydown:C(()=>r()),enabled:C(()=>e.enabled),ref:ue(()=>e.ref)});var i=z(),s=F(i);$(s,()=>e.children??ne),D(t,i),Y()}class zn{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new zn),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=wt(document);r&&r!==document.body&&this.#n.set(e,r),this.#e.current=this.#e.current.filter(i=>i!==e),this.#e.current.unshift(e),e.resume()}unregister(e){this.#e.current=this.#e.current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,n){this.#t.set(e,n)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){this.#n.set(e,n)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}}var gi=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Nt=gi.join(","),mi=typeof Element>"u",Ve=mi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zt=!mi&&Element.prototype.getRootNode?function(t){return t==null||t.getRootNode==null?void 0:t.getRootNode()}:function(t){return t?.ownerDocument},Bt=function(e,n){n===void 0&&(n=!0);var r=e==null||e.getAttribute==null?void 0:e.getAttribute("inert"),i=r===""||r==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Bt(e.parentNode));return s},No=function(e){var n,r=e==null||e.getAttribute==null||(n=e.getAttribute("contenteditable"))==null?void 0:n.toLowerCase();return r===""||r==="true"||r==="plaintext-only"},bi=function(e,n,r){if(Bt(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Nt));return n&&Ve.call(e,Nt)&&i.unshift(e),i=i.filter(r),i},Wt=function(e,n,r){for(var i=[],s=Array.from(e);s.length;){var o=s.shift();if(!Bt(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),l=a.length?a:o.children,c=Wt(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:o,candidates:c})}else{var u=Ve.call(o,Nt);u&&r.filter(o)&&(n||!e.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!Bt(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&d){var f=Wt(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else s.unshift.apply(s,o.children)}}return i},wi=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},vi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||No(e))&&!wi(e)?0:e.tabIndex},zo=function(e,n){var r=vi(e);return r<0&&n&&!wi(e)?0:r},Bo=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},yi=function(e){return e.tagName==="INPUT"},Wo=function(e){return yi(e)&&e.type==="hidden"},Ho=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},jo=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Vo=function(e){if(!e.name)return!0;var n=e.form||zt(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=jo(i,e.form);return!s||s===e},qo=function(e){return yi(e)&&e.type==="radio"},Uo=function(e){return qo(e)&&!Vo(e)},Ko=function(e){var n,r=e&&zt(e),i=(n=r)==null?void 0:n.host,s=!1;if(r&&r!==e){var o,a;for(s=!!((o=i)!=null&&(o=o.ownerDocument)!=null&&o.contains(i)||e!=null&&(a=e.ownerDocument)!=null&&a.contains(e));!s&&i;){var l,c;r=zt(i),i=(l=r)==null?void 0:l.host,s=!!((c=i)!=null&&(c=c.ownerDocument)!=null&&c.contains(i))}}return s},Pr=function(e){var n=e.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Zo=function(e,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var o=getComputedStyle(e),a=o.visibility;if(a==="hidden"||a==="collapse")return!0;var l=Ve.call(e,"details>summary:first-of-type"),c=l?e.parentElement:e;if(Ve.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var u=e;e;){var h=e.parentElement,d=zt(e);if(h&&!h.shadowRoot&&i(h)===!0)return Pr(e);e.assignedSlot?e=e.assignedSlot:!h&&d!==e.ownerDocument?e=d.host:e=h}e=u}if(Ko(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pr(e);return!1},Xo=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ve.call(n,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}n=n.parentElement}return!1},Ht=function(e,n){return!(n.disabled||Wo(n)||Zo(n,e)||Ho(n)||Xo(n))},An=function(e,n){return!(Uo(n)||vi(n)<0||!Ht(e,n))},Go=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},xi=function(e){var n=[],r=[];return e.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,l=zo(a,o),c=o?xi(i.candidates):a;l===0?o?n.push.apply(n,c):n.push(a):r.push({documentOrder:s,tabIndex:l,item:i,isScope:o,content:c})}),r.sort(Bo).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Yo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Wt([e],n.includeContainer,{filter:An.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Go}):r=bi(e,n.includeContainer,An.bind(null,n)),xi(r)},Qo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Wt([e],n.includeContainer,{filter:Ht.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=bi(e,n.includeContainer,Ht.bind(null,n)),r},Jo=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ve.call(e,Nt)===!1?!1:An(n,e)},$o=gi.concat("iframe:not([inert]):not([inert] *)").join(","),ea=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return Ve.call(e,$o)===!1?!1:Ht(n,e)};function Tr(t,e){const n=e.getRootNode();for(;t;){const r=t.getRootNode();if(r===n)return t;t=r!==t&&"host"in r?r.host:null}return null}class Bn{#e=!1;#t=null;#n=zn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#o(){for(const e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#l(),this.#a()}unmount(){this.#t&&(this.#o(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#t=null)}#a(){if(!this.#t)return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t||this.#e||!this.#n.isActiveScope(this)||this.#t.contains(Tr(wt(this.#t.ownerDocument),this.#t)))return;const n=this.#h();n?(n.focus({preventScroll:!0}),this.#n.setFocusMemory(this,n)):this.#t.focus({preventScroll:!0})})}#s(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&n.isConnected)try{n.focus({preventScroll:!0})}catch{document.body.focus()}}}#l(){if(!this.#t||!this.#i.trap.current)return;const e=this.#t,n=e.ownerDocument,r=o=>{if(this.#e||!this.#n.isActiveScope(this))return;const a=Tr(o.composedPath()[0],e);if(a!==null&&e.contains(a))this.#n.setFocusMemory(this,a);else{const c=this.#n.getFocusMemory(this);if(c&&e.contains(c)&&ea(c))o.preventDefault(),c.focus({preventScroll:!0});else{const u=this.#h(),h=this.#f()[0];(u||h||e).focus({preventScroll:!0})}}},i=o=>{if(!this.#i.loop||this.#e||o.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#c();if(a.length===0)return;const l=a[0],c=a[a.length-1];!o.shiftKey&&wt(n)===c?(o.preventDefault(),l.focus()):o.shiftKey&&wt(n)===l&&(o.preventDefault(),c.focus())};this.#r.push(ee(n,"focusin",r,{capture:!0}),ee(e,"keydown",i));const s=new MutationObserver(()=>{const o=this.#n.getFocusMemory(this);if(o&&!e.contains(o)){const a=this.#h(),l=this.#f()[0],c=a||l;c?(c.focus({preventScroll:!0}),this.#n.setFocusMemory(this,c)):e.focus({preventScroll:!0})}});s.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#c(){return this.#t?Yo(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#h(){return this.#c()[0]||null}#f(){return this.#t?Qo(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(e){let n=null;return ie([()=>e.ref.current,()=>e.enabled.current],([r,i])=>{r&&i?(n||(n=new Bn(e)),n.mount(r)):n&&(n.unmount(),n=null)}),rt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function ta(t,e){G(e,!0);let n=w(e,"enabled",3,!1),r=w(e,"trapFocus",3,!1),i=w(e,"loop",3,!1),s=w(e,"onCloseAutoFocus",3,Z),o=w(e,"onOpenAutoFocus",3,Z);const a=Bn.use({enabled:C(()=>n()),trap:C(()=>r()),loop:ue(()=>i()),onCloseAutoFocus:C(()=>s()),onOpenAutoFocus:C(()=>o()),ref:ue(()=>e.ref)});var l=z(),c=F(l);$(c,()=>e.focusScope??ne,()=>({props:a.props})),D(t,l),Y()}const Cr=()=>{};globalThis.bitsTextSelectionLayers??=new Map;class Wn{static create(e){return new Wn(e)}opts;domContext;#e=Z;#t=!1;#n=Cr;#r=Cr;constructor(e){this.opts=e,this.domContext=new Fn(e.ref);let n=Z;ie(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,i,s])=>(this.#t=r,this.#n=i,this.#r=s,r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#i()),()=>{this.#t=!1,n(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return kn(ee(this.domContext.getDocument(),"pointerdown",this.#a),ee(this.domContext.getDocument(),"pointerup",this.#o))}#o=e=>{this.#s(),!e.defaultPrevented&&this.#r(e)};#a=e=>{if(!this.#t)return;this.#s();const n=this.opts.ref.current,r=e.target;!vr(n)||!vr(r)||!ra(this)||!bo(n,r)||(this.#n(e),!e.defaultPrevented&&(this.#e=na(n,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=Z}}const Er=t=>t.style.userSelect||t.style.webkitUserSelect;function na(t,e){const n=Er(e),r=Er(t);return Ot(e,"none"),Ot(t,"text"),()=>{Ot(e,n),Ot(t,r)}}function Ot(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function ra(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function ia(t,e){G(e,!0);let n=w(e,"preventOverflowTextSelection",3,!0),r=w(e,"onPointerDown",3,Z),i=w(e,"onPointerUp",3,Z);Wn.create({id:C(()=>e.id),onPointerDown:C(()=>r()),onPointerUp:C(()=>i()),enabled:C(()=>e.enabled&&n()),ref:ue(()=>e.ref)});var s=z(),o=F(s);$(o,()=>e.children??ne),D(t,s),Y()}globalThis.bitsIdCounter??={current:0};function Hn(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}class sa{#e;#t=0;#n=M();#r;constructor(e){this.#e=e}#i(){this.#t-=1,this.#r&&this.#t<=0&&(this.#r(),S(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,p(this.#n)===void 0&&(this.#r=Ls(()=>{S(this.#n,this.#e(...e),!0)})),le(()=>()=>{this.#i()}),p(this.#n)}}const Dt=new lo,Or=["padding-right","margin-right","overflow","overflow-x","overflow-y","pointer-events","--scrollbar-width"];let ht=null,Rr=!1;const et=new Set;let hn=null,ft=null,dt=!1;function Ye(t,e,n){t.setProperty(e,n),et.add(e),e==="overflow"&&(et.add("overflow-x"),et.add("overflow-y"))}const _r=C(()=>{for(const t of Dt.values())if(t)return!0;return!1});let fn=null;const oa=new sa(()=>{function t(o,a){const l=ht?.get(a);l?.value?o.body.style.setProperty(a,l.value,l.priority):o.body.style.removeProperty(a)}function e(o){for(const a of Or)et.has(a)&&t(o,a);!Rr&&o.body.style.length===0&&o.body.removeAttribute("style"),ht=null,et.clear(),yr&&hn?.()}function n(o){et.delete("pointer-events")&&t(o,"pointer-events")}function r(){ft!==null&&(window.clearTimeout(ft),ft=null)}function i(o,a){r(),dt=!0,fn=Date.now();const l=fn,c=()=>{ft=null,fn===l&&(ki(Dt)?dt=!1:(dt=!1,a()))},u=o===null?24:o;ft=window.setTimeout(c,u)}function s(){if(ht===null&&Dt.size===0&&!dt){Rr=document.body.hasAttribute("style"),ht=new Map;for(const o of Or)ht.set(o,{value:document.body.style.getPropertyValue(o),priority:document.body.style.getPropertyPriority(o)})}}return ie(()=>_r.current,()=>{if(!_r.current)return;s(),dt=!1;const o=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),l=o.scrollbarGutter?.includes("stable")||a.scrollbarGutter?.includes("stable"),c=window.innerWidth-document.documentElement.clientWidth,h={padding:Number.parseInt(a.paddingRight??"0",10)+c,margin:Number.parseInt(a.marginRight??"0",10)};c>0&&!l&&(Ye(document.body.style,"padding-right",`${h.padding}px`),Ye(document.body.style,"margin-right",`${h.margin}px`),Ye(document.body.style,"--scrollbar-width",`${c}px`)),Ye(document.body.style,"overflow","hidden"),yr&&(hn=ee(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),Dn(()=>{Ye(document.body.style,"pointer-events","none"),Ye(document.body.style,"overflow","hidden")})}),rt(()=>()=>{hn?.()}),{get lockMap(){return Dt},resetBodyStyle:e,restorePointerEvents:n,scheduleCleanupIfNoNewLocks:i,cancelPendingCleanup:r,ensureInitialStyleCaptured:s}});class aa{#e=Hn();#t;#n=()=>null;#r;locked;constructor(e,n=()=>null){this.#t=e,this.#n=n,this.#r=oa.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=C(()=>this.#r.lockMap.get(this.#e)??!1,r=>this.#r.lockMap.set(this.#e,r)),rt(()=>{if(this.#r.lockMap.delete(this.#e),ki(this.#r.lockMap))return;const r=this.#n(),i=document;this.#r.restorePointerEvents(i),this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle(i)})}))}}function ki(t){for(const[e,n]of t)if(n)return!0;return!1}function Lr(t,e){G(e,!0);let n=w(e,"preventScroll",3,!0),r=w(e,"restoreScrollDelay",3,null);ue(()=>{n()&&new aa(n(),()=>r())}),Y()}const jn=new kt("Floating.Root"),Vn=new kt("Floating.Root");class jt{static create(e=!1){return e?Vn.set(new jt):jn.set(new jt)}anchorNode=ye(null);customAnchorNode=ye(null);triggerNode=ye(null);constructor(){le(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Pn{static create(e,n=!1){return n?new Pn(e,Vn.get()):new Pn(e,jn.get())}opts;root;constructor(e,n){this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=Vs(e.virtualEl.current):n.triggerNode=e.ref}}function la(t,e){G(e,!0);let n=w(e,"tooltip",3,!1);jt.create(ue(()=>n()));var r=z(),i=F(r);$(i,()=>e.children??ne),D(t,r),Y()}function Fe(t){return typeof t=="function"?t():t}function Si(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ir(t,e){const n=Si(t);return Math.round(e*n)/n}function Dr(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}const ca=["top","right","bottom","left"],Re=Math.min,xe=Math.max,Vt=Math.round,Rt=Math.floor,ke=t=>({x:t,y:t}),ua={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(t,e,n){return xe(t,Re(e,n))}function Ae(t,e){return typeof t=="function"?t(e):t}function _e(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function qn(t){return t==="x"?"y":"x"}function Un(t){return t==="y"?"height":"width"}function pe(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Kn(t){return qn(pe(t))}function ha(t,e,n){n===void 0&&(n=!1);const r=it(t),i=Kn(t),s=Un(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=qt(o)),[o,qt(o)]}function fa(t){const e=qt(t);return[Tn(t),e,Tn(e)]}function Tn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Fr=["left","right"],Mr=["right","left"],da=["top","bottom"],pa=["bottom","top"];function ga(t,e,n){switch(t){case"top":case"bottom":return n?e?Mr:Fr:e?Fr:Mr;case"left":case"right":return e?da:pa;default:return[]}}function ma(t,e,n,r){const i=it(t);let s=ga(_e(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Tn)))),s}function qt(t){const e=_e(t);return ua[e]+t.slice(e.length)}function ba(t){var e,n,r,i;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(i=t.left)!=null?i:0}}function Pi(t){return typeof t!="number"?ba(t):{top:t,right:t,bottom:t,left:t}}function Ut(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Nr(t,e,n){let{reference:r,floating:i}=t;const s=pe(e),o=Kn(e),a=Un(o),l=_e(e),c=s==="y",u=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}const g=it(e);return g&&(f[o]+=d*(g==="end"?1:-1)*(n&&c?-1:1)),f}async function wa(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Ae(e,t),g=Pi(f),b=a[d?h==="floating"?"reference":"floating":h],y=Ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},O=Ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(y.top-O.top+g.top)/P.y,bottom:(O.bottom-y.bottom+g.bottom)/P.y,left:(y.left-O.left+g.left)/P.x,right:(O.right-y.right+g.right)/P.x}}const va=50,ya=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:wa},l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:h}=Nr(c,r,l),d=r,f=0;const g={};for(let m=0;m<s.length;m++){const b=s[m];if(!b)continue;const{name:y,fn:x}=b,{x:v,y:P,data:O,reset:k}=await x({x:u,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:g,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,h=P??h,g[y]={...g[y],...O},k&&f<va&&(f++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(c=k.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:h}=Nr(c,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:g}},xa=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=Ae(t,e)||{};if(c==null)return{};const h=Pi(u),d={x:n,y:r},f=Kn(i),g=Un(f),m=await o.getDimensions(c),b=f==="y",y=b?"top":"left",x=b?"bottom":"right",v=b?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[f]-d[f]-s.floating[g],O=d[f]-s.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let I=k?k[v]:0;(!I||!await(o.isElement==null?void 0:o.isElement(k)))&&(I=a.floating[v]||s.floating[g]);const V=P/2-O/2,q=I/2-m[g]/2-1,N=Re(h[y],q),B=Re(h[x],q),U=I-m[g]-B,K=I/2-m[g]/2+V,H=Ai(N,K,U),A=!l.arrow&&it(i)!=null&&K!==H&&s.reference[g]/2-(K<N?N:B)-m[g]/2<0,E=A?K<N?K-N:K-U:0;return{[f]:d[f]+E,data:{[f]:H,centerOffset:K-H-E,...A&&{alignmentOffset:E}},reset:A}}}),ka=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Ae(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=_e(i),x=pe(a),v=_e(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=d||(v||!m?[qt(a)]:fa(a)),k=g!=="none";!d&&k&&O.push(...ma(a,m,g,P));const I=[a,...O],V=await l.detectOverflow(e,b),q=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&q.push(V[y]),h){const H=ha(i,o,P);q.push(V[H[0]],V[H[1]])}if(N=[...N,{placement:i,overflows:q}],!q.every(H=>H<=0)){var B,U;const H=(((B=s.flip)==null?void 0:B.index)||0)+1,A=I[H];if(A&&(!(h==="alignment"?x!==pe(A):!1)||N.every(L=>pe(L.placement)===x?L.overflows[0]>0:!0)))return{data:{index:H,overflows:N},reset:{placement:A}};let E=(U=N.filter(R=>R.overflows[0]<=0).sort((R,L)=>R.overflows[1]-L.overflows[1])[0])==null?void 0:U.placement;if(!E)switch(f){case"bestFit":{var K;const R=(K=N.filter(L=>{if(k){const W=pe(L.placement);return W===x||W==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(W=>W>0).reduce((W,Q)=>W+Q,0)]).sort((L,W)=>L[1]-W[1])[0])==null?void 0:K[0];R&&(E=R);break}case"initialPlacement":E=a;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function zr(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Br(t){return ca.some(e=>t[e]>=0)}const Sa=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...s}=Ae(t,e);switch(i){case"referenceHidden":{const o=await r.detectOverflow(e,{...s,elementContext:"reference"}),a=zr(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Br(a)}}}case"escaped":{const o=await r.detectOverflow(e,{...s,altBoundary:!0}),a=zr(o,n.floating);return{data:{escapedOffsets:a,escaped:Br(a)}}}default:return{}}}}},Ti=new Set(["left","top"]);async function Aa(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_e(n),a=it(n),l=pe(n)==="y",c=Ti.has(o)?-1:1,u=s&&l?-1:1,h=Ae(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),l?{x:f*u,y:d*c}:{x:d*c,y:f*u}}const Pa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await Aa(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Ta=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:v,y:P}=x;return{x:v,y:P}}},...c}=Ae(t,e),u={x:n,y:r},h=await s.detectOverflow(e,c),d=pe(i),f=qn(d);let g=u[f],m=u[d];const b=(x,v)=>Ai(v+h[x==="y"?"top":"left"],v,v-h[x==="y"?"bottom":"right"]);o&&(g=b(f,g)),a&&(m=b(d,m));const y=l.fn({...e,[f]:g,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:o,[d]:a}}}}}},Ca=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;const{x:i,y:s,placement:o,rects:a,middlewareData:l}=e,{offset:c=0,mainAxis:u=!0,crossAxis:h=!0}=Ae(t,e),d={x:i,y:s},f=pe(o),g=qn(f);let m=d[g],b=d[f];const y=Ae(c,e),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(r=y.crossAxis)!=null?r:0};if(u){const O=g==="y"?"height":"width",k=a.reference[g]-a.floating[O]+x.mainAxis,I=a.reference[g]+a.reference[O]-x.mainAxis;m<k?m=k:m>I&&(m=I)}if(h){var v,P;const O=g==="y"?"width":"height",k=Ti.has(_e(o)),I=a.reference[f]-a.floating[O]+(k&&((v=l.offset)==null?void 0:v[f])||0)+(k?0:x.crossAxis),V=a.reference[f]+a.reference[O]+(k?0:((P=l.offset)==null?void 0:P[f])||0)-(k?x.crossAxis:0);b<I?b=I:b>V&&(b=V)}return{[g]:m,[f]:b}}}},Ea=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:i,elements:s}=e,{apply:o=()=>{},...a}=Ae(t,e),l=await i.detectOverflow(e,a),c=_e(n),u=it(n),h=pe(n)==="y",{width:d,height:f}=r.floating;let g,m;c==="top"||c==="bottom"?(g=c,m=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,g=u==="end"?"top":"bottom");const b=f-l.top-l.bottom,y=d-l.left-l.right,x=Re(f-l[g],b),v=Re(d-l[m],y),P=e.middlewareData.shift,O=!P;let k=x,I=v;P!=null&&P.enabled.x&&(I=y),P!=null&&P.enabled.y&&(k=b),O&&!u&&(h?I=d-2*xe(l.left,l.right):k=f-2*xe(l.top,l.bottom)),await o({...e,availableWidth:I,availableHeight:k});const V=await i.getDimensions(s.floating);return d!==V.width||f!==V.height?{reset:{rects:!0}}:{}}}};function Qt(){return typeof window<"u"}function st(t){return Ci(t)?(t.nodeName||"").toLowerCase():"#document"}function te(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pe(t){var e;return(e=(Ci(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ci(t){return Qt()?t instanceof Node||t instanceof te(t).Node:!1}function ge(t){return Qt()?t instanceof Element||t instanceof te(t).Element:!1}function Le(t){return Qt()?t instanceof HTMLElement||t instanceof te(t).HTMLElement:!1}function Wr(t){return!Qt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof te(t).ShadowRoot}function Jt(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=me(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function Oa(t){return/^(table|td|th)$/.test(st(t))}function $t(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Ra=/transform|translate|scale|rotate|perspective|filter/,_a=/paint|layout|strict|content/,Me=t=>!!t&&t!=="none";let dn;function Zn(t){const e=ge(t)?me(t):t;return Me(e.transform)||Me(e.translate)||Me(e.scale)||Me(e.rotate)||Me(e.perspective)||!Xn()&&(Me(e.backdropFilter)||Me(e.filter))||Ra.test(e.willChange||"")||_a.test(e.contain||"")}function La(t){let e=qe(t);for(;Le(e)&&!yt(e);){if(Zn(e))return e;if($t(e))return null;e=qe(e)}return null}function Xn(){return dn==null&&(dn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dn}function yt(t){return/^(html|body|#document)$/.test(st(t))}function me(t){return te(t).getComputedStyle(t)}function en(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function qe(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wr(t)&&t.host||Pe(t);return Wr(e)?e.host:e}function Ei(t){const e=qe(t);return yt(e)?(t.ownerDocument||t).body:Le(e)&&Jt(e)?e:Ei(e)}function xt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ei(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=te(i);if(s){const a=Cn(o);return e.concat(o,o.visualViewport||[],Jt(i)?i:[],a&&n?xt(a):[])}else return e.concat(i,xt(i,[],n))}function Cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Oi(t){const e=me(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Le(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=Vt(n)!==s||Vt(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Gn(t){return ge(t)?t:t.contextElement}function tt(t){const e=Gn(t);if(!Le(e))return ke(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Oi(e);let o=(s?Vt(n.width):n.width)/r,a=(s?Vt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Ia=ke(0);function Ri(t){const e=te(t);return!Xn()||!e.visualViewport?Ia:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Da(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===te(t)}function Ue(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Gn(t);let o=ke(1);e&&(r?ge(r)&&(o=tt(r)):o=tt(t));const a=Da(s,n,r)?Ri(s):ke(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,h=i.height/o.y;if(s&&r){const d=te(s),f=ge(r)?te(r):r;let g=d,m=Cn(g);for(;m&&f!==g;){const b=tt(m),y=m.getBoundingClientRect(),x=me(m),v=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,P=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,h*=b.y,l+=v,c+=P,g=te(m),m=Cn(g)}}return Ut({width:u,height:h,x:l,y:c})}function tn(t,e){const n=en(t).scrollLeft;return e?e.left+n:Ue(Pe(t)).left+n}function _i(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tn(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Fa(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=Pe(r),a=e?$t(e.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ke(1);const u=ke(0),h=Le(r);if((h||!s)&&((st(r)!=="body"||Jt(o))&&(l=en(r)),h)){const f=Ue(r);c=tt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const d=o&&!h&&!s?_i(o,l):ke(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function Ma(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Na(t){const e=en(t),n=t.ownerDocument.body,r=xe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+tn(t);const o=-e.scrollTop;return me(n).direction==="rtl"&&(s+=xe(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:o}}const za=25;function Ba(t,e,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",i=te(t),s=Pe(t),o=i.visualViewport;let a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){const d=!Xn()||e==="fixed";r?d||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,d&&(c=o.offsetLeft,u=o.offsetTop))}if(tn(s)<=0){const d=s.ownerDocument,f=d.body,g=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(s.clientWidth-f.clientWidth-m),y=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;y<=za&&(a-=y)}return{width:a,height:l,x:c,y:u}}function Wa(t,e){const n=Ue(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=tt(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function Hr(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=Ba(t,n,e);else if(e==="document")r=Na(Pe(t));else if(ge(e))r=Wa(e,n);else{const i=Ri(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ut(r)}function Ha(t,e){const n=e.get(t);if(n)return n;let r=xt(t,[],!1).filter(a=>ge(a)&&st(a)!=="body"),i=null;const s=me(t).position==="fixed";let o=s?qe(t):t;for(;ge(o)&&!yt(o);){const a=me(o),l=Zn(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(h=>h!==o):i=a,o=qe(o)}return e.set(t,r),r}function ja(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?$t(e)?[]:Ha(e,this._c):[].concat(n),r],a=Hr(e,o[0],i);let l=a.top,c=a.right,u=a.bottom,h=a.left;for(let d=1;d<o.length;d++){const f=Hr(e,o[d],i);l=xe(f.top,l),c=Re(f.right,c),u=Re(f.bottom,u),h=xe(f.left,h)}return{width:c-h,height:u-l,x:h,y:l}}function Va(t){const{width:e,height:n}=Oi(t);return{width:e,height:n}}function qa(t,e,n){const r=Le(e),i=Pe(e),s=n==="fixed",o=Ue(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=ke(0);if((r||!s)&&((st(e)!=="body"||Jt(i))&&(a=en(e)),r)){const d=Ue(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}!r&&i&&(l.x=tn(i));const c=i&&!r&&!s?_i(i,a):ke(0),u=o.left+a.scrollLeft-l.x-c.x,h=o.top+a.scrollTop-l.y-c.y;return{x:u,y:h,width:o.width,height:o.height}}function pn(t){return me(t).position==="static"}function jr(t,e){if(!Le(t)||me(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Pe(t)===n&&(n=n.ownerDocument.body),n}function Li(t,e){const n=te(t);if($t(t))return n;if(!Le(t)){let i=qe(t);for(;i&&!yt(i);){if(ge(i)&&!pn(i))return i;i=qe(i)}return n}let r=jr(t,e);for(;r&&Oa(r)&&pn(r);)r=jr(r,e);return r&&yt(r)&&pn(r)&&!Zn(r)?n:r||La(t)||n}const Ua=async function(t){const e=this.getOffsetParent||Li,n=this.getDimensions,r=await n(t.floating);return{reference:qa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ka(t){return me(t).direction==="rtl"}const Za={convertOffsetParentRelativeRectToViewportRelativeRect:Fa,getDocumentElement:Pe,getClippingRect:ja,getOffsetParent:Li,getElementRects:Ua,getClientRects:Ma,getDimensions:Va,getScale:tt,isElement:ge,isRTL:Ka};function Ii(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Xa(t,e,n){let r=null,i;const s=Pe(t);function o(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),o();const d=t.getBoundingClientRect(),{left:f,top:g,width:m,height:b}=d;if(u||e(),!m||!b)return;const y=Rt(g),x=Rt(s.clientWidth-(f+m)),v=Rt(s.clientHeight-(g+b)),P=Rt(f),k={rootMargin:-y+"px "+-x+"px "+-v+"px "+-P+"px",threshold:xe(0,Re(1,h))||1};let I=!0;function V(q){const N=q[0].intersectionRatio;if(!Ii(d,t.getBoundingClientRect()))return a();if(N!==h){if(!I)return a();N?a(!1,N):i=setTimeout(()=>{a(!1,1e-7)},1e3)}I=!1}try{r=new IntersectionObserver(V,{...k,root:s.ownerDocument})}catch{r=new IntersectionObserver(V,k)}r.observe(t)}const l=te(t),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),o()}}function Ga(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Gn(t),u=i||s?[...c?xt(c):[],...e?xt(e):[]]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n),s&&y.addEventListener("resize",n)});const h=c&&a?Xa(c,n,s):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&f&&e&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(e)})),n()}),c&&!l&&f.observe(c),e&&f.observe(e));let g,m=l?Ue(t):null;l&&b();function b(){const y=Ue(t);m&&!Ii(m,y)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h?.(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const Ya=Pa,Qa=Ta,Ja=ka,$a=Ea,el=Sa,tl=xa,nl=Ca,rl=(t,e,n)=>{const r=new Map,i=n??{},s={...Za,...i.platform,_c:r};return ya(t,e,{...i,platform:s})};function il(t){const e=t.whileElementsMounted,n=T(()=>Fe(t.open)??!0),r=T(()=>Fe(t.middleware)),i=T(()=>Fe(t.transform)??!0),s=T(()=>Fe(t.placement)??"bottom"),o=T(()=>Fe(t.strategy)??"absolute"),a=T(()=>Fe(t.sideOffset)??0),l=T(()=>Fe(t.alignOffset)??0),c=t.reference;let u=M(0),h=M(0);const d=ye(null);let f=M(It(p(o))),g=M(It(p(s))),m=M(It({})),b=M(!1),y=!1,x=0,v=!1;const P=T(()=>{const B=d.current?Ir(d.current,p(u)):p(u),U=d.current?Ir(d.current,p(h)):p(h);return p(i)?{position:p(f),left:"0",top:"0",transform:`translate(${B}px, ${U}px)`,...d.current&&Si(d.current)>=1.5&&{willChange:"transform"}}:{position:p(f),left:`${B}px`,top:`${U}px`}});let O;function k(){if(v||c.current===null||d.current===null)return;const B=c.current,U=d.current,K=++x;rl(B,U,{middleware:p(r),placement:p(s),strategy:p(o)}).then(H=>{if(K!==x||c.current!==B||d.current!==U)return;if(sl(B)){S(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const E=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(H.x<=E&&H.y<=E)return}S(u,H.x,!0),S(h,H.y,!0),S(f,H.strategy,!0),S(g,H.placement,!0),S(m,H.middlewareData,!0),S(b,!0)})}function I(){typeof O=="function"&&(O(),O=void 0),x++}function V(){if(I(),e===void 0){k();return}p(n)&&(c.current===null||d.current===null||(O=e(c.current,d.current,k)))}function q(){!p(n)&&d.current===null&&S(b,!1)}function N(){return[p(r),p(s),p(o),p(a),p(l),p(n)]}return le(()=>{e===void 0&&p(n)&&k()}),le(V),le(()=>{if(e!==void 0){if(N(),!p(n)){y=!1;return}if(!p(b)){y=!1;return}if(!y){y=!0;return}k()}}),le(q),le(()=>()=>{v=!0,I()}),{floating:d,reference:c,get strategy(){return p(f)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(b)},get floatingStyles(){return p(P)},get update(){return k}}}function sl(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const ol={top:"bottom",right:"left",bottom:"top",left:"right"},En=new kt("Floating.Content");class Kt{static create(e,n=!1){return n?En.set(new Kt(e,Vn.get())):En.set(new Kt(e,jn.get()))}opts;root;contentRef=ye(null);wrapperRef=ye(null);arrowRef=ye(null);contentAttachment=mt(this.contentRef);wrapperAttachment=mt(this.wrapperRef);arrowAttachment=mt(this.arrowRef);arrowId=ye(Hn());#e=T(()=>{if(typeof this.opts.style=="string")return qs(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new uo(()=>this.arrowRef.current??void 0);#r=T(()=>this.#n?.width??0);#i=T(()=>this.#n?.height??0);#o=T(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=T(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=T(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#s)}set hasExplicitBoundaries(e){S(this.#s,e)}#l=T(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(Us),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(e){S(this.#l,e)}#c=M(void 0);#h=M(void 0);#f=M(void 0);#g=M(void 0);#d=T(()=>[Ya({mainAxis:this.opts.sideOffset.current+p(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?nl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ja({...this.detectOverflowOptions}),$a({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=e.reference;S(this.#c,n,!0),S(this.#h,r,!0),S(this.#f,i,!0),S(this.#g,s,!0)}}),this.arrowRef.current&&tl({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),al({arrowWidth:p(this.#r),arrowHeight:p(this.#i)}),this.opts.hideWhenDetached.current&&el({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#d)}set middleware(e){S(this.#d,e)}floating;#u=T(()=>ll(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(e){S(this.#u,e)}#p=T(()=>cl(this.floating.placement));get placedAlign(){return p(this.#p)}set placedAlign(e){S(this.#p,e)}#m=T(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(e){S(this.#m,e)}#b=T(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#b)}set arrowY(e){S(this.#b,e)}#w=T(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#w)}set cannotCenterArrow(e){S(this.#w,e)}#v=M("auto");get contentZIndex(){return p(this.#v)}set contentZIndex(e){S(this.#v,e,!0)}#y=T(()=>ol[this.placedSide]);get arrowBaseSide(){return p(this.#y)}set arrowBaseSide(e){S(this.#y,e)}#x=T(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#h)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#x)}set wrapperProps(e){S(this.#x,e)}#k=T(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Ks({...p(this.#e)}),...this.contentAttachment}));get props(){return p(this.#k)}set props(e){S(this.#k,e)}#S=T(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#S)}set arrowStyle(e){S(this.#S,e)}constructor(e,n){this.opts=e,this.root=n,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ie(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=il({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Ga(...r,{animationFrame:this.#t?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),le(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ie([()=>this.contentRef.current,()=>this.opts.enabled.current],([r,i])=>{if(!r||!i)return;const s=fi(r),o=s.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=s.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{s.cancelAnimationFrame(o)}}),le(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Di{static create(e){return new Di(e,En.get())}opts;content;constructor(e,n){this.opts=e,this.content=n}#e=T(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#e)}set props(e){S(this.#e,e)}}function al(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=Yn(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=o?h:`${d}px`,m=`${-l}px`):c==="top"?(g=o?h:`${d}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=o?h:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=o?h:`${f}px`),{data:{x:g,y:m}}}}}function Yn(t){const[e,n="center"]=t.split("-");return[e,n]}function ll(t){return Yn(t)[0]}function cl(t){return Yn(t)[1]}function ul(t,e){G(e,!0);let n=w(e,"side",3,"bottom"),r=w(e,"sideOffset",3,0),i=w(e,"align",3,"center"),s=w(e,"alignOffset",3,0),o=w(e,"arrowPadding",3,0),a=w(e,"avoidCollisions",3,!0),l=w(e,"collisionBoundary",19,()=>[]),c=w(e,"collisionPadding",3,0),u=w(e,"hideWhenDetached",3,!1),h=w(e,"onPlaced",3,()=>{}),d=w(e,"sticky",3,"partial"),f=w(e,"updatePositionStrategy",3,"optimized"),g=w(e,"strategy",3,"fixed"),m=w(e,"dir",3,"ltr"),b=w(e,"style",19,()=>({})),y=w(e,"wrapperId",19,Hn),x=w(e,"customAnchor",3,null),v=w(e,"tooltip",3,!1);const P=Kt.create({side:C(()=>n()),sideOffset:C(()=>r()),align:C(()=>i()),alignOffset:C(()=>s()),id:C(()=>e.id),arrowPadding:C(()=>o()),avoidCollisions:C(()=>a()),collisionBoundary:C(()=>l()),collisionPadding:C(()=>c()),hideWhenDetached:C(()=>u()),onPlaced:C(()=>h()),sticky:C(()=>d()),updatePositionStrategy:C(()=>f()),strategy:C(()=>g()),dir:C(()=>m()),style:C(()=>b()),enabled:C(()=>e.enabled),wrapperId:C(()=>y()),customAnchor:C(()=>x())},ue(()=>v())),O=T(()=>bt(P.wrapperProps,{style:{pointerEvents:"auto"}}));var k=z(),I=F(k);$(I,()=>e.content??ne,()=>({props:P.props,wrapperProps:p(O)})),D(t,k),Y()}function hl(t,e){G(e,!0),Is(()=>{e.onPlaced?.()});var n=z(),r=F(n);$(r,()=>e.content??ne,()=>({props:{},wrapperProps:{}})),D(t,n),Y()}var fl=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dl(t,e){let n=w(e,"isStatic",3,!1),r=be(e,fl);var i=z(),s=F(i);{var o=l=>{hl(l,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=l=>{ul(l,Se({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>r))};ce(s,l=>{n()?l(o):l(a,-1)})}D(t,i)}var pl=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),gl=Ze("<!> <!>",1);function Fi(t,e){G(e,!0);let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=w(e,"tooltip",3,!1),l=w(e,"contentPointerEvents",3,"auto"),c=be(e,pl);const u=T(()=>e.preventScroll??!0),h=T(()=>e.strategy??(p(u)?"fixed":"absolute"));dl(t,{get isStatic(){return o()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return p(h)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(f,g)=>{let m=()=>(g?.()).props,b=()=>(g?.()).wrapperProps;var y=gl(),x=F(y);{var v=k=>{Lr(k,{get preventScroll(){return p(u)}})},P=k=>{Lr(k,{get preventScroll(){return p(u)}})};ce(x,k=>{e.forceMount&&e.enabled?k(v):e.forceMount||k(P,1)})}var O=fe(x,2);ta(O,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return r()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(I,V)=>{let q=()=>(V?.()).props;Mo(I,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(N,B)=>{Do(N,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return e.enabled},get ref(){return e.ref},children:(K,H)=>{let A=()=>(H?.()).props;ia(K,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(E,R)=>{var L=z(),W=F(L);{let Q=T(()=>({props:bt(c,m(),A(),q(),{id:e.id,style:{pointerEvents:l()}}),wrapperProps:b()}));$(W,()=>e.popper??ne,()=>p(Q))}D(E,L)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(f,y)},$$slots:{content:!0}}),Y()}var ml=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function bl(t,e){let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=be(e,ml);var l=z(),c=F(l);{var u=h=>{Fi(h,Se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};ce(c,h=>{e.shouldRender&&h(u)})}D(t,l)}var wl=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function vl(t,e){let n=w(e,"interactOutsideBehavior",3,"close"),r=w(e,"trapFocus",3,!0),i=w(e,"isValidEvent",3,()=>!1),s=w(e,"customAnchor",3,null),o=w(e,"isStatic",3,!1),a=be(e,wl);Fi(t,Se({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}function gn(t,e){const[n,r]=t;let i=!1;const s=e.length;for(let o=0,a=s-1;o<s;a=o++){const[l,c]=e[o]??[0,0],[u,h]=e[a]??[0,0];c>=r!=h>=r&&n<=(u-l)*(r-c)/(h-c)+l&&(i=!i)}return i}function mn(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function Vr(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,i=e.left+e.width/2,s=e.top+e.height/2,o=i-n,a=s-r;return Math.abs(o)>Math.abs(a)?o>0?"right":"left":a>0?"bottom":"top"}class yl{#e;#t;#n;#r=null;#i=null;#o=[];#a=null;#s=null;#l=null;#c(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#c(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#r||!this.#i)&&(this.#u(),this.#e.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#n!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#i)&&(this.#u(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;const n=e.transitIntentTimeout;this.#n=typeof n=="number"&&n>0?n:null,ie([e.triggerNode,e.contentNode,e.enabled],([r,i,s])=>{if(!r||!i||!s){this.#a=null,this.#u();return}this.#a&&this.#a!==r&&this.#u(),this.#a=r;const o=hi(r),a=d=>{this.#d([d.clientX,d.clientY],r,i)},l=d=>{const f=d.relatedTarget;if(je(f)&&i.contains(f))return;const g=this.#e.ignoredTargets?.()??[];je(f)&&g.some(m=>m===f||m.contains(f))||(this.#o=je(f)&&g.length>0?g.filter(m=>f.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#i="content",this.#h())},c=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const f=d.relatedTarget;je(f)&&r.contains(f)||(this.#r=[d.clientX,d.clientY],this.#i="trigger",this.#h())};return[ee(o,"pointermove",a),ee(r,"pointerleave",l),ee(r,"pointerenter",c),ee(i,"pointerenter",u),ee(i,"pointerleave",h)].reduce((d,f)=>()=>{d(),f()},()=>{})})}#d(e,n,r){if(!this.#r||!this.#i)return;this.#c(),this.#g();const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(this.#i==="content"&&mn(e,s)){this.#u();return}if(this.#i==="trigger"&&mn(e,i)){this.#u();return}if(this.#i==="content"&&this.#o.length>0)for(const u of this.#o){const h=u.getBoundingClientRect();if(mn(e,h))return;const d=Vr(i,h),f=this.#p(i,h,d);if(f&&gn(e,f))return}const o=Vr(i,s),a=this.#p(i,s,o);if(a&&gn(e,a))return;const l=this.#i==="content"?s:i,c=this.#m(this.#r,l,o,this.#i);gn(e,c)||(this.#u(),this.#e.onPointerExit())}#u(){this.#r=null,this.#i=null,this.#o=[],this.#c(),this.#f()}#p(e,n,r){const i=this.#t;switch(r){case"top":return[[Math.min(e.left,n.left)-i,e.top],[Math.min(e.left,n.left)-i,n.bottom],[Math.max(e.right,n.right)+i,n.bottom],[Math.max(e.right,n.right)+i,e.top]];case"bottom":return[[Math.min(e.left,n.left)-i,e.bottom],[Math.min(e.left,n.left)-i,n.top],[Math.max(e.right,n.right)+i,n.top],[Math.max(e.right,n.right)+i,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-i],[n.right,Math.min(e.top,n.top)-i],[n.right,Math.max(e.bottom,n.bottom)+i],[e.left,Math.max(e.bottom,n.bottom)+i]];case"right":return[[e.right,Math.min(e.top,n.top)-i],[n.left,Math.min(e.top,n.top)-i],[n.left,Math.max(e.bottom,n.bottom)+i],[e.right,Math.max(e.bottom,n.bottom)+i]]}}#m(e,n,r,i){const s=this.#t*4,[o,a]=e;switch(i==="trigger"?this.#b(r):r){case"top":return[[o-s,a+s],[o+s,a+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[o-s,a-s],[o+s,a-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[o+s,a-s],[o+s,a+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[o-s,a-s],[o-s,a+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}}#b(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const On=Qs({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qn=new kt("Popover.Root");class Jn{static create(e){return Qn.set(new Jn(e))}opts;#e=M(null);get contentNode(){return p(this.#e)}set contentNode(e){S(this.#e,e,!0)}contentPresence;#t=M(null);get triggerNode(){return p(this.#t)}set triggerNode(e){S(this.#t,e,!0)}#n=M(null);get overlayNode(){return p(this.#n)}set overlayNode(e){S(this.#n,e,!0)}overlayPresence;#r=M(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(e){S(this.#r,e,!0)}#i=M(!1);get hasInteractedWithContent(){return p(this.#i)}set hasInteractedWithContent(e){S(this.#i,e,!0)}#o=M(!1);get hoverCooldown(){return p(this.#o)}set hoverCooldown(e){S(this.#o,e,!0)}#a=M(0);get closeDelay(){return p(this.#a)}set closeDelay(e){S(this.#a,e,!0)}#s=null;#l=null;constructor(e){this.opts=e,this.contentPresence=new Sr({ref:C(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Sr({ref:C(()=>this.overlayNode),open:this.opts.open}),ie(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(e){this.#l=e}#c(){this.#s!==null&&this.#l&&(this.#l.clearTimeout(this.#s),this.#s=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#s=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#s=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Mi{static create(e){return new Mi(e,Qn.get())}opts;root;attachment;domContext;#e=null;#t=null;#n=M(!1);constructor(e,n){this.opts=e,this.root=n,this.attachment=mt(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new Fn(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),ie(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}#r(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#o(){this.#r(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Mt(e)||(S(this.#n,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},n)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Mt(e)||(S(this.#n,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#o(),p(this.#n)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#n)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===Zs||e.key===Xs)&&(e.preventDefault(),this.#o(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#s=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Gs(this.root.opts.open.current),"data-state":li(this.root.opts.open.current),"aria-controls":this.#a(),[On.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#s)}set props(e){S(this.#s,e)}}class $n{static create(e){return new $n(e,Qn.get())}opts;root;attachment;constructor(e,n){this.opts=e,this.root=n,this.attachment=mt(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new yl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const n=e.target;je(n)&&Jo(n)&&this.root.markInteraction()}onpointerenter(e){Mt(e)||this.root.cancelDelayedClose()}onpointerleave(e){Mt(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!je(e.target))return;const n=e.target.closest(On.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(je(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#e)}set snippetProps(e){S(this.#e,e)}#t=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":li(this.root.opts.open.current),...Ys(this.root.contentPresence.transitionStatus),[On.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#t)}set props(e){S(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var xl=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),qr=Ze("<div><div><!></div></div>");function kl(t,e){const n=Ds();G(e,!0);let r=w(e,"ref",15,null),i=w(e,"id",19,()=>Js(n)),s=w(e,"forceMount",3,!1),o=w(e,"onOpenAutoFocus",3,Z),a=w(e,"onCloseAutoFocus",3,Z),l=w(e,"onEscapeKeydown",3,Z),c=w(e,"onInteractOutside",3,Z),u=w(e,"trapFocus",3,!0),h=w(e,"preventScroll",3,!1),d=w(e,"customAnchor",3,null),f=be(e,xl);const g=$n.create({id:C(()=>i()),ref:C(()=>r(),k=>r(k)),onInteractOutside:C(()=>c()),onEscapeKeydown:C(()=>l()),customAnchor:C(()=>d())}),m=T(()=>bt(f,g.props)),b=T(()=>u()&&g.shouldTrapFocus);function y(k){g.shouldTrapFocus||k.preventDefault(),o()(k)}var x=z(),v=F(x);{var P=k=>{vl(k,Se(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return p(b)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:y,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(V,q)=>{let N=()=>(q?.()).props,B=()=>(q?.()).wrapperProps;const U=T(()=>bt(N(),{style:Dr("popover")},{style:e.style}));var K=z(),H=F(K);{var A=R=>{var L=z(),W=F(L);{let Q=T(()=>({props:p(U),wrapperProps:B(),...g.snippetProps}));$(W,()=>e.child,()=>p(Q))}D(R,L)},E=R=>{var L=qr();$e(L,()=>({...B()}));var W=Ee(L);$e(W,()=>({...p(U)}));var Q=Ee(W);$(Q,()=>e.children??ne),Oe(W),Oe(L),D(R,L)};ce(H,R=>{e.child?R(A):R(E,-1)})}D(V,K)},$$slots:{popper:!0}}))},O=k=>{bl(k,Se(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return p(b)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:y,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(V,q)=>{let N=()=>(q?.()).props,B=()=>(q?.()).wrapperProps;const U=T(()=>bt(N(),{style:Dr("popover")},{style:e.style}));var K=z(),H=F(K);{var A=R=>{var L=z(),W=F(L);{let Q=T(()=>({props:p(U),wrapperProps:B(),...g.snippetProps}));$(W,()=>e.child,()=>p(Q))}D(R,L)},E=R=>{var L=qr();$e(L,()=>({...B()}));var W=Ee(L);$e(W,()=>({...p(U)}));var Q=Ee(W);$(Q,()=>e.children??ne),Oe(W),Oe(L),D(R,L)};ce(H,R=>{e.child?R(A):R(E,-1)})}D(V,K)},$$slots:{popper:!0}}))};ce(v,k=>{s()?k(P):s()||k(O,1)})}D(t,x),Y()}function Sl(t,e){G(e,!0);let n=w(e,"open",15,!1),r=w(e,"onOpenChange",3,Z),i=w(e,"onOpenChangeComplete",3,Z);Jn.create({open:C(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:C(()=>i())}),la(t,{children:(s,o)=>{var a=z(),l=F(a);$(l,()=>e.children??ne),D(s,a)},$$slots:{default:!0}}),Y()}function Ju(t){let e=0,n=0;for(const r of t)e+=r.additions,n+=r.deletions;return{additions:e,deletions:n}}const Al=[/(^|\/)(package-lock\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb?|deno\.lock)$/,/(^|\/)(Cargo\.lock|Gemfile\.lock|composer\.lock|poetry\.lock|uv\.lock|Pipfile\.lock|go\.sum|flake\.lock|mix\.lock|pubspec\.lock|Podfile\.lock)$/,/(^|\/)(dist|build|out|coverage|node_modules|vendor|\.svelte-kit|\.next|\.nuxt|__generated__)\//,/\.min\.(js|css)$/,/\.(map|snap)$/,/(^|\/)__snapshots__\//,/[._-]generated\.[^/]+$/,/\.(pb|gen)\.[^/]+$/];function $u(t){return Al.some(e=>e.test(t))}function eh(t){return t.untracked?"?":t.kind==="added"?"A":t.kind==="deleted"?"D":t.kind==="renamed"?"R":"M"}function th(t,e){if(!e||!t.startsWith("/"))return t;const n=e.endsWith("/")?e:`${e}/`;return t.startsWith(n)?t.slice(n.length):t}const Pl=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;function nh(t,e={}){const n=[];let r=1,i=1,s=t.length>0;for(const o of t){const a=Pl.exec(o.header);let l=null,c=null;if(a){l=Number(a[1]),c=Number(a[3]);const u=Number(a[2]??1),h=Number(a[4]??1),d=u===0?l+1:l;d>r&&n.push({type:"gap",count:d-r,from:i,old:r}),r=d+u,i=(h===0?c+1:c)+h}else s=!1;n.push({type:"hunk",header:o.header});for(const u of o.lines){const h=u[0],d=u.slice(1);if(h==="+")n.push({type:"add",old:null,new:c,text:d}),c!==null&&c++;else if(h==="-")n.push({type:"del",old:l,new:null,text:d}),l!==null&&l++;else{if(h==="\\")continue;n.push({type:"context",old:l,new:c,text:d}),l!==null&&l++,c!==null&&c++}}}return e.tail&&s&&n.push({type:"gap",count:null,from:i,old:r}),n}function rh(t){const e=t.split("/").pop()??"";if(/^Dockerfile/.test(e))return"dockerfile";if(e==="Makefile")return"makefile";const n=e.includes(".")?e.split(".").pop().toLowerCase():"";return Tl[n]??null}const Tl={ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",svelte:"xml",vue:"xml",html:"xml",xml:"xml",svg:"xml",css:"css",scss:"scss",json:"json",jsonl:"json",md:"markdown",py:"python",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"ini",ini:"ini",rs:"rust",go:"go",sql:"sql",java:"java",kt:"kotlin",c:"c",h:"c",cpp:"cpp",hpp:"cpp",rb:"ruby",php:"php",swift:"swift",lua:"lua"};function ih(t,e,n,r){const i=new Map;for(const l of e)l.id&&i.set(l.id,l);const s=new Map;let o=null,a=null;for(const l of t)l.kind==="user"&&n.has(l.id)&&(o&&a&&s.set(a,o),o=i.get(l.id)??null),a=l.id;return o&&a&&!r&&s.set(a,o),s}var Cl=new Set(["$$slots","$$events","$$legacy","open"]);function El(t,e){G(e,!0);let n=w(e,"open",15,!1),r=be(e,Cl);var i=z(),s=F(i);vt(s,()=>Sl,(o,a)=>{a(o,Se(()=>r,{get open(){return n()},set open(l){n(l)}}))}),D(t,i),Y()}var Ol=new Set(["$$slots","$$events","$$legacy"]);function Rl(t,e){let n=be(e,Ol);var r=z(),i=F(r);vt(i,()=>To,(s,o)=>{o(s,Se(()=>n))}),D(t,r)}var _l=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);function Ll(t,e){G(e,!0);let n=w(e,"ref",15,null),r=w(e,"sideOffset",3,4),i=w(e,"align",3,"center"),s=be(e,_l);Rl(t,Se(()=>e.portalProps,{children:(o,a)=>{var l=z(),c=F(l);{let u=T(()=>In("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-(--z-floating) w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e.class));vt(c,()=>kl,(h,d)=>{d(h,Se({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return i()},get class(){return p(u)}},()=>s,{get ref(){return n()},set ref(f){n(f)}}))})}D(o,l)},$$slots:{default:!0}})),Y()}var Il=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Dl=Ze("<input/>");function sh(t,e){G(e,!0);let n=w(e,"ref",15,null),r=w(e,"value",15),i=w(e,"data-slot",3,"input"),s=be(e,Il);var o=Dl();$e(o,a=>({"data-slot":i(),class:a,...s}),[()=>In("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex h-10 w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-[3px]",e.class)],void 0,void 0,void 0,!0),ai(o,a=>n(a),()=>n()),ro(o,r),D(t,o),Y()}function oh(t){const e=t.split("/").pop()??"";if(/^Dockerfile/.test(e))return"docker";if(e==="Makefile")return"make";if(e.startsWith(".")&&!e.slice(1).includes("."))return Fl[e]??null;const n=e.includes(".")?e.split(".").pop().toLowerCase():"";return Ml[n]??null}const Fl={".gitignore":"shellscript",".env":"shellscript",".bashrc":"shellscript",".zshrc":"shellscript"},Ml={ts:"typescript",mts:"typescript",cts:"typescript",tsx:"tsx",js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"jsx",svelte:"svelte",html:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",json:"json",jsonl:"json",jsonc:"jsonc",md:"markdown",py:"python",sh:"shellscript",bash:"shellscript",zsh:"shellscript",yml:"yaml",yaml:"yaml",toml:"toml",rs:"rust",go:"go",sql:"sql",diff:"diff",patch:"diff"};function ah(t){return/\.(md|markdown)$/i.test(t)}function lh(t){return t.split("/").pop()??t}function ch(t){return t.split("/").slice(0,-1).join("/")}function uh(t){const e=t.split("/").slice(0,-1);return e.map((n,r)=>e.slice(0,r+1).join("/"))}function Nl(t,e){const n=t.toLowerCase().replace(/\s+/g,"");if(!n)return 0;const r=e.toLowerCase();let i=null;for(let s=r.indexOf(n[0]);s!==-1;s=r.indexOf(n[0],s+1)){const o=zl(n,r,e,s);if(o===null)break;(i===null||o>i)&&(i=o)}return i===null?null:i-e.length*.01}function zl(t,e,n,r){const i=n.lastIndexOf("/")+1;let s=0,o=r-1,a=0;for(const l of t){const c=e.indexOf(l,o+1);if(c===-1)return null;a=c===o+1?a+1:0,s+=1+a*2;const u=n[c-1];(c===0||u==="/"||u==="-"||u==="_"||u===".")&&(s+=3),c>=i&&(s+=2),o=c}return s}function hh(t,e,n=50){const r=[];for(const i of e){const s=Nl(t,i);s!==null&&r.push({path:i,score:s})}return r.sort((i,s)=>s.score-i.score).slice(0,n).map(i=>i.path)}const Bl=new Set(["Read","Edit","Write","MultiEdit","NotebookEdit"]);function Wl(t){const e=/^@@ -\d+(?:,\d+)? \+(\d+)/.exec(t.header);if(!e)return null;let n=Number(e[1]);for(const r of t.lines){if(r.startsWith("+"))return n;r.startsWith(" ")&&n++}return Number(e[1])}function fh(t){if(!Bl.has(t.name))return null;let e={};try{e=JSON.parse(t.input)}catch{const i=/"(?:file_path|notebook_path)":\s*"((?:[^"\\]|\\.)*)"/.exec(t.input);i&&(e={file_path:JSON.parse(`"${i[1]}"`)})}const n=t.patch?.file||(typeof e.file_path=="string"?e.file_path:null)||(typeof e.notebook_path=="string"?e.notebook_path:null);if(!n)return null;if(t.name==="Read"){const i=Number(e.offset);return{path:n,line:Number.isInteger(i)&&i>0?i:null}}const r=t.patch?.hunks[0];return{path:n,line:r?Wl(r):null}}function er(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xe=er();function Ni(t){Xe=t}var We={exec:()=>null};function Ne(t){let e=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=e[r];return i||(i=t(r),e[r]=i),i}}function _(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(X.caret,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,e)};return r}var Hl=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),X={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ne(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}(?:</?(?:${At})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Ne(t=>new RegExp(`^ {0,${t}}>`))},jl=/^(?:[ \t]*(?:\n|$))+/,Vl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ql=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,St=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ul=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,zi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bi=_(zi).replace(/bull/g,tr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Kl=_(zi).replace(/bull/g,tr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),nr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Zl=/^[^\n]+/,rr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Xl=_(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gl=_(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,tr).getRegex(),At="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ir=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Yl=_("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ir).replace("tag",At).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wi=t=>_(nr).replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex(),Ql=Wi(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Jl=Wi(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),$l=_(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Jl).getRegex(),sr={blockquote:$l,code:Vl,def:Xl,fences:ql,heading:Ul,hr:St,html:Yl,lheading:Bi,list:Gl,newline:jl,paragraph:Ql,table:We,text:Zl},Ur=_("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex(),ec={...sr,lheading:Kl,table:Ur,paragraph:_(nr).replace("hr",St).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ur).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",At).getRegex()},tc={...sr,html:_(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ir).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(nr).replace("hr",St).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Bi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Hi=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,ic=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,we=/[\p{P}\p{S}]/u,ot=/[\s\p{P}\p{S}]/u,Pt=/[^\s\p{P}\p{S}]/u,sc=_(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ot).getRegex(),oc=/[\p{Pi}\p{Ps}"']/u,ji=/(?!~)[\p{P}\p{S}]/u,ac=/(?!~)[\s\p{P}\p{S}]/u,lc=/(?:[^\s\p{P}\p{S}]|~)/u,cc=_(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Hl?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Vi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,uc=_(Vi,"u").replace(/punct/g,we).getRegex(),hc=_(Vi,"u").replace(/punct/g,ji).getRegex(),fc=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,dc=_(fc,"u").replace(/openQuote/g,oc).replace(/punct/g,we).getRegex(),qi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pc=_(qi,"gu").replace(/notPunctSpace/g,Pt).replace(/punctSpace/g,ot).replace(/punct/g,we).getRegex(),gc=_(qi,"gu").replace(/notPunctSpace/g,lc).replace(/punctSpace/g,ac).replace(/punct/g,ji).getRegex(),mc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",bc=_(mc,"gu").replace(/notPunctSpace/g,Pt).replace(/punctSpace/g,ot).replace(/punct/g,we).getRegex(),wc=_("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pt).replace(/punctSpace/g,ot).replace(/punct/g,we).getRegex(),vc="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",yc=_(vc,"gu").replace(/notPunctSpace/g,Pt).replace(/punctSpace/g,ot).replace(/punct/g,we).getRegex(),xc=_(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,we).getRegex(),kc="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Sc=_(kc,"gu").replace(/notPunctSpace/g,Pt).replace(/punctSpace/g,ot).replace(/punct/g,we).getRegex(),Ac=_(/\\(punct)/,"gu").replace(/punct/g,we).getRegex(),Pc=_(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,we).getRegex(),Tc=_(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cc=_(ir).replace("(?:-->|$)","-->").getRegex(),Ec=_("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Cc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ui=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Zt=_(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Ui).getRegex(),Oc=_(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",Zt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rc=_(/^!?\[(label)\]\[(ref)\]/).replace("label",Zt).replace("ref",rr).getRegex(),_c=_(/^!?\[(ref)\](?:\[\])?/).replace("ref",rr).getRegex(),Kr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Lc=_(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Ui).getRegex(),Ic=_("reflink|nolink(?!\\()","g").replace("reflink",_(/^!?\[(label)\]\[(ref)\]/).replace("label",Lc).replace("ref",Kr).getRegex()).replace("nolink",_(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kr).getRegex()).getRegex(),Zr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Dc=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Fc=_(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Dc).getRegex(),or={_backpedal:We,anyPunctuation:Ac,anyPunctuationOutsideCode:Pc,autolink:Tc,blockSkip:cc,br:Hi,code:rc,del:We,delLDelim:We,delRDelim:We,emStrongLDelim:uc,emStrongRDelimAst:pc,emStrongRDelimUnd:wc,escape:nc,link:Oc,nolink:_c,punctuation:sc,reflink:Rc,reflinkSearch:Ic,tag:Ec,text:ic,url:We},Mc={...or,emStrongLDelim:dc,emStrongRDelimAst:bc,emStrongRDelimUnd:yc,link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",Zt).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zt).getRegex()},Rn={...or,emStrongRDelimAst:gc,emStrongLDelim:hc,delLDelim:xc,delRDelim:Sc,url:_(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Fc).replace("protocol",Zr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Zr).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Nc={...Rn,br:_(Hi).replace("{2,}","*").getRegex(),text:_(Rn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_t={normal:sr,gfm:ec,pedantic:tc},pt={normal:or,gfm:Rn,breaks:Nc,pedantic:Mc},zc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xr=t=>zc[t];function re(t,e){if(e){if(X.escapeTest.test(t))return t.replace(X.escapeReplace,Xr)}else if(X.escapeTestNoEncode.test(t))return t.replace(X.escapeReplaceNoEncode,Xr);return t}function Bc(t){return X.numericCharacterReference.test(t)?t.replace(X.numericCharacterReferenceOrAmpersand,(e,n,r)=>{if(n===void 0&&r===void 0)return"&amp;";let i=n===void 0?Number.parseInt(r,16):Number.parseInt(n,10);return i===0||i>1114111||i>=55296&&i<=57343?"�":i===38?"&amp;":String.fromCodePoint(i)}):t}function Gr(t){try{t=encodeURI(t).replace(X.percentDecode,"%")}catch{return null}return t}function Yr(t,e){let n=t.replace(X.findPipe,(s,o,a)=>{let l=!1,c=o;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),r=n.split(X.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(X.slashPipe,"|");return r}function Ce(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function Qr(t){let e=t.split(`
3
3
  `),n=e.length-1;for(;n>=0&&X.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
4
4
  `)}function Xt(t){return t.trim().toLowerCase().toUpperCase().toLowerCase()}function Jr(t,e){if(t.indexOf(e[0])===-1&&t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Lt(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let s=4-n%4;r+=" ".repeat(s),n+=s}else r+=i,n++;return r}function $r(t,e,n,r,i){let s=e.href,o=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1"),l=t[0].charAt(0)==="!",c=r.state.inLink,u=r.state.linkEmitted,h=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let d=r.inlineTokens(a),f=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=c,!l){if(f){r.state.inRawBlock=h;return}r.state.linkEmitted=!0}return{type:l?"image":"link",raw:n,href:s,title:o,text:a,tokens:d}}function Wc(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
@@ -71,4 +71,4 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error
71
71
  `).flatMap((n,r)=>[...r>0?[{type:"br",raw:`
72
72
  `}]:[],...n?[{...e,raw:n,text:n}]:[]]):("tokens"in e&&e.tokens&&e.type!=="codespan"&&(e.tokens=ts(e.tokens)),[e]))}function ns(t){for(const e of t)e.type==="paragraph"?e.tokens=ts(e.tokens??[]):e.type==="blockquote"&&ns(e.tokens??[])}function ni(t,e,n){if(e.length===0)return[t];const r=[];let i=0;const s=o=>{o>i&&r.push({...t,raw:t.text.slice(i,o),text:t.text.slice(i,o)})};for(const o of e)s(o.start),r.push(n(t.text.slice(o.start,o.end),o)),i=o.end;return s(t.text.length),r}function Ft(t,e){return t.flatMap(n=>{const r=e(n);if(r)return r;if("tokens"in n&&n.tokens&&(n.tokens=Ft(n.tokens,e)),n.type==="list")for(const i of n.items)i.tokens=Ft(i.tokens,e);if(n.type==="table"){const i=n;for(const s of[...i.header,...i.rows.flat()])s.tokens=Ft(s.tokens,e)}return[n]})}const du=/(?<![\w&#/])#([1-9]\d{0,4})(?![\w-])/g;function ri(t){return t.type==="text"&&!("tokens"in t&&t.tokens)}function pu({files:t,github:e}){const n=(i,s,o)=>({type:"fileLink",raw:i,text:i,code:o,path:s.path,line:s.line,href:t(s.path,s.line)}),r=i=>{if(!e?.bare||!ri(i))return[i];const s=[...i.text.matchAll(du)].map(o=>({start:o.index,end:o.index+o[0].length,number:Number(o[1])}));return ni(i,s,(o,a)=>({type:"githubRef",raw:o,text:o,number:a.number,link:null}))};return i=>{if(i.type==="link"){const s=i,o=e?qc(s.href):null;if(!o)return[i];const a=s.text!==s.href&&!Uc(s.text,o);return[{type:"githubRef",raw:s.raw,text:s.text,number:o.number,link:{repo:o.repo,href:s.href},...a?{tokens:s.tokens}:{}}]}if(i.type==="image")return[i];if(i.type==="codespan"){const s=t?$i(i.text):null;return[s?n(i.text,s,!0):i]}return ri(i)?t?ni(i,ru(i.text),(s,o)=>n(s,o,!1)).flatMap(r):r(i):null}}const gu=new Ki({gfm:!0,breaks:!1,renderer:{html({raw:t}){const e=this.options.githubBody;return e?fu(t,e.media):J(t)},image({href:t,title:e,text:n}){const r=this.options.githubBody;if(!r)return!1;const i=r.media(t);if(!i)return J(n);const s=e?` title="${J(e)}"`:"";return`<img src="${J(i)}" alt="${J(n)}"${s} loading="lazy">`},link({href:t,title:e,tokens:n}){if(!this.options.githubBody)return!1;const r=this.parser.parseInline(n);if(!/^https?:\/\//i.test(t))return r;const i=e?` title="${J(e)}"`:"";return`<a href="${J(t)}"${i} target="_blank" rel="noopener">${r}</a>`},blockquote(t){const e=t.alert;if(!e)return!1;const n=this.parser.parse(t.tokens);return`<div class="gh-alert gh-alert-${e}"><p class="gh-alert-title">${iu[e]}</p>${n}</div>
73
73
  `}},extensions:[{name:"fileLink",renderer(t){const{text:e,path:n,line:r,code:i,href:s}=t,o=i?`<code>${J(e)}</code>`:J(e),a=r?` data-line="${r}"`:"";return`<a class="file-link" href="${J(s)}" data-file="${J(n)}"${a}>${o}</a>`}},{name:"githubRef",renderer(t){const{text:e,number:n,link:r,tokens:i}=t;if(!r)return`<a class="gh-ref" data-number="${n}">${J(e)}</a>`;const s=i?this.parser.parseInline(i):J(e);return`<a class="gh-ref" ${`href="${J(r.href)}" target="_blank" rel="noopener" data-repo="${J(r.repo)}" data-number="${n}"${i?" data-words":""}`}>${s}</a>`}}],hooks:{processAllTokens(t){const e=this.options;return e.githubBody&&es(t),ns(t),!e.files&&!e.github?t:Ft(t,pu(e))}}});function dh(t,e={}){try{return gu.parse(t,{async:!1,...e})}catch{return`<pre>${J(t)}</pre>`}}function mu(t){const e={failing:[],running:[],passing:[]};for(const n of t)e[n.bucket].push(n);return e}function ph(t){if(t.length===0)return"No checks";const{failing:e,running:n,passing:r}=mu(t);if(e.length===0&&n.length===0)return r.length===1?"1 passed":`All ${r.length} passed`;const i=[];return n.length&&i.push(`${n.length} of ${t.length} running`),e.length&&i.push(`${e.length} failed`),n.length||i.push(`${r.length} of ${t.length} passed`),i.join(" · ")}function bu(t){return t.replace(/<!--[\s\S]*?(?:-->|$)/g,"").trim()===""?"":t}function gh(t){const e=t.filter(n=>bu(n.body)!=="");return{people:e.filter(n=>!n.bot),bots:e.filter(n=>n.bot)}}function wu(t,e){return`${t}#${e}`}function mh(t){const e=t?.lastIndexOf("#")??-1;if(!t||e<0)return null;const n=t.slice(0,e),r=Yi(t.slice(e+1));return r!==null&&Gi(n)?{repo:n,number:r}:null}const vu=6e4,yu=1e4,xu=300,Qe=new Map;function ku(t){return t.repo?`${t.base}|${t.repo.toLowerCase()}#${t.number}`:`${t.base}|@${t.session??""}#${t.number}`}async function Su(t){const e=new URLSearchParams({number:String(t.number)});t.repo?e.set("repo",t.repo):t.session&&e.set("session",t.session);try{const n=await fetch(`${t.base}/api/github/ref?${e}`);return n.ok?(await n.json()).ref??null:null}catch{return null}}function Au(t){const e=ku(t),n=Qe.get(e);if(n&&Date.now()<n.until)return n.ref;const r=Su(t),i={until:Date.now()+vu,ref:r};return Qe.delete(e),Qe.set(e,i),Qe.size>xu&&Qe.delete(Qe.keys().next().value),r.then(s=>{s||(i.until=Date.now()+yu)}),r}function Pu(t,e){const n=Yi(t.dataset.number);if(n===null)return null;const r=t.dataset.repo??e.repo??null;return!r&&!e.session?null:{base:e.base,repo:r,session:r?null:e.session,number:n}}function Tu(t){return t.dataset.ref??null}function Cu(t,e){const n=Qi(e),r=!t.dataset.repo,i="words"in t.dataset;if(!t.classList.contains("resolved")){const a=document.createElement("iconify-icon");if(a.className="gh-icon",i)t.prepend(a);else{const l=document.createElement("span");l.className="gh-num",l.textContent=`#${e.number}`;const c=document.createElement("span");c.className="gh-title",t.replaceChildren(a,l,...r?[]:[c])}r&&(t.href=e.url,t.target="_blank",t.rel="noopener"),t.classList.add("resolved")}const s=t.querySelector(".gh-icon");s?.setAttribute("icon",n.icon),s?.setAttribute("aria-label",n.label);const o=t.querySelector(".gh-title");o&&(o.textContent=e.title),t.dataset.state=e.state,t.dataset.ref=wu(e.repo,e.number),t.style.setProperty("--gh",n.color)}const Eu=6e4,Ou=60,Be=new Map;function rs(t,e,n){return`${t}|${e.toLowerCase()}#${n}`}async function Ru(t,e,n){try{const r=new URLSearchParams({repo:e,number:String(n)}),i=await fetch(`${t}/api/github/item?${r}`);return i.ok?await i.json():{item:null,error:i.status===404?"not-found":"unreachable"}}catch{return{item:null,error:"unreachable"}}}function bh(t,e,n){return Be.get(rs(t,e,n))?.settled??null}function _u(t,e,n,r=!1){const i=rs(t,e,n),s=Be.get(i);if(s&&!r&&Date.now()-s.at<Eu)return s.result;const o={at:Date.now(),result:Ru(t,e,n),settled:s?.settled??null};return o.result.then(a=>{(a.item||!o.settled?.item)&&(o.settled=a),a.item||(o.at=0)}),Be.delete(i),Be.set(i,o),Be.size>Ou&&Be.delete(Be.keys().next().value),o.result}async function wh(t){try{const e=await fetch(`${t}/github`);return e.ok?await e.json():null}catch{return null}}const Lu=new Set(["github.com","raw.githubusercontent.com","user-images.githubusercontent.com","private-user-images.githubusercontent.com","media.githubusercontent.com","objects.githubusercontent.com"]);function vh(t){return e=>{let n;try{n=new URL(e).hostname}catch{return null}return Lu.has(n)?`${t}/api/github/media?${new URLSearchParams({url:e})}`:e}}var ii=Ze("<span> </span>"),Iu=Ze('<p class="gh-card-repo"><iconify-icon></iconify-icon> <span class="gh-card-num"> </span></p> <p class="gh-card-title"> </p> <p class="gh-card-meta"><span class="gh-card-state"><iconify-icon></iconify-icon> </span> <!> <!></p> <a class="gh-card-open" target="_blank" rel="noopener">Open on GitHub <iconify-icon></iconify-icon></a>',3);function yh(t,e){G(e,!0);let n=w(e,"session",3,null),r=w(e,"repo",3,null),i=w(e,"base",3,"");const s=250,o=180,a=2e4;let l=M(!1),c=M(null),u=M(null),h=M(It(Date.now())),d,f=!1,g="mouse",m=0;const b=T(()=>p(u)&&Qi(p(u))),y=T(()=>p(u)?.updated_at?Ns(p(u).updated_at,p(h)):""),x="a.gh-ref.resolved";function v(A,E="a.gh-ref"){return A instanceof Element?A.closest(E):null}async function P(A){const E=Pu(A,{base:i(),session:n(),repo:r()});if(!E)return null;const R=await Au(E);return R&&A.isConnected&&Cu(A,R),R}async function O(A){const E=++m,R=await P(A);!R||!A.isConnected||E!==m||(S(u,R,!0),S(c,A,!0),S(h,Date.now(),!0),S(l,!0),e.onOpen&&_u(i(),R.repo,R.number))}function k(A,E){clearTimeout(d),d=setTimeout(E,A)}function I(){m++,k(o,()=>S(l,!1))}function V(A){if(A.pointerType!=="mouse")return;const E=v(A.target,x);E&&(p(l)&&E===p(c)?clearTimeout(d):k(s,()=>{O(E)}))}function q(A){if(A.pointerType!=="mouse")return;const E=v(A.target);E&&!(A.relatedTarget instanceof Node&&E.contains(A.relatedTarget))&&I()}function N(A){f=p(l)&&v(A.target)===p(c),g=A.pointerType}function B(A){const E=g;g="mouse";const R=v(A.target,x),L=R&&Tu(R);if(e.onOpen&&L&&!A.defaultPrevented&&A.button===0&&!(A.metaKey||A.ctrlKey||A.shiftKey||A.altKey)){A.preventDefault(),m++,clearTimeout(d),S(l,!1),e.onOpen(L);return}E==="mouse"||!R||(A.preventDefault(),f?S(l,!1):O(R))}function U(A){const E=v(A.target,x);E?.matches(":focus-visible")&&O(E)}le(()=>{const A=e.root,E=new WeakSet,R=new Set,L=new IntersectionObserver(se=>{for(const ve of se){if(!ve.isIntersecting)continue;const Te=ve.target;L.unobserve(Te),P(Te).then(nn=>{nn||E.has(Te)||(E.add(Te),R.add(setTimeout(()=>Te.isConnected&&L.observe(Te),a)))})}},{rootMargin:"200px"}),W=se=>{if(se instanceof Element){se.matches("a.gh-ref")&&L.observe(se);for(const ve of se.querySelectorAll("a.gh-ref:not(.resolved)"))L.observe(ve)}},Q=new MutationObserver(se=>{for(const ve of se)ve.target.matches("a.gh-ref")||ve.addedNodes.forEach(W)});W(A),Q.observe(A,{childList:!0,subtree:!0});const Tt=new AbortController,{signal:he}=Tt;return A.addEventListener("pointerover",V,{signal:he}),A.addEventListener("pointerout",q,{signal:he}),A.addEventListener("pointerdown",N,{signal:he}),A.addEventListener("click",B,{signal:he}),A.addEventListener("focusin",U,{signal:he}),A.addEventListener("focusout",I,{signal:he}),()=>{clearTimeout(d),R.forEach(clearTimeout),L.disconnect(),Q.disconnect(),Tt.abort()}});var K=z(),H=F(K);vt(H,()=>El,(A,E)=>{E(A,{get open(){return p(l)},set open(R){S(l,R,!0)},children:(R,L)=>{var W=z(),Q=F(W);{var Tt=he=>{var se=z(),ve=F(se);vt(ve,()=>Ll,(Te,nn)=>{nn(Te,{class:"gh-card",get customAnchor(){return p(c)},side:"top",align:"start",sideOffset:6,trapFocus:!1,onOpenAutoFocus:Ie=>Ie.preventDefault(),onCloseAutoFocus:Ie=>Ie.preventDefault(),onpointerenter:()=>clearTimeout(d),onpointerleave:Ie=>Ie.pointerType==="mouse"&&I(),children:(Ie,Mu)=>{var lr=Iu(),rn=F(lr),cr=Ee(rn);He(cr,"icon","mdi:github");var ur=fe(cr),is=fe(ur),ss=Et(is);Oe(rn);var hr=fe(rn,2),os=Et(hr,!0),sn=fe(hr,2),Ct=Ee(sn);let fr;var dr=Ee(Ct);de(()=>He(dr,"icon",p(b).icon));var as=fe(dr);Oe(Ct);var pr=fe(Ct,2);{var ls=De=>{var at=ii(),an=Et(at,!0);de(()=>Ge(an,p(u).author)),D(De,at)};ce(pr,De=>{p(u).author&&De(ls)})}var cs=fe(pr,2);{var us=De=>{var at=ii(),an=Et(at,!0);de(()=>Ge(an,p(y)==="now"?"updated just now":`updated ${p(y)} ago`)),D(De,at)};ce(cs,De=>{p(y)&&De(us)})}Oe(sn);var on=fe(sn,2),hs=fe(Ee(on));He(hs,"icon","mdi:open-in-new"),Oe(on),de(()=>{Ge(ur,` ${p(u).repo??""} `),Ge(ss,`#${p(u).number??""}`),Ge(os,p(u).title),fr=yn(Ct,"",fr,{"--gh":p(b).color}),Ge(as,` ${p(b).label??""}`),xn(on,"href",p(u).url)}),D(Ie,lr)},$$slots:{default:!0}})}),D(he,se)};ce(Q,he=>{p(u)&&p(b)&&he(Tt)})}D(R,W)},$$slots:{default:!0}})}),D(t,K),Y()}const Du=$s({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});var Fu=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);function xh(t,e){G(e,!0);let n=w(e,"ref",15,null),r=w(e,"variant",3,"default"),i=be(e,Fu);var s=z(),o=F(s);eo(o,()=>e.href?"a":"span",!1,(a,l)=>{ai(a,h=>n(h),()=>n()),$e(a,h=>({"data-slot":"badge",href:e.href,class:h,...i}),[()=>In(Du({variant:r()}),e.class)]);var c=z(),u=F(c);$(u,()=>e.children??ne),D(l,c)}),D(t,s),Y()}export{hh as $,Dr as A,xh as B,ro as C,Do as D,Mo as E,ta as F,yh as G,Dn as H,sh as I,Pn as J,hi as K,Jo as L,Yo as M,ea as N,Qo as O,Sr as P,fi as Q,Oo as R,Lr as S,ia as T,Mi as U,rh as V,nh as W,$u as X,oh as Y,lh as Z,ah as _,To as a,uh as a0,ch as a1,wh as a2,mh as a3,bh as a4,wu as a5,_u as a6,Qi as a7,gh as a8,vh as a9,bu as aa,mu as ab,ph as ac,co as ad,Qu as ae,wo as af,lo as ag,Uu as b,th as c,Xu as d,Ju as e,Gu as f,ih as g,qu as h,Ll as i,El as j,no as k,Yu as l,Zu as m,Z as n,rt as o,Ku as p,Di as q,dh as r,eh as s,fh as t,Hn as u,Fn as v,yl as w,la as x,vl as y,bl as z};
74
- //# sourceMappingURL=Q5yhzux8.js.map
74
+ //# sourceMappingURL=BeYjnogg.js.map