@piwitests/server 0.15.0 → 0.16.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 (457) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DzbOHjZH.js → -KQO1A4C.js} +1 -1
  3. package/.output/public/_nuxt/{BEKwVcvQ.js → 1AB111xL.js} +1 -1
  4. package/.output/public/_nuxt/{CokbKVE6.js → 2xvsvjLO.js} +1 -1
  5. package/.output/public/_nuxt/{CNzoIhwN.js → ABGJk0pu.js} +1 -1
  6. package/.output/public/_nuxt/{Cgr8IKY4.js → B2lYFco4.js} +1 -1
  7. package/.output/public/_nuxt/B33X4zrC.js +1 -0
  8. package/.output/public/_nuxt/{V1BQiRoh.js → B3NbDoBP.js} +1 -1
  9. package/.output/public/_nuxt/{ChWPXucC.js → B3sNtVnf.js} +1 -1
  10. package/.output/public/_nuxt/{too3WhRB.js → B43OGXzV.js} +1 -1
  11. package/.output/public/_nuxt/{Cf3RuiXF.js → B6Jp7fpa.js} +4 -4
  12. package/.output/public/_nuxt/{B32ySRXg.js → B7yG1G_l.js} +1 -1
  13. package/.output/public/_nuxt/{BgR7oL4p.js → BBdfPriC.js} +1 -1
  14. package/.output/public/_nuxt/{DNP5tTJo.js → BGYbnqA7.js} +1 -1
  15. package/.output/public/_nuxt/{DAeYEeCC.js → BIf1R_fu.js} +1 -1
  16. package/.output/public/_nuxt/{nUsJV5qo.js → BIksQZfR.js} +1 -1
  17. package/.output/public/_nuxt/{B8fs6GU9.js → BPKwYP2Q.js} +31 -31
  18. package/.output/public/_nuxt/{DjCfCT_5.js → BP_SWi7S.js} +1 -1
  19. package/.output/public/_nuxt/{CrFCPOnY.js → BQrSEuzu.js} +1 -1
  20. package/.output/public/_nuxt/{BpepjHwc.js → BR9H8k-L.js} +1 -1
  21. package/.output/public/_nuxt/{Dejf0f7D.js → BRKa6EQR.js} +3 -3
  22. package/.output/public/_nuxt/{BMQIO38j.js → BS0gKVuF.js} +1 -1
  23. package/.output/public/_nuxt/{BW1UOxWn.js → BV83yObd.js} +1 -1
  24. package/.output/public/_nuxt/{o5WQ5Z7k.js → BVW5qIDP.js} +1 -1
  25. package/.output/public/_nuxt/{rvaZFYoE.js → BY4oA2IH.js} +1 -1
  26. package/.output/public/_nuxt/{DZoSxwj6.js → BZekCf_x.js} +1 -1
  27. package/.output/public/_nuxt/{lRMjXqiA.js → Bb64FEFL.js} +1 -1
  28. package/.output/public/_nuxt/{2PU-adwy.js → BdFEUAlx.js} +1 -1
  29. package/.output/public/_nuxt/{CBrCcDzR.js → Bf62wdzp.js} +1 -1
  30. package/.output/public/_nuxt/{DYDGGqZ3.js → BkDfdHFm.js} +1 -1
  31. package/.output/public/_nuxt/{CqA3gM8h.js → BoRFLTAO.js} +1 -1
  32. package/.output/public/_nuxt/{DxXZN6ed.js → BpIsBP5g.js} +1 -1
  33. package/.output/public/_nuxt/{DkFbpSsi.js → BpNqHxg2.js} +1 -1
  34. package/.output/public/_nuxt/{DFw8I2FL.js → BpceIssd.js} +1 -1
  35. package/.output/public/_nuxt/{n7Htv9PJ.js → Br2K9yi_.js} +1 -1
  36. package/.output/public/_nuxt/{D4nLD93c.js → BuZOa2M3.js} +1 -1
  37. package/.output/public/_nuxt/{B32-7cBF.js → Bvfmwzgw.js} +1 -1
  38. package/.output/public/_nuxt/{h-e-Ca3f.js → Bzl2H_vl.js} +1 -1
  39. package/.output/public/_nuxt/{IdQR_Djw.js → C1K3r_fc.js} +1 -1
  40. package/.output/public/_nuxt/C219JuBV.js +1 -0
  41. package/.output/public/_nuxt/{B_80i5Ge.js → C38aZbFJ.js} +1 -1
  42. package/.output/public/_nuxt/{DHVmXA9K.js → C3r_Sv1p.js} +1 -1
  43. package/.output/public/_nuxt/{O1A-LRgV.js → C8RBRg7I.js} +1 -1
  44. package/.output/public/_nuxt/{60-Zii7v.js → CCRRqXez.js} +1 -1
  45. package/.output/public/_nuxt/{__m3KqHO.js → CJFqA_QW.js} +1 -1
  46. package/.output/public/_nuxt/{Surk4Lw-.js → CKB_doYB.js} +1 -1
  47. package/.output/public/_nuxt/{DaKVSp-6.js → CMYQpoOI.js} +1 -1
  48. package/.output/public/_nuxt/CQeMb57w.js +1 -0
  49. package/.output/public/_nuxt/{Bq2ZPvIH.js → CSYJwpXG.js} +1 -1
  50. package/.output/public/_nuxt/{ETOCcsVw.js → CTdvGdc2.js} +1 -1
  51. package/.output/public/_nuxt/CX1dcT4v.js +1 -0
  52. package/.output/public/_nuxt/{evCxpgbd.js → CdME81ij.js} +2 -2
  53. package/.output/public/_nuxt/{DKTDub7I.js → CgoAUz76.js} +1 -1
  54. package/.output/public/_nuxt/{0KrkW531.js → CoHGrO41.js} +1 -1
  55. package/.output/public/_nuxt/{BGsuOpiq.js → CpO-ABDW.js} +1 -1
  56. package/.output/public/_nuxt/CuYYdFBL.js +1 -0
  57. package/.output/public/_nuxt/{CHMpVLqo.js → D2jhe9JK.js} +1 -1
  58. package/.output/public/_nuxt/{C7RarFGi.js → D33On6AX.js} +1 -1
  59. package/.output/public/_nuxt/{Dv2B_nw_.js → D4VpoHDP.js} +1 -1
  60. package/.output/public/_nuxt/{CKZn0TUX.js → DAWn6Z7h.js} +1 -1
  61. package/.output/public/_nuxt/{rWwWS3Kj.js → DCpmQ47_.js} +1 -1
  62. package/.output/public/_nuxt/{B59-l1Cv.js → DIkLLyR6.js} +1 -1
  63. package/.output/public/_nuxt/{CFn3w5jn.js → DJS3Bf50.js} +1 -1
  64. package/.output/public/_nuxt/{F07TcX0U.js → DL20rwkA.js} +1 -1
  65. package/.output/public/_nuxt/DOuoR2Pk.js +34 -0
  66. package/.output/public/_nuxt/{BC_Wu-fv.js → DRtTLQri.js} +1 -1
  67. package/.output/public/_nuxt/{DiUGa0CT.js → DbeHHTk-.js} +1 -1
  68. package/.output/public/_nuxt/DcCNnjKl.js +1 -0
  69. package/.output/public/_nuxt/{PPFO8UVt.js → DdbrJwT-.js} +1 -1
  70. package/.output/public/_nuxt/{Cfk2_UCm.js → DfcAIbcX.js} +1 -1
  71. package/.output/public/_nuxt/{OG2n3p77.js → DgYM3eyi.js} +1 -1
  72. package/.output/public/_nuxt/{BBJ9Pu3M.js → DhA17dqR.js} +1 -1
  73. package/.output/public/_nuxt/{DvdOsTLb.js → DjZKuUMz.js} +1 -1
  74. package/.output/public/_nuxt/{DCCMLWel.js → DqnyWaSQ.js} +1 -1
  75. package/.output/public/_nuxt/Dsk4Ic18.js +7 -0
  76. package/.output/public/_nuxt/{BCK4f6Y3.js → DszOHBMG.js} +1 -1
  77. package/.output/public/_nuxt/{Cpquifvd.js → DuBBqqbF.js} +1 -1
  78. package/.output/public/_nuxt/{DWzdeQ3Z.js → DuMv-ugy.js} +1 -1
  79. package/.output/public/_nuxt/{BfshMo9k.js → Dz55UR7w.js} +2 -2
  80. package/.output/public/_nuxt/{BkhdAGx0.js → Dzz9_Z0u.js} +1 -1
  81. package/.output/public/_nuxt/{DgZlpN9l.js → HoKG9cc2.js} +1 -1
  82. package/.output/public/_nuxt/{C9jjVEQU.js → IFqRT_xJ.js} +1 -1
  83. package/.output/public/_nuxt/{i38YGG9S.js → JCFZINev.js} +1 -1
  84. package/.output/public/_nuxt/{B9Q_4Mjt.js → Kc7La4sL.js} +1 -1
  85. package/.output/public/_nuxt/N3pCB6-m.js +4 -0
  86. package/.output/public/_nuxt/{CFXonrwQ.js → WctJXszi.js} +1 -1
  87. package/.output/public/_nuxt/{CHgsEM4U.js → bAfTAihV.js} +1 -1
  88. package/.output/public/_nuxt/builds/latest.json +1 -1
  89. package/.output/public/_nuxt/builds/meta/5182c9fb-56a6-4df2-9685-4020a08ce7a5.json +1 -0
  90. package/.output/public/_nuxt/{4fB15L_7.js → d5ZB3uxF.js} +1 -1
  91. package/.output/public/_nuxt/{CIOQo6gB.js → e1zUTrBb.js} +1 -1
  92. package/.output/public/_nuxt/entry.BsmKRJzR.css +1 -0
  93. package/.output/public/_nuxt/{BtJkQ3to.js → iwD5atI2.js} +1 -1
  94. package/.output/public/_nuxt/jIF87ALb.js +1 -0
  95. package/.output/public/_nuxt/{CvCF77E-.js → k-z_VVTK.js} +2 -2
  96. package/.output/public/_nuxt/{CHSkT2s0.js → l0gdGdar.js} +1 -1
  97. package/.output/public/_nuxt/{DVdOm5Bg.js → mGJLLqyN.js} +1 -1
  98. package/.output/public/_nuxt/{CU-OXXdh.js → mfzslNx_.js} +1 -1
  99. package/.output/public/_nuxt/{CD-xwM9N.js → nCjfWTGm.js} +1 -1
  100. package/.output/public/_nuxt/{DQpa8F03.js → oNq5pd3r.js} +1 -1
  101. package/.output/public/_nuxt/qzAP_nm7.js +1 -0
  102. package/.output/public/_nuxt/{3SnTawZW.js → r3SBLxtE.js} +1 -1
  103. package/.output/public/_nuxt/{DI_-kFec.js → uKeO2H7F.js} +1 -1
  104. package/.output/public/_nuxt/{DZLrAp2i.js → xUrLy-Zn.js} +1 -1
  105. package/.output/public/_nuxt/{BY0AkhJh.js → ze9-Ill2.js} +1 -1
  106. package/.output/public/demo/seed.version.json +2 -2
  107. package/.output/public/sw.js +1 -1
  108. package/.output/server/chunks/_/markers.mjs +1 -1
  109. package/.output/server/chunks/_/users.mjs +1 -1
  110. package/.output/server/chunks/build/{BrowserBadge-BTA4QU_J.mjs → BrowserBadge-DNCp9pF-.mjs} +3 -3
  111. package/.output/server/chunks/build/BrowserBadge-DNCp9pF-.mjs.map +1 -0
  112. package/.output/server/chunks/build/{ChartCard-BqAhMip2.mjs → ChartCard-Fr557IbV.mjs} +2 -2
  113. package/.output/server/chunks/build/ChartCard-Fr557IbV.mjs.map +1 -0
  114. package/.output/server/chunks/build/{Checkbox-_1nGm_DR.mjs → Checkbox-7ZiMz60w.mjs} +5 -5
  115. package/.output/server/chunks/build/Checkbox-7ZiMz60w.mjs.map +1 -0
  116. package/.output/server/chunks/build/{CiEnvCard-DAufYuJw.mjs → CiEnvCard-DNxBVvx4.mjs} +5 -5
  117. package/.output/server/chunks/build/CiEnvCard-DNxBVvx4.mjs.map +1 -0
  118. package/.output/server/chunks/build/{CodeBlock-BVKHuYjU.mjs → CodeBlock-BGwNmJ8J.mjs} +2 -2
  119. package/.output/server/chunks/build/CodeBlock-BGwNmJ8J.mjs.map +1 -0
  120. package/.output/server/chunks/build/{DashboardNavbar-BR6j4VLd.mjs → DashboardNavbar-Bdp-OwTN.mjs} +2 -2
  121. package/.output/server/chunks/build/DashboardNavbar-Bdp-OwTN.mjs.map +1 -0
  122. package/.output/server/chunks/build/DashboardSidebarToggle-Ji6ADuqF.mjs +1 -1
  123. package/.output/server/chunks/build/{DiagnosisPanel-BnrdXDvd.mjs → DiagnosisPanel-DV1xwGu4.mjs} +6 -6
  124. package/.output/server/chunks/build/DiagnosisPanel-DV1xwGu4.mjs.map +1 -0
  125. package/.output/server/chunks/build/EntityLinks-DeOP13Kr.mjs +1 -1
  126. package/.output/server/chunks/build/{EnvManagedBadge-DdnEtjIl.mjs → EnvManagedBadge-Qpn58Nmr.mjs} +5 -5
  127. package/.output/server/chunks/build/EnvManagedBadge-Qpn58Nmr.mjs.map +1 -0
  128. package/.output/server/chunks/build/{HelpHint-D_GJzMpW.mjs → HelpHint-YEMWtKu1.mjs} +18 -2
  129. package/.output/server/chunks/build/HelpHint-YEMWtKu1.mjs.map +1 -0
  130. package/.output/server/chunks/build/{Modal-COIjm3js.mjs → Modal-CfA78Hm1.mjs} +2 -2
  131. package/.output/server/chunks/build/Modal-CfA78Hm1.mjs.map +1 -0
  132. package/.output/server/chunks/build/{OpenInIdeLink-D97W6On1.mjs → OpenInIdeLink-B92wosXu.mjs} +3 -3
  133. package/.output/server/chunks/build/{OpenInIdeLink-D97W6On1.mjs.map → OpenInIdeLink-B92wosXu.mjs.map} +1 -1
  134. package/.output/server/chunks/build/{PageStateCard-C1HFN4Nv.mjs → PageStateCard-Bwee6JTk.mjs} +10 -10
  135. package/.output/server/chunks/build/{PageStateCard-C1HFN4Nv.mjs.map → PageStateCard-Bwee6JTk.mjs.map} +1 -1
  136. package/.output/server/chunks/build/{ProjectTestCasesTable-XFBPQGIX.mjs → ProjectTestCasesTable-9418EI8J.mjs} +9 -9
  137. package/.output/server/chunks/build/ProjectTestCasesTable-9418EI8J.mjs.map +1 -0
  138. package/.output/server/chunks/build/{RunReports-ChNkmuWa.mjs → RunReports-BpJqLHY9.mjs} +2 -2
  139. package/.output/server/chunks/build/RunReports-BpJqLHY9.mjs.map +1 -0
  140. package/.output/server/chunks/build/{RunStatusBadge-CXpuCUGQ.mjs → RunStatusBadge-BhmJ_RKM.mjs} +2 -2
  141. package/.output/server/chunks/build/RunStatusBadge-BhmJ_RKM.mjs.map +1 -0
  142. package/.output/server/chunks/build/{SectionCard-zs9FDzps.mjs → SectionCard-COd9TuDq.mjs} +2 -2
  143. package/.output/server/chunks/build/SectionCard-COd9TuDq.mjs.map +1 -0
  144. package/.output/server/chunks/build/{Select-r3S5nkSY.mjs → Select-COwTIQlV.mjs} +3 -3
  145. package/.output/server/chunks/build/Select-COwTIQlV.mjs.map +1 -0
  146. package/.output/server/chunks/build/{SelectMenu-Dk6f8i9o.mjs → SelectMenu-BkyAHFCM.mjs} +4 -4
  147. package/.output/server/chunks/build/{SelectMenu-Dk6f8i9o.mjs.map → SelectMenu-BkyAHFCM.mjs.map} +1 -1
  148. package/.output/server/chunks/build/{Separator-pqpPG0up.mjs → Separator-CxZdx8kw.mjs} +2 -2
  149. package/.output/server/chunks/build/Separator-CxZdx8kw.mjs.map +1 -0
  150. package/.output/server/chunks/build/{SettingsField-Wdpzlt13.mjs → SettingsField-DDD4oqys.mjs} +5 -5
  151. package/.output/server/chunks/build/SettingsField-DDD4oqys.mjs.map +1 -0
  152. package/.output/server/chunks/build/{Slideover-02XjJjn0.mjs → Slideover-B95Rj237.mjs} +3 -3
  153. package/.output/server/chunks/build/Slideover-B95Rj237.mjs.map +1 -0
  154. package/.output/server/chunks/build/{Switch-gx_JXgCo.mjs → Switch-htSKgC38.mjs} +2 -2
  155. package/.output/server/chunks/build/Switch-htSKgC38.mjs.map +1 -0
  156. package/.output/server/chunks/build/{Table-C64RrBp3.mjs → Table-CPhhVzDv.mjs} +3 -3
  157. package/.output/server/chunks/build/Table-CPhhVzDv.mjs.map +1 -0
  158. package/.output/server/chunks/build/{TestStatusBar--u4VX_Xf.mjs → TestStatusBar-CEzt76wk.mjs} +2 -2
  159. package/.output/server/chunks/build/TestStatusBar-CEzt76wk.mjs.map +1 -0
  160. package/.output/server/chunks/build/{Tooltip-ui_BVvqr.mjs → Tooltip-7vwuDPrZ.mjs} +3 -3
  161. package/.output/server/chunks/build/Tooltip-7vwuDPrZ.mjs.map +1 -0
  162. package/.output/server/chunks/build/{VisuallyHiddenInput-mMsqmkjz.mjs → VisuallyHiddenInput-C9eJVpPW.mjs} +2 -2
  163. package/.output/server/chunks/build/VisuallyHiddenInput-C9eJVpPW.mjs.map +1 -0
  164. package/.output/server/chunks/build/{_id_-CFVnSs8B.mjs → _id_-BDqvTM9D.mjs} +19 -18
  165. package/.output/server/chunks/build/{_id_-CFVnSs8B.mjs.map → _id_-BDqvTM9D.mjs.map} +1 -1
  166. package/.output/server/chunks/build/{_id_-pkxJKe17.mjs → _id_-CE0Gso6i.mjs} +11 -11
  167. package/.output/server/chunks/build/_id_-CE0Gso6i.mjs.map +1 -0
  168. package/.output/server/chunks/build/{_id_-R6KGfZOC.mjs → _id_-CnwAyvvS.mjs} +257 -84
  169. package/.output/server/chunks/build/_id_-CnwAyvvS.mjs.map +1 -0
  170. package/.output/server/chunks/build/{_id_-DXJQABO8.mjs → _id_-Dy67M9Dj.mjs} +25 -25
  171. package/.output/server/chunks/build/{_id_-DXJQABO8.mjs.map → _id_-Dy67M9Dj.mjs.map} +1 -1
  172. package/.output/server/chunks/build/{about-CmtGYbC6.mjs → about-FB9PYAHK.mjs} +5 -5
  173. package/.output/server/chunks/build/about-FB9PYAHK.mjs.map +1 -0
  174. package/.output/server/chunks/build/{account-AbLuwiZP.mjs → account-Cn-eZqXM.mjs} +4 -4
  175. package/.output/server/chunks/build/account-Cn-eZqXM.mjs.map +1 -0
  176. package/.output/server/chunks/build/{ai-DR_slopS.mjs → ai-V3YOh3yx.mjs} +17 -17
  177. package/.output/server/chunks/build/ai-V3YOh3yx.mjs.map +1 -0
  178. package/.output/server/chunks/build/{analytics-BbT2-Tr-.mjs → analytics-BBlAEmj5.mjs} +235 -64
  179. package/.output/server/chunks/build/analytics-BBlAEmj5.mjs.map +1 -0
  180. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  181. package/.output/server/chunks/build/{db.client-DlA_u5y9.mjs → db.client-aHcD0wyX.mjs} +47 -22
  182. package/.output/server/chunks/build/db.client-aHcD0wyX.mjs.map +1 -0
  183. package/.output/server/chunks/build/{default-D6diRCW0.mjs → default-BfMirIgG.mjs} +17 -16
  184. package/.output/server/chunks/build/default-BfMirIgG.mjs.map +1 -0
  185. package/.output/server/chunks/build/{docs-DbYoZafk.mjs → docs-DtNcJCyb.mjs} +5 -5
  186. package/.output/server/chunks/build/{docs-DbYoZafk.mjs.map → docs-DtNcJCyb.mjs.map} +1 -1
  187. package/.output/server/chunks/build/{edit-CNV4xdYj.mjs → edit-Dsf11mL5.mjs} +8 -8
  188. package/.output/server/chunks/build/edit-Dsf11mL5.mjs.map +1 -0
  189. package/.output/server/chunks/build/fetch-8kznMtBM.mjs +1 -1
  190. package/.output/server/chunks/build/{help-content-BMumoQQF.mjs → help-content-DmFnuhNu.mjs} +6 -1
  191. package/.output/server/chunks/build/help-content-DmFnuhNu.mjs.map +1 -0
  192. package/.output/server/chunks/build/{index-Dw526KXV.mjs → index-BR9hw6qk.mjs} +10 -10
  193. package/.output/server/chunks/build/index-BR9hw6qk.mjs.map +1 -0
  194. package/.output/server/chunks/build/{index-dwYB76GO.mjs → index-Ba-Fifra.mjs} +4 -4
  195. package/.output/server/chunks/build/index-Ba-Fifra.mjs.map +1 -0
  196. package/.output/server/chunks/build/{index-rSHkKNna.mjs → index-BgpEKTSq.mjs} +505 -84
  197. package/.output/server/chunks/build/index-BgpEKTSq.mjs.map +1 -0
  198. package/.output/server/chunks/build/{index-DmHBPf7T.mjs → index-CULN3-en.mjs} +11 -2
  199. package/.output/server/chunks/build/index-CULN3-en.mjs.map +1 -0
  200. package/.output/server/chunks/build/{index-C3Ou18qD.mjs → index-DzEgjHlB.mjs} +14 -14
  201. package/.output/server/chunks/build/{index-C3Ou18qD.mjs.map → index-DzEgjHlB.mjs.map} +1 -1
  202. package/.output/server/chunks/build/{isValueEqualOrExist-DTJ5ejZs.mjs → isValueEqualOrExist-DBZjbD_3.mjs} +3 -3
  203. package/.output/server/chunks/build/isValueEqualOrExist-DBZjbD_3.mjs.map +1 -0
  204. package/.output/server/chunks/build/{login-Da5C8jP2.mjs → login-D2XZDuek.mjs} +3 -3
  205. package/.output/server/chunks/build/login-D2XZDuek.mjs.map +1 -0
  206. package/.output/server/chunks/build/{mcp-DM1t-9L_.mjs → mcp-CXwa3xU3.mjs} +8 -8
  207. package/.output/server/chunks/build/mcp-CXwa3xU3.mjs.map +1 -0
  208. package/.output/server/chunks/build/{notifications-BTPF0xA7.mjs → notifications-hJj8tbAT.mjs} +11 -11
  209. package/.output/server/chunks/build/notifications-hJj8tbAT.mjs.map +1 -0
  210. package/.output/server/chunks/build/server.mjs +37 -28
  211. package/.output/server/chunks/build/{settings-Bmw_JdBS.mjs → settings-Ci_7EXYQ.mjs} +8 -7
  212. package/.output/server/chunks/build/settings-Ci_7EXYQ.mjs.map +1 -0
  213. package/.output/server/chunks/build/{settings-metadata-CksLgMun.mjs → settings-metadata-Cp0dx0vm.mjs} +12 -3
  214. package/.output/server/chunks/build/settings-metadata-Cp0dx0vm.mjs.map +1 -0
  215. package/.output/server/chunks/build/{storage-BqR4acgi.mjs → storage-CM-Pd-9E.mjs} +191 -14
  216. package/.output/server/chunks/build/storage-CM-Pd-9E.mjs.map +1 -0
  217. package/.output/server/chunks/build/{tags-miPAzIr3.mjs → tags-DrCQ7QSw.mjs} +6 -6
  218. package/.output/server/chunks/build/tags-DrCQ7QSw.mjs.map +1 -0
  219. package/.output/server/chunks/build/{test-cases-D-LqhLpk.mjs → test-cases-DkGQB027.mjs} +14 -14
  220. package/.output/server/chunks/build/test-cases-DkGQB027.mjs.map +1 -0
  221. package/.output/server/chunks/build/timeout-hygiene-CNs71Iah.mjs +318 -0
  222. package/.output/server/chunks/build/timeout-hygiene-CNs71Iah.mjs.map +1 -0
  223. package/.output/server/chunks/build/{useAiStatus-FwqbA4gz.mjs → useAiStatus-ZO987RY7.mjs} +8 -7
  224. package/.output/server/chunks/build/useAiStatus-ZO987RY7.mjs.map +1 -0
  225. package/.output/server/chunks/build/{useSettingsNav-v_dFuTw9.mjs → useSettingsNav-D2knPCqF.mjs} +6 -6
  226. package/.output/server/chunks/build/useSettingsNav-D2knPCqF.mjs.map +1 -0
  227. package/.output/server/chunks/build/{users-D-GDKZmZ.mjs → users-NmAUZs3i.mjs} +6 -6
  228. package/.output/server/chunks/build/users-NmAUZs3i.mjs.map +1 -0
  229. package/.output/server/chunks/build/{virtualizer-BcC1XuFf.mjs → virtualizer-0-UBy7xl.mjs} +4 -4
  230. package/.output/server/chunks/build/virtualizer-0-UBy7xl.mjs.map +1 -0
  231. package/.output/server/chunks/build/{wasted-time-CFmeT_e2.mjs → wasted-time-L4kBV5Nh.mjs} +8 -8
  232. package/.output/server/chunks/build/wasted-time-L4kBV5Nh.mjs.map +1 -0
  233. package/.output/server/chunks/nitro/nitro.mjs +949 -684
  234. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  235. package/.output/server/chunks/routes/__piwi/session.get.mjs +51 -0
  236. package/.output/server/chunks/routes/__piwi/session.get.mjs.map +1 -0
  237. package/.output/server/chunks/routes/api/admin/stats.get.mjs +5 -1
  238. package/.output/server/chunks/routes/api/admin/stats.get.mjs.map +1 -1
  239. package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs +75 -6
  240. package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs.map +1 -1
  241. package/.output/server/chunks/routes/api/auth/change-password.post.mjs +1 -1
  242. package/.output/server/chunks/routes/api/auth/forgot-password.post.mjs +1 -1
  243. package/.output/server/chunks/routes/api/auth/login.post.mjs +1 -1
  244. package/.output/server/chunks/routes/api/auth/logout.post.mjs +1 -1
  245. package/.output/server/chunks/routes/api/auth/me.get.mjs +1 -1
  246. package/.output/server/chunks/routes/api/auth/oauth/_provider/callback.get.mjs +1 -1
  247. package/.output/server/chunks/routes/api/auth/oauth/_provider/login.get.mjs +1 -1
  248. package/.output/server/chunks/routes/api/auth/oauth/_provider/unlink.post.mjs +1 -1
  249. package/.output/server/chunks/routes/api/auth/reset-password.post.mjs +1 -1
  250. package/.output/server/chunks/routes/api/auth/send-verify-email.post.mjs +1 -1
  251. package/.output/server/chunks/routes/api/auth/setup.get.mjs +1 -1
  252. package/.output/server/chunks/routes/api/auth/setup.post.mjs +1 -1
  253. package/.output/server/chunks/routes/api/auth/verify-email.get.mjs +1 -1
  254. package/.output/server/chunks/routes/api/channels/_id/test.post.mjs +1 -1
  255. package/.output/server/chunks/routes/api/channels/_id_.delete.mjs +1 -1
  256. package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/approve.post.mjs +1 -1
  257. package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/reject.post.mjs +1 -1
  258. package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs +45 -0
  259. package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs.map +1 -0
  260. package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +1 -1
  261. package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +1 -1
  262. package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +1 -1
  263. package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +1 -1
  264. package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +1 -1
  265. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +1 -1
  266. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +1 -1
  267. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +1 -1
  268. package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +1 -1
  269. package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +1 -1
  270. package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +1 -1
  271. package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +1 -1
  272. package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +1 -1
  273. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -1
  274. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  275. package/.output/server/chunks/routes/api/index.get.mjs +1 -1
  276. package/.output/server/chunks/routes/api/index.get2.mjs +1 -1
  277. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  278. package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
  279. package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
  280. package/.output/server/chunks/routes/api/index.post.mjs +1 -1
  281. package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
  282. package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
  283. package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
  284. package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
  285. package/.output/server/chunks/routes/api/index.post6.mjs +1 -1
  286. package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +1 -1
  287. package/.output/server/chunks/routes/api/links/_id_.delete.mjs +1 -1
  288. package/.output/server/chunks/routes/api/links/_id_.patch.mjs +1 -1
  289. package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +1 -1
  290. package/.output/server/chunks/routes/api/markers/_id_.put.mjs +1 -1
  291. package/.output/server/chunks/routes/api/notifications/stream.get.mjs +1 -1
  292. package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +1 -1
  293. package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +1 -1
  294. package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +1 -1
  295. package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +1 -1
  296. package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +1 -1
  297. package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +1 -1
  298. package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +1 -1
  299. package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +1 -1
  300. package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +1 -1
  301. package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +1 -1
  302. package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +1 -1
  303. package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +1 -1
  304. package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +1 -1
  305. package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +50 -0
  306. package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs.map +1 -0
  307. package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +1 -1
  308. package/.output/server/chunks/routes/api/projects/_id_.get.mjs +1 -1
  309. package/.output/server/chunks/routes/api/projects/_id_.put.mjs +1 -1
  310. package/.output/server/chunks/routes/api/projects/menu.get.mjs +1 -1
  311. package/.output/server/chunks/routes/api/projects/overview.get.mjs +1 -1
  312. package/.output/server/chunks/routes/api/projects.get.mjs +1 -1
  313. package/.output/server/chunks/routes/api/search.get.mjs +1 -1
  314. package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +1 -1
  315. package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +1 -1
  316. package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +1 -1
  317. package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +1 -1
  318. package/.output/server/chunks/routes/api/settings/ai.get.mjs +1 -1
  319. package/.output/server/chunks/routes/api/settings/ai.put.mjs +1 -1
  320. package/.output/server/chunks/routes/api/settings/smtp/test.post.mjs +1 -1
  321. package/.output/server/chunks/routes/api/settings/smtp.get.mjs +1 -1
  322. package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +40 -0
  323. package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs.map +1 -0
  324. package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +46 -0
  325. package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs.map +1 -0
  326. package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +1 -1
  327. package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +1 -1
  328. package/.output/server/chunks/routes/api/stream.get.mjs +1 -1
  329. package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +1 -1
  330. package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +1 -1
  331. package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +1 -1
  332. package/.output/server/chunks/routes/api/tags/_id_.put.mjs +1 -1
  333. package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +1 -1
  334. package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +1 -1
  335. package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +1 -1
  336. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +1 -1
  337. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +1 -1
  338. package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +1 -1
  339. package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +1 -1
  340. package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +1 -1
  341. package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +1 -1
  342. package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +1 -1
  343. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +1 -1
  344. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +1 -1
  345. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +1 -1
  346. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +1 -1
  347. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +1 -1
  348. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +1 -1
  349. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +1 -1
  350. package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +1 -1
  351. package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
  352. package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
  353. package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +1 -1
  354. package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
  355. package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
  356. package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
  357. package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
  358. package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +1 -1
  359. package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
  360. package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +1 -1
  361. package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +1 -1
  362. package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +1 -1
  363. package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
  364. package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +1 -1
  365. package/.output/server/chunks/routes/api/test-runs/start.post.mjs +1 -1
  366. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +3 -1
  367. package/.output/server/chunks/routes/api/test-runs/submit.post.mjs.map +1 -1
  368. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +2 -1
  369. package/.output/server/chunks/routes/api/test-runs/upload.post.mjs.map +1 -1
  370. package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
  371. package/.output/server/chunks/routes/api/users/_id/api-keys/_keyId_.delete.mjs +1 -1
  372. package/.output/server/chunks/routes/api/users/_id/index.get.mjs +1 -1
  373. package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
  374. package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
  375. package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
  376. package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
  377. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
  378. package/.output/server/chunks/routes/api/users/_id_.patch.mjs +1 -1
  379. package/.output/server/chunks/routes/api/version.get.mjs +1 -1
  380. package/.output/server/chunks/routes/mcp.post.mjs +1 -1
  381. package/.output/server/chunks/routes/renderer.mjs +1 -1
  382. package/.output/server/database/migrations/0037_tired_hellion.sql +1 -0
  383. package/.output/server/database/migrations/0038_glamorous_ulik.sql +1 -0
  384. package/.output/server/database/migrations/meta/0037_snapshot.json +3384 -0
  385. package/.output/server/database/migrations/meta/0038_snapshot.json +3391 -0
  386. package/.output/server/database/migrations/meta/_journal.json +14 -0
  387. package/.output/server/database/migrations-pg/0038_tranquil_moira_mactaggert.sql +1 -0
  388. package/.output/server/database/migrations-pg/0039_fat_starjammers.sql +1 -0
  389. package/.output/server/database/migrations-pg/meta/0038_snapshot.json +4027 -0
  390. package/.output/server/database/migrations-pg/meta/0039_snapshot.json +4033 -0
  391. package/.output/server/database/migrations-pg/meta/_journal.json +14 -0
  392. package/.output/server/index.mjs +1 -1
  393. package/.output/server/package.json +1 -1
  394. package/package.json +1 -1
  395. package/.output/public/_nuxt/2kfkdDTz.js +0 -1
  396. package/.output/public/_nuxt/BXEDsEwG.js +0 -1
  397. package/.output/public/_nuxt/BbgBGuMG.js +0 -1
  398. package/.output/public/_nuxt/CJGJI2Of.js +0 -34
  399. package/.output/public/_nuxt/Ce4EdfL_.js +0 -4
  400. package/.output/public/_nuxt/CkpB9oBr.js +0 -1
  401. package/.output/public/_nuxt/D1tZEdSi.js +0 -1
  402. package/.output/public/_nuxt/DK9uMTYX.js +0 -1
  403. package/.output/public/_nuxt/YDWXnWou.js +0 -1
  404. package/.output/public/_nuxt/builds/meta/f549de31-8db6-4504-b526-482778a55eba.json +0 -1
  405. package/.output/public/_nuxt/entry.BxXHl1Vy.css +0 -1
  406. package/.output/public/_nuxt/wCQds5_f.js +0 -1
  407. package/.output/server/chunks/build/BrowserBadge-BTA4QU_J.mjs.map +0 -1
  408. package/.output/server/chunks/build/ChartCard-BqAhMip2.mjs.map +0 -1
  409. package/.output/server/chunks/build/Checkbox-_1nGm_DR.mjs.map +0 -1
  410. package/.output/server/chunks/build/CiEnvCard-DAufYuJw.mjs.map +0 -1
  411. package/.output/server/chunks/build/CodeBlock-BVKHuYjU.mjs.map +0 -1
  412. package/.output/server/chunks/build/DashboardNavbar-BR6j4VLd.mjs.map +0 -1
  413. package/.output/server/chunks/build/DiagnosisPanel-BnrdXDvd.mjs.map +0 -1
  414. package/.output/server/chunks/build/EnvManagedBadge-DdnEtjIl.mjs.map +0 -1
  415. package/.output/server/chunks/build/HelpHint-D_GJzMpW.mjs.map +0 -1
  416. package/.output/server/chunks/build/Modal-COIjm3js.mjs.map +0 -1
  417. package/.output/server/chunks/build/ProjectTestCasesTable-XFBPQGIX.mjs.map +0 -1
  418. package/.output/server/chunks/build/RunReports-ChNkmuWa.mjs.map +0 -1
  419. package/.output/server/chunks/build/RunStatusBadge-CXpuCUGQ.mjs.map +0 -1
  420. package/.output/server/chunks/build/SectionCard-zs9FDzps.mjs.map +0 -1
  421. package/.output/server/chunks/build/Select-r3S5nkSY.mjs.map +0 -1
  422. package/.output/server/chunks/build/Separator-pqpPG0up.mjs.map +0 -1
  423. package/.output/server/chunks/build/SettingsField-Wdpzlt13.mjs.map +0 -1
  424. package/.output/server/chunks/build/Slideover-02XjJjn0.mjs.map +0 -1
  425. package/.output/server/chunks/build/Switch-gx_JXgCo.mjs.map +0 -1
  426. package/.output/server/chunks/build/Table-C64RrBp3.mjs.map +0 -1
  427. package/.output/server/chunks/build/TestStatusBar--u4VX_Xf.mjs.map +0 -1
  428. package/.output/server/chunks/build/Tooltip-ui_BVvqr.mjs.map +0 -1
  429. package/.output/server/chunks/build/VisuallyHiddenInput-mMsqmkjz.mjs.map +0 -1
  430. package/.output/server/chunks/build/_id_-R6KGfZOC.mjs.map +0 -1
  431. package/.output/server/chunks/build/_id_-pkxJKe17.mjs.map +0 -1
  432. package/.output/server/chunks/build/about-CmtGYbC6.mjs.map +0 -1
  433. package/.output/server/chunks/build/account-AbLuwiZP.mjs.map +0 -1
  434. package/.output/server/chunks/build/ai-DR_slopS.mjs.map +0 -1
  435. package/.output/server/chunks/build/analytics-BbT2-Tr-.mjs.map +0 -1
  436. package/.output/server/chunks/build/db.client-DlA_u5y9.mjs.map +0 -1
  437. package/.output/server/chunks/build/default-D6diRCW0.mjs.map +0 -1
  438. package/.output/server/chunks/build/edit-CNV4xdYj.mjs.map +0 -1
  439. package/.output/server/chunks/build/help-content-BMumoQQF.mjs.map +0 -1
  440. package/.output/server/chunks/build/index-DmHBPf7T.mjs.map +0 -1
  441. package/.output/server/chunks/build/index-Dw526KXV.mjs.map +0 -1
  442. package/.output/server/chunks/build/index-dwYB76GO.mjs.map +0 -1
  443. package/.output/server/chunks/build/index-rSHkKNna.mjs.map +0 -1
  444. package/.output/server/chunks/build/isValueEqualOrExist-DTJ5ejZs.mjs.map +0 -1
  445. package/.output/server/chunks/build/login-Da5C8jP2.mjs.map +0 -1
  446. package/.output/server/chunks/build/mcp-DM1t-9L_.mjs.map +0 -1
  447. package/.output/server/chunks/build/notifications-BTPF0xA7.mjs.map +0 -1
  448. package/.output/server/chunks/build/settings-Bmw_JdBS.mjs.map +0 -1
  449. package/.output/server/chunks/build/settings-metadata-CksLgMun.mjs.map +0 -1
  450. package/.output/server/chunks/build/storage-BqR4acgi.mjs.map +0 -1
  451. package/.output/server/chunks/build/tags-miPAzIr3.mjs.map +0 -1
  452. package/.output/server/chunks/build/test-cases-D-LqhLpk.mjs.map +0 -1
  453. package/.output/server/chunks/build/useAiStatus-FwqbA4gz.mjs.map +0 -1
  454. package/.output/server/chunks/build/useSettingsNav-v_dFuTw9.mjs.map +0 -1
  455. package/.output/server/chunks/build/users-D-GDKZmZ.mjs.map +0 -1
  456. package/.output/server/chunks/build/virtualizer-BcC1XuFf.mjs.map +0 -1
  457. package/.output/server/chunks/build/wasted-time-CFmeT_e2.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{d as Yn,o as ne,c as ie,p as oi,F as Mc,y as Ac,i as Cc,O as $c,m as Ec,t as Nc,ap as Oc,aq as Dc,h as Ji,ar as Vr,as as Rc,am as xo,C as bo,G as wo,ab as Ki,B as ze,r as Ct,W as Fc,at as Lc,T as Ic,au as ai,J as ye,I as zc}from"./B8fs6GU9.js";import{g as Bc}from"./D7W_4Sqc.js";const Pc=Yn({__name:"ChartLegend",props:{items:{},dense:{type:Boolean}},setup(t){return(e,n)=>(ne(),ie("div",{class:oi(["flex items-center justify-center flex-wrap",t.dense?"gap-4 mt-2 text-xs text-gray-500":"gap-6 mt-4 text-sm"])},[(ne(!0),ie(Mc,null,Ac(t.items,i=>(ne(),ie("span",{key:i.label,class:oi(["flex items-center",t.dense?"gap-1":"gap-2"])},[Cc("span",{class:oi(["rounded-full inline-block",t.dense?"w-2.5 h-2.5":"w-3 h-3"]),style:$c({backgroundColor:i.color})},null,6),Ec(" "+Nc(i.label),1)],2))),128))],2))}}),g_=Object.assign(Pc,{__name:"ChartLegend"});var ki="http://www.w3.org/1999/xhtml";const Yr={svg:"http://www.w3.org/2000/svg",xhtml:ki,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Yr.hasOwnProperty(e)?{space:Yr[e],local:t}:t}function Hc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ki&&e.documentElement.namespaceURI===ki?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ko(t){var e=Xn(t);return(e.local?Uc:Hc)(e)}function Wc(){}function tr(t){return t==null?Wc:function(){return this.querySelector(t)}}function Vc(t){typeof t!="function"&&(t=tr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=new Array(o),c,u,l=0;l<o;++l)(c=s[l])&&(u=t.call(c,c.__data__,l,s))&&("__data__"in c&&(u.__data__=c.__data__),a[l]=u);return new it(i,this._parents)}function Yc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xc(){return[]}function To(t){return t==null?Xc:function(){return this.querySelectorAll(t)}}function Gc(t){return function(){return Yc(t.apply(this,arguments))}}function qc(t){typeof t=="function"?t=Gc(t):t=To(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o=e[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&(i.push(t.call(c,c.__data__,u,o)),r.push(c));return new it(i,r)}function So(t){return function(){return this.matches(t)}}function Mo(t){return function(e){return e.matches(t)}}var Zc=Array.prototype.find;function jc(t){return function(){return Zc.call(this.children,t)}}function Qc(){return this.firstElementChild}function Jc(t){return this.select(t==null?Qc:jc(typeof t=="function"?t:Mo(t)))}var Kc=Array.prototype.filter;function tu(){return Array.from(this.children)}function eu(t){return function(){return Kc.call(this.children,t)}}function nu(t){return this.selectAll(t==null?tu:eu(typeof t=="function"?t:Mo(t)))}function iu(t){typeof t!="function"&&(t=So(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new it(i,this._parents)}function Ao(t){return new Array(t.length)}function ru(){return new it(this._enter||this._groups.map(Ao),this._parents)}function kn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}kn.prototype={constructor:kn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function ou(t,e,n,i,r,s){for(var o=0,a,c=e.length,u=s.length;o<u;++o)(a=e[o])?(a.__data__=s[o],i[o]=a):n[o]=new kn(t,s[o]);for(;o<c;++o)(a=e[o])&&(r[o]=a)}function au(t,e,n,i,r,s,o){var a,c,u=new Map,l=e.length,f=s.length,h=new Array(l),d;for(a=0;a<l;++a)(c=e[a])&&(h[a]=d=o.call(c,c.__data__,a,e)+"",u.has(d)?r[a]=c:u.set(d,c));for(a=0;a<f;++a)d=o.call(t,s[a],a,s)+"",(c=u.get(d))?(i[a]=c,c.__data__=s[a],u.delete(d)):n[a]=new kn(t,s[a]);for(a=0;a<l;++a)(c=e[a])&&u.get(h[a])===c&&(r[a]=c)}function cu(t){return t.__data__}function uu(t,e){if(!arguments.length)return Array.from(this,cu);var n=e?au:ou,i=this._parents,r=this._groups;typeof t!="function"&&(t=su(t));for(var s=r.length,o=new Array(s),a=new Array(s),c=new Array(s),u=0;u<s;++u){var l=i[u],f=r[u],h=f.length,d=lu(t.call(l,l&&l.__data__,u,i)),p=d.length,g=a[u]=new Array(p),m=o[u]=new Array(p),_=c[u]=new Array(h);n(l,f,g,m,_,d,e);for(var x=0,y=0,b,T;x<p;++x)if(b=g[x]){for(x>=y&&(y=x+1);!(T=m[y])&&++y<p;);b._next=T||null}}return o=new it(o,i),o._enter=a,o._exit=c,o}function lu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function fu(){return new it(this._exit||this._groups.map(Ao),this._parents)}function hu(t,e,n){var i=this.enter(),r=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?s.remove():n(s),i&&r?i.merge(r).order():r}function du(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),c=0;c<o;++c)for(var u=n[c],l=i[c],f=u.length,h=a[c]=new Array(f),d,p=0;p<f;++p)(d=u[p]||l[p])&&(h[p]=d);for(;c<r;++c)a[c]=n[c];return new it(a,this._parents)}function gu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,s=i[r],o;--r>=0;)(o=i[r])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function pu(t){t||(t=_u);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o=n[s],a=o.length,c=r[s]=new Array(a),u,l=0;l<a;++l)(u=o[l])&&(c[l]=u);c.sort(e)}return new it(r,this._parents).order()}function _u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vu(){return Array.from(this)}function yu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null}function xu(){let t=0;for(const e of this)++t;return t}function bu(){return!this.node()}function wu(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],s=0,o=r.length,a;s<o;++s)(a=r[s])&&t.call(a,a.__data__,s,r);return this}function ku(t){return function(){this.removeAttribute(t)}}function Tu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Su(t,e){return function(){this.setAttribute(t,e)}}function Mu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Au(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Cu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $u(t,e){var n=Xn(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Tu:ku:typeof e=="function"?n.local?Cu:Au:n.local?Mu:Su)(n,e))}function Co(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Eu(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ou(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Du(t,e,n){return arguments.length>1?this.each((e==null?Eu:typeof e=="function"?Ou:Nu)(t,e,n??"")):le(this.node(),t)}function le(t,e){return t.style.getPropertyValue(e)||Co(t).getComputedStyle(t,null).getPropertyValue(e)}function Ru(t){return function(){delete this[t]}}function Fu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Iu(t,e){return arguments.length>1?this.each((e==null?Ru:typeof e=="function"?Lu:Fu)(t,e)):this.node()[t]}function $o(t){return t.trim().split(/^|\s+/)}function er(t){return t.classList||new Eo(t)}function Eo(t){this._node=t,this._names=$o(t.getAttribute("class")||"")}Eo.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function No(t,e){for(var n=er(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Oo(t,e){for(var n=er(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function zu(t){return function(){No(this,t)}}function Bu(t){return function(){Oo(this,t)}}function Pu(t,e){return function(){(e.apply(this,arguments)?No:Oo)(this,t)}}function Hu(t,e){var n=$o(t+"");if(arguments.length<2){for(var i=er(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Pu:e?zu:Bu)(n,e))}function Uu(){this.textContent=""}function Wu(t){return function(){this.textContent=t}}function Vu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Yu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Vu:Wu)(t)):this.node().textContent}function Xu(){this.innerHTML=""}function Gu(t){return function(){this.innerHTML=t}}function qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Zu(t){return arguments.length?this.each(t==null?Xu:(typeof t=="function"?qu:Gu)(t)):this.node().innerHTML}function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Qu(){return this.each(ju)}function Ju(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ku(){return this.each(Ju)}function tl(t){var e=typeof t=="function"?t:ko(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function el(){return null}function nl(t,e){var n=typeof t=="function"?t:ko(t),i=e==null?el:typeof e=="function"?e:tr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function il(){var t=this.parentNode;t&&t.removeChild(this)}function rl(){return this.each(il)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ol(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function al(t){return this.select(t?ol:sl)}function cl(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ul(t){return function(e){t.call(this,e,this.__data__)}}function ll(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function fl(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,s;n<r;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function hl(t,e,n){return function(){var i=this.__on,r,s=ul(e);if(i){for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),r.value=e;return}}this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function dl(t,e,n){var i=ll(t+""),r,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,u=a.length,l;c<u;++c)for(r=0,l=a[c];r<s;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value}return}for(a=e?hl:fl,r=0;r<s;++r)this.each(a(i[r],e,n));return this}function Do(t,e,n){var i=Co(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function gl(t,e){return function(){return Do(this,t,e)}}function pl(t,e){return function(){return Do(this,t,e.apply(this,arguments))}}function _l(t,e){return this.each((typeof e=="function"?pl:gl)(t,e))}function*ml(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length,o;r<s;++r)(o=i[r])&&(yield o)}var Ro=[null];function it(t,e){this._groups=t,this._parents=e}function qe(){return new it([[document.documentElement]],Ro)}function vl(){return this}it.prototype=qe.prototype={constructor:it,select:Vc,selectAll:qc,selectChild:Jc,selectChildren:nu,filter:iu,data:uu,enter:ru,exit:fu,join:hu,merge:du,selection:vl,order:gu,sort:pu,call:mu,nodes:vu,node:yu,size:xu,empty:bu,each:wu,attr:$u,style:Du,property:Iu,classed:Hu,text:Yu,html:Zu,raise:Qu,lower:Ku,append:tl,insert:nl,remove:rl,clone:al,datum:cl,on:dl,dispatch:_l,[Symbol.iterator]:ml};function $t(t){return typeof t=="string"?new it([[document.querySelector(t)]],[document.documentElement]):new it([[t]],Ro)}var Re;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Re||(Re={}));var fe;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(fe||(fe={}));function Fe(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nr(t){let e,n,i;t.length!==2?(e=Fe,n=(a,c)=>Fe(t(a),c),i=(a,c)=>t(a)-c):(e=t===Fe||t===yl?t:xl,n=t,i=t);function r(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(a[f],c)<0?u=f+1:l=f}while(u<l)}return u}function s(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(a[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(a,c,u=0,l=a.length){const f=r(a,c,u,l-1);return f>u&&i(a[f-1],c)>-i(a[f],c)?f-1:f}return{left:r,center:o,right:s}}function xl(){return 0}function Fo(t){return t===null?NaN:+t}const Lo=nr(Fe),Ze=Lo.right,bl=Lo.left;nr(Fo).center;function wl(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class Xr extends Map{constructor(e,n=Sl){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Gr(this,e))}has(e){return super.has(Gr(this,e))}set(e,n){return super.set(kl(this,e),n)}delete(e){return super.delete(Tl(this,e))}}function Gr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function kl({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Tl({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Sl(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Ml=Math.sqrt(50),Al=Math.sqrt(10),Cl=Math.sqrt(2);function Tn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),s=i/Math.pow(10,r),o=s>=Ml?10:s>=Al?5:s>=Cl?2:1;let a,c,u;return r<0?(u=Math.pow(10,-r)/o,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,r)*o,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?Tn(t,e,n*2):[a,c,u]}function Ti(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,s,o]=i?Tn(e,t,n):Tn(t,e,n);if(!(s>=r))return[];const a=s-r+1,c=new Array(a);if(i)if(o<0)for(let u=0;u<a;++u)c[u]=(s-u)/-o;else for(let u=0;u<a;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<a;++u)c[u]=(r+u)/-o;else for(let u=0;u<a;++u)c[u]=(r+u)*o;return c}function Si(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mi(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Si(e,t,n):Si(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function qr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Zr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function $l(t,e,n=Fo){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(r-s)}}function El(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function*Nl(t){for(const e of t)yield*e}function Ol(t){return Array.from(Nl(t))}function Dl(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(r);++i<r;)s[i]=t+i*n;return s}function Rl(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Fl(t,e,n){var i={},r=i.noTrailing,s=r===void 0?!1:r,o=i.noLeading,a=o===void 0?!1:o,c=i.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function p(m){var _=m||{},x=_.upcomingOnly,y=x===void 0?!1:x;d(),f=!y}function g(){for(var m=arguments.length,_=new Array(m),x=0;x<m;x++)_[x]=arguments[x];var y=this,b=Date.now()-h;if(f)return;function T(){h=Date.now(),e.apply(y,_)}function v(){l=void 0}!a&&u&&!l&&T(),d(),u===void 0&&b>t?a?(h=Date.now(),s||(l=setTimeout(u?v:T,t))):T():s!==!0&&(l=setTimeout(u?v:T,u===void 0?t-b:t))}return g.cancel=p,g}var Et;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(Et||(Et={}));const re=t=>typeof t=="number",ir=t=>typeof t=="function",je=t=>Array.isArray(t),Ll=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",jr=t=>Ll(t)&&!je(t)&&!ir(t)&&!Sn(t),p_=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Vt=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Vt(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(o=>!n.includes(o)),s=Object.keys(e).filter(o=>!n.includes(o));if(r.length!==s.length)return!1;if(i.has(t))return!0;i.add(t);for(const o of r)if(!Vt(t[o],e[o],n,i))return!1;return!0}return t===e},Ai=t=>t.flat(),Mn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):Mn(i,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,s)=>(r[s]=e.has(i[s])?e.get(i[s]):Mn(i[s],e),r),n),n}return t},Be=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Sn(t)?t:Mn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(jr(t[r])&&jr(e[r])?i[r]=Be(t[r],e[r],n):Sn(e)?i[r]=e:i[r]=Mn(e[r]))}),i)},Qr=(t,e,n)=>Fl(e,t);function rr(t,e,n){return ir(e)?e(t,n):e}function Io(t,e,n){return rr(t,e,n)}function st(t,e,n){return rr(t,e,n)}function xe(t){return t.filter(e=>e&&!re(e))}function ee(t,e,n){return Math.min(Math.max(t,e),n)}function __(t,...e){if(!t)return[void 0,void 0];if(je(e)){let n=0,i=0;return t.forEach((r,s)=>{let o=0,a=0;for(const c of e){const u=st(r,c,s)||0;u>=0?o+=u:a+=u}o>i&&(i=o),a<n&&(n=a)}),[n,i]}}function m_(t,e,n,i){const r=t.map((a,c)=>st(a,e,c)||0),s=n.map((a,c)=>{const u=El(t,(l,f)=>st(l,a,f)||0);return u===0&&Array.isArray(i)?i[c]:u<0}),o=n.map(()=>[]);return t.forEach((a,c)=>{let u=r[c],l=r[c];n.forEach((f,h)=>{const d=st(a,f,c)||0;d>=0?o[h].push([u,u+=d]):o[h].push([l,l+=d])})}),o.forEach((a,c)=>{a.isMostlyNegative=s[c]}),o}function Il(t,...e){return t?Zr(t,(i,r)=>Zr(e,s=>st(i,s,r))):void 0}function zl(t,...e){return t?qr(t,(i,r)=>qr(e,s=>st(i,s,r))):void 0}function ci(t,...e){return[Il(t,...e),zl(t,...e)]}function Jr(t,e,n,i=Et.Auto){if(t.length<=1)return t[0];const s=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>st(c,n,u)-st(l,n,f)),o=s.map(([c,u])=>st(c,n,u)),a=i===Et.Right?bl(o,e,0,t.length-1):Ze(o,e,1,t.length);return i===Et.Right?s[a][0]:i===Et.Left?s[a-1][0]:e-o[a-1]>o[a]-e?s[a][0]:s[a-1][0]}function Bl(t,e,n,i=!1){if(!n)return[];const r=t.filter((s,o)=>{const a=st(s,n,o);return a>=e[0]&&a<=e[1]});if(i){if(r.length===0){const f=Jr(t,e[0],n,Et.Left),h=Jr(t,e[1],n,Et.Right);return[f,h].filter(Boolean)}const s=r[0],o=r[r.length-1],a=t.findIndex(f=>f===s),c=t.findIndex(f=>f===o),u=Math.max(0,a-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return r}var Bt=[],Pl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Hl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Kr="ResizeObserver loop completed with undelivered notifications.",Ul=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Kr}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Kr),window.dispatchEvent(t)},Pe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pe||(Pe={}));var Pt=function(t){return Object.freeze(t)},Wl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Pt(this)}return t})(),zo=(function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,c=e.width,u=e.height;return{x:n,y:i,top:r,right:s,bottom:o,left:a,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),sr=function(t){return t instanceof SVGElement&&"getBBox"in t},Bo=function(t){if(sr(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||t.getClientRects().length)},ts=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Vl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Le=typeof window<"u"?window:{},nn=new WeakMap,es=/auto|scroll/,Yl=/^tb|vertical/,Xl=/msie|trident/i.test(Le.navigator&&Le.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},se=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Wl((n?e:t)||0,(n?t:e)||0)},ns=Pt({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new zo(0,0,0,0)}),Po=function(t,e){if(e===void 0&&(e=!1),nn.has(t)&&!e)return nn.get(t);if(Bo(t))return nn.set(t,ns),ns;var n=getComputedStyle(t),i=sr(t)&&t.ownerSVGElement&&t.getBBox(),r=!Xl&&n.boxSizing==="border-box",s=Yl.test(n.writingMode||""),o=!i&&es.test(n.overflowY||""),a=!i&&es.test(n.overflowX||""),c=i?0:ht(n.paddingTop),u=i?0:ht(n.paddingRight),l=i?0:ht(n.paddingBottom),f=i?0:ht(n.paddingLeft),h=i?0:ht(n.borderTopWidth),d=i?0:ht(n.borderRightWidth),p=i?0:ht(n.borderBottomWidth),g=i?0:ht(n.borderLeftWidth),m=f+u,_=c+l,x=g+d,y=h+p,b=a?t.offsetHeight-y-t.clientHeight:0,T=o?t.offsetWidth-x-t.clientWidth:0,v=r?m+x:0,k=r?_+y:0,C=i?i.width:ht(n.width)-v-T,$=i?i.height:ht(n.height)-k-b,A=C+m+T+x,I=$+_+b+y,M=Pt({devicePixelContentBoxSize:se(Math.round(C*devicePixelRatio),Math.round($*devicePixelRatio),s),borderBoxSize:se(A,I,s),contentBoxSize:se(C,$,s),contentRect:new zo(f,c,C,$)});return nn.set(t,M),M},Ho=function(t,e,n){var i=Po(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Pe.DEVICE_PIXEL_CONTENT_BOX:return o;case Pe.BORDER_BOX:return r;default:return s}},Gl=(function(){function t(e){var n=Po(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Pt([n.borderBoxSize]),this.contentBoxSize=Pt([n.contentBoxSize]),this.devicePixelContentBoxSize=Pt([n.devicePixelContentBoxSize])}return t})(),Uo=function(t){if(Bo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},ql=function(){var t=1/0,e=[];Bt.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var l=new Gl(u.target),f=Uo(u.target);a.push(l),u.lastReportedSize=Ho(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},is=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Uo(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Zl=function(){var t=0;for(is(t);Pl();)t=ql(),is(t);return Hl()&&Ul(),t>0},ui,Wo=[],jl=function(){return Wo.splice(0).forEach(function(t){return t()})},Ql=function(t){if(!ui){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return jl()}).observe(n,i),ui=function(){n.textContent="".concat(e?e--:e++)}}Wo.push(t),ui()},Jl=function(t){Ql(function(){requestAnimationFrame(t)})},fn=0,Kl=function(){return!!fn},tf=250,ef={attributes:!0,characterData:!0,childList:!0,subtree:!0},rs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ss=function(t){return t===void 0&&(t=0),Date.now()+t},li=!1,nf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=tf),!li){li=!0;var i=ss(e);Jl(function(){var r=!1;try{r=Zl()}finally{if(li=!1,e=i-ss(),!Kl())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,ef)};document.body?n():Le.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rs.forEach(function(n){return Le.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),rs.forEach(function(n){return Le.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Ci=new nf,os=function(t){!fn&&t>0&&Ci.start(),fn+=t,!fn&&Ci.stop()},rf=function(t){return!sr(t)&&!Vl(t)&&getComputedStyle(t).display==="inline"},sf=(function(){function t(e,n){this.target=e,this.observedBox=n||Pe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Ho(this.target,this.observedBox,!0);return rf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),of=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),rn=new WeakMap,as=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},sn=(function(){function t(){}return t.connect=function(e,n){var i=new of(e,n);rn.set(e,i)},t.observe=function(e,n,i){var r=rn.get(e),s=r.observationTargets.length===0;as(r.observationTargets,n)<0&&(s&&Bt.push(r),r.observationTargets.push(new sf(n,i&&i.box)),os(1),Ci.schedule())},t.unobserve=function(e,n){var i=rn.get(e),r=as(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&Bt.splice(Bt.indexOf(i),1),i.observationTargets.splice(r,1),os(-1))},t.disconnect=function(e){var n=this,i=rn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t})(),af=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");sn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ts(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");sn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ts(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");sn.unobserve(this,e)},t.prototype.disconnect=function(){sn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const cf=globalThis.ResizeObserver||af,Vo={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:fe.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class He{constructor(e){this._defaultConfig=Vo,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=$t(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",He.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Be(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;$t(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||He.DEFAULT_CONTAINER_HEIGHT}get width(){return ee(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return ee(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===fe.Fit||e.sizing===fe.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new cf((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),s={width:r.width,height:r.height};!Vt(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}He.DEFAULT_CONTAINER_HEIGHT=300;function uf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function lf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ff=(function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lf(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=uf(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t})(),G="-ms-",An="-moz-",F="-webkit-",Yo="comm",or="rule",ar="decl",hf="@import",Xo="@keyframes",df="@layer",gf=Math.abs,Gn=String.fromCharCode,pf=Object.assign;function _f(t,e){return Y(t,0)^45?(((e<<2^Y(t,0))<<2^Y(t,1))<<2^Y(t,2))<<2^Y(t,3):0}function Go(t){return t.trim()}function mf(t,e){return(t=e.exec(t))?t[0]:t}function L(t,e,n){return t.replace(e,n)}function $i(t,e){return t.indexOf(e)}function Y(t,e){return t.charCodeAt(e)|0}function Ue(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function cr(t){return t.length}function on(t,e){return e.push(t),t}function vf(t,e){return t.map(e).join("")}var qn=1,he=1,qo=0,K=0,U=0,me="";function Zn(t,e,n,i,r,s,o){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:qn,column:he,length:o,return:""}}function be(t,e){return pf(Zn("",null,null,"",null,null,0),t,{length:-t.length},e)}function yf(){return U}function xf(){return U=K>0?Y(me,--K):0,he--,U===10&&(he=1,qn--),U}function nt(){return U=K<qo?Y(me,K++):0,he++,U===10&&(he=1,qn++),U}function gt(){return Y(me,K)}function hn(){return K}function Qe(t,e){return Ue(me,t,e)}function We(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zo(t){return qn=he=1,qo=dt(me=t),K=0,[]}function jo(t){return me="",t}function dn(t){return Go(Qe(K-1,Ei(t===91?t+2:t===40?t+1:t)))}function bf(t){for(;(U=gt())&&U<33;)nt();return We(t)>2||We(U)>3?"":" "}function wf(t,e){for(;--e&&nt()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Qe(t,hn()+(e<6&&gt()==32&&nt()==32))}function Ei(t){for(;nt();)switch(U){case t:return K;case 34:case 39:t!==34&&t!==39&&Ei(U);break;case 40:t===41&&Ei(t);break;case 92:nt();break}return K}function kf(t,e){for(;nt()&&t+U!==57;)if(t+U===84&&gt()===47)break;return"/*"+Qe(e,K-1)+"*"+Gn(t===47?t:nt())}function Tf(t){for(;!We(gt());)nt();return Qe(t,K)}function Sf(t){return jo(gn("",null,null,null,[""],t=Zo(t),0,[0],t))}function gn(t,e,n,i,r,s,o,a,c){for(var u=0,l=0,f=o,h=0,d=0,p=0,g=1,m=1,_=1,x=0,y="",b=r,T=s,v=i,k=y;m;)switch(p=x,x=nt()){case 40:if(p!=108&&Y(k,f-1)==58){$i(k+=L(dn(x),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=dn(x);break;case 9:case 10:case 13:case 32:k+=bf(p);break;case 92:k+=wf(hn()-1,7);continue;case 47:switch(gt()){case 42:case 47:on(Mf(kf(nt(),hn()),e,n),c);break;default:k+="/"}break;case 123*g:a[u++]=dt(k)*_;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+l:_==-1&&(k=L(k,/\f/g,"")),d>0&&dt(k)-f&&on(d>32?us(k+";",i,n,f-1):us(L(k," ","")+";",i,n,f-2),c);break;case 59:k+=";";default:if(on(v=cs(k,e,n,u,l,r,a,y,b=[],T=[],f),s),x===123)if(l===0)gn(k,e,v,v,b,s,f,a,T);else switch(h===99&&Y(k,3)===110?100:h){case 100:case 108:case 109:case 115:gn(t,v,v,i&&on(cs(t,v,v,0,0,r,a,y,r,b=[],f),T),r,T,f,a,i?b:T);break;default:gn(k,v,v,v,[""],T,0,a,T)}}u=l=d=0,g=_=1,y=k="",f=o;break;case 58:f=1+dt(k),d=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&xf()==125)continue}switch(k+=Gn(x),x*g){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[u++]=(dt(k)-1)*_,_=1;break;case 64:gt()===45&&(k+=dn(nt())),h=gt(),l=f=dt(y=k+=Tf(hn())),x++;break;case 45:p===45&&dt(k)==2&&(g=0)}}return s}function cs(t,e,n,i,r,s,o,a,c,u,l){for(var f=r-1,h=r===0?s:[""],d=cr(h),p=0,g=0,m=0;p<i;++p)for(var _=0,x=Ue(t,f+1,f=gf(g=o[p])),y=t;_<d;++_)(y=Go(g>0?h[_]+" "+x:L(x,/&\f/g,h[_])))&&(c[m++]=y);return Zn(t,e,n,r===0?or:a,c,u,l)}function Mf(t,e,n){return Zn(t,e,n,Yo,Gn(yf()),Ue(t,2,-2),0)}function us(t,e,n,i){return Zn(t,e,n,ar,Ue(t,0,i),Ue(t,i+1,-1),i)}function oe(t,e){for(var n="",i=cr(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Af(t,e,n,i){switch(t.type){case df:if(t.children.length)break;case hf:case ar:return t.return=t.return||t.value;case Yo:return"";case Xo:return t.return=t.value+"{"+oe(t.children,i)+"}";case or:t.value=t.props.join(",")}return dt(n=oe(t.children,i))?t.return=t.value+"{"+n+"}":""}function Cf(t){var e=cr(t);return function(n,i,r,s){for(var o="",a=0;a<e;a++)o+=t[a](n,i,r,s)||"";return o}}function $f(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ef(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Nf=function(e,n,i){for(var r=0,s=0;r=s,s=gt(),r===38&&s===12&&(n[i]=1),!We(s);)nt();return Qe(e,K)},Of=function(e,n){var i=-1,r=44;do switch(We(r)){case 0:r===38&&gt()===12&&(n[i]=1),e[i]+=Nf(K-1,n,i);break;case 2:e[i]+=dn(r);break;case 4:if(r===44){e[++i]=gt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=Gn(r)}while(r=nt());return e},Df=function(e,n){return jo(Of(Zo(e),n))},ls=new WeakMap,Rf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ls.get(i))&&!r){ls.set(e,!0);for(var s=[],o=Df(n,s),a=i.props,c=0,u=0;c<o.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=s[c]?o[c].replace(/&\f/g,a[l]):a[l]+" "+o[c]}}},Ff=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Qo(t,e){switch(_f(t,e)){case 5103:return F+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return F+t+An+t+G+t+t;case 6828:case 4268:return F+t+G+t+t;case 6165:return F+t+G+"flex-"+t+t;case 5187:return F+t+L(t,/(\w+).+(:[^]+)/,F+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return F+t+G+"flex-item-"+L(t,/flex-|-self/,"")+t;case 4675:return F+t+G+"flex-line-pack"+L(t,/align-content|flex-|-self/,"")+t;case 5548:return F+t+G+L(t,"shrink","negative")+t;case 5292:return F+t+G+L(t,"basis","preferred-size")+t;case 6060:return F+"box-"+L(t,"-grow","")+F+t+G+L(t,"grow","positive")+t;case 4554:return F+L(t,/([^-])(transform)/g,"$1"+F+"$2")+t;case 6187:return L(L(L(t,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),t,"")+t;case 5495:case 3959:return L(t,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return L(L(t,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+t+t;case 4095:case 3583:case 4068:case 2532:return L(t,/(.+)-inline(.+)/,F+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(Y(t,e+1)){case 109:if(Y(t,e+4)!==45)break;case 102:return L(t,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+An+(Y(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$i(t,"stretch")?Qo(L(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Y(t,e+1)!==115)break;case 6444:switch(Y(t,dt(t)-3-(~$i(t,"!important")&&10))){case 107:return L(t,":",":"+F)+t;case 101:return L(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Y(t,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+G+"$2box$3")+t}break;case 5936:switch(Y(t,e+11)){case 114:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return F+t+G+t+t}return t}var Lf=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=Qo(e.value,e.length);break;case Xo:return oe([be(e,{value:L(e.value,"@","@"+F)})],r);case or:if(e.length)return vf(e.props,function(s){switch(mf(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([be(e,{props:[L(s,/:(read-\w+)/,":"+An+"$1")]})],r);case"::placeholder":return oe([be(e,{props:[L(s,/:(plac\w+)/,":"+F+"input-$1")]}),be(e,{props:[L(s,/:(plac\w+)/,":"+An+"$1")]}),be(e,{props:[L(s,/:(plac\w+)/,G+"input-$1")]})],r)}return""})}},If=[Lf],zf=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||If,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),_=1;_<m.length;_++)s[m[_]]=!0;a.push(g)});var c,u=[Rf,Ff];{var l,f=[Af,$f(function(g){l.insert(g)})],h=Cf(u.concat(r,f)),d=function(m){return oe(Sf(m),h)};c=function(m,_,x,y){l=x,d(m?m+"{"+_.styles+"}":_.styles),y&&(p.inserted[_.name]=!0)}}var p={key:n,sheet:new ff({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p.sheet.hydrate(a),p};function Bf(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Pf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hf=/[A-Z]|^ms/g,Uf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jo=function(e){return e.charCodeAt(1)===45},fs=function(e){return e!=null&&typeof e!="boolean"},fi=Ef(function(t){return Jo(t)?t:t.replace(Hf,"-$&").toLowerCase()}),hs=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uf,function(i,r,s){return Nt={name:r,styles:s,next:Nt},r})}return Pf[e]!==1&&!Jo(e)&&typeof n=="number"&&n!==0?n+"px":n};function Cn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Nt={name:r.name,styles:r.styles,next:Nt},r.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Nt={name:o.name,styles:o.styles,next:Nt},o=o.next;var a=s.styles+";";return a}return Wf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Wf(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Cn(t,e,n[r])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?i+=s+"{"+e[a]+"}":fs(a)&&(i+=fi(s)+":"+hs(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var c=0;c<o.length;c++)fs(o[c])&&(i+=fi(s)+":"+hs(s,o[c])+";");else{var u=Cn(t,e,o);switch(s){case"animation":case"animationName":{i+=fi(s)+":"+u+";";break}default:i+=s+"{"+u+"}"}}}return i}var ds=/label:\s*([^\s;{]+)\s*(;|$)/g,Nt;function hi(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Nt=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,r+=Cn(n,e,s);else{var o=s;r+=o[0]}for(var a=1;a<t.length;a++)if(r+=Cn(n,e,t[a]),i){var c=s;r+=c[a]}ds.lastIndex=0;for(var u="",l;(l=ds.exec(r))!==null;)u+="-"+l[1];var f=Bf(r)+u;return{name:f,styles:r,next:Nt}}function Ko(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Vf=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},Yf=function(e,n,i){Vf(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function gs(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function ps(t,e,n){var i=[],r=Ko(t,i,n);return i.length<2?n:r+e(i)}var Xf=function(e){var n=zf(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered,void 0);return Yf(n,f),n.key+"-"+f.name},r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered),h="animation-"+f.name;return gs(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},s=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered);gs(n,f)},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return ps(n.registered,i,Gf(u))};return{css:i,cx:o,injectGlobal:s,keyframes:r,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ko.bind(null,n.registered),merge:ps.bind(null,n.registered,i)}},Gf=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var s=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))s=t(r);else{s="";for(var o in r)r[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=r}s&&(n&&(n+=" "),n+=s)}}return n},ta=Xf({key:"css"}),ur=ta.injectGlobal,X=ta.css;function Ni(t){var e;t=String(t);const n=parseFloat(t),i=((e=t.match(/[\d.\-+]*\s*(.*)/))===null||e===void 0?void 0:e[1])||"";return[n,i]}function ea(){return typeof window<"u"&&typeof document<"u"}function Oi(t,e){var n;const i=Ni(getComputedStyle(t).getPropertyValue(e));return i[0]*((n=lr(i[1],t))!==null&&n!==void 0?n:1)}function na(t,e){const n=document.createElement("div");n.style.height=`128${t}`,e.appendChild(n);const i=Oi(n,"height")/128;return e.removeChild(n),i}let di=null;function we(){return ea()?(di===null&&(di=na("in",document.body)),di):96}function lr(t,e){var n;if(!t&&t!==0)return null;if(!ea()){const o=Ni(String(t));if(!isNaN(o[0])){const a=((n=o[1])===null||n===void 0?void 0:n.toLowerCase())||"px";if(a==="px"||a==="")return o[0];if(a==="em"||a==="rem")return o[0]*16;if(a==="in")return o[0]*96;if(a==="cm")return o[0]*(96/2.54);if(a==="mm")return o[0]*(96/25.4);if(a==="pt")return o[0]*(96/72);if(a==="pc")return o[0]*(96/6)}return null}let i=document.body;e&&e!==window&&e!==document&&(i=e);const r=(String(t)||"px").trim().toLowerCase();switch(r){case"%":return i.clientHeight/100;case"ch":case"ex":return na(r,i);case"em":return Oi(i,"font-size");case"rem":return Oi(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return we();case"cm":return we()/2.54;case"mm":return we()/25.4;case"pt":return we()/72;case"pc":return we()/6;case"px":return 1}const s=Ni(r);if(!isNaN(s[0])){if(s[1]){const o=lr(s[1],i);return typeof o=="number"?s[0]*o:null}return s[0]}return null}function ia(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const _s=new WeakMap;function qf(t,e){const n=t.substr(4,t.length-5);let i=_s.get(e);if(i||(i=new Map,_s.set(e,i)),i.has(n))return i.get(n);const r=getComputedStyle(e).getPropertyValue(n);return i.set(n,r),r}function Zf(t,e,n=0){const[i,r,s,o]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<l||c<o||s<a||u<i)}const ra='html[data-theme="dark"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark';function fr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function sa(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Je(){}var Ve=.7,$n=1/Ve,ae="\\s*([+-]?\\d+)\\s*",Ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jf=/^#([0-9a-f]{3,8})$/,Qf=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),Jf=new RegExp(`^rgb\\(${pt},${pt},${pt}\\)$`),Kf=new RegExp(`^rgba\\(${ae},${ae},${ae},${Ye}\\)$`),th=new RegExp(`^rgba\\(${pt},${pt},${pt},${Ye}\\)$`),eh=new RegExp(`^hsl\\(${Ye},${pt},${pt}\\)$`),nh=new RegExp(`^hsla\\(${Ye},${pt},${pt},${Ye}\\)$`),ms={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fr(Je,Yt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vs,formatHex:vs,formatHex8:ih,formatHsl:rh,formatRgb:ys,toString:ys});function vs(){return this.rgb().formatHex()}function ih(){return this.rgb().formatHex8()}function rh(){return oa(this).formatHsl()}function ys(){return this.rgb().formatRgb()}function Yt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xs(e):n===3?new Q(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?an(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?an(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Qf.exec(t))?new Q(e[1],e[2],e[3],1):(e=Jf.exec(t))?new Q(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Kf.exec(t))?an(e[1],e[2],e[3],e[4]):(e=th.exec(t))?an(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eh.exec(t))?ks(e[1],e[2]/100,e[3]/100,1):(e=nh.exec(t))?ks(e[1],e[2]/100,e[3]/100,e[4]):ms.hasOwnProperty(t)?xs(ms[t]):t==="transparent"?new Q(NaN,NaN,NaN,0):null}function xs(t){return new Q(t>>16&255,t>>8&255,t&255,1)}function an(t,e,n,i){return i<=0&&(t=e=n=NaN),new Q(t,e,n,i)}function sh(t){return t instanceof Je||(t=Yt(t)),t?(t=t.rgb(),new Q(t.r,t.g,t.b,t.opacity)):new Q}function Di(t,e,n,i){return arguments.length===1?sh(t):new Q(t,e,n,i??1)}function Q(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}fr(Q,Di,sa(Je,{brighter(t){return t=t==null?$n:Math.pow($n,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Q(Ht(this.r),Ht(this.g),Ht(this.b),En(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bs,formatHex:bs,formatHex8:oh,formatRgb:ws,toString:ws}));function bs(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}`}function oh(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}${Lt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ws(){const t=En(this.opacity);return`${t===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${t===1?")":`, ${t})`}`}function En(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ht(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Lt(t){return t=Ht(t),(t<16?"0":"")+t.toString(16)}function ks(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ct(t,e,n,i)}function oa(t){if(t instanceof ct)return new ct(t.h,t.s,t.l,t.opacity);if(t instanceof Je||(t=Yt(t)),!t)return new ct;if(t instanceof ct)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,c=(s+r)/2;return a?(e===s?o=(n-i)/a+(n<i)*6:n===s?o=(i-e)/a+2:o=(e-n)/a+4,a/=c<.5?s+r:2-s-r,o*=60):a=c>0&&c<1?0:o,new ct(o,a,c,t.opacity)}function hr(t,e,n,i){return arguments.length===1?oa(t):new ct(t,e,n,i??1)}function ct(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}fr(ct,hr,sa(Je,{brighter(t){return t=t==null?$n:Math.pow($n,t),new ct(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new ct(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Q(gi(t>=240?t-240:t+120,r,i),gi(t,r,i),gi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new ct(Ts(this.h),cn(this.s),cn(this.l),En(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=En(this.opacity);return`${t===1?"hsl(":"hsla("}${Ts(this.h)}, ${cn(this.s)*100}%, ${cn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ts(t){return t=(t||0)%360,t<0?t+360:t}function cn(t){return Math.max(0,Math.min(1,t||0))}function gi(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Ce=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],ah=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Mt=t=>`--vis-${re(t)?`color${t%Ce.length}`:t}`;function ch(t,e=.4){const n=hr(t);return n.l=n.l*(1+e),n.formatHex()}function uh(t,e=.4,n=.6){const i=hr(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const Nn=10,Ri=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Fi=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function At(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const lh=t=>`<mask id="${At(t)}">
1
+ import{d as Yn,o as ne,c as ie,p as oi,F as Mc,y as Ac,i as Cc,O as $c,m as Ec,t as Nc,ap as Oc,aq as Dc,h as Ji,ar as Vr,as as Rc,am as xo,C as bo,G as wo,ab as Ki,B as ze,r as Ct,W as Fc,at as Lc,T as Ic,au as ai,J as ye,I as zc}from"./BPKwYP2Q.js";import{g as Bc}from"./D7W_4Sqc.js";const Pc=Yn({__name:"ChartLegend",props:{items:{},dense:{type:Boolean}},setup(t){return(e,n)=>(ne(),ie("div",{class:oi(["flex items-center justify-center flex-wrap",t.dense?"gap-4 mt-2 text-xs text-gray-500":"gap-6 mt-4 text-sm"])},[(ne(!0),ie(Mc,null,Ac(t.items,i=>(ne(),ie("span",{key:i.label,class:oi(["flex items-center",t.dense?"gap-1":"gap-2"])},[Cc("span",{class:oi(["rounded-full inline-block",t.dense?"w-2.5 h-2.5":"w-3 h-3"]),style:$c({backgroundColor:i.color})},null,6),Ec(" "+Nc(i.label),1)],2))),128))],2))}}),g_=Object.assign(Pc,{__name:"ChartLegend"});var ki="http://www.w3.org/1999/xhtml";const Yr={svg:"http://www.w3.org/2000/svg",xhtml:ki,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Yr.hasOwnProperty(e)?{space:Yr[e],local:t}:t}function Hc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ki&&e.documentElement.namespaceURI===ki?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ko(t){var e=Xn(t);return(e.local?Uc:Hc)(e)}function Wc(){}function tr(t){return t==null?Wc:function(){return this.querySelector(t)}}function Vc(t){typeof t!="function"&&(t=tr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=new Array(o),c,u,l=0;l<o;++l)(c=s[l])&&(u=t.call(c,c.__data__,l,s))&&("__data__"in c&&(u.__data__=c.__data__),a[l]=u);return new it(i,this._parents)}function Yc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xc(){return[]}function To(t){return t==null?Xc:function(){return this.querySelectorAll(t)}}function Gc(t){return function(){return Yc(t.apply(this,arguments))}}function qc(t){typeof t=="function"?t=Gc(t):t=To(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o=e[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&(i.push(t.call(c,c.__data__,u,o)),r.push(c));return new it(i,r)}function So(t){return function(){return this.matches(t)}}function Mo(t){return function(e){return e.matches(t)}}var Zc=Array.prototype.find;function jc(t){return function(){return Zc.call(this.children,t)}}function Qc(){return this.firstElementChild}function Jc(t){return this.select(t==null?Qc:jc(typeof t=="function"?t:Mo(t)))}var Kc=Array.prototype.filter;function tu(){return Array.from(this.children)}function eu(t){return function(){return Kc.call(this.children,t)}}function nu(t){return this.selectAll(t==null?tu:eu(typeof t=="function"?t:Mo(t)))}function iu(t){typeof t!="function"&&(t=So(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new it(i,this._parents)}function Ao(t){return new Array(t.length)}function ru(){return new it(this._enter||this._groups.map(Ao),this._parents)}function kn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}kn.prototype={constructor:kn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function ou(t,e,n,i,r,s){for(var o=0,a,c=e.length,u=s.length;o<u;++o)(a=e[o])?(a.__data__=s[o],i[o]=a):n[o]=new kn(t,s[o]);for(;o<c;++o)(a=e[o])&&(r[o]=a)}function au(t,e,n,i,r,s,o){var a,c,u=new Map,l=e.length,f=s.length,h=new Array(l),d;for(a=0;a<l;++a)(c=e[a])&&(h[a]=d=o.call(c,c.__data__,a,e)+"",u.has(d)?r[a]=c:u.set(d,c));for(a=0;a<f;++a)d=o.call(t,s[a],a,s)+"",(c=u.get(d))?(i[a]=c,c.__data__=s[a],u.delete(d)):n[a]=new kn(t,s[a]);for(a=0;a<l;++a)(c=e[a])&&u.get(h[a])===c&&(r[a]=c)}function cu(t){return t.__data__}function uu(t,e){if(!arguments.length)return Array.from(this,cu);var n=e?au:ou,i=this._parents,r=this._groups;typeof t!="function"&&(t=su(t));for(var s=r.length,o=new Array(s),a=new Array(s),c=new Array(s),u=0;u<s;++u){var l=i[u],f=r[u],h=f.length,d=lu(t.call(l,l&&l.__data__,u,i)),p=d.length,g=a[u]=new Array(p),m=o[u]=new Array(p),_=c[u]=new Array(h);n(l,f,g,m,_,d,e);for(var x=0,y=0,b,T;x<p;++x)if(b=g[x]){for(x>=y&&(y=x+1);!(T=m[y])&&++y<p;);b._next=T||null}}return o=new it(o,i),o._enter=a,o._exit=c,o}function lu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function fu(){return new it(this._exit||this._groups.map(Ao),this._parents)}function hu(t,e,n){var i=this.enter(),r=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?s.remove():n(s),i&&r?i.merge(r).order():r}function du(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),c=0;c<o;++c)for(var u=n[c],l=i[c],f=u.length,h=a[c]=new Array(f),d,p=0;p<f;++p)(d=u[p]||l[p])&&(h[p]=d);for(;c<r;++c)a[c]=n[c];return new it(a,this._parents)}function gu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,s=i[r],o;--r>=0;)(o=i[r])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function pu(t){t||(t=_u);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o=n[s],a=o.length,c=r[s]=new Array(a),u,l=0;l<a;++l)(u=o[l])&&(c[l]=u);c.sort(e)}return new it(r,this._parents).order()}function _u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vu(){return Array.from(this)}function yu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null}function xu(){let t=0;for(const e of this)++t;return t}function bu(){return!this.node()}function wu(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],s=0,o=r.length,a;s<o;++s)(a=r[s])&&t.call(a,a.__data__,s,r);return this}function ku(t){return function(){this.removeAttribute(t)}}function Tu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Su(t,e){return function(){this.setAttribute(t,e)}}function Mu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Au(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Cu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $u(t,e){var n=Xn(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Tu:ku:typeof e=="function"?n.local?Cu:Au:n.local?Mu:Su)(n,e))}function Co(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Eu(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ou(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Du(t,e,n){return arguments.length>1?this.each((e==null?Eu:typeof e=="function"?Ou:Nu)(t,e,n??"")):le(this.node(),t)}function le(t,e){return t.style.getPropertyValue(e)||Co(t).getComputedStyle(t,null).getPropertyValue(e)}function Ru(t){return function(){delete this[t]}}function Fu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Iu(t,e){return arguments.length>1?this.each((e==null?Ru:typeof e=="function"?Lu:Fu)(t,e)):this.node()[t]}function $o(t){return t.trim().split(/^|\s+/)}function er(t){return t.classList||new Eo(t)}function Eo(t){this._node=t,this._names=$o(t.getAttribute("class")||"")}Eo.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function No(t,e){for(var n=er(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Oo(t,e){for(var n=er(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function zu(t){return function(){No(this,t)}}function Bu(t){return function(){Oo(this,t)}}function Pu(t,e){return function(){(e.apply(this,arguments)?No:Oo)(this,t)}}function Hu(t,e){var n=$o(t+"");if(arguments.length<2){for(var i=er(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Pu:e?zu:Bu)(n,e))}function Uu(){this.textContent=""}function Wu(t){return function(){this.textContent=t}}function Vu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Yu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Vu:Wu)(t)):this.node().textContent}function Xu(){this.innerHTML=""}function Gu(t){return function(){this.innerHTML=t}}function qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Zu(t){return arguments.length?this.each(t==null?Xu:(typeof t=="function"?qu:Gu)(t)):this.node().innerHTML}function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Qu(){return this.each(ju)}function Ju(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ku(){return this.each(Ju)}function tl(t){var e=typeof t=="function"?t:ko(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function el(){return null}function nl(t,e){var n=typeof t=="function"?t:ko(t),i=e==null?el:typeof e=="function"?e:tr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function il(){var t=this.parentNode;t&&t.removeChild(this)}function rl(){return this.each(il)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ol(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function al(t){return this.select(t?ol:sl)}function cl(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ul(t){return function(e){t.call(this,e,this.__data__)}}function ll(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function fl(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,s;n<r;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function hl(t,e,n){return function(){var i=this.__on,r,s=ul(e);if(i){for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),r.value=e;return}}this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function dl(t,e,n){var i=ll(t+""),r,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,u=a.length,l;c<u;++c)for(r=0,l=a[c];r<s;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value}return}for(a=e?hl:fl,r=0;r<s;++r)this.each(a(i[r],e,n));return this}function Do(t,e,n){var i=Co(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function gl(t,e){return function(){return Do(this,t,e)}}function pl(t,e){return function(){return Do(this,t,e.apply(this,arguments))}}function _l(t,e){return this.each((typeof e=="function"?pl:gl)(t,e))}function*ml(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length,o;r<s;++r)(o=i[r])&&(yield o)}var Ro=[null];function it(t,e){this._groups=t,this._parents=e}function qe(){return new it([[document.documentElement]],Ro)}function vl(){return this}it.prototype=qe.prototype={constructor:it,select:Vc,selectAll:qc,selectChild:Jc,selectChildren:nu,filter:iu,data:uu,enter:ru,exit:fu,join:hu,merge:du,selection:vl,order:gu,sort:pu,call:mu,nodes:vu,node:yu,size:xu,empty:bu,each:wu,attr:$u,style:Du,property:Iu,classed:Hu,text:Yu,html:Zu,raise:Qu,lower:Ku,append:tl,insert:nl,remove:rl,clone:al,datum:cl,on:dl,dispatch:_l,[Symbol.iterator]:ml};function $t(t){return typeof t=="string"?new it([[document.querySelector(t)]],[document.documentElement]):new it([[t]],Ro)}var Re;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Re||(Re={}));var fe;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(fe||(fe={}));function Fe(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nr(t){let e,n,i;t.length!==2?(e=Fe,n=(a,c)=>Fe(t(a),c),i=(a,c)=>t(a)-c):(e=t===Fe||t===yl?t:xl,n=t,i=t);function r(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(a[f],c)<0?u=f+1:l=f}while(u<l)}return u}function s(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(a[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(a,c,u=0,l=a.length){const f=r(a,c,u,l-1);return f>u&&i(a[f-1],c)>-i(a[f],c)?f-1:f}return{left:r,center:o,right:s}}function xl(){return 0}function Fo(t){return t===null?NaN:+t}const Lo=nr(Fe),Ze=Lo.right,bl=Lo.left;nr(Fo).center;function wl(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class Xr extends Map{constructor(e,n=Sl){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Gr(this,e))}has(e){return super.has(Gr(this,e))}set(e,n){return super.set(kl(this,e),n)}delete(e){return super.delete(Tl(this,e))}}function Gr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function kl({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Tl({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Sl(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Ml=Math.sqrt(50),Al=Math.sqrt(10),Cl=Math.sqrt(2);function Tn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),s=i/Math.pow(10,r),o=s>=Ml?10:s>=Al?5:s>=Cl?2:1;let a,c,u;return r<0?(u=Math.pow(10,-r)/o,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,r)*o,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?Tn(t,e,n*2):[a,c,u]}function Ti(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,s,o]=i?Tn(e,t,n):Tn(t,e,n);if(!(s>=r))return[];const a=s-r+1,c=new Array(a);if(i)if(o<0)for(let u=0;u<a;++u)c[u]=(s-u)/-o;else for(let u=0;u<a;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<a;++u)c[u]=(r+u)/-o;else for(let u=0;u<a;++u)c[u]=(r+u)*o;return c}function Si(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mi(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Si(e,t,n):Si(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function qr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Zr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function $l(t,e,n=Fo){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(r-s)}}function El(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function*Nl(t){for(const e of t)yield*e}function Ol(t){return Array.from(Nl(t))}function Dl(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(r);++i<r;)s[i]=t+i*n;return s}function Rl(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Fl(t,e,n){var i={},r=i.noTrailing,s=r===void 0?!1:r,o=i.noLeading,a=o===void 0?!1:o,c=i.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function p(m){var _=m||{},x=_.upcomingOnly,y=x===void 0?!1:x;d(),f=!y}function g(){for(var m=arguments.length,_=new Array(m),x=0;x<m;x++)_[x]=arguments[x];var y=this,b=Date.now()-h;if(f)return;function T(){h=Date.now(),e.apply(y,_)}function v(){l=void 0}!a&&u&&!l&&T(),d(),u===void 0&&b>t?a?(h=Date.now(),s||(l=setTimeout(u?v:T,t))):T():s!==!0&&(l=setTimeout(u?v:T,u===void 0?t-b:t))}return g.cancel=p,g}var Et;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(Et||(Et={}));const re=t=>typeof t=="number",ir=t=>typeof t=="function",je=t=>Array.isArray(t),Ll=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",jr=t=>Ll(t)&&!je(t)&&!ir(t)&&!Sn(t),p_=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Vt=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Vt(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(o=>!n.includes(o)),s=Object.keys(e).filter(o=>!n.includes(o));if(r.length!==s.length)return!1;if(i.has(t))return!0;i.add(t);for(const o of r)if(!Vt(t[o],e[o],n,i))return!1;return!0}return t===e},Ai=t=>t.flat(),Mn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):Mn(i,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,s)=>(r[s]=e.has(i[s])?e.get(i[s]):Mn(i[s],e),r),n),n}return t},Be=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Sn(t)?t:Mn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(jr(t[r])&&jr(e[r])?i[r]=Be(t[r],e[r],n):Sn(e)?i[r]=e:i[r]=Mn(e[r]))}),i)},Qr=(t,e,n)=>Fl(e,t);function rr(t,e,n){return ir(e)?e(t,n):e}function Io(t,e,n){return rr(t,e,n)}function st(t,e,n){return rr(t,e,n)}function xe(t){return t.filter(e=>e&&!re(e))}function ee(t,e,n){return Math.min(Math.max(t,e),n)}function __(t,...e){if(!t)return[void 0,void 0];if(je(e)){let n=0,i=0;return t.forEach((r,s)=>{let o=0,a=0;for(const c of e){const u=st(r,c,s)||0;u>=0?o+=u:a+=u}o>i&&(i=o),a<n&&(n=a)}),[n,i]}}function m_(t,e,n,i){const r=t.map((a,c)=>st(a,e,c)||0),s=n.map((a,c)=>{const u=El(t,(l,f)=>st(l,a,f)||0);return u===0&&Array.isArray(i)?i[c]:u<0}),o=n.map(()=>[]);return t.forEach((a,c)=>{let u=r[c],l=r[c];n.forEach((f,h)=>{const d=st(a,f,c)||0;d>=0?o[h].push([u,u+=d]):o[h].push([l,l+=d])})}),o.forEach((a,c)=>{a.isMostlyNegative=s[c]}),o}function Il(t,...e){return t?Zr(t,(i,r)=>Zr(e,s=>st(i,s,r))):void 0}function zl(t,...e){return t?qr(t,(i,r)=>qr(e,s=>st(i,s,r))):void 0}function ci(t,...e){return[Il(t,...e),zl(t,...e)]}function Jr(t,e,n,i=Et.Auto){if(t.length<=1)return t[0];const s=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>st(c,n,u)-st(l,n,f)),o=s.map(([c,u])=>st(c,n,u)),a=i===Et.Right?bl(o,e,0,t.length-1):Ze(o,e,1,t.length);return i===Et.Right?s[a][0]:i===Et.Left?s[a-1][0]:e-o[a-1]>o[a]-e?s[a][0]:s[a-1][0]}function Bl(t,e,n,i=!1){if(!n)return[];const r=t.filter((s,o)=>{const a=st(s,n,o);return a>=e[0]&&a<=e[1]});if(i){if(r.length===0){const f=Jr(t,e[0],n,Et.Left),h=Jr(t,e[1],n,Et.Right);return[f,h].filter(Boolean)}const s=r[0],o=r[r.length-1],a=t.findIndex(f=>f===s),c=t.findIndex(f=>f===o),u=Math.max(0,a-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return r}var Bt=[],Pl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Hl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Kr="ResizeObserver loop completed with undelivered notifications.",Ul=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Kr}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Kr),window.dispatchEvent(t)},Pe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pe||(Pe={}));var Pt=function(t){return Object.freeze(t)},Wl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Pt(this)}return t})(),zo=(function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,c=e.width,u=e.height;return{x:n,y:i,top:r,right:s,bottom:o,left:a,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),sr=function(t){return t instanceof SVGElement&&"getBBox"in t},Bo=function(t){if(sr(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||t.getClientRects().length)},ts=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Vl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Le=typeof window<"u"?window:{},nn=new WeakMap,es=/auto|scroll/,Yl=/^tb|vertical/,Xl=/msie|trident/i.test(Le.navigator&&Le.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},se=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Wl((n?e:t)||0,(n?t:e)||0)},ns=Pt({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new zo(0,0,0,0)}),Po=function(t,e){if(e===void 0&&(e=!1),nn.has(t)&&!e)return nn.get(t);if(Bo(t))return nn.set(t,ns),ns;var n=getComputedStyle(t),i=sr(t)&&t.ownerSVGElement&&t.getBBox(),r=!Xl&&n.boxSizing==="border-box",s=Yl.test(n.writingMode||""),o=!i&&es.test(n.overflowY||""),a=!i&&es.test(n.overflowX||""),c=i?0:ht(n.paddingTop),u=i?0:ht(n.paddingRight),l=i?0:ht(n.paddingBottom),f=i?0:ht(n.paddingLeft),h=i?0:ht(n.borderTopWidth),d=i?0:ht(n.borderRightWidth),p=i?0:ht(n.borderBottomWidth),g=i?0:ht(n.borderLeftWidth),m=f+u,_=c+l,x=g+d,y=h+p,b=a?t.offsetHeight-y-t.clientHeight:0,T=o?t.offsetWidth-x-t.clientWidth:0,v=r?m+x:0,k=r?_+y:0,C=i?i.width:ht(n.width)-v-T,$=i?i.height:ht(n.height)-k-b,A=C+m+T+x,I=$+_+b+y,M=Pt({devicePixelContentBoxSize:se(Math.round(C*devicePixelRatio),Math.round($*devicePixelRatio),s),borderBoxSize:se(A,I,s),contentBoxSize:se(C,$,s),contentRect:new zo(f,c,C,$)});return nn.set(t,M),M},Ho=function(t,e,n){var i=Po(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Pe.DEVICE_PIXEL_CONTENT_BOX:return o;case Pe.BORDER_BOX:return r;default:return s}},Gl=(function(){function t(e){var n=Po(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Pt([n.borderBoxSize]),this.contentBoxSize=Pt([n.contentBoxSize]),this.devicePixelContentBoxSize=Pt([n.devicePixelContentBoxSize])}return t})(),Uo=function(t){if(Bo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},ql=function(){var t=1/0,e=[];Bt.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var l=new Gl(u.target),f=Uo(u.target);a.push(l),u.lastReportedSize=Ho(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},is=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Uo(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Zl=function(){var t=0;for(is(t);Pl();)t=ql(),is(t);return Hl()&&Ul(),t>0},ui,Wo=[],jl=function(){return Wo.splice(0).forEach(function(t){return t()})},Ql=function(t){if(!ui){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return jl()}).observe(n,i),ui=function(){n.textContent="".concat(e?e--:e++)}}Wo.push(t),ui()},Jl=function(t){Ql(function(){requestAnimationFrame(t)})},fn=0,Kl=function(){return!!fn},tf=250,ef={attributes:!0,characterData:!0,childList:!0,subtree:!0},rs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ss=function(t){return t===void 0&&(t=0),Date.now()+t},li=!1,nf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=tf),!li){li=!0;var i=ss(e);Jl(function(){var r=!1;try{r=Zl()}finally{if(li=!1,e=i-ss(),!Kl())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,ef)};document.body?n():Le.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rs.forEach(function(n){return Le.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),rs.forEach(function(n){return Le.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Ci=new nf,os=function(t){!fn&&t>0&&Ci.start(),fn+=t,!fn&&Ci.stop()},rf=function(t){return!sr(t)&&!Vl(t)&&getComputedStyle(t).display==="inline"},sf=(function(){function t(e,n){this.target=e,this.observedBox=n||Pe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Ho(this.target,this.observedBox,!0);return rf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),of=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),rn=new WeakMap,as=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},sn=(function(){function t(){}return t.connect=function(e,n){var i=new of(e,n);rn.set(e,i)},t.observe=function(e,n,i){var r=rn.get(e),s=r.observationTargets.length===0;as(r.observationTargets,n)<0&&(s&&Bt.push(r),r.observationTargets.push(new sf(n,i&&i.box)),os(1),Ci.schedule())},t.unobserve=function(e,n){var i=rn.get(e),r=as(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&Bt.splice(Bt.indexOf(i),1),i.observationTargets.splice(r,1),os(-1))},t.disconnect=function(e){var n=this,i=rn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t})(),af=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");sn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ts(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");sn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ts(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");sn.unobserve(this,e)},t.prototype.disconnect=function(){sn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const cf=globalThis.ResizeObserver||af,Vo={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:fe.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class He{constructor(e){this._defaultConfig=Vo,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=$t(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",He.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Be(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;$t(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||He.DEFAULT_CONTAINER_HEIGHT}get width(){return ee(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return ee(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===fe.Fit||e.sizing===fe.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new cf((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),s={width:r.width,height:r.height};!Vt(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}He.DEFAULT_CONTAINER_HEIGHT=300;function uf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function lf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ff=(function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lf(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=uf(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t})(),G="-ms-",An="-moz-",F="-webkit-",Yo="comm",or="rule",ar="decl",hf="@import",Xo="@keyframes",df="@layer",gf=Math.abs,Gn=String.fromCharCode,pf=Object.assign;function _f(t,e){return Y(t,0)^45?(((e<<2^Y(t,0))<<2^Y(t,1))<<2^Y(t,2))<<2^Y(t,3):0}function Go(t){return t.trim()}function mf(t,e){return(t=e.exec(t))?t[0]:t}function L(t,e,n){return t.replace(e,n)}function $i(t,e){return t.indexOf(e)}function Y(t,e){return t.charCodeAt(e)|0}function Ue(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function cr(t){return t.length}function on(t,e){return e.push(t),t}function vf(t,e){return t.map(e).join("")}var qn=1,he=1,qo=0,K=0,U=0,me="";function Zn(t,e,n,i,r,s,o){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:qn,column:he,length:o,return:""}}function be(t,e){return pf(Zn("",null,null,"",null,null,0),t,{length:-t.length},e)}function yf(){return U}function xf(){return U=K>0?Y(me,--K):0,he--,U===10&&(he=1,qn--),U}function nt(){return U=K<qo?Y(me,K++):0,he++,U===10&&(he=1,qn++),U}function gt(){return Y(me,K)}function hn(){return K}function Qe(t,e){return Ue(me,t,e)}function We(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zo(t){return qn=he=1,qo=dt(me=t),K=0,[]}function jo(t){return me="",t}function dn(t){return Go(Qe(K-1,Ei(t===91?t+2:t===40?t+1:t)))}function bf(t){for(;(U=gt())&&U<33;)nt();return We(t)>2||We(U)>3?"":" "}function wf(t,e){for(;--e&&nt()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Qe(t,hn()+(e<6&&gt()==32&&nt()==32))}function Ei(t){for(;nt();)switch(U){case t:return K;case 34:case 39:t!==34&&t!==39&&Ei(U);break;case 40:t===41&&Ei(t);break;case 92:nt();break}return K}function kf(t,e){for(;nt()&&t+U!==57;)if(t+U===84&&gt()===47)break;return"/*"+Qe(e,K-1)+"*"+Gn(t===47?t:nt())}function Tf(t){for(;!We(gt());)nt();return Qe(t,K)}function Sf(t){return jo(gn("",null,null,null,[""],t=Zo(t),0,[0],t))}function gn(t,e,n,i,r,s,o,a,c){for(var u=0,l=0,f=o,h=0,d=0,p=0,g=1,m=1,_=1,x=0,y="",b=r,T=s,v=i,k=y;m;)switch(p=x,x=nt()){case 40:if(p!=108&&Y(k,f-1)==58){$i(k+=L(dn(x),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=dn(x);break;case 9:case 10:case 13:case 32:k+=bf(p);break;case 92:k+=wf(hn()-1,7);continue;case 47:switch(gt()){case 42:case 47:on(Mf(kf(nt(),hn()),e,n),c);break;default:k+="/"}break;case 123*g:a[u++]=dt(k)*_;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+l:_==-1&&(k=L(k,/\f/g,"")),d>0&&dt(k)-f&&on(d>32?us(k+";",i,n,f-1):us(L(k," ","")+";",i,n,f-2),c);break;case 59:k+=";";default:if(on(v=cs(k,e,n,u,l,r,a,y,b=[],T=[],f),s),x===123)if(l===0)gn(k,e,v,v,b,s,f,a,T);else switch(h===99&&Y(k,3)===110?100:h){case 100:case 108:case 109:case 115:gn(t,v,v,i&&on(cs(t,v,v,0,0,r,a,y,r,b=[],f),T),r,T,f,a,i?b:T);break;default:gn(k,v,v,v,[""],T,0,a,T)}}u=l=d=0,g=_=1,y=k="",f=o;break;case 58:f=1+dt(k),d=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&xf()==125)continue}switch(k+=Gn(x),x*g){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[u++]=(dt(k)-1)*_,_=1;break;case 64:gt()===45&&(k+=dn(nt())),h=gt(),l=f=dt(y=k+=Tf(hn())),x++;break;case 45:p===45&&dt(k)==2&&(g=0)}}return s}function cs(t,e,n,i,r,s,o,a,c,u,l){for(var f=r-1,h=r===0?s:[""],d=cr(h),p=0,g=0,m=0;p<i;++p)for(var _=0,x=Ue(t,f+1,f=gf(g=o[p])),y=t;_<d;++_)(y=Go(g>0?h[_]+" "+x:L(x,/&\f/g,h[_])))&&(c[m++]=y);return Zn(t,e,n,r===0?or:a,c,u,l)}function Mf(t,e,n){return Zn(t,e,n,Yo,Gn(yf()),Ue(t,2,-2),0)}function us(t,e,n,i){return Zn(t,e,n,ar,Ue(t,0,i),Ue(t,i+1,-1),i)}function oe(t,e){for(var n="",i=cr(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Af(t,e,n,i){switch(t.type){case df:if(t.children.length)break;case hf:case ar:return t.return=t.return||t.value;case Yo:return"";case Xo:return t.return=t.value+"{"+oe(t.children,i)+"}";case or:t.value=t.props.join(",")}return dt(n=oe(t.children,i))?t.return=t.value+"{"+n+"}":""}function Cf(t){var e=cr(t);return function(n,i,r,s){for(var o="",a=0;a<e;a++)o+=t[a](n,i,r,s)||"";return o}}function $f(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ef(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Nf=function(e,n,i){for(var r=0,s=0;r=s,s=gt(),r===38&&s===12&&(n[i]=1),!We(s);)nt();return Qe(e,K)},Of=function(e,n){var i=-1,r=44;do switch(We(r)){case 0:r===38&&gt()===12&&(n[i]=1),e[i]+=Nf(K-1,n,i);break;case 2:e[i]+=dn(r);break;case 4:if(r===44){e[++i]=gt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=Gn(r)}while(r=nt());return e},Df=function(e,n){return jo(Of(Zo(e),n))},ls=new WeakMap,Rf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ls.get(i))&&!r){ls.set(e,!0);for(var s=[],o=Df(n,s),a=i.props,c=0,u=0;c<o.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=s[c]?o[c].replace(/&\f/g,a[l]):a[l]+" "+o[c]}}},Ff=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Qo(t,e){switch(_f(t,e)){case 5103:return F+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return F+t+An+t+G+t+t;case 6828:case 4268:return F+t+G+t+t;case 6165:return F+t+G+"flex-"+t+t;case 5187:return F+t+L(t,/(\w+).+(:[^]+)/,F+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return F+t+G+"flex-item-"+L(t,/flex-|-self/,"")+t;case 4675:return F+t+G+"flex-line-pack"+L(t,/align-content|flex-|-self/,"")+t;case 5548:return F+t+G+L(t,"shrink","negative")+t;case 5292:return F+t+G+L(t,"basis","preferred-size")+t;case 6060:return F+"box-"+L(t,"-grow","")+F+t+G+L(t,"grow","positive")+t;case 4554:return F+L(t,/([^-])(transform)/g,"$1"+F+"$2")+t;case 6187:return L(L(L(t,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),t,"")+t;case 5495:case 3959:return L(t,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return L(L(t,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+t+t;case 4095:case 3583:case 4068:case 2532:return L(t,/(.+)-inline(.+)/,F+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(Y(t,e+1)){case 109:if(Y(t,e+4)!==45)break;case 102:return L(t,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+An+(Y(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$i(t,"stretch")?Qo(L(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Y(t,e+1)!==115)break;case 6444:switch(Y(t,dt(t)-3-(~$i(t,"!important")&&10))){case 107:return L(t,":",":"+F)+t;case 101:return L(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Y(t,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+G+"$2box$3")+t}break;case 5936:switch(Y(t,e+11)){case 114:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return F+t+G+L(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return F+t+G+t+t}return t}var Lf=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=Qo(e.value,e.length);break;case Xo:return oe([be(e,{value:L(e.value,"@","@"+F)})],r);case or:if(e.length)return vf(e.props,function(s){switch(mf(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([be(e,{props:[L(s,/:(read-\w+)/,":"+An+"$1")]})],r);case"::placeholder":return oe([be(e,{props:[L(s,/:(plac\w+)/,":"+F+"input-$1")]}),be(e,{props:[L(s,/:(plac\w+)/,":"+An+"$1")]}),be(e,{props:[L(s,/:(plac\w+)/,G+"input-$1")]})],r)}return""})}},If=[Lf],zf=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||If,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),_=1;_<m.length;_++)s[m[_]]=!0;a.push(g)});var c,u=[Rf,Ff];{var l,f=[Af,$f(function(g){l.insert(g)})],h=Cf(u.concat(r,f)),d=function(m){return oe(Sf(m),h)};c=function(m,_,x,y){l=x,d(m?m+"{"+_.styles+"}":_.styles),y&&(p.inserted[_.name]=!0)}}var p={key:n,sheet:new ff({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return p.sheet.hydrate(a),p};function Bf(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Pf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hf=/[A-Z]|^ms/g,Uf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jo=function(e){return e.charCodeAt(1)===45},fs=function(e){return e!=null&&typeof e!="boolean"},fi=Ef(function(t){return Jo(t)?t:t.replace(Hf,"-$&").toLowerCase()}),hs=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uf,function(i,r,s){return Nt={name:r,styles:s,next:Nt},r})}return Pf[e]!==1&&!Jo(e)&&typeof n=="number"&&n!==0?n+"px":n};function Cn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Nt={name:r.name,styles:r.styles,next:Nt},r.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Nt={name:o.name,styles:o.styles,next:Nt},o=o.next;var a=s.styles+";";return a}return Wf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Wf(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Cn(t,e,n[r])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?i+=s+"{"+e[a]+"}":fs(a)&&(i+=fi(s)+":"+hs(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var c=0;c<o.length;c++)fs(o[c])&&(i+=fi(s)+":"+hs(s,o[c])+";");else{var u=Cn(t,e,o);switch(s){case"animation":case"animationName":{i+=fi(s)+":"+u+";";break}default:i+=s+"{"+u+"}"}}}return i}var ds=/label:\s*([^\s;{]+)\s*(;|$)/g,Nt;function hi(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Nt=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,r+=Cn(n,e,s);else{var o=s;r+=o[0]}for(var a=1;a<t.length;a++)if(r+=Cn(n,e,t[a]),i){var c=s;r+=c[a]}ds.lastIndex=0;for(var u="",l;(l=ds.exec(r))!==null;)u+="-"+l[1];var f=Bf(r)+u;return{name:f,styles:r,next:Nt}}function Ko(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Vf=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},Yf=function(e,n,i){Vf(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function gs(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function ps(t,e,n){var i=[],r=Ko(t,i,n);return i.length<2?n:r+e(i)}var Xf=function(e){var n=zf(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered,void 0);return Yf(n,f),n.key+"-"+f.name},r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered),h="animation-"+f.name;return gs(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},s=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=hi(u,n.registered);gs(n,f)},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return ps(n.registered,i,Gf(u))};return{css:i,cx:o,injectGlobal:s,keyframes:r,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ko.bind(null,n.registered),merge:ps.bind(null,n.registered,i)}},Gf=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var s=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))s=t(r);else{s="";for(var o in r)r[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=r}s&&(n&&(n+=" "),n+=s)}}return n},ta=Xf({key:"css"}),ur=ta.injectGlobal,X=ta.css;function Ni(t){var e;t=String(t);const n=parseFloat(t),i=((e=t.match(/[\d.\-+]*\s*(.*)/))===null||e===void 0?void 0:e[1])||"";return[n,i]}function ea(){return typeof window<"u"&&typeof document<"u"}function Oi(t,e){var n;const i=Ni(getComputedStyle(t).getPropertyValue(e));return i[0]*((n=lr(i[1],t))!==null&&n!==void 0?n:1)}function na(t,e){const n=document.createElement("div");n.style.height=`128${t}`,e.appendChild(n);const i=Oi(n,"height")/128;return e.removeChild(n),i}let di=null;function we(){return ea()?(di===null&&(di=na("in",document.body)),di):96}function lr(t,e){var n;if(!t&&t!==0)return null;if(!ea()){const o=Ni(String(t));if(!isNaN(o[0])){const a=((n=o[1])===null||n===void 0?void 0:n.toLowerCase())||"px";if(a==="px"||a==="")return o[0];if(a==="em"||a==="rem")return o[0]*16;if(a==="in")return o[0]*96;if(a==="cm")return o[0]*(96/2.54);if(a==="mm")return o[0]*(96/25.4);if(a==="pt")return o[0]*(96/72);if(a==="pc")return o[0]*(96/6)}return null}let i=document.body;e&&e!==window&&e!==document&&(i=e);const r=(String(t)||"px").trim().toLowerCase();switch(r){case"%":return i.clientHeight/100;case"ch":case"ex":return na(r,i);case"em":return Oi(i,"font-size");case"rem":return Oi(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return we();case"cm":return we()/2.54;case"mm":return we()/25.4;case"pt":return we()/72;case"pc":return we()/6;case"px":return 1}const s=Ni(r);if(!isNaN(s[0])){if(s[1]){const o=lr(s[1],i);return typeof o=="number"?s[0]*o:null}return s[0]}return null}function ia(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const _s=new WeakMap;function qf(t,e){const n=t.substr(4,t.length-5);let i=_s.get(e);if(i||(i=new Map,_s.set(e,i)),i.has(n))return i.get(n);const r=getComputedStyle(e).getPropertyValue(n);return i.set(n,r),r}function Zf(t,e,n=0){const[i,r,s,o]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<l||c<o||s<a||u<i)}const ra='html[data-theme="dark"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark';function fr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function sa(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Je(){}var Ve=.7,$n=1/Ve,ae="\\s*([+-]?\\d+)\\s*",Ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jf=/^#([0-9a-f]{3,8})$/,Qf=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),Jf=new RegExp(`^rgb\\(${pt},${pt},${pt}\\)$`),Kf=new RegExp(`^rgba\\(${ae},${ae},${ae},${Ye}\\)$`),th=new RegExp(`^rgba\\(${pt},${pt},${pt},${Ye}\\)$`),eh=new RegExp(`^hsl\\(${Ye},${pt},${pt}\\)$`),nh=new RegExp(`^hsla\\(${Ye},${pt},${pt},${Ye}\\)$`),ms={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fr(Je,Yt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vs,formatHex:vs,formatHex8:ih,formatHsl:rh,formatRgb:ys,toString:ys});function vs(){return this.rgb().formatHex()}function ih(){return this.rgb().formatHex8()}function rh(){return oa(this).formatHsl()}function ys(){return this.rgb().formatRgb()}function Yt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xs(e):n===3?new Q(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?an(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?an(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Qf.exec(t))?new Q(e[1],e[2],e[3],1):(e=Jf.exec(t))?new Q(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Kf.exec(t))?an(e[1],e[2],e[3],e[4]):(e=th.exec(t))?an(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eh.exec(t))?ks(e[1],e[2]/100,e[3]/100,1):(e=nh.exec(t))?ks(e[1],e[2]/100,e[3]/100,e[4]):ms.hasOwnProperty(t)?xs(ms[t]):t==="transparent"?new Q(NaN,NaN,NaN,0):null}function xs(t){return new Q(t>>16&255,t>>8&255,t&255,1)}function an(t,e,n,i){return i<=0&&(t=e=n=NaN),new Q(t,e,n,i)}function sh(t){return t instanceof Je||(t=Yt(t)),t?(t=t.rgb(),new Q(t.r,t.g,t.b,t.opacity)):new Q}function Di(t,e,n,i){return arguments.length===1?sh(t):new Q(t,e,n,i??1)}function Q(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}fr(Q,Di,sa(Je,{brighter(t){return t=t==null?$n:Math.pow($n,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new Q(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Q(Ht(this.r),Ht(this.g),Ht(this.b),En(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bs,formatHex:bs,formatHex8:oh,formatRgb:ws,toString:ws}));function bs(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}`}function oh(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}${Lt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ws(){const t=En(this.opacity);return`${t===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${t===1?")":`, ${t})`}`}function En(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ht(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Lt(t){return t=Ht(t),(t<16?"0":"")+t.toString(16)}function ks(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ct(t,e,n,i)}function oa(t){if(t instanceof ct)return new ct(t.h,t.s,t.l,t.opacity);if(t instanceof Je||(t=Yt(t)),!t)return new ct;if(t instanceof ct)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,c=(s+r)/2;return a?(e===s?o=(n-i)/a+(n<i)*6:n===s?o=(i-e)/a+2:o=(e-n)/a+4,a/=c<.5?s+r:2-s-r,o*=60):a=c>0&&c<1?0:o,new ct(o,a,c,t.opacity)}function hr(t,e,n,i){return arguments.length===1?oa(t):new ct(t,e,n,i??1)}function ct(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}fr(ct,hr,sa(Je,{brighter(t){return t=t==null?$n:Math.pow($n,t),new ct(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new ct(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Q(gi(t>=240?t-240:t+120,r,i),gi(t,r,i),gi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new ct(Ts(this.h),cn(this.s),cn(this.l),En(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=En(this.opacity);return`${t===1?"hsl(":"hsla("}${Ts(this.h)}, ${cn(this.s)*100}%, ${cn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ts(t){return t=(t||0)%360,t<0?t+360:t}function cn(t){return Math.max(0,Math.min(1,t||0))}function gi(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Ce=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],ah=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Mt=t=>`--vis-${re(t)?`color${t%Ce.length}`:t}`;function ch(t,e=.4){const n=hr(t);return n.l=n.l*(1+e),n.formatHex()}function uh(t,e=.4,n=.6){const i=hr(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const Nn=10,Ri=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Fi=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function At(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const lh=t=>`<mask id="${At(t)}">
2
2
  <pattern id="${t.id}" viewBox="0 0 10 10" width="${Nn}" height="${Nn}" patternUnits="userSpaceOnUse">
3
3
  <rect width="100%" height="100%" fill="#fff"/>
4
4
  ${t.svg}
@@ -1 +1 @@
1
- import{d as u,o as f,c as m,t as g,O as d}from"./B8fs6GU9.js";const p=u({__name:"TagBadge",props:{text:{},color:{},variant:{}},setup(t){function s(n,o){const e=parseInt(n.slice(1,3),16),c=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16);return`rgba(${e},${c},${a},${o})`}function l(n){const o=i=>{const r=i/255;return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)},e=o(parseInt(n.slice(1,3),16)),c=o(parseInt(n.slice(3,5),16)),a=o(parseInt(n.slice(5,7),16));return .2126*e+.7152*c+.0722*a>.179?"#1a1a1a":"#ffffff"}return(n,o)=>(f(),m("span",{class:"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap",style:d(t.variant==="outline"?{border:`1px solid ${t.color}`,color:t.color,backgroundColor:s(t.color,.08)}:{backgroundColor:t.color,color:l(t.color)})},g(t.text),5))}}),I=Object.assign(p,{__name:"TagBadge"});export{I as _};
1
+ import{d as u,o as f,c as m,t as g,O as d}from"./BPKwYP2Q.js";const p=u({__name:"TagBadge",props:{text:{},color:{},variant:{}},setup(t){function s(n,o){const e=parseInt(n.slice(1,3),16),c=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16);return`rgba(${e},${c},${a},${o})`}function l(n){const o=i=>{const r=i/255;return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)},e=o(parseInt(n.slice(1,3),16)),c=o(parseInt(n.slice(3,5),16)),a=o(parseInt(n.slice(5,7),16));return .2126*e+.7152*c+.0722*a>.179?"#1a1a1a":"#ffffff"}return(n,o)=>(f(),m("span",{class:"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap",style:d(t.variant==="outline"?{border:`1px solid ${t.color}`,color:t.color,backgroundColor:s(t.color,.08)}:{backgroundColor:t.color,color:l(t.color)})},g(t.text),5))}}),I=Object.assign(p,{__name:"TagBadge"});export{I as _};
@@ -1 +1 @@
1
- import{_ as ct,a as ut}from"./B32-7cBF.js";import{_ as dt,a as mt}from"./wCQds5_f.js";import{_ as pt}from"./nUsJV5qo.js";import{_ as _t,a as ft}from"./C9jjVEQU.js";import{d as gt,e as yt,b as xt,c as l,j as o,g as s,F as R,P as bt,o as a,i as c,D as vt,m as d,y as P,f as p,_ as ht,q as _,t as y,k as i,x as kt,h as N,r as x,I as jt}from"./B8fs6GU9.js";import{_ as Rt}from"./o5WQ5Z7k.js";import{_ as $t}from"./CHMpVLqo.js";import{_ as Ct}from"./BkhdAGx0.js";import{_ as Tt}from"./CqA3gM8h.js";import{_ as Pt}from"./D4nLD93c.js";import{_ as Nt}from"./BgR7oL4p.js";import{_ as Dt}from"./CHSkT2s0.js";import{_ as Ut}from"./DZLrAp2i.js";import{_ as Ft}from"./h-e-Ca3f.js";import{o as St,s as D,_ as Bt}from"./DzbOHjZH.js";import{_ as Kt}from"./CD-xwM9N.js";import{h as Lt,p as wt,g as b}from"./CvCF77E-.js";import{u as V}from"./DAeYEeCC.js";import"./BtJkQ3to.js";import"./3SnTawZW.js";import"./DWzdeQ3Z.js";import"./DFw8I2FL.js";import"./4fB15L_7.js";import"./PPFO8UVt.js";import"./BC_Wu-fv.js";import"./CNzoIhwN.js";import"./DHVmXA9K.js";import"./BGsuOpiq.js";import"./D1tZEdSi.js";import"./DVdOm5Bg.js";const Vt={class:"flex flex-wrap items-center gap-3 mb-4"},zt={key:0,class:"flex flex-wrap items-center gap-2"},Ht={class:"text-sm text-muted shrink-0 inline-flex items-center gap-1"},It=["onClick"],qt={class:"flex flex-col gap-1"},At={class:"flex items-center gap-2"},Ot={key:0,class:"flex flex-wrap gap-1"},Mt={key:0,class:"text-xs text-gray-600 italic"},Et={key:1},Gt={key:0,class:"text-xs text-gray-600"},Qt={key:1,class:"text-xs text-gray-600 italic"},Xt={key:0,class:"flex items-center gap-1 flex-wrap"},Jt={key:0,class:"text-xs font-medium bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded"},Wt={key:1,class:"text-xs text-gray-500"},Yt={key:0,class:"text-sm text-gray-600"},Zt={key:1,class:"text-xs text-gray-600 italic"},te={key:1,class:"text-xs text-gray-600 italic"},ee={key:1,class:"text-xs text-gray-600 italic"},ae={class:"flex justify-end gap-2"},se={key:1,class:"space-y-2","aria-busy":"true"},oe={key:2,class:"text-center py-12 text-gray-500"},ne={class:"text-xs text-gray-400 max-w-sm"},le={class:"flex w-full justify-end gap-2"},Ve=gt({__name:"index",setup(re){yt({title:"Projects — Piwi Dashboard"});const{data:v,refresh:U,status:z}=V("/api/projects",{key:"projects",lazy:!0,default:()=>[]},"$AIGg5yw_0K"),{data:H,refresh:I}=V("/api/tags",{lazy:!0},"$qcllBXh9C_"),F=xt(),$=N(()=>H.value?.tags||[]),q=N(()=>z.value==="pending"&&!v.value?.length),h=x(""),u=x([]),S=N(()=>{let n=v.value||[];if(h.value.trim()){const e=h.value.trim().toLowerCase();n=n.filter(m=>(m.label||m.name).toLowerCase().includes(e)||m.name.toLowerCase().includes(e))}return u.value.length>0&&(n=n.filter(e=>u.value.some(m=>(e.tags||[]).some(T=>T.id===m)))),n});function A(n){const e=u.value.indexOf(n);e===-1?u.value.push(n):u.value.splice(e,1)}function O(n){return u.value.includes(n)}const f=x(!1),M=St({name:D().min(1,"Project name is required").max(100),label:D().optional(),description:D().optional()}),r=jt({name:"",label:"",description:""}),k=x([]),C=x(!1);async function E(){if(r.name?.trim())try{C.value=!0,await $fetch("/api/projects",{method:"POST",body:{name:r.name.trim(),label:r.label?.trim()||null,description:r.description?.trim()||null,tagIds:k.value.map(n=>n.id)}}),F.add({title:"Project created",description:`Project "${r.name}" has been created`,color:"success"}),f.value=!1,r.name="",r.label="",r.description="",k.value=[],await U()}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;F.add({title:"Failed to create project",description:e||"An error occurred",color:"error"})}finally{C.value=!1}}const G=[{header:"Project",columns:[{accessorKey:"name",header:b("Name")},{accessorKey:"totalRuns",header:b("Runs")}]},{accessorKey:"latestRunData",header:"Latest run",columns:[{accessorKey:"latestRun",header:b("Date")},{accessorKey:"branch",header:"Branch"},{accessorKey:"duration",header:b("Duration")},{accessorKey:"status",header:b("Status")},{accessorKey:"testRatio",header:"Test status"},{accessorKey:"report",header:"Reports"}]},{accessorKey:"actions",header:"Project actions"}];return(n,e)=>{const m=ct,T=ut,B=dt,Q=pt,X=ft,J=vt,K=Rt,g=ht,L=kt,W=$t,Y=Ct,Z=Tt,tt=Pt,et=Nt,w=Dt,at=mt,st=Ut,ot=_t,nt=Ft,lt=Bt,rt=Kt,it=bt;return a(),l(R,null,[o(ot,{id:"projects"},{header:s(()=>[o(X,null,{leading:s(()=>[o(m),o(T,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects"}]})]),right:s(()=>[o(Q,{actions:[{label:"New project",icon:"i-lucide-plus",onClick:()=>f.value=!0},{label:"Refresh",icon:"i-lucide-refresh-cw",variant:"outline",onClick:()=>i(U)()}]},{leading:s(()=>[o(B,{topic:"projects.table",size:"sm"})]),_:1},8,["actions"])]),_:1})]),body:s(()=>[c("div",Vt,[o(J,{modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=t=>h.value=t),icon:"i-lucide-search",placeholder:"Search projects by name...",class:"min-w-48 flex-1",ui:{base:"w-full"}},null,8,["modelValue"]),$.value.length>0?(a(),l("div",zt,[c("span",Ht,[e[10]||(e[10]=d(" Filter by tag (any match): ",-1)),o(B,{topic:"projects.tag-filter"})]),(a(!0),l(R,null,P($.value,t=>(a(),l("button",{key:t.id,type:"button",class:"cursor-pointer focus:outline-none",onClick:j=>A(t.id)},[o(K,{text:t.text,color:t.color,variant:O(t.id)?"solid":"outline"},null,8,["text","color","variant"])],8,It))),128)),u.value.length>0?(a(),p(g,{key:0,size:"xs",variant:"ghost",color:"neutral",icon:"i-lucide-x",label:"Clear filters",onClick:e[1]||(e[1]=t=>u.value=[])})):_("",!0)])):_("",!0)]),S.value.length>0?(a(),p(et,{key:0,"min-width":"60rem",bleed:!1},{default:s(()=>[o(tt,{data:S.value,columns:G,ui:{base:"table-fixed border-separate border-spacing-0",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"name-cell":s(({row:t})=>[c("div",qt,[c("div",At,[o(L,{to:`/projects/${t.original.id}`,class:"text-primary hover:underline font-medium"},{default:s(()=>[d(y(t.original.label||t.original.name),1)]),_:2},1032,["to"])]),t.original.tags?.length?(a(),l("div",Ot,[(a(!0),l(R,null,P(t.original.tags,j=>(a(),p(K,{key:j.id,text:j.text,color:j.color},null,8,["text","color"]))),128))])):_("",!0)])]),"totalRuns-cell":s(({row:t})=>[t.original.totalRuns===0?(a(),l("span",Mt,"No data")):(a(),l("span",Et,y(t.original.totalRuns)+" runs",1))]),"latestRun-cell":s(({row:t})=>[t.original.latestRun?(a(),l("span",Gt,y(("prettyDateFormat"in n?n.prettyDateFormat:i(wt))(t.original.latestRun.startTime)),1)):(a(),l("span",Qt,"No data"))]),"branch-cell":s(({row:t})=>[t.original.latestRun?.metadata?.scm?(a(),l("div",Xt,[t.original.latestRun.metadata.scm.branch?(a(),l("span",Jt,y(t.original.latestRun.metadata.scm.branch),1)):_("",!0),t.original.latestRun.metadata.scm.commit?(a(),l("code",Wt,y(t.original.latestRun.metadata.scm.commit.substring(0,7)),1)):_("",!0)])):_("",!0)]),"duration-cell":s(({row:t})=>[t.original.latestRun?.duration!=null?(a(),l("span",Yt,y(("formatDuration"in n?n.formatDuration:i(Lt))(t.original.latestRun.duration)),1)):(a(),l("span",Zt,"No data"))]),"status-cell":s(({row:t})=>[t.original.latestRun?(a(),p(W,{key:0,status:t.original.latestRun.status},null,8,["status"])):(a(),l("span",te,"No data"))]),"testRatio-cell":s(({row:t})=>[t.original.latestRun?(a(),p(Y,{key:0,passed:t.original.latestRun.passedTests,failed:t.original.latestRun.failedTests,skipped:t.original.latestRun.skippedTests,flaky:t.original.latestRun.flakyTests,"did-not-run":t.original.latestRun.didNotRunTests??0,total:t.original.latestRun.totalTests},null,8,["passed","failed","skipped","flaky","did-not-run","total"])):(a(),l("span",ee,"No data"))]),"report-cell":s(({row:t})=>[t.original.latestRun?(a(),p(Z,{key:0,reports:t.original.latestRun.reports},null,8,["reports"])):_("",!0)]),"actions-header":s(()=>[...e[11]||(e[11]=[c("div",{class:"text-right"},"Project actions",-1)])]),"actions-cell":s(({row:t})=>[c("div",ae,[o(g,{to:`/projects/${t.original.id}`,size:"sm",variant:"outline"},{default:s(()=>[...e[12]||(e[12]=[d("View details",-1)])]),_:1},8,["to"]),o(g,{to:`/projects/${t.original.id}/edit`,size:"sm",variant:"ghost",icon:"i-lucide-pencil"},null,8,["to"])])]),_:1},8,["data"])]),_:1})):q.value?(a(),l("div",se,[e[13]||(e[13]=c("span",{class:"sr-only",role:"status"},"Loading projects…",-1)),o(w,{class:"h-10 w-full rounded-lg"}),(a(),l(R,null,P(6,t=>o(w,{key:t,class:"h-14 w-full rounded-lg"})),64))])):i(v)&&i(v).length>0?(a(),l("div",oe,[...e[14]||(e[14]=[c("p",{class:"text-lg mb-2"},"No projects match your search",-1),c("p",{class:"text-sm"},"Try adjusting your search or filters",-1)])])):(a(),p(st,{key:3,icon:"i-lucide-rocket",text:"No projects yet"},{default:s(()=>[c("p",ne,[e[17]||(e[17]=d(" Projects are created automatically once the reporter submits its first run — see the ",-1)),o(L,{to:"/",class:"text-primary hover:underline"},{default:s(()=>[...e[15]||(e[15]=[d("home page",-1)])]),_:1}),e[18]||(e[18]=d(" for a copy-paste setup snippet, or the ",-1)),o(at,{to:"reporter","no-icon":"",class:"text-primary hover:underline"},{default:s(()=>[...e[16]||(e[16]=[d("reporter docs",-1)])]),_:1}),e[19]||(e[19]=d(". ",-1))]),o(g,{icon:"i-lucide-plus",label:"New project",variant:"ghost",size:"sm",class:"mt-2",onClick:e[2]||(e[2]=t=>f.value=!0)})]),_:1}))]),_:1}),o(it,null,{default:s(()=>[o(rt,{open:f.value,title:"Create new project","onUpdate:open":e[9]||(e[9]=t=>f.value=t)},{body:s(()=>[o(lt,{schema:i(M),state:i(r)},{default:s(()=>[o(nt,{mode:"create",name:i(r).name,"onUpdate:name":e[3]||(e[3]=t=>i(r).name=t),label:i(r).label,"onUpdate:label":e[4]||(e[4]=t=>i(r).label=t),description:i(r).description,"onUpdate:description":e[5]||(e[5]=t=>i(r).description=t),tags:k.value,"onUpdate:tags":e[6]||(e[6]=t=>k.value=t),"all-tags":$.value,onTagCreated:e[7]||(e[7]=t=>i(I)())},null,8,["name","label","description","tags","all-tags"])]),_:1},8,["schema","state"])]),footer:s(()=>[c("div",le,[o(g,{color:"neutral",variant:"ghost",label:"Cancel",onClick:e[8]||(e[8]=t=>f.value=!1)}),o(g,{label:"Create project",icon:"i-lucide-plus",loading:C.value,onClick:E},null,8,["loading"])])]),_:1},8,["open"])]),_:1})],64)}}});export{Ve as default};
1
+ import{_ as ct,a as ut}from"./Bvfmwzgw.js";import{_ as dt,a as mt}from"./CQeMb57w.js";import{_ as pt}from"./BIksQZfR.js";import{_ as _t,a as ft}from"./IFqRT_xJ.js";import{d as gt,e as yt,b as xt,c as l,j as o,g as s,F as R,P as bt,o as a,i as c,D as vt,m as d,y as P,f as p,_ as ht,q as _,t as y,k as i,x as kt,h as N,r as x,I as jt}from"./BPKwYP2Q.js";import{_ as Rt}from"./BVW5qIDP.js";import{_ as $t}from"./D2jhe9JK.js";import{_ as Ct}from"./Dzz9_Z0u.js";import{_ as Tt}from"./BoRFLTAO.js";import{_ as Pt}from"./BuZOa2M3.js";import{_ as Nt}from"./BBdfPriC.js";import{_ as Dt}from"./l0gdGdar.js";import{_ as Ut}from"./xUrLy-Zn.js";import{_ as Ft}from"./Bzl2H_vl.js";import{o as St,s as D,_ as Bt}from"./-KQO1A4C.js";import{_ as Kt}from"./nCjfWTGm.js";import{h as Lt,p as wt,g as b}from"./k-z_VVTK.js";import{u as V}from"./BIf1R_fu.js";import"./iwD5atI2.js";import"./r3SBLxtE.js";import"./DuMv-ugy.js";import"./BpceIssd.js";import"./d5ZB3uxF.js";import"./DdbrJwT-.js";import"./DRtTLQri.js";import"./ABGJk0pu.js";import"./C3r_Sv1p.js";import"./CpO-ABDW.js";import"./jIF87ALb.js";import"./mGJLLqyN.js";const Vt={class:"flex flex-wrap items-center gap-3 mb-4"},zt={key:0,class:"flex flex-wrap items-center gap-2"},Ht={class:"text-sm text-muted shrink-0 inline-flex items-center gap-1"},It=["onClick"],qt={class:"flex flex-col gap-1"},At={class:"flex items-center gap-2"},Ot={key:0,class:"flex flex-wrap gap-1"},Mt={key:0,class:"text-xs text-gray-600 italic"},Et={key:1},Gt={key:0,class:"text-xs text-gray-600"},Qt={key:1,class:"text-xs text-gray-600 italic"},Xt={key:0,class:"flex items-center gap-1 flex-wrap"},Jt={key:0,class:"text-xs font-medium bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded"},Wt={key:1,class:"text-xs text-gray-500"},Yt={key:0,class:"text-sm text-gray-600"},Zt={key:1,class:"text-xs text-gray-600 italic"},te={key:1,class:"text-xs text-gray-600 italic"},ee={key:1,class:"text-xs text-gray-600 italic"},ae={class:"flex justify-end gap-2"},se={key:1,class:"space-y-2","aria-busy":"true"},oe={key:2,class:"text-center py-12 text-gray-500"},ne={class:"text-xs text-gray-400 max-w-sm"},le={class:"flex w-full justify-end gap-2"},Ve=gt({__name:"index",setup(re){yt({title:"Projects — Piwi Dashboard"});const{data:v,refresh:U,status:z}=V("/api/projects",{key:"projects",lazy:!0,default:()=>[]},"$AIGg5yw_0K"),{data:H,refresh:I}=V("/api/tags",{lazy:!0},"$qcllBXh9C_"),F=xt(),$=N(()=>H.value?.tags||[]),q=N(()=>z.value==="pending"&&!v.value?.length),h=x(""),u=x([]),S=N(()=>{let n=v.value||[];if(h.value.trim()){const e=h.value.trim().toLowerCase();n=n.filter(m=>(m.label||m.name).toLowerCase().includes(e)||m.name.toLowerCase().includes(e))}return u.value.length>0&&(n=n.filter(e=>u.value.some(m=>(e.tags||[]).some(T=>T.id===m)))),n});function A(n){const e=u.value.indexOf(n);e===-1?u.value.push(n):u.value.splice(e,1)}function O(n){return u.value.includes(n)}const f=x(!1),M=St({name:D().min(1,"Project name is required").max(100),label:D().optional(),description:D().optional()}),r=jt({name:"",label:"",description:""}),k=x([]),C=x(!1);async function E(){if(r.name?.trim())try{C.value=!0,await $fetch("/api/projects",{method:"POST",body:{name:r.name.trim(),label:r.label?.trim()||null,description:r.description?.trim()||null,tagIds:k.value.map(n=>n.id)}}),F.add({title:"Project created",description:`Project "${r.name}" has been created`,color:"success"}),f.value=!1,r.name="",r.label="",r.description="",k.value=[],await U()}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;F.add({title:"Failed to create project",description:e||"An error occurred",color:"error"})}finally{C.value=!1}}const G=[{header:"Project",columns:[{accessorKey:"name",header:b("Name")},{accessorKey:"totalRuns",header:b("Runs")}]},{accessorKey:"latestRunData",header:"Latest run",columns:[{accessorKey:"latestRun",header:b("Date")},{accessorKey:"branch",header:"Branch"},{accessorKey:"duration",header:b("Duration")},{accessorKey:"status",header:b("Status")},{accessorKey:"testRatio",header:"Test status"},{accessorKey:"report",header:"Reports"}]},{accessorKey:"actions",header:"Project actions"}];return(n,e)=>{const m=ct,T=ut,B=dt,Q=pt,X=ft,J=vt,K=Rt,g=ht,L=kt,W=$t,Y=Ct,Z=Tt,tt=Pt,et=Nt,w=Dt,at=mt,st=Ut,ot=_t,nt=Ft,lt=Bt,rt=Kt,it=bt;return a(),l(R,null,[o(ot,{id:"projects"},{header:s(()=>[o(X,null,{leading:s(()=>[o(m),o(T,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects"}]})]),right:s(()=>[o(Q,{actions:[{label:"New project",icon:"i-lucide-plus",onClick:()=>f.value=!0},{label:"Refresh",icon:"i-lucide-refresh-cw",variant:"outline",onClick:()=>i(U)()}]},{leading:s(()=>[o(B,{topic:"projects.table",size:"sm"})]),_:1},8,["actions"])]),_:1})]),body:s(()=>[c("div",Vt,[o(J,{modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=t=>h.value=t),icon:"i-lucide-search",placeholder:"Search projects by name...",class:"min-w-48 flex-1",ui:{base:"w-full"}},null,8,["modelValue"]),$.value.length>0?(a(),l("div",zt,[c("span",Ht,[e[10]||(e[10]=d(" Filter by tag (any match): ",-1)),o(B,{topic:"projects.tag-filter"})]),(a(!0),l(R,null,P($.value,t=>(a(),l("button",{key:t.id,type:"button",class:"cursor-pointer focus:outline-none",onClick:j=>A(t.id)},[o(K,{text:t.text,color:t.color,variant:O(t.id)?"solid":"outline"},null,8,["text","color","variant"])],8,It))),128)),u.value.length>0?(a(),p(g,{key:0,size:"xs",variant:"ghost",color:"neutral",icon:"i-lucide-x",label:"Clear filters",onClick:e[1]||(e[1]=t=>u.value=[])})):_("",!0)])):_("",!0)]),S.value.length>0?(a(),p(et,{key:0,"min-width":"60rem",bleed:!1},{default:s(()=>[o(tt,{data:S.value,columns:G,ui:{base:"table-fixed border-separate border-spacing-0",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"name-cell":s(({row:t})=>[c("div",qt,[c("div",At,[o(L,{to:`/projects/${t.original.id}`,class:"text-primary hover:underline font-medium"},{default:s(()=>[d(y(t.original.label||t.original.name),1)]),_:2},1032,["to"])]),t.original.tags?.length?(a(),l("div",Ot,[(a(!0),l(R,null,P(t.original.tags,j=>(a(),p(K,{key:j.id,text:j.text,color:j.color},null,8,["text","color"]))),128))])):_("",!0)])]),"totalRuns-cell":s(({row:t})=>[t.original.totalRuns===0?(a(),l("span",Mt,"No data")):(a(),l("span",Et,y(t.original.totalRuns)+" runs",1))]),"latestRun-cell":s(({row:t})=>[t.original.latestRun?(a(),l("span",Gt,y(("prettyDateFormat"in n?n.prettyDateFormat:i(wt))(t.original.latestRun.startTime)),1)):(a(),l("span",Qt,"No data"))]),"branch-cell":s(({row:t})=>[t.original.latestRun?.metadata?.scm?(a(),l("div",Xt,[t.original.latestRun.metadata.scm.branch?(a(),l("span",Jt,y(t.original.latestRun.metadata.scm.branch),1)):_("",!0),t.original.latestRun.metadata.scm.commit?(a(),l("code",Wt,y(t.original.latestRun.metadata.scm.commit.substring(0,7)),1)):_("",!0)])):_("",!0)]),"duration-cell":s(({row:t})=>[t.original.latestRun?.duration!=null?(a(),l("span",Yt,y(("formatDuration"in n?n.formatDuration:i(Lt))(t.original.latestRun.duration)),1)):(a(),l("span",Zt,"No data"))]),"status-cell":s(({row:t})=>[t.original.latestRun?(a(),p(W,{key:0,status:t.original.latestRun.status},null,8,["status"])):(a(),l("span",te,"No data"))]),"testRatio-cell":s(({row:t})=>[t.original.latestRun?(a(),p(Y,{key:0,passed:t.original.latestRun.passedTests,failed:t.original.latestRun.failedTests,skipped:t.original.latestRun.skippedTests,flaky:t.original.latestRun.flakyTests,"did-not-run":t.original.latestRun.didNotRunTests??0,total:t.original.latestRun.totalTests},null,8,["passed","failed","skipped","flaky","did-not-run","total"])):(a(),l("span",ee,"No data"))]),"report-cell":s(({row:t})=>[t.original.latestRun?(a(),p(Z,{key:0,reports:t.original.latestRun.reports},null,8,["reports"])):_("",!0)]),"actions-header":s(()=>[...e[11]||(e[11]=[c("div",{class:"text-right"},"Project actions",-1)])]),"actions-cell":s(({row:t})=>[c("div",ae,[o(g,{to:`/projects/${t.original.id}`,size:"sm",variant:"outline"},{default:s(()=>[...e[12]||(e[12]=[d("View details",-1)])]),_:1},8,["to"]),o(g,{to:`/projects/${t.original.id}/edit`,size:"sm",variant:"ghost",icon:"i-lucide-pencil"},null,8,["to"])])]),_:1},8,["data"])]),_:1})):q.value?(a(),l("div",se,[e[13]||(e[13]=c("span",{class:"sr-only",role:"status"},"Loading projects…",-1)),o(w,{class:"h-10 w-full rounded-lg"}),(a(),l(R,null,P(6,t=>o(w,{key:t,class:"h-14 w-full rounded-lg"})),64))])):i(v)&&i(v).length>0?(a(),l("div",oe,[...e[14]||(e[14]=[c("p",{class:"text-lg mb-2"},"No projects match your search",-1),c("p",{class:"text-sm"},"Try adjusting your search or filters",-1)])])):(a(),p(st,{key:3,icon:"i-lucide-rocket",text:"No projects yet"},{default:s(()=>[c("p",ne,[e[17]||(e[17]=d(" Projects are created automatically once the reporter submits its first run — see the ",-1)),o(L,{to:"/",class:"text-primary hover:underline"},{default:s(()=>[...e[15]||(e[15]=[d("home page",-1)])]),_:1}),e[18]||(e[18]=d(" for a copy-paste setup snippet, or the ",-1)),o(at,{to:"reporter","no-icon":"",class:"text-primary hover:underline"},{default:s(()=>[...e[16]||(e[16]=[d("reporter docs",-1)])]),_:1}),e[19]||(e[19]=d(". ",-1))]),o(g,{icon:"i-lucide-plus",label:"New project",variant:"ghost",size:"sm",class:"mt-2",onClick:e[2]||(e[2]=t=>f.value=!0)})]),_:1}))]),_:1}),o(it,null,{default:s(()=>[o(rt,{open:f.value,title:"Create new project","onUpdate:open":e[9]||(e[9]=t=>f.value=t)},{body:s(()=>[o(lt,{schema:i(M),state:i(r)},{default:s(()=>[o(nt,{mode:"create",name:i(r).name,"onUpdate:name":e[3]||(e[3]=t=>i(r).name=t),label:i(r).label,"onUpdate:label":e[4]||(e[4]=t=>i(r).label=t),description:i(r).description,"onUpdate:description":e[5]||(e[5]=t=>i(r).description=t),tags:k.value,"onUpdate:tags":e[6]||(e[6]=t=>k.value=t),"all-tags":$.value,onTagCreated:e[7]||(e[7]=t=>i(I)())},null,8,["name","label","description","tags","all-tags"])]),_:1},8,["schema","state"])]),footer:s(()=>[c("div",le,[o(g,{color:"neutral",variant:"ghost",label:"Cancel",onClick:e[8]||(e[8]=t=>f.value=!1)}),o(g,{label:"Create project",icon:"i-lucide-plus",loading:C.value,onClick:E},null,8,["loading"])])]),_:1},8,["open"])]),_:1})],64)}}});export{Ve as default};
@@ -1 +1 @@
1
- import{d as h,b as U,c as r,j as t,g as s,o as i,k as l,F as _,i as o,x as $,m,H as B,D as V,l as F,_ as C,v as N,r as c}from"./B8fs6GU9.js";import{_ as S}from"./n7Htv9PJ.js";import{_ as E}from"./PPFO8UVt.js";import{_ as I}from"./B32ySRXg.js";import"./BC_Wu-fv.js";const T={class:"min-h-screen flex items-center justify-center bg-elevated/50"},j={class:"flex items-center gap-2"},P={class:"mt-4 text-center"},q={class:"mt-4 text-center"},R=h({__name:"forgot-password",setup(z){const f=U(),a=c(""),n=c(!1),d=c(!1);async function p(){if(a.value){n.value=!0;try{await $fetch("/api/auth/forgot-password",{method:"POST",body:{email:a.value}}),d.value=!0}catch{f.add({title:"Something went wrong",description:"Please try again.",color:"error"})}finally{n.value=!1}}}return(A,e)=>{const x=N,g=S,u=$,y=V,k=E,v=C,w=I;return i(),r("div",T,[t(w,{class:"w-full max-w-md"},{header:s(()=>[o("div",j,[t(x,{name:"i-lucide-key-round",class:"size-6"}),e[1]||(e[1]=o("h1",{class:"text-2xl font-bold"},"Forgot password",-1))])]),default:s(()=>[l(d)?(i(),r(_,{key:0},[t(g,{color:"success",icon:"i-lucide-mail-check",title:"Check your email",description:"If an account with that email exists, a reset link has been sent."}),o("div",P,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[2]||(e[2]=[m(" Back to login ",-1)])]),_:1})])],64)):(i(),r(_,{key:1},[e[5]||(e[5]=o("p",{class:"text-sm text-gray-500 mb-4"}," Enter your email address and we'll send you a link to reset your password. ",-1)),o("form",{class:"space-y-4",onSubmit:B(p,["prevent"])},[t(k,{label:"Email",name:"email",required:""},{default:s(()=>[t(y,{modelValue:l(a),"onUpdate:modelValue":e[0]||(e[0]=b=>F(a)?a.value=b:null),type:"email",placeholder:"you@example.com",autocomplete:"email",disabled:l(n),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(v,{type:"submit",block:"",loading:l(n)},{default:s(()=>[...e[3]||(e[3]=[m("Send reset link",-1)])]),_:1},8,["loading"])],32),o("div",q,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[4]||(e[4]=[m(" Back to login ",-1)])]),_:1})])],64))]),_:1})])}}});export{R as default};
1
+ import{d as h,b as U,c as r,j as t,g as s,o as i,k as l,F as _,i as o,x as $,m,H as B,D as V,l as F,_ as C,v as N,r as c}from"./BPKwYP2Q.js";import{_ as S}from"./Br2K9yi_.js";import{_ as E}from"./DdbrJwT-.js";import{_ as I}from"./B7yG1G_l.js";import"./DRtTLQri.js";const T={class:"min-h-screen flex items-center justify-center bg-elevated/50"},j={class:"flex items-center gap-2"},P={class:"mt-4 text-center"},q={class:"mt-4 text-center"},R=h({__name:"forgot-password",setup(z){const f=U(),a=c(""),n=c(!1),d=c(!1);async function p(){if(a.value){n.value=!0;try{await $fetch("/api/auth/forgot-password",{method:"POST",body:{email:a.value}}),d.value=!0}catch{f.add({title:"Something went wrong",description:"Please try again.",color:"error"})}finally{n.value=!1}}}return(A,e)=>{const x=N,g=S,u=$,y=V,k=E,v=C,w=I;return i(),r("div",T,[t(w,{class:"w-full max-w-md"},{header:s(()=>[o("div",j,[t(x,{name:"i-lucide-key-round",class:"size-6"}),e[1]||(e[1]=o("h1",{class:"text-2xl font-bold"},"Forgot password",-1))])]),default:s(()=>[l(d)?(i(),r(_,{key:0},[t(g,{color:"success",icon:"i-lucide-mail-check",title:"Check your email",description:"If an account with that email exists, a reset link has been sent."}),o("div",P,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[2]||(e[2]=[m(" Back to login ",-1)])]),_:1})])],64)):(i(),r(_,{key:1},[e[5]||(e[5]=o("p",{class:"text-sm text-gray-500 mb-4"}," Enter your email address and we'll send you a link to reset your password. ",-1)),o("form",{class:"space-y-4",onSubmit:B(p,["prevent"])},[t(k,{label:"Email",name:"email",required:""},{default:s(()=>[t(y,{modelValue:l(a),"onUpdate:modelValue":e[0]||(e[0]=b=>F(a)?a.value=b:null),type:"email",placeholder:"you@example.com",autocomplete:"email",disabled:l(n),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(v,{type:"submit",block:"",loading:l(n)},{default:s(()=>[...e[3]||(e[3]=[m("Send reset link",-1)])]),_:1},8,["loading"])],32),o("div",q,[t(u,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:s(()=>[...e[4]||(e[4]=[m(" Back to login ",-1)])]),_:1})])],64))]),_:1})])}}});export{R as default};
@@ -1 +1 @@
1
- import{av as B,b as H,an as I,h as V}from"./B8fs6GU9.js";const k=4096;function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(e){return'"'+e.replace(/"/g,'\\"')+'"'}function u(e){return e.replace(/\\/g,"/")}function T(e){const n=new Map;for(const r of e){const i=r.projectName||"";n.has(i)||n.set(i,[]),n.get(i).push(r)}return n}function D(e){const n=new Set;return e.filter(r=>{const i=r.filePath;return n.has(i)?!1:(n.add(i),!0)}).map(r=>r.filePath)}function A(e,n){const r=n?.mode??"file-line",p=`${n?.pkgRunner??"npx"} playwright test`;if(e.length===0)return"";const v=T(e),m=[];for(const[g,d]of v){let c;if(r==="file"){const l=D(d).map(t=>j(u(t))).join(" ");c=`${p} ${l}`}else if(r==="file-line"){const a=new Set,l=d.filter(t=>{const o=t.filePath+":"+t.line;return t.line&&a.has(o)?!1:(t.line&&a.add(o),!0)}).map(t=>t.line?j(`${u(t.filePath)}:${t.line}`):j(u(t.filePath))).join(" ");c=`${p} ${l}`}else{const a=d.map(t=>x(t.title)),l=a.length===1?a[0]:`(${a.join("|")})`;c=`${p} --grep ${j(l)}`}g&&(c+=` --project=${j(g)}`),m.push(c)}let b=m.join(" && ");if(b.length>k){if(r==="grep")return A(e,{...n,mode:"file-line"});if(r==="file-line")return A(e,{...n,mode:"file"});const d=_(e).map(a=>j(u(a))).join(" ");let c=`${p} ${d}`;return c.length>k&&(c=c.slice(0,k-3)+"..."),c}return b}function _(e){const n=new Set;return e.reduce((r,i)=>(n.has(i.filePath)||(n.add(i.filePath),r.push(i.filePath)),r),[])}function C(e,n){return e==null?"":n==null?`:${e}`:`:${e}:${n}`}function w(e){return e.replace(/%/g,"%25").replace(/ /g,"%20").replace(/#/g,"%23").replace(/\?/g,"%3F")}function S(e,n){const r=u(e).replace(/\/+$/,""),i=u(n).replace(/^\.?\/+/,"");return r?`${r}/${i}`:i}function L(e){const n=w(u(e.absPath)),r=n.startsWith("/")?n:`/${n}`;return`${e.scheme}://file${r}${C(e.line,e.column)}`}function F(e){const n=w(u(e.relPath))+C(e.line,e.column);return`jetbrains://${e.product}/navigate/reference?project=${encodeURIComponent(e.projectName)}&path=${n}`}function K(e){const n=w(u(e.path));return`http://localhost:${e.port}/api/file/${n}${C(e.line,e.column)}`}const M="piwi-ide-prefs",G={method:"auto",vscodeScheme:"vscode",jetbrainsProduct:"idea",jetbrainsPort:63342,jetbrainsHttpUsesRelativePath:!1,defaultRoot:"",projectRoots:{},jetbrainsProjectNames:{}},W={vscode:"VS Code","vscode-insiders":"VS Code Insiders",vscodium:"VSCodium",cursor:"Cursor"},X={auto:"Auto (try all)",vscode:"VS Code","jetbrains-url":"JetBrains (URL)","jetbrains-http":"JetBrains (local server)"},Y=["idea","webstorm","pycharm","phpstorm","goland","rubymine","clion","rider","rustrover"];function Q(){const e=B(M,G,{mergeDefaults:!0}),n=H(),r=I("piwi-ide-settings-open",()=>!1),i=I("piwi-ide-settings-context",()=>({}));function p(t){return t==null||t===""?null:String(t)}function v(t={}){i.value={projectKey:t.projectKey??null,projectName:t.projectName??null},r.value=!0}function m(t){const o=p(t);return((o?e.value.projectRoots[o]:void 0)||e.value.defaultRoot||"").trim()}function b(t,o){const s=p(t);return((s?e.value.jetbrainsProjectNames[s]:void 0)||o||"").trim()}function g(t,o){const s=m(o);return s?S(s,t):null}const d=V(()=>!!e.value.defaultRoot?.trim()||Object.keys(e.value.projectRoots).length>0||Object.keys(e.value.jetbrainsProjectNames).length>0);function c(t){try{const o=document.createElement("iframe");o.style.display="none",o.src=t,document.body.appendChild(o),setTimeout(()=>o.remove(),1e3)}catch{const o=document.createElement("a");o.href=t,o.style.display="none",document.body.appendChild(o),o.click(),setTimeout(()=>o.remove(),1e3)}}async function a(t,o,s){const f=K({port:e.value.jetbrainsPort,path:t,line:o,column:s});try{return await fetch(f,{mode:"no-cors",signal:AbortSignal.timeout(1200)}),!0}catch{return!1}}async function l(t){const o=t.method??e.value.method,s=t.filePath,f=t.line??null,P=t.column??null,h=m(t.projectKey),$=b(t.projectKey,t.projectName),O={projectKey:p(t.projectKey),projectName:t.projectName??null},y={label:"Configure",color:"info",onClick:()=>v(O)},J=()=>h?(c(L({scheme:e.value.vscodeScheme,absPath:S(h,s),line:f,column:P})),n.add({title:`Opening ${W[e.value.vscodeScheme]}…`,description:"If nothing opens, the editor may not be installed or the workspace root is wrong.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a workspace root",description:"VS Code needs the local folder that contains this file.",color:"info",icon:"i-lucide-folder-cog",actions:[y]}),!1),E=()=>$?(c(F({product:e.value.jetbrainsProduct,projectName:$,relPath:s,line:f,column:P})),n.add({title:"Opening JetBrains…",description:"If nothing opens, JetBrains Toolbox may not be installed or the project is not open.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a JetBrains project name",description:"The jetbrains:// link needs the open IDE project name.",color:"info",icon:"i-lucide-folder-cog",actions:[y]}),!1),U=async()=>{const R=e.value.jetbrainsHttpUsesRelativePath?s:h?S(h,s):s,N=await a(R,f,P);return n.add(N?{title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"}:{title:"JetBrains not reachable",description:`Nothing responded on localhost:${e.value.jetbrainsPort}. Start the IDE with the Remote Control plugin (and "Allow unsigned requests").`,color:"error",icon:"i-lucide-plug-zap"}),N};if(o==="vscode"){J();return}if(o==="jetbrains-url"){E();return}if(o==="jetbrains-http"){await U();return}if(e.value.jetbrainsHttpUsesRelativePath||!!h){const R=e.value.jetbrainsHttpUsesRelativePath?s:S(h,s);if(await a(R,f,P)){n.add({title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"});return}}if(h){J();return}if($){E();return}n.add({title:'Set up "Open in IDE"',description:"Add your local workspace folder (for VS Code) or a JetBrains project name to open files from here.",color:"info",icon:"i-lucide-folder-cog",actions:[y]})}return{prefs:e,isConfigured:d,openInIde:l,openInVscode:t=>l({...t,method:"vscode"}),openViaJetbrainsUrl:t=>l({...t,method:"jetbrains-url"}),openViaJetbrainsHttp:t=>l({...t,method:"jetbrains-http"}),resolveRoot:m,resolveJbProjectName:b,resolveAbsPath:g,settingsOpen:r,settingsContext:i,openSettings:v}}export{X as I,Y as J,W as V,A as b,Q as u};
1
+ import{av as B,b as H,an as I,h as V}from"./BPKwYP2Q.js";const k=4096;function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(e){return'"'+e.replace(/"/g,'\\"')+'"'}function u(e){return e.replace(/\\/g,"/")}function T(e){const n=new Map;for(const r of e){const i=r.projectName||"";n.has(i)||n.set(i,[]),n.get(i).push(r)}return n}function D(e){const n=new Set;return e.filter(r=>{const i=r.filePath;return n.has(i)?!1:(n.add(i),!0)}).map(r=>r.filePath)}function A(e,n){const r=n?.mode??"file-line",p=`${n?.pkgRunner??"npx"} playwright test`;if(e.length===0)return"";const v=T(e),m=[];for(const[g,d]of v){let c;if(r==="file"){const l=D(d).map(t=>j(u(t))).join(" ");c=`${p} ${l}`}else if(r==="file-line"){const a=new Set,l=d.filter(t=>{const o=t.filePath+":"+t.line;return t.line&&a.has(o)?!1:(t.line&&a.add(o),!0)}).map(t=>t.line?j(`${u(t.filePath)}:${t.line}`):j(u(t.filePath))).join(" ");c=`${p} ${l}`}else{const a=d.map(t=>x(t.title)),l=a.length===1?a[0]:`(${a.join("|")})`;c=`${p} --grep ${j(l)}`}g&&(c+=` --project=${j(g)}`),m.push(c)}let b=m.join(" && ");if(b.length>k){if(r==="grep")return A(e,{...n,mode:"file-line"});if(r==="file-line")return A(e,{...n,mode:"file"});const d=_(e).map(a=>j(u(a))).join(" ");let c=`${p} ${d}`;return c.length>k&&(c=c.slice(0,k-3)+"..."),c}return b}function _(e){const n=new Set;return e.reduce((r,i)=>(n.has(i.filePath)||(n.add(i.filePath),r.push(i.filePath)),r),[])}function C(e,n){return e==null?"":n==null?`:${e}`:`:${e}:${n}`}function w(e){return e.replace(/%/g,"%25").replace(/ /g,"%20").replace(/#/g,"%23").replace(/\?/g,"%3F")}function S(e,n){const r=u(e).replace(/\/+$/,""),i=u(n).replace(/^\.?\/+/,"");return r?`${r}/${i}`:i}function L(e){const n=w(u(e.absPath)),r=n.startsWith("/")?n:`/${n}`;return`${e.scheme}://file${r}${C(e.line,e.column)}`}function F(e){const n=w(u(e.relPath))+C(e.line,e.column);return`jetbrains://${e.product}/navigate/reference?project=${encodeURIComponent(e.projectName)}&path=${n}`}function K(e){const n=w(u(e.path));return`http://localhost:${e.port}/api/file/${n}${C(e.line,e.column)}`}const M="piwi-ide-prefs",G={method:"auto",vscodeScheme:"vscode",jetbrainsProduct:"idea",jetbrainsPort:63342,jetbrainsHttpUsesRelativePath:!1,defaultRoot:"",projectRoots:{},jetbrainsProjectNames:{}},W={vscode:"VS Code","vscode-insiders":"VS Code Insiders",vscodium:"VSCodium",cursor:"Cursor"},X={auto:"Auto (try all)",vscode:"VS Code","jetbrains-url":"JetBrains (URL)","jetbrains-http":"JetBrains (local server)"},Y=["idea","webstorm","pycharm","phpstorm","goland","rubymine","clion","rider","rustrover"];function Q(){const e=B(M,G,{mergeDefaults:!0}),n=H(),r=I("piwi-ide-settings-open",()=>!1),i=I("piwi-ide-settings-context",()=>({}));function p(t){return t==null||t===""?null:String(t)}function v(t={}){i.value={projectKey:t.projectKey??null,projectName:t.projectName??null},r.value=!0}function m(t){const o=p(t);return((o?e.value.projectRoots[o]:void 0)||e.value.defaultRoot||"").trim()}function b(t,o){const s=p(t);return((s?e.value.jetbrainsProjectNames[s]:void 0)||o||"").trim()}function g(t,o){const s=m(o);return s?S(s,t):null}const d=V(()=>!!e.value.defaultRoot?.trim()||Object.keys(e.value.projectRoots).length>0||Object.keys(e.value.jetbrainsProjectNames).length>0);function c(t){try{const o=document.createElement("iframe");o.style.display="none",o.src=t,document.body.appendChild(o),setTimeout(()=>o.remove(),1e3)}catch{const o=document.createElement("a");o.href=t,o.style.display="none",document.body.appendChild(o),o.click(),setTimeout(()=>o.remove(),1e3)}}async function a(t,o,s){const f=K({port:e.value.jetbrainsPort,path:t,line:o,column:s});try{return await fetch(f,{mode:"no-cors",signal:AbortSignal.timeout(1200)}),!0}catch{return!1}}async function l(t){const o=t.method??e.value.method,s=t.filePath,f=t.line??null,P=t.column??null,h=m(t.projectKey),$=b(t.projectKey,t.projectName),O={projectKey:p(t.projectKey),projectName:t.projectName??null},y={label:"Configure",color:"info",onClick:()=>v(O)},J=()=>h?(c(L({scheme:e.value.vscodeScheme,absPath:S(h,s),line:f,column:P})),n.add({title:`Opening ${W[e.value.vscodeScheme]}…`,description:"If nothing opens, the editor may not be installed or the workspace root is wrong.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a workspace root",description:"VS Code needs the local folder that contains this file.",color:"info",icon:"i-lucide-folder-cog",actions:[y]}),!1),E=()=>$?(c(F({product:e.value.jetbrainsProduct,projectName:$,relPath:s,line:f,column:P})),n.add({title:"Opening JetBrains…",description:"If nothing opens, JetBrains Toolbox may not be installed or the project is not open.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a JetBrains project name",description:"The jetbrains:// link needs the open IDE project name.",color:"info",icon:"i-lucide-folder-cog",actions:[y]}),!1),U=async()=>{const R=e.value.jetbrainsHttpUsesRelativePath?s:h?S(h,s):s,N=await a(R,f,P);return n.add(N?{title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"}:{title:"JetBrains not reachable",description:`Nothing responded on localhost:${e.value.jetbrainsPort}. Start the IDE with the Remote Control plugin (and "Allow unsigned requests").`,color:"error",icon:"i-lucide-plug-zap"}),N};if(o==="vscode"){J();return}if(o==="jetbrains-url"){E();return}if(o==="jetbrains-http"){await U();return}if(e.value.jetbrainsHttpUsesRelativePath||!!h){const R=e.value.jetbrainsHttpUsesRelativePath?s:S(h,s);if(await a(R,f,P)){n.add({title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"});return}}if(h){J();return}if($){E();return}n.add({title:'Set up "Open in IDE"',description:"Add your local workspace folder (for VS Code) or a JetBrains project name to open files from here.",color:"info",icon:"i-lucide-folder-cog",actions:[y]})}return{prefs:e,isConfigured:d,openInIde:l,openInVscode:t=>l({...t,method:"vscode"}),openViaJetbrainsUrl:t=>l({...t,method:"jetbrains-url"}),openViaJetbrainsHttp:t=>l({...t,method:"jetbrains-http"}),resolveRoot:m,resolveJbProjectName:b,resolveAbsPath:g,settingsOpen:r,settingsContext:i,openSettings:v}}export{X as I,Y as J,W as V,A as b,Q as u};
@@ -1 +1 @@
1
- import{d as S,o as v,c as h,k as t,F as J,i as x,p as V,T as E,m as l,t as K,j as n,v as A,f as L,g as a,_ as T,q,l as F,h as y,r as U,G as M,E as R}from"./B8fs6GU9.js";import{_ as G}from"./OG2n3p77.js";import{u as H}from"./lRMjXqiA.js";import{u as Q}from"./DWzdeQ3Z.js";function W(i){let o=i,u=null,j=null;const k=i.lastIndexOf(":");if(k>0){const m=i.slice(k+1);if(/^\d+$/.test(m)){const c=i.slice(0,k),b=c.lastIndexOf(":");if(b>0){const g=c.slice(b+1);/^\d+$/.test(g)?(j=parseInt(m,10),u=parseInt(g,10),o=c.slice(0,b)):(u=parseInt(m,10),o=c)}else u=parseInt(m,10),o=c}}return{filePath:o,line:u,column:j}}const X={class:"group/ide inline-flex items-center gap-1 min-w-0 max-w-full align-middle"},Y=["title","aria-label"],Z={type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-colors hover:bg-elevated/60 hover:text-default","aria-label":"Choose how to open in IDE",title:"Choose how to open"},ee={class:"w-56 p-1 space-y-0.5"},te=S({__name:"OpenInIdeLink",props:{filePath:{},line:{default:null},column:{default:null},location:{},projectKey:{},projectName:{},mono:{type:Boolean,default:!0}},setup(i){const o=i,{openInIde:u,openInVscode:j,openViaJetbrainsUrl:k,openViaJetbrainsHttp:m,resolveAbsPath:c,openSettings:b}=H(),{copy:g}=Q(),P=y(()=>o.filePath?{filePath:o.filePath,line:o.line??null,column:o.column??null}:o.location?W(o.location):{filePath:"",line:null,column:null}),f=y(()=>P.value.filePath),w=y(()=>P.value.line),I=y(()=>w.value?`${f.value}:${w.value}`:f.value),O=y(()=>c(f.value,o.projectKey)),r=y(()=>({filePath:f.value,line:w.value,column:P.value.column,projectKey:o.projectKey??null,projectName:o.projectName??null})),C=U(!1),N=U(!1);function _(){N.value=!0,M(()=>{C.value=!0})}function p($){C.value=!1,$()}return($,e)=>{const z=A,d=T,B=G,D=R;return v(),h("span",X,[t(f)?(v(),h(J,{key:0},[x("button",{type:"button",class:"inline-flex items-center gap-1 min-w-0 max-w-full cursor-pointer text-left",title:`Open ${t(I)} in IDE`,"aria-label":`Open ${t(I)} in IDE`,onClick:e[0]||(e[0]=s=>t(u)(t(r)))},[x("span",{class:V([i.mono?"font-mono":"","truncate underline decoration-dashed decoration-1 underline-offset-2 decoration-gray-400/70 dark:decoration-gray-500/70 transition-colors group-hover/ide:decoration-current"])},[E($.$slots,"default",{},()=>[l(K(t(I)),1)])],2),n(z,{name:"i-lucide-external-link",class:"size-3 shrink-0 opacity-0 transition-opacity group-hover/ide:opacity-100"})],8,Y),t(N)?(v(),L(D,{key:1,open:t(C),"onUpdate:open":e[8]||(e[8]=s=>F(C)?C.value=s:null)},{content:a(()=>[x("div",ee,[e[16]||(e[16]=x("p",{class:"text-xs font-medium text-muted px-2 pt-1 pb-1"},"Open in IDE",-1)),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-wand-sparkles",onClick:e[1]||(e[1]=s=>p(()=>t(u)({...t(r),method:"auto"})))},{default:a(()=>[...e[9]||(e[9]=[l(" Auto (try all) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-code",onClick:e[2]||(e[2]=s=>p(()=>t(j)(t(r))))},{default:a(()=>[...e[10]||(e[10]=[l(" Open in VS Code ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-square-code",onClick:e[3]||(e[3]=s=>p(()=>t(k)(t(r))))},{default:a(()=>[...e[11]||(e[11]=[l(" JetBrains (URL) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-server",onClick:e[4]||(e[4]=s=>p(()=>t(m)(t(r))))},{default:a(()=>[...e[12]||(e[12]=[l(" JetBrains (local server) ",-1)])]),_:1}),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard",onClick:e[5]||(e[5]=s=>p(()=>t(g)(t(f),{toast:"Path copied"})))},{default:a(()=>[...e[13]||(e[13]=[l(" Copy path ",-1)])]),_:1}),t(O)?(v(),L(d,{key:0,block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard-check",onClick:e[6]||(e[6]=s=>p(()=>t(g)(t(O),{toast:"Absolute path copied"})))},{default:a(()=>[...e[14]||(e[14]=[l(" Copy absolute path ",-1)])]),_:1})):q("",!0),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-settings",onClick:e[7]||(e[7]=s=>p(()=>t(b)({projectKey:t(r).projectKey?String(t(r).projectKey):null,projectName:t(r).projectName})))},{default:a(()=>[...e[15]||(e[15]=[l(" Configure… ",-1)])]),_:1})])]),default:a(()=>[x("button",Z,[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})])]),_:1},8,["open"])):(v(),h("button",{key:0,type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-opacity hover:bg-elevated/60 hover:text-default opacity-100 sm:opacity-0 sm:group-hover/ide:opacity-100 focus-visible:opacity-100","aria-label":"Choose how to open in IDE",title:"Choose how to open",onClick:_},[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})]))],64)):(v(),h("span",{key:1,class:V([i.mono?"font-mono":"","truncate"])},[E($.$slots,"default",{},()=>[l(K(t(I)),1)])],2))])}}}),ae=Object.assign(te,{__name:"OpenInIdeLink"});export{ae as _};
1
+ import{d as S,o as v,c as h,k as t,F as J,i as x,p as V,T as E,m as l,t as K,j as n,v as A,f as L,g as a,_ as T,q,l as F,h as y,r as U,G as M,E as R}from"./BPKwYP2Q.js";import{_ as G}from"./DgYM3eyi.js";import{u as H}from"./Bb64FEFL.js";import{u as Q}from"./DuMv-ugy.js";function W(i){let o=i,u=null,j=null;const k=i.lastIndexOf(":");if(k>0){const m=i.slice(k+1);if(/^\d+$/.test(m)){const c=i.slice(0,k),b=c.lastIndexOf(":");if(b>0){const g=c.slice(b+1);/^\d+$/.test(g)?(j=parseInt(m,10),u=parseInt(g,10),o=c.slice(0,b)):(u=parseInt(m,10),o=c)}else u=parseInt(m,10),o=c}}return{filePath:o,line:u,column:j}}const X={class:"group/ide inline-flex items-center gap-1 min-w-0 max-w-full align-middle"},Y=["title","aria-label"],Z={type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-colors hover:bg-elevated/60 hover:text-default","aria-label":"Choose how to open in IDE",title:"Choose how to open"},ee={class:"w-56 p-1 space-y-0.5"},te=S({__name:"OpenInIdeLink",props:{filePath:{},line:{default:null},column:{default:null},location:{},projectKey:{},projectName:{},mono:{type:Boolean,default:!0}},setup(i){const o=i,{openInIde:u,openInVscode:j,openViaJetbrainsUrl:k,openViaJetbrainsHttp:m,resolveAbsPath:c,openSettings:b}=H(),{copy:g}=Q(),P=y(()=>o.filePath?{filePath:o.filePath,line:o.line??null,column:o.column??null}:o.location?W(o.location):{filePath:"",line:null,column:null}),f=y(()=>P.value.filePath),w=y(()=>P.value.line),I=y(()=>w.value?`${f.value}:${w.value}`:f.value),O=y(()=>c(f.value,o.projectKey)),r=y(()=>({filePath:f.value,line:w.value,column:P.value.column,projectKey:o.projectKey??null,projectName:o.projectName??null})),C=U(!1),N=U(!1);function _(){N.value=!0,M(()=>{C.value=!0})}function p($){C.value=!1,$()}return($,e)=>{const z=A,d=T,B=G,D=R;return v(),h("span",X,[t(f)?(v(),h(J,{key:0},[x("button",{type:"button",class:"inline-flex items-center gap-1 min-w-0 max-w-full cursor-pointer text-left",title:`Open ${t(I)} in IDE`,"aria-label":`Open ${t(I)} in IDE`,onClick:e[0]||(e[0]=s=>t(u)(t(r)))},[x("span",{class:V([i.mono?"font-mono":"","truncate underline decoration-dashed decoration-1 underline-offset-2 decoration-gray-400/70 dark:decoration-gray-500/70 transition-colors group-hover/ide:decoration-current"])},[E($.$slots,"default",{},()=>[l(K(t(I)),1)])],2),n(z,{name:"i-lucide-external-link",class:"size-3 shrink-0 opacity-0 transition-opacity group-hover/ide:opacity-100"})],8,Y),t(N)?(v(),L(D,{key:1,open:t(C),"onUpdate:open":e[8]||(e[8]=s=>F(C)?C.value=s:null)},{content:a(()=>[x("div",ee,[e[16]||(e[16]=x("p",{class:"text-xs font-medium text-muted px-2 pt-1 pb-1"},"Open in IDE",-1)),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-wand-sparkles",onClick:e[1]||(e[1]=s=>p(()=>t(u)({...t(r),method:"auto"})))},{default:a(()=>[...e[9]||(e[9]=[l(" Auto (try all) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-code",onClick:e[2]||(e[2]=s=>p(()=>t(j)(t(r))))},{default:a(()=>[...e[10]||(e[10]=[l(" Open in VS Code ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-square-code",onClick:e[3]||(e[3]=s=>p(()=>t(k)(t(r))))},{default:a(()=>[...e[11]||(e[11]=[l(" JetBrains (URL) ",-1)])]),_:1}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-server",onClick:e[4]||(e[4]=s=>p(()=>t(m)(t(r))))},{default:a(()=>[...e[12]||(e[12]=[l(" JetBrains (local server) ",-1)])]),_:1}),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard",onClick:e[5]||(e[5]=s=>p(()=>t(g)(t(f),{toast:"Path copied"})))},{default:a(()=>[...e[13]||(e[13]=[l(" Copy path ",-1)])]),_:1}),t(O)?(v(),L(d,{key:0,block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-clipboard-check",onClick:e[6]||(e[6]=s=>p(()=>t(g)(t(O),{toast:"Absolute path copied"})))},{default:a(()=>[...e[14]||(e[14]=[l(" Copy absolute path ",-1)])]),_:1})):q("",!0),n(B,{class:"my-1"}),n(d,{block:"",size:"sm",color:"neutral",variant:"ghost",class:"justify-start",icon:"i-lucide-settings",onClick:e[7]||(e[7]=s=>p(()=>t(b)({projectKey:t(r).projectKey?String(t(r).projectKey):null,projectName:t(r).projectName})))},{default:a(()=>[...e[15]||(e[15]=[l(" Configure… ",-1)])]),_:1})])]),default:a(()=>[x("button",Z,[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})])]),_:1},8,["open"])):(v(),h("button",{key:0,type:"button",class:"shrink-0 inline-flex items-center rounded p-0.5 text-muted cursor-pointer transition-opacity hover:bg-elevated/60 hover:text-default opacity-100 sm:opacity-0 sm:group-hover/ide:opacity-100 focus-visible:opacity-100","aria-label":"Choose how to open in IDE",title:"Choose how to open",onClick:_},[n(z,{name:"i-lucide-chevron-down",class:"size-3.5"})]))],64)):(v(),h("span",{key:1,class:V([i.mono?"font-mono":"","truncate"])},[E($.$slots,"default",{},()=>[l(K(t(I)),1)])],2))])}}}),ae=Object.assign(te,{__name:"OpenInIdeLink"});export{ae as _};
@@ -1 +1 @@
1
- import{b$ as s}from"./B8fs6GU9.js";import{h as n}from"./3SnTawZW.js";const l=[{id:"account",label:"Account",icon:"i-lucide-user-round",to:"/settings/account",fields:[{id:"account.display-name",label:"Display name",help:"account.display-name"},{id:"account.email",label:"Email address",help:"account.email"},{id:"account.connected-accounts",label:"Connected accounts",help:"account.connected-accounts"},{id:"account.password",label:"Password",help:"account.password"},{id:"account.auth-toggle",label:"Authentication",help:"settings.auth-toggle",envOnly:!0}]},{id:"users",label:"Users",icon:"i-lucide-users",to:"/settings/users",roles:[s.ADMINISTRATOR],introHelp:"settings.users",fields:[{id:"users.list",label:"Users & roles",help:"settings.users"},{id:"users.api-keys",label:"API keys",help:"settings.api-keys"}]},{id:"notifications",label:"Notifications",icon:"i-lucide-bell",to:"/settings/notifications",fields:[{id:"notifications.smtp",label:"SMTP email delivery",help:"settings.smtp",envOnly:!0},{id:"notifications.test-email",label:"Send test email",help:"notifications.test-email"},{id:"notifications.channels",label:"Notification channels",help:"notifications.channels"},{id:"notifications.subscriptions",label:"My subscriptions",help:"notifications.subscriptions"}]},{id:"tags",label:"Tags",icon:"i-lucide-tags",to:"/settings/tags",roles:[s.ADMINISTRATOR],introHelp:"settings.tags",fields:[{id:"tags.list",label:"Tags",help:"settings.tags"}]},{id:"storage",label:"Storage",icon:"i-lucide-hard-drive",to:"/settings/storage",roles:[s.ADMINISTRATOR],fields:[{id:"storage.backend",label:"Storage backend",help:"settings.storage-backend",envOnly:!0},{id:"storage.stats",label:"Storage statistics",help:"settings.storage-stats"},{id:"storage.cleanup",label:"Cleanup old test runs",help:"settings.cleanup"}]},{id:"wasted-time",label:"Wasted time",icon:"i-lucide-hourglass",to:"/settings/wasted-time",roles:[s.ADMINISTRATOR],introHelp:"settings.wasted-time",fields:[{id:"wasted-time.patterns",label:"Wasted-time patterns",help:"settings.wasted-time"}]},{id:"ai",label:"AI diagnosis",icon:"i-lucide-sparkles",to:"/settings/ai",roles:[s.ADMINISTRATOR],fields:[{id:"ai.diagnosis",label:"Diagnosis model",help:"settings.ai-provider"},{id:"ai.research",label:"Research model",help:"settings.ai-research"},{id:"ai.embedding",label:"Embedding model",help:"settings.embedding-model"},{id:"ai.auto-diagnose",label:"Auto-diagnose",help:"settings.auto-diagnose"},{id:"ai.context-limits",label:"Diagnosis context limits",help:"settings.ai-limits"},{id:"ai.instructions",label:"Global analysis instructions",help:"settings.ai-instructions"},{id:"ai.scm-token",label:"Repository access token",help:"project.scm-token"},{id:"ai.privacy",label:"Privacy notice",help:"settings.privacy"}]},{id:"about",label:"About",icon:"i-lucide-info",to:"/settings/about",fields:[]}];function o(e){return n(e.help)}function r(e){const i=new Set;for(const t of e.fields)for(const a of o(t))i.add(a);return[...i]}function g(e){const i=l.find(t=>t.id===e);if(!i)throw new Error(`Unknown settings page: ${e}`);return i}export{l as S,g,r as p};
1
+ import{b_ as i}from"./BPKwYP2Q.js";import{h as a}from"./r3SBLxtE.js";const l=[{id:"account",label:"Account",icon:"i-lucide-user-round",to:"/settings/account",fields:[{id:"account.display-name",label:"Display name",help:"account.display-name"},{id:"account.email",label:"Email address",help:"account.email"},{id:"account.connected-accounts",label:"Connected accounts",help:"account.connected-accounts"},{id:"account.password",label:"Password",help:"account.password"},{id:"account.auth-toggle",label:"Authentication",help:"settings.auth-toggle",envOnly:!0}]},{id:"users",label:"Users",icon:"i-lucide-users",to:"/settings/users",roles:[i.ADMINISTRATOR],introHelp:"settings.users",fields:[{id:"users.list",label:"Users & roles",help:"settings.users"},{id:"users.api-keys",label:"API keys",help:"settings.api-keys"}]},{id:"notifications",label:"Notifications",icon:"i-lucide-bell",to:"/settings/notifications",fields:[{id:"notifications.smtp",label:"SMTP email delivery",help:"settings.smtp",envOnly:!0},{id:"notifications.test-email",label:"Send test email",help:"notifications.test-email"},{id:"notifications.channels",label:"Notification channels",help:"notifications.channels"},{id:"notifications.subscriptions",label:"My subscriptions",help:"notifications.subscriptions"}]},{id:"tags",label:"Tags",icon:"i-lucide-tags",to:"/settings/tags",roles:[i.ADMINISTRATOR],introHelp:"settings.tags",fields:[{id:"tags.list",label:"Tags",help:"settings.tags"}]},{id:"storage",label:"Storage",icon:"i-lucide-hard-drive",to:"/settings/storage",roles:[i.ADMINISTRATOR],fields:[{id:"storage.backend",label:"Storage backend",help:"settings.storage-backend",envOnly:!0},{id:"storage.stats",label:"Storage statistics",help:"settings.storage-stats"},{id:"storage.cleanup",label:"Cleanup old test runs",help:"settings.cleanup"}]},{id:"wasted-time",label:"Wasted time",icon:"i-lucide-hourglass",to:"/settings/wasted-time",roles:[i.ADMINISTRATOR],introHelp:"settings.wasted-time",fields:[{id:"wasted-time.patterns",label:"Wasted-time patterns",help:"settings.wasted-time"}]},{id:"timeout-hygiene",label:"Timeout hygiene",icon:"i-lucide-scissors",to:"/settings/timeout-hygiene",roles:[i.ADMINISTRATOR],introHelp:"settings.timeout-hygiene",fields:[{id:"timeout-hygiene.thresholds",label:"Detection thresholds",help:"settings.timeout-hygiene"}]},{id:"ai",label:"AI diagnosis",icon:"i-lucide-sparkles",to:"/settings/ai",roles:[i.ADMINISTRATOR],fields:[{id:"ai.diagnosis",label:"Diagnosis model",help:"settings.ai-provider"},{id:"ai.research",label:"Research model",help:"settings.ai-research"},{id:"ai.embedding",label:"Embedding model",help:"settings.embedding-model"},{id:"ai.auto-diagnose",label:"Auto-diagnose",help:"settings.auto-diagnose"},{id:"ai.context-limits",label:"Diagnosis context limits",help:"settings.ai-limits"},{id:"ai.instructions",label:"Global analysis instructions",help:"settings.ai-instructions"},{id:"ai.scm-token",label:"Repository access token",help:"project.scm-token"},{id:"ai.privacy",label:"Privacy notice",help:"settings.privacy"}]},{id:"about",label:"About",icon:"i-lucide-info",to:"/settings/about",fields:[]}];function o(e){return a(e.help)}function r(e){const t=new Set;for(const s of e.fields)for(const n of o(s))t.add(n);return[...t]}function g(e){const t=l.find(s=>s.id===e);if(!t)throw new Error(`Unknown settings page: ${e}`);return t}export{l as S,g,r as p};
@@ -1 +1 @@
1
- import{_ as N}from"./ETOCcsVw.js";import{_ as z}from"./DZLrAp2i.js";import{u as B,w as I,C as M,O as k,a as V,_ as L}from"./BW1UOxWn.js";import{d as P,n as j,o as n,c as d,k as t,j as s,g as E,O as H,i as o,t as l,m as U,p as W,q as h,f as q,h as y,r as F}from"./B8fs6GU9.js";const X={class:"w-full relative"},A={key:0},G={class:"p-2 text-sm text-gray-900 dark:text-gray-100"},J={class:"font-semibold mb-1"},K={class:"space-y-0.5"},Q={key:0,class:"text-gray-400 text-xs"},Y="rgb(148, 163, 184)",Z=P({__name:"TestCaseHistoryChart",props:{data:{},height:{default:200},markers:{default:()=>[]}},emits:["marker-click"],setup(p,{emit:f}){const i=p,x=f,b=y(()=>i.markers),c=y(()=>!i.data||i.data.length===0?[]:[...i.data].sort((a,m)=>new Date(a.startTime).getTime()-new Date(m.startTime).getTime()).map(a=>({id:a.id,runId:a.runId,date:new Date(a.startTime),duration:a.duration??void 0,status:a.status,runStatus:a.runStatus}))),v=e=>e.date,C=e=>e.duration,S=e=>e==="passed"?"rgb(34, 197, 94)":e==="failed"||e==="timedOut"?"rgb(239, 68, 68)":"rgb(156, 163, 175)",_=F(null),{tooltipData:r,tooltipPos:g,markerTooltip:T,markerTooltipPos:w,onRenderComplete:D}=B(_,c,{x:e=>e.date,series:[{y:e=>e.duration,color:e=>S(e.status)}],radius:5,hoverRadius:8,strokeWidth:2,hoverStrokeWidth:3,onClick:e=>j(`/test-runs/${e.runId}`),markers:b,onMarkerClick:e=>x("marker-click",e.id)}),O=[{color:"rgb(34, 197, 94)",label:"Passed"},{color:"rgb(239, 68, 68)",label:"Failed"},{color:"rgb(156, 163, 175)",label:"Skipped"}];return(e,a)=>{const m=N,R=z,$=L;return n(),d("div",X,[t(c).length>0?(n(),d("div",A,[s(t(V),{ref_key:"xyContainerRef",ref:_,data:t(c),height:p.height,padding:{top:10,right:10,bottom:0,left:0},"on-render-complete":t(D)},{default:E(()=>[s(t(I),{x:v,y:C,color:[Y],"curve-type":t(M).MonotoneX,"line-width":1.5},null,8,["color","curve-type"]),s(t(k),{type:"x","tick-format":u=>new Date(u).toLocaleDateString("en-US",{month:"short",day:"numeric"})},null,8,["tick-format"]),s(t(k),{type:"y",label:"Duration (ms)","tick-format":u=>`${u}ms`},null,8,["tick-format"])]),_:1},8,["data","height","on-render-complete"]),t(r)?(n(),d("div",{key:0,class:"fixed z-50 pointer-events-none bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700",style:H({left:`${t(g).x}px`,top:`${t(g).y}px`})},[o("div",G,[o("div",J,l(new Date(t(r).date).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})),1),o("div",K,[o("div",null,[a[0]||(a[0]=U(" Status: ",-1)),o("span",{class:W(["font-medium capitalize",t(r).status==="passed"?"text-green-600":t(r).status==="failed"||t(r).status==="timedOut"?"text-red-600":""])},l(t(r).status),3)]),o("div",null,"Duration: "+l(t(r).duration)+"ms",1),t(r).runStatus?(n(),d("div",Q," Run status: "+l(t(r).runStatus),1)):h("",!0)]),a[1]||(a[1]=o("div",{class:"text-gray-400 text-xs mt-1"},"Click to view run details",-1))])],4)):h("",!0),s(m,{marker:t(T),pos:t(w)},null,8,["marker","pos"])])):(n(),q(R,{key:1,text:"No history data available to display chart"})),s($,{items:O,dense:""})])}}}),ot=Object.assign(Z,{__name:"TestCaseHistoryChart"});export{ot as _};
1
+ import{_ as N}from"./CTdvGdc2.js";import{_ as z}from"./xUrLy-Zn.js";import{u as B,w as I,C as M,O as k,a as V,_ as L}from"./BV83yObd.js";import{d as P,n as j,o as n,c as d,k as t,j as s,g as E,O as H,i as o,t as l,m as U,p as W,q as h,f as q,h as y,r as F}from"./BPKwYP2Q.js";const X={class:"w-full relative"},A={key:0},G={class:"p-2 text-sm text-gray-900 dark:text-gray-100"},J={class:"font-semibold mb-1"},K={class:"space-y-0.5"},Q={key:0,class:"text-gray-400 text-xs"},Y="rgb(148, 163, 184)",Z=P({__name:"TestCaseHistoryChart",props:{data:{},height:{default:200},markers:{default:()=>[]}},emits:["marker-click"],setup(p,{emit:f}){const i=p,x=f,b=y(()=>i.markers),c=y(()=>!i.data||i.data.length===0?[]:[...i.data].sort((a,m)=>new Date(a.startTime).getTime()-new Date(m.startTime).getTime()).map(a=>({id:a.id,runId:a.runId,date:new Date(a.startTime),duration:a.duration??void 0,status:a.status,runStatus:a.runStatus}))),v=e=>e.date,C=e=>e.duration,S=e=>e==="passed"?"rgb(34, 197, 94)":e==="failed"||e==="timedOut"?"rgb(239, 68, 68)":"rgb(156, 163, 175)",_=F(null),{tooltipData:r,tooltipPos:g,markerTooltip:T,markerTooltipPos:w,onRenderComplete:D}=B(_,c,{x:e=>e.date,series:[{y:e=>e.duration,color:e=>S(e.status)}],radius:5,hoverRadius:8,strokeWidth:2,hoverStrokeWidth:3,onClick:e=>j(`/test-runs/${e.runId}`),markers:b,onMarkerClick:e=>x("marker-click",e.id)}),O=[{color:"rgb(34, 197, 94)",label:"Passed"},{color:"rgb(239, 68, 68)",label:"Failed"},{color:"rgb(156, 163, 175)",label:"Skipped"}];return(e,a)=>{const m=N,R=z,$=L;return n(),d("div",X,[t(c).length>0?(n(),d("div",A,[s(t(V),{ref_key:"xyContainerRef",ref:_,data:t(c),height:p.height,padding:{top:10,right:10,bottom:0,left:0},"on-render-complete":t(D)},{default:E(()=>[s(t(I),{x:v,y:C,color:[Y],"curve-type":t(M).MonotoneX,"line-width":1.5},null,8,["color","curve-type"]),s(t(k),{type:"x","tick-format":u=>new Date(u).toLocaleDateString("en-US",{month:"short",day:"numeric"})},null,8,["tick-format"]),s(t(k),{type:"y",label:"Duration (ms)","tick-format":u=>`${u}ms`},null,8,["tick-format"])]),_:1},8,["data","height","on-render-complete"]),t(r)?(n(),d("div",{key:0,class:"fixed z-50 pointer-events-none bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700",style:H({left:`${t(g).x}px`,top:`${t(g).y}px`})},[o("div",G,[o("div",J,l(new Date(t(r).date).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})),1),o("div",K,[o("div",null,[a[0]||(a[0]=U(" Status: ",-1)),o("span",{class:W(["font-medium capitalize",t(r).status==="passed"?"text-green-600":t(r).status==="failed"||t(r).status==="timedOut"?"text-red-600":""])},l(t(r).status),3)]),o("div",null,"Duration: "+l(t(r).duration)+"ms",1),t(r).runStatus?(n(),d("div",Q," Run status: "+l(t(r).runStatus),1)):h("",!0)]),a[1]||(a[1]=o("div",{class:"text-gray-400 text-xs mt-1"},"Click to view run details",-1))])],4)):h("",!0),s(m,{marker:t(T),pos:t(w)},null,8,["marker","pos"])])):(n(),q(R,{key:1,text:"No history data available to display chart"})),s($,{items:O,dense:""})])}}}),ot=Object.assign(Z,{__name:"TestCaseHistoryChart"});export{ot as _};
@@ -1 +1 @@
1
- import{d as i,o as t,c as o,F as c,y as l,f as p,g as _,m,t as f,k as a,q as u,_ as h}from"./B8fs6GU9.js";import{k as d,w as g,v as k}from"./CvCF77E-.js";const y={key:0,class:"flex flex-wrap gap-1"},x=i({__name:"RunReports",props:{reports:{}},setup(n){return(s,B)=>{const r=h;return n.reports?.length?(t(),o("div",y,[(t(!0),o(c,null,l(n.reports,e=>(t(),p(r,{key:`${e.type}-${e.path}`,href:`/api/files/${a(k)(e.path)}`,icon:("reportIcon"in s?s.reportIcon:a(g))(e.type),title:e.size?a(d)(e.size):e.label,target:"_blank",size:"xs",variant:"outline"},{default:_(()=>[m(f(e.label),1)]),_:2},1032,["href","icon","title"]))),128))])):u("",!0)}}}),$=Object.assign(x,{__name:"RunReports"});export{$ as _};
1
+ import{d as i,o as t,c as o,F as c,y as l,f as p,g as _,m,t as f,k as a,q as u,_ as h}from"./BPKwYP2Q.js";import{k as d,x as g,w as k}from"./k-z_VVTK.js";const x={key:0,class:"flex flex-wrap gap-1"},y=i({__name:"RunReports",props:{reports:{}},setup(n){return(s,B)=>{const r=h;return n.reports?.length?(t(),o("div",x,[(t(!0),o(c,null,l(n.reports,e=>(t(),p(r,{key:`${e.type}-${e.path}`,href:`/api/files/${a(k)(e.path)}`,icon:("reportIcon"in s?s.reportIcon:a(g))(e.type),title:e.size?a(d)(e.size):e.label,target:"_blank",size:"xs",variant:"outline"},{default:_(()=>[m(f(e.label),1)]),_:2},1032,["href","icon","title"]))),128))])):u("",!0)}}}),$=Object.assign(y,{__name:"RunReports"});export{$ as _};
@@ -1 +1 @@
1
- import{_ as f}from"./B32-7cBF.js";import{_ as b}from"./BY0AkhJh.js";import{_ as h}from"./nUsJV5qo.js";import{_ as j,a as x}from"./C9jjVEQU.js";import{_ as y}from"./Cfk2_UCm.js";import{d as C,u as $,w as v,e as w,f as P,g as a,h as g,o as k,i as B,j as t,k as e,r as N}from"./B8fs6GU9.js";import{u as R}from"./DAeYEeCC.js";import"./BtJkQ3to.js";import"./IdQR_Djw.js";import"./D1tZEdSi.js";import"./DiUGa0CT.js";import"./DKTDub7I.js";import"./Surk4Lw-.js";import"./DZLrAp2i.js";import"./n7Htv9PJ.js";import"./BkhdAGx0.js";import"./DFw8I2FL.js";import"./CvCF77E-.js";import"./2PU-adwy.js";import"./OG2n3p77.js";import"./lRMjXqiA.js";import"./DWzdeQ3Z.js";import"./D4nLD93c.js";import"./4fB15L_7.js";import"./BBJ9Pu3M.js";import"./wCQds5_f.js";import"./3SnTawZW.js";import"./B32ySRXg.js";import"./CFn3w5jn.js";const D={class:"p-4"},pe=C({__name:"test-cases",async setup(T){let r,n;const i=$(),s=String(i.params.id),{data:o}=([r,n]=v(()=>R(`/api/projects/${s}`,"$yKRg49mBCi")),r=await r,n(),r),c=N(null);return w(g(()=>({title:`${o.value?.label||o.value?.name||"Project"} — Test cases — Piwi Dashboard`}))),(U,A)=>{const m=f,p=b,_=h,l=x,u=y,d=j;return k(),P(d,{id:"project-test-cases"},{header:a(()=>[t(l,null,{leading:a(()=>[t(m),t(p,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:e(o)?.label||e(o)?.name||"Project",to:`/projects/${e(s)}`},{label:"Test cases"}]},null,8,["items"])]),right:a(()=>[t(_,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>e(c)?.refresh()}]},null,8,["actions"])]),_:1})]),body:a(()=>[B("div",D,[t(u,{ref_key:"tableRef",ref:c,"project-id":e(s),"project-name":e(o)?.name,"sync-query":""},null,8,["project-id","project-name"])])]),_:1})}}});export{pe as default};
1
+ import{_ as f}from"./Bvfmwzgw.js";import{_ as b}from"./ze9-Ill2.js";import{_ as h}from"./BIksQZfR.js";import{_ as j,a as x}from"./IFqRT_xJ.js";import{_ as y}from"./DfcAIbcX.js";import{d as C,u as $,w as v,e as w,f as P,g as a,h as g,o as k,i as B,j as t,k as e,r as N}from"./BPKwYP2Q.js";import{u as R}from"./BIf1R_fu.js";import"./iwD5atI2.js";import"./C1K3r_fc.js";import"./jIF87ALb.js";import"./DbeHHTk-.js";import"./CgoAUz76.js";import"./CKB_doYB.js";import"./xUrLy-Zn.js";import"./Br2K9yi_.js";import"./Dzz9_Z0u.js";import"./BpceIssd.js";import"./k-z_VVTK.js";import"./BdFEUAlx.js";import"./DgYM3eyi.js";import"./Bb64FEFL.js";import"./DuMv-ugy.js";import"./BuZOa2M3.js";import"./d5ZB3uxF.js";import"./DhA17dqR.js";import"./CQeMb57w.js";import"./r3SBLxtE.js";import"./B7yG1G_l.js";import"./DJS3Bf50.js";const D={class:"p-4"},pe=C({__name:"test-cases",async setup(T){let r,n;const i=$(),s=String(i.params.id),{data:o}=([r,n]=v(()=>R(`/api/projects/${s}`,"$yKRg49mBCi")),r=await r,n(),r),c=N(null);return w(g(()=>({title:`${o.value?.label||o.value?.name||"Project"} — Test cases — Piwi Dashboard`}))),(U,A)=>{const m=f,p=b,_=h,l=x,u=y,d=j;return k(),P(d,{id:"project-test-cases"},{header:a(()=>[t(l,null,{leading:a(()=>[t(m),t(p,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:e(o)?.label||e(o)?.name||"Project",to:`/projects/${e(s)}`},{label:"Test cases"}]},null,8,["items"])]),right:a(()=>[t(_,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>e(c)?.refresh()}]},null,8,["actions"])]),_:1})]),body:a(()=>[B("div",D,[t(u,{ref_key:"tableRef",ref:c,"project-id":e(s),"project-name":e(o)?.name,"sync-query":""},null,8,["project-id","project-name"])])]),_:1})}}});export{pe as default};
@@ -1 +1 @@
1
- import{_ as F}from"./DKTDub7I.js";import{_ as O}from"./B32ySRXg.js";import{_ as T}from"./n7Htv9PJ.js";import{aw as D,d as G,L as H,a as Y,u as K,b as J,C as q,c as I,i as r,k as t,f as m,g as s,j as a,m as f,K as Q,r as _,x as W,o as i,q as v,H as M,D as X,_ as Z,v as ee,I as N,h as te}from"./B8fs6GU9.js";import{_ as ae}from"./PPFO8UVt.js";import{_ as se}from"./OG2n3p77.js";import"./BC_Wu-fv.js";const oe=D("/logo-wide.svg"),ne={class:"min-h-screen flex flex-col items-center justify-center bg-elevated/50 gap-6 px-4"},le={key:1,class:"space-y-2 mb-4"},re={class:"mt-4 text-center"},ie={class:"flex items-center gap-4 text-sm text-muted"},de={href:"https://github.com/piwitests/platform",target:"_blank",rel:"noopener",class:"flex items-center gap-1.5 hover:text-default transition-colors"},ve=G({__name:"login",setup(ue){const{login:A}=H(),C=Y(),z=K(),y=J(),P=Q(),d=N({username:"",password:""}),w=_(!1),c=_(""),h=_(null),o=N({username:"",password:"",confirmPassword:"",name:""}),u=_(!1),p=_("");q(async()=>{if(P.public.demoMode){h.value=!1;return}try{const n=await $fetch("/api/auth/setup");h.value=n.needsSetup}catch{h.value=!1}});async function B(){if(!o.username||!o.password){p.value="Please choose a username and password";return}if(o.password!==o.confirmPassword){p.value="Passwords do not match";return}u.value=!0,p.value="";try{await $fetch("/api/auth/setup",{method:"POST",body:{username:o.username,password:o.password,name:o.name||void 0}}),await A(o.username,o.password),y.add({title:"Admin account created",description:"You're signed in.",color:"success"}),C.push("/")}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;p.value=e||"Failed to create the admin account",y.add({title:"Setup failed",description:p.value,color:"error"})}finally{u.value=!1}}const x=te(()=>P.public.demoMode?[]:P.public.oauthProviders||[]);q(()=>{const n=z.query.error;if(n){const e={"access-denied":"Access was denied","invalid-state":"Authentication failed (invalid state)","missing-code":"Authentication failed (missing code)","oauth-failed":"OAuth authentication failed","account-exists":"This email is already linked to a different sign-in method. Sign in with that method instead.","domain-not-allowed":"Your email domain is not allowed to sign in here.","org-not-allowed":"You are not a member of an allowed organization.","link-requires-login":"Please sign in before connecting a provider.","auth-disabled":"Authentication is not enabled","invalid-provider":"Invalid OAuth provider"};c.value=e[n]||"Authentication failed"}});async function E(){if(!d.username||!d.password){c.value="Please enter username and password";return}w.value=!0,c.value="";try{await A(d.username,d.password),y.add({title:"Login successful",color:"success"}),C.push("/")}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;c.value=e||"Invalid username or password",y.add({title:"Login failed",description:c.value,color:"error"})}finally{w.value=!1}}function S(n){window.location.href=`/api/auth/oauth/${n}/login`}return(n,e)=>{const R=F,U=O,$=T,g=X,b=ae,k=Z,V=ee,j=se,L=W;return i(),I("div",ne,[e[18]||(e[18]=r("img",{src:oe,alt:"Piwi Dashboard",class:"h-16 rounded-xl"},null,-1)),t(h)===null?(i(),m(U,{key:0,class:"w-full max-w-md"},{default:s(()=>[a(R,{text:"Loading…"})]),_:1})):t(h)?(i(),m(U,{key:1,class:"w-full max-w-md"},{header:s(()=>[...e[8]||(e[8]=[r("h1",{class:"text-xl font-semibold"},"Create the first admin account",-1),r("p",{class:"text-sm text-muted mt-1"}," Authentication is enabled and no accounts exist yet. Create the administrator account to sign in. ",-1)])]),default:s(()=>[t(p)?(i(),m($,{key:0,color:"error",title:t(p),variant:"subtle",class:"mb-4"},null,8,["title"])):v("",!0),r("form",{class:"space-y-4",onSubmit:M(B,["prevent"])},[a(b,{label:"Username",name:"username",required:""},{default:s(()=>[a(g,{modelValue:t(o).username,"onUpdate:modelValue":e[0]||(e[0]=l=>t(o).username=l),type:"text",placeholder:"Choose a username",autocomplete:"username",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Name",name:"name"},{default:s(()=>[a(g,{modelValue:t(o).name,"onUpdate:modelValue":e[1]||(e[1]=l=>t(o).name=l),type:"text",placeholder:"Administrator (optional)",autocomplete:"name",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Password",name:"password",required:""},{default:s(()=>[a(g,{modelValue:t(o).password,"onUpdate:modelValue":e[2]||(e[2]=l=>t(o).password=l),type:"password",placeholder:"Choose a password",autocomplete:"new-password",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Confirm password",name:"confirmPassword",required:""},{default:s(()=>[a(g,{modelValue:t(o).confirmPassword,"onUpdate:modelValue":e[3]||(e[3]=l=>t(o).confirmPassword=l),type:"password",placeholder:"Re-enter the password",autocomplete:"new-password",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(k,{type:"submit",block:"",loading:t(u),disabled:t(u)},{default:s(()=>[...e[9]||(e[9]=[f(" Create admin account ",-1)])]),_:1},8,["loading","disabled"])],32)]),_:1})):(i(),m(U,{key:2,class:"w-full max-w-md"},{header:s(()=>[...e[10]||(e[10]=[r("h1",{class:"text-xl font-semibold"},"Sign in to your account",-1)])]),default:s(()=>[t(c)?(i(),m($,{key:0,color:"error",title:t(c),variant:"subtle",class:"mb-4"},null,8,["title"])):v("",!0),t(x).length>0?(i(),I("div",le,[t(x).includes("google")?(i(),m(k,{key:0,block:"",color:"neutral",variant:"outline",onClick:e[4]||(e[4]=l=>S("google"))},{leading:s(()=>[a(V,{name:"i-lucide-chrome",class:"size-5"})]),default:s(()=>[e[11]||(e[11]=f(" Sign in with Google ",-1))]),_:1})):v("",!0),t(x).includes("github")?(i(),m(k,{key:1,block:"",color:"neutral",variant:"outline",onClick:e[5]||(e[5]=l=>S("github"))},{leading:s(()=>[a(V,{name:"i-lucide-github",class:"size-5"})]),default:s(()=>[e[12]||(e[12]=f(" Sign in with GitHub ",-1))]),_:1})):v("",!0),t(x).length>0?(i(),m(j,{key:2,label:"or continue with password",class:"my-4"})):v("",!0)])):v("",!0),r("form",{class:"space-y-4",onSubmit:M(E,["prevent"])},[a(b,{label:"Username",name:"username",required:""},{default:s(()=>[a(g,{modelValue:t(d).username,"onUpdate:modelValue":e[6]||(e[6]=l=>t(d).username=l),type:"text",placeholder:"Enter your username",autocomplete:"username",disabled:t(w),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Password",name:"password",required:""},{default:s(()=>[a(g,{modelValue:t(d).password,"onUpdate:modelValue":e[7]||(e[7]=l=>t(d).password=l),type:"password",placeholder:"Enter your password",autocomplete:"current-password",disabled:t(w),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(k,{type:"submit",block:"",loading:t(w),disabled:t(w)},{default:s(()=>[...e[13]||(e[13]=[f(" Login ",-1)])]),_:1},8,["loading","disabled"])],32),r("div",re,[a(L,{to:"/forgot-password",class:"text-sm text-muted hover:text-default"},{default:s(()=>[...e[14]||(e[14]=[f(" Forgot password? ",-1)])]),_:1})])]),_:1})),r("div",ie,[r("a",de,[a(V,{name:"i-lucide-github",class:"size-4"}),e[15]||(e[15]=f(" GitHub ",-1))]),e[17]||(e[17]=r("span",null,"·",-1)),a(L,{to:"/docs",class:"flex items-center gap-1.5 hover:text-default transition-colors"},{default:s(()=>[a(V,{name:"i-lucide-book-open",class:"size-4"}),e[16]||(e[16]=f(" API Docs ",-1))]),_:1})])])}}});export{ve as default};
1
+ import{_ as F}from"./CgoAUz76.js";import{_ as O}from"./B7yG1G_l.js";import{_ as T}from"./Br2K9yi_.js";import{aw as D,d as G,L as H,a as Y,u as K,b as J,C as q,c as I,i as r,k as t,f as m,g as s,j as a,m as f,K as Q,r as _,x as W,o as i,q as v,H as M,D as X,_ as Z,v as ee,I as N,h as te}from"./BPKwYP2Q.js";import{_ as ae}from"./DdbrJwT-.js";import{_ as se}from"./DgYM3eyi.js";import"./DRtTLQri.js";const oe=D("/logo-wide.svg"),ne={class:"min-h-screen flex flex-col items-center justify-center bg-elevated/50 gap-6 px-4"},le={key:1,class:"space-y-2 mb-4"},re={class:"mt-4 text-center"},ie={class:"flex items-center gap-4 text-sm text-muted"},de={href:"https://github.com/piwitests/platform",target:"_blank",rel:"noopener",class:"flex items-center gap-1.5 hover:text-default transition-colors"},ve=G({__name:"login",setup(ue){const{login:A}=H(),C=Y(),z=K(),y=J(),P=Q(),d=N({username:"",password:""}),w=_(!1),c=_(""),h=_(null),o=N({username:"",password:"",confirmPassword:"",name:""}),u=_(!1),p=_("");q(async()=>{if(P.public.demoMode){h.value=!1;return}try{const n=await $fetch("/api/auth/setup");h.value=n.needsSetup}catch{h.value=!1}});async function B(){if(!o.username||!o.password){p.value="Please choose a username and password";return}if(o.password!==o.confirmPassword){p.value="Passwords do not match";return}u.value=!0,p.value="";try{await $fetch("/api/auth/setup",{method:"POST",body:{username:o.username,password:o.password,name:o.name||void 0}}),await A(o.username,o.password),y.add({title:"Admin account created",description:"You're signed in.",color:"success"}),C.push("/")}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;p.value=e||"Failed to create the admin account",y.add({title:"Setup failed",description:p.value,color:"error"})}finally{u.value=!1}}const x=te(()=>P.public.demoMode?[]:P.public.oauthProviders||[]);q(()=>{const n=z.query.error;if(n){const e={"access-denied":"Access was denied","invalid-state":"Authentication failed (invalid state)","missing-code":"Authentication failed (missing code)","oauth-failed":"OAuth authentication failed","account-exists":"This email is already linked to a different sign-in method. Sign in with that method instead.","domain-not-allowed":"Your email domain is not allowed to sign in here.","org-not-allowed":"You are not a member of an allowed organization.","link-requires-login":"Please sign in before connecting a provider.","auth-disabled":"Authentication is not enabled","invalid-provider":"Invalid OAuth provider"};c.value=e[n]||"Authentication failed"}});async function E(){if(!d.username||!d.password){c.value="Please enter username and password";return}w.value=!0,c.value="";try{await A(d.username,d.password),y.add({title:"Login successful",color:"success"}),C.push("/")}catch(n){const e=n&&typeof n=="object"&&"data"in n?n.data?.message:void 0;c.value=e||"Invalid username or password",y.add({title:"Login failed",description:c.value,color:"error"})}finally{w.value=!1}}function S(n){window.location.href=`/api/auth/oauth/${n}/login`}return(n,e)=>{const R=F,U=O,$=T,g=X,b=ae,k=Z,V=ee,j=se,L=W;return i(),I("div",ne,[e[18]||(e[18]=r("img",{src:oe,alt:"Piwi Dashboard",class:"h-16 rounded-xl"},null,-1)),t(h)===null?(i(),m(U,{key:0,class:"w-full max-w-md"},{default:s(()=>[a(R,{text:"Loading…"})]),_:1})):t(h)?(i(),m(U,{key:1,class:"w-full max-w-md"},{header:s(()=>[...e[8]||(e[8]=[r("h1",{class:"text-xl font-semibold"},"Create the first admin account",-1),r("p",{class:"text-sm text-muted mt-1"}," Authentication is enabled and no accounts exist yet. Create the administrator account to sign in. ",-1)])]),default:s(()=>[t(p)?(i(),m($,{key:0,color:"error",title:t(p),variant:"subtle",class:"mb-4"},null,8,["title"])):v("",!0),r("form",{class:"space-y-4",onSubmit:M(B,["prevent"])},[a(b,{label:"Username",name:"username",required:""},{default:s(()=>[a(g,{modelValue:t(o).username,"onUpdate:modelValue":e[0]||(e[0]=l=>t(o).username=l),type:"text",placeholder:"Choose a username",autocomplete:"username",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Name",name:"name"},{default:s(()=>[a(g,{modelValue:t(o).name,"onUpdate:modelValue":e[1]||(e[1]=l=>t(o).name=l),type:"text",placeholder:"Administrator (optional)",autocomplete:"name",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Password",name:"password",required:""},{default:s(()=>[a(g,{modelValue:t(o).password,"onUpdate:modelValue":e[2]||(e[2]=l=>t(o).password=l),type:"password",placeholder:"Choose a password",autocomplete:"new-password",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Confirm password",name:"confirmPassword",required:""},{default:s(()=>[a(g,{modelValue:t(o).confirmPassword,"onUpdate:modelValue":e[3]||(e[3]=l=>t(o).confirmPassword=l),type:"password",placeholder:"Re-enter the password",autocomplete:"new-password",disabled:t(u),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(k,{type:"submit",block:"",loading:t(u),disabled:t(u)},{default:s(()=>[...e[9]||(e[9]=[f(" Create admin account ",-1)])]),_:1},8,["loading","disabled"])],32)]),_:1})):(i(),m(U,{key:2,class:"w-full max-w-md"},{header:s(()=>[...e[10]||(e[10]=[r("h1",{class:"text-xl font-semibold"},"Sign in to your account",-1)])]),default:s(()=>[t(c)?(i(),m($,{key:0,color:"error",title:t(c),variant:"subtle",class:"mb-4"},null,8,["title"])):v("",!0),t(x).length>0?(i(),I("div",le,[t(x).includes("google")?(i(),m(k,{key:0,block:"",color:"neutral",variant:"outline",onClick:e[4]||(e[4]=l=>S("google"))},{leading:s(()=>[a(V,{name:"i-lucide-chrome",class:"size-5"})]),default:s(()=>[e[11]||(e[11]=f(" Sign in with Google ",-1))]),_:1})):v("",!0),t(x).includes("github")?(i(),m(k,{key:1,block:"",color:"neutral",variant:"outline",onClick:e[5]||(e[5]=l=>S("github"))},{leading:s(()=>[a(V,{name:"i-lucide-github",class:"size-5"})]),default:s(()=>[e[12]||(e[12]=f(" Sign in with GitHub ",-1))]),_:1})):v("",!0),t(x).length>0?(i(),m(j,{key:2,label:"or continue with password",class:"my-4"})):v("",!0)])):v("",!0),r("form",{class:"space-y-4",onSubmit:M(E,["prevent"])},[a(b,{label:"Username",name:"username",required:""},{default:s(()=>[a(g,{modelValue:t(d).username,"onUpdate:modelValue":e[6]||(e[6]=l=>t(d).username=l),type:"text",placeholder:"Enter your username",autocomplete:"username",disabled:t(w),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(b,{label:"Password",name:"password",required:""},{default:s(()=>[a(g,{modelValue:t(d).password,"onUpdate:modelValue":e[7]||(e[7]=l=>t(d).password=l),type:"password",placeholder:"Enter your password",autocomplete:"current-password",disabled:t(w),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),a(k,{type:"submit",block:"",loading:t(w),disabled:t(w)},{default:s(()=>[...e[13]||(e[13]=[f(" Login ",-1)])]),_:1},8,["loading","disabled"])],32),r("div",re,[a(L,{to:"/forgot-password",class:"text-sm text-muted hover:text-default"},{default:s(()=>[...e[14]||(e[14]=[f(" Forgot password? ",-1)])]),_:1})])]),_:1})),r("div",ie,[r("a",de,[a(V,{name:"i-lucide-github",class:"size-4"}),e[15]||(e[15]=f(" GitHub ",-1))]),e[17]||(e[17]=r("span",null,"·",-1)),a(L,{to:"/docs",class:"flex items-center gap-1.5 hover:text-default transition-colors"},{default:s(()=>[a(V,{name:"i-lucide-book-open",class:"size-4"}),e[16]||(e[16]=f(" API Docs ",-1))]),_:1})])])}}});export{ve as default};