@intent-hq/web 2.317.0 → 2.317.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{D2MdcX20.js → -oBRwUwo.js} +1 -1
  3. package/web/app/immutable/chunks/{1MM4WffX.js → -pQB0SQC.js} +1 -1
  4. package/web/app/immutable/chunks/{cf1Brjzn.js → 0gFz0POF.js} +1 -1
  5. package/web/app/immutable/chunks/{gUC3lRBd.js → 1HLMWEVR.js} +3 -3
  6. package/web/app/immutable/chunks/{DljOzx1o.js → 2qAiupor.js} +1 -1
  7. package/web/app/immutable/chunks/{GOcCF0xv.js → 3ABUvTUz.js} +1 -1
  8. package/web/app/immutable/chunks/{C_xALoSF.js → 4UMD9xsX.js} +1 -1
  9. package/web/app/immutable/chunks/{Bys31tzi.js → 4gTuF-Ct.js} +1 -1
  10. package/web/app/immutable/chunks/{BlGpoHuO.js → 51i2b0Zy.js} +4 -4
  11. package/web/app/immutable/chunks/{avnay2CS.js → 5FkB6ttu.js} +1 -1
  12. package/web/app/immutable/chunks/{2sa8qIAB.js → 5s1JeAQX.js} +1 -1
  13. package/web/app/immutable/chunks/{WDQu-iPa.js → 70jzMwhc.js} +1 -1
  14. package/web/app/immutable/chunks/{DmgwTJaD.js → 7LP4OqPX.js} +1 -1
  15. package/web/app/immutable/chunks/AZ_GDgFb.js +1 -0
  16. package/web/app/immutable/chunks/{C2_aeUYM.js → B-7x7ULv.js} +1 -1
  17. package/web/app/immutable/chunks/{Ch6n50QZ.js → B-yP-PGc.js} +1 -1
  18. package/web/app/immutable/chunks/{BAcscHZ9.js → B0ViTaXX.js} +1 -1
  19. package/web/app/immutable/chunks/{CYX6S8VK.js → B19l4IVQ.js} +1 -1
  20. package/web/app/immutable/chunks/{DM0CXxx0.js → B1JwdW4Q.js} +1 -1
  21. package/web/app/immutable/chunks/{h1OZX-ME.js → B3DLTfYH.js} +1 -1
  22. package/web/app/immutable/chunks/{CFe8-T5F.js → B4pMa2Ff.js} +1 -1
  23. package/web/app/immutable/chunks/{CO_zjcSy.js → B5U_Qd5T.js} +1 -1
  24. package/web/app/immutable/chunks/{NSkm34Jv.js → B8MMU67d.js} +1 -1
  25. package/web/app/immutable/chunks/{B1NJ5pzL.js → B9pc_pKk.js} +3 -3
  26. package/web/app/immutable/chunks/{DgYP6-Ts.js → BDRH2dQc.js} +1 -1
  27. package/web/app/immutable/chunks/{DLnrKStT.js → BDe_nklR.js} +1 -1
  28. package/web/app/immutable/chunks/{C4Z1vjzd.js → BFCJosLD.js} +1 -1
  29. package/web/app/immutable/chunks/{BqkqHfzf.js → BH-KJlp3.js} +1 -1
  30. package/web/app/immutable/chunks/{BGl5gjhT.js → BJw5wnOV.js} +1 -1
  31. package/web/app/immutable/chunks/{DKZU30Gj.js → BKE1GgFG.js} +1 -1
  32. package/web/app/immutable/chunks/{WU5yHhJ9.js → BLbOCNKp.js} +1 -1
  33. package/web/app/immutable/chunks/{DMQUXENv.js → BPiLsEn1.js} +2 -2
  34. package/web/app/immutable/chunks/{DbZ_zQlq.js → BQ4SUKhz.js} +1 -1
  35. package/web/app/immutable/chunks/{CW0E9xqo.js → BQpiQojj.js} +1 -1
  36. package/web/app/immutable/chunks/{MTqrPgXh.js → BRpw_Wa2.js} +1 -1
  37. package/web/app/immutable/chunks/{COtDauzr.js → BSi1rsrO.js} +1 -1
  38. package/web/app/immutable/chunks/{yLCQj9vq.js → BTtki0b6.js} +1 -1
  39. package/web/app/immutable/chunks/{Cl0jxY31.js → BUjUgUAA.js} +1 -1
  40. package/web/app/immutable/chunks/{DroMvY3m.js → BUz6aP3C.js} +3 -3
  41. package/web/app/immutable/chunks/{CPv5PsAl.js → BWj5RUp1.js} +1 -1
  42. package/web/app/immutable/chunks/{DcDUL2lD.js → BXrsorfX.js} +1 -1
  43. package/web/app/immutable/chunks/{CmwCaFMB.js → BXyOJh3J.js} +2 -2
  44. package/web/app/immutable/chunks/{78ciQIXP.js → BZ0Iewxk.js} +1 -1
  45. package/web/app/immutable/chunks/{BNdZ_9uw.js → BZ3_6s6_.js} +1 -1
  46. package/web/app/immutable/chunks/{DEXbUvgl.js → BZypROSK.js} +1 -1
  47. package/web/app/immutable/chunks/{DcSgegeE.js → B_-M_Rk1.js} +4 -4
  48. package/web/app/immutable/chunks/{DmMf-gSU.js → BcHWqFY-.js} +1 -1
  49. package/web/app/immutable/chunks/Bd8Du0Fd.js +1 -0
  50. package/web/app/immutable/chunks/{DvnqGv6n.js → Be5Er9P3.js} +1 -1
  51. package/web/app/immutable/chunks/{H_E0v0IH.js → BeTxGqXI.js} +3 -3
  52. package/web/app/immutable/chunks/{D21siGJn.js → BefL-1js.js} +3 -3
  53. package/web/app/immutable/chunks/{Bv5S3aez.js → Beo1BUT8.js} +3 -3
  54. package/web/app/immutable/chunks/{XJFhLiIT.js → Bho7eqFf.js} +1 -1
  55. package/web/app/immutable/chunks/{CGvw_v2X.js → BmwCvXG3.js} +1 -1
  56. package/web/app/immutable/chunks/{CYZanEy-.js → BoC-gLSw.js} +1 -1
  57. package/web/app/immutable/chunks/{BTUdYLJq.js → BpkV1q6g.js} +1 -1
  58. package/web/app/immutable/chunks/BqI9uavK.js +2 -0
  59. package/web/app/immutable/chunks/{L-gnvTJU.js → Brobdake.js} +1 -1
  60. package/web/app/immutable/chunks/{Cz7C_97W.js → Bscf_BG7.js} +1 -1
  61. package/web/app/immutable/chunks/{D9I5kjGH.js → BtgBL_Zs.js} +1 -1
  62. package/web/app/immutable/chunks/{C4Go0ZUc.js → BuPHrdQM.js} +1 -1
  63. package/web/app/immutable/chunks/{Bo8ZBCqJ.js → BvdQxsGv.js} +1 -1
  64. package/web/app/immutable/chunks/{CbFHvbCz.js → Bya-ggU-.js} +1 -1
  65. package/web/app/immutable/chunks/{DdCI35A_.js → BypSPjBC.js} +26 -26
  66. package/web/app/immutable/chunks/{3FY3HcmJ.js → C-QwlfDr.js} +1 -1
  67. package/web/app/immutable/chunks/{D5EAAcY_.js → C-e-yd98.js} +1 -1
  68. package/web/app/immutable/chunks/{37Ot8ebN.js → C-eLL0ai.js} +1 -1
  69. package/web/app/immutable/chunks/{CW4Luigb.js → C-oQiQ3z.js} +4 -4
  70. package/web/app/immutable/chunks/{BYzPqnCf.js → C0dWqch7.js} +1 -1
  71. package/web/app/immutable/chunks/{C_dkWQA1.js → C1MXqCUp.js} +2 -2
  72. package/web/app/immutable/chunks/{e1GtcuZv.js → C1wi1pKa.js} +1 -1
  73. package/web/app/immutable/chunks/{C04pXnsd.js → C2gHzjc8.js} +1 -1
  74. package/web/app/immutable/chunks/{CMcSelvo.js → C3Sa4Adg.js} +1 -1
  75. package/web/app/immutable/chunks/{DCkl9dqS.js → C68vqe0o.js} +1 -1
  76. package/web/app/immutable/chunks/{DizHcyTH.js → C6o6HQ6t.js} +1 -1
  77. package/web/app/immutable/chunks/{B1L6cKI-.js → C7G5eU0Q.js} +1 -1
  78. package/web/app/immutable/chunks/{CBVy9_dl.js → C7vWSpiv.js} +1 -1
  79. package/web/app/immutable/chunks/{COZ2SNJx.js → C9abnHnH.js} +1 -1
  80. package/web/app/immutable/chunks/{Ja3gSQQ2.js → C9dseNmc.js} +1 -1
  81. package/web/app/immutable/chunks/C9sYEPAV.js +1 -0
  82. package/web/app/immutable/chunks/{DH5x-Yq6.js → CBMSMN2h.js} +1 -1
  83. package/web/app/immutable/chunks/{ssptyjur.js → CC1bGpw_.js} +1 -1
  84. package/web/app/immutable/chunks/{B47DviaX.js → CFgZJYqX.js} +1 -1
  85. package/web/app/immutable/chunks/{zUDGDDVj.js → CG4aq4mO.js} +1 -1
  86. package/web/app/immutable/chunks/CGE0UuGs.js +2 -0
  87. package/web/app/immutable/chunks/{CSakj4K5.js → CHKHRxNs.js} +1 -1
  88. package/web/app/immutable/chunks/{Bnw1c_hY.js → CJeg57-s.js} +1 -1
  89. package/web/app/immutable/chunks/{L_RZq0s4.js → CK4Yr90U.js} +1 -1
  90. package/web/app/immutable/chunks/{D_niS0o-.js → CNxs5gLd.js} +1 -1
  91. package/web/app/immutable/chunks/{BM3p7pnM.js → CRcCx-zt.js} +1 -1
  92. package/web/app/immutable/chunks/{Cekvr7WJ.js → CRs-kuPG.js} +1 -1
  93. package/web/app/immutable/chunks/{DTRBfwcm.js → CSxQeikv.js} +6 -6
  94. package/web/app/immutable/chunks/{D6ZAQOK2.js → CWbBNWZY.js} +1 -1
  95. package/web/app/immutable/chunks/{DP8Psy6A.js → CYGCz9Jd.js} +2 -2
  96. package/web/app/immutable/chunks/{Dh3jIeqa.js → CZdhGhqW.js} +1 -1
  97. package/web/app/immutable/chunks/{BH9Sx0uO.js → C_sy4_IS.js} +1 -1
  98. package/web/app/immutable/chunks/{CqveaVR5.js → CbwL0mcB.js} +1 -1
  99. package/web/app/immutable/chunks/{Dl2Egpks.js → CcKi_DP7.js} +1 -1
  100. package/web/app/immutable/chunks/{Cbrc9SCK.js → CdYIhP6H.js} +1 -1
  101. package/web/app/immutable/chunks/{BN2r45vo.js → CdwxdSGH.js} +1 -1
  102. package/web/app/immutable/chunks/{CnMPeQg8.js → CeqH6gGg.js} +1 -1
  103. package/web/app/immutable/chunks/{gFd3Neq8.js → Cg8ePZn3.js} +1 -1
  104. package/web/app/immutable/chunks/{sLJTRKQx.js → ChjNagFp.js} +1 -1
  105. package/web/app/immutable/chunks/{Cc639qSq.js → CiY5WTYK.js} +1 -1
  106. package/web/app/immutable/chunks/{UZKstsLl.js → CiohM4ZQ.js} +1 -1
  107. package/web/app/immutable/chunks/{C6eBXrOa.js → CisIj7pL.js} +1 -1
  108. package/web/app/immutable/chunks/{BZddI90c.js → CjMpc_Ln.js} +1 -1
  109. package/web/app/immutable/chunks/{BKF9zMkW.js → Cja4JOdS.js} +1 -1
  110. package/web/app/immutable/chunks/{CmBbNgSg.js → Cjl8Nti8.js} +1 -1
  111. package/web/app/immutable/chunks/{YaCrKYp7.js → CnURdtcx.js} +1 -1
  112. package/web/app/immutable/chunks/{DdGu-kox.js → CnqPz2zD.js} +1 -1
  113. package/web/app/immutable/chunks/{DOryYkjQ.js → CsZRWQFM.js} +1 -1
  114. package/web/app/immutable/chunks/{BH5bBEdq.js → CtUwk2M2.js} +1 -1
  115. package/web/app/immutable/chunks/{CxTpD-K5.js → Cwi8--0W.js} +1 -1
  116. package/web/app/immutable/chunks/CzXnFot6.js +1 -0
  117. package/web/app/immutable/chunks/{C_FwJcIF.js → D000Y3U2.js} +1 -1
  118. package/web/app/immutable/chunks/{PJ8z0v-B.js → D1WNxwkF.js} +1 -1
  119. package/web/app/immutable/chunks/D25d-Koj.js +1 -0
  120. package/web/app/immutable/chunks/{DIRuUXBx.js → D27--FO7.js} +1 -1
  121. package/web/app/immutable/chunks/{J6yrfnLz.js → D2CQaCZ1.js} +1 -1
  122. package/web/app/immutable/chunks/{D2MqWUlq.js → D2bBadyn.js} +1 -1
  123. package/web/app/immutable/chunks/{7srhf39r.js → D3Av1JMy.js} +3 -3
  124. package/web/app/immutable/chunks/{CBZcUhKz.js → D3Nrkkzz.js} +1 -1
  125. package/web/app/immutable/chunks/{CuUeXXzt.js → D4X9mCj-.js} +1 -1
  126. package/web/app/immutable/chunks/{DKwfCr3E.js → D4rfShJ_.js} +1 -1
  127. package/web/app/immutable/chunks/{DHAWV_GR.js → D5hnBZtr.js} +1 -1
  128. package/web/app/immutable/chunks/{BCzNrJEe.js → D6pC8C8o.js} +1 -1
  129. package/web/app/immutable/chunks/{BvB-t2O9.js → D7IWr17d.js} +1 -1
  130. package/web/app/immutable/chunks/{CERj1M8p.js → D8Imihe0.js} +1 -1
  131. package/web/app/immutable/chunks/{BccYWCmP.js → D9o0T9ir.js} +1 -1
  132. package/web/app/immutable/chunks/{W_RYksqv.js → DBaJKI7v.js} +1 -1
  133. package/web/app/immutable/chunks/{CfhDPr30.js → DBsrgEQY.js} +1 -1
  134. package/web/app/immutable/chunks/DC-9q6_j.js +4 -0
  135. package/web/app/immutable/chunks/{Ht2fgYKG.js → DDUX5dm3.js} +4 -4
  136. package/web/app/immutable/chunks/{CsbDr056.js → DFCtaoTZ.js} +2 -2
  137. package/web/app/immutable/chunks/{D-uj1csY.js → DHW0b2jP.js} +8 -8
  138. package/web/app/immutable/chunks/DJ6NhP2E.js +1 -0
  139. package/web/app/immutable/chunks/{DpuVuyCy.js → DKo_4wJv.js} +1 -1
  140. package/web/app/immutable/chunks/{D_-A7-a3.js → DKtu3kW5.js} +1 -1
  141. package/web/app/immutable/chunks/{BtWNHufE.js → DMQ6-OMm.js} +1 -1
  142. package/web/app/immutable/chunks/{DtiKniGk.js → DO9ueLS2.js} +1 -1
  143. package/web/app/immutable/chunks/{ODW3_QQQ.js → DOd57FMZ.js} +1 -1
  144. package/web/app/immutable/chunks/{BoF5X4p9.js → DQ2gC3bu.js} +1 -1
  145. package/web/app/immutable/chunks/{DPmIqgtZ.js → DUjKQudc.js} +3 -3
  146. package/web/app/immutable/chunks/{C5QU6wj-.js → DUxBQfgs.js} +1 -1
  147. package/web/app/immutable/chunks/{DXh7O-mG.js → DUyiOtrK.js} +1 -1
  148. package/web/app/immutable/chunks/{DpiTd0jU.js → DVfPvRIS.js} +1 -1
  149. package/web/app/immutable/chunks/{0T7sNxcZ.js → DX9fSZrc.js} +1 -1
  150. package/web/app/immutable/chunks/{DGZtqpTN.js → DYMvJtQy.js} +1 -1
  151. package/web/app/immutable/chunks/{Dv6NvIa-.js → DYZwkmyf.js} +1 -1
  152. package/web/app/immutable/chunks/{DKWOCcke.js → D_1oX83y.js} +2 -2
  153. package/web/app/immutable/chunks/{CJrxetkR.js → Dc-hoPaD.js} +1 -1
  154. package/web/app/immutable/chunks/{B9JhhaHF.js → Dc0z-1f1.js} +1 -1
  155. package/web/app/immutable/chunks/{Bco_b5Ku.js → Dd6RDWfk.js} +1 -1
  156. package/web/app/immutable/chunks/{DFuME8T0.js → DdOkmX2F.js} +1 -1
  157. package/web/app/immutable/chunks/{T3eo2phD.js → DdgOahmz.js} +1 -1
  158. package/web/app/immutable/chunks/{CgkAypA6.js → Df_KaPO2.js} +2 -2
  159. package/web/app/immutable/chunks/{Dn5ABN6W.js → DfcN0vl7.js} +1 -1
  160. package/web/app/immutable/chunks/{D4EWm27H.js → Dgw2Wjgi.js} +2 -2
  161. package/web/app/immutable/chunks/{DYuU0Arz.js → Dh8_IDIo.js} +1 -1
  162. package/web/app/immutable/chunks/{D-nAlgSv.js → DhRnAAAs.js} +1 -1
  163. package/web/app/immutable/chunks/{DBW7NNdL.js → DiOG4aSP.js} +1 -1
  164. package/web/app/immutable/chunks/{Cxf643iJ.js → DjKRH19J.js} +1 -1
  165. package/web/app/immutable/chunks/{BpeC_-MT.js → DjsRyxTd.js} +1 -1
  166. package/web/app/immutable/chunks/{DKQzovq-.js → DlL3hXg0.js} +2 -2
  167. package/web/app/immutable/chunks/{CzO9GGdp.js → DmU7vUKt.js} +2 -2
  168. package/web/app/immutable/chunks/{fiKabgyF.js → DppOK7dU.js} +1 -1
  169. package/web/app/immutable/chunks/{dyeihP5s.js → DpsivgKH.js} +1 -1
  170. package/web/app/immutable/chunks/{BM-JMWD0.js → DqsogpbZ.js} +1 -1
  171. package/web/app/immutable/chunks/{Dqjk8pvU.js → DrPG1fDs.js} +1 -1
  172. package/web/app/immutable/chunks/{BNLH5vU8.js → DsYVkI49.js} +1 -1
  173. package/web/app/immutable/chunks/{GcCPIK4y.js → DtMv5TQ8.js} +1 -1
  174. package/web/app/immutable/chunks/{CtnmDc5U.js → DugGE-AO.js} +1 -1
  175. package/web/app/immutable/chunks/{B7gGY21y.js → DvnkuohG.js} +1 -1
  176. package/web/app/immutable/chunks/{DeG2Ac-N.js → Dw27dq0-.js} +1 -1
  177. package/web/app/immutable/chunks/{pd-R-VJ_.js → DwBOVRcA.js} +1 -1
  178. package/web/app/immutable/chunks/{DpHVu4cd.js → DwZdimp9.js} +1 -1
  179. package/web/app/immutable/chunks/{DgikbYWH.js → DwqkyGAS.js} +1 -1
  180. package/web/app/immutable/chunks/{DD8iC1J4.js → FHutRMli.js} +1 -1
  181. package/web/app/immutable/chunks/{D2mMBmvL.js → FLKfalOo.js} +1 -1
  182. package/web/app/immutable/chunks/{Dho1VckI.js → FN5msAy_.js} +1 -1
  183. package/web/app/immutable/chunks/{CFY6lIZ1.js → GKBPqrFt.js} +1 -1
  184. package/web/app/immutable/chunks/{DvG_D_NN.js → HiFzG501.js} +1 -1
  185. package/web/app/immutable/chunks/{cDR744Wh.js → IxA57nJL.js} +1 -1
  186. package/web/app/immutable/chunks/{CJEarPic.js → JtPc08so.js} +1 -1
  187. package/web/app/immutable/chunks/{Cs4SXj6b.js → KTsXxUF5.js} +1 -1
  188. package/web/app/immutable/chunks/{T3vgYRzj.js → LPZkKDIt.js} +1 -1
  189. package/web/app/immutable/chunks/{Djcp6v1f.js → LbC7skPD.js} +1 -1
  190. package/web/app/immutable/chunks/{B-XDLOUH.js → MaU6O01C.js} +1 -1
  191. package/web/app/immutable/chunks/{KQXpZ8Ws.js → MzIeIzDc.js} +1 -1
  192. package/web/app/immutable/chunks/{CXMtFxok.js → NySn8Jgs.js} +1 -1
  193. package/web/app/immutable/chunks/{POMSQzHT.js → OXAE4Y56.js} +1 -1
  194. package/web/app/immutable/chunks/{YhsLhIAa.js → PnruPu-v.js} +1 -1
  195. package/web/app/immutable/chunks/{DOBsmdO0.js → S75JqWQs.js} +1 -1
  196. package/web/app/immutable/chunks/{ChfKK8O6.js → SN7QywhL.js} +1 -1
  197. package/web/app/immutable/chunks/{C3YdXEWZ.js → W27HQR6z.js} +1 -1
  198. package/web/app/immutable/chunks/{BcDs9dVa.js → Y2IQMTgy.js} +1 -1
  199. package/web/app/immutable/chunks/{DRji3Jgq.js → ZOX3f8YP.js} +1 -1
  200. package/web/app/immutable/chunks/{DxgBueKf.js → ZqQeKane.js} +1 -1
  201. package/web/app/immutable/chunks/{Bsy8wJg4.js → aNsVO8E4.js} +1 -1
  202. package/web/app/immutable/chunks/d1VpYuEe.js +4 -0
  203. package/web/app/immutable/chunks/{BXf-4olS.js → dkrfHkms.js} +1 -1
  204. package/web/app/immutable/chunks/{Cpq9N-cZ.js → gGle0ySs.js} +1 -1
  205. package/web/app/immutable/chunks/{aAnKrNHf.js → geGZi_w1.js} +1 -1
  206. package/web/app/immutable/chunks/{Chdzh45_.js → iWHbHYgP.js} +1 -1
  207. package/web/app/immutable/chunks/{POr_IUHX.js → ibhfo-VE.js} +1 -1
  208. package/web/app/immutable/chunks/{-Nlmdtho.js → jWThE6-J.js} +1 -1
  209. package/web/app/immutable/chunks/{DwuWRler.js → jiHQQ6wA.js} +1 -1
  210. package/web/app/immutable/chunks/{C1Dz1Ew8.js → jlIjptN1.js} +1 -1
  211. package/web/app/immutable/chunks/{BrQZ2Dsu.js → keABhBJs.js} +1 -1
  212. package/web/app/immutable/chunks/{cDMR84sh.js → ldht3A_H.js} +1 -1
  213. package/web/app/immutable/chunks/{7nZxhE5n.js → m5qFicCP.js} +1 -1
  214. package/web/app/immutable/chunks/{BgIOCdbx.js → n5756WrC.js} +1 -1
  215. package/web/app/immutable/chunks/{B9eFBnbu.js → nGdwLZhF.js} +1 -1
  216. package/web/app/immutable/chunks/{jjBmKMM6.js → nHpG5p0C.js} +1 -1
  217. package/web/app/immutable/chunks/{TfyyLY4T.js → o0LuLePs.js} +1 -1
  218. package/web/app/immutable/chunks/{DAW5vHcX.js → o17TbegD.js} +1 -1
  219. package/web/app/immutable/chunks/{BB-0D-f1.js → oxPAVHuu.js} +1 -1
  220. package/web/app/immutable/chunks/{CQbqgij-.js → pj4mR3lP.js} +1 -1
  221. package/web/app/immutable/chunks/{zXad5N8i.js → r-K_cVbp.js} +1 -1
  222. package/web/app/immutable/chunks/{2_ode0S7.js → rEk7AsyC.js} +1 -1
  223. package/web/app/immutable/chunks/{cmyT5Ste.js → rU5MX2nQ.js} +1 -1
  224. package/web/app/immutable/chunks/{DAMO7X4u.js → uYanh5GD.js} +1 -1
  225. package/web/app/immutable/chunks/{b6em44WJ.js → uxlSCqIr.js} +1 -1
  226. package/web/app/immutable/chunks/{CsfdLqAC.js → vsaQBZyB.js} +1 -1
  227. package/web/app/immutable/chunks/{K2dbGfSN.js → wprVZZpe.js} +1 -1
  228. package/web/app/immutable/chunks/{BEmgVD15.js → x2wsoUAP.js} +1 -1
  229. package/web/app/immutable/chunks/{AgeRGt9n.js → z4Ol2X5C.js} +1 -1
  230. package/web/app/immutable/entry/{app.IKpMMA4c.js → app.CjL_ESb3.js} +3 -3
  231. package/web/app/immutable/entry/start.DVcgL5VV.js +1 -0
  232. package/web/app/immutable/nodes/{0.pdrjpoDI.js → 0.u-mqmdJF.js} +1 -1
  233. package/web/app/immutable/nodes/{1.BA6cXWWv.js → 1.CWA4VVhg.js} +1 -1
  234. package/web/app/immutable/nodes/{10.1sUbjlmF.js → 10.COfYFCM4.js} +1 -1
  235. package/web/app/immutable/nodes/{11.CEkVMeXp.js → 11.CpSfU1GN.js} +1 -1
  236. package/web/app/immutable/nodes/{12.DeIYVacr.js → 12.RwHtMfg8.js} +1 -1
  237. package/web/app/immutable/nodes/{13.DVLyn8WD.js → 13.CGls5oXL.js} +3 -3
  238. package/web/app/immutable/nodes/{14.C_i1Czx9.js → 14.Dd42XRi5.js} +1 -1
  239. package/web/app/immutable/nodes/{15.7M_vr67p.js → 15.B6VjCrjj.js} +1 -1
  240. package/web/app/immutable/nodes/{16.3WccacnP.js → 16.CucYoMvi.js} +2 -2
  241. package/web/app/immutable/nodes/{2.Ddjtp5Dx.js → 2.Ccc1TwNU.js} +4 -4
  242. package/web/app/immutable/nodes/{3.CFJOautq.js → 3.Ce2k2EUY.js} +1 -1
  243. package/web/app/immutable/nodes/{4.D_TbMI2Z.js → 4.m_i1ZxYH.js} +1 -1
  244. package/web/app/immutable/nodes/{5.DjSN4aAb.js → 5.BzAilpoC.js} +2 -2
  245. package/web/app/immutable/nodes/{6.BHOPCP8I.js → 6.C9ZiA6w4.js} +1 -1
  246. package/web/app/immutable/nodes/{7.BxX4NXTv.js → 7.t5Jghx_n.js} +1 -1
  247. package/web/app/immutable/nodes/{8.gIY5eOtx.js → 8.aKcaX52l.js} +9 -9
  248. package/web/app/immutable/nodes/{9.DmagtOOH.js → 9.DeLiPEkd.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +45 -45
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/6zh_liBN.js +0 -1
  253. package/web/app/immutable/chunks/CZMDLdIA.js +0 -2
  254. package/web/app/immutable/chunks/C_NaHwAa.js +0 -4
  255. package/web/app/immutable/chunks/CruGdHPf.js +0 -4
  256. package/web/app/immutable/chunks/DcU8FJ67.js +0 -1
  257. package/web/app/immutable/chunks/Df8cCnvS.js +0 -1
  258. package/web/app/immutable/chunks/Dn5Nqyl8.js +0 -1
  259. package/web/app/immutable/chunks/Ds1KbjtE.js +0 -2
  260. package/web/app/immutable/chunks/JsVsuvN3.js +0 -1
  261. package/web/app/immutable/chunks/pqe4mxuk.js +0 -1
  262. package/web/app/immutable/entry/start.BVs3dcNA.js +0 -1
@@ -1,3 +1,3 @@
1
- import{l as c}from"./DroMvY3m.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./BUz6aP3C.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as M,bs as V}from"./DcU8FJ67.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as I,bS as Y,bf as P,bA as R,W as S,bn as D,c9 as B,aA as n,aB as E,ca as T,a7 as Z,ay as $}from"./DYhIMPy1.js";import{s as W}from"./W_RYksqv.js";import{c as L,f as k}from"./DwuWRler.js";import{b as U}from"./BaIAhI85.js";import{u as ee,c as G,s as te,b as re,a as ae}from"./DfxQWSVU.js";import{C as se}from"./CXMtFxok.js";import{HD as ne,rU as oe,bk as ie}from"./zUDGDDVj.js";import{a_ as de}from"./BlGpoHuO.js";import{m as ce}from"./7k5ozo9c.js";import{bI as le}from"./CruGdHPf.js";import{M as ue}from"./b6em44WJ.js";const fe=Symbol("card-group"),ve=()=>X(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=E('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=E("<div><!> <!></div>");function he(o,e){if(new.target)return q({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=O(e,me);const m=ve(),w=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=G(p(()=>v()??y+1));te(d);const C=G(d+1);var j={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>k("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(w)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?k("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=I(h);{var F=t=>{var _=be(),Q=I(_);W(Q,b),R(_),S(t,_)};H(K,t=>{b()&&t(F)})}var J=Y(K,2);return W(J,()=>r()??P),R(h),U(h,t=>i(t),()=>i()),S(o,h),D(j)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=E("<div><!></div>");function Se(o,e){if(new.target)return q({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=O(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>k("type-body min-w-0",a()?"p-0":k(se,"py-4 first:pt-4"),c())]);var b=I(l);return W(b,()=>u()??P),R(l),U(l,r=>i(r),()=>i()),S(o,l),D(f)}function Ee(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=B(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function ke(o,e){if(new.target)return q({component:ke,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=V();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var w=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};H(m,d=>{i()&&c()!==null&&d(w)})}S(o,g);var y=D(r);return u(),y}export{he as C,ke as W,Se as a,Ee as r};
1
+ import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as M,bs as V}from"./DJ6NhP2E.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as R,bS as Y,bf as P,bA as W,W as S,bn as D,c9 as B,aA as n,aB as E,ca as T,a7 as Z,ay as $}from"./DYhIMPy1.js";import{s as I}from"./DBaJKI7v.js";import{c as L,f as k}from"./jiHQQ6wA.js";import{b as Q}from"./BaIAhI85.js";import{u as ee,c as G,s as te,b as re,a as ae}from"./DfxQWSVU.js";import{C as se}from"./NySn8Jgs.js";import{HD as ne,rU as oe,bk as ie}from"./CG4aq4mO.js";import{a_ as de}from"./51i2b0Zy.js";import{m as ce}from"./7k5ozo9c.js";import{bQ as le}from"./DC-9q6_j.js";import{M as ue}from"./uxlSCqIr.js";const fe=Symbol("card-group"),ve=()=>X(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=E('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=E("<div><!> <!></div>");function he(o,e){if(new.target)return q({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=O(e,me);const m=ve(),w=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=G(p(()=>v()??y+1));te(d);const C=G(d+1);var U={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>k("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(w)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?k("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);I(J,b),W(_),S(t,_)};H(K,t=>{b()&&t(j)})}var F=Y(K,2);return I(F,()=>r()??P),W(h),Q(h,t=>i(t),()=>i()),S(o,h),D(U)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=E("<div><!></div>");function Se(o,e){if(new.target)return q({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=O(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>k("type-body min-w-0",a()?"p-0":k(se,"py-4 first:pt-4"),c())]);var b=R(l);return I(b,()=>u()??P),W(l),Q(l,r=>i(r),()=>i()),S(o,l),D(f)}function Ee(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=B(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function ke(o,e){if(new.target)return q({component:ke,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=V();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var w=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};H(m,d=>{i()&&c()!==null&&d(w)})}S(o,g);var y=D(r);return u(),y}export{he as C,ke as W,Se as a,Ee as r};
@@ -1 +1 @@
1
- var w=Object.defineProperty;var b=(o,s,a)=>s in o?w(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a;var g=(o,s,a)=>b(o,typeof s!="symbol"?s+"":s,a);import{b as I}from"./Bco_b5Ku.js";import{o as t,_ as c,n as f,s as e,c as r,b as p,r as i,a as n,u as y}from"./UyBYtOpv.js";import{a as E}from"./BJzHxIyr.js";const l=t({id:e(),name:e().optional(),title:e(),branch:e(),baseRef:e().optional(),baseCommitSha:e().optional(),initialPrompt:e().optional(),status:c(["active","archived","deleted","initializing"]),createdAt:e(),updatedAt:e(),lastActivity:e().optional(),tags:p(e()).optional(),path:e().optional(),repositoryPath:e().optional(),repositoryOwner:e().optional(),repositoryName:e().optional(),worktreePath:e().optional(),scope:e().optional(),isRemote:r().optional(),prUrl:e().optional(),prNumber:f().optional(),prStatus:c(["open","closed","merged","draft"]).optional(),checkoutMode:c(["cow","worktree","direct"]).optional(),defaultAgentPlacement:I.optional()}),v=t({id:e(),workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]),visibility:c(["private","workspace","public"]),author:e(),authorType:c(["user","agent","system"]),createdAt:e(),updatedAt:e(),tags:p(e()).optional(),metadata:i(e(),n()).optional(),parentId:e().optional(),threadId:e().optional()}),q=t({path:e(),name:e(),owner:e().optional(),githubUrl:e().optional(),addedAt:e(),lastUsedAt:e()});t({workspaceId:e(),workspacePath:e(),name:e(),agentId:e().optional(),model:e().optional(),provider:e().optional(),agentType:e().optional(),behaviorPrompt:e().optional(),specialistName:e().optional(),roleReminder:e().optional(),systemPrompt:e().optional(),rules:e().optional(),initialMessage:e().optional(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({agent:n(),sessionId:e()}),t({agentId:e(),content:e(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({messageId:e(),status:c(["sent","queued","failed"])}),t({title:e(),branch:e().optional(),baseRef:e().optional(),tags:p(e()).optional()}),t({workspace:l}),t({workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]).optional(),tags:p(e()).optional(),metadata:i(e(),n()).optional()}),t({note:v}),t({sessionId:e(),context:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({context:i(e(),n())}),t({sessionId:e()}),t({context:i(e(),n())}),t({}),t({success:r(),data:p(l).optional(),error:e().optional()}),y([e(),t({id:e()})]),t({success:r(),data:l.optional(),error:e().optional()}),t({workspaceId:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e(),title:e().optional(),baseCommitSha:e().optional(),worktreePath:e().optional(),gitInfo:t({branch:e().optional(),remote:e().optional()}).optional()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({id:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({workspaceId:e()}),e().nullable(),t({limit:f().optional()}),t({success:r(),data:p(q),error:e().optional()}),t({repository:e(),name:e().optional(),owner:e().optional(),githubUrl:e().optional()}),t({success:r()}),t({}),t({success:r()}),t({workspaceId:e(),gitInfo:t({branch:e().optional(),remote:e().optional(),status:e().optional()})}),t({success:r()}),t({workspaceId:e()}),t({settings:i(e(),n())}),t({workspaceId:e(),settings:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({rules:e()}),t({path:e(),encoding:e().optional()}),t({success:r(),data:e().optional(),error:e().optional()}),t({path:e(),content:e(),encoding:e().optional()}),t({success:r(),error:e().optional()}),t({path:e()}),t({success:r(),exists:r().optional(),error:e().optional()}),t({path:e(),recursive:r().optional()}),t({success:r(),files:p(e()).optional(),error:e().optional()}),t({}),t({platform:e(),version:e(),arch:e()}),t({}),t({version:e()}),t({}),t({onBattery:r()});new E("TypeValidation");const k=new Map,u=new Map,m=new Map([["workspace:get-root",void 0],["auggie:get-user-info",void 0],["config:get",null],["config:set",{success:!1,error:"Legacy config store is not bridged to the daemon (renderer persistence uses localStorage)"}],["git:get-auto-commit-status",void 0],["debug:trigger-backend-resume",{success:!1,error:"The backend-resume debug trigger is not bridged in this build"}],["system:write-clipboard",{success:!1,error:"Clipboard IPC is not available in this build"}],["patch:apply",{ok:!1,error:"Applying patches is not available in this build"}],["patch:revert",{ok:!1,error:"Reverting patches is not available in this build"}],["reference:resolve",{ok:!1,error:"Code-reference resolution is not bridged to the daemon"}],["remote-fs:exists",{success:!1,error:"Remote SSH file access is not available in this build"}],["workspace:get-info",void 0]]),T=new Set(["terminal:created","workspace:updated","task:ready-tasks-changed","window:fullscreen","power:battery-changed"]),S=["terminal:professional:exit:"],_=new Map([["note-suggestion","legacy agent note-suggestion flow not ported — no producer"]]);function N(o){return T.has(o)?!0:S.some(s=>o.startsWith(s))}const h=new Set;class L extends Error{constructor(a){super(`No mock IPC handler registered for channel '${a}'. This build routes legacy renderer→main IPC through the in-memory mock router; an unbridged channel used to resolve undefined and silently corrupt the caller. Bridge the channel to the daemon in a seeder under src/store/renderer/seeders/ (see agent-ipc-bridge-seeder.ts), or — only if every caller legitimately tolerates absence — add it to UNBRIDGED_INVOKE_ALLOWLIST in src/shared/ipc-mock-router.ts with a justification.`);g(this,"channel");this.name="UnbridgedMockIpcChannelError",this.channel=a}}function R(o,s){k.set(o,s)}async function C(o,...s){const a=k.get(o);if(a)return await a(...s);if(m.has(o))return m.get(o);throw new L(o)}function O(o,s){!N(o)&&!_.has(o)&&!h.has(o)&&(h.add(o),console.error(`[ipc-mock-router] Listener registered on event channel '${o}' that NO production emitter delivers — it will never fire (silent-gap class). Wire an emitter (a seeder under src/store/renderer/seeders/ or the daemon-events-bridge legacy relay) and declare it in EMITTED_MOCK_IPC_EVENT_CHANNELS, or — only if the listener legitimately stays silent in this build — justify an UNEMITTED_LISTENER_ALLOWLIST entry in src/shared/ipc-mock-router.ts.`));let a=u.get(o);return a||(a=new Set,u.set(o,a)),a.add(s),()=>{const d=u.get(o);d&&(d.delete(s),d.size===0&&u.delete(o))}}function U(o,s){const a=u.get(o);if(a)for(const d of[...a])d(s)}async function D(o,...s){return C(o,...s)}export{O as a,U as e,D as i,R as r};
1
+ var w=Object.defineProperty;var b=(o,s,a)=>s in o?w(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a;var g=(o,s,a)=>b(o,typeof s!="symbol"?s+"":s,a);import{b as I}from"./Dd6RDWfk.js";import{o as t,_ as c,n as f,s as e,c as r,b as p,r as i,a as n,u as y}from"./UyBYtOpv.js";import{a as E}from"./BJzHxIyr.js";const l=t({id:e(),name:e().optional(),title:e(),branch:e(),baseRef:e().optional(),baseCommitSha:e().optional(),initialPrompt:e().optional(),status:c(["active","archived","deleted","initializing"]),createdAt:e(),updatedAt:e(),lastActivity:e().optional(),tags:p(e()).optional(),path:e().optional(),repositoryPath:e().optional(),repositoryOwner:e().optional(),repositoryName:e().optional(),worktreePath:e().optional(),scope:e().optional(),isRemote:r().optional(),prUrl:e().optional(),prNumber:f().optional(),prStatus:c(["open","closed","merged","draft"]).optional(),checkoutMode:c(["cow","worktree","direct"]).optional(),defaultAgentPlacement:I.optional()}),v=t({id:e(),workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]),visibility:c(["private","workspace","public"]),author:e(),authorType:c(["user","agent","system"]),createdAt:e(),updatedAt:e(),tags:p(e()).optional(),metadata:i(e(),n()).optional(),parentId:e().optional(),threadId:e().optional()}),q=t({path:e(),name:e(),owner:e().optional(),githubUrl:e().optional(),addedAt:e(),lastUsedAt:e()});t({workspaceId:e(),workspacePath:e(),name:e(),agentId:e().optional(),model:e().optional(),provider:e().optional(),agentType:e().optional(),behaviorPrompt:e().optional(),specialistName:e().optional(),roleReminder:e().optional(),systemPrompt:e().optional(),rules:e().optional(),initialMessage:e().optional(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({agent:n(),sessionId:e()}),t({agentId:e(),content:e(),contextReferences:p(n()).optional(),metadata:i(e(),n()).optional()}),t({messageId:e(),status:c(["sent","queued","failed"])}),t({title:e(),branch:e().optional(),baseRef:e().optional(),tags:p(e()).optional()}),t({workspace:l}),t({workspaceId:e(),title:e(),content:e(),contentType:c(["markdown","plaintext","code"]).optional(),tags:p(e()).optional(),metadata:i(e(),n()).optional()}),t({note:v}),t({sessionId:e(),context:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({context:i(e(),n())}),t({sessionId:e()}),t({context:i(e(),n())}),t({}),t({success:r(),data:p(l).optional(),error:e().optional()}),y([e(),t({id:e()})]),t({success:r(),data:l.optional(),error:e().optional()}),t({workspaceId:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e(),title:e().optional(),baseCommitSha:e().optional(),worktreePath:e().optional(),gitInfo:t({branch:e().optional(),remote:e().optional()}).optional()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({id:e()}),t({success:r(),data:l.optional(),error:e().optional()}),t({id:e()}),t({success:r(),error:e().optional()}),t({workspaceId:e()}),e().nullable(),t({limit:f().optional()}),t({success:r(),data:p(q),error:e().optional()}),t({repository:e(),name:e().optional(),owner:e().optional(),githubUrl:e().optional()}),t({success:r()}),t({}),t({success:r()}),t({workspaceId:e(),gitInfo:t({branch:e().optional(),remote:e().optional(),status:e().optional()})}),t({success:r()}),t({workspaceId:e()}),t({settings:i(e(),n())}),t({workspaceId:e(),settings:i(e(),n())}),t({success:r()}),t({workspaceId:e()}),t({rules:e()}),t({path:e(),encoding:e().optional()}),t({success:r(),data:e().optional(),error:e().optional()}),t({path:e(),content:e(),encoding:e().optional()}),t({success:r(),error:e().optional()}),t({path:e()}),t({success:r(),exists:r().optional(),error:e().optional()}),t({path:e(),recursive:r().optional()}),t({success:r(),files:p(e()).optional(),error:e().optional()}),t({}),t({platform:e(),version:e(),arch:e()}),t({}),t({version:e()}),t({}),t({onBattery:r()});new E("TypeValidation");const k=new Map,u=new Map,m=new Map([["workspace:get-root",void 0],["auggie:get-user-info",void 0],["config:get",null],["config:set",{success:!1,error:"Legacy config store is not bridged to the daemon (renderer persistence uses localStorage)"}],["git:get-auto-commit-status",void 0],["debug:trigger-backend-resume",{success:!1,error:"The backend-resume debug trigger is not bridged in this build"}],["system:write-clipboard",{success:!1,error:"Clipboard IPC is not available in this build"}],["patch:apply",{ok:!1,error:"Applying patches is not available in this build"}],["patch:revert",{ok:!1,error:"Reverting patches is not available in this build"}],["reference:resolve",{ok:!1,error:"Code-reference resolution is not bridged to the daemon"}],["remote-fs:exists",{success:!1,error:"Remote SSH file access is not available in this build"}],["workspace:get-info",void 0]]),T=new Set(["terminal:created","workspace:updated","task:ready-tasks-changed","window:fullscreen","power:battery-changed"]),S=["terminal:professional:exit:"],_=new Map([["note-suggestion","legacy agent note-suggestion flow not ported — no producer"]]);function N(o){return T.has(o)?!0:S.some(s=>o.startsWith(s))}const h=new Set;class L extends Error{constructor(a){super(`No mock IPC handler registered for channel '${a}'. This build routes legacy renderer→main IPC through the in-memory mock router; an unbridged channel used to resolve undefined and silently corrupt the caller. Bridge the channel to the daemon in a seeder under src/store/renderer/seeders/ (see agent-ipc-bridge-seeder.ts), or — only if every caller legitimately tolerates absence — add it to UNBRIDGED_INVOKE_ALLOWLIST in src/shared/ipc-mock-router.ts with a justification.`);g(this,"channel");this.name="UnbridgedMockIpcChannelError",this.channel=a}}function R(o,s){k.set(o,s)}async function C(o,...s){const a=k.get(o);if(a)return await a(...s);if(m.has(o))return m.get(o);throw new L(o)}function O(o,s){!N(o)&&!_.has(o)&&!h.has(o)&&(h.add(o),console.error(`[ipc-mock-router] Listener registered on event channel '${o}' that NO production emitter delivers — it will never fire (silent-gap class). Wire an emitter (a seeder under src/store/renderer/seeders/ or the daemon-events-bridge legacy relay) and declare it in EMITTED_MOCK_IPC_EVENT_CHANNELS, or — only if the listener legitimately stays silent in this build — justify an UNEMITTED_LISTENER_ALLOWLIST entry in src/shared/ipc-mock-router.ts.`));let a=u.get(o);return a||(a=new Set,u.set(o,a)),a.add(s),()=>{const d=u.get(o);d&&(d.delete(s),d.size===0&&u.delete(o))}}function U(o,s){const a=u.get(o);if(a)for(const d of[...a])d(s)}async function D(o,...s){return C(o,...s)}export{O as a,U as e,D as i,R as r};
@@ -1 +1 @@
1
- import{bG as b,da as _,dg as P,bA as k,aQ as C}from"./zXad5N8i.js";import{c as v}from"./ChTqQfQN.js";import{bo as m}from"./DcU8FJ67.js";import{HD as y}from"./zUDGDDVj.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function F(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{F as applyContentPreset};
1
+ import{bG as b,da as _,dg as P,bA as k,aQ as C}from"./r-K_cVbp.js";import{c as v}from"./ChTqQfQN.js";import{bo as m}from"./DJ6NhP2E.js";import{HD as y}from"./CG4aq4mO.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function F(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{F as applyContentPreset};
@@ -1 +1 @@
1
- import{t as T,bq as r,a_ as W,by as $,bs as x,b as B,bu as C}from"./DcU8FJ67.js";import{bs as D,cd as H,ca as S,a7 as m,ay as f,W as b,bn as q,aA as o}from"./DYhIMPy1.js";import{E}from"./Bco_b5Ku.js";import{a as L}from"./DmMf-gSU.js";import{dm as R}from"./zXad5N8i.js";import{HD as j,gR as z}from"./zUDGDDVj.js";function F(i,a){if(new.target)return T({component:F,...i});D(a,!0);const d=()=>C(g,"$workspace$",k),[k,_]=x();let c=r(a,"tab",7),t=r(a,"workspaceId",7),n=r(a,"layoutId",7),p=r(a,"isActive",7);const u=H(t());S(()=>u.set(t()));const g=R(u);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return t()},set workspaceId(e){t(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:$,$on:(e,s)=>B(a,e,s)},l=m(),w=f(l);{var y=e=>{var s=m(),A=f(s);E(A,t,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>j.dispatch(z(n()??t(),c().id))})}),b(e,s)};W(w,e=>{p()&&d()&&e(y)})}b(i,l);var I=q(v);return _(),I}export{F as default};
1
+ import{t as T,bq as r,a_ as W,by as $,bs as x,b as B,bu as C}from"./DJ6NhP2E.js";import{bs as D,cd as H,ca as S,a7 as m,ay as f,W as b,bn as q,aA as o}from"./DYhIMPy1.js";import{E}from"./Dd6RDWfk.js";import{a as L}from"./BcHWqFY-.js";import{dm as R}from"./r-K_cVbp.js";import{HD as j,gR as z}from"./CG4aq4mO.js";function F(i,a){if(new.target)return T({component:F,...i});D(a,!0);const d=()=>C(g,"$workspace$",k),[k,_]=x();let c=r(a,"tab",7),t=r(a,"workspaceId",7),n=r(a,"layoutId",7),p=r(a,"isActive",7);const u=H(t());S(()=>u.set(t()));const g=R(u);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return t()},set workspaceId(e){t(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:$,$on:(e,s)=>B(a,e,s)},l=m(),w=f(l);{var y=e=>{var s=m(),A=f(s);E(A,t,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>j.dispatch(z(n()??t(),c().id))})}),b(e,s)};W(w,e=>{p()&&d()&&e(y)})}b(i,l);var I=q(v);return _(),I}export{F as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D4EWm27H.js","/app/immutable/chunks/DcU8FJ67.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/zUDGDDVj.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/W_RYksqv.js","/app/immutable/chunks/Bco_b5Ku.js","/app/immutable/chunks/BM-JMWD0.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/B1NJ5pzL.js","/app/immutable/chunks/DwuWRler.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/-Nlmdtho.js","/app/immutable/chunks/POMSQzHT.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DBW7NNdL.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Ch6n50QZ.js","/app/immutable/chunks/DMQUXENv.js","/app/immutable/chunks/b6em44WJ.js","/app/immutable/chunks/Cl0jxY31.js","/app/immutable/chunks/cmyT5Ste.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CMcSelvo.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/zXad5N8i.js","/app/immutable/chunks/DH5x-Yq6.js","/app/immutable/chunks/Dqjk8pvU.js","/app/immutable/chunks/CuUeXXzt.js","/app/immutable/chunks/Ja3gSQQ2.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BZddI90c.js","/app/immutable/chunks/DTRBfwcm.js"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"./DcU8FJ67.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./D4EWm27H.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./zUDGDDVj.js").then(s=>s.Hk);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./Ja3gSQQ2.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./DTRBfwcm.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./DTRBfwcm.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Dgw2Wjgi.js","/app/immutable/chunks/DJ6NhP2E.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CG4aq4mO.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DBaJKI7v.js","/app/immutable/chunks/Dd6RDWfk.js","/app/immutable/chunks/DqsogpbZ.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/B9pc_pKk.js","/app/immutable/chunks/jiHQQ6wA.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/jWThE6-J.js","/app/immutable/chunks/OXAE4Y56.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DiOG4aSP.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B-yP-PGc.js","/app/immutable/chunks/BPiLsEn1.js","/app/immutable/chunks/uxlSCqIr.js","/app/immutable/chunks/BUjUgUAA.js","/app/immutable/chunks/rU5MX2nQ.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/C3Sa4Adg.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/r-K_cVbp.js","/app/immutable/chunks/CBMSMN2h.js","/app/immutable/chunks/DrPG1fDs.js","/app/immutable/chunks/D4X9mCj-.js","/app/immutable/chunks/C9dseNmc.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CjMpc_Ln.js","/app/immutable/chunks/CSxQeikv.js"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"./DJ6NhP2E.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./Dgw2Wjgi.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./CG4aq4mO.js").then(s=>s.Hk);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./C9dseNmc.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./CSxQeikv.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CSxQeikv.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
@@ -1,2 +1,2 @@
1
- import{N as L,f as U,an as G,ak as j,av as Q,o as V,c as X}from"./zXad5N8i.js";import{HD as u,nf as M,HM as H,bj as T,a0 as $,n1 as _,qK as N,ne as W,r4 as z,k4 as Y,r2 as R,I3 as v,qs as J,fJ as q,qL as P,a2 as Z,bh as tt,g as et}from"./zUDGDDVj.js";import{v as K,aq as nt,s as st}from"./CruGdHPf.js";const ot=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function it(t){const e=t.metadata;if(e&&typeof e=="object"){if(e.type==="question_answers")return!1;if(!L(e))return!0}const n=U(t);return ot.some(s=>n.startsWith(s))}const rt=1440*60*1e3;function at(t){let e=null;for(const n of t){if(it({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(e===null||s>e)&&(e=s)}return e}const ct=50,lt=20;function E(t,e){return t===null||e!==null&&e>t?e:t}async function Mt(t,e){let n,s=null;for(let i=0;i<lt;i++){const o=await t({limit:ct,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=e?.newestId!=null?c.findIndex(a=>a.id===e.newestId):-1,r=at(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,e?.latest??null),newestId:s};if(r!==null)return{latest:E(r,e?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:e?.latest??null,newestId:s}}function ut(t,e){return t!=null&&t<=e&&t>e-rt}u.createSelector(t=>t.hud.active);u.createSelector(t=>t.hud.feed);u.createSelector(t=>t.hud.usage);u.createSelector(t=>t.hud.usageError);const _t=u.createSelector(t=>t.hud.rateHistory),Wt=u.createSelector(t=>M(t.workspace.workspaces)),Bt=u.createSelector(t=>{const e=t.hud.usage?.totals;return e?H(e):0}),Rt=u.createSelector(t=>t.hud.burnRatePerMin),Et=u.createSelector(t=>t.hud.burnTrend),Dt=u.createSelector(t=>{const{health:e,stats:n,lastUpdated:s,hostLocality:i}=t.daemonHealth,o=n?.hostname;return{online:e!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),Ct=u.createSelector(t=>t.hud.gridFilter);u.createSelector(t=>t.hud.attentionByWorkspaceId);const Ht=u.createSelector((t,e)=>{const n=t.hud?.questionsByAgentId?.[e];if(!n)return!1;const s=t.agentSessions?.byAgentId[e]?.metadata??{};return!K(s,n.messageId)}),Nt=u.createSelector(t=>t.hud.takeoverRequestWorkspaceId);function dt(t,e){return e[String(t.id)]??t.displayStatus}const S=u.createSelector(t=>{const e=t.hud.displayStatusByWorkspaceId;return M(t.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=dt(n,e);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function y(t){const e=t.agentSummary;return!e||!Array.isArray(e.agents)?[]:e.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!st(n.id))}const qt=u.createSelector(t=>{const e=Object.fromEntries($.map(n=>[n,0]));for(const n of S.select(t))for(const s of y(n))e[m(t,s).bucket]+=1;return e}),Pt=u.createSelector(t=>{const e={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(t))switch(e.total+=1,n.isUnread&&(e.unread+=1),n.isWaiting&&(e.waiting+=1),n.stateKey){case"wait":case"blocked":e.attention+=1;break;case"failed":e.failed+=1;break;case"in_progress":e.progress+=1;break;case"complete":e.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":e.prOpen+=1;break;case"pr_merged":e.prMerged+=1;break;default:e.idle+=1}return e}),gt=u.createSelector(t=>{const e={};for(const n of S.select(t))for(const s of y(n))typeof s.name=="string"&&s.name.length>0&&(e[s.id]=s.name);return e});function D(t){if(!t.sinceTs)return 0;const e=Date.parse(t.sinceTs);return Number.isFinite(e)?e:0}const Kt=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=t.hud.questionsByAgentId,s=[];for(const i of S.select(t)){const o=String(i.id);let c=!1;for(const r of b(i,t)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||A(t,r.id))continue;const k=g?n[r.id]:void 0,f=d?_(t.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=e[o];l&&N(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),x.has(I(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>D(o)-D(i))}),xt=u.createSelector(t=>{const e=gt.select(t);return t.hud.feed.map(n=>({...n,workspaceTitle:W(t.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?e[n.agentId]??null:null)}))}),ft={total:0,completed:0,inProgress:0};function I(t){const e=z(t.displayStatus)?t.displayStatus:"not_started";return Y(e)??"not_started"}const x=new Set(["wait","blocked","failed"]);function pt(t,e,n){if(e==="failed"){const i=n.find(c=>c.bucket==="failed"&&!A(t,c.id)),o=i?t.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(e!=="wait"&&e!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!A(t,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=t.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=t.agentSessions?.byAgentId[o.id],l=_(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const h=new Set(["running","needs-attention","failed"]);function C(t){const e=typeof t.lastActivity=="string"?Date.parse(t.lastActivity):NaN;return Number.isFinite(e)?e:-1/0}function kt(t){const e=n=>{const s=t.get(n.id)?.bucket;return s!==void 0&&h.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=e(n)-e(s);if(c!==0)return c;const l=C(n),r=C(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function St(t,e){const n=new Set(t.map(r=>r.id)),s=new Map,i=[];for(const r of t){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(e);for(const r of s.values())r.sort(e);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of t)l(r,0,null);return o}function m(t,e){const n=t.agentSessions?.byAgentId[e.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,o=n?G.select(t,e.id)||typeof n.status=="string"&&R(n.status):R(e.status),c=n?v(typeof n.status=="string"?n.status:e.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":j.select(t,e.id)?a="running":o?a="idle":a=v(typeof n.status=="string"?n.status:e.status):a=e.isResponding===!0||e.isStreaming===!0?"running":v(e.status);const d=t.hud.questionsByAgentId[e.id],g=a!=="failed"&&!!d&&!K(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function F(t,e){const n=i=>typeof i=="string"&&i!==t.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(t.parentAgentId)??n(e?.parentAgentId),isBackground:t.isBackground??e?.isBackground,metadata:s(e?.metadata),agentMetadata:s(e?.agentMetadata)}}function A(t,e){return t.agentSessions?.byAgentId[e]?.notificationsMuted===!0}function At(t){if(!t)return null;switch(t.kind){case"attention":return t.attention.reason??null;case"live-tool":case"last-tool":{const e=X(t.toolUse.name,t.toolUse.input||{});return e.hidden?null:[e.verb,e.subject,e.path].filter(Boolean).join(" ").trim()||null}default:{const e=t.text||"";return e?e.includes(`
2
- `)?V(e)||null:e:null}}}function b(t,e){const n=y(t),s=new Map(n.map(o=>[o.id,m(e,o)]));return St(n,kt(s)).map(({info:o,depth:c,parentAgentId:l})=>{const r=e.agentSessions?.byAgentId[o.id],a=F(o,r),{bucket:d,attentionKind:g,hasQuestion:k}=s.get(o.id)??m(e,o),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:o.id,name:o.name,bucket:d,lastActivityTs:o.lastActivity??null,line:At(Q.select(e,o.id)),parentAgentId:l,depth:c,treePrefix:"",topLevel:q(a)==="topLevel",isBackground:J(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function ht(t){const e=new Set;for(const i of t)for(const o of i.waitingForAgentIds)e.add(o);const n=i=>h.has(i.bucket)||i.isWaitingForAgents||e.has(i.id);return t.filter((i,o)=>{if(n(i))return!0;for(let c=o+1;c<t.length&&!(t[c].depth<=i.depth);c++)if(n(t[c]))return!0;return!1}).map((i,o,c)=>{if(i.depth===0)return{...i,treePrefix:""};let l=!0;for(let r=o+1;r<c.length&&!(c[r].depth<i.depth);r++)if(c[r].depth===i.depth){l=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(l?"└─":"├─")}})}const B=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=nt.select(t);return S.select(t).map(s=>{const i=String(s.id),o=n.indexOf(i),c=e[i]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),l=b(s,t),r=I(s),a=t.tokenUsage?.byWorkspaceId[i]?.totals,d=t.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:c,isUnread:c===Z,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:pt(t,r,l),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:o===-1?null:o,tasks:d?{total:d.total,completed:d.completed,inProgress:d.inProgress}:ft,tokens:a?H(a):0,agents:ht(l)}})}),O=4;function mt(t,e,n){const s=t.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==e||s.pendingDeleteAt||q(F(n,s))!=="topLevel"?!1:!A(t,n.id)}const yt=u.createSelector(t=>{const e={},n=t.hud.attentionByWorkspaceId;for(const s of S.select(t)){const i=String(s.id),o=new Map,c=(f,p)=>{const w=o.get(f)??[];w.includes(p)||w.push(p),o.set(f,w)},r=y(s).filter(f=>mt(t,i,f));for(const f of r){const p=m(t,f);p.bucket==="failed"?c("failed",f.name):p.hasQuestion?c("question",f.name):p.attentionKind==="blocker"?c("blocker",f.name):p.attentionKind==="discussion"&&c("discussion",f.name),p.isRunning&&c("running",f.name)}const a=I(s);a==="failed"&&!o.has("failed")&&o.set("failed",[]),a==="blocked"&&!o.has("blocker")&&o.set("blocker",[]),a==="wait"&&!o.has("question")&&!o.has("blocker")&&!o.has("discussion")&&o.set("needs_input",[]);const d=n[i]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);d==="review_required"&&o.set("review",[]),d==="unread"&&o.set("unread",[]),s.activity==="agent_running"&&!o.has("running")&&o.set("running",[]);const g=tt.flatMap(f=>{const p=o.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>O;e[i]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,O-1):g,hiddenCategoryCount:k?g.length-(O-1):0}}return e});u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(t)){let i=!1;for(const l of b(s,t))l.topLevel&&!l.isBackground&&!A(t,l.id)&&(l.bucket==="failed"||l.attentionKind!==null||l.hasQuestion)&&(n+=1,i=!0);const o=e[String(s.id)],c=o!==void 0&&N(o.attention);c&&(n+=1),x.has(I(s))&&!i&&!c&&(n+=1)}return n});function It(t,e,n,s){const i=s.slice().sort((r,a)=>a.createdAt-r.createdAt);for(const r of i){const d=t.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof d=="string"&&d.trim().length>0)return d}const o=t.workspaceNotes?.byWorkspaceId[e]?.notes,c=o?W(o,n):void 0,l=c?.content||c?.contentPreview;return typeof l=="string"&&l.trim().length>0?l:null}const Ft=u.createSelector((t,e)=>{const n=B.select(t).find(a=>a.workspaceId===e);if(!n)return null;const s=W(t.workspace.workspaces,e),i=s?b(s,t):[],o=new Map(i.map(a=>[a.id,a])),c=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{},l=t.workspaceTasks?.byWorkspaceId[e],r=l?M(l.tasks).filter(a=>a.status!=="cancelled").map(a=>{const d=Object.values(c[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:d.map(g=>o.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?It(t,e,a.id,d):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:e,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:i.filter(a=>h.has(a.bucket)),idleAgents:i.filter(a=>!h.has(a.bucket))}}),bt=new Set(["failed","blocker","question","discussion","needs_input","review"]);function wt(t){for(const e of t?.categories??[])switch(e.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Lt=u.createSelector(t=>{const e=B.select(t),n=yt.select(t),s=new Map(S.select(t).map(o=>[String(o.id),o])),i={action:[],unread:[],active:[]};for(const o of e){const c=s.get(o.workspaceId);if(!c||c.id===et||!ut(t.hud.dockConversationAtByWorkspaceId[o.workspaceId],t.hud.dockRecencyNow))continue;const l=n[o.workspaceId],r=l?.categories??[],a=r.some(f=>bt.has(f.category)),d=o.isUnread,g=r.some(f=>f.category==="running"),k=a?"action":d?"unread":"active";i[k].push({workspace:c,badgeKind:wt(l),priorityGroup:k,isUnread:d,isRunning:g,isWaiting:o.isWaiting})}return[...i.action,...i.unread,...i.active].sort((o,c)=>t.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]-t.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]||String(o.workspace.id).localeCompare(String(c.workspace.id)))}),Ut=u.createSelector(t=>t.hud.dockPlacement),Gt=u.createSelector(t=>t.hud.dockPlacementError),jt=u.createSelector(t=>t.hud.dockFocusRequest),Qt=u.createSelector(t=>t.hud.dockDragStartResult),Vt=u.createSelector(t=>t.hud.dockResizeStartResult),Xt=u.createSelector(t=>({pending:t.hud.dockMachineSwitching,error:t.hud.dockMachineSwitchError}));export{Qt as a,jt as b,Xt as c,Ut as d,Gt as e,Vt as f,Lt as g,Ht as h,it as i,qt as j,Kt as k,Rt as l,Et as m,xt as n,Ct as o,_t as p,Dt as q,Nt as r,Mt as s,Ft as t,Bt as u,B as v,Wt as w,Pt as x,yt as y};
1
+ import{N as L,f as U,an as G,ak as j,av as Q,o as V,c as X}from"./r-K_cVbp.js";import{HD as u,nf as M,HM as H,bj as T,a0 as $,n1 as _,qK as N,ne as W,r4 as z,k4 as Y,r2 as R,I3 as O,qs as J,fJ as q,qL as P,a2 as Z,bh as tt,g as et}from"./CG4aq4mO.js";import{x as K,ay as nt,u as st}from"./DC-9q6_j.js";const ot=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function it(t){const e=t.metadata;if(e&&typeof e=="object"){if(e.type==="question_answers")return!1;if(!L(e))return!0}const n=U(t);return ot.some(s=>n.startsWith(s))}const rt=1440*60*1e3;function at(t){let e=null;for(const n of t){if(it({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(e===null||s>e)&&(e=s)}return e}const ct=50,lt=20;function E(t,e){return t===null||e!==null&&e>t?e:t}async function Mt(t,e){let n,s=null;for(let i=0;i<lt;i++){const o=await t({limit:ct,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=e?.newestId!=null?c.findIndex(a=>a.id===e.newestId):-1,r=at(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,e?.latest??null),newestId:s};if(r!==null)return{latest:E(r,e?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:e?.latest??null,newestId:s}}function ut(t,e){return t!=null&&t<=e&&t>e-rt}u.createSelector(t=>t.hud.active);u.createSelector(t=>t.hud.feed);u.createSelector(t=>t.hud.usage);u.createSelector(t=>t.hud.usageError);const _t=u.createSelector(t=>t.hud.rateHistory),Wt=u.createSelector(t=>M(t.workspace.workspaces)),Bt=u.createSelector(t=>{const e=t.hud.usage?.totals;return e?H(e):0}),Rt=u.createSelector(t=>t.hud.burnRatePerMin),Et=u.createSelector(t=>t.hud.burnTrend),Dt=u.createSelector(t=>{const{health:e,stats:n,lastUpdated:s,hostLocality:i}=t.daemonHealth,o=n?.hostname;return{online:e!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),Ct=u.createSelector(t=>t.hud.gridFilter);u.createSelector(t=>t.hud.attentionByWorkspaceId);const Ht=u.createSelector((t,e)=>{const n=t.hud?.questionsByAgentId?.[e];if(!n)return!1;const s=t.agentSessions?.byAgentId[e]?.metadata??{};return!K(s,n.messageId)}),Nt=u.createSelector(t=>t.hud.takeoverRequestWorkspaceId);function dt(t,e){return e[String(t.id)]??t.displayStatus}const S=u.createSelector(t=>{const e=t.hud.displayStatusByWorkspaceId;return M(t.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=dt(n,e);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function y(t){const e=t.agentSummary;return!e||!Array.isArray(e.agents)?[]:e.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!st(n.id))}const qt=u.createSelector(t=>{const e=Object.fromEntries($.map(n=>[n,0]));for(const n of S.select(t))for(const s of y(n))e[m(t,s).bucket]+=1;return e}),Pt=u.createSelector(t=>{const e={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(t))switch(e.total+=1,n.isUnread&&(e.unread+=1),n.isWaiting&&(e.waiting+=1),n.stateKey){case"wait":case"blocked":e.attention+=1;break;case"failed":e.failed+=1;break;case"in_progress":e.progress+=1;break;case"complete":e.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":e.prOpen+=1;break;case"pr_merged":e.prMerged+=1;break;default:e.idle+=1}return e}),gt=u.createSelector(t=>{const e={};for(const n of S.select(t))for(const s of y(n))typeof s.name=="string"&&s.name.length>0&&(e[s.id]=s.name);return e});function D(t){if(!t.sinceTs)return 0;const e=Date.parse(t.sinceTs);return Number.isFinite(e)?e:0}const Kt=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=t.hud.questionsByAgentId,s=[];for(const i of S.select(t)){const o=String(i.id);let c=!1;for(const r of b(i,t)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||A(t,r.id))continue;const k=g?n[r.id]:void 0,f=d?_(t.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=e[o];l&&N(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),x.has(I(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>D(o)-D(i))}),xt=u.createSelector(t=>{const e=gt.select(t);return t.hud.feed.map(n=>({...n,workspaceTitle:W(t.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?e[n.agentId]??null:null)}))}),ft={total:0,completed:0,inProgress:0};function I(t){const e=z(t.displayStatus)?t.displayStatus:"not_started";return Y(e)??"not_started"}const x=new Set(["wait","blocked","failed"]);function pt(t,e,n){if(e==="failed"){const i=n.find(c=>c.bucket==="failed"&&!A(t,c.id)),o=i?t.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(e!=="wait"&&e!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!A(t,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=t.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=t.agentSessions?.byAgentId[o.id],l=_(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const h=new Set(["running","needs-attention","failed"]);function C(t){const e=typeof t.lastActivity=="string"?Date.parse(t.lastActivity):NaN;return Number.isFinite(e)?e:-1/0}function kt(t){const e=n=>{const s=t.get(n.id)?.bucket;return s!==void 0&&h.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=e(n)-e(s);if(c!==0)return c;const l=C(n),r=C(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function St(t,e){const n=new Set(t.map(r=>r.id)),s=new Map,i=[];for(const r of t){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(e);for(const r of s.values())r.sort(e);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of t)l(r,0,null);return o}function m(t,e){const n=t.agentSessions?.byAgentId[e.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,o=n?G.select(t,e.id)||typeof n.status=="string"&&R(n.status):R(e.status),c=n?O(typeof n.status=="string"?n.status:e.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":j.select(t,e.id)?a="running":o?a="idle":a=O(typeof n.status=="string"?n.status:e.status):a=e.isResponding===!0||e.isStreaming===!0?"running":O(e.status);const d=t.hud.questionsByAgentId[e.id],g=a!=="failed"&&!!d&&!K(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function F(t,e){const n=i=>typeof i=="string"&&i!==t.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(t.parentAgentId)??n(e?.parentAgentId),isBackground:t.isBackground??e?.isBackground,metadata:s(e?.metadata),agentMetadata:s(e?.agentMetadata)}}function A(t,e){return t.agentSessions?.byAgentId[e]?.notificationsMuted===!0}function At(t){if(!t)return null;switch(t.kind){case"attention":return t.attention.reason??null;case"live-tool":case"last-tool":{const e=X(t.toolUse.name,t.toolUse.input||{});return e.hidden?null:[e.verb,e.subject,e.path].filter(Boolean).join(" ").trim()||null}default:{const e=t.text||"";return e?e.includes(`
2
+ `)?V(e)||null:e:null}}}function b(t,e){const n=y(t),s=new Map(n.map(o=>[o.id,m(e,o)]));return St(n,kt(s)).map(({info:o,depth:c,parentAgentId:l})=>{const r=e.agentSessions?.byAgentId[o.id],a=F(o,r),{bucket:d,attentionKind:g,hasQuestion:k}=s.get(o.id)??m(e,o),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:o.id,name:o.name,bucket:d,lastActivityTs:o.lastActivity??null,line:At(Q.select(e,o.id)),parentAgentId:l,depth:c,treePrefix:"",topLevel:q(a)==="topLevel",isBackground:J(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function ht(t){const e=new Set;for(const i of t)for(const o of i.waitingForAgentIds)e.add(o);const n=i=>h.has(i.bucket)||i.isWaitingForAgents||e.has(i.id);return t.filter((i,o)=>{if(n(i))return!0;for(let c=o+1;c<t.length&&!(t[c].depth<=i.depth);c++)if(n(t[c]))return!0;return!1}).map((i,o,c)=>{if(i.depth===0)return{...i,treePrefix:""};let l=!0;for(let r=o+1;r<c.length&&!(c[r].depth<i.depth);r++)if(c[r].depth===i.depth){l=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(l?"└─":"├─")}})}const B=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=nt.select(t);return S.select(t).map(s=>{const i=String(s.id),o=n.indexOf(i),c=e[i]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),l=b(s,t),r=I(s),a=t.tokenUsage?.byWorkspaceId[i]?.totals,d=t.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:c,isUnread:c===Z,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:pt(t,r,l),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:o===-1?null:o,tasks:d?{total:d.total,completed:d.completed,inProgress:d.inProgress}:ft,tokens:a?H(a):0,agents:ht(l)}})}),v=4;function mt(t,e,n){const s=t.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==e||s.pendingDeleteAt||q(F(n,s))!=="topLevel"?!1:!A(t,n.id)}const yt=u.createSelector(t=>{const e={},n=t.hud.attentionByWorkspaceId;for(const s of S.select(t)){const i=String(s.id),o=new Map,c=(f,p)=>{const w=o.get(f)??[];w.includes(p)||w.push(p),o.set(f,w)},r=y(s).filter(f=>mt(t,i,f));for(const f of r){const p=m(t,f);p.bucket==="failed"?c("failed",f.name):p.hasQuestion?c("question",f.name):p.attentionKind==="blocker"?c("blocker",f.name):p.attentionKind==="discussion"&&c("discussion",f.name),p.isRunning&&c("running",f.name)}const a=I(s);a==="failed"&&!o.has("failed")&&o.set("failed",[]),a==="blocked"&&!o.has("blocker")&&o.set("blocker",[]),a==="wait"&&!o.has("question")&&!o.has("blocker")&&!o.has("discussion")&&o.set("needs_input",[]);const d=n[i]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);d==="review_required"&&o.set("review",[]),d==="unread"&&o.set("unread",[]),s.activity==="agent_running"&&!o.has("running")&&o.set("running",[]);const g=tt.flatMap(f=>{const p=o.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>v;e[i]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,v-1):g,hiddenCategoryCount:k?g.length-(v-1):0}}return e});u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(t)){let i=!1;for(const l of b(s,t))l.topLevel&&!l.isBackground&&!A(t,l.id)&&(l.bucket==="failed"||l.attentionKind!==null||l.hasQuestion)&&(n+=1,i=!0);const o=e[String(s.id)],c=o!==void 0&&N(o.attention);c&&(n+=1),x.has(I(s))&&!i&&!c&&(n+=1)}return n});function It(t,e,n,s){const i=s.slice().sort((r,a)=>a.createdAt-r.createdAt);for(const r of i){const d=t.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof d=="string"&&d.trim().length>0)return d}const o=t.workspaceNotes?.byWorkspaceId[e]?.notes,c=o?W(o,n):void 0,l=c?.content||c?.contentPreview;return typeof l=="string"&&l.trim().length>0?l:null}const Ft=u.createSelector((t,e)=>{const n=B.select(t).find(a=>a.workspaceId===e);if(!n)return null;const s=W(t.workspace.workspaces,e),i=s?b(s,t):[],o=new Map(i.map(a=>[a.id,a])),c=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{},l=t.workspaceTasks?.byWorkspaceId[e],r=l?M(l.tasks).filter(a=>a.status!=="cancelled").map(a=>{const d=Object.values(c[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:d.map(g=>o.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?It(t,e,a.id,d):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:e,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:i.filter(a=>h.has(a.bucket)),idleAgents:i.filter(a=>!h.has(a.bucket))}}),bt=new Set(["failed","blocker","question","discussion","needs_input","review"]);function wt(t){for(const e of t?.categories??[])switch(e.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Lt=u.createSelector(t=>{const e=B.select(t),n=yt.select(t),s=new Map(S.select(t).map(o=>[String(o.id),o])),i={action:[],unread:[],active:[]};for(const o of e){const c=s.get(o.workspaceId);if(!c||c.id===et||!ut(t.hud.dockConversationAtByWorkspaceId[o.workspaceId],t.hud.dockRecencyNow))continue;const l=n[o.workspaceId],r=l?.categories??[],a=r.some(f=>bt.has(f.category)),d=o.isUnread,g=r.some(f=>f.category==="running"),k=a?"action":d?"unread":"active";i[k].push({workspace:c,badgeKind:wt(l),priorityGroup:k,isUnread:d,isRunning:g,isWaiting:o.isWaiting})}return[...i.action,...i.unread,...i.active].sort((o,c)=>t.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]-t.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]||String(o.workspace.id).localeCompare(String(c.workspace.id)))}),Ut=u.createSelector(t=>t.hud.dockPlacement),Gt=u.createSelector(t=>t.hud.dockPlacementError),jt=u.createSelector(t=>t.hud.dockFocusRequest),Qt=u.createSelector(t=>t.hud.dockDragStartResult),Vt=u.createSelector(t=>t.hud.dockResizeStartResult),Xt=u.createSelector(t=>({pending:t.hud.dockMachineSwitching,error:t.hud.dockMachineSwitchError}));export{Qt as a,jt as b,Xt as c,Ut as d,Gt as e,Vt as f,Lt as g,Ht as h,it as i,qt as j,Kt as k,Rt as l,Et as m,xt as n,Ct as o,_t as p,Dt as q,Nt as r,Mt as s,Ft as t,Bt as u,B as v,Wt as w,Pt as x,yt as y};
@@ -1 +1 @@
1
- var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./DcU8FJ67.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./W_RYksqv.js";import{c as ve}from"./-Nlmdtho.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./POr_IUHX.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./DwuWRler.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./B1NJ5pzL.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./CMcSelvo.js";import{b as io}from"./BaIAhI85.js";import{E as ao}from"./Bco_b5Ku.js";import{H as rr,g as nr,S as ft}from"./Cl0jxY31.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./L_RZq0s4.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Te,Ae=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};
1
+ var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./DJ6NhP2E.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./DBaJKI7v.js";import{c as ve}from"./jWThE6-J.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./ibhfo-VE.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./jiHQQ6wA.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./B9pc_pKk.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./C3Sa4Adg.js";import{b as io}from"./BaIAhI85.js";import{E as ao}from"./Dd6RDWfk.js";import{H as rr,g as nr,S as ft}from"./BUjUgUAA.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./CK4Yr90U.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Te,Ae=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};