@preply/ds-docs 1.3.0 → 1.4.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-8tg2E-qV.js → 00.LayoutFlex.stories-ed2lpBeG.js} +1 -1
- package/dist/assets/{00.applications-D2_tGfRf.js → 00.applications-DLWUENDG.js} +1 -1
- package/dist/assets/{00.favicons.guide-C690JGQk.js → 00.favicons.guide-D5-20tQH.js} +1 -1
- package/dist/assets/{00.token-explorer-y6W0f5Yb.js → 00.token-explorer-BIc8vy7H.js} +1 -1
- package/dist/assets/{00.using-responsive-props-D7HIJt3_.js → 00.using-responsive-props-CY9p8v_u.js} +1 -1
- package/dist/assets/01.semantic-tokens-CThrY5Ts.js +2 -0
- package/dist/assets/{01.using-shorthand-props-D5OpTPkW.js → 01.using-shorthand-props-C_vbhNfL.js} +1 -1
- package/dist/assets/{10.Combinations.stories-Ct6685NI.js → 10.Combinations.stories-Bj20QCLY.js} +1 -1
- package/dist/assets/{10.fonts.guide-D9i9sQJH.js → 10.fonts.guide-Dy8fgLU5.js} +1 -1
- package/dist/assets/{10.ssr-DSJl1ffD.js → 10.ssr-D9v_dR0o.js} +1 -1
- package/dist/assets/{11.languageFont.explorer-I7XhZ4Xm.js → 11.languageFont.explorer-BZuqA2Qd.js} +1 -1
- package/dist/assets/{11.ssr.app-router-BuXrSise.js → 11.ssr.app-router-CU9S0P9E.js} +1 -1
- package/dist/assets/{20.libraries-D_xIp-Wv.js → 20.libraries-CG6__ozS.js} +1 -1
- package/dist/assets/{30.icons.explorer-PH1cdaPD.js → 30.icons.explorer-CK_LzlUE.js} +1 -1
- package/dist/assets/{30.storybook-CEe-PiYy.js → 30.storybook-Be_FRDz_.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-D7eLGfu0.js → 40.illustrations.explorer-lGFuCzSa.js} +1 -1
- package/dist/assets/{90.advanced-BE9PXRjl.js → 90.advanced-C4czMsOy.js} +1 -1
- package/dist/assets/AlertDialog-CSUTu5O6.css +1 -0
- package/dist/assets/AlertDialog.stories-DlRWBYYU.js +142 -0
- package/dist/assets/Avatar-CmnrM37w.js +6 -0
- package/dist/assets/Avatar-JE3Hcbkv.css +1 -0
- package/dist/assets/Avatar-_W1s5JpT.css +1 -0
- package/dist/assets/Avatar-iqWOn9Tl.js +1 -0
- package/dist/assets/{Avatar.stories-Bt8pPC1s.js → Avatar.stories-OTgx0pcM.js} +1 -1
- package/dist/assets/AvatarWithStatus-pddO2Nza.css +1 -0
- package/dist/assets/{AvatarWithStatus.stories-DZOf0a9g.js → AvatarWithStatus.stories--mF91ETX.js} +2 -2
- package/dist/assets/Badge-DcbG4N4-.css +1 -0
- package/dist/assets/{Badge.stories-BEJXe-bl.js → Badge.stories-D8nghiXL.js} +2 -2
- package/dist/assets/Box-CJkXzUjZ.css +1 -0
- package/dist/assets/Box.stories-DxW6l-HA.js +44 -0
- package/dist/assets/Button-B1mdczvv.js +1 -0
- package/dist/assets/Button-C6kEKm6h.css +1 -0
- package/dist/assets/Button-CHTJqu07.css +1 -0
- package/dist/assets/{Button-CGkNG45w.js → Button-DqwK0S70.js} +1 -1
- package/dist/assets/{Button.stories-CkilfUVx.js → Button.stories-oW-QBb5C.js} +1 -1
- package/dist/assets/{ButtonBase-CoA6K-It.css → ButtonBase-CuGZo0xf.css} +1 -1
- package/dist/assets/ButtonBase-D31GBWHv.js +8 -0
- package/dist/assets/Chips-Dejf8Sh_.css +1 -0
- package/dist/assets/{Chips.stories-BazAHlkw.js → Chips.stories-DiprPB2i.js} +1 -1
- package/dist/assets/{Color-YHDXOIA2-C4y61ek1.js → Color-YHDXOIA2-C2h0aGNO.js} +1 -1
- package/dist/assets/Dialog-DwZQYtV6.css +1 -0
- package/dist/assets/{Dialog.stories-tKAuFOhG.js → Dialog.stories-CAPNnMI_.js} +16 -16
- package/dist/assets/{DocsRenderer-CFRXHY34-CKni1BW8.js → DocsRenderer-CFRXHY34-C35smYsV.js} +1 -1
- package/dist/assets/FieldAdditionalText-CUu6JGoC.css +1 -0
- package/dist/assets/{FieldAdditionalText-DuEWaFeu.js → FieldAdditionalText-lW7Q1VGp.js} +1 -1
- package/dist/assets/{FieldAdditionalText.stories-BKzJywVE.js → FieldAdditionalText.stories-DcGxrOlS.js} +1 -1
- package/dist/assets/{FieldButton-D-la2Jzn.js → FieldButton-QHhW28uq.js} +1 -1
- package/dist/assets/{FieldButton-DnMkKpFP.css → FieldButton-k7TvuQHy.css} +1 -1
- package/dist/assets/{FieldButton.stories-DNCX_6wX.js → FieldButton.stories-vBmg2O9Q.js} +1 -1
- package/dist/assets/{FieldLayout-ucPtI83J.js → FieldLayout-BGkL1EMg.js} +1 -1
- package/dist/assets/FieldLayout-CG9n-WOS.css +1 -0
- package/dist/assets/{FieldLayout.stories-BaXyFyV0.js → FieldLayout.stories-CtD6-C6l.js} +1 -1
- package/dist/assets/FieldLayoutBase-CoIn-2cd.css +1 -0
- package/dist/assets/{FieldLayoutBase-BmwMSdWE.js → FieldLayoutBase-DQbxDQVA.js} +3 -3
- package/dist/assets/Heading-CifnBvGj.js +2 -0
- package/dist/assets/{Heading-DamS8I5F.css → Heading-DeYpQLgb.css} +1 -1
- package/dist/assets/{Heading.stories-DRr8Hoa4.js → Heading.stories-CROOXvlq.js} +1 -1
- package/dist/assets/Icon-BVvspUlo.js +1 -0
- package/dist/assets/Icon-BwwIOKM_.js +8 -0
- package/dist/assets/Icon-ByJ3-8OT.css +1 -0
- package/dist/assets/Icon-DghDQiVd.css +1 -0
- package/dist/assets/{Icon-RSC-CovqgG20.js → Icon-RSC-BOyrffYC.js} +1 -1
- package/dist/assets/{Icon.stories-CaNkb_vC.js → Icon.stories-BqehTDt3.js} +1 -1
- package/dist/assets/{IconButton-Bh5Ni2UR.js → IconButton-CI9clg4P.js} +1 -1
- package/dist/assets/InputText-DmOW3mdD.js +5 -0
- package/dist/assets/{LayoutFlex-gmvguImq.js → LayoutFlex-CaenMVBF.js} +1 -1
- package/dist/assets/{LayoutFlex-CDowjZxB.js → LayoutFlex-JnKYDcpC.js} +1 -1
- package/dist/assets/LayoutFlexItem-BM0Abp7Y.js +1 -0
- package/dist/assets/LayoutFlexItem-Dv67D5k3.css +1 -0
- package/dist/assets/LayoutGrid-BG6JKtyy.css +1 -0
- package/dist/assets/LayoutGrid-BhioG4bL.js +1 -0
- package/dist/assets/LayoutGrid-CJQpEAmZ.css +1 -0
- package/dist/assets/{LayoutGrid.stories-CQPljoqP.js → LayoutGrid.stories-Dv8lBJmB.js} +3 -3
- package/dist/assets/LayoutGridItem-BDT0sqW-.css +1 -0
- package/dist/assets/LayoutGridItem-CdnUXNtY.js +1 -0
- package/dist/assets/Link-vYql_2wB.css +1 -0
- package/dist/assets/{Link.stories-zLAuWX9B.js → Link.stories-DXbiFw9-.js} +4 -4
- package/dist/assets/Loader-DLP0PI5-.css +1 -0
- package/dist/assets/{Loader.stories-BboqpWt8.js → Loader.stories-DvgUtUpE.js} +2 -2
- package/dist/assets/{NumberField.stories-BpHFB9CV.js → NumberField.stories-BQIOdo90.js} +2 -2
- package/dist/assets/{ObserveIntersection-Ccn6ggRl.js → ObserveIntersection-D396wl1Z.js} +1 -1
- package/dist/assets/{ObserveIntersection.stories-CK5RwCMK.js → ObserveIntersection.stories-DIe0cEvy.js} +1 -1
- package/dist/assets/{OnboardingTooltip-x2DszDmR.js → OnboardingTooltip-IYSphueI.js} +1 -1
- package/dist/assets/OnboardingTooltip-RxaiJe-3.css +1 -0
- package/dist/assets/{OnboardingTooltip.stories-YGWZh7wP.js → OnboardingTooltip.stories-DnfLcLUg.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-BK5MQVED.js → OnboardingTooltip.tests.stories-DobHu21P.js} +1 -1
- package/dist/assets/{OnboardingTour-X5M_cS7-.js → OnboardingTour-2YaW_XWj.js} +1 -1
- package/dist/assets/{OnboardingTour-BP4h7xR5.css → OnboardingTour-Dr4ZlIUd.css} +1 -1
- package/dist/assets/{OnboardingTour.stories-BXsH2xpO.js → OnboardingTour.stories-BUBpjiez.js} +2 -2
- package/dist/assets/{OnboardingTour.tests.stories-DPOUFVqx.js → OnboardingTour.tests.stories-Buou9m4A.js} +1 -1
- package/dist/assets/PasswordField.stories-BevSwKGm.js +203 -0
- package/dist/assets/{PortalElementProvider-C0EkDknq.js → PortalElementProvider-DidBkzFe.js} +1 -1
- package/dist/assets/PreplyLogo-CBB3sPr3.css +1 -0
- package/dist/assets/{PreplyLogo.stories-DmXcvjgv.js → PreplyLogo.stories-BReIYVeE.js} +1 -1
- package/dist/assets/{ProgressBar-MHmjD13J.css → ProgressBar-D5aTIWY3.css} +1 -1
- package/dist/assets/{ProgressBar.stories-zcVtMh1i.js → ProgressBar.stories-wrAgHPrO.js} +1 -1
- package/dist/assets/{ProgressSteps-DKRENNWi.js → ProgressSteps-DWp2S1-b.js} +1 -1
- package/dist/assets/ProgressSteps-s9ACrzTy.css +1 -0
- package/dist/assets/{ProgressSteps.stories-BI9GvwsT.js → ProgressSteps.stories-CsWQLVog.js} +1 -1
- package/dist/assets/RootProvider-o_gxYeLh.js +1 -0
- package/dist/assets/SelectField-N7X7yUPn.css +1 -0
- package/dist/assets/SelectField.stories-9iipR200.js +182 -0
- package/dist/assets/{ShowOnIntersection.stories-D4B8EpSn.js → ShowOnIntersection.stories-BYz5GE4A.js} +1 -1
- package/dist/assets/Spinner-CVHMc-T0.css +1 -0
- package/dist/assets/{Spinner-DvSs1_DJ.js → Spinner-Dsa9X0G6.js} +1 -1
- package/dist/assets/Steps-CQWsOQKy.css +1 -0
- package/dist/assets/{Steps-BA9vRUSH.js → Steps-ifU4R9DW.js} +2 -2
- package/dist/assets/{Steps.stories-CArtTlc9.js → Steps.stories-DkI3jK5X.js} +1 -1
- package/dist/assets/{Text-D1nuTHlP.css → Text-BWNSh4D5.css} +1 -1
- package/dist/assets/Text-CDqVYAcD.js +1 -0
- package/dist/assets/Text-CdCGNBj4.js +1 -0
- package/dist/assets/{Text.stories-NYehfxgE.js → Text.stories-B8iegpqH.js} +1 -1
- package/dist/assets/TextField-DAwVD2CM.css +1 -0
- package/dist/assets/TextField-q53ruCuh.js +1 -0
- package/dist/assets/{TextField.stories-BY1H4a9E.js → TextField.stories-Beeq1JfY.js} +1 -1
- package/dist/assets/TextHighlighted-BHCtybuo.css +1 -0
- package/dist/assets/TextHighlighted-BdF2_CZo.js +1 -0
- package/dist/assets/{TextHighlighted.stories-CU-YQh0c.js → TextHighlighted.stories-DdbLv0RQ.js} +1 -1
- package/dist/assets/TextInline-CDFHfvph.css +1 -0
- package/dist/assets/{TextInline.stories-DxQqdyQA.js → TextInline.stories-aCVFO11z.js} +2 -2
- package/dist/assets/TextareaField.stories-bA314Jtt.js +221 -0
- package/dist/assets/Toast-BBn7aSpe.css +1 -0
- package/dist/assets/{Toast.stories-CSVzAKHh.js → Toast.stories-BZFlc1-_.js} +2 -2
- package/dist/assets/{Tooltip-CgNSV1zx.js → Tooltip-BvCJt9jJ.js} +1 -1
- package/dist/assets/Tooltip-Mm-tBuF2.css +1 -0
- package/dist/assets/{Tooltip.stories-BF2zDAu3.js → Tooltip.stories-Crh2sW9L.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-C_Osfge1.js → Tooltip.tests.stories-bmaSwgkR.js} +1 -1
- package/dist/assets/{breakpoints-Cxi56OGx.js → breakpoints-BELcY-aB.js} +1 -1
- package/dist/assets/{breakpoints-DAR-E6eG.js → breakpoints-CIpR6Rpt.js} +1 -1
- package/dist/assets/{breakpoints-BByG6q2q.js → breakpoints-_joXL0S9.js} +1 -1
- package/dist/assets/{changelog-DCnSoaQc.js → changelog-DdodvQsh.js} +200 -185
- package/dist/assets/{entry-preview-Rs3WVjAk.js → entry-preview-DNvfsvqm.js} +1 -1
- package/dist/assets/{getTokenVar-CD9sYO_0.js → getTokenVar-RiIceD0Y.js} +1 -1
- package/dist/assets/{hover-fULXOCaM.js → hover-BIABQ7bm.js} +1 -1
- package/dist/assets/{hover-BYUspDz3.js → hover-D2OphZ3W.js} +1 -1
- package/dist/assets/{hover-BILa1Jbh.js → hover-DDVoGg-g.js} +1 -1
- package/dist/assets/{iframe-vWKo2WPz.js → iframe-B08s_jqc.js} +2 -2
- package/dist/assets/{index-CWwb_nwj.js → index-B-5rsJjr.js} +1 -1
- package/dist/assets/{index-Cif9ZBgo.js → index-B77PBZuV.js} +1 -1
- package/dist/assets/{index-D1KM2TH6.js → index-BGAhMoqL.js} +3 -3
- package/dist/assets/index-BnaDsecG.js +7 -0
- package/dist/assets/{index-BoUZTGSt.js → index-CJrO-Wtu.js} +1 -1
- package/dist/assets/{index-F5yHvirT.js → index-DSa6qU7h.js} +1 -1
- package/dist/assets/{index-DlTEQ-d3.js → index-DmM0DblE.js} +1 -1
- package/dist/assets/{index-rt3jK62F.js → index-ODU_8Fga.js} +1 -1
- package/dist/assets/{intro-DZn3DHvI.js → intro-9BhCdV9M.js} +1 -1
- package/dist/assets/layout-relative-0-BGcS53.css +1 -0
- package/dist/assets/layout-relative-D-nYASza.css +1 -0
- package/dist/assets/layout-relative-DZ8FL-vJ.js +1 -0
- package/dist/assets/layout-relative-DiL5t_eA.css +1 -0
- package/dist/assets/layout-relative.module-Bf3FithH.js +1 -0
- package/dist/assets/layout-relative.module-CXJ9jc4G--YD8TQc4.js +1 -0
- package/dist/assets/{migrating-from-less-xfxGGfRQ.js → migrating-from-less-DX0PnZZJ.js} +1 -1
- package/dist/assets/options-DSKYF8ow.js +1 -0
- package/dist/assets/playground-BQGD3iU0.css +1 -0
- package/dist/assets/playground.stories-IM0Bn8my.js +857 -0
- package/dist/assets/{preview-BvnzZDeA.js → preview-DSwUvj7R.js} +1 -1
- package/dist/assets/{preview-uG6E6GFr.js → preview-D_cPBI7P.js} +2 -2
- package/dist/assets/{preview-D6yuuWfR.js → preview-E8zsGlo4.js} +1 -1
- package/dist/assets/text-accent-0oTyB6kb.css +1 -0
- package/dist/assets/text-accent-BMcamJQk.js +1 -0
- package/dist/assets/text-accent-CrnHOlvW.js +1 -0
- package/dist/assets/text-centered-1sU8-E1D.js +1 -0
- package/dist/assets/text-centered-BSdMMoT9.js +1 -0
- package/dist/assets/text-centered-BttmHjSJ.css +1 -0
- package/dist/assets/text-centered-V2JhT89g.css +1 -0
- package/dist/assets/{tokens-CIIxcXCS.js → tokens-D2SDDihU.js} +1 -1
- package/dist/assets/{tokens-C8usiAXt.js → tokens-DRcTh2ws.js} +1 -1
- package/dist/assets/tokens-Di5DrZN4.js +1 -0
- package/dist/assets/{tokens-RhSryCef.js → tokens-yG_wYklp.js} +1 -1
- package/dist/assets/{usePortalElement-DNdIYdAm.js → usePortalElement-aOX_O1I5.js} +1 -1
- package/dist/assets/{welcome-Dvt2b5nq.js → welcome-CGkWDS9u.js} +1 -1
- package/dist/assets/{zeroheight-LFw34vvi.js → zeroheight-CH9deXT2.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/preview-stats.json +1371 -1188
- package/dist/project.json +1 -1
- package/package.json +3 -3
- package/dist/assets/01.semantic-tokens-Dy0yYUja.js +0 -2
- package/dist/assets/AlertDialog-DW9_6AZ8.css +0 -1
- package/dist/assets/AlertDialog.stories-DL75XA8r.js +0 -148
- package/dist/assets/Avatar-B2F4MHTO.css +0 -1
- package/dist/assets/Avatar-BhQ7jOQj.js +0 -6
- package/dist/assets/Avatar-BmAsMdOp.css +0 -1
- package/dist/assets/Avatar-Bwsmc9lX.js +0 -1
- package/dist/assets/AvatarWithStatus-pY3sCrjp.css +0 -1
- package/dist/assets/Badge-CpgrOePP.css +0 -1
- package/dist/assets/Box-CM3YGFU2.css +0 -1
- package/dist/assets/Box.stories-CH6Mdgpt.js +0 -44
- package/dist/assets/Button-BC_jw4NG.css +0 -1
- package/dist/assets/ButtonBase-DGRySlif.js +0 -8
- package/dist/assets/Chips-npNdfrcI.css +0 -1
- package/dist/assets/Dialog-D_4XJPhu.css +0 -1
- package/dist/assets/FieldAdditionalText-CwUpaFS0.css +0 -1
- package/dist/assets/FieldLayout-n59cZav_.css +0 -1
- package/dist/assets/FieldLayoutBase-DfX79WCU.css +0 -1
- package/dist/assets/Heading-BBi-mqnb.css +0 -1
- package/dist/assets/Heading-D5Sdpx6j.js +0 -2
- package/dist/assets/Heading-DIKUudVW.js +0 -1
- package/dist/assets/Icon-C6rDUkYo.js +0 -8
- package/dist/assets/Icon-CL5fP8-X.css +0 -1
- package/dist/assets/Icon-Cm_cf2-0.css +0 -1
- package/dist/assets/Icon-D7dTFAZz.js +0 -1
- package/dist/assets/InputText-DcyrRnV_.js +0 -5
- package/dist/assets/LayoutFlexItem-B-sXwsal.js +0 -1
- package/dist/assets/LayoutFlexItem-BelX-aXB.css +0 -1
- package/dist/assets/LayoutGrid-DfeGijvV.css +0 -1
- package/dist/assets/LayoutGrid-QZAfTQn5.js +0 -1
- package/dist/assets/LayoutGrid-aWJCovC4.css +0 -1
- package/dist/assets/LayoutGridItem-BTVKItd4.css +0 -1
- package/dist/assets/LayoutGridItem-ChTN54lj.js +0 -1
- package/dist/assets/Link-Be5EvvvY.css +0 -1
- package/dist/assets/Loader-COd8FTp8.css +0 -1
- package/dist/assets/OnboardingTooltip-CWEDWsqF.css +0 -1
- package/dist/assets/PasswordField.stories-Dmzyz9HV.js +0 -203
- package/dist/assets/PreplyLogo-D-EL1nAu.css +0 -1
- package/dist/assets/ProgressSteps-aaWTTKJv.css +0 -1
- package/dist/assets/RootProvider-_OxBHGC3.js +0 -1
- package/dist/assets/SelectField-DRuLQN6Y.css +0 -1
- package/dist/assets/SelectField.stories-D3P13J7b.js +0 -182
- package/dist/assets/Spinner-CdCa7n5q.css +0 -1
- package/dist/assets/Steps-BvugtWzT.css +0 -1
- package/dist/assets/Text-DEPGSVyh.js +0 -1
- package/dist/assets/Text-DYAggeGe.js +0 -1
- package/dist/assets/TextField-CyKhijoj.css +0 -1
- package/dist/assets/TextField-DphTmQSZ.js +0 -1
- package/dist/assets/TextHighlighted-BpMBas3S.js +0 -1
- package/dist/assets/TextHighlighted-D5caZ97j.css +0 -1
- package/dist/assets/TextInline-CcXMe67Y.css +0 -1
- package/dist/assets/TextareaField.stories-CYQV7fgs.js +0 -221
- package/dist/assets/Toast-CLpvlMPv.css +0 -1
- package/dist/assets/Tooltip-C6hVxAqp.css +0 -1
- package/dist/assets/layout-relative-B5qIaygx.css +0 -1
- package/dist/assets/layout-relative-BtZgANvD.css +0 -1
- package/dist/assets/layout-relative-Css93Y6Y.css +0 -1
- package/dist/assets/layout-relative-DHMpxpbw.js +0 -1
- package/dist/assets/layout-relative.module-CictnSCd.js +0 -1
- package/dist/assets/layout-relative.module-CuJ1jHGm-eCgTXz_W.js +0 -1
- package/dist/assets/options-8hBtriF-.js +0 -1
- package/dist/assets/playground-CqRPyHSX.css +0 -1
- package/dist/assets/playground.stories-Bc2EUyjN.js +0 -857
- package/dist/assets/text-accent-BUKnCsGG.css +0 -1
- package/dist/assets/text-accent-CvjwTDtK.js +0 -1
- package/dist/assets/text-accent-DL4_rrDH.js +0 -1
- package/dist/assets/text-centered-B1nRgYwv.js +0 -1
- package/dist/assets/text-centered-BCCtSPST.css +0 -1
- package/dist/assets/text-centered-BMzFcUqk.css +0 -1
- package/dist/assets/text-centered-DqK_kb5q.js +0 -1
- package/dist/assets/tokens-CkwKC70_.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c}from"./index-Cb9e4tly.js";import{k as G,
|
|
1
|
+
import{r as c}from"./index-Cb9e4tly.js";import{k as G,u as he,f as me}from"./PortalElementProvider-DidBkzFe.js";import{j as ge}from"./jsx-runtime-BTJTZTIL.js";import{a as k,_ as oe,b as pe}from"./tslib.es6-BntfKcQG.js";var U="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",Z={bubbles:!1,cancelable:!0},ye="FocusScope",be=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:i,...s}=e,[a,S]=c.useState(null),y=G(u),g=G(i),f=c.useRef(null),v=he(t,o=>S(o)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let o=function(m){if(h.paused||!a)return;const p=m.target;a.contains(p)?f.current=p:C(f.current,{select:!0})},l=function(m){if(h.paused||!a)return;const p=m.relatedTarget;p!==null&&(a.contains(p)||C(f.current,{select:!0}))},d=function(m){if(document.activeElement===document.body)for(const b of m)b.removedNodes.length>0&&C(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const E=new MutationObserver(d);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),E.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(U,Z);a.addEventListener(U,y),a.dispatchEvent(d),d.defaultPrevented||(Ee(Re(ce(a)),{select:!0}),document.activeElement===o&&C(a))}return()=>{a.removeEventListener(U,y),setTimeout(()=>{const d=new CustomEvent(_,Z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||C(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,y,g,h]);const w=c.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const E=o.currentTarget,[m,p]=Se(E);m&&p?!o.shiftKey&&d===p?(o.preventDefault(),n&&C(m,{select:!0})):o.shiftKey&&d===m&&(o.preventDefault(),n&&C(p,{select:!0})):d===E&&o.preventDefault()}},[n,r,h.paused]);return ge.jsx(me.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});be.displayName=ye;function Ee(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(C(r,{select:t}),document.activeElement!==n)return}function Se(e){const t=ce(e),n=q(t,e),r=q(t.reverse(),e);return[n,r]}function ce(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function q(e,t){for(const n of e)if(!we(n,{upTo:t}))return n}function we(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ce(e){return e instanceof HTMLInputElement&&"select"in e}function C(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ce(e)&&t&&e.select()}}var Q=ke();function ke(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$(e,t),e.unshift(t)},remove(t){var n;e=$(e,t),(n=e[0])==null||n.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Re(e){return e.filter(t=>t.tagName!=="A")}var K=0;function mt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),K++,()=>{K===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),K--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W="right-scroll-bar-position",B="width-before-scroll-bar",Ae="with-scroll-bars-hidden",Te="--removed-body-scroll-bar-size";function H(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Me(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var Ne=typeof window<"u"?c.useLayoutEffect:c.useEffect,ee=new WeakMap;function Fe(e,t){var n=Me(null,function(r){return e.forEach(function(u){return H(u,r)})});return Ne(function(){var r=ee.get(n);if(r){var u=new Set(r),i=new Set(e),s=n.current;u.forEach(function(a){i.has(a)||H(a,null)}),i.forEach(function(a){u.has(a)||H(a,s)})}ee.set(n,e)},[e]),n}function Le(e){return e}function Pe(e,t){t===void 0&&(t=Le);var n=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},y=function(){return Promise.resolve().then(S)};y(),n={push:function(g){s.push(g),y()},filter:function(g){return s=s.filter(g),n}}}};return u}function xe(e){e===void 0&&(e={});var t=Pe(null);return t.options=k({async:!0,ssr:!1},e),t}var ue=function(e){var t=e.sideCar,n=oe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,k({},n))};ue.isSideCarExport=!0;function Ie(e,t){return e.useMedium(t),ue}var ie=xe(),V=function(){},D=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),u=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,y=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noIsolation,w=e.inert,o=e.allowPinchZoom,l=e.as,d=l===void 0?"div":l,E=e.gapMode,m=oe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),p=v,b=Fe([n,t]),R=k(k({},m),u);return c.createElement(c.Fragment,null,g&&c.createElement(p,{sideCar:ie,removeScrollBar:y,shards:f,noIsolation:h,inert:w,setCallbacks:i,allowPinchZoom:!!o,lockRef:n,gapMode:E}),s?c.cloneElement(c.Children.only(a),k(k({},R),{ref:b})):c.createElement(d,k({},R,{className:S,ref:b}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var Oe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function We(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oe();return t&&e.setAttribute("nonce",t),e}function Be(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function De(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ue=function(){var e=0,t=null;return{add:function(n){e==0&&(t=We())&&(Be(t,n),De(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_e=function(){var e=Ue();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},le=function(){var e=_e(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},Ke={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},He=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[X(n),X(r),X(u)]},Ve=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ke;var t=He(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xe=le(),N="data-scroll-locked",Ye=function(e,t,n,r){var u=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Ae,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as R}from"./index-Cb9e4tly.js";import{r as Oe}from"./index-BPrLDK9Y.js";import{d as Rt,j as yt,c as Ce,g as Ut,k as Pe}from"./PortalElementProvider-C0EkDknq.js";import{j as Y}from"./jsx-runtime-BTJTZTIL.js";const Se=["top","right","bottom","left"],U=Math.min,N=Math.max,ft=Math.round,lt=Math.floor,j=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function vt(t,e,n){return N(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Ot(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Pt(t){return Ot(Z(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=tt(t),i=Pt(t),r=Ct(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ut(s)),[s,ut(s)]}function Le(t){const e=ut(t);return[bt(t),e,bt(e)]}function bt(t){return t.replace(/start|end/g,e=>De[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=tt(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(bt)))),r}function ut(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zt(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function dt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function _t(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Pt(e),c=Ct(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=_t(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:u}=_t(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:i,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=X(e,t),p=Zt(d),w=c[m?u==="floating"?"reference":"floating":u],g=dt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},v=dt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=Zt(f),m={x:n,y:o},d=Pt(i),p=Ct(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-m[d]-r.floating[p],v=m[d]-r.reference[d],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=O?O[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(O)))&&(C=c.floating[b]||r.floating[p]);const T=y/2-v/2,F=C/2-h[p]/2-1,L=U(u[g],F),$=U(u[x],F),k=L,S=C-h[p]-$,P=C/2-h[p]/2+T,W=vt(k,P,S),E=!l.arrow&&tt(i)!=null&&P!==W&&r.reference[p]/2-(P<k?L:$)-h[p]/2<0,D=E?P<k?P-k:P-S:0;return{[d]:m[d]+D,data:{[d]:W,centerOffset:P-W-D,...E&&{alignmentOffset:D}},reset:E}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),x=Z(c),b=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ut(c)]:Le(c)),O=p!=="none";!m&&O&&v.push(...$e(c,h,p,y));const C=[c,...v],T=await ot(e,w),F=[];let L=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&F.push(T[g]),u){const P=Te(i,s,y);F.push(T[P[0]],T[P[1]])}if(L=[...L,{placement:i,overflows:F}],!F.every(P=>P<=0)){var $,k;const P=((($=r.flip)==null?void 0:$.index)||0)+1,W=C[P];if(W)return{data:{index:P,overflows:L},reset:{placement:W}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(O){const M=Z(A.placement);return M===x||M==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(M=>M>0).reduce((M,z)=>M+z,0)]).sort((A,M)=>A[1]-M[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function zt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await ot(e,{...i,elementContext:"reference"}),s=zt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const r=await ot(e,{...i,altBoundary:!0}),s=zt(r,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}};async function Be(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=tt(n),l=Z(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},ze=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=X(t,e),a={x:n,y:o},f=await ot(e,l),u=Z(q(i)),m=Ot(u);let d=a[m],p=a[u];if(r){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=vt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=vt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:r,[u]:s}}}}}},je=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),m=Ot(u);let d=f[m],p=f[u];const h=X(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=r.reference[m]-r.floating[b]+w.mainAxis,v=r.reference[m]+r.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=["top","left"].includes(q(i)),v=r.reference[u]-r.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),O=r.reference[u]+r.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>O&&(p=O)}return{[m]:d,[u]:p}}}},Ve=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await ot(e,a),u=q(i),m=tt(i),d=Z(i)==="y",{width:p,height:h}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=U(h-f[w],x),v=U(p-f[g],b),O=!e.middlewareData.shift;let C=y,T=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(T=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(C=x),O&&!m){const L=N(f.left,0),$=N(f.right,0),k=N(f.top,0),S=N(f.bottom,0);d?T=p-2*(L!==0||$!==0?L+$:N(f.left,f.right)):C=h-2*(k!==0||S!==0?k+S:N(f.top,f.bottom))}await l({...e,availableWidth:T,availableHeight:C});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function I(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return mt()?t instanceof Node||t instanceof H(t).Node:!1}function B(t){return mt()?t instanceof Element||t instanceof H(t).Element:!1}function V(t){return mt()?t instanceof HTMLElement||t instanceof H(t).HTMLElement:!1}function Vt(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof H(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(et(t))}function ht(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=B(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ye(t){let e=K(t);for(;V(e)&&!Q(e);){if(St(e))return e;if(ht(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Q(t){return["html","body","#document"].includes(et(t))}function _(t){return H(t).getComputedStyle(t)}function gt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vt(t)&&t.host||I(t);return Vt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&rt(e)?e:Gt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Gt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=H(i);if(r){const c=At(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?it(c):[])}return e.concat(i,it(i,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=_(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Dt(t){return B(t)?t:t.contextElement}function J(t){const e=Dt(t);if(!V(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Jt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=j(0);function Qt(t){const e=H(t);return!Et()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==H(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Dt(t);let s=j(1);e&&(o?B(o)&&(s=J(o)):s=J(t));const c=qe(r,n,o)?Qt(r):j(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const m=H(r),d=o&&B(o)?H(o):o;let p=m,h=At(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=_(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=H(h),h=At(p)}}return dt({width:f,height:u,x:l,y:a})}function Tt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(I(t)).left+n}function te(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Tt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=I(o),c=e?ht(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const f=j(0),u=V(o);if((u||!u&&!r)&&((et(o)!=="body"||rt(s))&&(l=gt(o)),V(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!r?te(s,l,!0):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=I(t),n=gt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Tt(t);const c=-n.scrollTop;return _(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=H(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Et();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=V(t)?J(t):j(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function It(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(I(t));else if(B(e))o=Je(e,n);else{const i=Qt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dt(o)}function ee(t,e){const n=K(t);return n===e||!B(n)||Q(n)?!1:_(n).position==="fixed"||ee(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>B(c)&&et(c)!=="body"),i=null;const r=_(t).position==="fixed";let s=r?K(t):t;for(;B(s)&&!Q(s);){const c=_(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=It(e,f,i);return a.top=N(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=N(u.left,a.left),a},It(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function nn(t,e,n){const o=V(e),i=I(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);if(o||!o&&!r)if((et(e)!=="body"||rt(i))&&(c=gt(e)),o){const m=G(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else i&&(l.x=Tt(i));const a=i&&!o&&!r?te(i,c):j(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,y:u,width:s.width,height:s.height}}function wt(t){return _(t).position==="static"}function Yt(t,e){if(!V(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=H(t);if(ht(t))return n;if(!V(t)){let i=K(t);for(;i&&!Q(i);){if(B(i)&&!wt(i))return i;i=K(i)}return n}let o=Yt(t,e);for(;o&&Ie(o)&&wt(o);)o=Yt(o,e);return o&&Q(o)&&wt(o)&&!St(o)?n:o||Ye(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return _(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:I,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:J,isElement:B,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=I(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=lt(u),h=lt(i.clientWidth-(f+m)),w=lt(i.clientHeight-(u+d)),g=lt(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:N(0,U(1,l))||1};let y=!0;function v(O){const C=O[0].intersectionRatio;if(C!==l){if(!y)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=i||r?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=ze,un=He,dn=Ve,pn=We,Xt=Ne,mn=je,hn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var at=typeof document<"u"?R.useLayoutEffect:R.useEffect;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!pt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!pt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ie(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function qt(t,e){const n=ie(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return at(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);pt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==O.current&&(O.current=A,h(A))},[]),b=R.useCallback(A=>{A!==C.current&&(C.current=A,g(A))},[]),y=r||p,v=s||w,O=R.useRef(null),C=R.useRef(null),T=R.useRef(f),F=l!=null,L=xt(l),$=xt(i),k=xt(a),S=R.useCallback(()=>{if(!O.current||!C.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),hn(O.current,C.current,A).then(M=>{const z={...M,isPositioned:k.current!==!1};P.current&&!pt(T.current,z)&&(T.current=z,Oe.flushSync(()=>{u(z)}))})},[m,e,n,$,k]);at(()=>{a===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const P=R.useRef(!1);at(()=>(P.current=!0,()=>{P.current=!1}),[]),at(()=>{if(y&&(O.current=y),v&&(C.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const W=R.useMemo(()=>({reference:O,floating:C,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const M=qt(E.floating,f.x),z=qt(E.floating,f.y);return c?{...A,transform:"translate("+M+"px, "+z+"px)",...ie(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:z}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:W,elements:E,floatingStyles:D}),[f,S,W,E,D])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Xt({element:o.current,padding:i}).fn(n):{}:o?Xt({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...mn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Rn=(t,e)=>({...pn(t),options:[t,e]}),On=(t,e)=>({...wn(t),options:[t,e]});var Cn="Arrow",re=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return Y.jsx(Rt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=Cn;var Pn=re;function Sn(t){const[e,n]=R.useState(void 0);return yt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Lt="Popper",[se,Wn]=Ce(Lt),[En,ce]=se(Lt),le=t=>{const{__scopePopper:e,children:n}=t,[o,i]=R.useState(null);return Y.jsx(En,{scope:e,anchor:o,onAnchorChange:i,children:n})};le.displayName=Lt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ce(ae,n),s=R.useRef(null),c=Ut(e,s);return R.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:Y.jsx(Rt.div,{...i,ref:c})});fe.displayName=ae;var Mt="PopperContent",[Dn,Tn]=se(Mt),ue=R.forwardRef((t,e)=>{var $t,kt,Ft,Nt,Ht,Wt;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Mt,n),[g,x]=R.useState(null),b=Ut(e,nt=>x(nt)),[y,v]=R.useState(null),O=Sn(y),C=(O==null?void 0:O.width)??0,T=(O==null?void 0:O.height)??0,F=o+(r!=="center"?"-"+r:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Mn),altBoundary:k},{refs:P,floatingStyles:W,placement:E,isPositioned:D,middlewareData:A}=gn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>ln(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+T,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...S}),l&&bn({...S}),An({...S,apply:({elements:nt,rects:Bt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Bt.reference,ct=nt.floating.style;ct.setProperty("--radix-popper-available-width",`${ve}px`),ct.setProperty("--radix-popper-available-height",`${be}px`),ct.setProperty("--radix-popper-anchor-width",`${Ae}px`),ct.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&On({element:y,padding:c}),$n({arrowWidth:C,arrowHeight:T}),m&&Rn({strategy:"referenceHidden",...S})]}),[M,z]=me(E),st=Pe(p);yt(()=>{D&&(st==null||st())},[D,st]);const he=($t=A.arrow)==null?void 0:$t.x,ge=(kt=A.arrow)==null?void 0:kt.y,we=((Ft=A.arrow)==null?void 0:Ft.centerOffset)!==0,[xe,ye]=R.useState();return yt(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:D?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(Nt=A.transformOrigin)==null?void 0:Nt.x,(Ht=A.transformOrigin)==null?void 0:Ht.y].join(" "),...((Wt=A.hide)==null?void 0:Wt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Dn,{scope:n,placedSide:M,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:Y.jsx(Rt.div,{"data-side":M,"data-align":z,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Mt;var de="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(de,o),s=Ln[r.placedSide];return Y.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:Y.jsx(Pn,{...i,ref:n,style:{...i.style,display:"block"}})})});pe.displayName=de;function Mn(t){return t!==null}var $n=t=>({name:"transformOrigin",options:t,fn(e){var w,g,x;const{placement:n,rects:o,middlewareData:i}=e,s=((w=i.arrow)==null?void 0:w.centerOffset)!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(((g=i.arrow)==null?void 0:g.x)??0)+c/2,d=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Bn=le,_n=fe,zn=ue,jn=pe;export{_n as A,zn as C,Bn as R,jn as a,Wn as c};
|
|
1
|
+
import{r as R}from"./index-Cb9e4tly.js";import{r as Oe}from"./index-BPrLDK9Y.js";import{f as Rt,j as yt,c as Ce,u as Ut,k as Pe}from"./PortalElementProvider-DidBkzFe.js";import{j as Y}from"./jsx-runtime-BTJTZTIL.js";const Se=["top","right","bottom","left"],U=Math.min,N=Math.max,ft=Math.round,lt=Math.floor,j=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function vt(t,e,n){return N(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Ot(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Pt(t){return Ot(Z(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=tt(t),i=Pt(t),r=Ct(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ut(s)),[s,ut(s)]}function Le(t){const e=ut(t);return[bt(t),e,bt(e)]}function bt(t){return t.replace(/start|end/g,e=>De[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=tt(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(bt)))),r}function ut(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zt(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function dt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function _t(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Pt(e),c=Ct(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=_t(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:u}=_t(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:i,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=X(e,t),p=Zt(d),w=c[m?u==="floating"?"reference":"floating":u],g=dt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},v=dt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=Zt(f),m={x:n,y:o},d=Pt(i),p=Ct(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-m[d]-r.floating[p],v=m[d]-r.reference[d],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=O?O[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(O)))&&(C=c.floating[b]||r.floating[p]);const T=y/2-v/2,F=C/2-h[p]/2-1,L=U(u[g],F),$=U(u[x],F),k=L,S=C-h[p]-$,P=C/2-h[p]/2+T,W=vt(k,P,S),E=!l.arrow&&tt(i)!=null&&P!==W&&r.reference[p]/2-(P<k?L:$)-h[p]/2<0,D=E?P<k?P-k:P-S:0;return{[d]:m[d]+D,data:{[d]:W,centerOffset:P-W-D,...E&&{alignmentOffset:D}},reset:E}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),x=Z(c),b=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ut(c)]:Le(c)),O=p!=="none";!m&&O&&v.push(...$e(c,h,p,y));const C=[c,...v],T=await ot(e,w),F=[];let L=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&F.push(T[g]),u){const P=Te(i,s,y);F.push(T[P[0]],T[P[1]])}if(L=[...L,{placement:i,overflows:F}],!F.every(P=>P<=0)){var $,k;const P=((($=r.flip)==null?void 0:$.index)||0)+1,W=C[P];if(W)return{data:{index:P,overflows:L},reset:{placement:W}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(O){const M=Z(A.placement);return M===x||M==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(M=>M>0).reduce((M,z)=>M+z,0)]).sort((A,M)=>A[1]-M[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function zt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await ot(e,{...i,elementContext:"reference"}),s=zt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const r=await ot(e,{...i,altBoundary:!0}),s=zt(r,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}};async function Be(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=tt(n),l=Z(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},ze=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=X(t,e),a={x:n,y:o},f=await ot(e,l),u=Z(q(i)),m=Ot(u);let d=a[m],p=a[u];if(r){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=vt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=vt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:r,[u]:s}}}}}},je=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),m=Ot(u);let d=f[m],p=f[u];const h=X(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=r.reference[m]-r.floating[b]+w.mainAxis,v=r.reference[m]+r.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=["top","left"].includes(q(i)),v=r.reference[u]-r.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),O=r.reference[u]+r.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>O&&(p=O)}return{[m]:d,[u]:p}}}},Ve=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await ot(e,a),u=q(i),m=tt(i),d=Z(i)==="y",{width:p,height:h}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=U(h-f[w],x),v=U(p-f[g],b),O=!e.middlewareData.shift;let C=y,T=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(T=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(C=x),O&&!m){const L=N(f.left,0),$=N(f.right,0),k=N(f.top,0),S=N(f.bottom,0);d?T=p-2*(L!==0||$!==0?L+$:N(f.left,f.right)):C=h-2*(k!==0||S!==0?k+S:N(f.top,f.bottom))}await l({...e,availableWidth:T,availableHeight:C});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function I(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return mt()?t instanceof Node||t instanceof H(t).Node:!1}function B(t){return mt()?t instanceof Element||t instanceof H(t).Element:!1}function V(t){return mt()?t instanceof HTMLElement||t instanceof H(t).HTMLElement:!1}function Vt(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof H(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(et(t))}function ht(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=B(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ye(t){let e=K(t);for(;V(e)&&!Q(e);){if(St(e))return e;if(ht(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Q(t){return["html","body","#document"].includes(et(t))}function _(t){return H(t).getComputedStyle(t)}function gt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vt(t)&&t.host||I(t);return Vt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&rt(e)?e:Gt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Gt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=H(i);if(r){const c=At(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?it(c):[])}return e.concat(i,it(i,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=_(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Dt(t){return B(t)?t:t.contextElement}function J(t){const e=Dt(t);if(!V(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Jt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=j(0);function Qt(t){const e=H(t);return!Et()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==H(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Dt(t);let s=j(1);e&&(o?B(o)&&(s=J(o)):s=J(t));const c=qe(r,n,o)?Qt(r):j(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const m=H(r),d=o&&B(o)?H(o):o;let p=m,h=At(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=_(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=H(h),h=At(p)}}return dt({width:f,height:u,x:l,y:a})}function Tt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(I(t)).left+n}function te(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Tt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=I(o),c=e?ht(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const f=j(0),u=V(o);if((u||!u&&!r)&&((et(o)!=="body"||rt(s))&&(l=gt(o)),V(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!r?te(s,l,!0):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=I(t),n=gt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Tt(t);const c=-n.scrollTop;return _(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=H(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Et();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=V(t)?J(t):j(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function It(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(I(t));else if(B(e))o=Je(e,n);else{const i=Qt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dt(o)}function ee(t,e){const n=K(t);return n===e||!B(n)||Q(n)?!1:_(n).position==="fixed"||ee(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>B(c)&&et(c)!=="body"),i=null;const r=_(t).position==="fixed";let s=r?K(t):t;for(;B(s)&&!Q(s);){const c=_(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=It(e,f,i);return a.top=N(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=N(u.left,a.left),a},It(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function nn(t,e,n){const o=V(e),i=I(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);if(o||!o&&!r)if((et(e)!=="body"||rt(i))&&(c=gt(e)),o){const m=G(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else i&&(l.x=Tt(i));const a=i&&!o&&!r?te(i,c):j(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,y:u,width:s.width,height:s.height}}function wt(t){return _(t).position==="static"}function Yt(t,e){if(!V(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=H(t);if(ht(t))return n;if(!V(t)){let i=K(t);for(;i&&!Q(i);){if(B(i)&&!wt(i))return i;i=K(i)}return n}let o=Yt(t,e);for(;o&&Ie(o)&&wt(o);)o=Yt(o,e);return o&&Q(o)&&wt(o)&&!St(o)?n:o||Ye(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return _(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:I,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:J,isElement:B,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=I(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=lt(u),h=lt(i.clientWidth-(f+m)),w=lt(i.clientHeight-(u+d)),g=lt(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:N(0,U(1,l))||1};let y=!0;function v(O){const C=O[0].intersectionRatio;if(C!==l){if(!y)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Dt(t),f=i||r?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=ze,un=He,dn=Ve,pn=We,Xt=Ne,mn=je,hn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var at=typeof document<"u"?R.useLayoutEffect:R.useEffect;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!pt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!pt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ie(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function qt(t,e){const n=ie(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return at(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);pt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==O.current&&(O.current=A,h(A))},[]),b=R.useCallback(A=>{A!==C.current&&(C.current=A,g(A))},[]),y=r||p,v=s||w,O=R.useRef(null),C=R.useRef(null),T=R.useRef(f),F=l!=null,L=xt(l),$=xt(i),k=xt(a),S=R.useCallback(()=>{if(!O.current||!C.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),hn(O.current,C.current,A).then(M=>{const z={...M,isPositioned:k.current!==!1};P.current&&!pt(T.current,z)&&(T.current=z,Oe.flushSync(()=>{u(z)}))})},[m,e,n,$,k]);at(()=>{a===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const P=R.useRef(!1);at(()=>(P.current=!0,()=>{P.current=!1}),[]),at(()=>{if(y&&(O.current=y),v&&(C.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const W=R.useMemo(()=>({reference:O,floating:C,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const M=qt(E.floating,f.x),z=qt(E.floating,f.y);return c?{...A,transform:"translate("+M+"px, "+z+"px)",...ie(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:z}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:W,elements:E,floatingStyles:D}),[f,S,W,E,D])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Xt({element:o.current,padding:i}).fn(n):{}:o?Xt({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...mn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Rn=(t,e)=>({...pn(t),options:[t,e]}),On=(t,e)=>({...wn(t),options:[t,e]});var Cn="Arrow",re=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return Y.jsx(Rt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=Cn;var Pn=re;function Sn(t){const[e,n]=R.useState(void 0);return yt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Lt="Popper",[se,Wn]=Ce(Lt),[En,ce]=se(Lt),le=t=>{const{__scopePopper:e,children:n}=t,[o,i]=R.useState(null);return Y.jsx(En,{scope:e,anchor:o,onAnchorChange:i,children:n})};le.displayName=Lt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ce(ae,n),s=R.useRef(null),c=Ut(e,s);return R.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:Y.jsx(Rt.div,{...i,ref:c})});fe.displayName=ae;var Mt="PopperContent",[Dn,Tn]=se(Mt),ue=R.forwardRef((t,e)=>{var $t,kt,Ft,Nt,Ht,Wt;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Mt,n),[g,x]=R.useState(null),b=Ut(e,nt=>x(nt)),[y,v]=R.useState(null),O=Sn(y),C=(O==null?void 0:O.width)??0,T=(O==null?void 0:O.height)??0,F=o+(r!=="center"?"-"+r:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Mn),altBoundary:k},{refs:P,floatingStyles:W,placement:E,isPositioned:D,middlewareData:A}=gn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>ln(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+T,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...S}),l&&bn({...S}),An({...S,apply:({elements:nt,rects:Bt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Bt.reference,ct=nt.floating.style;ct.setProperty("--radix-popper-available-width",`${ve}px`),ct.setProperty("--radix-popper-available-height",`${be}px`),ct.setProperty("--radix-popper-anchor-width",`${Ae}px`),ct.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&On({element:y,padding:c}),$n({arrowWidth:C,arrowHeight:T}),m&&Rn({strategy:"referenceHidden",...S})]}),[M,z]=me(E),st=Pe(p);yt(()=>{D&&(st==null||st())},[D,st]);const he=($t=A.arrow)==null?void 0:$t.x,ge=(kt=A.arrow)==null?void 0:kt.y,we=((Ft=A.arrow)==null?void 0:Ft.centerOffset)!==0,[xe,ye]=R.useState();return yt(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:D?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(Nt=A.transformOrigin)==null?void 0:Nt.x,(Ht=A.transformOrigin)==null?void 0:Ht.y].join(" "),...((Wt=A.hide)==null?void 0:Wt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Dn,{scope:n,placedSide:M,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:Y.jsx(Rt.div,{"data-side":M,"data-align":z,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Mt;var de="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(de,o),s=Ln[r.placedSide];return Y.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:Y.jsx(Pn,{...i,ref:n,style:{...i.style,display:"block"}})})});pe.displayName=de;function Mn(t){return t!==null}var $n=t=>({name:"transformOrigin",options:t,fn(e){var w,g,x;const{placement:n,rects:o,middlewareData:i}=e,s=((w=i.arrow)==null?void 0:w.centerOffset)!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(((g=i.arrow)==null?void 0:g.x)??0)+c/2,d=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Bn=le,_n=fe,zn=ue,jn=pe;export{_n as A,zn as C,Bn as R,jn as a,Wn as c};
|