@preply/ds-docs 9.0.0 → 9.1.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/dist/assets/{00.LayoutFlex.stories-Dg87GSaL.js → 00.LayoutFlex.stories-BYXnY64p.js} +1 -1
- package/dist/assets/{00.applications-DuAVl9Uu.js → 00.applications-BsH2V3W_.js} +1 -1
- package/dist/assets/{00.favicons.guide-DVJeHh68.js → 00.favicons.guide-eBYOUVUH.js} +1 -1
- package/dist/assets/{00.token-explorer-CeGesqx6.js → 00.token-explorer-B2ulyaA-.js} +1 -1
- package/dist/assets/{00.using-responsive-props-EFJN_f6o.js → 00.using-responsive-props-CTjUYXUc.js} +1 -1
- package/dist/assets/{01.semantic-tokens-BXgFVzXr.js → 01.semantic-tokens-DaqL26gu.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-IXrWatuj.js → 01.using-shorthand-props-CwDUu5-3.js} +1 -1
- package/dist/assets/{10.Combinations.stories-zbnD3HFM.js → 10.Combinations.stories-DyRUlGlL.js} +1 -1
- package/dist/assets/{10.fonts.guide-DCwKlvbu.js → 10.fonts.guide-DeXmgJeZ.js} +1 -1
- package/dist/assets/{10.ssr-D01_bXEP.js → 10.ssr-Cc4-BW5H.js} +1 -1
- package/dist/assets/11.fonts.explorer-ZD_-8450.js +2 -0
- package/dist/assets/{11.ssr.app-router-Bo3eKddM.js → 11.ssr.app-router-D1SE_zWj.js} +1 -1
- package/dist/assets/{20.libraries-jKMh3ar0.js → 20.libraries-DfhUsp74.js} +1 -1
- package/dist/assets/{2025-q4-ds-cleanup-Bu4orcOa.js → 2025-q4-ds-cleanup-DGnTtnn3.js} +1 -1
- package/dist/assets/{30.icons.explorer-C9IE62G2.js → 30.icons.explorer-D0CP2r0K.js} +2 -2
- package/dist/assets/{30.storybook-DIp10jfK.js → 30.storybook-fiICi3pf.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-D23bTPy_.js → 40.illustrations.explorer-BAusB8PF.js} +1 -1
- package/dist/assets/{90.advanced-DqmrsXoy.js → 90.advanced-DcSeiSZJ.js} +1 -1
- package/dist/assets/{Accordion-DxNzeFBJ.js → Accordion-BEPo4ld1.js} +4 -4
- package/dist/assets/{Accordion.stories-anse7uf1.js → Accordion.stories-BQqvv6_w.js} +1 -1
- package/dist/assets/{Accordion.tests.stories-DoGc7az7.js → Accordion.tests.stories-CbPTut9X.js} +1 -1
- package/dist/assets/{AlertBanner.primitives.stories-f7g-qsm5.js → AlertBanner.primitives.stories-B8wM25gx.js} +1 -1
- package/dist/assets/{AlertBanner.stories-DDbmK3Yc.js → AlertBanner.stories-CMG9DJ2x.js} +21 -9
- package/dist/assets/{AlertBannerText-CVGRB8DE.js → AlertBannerText-CmhnTe_E.js} +41 -41
- package/dist/assets/{AlertDialog.stories-DnaVSU9D.js → AlertDialog.stories-DizQy7gK.js} +1 -1
- package/dist/assets/{Avatar-BysKY9Is.js → Avatar-DooDODLU.js} +1 -1
- package/dist/assets/{Avatar.stories-BByTHGPI.js → Avatar.stories-D7qshDw_.js} +1 -1
- package/dist/assets/{AvatarWithStatus.stories-F9rm0dfc.js → AvatarWithStatus.stories-Dj6jZHHV.js} +1 -1
- package/dist/assets/{Badge-DgknZ2WQ.js → Badge-BOSHGFZw.js} +2 -2
- package/dist/assets/{Badge.stories-Cyx1byUJ.js → Badge.stories-D2WAGDpD.js} +1 -1
- package/dist/assets/{Box.stories-Bk6oJz6t.js → Box.stories-CHbntlOv.js} +1 -1
- package/dist/assets/{BubbleCounter.stories-D5J9h2cc.js → BubbleCounter.stories-DTv3QqdJ.js} +1 -1
- package/dist/assets/{Button-Dwk3YNxM.js → Button-C8B7W2Qo.js} +1 -1
- package/dist/assets/{Button-8TyghF-W.js → Button-KCBOR544.js} +3 -3
- package/dist/assets/{Button.stories-BCxVpHzQ.js → Button.stories-pEk6dWrs.js} +1 -1
- package/dist/assets/{ButtonBase-D85CySUD.js → ButtonBase-D1x6yeKi.js} +2 -2
- package/dist/assets/{CalloutBanner.stories-CeOpX8jY.js → CalloutBanner.stories-C-mTLhQp.js} +20 -20
- package/dist/assets/{Checkbox-sClu0CX-.js → Checkbox-BpQ-rwun.js} +3 -3
- package/dist/assets/{Checkbox.stories-DnFx9Fe8.js → Checkbox.stories-DsN55u_O.js} +1 -1
- package/dist/assets/{Checkbox.tests.stories-mrARYS3G.js → Checkbox.tests.stories-Bep_STbH.js} +1 -1
- package/dist/assets/{Chips.stories-tq4wQiCV.js → Chips.stories-Da8J7RES.js} +1 -1
- package/dist/assets/{Color-ASIRERSW-CCDuOJcx.js → Color-ASIRERSW-DWyFOMGN.js} +1 -1
- package/dist/assets/{ComposingPopovers.stories-BHJBVB7G.js → ComposingPopovers.stories-qqCHKKj8.js} +1 -1
- package/dist/assets/CountryFlag-CSGb4nau.js +49 -0
- package/dist/assets/{CountryFlag.stories-PLGwrkX-.js → CountryFlag.stories-DQpEMYMX.js} +1 -1
- package/dist/assets/{CountryFlag.test.stories-DyIRt-yG.js → CountryFlag.test.stories-CzcCUxia.js} +1 -1
- package/dist/assets/{Dialog-CbS23AlC.js → Dialog-Bmg2gpCM.js} +3 -3
- package/dist/assets/Dialog.primitives-DLgD-yog.css +1 -0
- package/dist/assets/Dialog.primitives.stories-CSDdsj-9.js +213 -0
- package/dist/assets/Dialog.stories-BfS-yGJK.js +248 -0
- package/dist/assets/{Dialog.test.stories-BbYJTVXB.js → Dialog.test.stories-DngMxsX4.js} +4 -4
- package/dist/assets/{DialogActions-DqsdBLDH.js → DialogActions-DTUDyqFX.js} +34 -34
- package/dist/assets/DialogTitle-8iZEMHpI.css +1 -0
- package/dist/assets/{DialogTitle-Cwjppmjv.js → DialogTitle-DJPc1ITB.js} +52 -52
- package/dist/assets/DismissibleChips-CRFGhm8B.js +1 -0
- package/dist/assets/{DismissibleChips.stories-SUVqKwVa.js → DismissibleChips.stories-Bi-ob_1G.js} +1 -1
- package/dist/assets/{Divider-UpivNe1W.js → Divider-CPpmQZmq.js} +1 -1
- package/dist/assets/{Divider.stories-FPMS1aC5.js → Divider.stories-CfHb5qbc.js} +1 -1
- package/dist/assets/{DocsRenderer-GHJI37HO-inYhWn1T.js → DocsRenderer-GHJI37HO-DtP4EKUP.js} +2 -2
- package/dist/assets/{DropdownMenu-RBToMXkL.js → DropdownMenu-N9_otewg.js} +430 -430
- package/dist/assets/{DropdownMenu.stories-BpEhFeX_.js → DropdownMenu.stories-CEAGHTed.js} +1 -1
- package/dist/assets/{FieldButton-D-3o-lMh.js → FieldButton-CCXniKhy.js} +1 -1
- package/dist/assets/{FieldButton.stories-Cc6AvbxX.js → FieldButton.stories-CJM_6H-S.js} +1 -1
- package/dist/assets/{FormControl-BwXDY9-m.js → FormControl-CygcWV_h.js} +1 -1
- package/dist/assets/{FormControl.stories-CI2bBHKa.js → FormControl.stories-C5u8y2E-.js} +1 -1
- package/dist/assets/{Heading-IAeZxORQ.js → Heading-Bie8QWaf.js} +1 -1
- package/dist/assets/{Heading.stories-B8NU4XH8.js → Heading.stories-D0fztdY8.js} +1 -1
- package/dist/assets/{Icon-CeynEPoQ.js → Icon-BX3I9JNh.js} +2 -2
- package/dist/assets/{Icon-RSC-DFJrR2oE.js → Icon-RSC-D3qlB5DK.js} +1 -1
- package/dist/assets/{Icon.stories-BuiwbRD-.js → Icon.stories-By891-S7.js} +1 -1
- package/dist/assets/IconButton-DVKNd7ZK.js +8 -0
- package/dist/assets/{IconTile.stories-D1hs9-qb.js → IconTile.stories-Dns_iBHK.js} +1 -1
- package/dist/assets/{Input-CqcqWEMs.js → Input-DwA6-keB.js} +18 -18
- package/dist/assets/{InputContainer-BFzIl3Vh.js → InputContainer-BM2ePliH.js} +1 -1
- package/dist/assets/{IntegrationWithReactHookForm.stories-HiLJZYEt.js → IntegrationWithReactHookForm.stories-mIoeMj7y.js} +1 -1
- package/dist/assets/{IntlFormattedCurrency.stories-YQIIjsGq.js → IntlFormattedCurrency.stories-7qKke3dW.js} +9 -9
- package/dist/assets/{IntlFormattedDateTime.stories-DLOaS3DY.js → IntlFormattedDateTime.stories-C2pI0ems.js} +7 -7
- package/dist/assets/{LayoutFlex-FxpGriXb.js → LayoutFlex-0WdUDfah.js} +1 -1
- package/dist/assets/{LayoutFlex-C9OAa1US.js → LayoutFlex-BnIoY5YK.js} +1 -1
- package/dist/assets/{LayoutFlexItem-B-MjINJK.js → LayoutFlexItem-9sCC-db-.js} +1 -1
- package/dist/assets/{LayoutGrid-DxGs2sRc.js → LayoutGrid-DfyCnoOo.js} +1 -1
- package/dist/assets/{LayoutGrid-YA3eCKBR.js → LayoutGrid-DqPWofJQ.js} +1 -1
- package/dist/assets/{LayoutGrid.stories-_KpVIpCb.js → LayoutGrid.stories-CPzyKie2.js} +1 -1
- package/dist/assets/{LayoutGridItem-C13waGcp.js → LayoutGridItem-BhNbXpRk.js} +1 -1
- package/dist/assets/{Link-D4CS5-70.js → Link-C686zlPi.js} +1 -1
- package/dist/assets/{Link.stories-dnKLDj_t.js → Link.stories-NTXG_YAN.js} +1 -1
- package/dist/assets/{Loader.stories-C_tJzTNQ.js → Loader.stories-CobXaiZW.js} +1 -1
- package/dist/assets/MultiSelectChips-DJ1p23QD.js +2 -0
- package/dist/assets/{MultiSelectChips.stories-Cup_MZ5f.js → MultiSelectChips.stories-D8qk9Xh6.js} +1 -1
- package/dist/assets/{NativeSelectField.stories-yUJmHEFy.js → NativeSelectField.stories-BDO41u_T.js} +21 -21
- package/dist/assets/{NumberField-B9tJ_84a.js → NumberField-DmosE2JM.js} +4 -4
- package/dist/assets/{NumberField.stories-CWKhXBUS.js → NumberField.stories-Dcw2SaBe.js} +1 -1
- package/dist/assets/{ObserveIntersection-cLHrROGT.js → ObserveIntersection-Be6WqdPA.js} +2 -2
- package/dist/assets/{ObserveIntersection.stories-vF80i0Li.js → ObserveIntersection.stories-DZmhDs2t.js} +1 -1
- package/dist/assets/{OnboardingTooltip-h7CPBh1u.js → OnboardingTooltip-CsTure6K.js} +1 -1
- package/dist/assets/{OnboardingTooltip.stories-DkNlz-Ad.js → OnboardingTooltip.stories-C_B-G4_v.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-B3eXtCbM.js → OnboardingTooltip.tests.stories-CpZhGhGz.js} +1 -1
- package/dist/assets/{OnboardingTour-DjRE-J8f.js → OnboardingTour-Dsl4caiq.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-Dk65Z8oq.js → OnboardingTour.stories-DqC8M1Kd.js} +2 -2
- package/dist/assets/{OnboardingTour.tests.stories-Bnw00zW2.js → OnboardingTour.tests.stories-DGFSuiWj.js} +1 -1
- package/dist/assets/{PasswordField-XLhtbx29.js → PasswordField-DQuar8x2.js} +4 -4
- package/dist/assets/{PasswordField.stories-BtG0wGS0.js → PasswordField.stories-CZeXEfzi.js} +1 -1
- package/dist/assets/{PreplyLogo.stories-D1k24Ctu.js → PreplyLogo.stories-shAJfg57.js} +1 -1
- package/dist/assets/{ProgressBar.stories-9msYqEY0.js → ProgressBar.stories-iYTaP7-a.js} +1 -1
- package/dist/assets/{ProgressSteps-B2XQcdLG.js → ProgressSteps-Dq6mpMpu.js} +1 -1
- package/dist/assets/{ProgressSteps.stories-pl79KFEi.js → ProgressSteps.stories-DHMPLYQI.js} +1 -1
- package/dist/assets/{PromoDialog-CxF7WOnO.js → PromoDialog-D8vw3Grl.js} +1 -1
- package/dist/assets/{RangeSlider-B2Zouc8q.js → RangeSlider-Bhq0kPco.js} +1 -1
- package/dist/assets/{RangeSlider.stories-BAV1yY1C.js → RangeSlider.stories-g3pQNpDu.js} +1 -1
- package/dist/assets/{Rating.stories-BQVfxE6g.js → Rating.stories-CjioX0Al.js} +1 -1
- package/dist/assets/{RatingInput.stories-43LjC1w-.js → RatingInput.stories-D33p4lyo.js} +2 -2
- package/dist/assets/{SelectField-BvfGJpJ1.js → SelectField-Dndb8yfM.js} +12 -12
- package/dist/assets/{SelectField.stories-Il6MnDL1.js → SelectField.stories-CvIWxsEK.js} +1 -1
- package/dist/assets/{ShowOnIntersection.stories-FpYY0Q8q.js → ShowOnIntersection.stories-dFG1F9xz.js} +1 -1
- package/dist/assets/SingleSelectChips-BqEBu1qF.js +2 -0
- package/dist/assets/{SingleSelectChips.stories-CJZKH2U4.js → SingleSelectChips.stories-CUP8Bkco.js} +1 -1
- package/dist/assets/{Slider-B0S-MnFm.js → Slider-BECc3Wis.js} +1 -1
- package/dist/assets/{Slider.stories-B9M2oZ8y.js → Slider.stories-DjmgzkjU.js} +1 -1
- package/dist/assets/{Spinner-VeUQXU7V.js → Spinner-lj2QA4al.js} +1 -1
- package/dist/assets/{Stars-BBLs0oLi.js → Stars-jpVWvTeN.js} +1 -1
- package/dist/assets/{Steps-BxR2mZ1_.js → Steps-GOg1wsKY.js} +1 -1
- package/dist/assets/{Steps.stories-Dnws6acU.js → Steps.stories-kIC1j0Ik.js} +1 -1
- package/dist/assets/{Switch-CJwqtDn5.js → Switch-7aX4SIla.js} +1 -1
- package/dist/assets/{Switch.stories-DhI28GEc.js → Switch.stories-DT7OULK4.js} +1 -1
- package/dist/assets/{Text-CjzJNqHA.js → Text-CmJvwKqR.js} +1 -1
- package/dist/assets/{Text-CPACpRkz.js → Text-cq49jjad.js} +1 -1
- package/dist/assets/{Text.stories-B8yS59PB.js → Text.stories-CS1pqas4.js} +1 -1
- package/dist/assets/{TextField-DJcEjzcv.js → TextField-BkMawuql.js} +4 -4
- package/dist/assets/{TextField.stories-tVGWW2yJ.js → TextField.stories-CzFG171A.js} +1 -1
- package/dist/assets/{TextHighlighted.stories-BRgLkJWh.js → TextHighlighted.stories-CLRQJAB8.js} +1 -1
- package/dist/assets/{TextInline.stories-jXEa0vA8.js → TextInline.stories-DSzsl_kb.js} +1 -1
- package/dist/assets/{TextareaField-BG6B7Nx9.js → TextareaField-DBMUxHiI.js} +21 -21
- package/dist/assets/{TextareaField.stories-BD-9LN8n.js → TextareaField.stories-CUD2MBoL.js} +1 -1
- package/dist/assets/{Toast.stories-BKG1hvy6.js → Toast.stories-DPD668gP.js} +1 -1
- package/dist/assets/{TokyoUIAttach-8ypdmAyG.js → TokyoUIAttach-BtX3U917.js} +1 -1
- package/dist/assets/{TokyoUIAvailability7LateNight-DbyckCtx.js → TokyoUIAvailability7LateNight-CjHQEFhh.js} +1 -1
- package/dist/assets/{TokyoUICheck-DyeJxS4m.js → TokyoUICheck-DfGyg7qp.js} +1 -1
- package/dist/assets/{TokyoUICheckmark-E1IDF8Dm.js → TokyoUICheckmark-CittwpP4.js} +1 -1
- package/dist/assets/{TokyoUIChevronDown-Bqnin0me.js → TokyoUIChevronDown-D9z1Bocr.js} +1 -1
- package/dist/assets/{TokyoUIChevronRight-BUlmcwhk.js → TokyoUIChevronRight-DQBrjC0F.js} +1 -1
- package/dist/assets/{TokyoUIClose-DpSNWwxX.js → TokyoUIClose-C1pVTvLz.js} +1 -1
- package/dist/assets/{TokyoUIEmojiFrowning-Cns9Y9eQ.js → TokyoUIEmojiFrowning-D-sR3DAq.js} +1 -1
- package/dist/assets/{TokyoUIErrorWarning-BoJjXvv2.js → TokyoUIErrorWarning-CDZ53m2_.js} +1 -1
- package/dist/assets/{TokyoUIExerciseClosedGapsJumble-C_YhJafE.js → TokyoUIExerciseClosedGapsJumble-DYuDUGYW.js} +1 -1
- package/dist/assets/{TokyoUIEye-DBRRGjL1.js → TokyoUIEye-Bgb_ZF1l.js} +1 -1
- package/dist/assets/{TokyoUIFav-B5fsDXJO.js → TokyoUIFav-B1z6F-nK.js} +1 -1
- package/dist/assets/{TokyoUIInfo-B-nyxu9X.js → TokyoUIInfo-CwPA0O_V.js} +1 -1
- package/dist/assets/{TokyoUILanguage-DVvpEITD.js → TokyoUILanguage-Cnby-Siw.js} +1 -1
- package/dist/assets/{TokyoUILibraryExplore-DpTmvI5A.js → TokyoUILibraryExplore-D3Zqdc29.js} +1 -1
- package/dist/assets/{TokyoUILock-BenGJzbt.js → TokyoUILock-BVVVVd2O.js} +1 -1
- package/dist/assets/{TokyoUIMessages-wIafFsU2.js → TokyoUIMessages-B0IlDk1q.js} +1 -1
- package/dist/assets/{TokyoUIMinus-BEm8txMB.js → TokyoUIMinus-Bev2a7lF.js} +1 -1
- package/dist/assets/{TokyoUINotebook-KTkhwr1a.js → TokyoUINotebook-BCMFA3qu.js} +1 -1
- package/dist/assets/{TokyoUINotesWithPad-yqIw3i8c.js → TokyoUINotesWithPad-Bi4bu_3q.js} +1 -1
- package/dist/assets/{TokyoUIPhone-DeqV10GH.js → TokyoUIPhone-CX3CAtW4.js} +1 -1
- package/dist/assets/{TokyoUISettings-AUPAZo6H.js → TokyoUISettings-BlCV0s5R.js} +1 -1
- package/dist/assets/{TokyoUISparkle-Rlb1iC0a.js → TokyoUISparkle-C5euAhof.js} +1 -1
- package/dist/assets/{TokyoUIStarFilled-D232Uw9P.js → TokyoUIStarFilled-Dm7Rk3-6.js} +1 -1
- package/dist/assets/{TokyoUITag-CoRJX_jx.js → TokyoUITag-CxUsuh1h.js} +1 -1
- package/dist/assets/{TokyoUIUpload-B4cXgnHx.js → TokyoUIUpload-C50QSO0I.js} +1 -1
- package/dist/assets/{TokyoUIUser-utjsvyKG.js → TokyoUIUser-Cb3Rabu0.js} +1 -1
- package/dist/assets/{Tooltip-B2g58MT9.js → Tooltip-Zk6DNyQp.js} +1 -1
- package/dist/assets/{Tooltip.stories-U-p1zkCO.js → Tooltip.stories-DvCDg7L5.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-CZN7G-4k.js → Tooltip.tests.stories-DhLZuVsr.js} +1 -1
- package/dist/assets/{VisuallyHidden-oCB6vAK-.js → VisuallyHidden-lSSiGvdb.js} +1 -1
- package/dist/assets/{WithTooltip-IO6J4KBT-C9k24wac.js → WithTooltip-IO6J4KBT-BXUfDxdY.js} +1 -1
- package/dist/assets/{align-self-O6ejL7Ql.js → align-self-kXdO3hx1.js} +1 -1
- package/dist/assets/{axe-BzWvr5Jj.js → axe-D9-qZHEg.js} +1 -1
- package/dist/assets/{breakpoints-BjNHuaYo.js → breakpoints-C7qnntd1.js} +1 -1
- package/dist/assets/{breakpoints-C3Ozj99D.js → breakpoints-Cmpvj56z.js} +1 -1
- package/dist/assets/{breakpoints-DZ-M3yCb.js → breakpoints-QW-40zGS.js} +1 -1
- package/dist/assets/{changelog-DjYuyXm0.js → changelog-BWMxpTM2.js} +33 -1
- package/dist/assets/{client-B-EU1hAd.js → client-DvDoBCIp.js} +1 -1
- package/dist/assets/componentNames-hc9KR2nX.js +1 -0
- package/dist/assets/{constants-Dds16Uxa.js → constants-6ClT3n6m.js} +47 -47
- package/dist/assets/createRequiredContext-63KJmEaI.js +241 -0
- package/dist/assets/fonts-explorer-BKje7Hq_.css +1 -0
- package/dist/assets/fonts-explorer.stories-DP7h1C3f.js +130 -0
- package/dist/assets/{formatter-QJ4M4OGQ-BCmZt7NY.js → formatter-QJ4M4OGQ-kybJ6bB6.js} +1 -1
- package/dist/assets/{getTokenVar-CcURh2_L.js → getTokenVar-CszfVUbW.js} +1 -1
- package/dist/assets/getTokenVar-DntuTYid.js +1 -0
- package/dist/assets/{gradientBorders-CDHKf4Q9.js → gradientBorders-DRFre4M2.js} +1 -1
- package/dist/assets/{hover-C0jiF-AA.js → hover-D3OYWSUH.js} +1 -1
- package/dist/assets/{hover-DKZD2ovS.js → hover-DLl5EEx6.js} +1 -1
- package/dist/assets/{hover-B-P2TGdW.js → hover-DVoxXiPd.js} +1 -1
- package/dist/assets/{iframe-C8q8wjEm.js → iframe-CpMEswOF.js} +16 -16
- package/dist/assets/iframe-DR4kltvM.css +1 -0
- package/dist/assets/index-9rU-ZrVj.js +75 -0
- package/dist/assets/{index-YHu3r2_4.js → index-B_7ihsZD.js} +1 -1
- package/dist/assets/{index-BPdSA514.js → index-Cc28ZUNU.js} +1 -1
- package/dist/assets/{index-B2swU3YW.js → index-DT-MbRPK.js} +1 -1
- package/dist/assets/{index-BXUrJfTG.js → index-IVtS1ZoW.js} +1 -1
- package/dist/assets/{index-DYYdejgZ.js → index-dUCHvwfu.js} +1 -1
- package/dist/assets/{index-z06tkxNB.js → index-jLr7d-Kb.js} +1 -1
- package/dist/assets/{intro-BnVMZbuP.js → intro-1RVcci_B.js} +1 -1
- package/dist/assets/{layout-relative-Dd32P_-n.js → layout-relative-Bq7IHzTJ.js} +1 -1
- package/dist/assets/{layout-relative.module-1z75aSwo-DgGwh4VK.js → layout-relative.module-1z75aSwo-B4ha7m6U.js} +1 -1
- package/dist/assets/{layout-relative.module-C_WdSsa7.js → layout-relative.module-Bhi7U482.js} +1 -1
- package/dist/assets/{mcp-DPh13jjA.js → mcp-D4dEnAH6.js} +1 -1
- package/dist/assets/{message-C3RuDR6M.js → message-CTdBLxyt.js} +1 -1
- package/dist/assets/{migrating-from-less-BOBBwDyN.js → migrating-from-less-DyPFNe_D.js} +1 -1
- package/dist/assets/{playground.stories-ROyNG5YC.js → playground.stories-Cd-KauE2.js} +1 -1
- package/dist/assets/{react-18-CrwdWUsF.js → react-18-B6ZQhKaW.js} +1 -1
- package/dist/assets/{render-icon-DTP0kMmm.js → render-icon-CiYBms-s.js} +1 -1
- package/dist/assets/{render-icon-rjyGnIsi.js → render-icon-c7okze1K.js} +1 -1
- package/dist/assets/{shared-strings-CDaZX-3B.js → shared-strings-BChji30Y.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-BYN4S5sO.js → styled-components.browser.esm-Cm3dhVk9.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-Dlze6hxw.js → styled-components.browser.esm-DsMoKq9m.js} +1 -1
- package/dist/assets/{syntaxhighlighter-IQDEPFLK-6Oa5UCHB.js → syntaxhighlighter-IQDEPFLK-ckmVX3NN.js} +1 -1
- package/dist/assets/{text-accent-Bbx7l_cl.js → text-accent-DZ_ihUdH.js} +1 -1
- package/dist/assets/{text-centered-DmOdIfzx.js → text-centered-B26ac1NU.js} +1 -1
- package/dist/assets/{text-centered-Cg_ddFhQ.js → text-centered-DiwR-QSx.js} +1 -1
- package/dist/assets/{tokens-DeBguZpw.js → tokens-5M__FcH-.js} +1 -1
- package/dist/assets/{tokens-Db4wLFr3.js → tokens-B_sXFQpU.js} +1 -1
- package/dist/assets/{tokens-Cl9oUtjC.js → tokens-DO-XJjoF.js} +1 -1
- package/dist/assets/{tokens-CQefoo5n.js → tokens-DTCyqZ0W.js} +1 -1
- package/dist/assets/{useControllableState-POsCn5P8.js → useControllableState-ouxkeS_b.js} +1 -1
- package/dist/assets/useHostname-BVhrcDgi.js +1 -0
- package/dist/assets/{useMergeRefs-Cz2RkNaU.js → useMergeRefs-BVh7Ch_S.js} +1 -1
- package/dist/assets/{useMergeRefs-DkFVQgA0.js → useMergeRefs-DkQLsYW4.js} +1 -1
- package/dist/assets/{useOpenInteractionType-C_sBEUHJ.js → useOpenInteractionType-BBP_TXgz.js} +1 -1
- package/dist/assets/{usePortalElement-COVbROrS.js → usePortalElement-Cm2Hqn3J.js} +1 -1
- package/dist/assets/{useStableCallback-BE4-kfmF.js → useStableCallback-DHq1eG2Q.js} +1 -1
- package/dist/assets/{useToken-DL_qze01.js → useToken-CX1vf7pV.js} +1 -1
- package/dist/assets/{welcome-CDeJKqWI.js → welcome-CNokV_38.js} +1 -1
- package/dist/assets/{zeroheight-9HpbB1HN.js → zeroheight-8zVSToXs.js} +1 -1
- package/dist/iframe.html +2 -2
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +9569 -9530
- package/dist/project.json +1 -1
- package/package.json +5 -5
- package/pages/30.guides/70.assets/11.fonts.explorer.mdx +4 -8
- package/pages/30.guides/70.assets/components/FontsExplorer/LanguageCard.tsx +101 -77
- package/pages/30.guides/70.assets/components/IllustrationsList.tsx +1 -0
- package/pages/30.guides/70.assets/fonts-explorer.stories.tsx +14 -0
- package/dist/assets/11.fonts-DNWYfYg9.css +0 -1
- package/dist/assets/11.fonts.explorer-DIrAevD7.js +0 -130
- package/dist/assets/CountryFlag-BfP2Z-xa.js +0 -49
- package/dist/assets/Dialog.primitives-Bjw8AO3e.css +0 -1
- package/dist/assets/Dialog.primitives.stories-DRUk60bF.js +0 -246
- package/dist/assets/Dialog.stories-bIEy9TKX.js +0 -251
- package/dist/assets/DialogTitle-CiauK9kk.css +0 -1
- package/dist/assets/DismissibleChips-nrw1ViqW.js +0 -1
- package/dist/assets/IconButton-CT1U16hq.js +0 -8
- package/dist/assets/MultiSelectChips-BykmuV_j.js +0 -2
- package/dist/assets/SingleSelectChips-Bnoxobtc.js +0 -2
- package/dist/assets/componentNames-Dts5uwdK.js +0 -1
- package/dist/assets/createRequiredContext-CPJES7T4.js +0 -241
- package/dist/assets/getTokenVar-B4d49odp.js +0 -1
- package/dist/assets/iframe-u_WKqRSx.css +0 -1
- package/dist/assets/index-BZjlzf6m.js +0 -75
- package/dist/assets/useHostname-MecFXBKz.js +0 -1
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import{r as a,g as ze,j as d,z as Oc,D as Tc,aT as Rs,q as Ht,I as Cs,u as _c,v as jc,R as Es,K as Ss,M as Ac,aF as Dc}from"./iframe-C8q8wjEm.js";import{useMDXComponents as Ms}from"./index-BPdSA514.js";import{d as Nc,u as Is}from"./index-B2swU3YW.js";import{w as Qe}from"./componentNames-Dts5uwdK.js";import{M as ln}from"./message-C3RuDR6M.js";import{d as Ve,f as Lc}from"./styled-components.browser.esm-BYN4S5sO.js";import{f as it}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{I as ut,F as Fc,a as Bc,b as $c,c as zc,d as Vc,e as Uc,f as Wc}from"./TokyoUIExerciseClosedGapsJumble-C_YhJafE.js";import{a as Hc,B as ks,H as Ps}from"./Button-Dwk3YNxM.js";import{T as un}from"./Text-CjzJNqHA.js";import{g as me}from"./getTokenVar-B4d49odp.js";import{c as kt,r as Os,s as _e,m as Gc}from"./tokens-CQefoo5n.js";import{F as Kc}from"./TokyoUIChevronRight-BUlmcwhk.js";import{F as qc}from"./TokyoUICheck-DyeJxS4m.js";import{B as Yc}from"./breakpoints-BfMlrtxE.js";import{r as Xc}from"./render-icon-DTP0kMmm.js";import"./preload-helper-Dp1pzeXC.js";import"./emotion-unitless.esm-BZwEwAnk.js";import"./text-centered-DmOdIfzx.js";import"./useHostname-MecFXBKz.js";import"./index-CC6DAVyL.js";const Zc="badge__Aj95L",Qc="label__F86ML",Pr={badge:Zc,label:Qc},Jc=e=>{switch(e){case"xs":return"small";case"s":return"medium";case"m":return"large";default:return e}},Hn=a.forwardRef(function({type:t="neutral",size:n="medium",leadingSvgIcon:o,dataset:r,children:s,accent:i,inverted:c,hideLabel:l,...u},p){const f=Jc(n),g={...r,size:f};i===void 0&&c===void 0?g.type=t:(g.accent=i||"unset",g.inverted=!!c);const m={...it(u),ref:p,className:Pr.badge,...ze(g,{preplyDsComponent:Qe.Badge})},x=t==="neutral"||t==="ai"?"primary":t;return d.jsxs("span",{...m,children:[!!o&&d.jsx(ut,{accent:x,size:n==="large"?"24":"16",svg:o}),d.jsx("span",{className:Pr.label,"data-hidden":l,children:s})]})});Hn.__docgenInfo={description:"",methods:[],displayName:"Badge",props:{type:{defaultValue:{value:'"neutral"',computed:!1},required:!1},size:{defaultValue:{value:'"medium"',computed:!1},required:!1}}};const ea="cutout__1sEQk",ta={cutout:ea},na="IconButton__FZTVy",oa={IconButton:na},Xo=a.forwardRef(function({variant:t=Tc,size:n=Oc,url:o,a11yLabel:r,svg:s,...i},c){const l=[oa.IconButton,ta.cutout].join(" ");return d.jsx(Hc,{...i,ref:c,className:l,isIconButton:!0,variant:t,size:n,url:o,a11yLabel:r,preplyDsComponent:Qe.IconButton,children:Xc(s,{"aria-hidden":"true",focusable:"false"})})});Xo.__docgenInfo={description:"",methods:[],displayName:"IconButton",props:{variant:{defaultValue:{value:"'primary'",computed:!1},required:!1},size:{defaultValue:{value:"'small'",computed:!1},required:!1}}};const ra=Nc({remove:{id:"preply-ds.genericAriaLabels.remove",defaultMessage:[{type:0,value:"Remove"}]},close:{id:"preply-ds.genericAriaLabels.close",defaultMessage:[{type:0,value:"Close"}]},confirm:{id:"preply-ds.genericAriaLabels.confirm",defaultMessage:[{type:0,value:"Confirm"}]},cancel:{id:"preply-ds.genericAriaLabels.cancel",defaultMessage:[{type:0,value:"Cancel"}]}});function sa(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e},[e]),a.useCallback(((...o)=>{var r;return(r=t.current)==null?void 0:r.call(t,...o)}),[])}function ia({value:e,defaultValue:t,onValueChange:n}){const o=e!==void 0,[r,s]=a.useState(o?e:t);a.useEffect(()=>{o&&e!==r&&s(e)},[o,e,r]);const i=sa(n),c=a.useCallback(u=>{o||s(u),i(u)},[o,i]);return[o?e:r,c]}const ca="visuallyHidden__u7xQ9",aa={visuallyHidden:ca};function la({as:e="span",children:t}){const n=e??"span";return d.jsx(n,{className:aa.visuallyHidden,children:t})}const ua="ProgressSteps__FoPeH",da="step__iXjRm",Or={ProgressSteps:ua,step:da},fa=({totalSteps:e,currentStep:t,"aria-label":n,dataset:o})=>{const{formatMessage:r}=Is(),s=ze(o,{preplyDsComponent:Qe.ProgressSteps});return d.jsx("div",{...s,className:Or.ProgressSteps,role:"progressbar","aria-label":n,"aria-valuemin":1,"aria-valuemax":e,"aria-valuenow":t,"aria-valuetext":r({id:"preply-ds.steps.progress",defaultMessage:[{type:0,value:"Step "},{type:1,value:"currentStep"},{type:0,value:" of "},{type:1,value:"totalSteps"}]},{currentStep:t,totalSteps:e}),children:Array.from({length:e}).map((i,c)=>d.jsx("div",{className:Or.step,"data-active":c<=t-1,"aria-current":c===t-1?"step":void 0},c))})},pa="steps__BxrkC",ma="header__HFxfM",No={steps:pa,header:ma},Ts=a.createContext(void 0),Zo=()=>{const e=a.useContext(Ts);if(e===void 0)throw new Error("Steps navigation components must be used within a Steps component");return e||{}},ga=a.forwardRef(function({onClick:t,disabled:n,variant:o="ghost",...r},s){const{goToPreviousStep:i,currentStep:c,isNavigating:l,contentId:u}=Zo();return d.jsx(ks,{...r,ref:s,size:"medium",variant:o,onClick:p=>{t==null||t(p),!p.defaultPrevented&&i()},disabled:c===1||l||n,"aria-controls":u,children:r.children||d.jsx(ln,{id:"preply-ds.steps.previous",defaultMessage:[{type:0,value:"Previous"}]})})}),ha=a.forwardRef(function({onClick:t,disabled:n,variant:o="primary",...r},s){const{goToNextStep:i,currentStep:c,totalSteps:l,isNavigating:u,contentId:p}=Zo();return d.jsx(ks,{...r,ref:s,size:"medium",variant:o,onClick:f=>{t==null||t(f),!f.defaultPrevented&&i()},disabled:c===l||u||n,"aria-controls":p,children:r.children||d.jsx(ln,{id:"preply-ds.steps.next",defaultMessage:[{type:0,value:"Next"}]})})}),va=({children:e,"aria-label":t,initialStep:n=1,onStepChange:o,dataset:r})=>{const s=a.useId(),[i,c]=a.useState(n),[l,u]=a.useState(!1),p=[],f=[];e==null||e.forEach(R=>{a.isValidElement(R)&&R.type===_s?p.push(R):f.push(R)});const g=p.length,m=ze(r,{preplyDsComponent:Qe.Steps}),x=async R=>{const w=Math.min(Math.max(R,1),g);if(!o){c(w);return}u(!0);try{const E=await o(i,w);c(E??w)}finally{u(!1)}},y={goToPreviousStep:()=>x(i-1),goToNextStep:()=>x(i+1),goToStep:R=>x(R),currentStep:i,totalSteps:g,isNavigating:l,contentId:s};return d.jsxs("div",{...m,className:No.steps,id:s,"aria-live":"polite","aria-busy":l,children:[d.jsx(fa,{currentStep:i,totalSteps:g,"aria-label":t}),d.jsx("div",{className:No.content,children:d.jsxs(Ts.Provider,{value:y,children:[p[i-1],f]})})]})},_s=({title:e,description:t,children:n,hideHeader:o})=>d.jsxs(d.Fragment,{children:[d.jsxs("hgroup",{className:No.header,hidden:o,children:[d.jsx(Ps,{tag:"h3",variant:{_:"medium","medium-l":"large"},children:e}),t&&d.jsx(un,{variant:"default-regular",accent:"secondary",children:t})]}),n]}),ro=Object.assign(va,{Step:_s,Previous:ga,Next:ha}),xa="dialog__80F7X",ba="slideInUp__Ni5JT",ya="slideOutDown__g4ZMG",wa="footer__xkM-4",Ra="opacityIn__p29KJ",Ca="opacityOut__4QmKk",Ea="slidesUp__P7Bjm",Sa="slideOutUp__FRb6L",Ma="overlay__otkvG",Ia="close__-TGOq",ka="title__tGVp1",Pa="description__84a0F",Oa="header__ADm9A",Ta="scrollEndDetector__Zrfqq",_a="sticky__fB3an",ja="buttonStack__KhEjj",Aa="stepControls__FoOIr",Da="previous__q2IlS",Na="next__h6v4X",Se={dialog:xa,slideInUp:ba,slideOutDown:ya,"dialog--fullheight":"dialog--fullheight__9hYfm","no-border-radius":"no-border-radius__sLZ8A",footer:wa,opacityIn:Ra,opacityOut:Ca,slidesUp:Ea,slideOutUp:Sa,"dialog--size-xs":"dialog--size-xs__86lDW","dialog--size-sm":"dialog--size-sm__zlBiL","dialog--size-md":"dialog--size-md__O2zSS","dialog--size-lg":"dialog--size-lg__E9kM0","dialog--narrow-l--size-xs":"dialog--narrow-l--size-xs__CCtfn","dialog--medium-s--size-xs":"dialog--medium-s--size-xs__uw7Ob","dialog--medium-l--size-xs":"dialog--medium-l--size-xs__lmMcL","dialog--wide-s--size-xs":"dialog--wide-s--size-xs__AzI8n","dialog--wide-l--size-xs":"dialog--wide-l--size-xs__jhPFX","dialog--narrow-l--size-sm":"dialog--narrow-l--size-sm__DYeNC","dialog--medium-s--size-sm":"dialog--medium-s--size-sm__baCNa","dialog--medium-l--size-sm":"dialog--medium-l--size-sm__Oy6nP","dialog--wide-s--size-sm":"dialog--wide-s--size-sm__g8GpB","dialog--wide-l--size-sm":"dialog--wide-l--size-sm__h0xzy","dialog--narrow-l--size-md":"dialog--narrow-l--size-md__0rLFg","dialog--medium-s--size-md":"dialog--medium-s--size-md__f64sr","dialog--medium-l--size-md":"dialog--medium-l--size-md__ga4RE","dialog--wide-s--size-md":"dialog--wide-s--size-md__sLaM7","dialog--wide-l--size-md":"dialog--wide-l--size-md__clTT7","dialog--narrow-l--size-lg":"dialog--narrow-l--size-lg__iZQJw","dialog--medium-s--size-lg":"dialog--medium-s--size-lg__nx1H1","dialog--medium-l--size-lg":"dialog--medium-l--size-lg__qxGb-","dialog--wide-s--size-lg":"dialog--wide-s--size-lg__q5Nvs","dialog--wide-l--size-lg":"dialog--wide-l--size-lg__fgQ7x",overlay:Ma,close:Ia,title:ka,description:Pa,header:Oa,scrollEndDetector:Ta,sticky:_a,buttonStack:ja,stepControls:Aa,previous:Da,next:Na},Qo=({children:e,className:t,dataset:n,...o})=>{const r=a.useRef(null),s=a.useRef(null),i=[Se.footer,t].filter(Boolean).join(" "),c=ze(n);return a.useLayoutEffect(()=>{if(!s.current||!r.current)return;const l=new IntersectionObserver(([u])=>{var p,f;u.isIntersecting?(p=s.current)==null||p.classList.remove(Se.sticky):(f=s.current)==null||f.classList.add(Se.sticky)},{root:s.current.closest("[role=dialog]"),rootMargin:`0px 0px -${s.current.offsetHeight}px 0px`});return l.observe(r.current),()=>l.disconnect()},[]),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:Se.scrollEndDetector,ref:r}),d.jsx("footer",{className:i,ref:s,...c,...o,children:e})]})},La=ro,Fa=ro.Step,js=ro.Next,As=ro.Previous;function Ba({primaryButton:e,nextButton:t=d.jsx(js,{}),previousButton:n=d.jsx(As,{})}){const{currentStep:o,totalSteps:r}=Zo(),s=o===1,i=o===r;return d.jsx(Qo,{children:d.jsxs("div",{className:Se.stepControls,children:[!s&&d.jsx("div",{className:Se.previous,children:n}),d.jsx("div",{className:Se.next,children:i?e:t})]})})}const Jo=a.forwardRef(function({children:t,className:n,dataset:o,...r},s){const i=[Se.buttonStack,n].filter(Boolean).join(" "),c=ze(o);return d.jsx("div",{ref:s,className:i,...c,...r,children:t})});Jo.__docgenInfo={description:"",methods:[],displayName:"DialogButtonStack"};const Tr={};function dt(e,t){const n=a.useRef(Tr);return n.current===Tr&&(n.current=e(t)),n}function Ds(){}const _r=Object.freeze([]),Ae=Object.freeze({});function rt(e,t,n,o){const r=dt(Ns).current;return za(r,e,t,n,o)&&Ls(r,[e,t,n,o]),r.callback}function $a(e){const t=dt(Ns).current;return Va(t,e)&&Ls(t,e),t.callback}function Ns(){return{callback:null,cleanup:null,refs:[]}}function za(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Va(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Ls(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const Ua=parseInt(a.version,10);function Fs(e){return Ua>=e}function Bs(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Wa(e,t){const n={};for(const o in e){const r=e[o];if(t!=null&&t.hasOwnProperty(o)){const s=t[o](r);s!=null&&Object.assign(n,s);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Ha(e,t){return typeof e=="function"?e(t):e}const on={};function Gt(e,t,n,o,r){let s={...Lo(e,on)};return t&&(s=Vn(s,t)),n&&(s=Vn(s,n)),o&&(s=Vn(s,o)),s}function Ga(e){if(e.length===0)return on;if(e.length===1)return Lo(e[0],on);let t={...Lo(e[0],on)};for(let n=1;n<e.length;n+=1)t=Vn(t,e[n]);return t}function Vn(e,t){return $s(t)?t(e):Ka(e,t)}function Ka(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":{e[n]=Bs(e.style,o);break}case"className":{e[n]=zs(e.className,o);break}default:qa(n,o)?e[n]=Ya(e[n],o):e[n]=o}}return e}function qa(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function $s(e){return typeof e=="function"}function Lo(e,t){return $s(e)?e(t):e??on}function Ya(e,t){return t?e?n=>{if(Xa(n)){const r=n;Fo(r);const s=t(r);return r.baseUIHandlerPrevented||e==null||e(r),s}const o=t(n);return e==null||e(n),o}:t:e}function Fo(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zs(e,t){return t?e?t+" "+e:t:e}function Xa(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function xe(e,t,n={}){var o;const r=t.render,s=Za(t,n);if(n.enabled===!1)return null;const i=(o=n.state)!=null?o:Ae;return Qa(e,r,s,i)}function Za(e,t={}){var n;const{className:o,render:r}=e,{state:s=Ae,ref:i,props:c,stateAttributesMapping:l,enabled:u=!0}=t,p=u?Ha(o,s):void 0,f=u?Wa(s,l):Ae,g=u&&(n=Bs(f,Array.isArray(c)?Ga(c):c))!=null?n:Ae;return typeof document<"u"&&(u?Array.isArray(i)?g.ref=$a([g.ref,jr(r),...i]):g.ref=rt(g.ref,jr(r),i):rt(null,null)),u?(p!==void 0&&(g.className=zs(g.className,p)),g):Ae}function Qa(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);const r=Gt(n,t.props);return r.ref=n.ref,a.cloneElement(t,r)}if(e&&typeof e=="string")return Ja(e,n);throw new Error("Base UI: Render element or function are not defined.")}function Ja(e,t){return e==="button"?d.jsx("button",{type:"button",...t}):e==="img"?d.jsx("img",{alt:"",...t}):a.createElement(e,t)}function jr(e){return e&&typeof e!="function"?Fs(19)?e.props.ref:e.ref:null}xe.__docgenInfo={description:"",methods:[],displayName:"useRenderElement"};const xo=Rs[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],el=xo&&xo!==a.useLayoutEffect?xo:e=>e();function J(e){const t=dt(tl).current;return t.next=e,el(t.effect),t.trampoline}function tl(){const e={next:void 0,callback:nl,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function nl(){}const ol=()=>{},oe=typeof document<"u"?a.useLayoutEffect:ol;function ue(e,t,n){let o=!1,r=!1;const s=Ae;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){r=!0},get isCanceled(){return o},get isPropagationAllowed(){return r},...s}}function so(){return typeof window<"u"}function yt(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function Me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ct(e){var t;return(t=(er(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function er(e){return so()?e instanceof Node||e instanceof Me(e).Node:!1}function fe(e){return so()?e instanceof Element||e instanceof Me(e).Element:!1}function ve(e){return so()?e instanceof HTMLElement||e instanceof Me(e).HTMLElement:!1}function Bo(e){return!so()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Me(e).ShadowRoot}const rl=new Set(["inline","contents"]);function pn(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!rl.has(r)}const sl=new Set(["table","td","th"]);function il(e){return sl.has(yt(e))}const cl=[":popover-open",":modal"];function io(e){return cl.some(t=>{try{return e.matches(t)}catch{return!1}})}const al=["transform","translate","scale","rotate","perspective"],ll=["transform","translate","scale","rotate","perspective","filter"],ul=["paint","layout","strict","content"];function tr(e){const t=co(),n=fe(e)?Xe(e):e;return al.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)||ll.some(o=>(n.willChange||"").includes(o))||ul.some(o=>(n.contain||"").includes(o))}function dl(e){let t=st(e);for(;ve(t)&&!nt(t);){if(tr(t))return t;if(io(t))return null;t=st(t)}return null}function co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fl=new Set(["html","body","#document"]);function nt(e){return fl.has(yt(e))}function Xe(e){return Me(e).getComputedStyle(e)}function ao(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function st(e){if(yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bo(e)&&e.host||ct(e);return Bo(t)?t.host:t}function Vs(e){const t=st(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&pn(t)?t:Vs(t)}function vt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Vs(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Me(r);if(s){const c=$o(i);return t.concat(i,i.visualViewport||[],pn(r)?r:[],c&&n?vt(c):[])}return t.concat(r,vt(r,[],n))}function $o(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const pl=a.createContext(void 0);function Us(e=!1){const t=a.useContext(pl);if(t===void 0&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function ml(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:s}=e,i=o&&t!==!1,c=o&&t===!1;return{props:a.useMemo(()=>{const u={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return o||(u.tabIndex=r,!s&&n&&(u.tabIndex=t?r:-1)),(s&&(t||i)||!s&&n)&&(u["aria-disabled"]=n),s&&(!t||c)&&(u.disabled=n),u},[o,n,t,i,c,s,r])}}function nr(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0}=e,s=a.useRef(null),i=Us(!0)!==void 0,c=J(()=>{const g=s.current;return!!((g==null?void 0:g.tagName)==="A"&&(g!=null&&g.href))}),{props:l}=ml({focusableWhenDisabled:n,disabled:t,composite:i,tabIndex:o,isNativeButton:r}),u=a.useCallback(()=>{const g=s.current;gl(g)&&i&&t&&l.disabled===void 0&&g.disabled&&(g.disabled=!1)},[t,l.disabled,i]);oe(u,[u]);const p=a.useCallback((g={})=>{const{onClick:m,onMouseDown:x,onKeyUp:b,onKeyDown:h,onPointerDown:v,...y}=g;return Gt({type:r?"button":void 0,onClick(w){if(t){w.preventDefault();return}m==null||m(w)},onMouseDown(w){t||x==null||x(w)},onKeyDown(w){if(t||(Fo(w),h==null||h(w)),w.baseUIHandlerPrevented)return;const E=w.target===w.currentTarget&&!r&&!c()&&!t,S=w.key==="Enter",k=w.key===" ";E&&((k||S)&&w.preventDefault(),S&&(m==null||m(w)))},onKeyUp(w){t||(Fo(w),b==null||b(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!r&&!t&&w.key===" "&&(m==null||m(w))},onPointerDown(w){if(t){w.preventDefault();return}v==null||v(w)}},r?void 0:{role:"button"},l,y)},[t,l,r,c]),f=J(g=>{s.current=g,u()});return{getButtonProps:p,buttonRef:f}}function gl(e){return ve(e)&&e.tagName==="BUTTON"}const Ws=a.createContext(void 0);function _t(e){const t=a.useContext(Ws);if(e===!1&&t===void 0)throw new Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return t}function hl(e){const{open:t,setOpen:n,disabled:o,nativeButton:r}=e,s=J(u=>{t&&n(!1,ue("close-press",u.nativeEvent))}),{getButtonProps:i,buttonRef:c}=nr({disabled:o,native:r});return{getRootProps:u=>Gt({onClick:s},u,i),ref:c}}const vl=a.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,nativeButton:i=!0,...c}=t,{store:l}=_t(),u=l.useState("open"),{getRootProps:p,ref:f}=hl({disabled:s,open:u,setOpen:l.setOpen,nativeButton:i}),g=a.useMemo(()=>({disabled:s}),[s]);return xe("button",t,{state:g,ref:[n,f],props:[c,p]})}),xl=({title:e,titleId:t,...n},o)=>a.createElement("svg",{"data-preply-ds-component":"SvgTokyoUIIcon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:o,"aria-labelledby":t,...n},e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M7.044 5.63 5.63 7.044l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95 4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95Z",clipRule:"evenodd"})),bl=a.forwardRef(xl),or=a.forwardRef(function({children:t,className:n},o){const r=[Se.close,n].filter(Boolean).join(" ");return d.jsx("div",{className:r,children:d.jsx(vl,{ref:o,render:t??d.jsx(Hs,{})})})}),Hs=a.forwardRef(function(t,n){const{formatMessage:o}=Is();return d.jsx(Xo,{ref:n,size:"small",variant:"ghost",assistiveText:o(ra.close),svg:bl,...t})});or.__docgenInfo={description:"",methods:[],displayName:"DialogCloseButton"};Hs.__docgenInfo={description:"",methods:[],displayName:"DialogDefaultCloseButton"};const yl={...Rs};let Ar=0;function wl(e,t="mui"){const[n,o]=a.useState(e),r=e||n;return a.useEffect(()=>{n==null&&(Ar+=1,o(`${t}-${Ar}`))},[n,t]),r}const Dr=yl.useId;function Kt(e,t){if(Dr!==void 0){const n=Dr();return e??(t?`${t}-${n}`:n)}return wl(e,t)}function jt(e){return Kt(e,"base-ui")}const Rl=a.forwardRef(function(t,n){const{render:o,className:r,id:s,...i}=t,{store:c}=_t(),l=jt(s);return c.useSyncedValueWithCleanup("descriptionElementId",l),xe("p",t,{ref:n,props:[{id:l},i]})}),rr=a.forwardRef(function({children:t,className:n,dataset:o,...r},s){if(!t)return null;const i=[Se.description,n].filter(Boolean).join(" "),c=ze(o);return d.jsx(Rl,{ref:s,className:i,...c,...r,children:t})});rr.__docgenInfo={description:"",methods:[],displayName:"DialogDescription2"};var Cl=Object.defineProperty,El=(e,t,n)=>t in e?Cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>El(e,typeof t!="symbol"?t+"":t,n);const Sl=500,Ml=500,Il={style:{transition:"none"}},kl="data-base-ui-click-trigger",Pl={fallbackAxisSide:"none"},Ol=[];function Gs(e){a.useEffect(e,Ol)}const _n=null;class Tl{constructor(){Ee(this,"callbacks",[]),Ee(this,"callbacksCount",0),Ee(this,"nextId",1),Ee(this,"startId",1),Ee(this,"isScheduled",!1),Ee(this,"tick",t=>{var n;this.isScheduled=!1;const o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<o.length;s+=1)(n=o[s])==null||n.call(o,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const jn=new Tl;class et{constructor(){Ee(this,"currentId",_n),Ee(this,"cancel",()=>{this.currentId!==_n&&(jn.cancel(this.currentId),this.currentId=_n)}),Ee(this,"disposeEffect",()=>this.cancel)}static create(){return new et}static request(t){return jn.request(t)}static cancel(t){return jn.cancel(t)}request(t){this.cancel(),this.currentId=jn.request(()=>{this.currentId=_n,t()})}}function sr(){const e=dt(et.create).current;return Gs(e.disposeEffect),e}function _l(e,t=!1){const n=sr();return J((o,r=null)=>{if(n.cancel(),e==null)return;let s;if("current"in e){if(e.current==null)return;s=e.current}else s=e;typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():n.request(()=>{function i(){s&&Promise.allSettled(s.getAnimations().map(c=>c.finished)).then(()=>{r!=null&&r.aborted||Ht.flushSync(o)})}t?n.request(i):i()})})}function lo(e,t=!1,n=!1){const[o,r]=a.useState(e&&t?"idle":void 0),[s,i]=a.useState(e);return e&&!s&&(i(!0),r("starting")),!e&&s&&o!=="ending"&&!n&&r("ending"),!e&&!s&&o==="ending"&&r(void 0),oe(()=>{if(!e&&s&&o!=="ending"&&n){const c=et.request(()=>{r("ending")});return()=>{et.cancel(c)}}},[e,s,o,n]),oe(()=>{if(!e||t)return;const c=et.request(()=>{Ht.flushSync(()=>{r(void 0)})});return()=>{et.cancel(c)}},[t,e]),oe(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&r("starting");const c=et.request(()=>{r("idle")});return()=>{et.cancel(c)}},[t,e,s,r,o]),a.useMemo(()=>({mounted:s,setMounted:i,transitionStatus:o}),[s,o])}let Gn=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const jl={[Gn.startingStyle]:""},Al={[Gn.endingStyle]:""},mn={transitionStatus(e){return e==="starting"?jl:e==="ending"?Al:null}},qt=typeof navigator<"u",bo=Ll(),Ks=Bl(),qs=Fl(),Ys=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Dl=bo.platform==="MacIntel"&&bo.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(bo.platform),Xs=qt&&/apple/i.test(navigator.vendor),zo=qt&&/android/i.test(Ks)||/android/i.test(qs),Nl=qt&&Ks.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Zs=qs.includes("jsdom/");function Ll(){var e,t;if(!qt)return{platform:"",maxTouchPoints:-1};const n=navigator.userAgentData;return n!=null&&n.platform?{platform:n.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:(e=navigator.platform)!=null?e:"",maxTouchPoints:(t=navigator.maxTouchPoints)!=null?t:-1}}function Fl(){if(!qt)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Bl(){var e;if(!qt)return"";const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:(e=navigator.platform)!=null?e:""}const Vo="data-base-ui-focusable",Qs="active",Js="selected",$l="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",xt="ArrowLeft",bt="ArrowRight",ir="ArrowUp",gn="ArrowDown";function tt(e){var t;let n=e.activeElement;for(;((t=n==null?void 0:n.shadowRoot)==null?void 0:t.activeElement)!=null;)n=n.shadowRoot.activeElement;return n}function he(e,t){var n;if(!e||!t)return!1;const o=(n=t.getRootNode)==null?void 0:n.call(t);if(e.contains(t))return!0;if(o&&Bo(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function qe(e){return"composedPath"in e?e.composedPath()[0]:e.target}function lt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function zl(e){return e.matches("html,body")}function we(e){return(e==null?void 0:e.ownerDocument)||document}function cr(e){return ve(e)&&e.matches($l)}function Uo(e){return e?e.getAttribute("role")==="combobox"&&cr(e):!1}function Vl(e){if(!e||Zs)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Kn(e){return e?e.hasAttribute(Vo)?e:e.querySelector(`[${Vo}]`)||e:null}function Pt(e,t,n=!0){return e.filter(r=>{var s;return r.parentId===t&&(!n||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Pt(e,r.id,n)])}function Nr(e,t){var n;let o=[],r=(n=e.find(s=>s.id===t))==null?void 0:n.parentId;for(;r;){const s=e.find(i=>i.id===r);r=s==null?void 0:s.parentId,s&&(o=o.concat(s))}return o}function Pe(e){e.preventDefault(),e.stopPropagation()}function Ul(e){return"nativeEvent"in e}function ei(e){return e.mozInputSource===0&&e.isTrusted?!0:zo&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ti(e){return Zs?!1:!zo&&e.width===0&&e.height===0||zo&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function dn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var Wl=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],qn=Wl.join(","),ni=typeof Element>"u",Vt=ni?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yn=!ni&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Xn=function e(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),s=r===""||r==="true",i=s||n&&t&&e(t.parentNode);return i},Hl=function(t){var n,o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return o===""||o==="true"},oi=function(t,n,o){if(Xn(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(qn));return n&&Vt.call(t,qn)&&r.unshift(t),r=r.filter(o),r},ri=function e(t,n,o){for(var r=[],s=Array.from(t);s.length;){var i=s.shift();if(!Xn(i,!1))if(i.tagName==="SLOT"){var c=i.assignedElements(),l=c.length?c:i.children,u=e(l,!0,o);o.flatten?r.push.apply(r,u):r.push({scopeParent:i,candidates:u})}else{var p=Vt.call(i,qn);p&&o.filter(i)&&(n||!t.includes(i))&&r.push(i);var f=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),g=!Xn(f,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(f&&g){var m=e(f===!0?i.children:f.children,!0,o);o.flatten?r.push.apply(r,m):r.push({scopeParent:i,candidates:m})}else s.unshift.apply(s,i.children)}}return r},si=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ii=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Hl(t))&&!si(t)?0:t.tabIndex},Gl=function(t,n){var o=ii(t);return o<0&&n&&!si(t)?0:o},Kl=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},ci=function(t){return t.tagName==="INPUT"},ql=function(t){return ci(t)&&t.type==="hidden"},Yl=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return n},Xl=function(t,n){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===n)return t[o]},Zl=function(t){if(!t.name)return!0;var n=t.form||Yn(t),o=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(t.name));else try{r=o(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Xl(r,t.form);return!s||s===t},Ql=function(t){return ci(t)&&t.type==="radio"},Jl=function(t){return Ql(t)&&!Zl(t)},eu=function(t){var n,o=t&&Yn(t),r=(n=o)===null||n===void 0?void 0:n.host,s=!1;if(o&&o!==t){var i,c,l;for(s=!!((i=r)!==null&&i!==void 0&&(c=i.ownerDocument)!==null&&c!==void 0&&c.contains(r)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!s&&r;){var u,p,f;o=Yn(r),r=(u=o)===null||u===void 0?void 0:u.host,s=!!((p=r)!==null&&p!==void 0&&(f=p.ownerDocument)!==null&&f!==void 0&&f.contains(r))}}return s},Lr=function(t){var n=t.getBoundingClientRect(),o=n.width,r=n.height;return o===0&&r===0},tu=function(t,n){var o=n.displayCheck,r=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var s=Vt.call(t,"details>summary:first-of-type"),i=s?t.parentElement:t;if(Vt.call(i,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof r=="function"){for(var c=t;t;){var l=t.parentElement,u=Yn(t);if(l&&!l.shadowRoot&&r(l)===!0)return Lr(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=c}if(eu(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Lr(t);return!1},nu=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var r=n.children.item(o);if(r.tagName==="LEGEND")return Vt.call(n,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}n=n.parentElement}return!1},Wo=function(t,n){return!(n.disabled||Xn(n)||ql(n)||tu(n,t)||Yl(n)||nu(n))},Ho=function(t,n){return!(Jl(n)||ii(n)<0||!Wo(t,n))},ou=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},ru=function e(t){var n=[],o=[];return t.forEach(function(r,s){var i=!!r.scopeParent,c=i?r.scopeParent:r,l=Gl(c,i),u=i?e(r.candidates):c;l===0?i?n.push.apply(n,u):n.push(c):o.push({documentOrder:s,tabIndex:l,item:r,isScope:i,content:u})}),o.sort(Kl).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(n)},uo=function(t,n){n=n||{};var o;return n.getShadowRoot?o=ri([t],n.includeContainer,{filter:Ho.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:ou}):o=oi(t,n.includeContainer,Ho.bind(null,n)),ru(o)},su=function(t,n){n=n||{};var o;return n.getShadowRoot?o=ri([t],n.includeContainer,{filter:Wo.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):o=oi(t,n.includeContainer,Wo.bind(null,n)),o},ai=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Vt.call(t,qn)===!1?!1:Ho(n,t)};const hn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function li(e,t){const n=uo(e,hn()),o=n.length;if(o===0)return;const r=tt(we(e)),s=n.indexOf(r),i=s===-1?t===1?0:o-1:s+t;return n[i]}function ui(e){return li(we(e).body,1)||e}function di(e){return li(we(e).body,-1)||e}function rn(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!he(n,o)}function iu(e){uo(e,hn()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Fr(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}const fi="ArrowUp",pi="ArrowDown",mi="ArrowLeft",gi="ArrowRight",hi="Home",vi="End",cu=new Set([mi,gi]),au=new Set([fi,pi]),lu=new Set([...cu,...au]);[...lu];const xi=new Set([fi,pi,mi,gi,hi,vi]);function Re(e){const t=dt(uu,e).current;return t.next=e,oe(t.effect),t}function uu(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Yt(e){const{enabled:t=!0,open:n,ref:o,onComplete:r}=e,s=Re(n),i=J(r),c=_l(o,n);a.useEffect(()=>{t&&c(()=>{n===s.current&&i()})},[t,n,i,c,s])}let It=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Gn.startingStyle]="startingStyle",e[e.endingStyle=Gn.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),Go=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const du={[Go.popupOpen]:""},fu={[Go.popupOpen]:"",[Go.pressed]:""},pu={[It.open]:""},mu={[It.closed]:""},gu={[It.anchorHidden]:""},hu={open(e){return e?du:null}},Br={open(e){return e?fu:null}},vn={open(e){return e?pu:mu},anchorHidden(e){return e?gu:null}};function bi(e){return Fs(19)?e:e?"true":void 0}const tn=0;class Ot{constructor(){Ee(this,"currentId",tn),Ee(this,"clear",()=>{this.currentId!==tn&&(clearTimeout(this.currentId),this.currentId=tn)}),Ee(this,"disposeEffect",()=>this.clear)}static create(){return new Ot}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=tn,n()},t)}isStarted(){return this.currentId!==tn}}function Be(){const e=dt(Ot.create).current;return Gs(e.disposeEffect),e}function yi(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const wi=a.createContext(null),Ri=a.createContext(null),wt=()=>{var e;return((e=a.useContext(wi))==null?void 0:e.id)||null},Ue=()=>a.useContext(Ri);function vu(e){const t=Kt(),n=Ue(),r=wt();return oe(()=>{if(!t)return;const s={id:t,parentId:r};return n==null||n.addNode(s),()=>{n==null||n.removeNode(s)}},[n,t,r]),t}function xu(e){const{children:t,id:n}=e,o=wt();return d.jsx(wi.Provider,{value:a.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function bu(e){const{children:t}=e,n=a.useRef([]),o=a.useCallback(i=>{n.current=[...n.current,i]},[]),r=a.useCallback(i=>{n.current=n.current.filter(c=>c!==i)},[]),[s]=a.useState(()=>yi());return d.jsx(Ri.Provider,{value:a.useMemo(()=>({nodesRef:n,addNode:o,removeNode:r,events:s}),[o,r,s]),children:t})}function Ut(e){return`data-base-ui-${e}`}const ar={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};function ft(e){return(e==null?void 0:e.ownerDocument)||document}const Zn=a.forwardRef(function(t,n){const[o,r]=a.useState();oe(()=>{Xs&&r("button")},[]);const s={tabIndex:0,role:o};return d.jsx("span",{...t,ref:n,style:ar,"aria-hidden":o?void 0:!0,...s,"data-base-ui-focus-guard":""})});let $r=0;function Un(e,t={}){const{preventScroll:n=!1,cancelPrevious:o=!0,sync:r=!1}=t;o&&cancelAnimationFrame($r);const s=()=>e==null?void 0:e.focus({preventScroll:n});r?s():$r=requestAnimationFrame(s)}const $t={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function zr(e){return e==="inert"?$t.inert:e==="aria-hidden"?$t["aria-hidden"]:$t.none}let An=new WeakSet,Dn={},yo=0;const Ci=e=>e&&(e.host||Ci(e.parentNode)),yu=(e,t)=>t.map(n=>{if(e.contains(n))return n;const o=Ci(n);return e.contains(o)?o:null}).filter(n=>n!=null);function wu(e,t,n,o){const r="data-base-ui-inert",s=o?"inert":n?"aria-hidden":null,i=yu(t,e),c=new Set,l=new Set(i),u=[];Dn[r]||(Dn[r]=new WeakMap);const p=Dn[r];i.forEach(f),g(t),c.clear();function f(m){!m||c.has(m)||(c.add(m),m.parentNode&&f(m.parentNode))}function g(m){!m||l.has(m)||[].forEach.call(m.children,x=>{if(yt(x)!=="script")if(c.has(x))g(x);else{const b=s?x.getAttribute(s):null,h=b!==null&&b!=="false",v=zr(s),y=(v.get(x)||0)+1,R=(p.get(x)||0)+1;v.set(x,y),p.set(x,R),u.push(x),y===1&&h&&An.add(x),R===1&&x.setAttribute(r,""),!h&&s&&x.setAttribute(s,s==="inert"?"":"true")}})}return yo+=1,()=>{u.forEach(m=>{const x=zr(s),h=(x.get(m)||0)-1,v=(p.get(m)||0)-1;x.set(m,h),p.set(m,v),h||(!An.has(m)&&s&&m.removeAttribute(s),An.delete(m)),v||m.removeAttribute(r)}),yo-=1,yo||($t.inert=new WeakMap,$t["aria-hidden"]=new WeakMap,$t.none=new WeakMap,An=new WeakSet,Dn={})}}function Ru(e,t=!1,n=!1){const o=we(e[0]).body;return wu(e.concat(Array.from(o.querySelectorAll("[aria-live]"))),o,t,n)}const Ei=a.createContext(null),Si=()=>a.useContext(Ei),Vr=Ut("portal");function Cu(e={}){const{id:t,root:n}=e,o=Kt(),r=Si(),[s,i]=a.useState(null),c=a.useRef(null);return oe(()=>()=>{s==null||s.remove(),queueMicrotask(()=>{c.current=null})},[s]),oe(()=>{if(!o||c.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=o,u.setAttribute(Vr,""),l.appendChild(u),c.current=u,i(u)},[t,o]),oe(()=>{if(n===null||!o||c.current)return;let l=n||(r==null?void 0:r.portalNode);l&&!er(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const p=document.createElement("div");p.id=o,p.setAttribute(Vr,""),l=u||l,l.appendChild(p),c.current=p,i(p)},[t,n,o,r]),s}function Mi(e){const{children:t,id:n,root:o,preserveTabOrder:r=!0}=e,s=Cu({id:n,root:o}),[i,c]=a.useState(null),l=a.useRef(null),u=a.useRef(null),p=a.useRef(null),f=a.useRef(null),g=i==null?void 0:i.modal,m=i==null?void 0:i.open,x=!!i&&!i.modal&&i.open&&r&&!!(o||s);return a.useEffect(()=>{if(!s||!r||g)return;function b(h){s&&rn(h)&&(h.type==="focusin"?Fr:iu)(s)}return s.addEventListener("focusin",b,!0),s.addEventListener("focusout",b,!0),()=>{s.removeEventListener("focusin",b,!0),s.removeEventListener("focusout",b,!0)}},[s,r,g]),a.useEffect(()=>{s&&(m||Fr(s))},[m,s]),d.jsxs(Ei.Provider,{value:a.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:p,afterInsideRef:f,portalNode:s,setFocusManagerState:c}),[r,s]),children:[x&&s&&d.jsx(Zn,{"data-type":"outside",ref:l,onFocus:b=>{var h;if(rn(b,s))(h=p.current)==null||h.focus();else{const v=i?i.domReference:null,y=di(v);y==null||y.focus()}}}),x&&s&&d.jsx("span",{"aria-owns":s.id,style:ar}),s&&Ht.createPortal(t,s),x&&s&&d.jsx(Zn,{"data-type":"outside",ref:u,onFocus:b=>{var h;if(rn(b,s))(h=f.current)==null||h.focus();else{const v=i?i.domReference:null,y=ui(v);y==null||y.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,ue("focus-out",b.nativeEvent)))}}})]})}function Eu(e,t){const n=Me(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Ur=20;let ht=[];function lr(){ht=ht.filter(e=>e.isConnected)}function Su(e){lr(),e&&yt(e)!=="body"&&(ht.push(e),ht.length>Ur&&(ht=ht.slice(-Ur)))}function wo(){return lr(),ht[ht.length-1]}function Mu(e){if(!e)return null;const t=hn();return ai(e,t)?e:uo(e,t)[0]||e}function Wr(e,t){var n;if(!t.current.includes("floating")&&!((n=e.getAttribute("role"))!=null&&n.includes("dialog")))return;const o=hn(),s=su(e,o).filter(c=>{const l=c.getAttribute("data-tabindex")||"";return ai(c,o)||c.hasAttribute("data-tabindex")&&!l.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||s.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Ii(e){const{context:t,children:n,disabled:o=!1,order:r=["content"],initialFocus:s=!0,returnFocus:i=!0,restoreFocus:c=!1,modal:l=!0,closeOnFocusOut:u=!0,openInteractionType:p="",getInsideElements:f=()=>[]}=e,{open:g,onOpenChange:m,events:x,dataRef:b,elements:{domReference:h,floating:v}}=t,y=J(()=>{var H;return(H=b.current.floatingContext)==null?void 0:H.nodeId}),R=J(f),w=s===!1,E=Uo(h)&&w,S=Re(r),k=Re(s),D=Re(i),V=Re(p),P=Ue(),j=Si(),N=a.useRef(null),I=a.useRef(null),U=a.useRef(!1),$=a.useRef(!1),T=a.useRef(-1),A=a.useRef(""),_=a.useRef(""),M=Be(),q=Be(),ce=sr(),X=j!=null,L=Kn(v),re=J((H=L)=>H?uo(H,hn()):[]),se=J(H=>{const Y=re(H);return S.current.map(()=>Y).filter(Boolean).flat()});a.useEffect(()=>{if(o||!l)return;function H(W){W.key==="Tab"&&he(L,tt(we(L)))&&re().length===0&&!E&&Pe(W)}const Y=we(L);return Y.addEventListener("keydown",H),()=>{Y.removeEventListener("keydown",H)}},[o,h,L,l,S,E,re,se]),a.useEffect(()=>{if(o||!v)return;function H(Y){const W=qe(Y),ne=re().indexOf(W);ne!==-1&&(T.current=ne)}return v.addEventListener("focusin",H),()=>{v.removeEventListener("focusin",H)}},[o,v,re]),a.useEffect(()=>{if(o||!g)return;const H=we(L);function Y(te){_.current=te.pointerType||"keyboard"}function W(){_.current="keyboard"}return H.addEventListener("pointerdown",Y,!0),H.addEventListener("keydown",W,!0),()=>{H.removeEventListener("pointerdown",Y,!0),H.removeEventListener("keydown",W,!0)}},[o,v,h,L,g]),a.useEffect(()=>{if(o||!u)return;function H(){$.current=!0,q.start(0,()=>{$.current=!1})}function Y(te){const ne=te.relatedTarget,ee=te.currentTarget,O=qe(te);queueMicrotask(()=>{const G=y(),F=!(he(h,ne)||he(v,ne)||he(ne,v)||he(j==null?void 0:j.portalNode,ne)||ne!=null&&ne.hasAttribute(Ut("focus-guard"))||P&&(Pt(P.nodesRef.current,G).find(Q=>{var ae,ie;return he((ae=Q.context)==null?void 0:ae.elements.floating,ne)||he((ie=Q.context)==null?void 0:ie.elements.domReference,ne)})||Nr(P.nodesRef.current,G).find(Q=>{var ae,ie,ge;return[(ae=Q.context)==null?void 0:ae.elements.floating,Kn((ie=Q.context)==null?void 0:ie.elements.floating)].includes(ne)||((ge=Q.context)==null?void 0:ge.elements.domReference)===ne})));if(ee===h&&L&&Wr(L,S),c&&ee!==h&&!(O!=null&&O.isConnected)&&tt(we(L))===we(L).body){if(ve(L)&&(L.focus(),c==="popup")){ce.request(()=>{L.focus()});return}const Q=T.current,ae=re(),ie=ae[Q]||ae[ae.length-1]||L;ve(ie)&&ie.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(E||!l)&&ne&&F&&(E||ne!==wo())&&(U.current=!0,m(!1,ue("focus-out",te)))})}function W(){b.current.insideReactTree=!0,M.start(0,()=>{b.current.insideReactTree=!1})}if(v&&ve(h))return h.addEventListener("focusout",Y),h.addEventListener("pointerdown",H),v.addEventListener("focusout",Y),j&&v.addEventListener("focusout",W,!0),()=>{h.removeEventListener("focusout",Y),h.removeEventListener("pointerdown",H),v.removeEventListener("focusout",Y),j&&v.removeEventListener("focusout",W,!0)}},[o,h,v,L,l,P,j,m,u,c,re,E,y,S,b,M,q,ce]);const C=a.useRef(null),B=a.useRef(null),Z=rt(C,j==null?void 0:j.beforeInsideRef),K=rt(B,j==null?void 0:j.afterInsideRef);a.useEffect(()=>{var H,Y,W;if(o||!v||!g)return;const te=Array.from(((H=j==null?void 0:j.portalNode)==null?void 0:H.querySelectorAll(`[${Ut("portal")}]`))||[]),ee=(W=(Y=(P?Nr(P.nodesRef.current,y()):[]).find(F=>{var Q;return Uo(((Q=F.context)==null?void 0:Q.elements.domReference)||null)}))==null?void 0:Y.context)==null?void 0:W.elements.domReference,O=[v,ee,...te,...R(),N.current,I.current,C.current,B.current,j==null?void 0:j.beforeOutsideRef.current,j==null?void 0:j.afterOutsideRef.current,E?h:null].filter(F=>F!=null),G=Ru(O,l||E);return()=>{G()}},[g,o,h,v,l,S,j,E,P,y,R]),oe(()=>{if(o||!ve(L))return;const H=we(L),Y=tt(H);queueMicrotask(()=>{const W=se(L),te=k.current,ne=typeof te=="function"?te(V.current||""):te;if(ne===void 0||ne===!1)return;let ee;ne===!0||ne===null?ee=W[0]||L:"current"in ne?ee=ne.current:ee=ne,ee=ee||W[0]||L,!he(L,Y)&&g&&Un(ee,{preventScroll:ee===L})})},[o,g,L,w,se,k,V]),oe(()=>{if(o||!L)return;const H=we(L),Y=tt(H);Su(Y);function W(ee){if(ee.open||(A.current=Eu(ee.nativeEvent,_.current)),ee.reason==="trigger-hover"&&ee.nativeEvent.type==="mouseleave"&&(U.current=!0),ee.reason==="outside-press")if(ee.nested)U.current=!1;else if(ei(ee.nativeEvent)||ti(ee.nativeEvent))U.current=!1;else{let O=!1;document.createElement("div").focus({get preventScroll(){return O=!0,!1}}),O?U.current=!1:U.current=!0}}x.on("openchange",W);const te=H.createElement("span");te.setAttribute("tabindex","-1"),te.setAttribute("aria-hidden","true"),Object.assign(te.style,ar),X&&h&&h.insertAdjacentElement("afterend",te);function ne(){const ee=D.current;let O=typeof ee=="function"?ee(A.current):ee;if(O===void 0||O===!1)return null;if(O===null&&(O=!0),typeof O=="boolean"){const F=h||wo();return F&&F.isConnected?F:te}const G=h||wo()||te;return"current"in O?O.current||G:O||G}return()=>{x.off("openchange",W);const ee=tt(H),O=he(v,ee)||P&&Pt(P.nodesRef.current,y(),!1).some(F=>{var Q;return he((Q=F.context)==null?void 0:Q.elements.floating,ee)}),G=ne();queueMicrotask(()=>{const F=Mu(G),Q=typeof D.current!="boolean";D.current&&!U.current&&ve(F)&&(!(!Q&&F!==ee&&ee!==H.body)||O)&&F.focus({preventScroll:!0}),te.remove()})}},[o,v,L,D,b,x,P,X,h,y]),a.useEffect(()=>{queueMicrotask(()=>{U.current=!1})},[o]),a.useEffect(()=>{if(o||!g)return;function H(W){const te=qe(W);te!=null&&te.closest(`[${kl}]`)&&($.current=!0)}const Y=we(L);return Y.addEventListener("pointerdown",H,!0),()=>{Y.removeEventListener("pointerdown",H,!0)}},[o,g,L]),oe(()=>{if(!o&&j)return j.setFocusManagerState({modal:l,closeOnFocusOut:u,open:g,onOpenChange:m,domReference:h}),()=>{j.setFocusManagerState(null)}},[o,j,l,g,m,u,h]),oe(()=>{if(!(o||!L))return Wr(L,S),()=>{queueMicrotask(lr)}},[o,L,S]);const z=!o&&(l?!E:!0)&&(X||l);return d.jsxs(a.Fragment,{children:[z&&d.jsx(Zn,{"data-type":"inside",ref:Z,onFocus:H=>{var Y;if(l){const W=se();Un(W[W.length-1])}else if(j!=null&&j.preserveTabOrder&&j.portalNode)if(U.current=!1,rn(H,j.portalNode)){const W=ui(h);W==null||W.focus()}else(Y=j.beforeOutsideRef.current)==null||Y.focus()}}),n,z&&d.jsx(Zn,{"data-type":"inside",ref:K,onFocus:H=>{var Y;if(l)Un(se()[0]);else if(j!=null&&j.preserveTabOrder&&j.portalNode)if(u&&(U.current=!0),rn(H,j.portalNode)){const W=di(h);W==null||W.focus()}else(Y=j.afterOutsideRef.current)==null||Y.focus()}})]})}function ki(e,t={}){const{open:n,onOpenChange:o,dataRef:r}=e,{enabled:s=!0,event:i="click",toggle:c=!0,ignoreMouse:l=!1,stickIfOpen:u=!0,touchOpenDelay:p=0}=t,f=a.useRef(void 0),g=sr(),m=Be(),x=a.useMemo(()=>({onPointerDown(b){f.current=b.pointerType},onMouseDown(b){const h=f.current,v=b.nativeEvent;if(b.button!==0||i==="click"||dn(h,!0)&&l)return;const y=r.current.openEvent,R=y==null?void 0:y.type,w=!(n&&c&&(!(y&&u)||R==="click"||R==="mousedown"));if(cr(v.target)){const E=ue("trigger-press",v);w&&h==="touch"&&p>0?m.start(p,()=>{o(!0,E)}):o(w,E);return}g.request(()=>{const E=ue("trigger-press",v);w&&h==="touch"&&p>0?m.start(p,()=>{o(!0,E)}):o(w,E)})},onClick(b){if(i==="mousedown-only")return;const h=f.current;if(i==="mousedown"&&h){f.current=void 0;return}if(dn(h,!0)&&l)return;const v=r.current.openEvent,y=v==null?void 0:v.type,R=!(n&&c&&(!(v&&u)||y==="click"||y==="mousedown"||y==="keydown"||y==="keyup")),w=ue("trigger-press",b.nativeEvent);R&&h==="touch"&&p>0?m.start(p,()=>{o(!0,w)}):o(R,w)},onKeyDown(){f.current=void 0}}),[r,i,l,o,n,u,c,g,m,p]);return a.useMemo(()=>s?{reference:x}:Ae,[s,x])}const Iu={intentional:"onClick",sloppy:"onPointerDown"};function Hr(e){var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}}function Pi(e,t={}){const{open:n,onOpenChange:o,elements:r,dataRef:s}=e,{enabled:i=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u="sloppy",referencePress:p=!1,referencePressEvent:f="sloppy",ancestorScroll:g=!1,bubbles:m,capture:x}=t,b=Ue(),h=J(typeof l=="function"?l:()=>!1),v=typeof l=="function"?h:l,y=a.useRef(!1),{escapeKey:R,outsidePress:w}=Hr(m),{escapeKey:E,outsidePress:S}=Hr(x),k=a.useRef(null),D=Be(),V=Be(),P=a.useRef(!1),j=a.useRef(""),N=J(C=>{j.current=C.pointerType}),I=J(()=>{const C=j.current,B=C==="pen"||!C?"mouse":C,Z=typeof u=="function"?u():u;return typeof Z=="string"?Z:Z[B]}),U=J(C=>{var B;if(!n||!i||!c||C.key!=="Escape"||P.current)return;const Z=(B=s.current.floatingContext)==null?void 0:B.nodeId,K=b?Pt(b.nodesRef.current,Z):[];if(!R&&K.length>0){let Y=!0;if(K.forEach(W=>{var te;(te=W.context)!=null&&te.open&&!W.context.dataRef.current.__escapeKeyBubbles&&(Y=!1)}),!Y)return}const z=Ul(C)?C.nativeEvent:C,H=ue("escape-key",z);o(!1,H),!R&&!H.isPropagationAllowed&&C.stopPropagation()}),$=J(C=>{const B=I();return B==="intentional"&&C.type!=="click"||B==="sloppy"&&C.type==="click"}),T=J(C=>{var B;const Z=()=>{var K;U(C),(K=qe(C))==null||K.removeEventListener("keydown",Z)};(B=qe(C))==null||B.addEventListener("keydown",Z)}),A=J((C,B=!1)=>{var Z;if($(C))return;const K=s.current.insideReactTree;if(s.current.insideReactTree=!1,I()==="intentional"&&B||K||typeof v=="function"&&!v(C))return;const z=qe(C),H=`[${Ut("inert")}]`,Y=we(r.floating).querySelectorAll(H);let W=fe(z)?z:null;for(;W&&!nt(W);){const O=st(W);if(nt(O)||!fe(O))break;W=O}if(Y.length&&fe(z)&&!zl(z)&&!he(z,r.floating)&&Array.from(Y).every(O=>!he(W,O)))return;if(ve(z)){const O=nt(z),G=Xe(z),F=/auto|scroll/,Q=O||F.test(G.overflowX),ae=O||F.test(G.overflowY),ie=Q&&z.clientWidth>0&&z.scrollWidth>z.clientWidth,ge=ae&&z.clientHeight>0&&z.scrollHeight>z.clientHeight,Ne=G.direction==="rtl",We=ge&&(Ne?C.offsetX<=z.offsetWidth-z.clientWidth:C.offsetX>z.clientWidth),Ce=ie&&C.offsetY>z.clientHeight;if(We||Ce)return}const te=(Z=s.current.floatingContext)==null?void 0:Z.nodeId,ne=b&&Pt(b.nodesRef.current,te).some(O=>{var G;return lt(C,(G=O.context)==null?void 0:G.elements.floating)});if(lt(C,r.floating)||lt(C,r.domReference)||ne)return;const ee=b?Pt(b.nodesRef.current,te):[];if(ee.length>0){let O=!0;if(ee.forEach(G=>{var F;(F=G.context)!=null&&F.open&&!G.context.dataRef.current.__outsidePressBubbles&&(O=!1)}),!O)return}o(!1,ue("outside-press",C))}),_=J(C=>{if(!(I()!=="sloppy"||!n||!i||lt(C,r.floating)||lt(C,r.domReference))){if(C.pointerType==="touch"){k.current={startTime:Date.now(),startX:C.clientX,startY:C.clientY,dismissOnPointerUp:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{k.current&&(k.current.dismissOnPointerUp=!1,k.current.dismissOnMouseDown=!1)});return}A(C)}}),M=J(C=>{var B;const Z=y.current;if(y.current=!1,$(C)||(D.clear(),C.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown))return;const K=()=>{var z;C.type==="pointerdown"?_(C):A(C,Z),(z=qe(C))==null||z.removeEventListener(C.type,K)};(B=qe(C))==null||B.addEventListener(C.type,K)}),q=J(C=>{if(I()!=="sloppy"||C.pointerType!=="touch"||!k.current||lt(C,r.floating)||lt(C,r.domReference))return;const B=Math.abs(C.clientX-k.current.startX),Z=Math.abs(C.clientY-k.current.startY),K=Math.sqrt(B*B+Z*Z);K>5&&(k.current.dismissOnPointerUp=!0),K>10&&(A(C),D.clear(),k.current=null)}),ce=J(C=>{I()!=="sloppy"||C.pointerType!=="touch"||!k.current||lt(C,r.floating)||lt(C,r.domReference)||(k.current.dismissOnPointerUp&&A(C),D.clear(),k.current=null)});a.useEffect(()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=R,s.current.__outsidePressBubbles=w;const C=new Ot;function B(Y){o(!1,ue("none",Y))}function Z(){C.clear(),P.current=!0}function K(){C.start(co()?5:0,()=>{P.current=!1})}const z=we(r.floating);z.addEventListener("pointerdown",N,!0),c&&(z.addEventListener("keydown",E?T:U,E),z.addEventListener("compositionstart",Z),z.addEventListener("compositionend",K)),v&&(z.addEventListener("click",S?M:A,S),z.addEventListener("pointerdown",S?M:A,S),z.addEventListener("pointermove",q,S),z.addEventListener("pointerup",ce,S),z.addEventListener("mousedown",M,S));let H=[];return g&&(fe(r.domReference)&&(H=vt(r.domReference)),fe(r.floating)&&(H=H.concat(vt(r.floating))),!fe(r.reference)&&r.reference&&r.reference.contextElement&&(H=H.concat(vt(r.reference.contextElement)))),H=H.filter(Y=>{var W;return Y!==((W=z.defaultView)==null?void 0:W.visualViewport)}),H.forEach(Y=>{Y.addEventListener("scroll",B,{passive:!0})}),()=>{z.removeEventListener("pointerdown",N,!0),c&&(z.removeEventListener("keydown",E?T:U,E),z.removeEventListener("compositionstart",Z),z.removeEventListener("compositionend",K)),v&&(z.removeEventListener("click",S?M:A,S),z.removeEventListener("pointerdown",S?M:A,S),z.removeEventListener("pointermove",q,S),z.removeEventListener("pointerup",ce,S),z.removeEventListener("mousedown",M,S)),H.forEach(Y=>{Y.removeEventListener("scroll",B)}),C.clear()}},[s,r,c,v,n,o,g,i,R,w,U,E,T,A,S,M,_,q,ce,N]),a.useEffect(()=>{s.current.insideReactTree=!1},[s,v]);const X=a.useMemo(()=>({onKeyDown:U,...p&&{[Iu[f]]:C=>{o(!1,ue("trigger-press",C.nativeEvent))},...f!=="intentional"&&{onClick(C){o(!1,ue("trigger-press",C.nativeEvent))}}}}),[U,o,p,f]),L=J(C=>{const B=qe(C.nativeEvent);!he(r.floating,B)||C.button!==0||(y.current=!0)}),re=J(()=>{s.current.insideReactTree=!0,V.start(0,()=>{s.current.insideReactTree=!1})}),se=a.useMemo(()=>({onKeyDown:U,onMouseDown:L,onMouseUp:L,onPointerDownCapture:re,onMouseDownCapture:re,onClickCapture:re,onMouseUpCapture:re}),[U,L,re]);return a.useMemo(()=>i?{reference:X,floating:se}:{},[i,X,se])}function ur(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=Kt(),s=a.useRef({}),[i]=a.useState(()=>yi()),c=wt()!=null,[l,u]=a.useState(o.reference),p=J((m,x)=>{if(s.current.openEvent=m?x.event:void 0,!e.noEmit){const b={open:m,reason:x.reason,nativeEvent:x.event,nested:c};i.emit("openchange",b)}n==null||n(m,x)}),f=a.useMemo(()=>({setPositionReference:u}),[]),g=a.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:p,elements:g,events:i,floatingId:r,refs:f}),[t,p,g,i,r,f])}function ku(){return{open:!1,onOpenChange:()=>{},dataRef:{current:{}},elements:{floating:null,reference:null,domReference:null},events:{on:()=>{},off:()=>{},emit:()=>{}},floatingId:"",refs:{setPositionReference:()=>{}}}}function Oi(e=[]){const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),o=e.map(c=>c==null?void 0:c.item),r=a.useCallback(c=>Ro(c,e,"reference"),t),s=a.useCallback(c=>Ro(c,e,"floating"),n),i=a.useCallback(c=>Ro(c,e,"item"),o);return a.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}function Ro(e,t,n){var o;const r=new Map,s=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[Vo]="");for(const c in e)s&&e&&(c===Qs||c===Js)||(i[c]=e[c]);for(let c=0;c<t.length;c+=1){let l;const u=(o=t[c])==null?void 0:o[n];typeof u=="function"?l=e?u(e):null:l=u,l&&Gr(i,l,s,r)}return Gr(i,e,s,r),i}function Gr(e,t,n,o){var r;for(const s in t){const i=t[s];n&&(s===Qs||s===Js)||(s.startsWith("on")?(o.has(s)||o.set(s,[]),typeof i=="function"&&((r=o.get(s))==null||r.push(i),e[s]=(...c)=>{var l;return(l=o.get(s))==null?void 0:l.map(u=>u(...c)).find(u=>u!==void 0)})):e[s]=i)}}const Pu=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ti(e,t={}){var n,o;const{open:r,elements:s,floatingId:i}=e,{enabled:c=!0,role:l="dialog"}=t,u=Kt(),p=((n=s.domReference)==null?void 0:n.id)||u,f=a.useMemo(()=>{var y;return((y=Kn(s.floating))==null?void 0:y.id)||i},[s.floating,i]),g=(o=Pu.get(l))!=null?o:l,x=wt()!=null,b=a.useMemo(()=>g==="tooltip"||l==="label"?{[`aria-${l==="label"?"labelledby":"describedby"}`]:r?f:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":r?f:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:p},...g==="menu"&&x&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,f,x,r,p,l]),h=a.useMemo(()=>{const y={id:f,...g&&{role:g}};return g==="tooltip"||l==="label"?y:{...y,...g==="menu"&&{"aria-labelledby":p}}},[g,f,p,l]),v=a.useCallback(({active:y,selected:R})=>{const w={role:"option",...y&&{id:`${f}-fui-option`}};switch(l){case"select":case"combobox":return{...w,"aria-selected":R}}return{}},[f,l]);return a.useMemo(()=>c?{reference:b,floating:h,item:v}:{},[c,b,h,v])}const dr=a.forwardRef(function(t,n){const{cutout:o,...r}=t;let s;if(o){const i=o==null?void 0:o.getBoundingClientRect();s=`polygon(
|
|
5
|
-
0% 0%,
|
|
6
|
-
100% 0%,
|
|
7
|
-
100% 100%,
|
|
8
|
-
0% 100%,
|
|
9
|
-
0% 0%,
|
|
10
|
-
${i.left}px ${i.top}px,
|
|
11
|
-
${i.left}px ${i.bottom}px,
|
|
12
|
-
${i.right}px ${i.bottom}px,
|
|
13
|
-
${i.right}px ${i.top}px,
|
|
14
|
-
${i.left}px ${i.top}px
|
|
15
|
-
)`}return d.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});let Kr={},qr={},Yr="";function Ou(e){if(typeof document>"u")return!1;const t=ft(e);return Me(t).innerWidth-t.documentElement.clientWidth>0}function Tu(e){const n=ft(e).documentElement,o=n.style.overflow;return n.style.overflow="hidden",()=>{n.style.overflow=o}}function _u(e){var t,n;const o=ft(e),r=o.documentElement,s=o.body,i=Me(r);let c=0,l=0;const u=et.create();if(Ys&&((n=(t=i.visualViewport)==null?void 0:t.scale)!=null?n:1)!==1)return()=>{};function p(){var m;const x=i.getComputedStyle(r),b=i.getComputedStyle(s);c=r.scrollTop,l=r.scrollLeft,Kr={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},Yr=r.style.scrollBehavior,qr={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};const h=typeof CSS<"u"&&((m=CSS.supports)==null?void 0:m.call(CSS,"scrollbar-gutter","stable")),v=r.scrollHeight>r.clientHeight,y=r.scrollWidth>r.clientWidth,R=x.overflowY==="scroll"||b.overflowY==="scroll",w=x.overflowX==="scroll"||b.overflowX==="scroll",E=Math.max(0,i.innerWidth-r.clientWidth),S=Math.max(0,i.innerHeight-r.clientHeight),k=parseFloat(b.marginTop)+parseFloat(b.marginBottom),D=parseFloat(b.marginLeft)+parseFloat(b.marginRight);Object.assign(r.style,{scrollbarGutter:"stable",overflowY:!h&&(v||R)?"scroll":"hidden",overflowX:!h&&(y||w)?"scroll":"hidden"}),Object.assign(s.style,{position:"relative",height:k||S?`calc(100dvh - ${k+S}px)`:"100dvh",width:D||E?`calc(100vw - ${D+E}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),s.scrollTop=c,s.scrollLeft=l,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function f(){Object.assign(r.style,Kr),Object.assign(s.style,qr),r.scrollTop=c,r.scrollLeft=l,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=Yr}function g(){f(),u.request(p)}return p(),i.addEventListener("resize",g),()=>{u.cancel(),f(),i.removeEventListener("resize",g)}}class ju{constructor(){Ee(this,"lockCount",0),Ee(this,"restore",null),Ee(this,"timeoutLock",Ot.create()),Ee(this,"timeoutUnlock",Ot.create()),Ee(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)}),Ee(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const o=ft(t).documentElement,r=Me(o).getComputedStyle(o).overflowY;if(r==="hidden"||r==="clip"){this.restore=Ds;return}const s=Dl||!Ou(t);this.restore=s?Tu(t):_u(t)}}const Au=new ju;function _i(e){const{enabled:t=!0,mounted:n,open:o,referenceElement:r=null}=e;oe(()=>{if(t&&Ys&&n&&!o){const s=ft(r),i=s.body.style.userSelect,c=s.body.style.webkitUserSelect;return s.body.style.userSelect="none",s.body.style.webkitUserSelect="none",()=>{s.body.style.userSelect=i,s.body.style.webkitUserSelect=c}}},[t,n,o,r]),oe(()=>{if(t)return Au.acquire(r)},[t,r])}function Du(e){const t=a.useRef(""),n=a.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:a.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r&&e(r,r.pointerType),e(r,t.current),t.current=""},[e]),onPointerDown:n}}function ji(e){const[t,n]=a.useState(null),o=J((c,l)=>{e||n(l)}),r=J(()=>{n(null)}),{onClick:s,onPointerDown:i}=Du(o);return a.useMemo(()=>({openMethod:t,reset:r,triggerProps:{onClick:s,onPointerDown:i}}),[t,r,s,i])}dr.__docgenInfo={description:"",methods:[],displayName:"InternalBackdrop"};var Nu=Object.defineProperty,Lu=(e,t,n)=>t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qn=(e,t,n)=>Lu(e,typeof t!="symbol"?t+"":t,n);function Fu(e){const{store:t,parentContext:n}=e,o=t.useState("open"),r=t.useState("dismissible"),s=t.useState("modal"),i=t.useState("triggerElement"),c=t.useState("popupElement"),{mounted:l,setMounted:u,transitionStatus:p}=lo(o),{openMethod:f,triggerProps:g,reset:m}=ji(o),x=J(()=>{var V,P;u(!1),(P=(V=t.context).openChangeComplete)==null||P.call(V,!1),m()});Yt({enabled:!e.actionsRef,open:o,ref:t.context.popupRef,onComplete(){o||x()}}),a.useImperativeHandle(e.actionsRef,()=>({unmount:x}),[x]);const b=ur({elements:{reference:i,floating:c},open:o,onOpenChange:t.setOpen,noEmit:!0}),[h,v]=a.useState(0),y=h===0,R=Ti(b),w=ki(b),E=Pi(b,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(V){if(V.button!==0)return!1;const P=qe(V);if(y&&r){const j=P;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===j||t.context.backdropRef.current===j:!0}return!1},escapeKey:y});_i({enabled:o&&s===!0,mounted:l,open:o,referenceElement:c});const{getReferenceProps:S,getFloatingProps:k}=Oi([R,w,E]);t.useContextCallback("nestedDialogOpen",V=>{v(V+1)}),t.useContextCallback("nestedDialogClose",()=>{v(0)}),a.useEffect(()=>(n!=null&&n.nestedDialogOpen&&o&&n.nestedDialogOpen(h),n!=null&&n.nestedDialogClose&&!o&&n.nestedDialogClose(),()=>{n!=null&&n.nestedDialogClose&&o&&n.nestedDialogClose()}),[o,n,h]);const D=a.useMemo(()=>S(g),[S,g]);t.useSyncedValues({openMethod:f,mounted:l,transitionStatus:p,triggerProps:D,popupProps:k(),floatingRootContext:b,nestedOpenDialogCount:h})}var Jn=Symbol("NOT_FOUND");function Bu(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function $u(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zu(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var Xr=e=>Array.isArray(e)?e:[e];function Vu(e){const t=Array.isArray(e[0])?e[0]:e;return zu(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uu(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}function Wu(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Jn},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Hu(e,t){let n=[];function o(c){const l=n.findIndex(u=>t(c,u.key));if(l>-1){const u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return Jn}function r(c,l){o(c)===Jn&&(n.unshift({key:c,value:l}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:o,put:r,getEntries:s,clear:i}}var Gu=(e,t)=>e===t;function Ku(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:r}=n;for(let s=0;s<r;s++)if(!e(n[s],o[s]))return!1;return!0}}function qu(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=Gu,maxSize:r=1,resultEqualityCheck:s}=n,i=Ku(o);let c=0;const l=r<=1?Wu(i):Hu(r,i);function u(){let p=l.get(arguments);if(p===Jn){if(p=e.apply(null,arguments),c++,s){const g=l.getEntries().find(m=>s(m.value,p));g&&(p=g.value,c!==0&&c--)}l.put(arguments,p)}return p}return u.clearCache=()=>{l.clear(),u.resetResultsCount()},u.resultsCount=()=>c,u.resetResultsCount=()=>{c=0},u}var Yu=class{constructor(e){this.value=e}deref(){return this.value}},Xu=typeof WeakRef<"u"?WeakRef:Yu,Zu=0,Zr=1;function Nn(){return{s:Zu,v:void 0,o:null,p:null}}function Ai(e,t={}){let n=Nn();const{resultEqualityCheck:o}=t;let r,s=0;function i(){var c,l;let u=n;const{length:p}=arguments;for(let m=0,x=p;m<x;m++){const b=arguments[m];if(typeof b=="function"||typeof b=="object"&&b!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const v=h.get(b);v===void 0?(u=Nn(),h.set(b,u)):u=v}else{let h=u.p;h===null&&(u.p=h=new Map);const v=h.get(b);v===void 0?(u=Nn(),h.set(b,u)):u=v}}const f=u;let g;if(u.s===Zr)g=u.v;else if(g=e.apply(null,arguments),s++,o){const m=(l=(c=r==null?void 0:r.deref)==null?void 0:c.call(r))!=null?l:r;m!=null&&o(m,g)&&(g=m,s!==0&&s--),r=typeof g=="object"&&g!==null||typeof g=="function"?new Xu(g):g}return f.s=Zr,f.v=g,g}return i.clearCache=()=>{n=Nn(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Di(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...r)=>{let s=0,i=0,c,l={},u=r.pop();typeof u=="object"&&(l=u,u=r.pop()),Bu(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const p={...n,...l},{memoize:f,memoizeOptions:g=[],argsMemoize:m=Ai,argsMemoizeOptions:x=[]}=p,b=Xr(g),h=Xr(x),v=Vu(r),y=f(function(){return s++,u.apply(null,arguments)},...b),R=m(function(){i++;const E=Uu(v,arguments);return c=y.apply(null,E),c},...h);return Object.assign(R,{resultFunc:u,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:m})};return Object.assign(o,{withTypes:()=>o}),o}var Qu=Di(Ai),Ju=Object.assign((e,t=Qu)=>{$u(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),o=n.map(s=>e[s]);return t(o,(...s)=>s.reduce((i,c,l)=>(i[n[l]]=c,i),{}))},{withTypes:()=>Ju});Di({memoize:qu,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Te=(e,t,n,o,r,s,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Co={exports:{}},Eo={},So={exports:{}},Mo={};/**
|
|
16
|
-
* @license React
|
|
17
|
-
* use-sync-external-store-shim.production.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var Qr;function ed(){if(Qr)return Mo;Qr=1;var e=Es;function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function c(f,g){var m=g(),x=o({inst:{value:m,getSnapshot:g}}),b=x[0].inst,h=x[1];return s(function(){b.value=m,b.getSnapshot=g,l(b)&&h({inst:b})},[f,m,g]),r(function(){return l(b)&&h({inst:b}),f(function(){l(b)&&h({inst:b})})},[f]),i(m),m}function l(f){var g=f.getSnapshot;f=f.value;try{var m=g();return!n(f,m)}catch{return!0}}function u(f,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Mo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Mo}var Jr;function td(){return Jr||(Jr=1,So.exports=ed()),So.exports}/**
|
|
24
|
-
* @license React
|
|
25
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/var es;function nd(){if(es)return Eo;es=1;var e=Es,t=td();function n(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,c=e.useMemo,l=e.useDebugValue;return Eo.useSyncExternalStoreWithSelector=function(u,p,f,g,m){var x=s(null);if(x.current===null){var b={hasValue:!1,value:null};x.current=b}else b=x.current;x=c(function(){function v(S){if(!y){if(y=!0,R=S,S=g(S),m!==void 0&&b.hasValue){var k=b.value;if(m(k,S))return w=k}return w=S}if(k=w,o(R,S))return k;var D=g(S);return m!==void 0&&m(k,D)?(R=S,k):(R=S,w=D)}var y=!1,R,w,E=f===void 0?null:f;return[function(){return v(p())},E===null?void 0:function(){return v(E())}]},[p,f,g,m]);var h=r(u,x[0],x[1]);return i(function(){b.hasValue=!0,b.value=h},[h]),l(h),h},Eo}var ts;function od(){return ts||(ts=1,Co.exports=nd()),Co.exports}var rd=od();function sd(e,t,n,o,r){const s=i=>t(i,n,o,r);return rd.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s)}class id{constructor(t){Qn(this,"subscribe",n=>(this.listeners.add(n),()=>{this.listeners.delete(n)})),Qn(this,"getSnapshot",()=>this.state),this.state=t,this.listeners=new Set}update(t){this.state!==t&&(this.state=t,this.listeners.forEach(n=>n(t)))}apply(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.update({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.update({...this.state,[t]:n})}}class cd extends id{constructor(t,n={},o){super(t),Qn(this,"controlledValues",new Map),this.context=n,this.selectors=o}useSyncedValue(t,n){oe(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){oe(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){oe(()=>{this.apply(t)},[t])}useControlledProp(t,n,o){const r=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,r),!r&&!Object.is(this.state[t],o)&&super.update({...this.state,[t]:o})),oe(()=>{r&&!Object.is(this.state[t],n)&&super.update({...this.state,[t]:n})},[t,n,o,r])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}apply(t){const n={...t};for(const o in n)this.controlledValues.get(o)===!0&&delete n[o];super.apply(n)}update(t){const n={...t};for(const o in n)this.controlledValues.get(o)===!0&&delete n[o];super.update({...this.state,...n})}useState(t){if(!this.selectors)throw new Error("Base UI: selectors are required to call useState.");return sd(this,this.selectors[t])}useContextCallback(t,n){const o=J(n??Ds);this.context[t]=o}getElementSetter(t){return a.useCallback(n=>{this.set(t,n)},[t])}}const ad={open:Te(e=>e.open),modal:Te(e=>e.modal),nested:Te(e=>e.nested),nestedOpenDialogCount:Te(e=>e.nestedOpenDialogCount),dismissible:Te(e=>e.dismissible),openMethod:Te(e=>e.openMethod),descriptionElementId:Te(e=>e.descriptionElementId),titleElementId:Te(e=>e.titleElementId),mounted:Te(e=>e.mounted),transitionStatus:Te(e=>e.transitionStatus),triggerProps:Te(e=>e.triggerProps),popupProps:Te(e=>e.popupProps),floatingRootContext:Te(e=>e.floatingRootContext),popupElement:Te(e=>e.popupElement),triggerElement:Te(e=>e.triggerElement)};class fr extends cd{constructor(){super(...arguments),Qn(this,"setOpen",(t,n)=>{var o,r,s;if((r=(o=this.context).openChange)==null||r.call(o,t,n),n.isCanceled)return;const i={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};(s=this.state.floatingRootContext.events)==null||s.emit("openchange",i),this.set("open",t)})}static create(t){const n={popupRef:a.createRef(),backdropRef:a.createRef(),internalBackdropRef:a.createRef()};return new fr(t,n,ad)}}const ld={...vn,...mn},ud=a.forwardRef(function(t,n){const{render:o,className:r,forceRender:s=!1,...i}=t,{store:c}=_t(),l=c.useState("open"),u=c.useState("nested"),p=c.useState("mounted"),f=c.useState("transitionStatus"),g=a.useMemo(()=>({open:l,transitionStatus:f}),[l,f]);return xe("div",t,{state:g,ref:[c.context.backdropRef,n],stateAttributesMapping:ld,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},i],enabled:s||!u})});let dd=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),fd=(function(e){return e[e.open=It.open]="open",e[e.closed=It.closed]="closed",e[e.startingStyle=It.startingStyle]="startingStyle",e[e.endingStyle=It.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const Ni=a.createContext(void 0);function pd(){const e=a.useContext(Ni);if(e===void 0)throw new Error("Base UI: <Dialog.Portal> is missing.");return e}const md={...vn,...mn,nestedDialogOpen(e){return e?{[fd.nestedDialogOpen]:""}:null}},gd=a.forwardRef(function(t,n){const{className:o,finalFocus:r,initialFocus:s,render:i,...c}=t,{store:l}=_t(),u=l.useState("descriptionElementId"),p=l.useState("dismissible"),f=l.useState("floatingRootContext"),g=l.useState("popupProps"),m=l.useState("modal"),x=l.useState("mounted"),b=l.useState("nested"),h=l.useState("nestedOpenDialogCount"),v=l.useState("open"),y=l.useState("openMethod"),R=l.useState("titleElementId"),w=l.useState("transitionStatus");pd(),Yt({open:v,ref:l.context.popupRef,onComplete(){var P,j;v&&((j=(P=l.context).openChangeComplete)==null||j.call(P,!0))}});const E=J(P=>P==="touch"?l.context.popupRef.current:!0),S=s===void 0?E:s,k=h>0,D=a.useMemo(()=>({open:v,nested:b,transitionStatus:w,nestedDialogOpen:k}),[v,b,w,k]),V=xe("div",t,{state:D,props:[g,{"aria-labelledby":R??void 0,"aria-describedby":u??void 0,role:"dialog",tabIndex:-1,hidden:!x,onKeyDown(P){xi.has(P.key)&&P.stopPropagation()},style:{[dd.nestedDialogs]:h}},c],ref:[n,l.context.popupRef,l.getElementSetter("popupElement")],stateAttributesMapping:md});return d.jsxs(a.Fragment,{children:[x&&m===!0&&d.jsx(dr,{ref:l.context.internalBackdropRef,inert:bi(!v)}),d.jsx(Ii,{context:f,openInteractionType:y,disabled:!x,closeOnFocusOut:p,initialFocus:S,returnFocus:r,modal:m!==!1,restoreFocus:"popup",children:V})]})});function hd(e){const{children:t,keepMounted:n=!1,container:o}=e,{store:r}=_t();return r.useState("mounted")||n?d.jsx(Ni.Provider,{value:n,children:d.jsx(Mi,{root:o,children:t})}):null}const vd={open:!1,dismissible:!0,nested:!1,popupElement:null,triggerElement:null,modal:!0,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,mounted:!1,transitionStatus:"idle",nestedOpenDialogCount:0,triggerProps:Ae,popupProps:Ae,floatingRootContext:ku()},xd=function(t){const{children:n,open:o,defaultOpen:r=!1,onOpenChange:s,onOpenChangeComplete:i,dismissible:c=!0,modal:l=!0,actionsRef:u}=t,p=_t(!0),f=!!p,g=dt(fr.create,vd).current;g.useControlledProp("open",o,r),g.useSyncedValues({dismissible:c,nested:f,modal:l}),g.useContextCallback("openChange",s),g.useContextCallback("openChangeComplete",i),Fu({store:g,actionsRef:u,parentContext:p==null?void 0:p.store.context});const m=a.useMemo(()=>({store:g}),[g]);return d.jsx(Ws.Provider,{value:m,children:n})},Li=({children:e,open:t,onOpen:n,onClose:o,overlay:r=!0,size:s="md",mobileFullHeight:i=!1,className:c,dataset:l,...u})=>{const p=Cs(),f=bd(t),g=a.useCallback(h=>{h?n==null||n():o==null||o()},[o,n]),m=_c(Se,"dialog",[jc("size",s)]),x=[Se.dialog,...m,i&&Se["dialog--fullheight"],c].filter(Boolean).join(" "),b=ze(l,{preplyDsComponent:Qe.Dialog});return d.jsx(xd,{open:t,onOpenChange:g,children:d.jsxs(hd,{container:p,children:[r&&d.jsx(ud,{className:Se.overlay,forceRender:!0,"data-testid":"dialog-overlay"}),d.jsx(gd,{ref:f,className:x,...b,...u,children:e})]})})};function bd(e){const[t,n]=a.useState(null),o=a.useCallback(r=>n(r),[]);return a.useEffect(()=>{if(!e||!t)return;const r=async()=>{const i=t.getAnimations().map(l=>l.finished);await Promise.allSettled(i);const{y:c}=t.getBoundingClientRect();t.classList.toggle(Se["no-border-radius"],c===0)};r(),window.addEventListener("resize",r);const s=new ResizeObserver(r);return s.observe(t),()=>{window.removeEventListener("resize",r),s.disconnect()}},[e,t]),o}const yd=a.forwardRef(function(t,n){const{render:o,className:r,id:s,...i}=t,{store:c}=_t(),l=jt(s);return c.useSyncedValueWithCleanup("titleElementId",l),xe("h2",t,{ref:n,props:[{id:l},i]})}),pr=a.forwardRef(function({children:t,className:n,dataset:o,...r},s){const i=[Se.title,n].filter(Boolean).join(" "),c=ze(o);return d.jsx(yd,{ref:s,className:i,...c,...r,children:t})});pr.__docgenInfo={description:"",methods:[],displayName:"DialogTitle2"};const wd=({open:e,title:t,description:n,leadingElement:o,children:r,size:s="md",hideHeader:i,onClose:c,mobileFullHeight:l,dataset:u})=>d.jsxs(Li,{open:e,onClose:c,size:s,mobileFullHeight:l,dataset:u,children:[d.jsx(or,{}),d.jsxs("header",{className:Se.header,children:[o,!i&&d.jsxs("hgroup",{children:[d.jsx(pr,{children:t}),d.jsx(rr,{children:n})]})]}),r]}),Rd=({primaryButton:e,secondaryButton:t})=>{const n=a.useCallback(o=>{var r;(r=o.currentTarget.closest("[role=dialog]"))==null||r.classList.add(Se.slidesUp)},[]);return d.jsx(Qo,{children:d.jsxs(Jo,{children:[t,d.jsx("div",{style:{display:"contents"},onClick:n,children:e})]})})},Cd=Object.assign(wd,{Actions:Rd,Steps:La,Step:Fa,StepsActions:Ba,StepsNext:js,StepsPrevious:As,Root:Li,CloseButton:or,Footer:Qo,Title:pr,Description:rr,ButtonStack:Jo});var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Io,ns;function Ed(){if(ns)return Io;ns=1;var e="Expected a function",t=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,c=parseInt,l=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,u=typeof self=="object"&&self&&self.Object===Object&&self,p=l||u||Function("return this")(),f=Object.prototype,g=f.toString,m=Math.max,x=Math.min,b=function(){return p.Date.now()};function h(E,S,k){var D,V,P,j,N,I,U=0,$=!1,T=!1,A=!0;if(typeof E!="function")throw new TypeError(e);S=w(S)||0,v(k)&&($=!!k.leading,T="maxWait"in k,P=T?m(w(k.maxWait)||0,S):P,A="trailing"in k?!!k.trailing:A);function _(B){var Z=D,K=V;return D=V=void 0,U=B,j=E.apply(K,Z),j}function M(B){return U=B,N=setTimeout(X,S),$?_(B):j}function q(B){var Z=B-I,K=B-U,z=S-Z;return T?x(z,P-K):z}function ce(B){var Z=B-I,K=B-U;return I===void 0||Z>=S||Z<0||T&&K>=P}function X(){var B=b();if(ce(B))return L(B);N=setTimeout(X,q(B))}function L(B){return N=void 0,A&&D?_(B):(D=V=void 0,j)}function re(){N!==void 0&&clearTimeout(N),U=0,D=I=V=N=void 0}function se(){return N===void 0?j:L(b())}function C(){var B=b(),Z=ce(B);if(D=arguments,V=this,I=B,Z){if(N===void 0)return M(I);if(T)return N=setTimeout(X,S),_(I)}return N===void 0&&(N=setTimeout(X,S)),j}return C.cancel=re,C.flush=se,C}function v(E){var S=typeof E;return!!E&&(S=="object"||S=="function")}function y(E){return!!E&&typeof E=="object"}function R(E){return typeof E=="symbol"||y(E)&&g.call(E)==n}function w(E){if(typeof E=="number")return E;if(R(E))return t;if(v(E)){var S=typeof E.valueOf=="function"?E.valueOf():E;E=v(S)?S+"":S}if(typeof E!="string")return E===0?E:+E;E=E.replace(o,"");var k=s.test(E);return k||i.test(E)?c(E.slice(2),k?2:8):r.test(E)?t:+E}return Io=h,Io}Ed();var Sd=typeof window<"u"?a.useLayoutEffect:a.useEffect,Md=typeof window>"u";function Id(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const o=c=>Md?t:window.matchMedia(c).matches,[r,s]=a.useState(()=>n?o(e):t);function i(){s(o(e))}return Sd(()=>{const c=window.matchMedia(e);return i(),c.addListener?c.addListener(i):c.addEventListener("change",i),()=>{c.removeListener?c.removeListener(i):c.removeEventListener("change",i)}},[e]),r}function Fi(e){const t=Yc[e];return Id(`(min-width: ${t}px)`)}function mr({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=a.useRef(e!==void 0),[s,i]=a.useState(t),c=r?e:s,l=a.useCallback(u=>{r||i(u)},[]);return[c,l]}const Bi=a.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function kd(){return a.useContext(Bi)}function Pd(e){const{children:t,elementsRef:n,labelsRef:o,onMapChange:r}=e,s=a.useRef(0),i=dt(Td).current,c=dt(Od).current,[l,u]=a.useState(Ae),p=a.useRef(l),f=J((h,v)=>{c.set(h,v??null),p.current={},u(p.current)}),g=J(h=>{c.delete(h),p.current={},u(p.current)}),m=a.useMemo(()=>{const h=new Map;return Array.from(c.keys()).sort(_d).forEach((y,R)=>{var w;const E=(w=c.get(y))!=null?w:{};h.set(y,{...E,index:R})}),h},[c,l]);oe(()=>{if(typeof MutationObserver!="function"||m.size===0)return;const h=new MutationObserver(v=>{const y=new Set,R=w=>y.has(w)?y.delete(w):y.add(w);v.forEach(w=>{w.removedNodes.forEach(R),w.addedNodes.forEach(R)}),y.size===0&&(p.current={},u(p.current))});return m.forEach((v,y)=>{y.parentElement&&h.observe(y.parentElement,{childList:!0})}),()=>{h.disconnect()}},[m]),oe(()=>{p.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),o&&o.current.length!==m.size&&(o.current.length=m.size),s.current=m.size),r==null||r(m)},[r,m,n,o,l]);const x=J(h=>(i.add(h),()=>{i.delete(h)}));oe(()=>{i.forEach(h=>h(m))},[i,m]);const b=a.useMemo(()=>({register:f,unregister:g,subscribeMapChange:x,elementsRef:n,labelsRef:o,nextIndexRef:s}),[f,g,x,n,o,s]);return d.jsx(Bi.Provider,{value:b,children:t})}function Od(){return new Map}function Td(){return new Set}function _d(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const jd=a.createContext(void 0);function $i(e=!0){var t;const n=a.useContext(jd);if(n===void 0&&!e)throw new Error("Base UI: DirectionContext is missing.");return(t=n==null?void 0:n.direction)!=null?t:"ltr"}let Ad=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function xn(e={}){const{label:t,metadata:n,textRef:o,indexGuessBehavior:r,index:s}=e,{register:i,unregister:c,subscribeMapChange:l,elementsRef:u,labelsRef:p,nextIndexRef:f}=kd(),g=a.useRef(-1),[m,x]=a.useState(s??(r===Ad.GuessFromOrder?()=>{if(g.current===-1){const v=f.current;f.current+=1,g.current=v}return g.current}:-1)),b=a.useRef(null),h=a.useCallback(v=>{var y,R;if(b.current=v,m!==-1&&v!==null&&(u.current[m]=v,p)){const w=t!==void 0;p.current[m]=w?t:(R=(y=o==null?void 0:o.current)==null?void 0:y.textContent)!=null?R:v.textContent}},[m,u,p,t,o]);return oe(()=>{if(s!=null)return;const v=b.current;if(v)return i(v,n),()=>{c(v)}},[s,i,c,n]),oe(()=>{if(s==null)return l(v=>{var y;const R=b.current?(y=v.get(b.current))==null?void 0:y.index:null;R!=null&&x(R)})},[s,l,x]),a.useMemo(()=>({ref:h,index:m}),[m,h])}const Dd=["top","right","bottom","left"],Wt=Math.min,Fe=Math.max,eo=Math.round,Bt=Math.floor,ot=e=>({x:e,y:e}),Nd={left:"right",right:"left",bottom:"top",top:"bottom"},Ld={start:"end",end:"start"};function Ko(e,t,n){return Fe(e,Wt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function gr(e){return e==="x"?"y":"x"}function hr(e){return e==="y"?"height":"width"}const Fd=new Set(["top","bottom"]);function Ye(e){return Fd.has($e(e))?"y":"x"}function vr(e){return gr(Ye(e))}function Bd(e,t,n){n===void 0&&(n=!1);const o=Rt(e),r=vr(e),s=hr(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=to(i)),[i,to(i)]}function $d(e){const t=to(e);return[qo(e),t,qo(t)]}function qo(e){return e.replace(/start|end/g,t=>Ld[t])}const os=["left","right"],rs=["right","left"],zd=["top","bottom"],Vd=["bottom","top"];function Ud(e,t,n){switch(e){case"top":case"bottom":return n?t?rs:os:t?os:rs;case"left":case"right":return t?zd:Vd;default:return[]}}function Wd(e,t,n,o){const r=Rt(e);let s=Ud($e(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(qo)))),s}function to(e){return e.replace(/left|right|bottom|top/g,t=>Nd[t])}function Hd(e){return{top:0,right:0,bottom:0,left:0,...e}}function zi(e){return typeof e!="number"?Hd(e):{top:e,right:e,bottom:e,left:e}}function no(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 Fn(e,t,n){return Math.floor(e/t)!==n}function sn(e,t){return t<0||t>=e.current.length}function ko(e,t){return ke(e,{disabledIndices:t})}function ss(e,t){return ke(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ke(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:r=1}={}){let s=t;do s+=n?-r:r;while(s>=0&&s<=e.current.length-1&&cn(e,s,o));return s}function Gd(e,{event:t,orientation:n,loop:o,rtl:r,cols:s,disabledIndices:i,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:p=!1}){let f=u;const g=[],m={};let x=!1;{let v=null,y=-1;e.current.forEach((R,w)=>{if(R==null)return;const E=R.closest('[role="row"]');E&&(x=!0),(E!==v||y===-1)&&(v=E,y+=1,g[y]=[]),g[y].push(w),m[w]=y})}const b=x&&g.length>0&&g.some(v=>v.length!==s);function h(v){if(!b||u===-1)return;const y=m[u];if(y==null)return;const R=g[y].indexOf(u);let w=v==="up"?y-1:y+1;o&&(w<0?w=g.length-1:w>=g.length&&(w=0));const E=new Set;for(;w>=0&&w<g.length&&!E.has(w);){E.add(w);const S=g[w];if(S.length===0){w=v==="up"?w-1:w+1;continue}const k=Math.min(R,S.length-1);for(let D=k;D>=0;D-=1){const V=S[D];if(!cn(e,V,i))return V}w=v==="up"?w-1:w+1,o&&(w<0?w=g.length-1:w>=g.length&&(w=0))}}if(t.key===ir){const v=h("up");if(v!==void 0)p&&Pe(t),f=v;else{if(p&&Pe(t),u===-1)f=l;else if(f=ke(e,{startingIndex:f,amount:s,decrement:!0,disabledIndices:i}),o&&(u-s<c||f<0)){const y=u%s,R=l%s,w=l-(R-y);R===y?f=l:f=R>y?w:w-s}sn(e,f)&&(f=u)}}if(t.key===gn){const v=h("down");v!==void 0?(p&&Pe(t),f=v):(p&&Pe(t),u===-1?f=c:(f=ke(e,{startingIndex:u,amount:s,disabledIndices:i}),o&&u+s>l&&(f=ke(e,{startingIndex:u%s-s,amount:s,disabledIndices:i}))),sn(e,f)&&(f=u))}if(n==="both"){const v=Bt(u/s);t.key===(r?xt:bt)&&(p&&Pe(t),u%s!==s-1?(f=ke(e,{startingIndex:u,disabledIndices:i}),o&&Fn(f,s,v)&&(f=ke(e,{startingIndex:u-u%s-1,disabledIndices:i}))):o&&(f=ke(e,{startingIndex:u-u%s-1,disabledIndices:i})),Fn(f,s,v)&&(f=u)),t.key===(r?bt:xt)&&(p&&Pe(t),u%s!==0?(f=ke(e,{startingIndex:u,decrement:!0,disabledIndices:i}),o&&Fn(f,s,v)&&(f=ke(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:i}))):o&&(f=ke(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:i})),Fn(f,s,v)&&(f=u));const y=Bt(l/s)===v;sn(e,f)&&(o&&y?f=t.key===(r?bt:xt)?l:ke(e,{startingIndex:u-u%s-1,disabledIndices:i}):f=u)}return f}function Kd(e,t,n){const o=[];let r=0;return e.forEach(({width:s,height:i},c)=>{let l=!1;for(n&&(r=0);!l;){const u=[];for(let p=0;p<s;p+=1)for(let f=0;f<i;f+=1)u.push(r+p+f*t);r%t+s<=t&&u.every(p=>o[p]==null)?(u.forEach(p=>{o[p]=c}),l=!0):r+=1}}),[...o]}function qd(e,t,n,o,r){if(e===-1)return-1;const s=n.indexOf(e),i=t[e];switch(r){case"tl":return s;case"tr":return i?s+i.width-1:s;case"bl":return i?s+(i.height-1)*o:s;case"br":return n.lastIndexOf(e);default:return-1}}function Yd(e,t){return t.flatMap((n,o)=>e.includes(n)?[o]:[])}function cn(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const o=e.current[t];return o==null||o.hasAttribute("disabled")||o.getAttribute("aria-disabled")==="true"}const is=Ut("safe-polygon");function Po(e,t,n){if(n&&!dn(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o==null?void 0:o[t]}return e==null?void 0:e[t]}function Oo(e){return typeof e=="function"?e():e}function Xd(e,t={}){const{open:n,onOpenChange:o,dataRef:r,events:s,elements:i}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:p=!1,restMs:f=0,move:g=!0}=t,m=Ue(),x=wt(),b=Re(u),h=Re(l),v=Re(n),y=Re(f),R=a.useRef(void 0),w=Be(),E=a.useRef(void 0),S=Be(),k=a.useRef(!0),D=a.useRef(!1),V=a.useRef(()=>{}),P=a.useRef(!1),j=J(()=>{var A;const _=(A=r.current.openEvent)==null?void 0:A.type;return(_==null?void 0:_.includes("mouse"))&&_!=="mousedown"});a.useEffect(()=>{if(!c)return;function A(_){_.open||(w.clear(),S.clear(),k.current=!0,P.current=!1)}return s.on("openchange",A),()=>{s.off("openchange",A)}},[c,s,w,S]),a.useEffect(()=>{if(!c||!b.current||!n)return;function A(M){j()&&o(!1,ue("trigger-hover",M))}const _=we(i.floating).documentElement;return _.addEventListener("mouseleave",A),()=>{_.removeEventListener("mouseleave",A)}},[i.floating,n,o,c,b,j]);const N=a.useCallback((A,_=!0)=>{const M=Po(h.current,"close",R.current);M&&!E.current?w.start(M,()=>o(!1,ue("trigger-hover",A))):_&&(w.clear(),o(!1,ue("trigger-hover",A)))},[h,o,w]),I=J(()=>{V.current(),E.current=void 0}),U=J(()=>{if(D.current){const A=we(i.floating).body;A.style.pointerEvents="",A.removeAttribute(is),D.current=!1}}),$=J(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);a.useEffect(()=>{if(!c)return;function A(X){if(w.clear(),k.current=!1,p&&!dn(R.current)||Oo(y.current)>0&&!Po(h.current,"open"))return;const L=Po(h.current,"open",R.current);L?w.start(L,()=>{v.current||o(!0,ue("trigger-hover",X))}):n||o(!0,ue("trigger-hover",X))}function _(X){if($()){U();return}V.current();const L=we(i.floating);if(S.clear(),P.current=!1,b.current&&r.current.floatingContext){n||w.clear(),E.current=b.current({...r.current.floatingContext,tree:m,x:X.clientX,y:X.clientY,onClose(){U(),I(),$()||N(X,!0)}});const se=E.current;L.addEventListener("mousemove",se),V.current=()=>{L.removeEventListener("mousemove",se)};return}(R.current==="touch"?!he(i.floating,X.relatedTarget):!0)&&N(X)}function M(X){var L;$()||r.current.floatingContext&&((L=b.current)==null||L.call(b,{...r.current.floatingContext,tree:m,x:X.clientX,y:X.clientY,onClose(){U(),I(),$()||N(X)}})(X))}function q(){w.clear()}function ce(X){$()||N(X,!1)}if(fe(i.domReference)){const X=i.domReference,L=i.floating;return n&&X.addEventListener("mouseleave",M),g&&X.addEventListener("mousemove",A,{once:!0}),X.addEventListener("mouseenter",A),X.addEventListener("mouseleave",_),L&&(L.addEventListener("mouseleave",M),L.addEventListener("mouseenter",q),L.addEventListener("mouseleave",ce)),()=>{n&&X.removeEventListener("mouseleave",M),g&&X.removeEventListener("mousemove",A),X.removeEventListener("mouseenter",A),X.removeEventListener("mouseleave",_),L&&(L.removeEventListener("mouseleave",M),L.removeEventListener("mouseenter",q),L.removeEventListener("mouseleave",ce))}}},[i,c,e,p,g,N,I,U,o,n,v,m,h,b,r,$,y,w,S]),oe(()=>{var A,_,M,q;if(c&&n&&(_=(A=b.current)==null?void 0:A.__options)!=null&&_.blockPointerEvents&&j()){D.current=!0;const ce=i.floating;if(fe(i.domReference)&&ce){const X=we(i.floating).body;X.setAttribute(is,"");const L=i.domReference,re=(q=(M=m==null?void 0:m.nodesRef.current.find(se=>se.id===x))==null?void 0:M.context)==null?void 0:q.elements.floating;return re&&(re.style.pointerEvents=""),X.style.pointerEvents="none",L.style.pointerEvents="auto",ce.style.pointerEvents="auto",()=>{X.style.pointerEvents="",L.style.pointerEvents="",ce.style.pointerEvents=""}}}},[c,n,x,i,m,b,j]),oe(()=>{n||(R.current=void 0,P.current=!1,I(),U())},[n,I,U]),a.useEffect(()=>()=>{I(),w.clear(),S.clear()},[c,i.domReference,I,w,S]),a.useEffect(()=>U,[U]);const T=a.useMemo(()=>{function A(_){R.current=_.pointerType}return{onPointerDown:A,onPointerEnter:A,onMouseMove(_){const{nativeEvent:M}=_;function q(){!k.current&&!v.current&&o(!0,ue("trigger-hover",M))}p&&!dn(R.current)||n||Oo(y.current)===0||P.current&&_.movementX**2+_.movementY**2<2||(S.clear(),R.current==="touch"?q():(P.current=!0,S.start(Oo(y.current),q)))}}},[p,o,n,v,y,S]);return a.useMemo(()=>c?{reference:T}:{},[c,T])}function cs(e,t,n){let{reference:o,floating:r}=e;const s=Ye(t),i=vr(t),c=hr(i),l=$e(t),u=s==="y",p=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,g=o[c]/2-r[c]/2;let m;switch(l){case"top":m={x:p,y:o.y-r.height};break;case"bottom":m={x:p,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Rt(t)){case"start":m[i]-=g*(n&&u?-1:1);break;case"end":m[i]+=g*(n&&u?-1:1);break}return m}const Zd=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:f}=cs(u,o,l),g=o,m={},x=0;for(let b=0;b<c.length;b++){const{name:h,fn:v}=c[b],{x:y,y:R,data:w,reset:E}=await v({x:p,y:f,initialPlacement:o,placement:g,strategy:r,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});p=y??p,f=R??f,m={...m,[h]:{...m[h],...w}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:p,y:f}=cs(u,g,l)),b=-1)}return{x:p,y:f,placement:g,strategy:r,middlewareData:m}};async function fn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=pt(t,e),x=zi(m),h=c[g?f==="floating"?"reference":"floating":f],v=no(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:p,strategy:l})),y=f==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),w=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},E=no(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:R,strategy:l}):y);return{top:(v.top-E.top+x.top)/w.y,bottom:(E.bottom-v.bottom+x.bottom)/w.y,left:(v.left-E.left+x.left)/w.x,right:(E.right-v.right+x.right)/w.x}}const Qd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...h}=pt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=$e(r),y=Ye(c),R=$e(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=g||(R||!b?[to(c)]:$d(c)),S=x!=="none";!g&&S&&E.push(...Wd(c,b,x,w));const k=[c,...E],D=await fn(t,h),V=[];let P=((o=s.flip)==null?void 0:o.overflows)||[];if(p&&V.push(D[v]),f){const U=Bd(r,i,w);V.push(D[U[0]],D[U[1]])}if(P=[...P,{placement:r,overflows:V}],!V.every(U=>U<=0)){var j,N;const U=(((j=s.flip)==null?void 0:j.index)||0)+1,$=k[U];if($&&(!(f==="alignment"?y!==Ye($):!1)||P.every(_=>Ye(_.placement)===y?_.overflows[0]>0:!0)))return{data:{index:U,overflows:P},reset:{placement:$}};let T=(N=P.filter(A=>A.overflows[0]<=0).sort((A,_)=>A.overflows[1]-_.overflows[1])[0])==null?void 0:N.placement;if(!T)switch(m){case"bestFit":{var I;const A=(I=P.filter(_=>{if(S){const M=Ye(_.placement);return M===y||M==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(M=>M>0).reduce((M,q)=>M+q,0)]).sort((_,M)=>_[1]-M[1])[0])==null?void 0:I[0];A&&(T=A);break}case"initialPlacement":T=c;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function as(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ls(e){return Dd.some(t=>e[t]>=0)}const Jd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=pt(e,t);switch(o){case"referenceHidden":{const s=await fn(t,{...r,elementContext:"reference"}),i=as(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ls(i)}}}case"escaped":{const s=await fn(t,{...r,altBoundary:!0}),i=as(s,n.floating);return{data:{escapedOffsets:i,escaped:ls(i)}}}default:return{}}}}},Vi=new Set(["left","top"]);async function ef(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=$e(n),c=Rt(n),l=Ye(n)==="y",u=Vi.has(i)?-1:1,p=s&&l?-1:1,f=pt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof x=="number"&&(m=c==="end"?x*-1:x),l?{x:m*p,y:g*u}:{x:g*u,y:m*p}}const tf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,l=await ef(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},nf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:h=>{let{x:v,y}=h;return{x:v,y}}},...l}=pt(e,t),u={x:n,y:o},p=await fn(t,l),f=Ye($e(r)),g=gr(f);let m=u[g],x=u[f];if(s){const h=g==="y"?"top":"left",v=g==="y"?"bottom":"right",y=m+p[h],R=m-p[v];m=Ko(y,m,R)}if(i){const h=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=x+p[h],R=x-p[v];x=Ko(y,x,R)}const b=c.fn({...t,[g]:m,[f]:x});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[g]:s,[f]:i}}}}}},of=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=pt(e,t),p={x:n,y:o},f=Ye(r),g=gr(f);let m=p[g],x=p[f];const b=pt(c,t),h=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const R=g==="y"?"height":"width",w=s.reference[g]-s.floating[R]+h.mainAxis,E=s.reference[g]+s.reference[R]-h.mainAxis;m<w?m=w:m>E&&(m=E)}if(u){var v,y;const R=g==="y"?"width":"height",w=Vi.has($e(r)),E=s.reference[f]-s.floating[R]+(w&&((v=i.offset)==null?void 0:v[f])||0)+(w?0:h.crossAxis),S=s.reference[f]+s.reference[R]+(w?0:((y=i.offset)==null?void 0:y[f])||0)-(w?h.crossAxis:0);x<E?x=E:x>S&&(x=S)}return{[g]:m,[f]:x}}}},rf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:c}=t,{apply:l=()=>{},...u}=pt(e,t),p=await fn(t,u),f=$e(r),g=Rt(r),m=Ye(r)==="y",{width:x,height:b}=s.floating;let h,v;f==="top"||f==="bottom"?(h=f,v=g===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(v=f,h=g==="end"?"top":"bottom");const y=b-p.top-p.bottom,R=x-p.left-p.right,w=Wt(b-p[h],y),E=Wt(x-p[v],R),S=!t.middlewareData.shift;let k=w,D=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=R),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(k=y),S&&!g){const P=Fe(p.left,0),j=Fe(p.right,0),N=Fe(p.top,0),I=Fe(p.bottom,0);m?D=x-2*(P!==0||j!==0?P+j:Fe(p.left,p.right)):k=b-2*(N!==0||I!==0?N+I:Fe(p.top,p.bottom))}await l({...t,availableWidth:D,availableHeight:k});const V=await i.getDimensions(c.floating);return x!==V.width||b!==V.height?{reset:{rects:!0}}:{}}}};function Ui(e){const t=Xe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ve(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=eo(n)!==s||eo(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function xr(e){return fe(e)?e:e.contextElement}function zt(e){const t=xr(e);if(!ve(t))return ot(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Ui(t);let i=(s?eo(n.width):n.width)/o,c=(s?eo(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const sf=ot(0);function Wi(e){const t=Me(e);return!co()||!t.visualViewport?sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Me(e)?!1:t}function Tt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=xr(e);let i=ot(1);t&&(o?fe(o)&&(i=zt(o)):i=zt(e));const c=cf(s,n,o)?Wi(s):ot(0);let l=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,p=r.width/i.x,f=r.height/i.y;if(s){const g=Me(s),m=o&&fe(o)?Me(o):o;let x=g,b=$o(x);for(;b&&o&&m!==x;){const h=zt(b),v=b.getBoundingClientRect(),y=Xe(b),R=v.left+(b.clientLeft+parseFloat(y.paddingLeft))*h.x,w=v.top+(b.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,u*=h.y,p*=h.x,f*=h.y,l+=R,u+=w,x=Me(b),b=$o(x)}}return no({width:p,height:f,x:l,y:u})}function fo(e,t){const n=ao(e).scrollLeft;return t?t.left+n:Tt(ct(e)).left+n}function Hi(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-fo(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function af(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=ct(o),c=t?io(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=ot(1);const p=ot(0),f=ve(o);if((f||!f&&!s)&&((yt(o)!=="body"||pn(i))&&(l=ao(o)),ve(o))){const m=Tt(o);u=zt(o),p.x=m.x+o.clientLeft,p.y=m.y+o.clientTop}const g=i&&!f&&!s?Hi(i,l):ot(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-l.scrollTop*u.y+p.y+g.y}}function lf(e){return Array.from(e.getClientRects())}function uf(e){const t=ct(e),n=ao(e),o=e.ownerDocument.body,r=Fe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Fe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+fo(e);const c=-n.scrollTop;return Xe(o).direction==="rtl"&&(i+=Fe(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}const us=25;function df(e,t){const n=Me(e),o=ct(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,l=0;if(r){s=r.width,i=r.height;const p=co();(!p||p&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const u=fo(o);if(u<=0){const p=o.ownerDocument,f=p.body,g=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(o.clientWidth-f.clientWidth-m);x<=us&&(s-=x)}else u<=us&&(s+=u);return{width:s,height:i,x:c,y:l}}const ff=new Set(["absolute","fixed"]);function pf(e,t){const n=Tt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ve(e)?zt(e):ot(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:c,x:l,y:u}}function ds(e,t,n){let o;if(t==="viewport")o=df(e,n);else if(t==="document")o=uf(ct(e));else if(fe(t))o=pf(t,n);else{const r=Wi(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return no(o)}function Gi(e,t){const n=st(e);return n===t||!fe(n)||nt(n)?!1:Xe(n).position==="fixed"||Gi(n,t)}function mf(e,t){const n=t.get(e);if(n)return n;let o=vt(e,[],!1).filter(c=>fe(c)&&yt(c)!=="body"),r=null;const s=Xe(e).position==="fixed";let i=s?st(e):e;for(;fe(i)&&!nt(i);){const c=Xe(i),l=tr(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&ff.has(r.position)||pn(i)&&!l&&Gi(e,i))?o=o.filter(p=>p!==i):r=c,i=st(i)}return t.set(e,o),o}function gf(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?io(t)?[]:mf(t,this._c):[].concat(n),o],c=i[0],l=i.reduce((u,p)=>{const f=ds(t,p,r);return u.top=Fe(f.top,u.top),u.right=Wt(f.right,u.right),u.bottom=Wt(f.bottom,u.bottom),u.left=Fe(f.left,u.left),u},ds(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hf(e){const{width:t,height:n}=Ui(e);return{width:t,height:n}}function vf(e,t,n){const o=ve(t),r=ct(t),s=n==="fixed",i=Tt(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=ot(0);function u(){l.x=fo(r)}if(o||!o&&!s)if((yt(t)!=="body"||pn(r))&&(c=ao(t)),o){const m=Tt(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&u();s&&!o&&r&&u();const p=r&&!o&&!s?Hi(r,c):ot(0),f=i.left+c.scrollLeft-l.x-p.x,g=i.top+c.scrollTop-l.y-p.y;return{x:f,y:g,width:i.width,height:i.height}}function To(e){return Xe(e).position==="static"}function fs(e,t){if(!ve(e)||Xe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ct(e)===n&&(n=n.ownerDocument.body),n}function Ki(e,t){const n=Me(e);if(io(e))return n;if(!ve(e)){let r=st(e);for(;r&&!nt(r);){if(fe(r)&&!To(r))return r;r=st(r)}return n}let o=fs(e,t);for(;o&&il(o)&&To(o);)o=fs(o,t);return o&&nt(o)&&To(o)&&!tr(o)?n:o||dl(e)||n}const xf=async function(e){const t=this.getOffsetParent||Ki,n=this.getDimensions,o=await n(e.floating);return{reference:vf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function bf(e){return Xe(e).direction==="rtl"}const yf={convertOffsetParentRelativeRectToViewportRelativeRect:af,getDocumentElement:ct,getClippingRect:gf,getOffsetParent:Ki,getElementRects:xf,getClientRects:lf,getDimensions:hf,getScale:zt,isElement:fe,isRTL:bf};function qi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wf(e,t){let n=null,o;const r=ct(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:m}=u;if(c||t(),!g||!m)return;const x=Bt(f),b=Bt(r.clientWidth-(p+g)),h=Bt(r.clientHeight-(f+m)),v=Bt(p),R={rootMargin:-x+"px "+-b+"px "+-h+"px "+-v+"px",threshold:Fe(0,Wt(1,l))||1};let w=!0;function E(S){const k=S[0].intersectionRatio;if(k!==l){if(!w)return i();k?i(!1,k):o=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!qi(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(E,{...R,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,R)}n.observe(e)}return i(!0),s}function ps(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=xr(e),p=r||s?[...u?vt(u):[],...vt(t)]:[];p.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=u&&c?wf(u,n):null;let g=-1,m=null;i&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var R;(R=m)==null||R.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let x,b=l?Tt(e):null;l&&h();function h(){const v=Tt(e);b&&!qi(b,v)&&n(),b=v,x=requestAnimationFrame(h)}return n(),()=>{var v;p.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),f==null||f(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(x)}}const Rf=tf,Cf=nf,Ef=Qd,Sf=rf,Mf=Jd,If=of,kf=(e,t,n)=>{const o=new Map,r={platform:yf,...n},s={...r.platform,_c:o};return Zd(e,t,{...r,platform:s})};var Pf=typeof document<"u",Of=function(){},Wn=Pf?a.useLayoutEffect:Of;function oo(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(!oo(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 s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!oo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Yi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ms(e,t){const n=Yi(e);return Math.round(t*n)/n}function _o(e){const t=a.useRef(e);return Wn(()=>{t.current=e}),t}function Tf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[p,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=a.useState(o);oo(g,o)||m(o);const[x,b]=a.useState(null),[h,v]=a.useState(null),y=a.useCallback(_=>{_!==S.current&&(S.current=_,b(_))},[]),R=a.useCallback(_=>{_!==k.current&&(k.current=_,v(_))},[]),w=s||x,E=i||h,S=a.useRef(null),k=a.useRef(null),D=a.useRef(p),V=l!=null,P=_o(l),j=_o(r),N=_o(u),I=a.useCallback(()=>{if(!S.current||!k.current)return;const _={placement:t,strategy:n,middleware:g};j.current&&(_.platform=j.current),kf(S.current,k.current,_).then(M=>{const q={...M,isPositioned:N.current!==!1};U.current&&!oo(D.current,q)&&(D.current=q,Ht.flushSync(()=>{f(q)}))})},[g,t,n,j,N]);Wn(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const U=a.useRef(!1);Wn(()=>(U.current=!0,()=>{U.current=!1}),[]),Wn(()=>{if(w&&(S.current=w),E&&(k.current=E),w&&E){if(P.current)return P.current(w,E,I);I()}},[w,E,I,P,V]);const $=a.useMemo(()=>({reference:S,floating:k,setReference:y,setFloating:R}),[y,R]),T=a.useMemo(()=>({reference:w,floating:E}),[w,E]),A=a.useMemo(()=>{const _={position:n,left:0,top:0};if(!T.floating)return _;const M=ms(T.floating,p.x),q=ms(T.floating,p.y);return c?{..._,transform:"translate("+M+"px, "+q+"px)",...Yi(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:q}},[n,c,T.floating,p.x,p.y]);return a.useMemo(()=>({...p,update:I,refs:$,elements:T,floatingStyles:A}),[p,I,$,T,A])}const _f=(e,t)=>({...Rf(e),options:[e,t]}),jf=(e,t)=>({...Cf(e),options:[e,t]}),Af=(e,t)=>({...If(e),options:[e,t]}),Df=(e,t)=>({...Ef(e),options:[e,t]}),Nf=(e,t)=>({...Sf(e),options:[e,t]}),Lf=(e,t)=>({...Mf(e),options:[e,t]});function Ff(e={}){const{nodeId:t}=e,n=ur({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,r=o.elements,[s,i]=a.useState(null),[c,l]=a.useState(null),p=(r==null?void 0:r.domReference)||s,f=a.useRef(null),g=Ue();oe(()=>{p&&(f.current=p)},[p]);const m=Tf({...e,elements:{...r,...c&&{reference:c}}}),x=a.useCallback(R=>{const w=fe(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;l(w),m.refs.setReference(w)},[m.refs]),b=a.useCallback(R=>{(fe(R)||R===null)&&(f.current=R,i(R)),(fe(m.refs.reference.current)||m.refs.reference.current===null||R!==null&&!fe(R))&&m.refs.setReference(R)},[m.refs]),h=a.useMemo(()=>({...m.refs,setReference:b,setPositionReference:x,domReference:f}),[m.refs,b,x]),v=a.useMemo(()=>({...m.elements,domReference:p}),[m.elements,p]),y=a.useMemo(()=>({...m,...o,refs:h,elements:v,nodeId:t}),[m,h,v,t,o]);return oe(()=>{o.dataRef.current.floatingContext=y;const R=g==null?void 0:g.nodesRef.current.find(w=>w.id===t);R&&(R.context=y)}),a.useMemo(()=>({...m,context:y,refs:h,elements:v}),[m,h,v,y])}const jo=Nl&&Xs;function Bf(e,t={}){const{open:n,onOpenChange:o,events:r,dataRef:s,elements:i}=e,{enabled:c=!0,visibleOnly:l=!0}=t,u=a.useRef(!1),p=Be(),f=a.useRef(!0);a.useEffect(()=>{if(!c)return;const m=Me(i.domReference);function x(){!n&&ve(i.domReference)&&i.domReference===tt(we(i.domReference))&&(u.current=!0)}function b(){f.current=!0}function h(){f.current=!1}return m.addEventListener("blur",x),jo&&(m.addEventListener("keydown",b,!0),m.addEventListener("pointerdown",h,!0)),()=>{m.removeEventListener("blur",x),jo&&(m.removeEventListener("keydown",b,!0),m.removeEventListener("pointerdown",h,!0))}},[i.domReference,n,c]),a.useEffect(()=>{if(!c)return;function m(x){(x.reason==="trigger-press"||x.reason==="escape-key")&&(u.current=!0)}return r.on("openchange",m),()=>{r.off("openchange",m)}},[r,c]);const g=a.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(m){if(u.current)return;const x=qe(m.nativeEvent);if(l&&fe(x)){if(jo&&!m.relatedTarget){if(!f.current&&!cr(x))return}else if(!Vl(x))return}o(!0,ue("trigger-focus",m.nativeEvent))},onBlur(m){u.current=!1;const x=m.relatedTarget,b=m.nativeEvent,h=fe(x)&&x.hasAttribute(Ut("focus-guard"))&&x.getAttribute("data-type")==="outside";p.start(0,()=>{var v;const y=tt(i.domReference?i.domReference.ownerDocument:document);!x&&y===i.domReference||he((v=s.current.floatingContext)==null?void 0:v.refs.floating.current,y)||he(i.domReference,y)||h||o(!1,ue("trigger-focus",b))})}}),[s,i.domReference,o,l,p]);return a.useMemo(()=>c?{reference:g}:{},[c,g])}const $f="Escape";function po(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Bn(e,t){return po(t,e===ir||e===gn,e===xt||e===bt)}function Ao(e,t,n){return po(t,e===gn,n?e===xt:e===bt)||e==="Enter"||e===" "||e===""}function zf(e,t,n){return po(t,n?e===xt:e===bt,e===gn)}function Vf(e,t,n,o){const r=n?e===bt:e===xt,s=e===ir;return t==="both"||t==="horizontal"&&o&&o>1?e===$f:po(t,r,s)}function Uf(e,t){const{open:n,onOpenChange:o,elements:r}=e,{listRef:s,activeIndex:i,onNavigate:c=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:p=!1,loop:f=!1,nested:g=!1,rtl:m=!1,virtual:x=!1,focusItemOnOpen:b="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:v=!0,disabledIndices:y=void 0,orientation:R="vertical",parentOrientation:w,cols:E=1,scrollItemIntoView:S=!0,itemSizes:k,dense:D=!1,id:V}=t,P=Kn(r.floating),j=Re(P),N=wt(),I=Ue();oe(()=>{e.dataRef.current.orientation=R},[e,R]);const U=Uo(r.domReference),$=a.useRef(b),T=a.useRef(u??-1),A=a.useRef(null),_=a.useRef(!0),M=J(O=>{c(T.current===-1?null:T.current,O)}),q=a.useRef(M),ce=a.useRef(!!r.floating),X=a.useRef(n),L=a.useRef(!1),re=a.useRef(!1),se=Re(y),C=Re(n),B=Re(S),Z=Re(u),K=J(()=>{function O(ae){x?I==null||I.events.emit("virtualfocus",ae):Un(ae,{sync:L.current,preventScroll:!0})}const G=s.current[T.current],F=re.current;G&&O(G),(L.current?ae=>ae():requestAnimationFrame)(()=>{var ae;const ie=s.current[T.current]||G;if(!ie)return;G||O(ie);const ge=B.current;ge&&H&&(F||!_.current)&&((ae=ie.scrollIntoView)==null||ae.call(ie,typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))})});oe(()=>{l&&(n&&r.floating?$.current&&u!=null&&(re.current=!0,T.current=u,M()):ce.current&&(T.current=-1,q.current()))},[l,n,r.floating,u,M]),oe(()=>{if(l){if(!n){L.current=!1;return}if(r.floating)if(i==null){if(L.current=!1,Z.current!=null)return;if(ce.current&&(T.current=-1,K()),(!X.current||!ce.current)&&$.current&&(A.current!=null||$.current===!0&&A.current==null)){let O=0;const G=()=>{s.current[0]==null?(O<2&&(O?requestAnimationFrame:queueMicrotask)(G),O+=1):(T.current=A.current==null||Ao(A.current,R,m)||g?ko(s,se.current):ss(s,se.current),A.current=null,M())};G()}}else sn(s,i)||(T.current=i,K(),re.current=!1)}},[l,n,r.floating,i,Z,g,s,R,m,M,K,se]),oe(()=>{var O,G;if(!l||r.floating||!I||x||!ce.current)return;const F=I.nodesRef.current,Q=(G=(O=F.find(ge=>ge.id===N))==null?void 0:O.context)==null?void 0:G.elements.floating,ae=tt(we(r.floating)),ie=F.some(ge=>ge.context&&he(ge.context.elements.floating,ae));Q&&!ie&&_.current&&Q.focus({preventScroll:!0})},[l,r.floating,I,N,x]),oe(()=>{q.current=M,X.current=n,ce.current=!!r.floating}),oe(()=>{n||(A.current=null,$.current=b)},[n,b]);const z=i!=null,H=a.useMemo(()=>{function O(F){if(!C.current)return;const Q=s.current.indexOf(F.currentTarget);Q!==-1&&T.current!==Q&&(T.current=Q,M(F))}return{onFocus(F){L.current=!0,O(F)},onClick:({currentTarget:F})=>F.focus({preventScroll:!0}),onMouseMove(F){L.current=!0,re.current=!1,h&&O(F)},onPointerLeave(F){var Q;if(!_.current||F.pointerType==="touch")return;L.current=!0;const ae=F.relatedTarget;!h||s.current.includes(ae)||(T.current=-1,M(F),x||(Q=j.current)==null||Q.focus({preventScroll:!0}))}}},[C,j,h,s,M,x]),Y=a.useCallback(()=>{var O,G,F;return w??((F=(G=(O=I==null?void 0:I.nodesRef.current.find(Q=>Q.id===N))==null?void 0:O.context)==null?void 0:G.dataRef)==null?void 0:F.current.orientation)},[N,I,w]),W=J(O=>{if(_.current=!1,L.current=!0,O.which===229||!C.current&&O.currentTarget===j.current)return;if(g&&Vf(O.key,R,m,E)){Bn(O.key,Y())||Pe(O),o(!1,ue("list-navigation",O.nativeEvent)),ve(r.domReference)&&(x?I==null||I.events.emit("virtualfocus",r.domReference):r.domReference.focus());return}const G=T.current,F=ko(s,y),Q=ss(s,y);if(U||(O.key==="Home"&&(Pe(O),T.current=F,M(O)),O.key==="End"&&(Pe(O),T.current=Q,M(O))),E>1){const ae=k||Array.from({length:s.current.length},()=>({width:1,height:1})),ie=Kd(ae,E,D),ge=ie.findIndex(Ce=>Ce!=null&&!cn(s,Ce,y)),Ne=ie.reduce((Ce,je,Je)=>je!=null&&!cn(s,je,y)?Je:Ce,-1),We=ie[Gd({current:ie.map(Ce=>Ce!=null?s.current[Ce]:null)},{event:O,orientation:R,loop:f,rtl:m,cols:E,disabledIndices:Yd([...(typeof y!="function"?y:null)||s.current.map((Ce,je)=>cn(s,je,y)?je:void 0),void 0],ie),minIndex:ge,maxIndex:Ne,prevIndex:qd(T.current>Q?F:T.current,ae,ie,E,O.key===gn?"bl":O.key===(m?xt:bt)?"tr":"tl"),stopEvent:!0})];if(We!=null&&(T.current=We,M(O)),R==="both")return}if(Bn(O.key,R)){if(Pe(O),n&&!x&&tt(O.currentTarget.ownerDocument)===O.currentTarget){T.current=Ao(O.key,R,m)?F:Q,M(O);return}Ao(O.key,R,m)?f?G>=Q?p&&G!==s.current.length?T.current=-1:(L.current=!1,T.current=F):T.current=ke(s,{startingIndex:G,disabledIndices:y}):T.current=Math.min(Q,ke(s,{startingIndex:G,disabledIndices:y})):f?G<=F?p&&G!==-1?T.current=s.current.length:(L.current=!1,T.current=Q):T.current=ke(s,{startingIndex:G,decrement:!0,disabledIndices:y}):T.current=Math.max(F,ke(s,{startingIndex:G,decrement:!0,disabledIndices:y})),sn(s,T.current)&&(T.current=-1),M(O)}}),te=a.useMemo(()=>x&&n&&z&&{"aria-activedescendant":`${V}-${i}`},[x,n,z,V,i]),ne=a.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...U?{}:te,onKeyDown(O){if(O.key==="Tab"&&O.shiftKey&&n&&!x){Pe(O),o(!1,ue("list-navigation",O.nativeEvent)),ve(r.domReference)&&r.domReference.focus();return}W(O)},onPointerMove(){_.current=!0}}),[te,W,R,U,o,n,x,r.domReference]),ee=a.useMemo(()=>{function O(F){b==="auto"&&ei(F.nativeEvent)&&($.current=!x)}function G(F){$.current=b,b==="auto"&&ti(F.nativeEvent)&&($.current=!0)}return{...te,onKeyDown(F){_.current=!1;const Q=F.key.startsWith("Arrow"),ae=zf(F.key,Y(),m),ie=Bn(F.key,R),ge=(g?ae:ie)||F.key==="Enter"||F.key.trim()==="";if(x&&n)return W(F);if(!(!n&&!v&&Q)){if(ge){const Ne=Bn(F.key,Y());A.current=g&&Ne?null:F.key}if(g){ae&&(Pe(F),n?(T.current=ko(s,se.current),M(F)):o(!0,ue("list-navigation",F.nativeEvent)));return}ie&&(u!=null&&(T.current=u),Pe(F),!n&&v?o(!0,ue("list-navigation",F.nativeEvent)):W(F),n&&M(F))}},onFocus(F){n&&!x&&(T.current=-1,M(F))},onPointerDown:G,onPointerEnter:G,onMouseDown:O,onClick:O}},[te,W,se,b,s,g,M,o,n,v,R,Y,m,u,x]);return a.useMemo(()=>l?{reference:ee,floating:ne,item:H}:{},[l,ee,ne,H])}function Wf(e,t){var n;const{open:o,dataRef:r}=e,{listRef:s,activeIndex:i,onMatch:c,onTypingChange:l,enabled:u=!0,findMatch:p=null,resetMs:f=750,ignoreKeys:g=[],selectedIndex:m=null}=t,x=Be(),b=a.useRef(""),h=a.useRef((n=m??i)!=null?n:-1),v=a.useRef(null),y=J(c),R=J(l),w=Re(p),E=Re(g);oe(()=>{o&&(x.clear(),v.current=null,b.current="")},[o,x]),oe(()=>{var P;o&&b.current===""&&(h.current=(P=m??i)!=null?P:-1)},[o,m,i]);const S=J(P=>{P?r.current.typing||(r.current.typing=P,R(P)):r.current.typing&&(r.current.typing=P,R(P))}),k=J(P=>{function j(T,A,_){const M=w.current?w.current(A,_):A.find(q=>(q==null?void 0:q.toLocaleLowerCase().indexOf(_.toLocaleLowerCase()))===0);return M?T.indexOf(M):-1}const N=s.current;if(b.current.length>0&&b.current[0]!==" "&&(j(N,N,b.current)===-1?S(!1):P.key===" "&&Pe(P)),N==null||E.current.includes(P.key)||P.key.length!==1||P.ctrlKey||P.metaKey||P.altKey)return;o&&P.key!==" "&&(Pe(P),S(!0)),N.every(T=>{var A,_;return T?((A=T[0])==null?void 0:A.toLocaleLowerCase())!==((_=T[1])==null?void 0:_.toLocaleLowerCase()):!0})&&b.current===P.key&&(b.current="",h.current=v.current),b.current+=P.key,x.start(f,()=>{b.current="",h.current=v.current,S(!1)});const U=h.current,$=j(N,[...N.slice((U||0)+1),...N.slice(0,(U||0)+1)],b.current);$!==-1?(y($),v.current=$):P.key!==" "&&(b.current="",S(!1))}),D=a.useMemo(()=>({onKeyDown:k}),[k]),V=a.useMemo(()=>({onKeyDown:k,onKeyUp(P){P.key===" "&&S(!1)}}),[k,S]);return a.useMemo(()=>u?{reference:D,floating:V}:{},[u,D,V])}function gs(e,t){const[n,o]=e;let r=!1;const s=t.length;for(let i=0,c=s-1;i<s;c=i++){const[l,u]=t[i]||[0,0],[p,f]=t[c]||[0,0];u>=o!=f>=o&&n<=(p-l)*(o-u)/(f-u)+l&&(r=!r)}return r}function Hf(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Gf(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=e,r=new Ot;let s=!1,i=null,c=null,l=typeof performance<"u"?performance.now():0;function u(f,g){const m=performance.now(),x=m-l;if(i===null||c===null||x===0)return i=f,c=g,l=m,null;const b=f-i,h=g-c,y=Math.sqrt(b*b+h*h)/x;return i=f,c=g,l=m,y}const p=({x:f,y:g,placement:m,elements:x,onClose:b,nodeId:h,tree:v})=>function(R){function w(){r.clear(),b()}if(r.clear(),!x.domReference||!x.floating||m==null||f==null||g==null)return;const{clientX:E,clientY:S}=R,k=[E,S],D=qe(R),V=R.type==="mouseleave",P=he(x.floating,D),j=he(x.domReference,D),N=x.domReference.getBoundingClientRect(),I=x.floating.getBoundingClientRect(),U=m.split("-")[0],$=f>I.right-I.width/2,T=g>I.bottom-I.height/2,A=Hf(k,N),_=I.width>N.width,M=I.height>N.height,q=(_?N:I).left,ce=(_?N:I).right,X=(M?N:I).top,L=(M?N:I).bottom;if(P&&(s=!0,!V))return;if(j&&(s=!1),j&&!V){s=!0;return}if(V&&fe(R.relatedTarget)&&he(x.floating,R.relatedTarget)||v&&Pt(v.nodesRef.current,h).some(({context:C})=>C==null?void 0:C.open))return;if(U==="top"&&g>=N.bottom-1||U==="bottom"&&g<=N.top+1||U==="left"&&f>=N.right-1||U==="right"&&f<=N.left+1)return w();let re=[];switch(U){case"top":re=[[q,N.top+1],[q,I.bottom-1],[ce,I.bottom-1],[ce,N.top+1]];break;case"bottom":re=[[q,I.top+1],[q,N.bottom-1],[ce,N.bottom-1],[ce,I.top+1]];break;case"left":re=[[I.right-1,L],[I.right-1,X],[N.left+1,X],[N.left+1,L]];break;case"right":re=[[N.right-1,L],[N.right-1,X],[I.left+1,X],[I.left+1,L]];break}function se([C,B]){switch(U){case"top":{const Z=[_?C+t/2:$?C+t*4:C-t*4,B+t+1],K=[_?C-t/2:$?C+t*4:C-t*4,B+t+1],z=[[I.left,$||_?I.bottom-t:I.top],[I.right,$?_?I.bottom-t:I.top:I.bottom-t]];return[Z,K,...z]}case"bottom":{const Z=[_?C+t/2:$?C+t*4:C-t*4,B-t],K=[_?C-t/2:$?C+t*4:C-t*4,B-t],z=[[I.left,$||_?I.top+t:I.bottom],[I.right,$?_?I.top+t:I.bottom:I.top+t]];return[Z,K,...z]}case"left":{const Z=[C+t+1,M?B+t/2:T?B+t*4:B-t*4],K=[C+t+1,M?B-t/2:T?B+t*4:B-t*4];return[...[[T||M?I.right-t:I.left,I.top],[T?M?I.right-t:I.left:I.right-t,I.bottom]],Z,K]}case"right":{const Z=[C-t,M?B+t/2:T?B+t*4:B-t*4],K=[C-t,M?B-t/2:T?B+t*4:B-t*4],z=[[T||M?I.left+t:I.right,I.top],[T?M?I.left+t:I.right:I.left+t,I.bottom]];return[Z,K,...z]}default:return[]}}if(!gs([E,S],re)){if(s&&!A)return w();if(!V&&o){const C=u(R.clientX,R.clientY);if(C!==null&&C<.1)return w()}gs([E,S],se([f,g]))?!s&&o&&r.start(40,w):w()}};return p.__options={blockPointerEvents:n},p}const Kf=e=>({name:"arrow",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,rects:c,platform:l,elements:u,middlewareData:p}=t,{element:f,padding:g=0,offsetParent:m="real"}=pt(e,t)||{};if(f==null)return{};const x=zi(g),b={x:r,y:s},h=vr(i),v=hr(h),y=await l.getDimensions(f),R=h==="y",w=R?"top":"left",E=R?"bottom":"right",S=R?"clientHeight":"clientWidth",k=c.reference[v]+c.reference[h]-b[h]-c.floating[v],D=b[h]-c.reference[h],V=m==="real"?await((n=l.getOffsetParent)==null?void 0:n.call(l,f)):u.floating;let P=u.floating[S]||c.floating[v];(!P||!await((o=l.isElement)==null?void 0:o.call(l,V)))&&(P=u.floating[S]||c.floating[v]);const j=k/2-D/2,N=P/2-y[v]/2-1,I=Math.min(x[w],N),U=Math.min(x[E],N),$=I,T=P-y[v]-U,A=P/2-y[v]/2+j,_=Ko($,A,T),M=!p.arrow&&Rt(i)!=null&&A!==_&&c.reference[v]/2-(A<$?I:U)-y[v]/2<0,q=M?A<$?A-$:A-T:0;return{[h]:b[h]+q,data:{[h]:_,centerOffset:A-_-q,...M&&{alignmentOffset:q}},reset:M}}}),qf=(e,t)=>({...Kf(e),options:[e,t]});function Xi(e,t,n){const o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?n?"inline-start":"inline-end":"right",bottom:"bottom",left:o?n?"inline-end":"inline-start":"left"}[t]}function hs(e,t,n){const{rects:o,placement:r}=e;return{side:Xi(t,$e(r),n),align:Rt(r)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function Yf(e){var t,n;const{anchor:o,positionMethod:r="absolute",side:s="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:u,collisionPadding:p=5,sticky:f=!1,arrowPadding:g=5,trackAnchor:m=!0,keepMounted:x=!1,floatingRootContext:b,mounted:h,collisionAvoidance:v,shiftCrossAxis:y=!1,nodeId:R,adaptiveOrigin:w,lazyFlip:E=!1}=e,[S,k]=a.useState(null);!h&&S!==null&&k(null);const D=v.side||"flip",V=v.align||"flip",P=v.fallbackAxisSide||"end",j=typeof o=="function"?o:void 0,N=J(j),I=j?N:o,U=Re(o),T=$i()==="rtl",A=S||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":T?"left":"right","inline-start":T?"right":"left"}[s],_=c==="center"?A:`${A}-${c}`;let M=p;const q=1,ce=s==="bottom"?q:0,X=s==="top"?q:0,L=s==="right"?q:0,re=s==="left"?q:0;typeof M=="number"?M={top:M+ce,right:M+re,bottom:M+X,left:M+L}:M&&(M={top:(M.top||0)+ce,right:(M.right||0)+re,bottom:(M.bottom||0)+X,left:(M.left||0)+L});const se={boundary:u==="clipping-ancestors"?"clippingAncestors":u,padding:M},C=a.useRef(null),B=Re(i),Z=Re(l),H=[_f(pe=>{const be=hs(pe,s,T),He=typeof B.current=="function"?B.current(be):B.current,Ie=typeof Z.current=="function"?Z.current(be):Z.current;return{mainAxis:He,crossAxis:Ie,alignmentAxis:Ie}},[typeof i!="function"?i:0,typeof l!="function"?l:0,T,s])],Y=V==="none"&&D!=="shift",W=!Y&&(f||y||D==="shift"),te=D==="none"?null:Df({...se,padding:{top:M.top+q,right:M.right+q,bottom:M.bottom+q,left:M.left+q},mainAxis:!y&&D==="flip",crossAxis:V==="flip"?"alignment":!1,fallbackAxisSideDirection:P}),ne=Y?null:jf(pe=>{const be=ft(pe.elements.floating).documentElement;return{...se,rootBoundary:y?{x:0,y:0,width:be.clientWidth,height:be.clientHeight}:void 0,mainAxis:V!=="none",crossAxis:W,limiter:f||y?void 0:Af(He=>{if(!C.current)return{};const{width:Ie,height:mt}=C.current.getBoundingClientRect(),Ze=Ye($e(He.placement)),Nt=Ze==="y"?Ie:mt,Et=Ze==="y"?M.left+M.right:M.top+M.bottom;return{offset:Nt/2+Et/2}})}},[se,f,y,M,V]);D==="shift"||V==="shift"||c==="center"?H.push(ne,te):H.push(te,ne),H.push(Nf({...se,apply({elements:{floating:pe},rects:{reference:be},availableWidth:He,availableHeight:Ie}){Object.entries({"--available-width":`${He}px`,"--available-height":`${Ie}px`,"--anchor-width":`${be.width}px`,"--anchor-height":`${be.height}px`}).forEach(([mt,Ze])=>{pe.style.setProperty(mt,Ze)})}}),qf(()=>({element:C.current||document.createElement("div"),padding:g,offsetParent:"floating"}),[g]),Lf(),{name:"transformOrigin",fn(pe){var be,He,Ie;const{elements:mt,middlewareData:Ze,placement:Nt,rects:Et,y:In}=pe,kn=$e(Nt),Pn=Ye(kn),le=C.current,Ge=((be=Ze.arrow)==null?void 0:be.x)||0,Oe=((He=Ze.arrow)==null?void 0:He.y)||0,vo=(le==null?void 0:le.clientWidth)||0,gt=(le==null?void 0:le.clientHeight)||0,Lt=Ge+vo/2,On=Oe+gt/2,Tn=Math.abs(((Ie=Ze.shift)==null?void 0:Ie.y)||0),St=Et.reference.height/2,en=typeof i=="function"?i(hs(pe,s,T)):i,Ic=Tn>en,kc={top:`${Lt}px calc(100% + ${en}px)`,bottom:`${Lt}px ${-en}px`,left:`calc(100% + ${en}px) ${On}px`,right:`${-en}px ${On}px`}[kn],Pc=`${Lt}px ${Et.reference.y+St-In}px`;return mt.floating.style.setProperty("--transform-origin",W&&Pn==="y"&&Ic?Pc:kc),{}}},w);let ee=b;!h&&b&&(ee={...b,elements:{reference:null,floating:null,domReference:null}});const O=a.useMemo(()=>({elementResize:m&&typeof ResizeObserver<"u",layoutShift:m&&typeof IntersectionObserver<"u"}),[m]),{refs:G,elements:F,x:Q,y:ae,middlewareData:ie,update:ge,placement:Ne,context:We,isPositioned:Ce,floatingStyles:je}=Ff({rootContext:ee,placement:_,middleware:H,strategy:r,whileElementsMounted:x?void 0:(...pe)=>ps(...pe,O),nodeId:R}),{sideX:Je,sideY:Le}=ie.adaptiveOrigin||{},Rn=a.useMemo(()=>w?{position:r,[Je]:`${Q}px`,[Le]:`${ae}px`}:je,[w,Je,Le,r,Q,ae,je]),Dt=a.useRef(null);oe(()=>{if(!h)return;const pe=U.current,be=typeof pe=="function"?pe():pe,Ie=(vs(be)?be.current:be)||null||null;Ie!==Dt.current&&(G.setPositionReference(Ie),Dt.current=Ie)},[h,G,I,U]),a.useEffect(()=>{if(!h)return;const pe=U.current;typeof pe!="function"&&vs(pe)&&pe.current!==Dt.current&&(G.setPositionReference(pe.current),Dt.current=pe.current)},[h,G,I,U]),a.useEffect(()=>{if(x&&h&&F.domReference&&F.floating)return ps(F.domReference,F.floating,ge,O)},[x,h,F,ge,O]);const Ct=$e(Ne),Cn=Xi(s,Ct,T),En=Rt(Ne)||"center",Sn=!!((t=ie.hide)!=null&&t.referenceHidden);oe(()=>{E&&h&&Ce&&k(Ct)},[E,h,Ce,Ct]);const Mn=a.useMemo(()=>{var pe,be;return{position:"absolute",top:(pe=ie.arrow)==null?void 0:pe.y,left:(be=ie.arrow)==null?void 0:be.x}},[ie.arrow]),Jt=((n=ie.arrow)==null?void 0:n.centerOffset)!==0;return a.useMemo(()=>({positionerStyles:Rn,arrowStyles:Mn,arrowRef:C,arrowUncentered:Jt,side:Cn,align:En,physicalSide:Ct,anchorHidden:Sn,refs:G,context:We,isPositioned:Ce,update:ge}),[Rn,Mn,C,Jt,Cn,En,Ct,Sn,G,We,Ce,ge])}function vs(e){return e!=null&&"current"in e}const Xf=a.createContext(void 0);function mo(e=!0){const t=a.useContext(Xf);if(t===void 0&&!e)throw new Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");return t}const Zi=a.createContext(void 0);function bn(e){const t=a.useContext(Zi);if(t===void 0&&!e)throw new Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");return t}const Qi=a.createContext(void 0);function at(e){const t=a.useContext(Qi);if(t===void 0&&!e)throw new Error("Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");return t}const Zf={...vn,...mn},Qf=a.forwardRef(function(t,n){const{className:o,render:r,...s}=t,{open:i,mounted:c,transitionStatus:l,lastOpenChangeReason:u}=at(),p=mo(),f=a.useMemo(()=>({open:i,transitionStatus:l}),[i,l]);return xe("div",t,{ref:p!=null&&p.backdropRef?[n,p.backdropRef]:n,state:f,stateAttributesMapping:Zf,props:[{role:"presentation",hidden:!c,style:{pointerEvents:u==="trigger-hover"?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},s]})}),Ji=a.createContext(void 0);function Jf(){const e=a.useContext(Ji);if(e===void 0)throw new Error("Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.");return e}const br={type:"regular-item"};function go(e){const{closeOnClick:t,disabled:n=!1,highlighted:o,id:r,menuEvents:s,allowMouseUpTriggerRef:i,typingRef:c,nativeButton:l,itemMetadata:u,nodeId:p}=e,f=a.useRef(null),m=mo(!0)!==void 0,{getButtonProps:x,buttonRef:b}=nr({disabled:n,focusableWhenDisabled:!0,native:l}),h=a.useCallback(y=>Gt({id:r,role:"menuitem",tabIndex:o?0:-1,onMouseMove(R){p&&s.emit("itemhover",{nodeId:p,target:R.currentTarget})},onMouseEnter(){u.type==="submenu-trigger"&&u.setActive()},onKeyUp(R){R.key===" "&&c.current&&R.preventBaseUIHandler()},onClick(R){t&&s.emit("close",{domEvent:R,reason:"item-press"})},onMouseUp(R){f.current&&i.current&&(!m||R.button===2)&&u.type==="regular-item"&&f.current.click()}},y,x),[r,o,x,c,t,s,i,m,u,p]),v=rt(f,b);return a.useMemo(()=>({getItemProps:h,itemRef:v}),[h,v])}let xs=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.highlighted="data-highlighted",e})({});const ho={checked(e){return e?{[xs.checked]:""}:{[xs.unchecked]:""}},...mn},ep=a.memo(a.forwardRef(function(t,n){const{checked:o,defaultChecked:r,onCheckedChange:s,className:i,closeOnClick:c,disabled:l=!1,highlighted:u,id:p,menuEvents:f,itemProps:g,render:m,allowMouseUpTriggerRef:x,typingRef:b,nativeButton:h,nodeId:v,...y}=t,[R,w]=mr({controlled:o,default:r??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:E,itemRef:S}=go({closeOnClick:c,disabled:l,highlighted:u,id:p,menuEvents:f,allowMouseUpTriggerRef:x,typingRef:b,nativeButton:h,nodeId:v,itemMetadata:br}),k=a.useMemo(()=>({disabled:l,highlighted:u,checked:R}),[l,u,R]),D=xe("div",t,{state:k,stateAttributesMapping:ho,props:[g,{role:"menuitemcheckbox","aria-checked":R,onClick(V){const P=ue("item-press",V.nativeEvent);s==null||s(!R,P),!P.isCanceled&&w(j=>!j)}},y,E],ref:[S,n]});return d.jsx(Ji.Provider,{value:k,children:D})})),tp=a.forwardRef(function(t,n){const{id:o,label:r,closeOnClick:s=!1,nativeButton:i=!1,...c}=t,l=a.useRef(null),u=xn({label:r}),p=rt(n,u.ref,l),{itemProps:f,activeIndex:g,allowMouseUpTriggerRef:m,typingRef:x}=at(),b=bn(!0),h=jt(o),v=u.index===g,{events:y}=Ue();return d.jsx(ep,{...c,id:h,ref:p,highlighted:v,menuEvents:y,itemProps:f,allowMouseUpTriggerRef:m,typingRef:x,closeOnClick:s,nativeButton:i,nodeId:b==null?void 0:b.floatingContext.nodeId})}),np=a.forwardRef(function(t,n){const{render:o,className:r,keepMounted:s=!1,...i}=t,c=Jf(),l=a.useRef(null),{transitionStatus:u,setMounted:p}=lo(c.checked);Yt({open:c.checked,ref:l,onComplete(){c.checked||p(!1)}});const f=a.useMemo(()=>({checked:c.checked,disabled:c.disabled,highlighted:c.highlighted,transitionStatus:u}),[c.checked,c.disabled,c.highlighted,u]);return xe("span",t,{state:f,ref:[n,l],stateAttributesMapping:ho,props:{"aria-hidden":!0,...i},enabled:s||c.checked})}),ec=a.createContext(void 0);function op(){const e=a.useContext(ec);if(e===void 0)throw new Error("Base UI: MenuGroupRootContext is missing. Menu group parts must be used within <Menu.Group>.");return e}const rp=a.forwardRef(function(t,n){const{render:o,className:r,...s}=t,[i,c]=a.useState(void 0),l=a.useMemo(()=>({setLabelId:c}),[c]),u=xe("div",t,{ref:n,props:{role:"group","aria-labelledby":i,...s}});return d.jsx(ec.Provider,{value:l,children:u})}),sp=a.forwardRef(function(t,n){const{className:o,render:r,id:s,...i}=t,c=jt(s),{setLabelId:l}=op();return oe(()=>(l(c),()=>{l(void 0)}),[l,c]),xe("div",t,{ref:n,props:{id:c,role:"presentation",...i}})}),ip=a.memo(a.forwardRef(function(t,n){const{className:o,closeOnClick:r=!0,disabled:s=!1,highlighted:i,id:c,menuEvents:l,itemProps:u,render:p,allowMouseUpTriggerRef:f,typingRef:g,nativeButton:m,nodeId:x,...b}=t,{getItemProps:h,itemRef:v}=go({closeOnClick:r,disabled:s,highlighted:i,id:c,menuEvents:l,allowMouseUpTriggerRef:f,typingRef:g,nativeButton:m,nodeId:x,itemMetadata:br}),y=a.useMemo(()=>({disabled:s,highlighted:i}),[s,i]);return xe("div",t,{state:y,ref:[v,n],props:[u,b,h]})})),cp=a.forwardRef(function(t,n){const{id:o,label:r,nativeButton:s=!1,...i}=t,c=a.useRef(null),l=xn({label:r}),u=rt(n,l.ref,c),{itemProps:p,activeIndex:f,allowMouseUpTriggerRef:g,typingRef:m}=at(),x=bn(!0),b=jt(o),h=l.index===f,{events:v}=Ue();return d.jsx(ip,{...i,id:b,ref:u,highlighted:h,menuEvents:v,itemProps:p,allowMouseUpTriggerRef:g,typingRef:m,nativeButton:s,nodeId:x==null?void 0:x.floatingContext.nodeId})}),ap=a.createContext(void 0);function lp(e){return a.useContext(ap)}const up={...vn,...mn},dp=a.forwardRef(function(t,n){const{render:o,className:r,finalFocus:s,...i}=t,{open:c,setOpen:l,popupRef:u,transitionStatus:p,popupProps:f,mounted:g,instantType:m,triggerElement:x,onOpenChangeComplete:b,parent:h,lastOpenChangeReason:v,rootId:y}=at(),{side:R,align:w,floatingContext:E}=bn(),S=lp()!=null;Yt({open:c,ref:u,onComplete(){c&&(b==null||b(!0))}});const{events:k}=Ue();a.useEffect(()=>{function j(N){l(!1,ue(N.reason,N.domEvent))}return k.on("close",j),()=>{k.off("close",j)}},[k,l]);const D=a.useMemo(()=>({transitionStatus:p,side:R,align:w,open:c,nested:h.type==="menu",instant:m}),[p,R,w,c,h.type,m]),V=xe("div",t,{state:D,ref:[n,u],stateAttributesMapping:up,props:[f,{onKeyDown(j){S&&xi.has(j.key)&&j.stopPropagation()}},p==="starting"?Il:Ae,i,{"data-rootownerid":y}]});let P=h.type===void 0||h.type==="context-menu";return(x||h.type==="menubar"&&v!=="outside-press")&&(P=!0),d.jsx(Ii,{context:E,modal:!1,disabled:!g,returnFocus:s===void 0?P:s,initialFocus:h.type!=="menu",restoreFocus:!0,children:V})}),tc=a.createContext(void 0);function fp(){const e=a.useContext(tc);if(e===void 0)throw new Error("Base UI: <Menu.Portal> is missing.");return e}function pp(e){const{children:t,keepMounted:n=!1,container:o}=e,{mounted:r}=at();return r||n?d.jsx(tc.Provider,{value:n,children:d.jsx(Mi,{root:o,children:t})}):null}const mp=a.forwardRef(function(t,n){var o,r,s,i;const{anchor:c,positionMethod:l="absolute",className:u,render:p,side:f,align:g,sideOffset:m=0,alignOffset:x=0,collisionBoundary:b="clipping-ancestors",collisionPadding:h=5,arrowPadding:v=5,sticky:y=!1,trackAnchor:R=!0,collisionAvoidance:w=Pl,...E}=t,{open:S,setOpen:k,floatingRootContext:D,setPositionerElement:V,itemDomElements:P,itemLabels:j,mounted:N,modal:I,lastOpenChangeReason:U,parent:$,setHoverEnabled:T,triggerElement:A}=at(),_=fp(),M=vu(),q=wt(),ce=mo(!0);let X=c,L=m,re=x,se=g;$.type==="context-menu"&&(X=(r=(o=$.context)==null?void 0:o.anchor)!=null?r:c,se=se??"start",!f&&se!=="center"&&(re=(s=t.alignOffset)!=null?s:2,L=(i=t.sideOffset)!=null?i:-5));let C=f,B=se;$.type==="menu"?(C=C??"inline-end",B=B??"start"):$.type==="menubar"&&(C=C??"bottom",B=B??"start");const Z=$.type==="context-menu",K=Yf({anchor:X,floatingRootContext:D,positionMethod:ce?"fixed":l,mounted:N,side:C,sideOffset:L,align:B,alignOffset:re,arrowPadding:Z?0:v,collisionBoundary:b,collisionPadding:h,sticky:y,nodeId:M,keepMounted:_,trackAnchor:R,collisionAvoidance:w,shiftCrossAxis:Z}),{events:z}=Ue(),H=a.useMemo(()=>{const O={};return S||(O.pointerEvents="none"),{role:"presentation",hidden:!N,style:{...K.positionerStyles,...O}}},[S,N,K.positionerStyles]);a.useEffect(()=>{function O(G){G.open?(G.parentNodeId===M&&T(!1),G.nodeId!==M&&G.parentNodeId===q&&k(!1,ue("sibling-open"))):G.parentNodeId===M&&G.reason!=="sibling-open"&&T(!0)}return z.on("menuopenchange",O),()=>{z.off("menuopenchange",O)}},[z,M,q,k,T]),a.useEffect(()=>{if(q==null)return;function O(G){var F;if(G.open||G.nodeId!==q)return;const Q=(F=G.reason)!=null?F:"sibling-open";k(!1,ue(Q))}return z.on("menuopenchange",O),()=>{z.off("menuopenchange",O)}},[z,q,k]),a.useEffect(()=>{function O(G){!S||G.nodeId!==q||A&&G.target&&A!==G.target&&k(!1,ue("sibling-open"))}return z.on("itemhover",O),()=>{z.off("itemhover",O)}},[z,q,A,S,k]),a.useEffect(()=>{const O={open:S,nodeId:M,parentNodeId:q,reason:U};z.emit("menuopenchange",O)},[z,S,M,q,U]);const Y=a.useMemo(()=>({open:S,side:K.side,align:K.align,anchorHidden:K.anchorHidden,nested:$.type==="menu"}),[S,K.side,K.align,K.anchorHidden,$.type]),W=a.useMemo(()=>({side:K.side,align:K.align,arrowRef:K.arrowRef,arrowUncentered:K.arrowUncentered,arrowStyles:K.arrowStyles,floatingContext:K.context}),[K.side,K.align,K.arrowRef,K.arrowUncentered,K.arrowStyles,K.context]),te=xe("div",t,{state:Y,stateAttributesMapping:vn,ref:[n,V],props:{...H,...E}}),ne=N&&$.type!=="menu"&&($.type!=="menubar"&&I&&U!=="trigger-hover"||$.type==="menubar"&&$.context.modal);let ee=null;return $.type==="menubar"?ee=$.context.contentElement:$.type===void 0&&(ee=A),d.jsxs(Zi.Provider,{value:W,children:[ne&&d.jsx(dr,{ref:$.type==="context-menu"||$.type==="nested-context-menu"?$.context.internalBackdropRef:null,inert:bi(!S),cutout:ee}),d.jsx(xu,{id:M,children:d.jsx(Pd,{elementsRef:P,labelsRef:j,children:te})})]})}),nc=a.createContext(void 0);function gp(){const e=a.useContext(nc);if(e===void 0)throw new Error("Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.");return e}const hp=a.memo(a.forwardRef(function(t,n){const{render:o,className:r,value:s,defaultValue:i,onValueChange:c,disabled:l=!1,...u}=t,[p,f]=mr({controlled:s,default:i,name:"MenuRadioGroup"}),g=J(c),m=J((v,y)=>{g==null||g(v,y),!y.isCanceled&&f(v)}),x=a.useMemo(()=>({disabled:l}),[l]),b=xe("div",t,{state:x,ref:n,props:{role:"group","aria-disabled":l||void 0,...u}}),h=a.useMemo(()=>({value:p,setValue:m,disabled:l}),[p,m,l]);return d.jsx(nc.Provider,{value:h,children:b})})),oc=a.createContext(void 0);function vp(){const e=a.useContext(oc);if(e===void 0)throw new Error("Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.");return e}const xp=a.memo(a.forwardRef(function(t,n){const{checked:o,setChecked:r,className:s,closeOnClick:i,disabled:c=!1,highlighted:l,id:u,menuEvents:p,itemProps:f,render:g,allowMouseUpTriggerRef:m,typingRef:x,nativeButton:b,nodeId:h,...v}=t,{getItemProps:y,itemRef:R}=go({closeOnClick:i,disabled:c,highlighted:l,id:u,menuEvents:p,allowMouseUpTriggerRef:m,typingRef:x,nativeButton:b,itemMetadata:br,nodeId:h}),w=a.useMemo(()=>({disabled:c,highlighted:l,checked:o}),[c,l,o]);return xe("div",t,{state:w,stateAttributesMapping:ho,ref:[R,n],props:[f,{role:"menuitemradio","aria-checked":o,onClick(E){r(ue("item-press",E.nativeEvent))}},v,y]})})),bp=a.forwardRef(function(t,n){const{id:o,value:r,label:s,disabled:i=!1,closeOnClick:c=!1,nativeButton:l=!1,...u}=t,p=a.useRef(null),f=xn({label:s}),g=rt(n,f.ref,p),{itemProps:m,activeIndex:x,allowMouseUpTriggerRef:b,typingRef:h}=at(),v=bn(!0),y=jt(o),R=f.index===x,{events:w}=Ue(),{value:E,setValue:S,disabled:k}=gp(),D=k||i,V=E===r,P=a.useCallback(N=>{S(r,N)},[S,r]),j=a.useMemo(()=>({checked:V,highlighted:R,disabled:D}),[V,R,D]);return d.jsx(oc.Provider,{value:j,children:d.jsx(xp,{...u,id:y,ref:g,disabled:D,highlighted:R,menuEvents:w,itemProps:m,allowMouseUpTriggerRef:b,checked:E===r,setChecked:P,typingRef:h,closeOnClick:c,nativeButton:l,nodeId:v==null?void 0:v.floatingContext.nodeId})})}),yr=a.forwardRef(function(t,n){const{render:o,className:r,keepMounted:s=!1,...i}=t,c=vp(),l=a.useRef(null),{transitionStatus:u,setMounted:p}=lo(c.checked);Yt({open:c.checked,ref:l,onComplete(){c.checked||p(!1)}});const f=a.useMemo(()=>({checked:c.checked,disabled:c.disabled,highlighted:c.highlighted,transitionStatus:u}),[c.checked,c.disabled,c.highlighted,u]);return xe("span",t,{state:f,stateAttributesMapping:ho,ref:[n,l],props:{"aria-hidden":!0,...i},enabled:s||c.checked})}),yp=a.createContext(null);function wp(e){return a.useContext(yp)}const rc=a.createContext(!1);function Rp(){return a.useContext(rc)}function Cp(e){const{enabled:t=!0,mouseDownAction:n,open:o}=e,r=a.useRef(!1);return a.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!o||n==="close"&&o)&&(r.current=!0,ft(s.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:s=>{r.current&&(r.current=!1,s.preventBaseUIHandler())}}:Ae,[t,n,o])}const Ep=[],Sp={current:!1},sc=function(t){const{children:n,open:o,onOpenChange:r,onOpenChangeComplete:s,defaultOpen:i=!1,disabled:c=!1,modal:l,loop:u=!0,orientation:p="vertical",actionsRef:f,openOnHover:g,delay:m=100,closeDelay:x=0,closeParentOnEsc:b=!0}=t,[h,v]=a.useState(null),[y,R]=a.useState(null),[w,E]=a.useState(),[S,k]=a.useState(!0),[D,V]=a.useState(null),[P,j]=a.useState(null),[N,I]=a.useState(!0),[U,$]=a.useState(!1),T=a.useRef(null),A=a.useRef(null),_=a.useRef(null),M=a.useRef([]),q=a.useRef([]),ce=Be(),X=mo(!0),L=Rp(),re=wt()!=null;let se,C;{const le=at(!0),Ge=wp();L&&le?C={type:"menu",context:le}:Ge?C={type:"menubar",context:Ge}:X&&!le?C={type:"context-menu",context:X}:C={type:void 0}}let B=Kt();C.type!==void 0&&(B=C.context.rootId);const Z=(C.type===void 0||C.type==="context-menu")&&(l??!0),K=c||C.type==="menubar"&&C.context.disabled||!1,z=C.type==="menu"?C.context.allowMouseEnter:U,H=C.type==="menu"?C.context.setAllowMouseEnter:$,Y=g??(C.type==="menu"||C.type==="menubar"&&C.context.hasSubmenuOpen),[W,te]=mr({controlled:o,default:i,name:"MenuRoot",state:"open"}),ne=a.useRef(C.type!=="context-menu"),ee=Be();a.useEffect(()=>{if(W||(T.current=null),C.type==="context-menu"){if(!W){ee.clear(),ne.current=!1;return}ee.start(500,()=>{ne.current=!0})}},[ee,W,C.type]);const O=a.useCallback(le=>{_.current=le,R(le)},[]),{mounted:G,setMounted:F,transitionStatus:Q}=lo(W),{openMethod:ae,triggerProps:ie,reset:ge}=ji(W);_i({enabled:W&&Z&&P!=="trigger-hover"&&ae!=="touch",mounted:G,open:W,referenceElement:y}),!W&&!S&&k(!0);const Ne=J(()=>{F(!1),I(!0),H(!1),s==null||s(!1),ge()});Yt({enabled:!f,open:W,ref:A,onComplete(){W||Ne()}});const We=a.useRef(!0),Ce=Be(),je=J((le,Ge)=>{const Oe=Ge.reason;if(W===le||(r==null||r(le,Ge),Ge.isCanceled))return;const vo={open:le,nativeEvent:Ge.event,reason:Ge.reason,nested:re};se==null||se.emit("openchange",vo);const gt=Ge.event;if(le===!1&&(gt==null?void 0:gt.type)==="click"&>.pointerType==="touch"&&!We.current)return;if(!le&&D!==null){const St=M.current[D];queueMicrotask(()=>{St==null||St.setAttribute("tabindex","-1")})}le&&Oe==="trigger-focus"?(We.current=!1,Ce.start(300,()=>{We.current=!0})):(We.current=!0,Ce.clear());const Lt=(Oe==="trigger-press"||Oe==="item-press")&>.detail===0&&(gt==null?void 0:gt.isTrusted),On=!le&&(Oe==="escape-key"||Oe==null);function Tn(){var St;te(le),j(Oe??null),T.current=(St=Ge.event)!=null?St:null}Oe==="trigger-hover"?(I(!0),ce.start(Ml,()=>{I(!1)}),Ht.flushSync(Tn)):Tn(),C.type==="menubar"&&(Oe==="trigger-focus"||Oe==="focus-out"||Oe==="trigger-hover"||Oe==="list-navigation"||Oe==="sibling-open")?E("group"):E(Lt||On?Lt?"click":"dismiss":void 0)});a.useImperativeHandle(f,()=>({unmount:Ne}),[Ne]);let Je;C.type==="context-menu"&&(Je=C.context),a.useImperativeHandle(Je==null?void 0:Je.positionerRef,()=>y,[y]),a.useImperativeHandle(Je==null?void 0:Je.actionsRef,()=>({setOpen:je}),[je]),a.useEffect(()=>{W||ce.clear()},[ce,W]);const Le=ur({elements:{reference:h,floating:y},open:W,onOpenChange:je});se=Le.events;const Rn=Xd(Le,{enabled:S&&Y&&!K&&C.type!=="context-menu"&&(C.type!=="menubar"||C.context.hasSubmenuOpen&&!W),handleClose:Gf({blockPointerEvents:!0}),mouseOnly:!0,move:C.type==="menu",restMs:C.type===void 0||C.type==="menu"&&z?m:void 0,delay:C.type==="menu"?{open:z?m:10**10,close:x}:{close:x}}),Dt=Bf(Le,{enabled:!K&&!W&&C.type==="menubar"&&C.context.hasSubmenuOpen&&!X}),Ct=ki(Le,{enabled:!K&&C.type!=="context-menu",event:W&&C.type==="menubar"?"click":"mousedown",toggle:!Y||C.type!=="menu",ignoreMouse:Y&&C.type==="menu",stickIfOpen:C.type===void 0?N:!1}),Cn=Pi(Le,{enabled:!K,bubbles:b&&C.type==="menu",outsidePress(){var le;return C.type!=="context-menu"||((le=T.current)==null?void 0:le.type)==="contextmenu"?!0:ne.current}}),En=Ti(Le,{role:"menu"}),Sn=$i(),Mn=Uf(Le,{enabled:!K,listRef:M,activeIndex:D,nested:C.type!==void 0,loop:u,orientation:p,parentOrientation:C.type==="menubar"?C.context.orientation:void 0,rtl:Sn==="rtl",disabledIndices:Ep,onNavigate:V,openOnArrowKeyDown:C.type!=="context-menu"}),Jt=a.useRef(!1),pe=a.useCallback(le=>{Jt.current=le},[]),be=Wf(Le,{listRef:q,activeIndex:D,resetMs:Sl,onMatch:le=>{W&&le!==D&&V(le)},onTypingChange:pe}),{getReferenceProps:He,getFloatingProps:Ie,getItemProps:mt}=Oi([Rn,Ct,Cn,Dt,En,Mn,be]),Ze=Cp({open:W,enabled:C.type==="menubar",mouseDownAction:"open"}),Nt=a.useMemo(()=>{const le=Gt(He(),{onMouseEnter(){k(!0)},onMouseMove(){H(!0)}},ie,Ze);return delete le.role,le},[He,Ze,H,ie]),Et=a.useMemo(()=>Ie({onMouseEnter(){(!Y||C.type==="menu")&&k(!1)},onMouseMove(){H(!0)},onClick(){Y&&k(!1)}}),[Ie,Y,C.type,H]),In=a.useMemo(()=>mt(),[mt]),kn=a.useMemo(()=>({activeIndex:D,setActiveIndex:V,allowMouseUpTriggerRef:C.type?C.context.allowMouseUpTriggerRef:Sp,floatingRootContext:Le,itemProps:In,popupProps:Et,triggerProps:Nt,itemDomElements:M,itemLabels:q,mounted:G,open:W,popupRef:A,positionerRef:_,setOpen:je,setPositionerElement:O,triggerElement:h,setTriggerElement:v,transitionStatus:Q,lastOpenChangeReason:P,instantType:w,onOpenChangeComplete:s,setHoverEnabled:k,typingRef:Jt,modal:Z,disabled:K,parent:C,rootId:B,allowMouseEnter:z,setAllowMouseEnter:H}),[D,Le,In,Et,Nt,M,q,G,W,_,je,Q,h,O,P,w,s,Z,K,C,B,z,H]),Pn=d.jsx(Qi.Provider,{value:kn,children:n});return C.type===void 0||C.type==="context-menu"?d.jsx(bu,{children:Pn}):Pn};function Mp(e){const{closeParentOnEsc:t=!1}=e;return d.jsx(rc.Provider,{value:!0,children:d.jsx(sc,{closeParentOnEsc:t,...e})})}function Ip(e){const t=e.getBoundingClientRect(),n=window.getComputedStyle(e,"::before"),o=window.getComputedStyle(e,"::after");if(!(n.content!=="none"||o.content!=="none"))return t;const s=parseFloat(n.width)||0,i=parseFloat(n.height)||0,c=parseFloat(o.width)||0,l=parseFloat(o.height)||0,u=Math.max(t.width,s,c),p=Math.max(t.height,i,l),f=u-t.width,g=p-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-g/2,bottom:t.bottom+g/2}}function kp(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:o}=Us(),{ref:r,index:s}=xn(e),i=n===s,c=a.useRef(null),l=rt(r,c);return{compositeProps:a.useMemo(()=>({tabIndex:i?0:-1,onFocus(){o(s)},onMouseMove(){const p=c.current;if(!t||!p)return;const f=p.hasAttribute("disabled")||p.ariaDisabled==="true";!i&&!f&&p.focus()}}),[i,o,s,t]),compositeRef:l,index:s}}function Pp(e){const{render:t,className:n,state:o=Ae,props:r=_r,refs:s=_r,metadata:i,stateAttributesMapping:c,tag:l="div",...u}=e,{compositeProps:p,compositeRef:f}=kp({metadata:i});return xe(l,e,{state:o,ref:[...s,f],props:[p,...r,u],stateAttributesMapping:c})}function ic(e){var t;if(ve(e)&&e.hasAttribute("data-rootownerid"))return(t=e.getAttribute("data-rootownerid"))!=null?t:void 0;if(!nt(e))return ic(st(e))}const $n=2,Op=a.forwardRef(function(t,n){const{render:o,className:r,disabled:s=!1,nativeButton:i=!0,...c}=t,{triggerProps:l,disabled:u,setTriggerElement:p,open:f,allowMouseUpTriggerRef:g,positionerRef:m,parent:x,lastOpenChangeReason:b,rootId:h}=at(),v=s||u,y=a.useRef(null),R=Be(),{getButtonProps:w,buttonRef:E}=nr({disabled:v,native:i}),S=rt(E,p),{events:k}=Ue();a.useEffect(()=>{!f&&x.type===void 0&&(g.current=!1)},[g,f,x.type]);const D=J($=>{if(!y.current)return;R.clear(),g.current=!1;const T=$.target;if(he(y.current,T)||he(m.current,T)||T===y.current||T!=null&&ic(T)===h)return;const A=Ip(y.current);$.clientX>=A.left-$n&&$.clientX<=A.right+$n&&$.clientY>=A.top-$n&&$.clientY<=A.bottom+$n||k.emit("close",{domEvent:$,reason:"cancel-open"})});a.useEffect(()=>{f&&b==="trigger-hover"&&ft(y.current).addEventListener("mouseup",D,{once:!0})},[f,D,b]);const V=x.type==="menubar",P=a.useCallback($=>Gt(V?{role:"menuitem"}:{},{"aria-haspopup":"menu",ref:S,onMouseDown:T=>{if(f)return;R.start(200,()=>{g.current=!0}),ft(T.currentTarget).addEventListener("mouseup",D,{once:!0})}},$,w),[w,S,f,g,R,D,V]),j=a.useMemo(()=>({disabled:v,open:f}),[v,f]),N=[y,n,E],I=[l,c,P],U=xe("button",t,{enabled:!V,stateAttributesMapping:Br,state:j,ref:N,props:I});return V?d.jsx(Pp,{tag:"button",render:o,className:r,state:j,refs:N,props:I,stateAttributesMapping:Br}):U}),Tp=a.forwardRef(function(t,n){const{render:o,className:r,label:s,id:i,nativeButton:c=!1,...l}=t,u=jt(i),{triggerProps:p,parent:f,setTriggerElement:g,open:m,typingRef:x,disabled:b,allowMouseUpTriggerRef:h}=at(),v=bn();if(f.type!=="menu")throw new Error("Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.");const y=f.context,{activeIndex:R,itemProps:w,setActiveIndex:E}=y,S=xn(),k=R===S.index,{events:D}=Ue(),V=a.useMemo(()=>({type:"submenu-trigger",setActive:()=>E(S.index),allowMouseEnterEnabled:y.allowMouseEnter}),[E,S.index,y.allowMouseEnter]),{getItemProps:P,itemRef:j}=go({closeOnClick:!1,disabled:b,highlighted:k,id:u,menuEvents:D,allowMouseUpTriggerRef:h,typingRef:x,nativeButton:c,itemMetadata:V,nodeId:v==null?void 0:v.floatingContext.nodeId}),N=a.useMemo(()=>({disabled:b,highlighted:k,open:m}),[b,k,m]);return xe("div",t,{state:N,ref:[n,S.ref,j,g],stateAttributesMapping:hu,props:[p,w,l,P,{tabIndex:m||k?0:-1,onBlur(){k&&E(null)}}]})});function _p(e){var t;return xe((t=e.defaultTagName)!=null?t:"div",e,e)}const jp="positioner__eWf4l",Ap="fixedPositioner__ASeFt",Dp="popup__UucRm",Np="backdrop__bBmVf",Lp="item__5a484",Fp="itemLabel__z75Xr",Bp="itemDescription__oxy7a",$p="itemValue__VOv0R",zp="itemLeadingElements__5ARFl",Vp="itemTrailingElements__rx0FW",Up="group__-plPv",Wp="groupLabel__OisFc",Hp="radioGroup__cjmci",Gp="checkboxItemIndicator__6wmLt",De={positioner:jp,fixedPositioner:Ap,popup:Dp,backdrop:Np,item:Lp,itemLabel:Fp,itemDescription:Bp,itemValue:$p,itemLeadingElements:zp,itemTrailingElements:Vp,group:Up,groupLabel:Wp,radioGroup:Hp,checkboxItemIndicator:Gp},Kp=sc,cc=a.forwardRef(function({children:t,...n},o){return d.jsx(Op,{render:t,ref:o,...n})});function wr(e){const t=Cs();return d.jsx(pp,{container:t,...e})}const Rr=a.createContext(!1);function Cr(e){const t=a.useContext(Rr);return d.jsx(Qf,{className:De.backdrop,"data-backdrop":t?"submenu":"root",...e})}const qp=a.forwardRef(function(t,n){return d.jsx("div",{ref:n,className:De.fixedPositioner,...t,style:void 0})});function Er(e){const t=!Fi("medium-s"),n=a.useContext(Rr);return d.jsx(mp,{render:t?d.jsx(qp,{}):d.jsx("div",{className:De.positioner}),collisionAvoidance:{side:"shift",align:"shift"},collisionPadding:24,sideOffset:n?12:void 0,...e})}function Sr({dataset:e,preplyDsComponent:t,...n}){return d.jsx(dp,{className:De.popup,tabIndex:0,...ze(e,{preplyDsComponent:t}),...n})}const ac=a.createContext(""),At=a.forwardRef(function({dataset:t,render:n,...o},r){const s=a.useId(),i=_p({render:n,ref:r,defaultTagName:"div",props:{className:De.item,"aria-describedby":s,...ze(t),...o}});return d.jsx(ac.Provider,{value:s,children:i})});function Yp({children:e,...t}){return d.jsx(cp,{render:e,...t})}function Xt(e){return d.jsx("div",{className:De.itemLeadingElements,...e})}function yn(e){return d.jsx("div",{className:De.itemTrailingElements,...e})}function Zt(e){return d.jsx("span",{className:De.itemLabel,...e})}function Qt(e){const t=a.useContext(ac);return d.jsx("span",{className:De.itemDescription,id:t,"aria-hidden":!0,...e})}const lc=a.forwardRef(function(t,n){return d.jsx("span",{className:De.itemValue,...t,ref:n})});function uc(e){return d.jsx(ut,{svg:Kc,size:"16",accent:"tertiary",...e})}const dc=a.forwardRef(function({dataset:t,...n},o){return d.jsx(rp,{className:De.group,...ze(t),ref:o,...n})});function Xp(e){return d.jsx(sp,{className:De.groupLabel,...e})}function fc(e){const t=!Fi("medium-s");return d.jsx(Rr.Provider,{value:!0,children:d.jsx(Mp,{openOnHover:!t,...e})})}function pc({children:e,...t}){return d.jsx(Tp,{render:e,...t})}const Mr=a.forwardRef(function(t,n){return d.jsx(hp,{className:De.radioGroup,ref:n,...t})});function mc({children:e,...t}){return d.jsx(bp,{render:e,...t})}function gc(e){return d.jsx(yr,{render:d.jsx(ut,{svg:qc,size:"24"}),...e})}function Zp({children:e,...t}){return d.jsx(tp,{render:e,...t})}function Qp(e){return d.jsx(np,{className:De.checkboxItemIndicator,keepMounted:!0,...e})}dc.__docgenInfo={description:"",methods:[],displayName:"Group"};At.__docgenInfo={description:"",methods:[],displayName:"ItemContainer"};yr.__docgenInfo={description:"",methods:[],displayName:"MenuRadioItemIndicator"};cc.__docgenInfo={description:"",methods:[],displayName:"Trigger"};lc.__docgenInfo={description:"",methods:[],displayName:"ItemValue"};Mr.__docgenInfo={description:"",methods:[],displayName:"RadioGroup"};const hc=a.createContext(null),vc=a.createContext(()=>{}),xc=a.createContext(()=>{});function Jp({children:e,open:t,onOpenChange:n,defaultOpen:o,...r}){const[s,i]=a.useState(null),[c,l]=ia({value:t,onValueChange:n,defaultValue:o});return d.jsx(hc.Provider,{value:s,children:d.jsx(vc.Provider,{value:i,children:d.jsx(xc.Provider,{value:l,children:d.jsx(fc,{...r,open:!!c,onOpenChange:l,children:e})})})})}const em=pc;function tm(e){const t=a.useContext(vc);return d.jsx(lc,{...e,ref:t})}const nm=Mr;function om({value:e,children:t,onClick:n,...o}){const r=a.useContext(xc),s=i=>{n==null||n(i),r(!1)};return d.jsx(mc,{value:e,onClick:s,...o,children:t})}function rm({children:e}){return d.jsxs(d.Fragment,{children:[e,d.jsx(yr,{render:(t,{checked:n})=>d.jsxs(sm,{active:n,children:[d.jsx(la,{children:d.jsx(ln,{id:"preply-ds.dropdown-menu.select-option-label-text",defaultMessage:[{type:0,value:"Selected:"}]})})," ",e]})})]})}function sm({children:e,active:t}){const n=a.useContext(hc);return!t||!n?null:Ht.createPortal(e,n)}const bc=a.forwardRef(function({children:t,trigger:n,defaultOpen:o,dataset:r,keepMounted:s,open:i,onOpenChange:c,side:l,align:u,...p},f){return d.jsxs(Kp,{defaultOpen:o,open:i,onOpenChange:c,children:[d.jsx(cc,{...it(p),ref:f,children:n}),d.jsxs(wr,{keepMounted:s,children:[d.jsx(Cr,{}),d.jsx(Er,{sideOffset:4,side:l,align:u,children:d.jsx(Sr,{dataset:r,preplyDsComponent:Qe.DropdownMenu,children:t})})]})]})}),Mt=a.forwardRef(function({label:t,description:n,leadingElement:o,disabled:r,dataset:s,onClick:i,as:c,...l},u){return d.jsx(Yp,{disabled:r,onClick:i,children:d.jsxs(At,{...it(l),dataset:s,ref:u,render:c,children:[d.jsx(Xt,{children:o}),d.jsx(Zt,{children:t}),d.jsx(Qt,{children:n})]})})}),Yo=a.forwardRef(function({children:t,label:n,description:o,leadingElement:r,dataset:s,triggerDataset:i,keepMounted:c,disabled:l,defaultOpen:u,open:p,onOpenChange:f,side:g,align:m,...x},b){return d.jsxs(fc,{disabled:l,defaultOpen:u,open:p,onOpenChange:f,children:[d.jsx(pc,{children:d.jsxs(At,{...it(x),dataset:i,ref:b,children:[d.jsx(Xt,{children:r}),d.jsx(Zt,{children:n}),d.jsx(Qt,{children:o}),d.jsx(yn,{children:d.jsx(uc,{})})]})}),d.jsxs(wr,{keepMounted:c,children:[d.jsx(Cr,{}),d.jsx(Er,{side:g,align:m,children:d.jsx(Sr,{dataset:s,preplyDsComponent:Qe.DropdownMenu,children:t})})]})]})}),im=a.forwardRef(function({label:t,children:n,dataset:o,...r},s){return d.jsxs(dc,{...it(r),dataset:o,ref:s,children:[d.jsx(Xp,{children:t}),n]})}),cm=a.forwardRef(function({defaultValue:t,value:n,onValueChange:o,disabled:r,children:s,items:i,...c},l){const u=i?i.map(({value:p,...f})=>d.jsx(yc,{value:p,...f},p)):s;return d.jsx(Mr,{defaultValue:t,value:n,onValueChange:p=>o==null?void 0:o(p),disabled:r,ref:l,...it(c),children:u})}),yc=a.forwardRef(function({value:t,disabled:n,onClick:o,dataset:r,leadingElement:s,label:i,description:c,...l},u){return d.jsx(mc,{value:t,disabled:n,onClick:o,children:d.jsxs(At,{dataset:r,ref:u,...it(l),children:[d.jsx(Xt,{children:s}),d.jsx(Zt,{children:i}),d.jsx(Qt,{children:c}),d.jsx(yn,{children:d.jsx(gc,{})})]})})}),wc=a.forwardRef(function({label:t,description:n,leadingElement:o,dataset:r,disabled:s,defaultChecked:i,checked:c,onCheckedChange:l,...u},p){return d.jsx(Zp,{defaultChecked:i,checked:c,onCheckedChange:l,disabled:s,children:d.jsxs(At,{dataset:r,ref:p,...it(u),children:[d.jsx(Xt,{children:o}),d.jsx(Zt,{children:t}),d.jsx(Qt,{children:n}),d.jsx(yn,{children:d.jsx(Qp,{})})]})})}),an=a.forwardRef(function({label:t,description:n,leadingElement:o,dataset:r,disabled:s,value:i,onClick:c,...l},u){return d.jsx(om,{value:i,disabled:s,onClick:c,children:d.jsxs(At,{dataset:r,ref:u,...it(l),children:[d.jsx(Xt,{children:o}),d.jsx(Zt,{children:d.jsx(rm,{children:t})}),d.jsx(Qt,{children:n}),d.jsx(yn,{children:d.jsx(gc,{})})]})})}),Rc=a.forwardRef(function({label:t,description:n,leadingElement:o,dataset:r,triggerDataset:s,value:i,defaultValue:c,onValueChange:l,disabled:u,children:p,items:f,open:g,defaultOpen:m,onOpenChange:x,side:b,align:h,...v},y){const R=f?f.map(({value:w,...E})=>d.jsx(an,{value:w,...E},w)):p;return d.jsxs(Jp,{disabled:u,open:g,defaultOpen:m,onOpenChange:x,children:[d.jsx(em,{children:d.jsxs(At,{dataset:s,ref:y,...it(v),children:[d.jsx(Xt,{children:o}),d.jsx(Zt,{children:t}),d.jsx(Qt,{children:n}),d.jsxs(yn,{children:[d.jsx(tm,{}),d.jsx(uc,{})]})]})}),d.jsxs(wr,{keepMounted:!0,children:[d.jsx(Cr,{}),d.jsx(Er,{sideOffset:12,side:b,align:h,children:d.jsx(Sr,{dataset:r,preplyDsComponent:Qe.DropdownMenu,children:d.jsx(nm,{value:i,defaultValue:c,onValueChange:l,disabled:u,children:R})})})]})]})});bc.__docgenInfo={description:"",methods:[],displayName:"DropdownMenu"};wc.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuCheckboxItem"};im.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuGroup"};Mt.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuItem"};cm.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuRadioGroup"};yc.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuRadioItem"};Rc.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuSelect"};an.__docgenInfo={description:"",methods:[],displayName:"DropdownMenuSelectOption"};Yo.__docgenInfo={description:"",methods:[],displayName:"DropdownSubmenu"};const am="container__dtKps",lm="label__S0tQE",um="required__GVzWg",dm="description__h6Gw1",fm="error__MGvA2",Ft={container:am,label:lm,required:um,description:dm,error:fm};function pm({id:e,error:t,description:n,hasError:o}){const r={};return o&&(r["aria-invalid"]=!0),t&&(r["aria-invalid"]=!0,r["aria-errormessage"]=`${e}-error`),n&&(r["aria-describedby"]=`${e}-description`),r}const mm=({id:e,label:t,hideLabel:n,description:o,error:r,hasError:s,children:i,required:c,dataset:l,onClick:u,preplyDsComponent:p=Qe.FormControl,useLegacyRequiredLabel:f=!1})=>{const g=a.useId(),m=e||g,x=pm({id:m,error:r,description:o,hasError:s}),b=ze(l,{preplyDsComponent:p});return d.jsxs("div",{className:Ft.container,...b,onClick:u,children:[d.jsxs("label",{htmlFor:m,className:Ft.label,"data-hidden":n||!t,"data-testid":"label",children:[t,!!f&&c&&d.jsxs("span",{"aria-hidden":!0,className:Ft.required,children:[" • ",d.jsx(ln,{id:"preply-ds.fieldLabel.required",defaultMessage:[{type:0,value:"Required"}]})]}),!f&&!c&&d.jsxs("span",{"aria-hidden":!0,className:Ft.required,children:[" • ",d.jsx(ln,{id:"preply-ds.fieldLabel.optional",defaultMessage:[{type:0,value:"Optional"}]})]})]}),d.jsx(Ss,{id:m,required:c,...x,children:i}),r?d.jsx("p",{className:Ft.error,role:"alert",id:`${m}-error`,"data-testid":"error",children:r}):o?d.jsx("p",{className:Ft.description,id:`${m}-description`,"data-testid":"description",children:o}):null]})},gm="container__B-gQ9",hm="input__WZN7y",vm="icon__6Xfum",xm="trailingIcon__Bgnv4",bm="button__auAU0",nn={container:gm,input:hm,icon:vm,trailingIcon:xm,button:bm};function ym({button:e,icon:t,trailingIcon:n,children:o}){return d.jsxs("div",{className:nn.container,children:[!!t&&d.jsx("span",{className:nn.icon,children:t}),o,!!n&&d.jsx("span",{className:nn.trailingIcon,children:n}),!!e&&d.jsx("span",{className:nn.button,children:e})]})}const Cc=a.forwardRef(function({button:t,icon:n,dataset:o,onChange:r,onValueChange:s,...i},c){const l=ze(o),u=p=>{r==null||r(p),s==null||s(p.target.value)};return d.jsx(ym,{button:t,icon:n,children:d.jsx("input",{...l,...i,ref:c,onChange:u,className:nn.input})})});Cc.__docgenInfo={description:"",methods:[],displayName:"Input"};const Ec=a.forwardRef(function({id:t,label:n,description:o,error:r,required:s,type:i="text",inputDataset:c,dataset:l,hideLabel:u,onClick:p,hasError:f,useLegacyRequiredLabel:g,className:m,style:x,...b},h){return d.jsx(mm,{id:t,label:n,description:o,error:r,hasError:f,required:s,dataset:l,hideLabel:u,onClick:p,useLegacyRequiredLabel:g,preplyDsComponent:Qe.TextField,children:d.jsx(Cc,{...b,type:i,ref:h,dataset:c})})});Ec.__docgenInfo={description:"",methods:[],displayName:"TextField",props:{type:{defaultValue:{value:'"text"',computed:!1},required:!1}}};const wm="Divider__kU514",bs={Divider:wm,"size-small":"size-small__OdB2p","size-large":"size-large__4iJ0a"},ys=({size:e="small"})=>d.jsx("hr",{className:`${bs.Divider} ${bs[`size-${e}`]}`,"data-preply-ds-component":Qe.Divider}),wn=[{code:"en",name:"English",text:"The quick brown fox jumps over the lazy dog"},{code:"it",name:"Italian",text:"Cantami o Diva del pelide Achille l'ira funesta"},{code:"id",name:"Indonesian",text:"Muharjo seorang xenofobia universal yang takut pada warga jazirah, contohnya Qatar"},{code:"nl",name:"Dutch",text:"Pa's wijze lynx bezag vroom het fikse aquaduct"},{code:"es",name:"Spanish",text:"Benjamín pidió una bebida de kiwi y fresa. Noé, sin vergüenza, la más exquisita champaña del menú"},{name:"Français",code:"fr",text:"Les naïfs ægithales hâtifs pondant à Noël où il gèle sont sûrs d'être déçus en voyant leurs drôles d'œufs abîmés"},{code:"de",name:"German",text:"Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich"},{code:"pt",name:"Portuguese",text:"Vejo galã sexy pôr quinze kiwis à força em baú achatado"},{code:"pl",name:"Polish",text:"Stróż pchnął kość w quiz gędźb vel fax myjń"},{code:"tr",name:"Turkish",text:"Pijamalı hasta yağız şoföre çabucak güvendi"},{code:"ro",name:"Romanian",text:"Încă vând gem, whisky bej și tequila roz, preț fix"},{code:"sv",name:"Swedish",text:"Flygande bäckasiner söka hwila på mjuka tuvor"},{code:"cs",name:"Czech",text:"Příliš žluťoučký kůň úpěl ďábelské ódy"},{code:"uk",name:"Ukrainian",text:"Єхидна, ґава, їжак ще й шиплячі плазуни бігцем форсують Янцзи"},{code:"ru",name:"Russian",text:"Съешь же ещё этих мягких французских булок да выпей чаю"},{name:"Arabic",code:"ar",text:"نص حكيم له سر قاطع وذو شأن عظيم مكتوب على ثوب أخضر ومغلف بجلد أزرق"},{code:"th",name:"Thai",text:"นายสังฆภัณฑ์ เฮงพิทักษ์ฝั่ง ผู้เฒ่าซึ่งมีอาชีพเป็นฅนขายฃวด ถูกตำรวจปฏิบัติการจับฟ้องศาล ฐานลักนาฬิกาคุณหญิงฉัตรชฎา ฌานสมาธิ"},{code:"zh",name:"Chinese",text:"你好,世界!"},{code:"ja",name:"Japanese",text:"こんにちは、世界!"},{name:"Korean",code:"ko",text:"안녕하세요, 세계!"}],ye=wn.find(e=>e.code==="en"),Ir={text:"",textTransform:"normal",visible:wn.map(e=>e.code),expanded:[]};function Rm(e,t){const n=structuredClone(e);switch(t.type){case"set-text":return n.text=t.text,n;case"set-text-transform":return n.textTransform=t.textTransform,n;case"toggle-visibility":return n.visible.includes(t.lang)?n.visible=n.visible.filter(o=>o!==t.lang):n.visible.push(t.lang),n;case"toggle-expand":return n.expanded.includes(t.lang)?n.expanded=n.expanded.filter(o=>o!==t.lang):n.expanded.push(t.lang),n;case"expand-all":return n.expanded=wn.map(o=>o.code),n;case"collapse-all":return n.expanded=[],n;case"reset":return Ir;default:return e}}const Sc=a.createContext(Ir),Mc=a.createContext(()=>{});function Cm({children:e}){const[t,n]=a.useReducer(Rm,Ir);return d.jsx(Sc.Provider,{value:t,children:d.jsx(Mc.Provider,{value:n,children:e})})}function kr(){const e=a.useContext(Sc),t=a.useContext(Mc);return[e,t]}const Em=Ve.div`
|
|
32
|
-
border: 2px solid ${me(kt.border.tertiary)};
|
|
33
|
-
border-radius: ${me(Os[8])};
|
|
34
|
-
padding: ${me(_e[16])};
|
|
35
|
-
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: ${me(_e[16])};
|
|
39
|
-
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
background-color: ${me(kt.background.primary)};
|
|
42
|
-
transition: background-color ${me(Gc.components.interaction)};
|
|
43
|
-
&:hover {
|
|
44
|
-
background-color: ${me(kt.background.secondary)};
|
|
45
|
-
}
|
|
46
|
-
`,Sm=Ve.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
gap: ${me(_e[4])};
|
|
49
|
-
`,Mm=Ve.div`
|
|
50
|
-
display: grid;
|
|
51
|
-
grid-template-columns: auto 1fr;
|
|
52
|
-
gap: ${me(_e[8])};
|
|
53
|
-
align-items: center;
|
|
54
|
-
|
|
55
|
-
&[data-transform='uppercase'] *[data-value] {
|
|
56
|
-
text-transform: uppercase;
|
|
57
|
-
}
|
|
58
|
-
&[data-transform='lowercase'] *[data-value] {
|
|
59
|
-
text-transform: lowercase;
|
|
60
|
-
}
|
|
61
|
-
`;function Ke({variant:e,children:t}){return d.jsxs(d.Fragment,{children:[d.jsx(un,{variant:"caption-regular",accent:"secondary",children:e}),d.jsx(Ps,{tag:"div",variant:e,dataset:{value:!0},children:t})]})}function de({variant:e,children:t}){return d.jsxs(d.Fragment,{children:[d.jsx(un,{variant:"caption-regular",accent:"secondary",children:e}),d.jsx(un,{variant:e,dataset:{value:!0},children:t})]})}function Im({data:e}){const[t,n]=kr(),{code:o,name:r}=e,s=t.expanded.includes(o),i=t.text||e.text,c=o!=="en"&&!t.text;return t.visible.includes(o)?d.jsxs(Em,{lang:o,onClick:()=>{var l;((l=window.getSelection())==null?void 0:l.type)!=="Range"&&n({type:"toggle-expand",lang:o})},children:[d.jsxs(Sm,{children:[d.jsx(Hn,{size:"small",children:r}),d.jsx(Hn,{size:"small",children:o})]}),d.jsxs(Mm,{"data-transform":t.textTransform,children:[s&&d.jsxs(d.Fragment,{children:[d.jsx(Ke,{variant:"massive",children:i}),c&&d.jsx(Ke,{variant:"massive",children:ye.text}),d.jsx(Ke,{variant:"huge",children:i}),c&&d.jsx(Ke,{variant:"huge",children:ye.text}),d.jsx(Ke,{variant:"extraLarge",children:i}),c&&d.jsx(Ke,{variant:"extraLarge",children:ye.text})]}),d.jsx(Ke,{variant:"large",children:i}),s&&d.jsxs(d.Fragment,{children:[c&&d.jsx(Ke,{variant:"large",children:ye.text}),d.jsx(Ke,{variant:"medium",children:i}),c&&d.jsx(Ke,{variant:"medium",children:ye.text}),d.jsx(Ke,{variant:"small",children:i}),c&&d.jsx(Ke,{variant:"small",children:ye.text})]}),s&&d.jsxs(d.Fragment,{children:[d.jsx(de,{variant:"caption-regular",children:i}),c&&d.jsx(de,{variant:"caption-regular",children:ye.text}),d.jsx(de,{variant:"caption-semibold",children:i}),c&&d.jsx(de,{variant:"caption-semibold",children:ye.text}),d.jsx(de,{variant:"small-regular",children:i}),c&&d.jsx(de,{variant:"small-regular",children:ye.text}),d.jsx(de,{variant:"small-regular-italic",children:i}),c&&d.jsx(de,{variant:"small-regular-italic",children:ye.text}),d.jsx(de,{variant:"small-semibold",children:i}),c&&d.jsx(de,{variant:"small-semibold",children:ye.text}),d.jsx(de,{variant:"small-semibold-italic",children:i}),c&&d.jsx(de,{variant:"small-semibold-italic",children:ye.text})]}),d.jsx(de,{variant:"default-regular",children:i}),s&&d.jsxs(d.Fragment,{children:[c&&d.jsx(de,{variant:"default-regular",children:ye.text}),d.jsx(de,{variant:"default-regular-italic",children:i}),c&&d.jsx(de,{variant:"default-regular-italic",children:ye.text}),d.jsx(de,{variant:"default-semibold",children:i}),c&&d.jsx(de,{variant:"default-semibold",children:ye.text}),d.jsx(de,{variant:"default-semibold-italic",children:i}),c&&d.jsx(de,{variant:"default-semibold-italic",children:ye.text}),d.jsx(de,{variant:"large-regular",children:i}),c&&d.jsx(de,{variant:"large-regular",children:ye.text}),d.jsx(de,{variant:"large-regular-italic",children:i}),c&&d.jsx(de,{variant:"large-regular-italic",children:ye.text}),d.jsx(de,{variant:"large-semibold",children:i}),c&&d.jsx(de,{variant:"large-semibold",children:ye.text}),d.jsx(de,{variant:"large-semibold-italic",children:i}),c&&d.jsx(de,{variant:"large-semibold-italic",children:ye.text})]})]})]}):null}const km={Platform:"'Platform', 'Platform-fallback', 'Platform-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif",Figtree:"'Figtree', 'Figtree-fallback', 'Figtree-fallback-android', 'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif","Noto Sans":"'Noto Sans', 'NotoSans-fallback', 'NotoSans-fallback-android', sans-serif"},Pm=[{name:"Basic Latin",start:32,end:127},{name:"Latin-1 Supplement",start:160,end:255},{name:"Latin Extended-A",start:256,end:383},{name:"Latin Extended-B",start:384,end:591},{name:"Spacing Modifier Letters",start:688,end:767},{name:"Cyrillic",start:1024,end:1279},{name:"Arabic",start:1536,end:1791},{name:"Thai",start:3584,end:3711},{name:"Latin Extended Additional",start:7680,end:7935},{name:"General Punctuation",start:8192,end:8303},{name:"Currency Symbols",start:8352,end:8399}];function Om(e){const t=[];for(let n=e.start;n<=e.end;n++){const o=String.fromCodePoint(n);n<32||n>=127&&n<160||t.push({char:o,codePoint:n})}return t}function zn(e){return`U+${e.toString(16).toUpperCase().padStart(4,"0")}`}const Tm=Pm.map(e=>({...e,characters:Om(e)})),_m=Ve.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
gap: ${me(_e[24])};
|
|
65
|
-
max-height: 60vh;
|
|
66
|
-
overflow-y: auto;
|
|
67
|
-
`,jm=Ve.div`
|
|
68
|
-
display: flex;
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
gap: ${me(_e[8])};
|
|
71
|
-
`,Am=Ve.div`
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
gap: ${me(_e[8])};
|
|
75
|
-
position: sticky;
|
|
76
|
-
top: 0;
|
|
77
|
-
background: ${me(kt.background.primary)};
|
|
78
|
-
padding: ${me(_e[8])} 0;
|
|
79
|
-
`,Dm=Ve.div`
|
|
80
|
-
display: grid;
|
|
81
|
-
grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
|
|
82
|
-
gap: ${me(_e[4])};
|
|
83
|
-
`,Nm=Ve.div`
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
gap: ${me(_e[4])};
|
|
89
|
-
padding: ${me(_e[8])};
|
|
90
|
-
border: 1px solid ${me(kt.border.tertiary)};
|
|
91
|
-
border-radius: ${me(Os[4])};
|
|
92
|
-
`,Lm=Ve.span`
|
|
93
|
-
font-family: ${e=>km[e.$fontFamily]} !important;
|
|
94
|
-
font-size: 20px;
|
|
95
|
-
min-height: 24px;
|
|
96
|
-
`,Fm=Ve.span`
|
|
97
|
-
font-size: 9px;
|
|
98
|
-
color: ${me(kt.text.tertiary)};
|
|
99
|
-
font-family: monospace;
|
|
100
|
-
`;function Do({fontFamily:e,children:t}){const[n,o]=a.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(Ss,{onClick:()=>o(!0),children:t}),d.jsx(Cd,{open:n,onClose:()=>o(!1),title:`Unicode Table - ${e}`,description:"",size:"lg",children:d.jsx(_m,{children:Tm.map(r=>d.jsxs(jm,{children:[d.jsxs(Am,{children:[d.jsx(un,{variant:"default-semibold",children:r.name}),d.jsxs(Hn,{size:"small",children:[zn(r.start)," – ",zn(r.end)]})]}),d.jsx(Dm,{children:r.characters.map(({char:s,codePoint:i})=>d.jsxs(Nm,{$fontFamily:e,title:`${s} — ${zn(i)}`,children:[d.jsx(Lm,{$fontFamily:e,children:s}),d.jsx(Fm,{children:zn(i)})]},i))})]},r.name))})})]})}function Bm(){const[e,t]=kr();return d.jsxs(bc,{keepMounted:!0,trigger:d.jsx(Xo,{svg:Wc,assistiveText:"Filters",variant:"tertiary",size:"medium"}),children:[d.jsx(Yo,{label:"Languages",side:"left",leadingElement:d.jsx(ut,{svg:Fc,size:"24"}),children:wn.map(n=>d.jsx(wc,{label:n.name,checked:e.visible.includes(n.code),onCheckedChange:()=>{a.startTransition(()=>t({type:"toggle-visibility",lang:n.code}))}},n.code))}),d.jsx(ys,{}),d.jsxs(Rc,{label:"Text transform",side:"left",leadingElement:d.jsx(ut,{svg:Bc,size:"24"}),defaultValue:e.textTransform,onValueChange:n=>{a.startTransition(()=>t({type:"set-text-transform",textTransform:n}))},children:[d.jsx(an,{value:"normal",label:"Normal"}),d.jsx(an,{value:"uppercase",label:"Uppercase"}),d.jsx(an,{value:"lowercase",label:"Lowercase"})]}),d.jsx(ys,{}),d.jsxs(Yo,{label:"Unicode tables",side:"left",leadingElement:d.jsx(ut,{svg:$c,size:"24"}),keepMounted:!0,children:[d.jsx(Do,{fontFamily:"Platform",children:d.jsx(Mt,{label:"Platform"})}),d.jsx(Do,{fontFamily:"Figtree",children:d.jsx(Mt,{label:"Figtree"})}),d.jsx(Do,{fontFamily:"Noto Sans",children:d.jsx(Mt,{label:"Noto Sans"})})]}),d.jsx(Mt,{leadingElement:d.jsx(ut,{svg:zc,size:"24"}),label:"Expand all",onClick:()=>{a.startTransition(()=>t({type:"expand-all"}))}}),d.jsx(Mt,{leadingElement:d.jsx(ut,{svg:Vc,size:"24"}),label:"Collapse all",onClick:()=>{a.startTransition(()=>t({type:"collapse-all"}))}}),d.jsx(Mt,{leadingElement:d.jsx(ut,{svg:Uc,size:"24"}),label:"Reset",onClick:()=>{a.startTransition(()=>t({type:"reset"}))}})]})}const $m=Ve.div`
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
gap: ${me(_e[24])};
|
|
104
|
-
|
|
105
|
-
p {
|
|
106
|
-
margin: 0;
|
|
107
|
-
}
|
|
108
|
-
`,zm=Ve.div`
|
|
109
|
-
position: sticky;
|
|
110
|
-
top: 0;
|
|
111
|
-
background-color: ${me(kt.background.primary)};
|
|
112
|
-
padding: ${me(_e[8])} 0;
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: center;
|
|
115
|
-
gap: ${me(_e[8])};
|
|
116
|
-
|
|
117
|
-
[data-preply-ds-component='TextField'] {
|
|
118
|
-
flex: 1;
|
|
119
|
-
}
|
|
120
|
-
`,Vm=Ve.div`
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
gap: ${me(_e[8])};
|
|
124
|
-
`,Um=Lc`
|
|
125
|
-
.sbdocs.sbdocs-content {
|
|
126
|
-
max-width: 1280px;
|
|
127
|
-
}
|
|
128
|
-
`,Wm=()=>{const[e,t]=kr();return d.jsxs($m,{lang:"en","data-preply-ds-theme":"tokyo-ui",children:[d.jsx(Um,{}),d.jsxs(zm,{children:[d.jsx(Ec,{label:"Display text",hideLabel:!0,placeholder:"Enter text to display here...",defaultValue:e.text,onChange:n=>t({type:"set-text",text:n.target.value})}),d.jsx(Bm,{})]}),d.jsx(Vm,{children:wn.map(n=>d.jsx(Im,{data:n},n.code))})]})},Hm=()=>d.jsx(Cm,{children:d.jsx(Wm,{})});function ws(e){const t={h1:"h1",...Ms(),...e.components};return d.jsxs(d.Fragment,{children:[d.jsx(Ac,{title:"Guides/Assets/Fonts Explorer"}),`
|
|
129
|
-
`,d.jsx(t.h1,{id:"fonts-explorer",children:"Fonts Explorer"}),`
|
|
130
|
-
`,d.jsx(Dc,{children:d.jsx(Hm,{})})]})}function pg(e={}){const{wrapper:t}={...Ms(),...e.components};return t?d.jsx(t,{...e,children:d.jsx(ws,{...e})}):ws(e)}export{pg as default};
|