@senitix/ui 0.4.1 → 0.4.3

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 (393) hide show
  1. package/dist/accordion-BcwB0wwz.cjs +2 -0
  2. package/dist/accordion-BcwB0wwz.cjs.map +1 -0
  3. package/dist/accordion-BwnJKrKm.js +360 -0
  4. package/dist/accordion-BwnJKrKm.js.map +1 -0
  5. package/dist/appointment-scheduler-BoQQO51F.cjs +2 -0
  6. package/dist/appointment-scheduler-BoQQO51F.cjs.map +1 -0
  7. package/dist/appointment-scheduler-DHAs-mF_.js +192 -0
  8. package/dist/appointment-scheduler-DHAs-mF_.js.map +1 -0
  9. package/dist/arrow-right-CM3nmiZe.js +15 -0
  10. package/dist/arrow-right-CM3nmiZe.js.map +1 -0
  11. package/dist/arrow-right-vDxRZOfm.cjs +7 -0
  12. package/dist/arrow-right-vDxRZOfm.cjs.map +1 -0
  13. package/dist/avatar-BlEcWE7T.js +191 -0
  14. package/dist/avatar-BlEcWE7T.js.map +1 -0
  15. package/dist/avatar-Cl38Ye4J.cjs +2 -0
  16. package/dist/avatar-Cl38Ye4J.cjs.map +1 -0
  17. package/dist/badge-BZcdBG5J.cjs +23 -0
  18. package/dist/badge-BZcdBG5J.cjs.map +1 -0
  19. package/dist/badge-D0C_rP2l.js +157 -0
  20. package/dist/badge-D0C_rP2l.js.map +1 -0
  21. package/dist/button-BP_ug5gP.js +126 -0
  22. package/dist/button-BP_ug5gP.js.map +1 -0
  23. package/dist/button-CPuCii0R.cjs +2 -0
  24. package/dist/button-CPuCii0R.cjs.map +1 -0
  25. package/dist/{calendar-DgnhzEfp.js → calendar-86qoSnO7.js} +368 -433
  26. package/dist/calendar-86qoSnO7.js.map +1 -0
  27. package/dist/{calendar-D3RWU0_G.cjs → calendar-BH-AuyiB.cjs} +2 -2
  28. package/dist/{calendar-D3RWU0_G.cjs.map → calendar-BH-AuyiB.cjs.map} +1 -1
  29. package/dist/calendar-CSJ060ym.cjs +2 -0
  30. package/dist/calendar-CSJ060ym.cjs.map +1 -0
  31. package/dist/{calendar-CUxm1K7J.js → calendar-JUSWONQ0.js} +2 -2
  32. package/dist/{calendar-CUxm1K7J.js.map → calendar-JUSWONQ0.js.map} +1 -1
  33. package/dist/{card-DISL3sPJ.cjs → card-CToWUN1K.cjs} +2 -2
  34. package/dist/{card-DISL3sPJ.cjs.map → card-CToWUN1K.cjs.map} +1 -1
  35. package/dist/{card-fId5vof_.js → card-yxbWFvZ1.js} +2 -2
  36. package/dist/{card-fId5vof_.js.map → card-yxbWFvZ1.js.map} +1 -1
  37. package/dist/checkbox-BmugT50K.cjs +2 -0
  38. package/dist/checkbox-BmugT50K.cjs.map +1 -0
  39. package/dist/{checkbox-BY2zxQVv.js → checkbox-CTa9e4SG.js} +95 -97
  40. package/dist/checkbox-CTa9e4SG.js.map +1 -0
  41. package/dist/chevron-left-5h87iFo_.cjs +7 -0
  42. package/dist/chevron-left-5h87iFo_.cjs.map +1 -0
  43. package/dist/chevron-left-DD5mQuvf.js +14 -0
  44. package/dist/chevron-left-DD5mQuvf.js.map +1 -0
  45. package/dist/{chevron-right-Bxf8i4gi.cjs → chevron-right-D-TdAZ7l.cjs} +2 -2
  46. package/dist/{chevron-right-Bxf8i4gi.cjs.map → chevron-right-D-TdAZ7l.cjs.map} +1 -1
  47. package/dist/{chevron-right-BLyGmyaF.js → chevron-right-Di90aqSn.js} +2 -2
  48. package/dist/{chevron-right-BLyGmyaF.js.map → chevron-right-Di90aqSn.js.map} +1 -1
  49. package/dist/chevron-up-Bq55Db6X.cjs +7 -0
  50. package/dist/{chevron-up-C3RClqXD.cjs.map → chevron-up-Bq55Db6X.cjs.map} +1 -1
  51. package/dist/{chevron-up-BmYZUtrk.js → chevron-up-Dr7EIn9V.js} +2 -2
  52. package/dist/{chevron-up-BmYZUtrk.js.map → chevron-up-Dr7EIn9V.js.map} +1 -1
  53. package/dist/clock-BjJE8PGr.js +15 -0
  54. package/dist/clock-BjJE8PGr.js.map +1 -0
  55. package/dist/clock-CnxBAA_O.cjs +7 -0
  56. package/dist/clock-CnxBAA_O.cjs.map +1 -0
  57. package/dist/command-BEpaOk-5.cjs +2 -0
  58. package/dist/command-BEpaOk-5.cjs.map +1 -0
  59. package/dist/command-CYhMM7gX.js +404 -0
  60. package/dist/command-CYhMM7gX.js.map +1 -0
  61. package/dist/components/builders/index.cjs.js +2 -0
  62. package/dist/components/builders/index.cjs.js.map +1 -0
  63. package/dist/components/builders/index.es.js +42 -0
  64. package/dist/components/builders/index.es.js.map +1 -0
  65. package/dist/components/charts/index.cjs.js +1 -1
  66. package/dist/components/charts/index.es.js +7 -6
  67. package/dist/components/charts/index.es.js.map +1 -1
  68. package/dist/components/data-display/index.cjs.js +1 -1
  69. package/dist/components/data-display/index.es.js +43 -20
  70. package/dist/components/dnd/index.cjs.js +1 -1
  71. package/dist/components/dnd/index.es.js +1 -1
  72. package/dist/components/feedback/index.cjs.js +1 -1
  73. package/dist/components/feedback/index.es.js +1 -1
  74. package/dist/components/forms/index.cjs.js +1 -1
  75. package/dist/components/forms/index.es.js +24 -23
  76. package/dist/components/forms/index.es.js.map +1 -1
  77. package/dist/components/layouts/index.cjs.js +1 -1
  78. package/dist/components/layouts/index.es.js +45 -21
  79. package/dist/components/messaging/index.cjs.js +2 -0
  80. package/dist/components/messaging/index.cjs.js.map +1 -0
  81. package/dist/components/messaging/index.es.js +15 -0
  82. package/dist/components/messaging/index.es.js.map +1 -0
  83. package/dist/components/navigation/index.cjs.js +1 -1
  84. package/dist/components/navigation/index.es.js +1 -1
  85. package/dist/components/scheduling/index.cjs.js +2 -0
  86. package/dist/components/scheduling/index.cjs.js.map +1 -0
  87. package/dist/components/scheduling/index.es.js +6 -0
  88. package/dist/components/scheduling/index.es.js.map +1 -0
  89. package/dist/components/ui/index.cjs.js +1 -1
  90. package/dist/components/ui/index.es.js +168 -158
  91. package/dist/components/ui/index.es.js.map +1 -1
  92. package/dist/dialog-Cr9SYCaD.cjs +6 -0
  93. package/dist/dialog-Cr9SYCaD.cjs.map +1 -0
  94. package/dist/dialog-MYAx3Qrc.js +387 -0
  95. package/dist/dialog-MYAx3Qrc.js.map +1 -0
  96. package/dist/dropdown-menu-CkCCV_tw.js +969 -0
  97. package/dist/dropdown-menu-CkCCV_tw.js.map +1 -0
  98. package/dist/dropdown-menu-ejikFvg2.cjs +7 -0
  99. package/dist/dropdown-menu-ejikFvg2.cjs.map +1 -0
  100. package/dist/{ellipsis-6eUne95u.js → ellipsis-CKhpjj5H.js} +2 -2
  101. package/dist/{ellipsis-6eUne95u.js.map → ellipsis-CKhpjj5H.js.map} +1 -1
  102. package/dist/{ellipsis-DkM3GBF5.cjs → ellipsis-Dk7Wfc4i.cjs} +3 -3
  103. package/dist/{ellipsis-DkM3GBF5.cjs.map → ellipsis-Dk7Wfc4i.cjs.map} +1 -1
  104. package/dist/external-link-CGBqsrbm.cjs +7 -0
  105. package/dist/external-link-CGBqsrbm.cjs.map +1 -0
  106. package/dist/external-link-UeWW0ty3.js +16 -0
  107. package/dist/external-link-UeWW0ty3.js.map +1 -0
  108. package/dist/eye-Cved4eAo.cjs +7 -0
  109. package/dist/eye-Cved4eAo.cjs.map +1 -0
  110. package/dist/eye-KdCUpmO8.js +21 -0
  111. package/dist/eye-KdCUpmO8.js.map +1 -0
  112. package/dist/{file-Cw_u_aJB.js → file-CHbdXCWO.js} +2 -2
  113. package/dist/{file-Cw_u_aJB.js.map → file-CHbdXCWO.js.map} +1 -1
  114. package/dist/{file-Cp5UoYUZ.cjs → file-CqYRamm8.cjs} +3 -3
  115. package/dist/{file-Cp5UoYUZ.cjs.map → file-CqYRamm8.cjs.map} +1 -1
  116. package/dist/file-spreadsheet-CpySxI0-.cjs +7 -0
  117. package/dist/file-spreadsheet-CpySxI0-.cjs.map +1 -0
  118. package/dist/file-spreadsheet-EqZMR-mM.js +19 -0
  119. package/dist/file-spreadsheet-EqZMR-mM.js.map +1 -0
  120. package/dist/form-preview-Bm5xHtkw.js +12075 -0
  121. package/dist/form-preview-Bm5xHtkw.js.map +1 -0
  122. package/dist/form-preview-IPEZdspX.cjs +111 -0
  123. package/dist/form-preview-IPEZdspX.cjs.map +1 -0
  124. package/dist/full-calendar-4Ut52QNO.cjs +18 -0
  125. package/dist/full-calendar-4Ut52QNO.cjs.map +1 -0
  126. package/dist/full-calendar-DD_tBy69.js +2631 -0
  127. package/dist/full-calendar-DD_tBy69.js.map +1 -0
  128. package/dist/funnel-chart-Dfj1pOyV.cjs +6 -0
  129. package/dist/funnel-chart-Dfj1pOyV.cjs.map +1 -0
  130. package/dist/funnel-chart-o9qcEMgg.js +2952 -0
  131. package/dist/funnel-chart-o9qcEMgg.js.map +1 -0
  132. package/dist/global-search-DcBKVaM4.cjs +22 -0
  133. package/dist/global-search-DcBKVaM4.cjs.map +1 -0
  134. package/dist/global-search-Dul9CD6-.js +1331 -0
  135. package/dist/global-search-Dul9CD6-.js.map +1 -0
  136. package/dist/hooks/index.cjs.js +1 -1
  137. package/dist/hooks/index.es.js +9 -7
  138. package/dist/hooks/index.es.js.map +1 -1
  139. package/dist/{index-DtaLkIY8.js → index-BGUveO6l.js} +84 -79
  140. package/dist/{index-DtaLkIY8.js.map → index-BGUveO6l.js.map} +1 -1
  141. package/dist/{index-gVbM3K4f.cjs → index-Bhee6XHk.cjs} +2 -2
  142. package/dist/{index-gVbM3K4f.cjs.map → index-Bhee6XHk.cjs.map} +1 -1
  143. package/dist/index-CrSlyWAA.js +1090 -0
  144. package/dist/index-CrSlyWAA.js.map +1 -0
  145. package/dist/{index-Dk_Et2WJ.js → index-D8-pHJim.js} +2 -2
  146. package/dist/{index-Dk_Et2WJ.js.map → index-D8-pHJim.js.map} +1 -1
  147. package/dist/index-Dy_9oyP3.cjs +2 -0
  148. package/dist/{index-D2U2F80P.cjs.map → index-Dy_9oyP3.cjs.map} +1 -1
  149. package/dist/index-hnbbvGmb.cjs +21 -0
  150. package/dist/index-hnbbvGmb.cjs.map +1 -0
  151. package/dist/index.cjs.js +1 -1
  152. package/dist/index.es.js +434 -319
  153. package/dist/index.es.js.map +1 -1
  154. package/dist/input-Pfq8fkiV.js +2718 -0
  155. package/dist/input-Pfq8fkiV.js.map +1 -0
  156. package/dist/input-UBp7V7li.cjs +52 -0
  157. package/dist/input-UBp7V7li.cjs.map +1 -0
  158. package/dist/label-CExiitfO.js +50 -0
  159. package/dist/label-CExiitfO.js.map +1 -0
  160. package/dist/label-F0zGAiI2.cjs +2 -0
  161. package/dist/label-F0zGAiI2.cjs.map +1 -0
  162. package/dist/loader-circle-CBVYGIRp.js +14 -0
  163. package/dist/loader-circle-CBVYGIRp.js.map +1 -0
  164. package/dist/loader-circle-IaJKvYsP.cjs +7 -0
  165. package/dist/loader-circle-IaJKvYsP.cjs.map +1 -0
  166. package/dist/locale-provider-BHGNO4j7.js +1786 -0
  167. package/dist/locale-provider-BHGNO4j7.js.map +1 -0
  168. package/dist/locale-provider-BScpm-eC.cjs +2 -0
  169. package/dist/locale-provider-BScpm-eC.cjs.map +1 -0
  170. package/dist/locale-selector-CRC0VBKl.cjs +12 -0
  171. package/dist/locale-selector-CRC0VBKl.cjs.map +1 -0
  172. package/dist/locale-selector-HuzfE0zZ.js +1740 -0
  173. package/dist/locale-selector-HuzfE0zZ.js.map +1 -0
  174. package/dist/map-pin-CHh0xl6i.js +46 -0
  175. package/dist/map-pin-CHh0xl6i.js.map +1 -0
  176. package/dist/map-pin-DGObSZ40.cjs +17 -0
  177. package/dist/map-pin-DGObSZ40.cjs.map +1 -0
  178. package/dist/message-square-B_xLey5D.js +14 -0
  179. package/dist/message-square-B_xLey5D.js.map +1 -0
  180. package/dist/message-square-_69ua8rH.cjs +7 -0
  181. package/dist/message-square-_69ua8rH.cjs.map +1 -0
  182. package/dist/minus-BUFkTM0k.cjs +7 -0
  183. package/dist/{minus-C0uyaz70.cjs.map → minus-BUFkTM0k.cjs.map} +1 -1
  184. package/dist/{minus-CiwV65ZG.js → minus-DJ0tmymW.js} +2 -2
  185. package/dist/{minus-CiwV65ZG.js.map → minus-DJ0tmymW.js.map} +1 -1
  186. package/dist/multi-container-CytCGxsc.cjs +7 -0
  187. package/dist/multi-container-CytCGxsc.cjs.map +1 -0
  188. package/dist/multi-container-DmkgnCJN.js +799 -0
  189. package/dist/multi-container-DmkgnCJN.js.map +1 -0
  190. package/dist/multi-select-Bj_kIDHE.cjs +7 -0
  191. package/dist/multi-select-Bj_kIDHE.cjs.map +1 -0
  192. package/dist/multi-select-CPF7w871.js +224 -0
  193. package/dist/multi-select-CPF7w871.js.map +1 -0
  194. package/dist/pencil-BJULwaDl.cjs +12 -0
  195. package/dist/pencil-BJULwaDl.cjs.map +1 -0
  196. package/dist/pencil-HL0trGIs.js +31 -0
  197. package/dist/pencil-HL0trGIs.js.map +1 -0
  198. package/dist/permission-matrix-BRqw2RPb.js +6128 -0
  199. package/dist/permission-matrix-BRqw2RPb.js.map +1 -0
  200. package/dist/permission-matrix-CqE8q8Hi.cjs +93 -0
  201. package/dist/permission-matrix-CqE8q8Hi.cjs.map +1 -0
  202. package/dist/phone-B0J1dGIE.js +31 -0
  203. package/dist/phone-B0J1dGIE.js.map +1 -0
  204. package/dist/phone-DPA6vucM.cjs +12 -0
  205. package/dist/phone-DPA6vucM.cjs.map +1 -0
  206. package/dist/plus-Bcuujcqd.cjs +7 -0
  207. package/dist/{plus-BsV82JJ5.cjs.map → plus-Bcuujcqd.cjs.map} +1 -1
  208. package/dist/{plus-DxD6rofl.js → plus-D7DMDKb8.js} +2 -2
  209. package/dist/{plus-DxD6rofl.js.map → plus-D7DMDKb8.js.map} +1 -1
  210. package/dist/popover-Bba1ELMX.cjs +2 -0
  211. package/dist/popover-Bba1ELMX.cjs.map +1 -0
  212. package/dist/popover-CZWAuYUL.js +281 -0
  213. package/dist/popover-CZWAuYUL.js.map +1 -0
  214. package/dist/progress-BPpsmZ48.js +218 -0
  215. package/dist/progress-BPpsmZ48.js.map +1 -0
  216. package/dist/progress-BrzjVhWG.cjs +22 -0
  217. package/dist/progress-BrzjVhWG.cjs.map +1 -0
  218. package/dist/providers/index.cjs.js +1 -1
  219. package/dist/providers/index.es.js +1 -1
  220. package/dist/radio-group-B9RM_c7e.js +244 -0
  221. package/dist/radio-group-B9RM_c7e.js.map +1 -0
  222. package/dist/radio-group-_n8TTqNQ.cjs +2 -0
  223. package/dist/radio-group-_n8TTqNQ.cjs.map +1 -0
  224. package/dist/record-dialog-footer-DbH9A6eA.js +2577 -0
  225. package/dist/record-dialog-footer-DbH9A6eA.js.map +1 -0
  226. package/dist/record-dialog-footer-DpDxH5wX.cjs +37 -0
  227. package/dist/record-dialog-footer-DpDxH5wX.cjs.map +1 -0
  228. package/dist/scroll-area-CGNbDUBQ.js +889 -0
  229. package/dist/scroll-area-CGNbDUBQ.js.map +1 -0
  230. package/dist/scroll-area-HsTSI_58.cjs +22 -0
  231. package/dist/scroll-area-HsTSI_58.cjs.map +1 -0
  232. package/dist/select-CEsYpjPi.cjs +2 -0
  233. package/dist/select-CEsYpjPi.cjs.map +1 -0
  234. package/dist/{select-BJpZrtep.js → select-Ce2C2acZ.js} +184 -179
  235. package/dist/select-Ce2C2acZ.js.map +1 -0
  236. package/dist/send-DIkOd-pu.js +21 -0
  237. package/dist/send-DIkOd-pu.js.map +1 -0
  238. package/dist/send-H6HC-rS8.cjs +7 -0
  239. package/dist/send-H6HC-rS8.cjs.map +1 -0
  240. package/dist/shared-inbox-Bv0AgLew.js +702 -0
  241. package/dist/shared-inbox-Bv0AgLew.js.map +1 -0
  242. package/dist/shared-inbox-DWEKfDX3.cjs +22 -0
  243. package/dist/shared-inbox-DWEKfDX3.cjs.map +1 -0
  244. package/dist/sheet-DTimb4SJ.cjs +2 -0
  245. package/dist/sheet-DTimb4SJ.cjs.map +1 -0
  246. package/dist/sheet-DgpAPCAp.js +147 -0
  247. package/dist/sheet-DgpAPCAp.js.map +1 -0
  248. package/dist/{skeleton-Bl6FAxHT.js → skeleton-C_dwS3_6.js} +2 -2
  249. package/dist/{skeleton-Bl6FAxHT.js.map → skeleton-C_dwS3_6.js.map} +1 -1
  250. package/dist/{skeleton-Cb6MWerF.cjs → skeleton-D3YsjVWD.cjs} +2 -2
  251. package/dist/{skeleton-Cb6MWerF.cjs.map → skeleton-D3YsjVWD.cjs.map} +1 -1
  252. package/dist/sparkline-chart-BP4bk24J.js +15881 -0
  253. package/dist/sparkline-chart-BP4bk24J.js.map +1 -0
  254. package/dist/sparkline-chart-D6SLZVjp.cjs +79 -0
  255. package/dist/sparkline-chart-D6SLZVjp.cjs.map +1 -0
  256. package/dist/styles.css +1 -1
  257. package/dist/switch-AEZvZSRV.cjs +2 -0
  258. package/dist/switch-AEZvZSRV.cjs.map +1 -0
  259. package/dist/switch-BF4LLvaU.js +147 -0
  260. package/dist/switch-BF4LLvaU.js.map +1 -0
  261. package/dist/table-2-Bn-YjZ9s.cjs +17 -0
  262. package/dist/table-2-Bn-YjZ9s.cjs.map +1 -0
  263. package/dist/table-2-C7E_N72K.js +52 -0
  264. package/dist/table-2-C7E_N72K.js.map +1 -0
  265. package/dist/textarea-4qZDuQ-C.js +206 -0
  266. package/dist/textarea-4qZDuQ-C.js.map +1 -0
  267. package/dist/textarea-Bq_zyt0L.cjs +2 -0
  268. package/dist/textarea-Bq_zyt0L.cjs.map +1 -0
  269. package/dist/tooltip-Dd7le9EO.cjs +2 -0
  270. package/dist/tooltip-Dd7le9EO.cjs.map +1 -0
  271. package/dist/tooltip-Dee-pNPI.js +338 -0
  272. package/dist/tooltip-Dee-pNPI.js.map +1 -0
  273. package/dist/trash-2-B3EP3JfM.js +18 -0
  274. package/dist/trash-2-B3EP3JfM.js.map +1 -0
  275. package/dist/trash-2-DWEeKlWT.cjs +7 -0
  276. package/dist/trash-2-DWEeKlWT.cjs.map +1 -0
  277. package/dist/{trending-up-BHFXgLWy.js → trending-up-ljWtN4pj.js} +2 -2
  278. package/dist/{trending-up-BHFXgLWy.js.map → trending-up-ljWtN4pj.js.map} +1 -1
  279. package/dist/{trending-up-BBjz_E69.cjs → trending-up-mLgmkp--.cjs} +2 -2
  280. package/dist/{trending-up-BBjz_E69.cjs.map → trending-up-mLgmkp--.cjs.map} +1 -1
  281. package/dist/upload-2tm-XihE.cjs +7 -0
  282. package/dist/upload-2tm-XihE.cjs.map +1 -0
  283. package/dist/upload-C_JDP8O0.js +16 -0
  284. package/dist/upload-C_JDP8O0.js.map +1 -0
  285. package/dist/use-controllable-state-3ATd6Fqd.cjs +2 -0
  286. package/dist/use-controllable-state-3ATd6Fqd.cjs.map +1 -0
  287. package/dist/use-controllable-state-CEa-Zlq6.js +23 -0
  288. package/dist/use-controllable-state-CEa-Zlq6.js.map +1 -0
  289. package/dist/use-formatters-Bb0fX1lW.cjs +2 -0
  290. package/dist/{use-formatters-CObUgipW.cjs.map → use-formatters-Bb0fX1lW.cjs.map} +1 -1
  291. package/dist/{use-formatters-Bgj3JA4i.js → use-formatters-xeMS4gdV.js} +1160 -1165
  292. package/dist/{use-formatters-Bgj3JA4i.js.map → use-formatters-xeMS4gdV.js.map} +1 -1
  293. package/dist/utils/index.cjs.js +1 -1
  294. package/dist/utils/index.es.js +1 -1
  295. package/dist/welcome-card-Ccbl_miQ.js +1007 -0
  296. package/dist/welcome-card-Ccbl_miQ.js.map +1 -0
  297. package/dist/welcome-card-D-ShMkaS.cjs +37 -0
  298. package/dist/welcome-card-D-ShMkaS.cjs.map +1 -0
  299. package/dist/x-BBkgEhUv.js +15 -0
  300. package/dist/x-BBkgEhUv.js.map +1 -0
  301. package/dist/x-D-El5XAY.cjs +7 -0
  302. package/dist/x-D-El5XAY.cjs.map +1 -0
  303. package/package.json +20 -2
  304. package/dist/avatar-BT_SPwFW.cjs +0 -18
  305. package/dist/avatar-BT_SPwFW.cjs.map +0 -1
  306. package/dist/avatar-C5-ZWIqT.js +0 -305
  307. package/dist/avatar-C5-ZWIqT.js.map +0 -1
  308. package/dist/calendar-BF5drX5u.cjs +0 -12
  309. package/dist/calendar-BF5drX5u.cjs.map +0 -1
  310. package/dist/calendar-DgnhzEfp.js.map +0 -1
  311. package/dist/checkbox-BY2zxQVv.js.map +0 -1
  312. package/dist/checkbox-CL6u7vL6.cjs +0 -2
  313. package/dist/checkbox-CL6u7vL6.cjs.map +0 -1
  314. package/dist/chevron-down-BiUlxZA-.js +0 -14
  315. package/dist/chevron-down-BiUlxZA-.js.map +0 -1
  316. package/dist/chevron-down-Ce0kqXiD.cjs +0 -7
  317. package/dist/chevron-down-Ce0kqXiD.cjs.map +0 -1
  318. package/dist/chevron-up-C3RClqXD.cjs +0 -7
  319. package/dist/createLucideIcon-BC8wu-bu.js +0 -80
  320. package/dist/createLucideIcon-BC8wu-bu.js.map +0 -1
  321. package/dist/createLucideIcon-Cv8nC2E9.cjs +0 -22
  322. package/dist/createLucideIcon-Cv8nC2E9.cjs.map +0 -1
  323. package/dist/filter-tags-DoRzXjuY.cjs +0 -48
  324. package/dist/filter-tags-DoRzXjuY.cjs.map +0 -1
  325. package/dist/filter-tags-zEQmRhEU.js +0 -2712
  326. package/dist/filter-tags-zEQmRhEU.js.map +0 -1
  327. package/dist/full-calendar-5Z4JSj8g.js +0 -3551
  328. package/dist/full-calendar-5Z4JSj8g.js.map +0 -1
  329. package/dist/full-calendar-DjAvCfuE.cjs +0 -23
  330. package/dist/full-calendar-DjAvCfuE.cjs.map +0 -1
  331. package/dist/global-search-BbZfc-VL.js +0 -1216
  332. package/dist/global-search-BbZfc-VL.js.map +0 -1
  333. package/dist/global-search-Bd74_wPV.cjs +0 -22
  334. package/dist/global-search-Bd74_wPV.cjs.map +0 -1
  335. package/dist/index-D2U2F80P.cjs +0 -2
  336. package/dist/index-DG0KV-sw.cjs +0 -11
  337. package/dist/index-DG0KV-sw.cjs.map +0 -1
  338. package/dist/index-XnFSmCuh.js +0 -299
  339. package/dist/index-XnFSmCuh.js.map +0 -1
  340. package/dist/input-BgPy-4Qu.js +0 -3658
  341. package/dist/input-BgPy-4Qu.js.map +0 -1
  342. package/dist/input-Cfr2WB-P.cjs +0 -47
  343. package/dist/input-Cfr2WB-P.cjs.map +0 -1
  344. package/dist/locale-provider-BojNdf1Y.cjs +0 -2
  345. package/dist/locale-provider-BojNdf1Y.cjs.map +0 -1
  346. package/dist/locale-provider-DzBeb-X3.js +0 -1013
  347. package/dist/locale-provider-DzBeb-X3.js.map +0 -1
  348. package/dist/locale-selector-BD1IWk6X.cjs +0 -22
  349. package/dist/locale-selector-BD1IWk6X.cjs.map +0 -1
  350. package/dist/locale-selector-DLRSyVye.js +0 -1772
  351. package/dist/locale-selector-DLRSyVye.js.map +0 -1
  352. package/dist/minus-C0uyaz70.cjs +0 -7
  353. package/dist/multi-container-BZia7HCU.js +0 -748
  354. package/dist/multi-container-BZia7HCU.js.map +0 -1
  355. package/dist/multi-container-BdNbgtPZ.cjs +0 -7
  356. package/dist/multi-container-BdNbgtPZ.cjs.map +0 -1
  357. package/dist/pipeline-Dh052Dvj.cjs +0 -27
  358. package/dist/pipeline-Dh052Dvj.cjs.map +0 -1
  359. package/dist/pipeline-DqWvleNy.js +0 -1076
  360. package/dist/pipeline-DqWvleNy.js.map +0 -1
  361. package/dist/plus-BsV82JJ5.cjs +0 -7
  362. package/dist/popover-BgLxmm1z.cjs +0 -7
  363. package/dist/popover-BgLxmm1z.cjs.map +0 -1
  364. package/dist/popover-PI9jbhnS.js +0 -775
  365. package/dist/popover-PI9jbhnS.js.map +0 -1
  366. package/dist/progress-CTTt_CP3.js +0 -260
  367. package/dist/progress-CTTt_CP3.js.map +0 -1
  368. package/dist/progress-CTWb7X1Q.cjs +0 -37
  369. package/dist/progress-CTWb7X1Q.cjs.map +0 -1
  370. package/dist/scroll-area-A3jGu-Ta.js +0 -974
  371. package/dist/scroll-area-A3jGu-Ta.js.map +0 -1
  372. package/dist/scroll-area-DzDnWIYJ.cjs +0 -12
  373. package/dist/scroll-area-DzDnWIYJ.cjs.map +0 -1
  374. package/dist/select-BJpZrtep.js.map +0 -1
  375. package/dist/select-Ii8HRuXa.cjs +0 -2
  376. package/dist/select-Ii8HRuXa.cjs.map +0 -1
  377. package/dist/separator-BzcDE0Ei.cjs +0 -2
  378. package/dist/separator-BzcDE0Ei.cjs.map +0 -1
  379. package/dist/separator-DyarVo1-.js +0 -396
  380. package/dist/separator-DyarVo1-.js.map +0 -1
  381. package/dist/sheet-DPSdOoE6.js +0 -84
  382. package/dist/sheet-DPSdOoE6.js.map +0 -1
  383. package/dist/sheet-XtjvbEMq.cjs +0 -2
  384. package/dist/sheet-XtjvbEMq.cjs.map +0 -1
  385. package/dist/sparkline-chart-CeCDeMNk.cjs +0 -102
  386. package/dist/sparkline-chart-CeCDeMNk.cjs.map +0 -1
  387. package/dist/sparkline-chart-DUS4CoW_.js +0 -19787
  388. package/dist/sparkline-chart-DUS4CoW_.js.map +0 -1
  389. package/dist/use-formatters-CObUgipW.cjs +0 -2
  390. package/dist/welcome-card-CNuEa6Ck.cjs +0 -67
  391. package/dist/welcome-card-CNuEa6Ck.cjs.map +0 -1
  392. package/dist/welcome-card-Cp6t6G3j.js +0 -1041
  393. package/dist/welcome-card-Cp6t6G3j.js.map +0 -1
