@pfct/purple 1.5.0-rc.5 → 1.5.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/chunks/clsx.C11secjj.js +1 -0
- package/dist/chunks/clsx.OuTLNxxd.js +16 -0
- package/dist/chunks/index.55uP5Llv.js +23 -0
- package/dist/chunks/index.BB3W3jfD.js +58 -0
- package/dist/chunks/index.BKH_IfIv.js +734 -0
- package/dist/chunks/index.BSjRagb_.js +5 -0
- package/dist/chunks/index.Bl_fYP4h.js +78 -0
- package/dist/chunks/index.C6gQFc3A.js +1 -0
- package/dist/chunks/index.CDFgfSC_.js +106 -0
- package/dist/chunks/index.COC-ih10.js +1 -0
- package/dist/chunks/index.CSxTWj2O.js +1 -0
- package/dist/chunks/index.C_vToOO_.js +1 -0
- package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
- package/dist/chunks/index.Cw8-3kaP.js +1 -0
- package/dist/chunks/index.Cwg-luV1.js +60 -0
- package/dist/chunks/index.D1sqxe4V.js +13 -0
- package/dist/chunks/index.D44slB7j.js +1 -0
- package/dist/chunks/index.DBTu0V6e.js +1658 -0
- package/dist/chunks/index.DC_I05Aq.js +1 -0
- package/dist/chunks/index.DMhXgOEz.js +1 -0
- package/dist/chunks/index.DoZ51x4G.js +41 -0
- package/dist/chunks/index.DuekHEmj.js +6 -0
- package/dist/chunks/index.IrMKAFqG.js +773 -0
- package/dist/chunks/index.ZuOrgs85.js +1 -0
- package/dist/chunks/index.dlWziLJm.js +1 -0
- package/dist/chunks/index.styled.BPTg13oV.js +354 -0
- package/dist/chunks/{index.styled.Bc4yfmzB.js → index.styled.CcpQ8zPL.js} +294 -381
- package/dist/chunks/index.wFBaTsPC.js +537 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +493 -342
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +25 -27
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
- package/dist/components/BottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/index.es.js +1 -1
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +1 -1
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +7 -3
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +1 -1
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +24 -26
- package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.styled.es.js +22 -24
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +23 -23
- package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +19 -21
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.es.js +19 -21
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.es.js +19 -21
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.d.ts +2 -1
- package/dist/components/Control/index.es.js +4 -4
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +30 -32
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +2 -2
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +17 -17
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +29 -31
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +51 -53
- package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.util.es.js +22 -24
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +13 -13
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +30 -32
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +8 -8
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.es.js +20 -22
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +1 -1
- package/dist/components/Loading/index.cjs.js +1 -1
- package/dist/components/Loading/index.es.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.es.js +3 -3
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +13 -13
- package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
- package/dist/components/MiniButton/common/index.styled.es.js +21 -23
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.d.ts +14 -27
- package/dist/components/Modal/index.es.js +99 -7
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +13 -13
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +15 -15
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +19 -21
- package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +21 -21
- package/dist/components/SelectBox/index.styled.cjs.js +1 -1
- package/dist/components/SelectBox/index.styled.es.js +26 -28
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +21 -23
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +25 -27
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +3 -3
- package/dist/components/Tag/index.styled.cjs.js +1 -1
- package/dist/components/Tag/index.styled.es.js +19 -21
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +16 -17
- package/dist/components/TextArea/index.cjs.js +1 -0
- package/dist/components/TextArea/index.d.ts +80 -0
- package/dist/components/TextArea/index.es.js +30 -0
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.es.js +3 -3
- package/dist/components/Title/index.styled.cjs.js +1 -1
- package/dist/components/Title/index.styled.es.js +22 -24
- package/dist/components/Toast/index.cjs.js +1 -0
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.es.js +36 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.es.js +164 -142
- package/dist/components/ui/bottomSheet.cjs.js +13 -13
- package/dist/components/ui/bottomSheet.es.js +76 -71
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.es.js +4 -4
- package/dist/components/ui/checkbox.cjs.js +1 -0
- package/dist/components/ui/checkbox.d.ts +9 -0
- package/dist/components/ui/checkbox.es.js +448 -0
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +30 -30
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.es.js +2 -2
- package/dist/components/ui/impact-tooltip.cjs.js +1 -0
- package/dist/components/ui/impact-tooltip.d.ts +16 -0
- package/dist/components/ui/impact-tooltip.es.js +461 -0
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.es.js +2 -2
- package/dist/components/ui/tooltip.cjs.js +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.es.js +387 -0
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.es.js +3 -3
- package/dist/core/Colors/index.cjs.js +1 -1
- package/dist/core/Colors/index.d.ts +0 -4
- package/dist/core/Colors/index.es.js +4 -8
- package/dist/core/Display/Mobile.cjs.js +1 -1
- package/dist/core/Display/Mobile.es.js +1 -1
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +1 -1
- package/dist/core/Display/index.styled.cjs.js +1 -1
- package/dist/core/Display/index.styled.es.js +20 -22
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.es.js +2 -2
- package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
- package/dist/hooks/useLayoutIsMobile.es.js +20 -22
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +12 -12
- package/dist/icons/src/aliases/aliases.es.js +40 -40
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +80 -80
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +16 -16
- package/dist/icons/src/aliases/prefixed.es.js +46 -46
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +17 -17
- package/dist/icons/src/aliases/suffixed.es.js +48 -48
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +9 -9
- package/dist/icons/src/icons/index.es.js +30 -30
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +372 -350
- package/dist/lib/utils.cjs.js +1 -1
- package/dist/lib/utils.es.js +2729 -2
- package/dist/library/BasicLayout/Footer.cjs.js +1 -1
- package/dist/library/BasicLayout/Footer.d.ts +2 -2
- package/dist/library/BasicLayout/Footer.es.js +62 -60
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.d.ts +1 -1
- package/dist/library/BasicLayout/index.es.js +23 -25
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +48 -50
- package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
- package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/index.es.js +8 -8
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +20 -22
- package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +20 -22
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +8 -8
- package/package.json +9 -4
- package/dist/chunks/index.B0KRXeX3.js +0 -205
- package/dist/chunks/index.BiFBNKMb.js +0 -51
- package/dist/chunks/index.C4mr2-78.js +0 -1
- package/dist/chunks/index.CAOufkQO.js +0 -1072
- package/dist/chunks/index.Dazlhpef.js +0 -45
- package/dist/chunks/index.DnJQUgiG.js +0 -1
- package/dist/chunks/index.SS1p-Ys5.js +0 -1
- package/dist/chunks/index.styled.cvcvIoeD.js +0 -412
- package/dist/chunks/utils.B9KdtH6G.js +0 -2493
- package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
- package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
- package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
- package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
- package/dist/components/Control/CheckBox/index.cjs.js +0 -1
- package/dist/components/Control/CheckBox/index.d.ts +0 -12
- package/dist/components/Control/CheckBox/index.es.js +0 -96
- package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
- package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
- package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
- package/dist/components/Modal/BaseModal/index.cjs.js +0 -1
- package/dist/components/Modal/BaseModal/index.d.ts +0 -9
- package/dist/components/Modal/BaseModal/index.es.js +0 -8
- package/dist/components/Modal/BaseModal/index.styled.cjs.js +0 -7
- package/dist/components/Modal/BaseModal/index.styled.d.ts +0 -6
- package/dist/components/Modal/BaseModal/index.styled.es.js +0 -12
- package/dist/components/Modal/index.styled.cjs.js +0 -42
- package/dist/components/Modal/index.styled.d.ts +0 -29
- package/dist/components/Modal/index.styled.es.js +0 -56
- package/dist/components/Stepper/Step.cjs.js +0 -1
- package/dist/components/Stepper/Step.d.ts +0 -13
- package/dist/components/Stepper/Step.es.js +0 -46
- package/dist/components/Stepper/index.cjs.js +0 -1
- package/dist/components/Stepper/index.d.ts +0 -10
- package/dist/components/Stepper/index.es.js +0 -35
- package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
- package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
- package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
- package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
- package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
- package/dist/components/ToastMessage/Toast/index.es.js +0 -32
- package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
- package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
- package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
- package/dist/components/ToastMessage/index.cjs.js +0 -1
- package/dist/components/ToastMessage/index.d.ts +0 -1
- package/dist/components/ToastMessage/index.es.js +0 -4
- package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
- package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
- package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
- package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
- package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
- package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
- package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
- package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
- package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
- package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
- package/dist/components/Tooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -6
- package/dist/components/Tooltip/index.es.js +0 -6
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const Pe=require("react"),h=require("./index.ZuOrgs85.js"),S=require("./index.BIcga6m3.js"),d=require("./jsx-runtime.713F0z8w.js"),N=require("./index.CSxTWj2O.js"),De=require("react-dom"),W=require("./index.DoZ51x4G.js");function J(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=J(Pe),Q=J(De);function Oe(e,t){const n=i.createContext(t),o=s=>{const{children:c,...a}=s,l=i.useMemo(()=>a,Object.values(a));return d.jsxRuntimeExports.jsx(n.Provider,{value:l,children:c})};o.displayName=e+"Provider";function r(s){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Se(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c),l=n.length;n=[...n,c];const u=m=>{var g;const{scope:E,children:x,...b}=m,p=((g=E==null?void 0:E[e])==null?void 0:g[l])||a,P=i.useMemo(()=>b,Object.values(b));return d.jsxRuntimeExports.jsx(p.Provider,{value:P,children:x})};u.displayName=s+"Provider";function f(m,E){var p;const x=((p=E==null?void 0:E[e])==null?void 0:p[l])||a,b=i.useContext(x);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,f]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const l=(a==null?void 0:a[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,je(r,...t)]}function je(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...a,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var ee=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Ne=i.useId||(()=>{}),_e=0;function A(e){const[t,n]=i.useState(Ne());return ee(()=>{n(o=>o??String(_e++))},[e]),e||(t?`radix-${t}`:"")}function Te({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=we({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o,a=N.useCallbackRef(n),l=i.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&a(m)}else r(u)},[s,e,r,a]);return[c,l]}function we({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=N.useCallbackRef(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}function te(e){const t=Ie(e),n=i.forwardRef((o,r)=>{const{children:s,...c}=o,a=i.Children.toArray(s),l=a.find(Ae);if(l){const u=l.props.children,f=a.map(m=>m===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Ie(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const c=Me(r),a=Le(s,r.props);return r.type!==i.Fragment&&(a.ref=o?S.composeRefs(o,c):c),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fe=Symbol("radix.slottable");function Ae(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fe}function Le(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{s(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Me(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=$e.reduce((e,t)=>{const n=te(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsxRuntimeExports.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function We(e,t){e&&Q.flushSync(()=>e.dispatchEvent(t))}var ke="DismissableLayer",$="dismissableLayer.update",Be="dismissableLayer.pointerDownOutside",Ue="dismissableLayer.focusOutside",q,ne=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oe=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...l}=e,u=i.useContext(ne),[f,m]=i.useState(null),E=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=i.useState({}),b=S.useComposedRefs(t,v=>m(v)),p=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(P),D=f?p.indexOf(f):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,R=D>=g,T=Ke(v=>{const w=v.target,K=[...u.branches].some(F=>F.contains(w));!R||K||(r==null||r(v),c==null||c(v),v.defaultPrevented||a==null||a())},E),V=qe(v=>{const w=v.target;[...u.branches].some(F=>F.contains(w))||(s==null||s(v),c==null||c(v),v.defaultPrevented||a==null||a())},E);return N.useEscapeKeydown(v=>{D===u.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&a&&(v.preventDefault(),a()))},E),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(q=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),G(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=q)}},[f,E,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),G())},[f,u]),i.useEffect(()=>{const v=()=>x({});return document.addEventListener($,v),()=>document.removeEventListener($,v)},[]),d.jsxRuntimeExports.jsx(j.div,{...l,ref:b,style:{pointerEvents:y?R?"auto":"none":void 0,...e.style},onFocusCapture:h.composeEventHandlers(e.onFocusCapture,V.onFocusCapture),onBlurCapture:h.composeEventHandlers(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:h.composeEventHandlers(e.onPointerDownCapture,T.onPointerDownCapture)})});oe.displayName=ke;var He="DismissableLayerBranch",Ve=i.forwardRef((e,t)=>{const n=i.useContext(ne),o=i.useRef(null),r=S.useComposedRefs(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsxRuntimeExports.jsx(j.div,{...e,ref:r})});Ve.displayName=He;function Ke(e,t=globalThis==null?void 0:globalThis.document){const n=N.useCallbackRef(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){re(Be,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function qe(e,t=globalThis==null?void 0:globalThis.document){const n=N.useCallbackRef(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&re(Ue,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function G(){const e=new CustomEvent($);document.dispatchEvent(e)}function re(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?We(r,s):r.dispatchEvent(s)}function Ge(e){const t=ze(e),n=i.forwardRef((o,r)=>{const{children:s,...c}=o,a=i.Children.toArray(s),l=a.find(Ye);if(l){const u=l.props.children,f=a.map(m=>m===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ze(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const c=Je(r),a=Xe(s,r.props);return r.type!==i.Fragment&&(a.ref=o?S.composeRefs(o,c):c),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ze=Symbol("radix.slottable");function Ye(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ze}function Xe(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{s(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Je(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],et=Qe.reduce((e,t)=>{const n=Ge(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsxRuntimeExports.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),L="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},tt="FocusScope",se=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,l]=i.useState(null),u=N.useCallbackRef(r),f=N.useCallbackRef(s),m=i.useRef(null),E=S.useComposedRefs(t,p=>l(p)),x=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(y){if(x.paused||!a)return;const R=y.target;a.contains(R)?m.current=R:O(m.current,{select:!0})},P=function(y){if(x.paused||!a)return;const R=y.relatedTarget;R!==null&&(a.contains(R)||O(m.current,{select:!0}))},g=function(y){if(document.activeElement===document.body)for(const T of y)T.removedNodes.length>0&&O(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",P);const D=new MutationObserver(g);return a&&D.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",P),D.disconnect()}}},[o,a,x.paused]),i.useEffect(()=>{if(a){Y.add(x);const p=document.activeElement;if(!a.contains(p)){const g=new CustomEvent(L,z);a.addEventListener(L,u),a.dispatchEvent(g),g.defaultPrevented||(nt(at(ie(a)),{select:!0}),document.activeElement===p&&O(a))}return()=>{a.removeEventListener(L,u),setTimeout(()=>{const g=new CustomEvent(M,z);a.addEventListener(M,f),a.dispatchEvent(g),g.defaultPrevented||O(p??document.body,{select:!0}),a.removeEventListener(M,f),Y.remove(x)},0)}}},[a,u,f,x]);const b=i.useCallback(p=>{if(!n&&!o||x.paused)return;const P=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(P&&g){const D=p.currentTarget,[y,R]=ot(D);y&&R?!p.shiftKey&&g===R?(p.preventDefault(),n&&O(y,{select:!0})):p.shiftKey&&g===y&&(p.preventDefault(),n&&O(R,{select:!0})):g===D&&p.preventDefault()}},[n,o,x.paused]);return d.jsxRuntimeExports.jsx(et.div,{tabIndex:-1,...c,ref:E,onKeyDown:b})});se.displayName=tt;function nt(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(O(o,{select:t}),document.activeElement!==n)return}function ot(e){const t=ie(e),n=Z(t,e),o=Z(t.reverse(),e);return[n,o]}function ie(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!rt(n,{upTo:t}))return n}function rt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function st(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&st(e)&&t&&e.select()}}var Y=it();function it(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=X(e,t),e.unshift(t)},remove(t){var n;e=X(e,t),(n=e[0])==null||n.resume()}}}function X(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function at(e){return e.filter(t=>t.tagName!=="A")}var ct="Portal",ae=i.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=i.useState(!1);ee(()=>s(!0),[]);const c=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return c?Q.default.createPortal(d.jsxRuntimeExports.jsx(j.div,{...o,ref:t}),c):null});ae.displayName=ct;var k="Dialog",[ce,Ot]=Se(k),[ut,C]=ce(k),ue=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,a=i.useRef(null),l=i.useRef(null),[u,f]=Te({prop:o,defaultProp:r??!1,onChange:s});return d.jsxRuntimeExports.jsx(ut,{scope:t,triggerRef:a,contentRef:l,contentId:A(),titleId:A(),descriptionId:A(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),modal:c,children:n})};ue.displayName=k;var le="DialogTrigger",de=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=C(le,n),s=S.useComposedRefs(t,r.triggerRef);return d.jsxRuntimeExports.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":H(r.open),...o,ref:s,onClick:h.composeEventHandlers(e.onClick,r.onOpenToggle)})});de.displayName=le;var B="DialogPortal",[lt,fe]=ce(B,{forceMount:void 0}),pe=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=C(B,t);return d.jsxRuntimeExports.jsx(lt,{scope:t,forceMount:n,children:i.Children.map(o,c=>d.jsxRuntimeExports.jsx(h.Presence,{present:n||s.open,children:d.jsxRuntimeExports.jsx(ae,{asChild:!0,container:r,children:c})}))})};pe.displayName=B;var I="DialogOverlay",me=i.forwardRef((e,t)=>{const n=fe(I,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=C(I,e.__scopeDialog);return s.modal?d.jsxRuntimeExports.jsx(h.Presence,{present:o||s.open,children:d.jsxRuntimeExports.jsx(ft,{...r,ref:t})}):null});me.displayName=I;var dt=te("DialogOverlay.RemoveScroll"),ft=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=C(I,n);return d.jsxRuntimeExports.jsx(W.ReactRemoveScroll,{as:dt,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsxRuntimeExports.jsx(j.div,{"data-state":H(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),_="DialogContent",ve=i.forwardRef((e,t)=>{const n=fe(_,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=C(_,e.__scopeDialog);return d.jsxRuntimeExports.jsx(h.Presence,{present:o||s.open,children:s.modal?d.jsxRuntimeExports.jsx(pt,{...r,ref:t}):d.jsxRuntimeExports.jsx(mt,{...r,ref:t})})});ve.displayName=_;var pt=i.forwardRef((e,t)=>{const n=C(_,e.__scopeDialog),o=i.useRef(null),r=S.useComposedRefs(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return W.hideOthers(s)},[]),d.jsxRuntimeExports.jsx(Ee,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h.composeEventHandlers(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:h.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:h.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault())})}),mt=i.forwardRef((e,t)=>{const n=C(_,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return d.jsxRuntimeExports.jsx(Ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,a;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ee=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,a=C(_,n),l=i.useRef(null),u=S.useComposedRefs(t,l);return W.useFocusGuards(),d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[d.jsxRuntimeExports.jsx(se,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:d.jsxRuntimeExports.jsx(oe,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":H(a.open),...c,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[d.jsxRuntimeExports.jsx(vt,{titleId:a.titleId}),d.jsxRuntimeExports.jsx(gt,{contentRef:l,descriptionId:a.descriptionId})]})]})}),U="DialogTitle",ge=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=C(U,n);return d.jsxRuntimeExports.jsx(j.h2,{id:r.titleId,...o,ref:t})});ge.displayName=U;var xe="DialogDescription",Re=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=C(xe,n);return d.jsxRuntimeExports.jsx(j.p,{id:r.descriptionId,...o,ref:t})});Re.displayName=xe;var ye="DialogClose",he=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=C(ye,n);return d.jsxRuntimeExports.jsx(j.button,{type:"button",...o,ref:t,onClick:h.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});he.displayName=ye;function H(e){return e?"open":"closed"}var Ce="DialogTitleWarning",[St,be]=Oe(Ce,{contentName:_,titleName:U,docsSlug:"dialog"}),vt=({titleId:e})=>{const t=be(Ce),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Et="DialogDescriptionWarning",gt=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${be(Et).contentName}}.`;return i.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},xt=ue,Rt=de,yt=pe,ht=me,Ct=ve,bt=ge,Pt=Re,Dt=he;exports.Close=Dt;exports.Content=Ct;exports.Description=Pt;exports.Overlay=ht;exports.Portal=yt;exports.Root=xt;exports.Title=bt;exports.Trigger=Rt;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { u as g } from "./index.DLcqcWxM.js";
|
|
3
|
+
import { u as A } from "./index.DuekHEmj.js";
|
|
4
|
+
function y(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
5
|
+
return function(o) {
|
|
6
|
+
if (n == null || n(o), t === !1 || !o.defaultPrevented)
|
|
7
|
+
return e == null ? void 0 : e(o);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function P(n, e) {
|
|
11
|
+
return s.useReducer((t, r) => e[t][r] ?? t, n);
|
|
12
|
+
}
|
|
13
|
+
var R = (n) => {
|
|
14
|
+
const { present: e, children: t } = n, r = h(e), o = typeof t == "function" ? t({ present: r.isPresent }) : s.Children.only(t), c = g(r.ref, w(o));
|
|
15
|
+
return typeof t == "function" || r.isPresent ? s.cloneElement(o, { ref: c }) : null;
|
|
16
|
+
};
|
|
17
|
+
R.displayName = "Presence";
|
|
18
|
+
function h(n) {
|
|
19
|
+
const [e, t] = s.useState(), r = s.useRef(null), o = s.useRef(n), c = s.useRef("none"), p = n ? "mounted" : "unmounted", [l, a] = P(p, {
|
|
20
|
+
mounted: {
|
|
21
|
+
UNMOUNT: "unmounted",
|
|
22
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
23
|
+
},
|
|
24
|
+
unmountSuspended: {
|
|
25
|
+
MOUNT: "mounted",
|
|
26
|
+
ANIMATION_END: "unmounted"
|
|
27
|
+
},
|
|
28
|
+
unmounted: {
|
|
29
|
+
MOUNT: "mounted"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return s.useEffect(() => {
|
|
33
|
+
const i = N(r.current);
|
|
34
|
+
c.current = l === "mounted" ? i : "none";
|
|
35
|
+
}, [l]), A(() => {
|
|
36
|
+
const i = r.current, m = o.current;
|
|
37
|
+
if (m !== n) {
|
|
38
|
+
const d = c.current, u = N(i);
|
|
39
|
+
n ? a("MOUNT") : u === "none" || (i == null ? void 0 : i.display) === "none" ? a("UNMOUNT") : a(m && d !== u ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
|
|
40
|
+
}
|
|
41
|
+
}, [n, a]), A(() => {
|
|
42
|
+
if (e) {
|
|
43
|
+
let i;
|
|
44
|
+
const m = e.ownerDocument.defaultView ?? window, f = (u) => {
|
|
45
|
+
const O = N(r.current).includes(u.animationName);
|
|
46
|
+
if (u.target === e && O && (a("ANIMATION_END"), !o.current)) {
|
|
47
|
+
const T = e.style.animationFillMode;
|
|
48
|
+
e.style.animationFillMode = "forwards", i = m.setTimeout(() => {
|
|
49
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = T);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, d = (u) => {
|
|
53
|
+
u.target === e && (c.current = N(r.current));
|
|
54
|
+
};
|
|
55
|
+
return e.addEventListener("animationstart", d), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f), () => {
|
|
56
|
+
m.clearTimeout(i), e.removeEventListener("animationstart", d), e.removeEventListener("animationcancel", f), e.removeEventListener("animationend", f);
|
|
57
|
+
};
|
|
58
|
+
} else
|
|
59
|
+
a("ANIMATION_END");
|
|
60
|
+
}, [e, a]), {
|
|
61
|
+
isPresent: ["mounted", "unmountSuspended"].includes(l),
|
|
62
|
+
ref: s.useCallback((i) => {
|
|
63
|
+
r.current = i ? getComputedStyle(i) : null, t(i);
|
|
64
|
+
}, [])
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function N(n) {
|
|
68
|
+
return (n == null ? void 0 : n.animationName) || "none";
|
|
69
|
+
}
|
|
70
|
+
function w(n) {
|
|
71
|
+
var r, o;
|
|
72
|
+
let e = (r = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : r.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
73
|
+
return t ? n.ref : (e = (o = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : o.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
R as P,
|
|
77
|
+
y as c
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react");function n(t){if(t&&typeof t=="object"&&"default"in t)return t;const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(c,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return c.default=t,Object.freeze(c)}const u=n(r);var a=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};exports.useLayoutEffect2=a;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { j as $ } from "./jsx-runtime.Drh4NO5G.js";
|
|
3
|
+
import { u as w } from "./index.DuekHEmj.js";
|
|
4
|
+
function j(t, u = []) {
|
|
5
|
+
let n = [];
|
|
6
|
+
function d(r, e) {
|
|
7
|
+
const o = c.createContext(e), a = n.length;
|
|
8
|
+
n = [...n, e];
|
|
9
|
+
const m = (i) => {
|
|
10
|
+
var p;
|
|
11
|
+
const { scope: l, children: x, ...v } = i, S = ((p = l == null ? void 0 : l[t]) == null ? void 0 : p[a]) || o, C = c.useMemo(() => v, Object.values(v));
|
|
12
|
+
return /* @__PURE__ */ $.jsx(S.Provider, { value: C, children: x });
|
|
13
|
+
};
|
|
14
|
+
m.displayName = r + "Provider";
|
|
15
|
+
function f(i, l) {
|
|
16
|
+
var S;
|
|
17
|
+
const x = ((S = l == null ? void 0 : l[t]) == null ? void 0 : S[a]) || o, v = c.useContext(x);
|
|
18
|
+
if (v) return v;
|
|
19
|
+
if (e !== void 0) return e;
|
|
20
|
+
throw new Error(`\`${i}\` must be used within \`${r}\``);
|
|
21
|
+
}
|
|
22
|
+
return [m, f];
|
|
23
|
+
}
|
|
24
|
+
const s = () => {
|
|
25
|
+
const r = n.map((e) => c.createContext(e));
|
|
26
|
+
return function(o) {
|
|
27
|
+
const a = (o == null ? void 0 : o[t]) || r;
|
|
28
|
+
return c.useMemo(
|
|
29
|
+
() => ({ [`__scope${t}`]: { ...o, [t]: a } }),
|
|
30
|
+
[o, a]
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
return s.scopeName = t, [d, E(s, ...u)];
|
|
35
|
+
}
|
|
36
|
+
function E(...t) {
|
|
37
|
+
const u = t[0];
|
|
38
|
+
if (t.length === 1) return u;
|
|
39
|
+
const n = () => {
|
|
40
|
+
const d = t.map((s) => ({
|
|
41
|
+
useScope: s(),
|
|
42
|
+
scopeName: s.scopeName
|
|
43
|
+
}));
|
|
44
|
+
return function(r) {
|
|
45
|
+
const e = d.reduce((o, { useScope: a, scopeName: m }) => {
|
|
46
|
+
const i = a(r)[`__scope${m}`];
|
|
47
|
+
return { ...o, ...i };
|
|
48
|
+
}, {});
|
|
49
|
+
return c.useMemo(() => ({ [`__scope${u.scopeName}`]: e }), [e]);
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
return n.scopeName = u.scopeName, n;
|
|
53
|
+
}
|
|
54
|
+
var P = c[" useInsertionEffect ".trim().toString()] || w;
|
|
55
|
+
function y({
|
|
56
|
+
prop: t,
|
|
57
|
+
defaultProp: u,
|
|
58
|
+
onChange: n = () => {
|
|
59
|
+
},
|
|
60
|
+
caller: d
|
|
61
|
+
}) {
|
|
62
|
+
const [s, r, e] = b({
|
|
63
|
+
defaultProp: u,
|
|
64
|
+
onChange: n
|
|
65
|
+
}), o = t !== void 0, a = o ? t : s;
|
|
66
|
+
{
|
|
67
|
+
const f = c.useRef(t !== void 0);
|
|
68
|
+
c.useEffect(() => {
|
|
69
|
+
const i = f.current;
|
|
70
|
+
i !== o && console.warn(
|
|
71
|
+
`${d} is changing from ${i ? "controlled" : "uncontrolled"} to ${o ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
72
|
+
), f.current = o;
|
|
73
|
+
}, [o, d]);
|
|
74
|
+
}
|
|
75
|
+
const m = c.useCallback(
|
|
76
|
+
(f) => {
|
|
77
|
+
var i;
|
|
78
|
+
if (o) {
|
|
79
|
+
const l = h(f) ? f(t) : f;
|
|
80
|
+
l !== t && ((i = e.current) == null || i.call(e, l));
|
|
81
|
+
} else
|
|
82
|
+
r(f);
|
|
83
|
+
},
|
|
84
|
+
[o, t, r, e]
|
|
85
|
+
);
|
|
86
|
+
return [a, m];
|
|
87
|
+
}
|
|
88
|
+
function b({
|
|
89
|
+
defaultProp: t,
|
|
90
|
+
onChange: u
|
|
91
|
+
}) {
|
|
92
|
+
const [n, d] = c.useState(t), s = c.useRef(n), r = c.useRef(u);
|
|
93
|
+
return P(() => {
|
|
94
|
+
r.current = u;
|
|
95
|
+
}, [u]), c.useEffect(() => {
|
|
96
|
+
var e;
|
|
97
|
+
s.current !== n && ((e = r.current) == null || e.call(r, n), s.current = n);
|
|
98
|
+
}, [n, s]), [n, d, r];
|
|
99
|
+
}
|
|
100
|
+
function h(t) {
|
|
101
|
+
return typeof t == "function";
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
j as c,
|
|
105
|
+
y as u
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),c=require("./index.C6gQFc3A.js");function a(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function f(t){const[e,r]=o.useState(i());return c.useLayoutEffect2(()=>{r(n=>n??String(s++))},[t]),t||(e?`radix-${e}`:"")}exports.useId=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react");function a(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=a(s);function o(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function f(e,t=globalThis==null?void 0:globalThis.document){const n=o(e);c.useEffect(()=>{const r=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useCallbackRef=o;exports.useEscapeKeydown=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("react"),l=require("./index.C6gQFc3A.js"),p=require("react-dom"),v=require("./index.Cw8-3kaP.js"),h=require("./jsx-runtime.713F0z8w.js");function f(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=f(b),S=f(p);function y(e){const[t,i]=d.useState(void 0);return l.useLayoutEffect2(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,a=Array.isArray(c)?c[0]:c;s=a.inlineSize,n=a.blockSize}else s=e.offsetWidth,n=e.offsetHeight;i({width:s,height:n})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else i(void 0)},[e]),t}var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=m.reduce((e,t)=>{const i=v.createSlot(`Primitive.${t}`),r=d.forwardRef((o,u)=>{const{asChild:s,...n}=o,c=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsxRuntimeExports.jsx(c,{...n,ref:u})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function g(e,t){e&&S.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=z;exports.dispatchDiscreteCustomEvent=g;exports.useSize=y;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as O } from "./clsx.OuTLNxxd.js";
|
|
2
2
|
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
3
|
var u;
|
|
4
4
|
if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const S=require("react"),b=require("./index.BIcga6m3.js"),f=require("./jsx-runtime.713F0z8w.js");function g(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=g(S);function d(e){const t=j(e),r=l.forwardRef((n,o)=>{const{children:i,...c}=n,s=l.Children.toArray(i),a=s.find(R);if(a){const u=a.props.children,y=s.map(p=>p===a?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,y):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var x=d("Slot");function j(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const c=O(o),s=C(i,o.props);return o.type!==l.Fragment&&(s.ref=n?b.composeRefs(n,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m=Symbol("radix.slottable");function E(e){const t=({children:r})=>f.jsxRuntimeExports.jsx(f.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=m,t}function R(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m}function C(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function O(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Slot=x;exports.createSlot=d;exports.createSlottable=E;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { u as d } from "./index.DuekHEmj.js";
|
|
3
|
+
import * as h from "react-dom";
|
|
4
|
+
import { c as p } from "./index.BB3W3jfD.js";
|
|
5
|
+
import { j as v } from "./jsx-runtime.Drh4NO5G.js";
|
|
6
|
+
function y(r) {
|
|
7
|
+
const [i, t] = c.useState(void 0);
|
|
8
|
+
return d(() => {
|
|
9
|
+
if (r) {
|
|
10
|
+
t({ width: r.offsetWidth, height: r.offsetHeight });
|
|
11
|
+
const e = new ResizeObserver((o) => {
|
|
12
|
+
if (!Array.isArray(o) || !o.length)
|
|
13
|
+
return;
|
|
14
|
+
const n = o[0];
|
|
15
|
+
let s, f;
|
|
16
|
+
if ("borderBoxSize" in n) {
|
|
17
|
+
const a = n.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
|
|
18
|
+
s = u.inlineSize, f = u.blockSize;
|
|
19
|
+
} else
|
|
20
|
+
s = r.offsetWidth, f = r.offsetHeight;
|
|
21
|
+
t({ width: s, height: f });
|
|
22
|
+
});
|
|
23
|
+
return e.observe(r, { box: "border-box" }), () => e.unobserve(r);
|
|
24
|
+
} else
|
|
25
|
+
t(void 0);
|
|
26
|
+
}, [r]), i;
|
|
27
|
+
}
|
|
28
|
+
var b = [
|
|
29
|
+
"a",
|
|
30
|
+
"button",
|
|
31
|
+
"div",
|
|
32
|
+
"form",
|
|
33
|
+
"h2",
|
|
34
|
+
"h3",
|
|
35
|
+
"img",
|
|
36
|
+
"input",
|
|
37
|
+
"label",
|
|
38
|
+
"li",
|
|
39
|
+
"nav",
|
|
40
|
+
"ol",
|
|
41
|
+
"p",
|
|
42
|
+
"select",
|
|
43
|
+
"span",
|
|
44
|
+
"svg",
|
|
45
|
+
"ul"
|
|
46
|
+
], z = b.reduce((r, i) => {
|
|
47
|
+
const t = p(`Primitive.${i}`), e = c.forwardRef((o, n) => {
|
|
48
|
+
const { asChild: s, ...f } = o, a = s ? t : i;
|
|
49
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v.jsx(a, { ...f, ref: n });
|
|
50
|
+
});
|
|
51
|
+
return e.displayName = `Primitive.${i}`, { ...r, [i]: e };
|
|
52
|
+
}, {});
|
|
53
|
+
function x(r, i) {
|
|
54
|
+
r && h.flushSync(() => r.dispatchEvent(i));
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
z as P,
|
|
58
|
+
x as d,
|
|
59
|
+
y as u
|
|
60
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { u as e } from "./index.DuekHEmj.js";
|
|
3
|
+
var s = o[" useId ".trim().toString()] || (() => {
|
|
4
|
+
}), i = 0;
|
|
5
|
+
function c(t) {
|
|
6
|
+
const [r, u] = o.useState(s());
|
|
7
|
+
return e(() => {
|
|
8
|
+
u((a) => a ?? String(i++));
|
|
9
|
+
}, [t]), t || (r ? `radix-${r}` : "");
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as u
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const te=require("react"),vt=require("./index.ZuOrgs85.js"),Z=require("./index.C_vToOO_.js"),ht=require("./index.BIcga6m3.js"),gt=require("./index.CSxTWj2O.js"),W=require("./jsx-runtime.713F0z8w.js"),Fe=require("react-dom"),_e=require("./index.dlWziLJm.js"),Rt=require("./index.C6gQFc3A.js");function ee(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const w=ee(te),ne=ee(Fe);var je="DismissableLayer",Et="dismissableLayer.update",We="dismissableLayer.pointerDownOutside",Be="dismissableLayer.focusOutside",Vt,oe=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),re=w.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...f}=t,l=w.useContext(oe),[a,u]=w.useState(null),p=(a==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=w.useState({}),m=ht.useComposedRefs(e,v=>u(v)),h=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(x),y=a?h.indexOf(a):-1,R=l.layersWithOutsidePointerEventsDisabled.size>0,b=y>=g,A=ze(v=>{const C=v.target,M=[...l.branches].some(O=>O.contains(C));!b||M||(r==null||r(v),s==null||s(v),v.defaultPrevented||c==null||c())},p),P=Ve(v=>{const C=v.target;[...l.branches].some(O=>O.contains(C))||(i==null||i(v),s==null||s(v),v.defaultPrevented||c==null||c())},p);return gt.useEscapeKeydown(v=>{y===l.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&c&&(v.preventDefault(),c()))},p),w.useEffect(()=>{if(a)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Vt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(a)),l.layers.add(a),qt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Vt)}},[a,p,n,l]),w.useEffect(()=>()=>{a&&(l.layers.delete(a),l.layersWithOutsidePointerEventsDisabled.delete(a),qt())},[a,l]),w.useEffect(()=>{const v=()=>d({});return document.addEventListener(Et,v),()=>document.removeEventListener(Et,v)},[]),W.jsxRuntimeExports.jsx(Z.Primitive.div,{...f,ref:m,style:{pointerEvents:R?b?"auto":"none":void 0,...t.style},onFocusCapture:vt.composeEventHandlers(t.onFocusCapture,P.onFocusCapture),onBlurCapture:vt.composeEventHandlers(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:vt.composeEventHandlers(t.onPointerDownCapture,A.onPointerDownCapture)})});re.displayName=je;var He="DismissableLayerBranch",Ie=w.forwardRef((t,e)=>{const n=w.useContext(oe),o=w.useRef(null),r=ht.useComposedRefs(e,o);return w.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),W.jsxRuntimeExports.jsx(Z.Primitive.div,{...t,ref:r})});Ie.displayName=He;function ze(t,e=globalThis==null?void 0:globalThis.document){const n=gt.useCallbackRef(t),o=w.useRef(!1),r=w.useRef(()=>{});return w.useEffect(()=>{const i=c=>{if(c.target&&!o.current){let f=function(){ie(We,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=f,e.addEventListener("click",r.current,{once:!0})):f()}else e.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>o.current=!0}}function Ve(t,e=globalThis==null?void 0:globalThis.document){const n=gt.useCallbackRef(t),o=w.useRef(!1);return w.useEffect(()=>{const r=i=>{i.target&&!o.current&&ie(Be,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function qt(){const t=new CustomEvent(Et);document.dispatchEvent(t)}function ie(t,e,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),o?Z.dispatchDiscreteCustomEvent(r,i):r.dispatchEvent(i)}const qe=["top","right","bottom","left"],K=Math.min,_=Math.max,ut=Math.round,at=Math.floor,V=t=>({x:t,y:t}),Ye={left:"right",right:"left",bottom:"top",top:"bottom"},Xe={start:"end",end:"start"};function Pt(t,e,n){return _(t,K(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function St(t){return t==="x"?"y":"x"}function Dt(t){return t==="y"?"height":"width"}function z(t){return["top","bottom"].includes(U(t))?"y":"x"}function Lt(t){return St(z(t))}function Ue(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Lt(t),i=Dt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=dt(s)),[s,dt(s)]}function Ze(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Xe[e])}function Ke(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Ge(t,e,n,o){const r=et(t);let i=Ke(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Ct)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Ye[e])}function Je(t){return{top:0,right:0,bottom:0,left:0,...t}}function se(t){return typeof t!="number"?Je(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:r}=t;const i=z(e),s=Lt(e),c=Dt(s),f=U(e),l=i==="y",a=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,p=o[c]/2-r[c]/2;let d;switch(f){case"top":d={x:a,y:o.y-r.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(et(e)){case"start":d[s]-=p*(n&&l?-1:1);break;case"end":d[s]+=p*(n&&l?-1:1);break}return d}const Qe=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:a,y:u}=Yt(l,o,f),p=o,d={},m=0;for(let h=0;h<c.length;h++){const{name:x,fn:g}=c[h],{x:y,y:R,data:b,reset:A}=await g({x:a,y:u,initialPlacement:o,placement:p,strategy:r,middlewareData:d,rects:l,platform:s,elements:{reference:t,floating:e}});a=y??a,u=R??u,d={...d,[x]:{...d[x],...b}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):A.rects),{x:a,y:u}=Yt(l,p,f)),h=-1)}return{x:a,y:u,placement:p,strategy:r,middlewareData:d}};async function rt(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:f}=t,{boundary:l="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=X(e,t),m=se(d),x=c[p?u==="floating"?"reference":"floating":u],g=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:a,strategy:f})),y=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),b=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},A=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:R,strategy:f}):y);return{top:(g.top-A.top+m.top)/b.y,bottom:(A.bottom-g.bottom+m.bottom)/b.y,left:(g.left-A.left+m.left)/b.x,right:(A.right-g.right+m.right)/b.x}}const tn=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:f}=e,{element:l,padding:a=0}=X(t,e)||{};if(l==null)return{};const u=se(a),p={x:n,y:o},d=Lt(r),m=Dt(d),h=await s.getDimensions(l),x=d==="y",g=x?"top":"left",y=x?"bottom":"right",R=x?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[d]-p[d]-i.floating[m],A=p[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let v=P?P[R]:0;(!v||!await(s.isElement==null?void 0:s.isElement(P)))&&(v=c.floating[R]||i.floating[m]);const C=b/2-A/2,M=v/2-h[m]/2-1,O=K(u[g],M),$=K(u[y],M),k=O,D=v-h[m]-$,S=v/2-h[m]/2+C,F=Pt(k,S,D),L=!f.arrow&&et(r)!=null&&S!==F&&i.reference[m]/2-(S<k?O:$)-h[m]/2<0,T=L?S<k?S-k:S-D:0;return{[d]:p[d]+T,data:{[d]:F,centerOffset:S-F-T,...L&&{alignmentOffset:T}},reset:L}}}),en=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:l}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...x}=X(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),y=z(c),R=U(c)===c,b=await(f.isRTL==null?void 0:f.isRTL(l.floating)),A=p||(R||!h?[dt(c)]:Ze(c)),P=m!=="none";!p&&P&&A.push(...Ge(c,h,m,b));const v=[c,...A],C=await rt(e,x),M=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(a&&M.push(C[g]),u){const S=Ue(r,s,b);M.push(C[S[0]],C[S[1]])}if(O=[...O,{placement:r,overflows:M}],!M.every(S=>S<=0)){var $,k;const S=((($=i.flip)==null?void 0:$.index)||0)+1,F=v[S];if(F&&(!(u==="alignment"?y!==z(F):!1)||O.every(E=>E.overflows[0]>0&&z(E.placement)===y)))return{data:{index:S,overflows:O},reset:{placement:F}};let L=(k=O.filter(T=>T.overflows[0]<=0).sort((T,E)=>T.overflows[1]-E.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(d){case"bestFit":{var D;const T=(D=O.filter(E=>{if(P){const N=z(E.placement);return N===y||N==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(N=>N>0).reduce((N,I)=>N+I,0)]).sort((E,N)=>E[1]-N[1])[0])==null?void 0:D[0];T&&(L=T);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function Xt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ut(t){return qe.some(e=>t[e]>=0)}const nn=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=X(t,e);switch(o){case"referenceHidden":{const i=await rt(e,{...r,elementContext:"reference"}),s=Xt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ut(s)}}}case"escaped":{const i=await rt(e,{...r,altBoundary:!0}),s=Xt(i,n.floating);return{data:{escapedOffsets:s,escaped:Ut(s)}}}default:return{}}}}};async function on(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=et(n),f=z(n)==="y",l=["left","top"].includes(s)?-1:1,a=i&&f?-1:1,u=X(e,t);let{mainAxis:p,crossAxis:d,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof m=="number"&&(d=c==="end"?m*-1:m),f?{x:d*a,y:p*l}:{x:p*l,y:d*a}}const rn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,f=await on(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:s}}}}},sn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:g,y}=x;return{x:g,y}}},...f}=X(t,e),l={x:n,y:o},a=await rt(e,f),u=z(U(r)),p=St(u);let d=l[p],m=l[u];if(i){const x=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=d+a[x],R=d-a[g];d=Pt(y,d,R)}if(s){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",y=m+a[x],R=m-a[g];m=Pt(y,m,R)}const h=c.fn({...e,[p]:d,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[p]:i,[u]:s}}}}}},cn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:f=!0,crossAxis:l=!0}=X(t,e),a={x:n,y:o},u=z(r),p=St(u);let d=a[p],m=a[u];const h=X(c,e),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(f){const R=p==="y"?"height":"width",b=i.reference[p]-i.floating[R]+x.mainAxis,A=i.reference[p]+i.reference[R]-x.mainAxis;d<b?d=b:d>A&&(d=A)}if(l){var g,y;const R=p==="y"?"width":"height",b=["top","left"].includes(U(r)),A=i.reference[u]-i.floating[R]+(b&&((g=s.offset)==null?void 0:g[u])||0)+(b?0:x.crossAxis),P=i.reference[u]+i.reference[R]+(b?0:((y=s.offset)==null?void 0:y[u])||0)-(b?x.crossAxis:0);m<A?m=A:m>P&&(m=P)}return{[p]:d,[u]:m}}}},ln=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:f=()=>{},...l}=X(t,e),a=await rt(e,l),u=U(r),p=et(r),d=z(r)==="y",{width:m,height:h}=i.floating;let x,g;u==="top"||u==="bottom"?(x=u,g=p===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,x=p==="end"?"top":"bottom");const y=h-a.top-a.bottom,R=m-a.left-a.right,b=K(h-a[x],y),A=K(m-a[g],R),P=!e.middlewareData.shift;let v=b,C=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(C=R),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(v=y),P&&!p){const O=_(a.left,0),$=_(a.right,0),k=_(a.top,0),D=_(a.bottom,0);d?C=m-2*(O!==0||$!==0?O+$:_(a.left,a.right)):v=h-2*(k!==0||D!==0?k+D:_(a.top,a.bottom))}await f({...e,availableWidth:C,availableHeight:v});const M=await s.getDimensions(c.floating);return m!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function xt(){return typeof window<"u"}function nt(t){return ce(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Y(t){var e;return(e=(ce(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ce(t){return xt()?t instanceof Node||t instanceof j(t).Node:!1}function B(t){return xt()?t instanceof Element||t instanceof j(t).Element:!1}function q(t){return xt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function Zt(t){return!xt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function an(t){return["table","td","th"].includes(nt(t))}function wt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Tt(t){const e=Mt(),n=B(t)?H(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function fn(t){let e=G(t);for(;q(e)&&!tt(e);){if(Tt(e))return e;if(wt(e))return null;e=G(e)}return null}function Mt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tt(t){return["html","body","#document"].includes(nt(t))}function H(t){return j(t).getComputedStyle(t)}function yt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function G(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zt(t)&&t.host||Y(t);return Zt(e)?e.host:e}function le(t){const e=G(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&st(e)?e:le(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=le(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=Ot(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}return e.concat(r,it(r,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ae(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=q(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ut(n)!==i||ut(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Nt(t){return B(t)?t:t.contextElement}function Q(t){const e=Nt(t);if(!q(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=ae(e);let s=(i?ut(n.width):n.width)/o,c=(i?ut(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const un=V(0);function fe(t){const e=j(t);return!Mt()||!e.visualViewport?un:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Nt(t);let s=V(1);e&&(o?B(o)&&(s=Q(o)):s=Q(t));const c=dn(i,n,o)?fe(i):V(0);let f=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,a=r.width/s.x,u=r.height/s.y;if(i){const p=j(i),d=o&&B(o)?j(o):o;let m=p,h=Ot(m);for(;h&&o&&d!==m;){const x=Q(h),g=h.getBoundingClientRect(),y=H(h),R=g.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,b=g.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;f*=x.x,l*=x.y,a*=x.x,u*=x.y,f+=R,l+=b,m=j(h),h=Ot(m)}}return pt({width:a,height:u,x:f,y:l})}function $t(t,e){const n=yt(t).scrollLeft;return e?e.left+n:J(Y(t)).left+n}function ue(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-(n?0:$t(t,o)),i=o.top+e.scrollTop;return{x:r,y:i}}function pn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Y(o),c=e?wt(e.floating):!1;if(o===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},l=V(1);const a=V(0),u=q(o);if((u||!u&&!i)&&((nt(o)!=="body"||st(s))&&(f=yt(o)),q(o))){const d=J(o);l=Q(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const p=s&&!u&&!i?ue(s,f,!0):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-f.scrollLeft*l.x+a.x+p.x,y:n.y*l.y-f.scrollTop*l.y+a.y+p.y}}function mn(t){return Array.from(t.getClientRects())}function hn(t){const e=Y(t),n=yt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+$t(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}function gn(t,e){const n=j(t),o=Y(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,f=0;if(r){i=r.width,s=r.height;const l=Mt();(!l||l&&e==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}return{width:i,height:s,x:c,y:f}}function xn(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=q(t)?Q(t):V(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,f=r*i.x,l=o*i.y;return{width:s,height:c,x:f,y:l}}function Kt(t,e,n){let o;if(e==="viewport")o=gn(t,n);else if(e==="document")o=hn(Y(t));else if(B(e))o=xn(e,n);else{const r=fe(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return pt(o)}function de(t,e){const n=G(t);return n===e||!B(n)||tt(n)?!1:H(n).position==="fixed"||de(n,e)}function wn(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>B(c)&&nt(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?G(t):t;for(;B(s)&&!tt(s);){const c=H(s),f=Tt(s);!f&&c.position==="fixed"&&(r=null),(i?!f&&!r:!f&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||st(s)&&!f&&de(t,s))?o=o.filter(a=>a!==s):r=c,s=G(s)}return e.set(t,o),o}function yn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?wt(e)?[]:wn(e,this._c):[].concat(n),o],c=s[0],f=s.reduce((l,a)=>{const u=Kt(e,a,r);return l.top=_(u.top,l.top),l.right=K(u.right,l.right),l.bottom=K(u.bottom,l.bottom),l.left=_(u.left,l.left),l},Kt(e,c,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function vn(t){const{width:e,height:n}=ae(t);return{width:e,height:n}}function bn(t,e,n){const o=q(e),r=Y(e),i=n==="fixed",s=J(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const f=V(0);function l(){f.x=$t(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(c=yt(e)),o){const d=J(e,!0,i,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}else r&&l();i&&!o&&r&&l();const a=r&&!o&&!i?ue(r,c):V(0),u=s.left+c.scrollLeft-f.x-a.x,p=s.top+c.scrollTop-f.y-a.y;return{x:u,y:p,width:s.width,height:s.height}}function bt(t){return H(t).position==="static"}function Gt(t,e){if(!q(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function pe(t,e){const n=j(t);if(wt(t))return n;if(!q(t)){let r=G(t);for(;r&&!tt(r);){if(B(r)&&!bt(r))return r;r=G(r)}return n}let o=Gt(t,e);for(;o&&an(o)&&bt(o);)o=Gt(o,e);return o&&tt(o)&&bt(o)&&!Tt(o)?n:o||fn(t)||n}const An=async function(t){const e=this.getOffsetParent||pe,n=this.getDimensions,o=await n(t.floating);return{reference:bn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Rn(t){return H(t).direction==="rtl"}const En={convertOffsetParentRelativeRectToViewportRelativeRect:pn,getDocumentElement:Y,getClippingRect:yn,getOffsetParent:pe,getElementRects:An,getClientRects:mn,getDimensions:vn,getScale:Q,isElement:B,isRTL:Rn};function me(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pn(t,e){let n=null,o;const r=Y(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const l=t.getBoundingClientRect(),{left:a,top:u,width:p,height:d}=l;if(c||e(),!p||!d)return;const m=at(u),h=at(r.clientWidth-(a+p)),x=at(r.clientHeight-(u+d)),g=at(a),R={rootMargin:-m+"px "+-h+"px "+-x+"px "+-g+"px",threshold:_(0,K(1,f))||1};let b=!0;function A(P){const v=P[0].intersectionRatio;if(v!==f){if(!b)return s();v?s(!1,v):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v===1&&!me(l,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(A,{...R,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,R)}n.observe(t)}return s(!0),i}function Cn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,l=Nt(t),a=r||i?[...l?it(l):[],...it(e)]:[];a.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=l&&c?Pn(l,n):null;let p=-1,d=null;s&&(d=new ResizeObserver(g=>{let[y]=g;y&&y.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var R;(R=d)==null||R.observe(e)})),n()}),l&&!f&&d.observe(l),d.observe(e));let m,h=f?J(t):null;f&&x();function x(){const g=J(t);h&&!me(h,g)&&n(),h=g,m=requestAnimationFrame(x)}return n(),()=>{var g;a.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),u==null||u(),(g=d)==null||g.disconnect(),d=null,f&&cancelAnimationFrame(m)}}const On=rn,Sn=sn,Dn=en,Ln=ln,Tn=nn,Jt=tn,Mn=cn,Nn=(t,e,n)=>{const o=new Map,r={platform:En,...n},i={...r.platform,_c:o};return Qe(t,e,{...r,platform:i})};var $n=typeof document<"u",kn=function(){},ft=$n?te.useLayoutEffect:kn;function mt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!mt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!mt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function he(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Qt(t,e){const n=he(t);return Math.round(e*n)/n}function At(t){const e=w.useRef(t);return ft(()=>{e.current=t}),e}function Fn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:f,open:l}=t,[a,u]=w.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,d]=w.useState(o);mt(p,o)||d(o);const[m,h]=w.useState(null),[x,g]=w.useState(null),y=w.useCallback(E=>{E!==P.current&&(P.current=E,h(E))},[]),R=w.useCallback(E=>{E!==v.current&&(v.current=E,g(E))},[]),b=i||m,A=s||x,P=w.useRef(null),v=w.useRef(null),C=w.useRef(a),M=f!=null,O=At(f),$=At(r),k=At(l),D=w.useCallback(()=>{if(!P.current||!v.current)return;const E={placement:e,strategy:n,middleware:p};$.current&&(E.platform=$.current),Nn(P.current,v.current,E).then(N=>{const I={...N,isPositioned:k.current!==!1};S.current&&!mt(C.current,I)&&(C.current=I,ne.flushSync(()=>{u(I)}))})},[p,e,n,$,k]);ft(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(E=>({...E,isPositioned:!1})))},[l]);const S=w.useRef(!1);ft(()=>(S.current=!0,()=>{S.current=!1}),[]),ft(()=>{if(b&&(P.current=b),A&&(v.current=A),b&&A){if(O.current)return O.current(b,A,D);D()}},[b,A,D,O,M]);const F=w.useMemo(()=>({reference:P,floating:v,setReference:y,setFloating:R}),[y,R]),L=w.useMemo(()=>({reference:b,floating:A}),[b,A]),T=w.useMemo(()=>{const E={position:n,left:0,top:0};if(!L.floating)return E;const N=Qt(L.floating,a.x),I=Qt(L.floating,a.y);return c?{...E,transform:"translate("+N+"px, "+I+"px)",...he(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:I}},[n,c,L.floating,a.x,a.y]);return w.useMemo(()=>({...a,update:D,refs:F,elements:L,floatingStyles:T}),[a,D,F,L,T])}const _n=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Jt({element:o.current,padding:r}).fn(n):{}:o?Jt({element:o,padding:r}).fn(n):{}}}},jn=(t,e)=>({...On(t),options:[t,e]}),Wn=(t,e)=>({...Sn(t),options:[t,e]}),Bn=(t,e)=>({...Mn(t),options:[t,e]}),Hn=(t,e)=>({...Dn(t),options:[t,e]}),In=(t,e)=>({...Ln(t),options:[t,e]}),zn=(t,e)=>({...Tn(t),options:[t,e]}),Vn=(t,e)=>({..._n(t),options:[t,e]});var qn="Arrow",ge=w.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return W.jsxRuntimeExports.jsx(Z.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:W.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});ge.displayName=qn;var Yn=ge,kt="Popper",[xe,Xn]=_e.createContextScope(kt),[Un,we]=xe(kt),ye=t=>{const{__scopePopper:e,children:n}=t,[o,r]=w.useState(null);return W.jsxRuntimeExports.jsx(Un,{scope:e,anchor:o,onAnchorChange:r,children:n})};ye.displayName=kt;var ve="PopperAnchor",be=w.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=we(ve,n),s=w.useRef(null),c=ht.useComposedRefs(e,s);return w.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:W.jsxRuntimeExports.jsx(Z.Primitive.div,{...r,ref:c})});be.displayName=ve;var Ft="PopperContent",[Zn,Kn]=xe(Ft),Ae=w.forwardRef((t,e)=>{var _t,jt,Wt,Bt,Ht,It;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:l=[],collisionPadding:a=0,sticky:u="partial",hideWhenDetached:p=!1,updatePositionStrategy:d="optimized",onPlaced:m,...h}=t,x=we(Ft,n),[g,y]=w.useState(null),R=ht.useComposedRefs(e,ot=>y(ot)),[b,A]=w.useState(null),P=Z.useSize(b),v=(P==null?void 0:P.width)??0,C=(P==null?void 0:P.height)??0,M=o+(i!=="center"?"-"+i:""),O=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},$=Array.isArray(l)?l:[l],k=$.length>0,D={padding:O,boundary:$.filter(Jn),altBoundary:k},{refs:S,floatingStyles:F,placement:L,isPositioned:T,middlewareData:E}=Fn({strategy:"fixed",placement:M,whileElementsMounted:(...ot)=>Cn(...ot,{animationFrame:d==="always"}),elements:{reference:x.anchor},middleware:[jn({mainAxis:r+C,alignmentAxis:s}),f&&Wn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Bn():void 0,...D}),f&&Hn({...D}),In({...D,apply:({elements:ot,rects:zt,availableWidth:Me,availableHeight:Ne})=>{const{width:$e,height:ke}=zt.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${Me}px`),lt.setProperty("--radix-popper-available-height",`${Ne}px`),lt.setProperty("--radix-popper-anchor-width",`${$e}px`),lt.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),b&&Vn({element:b,padding:c}),Qn({arrowWidth:v,arrowHeight:C}),p&&zn({strategy:"referenceHidden",...D})]}),[N,I]=Pe(L),ct=gt.useCallbackRef(m);Rt.useLayoutEffect2(()=>{T&&(ct==null||ct())},[T,ct]);const Oe=(_t=E.arrow)==null?void 0:_t.x,Se=(jt=E.arrow)==null?void 0:jt.y,De=((Wt=E.arrow)==null?void 0:Wt.centerOffset)!==0,[Le,Te]=w.useState();return Rt.useLayoutEffect2(()=>{g&&Te(window.getComputedStyle(g).zIndex)},[g]),W.jsxRuntimeExports.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:T?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Le,"--radix-popper-transform-origin":[(Bt=E.transformOrigin)==null?void 0:Bt.x,(Ht=E.transformOrigin)==null?void 0:Ht.y].join(" "),...((It=E.hide)==null?void 0:It.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:W.jsxRuntimeExports.jsx(Zn,{scope:n,placedSide:N,onArrowChange:A,arrowX:Oe,arrowY:Se,shouldHideArrow:De,children:W.jsxRuntimeExports.jsx(Z.Primitive.div,{"data-side":N,"data-align":I,...h,ref:R,style:{...h.style,animation:T?void 0:"none"}})})})});Ae.displayName=Ft;var Re="PopperArrow",Gn={top:"bottom",right:"left",bottom:"top",left:"right"},Ee=w.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=Kn(Re,o),s=Gn[i.placedSide];return W.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:W.jsxRuntimeExports.jsx(Yn,{...r,ref:n,style:{...r.style,display:"block"}})})});Ee.displayName=Re;function Jn(t){return t!==null}var Qn=t=>({name:"transformOrigin",options:t,fn(e){var x,g,y;const{placement:n,rects:o,middlewareData:r}=e,s=((x=r.arrow)==null?void 0:x.centerOffset)!==0,c=s?0:t.arrowWidth,f=s?0:t.arrowHeight,[l,a]=Pe(n),u={start:"0%",center:"50%",end:"100%"}[a],p=(((g=r.arrow)==null?void 0:g.x)??0)+c/2,d=(((y=r.arrow)==null?void 0:y.y)??0)+f/2;let m="",h="";return l==="bottom"?(m=s?u:`${p}px`,h=`${-f}px`):l==="top"?(m=s?u:`${p}px`,h=`${o.floating.height+f}px`):l==="right"?(m=`${-f}px`,h=s?u:`${d}px`):l==="left"&&(m=`${o.floating.width+f}px`,h=s?u:`${d}px`),{data:{x:m,y:h}}}});function Pe(t){const[e,n="center"]=t.split("-");return[e,n]}var to=ye,eo=be,no=Ae,oo=Ee,ro="Portal",Ce=w.forwardRef((t,e)=>{var c;const{container:n,...o}=t,[r,i]=w.useState(!1);Rt.useLayoutEffect2(()=>i(!0),[]);const s=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?ne.default.createPortal(W.jsxRuntimeExports.jsx(Z.Primitive.div,{...o,ref:e}),s):null});Ce.displayName=ro;exports.Anchor=eo;exports.Arrow=oo;exports.Content=no;exports.DismissableLayer=re;exports.Portal=Ce;exports.Root2=to;exports.createPopperScope=Xn;
|