@pfct/purple 1.5.0-rc.5 → 1.5.0-rc.6

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.
Files changed (303) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/chunks/clsx.C11secjj.js +1 -0
  3. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  4. package/dist/chunks/index.55uP5Llv.js +23 -0
  5. package/dist/chunks/index.BB3W3jfD.js +58 -0
  6. package/dist/chunks/index.BKH_IfIv.js +734 -0
  7. package/dist/chunks/{index.styled.Bc4yfmzB.js → index.BOGczv4f.js} +266 -328
  8. package/dist/chunks/index.BSjRagb_.js +5 -0
  9. package/dist/chunks/index.Bl_fYP4h.js +78 -0
  10. package/dist/chunks/index.C6gQFc3A.js +1 -0
  11. package/dist/chunks/index.CDFgfSC_.js +106 -0
  12. package/dist/chunks/index.COC-ih10.js +1 -0
  13. package/dist/chunks/index.CSxTWj2O.js +1 -0
  14. package/dist/chunks/index.C_vToOO_.js +1 -0
  15. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  16. package/dist/chunks/index.Crigd7-N.js +354 -0
  17. package/dist/chunks/index.Cw8-3kaP.js +1 -0
  18. package/dist/chunks/index.Cwg-luV1.js +60 -0
  19. package/dist/chunks/index.D1sqxe4V.js +13 -0
  20. package/dist/chunks/index.D44slB7j.js +1 -0
  21. package/dist/chunks/index.DBTu0V6e.js +1658 -0
  22. package/dist/chunks/index.DC_I05Aq.js +1 -0
  23. package/dist/chunks/index.DMhXgOEz.js +1 -0
  24. package/dist/chunks/index.DoZ51x4G.js +41 -0
  25. package/dist/chunks/index.DuekHEmj.js +6 -0
  26. package/dist/chunks/index.IrMKAFqG.js +773 -0
  27. package/dist/chunks/index.ZuOrgs85.js +1 -0
  28. package/dist/chunks/index.dlWziLJm.js +1 -0
  29. package/dist/chunks/index.wFBaTsPC.js +537 -0
  30. package/dist/components/Accordion/index.cjs.js +1 -1
  31. package/dist/components/Accordion/index.es.js +493 -342
  32. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  33. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  36. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +25 -27
  38. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  39. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  40. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  42. package/dist/components/BottomSheet/index.cjs.js +1 -1
  43. package/dist/components/BottomSheet/index.es.js +1 -1
  44. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  45. package/dist/components/Button/BaseButton/index.es.js +1 -1
  46. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  48. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  50. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  52. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  54. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  55. package/dist/components/Button/SingleButton/index.es.js +1 -1
  56. package/dist/components/Button/index.cjs.js +1 -1
  57. package/dist/components/Button/index.es.js +1 -1
  58. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  60. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.es.js +22 -24
  62. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  63. package/dist/components/Chips/ChipItem/index.styled.es.js +22 -24
  64. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  65. package/dist/components/Chips/ChipsFrame/index.es.js +13 -13
  66. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  67. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  68. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  69. package/dist/components/Control/CheckMark/index.es.js +19 -21
  70. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  71. package/dist/components/Control/RadioButton/index.es.js +1 -1
  72. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.es.js +19 -21
  74. package/dist/components/Control/Switch/index.cjs.js +1 -1
  75. package/dist/components/Control/Switch/index.es.js +19 -21
  76. package/dist/components/Control/index.cjs.js +1 -1
  77. package/dist/components/Control/index.d.ts +2 -1
  78. package/dist/components/Control/index.es.js +4 -4
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +20 -22
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +30 -32
  93. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  97. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +14 -14
  99. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/index.es.js +29 -31
  101. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  103. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
  105. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  106. package/dist/components/Input/NumberInput/index.es.js +51 -53
  107. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  108. package/dist/components/Input/PostfixInput/index.util.es.js +22 -24
  109. package/dist/components/Input/TextField/index.cjs.js +1 -1
  110. package/dist/components/Input/TextField/index.es.js +13 -13
  111. package/dist/components/Input/index.cjs.js +1 -1
  112. package/dist/components/Input/index.es.js +30 -32
  113. package/dist/components/List/index.cjs.js +1 -1
  114. package/dist/components/List/index.es.js +8 -8
  115. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  116. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  117. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  118. package/dist/components/Loading/ProgressBar/index.styled.es.js +20 -22
  119. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  120. package/dist/components/Loading/Spinner/index.es.js +1 -1
  121. package/dist/components/Loading/index.cjs.js +1 -1
  122. package/dist/components/Loading/index.es.js +1 -1
  123. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  124. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  125. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  126. package/dist/components/MiniButton/IconMiniButton/index.es.js +3 -3
  127. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  128. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +13 -13
  129. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  130. package/dist/components/MiniButton/common/index.styled.es.js +21 -23
  131. package/dist/components/Modal/BaseModal/index.cjs.js +1 -1
  132. package/dist/components/Modal/BaseModal/index.es.js +1 -1
  133. package/dist/components/Modal/index.cjs.js +1 -1
  134. package/dist/components/Modal/index.es.js +1 -1
  135. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  136. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  137. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  138. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  139. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  140. package/dist/components/Navigation/PageNavigationBar/index.es.js +13 -13
  141. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  142. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  143. package/dist/components/Navigation/index.cjs.js +1 -1
  144. package/dist/components/Navigation/index.es.js +13 -13
  145. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  146. package/dist/components/OverlayRoot/index.es.js +19 -21
  147. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  148. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  149. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  150. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  151. package/dist/components/SelectBox/index.cjs.js +1 -1
  152. package/dist/components/SelectBox/index.es.js +14 -14
  153. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  154. package/dist/components/SelectBox/index.styled.es.js +26 -28
  155. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  156. package/dist/components/Tabs/FillTabs/index.es.js +21 -23
  157. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  158. package/dist/components/Tabs/TextTabs/index.es.js +25 -27
  159. package/dist/components/Tag/index.cjs.js +1 -1
  160. package/dist/components/Tag/index.es.js +1 -1
  161. package/dist/components/Tag/index.styled.cjs.js +1 -1
  162. package/dist/components/Tag/index.styled.es.js +19 -21
  163. package/dist/components/Terms/index.cjs.js +1 -1
  164. package/dist/components/Terms/index.es.js +16 -17
  165. package/dist/components/TextArea/index.cjs.js +1 -0
  166. package/dist/components/TextArea/index.d.ts +80 -0
  167. package/dist/components/TextArea/index.es.js +30 -0
  168. package/dist/components/Title/index.cjs.js +1 -1
  169. package/dist/components/Title/index.es.js +1 -1
  170. package/dist/components/Title/index.styled.cjs.js +1 -1
  171. package/dist/components/Title/index.styled.es.js +22 -24
  172. package/dist/components/Toast/index.cjs.js +1 -0
  173. package/dist/components/Toast/index.d.ts +5 -0
  174. package/dist/components/Toast/index.es.js +36 -0
  175. package/dist/components/index.cjs.js +1 -1
  176. package/dist/components/index.d.ts +4 -2
  177. package/dist/components/index.es.js +90 -79
  178. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  179. package/dist/components/ui/bottomSheet.es.js +76 -71
  180. package/dist/components/ui/button.cjs.js +1 -1
  181. package/dist/components/ui/button.es.js +4 -4
  182. package/dist/components/ui/checkbox.cjs.js +1 -0
  183. package/dist/components/ui/checkbox.d.ts +9 -0
  184. package/dist/components/ui/checkbox.es.js +448 -0
  185. package/dist/components/ui/dialog.cjs.js +1 -1
  186. package/dist/components/ui/dialog.es.js +30 -30
  187. package/dist/components/ui/drawer.cjs.js +1 -1
  188. package/dist/components/ui/drawer.es.js +2 -2
  189. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  190. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  191. package/dist/components/ui/impact-tooltip.es.js +461 -0
  192. package/dist/components/ui/share-ui.cjs.js +1 -1
  193. package/dist/components/ui/share-ui.es.js +2 -2
  194. package/dist/components/ui/tooltip.cjs.js +1 -0
  195. package/dist/components/ui/tooltip.d.ts +9 -0
  196. package/dist/components/ui/tooltip.es.js +387 -0
  197. package/dist/components/ui/typography.cjs.js +1 -1
  198. package/dist/components/ui/typography.es.js +3 -3
  199. package/dist/core/Colors/index.cjs.js +1 -1
  200. package/dist/core/Colors/index.d.ts +0 -4
  201. package/dist/core/Colors/index.es.js +4 -8
  202. package/dist/core/Display/Mobile.cjs.js +1 -1
  203. package/dist/core/Display/Mobile.es.js +1 -1
  204. package/dist/core/Display/Pc.cjs.js +1 -1
  205. package/dist/core/Display/Pc.es.js +1 -1
  206. package/dist/core/Display/index.styled.cjs.js +1 -1
  207. package/dist/core/Display/index.styled.es.js +20 -22
  208. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  209. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  210. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  211. package/dist/hooks/useLayoutIsMobile.es.js +20 -22
  212. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  213. package/dist/icons/src/aliases/aliases.d.ts +12 -12
  214. package/dist/icons/src/aliases/aliases.es.js +32 -32
  215. package/dist/icons/src/aliases/index.cjs.js +1 -1
  216. package/dist/icons/src/aliases/index.es.js +64 -64
  217. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  218. package/dist/icons/src/aliases/prefixed.d.ts +16 -16
  219. package/dist/icons/src/aliases/prefixed.es.js +48 -48
  220. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  221. package/dist/icons/src/aliases/suffixed.d.ts +17 -17
  222. package/dist/icons/src/aliases/suffixed.es.js +48 -48
  223. package/dist/icons/src/icons/index.cjs.js +1 -1
  224. package/dist/icons/src/icons/index.d.ts +10 -10
  225. package/dist/icons/src/icons/index.es.js +40 -40
  226. package/dist/index.cjs.js +1 -1
  227. package/dist/index.es.js +282 -271
  228. package/dist/lib/utils.cjs.js +1 -1
  229. package/dist/lib/utils.es.js +2729 -2
  230. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  231. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  232. package/dist/library/BasicLayout/Footer.es.js +38 -37
  233. package/dist/library/BasicLayout/index.cjs.js +1 -1
  234. package/dist/library/BasicLayout/index.d.ts +1 -1
  235. package/dist/library/BasicLayout/index.es.js +23 -25
  236. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  237. package/dist/library/BasicLayout/index.styled.es.js +48 -50
  238. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  239. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  240. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  241. package/dist/utils/GenerateColorStyle/index.es.js +1 -1
  242. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  243. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +20 -22
  244. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  245. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +20 -22
  246. package/dist/utils/index.cjs.js +1 -1
  247. package/dist/utils/index.es.js +1 -1
  248. package/package.json +9 -4
  249. package/dist/chunks/index.B0KRXeX3.js +0 -205
  250. package/dist/chunks/index.BiFBNKMb.js +0 -51
  251. package/dist/chunks/index.C4mr2-78.js +0 -1
  252. package/dist/chunks/index.CAOufkQO.js +0 -1072
  253. package/dist/chunks/index.Dazlhpef.js +0 -45
  254. package/dist/chunks/index.DnJQUgiG.js +0 -1
  255. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  256. package/dist/chunks/index.styled.cvcvIoeD.js +0 -412
  257. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  258. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  259. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  260. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  261. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  262. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  263. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  264. package/dist/components/Control/CheckBox/index.es.js +0 -96
  265. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  266. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  267. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  268. package/dist/components/Stepper/Step.cjs.js +0 -1
  269. package/dist/components/Stepper/Step.d.ts +0 -13
  270. package/dist/components/Stepper/Step.es.js +0 -46
  271. package/dist/components/Stepper/index.cjs.js +0 -1
  272. package/dist/components/Stepper/index.d.ts +0 -10
  273. package/dist/components/Stepper/index.es.js +0 -35
  274. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  275. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  276. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  277. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  278. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  279. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  280. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  281. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  282. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  283. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  284. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  285. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  286. package/dist/components/ToastMessage/index.cjs.js +0 -1
  287. package/dist/components/ToastMessage/index.d.ts +0 -1
  288. package/dist/components/ToastMessage/index.es.js +0 -4
  289. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  290. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  291. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  292. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  293. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  294. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  295. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  296. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  297. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  298. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  299. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  300. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  301. package/dist/components/Tooltip/index.cjs.js +0 -1
  302. package/dist/components/Tooltip/index.d.ts +0 -6
  303. package/dist/components/Tooltip/index.es.js +0 -6
@@ -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;