@intent-hq/web 2.356.0 → 2.357.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{m_1L8YDL.js → 66_rhosy.js} +1 -1
- package/web/app/immutable/chunks/{C56UGZxo.js → 7y7832WT.js} +1 -1
- package/web/app/immutable/chunks/{XUqsR2dM.js → 8KpVpm2n.js} +1 -1
- package/web/app/immutable/chunks/{3hJVvZIb.js → 9P6ZvzvD.js} +1 -1
- package/web/app/immutable/chunks/{Cmr6SkXW.js → AQD9ZwKP.js} +1 -1
- package/web/app/immutable/chunks/{BSJoOz7i.js → AwwbaDrI.js} +1 -1
- package/web/app/immutable/chunks/{DnSWXxzV.js → B2LPQxIt.js} +1 -1
- package/web/app/immutable/chunks/{CT8xBi4e.js → B3SPWmt-.js} +1 -1
- package/web/app/immutable/chunks/{Q1qyd41K.js → B491IXH3.js} +1 -1
- package/web/app/immutable/chunks/{C10SV0QK.js → B8bo_smg.js} +1 -1
- package/web/app/immutable/chunks/{C52rlzwT.js → BCoXAz1U.js} +2 -2
- package/web/app/immutable/chunks/{C5B6Eobm.js → BDjg6KKO.js} +1 -1
- package/web/app/immutable/chunks/{DZ1oVAq0.js → BG6kMtPP.js} +1 -1
- package/web/app/immutable/chunks/{DPJ00XW2.js → BGJfXAWv.js} +1 -1
- package/web/app/immutable/chunks/BGikh8Vc.js +1 -0
- package/web/app/immutable/chunks/{D0jwbP6x.js → BI5DCVGt.js} +1 -1
- package/web/app/immutable/chunks/{DGYdo9TT.js → BJOQRnVI.js} +1 -1
- package/web/app/immutable/chunks/{B7VQyK0_.js → BLkmPr-r.js} +1 -1
- package/web/app/immutable/chunks/{BqLgeqSo.js → BLxae2bF.js} +1 -1
- package/web/app/immutable/chunks/{DOTf0P-t.js → BMvS7SgR.js} +3 -3
- package/web/app/immutable/chunks/{BkEvjKkT.js → BMyQIDAo.js} +4 -4
- package/web/app/immutable/chunks/{CwtolQzT.js → BN5JMxvy.js} +1 -1
- package/web/app/immutable/chunks/{Brz9e2gG.js → BQ23qfTF.js} +1 -1
- package/web/app/immutable/chunks/BRRNup5V.js +1 -0
- package/web/app/immutable/chunks/{C2TcCxZo.js → BTGEGvnD.js} +1 -1
- package/web/app/immutable/chunks/{jp-EFp_H.js → BU-n7XP4.js} +1 -1
- package/web/app/immutable/chunks/{BofS1KwS.js → BVeQxmcO.js} +1 -1
- package/web/app/immutable/chunks/{CxQR79x9.js → BVoA79wA.js} +1 -1
- package/web/app/immutable/chunks/{BswY3W_t.js → BYHbCXEy.js} +1 -1
- package/web/app/immutable/chunks/{CeS2O8qY.js → BZCD0L1_.js} +1 -1
- package/web/app/immutable/chunks/{BFIn88wz.js → BZQo8LNo.js} +1 -1
- package/web/app/immutable/chunks/{Dlkij1ok.js → BZu-azEo.js} +1 -1
- package/web/app/immutable/chunks/{C8TzkSu-.js → B_3_o4NM.js} +1 -1
- package/web/app/immutable/chunks/{D2tdUHFS.js → Ba0vVpgz.js} +1 -1
- package/web/app/immutable/chunks/{BU4RL-at.js → Bd1ZbfsE.js} +1 -1
- package/web/app/immutable/chunks/{CWIXbeaV.js → Bd3Jv-O1.js} +1 -1
- package/web/app/immutable/chunks/{CElFUKQZ.js → Bjw3ENRr.js} +1 -1
- package/web/app/immutable/chunks/{CVypT9dw.js → BmkId4Xs.js} +1 -1
- package/web/app/immutable/chunks/{I2AaGnPI.js → BnnkDYnu.js} +2 -2
- package/web/app/immutable/chunks/{CdRWTOJH.js → BpTd99tA.js} +1 -1
- package/web/app/immutable/chunks/{C_hA12mf.js → BqrO7ljl.js} +1 -1
- package/web/app/immutable/chunks/{DP0umned.js → Bqt9Orfw.js} +1 -1
- package/web/app/immutable/chunks/{NjZhj8Zd.js → Bsx9tus4.js} +1 -1
- package/web/app/immutable/chunks/{BrbLpvxz.js → BwEOa7Qj.js} +1 -1
- package/web/app/immutable/chunks/{C-e66aNX.js → BxRqO5xf.js} +1 -1
- package/web/app/immutable/chunks/{Xi1bXfW6.js → ByONXdFP.js} +1 -1
- package/web/app/immutable/chunks/{Dh5a6NBk.js → C-ExwGaf.js} +1 -1
- package/web/app/immutable/chunks/{ubZJ3aRY.js → C1qy2l1c.js} +1 -1
- package/web/app/immutable/chunks/{BKyX37Hv.js → C3G5lO0X.js} +1 -1
- package/web/app/immutable/chunks/{DJHp-usZ.js → C5zadSpA.js} +3 -3
- package/web/app/immutable/chunks/{BU0kh-Sb.js → C7uHO1gL.js} +1 -1
- package/web/app/immutable/chunks/{DtEYYerm.js → C8sYbS_R.js} +1 -1
- package/web/app/immutable/chunks/{GO99VSya.js → C9gg-9EN.js} +1 -1
- package/web/app/immutable/chunks/{DGHkxVpF.js → CBPCiMxB.js} +1 -1
- package/web/app/immutable/chunks/{bken9hjc.js → CCdcqA0c.js} +1 -1
- package/web/app/immutable/chunks/{qSv7uH7j.js → CE29X2Rd.js} +1 -1
- package/web/app/immutable/chunks/{VaRQBuSJ.js → CFf_TK-h.js} +1 -1
- package/web/app/immutable/chunks/{GaJYxdeE.js → CG40U4Lm.js} +1 -1
- package/web/app/immutable/chunks/{ZcV6KgHx.js → CGWIKCoJ.js} +1 -1
- package/web/app/immutable/chunks/{DigK0ACF.js → CHK4FXDC.js} +1 -1
- package/web/app/immutable/chunks/{Cek3tbpZ.js → CI-PxDr-.js} +1 -1
- package/web/app/immutable/chunks/{BP5RsOrf.js → CJ5wd9GV.js} +1 -1
- package/web/app/immutable/chunks/{DHLNrcYf.js → CKmIcPAK.js} +1 -1
- package/web/app/immutable/chunks/{kUDleR2i.js → CKpm8C6c.js} +1 -1
- package/web/app/immutable/chunks/{Cj66dtJJ.js → CLmt7ktX.js} +4 -4
- package/web/app/immutable/chunks/{B41JGMlT.js → CRRsvObQ.js} +1 -1
- package/web/app/immutable/chunks/{V4Xr99K1.js → CS9ie09_.js} +1 -1
- package/web/app/immutable/chunks/{BJjXtbtI.js → CSE73PBJ.js} +1 -1
- package/web/app/immutable/chunks/{l0m2gluQ.js → CTGUTBCN.js} +1 -1
- package/web/app/immutable/chunks/{Dqjuna1P.js → CV16Bucz.js} +4 -4
- package/web/app/immutable/chunks/{CLQNQZss.js → CYAcOUio.js} +1 -1
- package/web/app/immutable/chunks/{BJzBOTU3.js → CZbZOYrK.js} +1 -1
- package/web/app/immutable/chunks/{BUUFSDWf.js → C_wivZis.js} +1 -1
- package/web/app/immutable/chunks/{-ELtBkMt.js → Cb2A7MN0.js} +1 -1
- package/web/app/immutable/chunks/{C-8AsR-w.js → Cb3IR_gP.js} +2 -2
- package/web/app/immutable/chunks/{UT4ACEA_.js → CdvOr8yA.js} +1 -1
- package/web/app/immutable/chunks/{C3s85abh.js → CdzMMF6r.js} +1 -1
- package/web/app/immutable/chunks/{JaP81t8n.js → Cha39o9r.js} +1 -1
- package/web/app/immutable/chunks/{B3VdVRJC.js → ChoJBBfE.js} +1 -1
- package/web/app/immutable/chunks/{pM0QEIY2.js → Ci9WXQ89.js} +1 -1
- package/web/app/immutable/chunks/{pPdnPxpA.js → CjRRnXFa.js} +2 -2
- package/web/app/immutable/chunks/{li0r8AjY.js → CjYdM0YD.js} +1 -1
- package/web/app/immutable/chunks/{C2llNKRj.js → ClwnVDeP.js} +1 -1
- package/web/app/immutable/chunks/CqWV3FjA.js +1 -0
- package/web/app/immutable/chunks/{BbSZGErw.js → CrI50RYR.js} +1 -1
- package/web/app/immutable/chunks/{oLvQ4agf.js → CrxXInxf.js} +1 -1
- package/web/app/immutable/chunks/{D9q1f83e.js → Cs6WGZex.js} +1 -1
- package/web/app/immutable/chunks/{DXGCRc-v.js → Ct7QNzzh.js} +45 -45
- package/web/app/immutable/chunks/{DO2tY8Na.js → CwJEu8cK.js} +1 -1
- package/web/app/immutable/chunks/{DH05fLz_.js → Cx0yZw2_.js} +1 -1
- package/web/app/immutable/chunks/{BDtvbR9g.js → Cx9nP__t.js} +1 -1
- package/web/app/immutable/chunks/{BdSqWC9g.js → Cy-rVXS3.js} +1 -1
- package/web/app/immutable/chunks/{VOp5RR5N.js → Cy8j-NHc.js} +1 -1
- package/web/app/immutable/chunks/{DGk6BJW_.js → CyBdhy5_.js} +1 -1
- package/web/app/immutable/chunks/{DEpz31rZ.js → CzeIL_6z.js} +1 -1
- package/web/app/immutable/chunks/{Cy9PgwBN.js → D-EgBFka.js} +1 -1
- package/web/app/immutable/chunks/{CsRxS36e.js → D024cEiO.js} +2 -2
- package/web/app/immutable/chunks/{BBG1iJOq.js → D0VJwOmw.js} +1 -1
- package/web/app/immutable/chunks/{Cl6XIxS3.js → D0orvEYB.js} +1 -1
- package/web/app/immutable/chunks/{BHsKKPAt.js → D2P0fD42.js} +4 -4
- package/web/app/immutable/chunks/{DrmQ2bDO.js → D4U_w4GT.js} +1 -1
- package/web/app/immutable/chunks/{D0rQ0b82.js → D4lmJxBR.js} +1 -1
- package/web/app/immutable/chunks/{CR_Hv869.js → D5P99waS.js} +1 -1
- package/web/app/immutable/chunks/{DnZWqWpU.js → D6j3Zn1d.js} +1 -1
- package/web/app/immutable/chunks/{CmA5yNGW.js → D8aSK4oD.js} +1 -1
- package/web/app/immutable/chunks/{ss5P-nXJ.js → DEAMVhLT.js} +1 -1
- package/web/app/immutable/chunks/{D0yAFGtc.js → DELkwK3u.js} +1 -1
- package/web/app/immutable/chunks/{ClkrfAJy.js → DGaw_Pt8.js} +1 -1
- package/web/app/immutable/chunks/{Ce-VJjKb.js → DIC5rFND.js} +1 -1
- package/web/app/immutable/chunks/{B0spVZ4N.js → DIKVXlyt.js} +2 -2
- package/web/app/immutable/chunks/{D8nvwSEd.js → DJbKSkhu.js} +1 -1
- package/web/app/immutable/chunks/{XUKFV-Lu.js → DJtDx6s-.js} +1 -1
- package/web/app/immutable/chunks/{B8wLLNNy.js → DKOCXDff.js} +1 -1
- package/web/app/immutable/chunks/{CcPsUs-_.js → DKmafHBY.js} +1 -1
- package/web/app/immutable/chunks/{BBWjQSE9.js → DLG3MCT8.js} +1 -1
- package/web/app/immutable/chunks/{D1g1dll-.js → DLIvmKAR.js} +1 -1
- package/web/app/immutable/chunks/{BjyYVLxY.js → DLmwZnzr.js} +5 -5
- package/web/app/immutable/chunks/{CBDYQVg6.js → DO2jrLL9.js} +1 -1
- package/web/app/immutable/chunks/{okOKsgNf.js → DOs89s1W.js} +1 -1
- package/web/app/immutable/chunks/{CUIs2I3O.js → DPirTM_u.js} +1 -1
- package/web/app/immutable/chunks/{DbWUMggW.js → DPxEMxJD.js} +1 -1
- package/web/app/immutable/chunks/{DhACIQne.js → DQIS1MQd.js} +1 -1
- package/web/app/immutable/chunks/{X4juA7yX.js → DQMWee-l.js} +3 -3
- package/web/app/immutable/chunks/{DBIUpShh.js → DRiAJPzW.js} +1 -1
- package/web/app/immutable/chunks/{Ddc-WgaC.js → DUGMxl18.js} +1 -1
- package/web/app/immutable/chunks/DUQ8HfFA.js +1 -0
- package/web/app/immutable/chunks/{BY2fVQo1.js → DUq_tiZf.js} +1 -1
- package/web/app/immutable/chunks/{C2Fl6wsn.js → DZnyvN4o.js} +1 -1
- package/web/app/immutable/chunks/{B6RNERCn.js → DZwGQbE8.js} +1 -1
- package/web/app/immutable/chunks/{C0YLm8CD.js → D_HBCPjs.js} +1 -1
- package/web/app/immutable/chunks/{D9xttWhI.js → D_gAF2kq.js} +1 -1
- package/web/app/immutable/chunks/{Bt7ifO4m.js → DaFADtX2.js} +1 -1
- package/web/app/immutable/chunks/{BwGuXAys.js → DbPDpNcg.js} +1 -1
- package/web/app/immutable/chunks/{2aENTZdC.js → DbSMHaNK.js} +1 -1
- package/web/app/immutable/chunks/{kwciY1c4.js → DbyXkQ-A.js} +1 -1
- package/web/app/immutable/chunks/{C1ovhCkc.js → DcGNquRL.js} +1 -1
- package/web/app/immutable/chunks/{BBdbuIRv.js → Dcvn1tie.js} +2 -2
- package/web/app/immutable/chunks/{BXR8AV82.js → DdIYz1zo.js} +1 -1
- package/web/app/immutable/chunks/{B4kXxEpf.js → DdafiALh.js} +3 -3
- package/web/app/immutable/chunks/{Bl_W_iQz.js → DeYzpxan.js} +1 -1
- package/web/app/immutable/chunks/{B8SIpPze.js → DffSA-Qz.js} +1 -1
- package/web/app/immutable/chunks/{DxaeKN3V.js → DhnPdhLH.js} +1 -1
- package/web/app/immutable/chunks/{niFTE-Md.js → Djfmc_ao.js} +1 -1
- package/web/app/immutable/chunks/{DHyQyItQ.js → DjzRT3Ue.js} +1 -1
- package/web/app/immutable/chunks/{_Drx-ebr.js → Dl-VKCMh.js} +1 -1
- package/web/app/immutable/chunks/{B2uZemcw.js → Dm7f6Xxr.js} +1 -1
- package/web/app/immutable/chunks/{B0jQ6_pS.js → DnD4hxy7.js} +1 -1
- package/web/app/immutable/chunks/{itW2hvvy.js → DnJtXsWm.js} +1 -1
- package/web/app/immutable/chunks/{BNudtN7S.js → DpmKkSJP.js} +1 -1
- package/web/app/immutable/chunks/{7BZaGNhC.js → DqP39woS.js} +1 -1
- package/web/app/immutable/chunks/{FaOBOfng.js → DroTaCBM.js} +1 -1
- package/web/app/immutable/chunks/{BDzgZh6j.js → Dto5_TqF.js} +1 -1
- package/web/app/immutable/chunks/{LuQT0fzd.js → DvMvrFFa.js} +1 -1
- package/web/app/immutable/chunks/{DwQVwa3a.js → DvhhQYfO.js} +1 -1
- package/web/app/immutable/chunks/{DewdHgvV.js → DvjZKcqd.js} +1 -1
- package/web/app/immutable/chunks/{Cq56Q2fb.js → Dwq1B1mD.js} +1 -1
- package/web/app/immutable/chunks/{BwDjkMgu.js → DxNSBFy7.js} +1 -1
- package/web/app/immutable/chunks/{Jvao0AGr.js → DxlrzlUO.js} +1 -1
- package/web/app/immutable/chunks/{7UxzK9uV.js → DyRs4I5x.js} +1 -1
- package/web/app/immutable/chunks/{CQdYXUmV.js → EPCnwBto.js} +1 -1
- package/web/app/immutable/chunks/{DAo-7PH9.js → ExyHKvnG.js} +1 -1
- package/web/app/immutable/chunks/{B3ogllHQ.js → HJvhI2th.js} +2 -2
- package/web/app/immutable/chunks/{CbA-W0g2.js → IDaGSd8y.js} +1 -1
- package/web/app/immutable/chunks/{BzU8kMsE.js → IRSIweMK.js} +2 -2
- package/web/app/immutable/chunks/{0YYQDkpR.js → OBaERIRu.js} +1 -1
- package/web/app/immutable/chunks/{fVmOTKy0.js → OtZHxuvr.js} +1 -1
- package/web/app/immutable/chunks/P93gVaLu.js +1 -0
- package/web/app/immutable/chunks/{Ds39lStS.js → PRunkvIA.js} +1 -1
- package/web/app/immutable/chunks/{DvitXhqS.js → PxbnwPTH.js} +1 -1
- package/web/app/immutable/chunks/{DwUdTRYt.js → Q_7q1g1V.js} +1 -1
- package/web/app/immutable/chunks/{CtiHhMgN.js → WHFDPTSN.js} +1 -1
- package/web/app/immutable/chunks/{DcA-dCWm.js → WSJurcVg.js} +1 -1
- package/web/app/immutable/chunks/{BNC-Lwfi.js → _QB9q3ka.js} +2 -2
- package/web/app/immutable/chunks/{z8tTy55S.js → a11INEB2.js} +1 -1
- package/web/app/immutable/chunks/{DYRmn6Yi.js → aB88tX8Q.js} +1 -1
- package/web/app/immutable/chunks/{a6C5ZRdf.js → fEO_JjJs.js} +1 -1
- package/web/app/immutable/chunks/{Bf6IFDXg.js → hWXfsV3F.js} +2 -2
- package/web/app/immutable/chunks/{DrQShJ4w.js → i56WxPLH.js} +1 -1
- package/web/app/immutable/chunks/{DGdKHW1A.js → iarSknrC.js} +1 -1
- package/web/app/immutable/chunks/{Bqbxbx0y.js → jHHKOkW4.js} +1 -1
- package/web/app/immutable/chunks/{BxCf0oIJ.js → kDhfBVjP.js} +1 -1
- package/web/app/immutable/chunks/{zHxTYVfy.js → q66ttt22.js} +3 -3
- package/web/app/immutable/chunks/{Cvwz8rkw.js → qUWUBPqP.js} +1 -1
- package/web/app/immutable/chunks/{uPLSpGfI.js → r5eyOwTV.js} +1 -1
- package/web/app/immutable/chunks/{D6LGxrdb.js → s3cC8o8y.js} +1 -1
- package/web/app/immutable/chunks/{CN8uwlve.js → sVbFdYPp.js} +1 -1
- package/web/app/immutable/chunks/{Dp8M5p4B.js → scctxWgb.js} +1 -1
- package/web/app/immutable/chunks/{BHwK0Imh.js → u4HT3usu.js} +3 -3
- package/web/app/immutable/chunks/{COBMR4-d.js → v4Y0eqyL.js} +1 -1
- package/web/app/immutable/chunks/{BZoBPzg7.js → wegJMlUp.js} +1 -1
- package/web/app/immutable/chunks/{ChQOFil_.js → wf2_U67h.js} +1 -1
- package/web/app/immutable/chunks/{BNT6moEL.js → xermZvR1.js} +1 -1
- package/web/app/immutable/entry/{app.NGShtn4Q.js → app.B9pbttZz.js} +2 -2
- package/web/app/immutable/entry/start.LGV8aa5W.js +1 -0
- package/web/app/immutable/nodes/{0.DT5uo1CP.js → 0.BuaXl3Zn.js} +1 -1
- package/web/app/immutable/nodes/{1.CxAnkj5F.js → 1.C0hTLxrG.js} +1 -1
- package/web/app/immutable/nodes/{10.Bk0Uz-As.js → 10.BYoBAwS8.js} +1 -1
- package/web/app/immutable/nodes/{12.BpWGXWWa.js → 12.PYOhZUdM.js} +1 -1
- package/web/app/immutable/nodes/{13.leSsSzYY.js → 13.BY569pVx.js} +1 -1
- package/web/app/immutable/nodes/{14.r2frNnQG.js → 14.qZIH60wN.js} +1 -1
- package/web/app/immutable/nodes/{15.Btuvso1L.js → 15.Dp0o2rd0.js} +1 -1
- package/web/app/immutable/nodes/{16.z-YRKnFC.js → 16.Dh2u6eHX.js} +1 -1
- package/web/app/immutable/nodes/{17.C273uCUv.js → 17.I3z1Kvz2.js} +1 -1
- package/web/app/immutable/nodes/{18.By-9PvHS.js → 18.Cz3sqM0n.js} +2 -2
- package/web/app/immutable/nodes/{2.C9_sbsBp.js → 2._25AU1Pu.js} +4 -4
- package/web/app/immutable/nodes/{3.CdN7MkIW.js → 3.RDPPYmES.js} +1 -1
- package/web/app/immutable/nodes/{4.CPmzgx57.js → 4.Demyxi_h.js} +1 -1
- package/web/app/immutable/nodes/{5.D8oJYOMA.js → 5.ylO_Qjm7.js} +1 -1
- package/web/app/immutable/nodes/{6.D9qDJgTP.js → 6.CJQj_6nS.js} +1 -1
- package/web/app/immutable/nodes/{7.DMYRqnZz.js → 7.BP9EIVoN.js} +1 -1
- package/web/app/immutable/nodes/{8.CMfIEC53.js → 8.qL2AO5Vz.js} +4 -4
- package/web/app/immutable/nodes/{9.a5Hg0ELW.js → 9.CH8_E86R.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/index.html +15 -15
- package/web/app/immutable/chunks/DOltLsEz.js +0 -1
- package/web/app/immutable/chunks/DiGDFZTA.js +0 -1
- package/web/app/immutable/chunks/DmVc7sdn.js +0 -1
- package/web/app/immutable/chunks/DoD-b6ik.js +0 -1
- package/web/app/immutable/chunks/aRj-O8WB.js +0 -1
- package/web/app/immutable/entry/start.CLp-6lZP.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var qr=Object.defineProperty;var Yt=d=>{throw TypeError(d)};var zr=(d,e,t)=>e in d?qr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var M=(d,e,t)=>zr(d,typeof e!="symbol"?e+"":e,t),xt=(d,e,t)=>e.has(d)||Yt("Cannot "+t);var h=(d,e,t)=>(xt(d,e,"read from private field"),t?t.call(d):e.get(d)),H=(d,e,t)=>e.has(d)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),Ie=(d,e,t,r)=>(xt(d,e,"write to private field"),r?r.call(d,t):e.set(d,t),t),Pe=(d,e,t)=>(xt(d,e,"access private method"),t);import{t as te,bo as a,bw as re,b as ne,bp as be,br as _e,bm as jt}from"./BkULGdgB.js";import{c9 as x,aD as n,bs as oe,a7 as q,ay as K,W as S,bn as se,aA as l,aB as $,bH as k,bV as Y,bi as Gr,ca as ve,cb as Yr,bf as ae,bo as ke,a5 as X,bA as Z,bS as ct,bI as jr,aG as At,c5 as Jr,bl as sr,b_ as Et,bO as Qr,br as Xr,bk as Zr,c0 as Ct}from"./DYhIMPy1.js";import{s as j}from"./DdvXzOsp.js";import{c as pe}from"./dqNuna_B.js";import{e as $r,s as en,g as tn,i as rn,f as nn,b as on}from"./C2llNKRj.js";import{i as Q}from"./CVqc5kFv.js";import{g as sn,e as Jt}from"./jKsiRjTE.js";import{aY as an,aQ as de,au as ln,aI as dn,h as Tt,an as Ce,D as yt,i as un,d as le,a as fe,l as pt,a6 as _t,ac as ft,_ as Ht,J as Mt,Z as Rt,E as Lt,aR as ir,aW as ar,aC as lr,ap as dr,aq as Vt,aF as Dt,ar as ur,a$ as me,aN as hn,aU as cn,aH as gn,aG as pn,at as Qt,am as hr,a2 as fn,av as U,ay as vn,m as cr,b as mn,c as bn,a4 as yn,C as wn,g as xn,A as _n,M as Cn,F as Nn,r as In,s as Pn,t as Sn,u as kn,v as On,w as An,x as En,y as Tn,o as Hn,p as Mn,q as Rn,B as Ln,z as Vn,az as ue,aS as J,a0 as gr,$ as pr,aV as Dn,H as Fn,f as Kn,a1 as Bn}from"./kwciY1c4.js";import{b as ee,e as xe,f as fr,s as vr,c as Wn}from"./BkQ2g3_N.js";import{F as mr,at as Un,bW as qn,av as zn,ar as Gn}from"./DcwBt__E.js";import"./pPdnPxpA.js";import{b as Yn}from"./BaIAhI85.js";import{P as jn,u as Jn,b as Xt,a as Qn}from"./Q1qyd41K.js";import{c as Xn,u as Zn,s as $n}from"./DfxQWSVU.js";import"./Dewa-xFN.js";import{s as eo,a as to}from"./BsieX9dN.js";const br={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%)"};an(br);var Ee,mt;class ro{constructor(e,t){H(this,Ee,()=>{});H(this,mt,x(()=>h(this,Ee).call(this)));let r;t!==void 0&&(r=t),Ie(this,Ee,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,mt))}}Ee=new WeakMap,mt=new WeakMap;var no=new Set(["$$slots","$$events","$$legacy","value"]),Zt=$("<input/>");function yr(d,e){if(new.target)return te({component:yr,...d});oe(e,!0);let t=a(e,"value",15),r=be(e,no);const s=x(()=>de(r,{"aria-hidden":"true",tabindex:-1,style:{...br,position:"absolute",top:"0",left:"0"}}));var o={get value(){return t()},set value(u){t(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},i=q(),v=K(i);{var _=u=>{var p=Zt();ee(p,()=>({...n(s),value:t()}),void 0,void 0,void 0,void 0,!0),S(u,p)},m=u=>{var p=Zt();ee(p,()=>({...n(s)}),void 0,void 0,void 0,void 0,!0),$r(p,t),S(u,p)};Q(v,u=>{n(s).type==="checkbox"?u(_):u(m,-1)})}return S(d,i),se(o)}var ce,ye,ge;class oo{constructor(e){H(this,ce);H(this,ye,x(()=>h(this,ce).candidateValues()));H(this,ge);Ie(this,ce,e),Ie(this,ge,ln("",{afterMs:1e3,getWindow:h(this,ce).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ce).enabled()||!n(h(this,ye)).length)return;h(this,ge).current=h(this,ge).current+e;const t=h(this,ce).getCurrentItem(),r=n(h(this,ye)).find(v=>v===t)??"",s=n(h(this,ye)).map(v=>v??""),o=dn(s,h(this,ge).current,r),i=n(h(this,ye)).find(v=>v===o);return i&&h(this,ce).onMatch(i),i}resetTypeahead(){h(this,ge).current=""}}ce=new WeakMap,ye=new WeakMap,ge=new WeakMap;const $t=[mn,cr,bn,yn,wn,xn,_n,Cn,pt,Nn,In,Pn,Sn,kn,On,An,En,Tn,Hn,Mn,Rn],so=[fe,Ht,Mt],io=[le,Rt,Lt],wr=[...so,...io],ao=vn({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ne=new Tt("Select.Root | Combobox.Root"),xr=new Tt("Select.Group | Combobox.Group"),_r=new Tt("Select.Content | Combobox.Content");var Te,He,Me,Re,Le,Ve,De,Fe,Ke,Be,We,Ue;class Cr{constructor(e){M(this,"opts");H(this,Te,Y(!1));H(this,He,Y(null));H(this,Me,Y(null));M(this,"contentPresence");H(this,Re,Y(null));H(this,Le,Y(null));H(this,Ve,Y(null));H(this,De,Y(""));H(this,Fe,Y(null));H(this,Ke,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,Be,x(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,We,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ue,Y(!1));M(this,"isUsingKeyboard",!1);M(this,"isCombobox",!1);M(this,"domContext",new yt(()=>null));M(this,"getBitsAttr",e=>ao.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new fn({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Yr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Te))}set touchedInput(e){k(h(this,Te),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){k(h(this,He),e,!0)}get contentNode(){return n(h(this,Me))}set contentNode(e){k(h(this,Me),e,!0)}get viewportNode(){return n(h(this,Re))}set viewportNode(e){k(h(this,Re),e,!0)}get triggerNode(){return n(h(this,Le))}set triggerNode(e){k(h(this,Le),e,!0)}get valueNode(){return n(h(this,Ve))}set valueNode(e){k(h(this,Ve),e,!0)}get valueId(){return n(h(this,De))}set valueId(e){k(h(this,De),e,!0)}get highlightedNode(){return n(h(this,Fe))}set highlightedNode(e){k(h(this,Fe),e,!0)}get highlightedValue(){return n(h(this,Ke))}set highlightedValue(e){k(h(this,Ke),e)}get highlightedId(){return n(h(this,Be))}set highlightedId(e){k(h(this,Be),e)}get highlightedLabel(){return n(h(this,We))}set highlightedLabel(e){k(h(this,We),e)}get contentIsPositioned(){return n(h(this,Ue))}set contentIsPositioned(e){k(h(this,Ue),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(s=>{if(!this.viewportNode)return!1;const o=s.getBoundingClientRect();return o.right<=r.right&&o.left>=r.left&&o.bottom<=r.bottom&&o.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(s=>s.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const s=r.getAttribute("data-label");return s!==null&&s!==""?s: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()}}Te=new WeakMap,He=new WeakMap,Me=new WeakMap,Re=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;var qe,ze,Ge,Ye;class lo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!1);H(this,qe,x(()=>this.opts.value.current!==""));H(this,ze,x(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Ge,x(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Ye,x(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,qe))}set hasValue(t){k(h(this,qe),t)}get currentLabel(){return n(h(this,ze))}set currentLabel(t){k(h(this,ze),t)}get candidateLabels(){return n(h(this,Ge))}set candidateLabels(t){k(h(this,Ge),t)}get dataTypeaheadEnabled(){return n(h(this,Ye))}set dataTypeaheadEnabled(t){k(h(this,Ye),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const s=this.includesItem(t)?"":t;this.opts.value.current=s,s!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){hr(()=>{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)}})}}qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Ye=new WeakMap;var je;class uo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!0);H(this,je,x(()=>this.opts.value.current.length>0));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,je))}set hasValue(t){k(h(this,je),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(s=>s!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){hr(()=>{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)}})}}je=new WeakMap;class ho{static create(e){const{type:t,...r}=e,s=t==="single"?new lo(r):new uo(r);return Ne.set(s)}}var Je;const Ft=class Ft{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Je,x(()=>({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":ur(this.root.opts.open.current),"data-state":Dt(this.root.opts.open.current),"data-disabled":Vt(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=Ce(e.ref,r=>this.root.inputNode=r),this.root.domContext=new yt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),me([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,s],[o])=>{s&&(Array.isArray(r)&&Array.isArray(o)?r.length===0&&o.length!==0&&(this.root.opts.inputValue.current=""):r===""&&o!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new Ft(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==cr){if((e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if($t.includes(e.key)||e.key===ft||e.key===Ln&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===fe){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===ft){this.root.handleClose();return}if(e.key===pt&&!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(),wr.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,s=r?t.indexOf(r):-1,o=this.root.opts.loop.current;let i;if(e.key===fe?i=ir(t,s,o):e.key===le?i=ar(t,s,o):e.key===Rt?i=lr(t,s,10,o):e.key===Ht?i=dr(t,s,10,o):e.key===Mt?i=t[0]:e.key===Lt&&(i=t[t.length-1]),!i)return;this.root.setHighlightedNode(i);return}$t.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,Je))}set props(e){k(h(this,Je),e)}};Je=new WeakMap;let er=Ft;var we,Se,he,Nr,It,Pt,Qe;const Kt=class Kt{constructor(e,t){H(this,he);M(this,"opts");M(this,"root");M(this,"attachment");H(this,we);H(this,Se);H(this,Qe,x(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":ur(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dt(this.root.opts.open.current),"data-disabled":Vt(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=Ce(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new yt(e.ref),Ie(this,we,new un({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ie(this,Se,new oo({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(o=>o.label===r);s&&(this.root.opts.value.current=s.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 Kt(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===pt||e.key===_t||e.key===fe||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(e.key===fe){const v=i[0];this.root.setHighlightedNode(v)}else if(e.key===le){const v=i[i.length-1];this.root.setHighlightedNode(v)}return}if(e.key===ft){this.root.handleClose();return}if((e.key===pt||e.key===_t&&h(this,we).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Pt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const i=this.root.getCandidateNodes(),v=this.root.highlightedNode,_=v?i.indexOf(v):-1,m=this.root.opts.loop.current;let u;if(e.key===fe?u=ir(i,_,m):e.key===le?u=ar(i,_,m):e.key===Rt?u=lr(i,_,10,m):e.key===Ht?u=dr(i,_,10,m):e.key===Mt?u=i[0]:e.key===Lt&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,s=e.key===_t,o=this.root.getCandidateNodes();if(e.key!==ft){if(!t&&(r||s)){!h(this,we).handleTypeaheadSearch(e.key,o)&&s&&(e.preventDefault(),Pe(this,he,Pt).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,he,It).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,he,It).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};we=new WeakMap,Se=new WeakMap,he=new WeakSet,Nr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,we).resetTypeahead()},It=function(e){Pe(this,he,Nr).call(this)},Pt=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)},Qe=new WeakMap;let Nt=Kt;var Xe,bt,Ze,$e;const Bt=class Bt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Xe,Y(!1));M(this,"domContext");H(this,bt,x(()=>gn(this.root.isCombobox?"combobox":"select")));M(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()});M(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onOpenAutoFocus",e=>{e.preventDefault()});M(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,Ze,x(()=>({open:this.root.opts.open.current})));H(this,$e,x(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dt(this.root.opts.open.current),...pn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,bt))},onpointermove:this.onpointermove,...this.attachment})));M(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=Ce(e.ref,r=>this.root.contentNode=r),this.domContext=new yt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),cn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),me(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),me([()=>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 _r.set(new Bt(e,Ne.get()))}get isPositioned(){return n(h(this,Xe))}set isPositioned(e){k(h(this,Xe),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,Ze))}set snippetProps(e){k(h(this,Ze),e)}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};Xe=new WeakMap,bt=new WeakMap,Ze=new WeakMap,$e=new WeakMap;let vt=Bt;var et,tt,rt,nt,ot;const Wt=class Wt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,et,x(()=>this.root.includesItem(this.opts.value.current)));H(this,tt,x(()=>this.root.highlightedValue===this.opts.value.current));M(this,"prevHighlighted",new ro(()=>this.isHighlighted));H(this,rt,Y(!1));H(this,nt,x(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,ot,x(()=>({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":Vt(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=Ce(e.ref),me([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),me(()=>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 Wt(e,Ne.get())}get isSelected(){return n(h(this,et))}set isSelected(e){k(h(this,et),e)}get isHighlighted(){return n(h(this,tt))}set isHighlighted(e){k(h(this,tt),e)}get mounted(){return n(h(this,rt))}set mounted(e){k(h(this,rt),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,nt))}set snippetProps(e){k(h(this,nt),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!hn){Gr(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,ot))}set props(e){k(h(this,ot),e)}};et=new WeakMap,tt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=new WeakMap;let St=Wt;var st,it;const Ut=class Ut{constructor(e,t){M(this,"opts");M(this,"root");H(this,st,Y(null));M(this,"attachment");H(this,it,x(()=>({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=Ce(e.ref)}static create(e){return xr.set(new Ut(e,Ne.get()))}get labelNode(){return n(h(this,st))}set labelNode(e){k(h(this,st),e,!0)}get props(){return n(h(this,it))}set props(e){k(h(this,it),e)}};st=new WeakMap,it=new WeakMap;let tr=Ut;var at;const qt=class qt{constructor(e,t){M(this,"opts");M(this,"group");M(this,"attachment");H(this,at,x(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ce(e.ref,r=>this.group.labelNode=r)}static create(e){return new qt(e,xr.get())}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};at=new WeakMap;let rr=qt;var lt,dt;const zt=class zt{constructor(e,t){M(this,"opts");M(this,"root");H(this,lt,x(()=>this.root.opts.name.current!==""));H(this,dt,x(()=>({disabled:Qt(this.root.opts.disabled.current),required:Qt(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,Ne.get())}get shouldRender(){return n(h(this,lt))}set shouldRender(e){k(h(this,lt),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let kt=zt;var ut,ht;const Gt=class Gt{constructor(e,t){M(this,"opts");M(this,"content");M(this,"root");M(this,"attachment");H(this,ut,Y(0));H(this,ht,x(()=>({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=Ce(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Gt(e,_r.get())}get prevScrollTop(){return n(h(this,ut))}set prevScrollTop(e){k(h(this,ut),e,!0)}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ut=new WeakMap,ht=new WeakMap;let Ot=Gt;function gt(d,e){if(new.target)return te({component:gt,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"autocomplete",7);const s=kt.create({value:U(()=>t())});var o={get value(){return t()},set value(m){t(m),l()},get autocomplete(){return r()},set autocomplete(m){r(m),l()},$set:re,$on:(m,u)=>ne(e,m,u)},i=q(),v=K(i);{var _=m=>{yr(m,_e(()=>s.props,{get autocomplete(){return r()},get value(){return t()},set value(u){t(u)}}))};Q(v,m=>{s.shouldRender&&m(_)})}return S(d,i),se(o)}function Ir(d,e){if(new.target)return te({component:Ir,...d});oe(e,!0);let t=a(e,"id",7),r=a(e,"children",7),s=a(e,"virtualEl",7),o=a(e,"ref",7),i=a(e,"tooltip",7,!1);Vn.create({id:U(()=>t()),virtualEl:U(()=>s()),ref:o()},i());var v={get id(){return t()},set id(u){t(u),l()},get children(){return r()},set children(u){r(u),l()},get virtualEl(){return s()},set virtualEl(u){s(u),l()},get ref(){return o()},set ref(u){o(u),l()},get tooltip(){return i()},set tooltip(u=!1){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);return j(m,()=>r()??ae),S(d,_),se(v)}var co=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),nr=$("<div><div><!></div></div>");function Pr(d,e){const t=ke();if(new.target)return te({component:Pr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"side",7,"bottom"),v=a(e,"onInteractOutside",7,J),_=a(e,"onEscapeKeydown",7,J),m=a(e,"children",7),u=a(e,"child",7),p=a(e,"preventScroll",7,!1),T=a(e,"style",7),O=be(e,co);const C=vt.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),onInteractOutside:U(()=>v()),onEscapeKeydown:U(()=>_())}),N=x(()=>de(O,C.props));var b={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get forceMount(){return o()},set forceMount(c=!1){o(c),l()},get side(){return i()},set side(c="bottom"){i(c),l()},get onInteractOutside(){return v()},set onInteractOutside(c=J){v(c),l()},get onEscapeKeydown(){return _()},set onEscapeKeydown(c=J){_(c),l()},get children(){return m()},set children(c){m(c),l()},get child(){return u()},set child(c){u(c),l()},get preventScroll(){return p()},set preventScroll(c=!1){p(c),l()},get style(){return T()},set style(c){T(c),l()},$set:re,$on:(c,L)=>ne(e,c,L)},R=q(),D=K(R);{var G=c=>{gr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get enabled(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var V=q(),W=K(V);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,V)},$$slots:{popper:!0}}))},g=c=>{pr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get open(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var V=q(),W=K(V);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,V)},$$slots:{popper:!0}}))};Q(D,c=>{o()?c(G):o()||c(g,1)})}return S(d,R),se(b)}var go=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),or=$("<div><!></div>");function Sr(d,e){const t=ke();if(new.target)return te({component:Sr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"onInteractOutside",7,J),v=a(e,"onEscapeKeydown",7,J),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"preventScroll",7,!1),p=a(e,"style",7),T=be(e,go);const O=vt.create({id:U(()=>r()),ref:U(()=>s(),g=>s(g)),onInteractOutside:U(()=>i()),onEscapeKeydown:U(()=>v())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(g=ue(t)){r(g),l()},get ref(){return s()},set ref(g=null){s(g),l()},get forceMount(){return o()},set forceMount(g=!1){o(g),l()},get onInteractOutside(){return i()},set onInteractOutside(g=J){i(g),l()},get onEscapeKeydown(){return v()},set onEscapeKeydown(g=J){v(g),l()},get children(){return _()},set children(g){_(g),l()},get child(){return m()},set child(g){m(g),l()},get preventScroll(){return u()},set preventScroll(g=!1){u(g),l()},get style(){return p()},set style(g){p(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},b=q(),R=K(b);{var D=g=>{gr(g,_e(()=>n(C),()=>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 u()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(L,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var V=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(V):F(W,-1)})}S(L,B)},$$slots:{popper:!0}}))},G=g=>{pr(g,_e(()=>n(C),()=>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 u()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(L,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var V=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(V):F(W,-1)})}S(L,B)},$$slots:{popper:!0}}))};Q(R,g=>{o()?g(D):o()||g(G,1)})}return S(d,b),se(N)}function kr(d,e){if(new.target)return te({component:kr,...d});oe(e,!0);let t=a(e,"mounted",15,!1),r=a(e,"onMountedChange",7,J);Dn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var s={get mounted(){return t()},set mounted(o=!1){t(o),l()},get onMountedChange(){return r()},set onMountedChange(o=J){r(o),l()},$set:re,$on:(o,i)=>ne(e,o,i)};return se(s)}var po=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),fo=$("<div><!></div>"),vo=$("<!> <!>",1);function Or(d,e){const t=ke();if(new.target)return te({component:Or,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"value",7),i=a(e,"label",23,o),v=a(e,"disabled",7,!1),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"onHighlight",7,J),p=a(e,"onUnhighlight",7,J),T=be(e,po);const O=St.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),value:U(()=>o()),disabled:U(()=>v()),label:U(()=>i()),onHighlight:U(()=>u()),onUnhighlight:U(()=>p())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get value(){return o()},set value(c){o(c),l()},get label(){return i()},set label(c=o){i(c),l()},get disabled(){return v()},set disabled(c=!1){v(c),l()},get children(){return _()},set children(c){_(c),l()},get child(){return m()},set child(c){m(c),l()},get onHighlight(){return u()},set onHighlight(c=J){u(c),l()},get onUnhighlight(){return p()},set onUnhighlight(c=J){p(c),l()},$set:re,$on:(c,L)=>ne(e,c,L)},b=vo(),R=K(b);{var D=c=>{var L=q(),I=K(L);{let y=x(()=>({props:n(C),...O.snippetProps}));j(I,m,()=>n(y))}S(c,L)},G=c=>{var L=fo();ee(L,()=>({...n(C)}));var I=X(L);j(I,()=>_()??ae,()=>O.snippetProps),Z(L),S(c,L)};Q(R,c=>{m()?c(D):c(G,-1)})}var g=ct(R,2);return kr(g,{get mounted(){return O.mounted},set mounted(c){O.mounted=c}}),S(d,b),se(N)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),bo=$("<div><!></div>");function Ar(d,e){const t=ke();if(new.target)return te({component:Ar,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"children",7),i=a(e,"child",7),v=be(e,mo);const _=Ot.create({id:U(()=>r()),ref:U(()=>s(),N=>s(N))}),m=x(()=>de(v,_.props));var u={get id(){return r()},set id(N=ue(t)){r(N),l()},get ref(){return s()},set ref(N=null){s(N),l()},get children(){return o()},set children(N){o(N),l()},get child(){return i()},set child(N){i(N),l()},$set:re,$on:(N,b)=>ne(e,N,b)},p=q(),T=K(p);{var O=N=>{var b=q(),R=K(b);j(R,i,()=>({props:n(m)})),S(N,b)},C=N=>{var b=bo();ee(b,()=>({...n(m)}));var R=X(b);j(R,()=>o()??ae),Z(b),S(N,b)};Q(T,N=>{i()?N(O):N(C,-1)})}return S(d,p),se(u)}var yo=$("<!> <!>",1);function Er(d,e){if(new.target)return te({component:Er,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"onValueChange",7,J),s=a(e,"name",7,""),o=a(e,"disabled",7,!1),i=a(e,"type",7),v=a(e,"open",15,!1),_=a(e,"onOpenChange",7,J),m=a(e,"onOpenChangeComplete",7,J),u=a(e,"loop",7,!1),p=a(e,"scrollAlignment",7,"nearest"),T=a(e,"required",7,!1),O=a(e,"items",23,()=>[]),C=a(e,"allowDeselect",7,!1),N=a(e,"autocomplete",7),b=a(e,"children",7);function R(){t()===void 0&&t(i()==="single"?"":[])}R(),me.pre(()=>t(),()=>{R()});let D=Y("");const G=ho.create({type:i(),value:U(()=>t(),f=>{t(f),r()(f)}),disabled:U(()=>o()),required:U(()=>T()),open:U(()=>v(),f=>{v(f),_()(f)}),loop:U(()=>u()),scrollAlignment:U(()=>p()),name:U(()=>s()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>C()),inputValue:U(()=>n(D),f=>k(D,f,!0)),onOpenChangeComplete:U(()=>m())});var g={get value(){return t()},set value(f){t(f),l()},get onValueChange(){return r()},set onValueChange(f=J){r(f),l()},get name(){return s()},set name(f=""){s(f),l()},get disabled(){return o()},set disabled(f=!1){o(f),l()},get type(){return i()},set type(f){i(f),l()},get open(){return v()},set open(f=!1){v(f),l()},get onOpenChange(){return _()},set onOpenChange(f=J){_(f),l()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(f=J){m(f),l()},get loop(){return u()},set loop(f=!1){u(f),l()},get scrollAlignment(){return p()},set scrollAlignment(f="nearest"){p(f),l()},get required(){return T()},set required(f=!1){T(f),l()},get items(){return O()},set items(f=[]){O(f),l()},get allowDeselect(){return C()},set allowDeselect(f=!1){C(f),l()},get autocomplete(){return N()},set autocomplete(f){N(f),l()},get children(){return b()},set children(f){b(f),l()},$set:re,$on:(f,V)=>ne(e,f,V)},c=yo(),L=K(c);Fn(L,{children:(f,V)=>{var W=q(),F=K(W);j(F,()=>b()??ae),S(f,W)},$$slots:{default:!0}});var I=ct(L,2);{var y=f=>{var V=q(),W=K(V);{var F=P=>{gt(P,{get autocomplete(){return N()}})},w=P=>{var A=q(),z=K(A);sn(z,16,()=>G.opts.value.current,ie=>ie,(ie,Oe)=>{gt(ie,{get value(){return Oe},get autocomplete(){return N()}})}),S(P,A)};Q(W,P=>{G.opts.value.current.length===0?P(F):P(w,-1)})}S(f,V)},E=x(()=>Array.isArray(G.opts.value.current)),B=f=>{gt(f,{get autocomplete(){return N()},get value(){return G.opts.value.current},set value(V){G.opts.value.current=V}})};Q(I,f=>{n(E)?f(y):f(B,-1)})}return S(d,c),se(g)}var wo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),xo=$("<button><!></button>");function Tr(d,e){const t=ke();if(new.target)return te({component:Tr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"child",7),i=a(e,"children",7),v=a(e,"type",7,"button"),_=be(e,wo);const m=Nt.create({id:U(()=>r()),ref:U(()=>s(),C=>s(C))}),u=x(()=>de(_,m.props,{type:v()}));var p={get id(){return r()},set id(C=ue(t)){r(C),l()},get ref(){return s()},set ref(C=null){s(C),l()},get child(){return o()},set child(C){o(C),l()},get children(){return i()},set children(C){i(C),l()},get type(){return v()},set type(C="button"){v(C),l()},$set:re,$on:(C,N)=>ne(e,C,N)},T=q(),O=K(T);return pe(O,()=>Ir,(C,N)=>{N(C,{get id(){return r()},get ref(){return m.opts.ref},children:(b,R)=>{var D=q(),G=K(D);{var g=L=>{var I=q(),y=K(I);j(y,o,()=>({props:n(u)})),S(L,I)},c=L=>{var I=xo();ee(I,()=>({...n(u)}));var y=X(I);j(y,()=>i()??ae),Z(I),S(L,I)};Q(G,L=>{o()?L(g):L(c,-1)})}S(b,D)},$$slots:{default:!0}})}),S(d,T),se(p)}var _o=$('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Hr(d,e){const t=ke();if(new.target)return te({component:Hr,...d});oe(e,!0);const r=`${t}-trigger`;let s=Y(r),o=a(e,"value",15,""),i=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),_=a(e,"disabled",7,!1),m=a(e,"invalid",7,!1),u=a(e,"required",7,!1),p=a(e,"name",7),T=a(e,"loop",7,!0),O=a(e,"onchange",7),C=a(e,"onopenchange",7),N=a(e,"children",7),b=a(e,"staticPosition",7,!1);en(()=>{i(!1),C()?.(!1)}),jr("canonical-select",{get triggerId(){return n(s)},registerTriggerId(g){k(s,g??r,!0)},listboxId:`${t}-listbox`,get value(){return o()},get displayValue(){return v().find(g=>g.value===o())?.label??o()},get invalid(){return m()},get open(){return i()},get staticPosition(){return b()},set open(g){i(g)}});var R={get value(){return o()},set value(g=""){o(g),l()},get open(){return i()},set open(g=!1){i(g),l()},get items(){return v()},set items(g=[]){v(g),l()},get disabled(){return _()},set disabled(g=!1){_(g),l()},get invalid(){return m()},set invalid(g=!1){m(g),l()},get required(){return u()},set required(g=!1){u(g),l()},get name(){return p()},set name(g){p(g),l()},get loop(){return T()},set loop(g=!0){T(g),l()},get onchange(){return O()},set onchange(g){O(g),l()},get onopenchange(){return C()},set onopenchange(g){C(g),l()},get children(){return N()},set children(g){N(g),l()},get staticPosition(){return b()},set staticPosition(g=!1){b(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},D=_o(),G=X(D);return pe(G,()=>Er,(g,c)=>{c(g,{type:"single",get items(){return v()},get disabled(){return _()},get required(){return u()},get name(){return p()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return C()},get value(){return o()},set value(L){o(L)},get open(){return i()},set open(L){i(L)},children:(L,I)=>{var y=q(),E=K(y);j(E,()=>N()??ae),S(L,y)},$$slots:{default:!0}})}),Z(D),S(d,D),se(R)}var Co=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),No=$("<!> <!>",1);function Mr(d,e){if(new.target)return te({component:Mr,...d});oe(e,!0);const t=(I,y)=>{let E=()=>(y?.()).props;const B=x(()=>G(E()));var f=q(),V=K(f);{var W=w=>{var P=q(),A=K(P);j(A,i,()=>({props:n(B)})),S(w,P)},F=w=>{Kn(w,_e(()=>n(B),{get variant(){return n(b)},get active(){return p.open},get class(){return n(R)},children:(P,A)=>{var z=No(),ie=K(z);j(ie,()=>o()??ae);var Oe=ct(ie,2);{var wt=Ae=>{mr(Ae,{get icon(){return Un},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};Q(Oe,Ae=>{r()==="default"&&Ae(wt)})}S(P,z)},$$slots:{default:!0}}))};Q(V,w=>{i()?w(W):w(F,-1)})}S(I,f)};let r=a(e,"variant",7,"default"),s=a(e,"class",7,""),o=a(e,"children",7),i=a(e,"child",7),v=a(e,"onclick",7),_=a(e,"id",7),m=a(e,"ref",15,null),u=be(e,Co);const p=At("canonical-select");Jr(()=>p.registerTriggerId(_())),ve(()=>p.registerTriggerId(_()));let T=Y(!1);ve(()=>{const I=p.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===I),!0)});const O=x(()=>!u["aria-label"]&&!u["aria-labelledby"]&&!n(T));let C=Y(void 0);ve(()=>{const I=m();if(!n(O)||!I){k(C,void 0);return}const y=()=>{k(C,I.textContent?.trim()||void 0,!0)};y();const E=new MutationObserver(y);return E.observe(I,{childList:!0,characterData:!0,subtree:!0}),()=>E.disconnect()});const N={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=x(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),R=x(()=>xe("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) font-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",N[r()],s()));function D(I){I.detail===0&&!p.open&&(p.open=!0),v()?.(I)}function G(I){const{"aria-activedescendant":y,"aria-label":E,...B}=I;return{...B,role:"combobox","aria-label":typeof E=="string"?E:n(C),"aria-activedescendant":p.open&&typeof y=="string"?y:void 0}}var g={get variant(){return r()},set variant(I="default"){r(I),l()},get class(){return s()},set class(I=""){s(I),l()},get children(){return o()},set children(I){o(I),l()},get child(){return i()},set child(I){i(I),l()},get onclick(){return v()},set onclick(I){v(I),l()},get id(){return _()},set id(I){_(I),l()},get ref(){return m()},set ref(I=null){m(I),l()},$set:re,$on:(I,y)=>ne(e,I,y)},c=q(),L=K(c);{let I=x(()=>p.open?p.listboxId:void 0),y=x(()=>p.invalid||void 0);pe(L,()=>Tr,(E,B)=>{B(E,_e(()=>u,{get id(){return p.triggerId},get"aria-controls"(){return n(I)},get class(){return n(R)},get"aria-invalid"(){return n(y)},onclick:D,get child(){return t},get ref(){return m()},set ref(f){m(f)}}))})}return S(d,c),se(g)}var Io=$("<span> </span>");function Rr(d,e){if(new.target)return te({component:Rr,...d});oe(e,!0);let t=a(e,"placeholder",23,()=>jt.ui_select_value_placeholder());const r=At("canonical-select");var s={get placeholder(){return t()},set placeholder(v=jt.ui_select_value_placeholder()){t(v),l()},$set:re,$on:(v,_)=>ne(e,v,_)},o=Io(),i=sr(o,!0);return Et(()=>{fr(o,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),Qr(i,r.displayValue||t())}),S(d,o),se(s)}var Po=$('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Lr(d,e){if(new.target)return te({component:Lr,...d});oe(e,!0);let t=a(e,"activeIndex",7),r=a(e,"onactiveindexchange",7),s=Y(null),o=Y(null),i=Y(Xr([])),v=Y(null),_=Y(!1),m=Y(!1),u;const p='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';ve(()=>{n(o)&&t()===void 0&&n(_)&&n(o).activeIndex!==n(v)&&n(o).setActiveIndex(n(v))}),ve(()=>{!n(o)||t()===void 0||n(o).pointerPosition||n(o).setActiveIndex(t())}),ve(()=>{if(!n(o)?.pointerPosition){u=void 0;return}n(o).activeIndex!==u&&(u=n(o).activeIndex,r()?.(n(o).activeIndex))}),Zr(()=>{const b=n(s)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const R=tn(b,{axis:"xy"});k(o,R);let D=[];const G=w=>w instanceof Element&&(w.matches(p)||w.querySelector(p)),g=w=>w.hasAttribute("data-disabled")||w.getAttribute("aria-disabled")==="true",c=w=>w.dataset.selectionAppearance!=="indicator"&&(w.hasAttribute("data-selected")||w.getAttribute("data-state")==="checked"||w.getAttribute("aria-selected")==="true"||w.getAttribute("aria-checked")==="true"),L=()=>{const w=Array.from(b.querySelectorAll(p)).filter(A=>A.closest("[data-list-overlay]")===b&&!g(A));w.length!==D.length||w.some((A,z)=>A!==D[z])?(D.forEach((A,z)=>R.registerItem(z,null)),D=w,D.forEach((A,z)=>R.registerItem(z,A))):R.measure();const P=D.flatMap((A,z)=>c(A)?[z]:[]);if((P.length!==n(i).length||P.some((A,z)=>A!==n(i)[z]))&&k(i,P,!0),t()===void 0){const A=D.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&R.setActiveIndex(A)}},I=new MutationObserver(w=>{w.some(P=>P.type==="attributes"||[...P.addedNodes,...P.removedNodes].some(G))&&L()});I.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 y=()=>{const w=D.indexOf(document.activeElement);k(v,w>=0?w:null,!0)},E=()=>{k(m,!1),k(_,!0),y(),Ct().then(()=>{n(_)&&y()})},B=()=>{k(_,!1)},f=()=>{k(m,!1),k(_,!0),y()},V=w=>{const P=w.target instanceof Element?w.target.closest(p):null,A=D.indexOf(P);w.button!==0||A<0||(k(_,!1),k(m,!0),R.setActiveIndex(A))},W=()=>{k(m,!1)},F=w=>{const P=D.indexOf(w.target);k(v,P>=0?P:null,!0),P>=0&&R.setActiveIndex(P)};return b.addEventListener("keydown",E,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",f),b.addEventListener("pointerdown",V),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Ct().then(L),()=>{I.disconnect(),b.removeEventListener("keydown",E,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",f),b.removeEventListener("pointerdown",V),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),R.destroy(),k(o,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),l()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),l()},$set:re,$on:(b,R)=>ne(e,b,R)},O=Po(),C=X(O);{var N=b=>{{let R=x(()=>n(m)?n(i).includes(n(o).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");jn(b,{get store(){return n(o)},get selectedIndexes(){return n(i)},get hoverClass(){return n(R)}})}};Q(C,b=>{n(o)&&b(N)})}return Z(O),Yn(O,b=>k(s,b),()=>n(s)),Et(()=>vr(O,"data-active-index",n(o)?.activeIndex??void 0)),S(d,O),se(T)}const Vr=8;function Zo(d,e,t=24){if(!d)return!0;const r=d.getBoundingClientRect(),s=e+t+Vr;return r.left>=s||d.ownerDocument.documentElement.clientWidth-r.right>=s}var So=$("<div><!> <!></div>"),ko=$("<div><!></div>"),Oo=$("<div><div><!></div></div>");function Dr(d,e){if(new.target)return te({component:Dr,...d});oe(e,!0);const t=y=>{var E=q(),B=K(E);{const f=(V,W)=>{let F=()=>(W?.()).props;var w=So();ee(w,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var P=X(w);Lr(P,{});var A=ct(P,2);j(A,()=>T()??ae),Z(w),S(V,w)};pe(B,()=>Ar,(V,W)=>{W(V,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:f,$$slots:{child:!0}})})}S(y,E)},r=(y,E)=>{let B=()=>(E?.()).props;const f=x(()=>D(B()));var V=ko();ee(V,()=>({...n(f),...v()?{id:v()}:{}}));var W=X(V);t(W),Z(V),Jt(V,F=>i?.(F)),S(y,V)},s=(y,E)=>{let B=()=>(E?.()).props,f=()=>(E?.()).wrapperProps;const V=x(()=>D(B()));var W=Oo();ee(W,()=>({...f(),...v()?{id:v()}:{}}));var F=X(W);ee(F,()=>({...n(V)}));var w=X(F);t(w),Z(F),Jt(F,P=>i?.(P)),Z(W),S(y,W)},o=rn(),i=nn();let v=a(e,"wrapperId",7),_=a(e,"class",7,""),m=a(e,"wrapperClass",7,""),u=a(e,"dropUp",7,!1),p=a(e,"portal",7),T=a(e,"children",7);const O=x(()=>u()||p()===!0),C=Jn(),N=Xn(Zn()+2);$n(N);const b=At("canonical-select");async function R(){const y=document.getElementById(b.triggerId);await Ct(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function D(y){const{role:E,tabindex:B,...f}=y;return f}var G={get wrapperId(){return v()},set wrapperId(y){v(y),l()},get class(){return _()},set class(y=""){_(y),l()},get wrapperClass(){return m()},set wrapperClass(y=""){m(y),l()},get dropUp(){return u()},set dropUp(y=!1){u(y),l()},get portal(){return p()},set portal(y){p(y),l()},get children(){return T()},set children(y){T(y),l()},$set:re,$on:(y,E)=>ne(e,y,E)},g=q(),c=K(g);{var L=y=>{var E=q(),B=K(E);{let f=x(()=>xe(Xt(),"w-full max-h-60",_()));pe(B,()=>Sr,(V,W)=>{W(V,{preventScroll:!1,onEscapeKeydown:R,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return N},get class(){return n(f)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}S(y,E)},I=y=>{const E=x(()=>p()===void 0&&!u()?C():void 0);var B=q(),f=K(B);{let V=x(()=>!n(O)&&!n(E)),W=x(()=>n(E)??o?.target());pe(f,()=>Bn,(F,w)=>{w(F,{get disabled(){return n(V)},get to(){return n(W)},children:(P,A)=>{var z=q(),ie=K(z);{let Oe=x(()=>n(E)?"absolute":"fixed"),wt=x(()=>n(E)!==void 0),Ae=x(()=>u()?"top":"bottom"),Br=x(()=>xe(Xt(),"w-(--bits-select-anchor-width) max-h-60",_()));pe(ie,()=>Pr,(Wr,Ur)=>{Ur(Wr,{get strategy(){return n(Oe)},get hideWhenDetached(){return n(wt)},onEscapeKeydown:R,"data-slot":"select-content",get"data-surface-level"(){return N},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Vr},get class(){return n(Br)},style:"max-width: calc(100vw - var(--space-4));",get child(){return s}})})}S(P,z)},$$slots:{default:!0}})})}S(y,B)};Q(c,y=>{b.staticPosition?y(L):y(I,-1)})}return S(d,g),se(G)}var Ao=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Eo=$('<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>'),To=$("<span><!></span>");function Fr(d,e){if(new.target)return te({component:Fr,...d});oe(e,!0);let t=a(e,"state",7),r=a(e,"class",7),s=a(e,"data-slot",7),o=be(e,Ao);var i={get state(){return t()},set state(p){t(p),l()},get class(){return r()},set class(p){r(p),l()},get"data-slot"(){return s()},set"data-slot"(p){s(p),l()},$set:re,$on:(p,T)=>ne(e,p,T)},v=q(),_=K(v);{var m=p=>{var T=Eo();ee(T,N=>({...o,"data-slot":s()??"menu-switch",class:N,"aria-hidden":"true"}),[()=>xe("ml-auto flex h-lh shrink-0 items-center",r())]);var O=X(T),C=sr(O);Z(T),Et(N=>{vr(O,"data-state",t()==="on"?"checked":"unchecked"),fr(C,1,N)},[()=>Wn(xe("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"))]),S(p,T)},u=p=>{var T=To();ee(T,N=>({...o,"data-slot":s()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:N,"aria-hidden":"true"}),[()=>xe(on,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=X(T);{var C=N=>{{let b=x(()=>t()==="mixed"?qn:t()==="submenu"?zn:Gn),R=x(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),D=x(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");mr(N,{get icon(){return n(b)},get size(){return n(R)},get class(){return n(D)}})}};Q(O,N=>{t()!=="empty"&&N(C)})}Z(T),S(p,T)};Q(_,p=>{t()==="on"||t()==="off"?p(m):p(u,-1)})}return S(d,v),se(i)}var Ho=$('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Kr(d,e){if(new.target)return te({component:Kr,...d});oe(e,!0);let t=a(e,"value",7),r=a(e,"label",7),s=a(e,"disabled",7,!1),o=a(e,"children",7),i=a(e,"class",7,"");var v={get value(){return t()},set value(u){t(u),l()},get label(){return r()},set label(u){r(u),l()},get disabled(){return s()},set disabled(u=!1){s(u),l()},get children(){return o()},set children(u){o(u),l()},get class(){return i()},set class(u=""){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);{const u=(C,N)=>{let b=()=>(N?.()).selected;var R=Ho(),D=K(R),G=X(D);j(G,()=>o()??ae),Z(D);var g=ct(D,2);{let c=x(()=>b()?"checked":"empty");Fr(g,{get state(){return n(c)},"data-slot":"select-item-check"})}S(C,R)};let p=x(()=>r()??t()),T=x(()=>s()||void 0),O=x(()=>xe(Qn(),i()));pe(m,()=>Or,(C,N)=>{N(C,{get value(){return t()},get label(){return n(p)},get disabled(){return s()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:u,$$slots:{default:!0}})})}return S(d,_),se(v)}const $o={Root:Hr,Trigger:Mr,Value:Rr,Content:Dr,Item:Kr},Mo=(d,e)=>{let t,r;const s=()=>{t||(t=eo(()=>{t=void 0;const v=d.checkVisibility?.()??!0,_=v?d.clientWidth:0,m=v?d.clientHeight:0,u=_>0&&m>0&&(d.scrollWidth>_||d.scrollHeight>m);r?.(),r=to(()=>{r=void 0,e(u)})}))},o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),i=new MutationObserver(s);return o?.observe(d),i.observe(d,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",s),s(),{update(v){e=v,s()},destroy(){t?.(),r?.(),o?.disconnect(),i.disconnect(),document.fonts?.removeEventListener("loadingdone",s)}}},es=(d,e)=>{let t=e;const r=o=>{t&&(o||t.trim()!==d.textContent?.trim())?d.title=t:d.removeAttribute("title")},s=Mo(d,r);return{update(o){t=o,s?.update?.(r)},destroy(){s?.destroy?.(),d.removeAttribute("title")}}};export{Ir as F,yr as H,Fr as M,Vr as O,$o as S,Lr as a,rr as b,tr as c,er as d,ho as e,Pr as f,Sr as g,gt as h,Or as i,Ar as j,Zo as k,Mo as o,es as t};
|
|
1
|
+
var qr=Object.defineProperty;var Yt=d=>{throw TypeError(d)};var zr=(d,e,t)=>e in d?qr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var M=(d,e,t)=>zr(d,typeof e!="symbol"?e+"":e,t),xt=(d,e,t)=>e.has(d)||Yt("Cannot "+t);var h=(d,e,t)=>(xt(d,e,"read from private field"),t?t.call(d):e.get(d)),H=(d,e,t)=>e.has(d)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),Ie=(d,e,t,r)=>(xt(d,e,"write to private field"),r?r.call(d,t):e.set(d,t),t),Pe=(d,e,t)=>(xt(d,e,"access private method"),t);import{t as te,bo as a,bw as re,b as ne,bp as be,br as _e,bm as jt}from"./BkULGdgB.js";import{c9 as x,aD as n,bs as oe,a7 as q,ay as K,W as S,bn as se,aA as l,aB as $,bH as k,bV as Y,bi as Gr,ca as ve,cb as Yr,bf as ae,bo as ke,a5 as X,bA as Z,bS as ct,bI as jr,aG as At,c5 as Jr,bl as sr,b_ as Et,bO as Qr,br as Xr,bk as Zr,c0 as Ct}from"./DYhIMPy1.js";import{s as j}from"./DdvXzOsp.js";import{c as pe}from"./dqNuna_B.js";import{e as $r,s as en,g as tn,i as rn,f as nn,b as on}from"./ClwnVDeP.js";import{i as Q}from"./CVqc5kFv.js";import{g as sn,e as Jt}from"./jKsiRjTE.js";import{aY as an,aQ as de,au as ln,aI as dn,h as Tt,an as Ce,D as yt,i as un,d as le,a as fe,l as pt,a6 as _t,ac as ft,_ as Ht,J as Mt,Z as Rt,E as Lt,aR as ir,aW as ar,aC as lr,ap as dr,aq as Vt,aF as Dt,ar as ur,a$ as me,aN as hn,aU as cn,aH as gn,aG as pn,at as Qt,am as hr,a2 as fn,av as U,ay as vn,m as cr,b as mn,c as bn,a4 as yn,C as wn,g as xn,A as _n,M as Cn,F as Nn,r as In,s as Pn,t as Sn,u as kn,v as On,w as An,x as En,y as Tn,o as Hn,p as Mn,q as Rn,B as Ln,z as Vn,az as ue,aS as J,a0 as gr,$ as pr,aV as Dn,H as Fn,f as Kn,a1 as Bn}from"./DbyXkQ-A.js";import{b as ee,e as xe,f as fr,s as vr,c as Wn}from"./BkQ2g3_N.js";import{F as mr,at as Un,bW as qn,av as zn,ar as Gn}from"./DcwBt__E.js";import"./CjRRnXFa.js";import{b as Yn}from"./BaIAhI85.js";import{P as jn,u as Jn,b as Xt,a as Qn}from"./B491IXH3.js";import{c as Xn,u as Zn,s as $n}from"./DfxQWSVU.js";import"./Dewa-xFN.js";import{s as eo,a as to}from"./BsieX9dN.js";const br={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%)"};an(br);var Ee,mt;class ro{constructor(e,t){H(this,Ee,()=>{});H(this,mt,x(()=>h(this,Ee).call(this)));let r;t!==void 0&&(r=t),Ie(this,Ee,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,mt))}}Ee=new WeakMap,mt=new WeakMap;var no=new Set(["$$slots","$$events","$$legacy","value"]),Zt=$("<input/>");function yr(d,e){if(new.target)return te({component:yr,...d});oe(e,!0);let t=a(e,"value",15),r=be(e,no);const s=x(()=>de(r,{"aria-hidden":"true",tabindex:-1,style:{...br,position:"absolute",top:"0",left:"0"}}));var o={get value(){return t()},set value(u){t(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},i=q(),v=K(i);{var _=u=>{var p=Zt();ee(p,()=>({...n(s),value:t()}),void 0,void 0,void 0,void 0,!0),S(u,p)},m=u=>{var p=Zt();ee(p,()=>({...n(s)}),void 0,void 0,void 0,void 0,!0),$r(p,t),S(u,p)};Q(v,u=>{n(s).type==="checkbox"?u(_):u(m,-1)})}return S(d,i),se(o)}var ce,ye,ge;class oo{constructor(e){H(this,ce);H(this,ye,x(()=>h(this,ce).candidateValues()));H(this,ge);Ie(this,ce,e),Ie(this,ge,ln("",{afterMs:1e3,getWindow:h(this,ce).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ce).enabled()||!n(h(this,ye)).length)return;h(this,ge).current=h(this,ge).current+e;const t=h(this,ce).getCurrentItem(),r=n(h(this,ye)).find(v=>v===t)??"",s=n(h(this,ye)).map(v=>v??""),o=dn(s,h(this,ge).current,r),i=n(h(this,ye)).find(v=>v===o);return i&&h(this,ce).onMatch(i),i}resetTypeahead(){h(this,ge).current=""}}ce=new WeakMap,ye=new WeakMap,ge=new WeakMap;const $t=[mn,cr,bn,yn,wn,xn,_n,Cn,pt,Nn,In,Pn,Sn,kn,On,An,En,Tn,Hn,Mn,Rn],so=[fe,Ht,Mt],io=[le,Rt,Lt],wr=[...so,...io],ao=vn({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ne=new Tt("Select.Root | Combobox.Root"),xr=new Tt("Select.Group | Combobox.Group"),_r=new Tt("Select.Content | Combobox.Content");var Te,He,Me,Re,Le,Ve,De,Fe,Ke,Be,We,Ue;class Cr{constructor(e){M(this,"opts");H(this,Te,Y(!1));H(this,He,Y(null));H(this,Me,Y(null));M(this,"contentPresence");H(this,Re,Y(null));H(this,Le,Y(null));H(this,Ve,Y(null));H(this,De,Y(""));H(this,Fe,Y(null));H(this,Ke,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,Be,x(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,We,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ue,Y(!1));M(this,"isUsingKeyboard",!1);M(this,"isCombobox",!1);M(this,"domContext",new yt(()=>null));M(this,"getBitsAttr",e=>ao.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new fn({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Yr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Te))}set touchedInput(e){k(h(this,Te),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){k(h(this,He),e,!0)}get contentNode(){return n(h(this,Me))}set contentNode(e){k(h(this,Me),e,!0)}get viewportNode(){return n(h(this,Re))}set viewportNode(e){k(h(this,Re),e,!0)}get triggerNode(){return n(h(this,Le))}set triggerNode(e){k(h(this,Le),e,!0)}get valueNode(){return n(h(this,Ve))}set valueNode(e){k(h(this,Ve),e,!0)}get valueId(){return n(h(this,De))}set valueId(e){k(h(this,De),e,!0)}get highlightedNode(){return n(h(this,Fe))}set highlightedNode(e){k(h(this,Fe),e,!0)}get highlightedValue(){return n(h(this,Ke))}set highlightedValue(e){k(h(this,Ke),e)}get highlightedId(){return n(h(this,Be))}set highlightedId(e){k(h(this,Be),e)}get highlightedLabel(){return n(h(this,We))}set highlightedLabel(e){k(h(this,We),e)}get contentIsPositioned(){return n(h(this,Ue))}set contentIsPositioned(e){k(h(this,Ue),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(s=>{if(!this.viewportNode)return!1;const o=s.getBoundingClientRect();return o.right<=r.right&&o.left>=r.left&&o.bottom<=r.bottom&&o.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(s=>s.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const s=r.getAttribute("data-label");return s!==null&&s!==""?s: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()}}Te=new WeakMap,He=new WeakMap,Me=new WeakMap,Re=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;var qe,ze,Ge,Ye;class lo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!1);H(this,qe,x(()=>this.opts.value.current!==""));H(this,ze,x(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Ge,x(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Ye,x(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,qe))}set hasValue(t){k(h(this,qe),t)}get currentLabel(){return n(h(this,ze))}set currentLabel(t){k(h(this,ze),t)}get candidateLabels(){return n(h(this,Ge))}set candidateLabels(t){k(h(this,Ge),t)}get dataTypeaheadEnabled(){return n(h(this,Ye))}set dataTypeaheadEnabled(t){k(h(this,Ye),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const s=this.includesItem(t)?"":t;this.opts.value.current=s,s!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){hr(()=>{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)}})}}qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Ye=new WeakMap;var je;class uo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!0);H(this,je,x(()=>this.opts.value.current.length>0));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,je))}set hasValue(t){k(h(this,je),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(s=>s!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){hr(()=>{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)}})}}je=new WeakMap;class ho{static create(e){const{type:t,...r}=e,s=t==="single"?new lo(r):new uo(r);return Ne.set(s)}}var Je;const Ft=class Ft{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Je,x(()=>({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":ur(this.root.opts.open.current),"data-state":Dt(this.root.opts.open.current),"data-disabled":Vt(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=Ce(e.ref,r=>this.root.inputNode=r),this.root.domContext=new yt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),me([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,s],[o])=>{s&&(Array.isArray(r)&&Array.isArray(o)?r.length===0&&o.length!==0&&(this.root.opts.inputValue.current=""):r===""&&o!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new Ft(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==cr){if((e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if($t.includes(e.key)||e.key===ft||e.key===Ln&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===fe){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===ft){this.root.handleClose();return}if(e.key===pt&&!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(),wr.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,s=r?t.indexOf(r):-1,o=this.root.opts.loop.current;let i;if(e.key===fe?i=ir(t,s,o):e.key===le?i=ar(t,s,o):e.key===Rt?i=lr(t,s,10,o):e.key===Ht?i=dr(t,s,10,o):e.key===Mt?i=t[0]:e.key===Lt&&(i=t[t.length-1]),!i)return;this.root.setHighlightedNode(i);return}$t.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,Je))}set props(e){k(h(this,Je),e)}};Je=new WeakMap;let er=Ft;var we,Se,he,Nr,It,Pt,Qe;const Kt=class Kt{constructor(e,t){H(this,he);M(this,"opts");M(this,"root");M(this,"attachment");H(this,we);H(this,Se);H(this,Qe,x(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":ur(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dt(this.root.opts.open.current),"data-disabled":Vt(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=Ce(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new yt(e.ref),Ie(this,we,new un({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ie(this,Se,new oo({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(o=>o.label===r);s&&(this.root.opts.value.current=s.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 Kt(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===pt||e.key===_t||e.key===fe||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(e.key===fe){const v=i[0];this.root.setHighlightedNode(v)}else if(e.key===le){const v=i[i.length-1];this.root.setHighlightedNode(v)}return}if(e.key===ft){this.root.handleClose();return}if((e.key===pt||e.key===_t&&h(this,we).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Pt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const i=this.root.getCandidateNodes(),v=this.root.highlightedNode,_=v?i.indexOf(v):-1,m=this.root.opts.loop.current;let u;if(e.key===fe?u=ir(i,_,m):e.key===le?u=ar(i,_,m):e.key===Rt?u=lr(i,_,10,m):e.key===Ht?u=dr(i,_,10,m):e.key===Mt?u=i[0]:e.key===Lt&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,s=e.key===_t,o=this.root.getCandidateNodes();if(e.key!==ft){if(!t&&(r||s)){!h(this,we).handleTypeaheadSearch(e.key,o)&&s&&(e.preventDefault(),Pe(this,he,Pt).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,he,It).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,he,It).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};we=new WeakMap,Se=new WeakMap,he=new WeakSet,Nr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,we).resetTypeahead()},It=function(e){Pe(this,he,Nr).call(this)},Pt=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)},Qe=new WeakMap;let Nt=Kt;var Xe,bt,Ze,$e;const Bt=class Bt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Xe,Y(!1));M(this,"domContext");H(this,bt,x(()=>gn(this.root.isCombobox?"combobox":"select")));M(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()});M(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onOpenAutoFocus",e=>{e.preventDefault()});M(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,Ze,x(()=>({open:this.root.opts.open.current})));H(this,$e,x(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dt(this.root.opts.open.current),...pn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,bt))},onpointermove:this.onpointermove,...this.attachment})));M(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=Ce(e.ref,r=>this.root.contentNode=r),this.domContext=new yt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),cn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),me(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),me([()=>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 _r.set(new Bt(e,Ne.get()))}get isPositioned(){return n(h(this,Xe))}set isPositioned(e){k(h(this,Xe),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,Ze))}set snippetProps(e){k(h(this,Ze),e)}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};Xe=new WeakMap,bt=new WeakMap,Ze=new WeakMap,$e=new WeakMap;let vt=Bt;var et,tt,rt,nt,ot;const Wt=class Wt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,et,x(()=>this.root.includesItem(this.opts.value.current)));H(this,tt,x(()=>this.root.highlightedValue===this.opts.value.current));M(this,"prevHighlighted",new ro(()=>this.isHighlighted));H(this,rt,Y(!1));H(this,nt,x(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,ot,x(()=>({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":Vt(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=Ce(e.ref),me([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),me(()=>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 Wt(e,Ne.get())}get isSelected(){return n(h(this,et))}set isSelected(e){k(h(this,et),e)}get isHighlighted(){return n(h(this,tt))}set isHighlighted(e){k(h(this,tt),e)}get mounted(){return n(h(this,rt))}set mounted(e){k(h(this,rt),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,nt))}set snippetProps(e){k(h(this,nt),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!hn){Gr(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,ot))}set props(e){k(h(this,ot),e)}};et=new WeakMap,tt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=new WeakMap;let St=Wt;var st,it;const Ut=class Ut{constructor(e,t){M(this,"opts");M(this,"root");H(this,st,Y(null));M(this,"attachment");H(this,it,x(()=>({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=Ce(e.ref)}static create(e){return xr.set(new Ut(e,Ne.get()))}get labelNode(){return n(h(this,st))}set labelNode(e){k(h(this,st),e,!0)}get props(){return n(h(this,it))}set props(e){k(h(this,it),e)}};st=new WeakMap,it=new WeakMap;let tr=Ut;var at;const qt=class qt{constructor(e,t){M(this,"opts");M(this,"group");M(this,"attachment");H(this,at,x(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ce(e.ref,r=>this.group.labelNode=r)}static create(e){return new qt(e,xr.get())}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};at=new WeakMap;let rr=qt;var lt,dt;const zt=class zt{constructor(e,t){M(this,"opts");M(this,"root");H(this,lt,x(()=>this.root.opts.name.current!==""));H(this,dt,x(()=>({disabled:Qt(this.root.opts.disabled.current),required:Qt(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,Ne.get())}get shouldRender(){return n(h(this,lt))}set shouldRender(e){k(h(this,lt),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let kt=zt;var ut,ht;const Gt=class Gt{constructor(e,t){M(this,"opts");M(this,"content");M(this,"root");M(this,"attachment");H(this,ut,Y(0));H(this,ht,x(()=>({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=Ce(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Gt(e,_r.get())}get prevScrollTop(){return n(h(this,ut))}set prevScrollTop(e){k(h(this,ut),e,!0)}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ut=new WeakMap,ht=new WeakMap;let Ot=Gt;function gt(d,e){if(new.target)return te({component:gt,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"autocomplete",7);const s=kt.create({value:U(()=>t())});var o={get value(){return t()},set value(m){t(m),l()},get autocomplete(){return r()},set autocomplete(m){r(m),l()},$set:re,$on:(m,u)=>ne(e,m,u)},i=q(),v=K(i);{var _=m=>{yr(m,_e(()=>s.props,{get autocomplete(){return r()},get value(){return t()},set value(u){t(u)}}))};Q(v,m=>{s.shouldRender&&m(_)})}return S(d,i),se(o)}function Ir(d,e){if(new.target)return te({component:Ir,...d});oe(e,!0);let t=a(e,"id",7),r=a(e,"children",7),s=a(e,"virtualEl",7),o=a(e,"ref",7),i=a(e,"tooltip",7,!1);Vn.create({id:U(()=>t()),virtualEl:U(()=>s()),ref:o()},i());var v={get id(){return t()},set id(u){t(u),l()},get children(){return r()},set children(u){r(u),l()},get virtualEl(){return s()},set virtualEl(u){s(u),l()},get ref(){return o()},set ref(u){o(u),l()},get tooltip(){return i()},set tooltip(u=!1){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);return j(m,()=>r()??ae),S(d,_),se(v)}var co=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),nr=$("<div><div><!></div></div>");function Pr(d,e){const t=ke();if(new.target)return te({component:Pr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"side",7,"bottom"),v=a(e,"onInteractOutside",7,J),_=a(e,"onEscapeKeydown",7,J),m=a(e,"children",7),u=a(e,"child",7),p=a(e,"preventScroll",7,!1),T=a(e,"style",7),O=be(e,co);const C=vt.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),onInteractOutside:U(()=>v()),onEscapeKeydown:U(()=>_())}),N=x(()=>de(O,C.props));var b={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get forceMount(){return o()},set forceMount(c=!1){o(c),l()},get side(){return i()},set side(c="bottom"){i(c),l()},get onInteractOutside(){return v()},set onInteractOutside(c=J){v(c),l()},get onEscapeKeydown(){return _()},set onEscapeKeydown(c=J){_(c),l()},get children(){return m()},set children(c){m(c),l()},get child(){return u()},set child(c){u(c),l()},get preventScroll(){return p()},set preventScroll(c=!1){p(c),l()},get style(){return T()},set style(c){T(c),l()},$set:re,$on:(c,L)=>ne(e,c,L)},R=q(),D=K(R);{var G=c=>{gr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get enabled(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var V=q(),W=K(V);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,V)},$$slots:{popper:!0}}))},g=c=>{pr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get open(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var V=q(),W=K(V);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,V)},$$slots:{popper:!0}}))};Q(D,c=>{o()?c(G):o()||c(g,1)})}return S(d,R),se(b)}var go=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),or=$("<div><!></div>");function Sr(d,e){const t=ke();if(new.target)return te({component:Sr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"onInteractOutside",7,J),v=a(e,"onEscapeKeydown",7,J),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"preventScroll",7,!1),p=a(e,"style",7),T=be(e,go);const O=vt.create({id:U(()=>r()),ref:U(()=>s(),g=>s(g)),onInteractOutside:U(()=>i()),onEscapeKeydown:U(()=>v())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(g=ue(t)){r(g),l()},get ref(){return s()},set ref(g=null){s(g),l()},get forceMount(){return o()},set forceMount(g=!1){o(g),l()},get onInteractOutside(){return i()},set onInteractOutside(g=J){i(g),l()},get onEscapeKeydown(){return v()},set onEscapeKeydown(g=J){v(g),l()},get children(){return _()},set children(g){_(g),l()},get child(){return m()},set child(g){m(g),l()},get preventScroll(){return u()},set preventScroll(g=!1){u(g),l()},get style(){return p()},set style(g){p(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},b=q(),R=K(b);{var D=g=>{gr(g,_e(()=>n(C),()=>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 u()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(L,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var V=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(V):F(W,-1)})}S(L,B)},$$slots:{popper:!0}}))},G=g=>{pr(g,_e(()=>n(C),()=>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 u()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(L,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var V=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(V):F(W,-1)})}S(L,B)},$$slots:{popper:!0}}))};Q(R,g=>{o()?g(D):o()||g(G,1)})}return S(d,b),se(N)}function kr(d,e){if(new.target)return te({component:kr,...d});oe(e,!0);let t=a(e,"mounted",15,!1),r=a(e,"onMountedChange",7,J);Dn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var s={get mounted(){return t()},set mounted(o=!1){t(o),l()},get onMountedChange(){return r()},set onMountedChange(o=J){r(o),l()},$set:re,$on:(o,i)=>ne(e,o,i)};return se(s)}var po=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),fo=$("<div><!></div>"),vo=$("<!> <!>",1);function Or(d,e){const t=ke();if(new.target)return te({component:Or,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"value",7),i=a(e,"label",23,o),v=a(e,"disabled",7,!1),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"onHighlight",7,J),p=a(e,"onUnhighlight",7,J),T=be(e,po);const O=St.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),value:U(()=>o()),disabled:U(()=>v()),label:U(()=>i()),onHighlight:U(()=>u()),onUnhighlight:U(()=>p())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get value(){return o()},set value(c){o(c),l()},get label(){return i()},set label(c=o){i(c),l()},get disabled(){return v()},set disabled(c=!1){v(c),l()},get children(){return _()},set children(c){_(c),l()},get child(){return m()},set child(c){m(c),l()},get onHighlight(){return u()},set onHighlight(c=J){u(c),l()},get onUnhighlight(){return p()},set onUnhighlight(c=J){p(c),l()},$set:re,$on:(c,L)=>ne(e,c,L)},b=vo(),R=K(b);{var D=c=>{var L=q(),I=K(L);{let y=x(()=>({props:n(C),...O.snippetProps}));j(I,m,()=>n(y))}S(c,L)},G=c=>{var L=fo();ee(L,()=>({...n(C)}));var I=X(L);j(I,()=>_()??ae,()=>O.snippetProps),Z(L),S(c,L)};Q(R,c=>{m()?c(D):c(G,-1)})}var g=ct(R,2);return kr(g,{get mounted(){return O.mounted},set mounted(c){O.mounted=c}}),S(d,b),se(N)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),bo=$("<div><!></div>");function Ar(d,e){const t=ke();if(new.target)return te({component:Ar,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"children",7),i=a(e,"child",7),v=be(e,mo);const _=Ot.create({id:U(()=>r()),ref:U(()=>s(),N=>s(N))}),m=x(()=>de(v,_.props));var u={get id(){return r()},set id(N=ue(t)){r(N),l()},get ref(){return s()},set ref(N=null){s(N),l()},get children(){return o()},set children(N){o(N),l()},get child(){return i()},set child(N){i(N),l()},$set:re,$on:(N,b)=>ne(e,N,b)},p=q(),T=K(p);{var O=N=>{var b=q(),R=K(b);j(R,i,()=>({props:n(m)})),S(N,b)},C=N=>{var b=bo();ee(b,()=>({...n(m)}));var R=X(b);j(R,()=>o()??ae),Z(b),S(N,b)};Q(T,N=>{i()?N(O):N(C,-1)})}return S(d,p),se(u)}var yo=$("<!> <!>",1);function Er(d,e){if(new.target)return te({component:Er,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"onValueChange",7,J),s=a(e,"name",7,""),o=a(e,"disabled",7,!1),i=a(e,"type",7),v=a(e,"open",15,!1),_=a(e,"onOpenChange",7,J),m=a(e,"onOpenChangeComplete",7,J),u=a(e,"loop",7,!1),p=a(e,"scrollAlignment",7,"nearest"),T=a(e,"required",7,!1),O=a(e,"items",23,()=>[]),C=a(e,"allowDeselect",7,!1),N=a(e,"autocomplete",7),b=a(e,"children",7);function R(){t()===void 0&&t(i()==="single"?"":[])}R(),me.pre(()=>t(),()=>{R()});let D=Y("");const G=ho.create({type:i(),value:U(()=>t(),f=>{t(f),r()(f)}),disabled:U(()=>o()),required:U(()=>T()),open:U(()=>v(),f=>{v(f),_()(f)}),loop:U(()=>u()),scrollAlignment:U(()=>p()),name:U(()=>s()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>C()),inputValue:U(()=>n(D),f=>k(D,f,!0)),onOpenChangeComplete:U(()=>m())});var g={get value(){return t()},set value(f){t(f),l()},get onValueChange(){return r()},set onValueChange(f=J){r(f),l()},get name(){return s()},set name(f=""){s(f),l()},get disabled(){return o()},set disabled(f=!1){o(f),l()},get type(){return i()},set type(f){i(f),l()},get open(){return v()},set open(f=!1){v(f),l()},get onOpenChange(){return _()},set onOpenChange(f=J){_(f),l()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(f=J){m(f),l()},get loop(){return u()},set loop(f=!1){u(f),l()},get scrollAlignment(){return p()},set scrollAlignment(f="nearest"){p(f),l()},get required(){return T()},set required(f=!1){T(f),l()},get items(){return O()},set items(f=[]){O(f),l()},get allowDeselect(){return C()},set allowDeselect(f=!1){C(f),l()},get autocomplete(){return N()},set autocomplete(f){N(f),l()},get children(){return b()},set children(f){b(f),l()},$set:re,$on:(f,V)=>ne(e,f,V)},c=yo(),L=K(c);Fn(L,{children:(f,V)=>{var W=q(),F=K(W);j(F,()=>b()??ae),S(f,W)},$$slots:{default:!0}});var I=ct(L,2);{var y=f=>{var V=q(),W=K(V);{var F=P=>{gt(P,{get autocomplete(){return N()}})},w=P=>{var A=q(),z=K(A);sn(z,16,()=>G.opts.value.current,ie=>ie,(ie,Oe)=>{gt(ie,{get value(){return Oe},get autocomplete(){return N()}})}),S(P,A)};Q(W,P=>{G.opts.value.current.length===0?P(F):P(w,-1)})}S(f,V)},E=x(()=>Array.isArray(G.opts.value.current)),B=f=>{gt(f,{get autocomplete(){return N()},get value(){return G.opts.value.current},set value(V){G.opts.value.current=V}})};Q(I,f=>{n(E)?f(y):f(B,-1)})}return S(d,c),se(g)}var wo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),xo=$("<button><!></button>");function Tr(d,e){const t=ke();if(new.target)return te({component:Tr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"child",7),i=a(e,"children",7),v=a(e,"type",7,"button"),_=be(e,wo);const m=Nt.create({id:U(()=>r()),ref:U(()=>s(),C=>s(C))}),u=x(()=>de(_,m.props,{type:v()}));var p={get id(){return r()},set id(C=ue(t)){r(C),l()},get ref(){return s()},set ref(C=null){s(C),l()},get child(){return o()},set child(C){o(C),l()},get children(){return i()},set children(C){i(C),l()},get type(){return v()},set type(C="button"){v(C),l()},$set:re,$on:(C,N)=>ne(e,C,N)},T=q(),O=K(T);return pe(O,()=>Ir,(C,N)=>{N(C,{get id(){return r()},get ref(){return m.opts.ref},children:(b,R)=>{var D=q(),G=K(D);{var g=L=>{var I=q(),y=K(I);j(y,o,()=>({props:n(u)})),S(L,I)},c=L=>{var I=xo();ee(I,()=>({...n(u)}));var y=X(I);j(y,()=>i()??ae),Z(I),S(L,I)};Q(G,L=>{o()?L(g):L(c,-1)})}S(b,D)},$$slots:{default:!0}})}),S(d,T),se(p)}var _o=$('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Hr(d,e){const t=ke();if(new.target)return te({component:Hr,...d});oe(e,!0);const r=`${t}-trigger`;let s=Y(r),o=a(e,"value",15,""),i=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),_=a(e,"disabled",7,!1),m=a(e,"invalid",7,!1),u=a(e,"required",7,!1),p=a(e,"name",7),T=a(e,"loop",7,!0),O=a(e,"onchange",7),C=a(e,"onopenchange",7),N=a(e,"children",7),b=a(e,"staticPosition",7,!1);en(()=>{i(!1),C()?.(!1)}),jr("canonical-select",{get triggerId(){return n(s)},registerTriggerId(g){k(s,g??r,!0)},listboxId:`${t}-listbox`,get value(){return o()},get displayValue(){return v().find(g=>g.value===o())?.label??o()},get invalid(){return m()},get open(){return i()},get staticPosition(){return b()},set open(g){i(g)}});var R={get value(){return o()},set value(g=""){o(g),l()},get open(){return i()},set open(g=!1){i(g),l()},get items(){return v()},set items(g=[]){v(g),l()},get disabled(){return _()},set disabled(g=!1){_(g),l()},get invalid(){return m()},set invalid(g=!1){m(g),l()},get required(){return u()},set required(g=!1){u(g),l()},get name(){return p()},set name(g){p(g),l()},get loop(){return T()},set loop(g=!0){T(g),l()},get onchange(){return O()},set onchange(g){O(g),l()},get onopenchange(){return C()},set onopenchange(g){C(g),l()},get children(){return N()},set children(g){N(g),l()},get staticPosition(){return b()},set staticPosition(g=!1){b(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},D=_o(),G=X(D);return pe(G,()=>Er,(g,c)=>{c(g,{type:"single",get items(){return v()},get disabled(){return _()},get required(){return u()},get name(){return p()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return C()},get value(){return o()},set value(L){o(L)},get open(){return i()},set open(L){i(L)},children:(L,I)=>{var y=q(),E=K(y);j(E,()=>N()??ae),S(L,y)},$$slots:{default:!0}})}),Z(D),S(d,D),se(R)}var Co=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),No=$("<!> <!>",1);function Mr(d,e){if(new.target)return te({component:Mr,...d});oe(e,!0);const t=(I,y)=>{let E=()=>(y?.()).props;const B=x(()=>G(E()));var f=q(),V=K(f);{var W=w=>{var P=q(),A=K(P);j(A,i,()=>({props:n(B)})),S(w,P)},F=w=>{Kn(w,_e(()=>n(B),{get variant(){return n(b)},get active(){return p.open},get class(){return n(R)},children:(P,A)=>{var z=No(),ie=K(z);j(ie,()=>o()??ae);var Oe=ct(ie,2);{var wt=Ae=>{mr(Ae,{get icon(){return Un},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};Q(Oe,Ae=>{r()==="default"&&Ae(wt)})}S(P,z)},$$slots:{default:!0}}))};Q(V,w=>{i()?w(W):w(F,-1)})}S(I,f)};let r=a(e,"variant",7,"default"),s=a(e,"class",7,""),o=a(e,"children",7),i=a(e,"child",7),v=a(e,"onclick",7),_=a(e,"id",7),m=a(e,"ref",15,null),u=be(e,Co);const p=At("canonical-select");Jr(()=>p.registerTriggerId(_())),ve(()=>p.registerTriggerId(_()));let T=Y(!1);ve(()=>{const I=p.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===I),!0)});const O=x(()=>!u["aria-label"]&&!u["aria-labelledby"]&&!n(T));let C=Y(void 0);ve(()=>{const I=m();if(!n(O)||!I){k(C,void 0);return}const y=()=>{k(C,I.textContent?.trim()||void 0,!0)};y();const E=new MutationObserver(y);return E.observe(I,{childList:!0,characterData:!0,subtree:!0}),()=>E.disconnect()});const N={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=x(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),R=x(()=>xe("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) font-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",N[r()],s()));function D(I){I.detail===0&&!p.open&&(p.open=!0),v()?.(I)}function G(I){const{"aria-activedescendant":y,"aria-label":E,...B}=I;return{...B,role:"combobox","aria-label":typeof E=="string"?E:n(C),"aria-activedescendant":p.open&&typeof y=="string"?y:void 0}}var g={get variant(){return r()},set variant(I="default"){r(I),l()},get class(){return s()},set class(I=""){s(I),l()},get children(){return o()},set children(I){o(I),l()},get child(){return i()},set child(I){i(I),l()},get onclick(){return v()},set onclick(I){v(I),l()},get id(){return _()},set id(I){_(I),l()},get ref(){return m()},set ref(I=null){m(I),l()},$set:re,$on:(I,y)=>ne(e,I,y)},c=q(),L=K(c);{let I=x(()=>p.open?p.listboxId:void 0),y=x(()=>p.invalid||void 0);pe(L,()=>Tr,(E,B)=>{B(E,_e(()=>u,{get id(){return p.triggerId},get"aria-controls"(){return n(I)},get class(){return n(R)},get"aria-invalid"(){return n(y)},onclick:D,get child(){return t},get ref(){return m()},set ref(f){m(f)}}))})}return S(d,c),se(g)}var Io=$("<span> </span>");function Rr(d,e){if(new.target)return te({component:Rr,...d});oe(e,!0);let t=a(e,"placeholder",23,()=>jt.ui_select_value_placeholder());const r=At("canonical-select");var s={get placeholder(){return t()},set placeholder(v=jt.ui_select_value_placeholder()){t(v),l()},$set:re,$on:(v,_)=>ne(e,v,_)},o=Io(),i=sr(o,!0);return Et(()=>{fr(o,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),Qr(i,r.displayValue||t())}),S(d,o),se(s)}var Po=$('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Lr(d,e){if(new.target)return te({component:Lr,...d});oe(e,!0);let t=a(e,"activeIndex",7),r=a(e,"onactiveindexchange",7),s=Y(null),o=Y(null),i=Y(Xr([])),v=Y(null),_=Y(!1),m=Y(!1),u;const p='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';ve(()=>{n(o)&&t()===void 0&&n(_)&&n(o).activeIndex!==n(v)&&n(o).setActiveIndex(n(v))}),ve(()=>{!n(o)||t()===void 0||n(o).pointerPosition||n(o).setActiveIndex(t())}),ve(()=>{if(!n(o)?.pointerPosition){u=void 0;return}n(o).activeIndex!==u&&(u=n(o).activeIndex,r()?.(n(o).activeIndex))}),Zr(()=>{const b=n(s)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const R=tn(b,{axis:"xy"});k(o,R);let D=[];const G=w=>w instanceof Element&&(w.matches(p)||w.querySelector(p)),g=w=>w.hasAttribute("data-disabled")||w.getAttribute("aria-disabled")==="true",c=w=>w.dataset.selectionAppearance!=="indicator"&&(w.hasAttribute("data-selected")||w.getAttribute("data-state")==="checked"||w.getAttribute("aria-selected")==="true"||w.getAttribute("aria-checked")==="true"),L=()=>{const w=Array.from(b.querySelectorAll(p)).filter(A=>A.closest("[data-list-overlay]")===b&&!g(A));w.length!==D.length||w.some((A,z)=>A!==D[z])?(D.forEach((A,z)=>R.registerItem(z,null)),D=w,D.forEach((A,z)=>R.registerItem(z,A))):R.measure();const P=D.flatMap((A,z)=>c(A)?[z]:[]);if((P.length!==n(i).length||P.some((A,z)=>A!==n(i)[z]))&&k(i,P,!0),t()===void 0){const A=D.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&R.setActiveIndex(A)}},I=new MutationObserver(w=>{w.some(P=>P.type==="attributes"||[...P.addedNodes,...P.removedNodes].some(G))&&L()});I.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 y=()=>{const w=D.indexOf(document.activeElement);k(v,w>=0?w:null,!0)},E=()=>{k(m,!1),k(_,!0),y(),Ct().then(()=>{n(_)&&y()})},B=()=>{k(_,!1)},f=()=>{k(m,!1),k(_,!0),y()},V=w=>{const P=w.target instanceof Element?w.target.closest(p):null,A=D.indexOf(P);w.button!==0||A<0||(k(_,!1),k(m,!0),R.setActiveIndex(A))},W=()=>{k(m,!1)},F=w=>{const P=D.indexOf(w.target);k(v,P>=0?P:null,!0),P>=0&&R.setActiveIndex(P)};return b.addEventListener("keydown",E,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",f),b.addEventListener("pointerdown",V),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Ct().then(L),()=>{I.disconnect(),b.removeEventListener("keydown",E,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",f),b.removeEventListener("pointerdown",V),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),R.destroy(),k(o,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),l()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),l()},$set:re,$on:(b,R)=>ne(e,b,R)},O=Po(),C=X(O);{var N=b=>{{let R=x(()=>n(m)?n(i).includes(n(o).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");jn(b,{get store(){return n(o)},get selectedIndexes(){return n(i)},get hoverClass(){return n(R)}})}};Q(C,b=>{n(o)&&b(N)})}return Z(O),Yn(O,b=>k(s,b),()=>n(s)),Et(()=>vr(O,"data-active-index",n(o)?.activeIndex??void 0)),S(d,O),se(T)}const Vr=8;function Zo(d,e,t=24){if(!d)return!0;const r=d.getBoundingClientRect(),s=e+t+Vr;return r.left>=s||d.ownerDocument.documentElement.clientWidth-r.right>=s}var So=$("<div><!> <!></div>"),ko=$("<div><!></div>"),Oo=$("<div><div><!></div></div>");function Dr(d,e){if(new.target)return te({component:Dr,...d});oe(e,!0);const t=y=>{var E=q(),B=K(E);{const f=(V,W)=>{let F=()=>(W?.()).props;var w=So();ee(w,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var P=X(w);Lr(P,{});var A=ct(P,2);j(A,()=>T()??ae),Z(w),S(V,w)};pe(B,()=>Ar,(V,W)=>{W(V,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:f,$$slots:{child:!0}})})}S(y,E)},r=(y,E)=>{let B=()=>(E?.()).props;const f=x(()=>D(B()));var V=ko();ee(V,()=>({...n(f),...v()?{id:v()}:{}}));var W=X(V);t(W),Z(V),Jt(V,F=>i?.(F)),S(y,V)},s=(y,E)=>{let B=()=>(E?.()).props,f=()=>(E?.()).wrapperProps;const V=x(()=>D(B()));var W=Oo();ee(W,()=>({...f(),...v()?{id:v()}:{}}));var F=X(W);ee(F,()=>({...n(V)}));var w=X(F);t(w),Z(F),Jt(F,P=>i?.(P)),Z(W),S(y,W)},o=rn(),i=nn();let v=a(e,"wrapperId",7),_=a(e,"class",7,""),m=a(e,"wrapperClass",7,""),u=a(e,"dropUp",7,!1),p=a(e,"portal",7),T=a(e,"children",7);const O=x(()=>u()||p()===!0),C=Jn(),N=Xn(Zn()+2);$n(N);const b=At("canonical-select");async function R(){const y=document.getElementById(b.triggerId);await Ct(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function D(y){const{role:E,tabindex:B,...f}=y;return f}var G={get wrapperId(){return v()},set wrapperId(y){v(y),l()},get class(){return _()},set class(y=""){_(y),l()},get wrapperClass(){return m()},set wrapperClass(y=""){m(y),l()},get dropUp(){return u()},set dropUp(y=!1){u(y),l()},get portal(){return p()},set portal(y){p(y),l()},get children(){return T()},set children(y){T(y),l()},$set:re,$on:(y,E)=>ne(e,y,E)},g=q(),c=K(g);{var L=y=>{var E=q(),B=K(E);{let f=x(()=>xe(Xt(),"w-full max-h-60",_()));pe(B,()=>Sr,(V,W)=>{W(V,{preventScroll:!1,onEscapeKeydown:R,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return N},get class(){return n(f)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}S(y,E)},I=y=>{const E=x(()=>p()===void 0&&!u()?C():void 0);var B=q(),f=K(B);{let V=x(()=>!n(O)&&!n(E)),W=x(()=>n(E)??o?.target());pe(f,()=>Bn,(F,w)=>{w(F,{get disabled(){return n(V)},get to(){return n(W)},children:(P,A)=>{var z=q(),ie=K(z);{let Oe=x(()=>n(E)?"absolute":"fixed"),wt=x(()=>n(E)!==void 0),Ae=x(()=>u()?"top":"bottom"),Br=x(()=>xe(Xt(),"w-(--bits-select-anchor-width) max-h-60",_()));pe(ie,()=>Pr,(Wr,Ur)=>{Ur(Wr,{get strategy(){return n(Oe)},get hideWhenDetached(){return n(wt)},onEscapeKeydown:R,"data-slot":"select-content",get"data-surface-level"(){return N},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Vr},get class(){return n(Br)},style:"max-width: calc(100vw - var(--space-4));",get child(){return s}})})}S(P,z)},$$slots:{default:!0}})})}S(y,B)};Q(c,y=>{b.staticPosition?y(L):y(I,-1)})}return S(d,g),se(G)}var Ao=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Eo=$('<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>'),To=$("<span><!></span>");function Fr(d,e){if(new.target)return te({component:Fr,...d});oe(e,!0);let t=a(e,"state",7),r=a(e,"class",7),s=a(e,"data-slot",7),o=be(e,Ao);var i={get state(){return t()},set state(p){t(p),l()},get class(){return r()},set class(p){r(p),l()},get"data-slot"(){return s()},set"data-slot"(p){s(p),l()},$set:re,$on:(p,T)=>ne(e,p,T)},v=q(),_=K(v);{var m=p=>{var T=Eo();ee(T,N=>({...o,"data-slot":s()??"menu-switch",class:N,"aria-hidden":"true"}),[()=>xe("ml-auto flex h-lh shrink-0 items-center",r())]);var O=X(T),C=sr(O);Z(T),Et(N=>{vr(O,"data-state",t()==="on"?"checked":"unchecked"),fr(C,1,N)},[()=>Wn(xe("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"))]),S(p,T)},u=p=>{var T=To();ee(T,N=>({...o,"data-slot":s()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:N,"aria-hidden":"true"}),[()=>xe(on,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=X(T);{var C=N=>{{let b=x(()=>t()==="mixed"?qn:t()==="submenu"?zn:Gn),R=x(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),D=x(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");mr(N,{get icon(){return n(b)},get size(){return n(R)},get class(){return n(D)}})}};Q(O,N=>{t()!=="empty"&&N(C)})}Z(T),S(p,T)};Q(_,p=>{t()==="on"||t()==="off"?p(m):p(u,-1)})}return S(d,v),se(i)}var Ho=$('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Kr(d,e){if(new.target)return te({component:Kr,...d});oe(e,!0);let t=a(e,"value",7),r=a(e,"label",7),s=a(e,"disabled",7,!1),o=a(e,"children",7),i=a(e,"class",7,"");var v={get value(){return t()},set value(u){t(u),l()},get label(){return r()},set label(u){r(u),l()},get disabled(){return s()},set disabled(u=!1){s(u),l()},get children(){return o()},set children(u){o(u),l()},get class(){return i()},set class(u=""){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);{const u=(C,N)=>{let b=()=>(N?.()).selected;var R=Ho(),D=K(R),G=X(D);j(G,()=>o()??ae),Z(D);var g=ct(D,2);{let c=x(()=>b()?"checked":"empty");Fr(g,{get state(){return n(c)},"data-slot":"select-item-check"})}S(C,R)};let p=x(()=>r()??t()),T=x(()=>s()||void 0),O=x(()=>xe(Qn(),i()));pe(m,()=>Or,(C,N)=>{N(C,{get value(){return t()},get label(){return n(p)},get disabled(){return s()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:u,$$slots:{default:!0}})})}return S(d,_),se(v)}const $o={Root:Hr,Trigger:Mr,Value:Rr,Content:Dr,Item:Kr},Mo=(d,e)=>{let t,r;const s=()=>{t||(t=eo(()=>{t=void 0;const v=d.checkVisibility?.()??!0,_=v?d.clientWidth:0,m=v?d.clientHeight:0,u=_>0&&m>0&&(d.scrollWidth>_||d.scrollHeight>m);r?.(),r=to(()=>{r=void 0,e(u)})}))},o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),i=new MutationObserver(s);return o?.observe(d),i.observe(d,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",s),s(),{update(v){e=v,s()},destroy(){t?.(),r?.(),o?.disconnect(),i.disconnect(),document.fonts?.removeEventListener("loadingdone",s)}}},es=(d,e)=>{let t=e;const r=o=>{t&&(o||t.trim()!==d.textContent?.trim())?d.title=t:d.removeAttribute("title")},s=Mo(d,r);return{update(o){t=o,s?.update?.(r)},destroy(){s?.destroy?.(),d.removeAttribute("title")}}};export{Ir as F,yr as H,Fr as M,Vr as O,$o as S,Lr as a,rr as b,tr as c,er as d,ho as e,Pr as f,Sr as g,gt as h,Or as i,Ar as j,Zo as k,Mo as o,es as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Oe=Object.defineProperty;var ve=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ve("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,bw as ue,b as de,br as De,bo as i,bp as Re}from"./BkULGdgB.js";import{ao as N,aZ as He,aL as Je,bh as je,c9 as m,aD as b,bH as w,bs as ce,a7 as le,ay as ee,W as R,bn as he,bo as Ge,bS as Ve,aA as o,a5 as Se,bf as We,bA as Pe,aB as Le,b_ as Qe,aC as fe}from"./DYhIMPy1.js";import{i as ge}from"./CVqc5kFv.js";import{c as Ue}from"./dqNuna_B.js";import{b as Ze,f as Fe,e as Ke}from"./BkQ2g3_N.js";import{H as Xe}from"./
|
|
1
|
+
var Oe=Object.defineProperty;var ve=t=>{throw TypeError(t)};var Be=(t,e,s)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var O=(t,e,s)=>Be(t,typeof e!="symbol"?e+"":e,s),ye=(t,e,s)=>e.has(t)||ve("Cannot "+s);var l=(t,e,s)=>(ye(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);var Y=(t,e,s)=>(ye(t,e,"access private method"),s);import{t as oe,bw as ue,b as de,br as De,bo as i,bp as Re}from"./BkULGdgB.js";import{ao as N,aZ as He,aL as Je,bh as je,c9 as m,aD as b,bH as w,bs as ce,a7 as le,ay as ee,W as R,bn as he,bo as Ge,bS as Ve,aA as o,a5 as Se,bf as We,bA as Pe,aB as Le,b_ as Qe,aC as fe}from"./DYhIMPy1.js";import{i as ge}from"./CVqc5kFv.js";import{c as Ue}from"./dqNuna_B.js";import{b as Ze,f as Fe,e as Ke}from"./BkQ2g3_N.js";import{H as Xe}from"./DqP39woS.js";import{s as Ce}from"./DdvXzOsp.js";import{h as Ie,an as Ye,a$ as se,l as $e,a6 as et,aq as _e,ar as we,aD as tt,aM as rt,ay as nt,az as xe,av as C,aQ as st}from"./DbyXkQ-A.js";import"./BWYr8u9e.js";import{i as at}from"./BeP4UORy.js";var it="font-weight: bold",ot="font-weight: normal";function qe(t){N?console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
2
2
|
%c${t?`The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
3
3
|
|
|
4
4
|
${t}`:"Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as He,bo as v,bm as d,bw as je,b as Ze,br as or,bs as _t,bq as Ur}from"./BkULGdgB.js";import{bs as Xe,ay as X,be as ut,b$ as nt,b_ as q,bO as J,W as y,bS as m,aD as e,a7 as ht,bl as xe,bn as Je,c9 as c,aA as p,aB as re,ca as Le,c0 as pt,bH as s,a5 as oe,bA as ne,bV as W,br as Ct,bk as Ar,bj as Br,bf as Lo,bo as Nr,c5 as kt,aw as Jt,bz as Fo,cd as qt}from"./DYhIMPy1.js";import{i as be}from"./CVqc5kFv.js";import{c as Q}from"./dqNuna_B.js";import{g as yr,i as Ro,I as So,e as It}from"./jKsiRjTE.js";import{f as Lt,s as Me,g as To}from"./BkQ2g3_N.js";import{b as wt}from"./BaIAhI85.js";import{d as xr}from"./
|
|
1
|
+
import{t as He,bo as v,bm as d,bw as je,b as Ze,br as or,bs as _t,bq as Ur}from"./BkULGdgB.js";import{bs as Xe,ay as X,be as ut,b$ as nt,b_ as q,bO as J,W as y,bS as m,aD as e,a7 as ht,bl as xe,bn as Je,c9 as c,aA as p,aB as re,ca as Le,c0 as pt,bH as s,a5 as oe,bA as ne,bV as W,br as Ct,bk as Ar,bj as Br,bf as Lo,bo as Nr,c5 as kt,aw as Jt,bz as Fo,cd as qt}from"./DYhIMPy1.js";import{i as be}from"./CVqc5kFv.js";import{c as Q}from"./dqNuna_B.js";import{g as yr,i as Ro,I as So,e as It}from"./jKsiRjTE.js";import{f as Lt,s as Me,g as To}from"./BkQ2g3_N.js";import{b as wt}from"./BaIAhI85.js";import{d as xr}from"./CV16Bucz.js";import{k as $o}from"./Cx2QERlx.js";import{c as nr}from"./ChTqQfQN.js";import{a as Uo}from"./CC7to1B5.js";import{f as Be}from"./DbyXkQ-A.js";import{F as Ao}from"./CjRRnXFa.js";import{k as st}from"./8KpVpm2n.js";import{s as Bo}from"./DdvXzOsp.js";import{cl as Or,F as _e,a5 as No,aW as Oo,ao as Mo,cG as Do,aJ as Ko,aX as Yt,Z as ar,$ as ir,a_ as Mr,at as Wo,az as Dr,cP as Vo,ce as Kr,bP as Wr,cj as zo}from"./DcwBt__E.js";import"./DEAMVhLT.js";import{IH as Pe,fO as Go,bu as qo,zr as Ho,yK as jo,KG as Cr,dL as Zo,bO as Xo,KF as Jo,us as Yo,KD as kr,gu as Qo,tP as en,KE as tn,Kj as Ir,KC as Er}from"./DZwGQbE8.js";import"./zqSn-6Mx.js";import{R as rn,k as Ht,l as dt,j as on,i as qe,p as Vr,h as zr,K as nn,m as an,o as sn,n as ln,M as Gr,d as dn}from"./ByONXdFP.js";import{a as qr,B as Et}from"./BvFAWM27.js";import{cu as un}from"./DnD4hxy7.js";import{ae as cn,G as fn}from"./BnnkDYnu.js";import{w as gn,K as vn}from"./qUWUBPqP.js";import{I as $t}from"./ClwnVDeP.js";import{d as pn}from"./DdafiALh.js";import{G as wn,I as bn}from"./BGikh8Vc.js";import{ac as mn}from"./BMyQIDAo.js";import{i as Qt}from"./CJ5wd9GV.js";import{i as _n,a as hn}from"./B8bo_smg.js";import{B as yn,s as xn,l as Cn,m as kn}from"./Dcvn1tie.js";import"./B491IXH3.js";import{t as Ke}from"./B7H9m8-p.js";import{M as Hr}from"./C9gg-9EN.js";import"./BhaFA6n_.js";import"./BTOuGvfD.js";import{b as In}from"./DyRs4I5x.js";import"./Dewa-xFN.js";import{o as Pr,s as lt,n as St}from"./CIyUrgF0.js";import{g as En}from"./DfN8_dcw.js";import{f as Pn}from"./DPirTM_u.js";import{ay as Ln,$ as Fn}from"./DQMWee-l.js";import{aO as Rn}from"./D4U_w4GT.js";function Sn(o,r){return o.loadURL(r)}function Tn(o){return{previousUrlProp:o||null}}function Lr(o,r){o.previousUrlProp=r}function $n(o,r,i){const b=i||r;return o.previousUrlProp===b?null:(o.previousUrlProp=b,b)}function Un(o,r,i){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:i.webviewReady?(o.previousUrlProp=r,i.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const jr=nr("TabBoundsReporter"),An=150;function jt(o,r,i){!(r>0)||!(i>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:i}).catch(b=>{jr.debug("Failed to report tab bounds",{tabId:o,error:b})})}function Fr(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{jr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Bn(o,r){let i=r,b;const x=typeof ResizeObserver>"u"?void 0:new ResizeObserver(C=>{if(!i)return;const h=C[C.length-1]?.contentRect;if(!h)return;const N=i;clearTimeout(b),b=setTimeout(()=>{jt(N,h.width,h.height)},An)});if(x?.observe(o),i){const C=o.getBoundingClientRect();jt(i,C.width,C.height)}return{update(C){if(C!==i&&(clearTimeout(b),i&&Fr(i),i=C,i)){const h=o.getBoundingClientRect();jt(i,h.width,h.height)}},destroy(){clearTimeout(b),x?.disconnect(),i&&Fr(i)}}}function Zr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function ot(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||Xr(o,r)}function Xr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const i=new URL(o);return qr.NAVIGATION_ALLOWED.includes(i.protocol)&&i.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Nn=`
|
|
2
2
|
(function() {
|
|
3
3
|
if (window.__augmentKeyboardInterceptorInstalled) return;
|
|
4
4
|
window.__augmentKeyboardInterceptorInstalled = true;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e,ay as s,aX as o,B as i}from"./
|
|
1
|
+
import{b as e,ay as s,aX as o,B as i}from"./D2P0fD42.js";import{p as g}from"./BGC1OvbZ.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},b={parser:p,db:m,renderer:f};export{b as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bo as M,bw as nr,b as rr,bs as dn,bq as So,bm as $e}from"./BkULGdgB.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./CVqc5kFv.js";import{f as un,g as pi,s as cn}from"./BkQ2g3_N.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bo as M,bw as nr,b as rr,bs as dn,bq as So,bm as $e}from"./BkULGdgB.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./CVqc5kFv.js";import{f as un,g as pi,s as cn}from"./BkQ2g3_N.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./C5zadSpA.js";import{g as Go,i as $o}from"./jKsiRjTE.js";import{F as vi,c5 as jo,bf as qo,au as Ko,at as Xo}from"./DcwBt__E.js";import{f as Di}from"./DbyXkQ-A.js";import"./CjRRnXFa.js";import{g as Yo}from"./BN5JMxvy.js";import{c as Qo}from"./DEAMVhLT.js";import{P as Jo}from"./BMyQIDAo.js";import{t as Sn}from"./B7H9m8-p.js";class Zo extends Eo{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,bo as m,bw as R,b as T,bm as y}from"./BkULGdgB.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{i as C}from"./CVqc5kFv.js";import{E as z}from"./
|
|
1
|
+
import{t as O,bo as m,bw as R,b as T,bm as y}from"./BkULGdgB.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./DYhIMPy1.js";import{i as C}from"./CVqc5kFv.js";import{E as z}from"./ByONXdFP.js";import"./BkQ2g3_N.js";import"./zqSn-6Mx.js";import"./CjRRnXFa.js";import{f as A}from"./DbyXkQ-A.js";import{F as et,a0 as at,bM as ot}from"./DcwBt__E.js";import"./DdvXzOsp.js";import{I as st}from"./jKsiRjTE.js";import{i as nt,b as rt}from"./DcGNquRL.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./BkULGdgB.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./DYhIMPy1.js";import{i as p}from"./CVqc5kFv.js";import{s as At}from"./DdvXzOsp.js";import"./BkQ2g3_N.js";import"./BhaFA6n_.js";import"./BTOuGvfD.js";import{D as ht}from"./
|
|
1
|
+
import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./BkULGdgB.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./DYhIMPy1.js";import{i as p}from"./CVqc5kFv.js";import{s as At}from"./DdvXzOsp.js";import"./BkQ2g3_N.js";import"./BhaFA6n_.js";import"./BTOuGvfD.js";import{D as ht}from"./DyRs4I5x.js";import{t as l}from"./B7H9m8-p.js";import"./CjRRnXFa.js";import"./Dewa-xFN.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});bt(e,!0);let b=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),E=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),I=n(e,"mode",7,"delete"),m=n(e,"activeAgentCount",7,0),d=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),K=n(e,"onConfirm",7),L=n(e,"onCancel",7);const Y=C(()=>m()>0||d()>0||c()>0||_()>0);function Z(){b(!1),L()?.()}async function $(){await K()?.(),b(!1)}var tt={get open(){return b()},set open(t=!1){b(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return E()},set body(t){E(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return I()},set mode(t="delete"){I(t),o()},get activeAgentCount(){return m()},set activeAgentCount(t=0){m(t),o()},get activeHookCount(){return d()},set activeHookCount(t=0){d(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return K()},set onConfirm(t){K(t),o()},get onCancel(){return L()},set onCancel(t){L(t),o()},$set:Ct,$on:(t,O)=>pt(e,t,O)};{const t=j=>{var q=Bt(),M=z(q);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};p(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_agentsStopped_one({count:l(m())}):a.modals_deleteWarning_agentsStopped_many({count:l(m())})]),u(r,i)};p(B,r=>{m()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(d())}):a.modals_deleteWarning_hooksCancelled_many({count:l(d())})]),u(r,i)};p(Q,r=>{d()>0&&r(ct)})}var U=A(Q,2);{var mt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};p(U,r=>{c()>0&&r(mt)})}var dt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};p(v,R=>{I()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};p(dt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};p(N,f=>{g(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>E()??xt),G(q),u(j,q)};let O=C(()=>!x()),et=C(()=>x()&&y()==="confirm"),nt=C(()=>!x()||y()==="cancel"),ot=C(()=>y()==="cancel"?"ignore":"submit"),rt=C(()=>y()==="cancel"?"ignore":"submit"),at=C(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return g(O)},get canSubmit(){return x()},get focusSubmit(){return g(et)},get focusCancel(){return g(nt)},get enterKey(){return g(ot)},get modEnter(){return g(rt)},get destructive(){return g(at)},onConfirm:$,onCancel:Z,get open(){return b()},set open(j){b(j)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bI as b,dd as _,dj as C,bC as P,aS as k}from"./
|
|
1
|
+
import{bI as b,dd as _,dj as C,bC as P,aS as k}from"./D4U_w4GT.js";import{c as v}from"./ChTqQfQN.js";import{bm as m}from"./BkULGdgB.js";import{IH as y}from"./DZwGQbE8.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 S(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),d=k.select(r,t).sort((s,a)=>{const p=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(p&&!u)return-1;if(!p&&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+d.length,foreground:l.length,background:d.length});const g=[...l,...d.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 p=s[a];p&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},p)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=C.select(n,t),d=P.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&&d.length>0&&d[0].files&&(s=d[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 p=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:p,panelCount:p.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"}},p[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{S as applyContentPreset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as b}from"./
|
|
1
|
+
import{z as b}from"./BGikh8Vc.js";const u=/^[A-Za-z0-9._:-]{1,128}$/,C="connections.manage",l="";class f extends Error{constructor(t,e){super(t),this.status=e,this.name="HostRequestError"}}function d(n){return typeof n=="string"&&n.startsWith("/")&&!n.startsWith("//")}function h(){const n=globalThis.__INTENT_RUNTIME_CONFIG__;if(!n)return null;const{backendId:t,connectionsUrl:e,eventsUrl:o,hostCapabilities:s}=n,r=Array.isArray(s)&&s.includes(C),a=t===null&&r;return!a&&(typeof t!="string"||!u.test(t))||!d(e)?null:{backendId:a?null:t,connectionsUrl:e,eventsUrl:d(o)?o:null,canManageConnections:r,tailcatAvailable:n.tailcatAvailable===!0}}function g(){return b()?null:h()}function E(){const n=g();return n?.canManageConnections?n:null}function w(n,t){const e=n.backendId??l;return{...t,activeId:t.activeId??l,windowBackendId:e}}async function H(n,t=fetch){const e=n.backendId===null?n.connectionsUrl:`${n.connectionsUrl}?backend=${encodeURIComponent(n.backendId)}`,o=await t(e,{credentials:"same-origin",cache:"no-store"});if(!o.ok)throw new f(`connections list failed: HTTP ${o.status}`,o.status);return w(n,await o.json())}function I(n,t=(s,r,a)=>globalThis.open?.(s,r,a),e=s=>globalThis.location?.assign(s),o=!1){if(!u.test(n))throw new Error(`invalid connection id: ${n}`);const s=`/?backend=${encodeURIComponent(n)}`;return o?e(s):t(s,"_blank","noopener"),{status:"opened",id:n}}function i(n,t,e){if(!u.test(t))throw new Error(`invalid connection id: ${t}`);return`${n.connectionsUrl}/${encodeURIComponent(t)}${e?`/${e}`:""}`}async function c(n,t,e,o){const s=await n(e,{method:t,credentials:"same-origin",cache:"no-store",...o===void 0?{}:{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}});if(!s.ok)throw new f(`connections request failed: HTTP ${s.status}`,s.status);return await s.json()}async function k(n,t,e=fetch){const o=await c(e,"POST",`${n.connectionsUrl}/capture-fingerprint`,{host:t.host,port:t.port,...t.token?{token:t.token}:{}});if(!o.ok)throw new Error(o.error??"fingerprint capture failed");return{fingerprint:o.fingerprint,tokenValid:o.tokenValid,...o.statusCode!==void 0?{statusCode:o.statusCode}:{}}}function y(n,t,e=fetch){const{syncExcluded:o,...s}=t;return c(e,"POST",n.connectionsUrl,s)}function A(n,t,e=fetch){const{id:o,syncExcluded:s,...r}=t;return c(e,"PATCH",i(n,o),r)}function _(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"test"),s)}function N(n,t,e=fetch){const{id:o,...s}=t;return c(e,"POST",i(n,o,"rotate-secret"),s)}function P(n,t,e=fetch){return c(e,"GET",i(n,t,"tunnel"))}function U(n,t,e=fetch){return c(e,"PUT",i(n,t.id,"tunnel"),{enabled:t.enabled})}async function $(n,t,e=fetch){return await c(e,"DELETE",i(n,t),{}),{id:t}}function T(n){return{manageConnections:n.canManageConnections,backendBound:n.backendId!==null,tailcatAvailable:n.tailcatAvailable}}function O(n){const t=g(),e=n?.connections;if(!t||e&&"browserHost"in e)return n;const o={...e,browserHost:T(t)};return{...n,connections:o}}export{f as H,y as a,w as b,k as c,$ as d,P as e,H as f,h as g,E as h,g as i,T as j,I as o,N as r,U as s,_ as t,A as u,O as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var qt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>qt(c,typeof e!="symbol"?e+"":e,n),Je=(c,e,n)=>e.has(c)||gt("Cannot "+n);var m=(c,e,n)=>(Je(c,e,"read from private field"),n?n.call(c):e.get(c)),T=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Je(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Je(c,e,"access private method"),n);import{t as te,bo as r,bw as re,b as se,bp as Ee,bm as ce,br as Ze}from"./BkULGdgB.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as A,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Wt,c5 as $,bI as Qt,aG as Xt}from"./DYhIMPy1.js";import{i as Y}from"./CVqc5kFv.js";import{s as H}from"./DdvXzOsp.js";import{c as pe}from"./dqNuna_B.js";import{h as Jt,aD as Yt,ar as Zt,an as _t,l as $t,a6 as er,at as tr,aq as pt,ay as rr,a3 as sr,az as Ve,aS as mt,a$ as nr,av as q,aQ as xt,a_ as ar,aa as ir,f as ht}from"./kwciY1c4.js";import{_ as Ct}from"./pPdnPxpA.js";import{O as or}from"./Bqbxbx0y.js";import{a as ur,D as lr}from"./D9xttWhI.js";import{b as at,e as be,s as wt,c as cr,f as dr}from"./BkQ2g3_N.js";import"./Dewa-xFN.js";import{e as gr,P as bt}from"./Q1qyd41K.js";import{b as fr}from"./BaIAhI85.js";import{i as mr}from"./CC7to1B5.js";import"./BhaFA6n_.js";import"./BTOuGvfD.js";import{g as hr}from"./C2llNKRj.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Jt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");T(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(m(this,xe))}set props(e){k(m(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);T(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(m(this,Ce))}set anyPressed(n){k(m(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);T(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(m(this,we))}set anyPressed(n){k(m(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,he,Ie,Pe;const it=class it{constructor(e,n){T(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");T(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));T(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));T(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));T(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));T(this,he,N(0));T(this,Ie,I(()=>({pressed:this.isPressed})));T(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(m(this,he)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(m(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(m(this,De)),"aria-checked":a(m(this,Oe)),disabled:tr(a(m(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(m(this,he),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(m(this,he),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(m(this,Se))}set isPressed(e){k(m(this,Se),e)}onclick(e){a(m(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(m(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(m(this,Ie))}set snippetProps(e){k(m(this,Ie),e)}get props(){return a(m(this,Pe))}set props(e){k(m(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(m(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},he=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,mt),y=r(e,"type",7),C=r(e,"disabled",7,!1),h=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:q(()=>i()),value:q(()=>g(),l=>{g(l),f()(l)}),disabled:q(()=>C()),loop:q(()=>h()),orientation:q(()=>w()),rovingFocus:q(()=>_()),type:y(),ref:q(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=mt){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return h()},set loop(l=!0){h(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=A(p);{var K=l=>{var E=V(),B=A(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),h=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:q(()=>C()),value:q(()=>f()),disabled:q(()=>y()??!1),ref:q(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:h()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return h()},set type(o="button"){h(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=A(x);{var z=o=>{var p=V(),L=A(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),h,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=mr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&h.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),h.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>h=o,()=>h),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},h=Pr(),w=de(h),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(h),_e(b=>{wt(h,"data-size",y),dr(h,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,h),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),h=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),W=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),Q=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Ae=N(null),Re=N(null),Ne=N(null);const J=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(J)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(J)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function At(u){const Z=l()??(W()?a(Re):B()?a(Ne):E()?a(Ae):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var Tt={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return h()},set footer(u){h(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return W()},set focusCancel(u=!1){W(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return Q()},set onCloseAutoFocus(u){Q(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=A(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Ar)=>{var ut=V(),Vt=A(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(J)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:At,get onCloseAutoFocus(){return Q()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Ae),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(J)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(J)&&M.preventDefault(),get ref(){return a(Ae)},set ref(M){k(Ae,M,!0)},children:(M,Tr)=>{Ft(M,{onSubmit:Bt,get busy(){return a(J)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=A(lt);{var Ht=me=>{var Ue=V(),ct=A(Ue);H(ct,h),F(me,Ue)},jt=me=>{Lt(me,{secondary:qe=>{var Te=V(),We=A(Te);{var Qe=le=>{ht(le,{variant:"ghost-light",get disabled(){return a(J)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(We,le=>{o()&&le(Qe)})}F(qe,Te)},primary:qe=>{{let Te=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),We=I(()=>a(J)||S()),Qe=I(()=>!v()||a(J)||S());ht(qe,{type:"submit",get variant(){return P()},get class(){return a(Te)},get loading(){return a(We)},get disabled(){return a(Qe)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,me=>{h()?me(Ht):me(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(Tt)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),h=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return h()},set busy(t=!1){h(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return h()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),W=A(B);{var D=G=>{var O=V(),ie=A(O);H(ie,C),F(G,O)};Y(W,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){T(this,R,N(Wt([])));T(this,ke);T(this,Fe);T(this,Le,N(null));T(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(m(this,Le))}set hover(e){k(m(this,Le),e,!0)}get keyboardIndex(){return a(m(this,ze))}set keyboardIndex(e){k(m(this,ze),e,!0)}get selectedIndexes(){const e=new Set(m(this,ke).call(this));return a(m(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(m(this,R)).indexOf(void 0);return i<0?a(m(this,R)).push(n)-1:(a(m(this,R))[i]=n,i)})}release(e){$(()=>{a(m(this,R))[e]&&(a(m(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(m(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(m(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=hr(e,{axis:m(this,Fe)});for(const[n,i]of a(m(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(m(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),h=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));Qt(Et,{state:x,get size(){return h()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return h()},set size(t="default"){h(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=A(o);{var L=t=>{var l=V(),E=A(l);{let B=I(()=>Array.isArray(i())?i():[]),W=I(()=>be(n({variant:C(),size:h()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var Q=vt(),X=A(Q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,Q)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=A(l);{let B=I(()=>typeof i()=="string"?i():""),W=I(()=>be(n({variant:C(),size:h()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var Q=vt(),X=A(Q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,Q)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),h=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return h()},set onclick(t){h(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=A(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return h()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,W)=>{var D=V(),G=A(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
|
|
1
|
+
var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var qt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>qt(c,typeof e!="symbol"?e+"":e,n),Je=(c,e,n)=>e.has(c)||gt("Cannot "+n);var m=(c,e,n)=>(Je(c,e,"read from private field"),n?n.call(c):e.get(c)),T=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Je(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Je(c,e,"access private method"),n);import{t as te,bo as r,bw as re,b as se,bp as Ee,bm as ce,br as Ze}from"./BkULGdgB.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as A,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Wt,c5 as $,bI as Qt,aG as Xt}from"./DYhIMPy1.js";import{i as Y}from"./CVqc5kFv.js";import{s as H}from"./DdvXzOsp.js";import{c as pe}from"./dqNuna_B.js";import{h as Jt,aD as Yt,ar as Zt,an as _t,l as $t,a6 as er,at as tr,aq as pt,ay as rr,a3 as sr,az as Ve,aS as mt,a$ as nr,av as q,aQ as xt,a_ as ar,aa as ir,f as ht}from"./DbyXkQ-A.js";import{_ as Ct}from"./CjRRnXFa.js";import{O as or}from"./jHHKOkW4.js";import{a as ur,D as lr}from"./D_gAF2kq.js";import{b as at,e as be,s as wt,c as cr,f as dr}from"./BkQ2g3_N.js";import"./Dewa-xFN.js";import{e as gr,P as bt}from"./B491IXH3.js";import{b as fr}from"./BaIAhI85.js";import{i as mr}from"./CC7to1B5.js";import"./BhaFA6n_.js";import"./BTOuGvfD.js";import{g as hr}from"./ClwnVDeP.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Jt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");T(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(m(this,xe))}set props(e){k(m(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);T(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(m(this,Ce))}set anyPressed(n){k(m(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);T(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(m(this,we))}set anyPressed(n){k(m(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,he,Ie,Pe;const it=class it{constructor(e,n){T(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");T(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));T(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));T(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));T(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));T(this,he,N(0));T(this,Ie,I(()=>({pressed:this.isPressed})));T(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(m(this,he)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(m(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(m(this,De)),"aria-checked":a(m(this,Oe)),disabled:tr(a(m(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(m(this,he),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(m(this,he),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(m(this,Se))}set isPressed(e){k(m(this,Se),e)}onclick(e){a(m(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(m(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(m(this,Ie))}set snippetProps(e){k(m(this,Ie),e)}get props(){return a(m(this,Pe))}set props(e){k(m(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(m(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},he=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,mt),y=r(e,"type",7),C=r(e,"disabled",7,!1),h=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:q(()=>i()),value:q(()=>g(),l=>{g(l),f()(l)}),disabled:q(()=>C()),loop:q(()=>h()),orientation:q(()=>w()),rovingFocus:q(()=>_()),type:y(),ref:q(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=mt){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return h()},set loop(l=!0){h(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=A(p);{var K=l=>{var E=V(),B=A(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),h=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:q(()=>C()),value:q(()=>f()),disabled:q(()=>y()??!1),ref:q(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:h()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return h()},set type(o="button"){h(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=A(x);{var z=o=>{var p=V(),L=A(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),h,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=mr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&h.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),h.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>h=o,()=>h),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},h=Pr(),w=de(h),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(h),_e(b=>{wt(h,"data-size",y),dr(h,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,h),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),h=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),W=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),Q=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Ae=N(null),Re=N(null),Ne=N(null);const J=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(J)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(J)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function At(u){const Z=l()??(W()?a(Re):B()?a(Ne):E()?a(Ae):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var Tt={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return h()},set footer(u){h(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return W()},set focusCancel(u=!1){W(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return Q()},set onCloseAutoFocus(u){Q(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=A(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Ar)=>{var ut=V(),Vt=A(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(J)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:At,get onCloseAutoFocus(){return Q()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Ae),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(J)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(J)&&M.preventDefault(),get ref(){return a(Ae)},set ref(M){k(Ae,M,!0)},children:(M,Tr)=>{Ft(M,{onSubmit:Bt,get busy(){return a(J)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=A(lt);{var Ht=me=>{var Ue=V(),ct=A(Ue);H(ct,h),F(me,Ue)},jt=me=>{Lt(me,{secondary:qe=>{var Te=V(),We=A(Te);{var Qe=le=>{ht(le,{variant:"ghost-light",get disabled(){return a(J)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(We,le=>{o()&&le(Qe)})}F(qe,Te)},primary:qe=>{{let Te=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),We=I(()=>a(J)||S()),Qe=I(()=>!v()||a(J)||S());ht(qe,{type:"submit",get variant(){return P()},get class(){return a(Te)},get loading(){return a(We)},get disabled(){return a(Qe)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,me=>{h()?me(Ht):me(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(Tt)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),h=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return h()},set busy(t=!1){h(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return h()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),W=A(B);{var D=G=>{var O=V(),ie=A(O);H(ie,C),F(G,O)};Y(W,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){T(this,R,N(Wt([])));T(this,ke);T(this,Fe);T(this,Le,N(null));T(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(m(this,Le))}set hover(e){k(m(this,Le),e,!0)}get keyboardIndex(){return a(m(this,ze))}set keyboardIndex(e){k(m(this,ze),e,!0)}get selectedIndexes(){const e=new Set(m(this,ke).call(this));return a(m(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(m(this,R)).indexOf(void 0);return i<0?a(m(this,R)).push(n)-1:(a(m(this,R))[i]=n,i)})}release(e){$(()=>{a(m(this,R))[e]&&(a(m(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(m(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(m(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=hr(e,{axis:m(this,Fe)});for(const[n,i]of a(m(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(m(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),h=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));Qt(Et,{state:x,get size(){return h()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return h()},set size(t="default"){h(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=A(o);{var L=t=>{var l=V(),E=A(l);{let B=I(()=>Array.isArray(i())?i():[]),W=I(()=>be(n({variant:C(),size:h()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var Q=vt(),X=A(Q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,Q)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=A(l);{let B=I(()=>typeof i()=="string"?i():""),W=I(()=>be(n({variant:C(),size:h()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var Q=vt(),X=A(Q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,Q)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),h=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return h()},set onclick(t){h(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=A(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return h()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,W)=>{var D=V(),G=A(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
|