@reapit/elements 5.0.0-beta.60 → 5.0.0-beta.62
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/js/{anchor-button-iRZRDpiJ.js → anchor-button-BDdDbqRF.js} +1 -1
- package/dist/js/{anchor-button-BLkN4e95.cjs → anchor-button-qUpKG6px.cjs} +1 -1
- package/dist/js/anchor-positioning-BE1BAJzc.js +210 -0
- package/dist/js/anchor-positioning-DGfgb1OU.cjs +59 -0
- package/dist/js/{app-switcher-L5BwviDO.cjs → app-switcher-BVWKLNBP.cjs} +1 -1
- package/dist/js/{app-switcher-BxNAiD3Q.js → app-switcher-DgZcEQS0.js} +3 -3
- package/dist/js/at-a-glance-Dk4sZwAl.js +330 -0
- package/dist/js/at-a-glance-Xj0li1Dm.cjs +1 -0
- package/dist/js/autocomplete-BbOHe_2t.js +58 -0
- package/dist/js/autocomplete-D0vKABmX.cjs +1 -0
- package/dist/js/autocomplete-control-Ddah11Qw.js +43 -0
- package/dist/js/autocomplete-control-IlAuj9Gg.cjs +1 -0
- package/dist/js/{badge-CNv_SHOf.cjs → badge-DZ7zeLug.cjs} +1 -1
- package/dist/js/{badge-C4eMkitq.js → badge-ntRw2gnO.js} +1 -1
- package/dist/js/{bottom-bar-mNVkH8h_.cjs → bottom-bar-BaunqLTn.cjs} +1 -1
- package/dist/js/{bottom-bar-DswNNvwU.js → bottom-bar-BgqRBSgu.js} +1 -1
- package/dist/js/{button-Cv5pNws2.cjs → button-Ccwmxlgv.cjs} +1 -1
- package/dist/js/{button-BzRPgU1z.js → button-DB4XETG9.js} +1 -1
- package/dist/js/{button-base-B_Ks3sJk.js → button-base-BcnVjgNa.js} +14 -14
- package/dist/js/button-base-tw0zLUCC.cjs +1 -0
- package/dist/js/checkbox-control-BX5tvR42.js +23 -0
- package/dist/js/checkbox-control-DV_psN4F.cjs +1 -0
- package/dist/js/checkbox-group-control-O_wPnLhn.js +80 -0
- package/dist/js/checkbox-group-control-STqRmURg.cjs +1 -0
- package/dist/js/chip-group-66bqmP7S.cjs +1 -0
- package/dist/js/chip-group-Bbc7ODc9.js +55 -0
- package/dist/js/chip-select-control-DAEVXXLk.cjs +1 -0
- package/dist/js/chip-select-control-DXaemJHi.js +38 -0
- package/dist/js/combobox-DmzxFDJp.cjs +1 -0
- package/dist/js/combobox-vYU1IEFA.js +690 -0
- package/dist/js/core/app-switcher.cjs +1 -1
- package/dist/js/core/app-switcher.js +1 -1
- package/dist/js/core/at-a-glance.cjs +1 -0
- package/dist/js/core/at-a-glance.js +26 -0
- package/dist/js/core/autocomplete-control.cjs +1 -0
- package/dist/js/core/autocomplete-control.js +4 -0
- package/dist/js/core/autocomplete.cjs +1 -0
- package/dist/js/core/autocomplete.js +6 -0
- package/dist/js/core/badge.cjs +1 -1
- package/dist/js/core/badge.js +1 -1
- package/dist/js/core/bottom-bar.cjs +1 -1
- package/dist/js/core/bottom-bar.js +1 -1
- package/dist/js/core/button.cjs +1 -1
- package/dist/js/core/button.js +3 -3
- package/dist/js/core/checkbox-control.cjs +1 -1
- package/dist/js/core/checkbox-control.js +1 -1
- package/dist/js/core/checkbox-group-control.cjs +1 -1
- package/dist/js/core/checkbox-group-control.js +1 -1
- package/dist/js/core/chip-group.cjs +1 -1
- package/dist/js/core/chip-group.js +1 -1
- package/dist/js/core/chip-select-control.cjs +1 -1
- package/dist/js/core/chip-select-control.js +1 -1
- package/dist/js/core/combobox.cjs +1 -0
- package/dist/js/core/combobox.js +60 -0
- package/dist/js/core/compact-select.cjs +1 -0
- package/dist/js/core/compact-select.js +68 -0
- package/dist/js/core/date-time-control.cjs +1 -1
- package/dist/js/core/date-time-control.js +1 -1
- package/dist/js/core/date-time-input.cjs +1 -1
- package/dist/js/core/date-time-input.js +1 -1
- package/dist/js/core/dialog.cjs +1 -1
- package/dist/js/core/dialog.js +1 -1
- package/dist/js/core/drawer.cjs +1 -1
- package/dist/js/core/drawer.js +1 -1
- package/dist/js/core/empty-data.cjs +1 -1
- package/dist/js/core/empty-data.js +1 -1
- package/dist/js/core/features.cjs +1 -1
- package/dist/js/core/features.js +1 -1
- package/dist/js/core/menu.cjs +1 -1
- package/dist/js/core/menu.js +1 -1
- package/dist/js/core/pagination.cjs +1 -1
- package/dist/js/core/pagination.js +1 -1
- package/dist/js/core/radio-group-control.cjs +1 -1
- package/dist/js/core/radio-group-control.js +1 -1
- package/dist/js/core/search-input.cjs +1 -1
- package/dist/js/core/search-input.js +3 -2
- package/dist/js/core/select-control.cjs +1 -0
- package/dist/js/core/select-control.js +4 -0
- package/dist/js/core/select-native-control.cjs +1 -0
- package/dist/js/core/select-native-control.js +4 -0
- package/dist/js/core/select.cjs +1 -0
- package/dist/js/core/select.js +6 -0
- package/dist/js/core/side-bar.cjs +1 -1
- package/dist/js/core/side-bar.js +1 -1
- package/dist/js/core/split-button.cjs +1 -1
- package/dist/js/core/split-button.js +1 -1
- package/dist/js/core/table.cjs +1 -1
- package/dist/js/core/table.js +1 -1
- package/dist/js/core/text-control.cjs +1 -1
- package/dist/js/core/text-control.js +1 -1
- package/dist/js/core/text-input.cjs +1 -1
- package/dist/js/core/text-input.js +1 -1
- package/dist/js/core/textarea-control.cjs +1 -1
- package/dist/js/core/textarea-control.js +1 -1
- package/dist/js/core/textarea.cjs +1 -1
- package/dist/js/core/textarea.js +3 -3
- package/dist/js/core/tooltip.cjs +1 -1
- package/dist/js/core/tooltip.js +1 -1
- package/dist/js/core/top-bar.cjs +1 -1
- package/dist/js/core/top-bar.js +1 -1
- package/dist/js/css-anchor-positioning-fn-BAjj14xc.cjs +17 -0
- package/dist/js/{css-anchor-positioning-fn-8Er8T2lM.js → css-anchor-positioning-fn-CoDEvwLG.js} +3596 -3520
- package/dist/js/date-time-control-B7ijIShP.cjs +1 -0
- package/dist/js/date-time-control-BQ6exDEj.js +35 -0
- package/dist/js/{date-time-input-BgdO3sO3.cjs → date-time-input-COXb8cVD.cjs} +1 -1
- package/dist/js/{date-time-input-CxVYHXK5.js → date-time-input-O4mVL-UI.js} +3 -3
- package/dist/js/deprecated/modal.cjs +1 -1
- package/dist/js/deprecated/modal.js +1 -1
- package/dist/js/deprecated/select.cjs +1 -1
- package/dist/js/deprecated/select.js +3 -3
- package/dist/js/{dialog-Bs2HHt0X.cjs → dialog-CIcqgltv.cjs} +1 -1
- package/dist/js/{dialog-D3zoVqua.js → dialog-GJqo4qVv.js} +3 -3
- package/dist/js/{drawer-wWfUva0i.cjs → drawer-ClnTbHbU.cjs} +1 -1
- package/dist/js/{drawer-BBFY72o1.js → drawer-zFOSlbq5.js} +73 -61
- package/dist/js/{empty-data-Bx8e2yeJ.cjs → empty-data-C3H4ZIXX.cjs} +1 -1
- package/dist/js/{empty-data-B3XeEPry.js → empty-data-jmAfUItf.js} +3 -3
- package/dist/js/{features-BhveqBlv.js → features-CrKtIrzO.js} +1 -1
- package/dist/js/{features-CJpKBH5H.cjs → features-kOnpc8sr.cjs} +1 -1
- package/dist/js/handle-arrow-navigation-CKkGc2A5.cjs +1 -0
- package/dist/js/handle-arrow-navigation-r7GKm-no.js +33 -0
- package/dist/js/icons/buy.cjs +1 -1
- package/dist/js/icons/buy.js +1 -1
- package/dist/js/icons/calendar-user.cjs +1 -1
- package/dist/js/icons/calendar-user.js +1 -1
- package/dist/js/icons/checkbox-disabled.cjs +1 -0
- package/dist/js/icons/checkbox-disabled.js +6 -0
- package/dist/js/icons/clear.cjs +1 -0
- package/dist/js/icons/clear.js +6 -0
- package/dist/js/icons/email-disabled.cjs +1 -1
- package/dist/js/icons/email-disabled.js +2 -2
- package/dist/js/icons/euro.cjs +1 -1
- package/dist/js/icons/euro.js +1 -1
- package/dist/js/icons/expand.cjs +1 -1
- package/dist/js/icons/expand.js +1 -1
- package/dist/js/icons/favourite.cjs +1 -1
- package/dist/js/icons/favourite.js +1 -1
- package/dist/js/icons/keyboard.cjs +1 -1
- package/dist/js/icons/keyboard.js +1 -1
- package/dist/js/icons/location-alt.cjs +1 -1
- package/dist/js/icons/location-alt.js +1 -1
- package/dist/js/icons/location-outline.cjs +1 -0
- package/dist/js/icons/location-outline.js +6 -0
- package/dist/js/icons/lock.cjs +1 -1
- package/dist/js/icons/lock.js +3 -3
- package/dist/js/icons/menu-collapse.cjs +1 -1
- package/dist/js/icons/menu-collapse.js +1 -1
- package/dist/js/icons/menu-expand.cjs +1 -1
- package/dist/js/icons/menu-expand.js +1 -1
- package/dist/js/icons/message-alt.cjs +1 -1
- package/dist/js/icons/message-alt.js +1 -1
- package/dist/js/icons/note.cjs +1 -1
- package/dist/js/icons/note.js +1 -1
- package/dist/js/icons/pound.cjs +1 -1
- package/dist/js/icons/pound.js +1 -1
- package/dist/js/icons/printer.cjs +1 -0
- package/dist/js/icons/printer.js +6 -0
- package/dist/js/icons/priority-low.cjs +1 -1
- package/dist/js/icons/priority-low.js +1 -1
- package/dist/js/icons/radio-disabled.cjs +1 -0
- package/dist/js/icons/radio-disabled.js +6 -0
- package/dist/js/icons/restore.cjs +1 -1
- package/dist/js/icons/restore.js +1 -1
- package/dist/js/icons/send.cjs +1 -1
- package/dist/js/icons/send.js +2 -2
- package/dist/js/icons/settings-alt.cjs +1 -1
- package/dist/js/icons/settings-alt.js +1 -1
- package/dist/js/icons/share.cjs +1 -1
- package/dist/js/icons/share.js +1 -1
- package/dist/js/icons/skip.cjs +1 -0
- package/dist/js/icons/skip.js +6 -0
- package/dist/js/icons/social-facebook.cjs +1 -0
- package/dist/js/icons/social-facebook.js +6 -0
- package/dist/js/icons/social-instagram.cjs +1 -0
- package/dist/js/icons/social-instagram.js +6 -0
- package/dist/js/icons/social-linkedin.cjs +1 -0
- package/dist/js/icons/social-linkedin.js +6 -0
- package/dist/js/icons/social-x.cjs +1 -0
- package/dist/js/icons/social-x.js +6 -0
- package/dist/js/icons/social-youtube.cjs +1 -0
- package/dist/js/icons/social-youtube.js +6 -0
- package/dist/js/icons/tag.cjs +1 -1
- package/dist/js/icons/tag.js +1 -1
- package/dist/js/icons/user-outline.cjs +1 -0
- package/dist/js/icons/user-outline.js +6 -0
- package/dist/js/icons/video.cjs +1 -1
- package/dist/js/icons/video.js +1 -1
- package/dist/js/icons/walking.cjs +1 -1
- package/dist/js/icons/walking.js +1 -1
- package/dist/js/icons/web.cjs +1 -0
- package/dist/js/icons/web.js +6 -0
- package/dist/js/index.cjs +1 -1
- package/dist/js/index.js +1496 -1369
- package/dist/js/lab/search-input.cjs +1 -1
- package/dist/js/lab/search-input.js +2 -2
- package/dist/js/lab/select-custom.cjs +1 -1
- package/dist/js/lab/select-custom.js +6 -6
- package/dist/js/listbox-WqmeAQ3c.cjs +1 -0
- package/dist/js/listbox-z26X2kKG.js +335 -0
- package/dist/js/match-media-BhV24ZxC.js +7 -0
- package/dist/js/match-media-CbN_J5GN.cjs +1 -0
- package/dist/js/{menu-CBeq-0T4.js → menu-C1vGEA92.js} +54 -47
- package/dist/js/menu-GxHkUuv-.cjs +1 -0
- package/dist/js/{modal-DKlfnpvX.js → modal-DHGiIVEh.js} +25 -25
- package/dist/js/modal-DtRra0Y8.cjs +1 -0
- package/dist/js/{pagination-C1lz9wwq.js → pagination-AKajPRWK.js} +1 -1
- package/dist/js/{pagination-Bn3xDaYg.cjs → pagination-BsjPCoTa.cjs} +1 -1
- package/dist/js/popover-CH-6Mc2I.js +85 -0
- package/dist/js/popover-CUAeSUdU.cjs +1 -0
- package/dist/js/radio-group-control--oDDh_mt.cjs +1 -0
- package/dist/js/radio-group-control-CIi2IzvJ.js +115 -0
- package/dist/js/search-input-P7uo0pIh.js +79 -0
- package/dist/js/search-input-iGgUwfw7.cjs +1 -0
- package/dist/js/select-BcO4bwIu.cjs +1 -0
- package/dist/js/select-CUsOgdsQ.js +53 -0
- package/dist/js/select-CsCYHJSX.cjs +1 -0
- package/dist/js/select-GBZSXtmy.js +22 -0
- package/dist/js/select-control-DtOt-YWz.cjs +1 -0
- package/dist/js/select-control-k3vB6VlD.js +48 -0
- package/dist/js/select-native-control-D754Vcty.js +35 -0
- package/dist/js/select-native-control-lF3GUKy8.cjs +1 -0
- package/dist/js/{side-bar-CVYEUZUt.js → side-bar-BIh8Gmz0.js} +46 -45
- package/dist/js/side-bar-wQGhHxQE.cjs +1 -0
- package/dist/js/{split-button-DmGaQtfM.cjs → split-button-Bbbg58PG.cjs} +1 -1
- package/dist/js/{split-button-BgTcuFGf.js → split-button-Bx14hvm7.js} +3 -3
- package/dist/js/style.css +1 -1
- package/dist/js/table-BVWjirIs.cjs +1 -0
- package/dist/js/{table-Bl_O1Vba.js → table-Hr5aWZeT.js} +2 -2
- package/dist/js/text-control-BuUv9ihH.js +35 -0
- package/dist/js/text-control-DJsYUo8t.cjs +1 -0
- package/dist/js/text-input-Ce-v6n3v.cjs +1 -0
- package/dist/js/{text-input-CkB96hQ9.js → text-input-DAMUZr1s.js} +33 -31
- package/dist/js/textarea-DCg3FZLn.cjs +1 -0
- package/dist/js/textarea-control-BUMon2es.cjs +1 -0
- package/dist/js/textarea-control-CQI7qpuH.js +35 -0
- package/dist/js/{textarea-B57gvWjo.js → textarea-hvAcHN7k.js} +13 -13
- package/dist/js/{tooltip-B0jGN026.js → tooltip-AKtYPwAT.js} +1 -1
- package/dist/js/{tooltip-DVVnlf_8.cjs → tooltip-CXN3ioZt.cjs} +1 -1
- package/dist/js/{top-bar-DNjBwRD0.cjs → top-bar-CJerQrcH.cjs} +1 -1
- package/dist/js/{top-bar-Dv1_vO38.js → top-bar-n7rICsQe.js} +2 -2
- package/dist/js/use-match-media-3UiitAUD.js +20 -0
- package/dist/js/use-match-media-BfoAxEfC.cjs +1 -0
- package/dist/js/use-mutation-observer-BBugqUeF.cjs +1 -0
- package/dist/js/use-mutation-observer-hOVGFYZQ.js +19 -0
- package/dist/js/utils/anchor-positioning.cjs +1 -0
- package/dist/js/utils/anchor-positioning.js +7 -0
- package/dist/js/utils/keyboard-navigation.cjs +1 -1
- package/dist/js/utils/keyboard-navigation.js +4 -33
- package/dist/js/utils/listbox.cjs +1 -0
- package/dist/js/utils/listbox.js +24 -0
- package/dist/js/utils/match-media.cjs +1 -1
- package/dist/js/utils/match-media.js +4 -3
- package/dist/js/utils/mutation-observer.cjs +1 -0
- package/dist/js/utils/mutation-observer.js +4 -0
- package/dist/js/utils/popover.cjs +1 -1
- package/dist/js/utils/popover.js +8 -4
- package/dist/types/core/at-a-glance/__story__/build-cards.d.ts +12 -0
- package/dist/types/core/at-a-glance/__story__/build-cards.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/__tests__/at-a-glance.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/__tests__/at-a-glance.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/__tests__/anchor-card.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/anchor-card/__tests__/anchor-card.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.d.ts +33 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.stories.d.ts +44 -0
- package/dist/types/core/at-a-glance/anchor-card/anchor-card.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/index.d.ts +2 -0
- package/dist/types/core/at-a-glance/anchor-card/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/anchor-card/styles.d.ts +2 -0
- package/dist/types/core/at-a-glance/anchor-card/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/at-a-glance.d.ts +30 -0
- package/dist/types/core/at-a-glance/at-a-glance.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/at-a-glance.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/at-a-glance.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/at-a-glance.stories.d.ts +57 -0
- package/dist/types/core/at-a-glance/at-a-glance.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/button-card/__tests__/button-card.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/button-card/__tests__/button-card.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/button-card/button-card.d.ts +31 -0
- package/dist/types/core/at-a-glance/button-card/button-card.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/button-card/button-card.stories.d.ts +39 -0
- package/dist/types/core/at-a-glance/button-card/button-card.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/button-card/index.d.ts +2 -0
- package/dist/types/core/at-a-glance/button-card/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/button-card/styles.d.ts +2 -0
- package/dist/types/core/at-a-glance/button-card/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/__tests__/card.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/card/__tests__/card.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/card.d.ts +29 -0
- package/dist/types/core/at-a-glance/card/card.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/card.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/card/card.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/card.stories.d.ts +36 -0
- package/dist/types/core/at-a-glance/card/card.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/index.d.ts +3 -0
- package/dist/types/core/at-a-glance/card/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/card/styles.d.ts +22 -0
- package/dist/types/core/at-a-glance/card/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/calculate-scroll-state.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/calculate-scroll-state.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/carousel.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/carousel.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/scroll-container-left.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/scroll-container-left.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/scroll-container-right.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/scroll-container-right.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/use-scroll-observer.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/__tests__/use-scroll-observer.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/calculate-scroll-state.d.ts +28 -0
- package/dist/types/core/at-a-glance/carousel/calculate-scroll-state.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/carousel.d.ts +21 -0
- package/dist/types/core/at-a-glance/carousel/carousel.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/carousel.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/carousel/carousel.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/carousel.stories.d.ts +25 -0
- package/dist/types/core/at-a-glance/carousel/carousel.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/index.d.ts +4 -0
- package/dist/types/core/at-a-glance/carousel/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/scroll-container-left.d.ts +19 -0
- package/dist/types/core/at-a-glance/carousel/scroll-container-left.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/scroll-container-right.d.ts +19 -0
- package/dist/types/core/at-a-glance/carousel/scroll-container-right.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/styles.d.ts +4 -0
- package/dist/types/core/at-a-glance/carousel/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/use-scroll-observer.d.ts +35 -0
- package/dist/types/core/at-a-glance/carousel/use-scroll-observer.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/__tests__/grid-item.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/grid/__tests__/grid-item.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/__tests__/grid.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/grid/__tests__/grid.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/grid-item.d.ts +28 -0
- package/dist/types/core/at-a-glance/grid/grid-item.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/grid.d.ts +39 -0
- package/dist/types/core/at-a-glance/grid/grid.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/grid.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/grid/grid.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/grid.stories.d.ts +32 -0
- package/dist/types/core/at-a-glance/grid/grid.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/index.d.ts +4 -0
- package/dist/types/core/at-a-glance/grid/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/grid/styles.d.ts +3 -0
- package/dist/types/core/at-a-glance/grid/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/__tests__/header.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/header/__tests__/header.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/header.d.ts +35 -0
- package/dist/types/core/at-a-glance/header/header.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/header.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/header/header.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/header.stories.d.ts +34 -0
- package/dist/types/core/at-a-glance/header/header.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/index.d.ts +3 -0
- package/dist/types/core/at-a-glance/header/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/header/styles.d.ts +3 -0
- package/dist/types/core/at-a-glance/header/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/index.d.ts +9 -0
- package/dist/types/core/at-a-glance/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/__tests__/listbox-option.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/listbox/__tests__/listbox-option.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/__tests__/listbox.test.d.ts +2 -0
- package/dist/types/core/at-a-glance/listbox/__tests__/listbox.test.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/index.d.ts +3 -0
- package/dist/types/core/at-a-glance/listbox/index.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/listbox-option.d.ts +38 -0
- package/dist/types/core/at-a-glance/listbox/listbox-option.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/listbox-option.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/listbox/listbox-option.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/listbox.d.ts +23 -0
- package/dist/types/core/at-a-glance/listbox/listbox.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/listbox.stories.d.ts +39 -0
- package/dist/types/core/at-a-glance/listbox/listbox.stories.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/listbox/styles.d.ts +2 -0
- package/dist/types/core/at-a-glance/listbox/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/styles.d.ts +2 -0
- package/dist/types/core/at-a-glance/styles.d.ts.map +1 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete-button.test.d.ts +2 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete-button.test.d.ts.map +1 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete-popup.test.d.ts +2 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete-popup.test.d.ts.map +1 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete.test.d.ts +2 -0
- package/dist/types/core/autocomplete/__tests__/autocomplete.test.d.ts.map +1 -0
- package/dist/types/core/autocomplete/autocomplete-button.d.ts +19 -0
- package/dist/types/core/autocomplete/autocomplete-button.d.ts.map +1 -0
- package/dist/types/core/autocomplete/autocomplete-popup.d.ts +19 -0
- package/dist/types/core/autocomplete/autocomplete-popup.d.ts.map +1 -0
- package/dist/types/core/autocomplete/autocomplete.d.ts +55 -0
- package/dist/types/core/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/types/core/autocomplete/autocomplete.stories.d.ts +603 -0
- package/dist/types/core/autocomplete/autocomplete.stories.d.ts.map +1 -0
- package/dist/types/core/autocomplete/index.d.ts +4 -0
- package/dist/types/core/autocomplete/index.d.ts.map +1 -0
- package/dist/types/core/autocomplete-control/__tests__/autocomplete-control.test.d.ts +2 -0
- package/dist/types/core/autocomplete-control/__tests__/autocomplete-control.test.d.ts.map +1 -0
- package/dist/types/core/autocomplete-control/autocomplete-control.d.ts +24 -0
- package/dist/types/core/autocomplete-control/autocomplete-control.d.ts.map +1 -0
- package/dist/types/core/autocomplete-control/autocomplete-control.stories.d.ts +70 -0
- package/dist/types/core/autocomplete-control/autocomplete-control.stories.d.ts.map +1 -0
- package/dist/types/core/autocomplete-control/index.d.ts +2 -0
- package/dist/types/core/autocomplete-control/index.d.ts.map +1 -0
- package/dist/types/core/button/button-base.d.ts +2 -2
- package/dist/types/core/button/button-base.d.ts.map +1 -1
- package/dist/types/core/checkbox-group-control/checkbox-group-control.d.ts.map +1 -1
- package/dist/types/core/chip-group/chip-group-item.d.ts +6 -4
- package/dist/types/core/chip-group/chip-group-item.d.ts.map +1 -1
- package/dist/types/core/chip-group/chip-group.d.ts +18 -2
- package/dist/types/core/chip-group/chip-group.d.ts.map +1 -1
- package/dist/types/core/chip-group/chip-group.stories.d.ts +15 -2
- package/dist/types/core/chip-group/chip-group.stories.d.ts.map +1 -1
- package/dist/types/core/chip-group/context.d.ts +21 -0
- package/dist/types/core/chip-group/context.d.ts.map +1 -0
- package/dist/types/core/chip-select/context.d.ts.map +1 -1
- package/dist/types/core/chip-select-control/chip-select-control.d.ts.map +1 -1
- package/dist/types/core/combobox/__tests__/combobox-popup.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/combobox-popup.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/combobox.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/combobox.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/get-listbox-id.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/get-listbox-id.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/get-popup-id.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/get-popup-id.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/use-button.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/use-button.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/use-has-selection.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/use-has-selection.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/use-selected-options.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/use-selected-options.test.d.ts.map +1 -0
- package/dist/types/core/combobox/__tests__/use-state.test.d.ts +2 -0
- package/dist/types/core/combobox/__tests__/use-state.test.d.ts.map +1 -0
- package/dist/types/core/combobox/button/__tests__/button.test.d.ts +2 -0
- package/dist/types/core/combobox/button/__tests__/button.test.d.ts.map +1 -0
- package/dist/types/core/combobox/button/__tests__/clear-button.test.d.ts +2 -0
- package/dist/types/core/combobox/button/__tests__/clear-button.test.d.ts.map +1 -0
- package/dist/types/core/combobox/button/__tests__/open-popup-button.test.d.ts +2 -0
- package/dist/types/core/combobox/button/__tests__/open-popup-button.test.d.ts.map +1 -0
- package/dist/types/core/combobox/button/button.d.ts +46 -0
- package/dist/types/core/combobox/button/button.d.ts.map +1 -0
- package/dist/types/core/combobox/button/button.stories.d.ts +344 -0
- package/dist/types/core/combobox/button/button.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/button/clear-button.d.ts +15 -0
- package/dist/types/core/combobox/button/clear-button.d.ts.map +1 -0
- package/dist/types/core/combobox/button/index.d.ts +5 -0
- package/dist/types/core/combobox/button/index.d.ts.map +1 -0
- package/dist/types/core/combobox/button/open-popup-button.d.ts +15 -0
- package/dist/types/core/combobox/button/open-popup-button.d.ts.map +1 -0
- package/dist/types/core/combobox/button/styles.d.ts +6 -0
- package/dist/types/core/combobox/button/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/combobox-popup.d.ts +22 -0
- package/dist/types/core/combobox/combobox-popup.d.ts.map +1 -0
- package/dist/types/core/combobox/combobox.d.ts +116 -0
- package/dist/types/core/combobox/combobox.d.ts.map +1 -0
- package/dist/types/core/combobox/combobox.stories.d.ts +49 -0
- package/dist/types/core/combobox/combobox.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/context.d.ts +36 -0
- package/dist/types/core/combobox/context.d.ts.map +1 -0
- package/dist/types/core/combobox/default-options-context.d.ts +14 -0
- package/dist/types/core/combobox/default-options-context.d.ts.map +1 -0
- package/dist/types/core/combobox/get-listbox-id.d.ts +7 -0
- package/dist/types/core/combobox/get-listbox-id.d.ts.map +1 -0
- package/dist/types/core/combobox/get-popup-id.d.ts +7 -0
- package/dist/types/core/combobox/get-popup-id.d.ts.map +1 -0
- package/dist/types/core/combobox/index.d.ts +16 -0
- package/dist/types/core/combobox/index.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox-option.test.d.ts +2 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox-option.test.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox-placeholder.test.d.ts +2 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox-placeholder.test.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox.test.d.ts +2 -0
- package/dist/types/core/combobox/listbox/__tests__/listbox.test.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/index.d.ts +6 -0
- package/dist/types/core/combobox/listbox/index.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/listbox-optgroup.d.ts +14 -0
- package/dist/types/core/combobox/listbox/listbox-optgroup.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/listbox-option.d.ts +21 -0
- package/dist/types/core/combobox/listbox/listbox-option.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/listbox-placeholder.d.ts +18 -0
- package/dist/types/core/combobox/listbox/listbox-placeholder.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/listbox.d.ts +38 -0
- package/dist/types/core/combobox/listbox/listbox.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/listbox.stories.d.ts +596 -0
- package/dist/types/core/combobox/listbox/listbox.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/listbox/styles.d.ts +3 -0
- package/dist/types/core/combobox/listbox/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/__tests__/optgroup.test.d.ts +2 -0
- package/dist/types/core/combobox/optgroup/__tests__/optgroup.test.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/index.d.ts +3 -0
- package/dist/types/core/combobox/optgroup/index.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/optgroup.d.ts +18 -0
- package/dist/types/core/combobox/optgroup/optgroup.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/optgroup.figma.d.ts +2 -0
- package/dist/types/core/combobox/optgroup/optgroup.figma.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/optgroup.stories.d.ts +38 -0
- package/dist/types/core/combobox/optgroup/optgroup.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/optgroup/styles.d.ts +3 -0
- package/dist/types/core/combobox/optgroup/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/option/__tests__/get-option-label.test.d.ts +2 -0
- package/dist/types/core/combobox/option/__tests__/get-option-label.test.d.ts.map +1 -0
- package/dist/types/core/combobox/option/__tests__/option-supplementary-info.test.d.ts +2 -0
- package/dist/types/core/combobox/option/__tests__/option-supplementary-info.test.d.ts.map +1 -0
- package/dist/types/core/combobox/option/__tests__/option.test.d.ts +2 -0
- package/dist/types/core/combobox/option/__tests__/option.test.d.ts.map +1 -0
- package/dist/types/core/combobox/option/get-option-label.d.ts +5 -0
- package/dist/types/core/combobox/option/get-option-label.d.ts.map +1 -0
- package/dist/types/core/combobox/option/index.d.ts +5 -0
- package/dist/types/core/combobox/option/index.d.ts.map +1 -0
- package/dist/types/core/combobox/option/option-additional-info.d.ts +19 -0
- package/dist/types/core/combobox/option/option-additional-info.d.ts.map +1 -0
- package/dist/types/core/combobox/option/option-additional-info.figma.d.ts +2 -0
- package/dist/types/core/combobox/option/option-additional-info.figma.d.ts.map +1 -0
- package/dist/types/core/combobox/option/option.d.ts +29 -0
- package/dist/types/core/combobox/option/option.d.ts.map +1 -0
- package/dist/types/core/combobox/option/option.figma.d.ts +2 -0
- package/dist/types/core/combobox/option/option.figma.d.ts.map +1 -0
- package/dist/types/core/combobox/option/option.stories.d.ts +68 -0
- package/dist/types/core/combobox/option/option.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/option/styles.d.ts +9 -0
- package/dist/types/core/combobox/option/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/FakeToggleEvent.d.ts +10 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/FakeToggleEvent.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/close-button.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/close-button.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/close-popup.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/close-popup.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/event-handlers.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/event-handlers.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/open-popup.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/open-popup.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/popup-dialog.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/popup-dialog.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/use-popup-observer.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/use-popup-observer.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/use-popup-state.test.d.ts +2 -0
- package/dist/types/core/combobox/popup-dialog/__tests__/use-popup-state.test.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/close-button.d.ts +8 -0
- package/dist/types/core/combobox/popup-dialog/close-button.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/close-popup.d.ts +7 -0
- package/dist/types/core/combobox/popup-dialog/close-popup.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/context.d.ts +23 -0
- package/dist/types/core/combobox/popup-dialog/context.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts +73 -0
- package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/index.d.ts +9 -0
- package/dist/types/core/combobox/popup-dialog/index.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/open-popup.d.ts +7 -0
- package/dist/types/core/combobox/popup-dialog/open-popup.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts +64 -0
- package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/popup-dialog.stories.d.ts +83 -0
- package/dist/types/core/combobox/popup-dialog/popup-dialog.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/styles.d.ts +4 -0
- package/dist/types/core/combobox/popup-dialog/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/use-popup-observer.d.ts +7 -0
- package/dist/types/core/combobox/popup-dialog/use-popup-observer.d.ts.map +1 -0
- package/dist/types/core/combobox/popup-dialog/use-popup-state.d.ts +7 -0
- package/dist/types/core/combobox/popup-dialog/use-popup-state.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/__tests__/determine-search-input-variant.test.d.ts +2 -0
- package/dist/types/core/combobox/search-input/__tests__/determine-search-input-variant.test.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/__tests__/search-input.test.d.ts +2 -0
- package/dist/types/core/combobox/search-input/__tests__/search-input.test.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/determine-search-input-variant.d.ts +49 -0
- package/dist/types/core/combobox/search-input/determine-search-input-variant.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/index.d.ts +2 -0
- package/dist/types/core/combobox/search-input/index.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/search-input.d.ts +37 -0
- package/dist/types/core/combobox/search-input/search-input.d.ts.map +1 -0
- package/dist/types/core/combobox/search-input/search-input.stories.d.ts +620 -0
- package/dist/types/core/combobox/search-input/search-input.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/selected-content/index.d.ts +2 -0
- package/dist/types/core/combobox/selected-content/index.d.ts.map +1 -0
- package/dist/types/core/combobox/selected-content/selected-content.d.ts +20 -0
- package/dist/types/core/combobox/selected-content/selected-content.d.ts.map +1 -0
- package/dist/types/core/combobox/selected-content/selected-content.stories.d.ts +564 -0
- package/dist/types/core/combobox/selected-content/selected-content.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/__tests__/selection-chip.test.d.ts +2 -0
- package/dist/types/core/combobox/selection-chips/__tests__/selection-chip.test.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/__tests__/selection-chips.test.d.ts +2 -0
- package/dist/types/core/combobox/selection-chips/__tests__/selection-chips.test.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/context.d.ts +17 -0
- package/dist/types/core/combobox/selection-chips/context.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/index.d.ts +2 -0
- package/dist/types/core/combobox/selection-chips/index.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/selection-chip.d.ts +15 -0
- package/dist/types/core/combobox/selection-chips/selection-chip.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/selection-chips.d.ts +31 -0
- package/dist/types/core/combobox/selection-chips/selection-chips.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/selection-chips.stories.d.ts +588 -0
- package/dist/types/core/combobox/selection-chips/selection-chips.stories.d.ts.map +1 -0
- package/dist/types/core/combobox/selection-chips/styles.d.ts +2 -0
- package/dist/types/core/combobox/selection-chips/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/styles.d.ts +9 -0
- package/dist/types/core/combobox/styles.d.ts.map +1 -0
- package/dist/types/core/combobox/use-button.d.ts +61 -0
- package/dist/types/core/combobox/use-button.d.ts.map +1 -0
- package/dist/types/core/combobox/use-has-selection.d.ts +17 -0
- package/dist/types/core/combobox/use-has-selection.d.ts.map +1 -0
- package/dist/types/core/combobox/use-selected-options.d.ts +28 -0
- package/dist/types/core/combobox/use-selected-options.d.ts.map +1 -0
- package/dist/types/core/combobox/use-state.d.ts +7 -0
- package/dist/types/core/combobox/use-state.d.ts.map +1 -0
- package/dist/types/core/compact-select/__tests__/compact-select-button.test.d.ts +2 -0
- package/dist/types/core/compact-select/__tests__/compact-select-button.test.d.ts.map +1 -0
- package/dist/types/core/compact-select/__tests__/compact-select-popup.test.d.ts +2 -0
- package/dist/types/core/compact-select/__tests__/compact-select-popup.test.d.ts.map +1 -0
- package/dist/types/core/compact-select/__tests__/compact-select.test.d.ts +2 -0
- package/dist/types/core/compact-select/__tests__/compact-select.test.d.ts.map +1 -0
- package/dist/types/core/compact-select/compact-select-button.d.ts +15 -0
- package/dist/types/core/compact-select/compact-select-button.d.ts.map +1 -0
- package/dist/types/core/compact-select/compact-select-popup.d.ts +12 -0
- package/dist/types/core/compact-select/compact-select-popup.d.ts.map +1 -0
- package/dist/types/core/compact-select/compact-select.d.ts +43 -0
- package/dist/types/core/compact-select/compact-select.d.ts.map +1 -0
- package/dist/types/core/compact-select/compact-select.stories.d.ts +32 -0
- package/dist/types/core/compact-select/compact-select.stories.d.ts.map +1 -0
- package/dist/types/core/compact-select/index.d.ts +3 -0
- package/dist/types/core/compact-select/index.d.ts.map +1 -0
- package/dist/types/core/compact-select/styles.d.ts +4 -0
- package/dist/types/core/compact-select/styles.d.ts.map +1 -0
- package/dist/types/core/date-time-control/date-time-control.d.ts.map +1 -1
- package/dist/types/core/drawer/drawer.d.ts +1 -1
- package/dist/types/core/drawer/drawer.d.ts.map +1 -1
- package/dist/types/core/filter-bar/applied-filters/applied-filters.stories.d.ts.map +1 -1
- package/dist/types/core/filter-bar/filter-bar.stories.d.ts.map +1 -1
- package/dist/types/core/form-control/error-text/styles.d.ts.map +1 -1
- package/dist/types/core/form-control/help-text/styles.d.ts.map +1 -1
- package/dist/types/core/form-control/label/styles.d.ts.map +1 -1
- package/dist/types/core/form-control/styles.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +7 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/menu/group/group.d.ts.map +1 -1
- package/dist/types/core/menu/use-close-menu-on-click.d.ts.map +1 -1
- package/dist/types/core/radio-group-control/radio-group-control.d.ts.map +1 -1
- package/dist/types/core/search-input/__tests__/clear-search-input.test.d.ts +2 -0
- package/dist/types/core/search-input/__tests__/clear-search-input.test.d.ts.map +1 -0
- package/dist/types/core/search-input/clear-button/clear-button.d.ts +3 -1
- package/dist/types/core/search-input/clear-button/clear-button.d.ts.map +1 -1
- package/dist/types/core/search-input/clear-search-input.d.ts +16 -0
- package/dist/types/core/search-input/clear-search-input.d.ts.map +1 -0
- package/dist/types/core/search-input/index.d.ts +1 -0
- package/dist/types/core/search-input/index.d.ts.map +1 -1
- package/dist/types/core/search-input/search-input.d.ts +4 -2
- package/dist/types/core/search-input/search-input.d.ts.map +1 -1
- package/dist/types/core/search-input/search-input.stories.d.ts +4 -0
- package/dist/types/core/search-input/search-input.stories.d.ts.map +1 -1
- package/dist/types/core/select/__tests__/select-button.test.d.ts +2 -0
- package/dist/types/core/select/__tests__/select-button.test.d.ts.map +1 -0
- package/dist/types/core/select/__tests__/select-popup.test.d.ts +2 -0
- package/dist/types/core/select/__tests__/select-popup.test.d.ts.map +1 -0
- package/dist/types/core/select/__tests__/select.test.d.ts +2 -0
- package/dist/types/core/select/__tests__/select.test.d.ts.map +1 -0
- package/dist/types/core/select/index.d.ts +4 -0
- package/dist/types/core/select/index.d.ts.map +1 -0
- package/dist/types/core/select/select-button.d.ts +18 -0
- package/dist/types/core/select/select-button.d.ts.map +1 -0
- package/dist/types/core/select/select-popup.d.ts +12 -0
- package/dist/types/core/select/select-popup.d.ts.map +1 -0
- package/dist/types/core/select/select.d.ts +48 -0
- package/dist/types/core/select/select.d.ts.map +1 -0
- package/dist/types/core/select/select.stories.d.ts +599 -0
- package/dist/types/core/select/select.stories.d.ts.map +1 -0
- package/dist/types/core/select-control/__tests__/select-control.test.d.ts +2 -0
- package/dist/types/core/select-control/__tests__/select-control.test.d.ts.map +1 -0
- package/dist/types/core/select-control/index.d.ts +2 -0
- package/dist/types/core/select-control/index.d.ts.map +1 -0
- package/dist/types/core/select-control/select-control.d.ts +24 -0
- package/dist/types/core/select-control/select-control.d.ts.map +1 -0
- package/dist/types/core/select-control/select-control.stories.d.ts +71 -0
- package/dist/types/core/select-control/select-control.stories.d.ts.map +1 -0
- package/dist/types/core/select-native-control/__tests__/select-native-control.test.d.ts +2 -0
- package/dist/types/core/select-native-control/__tests__/select-native-control.test.d.ts.map +1 -0
- package/dist/types/core/select-native-control/index.d.ts +2 -0
- package/dist/types/core/select-native-control/index.d.ts.map +1 -0
- package/dist/types/core/select-native-control/select-native-control.d.ts +21 -0
- package/dist/types/core/select-native-control/select-native-control.d.ts.map +1 -0
- package/dist/types/core/select-native-control/select-native-control.figma.d.ts +2 -0
- package/dist/types/core/select-native-control/select-native-control.figma.d.ts.map +1 -0
- package/dist/types/core/select-native-control/select-native-control.stories.d.ts +76 -0
- package/dist/types/core/select-native-control/select-native-control.stories.d.ts.map +1 -0
- package/dist/types/core/table/table.d.ts.map +1 -1
- package/dist/types/core/text/styles.d.ts.map +1 -1
- package/dist/types/core/text/text.d.ts +6 -3
- package/dist/types/core/text/text.d.ts.map +1 -1
- package/dist/types/core/text-control/text-control.d.ts.map +1 -1
- package/dist/types/core/text-input/styles.d.ts.map +1 -1
- package/dist/types/core/text-input/text-input.d.ts +2 -0
- package/dist/types/core/text-input/text-input.d.ts.map +1 -1
- package/dist/types/core/textarea/styles.d.ts +6 -6
- package/dist/types/core/textarea/styles.d.ts.map +1 -1
- package/dist/types/core/textarea-control/textarea-control.d.ts.map +1 -1
- package/dist/types/deprecated/button/button.stories.d.ts +1 -1
- package/dist/types/deprecated/select/__styles__/index.d.ts +1 -1
- package/dist/types/deprecated/select/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/select/select.d.ts +3 -3
- package/dist/types/deprecated/select/select.d.ts.map +1 -1
- package/dist/types/deprecated/select/select.stories.d.ts +1 -1
- package/dist/types/icons/checkbox-disabled.d.ts +5 -0
- package/dist/types/icons/checkbox-disabled.d.ts.map +1 -0
- package/dist/types/icons/clear.d.ts +5 -0
- package/dist/types/icons/clear.d.ts.map +1 -0
- package/dist/types/icons/index.d.ts +13 -0
- package/dist/types/icons/index.d.ts.map +1 -1
- package/dist/types/icons/location-outline.d.ts +5 -0
- package/dist/types/icons/location-outline.d.ts.map +1 -0
- package/dist/types/icons/printer.d.ts +5 -0
- package/dist/types/icons/printer.d.ts.map +1 -0
- package/dist/types/icons/radio-disabled.d.ts +5 -0
- package/dist/types/icons/radio-disabled.d.ts.map +1 -0
- package/dist/types/icons/skip.d.ts +5 -0
- package/dist/types/icons/skip.d.ts.map +1 -0
- package/dist/types/icons/social-facebook.d.ts +5 -0
- package/dist/types/icons/social-facebook.d.ts.map +1 -0
- package/dist/types/icons/social-instagram.d.ts +5 -0
- package/dist/types/icons/social-instagram.d.ts.map +1 -0
- package/dist/types/icons/social-linkedin.d.ts +5 -0
- package/dist/types/icons/social-linkedin.d.ts.map +1 -0
- package/dist/types/icons/social-x.d.ts +5 -0
- package/dist/types/icons/social-x.d.ts.map +1 -0
- package/dist/types/icons/social-youtube.d.ts +5 -0
- package/dist/types/icons/social-youtube.d.ts.map +1 -0
- package/dist/types/icons/user-outline.d.ts +5 -0
- package/dist/types/icons/user-outline.d.ts.map +1 -0
- package/dist/types/icons/web.d.ts +5 -0
- package/dist/types/icons/web.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/__tests__/build-anchor-positioning-css.test.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/__tests__/map-inset-position-to-css.test.d.ts +2 -0
- package/dist/types/utils/anchor-positioning/__tests__/map-inset-position-to-css.test.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/__tests__/map-placement-to-css.test.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts +19 -0
- package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/anchor-positioning.stories.d.ts +58 -0
- package/dist/types/utils/anchor-positioning/anchor-positioning.stories.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts +40 -0
- package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/index.d.ts +4 -0
- package/dist/types/utils/anchor-positioning/index.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/map-inset-position-to-css.d.ts +32 -0
- package/dist/types/utils/anchor-positioning/map-inset-position-to-css.d.ts.map +1 -0
- package/dist/types/utils/anchor-positioning/map-placement-to-css.d.ts +20 -0
- package/dist/types/utils/anchor-positioning/map-placement-to-css.d.ts.map +1 -0
- package/dist/types/utils/listbox/__tests__/get-select-id.test.d.ts +2 -0
- package/dist/types/utils/listbox/__tests__/get-select-id.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/__tests__/listbox.test.d.ts +2 -0
- package/dist/types/utils/listbox/__tests__/listbox.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/__tests__/use-listbox-selection-observer.test.d.ts +2 -0
- package/dist/types/utils/listbox/__tests__/use-listbox-selection-observer.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/__tests__/use-listbox-state.test.d.ts +2 -0
- package/dist/types/utils/listbox/__tests__/use-listbox-state.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/context.d.ts +26 -0
- package/dist/types/utils/listbox/context.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/clear-listbox-value.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/clear-listbox-value.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/common.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/common.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/get-listbox-selected-options.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/get-listbox-selected-options.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/get-listbox-value.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/get-listbox-value.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/is-listbox-option-selected.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/is-listbox-option-selected.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/set-listbox-option-selected-state.test.d.ts +2 -0
- package/dist/types/utils/listbox/dom-helpers/__tests__/set-listbox-option-selected-state.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/clear-listbox-value.d.ts +25 -0
- package/dist/types/utils/listbox/dom-helpers/clear-listbox-value.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/common.d.ts +28 -0
- package/dist/types/utils/listbox/dom-helpers/common.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/get-listbox-selected-options.d.ts +41 -0
- package/dist/types/utils/listbox/dom-helpers/get-listbox-selected-options.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/get-listbox-value.d.ts +14 -0
- package/dist/types/utils/listbox/dom-helpers/get-listbox-value.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/index.d.ts +7 -0
- package/dist/types/utils/listbox/dom-helpers/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/is-listbox-option-selected.d.ts +37 -0
- package/dist/types/utils/listbox/dom-helpers/is-listbox-option-selected.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/selectors.d.ts +23 -0
- package/dist/types/utils/listbox/dom-helpers/selectors.d.ts.map +1 -0
- package/dist/types/utils/listbox/dom-helpers/set-listbox-option-selected-state.d.ts +27 -0
- package/dist/types/utils/listbox/dom-helpers/set-listbox-option-selected-state.d.ts.map +1 -0
- package/dist/types/utils/listbox/get-select-id.d.ts +2 -0
- package/dist/types/utils/listbox/get-select-id.d.ts.map +1 -0
- package/dist/types/utils/listbox/index.d.ts +11 -0
- package/dist/types/utils/listbox/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/listbox.d.ts +141 -0
- package/dist/types/utils/listbox/listbox.d.ts.map +1 -0
- package/dist/types/utils/listbox/listbox.stories.d.ts +92 -0
- package/dist/types/utils/listbox/listbox.stories.d.ts.map +1 -0
- package/dist/types/utils/listbox/optgroup/__tests__/optgroup.test.d.ts +2 -0
- package/dist/types/utils/listbox/optgroup/__tests__/optgroup.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/optgroup/index.d.ts +2 -0
- package/dist/types/utils/listbox/optgroup/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/optgroup/optgroup.d.ts +33 -0
- package/dist/types/utils/listbox/optgroup/optgroup.d.ts.map +1 -0
- package/dist/types/utils/listbox/option/__tests__/option.test.d.ts +2 -0
- package/dist/types/utils/listbox/option/__tests__/option.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/option/__tests__/update-option-selection.test.d.ts +2 -0
- package/dist/types/utils/listbox/option/__tests__/update-option-selection.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/option/index.d.ts +2 -0
- package/dist/types/utils/listbox/option/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/option/option.d.ts +39 -0
- package/dist/types/utils/listbox/option/option.d.ts.map +1 -0
- package/dist/types/utils/listbox/option/update-option-selection.d.ts +24 -0
- package/dist/types/utils/listbox/option/update-option-selection.d.ts.map +1 -0
- package/dist/types/utils/listbox/render-context.d.ts +16 -0
- package/dist/types/utils/listbox/render-context.d.ts.map +1 -0
- package/dist/types/utils/listbox/select/__tests__/select.test.d.ts +2 -0
- package/dist/types/utils/listbox/select/__tests__/select.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/select/index.d.ts +3 -0
- package/dist/types/utils/listbox/select/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/select/select.d.ts +28 -0
- package/dist/types/utils/listbox/select/select.d.ts.map +1 -0
- package/dist/types/utils/listbox/select/styles.d.ts +2 -0
- package/dist/types/utils/listbox/select/styles.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/handle-blur-event.test.d.ts +2 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/handle-blur-event.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/handle-focus-event.test.d.ts +2 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/handle-focus-event.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/use-focus-management.test.d.ts +2 -0
- package/dist/types/utils/listbox/use-focus-management/__tests__/use-focus-management.test.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/handle-blur-event.d.ts +18 -0
- package/dist/types/utils/listbox/use-focus-management/handle-blur-event.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/handle-focus-event.d.ts +24 -0
- package/dist/types/utils/listbox/use-focus-management/handle-focus-event.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/index.d.ts +2 -0
- package/dist/types/utils/listbox/use-focus-management/index.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-focus-management/use-focus-management.d.ts +31 -0
- package/dist/types/utils/listbox/use-focus-management/use-focus-management.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-listbox-selection-observer.d.ts +16 -0
- package/dist/types/utils/listbox/use-listbox-selection-observer.d.ts.map +1 -0
- package/dist/types/utils/listbox/use-listbox-state.d.ts +30 -0
- package/dist/types/utils/listbox/use-listbox-state.d.ts.map +1 -0
- package/dist/types/utils/mutation-observer/__tests__/use-mutation-observer.test.d.ts +2 -0
- package/dist/types/utils/mutation-observer/__tests__/use-mutation-observer.test.d.ts.map +1 -0
- package/dist/types/utils/mutation-observer/index.d.ts +2 -0
- package/dist/types/utils/mutation-observer/index.d.ts.map +1 -0
- package/dist/types/utils/mutation-observer/use-mutation-observer.d.ts +32 -0
- package/dist/types/utils/mutation-observer/use-mutation-observer.d.ts.map +1 -0
- package/dist/types/utils/popover/get-closest-popover-element.d.ts +2 -2
- package/dist/types/utils/popover/get-popover-trigger-props.d.ts +6 -8
- package/dist/types/utils/popover/get-popover-trigger-props.d.ts.map +1 -1
- package/dist/types/utils/popover/index.d.ts +2 -1
- package/dist/types/utils/popover/index.d.ts.map +1 -1
- package/dist/types/utils/popover/popover.d.ts +25 -55
- package/dist/types/utils/popover/popover.d.ts.map +1 -1
- package/dist/types/utils/popover/popover.stories.d.ts +19 -2
- package/dist/types/utils/popover/popover.stories.d.ts.map +1 -1
- package/package.json +32 -30
- package/dist/js/button-base-D8LjBAOF.cjs +0 -1
- package/dist/js/checkbox-control-CQnfBvph.cjs +0 -1
- package/dist/js/checkbox-control-DLIP3r9I.js +0 -22
- package/dist/js/checkbox-group-control-BOda9k19.js +0 -69
- package/dist/js/checkbox-group-control-DZaXmETO.cjs +0 -1
- package/dist/js/chip-group-CMOQNhYo.cjs +0 -1
- package/dist/js/chip-group-_1Ujkr17.js +0 -25
- package/dist/js/chip-select-control-AgupgCE2.js +0 -28
- package/dist/js/chip-select-control-D-xOl5kM.cjs +0 -1
- package/dist/js/css-anchor-positioning-fn-DmupQmpv.cjs +0 -17
- package/dist/js/date-time-control-DVnFGgtf.cjs +0 -1
- package/dist/js/date-time-control-DmolK-aY.js +0 -24
- package/dist/js/match-media-BEA-ogMA.cjs +0 -1
- package/dist/js/match-media-DGLjaFrm.js +0 -24
- package/dist/js/menu-Dnh4NX8q.cjs +0 -1
- package/dist/js/modal-CVFm4Zkj.cjs +0 -1
- package/dist/js/popover-Y-ha5ifI.cjs +0 -59
- package/dist/js/popover-bBQLwPua.js +0 -188
- package/dist/js/radio-group-control-BzTfznjG.cjs +0 -1
- package/dist/js/radio-group-control-Dasa9-6L.js +0 -104
- package/dist/js/search-input-BE3DpSLl.cjs +0 -1
- package/dist/js/search-input-DNymJ1pF.js +0 -59
- package/dist/js/select-CL3U-vtY.cjs +0 -1
- package/dist/js/select-ZpW0tfJg.js +0 -22
- package/dist/js/side-bar-Dq4xIMA6.cjs +0 -1
- package/dist/js/table-DMCCX0Sr.cjs +0 -1
- package/dist/js/text-control-B77UKUVG.js +0 -24
- package/dist/js/text-control-CgoKajrV.cjs +0 -1
- package/dist/js/text-input-Blkz7WfX.cjs +0 -1
- package/dist/js/textarea-Cy77oVLX.cjs +0 -1
- package/dist/js/textarea-control-BTEeJJbe.cjs +0 -1
- package/dist/js/textarea-control-DURVkxZM.js +0 -24
- package/dist/types/core/select-native/select-native.figma.d.ts +0 -2
- package/dist/types/core/select-native/select-native.figma.d.ts.map +0 -1
- package/dist/types/utils/popover/__tests__/build-anchor-positioning-css.test.d.ts.map +0 -1
- package/dist/types/utils/popover/__tests__/map-placement-to-css.test.d.ts.map +0 -1
- package/dist/types/utils/popover/build-anchor-positioning-css.d.ts +0 -16
- package/dist/types/utils/popover/build-anchor-positioning-css.d.ts.map +0 -1
- package/dist/types/utils/popover/map-placement-to-css.d.ts +0 -9
- package/dist/types/utils/popover/map-placement-to-css.d.ts.map +0 -1
- /package/dist/types/utils/{popover → anchor-positioning}/__tests__/build-anchor-positioning-css.test.d.ts +0 -0
- /package/dist/types/utils/{popover → anchor-positioning}/__tests__/map-placement-to-css.test.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var go=Object.defineProperty,bo=Object.defineProperties,So=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,Co=Object.prototype.propertyIsEnumerable,An=(t,e,n)=>e in t?go(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,W=(t,e)=>{for(var n in e||(e={}))vo.call(e,n)&&An(t,n,e[n]);if(Tn)for(var n of Tn(e))Co.call(e,n)&&An(t,n,e[n]);return t},G=(t,e)=>bo(t,So(e)),_=(t,e,n)=>new Promise((r,i)=>{var s=a=>{try{c(n.next(a))}catch(o){i(o)}},l=a=>{try{c(n.throw(a))}catch(o){i(o)}},c=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,l);c((n=n.apply(t,e)).next())});const nn=Math.min,Vt=Math.max,xe=Math.round,fe=Math.floor,bt=t=>({x:t,y:t});function xo(t,e){return typeof t=="function"?t(e):t}function wo(t){return W({top:0,right:0,bottom:0,left:0},t)}function Lo(t){return typeof t!="number"?wo(t):{top:t,right:t,bottom:t,left:t}}function we(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Oo(t,e){return _(this,null,function*(){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:a}=t,{boundary:o="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=xo(e,t),d=Lo(p),k=c[f?h==="floating"?"reference":"floating":h],g=we(yield s.getClippingRect({element:(n=yield s.isElement==null?void 0:s.isElement(k))==null||n?k:k.contextElement||(yield s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:o,rootBoundary:u,strategy:a})),y=h==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=yield s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating),x=(yield s.isElement==null?void 0:s.isElement(w))?(yield s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},T=we(s.convertOffsetParentRelativeRectToViewportRelativeRect?yield s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:w,strategy:a}):y);return{top:(g.top-T.top+d.top)/x.y,bottom:(T.bottom-g.bottom+d.bottom)/x.y,left:(g.left-T.left+d.left)/x.x,right:(T.right-g.right+d.right)/x.x}})}function Ee(){return typeof window<"u"}function Kt(t){return Rr(t)?(t.nodeName||"").toLowerCase():"#document"}function it(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(Rr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rr(t){return Ee()?t instanceof Node||t instanceof it(t).Node:!1}function ut(t){return Ee()?t instanceof Element||t instanceof it(t).Element:!1}function St(t){return Ee()?t instanceof HTMLElement||t instanceof it(t).HTMLElement:!1}function _n(t){return!Ee()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof it(t).ShadowRoot}const To=new Set(["inline","contents"]);function ue(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!To.has(i)}const Ao=new Set(["table","td","th"]);function _o(t){return Ao.has(Kt(t))}const Po=[":popover-open",":modal"];function je(t){return Po.some(e=>{try{return t.matches(e)}catch{return!1}})}const Eo=["transform","translate","scale","rotate","perspective"],jo=["transform","translate","scale","rotate","perspective","filter"],Do=["paint","layout","strict","content"];function yn(t){const e=gn(),n=ut(t)?ht(t):t;return Eo.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||jo.some(r=>(n.willChange||"").includes(r))||Do.some(r=>(n.contain||"").includes(r))}function Ro(t){let e=Tt(t);for(;St(e)&&!qt(e);){if(yn(e))return e;if(je(e))return null;e=Tt(e)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Io=new Set(["html","body","#document"]);function qt(t){return Io.has(Kt(t))}function ht(t){return it(t).getComputedStyle(t)}function De(t){return ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(Kt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_n(t)&&t.host||vt(t);return _n(e)?e.host:e}function Ir(t){const e=Tt(t);return qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&ue(e)?e:Ir(e)}function le(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ir(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),l=it(i);if(s){const c=rn(l);return e.concat(l,l.visualViewport||[],ue(i)?i:[],c&&n?le(c):[])}return e.concat(i,le(i,[],n))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Mr(t){const e=ht(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=St(t),s=i?t.offsetWidth:n,l=i?t.offsetHeight:r,c=xe(n)!==s||xe(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function bn(t){return ut(t)?t:t.contextElement}function Ht(t){const e=bn(t);if(!St(e))return bt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Mr(e);let l=(s?xe(n.width):n.width)/r,c=(s?xe(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Mo=bt(0);function Nr(t){const e=it(t);return!gn()||!e.visualViewport?Mo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function No(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==it(t)?!1:e}function Rt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=bn(t);let l=bt(1);e&&(r?ut(r)&&(l=Ht(r)):l=Ht(t));const c=No(s,n,r)?Nr(s):bt(0);let a=(i.left+c.x)/l.x,o=(i.top+c.y)/l.y,u=i.width/l.x,h=i.height/l.y;if(s){const f=it(s),p=r&&ut(r)?it(r):r;let d=f,k=rn(d);for(;k&&r&&p!==d;){const g=Ht(k),y=k.getBoundingClientRect(),w=ht(k),x=y.left+(k.clientLeft+parseFloat(w.paddingLeft))*g.x,T=y.top+(k.clientTop+parseFloat(w.paddingTop))*g.y;a*=g.x,o*=g.y,u*=g.x,h*=g.y,a+=x,o+=T,d=it(k),k=rn(d)}}return we({width:u,height:h,x:a,y:o})}function Re(t,e){const n=De(t).scrollLeft;return e?e.left+n:Rt(vt(t)).left+n}function Fr(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Re(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Fo(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",l=vt(r),c=e?je(e.floating):!1;if(r===l||c&&s)return n;let a={scrollLeft:0,scrollTop:0},o=bt(1);const u=bt(0),h=St(r);if((h||!h&&!s)&&((Kt(r)!=="body"||ue(l))&&(a=De(r)),St(r))){const p=Rt(r);o=Ht(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=l&&!h&&!s?Fr(l,a):bt(0);return{width:n.width*o.x,height:n.height*o.y,x:n.x*o.x-a.scrollLeft*o.x+u.x+f.x,y:n.y*o.y-a.scrollTop*o.y+u.y+f.y}}function zo(t){return Array.from(t.getClientRects())}function $o(t){const e=vt(t),n=De(t),r=t.ownerDocument.body,i=Vt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Vt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Re(t);const c=-n.scrollTop;return ht(r).direction==="rtl"&&(l+=Vt(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Pn=25;function Bo(t,e){const n=it(t),r=vt(t),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,a=0;if(i){s=i.width,l=i.height;const u=gn();(!u||u&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}const o=Re(r);if(o<=0){const u=r.ownerDocument,h=u.body,f=getComputedStyle(h),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,d=Math.abs(r.clientWidth-h.clientWidth-p);d<=Pn&&(s-=d)}else o<=Pn&&(s+=o);return{width:s,height:l,x:c,y:a}}const Wo=new Set(["absolute","fixed"]);function Uo(t,e){const n=Rt(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=St(t)?Ht(t):bt(1),l=t.clientWidth*s.x,c=t.clientHeight*s.y,a=i*s.x,o=r*s.y;return{width:l,height:c,x:a,y:o}}function En(t,e,n){let r;if(e==="viewport")r=Bo(t,n);else if(e==="document")r=$o(vt(t));else if(ut(e))r=Uo(e,n);else{const i=Nr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return we(r)}function zr(t,e){const n=Tt(t);return n===e||!ut(n)||qt(n)?!1:ht(n).position==="fixed"||zr(n,e)}function Vo(t,e){const n=e.get(t);if(n)return n;let r=le(t,[],!1).filter(c=>ut(c)&&Kt(c)!=="body"),i=null;const s=ht(t).position==="fixed";let l=s?Tt(t):t;for(;ut(l)&&!qt(l);){const c=ht(l),a=yn(l);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&i&&Wo.has(i.position)||ue(l)&&!a&&zr(t,l))?r=r.filter(o=>o!==l):i=c,l=Tt(l)}return e.set(t,r),r}function Ho(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?je(e)?[]:Vo(e,this._c):[].concat(n),r],l=s[0],c=s.reduce((a,o)=>{const u=En(e,o,i);return a.top=Vt(u.top,a.top),a.right=nn(u.right,a.right),a.bottom=nn(u.bottom,a.bottom),a.left=Vt(u.left,a.left),a},En(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Qo(t){const{width:e,height:n}=Mr(t);return{width:e,height:n}}function qo(t,e,n){const r=St(e),i=vt(e),s=n==="fixed",l=Rt(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const a=bt(0);function o(){a.x=Re(i)}if(r||!r&&!s)if((Kt(e)!=="body"||ue(i))&&(c=De(e)),r){const p=Rt(e,!0,s,e);a.x=p.x+e.clientLeft,a.y=p.y+e.clientTop}else i&&o();s&&!r&&i&&o();const u=i&&!r&&!s?Fr(i,c):bt(0),h=l.left+c.scrollLeft-a.x-u.x,f=l.top+c.scrollTop-a.y-u.y;return{x:h,y:f,width:l.width,height:l.height}}function Ne(t){return ht(t).position==="static"}function jn(t,e){if(!St(t)||ht(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return vt(t)===n&&(n=n.ownerDocument.body),n}function $r(t,e){const n=it(t);if(je(t))return n;if(!St(t)){let i=Tt(t);for(;i&&!qt(i);){if(ut(i)&&!Ne(i))return i;i=Tt(i)}return n}let r=jn(t,e);for(;r&&_o(r)&&Ne(r);)r=jn(r,e);return r&&qt(r)&&Ne(r)&&!yn(r)?n:r||Ro(t)||n}const Go=function(t){return _(this,null,function*(){const e=this.getOffsetParent||$r,n=this.getDimensions,r=yield n(t.floating);return{reference:qo(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Xo(t){return ht(t).direction==="rtl"}const nt={convertOffsetParentRelativeRectToViewportRelativeRect:Fo,getDocumentElement:vt,getClippingRect:Ho,getOffsetParent:$r,getElementRects:Go,getClientRects:zo,getDimensions:Qo,getScale:Ht,isElement:ut,isRTL:Xo};function Br(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Yo(t,e){let n=null,r;const i=vt(t);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const o=t.getBoundingClientRect(),{left:u,top:h,width:f,height:p}=o;if(c||e(),!f||!p)return;const d=fe(h),k=fe(i.clientWidth-(u+f)),g=fe(i.clientHeight-(h+p)),y=fe(u),w={rootMargin:-d+"px "+-k+"px "+-g+"px "+-y+"px",threshold:Vt(0,nn(1,a))||1};let x=!0;function T(lt){const v=lt[0].intersectionRatio;if(v!==a){if(!x)return l();v?l(!1,v):r=setTimeout(()=>{l(!1,1e-7)},1e3)}v===1&&!Br(o,t.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(T,G(W({},w),{root:i.ownerDocument}))}catch{n=new IntersectionObserver(T,w)}n.observe(t)}return l(!0),s}function sn(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,o=bn(t),u=i||s?[...o?le(o):[],...le(e)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=o&&c?Yo(o,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===o&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(e)})),n()}),o&&!a&&p.observe(o),p.observe(e));let d,k=a?Rt(t):null;a&&g();function g(){const y=Rt(t);k&&!Br(k,y)&&n(),k=y,d=requestAnimationFrame(g)}return n(),()=>{var y;u.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h?.(),(y=p)==null||y.disconnect(),p=null,a&&cancelAnimationFrame(d)}}const Jo=Oo;let Wt=null;class Q{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return Q.createItem(e)}allocateCursor(e,n){let r;return Wt!==null?(r=Wt,Wt=Wt.cursor,r.prev=e,r.next=n,r.cursor=this.cursor):r={prev:e,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Wt,Wt=e}updateCursors(e,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===e&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let r of e){const i=Q.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,e.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(e,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,e.call(n,i.data,i,this)}this.releaseCursor()}reduce(e,n,r=this){let i=this.allocateCursor(null,this.head),s=n,l;for(;i.next!==null;)l=i.next,i.next=l.next,s=e.call(r,s,l.data,l,this);return this.releaseCursor(),s}reduceRight(e,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,l;for(;i.prev!==null;)l=i.prev,i.prev=l.prev,s=e.call(r,s,l.data,l,this);return this.releaseCursor(),s}some(e,n=this){for(let r=this.head;r!==null;r=r.next)if(e.call(n,r.data,r,this))return!0;return!1}map(e,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)r.appendData(e.call(n,i.data,i,this));return r}filter(e,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)e.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(e,n,r=this){if(e===null)return;const i=this.allocateCursor(null,e);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(e,n,r=this){if(e===null)return;const i=this.allocateCursor(e,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Q;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(Q.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Q.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(Q.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(Q.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(Q.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}function Le(t){const e={};for(const n of Object.keys(t)){let r=t[n];r&&(Array.isArray(r)||r instanceof Q?r=r.map(Le):r.constructor===Object&&(r=Le(r))),e[n]=r}return e}const wt=0,m=1,C=2,U=3,D=4,Ct=5,Ko=6,X=7,at=8,O=9,S=10,F=11,L=12,B=13,Ie=14,tt=15,J=16,Z=17,pt=18,Zt=19,ae=20,P=21,b=22,ft=23,Gt=24,Y=25,Zo=0;function rt(t){return t>=48&&t<=57}function Xt(t){return rt(t)||t>=65&&t<=70||t>=97&&t<=102}function Sn(t){return t>=65&&t<=90}function tl(t){return t>=97&&t<=122}function el(t){return Sn(t)||tl(t)}function nl(t){return t>=128}function Oe(t){return el(t)||nl(t)||t===95}function Wr(t){return Oe(t)||rt(t)||t===45}function rl(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function Te(t){return t===10||t===13||t===12}function It(t){return Te(t)||t===32||t===9}function gt(t,e){return!(t!==92||Te(e)||e===Zo)}function Fe(t,e,n){return t===45?Oe(e)||e===45||gt(e,n):Oe(t)?!0:t===92?gt(t,e):!1}function ze(t,e,n){return t===43||t===45?rt(e)?2:e===46&&rt(n)?3:0:t===46?rt(e)?2:0:rt(t)?1:0}function Ur(t){return t===65279||t===65534?1:0}const on=new Array(128),il=128,ge=130,Vr=131,vn=132,Hr=133;for(let t=0;t<on.length;t++)on[t]=It(t)&&ge||rt(t)&&Vr||Oe(t)&&vn||rl(t)&&Hr||t||il;function $e(t){return t<128?on[t]:vn}function Qt(t,e){return e<t.length?t.charCodeAt(e):0}function ln(t,e,n){return n===13&&Qt(t,e+1)===10?2:1}function Qr(t,e,n){let r=t.charCodeAt(e);return Sn(r)&&(r=r|32),r===n}function Ae(t,e,n,r){if(n-e!==r.length||e<0||n>t.length)return!1;for(let i=e;i<n;i++){const s=r.charCodeAt(i-e);let l=t.charCodeAt(i);if(Sn(l)&&(l=l|32),l!==s)return!1}return!0}function sl(t,e){for(;e>=0&&It(t.charCodeAt(e));e--);return e+1}function pe(t,e){for(;e<t.length&&It(t.charCodeAt(e));e++);return e}function Be(t,e){for(;e<t.length&&rt(t.charCodeAt(e));e++);return e}function Yt(t,e){if(e+=2,Xt(Qt(t,e-1))){for(const r=Math.min(t.length,e+5);e<r&&Xt(Qt(t,e));e++);const n=Qt(t,e);It(n)&&(e+=ln(t,e,n))}return e}function de(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!Wr(n)){if(gt(n,Qt(t,e+1))){e=Yt(t,e)-1;continue}break}}return e}function qr(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),rt(n)&&(e=Be(t,e+1),n=t.charCodeAt(e)),n===46&&rt(t.charCodeAt(e+1))&&(e+=2,e=Be(t,e)),Qr(t,e,101)){let r=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(r=1,n=t.charCodeAt(e+2)),rt(n)&&(e=Be(t,e+1+r+1))}return e}function We(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}gt(n,Qt(t,e+1))&&(e=Yt(t,e))}return e}function Gr(t){if(t.length===1&&!Xt(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const Xr=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],ol=16*1024;function _e(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,ol)):t}const Dn=10,ll=12,Rn=13;function In(t){const e=t.source,n=e.length,r=e.length>0?Ur(e.charCodeAt(0)):0,i=_e(t.lines,n),s=_e(t.columns,n);let l=t.startLine,c=t.startColumn;for(let a=r;a<n;a++){const o=e.charCodeAt(a);i[a]=l,s[a]=c++,(o===Dn||o===Rn||o===ll)&&(o===Rn&&a+1<n&&e.charCodeAt(a+1)===Dn&&(a++,i[a]=l,s[a]=c),l++,c=1)}i[n]=l,s[n]=c,t.lines=i,t.columns=s,t.computed=!0}class al{constructor(e,n,r,i){this.setSource(e,n,r,i),this.lines=null,this.columns=null}setSource(e="",n=0,r=1,i=1){this.source=e,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(e,n){return this.computed||In(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,r){return this.computed||In(this),{source:r,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const mt=16777215,kt=24,Mt=new Uint8Array(32);Mt[C]=b;Mt[P]=b;Mt[Zt]=ae;Mt[ft]=Gt;function Mn(t){return Mt[t]!==0}class cl{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const r=e.length,i=_e(this.offsetAndType,e.length+1),s=_e(this.balance,e.length+1);let l=0,c=-1,a=0,o=e.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(e,(u,h,f)=>{const p=l++;if(i[p]=u<<kt|f,c===-1&&(c=h),s[p]=o,u===a){const d=s[o];s[o]=p,o=d,a=Mt[i[d]>>kt]}else Mn(u)&&(o=p,a=Mt[u])}),i[l]=wt<<kt|r,s[l]=l;for(let u=0;u<l;u++){const h=s[u];if(h<=u){const f=s[h];f!==u&&(s[u]=f)}else h>l&&(s[u]=l)}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=l,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>kt:wt}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>kt;if(r!==B&&r!==Y&&e--===0)return r}return wt}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&mt:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>kt;if(r!==B&&r!==Y&&e--===0)return n-this.tokenIndex}return wt}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?Ae(this.source,this.offsetAndType[e-1]&mt,this.offsetAndType[e]&mt,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&mt:this.offsetAndType[this.tokenCount]&mt:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===O&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===O&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&mt,n=this.offsetAndType[n],this.tokenType=n>>kt,this.tokenEnd=n&mt):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>kt,this.tokenEnd=e&mt):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=wt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===B||this.tokenType===Y;)this.next()}skipUntilBalanced(e,n){let r=e,i=0,s=0;t:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<e)break t;switch(s=r>0?this.offsetAndType[r-1]&mt:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break t;case 2:r++;break t;default:Mn(this.offsetAndType[r]>>kt)&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(e){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],l=s&mt,c=s>>kt;r=l,e(c,i,l,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{e[s]={idx:s,type:Xr[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),e}}function Yr(t,e){function n(h){return h<c?t.charCodeAt(h):0}function r(){if(o=qr(t,o),Fe(n(o),n(o+1),n(o+2))){u=L,o=de(t,o);return}if(n(o)===37){u=F,o++;return}u=S}function i(){const h=o;if(o=de(t,o),Ae(t,h,o,"url")&&n(o)===40){if(o=pe(t,o+1),n(o)===34||n(o)===39){u=C,o=h+4;return}l();return}if(n(o)===40){u=C,o++;return}u=m}function s(h){for(h||(h=n(o++)),u=Ct;o<t.length;o++){const f=t.charCodeAt(o);switch($e(f)){case h:o++;return;case ge:if(Te(f)){o+=ln(t,o,f),u=Ko;return}break;case 92:if(o===t.length-1)break;const p=n(o+1);Te(p)?o+=ln(t,o+1,p):gt(f,p)&&(o=Yt(t,o)-1);break}}}function l(){for(u=X,o=pe(t,o);o<t.length;o++){const h=t.charCodeAt(o);switch($e(h)){case 41:o++;return;case ge:if(o=pe(t,o),n(o)===41||o>=t.length){o<t.length&&o++;return}o=We(t,o),u=at;return;case 34:case 39:case 40:case Hr:o=We(t,o),u=at;return;case 92:if(gt(h,n(o+1))){o=Yt(t,o)-1;break}o=We(t,o),u=at;return}}}t=String(t||"");const c=t.length;let a=Ur(n(0)),o=a,u;for(;o<c;){const h=t.charCodeAt(o);switch($e(h)){case ge:u=B,o=pe(t,o+1);break;case 34:s();break;case 35:Wr(n(o+1))||gt(n(o+1),n(o+2))?(u=D,o=de(t,o+1)):(u=O,o++);break;case 39:s();break;case 40:u=P,o++;break;case 41:u=b,o++;break;case 43:ze(h,n(o+1),n(o+2))?r():(u=O,o++);break;case 44:u=pt,o++;break;case 45:ze(h,n(o+1),n(o+2))?r():n(o+1)===45&&n(o+2)===62?(u=tt,o=o+3):Fe(h,n(o+1),n(o+2))?i():(u=O,o++);break;case 46:ze(h,n(o+1),n(o+2))?r():(u=O,o++);break;case 47:n(o+1)===42?(u=Y,o=t.indexOf("*/",o+2),o=o===-1?t.length:o+2):(u=O,o++);break;case 58:u=J,o++;break;case 59:u=Z,o++;break;case 60:n(o+1)===33&&n(o+2)===45&&n(o+3)===45?(u=Ie,o=o+4):(u=O,o++);break;case 64:Fe(n(o+1),n(o+2),n(o+3))?(u=U,o=de(t,o+1)):(u=O,o++);break;case 91:u=Zt,o++;break;case 92:gt(h,n(o+1))?i():(u=O,o++);break;case 93:u=ae,o++;break;case 123:u=ft,o++;break;case 125:u=Gt,o++;break;case Vr:r();break;case vn:i();break;default:u=O,o++}e(u,a,a=o)}}const Nn=45;function ul(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===Nn&&t.charCodeAt(e+1)===Nn}const an=92,Jr=34,hl=39;function Kr(t){const e=t.length,n=t.charCodeAt(0),r=n===Jr||n===hl?1:0,i=r===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let s="";for(let l=r;l<=i;l++){let c=t.charCodeAt(l);if(c===an){if(l===i){l!==e-1&&(s=t.substr(l+1));break}if(c=t.charCodeAt(++l),gt(an,c)){const a=l-1,o=Yt(t,a);l=o-1,s+=Gr(t.substring(a+1,o))}else c===13&&t.charCodeAt(l+1)===10&&l++}else s+=t[l]}return s}function fl(t,e){const n=Jr;let r="",i=!1;for(let s=0;s<t.length;s++){const l=t.charCodeAt(s);if(l===0){r+="�";continue}if(l<=31||l===127){r+="\\"+l.toString(16),i=!0;continue}l===n||l===an?(r+="\\"+t.charAt(s),i=!1):(i&&(Xt(l)||It(l))&&(r+=" "),r+=t.charAt(s),i=!1)}return'"'+r+'"'}const pl=32,cn=92,dl=34,ml=39,kl=40,Zr=41;function yl(t){const e=t.length;let n=4,r=t.charCodeAt(e-1)===Zr?e-2:e-1,i="";for(;n<r&&It(t.charCodeAt(n));)n++;for(;n<r&&It(t.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let l=t.charCodeAt(s);if(l===cn){if(s===r){s!==e-1&&(i=t.substr(s+1));break}if(l=t.charCodeAt(++s),gt(cn,l)){const c=s-1,a=Yt(t,c);s=a-1,i+=Gr(t.substring(c+1,a))}else l===13&&t.charCodeAt(s+1)===10&&s++}else i+=t[s]}return i}function gl(t){let e="",n=!1;for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(i===0){e+="�";continue}if(i<=31||i===127){e+="\\"+i.toString(16),n=!0;continue}i===pl||i===cn||i===dl||i===ml||i===kl||i===Zr?(e+="\\"+t.charAt(r),n=!1):(n&&Xt(i)&&(e+=" "),e+=t.charAt(r),n=!1)}return"url("+e+")"}const{hasOwnProperty:Cn}=Object.prototype,te=function(){};function Fn(t){return typeof t=="function"?t:te}function zn(t,e){return function(n,r,i){n.type===e&&t.call(this,n,r,i)}}function bl(t,e){const n=e.structure,r=[];for(const i in n){if(Cn.call(n,i)===!1)continue;let s=n[i];const l={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const c of s)c===null?l.nullable=!0:typeof c=="string"?l.type="node":Array.isArray(c)&&(l.type="list");l.type&&r.push(l)}return r.length?{context:e.walkContext,fields:r}:null}function Sl(t){const e={};for(const n in t.node)if(Cn.call(t.node,n)){const r=t.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=bl(n,r)}return e}function $n(t,e){const n=t.fields.slice(),r=t.context,i=typeof r=="string";return e&&n.reverse(),function(s,l,c,a){let o;i&&(o=l[r],l[r]=s);for(const u of n){const h=s[u.name];if(!u.nullable||h){if(u.type==="list"){if(e?h.reduceRight(a,!1):h.reduce(a,!1))return!0}else if(c(h))return!0}}i&&(l[r]=o)}}function Bn({StyleSheet:t,Atrule:e,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:r},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:r},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:r,DeclarationList:i}}}function vl(t){const e=Sl(t),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const o in e)Cn.call(e,o)&&e[o]!==null&&(n[o]=$n(e[o],!1),r[o]=$n(e[o],!0));const l=Bn(n),c=Bn(r),a=function(o,u){function h(y,w,x){const T=f.call(g,y,w,x);return T===i?!0:T===s?!1:!!(d.hasOwnProperty(y.type)&&d[y.type](y,g,h,k)||p.call(g,y,w,x)===i)}let f=te,p=te,d=n,k=(y,w,x,T)=>y||h(w,x,T);const g={break:i,skip:s,root:o,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")f=u;else if(u&&(f=Fn(u.enter),p=Fn(u.leave),u.reverse&&(d=r),u.visit)){if(l.hasOwnProperty(u.visit))d=u.reverse?c[u.visit]:l[u.visit];else if(!e.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");f=zn(f,u.visit),p=zn(p,u.visit)}if(f===te&&p===te)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(o)};return a.break=i,a.skip=s,a.find=function(o,u){let h=null;return a(o,function(f,p,d){if(u.call(this,f,p,d))return h=f,i}),h},a.findLast=function(o,u){let h=null;return a(o,{reverse:!0,enter(f,p,d){if(u.call(this,f,p,d))return h=f,i}}),h},a.findAll=function(o,u){const h=[];return a(o,function(f,p,d){u.call(this,f,p,d)&&h.push(f)}),h},a}const yt=43,et=45,be=110,Pt=!0,Cl=!1;function Se(t,e){let n=this.tokenStart+t;const r=this.charCodeAt(n);for((r===yt||r===et)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)rt(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ut(t){return Se.call(this,0,t)}function xt(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case be:n="N is expected";break;case et:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function Ue(){let t=0,e=0,n=this.tokenType;for(;n===B||n===Y;)n=this.lookupType(++t);if(n!==S)if(this.isDelim(yt,t)||this.isDelim(et,t)){e=this.isDelim(yt,t)?yt:et;do n=this.lookupType(++t);while(n===B||n===Y);n!==S&&(this.skip(t),Ut.call(this,Pt))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==yt&&n!==et&&this.error("Number sign is expected")),Ut.call(this,e!==0),e===et?"-"+this.consume(S):this.consume(S)}const xl="AnPlusB",wl={a:[String,null],b:[String,null]};function ti(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===S)Ut.call(this,Cl),n=this.consume(S);else if(this.tokenType===m&&this.cmpChar(this.tokenStart,et))switch(e="-1",xt.call(this,1,be),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Ue.call(this);break;case 3:xt.call(this,2,et),this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(S);break;default:xt.call(this,2,et),Se.call(this,3,Pt),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===m||this.isDelim(yt)&&this.lookupType(1)===m){let r=0;switch(e="1",this.isDelim(yt)&&(r=1,this.next()),xt.call(this,0,be),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Ue.call(this);break;case 2:xt.call(this,1,et),this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(S);break;default:xt.call(this,1,et),Se.call(this,2,Pt),this.next(),n=this.substrToCursor(t+r+1)}}else if(this.tokenType===L){const r=this.charCodeAt(this.tokenStart),i=r===yt||r===et;let s=this.tokenStart+i;for(;s<this.tokenEnd&&rt(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),xt.call(this,s-this.tokenStart,be),e=this.substring(t,s),s+1===this.tokenEnd?(this.next(),n=Ue.call(this)):(xt.call(this,s-this.tokenStart+1,et),s+2===this.tokenEnd?(this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(S)):(Se.call(this,s-this.tokenStart+2,Pt),this.next(),n=this.substrToCursor(s+1)))}else this.error();return e!==null&&e.charCodeAt(0)===yt&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===yt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function ei(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const Ll=Object.freeze(Object.defineProperty({__proto__:null,generate:ei,name:xl,parse:ti,structure:wl},Symbol.toStringTag,{value:"Module"}));function Wn(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Ol(){for(let t=1,e;e=this.lookupType(t);t++){if(e===Gt)return!0;if(e===ft||e===U)return!1}return!1}const Tl="Atrule",Al="atrule",_l={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function ni(t=!1){const e=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(U),n=this.substrToCursor(e+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ft&&this.tokenType!==Z&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),Wn):i=Wn.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Z:this.next();break;case ft:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,t):s=this.Block(Ol.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:i,block:s}}function ri(t){this.token(U,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(Z,";")}const Pl=Object.freeze(Object.defineProperty({__proto__:null,generate:ri,name:Tl,parse:ni,structure:_l,walkContext:Al},Symbol.toStringTag,{value:"Module"})),El="AtrulePrelude",jl="atrulePrelude",Dl={children:[[]]};function ii(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==ft&&this.tokenType!==Z&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function si(t){this.children(t)}const Rl=Object.freeze(Object.defineProperty({__proto__:null,generate:si,name:El,parse:ii,structure:Dl,walkContext:jl},Symbol.toStringTag,{value:"Module"})),Il=36,oi=42,ve=61,Ml=94,un=124,Nl=126;function Fl(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(oi)?(e=!0,this.next()):this.isDelim(un)||this.eat(m),this.isDelim(un)?this.charCodeAt(this.tokenStart+1)!==ve?(this.next(),this.eat(m)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function zl(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==ve&&e!==Nl&&e!==Ml&&e!==Il&&e!==oi&&e!==un&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==ve&&(this.isDelim(ve)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const $l="AttributeSelector",Bl={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function li(){const t=this.tokenStart;let e,n=null,r=null,i=null;return this.eat(Zt),this.skipSC(),e=Fl.call(this),this.skipSC(),this.tokenType!==ae&&(this.tokenType!==m&&(n=zl.call(this),this.skipSC(),r=this.tokenType===Ct?this.String():this.Identifier(),this.skipSC()),this.tokenType===m&&(i=this.consume(m),this.skipSC())),this.eat(ae),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:i}}function ai(t){this.token(O,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(m,t.flags),this.token(O,"]")}const Wl=Object.freeze(Object.defineProperty({__proto__:null,generate:ai,name:$l,parse:li,structure:Bl},Symbol.toStringTag,{value:"Module"})),Ul=38;function ci(){return this.Raw(null,!0)}function Un(){return this.parseWithFallback(this.Rule,ci)}function Vn(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Vl(){if(this.tokenType===Z)return Vn.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,Vn);return this.tokenType===Z&&this.next(),t}const Hl="Block",Ql="block",ql={children:[["Atrule","Rule","Declaration"]]};function ui(t){const e=t?Vl:Un,n=this.tokenStart;let r=this.createList();this.eat(ft);t:for(;!this.eof;)switch(this.tokenType){case Gt:break t;case B:case Y:this.next();break;case U:r.push(this.parseWithFallback(this.Atrule.bind(this,t),ci));break;default:t&&this.isDelim(Ul)?r.push(Un.call(this)):r.push(e.call(this))}return this.eof||this.eat(Gt),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function hi(t){this.token(ft,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(Z,";")}),this.token(Gt,"}")}const Gl=Object.freeze(Object.defineProperty({__proto__:null,generate:hi,name:Hl,parse:ui,structure:ql,walkContext:Ql},Symbol.toStringTag,{value:"Module"})),Xl="Brackets",Yl={children:[[]]};function fi(t,e){const n=this.tokenStart;let r=null;return this.eat(Zt),r=t.call(this,e),this.eof||this.eat(ae),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function pi(t){this.token(O,"["),this.children(t),this.token(O,"]")}const Jl=Object.freeze(Object.defineProperty({__proto__:null,generate:pi,name:Xl,parse:fi,structure:Yl},Symbol.toStringTag,{value:"Module"})),Kl="CDC",Zl=[];function di(){const t=this.tokenStart;return this.eat(tt),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function mi(){this.token(tt,"-->")}const ta=Object.freeze(Object.defineProperty({__proto__:null,generate:mi,name:Kl,parse:di,structure:Zl},Symbol.toStringTag,{value:"Module"})),ea="CDO",na=[];function ki(){const t=this.tokenStart;return this.eat(Ie),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function yi(){this.token(Ie,"<!--")}const ra=Object.freeze(Object.defineProperty({__proto__:null,generate:yi,name:ea,parse:ki,structure:na},Symbol.toStringTag,{value:"Module"})),ia=46,sa="ClassSelector",oa={name:String};function gi(){return this.eatDelim(ia),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(m)}}function bi(t){this.token(O,"."),this.token(m,t.name)}const la=Object.freeze(Object.defineProperty({__proto__:null,generate:bi,name:sa,parse:gi,structure:oa},Symbol.toStringTag,{value:"Module"})),aa=43,Hn=47,ca=62,ua=126,ha="Combinator",fa={name:String};function Si(){const t=this.tokenStart;let e;switch(this.tokenType){case B:e=" ";break;case O:switch(this.charCodeAt(this.tokenStart)){case ca:case aa:case ua:this.next();break;case Hn:this.next(),this.eatIdent("deep"),this.eatDelim(Hn);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function vi(t){this.tokenize(t.name)}const pa=Object.freeze(Object.defineProperty({__proto__:null,generate:vi,name:ha,parse:Si,structure:fa},Symbol.toStringTag,{value:"Module"})),da=42,ma=47,ka="Comment",ya={value:String};function Ci(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(Y),e-t+2>=2&&this.charCodeAt(e-2)===da&&this.charCodeAt(e-1)===ma&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function xi(t){this.token(Y,"/*"+t.value+"*/")}const ga=Object.freeze(Object.defineProperty({__proto__:null,generate:xi,name:ka,parse:Ci,structure:ya},Symbol.toStringTag,{value:"Module"})),ba=new Set([J,b,wt]),Sa="Condition",va={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Qn(t){return this.lookupTypeNonSC(1)===m&&ba.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const Ca={media:Qn,container:Qn,supports(){return this.SupportsDeclaration()}};function wi(t="media"){const e=this.createList();t:for(;!this.eof;)switch(this.tokenType){case Y:case B:this.next();continue;case m:e.push(this.Identifier());break;case P:{let n=this.parseWithFallback(()=>Ca[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(P);const r=this.Condition(t);return this.eat(b),r},()=>this.GeneralEnclosed(t))),e.push(n);break}case C:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break t}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function Li(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(P,"("),this.node(e),this.token(b,")")):this.node(e)})}const xa=Object.freeze(Object.defineProperty({__proto__:null,generate:Li,name:Sa,parse:wi,structure:va},Symbol.toStringTag,{value:"Module"})),Oi=33,wa=35,La=36,Oa=38,Ta=42,Aa=43,qn=47;function _a(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function Pa(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Ea(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==Z&&this.isDelim(Oi)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const ja="Declaration",Da="declaration",Ra={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ti(){const t=this.tokenStart,e=this.tokenIndex,n=Ia.call(this),r=ul(n),i=r?this.parseCustomProperty:this.parseValue,s=r?Pa:_a;let l=!1,c;this.skipSC(),this.eat(J);const a=this.tokenIndex;if(r||this.skipSC(),i?c=this.parseWithFallback(Ea,s):c=s.call(this,this.tokenIndex),r&&c.type==="Value"&&c.children.isEmpty){for(let o=a-this.tokenIndex;o<=0;o++)if(this.lookupType(o)===B){c.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Oi)&&(l=Ma.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Z&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:l,property:n,value:c}}function Ai(t){this.token(m,t.property),this.token(J,":"),this.node(t.value),t.important&&(this.token(O,"!"),this.token(m,t.important===!0?"important":t.important))}function Ia(){const t=this.tokenStart;if(this.tokenType===O)switch(this.charCodeAt(this.tokenStart)){case Ta:case La:case Aa:case wa:case Oa:this.next();break;case qn:this.next(),this.isDelim(qn)&&this.next();break}return this.tokenType===D?this.eat(D):this.eat(m),this.substrToCursor(t)}function Ma(){this.eat(O),this.skipSC();const t=this.consume(m);return t==="important"?!0:t}const Na=Object.freeze(Object.defineProperty({__proto__:null,generate:Ai,name:ja,parse:Ti,structure:Ra,walkContext:Da},Symbol.toStringTag,{value:"Module"})),Fa=38;function Ve(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const za="DeclarationList",$a={children:[["Declaration","Atrule","Rule"]]};function _i(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case B:case Y:case Z:this.next();break;case U:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),Ve));break;default:this.isDelim(Fa)?t.push(this.parseWithFallback(this.Rule,Ve)):t.push(this.parseWithFallback(this.Declaration,Ve))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function Pi(t){this.children(t,e=>{e.type==="Declaration"&&this.token(Z,";")})}const Ba=Object.freeze(Object.defineProperty({__proto__:null,generate:Pi,name:za,parse:_i,structure:$a},Symbol.toStringTag,{value:"Module"})),Wa="Dimension",Ua={value:String,unit:String};function Ei(){const t=this.tokenStart,e=this.consumeNumber(L);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function ji(t){this.token(L,t.value+t.unit)}const Va=Object.freeze(Object.defineProperty({__proto__:null,generate:ji,name:Wa,parse:Ei,structure:Ua},Symbol.toStringTag,{value:"Module"})),Ha=47,Qa="Feature",qa={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function Di(t){const e=this.tokenStart;let n,r=null;if(this.eat(P),this.skipSC(),n=this.consume(m),this.skipSC(),this.tokenType!==b){switch(this.eat(J),this.skipSC(),this.tokenType){case S:this.lookupNonWSType(1)===O?r=this.Ratio():r=this.Number();break;case L:r=this.Dimension();break;case m:r=this.Identifier();break;case C:r=this.parseWithFallback(()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Ha)&&this.error(),i},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(b),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:r}}function Ri(t){this.token(P,"("),this.token(m,t.name),t.value!==null&&(this.token(J,":"),this.node(t.value)),this.token(b,")")}const Ga=Object.freeze(Object.defineProperty({__proto__:null,generate:Ri,name:Qa,parse:Di,structure:qa},Symbol.toStringTag,{value:"Module"})),Xa="FeatureFunction",Ya={kind:String,feature:String,value:["Declaration","Selector"]};function Ja(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function Ii(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),r=Ja.call(this,t,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,l=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),l},()=>this.Raw(null,!1));return this.eof||this.eat(b),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:i}}function Mi(t){this.token(C,t.feature+"("),this.node(t.value),this.token(b,")")}const Ka=Object.freeze(Object.defineProperty({__proto__:null,generate:Mi,name:Xa,parse:Ii,structure:Ya},Symbol.toStringTag,{value:"Module"})),Gn=47,Za=60,Xn=61,tc=62,ec="FeatureRange",nc={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function He(){switch(this.skipSC(),this.tokenType){case S:return this.isDelim(Gn,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case L:return this.Dimension();case m:return this.Identifier();case C:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Gn)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function Yn(t){if(this.skipSC(),this.isDelim(Za)||this.isDelim(tc)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(Xn)?(this.next(),e+"="):e}if(this.isDelim(Xn))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function Ni(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(P);const n=He.call(this),r=Yn.call(this,n.type==="Identifier"),i=He.call(this);let s=null,l=null;return this.lookupNonWSType(0)!==b&&(s=Yn.call(this),l=He.call(this)),this.skipSC(),this.eat(b),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:r,middle:i,rightComparison:s,right:l}}function Fi(t){this.token(P,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(b,")")}const rc=Object.freeze(Object.defineProperty({__proto__:null,generate:Fi,name:ec,parse:Ni,structure:nc},Symbol.toStringTag,{value:"Module"})),ic="Function",sc="function",oc={name:String,children:[[]]};function zi(t,e){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=e.hasOwnProperty(i)?e[i].call(this,e):t.call(this,e),this.eof||this.eat(b),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function $i(t){this.token(C,t.name+"("),this.children(t),this.token(b,")")}const lc=Object.freeze(Object.defineProperty({__proto__:null,generate:$i,name:ic,parse:zi,structure:oc,walkContext:sc},Symbol.toStringTag,{value:"Module"})),ac="GeneralEnclosed",cc={kind:String,function:[String,null],children:[[]]};function Bi(t){const e=this.tokenStart;let n=null;this.tokenType===C?n=this.consumeFunctionName():this.eat(P);const r=this.parseWithFallback(()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(b),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:r}}function Wi(t){t.function?this.token(C,t.function+"("):this.token(P,"("),this.children(t),this.token(b,")")}const uc=Object.freeze(Object.defineProperty({__proto__:null,generate:Wi,name:ac,parse:Bi,structure:cc},Symbol.toStringTag,{value:"Module"})),hc="XXX",fc="Hash",pc={value:String};function Ui(){const t=this.tokenStart;return this.eat(D),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function Vi(t){this.token(D,"#"+t.value)}const dc=Object.freeze(Object.defineProperty({__proto__:null,generate:Vi,name:fc,parse:Ui,structure:pc,xxx:hc},Symbol.toStringTag,{value:"Module"})),mc="Identifier",kc={name:String};function Hi(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(m)}}function Qi(t){this.token(m,t.name)}const yc=Object.freeze(Object.defineProperty({__proto__:null,generate:Qi,name:mc,parse:Hi,structure:kc},Symbol.toStringTag,{value:"Module"})),gc="IdSelector",bc={name:String};function qi(){const t=this.tokenStart;return this.eat(D),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function Gi(t){this.token(O,"#"+t.name)}const Sc=Object.freeze(Object.defineProperty({__proto__:null,generate:Gi,name:gc,parse:qi,structure:bc},Symbol.toStringTag,{value:"Module"})),vc=46,Cc="Layer",xc={name:String};function Xi(){let t=this.tokenStart,e=this.consume(m);for(;this.isDelim(vc);)this.eat(O),e+="."+this.consume(m);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function Yi(t){this.tokenize(t.name)}const wc=Object.freeze(Object.defineProperty({__proto__:null,generate:Yi,name:Cc,parse:Xi,structure:xc},Symbol.toStringTag,{value:"Module"})),Lc="LayerList",Oc={children:[["Layer"]]};function Ji(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===pt);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function Ki(t){this.children(t,()=>this.token(pt,","))}const Tc=Object.freeze(Object.defineProperty({__proto__:null,generate:Ki,name:Lc,parse:Ji,structure:Oc},Symbol.toStringTag,{value:"Module"})),Ac="MediaQuery",_c={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function Zi(){const t=this.tokenStart;let e=null,n=null,r=null;if(this.skipSC(),this.tokenType===m&&this.lookupTypeNonSC(1)!==P){const i=this.consume(m),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),e=s,n=this.consume(m)):n=i,this.lookupTypeNonSC(0)){case m:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case ft:case Z:case pt:case wt:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case m:case P:case C:{r=this.Condition("media");break}case ft:case Z:case wt:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:r}}function ts(t){t.mediaType?(t.modifier&&this.token(m,t.modifier),this.token(m,t.mediaType),t.condition&&(this.token(m,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const Pc=Object.freeze(Object.defineProperty({__proto__:null,generate:ts,name:Ac,parse:Zi,structure:_c},Symbol.toStringTag,{value:"Module"})),Ec="MediaQueryList",jc={children:[["MediaQuery"]]};function es(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===pt);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function ns(t){this.children(t,()=>this.token(pt,","))}const Dc=Object.freeze(Object.defineProperty({__proto__:null,generate:ns,name:Ec,parse:es,structure:jc},Symbol.toStringTag,{value:"Module"})),Rc=38,Ic="NestingSelector",Mc={};function rs(){const t=this.tokenStart;return this.eatDelim(Rc),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function is(){this.token(O,"&")}const Nc=Object.freeze(Object.defineProperty({__proto__:null,generate:is,name:Ic,parse:rs,structure:Mc},Symbol.toStringTag,{value:"Module"})),Fc="Nth",zc={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function ss(){this.skipSC();const t=this.tokenStart;let e=t,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:r,selector:n}}function os(t){this.node(t.nth),t.selector!==null&&(this.token(m,"of"),this.node(t.selector))}const $c=Object.freeze(Object.defineProperty({__proto__:null,generate:os,name:Fc,parse:ss,structure:zc},Symbol.toStringTag,{value:"Module"})),Bc="Number",Wc={value:String};function ls(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(S)}}function as(t){this.token(S,t.value)}const Uc=Object.freeze(Object.defineProperty({__proto__:null,generate:as,name:Bc,parse:ls,structure:Wc},Symbol.toStringTag,{value:"Module"})),Vc="Operator",Hc={value:String};function cs(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function us(t){this.tokenize(t.value)}const Qc=Object.freeze(Object.defineProperty({__proto__:null,generate:us,name:Vc,parse:cs,structure:Hc},Symbol.toStringTag,{value:"Module"})),qc="Parentheses",Gc={children:[[]]};function hs(t,e){const n=this.tokenStart;let r=null;return this.eat(P),r=t.call(this,e),this.eof||this.eat(b),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function fs(t){this.token(P,"("),this.children(t),this.token(b,")")}const Xc=Object.freeze(Object.defineProperty({__proto__:null,generate:fs,name:qc,parse:hs,structure:Gc},Symbol.toStringTag,{value:"Module"})),Yc="Percentage",Jc={value:String};function ps(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(F)}}function ds(t){this.token(F,t.value+"%")}const Kc=Object.freeze(Object.defineProperty({__proto__:null,generate:ds,name:Yc,parse:ps,structure:Jc},Symbol.toStringTag,{value:"Module"})),Zc="PseudoClassSelector",tu="function",eu={name:String,children:[["Raw"],null]};function ms(){const t=this.tokenStart;let e=null,n,r;return this.eat(J),this.tokenType===C?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==b?e=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),e=this.pseudo[r].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(b)):n=this.consume(m),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function ks(t){this.token(J,":"),t.children===null?this.token(m,t.name):(this.token(C,t.name+"("),this.children(t),this.token(b,")"))}const nu=Object.freeze(Object.defineProperty({__proto__:null,generate:ks,name:Zc,parse:ms,structure:eu,walkContext:tu},Symbol.toStringTag,{value:"Module"})),ru="PseudoElementSelector",iu="function",su={name:String,children:[["Raw"],null]};function ys(){const t=this.tokenStart;let e=null,n,r;return this.eat(J),this.eat(J),this.tokenType===C?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==b?e=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),e=this.pseudo[r].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(b)):n=this.consume(m),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function gs(t){this.token(J,":"),this.token(J,":"),t.children===null?this.token(m,t.name):(this.token(C,t.name+"("),this.children(t),this.token(b,")"))}const ou=Object.freeze(Object.defineProperty({__proto__:null,generate:gs,name:ru,parse:ys,structure:su,walkContext:iu},Symbol.toStringTag,{value:"Module"})),Jn=47;function Kn(){switch(this.skipSC(),this.tokenType){case S:return this.Number();case C:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const lu="Ratio",au={left:["Number","Function"],right:["Number","Function",null]};function bs(){const t=this.tokenStart,e=Kn.call(this);let n=null;return this.skipSC(),this.isDelim(Jn)&&(this.eatDelim(Jn),n=Kn.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function Ss(t){this.node(t.left),this.token(O,"/"),t.right?this.node(t.right):this.node(S,1)}const cu=Object.freeze(Object.defineProperty({__proto__:null,generate:Ss,name:lu,parse:bs,structure:au},Symbol.toStringTag,{value:"Module"}));function uu(){return this.tokenIndex>0&&this.lookupType(-1)===B?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const hu="Raw",fu={value:String};function vs(t,e){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?r=uu.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function Cs(t){this.tokenize(t.value)}const pu=Object.freeze(Object.defineProperty({__proto__:null,generate:Cs,name:hu,parse:vs,structure:fu},Symbol.toStringTag,{value:"Module"}));function Zn(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function du(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==ft&&this.error(),t}const mu="Rule",ku="rule",yu={prelude:["SelectorList","Raw"],block:["Block"]};function xs(){const t=this.tokenIndex,e=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(du,Zn):n=Zn.call(this,t),r=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:r}}function ws(t){this.node(t.prelude),this.node(t.block)}const gu=Object.freeze(Object.defineProperty({__proto__:null,generate:ws,name:mu,parse:xs,structure:yu,walkContext:ku},Symbol.toStringTag,{value:"Module"})),bu="Scope",Su={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function Ls(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===P&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(b)),this.lookupNonWSType(0)===m&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(P),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(b)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function Os(t){t.root&&(this.token(P,"("),this.node(t.root),this.token(b,")")),t.limit&&(this.token(m,"to"),this.token(P,"("),this.node(t.limit),this.token(b,")"))}const vu=Object.freeze(Object.defineProperty({__proto__:null,generate:Os,name:bu,parse:Ls,structure:Su},Symbol.toStringTag,{value:"Module"})),Cu="Selector",xu={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function Ts(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function As(t){this.children(t)}const wu=Object.freeze(Object.defineProperty({__proto__:null,generate:As,name:Cu,parse:Ts,structure:xu},Symbol.toStringTag,{value:"Module"})),Lu="SelectorList",Ou="selector",Tu={children:[["Selector","Raw"]]};function _s(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===pt){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function Ps(t){this.children(t,()=>this.token(pt,","))}const Au=Object.freeze(Object.defineProperty({__proto__:null,generate:Ps,name:Lu,parse:_s,structure:Tu,walkContext:Ou},Symbol.toStringTag,{value:"Module"})),_u="String",Pu={value:String};function Es(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Kr(this.consume(Ct))}}function js(t){this.token(Ct,fl(t.value))}const Eu=Object.freeze(Object.defineProperty({__proto__:null,generate:js,name:_u,parse:Es,structure:Pu},Symbol.toStringTag,{value:"Module"})),ju=33;function tr(){return this.Raw(null,!1)}const Du="StyleSheet",Ru="stylesheet",Iu={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Ds(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case B:this.next();continue;case Y:if(this.charCodeAt(this.tokenStart+2)!==ju){this.next();continue}n=this.Comment();break;case Ie:n=this.CDO();break;case tt:n=this.CDC();break;case U:n=this.parseWithFallback(this.Atrule,tr);break;default:n=this.parseWithFallback(this.Rule,tr)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function Rs(t){this.children(t)}const Mu=Object.freeze(Object.defineProperty({__proto__:null,generate:Rs,name:Du,parse:Ds,structure:Iu,walkContext:Ru},Symbol.toStringTag,{value:"Module"})),Nu="SupportsDeclaration",Fu={declaration:"Declaration"};function Is(){const t=this.tokenStart;this.eat(P),this.skipSC();const e=this.Declaration();return this.eof||this.eat(b),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function Ms(t){this.token(P,"("),this.node(t.declaration),this.token(b,")")}const zu=Object.freeze(Object.defineProperty({__proto__:null,generate:Ms,name:Nu,parse:Is,structure:Fu},Symbol.toStringTag,{value:"Module"})),$u=42,er=124;function Qe(){this.tokenType!==m&&this.isDelim($u)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const Bu="TypeSelector",Wu={name:String};function Ns(){const t=this.tokenStart;return this.isDelim(er)?(this.next(),Qe.call(this)):(Qe.call(this),this.isDelim(er)&&(this.next(),Qe.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function Fs(t){this.tokenize(t.name)}const Uu=Object.freeze(Object.defineProperty({__proto__:null,generate:Fs,name:Bu,parse:Ns,structure:Wu},Symbol.toStringTag,{value:"Module"})),zs=43,$s=45,hn=63;function ee(t,e){let n=0;for(let r=this.tokenStart+t;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===$s&&e&&n!==0)return ee.call(this,t+n+1,!1),-1;Xt(i)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function me(t){let e=0;for(;this.isDelim(hn);)++e>t&&this.error("Too many question marks"),this.next()}function Vu(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===zs?"Plus sign":"Hyphen minus")+" is expected")}function Hu(){let t=0;switch(this.tokenType){case S:if(t=ee.call(this,1,!0),this.isDelim(hn)){me.call(this,6-t);break}if(this.tokenType===L||this.tokenType===S){Vu.call(this,$s),ee.call(this,1,!1);break}break;case L:t=ee.call(this,1,!0),t>0&&me.call(this,6-t);break;default:if(this.eatDelim(zs),this.tokenType===m){t=ee.call(this,0,!0),t>0&&me.call(this,6-t);break}if(this.isDelim(hn)){this.next(),me.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Qu="UnicodeRange",qu={value:String};function Bs(){const t=this.tokenStart;return this.eatIdent("u"),Hu.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function Ws(t){this.tokenize(t.value)}const Gu=Object.freeze(Object.defineProperty({__proto__:null,generate:Ws,name:Qu,parse:Bs,structure:qu},Symbol.toStringTag,{value:"Module"})),Xu="Url",Yu={value:String};function Us(){const t=this.tokenStart;let e;switch(this.tokenType){case X:e=yl(this.consume(X));break;case C:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(C),this.skipSC(),e=Kr(this.consume(Ct)),this.skipSC(),this.eof||this.eat(b);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function Vs(t){this.token(X,gl(t.value))}const Ju=Object.freeze(Object.defineProperty({__proto__:null,generate:Vs,name:Xu,parse:Us,structure:Yu},Symbol.toStringTag,{value:"Module"})),Ku="Value",Zu={children:[[]]};function Hs(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function Qs(t){this.children(t)}const th=Object.freeze(Object.defineProperty({__proto__:null,generate:Qs,name:Ku,parse:Hs,structure:Zu},Symbol.toStringTag,{value:"Module"})),eh=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),nh="WhiteSpace",rh={value:String};function qs(){return this.eat(B),eh}function Gs(t){this.token(B,t.value)}const ih=Object.freeze(Object.defineProperty({__proto__:null,generate:Gs,name:nh,parse:qs,structure:rh},Symbol.toStringTag,{value:"Module"})),sh=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Ll,Atrule:Pl,AtrulePrelude:Rl,AttributeSelector:Wl,Block:Gl,Brackets:Jl,CDC:ta,CDO:ra,ClassSelector:la,Combinator:pa,Comment:ga,Condition:xa,Declaration:Na,DeclarationList:Ba,Dimension:Va,Feature:Ga,FeatureFunction:Ka,FeatureRange:rc,Function:lc,GeneralEnclosed:uc,Hash:dc,IdSelector:Sc,Identifier:yc,Layer:wc,LayerList:Tc,MediaQuery:Pc,MediaQueryList:Dc,NestingSelector:Nc,Nth:$c,Number:Uc,Operator:Qc,Parentheses:Xc,Percentage:Kc,PseudoClassSelector:nu,PseudoElementSelector:ou,Ratio:cu,Raw:pu,Rule:gu,Scope:vu,Selector:wu,SelectorList:Au,String:Eu,StyleSheet:Mu,SupportsDeclaration:zu,TypeSelector:Uu,UnicodeRange:Gu,Url:Ju,Value:th,WhiteSpace:ih},Symbol.toStringTag,{value:"Module"})),oh={node:sh},Lt=vl(oh),xn=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function ce(t){return xn.includes(t)}const wn=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function lh(t){return wn.includes(t)}const Ln=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function Xs(t){return Ln.includes(t)}const Ys=["justify-self","align-self","place-self"];function ah(t){return Ys.includes(t)}const Js=[...xn,...wn,...Ln,...Ys,"position-anchor","position-area"],ch=[...Ln,...xn,...wn];function Ks(t){return ch.includes(t)}const uh=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function Zs(t){return uh.includes(t)}const hh=["width","height","block","inline","self-block","self-inline"];function fh(t){return hh.includes(t)}const nr=new Set(["Atrule","Selector","Declaration"]);function ph(t){const e=new SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let l=1,c=0,a=!1;const o=t.node;t.node=function(f){if(f.loc&&f.loc.start&&nr.has(f.type)){const p=f.loc.start.line,d=f.loc.start.column-1;(r.line!==p||r.column!==d)&&(r.line=p,r.column=d,n.line=l,n.column=c,a&&(a=!1,(n.line!==i.line||n.column!==i.column)&&e.addMapping(s)),a=!0,e.addMapping({source:f.loc.source,original:r,generated:n}))}o.call(this,f),a&&nr.has(f.type)&&(i.line=l,i.column=c)};const u=t.emit;t.emit=function(f,p,d){for(let k=0;k<f.length;k++)f.charCodeAt(k)===10?(l++,c=0):c++;u(f,p,d)};const h=t.result;return t.result=function(){return a&&e.addMapping(s),{css:h(),map:e}},t}const dh=43,mh=45,qe=(t,e)=>{if(t===O&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},to=[[m,m],[m,C],[m,X],[m,at],[m,"-"],[m,S],[m,F],[m,L],[m,tt],[m,P],[U,m],[U,C],[U,X],[U,at],[U,"-"],[U,S],[U,F],[U,L],[U,tt],[D,m],[D,C],[D,X],[D,at],[D,"-"],[D,S],[D,F],[D,L],[D,tt],[L,m],[L,C],[L,X],[L,at],[L,"-"],[L,S],[L,F],[L,L],[L,tt],["#",m],["#",C],["#",X],["#",at],["#","-"],["#",S],["#",F],["#",L],["#",tt],["-",m],["-",C],["-",X],["-",at],["-","-"],["-",S],["-",F],["-",L],["-",tt],[S,m],[S,C],[S,X],[S,at],[S,S],[S,F],[S,L],[S,"%"],[S,tt],["@",m],["@",C],["@",X],["@",at],["@","-"],["@",tt],[".",S],[".",F],[".",L],["+",S],["+",F],["+",L],["/","*"]],kh=to.concat([[m,D],[L,D],[D,D],[U,P],[U,Ct],[U,J],[F,F],[F,L],[F,C],[F,"-"],[b,m],[b,C],[b,F],[b,L],[b,D],[b,"-"]]);function eo(t){const e=new Set(t.map(([n,r])=>qe(n)<<16|qe(r)));return function(n,r,i){const s=qe(r,i),l=i.charCodeAt(0);return(l===mh&&r!==m&&r!==C&&r!==tt||l===dh?e.has(n<<16|l<<8):e.has(n<<16|s))&&this.emit(" ",B,!0),s}}const yh=eo(to),no=eo(kh),rr=Object.freeze(Object.defineProperty({__proto__:null,safe:no,spec:yh},Symbol.toStringTag,{value:"Module"})),gh=92;function bh(t,e){if(typeof e=="function"){let n=null;t.children.forEach(r=>{n!==null&&e.call(this,n),this.node(r),n=r});return}t.children.forEach(this.node,this)}function Sh(t){Yr(t,(e,n,r)=>{this.token(e,t.slice(n,r))})}function vh(t){const e=new Map;for(let[n,r]of Object.entries(t.node))typeof(r.generate||r)=="function"&&e.set(n,r.generate||r);return function(n,r){let i="",s=0,l={node(a){if(e.has(a.type))e.get(a.type).call(c,a);else throw new Error("Unknown node type: "+a.type)},tokenBefore:no,token(a,o){s=this.tokenBefore(s,a,o),this.emit(o,a,!1),a===O&&o.charCodeAt(0)===gh&&this.emit(`
|
|
2
|
+
`,B,!0)},emit(a){i+=a},result(){return i}};r&&(typeof r.decorator=="function"&&(l=r.decorator(l)),r.sourceMap&&(l=ph(l)),r.mode in rr&&(l.tokenBefore=rr[r.mode]));const c={node:a=>l.node(a),children:bh,token:(a,o)=>l.token(a,o),tokenize:Sh};return l.node(n),l.result()}}const Ch=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:ei,Atrule:ri,AtrulePrelude:si,AttributeSelector:ai,Block:hi,Brackets:pi,CDC:mi,CDO:yi,ClassSelector:bi,Combinator:vi,Comment:xi,Condition:Li,Declaration:Ai,DeclarationList:Pi,Dimension:ji,Feature:Ri,FeatureFunction:Mi,FeatureRange:Fi,Function:$i,GeneralEnclosed:Wi,Hash:Vi,IdSelector:Gi,Identifier:Qi,Layer:Yi,LayerList:Ki,MediaQuery:ts,MediaQueryList:ns,NestingSelector:is,Nth:os,Number:as,Operator:us,Parentheses:fs,Percentage:ds,PseudoClassSelector:ks,PseudoElementSelector:gs,Ratio:Ss,Raw:Cs,Rule:ws,Scope:Os,Selector:As,SelectorList:Ps,String:js,StyleSheet:Rs,SupportsDeclaration:Ms,TypeSelector:Fs,UnicodeRange:Ws,Url:Vs,Value:Qs,WhiteSpace:Gs},Symbol.toStringTag,{value:"Module"})),xh={node:Ch},wh=vh(xh);function Lh(t,e){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
|
|
3
|
+
`)}})}const Ge=100,ir=60,sr=" ";function or({source:t,line:e,column:n,baseLine:r,baseColumn:i},s){function l(d,k){return o.slice(d,k).map((g,y)=>String(d+y+1).padStart(f)+" |"+g).join(`
|
|
4
|
+
`)}const c=`
|
|
5
|
+
`.repeat(Math.max(r-1,0)),a=" ".repeat(Math.max(i-1,0)),o=(c+a+t).split(/\r\n?|\n|\f/),u=Math.max(1,e-s)-1,h=Math.min(e+s,o.length+1),f=Math.max(4,String(h).length)+1;let p=0;n+=(sr.length-1)*(o[e-1].substr(0,n-1).match(/\t/g)||[]).length,n>Ge&&(p=n-ir+3,n=ir-2);for(let d=u;d<=h;d++)d>=0&&d<o.length&&(o[d]=o[d].replace(/\t/g,sr),o[d]=(p>0&&o[d].length>p?"…":"")+o[d].substr(p,Ge-2)+(o[d].length>p+Ge-1?"…":""));return[l(u,e),new Array(n+f+2).join("-")+"^",l(e,h)].filter(Boolean).join(`
|
|
6
|
+
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function lr(t,e,n,r,i,s=1,l=1){return Object.assign(Lh("SyntaxError",t),{source:e,offset:n,line:r,column:i,sourceFragment(c){return or({source:e,line:r,column:i,baseLine:s,baseColumn:l},isNaN(c)?0:c)},get formattedMessage(){return`Parse error: ${t}
|
|
7
|
+
`+or({source:e,line:r,column:i,baseLine:s,baseColumn:l},2)}})}function Oh(t){const e=this.createList();let n=!1;const r={recognizer:t};for(;!this.eof;){switch(this.tokenType){case Y:this.next();continue;case B:n=!0,this.next();continue}let i=t.getNode.call(this,r);if(i===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,i,e,r),n=!1),e.push(i)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,r),e}const ar=()=>{},Th=33,Ah=35,Xe=59,cr=123,ur=0;function _h(t){return function(){return this[t]()}}function Ye(t){const e=Object.create(null);for(const n of Object.keys(t)){const r=t[n],i=r.parse||r;i&&(e[n]=i)}return e}function Ph(t){const e={context:Object.create(null),features:Object.assign(Object.create(null),t.features),scope:Object.assign(Object.create(null),t.scope),atrule:Ye(t.atrule),pseudo:Ye(t.pseudo),node:Ye(t.node)};for(const[n,r]of Object.entries(t.parseContext))switch(typeof r){case"function":e.context[n]=r;break;case"string":e.context[n]=_h(r);break}return W(W({config:e},e),e.node)}function Eh(t){let e="",n="<unknown>",r=!1,i=ar,s=!1;const l=new al,c=Object.assign(new cl,Ph(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Oh,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(a){return a===cr?1:0},consumeUntilLeftCurlyBracketOrSemicolon(a){return a===cr||a===Xe?1:0},consumeUntilExclamationMarkOrSemicolon(a){return a===Th||a===Xe?1:0},consumeUntilSemicolonIncluded(a){return a===Xe?2:0},createList(){return new Q},createSingleNodeList(a){return new Q().appendData(a)},getFirstListNode(a){return a&&a.first},getLastListNode(a){return a&&a.last},parseWithFallback(a,o){const u=this.tokenIndex;try{return a.call(this)}catch(h){if(s)throw h;this.skip(u-this.tokenIndex);const f=o.call(this);return s=!0,i(h,f),s=!1,f}},lookupNonWSType(a){let o;do if(o=this.lookupType(a++),o!==B&&o!==Y)return o;while(o!==ur);return ur},charCodeAt(a){return a>=0&&a<e.length?e.charCodeAt(a):0},substring(a,o){return e.substring(a,o)},substrToCursor(a){return this.source.substring(a,this.tokenStart)},cmpChar(a,o){return Qr(e,a,o)},cmpStr(a,o,u){return Ae(e,a,o,u)},consume(a){const o=this.tokenStart;return this.eat(a),this.substrToCursor(o)},consumeFunctionName(){const a=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(C),a},consumeNumber(a){const o=e.substring(this.tokenStart,qr(e,this.tokenStart));return this.eat(a),o},eat(a){if(this.tokenType!==a){const o=Xr[a].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase());let u=`${/[[\](){}]/.test(o)?`"${o}"`:o} is expected`,h=this.tokenStart;switch(a){case m:this.tokenType===C||this.tokenType===X?(h=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case D:this.isDelim(Ah)&&(this.next(),h++,u="Name is expected");break;case F:this.tokenType===S&&(h=this.tokenEnd,u="Percent sign is expected");break}this.error(u,h)}this.next()},eatIdent(a){(this.tokenType!==m||this.lookupValue(0,a)===!1)&&this.error(`Identifier "${a}" is expected`),this.next()},eatDelim(a){this.isDelim(a)||this.error(`Delim "${String.fromCharCode(a)}" is expected`),this.next()},getLocation(a,o){return r?l.getLocationRange(a,o,n):null},getLocationFromList(a){if(r){const o=this.getFirstListNode(a),u=this.getLastListNode(a);return l.getLocationRange(o!==null?o.loc.start.offset-l.startOffset:this.tokenStart,u!==null?u.loc.end.offset-l.startOffset:this.tokenStart,n)}return null},error(a,o){const u=typeof o<"u"&&o<e.length?l.getLocation(o):this.eof?l.getLocation(sl(e,e.length-1)):l.getLocation(this.tokenStart);throw new lr(a||"Unexpected input",e,u.offset,u.line,u.column,l.startLine,l.startColumn)}});return Object.assign(function(a,o){e=a,o=o||{},c.setSource(e,Yr),l.setSource(e,o.offset,o.line,o.column),n=o.filename||"<unknown>",r=!!o.positions,i=typeof o.onParseError=="function"?o.onParseError:ar,s=!1,c.parseAtrulePrelude="parseAtrulePrelude"in o?!!o.parseAtrulePrelude:!0,c.parseRulePrelude="parseRulePrelude"in o?!!o.parseRulePrelude:!0,c.parseValue="parseValue"in o?!!o.parseValue:!0,c.parseCustomProperty="parseCustomProperty"in o?!!o.parseCustomProperty:!1;const{context:u="default",onComment:h}=o;if(!(u in c.context))throw new Error("Unknown context `"+u+"`");typeof h=="function"&&c.forEachToken((p,d,k)=>{if(p===Y){const g=c.getLocation(d,k),y=Ae(e,k-2,k,"*/")?e.slice(d+2,k-2):e.slice(d+2,k);h(y,g)}});const f=c.context[u].call(c,o);return c.eof||c.error(),f},{SyntaxError:lr,config:c.config})}const jh=35,Dh=42,hr=43,Rh=45,Ih=47,Mh=117;function ro(t){switch(this.tokenType){case D:return this.Hash();case pt:return this.Operator();case P:return this.Parentheses(this.readSequence,t.recognizer);case Zt:return this.Brackets(this.readSequence,t.recognizer);case Ct:return this.String();case L:return this.Dimension();case F:return this.Percentage();case S:return this.Number();case C:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case X:return this.Url();case m:return this.cmpChar(this.tokenStart,Mh)&&this.cmpChar(this.tokenStart+1,hr)?this.UnicodeRange():this.Identifier();case O:{const e=this.charCodeAt(this.tokenStart);if(e===Ih||e===Dh||e===hr||e===Rh)return this.Operator();e===jh&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const Nh={getNode:ro},Fh=35,zh=38,$h=42,Bh=43,Wh=47,fr=46,Uh=62,Vh=124,Hh=126;function Qh(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function qh(){switch(this.tokenType){case Zt:return this.AttributeSelector();case D:return this.IdSelector();case J:return this.lookupType(1)===J?this.PseudoElementSelector():this.PseudoClassSelector();case m:return this.TypeSelector();case S:case F:return this.Percentage();case L:this.charCodeAt(this.tokenStart)===fr&&this.error("Identifier is expected",this.tokenStart+1);break;case O:{switch(this.charCodeAt(this.tokenStart)){case Bh:case Uh:case Hh:case Wh:return this.Combinator();case fr:return this.ClassSelector();case $h:case Vh:return this.TypeSelector();case Fh:return this.IdSelector();case zh:return this.NestingSelector()}break}}}const Gh={onWhiteSpace:Qh,getNode:qh};function Xh(){return this.createSingleNodeList(this.Raw(null,!1))}function Yh(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===pt){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=e-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===B){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}function pr(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const Jh={getNode:ro,onWhiteSpace(t,e){pr(t)&&(t.value=" "+t.value),pr(e.last)&&(e.last.value+=" ")},expression:Xh,var:Yh},Kh=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:Nh,Selector:Gh,Value:Jh},Symbol.toStringTag,{value:"Module"})),Zh=new Set(["none","and","not","or"]),tf={parse:{prelude(){const t=this.createList();if(this.tokenType===m){const e=this.substring(this.tokenStart,this.tokenEnd);Zh.has(e.toLowerCase())||t.push(this.Identifier())}return t.push(this.Condition("container")),t},block(t=!1){return this.Block(t)}}},ef={parse:{prelude:null,block(){return this.Block(!0)}}};function Je(t,e){return this.parseWithFallback(()=>{try{return t.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==b&&this.error()}},e||(()=>this.Raw(null,!0)))}const dr={layer(){this.skipSC();const t=this.createList(),e=Je.call(this,this.Layer);return(e.type!=="Raw"||e.value!=="")&&t.push(e),t},supports(){this.skipSC();const t=this.createList(),e=Je.call(this,this.Declaration,()=>Je.call(this,()=>this.Condition("supports")));return(e.type!=="Raw"||e.value!=="")&&t.push(e),t}},nf={parse:{prelude(){const t=this.createList();switch(this.tokenType){case Ct:t.push(this.String());break;case X:case C:t.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===m&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?t.push(this.Identifier()):this.tokenType===C&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&t.push(this.Function(null,dr)),this.skipSC(),this.tokenType===C&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&t.push(this.Function(null,dr)),(this.lookupNonWSType(0)===m||this.lookupNonWSType(0)===P)&&t.push(this.MediaQueryList()),t},block:null}},rf={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},sf={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(t=!1){return this.Block(t)}}},of={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},lf={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},af={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(t=!1){return this.Block(t)}}},cf={parse:{prelude:null,block(t=!1){return this.Block(t)}}},uf={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(t=!1){return this.Block(t)}}},hf={container:tf,"font-face":ef,import:nf,layer:rf,media:sf,nest:of,page:lf,scope:af,"starting-style":cf,supports:uf};function ff(){const t=this.createList();this.skipSC();t:for(;!this.eof;){switch(this.tokenType){case m:t.push(this.Identifier());break;case Ct:t.push(this.String());break;case pt:t.push(this.Operator());break;case b:break t;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return t}const _t={parse(){return this.createSingleNodeList(this.SelectorList())}},Ke={parse(){return this.createSingleNodeList(this.Selector())}},pf={parse(){return this.createSingleNodeList(this.Identifier())}},df={parse:ff},ke={parse(){return this.createSingleNodeList(this.Nth())}},mf={dir:pf,has:_t,lang:df,matches:_t,is:_t,"-moz-any":_t,"-webkit-any":_t,where:_t,not:_t,"nth-child":ke,"nth-last-child":ke,"nth-last-of-type":ke,"nth-of-type":ke,slotted:Ke,host:Ke,"host-context":Ke},kf=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:ti,Atrule:ni,AtrulePrelude:ii,AttributeSelector:li,Block:ui,Brackets:fi,CDC:di,CDO:ki,ClassSelector:gi,Combinator:Si,Comment:Ci,Condition:wi,Declaration:Ti,DeclarationList:_i,Dimension:Ei,Feature:Di,FeatureFunction:Ii,FeatureRange:Ni,Function:zi,GeneralEnclosed:Bi,Hash:Ui,IdSelector:qi,Identifier:Hi,Layer:Xi,LayerList:Ji,MediaQuery:Zi,MediaQueryList:es,NestingSelector:rs,Nth:ss,Number:ls,Operator:cs,Parentheses:hs,Percentage:ps,PseudoClassSelector:ms,PseudoElementSelector:ys,Ratio:bs,Raw:vs,Rule:xs,Scope:Ls,Selector:Ts,SelectorList:_s,String:Es,StyleSheet:Ds,SupportsDeclaration:Is,TypeSelector:Ns,UnicodeRange:Bs,Url:Us,Value:Hs,WhiteSpace:qs},Symbol.toStringTag,{value:"Module"})),yf={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(t){return this.Condition(t.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:Kh,atrule:hf,pseudo:mf,node:kf},gf=Eh(yf);let bf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ct=(t=21)=>{let e="",n=t|0;for(;n--;)e+=bf[Math.random()*64|0];return e};const io=ct(),ne=new Set;function Pe(t){return!!(t&&t.type==="Function"&&t.name==="anchor")}function Ot(t,e=!1){return gf(t,{parseAtrulePrelude:!1,parseCustomProperty:!0,onParseError:n=>{e&&ne.add(n)}})}function K(t){return wh(t,{mode:"spec"})}function so(t){return t.type==="Declaration"}function Sf(t){return t.toArray().reduce((e,n)=>n.type==="Operator"&&n.value===","?(e.push([]),e):(n.type==="Identifier"&&e[e.length-1].push(n),e),[[]])}function fn(t){return t?t.children.map(e=>{var n;let r;((n=e.children.last)==null?void 0:n.type)==="PseudoElementSelector"&&(e=Le(e),r=K(e.children.last),e.children.pop());const i=K(e);return{selector:i+(r??""),elementPart:i,pseudoElementPart:r}}).toArray():[]}function vf(){ne.size>0&&(console.group(`The CSS anchor positioning polyfill was not applied due to ${ne.size===1?"a CSS parse error":"CSS parse errors"}.`),ne.forEach(t=>{console.warn(t.formattedMessage)}),console.groupEnd())}function Cf(){ne.clear()}const pn=[...Js,"anchor-scope","anchor-name"].reduce((t,e)=>(t[e]=`--${e}-${io}`,t),{});function xf(t,e){return so(t)&&pn[t.property]&&e?(e.children.appendData(G(W({},t),{property:pn[t.property]})),{updated:!0}):{updated:!1}}function wf(t,e){const n=["inset","inset-block","inset-inline"];if(!so(t)||!e||!n.includes(t.property))return{updated:!1};const r=(i,s)=>{s&&e.children.appendData(G(W({},t),{property:i,value:{type:"Value",children:new Q().fromArray([s])}}))};if(t.property==="inset"){const i=t.value.children.toArray(),[s,l,c,a]=(()=>{switch(i.length){case 1:return[i[0],i[0],i[0],i[0]];case 2:return[i[0],i[1],i[0],i[1]];case 3:return[i[0],i[1],i[2],i[1]];case 4:return[i[0],i[1],i[2],i[3]];default:return[]}})();r("top",s),r("right",l),r("bottom",c),r("left",a)}else if(t.property==="inset-block"){const i=t.value.children.toArray(),[s,l]=(()=>{switch(i.length){case 1:return[i[0],i[0]];case 2:return[i[0],i[1]];default:return[]}})();r("inset-block-start",s),r("inset-block-end",l)}else if(t.property==="inset-inline"){const i=t.value.children.toArray(),[s,l]=(()=>{switch(i.length){case 1:return[i[0],i[0]];case 2:return[i[0],i[1]];default:return[]}})();r("inset-inline-start",s),r("inset-inline-end",l)}return{updated:!0}}function Lf(t){for(const e of t){let n=!1;const r=Ot(e.css,!0);Lt(r,{visit:"Declaration",enter(i){var s;const l=(s=this.rule)==null?void 0:s.block,{updated:c}=wf(i,l),{updated:a}=xf(i,l);(a||c)&&(n=!0)}}),n&&(e.css=K(r),e.changed=!0)}return t.some(e=>e.changed===!0)}var oo=(t=>(t.All="all",t.None="none",t))(oo||{});function ot(t,e){var n;return e=(n=pn[e])!=null?n:e,(t instanceof HTMLElement?getComputedStyle(t):t.computedStyle).getPropertyValue(e).trim()}function Jt(t,e,n){return ot(t,e)===n}function Of(t,{selector:e,pseudoElementPart:n}){const r=getComputedStyle(t,n),i=document.createElement("div"),s=document.createElement("style");i.id=`fake-pseudo-element-${ct()}`;for(const c of Array.from(r)){const a=r.getPropertyValue(c);i.style.setProperty(c,a)}s.textContent+=`#${i.id}${n} { content: ${r.content}; }`,s.textContent+=`${e} { display: none !important; }`,document.head.append(s);const l=n==="::before"?"afterbegin":"beforeend";return t.insertAdjacentElement(l,i),{fakePseudoElement:i,sheet:s,computedStyle:r}}function Tf(t){let e=t;for(;e;){if(Jt(e,"overflow","scroll"))return e;e=e.parentElement}return e}function Af(t){let e=Tf(t);return e===document.documentElement&&(e=null),e??{scrollTop:0,scrollLeft:0}}function _f(t,e){const{elementPart:n,pseudoElementPart:r}=t,i=[];if(r&&!(r==="::before"||r==="::after"))return i;const s=re(e.roots,n);if(!r)return i.push(...s),i;for(const l of s){const{fakePseudoElement:c,sheet:a,computedStyle:o}=Of(l,t),u=c.getBoundingClientRect(),{scrollY:h,scrollX:f}=globalThis,p=Af(l);i.push({fakePseudoElement:c,computedStyle:o,removeFakePseudoElement(){c.remove(),a.remove()},contextElement:l,getBoundingClientRect(){const{scrollY:d,scrollX:k}=globalThis,{scrollTop:g,scrollLeft:y}=p;return DOMRect.fromRect({y:u.y+(h-d)+(p.scrollTop-g),x:u.x+(f-k)+(p.scrollLeft-y),width:u.width,height:u.height})}})}return i}function Pf(t,e){const n=ot(t,"anchor-name");return e?n.split(",").map(r=>r.trim()).includes(e):!n}function Ef(t,e){const n=ot(t,"anchor-scope");return n===e||n==="all"}const On=t=>_(null,null,function*(){var e,n,r;let i=yield(e=nt.getOffsetParent)==null?void 0:e.call(nt,t);return(yield(n=nt.isElement)==null?void 0:n.call(nt,i))||(i=(yield(r=nt.getDocumentElement)==null?void 0:r.call(nt,t))||window.document.documentElement),i}),re=(t,e)=>t.flatMap(n=>[...n.querySelectorAll(e)]),mr="InvalidMimeType";function jf(t){return!!((t.type==="text/css"||t.rel==="stylesheet")&&t.href)}function Df(t){const e=new URL(t.href,document.baseURI);if(jf(t)&&e.origin===location.origin)return e}function Rf(t){return _(this,null,function*(){return(yield Promise.all(t.map(e=>_(null,null,function*(){var n;if(!e.url)return e;if((n=e.el)!=null&&n.disabled)return null;try{const r=yield fetch(e.url.toString()),i=r.headers.get("content-type");if(!(i!=null&&i.startsWith("text/css"))){const l=new Error(`Error loading ${e.url}: expected content-type "text/css", got "${i}".`);throw l.name=mr,l}const s=yield r.text();return G(W({},e),{css:s})}catch(r){if(r instanceof Error&&r.name===mr)return console.warn(r),null;throw r}})))).filter(e=>e!==null)})}const kr='[style*="anchor"]',yr='[style*="position-area"]';function If(t){const e=t?t.filter(r=>r instanceof HTMLElement&&(r.matches(kr)||r.matches(yr))):Array.from(document.querySelectorAll([kr,yr].join(","))),n=[];return e.filter(r=>r instanceof HTMLElement).forEach(r=>{const i=ct(12),s="data-has-inline-styles";r.setAttribute(s,i);const l=r.getAttribute("style"),c=`[${s}="${i}"] { ${l} }`;n.push({el:r,css:c})}),n}function Mf(t){return _(this,null,function*(){var e,n;const r=(e=t.elements)!=null?e:re(t.roots,"link, style"),i=[];r.filter(c=>c instanceof HTMLElement).forEach(c=>{if(c.tagName.toLowerCase()==="link"){const a=Df(c);a&&i.push({el:c,url:a})}c.tagName.toLowerCase()==="style"&&i.push({el:c,css:c.innerHTML})});const s=t.excludeInlineStyles?(n=t.elements)!=null?n:[]:void 0,l=If(s);return yield Rf([...i,...l])})}const Nf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let lo=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=Nf[n[t]&63];return e};const ao="--pa-cascade-property",co="data-anchor-position-wrapper",uo="data-pa-wrapper-for-",gr="POLYFILL-POSITION-AREA",Ff=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","self-x-start","self-x-end","span-self-x-start","span-self-x-end","span-all","top","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","self-y-start","self-y-end","span-self-y-start","span-self-y-end","block-start","block-end","span-block-start","span-block-end","inline-start","inline-end","span-inline-start","span-inline-end","self-block-start","self-block-end","span-self-block-start","span-self-block-end","self-inline-start","self-inline-end","span-self-inline-start","span-self-inline-end","start","end","span-start","span-end","self-start","self-end","span-self-start","span-self-end"];function ho(t){return Ff.includes(t)}const br={left:[0,1,"Irrelevant"],center:[1,2,"Irrelevant"],right:[2,3,"Irrelevant"],"span-left":[0,2,"Irrelevant"],"span-right":[1,3,"Irrelevant"],"x-start":[0,1,"Physical"],"x-end":[2,3,"Physical"],"span-x-start":[0,2,"Physical"],"span-x-end":[1,3,"Physical"],"self-x-start":[0,1,"PhysicalSelf"],"self-x-end":[2,3,"PhysicalSelf"],"span-self-x-start":[0,2,"PhysicalSelf"],"span-self-x-end":[1,3,"PhysicalSelf"],"span-all":[0,3,"Irrelevant"],top:[0,1,"Irrelevant"],bottom:[2,3,"Irrelevant"],"span-top":[0,2,"Irrelevant"],"span-bottom":[1,3,"Irrelevant"],"y-start":[0,1,"Physical"],"y-end":[2,3,"Physical"],"span-y-start":[0,2,"Physical"],"span-y-end":[1,3,"Physical"],"self-y-start":[0,1,"PhysicalSelf"],"self-y-end":[2,3,"PhysicalSelf"],"span-self-y-start":[0,2,"PhysicalSelf"],"span-self-y-end":[1,3,"PhysicalSelf"],"block-start":[0,1,"Logical"],"block-end":[2,3,"Logical"],"span-block-start":[0,2,"Logical"],"span-block-end":[1,3,"Logical"],"inline-start":[0,1,"Logical"],"inline-end":[2,3,"Logical"],"span-inline-start":[0,2,"Logical"],"span-inline-end":[1,3,"Logical"],"self-block-start":[0,1,"LogicalSelf"],"self-block-end":[2,3,"LogicalSelf"],"span-self-block-start":[0,2,"LogicalSelf"],"span-self-block-end":[1,3,"LogicalSelf"],"self-inline-start":[0,1,"LogicalSelf"],"self-inline-end":[2,3,"LogicalSelf"],"span-self-inline-start":[0,2,"LogicalSelf"],"span-self-inline-end":[1,3,"LogicalSelf"],start:[0,1,"Logical"],end:[2,3,"Logical"],"span-start":[0,2,"Logical"],"span-end":[1,3,"Logical"],"self-start":[0,1,"LogicalSelf"],"self-end":[2,3,"LogicalSelf"],"span-self-start":[0,2,"LogicalSelf"],"span-self-end":[1,3,"LogicalSelf"]},zf=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","self-x-start","self-x-end","span-self-x-start","span-self-x-end","span-all"],$f=["top","center","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","self-y-start","self-y-end","span-self-y-start","span-self-y-end","span-all"],Bf=["block-start","center","block-end","span-block-start","span-block-end","span-all"],Wf=["inline-start","center","inline-end","span-inline-start","span-inline-end","span-all"],Uf=["self-block-start","center","self-block-end","span-self-block-start","span-self-block-end","span-all"],Vf=["self-inline-start","center","self-inline-end","span-self-inline-start","span-self-inline-end","span-all"],Sr=["start","center","end","span-start","span-end","span-all"],vr=["self-start","center","self-end","span-self-start","span-self-end","span-all"],Hf=["block","top","bottom","y"],Qf=["inline","left","right","x"];function dn(t){const e=t.split("-");for(const n of e){if(Hf.includes(n))return"block";if(Qf.includes(n))return"inline"}return"ambiguous"}function qf(t,e){return e[0].includes(t[0])&&e[1].includes(t[1])||e[0].includes(t[1])&&e[1].includes(t[0])}const Gf=[[zf,$f],[Bf,Wf],[Uf,Vf],[Sr,Sr],[vr,vr]];function Xf(t){for(const e of Gf)if(qf(t,e))return!0;return!1}const Cr=t=>{const e=getComputedStyle(t);return{writingMode:e.writingMode,direction:e.direction}},Yf=(t,e)=>_(null,null,function*(){const n=yield On(t);switch(e){case"Logical":case"Physical":return Cr(n);case"LogicalSelf":case"PhysicalSelf":return Cr(t);default:return null}}),Ze=t=>t.reverse().map(e=>3-e),fo=(t,e)=>t==="Irrelevant"?e:t,Jf=(t,e)=>_(null,[t,e],function*({block:n,inline:r},i){const s=fo(n[2],r[2]),l=yield Yf(i,s),c={block:[n[0],n[1]],inline:[r[0],r[1]]};if(l){if(l.direction==="rtl"&&(c.inline=Ze(c.inline)),l.writingMode.startsWith("vertical")){const a=c.block;c.block=c.inline,c.inline=a}if(l.writingMode.startsWith("sideways")){const a=c.block;c.block=c.inline,c.inline=a,l.writingMode.endsWith("lr")&&(c.block=Ze(c.block))}l.writingMode.endsWith("rl")&&(c.inline=Ze(c.inline))}return c}),Kf=({block:t,inline:e})=>{const n=[0,"top","bottom",0],r=[0,"left","right",0];return{block:[n[t[0]],n[t[1]]],inline:[r[e[0]],r[e[1]]]}};function xr([t,e]){return t===0&&e===3?"center":t===0?"end":e===3?"start":"center"}function Zf(t){return t.type==="Declaration"&&t.property==="position-area"}function tp(t){const e=t.value.children.toArray().map(({name:n})=>n);return e.length===1&&(dn(e[0])==="ambiguous"?e.push(e[0]):e.push("span-all")),e}function ep(t){if(!Zf(t))return;const e=tp(t);if(!Xf(e))return;const n={};switch(dn(e[0])){case"block":n.block=e[0],n.inline=e[1];break;case"inline":n.inline=e[0],n.block=e[1];break;case"ambiguous":dn(e[1])=="block"?(n.block=e[1],n.inline=e[0]):(n.inline=e[1],n.block=e[0]);break}const r={block:br[n.block],inline:br[n.inline]},i=`--pa-declaration-${lo(12)}`;return{values:n,grid:r,selectorUUID:i}}function np(t,e){["justify-self","align-self"].forEach(n=>{e.children.appendData({type:"Declaration",property:n,value:{type:"Raw",value:`var(--pa-value-${n})`},important:!1})}),e.children.appendData({type:"Declaration",property:ao,value:{type:"Raw",value:t.selectorUUID},important:!1})}function rp(t,e){var n,r;let i;if(((n=t.parentElement)==null?void 0:n.tagName)===gr)i=t.parentElement;else{i=document.createElement(gr),i.style.display="grid",i.style.position="absolute";const s=getComputedStyle(t).pointerEvents;i.style.pointerEvents="none",t.style.pointerEvents=s,["top","left","right","bottom"].forEach(l=>{i.style.setProperty(l,`var(--pa-value-${l})`)}),(r=t.parentElement)==null||r.insertBefore(i,t),i.appendChild(t)}return i.setAttribute(`${uo}${e}`,""),i}function ip(t,e,n){return _(this,null,function*(){const r=`--pa-target-${lo(12)}`,i=yield Jf(e.grid,t),s=Kf(i),l=fo(e.grid.block[2],e.grid.inline[2]),c=["LogicalSelf","PhysicalSelf"].includes(l)?i:e.grid,a={block:xr([c.block[0],c.block[1]]),inline:xr([c.inline[0],c.inline[1]])};return{insets:s,alignments:a,targetUUID:r,targetEl:t,anchorEl:n,wrapperEl:rp(t,r),values:e.values,grid:e.grid,selectorUUID:e.selectorUUID}})}function sp(t,e){return`
|
|
8
|
+
[${co}="${e}"][${uo}${t}] {
|
|
9
|
+
--pa-value-top: var(${t}-top);
|
|
10
|
+
--pa-value-left: var(${t}-left);
|
|
11
|
+
--pa-value-right: var(${t}-right);
|
|
12
|
+
--pa-value-bottom: var(${t}-bottom);
|
|
13
|
+
--pa-value-justify-self: var(${t}-justify-self);
|
|
14
|
+
--pa-value-align-self: var(${t}-align-self);
|
|
15
|
+
}
|
|
16
|
+
`.replaceAll(`
|
|
17
|
+
`,"")}const op=["normal","most-width","most-height","most-block-size","most-inline-size"],lp=["flip-block","flip-inline","flip-start"];function ap(t){return t.type==="Declaration"}function cp(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function up(t){return t.type==="Declaration"&&t.property==="position-try-order"}function hp(t){return t.type==="Declaration"&&t.property==="position-try"}function fp(t){return t.type==="Atrule"&&t.name==="position-try"}function pp(t){return lp.includes(t)}function dp(t){return op.includes(t)}function mp(t,e){const n=document.querySelector(t);if(n){let r=yp(n);return e.forEach(i=>{r=po(r,i)}),r}}function kp(t,e){let n=t.declarations;return e.forEach(r=>{n=po(n,r)}),n}function yp(t){const e={};return Js.forEach(n=>{const r=ot(t,`--${n}-${io}`);r&&(e[n]=r)}),e}const gp={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},bp={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},Sp={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function vp(t,e){return gp[e][t]||t}function Cp(t,e){return bp[e][t]||t}function xp(t,e){if(e==="flip-start")return t;{const n=Sp[e];return t.split("-").map(r=>n[r]||r).join("-")}}function wp(t,e,n){if(t==="margin"){const[r,i,s,l]=e.children.toArray();n==="flip-block"?l?e.children.fromArray([s,i,r,l]):s&&e.children.fromArray([s,i,r]):n==="flip-inline"&&l&&e.children.fromArray([r,l,s,i])}else if(t==="margin-block"){const[r,i]=e.children.toArray();n==="flip-block"&&i&&e.children.fromArray([i,r])}else if(t==="margin-inline"){const[r,i]=e.children.toArray();n==="flip-inline"&&i&&e.children.fromArray([i,r])}}const Lp=(t,e)=>{var n;return((n=Ot(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function po(t,e){const n={};return Object.entries(t).forEach(([r,i])=>{const s=r,l=Lp(s,i),c=vp(s,e);c!==s&&(n[s]!=null||(n[s]="revert")),Lt(l,{visit:"Function",enter(a){Pe(a)&&a.children.forEach(o=>{ie(o)&&Zs(o.name)&&(o.name=Cp(o.name,e))})}}),s==="position-area"&&l.children.forEach(a=>{ie(a)&&ho(a.name)&&(a.name=xp(a.name,e))}),s.startsWith("margin")&&wp(s,l,e),n[c]=K(l)}),n}function mo(t){const e=Sf(t),n=[];return e.forEach(r=>{const i={atRules:[],tactics:[],positionAreas:[]};r.forEach(s=>{pp(s.name)?i.tactics.push(s.name):s.name.startsWith("--")?i.atRules.push(s.name):ho(s.name)&&i.positionAreas.push(s.name)}),i.positionAreas.length?n.push({positionArea:i.positionAreas[0],type:"position-area"}):i.atRules.length&&i.tactics.length?n.push({tactics:i.tactics,atRule:i.atRules[0],type:"at-rule-with-try-tactic"}):i.atRules.length?n.push({atRule:i.atRules[0],type:"at-rule"}):i.tactics.length&&n.push({tactics:i.tactics,type:"try-tactic"})}),n}function Op(t){return cp(t)&&t.value.children.first?mo(t.value.children):[]}function Tp(t){if(hp(t)&&t.value.children.first){const e=Le(t);let n;const r=e.value.children.first.name;r&&dp(r)&&(n=r,e.value.children.shift());const i=mo(e.value.children);return{order:n,options:i}}return{}}function Ap(t){return up(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function _p(t){const{order:e,options:n}=Tp(t);if(e||n)return{order:e,options:n};const{order:r}=Ap(t),i=Op(t);return r||i?{order:r,options:i}:{}}function Pp(t){return ce(t.property)||lh(t.property)||Xs(t.property)||ah(t.property)||["position-anchor","position-area"].includes(t.property)}function Ep(t){var e,n;if(fp(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const r=t.prelude.value,i=t.block.children.filter(l=>ap(l)&&Pp(l)),s={uuid:`${r}-try-${ct(12)}`,declarations:Object.fromEntries(i.map(l=>[l.property,K(l.value)]))};return{name:r,tryBlock:s}}return{}}function jp(t){const e={},n={},r={};for(const i of t){const s=Ot(i.css);Lt(s,{visit:"Atrule",enter(l){const{name:c,tryBlock:a}=Ep(l);c&&a&&(e[c]=a)}})}for(const i of t){let s=!1;const l=new Set,c=Ot(i.css);Lt(c,{visit:"Declaration",enter(a){var o;const u=(o=this.rule)==null?void 0:o.prelude,h=fn(u);if(!h.length)return;const{order:f,options:p}=_p(a),d={};f&&(d.order=f),h.forEach(({selector:k})=>{var g;p?.forEach(y=>{var w;let x;if(y.type==="at-rule")x=y.atRule;else if(y.type==="try-tactic"){x=`${k}-${y.tactics.join("-")}`;const T=mp(k,y.tactics);T&&(e[x]={uuid:`${k}-${y.tactics.join("-")}-try-${ct(12)}`,declarations:T})}else if(y.type==="at-rule-with-try-tactic"){x=`${k}-${y.atRule}-${y.tactics.join("-")}`;const T=e[y.atRule],lt=kp(T,y.tactics);lt&&(e[x]={uuid:`${k}-${y.atRule}-${y.tactics.join("-")}-try-${ct(12)}`,declarations:lt})}if(x&&e[x]){const T=`[data-anchor-polyfill="${e[x].uuid}"]`;n[T]!=null||(n[T]=[]),n[T].push(k),l.has(x)||(d.fallbacks!=null||(d.fallbacks=[]),d.fallbacks.push(e[x]),l.add(x),(w=this.stylesheet)==null||w.children.prependData({type:"Rule",prelude:{type:"Raw",value:T},block:{type:"Block",children:new Q().fromArray(Object.entries(e[x].declarations).map(([lt,v])=>({type:"Declaration",important:!0,property:lt,value:{type:"Raw",value:v}})))}}),s=!0)}}),Object.keys(d).length>0&&(r[k]?(d.order&&(r[k].order=d.order),d.fallbacks&&((g=r[k]).fallbacks!=null||(g.fallbacks=[]),r[k].fallbacks.push(...d.fallbacks))):r[k]=d)})}}),s&&(i.css=K(c),i.changed=!0)}return{fallbackTargets:n,validPositions:r}}function Dp(t,e){return!t||t===e?!1:ko(t)?t.document.contains(e):t.contains(e)}function ko(t){return!!(t&&t===t.window)}function Rp(t){return Jt(t,"position","fixed")}function mn(t){return!!(t&&(Rp(t)||Jt(t,"position","absolute")))}function wr(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function Ip(t){return _(this,null,function*(){return yield nt.getOffsetParent(t)})}function tn(t){return _(this,null,function*(){if(!["absolute","fixed"].includes(ot(t,"position")))return yield Ip(t);let e=t.parentElement;for(;e;){if(!Jt(e,"position","static")&&Jt(e,"display","block"))return e;e=e.parentElement}return window})}function Mp(t,e,n,r){return _(this,null,function*(){const i=yield tn(t),s=yield tn(n);if(!(Dp(s,t)||ko(s))||i===s&&!(!mn(t)||wr(t,n)))return!1;if(i!==s){let l;const c=[];for(l=i;l&&l!==s&&l!==window;)c.push(l),l=yield tn(l);const a=c[c.length-1];if(a instanceof HTMLElement&&!(!mn(a)||wr(a,n)))return!1}{let l=t.parentElement;for(;l;){if(Jt(l,"content-visibility","hidden"))return!1;l=l.parentElement}}return!(e&&r&&Lr(t,e,r)!==Lr(n,e,r))})}function Lr(t,e,n){for(;!(t.matches(n)&&Ef(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function Np(t,e,n,r,i){return _(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&mn(t)))return null;const s=n.flatMap(c=>_f(c,i)).filter(c=>Pf(c,e)),l=r.map(c=>c.selector).join(",")||null;for(let c=s.length-1;c>=0;c--){const a=s[c],o="fakePseudoElement"in a;if(yield Mp(o?a.fakePseudoElement:a,e,t,l))return o&&a.removeFakePseudoElement(),a}return null})}function Fp(t){return t.type==="Declaration"&&t.property==="anchor-name"}function zp(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function kn(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function Ce(t){return!!(t&&t.type==="Function"&&t.name==="var")}function ie(t){return!!(t.type==="Identifier"&&t.name)}function $p(t){return!!(t.type==="Percentage"&&t.value)}function Or(t,e){let n,r,i,s="",l=!1,c;const a=[];t.children.toArray().forEach(f=>{if(l){s=`${s}${K(f)}`;return}if(f.type==="Operator"&&f.value===","){l=!0;return}a.push(f)});let[o,u]=a;if(u||(u=o,o=void 0),o&&(ie(o)&&o.name.startsWith("--")?n=o.name:Ce(o)&&o.children.first&&(c=o.children.first.name)),u)if(Pe(t)){if(ie(u)&&Zs(u.name))r=u.name;else if($p(u)){const f=Number(u.value);r=Number.isNaN(f)?void 0:f}}else kn(t)&&ie(u)&&fh(u.name)&&(i=u.name);const h=`--anchor-${ct(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:r,anchorSize:i,fallbackValue:s,customPropName:c,uuid:h}}function Tr(t){return t.value.children.map(({name:e})=>e)}let se={},jt={},Dt={},oe={},Et={};function Bp(){se={},jt={},Dt={},oe={},Et={}}function Wp(t,e){var n;if((Pe(t)||kn(t))&&e){if(e.property.startsWith("--")){const r=K(e.value),i=Or(t);return oe[i.uuid]=r,Dt[e.property]=[...(n=Dt[e.property])!=null?n:[],i],{changed:!0}}if(Pe(t)&&ce(e.property)||kn(t)&&Ks(e.property)){const r=Or(t);return{prop:e.property,data:r,changed:!0}}}return{}}function Ar(t,e,n){return _(this,null,function*(){let r=e?.anchorName;const i=e?.customPropName;if(t&&!r){const a=ot(t,"position-anchor");a?r=a:i&&(r=ot(t,i))}const s=r?se[r]||[]:[],l=r?jt[oo.All]||[]:[],c=r?jt[r]||[]:[];return yield Np(t,r||null,s,[...l,...c],{roots:n.roots})})}function Up(t,e){return _(this,null,function*(){var n,r,i,s,l,c,a,o,u,h,f;const p={},d={};Bp();const{fallbackTargets:k,validPositions:g}=jp(t);for(const v of t){let R=!1;const z=Ot(v.css);Lt(z,function(A){var $,I,E,V;const j=($=this.rule)==null?void 0:$.prelude,M=fn(j);if(Fp(A)&&M.length)for(const N of Tr(A))se[N]!=null||(se[N]=[]),se[N].push(...M);if(zp(A)&&M.length)for(const N of Tr(A))jt[N]!=null||(jt[N]=[]),jt[N].push(...M);const{prop:q,data:dt,changed:At}=Wp(A,this.declaration);if(q&&dt&&M.length)for(const{selector:N}of M)p[N]=G(W({},p[N]),{[q]:[...(E=(I=p[N])==null?void 0:I[q])!=null?E:[],dt]});let H;if(this.block&&(H=ep(A),H)){np(H,this.block);for(const{selector:N}of M)d[N]=[...(V=d[N])!=null?V:[],H]}(At||H)&&(R=!0)}),R&&(v.css=K(z),v.changed=!0)}const y=new Set(Object.keys(Dt)),w={},x=v=>{var R,z,A,$,I;const E=[],V=new Set((z=(R=w[v])==null?void 0:R.names)!=null?z:[]);for(;V.size>0;)for(const j of V)E.push(...(A=Dt[j])!=null?A:[]),V.delete(j),(I=($=w[j])==null?void 0:$.names)!=null&&I.length&&w[j].names.forEach(M=>V.add(M));return E};for(;y.size>0;){const v=[];for(const R of t){let z=!1;const A=Ot(R.css);Lt(A,{visit:"Function",enter($){var I,E;const V=(I=this.rule)==null?void 0:I.prelude,j=this.declaration,M=j?.property;if(V?.children.isEmpty===!1&&Ce($)&&j&&M&&$.children.first&&y.has($.children.first.name)&&M.startsWith("--")){const q=$.children.first,dt=(E=Dt[q.name])!=null?E:[],At=x(q.name);if(!(dt.length||At.length))return;const H=`${q.name}-anchor-${ct(12)}`,N=K(j.value);oe[H]=N,w[M]||(w[M]={names:[],uuids:[]});const Nt=w[M];Nt.names.includes(q.name)||Nt.names.push(q.name),Nt.uuids.push(H),v.push(M),q.name=H,z=!0}}}),z&&(R.css=K(A),R.changed=!0)}y.clear(),v.forEach(R=>y.add(R))}for(const v of t){let R=!1;const z=Ot(v.css);Lt(z,{visit:"Function",enter(A){var $,I,E,V,j,M,q;const dt=($=this.rule)==null?void 0:$.prelude,At=this.declaration,H=At?.property;if(dt?.children.isEmpty===!1&&Ce(A)&&At&&H&&A.children.first&&(ce(H)||Xs(H))){const N=A.children.first,Nt=(I=Dt[N.name])!=null?I:[],Me=x(N.name);if(!(Nt.length||Me.length))return;const he=`${H}-${ct(12)}`;if(Me.length){const Ft=new Set([N.name]);for(;Ft.size>0;)for(const zt of Ft){const st=w[zt];if((E=st?.names)!=null&&E.length&&(V=st?.uuids)!=null&&V.length)for(const $t of st.names)for(const Bt of st.uuids)Et[Bt]=G(W({},Et[Bt]),{[he]:`${$t}-${he}`});Ft.delete(zt),(j=st?.names)!=null&&j.length&&st.names.forEach($t=>Ft.add($t))}}const yo=fn(dt);for(const Ft of[...Nt,...Me]){const zt=W({},Ft),st=`--anchor-${ct(12)}-${H}`,$t=zt.uuid;zt.uuid=st;for(const{selector:Bt}of yo)p[Bt]=G(W({},p[Bt]),{[H]:[...(q=(M=p[Bt])==null?void 0:M[H])!=null?q:[],zt]});Et[$t]=G(W({},Et[$t]),{[he]:st})}N.name=`${N.name}-${he}`,R=!0}}}),R&&(v.css=K(z),v.changed=!0)}if(Object.keys(Et).length>0)for(const v of t){let R=!1;const z=Ot(v.css);Lt(z,{visit:"Function",enter(A){var $,I,E,V;if(Ce(A)&&(I=($=A.children.first)==null?void 0:$.name)!=null&&I.startsWith("--")&&(V=(E=this.declaration)==null?void 0:E.property)!=null&&V.startsWith("--")&&this.block){const j=A.children.first,M=Et[j.name];if(M)for(const[q,dt]of Object.entries(M))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${q}`,value:{type:"Raw",value:K(this.declaration.value).replace(`var(${j.name})`,`var(${dt})`)}}),R=!0;oe[j.name]&&(this.declaration.value={type:"Raw",value:oe[j.name]},R=!0)}}}),R&&(v.css=K(z),v.changed=!0)}const T=new Map;for(const[v,R]of Object.entries(p)){let z;v.startsWith("[data-anchor-polyfill=")&&(n=k[v])!=null&&n.length?z=re(e.roots,k[v].join(",")):z=re(e.roots,v);for(const[A,$]of Object.entries(R))for(const I of $)for(const E of z){const V=yield Ar(E,I,{roots:e.roots}),j=`--anchor-${ct(12)}`;T.set(E,G(W({},(r=T.get(E))!=null?r:{}),{[I.uuid]:j})),E.setAttribute("style",`${I.uuid}: var(${j}); ${(i=E.getAttribute("style"))!=null?i:""}`),g[v]=G(W({},g[v]),{declarations:G(W({},(s=g[v])==null?void 0:s.declarations),{[A]:[...(a=(c=(l=g[v])==null?void 0:l.declarations)==null?void 0:c[A])!=null?a:[],G(W({},I),{anchorEl:V,targetEl:E,uuid:j})]})})}}const lt={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(lt);for(const[v,R]of Object.entries(d)){const z=re(e.roots,v);for(const A of z){const $=yield Ar(A,null,{roots:e.roots});for(const I of R){const E=yield ip(A,I,$);lt.css+=sp(E.targetUUID,I.selectorUUID),lt.changed=!0,g[v]=G(W({},g[v]),{declarations:G(W({},(o=g[v])==null?void 0:o.declarations),{"position-area":[...(f=(h=(u=g[v])==null?void 0:u.declarations)==null?void 0:h["position-area"])!=null?f:[],E]})})}}}return{rules:g,inlineStyles:T,anchorScopes:jt}})}const Vp=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function _r(t,e,n=!1){const r=[];for(const{el:i,css:s,changed:l,created:c=!1}of t){const a={el:i,css:s,changed:!1};if(l){if(i.tagName.toLowerCase()==="style")i.innerHTML=s;else if(i instanceof HTMLLinkElement){const o=document.createElement("style");o.textContent=s;for(const u of i.getAttributeNames())if(!u.startsWith("on")&&!Vp.includes(u)){const h=i.getAttribute(u);h!==null&&o.setAttribute(u,h)}i.hasAttribute("href")&&o.setAttribute("data-original-href",i.getAttribute("href")),c?(o.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",o)):(i.insertAdjacentElement("beforebegin",o),i.remove()),a.el=o}else if(i.hasAttribute("data-has-inline-styles")){const o=i.getAttribute("data-has-inline-styles");if(o){const u=`[data-has-inline-styles="${o}"]{`;let h=s.slice(u.length,-1);const f=e?.get(i);if(f)for(const[p,d]of Object.entries(f))h=`${p}: var(${d}); ${h}`;i.setAttribute("style",h)}}}n&&i.hasAttribute("data-has-inline-styles")&&i.removeAttribute("data-has-inline-styles"),r.push(a)}return r}const Hp=G(W({},nt),{_c:new Map}),Qp=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},qp=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},Pr=t=>{switch(t){case"top":case"bottom":case"inset-block-start":case"inset-block-end":return"y";case"left":case"right":case"inset-inline-start":case"inset-inline-end":return"x"}return null},Gp=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},Er=t=>ot(t,"display")==="inline",jr=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,r)=>n+parseInt(ot(t,r),10),0)||0,ye=(t,e)=>parseInt(ot(t,`margin-${e}`),10)||0,Xp=t=>({top:ye(t,"top"),right:ye(t,"right"),bottom:ye(t,"bottom"),left:ye(t,"left")}),en=t=>_(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:r,anchorSide:i,anchorSize:s,fallback:l=null}){var c;if(!((s||i!==void 0)&&e&&r))return l;if(s){if(!Ks(n))return l;let a;switch(s){case"width":case"height":a=s;break;default:{let o=!1;const u=ot(e,"writing-mode");o=u.startsWith("vertical-")||u.startsWith("sideways-"),a=qp(s,o)}}return a?`${r[a]}px`:l}if(i!==void 0){let a,o;const u=Pr(n);if(!(ce(n)&&u&&(!ce(i)||u===Pr(i))))return l;const h=["top","left","inset-block-start","inset-inline-start"],f=["bottom","right","inset-block-end","inset-inline-end"];switch(i){case"left":case"top":a=0;break;case"right":case"bottom":a=100;break;case"center":a=50;break;case"inside":a=h.includes(n)?0:100;break;case"outside":a=h.includes(n)?100:0;break;default:if(e){const k=(yield(c=nt.isRTL)==null?void 0:c.call(nt,e))||!1;a=Qp(i,k)}}const p=typeof a=="number"&&!Number.isNaN(a),d=Gp(u);if(p&&d){f.includes(n)&&(o=yield On(e));let k=r[u]+r[d]*(a/100);switch(n){case"bottom":case"inset-block-end":{if(!o)break;let g=o.clientHeight;if(g===0&&Er(o)){const y=jr(o,u);g=o.offsetHeight-y}k=g-k;break}case"right":case"inset-inline-end":{if(!o)break;let g=o.clientWidth;if(g===0&&Er(o)){const y=jr(o,u);g=o.offsetWidth-y}k=g-k;break}}return`${k}px`}}return l}),Yp=t=>"wrapperEl"in t,Jp=t=>"uuid"in t;function Kp(t,e=!1){return _(this,null,function*(){const n=document.documentElement;for(const[r,i]of Object.entries(t))for(const s of i){const l=s.anchorEl,c=s.targetEl;if(l&&c)if(Yp(s)){const a=s.wrapperEl,o=(u,h,f)=>_(null,null,function*(){return u===0?"0px":yield en({targetEl:a,targetProperty:h,anchorRect:f,anchorSide:u})});sn(l,a,()=>_(null,null,function*(){const u=ot(c,ao);a.setAttribute(co,u);const h=yield nt.getElementRects({reference:l,floating:a,strategy:"absolute"}),f=s.insets,p=yield o(f.block[0],"top",h.reference),d=yield o(f.block[1],"bottom",h.reference),k=yield o(f.inline[0],"left",h.reference),g=yield o(f.inline[1],"right",h.reference);n.style.setProperty(`${s.targetUUID}-top`,p||null),n.style.setProperty(`${s.targetUUID}-left`,k||null),n.style.setProperty(`${s.targetUUID}-right`,g||null),n.style.setProperty(`${s.targetUUID}-bottom`,d||null),n.style.setProperty(`${s.targetUUID}-justify-self`,s.alignments.inline),n.style.setProperty(`${s.targetUUID}-align-self`,s.alignments.block)}),{animationFrame:e})}else sn(l,c,()=>_(null,null,function*(){const a=yield nt.getElementRects({reference:l,floating:c,strategy:"absolute"}),o=yield en({targetEl:c,targetProperty:r,anchorRect:a.reference,anchorSide:s.anchorSide,anchorSize:s.anchorSize,fallback:s.fallbackValue});n.style.setProperty(s.uuid,o)}),{animationFrame:e});else if(Jp(s)){const a=yield en({targetProperty:r,anchorSide:s.anchorSide,anchorSize:s.anchorSize,fallback:s.fallbackValue});n.style.setProperty(s.uuid,a)}}})}function Dr(t,e){return _(this,null,function*(){const n=yield nt.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield Jo({x:t.offsetLeft,y:t.offsetTop,platform:Hp,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:Xp(t)})})}function Zp(t,e,n=!1){return _(this,null,function*(){if(!e.length)return;const r=document.querySelectorAll(t);for(const i of r){let s=!1;const l=yield On(i);sn({},i,()=>_(null,null,function*(){if(s)return;s=!0,i.removeAttribute("data-anchor-polyfill");const c=yield Dr(i,l);if(Object.values(c).every(a=>a<=0)){i.removeAttribute("data-anchor-polyfill-last-successful"),s=!1;return}for(const[a,{uuid:o}]of e.entries()){i.setAttribute("data-anchor-polyfill",o);const u=yield Dr(i,l);if(Object.values(u).every(h=>h<=0)){i.setAttribute("data-anchor-polyfill-last-successful",o),s=!1;break}if(a===e.length-1){const h=i.getAttribute("data-anchor-polyfill-last-successful");h?i.setAttribute("data-anchor-polyfill",h):i.removeAttribute("data-anchor-polyfill"),s=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function td(t,e=!1){return _(this,null,function*(){var n,r;for(const i of Object.values(t))yield Kp((n=i.declarations)!=null?n:{},e);for(const[i,s]of Object.entries(t))yield Zp(i,(r=s.fallbacks)!=null?r:[],e)})}function ed(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),(!Array.isArray(e.roots)||e.roots.length===0)&&(e.roots=[document]),Object.assign(e,{useAnimationFrame:n})}function nd(t){return _(this,null,function*(){const e=ed(t??window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield Mf(e),r={},i;Cf();try{Lf(n)&&(n=_r(n));const s=yield Up(n,{roots:e.roots});r=s.rules,i=s.inlineStyles}catch(s){throw vf(),s}return Object.values(r).length&&(_r(n,i,!0),yield td(r,e.useAnimationFrame)),r})}exports.default=nd;
|