@epic-web/workshop-app 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/_-Kbj-HAPY.js +2 -0
- package/build/client/assets/{_-C_7mS1-0.js.map → _-Kbj-HAPY.js.map} +1 -1
- package/build/client/assets/{_basePickBy-DkOIaPL8.js → _basePickBy-WG4U0WMd.js} +2 -2
- package/build/client/assets/{_basePickBy-DkOIaPL8.js.map → _basePickBy-WG4U0WMd.js.map} +1 -1
- package/build/client/assets/{_baseUniq-BAqp_AZM.js → _baseUniq--zdZg7WG.js} +2 -2
- package/build/client/assets/{_baseUniq-BAqp_AZM.js.map → _baseUniq--zdZg7WG.js.map} +1 -1
- package/build/client/assets/_exerciseNumber-MXWVsKzI.js +2 -0
- package/build/client/assets/{_exerciseNumber-CdGNKLia.js.map → _exerciseNumber-MXWVsKzI.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_._stepNumber-BfeokKD3.js +2 -0
- package/build/client/assets/{_exerciseNumber_._stepNumber-BNj079sn.js.map → _exerciseNumber_._stepNumber-BfeokKD3.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_.finished-Dr6lECMK.js +2 -0
- package/build/client/assets/{_exerciseNumber_.finished-Ce6wQJ7W.js.map → _exerciseNumber_.finished-Dr6lECMK.js.map} +1 -1
- package/build/client/assets/_layout-Bv8l5wO7.js +2 -0
- package/build/client/assets/{_layout-C-qRb0Ym.js.map → _layout-Bv8l5wO7.js.map} +1 -1
- package/build/client/assets/{_layout-Tp2XmIFb.js → _layout-ePpFHa-S.js} +3 -3
- package/build/client/assets/{_layout-Tp2XmIFb.js.map → _layout-ePpFHa-S.js.map} +1 -1
- package/build/client/assets/accordion-DBvaz78c.js +2 -0
- package/build/client/assets/{accordion-PSsenYUI.js.map → accordion-DBvaz78c.js.map} +1 -1
- package/build/client/assets/account-BgHt6sNV.js +2 -0
- package/build/client/assets/{account-Jl0f1Zst.js.map → account-BgHt6sNV.js.map} +1 -1
- package/build/client/assets/app-By03B5QO.js +2 -0
- package/build/client/assets/{app-KDd3xjI9.js.map → app-By03B5QO.js.map} +1 -1
- package/build/client/assets/{arc-DWALijMH.js → arc-D-54mj1a.js} +2 -2
- package/build/client/assets/{arc-DWALijMH.js.map → arc-D-54mj1a.js.map} +1 -1
- package/build/client/assets/architectureDiagram-NQ2NVSRB-CamU9d2s.js +37 -0
- package/build/client/assets/{architectureDiagram-NQ2NVSRB-tX-q9elq.js.map → architectureDiagram-NQ2NVSRB-CamU9d2s.js.map} +1 -1
- package/build/client/assets/{blockDiagram-PHRCVELO-CDy5WrXO.js → blockDiagram-PHRCVELO-8PiJU5dn.js} +3 -3
- package/build/client/assets/{blockDiagram-PHRCVELO-CDy5WrXO.js.map → blockDiagram-PHRCVELO-8PiJU5dn.js.map} +1 -1
- package/build/client/assets/{button-cFpvwtjC.js → button-BoJWEKHp.js} +2 -2
- package/build/client/assets/{button-cFpvwtjC.js.map → button-BoJWEKHp.js.map} +1 -1
- package/build/client/assets/{c4Diagram-6F6E4RAY-CFbAkThh.js → c4Diagram-6F6E4RAY-a_Vz9FQp.js} +3 -3
- package/build/client/assets/{c4Diagram-6F6E4RAY-CFbAkThh.js.map → c4Diagram-6F6E4RAY-a_Vz9FQp.js.map} +1 -1
- package/build/client/assets/channel-olxjZBcv.js +2 -0
- package/build/client/assets/{channel-DHkyUdNE.js.map → channel-olxjZBcv.js.map} +1 -1
- package/build/client/assets/{chunk-353BL4L5-Dpooe8HA.js → chunk-353BL4L5-QtLxglxb.js} +2 -2
- package/build/client/assets/{chunk-353BL4L5-Dpooe8HA.js.map → chunk-353BL4L5-QtLxglxb.js.map} +1 -1
- package/build/client/assets/{chunk-67H74DCK-LD3kHetT.js → chunk-67H74DCK-N9VlvDsS.js} +2 -2
- package/build/client/assets/{chunk-67H74DCK-LD3kHetT.js.map → chunk-67H74DCK-N9VlvDsS.js.map} +1 -1
- package/build/client/assets/{chunk-6OLS64BW-DqN3K0zX.js → chunk-6OLS64BW-Bw6L54gk.js} +2 -2
- package/build/client/assets/{chunk-6OLS64BW-DqN3K0zX.js.map → chunk-6OLS64BW-Bw6L54gk.js.map} +1 -1
- package/build/client/assets/{chunk-AACKK3MU-956RrsQJ.js → chunk-AACKK3MU-CGRxti6k.js} +2 -2
- package/build/client/assets/{chunk-AACKK3MU-956RrsQJ.js.map → chunk-AACKK3MU-CGRxti6k.js.map} +1 -1
- package/build/client/assets/{chunk-BFAMUDN2-By_sWoWf.js → chunk-BFAMUDN2-D0k5yzNa.js} +2 -2
- package/build/client/assets/{chunk-BFAMUDN2-By_sWoWf.js.map → chunk-BFAMUDN2-D0k5yzNa.js.map} +1 -1
- package/build/client/assets/{chunk-E2GYISFI-CYbTdeHG.js → chunk-E2GYISFI-L538ejWD.js} +2 -2
- package/build/client/assets/{chunk-E2GYISFI-CYbTdeHG.js.map → chunk-E2GYISFI-L538ejWD.js.map} +1 -1
- package/build/client/assets/{chunk-QEP2MXWD-EMIn8SEG.js → chunk-QEP2MXWD-DdDxYCFZ.js} +2 -2
- package/build/client/assets/{chunk-QEP2MXWD-EMIn8SEG.js.map → chunk-QEP2MXWD-DdDxYCFZ.js.map} +1 -1
- package/build/client/assets/{chunk-SKB7J2MH-CPK45517.js → chunk-SKB7J2MH-BntWlIrL.js} +2 -2
- package/build/client/assets/{chunk-SKB7J2MH-CPK45517.js.map → chunk-SKB7J2MH-BntWlIrL.js.map} +1 -1
- package/build/client/assets/classDiagram-BGRH5UQR-C5Mv_s-i.js +2 -0
- package/build/client/assets/{classDiagram-BGRH5UQR-DMFCY4SY.js.map → classDiagram-BGRH5UQR-C5Mv_s-i.js.map} +1 -1
- package/build/client/assets/classDiagram-v2-O24JOBDK-C5Mv_s-i.js +2 -0
- package/build/client/assets/{classDiagram-v2-O24JOBDK-DMFCY4SY.js.map → classDiagram-v2-O24JOBDK-C5Mv_s-i.js.map} +1 -1
- package/build/client/assets/clone-B94ujfDo.js +2 -0
- package/build/client/assets/{clone-DgOnCE7a.js.map → clone-B94ujfDo.js.map} +1 -1
- package/build/client/assets/clsx-B-dksMZM.js +2 -0
- package/build/client/assets/clsx-B-dksMZM.js.map +1 -0
- package/build/client/assets/dagre-FFZHY6LT-UmchHP04.js +5 -0
- package/build/client/assets/{dagre-FFZHY6LT-D8_T6tZq.js.map → dagre-FFZHY6LT-UmchHP04.js.map} +1 -1
- package/build/client/assets/diagram-3EMPZRKU-CjmDnDXX.js +25 -0
- package/build/client/assets/{diagram-3EMPZRKU-BEeRqItD.js.map → diagram-3EMPZRKU-CjmDnDXX.js.map} +1 -1
- package/build/client/assets/diagram-5UYTHUR4-C85dABA1.js +25 -0
- package/build/client/assets/{diagram-5UYTHUR4-CikqdCuq.js.map → diagram-5UYTHUR4-C85dABA1.js.map} +1 -1
- package/build/client/assets/diagram-ZTM2IBQH-CH_XZ7tw.js +44 -0
- package/build/client/assets/{diagram-ZTM2IBQH-CDz-uqOk.js.map → diagram-ZTM2IBQH-CH_XZ7tw.js.map} +1 -1
- package/build/client/assets/diff-C1wUPjJK.js +2 -0
- package/build/client/assets/{diff-DLaUr4S6.js.map → diff-C1wUPjJK.js.map} +1 -1
- package/build/client/assets/diff-CxZ19SOv.js +2 -0
- package/build/client/assets/{diff-BXApfmyx.js.map → diff-CxZ19SOv.js.map} +1 -1
- package/build/client/assets/{discord-DOEtvB6W.js → discord-B5cRUOhZ.js} +2 -2
- package/build/client/assets/{discord-DOEtvB6W.js.map → discord-B5cRUOhZ.js.map} +1 -1
- package/build/client/assets/discord-BvZSO_OZ.js +2 -0
- package/build/client/assets/discord-BvZSO_OZ.js.map +1 -0
- package/build/client/assets/{epic-video-Buv6ZzQr.js → epic-video-CRkBFsAC.js} +2 -2
- package/build/client/assets/{epic-video-Buv6ZzQr.js.map → epic-video-CRkBFsAC.js.map} +1 -1
- package/build/client/assets/{erDiagram-R3QVA2FD-WzL917SV.js → erDiagram-R3QVA2FD-DbFybc7W.js} +3 -3
- package/build/client/assets/{erDiagram-R3QVA2FD-WzL917SV.js.map → erDiagram-R3QVA2FD-DbFybc7W.js.map} +1 -1
- package/build/client/assets/{error-boundary-B8bEOgxp.js → error-boundary-bzCOyChj.js} +2 -2
- package/build/client/assets/{error-boundary-B8bEOgxp.js.map → error-boundary-bzCOyChj.js.map} +1 -1
- package/build/client/assets/finished-D-PDIHdi.js +2 -0
- package/build/client/assets/{finished-BGX9JzP_.js.map → finished-D-PDIHdi.js.map} +1 -1
- package/build/client/assets/{flowDiagram-PKI6S5ZS-qimfuZS6.js → flowDiagram-PKI6S5ZS-b-Wr1zEn.js} +3 -3
- package/build/client/assets/{flowDiagram-PKI6S5ZS-qimfuZS6.js.map → flowDiagram-PKI6S5ZS-b-Wr1zEn.js.map} +1 -1
- package/build/client/assets/ganttDiagram-EK5VF46D-D25CAue3.js +268 -0
- package/build/client/assets/{ganttDiagram-EK5VF46D-R6ZSFdSM.js.map → ganttDiagram-EK5VF46D-D25CAue3.js.map} +1 -1
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-B7Ue-jLz.js +66 -0
- package/build/client/assets/{gitGraphDiagram-GW3U2K7C-DV4MLocC.js.map → gitGraphDiagram-GW3U2K7C-B7Ue-jLz.js.map} +1 -1
- package/build/client/assets/{graph-DbEC4aH6.js → graph-9sAzMH8t.js} +2 -2
- package/build/client/assets/{graph-DbEC4aH6.js.map → graph-9sAzMH8t.js.map} +1 -1
- package/build/client/assets/{index-5iWKMrsc.js → index-8yBq10sZ.js} +2 -2
- package/build/client/assets/{index-5iWKMrsc.js.map → index-8yBq10sZ.js.map} +1 -1
- package/build/client/assets/index-CS_uCg-3.js +2 -0
- package/build/client/assets/{index-Bn3YwCqZ.js.map → index-CS_uCg-3.js.map} +1 -1
- package/build/client/assets/index-Cf0XLNVj.js +2 -0
- package/build/client/assets/{index-CUv7g3UR.js.map → index-Cf0XLNVj.js.map} +1 -1
- package/build/client/assets/{index-7Ba6ptu2.js → index-CtnHrWrs.js} +2 -2
- package/build/client/assets/{index-7Ba6ptu2.js.map → index-CtnHrWrs.js.map} +1 -1
- package/build/client/assets/{index-CZ8q0Nf8.js → index-DPhEf4uN.js} +2 -2
- package/build/client/assets/{index-CZ8q0Nf8.js.map → index-DPhEf4uN.js.map} +1 -1
- package/build/client/assets/index-Dqd5qiWh.js +2 -0
- package/build/client/assets/{index-DxbpRM0V.js.map → index-Dqd5qiWh.js.map} +1 -1
- package/build/client/assets/infoDiagram-RLU2ROGC-DDlCYHQW.js +3 -0
- package/build/client/assets/{infoDiagram-RLU2ROGC-BJyo6jex.js.map → infoDiagram-RLU2ROGC-DDlCYHQW.js.map} +1 -1
- package/build/client/assets/{journeyDiagram-EWQZEKCU-aQCeSbRC.js → journeyDiagram-EWQZEKCU-Bm8mUykI.js} +3 -3
- package/build/client/assets/{journeyDiagram-EWQZEKCU-aQCeSbRC.js.map → journeyDiagram-EWQZEKCU-Bm8mUykI.js.map} +1 -1
- package/build/client/assets/{kanban-definition-ILFWEQ3N-CLcq3V0h.js → kanban-definition-ILFWEQ3N-BoSNcgtS.js} +3 -3
- package/build/client/assets/{kanban-definition-ILFWEQ3N-CLcq3V0h.js.map → kanban-definition-ILFWEQ3N-BoSNcgtS.js.map} +1 -1
- package/build/client/assets/{layout-DInHBBCO.js → layout-Ba5kmwon.js} +2 -2
- package/build/client/assets/{layout-DInHBBCO.js.map → layout-Ba5kmwon.js.map} +1 -1
- package/build/client/assets/{linear-BoPQG8e5.js → linear-ZPMI8s6B.js} +2 -2
- package/build/client/assets/{linear-BoPQG8e5.js.map → linear-ZPMI8s6B.js.map} +1 -1
- package/build/client/assets/{loading-WTUNhoIS.js → loading-C810LASV.js} +2 -2
- package/build/client/assets/{loading-WTUNhoIS.js.map → loading-C810LASV.js.map} +1 -1
- package/build/client/assets/login-CQRwgkfM.js +2 -0
- package/build/client/assets/{login-BzcTSzkr.js.map → login-CQRwgkfM.js.map} +1 -1
- package/build/client/assets/manifest-eb55e374.js +1 -0
- package/build/client/assets/mdx-DH55rolp.js +3 -0
- package/build/client/assets/{mdx-BrER1Z2t.js.map → mdx-DH55rolp.js.map} +1 -1
- package/build/client/assets/{mermaid.core-Cvtu6qL8.js → mermaid.core-CG5oJ8_-.js} +5 -5
- package/build/client/assets/{mermaid.core-Cvtu6qL8.js.map → mermaid.core-CG5oJ8_-.js.map} +1 -1
- package/build/client/assets/mindmap-definition-CZNETY7S-Dr_MsV9M.js +96 -0
- package/build/client/assets/{mindmap-definition-CZNETY7S-BwcWuimP.js.map → mindmap-definition-CZNETY7S-Dr_MsV9M.js.map} +1 -1
- package/build/client/assets/misc-DsJGqoYt.js +2 -0
- package/build/client/assets/misc-DsJGqoYt.js.map +1 -0
- package/build/client/assets/{nav-chevrons-Cxzx0j13.js → nav-chevrons-CSVvCjJa.js} +2 -2
- package/build/client/assets/{nav-chevrons-Cxzx0j13.js.map → nav-chevrons-CSVvCjJa.js.map} +1 -1
- package/build/client/assets/onboarding-CyHu3NPX.js +2 -0
- package/build/client/assets/{onboarding-CpNLu5ws.js.map → onboarding-CyHu3NPX.js.map} +1 -1
- package/build/client/assets/{online-CyV51Rml.js → online-Cf3nj5JR.js} +2 -2
- package/build/client/assets/{online-CyV51Rml.js.map → online-Cf3nj5JR.js.map} +1 -1
- package/build/client/assets/pieDiagram-NIOCPIFQ-DGamF-m5.js +31 -0
- package/build/client/assets/{pieDiagram-NIOCPIFQ-BGD0lX78.js.map → pieDiagram-NIOCPIFQ-DGamF-m5.js.map} +1 -1
- package/build/client/assets/preferences-eb0Opp1D.js +2 -0
- package/build/client/assets/preferences-eb0Opp1D.js.map +1 -0
- package/build/client/assets/{presence-CLRBf5dp.js → presence-DXH0dXJd.js} +2 -2
- package/build/client/assets/{presence-CLRBf5dp.js.map → presence-DXH0dXJd.js.map} +1 -1
- package/build/client/assets/preview-B35cxJW7.js +2 -0
- package/build/client/assets/{preview-CMOIed2z.js.map → preview-B35cxJW7.js.map} +1 -1
- package/build/client/assets/{product-B0zJEdi_.js → product-B3wkyL3-.js} +2 -2
- package/build/client/assets/{product-B0zJEdi_.js.map → product-B3wkyL3-.js.map} +1 -1
- package/build/client/assets/{progress-DKsShYpv.js → progress-BP5cLKuW.js} +2 -2
- package/build/client/assets/{progress-DKsShYpv.js.map → progress-BP5cLKuW.js.map} +1 -1
- package/build/client/assets/{progress-bar-Cww9t8Vn.js → progress-bar-BagX2z6n.js} +2 -2
- package/build/client/assets/{progress-bar-Cww9t8Vn.js.map → progress-bar-BagX2z6n.js.map} +1 -1
- package/build/client/assets/{quadrantDiagram-2OG54O6I-75mVARIA.js → quadrantDiagram-2OG54O6I-DzYQA4wE.js} +5 -5
- package/build/client/assets/{quadrantDiagram-2OG54O6I-75mVARIA.js.map → quadrantDiagram-2OG54O6I-DzYQA4wE.js.map} +1 -1
- package/build/client/assets/{requirementDiagram-SO3GGRV7-9xtgDM0W.js → requirementDiagram-SO3GGRV7-CT4nmOnG.js} +3 -3
- package/build/client/assets/{requirementDiagram-SO3GGRV7-9xtgDM0W.js.map → requirementDiagram-SO3GGRV7-CT4nmOnG.js.map} +1 -1
- package/build/client/assets/{revalidation-ws-CkOwoVmm.js → revalidation-ws-De6AS3e6.js} +2 -2
- package/build/client/assets/{revalidation-ws-CkOwoVmm.js.map → revalidation-ws-De6AS3e6.js.map} +1 -1
- package/build/client/assets/root-CoMxWz2o.js +2 -0
- package/build/client/assets/root-CoMxWz2o.js.map +1 -0
- package/build/client/assets/sankeyDiagram-4UZDY2LN-ByZQvDvv.js +11 -0
- package/build/client/assets/{sankeyDiagram-4UZDY2LN-GnxcKs-y.js.map → sankeyDiagram-4UZDY2LN-ByZQvDvv.js.map} +1 -1
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-nwxzVXHz.js → sequenceDiagram-ZIKVLSP4-D8J9bTtT.js} +3 -3
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-nwxzVXHz.js.map → sequenceDiagram-ZIKVLSP4-D8J9bTtT.js.map} +1 -1
- package/build/client/assets/set-playground-fnyxfdJX.js +2 -0
- package/build/client/assets/{set-playground-Bx0yIjpY.js.map → set-playground-fnyxfdJX.js.map} +1 -1
- package/build/client/assets/stateDiagram-XX37X6EN-CDbaOeD7.js +2 -0
- package/build/client/assets/{stateDiagram-XX37X6EN-DplHO2WC.js.map → stateDiagram-XX37X6EN-CDbaOeD7.js.map} +1 -1
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-ZW9khKM8.js +2 -0
- package/build/client/assets/{stateDiagram-v2-GD6S3NHB-CmsjuNaA.js.map → stateDiagram-v2-GD6S3NHB-ZW9khKM8.js.map} +1 -1
- package/build/client/assets/tailwind-CyQBDA3D.css +1 -0
- package/build/client/assets/test-Dr7hgef4.js +2 -0
- package/build/client/assets/{test-DUocKqAt.js.map → test-Dr7hgef4.js.map} +1 -1
- package/build/client/assets/{tests-Bmk7igTW.js → tests-EEL6JFzf.js} +2 -2
- package/build/client/assets/{tests-Bmk7igTW.js.map → tests-EEL6JFzf.js.map} +1 -1
- package/build/client/assets/{timeline-definition-RI47OAVP-Dhz4J7XS.js → timeline-definition-RI47OAVP-CpiFZiC9.js} +3 -3
- package/build/client/assets/{timeline-definition-RI47OAVP-Dhz4J7XS.js.map → timeline-definition-RI47OAVP-CpiFZiC9.js.map} +1 -1
- package/build/client/assets/{tooltip-Cm7A1uIP.js → tooltip-CTw4ab49.js} +2 -2
- package/build/client/assets/{tooltip-Cm7A1uIP.js.map → tooltip-CTw4ab49.js.map} +1 -1
- package/build/client/assets/{treemap-FKARHQ26-4Q6H4E9y.js → treemap-FKARHQ26-DW0onZEJ.js} +2 -2
- package/build/client/assets/{treemap-FKARHQ26-4Q6H4E9y.js.map → treemap-FKARHQ26-DW0onZEJ.js.map} +1 -1
- package/build/client/assets/workspace-structure-BU7brX4_.js +2 -0
- package/build/client/assets/workspace-structure-BU7brX4_.js.map +1 -0
- package/build/client/assets/{xychartDiagram-H2YORKM3-mIuoEWBr.js → xychartDiagram-H2YORKM3-pOb4n59k.js} +3 -3
- package/build/client/assets/{xychartDiagram-H2YORKM3-mIuoEWBr.js.map → xychartDiagram-H2YORKM3-pOb4n59k.js.map} +1 -1
- package/build/server/index.js +565 -271
- package/build/server/index.js.map +1 -1
- package/package.json +1 -1
- package/build/client/assets/_-C_7mS1-0.js +0 -2
- package/build/client/assets/_exerciseNumber-CdGNKLia.js +0 -2
- package/build/client/assets/_exerciseNumber_._stepNumber-BNj079sn.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-Ce6wQJ7W.js +0 -2
- package/build/client/assets/_layout-C-qRb0Ym.js +0 -2
- package/build/client/assets/accordion-PSsenYUI.js +0 -2
- package/build/client/assets/account-Jl0f1Zst.js +0 -2
- package/build/client/assets/app-KDd3xjI9.js +0 -2
- package/build/client/assets/architectureDiagram-NQ2NVSRB-tX-q9elq.js +0 -37
- package/build/client/assets/channel-DHkyUdNE.js +0 -2
- package/build/client/assets/classDiagram-BGRH5UQR-DMFCY4SY.js +0 -2
- package/build/client/assets/classDiagram-v2-O24JOBDK-DMFCY4SY.js +0 -2
- package/build/client/assets/clone-DgOnCE7a.js +0 -2
- package/build/client/assets/dagre-FFZHY6LT-D8_T6tZq.js +0 -5
- package/build/client/assets/diagram-3EMPZRKU-BEeRqItD.js +0 -25
- package/build/client/assets/diagram-5UYTHUR4-CikqdCuq.js +0 -25
- package/build/client/assets/diagram-ZTM2IBQH-CDz-uqOk.js +0 -44
- package/build/client/assets/diff-BXApfmyx.js +0 -2
- package/build/client/assets/diff-DLaUr4S6.js +0 -2
- package/build/client/assets/discord-C86FbV-j.js +0 -2
- package/build/client/assets/discord-C86FbV-j.js.map +0 -1
- package/build/client/assets/finished-BGX9JzP_.js +0 -2
- package/build/client/assets/ganttDiagram-EK5VF46D-R6ZSFdSM.js +0 -268
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-DV4MLocC.js +0 -66
- package/build/client/assets/index-Bn3YwCqZ.js +0 -2
- package/build/client/assets/index-CUv7g3UR.js +0 -2
- package/build/client/assets/index-DxbpRM0V.js +0 -2
- package/build/client/assets/infoDiagram-RLU2ROGC-BJyo6jex.js +0 -3
- package/build/client/assets/login-BzcTSzkr.js +0 -2
- package/build/client/assets/manifest-d7f923a9.js +0 -1
- package/build/client/assets/mdx-BrER1Z2t.js +0 -3
- package/build/client/assets/mindmap-definition-CZNETY7S-BwcWuimP.js +0 -96
- package/build/client/assets/misc-COGqV2fm.js +0 -2
- package/build/client/assets/misc-COGqV2fm.js.map +0 -1
- package/build/client/assets/onboarding-CpNLu5ws.js +0 -2
- package/build/client/assets/pieDiagram-NIOCPIFQ-BGD0lX78.js +0 -31
- package/build/client/assets/preferences-Dx_EUPYj.js +0 -2
- package/build/client/assets/preferences-Dx_EUPYj.js.map +0 -1
- package/build/client/assets/preview-CMOIed2z.js +0 -2
- package/build/client/assets/root-Ddu3Xxbb.js +0 -2
- package/build/client/assets/root-Ddu3Xxbb.js.map +0 -1
- package/build/client/assets/sankeyDiagram-4UZDY2LN-GnxcKs-y.js +0 -11
- package/build/client/assets/set-playground-Bx0yIjpY.js +0 -2
- package/build/client/assets/stateDiagram-XX37X6EN-DplHO2WC.js +0 -2
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-CmsjuNaA.js +0 -2
- package/build/client/assets/tailwind-Dqccob1p.css +0 -1
- package/build/client/assets/test-DUocKqAt.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as P}from"./jsx-runtime-EKYJJIwR.js";import{r as f,Q as st}from"./chunk-QMGIS6GS-CG5cA6CX.js";import{r as ct}from"./index-Bp_2FjuO.js";import{a as nn}from"./misc-COGqV2fm.js";function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Xe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function at(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Xe(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Xe(e[r],null)}}}}function ee(...e){return f.useCallback(at(...e),e)}function Sr(e,t){const n=f.createContext(t),o=i=>{const{children:s,...c}=i,a=f.useMemo(()=>c,Object.values(c));return P.jsx(n.Provider,{value:a,children:s})};o.displayName=e+"Provider";function r(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function lt(e,t=[]){let n=[];function o(i,s){const c=f.createContext(s),a=n.length;n=[...n,s];const l=d=>{const{scope:m,children:p,...h}=d,g=m?.[e]?.[a]||c,y=f.useMemo(()=>h,Object.values(h));return P.jsx(g.Provider,{value:y,children:p})};l.displayName=i+"Provider";function u(d,m){const p=m?.[e]?.[a]||c,h=f.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(s=>f.createContext(s));return function(c){const a=c?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,on(r,...t)]}function on(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((c,{useScope:a,scopeName:l})=>{const d=a(i)[`__scope${l}`];return{...c,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function rn(e){const t=sn(e),n=f.forwardRef((o,r)=>{const{children:i,...s}=o,c=f.Children.toArray(i),a=c.find(an);if(a){const l=a.props.children,u=c.map(d=>d===a?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return P.jsx(t,{...s,ref:r,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return P.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function sn(e){const t=f.forwardRef((n,o)=>{const{children:r,...i}=n;if(f.isValidElement(r)){const s=un(r),c=ln(i,r.props);return r.type!==f.Fragment&&(c.ref=o?at(o,s):s),f.cloneElement(r,c)}return f.Children.count(r)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ut=Symbol("radix.slottable");function cn(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ut,t}function an(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ut}function ln(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...c)=>{const a=i(...c);return r(...c),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function un(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=fn.reduce((e,t)=>{const n=rn(`Primitive.${t}`),o=f.forwardRef((r,i)=>{const{asChild:s,...c}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function dn(e,t){e&&ct.flushSync(()=>e.dispatchEvent(t))}function xe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function pn(e,t=globalThis?.document){const n=xe(e);f.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var mn="DismissableLayer",Se="dismissableLayer.update",hn="dismissableLayer.pointerDownOutside",gn="dismissableLayer.focusOutside",Ge,ft=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...a}=e,l=f.useContext(ft),[u,d]=f.useState(null),m=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),h=ee(t,b=>d(b)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),w=u?g.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,C=wn(b=>{const O=b.target,M=[...l.branches].some(T=>T.contains(O));!x||M||(r?.(b),s?.(b),b.defaultPrevented||c?.())},m),R=xn(b=>{const O=b.target;[...l.branches].some(T=>T.contains(O))||(i?.(b),s?.(b),b.defaultPrevented||c?.())},m);return pn(b=>{w===l.layers.size-1&&(o?.(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},m),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ge=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),qe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ge)}},[u,m,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),qe())},[u,l]),f.useEffect(()=>{const b=()=>p({});return document.addEventListener(Se,b),()=>document.removeEventListener(Se,b)},[]),P.jsx(te.div,{...a,ref:h,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,R.onFocusCapture),onBlurCapture:X(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});dt.displayName=mn;var yn="DismissableLayerBranch",vn=f.forwardRef((e,t)=>{const n=f.useContext(ft),o=f.useRef(null),r=ee(t,o);return f.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(te.div,{...e,ref:r})});vn.displayName=yn;function wn(e,t=globalThis?.document){const n=xe(e),o=f.useRef(!1),r=f.useRef(()=>{});return f.useEffect(()=>{const i=c=>{if(c.target&&!o.current){let a=function(){pt(hn,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function xn(e,t=globalThis?.document){const n=xe(e),o=f.useRef(!1);return f.useEffect(()=>{const r=i=>{i.target&&!o.current&&pt(gn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function qe(){const e=new CustomEvent(Se);document.dispatchEvent(e)}function pt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?dn(r,i):r.dispatchEvent(i)}var Q=globalThis?.document?f.useLayoutEffect:()=>{},bn=st[" useId ".trim().toString()]||(()=>{}),Cn=0;function En(e){const[t,n]=f.useState(bn());return Q(()=>{n(o=>o??String(Cn++))},[e]),e||(t?`radix-${t}`:"")}const Pn=["top","right","bottom","left"],K=Math.min,j=Math.max,ge=Math.round,pe=Math.floor,V=e=>({x:e,y:e}),An={left:"right",right:"left",bottom:"top",top:"bottom"},Rn={start:"end",end:"start"};function De(e,t,n){return j(e,K(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ke(e){return e==="x"?"y":"x"}function Ie(e){return e==="y"?"height":"width"}const On=new Set(["top","bottom"]);function z(e){return On.has(q(e))?"y":"x"}function $e(e){return ke(z(e))}function Tn(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=$e(e),i=Ie(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ye(s)),[s,ye(s)]}function Sn(e){const t=ye(e);return[Le(e),t,Le(t)]}function Le(e){return e.replace(/start|end/g,t=>Rn[t])}const Ke=["left","right"],Ze=["right","left"],Dn=["top","bottom"],Ln=["bottom","top"];function Nn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ze:Ke:t?Ke:Ze;case"left":case"right":return t?Dn:Ln;default:return[]}}function Mn(e,t,n,o){const r=ie(e);let i=Nn(q(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Le)))),i}function ye(e){return e.replace(/left|right|bottom|top/g,t=>An[t])}function _n(e){return{top:0,right:0,bottom:0,left:0,...e}}function mt(e){return typeof e!="number"?_n(e):{top:e,right:e,bottom:e,left:e}}function ve(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=z(t),s=$e(t),c=Ie(s),a=q(t),l=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let p;switch(a){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=m*(n&&l?-1:1);break;case"end":p[s]+=m*(n&&l?-1:1);break}return p}const kn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Qe(l,o,a),m=o,p={},h=0;for(let g=0;g<c.length;g++){const{name:y,fn:v}=c[g],{x:w,y:E,data:x,reset:C}=await v({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=E??d,p={...p,[y]:{...p[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:u,y:d}=Qe(l,m,a)),g=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=G(t,e),h=mt(p),y=c[m?d==="floating"?"reference":"floating":d],v=ve(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:a})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},C=ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:E,strategy:a}):w);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}const In=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};const d=mt(u),m={x:n,y:o},p=$e(r),h=Ie(p),g=await s.getDimensions(l),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-m[p]-i.floating[h],C=m[p]-i.reference[p],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let b=R?R[E]:0;(!b||!await(s.isElement==null?void 0:s.isElement(R)))&&(b=c.floating[E]||i.floating[h]);const O=x/2-C/2,M=b/2-g[h]/2-1,T=K(d[v],M),k=K(d[w],M),I=T,D=b-g[h]-k,S=b/2-g[h]/2+O,$=De(I,S,D),L=!a.arrow&&ie(r)!=null&&S!==$&&i.reference[h]/2-(S<I?T:k)-g[h]/2<0,N=L?S<I?S-I:S-D:0;return{[p]:m[p]+N,data:{[p]:$,centerOffset:S-$-N,...L&&{alignmentOffset:N}},reset:L}}}),$n=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=q(r),w=z(c),E=q(c)===c,x=await(a.isRTL==null?void 0:a.isRTL(l.floating)),C=m||(E||!g?[ye(c)]:Sn(c)),R=h!=="none";!m&&R&&C.push(...Mn(c,g,h,x));const b=[c,...C],O=await ae(t,y),M=[];let T=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&M.push(O[v]),d){const S=Tn(r,s,x);M.push(O[S[0]],O[S[1]])}if(T=[...T,{placement:r,overflows:M}],!M.every(S=>S<=0)){var k,I;const S=(((k=i.flip)==null?void 0:k.index)||0)+1,$=b[S];if($&&(!(d==="alignment"?w!==z($):!1)||T.every(A=>A.overflows[0]>0&&z(A.placement)===w)))return{data:{index:S,overflows:T},reset:{placement:$}};let L=(I=T.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!L)switch(p){case"bestFit":{var D;const N=(D=T.filter(A=>{if(R){const _=z(A.placement);return _===w||_==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((A,_)=>A[1]-_[1])[0])==null?void 0:D[0];N&&(L=N);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function Je(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function et(e){return Pn.some(t=>e[t]>=0)}const jn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=G(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=Je(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:et(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=Je(i,n.floating);return{data:{escapedOffsets:s,escaped:et(s)}}}default:return{}}}}},ht=new Set(["left","top"]);async function Fn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=q(n),c=ie(n),a=z(n)==="y",l=ht.has(s)?-1:1,u=i&&a?-1:1,d=G(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),a?{x:p*u,y:m*l}:{x:m*l,y:p*u}}const Hn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,a=await Fn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},Wn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...a}=G(e,t),l={x:n,y:o},u=await ae(t,a),d=z(q(r)),m=ke(d);let p=l[m],h=l[d];if(i){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=p+u[y],E=p-u[v];p=De(w,p,E)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=h+u[y],E=h-u[v];h=De(w,h,E)}const g=c.fn({...t,[m]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[d]:s}}}}}},Bn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:a=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:o},d=z(r),m=ke(d);let p=u[m],h=u[d];const g=G(c,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const E=m==="y"?"height":"width",x=i.reference[m]-i.floating[E]+y.mainAxis,C=i.reference[m]+i.reference[E]-y.mainAxis;p<x?p=x:p>C&&(p=C)}if(l){var v,w;const E=m==="y"?"width":"height",x=ht.has(q(r)),C=i.reference[d]-i.floating[E]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:y.crossAxis),R=i.reference[d]+i.reference[E]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?y.crossAxis:0);h<C?h=C:h>R&&(h=R)}return{[m]:p,[d]:h}}}},zn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:c}=t,{apply:a=()=>{},...l}=G(e,t),u=await ae(t,l),d=q(r),m=ie(r),p=z(r)==="y",{width:h,height:g}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=d,y=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,E=h-u.left-u.right,x=K(g-u[y],w),C=K(h-u[v],E),R=!t.middlewareData.shift;let b=x,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),R&&!m){const T=j(u.left,0),k=j(u.right,0),I=j(u.top,0),D=j(u.bottom,0);p?O=h-2*(T!==0||k!==0?T+k:j(u.left,u.right)):b=g-2*(I!==0||D!==0?I+D:j(u.top,u.bottom))}await a({...t,availableWidth:O,availableHeight:b});const M=await s.getDimensions(c.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function be(){return typeof window<"u"}function se(e){return gt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gt(e){return be()?e instanceof Node||e instanceof F(e).Node:!1}function H(e){return be()?e instanceof Element||e instanceof F(e).Element:!1}function U(e){return be()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function tt(e){return!be()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}const Vn=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Vn.has(r)}const Un=new Set(["table","td","th"]);function Yn(e){return Un.has(se(e))}const Xn=[":popover-open",":modal"];function Ce(e){return Xn.some(t=>{try{return e.matches(t)}catch{return!1}})}const Gn=["transform","translate","scale","rotate","perspective"],qn=["transform","translate","scale","rotate","perspective","filter"],Kn=["paint","layout","strict","content"];function je(e){const t=Fe(),n=H(e)?W(e):e;return Gn.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qn.some(o=>(n.willChange||"").includes(o))||Kn.some(o=>(n.contain||"").includes(o))}function Zn(e){let t=Z(e);for(;U(t)&&!oe(t);){if(je(t))return t;if(Ce(t))return null;t=Z(t)}return null}function Fe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qn=new Set(["html","body","#document"]);function oe(e){return Qn.has(se(e))}function W(e){return F(e).getComputedStyle(e)}function Ee(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Y(e);return tt(t)?t.host:t}function yt(e){const t=Z(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:yt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=yt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=F(r);if(i){const c=Ne(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],c&&n?le(c):[])}return t.concat(r,le(r,[],n))}function Ne(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vt(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=U(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=ge(n)!==i||ge(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function He(e){return H(e)?e:e.contextElement}function ne(e){const t=He(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vt(t);let s=(i?ge(n.width):n.width)/o,c=(i?ge(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Jn=V(0);function wt(e){const t=F(e);return!Fe()||!t.visualViewport?Jn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function J(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=He(e);let s=V(1);t&&(o?H(o)&&(s=ne(o)):s=ne(e));const c=eo(i,n,o)?wt(i):V(0);let a=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=F(i),p=o&&H(o)?F(o):o;let h=m,g=Ne(h);for(;g&&o&&p!==h;){const y=ne(g),v=g.getBoundingClientRect(),w=W(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,x=v.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,l*=y.y,u*=y.x,d*=y.y,a+=E,l+=x,h=F(g),g=Ne(h)}}return ve({width:u,height:d,x:a,y:l})}function We(e,t){const n=Ee(e).scrollLeft;return t?t.left+n:J(Y(e)).left+n}function xt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:We(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function to(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Y(o),c=t?Ce(t.floating):!1;if(o===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},l=V(1);const u=V(0),d=U(o);if((d||!d&&!i)&&((se(o)!=="body"||fe(s))&&(a=Ee(o)),U(o))){const p=J(o);l=ne(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const m=s&&!d&&!i?xt(s,a,!0):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+u.x+m.x,y:n.y*l.y-a.scrollTop*l.y+u.y+m.y}}function no(e){return Array.from(e.getClientRects())}function oo(e){const t=Y(e),n=Ee(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+We(e);const c=-n.scrollTop;return W(o).direction==="rtl"&&(s+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}function ro(e,t){const n=F(e),o=Y(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,a=0;if(r){i=r.width,s=r.height;const l=Fe();(!l||l&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}return{width:i,height:s,x:c,y:a}}const io=new Set(["absolute","fixed"]);function so(e,t){const n=J(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=U(e)?ne(e):V(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=r*i.x,l=o*i.y;return{width:s,height:c,x:a,y:l}}function nt(e,t,n){let o;if(t==="viewport")o=ro(e,n);else if(t==="document")o=oo(Y(e));else if(H(t))o=so(t,n);else{const r=wt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ve(o)}function bt(e,t){const n=Z(e);return n===t||!H(n)||oe(n)?!1:W(n).position==="fixed"||bt(n,t)}function co(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(c=>H(c)&&se(c)!=="body"),r=null;const i=W(e).position==="fixed";let s=i?Z(e):e;for(;H(s)&&!oe(s);){const c=W(s),a=je(s);!a&&c.position==="fixed"&&(r=null),(i?!a&&!r:!a&&c.position==="static"&&!!r&&io.has(r.position)||fe(s)&&!a&&bt(e,s))?o=o.filter(u=>u!==s):r=c,s=Z(s)}return t.set(e,o),o}function ao(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ce(t)?[]:co(t,this._c):[].concat(n),o],c=s[0],a=s.reduce((l,u)=>{const d=nt(t,u,r);return l.top=j(d.top,l.top),l.right=K(d.right,l.right),l.bottom=K(d.bottom,l.bottom),l.left=j(d.left,l.left),l},nt(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function lo(e){const{width:t,height:n}=vt(e);return{width:t,height:n}}function uo(e,t,n){const o=U(t),r=Y(t),i=n==="fixed",s=J(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=V(0);function l(){a.x=We(r)}if(o||!o&&!i)if((se(t)!=="body"||fe(r))&&(c=Ee(t)),o){const p=J(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else r&&l();i&&!o&&r&&l();const u=r&&!o&&!i?xt(r,c):V(0),d=s.left+c.scrollLeft-a.x-u.x,m=s.top+c.scrollTop-a.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function Oe(e){return W(e).position==="static"}function ot(e,t){if(!U(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function Ct(e,t){const n=F(e);if(Ce(e))return n;if(!U(e)){let r=Z(e);for(;r&&!oe(r);){if(H(r)&&!Oe(r))return r;r=Z(r)}return n}let o=ot(e,t);for(;o&&Yn(o)&&Oe(o);)o=ot(o,t);return o&&oe(o)&&Oe(o)&&!je(o)?n:o||Zn(e)||n}const fo=async function(e){const t=this.getOffsetParent||Ct,n=this.getDimensions,o=await n(e.floating);return{reference:uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function po(e){return W(e).direction==="rtl"}const mo={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:Y,getClippingRect:ao,getOffsetParent:Ct,getElementRects:fo,getClientRects:no,getDimensions:lo,getScale:ne,isElement:H,isRTL:po};function Et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ho(e,t){let n=null,o;const r=Y(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=l;if(c||t(),!m||!p)return;const h=pe(d),g=pe(r.clientWidth-(u+m)),y=pe(r.clientHeight-(d+p)),v=pe(u),E={rootMargin:-h+"px "+-g+"px "+-y+"px "+-v+"px",threshold:j(0,K(1,a))||1};let x=!0;function C(R){const b=R[0].intersectionRatio;if(b!==a){if(!x)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!Et(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),i}function go(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=He(e),u=r||i?[...l?le(l):[],...le(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&c?ho(l,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let h,g=a?J(e):null;a&&y();function y(){const v=J(e);g&&!Et(g,v)&&n(),g=v,h=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const yo=Hn,vo=Wn,wo=$n,xo=zn,bo=jn,rt=In,Co=Bn,Eo=(e,t,n)=>{const o=new Map,r={platform:mo,...n},i={...r.platform,_c:o};return kn(e,t,{...r,platform:i})};var Po=typeof document<"u",Ao=function(){},he=Po?f.useLayoutEffect:Ao;function we(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!we(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!we(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function it(e,t){const n=Pt(e);return Math.round(t*n)/n}function Te(e){const t=f.useRef(e);return he(()=>{t.current=e}),t}function Ro(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:a,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=f.useState(o);we(m,o)||p(o);const[h,g]=f.useState(null),[y,v]=f.useState(null),w=f.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[]),E=f.useCallback(A=>{A!==b.current&&(b.current=A,v(A))},[]),x=i||h,C=s||y,R=f.useRef(null),b=f.useRef(null),O=f.useRef(u),M=a!=null,T=Te(a),k=Te(r),I=Te(l),D=f.useCallback(()=>{if(!R.current||!b.current)return;const A={placement:t,strategy:n,middleware:m};k.current&&(A.platform=k.current),Eo(R.current,b.current,A).then(_=>{const B={..._,isPositioned:I.current!==!1};S.current&&!we(O.current,B)&&(O.current=B,ct.flushSync(()=>{d(B)}))})},[m,t,n,k,I]);he(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const S=f.useRef(!1);he(()=>(S.current=!0,()=>{S.current=!1}),[]),he(()=>{if(x&&(R.current=x),C&&(b.current=C),x&&C){if(T.current)return T.current(x,C,D);D()}},[x,C,D,T,M]);const $=f.useMemo(()=>({reference:R,floating:b,setReference:w,setFloating:E}),[w,E]),L=f.useMemo(()=>({reference:x,floating:C}),[x,C]),N=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const _=it(L.floating,u.x),B=it(L.floating,u.y);return c?{...A,transform:"translate("+_+"px, "+B+"px)",...Pt(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:B}},[n,c,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:D,refs:$,elements:L,floatingStyles:N}),[u,D,$,L,N])}const Oo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?rt({element:o.current,padding:r}).fn(n):{}:o?rt({element:o,padding:r}).fn(n):{}}}},To=(e,t)=>({...yo(e),options:[e,t]}),So=(e,t)=>({...vo(e),options:[e,t]}),Do=(e,t)=>({...Co(e),options:[e,t]}),Lo=(e,t)=>({...wo(e),options:[e,t]}),No=(e,t)=>({...xo(e),options:[e,t]}),Mo=(e,t)=>({...bo(e),options:[e,t]}),_o=(e,t)=>({...Oo(e),options:[e,t]});var ko="Arrow",At=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(te.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});At.displayName=ko;var Io=At;function $o(e){const[t,n]=f.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const a=i.borderBoxSize,l=Array.isArray(a)?a[0]:a;s=l.inlineSize,c=l.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Be="Popper",[Rt,Ot]=lt(Be),[jo,Tt]=Rt(Be),St=e=>{const{__scopePopper:t,children:n}=e,[o,r]=f.useState(null);return P.jsx(jo,{scope:t,anchor:o,onAnchorChange:r,children:n})};St.displayName=Be;var Dt="PopperAnchor",Lt=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Tt(Dt,n),s=f.useRef(null),c=ee(t,s);return f.useEffect(()=>{i.onAnchorChange(o?.current||s.current)}),o?null:P.jsx(te.div,{...r,ref:c})});Lt.displayName=Dt;var ze="PopperContent",[Fo,Ho]=Rt(ze),Nt=f.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:a=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Tt(ze,n),[v,w]=f.useState(null),E=ee(t,ce=>w(ce)),[x,C]=f.useState(null),R=$o(x),b=R?.width??0,O=R?.height??0,M=o+(i!=="center"?"-"+i:""),T=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],I=k.length>0,D={padding:T,boundary:k.filter(Bo),altBoundary:I},{refs:S,floatingStyles:$,placement:L,isPositioned:N,middlewareData:A}=Ro({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>go(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[To({mainAxis:r+O,alignmentAxis:s}),a&&So({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Do():void 0,...D}),a&&Lo({...D}),No({...D,apply:({elements:ce,rects:Ye,availableWidth:Qt,availableHeight:Jt})=>{const{width:en,height:tn}=Ye.reference,de=ce.floating.style;de.setProperty("--radix-popper-available-width",`${Qt}px`),de.setProperty("--radix-popper-available-height",`${Jt}px`),de.setProperty("--radix-popper-anchor-width",`${en}px`),de.setProperty("--radix-popper-anchor-height",`${tn}px`)}}),x&&_o({element:x,padding:c}),zo({arrowWidth:b,arrowHeight:O}),m&&Mo({strategy:"referenceHidden",...D})]}),[_,B]=kt(L),Ue=xe(h);Q(()=>{N&&Ue?.()},[N,Ue]);const Xt=A.arrow?.x,Gt=A.arrow?.y,qt=A.arrow?.centerOffset!==0,[Kt,Zt]=f.useState();return Q(()=>{v&&Zt(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:N?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Kt,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Fo,{scope:n,placedSide:_,onArrowChange:C,arrowX:Xt,arrowY:Gt,shouldHideArrow:qt,children:P.jsx(te.div,{"data-side":_,"data-align":B,...g,ref:E,style:{...g.style,animation:N?void 0:"none"}})})})});Nt.displayName=ze;var Mt="PopperArrow",Wo={top:"bottom",right:"left",bottom:"top",left:"right"},_t=f.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Ho(Mt,o),s=Wo[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(Io,{...r,ref:n,style:{...r.style,display:"block"}})})});_t.displayName=Mt;function Bo(e){return e!==null}var zo=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[l,u]=kt(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+c/2,p=(r.arrow?.y??0)+a/2;let h="",g="";return l==="bottom"?(h=s?d:`${m}px`,g=`${-a}px`):l==="top"?(h=s?d:`${m}px`,g=`${o.floating.height+a}px`):l==="right"?(h=`${-a}px`,g=s?d:`${p}px`):l==="left"&&(h=`${o.floating.width+a}px`,g=s?d:`${p}px`),{data:{x:h,y:g}}}});function kt(e){const[t,n="center"]=e.split("-");return[t,n]}var Vo=St,Uo=Lt,Yo=Nt,Xo=_t;function Go(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var It=e=>{const{present:t,children:n}=e,o=qo(t),r=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),i=ee(o.ref,Ko(r));return typeof n=="function"||o.isPresent?f.cloneElement(r,{ref:i}):null};It.displayName="Presence";function qo(e){const[t,n]=f.useState(),o=f.useRef(null),r=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[c,a]=Go(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=me(o.current);i.current=c==="mounted"?l:"none"},[c]),Q(()=>{const l=o.current,u=r.current;if(u!==e){const m=i.current,p=me(l);e?a("MOUNT"):p==="none"||l?.display==="none"?a("UNMOUNT"):a(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),Q(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=me(o.current).includes(p.animationName);if(p.target===t&&g&&(a("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=p=>{p.target===t&&(i.current=me(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function me(e){return e?.animationName||"none"}function Ko(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zo=st[" useInsertionEffect ".trim().toString()]||Q;function Qo({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=Jo({defaultProp:t,onChange:n}),c=e!==void 0,a=c?e:r;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==c&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=c},[c,o])}const l=f.useCallback(u=>{if(c){const d=er(u)?u(e):u;d!==e&&s.current?.(d)}else i(u)},[c,e,i,s]);return[a,l]}function Jo({defaultProp:e,onChange:t}){const[n,o]=f.useState(e),r=f.useRef(n),i=f.useRef(t);return Zo(()=>{i.current=t},[t]),f.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function er(e){return typeof e=="function"}var tr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nr="VisuallyHidden",$t=f.forwardRef((e,t)=>P.jsx(te.span,{...e,ref:t,style:{...tr,...e.style}}));$t.displayName=nr;var or=$t,[Pe,Dr]=lt("Tooltip",[Ot]),Ae=Ot(),jt="TooltipProvider",rr=700,Me="tooltip.open",[ir,Ve]=Pe(jt),Ft=e=>{const{__scopeTooltip:t,delayDuration:n=rr,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=f.useRef(!0),c=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const l=a.current;return()=>window.clearTimeout(l)},[]),P.jsx(ir,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(l=>{c.current=l},[]),disableHoverableContent:r,children:i})};Ft.displayName=jt;var ue="Tooltip",[sr,Re]=Pe(ue),Ht=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,a=Ve(ue,e.__scopeTooltip),l=Ae(t),[u,d]=f.useState(null),m=En(),p=f.useRef(0),h=s??a.disableHoverableContent,g=c??a.delayDuration,y=f.useRef(!1),[v,w]=Qo({prop:o,defaultProp:r??!1,onChange:b=>{b?(a.onOpen(),document.dispatchEvent(new CustomEvent(Me))):a.onClose(),i?.(b)},caller:ue}),E=f.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),x=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),R=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,w(!0),p.current=0},g)},[g,w]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),P.jsx(Vo,{...l,children:P.jsx(sr,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?R():x()},[a.isOpenDelayedRef,R,x]),onTriggerLeave:f.useCallback(()=>{h?C():(window.clearTimeout(p.current),p.current=0)},[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};Ht.displayName=ue;var _e="TooltipTrigger",Wt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Re(_e,n),i=Ve(_e,n),s=Ae(n),c=f.useRef(null),a=ee(t,c,r.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(Uo,{asChild:!0,...s,children:P.jsx(te.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:X(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:X(e.onBlur,r.onClose),onClick:X(e.onClick,r.onClose)})})});Wt.displayName=_e;var cr="TooltipPortal",[Lr,ar]=Pe(cr,{forceMount:void 0}),re="TooltipContent",Bt=f.forwardRef((e,t)=>{const n=ar(re,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Re(re,e.__scopeTooltip);return P.jsx(It,{present:o||s.open,children:s.disableHoverableContent?P.jsx(zt,{side:r,...i,ref:t}):P.jsx(lr,{side:r,...i,ref:t})})}),lr=f.forwardRef((e,t)=>{const n=Re(re,e.__scopeTooltip),o=Ve(re,e.__scopeTooltip),r=f.useRef(null),i=ee(t,r),[s,c]=f.useState(null),{trigger:a,onClose:l}=n,u=r.current,{onPointerInTransitChange:d}=o,m=f.useCallback(()=>{c(null),d(!1)},[d]),p=f.useCallback((h,g)=>{const y=h.currentTarget,v={x:h.clientX,y:h.clientY},w=mr(v,y.getBoundingClientRect()),E=hr(v,w),x=gr(g.getBoundingClientRect()),C=vr([...E,...x]);c(C),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(a&&u){const h=y=>p(y,u),g=y=>p(y,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",g)}}},[a,u,p,m]),f.useEffect(()=>{if(s){const h=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},w=a?.contains(y)||u?.contains(y),E=!yr(v,s);w?m():E&&(m(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,s,l,m]),P.jsx(zt,{...e,ref:i})}),[ur,fr]=Pe(ue,{isInside:!1}),dr=cn("TooltipContent"),zt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,a=Re(re,n),l=Ae(n),{onClose:u}=a;return f.useEffect(()=>(document.addEventListener(Me,u),()=>document.removeEventListener(Me,u)),[u]),f.useEffect(()=>{if(a.trigger){const d=m=>{m.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,u]),P.jsx(dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:P.jsxs(Yo,{"data-state":a.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(dr,{children:o}),P.jsx(ur,{scope:n,isInside:!0,children:P.jsx(or,{id:a.contentId,role:"tooltip",children:r||o})})]})})});Bt.displayName=re;var Vt="TooltipArrow",pr=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ae(n);return fr(Vt,n).isInside?null:P.jsx(Xo,{...r,...o,ref:t})});pr.displayName=Vt;function mr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function hr(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function gr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function yr(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i],a=t[s],l=c.x,u=c.y,d=a.x,m=a.y;u>o!=m>o&&n<(d-l)*(o-u)/(m-u)+l&&(r=!r)}return r}function vr(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),wr(t)}function wr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xr=Ft,br=Ht,Cr=Wt,Ut=Bt;const Nr=xr,Er=br,Pr=Cr;function Yt({className:e,sideOffset:t=4,ref:n,...o}){return P.jsx(Ut,{ref:n,sideOffset:t,className:nn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}Yt.displayName=Ut.displayName;function Mr({content:e,children:t}){return e?P.jsxs(Er,{children:[P.jsx(Pr,{asChild:!0,children:t}),P.jsx(Yt,{children:e})]}):t}export{Uo as A,Yo as C,dt as D,te as P,Vo as R,Mr as S,Nr as T,tr as V,Er as a,Pr as b,Yt as c,lt as d,En as e,X as f,It as g,ee as h,Q as i,Ot as j,rn as k,Xo as l,xe as m,Sr as n,Qo as u};
|
|
2
|
-
//# sourceMappingURL=tooltip-
|
|
1
|
+
import{j as P}from"./jsx-runtime-EKYJJIwR.js";import{r as f,Q as st}from"./chunk-QMGIS6GS-CG5cA6CX.js";import{r as ct}from"./index-Bp_2FjuO.js";import{c as nn}from"./misc-DsJGqoYt.js";function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Xe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function at(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Xe(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Xe(e[r],null)}}}}function ee(...e){return f.useCallback(at(...e),e)}function Sr(e,t){const n=f.createContext(t),o=i=>{const{children:s,...c}=i,a=f.useMemo(()=>c,Object.values(c));return P.jsx(n.Provider,{value:a,children:s})};o.displayName=e+"Provider";function r(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function lt(e,t=[]){let n=[];function o(i,s){const c=f.createContext(s),a=n.length;n=[...n,s];const l=d=>{const{scope:m,children:p,...h}=d,g=m?.[e]?.[a]||c,y=f.useMemo(()=>h,Object.values(h));return P.jsx(g.Provider,{value:y,children:p})};l.displayName=i+"Provider";function u(d,m){const p=m?.[e]?.[a]||c,h=f.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(s=>f.createContext(s));return function(c){const a=c?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,on(r,...t)]}function on(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((c,{useScope:a,scopeName:l})=>{const d=a(i)[`__scope${l}`];return{...c,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function rn(e){const t=sn(e),n=f.forwardRef((o,r)=>{const{children:i,...s}=o,c=f.Children.toArray(i),a=c.find(an);if(a){const l=a.props.children,u=c.map(d=>d===a?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return P.jsx(t,{...s,ref:r,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return P.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function sn(e){const t=f.forwardRef((n,o)=>{const{children:r,...i}=n;if(f.isValidElement(r)){const s=un(r),c=ln(i,r.props);return r.type!==f.Fragment&&(c.ref=o?at(o,s):s),f.cloneElement(r,c)}return f.Children.count(r)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ut=Symbol("radix.slottable");function cn(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ut,t}function an(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ut}function ln(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...c)=>{const a=i(...c);return r(...c),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function un(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=fn.reduce((e,t)=>{const n=rn(`Primitive.${t}`),o=f.forwardRef((r,i)=>{const{asChild:s,...c}=r,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function dn(e,t){e&&ct.flushSync(()=>e.dispatchEvent(t))}function xe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function pn(e,t=globalThis?.document){const n=xe(e);f.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var mn="DismissableLayer",Se="dismissableLayer.update",hn="dismissableLayer.pointerDownOutside",gn="dismissableLayer.focusOutside",Ge,ft=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...a}=e,l=f.useContext(ft),[u,d]=f.useState(null),m=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),h=ee(t,b=>d(b)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),w=u?g.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,C=wn(b=>{const O=b.target,M=[...l.branches].some(T=>T.contains(O));!x||M||(r?.(b),s?.(b),b.defaultPrevented||c?.())},m),R=xn(b=>{const O=b.target;[...l.branches].some(T=>T.contains(O))||(i?.(b),s?.(b),b.defaultPrevented||c?.())},m);return pn(b=>{w===l.layers.size-1&&(o?.(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},m),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ge=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),qe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ge)}},[u,m,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),qe())},[u,l]),f.useEffect(()=>{const b=()=>p({});return document.addEventListener(Se,b),()=>document.removeEventListener(Se,b)},[]),P.jsx(te.div,{...a,ref:h,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,R.onFocusCapture),onBlurCapture:X(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,C.onPointerDownCapture)})});dt.displayName=mn;var yn="DismissableLayerBranch",vn=f.forwardRef((e,t)=>{const n=f.useContext(ft),o=f.useRef(null),r=ee(t,o);return f.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(te.div,{...e,ref:r})});vn.displayName=yn;function wn(e,t=globalThis?.document){const n=xe(e),o=f.useRef(!1),r=f.useRef(()=>{});return f.useEffect(()=>{const i=c=>{if(c.target&&!o.current){let a=function(){pt(hn,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function xn(e,t=globalThis?.document){const n=xe(e),o=f.useRef(!1);return f.useEffect(()=>{const r=i=>{i.target&&!o.current&&pt(gn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function qe(){const e=new CustomEvent(Se);document.dispatchEvent(e)}function pt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?dn(r,i):r.dispatchEvent(i)}var Q=globalThis?.document?f.useLayoutEffect:()=>{},bn=st[" useId ".trim().toString()]||(()=>{}),Cn=0;function En(e){const[t,n]=f.useState(bn());return Q(()=>{n(o=>o??String(Cn++))},[e]),e||(t?`radix-${t}`:"")}const Pn=["top","right","bottom","left"],K=Math.min,j=Math.max,ge=Math.round,pe=Math.floor,V=e=>({x:e,y:e}),An={left:"right",right:"left",bottom:"top",top:"bottom"},Rn={start:"end",end:"start"};function De(e,t,n){return j(e,K(t,n))}function G(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ke(e){return e==="x"?"y":"x"}function Ie(e){return e==="y"?"height":"width"}const On=new Set(["top","bottom"]);function z(e){return On.has(q(e))?"y":"x"}function $e(e){return ke(z(e))}function Tn(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=$e(e),i=Ie(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ye(s)),[s,ye(s)]}function Sn(e){const t=ye(e);return[Le(e),t,Le(t)]}function Le(e){return e.replace(/start|end/g,t=>Rn[t])}const Ke=["left","right"],Ze=["right","left"],Dn=["top","bottom"],Ln=["bottom","top"];function Nn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ze:Ke:t?Ke:Ze;case"left":case"right":return t?Dn:Ln;default:return[]}}function Mn(e,t,n,o){const r=ie(e);let i=Nn(q(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Le)))),i}function ye(e){return e.replace(/left|right|bottom|top/g,t=>An[t])}function _n(e){return{top:0,right:0,bottom:0,left:0,...e}}function mt(e){return typeof e!="number"?_n(e):{top:e,right:e,bottom:e,left:e}}function ve(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=z(t),s=$e(t),c=Ie(s),a=q(t),l=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let p;switch(a){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=m*(n&&l?-1:1);break;case"end":p[s]+=m*(n&&l?-1:1);break}return p}const kn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Qe(l,o,a),m=o,p={},h=0;for(let g=0;g<c.length;g++){const{name:y,fn:v}=c[g],{x:w,y:E,data:x,reset:C}=await v({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=E??d,p={...p,[y]:{...p[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:u,y:d}=Qe(l,m,a)),g=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=G(t,e),h=mt(p),y=c[m?d==="floating"?"reference":"floating":d],v=ve(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:a})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},C=ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:E,strategy:a}):w);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}const In=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};const d=mt(u),m={x:n,y:o},p=$e(r),h=Ie(p),g=await s.getDimensions(l),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-m[p]-i.floating[h],C=m[p]-i.reference[p],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let b=R?R[E]:0;(!b||!await(s.isElement==null?void 0:s.isElement(R)))&&(b=c.floating[E]||i.floating[h]);const O=x/2-C/2,M=b/2-g[h]/2-1,T=K(d[v],M),k=K(d[w],M),I=T,D=b-g[h]-k,S=b/2-g[h]/2+O,$=De(I,S,D),L=!a.arrow&&ie(r)!=null&&S!==$&&i.reference[h]/2-(S<I?T:k)-g[h]/2<0,N=L?S<I?S-I:S-D:0;return{[p]:m[p]+N,data:{[p]:$,centerOffset:S-$-N,...L&&{alignmentOffset:N}},reset:L}}}),$n=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=q(r),w=z(c),E=q(c)===c,x=await(a.isRTL==null?void 0:a.isRTL(l.floating)),C=m||(E||!g?[ye(c)]:Sn(c)),R=h!=="none";!m&&R&&C.push(...Mn(c,g,h,x));const b=[c,...C],O=await ae(t,y),M=[];let T=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&M.push(O[v]),d){const S=Tn(r,s,x);M.push(O[S[0]],O[S[1]])}if(T=[...T,{placement:r,overflows:M}],!M.every(S=>S<=0)){var k,I;const S=(((k=i.flip)==null?void 0:k.index)||0)+1,$=b[S];if($&&(!(d==="alignment"?w!==z($):!1)||T.every(A=>A.overflows[0]>0&&z(A.placement)===w)))return{data:{index:S,overflows:T},reset:{placement:$}};let L=(I=T.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:I.placement;if(!L)switch(p){case"bestFit":{var D;const N=(D=T.filter(A=>{if(R){const _=z(A.placement);return _===w||_==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((A,_)=>A[1]-_[1])[0])==null?void 0:D[0];N&&(L=N);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function Je(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function et(e){return Pn.some(t=>e[t]>=0)}const jn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=G(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=Je(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:et(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=Je(i,n.floating);return{data:{escapedOffsets:s,escaped:et(s)}}}default:return{}}}}},ht=new Set(["left","top"]);async function Fn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=q(n),c=ie(n),a=z(n)==="y",l=ht.has(s)?-1:1,u=i&&a?-1:1,d=G(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),a?{x:p*u,y:m*l}:{x:m*l,y:p*u}}const Hn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,a=await Fn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},Wn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...a}=G(e,t),l={x:n,y:o},u=await ae(t,a),d=z(q(r)),m=ke(d);let p=l[m],h=l[d];if(i){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=p+u[y],E=p-u[v];p=De(w,p,E)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=h+u[y],E=h-u[v];h=De(w,h,E)}const g=c.fn({...t,[m]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[d]:s}}}}}},Bn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:a=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:o},d=z(r),m=ke(d);let p=u[m],h=u[d];const g=G(c,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const E=m==="y"?"height":"width",x=i.reference[m]-i.floating[E]+y.mainAxis,C=i.reference[m]+i.reference[E]-y.mainAxis;p<x?p=x:p>C&&(p=C)}if(l){var v,w;const E=m==="y"?"width":"height",x=ht.has(q(r)),C=i.reference[d]-i.floating[E]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:y.crossAxis),R=i.reference[d]+i.reference[E]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?y.crossAxis:0);h<C?h=C:h>R&&(h=R)}return{[m]:p,[d]:h}}}},zn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:c}=t,{apply:a=()=>{},...l}=G(e,t),u=await ae(t,l),d=q(r),m=ie(r),p=z(r)==="y",{width:h,height:g}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=d,y=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,E=h-u.left-u.right,x=K(g-u[y],w),C=K(h-u[v],E),R=!t.middlewareData.shift;let b=x,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),R&&!m){const T=j(u.left,0),k=j(u.right,0),I=j(u.top,0),D=j(u.bottom,0);p?O=h-2*(T!==0||k!==0?T+k:j(u.left,u.right)):b=g-2*(I!==0||D!==0?I+D:j(u.top,u.bottom))}await a({...t,availableWidth:O,availableHeight:b});const M=await s.getDimensions(c.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function be(){return typeof window<"u"}function se(e){return gt(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gt(e){return be()?e instanceof Node||e instanceof F(e).Node:!1}function H(e){return be()?e instanceof Element||e instanceof F(e).Element:!1}function U(e){return be()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function tt(e){return!be()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}const Vn=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Vn.has(r)}const Un=new Set(["table","td","th"]);function Yn(e){return Un.has(se(e))}const Xn=[":popover-open",":modal"];function Ce(e){return Xn.some(t=>{try{return e.matches(t)}catch{return!1}})}const Gn=["transform","translate","scale","rotate","perspective"],qn=["transform","translate","scale","rotate","perspective","filter"],Kn=["paint","layout","strict","content"];function je(e){const t=Fe(),n=H(e)?W(e):e;return Gn.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qn.some(o=>(n.willChange||"").includes(o))||Kn.some(o=>(n.contain||"").includes(o))}function Zn(e){let t=Z(e);for(;U(t)&&!oe(t);){if(je(t))return t;if(Ce(t))return null;t=Z(t)}return null}function Fe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qn=new Set(["html","body","#document"]);function oe(e){return Qn.has(se(e))}function W(e){return F(e).getComputedStyle(e)}function Ee(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Y(e);return tt(t)?t.host:t}function yt(e){const t=Z(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:yt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=yt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=F(r);if(i){const c=Ne(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],c&&n?le(c):[])}return t.concat(r,le(r,[],n))}function Ne(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vt(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=U(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=ge(n)!==i||ge(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function He(e){return H(e)?e:e.contextElement}function ne(e){const t=He(e);if(!U(t))return V(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vt(t);let s=(i?ge(n.width):n.width)/o,c=(i?ge(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Jn=V(0);function wt(e){const t=F(e);return!Fe()||!t.visualViewport?Jn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function J(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=He(e);let s=V(1);t&&(o?H(o)&&(s=ne(o)):s=ne(e));const c=eo(i,n,o)?wt(i):V(0);let a=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=F(i),p=o&&H(o)?F(o):o;let h=m,g=Ne(h);for(;g&&o&&p!==h;){const y=ne(g),v=g.getBoundingClientRect(),w=W(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,x=v.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,l*=y.y,u*=y.x,d*=y.y,a+=E,l+=x,h=F(g),g=Ne(h)}}return ve({width:u,height:d,x:a,y:l})}function We(e,t){const n=Ee(e).scrollLeft;return t?t.left+n:J(Y(e)).left+n}function xt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:We(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function to(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Y(o),c=t?Ce(t.floating):!1;if(o===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},l=V(1);const u=V(0),d=U(o);if((d||!d&&!i)&&((se(o)!=="body"||fe(s))&&(a=Ee(o)),U(o))){const p=J(o);l=ne(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const m=s&&!d&&!i?xt(s,a,!0):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+u.x+m.x,y:n.y*l.y-a.scrollTop*l.y+u.y+m.y}}function no(e){return Array.from(e.getClientRects())}function oo(e){const t=Y(e),n=Ee(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+We(e);const c=-n.scrollTop;return W(o).direction==="rtl"&&(s+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}function ro(e,t){const n=F(e),o=Y(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,a=0;if(r){i=r.width,s=r.height;const l=Fe();(!l||l&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}return{width:i,height:s,x:c,y:a}}const io=new Set(["absolute","fixed"]);function so(e,t){const n=J(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=U(e)?ne(e):V(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=r*i.x,l=o*i.y;return{width:s,height:c,x:a,y:l}}function nt(e,t,n){let o;if(t==="viewport")o=ro(e,n);else if(t==="document")o=oo(Y(e));else if(H(t))o=so(t,n);else{const r=wt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ve(o)}function bt(e,t){const n=Z(e);return n===t||!H(n)||oe(n)?!1:W(n).position==="fixed"||bt(n,t)}function co(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(c=>H(c)&&se(c)!=="body"),r=null;const i=W(e).position==="fixed";let s=i?Z(e):e;for(;H(s)&&!oe(s);){const c=W(s),a=je(s);!a&&c.position==="fixed"&&(r=null),(i?!a&&!r:!a&&c.position==="static"&&!!r&&io.has(r.position)||fe(s)&&!a&&bt(e,s))?o=o.filter(u=>u!==s):r=c,s=Z(s)}return t.set(e,o),o}function ao(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ce(t)?[]:co(t,this._c):[].concat(n),o],c=s[0],a=s.reduce((l,u)=>{const d=nt(t,u,r);return l.top=j(d.top,l.top),l.right=K(d.right,l.right),l.bottom=K(d.bottom,l.bottom),l.left=j(d.left,l.left),l},nt(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function lo(e){const{width:t,height:n}=vt(e);return{width:t,height:n}}function uo(e,t,n){const o=U(t),r=Y(t),i=n==="fixed",s=J(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=V(0);function l(){a.x=We(r)}if(o||!o&&!i)if((se(t)!=="body"||fe(r))&&(c=Ee(t)),o){const p=J(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else r&&l();i&&!o&&r&&l();const u=r&&!o&&!i?xt(r,c):V(0),d=s.left+c.scrollLeft-a.x-u.x,m=s.top+c.scrollTop-a.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function Oe(e){return W(e).position==="static"}function ot(e,t){if(!U(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function Ct(e,t){const n=F(e);if(Ce(e))return n;if(!U(e)){let r=Z(e);for(;r&&!oe(r);){if(H(r)&&!Oe(r))return r;r=Z(r)}return n}let o=ot(e,t);for(;o&&Yn(o)&&Oe(o);)o=ot(o,t);return o&&oe(o)&&Oe(o)&&!je(o)?n:o||Zn(e)||n}const fo=async function(e){const t=this.getOffsetParent||Ct,n=this.getDimensions,o=await n(e.floating);return{reference:uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function po(e){return W(e).direction==="rtl"}const mo={convertOffsetParentRelativeRectToViewportRelativeRect:to,getDocumentElement:Y,getClippingRect:ao,getOffsetParent:Ct,getElementRects:fo,getClientRects:no,getDimensions:lo,getScale:ne,isElement:H,isRTL:po};function Et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ho(e,t){let n=null,o;const r=Y(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=l;if(c||t(),!m||!p)return;const h=pe(d),g=pe(r.clientWidth-(u+m)),y=pe(r.clientHeight-(d+p)),v=pe(u),E={rootMargin:-h+"px "+-g+"px "+-y+"px "+-v+"px",threshold:j(0,K(1,a))||1};let x=!0;function C(R){const b=R[0].intersectionRatio;if(b!==a){if(!x)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!Et(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(C,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,E)}n.observe(e)}return s(!0),i}function go(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=He(e),u=r||i?[...l?le(l):[],...le(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&c?ho(l,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let h,g=a?J(e):null;a&&y();function y(){const v=J(e);g&&!Et(g,v)&&n(),g=v,h=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const yo=Hn,vo=Wn,wo=$n,xo=zn,bo=jn,rt=In,Co=Bn,Eo=(e,t,n)=>{const o=new Map,r={platform:mo,...n},i={...r.platform,_c:o};return kn(e,t,{...r,platform:i})};var Po=typeof document<"u",Ao=function(){},he=Po?f.useLayoutEffect:Ao;function we(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!we(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!we(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function it(e,t){const n=Pt(e);return Math.round(t*n)/n}function Te(e){const t=f.useRef(e);return he(()=>{t.current=e}),t}function Ro(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:a,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=f.useState(o);we(m,o)||p(o);const[h,g]=f.useState(null),[y,v]=f.useState(null),w=f.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[]),E=f.useCallback(A=>{A!==b.current&&(b.current=A,v(A))},[]),x=i||h,C=s||y,R=f.useRef(null),b=f.useRef(null),O=f.useRef(u),M=a!=null,T=Te(a),k=Te(r),I=Te(l),D=f.useCallback(()=>{if(!R.current||!b.current)return;const A={placement:t,strategy:n,middleware:m};k.current&&(A.platform=k.current),Eo(R.current,b.current,A).then(_=>{const B={..._,isPositioned:I.current!==!1};S.current&&!we(O.current,B)&&(O.current=B,ct.flushSync(()=>{d(B)}))})},[m,t,n,k,I]);he(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const S=f.useRef(!1);he(()=>(S.current=!0,()=>{S.current=!1}),[]),he(()=>{if(x&&(R.current=x),C&&(b.current=C),x&&C){if(T.current)return T.current(x,C,D);D()}},[x,C,D,T,M]);const $=f.useMemo(()=>({reference:R,floating:b,setReference:w,setFloating:E}),[w,E]),L=f.useMemo(()=>({reference:x,floating:C}),[x,C]),N=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const _=it(L.floating,u.x),B=it(L.floating,u.y);return c?{...A,transform:"translate("+_+"px, "+B+"px)",...Pt(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:B}},[n,c,L.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:D,refs:$,elements:L,floatingStyles:N}),[u,D,$,L,N])}const Oo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?rt({element:o.current,padding:r}).fn(n):{}:o?rt({element:o,padding:r}).fn(n):{}}}},To=(e,t)=>({...yo(e),options:[e,t]}),So=(e,t)=>({...vo(e),options:[e,t]}),Do=(e,t)=>({...Co(e),options:[e,t]}),Lo=(e,t)=>({...wo(e),options:[e,t]}),No=(e,t)=>({...xo(e),options:[e,t]}),Mo=(e,t)=>({...bo(e),options:[e,t]}),_o=(e,t)=>({...Oo(e),options:[e,t]});var ko="Arrow",At=f.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(te.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});At.displayName=ko;var Io=At;function $o(e){const[t,n]=f.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const a=i.borderBoxSize,l=Array.isArray(a)?a[0]:a;s=l.inlineSize,c=l.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Be="Popper",[Rt,Ot]=lt(Be),[jo,Tt]=Rt(Be),St=e=>{const{__scopePopper:t,children:n}=e,[o,r]=f.useState(null);return P.jsx(jo,{scope:t,anchor:o,onAnchorChange:r,children:n})};St.displayName=Be;var Dt="PopperAnchor",Lt=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Tt(Dt,n),s=f.useRef(null),c=ee(t,s);return f.useEffect(()=>{i.onAnchorChange(o?.current||s.current)}),o?null:P.jsx(te.div,{...r,ref:c})});Lt.displayName=Dt;var ze="PopperContent",[Fo,Ho]=Rt(ze),Nt=f.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:a=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Tt(ze,n),[v,w]=f.useState(null),E=ee(t,ce=>w(ce)),[x,C]=f.useState(null),R=$o(x),b=R?.width??0,O=R?.height??0,M=o+(i!=="center"?"-"+i:""),T=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],I=k.length>0,D={padding:T,boundary:k.filter(Bo),altBoundary:I},{refs:S,floatingStyles:$,placement:L,isPositioned:N,middlewareData:A}=Ro({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>go(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[To({mainAxis:r+O,alignmentAxis:s}),a&&So({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Do():void 0,...D}),a&&Lo({...D}),No({...D,apply:({elements:ce,rects:Ye,availableWidth:Qt,availableHeight:Jt})=>{const{width:en,height:tn}=Ye.reference,de=ce.floating.style;de.setProperty("--radix-popper-available-width",`${Qt}px`),de.setProperty("--radix-popper-available-height",`${Jt}px`),de.setProperty("--radix-popper-anchor-width",`${en}px`),de.setProperty("--radix-popper-anchor-height",`${tn}px`)}}),x&&_o({element:x,padding:c}),zo({arrowWidth:b,arrowHeight:O}),m&&Mo({strategy:"referenceHidden",...D})]}),[_,B]=kt(L),Ue=xe(h);Q(()=>{N&&Ue?.()},[N,Ue]);const Xt=A.arrow?.x,Gt=A.arrow?.y,qt=A.arrow?.centerOffset!==0,[Kt,Zt]=f.useState();return Q(()=>{v&&Zt(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:N?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Kt,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Fo,{scope:n,placedSide:_,onArrowChange:C,arrowX:Xt,arrowY:Gt,shouldHideArrow:qt,children:P.jsx(te.div,{"data-side":_,"data-align":B,...g,ref:E,style:{...g.style,animation:N?void 0:"none"}})})})});Nt.displayName=ze;var Mt="PopperArrow",Wo={top:"bottom",right:"left",bottom:"top",left:"right"},_t=f.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Ho(Mt,o),s=Wo[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(Io,{...r,ref:n,style:{...r.style,display:"block"}})})});_t.displayName=Mt;function Bo(e){return e!==null}var zo=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[l,u]=kt(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+c/2,p=(r.arrow?.y??0)+a/2;let h="",g="";return l==="bottom"?(h=s?d:`${m}px`,g=`${-a}px`):l==="top"?(h=s?d:`${m}px`,g=`${o.floating.height+a}px`):l==="right"?(h=`${-a}px`,g=s?d:`${p}px`):l==="left"&&(h=`${o.floating.width+a}px`,g=s?d:`${p}px`),{data:{x:h,y:g}}}});function kt(e){const[t,n="center"]=e.split("-");return[t,n]}var Vo=St,Uo=Lt,Yo=Nt,Xo=_t;function Go(e,t){return f.useReducer((n,o)=>t[n][o]??n,e)}var It=e=>{const{present:t,children:n}=e,o=qo(t),r=typeof n=="function"?n({present:o.isPresent}):f.Children.only(n),i=ee(o.ref,Ko(r));return typeof n=="function"||o.isPresent?f.cloneElement(r,{ref:i}):null};It.displayName="Presence";function qo(e){const[t,n]=f.useState(),o=f.useRef(null),r=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[c,a]=Go(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=me(o.current);i.current=c==="mounted"?l:"none"},[c]),Q(()=>{const l=o.current,u=r.current;if(u!==e){const m=i.current,p=me(l);e?a("MOUNT"):p==="none"||l?.display==="none"?a("UNMOUNT"):a(u&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),Q(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const g=me(o.current).includes(p.animationName);if(p.target===t&&g&&(a("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=p=>{p.target===t&&(i.current=me(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function me(e){return e?.animationName||"none"}function Ko(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zo=st[" useInsertionEffect ".trim().toString()]||Q;function Qo({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=Jo({defaultProp:t,onChange:n}),c=e!==void 0,a=c?e:r;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==c&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=c},[c,o])}const l=f.useCallback(u=>{if(c){const d=er(u)?u(e):u;d!==e&&s.current?.(d)}else i(u)},[c,e,i,s]);return[a,l]}function Jo({defaultProp:e,onChange:t}){const[n,o]=f.useState(e),r=f.useRef(n),i=f.useRef(t);return Zo(()=>{i.current=t},[t]),f.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function er(e){return typeof e=="function"}var tr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nr="VisuallyHidden",$t=f.forwardRef((e,t)=>P.jsx(te.span,{...e,ref:t,style:{...tr,...e.style}}));$t.displayName=nr;var or=$t,[Pe,Dr]=lt("Tooltip",[Ot]),Ae=Ot(),jt="TooltipProvider",rr=700,Me="tooltip.open",[ir,Ve]=Pe(jt),Ft=e=>{const{__scopeTooltip:t,delayDuration:n=rr,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=f.useRef(!0),c=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const l=a.current;return()=>window.clearTimeout(l)},[]),P.jsx(ir,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(l=>{c.current=l},[]),disableHoverableContent:r,children:i})};Ft.displayName=jt;var ue="Tooltip",[sr,Re]=Pe(ue),Ht=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,a=Ve(ue,e.__scopeTooltip),l=Ae(t),[u,d]=f.useState(null),m=En(),p=f.useRef(0),h=s??a.disableHoverableContent,g=c??a.delayDuration,y=f.useRef(!1),[v,w]=Qo({prop:o,defaultProp:r??!1,onChange:b=>{b?(a.onOpen(),document.dispatchEvent(new CustomEvent(Me))):a.onClose(),i?.(b)},caller:ue}),E=f.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),x=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,w(!0)},[w]),C=f.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),R=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,w(!0),p.current=0},g)},[g,w]);return f.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),P.jsx(Vo,{...l,children:P.jsx(sr,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?R():x()},[a.isOpenDelayedRef,R,x]),onTriggerLeave:f.useCallback(()=>{h?C():(window.clearTimeout(p.current),p.current=0)},[C,h]),onOpen:x,onClose:C,disableHoverableContent:h,children:n})})};Ht.displayName=ue;var _e="TooltipTrigger",Wt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Re(_e,n),i=Ve(_e,n),s=Ae(n),c=f.useRef(null),a=ee(t,c,r.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(Uo,{asChild:!0,...s,children:P.jsx(te.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:X(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:X(e.onBlur,r.onClose),onClick:X(e.onClick,r.onClose)})})});Wt.displayName=_e;var cr="TooltipPortal",[Lr,ar]=Pe(cr,{forceMount:void 0}),re="TooltipContent",Bt=f.forwardRef((e,t)=>{const n=ar(re,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Re(re,e.__scopeTooltip);return P.jsx(It,{present:o||s.open,children:s.disableHoverableContent?P.jsx(zt,{side:r,...i,ref:t}):P.jsx(lr,{side:r,...i,ref:t})})}),lr=f.forwardRef((e,t)=>{const n=Re(re,e.__scopeTooltip),o=Ve(re,e.__scopeTooltip),r=f.useRef(null),i=ee(t,r),[s,c]=f.useState(null),{trigger:a,onClose:l}=n,u=r.current,{onPointerInTransitChange:d}=o,m=f.useCallback(()=>{c(null),d(!1)},[d]),p=f.useCallback((h,g)=>{const y=h.currentTarget,v={x:h.clientX,y:h.clientY},w=mr(v,y.getBoundingClientRect()),E=hr(v,w),x=gr(g.getBoundingClientRect()),C=vr([...E,...x]);c(C),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(a&&u){const h=y=>p(y,u),g=y=>p(y,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",g)}}},[a,u,p,m]),f.useEffect(()=>{if(s){const h=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},w=a?.contains(y)||u?.contains(y),E=!yr(v,s);w?m():E&&(m(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,s,l,m]),P.jsx(zt,{...e,ref:i})}),[ur,fr]=Pe(ue,{isInside:!1}),dr=cn("TooltipContent"),zt=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,a=Re(re,n),l=Ae(n),{onClose:u}=a;return f.useEffect(()=>(document.addEventListener(Me,u),()=>document.removeEventListener(Me,u)),[u]),f.useEffect(()=>{if(a.trigger){const d=m=>{m.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,u]),P.jsx(dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:P.jsxs(Yo,{"data-state":a.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(dr,{children:o}),P.jsx(ur,{scope:n,isInside:!0,children:P.jsx(or,{id:a.contentId,role:"tooltip",children:r||o})})]})})});Bt.displayName=re;var Vt="TooltipArrow",pr=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ae(n);return fr(Vt,n).isInside?null:P.jsx(Xo,{...r,...o,ref:t})});pr.displayName=Vt;function mr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function hr(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function gr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function yr(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i],a=t[s],l=c.x,u=c.y,d=a.x,m=a.y;u>o!=m>o&&n<(d-l)*(o-u)/(m-u)+l&&(r=!r)}return r}function vr(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),wr(t)}function wr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xr=Ft,br=Ht,Cr=Wt,Ut=Bt;const Nr=xr,Er=br,Pr=Cr;function Yt({className:e,sideOffset:t=4,ref:n,...o}){return P.jsx(Ut,{ref:n,sideOffset:t,className:nn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}Yt.displayName=Ut.displayName;function Mr({content:e,children:t}){return e?P.jsxs(Er,{children:[P.jsx(Pr,{asChild:!0,children:t}),P.jsx(Yt,{children:e})]}):t}export{Uo as A,Yo as C,dt as D,te as P,Vo as R,Mr as S,Nr as T,tr as V,Er as a,Pr as b,Yt as c,lt as d,En as e,X as f,It as g,ee as h,Q as i,Ot as j,rn as k,Xo as l,xe as m,Sr as n,Qo as u};
|
|
2
|
+
//# sourceMappingURL=tooltip-CTw4ab49.js.map
|