@piwitests/server 0.15.0 → 0.17.0

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 (479) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DCCMLWel.js → -9tk1FrT.js} +1 -1
  3. package/.output/public/_nuxt/26ll_vBr.js +1 -0
  4. package/.output/public/_nuxt/{BpepjHwc.js → 3QTorEhJ.js} +1 -1
  5. package/.output/public/_nuxt/{DKTDub7I.js → 3QTvYrZp.js} +1 -1
  6. package/.output/public/_nuxt/{CHSkT2s0.js → 73aPL7Ir.js} +1 -1
  7. package/.output/public/_nuxt/8jZmK2De.js +4 -0
  8. package/.output/public/_nuxt/8xyZSRSO.js +1 -0
  9. package/.output/public/_nuxt/{V1BQiRoh.js → 99tAfVF5.js} +1 -1
  10. package/.output/public/_nuxt/{BY0AkhJh.js → B1CUXGbl.js} +1 -1
  11. package/.output/public/_nuxt/B6hPf4UR.js +1 -0
  12. package/.output/public/_nuxt/{F07TcX0U.js → B6w76fJT.js} +1 -1
  13. package/.output/public/_nuxt/{B32-7cBF.js → BDcIWTTq.js} +1 -1
  14. package/.output/public/_nuxt/{OG2n3p77.js → BE8ykmwr.js} +1 -1
  15. package/.output/public/_nuxt/{rvaZFYoE.js → BEsJE07U.js} +1 -1
  16. package/.output/public/_nuxt/{DQpa8F03.js → BGZQONfm.js} +1 -1
  17. package/.output/public/_nuxt/{DZoSxwj6.js → BRdhP5lm.js} +1 -1
  18. package/.output/public/_nuxt/{n7Htv9PJ.js → BU6xjw05.js} +1 -1
  19. package/.output/public/_nuxt/{DvdOsTLb.js → BWFY2RuU.js} +1 -1
  20. package/.output/public/_nuxt/{60-Zii7v.js → B_QIrc7l.js} +1 -1
  21. package/.output/public/_nuxt/{CrFCPOnY.js → Ba4_ydKG.js} +1 -1
  22. package/.output/public/_nuxt/{BfshMo9k.js → BcLXUmKT.js} +2 -2
  23. package/.output/public/_nuxt/{CD-xwM9N.js → BciovqwK.js} +1 -1
  24. package/.output/public/_nuxt/{i38YGG9S.js → BgDEjrcz.js} +1 -1
  25. package/.output/public/_nuxt/{rWwWS3Kj.js → BoRJdCd4.js} +1 -1
  26. package/.output/public/_nuxt/{O1A-LRgV.js → Bpha13F_.js} +1 -1
  27. package/.output/public/_nuxt/{2PU-adwy.js → Bq0PQfQY.js} +1 -1
  28. package/.output/public/_nuxt/{B8fs6GU9.js → BrT_Sys2.js} +31 -31
  29. package/.output/public/_nuxt/{ETOCcsVw.js → Bua_L6p4.js} +1 -1
  30. package/.output/public/_nuxt/{nUsJV5qo.js → BwKwWgQe.js} +1 -1
  31. package/.output/public/_nuxt/{4fB15L_7.js → BxRsAYRS.js} +1 -1
  32. package/.output/public/_nuxt/{DVdOm5Bg.js → ByoIgYX_.js} +1 -1
  33. package/.output/public/_nuxt/{Bq2ZPvIH.js → C7nwFokE.js} +1 -1
  34. package/.output/public/_nuxt/CEuVRSr0.js +3 -0
  35. package/.output/public/_nuxt/{CokbKVE6.js → CHHqhAsw.js} +1 -1
  36. package/.output/public/_nuxt/{BBJ9Pu3M.js → CHIbdzqp.js} +1 -1
  37. package/.output/public/_nuxt/{C9jjVEQU.js → CMB-NkFa.js} +1 -1
  38. package/.output/public/_nuxt/{CU-OXXdh.js → CNULGfLp.js} +1 -1
  39. package/.output/public/_nuxt/{Surk4Lw-.js → COVRAesU.js} +1 -1
  40. package/.output/public/_nuxt/{h-e-Ca3f.js → CSAmL8XJ.js} +1 -1
  41. package/.output/public/_nuxt/{CHgsEM4U.js → CWmQcueG.js} +1 -1
  42. package/.output/public/_nuxt/{BgR7oL4p.js → CYuWAvXE.js} +1 -1
  43. package/.output/public/_nuxt/CbuWynGG.js +1 -0
  44. package/.output/public/_nuxt/{CIOQo6gB.js → Ce3tBrN7.js} +1 -1
  45. package/.output/public/_nuxt/{DNP5tTJo.js → Cf4h8qty.js} +1 -1
  46. package/.output/public/_nuxt/{B9Q_4Mjt.js → Cl96oI21.js} +1 -1
  47. package/.output/public/_nuxt/{PPFO8UVt.js → ClJkng9p.js} +1 -1
  48. package/.output/public/_nuxt/{B32ySRXg.js → CoKEjZX7.js} +1 -1
  49. package/.output/public/_nuxt/CvtYJHkY.js +1 -0
  50. package/.output/public/_nuxt/{BCK4f6Y3.js → CxLN5Tmq.js} +1 -1
  51. package/.output/public/_nuxt/{ChWPXucC.js → Cz2HhsB6.js} +1 -1
  52. package/.output/public/_nuxt/{B_80i5Ge.js → D0-HTQTD.js} +1 -1
  53. package/.output/public/_nuxt/{CHMpVLqo.js → D13ybpY3.js} +1 -1
  54. package/.output/public/_nuxt/{CvCF77E-.js → D7P0ML0H.js} +2 -2
  55. package/.output/public/_nuxt/{BW1UOxWn.js → D811X8KM.js} +1 -1
  56. package/.output/public/_nuxt/DATh_1DQ.js +1 -0
  57. package/.output/public/_nuxt/{BEKwVcvQ.js → DAeYmPfX.js} +1 -1
  58. package/.output/public/_nuxt/DCffDvxl.js +1 -0
  59. package/.output/public/_nuxt/DDPptydi.js +2 -0
  60. package/.output/public/_nuxt/{DkFbpSsi.js → DFM2jv9I.js} +1 -1
  61. package/.output/public/_nuxt/{D4nLD93c.js → DJHNEqb7.js} +1 -1
  62. package/.output/public/_nuxt/{DaKVSp-6.js → DPSOtRoz.js} +1 -1
  63. package/.output/public/_nuxt/{DYDGGqZ3.js → DRTxhZBV.js} +1 -1
  64. package/.output/public/_nuxt/{Cgr8IKY4.js → DS9yGVFL.js} +1 -1
  65. package/.output/public/_nuxt/{Cfk2_UCm.js → DT5rhzhJ.js} +1 -1
  66. package/.output/public/_nuxt/{DFw8I2FL.js → DTH2lteW.js} +1 -1
  67. package/.output/public/_nuxt/DUe6xuKQ.js +1 -0
  68. package/.output/public/_nuxt/D_A6axXa.js +1 -0
  69. package/.output/public/_nuxt/D_TbJDHY.js +1 -0
  70. package/.output/public/_nuxt/{B59-l1Cv.js → Df3QtbpW.js} +1 -1
  71. package/.output/public/_nuxt/{BkhdAGx0.js → DjRhouSr.js} +1 -1
  72. package/.output/public/_nuxt/Dn6cGVYB.js +1 -0
  73. package/.output/public/_nuxt/{0KrkW531.js → DpJrGwCr.js} +2 -2
  74. package/.output/public/_nuxt/DqsMiUoW.js +2 -0
  75. package/.output/public/_nuxt/{C7RarFGi.js → Ds2Y3oms.js} +1 -1
  76. package/.output/public/_nuxt/Ds4Lb1vi.js +7 -0
  77. package/.output/public/_nuxt/{DWzdeQ3Z.js → DtXREpk_.js} +1 -1
  78. package/.output/public/_nuxt/{Dejf0f7D.js → DvC5Adg1.js} +3 -3
  79. package/.output/public/_nuxt/{o5WQ5Z7k.js → DvXvJzFP.js} +1 -1
  80. package/.output/public/_nuxt/{DAeYEeCC.js → Dvc1aWpA.js} +1 -1
  81. package/.output/public/_nuxt/{DzbOHjZH.js → DwZiG9xH.js} +1 -1
  82. package/.output/public/_nuxt/Dx1oCMgy.js +47 -0
  83. package/.output/public/_nuxt/{BGsuOpiq.js → DxQq_L07.js} +1 -1
  84. package/.output/public/_nuxt/{CqA3gM8h.js → Dym66h3p.js} +1 -1
  85. package/.output/public/_nuxt/{CNzoIhwN.js → Dz3Wbekz.js} +1 -1
  86. package/.output/public/_nuxt/HCK35QD8.js +1 -0
  87. package/.output/public/_nuxt/{Cpquifvd.js → L6HlmmEa.js} +1 -1
  88. package/.output/public/_nuxt/{BMQIO38j.js → PxPbRVF-.js} +1 -1
  89. package/.output/public/_nuxt/{DiUGa0CT.js → QFMx1VKs.js} +1 -1
  90. package/.output/public/_nuxt/{DHVmXA9K.js → Sgf5OLhm.js} +1 -1
  91. package/.output/public/_nuxt/US3YSX4T.js +1 -0
  92. package/.output/public/_nuxt/{DZLrAp2i.js → Wfk1m0ni.js} +1 -1
  93. package/.output/public/_nuxt/builds/latest.json +1 -1
  94. package/.output/public/_nuxt/builds/meta/05a2dd95-d1c1-4e3a-8625-ac6bfea83837.json +1 -0
  95. package/.output/public/_nuxt/{too3WhRB.js → cBj9fai9.js} +1 -1
  96. package/.output/public/_nuxt/{DxXZN6ed.js → csqspBeX.js} +1 -1
  97. package/.output/public/_nuxt/entry.BaIGwMjT.css +1 -0
  98. package/.output/public/_nuxt/{__m3KqHO.js → jlBi8Byu.js} +1 -1
  99. package/.output/public/_nuxt/{Dv2B_nw_.js → lCkcEykv.js} +1 -1
  100. package/.output/public/_nuxt/qYFZH4Z8.js +34 -0
  101. package/.output/public/_nuxt/{3SnTawZW.js → r3SBLxtE.js} +1 -1
  102. package/.output/public/_nuxt/{DI_-kFec.js → r9WApUfF.js} +1 -1
  103. package/.output/public/_nuxt/{BC_Wu-fv.js → rw7Hdll3.js} +1 -1
  104. package/.output/public/_nuxt/{IdQR_Djw.js → sMFaPAAR.js} +1 -1
  105. package/.output/public/_nuxt/{CKZn0TUX.js → vzXhOO8R.js} +1 -1
  106. package/.output/public/_nuxt/{CFn3w5jn.js → yZ4LuI9d.js} +1 -1
  107. package/.output/public/_nuxt/{BtJkQ3to.js → z7PmsnBG.js} +1 -1
  108. package/.output/public/_nuxt/{lRMjXqiA.js → za5M7BGh.js} +1 -1
  109. package/.output/public/demo/seed.version.json +2 -2
  110. package/.output/public/sw.js +1 -1
  111. package/.output/server/chunks/_/markers.mjs +1 -1
  112. package/.output/server/chunks/_/users.mjs +1 -1
  113. package/.output/server/chunks/build/{BrowserBadge-BTA4QU_J.mjs → BrowserBadge-DNCp9pF-.mjs} +3 -3
  114. package/.output/server/chunks/build/BrowserBadge-DNCp9pF-.mjs.map +1 -0
  115. package/.output/server/chunks/build/{ChartCard-BqAhMip2.mjs → ChartCard-Fr557IbV.mjs} +2 -2
  116. package/.output/server/chunks/build/ChartCard-Fr557IbV.mjs.map +1 -0
  117. package/.output/server/chunks/build/{Checkbox-_1nGm_DR.mjs → Checkbox-cVOSIY93.mjs} +6 -6
  118. package/.output/server/chunks/build/Checkbox-cVOSIY93.mjs.map +1 -0
  119. package/.output/server/chunks/build/{CiEnvCard-DAufYuJw.mjs → CiEnvCard-DXPOhdSG.mjs} +5 -5
  120. package/.output/server/chunks/build/CiEnvCard-DXPOhdSG.mjs.map +1 -0
  121. package/.output/server/chunks/build/{CodeBlock-BVKHuYjU.mjs → CodeBlock-BGwNmJ8J.mjs} +2 -2
  122. package/.output/server/chunks/build/CodeBlock-BGwNmJ8J.mjs.map +1 -0
  123. package/.output/server/chunks/build/{DashboardNavbar-BR6j4VLd.mjs → DashboardNavbar-Bdp-OwTN.mjs} +2 -2
  124. package/.output/server/chunks/build/DashboardNavbar-Bdp-OwTN.mjs.map +1 -0
  125. package/.output/server/chunks/build/DashboardSidebarToggle-Ji6ADuqF.mjs +1 -1
  126. package/.output/server/chunks/build/DataLocationCard-D6xSOrme.mjs +102 -0
  127. package/.output/server/chunks/build/DataLocationCard-D6xSOrme.mjs.map +1 -0
  128. package/.output/server/chunks/build/DesktopMcpCard-B4JuUTKj.mjs +122 -0
  129. package/.output/server/chunks/build/DesktopMcpCard-B4JuUTKj.mjs.map +1 -0
  130. package/.output/server/chunks/build/{DiagnosisPanel-BnrdXDvd.mjs → DiagnosisPanel-DV1xwGu4.mjs} +6 -6
  131. package/.output/server/chunks/build/DiagnosisPanel-DV1xwGu4.mjs.map +1 -0
  132. package/.output/server/chunks/build/EntityLinks-DeOP13Kr.mjs +1 -1
  133. package/.output/server/chunks/build/{EnvManagedBadge-DdnEtjIl.mjs → EnvManagedBadge-Qpn58Nmr.mjs} +5 -5
  134. package/.output/server/chunks/build/EnvManagedBadge-Qpn58Nmr.mjs.map +1 -0
  135. package/.output/server/chunks/build/{HelpHint-D_GJzMpW.mjs → HelpHint-YEMWtKu1.mjs} +18 -2
  136. package/.output/server/chunks/build/HelpHint-YEMWtKu1.mjs.map +1 -0
  137. package/.output/server/chunks/build/{Modal-COIjm3js.mjs → Modal-CfA78Hm1.mjs} +2 -2
  138. package/.output/server/chunks/build/Modal-CfA78Hm1.mjs.map +1 -0
  139. package/.output/server/chunks/build/{OpenInIdeLink-D97W6On1.mjs → OpenInIdeLink-B92wosXu.mjs} +3 -3
  140. package/.output/server/chunks/build/{OpenInIdeLink-D97W6On1.mjs.map → OpenInIdeLink-B92wosXu.mjs.map} +1 -1
  141. package/.output/server/chunks/build/{PageStateCard-C1HFN4Nv.mjs → PageStateCard-Bwee6JTk.mjs} +10 -10
  142. package/.output/server/chunks/build/{PageStateCard-C1HFN4Nv.mjs.map → PageStateCard-Bwee6JTk.mjs.map} +1 -1
  143. package/.output/server/chunks/build/{ProjectTestCasesTable-XFBPQGIX.mjs → ProjectTestCasesTable-9Ia825h8.mjs} +9 -9
  144. package/.output/server/chunks/build/ProjectTestCasesTable-9Ia825h8.mjs.map +1 -0
  145. package/.output/server/chunks/build/{RunReports-ChNkmuWa.mjs → RunReports-BpJqLHY9.mjs} +2 -2
  146. package/.output/server/chunks/build/RunReports-BpJqLHY9.mjs.map +1 -0
  147. package/.output/server/chunks/build/{RunStatusBadge-CXpuCUGQ.mjs → RunStatusBadge-BhmJ_RKM.mjs} +2 -2
  148. package/.output/server/chunks/build/RunStatusBadge-BhmJ_RKM.mjs.map +1 -0
  149. package/.output/server/chunks/build/{SectionCard-zs9FDzps.mjs → SectionCard-COd9TuDq.mjs} +2 -2
  150. package/.output/server/chunks/build/SectionCard-COd9TuDq.mjs.map +1 -0
  151. package/.output/server/chunks/build/{Select-r3S5nkSY.mjs → Select-ppPz926C.mjs} +5 -4
  152. package/.output/server/chunks/build/Select-ppPz926C.mjs.map +1 -0
  153. package/.output/server/chunks/build/{SelectMenu-Dk6f8i9o.mjs → SelectMenu-799c_Ils.mjs} +4 -4
  154. package/.output/server/chunks/build/{SelectMenu-Dk6f8i9o.mjs.map → SelectMenu-799c_Ils.mjs.map} +1 -1
  155. package/.output/server/chunks/build/{Separator-pqpPG0up.mjs → Separator-CxZdx8kw.mjs} +2 -2
  156. package/.output/server/chunks/build/Separator-CxZdx8kw.mjs.map +1 -0
  157. package/.output/server/chunks/build/{SettingsField-Wdpzlt13.mjs → SettingsField-DDD4oqys.mjs} +5 -5
  158. package/.output/server/chunks/build/SettingsField-DDD4oqys.mjs.map +1 -0
  159. package/.output/server/chunks/build/{Slideover-02XjJjn0.mjs → Slideover-B95Rj237.mjs} +3 -3
  160. package/.output/server/chunks/build/Slideover-B95Rj237.mjs.map +1 -0
  161. package/.output/server/chunks/build/{Switch-gx_JXgCo.mjs → Switch-xQQ3_ME1.mjs} +3 -3
  162. package/.output/server/chunks/build/Switch-xQQ3_ME1.mjs.map +1 -0
  163. package/.output/server/chunks/build/{Table-C64RrBp3.mjs → Table-CPhhVzDv.mjs} +3 -3
  164. package/.output/server/chunks/build/Table-CPhhVzDv.mjs.map +1 -0
  165. package/.output/server/chunks/build/{TestStatusBar--u4VX_Xf.mjs → TestStatusBar-CEzt76wk.mjs} +2 -2
  166. package/.output/server/chunks/build/TestStatusBar-CEzt76wk.mjs.map +1 -0
  167. package/.output/server/chunks/build/{Tooltip-ui_BVvqr.mjs → Tooltip-7vwuDPrZ.mjs} +3 -3
  168. package/.output/server/chunks/build/Tooltip-7vwuDPrZ.mjs.map +1 -0
  169. package/.output/server/chunks/build/{VisuallyHiddenInput-mMsqmkjz.mjs → VisuallyHiddenInput-C9eJVpPW.mjs} +2 -2
  170. package/.output/server/chunks/build/VisuallyHiddenInput-C9eJVpPW.mjs.map +1 -0
  171. package/.output/server/chunks/build/{_id_-R6KGfZOC.mjs → _id_-B2yirIuA.mjs} +259 -85
  172. package/.output/server/chunks/build/_id_-B2yirIuA.mjs.map +1 -0
  173. package/.output/server/chunks/build/{_id_-CFVnSs8B.mjs → _id_-B4V5fop6.mjs} +21 -19
  174. package/.output/server/chunks/build/{_id_-CFVnSs8B.mjs.map → _id_-B4V5fop6.mjs.map} +1 -1
  175. package/.output/server/chunks/build/{_id_-pkxJKe17.mjs → _id_-CE0Gso6i.mjs} +11 -11
  176. package/.output/server/chunks/build/_id_-CE0Gso6i.mjs.map +1 -0
  177. package/.output/server/chunks/build/{_id_-DXJQABO8.mjs → _id_-bWcP2xFl.mjs} +27 -26
  178. package/.output/server/chunks/build/{_id_-DXJQABO8.mjs.map → _id_-bWcP2xFl.mjs.map} +1 -1
  179. package/.output/server/chunks/build/about-TuEZ9n1Q.mjs +625 -0
  180. package/.output/server/chunks/build/about-TuEZ9n1Q.mjs.map +1 -0
  181. package/.output/server/chunks/build/{account-AbLuwiZP.mjs → account-Cn-eZqXM.mjs} +4 -4
  182. package/.output/server/chunks/build/account-Cn-eZqXM.mjs.map +1 -0
  183. package/.output/server/chunks/build/{ai-DR_slopS.mjs → ai-7jdaPOmj.mjs} +19 -18
  184. package/.output/server/chunks/build/ai-7jdaPOmj.mjs.map +1 -0
  185. package/.output/server/chunks/build/{analytics-BbT2-Tr-.mjs → analytics-B276WPeU.mjs} +237 -65
  186. package/.output/server/chunks/build/analytics-B276WPeU.mjs.map +1 -0
  187. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  188. package/.output/server/chunks/build/{db.client-DlA_u5y9.mjs → db.client-aHcD0wyX.mjs} +47 -22
  189. package/.output/server/chunks/build/db.client-aHcD0wyX.mjs.map +1 -0
  190. package/.output/server/chunks/build/{default-D6diRCW0.mjs → default-BSzdkM_L.mjs} +20 -17
  191. package/.output/server/chunks/build/default-BSzdkM_L.mjs.map +1 -0
  192. package/.output/server/chunks/build/{docs-DbYoZafk.mjs → docs-EXhN3sqC.mjs} +7 -6
  193. package/.output/server/chunks/build/{docs-DbYoZafk.mjs.map → docs-EXhN3sqC.mjs.map} +1 -1
  194. package/.output/server/chunks/build/{edit-CNV4xdYj.mjs → edit-C9Z7oZeu.mjs} +10 -9
  195. package/.output/server/chunks/build/edit-C9Z7oZeu.mjs.map +1 -0
  196. package/.output/server/chunks/build/fetch-8kznMtBM.mjs +1 -1
  197. package/.output/server/chunks/build/handleAndDispatchCustomEvent-Bk_AVSSo.mjs +13 -0
  198. package/.output/server/chunks/build/handleAndDispatchCustomEvent-Bk_AVSSo.mjs.map +1 -0
  199. package/.output/server/chunks/build/{help-content-BMumoQQF.mjs → help-content-DmFnuhNu.mjs} +6 -1
  200. package/.output/server/chunks/build/help-content-DmFnuhNu.mjs.map +1 -0
  201. package/.output/server/chunks/build/{index-C3Ou18qD.mjs → index-BK9PTRpd.mjs} +34 -18
  202. package/.output/server/chunks/build/{index-C3Ou18qD.mjs.map → index-BK9PTRpd.mjs.map} +1 -1
  203. package/.output/server/chunks/build/{index-Dw526KXV.mjs → index-BR9hw6qk.mjs} +10 -10
  204. package/.output/server/chunks/build/index-BR9hw6qk.mjs.map +1 -0
  205. package/.output/server/chunks/build/{index-dwYB76GO.mjs → index-Ba-Fifra.mjs} +4 -4
  206. package/.output/server/chunks/build/index-Ba-Fifra.mjs.map +1 -0
  207. package/.output/server/chunks/build/{index-DmHBPf7T.mjs → index-CULN3-en.mjs} +11 -2
  208. package/.output/server/chunks/build/index-CULN3-en.mjs.map +1 -0
  209. package/.output/server/chunks/build/{index-rSHkKNna.mjs → index-DVUtBexc.mjs} +507 -85
  210. package/.output/server/chunks/build/index-DVUtBexc.mjs.map +1 -0
  211. package/.output/server/chunks/build/{isValueEqualOrExist-DTJ5ejZs.mjs → isValueEqualOrExist-DBZjbD_3.mjs} +3 -3
  212. package/.output/server/chunks/build/isValueEqualOrExist-DBZjbD_3.mjs.map +1 -0
  213. package/.output/server/chunks/build/{login-Da5C8jP2.mjs → login-D2XZDuek.mjs} +3 -3
  214. package/.output/server/chunks/build/login-D2XZDuek.mjs.map +1 -0
  215. package/.output/server/chunks/build/{mcp-DM1t-9L_.mjs → mcp-CQ-21rwc.mjs} +138 -31
  216. package/.output/server/chunks/build/mcp-CQ-21rwc.mjs.map +1 -0
  217. package/.output/server/chunks/build/{notifications-BTPF0xA7.mjs → notifications-Dzm9c0u_.mjs} +13 -12
  218. package/.output/server/chunks/build/notifications-Dzm9c0u_.mjs.map +1 -0
  219. package/.output/server/chunks/build/server.mjs +37 -28
  220. package/.output/server/chunks/build/{settings-metadata-CksLgMun.mjs → settings-metadata-B0wo5R-W.mjs} +14 -3
  221. package/.output/server/chunks/build/settings-metadata-B0wo5R-W.mjs.map +1 -0
  222. package/.output/server/chunks/build/{settings-Bmw_JdBS.mjs → settings-pNyPBXVa.mjs} +9 -7
  223. package/.output/server/chunks/build/settings-pNyPBXVa.mjs.map +1 -0
  224. package/.output/server/chunks/build/{storage-BqR4acgi.mjs → storage-XelzuyPy.mjs} +23 -12
  225. package/.output/server/chunks/build/storage-XelzuyPy.mjs.map +1 -0
  226. package/.output/server/chunks/build/{tags-miPAzIr3.mjs → tags-DrCQ7QSw.mjs} +6 -6
  227. package/.output/server/chunks/build/tags-DrCQ7QSw.mjs.map +1 -0
  228. package/.output/server/chunks/build/{test-cases-D-LqhLpk.mjs → test-cases-pmOxi-AN.mjs} +16 -15
  229. package/.output/server/chunks/build/test-cases-pmOxi-AN.mjs.map +1 -0
  230. package/.output/server/chunks/build/timeout-hygiene-CNs71Iah.mjs +318 -0
  231. package/.output/server/chunks/build/timeout-hygiene-CNs71Iah.mjs.map +1 -0
  232. package/.output/server/chunks/build/{useAiStatus-FwqbA4gz.mjs → useAiStatus-ZO987RY7.mjs} +8 -7
  233. package/.output/server/chunks/build/useAiStatus-ZO987RY7.mjs.map +1 -0
  234. package/.output/server/chunks/build/useFormControl-BLpq1s4O.mjs +9 -0
  235. package/.output/server/chunks/build/useFormControl-BLpq1s4O.mjs.map +1 -0
  236. package/.output/server/chunks/build/useIsDesktop-BS13spVj.mjs +9 -0
  237. package/.output/server/chunks/build/useIsDesktop-BS13spVj.mjs.map +1 -0
  238. package/.output/server/chunks/build/{useSettingsNav-v_dFuTw9.mjs → useSettingsNav-NjI2seBy.mjs} +9 -7
  239. package/.output/server/chunks/build/useSettingsNav-NjI2seBy.mjs.map +1 -0
  240. package/.output/server/chunks/build/{users-D-GDKZmZ.mjs → users-NmAUZs3i.mjs} +6 -6
  241. package/.output/server/chunks/build/users-NmAUZs3i.mjs.map +1 -0
  242. package/.output/server/chunks/build/{virtualizer-BcC1XuFf.mjs → virtualizer-ZaqK4guJ.mjs} +6 -5
  243. package/.output/server/chunks/build/virtualizer-ZaqK4guJ.mjs.map +1 -0
  244. package/.output/server/chunks/build/{wasted-time-CFmeT_e2.mjs → wasted-time-CguAF9zc.mjs} +8 -8
  245. package/.output/server/chunks/build/wasted-time-CguAF9zc.mjs.map +1 -0
  246. package/.output/server/chunks/nitro/nitro.mjs +1009 -722
  247. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  248. package/.output/server/chunks/routes/__piwi/session.get.mjs +51 -0
  249. package/.output/server/chunks/routes/__piwi/session.get.mjs.map +1 -0
  250. package/.output/server/chunks/routes/api/admin/stats.get.mjs +5 -1
  251. package/.output/server/chunks/routes/api/admin/stats.get.mjs.map +1 -1
  252. package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs +75 -6
  253. package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs.map +1 -1
  254. package/.output/server/chunks/routes/api/auth/change-password.post.mjs +1 -1
  255. package/.output/server/chunks/routes/api/auth/forgot-password.post.mjs +1 -1
  256. package/.output/server/chunks/routes/api/auth/login.post.mjs +1 -1
  257. package/.output/server/chunks/routes/api/auth/logout.post.mjs +1 -1
  258. package/.output/server/chunks/routes/api/auth/me.get.mjs +1 -1
  259. package/.output/server/chunks/routes/api/auth/oauth/_provider/callback.get.mjs +1 -1
  260. package/.output/server/chunks/routes/api/auth/oauth/_provider/login.get.mjs +1 -1
  261. package/.output/server/chunks/routes/api/auth/oauth/_provider/unlink.post.mjs +1 -1
  262. package/.output/server/chunks/routes/api/auth/reset-password.post.mjs +1 -1
  263. package/.output/server/chunks/routes/api/auth/send-verify-email.post.mjs +1 -1
  264. package/.output/server/chunks/routes/api/auth/setup.get.mjs +1 -1
  265. package/.output/server/chunks/routes/api/auth/setup.post.mjs +1 -1
  266. package/.output/server/chunks/routes/api/auth/verify-email.get.mjs +1 -1
  267. package/.output/server/chunks/routes/api/channels/_id/test.post.mjs +1 -1
  268. package/.output/server/chunks/routes/api/channels/_id_.delete.mjs +1 -1
  269. package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/approve.post.mjs +1 -1
  270. package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/reject.post.mjs +1 -1
  271. package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs +45 -0
  272. package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs.map +1 -0
  273. package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +1 -1
  274. package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +1 -1
  275. package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +1 -1
  276. package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +1 -1
  277. package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +1 -1
  278. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +1 -1
  279. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +1 -1
  280. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +1 -1
  281. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +1 -1
  282. package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +1 -1
  283. package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +1 -1
  284. package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +1 -1
  285. package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +1 -1
  286. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -1
  287. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  288. package/.output/server/chunks/routes/api/index.get.mjs +1 -1
  289. package/.output/server/chunks/routes/api/index.get2.mjs +1 -1
  290. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  291. package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
  292. package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
  293. package/.output/server/chunks/routes/api/index.post.mjs +1 -1
  294. package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
  295. package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
  296. package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
  297. package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
  298. package/.output/server/chunks/routes/api/index.post6.mjs +1 -1
  299. package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +1 -1
  300. package/.output/server/chunks/routes/api/links/_id_.delete.mjs +1 -1
  301. package/.output/server/chunks/routes/api/links/_id_.patch.mjs +1 -1
  302. package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +1 -1
  303. package/.output/server/chunks/routes/api/markers/_id_.put.mjs +1 -1
  304. package/.output/server/chunks/routes/api/notifications/stream.get.mjs +1 -1
  305. package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +1 -1
  306. package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +1 -1
  307. package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +1 -1
  308. package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +1 -1
  309. package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +1 -1
  310. package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +1 -1
  311. package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +1 -1
  312. package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +1 -1
  313. package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +1 -1
  314. package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +1 -1
  315. package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +1 -1
  316. package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +1 -1
  317. package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +1 -1
  318. package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +50 -0
  319. package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs.map +1 -0
  320. package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +1 -1
  321. package/.output/server/chunks/routes/api/projects/_id_.get.mjs +1 -1
  322. package/.output/server/chunks/routes/api/projects/_id_.put.mjs +1 -1
  323. package/.output/server/chunks/routes/api/projects/menu.get.mjs +1 -1
  324. package/.output/server/chunks/routes/api/projects/overview.get.mjs +1 -1
  325. package/.output/server/chunks/routes/api/projects.get.mjs +1 -1
  326. package/.output/server/chunks/routes/api/search.get.mjs +1 -1
  327. package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +1 -1
  328. package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +1 -1
  329. package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +1 -1
  330. package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +1 -1
  331. package/.output/server/chunks/routes/api/settings/ai.get.mjs +1 -1
  332. package/.output/server/chunks/routes/api/settings/ai.put.mjs +1 -1
  333. package/.output/server/chunks/routes/api/settings/smtp/test.post.mjs +1 -1
  334. package/.output/server/chunks/routes/api/settings/smtp.get.mjs +1 -1
  335. package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +40 -0
  336. package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs.map +1 -0
  337. package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +46 -0
  338. package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs.map +1 -0
  339. package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +1 -1
  340. package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +1 -1
  341. package/.output/server/chunks/routes/api/stream.get.mjs +1 -1
  342. package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +1 -1
  343. package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +1 -1
  344. package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +1 -1
  345. package/.output/server/chunks/routes/api/tags/_id_.put.mjs +1 -1
  346. package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +1 -1
  347. package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +1 -1
  348. package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +1 -1
  349. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +1 -1
  350. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +1 -1
  351. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +1 -1
  352. package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +1 -1
  353. package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +1 -1
  354. package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +1 -1
  355. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +1 -1
  356. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +1 -1
  357. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +1 -1
  358. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +1 -1
  359. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +1 -1
  360. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +1 -1
  361. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +1 -1
  362. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +1 -1
  363. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +1 -1
  364. package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
  365. package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
  366. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +1 -1
  367. package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
  368. package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
  369. package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
  370. package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
  371. package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +1 -1
  372. package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
  373. package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +1 -1
  374. package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +1 -1
  375. package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +1 -1
  376. package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
  377. package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +1 -1
  378. package/.output/server/chunks/routes/api/test-runs/start.post.mjs +1 -1
  379. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +3 -1
  380. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs.map +1 -1
  381. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +2 -1
  382. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs.map +1 -1
  383. package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
  384. package/.output/server/chunks/routes/api/users/_id/api-keys/_keyId_.delete.mjs +1 -1
  385. package/.output/server/chunks/routes/api/users/_id/index.get.mjs +1 -1
  386. package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
  387. package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
  388. package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
  389. package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
  390. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
  391. package/.output/server/chunks/routes/api/users/_id_.patch.mjs +1 -1
  392. package/.output/server/chunks/routes/api/version.get.mjs +1 -1
  393. package/.output/server/chunks/routes/mcp.post.mjs +1 -1
  394. package/.output/server/chunks/routes/renderer.mjs +1 -1
  395. package/.output/server/database/migrations/0037_tired_hellion.sql +1 -0
  396. package/.output/server/database/migrations/0038_glamorous_ulik.sql +1 -0
  397. package/.output/server/database/migrations/meta/0037_snapshot.json +3384 -0
  398. package/.output/server/database/migrations/meta/0038_snapshot.json +3391 -0
  399. package/.output/server/database/migrations/meta/_journal.json +14 -0
  400. package/.output/server/database/migrations-pg/0038_tranquil_moira_mactaggert.sql +1 -0
  401. package/.output/server/database/migrations-pg/0039_fat_starjammers.sql +1 -0
  402. package/.output/server/database/migrations-pg/meta/0038_snapshot.json +4027 -0
  403. package/.output/server/database/migrations-pg/meta/0039_snapshot.json +4033 -0
  404. package/.output/server/database/migrations-pg/meta/_journal.json +14 -0
  405. package/.output/server/index.mjs +1 -1
  406. package/.output/server/package.json +1 -1
  407. package/package.json +1 -1
  408. package/.output/public/_nuxt/2kfkdDTz.js +0 -1
  409. package/.output/public/_nuxt/BXEDsEwG.js +0 -1
  410. package/.output/public/_nuxt/BbgBGuMG.js +0 -1
  411. package/.output/public/_nuxt/CBrCcDzR.js +0 -1
  412. package/.output/public/_nuxt/CFXonrwQ.js +0 -3
  413. package/.output/public/_nuxt/CJGJI2Of.js +0 -34
  414. package/.output/public/_nuxt/Ce4EdfL_.js +0 -4
  415. package/.output/public/_nuxt/Cf3RuiXF.js +0 -46
  416. package/.output/public/_nuxt/CkpB9oBr.js +0 -1
  417. package/.output/public/_nuxt/D1tZEdSi.js +0 -1
  418. package/.output/public/_nuxt/DK9uMTYX.js +0 -1
  419. package/.output/public/_nuxt/DgZlpN9l.js +0 -1
  420. package/.output/public/_nuxt/DjCfCT_5.js +0 -1
  421. package/.output/public/_nuxt/YDWXnWou.js +0 -1
  422. package/.output/public/_nuxt/builds/meta/f549de31-8db6-4504-b526-482778a55eba.json +0 -1
  423. package/.output/public/_nuxt/entry.BxXHl1Vy.css +0 -1
  424. package/.output/public/_nuxt/evCxpgbd.js +0 -2
  425. package/.output/public/_nuxt/wCQds5_f.js +0 -1
  426. package/.output/server/chunks/build/BrowserBadge-BTA4QU_J.mjs.map +0 -1
  427. package/.output/server/chunks/build/ChartCard-BqAhMip2.mjs.map +0 -1
  428. package/.output/server/chunks/build/Checkbox-_1nGm_DR.mjs.map +0 -1
  429. package/.output/server/chunks/build/CiEnvCard-DAufYuJw.mjs.map +0 -1
  430. package/.output/server/chunks/build/CodeBlock-BVKHuYjU.mjs.map +0 -1
  431. package/.output/server/chunks/build/DashboardNavbar-BR6j4VLd.mjs.map +0 -1
  432. package/.output/server/chunks/build/DiagnosisPanel-BnrdXDvd.mjs.map +0 -1
  433. package/.output/server/chunks/build/EnvManagedBadge-DdnEtjIl.mjs.map +0 -1
  434. package/.output/server/chunks/build/HelpHint-D_GJzMpW.mjs.map +0 -1
  435. package/.output/server/chunks/build/Modal-COIjm3js.mjs.map +0 -1
  436. package/.output/server/chunks/build/ProjectTestCasesTable-XFBPQGIX.mjs.map +0 -1
  437. package/.output/server/chunks/build/RunReports-ChNkmuWa.mjs.map +0 -1
  438. package/.output/server/chunks/build/RunStatusBadge-CXpuCUGQ.mjs.map +0 -1
  439. package/.output/server/chunks/build/SectionCard-zs9FDzps.mjs.map +0 -1
  440. package/.output/server/chunks/build/Select-r3S5nkSY.mjs.map +0 -1
  441. package/.output/server/chunks/build/Separator-pqpPG0up.mjs.map +0 -1
  442. package/.output/server/chunks/build/SettingsField-Wdpzlt13.mjs.map +0 -1
  443. package/.output/server/chunks/build/Slideover-02XjJjn0.mjs.map +0 -1
  444. package/.output/server/chunks/build/Switch-gx_JXgCo.mjs.map +0 -1
  445. package/.output/server/chunks/build/Table-C64RrBp3.mjs.map +0 -1
  446. package/.output/server/chunks/build/TestStatusBar--u4VX_Xf.mjs.map +0 -1
  447. package/.output/server/chunks/build/Tooltip-ui_BVvqr.mjs.map +0 -1
  448. package/.output/server/chunks/build/VisuallyHiddenInput-mMsqmkjz.mjs.map +0 -1
  449. package/.output/server/chunks/build/_id_-R6KGfZOC.mjs.map +0 -1
  450. package/.output/server/chunks/build/_id_-pkxJKe17.mjs.map +0 -1
  451. package/.output/server/chunks/build/about-CmtGYbC6.mjs +0 -313
  452. package/.output/server/chunks/build/about-CmtGYbC6.mjs.map +0 -1
  453. package/.output/server/chunks/build/account-AbLuwiZP.mjs.map +0 -1
  454. package/.output/server/chunks/build/ai-DR_slopS.mjs.map +0 -1
  455. package/.output/server/chunks/build/analytics-BbT2-Tr-.mjs.map +0 -1
  456. package/.output/server/chunks/build/db.client-DlA_u5y9.mjs.map +0 -1
  457. package/.output/server/chunks/build/default-D6diRCW0.mjs.map +0 -1
  458. package/.output/server/chunks/build/edit-CNV4xdYj.mjs.map +0 -1
  459. package/.output/server/chunks/build/help-content-BMumoQQF.mjs.map +0 -1
  460. package/.output/server/chunks/build/index-DmHBPf7T.mjs.map +0 -1
  461. package/.output/server/chunks/build/index-Dw526KXV.mjs.map +0 -1
  462. package/.output/server/chunks/build/index-dwYB76GO.mjs.map +0 -1
  463. package/.output/server/chunks/build/index-rSHkKNna.mjs.map +0 -1
  464. package/.output/server/chunks/build/isValueEqualOrExist-DTJ5ejZs.mjs.map +0 -1
  465. package/.output/server/chunks/build/login-Da5C8jP2.mjs.map +0 -1
  466. package/.output/server/chunks/build/mcp-DM1t-9L_.mjs.map +0 -1
  467. package/.output/server/chunks/build/notifications-BTPF0xA7.mjs.map +0 -1
  468. package/.output/server/chunks/build/settings-Bmw_JdBS.mjs.map +0 -1
  469. package/.output/server/chunks/build/settings-metadata-CksLgMun.mjs.map +0 -1
  470. package/.output/server/chunks/build/storage-BqR4acgi.mjs.map +0 -1
  471. package/.output/server/chunks/build/tags-miPAzIr3.mjs.map +0 -1
  472. package/.output/server/chunks/build/test-cases-D-LqhLpk.mjs.map +0 -1
  473. package/.output/server/chunks/build/useAiStatus-FwqbA4gz.mjs.map +0 -1
  474. package/.output/server/chunks/build/useFormControl-DFTjniPG.mjs +0 -19
  475. package/.output/server/chunks/build/useFormControl-DFTjniPG.mjs.map +0 -1
  476. package/.output/server/chunks/build/useSettingsNav-v_dFuTw9.mjs.map +0 -1
  477. package/.output/server/chunks/build/users-D-GDKZmZ.mjs.map +0 -1
  478. package/.output/server/chunks/build/virtualizer-BcC1XuFf.mjs.map +0 -1
  479. package/.output/server/chunks/build/wasted-time-CFmeT_e2.mjs.map +0 -1
