@piwitests/server 0.26.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BdQ7kfxJ.js → 1QWBzxLM.js} +4 -4
  3. package/.output/public/_nuxt/{CY1UsEbI.js → 4hW9LHwA.js} +1 -1
  4. package/.output/public/_nuxt/96uxfdYT.js +1 -0
  5. package/.output/public/_nuxt/{HGYIpJtg.js → AbnDY6Zr.js} +1 -1
  6. package/.output/public/_nuxt/{CZ6WR7uw.js → B-1zt4pp.js} +1 -1
  7. package/.output/public/_nuxt/{Sx5-c-bZ.js → B1iYmAt_.js} +1 -1
  8. package/.output/public/_nuxt/{CbzgEkmW.js → B2bxEmbR.js} +1 -1
  9. package/.output/public/_nuxt/B3hAvaCe.js +4 -0
  10. package/.output/public/_nuxt/{CyWOerIG.js → B4lvHjBe.js} +1 -1
  11. package/.output/public/_nuxt/B5S7BkC3.js +1 -0
  12. package/.output/public/_nuxt/{Bb_1uAHn.js → B6j5Ornu.js} +1 -1
  13. package/.output/public/_nuxt/{CrsaY0R_.js → B82vqOZe.js} +1 -1
  14. package/.output/public/_nuxt/{CTFUlsXp.js → B9oXlGro.js} +1 -1
  15. package/.output/public/_nuxt/{CsJ9Ce4U.js → BABCH5kE.js} +1 -1
  16. package/.output/public/_nuxt/{Gn1Ns00e.js → BF5qB58w.js} +1 -1
  17. package/.output/public/_nuxt/{CsGsLxHg.js → BFLa9ZEP.js} +1 -1
  18. package/.output/public/_nuxt/BIlohx1E.js +1 -0
  19. package/.output/public/_nuxt/{B6djubIK.js → BM5C-Oec.js} +1 -1
  20. package/.output/public/_nuxt/{CrZhoZuI.js → BOA-I6S9.js} +1 -1
  21. package/.output/public/_nuxt/{Bp2zrrkV.js → BQUhoGCh.js} +1 -1
  22. package/.output/public/_nuxt/{DUC3QnqW.js → BQYLGX9o.js} +1 -1
  23. package/.output/public/_nuxt/{CUjzhXN1.js → BRMeEHXd.js} +1 -1
  24. package/.output/public/_nuxt/{Cf_a8ynB.js → BRtaKOKv.js} +2 -2
  25. package/.output/public/_nuxt/{B7uPoZ7T.js → BS91Og__.js} +1 -1
  26. package/.output/public/_nuxt/{DKgbchez.js → BTGAvMoT.js} +1 -1
  27. package/.output/public/_nuxt/{BIamiwb7.js → BaLX92Wz.js} +1 -1
  28. package/.output/public/_nuxt/{LWIyaZKe.js → Bc6Zr-Xn.js} +1 -1
  29. package/.output/public/_nuxt/{R7AVOWi_.js → BceMEnJt.js} +1 -1
  30. package/.output/public/_nuxt/{Q2oJNyXL.js → BeCAVtCK.js} +1 -1
  31. package/.output/public/_nuxt/{D_SD71Qf.js → Bf119e7x.js} +1 -1
  32. package/.output/public/_nuxt/BfRcdz11.js +9 -0
  33. package/.output/public/_nuxt/{CxwnFFD0.js → Bl0xzETD.js} +1 -1
  34. package/.output/public/_nuxt/{C_eXufkv.js → BnUQ3i5l.js} +1 -1
  35. package/.output/public/_nuxt/{rPG7kzfL.js → Bp1WeQ0_.js} +1 -1
  36. package/.output/public/_nuxt/{BL8cYWsR.js → Bp31ZRcA.js} +1 -1
  37. package/.output/public/_nuxt/{Drh1_ASq.js → BrxUH8qL.js} +1 -1
  38. package/.output/public/_nuxt/{D72Ce8Ff.js → BsdfEbVC.js} +1 -1
  39. package/.output/public/_nuxt/BtGI4ZbP.js +1 -0
  40. package/.output/public/_nuxt/{BV8EzO8q.js → BuMX-4RF.js} +1 -1
  41. package/.output/public/_nuxt/{DPPhFZOr.js → BuXJR5tn.js} +1 -1
  42. package/.output/public/_nuxt/{Bh2WA4IJ.js → Bx_lfKHl.js} +1 -1
  43. package/.output/public/_nuxt/{vcSKeWsW.js → C4UKyPQn.js} +1 -1
  44. package/.output/public/_nuxt/{IoE3eJ9F.js → C9XCTbtQ.js} +1 -1
  45. package/.output/public/_nuxt/{BilJoEne.js → CEPU6VkU.js} +1 -1
  46. package/.output/public/_nuxt/CHz7LJIX.js +1 -0
  47. package/.output/public/_nuxt/{BPhGDGAR.js → CMhd8IBr.js} +1 -1
  48. package/.output/public/_nuxt/{C5X_N4R7.js → CN1M6i4K.js} +33 -33
  49. package/.output/public/_nuxt/CQLkowA3.js +1 -0
  50. package/.output/public/_nuxt/{DTtizz85.js → CU_2YLhT.js} +1 -1
  51. package/.output/public/_nuxt/{CMVTTE_g.js → CXkXHtcx.js} +1 -1
  52. package/.output/public/_nuxt/{igDJCTgt.js → CZeKW-zP.js} +1 -1
  53. package/.output/public/_nuxt/{9oKY4Zb7.js → CapSEET7.js} +1 -1
  54. package/.output/public/_nuxt/{j2eGYaRa.js → CeExxGSu.js} +1 -1
  55. package/.output/public/_nuxt/{CEgRB8H9.js → CfwpqSe7.js} +1 -1
  56. package/.output/public/_nuxt/{CFKbXp6V.js → ChOtLYkd.js} +1 -1
  57. package/.output/public/_nuxt/ChuJzPWz.js +1 -0
  58. package/.output/public/_nuxt/{Bo73sAu8.js → CiCUZGFZ.js} +1 -1
  59. package/.output/public/_nuxt/{C6R4tyud.js → CkL_oDa8.js} +1 -1
  60. package/.output/public/_nuxt/{DtGJeysS.js → CkhOMiiO.js} +1 -1
  61. package/.output/public/_nuxt/ClmHMP65.js +2 -0
  62. package/.output/public/_nuxt/{BtcDY0Du.js → Cnm0d_7S.js} +1 -1
  63. package/.output/public/_nuxt/{CK2AMqz_.js → CtQMagSz.js} +1 -1
  64. package/.output/public/_nuxt/{B1KjIR-q.js → Ctnn3S3-.js} +1 -1
  65. package/.output/public/_nuxt/{DCeZxpxe.js → CywiLuOD.js} +4 -4
  66. package/.output/public/_nuxt/{oA84LLqO.js → CzRkZLB4.js} +1 -1
  67. package/.output/public/_nuxt/CzyCEdYP.js +1 -0
  68. package/.output/public/_nuxt/{D56yp7m9.js → D-F0Rhjj.js} +1 -1
  69. package/.output/public/_nuxt/D4mPjHHR.js +2 -0
  70. package/.output/public/_nuxt/{BsGvSoPC.js → D4v7lLm3.js} +1 -1
  71. package/.output/public/_nuxt/{CxRTKV-K.js → D6B0WKO0.js} +1 -1
  72. package/.output/public/_nuxt/{jv8U_Tup.js → DAg6jtav.js} +1 -1
  73. package/.output/public/_nuxt/DBXXb0w8.js +1 -0
  74. package/.output/public/_nuxt/{ChlP20A5.js → DHN2t5Vt.js} +1 -1
  75. package/.output/public/_nuxt/{B8tezsWe.js → DJKHXfNS.js} +1 -1
  76. package/.output/public/_nuxt/{CFg5qdS0.js → DMqAUHFN.js} +1 -1
  77. package/.output/public/_nuxt/{C9A3sPDo.js → DURme_kn.js} +1 -1
  78. package/.output/public/_nuxt/{C2hIM5f9.js → DVo_e_uj.js} +1 -1
  79. package/.output/public/_nuxt/{DKhqIou2.js → DXh8q5KY.js} +1 -1
  80. package/.output/public/_nuxt/{CZXeJs2k.js → DXz1Kb4-.js} +1 -1
  81. package/.output/public/_nuxt/{CPrVhXJk.js → DYdwHaco.js} +1 -1
  82. package/.output/public/_nuxt/{WZXZeGYt.js → D_ZAGxCQ.js} +1 -1
  83. package/.output/public/_nuxt/{D5SN7rPK.js → D_dhjJvR.js} +1 -1
  84. package/.output/public/_nuxt/{DR1jFptD.js → DamZHy5M.js} +1 -1
  85. package/.output/public/_nuxt/{xKX9IHe3.js → DbtjJCra.js} +1 -1
  86. package/.output/public/_nuxt/{r6zkA1SE.js → DcOlL-oi.js} +1 -1
  87. package/.output/public/_nuxt/{CxspCKpR.js → DeQ9sIia.js} +1 -1
  88. package/.output/public/_nuxt/{BkHJoHpc.js → DjX1bLZD.js} +1 -1
  89. package/.output/public/_nuxt/{Be0bwdsi.js → Dly7wCCl.js} +1 -1
  90. package/.output/public/_nuxt/DmeogbGY.js +1 -0
  91. package/.output/public/_nuxt/{CfV2N201.js → Dn_-RkxP.js} +1 -1
  92. package/.output/public/_nuxt/{dg6uXTyR.js → DoDo3VF2.js} +1 -1
  93. package/.output/public/_nuxt/{BMlKQMjM.js → DoVHTl-K.js} +1 -1
  94. package/.output/public/_nuxt/DpM8IgHL.js +1 -0
  95. package/.output/public/_nuxt/{B4NjylBn.js → Dpwj_1H5.js} +1 -1
  96. package/.output/public/_nuxt/{DzJa19LG.js → DvSHenmZ.js} +1 -1
  97. package/.output/public/_nuxt/DvYU87_a.js +1 -0
  98. package/.output/public/_nuxt/{G2J1dVVb.js → Dx41arC8.js} +1 -1
  99. package/.output/public/_nuxt/DxBrlj7b.js +1 -0
  100. package/.output/public/_nuxt/{r-HZNbp3.js → JNpNdV-o.js} +1 -1
  101. package/.output/public/_nuxt/Lz9MmwKY.js +1 -0
  102. package/.output/public/_nuxt/OMI0cmZ0.js +1 -0
  103. package/.output/public/_nuxt/{CUWrUpTl.js → UAmyrRCI.js} +1 -1
  104. package/.output/public/_nuxt/{EJllK0wm.js → VBTxfbqU.js} +1 -1
  105. package/.output/public/_nuxt/VbedPPFH.js +1 -0
  106. package/.output/public/_nuxt/{BY9A1aOT.js → _okd7MfH.js} +1 -1
  107. package/.output/public/_nuxt/{BOn5q0rT.js → bmAf49LT.js} +1 -1
  108. package/.output/public/_nuxt/builds/latest.json +1 -1
  109. package/.output/public/_nuxt/builds/meta/0174ebd8-8fa5-4698-aa79-7a8dd2f6527f.json +1 -0
  110. package/.output/public/_nuxt/{D0XWJGhG.js → e-GZmCeP.js} +1 -1
  111. package/.output/public/_nuxt/entry.Dv52uAyn.css +1 -0
  112. package/.output/public/_nuxt/{DVIIj6Vv.js → f9TbT3AM.js} +1 -1
  113. package/.output/public/_nuxt/gdlHFfN6.js +1 -0
  114. package/.output/public/_nuxt/{BTG_PmM5.js → huBoAZeM.js} +1 -1
  115. package/.output/public/_nuxt/{DadksxQ9.js → mYw4b7uY.js} +1 -1
  116. package/.output/public/_nuxt/{B0eHOux4.js → mi7tdFxN.js} +1 -1
  117. package/.output/public/_nuxt/sFe4Zr5j.js +1 -0
  118. package/.output/public/_nuxt/{CLrLFf3s.js → uspGXbik.js} +1 -1
  119. package/.output/public/_nuxt/{DLN-CQXF.js → w7KxwWEv.js} +1 -1
  120. package/.output/public/_nuxt/{Bp55g9gr.js → wa4k1aDz.js} +1 -1
  121. package/.output/public/_nuxt/{C2yZcDch.js → xuB8n0QL.js} +1 -1
  122. package/.output/public/favicon.ico +0 -0
  123. package/.output/public/trace-viewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
  124. package/.output/public/trace-viewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
  125. package/.output/public/trace-viewer/assets/urlMatch-BYQrIQwR.js +1 -0
  126. package/.output/public/trace-viewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  127. package/.output/public/trace-viewer/codeMirrorModule.DYBRYzYX.css +1 -0
  128. package/.output/public/trace-viewer/codicon.DCmgc-ay.ttf +0 -0
  129. package/.output/public/trace-viewer/defaultSettingsView.CjdS-WJx.css +1 -0
  130. package/.output/public/trace-viewer/index.CzXZzn5A.css +1 -0
  131. package/.output/public/trace-viewer/index.DMMX1gXU.js +2 -0
  132. package/.output/public/trace-viewer/index.html +44 -0
  133. package/.output/public/trace-viewer/manifest.webmanifest +16 -0
  134. package/.output/public/trace-viewer/playwright-logo.svg +9 -0
  135. package/.output/public/trace-viewer/snapshot.html +10 -0
  136. package/.output/public/trace-viewer/snapshot.v8KI4P3m.js +2 -0
  137. package/.output/public/trace-viewer/sw.bundle.js +5 -0
  138. package/.output/public/trace-viewer/uiMode.BZQ54Kgt.css +1 -0
  139. package/.output/public/trace-viewer/uiMode.Ut8wwJNp.js +6 -0
  140. package/.output/public/trace-viewer/uiMode.html +18 -0
  141. package/.output/public/trace-viewer/xtermModule.DYP7pi_n.css +32 -0
  142. package/.output/server/chunks/_/users.mjs +1 -1
  143. package/.output/server/chunks/build/{BreadcrumbNav-DBnGj5Jq.mjs → BreadcrumbNav-Bg4QGX0k.mjs} +11 -4
  144. package/.output/server/chunks/build/BreadcrumbNav-Bg4QGX0k.mjs.map +1 -0
  145. package/.output/server/chunks/build/{BrowserBadge-vFb1ERG_.mjs → BrowserBadge-yMgLTBUu.mjs} +17 -9
  146. package/.output/server/chunks/build/BrowserBadge-yMgLTBUu.mjs.map +1 -0
  147. package/.output/server/chunks/build/{ChartMarkerLines-BXqUpUcs.mjs → ChartMarkerLines-D0cTRlxF.mjs} +3 -3
  148. package/.output/server/chunks/build/ChartMarkerLines-D0cTRlxF.mjs.map +1 -0
  149. package/.output/server/chunks/build/{ChartTooltip-DoF6Smyc.mjs → ChartTooltip-B2t6VYYH.mjs} +3 -3
  150. package/.output/server/chunks/build/ChartTooltip-B2t6VYYH.mjs.map +1 -0
  151. package/.output/server/chunks/build/Checkbox-ChSYhiUz.mjs +1 -1
  152. package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs +32 -0
  153. package/.output/server/chunks/build/ClientDate-U97Z1p6-.mjs.map +1 -0
  154. package/.output/server/chunks/build/{CodeBlock-CmvKHaq8.mjs → CodeBlock-DuWhmcI2.mjs} +3 -3
  155. package/.output/server/chunks/build/CodeBlock-DuWhmcI2.mjs.map +1 -0
  156. package/.output/server/chunks/build/DashboardSidebarToggle-a5KYecZ0.mjs +1 -1
  157. package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs +72 -0
  158. package/.output/server/chunks/build/DashboardToolbar-BZoGc0ri.mjs.map +1 -0
  159. package/.output/server/chunks/build/{DataLocationCard-ChV02QJj.mjs → DataLocationCard-DCdhQBIY.mjs} +2 -2
  160. package/.output/server/chunks/build/DataLocationCard-DCdhQBIY.mjs.map +1 -0
  161. package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs → DesktopRunLocallyButton-ChHg3GqK.mjs} +5 -5
  162. package/.output/server/chunks/build/{DesktopRunLocallyButton-BfmbZpiL.mjs.map → DesktopRunLocallyButton-ChHg3GqK.mjs.map} +1 -1
  163. package/.output/server/chunks/build/{DiagnosisPanel-C_ndadzP.mjs → DiagnosisPanel-DE-r2UV8.mjs} +5 -5
  164. package/.output/server/chunks/build/DiagnosisPanel-DE-r2UV8.mjs.map +1 -0
  165. package/.output/server/chunks/build/{DiagnosisResult-GAjo6Lt3.mjs → DiagnosisResult-CrGK--xh.mjs} +16 -10
  166. package/.output/server/chunks/build/DiagnosisResult-CrGK--xh.mjs.map +1 -0
  167. package/.output/server/chunks/build/{DurationValue-CObiBDnH.mjs → DurationValue-Dn06XQk3.mjs} +2 -2
  168. package/.output/server/chunks/build/DurationValue-Dn06XQk3.mjs.map +1 -0
  169. package/.output/server/chunks/build/EntityLinks-BcpvMt_V.mjs +1 -1
  170. package/.output/server/chunks/build/EnvManagedBadge-_8GfjWjE.mjs +1 -1
  171. package/.output/server/chunks/build/{FeatureUnavailable-Buoyoqx1.mjs → FeatureUnavailable-IaBjVCqQ.mjs} +2 -2
  172. package/.output/server/chunks/build/FeatureUnavailable-IaBjVCqQ.mjs.map +1 -0
  173. package/.output/server/chunks/build/{GetStartedWizard-tL3U_qM1.mjs → GetStartedWizard-BiyxEXWP.mjs} +3 -3
  174. package/.output/server/chunks/build/GetStartedWizard-BiyxEXWP.mjs.map +1 -0
  175. package/.output/server/chunks/build/{HelpHint-C96TlqxY.mjs → HelpHint-CdBz6deq.mjs} +2 -2
  176. package/.output/server/chunks/build/HelpHint-CdBz6deq.mjs.map +1 -0
  177. package/.output/server/chunks/build/{MetaStripGroup-Cp2WCQf7.mjs → MetaStripGroup-CDyGlsNt.mjs} +94 -21
  178. package/.output/server/chunks/build/MetaStripGroup-CDyGlsNt.mjs.map +1 -0
  179. package/.output/server/chunks/build/{NavbarActions-VCHW0u67.mjs → NavbarActions-BTWxKCVI.mjs} +2 -2
  180. package/.output/server/chunks/build/NavbarActions-BTWxKCVI.mjs.map +1 -0
  181. package/.output/server/chunks/build/NavigationMenu-D4ZpdCm_.mjs +1 -1
  182. package/.output/server/chunks/build/OpenInIdeLink-Bnl-_som.mjs +1 -1
  183. package/.output/server/chunks/build/{ProjectTestCasesTable-saHYJoyQ.mjs → ProjectTestCasesTable-DJDAZ9NQ.mjs} +9 -9
  184. package/.output/server/chunks/build/ProjectTestCasesTable-DJDAZ9NQ.mjs.map +1 -0
  185. package/.output/server/chunks/build/{RunReports-CKYYRC59.mjs → RunReports-BSo2cCNx.mjs} +4 -4
  186. package/.output/server/chunks/build/RunReports-BSo2cCNx.mjs.map +1 -0
  187. package/.output/server/chunks/build/{RunStatusBadge-CWhmAmKb.mjs → RunStatusBadge-zfeSwcTx.mjs} +2 -2
  188. package/.output/server/chunks/build/RunStatusBadge-zfeSwcTx.mjs.map +1 -0
  189. package/.output/server/chunks/build/{SectionCard-BB1O3uXd.mjs → SectionCard-CKD1s0eF.mjs} +2 -2
  190. package/.output/server/chunks/build/SectionCard-CKD1s0eF.mjs.map +1 -0
  191. package/.output/server/chunks/build/Select-COU8NARj.mjs +1 -1
  192. package/.output/server/chunks/build/SelectMenu-BUwwc3Qt.mjs +1 -1
  193. package/.output/server/chunks/build/{SettingsField-CEasBHu3.mjs → SettingsField-CDnUtiCM.mjs} +3 -3
  194. package/.output/server/chunks/build/SettingsField-CDnUtiCM.mjs.map +1 -0
  195. package/.output/server/chunks/build/Table-BET-DOtX.mjs +1 -1
  196. package/.output/server/chunks/build/{TestCaseHistoryChart-BgI6P_zS.mjs → TestCaseHistoryChart-Do7WK-ZY.mjs} +16 -17
  197. package/.output/server/chunks/build/TestCaseHistoryChart-Do7WK-ZY.mjs.map +1 -0
  198. package/.output/server/chunks/build/{TestStatusBar-DR8jM5th.mjs → TestStatusBar-BipoEOzd.mjs} +15 -6
  199. package/.output/server/chunks/build/TestStatusBar-BipoEOzd.mjs.map +1 -0
  200. package/.output/server/chunks/build/Tooltip-CK0ucuXC.mjs +1 -1
  201. package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs → _id_-BLPB189b.mjs} +16 -16
  202. package/.output/server/chunks/build/{_id_-rQhFY0fN.mjs.map → _id_-BLPB189b.mjs.map} +1 -1
  203. package/.output/server/chunks/build/{_id_-kkexEH_q.mjs → _id_-BeGJOSxY.mjs} +16 -16
  204. package/.output/server/chunks/build/_id_-BeGJOSxY.mjs.map +1 -0
  205. package/.output/server/chunks/build/{_id_-B7Dw490u.mjs → _id_-CfLEW45H.mjs} +472 -304
  206. package/.output/server/chunks/build/_id_-CfLEW45H.mjs.map +1 -0
  207. package/.output/server/chunks/build/{_id_-DVPb1S93.mjs → _id_-DxHe32cW.mjs} +654 -453
  208. package/.output/server/chunks/build/_id_-DxHe32cW.mjs.map +1 -0
  209. package/.output/server/chunks/build/{about-C4AbyQ4q.mjs → about-FLAssVsA.mjs} +5 -5
  210. package/.output/server/chunks/build/about-FLAssVsA.mjs.map +1 -0
  211. package/.output/server/chunks/build/{account-B45bYZd1.mjs → account-Cvz6KkYu.mjs} +4 -4
  212. package/.output/server/chunks/build/account-Cvz6KkYu.mjs.map +1 -0
  213. package/.output/server/chunks/build/{ai-CgN9xXFf.mjs → ai-DR9Zry7B.mjs} +8 -8
  214. package/.output/server/chunks/build/{ai-CgN9xXFf.mjs.map → ai-DR9Zry7B.mjs.map} +1 -1
  215. package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs → analytics-CCAQayhv.mjs} +9 -9
  216. package/.output/server/chunks/build/{analytics-BRkiUpwa.mjs.map → analytics-CCAQayhv.mjs.map} +1 -1
  217. package/.output/server/chunks/build/{auto-heal-BnTdKHQq.mjs → auto-heal-ngiiiVmq.mjs} +4 -4
  218. package/.output/server/chunks/build/auto-heal-ngiiiVmq.mjs.map +1 -0
  219. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  220. package/.output/server/chunks/build/{default-BGOdM_zA.mjs → default-wYpdMMvh.mjs} +15 -13
  221. package/.output/server/chunks/build/{default-BGOdM_zA.mjs.map → default-wYpdMMvh.mjs.map} +1 -1
  222. package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs → docs-BX9DoKOI.mjs} +4 -4
  223. package/.output/server/chunks/build/{docs-D7R5eJ1Z.mjs.map → docs-BX9DoKOI.mjs.map} +1 -1
  224. package/.output/server/chunks/build/{edit-BbL3k6c3.mjs → edit-DnyBC4uC.mjs} +7 -7
  225. package/.output/server/chunks/build/{edit-BbL3k6c3.mjs.map → edit-DnyBC4uC.mjs.map} +1 -1
  226. package/.output/server/chunks/build/fetch-DOcN2mHf.mjs +1 -1
  227. package/.output/server/chunks/build/{help-content-BK3jcgLw.mjs → help-content-3QLSe6Vd.mjs} +3 -3
  228. package/.output/server/chunks/build/help-content-3QLSe6Vd.mjs.map +1 -0
  229. package/.output/server/chunks/build/{import-ibAn_HB9.mjs → import-S-w3MXez.mjs} +8 -8
  230. package/.output/server/chunks/build/import-S-w3MXez.mjs.map +1 -0
  231. package/.output/server/chunks/build/{index-D5A0DW7Y.mjs → index-BFr7JW_2.mjs} +4 -4
  232. package/.output/server/chunks/build/index-BFr7JW_2.mjs.map +1 -0
  233. package/.output/server/chunks/build/{index-CqinXTVs.mjs → index-CdzYiYiu.mjs} +9 -9
  234. package/.output/server/chunks/build/{index-CqinXTVs.mjs.map → index-CdzYiYiu.mjs.map} +1 -1
  235. package/.output/server/chunks/build/{index-DreB_S-d.mjs → index-CgYJur1z.mjs} +31 -23
  236. package/.output/server/chunks/build/index-CgYJur1z.mjs.map +1 -0
  237. package/.output/server/chunks/build/{index-2GmuPNF-.mjs → index-CjnZ521K.mjs} +22 -4
  238. package/.output/server/chunks/build/index-CjnZ521K.mjs.map +1 -0
  239. package/.output/server/chunks/build/{index-KsRegEjT.mjs → index-xgA4P1ht.mjs} +3218 -4087
  240. package/.output/server/chunks/build/index-xgA4P1ht.mjs.map +1 -0
  241. package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs +1 -1
  242. package/.output/server/chunks/build/login-DueFS2RU.mjs +1 -1
  243. package/.output/server/chunks/build/{mcp-Dwj29-uG.mjs → mcp-DlZzubUF.mjs} +7 -7
  244. package/.output/server/chunks/build/mcp-DlZzubUF.mjs.map +1 -0
  245. package/.output/server/chunks/build/{notifications-CjAn5FJj.mjs → notifications-ByPVhyPX.mjs} +6 -6
  246. package/.output/server/chunks/build/notifications-ByPVhyPX.mjs.map +1 -0
  247. package/.output/server/chunks/build/{performance-DRzcu_c7.mjs → performance-Dc9FhaJr.mjs} +6 -6
  248. package/.output/server/chunks/build/performance-Dc9FhaJr.mjs.map +1 -0
  249. package/.output/server/chunks/build/{pr-feedback-DR60oGBf.mjs → pr-feedback-5kC_UmKG.mjs} +4 -4
  250. package/.output/server/chunks/build/pr-feedback-5kC_UmKG.mjs.map +1 -0
  251. package/.output/server/chunks/build/{selections-BjjolRZ9.mjs → selections-C6J9mI0s.mjs} +9 -9
  252. package/.output/server/chunks/build/selections-C6J9mI0s.mjs.map +1 -0
  253. package/.output/server/chunks/build/server.mjs +33 -33
  254. package/.output/server/chunks/build/{settings-B3NWV9tu.mjs → settings-DcCAv0U4.mjs} +17 -81
  255. package/.output/server/chunks/build/settings-DcCAv0U4.mjs.map +1 -0
  256. package/.output/server/chunks/build/{settings-metadata-DwJk8uSt.mjs → settings-metadata-B684YiW4.mjs} +2 -2
  257. package/.output/server/chunks/build/settings-metadata-B684YiW4.mjs.map +1 -0
  258. package/.output/server/chunks/build/{setup-BlgFTixN.mjs → setup-Cf3Mzf-W.mjs} +8 -8
  259. package/.output/server/chunks/build/{setup-BlgFTixN.mjs.map → setup-Cf3Mzf-W.mjs.map} +1 -1
  260. package/.output/server/chunks/build/{storage-C1O-FC0U.mjs → storage-B4VySiv3.mjs} +7 -7
  261. package/.output/server/chunks/build/storage-B4VySiv3.mjs.map +1 -0
  262. package/.output/server/chunks/build/{tags-dsvYrnii.mjs → tags-BvWdsd1F.mjs} +25 -11
  263. package/.output/server/chunks/build/tags-BvWdsd1F.mjs.map +1 -0
  264. package/.output/server/chunks/build/{test-cases-CFiOuyK6.mjs → test-cases-LIIu7dMu.mjs} +11 -11
  265. package/.output/server/chunks/build/test-cases-LIIu7dMu.mjs.map +1 -0
  266. package/.output/server/chunks/build/{test-functions-CbmBi6az.mjs → test-functions-Dv8nezrM.mjs} +8 -8
  267. package/.output/server/chunks/build/test-functions-Dv8nezrM.mjs.map +1 -0
  268. package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs → useCopyRich-DRRKIts2.mjs} +17 -14
  269. package/.output/server/chunks/build/{useCopyRich-DPKZKHvZ.mjs.map → useCopyRich-DRRKIts2.mjs.map} +1 -1
  270. package/.output/server/chunks/build/{useDesktopDownload-R_RWSgUV.mjs → useDesktopDownload-CK-5nATq.mjs} +2 -2
  271. package/.output/server/chunks/build/useDesktopDownload-CK-5nATq.mjs.map +1 -0
  272. package/.output/server/chunks/build/{useDesktopLocalRuns-BdELBy0Y.mjs → useDesktopLocalRuns-BHZic4MJ.mjs} +3 -3
  273. package/.output/server/chunks/build/useDesktopLocalRuns-BHZic4MJ.mjs.map +1 -0
  274. package/.output/server/chunks/build/{useDesktopProjectLink-IUN7SIP2.mjs → useDesktopProjectLink-CqBvnXwG.mjs} +2 -2
  275. package/.output/server/chunks/build/useDesktopProjectLink-CqBvnXwG.mjs.map +1 -0
  276. package/.output/server/chunks/build/useOpenInIde-DS4YXevu.mjs +1 -1
  277. package/.output/server/chunks/build/{useSettingsNav-Dg87E7kY.mjs → useSettingsNav-dyHz-2Bz.mjs} +2 -2
  278. package/.output/server/chunks/build/useSettingsNav-dyHz-2Bz.mjs.map +1 -0
  279. package/.output/server/chunks/build/{users-DgsoiXxQ.mjs → users-CluLB8DL.mjs} +31 -13
  280. package/.output/server/chunks/build/users-CluLB8DL.mjs.map +1 -0
  281. package/.output/server/chunks/nitro/nitro.mjs +839 -680
  282. package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
  283. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +5 -2
  284. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs.map +1 -1
  285. package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
  286. package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
  287. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +42 -26
  288. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs.map +1 -1
  289. package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
  290. package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
  291. package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
  292. package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
  293. package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
  294. package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
  295. package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -1
  296. package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
  297. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +1 -1
  298. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +1 -1
  299. package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +1 -0
  300. package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
  301. package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
  302. package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
  303. package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
  304. package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
  305. package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
  306. package/.output/server/chunks/routes/mcp.post.mjs +1 -1
  307. package/.output/server/chunks/routes/renderer.mjs +1 -1
  308. package/.output/server/chunks/routes/share/_token_.get.mjs +1 -1
  309. package/.output/server/index.mjs +1 -1
  310. package/.output/server/package.json +1 -1
  311. package/package.json +1 -1
  312. package/.output/public/_nuxt/3HmftUHT.js +0 -1
  313. package/.output/public/_nuxt/B7zo6PK8.js +0 -1
  314. package/.output/public/_nuxt/BO4sfkbw.js +0 -1
  315. package/.output/public/_nuxt/BdyXNI2_.js +0 -1
  316. package/.output/public/_nuxt/Bg63qh8W.js +0 -1
  317. package/.output/public/_nuxt/BnhWd06P.js +0 -1
  318. package/.output/public/_nuxt/CHWW6xiX.js +0 -1
  319. package/.output/public/_nuxt/CIPvUOic.js +0 -2
  320. package/.output/public/_nuxt/CVcFbORW.js +0 -9
  321. package/.output/public/_nuxt/CZlz5y13.js +0 -1
  322. package/.output/public/_nuxt/CkV_UG8j.js +0 -1
  323. package/.output/public/_nuxt/D0TpBpCc.js +0 -1
  324. package/.output/public/_nuxt/D3LyIeiJ.js +0 -1
  325. package/.output/public/_nuxt/DcccidY5.js +0 -4
  326. package/.output/public/_nuxt/DqkCbAzo.js +0 -1
  327. package/.output/public/_nuxt/DwH4SIZE.js +0 -1
  328. package/.output/public/_nuxt/DwZS0oRm.js +0 -2
  329. package/.output/public/_nuxt/DxPZIuWy.js +0 -1
  330. package/.output/public/_nuxt/Dyb1FouX.js +0 -1
  331. package/.output/public/_nuxt/builds/meta/a5fb24cc-65e3-4e55-aa12-038fe2de4754.json +0 -1
  332. package/.output/public/_nuxt/entry.BFe0Ua9k.css +0 -1
  333. package/.output/public/_nuxt/i7znB42v.js +0 -1
  334. package/.output/server/chunks/build/BreadcrumbNav-DBnGj5Jq.mjs.map +0 -1
  335. package/.output/server/chunks/build/BrowserBadge-vFb1ERG_.mjs.map +0 -1
  336. package/.output/server/chunks/build/ChartMarkerLines-BXqUpUcs.mjs.map +0 -1
  337. package/.output/server/chunks/build/ChartTooltip-DoF6Smyc.mjs.map +0 -1
  338. package/.output/server/chunks/build/CodeBlock-CmvKHaq8.mjs.map +0 -1
  339. package/.output/server/chunks/build/DataLocationCard-ChV02QJj.mjs.map +0 -1
  340. package/.output/server/chunks/build/DiagnosisPanel-C_ndadzP.mjs.map +0 -1
  341. package/.output/server/chunks/build/DiagnosisResult-GAjo6Lt3.mjs.map +0 -1
  342. package/.output/server/chunks/build/DurationValue-CObiBDnH.mjs.map +0 -1
  343. package/.output/server/chunks/build/FeatureUnavailable-Buoyoqx1.mjs.map +0 -1
  344. package/.output/server/chunks/build/GetStartedWizard-tL3U_qM1.mjs.map +0 -1
  345. package/.output/server/chunks/build/HelpHint-C96TlqxY.mjs.map +0 -1
  346. package/.output/server/chunks/build/MetaStripGroup-Cp2WCQf7.mjs.map +0 -1
  347. package/.output/server/chunks/build/NavbarActions-VCHW0u67.mjs.map +0 -1
  348. package/.output/server/chunks/build/ProjectTestCasesTable-saHYJoyQ.mjs.map +0 -1
  349. package/.output/server/chunks/build/RunReports-CKYYRC59.mjs.map +0 -1
  350. package/.output/server/chunks/build/RunStatusBadge-CWhmAmKb.mjs.map +0 -1
  351. package/.output/server/chunks/build/SectionCard-BB1O3uXd.mjs.map +0 -1
  352. package/.output/server/chunks/build/SettingsField-CEasBHu3.mjs.map +0 -1
  353. package/.output/server/chunks/build/TestCaseHistoryChart-BgI6P_zS.mjs.map +0 -1
  354. package/.output/server/chunks/build/TestStatusBar-DR8jM5th.mjs.map +0 -1
  355. package/.output/server/chunks/build/_id_-B7Dw490u.mjs.map +0 -1
  356. package/.output/server/chunks/build/_id_-DVPb1S93.mjs.map +0 -1
  357. package/.output/server/chunks/build/_id_-kkexEH_q.mjs.map +0 -1
  358. package/.output/server/chunks/build/about-C4AbyQ4q.mjs.map +0 -1
  359. package/.output/server/chunks/build/account-B45bYZd1.mjs.map +0 -1
  360. package/.output/server/chunks/build/auto-heal-BnTdKHQq.mjs.map +0 -1
  361. package/.output/server/chunks/build/help-content-BK3jcgLw.mjs.map +0 -1
  362. package/.output/server/chunks/build/import-ibAn_HB9.mjs.map +0 -1
  363. package/.output/server/chunks/build/index-2GmuPNF-.mjs.map +0 -1
  364. package/.output/server/chunks/build/index-D5A0DW7Y.mjs.map +0 -1
  365. package/.output/server/chunks/build/index-DreB_S-d.mjs.map +0 -1
  366. package/.output/server/chunks/build/index-KsRegEjT.mjs.map +0 -1
  367. package/.output/server/chunks/build/mcp-Dwj29-uG.mjs.map +0 -1
  368. package/.output/server/chunks/build/notifications-CjAn5FJj.mjs.map +0 -1
  369. package/.output/server/chunks/build/performance-DRzcu_c7.mjs.map +0 -1
  370. package/.output/server/chunks/build/pr-feedback-DR60oGBf.mjs.map +0 -1
  371. package/.output/server/chunks/build/selections-BjjolRZ9.mjs.map +0 -1
  372. package/.output/server/chunks/build/settings-B3NWV9tu.mjs.map +0 -1
  373. package/.output/server/chunks/build/settings-metadata-DwJk8uSt.mjs.map +0 -1
  374. package/.output/server/chunks/build/storage-C1O-FC0U.mjs.map +0 -1
  375. package/.output/server/chunks/build/tags-dsvYrnii.mjs.map +0 -1
  376. package/.output/server/chunks/build/test-cases-CFiOuyK6.mjs.map +0 -1
  377. package/.output/server/chunks/build/test-functions-CbmBi6az.mjs.map +0 -1
  378. package/.output/server/chunks/build/useDesktopDownload-R_RWSgUV.mjs.map +0 -1
  379. package/.output/server/chunks/build/useDesktopLocalRuns-BdELBy0Y.mjs.map +0 -1
  380. package/.output/server/chunks/build/useDesktopProjectLink-IUN7SIP2.mjs.map +0 -1
  381. package/.output/server/chunks/build/useSettingsNav-Dg87E7kY.mjs.map +0 -1
  382. package/.output/server/chunks/build/users-DgsoiXxQ.mjs.map +0 -1