@@ -1,3658 +0,0 @@
1
- import { jsx as w, jsxs as Ot } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import de, { useState as yo, useLayoutEffect as bo } from "react";
4
- import { f as rt, g as Le, h as U, i as be, k as ee, P as K, j as O, q as En, u as Sn, m as ot, C as Co } from "./scroll-area-A3jGu-Ta.js";
5
- import * as xo from "react-dom";
6
- import Eo from "react-dom";
7
- import { c as ne } from "./index-DtaLkIY8.js";
8
- import { c as So } from "./createLucideIcon-BC8wu-bu.js";
9
- import { C as Ro } from "./chevron-right-BLyGmyaF.js";
10
- // @__NO_SIDE_EFFECTS__
11
- function Zt(e) {
12
- const t = /* @__PURE__ */ Mo(e), n = c.forwardRef((r, o) => {
13
- const { children: i, ...s } = r, a = c.Children.toArray(i), d = a.find(Po);
14
- if (d) {
15
- const f = d.props.children, u = a.map((l) => l === d ? c.Children.count(f) > 1 ? c.Children.only(null) : c.isValidElement(f) ? f.props.children : null : l);
16
- return /* @__PURE__ */ w(t, { ...s, ref: o, children: c.isValidElement(f) ? c.cloneElement(f, void 0, u) : null });
17
- }
18
- return /* @__PURE__ */ w(t, { ...s, ref: o, children: i });
19
- });
20
- return n.displayName = `${e}.Slot`, n;
21
- }
22
- // @__NO_SIDE_EFFECTS__
23
- function Mo(e) {
24
- const t = c.forwardRef((n, r) => {
25
- const { children: o, ...i } = n;
26
- if (c.isValidElement(o)) {
27
- const s = _o(o), a = Oo(i, o.props);
28
- return o.type !== c.Fragment && (a.ref = r ? rt(r, s) : s), c.cloneElement(o, a);
29
- }
30
- return c.Children.count(o) > 1 ? c.Children.only(null) : null;
31
- });
32
- return t.displayName = `${e}.SlotClone`, t;
33
- }
34
- var Ao = Symbol("radix.slottable");
35
- function Po(e) {
36
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ao;
37
- }
38
- function Oo(e, t) {
39
- const n = { ...t };
40
- for (const r in t) {
41
- const o = e[r], i = t[r];
42
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...a) => {
43
- const d = i(...a);
44
- return o(...a), d;
45
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
46
- }
47
- return { ...e, ...n };
48
- }
49
- function _o(e) {
50
- var r, o;
51
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
52
- return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
53
- }
54
- function Rn(e) {
55
- const t = e + "CollectionProvider", [n, r] = Le(t), [o, i] = n(
56
- t,
57
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
58
- ), s = (m) => {
59
- const { scope: v, children: y } = m, C = de.useRef(null), b = de.useRef(/* @__PURE__ */ new Map()).current;
60
- return /* @__PURE__ */ w(o, { scope: v, itemMap: b, collectionRef: C, children: y });
61
- };
62
- s.displayName = t;
63
- const a = e + "CollectionSlot", d = /* @__PURE__ */ Zt(a), f = de.forwardRef(
64
- (m, v) => {
65
- const { scope: y, children: C } = m, b = i(a, y), x = U(v, b.collectionRef);
66
- return /* @__PURE__ */ w(d, { ref: x, children: C });
67
- }
68
- );
69
- f.displayName = a;
70
- const u = e + "CollectionItemSlot", l = "data-radix-collection-item", p = /* @__PURE__ */ Zt(u), h = de.forwardRef(
71
- (m, v) => {
72
- const { scope: y, children: C, ...b } = m, x = de.useRef(null), E = U(v, x), M = i(u, y);
73
- return de.useEffect(() => (M.itemMap.set(x, { ref: x, ...b }), () => void M.itemMap.delete(x))), /* @__PURE__ */ w(p, { [l]: "", ref: E, children: C });
74
- }
75
- );
76
- h.displayName = u;
77
- function g(m) {
78
- const v = i(e + "CollectionConsumer", m);
79
- return de.useCallback(() => {
80
- const C = v.collectionRef.current;
81
- if (!C) return [];
82
- const b = Array.from(C.querySelectorAll(`[${l}]`));
83
- return Array.from(v.itemMap.values()).sort(
84
- (M, S) => b.indexOf(M.ref.current) - b.indexOf(S.ref.current)
85
- );
86
- }, [v.collectionRef, v.itemMap]);
87
- }
88
- return [
89
- { Provider: s, Slot: f, ItemSlot: h },
90
- g,
91
- r
92
- ];
93
- }
94
- var Do = c[" useInsertionEffect ".trim().toString()] || be;
95
- function _t({
96
- prop: e,
97
- defaultProp: t,
98
- onChange: n = () => {
99
- },
100
- caller: r
101
- }) {
102
- const [o, i, s] = Io({
103
- defaultProp: t,
104
- onChange: n
105
- }), a = e !== void 0, d = a ? e : o;
106
- {
107
- const u = c.useRef(e !== void 0);
108
- c.useEffect(() => {
109
- const l = u.current;
110
- l !== a && console.warn(
111
- `${r} is changing from ${l ? "controlled" : "uncontrolled"} to ${a ? "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.`
112
- ), u.current = a;
113
- }, [a, r]);
114
- }
115
- const f = c.useCallback(
116
- (u) => {
117
- var l;
118
- if (a) {
119
- const p = To(u) ? u(e) : u;
120
- p !== e && ((l = s.current) == null || l.call(s, p));
121
- } else
122
- i(u);
123
- },
124
- [a, e, i, s]
125
- );
126
- return [d, f];
127
- }
128
- function Io({
129
- defaultProp: e,
130
- onChange: t
131
- }) {
132
- const [n, r] = c.useState(e), o = c.useRef(n), i = c.useRef(t);
133
- return Do(() => {
134
- i.current = t;
135
- }, [t]), c.useEffect(() => {
136
- var s;
137
- o.current !== n && ((s = i.current) == null || s.call(i, n), o.current = n);
138
- }, [n, o]), [n, r, i];
139
- }
140
- function To(e) {
141
- return typeof e == "function";
142
- }
143
- var No = c[" useId ".trim().toString()] || (() => {
144
- }), Lo = 0;
145
- function _e(e) {
146
- const [t, n] = c.useState(No());
147
- return be(() => {
148
- n((r) => r ?? String(Lo++));
149
- }, [e]), e || (t ? `radix-${t}` : "");
150
- }
151
- /**
152
- * @license lucide-react v0.441.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */
157
- const ko = So("Circle", [
158
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
159
- ]);
160
- function Fo(e, t = globalThis == null ? void 0 : globalThis.document) {
161
- const n = ee(e);
162
- c.useEffect(() => {
163
- const r = (o) => {
164
- o.key === "Escape" && n(o);
165
- };
166
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
167
- }, [n, t]);
168
- }
169
- var $o = "DismissableLayer", xt = "dismissableLayer.update", Bo = "dismissableLayer.pointerDownOutside", Wo = "dismissableLayer.focusOutside", Qt, Mn = c.createContext({
170
- layers: /* @__PURE__ */ new Set(),
171
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
172
- branches: /* @__PURE__ */ new Set()
173
- }), Dt = c.forwardRef(
174
- (e, t) => {
175
- const {
176
- disableOutsidePointerEvents: n = !1,
177
- onEscapeKeyDown: r,
178
- onPointerDownOutside: o,
179
- onFocusOutside: i,
180
- onInteractOutside: s,
181
- onDismiss: a,
182
- ...d
183
- } = e, f = c.useContext(Mn), [u, l] = c.useState(null), p = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = c.useState({}), g = U(t, (S) => l(S)), m = Array.from(f.layers), [v] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(v), C = u ? m.indexOf(u) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0, x = C >= y, E = Ko((S) => {
184
- const A = S.target, I = [...f.branches].some((_) => _.contains(A));
185
- !x || I || (o == null || o(S), s == null || s(S), S.defaultPrevented || a == null || a());
186
- }, p), M = Vo((S) => {
187
- const A = S.target;
188
- [...f.branches].some((_) => _.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || a == null || a());
189
- }, p);
190
- return Fo((S) => {
191
- C === f.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
192
- }, p), c.useEffect(() => {
193
- if (u)
194
- return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Qt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(u)), f.layers.add(u), Jt(), () => {
195
- n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Qt);
196
- };
197
- }, [u, p, n, f]), c.useEffect(() => () => {
198
- u && (f.layers.delete(u), f.layersWithOutsidePointerEventsDisabled.delete(u), Jt());
199
- }, [u, f]), c.useEffect(() => {
200
- const S = () => h({});
201
- return document.addEventListener(xt, S), () => document.removeEventListener(xt, S);
202
- }, []), /* @__PURE__ */ w(
203
- K.div,
204
- {
205
- ...d,
206
- ref: g,
207
- style: {
208
- pointerEvents: b ? x ? "auto" : "none" : void 0,
209
- ...e.style
210
- },
211
- onFocusCapture: O(e.onFocusCapture, M.onFocusCapture),
212
- onBlurCapture: O(e.onBlurCapture, M.onBlurCapture),
213
- onPointerDownCapture: O(
214
- e.onPointerDownCapture,
215
- E.onPointerDownCapture
216
- )
217
- }
218
- );
219
- }
220
- );
221
- Dt.displayName = $o;
222
- var Go = "DismissableLayerBranch", An = c.forwardRef((e, t) => {
223
- const n = c.useContext(Mn), r = c.useRef(null), o = U(t, r);
224
- return c.useEffect(() => {
225
- const i = r.current;
226
- if (i)
227
- return n.branches.add(i), () => {
228
- n.branches.delete(i);
229
- };
230
- }, [n.branches]), /* @__PURE__ */ w(K.div, { ...e, ref: o });
231
- });
232
- An.displayName = Go;
233
- function Ko(e, t = globalThis == null ? void 0 : globalThis.document) {
234
- const n = ee(e), r = c.useRef(!1), o = c.useRef(() => {
235
- });
236
- return c.useEffect(() => {
237
- const i = (a) => {
238
- if (a.target && !r.current) {
239
- let d = function() {
240
- Pn(
241
- Bo,
242
- n,
243
- f,
244
- { discrete: !0 }
245
- );
246
- };
247
- const f = { originalEvent: a };
248
- a.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
249
- } else
250
- t.removeEventListener("click", o.current);
251
- r.current = !1;
252
- }, s = window.setTimeout(() => {
253
- t.addEventListener("pointerdown", i);
254
- }, 0);
255
- return () => {
256
- window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
257
- };
258
- }, [t, n]), {
259
- // ensures we check React component tree (not just DOM tree)
260
- onPointerDownCapture: () => r.current = !0
261
- };
262
- }
263
- function Vo(e, t = globalThis == null ? void 0 : globalThis.document) {
264
- const n = ee(e), r = c.useRef(!1);
265
- return c.useEffect(() => {
266
- const o = (i) => {
267
- i.target && !r.current && Pn(Wo, n, { originalEvent: i }, {
268
- discrete: !1
269
- });
270
- };
271
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
272
- }, [t, n]), {
273
- onFocusCapture: () => r.current = !0,
274
- onBlurCapture: () => r.current = !1
275
- };
276
- }
277
- function Jt() {
278
- const e = new CustomEvent(xt);
279
- document.dispatchEvent(e);
280
- }
281
- function Pn(e, t, n, { discrete: r }) {
282
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
283
- t && o.addEventListener(e, t, { once: !0 }), r ? En(o, i) : o.dispatchEvent(i);
284
- }
285
- var Qc = Dt, Jc = An, dt = "focusScope.autoFocusOnMount", pt = "focusScope.autoFocusOnUnmount", en = { bubbles: !1, cancelable: !0 }, Ho = "FocusScope", On = c.forwardRef((e, t) => {
286
- const {
287
- loop: n = !1,
288
- trapped: r = !1,
289
- onMountAutoFocus: o,
290
- onUnmountAutoFocus: i,
291
- ...s
292
- } = e, [a, d] = c.useState(null), f = ee(o), u = ee(i), l = c.useRef(null), p = U(t, (m) => d(m)), h = c.useRef({
293
- paused: !1,
294
- pause() {
295
- this.paused = !0;
296
- },
297
- resume() {
298
- this.paused = !1;
299
- }
300
- }).current;
301
- c.useEffect(() => {
302
- if (r) {
303
- let m = function(b) {
304
- if (h.paused || !a) return;
305
- const x = b.target;
306
- a.contains(x) ? l.current = x : ae(l.current, { select: !0 });
307
- }, v = function(b) {
308
- if (h.paused || !a) return;
309
- const x = b.relatedTarget;
310
- x !== null && (a.contains(x) || ae(l.current, { select: !0 }));
311
- }, y = function(b) {
312
- if (document.activeElement === document.body)
313
- for (const E of b)
314
- E.removedNodes.length > 0 && ae(a);
315
- };
316
- document.addEventListener("focusin", m), document.addEventListener("focusout", v);
317
- const C = new MutationObserver(y);
318
- return a && C.observe(a, { childList: !0, subtree: !0 }), () => {
319
- document.removeEventListener("focusin", m), document.removeEventListener("focusout", v), C.disconnect();
320
- };
321
- }
322
- }, [r, a, h.paused]), c.useEffect(() => {
323
- if (a) {
324
- nn.add(h);
325
- const m = document.activeElement;
326
- if (!a.contains(m)) {
327
- const y = new CustomEvent(dt, en);
328
- a.addEventListener(dt, f), a.dispatchEvent(y), y.defaultPrevented || (Uo(qo(_n(a)), { select: !0 }), document.activeElement === m && ae(a));
329
- }
330
- return () => {
331
- a.removeEventListener(dt, f), setTimeout(() => {
332
- const y = new CustomEvent(pt, en);
333
- a.addEventListener(pt, u), a.dispatchEvent(y), y.defaultPrevented || ae(m ?? document.body, { select: !0 }), a.removeEventListener(pt, u), nn.remove(h);
334
- }, 0);
335
- };
336
- }
337
- }, [a, f, u, h]);
338
- const g = c.useCallback(
339
- (m) => {
340
- if (!n && !r || h.paused) return;
341
- const v = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, y = document.activeElement;
342
- if (v && y) {
343
- const C = m.currentTarget, [b, x] = zo(C);
344
- b && x ? !m.shiftKey && y === x ? (m.preventDefault(), n && ae(b, { select: !0 })) : m.shiftKey && y === b && (m.preventDefault(), n && ae(x, { select: !0 })) : y === C && m.preventDefault();
345
- }
346
- },
347
- [n, r, h.paused]
348
- );
349
- return /* @__PURE__ */ w(K.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
350
- });
351
- On.displayName = Ho;
352
- function Uo(e, { select: t = !1 } = {}) {
353
- const n = document.activeElement;
354
- for (const r of e)
355
- if (ae(r, { select: t }), document.activeElement !== n) return;
356
- }
357
- function zo(e) {
358
- const t = _n(e), n = tn(t, e), r = tn(t.reverse(), e);
359
- return [n, r];
360
- }
361
- function _n(e) {
362
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
363
- acceptNode: (r) => {
364
- const o = r.tagName === "INPUT" && r.type === "hidden";
365
- return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
366
- }
367
- });
368
- for (; n.nextNode(); ) t.push(n.currentNode);
369
- return t;
370
- }
371
- function tn(e, t) {
372
- for (const n of e)
373
- if (!jo(n, { upTo: t })) return n;
374
- }
375
- function jo(e, { upTo: t }) {
376
- if (getComputedStyle(e).visibility === "hidden") return !0;
377
- for (; e; ) {
378
- if (t !== void 0 && e === t) return !1;
379
- if (getComputedStyle(e).display === "none") return !0;
380
- e = e.parentElement;
381
- }
382
- return !1;
383
- }
384
- function Yo(e) {
385
- return e instanceof HTMLInputElement && "select" in e;
386
- }
387
- function ae(e, { select: t = !1 } = {}) {
388
- if (e && e.focus) {
389
- const n = document.activeElement;
390
- e.focus({ preventScroll: !0 }), e !== n && Yo(e) && t && e.select();
391
- }
392
- }
393
- var nn = Xo();
394
- function Xo() {
395
- let e = [];
396
- return {
397
- add(t) {
398
- const n = e[0];
399
- t !== n && (n == null || n.pause()), e = rn(e, t), e.unshift(t);
400
- },
401
- remove(t) {
402
- var n;
403
- e = rn(e, t), (n = e[0]) == null || n.resume();
404
- }
405
- };
406
- }
407
- function rn(e, t) {
408
- const n = [...e], r = n.indexOf(t);
409
- return r !== -1 && n.splice(r, 1), n;
410
- }
411
- function qo(e) {
412
- return e.filter((t) => t.tagName !== "A");
413
- }
414
- var Zo = "Portal", Dn = c.forwardRef((e, t) => {
415
- var a;
416
- const { container: n, ...r } = e, [o, i] = c.useState(!1);
417
- be(() => i(!0), []);
418
- const s = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
419
- return s ? Eo.createPortal(/* @__PURE__ */ w(K.div, { ...r, ref: t }), s) : null;
420
- });
421
- Dn.displayName = Zo;
422
- var mt = 0;
423
- function Qo() {
424
- c.useEffect(() => {
425
- const e = document.querySelectorAll("[data-radix-focus-guard]");
426
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? on()), document.body.insertAdjacentElement("beforeend", e[1] ?? on()), mt++, () => {
427
- mt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), mt--;
428
- };
429
- }, []);
430
- }
431
- function on() {
432
- const e = document.createElement("span");
433
- return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
434
- }
435
- var Z = function() {
436
- return Z = Object.assign || function(t) {
437
- for (var n, r = 1, o = arguments.length; r < o; r++) {
438
- n = arguments[r];
439
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
440
- }
441
- return t;
442
- }, Z.apply(this, arguments);
443
- };
444
- function In(e, t) {
445
- var n = {};
446
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
447
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
448
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
449
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
450
- return n;
451
- }
452
- function Jo(e, t, n) {
453
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
454
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
455
- return e.concat(i || Array.prototype.slice.call(t));
456
- }
457
- var Ye = "right-scroll-bar-position", Xe = "width-before-scroll-bar", ei = "with-scroll-bars-hidden", ti = "--removed-body-scroll-bar-size";
458
- function ht(e, t) {
459
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
460
- }
461
- function ni(e, t) {
462
- var n = yo(function() {
463
- return {
464
- // value
465
- value: e,
466
- // last callback
467
- callback: t,
468
- // "memoized" public interface
469
- facade: {
470
- get current() {
471
- return n.value;
472
- },
473
- set current(r) {
474
- var o = n.value;
475
- o !== r && (n.value = r, n.callback(r, o));
476
- }
477
- }
478
- };
479
- })[0];
480
- return n.callback = t, n.facade;
481
- }
482
- var ri = typeof window < "u" ? c.useLayoutEffect : c.useEffect, sn = /* @__PURE__ */ new WeakMap();
483
- function oi(e, t) {
484
- var n = ni(null, function(r) {
485
- return e.forEach(function(o) {
486
- return ht(o, r);
487
- });
488
- });
489
- return ri(function() {
490
- var r = sn.get(n);
491
- if (r) {
492
- var o = new Set(r), i = new Set(e), s = n.current;
493
- o.forEach(function(a) {
494
- i.has(a) || ht(a, null);
495
- }), i.forEach(function(a) {
496
- o.has(a) || ht(a, s);
497
- });
498
- }
499
- sn.set(n, e);
500
- }, [e]), n;
501
- }
502
- function ii(e) {
503
- return e;
504
- }
505
- function si(e, t) {
506
- t === void 0 && (t = ii);
507
- var n = [], r = !1, o = {
508
- read: function() {
509
- if (r)
510
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
511
- return n.length ? n[n.length - 1] : e;
512
- },
513
- useMedium: function(i) {
514
- var s = t(i, r);
515
- return n.push(s), function() {
516
- n = n.filter(function(a) {
517
- return a !== s;
518
- });
519
- };
520
- },
521
- assignSyncMedium: function(i) {
522
- for (r = !0; n.length; ) {
523
- var s = n;
524
- n = [], s.forEach(i);
525
- }
526
- n = {
527
- push: function(a) {
528
- return i(a);
529
- },
530
- filter: function() {
531
- return n;
532
- }
533
- };
534
- },
535
- assignMedium: function(i) {
536
- r = !0;
537
- var s = [];
538
- if (n.length) {
539
- var a = n;
540
- n = [], a.forEach(i), s = n;
541
- }
542
- var d = function() {
543
- var u = s;
544
- s = [], u.forEach(i);
545
- }, f = function() {
546
- return Promise.resolve().then(d);
547
- };
548
- f(), n = {
549
- push: function(u) {
550
- s.push(u), f();
551
- },
552
- filter: function(u) {
553
- return s = s.filter(u), n;
554
- }
555
- };
556
- }
557
- };
558
- return o;
559
- }
560
- function ai(e) {
561
- e === void 0 && (e = {});
562
- var t = si(null);
563
- return t.options = Z({ async: !0, ssr: !1 }, e), t;
564
- }
565
- var Tn = function(e) {
566
- var t = e.sideCar, n = In(e, ["sideCar"]);
567
- if (!t)
568
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
569
- var r = t.read();
570
- if (!r)
571
- throw new Error("Sidecar medium not found");
572
- return c.createElement(r, Z({}, n));
573
- };
574
- Tn.isSideCarExport = !0;
575
- function ci(e, t) {
576
- return e.useMedium(t), Tn;
577
- }
578
- var Nn = ai(), vt = function() {
579
- }, it = c.forwardRef(function(e, t) {
580
- var n = c.useRef(null), r = c.useState({
581
- onScrollCapture: vt,
582
- onWheelCapture: vt,
583
- onTouchMoveCapture: vt
584
- }), o = r[0], i = r[1], s = e.forwardProps, a = e.children, d = e.className, f = e.removeScrollBar, u = e.enabled, l = e.shards, p = e.sideCar, h = e.noRelative, g = e.noIsolation, m = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, x = In(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, M = oi([n, t]), S = Z(Z({}, x), o);
585
- return c.createElement(
586
- c.Fragment,
587
- null,
588
- u && c.createElement(E, { sideCar: Nn, removeScrollBar: f, shards: l, noRelative: h, noIsolation: g, inert: m, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
589
- s ? c.cloneElement(c.Children.only(a), Z(Z({}, S), { ref: M })) : c.createElement(C, Z({}, S, { className: d, ref: M }), a)
590
- );
591
- });
592
- it.defaultProps = {
593
- enabled: !0,
594
- removeScrollBar: !0,
595
- inert: !1
596
- };
597
- it.classNames = {
598
- fullWidth: Xe,
599
- zeroRight: Ye
600
- };
601
- var li = function() {
602
- if (typeof __webpack_nonce__ < "u")
603
- return __webpack_nonce__;
604
- };
605
- function ui() {
606
- if (!document)
607
- return null;
608
- var e = document.createElement("style");
609
- e.type = "text/css";
610
- var t = li();
611
- return t && e.setAttribute("nonce", t), e;
612
- }
613
- function fi(e, t) {
614
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
615
- }
616
- function di(e) {
617
- var t = document.head || document.getElementsByTagName("head")[0];
618
- t.appendChild(e);
619
- }
620
- var pi = function() {
621
- var e = 0, t = null;
622
- return {
623
- add: function(n) {
624
- e == 0 && (t = ui()) && (fi(t, n), di(t)), e++;
625
- },
626
- remove: function() {
627
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
628
- }
629
- };
630
- }, mi = function() {
631
- var e = pi();
632
- return function(t, n) {
633
- c.useEffect(function() {
634
- return e.add(t), function() {
635
- e.remove();
636
- };
637
- }, [t && n]);
638
- };
639
- }, Ln = function() {
640
- var e = mi(), t = function(n) {
641
- var r = n.styles, o = n.dynamic;
642
- return e(r, o), null;
643
- };
644
- return t;
645
- }, hi = {
646
- left: 0,
647
- top: 0,
648
- right: 0,
649
- gap: 0
650
- }, gt = function(e) {
651
- return parseInt(e || "", 10) || 0;
652
- }, vi = function(e) {
653
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
654
- return [gt(n), gt(r), gt(o)];
655
- }, gi = function(e) {
656
- if (e === void 0 && (e = "margin"), typeof window > "u")
657
- return hi;
658
- var t = vi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
659
- return {
660
- left: t[0],
661
- top: t[1],
662
- right: t[2],
663
- gap: Math.max(0, r - n + t[2] - t[0])
664
- };
665
- }, wi = Ln(), we = "data-scroll-locked", yi = function(e, t, n, r) {
666
- var o = e.left, i = e.top, s = e.right, a = e.gap;
667
- return n === void 0 && (n = "margin"), `
668
- .`.concat(ei, ` {
669
- overflow: hidden `).concat(r, `;
670
- padding-right: `).concat(a, "px ").concat(r, `;
671
- }
672
- body[`).concat(we, `] {
673
- overflow: hidden `).concat(r, `;
674
- overscroll-behavior: contain;
675
- `).concat([
676
- t && "position: relative ".concat(r, ";"),
677
- n === "margin" && `
678
- padding-left: `.concat(o, `px;
679
- padding-top: `).concat(i, `px;
680
- padding-right: `).concat(s, `px;
681
- margin-left:0;
682
- margin-top:0;
683
- margin-right: `).concat(a, "px ").concat(r, `;
684
- `),
685
- n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
686
- ].filter(Boolean).join(""), `
687
- }
688
-
689
- .`).concat(Ye, ` {
690
- right: `).concat(a, "px ").concat(r, `;
691
- }
692
-
693
- .`).concat(Xe, ` {
694
- margin-right: `).concat(a, "px ").concat(r, `;
695
- }
696
-
697
- .`).concat(Ye, " .").concat(Ye, ` {
698
- right: 0 `).concat(r, `;
699
- }
700
-
701
- .`).concat(Xe, " .").concat(Xe, ` {
702
- margin-right: 0 `).concat(r, `;
703
- }
704
-
705
- body[`).concat(we, `] {
706
- `).concat(ti, ": ").concat(a, `px;
707
- }
708
- `);
709
- }, an = function() {
710
- var e = parseInt(document.body.getAttribute(we) || "0", 10);
711
- return isFinite(e) ? e : 0;
712
- }, bi = function() {
713
- c.useEffect(function() {
714
- return document.body.setAttribute(we, (an() + 1).toString()), function() {
715
- var e = an() - 1;
716
- e <= 0 ? document.body.removeAttribute(we) : document.body.setAttribute(we, e.toString());
717
- };
718
- }, []);
719
- }, Ci = function(e) {
720
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
721
- bi();
722
- var i = c.useMemo(function() {
723
- return gi(o);
724
- }, [o]);
725
- return c.createElement(wi, { styles: yi(i, !t, o, n ? "" : "!important") });
726
- }, Et = !1;
727
- if (typeof window < "u")
728
- try {
729
- var Ve = Object.defineProperty({}, "passive", {
730
- get: function() {
731
- return Et = !0, !0;
732
- }
733
- });
734
- window.addEventListener("test", Ve, Ve), window.removeEventListener("test", Ve, Ve);
735
- } catch {
736
- Et = !1;
737
- }
738
- var he = Et ? { passive: !1 } : !1, xi = function(e) {
739
- return e.tagName === "TEXTAREA";
740
- }, kn = function(e, t) {
741
- if (!(e instanceof Element))
742
- return !1;
743
- var n = window.getComputedStyle(e);
744
- return (
745
- // not-not-scrollable
746
- n[t] !== "hidden" && // contains scroll inside self
747
- !(n.overflowY === n.overflowX && !xi(e) && n[t] === "visible")
748
- );
749
- }, Ei = function(e) {
750
- return kn(e, "overflowY");
751
- }, Si = function(e) {
752
- return kn(e, "overflowX");
753
- }, cn = function(e, t) {
754
- var n = t.ownerDocument, r = t;
755
- do {
756
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
757
- var o = Fn(e, r);
758
- if (o) {
759
- var i = $n(e, r), s = i[1], a = i[2];
760
- if (s > a)
761
- return !0;
762
- }
763
- r = r.parentNode;
764
- } while (r && r !== n.body);
765
- return !1;
766
- }, Ri = function(e) {
767
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
768
- return [
769
- t,
770
- n,
771
- r
772
- ];
773
- }, Mi = function(e) {
774
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
775
- return [
776
- t,
777
- n,
778
- r
779
- ];
780
- }, Fn = function(e, t) {
781
- return e === "v" ? Ei(t) : Si(t);
782
- }, $n = function(e, t) {
783
- return e === "v" ? Ri(t) : Mi(t);
784
- }, Ai = function(e, t) {
785
- return e === "h" && t === "rtl" ? -1 : 1;
786
- }, Pi = function(e, t, n, r, o) {
787
- var i = Ai(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, d = t.contains(a), f = !1, u = s > 0, l = 0, p = 0;
788
- do {
789
- if (!a)
790
- break;
791
- var h = $n(e, a), g = h[0], m = h[1], v = h[2], y = m - v - i * g;
792
- (g || y) && Fn(e, a) && (l += y, p += g);
793
- var C = a.parentNode;
794
- a = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
795
- } while (
796
- // portaled content
797
- !d && a !== document.body || // self content
798
- d && (t.contains(a) || t === a)
799
- );
800
- return (u && Math.abs(l) < 1 || !u && Math.abs(p) < 1) && (f = !0), f;
801
- }, He = function(e) {
802
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
803
- }, ln = function(e) {
804
- return [e.deltaX, e.deltaY];
805
- }, un = function(e) {
806
- return e && "current" in e ? e.current : e;
807
- }, Oi = function(e, t) {
808
- return e[0] === t[0] && e[1] === t[1];
809
- }, _i = function(e) {
810
- return `
811
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
812
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
813
- `);
814
- }, Di = 0, ve = [];
815
- function Ii(e) {
816
- var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Di++)[0], i = c.useState(Ln)[0], s = c.useRef(e);
817
- c.useEffect(function() {
818
- s.current = e;
819
- }, [e]), c.useEffect(function() {
820
- if (e.inert) {
821
- document.body.classList.add("block-interactivity-".concat(o));
822
- var m = Jo([e.lockRef.current], (e.shards || []).map(un), !0).filter(Boolean);
823
- return m.forEach(function(v) {
824
- return v.classList.add("allow-interactivity-".concat(o));
825
- }), function() {
826
- document.body.classList.remove("block-interactivity-".concat(o)), m.forEach(function(v) {
827
- return v.classList.remove("allow-interactivity-".concat(o));
828
- });
829
- };
830
- }
831
- }, [e.inert, e.lockRef.current, e.shards]);
832
- var a = c.useCallback(function(m, v) {
833
- if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
834
- return !s.current.allowPinchZoom;
835
- var y = He(m), C = n.current, b = "deltaX" in m ? m.deltaX : C[0] - y[0], x = "deltaY" in m ? m.deltaY : C[1] - y[1], E, M = m.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
836
- if ("touches" in m && S === "h" && M.type === "range")
837
- return !1;
838
- var A = window.getSelection(), I = A && A.anchorNode, _ = I ? I === M || I.contains(M) : !1;
839
- if (_)
840
- return !1;
841
- var T = cn(S, M);
842
- if (!T)
843
- return !0;
844
- if (T ? E = S : (E = S === "v" ? "h" : "v", T = cn(S, M)), !T)
845
- return !1;
846
- if (!r.current && "changedTouches" in m && (b || x) && (r.current = E), !E)
847
- return !0;
848
- var L = r.current || E;
849
- return Pi(L, v, m, L === "h" ? b : x);
850
- }, []), d = c.useCallback(function(m) {
851
- var v = m;
852
- if (!(!ve.length || ve[ve.length - 1] !== i)) {
853
- var y = "deltaY" in v ? ln(v) : He(v), C = t.current.filter(function(E) {
854
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Oi(E.delta, y);
855
- })[0];
856
- if (C && C.should) {
857
- v.cancelable && v.preventDefault();
858
- return;
859
- }
860
- if (!C) {
861
- var b = (s.current.shards || []).map(un).filter(Boolean).filter(function(E) {
862
- return E.contains(v.target);
863
- }), x = b.length > 0 ? a(v, b[0]) : !s.current.noIsolation;
864
- x && v.cancelable && v.preventDefault();
865
- }
866
- }
867
- }, []), f = c.useCallback(function(m, v, y, C) {
868
- var b = { name: m, delta: v, target: y, should: C, shadowParent: Ti(y) };
869
- t.current.push(b), setTimeout(function() {
870
- t.current = t.current.filter(function(x) {
871
- return x !== b;
872
- });
873
- }, 1);
874
- }, []), u = c.useCallback(function(m) {
875
- n.current = He(m), r.current = void 0;
876
- }, []), l = c.useCallback(function(m) {
877
- f(m.type, ln(m), m.target, a(m, e.lockRef.current));
878
- }, []), p = c.useCallback(function(m) {
879
- f(m.type, He(m), m.target, a(m, e.lockRef.current));
880
- }, []);
881
- c.useEffect(function() {
882
- return ve.push(i), e.setCallbacks({
883
- onScrollCapture: l,
884
- onWheelCapture: l,
885
- onTouchMoveCapture: p
886
- }), document.addEventListener("wheel", d, he), document.addEventListener("touchmove", d, he), document.addEventListener("touchstart", u, he), function() {
887
- ve = ve.filter(function(m) {
888
- return m !== i;
889
- }), document.removeEventListener("wheel", d, he), document.removeEventListener("touchmove", d, he), document.removeEventListener("touchstart", u, he);
890
- };
891
- }, []);
892
- var h = e.removeScrollBar, g = e.inert;
893
- return c.createElement(
894
- c.Fragment,
895
- null,
896
- g ? c.createElement(i, { styles: _i(o) }) : null,
897
- h ? c.createElement(Ci, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
898
- );
899
- }
900
- function Ti(e) {
901
- for (var t = null; e !== null; )
902
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
903
- return t;
904
- }
905
- const Ni = ci(Nn, Ii);
906
- var Bn = c.forwardRef(function(e, t) {
907
- return c.createElement(it, Z({}, e, { ref: t, sideCar: Ni }));
908
- });
909
- Bn.classNames = it.classNames;
910
- var Li = function(e) {
911
- if (typeof document > "u")
912
- return null;
913
- var t = Array.isArray(e) ? e[0] : e;
914
- return t.ownerDocument.body;
915
- }, ge = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), ze = {}, wt = 0, Wn = function(e) {
916
- return e && (e.host || Wn(e.parentNode));
917
- }, ki = function(e, t) {
918
- return t.map(function(n) {
919
- if (e.contains(n))
920
- return n;
921
- var r = Wn(n);
922
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
923
- }).filter(function(n) {
924
- return !!n;
925
- });
926
- }, Fi = function(e, t, n, r) {
927
- var o = ki(t, Array.isArray(e) ? e : [e]);
928
- ze[n] || (ze[n] = /* @__PURE__ */ new WeakMap());
929
- var i = ze[n], s = [], a = /* @__PURE__ */ new Set(), d = new Set(o), f = function(l) {
930
- !l || a.has(l) || (a.add(l), f(l.parentNode));
931
- };
932
- o.forEach(f);
933
- var u = function(l) {
934
- !l || d.has(l) || Array.prototype.forEach.call(l.children, function(p) {
935
- if (a.has(p))
936
- u(p);
937
- else
938
- try {
939
- var h = p.getAttribute(r), g = h !== null && h !== "false", m = (ge.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
940
- ge.set(p, m), i.set(p, v), s.push(p), m === 1 && g && Ue.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
941
- } catch (y) {
942
- console.error("aria-hidden: cannot operate on ", p, y);
943
- }
944
- });
945
- };
946
- return u(t), a.clear(), wt++, function() {
947
- s.forEach(function(l) {
948
- var p = ge.get(l) - 1, h = i.get(l) - 1;
949
- ge.set(l, p), i.set(l, h), p || (Ue.has(l) || l.removeAttribute(r), Ue.delete(l)), h || l.removeAttribute(n);
950
- }), wt--, wt || (ge = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), ze = {});
951
- };
952
- }, $i = function(e, t, n) {
953
- n === void 0 && (n = "data-aria-hidden");
954
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Li(e);
955
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Fi(r, o, n, "aria-hidden")) : function() {
956
- return null;
957
- };
958
- };
959
- const Bi = ["top", "right", "bottom", "left"], ce = Math.min, V = Math.max, Ze = Math.round, je = Math.floor, J = (e) => ({
960
- x: e,
961
- y: e
962
- }), Wi = {
963
- left: "right",
964
- right: "left",
965
- bottom: "top",
966
- top: "bottom"
967
- }, Gi = {
968
- start: "end",
969
- end: "start"
970
- };
971
- function St(e, t, n) {
972
- return V(e, ce(t, n));
973
- }
974
- function ie(e, t) {
975
- return typeof e == "function" ? e(t) : e;
976
- }
977
- function se(e) {
978
- return e.split("-")[0];
979
- }
980
- function xe(e) {
981
- return e.split("-")[1];
982
- }
983
- function It(e) {
984
- return e === "x" ? "y" : "x";
985
- }
986
- function Tt(e) {
987
- return e === "y" ? "height" : "width";
988
- }
989
- const Ki = /* @__PURE__ */ new Set(["top", "bottom"]);
990
- function Q(e) {
991
- return Ki.has(se(e)) ? "y" : "x";
992
- }
993
- function Nt(e) {
994
- return It(Q(e));
995
- }
996
- function Vi(e, t, n) {
997
- n === void 0 && (n = !1);
998
- const r = xe(e), o = Nt(e), i = Tt(o);
999
- let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1000
- return t.reference[i] > t.floating[i] && (s = Qe(s)), [s, Qe(s)];
1001
- }
1002
- function Hi(e) {
1003
- const t = Qe(e);
1004
- return [Rt(e), t, Rt(t)];
1005
- }
1006
- function Rt(e) {
1007
- return e.replace(/start|end/g, (t) => Gi[t]);
1008
- }
1009
- const fn = ["left", "right"], dn = ["right", "left"], Ui = ["top", "bottom"], zi = ["bottom", "top"];
1010
- function ji(e, t, n) {
1011
- switch (e) {
1012
- case "top":
1013
- case "bottom":
1014
- return n ? t ? dn : fn : t ? fn : dn;
1015
- case "left":
1016
- case "right":
1017
- return t ? Ui : zi;
1018
- default:
1019
- return [];
1020
- }
1021
- }
1022
- function Yi(e, t, n, r) {
1023
- const o = xe(e);
1024
- let i = ji(se(e), n === "start", r);
1025
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Rt)))), i;
1026
- }
1027
- function Qe(e) {
1028
- return e.replace(/left|right|bottom|top/g, (t) => Wi[t]);
1029
- }
1030
- function Xi(e) {
1031
- return {
1032
- top: 0,
1033
- right: 0,
1034
- bottom: 0,
1035
- left: 0,
1036
- ...e
1037
- };
1038
- }
1039
- function Gn(e) {
1040
- return typeof e != "number" ? Xi(e) : {
1041
- top: e,
1042
- right: e,
1043
- bottom: e,
1044
- left: e
1045
- };
1046
- }
1047
- function Je(e) {
1048
- const {
1049
- x: t,
1050
- y: n,
1051
- width: r,
1052
- height: o
1053
- } = e;
1054
- return {
1055
- width: r,
1056
- height: o,
1057
- top: n,
1058
- left: t,
1059
- right: t + r,
1060
- bottom: n + o,
1061
- x: t,
1062
- y: n
1063
- };
1064
- }
1065
- function pn(e, t, n) {
1066
- let {
1067
- reference: r,
1068
- floating: o
1069
- } = e;
1070
- const i = Q(t), s = Nt(t), a = Tt(s), d = se(t), f = i === "y", u = r.x + r.width / 2 - o.width / 2, l = r.y + r.height / 2 - o.height / 2, p = r[a] / 2 - o[a] / 2;
1071
- let h;
1072
- switch (d) {
1073
- case "top":
1074
- h = {
1075
- x: u,
1076
- y: r.y - o.height
1077
- };
1078
- break;
1079
- case "bottom":
1080
- h = {
1081
- x: u,
1082
- y: r.y + r.height
1083
- };
1084
- break;
1085
- case "right":
1086
- h = {
1087
- x: r.x + r.width,
1088
- y: l
1089
- };
1090
- break;
1091
- case "left":
1092
- h = {
1093
- x: r.x - o.width,
1094
- y: l
1095
- };
1096
- break;
1097
- default:
1098
- h = {
1099
- x: r.x,
1100
- y: r.y
1101
- };
1102
- }
1103
- switch (xe(t)) {
1104
- case "start":
1105
- h[s] -= p * (n && f ? -1 : 1);
1106
- break;
1107
- case "end":
1108
- h[s] += p * (n && f ? -1 : 1);
1109
- break;
1110
- }
1111
- return h;
1112
- }
1113
- const qi = async (e, t, n) => {
1114
- const {
1115
- placement: r = "bottom",
1116
- strategy: o = "absolute",
1117
- middleware: i = [],
1118
- platform: s
1119
- } = n, a = i.filter(Boolean), d = await (s.isRTL == null ? void 0 : s.isRTL(t));
1120
- let f = await s.getElementRects({
1121
- reference: e,
1122
- floating: t,
1123
- strategy: o
1124
- }), {
1125
- x: u,
1126
- y: l
1127
- } = pn(f, r, d), p = r, h = {}, g = 0;
1128
- for (let m = 0; m < a.length; m++) {
1129
- const {
1130
- name: v,
1131
- fn: y
1132
- } = a[m], {
1133
- x: C,
1134
- y: b,
1135
- data: x,
1136
- reset: E
1137
- } = await y({
1138
- x: u,
1139
- y: l,
1140
- initialPlacement: r,
1141
- placement: p,
1142
- strategy: o,
1143
- middlewareData: h,
1144
- rects: f,
1145
- platform: s,
1146
- elements: {
1147
- reference: e,
1148
- floating: t
1149
- }
1150
- });
1151
- u = C ?? u, l = b ?? l, h = {
1152
- ...h,
1153
- [v]: {
1154
- ...h[v],
1155
- ...x
1156
- }
1157
- }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (f = E.rects === !0 ? await s.getElementRects({
1158
- reference: e,
1159
- floating: t,
1160
- strategy: o
1161
- }) : E.rects), {
1162
- x: u,
1163
- y: l
1164
- } = pn(f, p, d)), m = -1);
1165
- }
1166
- return {
1167
- x: u,
1168
- y: l,
1169
- placement: p,
1170
- strategy: o,
1171
- middlewareData: h
1172
- };
1173
- };
1174
- async function De(e, t) {
1175
- var n;
1176
- t === void 0 && (t = {});
1177
- const {
1178
- x: r,
1179
- y: o,
1180
- platform: i,
1181
- rects: s,
1182
- elements: a,
1183
- strategy: d
1184
- } = e, {
1185
- boundary: f = "clippingAncestors",
1186
- rootBoundary: u = "viewport",
1187
- elementContext: l = "floating",
1188
- altBoundary: p = !1,
1189
- padding: h = 0
1190
- } = ie(t, e), g = Gn(h), v = a[p ? l === "floating" ? "reference" : "floating" : l], y = Je(await i.getClippingRect({
1191
- element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1192
- boundary: f,
1193
- rootBoundary: u,
1194
- strategy: d
1195
- })), C = l === "floating" ? {
1196
- x: r,
1197
- y: o,
1198
- width: s.floating.width,
1199
- height: s.floating.height
1200
- } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
1201
- x: 1,
1202
- y: 1
1203
- } : {
1204
- x: 1,
1205
- y: 1
1206
- }, E = Je(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1207
- elements: a,
1208
- rect: C,
1209
- offsetParent: b,
1210
- strategy: d
1211
- }) : C);
1212
- return {
1213
- top: (y.top - E.top + g.top) / x.y,
1214
- bottom: (E.bottom - y.bottom + g.bottom) / x.y,
1215
- left: (y.left - E.left + g.left) / x.x,
1216
- right: (E.right - y.right + g.right) / x.x
1217
- };
1218
- }
1219
- const Zi = (e) => ({
1220
- name: "arrow",
1221
- options: e,
1222
- async fn(t) {
1223
- const {
1224
- x: n,
1225
- y: r,
1226
- placement: o,
1227
- rects: i,
1228
- platform: s,
1229
- elements: a,
1230
- middlewareData: d
1231
- } = t, {
1232
- element: f,
1233
- padding: u = 0
1234
- } = ie(e, t) || {};
1235
- if (f == null)
1236
- return {};
1237
- const l = Gn(u), p = {
1238
- x: n,
1239
- y: r
1240
- }, h = Nt(o), g = Tt(h), m = await s.getDimensions(f), v = h === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[h] - p[h] - i.floating[g], E = p[h] - i.reference[h], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
1241
- let S = M ? M[b] : 0;
1242
- (!S || !await (s.isElement == null ? void 0 : s.isElement(M))) && (S = a.floating[b] || i.floating[g]);
1243
- const A = x / 2 - E / 2, I = S / 2 - m[g] / 2 - 1, _ = ce(l[y], I), T = ce(l[C], I), L = _, k = S - m[g] - T, N = S / 2 - m[g] / 2 + A, B = St(L, N, k), D = !d.arrow && xe(o) != null && N !== B && i.reference[g] / 2 - (N < L ? _ : T) - m[g] / 2 < 0, $ = D ? N < L ? N - L : N - k : 0;
1244
- return {
1245
- [h]: p[h] + $,
1246
- data: {
1247
- [h]: B,
1248
- centerOffset: N - B - $,
1249
- ...D && {
1250
- alignmentOffset: $
1251
- }
1252
- },
1253
- reset: D
1254
- };
1255
- }
1256
- }), Qi = function(e) {
1257
- return e === void 0 && (e = {}), {
1258
- name: "flip",
1259
- options: e,
1260
- async fn(t) {
1261
- var n, r;
1262
- const {
1263
- placement: o,
1264
- middlewareData: i,
1265
- rects: s,
1266
- initialPlacement: a,
1267
- platform: d,
1268
- elements: f
1269
- } = t, {
1270
- mainAxis: u = !0,
1271
- crossAxis: l = !0,
1272
- fallbackPlacements: p,
1273
- fallbackStrategy: h = "bestFit",
1274
- fallbackAxisSideDirection: g = "none",
1275
- flipAlignment: m = !0,
1276
- ...v
1277
- } = ie(e, t);
1278
- if ((n = i.arrow) != null && n.alignmentOffset)
1279
- return {};
1280
- const y = se(o), C = Q(a), b = se(a) === a, x = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), E = p || (b || !m ? [Qe(a)] : Hi(a)), M = g !== "none";
1281
- !p && M && E.push(...Yi(a, m, g, x));
1282
- const S = [a, ...E], A = await De(t, v), I = [];
1283
- let _ = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1284
- if (u && I.push(A[y]), l) {
1285
- const N = Vi(o, s, x);
1286
- I.push(A[N[0]], A[N[1]]);
1287
- }
1288
- if (_ = [..._, {
1289
- placement: o,
1290
- overflows: I
1291
- }], !I.every((N) => N <= 0)) {
1292
- var T, L;
1293
- const N = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, B = S[N];
1294
- if (B && (!(l === "alignment" ? C !== Q(B) : !1) || // We leave the current main axis only if every placement on that axis
1295
- // overflows the main axis.
1296
- _.every((P) => Q(P.placement) === C ? P.overflows[0] > 0 : !0)))
1297
- return {
1298
- data: {
1299
- index: N,
1300
- overflows: _
1301
- },
1302
- reset: {
1303
- placement: B
1304
- }
1305
- };
1306
- let D = (L = _.filter(($) => $.overflows[0] <= 0).sort(($, P) => $.overflows[1] - P.overflows[1])[0]) == null ? void 0 : L.placement;
1307
- if (!D)
1308
- switch (h) {
1309
- case "bestFit": {
1310
- var k;
1311
- const $ = (k = _.filter((P) => {
1312
- if (M) {
1313
- const R = Q(P.placement);
1314
- return R === C || // Create a bias to the `y` side axis due to horizontal
1315
- // reading directions favoring greater width.
1316
- R === "y";
1317
- }
1318
- return !0;
1319
- }).map((P) => [P.placement, P.overflows.filter((R) => R > 0).reduce((R, F) => R + F, 0)]).sort((P, R) => P[1] - R[1])[0]) == null ? void 0 : k[0];
1320
- $ && (D = $);
1321
- break;
1322
- }
1323
- case "initialPlacement":
1324
- D = a;
1325
- break;
1326
- }
1327
- if (o !== D)
1328
- return {
1329
- reset: {
1330
- placement: D
1331
- }
1332
- };
1333
- }
1334
- return {};
1335
- }
1336
- };
1337
- };
1338
- function mn(e, t) {
1339
- return {
1340
- top: e.top - t.height,
1341
- right: e.right - t.width,
1342
- bottom: e.bottom - t.height,
1343
- left: e.left - t.width
1344
- };
1345
- }
1346
- function hn(e) {
1347
- return Bi.some((t) => e[t] >= 0);
1348
- }
1349
- const Ji = function(e) {
1350
- return e === void 0 && (e = {}), {
1351
- name: "hide",
1352
- options: e,
1353
- async fn(t) {
1354
- const {
1355
- rects: n
1356
- } = t, {
1357
- strategy: r = "referenceHidden",
1358
- ...o
1359
- } = ie(e, t);
1360
- switch (r) {
1361
- case "referenceHidden": {
1362
- const i = await De(t, {
1363
- ...o,
1364
- elementContext: "reference"
1365
- }), s = mn(i, n.reference);
1366
- return {
1367
- data: {
1368
- referenceHiddenOffsets: s,
1369
- referenceHidden: hn(s)
1370
- }
1371
- };
1372
- }
1373
- case "escaped": {
1374
- const i = await De(t, {
1375
- ...o,
1376
- altBoundary: !0
1377
- }), s = mn(i, n.floating);
1378
- return {
1379
- data: {
1380
- escapedOffsets: s,
1381
- escaped: hn(s)
1382
- }
1383
- };
1384
- }
1385
- default:
1386
- return {};
1387
- }
1388
- }
1389
- };
1390
- }, Kn = /* @__PURE__ */ new Set(["left", "top"]);
1391
- async function es(e, t) {
1392
- const {
1393
- placement: n,
1394
- platform: r,
1395
- elements: o
1396
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = se(n), a = xe(n), d = Q(n) === "y", f = Kn.has(s) ? -1 : 1, u = i && d ? -1 : 1, l = ie(t, e);
1397
- let {
1398
- mainAxis: p,
1399
- crossAxis: h,
1400
- alignmentAxis: g
1401
- } = typeof l == "number" ? {
1402
- mainAxis: l,
1403
- crossAxis: 0,
1404
- alignmentAxis: null
1405
- } : {
1406
- mainAxis: l.mainAxis || 0,
1407
- crossAxis: l.crossAxis || 0,
1408
- alignmentAxis: l.alignmentAxis
1409
- };
1410
- return a && typeof g == "number" && (h = a === "end" ? g * -1 : g), d ? {
1411
- x: h * u,
1412
- y: p * f
1413
- } : {
1414
- x: p * f,
1415
- y: h * u
1416
- };
1417
- }
1418
- const ts = function(e) {
1419
- return e === void 0 && (e = 0), {
1420
- name: "offset",
1421
- options: e,
1422
- async fn(t) {
1423
- var n, r;
1424
- const {
1425
- x: o,
1426
- y: i,
1427
- placement: s,
1428
- middlewareData: a
1429
- } = t, d = await es(t, e);
1430
- return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
1431
- x: o + d.x,
1432
- y: i + d.y,
1433
- data: {
1434
- ...d,
1435
- placement: s
1436
- }
1437
- };
1438
- }
1439
- };
1440
- }, ns = function(e) {
1441
- return e === void 0 && (e = {}), {
1442
- name: "shift",
1443
- options: e,
1444
- async fn(t) {
1445
- const {
1446
- x: n,
1447
- y: r,
1448
- placement: o
1449
- } = t, {
1450
- mainAxis: i = !0,
1451
- crossAxis: s = !1,
1452
- limiter: a = {
1453
- fn: (v) => {
1454
- let {
1455
- x: y,
1456
- y: C
1457
- } = v;
1458
- return {
1459
- x: y,
1460
- y: C
1461
- };
1462
- }
1463
- },
1464
- ...d
1465
- } = ie(e, t), f = {
1466
- x: n,
1467
- y: r
1468
- }, u = await De(t, d), l = Q(se(o)), p = It(l);
1469
- let h = f[p], g = f[l];
1470
- if (i) {
1471
- const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", C = h + u[v], b = h - u[y];
1472
- h = St(C, h, b);
1473
- }
1474
- if (s) {
1475
- const v = l === "y" ? "top" : "left", y = l === "y" ? "bottom" : "right", C = g + u[v], b = g - u[y];
1476
- g = St(C, g, b);
1477
- }
1478
- const m = a.fn({
1479
- ...t,
1480
- [p]: h,
1481
- [l]: g
1482
- });
1483
- return {
1484
- ...m,
1485
- data: {
1486
- x: m.x - n,
1487
- y: m.y - r,
1488
- enabled: {
1489
- [p]: i,
1490
- [l]: s
1491
- }
1492
- }
1493
- };
1494
- }
1495
- };
1496
- }, rs = function(e) {
1497
- return e === void 0 && (e = {}), {
1498
- options: e,
1499
- fn(t) {
1500
- const {
1501
- x: n,
1502
- y: r,
1503
- placement: o,
1504
- rects: i,
1505
- middlewareData: s
1506
- } = t, {
1507
- offset: a = 0,
1508
- mainAxis: d = !0,
1509
- crossAxis: f = !0
1510
- } = ie(e, t), u = {
1511
- x: n,
1512
- y: r
1513
- }, l = Q(o), p = It(l);
1514
- let h = u[p], g = u[l];
1515
- const m = ie(a, t), v = typeof m == "number" ? {
1516
- mainAxis: m,
1517
- crossAxis: 0
1518
- } : {
1519
- mainAxis: 0,
1520
- crossAxis: 0,
1521
- ...m
1522
- };
1523
- if (d) {
1524
- const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
1525
- h < x ? h = x : h > E && (h = E);
1526
- }
1527
- if (f) {
1528
- var y, C;
1529
- const b = p === "y" ? "width" : "height", x = Kn.has(se(o)), E = i.reference[l] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[l]) || 0) + (x ? 0 : v.crossAxis), M = i.reference[l] + i.reference[b] + (x ? 0 : ((C = s.offset) == null ? void 0 : C[l]) || 0) - (x ? v.crossAxis : 0);
1530
- g < E ? g = E : g > M && (g = M);
1531
- }
1532
- return {
1533
- [p]: h,
1534
- [l]: g
1535
- };
1536
- }
1537
- };
1538
- }, os = function(e) {
1539
- return e === void 0 && (e = {}), {
1540
- name: "size",
1541
- options: e,
1542
- async fn(t) {
1543
- var n, r;
1544
- const {
1545
- placement: o,
1546
- rects: i,
1547
- platform: s,
1548
- elements: a
1549
- } = t, {
1550
- apply: d = () => {
1551
- },
1552
- ...f
1553
- } = ie(e, t), u = await De(t, f), l = se(o), p = xe(o), h = Q(o) === "y", {
1554
- width: g,
1555
- height: m
1556
- } = i.floating;
1557
- let v, y;
1558
- l === "top" || l === "bottom" ? (v = l, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = l, v = p === "end" ? "top" : "bottom");
1559
- const C = m - u.top - u.bottom, b = g - u.left - u.right, x = ce(m - u[v], C), E = ce(g - u[y], b), M = !t.middlewareData.shift;
1560
- let S = x, A = E;
1561
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = b), (r = t.middlewareData.shift) != null && r.enabled.y && (S = C), M && !p) {
1562
- const _ = V(u.left, 0), T = V(u.right, 0), L = V(u.top, 0), k = V(u.bottom, 0);
1563
- h ? A = g - 2 * (_ !== 0 || T !== 0 ? _ + T : V(u.left, u.right)) : S = m - 2 * (L !== 0 || k !== 0 ? L + k : V(u.top, u.bottom));
1564
- }
1565
- await d({
1566
- ...t,
1567
- availableWidth: A,
1568
- availableHeight: S
1569
- });
1570
- const I = await s.getDimensions(a.floating);
1571
- return g !== I.width || m !== I.height ? {
1572
- reset: {
1573
- rects: !0
1574
- }
1575
- } : {};
1576
- }
1577
- };
1578
- };
1579
- function st() {
1580
- return typeof window < "u";
1581
- }
1582
- function Ee(e) {
1583
- return Vn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1584
- }
1585
- function H(e) {
1586
- var t;
1587
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1588
- }
1589
- function re(e) {
1590
- var t;
1591
- return (t = (Vn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1592
- }
1593
- function Vn(e) {
1594
- return st() ? e instanceof Node || e instanceof H(e).Node : !1;
1595
- }
1596
- function Y(e) {
1597
- return st() ? e instanceof Element || e instanceof H(e).Element : !1;
1598
- }
1599
- function te(e) {
1600
- return st() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
1601
- }
1602
- function vn(e) {
1603
- return !st() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
1604
- }
1605
- const is = /* @__PURE__ */ new Set(["inline", "contents"]);
1606
- function ke(e) {
1607
- const {
1608
- overflow: t,
1609
- overflowX: n,
1610
- overflowY: r,
1611
- display: o
1612
- } = X(e);
1613
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !is.has(o);
1614
- }
1615
- const ss = /* @__PURE__ */ new Set(["table", "td", "th"]);
1616
- function as(e) {
1617
- return ss.has(Ee(e));
1618
- }
1619
- const cs = [":popover-open", ":modal"];
1620
- function at(e) {
1621
- return cs.some((t) => {
1622
- try {
1623
- return e.matches(t);
1624
- } catch {
1625
- return !1;
1626
- }
1627
- });
1628
- }
1629
- const ls = ["transform", "translate", "scale", "rotate", "perspective"], us = ["transform", "translate", "scale", "rotate", "perspective", "filter"], fs = ["paint", "layout", "strict", "content"];
1630
- function Lt(e) {
1631
- const t = kt(), n = Y(e) ? X(e) : e;
1632
- return ls.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || us.some((r) => (n.willChange || "").includes(r)) || fs.some((r) => (n.contain || "").includes(r));
1633
- }
1634
- function ds(e) {
1635
- let t = le(e);
1636
- for (; te(t) && !Ce(t); ) {
1637
- if (Lt(t))
1638
- return t;
1639
- if (at(t))
1640
- return null;
1641
- t = le(t);
1642
- }
1643
- return null;
1644
- }
1645
- function kt() {
1646
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1647
- }
1648
- const ps = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1649
- function Ce(e) {
1650
- return ps.has(Ee(e));
1651
- }
1652
- function X(e) {
1653
- return H(e).getComputedStyle(e);
1654
- }
1655
- function ct(e) {
1656
- return Y(e) ? {
1657
- scrollLeft: e.scrollLeft,
1658
- scrollTop: e.scrollTop
1659
- } : {
1660
- scrollLeft: e.scrollX,
1661
- scrollTop: e.scrollY
1662
- };
1663
- }
1664
- function le(e) {
1665
- if (Ee(e) === "html")
1666
- return e;
1667
- const t = (
1668
- // Step into the shadow DOM of the parent of a slotted node.
1669
- e.assignedSlot || // DOM Element detected.
1670
- e.parentNode || // ShadowRoot detected.
1671
- vn(e) && e.host || // Fallback.
1672
- re(e)
1673
- );
1674
- return vn(t) ? t.host : t;
1675
- }
1676
- function Hn(e) {
1677
- const t = le(e);
1678
- return Ce(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : te(t) && ke(t) ? t : Hn(t);
1679
- }
1680
- function Ie(e, t, n) {
1681
- var r;
1682
- t === void 0 && (t = []), n === void 0 && (n = !0);
1683
- const o = Hn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = H(o);
1684
- if (i) {
1685
- const a = Mt(s);
1686
- return t.concat(s, s.visualViewport || [], ke(o) ? o : [], a && n ? Ie(a) : []);
1687
- }
1688
- return t.concat(o, Ie(o, [], n));
1689
- }
1690
- function Mt(e) {
1691
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1692
- }
1693
- function Un(e) {
1694
- const t = X(e);
1695
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1696
- const o = te(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = Ze(n) !== i || Ze(r) !== s;
1697
- return a && (n = i, r = s), {
1698
- width: n,
1699
- height: r,
1700
- $: a
1701
- };
1702
- }
1703
- function Ft(e) {
1704
- return Y(e) ? e : e.contextElement;
1705
- }
1706
- function ye(e) {
1707
- const t = Ft(e);
1708
- if (!te(t))
1709
- return J(1);
1710
- const n = t.getBoundingClientRect(), {
1711
- width: r,
1712
- height: o,
1713
- $: i
1714
- } = Un(t);
1715
- let s = (i ? Ze(n.width) : n.width) / r, a = (i ? Ze(n.height) : n.height) / o;
1716
- return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1717
- x: s,
1718
- y: a
1719
- };
1720
- }
1721
- const ms = /* @__PURE__ */ J(0);
1722
- function zn(e) {
1723
- const t = H(e);
1724
- return !kt() || !t.visualViewport ? ms : {
1725
- x: t.visualViewport.offsetLeft,
1726
- y: t.visualViewport.offsetTop
1727
- };
1728
- }
1729
- function hs(e, t, n) {
1730
- return t === void 0 && (t = !1), !n || t && n !== H(e) ? !1 : t;
1731
- }
1732
- function pe(e, t, n, r) {
1733
- t === void 0 && (t = !1), n === void 0 && (n = !1);
1734
- const o = e.getBoundingClientRect(), i = Ft(e);
1735
- let s = J(1);
1736
- t && (r ? Y(r) && (s = ye(r)) : s = ye(e));
1737
- const a = hs(i, n, r) ? zn(i) : J(0);
1738
- let d = (o.left + a.x) / s.x, f = (o.top + a.y) / s.y, u = o.width / s.x, l = o.height / s.y;
1739
- if (i) {
1740
- const p = H(i), h = r && Y(r) ? H(r) : r;
1741
- let g = p, m = Mt(g);
1742
- for (; m && r && h !== g; ) {
1743
- const v = ye(m), y = m.getBoundingClientRect(), C = X(m), b = y.left + (m.clientLeft + parseFloat(C.paddingLeft)) * v.x, x = y.top + (m.clientTop + parseFloat(C.paddingTop)) * v.y;
1744
- d *= v.x, f *= v.y, u *= v.x, l *= v.y, d += b, f += x, g = H(m), m = Mt(g);
1745
- }
1746
- }
1747
- return Je({
1748
- width: u,
1749
- height: l,
1750
- x: d,
1751
- y: f
1752
- });
1753
- }
1754
- function lt(e, t) {
1755
- const n = ct(e).scrollLeft;
1756
- return t ? t.left + n : pe(re(e)).left + n;
1757
- }
1758
- function jn(e, t) {
1759
- const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - lt(e, n), o = n.top + t.scrollTop;
1760
- return {
1761
- x: r,
1762
- y: o
1763
- };
1764
- }
1765
- function vs(e) {
1766
- let {
1767
- elements: t,
1768
- rect: n,
1769
- offsetParent: r,
1770
- strategy: o
1771
- } = e;
1772
- const i = o === "fixed", s = re(r), a = t ? at(t.floating) : !1;
1773
- if (r === s || a && i)
1774
- return n;
1775
- let d = {
1776
- scrollLeft: 0,
1777
- scrollTop: 0
1778
- }, f = J(1);
1779
- const u = J(0), l = te(r);
1780
- if ((l || !l && !i) && ((Ee(r) !== "body" || ke(s)) && (d = ct(r)), te(r))) {
1781
- const h = pe(r);
1782
- f = ye(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
1783
- }
1784
- const p = s && !l && !i ? jn(s, d) : J(0);
1785
- return {
1786
- width: n.width * f.x,
1787
- height: n.height * f.y,
1788
- x: n.x * f.x - d.scrollLeft * f.x + u.x + p.x,
1789
- y: n.y * f.y - d.scrollTop * f.y + u.y + p.y
1790
- };
1791
- }
1792
- function gs(e) {
1793
- return Array.from(e.getClientRects());
1794
- }
1795
- function ws(e) {
1796
- const t = re(e), n = ct(e), r = e.ownerDocument.body, o = V(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = V(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1797
- let s = -n.scrollLeft + lt(e);
1798
- const a = -n.scrollTop;
1799
- return X(r).direction === "rtl" && (s += V(t.clientWidth, r.clientWidth) - o), {
1800
- width: o,
1801
- height: i,
1802
- x: s,
1803
- y: a
1804
- };
1805
- }
1806
- const gn = 25;
1807
- function ys(e, t) {
1808
- const n = H(e), r = re(e), o = n.visualViewport;
1809
- let i = r.clientWidth, s = r.clientHeight, a = 0, d = 0;
1810
- if (o) {
1811
- i = o.width, s = o.height;
1812
- const u = kt();
1813
- (!u || u && t === "fixed") && (a = o.offsetLeft, d = o.offsetTop);
1814
- }
1815
- const f = lt(r);
1816
- if (f <= 0) {
1817
- const u = r.ownerDocument, l = u.body, p = getComputedStyle(l), h = u.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, g = Math.abs(r.clientWidth - l.clientWidth - h);
1818
- g <= gn && (i -= g);
1819
- } else f <= gn && (i += f);
1820
- return {
1821
- width: i,
1822
- height: s,
1823
- x: a,
1824
- y: d
1825
- };
1826
- }
1827
- const bs = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1828
- function Cs(e, t) {
1829
- const n = pe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = te(e) ? ye(e) : J(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, d = o * i.x, f = r * i.y;
1830
- return {
1831
- width: s,
1832
- height: a,
1833
- x: d,
1834
- y: f
1835
- };
1836
- }
1837
- function wn(e, t, n) {
1838
- let r;
1839
- if (t === "viewport")
1840
- r = ys(e, n);
1841
- else if (t === "document")
1842
- r = ws(re(e));
1843
- else if (Y(t))
1844
- r = Cs(t, n);
1845
- else {
1846
- const o = zn(e);
1847
- r = {
1848
- x: t.x - o.x,
1849
- y: t.y - o.y,
1850
- width: t.width,
1851
- height: t.height
1852
- };
1853
- }
1854
- return Je(r);
1855
- }
1856
- function Yn(e, t) {
1857
- const n = le(e);
1858
- return n === t || !Y(n) || Ce(n) ? !1 : X(n).position === "fixed" || Yn(n, t);
1859
- }
1860
- function xs(e, t) {
1861
- const n = t.get(e);
1862
- if (n)
1863
- return n;
1864
- let r = Ie(e, [], !1).filter((a) => Y(a) && Ee(a) !== "body"), o = null;
1865
- const i = X(e).position === "fixed";
1866
- let s = i ? le(e) : e;
1867
- for (; Y(s) && !Ce(s); ) {
1868
- const a = X(s), d = Lt(s);
1869
- !d && a.position === "fixed" && (o = null), (i ? !d && !o : !d && a.position === "static" && !!o && bs.has(o.position) || ke(s) && !d && Yn(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = le(s);
1870
- }
1871
- return t.set(e, r), r;
1872
- }
1873
- function Es(e) {
1874
- let {
1875
- element: t,
1876
- boundary: n,
1877
- rootBoundary: r,
1878
- strategy: o
1879
- } = e;
1880
- const s = [...n === "clippingAncestors" ? at(t) ? [] : xs(t, this._c) : [].concat(n), r], a = s[0], d = s.reduce((f, u) => {
1881
- const l = wn(t, u, o);
1882
- return f.top = V(l.top, f.top), f.right = ce(l.right, f.right), f.bottom = ce(l.bottom, f.bottom), f.left = V(l.left, f.left), f;
1883
- }, wn(t, a, o));
1884
- return {
1885
- width: d.right - d.left,
1886
- height: d.bottom - d.top,
1887
- x: d.left,
1888
- y: d.top
1889
- };
1890
- }
1891
- function Ss(e) {
1892
- const {
1893
- width: t,
1894
- height: n
1895
- } = Un(e);
1896
- return {
1897
- width: t,
1898
- height: n
1899
- };
1900
- }
1901
- function Rs(e, t, n) {
1902
- const r = te(t), o = re(t), i = n === "fixed", s = pe(e, !0, i, t);
1903
- let a = {
1904
- scrollLeft: 0,
1905
- scrollTop: 0
1906
- };
1907
- const d = J(0);
1908
- function f() {
1909
- d.x = lt(o);
1910
- }
1911
- if (r || !r && !i)
1912
- if ((Ee(t) !== "body" || ke(o)) && (a = ct(t)), r) {
1913
- const h = pe(t, !0, i, t);
1914
- d.x = h.x + t.clientLeft, d.y = h.y + t.clientTop;
1915
- } else o && f();
1916
- i && !r && o && f();
1917
- const u = o && !r && !i ? jn(o, a) : J(0), l = s.left + a.scrollLeft - d.x - u.x, p = s.top + a.scrollTop - d.y - u.y;
1918
- return {
1919
- x: l,
1920
- y: p,
1921
- width: s.width,
1922
- height: s.height
1923
- };
1924
- }
1925
- function yt(e) {
1926
- return X(e).position === "static";
1927
- }
1928
- function yn(e, t) {
1929
- if (!te(e) || X(e).position === "fixed")
1930
- return null;
1931
- if (t)
1932
- return t(e);
1933
- let n = e.offsetParent;
1934
- return re(e) === n && (n = n.ownerDocument.body), n;
1935
- }
1936
- function Xn(e, t) {
1937
- const n = H(e);
1938
- if (at(e))
1939
- return n;
1940
- if (!te(e)) {
1941
- let o = le(e);
1942
- for (; o && !Ce(o); ) {
1943
- if (Y(o) && !yt(o))
1944
- return o;
1945
- o = le(o);
1946
- }
1947
- return n;
1948
- }
1949
- let r = yn(e, t);
1950
- for (; r && as(r) && yt(r); )
1951
- r = yn(r, t);
1952
- return r && Ce(r) && yt(r) && !Lt(r) ? n : r || ds(e) || n;
1953
- }
1954
- const Ms = async function(e) {
1955
- const t = this.getOffsetParent || Xn, n = this.getDimensions, r = await n(e.floating);
1956
- return {
1957
- reference: Rs(e.reference, await t(e.floating), e.strategy),
1958
- floating: {
1959
- x: 0,
1960
- y: 0,
1961
- width: r.width,
1962
- height: r.height
1963
- }
1964
- };
1965
- };
1966
- function As(e) {
1967
- return X(e).direction === "rtl";
1968
- }
1969
- const Ps = {
1970
- convertOffsetParentRelativeRectToViewportRelativeRect: vs,
1971
- getDocumentElement: re,
1972
- getClippingRect: Es,
1973
- getOffsetParent: Xn,
1974
- getElementRects: Ms,
1975
- getClientRects: gs,
1976
- getDimensions: Ss,
1977
- getScale: ye,
1978
- isElement: Y,
1979
- isRTL: As
1980
- };
1981
- function qn(e, t) {
1982
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1983
- }
1984
- function Os(e, t) {
1985
- let n = null, r;
1986
- const o = re(e);
1987
- function i() {
1988
- var a;
1989
- clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
1990
- }
1991
- function s(a, d) {
1992
- a === void 0 && (a = !1), d === void 0 && (d = 1), i();
1993
- const f = e.getBoundingClientRect(), {
1994
- left: u,
1995
- top: l,
1996
- width: p,
1997
- height: h
1998
- } = f;
1999
- if (a || t(), !p || !h)
2000
- return;
2001
- const g = je(l), m = je(o.clientWidth - (u + p)), v = je(o.clientHeight - (l + h)), y = je(u), b = {
2002
- rootMargin: -g + "px " + -m + "px " + -v + "px " + -y + "px",
2003
- threshold: V(0, ce(1, d)) || 1
2004
- };
2005
- let x = !0;
2006
- function E(M) {
2007
- const S = M[0].intersectionRatio;
2008
- if (S !== d) {
2009
- if (!x)
2010
- return s();
2011
- S ? s(!1, S) : r = setTimeout(() => {
2012
- s(!1, 1e-7);
2013
- }, 1e3);
2014
- }
2015
- S === 1 && !qn(f, e.getBoundingClientRect()) && s(), x = !1;
2016
- }
2017
- try {
2018
- n = new IntersectionObserver(E, {
2019
- ...b,
2020
- // Handle <iframe>s
2021
- root: o.ownerDocument
2022
- });
2023
- } catch {
2024
- n = new IntersectionObserver(E, b);
2025
- }
2026
- n.observe(e);
2027
- }
2028
- return s(!0), i;
2029
- }
2030
- function _s(e, t, n, r) {
2031
- r === void 0 && (r = {});
2032
- const {
2033
- ancestorScroll: o = !0,
2034
- ancestorResize: i = !0,
2035
- elementResize: s = typeof ResizeObserver == "function",
2036
- layoutShift: a = typeof IntersectionObserver == "function",
2037
- animationFrame: d = !1
2038
- } = r, f = Ft(e), u = o || i ? [...f ? Ie(f) : [], ...Ie(t)] : [];
2039
- u.forEach((y) => {
2040
- o && y.addEventListener("scroll", n, {
2041
- passive: !0
2042
- }), i && y.addEventListener("resize", n);
2043
- });
2044
- const l = f && a ? Os(f, n) : null;
2045
- let p = -1, h = null;
2046
- s && (h = new ResizeObserver((y) => {
2047
- let [C] = y;
2048
- C && C.target === f && h && (h.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2049
- var b;
2050
- (b = h) == null || b.observe(t);
2051
- })), n();
2052
- }), f && !d && h.observe(f), h.observe(t));
2053
- let g, m = d ? pe(e) : null;
2054
- d && v();
2055
- function v() {
2056
- const y = pe(e);
2057
- m && !qn(m, y) && n(), m = y, g = requestAnimationFrame(v);
2058
- }
2059
- return n(), () => {
2060
- var y;
2061
- u.forEach((C) => {
2062
- o && C.removeEventListener("scroll", n), i && C.removeEventListener("resize", n);
2063
- }), l == null || l(), (y = h) == null || y.disconnect(), h = null, d && cancelAnimationFrame(g);
2064
- };
2065
- }
2066
- const Ds = ts, Is = ns, Ts = Qi, Ns = os, Ls = Ji, bn = Zi, ks = rs, Fs = (e, t, n) => {
2067
- const r = /* @__PURE__ */ new Map(), o = {
2068
- platform: Ps,
2069
- ...n
2070
- }, i = {
2071
- ...o.platform,
2072
- _c: r
2073
- };
2074
- return qi(e, t, {
2075
- ...o,
2076
- platform: i
2077
- });
2078
- };
2079
- var $s = typeof document < "u", Bs = function() {
2080
- }, qe = $s ? bo : Bs;
2081
- function et(e, t) {
2082
- if (e === t)
2083
- return !0;
2084
- if (typeof e != typeof t)
2085
- return !1;
2086
- if (typeof e == "function" && e.toString() === t.toString())
2087
- return !0;
2088
- let n, r, o;
2089
- if (e && t && typeof e == "object") {
2090
- if (Array.isArray(e)) {
2091
- if (n = e.length, n !== t.length) return !1;
2092
- for (r = n; r-- !== 0; )
2093
- if (!et(e[r], t[r]))
2094
- return !1;
2095
- return !0;
2096
- }
2097
- if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
2098
- return !1;
2099
- for (r = n; r-- !== 0; )
2100
- if (!{}.hasOwnProperty.call(t, o[r]))
2101
- return !1;
2102
- for (r = n; r-- !== 0; ) {
2103
- const i = o[r];
2104
- if (!(i === "_owner" && e.$$typeof) && !et(e[i], t[i]))
2105
- return !1;
2106
- }
2107
- return !0;
2108
- }
2109
- return e !== e && t !== t;
2110
- }
2111
- function Zn(e) {
2112
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2113
- }
2114
- function Cn(e, t) {
2115
- const n = Zn(e);
2116
- return Math.round(t * n) / n;
2117
- }
2118
- function bt(e) {
2119
- const t = c.useRef(e);
2120
- return qe(() => {
2121
- t.current = e;
2122
- }), t;
2123
- }
2124
- function Ws(e) {
2125
- e === void 0 && (e = {});
2126
- const {
2127
- placement: t = "bottom",
2128
- strategy: n = "absolute",
2129
- middleware: r = [],
2130
- platform: o,
2131
- elements: {
2132
- reference: i,
2133
- floating: s
2134
- } = {},
2135
- transform: a = !0,
2136
- whileElementsMounted: d,
2137
- open: f
2138
- } = e, [u, l] = c.useState({
2139
- x: 0,
2140
- y: 0,
2141
- strategy: n,
2142
- placement: t,
2143
- middlewareData: {},
2144
- isPositioned: !1
2145
- }), [p, h] = c.useState(r);
2146
- et(p, r) || h(r);
2147
- const [g, m] = c.useState(null), [v, y] = c.useState(null), C = c.useCallback((P) => {
2148
- P !== M.current && (M.current = P, m(P));
2149
- }, []), b = c.useCallback((P) => {
2150
- P !== S.current && (S.current = P, y(P));
2151
- }, []), x = i || g, E = s || v, M = c.useRef(null), S = c.useRef(null), A = c.useRef(u), I = d != null, _ = bt(d), T = bt(o), L = bt(f), k = c.useCallback(() => {
2152
- if (!M.current || !S.current)
2153
- return;
2154
- const P = {
2155
- placement: t,
2156
- strategy: n,
2157
- middleware: p
2158
- };
2159
- T.current && (P.platform = T.current), Fs(M.current, S.current, P).then((R) => {
2160
- const F = {
2161
- ...R,
2162
- // The floating element's position may be recomputed while it's closed
2163
- // but still mounted (such as when transitioning out). To ensure
2164
- // `isPositioned` will be `false` initially on the next open, avoid
2165
- // setting it to `true` when `open === false` (must be specified).
2166
- isPositioned: L.current !== !1
2167
- };
2168
- N.current && !et(A.current, F) && (A.current = F, xo.flushSync(() => {
2169
- l(F);
2170
- }));
2171
- });
2172
- }, [p, t, n, T, L]);
2173
- qe(() => {
2174
- f === !1 && A.current.isPositioned && (A.current.isPositioned = !1, l((P) => ({
2175
- ...P,
2176
- isPositioned: !1
2177
- })));
2178
- }, [f]);
2179
- const N = c.useRef(!1);
2180
- qe(() => (N.current = !0, () => {
2181
- N.current = !1;
2182
- }), []), qe(() => {
2183
- if (x && (M.current = x), E && (S.current = E), x && E) {
2184
- if (_.current)
2185
- return _.current(x, E, k);
2186
- k();
2187
- }
2188
- }, [x, E, k, _, I]);
2189
- const B = c.useMemo(() => ({
2190
- reference: M,
2191
- floating: S,
2192
- setReference: C,
2193
- setFloating: b
2194
- }), [C, b]), D = c.useMemo(() => ({
2195
- reference: x,
2196
- floating: E
2197
- }), [x, E]), $ = c.useMemo(() => {
2198
- const P = {
2199
- position: n,
2200
- left: 0,
2201
- top: 0
2202
- };
2203
- if (!D.floating)
2204
- return P;
2205
- const R = Cn(D.floating, u.x), F = Cn(D.floating, u.y);
2206
- return a ? {
2207
- ...P,
2208
- transform: "translate(" + R + "px, " + F + "px)",
2209
- ...Zn(D.floating) >= 1.5 && {
2210
- willChange: "transform"
2211
- }
2212
- } : {
2213
- position: n,
2214
- left: R,
2215
- top: F
2216
- };
2217
- }, [n, a, D.floating, u.x, u.y]);
2218
- return c.useMemo(() => ({
2219
- ...u,
2220
- update: k,
2221
- refs: B,
2222
- elements: D,
2223
- floatingStyles: $
2224
- }), [u, k, B, D, $]);
2225
- }
2226
- const Gs = (e) => {
2227
- function t(n) {
2228
- return {}.hasOwnProperty.call(n, "current");
2229
- }
2230
- return {
2231
- name: "arrow",
2232
- options: e,
2233
- fn(n) {
2234
- const {
2235
- element: r,
2236
- padding: o
2237
- } = typeof e == "function" ? e(n) : e;
2238
- return r && t(r) ? r.current != null ? bn({
2239
- element: r.current,
2240
- padding: o
2241
- }).fn(n) : {} : r ? bn({
2242
- element: r,
2243
- padding: o
2244
- }).fn(n) : {};
2245
- }
2246
- };
2247
- }, Ks = (e, t) => ({
2248
- ...Ds(e),
2249
- options: [e, t]
2250
- }), Vs = (e, t) => ({
2251
- ...Is(e),
2252
- options: [e, t]
2253
- }), Hs = (e, t) => ({
2254
- ...ks(e),
2255
- options: [e, t]
2256
- }), Us = (e, t) => ({
2257
- ...Ts(e),
2258
- options: [e, t]
2259
- }), zs = (e, t) => ({
2260
- ...Ns(e),
2261
- options: [e, t]
2262
- }), js = (e, t) => ({
2263
- ...Ls(e),
2264
- options: [e, t]
2265
- }), Ys = (e, t) => ({
2266
- ...Gs(e),
2267
- options: [e, t]
2268
- });
2269
- var Xs = "Arrow", Qn = c.forwardRef((e, t) => {
2270
- const { children: n, width: r = 10, height: o = 5, ...i } = e;
2271
- return /* @__PURE__ */ w(
2272
- K.svg,
2273
- {
2274
- ...i,
2275
- ref: t,
2276
- width: r,
2277
- height: o,
2278
- viewBox: "0 0 30 10",
2279
- preserveAspectRatio: "none",
2280
- children: e.asChild ? n : /* @__PURE__ */ w("polygon", { points: "0,0 30,0 15,10" })
2281
- }
2282
- );
2283
- });
2284
- Qn.displayName = Xs;
2285
- var qs = Qn;
2286
- function Zs(e) {
2287
- const [t, n] = c.useState(void 0);
2288
- return be(() => {
2289
- if (e) {
2290
- n({ width: e.offsetWidth, height: e.offsetHeight });
2291
- const r = new ResizeObserver((o) => {
2292
- if (!Array.isArray(o) || !o.length)
2293
- return;
2294
- const i = o[0];
2295
- let s, a;
2296
- if ("borderBoxSize" in i) {
2297
- const d = i.borderBoxSize, f = Array.isArray(d) ? d[0] : d;
2298
- s = f.inlineSize, a = f.blockSize;
2299
- } else
2300
- s = e.offsetWidth, a = e.offsetHeight;
2301
- n({ width: s, height: a });
2302
- });
2303
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2304
- } else
2305
- n(void 0);
2306
- }, [e]), t;
2307
- }
2308
- var $t = "Popper", [Jn, er] = Le($t), [Qs, tr] = Jn($t), nr = (e) => {
2309
- const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
2310
- return /* @__PURE__ */ w(Qs, { scope: t, anchor: r, onAnchorChange: o, children: n });
2311
- };
2312
- nr.displayName = $t;
2313
- var rr = "PopperAnchor", or = c.forwardRef(
2314
- (e, t) => {
2315
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = tr(rr, n), s = c.useRef(null), a = U(t, s), d = c.useRef(null);
2316
- return c.useEffect(() => {
2317
- const f = d.current;
2318
- d.current = (r == null ? void 0 : r.current) || s.current, f !== d.current && i.onAnchorChange(d.current);
2319
- }), r ? null : /* @__PURE__ */ w(K.div, { ...o, ref: a });
2320
- }
2321
- );
2322
- or.displayName = rr;
2323
- var Bt = "PopperContent", [Js, ea] = Jn(Bt), ir = c.forwardRef(
2324
- (e, t) => {
2325
- var oe, Me, z, Ae, Yt, Xt;
2326
- const {
2327
- __scopePopper: n,
2328
- side: r = "bottom",
2329
- sideOffset: o = 0,
2330
- align: i = "center",
2331
- alignOffset: s = 0,
2332
- arrowPadding: a = 0,
2333
- avoidCollisions: d = !0,
2334
- collisionBoundary: f = [],
2335
- collisionPadding: u = 0,
2336
- sticky: l = "partial",
2337
- hideWhenDetached: p = !1,
2338
- updatePositionStrategy: h = "optimized",
2339
- onPlaced: g,
2340
- ...m
2341
- } = e, v = tr(Bt, n), [y, C] = c.useState(null), b = U(t, (Pe) => C(Pe)), [x, E] = c.useState(null), M = Zs(x), S = (M == null ? void 0 : M.width) ?? 0, A = (M == null ? void 0 : M.height) ?? 0, I = r + (i !== "center" ? "-" + i : ""), _ = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, T = Array.isArray(f) ? f : [f], L = T.length > 0, k = {
2342
- padding: _,
2343
- boundary: T.filter(na),
2344
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2345
- altBoundary: L
2346
- }, { refs: N, floatingStyles: B, placement: D, isPositioned: $, middlewareData: P } = Ws({
2347
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2348
- strategy: "fixed",
2349
- placement: I,
2350
- whileElementsMounted: (...Pe) => _s(...Pe, {
2351
- animationFrame: h === "always"
2352
- }),
2353
- elements: {
2354
- reference: v.anchor
2355
- },
2356
- middleware: [
2357
- Ks({ mainAxis: o + A, alignmentAxis: s }),
2358
- d && Vs({
2359
- mainAxis: !0,
2360
- crossAxis: !1,
2361
- limiter: l === "partial" ? Hs() : void 0,
2362
- ...k
2363
- }),
2364
- d && Us({ ...k }),
2365
- zs({
2366
- ...k,
2367
- apply: ({ elements: Pe, rects: qt, availableWidth: ho, availableHeight: vo }) => {
2368
- const { width: go, height: wo } = qt.reference, Ke = Pe.floating.style;
2369
- Ke.setProperty("--radix-popper-available-width", `${ho}px`), Ke.setProperty("--radix-popper-available-height", `${vo}px`), Ke.setProperty("--radix-popper-anchor-width", `${go}px`), Ke.setProperty("--radix-popper-anchor-height", `${wo}px`);
2370
- }
2371
- }),
2372
- x && Ys({ element: x, padding: a }),
2373
- ra({ arrowWidth: S, arrowHeight: A }),
2374
- p && js({ strategy: "referenceHidden", ...k })
2375
- ]
2376
- }), [R, F] = cr(D), G = ee(g);
2377
- be(() => {
2378
- $ && (G == null || G());
2379
- }, [$, G]);
2380
- const q = (oe = P.arrow) == null ? void 0 : oe.x, Se = (Me = P.arrow) == null ? void 0 : Me.y, Re = ((z = P.arrow) == null ? void 0 : z.centerOffset) !== 0, [Ge, fe] = c.useState();
2381
- return be(() => {
2382
- y && fe(window.getComputedStyle(y).zIndex);
2383
- }, [y]), /* @__PURE__ */ w(
2384
- "div",
2385
- {
2386
- ref: N.setFloating,
2387
- "data-radix-popper-content-wrapper": "",
2388
- style: {
2389
- ...B,
2390
- transform: $ ? B.transform : "translate(0, -200%)",
2391
- // keep off the page when measuring
2392
- minWidth: "max-content",
2393
- zIndex: Ge,
2394
- "--radix-popper-transform-origin": [
2395
- (Ae = P.transformOrigin) == null ? void 0 : Ae.x,
2396
- (Yt = P.transformOrigin) == null ? void 0 : Yt.y
2397
- ].join(" "),
2398
- // hide the content if using the hide middleware and should be hidden
2399
- // set visibility to hidden and disable pointer events so the UI behaves
2400
- // as if the PopperContent isn't there at all
2401
- ...((Xt = P.hide) == null ? void 0 : Xt.referenceHidden) && {
2402
- visibility: "hidden",
2403
- pointerEvents: "none"
2404
- }
2405
- },
2406
- dir: e.dir,
2407
- children: /* @__PURE__ */ w(
2408
- Js,
2409
- {
2410
- scope: n,
2411
- placedSide: R,
2412
- onArrowChange: E,
2413
- arrowX: q,
2414
- arrowY: Se,
2415
- shouldHideArrow: Re,
2416
- children: /* @__PURE__ */ w(
2417
- K.div,
2418
- {
2419
- "data-side": R,
2420
- "data-align": F,
2421
- ...m,
2422
- ref: b,
2423
- style: {
2424
- ...m.style,
2425
- // if the PopperContent hasn't been placed yet (not all measurements done)
2426
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
2427
- animation: $ ? void 0 : "none"
2428
- }
2429
- }
2430
- )
2431
- }
2432
- )
2433
- }
2434
- );
2435
- }
2436
- );
2437
- ir.displayName = Bt;
2438
- var sr = "PopperArrow", ta = {
2439
- top: "bottom",
2440
- right: "left",
2441
- bottom: "top",
2442
- left: "right"
2443
- }, ar = c.forwardRef(function(t, n) {
2444
- const { __scopePopper: r, ...o } = t, i = ea(sr, r), s = ta[i.placedSide];
2445
- return (
2446
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2447
- // doesn't report size as we'd expect on SVG elements.
2448
- // it reports their bounding box which is effectively the largest path inside the SVG.
2449
- /* @__PURE__ */ w(
2450
- "span",
2451
- {
2452
- ref: i.onArrowChange,
2453
- style: {
2454
- position: "absolute",
2455
- left: i.arrowX,
2456
- top: i.arrowY,
2457
- [s]: 0,
2458
- transformOrigin: {
2459
- top: "",
2460
- right: "0 0",
2461
- bottom: "center 0",
2462
- left: "100% 0"
2463
- }[i.placedSide],
2464
- transform: {
2465
- top: "translateY(100%)",
2466
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
2467
- bottom: "rotate(180deg)",
2468
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
2469
- }[i.placedSide],
2470
- visibility: i.shouldHideArrow ? "hidden" : void 0
2471
- },
2472
- children: /* @__PURE__ */ w(
2473
- qs,
2474
- {
2475
- ...o,
2476
- ref: n,
2477
- style: {
2478
- ...o.style,
2479
- // ensures the element can be measured correctly (mostly for if SVG)
2480
- display: "block"
2481
- }
2482
- }
2483
- )
2484
- }
2485
- )
2486
- );
2487
- });
2488
- ar.displayName = sr;
2489
- function na(e) {
2490
- return e !== null;
2491
- }
2492
- var ra = (e) => ({
2493
- name: "transformOrigin",
2494
- options: e,
2495
- fn(t) {
2496
- var v, y, C;
2497
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, d = s ? 0 : e.arrowHeight, [f, u] = cr(n), l = { start: "0%", center: "50%", end: "100%" }[u], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + a / 2, h = (((C = o.arrow) == null ? void 0 : C.y) ?? 0) + d / 2;
2498
- let g = "", m = "";
2499
- return f === "bottom" ? (g = s ? l : `${p}px`, m = `${-d}px`) : f === "top" ? (g = s ? l : `${p}px`, m = `${r.floating.height + d}px`) : f === "right" ? (g = `${-d}px`, m = s ? l : `${h}px`) : f === "left" && (g = `${r.floating.width + d}px`, m = s ? l : `${h}px`), { data: { x: g, y: m } };
2500
- }
2501
- });
2502
- function cr(e) {
2503
- const [t, n = "center"] = e.split("-");
2504
- return [t, n];
2505
- }
2506
- var lr = nr, oa = or, ia = ir, sa = ar, Ct = "rovingFocusGroup.onEntryFocus", aa = { bubbles: !1, cancelable: !0 }, Fe = "RovingFocusGroup", [At, ur, ca] = Rn(Fe), [la, fr] = Le(
2507
- Fe,
2508
- [ca]
2509
- ), [ua, fa] = la(Fe), dr = c.forwardRef(
2510
- (e, t) => /* @__PURE__ */ w(At.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ w(At.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ w(da, { ...e, ref: t }) }) })
2511
- );
2512
- dr.displayName = Fe;
2513
- var da = c.forwardRef((e, t) => {
2514
- const {
2515
- __scopeRovingFocusGroup: n,
2516
- orientation: r,
2517
- loop: o = !1,
2518
- dir: i,
2519
- currentTabStopId: s,
2520
- defaultCurrentTabStopId: a,
2521
- onCurrentTabStopIdChange: d,
2522
- onEntryFocus: f,
2523
- preventScrollOnEntryFocus: u = !1,
2524
- ...l
2525
- } = e, p = c.useRef(null), h = U(t, p), g = Sn(i), [m, v] = _t({
2526
- prop: s,
2527
- defaultProp: a ?? null,
2528
- onChange: d,
2529
- caller: Fe
2530
- }), [y, C] = c.useState(!1), b = ee(f), x = ur(n), E = c.useRef(!1), [M, S] = c.useState(0);
2531
- return c.useEffect(() => {
2532
- const A = p.current;
2533
- if (A)
2534
- return A.addEventListener(Ct, b), () => A.removeEventListener(Ct, b);
2535
- }, [b]), /* @__PURE__ */ w(
2536
- ua,
2537
- {
2538
- scope: n,
2539
- orientation: r,
2540
- dir: g,
2541
- loop: o,
2542
- currentTabStopId: m,
2543
- onItemFocus: c.useCallback(
2544
- (A) => v(A),
2545
- [v]
2546
- ),
2547
- onItemShiftTab: c.useCallback(() => C(!0), []),
2548
- onFocusableItemAdd: c.useCallback(
2549
- () => S((A) => A + 1),
2550
- []
2551
- ),
2552
- onFocusableItemRemove: c.useCallback(
2553
- () => S((A) => A - 1),
2554
- []
2555
- ),
2556
- children: /* @__PURE__ */ w(
2557
- K.div,
2558
- {
2559
- tabIndex: y || M === 0 ? -1 : 0,
2560
- "data-orientation": r,
2561
- ...l,
2562
- ref: h,
2563
- style: { outline: "none", ...e.style },
2564
- onMouseDown: O(e.onMouseDown, () => {
2565
- E.current = !0;
2566
- }),
2567
- onFocus: O(e.onFocus, (A) => {
2568
- const I = !E.current;
2569
- if (A.target === A.currentTarget && I && !y) {
2570
- const _ = new CustomEvent(Ct, aa);
2571
- if (A.currentTarget.dispatchEvent(_), !_.defaultPrevented) {
2572
- const T = x().filter((D) => D.focusable), L = T.find((D) => D.active), k = T.find((D) => D.id === m), B = [L, k, ...T].filter(
2573
- Boolean
2574
- ).map((D) => D.ref.current);
2575
- hr(B, u);
2576
- }
2577
- }
2578
- E.current = !1;
2579
- }),
2580
- onBlur: O(e.onBlur, () => C(!1))
2581
- }
2582
- )
2583
- }
2584
- );
2585
- }), pr = "RovingFocusGroupItem", mr = c.forwardRef(
2586
- (e, t) => {
2587
- const {
2588
- __scopeRovingFocusGroup: n,
2589
- focusable: r = !0,
2590
- active: o = !1,
2591
- tabStopId: i,
2592
- children: s,
2593
- ...a
2594
- } = e, d = _e(), f = i || d, u = fa(pr, n), l = u.currentTabStopId === f, p = ur(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: m } = u;
2595
- return c.useEffect(() => {
2596
- if (r)
2597
- return h(), () => g();
2598
- }, [r, h, g]), /* @__PURE__ */ w(
2599
- At.ItemSlot,
2600
- {
2601
- scope: n,
2602
- id: f,
2603
- focusable: r,
2604
- active: o,
2605
- children: /* @__PURE__ */ w(
2606
- K.span,
2607
- {
2608
- tabIndex: l ? 0 : -1,
2609
- "data-orientation": u.orientation,
2610
- ...a,
2611
- ref: t,
2612
- onMouseDown: O(e.onMouseDown, (v) => {
2613
- r ? u.onItemFocus(f) : v.preventDefault();
2614
- }),
2615
- onFocus: O(e.onFocus, () => u.onItemFocus(f)),
2616
- onKeyDown: O(e.onKeyDown, (v) => {
2617
- if (v.key === "Tab" && v.shiftKey) {
2618
- u.onItemShiftTab();
2619
- return;
2620
- }
2621
- if (v.target !== v.currentTarget) return;
2622
- const y = ha(v, u.orientation, u.dir);
2623
- if (y !== void 0) {
2624
- if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
2625
- v.preventDefault();
2626
- let b = p().filter((x) => x.focusable).map((x) => x.ref.current);
2627
- if (y === "last") b.reverse();
2628
- else if (y === "prev" || y === "next") {
2629
- y === "prev" && b.reverse();
2630
- const x = b.indexOf(v.currentTarget);
2631
- b = u.loop ? va(b, x + 1) : b.slice(x + 1);
2632
- }
2633
- setTimeout(() => hr(b));
2634
- }
2635
- }),
2636
- children: typeof s == "function" ? s({ isCurrentTabStop: l, hasTabStop: m != null }) : s
2637
- }
2638
- )
2639
- }
2640
- );
2641
- }
2642
- );
2643
- mr.displayName = pr;
2644
- var pa = {
2645
- ArrowLeft: "prev",
2646
- ArrowUp: "prev",
2647
- ArrowRight: "next",
2648
- ArrowDown: "next",
2649
- PageUp: "first",
2650
- Home: "first",
2651
- PageDown: "last",
2652
- End: "last"
2653
- };
2654
- function ma(e, t) {
2655
- return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
2656
- }
2657
- function ha(e, t, n) {
2658
- const r = ma(e.key, n);
2659
- if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
2660
- return pa[r];
2661
- }
2662
- function hr(e, t = !1) {
2663
- const n = document.activeElement;
2664
- for (const r of e)
2665
- if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
2666
- }
2667
- function va(e, t) {
2668
- return e.map((n, r) => e[(t + r) % e.length]);
2669
- }
2670
- var ga = dr, wa = mr;
2671
- // @__NO_SIDE_EFFECTS__
2672
- function ya(e) {
2673
- const t = /* @__PURE__ */ ba(e), n = c.forwardRef((r, o) => {
2674
- const { children: i, ...s } = r, a = c.Children.toArray(i), d = a.find(xa);
2675
- if (d) {
2676
- const f = d.props.children, u = a.map((l) => l === d ? c.Children.count(f) > 1 ? c.Children.only(null) : c.isValidElement(f) ? f.props.children : null : l);
2677
- return /* @__PURE__ */ w(t, { ...s, ref: o, children: c.isValidElement(f) ? c.cloneElement(f, void 0, u) : null });
2678
- }
2679
- return /* @__PURE__ */ w(t, { ...s, ref: o, children: i });
2680
- });
2681
- return n.displayName = `${e}.Slot`, n;
2682
- }
2683
- // @__NO_SIDE_EFFECTS__
2684
- function ba(e) {
2685
- const t = c.forwardRef((n, r) => {
2686
- const { children: o, ...i } = n;
2687
- if (c.isValidElement(o)) {
2688
- const s = Sa(o), a = Ea(i, o.props);
2689
- return o.type !== c.Fragment && (a.ref = r ? rt(r, s) : s), c.cloneElement(o, a);
2690
- }
2691
- return c.Children.count(o) > 1 ? c.Children.only(null) : null;
2692
- });
2693
- return t.displayName = `${e}.SlotClone`, t;
2694
- }
2695
- var Ca = Symbol("radix.slottable");
2696
- function xa(e) {
2697
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ca;
2698
- }
2699
- function Ea(e, t) {
2700
- const n = { ...t };
2701
- for (const r in t) {
2702
- const o = e[r], i = t[r];
2703
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...a) => {
2704
- const d = i(...a);
2705
- return o(...a), d;
2706
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2707
- }
2708
- return { ...e, ...n };
2709
- }
2710
- function Sa(e) {
2711
- var r, o;
2712
- let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2713
- return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2714
- }
2715
- var Pt = ["Enter", " "], Ra = ["ArrowDown", "PageUp", "Home"], vr = ["ArrowUp", "PageDown", "End"], Ma = [...Ra, ...vr], Aa = {
2716
- ltr: [...Pt, "ArrowRight"],
2717
- rtl: [...Pt, "ArrowLeft"]
2718
- }, Pa = {
2719
- ltr: ["ArrowLeft"],
2720
- rtl: ["ArrowRight"]
2721
- }, $e = "Menu", [Te, Oa, _a] = Rn($e), [me, gr] = Le($e, [
2722
- _a,
2723
- er,
2724
- fr
2725
- ]), Be = er(), wr = fr(), [yr, ue] = me($e), [Da, We] = me($e), br = (e) => {
2726
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: i, modal: s = !0 } = e, a = Be(t), [d, f] = c.useState(null), u = c.useRef(!1), l = ee(i), p = Sn(o);
2727
- return c.useEffect(() => {
2728
- const h = () => {
2729
- u.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
2730
- }, g = () => u.current = !1;
2731
- return document.addEventListener("keydown", h, { capture: !0 }), () => {
2732
- document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
2733
- };
2734
- }, []), /* @__PURE__ */ w(lr, { ...a, children: /* @__PURE__ */ w(
2735
- yr,
2736
- {
2737
- scope: t,
2738
- open: n,
2739
- onOpenChange: l,
2740
- content: d,
2741
- onContentChange: f,
2742
- children: /* @__PURE__ */ w(
2743
- Da,
2744
- {
2745
- scope: t,
2746
- onClose: c.useCallback(() => l(!1), [l]),
2747
- isUsingKeyboardRef: u,
2748
- dir: p,
2749
- modal: s,
2750
- children: r
2751
- }
2752
- )
2753
- }
2754
- ) });
2755
- };
2756
- br.displayName = $e;
2757
- var Ia = "MenuAnchor", Wt = c.forwardRef(
2758
- (e, t) => {
2759
- const { __scopeMenu: n, ...r } = e, o = Be(n);
2760
- return /* @__PURE__ */ w(oa, { ...o, ...r, ref: t });
2761
- }
2762
- );
2763
- Wt.displayName = Ia;
2764
- var Gt = "MenuPortal", [Ta, Cr] = me(Gt, {
2765
- forceMount: void 0
2766
- }), xr = (e) => {
2767
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, i = ue(Gt, t);
2768
- return /* @__PURE__ */ w(Ta, { scope: t, forceMount: n, children: /* @__PURE__ */ w(ot, { present: n || i.open, children: /* @__PURE__ */ w(Dn, { asChild: !0, container: o, children: r }) }) });
2769
- };
2770
- xr.displayName = Gt;
2771
- var j = "MenuContent", [Na, Kt] = me(j), Er = c.forwardRef(
2772
- (e, t) => {
2773
- const n = Cr(j, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ue(j, e.__scopeMenu), s = We(j, e.__scopeMenu);
2774
- return /* @__PURE__ */ w(Te.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(ot, { present: r || i.open, children: /* @__PURE__ */ w(Te.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ w(La, { ...o, ref: t }) : /* @__PURE__ */ w(ka, { ...o, ref: t }) }) }) });
2775
- }
2776
- ), La = c.forwardRef(
2777
- (e, t) => {
2778
- const n = ue(j, e.__scopeMenu), r = c.useRef(null), o = U(t, r);
2779
- return c.useEffect(() => {
2780
- const i = r.current;
2781
- if (i) return $i(i);
2782
- }, []), /* @__PURE__ */ w(
2783
- Vt,
2784
- {
2785
- ...e,
2786
- ref: o,
2787
- trapFocus: n.open,
2788
- disableOutsidePointerEvents: n.open,
2789
- disableOutsideScroll: !0,
2790
- onFocusOutside: O(
2791
- e.onFocusOutside,
2792
- (i) => i.preventDefault(),
2793
- { checkForDefaultPrevented: !1 }
2794
- ),
2795
- onDismiss: () => n.onOpenChange(!1)
2796
- }
2797
- );
2798
- }
2799
- ), ka = c.forwardRef((e, t) => {
2800
- const n = ue(j, e.__scopeMenu);
2801
- return /* @__PURE__ */ w(
2802
- Vt,
2803
- {
2804
- ...e,
2805
- ref: t,
2806
- trapFocus: !1,
2807
- disableOutsidePointerEvents: !1,
2808
- disableOutsideScroll: !1,
2809
- onDismiss: () => n.onOpenChange(!1)
2810
- }
2811
- );
2812
- }), Fa = /* @__PURE__ */ ya("MenuContent.ScrollLock"), Vt = c.forwardRef(
2813
- (e, t) => {
2814
- const {
2815
- __scopeMenu: n,
2816
- loop: r = !1,
2817
- trapFocus: o,
2818
- onOpenAutoFocus: i,
2819
- onCloseAutoFocus: s,
2820
- disableOutsidePointerEvents: a,
2821
- onEntryFocus: d,
2822
- onEscapeKeyDown: f,
2823
- onPointerDownOutside: u,
2824
- onFocusOutside: l,
2825
- onInteractOutside: p,
2826
- onDismiss: h,
2827
- disableOutsideScroll: g,
2828
- ...m
2829
- } = e, v = ue(j, n), y = We(j, n), C = Be(n), b = wr(n), x = Oa(n), [E, M] = c.useState(null), S = c.useRef(null), A = U(t, S, v.onContentChange), I = c.useRef(0), _ = c.useRef(""), T = c.useRef(0), L = c.useRef(null), k = c.useRef("right"), N = c.useRef(0), B = g ? Bn : c.Fragment, D = g ? { as: Fa, allowPinchZoom: !0 } : void 0, $ = (R) => {
2830
- var oe, Me;
2831
- const F = _.current + R, G = x().filter((z) => !z.disabled), q = document.activeElement, Se = (oe = G.find((z) => z.ref.current === q)) == null ? void 0 : oe.textValue, Re = G.map((z) => z.textValue), Ge = Xa(Re, F, Se), fe = (Me = G.find((z) => z.textValue === Ge)) == null ? void 0 : Me.ref.current;
2832
- (function z(Ae) {
2833
- _.current = Ae, window.clearTimeout(I.current), Ae !== "" && (I.current = window.setTimeout(() => z(""), 1e3));
2834
- })(F), fe && setTimeout(() => fe.focus());
2835
- };
2836
- c.useEffect(() => () => window.clearTimeout(I.current), []), Qo();
2837
- const P = c.useCallback((R) => {
2838
- var G, q;
2839
- return k.current === ((G = L.current) == null ? void 0 : G.side) && Za(R, (q = L.current) == null ? void 0 : q.area);
2840
- }, []);
2841
- return /* @__PURE__ */ w(
2842
- Na,
2843
- {
2844
- scope: n,
2845
- searchRef: _,
2846
- onItemEnter: c.useCallback(
2847
- (R) => {
2848
- P(R) && R.preventDefault();
2849
- },
2850
- [P]
2851
- ),
2852
- onItemLeave: c.useCallback(
2853
- (R) => {
2854
- var F;
2855
- P(R) || ((F = S.current) == null || F.focus(), M(null));
2856
- },
2857
- [P]
2858
- ),
2859
- onTriggerLeave: c.useCallback(
2860
- (R) => {
2861
- P(R) && R.preventDefault();
2862
- },
2863
- [P]
2864
- ),
2865
- pointerGraceTimerRef: T,
2866
- onPointerGraceIntentChange: c.useCallback((R) => {
2867
- L.current = R;
2868
- }, []),
2869
- children: /* @__PURE__ */ w(B, { ...D, children: /* @__PURE__ */ w(
2870
- On,
2871
- {
2872
- asChild: !0,
2873
- trapped: o,
2874
- onMountAutoFocus: O(i, (R) => {
2875
- var F;
2876
- R.preventDefault(), (F = S.current) == null || F.focus({ preventScroll: !0 });
2877
- }),
2878
- onUnmountAutoFocus: s,
2879
- children: /* @__PURE__ */ w(
2880
- Dt,
2881
- {
2882
- asChild: !0,
2883
- disableOutsidePointerEvents: a,
2884
- onEscapeKeyDown: f,
2885
- onPointerDownOutside: u,
2886
- onFocusOutside: l,
2887
- onInteractOutside: p,
2888
- onDismiss: h,
2889
- children: /* @__PURE__ */ w(
2890
- ga,
2891
- {
2892
- asChild: !0,
2893
- ...b,
2894
- dir: y.dir,
2895
- orientation: "vertical",
2896
- loop: r,
2897
- currentTabStopId: E,
2898
- onCurrentTabStopIdChange: M,
2899
- onEntryFocus: O(d, (R) => {
2900
- y.isUsingKeyboardRef.current || R.preventDefault();
2901
- }),
2902
- preventScrollOnEntryFocus: !0,
2903
- children: /* @__PURE__ */ w(
2904
- ia,
2905
- {
2906
- role: "menu",
2907
- "aria-orientation": "vertical",
2908
- "data-state": Wr(v.open),
2909
- "data-radix-menu-content": "",
2910
- dir: y.dir,
2911
- ...C,
2912
- ...m,
2913
- ref: A,
2914
- style: { outline: "none", ...m.style },
2915
- onKeyDown: O(m.onKeyDown, (R) => {
2916
- const G = R.target.closest("[data-radix-menu-content]") === R.currentTarget, q = R.ctrlKey || R.altKey || R.metaKey, Se = R.key.length === 1;
2917
- G && (R.key === "Tab" && R.preventDefault(), !q && Se && $(R.key));
2918
- const Re = S.current;
2919
- if (R.target !== Re || !Ma.includes(R.key)) return;
2920
- R.preventDefault();
2921
- const fe = x().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
2922
- vr.includes(R.key) && fe.reverse(), ja(fe);
2923
- }),
2924
- onBlur: O(e.onBlur, (R) => {
2925
- R.currentTarget.contains(R.target) || (window.clearTimeout(I.current), _.current = "");
2926
- }),
2927
- onPointerMove: O(
2928
- e.onPointerMove,
2929
- Ne((R) => {
2930
- const F = R.target, G = N.current !== R.clientX;
2931
- if (R.currentTarget.contains(F) && G) {
2932
- const q = R.clientX > N.current ? "right" : "left";
2933
- k.current = q, N.current = R.clientX;
2934
- }
2935
- })
2936
- )
2937
- }
2938
- )
2939
- }
2940
- )
2941
- }
2942
- )
2943
- }
2944
- ) })
2945
- }
2946
- );
2947
- }
2948
- );
2949
- Er.displayName = j;
2950
- var $a = "MenuGroup", Ht = c.forwardRef(
2951
- (e, t) => {
2952
- const { __scopeMenu: n, ...r } = e;
2953
- return /* @__PURE__ */ w(K.div, { role: "group", ...r, ref: t });
2954
- }
2955
- );
2956
- Ht.displayName = $a;
2957
- var Ba = "MenuLabel", Sr = c.forwardRef(
2958
- (e, t) => {
2959
- const { __scopeMenu: n, ...r } = e;
2960
- return /* @__PURE__ */ w(K.div, { ...r, ref: t });
2961
- }
2962
- );
2963
- Sr.displayName = Ba;
2964
- var tt = "MenuItem", xn = "menu.itemSelect", ut = c.forwardRef(
2965
- (e, t) => {
2966
- const { disabled: n = !1, onSelect: r, ...o } = e, i = c.useRef(null), s = We(tt, e.__scopeMenu), a = Kt(tt, e.__scopeMenu), d = U(t, i), f = c.useRef(!1), u = () => {
2967
- const l = i.current;
2968
- if (!n && l) {
2969
- const p = new CustomEvent(xn, { bubbles: !0, cancelable: !0 });
2970
- l.addEventListener(xn, (h) => r == null ? void 0 : r(h), { once: !0 }), En(l, p), p.defaultPrevented ? f.current = !1 : s.onClose();
2971
- }
2972
- };
2973
- return /* @__PURE__ */ w(
2974
- Rr,
2975
- {
2976
- ...o,
2977
- ref: d,
2978
- disabled: n,
2979
- onClick: O(e.onClick, u),
2980
- onPointerDown: (l) => {
2981
- var p;
2982
- (p = e.onPointerDown) == null || p.call(e, l), f.current = !0;
2983
- },
2984
- onPointerUp: O(e.onPointerUp, (l) => {
2985
- var p;
2986
- f.current || (p = l.currentTarget) == null || p.click();
2987
- }),
2988
- onKeyDown: O(e.onKeyDown, (l) => {
2989
- const p = a.searchRef.current !== "";
2990
- n || p && l.key === " " || Pt.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
2991
- })
2992
- }
2993
- );
2994
- }
2995
- );
2996
- ut.displayName = tt;
2997
- var Rr = c.forwardRef(
2998
- (e, t) => {
2999
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...i } = e, s = Kt(tt, n), a = wr(n), d = c.useRef(null), f = U(t, d), [u, l] = c.useState(!1), [p, h] = c.useState("");
3000
- return c.useEffect(() => {
3001
- const g = d.current;
3002
- g && h((g.textContent ?? "").trim());
3003
- }, [i.children]), /* @__PURE__ */ w(
3004
- Te.ItemSlot,
3005
- {
3006
- scope: n,
3007
- disabled: r,
3008
- textValue: o ?? p,
3009
- children: /* @__PURE__ */ w(wa, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ w(
3010
- K.div,
3011
- {
3012
- role: "menuitem",
3013
- "data-highlighted": u ? "" : void 0,
3014
- "aria-disabled": r || void 0,
3015
- "data-disabled": r ? "" : void 0,
3016
- ...i,
3017
- ref: f,
3018
- onPointerMove: O(
3019
- e.onPointerMove,
3020
- Ne((g) => {
3021
- r ? s.onItemLeave(g) : (s.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
3022
- })
3023
- ),
3024
- onPointerLeave: O(
3025
- e.onPointerLeave,
3026
- Ne((g) => s.onItemLeave(g))
3027
- ),
3028
- onFocus: O(e.onFocus, () => l(!0)),
3029
- onBlur: O(e.onBlur, () => l(!1))
3030
- }
3031
- ) })
3032
- }
3033
- );
3034
- }
3035
- ), Wa = "MenuCheckboxItem", Mr = c.forwardRef(
3036
- (e, t) => {
3037
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
3038
- return /* @__PURE__ */ w(Dr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ w(
3039
- ut,
3040
- {
3041
- role: "menuitemcheckbox",
3042
- "aria-checked": nt(n) ? "mixed" : n,
3043
- ...o,
3044
- ref: t,
3045
- "data-state": jt(n),
3046
- onSelect: O(
3047
- o.onSelect,
3048
- () => r == null ? void 0 : r(nt(n) ? !0 : !n),
3049
- { checkForDefaultPrevented: !1 }
3050
- )
3051
- }
3052
- ) });
3053
- }
3054
- );
3055
- Mr.displayName = Wa;
3056
- var Ar = "MenuRadioGroup", [Ga, Ka] = me(
3057
- Ar,
3058
- { value: void 0, onValueChange: () => {
3059
- } }
3060
- ), Pr = c.forwardRef(
3061
- (e, t) => {
3062
- const { value: n, onValueChange: r, ...o } = e, i = ee(r);
3063
- return /* @__PURE__ */ w(Ga, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ w(Ht, { ...o, ref: t }) });
3064
- }
3065
- );
3066
- Pr.displayName = Ar;
3067
- var Or = "MenuRadioItem", _r = c.forwardRef(
3068
- (e, t) => {
3069
- const { value: n, ...r } = e, o = Ka(Or, e.__scopeMenu), i = n === o.value;
3070
- return /* @__PURE__ */ w(Dr, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ w(
3071
- ut,
3072
- {
3073
- role: "menuitemradio",
3074
- "aria-checked": i,
3075
- ...r,
3076
- ref: t,
3077
- "data-state": jt(i),
3078
- onSelect: O(
3079
- r.onSelect,
3080
- () => {
3081
- var s;
3082
- return (s = o.onValueChange) == null ? void 0 : s.call(o, n);
3083
- },
3084
- { checkForDefaultPrevented: !1 }
3085
- )
3086
- }
3087
- ) });
3088
- }
3089
- );
3090
- _r.displayName = Or;
3091
- var Ut = "MenuItemIndicator", [Dr, Va] = me(
3092
- Ut,
3093
- { checked: !1 }
3094
- ), Ir = c.forwardRef(
3095
- (e, t) => {
3096
- const { __scopeMenu: n, forceMount: r, ...o } = e, i = Va(Ut, n);
3097
- return /* @__PURE__ */ w(
3098
- ot,
3099
- {
3100
- present: r || nt(i.checked) || i.checked === !0,
3101
- children: /* @__PURE__ */ w(
3102
- K.span,
3103
- {
3104
- ...o,
3105
- ref: t,
3106
- "data-state": jt(i.checked)
3107
- }
3108
- )
3109
- }
3110
- );
3111
- }
3112
- );
3113
- Ir.displayName = Ut;
3114
- var Ha = "MenuSeparator", Tr = c.forwardRef(
3115
- (e, t) => {
3116
- const { __scopeMenu: n, ...r } = e;
3117
- return /* @__PURE__ */ w(
3118
- K.div,
3119
- {
3120
- role: "separator",
3121
- "aria-orientation": "horizontal",
3122
- ...r,
3123
- ref: t
3124
- }
3125
- );
3126
- }
3127
- );
3128
- Tr.displayName = Ha;
3129
- var Ua = "MenuArrow", Nr = c.forwardRef(
3130
- (e, t) => {
3131
- const { __scopeMenu: n, ...r } = e, o = Be(n);
3132
- return /* @__PURE__ */ w(sa, { ...o, ...r, ref: t });
3133
- }
3134
- );
3135
- Nr.displayName = Ua;
3136
- var zt = "MenuSub", [za, Lr] = me(zt), kr = (e) => {
3137
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, i = ue(zt, t), s = Be(t), [a, d] = c.useState(null), [f, u] = c.useState(null), l = ee(o);
3138
- return c.useEffect(() => (i.open === !1 && l(!1), () => l(!1)), [i.open, l]), /* @__PURE__ */ w(lr, { ...s, children: /* @__PURE__ */ w(
3139
- yr,
3140
- {
3141
- scope: t,
3142
- open: r,
3143
- onOpenChange: l,
3144
- content: f,
3145
- onContentChange: u,
3146
- children: /* @__PURE__ */ w(
3147
- za,
3148
- {
3149
- scope: t,
3150
- contentId: _e(),
3151
- triggerId: _e(),
3152
- trigger: a,
3153
- onTriggerChange: d,
3154
- children: n
3155
- }
3156
- )
3157
- }
3158
- ) });
3159
- };
3160
- kr.displayName = zt;
3161
- var Oe = "MenuSubTrigger", Fr = c.forwardRef(
3162
- (e, t) => {
3163
- const n = ue(Oe, e.__scopeMenu), r = We(Oe, e.__scopeMenu), o = Lr(Oe, e.__scopeMenu), i = Kt(Oe, e.__scopeMenu), s = c.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: d } = i, f = { __scopeMenu: e.__scopeMenu }, u = c.useCallback(() => {
3164
- s.current && window.clearTimeout(s.current), s.current = null;
3165
- }, []);
3166
- return c.useEffect(() => u, [u]), c.useEffect(() => {
3167
- const l = a.current;
3168
- return () => {
3169
- window.clearTimeout(l), d(null);
3170
- };
3171
- }, [a, d]), /* @__PURE__ */ w(Wt, { asChild: !0, ...f, children: /* @__PURE__ */ w(
3172
- Rr,
3173
- {
3174
- id: o.triggerId,
3175
- "aria-haspopup": "menu",
3176
- "aria-expanded": n.open,
3177
- "aria-controls": o.contentId,
3178
- "data-state": Wr(n.open),
3179
- ...e,
3180
- ref: rt(t, o.onTriggerChange),
3181
- onClick: (l) => {
3182
- var p;
3183
- (p = e.onClick) == null || p.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
3184
- },
3185
- onPointerMove: O(
3186
- e.onPointerMove,
3187
- Ne((l) => {
3188
- i.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !s.current && (i.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
3189
- n.onOpenChange(!0), u();
3190
- }, 100));
3191
- })
3192
- ),
3193
- onPointerLeave: O(
3194
- e.onPointerLeave,
3195
- Ne((l) => {
3196
- var h, g;
3197
- u();
3198
- const p = (h = n.content) == null ? void 0 : h.getBoundingClientRect();
3199
- if (p) {
3200
- const m = (g = n.content) == null ? void 0 : g.dataset.side, v = m === "right", y = v ? -5 : 5, C = p[v ? "left" : "right"], b = p[v ? "right" : "left"];
3201
- i.onPointerGraceIntentChange({
3202
- area: [
3203
- // Apply a bleed on clientX to ensure that our exit point is
3204
- // consistently within polygon bounds
3205
- { x: l.clientX + y, y: l.clientY },
3206
- { x: C, y: p.top },
3207
- { x: b, y: p.top },
3208
- { x: b, y: p.bottom },
3209
- { x: C, y: p.bottom }
3210
- ],
3211
- side: m
3212
- }), window.clearTimeout(a.current), a.current = window.setTimeout(
3213
- () => i.onPointerGraceIntentChange(null),
3214
- 300
3215
- );
3216
- } else {
3217
- if (i.onTriggerLeave(l), l.defaultPrevented) return;
3218
- i.onPointerGraceIntentChange(null);
3219
- }
3220
- })
3221
- ),
3222
- onKeyDown: O(e.onKeyDown, (l) => {
3223
- var h;
3224
- const p = i.searchRef.current !== "";
3225
- e.disabled || p && l.key === " " || Aa[r.dir].includes(l.key) && (n.onOpenChange(!0), (h = n.content) == null || h.focus(), l.preventDefault());
3226
- })
3227
- }
3228
- ) });
3229
- }
3230
- );
3231
- Fr.displayName = Oe;
3232
- var $r = "MenuSubContent", Br = c.forwardRef(
3233
- (e, t) => {
3234
- const n = Cr(j, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ue(j, e.__scopeMenu), s = We(j, e.__scopeMenu), a = Lr($r, e.__scopeMenu), d = c.useRef(null), f = U(t, d);
3235
- return /* @__PURE__ */ w(Te.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(ot, { present: r || i.open, children: /* @__PURE__ */ w(Te.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(
3236
- Vt,
3237
- {
3238
- id: a.contentId,
3239
- "aria-labelledby": a.triggerId,
3240
- ...o,
3241
- ref: f,
3242
- align: "start",
3243
- side: s.dir === "rtl" ? "left" : "right",
3244
- disableOutsidePointerEvents: !1,
3245
- disableOutsideScroll: !1,
3246
- trapFocus: !1,
3247
- onOpenAutoFocus: (u) => {
3248
- var l;
3249
- s.isUsingKeyboardRef.current && ((l = d.current) == null || l.focus()), u.preventDefault();
3250
- },
3251
- onCloseAutoFocus: (u) => u.preventDefault(),
3252
- onFocusOutside: O(e.onFocusOutside, (u) => {
3253
- u.target !== a.trigger && i.onOpenChange(!1);
3254
- }),
3255
- onEscapeKeyDown: O(e.onEscapeKeyDown, (u) => {
3256
- s.onClose(), u.preventDefault();
3257
- }),
3258
- onKeyDown: O(e.onKeyDown, (u) => {
3259
- var h;
3260
- const l = u.currentTarget.contains(u.target), p = Pa[s.dir].includes(u.key);
3261
- l && p && (i.onOpenChange(!1), (h = a.trigger) == null || h.focus(), u.preventDefault());
3262
- })
3263
- }
3264
- ) }) }) });
3265
- }
3266
- );
3267
- Br.displayName = $r;
3268
- function Wr(e) {
3269
- return e ? "open" : "closed";
3270
- }
3271
- function nt(e) {
3272
- return e === "indeterminate";
3273
- }
3274
- function jt(e) {
3275
- return nt(e) ? "indeterminate" : e ? "checked" : "unchecked";
3276
- }
3277
- function ja(e) {
3278
- const t = document.activeElement;
3279
- for (const n of e)
3280
- if (n === t || (n.focus(), document.activeElement !== t)) return;
3281
- }
3282
- function Ya(e, t) {
3283
- return e.map((n, r) => e[(t + r) % e.length]);
3284
- }
3285
- function Xa(e, t, n) {
3286
- const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
3287
- let s = Ya(e, Math.max(i, 0));
3288
- o.length === 1 && (s = s.filter((f) => f !== n));
3289
- const d = s.find(
3290
- (f) => f.toLowerCase().startsWith(o.toLowerCase())
3291
- );
3292
- return d !== n ? d : void 0;
3293
- }
3294
- function qa(e, t) {
3295
- const { x: n, y: r } = e;
3296
- let o = !1;
3297
- for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
3298
- const a = t[i], d = t[s], f = a.x, u = a.y, l = d.x, p = d.y;
3299
- u > r != p > r && n < (l - f) * (r - u) / (p - u) + f && (o = !o);
3300
- }
3301
- return o;
3302
- }
3303
- function Za(e, t) {
3304
- if (!t) return !1;
3305
- const n = { x: e.clientX, y: e.clientY };
3306
- return qa(n, t);
3307
- }
3308
- function Ne(e) {
3309
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
3310
- }
3311
- var Qa = br, Ja = Wt, ec = xr, tc = Er, nc = Ht, rc = Sr, oc = ut, ic = Mr, sc = Pr, ac = _r, cc = Ir, lc = Tr, uc = Nr, fc = kr, dc = Fr, pc = Br, ft = "DropdownMenu", [mc] = Le(
3312
- ft,
3313
- [gr]
3314
- ), W = gr(), [hc, Gr] = mc(ft), Kr = (e) => {
3315
- const {
3316
- __scopeDropdownMenu: t,
3317
- children: n,
3318
- dir: r,
3319
- open: o,
3320
- defaultOpen: i,
3321
- onOpenChange: s,
3322
- modal: a = !0
3323
- } = e, d = W(t), f = c.useRef(null), [u, l] = _t({
3324
- prop: o,
3325
- defaultProp: i ?? !1,
3326
- onChange: s,
3327
- caller: ft
3328
- });
3329
- return /* @__PURE__ */ w(
3330
- hc,
3331
- {
3332
- scope: t,
3333
- triggerId: _e(),
3334
- triggerRef: f,
3335
- contentId: _e(),
3336
- open: u,
3337
- onOpenChange: l,
3338
- onOpenToggle: c.useCallback(() => l((p) => !p), [l]),
3339
- modal: a,
3340
- children: /* @__PURE__ */ w(Qa, { ...d, open: u, onOpenChange: l, dir: r, modal: a, children: n })
3341
- }
3342
- );
3343
- };
3344
- Kr.displayName = ft;
3345
- var Vr = "DropdownMenuTrigger", Hr = c.forwardRef(
3346
- (e, t) => {
3347
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, i = Gr(Vr, n), s = W(n);
3348
- return /* @__PURE__ */ w(Ja, { asChild: !0, ...s, children: /* @__PURE__ */ w(
3349
- K.button,
3350
- {
3351
- type: "button",
3352
- id: i.triggerId,
3353
- "aria-haspopup": "menu",
3354
- "aria-expanded": i.open,
3355
- "aria-controls": i.open ? i.contentId : void 0,
3356
- "data-state": i.open ? "open" : "closed",
3357
- "data-disabled": r ? "" : void 0,
3358
- disabled: r,
3359
- ...o,
3360
- ref: rt(t, i.triggerRef),
3361
- onPointerDown: O(e.onPointerDown, (a) => {
3362
- !r && a.button === 0 && a.ctrlKey === !1 && (i.onOpenToggle(), i.open || a.preventDefault());
3363
- }),
3364
- onKeyDown: O(e.onKeyDown, (a) => {
3365
- r || (["Enter", " "].includes(a.key) && i.onOpenToggle(), a.key === "ArrowDown" && i.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(a.key) && a.preventDefault());
3366
- })
3367
- }
3368
- ) });
3369
- }
3370
- );
3371
- Hr.displayName = Vr;
3372
- var vc = "DropdownMenuPortal", Ur = (e) => {
3373
- const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
3374
- return /* @__PURE__ */ w(ec, { ...r, ...n });
3375
- };
3376
- Ur.displayName = vc;
3377
- var zr = "DropdownMenuContent", jr = c.forwardRef(
3378
- (e, t) => {
3379
- const { __scopeDropdownMenu: n, ...r } = e, o = Gr(zr, n), i = W(n), s = c.useRef(!1);
3380
- return /* @__PURE__ */ w(
3381
- tc,
3382
- {
3383
- id: o.contentId,
3384
- "aria-labelledby": o.triggerId,
3385
- ...i,
3386
- ...r,
3387
- ref: t,
3388
- onCloseAutoFocus: O(e.onCloseAutoFocus, (a) => {
3389
- var d;
3390
- s.current || (d = o.triggerRef.current) == null || d.focus(), s.current = !1, a.preventDefault();
3391
- }),
3392
- onInteractOutside: O(e.onInteractOutside, (a) => {
3393
- const d = a.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0, u = d.button === 2 || f;
3394
- (!o.modal || u) && (s.current = !0);
3395
- }),
3396
- style: {
3397
- ...e.style,
3398
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
3399
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
3400
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
3401
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
3402
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
3403
- }
3404
- }
3405
- );
3406
- }
3407
- );
3408
- jr.displayName = zr;
3409
- var gc = "DropdownMenuGroup", Yr = c.forwardRef(
3410
- (e, t) => {
3411
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3412
- return /* @__PURE__ */ w(nc, { ...o, ...r, ref: t });
3413
- }
3414
- );
3415
- Yr.displayName = gc;
3416
- var wc = "DropdownMenuLabel", Xr = c.forwardRef(
3417
- (e, t) => {
3418
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3419
- return /* @__PURE__ */ w(rc, { ...o, ...r, ref: t });
3420
- }
3421
- );
3422
- Xr.displayName = wc;
3423
- var yc = "DropdownMenuItem", qr = c.forwardRef(
3424
- (e, t) => {
3425
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3426
- return /* @__PURE__ */ w(oc, { ...o, ...r, ref: t });
3427
- }
3428
- );
3429
- qr.displayName = yc;
3430
- var bc = "DropdownMenuCheckboxItem", Zr = c.forwardRef((e, t) => {
3431
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3432
- return /* @__PURE__ */ w(ic, { ...o, ...r, ref: t });
3433
- });
3434
- Zr.displayName = bc;
3435
- var Cc = "DropdownMenuRadioGroup", Qr = c.forwardRef((e, t) => {
3436
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3437
- return /* @__PURE__ */ w(sc, { ...o, ...r, ref: t });
3438
- });
3439
- Qr.displayName = Cc;
3440
- var xc = "DropdownMenuRadioItem", Jr = c.forwardRef((e, t) => {
3441
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3442
- return /* @__PURE__ */ w(ac, { ...o, ...r, ref: t });
3443
- });
3444
- Jr.displayName = xc;
3445
- var Ec = "DropdownMenuItemIndicator", eo = c.forwardRef((e, t) => {
3446
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3447
- return /* @__PURE__ */ w(cc, { ...o, ...r, ref: t });
3448
- });
3449
- eo.displayName = Ec;
3450
- var Sc = "DropdownMenuSeparator", to = c.forwardRef((e, t) => {
3451
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3452
- return /* @__PURE__ */ w(lc, { ...o, ...r, ref: t });
3453
- });
3454
- to.displayName = Sc;
3455
- var Rc = "DropdownMenuArrow", Mc = c.forwardRef(
3456
- (e, t) => {
3457
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3458
- return /* @__PURE__ */ w(uc, { ...o, ...r, ref: t });
3459
- }
3460
- );
3461
- Mc.displayName = Rc;
3462
- var Ac = (e) => {
3463
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: i } = e, s = W(t), [a, d] = _t({
3464
- prop: r,
3465
- defaultProp: i ?? !1,
3466
- onChange: o,
3467
- caller: "DropdownMenuSub"
3468
- });
3469
- return /* @__PURE__ */ w(fc, { ...s, open: a, onOpenChange: d, children: n });
3470
- }, Pc = "DropdownMenuSubTrigger", no = c.forwardRef((e, t) => {
3471
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3472
- return /* @__PURE__ */ w(dc, { ...o, ...r, ref: t });
3473
- });
3474
- no.displayName = Pc;
3475
- var Oc = "DropdownMenuSubContent", ro = c.forwardRef((e, t) => {
3476
- const { __scopeDropdownMenu: n, ...r } = e, o = W(n);
3477
- return /* @__PURE__ */ w(
3478
- pc,
3479
- {
3480
- ...o,
3481
- ...r,
3482
- ref: t,
3483
- style: {
3484
- ...e.style,
3485
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
3486
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
3487
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
3488
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
3489
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
3490
- }
3491
- }
3492
- );
3493
- });
3494
- ro.displayName = Oc;
3495
- var _c = Kr, Dc = Hr, oo = Ur, io = jr, Ic = Yr, so = Xr, ao = qr, co = Zr, Tc = Qr, lo = Jr, uo = eo, fo = to, Nc = Ac, po = no, mo = ro;
3496
- const el = _c, tl = Dc, nl = Ic, rl = oo, ol = Nc, il = Tc, Lc = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ Ot(
3497
- po,
3498
- {
3499
- ref: o,
3500
- className: ne(
3501
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
3502
- t && "pl-8",
3503
- e
3504
- ),
3505
- ...r,
3506
- children: [
3507
- n,
3508
- /* @__PURE__ */ w(Ro, { className: "ml-auto h-4 w-4" })
3509
- ]
3510
- }
3511
- ));
3512
- Lc.displayName = po.displayName;
3513
- const kc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
3514
- mo,
3515
- {
3516
- ref: n,
3517
- className: ne(
3518
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
3519
- e
3520
- ),
3521
- ...t
3522
- }
3523
- ));
3524
- kc.displayName = mo.displayName;
3525
- const Fc = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ w(oo, { children: /* @__PURE__ */ w(
3526
- io,
3527
- {
3528
- ref: r,
3529
- sideOffset: t,
3530
- className: ne(
3531
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
3532
- e
3533
- ),
3534
- ...n
3535
- }
3536
- ) }));
3537
- Fc.displayName = io.displayName;
3538
- const $c = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ w(
3539
- ao,
3540
- {
3541
- ref: r,
3542
- className: ne(
3543
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3544
- t && "pl-8",
3545
- e
3546
- ),
3547
- ...n
3548
- }
3549
- ));
3550
- $c.displayName = ao.displayName;
3551
- const Bc = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ Ot(
3552
- co,
3553
- {
3554
- ref: o,
3555
- className: ne(
3556
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3557
- e
3558
- ),
3559
- checked: n,
3560
- ...r,
3561
- children: [
3562
- /* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(uo, { children: /* @__PURE__ */ w(Co, { className: "h-4 w-4" }) }) }),
3563
- t
3564
- ]
3565
- }
3566
- ));
3567
- Bc.displayName = co.displayName;
3568
- const Wc = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ Ot(
3569
- lo,
3570
- {
3571
- ref: r,
3572
- className: ne(
3573
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3574
- e
3575
- ),
3576
- ...n,
3577
- children: [
3578
- /* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(uo, { children: /* @__PURE__ */ w(ko, { className: "h-2 w-2 fill-current" }) }) }),
3579
- t
3580
- ]
3581
- }
3582
- ));
3583
- Wc.displayName = lo.displayName;
3584
- const Gc = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ w(
3585
- so,
3586
- {
3587
- ref: r,
3588
- className: ne("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
3589
- ...n
3590
- }
3591
- ));
3592
- Gc.displayName = so.displayName;
3593
- const Kc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
3594
- fo,
3595
- {
3596
- ref: n,
3597
- className: ne("-mx-1 my-1 h-px bg-muted", e),
3598
- ...t
3599
- }
3600
- ));
3601
- Kc.displayName = fo.displayName;
3602
- const Vc = ({ className: e, ...t }) => /* @__PURE__ */ w("span", { className: ne("ml-auto text-xs tracking-widest opacity-60", e), ...t });
3603
- Vc.displayName = "DropdownMenuShortcut";
3604
- const Hc = c.forwardRef(
3605
- ({ className: e, type: t, ...n }, r) => /* @__PURE__ */ w(
3606
- "input",
3607
- {
3608
- type: t,
3609
- className: ne(
3610
- "flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-muted-foreground/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50",
3611
- e
3612
- ),
3613
- ref: r,
3614
- ...n
3615
- }
3616
- )
3617
- );
3618
- Hc.displayName = "Input";
3619
- export {
3620
- oa as A,
3621
- wa as B,
3622
- ia as C,
3623
- el as D,
3624
- ko as E,
3625
- On as F,
3626
- Jc as G,
3627
- Qc as H,
3628
- Hc as I,
3629
- Dn as P,
3630
- lr as R,
3631
- tl as a,
3632
- Fc as b,
3633
- $c as c,
3634
- Bc as d,
3635
- Wc as e,
3636
- Gc as f,
3637
- Kc as g,
3638
- Vc as h,
3639
- nl as i,
3640
- rl as j,
3641
- ol as k,
3642
- kc as l,
3643
- Lc as m,
3644
- il as n,
3645
- er as o,
3646
- _e as p,
3647
- Rn as q,
3648
- $i as r,
3649
- Qo as s,
3650
- Bn as t,
3651
- _t as u,
3652
- Dt as v,
3653
- sa as w,
3654
- Zs as x,
3655
- fr as y,
3656
- ga as z
3657
- };
3658
- //# sourceMappingURL=input-BgPy-4Qu.js.map