@@ -1,2 +0,0 @@
1
- import{d as ve,o as w,f as L,g as I,T as N,U as J,k as l,V as na,a0 as Le,a1 as Ee,b2 as at,a4 as je,a$ as Ua,a2 as Ke,a3 as $e,c as U,j as M,_ as xe,bB as sa,aa as At,i as Q,p as q,F as he,y as _e,bC as ia,q as z,Z as Te,$ as Ie,h as R,bD as nt,b3 as De,bw as Be,a6 as Me,bE as la,L as Va,ao as oa,O as ra,K as Ne,at as Tt,H as Wa,r as H,bn as Ga,W as Ja,Y as Ya,B as re,G as It,as as Qa,C as Dt,ad as Xa,ab as Za,a5 as st,br as en,bu as tn,bF as an,bG as nn,m as me,t as ce,ae as sn,bH as ln,bI as ua,al as ca,z as ze,u as Bt,aN as on,A as it,az as rn,a9 as ge,bJ as un,bK as cn,aO as da,aI as fa,b0 as dn,aF as pe,b1 as fn,v as Ae,aG as pn,bt as hn,D as pa,Q as mn,bL as vn,bM as gn,aK as yn,a7 as ha,bN as bn,l as Pe,a as ma,w as va,bO as wn,b as kn,bP as Sn,bQ as _n}from"./B8fs6GU9.js";import{a as ga,b as xn,_ as $n,c as Cn,p as An}from"./BtJkQ3to.js";import{_ as Tn}from"./DFw8I2FL.js";import{u as In,_ as Dn}from"./DjCfCT_5.js";import{u as ya,I as Ht,V as Ut,J as Bn}from"./lRMjXqiA.js";import{_ as Ln}from"./V1BQiRoh.js";import{D as En,a as Mn,b as On,c as Rn,d as Fn,e as ut,f as ct,g as Pn,_ as Lt}from"./CD-xwM9N.js";import{h as jn,d as zn,e as qn,c as Kn,a as Nn,f as Hn,b as Un,L as Vn,g as Wn}from"./BGsuOpiq.js";import{a as Gn,_ as Jn}from"./wCQds5_f.js";import{_ as Yn}from"./IdQR_Djw.js";import{_ as Qn}from"./PPFO8UVt.js";import{_ as Xn}from"./C7RarFGi.js";import{_ as Zn}from"./OG2n3p77.js";import{_ as es}from"./n7Htv9PJ.js";import{u as ba}from"./DAeYEeCC.js";import{u as wa,s as ts}from"./O1A-LRgV.js";import{u as as}from"./too3WhRB.js";import{u as ns}from"./Bq2ZPvIH.js";import"./CKZn0TUX.js";import"./CBrCcDzR.js";import"./3SnTawZW.js";import"./D1tZEdSi.js";import"./DVdOm5Bg.js";import"./4fB15L_7.js";import"./DWzdeQ3Z.js";import"./BC_Wu-fv.js";import"./YDWXnWou.js";var ss=ve({__name:"ListboxGroupLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=jn({id:""});return(s,i)=>(w(),L(l(na),J(t,{id:l(n).id}),{default:I(()=>[N(s.$slots,"default")]),_:3},16,["id"]))}}),is=ss;const ls={slots:{base:"",label:"",trailing:"hidden lg:flex items-center gap-0.5 ms-auto"},variants:{collapsed:{true:{label:"hidden",trailing:"lg:hidden"}}}},os=Object.assign({inheritAttrs:!1},{__name:"UDashboardSearchButton",props:{icon:{type:[String,Boolean],required:!1,skipCheck:!0},label:{type:String,required:!1},color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1},collapsed:{type:Boolean,required:!1,default:!1},tooltip:{type:[Boolean,Object],required:!1,default:!1},kbds:{type:Array,required:!1,default:()=>["meta","k"]},ui:{type:Object,required:!1},class:{type:null,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const t=e,n=Le(),s=Ee("dashboardSearchButton",t),[i,a]=at(),o=()=>nt(n,["trailing"]),u=je(Ua(s,"icon","label","variant","collapsed","tooltip","kbds","class","ui")),r=De(()=>Be(typeof s.tooltip=="boolean"?{}:s.tooltip,{delayDuration:0,content:{side:"right"}})),{t:v}=Ke(),h=$e(),{toggleSearch:m}=ga({toggleSearch:()=>{}}),f=R(()=>Me({extend:ls,...h.ui?.dashboardSearchButton||{}})({collapsed:s.collapsed}));return(c,p)=>(w(),U(he,null,[M(l(i),null,{default:I(()=>[M(xe,J({icon:l(s).icon===!1?void 0:l(s).icon??l(h).ui.icons.search,label:l(s).label||l(v)("dashboardSearchButton.label"),variant:l(s).variant||(l(s).collapsed?"ghost":"outline")},{...l(u),...l(s).collapsed?{square:!0,"aria-label":l(s).label||l(v)("dashboardSearchButton.label")}:{},...c.$attrs},{class:f.value.base({class:[l(s).ui?.base,l(s).class]}),ui:l(sa)(f.value,l(s).ui),onClick:l(m)}),At({trailing:I(({ui:b})=>[Q("span",{"data-slot":"trailing",class:q(f.value.trailing({class:l(s).ui?.trailing}))},[N(c.$slots,"trailing",{ui:b},()=>[l(s).kbds?.length?(w(!0),U(he,{key:0},_e(l(s).kbds,(D,j)=>(w(),L(ia,J({key:j,variant:"subtle"},{ref_for:!0},typeof D=="string"?{value:D}:D),null,16))),128)):z("",!0)])],2)]),_:2},[_e(o(),(b,D)=>({name:D,fn:I(j=>[N(c.$slots,D,Te(Ie(j)))])}))]),1040,["icon","label","variant","class","ui","onClick"])]),_:3}),l(s).collapsed&&l(s).tooltip?(w(),L(Tn,J({key:0,text:l(s).label||l(v)("dashboardSearchButton.label")},r.value),{default:I(()=>[M(l(a))]),_:1},16,["text"])):(w(),L(l(a),{key:1}))],64))}}),rs={class:"inline-flex items-center justify-center shrink-0 size-5"},us=ve({__name:"UserMenu",props:{collapsed:{type:Boolean}},setup(e){const t=la(),n=$e(),s=Ne(),{authState:i,logout:a}=Va(),o=In(),{openSettings:u}=ya(),r=["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"],v=["slate","gray","zinc","neutral","stone"],h=R(()=>{if(s.public.authEnabled&&i.value.authenticated&&i.value.user){const f=i.value.user.avatarUrl;return{name:i.value.user.name||i.value.user.username,icon:f?void 0:"i-lucide-user",avatar:f?{src:f}:void 0,role:i.value.user.role}}return{name:"Configuration",icon:"i-lucide-cog"}}),m=R(()=>{const f=[];(!s.public.authEnabled||i.value.authenticated&&i.value.user?.role==="administrator")&&f.push(...o.value);const c=[f,[{label:"Theme",icon:"i-lucide-palette",children:[{label:"Primary",slot:"chip",chip:n.ui.colors.primary,content:{align:"center",collisionPadding:16},children:r.map(p=>({label:p,chip:p,slot:"chip",checked:n.ui.colors.primary===p,type:"checkbox",onSelect:b=>{b.preventDefault(),n.ui.colors.primary=p}}))},{label:"Neutral",slot:"chip",chip:n.ui.colors.neutral==="neutral"?"old-neutral":n.ui.colors.neutral,content:{align:"end",collisionPadding:16},children:v.map(p=>({label:p,chip:p==="neutral"?"old-neutral":p,slot:"chip",type:"checkbox",checked:n.ui.colors.neutral===p,onSelect:b=>{b.preventDefault(),n.ui.colors.neutral=p}}))}]},{label:"Appearance",icon:"i-lucide-sun-moon",children:[{label:"Light",icon:"i-lucide-sun",type:"checkbox",checked:t.value==="light",onSelect(p){p.preventDefault(),t.preference="light"}},{label:"Dark",icon:"i-lucide-moon",type:"checkbox",checked:t.value==="dark",onUpdateChecked(p){p&&(t.preference="dark")},onSelect(p){p.preventDefault()}}]},{label:"Open in IDE…",icon:"i-lucide-external-link",onSelect:p=>{p.preventDefault(),u()}}],[{label:"GitHub repository",icon:"i-lucide-github",to:"https://github.com/piwitests/platform",target:"_blank"}]];return s.public.authEnabled&&i.value.authenticated&&!s.public.demoMode&&c.push([{label:"Logout",icon:"i-lucide-log-out",onSelect:async p=>{p.preventDefault(),await a()}}]),c});return(f,c)=>{const p=xe,b=oa;return w(),L(b,{items:l(m),content:{align:"center",collisionPadding:12},ui:{content:e.collapsed?"w-48":"w-(--reka-dropdown-menu-trigger-width)"}},{"chip-leading":I(({item:D})=>[Q("div",rs,[Q("span",{class:"rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2",style:ra({"--chip-light":`var(--color-${D.chip}-500)`,"--chip-dark":`var(--color-${D.chip}-400)`})},null,4)])]),default:I(()=>[M(p,J({...l(h),label:e.collapsed?void 0:l(h)?.name,trailingIcon:e.collapsed?void 0:"i-lucide-chevrons-up-down"},{color:"neutral",variant:"ghost",block:"",square:e.collapsed,class:"data-[state=open]:bg-elevated",ui:{trailingIcon:"text-dimmed"}}),null,16,["square"])]),_:1},8,["items","ui"])}}}),cs=Object.assign(us,{__name:"UserMenu"});(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode('[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}')),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const ds=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fs=e=>typeof e<"u";function ps(e){return JSON.parse(JSON.stringify(e))}function Vt(e,t,n,s={}){var i,a,o;const{clone:u=!1,passive:r=!1,eventName:v,deep:h=!1,defaultValue:m,shouldEmit:f}=s,c=Qa(),p=n||c?.emit||((i=c?.$emit)==null?void 0:i.bind(c))||((o=(a=c?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(c?.proxy));let b=v;t||(t="modelValue"),b=b||`update:${t.toString()}`;const D=k=>u?typeof u=="function"?u(k):ps(k):k,j=()=>fs(e[t])?D(e[t]):m,A=k=>{f?f(k)&&p(b,k):p(b,k)};if(r){const k=j(),g=H(k);let $=!1;return re(()=>e[t],y=>{$||($=!0,g.value=D(y),It(()=>$=!1))}),re(g,y=>{!$&&(y!==e[t]||h)&&A(y)},{deep:h}),g}else return R({get(){return j()},set(k){A(k)}})}const[He,hs]=Ya("DrawerRoot"),ka=new WeakMap;function ne(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const s={};Object.entries(t).forEach(([i,a])=>{if(i.startsWith("--")){e.style.setProperty(i,a);return}s[i]=e.style[i],e.style[i]=a}),!n&&ka.set(e,s)}function ms(e,t){if(!e||!(e instanceof HTMLElement))return;const n=ka.get(e);n&&Object.entries(n).forEach(([s,i])=>{e.style[s]=i})}function Je(e,t){const n=window.getComputedStyle(e),s=n.transform||n.webkitTransform||n.mozTransform;let i=s.match(/^matrix3d\((.+)\)$/);return i?Number.parseFloat(i[1].split(", ")[ee(t)?13:12]):(i=s.match(/^matrix\((.+)\)$/),i?Number.parseFloat(i[1].split(", ")[ee(t)?5:4]):null)}function vs(e){return 8*(Math.log(e+1)-2)}function ee(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}function dt(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function gs(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Y={DURATION:.5,EASE:[.32,.72,0,1]},Sa=.4,ys=.25,bs=100,_a=8,Ye=16,xa=26,Wt="vaul-dragging";function ws({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:s,fadeFromIndex:i,onSnapPointChange:a,direction:o}){const u=H(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function r(){u.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Dt(()=>{typeof window<"u"&&window.addEventListener("resize",r)}),Xa(()=>{typeof window<"u"&&window.removeEventListener("resize",r)});const v=R(()=>(t.value&&e.value===t.value[t.value.length-1])??null),h=R(()=>t.value&&t.value.length>0&&(i?.value||i?.value===0)&&!Number.isNaN(i?.value)&&t.value[i?.value??-1]===e.value||!t.value),m=R(()=>{var A;return((A=t.value)==null?void 0:A.findIndex(k=>k===e.value))??null}),f=R(()=>{var A;return((A=t.value)==null?void 0:A.map(k=>{const g=typeof k=="string";let $=0;if(g&&($=Number.parseInt(k,10)),ee(o.value)){const S=g?$:u.value?k*u.value.innerHeight:0;return u.value?o.value==="bottom"?u.value.innerHeight-S:-u.value.innerHeight+S:S}const y=g?$:u.value?k*u.value.innerWidth:0;return u.value?o.value==="right"?u.value.innerWidth-y:-u.value.innerWidth+y:y}))??[]}),c=R(()=>{var A;return m.value!==null?(A=f.value)==null?void 0:A[m.value]:null}),p=A=>{var k,g,$,y;const S=((k=f.value)==null?void 0:k.findIndex(x=>x===A))??null;It(()=>{var x;a(S,f.value),ne((x=n.value)==null?void 0:x.$el,{transition:`transform ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,transform:ee(o.value)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}),f.value&&S!==f.value.length-1&&S!==i?.value?ne((g=s.value)==null?void 0:g.$el,{transition:`opacity ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,opacity:"0"}):ne(($=s.value)==null?void 0:$.$el,{transition:`opacity ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,opacity:"1"}),e.value=S!==null?((y=t.value)==null?void 0:y[S])??null:null};re([e,f,t],()=>{var A;if(e.value){const k=((A=t.value)==null?void 0:A.findIndex(g=>g===e.value))??-1;f.value&&k!==-1&&typeof f.value[k]=="number"&&p(f.value[k])}},{immediate:!0});function b({draggedDistance:A,closeDrawer:k,velocity:g,dismissible:$}){var y,S,x;if(i.value===void 0)return;const _=o.value==="bottom"||o.value==="right"?(c.value??0)-A:(c.value??0)+A,T=m.value===i.value-1,E=m.value===0,K=A>0;if(T&&ne((y=s.value)==null?void 0:y.$el,{transition:`opacity ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`}),g>2&&!K){$?k():p(f.value[0]);return}if(g>2&&K&&f&&t.value){p(f.value[t.value.length-1]);return}const X=(S=f.value)==null?void 0:S.reduce((F,d)=>typeof F!="number"||typeof d!="number"?F:Math.abs(d-_)<Math.abs(F-_)?d:F),C=ee(o.value)?window.innerHeight:window.innerWidth;if(g>Sa&&Math.abs(A)<C*.4){const F=K?1:-1;if(F>0&&v){p(f.value[(((x=t.value)==null?void 0:x.length)??0)-1]);return}if(E&&F<0&&$&&k(),m.value===null)return;p(f.value[m.value+F]);return}p(X)}function D({draggedDistance:A}){var k;if(c.value===null)return;const g=o.value==="bottom"||o.value==="right"?c.value-A:c.value+A;(o.value==="bottom"||o.value==="right")&&g<f.value[f.value.length-1]||(o.value==="top"||o.value==="left")&&g>f.value[f.value.length-1]||ne((k=n.value)==null?void 0:k.$el,{transform:ee(o.value)?`translate3d(0, ${g}px, 0)`:`translate3d(${g}px, 0, 0)`})}function j(A,k){if(!t.value||typeof m.value!="number"||!f.value||i.value===void 0)return null;const g=m.value===i.value-1;if(m.value>=i.value&&k)return 0;if(g&&!k)return 1;if(!h.value&&!g)return null;const $=g?m.value+1:m.value-1,y=g?f.value[$]-f.value[$-1]:f.value[$+1]-f.value[$],S=A/Math.abs(y);return g?1-S:S}return{isLastSnapPoint:v,shouldFade:h,getPercentageDragged:j,activeSnapPointIndex:m,onRelease:b,onDrag:D,snapPointsOffset:f}}function Gt(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let Re=null;function ks(e){const{isOpen:t,modal:n,nested:s,hasBeenOpened:i,preventScrollRestoration:a,noBodyStyles:o}=e,u=H(typeof window<"u"?window.location.href:""),r=H(0);function v(){if(Gt()&&Re===null&&t.value&&!o.value){Re={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:m,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-r.value}px`,left:`${-m}px`,right:"0px",height:"auto"}),setTimeout(()=>{requestAnimationFrame(()=>{const c=f-window.innerHeight;c&&r.value>=f&&(document.body.style.top=`-${r.value+c}px`)})},300)}}function h(){if(Gt()&&Re!==null&&!o.value){const m=-Number.parseInt(document.body.style.top,10),f=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,Re),window.requestAnimationFrame(()=>{if(a.value&&u.value!==window.location.href){u.value=window.location.href;return}window.scrollTo(f,m)}),Re=null}}return Dt(()=>{function m(){r.value=window.scrollY}m(),window.addEventListener("scroll",m),Za(()=>{window.removeEventListener("scroll",m)})}),re([t,i,u],()=>{s.value||!i.value||(t.value?(window.matchMedia("(display-mode: standalone)").matches||v(),n.value||setTimeout(()=>{h()},500)):h())}),{restorePositionSetting:h}}function Ss(e,t){return e&&e.value?e:t}function _s(e){const{emitDrag:t,emitRelease:n,emitClose:s,emitOpenChange:i,open:a,dismissible:o,nested:u,modal:r,shouldScaleBackground:v,setBackgroundColorOnScale:h,scrollLockTimeout:m,closeThreshold:f,activeSnapPoint:c,fadeFromIndex:p,direction:b,noBodyStyles:D,handleOnly:j,preventScrollRestoration:A}=e,k=H(a.value??!1),g=H(!1),$=H(!1),y=H(!1),S=H(null),x=H(null),_=H(null),T=H(null),E=H(null),K=H(!1),X=H(null),C=H(0),F=H(!1),d=H(null),V=R(()=>{var P;return((P=d.value)==null?void 0:P.$el.getBoundingClientRect().height)||0}),B=Ss(e.snapPoints,H(void 0)),G=R(()=>{var P;return B&&(((P=B.value)==null?void 0:P.length)??0)>0}),ie=H(null),{activeSnapPointIndex:te,onRelease:ye,snapPointsOffset:fe,onDrag:Oa,shouldFade:Ft,getPercentageDragged:Ra}=ws({snapPoints:B,activeSnapPoint:c,drawerRef:d,fadeFromIndex:p,overlayRef:S,onSnapPointChange:Fa,direction:b});function Fa(P,Z){B.value&&P===Z.length-1&&(x.value=new Date)}ks({isOpen:k,modal:r,nested:u,hasBeenOpened:g,noBodyStyles:D,preventScrollRestoration:A});function Ue(){return(window.innerWidth-xa)/window.innerWidth}function Pt(P,Z){var ae;if(!P)return!1;let W=P;const se=(ae=window.getSelection())==null?void 0:ae.toString(),oe=d.value?Je(d.value.$el,b.value):null,de=new Date;if(W.hasAttribute("data-vaul-no-drag")||W.closest("[data-vaul-no-drag]"))return!1;if(b.value==="right"||b.value==="left")return!0;if(x.value&&de.getTime()-x.value.getTime()<500)return!1;if(oe!==null&&(b.value==="bottom"?oe>0:oe<0))return!0;if(se&&se.length>0)return!1;if(E.value&&de.getTime()-E.value.getTime()<m.value&&oe===0||Z)return E.value=de,!1;for(;W;){if(W.scrollHeight>W.clientHeight){if(W.scrollTop!==0)return E.value=new Date,!1;if(W.getAttribute("role")==="dialog")return!0}W=W.parentNode}return!0}function Pa(P){!o.value&&!B.value||d.value&&!d.value.$el.contains(P.target)||($.value=!0,_.value=new Date,P.target.setPointerCapture(P.pointerId),C.value=ee(b.value)?P.clientY:P.clientX)}function ja(P){var Z,ae,W,se,oe,de;if(d.value&&$.value){const Ce=b.value==="bottom"||b.value==="right"?1:-1,Ve=(C.value-(ee(b.value)?P.clientY:P.clientX))*Ce,We=Ve>0,zt=B.value&&!o.value&&!We;if(zt&&te.value===0)return;const rt=Math.abs(Ve),qt=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");let ke=rt/V.value;const Kt=Ra(rt,We);if(Kt!==null&&(ke=Kt),zt&&ke>=1||!K.value&&!Pt(P.target,We))return;if((Z=d?.value)==null||Z.$el.classList.add(Wt),K.value=!0,ne((ae=d.value)==null?void 0:ae.$el,{transition:"none"}),ne((W=S.value)==null?void 0:W.$el,{transition:"none"}),B.value&&Oa({draggedDistance:Ve}),We&&!B.value){const Se=vs(Ve),Ge=Math.min(Se*-1,0)*Ce;ne((se=d.value)==null?void 0:se.$el,{transform:ee(b.value)?`translate3d(0, ${Ge}px, 0)`:`translate3d(${Ge}px, 0, 0)`});return}const Ha=1-ke;if((Ft.value||p.value&&te.value===p.value-1)&&(t(ke),ne((oe=S.value)==null?void 0:oe.$el,{opacity:`${Ha}`,transition:"none"},!0)),qt&&S.value&&v.value){const Se=Math.min(Ue()+ke*(1-Ue()),1),Ge=8-ke*8,Nt=Math.max(0,14-ke*14);ne(qt,{borderRadius:`${Ge}px`,transform:ee(b.value)?`scale(${Se}) translate3d(0, ${Nt}px, 0)`:`scale(${Se}) translate3d(${Nt}px, 0, 0)`,transition:"none"},!0)}if(!B.value){const Se=rt*Ce;ne((de=d.value)==null?void 0:de.$el,{transform:ee(b.value)?`translate3d(0, ${Se}px, 0)`:`translate3d(${Se}px, 0, 0)`})}}}function jt(){var P;if(!d.value)return;const Z=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]"),ae=Je(d.value.$el,b.value);ne(d.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`}),ne((P=S.value)==null?void 0:P.$el,{transition:`opacity ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,opacity:"1"}),v.value&&ae&&ae>0&&k.value&&ne(Z,{borderRadius:`${_a}px`,overflow:"hidden",...ee(b.value)?{transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ue()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Y.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Y.EASE.join(",")})`},!0)}function Oe(P){d.value&&(s(),P||(k.value=!1),window.setTimeout(()=>{B.value&&(c.value=B.value[0])},Y.DURATION*1e3))}Tt(()=>{if(!k.value&&v.value&&ds){const P=setTimeout(()=>{ms(document.body)},200);return()=>clearTimeout(P)}}),re(a,()=>{k.value=a.value,a.value||Oe()});function za(P){if(!$.value||!d.value)return;d.value.$el.classList.remove(Wt),K.value=!1,$.value=!1,T.value=new Date;const Z=Je(d.value.$el,b.value);if(!Pt(P.target,!1)||!Z||Number.isNaN(Z)||_.value===null)return;const ae=T.value.getTime()-_.value.getTime(),W=C.value-(ee(b.value)?P.clientY:P.clientX),se=Math.abs(W)/ae;if(se>.05&&(y.value=!0,window.setTimeout(()=>{y.value=!1},200)),B.value){const de=b.value==="bottom"||b.value==="right"?1:-1;ye({draggedDistance:W*de,closeDrawer:Oe,velocity:se,dismissible:o.value}),n(!0);return}if(b.value==="bottom"||b.value==="right"?W>0:W<0){jt(),n(!0);return}if(se>Sa){Oe(),n(!1);return}const oe=Math.min(d.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(Z>=oe*f.value){Oe(),n(!1);return}n(!0),jt()}re(k,P=>{P&&(x.value=new Date),i(P)},{immediate:!0});function qa(P){var Z,ae;const W=P?(window.innerWidth-Ye)/window.innerWidth:1,se=P?-16:0;X.value&&window.clearTimeout(X.value),ne((Z=d.value)==null?void 0:Z.$el,{transition:`transform ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,transform:`scale(${W}) translate3d(0, ${se}px, 0)`}),!P&&(ae=d.value)!=null&&ae.$el&&(X.value=window.setTimeout(()=>{var oe,de;const Ce=Je((oe=d.value)==null?void 0:oe.$el,b.value);ne((de=d.value)==null?void 0:de.$el,{transition:"none",transform:ee(b.value)?`translate3d(0, ${Ce}px, 0)`:`translate3d(${Ce}px, 0, 0)`})},500))}function Ka(P){var Z;if(P<0)return;const ae=ee(b.value)?window.innerHeight:window.innerWidth,W=(ae-Ye)/ae,se=W+P*(1-W),oe=-16+P*Ye;ne((Z=d.value)==null?void 0:Z.$el,{transform:ee(b.value)?`scale(${se}) translate3d(0, ${oe}px, 0)`:`scale(${se}) translate3d(${oe}px, 0, 0)`,transition:"none"})}function Na(P){var Z;const ae=ee(b.value)?window.innerHeight:window.innerWidth,W=P?(ae-Ye)/ae:1,se=P?-16:0;P&&ne((Z=d.value)==null?void 0:Z.$el,{transition:`transform ${Y.DURATION}s cubic-bezier(${Y.EASE.join(",")})`,transform:ee(b.value)?`scale(${W}) translate3d(0, ${se}px, 0)`:`scale(${W}) translate3d(${se}px, 0, 0)`})}return{open:a,isOpen:k,modal:r,keyboardIsOpen:F,hasBeenOpened:g,drawerRef:d,drawerHeightRef:V,overlayRef:S,handleRef:ie,isDragging:$,dragStartTime:_,isAllowedToDrag:K,snapPoints:B,activeSnapPoint:c,hasSnapPoints:G,pointerStart:C,dismissible:o,snapPointsOffset:fe,direction:b,shouldFade:Ft,fadeFromIndex:p,shouldScaleBackground:v,setBackgroundColorOnScale:h,onPress:Pa,onDrag:ja,onRelease:za,closeDrawer:Oe,onNestedDrag:Ka,onNestedRelease:Na,onNestedOpenChange:qa,emitClose:s,emitDrag:t,emitRelease:n,emitOpenChange:i,nested:u,handleOnly:j,noBodyStyles:D}}const $a=ve({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:ys},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:bs},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{expose:t,emit:n}){const s=e,i=n;Le();const a=R(()=>s.fadeFromIndex??(s.snapPoints&&s.snapPoints.length-1)),o=Vt(s,"open",i,{defaultValue:s.defaultOpen,passive:s.open===void 0}),u=Vt(s,"activeSnapPoint",i,{passive:s.activeSnapPoint===void 0}),r={emitDrag:p=>i("drag",p),emitRelease:p=>i("release",p),emitClose:()=>i("close"),emitOpenChange:p=>{i("update:open",p),setTimeout(()=>{i("animationEnd",p)},Y.DURATION*1e3)}},{closeDrawer:v,hasBeenOpened:h,modal:m,isOpen:f}=hs(_s({...r,...Ja(s),activeSnapPoint:u,fadeFromIndex:a,open:o}));function c(p){if(o.value!==void 0){r.emitOpenChange(p);return}f.value=p,p?h.value=!0:v()}return t({open:f}),(p,b)=>(w(),L(l(On),{open:l(f),modal:l(m),"onUpdate:open":c},{default:I(()=>[N(p.$slots,"default",{open:l(f)})]),_:3},8,["open","modal"]))}}),xs=ve({__name:"DrawerRootNested",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=He();function u(){a(!1)}function r(m){i(m)}function v(m){m&&a(m),s("update:open",m)}const h=Ga(n,s);return(m,f)=>(w(),L($a,J(l(h),{nested:"",onClose:u,onDrag:r,onRelease:l(o),"onUpdate:open":v}),{default:I(()=>[N(m.$slots,"default")]),_:3},16,["onRelease"]))}}),$s=ve({__name:"DrawerOverlay",setup(e){const{overlayRef:t,hasSnapPoints:n,isOpen:s,shouldFade:i}=He();return(a,o)=>(w(),L(l(En),{ref_key:"overlayRef",ref:t,"data-vaul-overlay":"","data-vaul-snap-points":l(s)&&l(n)?"true":"false","data-vaul-snap-points-overlay":l(s)&&l(i)?"true":"false"},null,8,["data-vaul-snap-points","data-vaul-snap-points-overlay"]))}}),Cs=()=>()=>{};function As(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:s,noBodyStyles:i}=He(),a=H(null),o=H(document.body.style.backgroundColor);function u(){return(window.innerWidth-xa)/window.innerWidth}Tt(r=>{if(t.value&&n.value){a.value&&clearTimeout(a.value);const v=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!v)return;gs(s.value&&!i.value?dt(document.body,{background:"black"}):Cs,dt(v,{transformOrigin:ee(e.value)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Y.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Y.EASE.join(",")})`}));const h=dt(v,{borderRadius:`${_a}px`,overflow:"hidden",...ee(e.value)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});r(()=>{h(),a.value=window.setTimeout(()=>{o.value?document.body.style.background=o.value:document.body.style.removeProperty("background")},Y.DURATION*1e3)})}},{flush:"pre"})}const Ts=ve({__name:"DrawerContent",setup(e){const{open:t,isOpen:n,snapPointsOffset:s,hasSnapPoints:i,drawerRef:a,onPress:o,onDrag:u,onRelease:r,modal:v,emitOpenChange:h,dismissible:m,keyboardIsOpen:f,closeDrawer:c,direction:p,handleOnly:b}=He();As();const D=H(!1),j=R(()=>s.value&&s.value.length>0?`${s.value[0]}px`:"0");function A($){if(!v.value||$.defaultPrevented){$.preventDefault();return}f.value&&(f.value=!1),m.value?h(!1):$.preventDefault()}function k($){b.value||o($)}function g($){b.value||u($)}return Tt(()=>{i.value&&window.requestAnimationFrame(()=>{D.value=!0})}),($,y)=>(w(),L(l(Mn),{ref_key:"drawerRef",ref:a,"data-vaul-drawer":"","data-vaul-drawer-direction":l(p),"data-vaul-delayed-snap-points":D.value?"true":"false","data-vaul-snap-points":l(n)&&l(i)?"true":"false",style:ra({"--snap-point-height":j.value}),onPointerdown:k,onPointermove:g,onPointerup:l(r),onPointerDownOutside:A,onOpenAutoFocus:y[0]||(y[0]=Wa(()=>{},["prevent"])),onEscapeKeyDown:y[1]||(y[1]=S=>{l(m)||S.preventDefault()})},{default:I(()=>[N($.$slots,"default")]),_:3},8,["data-vaul-drawer-direction","data-vaul-delayed-snap-points","data-vaul-snap-points","style","onPointerup"]))}}),Is=["data-vaul-drawer-visible"],Ds={"data-vaul-handle-hitarea":"","aria-hidden":"true"},Bs=250,Ls=120,Es=ve({__name:"DrawerHandle",props:{preventCycle:{type:Boolean,default:!1}},setup(e){const t=e,{onPress:n,onDrag:s,handleRef:i,handleOnly:a,isOpen:o,snapPoints:u,activeSnapPoint:r,isDragging:v,dismissible:h,closeDrawer:m}=He(),f=H(null),c=H(!1);function p(){if(c.value){j();return}window.setTimeout(()=>{b()},Ls)}function b(){if(v.value||t.preventCycle||c.value){j();return}if(j(),!u.value||u.value.length===0){h.value||m();return}const g=r.value===u.value[u.value.length-1];if(g&&h.value){m();return}const $=u.value.findIndex(S=>S===r.value);if($===-1)return;const y=g?0:$+1;r.value=u.value[y]}function D(){f.value=window.setTimeout(()=>{c.value=!0},Bs)}function j(){f.value&&window.clearTimeout(f.value),c.value=!1}function A(g){a.value&&n(g),D()}function k(g){a.value&&s(g)}return(g,$)=>(w(),U("div",{ref_key:"handleRef",ref:i,"data-vaul-drawer-visible":l(o)?"true":"false","data-vaul-handle":"","aria-hidden":"true",onClick:p,onPointercancel:j,onPointerdown:A,onPointermove:k},[Q("span",Ds,[N(g.$slots,"default")])],40,Is))}}),Ms={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default ring ring-default flex focus:outline-none",handle:["shrink-0 !bg-accented","transition-opacity"],container:"w-full flex flex-col gap-4 p-4 overflow-y-auto",header:"flex items-center gap-1.5 min-h-8",wrapper:"min-w-0 flex-1",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",actions:"flex items-center gap-1.5 shrink-0 ms-auto",body:"flex-1",footer:"flex flex-col gap-1.5",close:""},variants:{direction:{top:{content:"mb-24 flex-col-reverse",handle:"mb-4"},right:{content:"flex-row rtl:flex-row-reverse",handle:"!ml-4"},bottom:{content:"mt-24 flex-col",handle:"mt-4"},left:{content:"flex-row-reverse rtl:flex-row",handle:"!mr-4"}},inset:{true:{content:"rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"}},snapPoints:{true:""}},compoundVariants:[{direction:["top","bottom"],class:{content:"h-auto max-h-[96%]",handle:"!w-12 !h-1.5 mx-auto"}},{direction:["top","bottom"],snapPoints:!0,class:{content:"h-full"}},{direction:["right","left"],class:{content:"w-auto max-w-[calc(100%-2rem)]",handle:"!h-12 !w-1.5 mt-auto mb-auto"}},{direction:["right","left"],snapPoints:!0,class:{content:"w-full"}},{direction:"top",inset:!0,class:{content:"inset-x-4 top-4"}},{direction:"top",inset:!1,class:{content:"inset-x-0 top-0 rounded-b-lg"}},{direction:"bottom",inset:!0,class:{content:"inset-x-4 bottom-4"}},{direction:"bottom",inset:!1,class:{content:"inset-x-0 bottom-0 rounded-t-lg"}},{direction:"left",inset:!0,class:{content:"inset-y-4 left-4"}},{direction:"left",inset:!1,class:{content:"inset-y-0 left-0 rounded-r-lg"}},{direction:"right",inset:!0,class:{content:"inset-y-4 right-4"}},{direction:"right",inset:!1,class:{content:"inset-y-0 right-0 rounded-l-lg"}}]},Os={__name:"UDrawer",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},inset:{type:Boolean,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},handle:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},nested:{type:Boolean,required:!1},close:{type:[Boolean,Object],required:!1},closeIcon:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},activeSnapPoint:{type:[Number,String,null],required:!1},closeThreshold:{type:Number,required:!1},shouldScaleBackground:{type:Boolean,required:!1},setBackgroundColorOnScale:{type:Boolean,required:!1},scrollLockTimeout:{type:Number,required:!1},fixed:{type:Boolean,required:!1},dismissible:{type:Boolean,required:!1,default:!0},modal:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},direction:{type:String,required:!1,default:"bottom"},noBodyStyles:{type:Boolean,required:!1},handleOnly:{type:Boolean,required:!1},preventScrollRestoration:{type:Boolean,required:!1},snapPoints:{type:Array,required:!1}},emits:["close:prevent","drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const n=e,s=t,i=Le(),a=Ee("drawer",n),{t:o}=Ke(),u=$e(),r=je(st(a,"activeSnapPoint","closeThreshold","shouldScaleBackground","setBackgroundColorOnScale","scrollLockTimeout","fixed","dismissible","modal","open","defaultOpen","nested","direction","noBodyStyles","handleOnly","preventScrollRestoration","snapPoints"),s),v=en(De(()=>a.portal)),h=De(()=>a.content),m=R(()=>a.dismissible?{pointerDownOutside:ln}:["interactOutside","escapeKeyDown"].reduce((p,b)=>(p[b]=D=>{D.preventDefault(),s("close:prevent")},p),{})),f=R(()=>Me({extend:Ms,...u.ui?.drawer||{}})({direction:a.direction,inset:a.inset,snapPoints:a.snapPoints&&a.snapPoints.length>0}));return(c,p)=>(w(),L(sn(l(a).nested?l(xs):l($a)),Te(Ie(l(r))),{default:I(()=>[i.default?(w(),L(l(Rn),{key:0,"as-child":"",class:q(l(a).class)},{default:I(()=>[N(c.$slots,"default")]),_:3},8,["class"])):z("",!0),M(l(Fn),Te(Ie(l(v))),{default:I(()=>[M(l(tn),null,{default:I(()=>[l(a).overlay?(w(),L(l($s),{key:0,"data-slot":"overlay",class:q(f.value.overlay({class:l(a).ui?.overlay}))},null,8,["class"])):z("",!0),M(l(Ts),J({"data-slot":"content",class:f.value.content({class:[!i.default&&l(a).class,l(a).ui?.content]})},h.value,an(m.value)),{default:I(()=>[l(a).handle?(w(),L(l(Es),{key:0,"data-slot":"handle",class:q(f.value.handle({class:l(a).ui?.handle}))},null,8,["class"])):z("",!0),!l(a).title&&!i.title||!l(a).description&&!i.description||i.content?(w(),L(l(nn),{key:1},{default:I(()=>[!l(a).title&&!i.title?(w(),L(l(ut),{key:0})):i.content?(w(),L(l(ut),{key:1},{default:I(()=>[N(c.$slots,"title",{},()=>[me(ce(l(a).title),1)])]),_:3})):z("",!0),!l(a).description&&!i.description?(w(),L(l(ct),{key:2})):i.content?(w(),L(l(ct),{key:3},{default:I(()=>[N(c.$slots,"description",{},()=>[me(ce(l(a).description),1)])]),_:3})):z("",!0)]),_:3})):z("",!0),N(c.$slots,"content",{},()=>[Q("div",{"data-slot":"container",class:q(f.value.container({class:l(a).ui?.container}))},[i.header||l(a).title||i.title||l(a).description||i.description||l(a).close||i.close||i.actions?(w(),U("div",{key:0,"data-slot":"header",class:q(f.value.header({class:l(a).ui?.header}))},[N(c.$slots,"header",{},()=>[l(a).title||i.title||l(a).description||i.description?(w(),U("div",{key:0,"data-slot":"wrapper",class:q(f.value.wrapper({class:l(a).ui?.wrapper}))},[l(a).title||i.title?(w(),L(l(ut),{key:0,"data-slot":"title",class:q(f.value.title({class:l(a).ui?.title}))},{default:I(()=>[N(c.$slots,"title",{},()=>[me(ce(l(a).title),1)])]),_:3},8,["class"])):z("",!0),l(a).description||i.description?(w(),L(l(ct),{key:1,"data-slot":"description",class:q(f.value.description({class:l(a).ui?.description}))},{default:I(()=>[N(c.$slots,"description",{},()=>[me(ce(l(a).description),1)])]),_:3},8,["class"])):z("",!0)],2)):z("",!0),i.actions||l(a).close||i.close?(w(),U("div",{key:1,"data-slot":"actions",class:q(f.value.actions({class:l(a).ui?.actions}))},[N(c.$slots,"actions"),l(a).close||i.close?(w(),L(l(Pn),{key:0,"as-child":""},{default:I(()=>[N(c.$slots,"close",{ui:f.value},()=>[l(a).close?(w(),L(xe,J({key:0,icon:l(a).closeIcon||l(u).ui.icons.close,color:"neutral",variant:"ghost","aria-label":l(o)("drawer.close")},typeof l(a).close=="object"?l(a).close:{},{"data-slot":"close",class:f.value.close({class:l(a).ui?.close})}),null,16,["icon","aria-label","class"])):z("",!0)])]),_:3})):z("",!0)],2)):z("",!0)])],2)):z("",!0),i.body?(w(),U("div",{key:1,"data-slot":"body",class:q(f.value.body({class:l(a).ui?.body}))},[N(c.$slots,"body")],2)):z("",!0),i.footer?(w(),U("div",{key:2,"data-slot":"footer",class:q(f.value.footer({class:l(a).ui?.footer}))},[N(c.$slots,"footer")],2)):z("",!0)],2)])]),_:3},16,["class"])]),_:3})]),_:3},16)]),_:3},16))}},Rs={slots:{root:"relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0",header:"h-(--ui-header-height) shrink-0 flex items-center gap-1.5 px-4",body:"flex flex-col gap-4 flex-1 overflow-y-auto px-4 py-2",footer:"shrink-0 flex items-center gap-1.5 px-4 py-2",toggle:"",handle:"",content:"lg:hidden",overlay:"lg:hidden"},variants:{menu:{true:{header:"sm:px-6",body:"sm:px-6",footer:"sm:px-6"}},side:{left:{root:"border-e border-default"},right:{root:""}},toggleSide:{left:{toggle:""},right:{toggle:"ms-auto"}}}};function gt(e,t){const s=ua().hook(e,t);ca(s)}const Fs=["data-collapsed","data-dragging"],Ps=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebar",props:it({mode:{type:null,required:!1,default:"slideover"},menu:{type:null,required:!1},toggle:{type:[Boolean,Object],required:!1,default:!0},toggleSide:{type:String,required:!1,default:"left"},autoClose:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},id:{type:String,required:!1},side:{type:String,required:!1,default:"left"},minSize:{type:Number,required:!1,default:10},maxSize:{type:Number,required:!1,default:20},defaultSize:{type:Number,required:!1,default:15},resizable:{type:Boolean,required:!1,default:!1},collapsible:{type:Boolean,required:!1,default:!1},collapsedSize:{type:Number,required:!1,default:0}},{open:{type:Boolean,default:!1},openModifiers:{},collapsed:{type:Boolean,default:!1},collapsedModifiers:{}}),emits:["update:open","update:collapsed"],setup(e){const t=e,n=Le(),s=Ee("dashboardSidebar",t),i=ze(e,"open",{type:Boolean,default:!1}),a=ze(e,"collapsed",{type:Boolean,default:!1}),o=Bt(),{t:u}=Ke(),r=$e(),v=ga({storageKey:"dashboard",unit:"%",sidebarOpen:H(!1),sidebarCollapsed:H(!1)}),h=`${v.storageKey}-sidebar-${s.id||on()}`,{el:m,size:f,collapse:c,isCollapsed:p,isDragging:b,onMouseDown:D,onTouchStart:j,onDoubleClick:A}=xn(h,De(()=>({...v,...s})),{collapsed:a}),[k,g]=at(),[$,y]=at();gt("dashboard:sidebar:toggle",()=>{i.value=!i.value}),gt("dashboard:sidebar:collapse",E=>{p.value=E}),re(i,()=>v.sidebarOpen.value=i.value,{immediate:!0}),re(p,()=>v.sidebarCollapsed.value=p.value,{immediate:!0}),re(()=>o.fullPath,()=>{s.autoClose&&(i.value=!1)});const S=R(()=>Me({extend:Rs,...r.ui?.dashboardSidebar||{}})({side:s.side})),x=R(()=>({slideover:Ln,modal:Lt,drawer:Os})[s.mode]),_=De(()=>Be(s.menu,{},s.mode==="modal"?{fullscreen:!0,transition:!1}:s.mode==="slideover"?{side:"left"}:{}));function T(){i.value=!i.value}return(E,K)=>(w(),U(he,null,[M(l(k),null,{default:I(()=>[N(E.$slots,"toggle",{open:i.value,toggle:T,ui:S.value},()=>[l(s).toggle?(w(),L($n,J({key:0},typeof l(s).toggle=="object"?l(s).toggle:{},{side:l(s).toggleSide,"data-slot":"toggle",class:S.value.toggle({class:l(s).ui?.toggle,toggleSide:l(s).toggleSide})}),null,16,["side","class"])):z("",!0)])]),_:3}),M(l($),null,{default:I(()=>[N(E.$slots,"resize-handle",{onMouseDown:l(D),onTouchStart:l(j),onDoubleClick:l(A),ui:S.value},()=>[l(s).resizable?(w(),L(Cn,{key:0,"aria-controls":h,"data-slot":"handle",class:q(S.value.handle({class:l(s).ui?.handle})),onMousedown:l(D),onTouchstart:l(j),onDblclick:l(A)},null,8,["class","onMousedown","onTouchstart","onDblclick"])):z("",!0)])]),_:3}),l(s).side==="right"?(w(),L(l(y),{key:0})):z("",!0),Q("div",J({id:h,ref_key:"el",ref:m,"data-slot":"root"},E.$attrs,{"data-collapsed":l(p),"data-dragging":l(b),class:S.value.root({class:[l(s).ui?.root,l(s).class]}),style:{"--width":`${l(f)||0}${l(v).unit}`}}),[n.header?(w(),U("div",{key:0,"data-slot":"header",class:q(S.value.header({class:l(s).ui?.header}))},[N(E.$slots,"header",{collapsed:l(p),collapse:l(c)})],2)):z("",!0),Q("div",{"data-slot":"body",class:q(S.value.body({class:l(s).ui?.body}))},[N(E.$slots,"default",{collapsed:l(p),collapse:l(c)})],2),n.footer?(w(),U("div",{key:1,"data-slot":"footer",class:q(S.value.footer({class:l(s).ui?.footer}))},[N(E.$slots,"footer",{collapsed:l(p),collapse:l(c)})],2)):z("",!0)],16,Fs),l(s).side==="left"?(w(),L(l(y),{key:1})):z("",!0),M(l(x),J({open:i.value,"onUpdate:open":K[0]||(K[0]=X=>i.value=X),title:l(u)("dashboardSidebar.title"),description:l(u)("dashboardSidebar.description")},_.value,{ui:{overlay:S.value.overlay({class:l(s).ui?.overlay}),content:S.value.content({class:l(s).ui?.content})}}),{content:I(X=>[N(E.$slots,"content",Te(Ie(X)),()=>[n.header||l(s).mode!=="drawer"?(w(),U("div",{key:0,"data-slot":"header",class:q(S.value.header({class:l(s).ui?.header,menu:!0}))},[l(s).mode!=="drawer"&&l(s).toggleSide==="left"?(w(),L(l(g),{key:0})):z("",!0),N(E.$slots,"header",{collapsed:!1,collapse:()=>{}}),l(s).mode!=="drawer"&&l(s).toggleSide==="right"?(w(),L(l(g),{key:1})):z("",!0)],2)):z("",!0),Q("div",{"data-slot":"body",class:q(S.value.body({class:l(s).ui?.body,menu:!0}))},[N(E.$slots,"default",{collapsed:!1,collapse:()=>{}})],2),n.footer?(w(),U("div",{key:1,"data-slot":"footer",class:q(S.value.footer({class:l(s).ui?.footer,menu:!0}))},[N(E.$slots,"footer",{collapsed:!1,collapse:()=>{}})],2)):z("",!0)])]),_:3},16,["open","title","description","ui"])],64))}});function be(e){return Array.isArray?Array.isArray(e):Aa(e)==="[object Array]"}function js(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yt(e){return e==null?"":js(e)}function le(e){return typeof e=="string"}function Ze(e){return typeof e=="number"}function zs(e){return e===!0||e===!1||qs(e)&&Aa(e)=="[object Boolean]"}function Ca(e){return typeof e=="object"}function qs(e){return Ca(e)&&e!==null}function ue(e){return e!=null}function Qe(e){return!e.trim().length}function Aa(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ks="Incorrect 'index' type",bt="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Ns=e=>`Invalid value for key ${e}`,Hs=e=>`Pattern length exceeds max of ${e}.`,Us=e=>`Missing ${e} property in key`,Vs=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ws="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",Jt=Object.prototype.hasOwnProperty;var Gs=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(n=>{const s=Ta(n);this._keys.push(s),this._keyMap[s.id]=s,t+=s.weight}),this._keys.forEach(n=>{n.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Ta(e){let t=null,n=null,s=null,i=1,a=null;if(le(e)||be(e))s=e,t=Yt(e),n=et(e);else{if(!Jt.call(e,"name"))throw new Error(Us("name"));const o=e.name;if(s=o,Jt.call(e,"weight")&&e.weight!==void 0&&(i=e.weight,i<=0))throw new Error(Vs(et(o)));t=Yt(o),n=et(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:s,getFn:a}}function Yt(e){return be(e)?e:e.split(".")}function et(e){return be(e)?e.join("."):e}function Js(e,t){const n=[];let s=!1;const i=(a,o,u,r)=>{if(ue(a))if(!o[u])n.push(r!==void 0?{v:a,i:r}:a);else{const v=a[o[u]];if(!ue(v))return;if(u===o.length-1&&(le(v)||Ze(v)||zs(v)||typeof v=="bigint"))n.push(r!==void 0?{v:yt(v),i:r}:yt(v));else if(be(v)){s=!0;for(let h=0,m=v.length;h<m;h+=1)i(v[h],o,u+1,h)}else o.length&&i(v,o,u+1,r)}};return i(e,le(t)?t.split("."):t,0),s?n:n[0]}const Ys={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Qs={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Xs={location:0,threshold:.6,distance:100},Zs={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:Js,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},O=Object.freeze({...Qs,...Ys,...Xs,...Zs});function ei(e){return e>=9&&e<=13||e===32||e===160}function ti(e=1,t=3){const n=new Map,s=Math.pow(10,t);return{get(i){let a=0,o=!1;for(let r=0;r<i.length;r++)ei(i.charCodeAt(r))?o=!1:o||(a++,o=!0);if(a===0&&(a=1),n.has(a))return n.get(a);const u=Math.round(s/Math.pow(a,.5*e))/s;return n.set(a,u),u},clear(){n.clear()}}}var Et=class{constructor({getFn:e=O.getFn,fieldNormWeight:t=O.fieldNormWeight}={}){this.norm=ti(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,n)=>{this._keysMap[t.id]=n})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(le(this.docs[0]))for(let n=0;n<e;n++){const s=this._createStringRecord(this.docs[n],n);s&&(this.records[t++]=s)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(bt);if(le(e)){const s=this._createStringRecord(e,t);return s&&this.records.push(s),s}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(bt);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const s of e)Number.isInteger(s)&&s>=0&&t.add(s);if(t.size===0)return;this.records=this.records.filter(s=>!t.has(s.i));const n=Array.from(t).sort((s,i)=>s-i);for(const s of this.records){let i=0,a=n.length;for(;i<a;){const o=i+a>>>1;n[o]<s.i?i=o+1:a=o}s.i-=i}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!ue(e)||Qe(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let s=0,i=this.keys.length;s<i;s++){const a=this.keys[s],o=a.getFn?a.getFn(e):this.getFn(e,a.path);if(ue(o)){if(be(o)){const u=[];for(let r=0,v=o.length;r<v;r+=1){const h=o[r];if(ue(h)){if(le(h)){if(!Qe(h)){const m={v:h,i:r,n:this.norm.get(h)};u.push(m)}}else if(ue(h.v)){const m=le(h.v)?h.v:yt(h.v);if(!Qe(m)){const f={v:m,i:h.i,n:this.norm.get(m)};u.push(f)}}}}n.$[s]=u}else if(le(o)&&!Qe(o)){const u={v:o,n:this.norm.get(o)};n.$[s]=u}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Ia(e,t,{getFn:n=O.getFn,fieldNormWeight:s=O.fieldNormWeight}={}){const i=new Et({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(Ta)),i.setSources(t),i.create(),i}function ai(e,{getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const{keys:s,records:i}=e,a=new Et({getFn:t,fieldNormWeight:n});return a.setKeys(s),a.setIndexRecords(i),a}function ni(e=[],t=O.minMatchCharLength){const n=[];let s=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){const u=e[a];u&&s===-1?s=a:!u&&s!==-1&&(i=a-1,i-s+1>=t&&n.push([s,i]),s=-1)}return e[a-1]&&a-s>=t&&n.push([s,a-1]),n}function si(e,t,n,{location:s=O.location,distance:i=O.distance,threshold:a=O.threshold,findAllMatches:o=O.findAllMatches,minMatchCharLength:u=O.minMatchCharLength,includeMatches:r=O.includeMatches,ignoreLocation:v=O.ignoreLocation}={}){if(t.length>32)throw new Error(Hs(32));const h=t.length,m=e.length,f=Math.max(0,Math.min(s,m));let c=a,p=f;const b=(_,T)=>{const E=_/h;if(v)return E;const K=Math.abs(f-T);return i?E+K/i:K?1:E},D=u>1||r,j=D?Array(m):[];let A;for(;(A=e.indexOf(t,p))>-1;){const _=b(0,A);if(c=Math.min(_,c),p=A+h,D){let T=0;for(;T<h;)j[A+T]=1,T+=1}}p=-1;let k=[],g=1,$=0,y=h+m;const S=1<<h-1;for(let _=0;_<h;_+=1){let T=0,E=y;for(;T<E;)b(_,f+E)<=c?T=E:y=E,E=Math.floor((y-T)/2+T);y=E;let K=Math.max(1,f-E+1);const X=o?m:Math.min(f+E,m)+h,C=Array(X+2);C[X+1]=(1<<_)-1;for(let F=X;F>=K;F-=1){const d=F-1,V=n[e[d]];if(C[F]=(C[F+1]<<1|1)&V,_&&(C[F]|=(k[F+1]|k[F])<<1|1|k[F+1]),C[F]&S&&(g=b(_,d),g<=c)){if(c=g,p=d,$=_,p<=f)break;K=Math.max(1,2*f-p)}}if(b(_+1,f)>c)break;k=C}if(D&&p>=0){const _=Math.min(m-1,p+h-1+$);for(let T=p;T<=_;T+=1)n[e[T]]&&(j[T]=1)}const x={isMatch:p>=0,score:Math.max(.001,g)};if(D){const _=ni(j,u);_.length?r&&(x.indices=_):x.isMatch=!1}return x}function ii(e){const t={};for(let n=0,s=e.length;n<s;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<s-n-1}return t}function Mt(e){if(e.length<=1)return e;e.sort((n,s)=>n[0]-s[0]||n[1]-s[1]);const t=[e[0]];for(let n=1,s=e.length;n<s;n+=1){const i=t[t.length-1],a=e[n];a[0]<=i[1]+1?i[1]=Math.max(i[1],a[1]):t.push(a)}return t}const Da={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},li=new RegExp("["+Object.keys(Da).join("")+"]","g"),qe=typeof String.prototype.normalize=="function"?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(li,t=>Da[t]):e=>e;var Ot=class{constructor(e,{location:t=O.location,threshold:n=O.threshold,distance:s=O.distance,includeMatches:i=O.includeMatches,findAllMatches:a=O.findAllMatches,minMatchCharLength:o=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreDiacritics:r=O.ignoreDiacritics,ignoreLocation:v=O.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:s,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:u,ignoreDiacritics:r,ignoreLocation:v},e=u?e:e.toLowerCase(),e=r?qe(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const h=(f,c)=>{this.chunks.push({pattern:f,alphabet:ii(f),startIndex:c})},m=this.pattern.length;if(m>32){let f=0;const c=m%32,p=m-c;for(;f<p;)h(this.pattern.substr(f,32),f),f+=32;if(c){const b=m-32;h(this.pattern.substr(b),b)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:s}=this.options;if(e=t?e:e.toLowerCase(),e=n?qe(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const p={isMatch:!0,score:0};return s&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:a,threshold:o,findAllMatches:u,minMatchCharLength:r,ignoreLocation:v}=this.options,h=[];let m=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:b,startIndex:D})=>{const{isMatch:j,score:A,indices:k}=si(e,p,b,{location:i+D,distance:a,threshold:o,findAllMatches:u,minMatchCharLength:r,includeMatches:s,ignoreLocation:v});j&&(f=!0),m+=A,j&&k&&h.push(...k)});const c={isMatch:f,score:f?m/this.chunks.length:1};return f&&s&&(c.indices=Mt(h)),c}};const oi=new Set(["fuzzy","include"]);function ri(e){return e.startsWith("inverse")}const wt=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n=0,s;const i=[],a=e.length;for(;(s=t.indexOf(e,n))>-1;)n=s+a,i.push([s,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=t.indexOf(e)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new Ot(e,{location:t.location??O.location,threshold:t.threshold??O.threshold,distance:t.distance??O.distance,includeMatches:t.includeMatches??O.includeMatches,findAllMatches:t.findAllMatches??O.findAllMatches,minMatchCharLength:t.minMatchCharLength??O.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??O.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??O.ignoreDiacritics,ignoreLocation:t.ignoreLocation??O.ignoreLocation});return{type:"fuzzy",search(s){return n.searchIn(s)}}}}],Qt=wt.length,ui="\0",ci="|";function di(e){const t=[],n=e.length;let s=0;for(;s<n;){for(;s<n&&e[s]===" ";)s++;if(s>=n)break;let i=s;for(;i<n&&e[i]!==" "&&e[i]!=='"';)i++;if(i<n&&e[i]==='"'){for(i++;i<n;){if(e[i]==='"'){const a=i+1;if(a>=n||e[a]===" "){i++;break}if(e[a]==="$"&&(a+1>=n||e[a+1]===" ")){i+=2;break}}i++}t.push(e.substring(s,i)),s=i}else{for(;i<n&&e[i]!==" ";)i++;t.push(e.substring(s,i)),s=i}}return t}function Xt(e,t){const n=e.match(t);return n?n[1]:null}function fi(e,t={}){return e.replace(/\\\|/g,ui).split(ci).map(n=>{const s=di(n.replace(/\u0000/g,"|").trim()).filter(a=>a&&!!a.trim()),i=[];for(let a=0,o=s.length;a<o;a+=1){const u=s[a];let r=!1,v=-1;for(;!r&&++v<Qt;){const h=wt[v],m=Xt(u,h.multiRegex);m&&(i.push(h.create(m,t)),r=!0)}if(!r)for(v=-1;++v<Qt;){const h=wt[v],m=Xt(u,h.singleRegex);if(m){i.push(h.create(m,t));break}}}return i})}var pi=class{constructor(e,{isCaseSensitive:t=O.isCaseSensitive,ignoreDiacritics:n=O.ignoreDiacritics,includeMatches:s=O.includeMatches,minMatchCharLength:i=O.minMatchCharLength,ignoreLocation:a=O.ignoreLocation,findAllMatches:o=O.findAllMatches,location:u=O.location,threshold:r=O.threshold,distance:v=O.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:u,threshold:r,distance:v},e=t?e:e.toLowerCase(),e=n?qe(e):e,this.pattern=e,this.query=fi(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:i}=this.options;e=s?e:e.toLowerCase(),e=i?qe(e):e;let a=0;const o=[];let u=0,r=!1;for(let v=0,h=t.length;v<h;v+=1){const m=t[v];o.length=0,a=0,r=!1;for(let f=0,c=m.length;f<c;f+=1){const p=m[f],{isMatch:b,indices:D,score:j}=p.search(e);if(b)a+=1,u+=j,ri(p.type)&&(r=!0),n&&(oi.has(p.type)?o.push(...D):o.push(D));else{u=0,a=0,o.length=0,r=!1;break}}if(a){const f={isMatch:!0,score:u/a};return r&&(f.hasInverse=!0),n&&(f.indices=Mt(o)),f}}return{isMatch:!1,score:1}}};const kt=[];function Rt(...e){kt.push(...e)}function lt(e,t){for(let n=0,s=kt.length;n<s;n+=1){const i=kt[n];if(i.condition(e,t))return new i(e,t)}return new Ot(e,t)}const ot={AND:"$and",OR:"$or"},St={PATH:"$path",PATTERN:"$val"},_t=e=>!!(e[ot.AND]||e[ot.OR]),hi=e=>!!e[St.PATH],mi=e=>!be(e)&&Ca(e)&&!_t(e),Zt=e=>({[ot.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Ba(e,t,{auto:n=!0}={}){const s=i=>{if(le(i)){const r={keyId:null,pattern:i};return n&&(r.searcher=lt(i,t)),r}const a=Object.keys(i),o=hi(i);if(!o&&a.length>1&&!_t(i))return s(Zt(i));if(mi(i)){const r=o?i[St.PATH]:a[0],v=o?i[St.PATTERN]:i[r];if(!le(v))throw new Error(Ns(r));const h={keyId:et(r),pattern:v};return n&&(h.searcher=lt(v,t)),h}const u={children:[],operator:a[0]};return a.forEach(r=>{const v=i[r];be(v)&&v.forEach(h=>{u.children.push(s(h))})}),u};return _t(e)||(e=Zt(e)),s(e)}function xt(e,{ignoreFieldNorm:t=O.ignoreFieldNorm}){let n=1;return e.forEach(({key:s,norm:i,score:a})=>{const o=s?s.weight:null;n*=Math.pow(a===0&&o?Number.EPSILON:a,(o||1)*(t?1:i))}),n}function vi(e,{ignoreFieldNorm:t=O.ignoreFieldNorm}){e.forEach(n=>{n.score=xt(n.matches,{ignoreFieldNorm:t})})}var gi=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const s=t[e];t[e]=t[n],t[n]=s,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let s=e;do{e=s;const i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[s])>0&&(s=i),a<n&&this.comparator(t[a],t[s])>0&&(s=a),s!==e){const o=t[e];t[e]=t[s],t[s]=o}}while(s!==e)}};function yi(e){const t=[];return e.matches.forEach(n=>{if(!ue(n.indices)||!n.indices.length)return;const s={indices:n.indices,value:n.value};n.key&&(s.key=n.key.id),n.idx>-1&&(s.refIndex=n.idx),t.push(s)}),t}function bi(e,t,{includeMatches:n=O.includeMatches,includeScore:s=O.includeScore}={}){return e.map(i=>{const{idx:a}=i,o={item:t[a],refIndex:a};return n&&(o.matches=yi(i)),s&&(o.score=i.score),o})}const wi=/[\p{L}\p{M}\p{N}_]+/gu,ea=new WeakSet;function ki(e){ea.has(e)||(ea.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Si(e){if(typeof e=="function"){let t=!1;return n=>{const s=e(n);if(!t&&(t=!0,!Array.isArray(s)||s.some(i=>typeof i!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(s)?"array containing non-strings":typeof s}.`);return s}}return e instanceof RegExp?(e.global||ki(e),t=>t.match(e)||[]):t=>t.match(wi)||[]}function $t({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const s=Si(n);return{tokenize(i){return e||(i=i.toLowerCase()),t&&(i=qe(i)),s(i)}}}var _i=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=$t({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:s,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const a of n){this.termSearchers.push(new Ot(a,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const o=s.get(a)||0,u=Math.log(1+(i-o+.5)/(o+.5));this.idfWeights.push(u)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,s=0,i=0,a=0;const o=this.combineAll&&!this.useMask?new Set:null;for(let v=0;v<this.termSearchers.length;v++){const h=this.termSearchers[v].searchIn(e),m=this.idfWeights[v];s+=m,h.isMatch&&(i++,n+=m*(1-h.score),h.indices&&t.push(...h.indices),this.combineAll&&(this.useMask?a|=1<<v:o.add(v)))}if(i===0)return{isMatch:!1,score:1};const u=s>0?1-n/s:0,r={isMatch:!0,score:Math.max(.001,u)};return this.options.includeMatches&&t.length&&(r.indices=Mt(t)),this.combineAll&&(this.useMask?r.matchedMask=a:r.matchedTerms=o,r.termCount=this.numTerms),r}};function ft(e,t,n,s){const i=s.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const a=new Set(i);let o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(const u of a)o.set(u,(o.get(u)||0)+1),e.df.set(u,(e.df.get(u)||0)+1)}function La(e,t,n,s){const{i,v:a,$:o}=t;if(a!==void 0){ft(e,a,i,s);return}if(o)for(let u=0;u<n;u++){const r=o[u];if(r)if(Array.isArray(r))for(const v of r)ft(e,v.v,i,s);else ft(e,r.v,i,s)}}function xi(e,t,n){const s={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)La(s,i,t,n);return s}function $i(e,t,n,s){La(e,t,n,s)}function Ci(e,t){const n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);const s=e.docTermFieldHits.get(t);if(s){for(const[i,a]of s){const o=(e.df.get(i)||0)-a;o<=0?e.df.delete(i):e.df.set(i,o)}e.docTermFieldHits.delete(t)}}function ta(e,t){if(t.length===0)return;const n=Array.from(new Set(t)).sort((u,r)=>u-r);for(const u of n)Ci(e,u);const s=u=>{let r=0,v=n.length;for(;r<v;){const h=r+v>>>1;n[h]<u?r=h+1:v=h}return u-r},i=n[0],a=new Map;for(const[u,r]of e.docFieldCount)a.set(u>i?s(u):u,r);e.docFieldCount=a;const o=new Map;for(const[u,r]of e.docTermFieldHits)o.set(u>i?s(u):u,r);e.docTermFieldHits=o}var we=class{constructor(e,t,n){this.options={...O,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Gs(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=lt(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Et))throw new Error(Ks);if(this._myIndex=t||Ia(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=xi(this._myIndex.records,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}add(e){if(!ue(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const n=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});$i(this._invertedIndex,t,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let s=0,i=this._docs.length;s<i;s+=1)e(this._docs[s],s)&&(t.push(this._docs[s]),n.push(s));if(n.length){this._invertedIndex&&ta(this._invertedIndex,n);const s=new Set(n);this._docs=this._docs.filter((i,a)=>!s.has(a)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(bt);this._invertedIndex&&ta(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:s,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:u}=this.options;if(le(e)&&!e.trim()){let f=this._docs.map((c,p)=>({item:c,refIndex:p}));return Ze(n)&&n>-1&&(f=f.slice(0,n)),f}const r=a&&Ze(n)&&n>0&&le(e),v=o,h=(f,c)=>v(f,c)||f.idx-c.idx;let m;if(r){const f=new gi(n,h);le(this._docs[0])?this._searchStringList(e,{heap:f,ignoreFieldNorm:u}):this._searchObjectList(e,{heap:f,ignoreFieldNorm:u}),m=f.extractSorted()}else m=le(e)?le(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),vi(m,{ignoreFieldNorm:u}),a&&m.sort(le(e)?h:v),Ze(n)&&n>-1&&(m=m.slice(0,n));return bi(m,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const s=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:u,i:r,n:v})=>{if(!ue(u))return;const h=s.searchIn(u);if(h.isMatch){const m={score:h.score,value:u,norm:v,indices:h.indices};i&&(m.matchedMask=h.matchedMask,m.matchedTerms=h.matchedTerms,m.termCount=h.termCount);const f=[m];if(!i||this._coversAllTokens(f)){const c={item:u,idx:r,matches:f};t?(c.score=xt(c.matches,{ignoreFieldNorm:n}),t.insert(c)):o.push(c)}}}),o}_searchLogical(e){const t=Ba(e,this.options),n=this._normalizedKeys(),s=(u,r,v)=>{if(!("children"in u)){const{keyId:c,searcher:p}=u;let b;return c===null?(b=[],n.forEach((D,j)=>{b.push(...this._findMatches({key:D,value:r[j],searcher:p}))})):b=this._findMatches({key:this._keyStore.get(c),value:this._myIndex.getValueForItemAtKeyId(r,c),searcher:p}),b&&b.length?[{idx:v,item:r,matches:b}]:[]}const{children:h,operator:m}=u,f=[];for(let c=0,p=h.length;c<p;c+=1){const b=h[c],D=s(b,r,v);if(D.length)f.push(...D);else if(m===ot.AND)return[]}return f},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:u,i:r})=>{if(ue(u)){const v=s(t,u,r);v.length&&(a.has(r)||(a.set(r,{idx:r,item:u,matches:[]}),o.push(a.get(r))),v.forEach(({matches:h})=>{a.get(r).matches.push(...h)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const s=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,o=this._normalizedKeys(),u=t?null:[];return a.forEach(({$:r,i:v})=>{if(!ue(r))return;const h=[];let m=!1,f=!1;if(o.forEach((c,p)=>{const b=this._findMatches({key:c,value:r[p],searcher:s});b.length?(h.push(...b),b[0].hasInverse&&(f=!0)):m=!0}),!(f&&m)&&h.length&&(!i||this._coversAllTokens(h))){const c={idx:v,item:r,matches:h};t?(c.score=xt(c.matches,{ignoreFieldNorm:n}),t.insert(c)):u.push(c)}}),u}_findMatches({key:e,value:t,searcher:n}){if(!ue(t))return[];const s=[];if(be(t))t.forEach(({v:i,i:a,n:o})=>{if(!ue(i))return;const u=n.searchIn(i);if(u.isMatch){const r={score:u.score,key:e,value:i,idx:a,norm:o,indices:u.indices,hasInverse:u.hasInverse};u.termCount!==void 0&&(r.matchedMask=u.matchedMask,r.matchedTerms=u.matchedTerms,r.termCount=u.termCount),s.push(r)}});else{const{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){const u={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(u.matchedMask=o.matchedMask,u.matchedTerms=o.matchedTerms,u.termCount=o.termCount),s.push(u)}}return s}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let s=0;for(let i=0;i<e.length;i++)s|=e[i].matchedMask||0;return s===2**t-1}const n=new Set;for(let s=0;s<e.length;s++){const i=e[s].matchedTerms;if(i)for(const a of i)n.add(a)}return n.size===t}};we.version="7.5.0";we.createIndex=Ia;we.parseIndex=ai;we.config=O;we.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error(Ws);return lt(e,{...O,...n}).searchIn(t)};we.parseQuery=Ba;Rt(pi);Rt(_i);we.use=function(...e){e.forEach(t=>Rt(t))};var Ai=we;function Ti(e,t,n){const s=()=>{var a,o;return new Ai((a=ge(t))!==null&&a!==void 0?a:[],(o=ge(n))===null||o===void 0?void 0:o.fuseOptions)},i=rn(s());return re(()=>{var a;return(a=ge(n))===null||a===void 0?void 0:a.fuseOptions},()=>{i.value=s()},{deep:!0}),re(()=>ge(t),a=>{i.value.setCollection(a)},{deep:!0}),{fuse:i,results:R(()=>{const a=ge(n);if(a?.matchAllWhenSearchEmpty&&!ge(e))return ge(t).map((u,r)=>({item:u,refIndex:r}));const o=a?.resultLimit;return i.value.search(ge(e),o?{limit:o}:void 0)})}}const Ii={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Di(e){return e.replace(/[&<>"']/g,t=>Ii[t])}function Bi(e){return/&(?:amp|lt|gt|quot|#39);/.test(e)}function pt(e){return Bi(e)?e:Di(e)}function Li(e,t){let n="",s=0,i=!1;for(let a=e.length-1;a>=0;a--){if(e[a]===">")i=!0;else if(e[a]==="<"){i=!1,n=e[a]+n;continue}if(i||s++,s<=t)n=e[a]+n;else{n="..."+n;break}}return n}function ht(e,t,n,s,i){const a=i?t.match(/[\p{L}\p{M}\p{N}_]+/gu)||[]:[],o=a.length>0?Math.min(...a.map(r=>r.length)):t.length;function u(r,v=[]){r=r||"";let h="",m=0;v.forEach(c=>{if(c.length===2&&c[0]===c[1])return;const p=c[1]+1,b=p-c[0]>=o;h+=[pt(r.substring(m,c[0])),b&&"<mark>",pt(r.substring(c[0],p)),b&&"</mark>"].filter(Boolean).join(""),m=p}),h+=pt(r.substring(m));const f=h.indexOf("<mark>");return f!==-1&&(h=Li(h,h.length-f)),h}if(e.matches?.length){for(const r of e.matches)if(!(n&&r.key!==n)&&!s?.includes(r.key))return u(r.value,r.indices)}}const Ei={slots:{root:"flex flex-col min-h-0 min-w-0 divide-y divide-default",input:"",close:"",back:"p-0",content:"relative overflow-hidden flex flex-col",footer:"p-1",viewport:"relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none",group:"p-1 isolate",empty:"text-center text-muted",label:"font-semibold text-highlighted",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",itemLeadingIcon:"shrink-0",itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemLeadingChip:"shrink-0",itemLeadingChipSize:"",itemTrailing:"ms-auto inline-flex items-center",itemTrailingIcon:"shrink-0",itemTrailingHighlightedIcon:"shrink-0 text-dimmed hidden group-data-highlighted:inline-flex",itemTrailingKbds:"hidden lg:inline-flex items-center shrink-0",itemTrailingKbdsSize:"",itemWrapper:"flex-1 flex flex-col text-start min-w-0",itemLabel:"truncate space-x-1 text-dimmed",itemLabelBase:"text-highlighted [&>mark]:text-primary [&>mark]:bg-primary/15",itemLabelPrefix:"text-default",itemLabelSuffix:"text-dimmed [&>mark]:text-primary [&>mark]:bg-primary/15",itemDescription:"truncate text-muted [&>mark]:text-primary [&>mark]:bg-primary/15"},variants:{virtualize:{true:{viewport:"p-1 isolate"},false:{viewport:"divide-y divide-default"}},size:{xs:{input:"[&>input]:h-10",empty:"py-3 text-xs",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",itemTrailing:"gap-1",itemTrailingIcon:"size-4",itemTrailingHighlightedIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},sm:{input:"[&>input]:h-11",empty:"py-4 text-xs",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",itemTrailing:"gap-1.5",itemTrailingIcon:"size-4",itemTrailingHighlightedIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},md:{input:"[&>input]:h-12",empty:"py-6 text-sm",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",itemTrailing:"gap-1.5",itemTrailingIcon:"size-5",itemTrailingHighlightedIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},lg:{input:"[&>input]:h-13",empty:"py-7 text-sm",label:"p-2 text-xs gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailing:"gap-2",itemTrailingIcon:"size-5",itemTrailingHighlightedIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},xl:{input:"[&>input]:h-14",empty:"py-8 text-base",label:"p-2 text-sm gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemLeadingChip:"size-6",itemLeadingChipSize:"lg",itemTrailing:"gap-2",itemTrailingIcon:"size-6",itemTrailingHighlightedIcon:"size-6",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"lg"}},active:{true:{item:"text-highlighted before:bg-elevated",itemLeadingIcon:"text-default"},false:{item:["text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["text-dimmed group-data-highlighted:not-group-data-disabled:text-default","transition-colors"]}},loading:{true:{itemLeadingIcon:"animate-spin"}}},defaultVariants:{size:"md"}},Mi=["innerHTML"],Oi=["innerHTML"],Ri=["innerHTML"],Fi=Object.assign({inheritAttrs:!1},{__name:"UCommandPalette",props:it({as:{type:null,required:!1},size:{type:null,required:!1},icon:{type:[String,Boolean],required:!1,skipCheck:!0},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},childrenIcon:{type:null,required:!1},placeholder:{type:String,required:!1},autofocus:{type:Boolean,required:!1,default:!0},close:{type:[Boolean,Object],required:!1},closeIcon:{type:null,required:!1},back:{type:[Boolean,Object],required:!1,default:!0},backIcon:{type:null,required:!1},input:{type:[Boolean,Object],required:!1,default:!0},groups:{type:Array,required:!1},fuse:{type:Object,required:!1},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"},preserveGroupOrder:{type:Boolean,required:!1,default:!1},searchDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},multiple:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},selectionBehavior:{type:String,required:!1},by:{type:[String,Function],required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:it(["update:modelValue","highlight","entryFocus","leave","update:open"],["update:searchTerm"]),setup(e,{emit:t}){const n=e,s=t,i=Le(),a=Ee("commandPalette",n),o=ze(e,"searchTerm",{type:String,default:""}),{t:u}=Ke(),r=$e(),v=je(st(a,"as","disabled","multiple","modelValue","defaultValue","highlightOnHover","by"),s),h=De(()=>a.virtualize?Be(typeof a.virtualize=="boolean"?{}:a.virtualize,{estimateSize:Wn(x.value,"md",a.descriptionKey,!!i["item-description"])}):!1),[m,f]=at({props:{item:{type:Object,required:!0},group:{type:Object,required:!1},index:{type:Number,required:!1}}}),c=R(()=>Me({extend:Ei,...r.ui?.commandPalette||{}})({size:a.size,virtualize:!!a.virtualize})),p=R(()=>Be({},a.fuse,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[a.labelKey,a.descriptionKey,"suffix"]},resultLimit:12,matchAllWhenSearchEmpty:!0})),b=H([]),D=R(()=>b.value[b.value.length-1]?.placeholder||a.placeholder||u("commandPalette.placeholder")),j=R(()=>b.value?.length?[b.value[b.value.length-1]]:a.groups),A=R(()=>j.value?.filter(C=>C.id?!C.ignoreFilter:(console.warn("[@nuxt/ui] CommandPalette group is missing an `id` property"),!1))?.flatMap(C=>C.items?.map(F=>({...F,group:C.id}))||[])||[]),k=un(o,()=>a.searchDelay),{results:g}=Ti(k,A,p),$=cn(g,16,!0);function y(C,F){let d=F;return C?.postFilter&&typeof C.postFilter=="function"&&(d=C.postFilter(k.value,d)),{...C,items:d.slice(0,p.value.resultLimit).map(V=>({...V,labelHtml:V.labelHtml??ht(V,k.value,a.labelKey,void 0,p.value.fuseOptions?.useTokenSearch),suffixHtml:V.suffixHtml??ht(V,k.value,"suffix",[a.labelKey],p.value.fuseOptions?.useTokenSearch),descriptionHtml:V.descriptionHtml??ht(V,k.value,a.descriptionKey,[a.labelKey,"suffix"],p.value.fuseOptions?.useTokenSearch)}))}}const S=R(()=>{const C=j.value,F=$.value.reduce((B,G)=>{const{item:ie,matches:te}=G;return ie.group&&(B[ie.group]||=[],B[ie.group]?.push({...ie,matches:te})),B},{});if(a.preserveGroupOrder){const B=[];for(const G of C||[]){if(!G.items?.length)continue;const ie=G.ignoreFilter?G.items:F[G.id];if(!ie?.length)continue;const te=y(G,ie);te.items?.length&&B.push(te)}return B}const V=[...Object.entries(F).map(([B,G])=>{const ie=C?.find(ye=>ye.id===B);if(!ie)return;const te=y(ie,G);return te.items?.length?te:void 0}).filter(B=>!!B)];for(const B of C||[]){if(!B.ignoreFilter||!B.items?.length)continue;const G=y(B,B.items);if(!G.items?.length)continue;const ie=C.indexOf(B),te=new Set;for(let fe=0;fe<ie;fe++)te.add(C[fe].id);let ye=-1;for(let fe=0;fe<V.length;fe++)te.has(V[fe].id)&&(ye=fe);V.splice(ye+1,0,G)}return V}),x=R(()=>S.value.flatMap(C=>C.items||[])),_=da("rootRef");re(S,()=>{It(()=>{const C=_.value;C?.$el?.contains(document.activeElement)?C?.highlightFirstItem():C?.highlightSelected(void 0,!1)})});function T(C){C.children?.length&&(b.value.push({id:`history-${b.value.length}`,label:C.label,slot:C.slot,placeholder:C.placeholder,items:C.children}),o.value="",_.value?.highlightFirstItem())}function E(){b.value.length&&(b.value.pop(),o.value="",_.value?.highlightFirstItem())}function K(){o.value||E()}function X(C,F){F.children?.length?(C.preventDefault(),T(F)):F.onSelect?.(C)}return(C,F)=>(w(),U(he,null,[M(l(m),null,{default:I(({item:d,index:V,group:B})=>[M(fa,J(l(dn)(d),{custom:""}),{default:I(({active:G,...ie})=>[M(l(zn),{value:l(a).valueKey?l(pe)(d,l(a).valueKey):l(nt)(d,["matches","group","onSelect","labelHtml","suffixHtml","descriptionHtml","children"]),disabled:d.disabled,"as-child":"",onSelect:te=>X(te,d)},{default:I(()=>[M(fn,J(ie,{"data-slot":"item",class:c.value.item({class:[l(a).ui?.item,d.ui?.item,d.class],active:G||d.active})}),{default:I(()=>[N(C.$slots,d.slot||B?.slot||"item",{item:d,index:V,ui:c.value},()=>[N(C.$slots,d.slot?`${d.slot}-leading`:B?.slot?`${B.slot}-leading`:"item-leading",{item:d,index:V,ui:c.value},()=>[d.loading?(w(),L(Ae,{key:0,name:l(a).loadingIcon||l(r).ui.icons.loading,"data-slot":"itemLeadingIcon",class:q(c.value.itemLeadingIcon({class:[l(a).ui?.itemLeadingIcon,d.ui?.itemLeadingIcon],loading:!0}))},null,8,["name","class"])):d.icon?(w(),L(Ae,{key:1,name:d.icon,"data-slot":"itemLeadingIcon",class:q(c.value.itemLeadingIcon({class:[l(a).ui?.itemLeadingIcon,d.ui?.itemLeadingIcon],active:G||d.active}))},null,8,["name","class"])):d.avatar?(w(),L(pn,J({key:2,size:d.ui?.itemLeadingAvatarSize||l(a).ui?.itemLeadingAvatarSize||c.value.itemLeadingAvatarSize()},d.avatar,{"data-slot":"itemLeadingAvatar",class:c.value.itemLeadingAvatar({class:[l(a).ui?.itemLeadingAvatar,d.ui?.itemLeadingAvatar],active:G||d.active})}),null,16,["size","class"])):d.chip?(w(),L(hn,J({key:3,size:d.ui?.itemLeadingChipSize||l(a).ui?.itemLeadingChipSize||c.value.itemLeadingChipSize(),inset:"",standalone:""},d.chip,{"data-slot":"itemLeadingChip",class:c.value.itemLeadingChip({class:[l(a).ui?.itemLeadingChip,d.ui?.itemLeadingChip],active:G||d.active})}),null,16,["size","class"])):z("",!0)]),d.prefix||d.labelHtml||l(pe)(d,l(a).labelKey)||d.suffixHtml||d.suffix||i[d.slot?`${d.slot}-label`:B?.slot?`${B.slot}-label`:"item-label"]||l(pe)(d,l(a).descriptionKey)||i[d.slot?`${d.slot}-description`:B?.slot?`${B.slot}-description`:"item-description"]?(w(),U("span",{key:0,"data-slot":"itemWrapper",class:q(c.value.itemWrapper({class:[l(a).ui?.itemWrapper,d.ui?.itemWrapper]}))},[Q("span",{"data-slot":"itemLabel",class:q(c.value.itemLabel({class:[l(a).ui?.itemLabel,d.ui?.itemLabel],active:G||d.active}))},[N(C.$slots,d.slot?`${d.slot}-label`:B?.slot?`${B.slot}-label`:"item-label",{item:d,index:V,ui:c.value},()=>[d.prefix?(w(),U("span",{key:0,"data-slot":"itemLabelPrefix",class:q(c.value.itemLabelPrefix({class:[l(a).ui?.itemLabelPrefix,d.ui?.itemLabelPrefix]}))},ce(d.prefix),3)):z("",!0),d.labelHtml?(w(),U("span",{key:1,"data-slot":"itemLabelBase",class:q(c.value.itemLabelBase({class:[l(a).ui?.itemLabelBase,d.ui?.itemLabelBase],active:G||d.active})),innerHTML:d.labelHtml},null,10,Mi)):(w(),U("span",{key:2,"data-slot":"itemLabelBase",class:q(c.value.itemLabelBase({class:[l(a).ui?.itemLabelBase,d.ui?.itemLabelBase],active:G||d.active}))},ce(l(pe)(d,l(a).labelKey)),3)),d.suffixHtml?(w(),U("span",{key:3,"data-slot":"itemLabelSuffix",class:q(c.value.itemLabelSuffix({class:[l(a).ui?.itemLabelSuffix,d.ui?.itemLabelSuffix],active:G||d.active})),innerHTML:d.suffixHtml},null,10,Oi)):d.suffix?(w(),U("span",{key:4,"data-slot":"itemLabelSuffix",class:q(c.value.itemLabelSuffix({class:[l(a).ui?.itemLabelSuffix,d.ui?.itemLabelSuffix],active:G||d.active}))},ce(d.suffix),3)):z("",!0)])],2),d.descriptionHtml?(w(),U("span",{key:0,"data-slot":"itemDescription",class:q(c.value.itemDescription({class:[l(a).ui?.itemDescription,d.ui?.itemDescription]})),innerHTML:d.descriptionHtml},null,10,Ri)):l(pe)(d,l(a).descriptionKey)||i[d.slot?`${d.slot}-description`:B?.slot?`${B.slot}-description`:"item-description"]?(w(),U("span",{key:1,"data-slot":"itemDescription",class:q(c.value.itemDescription({class:[l(a).ui?.itemDescription,d.ui?.itemDescription]}))},[N(C.$slots,d.slot?`${d.slot}-description`:B?.slot?`${B.slot}-description`:"item-description",{item:d,index:V,ui:c.value},()=>[me(ce(l(pe)(d,l(a).descriptionKey)),1)])],2)):z("",!0)],2)):z("",!0),Q("span",{"data-slot":"itemTrailing",class:q(c.value.itemTrailing({class:[l(a).ui?.itemTrailing,d.ui?.itemTrailing]}))},[N(C.$slots,d.slot?`${d.slot}-trailing`:B?.slot?`${B.slot}-trailing`:"item-trailing",{item:d,index:V,ui:c.value},()=>[d.children&&d.children.length>0?(w(),L(Ae,{key:0,name:l(a).childrenIcon||l(r).ui.icons.chevronRight,"data-slot":"itemTrailingIcon",class:q(c.value.itemTrailingIcon({class:[l(a).ui?.itemTrailingIcon,d.ui?.itemTrailingIcon]}))},null,8,["name","class"])):d.kbds?.length?(w(),U("span",{key:1,"data-slot":"itemTrailingKbds",class:q(c.value.itemTrailingKbds({class:[l(a).ui?.itemTrailingKbds,d.ui?.itemTrailingKbds]}))},[(w(!0),U(he,null,_e(d.kbds,(te,ye)=>(w(),L(ia,J({key:ye,size:d.ui?.itemTrailingKbdsSize||l(a).ui?.itemTrailingKbdsSize||c.value.itemTrailingKbdsSize()},{ref_for:!0},typeof te=="string"?{value:te}:te),null,16,["size"]))),128))],2)):B?.highlightedIcon?(w(),L(Ae,{key:2,name:B.highlightedIcon,"data-slot":"itemTrailingHighlightedIcon",class:q(c.value.itemTrailingHighlightedIcon({class:[l(a).ui?.itemTrailingHighlightedIcon,d.ui?.itemTrailingHighlightedIcon]}))},null,8,["name","class"])):z("",!0)]),d.children?.length?z("",!0):(w(),L(l(qn),{key:0,"as-child":""},{default:I(()=>[M(Ae,{name:l(a).selectedIcon||l(r).ui.icons.check,"data-slot":"itemTrailingIcon",class:q(c.value.itemTrailingIcon({class:[l(a).ui?.itemTrailingIcon,d.ui?.itemTrailingIcon]}))},null,8,["name","class"])]),_:2},1024))],2)])]),_:2},1040,["class"])]),_:2},1032,["value","disabled","onSelect"])]),_:2},1040)]),_:3}),M(l(Vn),J({ref_key:"rootRef",ref:_,"data-slot":"root"},{...l(v),...C.$attrs},{"selection-behavior":l(a).selectionBehavior,class:c.value.root({class:[l(a).ui?.root,l(a).class]})}),{default:I(()=>[l(a).input?(w(),L(l(Kn),{key:0,modelValue:o.value,"onUpdate:modelValue":F[1]||(F[1]=d=>o.value=d),"as-child":""},{default:I(()=>[M(pa,J({variant:"none",size:l(a).size,placeholder:D.value,autofocus:l(a).autofocus,loading:l(a).loading,"loading-icon":l(a).loadingIcon,"trailing-icon":l(a).trailingIcon,icon:l(a).icon===!1?void 0:l(a).icon??l(r).ui.icons.search},typeof l(a).input=="object"?l(a).input:{},{"data-slot":"input",class:c.value.input({class:l(a).ui?.input}),onKeydown:mn(K,["backspace"])}),At({_:2},[b.value?.length&&(l(a).back||i.back)?{name:"leading",fn:I(()=>[N(C.$slots,"back",{ui:c.value},()=>[M(xe,J({size:l(a).size,icon:l(a).backIcon||l(r).ui.icons.arrowLeft,color:"neutral",variant:"link","aria-label":l(u)("commandPalette.back")},typeof l(a).back=="object"?l(a).back:{},{"data-slot":"back",class:c.value.back({class:l(a).ui?.back}),onClick:E}),null,16,["size","icon","aria-label","class"])])]),key:"0"}:void 0,l(a).close||i.close?{name:"trailing",fn:I(()=>[N(C.$slots,"close",{ui:c.value},()=>[l(a).close?(w(),L(xe,J({key:0,size:l(a).size,icon:l(a).closeIcon||l(r).ui.icons.close,color:"neutral",variant:"ghost","aria-label":l(u)("commandPalette.close")},typeof l(a).close=="object"?l(a).close:{},{"data-slot":"close",class:c.value.close({class:l(a).ui?.close}),onClick:F[0]||(F[0]=d=>s("update:open",!1))}),null,16,["size","icon","aria-label","class"])):z("",!0)])]),key:"1"}:void 0]),1040,["size","placeholder","autofocus","loading","loading-icon","trailing-icon","icon","class"])]),_:3},8,["modelValue"])):z("",!0),M(l(Nn),{"data-slot":"content",class:q(c.value.content({class:l(a).ui?.content}))},{default:I(()=>[S.value?.length?(w(),U("div",{key:0,role:"presentation","data-slot":"viewport",class:q(c.value.viewport({class:l(a).ui?.viewport}))},[l(a).virtualize?(w(),L(l(Hn),J({key:0,options:x.value,"text-content":d=>l(pe)(d,l(a).labelKey)},h.value),{default:I(({option:d,virtualItem:V})=>[M(l(f),{item:d,index:V.index},null,8,["item","index"])]),_:1},16,["options","text-content"])):(w(!0),U(he,{key:1},_e(S.value,d=>(w(),L(l(Un),{key:`group-${d.id}`,"data-slot":"group",class:q(c.value.group({class:l(a).ui?.group}))},{default:I(()=>[l(pe)(d,l(a).labelKey)||i[d.slot?`${d.slot}-group-label`:"group-label"]?(w(),L(l(is),{key:0,"data-slot":"label",class:q(c.value.label({class:l(a).ui?.label}))},{default:I(()=>[N(C.$slots,d.slot?`${d.slot}-group-label`:"group-label",{group:d,label:l(pe)(d,l(a).labelKey),ui:c.value},()=>[me(ce(l(pe)(d,l(a).labelKey)),1)])]),_:2},1032,["class"])):z("",!0),(w(!0),U(he,null,_e(d.items,(V,B)=>(w(),L(l(f),{key:`group-${d.id}-${B}`,item:V,index:B,group:d},null,8,["item","index","group"]))),128))]),_:2},1032,["class"]))),128))],2)):(w(),U("div",{key:1,"data-slot":"empty",class:q(c.value.empty({class:l(a).ui?.empty}))},[N(C.$slots,"empty",{searchTerm:o.value},()=>[me(ce(o.value?l(u)("commandPalette.noMatch",{searchTerm:o.value}):l(u)("commandPalette.noData")),1)])],2))]),_:3},8,["class"]),i.footer?(w(),U("div",{key:1,"data-slot":"footer",class:q(c.value.footer({class:l(a).ui?.footer}))},[N(C.$slots,"footer",{ui:c.value})],2)):z("",!0)]),_:3},16,["selection-behavior","class"])],64))}}),Pi={slots:{modal:"",input:""},variants:{fullscreen:{false:{modal:"sm:max-w-3xl h-full sm:h-[28rem]"}},size:{xs:{},sm:{},md:{},lg:{},xl:{}}},defaultVariants:{size:"md"}},ji=/^[^-]+.*-.*[^-]+$/,zi=/^[^_]+.*_.*[^_]+$/,aa=["arrowleft","arrowright","arrowup","arrowdown","tab","escape","enter","backspace"];function Xe(e){return/^[a-z]$/i.test(e)?`Key${e.toUpperCase()}`:/^\d$/.test(e)?`Digit${e}`:/^f\d+$/i.test(e)?e.toUpperCase():{space:"Space",enter:"Enter",escape:"Escape",tab:"Tab",backspace:"Backspace",delete:"Delete",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight"}[e.toLowerCase()]||e}function Ea(e,t={}){const n=t.chainDelay??800,s=H([]),i=()=>{s.value.splice(0,s.value.length)},a=ha(i,n);let o;const u=()=>{o=void 0,v.stop()},r=()=>{const g=o;if(u(),!g)return;const $=A.value.find(y=>y.key===g.shortcut.key&&!y.metaKey&&!y.ctrlKey&&!y.altKey&&!y.shiftKey);$?.enabled&&$.handler(g.event)},v=vn(()=>{r(),i()},n,{immediate:!1}),{macOS:h}=gn(),m=bn(),f=t.layoutIndependent??!1,c=aa.map(g=>Xe(g)),p=g=>{if(!g.key)return;const $=f||g.altKey,y=$?/^Key[A-Z]$/i.test(g.code):/^[a-z]{1}$/i.test(g.key),S=$?c.includes(g.code):aa.includes(g.key.toLowerCase());let x;if(s.value.push(f?g.code:g.key),s.value.length>=2){x=s.value.slice(-2).join("-");for(const _ of j.value)if(_.key===x){_.enabled?(u(),g.preventDefault(),_.handler(g)):r(),i();return}}r();for(const _ of A.value){if(f){if(g.code!==_.key)continue}else if(_.altKey&&g.altKey){if(g.code!==Xe(_.key))continue}else if(g.key.toLowerCase()!==_.key)continue;if(g.metaKey!==_.metaKey||g.ctrlKey!==_.ctrlKey||g.altKey!==_.altKey||(y||S||_.shiftKey||g.shiftKey&&(g.metaKey||g.ctrlKey))&&g.shiftKey!==_.shiftKey)continue;if(!_.metaKey&&!_.ctrlKey&&!_.altKey&&!_.shiftKey&&k.value.has(_.key)){_.enabled&&g.preventDefault(),o={shortcut:_,event:g},v.start();return}_.enabled&&(g.preventDefault(),_.handler(g)),i();return}a()},b=R(()=>{const g=m.value?.tagName,$=m.value?.contentEditable;return g==="INPUT"||g==="TEXTAREA"||$==="true"||$==="plaintext-only"?m.value?.name||!0:!1}),D=R(()=>Object.entries(ge(e)).map(([g,$])=>{if(!$)return null;let y;g.includes("-")&&g!=="-"&&!g.includes("_")&&!g.match(ji)?.length&&console.trace(`[Shortcut] Invalid key: "${g}"`),g.includes("_")&&g!=="_"&&!g.match(zi)?.length&&console.trace(`[Shortcut] Invalid key: "${g}"`);const S=g.includes("-")&&g!=="-"&&!g.includes("_");if(S)f?y={key:g.split("-").map(T=>Xe(T)).join("-"),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1}:y={key:g.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const _=g.toLowerCase().split("_").map(E=>E);let T=_.filter(E=>!["meta","command","ctrl","shift","alt","option"].includes(E)).join("_");f&&(T=Xe(T)),y={key:T,metaKey:_.includes("meta")||_.includes("command"),ctrlKey:_.includes("ctrl"),shiftKey:_.includes("shift"),altKey:_.includes("alt")||_.includes("option")}}if(y.chained=S,!h.value&&y.metaKey&&!y.ctrlKey&&(y.metaKey=!1,y.ctrlKey=!0),typeof $=="function"?y.handler=$:typeof $=="object"&&(y={...y,handler:$.handler}),!y.handler)return console.trace("[Shortcut] Invalid value"),null;let x=!0;return $.usingInput?typeof $.usingInput=="string"&&(x=b.value===$.usingInput):x=!b.value,y.enabled=x,y}).filter(Boolean)),j=R(()=>D.value.filter(g=>g.chained)),A=R(()=>D.value.filter(g=>!g.chained)),k=R(()=>new Set(j.value.map(g=>g.key.split("-")[0])));return yn("keydown",p)}const qi={__name:"UDashboardSearch",props:it({size:{type:null,required:!1},close:{type:[Boolean,Object],required:!1,default:!0},input:{type:[Boolean,Object],required:!1},shortcut:{type:String,required:!1,default:"meta_k"},fuse:{type:Object,required:!1},searchDelay:{type:Number,required:!1,default:100},colorMode:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},overlay:{type:Boolean,required:!1},transition:{type:Boolean,required:!1},content:{type:Object,required:!1},dismissible:{type:Boolean,required:!1},fullscreen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0},unmountOnHide:{type:Boolean,required:!1},icon:{type:[String,Boolean],required:!1,skipCheck:!0},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},childrenIcon:{type:null,required:!1},placeholder:{type:String,required:!1},autofocus:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},closeIcon:{type:null,required:!1},back:{type:[Boolean,Object],required:!1},backIcon:{type:null,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1},labelKey:{type:null,required:!1},descriptionKey:{type:null,required:!1},preserveGroupOrder:{type:Boolean,required:!1},virtualize:{type:[Boolean,Object],required:!1},groups:{type:Array,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{},searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:["update:open","update:searchTerm"],setup(e,{expose:t}){const n=e,s=Le(),i=Ee("dashboardSearch",n),a=ze(e,"open",{type:Boolean,default:!1}),o=ze(e,"searchTerm",{type:String,default:""});gt("dashboard:search:toggle",()=>{a.value=!a.value});const{t:u}=Ke(),r=la(),v=$e(),h=je(st(i,"size","icon","trailingIcon","selectedIcon","childrenIcon","placeholder","autofocus","loading","loadingIcon","close","closeIcon","back","backIcon","disabled","highlightOnHover","labelKey","descriptionKey","preserveGroupOrder","virtualize","searchDelay")),m=je(st(i,"overlay","transition","content","dismissible","fullscreen","modal","portal","unmountOnHide")),f=R(()=>i.input===!1?!1:Be(typeof i.input=="object"?i.input:{},{fixed:!0})),c=()=>nt(s,["content"]),p=R(()=>Be({},i.fuse,{fuseOptions:{useTokenSearch:!0}})),b=R(()=>Me({extend:Pi,...v.ui?.dashboardSearch||{}})({size:i.size,fullscreen:i.fullscreen})),D=R(()=>{const k=[];return k.push(...i.groups||[]),i.colorMode&&!r?.forced&&k.push({id:"theme",label:u("dashboardSearch.theme"),items:[{label:u("colorMode.system"),icon:v.ui.icons.system,active:r.preference==="system",onSelect:()=>{r.preference="system"}},{label:u("colorMode.light"),icon:v.ui.icons.light,active:r.preference==="light",onSelect:()=>{r.preference="light"}},{label:u("colorMode.dark"),icon:v.ui.icons.dark,active:r.preference==="dark",onSelect:()=>{r.preference="dark"}}]}),k}),j=da("commandPaletteRef");function A(k){k.disabled||(a.value=!1,o.value="")}return Ea({[i.shortcut]:{usingInput:!0,handler:()=>a.value=!a.value}}),t({commandPaletteRef:j}),(k,g)=>(w(),L(Lt,J({open:a.value,"onUpdate:open":g[2]||(g[2]=$=>a.value=$),title:l(i).title||l(u)("dashboardSearch.title"),description:l(i).description||l(u)("dashboardSearch.description")},l(m),{"data-slot":"modal",class:b.value.modal({class:[l(i).ui?.modal,l(i).class]})}),{content:I($=>[N(k.$slots,"content",Te(Ie($)),()=>[M(Fi,J({ref_key:"commandPaletteRef",ref:j,"search-term":o.value,"onUpdate:searchTerm":g[0]||(g[0]=y=>o.value=y)},l(h),{groups:D.value,fuse:p.value,input:f.value,ui:l(sa)(l(nt)(b.value,["modal"]),l(i).ui),"onUpdate:modelValue":A,"onUpdate:open":g[1]||(g[1]=y=>a.value=y)}),At({_:2},[_e(c(),(y,S)=>({name:S,fn:I(x=>[N(k.$slots,S,Te(Ie(x)))])}))]),1040,["search-term","groups","fuse","input","ui"])])]),_:3},16,["open","title","description","class"]))}},Ki={class:"flex items-center gap-2"},Ni={class:"space-y-4"},Hi={class:"grid grid-cols-2 gap-3"},Ui={id:"jb-products"},Vi=["value"],Wi={class:"flex items-center gap-2"},Gi={class:"text-xs font-medium text-muted uppercase tracking-wider"},Ji={class:"flex items-center justify-between pt-1"},Yi=ve({__name:"OpenInIdeSettingsModal",setup(e){const{prefs:t,settingsOpen:n,settingsContext:s}=ya(),i=Object.keys(Ht).map(c=>({label:Ht[c],value:c})),a=Object.keys(Ut).map(c=>({label:Ut[c],value:c})),o=R(()=>t.value.method==="auto"||t.value.method==="vscode"),u=R(()=>t.value.method!=="vscode"),r=R(()=>s.value.projectKey??null),v=R(()=>s.value.projectName||(r.value?`project ${r.value}`:""));function h(c){return R({get:()=>r.value?t.value[c][r.value]??"":"",set:p=>{const b=r.value;if(!b)return;const D={...t.value[c]};p.trim()?D[b]=p:delete D[b],t.value[c]=D}})}const m=h("projectRoots"),f=h("jetbrainsProjectNames");return(c,p)=>{const b=Ae,D=Jn,j=Yn,A=Qn,k=pa,g=Xn,$=Zn,y=es,S=Gn,x=xe,_=Lt;return w(),L(_,{open:l(n),"onUpdate:open":p[9]||(p[9]=T=>Pe(n)?n.value=T:null),ui:{content:"max-w-lg"}},{header:I(()=>[Q("div",Ki,[M(b,{name:"i-lucide-external-link",class:"size-5 text-primary"}),p[10]||(p[10]=Q("h2",{class:"text-base font-semibold"},"Open in IDE",-1)),M(D,{topic:"ide.open"})])]),body:I(()=>[Q("div",Ni,[p[14]||(p[14]=Q("p",{class:"text-sm text-muted"}," Click a source path anywhere in the dashboard to open it in your editor. These preferences are stored in this browser only. ",-1)),M(A,{label:"Method",name:"method",description:"Auto probes the JetBrains local server first, then falls back to a URL launch."},{default:I(()=>[M(j,{modelValue:l(t).method,"onUpdate:modelValue":p[0]||(p[0]=T=>l(t).method=T),items:l(i),class:"w-full"},null,8,["modelValue","items"])]),_:1}),M(A,{label:"Workspace root",name:"defaultRoot",description:"Absolute path to your local checkout — repo-relative paths are joined onto it (VS Code needs this)."},{default:I(()=>[M(k,{modelValue:l(t).defaultRoot,"onUpdate:modelValue":p[1]||(p[1]=T=>l(t).defaultRoot=T),placeholder:"/home/me/my-repo",class:"w-full"},null,8,["modelValue"])]),_:1}),l(o)?(w(),L(A,{key:0,label:"VS Code flavor",name:"vscodeScheme"},{default:I(()=>[M(j,{modelValue:l(t).vscodeScheme,"onUpdate:modelValue":p[2]||(p[2]=T=>l(t).vscodeScheme=T),items:l(a),class:"w-full"},null,8,["modelValue","items"])]),_:1})):z("",!0),l(u)?(w(),U(he,{key:1},[Q("div",Hi,[M(A,{label:"JetBrains product",name:"jetbrainsProduct",description:"e.g. idea, webstorm, pycharm."},{default:I(()=>[M(k,{modelValue:l(t).jetbrainsProduct,"onUpdate:modelValue":p[3]||(p[3]=T=>l(t).jetbrainsProduct=T),placeholder:"idea",list:"jb-products",class:"w-full"},null,8,["modelValue"]),Q("datalist",Ui,[(w(!0),U(he,null,_e(l(Bn),T=>(w(),U("option",{key:T,value:T},null,8,Vi))),128))])]),_:1}),M(A,{label:"Local server port",name:"jetbrainsPort",description:"Remote Control plugin."},{default:I(()=>[M(k,{modelValue:l(t).jetbrainsPort,"onUpdate:modelValue":p[4]||(p[4]=T=>l(t).jetbrainsPort=T),modelModifiers:{number:!0},type:"number",class:"w-full"},null,8,["modelValue"])]),_:1})]),M(A,{name:"jetbrainsHttpUsesRelativePath"},{default:I(()=>[Q("div",Wi,[M(g,{modelValue:l(t).jetbrainsHttpUsesRelativePath,"onUpdate:modelValue":p[5]||(p[5]=T=>l(t).jetbrainsHttpUsesRelativePath=T)},null,8,["modelValue"]),p[11]||(p[11]=Q("span",{class:"text-sm"},"Send a content-root-relative path to the local server",-1))])]),_:1})],64)):z("",!0),l(r)?(w(),U(he,{key:2},[M($),Q("p",Gi,"Override for "+ce(l(v)),1),M(A,{label:"Workspace root override",name:"projectRoot",description:"Use a different local folder for this project (monorepos, multiple checkouts)."},{default:I(()=>[M(k,{modelValue:l(m),"onUpdate:modelValue":p[6]||(p[6]=T=>Pe(m)?m.value=T:null),placeholder:l(t).defaultRoot||"/home/me/this-project",class:"w-full"},null,8,["modelValue","placeholder"])]),_:1}),l(u)?(w(),L(A,{key:0,label:"JetBrains project name",name:"projectJbName",description:"The open IDE project name for the jetbrains:// link."},{default:I(()=>[M(k,{modelValue:l(f),"onUpdate:modelValue":p[7]||(p[7]=T=>Pe(f)?f.value=T:null),placeholder:l(v),class:"w-full"},null,8,["modelValue","placeholder"])]),_:1})):z("",!0)],64)):z("",!0),l(u)?(w(),L(y,{key:3,color:"neutral",variant:"soft",icon:"i-lucide-info",title:"JetBrains prerequisites",description:"The jetbrains:// link needs JetBrains Toolbox. The local server needs the IDE Remote Control plugin with 'Allow unsigned requests', and browsers block it when this dashboard is served over HTTPS."})):z("",!0),Q("div",Ji,[M(S,{to:"ide-integration"},{default:I(()=>[...p[12]||(p[12]=[me("Learn more",-1)])]),_:1}),M(x,{color:"neutral",onClick:p[8]||(p[8]=T=>n.value=!1)},{default:I(()=>[...p[13]||(p[13]=[me("Done",-1)])]),_:1})])])]),_:1},8,["open"])}}}),Qi=Object.assign(Yi,{__name:"OpenInIdeSettingsModal"}),Xi={base:"fixed inset-0 flex overflow-hidden"},Zi={__name:"UDashboardGroup",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},storage:{type:String,required:!1,default:"cookie"},storageKey:{type:String,required:!1,default:"dashboard"},storageOptions:{type:Object,required:!1},persistent:{type:Boolean,required:!1,default:!0},unit:{type:String,required:!1,default:"%"}},setup(e){const n=Ee("dashboardGroup",e),s=ua(),i=$e(),a=R(()=>Me({extend:Xi,...i.ui?.dashboardGroup||{}})),o=H(!1),u=H(!1);return An({storage:n.storage,storageKey:n.storageKey,storageOptions:n.storageOptions,persistent:n.persistent,unit:n.unit,sidebarOpen:o,toggleSidebar:()=>{s.hooks.callHook("dashboard:sidebar:toggle")},sidebarCollapsed:u,collapseSidebar:r=>{s.hooks.callHook("dashboard:sidebar:collapse",r)},toggleSearch:()=>{s.hooks.callHook("dashboard:search:toggle")}}),(r,v)=>(w(),L(l(na),{as:l(n).as,class:q(a.value({class:[l(n).ui?.base,l(n).class]}))},{default:I(()=>[N(r.$slots,"default")]),_:3},8,["as","class"]))}},el=ve({__name:"ProjectsMenu",props:{collapsed:{type:Boolean}},async setup(e){let t,n;const s=Bt(),i=ma(),{data:a,refresh:o}=([t,n]=va(()=>ba("/api/projects/menu","$J9hspuqfo0")),t=await t,n(),t);wa(o);const u=R(()=>{const h=s.params.id;return h?parseInt(h):null}),r=R(()=>{if(!u.value||!a.value)return{label:"All projects",icon:"i-lucide-folder-open"};const h=a.value.find(m=>m.id===u.value);return h?{label:h.label||h.name,icon:"i-lucide-folder"}:{label:"All projects",icon:"i-lucide-folder-open"}}),v=R(()=>{const h=[{label:"All projects",icon:"i-lucide-folder-open",onSelect(){i.push("/projects")}}];return a.value&&a.value.length>0&&h.push(...a.value.map(m=>({label:m.label||m.name,icon:"i-lucide-folder",onSelect(){i.push(`/projects/${m.id}`)}}))),[h]});return(h,m)=>{const f=xe,c=oa;return w(),L(c,{items:l(v),content:{align:"center",collisionPadding:12},ui:{content:e.collapsed?"w-40":"w-(--reka-dropdown-menu-trigger-width)"}},{default:I(()=>[M(f,J({...l(r),label:e.collapsed?void 0:l(r)?.label,trailingIcon:e.collapsed?void 0:"i-lucide-chevrons-up-down"},{color:"neutral",variant:"ghost",block:"",square:e.collapsed,class:["data-[state=open]:bg-elevated",[!e.collapsed&&"py-2"]],ui:{trailingIcon:"text-dimmed"}}),null,16,["square","class"])]),_:1},8,["items","ui"])}}}),tl=Object.assign(el,{__name:"ProjectsMenu"});let mt=null,vt=!1,tt=!0;window.addEventListener("focus",()=>{tt=!0}),window.addEventListener("blur",()=>{tt=!1}),tt=document.hasFocus();let Fe=null;function al(e){const t=[];switch(e.type){case"run.finished":case"run.failed":case"run.failed.default_branch":case"flakiness.spike":case"perf.regression":{const n=e.projectName??`Project #${e.projectId}`,s=e.branch&&e.type!=="perf.regression"?` on ${e.branch}`:"";if(e.type==="run.finished"?t.push(`${n}${s}: ${e.status??"finished"}`):e.type==="run.failed"?t.push(`${n}${s}: ${e.failedTests??0}/${e.totalTests??0} tests failed`):e.type==="run.failed.default_branch"?t.push(`${n}: ${e.failedTests??0} failures on default branch`):e.type==="flakiness.spike"?t.push(`${n}: flakiness spike detected`):e.type==="perf.regression"&&t.push(`${n}: performance regression detected`),e.failedTests&&t.push(`${e.failedTests} failed, ${e.totalTests} total`),e.topFailures?.length){const[i,...a]=e.topFailures;t.push(a.length?`${i.title} +${a.length} more`:i.title)}break}case"cluster.new":t.push(`${e.projectName??`Project #${e.projectId}`}: new failure cluster`),e.signature&&t.push(e.signature);break;case"diagnosis.completed":case"diagnosis-completed":t.push(e.summary||e.rootCause||""),e.category&&t.push(`Category: ${e.category}`),e.confidence&&t.push(`Confidence: ${e.confidence}`);break}return t.filter(Boolean).join(`
2
- `)}function nl(e){return e.clusterId?`/failure-clusters/${e.clusterId}`:e.runId&&e.projectId?`/test-runs/${e.runId}`:null}let Ct=null;function Ma(e){if(!("Notification"in window)||Notification.permission!=="granted"||document.visibilityState==="visible"&&tt||(e.type==="diagnosis.completed"||e.type==="diagnosis-completed")&&Ct&&!Ct.value)return;if(Fe&&e.projectId!=null){const o=Fe.isEventSubscribed(e.projectId,e.type);if(console.log("[notify-stream] GATE: cookie filter",{projectId:e.projectId,type:e.type,subscribed:o,cookieProjects:Object.keys(Fe.stored.value.projects),matchingEvents:Fe.stored.value.projects[e.projectId]?.events??[]}),!o)return}const t=al(e);if(!t)return;const n=e.clusterId??e.runId??e.signature??e.type,s=`piwi-${e.type}-${n}`,i=new Notification("Piwi Dashboard",{body:t,tag:s,icon:"/logo.svg"});console.log("[notify-stream] notification fired",{type:e.type,projectId:e.projectId});const a=nl(e);a?i.onclick=()=>{window.focus(),window.location.href=a,i.close()}:i.onclick=()=>{window.focus(),i.close()}}async function sl(){if(Ne().public.demoMode)return!0;if(!("Notification"in window)||Notification.permission!=="granted")return!1;try{return(await $fetch("/api/channels")).channels.some(t=>t.type==="browser")}catch{return!1}}async function il(){const e=Ne();return e.public.demoMode?!0:e.public.authEnabled?sl():!0}function ll(){ts(e=>{e.scope==="notification"&&Ma(e.event)})}function ol(){mt=new EventSource("/api/notifications/stream"),mt.onmessage=e=>{try{const t=JSON.parse(e.data);Ma(t)}catch{}},mt.onerror=()=>{}}function rl(){if(vt)return;vt=!0,vt=!0;const{active:e}=as();Ct=e;const t=Ne();t.public.authEnabled||(Fe=ns()),il().then(n=>{n&&(t.public.demoMode?ll():ol())}),ca(()=>{})}const ul=()=>{const e=ma();return Ea({"g-h":()=>e.push("/"),"g-p":()=>e.push("/projects"),"g-a":()=>e.push("/analytics"),"g-s":()=>e.push("/settings")}),{}},cl=wn(ul),dl={class:"flex flex-col gap-1 w-full"},fl=10,zl=ve({__name:"default",async setup(e){let t,n;const s=Bt(),i=kn(),a=Ne(),o=H(!1),u=H(""),r=H(null),v=ha(async y=>{if(y.trim().length<2){r.value=null;return}try{r.value=await $fetch("/api/search",{query:{q:y.trim()}})}catch{r.value=null}},250);re(u,v),re(()=>o.value,y=>{y||(u.value="",r.value=null)});const{data:h,refresh:m}=([t,n]=va(()=>ba("/api/projects",{key:"projects",lazy:!0,default:()=>[]},"$mSkRqWqjLe")),t=await t,n(),t);wa(m),rl(),cl();const f=R(()=>{const y=s.path.match(/^\/projects\/(\d+)/);return y?.[1]?parseInt(y[1],10):null}),c=R(()=>{if(!h.value||h.value.length===0)return[];const y=Date.now()-fl*24*60*60*1e3,S=[...h.value].sort((K,X)=>{const C=(K.label||K.name).toLowerCase(),F=(X.label||X.name).toLowerCase();return C.localeCompare(F)}),x=S.filter(K=>K.latestRun&&new Date(K.latestRun.startTime).getTime()>y),_=S.filter(K=>!K.latestRun||new Date(K.latestRun.startTime).getTime()<=y);function T(K){const X=f.value!==null&&f.value===K.id,C=K.latestRun?.status==="running"||K.latestRun?.status==="initialising",F=K.latestRun?.status||"unknown",d=F==="passed"?"i-lucide-circle-check-big":F==="failed"?"i-lucide-circle-x":"i-lucide-circle",V=F==="passed"?"success":F==="failed"?"error":C?"info":"neutral";return{label:K.label||K.name,icon:C?"i-lucide-loader-circle":"i-lucide-circle",ui:C?{linkLeadingIcon:"animate-spin"}:void 0,badge:{icon:d,color:V},value:`project-${K.id}`,type:"link",to:`/projects/${K.id}`,active:X}}const E=[];return x.length>0&&(E.push({label:`Active (${x.length})`,type:"label"}),E.push(...x.map(T))),_.length>0&&(E.push({label:`Others (${_.length})`,type:"label"}),E.push(..._.map(T))),E}),p=R(()=>{const y=[{label:"GitHub",icon:"i-lucide-github",to:"https://github.com/piwitests/platform",target:"_blank"}];return y.unshift({label:"MCP server",icon:"i-lucide-bot",to:"/mcp",onSelect:()=>{o.value=!1}}),y.unshift({label:"API Docs",icon:"i-lucide-book-open",to:"/docs",onSelect:()=>{o.value=!1}}),[[{label:"Home",icon:"i-lucide-house",to:"/",onSelect:()=>{o.value=!1}},{label:"Analytics",icon:"i-lucide-chart-line",to:"/analytics",onSelect:()=>{o.value=!1}},{label:"Projects",icon:"i-lucide-folder",to:"/projects",onSelect:()=>{o.value=!1}},...c.value],y]}),b=y=>({label:typeof y.label=="string"?y.label:void 0,icon:y.icon,to:y.to,target:y.target,active:y.active,disabled:y.disabled,suffix:typeof y.badge=="string"?y.badge:void 0,children:y.children?.map(S=>b(S)),onSelect:y.onSelect}),D=R(()=>{const y="https://github.com/piwitests/platform/blob/main/application/app/pages",S="https://github.com/piwitests/platform/tree/main/application/app/pages",x=s.matched[s.matched.length-1]?.path??s.path;return x.includes(":")?S:`${y}${x==="/"?"/index":x}.vue`});function j(y){return y==="passed"?"i-lucide-circle-check-big":y==="failed"?"i-lucide-circle-x":y==="running"||y==="initialising"?"i-lucide-loader-circle":"i-lucide-circle"}const A=R(()=>{const y=[{id:"links",label:"Go to",items:p.value.flat().map(x=>b(x))},{id:"code",label:"Code",items:[{id:"source",label:"View page source",icon:"i-lucide-github",to:D.value,target:"_blank"}]}];if(f.value){const x=f.value,_=[["test-runs","Test runs","i-lucide-play"],["failure-clusters","Failure clusters","i-lucide-layers"],["flaky-tests","Flaky tests","i-lucide-shuffle"],["performance","Performance","i-lucide-trending-up"],["test-cases","Test cases","i-lucide-flask-conical"],["compare","Compare","i-lucide-git-compare-arrows"],["spec-health","Spec health","i-lucide-table-2"],["timeline","Timeline","i-lucide-git-commit-horizontal"]];y.unshift({id:"project-tabs",label:"This project",items:_.map(([T,E,K])=>({id:`project-tab-${T}`,label:E,icon:K,to:`/projects/${x}?tab=${T}`,onSelect:()=>{o.value=!1}}))})}if(!r.value)return y;const S=[];return r.value.projects.length>0&&S.push({id:"search-projects",label:"Projects",ignoreFilter:!0,items:r.value.projects.map(x=>({id:`project-${x.id}`,label:x.label||x.name,description:x.label&&x.label!==x.name?x.name:void 0,icon:"i-lucide-folder",to:`/projects/${x.id}`}))}),r.value.runs.length>0&&S.push({id:"search-runs",label:"Test runs",ignoreFilter:!0,items:r.value.runs.map(x=>({id:`run-${x.id}`,label:x.label?`Run #${x.id} — ${x.label}`:`Run #${x.id}`,description:x.projectLabel||x.projectName,suffix:x.status,icon:j(x.status),to:`/test-runs/${x.id}`}))}),r.value.cases.length>0&&S.push({id:"search-cases",label:"Test cases",ignoreFilter:!0,items:r.value.cases.map(x=>({id:`case-${x.id}`,label:x.title,description:`${x.projectLabel||x.projectName} · ${x.filePath}`,icon:"i-lucide-flask-conical",to:`/test-cases/${x.id}`}))}),[...S,...y]}),k=a.public.demoMode,g=a.public.demoDataVersion,$=a.public.appVersion;return Dt(async()=>{if(k&&g){const y=await Sn();y!==null&&y!==g&&i.add({title:"New demo data available",description:'The demo seed data has been updated since your last visit. Click "Refresh" to reload with the latest data.',duration:0,color:"warning",actions:[{label:"Refresh",color:"warning",onClick:()=>{_n().then(()=>window.location.reload())}},{label:"Dismiss",color:"neutral",variant:"ghost"}]})}}),(y,S)=>{const x=os,_=Dn,T=cs,E=fa,K=Ps,X=qi,C=Qi,F=Zi;return w(),L(F,{unit:"rem",style:{top:"var(--demo-banner-height, 0px)",height:"calc(100dvh - var(--demo-banner-height, 0px))"}},{default:I(()=>[S[2]||(S[2]=Q("a",{href:"#main-content",class:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:rounded-md focus:bg-primary focus:px-3 focus:py-2 focus:text-sm focus:font-medium focus:text-inverted focus:shadow-lg focus:outline-2 focus:outline-primary"}," Skip to main content ",-1)),M(K,{id:"default",open:l(o),"onUpdate:open":S[0]||(S[0]=d=>Pe(o)?o.value=d:null),collapsible:"",resizable:"",width:"20",class:"bg-elevated/25",ui:{root:"min-h-full",footer:"lg:border-t lg:border-default"}},{header:I(({collapsed:d})=>[M(tl,{collapsed:d},null,8,["collapsed"])]),default:I(({collapsed:d})=>[M(x,{collapsed:d,class:"bg-transparent ring-default"},null,8,["collapsed"]),(w(),L(_,{key:l(f)??void 0,collapsed:d,items:l(p)[0],orientation:"vertical",tooltip:"",popover:""},null,8,["collapsed","items"])),M(_,{collapsed:d,items:l(p)[1],orientation:"vertical",tooltip:"",class:"mt-auto"},null,8,["collapsed","items"])]),footer:I(({collapsed:d})=>[Q("div",dl,[M(T,{collapsed:d},null,8,["collapsed"]),d?z("",!0):(w(),L(E,{key:0,to:"/settings/about",class:"text-xs text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 text-center",title:"View version and build info"},{default:I(()=>[me(" v"+ce(l($)),1)]),_:1}))])]),_:1},8,["open"]),M(X,{"search-term":l(u),"onUpdate:searchTerm":S[1]||(S[1]=d=>Pe(u)?u.value=d:null),groups:l(A),"preserve-group-order":!!l(r)},null,8,["search-term","groups","preserve-group-order"]),S[3]||(S[3]=Q("span",{id:"main-content",tabindex:"-1",class:"sr-only"},"Main content",-1)),N(y.$slots,"default"),M(C)]),_:3})}}});export{zl as default};
@@ -1 +0,0 @@
1
- import{d as W,o as r,f as m,aI as O,k as e,g as u,T as b,v as x,q as n,h as l,m as P,E as M,l as D,j as v,c as _,t as p,i as E,F as L,y as C,r as N,_ as U}from"./B8fs6GU9.js";import{H as k}from"./3SnTawZW.js";import{u as H}from"./DWzdeQ3Z.js";const G="https://piwitests.github.io";function w(t){return`${G}/${t.replace(/^\//,"")}`}const B=W({__name:"DocLink",props:{to:{},noIcon:{type:Boolean}},setup(t){const a=t,h=l(()=>w(a.to));return(s,i)=>{const A=x,I=O;return r(),m(I,{to:e(h),target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 text-primary hover:underline"},{default:u(()=>[b(s.$slots,"default",{},()=>[i[0]||(i[0]=P("Learn more",-1))]),t.noIcon?n("",!0):(r(),m(A,{key:0,name:"i-lucide-external-link",class:"w-3.5 h-3.5 shrink-0"}))]),_:3},8,["to"])}}}),X=Object.assign(B,{__name:"DocLink"}),y={PIWI_SITE_URL:{description:"Public base URL of the instance (e.g. https://piwi.example.com). Used to build links in emails.",category:"general",type:"url",example:"https://piwi.example.com",notes:"When unset, links in emails point to http://localhost:3000 and OAuth callback URLs are inferred from the request host — set it when running behind a reverse proxy."},PIWI_SECRET_KEY:{description:"Master key for AES-256-GCM encryption of secrets stored in the database (AI API keys, webhook/SCM secrets). Strongly recommended in production.",category:"general",secret:!0,example:"a 64-char random hex string",notes:"Falls back to an insecure built-in development key (with a startup warning in production). Generate one with `node -e \"console.log(require('node:crypto').randomBytes(32).toString('hex'))\"`."},PIWI_BUILD_DIR:{description:"Overrides the Nuxt build output directory. Used by the test harness to isolate parallel builds.",category:"build",runtimeOnly:!0,type:"path"},PIWI_BUILD_SHA:{description:"Commit SHA baked into the build for provenance. Shown on Settings → About. Set as a build-time arg.",category:"build",runtimeOnly:!0},PIWI_DATABASE_PATH:{description:"Path to the SQLite database file (used when PIWI_DATABASE_URL is not set).",category:"database",type:"path",default:".data/piwi.db",relevantWhen:{PIWI_DATABASE_URL:""}},PIWI_DATABASE_URL:{description:"PostgreSQL connection string. When set, PostgreSQL is used instead of SQLite and migrations run automatically on startup.",category:"database",secret:!0,example:"postgres://piwi:piwi@db:5432/piwi",docs:"deployment#docker-compose-with-postgresql"},PIWI_RETENTION_DAYS:{description:"Days of test-run history the nightly retention sweep keeps. Unset or 0 disables automatic run pruning (the default — pruning is opt-in).",category:"database",type:"number",min:0,docs:"storage#data-retention"},PIWI_RETENTION_NOTIFICATION_DAYS:{description:"Days to keep sent/failed notification outbox rows before the nightly sweep prunes them (default 30; 0 keeps them forever).",category:"database",type:"number",default:"30",min:0},PIWI_RETENTION_DIAGNOSIS_VERSIONS:{description:"AI-diagnosis history versions kept per diagnosis by the nightly sweep (default 20; 0 disables capping).",category:"database",type:"number",default:"20",min:0},PIWI_STORAGE_TYPE:{description:'Storage backend for test artifacts (HTML reports, traces, attachments): "local" or "s3".',category:"storage",type:"enum",enum:["local","s3"],default:"local",notes:"Only the exact value `s3` selects S3; any other value falls back to local storage."},PIWI_STORAGE_PATH:{description:'Directory for local file storage (when PIWI_STORAGE_TYPE is "local").',category:"storage",type:"path",default:".data/storage",relevantWhen:{PIWI_STORAGE_TYPE:"local"}},PIWI_S3_BUCKET:{description:'S3 bucket name for artifact storage (when PIWI_STORAGE_TYPE is "s3").',category:"storage",relevantWhen:{PIWI_STORAGE_TYPE:"s3"},requiredWhen:{PIWI_STORAGE_TYPE:"s3"},docs:"storage#s3-compatible-storage"},PIWI_S3_REGION:{description:'S3 bucket region (when PIWI_STORAGE_TYPE is "s3").',category:"storage",example:"us-east-1",relevantWhen:{PIWI_STORAGE_TYPE:"s3"},requiredWhen:{PIWI_STORAGE_TYPE:"s3"}},PIWI_S3_ACCESS_KEY_ID:{description:"S3 access key id with write access to the bucket.",category:"storage",secret:!0,relevantWhen:{PIWI_STORAGE_TYPE:"s3"},requiredWhen:{PIWI_STORAGE_TYPE:"s3"}},PIWI_S3_SECRET_ACCESS_KEY:{description:"S3 secret access key.",category:"storage",secret:!0,relevantWhen:{PIWI_STORAGE_TYPE:"s3"},requiredWhen:{PIWI_STORAGE_TYPE:"s3"}},PIWI_S3_ENDPOINT:{description:"Custom endpoint for S3-compatible services (MinIO, R2, Spaces).",category:"storage",type:"url",example:"https://minio.example.com",relevantWhen:{PIWI_STORAGE_TYPE:"s3"}},PIWI_S3_FORCE_PATH_STYLE:{description:"Use path-style addressing (required by some S3-compatible services).",category:"storage",type:"boolean",relevantWhen:{PIWI_STORAGE_TYPE:"s3"},notes:"Defaults to on when a custom endpoint is set, off otherwise; only the exact value `false` turns it off explicitly."},PIWI_AUTH_ENABLED:{description:'Set to "true" to enable role-based access control and API keys. Off by default.',category:"auth",type:"boolean",default:"false"},PIWI_AUTH_SECRET:{description:"Secret used to sign/encrypt session cookies. Required when PIWI_AUTH_ENABLED is true.",category:"auth",secret:!0,relevantWhen:{PIWI_AUTH_ENABLED:"true"},requiredWhen:{PIWI_AUTH_ENABLED:"true"},notes:"The server refuses to start when auth is enabled and this is unset."},PIWI_OAUTH_GOOGLE_CLIENT_ID:{description:"Google OAuth client id (optional single sign-on).",category:"oauth",relevantWhen:{PIWI_AUTH_ENABLED:"true"},requiredWhen:{PIWI_OAUTH_GOOGLE_CLIENT_SECRET:"*"},docs:"authentication#oauth-google-github"},PIWI_OAUTH_GOOGLE_CLIENT_SECRET:{description:"Google OAuth client secret.",category:"oauth",secret:!0,relevantWhen:{PIWI_AUTH_ENABLED:"true"},requiredWhen:{PIWI_OAUTH_GOOGLE_CLIENT_ID:"*"}},PIWI_OAUTH_GITHUB_CLIENT_ID:{description:"GitHub OAuth client id (optional single sign-on).",category:"oauth",relevantWhen:{PIWI_AUTH_ENABLED:"true"},requiredWhen:{PIWI_OAUTH_GITHUB_CLIENT_SECRET:"*"},docs:"authentication#oauth-google-github"},PIWI_OAUTH_GITHUB_CLIENT_SECRET:{description:"GitHub OAuth client secret.",category:"oauth",secret:!0,relevantWhen:{PIWI_AUTH_ENABLED:"true"},requiredWhen:{PIWI_OAUTH_GITHUB_CLIENT_ID:"*"}},PIWI_OAUTH_ALLOWED_DOMAINS:{description:"Comma-separated verified email domains allowed to sign in via OAuth (all providers).",category:"oauth",type:"list",example:"example.com,corp.example.com",relevantWhen:{PIWI_AUTH_ENABLED:"true"},notes:"Only verified emails in these domains are accepted. Empty means no domain restriction."},PIWI_OAUTH_GITHUB_ALLOWED_ORGS:{description:"Comma-separated GitHub org logins a user must belong to (requests read:org scope).",category:"oauth",type:"list",relevantWhen:{PIWI_OAUTH_GITHUB_CLIENT_ID:"*"}},PIWI_AI_PROVIDER:{description:'AI provider for failure diagnosis: "anthropic" or "openai" (OpenAI-compatible).',category:"ai",type:"enum",enum:["anthropic","openai"]},PIWI_AI_API_KEY:{description:"API key for the diagnosis provider. Takes precedence over the DB-stored key.",category:"ai",secret:!0,relevantWhen:{PIWI_AI_PROVIDER:"*"},requiredWhen:{PIWI_AI_PROVIDER:"anthropic"},notes:"Optional for OpenAI-compatible providers that need no key (e.g. a local model)."},PIWI_AI_MODEL:{description:"Diagnosis model name (default: claude-opus-4-8 for Anthropic).",category:"ai",example:"claude-opus-4-8",relevantWhen:{PIWI_AI_PROVIDER:"*"},requiredWhen:{PIWI_AI_PROVIDER:"openai"}},PIWI_AI_BASE_URL:{description:"Base URL for OpenAI-compatible providers (e.g. http://localhost:11434/v1).",category:"ai",type:"url",example:"http://localhost:11434/v1",relevantWhen:{PIWI_AI_PROVIDER:"*"},requiredWhen:{PIWI_AI_PROVIDER:"openai"}},PIWI_AI_AUTO_DIAGNOSE:{description:'Set to "true" to auto-diagnose new failure clusters when a run finishes.',category:"ai",type:"boolean",default:"false",relevantWhen:{PIWI_AI_PROVIDER:"*"}},PIWI_AI_AUTO_DIAGNOSE_MAX:{description:"Max clusters auto-diagnosed per finished run (budget cap; default 3).",category:"ai",type:"number",default:"3",min:1,relevantWhen:{PIWI_AI_AUTO_DIAGNOSE:"true"}},PIWI_AI_RESEARCH_PROVIDER:{description:"Provider for the optional research (pre-analysis) stage. Falls back to PIWI_AI_PROVIDER.",category:"ai",type:"enum",enum:["anthropic","openai"],relevantWhen:{PIWI_AI_RESEARCH_MODEL:"*"}},PIWI_AI_RESEARCH_MODEL:{description:"Cheaper/faster model for the research stage. Empty disables the two-stage pipeline.",category:"ai",relevantWhen:{PIWI_AI_PROVIDER:"*"}},PIWI_AI_RESEARCH_BASE_URL:{description:"Base URL for the research-stage provider. Falls back to PIWI_AI_BASE_URL.",category:"ai",type:"url",relevantWhen:{PIWI_AI_RESEARCH_MODEL:"*"}},PIWI_AI_RESEARCH_API_KEY:{description:"API key for the research-stage provider. Falls back to PIWI_AI_API_KEY.",category:"ai",secret:!0,relevantWhen:{PIWI_AI_RESEARCH_MODEL:"*"}},PIWI_AI_EMBEDDING_PROVIDER:{description:"Provider for embeddings (semantic failure clustering). Falls back to PIWI_AI_PROVIDER.",category:"ai",type:"enum",enum:["openai"],relevantWhen:{PIWI_AI_EMBEDDING_MODEL:"*"},notes:'Must resolve to an OpenAI-compatible provider — Anthropic has no embeddings API — so the fallback only helps when the main provider is "openai".'},PIWI_AI_EMBEDDING_MODEL:{description:"Embedding model name (e.g. text-embedding-3-small).",category:"ai",example:"text-embedding-3-small",relevantWhen:{PIWI_AI_PROVIDER:"*"},notes:"Empty disables semantic clustering (and the embedding fallbacks)."},PIWI_AI_EMBEDDING_BASE_URL:{description:"Base URL for the embedding provider. Falls back to PIWI_AI_BASE_URL.",category:"ai",type:"url",relevantWhen:{PIWI_AI_EMBEDDING_MODEL:"*"}},PIWI_AI_EMBEDDING_API_KEY:{description:"API key for the embedding provider. Falls back to PIWI_AI_API_KEY.",category:"ai",secret:!0,relevantWhen:{PIWI_AI_EMBEDDING_MODEL:"*"}},PIWI_AI_MAX_SAMPLE_ERROR_CHARS:{description:"Max characters of raw error text (per error block).",category:"ai-limits",type:"number",default:"10000",min:200,max:5e4},PIWI_AI_MAX_SCM_PATCH_BUDGET:{description:"Total characters of diff patches across changed files.",category:"ai-limits",type:"number",default:"15000",min:0,max:5e4},PIWI_AI_MAX_AFFECTED_TESTS:{description:"Max affected tests listed in the diagnosis context.",category:"ai-limits",type:"number",default:"30",min:1,max:200},PIWI_AI_MAX_STEPS:{description:"Max recent test steps included.",category:"ai-limits",type:"number",default:"50",min:1,max:200},PIWI_AI_MAX_CONSOLE_ENTRIES:{description:"Max console error/warning entries included.",category:"ai-limits",type:"number",default:"30",min:0,max:200},PIWI_AI_MAX_CONSOLE_ENTRY_CHARS:{description:"Max characters per console entry.",category:"ai-limits",type:"number",default:"1000",min:50,max:5e3},PIWI_AI_MAX_NETWORK_REQUESTS:{description:"Max failed network requests included.",category:"ai-limits",type:"number",default:"25",min:0,max:200},PIWI_AI_MAX_ARIA_SNAPSHOT_CHARS:{description:"Max characters of the page ARIA snapshot.",category:"ai-limits",type:"number",default:"12000",min:0,max:5e4},PIWI_AI_MAX_TEST_SOURCE_CHARS:{description:"Max characters of the test source snippet.",category:"ai-limits",type:"number",default:"8000",min:0,max:5e4},PIWI_AI_MAX_SOURCE_FILES:{description:"Max full source files fetched from SCM to ground patches (0 disables).",category:"ai-limits",type:"number",default:"4",min:0,max:20},PIWI_AI_MAX_SOURCE_FILE_CHARS:{description:"Max characters per fetched full source file.",category:"ai-limits",type:"number",default:"12000",min:0,max:5e4},PIWI_AI_MAX_SERVER_LOG_ENTRIES:{description:"Max backend server log entries (from X-Piwi-Logs header) included.",category:"ai-limits",type:"number",default:"50",min:0,max:200},PIWI_AI_MAX_SERVER_LOG_ENTRY_CHARS:{description:"Max characters per backend server log entry.",category:"ai-limits",type:"number",default:"1000",min:50,max:5e3},PIWI_AI_MAX_IMAGES:{description:"Max screenshots auto-included in the diagnosis context.",category:"ai-limits",type:"number",default:"5",min:0,max:20},PIWI_AI_MAX_PASSED_PEERS:{description:"Max peer tests in the same file listed when they passed.",category:"ai-limits",type:"number",default:"20",min:0,max:100},PIWI_AI_MAX_CONSOLE_WINDOW:{description:"Max console entries of any type in the window before failure.",category:"ai-limits",type:"number",default:"50",min:0,max:200},PIWI_AI_SLOW_REQUEST_MS:{description:"Network request duration (ms) threshold for flagging as slow.",category:"ai-limits",type:"number",default:"1500",min:100,max:3e4},PIWI_AI_MAX_TRACE_ACTIONS:{description:"Max actions extracted from trace ZIP for failing-action context (0 disables).",category:"ai-limits",type:"number",default:"10",min:0,max:50},PIWI_AI_TRACE_DOM_CHARS:{description:"Max characters for the trace-derived DOM/ARIA excerpt in failing-action context.",category:"ai-limits",type:"number",default:"6000",min:0,max:2e4},PIWI_AI_MAX_TRACE_STACK_FRAMES:{description:"Max call-stack frames (with source windows) from the trace call-stack section (0 disables).",category:"ai-limits",type:"number",default:"10",min:0,max:50},PIWI_AI_MAX_TRACE_NETWORK_REQUESTS:{description:"Max requests included from the trace network stream (0 disables).",category:"ai-limits",type:"number",default:"20",min:0,max:200},PIWI_AI_MAX_DOM_SNAPSHOT_CHARS:{description:"Max characters of the failure-time DOM snapshot rendered from the trace (0 disables).",category:"ai-limits",type:"number",default:"8000",min:0,max:5e4},PIWI_AI_IMAGE_MAX_EDGE:{description:"Screenshots are downscaled to at most this many pixels on the long edge before being sent.",category:"ai-limits",type:"number",default:"1920",min:512,max:8192},PIWI_INGEST_MAX_CONSOLE_ENTRIES:{description:"Max console entries stored per test execution.",category:"ingest",type:"number",default:"200",min:10,max:5e3},PIWI_INGEST_MAX_CONSOLE_ENTRY_CHARS:{description:"Max characters stored per console entry.",category:"ingest",type:"number",default:"2000",min:200,max:2e4},PIWI_INGEST_MAX_STEPS:{description:"Max test steps stored per execution.",category:"ingest",type:"number",default:"500",min:20,max:5e3},PIWI_INGEST_MAX_STEP_EVENTS:{description:"Max step events stored per execution.",category:"ingest",type:"number",default:"1000",min:20,max:1e4},PIWI_INGEST_MAX_ARIA_CHARS:{description:"Max characters of the ARIA snapshot stored per failing execution.",category:"ingest",type:"number",default:"100000",min:1e3,max:1e6},PIWI_INGEST_MAX_ERROR_CHARS:{description:"Max characters of error text stored per execution (head and tail are kept).",category:"ingest",type:"number",default:"20000",min:1e3,max:1e5},PIWI_INGEST_MAX_SAMPLE_ERROR_CHARS:{description:"Max characters of the sample error stored per failure cluster.",category:"ingest",type:"number",default:"50000",min:1e3,max:2e5},PIWI_INGEST_MAX_TEST_SOURCE_CHARS:{description:"Max characters of the test source snippet stored per failing execution.",category:"ingest",type:"number",default:"50000",min:1e3,max:2e5},PIWI_INGEST_MAX_SOURCE_FRAMES:{description:"Max source stack frames stored per failing execution.",category:"ingest",type:"number",default:"8",min:1,max:32},PIWI_INGEST_MAX_SOURCE_FRAME_CHARS:{description:"Max characters per stored source frame snippet.",category:"ingest",type:"number",default:"4000",min:500,max:2e4},PIWI_AUTO_MARKERS:{description:"Automatically create a timeline marker when a run’s environment, Playwright version, or reporter version changes from the previous run (default: enabled). Set to false to disable.",category:"markers",type:"boolean",default:"true",docs:"timeline-markers",notes:"Only the exact value `false` disables auto-markers."},PIWI_TEST_LOGS_DISABLED:{description:"Disable X-Piwi-Logs response header emission (default: auto-disabled in production, enabled in development).",category:"testing",type:"boolean",docs:"backend-logs",notes:"Unset: capture is on in development and off in production builds; `true` forces it off everywhere, `false` forces it on even in production."},PIWI_CLUSTER_SIMILARITY_THRESHOLD:{description:"Cosine similarity (0–1) above which two failure embeddings merge into one cluster.",category:"clustering",type:"number",default:"0.92",min:0,max:1,relevantWhen:{PIWI_AI_EMBEDDING_MODEL:"*"},notes:"Must be greater than 0 and at most 1; invalid values fall back to the default."},PIWI_CLUSTER_SUGGEST_THRESHOLD:{description:"Similarity at which a failure is suggested (not auto-merged) as related to a cluster.",category:"clustering",type:"number",default:"0.80",min:0,max:1,relevantWhen:{PIWI_AI_EMBEDDING_MODEL:"*"},notes:"Capped at the merge threshold."},PIWI_SMTP_HOST:{description:"SMTP server hostname for outbound email.",category:"smtp",example:"smtp.example.com"},PIWI_SMTP_PORT:{description:"SMTP port (default 587; 465 for implicit TLS).",category:"smtp",type:"number",default:"587",min:1,max:65535,relevantWhen:{PIWI_SMTP_HOST:"*"}},PIWI_SMTP_USER:{description:"SMTP username.",category:"smtp",relevantWhen:{PIWI_SMTP_HOST:"*"},requiredWhen:{PIWI_SMTP_HOST:"*"}},PIWI_SMTP_PASS:{description:"SMTP password. Never returned by the API.",category:"smtp",secret:!0,relevantWhen:{PIWI_SMTP_HOST:"*"},requiredWhen:{PIWI_SMTP_HOST:"*"}},PIWI_SMTP_FROM:{description:"From address for outbound email (e.g. noreply@example.com).",category:"smtp",example:"noreply@example.com",relevantWhen:{PIWI_SMTP_HOST:"*"},requiredWhen:{PIWI_SMTP_HOST:"*"}},PIWI_SMTP_FROM_NAME:{description:"Display name for the from address (optional).",category:"smtp",default:"Piwi Dashboard",relevantWhen:{PIWI_SMTP_HOST:"*"}},PIWI_SMTP_SECURE:{description:'Set to "true" for implicit TLS on port 465 (default false → STARTTLS/plain).',category:"smtp",type:"boolean",relevantWhen:{PIWI_SMTP_HOST:"*"},notes:"Defaults to on when the port is 465, off otherwise."},PIWI_WASTED_WAIT_PATTERNS:{description:"Glob patterns (comma or newline separated) defining which wait steps count as wasted time. Locks the UI when set.",category:"wasted-time",type:"list",default:"Wait for timeout*,*waitForTimeout*",notes:"Case-insensitive globs (`*` and `?`) matched against a wait step’s title or source location. Use `*` to count every wait."},PIWI_DEMO_MODE:{description:'Set to "true" to build the standalone client-side demo SPA (no server).',category:"demo",runtimeOnly:!0,type:"boolean"},PIWI_BASE_URL:{description:"Base URL the metadata test spec targets (defaults to http://localhost:3000).",category:"test",runtimeOnly:!0},PIWI_POSTGRES_TEST_URL:{description:"PostgreSQL connection string used by the Postgres test suite.",category:"test",runtimeOnly:!0,secret:!0},PIWI_S3_TEST_BUCKET:{description:"S3 bucket for the storage integration tests.",category:"test",runtimeOnly:!0},PIWI_S3_TEST_REGION:{description:"Region for the S3 storage integration tests.",category:"test",runtimeOnly:!0},PIWI_S3_TEST_ACCESS_KEY_ID:{description:"Access key id for the S3 storage integration tests.",category:"test",runtimeOnly:!0,secret:!0},PIWI_S3_TEST_SECRET_ACCESS_KEY:{description:"Secret access key for the S3 storage integration tests.",category:"test",runtimeOnly:!0,secret:!0},PIWI_S3_TEST_ENDPOINT:{description:"Custom endpoint for the S3 storage integration tests.",category:"test",runtimeOnly:!0},PIWI_MAILPIT_URL:{description:"Mailpit base URL; when set, the email/notification E2E tests run against it.",category:"test",runtimeOnly:!0},PIWI_MAILPIT_SMTP_PORT:{description:"SMTP port the email E2E tests send to (Mailpit).",category:"test",runtimeOnly:!0},PIWI_EMAIL_SERVER_URL:{description:"Base URL the email test spec targets.",category:"test",runtimeOnly:!0}};function f(t){return y[t]}function oe(t){return Object.keys(y).filter(a=>y[a].category===t)}const Y={key:0,class:"font-medium mb-1"},V={class:"text-muted"},q={key:1,class:"mt-2 space-y-1"},F={class:"text-muted text-xs"},K={class:"flex flex-col gap-1.5"},$=["title","onClick"],Q={class:"block font-mono text-xs bg-elevated rounded px-1.5 py-0.5 select-all cursor-pointer group-hover:ring-1 ring-default"},j={key:0,class:"block text-muted text-[11px] mt-0.5"},z={key:2,class:"mt-2 flex flex-col gap-1"},Z=W({__name:"HelpHint",props:{topic:{},title:{},text:{},doc:{},envVars:{},size:{}},setup(t){const a=t,{copy:h}=H(),s=l(()=>a.topic?k[a.topic]:null),i=l(()=>a.title??s.value?.title),A=l(()=>a.text??s.value?.text??""),I=l(()=>a.doc??s.value?.doc),d=l(()=>a.envVars??s.value?.envVars),g=N(!1);return(J,c)=>{const T=U,S=X,R=M;return r(),m(R,{open:e(g),"onUpdate:open":c[0]||(c[0]=o=>D(g)?g.value=o:null),ui:{content:"max-w-xs p-3 text-sm"}},{content:u(()=>[e(i)?(r(),_("p",Y,p(e(i)),1)):n("",!0),E("p",V,p(e(A)),1),e(d)?.length?(r(),_("div",q,[E("p",F,"Environment variable"+p(e(d).length>1?"s":"")+":",1),E("div",K,[(r(!0),_(L,null,C(e(d),o=>(r(),_("button",{key:o,type:"button",class:"group text-left",title:`Click to copy ${o}`,onClick:ee=>e(h)(o,{toast:`Copied ${o}`})},[E("code",Q,p(o),1),e(f)(o).description?(r(),_("span",j,p(e(f)(o).description),1)):n("",!0)],8,$))),128))])])):n("",!0),e(I)||e(d)?.length?(r(),_("div",z,[e(I)?(r(),m(S,{key:0,to:e(I)},{default:u(()=>[...c[1]||(c[1]=[P("Learn more",-1)])]),_:1},8,["to"])):n("",!0),e(d)?.length?(r(),m(S,{key:1,to:"configuration"},{default:u(()=>[...c[2]||(c[2]=[P("Configuration reference",-1)])]),_:1})):n("",!0)])):n("",!0)]),default:u(()=>[v(T,{size:t.size??"xs",variant:"ghost",color:"neutral",icon:"i-lucide-circle-help","aria-label":e(i)?`Help: ${e(i)}`:"Help",title:"What is this?",class:"text-muted hover:text-default align-middle"},null,8,["size","aria-label"])]),_:1},8,["open"])}}}),ie=Object.assign(Z,{__name:"HelpHint"});export{ie as _,X as a,w as d,oe as e,f as g};
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrowserBadge-BTA4QU_J.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/BrowserBadge-BTA4QU_J.js"],"names":["_sfc_main$2"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartCard-BqAhMip2.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/ChartCard-BqAhMip2.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-_1nGm_DR.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Checkbox-_1nGm_DR.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CiEnvCard-DAufYuJw.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/CiEnvCard-DAufYuJw.js"],"names":["_sfc_main$5","_sfc_main$6","_sfc_main$7","_sfc_main$8","_sfc_main$9","__nuxt_component_2","__nuxt_component_2$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeBlock-BVKHuYjU.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/CodeBlock-BVKHuYjU.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardNavbar-BR6j4VLd.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/DashboardNavbar-BR6j4VLd.js"],"names":["_sfc_main$2","_sfc_main$3","_sfc_main$4"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DiagnosisPanel-BnrdXDvd.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/DiagnosisPanel-BnrdXDvd.js"],"names":["_sfc_main$3","_sfc_main$4","_sfc_main$6","_sfc_main$7","_sfc_main$8"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnvManagedBadge-DdnEtjIl.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/EnvManagedBadge-DdnEtjIl.js"],"names":["_sfc_main$2"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HelpHint-D_GJzMpW.mjs","sources":["../../../../shared/docs.ts","../../../../shared/piwi-env-vars.ts","../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/HelpHint-D_GJzMpW.js"],"names":["_sfc_main$2","_sfc_main$3","_sfc_main$4","_sfc_main$5"],"mappings":"","x_google_ignoreList":[2]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-COIjm3js.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Modal-COIjm3js.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectTestCasesTable-XFBPQGIX.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/ProjectTestCasesTable-XFBPQGIX.js"],"names":["_sfc_main$4","_sfc_main$5","_sfc_main$6","_sfc_main$7","_sfc_main$8","_sfc_main$9","_sfc_main$a"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RunReports-ChNkmuWa.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/RunReports-ChNkmuWa.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RunStatusBadge-CXpuCUGQ.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/RunStatusBadge-CXpuCUGQ.js"],"names":["_sfc_main$1","_sfc_main$2"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionCard-zs9FDzps.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/SectionCard-zs9FDzps.js"],"names":["_sfc_main$2"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Select-r3S5nkSY.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Select-r3S5nkSY.js"],"names":["useForwardProps","focusFirst","useForwardProps$1","_sfc_main$1","_sfc_main$2","_sfc_main$3"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Separator-pqpPG0up.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Separator-pqpPG0up.js"],"names":["_sfc_main$1","_sfc_main$2"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsField-Wdpzlt13.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/SettingsField-Wdpzlt13.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slideover-02XjJjn0.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Slideover-02XjJjn0.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch-gx_JXgCo.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Switch-gx_JXgCo.js"],"names":["_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table-C64RrBp3.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Table-C64RrBp3.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestStatusBar--u4VX_Xf.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/TestStatusBar--u4VX_Xf.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip-ui_BVvqr.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/Tooltip-ui_BVvqr.js"],"names":["useForwardProps","useForwardProps$1","_sfc_main$1"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VisuallyHiddenInput-mMsqmkjz.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/VisuallyHiddenInput-mMsqmkjz.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_id_-R6KGfZOC.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/_id_-R6KGfZOC.js"],"names":["__nuxt_component_1","__nuxt_component_2$2","_sfc_main$d","_sfc_main$e","_sfc_main$f","__nuxt_component_2$1","__nuxt_component_12$1","__nuxt_component_12$2","_sfc_main$g","_sfc_main$h","__nuxt_component_3","_sfc_main$i","_sfc_main$j","__nuxt_component_3$1","__nuxt_component_4$1","__nuxt_component_1$1","__nuxt_component_1$2","__nuxt_component_3$2","__nuxt_component_4$2","__nuxt_component_8$1","_sfc_main$k","__nuxt_component_1$3","__nuxt_component_3$3","__nuxt_component_4$3","_sfc_main$l","_sfc_main$n","_sfc_main$o","__nuxt_component_3$5","__nuxt_component_4$4","__nuxt_component_8$2","__nuxt_component_3$4","_sfc_main$m","__nuxt_component_1$5","__nuxt_component_1$4","__nuxt_component_2$4"],"mappings":"","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_id_-pkxJKe17.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/_id_-pkxJKe17.js"],"names":["_sfc_main$7","_sfc_main$8","_sfc_main$2","_sfc_main$3","_sfc_main$4","_sfc_main$5","_sfc_main$6"],"mappings":"","x_google_ignoreList":[0]}