@@ -1 +1 @@
1
- import{aQ as We,Z as ke,d as P,X as Ye,bd as Ne,be as qt,ax as nt,Y as Be,a as Me,o as c,e as _,f as g,U as w,b as e,l as H,M as ue,W as Y,bf as Oe,r as G,bg as Re,bh as It,bi as St,bj as st,h as A,R as Se,D as we,bk as wt,C as ge,ad as He,v as V,bl as ut,ay as Ee,V as B,T as ae,bm as dt,aO as kt,a2 as pt,bn as Et,bo as zt,bp as ct,bq as Ft,c as W,F as se,z as De,ai as ft,a1 as At,br as Bt,x as vt,bs as Lt,bt as Ot,bu as Tt,bv as Vt,bw as Kt,bx as Pt,by as Rt,bz as Dt,bA as mt,bB as $t,bC as Mt,$ as qe,bD as Nt,bE as Ht,aA as Gt,k as Ce,t as ve,a0 as Le,bF as jt,aF as xe,a3 as Ut,K as Wt,a4 as Yt,a5 as Xt,a6 as Jt,a7 as Qt,bG as Zt,aK as ea,bH as ta,aL as aa,b1 as et,aM as je,b2 as fe,i as K,g as Fe,_ as Pe,aG as tt,bI as la,j as ia,bJ as oa,I as ra,L as at,bK as lt,bL as Ae,bM as na,aN as sa,a8 as ua,bN as da,bO as pa,bP as ca}from"./BdQ7kfxJ.js";import{u as fa}from"./i7znB42v.js";import{V as va}from"./rPG7kzfL.js";import{u as ma}from"./EJllK0wm.js";function $e(n,r,a){const l=n.findIndex(d=>We(d,r)),i=n.findIndex(d=>We(d,a));if(l===-1||i===-1)return[];const[o,t]=[l,i].sort((d,b)=>d-b);return n.slice(o,t+1)}function ga(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function it(n){return n?.querySelector("[data-state=checked]")}function ba(n,r,a){return n===void 0?!1:Array.isArray(n)?n.some(l=>me(l,r,a)):me(n,r,a)}function me(n,r,a){return n===void 0||r===void 0?!1:typeof n=="string"?n===r:typeof a=="function"?a(n,r):typeof a=="string"?n?.[a]===r?.[a]:We(n,r)}const[Te,ha]=ke("ListboxRoot");var ya=P({__name:"ListboxRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:"vertical"},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:"toggle"},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(n,{expose:r,emit:a}){const l=n,i=a,{multiple:o,highlightOnHover:t,orientation:d,disabled:b,selectionBehavior:F,dir:I}=Ye(l),{getItems:z}=Ne({isProvider:!0}),{handleTypeaheadSearch:v}=qt(),{primitiveElement:h,currentElement:m}=Oe(),p=ga(),C=nt(I),k=fa(m),$=G(),S=G(!1),L=G(!0),E=Be(l,"modelValue",i,{defaultValue:l.defaultValue??(o.value?[]:void 0),passive:l.modelValue===void 0,deep:!0});function de(u){if(S.value=!0,l.multiple){const x=Array.isArray(E.value)?[...E.value]:[],q=x.findIndex(T=>me(T,u,l.by));l.selectionBehavior==="toggle"?(q===-1?x.push(u):x.splice(q,1),E.value=x):(E.value=[u],$.value=u)}else l.selectionBehavior==="toggle"&&me(E.value,u,l.by)?E.value=void 0:E.value=u;setTimeout(()=>{S.value=!1},1)}const O=G(null),ie=G(null),Q=G(!1),oe=G(!1),pe=Re(),be=Re(),re=Re();function ce(){return z().map(u=>u.ref).filter(u=>u.dataset.disabled!=="")}function N(u,x=!0,q){if(!u)return;O.value=u,(q??L.value)&&O.value.focus(),x&&O.value.scrollIntoView({block:"nearest"});const T=z().find(j=>j.ref===u);i("highlight",T)}function R(u){if(Q.value)re.trigger(u);else{const x=z().find(q=>me(q.value,u,l.by));x&&(O.value=x.ref,N(x.ref))}}function X(u){if(O.value&&O.value.isConnected){if(u.ctrlKey||u.metaKey||u.altKey)return;u.preventDefault(),u.stopPropagation(),oe.value||O.value.click()}}function J(u){if(L.value){if(S.value=!0,Q.value)be.trigger(u);else{const x=u.altKey||u.ctrlKey||u.metaKey;if(x&&u.key==="a"&&o.value){const q=z(),T=q.map(ye=>ye.value);E.value=[...T],u.preventDefault();const j=q.at(-1);j&&N(j.ref)}else if(!x){const q=v(u.key,z());q&&N(q)}}setTimeout(()=>{S.value=!1},1)}}function ne(){oe.value=!0}function he(){ue(()=>{oe.value=!1})}function Z(){ue(()=>{const u=new KeyboardEvent("keydown",{key:"PageUp"});y(u)})}function ee(u){const x=O.value;x?.isConnected&&(ie.value=x),O.value=null,i("leave",u)}function Ve(u){const x=new CustomEvent("listbox.entryFocus",{bubbles:!1,cancelable:!0});if(u.currentTarget?.dispatchEvent(x),i("entryFocus",x),!x.defaultPrevented)if(ie.value)N(ie.value);else{const q=ce()?.[0];N(q)}}function y(u){const x=It(u,d.value,C.value);if(!x)return;let q=ce();if(O.value){if(x==="last")q.reverse();else if(x==="prev"||x==="next"){x==="prev"&&q.reverse();const T=q.indexOf(O.value);q=q.slice(T+1)}Ge(u,q[0])}if(q.length){const T=!O.value&&x==="prev"?q.length-1:0;N(q[T])}if(Q.value)return be.trigger(u)}function Ge(u,x){if(!(Q.value||l.selectionBehavior!=="replace"||!o.value||!Array.isArray(E.value)||(u.altKey||u.ctrlKey||u.metaKey)&&!u.shiftKey)&&u.shiftKey){const T=z().filter(_e=>_e.ref.dataset.disabled!=="");let j=T.find(_e=>_e.ref===x)?.value;if(u.key===p.END?j=T.at(-1)?.value:u.key===p.HOME&&(j=T[0]?.value),!j||!$.value)return;const ye=$e(T.map(_e=>_e.value),$.value,j);E.value=ye}}async function Ie(u,x=!0){if(St)if(await ue(),Q.value)pe.trigger({event:u,scroll:x});else{const q=ce(),T=q.find(ye=>ye.dataset.state==="checked"),j=x?void 0:!1;T?N(T,x,j):q.length&&N(q[0],x,j)}}let ze=!1;return Me(E,()=>{if(!S.value){const u=ze;ze=!0,ue(()=>{Ie(void 0,u)})}},{immediate:!0,deep:!0}),r({highlightedElement:O,highlightItem:R,highlightFirstItem:Z,highlightSelected:Ie,getItems:z}),ha({modelValue:E,onValueChange:de,multiple:o,orientation:d,dir:C,disabled:b,highlightOnHover:t,highlightedElement:O,isVirtual:Q,virtualFocusHook:pe,virtualKeydownHook:be,virtualHighlightHook:re,by:l.by,firstValue:$,selectionBehavior:F,focusable:L,onLeave:ee,onEnter:Ve,changeHighlight:N,onKeydownEnter:X,onKeydownNavigation:y,onKeydownTypeAhead:J,onCompositionStart:ne,onCompositionEnd:he,highlightFirstItem:Z}),(u,x)=>(c(),_(e(Y),{ref_key:"primitiveElement",ref:h,as:u.as,"as-child":u.asChild,dir:e(C),"data-disabled":e(b)?"":void 0,onPointerleave:ee,onFocusout:x[0]||(x[0]=async q=>{const T=q.relatedTarget||q.target;await ue(),O.value&&e(m)&&!e(m).contains(T)&&ee(q)})},{default:g(()=>[w(u.$slots,"default",{modelValue:e(E)}),e(k)&&u.name?(c(),_(e(va),{key:0,name:u.name,value:e(E),disabled:e(b),required:u.required},null,8,["name","value","disabled","required"])):H("v-if",!0)]),_:3},8,["as","as-child","dir","data-disabled"]))}}),_a=ya,xa=P({__name:"ListboxContent",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const{CollectionSlot:r}=Ne(),a=Te(),l=st(!1,10);return(i,o)=>(c(),_(e(r),null,{default:g(()=>[A(e(Y),{role:"listbox",as:i.as,"as-child":i.asChild,tabindex:e(a).focusable.value?e(a).highlightedElement.value?"-1":"0":"-1","aria-orientation":e(a).orientation.value,"aria-multiselectable":!!e(a).multiple.value,"data-orientation":e(a).orientation.value,onMousedown:o[0]||(o[0]=we(t=>l.value=!0,["left"])),onFocus:o[1]||(o[1]=t=>{e(l)||e(a).onEnter(t)}),onKeydown:[o[2]||(o[2]=Se(t=>{e(a).orientation.value==="vertical"&&(t.key==="ArrowLeft"||t.key==="ArrowRight")||e(a).orientation.value==="horizontal"&&(t.key==="ArrowUp"||t.key==="ArrowDown")||(t.preventDefault(),e(a).focusable.value&&e(a).onKeydownNavigation(t))},["down","up","left","right","home","end"])),Se(e(a).onKeydownEnter,["enter"]),e(a).onKeydownTypeAhead]},{default:g(()=>[w(i.$slots,"default")]),_:3},8,["as","as-child","tabindex","aria-orientation","aria-multiselectable","data-orientation","onKeydown"])]),_:3}))}}),Ca=xa,qa=P({__name:"ListboxFilter",props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"input"}},emits:["update:modelValue"],setup(n,{emit:r}){const a=n,i=Be(a,"modelValue",r,{defaultValue:"",passive:a.modelValue===void 0}),o=Te(),{primitiveElement:t,currentElement:d}=Oe(),b=V(()=>a.disabled||o.disabled.value||!1),F=G();wt(()=>F.value=o.highlightedElement.value?.id),ge(()=>{o.focusable.value=!1,setTimeout(()=>{a.autoFocus&&d.value?.focus()},1)}),He(()=>{o.focusable.value=!0});const{isComposing:I,handleCompositionStart:z,handleCompositionEnd:v}=ut(k=>{i.value=k.target.value,o.onCompositionEnd(),o.highlightFirstItem()});function h(){o.onCompositionStart(),z()}function m(k){I.value||(i.value=k.target.value,o.highlightFirstItem())}function p(k){I.value||(k.preventDefault(),o.onKeydownNavigation(k))}function C(k){I.value||o.onKeydownEnter(k)}return(k,$)=>(c(),_(e(Y),{ref_key:"primitiveElement",ref:t,as:k.as,"as-child":k.asChild,value:e(i),disabled:b.value?"":void 0,"data-disabled":b.value?"":void 0,"aria-disabled":b.value??void 0,"aria-activedescendant":F.value,type:"text",onKeydown:[Se(p,["down","up","home","end"]),Se(C,["enter"])],onInput:m,onCompositionstart:h,onCompositionend:e(v)},{default:g(()=>[w(k.$slots,"default",{modelValue:e(i)})]),_:3},8,["as","as-child","value","disabled","data-disabled","aria-disabled","aria-activedescendant","onCompositionend"]))}}),Ia=qa;const[Il,Sa]=ke("ListboxGroup");var wa=P({__name:"ListboxGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=Ee(void 0,"reka-listbox-group");return Sa({id:a}),(l,i)=>(c(),_(e(Y),B({role:"group"},r,{"aria-labelledby":e(a)}),{default:g(()=>[w(l.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),ka=wa;const Ea="listbox.select",[za,Fa]=ke("ListboxItem");var Aa=P({__name:"ListboxItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["select"],setup(n,{emit:r}){const a=n,l=r,i=Ee(void 0,"reka-listbox-item"),{CollectionItem:o}=Ne(),{forwardRef:t,currentElement:d}=ae(),b=Te(),F=V(()=>d.value!=null&&d.value===b.highlightedElement.value),I=V(()=>ba(b.modelValue.value,a.value,b.by)),z=V(()=>b.disabled.value||a.disabled);async function v(m){l("select",m),!m?.defaultPrevented&&!z.value&&m&&(b.onValueChange(a.value),b.changeHighlight(d.value))}function h(m){const p={originalEvent:m,value:a.value};kt(Ea,v,p)}return Fa({isSelected:I}),(m,p)=>(c(),_(e(o),{value:m.value},{default:g(()=>[dt([F.value,I.value,z.value,e(b).focusable.value],()=>A(e(Y),B({id:e(i)},m.$attrs,{ref:e(t),role:"option",tabindex:e(b).focusable.value?F.value?"0":"-1":-1,"aria-selected":I.value,as:m.as,"as-child":m.asChild,disabled:z.value?"":void 0,"data-disabled":z.value?"":void 0,"data-highlighted":F.value?"":void 0,"data-state":I.value?"checked":"unchecked",onClick:h,onKeydown:Se(we(h,["prevent"]),["space"]),onPointermove:p[0]||(p[0]=()=>{e(b).highlightedElement.value!==e(d)&&e(b).highlightOnHover.value&&e(b).changeHighlight(e(d),!1,!1)})}),{default:g(()=>[w(m.$slots,"default")]),_:3},16,["id","tabindex","aria-selected","as","as-child","disabled","data-disabled","data-highlighted","data-state","onKeydown"]),p,1)]),_:3},8,["value"]))}}),Ba=Aa,La=P({__name:"ListboxItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const r=n;ae();const a=za();return(l,i)=>e(a).isSelected.value?(c(),_(e(Y),B({key:0,"aria-hidden":"true"},r),{default:g(()=>[w(l.$slots,"default")]),_:3},16)):H("v-if",!0)}}),Oa=La,Ta=P({__name:"ListboxVirtualizer",props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(n){const r=n,a=pt(),l=Te(),i=Et(),{getItems:o}=Ne();l.isVirtual.value=!0;const t=V(()=>{const v=i.value;if(v){const h=window.getComputedStyle(v);return{start:Number.parseFloat(h.paddingBlockStart||h.paddingTop),end:Number.parseFloat(h.paddingBlockEnd||h.paddingBottom)}}else return{start:0,end:0}}),d=ma({get scrollPaddingStart(){return t.value.start},get scrollPaddingEnd(){return t.value.end},get count(){return r.options.length},get horizontal(){return l.orientation.value==="horizontal"},estimateSize(v){return typeof r.estimateSize=="function"?r.estimateSize(v):r.estimateSize??28},getScrollElement(){return i.value},overscan:r.overscan??12}),b=V(()=>d.value.getVirtualItems().map(v=>{const h=a.default({option:r.options[v.index],virtualizer:d.value,virtualItem:v})[0],m=h.type===se&&Array.isArray(h.children)?h.children.find(p=>typeof p.type!="symbol"):h;return{item:v,is:Bt(m,{key:`${v.key}`,"data-index":v.index,"aria-setsize":r.options.length,"aria-posinset":v.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${v.start}px)`,overflowAnchor:"none"}})}}));l.virtualFocusHook.on(({event:v,scroll:h})=>{const m=r.options.findIndex(p=>Array.isArray(l.modelValue.value)?me(p,l.modelValue.value[0],l.by):me(p,l.modelValue.value,l.by));m!==-1?(v?.preventDefault(),d.value.scrollToIndex(m,{align:"start"}),requestAnimationFrame(()=>{const p=it(i.value);p&&(l.changeHighlight(p,h,h?void 0:!1),v&&p?.focus())})):h?l.highlightFirstItem():requestAnimationFrame(()=>{const p=o().find(C=>C.ref.dataset.disabled!=="")?.ref;p&&l.changeHighlight(p,!1,!1)})}),l.virtualHighlightHook.on(v=>{const h=r.options.findIndex(m=>me(m,v,l.by));d.value.scrollToIndex(h,{align:"start"}),requestAnimationFrame(()=>{const m=it(i.value);m&&l.changeHighlight(m)})});const F=st("",1e3),I=V(()=>{const v=h=>r.textContent?r.textContent(h):h?.toString().toLowerCase();return r.options.map((h,m)=>({index:m,textContent:v(h)}))});function z(v,h){if(!l.firstValue?.value||!l.multiple.value||!Array.isArray(l.modelValue.value))return;const p=o().filter(k=>k.ref.dataset.disabled!=="").find(k=>k.ref===l.highlightedElement.value)?.value;if(!p)return;let C=null;switch(h){case"prev":case"next":{C=$e(r.options,l.firstValue.value,p);break}case"first":{C=$e(r.options,l.firstValue.value,r.options?.[0]);break}case"last":{C=$e(r.options,l.firstValue.value,r.options.at(-1));break}}l.modelValue.value=C}return l.virtualKeydownHook.on(v=>{const h=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!h)return;let p=zt[v.key];if(h&&v.key==="a"&&l.multiple.value?(v.preventDefault(),l.modelValue.value=[...r.options],p="last"):v.shiftKey&&p&&z(v,p),["first","last"].includes(p)){v.preventDefault();const C=p==="first"?0:r.options.length-1;d.value.scrollToIndex(C),requestAnimationFrame(()=>{const k=o(),$=p==="first"?k[0]:k.at(-1);$&&l.changeHighlight($.ref)})}else if(!p&&!h){F.value+=v.key;const C=Number(ct()?.getAttribute("data-index")),k=I.value[C].textContent,$=I.value.map(E=>E.textContent??""),S=Ft($,F.value,k),L=I.value.find(E=>E.textContent===S);L&&(d.value.scrollToIndex(L.index,{align:"start"}),requestAnimationFrame(()=>{const E=i.value.querySelector(`[data-index="${L.index}"]`);E instanceof HTMLElement&&l.changeHighlight(E)}))}}),(v,h)=>(c(),W("div",{"data-reka-virtualizer":"",style:At({position:"relative",width:"100%",height:`${e(d).getTotalSize()}px`})},[(c(!0),W(se,null,De(b.value,({is:m,item:p})=>(c(),_(ft(m),{key:p.index}))),128))],4))}}),Va=Ta;const[le,Ka]=ke("ComboboxRoot");var Pa=P({__name:"ComboboxRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","highlight","update:open"],setup(n,{expose:r,emit:a}){const l=n,i=a,{primitiveElement:o,currentElement:t}=Oe(),{multiple:d,disabled:b,ignoreFilter:F,resetSearchTermOnSelect:I,openOnFocus:z,openOnClick:v,dir:h,resetModelValueOnClear:m,highlightOnHover:p}=Ye(l),C=nt(h),k=Be(l,"modelValue",i,{defaultValue:l.defaultValue??(d.value?[]:void 0),passive:l.modelValue===void 0,deep:!0}),$=Be(l,"open",i,{defaultValue:l.defaultOpen,passive:l.open===void 0});async function S(R){$.value=R,re.value="",R?(await ue(),o.value?.highlightSelected(),E.value=!0,O.value?.focus()):(E.value=!1,setTimeout(()=>{!R&&l.resetSearchTermOnBlur&&L.trigger()},1))}const L=Re(),E=G(!1),de=G(!1),O=G(),ie=G(),Q=V(()=>o.value?.highlightedElement??void 0),oe=G(new Map),pe=G(new Map),{contains:be}=Tt({sensitivity:"base"}),re=G(""),ce=V(R=>{if(!re.value||l.ignoreFilter||de.value)return{count:oe.value.size,items:R?.items??new Map,groups:R?.groups??new Set(pe.value.keys())};let X=0;const J=new Map,ne=new Set;for(const[he,Z]of oe.value){const ee=be(Z,re.value);J.set(he,ee?1:0),ee&&X++}for(const[he,Z]of pe.value)for(const ee of Z)if(J.get(ee)>0){ne.add(he);break}return{count:X,items:J,groups:ne}}),N=Ot();return ge(()=>{N?.exposed&&(N.exposed.highlightItem=o.value?.highlightItem,N.exposed.highlightFirstItem=o.value?.highlightFirstItem,N.exposed.highlightSelected=o.value?.highlightSelected)}),r({filtered:ce,highlightedElement:Q,highlightItem:o.value?.highlightItem,highlightFirstItem:o.value?.highlightFirstItem,highlightSelected:o.value?.highlightSelected}),Ka({modelValue:k,multiple:d,disabled:b,open:$,onOpenChange:S,contentId:"",isUserInputted:E,isVirtual:de,inputElement:O,highlightedElement:Q,onInputElementChange:R=>O.value=R,triggerElement:ie,onTriggerElementChange:R=>ie.value=R,parentElement:t,resetSearchTermOnSelect:I,onResetSearchTerm:L.on,allItems:oe,allGroups:pe,filterSearch:re,filterState:ce,ignoreFilter:F,openOnFocus:z,openOnClick:v,resetModelValueOnClear:m}),(R,X)=>(c(),_(e(Lt),null,{default:g(()=>[A(e(_a),B({ref_key:"primitiveElement",ref:o},R.$attrs,{modelValue:e(k),"onUpdate:modelValue":X[0]||(X[0]=J=>vt(k)?k.value=J:null),style:{pointerEvents:e($)?"auto":void 0},as:R.as,"as-child":R.asChild,dir:e(C),multiple:e(d),name:R.name,required:R.required,disabled:e(b),"highlight-on-hover":e(p),by:l.by,onHighlight:X[1]||(X[1]=J=>i("highlight",J))}),{default:g(()=>[w(R.$slots,"default",{open:e($),modelValue:e(k)})]),_:3},16,["modelValue","style","as","as-child","dir","multiple","name","required","disabled","highlight-on-hover","by"])]),_:3}))}}),Ra=Pa,Da=P({__name:"ComboboxAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const{forwardRef:r}=ae();return(a,l)=>(c(),_(e(Vt),{"as-child":"",reference:a.reference},{default:g(()=>[A(e(Y),B({ref:e(r),"as-child":a.asChild,as:a.as},a.$attrs),{default:g(()=>[w(a.$slots,"default")]),_:3},16,["as-child","as"])]),_:3},8,["reference"]))}}),$a=Da;const[Ma,Na]=ke("ComboboxContent");var Ha=P({__name:"ComboboxContentImpl",props:{position:{type:String,required:!1,default:"inline"},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(n,{emit:r}){const a=n,l=r,{position:i}=Ye(a),o=le(),t=V(()=>o.ignoreFilter.value?o.allItems.value.size===0:o.filterState.value.count===0),{forwardRef:d,currentElement:b}=ae();Kt(a.bodyLock),Pt(),Rt(o.parentElement);const F=V(()=>a.position==="popper"?a:{}),I=Dt(F.value),z={boxSizing:"border-box","--reka-combobox-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-combobox-content-available-width":"var(--reka-popper-available-width)","--reka-combobox-content-available-height":"var(--reka-popper-available-height)","--reka-combobox-trigger-width":"var(--reka-popper-anchor-width)","--reka-combobox-trigger-height":"var(--reka-popper-anchor-height)"};Na({position:i});const v=G(!1);ge(()=>{o.inputElement.value&&(v.value=b.value.contains(o.inputElement.value),v.value&&o.inputElement.value.focus())}),He(()=>{const m=ct();v.value&&(!m||m===document.body)&&o.triggerElement.value?.focus()});function h(m){if(o.parentElement.value?.contains(m))return!0;const C=(m instanceof Element?m.closest("label"):null)?.control;return!!C&&!!o.parentElement.value?.contains(C)}return(m,p)=>(c(),_(e(Ca),{"as-child":""},{default:g(()=>[A(e(mt),{"as-child":"",onMountAutoFocus:p[5]||(p[5]=we(()=>{},["prevent"])),onUnmountAutoFocus:p[6]||(p[6]=we(()=>{},["prevent"]))},{default:g(()=>[A(e($t),{"as-child":"","disable-outside-pointer-events":m.disableOutsidePointerEvents,onDismiss:p[0]||(p[0]=C=>e(o).onOpenChange(!1)),onFocusOutside:p[1]||(p[1]=C=>{h(C.target)&&C.preventDefault(),l("focusOutside",C)}),onInteractOutside:p[2]||(p[2]=C=>l("interactOutside",C)),onEscapeKeyDown:p[3]||(p[3]=C=>l("escapeKeyDown",C)),onPointerDownOutside:p[4]||(p[4]=C=>{h(C.target)&&C.preventDefault(),l("pointerDownOutside",C)})},{default:g(()=>[(c(),_(ft(e(i)==="popper"?e(Mt):e(Y)),B({...m.$attrs,...e(I)},{id:e(o).contentId,ref:e(d),"memo-dependencies":e(i)==="popper"?[e(o).filterSearch.value,e(o).filterState.value]:void 0,"data-state":e(o).open.value?"open":"closed","data-empty":t.value?"":void 0,style:{display:a.hideWhenEmpty&&t.value?"none":"flex",flexDirection:"column",outline:"none",...e(i)==="popper"?z:{}}}),{default:g(()=>[w(m.$slots,"default")]),_:3},16,["id","memo-dependencies","data-state","data-empty","style"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Ga=Ha,ja=P({__name:"ComboboxArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(n){const r=n,a=le(),l=Ma();return ae(),(i,o)=>e(a).open.value&&e(l).position.value==="popper"?(c(),_(e(Nt),qe(B({key:0},r)),{default:g(()=>[w(i.$slots,"default")]),_:3},16)):H("v-if",!0)}}),Ua=ja,Wa=P({__name:"ComboboxCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n;ae();const a=le();function l(){a.filterSearch.value="",a.inputElement.value&&(a.inputElement.value.value="",a.inputElement.value.focus()),a.resetModelValueOnClear?.value&&(a.modelValue.value=a.multiple.value?[]:null)}return(i,o)=>(c(),_(e(Y),B({type:i.as==="button"?"button":void 0},r,{tabindex:"-1",onClick:l}),{default:g(()=>[w(i.$slots,"default")]),_:3},16,["type"]))}}),Ya=Wa,Xa=P({__name:"ComboboxContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(n,{emit:r}){const i=Ht(n,r),{forwardRef:o}=ae(),t=le();return t.contentId||=Ee(void 0,"reka-combobox-content"),(d,b)=>(c(),_(e(Gt),{present:d.forceMount||e(t).open.value},{default:g(()=>[A(Ga,B({...e(i),...d.$attrs},{ref:e(o)}),{default:g(()=>[w(d.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Ja=Xa,Qa=P({__name:"ComboboxEmpty",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=le(),l=V(()=>a.ignoreFilter.value?a.allItems.value.size===0:a.filterState.value.count===0);return(i,o)=>l.value?(c(),_(e(Y),qe(B({key:0},r)),{default:g(()=>[w(i.$slots,"default",{},()=>[o[0]||(o[0]=Ce("No options"))])]),_:3},16)):H("v-if",!0)}}),Za=Qa;const[gt,el]=ke("ComboboxGroup");var tl=P({__name:"ComboboxGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=Ee(void 0,"reka-combobox-group"),l=le(),i=V(()=>l.ignoreFilter.value?!0:l.filterSearch.value?l.filterState.value.groups.has(a):!0),o=el({id:a,labelId:""});return ge(()=>{l.allGroups.value.has(a)||l.allGroups.value.set(a,new Set)}),He(()=>{l.allGroups.value.delete(a)}),(t,d)=>(c(),_(e(ka),B({id:e(a),"aria-labelledby":e(o).labelId},r,{hidden:i.value?void 0:!0}),{default:g(()=>[w(t.$slots,"default")]),_:3},16,["id","aria-labelledby","hidden"]))}}),Ue=tl,al=P({__name:"ComboboxInput",props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"input"}},emits:["update:modelValue"],setup(n,{emit:r}){const a=n,l=r,i=le(),o=Te(),{primitiveElement:t,currentElement:d}=Oe(),b=Be(a,"modelValue",l,{passive:a.modelValue===void 0});ge(()=>{d.value&&i.onInputElementChange(d.value)});const{isComposing:F,handleCompositionStart:I,handleCompositionEnd:z}=ut(S=>{const L=S.target;L&&h(L.value)});function v(S){F.value||(S.preventDefault(),i.open.value||i.onOpenChange(!0))}function h(S){i.open.value?i.filterSearch.value=S:(i.onOpenChange(!0),ue(()=>{S&&(i.filterSearch.value=S,o.highlightFirstItem())}))}function m(S){F.value||h(S.target.value)}function p(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function C(S){if(!i.open.value)return;const L=S.relatedTarget;if(!L)return;const E=i.parentElement.value?.contains(L),de=document.getElementById(i.contentId)?.contains(L);!E&&!de&&requestAnimationFrame(()=>{if(!i.open.value)return;const O=document.activeElement;!i.parentElement.value?.contains(O)&&!document.getElementById(i.contentId)?.contains(O)&&i.onOpenChange(!1)})}function k(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function $(){const S=i.modelValue.value;a.displayValue?b.value=a.displayValue(S):!i.multiple.value&&S&&!Array.isArray(S)&&typeof S!="object"?b.value=S.toString():b.value="",ue(()=>{b.value=b.value})}return i.onResetSearchTerm(()=>{$()}),Me(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&$()},{immediate:!0,deep:!0}),Me(i.filterState,(S,L)=>{!i.isVirtual.value&&L.count===0&&o.highlightFirstItem()}),(S,L)=>(c(),_(e(Ia),{ref_key:"primitiveElement",ref:t,modelValue:e(b),"onUpdate:modelValue":L[0]||(L[0]=E=>vt(b)?b.value=E:null),as:S.as,"as-child":S.asChild,"auto-focus":S.autoFocus,disabled:S.disabled,"aria-expanded":e(i).open.value,"aria-controls":e(i).contentId,"aria-autocomplete":"list",role:"combobox",autocomplete:"off",onClick:k,onInput:m,onKeydown:Se(v,["down","up"]),onFocus:p,onBlur:C,onCompositionstart:e(I),onCompositionend:e(z)},{default:g(()=>[w(S.$slots,"default")]),_:3},8,["modelValue","as","as-child","auto-focus","disabled","aria-expanded","aria-controls","onCompositionstart","onCompositionend"]))}}),ll=al,il=P({__name:"ComboboxItem",props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(n,{emit:r}){const a=n,l=r,i=Ee(void 0,"reka-combobox-item"),o=le(),t=gt(null),{primitiveElement:d,currentElement:b}=Oe();if(a.value==="")throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");const F=V(()=>{if(o.isVirtual.value||o.ignoreFilter.value||!o.filterSearch.value)return!0;{const I=o.filterState.value.items.get(i);return I===void 0?!0:I>0}});return ge(()=>{o.allItems.value.set(i,a.textValue||b.value.textContent||b.value.innerText);const I=t?.id;I&&(o.allGroups.value.has(I)?o.allGroups.value.get(I)?.add(i):o.allGroups.value.set(I,new Set([i])))}),He(()=>{o.allItems.value.delete(i)}),(I,z)=>F.value?dt([F.value,e(o).filterSearch.value,e(o).disabled.value,I.disabled,a.value,a.as,a.asChild,...Object.values(I.$attrs)],()=>(c(),_(e(Ba),B({key:0},a,{id:e(i),ref_key:"primitiveElement",ref:d,disabled:e(o).disabled.value||I.disabled,onSelect:z[0]||(z[0]=v=>{l("select",v),!v.defaultPrevented&&(!e(o).multiple.value&&!I.disabled&&!e(o).disabled.value?(v.preventDefault(),e(o).onOpenChange(!1),e(o).modelValue.value=a.value):e(o).multiple.value&&e(o).inputElement.value?.focus())})}),{default:g(()=>[w(I.$slots,"default",{},()=>[Ce(ve(I.value),1)])]),_:3},16,["id","disabled"])),z,1):H("v-if",!0)}}),ot=il,ol=P({__name:"ComboboxItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const r=n;return(a,l)=>(c(),_(e(Oa),qe(Le(r)),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),rl=ol,nl=P({__name:"ComboboxLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(n){const r=n;ae();const a=gt({id:"",labelId:""});return a.labelId||=Ee(void 0,"reka-combobox-group-label"),(l,i)=>(c(),_(e(Y),B(r,{id:e(a).labelId}),{default:g(()=>[w(l.$slots,"default")]),_:3},16,["id"]))}}),sl=nl,ul=P({__name:"ComboboxPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const r=n;return(a,l)=>(c(),_(e(jt),qe(Le(r)),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),dl=ul,pl=P({__name:"ComboboxSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n;return ae(),(a,l)=>(c(),_(e(Y),B(r,{"aria-hidden":"true"}),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),cl=pl,fl=P({__name:"ComboboxTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n,{forwardRef:a,currentElement:l}=ae(),i=le(),o=V(()=>r.disabled||i.disabled.value||!1);return ge(()=>{l.value&&i.onTriggerElementChange(l.value)}),(t,d)=>(c(),_(e(Y),B(r,{ref:e(a),type:t.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":e(i).open.value,"aria-controls":e(i).contentId,"data-state":e(i).open.value?"open":"closed",disabled:o.value,"data-disabled":o.value?"":void 0,"aria-disabled":o.value??void 0,onClick:d[0]||(d[0]=b=>e(i).onOpenChange(!e(i).open.value))}),{default:g(()=>[w(t.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"]))}}),vl=fl,ml=P({__name:"ComboboxVirtualizer",props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(n){const r=n,a=le();return a.isVirtual.value=!0,(l,i)=>(c(),_(Va,qe(Le(r)),{default:g(o=>[w(l.$slots,"default",qe(Le(o)))]),_:3},16))}}),gl=ml;function bl(n,r){if(typeof n!="object"||n===null)return!1;const a=xe(n,r);return a!=null&&a!==""}function rt(n,r){return r?{xs:44,sm:48,md:52,lg:56,xl:60}[n]:{xs:24,sm:28,md:32,lg:36,xl:40}[n]}function hl(n,r,a,l){const i=rt(r,!0),o=rt(r,!1);return l?()=>i:a?t=>bl(n[t],a)?i:o:()=>o}const yl={slots:{base:["relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leading:"absolute inset-y-0 start-0 flex items-center",leadingIcon:"shrink-0 text-dimmed",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailing:"absolute inset-y-0 end-0 flex items-center",trailingIcon:"shrink-0 text-dimmed",value:"truncate pointer-events-none",placeholder:"truncate text-dimmed",arrow:"fill-bg stroke-default",content:["max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col","max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],viewport:"relative scroll-py-1 overflow-y-auto flex-1",group:"p-1 isolate",empty:"text-center text-muted",label:"font-semibold text-highlighted",separator:"-mx-1 my-1 h-px bg-border",item:["group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default","transition-colors"],itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemLeadingChip:"shrink-0",itemLeadingChipSize:"",itemTrailing:"ms-auto inline-flex gap-1.5 items-center",itemTrailingIcon:"shrink-0",itemWrapper:"flex-1 flex flex-col min-w-0",itemLabel:"truncate",itemDescription:"truncate text-muted",input:"border-b border-default",focusScope:"flex flex-col min-h-0",trailingClear:"p-0"},variants:{fieldGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},size:{xs:{base:"px-2 py-1 text-xs gap-1",leading:"ps-2",trailing:"pe-2",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1 text-[10px]/3 gap-1",item:"p-1 text-xs gap-1",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2 text-xs"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1.5 text-[10px]/3 gap-1.5",item:"p-1.5 text-xs gap-1.5",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2.5 text-xs"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-sm gap-1.5",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-2.5 text-sm"},lg:{base:"px-3 py-2 text-sm gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-2 text-xs gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-3 text-sm"},xl:{base:"px-3 py-2 text-base gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6",label:"p-2 text-sm gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemLeadingChip:"size-6",itemLeadingChipSize:"lg",itemTrailingIcon:"size-6",empty:"p-3 text-base"}},variant:{outline:"text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default",soft:"text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",subtle:"text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated",ghost:"text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",none:"text-highlighted bg-transparent focus:outline-none"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},leading:{true:""},trailing:{true:""},loading:{true:""},highlight:{true:""},fixed:{false:""},type:{file:"file:me-1.5 file:font-medium file:text-muted file:outline-none"},position:{popper:{content:"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"},"item-aligned":{content:""}},multiple:{true:""},virtualize:{true:{viewport:"p-1 isolate"},false:{viewport:"divide-y divide-default"}}},compoundVariants:[{color:"primary",variant:["outline","subtle"],class:"outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"},{color:"secondary",variant:["outline","subtle"],class:"outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"},{color:"success",variant:["outline","subtle"],class:"outline-success/25 focus-visible:outline-3 focus-visible:ring-success"},{color:"info",variant:["outline","subtle"],class:"outline-info/25 focus-visible:outline-3 focus-visible:ring-info"},{color:"warning",variant:["outline","subtle"],class:"outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"},{color:"error",variant:["outline","subtle"],class:"outline-error/25 focus-visible:outline-3 focus-visible:ring-error"},{color:"primary",variant:["soft","ghost"],class:"outline-primary/25 focus-visible:outline-3"},{color:"secondary",variant:["soft","ghost"],class:"outline-secondary/25 focus-visible:outline-3"},{color:"success",variant:["soft","ghost"],class:"outline-success/25 focus-visible:outline-3"},{color:"info",variant:["soft","ghost"],class:"outline-info/25 focus-visible:outline-3"},{color:"warning",variant:["soft","ghost"],class:"outline-warning/25 focus-visible:outline-3"},{color:"error",variant:["soft","ghost"],class:"outline-error/25 focus-visible:outline-3"},{color:"primary",highlight:!0,class:"ring ring-inset ring-primary"},{color:"secondary",highlight:!0,class:"ring ring-inset ring-secondary"},{color:"success",highlight:!0,class:"ring ring-inset ring-success"},{color:"info",highlight:!0,class:"ring ring-inset ring-info"},{color:"warning",highlight:!0,class:"ring ring-inset ring-warning"},{color:"error",highlight:!0,class:"ring ring-inset ring-error"},{color:"neutral",variant:["outline","subtle"],class:"outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"},{color:"neutral",variant:["soft","ghost"],class:"outline-inverted/25 focus-visible:outline-3"},{color:"neutral",highlight:!0,class:"ring ring-inset ring-inverted"},{leading:!0,size:"xs",class:"ps-7"},{leading:!0,size:"sm",class:"ps-8"},{leading:!0,size:"md",class:"ps-9"},{leading:!0,size:"lg",class:"ps-10"},{leading:!0,size:"xl",class:"ps-11"},{trailing:!0,size:"xs",class:"pe-7"},{trailing:!0,size:"sm",class:"pe-8"},{trailing:!0,size:"md",class:"pe-9"},{trailing:!0,size:"lg",class:"pe-10"},{trailing:!0,size:"xl",class:"pe-11"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}},{fixed:!1,size:"xs",class:"md:text-xs"},{fixed:!1,size:"sm",class:"md:text-xs"},{fixed:!1,size:"md",class:"md:text-sm"},{fixed:!1,size:"lg",class:"md:text-sm"}],defaultVariants:{size:"md",color:"primary",variant:"outline",position:"popper"}},Sl=Object.assign({inheritAttrs:!1},{__name:"USelectMenu",props:at({id:{type:String,required:!1},placeholder:{type:String,required:!1},searchInput:{type:[Boolean,Object],required:!1,default:!0},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},clear:{type:[Boolean,Object],required:!1},clearIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},createItem:{type:[Boolean,String,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},resetModelValueOnClear:{type:Boolean,required:!1,default:!0},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:at(["change","blur","focus","create","clear","highlight","update:modelValue","update:open"],["update:searchTerm"]),setup(n,{expose:r,emit:a}){const l=n,i=a,o=pt(),t=Ut("selectMenu",l),d=Wt(n,"searchTerm",{type:String,default:""}),{t:b}=Yt(),F=Xt(),{filterGroups:I}=ca(),z=Jt(Qt(t,"modelValue","defaultValue","open","defaultOpen","required","multiple","resetSearchTermOnBlur","resetSearchTermOnSelect","resetModelValueOnClear","highlightOnHover","by"),i),v=Zt(fe(()=>t.portal)),h=fe(()=>Ae(t.content,{side:"bottom",sideOffset:8,collisionPadding:8,position:"popper"})),m=fe(()=>Ae(t.arrow,{rounded:!0})),p=V(()=>typeof t.clear=="object"?t.clear:{}),C=fe(()=>t.virtualize?Ae(typeof t.virtualize=="boolean"?{}:t.virtualize,{estimateSize:hl(x.value,ne.value||"md",t.descriptionKey,!!o["item-description"])}):!1),k=fe(()=>Ae(t.searchInput,{placeholder:b("selectMenu.search"),variant:"none"})),{emitFormBlur:$,emitFormFocus:S,emitFormInput:L,emitFormChange:E,size:de,color:O,id:ie,name:Q,highlight:oe,disabled:pe,ariaAttrs:be}=ea(l),{orientation:re,size:ce}=ta(l),{isLeading:N,isTrailing:R,leadingIconName:X,trailingIconName:J}=aa(fe(()=>Ae(t,{trailingIcon:F.ui.icons.chevronDown}))),ne=V(()=>ce.value||de.value),[he,Z]=et(),[ee,Ve]=et({props:{item:{type:[Object,String,Number,Boolean],required:!0},index:{type:Number,required:!1}}}),y=V(()=>ua({extend:yl,...F.ui?.selectMenu||{}})({color:O.value??t.color,variant:t.variant,size:ne?.value??t.size,loading:t.loading,highlight:oe.value??t.highlight,leading:N.value||!!t.avatar||!!o.leading,trailing:R.value||!!o.trailing,fieldGroup:re.value,virtualize:!!t.virtualize,multiple:t.multiple}));function Ge(f){if(t.multiple&&Array.isArray(f)){const D=f.map(s=>lt(ze.value,s,{labelKey:t.labelKey,valueKey:t.valueKey,by:t.by})).filter(s=>s!=null&&s!=="");return D.length>0?D.join(", "):void 0}return lt(ze.value,f,{labelKey:t.labelKey,valueKey:t.valueKey,by:t.by})}const Ie=V(()=>t.items?.length?pa(t.items)?t.items:[t.items]:[]),ze=V(()=>Ie.value.flatMap(f=>f)),u=V(()=>{if(t.ignoreFilter||!d.value)return Ie.value;const f=Array.isArray(t.filterFields)?t.filterFields:[t.labelKey];return I(Ie.value,d.value,{fields:f,isStructural:D=>M(D)&&!!D.type&&["label","separator"].includes(D.type)})}),x=V(()=>u.value.flatMap(f=>f)),q=V(()=>{if(!t.createItem||!d.value)return!1;const f=t.valueKey?{[t.valueKey]:d.value}:d.value;return typeof t.createItem=="object"&&t.createItem.when==="always"||t.createItem==="always"?!x.value.find(D=>da(D,f,t.by??t.valueKey)):!x.value.length}),T=V(()=>typeof t.createItem=="object"?t.createItem.position:"bottom"),j=je("triggerRef");function ye(){t.autofocus&&j.value?.$el?.focus({focusVisible:!0})}ge(()=>{setTimeout(()=>{ye()},t.autofocusDelay)});function _e(f){if(na(t.modelValue)===f)return;t.modelModifiers?.trim&&(typeof f=="string"||f===null||f===void 0)&&(f=f?.trim()??null),t.modelModifiers?.number&&(f=sa(f)),t.modelModifiers?.nullable&&(f??=null),t.modelModifiers?.optional&&!t.modelModifiers?.nullable&&f!==null&&(f??=void 0);const D=new Event("change",{target:{value:f}});i("change",D),E(),L(),t.resetSearchTermOnSelect&&(d.value="")}const Xe=G(!1);function bt(f){Xe.value=f;let D;if(f){const s=new FocusEvent("focus");i("focus",s),S(),clearTimeout(D)}else{const s=new FocusEvent("blur");i("blur",s),$(),t.resetSearchTermOnBlur&&(D=setTimeout(()=>{d.value=""},100))}}function ht(f){f.preventDefault(),f.stopPropagation(),i("create",d.value)}function yt(f,D){if(M(D)){if(D.disabled){f.preventDefault();return}D.onSelect?.(f)}}function M(f){return typeof f=="object"&&f!==null}function _t(f){return t.multiple&&Array.isArray(f)?f.length===0:f==null||f===""}function xt(){i("clear")}const Je=je("viewportRef"),Qe=je("comboboxRootRef");return Me(()=>t.items,async()=>{!Xe.value||!t.createItem||(await ue(),Qe.value?.highlightFirstItem?.())},{flush:"post"}),r({triggerRef:fe(()=>j.value?.$el),viewportRef:fe(()=>Je.value)}),(f,D)=>(c(),W(se,null,[A(e(he),null,{default:g(()=>[A(e(ot),{"data-slot":"item",class:K(y.value.item({class:e(t).ui?.item})),value:d.value,onSelect:ht},{default:g(()=>[Fe("span",{"data-slot":"itemLabel",class:K(y.value.itemLabel({class:e(t).ui?.itemLabel}))},[w(f.$slots,"create-item-label",{item:d.value},()=>[Ce(ve(e(b)("selectMenu.create",{label:d.value})),1)])],2)]),_:3},8,["class","value"])]),_:3}),A(e(ee),null,{default:g(({item:s,index:te})=>[M(s)&&s.type==="label"?(c(),_(e(sl),{key:0,"data-slot":"label",class:K(y.value.label({class:[e(t).ui?.label,s.ui?.label,s.class]}))},{default:g(()=>[Ce(ve(e(xe)(s,e(t).labelKey)),1)]),_:2},1032,["class"])):M(s)&&s.type==="separator"?(c(),_(e(cl),{key:1,"data-slot":"separator",class:K(y.value.separator({class:[e(t).ui?.separator,s.ui?.separator,s.class]}))},null,8,["class"])):(c(),_(e(ot),{key:2,"data-slot":"item",class:K(y.value.item({class:[e(t).ui?.item,M(s)&&s.ui?.item,M(s)&&s.class]})),disabled:M(s)&&s.disabled,value:e(t).valueKey&&M(s)?e(xe)(s,e(t).valueKey):s,onSelect:U=>yt(U,s)},{default:g(()=>[w(f.$slots,"item",{item:s,index:te,ui:y.value},()=>[w(f.$slots,"item-leading",{item:s,index:te,ui:y.value},()=>[M(s)&&s.icon?(c(),_(Pe,{key:0,name:s.icon,"data-slot":"itemLeadingIcon",class:K(y.value.itemLeadingIcon({class:[e(t).ui?.itemLeadingIcon,s.ui?.itemLeadingIcon]}))},null,8,["name","class"])):M(s)&&s.avatar?(c(),_(tt,B({key:1,size:s.ui?.itemLeadingAvatarSize||e(t).ui?.itemLeadingAvatarSize||y.value.itemLeadingAvatarSize()},s.avatar,{"data-slot":"itemLeadingAvatar",class:y.value.itemLeadingAvatar({class:[e(t).ui?.itemLeadingAvatar,s.ui?.itemLeadingAvatar]})}),null,16,["size","class"])):M(s)&&s.chip?(c(),_(la,B({key:2,size:s.ui?.itemLeadingChipSize||e(t).ui?.itemLeadingChipSize||y.value.itemLeadingChipSize(),inset:"",standalone:""},s.chip,{"data-slot":"itemLeadingChip",class:y.value.itemLeadingChip({class:[e(t).ui?.itemLeadingChip,s.ui?.itemLeadingChip]})}),null,16,["size","class"])):H("",!0)]),Fe("span",{"data-slot":"itemWrapper",class:K(y.value.itemWrapper({class:[e(t).ui?.itemWrapper,M(s)&&s.ui?.itemWrapper]}))},[Fe("span",{"data-slot":"itemLabel",class:K(y.value.itemLabel({class:[e(t).ui?.itemLabel,M(s)&&s.ui?.itemLabel]}))},[w(f.$slots,"item-label",{item:s,index:te},()=>[Ce(ve(M(s)?e(xe)(s,e(t).labelKey):s),1)])],2),M(s)&&(e(xe)(s,e(t).descriptionKey)||o["item-description"])?(c(),W("span",{key:0,"data-slot":"itemDescription",class:K(y.value.itemDescription({class:[e(t).ui?.itemDescription,M(s)&&s.ui?.itemDescription]}))},[w(f.$slots,"item-description",{item:s,index:te},()=>[Ce(ve(e(xe)(s,e(t).descriptionKey)),1)])],2)):H("",!0)],2),Fe("span",{"data-slot":"itemTrailing",class:K(y.value.itemTrailing({class:[e(t).ui?.itemTrailing,M(s)&&s.ui?.itemTrailing]}))},[w(f.$slots,"item-trailing",{item:s,index:te,ui:y.value}),A(e(rl),{"as-child":""},{default:g(()=>[A(Pe,{name:e(t).selectedIcon||e(F).ui.icons.check,"data-slot":"itemTrailingIcon",class:K(y.value.itemTrailingIcon({class:[e(t).ui?.itemTrailingIcon,M(s)&&s.ui?.itemTrailingIcon]}))},null,8,["name","class"])]),_:2},1024)],2)])]),_:2},1032,["class","disabled","value","onSelect"]))]),_:3}),A(e(Ra),B({ref_key:"comboboxRootRef",ref:Qe},e(z),{"ignore-filter":"","as-child":"",name:e(Q),disabled:e(pe),"onUpdate:modelValue":_e,"onUpdate:open":bt}),{default:g(({modelValue:s,open:te})=>[A(e($a),{"as-child":""},{default:g(()=>[A(e(vl),B({id:e(ie),ref_key:"triggerRef",ref:j,"data-slot":"base",class:y.value.base({class:[e(t).ui?.base,e(t).class]}),tabindex:"0"},{...f.$attrs,...e(be)}),{default:g(()=>[e(N)||e(t).avatar||o.leading?(c(),W("span",{key:0,"data-slot":"leading",class:K(y.value.leading({class:e(t).ui?.leading}))},[w(f.$slots,"leading",{modelValue:s,open:te,ui:y.value},()=>[e(N)&&e(X)?(c(),_(Pe,{key:0,name:e(X),"data-slot":"leadingIcon",class:K(y.value.leadingIcon({class:e(t).ui?.leadingIcon}))},null,8,["name","class"])):e(t).avatar?(c(),_(tt,B({key:1,size:e(t).ui?.itemLeadingAvatarSize||y.value.itemLeadingAvatarSize()},e(t).avatar,{"data-slot":"itemLeadingAvatar",class:y.value.itemLeadingAvatar({class:e(t).ui?.itemLeadingAvatar})}),null,16,["size","class"])):H("",!0)])],2)):H("",!0),w(f.$slots,"default",{modelValue:s,open:te,ui:y.value},()=>[(c(!0),W(se,null,De([Ge(s)],U=>(c(),W(se,{key:U},[U!=null?(c(),W("span",{key:0,"data-slot":"value",class:K(y.value.value({class:e(t).ui?.value}))},ve(U),3)):(c(),W("span",{key:1,"data-slot":"placeholder",class:K(y.value.placeholder({class:e(t).ui?.placeholder}))},ve(e(t).placeholder??" "),3))],64))),128))]),e(R)||o.trailing||e(t).clear?(c(),W("span",{key:1,"data-slot":"trailing",class:K(y.value.trailing({class:e(t).ui?.trailing}))},[w(f.$slots,"trailing",{modelValue:s,open:te,ui:y.value},()=>[e(t).clear&&!_t(s)?(c(),_(e(Ya),{key:0,"as-child":""},{default:g(()=>[A(ia,B({as:"span",icon:e(t).clearIcon||e(F).ui.icons.close,size:ne.value,variant:"link",color:"neutral",tabindex:"-1"},p.value,{"data-slot":"trailingClear",class:y.value.trailingClear({class:e(t).ui?.trailingClear}),onClick:we(xt,["stop"])}),null,16,["icon","size","class"])]),_:1})):e(J)?(c(),_(Pe,{key:1,name:e(J),"data-slot":"trailingIcon",class:K(y.value.trailingIcon({class:e(t).ui?.trailingIcon}))},null,8,["name","class"])):H("",!0)])],2)):H("",!0)]),_:2},1040,["id","class"])]),_:2},1024),A(e(dl),qe(Le(e(v))),{default:g(()=>[A(e(oa),null,{default:g(()=>[A(e(Ja),B({"data-slot":"content",class:y.value.content({class:e(t).ui?.content})},h.value),{default:g(()=>[A(e(mt),{trapped:"","data-slot":"focusScope",class:K(y.value.focusScope({class:e(t).ui?.focusScope}))},{default:g(()=>[w(f.$slots,"content-top"),e(t).searchInput?(c(),_(e(ll),{key:0,modelValue:d.value,"onUpdate:modelValue":D[1]||(D[1]=U=>d.value=U),"display-value":()=>d.value,"as-child":""},{default:g(()=>[A(ra,B({autofocus:"",autocomplete:"off",size:ne.value},k.value,{"model-modifiers":{trim:e(t).modelModifiers?.trim},"data-slot":"input",class:y.value.input({class:e(t).ui?.input}),onChange:D[0]||(D[0]=we(()=>{},["stop"]))}),null,16,["size","model-modifiers","class"])]),_:1},8,["modelValue","display-value"])):H("",!0),A(e(Za),{"data-slot":"empty",class:K(y.value.empty({class:e(t).ui?.empty}))},{default:g(()=>[w(f.$slots,"empty",{searchTerm:d.value},()=>[Ce(ve(d.value?e(b)("selectMenu.noMatch",{searchTerm:d.value}):e(b)("selectMenu.noData")),1)])]),_:3},8,["class"]),Fe("div",{ref_key:"viewportRef",ref:Je,role:"presentation","data-slot":"viewport",class:K(y.value.viewport({class:e(t).ui?.viewport}))},[e(t).virtualize?(c(),W(se,{key:0},[q.value&&T.value==="top"?(c(),_(e(Z),{key:0})):H("",!0),A(e(gl),B({options:x.value,"text-content":U=>M(U)?e(xe)(U,e(t).labelKey):String(U)},C.value),{default:g(({option:U,virtualItem:Ke})=>[A(e(Ve),{item:U,index:Ke.index},null,8,["item","index"])]),_:1},16,["options","text-content"]),q.value&&T.value==="bottom"?(c(),_(e(Z),{key:1})):H("",!0)],64)):(c(),W(se,{key:1},[q.value&&T.value==="top"?(c(),_(e(Ue),{key:0,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[A(e(Z))]),_:1},8,["class"])):H("",!0),(c(!0),W(se,null,De(u.value,(U,Ke)=>(c(),_(e(Ue),{key:`group-${Ke}`,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[(c(!0),W(se,null,De(U,(Ct,Ze)=>(c(),_(e(Ve),{key:`group-${Ke}-${Ze}`,item:Ct,index:Ze},null,8,["item","index"]))),128))]),_:2},1032,["class"]))),128)),q.value&&T.value==="bottom"?(c(),_(e(Ue),{key:1,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[A(e(Z))]),_:1},8,["class"])):H("",!0)],64))],2),w(f.$slots,"content-bottom")]),_:3},8,["class"]),e(t).arrow?(c(),_(e(Ua),B({key:0},m.value,{"data-slot":"arrow",class:y.value.arrow({class:e(t).ui?.arrow})}),null,16,["class"])):H("",!0)]),_:3},16,["class"])]),_:3})]),_:3},16)]),_:3},16,["name","disabled"])],64))}});export{Ba as L,Sl as _,Oa as a,Ia as b,Ca as c,Va as d,ka as e,_a as f,hl as g,Il as i};
1
+ import{aQ as We,Z as ke,d as P,X as Ye,bd as Ne,be as qt,ax as nt,Y as Be,a as Me,o as c,e as _,f as g,U as w,b as e,l as H,M as ue,W as Y,bf as Oe,r as G,bg as Re,bh as It,bi as St,bj as st,h as A,R as Se,D as we,bk as wt,C as ge,ad as He,v as V,bl as ut,ay as Ee,V as B,T as ae,bm as dt,aO as kt,a2 as pt,bn as Et,bo as zt,bp as ct,bq as Ft,c as W,F as se,z as De,ai as ft,a1 as At,br as Bt,x as vt,bs as Lt,bt as Ot,bu as Tt,bv as Vt,bw as Kt,bx as Pt,by as Rt,bz as Dt,bA as mt,bB as $t,bC as Mt,$ as qe,bD as Nt,bE as Ht,aA as Gt,k as Ce,t as ve,a0 as Le,bF as jt,aF as xe,a3 as Ut,K as Wt,a4 as Yt,a5 as Xt,a6 as Jt,a7 as Qt,bG as Zt,aK as ea,bH as ta,aL as aa,b1 as et,aM as je,b2 as fe,i as K,g as Fe,_ as Pe,aG as tt,bI as la,j as ia,bJ as oa,I as ra,L as at,bK as lt,bL as Ae,bM as na,aN as sa,a8 as ua,bN as da,bO as pa,bP as ca}from"./1QWBzxLM.js";import{u as fa}from"./DpM8IgHL.js";import{V as va}from"./Bp1WeQ0_.js";import{u as ma}from"./VBTxfbqU.js";function $e(n,r,a){const l=n.findIndex(d=>We(d,r)),i=n.findIndex(d=>We(d,a));if(l===-1||i===-1)return[];const[o,t]=[l,i].sort((d,b)=>d-b);return n.slice(o,t+1)}function ga(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function it(n){return n?.querySelector("[data-state=checked]")}function ba(n,r,a){return n===void 0?!1:Array.isArray(n)?n.some(l=>me(l,r,a)):me(n,r,a)}function me(n,r,a){return n===void 0||r===void 0?!1:typeof n=="string"?n===r:typeof a=="function"?a(n,r):typeof a=="string"?n?.[a]===r?.[a]:We(n,r)}const[Te,ha]=ke("ListboxRoot");var ya=P({__name:"ListboxRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:"vertical"},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:"toggle"},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(n,{expose:r,emit:a}){const l=n,i=a,{multiple:o,highlightOnHover:t,orientation:d,disabled:b,selectionBehavior:F,dir:I}=Ye(l),{getItems:z}=Ne({isProvider:!0}),{handleTypeaheadSearch:v}=qt(),{primitiveElement:h,currentElement:m}=Oe(),p=ga(),C=nt(I),k=fa(m),$=G(),S=G(!1),L=G(!0),E=Be(l,"modelValue",i,{defaultValue:l.defaultValue??(o.value?[]:void 0),passive:l.modelValue===void 0,deep:!0});function de(u){if(S.value=!0,l.multiple){const x=Array.isArray(E.value)?[...E.value]:[],q=x.findIndex(T=>me(T,u,l.by));l.selectionBehavior==="toggle"?(q===-1?x.push(u):x.splice(q,1),E.value=x):(E.value=[u],$.value=u)}else l.selectionBehavior==="toggle"&&me(E.value,u,l.by)?E.value=void 0:E.value=u;setTimeout(()=>{S.value=!1},1)}const O=G(null),ie=G(null),Q=G(!1),oe=G(!1),pe=Re(),be=Re(),re=Re();function ce(){return z().map(u=>u.ref).filter(u=>u.dataset.disabled!=="")}function N(u,x=!0,q){if(!u)return;O.value=u,(q??L.value)&&O.value.focus(),x&&O.value.scrollIntoView({block:"nearest"});const T=z().find(j=>j.ref===u);i("highlight",T)}function R(u){if(Q.value)re.trigger(u);else{const x=z().find(q=>me(q.value,u,l.by));x&&(O.value=x.ref,N(x.ref))}}function X(u){if(O.value&&O.value.isConnected){if(u.ctrlKey||u.metaKey||u.altKey)return;u.preventDefault(),u.stopPropagation(),oe.value||O.value.click()}}function J(u){if(L.value){if(S.value=!0,Q.value)be.trigger(u);else{const x=u.altKey||u.ctrlKey||u.metaKey;if(x&&u.key==="a"&&o.value){const q=z(),T=q.map(ye=>ye.value);E.value=[...T],u.preventDefault();const j=q.at(-1);j&&N(j.ref)}else if(!x){const q=v(u.key,z());q&&N(q)}}setTimeout(()=>{S.value=!1},1)}}function ne(){oe.value=!0}function he(){ue(()=>{oe.value=!1})}function Z(){ue(()=>{const u=new KeyboardEvent("keydown",{key:"PageUp"});y(u)})}function ee(u){const x=O.value;x?.isConnected&&(ie.value=x),O.value=null,i("leave",u)}function Ve(u){const x=new CustomEvent("listbox.entryFocus",{bubbles:!1,cancelable:!0});if(u.currentTarget?.dispatchEvent(x),i("entryFocus",x),!x.defaultPrevented)if(ie.value)N(ie.value);else{const q=ce()?.[0];N(q)}}function y(u){const x=It(u,d.value,C.value);if(!x)return;let q=ce();if(O.value){if(x==="last")q.reverse();else if(x==="prev"||x==="next"){x==="prev"&&q.reverse();const T=q.indexOf(O.value);q=q.slice(T+1)}Ge(u,q[0])}if(q.length){const T=!O.value&&x==="prev"?q.length-1:0;N(q[T])}if(Q.value)return be.trigger(u)}function Ge(u,x){if(!(Q.value||l.selectionBehavior!=="replace"||!o.value||!Array.isArray(E.value)||(u.altKey||u.ctrlKey||u.metaKey)&&!u.shiftKey)&&u.shiftKey){const T=z().filter(_e=>_e.ref.dataset.disabled!=="");let j=T.find(_e=>_e.ref===x)?.value;if(u.key===p.END?j=T.at(-1)?.value:u.key===p.HOME&&(j=T[0]?.value),!j||!$.value)return;const ye=$e(T.map(_e=>_e.value),$.value,j);E.value=ye}}async function Ie(u,x=!0){if(St)if(await ue(),Q.value)pe.trigger({event:u,scroll:x});else{const q=ce(),T=q.find(ye=>ye.dataset.state==="checked"),j=x?void 0:!1;T?N(T,x,j):q.length&&N(q[0],x,j)}}let ze=!1;return Me(E,()=>{if(!S.value){const u=ze;ze=!0,ue(()=>{Ie(void 0,u)})}},{immediate:!0,deep:!0}),r({highlightedElement:O,highlightItem:R,highlightFirstItem:Z,highlightSelected:Ie,getItems:z}),ha({modelValue:E,onValueChange:de,multiple:o,orientation:d,dir:C,disabled:b,highlightOnHover:t,highlightedElement:O,isVirtual:Q,virtualFocusHook:pe,virtualKeydownHook:be,virtualHighlightHook:re,by:l.by,firstValue:$,selectionBehavior:F,focusable:L,onLeave:ee,onEnter:Ve,changeHighlight:N,onKeydownEnter:X,onKeydownNavigation:y,onKeydownTypeAhead:J,onCompositionStart:ne,onCompositionEnd:he,highlightFirstItem:Z}),(u,x)=>(c(),_(e(Y),{ref_key:"primitiveElement",ref:h,as:u.as,"as-child":u.asChild,dir:e(C),"data-disabled":e(b)?"":void 0,onPointerleave:ee,onFocusout:x[0]||(x[0]=async q=>{const T=q.relatedTarget||q.target;await ue(),O.value&&e(m)&&!e(m).contains(T)&&ee(q)})},{default:g(()=>[w(u.$slots,"default",{modelValue:e(E)}),e(k)&&u.name?(c(),_(e(va),{key:0,name:u.name,value:e(E),disabled:e(b),required:u.required},null,8,["name","value","disabled","required"])):H("v-if",!0)]),_:3},8,["as","as-child","dir","data-disabled"]))}}),_a=ya,xa=P({__name:"ListboxContent",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const{CollectionSlot:r}=Ne(),a=Te(),l=st(!1,10);return(i,o)=>(c(),_(e(r),null,{default:g(()=>[A(e(Y),{role:"listbox",as:i.as,"as-child":i.asChild,tabindex:e(a).focusable.value?e(a).highlightedElement.value?"-1":"0":"-1","aria-orientation":e(a).orientation.value,"aria-multiselectable":!!e(a).multiple.value,"data-orientation":e(a).orientation.value,onMousedown:o[0]||(o[0]=we(t=>l.value=!0,["left"])),onFocus:o[1]||(o[1]=t=>{e(l)||e(a).onEnter(t)}),onKeydown:[o[2]||(o[2]=Se(t=>{e(a).orientation.value==="vertical"&&(t.key==="ArrowLeft"||t.key==="ArrowRight")||e(a).orientation.value==="horizontal"&&(t.key==="ArrowUp"||t.key==="ArrowDown")||(t.preventDefault(),e(a).focusable.value&&e(a).onKeydownNavigation(t))},["down","up","left","right","home","end"])),Se(e(a).onKeydownEnter,["enter"]),e(a).onKeydownTypeAhead]},{default:g(()=>[w(i.$slots,"default")]),_:3},8,["as","as-child","tabindex","aria-orientation","aria-multiselectable","data-orientation","onKeydown"])]),_:3}))}}),Ca=xa,qa=P({__name:"ListboxFilter",props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"input"}},emits:["update:modelValue"],setup(n,{emit:r}){const a=n,i=Be(a,"modelValue",r,{defaultValue:"",passive:a.modelValue===void 0}),o=Te(),{primitiveElement:t,currentElement:d}=Oe(),b=V(()=>a.disabled||o.disabled.value||!1),F=G();wt(()=>F.value=o.highlightedElement.value?.id),ge(()=>{o.focusable.value=!1,setTimeout(()=>{a.autoFocus&&d.value?.focus()},1)}),He(()=>{o.focusable.value=!0});const{isComposing:I,handleCompositionStart:z,handleCompositionEnd:v}=ut(k=>{i.value=k.target.value,o.onCompositionEnd(),o.highlightFirstItem()});function h(){o.onCompositionStart(),z()}function m(k){I.value||(i.value=k.target.value,o.highlightFirstItem())}function p(k){I.value||(k.preventDefault(),o.onKeydownNavigation(k))}function C(k){I.value||o.onKeydownEnter(k)}return(k,$)=>(c(),_(e(Y),{ref_key:"primitiveElement",ref:t,as:k.as,"as-child":k.asChild,value:e(i),disabled:b.value?"":void 0,"data-disabled":b.value?"":void 0,"aria-disabled":b.value??void 0,"aria-activedescendant":F.value,type:"text",onKeydown:[Se(p,["down","up","home","end"]),Se(C,["enter"])],onInput:m,onCompositionstart:h,onCompositionend:e(v)},{default:g(()=>[w(k.$slots,"default",{modelValue:e(i)})]),_:3},8,["as","as-child","value","disabled","data-disabled","aria-disabled","aria-activedescendant","onCompositionend"]))}}),Ia=qa;const[Il,Sa]=ke("ListboxGroup");var wa=P({__name:"ListboxGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=Ee(void 0,"reka-listbox-group");return Sa({id:a}),(l,i)=>(c(),_(e(Y),B({role:"group"},r,{"aria-labelledby":e(a)}),{default:g(()=>[w(l.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),ka=wa;const Ea="listbox.select",[za,Fa]=ke("ListboxItem");var Aa=P({__name:"ListboxItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["select"],setup(n,{emit:r}){const a=n,l=r,i=Ee(void 0,"reka-listbox-item"),{CollectionItem:o}=Ne(),{forwardRef:t,currentElement:d}=ae(),b=Te(),F=V(()=>d.value!=null&&d.value===b.highlightedElement.value),I=V(()=>ba(b.modelValue.value,a.value,b.by)),z=V(()=>b.disabled.value||a.disabled);async function v(m){l("select",m),!m?.defaultPrevented&&!z.value&&m&&(b.onValueChange(a.value),b.changeHighlight(d.value))}function h(m){const p={originalEvent:m,value:a.value};kt(Ea,v,p)}return Fa({isSelected:I}),(m,p)=>(c(),_(e(o),{value:m.value},{default:g(()=>[dt([F.value,I.value,z.value,e(b).focusable.value],()=>A(e(Y),B({id:e(i)},m.$attrs,{ref:e(t),role:"option",tabindex:e(b).focusable.value?F.value?"0":"-1":-1,"aria-selected":I.value,as:m.as,"as-child":m.asChild,disabled:z.value?"":void 0,"data-disabled":z.value?"":void 0,"data-highlighted":F.value?"":void 0,"data-state":I.value?"checked":"unchecked",onClick:h,onKeydown:Se(we(h,["prevent"]),["space"]),onPointermove:p[0]||(p[0]=()=>{e(b).highlightedElement.value!==e(d)&&e(b).highlightOnHover.value&&e(b).changeHighlight(e(d),!1,!1)})}),{default:g(()=>[w(m.$slots,"default")]),_:3},16,["id","tabindex","aria-selected","as","as-child","disabled","data-disabled","data-highlighted","data-state","onKeydown"]),p,1)]),_:3},8,["value"]))}}),Ba=Aa,La=P({__name:"ListboxItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const r=n;ae();const a=za();return(l,i)=>e(a).isSelected.value?(c(),_(e(Y),B({key:0,"aria-hidden":"true"},r),{default:g(()=>[w(l.$slots,"default")]),_:3},16)):H("v-if",!0)}}),Oa=La,Ta=P({__name:"ListboxVirtualizer",props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(n){const r=n,a=pt(),l=Te(),i=Et(),{getItems:o}=Ne();l.isVirtual.value=!0;const t=V(()=>{const v=i.value;if(v){const h=window.getComputedStyle(v);return{start:Number.parseFloat(h.paddingBlockStart||h.paddingTop),end:Number.parseFloat(h.paddingBlockEnd||h.paddingBottom)}}else return{start:0,end:0}}),d=ma({get scrollPaddingStart(){return t.value.start},get scrollPaddingEnd(){return t.value.end},get count(){return r.options.length},get horizontal(){return l.orientation.value==="horizontal"},estimateSize(v){return typeof r.estimateSize=="function"?r.estimateSize(v):r.estimateSize??28},getScrollElement(){return i.value},overscan:r.overscan??12}),b=V(()=>d.value.getVirtualItems().map(v=>{const h=a.default({option:r.options[v.index],virtualizer:d.value,virtualItem:v})[0],m=h.type===se&&Array.isArray(h.children)?h.children.find(p=>typeof p.type!="symbol"):h;return{item:v,is:Bt(m,{key:`${v.key}`,"data-index":v.index,"aria-setsize":r.options.length,"aria-posinset":v.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${v.start}px)`,overflowAnchor:"none"}})}}));l.virtualFocusHook.on(({event:v,scroll:h})=>{const m=r.options.findIndex(p=>Array.isArray(l.modelValue.value)?me(p,l.modelValue.value[0],l.by):me(p,l.modelValue.value,l.by));m!==-1?(v?.preventDefault(),d.value.scrollToIndex(m,{align:"start"}),requestAnimationFrame(()=>{const p=it(i.value);p&&(l.changeHighlight(p,h,h?void 0:!1),v&&p?.focus())})):h?l.highlightFirstItem():requestAnimationFrame(()=>{const p=o().find(C=>C.ref.dataset.disabled!=="")?.ref;p&&l.changeHighlight(p,!1,!1)})}),l.virtualHighlightHook.on(v=>{const h=r.options.findIndex(m=>me(m,v,l.by));d.value.scrollToIndex(h,{align:"start"}),requestAnimationFrame(()=>{const m=it(i.value);m&&l.changeHighlight(m)})});const F=st("",1e3),I=V(()=>{const v=h=>r.textContent?r.textContent(h):h?.toString().toLowerCase();return r.options.map((h,m)=>({index:m,textContent:v(h)}))});function z(v,h){if(!l.firstValue?.value||!l.multiple.value||!Array.isArray(l.modelValue.value))return;const p=o().filter(k=>k.ref.dataset.disabled!=="").find(k=>k.ref===l.highlightedElement.value)?.value;if(!p)return;let C=null;switch(h){case"prev":case"next":{C=$e(r.options,l.firstValue.value,p);break}case"first":{C=$e(r.options,l.firstValue.value,r.options?.[0]);break}case"last":{C=$e(r.options,l.firstValue.value,r.options.at(-1));break}}l.modelValue.value=C}return l.virtualKeydownHook.on(v=>{const h=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!h)return;let p=zt[v.key];if(h&&v.key==="a"&&l.multiple.value?(v.preventDefault(),l.modelValue.value=[...r.options],p="last"):v.shiftKey&&p&&z(v,p),["first","last"].includes(p)){v.preventDefault();const C=p==="first"?0:r.options.length-1;d.value.scrollToIndex(C),requestAnimationFrame(()=>{const k=o(),$=p==="first"?k[0]:k.at(-1);$&&l.changeHighlight($.ref)})}else if(!p&&!h){F.value+=v.key;const C=Number(ct()?.getAttribute("data-index")),k=I.value[C].textContent,$=I.value.map(E=>E.textContent??""),S=Ft($,F.value,k),L=I.value.find(E=>E.textContent===S);L&&(d.value.scrollToIndex(L.index,{align:"start"}),requestAnimationFrame(()=>{const E=i.value.querySelector(`[data-index="${L.index}"]`);E instanceof HTMLElement&&l.changeHighlight(E)}))}}),(v,h)=>(c(),W("div",{"data-reka-virtualizer":"",style:At({position:"relative",width:"100%",height:`${e(d).getTotalSize()}px`})},[(c(!0),W(se,null,De(b.value,({is:m,item:p})=>(c(),_(ft(m),{key:p.index}))),128))],4))}}),Va=Ta;const[le,Ka]=ke("ComboboxRoot");var Pa=P({__name:"ComboboxRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","highlight","update:open"],setup(n,{expose:r,emit:a}){const l=n,i=a,{primitiveElement:o,currentElement:t}=Oe(),{multiple:d,disabled:b,ignoreFilter:F,resetSearchTermOnSelect:I,openOnFocus:z,openOnClick:v,dir:h,resetModelValueOnClear:m,highlightOnHover:p}=Ye(l),C=nt(h),k=Be(l,"modelValue",i,{defaultValue:l.defaultValue??(d.value?[]:void 0),passive:l.modelValue===void 0,deep:!0}),$=Be(l,"open",i,{defaultValue:l.defaultOpen,passive:l.open===void 0});async function S(R){$.value=R,re.value="",R?(await ue(),o.value?.highlightSelected(),E.value=!0,O.value?.focus()):(E.value=!1,setTimeout(()=>{!R&&l.resetSearchTermOnBlur&&L.trigger()},1))}const L=Re(),E=G(!1),de=G(!1),O=G(),ie=G(),Q=V(()=>o.value?.highlightedElement??void 0),oe=G(new Map),pe=G(new Map),{contains:be}=Tt({sensitivity:"base"}),re=G(""),ce=V(R=>{if(!re.value||l.ignoreFilter||de.value)return{count:oe.value.size,items:R?.items??new Map,groups:R?.groups??new Set(pe.value.keys())};let X=0;const J=new Map,ne=new Set;for(const[he,Z]of oe.value){const ee=be(Z,re.value);J.set(he,ee?1:0),ee&&X++}for(const[he,Z]of pe.value)for(const ee of Z)if(J.get(ee)>0){ne.add(he);break}return{count:X,items:J,groups:ne}}),N=Ot();return ge(()=>{N?.exposed&&(N.exposed.highlightItem=o.value?.highlightItem,N.exposed.highlightFirstItem=o.value?.highlightFirstItem,N.exposed.highlightSelected=o.value?.highlightSelected)}),r({filtered:ce,highlightedElement:Q,highlightItem:o.value?.highlightItem,highlightFirstItem:o.value?.highlightFirstItem,highlightSelected:o.value?.highlightSelected}),Ka({modelValue:k,multiple:d,disabled:b,open:$,onOpenChange:S,contentId:"",isUserInputted:E,isVirtual:de,inputElement:O,highlightedElement:Q,onInputElementChange:R=>O.value=R,triggerElement:ie,onTriggerElementChange:R=>ie.value=R,parentElement:t,resetSearchTermOnSelect:I,onResetSearchTerm:L.on,allItems:oe,allGroups:pe,filterSearch:re,filterState:ce,ignoreFilter:F,openOnFocus:z,openOnClick:v,resetModelValueOnClear:m}),(R,X)=>(c(),_(e(Lt),null,{default:g(()=>[A(e(_a),B({ref_key:"primitiveElement",ref:o},R.$attrs,{modelValue:e(k),"onUpdate:modelValue":X[0]||(X[0]=J=>vt(k)?k.value=J:null),style:{pointerEvents:e($)?"auto":void 0},as:R.as,"as-child":R.asChild,dir:e(C),multiple:e(d),name:R.name,required:R.required,disabled:e(b),"highlight-on-hover":e(p),by:l.by,onHighlight:X[1]||(X[1]=J=>i("highlight",J))}),{default:g(()=>[w(R.$slots,"default",{open:e($),modelValue:e(k)})]),_:3},16,["modelValue","style","as","as-child","dir","multiple","name","required","disabled","highlight-on-hover","by"])]),_:3}))}}),Ra=Pa,Da=P({__name:"ComboboxAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const{forwardRef:r}=ae();return(a,l)=>(c(),_(e(Vt),{"as-child":"",reference:a.reference},{default:g(()=>[A(e(Y),B({ref:e(r),"as-child":a.asChild,as:a.as},a.$attrs),{default:g(()=>[w(a.$slots,"default")]),_:3},16,["as-child","as"])]),_:3},8,["reference"]))}}),$a=Da;const[Ma,Na]=ke("ComboboxContent");var Ha=P({__name:"ComboboxContentImpl",props:{position:{type:String,required:!1,default:"inline"},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(n,{emit:r}){const a=n,l=r,{position:i}=Ye(a),o=le(),t=V(()=>o.ignoreFilter.value?o.allItems.value.size===0:o.filterState.value.count===0),{forwardRef:d,currentElement:b}=ae();Kt(a.bodyLock),Pt(),Rt(o.parentElement);const F=V(()=>a.position==="popper"?a:{}),I=Dt(F.value),z={boxSizing:"border-box","--reka-combobox-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-combobox-content-available-width":"var(--reka-popper-available-width)","--reka-combobox-content-available-height":"var(--reka-popper-available-height)","--reka-combobox-trigger-width":"var(--reka-popper-anchor-width)","--reka-combobox-trigger-height":"var(--reka-popper-anchor-height)"};Na({position:i});const v=G(!1);ge(()=>{o.inputElement.value&&(v.value=b.value.contains(o.inputElement.value),v.value&&o.inputElement.value.focus())}),He(()=>{const m=ct();v.value&&(!m||m===document.body)&&o.triggerElement.value?.focus()});function h(m){if(o.parentElement.value?.contains(m))return!0;const C=(m instanceof Element?m.closest("label"):null)?.control;return!!C&&!!o.parentElement.value?.contains(C)}return(m,p)=>(c(),_(e(Ca),{"as-child":""},{default:g(()=>[A(e(mt),{"as-child":"",onMountAutoFocus:p[5]||(p[5]=we(()=>{},["prevent"])),onUnmountAutoFocus:p[6]||(p[6]=we(()=>{},["prevent"]))},{default:g(()=>[A(e($t),{"as-child":"","disable-outside-pointer-events":m.disableOutsidePointerEvents,onDismiss:p[0]||(p[0]=C=>e(o).onOpenChange(!1)),onFocusOutside:p[1]||(p[1]=C=>{h(C.target)&&C.preventDefault(),l("focusOutside",C)}),onInteractOutside:p[2]||(p[2]=C=>l("interactOutside",C)),onEscapeKeyDown:p[3]||(p[3]=C=>l("escapeKeyDown",C)),onPointerDownOutside:p[4]||(p[4]=C=>{h(C.target)&&C.preventDefault(),l("pointerDownOutside",C)})},{default:g(()=>[(c(),_(ft(e(i)==="popper"?e(Mt):e(Y)),B({...m.$attrs,...e(I)},{id:e(o).contentId,ref:e(d),"memo-dependencies":e(i)==="popper"?[e(o).filterSearch.value,e(o).filterState.value]:void 0,"data-state":e(o).open.value?"open":"closed","data-empty":t.value?"":void 0,style:{display:a.hideWhenEmpty&&t.value?"none":"flex",flexDirection:"column",outline:"none",...e(i)==="popper"?z:{}}}),{default:g(()=>[w(m.$slots,"default")]),_:3},16,["id","memo-dependencies","data-state","data-empty","style"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Ga=Ha,ja=P({__name:"ComboboxArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(n){const r=n,a=le(),l=Ma();return ae(),(i,o)=>e(a).open.value&&e(l).position.value==="popper"?(c(),_(e(Nt),qe(B({key:0},r)),{default:g(()=>[w(i.$slots,"default")]),_:3},16)):H("v-if",!0)}}),Ua=ja,Wa=P({__name:"ComboboxCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n;ae();const a=le();function l(){a.filterSearch.value="",a.inputElement.value&&(a.inputElement.value.value="",a.inputElement.value.focus()),a.resetModelValueOnClear?.value&&(a.modelValue.value=a.multiple.value?[]:null)}return(i,o)=>(c(),_(e(Y),B({type:i.as==="button"?"button":void 0},r,{tabindex:"-1",onClick:l}),{default:g(()=>[w(i.$slots,"default")]),_:3},16,["type"]))}}),Ya=Wa,Xa=P({__name:"ComboboxContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(n,{emit:r}){const i=Ht(n,r),{forwardRef:o}=ae(),t=le();return t.contentId||=Ee(void 0,"reka-combobox-content"),(d,b)=>(c(),_(e(Gt),{present:d.forceMount||e(t).open.value},{default:g(()=>[A(Ga,B({...e(i),...d.$attrs},{ref:e(o)}),{default:g(()=>[w(d.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Ja=Xa,Qa=P({__name:"ComboboxEmpty",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=le(),l=V(()=>a.ignoreFilter.value?a.allItems.value.size===0:a.filterState.value.count===0);return(i,o)=>l.value?(c(),_(e(Y),qe(B({key:0},r)),{default:g(()=>[w(i.$slots,"default",{},()=>[o[0]||(o[0]=Ce("No options"))])]),_:3},16)):H("v-if",!0)}}),Za=Qa;const[gt,el]=ke("ComboboxGroup");var tl=P({__name:"ComboboxGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n,a=Ee(void 0,"reka-combobox-group"),l=le(),i=V(()=>l.ignoreFilter.value?!0:l.filterSearch.value?l.filterState.value.groups.has(a):!0),o=el({id:a,labelId:""});return ge(()=>{l.allGroups.value.has(a)||l.allGroups.value.set(a,new Set)}),He(()=>{l.allGroups.value.delete(a)}),(t,d)=>(c(),_(e(ka),B({id:e(a),"aria-labelledby":e(o).labelId},r,{hidden:i.value?void 0:!0}),{default:g(()=>[w(t.$slots,"default")]),_:3},16,["id","aria-labelledby","hidden"]))}}),Ue=tl,al=P({__name:"ComboboxInput",props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"input"}},emits:["update:modelValue"],setup(n,{emit:r}){const a=n,l=r,i=le(),o=Te(),{primitiveElement:t,currentElement:d}=Oe(),b=Be(a,"modelValue",l,{passive:a.modelValue===void 0});ge(()=>{d.value&&i.onInputElementChange(d.value)});const{isComposing:F,handleCompositionStart:I,handleCompositionEnd:z}=ut(S=>{const L=S.target;L&&h(L.value)});function v(S){F.value||(S.preventDefault(),i.open.value||i.onOpenChange(!0))}function h(S){i.open.value?i.filterSearch.value=S:(i.onOpenChange(!0),ue(()=>{S&&(i.filterSearch.value=S,o.highlightFirstItem())}))}function m(S){F.value||h(S.target.value)}function p(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function C(S){if(!i.open.value)return;const L=S.relatedTarget;if(!L)return;const E=i.parentElement.value?.contains(L),de=document.getElementById(i.contentId)?.contains(L);!E&&!de&&requestAnimationFrame(()=>{if(!i.open.value)return;const O=document.activeElement;!i.parentElement.value?.contains(O)&&!document.getElementById(i.contentId)?.contains(O)&&i.onOpenChange(!1)})}function k(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function $(){const S=i.modelValue.value;a.displayValue?b.value=a.displayValue(S):!i.multiple.value&&S&&!Array.isArray(S)&&typeof S!="object"?b.value=S.toString():b.value="",ue(()=>{b.value=b.value})}return i.onResetSearchTerm(()=>{$()}),Me(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&$()},{immediate:!0,deep:!0}),Me(i.filterState,(S,L)=>{!i.isVirtual.value&&L.count===0&&o.highlightFirstItem()}),(S,L)=>(c(),_(e(Ia),{ref_key:"primitiveElement",ref:t,modelValue:e(b),"onUpdate:modelValue":L[0]||(L[0]=E=>vt(b)?b.value=E:null),as:S.as,"as-child":S.asChild,"auto-focus":S.autoFocus,disabled:S.disabled,"aria-expanded":e(i).open.value,"aria-controls":e(i).contentId,"aria-autocomplete":"list",role:"combobox",autocomplete:"off",onClick:k,onInput:m,onKeydown:Se(v,["down","up"]),onFocus:p,onBlur:C,onCompositionstart:e(I),onCompositionend:e(z)},{default:g(()=>[w(S.$slots,"default")]),_:3},8,["modelValue","as","as-child","auto-focus","disabled","aria-expanded","aria-controls","onCompositionstart","onCompositionend"]))}}),ll=al,il=P({__name:"ComboboxItem",props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(n,{emit:r}){const a=n,l=r,i=Ee(void 0,"reka-combobox-item"),o=le(),t=gt(null),{primitiveElement:d,currentElement:b}=Oe();if(a.value==="")throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");const F=V(()=>{if(o.isVirtual.value||o.ignoreFilter.value||!o.filterSearch.value)return!0;{const I=o.filterState.value.items.get(i);return I===void 0?!0:I>0}});return ge(()=>{o.allItems.value.set(i,a.textValue||b.value.textContent||b.value.innerText);const I=t?.id;I&&(o.allGroups.value.has(I)?o.allGroups.value.get(I)?.add(i):o.allGroups.value.set(I,new Set([i])))}),He(()=>{o.allItems.value.delete(i)}),(I,z)=>F.value?dt([F.value,e(o).filterSearch.value,e(o).disabled.value,I.disabled,a.value,a.as,a.asChild,...Object.values(I.$attrs)],()=>(c(),_(e(Ba),B({key:0},a,{id:e(i),ref_key:"primitiveElement",ref:d,disabled:e(o).disabled.value||I.disabled,onSelect:z[0]||(z[0]=v=>{l("select",v),!v.defaultPrevented&&(!e(o).multiple.value&&!I.disabled&&!e(o).disabled.value?(v.preventDefault(),e(o).onOpenChange(!1),e(o).modelValue.value=a.value):e(o).multiple.value&&e(o).inputElement.value?.focus())})}),{default:g(()=>[w(I.$slots,"default",{},()=>[Ce(ve(I.value),1)])]),_:3},16,["id","disabled"])),z,1):H("v-if",!0)}}),ot=il,ol=P({__name:"ComboboxItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(n){const r=n;return(a,l)=>(c(),_(e(Oa),qe(Le(r)),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),rl=ol,nl=P({__name:"ComboboxLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(n){const r=n;ae();const a=gt({id:"",labelId:""});return a.labelId||=Ee(void 0,"reka-combobox-group-label"),(l,i)=>(c(),_(e(Y),B(r,{id:e(a).labelId}),{default:g(()=>[w(l.$slots,"default")]),_:3},16,["id"]))}}),sl=nl,ul=P({__name:"ComboboxPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const r=n;return(a,l)=>(c(),_(e(jt),qe(Le(r)),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),dl=ul,pl=P({__name:"ComboboxSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const r=n;return ae(),(a,l)=>(c(),_(e(Y),B(r,{"aria-hidden":"true"}),{default:g(()=>[w(a.$slots,"default")]),_:3},16))}}),cl=pl,fl=P({__name:"ComboboxTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const r=n,{forwardRef:a,currentElement:l}=ae(),i=le(),o=V(()=>r.disabled||i.disabled.value||!1);return ge(()=>{l.value&&i.onTriggerElementChange(l.value)}),(t,d)=>(c(),_(e(Y),B(r,{ref:e(a),type:t.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":e(i).open.value,"aria-controls":e(i).contentId,"data-state":e(i).open.value?"open":"closed",disabled:o.value,"data-disabled":o.value?"":void 0,"aria-disabled":o.value??void 0,onClick:d[0]||(d[0]=b=>e(i).onOpenChange(!e(i).open.value))}),{default:g(()=>[w(t.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"]))}}),vl=fl,ml=P({__name:"ComboboxVirtualizer",props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(n){const r=n,a=le();return a.isVirtual.value=!0,(l,i)=>(c(),_(Va,qe(Le(r)),{default:g(o=>[w(l.$slots,"default",qe(Le(o)))]),_:3},16))}}),gl=ml;function bl(n,r){if(typeof n!="object"||n===null)return!1;const a=xe(n,r);return a!=null&&a!==""}function rt(n,r){return r?{xs:44,sm:48,md:52,lg:56,xl:60}[n]:{xs:24,sm:28,md:32,lg:36,xl:40}[n]}function hl(n,r,a,l){const i=rt(r,!0),o=rt(r,!1);return l?()=>i:a?t=>bl(n[t],a)?i:o:()=>o}const yl={slots:{base:["relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leading:"absolute inset-y-0 start-0 flex items-center",leadingIcon:"shrink-0 text-dimmed",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailing:"absolute inset-y-0 end-0 flex items-center",trailingIcon:"shrink-0 text-dimmed",value:"truncate pointer-events-none",placeholder:"truncate text-dimmed",arrow:"fill-bg stroke-default",content:["max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col","max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],viewport:"relative scroll-py-1 overflow-y-auto flex-1",group:"p-1 isolate",empty:"text-center text-muted",label:"font-semibold text-highlighted",separator:"-mx-1 my-1 h-px bg-border",item:["group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default","transition-colors"],itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemLeadingChip:"shrink-0",itemLeadingChipSize:"",itemTrailing:"ms-auto inline-flex gap-1.5 items-center",itemTrailingIcon:"shrink-0",itemWrapper:"flex-1 flex flex-col min-w-0",itemLabel:"truncate",itemDescription:"truncate text-muted",input:"border-b border-default",focusScope:"flex flex-col min-h-0",trailingClear:"p-0"},variants:{fieldGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},size:{xs:{base:"px-2 py-1 text-xs gap-1",leading:"ps-2",trailing:"pe-2",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1 text-[10px]/3 gap-1",item:"p-1 text-xs gap-1",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2 text-xs"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4",label:"p-1.5 text-[10px]/3 gap-1.5",item:"p-1.5 text-xs gap-1.5",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailingIcon:"size-4",empty:"p-2.5 text-xs"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-sm gap-1.5",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-2.5 text-sm"},lg:{base:"px-3 py-2 text-sm gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5",label:"p-2 text-xs gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailingIcon:"size-5",empty:"p-3 text-sm"},xl:{base:"px-3 py-2 text-base gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6",label:"p-2 text-sm gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemLeadingChip:"size-6",itemLeadingChipSize:"lg",itemTrailingIcon:"size-6",empty:"p-3 text-base"}},variant:{outline:"text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default",soft:"text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",subtle:"text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated",ghost:"text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",none:"text-highlighted bg-transparent focus:outline-none"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},leading:{true:""},trailing:{true:""},loading:{true:""},highlight:{true:""},fixed:{false:""},type:{file:"file:me-1.5 file:font-medium file:text-muted file:outline-none"},position:{popper:{content:"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"},"item-aligned":{content:""}},multiple:{true:""},virtualize:{true:{viewport:"p-1 isolate"},false:{viewport:"divide-y divide-default"}}},compoundVariants:[{color:"primary",variant:["outline","subtle"],class:"outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"},{color:"secondary",variant:["outline","subtle"],class:"outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"},{color:"success",variant:["outline","subtle"],class:"outline-success/25 focus-visible:outline-3 focus-visible:ring-success"},{color:"info",variant:["outline","subtle"],class:"outline-info/25 focus-visible:outline-3 focus-visible:ring-info"},{color:"warning",variant:["outline","subtle"],class:"outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"},{color:"error",variant:["outline","subtle"],class:"outline-error/25 focus-visible:outline-3 focus-visible:ring-error"},{color:"primary",variant:["soft","ghost"],class:"outline-primary/25 focus-visible:outline-3"},{color:"secondary",variant:["soft","ghost"],class:"outline-secondary/25 focus-visible:outline-3"},{color:"success",variant:["soft","ghost"],class:"outline-success/25 focus-visible:outline-3"},{color:"info",variant:["soft","ghost"],class:"outline-info/25 focus-visible:outline-3"},{color:"warning",variant:["soft","ghost"],class:"outline-warning/25 focus-visible:outline-3"},{color:"error",variant:["soft","ghost"],class:"outline-error/25 focus-visible:outline-3"},{color:"primary",highlight:!0,class:"ring ring-inset ring-primary"},{color:"secondary",highlight:!0,class:"ring ring-inset ring-secondary"},{color:"success",highlight:!0,class:"ring ring-inset ring-success"},{color:"info",highlight:!0,class:"ring ring-inset ring-info"},{color:"warning",highlight:!0,class:"ring ring-inset ring-warning"},{color:"error",highlight:!0,class:"ring ring-inset ring-error"},{color:"neutral",variant:["outline","subtle"],class:"outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"},{color:"neutral",variant:["soft","ghost"],class:"outline-inverted/25 focus-visible:outline-3"},{color:"neutral",highlight:!0,class:"ring ring-inset ring-inverted"},{leading:!0,size:"xs",class:"ps-7"},{leading:!0,size:"sm",class:"ps-8"},{leading:!0,size:"md",class:"ps-9"},{leading:!0,size:"lg",class:"ps-10"},{leading:!0,size:"xl",class:"ps-11"},{trailing:!0,size:"xs",class:"pe-7"},{trailing:!0,size:"sm",class:"pe-8"},{trailing:!0,size:"md",class:"pe-9"},{trailing:!0,size:"lg",class:"pe-10"},{trailing:!0,size:"xl",class:"pe-11"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}},{fixed:!1,size:"xs",class:"md:text-xs"},{fixed:!1,size:"sm",class:"md:text-xs"},{fixed:!1,size:"md",class:"md:text-sm"},{fixed:!1,size:"lg",class:"md:text-sm"}],defaultVariants:{size:"md",color:"primary",variant:"outline",position:"popper"}},Sl=Object.assign({inheritAttrs:!1},{__name:"USelectMenu",props:at({id:{type:String,required:!1},placeholder:{type:String,required:!1},searchInput:{type:[Boolean,Object],required:!1,default:!0},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},clear:{type:[Boolean,Object],required:!1},clearIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},createItem:{type:[Boolean,String,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},resetModelValueOnClear:{type:Boolean,required:!1,default:!0},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:at(["change","blur","focus","create","clear","highlight","update:modelValue","update:open"],["update:searchTerm"]),setup(n,{expose:r,emit:a}){const l=n,i=a,o=pt(),t=Ut("selectMenu",l),d=Wt(n,"searchTerm",{type:String,default:""}),{t:b}=Yt(),F=Xt(),{filterGroups:I}=ca(),z=Jt(Qt(t,"modelValue","defaultValue","open","defaultOpen","required","multiple","resetSearchTermOnBlur","resetSearchTermOnSelect","resetModelValueOnClear","highlightOnHover","by"),i),v=Zt(fe(()=>t.portal)),h=fe(()=>Ae(t.content,{side:"bottom",sideOffset:8,collisionPadding:8,position:"popper"})),m=fe(()=>Ae(t.arrow,{rounded:!0})),p=V(()=>typeof t.clear=="object"?t.clear:{}),C=fe(()=>t.virtualize?Ae(typeof t.virtualize=="boolean"?{}:t.virtualize,{estimateSize:hl(x.value,ne.value||"md",t.descriptionKey,!!o["item-description"])}):!1),k=fe(()=>Ae(t.searchInput,{placeholder:b("selectMenu.search"),variant:"none"})),{emitFormBlur:$,emitFormFocus:S,emitFormInput:L,emitFormChange:E,size:de,color:O,id:ie,name:Q,highlight:oe,disabled:pe,ariaAttrs:be}=ea(l),{orientation:re,size:ce}=ta(l),{isLeading:N,isTrailing:R,leadingIconName:X,trailingIconName:J}=aa(fe(()=>Ae(t,{trailingIcon:F.ui.icons.chevronDown}))),ne=V(()=>ce.value||de.value),[he,Z]=et(),[ee,Ve]=et({props:{item:{type:[Object,String,Number,Boolean],required:!0},index:{type:Number,required:!1}}}),y=V(()=>ua({extend:yl,...F.ui?.selectMenu||{}})({color:O.value??t.color,variant:t.variant,size:ne?.value??t.size,loading:t.loading,highlight:oe.value??t.highlight,leading:N.value||!!t.avatar||!!o.leading,trailing:R.value||!!o.trailing,fieldGroup:re.value,virtualize:!!t.virtualize,multiple:t.multiple}));function Ge(f){if(t.multiple&&Array.isArray(f)){const D=f.map(s=>lt(ze.value,s,{labelKey:t.labelKey,valueKey:t.valueKey,by:t.by})).filter(s=>s!=null&&s!=="");return D.length>0?D.join(", "):void 0}return lt(ze.value,f,{labelKey:t.labelKey,valueKey:t.valueKey,by:t.by})}const Ie=V(()=>t.items?.length?pa(t.items)?t.items:[t.items]:[]),ze=V(()=>Ie.value.flatMap(f=>f)),u=V(()=>{if(t.ignoreFilter||!d.value)return Ie.value;const f=Array.isArray(t.filterFields)?t.filterFields:[t.labelKey];return I(Ie.value,d.value,{fields:f,isStructural:D=>M(D)&&!!D.type&&["label","separator"].includes(D.type)})}),x=V(()=>u.value.flatMap(f=>f)),q=V(()=>{if(!t.createItem||!d.value)return!1;const f=t.valueKey?{[t.valueKey]:d.value}:d.value;return typeof t.createItem=="object"&&t.createItem.when==="always"||t.createItem==="always"?!x.value.find(D=>da(D,f,t.by??t.valueKey)):!x.value.length}),T=V(()=>typeof t.createItem=="object"?t.createItem.position:"bottom"),j=je("triggerRef");function ye(){t.autofocus&&j.value?.$el?.focus({focusVisible:!0})}ge(()=>{setTimeout(()=>{ye()},t.autofocusDelay)});function _e(f){if(na(t.modelValue)===f)return;t.modelModifiers?.trim&&(typeof f=="string"||f===null||f===void 0)&&(f=f?.trim()??null),t.modelModifiers?.number&&(f=sa(f)),t.modelModifiers?.nullable&&(f??=null),t.modelModifiers?.optional&&!t.modelModifiers?.nullable&&f!==null&&(f??=void 0);const D=new Event("change",{target:{value:f}});i("change",D),E(),L(),t.resetSearchTermOnSelect&&(d.value="")}const Xe=G(!1);function bt(f){Xe.value=f;let D;if(f){const s=new FocusEvent("focus");i("focus",s),S(),clearTimeout(D)}else{const s=new FocusEvent("blur");i("blur",s),$(),t.resetSearchTermOnBlur&&(D=setTimeout(()=>{d.value=""},100))}}function ht(f){f.preventDefault(),f.stopPropagation(),i("create",d.value)}function yt(f,D){if(M(D)){if(D.disabled){f.preventDefault();return}D.onSelect?.(f)}}function M(f){return typeof f=="object"&&f!==null}function _t(f){return t.multiple&&Array.isArray(f)?f.length===0:f==null||f===""}function xt(){i("clear")}const Je=je("viewportRef"),Qe=je("comboboxRootRef");return Me(()=>t.items,async()=>{!Xe.value||!t.createItem||(await ue(),Qe.value?.highlightFirstItem?.())},{flush:"post"}),r({triggerRef:fe(()=>j.value?.$el),viewportRef:fe(()=>Je.value)}),(f,D)=>(c(),W(se,null,[A(e(he),null,{default:g(()=>[A(e(ot),{"data-slot":"item",class:K(y.value.item({class:e(t).ui?.item})),value:d.value,onSelect:ht},{default:g(()=>[Fe("span",{"data-slot":"itemLabel",class:K(y.value.itemLabel({class:e(t).ui?.itemLabel}))},[w(f.$slots,"create-item-label",{item:d.value},()=>[Ce(ve(e(b)("selectMenu.create",{label:d.value})),1)])],2)]),_:3},8,["class","value"])]),_:3}),A(e(ee),null,{default:g(({item:s,index:te})=>[M(s)&&s.type==="label"?(c(),_(e(sl),{key:0,"data-slot":"label",class:K(y.value.label({class:[e(t).ui?.label,s.ui?.label,s.class]}))},{default:g(()=>[Ce(ve(e(xe)(s,e(t).labelKey)),1)]),_:2},1032,["class"])):M(s)&&s.type==="separator"?(c(),_(e(cl),{key:1,"data-slot":"separator",class:K(y.value.separator({class:[e(t).ui?.separator,s.ui?.separator,s.class]}))},null,8,["class"])):(c(),_(e(ot),{key:2,"data-slot":"item",class:K(y.value.item({class:[e(t).ui?.item,M(s)&&s.ui?.item,M(s)&&s.class]})),disabled:M(s)&&s.disabled,value:e(t).valueKey&&M(s)?e(xe)(s,e(t).valueKey):s,onSelect:U=>yt(U,s)},{default:g(()=>[w(f.$slots,"item",{item:s,index:te,ui:y.value},()=>[w(f.$slots,"item-leading",{item:s,index:te,ui:y.value},()=>[M(s)&&s.icon?(c(),_(Pe,{key:0,name:s.icon,"data-slot":"itemLeadingIcon",class:K(y.value.itemLeadingIcon({class:[e(t).ui?.itemLeadingIcon,s.ui?.itemLeadingIcon]}))},null,8,["name","class"])):M(s)&&s.avatar?(c(),_(tt,B({key:1,size:s.ui?.itemLeadingAvatarSize||e(t).ui?.itemLeadingAvatarSize||y.value.itemLeadingAvatarSize()},s.avatar,{"data-slot":"itemLeadingAvatar",class:y.value.itemLeadingAvatar({class:[e(t).ui?.itemLeadingAvatar,s.ui?.itemLeadingAvatar]})}),null,16,["size","class"])):M(s)&&s.chip?(c(),_(la,B({key:2,size:s.ui?.itemLeadingChipSize||e(t).ui?.itemLeadingChipSize||y.value.itemLeadingChipSize(),inset:"",standalone:""},s.chip,{"data-slot":"itemLeadingChip",class:y.value.itemLeadingChip({class:[e(t).ui?.itemLeadingChip,s.ui?.itemLeadingChip]})}),null,16,["size","class"])):H("",!0)]),Fe("span",{"data-slot":"itemWrapper",class:K(y.value.itemWrapper({class:[e(t).ui?.itemWrapper,M(s)&&s.ui?.itemWrapper]}))},[Fe("span",{"data-slot":"itemLabel",class:K(y.value.itemLabel({class:[e(t).ui?.itemLabel,M(s)&&s.ui?.itemLabel]}))},[w(f.$slots,"item-label",{item:s,index:te},()=>[Ce(ve(M(s)?e(xe)(s,e(t).labelKey):s),1)])],2),M(s)&&(e(xe)(s,e(t).descriptionKey)||o["item-description"])?(c(),W("span",{key:0,"data-slot":"itemDescription",class:K(y.value.itemDescription({class:[e(t).ui?.itemDescription,M(s)&&s.ui?.itemDescription]}))},[w(f.$slots,"item-description",{item:s,index:te},()=>[Ce(ve(e(xe)(s,e(t).descriptionKey)),1)])],2)):H("",!0)],2),Fe("span",{"data-slot":"itemTrailing",class:K(y.value.itemTrailing({class:[e(t).ui?.itemTrailing,M(s)&&s.ui?.itemTrailing]}))},[w(f.$slots,"item-trailing",{item:s,index:te,ui:y.value}),A(e(rl),{"as-child":""},{default:g(()=>[A(Pe,{name:e(t).selectedIcon||e(F).ui.icons.check,"data-slot":"itemTrailingIcon",class:K(y.value.itemTrailingIcon({class:[e(t).ui?.itemTrailingIcon,M(s)&&s.ui?.itemTrailingIcon]}))},null,8,["name","class"])]),_:2},1024)],2)])]),_:2},1032,["class","disabled","value","onSelect"]))]),_:3}),A(e(Ra),B({ref_key:"comboboxRootRef",ref:Qe},e(z),{"ignore-filter":"","as-child":"",name:e(Q),disabled:e(pe),"onUpdate:modelValue":_e,"onUpdate:open":bt}),{default:g(({modelValue:s,open:te})=>[A(e($a),{"as-child":""},{default:g(()=>[A(e(vl),B({id:e(ie),ref_key:"triggerRef",ref:j,"data-slot":"base",class:y.value.base({class:[e(t).ui?.base,e(t).class]}),tabindex:"0"},{...f.$attrs,...e(be)}),{default:g(()=>[e(N)||e(t).avatar||o.leading?(c(),W("span",{key:0,"data-slot":"leading",class:K(y.value.leading({class:e(t).ui?.leading}))},[w(f.$slots,"leading",{modelValue:s,open:te,ui:y.value},()=>[e(N)&&e(X)?(c(),_(Pe,{key:0,name:e(X),"data-slot":"leadingIcon",class:K(y.value.leadingIcon({class:e(t).ui?.leadingIcon}))},null,8,["name","class"])):e(t).avatar?(c(),_(tt,B({key:1,size:e(t).ui?.itemLeadingAvatarSize||y.value.itemLeadingAvatarSize()},e(t).avatar,{"data-slot":"itemLeadingAvatar",class:y.value.itemLeadingAvatar({class:e(t).ui?.itemLeadingAvatar})}),null,16,["size","class"])):H("",!0)])],2)):H("",!0),w(f.$slots,"default",{modelValue:s,open:te,ui:y.value},()=>[(c(!0),W(se,null,De([Ge(s)],U=>(c(),W(se,{key:U},[U!=null?(c(),W("span",{key:0,"data-slot":"value",class:K(y.value.value({class:e(t).ui?.value}))},ve(U),3)):(c(),W("span",{key:1,"data-slot":"placeholder",class:K(y.value.placeholder({class:e(t).ui?.placeholder}))},ve(e(t).placeholder??" "),3))],64))),128))]),e(R)||o.trailing||e(t).clear?(c(),W("span",{key:1,"data-slot":"trailing",class:K(y.value.trailing({class:e(t).ui?.trailing}))},[w(f.$slots,"trailing",{modelValue:s,open:te,ui:y.value},()=>[e(t).clear&&!_t(s)?(c(),_(e(Ya),{key:0,"as-child":""},{default:g(()=>[A(ia,B({as:"span",icon:e(t).clearIcon||e(F).ui.icons.close,size:ne.value,variant:"link",color:"neutral",tabindex:"-1"},p.value,{"data-slot":"trailingClear",class:y.value.trailingClear({class:e(t).ui?.trailingClear}),onClick:we(xt,["stop"])}),null,16,["icon","size","class"])]),_:1})):e(J)?(c(),_(Pe,{key:1,name:e(J),"data-slot":"trailingIcon",class:K(y.value.trailingIcon({class:e(t).ui?.trailingIcon}))},null,8,["name","class"])):H("",!0)])],2)):H("",!0)]),_:2},1040,["id","class"])]),_:2},1024),A(e(dl),qe(Le(e(v))),{default:g(()=>[A(e(oa),null,{default:g(()=>[A(e(Ja),B({"data-slot":"content",class:y.value.content({class:e(t).ui?.content})},h.value),{default:g(()=>[A(e(mt),{trapped:"","data-slot":"focusScope",class:K(y.value.focusScope({class:e(t).ui?.focusScope}))},{default:g(()=>[w(f.$slots,"content-top"),e(t).searchInput?(c(),_(e(ll),{key:0,modelValue:d.value,"onUpdate:modelValue":D[1]||(D[1]=U=>d.value=U),"display-value":()=>d.value,"as-child":""},{default:g(()=>[A(ra,B({autofocus:"",autocomplete:"off",size:ne.value},k.value,{"model-modifiers":{trim:e(t).modelModifiers?.trim},"data-slot":"input",class:y.value.input({class:e(t).ui?.input}),onChange:D[0]||(D[0]=we(()=>{},["stop"]))}),null,16,["size","model-modifiers","class"])]),_:1},8,["modelValue","display-value"])):H("",!0),A(e(Za),{"data-slot":"empty",class:K(y.value.empty({class:e(t).ui?.empty}))},{default:g(()=>[w(f.$slots,"empty",{searchTerm:d.value},()=>[Ce(ve(d.value?e(b)("selectMenu.noMatch",{searchTerm:d.value}):e(b)("selectMenu.noData")),1)])]),_:3},8,["class"]),Fe("div",{ref_key:"viewportRef",ref:Je,role:"presentation","data-slot":"viewport",class:K(y.value.viewport({class:e(t).ui?.viewport}))},[e(t).virtualize?(c(),W(se,{key:0},[q.value&&T.value==="top"?(c(),_(e(Z),{key:0})):H("",!0),A(e(gl),B({options:x.value,"text-content":U=>M(U)?e(xe)(U,e(t).labelKey):String(U)},C.value),{default:g(({option:U,virtualItem:Ke})=>[A(e(Ve),{item:U,index:Ke.index},null,8,["item","index"])]),_:1},16,["options","text-content"]),q.value&&T.value==="bottom"?(c(),_(e(Z),{key:1})):H("",!0)],64)):(c(),W(se,{key:1},[q.value&&T.value==="top"?(c(),_(e(Ue),{key:0,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[A(e(Z))]),_:1},8,["class"])):H("",!0),(c(!0),W(se,null,De(u.value,(U,Ke)=>(c(),_(e(Ue),{key:`group-${Ke}`,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[(c(!0),W(se,null,De(U,(Ct,Ze)=>(c(),_(e(Ve),{key:`group-${Ke}-${Ze}`,item:Ct,index:Ze},null,8,["item","index"]))),128))]),_:2},1032,["class"]))),128)),q.value&&T.value==="bottom"?(c(),_(e(Ue),{key:1,"data-slot":"group",class:K(y.value.group({class:e(t).ui?.group}))},{default:g(()=>[A(e(Z))]),_:1},8,["class"])):H("",!0)],64))],2),w(f.$slots,"content-bottom")]),_:3},8,["class"]),e(t).arrow?(c(),_(e(Ua),B({key:0},m.value,{"data-slot":"arrow",class:y.value.arrow({class:e(t).ui?.arrow})}),null,16,["class"])):H("",!0)]),_:3},16,["class"])]),_:3})]),_:3},16)]),_:3},16,["name","disabled"])],64))}});export{Ba as L,Sl as _,Oa as a,Ia as b,Ca as c,Va as d,ka as e,_a as f,hl as g,Il as i};
@@ -1 +1 @@
1
- import{b as C,a as W,ap as N,az as P,bS as j,v as B}from"./BdQ7kfxJ.js";function H(l,h,t){const e=new Array(l);return new Proxy(e,{get(s,i,o){if(typeof i=="string"){const n=i.charCodeAt(0);if(n>=48&&n<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<l){let a=s[r];if(!a){const d=h[r*2];a=s[r]={index:r,key:t(r),start:d,size:h[r*2+1],end:d+h[r*2+1],lane:0}}return a}}if(i==="length")return l}return Reflect.get(s,i,o)}})}function z(l,h,t){let e=t.initialDeps??[],s,i=!0;function o(){const n=l();return(n.length!==e.length||n.some((a,d)=>e[d]!==a))&&(e=n,s=h(...n),t?.onChange&&!(i&&t.skipInitialOnChange)&&t.onChange(s),i=!1),s}return o.updateDeps=n=>{e=n},o}function L(l,h){if(l===void 0)throw new Error("Unexpected undefined");return l}const J=(l,h)=>Math.abs(l-h)<1.01,U=(l,h,t)=>{let e;return function(...s){l.clearTimeout(e),e=l.setTimeout(()=>h.apply(this,s),t)}};let M;const R=()=>{if(M!==void 0)return M;if(typeof navigator>"u")return M=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return M=!0;const l=navigator.maxTouchPoints;return M=navigator.platform==="MacIntel"&&l!==void 0&&l>0},V=l=>{const{offsetWidth:h,offsetHeight:t}=l;return{width:h,height:t}},q=l=>l,X=l=>{const h=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1)-h+1,s=new Array(e);for(let i=0;i<e;i++)s[i]=h+i;return s},$=(l,h)=>{const t=l.scrollElement;if(!t)return;const e=l.targetWindow;if(!e)return;const s=o=>{const{width:n,height:r}=o;h({width:Math.round(n),height:Math.round(r)})};if(s(V(t)),!e.ResizeObserver)return()=>{};const i=new e.ResizeObserver(o=>{const n=()=>{const r=o[0];if(r?.borderBoxSize){const a=r.borderBoxSize[0];if(a){s({width:a.inlineSize,height:a.blockSize});return}}s(V(t))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},A={passive:!0},G=typeof window>"u"?!0:"onscrollend"in window,Q=(l,h,t)=>{const e=l.scrollElement;if(!e)return;const s=l.targetWindow;if(!s)return;const i=l.options.useScrollendEvent&&G;let o=0;const n=i?null:U(s,()=>h(o,!1),l.options.isScrollingResetDelay),r=m=>()=>{o=t(e),n?.(),h(o,m)},a=r(!0),d=r(!1);return e.addEventListener("scroll",a,A),i&&e.addEventListener("scrollend",d,A),()=>{e.removeEventListener("scroll",a),i&&e.removeEventListener("scrollend",d)}},Y=(l,h)=>Q(l,h,t=>{const{horizontal:e,isRtl:s}=l.options;return e?t.scrollLeft*(s&&-1||1):t.scrollTop}),Z=(l,h,t)=>{if(t.options.useCachedMeasurements){const e=t.indexFromElement(l),s=t.options.getItemKey(e);return t.itemSizeCache.get(s)??t.options.estimateSize(e)}if(h?.borderBoxSize){const e=h.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}if(!h){const e=t.indexFromElement(l),s=t.options.getItemKey(e),i=t.itemSizeCache.get(s);if(i!==void 0)return i}return l[t.options.horizontal?"offsetWidth":"offsetHeight"]},tt=(l,{adjustments:h=0,behavior:t},e)=>{var s,i;(i=(s=e.scrollElement)==null?void 0:s.scrollTo)==null||i.call(s,{[e.options.horizontal?"left":"top"]:l+h,behavior:t})},et=tt;class st{constructor(h){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,e,s;return((s=(e=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:e.now)==null?void 0:s.call(e))??Date.now()},this.observer=(()=>{let t=null;const e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(i=>{const o=()=>{const n=i.target,r=this.indexFromElement(n);if(!n.isConnected){this.observer.unobserve(n);for(const[a,d]of this.elementsCache)if(d===n){this.elementsCache.delete(a);break}return}this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var s;(s=e())==null||s.disconnect(),t=null},observe:s=>{var i;return(i=e())==null?void 0:i.observe(s,{box:"border-box"})},unobserve:s=>{var i;return(i=e())==null?void 0:i.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{var e,s;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:q,rangeExtractor:X,onChange:()=>{},measureElement:Z,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const u in t){const g=t[u];g!==void 0&&(i[u]=g)}const o=this.options;let n=null,r=null,a=!1;if(o!==void 0&&o.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const u=o.count,g=i.count,S=this.getMeasurements(),E=u>0?((e=S[0])==null?void 0:e.key)??o.getItemKey(0):null,O=u>0?((s=S[u-1])==null?void 0:s.key)??o.getItemKey(u-1):null;if(g!==u||u>0&&g>0&&(i.getItemKey(0)!==E||i.getItemKey(g-1)!==O)){a=!0;const b=u>0?this.getVirtualItemForOffset(this.getScrollOffset())??S[0]:null;b&&(n=[b.key,this.getScrollOffset()-b.start]);const v=i.followOnAppend===!0?"auto":i.followOnAppend||null;v&&g>u&&this.isAtEnd(o.scrollEndThreshold)&&(u===0||i.getItemKey(g-1)!==O)&&(r=v)}}this.options=i,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let d=!1,m=0;if(n&&this.scrollOffset!==null){const[u,g]=n,S=this.getMeasurements(),{count:E,getItemKey:O}=this.options;let c=0;for(;c<E&&O(c)!==u;)c++;if(c<E){const f=S[c];if(f){const b=f.start+g;b!==this.scrollOffset&&(m=b-this.scrollOffset,this.scrollOffset=b,d=!0)}}}(d||r)&&(this.pendingScrollAnchor=[d?n[0]:null,d?n[1]:0,r,m])},this.notify=t=>{var e,s;(s=(e=this.options).onChange)==null||s.call(e,this,t)},this.maybeNotify=z(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{if(o&&this._intendedScrollOffset===null&&i===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(i-this._intendedScrollOffset)<1.5&&(i=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=o?n===i?this.scrollDirection:n<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const i=this.scrollElement,o=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!R()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};i.addEventListener("touchstart",o,A),i.addEventListener("touchend",n,A),this.unsubs.push(()=>{i.removeEventListener("touchstart",o),i.removeEventListener("touchend",n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){const[i,o,n,r]=s;i!==null&&!n&&(R()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?r!==0&&(this._iosDeferredAdjustment+=r):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const t=this.getScrollOffset(),e=this.getMaxScrollOffset();if(t<0||t>e)return;const s=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=s,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=z(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,e,s,i,o,n,r,a)=>(this.prevLanes!==void 0&&this.prevLanes!==n&&(this.lanesChangedFlag=!0),this.prevLanes=n,this.pendingMin=null,{count:t,paddingStart:e,scrollMargin:s,getItemKey:i,enabled:o,lanes:n,laneAssignmentMode:r,gap:a}),{key:!1}),this.getMeasurements=z(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:e,scrollMargin:s,getItemKey:i,enabled:o,lanes:n,laneAssignmentMode:r,gap:a},d)=>{const m=this.itemSizeCache;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const c of this.laneAssignments.keys())c>=t&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1),n===1){const c=t*2;let f=this._flatMeasurements;if(!f||f.length<c){const p=new Float64Array(c);f&&u>0&&p.set(f.subarray(0,u*2)),f=p,this._flatMeasurements=f}let b;if(u===0)b=e+s;else{const p=u-1;b=f[p*2]+f[p*2+1]+a}for(let p=u;p<t;p++){const T=i(p),w=m.get(T),x=typeof w=="number"?w:this.options.estimateSize(p);f[p*2]=b,f[p*2+1]=x,b+=x+a}const v=H(t,f,i);return this.measurementsCache=v,v}const g=this.measurementsCache.slice(0,u),S=new Array(n).fill(void 0),E=new Float64Array(n);let O=0;for(let c=0;c<u;c++){const f=g[c];f&&(S[f.lane]===void 0&&O++,S[f.lane]=c,E[f.lane]=f.end)}for(let c=u;c<t;c++){const f=i(c),b=this.laneAssignments.get(c);let v,p;const T=r==="estimate"||m.has(f);if(b!==void 0&&this.options.lanes>1){v=b;const y=S[v],I=y!==void 0?g[y]:void 0;p=I?I.end+a:e+s}else if(O===n){let y=0,I=E[0],D=S[0];for(let _=1;_<n;_++){const F=E[_];(F<I||F===I&&S[_]<D)&&(y=_,I=F,D=S[_])}v=y,p=I+a,T&&this.laneAssignments.set(c,v)}else v=c%this.options.lanes,p=e+s,T&&this.laneAssignments.set(c,v);const w=m.get(f),x=typeof w=="number"?w:this.options.estimateSize(c),k=p+x;g[c]={index:c,start:p,size:x,end:k,key:f,lane:v},S[v]===void 0&&O++,S[v]=c,E[v]=k}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=z(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,s,i)=>t.length===0||e===0?(this.range=null,null):(this.range=nt(t,e,s,i,i===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=z(()=>{let t=null,e=null;const s=this.calculateRange();return s&&(t=s.startIndex,e=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,s,i,o)=>i===null||o===null?[]:t({startIndex:i,endIndex:o,overscan:e,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,s=t.getAttribute(e);return s?parseInt(s,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var e;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((e=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:e.index);if(s!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,s-i),n=Math.min(this.options.count-1,s+i);return t>=o&&t<=n}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,n)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(n))});return}const e=this.indexFromElement(t),s=this.options.getItemKey(e),i=this.elementsCache.get(s);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(s,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(e)&&this.resizeItem(e,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,e)=>{var s,i;if(t<0||t>=this.options.count)return;let o,n,r;const a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)r=this.options.getItemKey(t),n=a[t*2],o=a[t*2+1];else{const u=this.measurementsCache[t];if(!u)return;r=u.key,n=u.start,o=u.size}const d=this.itemSizeCache.get(r)??o,m=e-d;if(m!==0){const u=this.options.anchorTo==="end"&&((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,g=u?this.getTotalSize():0,S=((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:r,start:n,size:o,end:n+o,lane:0},m,this):n<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(r)||this.scrollDirection!=="backward"));(this.pendingMin===null||t<this.pendingMin)&&(this.pendingMin=t),this.itemSizeCache.set(r,e),this.itemSizeCacheVersion++,u?this.applyScrollAdjustment(this.getTotalSize()-g):S&&this.applyScrollAdjustment(m),this.notify(!1)}},this.getVirtualItems=z(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{const s=[];for(let i=0,o=t.length;i<o;i++){const n=t[i],r=e[n];s.push(r)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements();if(e.length===0)return;const s=this._flatMeasurements,i=this.options.lanes===1&&s!=null,o=K(0,e.length-1,i?n=>s[n*2]:n=>L(e[n]).start,t);return L(e[o])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,e,s=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),o=this.getScrollOffset();e==="auto"&&(e=t>=o+i?"end":"start"),e==="center"?t+=(s-i)/2:e==="end"&&(t-=i);const n=this.getMaxScrollOffset();return Math.max(Math.min(n,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.getSize(),i=this.getScrollOffset(),o=this.measurementsCache[t];if(!o)return;if(e==="auto")if(o.end>=i+s-this.options.scrollPaddingEnd)e="end";else if(o.start<=i+this.options.scrollPaddingStart)e="start";else return[i,e];if(e==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),e];const n=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(n,e,o.size),e]},this.scrollToOffset=(t,{align:e="start",behavior:s="auto"}={})=>{const i=this.getOffsetForAlignment(t,e),o=this.now();this.scrollState={index:null,align:e,behavior:s,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:e="auto",behavior:s="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.getOffsetForIndex(t,e);if(!i)return;const[o,n]=i,r=this.now();this.scrollState={index:t,align:n,behavior:s,startedAt:r,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:e="auto"}={})=>{const s=this.getScrollOffset()+t,i=this.now();this.scrollState={index:null,align:"start",behavior:e,startedAt:i,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:e}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;const e=this.getMeasurements();let s;if(e.length===0)s=this.options.paddingStart;else if(this.options.lanes===1){const i=e.length-1,o=this._flatMeasurements;o!=null?s=o[i*2]+o[i*2+1]:s=((t=e[i])==null?void 0:t.end)??0}else{const i=Array(this.options.lanes).fill(null);let o=e.length-1;for(;o>=0&&i.some(n=>n===null);){const n=e[o];i[n.lane]===null&&(i[n.lane]=n.end),o--}s=Math.max(...i.filter(n=>n!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const t=[];if(this.itemSizeCache.size===0)return t;const e=this.getMeasurements();for(const s of e)s&&this.itemSizeCache.has(s.key)&&t.push({index:s.index,key:s.key,start:s.start,size:s.size,end:s.end,lane:s.lane});return t},this._scrollToOffset=(t,{adjustments:e,behavior:s})=>{this._intendedScrollOffset=t+(e??0),this.options.scrollToFn(t,{behavior:s,adjustments:e},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(h)}applyScrollAdjustment(h,t){h!==0&&(R()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=h:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollAdjustments=0)))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const e=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=e?e[0]:this.scrollState.lastTargetOffset,i=1,o=s!==this.scrollState.lastTargetOffset;if(!o&&J(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.getScrollOffset()!==s&&this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,o){const n=this.getSize()||600,r=Math.abs(s-this.getScrollOffset()),a=this.scrollState.behavior==="smooth"&&r>n;this.scrollState.lastTargetOffset=s,a||(this.scrollState.behavior="auto"),this._scrollToOffset(s,{adjustments:void 0,behavior:a?"smooth":"auto"})}this.scheduleScrollReconcile()}}const K=(l,h,t,e)=>{for(;l<=h;){const s=(l+h)/2|0,i=t(s);if(i<e)l=s+1;else if(i>e)h=s-1;else return s}return l>0?l-1:0};function it(l,h,t){let e=0;for(;e<=h;){const s=(e+h)/2|0,i=l[s*2];if(i<t)e=s+1;else if(i>t)h=s-1;else return s}return e>0?e-1:0}function nt(l,h,t,e,s){const i=l.length-1;if(l.length<=e)return{startIndex:0,endIndex:i};if(e===1&&s!==null){const a=it(s,i,t);let d=a;const m=t+h;for(;d<i&&s[d*2]+s[d*2+1]<m;)d++;return{startIndex:a,endIndex:d}}let n=K(0,i,a=>l[a].start,t),r=n;if(e===1)for(;r<i&&l[r].end<t+h;)r++;else if(e>1){const a=Array(e).fill(0);for(;r<i&&a.some(m=>m<t+h);){const m=l[r];a[m.lane]=m.end,r++}const d=Array(e).fill(t+h);for(;n>=0&&d.some(m=>m>=t);){const m=l[n];d[m.lane]=m.start,n--}n=Math.max(0,n-n%e),r=Math.min(i,r+(e-1-r%e))}return{startIndex:n,endIndex:r}}function ot(l){const h=new st(C(l)),t=P(h),e=h._didMount();return W(()=>C(l).getScrollElement(),s=>{s&&h._willUpdate()},{immediate:!0}),W(()=>C(l),s=>{h.setOptions({...s,onChange:(i,o)=>{var n;j(t),(n=s.onChange)==null||n.call(s,i,o)}}),h._willUpdate(),j(t)},{immediate:!0}),N(e),t}function rt(l){return ot(B(()=>({observeElementRect:$,observeElementOffset:Y,scrollToFn:et,...C(l)})))}export{rt as u};
1
+ import{b as C,a as W,ap as N,az as P,bS as j,v as B}from"./1QWBzxLM.js";function H(l,h,t){const e=new Array(l);return new Proxy(e,{get(s,i,o){if(typeof i=="string"){const n=i.charCodeAt(0);if(n>=48&&n<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<l){let a=s[r];if(!a){const d=h[r*2];a=s[r]={index:r,key:t(r),start:d,size:h[r*2+1],end:d+h[r*2+1],lane:0}}return a}}if(i==="length")return l}return Reflect.get(s,i,o)}})}function z(l,h,t){let e=t.initialDeps??[],s,i=!0;function o(){const n=l();return(n.length!==e.length||n.some((a,d)=>e[d]!==a))&&(e=n,s=h(...n),t?.onChange&&!(i&&t.skipInitialOnChange)&&t.onChange(s),i=!1),s}return o.updateDeps=n=>{e=n},o}function L(l,h){if(l===void 0)throw new Error("Unexpected undefined");return l}const J=(l,h)=>Math.abs(l-h)<1.01,U=(l,h,t)=>{let e;return function(...s){l.clearTimeout(e),e=l.setTimeout(()=>h.apply(this,s),t)}};let M;const R=()=>{if(M!==void 0)return M;if(typeof navigator>"u")return M=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return M=!0;const l=navigator.maxTouchPoints;return M=navigator.platform==="MacIntel"&&l!==void 0&&l>0},V=l=>{const{offsetWidth:h,offsetHeight:t}=l;return{width:h,height:t}},q=l=>l,X=l=>{const h=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1)-h+1,s=new Array(e);for(let i=0;i<e;i++)s[i]=h+i;return s},$=(l,h)=>{const t=l.scrollElement;if(!t)return;const e=l.targetWindow;if(!e)return;const s=o=>{const{width:n,height:r}=o;h({width:Math.round(n),height:Math.round(r)})};if(s(V(t)),!e.ResizeObserver)return()=>{};const i=new e.ResizeObserver(o=>{const n=()=>{const r=o[0];if(r?.borderBoxSize){const a=r.borderBoxSize[0];if(a){s({width:a.inlineSize,height:a.blockSize});return}}s(V(t))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},A={passive:!0},G=typeof window>"u"?!0:"onscrollend"in window,Q=(l,h,t)=>{const e=l.scrollElement;if(!e)return;const s=l.targetWindow;if(!s)return;const i=l.options.useScrollendEvent&&G;let o=0;const n=i?null:U(s,()=>h(o,!1),l.options.isScrollingResetDelay),r=m=>()=>{o=t(e),n?.(),h(o,m)},a=r(!0),d=r(!1);return e.addEventListener("scroll",a,A),i&&e.addEventListener("scrollend",d,A),()=>{e.removeEventListener("scroll",a),i&&e.removeEventListener("scrollend",d)}},Y=(l,h)=>Q(l,h,t=>{const{horizontal:e,isRtl:s}=l.options;return e?t.scrollLeft*(s&&-1||1):t.scrollTop}),Z=(l,h,t)=>{if(t.options.useCachedMeasurements){const e=t.indexFromElement(l),s=t.options.getItemKey(e);return t.itemSizeCache.get(s)??t.options.estimateSize(e)}if(h?.borderBoxSize){const e=h.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}if(!h){const e=t.indexFromElement(l),s=t.options.getItemKey(e),i=t.itemSizeCache.get(s);if(i!==void 0)return i}return l[t.options.horizontal?"offsetWidth":"offsetHeight"]},tt=(l,{adjustments:h=0,behavior:t},e)=>{var s,i;(i=(s=e.scrollElement)==null?void 0:s.scrollTo)==null||i.call(s,{[e.options.horizontal?"left":"top"]:l+h,behavior:t})},et=tt;class st{constructor(h){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,e,s;return((s=(e=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:e.now)==null?void 0:s.call(e))??Date.now()},this.observer=(()=>{let t=null;const e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(i=>{const o=()=>{const n=i.target,r=this.indexFromElement(n);if(!n.isConnected){this.observer.unobserve(n);for(const[a,d]of this.elementsCache)if(d===n){this.elementsCache.delete(a);break}return}this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var s;(s=e())==null||s.disconnect(),t=null},observe:s=>{var i;return(i=e())==null?void 0:i.observe(s,{box:"border-box"})},unobserve:s=>{var i;return(i=e())==null?void 0:i.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{var e,s;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:q,rangeExtractor:X,onChange:()=>{},measureElement:Z,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const u in t){const g=t[u];g!==void 0&&(i[u]=g)}const o=this.options;let n=null,r=null,a=!1;if(o!==void 0&&o.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const u=o.count,g=i.count,S=this.getMeasurements(),E=u>0?((e=S[0])==null?void 0:e.key)??o.getItemKey(0):null,O=u>0?((s=S[u-1])==null?void 0:s.key)??o.getItemKey(u-1):null;if(g!==u||u>0&&g>0&&(i.getItemKey(0)!==E||i.getItemKey(g-1)!==O)){a=!0;const b=u>0?this.getVirtualItemForOffset(this.getScrollOffset())??S[0]:null;b&&(n=[b.key,this.getScrollOffset()-b.start]);const v=i.followOnAppend===!0?"auto":i.followOnAppend||null;v&&g>u&&this.isAtEnd(o.scrollEndThreshold)&&(u===0||i.getItemKey(g-1)!==O)&&(r=v)}}this.options=i,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let d=!1,m=0;if(n&&this.scrollOffset!==null){const[u,g]=n,S=this.getMeasurements(),{count:E,getItemKey:O}=this.options;let c=0;for(;c<E&&O(c)!==u;)c++;if(c<E){const f=S[c];if(f){const b=f.start+g;b!==this.scrollOffset&&(m=b-this.scrollOffset,this.scrollOffset=b,d=!0)}}}(d||r)&&(this.pendingScrollAnchor=[d?n[0]:null,d?n[1]:0,r,m])},this.notify=t=>{var e,s;(s=(e=this.options).onChange)==null||s.call(e,this,t)},this.maybeNotify=z(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{if(o&&this._intendedScrollOffset===null&&i===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(i-this._intendedScrollOffset)<1.5&&(i=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=o?n===i?this.scrollDirection:n<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const i=this.scrollElement,o=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!R()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};i.addEventListener("touchstart",o,A),i.addEventListener("touchend",n,A),this.unsubs.push(()=>{i.removeEventListener("touchstart",o),i.removeEventListener("touchend",n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){const[i,o,n,r]=s;i!==null&&!n&&(R()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?r!==0&&(this._iosDeferredAdjustment+=r):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const t=this.getScrollOffset(),e=this.getMaxScrollOffset();if(t<0||t>e)return;const s=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=s,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=z(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,e,s,i,o,n,r,a)=>(this.prevLanes!==void 0&&this.prevLanes!==n&&(this.lanesChangedFlag=!0),this.prevLanes=n,this.pendingMin=null,{count:t,paddingStart:e,scrollMargin:s,getItemKey:i,enabled:o,lanes:n,laneAssignmentMode:r,gap:a}),{key:!1}),this.getMeasurements=z(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:e,scrollMargin:s,getItemKey:i,enabled:o,lanes:n,laneAssignmentMode:r,gap:a},d)=>{const m=this.itemSizeCache;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const c of this.laneAssignments.keys())c>=t&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1),n===1){const c=t*2;let f=this._flatMeasurements;if(!f||f.length<c){const p=new Float64Array(c);f&&u>0&&p.set(f.subarray(0,u*2)),f=p,this._flatMeasurements=f}let b;if(u===0)b=e+s;else{const p=u-1;b=f[p*2]+f[p*2+1]+a}for(let p=u;p<t;p++){const T=i(p),w=m.get(T),x=typeof w=="number"?w:this.options.estimateSize(p);f[p*2]=b,f[p*2+1]=x,b+=x+a}const v=H(t,f,i);return this.measurementsCache=v,v}const g=this.measurementsCache.slice(0,u),S=new Array(n).fill(void 0),E=new Float64Array(n);let O=0;for(let c=0;c<u;c++){const f=g[c];f&&(S[f.lane]===void 0&&O++,S[f.lane]=c,E[f.lane]=f.end)}for(let c=u;c<t;c++){const f=i(c),b=this.laneAssignments.get(c);let v,p;const T=r==="estimate"||m.has(f);if(b!==void 0&&this.options.lanes>1){v=b;const y=S[v],I=y!==void 0?g[y]:void 0;p=I?I.end+a:e+s}else if(O===n){let y=0,I=E[0],D=S[0];for(let _=1;_<n;_++){const F=E[_];(F<I||F===I&&S[_]<D)&&(y=_,I=F,D=S[_])}v=y,p=I+a,T&&this.laneAssignments.set(c,v)}else v=c%this.options.lanes,p=e+s,T&&this.laneAssignments.set(c,v);const w=m.get(f),x=typeof w=="number"?w:this.options.estimateSize(c),k=p+x;g[c]={index:c,start:p,size:x,end:k,key:f,lane:v},S[v]===void 0&&O++,S[v]=c,E[v]=k}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=z(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,s,i)=>t.length===0||e===0?(this.range=null,null):(this.range=nt(t,e,s,i,i===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=z(()=>{let t=null,e=null;const s=this.calculateRange();return s&&(t=s.startIndex,e=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,s,i,o)=>i===null||o===null?[]:t({startIndex:i,endIndex:o,overscan:e,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,s=t.getAttribute(e);return s?parseInt(s,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var e;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((e=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:e.index);if(s!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,s-i),n=Math.min(this.options.count-1,s+i);return t>=o&&t<=n}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,n)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(n))});return}const e=this.indexFromElement(t),s=this.options.getItemKey(e),i=this.elementsCache.get(s);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(s,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(e)&&this.resizeItem(e,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,e)=>{var s,i;if(t<0||t>=this.options.count)return;let o,n,r;const a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)r=this.options.getItemKey(t),n=a[t*2],o=a[t*2+1];else{const u=this.measurementsCache[t];if(!u)return;r=u.key,n=u.start,o=u.size}const d=this.itemSizeCache.get(r)??o,m=e-d;if(m!==0){const u=this.options.anchorTo==="end"&&((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,g=u?this.getTotalSize():0,S=((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:r,start:n,size:o,end:n+o,lane:0},m,this):n<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(r)||this.scrollDirection!=="backward"));(this.pendingMin===null||t<this.pendingMin)&&(this.pendingMin=t),this.itemSizeCache.set(r,e),this.itemSizeCacheVersion++,u?this.applyScrollAdjustment(this.getTotalSize()-g):S&&this.applyScrollAdjustment(m),this.notify(!1)}},this.getVirtualItems=z(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{const s=[];for(let i=0,o=t.length;i<o;i++){const n=t[i],r=e[n];s.push(r)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements();if(e.length===0)return;const s=this._flatMeasurements,i=this.options.lanes===1&&s!=null,o=K(0,e.length-1,i?n=>s[n*2]:n=>L(e[n]).start,t);return L(e[o])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,e,s=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),o=this.getScrollOffset();e==="auto"&&(e=t>=o+i?"end":"start"),e==="center"?t+=(s-i)/2:e==="end"&&(t-=i);const n=this.getMaxScrollOffset();return Math.max(Math.min(n,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.getSize(),i=this.getScrollOffset(),o=this.measurementsCache[t];if(!o)return;if(e==="auto")if(o.end>=i+s-this.options.scrollPaddingEnd)e="end";else if(o.start<=i+this.options.scrollPaddingStart)e="start";else return[i,e];if(e==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),e];const n=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(n,e,o.size),e]},this.scrollToOffset=(t,{align:e="start",behavior:s="auto"}={})=>{const i=this.getOffsetForAlignment(t,e),o=this.now();this.scrollState={index:null,align:e,behavior:s,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:e="auto",behavior:s="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.getOffsetForIndex(t,e);if(!i)return;const[o,n]=i,r=this.now();this.scrollState={index:t,align:n,behavior:s,startedAt:r,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:e="auto"}={})=>{const s=this.getScrollOffset()+t,i=this.now();this.scrollState={index:null,align:"start",behavior:e,startedAt:i,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:e}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;const e=this.getMeasurements();let s;if(e.length===0)s=this.options.paddingStart;else if(this.options.lanes===1){const i=e.length-1,o=this._flatMeasurements;o!=null?s=o[i*2]+o[i*2+1]:s=((t=e[i])==null?void 0:t.end)??0}else{const i=Array(this.options.lanes).fill(null);let o=e.length-1;for(;o>=0&&i.some(n=>n===null);){const n=e[o];i[n.lane]===null&&(i[n.lane]=n.end),o--}s=Math.max(...i.filter(n=>n!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const t=[];if(this.itemSizeCache.size===0)return t;const e=this.getMeasurements();for(const s of e)s&&this.itemSizeCache.has(s.key)&&t.push({index:s.index,key:s.key,start:s.start,size:s.size,end:s.end,lane:s.lane});return t},this._scrollToOffset=(t,{adjustments:e,behavior:s})=>{this._intendedScrollOffset=t+(e??0),this.options.scrollToFn(t,{behavior:s,adjustments:e},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(h)}applyScrollAdjustment(h,t){h!==0&&(R()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=h:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollAdjustments=0)))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const e=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=e?e[0]:this.scrollState.lastTargetOffset,i=1,o=s!==this.scrollState.lastTargetOffset;if(!o&&J(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.getScrollOffset()!==s&&this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,o){const n=this.getSize()||600,r=Math.abs(s-this.getScrollOffset()),a=this.scrollState.behavior==="smooth"&&r>n;this.scrollState.lastTargetOffset=s,a||(this.scrollState.behavior="auto"),this._scrollToOffset(s,{adjustments:void 0,behavior:a?"smooth":"auto"})}this.scheduleScrollReconcile()}}const K=(l,h,t,e)=>{for(;l<=h;){const s=(l+h)/2|0,i=t(s);if(i<e)l=s+1;else if(i>e)h=s-1;else return s}return l>0?l-1:0};function it(l,h,t){let e=0;for(;e<=h;){const s=(e+h)/2|0,i=l[s*2];if(i<t)e=s+1;else if(i>t)h=s-1;else return s}return e>0?e-1:0}function nt(l,h,t,e,s){const i=l.length-1;if(l.length<=e)return{startIndex:0,endIndex:i};if(e===1&&s!==null){const a=it(s,i,t);let d=a;const m=t+h;for(;d<i&&s[d*2]+s[d*2+1]<m;)d++;return{startIndex:a,endIndex:d}}let n=K(0,i,a=>l[a].start,t),r=n;if(e===1)for(;r<i&&l[r].end<t+h;)r++;else if(e>1){const a=Array(e).fill(0);for(;r<i&&a.some(m=>m<t+h);){const m=l[r];a[m.lane]=m.end,r++}const d=Array(e).fill(t+h);for(;n>=0&&d.some(m=>m>=t);){const m=l[n];d[m.lane]=m.start,n--}n=Math.max(0,n-n%e),r=Math.min(i,r+(e-1-r%e))}return{startIndex:n,endIndex:r}}function ot(l){const h=new st(C(l)),t=P(h),e=h._didMount();return W(()=>C(l).getScrollElement(),s=>{s&&h._willUpdate()},{immediate:!0}),W(()=>C(l),s=>{h.setOptions({...s,onChange:(i,o)=>{var n;j(t),(n=s.onChange)==null||n.call(s,i,o)}}),h._willUpdate(),j(t)},{immediate:!0}),N(e),t}function rt(l){return ot(B(()=>({observeElementRect:$,observeElementOffset:Y,scrollToFn:et,...C(l)})))}export{rt as u};
@@ -0,0 +1 @@
1
+ import{d as ee,w as te,q as oe,O as ae,c as U,g as s,b as t,e as u,f as n,h as a,F as le,E as ne,o as d,j as se,l as m,a1 as re,t as ie,_ as ce,I as de,P as S,an as q,k as O,v as B,r as v,J as M,B as ue}from"./1QWBzxLM.js";import{_ as me}from"./mi7tdFxN.js";import{_ as pe}from"./DxBrlj7b.js";import{_ as ge}from"./uspGXbik.js";import{_ as fe}from"./bmAf49LT.js";import{_ as xe}from"./B4lvHjBe.js";import{_ as _e}from"./Cnm0d_7S.js";import{_ as ve}from"./CtQMagSz.js";import{u as be}from"./CU_2YLhT.js";import{o as ye,s as P}from"./DGnQ69wW.js";import"./D4mPjHHR.js";import"./VBTxfbqU.js";import"./B82vqOZe.js";import"./CHz7LJIX.js";import"./AbnDY6Zr.js";import"./Bl0xzETD.js";const Te={class:"space-y-6"},Ce={class:"flex items-center gap-2"},ke={class:"text-sm font-mono text-muted"},he={class:"flex gap-1 justify-end"},$e={class:"text-center py-12"},Ve={class:"flex justify-center mb-4"},Ae={class:"flex items-center gap-3"},we={key:0,class:"mt-2"},Ue={class:"flex items-center gap-3"},Ee={key:0,class:"mt-2"},b="#6366f1",Je=ee({__name:"tags",async setup(De){let y,E;const{data:z,refresh:V}=([y,E]=te(()=>be("/api/tags","$F3fVqC3Sbv")),y=await y,E(),y),p=oe(),{authState:N}=ae(),I=ue(),A=B(()=>z.value?.items||[]),T=B(()=>I.public.authEnabled?N.value.user?.role==="administrator":!0),K=[{accessorKey:"text",header:"Tag"},{accessorKey:"color",header:"Color"},{accessorKey:"createdAt",header:"Created"},{accessorKey:"actions",header:""}],g=v(!1),D=ye({text:P().min(1,"Tag text is required").max(50,"Tag text must be at most 50 characters"),color:P().min(1,"Color is required")}),r=M({text:"",color:b}),x=v(!1),C=v(null),i=M({text:"",color:b});function L(l){C.value=l,i.text=l.text,i.color=l.color,x.value=!0}async function R(){try{await $fetch("/api/tags",{method:"POST",body:r}),p.add({title:"Tag created",description:`Tag "${r.text}" has been created successfully`,color:"success"}),g.value=!1,r.text="",r.color=b,await V()}catch(l){const e=l&&typeof l=="object"&&"data"in l?l.data?.message:void 0;p.add({title:"Failed to create tag",description:e||"An error occurred",color:"error"})}}async function G(){if(C.value)try{await $fetch(`/api/tags/${C.value.id}`,{method:"PATCH",body:{text:i.text,color:i.color}}),p.add({title:"Tag updated",description:"Tag has been updated successfully",color:"success"}),x.value=!1,C.value=null,await V()}catch(l){const e=l&&typeof l=="object"&&"data"in l?l.data?.message:void 0;p.add({title:"Failed to update tag",description:e||"An error occurred",color:"error"})}}const _=v(!1),f=v(null);function H(l){f.value=l,_.value=!0}async function J(){const l=f.value;if(l){_.value=!1,f.value=null;try{await $fetch(`/api/tags/${l.id}`,{method:"DELETE"}),p.add({title:"Tag deleted",description:`Tag "${l.text}" has been deleted`,color:"success"}),await V()}catch(e){const c=e&&typeof e=="object"&&"data"in e?e.data?.message:void 0;p.add({title:"Failed to delete tag",description:c||"An error occurred",color:"error"})}}}return(l,e)=>{const c=se,k=me,Q=pe,W=ge,F=fe,X=ce,h=de,$=xe,j=_e,w=ve,Y=ne;return d(),U(le,null,[s("div",Te,[t(A).length>0?(d(),u(F,{key:0,title:"Tags",count:t(A).length,help:"settings.tags"},{actions:n(()=>[t(T)?(d(),u(c,{key:0,label:"Add tag",icon:"i-lucide-tag",size:"sm",onClick:e[0]||(e[0]=o=>g.value=!0)})):m("",!0)]),default:n(()=>[a(W,{data:t(A),columns:K},{"text-cell":n(({row:o})=>[a(k,{text:o.original.text,color:o.original.color},null,8,["text","color"])]),"color-cell":n(({row:o})=>[s("div",Ce,[s("span",{class:"inline-block w-4 h-4 rounded-full border border-black/10",style:re({backgroundColor:o.original.color})},null,4),s("span",ke,ie(o.original.color),1)])]),"createdAt-cell":n(({row:o})=>[a(Q,{date:o.original.createdAt,"date-only":"",class:"text-sm text-muted"},null,8,["date"])]),"actions-cell":n(({row:o})=>[s("div",he,[t(T)?(d(),u(c,{key:0,icon:"i-lucide-pencil",color:"neutral",variant:"ghost",size:"sm",onClick:Z=>L(o.original)},null,8,["onClick"])):m("",!0),t(T)?(d(),u(c,{key:1,icon:"i-lucide-trash-2",color:"error",variant:"ghost",size:"sm",onClick:Z=>H(o.original)},null,8,["onClick"])):m("",!0)])]),_:1},8,["data"])]),_:1},8,["count"])):(d(),u(F,{key:1,title:"Tags",count:0,help:"settings.tags"},{default:n(()=>[s("div",$e,[s("div",Ve,[a(X,{name:"i-lucide-tags",class:"text-4xl text-muted"})]),e[14]||(e[14]=s("h3",{class:"text-lg font-semibold mb-2"},"No tags yet",-1)),e[15]||(e[15]=s("p",{class:"text-muted mb-4"},"Create tags to categorize and filter your projects",-1)),t(T)?(d(),u(c,{key:0,label:"Add tag",icon:"i-lucide-tag",onClick:e[1]||(e[1]=o=>g.value=!0)})):m("",!0)])]),_:1}))]),a(Y,null,{default:n(()=>[a(w,{open:t(g),title:"Add new tag","onUpdate:open":e[6]||(e[6]=o=>g.value=o)},{body:n(()=>[a(j,{schema:t(D),state:t(r)},{default:n(()=>[a($,{label:"Tag text",name:"text",required:"",class:"mb-4"},{default:n(()=>[a(h,{modelValue:t(r).text,"onUpdate:modelValue":e[2]||(e[2]=o=>t(r).text=o),placeholder:"Enter tag name"},null,8,["modelValue"])]),_:1}),a($,{label:"Color",name:"color",required:"",class:"mb-4"},{default:n(()=>[s("div",Ae,[S(s("input",{"onUpdate:modelValue":e[3]||(e[3]=o=>t(r).color=o),type:"color",class:"w-10 h-10 rounded cursor-pointer border border-default","aria-label":"Pick tag color"},null,512),[[q,t(r).color]]),a(h,{modelValue:t(r).color,"onUpdate:modelValue":e[4]||(e[4]=o=>t(r).color=o),class:"flex-1 font-mono",placeholder:"#6366f1"},null,8,["modelValue"])])]),_:1}),t(r).text?(d(),U("div",we,[e[16]||(e[16]=s("span",{class:"text-sm text-muted mr-2"},"Preview:",-1)),a(k,{text:t(r).text,color:t(r).color||b},null,8,["text","color"])])):m("",!0)]),_:1},8,["schema","state"])]),footer:n(()=>[a(c,{type:"button",color:"neutral",variant:"ghost",label:"Cancel",onClick:e[5]||(e[5]=o=>g.value=!1)}),a(c,{type:"submit",label:"Create tag",icon:"i-lucide-tag",onClick:R})]),_:1},8,["open"]),a(w,{open:t(x),title:"Edit tag","onUpdate:open":e[11]||(e[11]=o=>x.value=o)},{body:n(()=>[a(j,{schema:t(D),state:t(i)},{default:n(()=>[a($,{label:"Tag text",name:"text",required:"",class:"mb-4"},{default:n(()=>[a(h,{modelValue:t(i).text,"onUpdate:modelValue":e[7]||(e[7]=o=>t(i).text=o),placeholder:"Enter tag name"},null,8,["modelValue"])]),_:1}),a($,{label:"Color",name:"color",required:"",class:"mb-4"},{default:n(()=>[s("div",Ue,[S(s("input",{"onUpdate:modelValue":e[8]||(e[8]=o=>t(i).color=o),type:"color",class:"w-10 h-10 rounded cursor-pointer border border-default","aria-label":"Pick tag color"},null,512),[[q,t(i).color]]),a(h,{modelValue:t(i).color,"onUpdate:modelValue":e[9]||(e[9]=o=>t(i).color=o),class:"flex-1 font-mono",placeholder:"#6366f1"},null,8,["modelValue"])])]),_:1}),t(i).text?(d(),U("div",Ee,[e[17]||(e[17]=s("span",{class:"text-sm text-muted mr-2"},"Preview:",-1)),a(k,{text:t(i).text,color:t(i).color||b},null,8,["text","color"])])):m("",!0)]),_:1},8,["schema","state"])]),footer:n(()=>[a(c,{type:"button",color:"neutral",variant:"ghost",label:"Cancel",onClick:e[10]||(e[10]=o=>x.value=!1)}),a(c,{type:"submit",label:"Save changes",icon:"i-lucide-check",onClick:G})]),_:1},8,["open"]),a(w,{open:t(_),title:"Delete tag","onUpdate:open":e[13]||(e[13]=o=>_.value=o)},{body:n(()=>[s("p",null,[e[18]||(e[18]=O(" Are you sure you want to delete tag ",-1)),t(f)?(d(),u(k,{key:0,text:t(f).text,color:t(f).color,class:"inline-flex"},null,8,["text","color"])):m("",!0),e[19]||(e[19]=O("? It will be removed from all projects. ",-1))])]),footer:n(()=>[a(c,{color:"neutral",variant:"ghost",label:"Cancel",onClick:e[12]||(e[12]=o=>_.value=!1)}),a(c,{color:"error",label:"Delete",icon:"i-lucide-trash-2",onClick:J})]),_:1},8,["open"])]),_:1})],64)}}});export{Je as default};
@@ -1 +1 @@
1
- import{ad as b,B as E}from"./BdQ7kfxJ.js";const v="piwi-demo-run-events";let o=null;const u=new Set;function S(e){return o||(o=new BroadcastChannel(v),o.onmessage=n=>{for(const l of u)l(n.data)}),u.add(e),()=>{u.delete(e),u.size===0&&o&&(o.close(),o=null)}}let t=null,r=null;const s=new Set;let i=null;const p=1e3,w=3e4,y=[5*6e4,15*6e4,30*6e4];let a=Date.now(),c=!1;function f(){a=Date.now()}function h(){const e=Date.now()-a;let n=1;for(const l of y)if(e>=l)n*=2;else break;return Math.min(p*n,w)}const C=new Set(["run-initializing","run-started","run-finalizing","run-finished","run-submitted","run-cancelled"]);function d(e){C.has(e)&&(i&&clearTimeout(i),i=setTimeout(()=>{for(const n of s)n()},h()))}function m(){t||(t=new EventSource("/api/stream"),t.onmessage=e=>{try{const n=JSON.parse(e.data);d(n.type)}catch{}},t.onerror=()=>{})}function g(){if(f(),document.visibilityState==="hidden")t&&(t.close(),t=null),i&&(clearTimeout(i),i=null);else if(s.size>0){m();for(const e of s)e()}}function A(){if(!c){c=!0;const e=["mousemove","keydown","pointerdown","scroll"];for(const n of e)window.addEventListener(n,f,{passive:!0});document.addEventListener("visibilitychange",g)}if(E().public.demoMode){if(r)return;r=S(e=>{e.scope==="global"&&d(e.event.type)});return}document.visibilityState!=="hidden"&&m()}function T(){s.size>0||(t&&(t.close(),t=null),r&&(r(),r=null),i&&(clearTimeout(i),i=null))}function N(e){A(),s.add(e),b(()=>{s.delete(e),T()})}export{S as s,N as u};
1
+ import{ad as b,B as E}from"./1QWBzxLM.js";const v="piwi-demo-run-events";let o=null;const u=new Set;function S(e){return o||(o=new BroadcastChannel(v),o.onmessage=n=>{for(const l of u)l(n.data)}),u.add(e),()=>{u.delete(e),u.size===0&&o&&(o.close(),o=null)}}let t=null,r=null;const s=new Set;let i=null;const p=1e3,w=3e4,y=[5*6e4,15*6e4,30*6e4];let a=Date.now(),c=!1;function f(){a=Date.now()}function h(){const e=Date.now()-a;let n=1;for(const l of y)if(e>=l)n*=2;else break;return Math.min(p*n,w)}const C=new Set(["run-initializing","run-started","run-finalizing","run-finished","run-submitted","run-cancelled"]);function d(e){C.has(e)&&(i&&clearTimeout(i),i=setTimeout(()=>{for(const n of s)n()},h()))}function m(){t||(t=new EventSource("/api/stream"),t.onmessage=e=>{try{const n=JSON.parse(e.data);d(n.type)}catch{}},t.onerror=()=>{})}function g(){if(f(),document.visibilityState==="hidden")t&&(t.close(),t=null),i&&(clearTimeout(i),i=null);else if(s.size>0){m();for(const e of s)e()}}function A(){if(!c){c=!0;const e=["mousemove","keydown","pointerdown","scroll"];for(const n of e)window.addEventListener(n,f,{passive:!0});document.addEventListener("visibilitychange",g)}if(E().public.demoMode){if(r)return;r=S(e=>{e.scope==="global"&&d(e.event.type)});return}document.visibilityState!=="hidden"&&m()}function T(){s.size>0||(t&&(t.close(),t=null),r&&(r(),r=null),i&&(clearTimeout(i),i=null))}function N(e){A(),s.add(e),b(()=>{s.delete(e),T()})}export{S as s,N as u};
@@ -1 +1 @@
1
- import{d as _,e as i,ac as h,f as l,o as s,U as o,g as a,_ as g,i as k,l as n,k as c,t as r,c as m,F as p}from"./BdQ7kfxJ.js";import{_ as y}from"./CrsaY0R_.js";import{_ as x}from"./HGYIpJtg.js";const C={class:"flex items-start justify-between flex-wrap gap-x-2 gap-y-1"},$={class:"flex items-center gap-2 min-w-0 basis-56 grow"},b={class:"min-w-0"},w={class:"text-lg font-medium inline-flex items-center gap-1"},v={key:0,class:"text-sm text-gray-500 mt-0.5"},S={key:0,class:"flex items-center gap-1 shrink-0"},B=_({__name:"SectionCard",props:{title:{},icon:{},subtitle:{},count:{},iconClass:{default:"text-primary"},help:{}},setup(e){return(t,N)=>{const u=g,d=y,f=x;return s(),i(f,null,h({header:l(()=>[a("div",C,[a("div",$,[e.icon?(s(),i(u,{key:0,name:e.icon,class:k(["w-5 h-5 shrink-0",e.iconClass])},null,8,["name","class"])):n("",!0),a("div",b,[a("h3",w,[c(r(e.title),1),e.count!=null?(s(),m(p,{key:0},[c(" ("+r(e.count)+")",1)],64)):n("",!0),e.help?(s(),i(d,{key:1,topic:e.help},null,8,["topic"])):n("",!0)]),e.subtitle||t.$slots.subtitle?(s(),m("p",v,[o(t.$slots,"subtitle",{},()=>[c(r(e.subtitle),1)])])):n("",!0)])]),t.$slots.actions?(s(),m("div",S,[o(t.$slots,"actions")])):n("",!0)])]),default:l(()=>[o(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:l(()=>[o(t.$slots,"footer")]),key:"0"}:void 0]),1024)}}}),F=Object.assign(B,{__name:"SectionCard"});export{F as _};
1
+ import{d as _,e as i,ac as h,f as l,o as s,U as o,g as a,_ as g,i as k,l as n,k as c,t as r,c as m,F as p}from"./1QWBzxLM.js";import{_ as y}from"./B82vqOZe.js";import{_ as x}from"./AbnDY6Zr.js";const C={class:"flex items-start justify-between flex-wrap gap-x-2 gap-y-1"},$={class:"flex items-center gap-2 min-w-0 basis-56 grow"},b={class:"min-w-0"},w={class:"text-lg font-medium inline-flex items-center gap-1"},v={key:0,class:"text-sm text-gray-500 mt-0.5"},S={key:0,class:"flex items-center gap-1 shrink-0"},B=_({__name:"SectionCard",props:{title:{},icon:{},subtitle:{},count:{},iconClass:{default:"text-primary"},help:{}},setup(e){return(t,N)=>{const u=g,d=y,f=x;return s(),i(f,null,h({header:l(()=>[a("div",C,[a("div",$,[e.icon?(s(),i(u,{key:0,name:e.icon,class:k(["w-5 h-5 shrink-0",e.iconClass])},null,8,["name","class"])):n("",!0),a("div",b,[a("h3",w,[c(r(e.title),1),e.count!=null?(s(),m(p,{key:0},[c(" ("+r(e.count)+")",1)],64)):n("",!0),e.help?(s(),i(d,{key:1,topic:e.help},null,8,["topic"])):n("",!0)]),e.subtitle||t.$slots.subtitle?(s(),m("p",v,[o(t.$slots,"subtitle",{},()=>[c(r(e.subtitle),1)])])):n("",!0)])]),t.$slots.actions?(s(),m("div",S,[o(t.$slots,"actions")])):n("",!0)])]),default:l(()=>[o(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:l(()=>[o(t.$slots,"footer")]),key:"0"}:void 0]),1024)}}}),F=Object.assign(B,{__name:"SectionCard"});export{F as _};
@@ -1 +1 @@
1
- {"id":"a5fb24cc-65e3-4e55-aa12-038fe2de4754","timestamp":1787178972675}
1
+ {"id":"0174ebd8-8fa5-4698-aa79-7a8dd2f6527f","timestamp":1788159730016}
@@ -0,0 +1 @@
1
+ {"id":"0174ebd8-8fa5-4698-aa79-7a8dd2f6527f","timestamp":1788159730016,"prerendered":[]}