@fluid-app/fluid-cli-theme-dev 0.1.58 → 0.1.60

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 (252) hide show
  1. package/README.md +109 -0
  2. package/dist/dist-cli-preview/.vite/manifest.json +1831 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -0
  4. package/dist/dist-cli-preview/capabilities.json +1 -0
  5. package/dist/dist-cli-preview/chunks/Breadcrumb-CZ-skiUy.js +91 -0
  6. package/dist/dist-cli-preview/chunks/Combobox-BGiCYa56.js +1455 -0
  7. package/dist/dist-cli-preview/chunks/ContactsScreen-vsNgy_gn.js +6930 -0
  8. package/dist/dist-cli-preview/chunks/MemberManagementProviders-DMwkh3JW.js +1509 -0
  9. package/dist/dist-cli-preview/chunks/MessagingScreen-DzJOwPGH.js +38475 -0
  10. package/dist/dist-cli-preview/chunks/MobileActionSheet-DqVPgFKI.js +2895 -0
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-BSmWlCKA.js +4950 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-CVEl9FnN.js +1349 -0
  13. package/dist/dist-cli-preview/chunks/OrdersScreen-d4fJE_dm.js +9 -0
  14. package/dist/dist-cli-preview/chunks/ProfileScreen-BC5gyJDY.js +2581 -0
  15. package/dist/dist-cli-preview/chunks/SubscriptionsScreen-CFM4Pufg.js +38 -0
  16. package/dist/dist-cli-preview/chunks/account-screen-runtime-DxhJm6Qd.js +12407 -0
  17. package/dist/dist-cli-preview/chunks/ar-4OhalXtk.js +628 -0
  18. package/dist/dist-cli-preview/chunks/ar-8iaFSgop.js +189 -0
  19. package/dist/dist-cli-preview/chunks/ar-B7NQmkZ1.js +341 -0
  20. package/dist/dist-cli-preview/chunks/ar-DEUMqcX3.js +563 -0
  21. package/dist/dist-cli-preview/chunks/ar-DT9j-dOi.js +720 -0
  22. package/dist/dist-cli-preview/chunks/ar-D_B30x0o.js +176 -0
  23. package/dist/dist-cli-preview/chunks/arrow-left-UFKI-PQf.js +14 -0
  24. package/dist/dist-cli-preview/chunks/bg-CIgMfa9k.js +176 -0
  25. package/dist/dist-cli-preview/chunks/bg-CS2zt-UV.js +720 -0
  26. package/dist/dist-cli-preview/chunks/bg-CxfL8rZN.js +341 -0
  27. package/dist/dist-cli-preview/chunks/bg-DOdbUYGw.js +563 -0
  28. package/dist/dist-cli-preview/chunks/bg-D_C_HmWn.js +189 -0
  29. package/dist/dist-cli-preview/chunks/bg-DeBjzn9B.js +628 -0
  30. package/dist/dist-cli-preview/chunks/bn-BAGJspTJ.js +563 -0
  31. package/dist/dist-cli-preview/chunks/bn-BgnBXWHo.js +176 -0
  32. package/dist/dist-cli-preview/chunks/bn-CRBwi_3N.js +628 -0
  33. package/dist/dist-cli-preview/chunks/bn-CdhHCK--.js +341 -0
  34. package/dist/dist-cli-preview/chunks/bn-DiqHsF7K.js +720 -0
  35. package/dist/dist-cli-preview/chunks/bn-UEAt87N9.js +189 -0
  36. package/dist/dist-cli-preview/chunks/cli-preview-DunPfnjU.js +151 -0
  37. package/dist/dist-cli-preview/chunks/client.gen-CSTBgfxj.js +672 -0
  38. package/dist/dist-cli-preview/chunks/contacts-CpYlEgAq.js +4 -0
  39. package/dist/dist-cli-preview/chunks/countries-api-adapter-B3usO25w.js +108 -0
  40. package/dist/dist-cli-preview/chunks/create-card-entry-container-DHgsbSyr.js +23942 -0
  41. package/dist/dist-cli-preview/chunks/cs-B8rJsMOS.js +189 -0
  42. package/dist/dist-cli-preview/chunks/cs-ChKaPMtV.js +563 -0
  43. package/dist/dist-cli-preview/chunks/cs-CkdXQxaf.js +720 -0
  44. package/dist/dist-cli-preview/chunks/cs-DTe-xGeI.js +341 -0
  45. package/dist/dist-cli-preview/chunks/cs-DmLSumGB.js +176 -0
  46. package/dist/dist-cli-preview/chunks/cs-jXPm6Nhj.js +628 -0
  47. package/dist/dist-cli-preview/chunks/da-7uI_CROE.js +628 -0
  48. package/dist/dist-cli-preview/chunks/da-B8Cl_vkl.js +341 -0
  49. package/dist/dist-cli-preview/chunks/da-Bee-xQNq.js +563 -0
  50. package/dist/dist-cli-preview/chunks/da-DYlEkykt.js +720 -0
  51. package/dist/dist-cli-preview/chunks/da-EfkyseOR.js +176 -0
  52. package/dist/dist-cli-preview/chunks/da-J--1RxZp.js +189 -0
  53. package/dist/dist-cli-preview/chunks/de-BTNiErdB.js +189 -0
  54. package/dist/dist-cli-preview/chunks/de-CIhZnrdS.js +720 -0
  55. package/dist/dist-cli-preview/chunks/de-CKtChtTF.js +628 -0
  56. package/dist/dist-cli-preview/chunks/de-D8cYy8G-.js +341 -0
  57. package/dist/dist-cli-preview/chunks/de-EARi-xk5.js +176 -0
  58. package/dist/dist-cli-preview/chunks/de-zeOnL7Nl.js +563 -0
  59. package/dist/dist-cli-preview/chunks/el-0NNTwBnJ.js +563 -0
  60. package/dist/dist-cli-preview/chunks/el-BPz4rb5a.js +176 -0
  61. package/dist/dist-cli-preview/chunks/el-Bg6zRbVK.js +720 -0
  62. package/dist/dist-cli-preview/chunks/el-CUjODD23.js +628 -0
  63. package/dist/dist-cli-preview/chunks/el-Chjin2JW.js +341 -0
  64. package/dist/dist-cli-preview/chunks/el-DYay96x-.js +189 -0
  65. package/dist/dist-cli-preview/chunks/es-CFZtv6aF.js +176 -0
  66. package/dist/dist-cli-preview/chunks/es-CGgD1AV1.js +720 -0
  67. package/dist/dist-cli-preview/chunks/es-CXXB8ubn.js +628 -0
  68. package/dist/dist-cli-preview/chunks/es-Cf56ydFZ.js +189 -0
  69. package/dist/dist-cli-preview/chunks/es-DirUtV7k.js +563 -0
  70. package/dist/dist-cli-preview/chunks/es-mp8RwFN4.js +341 -0
  71. package/dist/dist-cli-preview/chunks/fi-91gcpxoy.js +341 -0
  72. package/dist/dist-cli-preview/chunks/fi-BfDoQ1rt.js +628 -0
  73. package/dist/dist-cli-preview/chunks/fi-Bn9_l4IH.js +176 -0
  74. package/dist/dist-cli-preview/chunks/fi-Bo5QdhP_.js +563 -0
  75. package/dist/dist-cli-preview/chunks/fi-CC2YqekN.js +189 -0
  76. package/dist/dist-cli-preview/chunks/fi-DUhIWph7.js +720 -0
  77. package/dist/dist-cli-preview/chunks/fr-BSouGEGN.js +176 -0
  78. package/dist/dist-cli-preview/chunks/fr-BnYsse99.js +563 -0
  79. package/dist/dist-cli-preview/chunks/fr-C32S8PvA.js +720 -0
  80. package/dist/dist-cli-preview/chunks/fr-DIQcYUq-.js +628 -0
  81. package/dist/dist-cli-preview/chunks/fr-Do6AIa1z.js +189 -0
  82. package/dist/dist-cli-preview/chunks/fr-ekvUCKTH.js +341 -0
  83. package/dist/dist-cli-preview/chunks/he-B7QiuquT.js +341 -0
  84. package/dist/dist-cli-preview/chunks/he-BYEZTUry.js +176 -0
  85. package/dist/dist-cli-preview/chunks/he-CO8gUz9X.js +628 -0
  86. package/dist/dist-cli-preview/chunks/he-DaWGyHjM.js +189 -0
  87. package/dist/dist-cli-preview/chunks/he-pFefco4W.js +563 -0
  88. package/dist/dist-cli-preview/chunks/he-xSGbvsti.js +720 -0
  89. package/dist/dist-cli-preview/chunks/hey-api-client-DSvKWGPq.js +153 -0
  90. package/dist/dist-cli-preview/chunks/hi-BLnEaAml.js +176 -0
  91. package/dist/dist-cli-preview/chunks/hi-BMFNssNU.js +720 -0
  92. package/dist/dist-cli-preview/chunks/hi-BXBdXuFm.js +189 -0
  93. package/dist/dist-cli-preview/chunks/hi-DNNhi7ud.js +341 -0
  94. package/dist/dist-cli-preview/chunks/hi-DVSXxEzh.js +628 -0
  95. package/dist/dist-cli-preview/chunks/hi-Uqd1FKtv.js +563 -0
  96. package/dist/dist-cli-preview/chunks/hr-B1T2UY_p.js +176 -0
  97. package/dist/dist-cli-preview/chunks/hr-B432GvmU.js +720 -0
  98. package/dist/dist-cli-preview/chunks/hr-BJR58Xci.js +563 -0
  99. package/dist/dist-cli-preview/chunks/hr-CAwxMKX_.js +341 -0
  100. package/dist/dist-cli-preview/chunks/hr-DBrPFNLx.js +189 -0
  101. package/dist/dist-cli-preview/chunks/hr-yH6ab4ea.js +628 -0
  102. package/dist/dist-cli-preview/chunks/hu-BcC628Ln.js +189 -0
  103. package/dist/dist-cli-preview/chunks/hu-Bv0_YQEn.js +628 -0
  104. package/dist/dist-cli-preview/chunks/hu-D_oQwH4Q.js +341 -0
  105. package/dist/dist-cli-preview/chunks/hu-Q0aE9GvJ.js +720 -0
  106. package/dist/dist-cli-preview/chunks/hu-TNzzMEzp.js +563 -0
  107. package/dist/dist-cli-preview/chunks/hu-cQw9hgLe.js +176 -0
  108. package/dist/dist-cli-preview/chunks/id-Becf5X73.js +720 -0
  109. package/dist/dist-cli-preview/chunks/id-CLvNjXjm.js +189 -0
  110. package/dist/dist-cli-preview/chunks/id-CzSVbo5E.js +628 -0
  111. package/dist/dist-cli-preview/chunks/id-Vudf_d_f.js +563 -0
  112. package/dist/dist-cli-preview/chunks/id-Zd_5csjz.js +176 -0
  113. package/dist/dist-cli-preview/chunks/id-oeAszBoo.js +341 -0
  114. package/dist/dist-cli-preview/chunks/isAfter-BUGgByEf.js +1414 -0
  115. package/dist/dist-cli-preview/chunks/it-BlwQOBaX.js +720 -0
  116. package/dist/dist-cli-preview/chunks/it-C0jghILa.js +563 -0
  117. package/dist/dist-cli-preview/chunks/it-CmxC_FIJ.js +176 -0
  118. package/dist/dist-cli-preview/chunks/it-D5BXSiSl.js +189 -0
  119. package/dist/dist-cli-preview/chunks/it-Dme6GXSG.js +341 -0
  120. package/dist/dist-cli-preview/chunks/it-xT70eFoJ.js +628 -0
  121. package/dist/dist-cli-preview/chunks/ja-BJ7phJBG.js +720 -0
  122. package/dist/dist-cli-preview/chunks/ja-Bc8dA1LN.js +189 -0
  123. package/dist/dist-cli-preview/chunks/ja-BcOunH2q.js +176 -0
  124. package/dist/dist-cli-preview/chunks/ja-CRnvQNCa.js +341 -0
  125. package/dist/dist-cli-preview/chunks/ja-CfYfDP_F.js +563 -0
  126. package/dist/dist-cli-preview/chunks/ja-Dh3z4uJk.js +628 -0
  127. package/dist/dist-cli-preview/chunks/ko-8mk8A3_I.js +341 -0
  128. package/dist/dist-cli-preview/chunks/ko-Bnp-5GAn.js +720 -0
  129. package/dist/dist-cli-preview/chunks/ko-CG_0ufw6.js +176 -0
  130. package/dist/dist-cli-preview/chunks/ko-CJ-8gCc9.js +189 -0
  131. package/dist/dist-cli-preview/chunks/ko-CnpxBQ2W.js +628 -0
  132. package/dist/dist-cli-preview/chunks/ko-CtkKNEZB.js +563 -0
  133. package/dist/dist-cli-preview/chunks/log-out-CBUq5Hd-.js +15 -0
  134. package/dist/dist-cli-preview/chunks/map-pin-DHfjSyoR.js +20 -0
  135. package/dist/dist-cli-preview/chunks/messaging-DkyH4CPP.js +4 -0
  136. package/dist/dist-cli-preview/chunks/mount-account-screen-pc1VISwF.js +11041 -0
  137. package/dist/dist-cli-preview/chunks/ms-BF5gF9D5.js +189 -0
  138. package/dist/dist-cli-preview/chunks/ms-Bs0GvdOw.js +341 -0
  139. package/dist/dist-cli-preview/chunks/ms-CyhqvfOb.js +563 -0
  140. package/dist/dist-cli-preview/chunks/ms-D6Cf3VUm.js +628 -0
  141. package/dist/dist-cli-preview/chunks/ms-DR0U3aeO.js +720 -0
  142. package/dist/dist-cli-preview/chunks/ms-DTN7PIDq.js +176 -0
  143. package/dist/dist-cli-preview/chunks/mysite-wvfITV7T.js +4 -0
  144. package/dist/dist-cli-preview/chunks/nl-C1v8tc97.js +720 -0
  145. package/dist/dist-cli-preview/chunks/nl-C5fWLZkK.js +189 -0
  146. package/dist/dist-cli-preview/chunks/nl-Cgt3zlZ8.js +628 -0
  147. package/dist/dist-cli-preview/chunks/nl-DWtWnOvH.js +563 -0
  148. package/dist/dist-cli-preview/chunks/nl-tsI6lLxl.js +341 -0
  149. package/dist/dist-cli-preview/chunks/nl-x2lc8Ct5.js +176 -0
  150. package/dist/dist-cli-preview/chunks/no-BeVycdYu.js +563 -0
  151. package/dist/dist-cli-preview/chunks/no-DMot6qX0.js +341 -0
  152. package/dist/dist-cli-preview/chunks/no-Dk9D1gjY.js +189 -0
  153. package/dist/dist-cli-preview/chunks/no-R8FScfrK.js +176 -0
  154. package/dist/dist-cli-preview/chunks/no-dhNRqvE4.js +720 -0
  155. package/dist/dist-cli-preview/chunks/no-xVFexdWN.js +628 -0
  156. package/dist/dist-cli-preview/chunks/orders-c13r499A.js +4 -0
  157. package/dist/dist-cli-preview/chunks/pl-BH1bEHfg.js +720 -0
  158. package/dist/dist-cli-preview/chunks/pl-Bl9G1yOR.js +176 -0
  159. package/dist/dist-cli-preview/chunks/pl-Cu0JzUUV.js +563 -0
  160. package/dist/dist-cli-preview/chunks/pl-D7AZQwtK.js +189 -0
  161. package/dist/dist-cli-preview/chunks/pl-Dl0M9JDp.js +628 -0
  162. package/dist/dist-cli-preview/chunks/pl-DmTxONNg.js +341 -0
  163. package/dist/dist-cli-preview/chunks/plus-C-lo0pFM.js +14 -0
  164. package/dist/dist-cli-preview/chunks/profile-CoWo9Sxe.js +4 -0
  165. package/dist/dist-cli-preview/chunks/pt-62Kd-NN1.js +189 -0
  166. package/dist/dist-cli-preview/chunks/pt-BAq7bseT.js +628 -0
  167. package/dist/dist-cli-preview/chunks/pt-DgmwnAV-.js +341 -0
  168. package/dist/dist-cli-preview/chunks/pt-K0EDcWuR.js +720 -0
  169. package/dist/dist-cli-preview/chunks/pt-nD60RpwN.js +176 -0
  170. package/dist/dist-cli-preview/chunks/pt-voHVxH2b.js +563 -0
  171. package/dist/dist-cli-preview/chunks/ro-B4M17oRc.js +341 -0
  172. package/dist/dist-cli-preview/chunks/ro-CFfjUJ1T.js +563 -0
  173. package/dist/dist-cli-preview/chunks/ro-CtL0oK2c.js +628 -0
  174. package/dist/dist-cli-preview/chunks/ro-D6ybG7vp.js +176 -0
  175. package/dist/dist-cli-preview/chunks/ro-DTauvv2V.js +189 -0
  176. package/dist/dist-cli-preview/chunks/ro-DUxhal7c.js +720 -0
  177. package/dist/dist-cli-preview/chunks/ru-45VizwWQ.js +628 -0
  178. package/dist/dist-cli-preview/chunks/ru-BS2gZnbs.js +341 -0
  179. package/dist/dist-cli-preview/chunks/ru-C0oMeuhb.js +176 -0
  180. package/dist/dist-cli-preview/chunks/ru-COxlz18L.js +563 -0
  181. package/dist/dist-cli-preview/chunks/ru-CjEXCUxb.js +720 -0
  182. package/dist/dist-cli-preview/chunks/ru-g5Cz5HSk.js +189 -0
  183. package/dist/dist-cli-preview/chunks/schemas-9_ZwC5nC.js +3977 -0
  184. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-B254xI_J.js +14954 -0
  185. package/dist/dist-cli-preview/chunks/sheet-haptics-context-D2WUiXJm.js +116 -0
  186. package/dist/dist-cli-preview/chunks/sidebar-CMSWZCPS.js +848 -0
  187. package/dist/dist-cli-preview/chunks/sk-BGDxj2sS.js +563 -0
  188. package/dist/dist-cli-preview/chunks/sk-BdDjjHfn.js +341 -0
  189. package/dist/dist-cli-preview/chunks/sk-Bpdt_mn0.js +176 -0
  190. package/dist/dist-cli-preview/chunks/sk-DX2wOf1g.js +628 -0
  191. package/dist/dist-cli-preview/chunks/sk-QbdQWjZy.js +714 -0
  192. package/dist/dist-cli-preview/chunks/sk-YuAeAaeZ.js +189 -0
  193. package/dist/dist-cli-preview/chunks/store-api-context-BIdILNWL.js +16 -0
  194. package/dist/dist-cli-preview/chunks/subscriptions-BHALQrcU.js +4 -0
  195. package/dist/dist-cli-preview/chunks/sv-BlNLvbmj.js +628 -0
  196. package/dist/dist-cli-preview/chunks/sv-CEmTDhJy.js +176 -0
  197. package/dist/dist-cli-preview/chunks/sv-CW7FL5HA.js +341 -0
  198. package/dist/dist-cli-preview/chunks/sv-CiCeNX1x.js +720 -0
  199. package/dist/dist-cli-preview/chunks/sv-DefBhX0c.js +563 -0
  200. package/dist/dist-cli-preview/chunks/sv-iaAh80e4.js +189 -0
  201. package/dist/dist-cli-preview/chunks/th-BNEA6ESz.js +720 -0
  202. package/dist/dist-cli-preview/chunks/th-BYBMKmSh.js +341 -0
  203. package/dist/dist-cli-preview/chunks/th-DMPCj1Fg.js +189 -0
  204. package/dist/dist-cli-preview/chunks/th-DV3lk4-6.js +563 -0
  205. package/dist/dist-cli-preview/chunks/th-F8oLBw5n.js +176 -0
  206. package/dist/dist-cli-preview/chunks/th-fPXxGW_m.js +628 -0
  207. package/dist/dist-cli-preview/chunks/tl-BMLmbhme.js +628 -0
  208. package/dist/dist-cli-preview/chunks/tl-BXIS85ly.js +176 -0
  209. package/dist/dist-cli-preview/chunks/tl-CDigaLsK.js +341 -0
  210. package/dist/dist-cli-preview/chunks/tl-DVdSJCnc.js +563 -0
  211. package/dist/dist-cli-preview/chunks/tl-fdtlfqan.js +720 -0
  212. package/dist/dist-cli-preview/chunks/tl-w5CgYWXn.js +189 -0
  213. package/dist/dist-cli-preview/chunks/tr-BA1MDk8A.js +563 -0
  214. package/dist/dist-cli-preview/chunks/tr-CHri_kqV.js +189 -0
  215. package/dist/dist-cli-preview/chunks/tr-DD75kuPl.js +720 -0
  216. package/dist/dist-cli-preview/chunks/tr-Mq5Hfqt2.js +628 -0
  217. package/dist/dist-cli-preview/chunks/tr-PxiurNCr.js +341 -0
  218. package/dist/dist-cli-preview/chunks/tr-YXIIDIEV.js +176 -0
  219. package/dist/dist-cli-preview/chunks/trash-2-Bq4IqH0j.js +137 -0
  220. package/dist/dist-cli-preview/chunks/uk-B4aYnJ8t.js +341 -0
  221. package/dist/dist-cli-preview/chunks/uk-ByJtQJHi.js +189 -0
  222. package/dist/dist-cli-preview/chunks/uk-CCVTTskN.js +720 -0
  223. package/dist/dist-cli-preview/chunks/uk-CS0tJc6H.js +628 -0
  224. package/dist/dist-cli-preview/chunks/uk-CYYjeT-V.js +176 -0
  225. package/dist/dist-cli-preview/chunks/uk-DGb0m_JV.js +563 -0
  226. package/dist/dist-cli-preview/chunks/use-optional-store-Csor1Z3z.js +22 -0
  227. package/dist/dist-cli-preview/chunks/useInfiniteQuery-BpFtQ7DH.js +67 -0
  228. package/dist/dist-cli-preview/chunks/user-BGrQJ1GJ.js +31 -0
  229. package/dist/dist-cli-preview/chunks/users-DBL0isYy.js +27 -0
  230. package/dist/dist-cli-preview/chunks/vi-BoKSdzH3.js +341 -0
  231. package/dist/dist-cli-preview/chunks/vi-CHKjehVL.js +628 -0
  232. package/dist/dist-cli-preview/chunks/vi-DFicISRE.js +189 -0
  233. package/dist/dist-cli-preview/chunks/vi-DT4XS4HU.js +176 -0
  234. package/dist/dist-cli-preview/chunks/vi-RFwPNQ96.js +720 -0
  235. package/dist/dist-cli-preview/chunks/vi-SG6trKny.js +563 -0
  236. package/dist/dist-cli-preview/chunks/zh_CN-BJVGrpVl.js +714 -0
  237. package/dist/dist-cli-preview/chunks/zh_CN-BeGANQIJ.js +176 -0
  238. package/dist/dist-cli-preview/chunks/zh_CN-BwpNGMQN.js +189 -0
  239. package/dist/dist-cli-preview/chunks/zh_CN-CFu3GI2I.js +563 -0
  240. package/dist/dist-cli-preview/chunks/zh_CN-DrCrXsZC.js +341 -0
  241. package/dist/dist-cli-preview/chunks/zh_CN-x6mJyUQH.js +628 -0
  242. package/dist/dist-cli-preview/chunks/zh_TW-CorN6cwY.js +720 -0
  243. package/dist/dist-cli-preview/chunks/zh_TW-D9gGVyEb.js +176 -0
  244. package/dist/dist-cli-preview/chunks/zh_TW-DdD6Hf_A.js +628 -0
  245. package/dist/dist-cli-preview/chunks/zh_TW-JmyC1W5K.js +341 -0
  246. package/dist/dist-cli-preview/chunks/zh_TW-Oq4Chn8F.js +189 -0
  247. package/dist/dist-cli-preview/chunks/zh_TW-kUnD3TL4.js +563 -0
  248. package/dist/index.mjs +1220 -513
  249. package/dist/index.mjs.map +1 -1
  250. package/dist/skills/themes-review/SKILL.md +2 -2
  251. package/dist/skills/themes-review/references/navigation.md +3 -1
  252. package/package.json +60 -10
@@ -0,0 +1,2895 @@
1
+ import { c as $t, l as u, j as p, H as K, Z as Mo, G as Ae, a4 as J, a7 as Po, J as Se, K as At, aN as Gt, ar as de, a5 as A, a8 as Bt, a3 as it, a2 as me, as as Kt, aY as Ht, aO as Vt, aP as Wt, aQ as Ut, aR as zt, aS as Yt, at as Xt, a_ as Ao, av as qt, M as ge, N as So } from "./account-screen-runtime-DxhJm6Qd.js";
2
+ import { M as _o, C as Eo } from "./schemas-9_ZwC5nC.js";
3
+ /**
4
+ * @license lucide-react v0.575.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+ const Oo = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Hi = $t("chevron-down", Oo);
10
+ /**
11
+ * @license lucide-react v0.575.0 - ISC
12
+ *
13
+ * This source code is licensed under the ISC license.
14
+ * See the LICENSE file in the root directory of this source tree.
15
+ */
16
+ const Do = [
17
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
18
+ ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
19
+ ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
20
+ ], Vi = $t("ellipsis-vertical", Do);
21
+ var Io = Object.freeze({
22
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
23
+ position: "absolute",
24
+ border: 0,
25
+ width: 1,
26
+ height: 1,
27
+ padding: 0,
28
+ margin: -1,
29
+ overflow: "hidden",
30
+ clip: "rect(0, 0, 0, 0)",
31
+ whiteSpace: "nowrap",
32
+ wordWrap: "normal"
33
+ }), To = "VisuallyHidden", Zt = u.forwardRef(
34
+ (e, t) => /* @__PURE__ */ p.jsx(
35
+ K.span,
36
+ {
37
+ ...e,
38
+ ref: t,
39
+ style: { ...Io, ...e.style }
40
+ }
41
+ )
42
+ );
43
+ Zt.displayName = To;
44
+ var Wi = Zt;
45
+ const No = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Le = Math.round, Fe = Math.floor, q = (e) => ({
46
+ x: e,
47
+ y: e
48
+ }), jo = {
49
+ left: "right",
50
+ right: "left",
51
+ bottom: "top",
52
+ top: "bottom"
53
+ }, Fo = {
54
+ start: "end",
55
+ end: "start"
56
+ };
57
+ function tt(e, t, n) {
58
+ return H(e, ne(t, n));
59
+ }
60
+ function ee(e, t) {
61
+ return typeof e == "function" ? e(t) : e;
62
+ }
63
+ function te(e) {
64
+ return e.split("-")[0];
65
+ }
66
+ function he(e) {
67
+ return e.split("-")[1];
68
+ }
69
+ function at(e) {
70
+ return e === "x" ? "y" : "x";
71
+ }
72
+ function ct(e) {
73
+ return e === "y" ? "height" : "width";
74
+ }
75
+ const ko = /* @__PURE__ */ new Set(["top", "bottom"]);
76
+ function X(e) {
77
+ return ko.has(te(e)) ? "y" : "x";
78
+ }
79
+ function lt(e) {
80
+ return at(X(e));
81
+ }
82
+ function Lo(e, t, n) {
83
+ n === void 0 && (n = !1);
84
+ const o = he(e), r = lt(e), s = ct(r);
85
+ let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
86
+ return t.reference[s] > t.floating[s] && (i = $e(i)), [i, $e(i)];
87
+ }
88
+ function $o(e) {
89
+ const t = $e(e);
90
+ return [nt(e), t, nt(t)];
91
+ }
92
+ function nt(e) {
93
+ return e.replace(/start|end/g, (t) => Fo[t]);
94
+ }
95
+ const St = ["left", "right"], _t = ["right", "left"], Go = ["top", "bottom"], Bo = ["bottom", "top"];
96
+ function Ko(e, t, n) {
97
+ switch (e) {
98
+ case "top":
99
+ case "bottom":
100
+ return n ? t ? _t : St : t ? St : _t;
101
+ case "left":
102
+ case "right":
103
+ return t ? Go : Bo;
104
+ default:
105
+ return [];
106
+ }
107
+ }
108
+ function Ho(e, t, n, o) {
109
+ const r = he(e);
110
+ let s = Ko(te(e), n === "start", o);
111
+ return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(nt)))), s;
112
+ }
113
+ function $e(e) {
114
+ return e.replace(/left|right|bottom|top/g, (t) => jo[t]);
115
+ }
116
+ function Vo(e) {
117
+ return {
118
+ top: 0,
119
+ right: 0,
120
+ bottom: 0,
121
+ left: 0,
122
+ ...e
123
+ };
124
+ }
125
+ function Jt(e) {
126
+ return typeof e != "number" ? Vo(e) : {
127
+ top: e,
128
+ right: e,
129
+ bottom: e,
130
+ left: e
131
+ };
132
+ }
133
+ function Ge(e) {
134
+ const {
135
+ x: t,
136
+ y: n,
137
+ width: o,
138
+ height: r
139
+ } = e;
140
+ return {
141
+ width: o,
142
+ height: r,
143
+ top: n,
144
+ left: t,
145
+ right: t + o,
146
+ bottom: n + r,
147
+ x: t,
148
+ y: n
149
+ };
150
+ }
151
+ function Et(e, t, n) {
152
+ let {
153
+ reference: o,
154
+ floating: r
155
+ } = e;
156
+ const s = X(t), i = lt(t), a = ct(i), f = te(t), d = s === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
157
+ let g;
158
+ switch (f) {
159
+ case "top":
160
+ g = {
161
+ x: l,
162
+ y: o.y - r.height
163
+ };
164
+ break;
165
+ case "bottom":
166
+ g = {
167
+ x: l,
168
+ y: o.y + o.height
169
+ };
170
+ break;
171
+ case "right":
172
+ g = {
173
+ x: o.x + o.width,
174
+ y: c
175
+ };
176
+ break;
177
+ case "left":
178
+ g = {
179
+ x: o.x - r.width,
180
+ y: c
181
+ };
182
+ break;
183
+ default:
184
+ g = {
185
+ x: o.x,
186
+ y: o.y
187
+ };
188
+ }
189
+ switch (he(t)) {
190
+ case "start":
191
+ g[i] -= m * (n && d ? -1 : 1);
192
+ break;
193
+ case "end":
194
+ g[i] += m * (n && d ? -1 : 1);
195
+ break;
196
+ }
197
+ return g;
198
+ }
199
+ const Wo = async (e, t, n) => {
200
+ const {
201
+ placement: o = "bottom",
202
+ strategy: r = "absolute",
203
+ middleware: s = [],
204
+ platform: i
205
+ } = n, a = s.filter(Boolean), f = await (i.isRTL == null ? void 0 : i.isRTL(t));
206
+ let d = await i.getElementRects({
207
+ reference: e,
208
+ floating: t,
209
+ strategy: r
210
+ }), {
211
+ x: l,
212
+ y: c
213
+ } = Et(d, o, f), m = o, g = {}, h = 0;
214
+ for (let w = 0; w < a.length; w++) {
215
+ const {
216
+ name: v,
217
+ fn: x
218
+ } = a[w], {
219
+ x: R,
220
+ y: C,
221
+ data: b,
222
+ reset: M
223
+ } = await x({
224
+ x: l,
225
+ y: c,
226
+ initialPlacement: o,
227
+ placement: m,
228
+ strategy: r,
229
+ middlewareData: g,
230
+ rects: d,
231
+ platform: i,
232
+ elements: {
233
+ reference: e,
234
+ floating: t
235
+ }
236
+ });
237
+ l = R ?? l, c = C ?? c, g = {
238
+ ...g,
239
+ [v]: {
240
+ ...g[v],
241
+ ...b
242
+ }
243
+ }, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (d = M.rects === !0 ? await i.getElementRects({
244
+ reference: e,
245
+ floating: t,
246
+ strategy: r
247
+ }) : M.rects), {
248
+ x: l,
249
+ y: c
250
+ } = Et(d, m, f)), w = -1);
251
+ }
252
+ return {
253
+ x: l,
254
+ y: c,
255
+ placement: m,
256
+ strategy: r,
257
+ middlewareData: g
258
+ };
259
+ };
260
+ async function be(e, t) {
261
+ var n;
262
+ t === void 0 && (t = {});
263
+ const {
264
+ x: o,
265
+ y: r,
266
+ platform: s,
267
+ rects: i,
268
+ elements: a,
269
+ strategy: f
270
+ } = e, {
271
+ boundary: d = "clippingAncestors",
272
+ rootBoundary: l = "viewport",
273
+ elementContext: c = "floating",
274
+ altBoundary: m = !1,
275
+ padding: g = 0
276
+ } = ee(t, e), h = Jt(g), v = a[m ? c === "floating" ? "reference" : "floating" : c], x = Ge(await s.getClippingRect({
277
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
278
+ boundary: d,
279
+ rootBoundary: l,
280
+ strategy: f
281
+ })), R = c === "floating" ? {
282
+ x: o,
283
+ y: r,
284
+ width: i.floating.width,
285
+ height: i.floating.height
286
+ } : i.reference, C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), b = await (s.isElement == null ? void 0 : s.isElement(C)) ? await (s.getScale == null ? void 0 : s.getScale(C)) || {
287
+ x: 1,
288
+ y: 1
289
+ } : {
290
+ x: 1,
291
+ y: 1
292
+ }, M = Ge(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
293
+ elements: a,
294
+ rect: R,
295
+ offsetParent: C,
296
+ strategy: f
297
+ }) : R);
298
+ return {
299
+ top: (x.top - M.top + h.top) / b.y,
300
+ bottom: (M.bottom - x.bottom + h.bottom) / b.y,
301
+ left: (x.left - M.left + h.left) / b.x,
302
+ right: (M.right - x.right + h.right) / b.x
303
+ };
304
+ }
305
+ const Uo = (e) => ({
306
+ name: "arrow",
307
+ options: e,
308
+ async fn(t) {
309
+ const {
310
+ x: n,
311
+ y: o,
312
+ placement: r,
313
+ rects: s,
314
+ platform: i,
315
+ elements: a,
316
+ middlewareData: f
317
+ } = t, {
318
+ element: d,
319
+ padding: l = 0
320
+ } = ee(e, t) || {};
321
+ if (d == null)
322
+ return {};
323
+ const c = Jt(l), m = {
324
+ x: n,
325
+ y: o
326
+ }, g = lt(r), h = ct(g), w = await i.getDimensions(d), v = g === "y", x = v ? "top" : "left", R = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", b = s.reference[h] + s.reference[g] - m[g] - s.floating[h], M = m[g] - s.reference[g], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
327
+ let S = E ? E[C] : 0;
328
+ (!S || !await (i.isElement == null ? void 0 : i.isElement(E))) && (S = a.floating[C] || s.floating[h]);
329
+ const _ = b / 2 - M / 2, N = S / 2 - w[h] / 2 - 1, D = ne(c[x], N), j = ne(c[R], N), F = D, T = S - w[h] - j, I = S / 2 - w[h] / 2 + _, $ = tt(F, I, T), O = !f.arrow && he(r) != null && I !== $ && s.reference[h] / 2 - (I < F ? D : j) - w[h] / 2 < 0, k = O ? I < F ? I - F : I - T : 0;
330
+ return {
331
+ [g]: m[g] + k,
332
+ data: {
333
+ [g]: $,
334
+ centerOffset: I - $ - k,
335
+ ...O && {
336
+ alignmentOffset: k
337
+ }
338
+ },
339
+ reset: O
340
+ };
341
+ }
342
+ }), zo = function(e) {
343
+ return e === void 0 && (e = {}), {
344
+ name: "flip",
345
+ options: e,
346
+ async fn(t) {
347
+ var n, o;
348
+ const {
349
+ placement: r,
350
+ middlewareData: s,
351
+ rects: i,
352
+ initialPlacement: a,
353
+ platform: f,
354
+ elements: d
355
+ } = t, {
356
+ mainAxis: l = !0,
357
+ crossAxis: c = !0,
358
+ fallbackPlacements: m,
359
+ fallbackStrategy: g = "bestFit",
360
+ fallbackAxisSideDirection: h = "none",
361
+ flipAlignment: w = !0,
362
+ ...v
363
+ } = ee(e, t);
364
+ if ((n = s.arrow) != null && n.alignmentOffset)
365
+ return {};
366
+ const x = te(r), R = X(a), C = te(a) === a, b = await (f.isRTL == null ? void 0 : f.isRTL(d.floating)), M = m || (C || !w ? [$e(a)] : $o(a)), E = h !== "none";
367
+ !m && E && M.push(...Ho(a, w, h, b));
368
+ const S = [a, ...M], _ = await be(t, v), N = [];
369
+ let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
370
+ if (l && N.push(_[x]), c) {
371
+ const I = Lo(r, i, b);
372
+ N.push(_[I[0]], _[I[1]]);
373
+ }
374
+ if (D = [...D, {
375
+ placement: r,
376
+ overflows: N
377
+ }], !N.every((I) => I <= 0)) {
378
+ var j, F;
379
+ const I = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, $ = S[I];
380
+ if ($ && (!(c === "alignment" ? R !== X($) : !1) || // We leave the current main axis only if every placement on that axis
381
+ // overflows the main axis.
382
+ D.every((P) => X(P.placement) === R ? P.overflows[0] > 0 : !0)))
383
+ return {
384
+ data: {
385
+ index: I,
386
+ overflows: D
387
+ },
388
+ reset: {
389
+ placement: $
390
+ }
391
+ };
392
+ let O = (F = D.filter((k) => k.overflows[0] <= 0).sort((k, P) => k.overflows[1] - P.overflows[1])[0]) == null ? void 0 : F.placement;
393
+ if (!O)
394
+ switch (g) {
395
+ case "bestFit": {
396
+ var T;
397
+ const k = (T = D.filter((P) => {
398
+ if (E) {
399
+ const y = X(P.placement);
400
+ return y === R || // Create a bias to the `y` side axis due to horizontal
401
+ // reading directions favoring greater width.
402
+ y === "y";
403
+ }
404
+ return !0;
405
+ }).map((P) => [P.placement, P.overflows.filter((y) => y > 0).reduce((y, G) => y + G, 0)]).sort((P, y) => P[1] - y[1])[0]) == null ? void 0 : T[0];
406
+ k && (O = k);
407
+ break;
408
+ }
409
+ case "initialPlacement":
410
+ O = a;
411
+ break;
412
+ }
413
+ if (r !== O)
414
+ return {
415
+ reset: {
416
+ placement: O
417
+ }
418
+ };
419
+ }
420
+ return {};
421
+ }
422
+ };
423
+ };
424
+ function Ot(e, t) {
425
+ return {
426
+ top: e.top - t.height,
427
+ right: e.right - t.width,
428
+ bottom: e.bottom - t.height,
429
+ left: e.left - t.width
430
+ };
431
+ }
432
+ function Dt(e) {
433
+ return No.some((t) => e[t] >= 0);
434
+ }
435
+ const Yo = function(e) {
436
+ return e === void 0 && (e = {}), {
437
+ name: "hide",
438
+ options: e,
439
+ async fn(t) {
440
+ const {
441
+ rects: n
442
+ } = t, {
443
+ strategy: o = "referenceHidden",
444
+ ...r
445
+ } = ee(e, t);
446
+ switch (o) {
447
+ case "referenceHidden": {
448
+ const s = await be(t, {
449
+ ...r,
450
+ elementContext: "reference"
451
+ }), i = Ot(s, n.reference);
452
+ return {
453
+ data: {
454
+ referenceHiddenOffsets: i,
455
+ referenceHidden: Dt(i)
456
+ }
457
+ };
458
+ }
459
+ case "escaped": {
460
+ const s = await be(t, {
461
+ ...r,
462
+ altBoundary: !0
463
+ }), i = Ot(s, n.floating);
464
+ return {
465
+ data: {
466
+ escapedOffsets: i,
467
+ escaped: Dt(i)
468
+ }
469
+ };
470
+ }
471
+ default:
472
+ return {};
473
+ }
474
+ }
475
+ };
476
+ }, Qt = /* @__PURE__ */ new Set(["left", "top"]);
477
+ async function Xo(e, t) {
478
+ const {
479
+ placement: n,
480
+ platform: o,
481
+ elements: r
482
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = te(n), a = he(n), f = X(n) === "y", d = Qt.has(i) ? -1 : 1, l = s && f ? -1 : 1, c = ee(t, e);
483
+ let {
484
+ mainAxis: m,
485
+ crossAxis: g,
486
+ alignmentAxis: h
487
+ } = typeof c == "number" ? {
488
+ mainAxis: c,
489
+ crossAxis: 0,
490
+ alignmentAxis: null
491
+ } : {
492
+ mainAxis: c.mainAxis || 0,
493
+ crossAxis: c.crossAxis || 0,
494
+ alignmentAxis: c.alignmentAxis
495
+ };
496
+ return a && typeof h == "number" && (g = a === "end" ? h * -1 : h), f ? {
497
+ x: g * l,
498
+ y: m * d
499
+ } : {
500
+ x: m * d,
501
+ y: g * l
502
+ };
503
+ }
504
+ const qo = function(e) {
505
+ return e === void 0 && (e = 0), {
506
+ name: "offset",
507
+ options: e,
508
+ async fn(t) {
509
+ var n, o;
510
+ const {
511
+ x: r,
512
+ y: s,
513
+ placement: i,
514
+ middlewareData: a
515
+ } = t, f = await Xo(t, e);
516
+ return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
517
+ x: r + f.x,
518
+ y: s + f.y,
519
+ data: {
520
+ ...f,
521
+ placement: i
522
+ }
523
+ };
524
+ }
525
+ };
526
+ }, Zo = function(e) {
527
+ return e === void 0 && (e = {}), {
528
+ name: "shift",
529
+ options: e,
530
+ async fn(t) {
531
+ const {
532
+ x: n,
533
+ y: o,
534
+ placement: r
535
+ } = t, {
536
+ mainAxis: s = !0,
537
+ crossAxis: i = !1,
538
+ limiter: a = {
539
+ fn: (v) => {
540
+ let {
541
+ x,
542
+ y: R
543
+ } = v;
544
+ return {
545
+ x,
546
+ y: R
547
+ };
548
+ }
549
+ },
550
+ ...f
551
+ } = ee(e, t), d = {
552
+ x: n,
553
+ y: o
554
+ }, l = await be(t, f), c = X(te(r)), m = at(c);
555
+ let g = d[m], h = d[c];
556
+ if (s) {
557
+ const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", R = g + l[v], C = g - l[x];
558
+ g = tt(R, g, C);
559
+ }
560
+ if (i) {
561
+ const v = c === "y" ? "top" : "left", x = c === "y" ? "bottom" : "right", R = h + l[v], C = h - l[x];
562
+ h = tt(R, h, C);
563
+ }
564
+ const w = a.fn({
565
+ ...t,
566
+ [m]: g,
567
+ [c]: h
568
+ });
569
+ return {
570
+ ...w,
571
+ data: {
572
+ x: w.x - n,
573
+ y: w.y - o,
574
+ enabled: {
575
+ [m]: s,
576
+ [c]: i
577
+ }
578
+ }
579
+ };
580
+ }
581
+ };
582
+ }, Jo = function(e) {
583
+ return e === void 0 && (e = {}), {
584
+ options: e,
585
+ fn(t) {
586
+ const {
587
+ x: n,
588
+ y: o,
589
+ placement: r,
590
+ rects: s,
591
+ middlewareData: i
592
+ } = t, {
593
+ offset: a = 0,
594
+ mainAxis: f = !0,
595
+ crossAxis: d = !0
596
+ } = ee(e, t), l = {
597
+ x: n,
598
+ y: o
599
+ }, c = X(r), m = at(c);
600
+ let g = l[m], h = l[c];
601
+ const w = ee(a, t), v = typeof w == "number" ? {
602
+ mainAxis: w,
603
+ crossAxis: 0
604
+ } : {
605
+ mainAxis: 0,
606
+ crossAxis: 0,
607
+ ...w
608
+ };
609
+ if (f) {
610
+ const C = m === "y" ? "height" : "width", b = s.reference[m] - s.floating[C] + v.mainAxis, M = s.reference[m] + s.reference[C] - v.mainAxis;
611
+ g < b ? g = b : g > M && (g = M);
612
+ }
613
+ if (d) {
614
+ var x, R;
615
+ const C = m === "y" ? "width" : "height", b = Qt.has(te(r)), M = s.reference[c] - s.floating[C] + (b && ((x = i.offset) == null ? void 0 : x[c]) || 0) + (b ? 0 : v.crossAxis), E = s.reference[c] + s.reference[C] + (b ? 0 : ((R = i.offset) == null ? void 0 : R[c]) || 0) - (b ? v.crossAxis : 0);
616
+ h < M ? h = M : h > E && (h = E);
617
+ }
618
+ return {
619
+ [m]: g,
620
+ [c]: h
621
+ };
622
+ }
623
+ };
624
+ }, Qo = function(e) {
625
+ return e === void 0 && (e = {}), {
626
+ name: "size",
627
+ options: e,
628
+ async fn(t) {
629
+ var n, o;
630
+ const {
631
+ placement: r,
632
+ rects: s,
633
+ platform: i,
634
+ elements: a
635
+ } = t, {
636
+ apply: f = () => {
637
+ },
638
+ ...d
639
+ } = ee(e, t), l = await be(t, d), c = te(r), m = he(r), g = X(r) === "y", {
640
+ width: h,
641
+ height: w
642
+ } = s.floating;
643
+ let v, x;
644
+ c === "top" || c === "bottom" ? (v = c, x = m === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = c, v = m === "end" ? "top" : "bottom");
645
+ const R = w - l.top - l.bottom, C = h - l.left - l.right, b = ne(w - l[v], R), M = ne(h - l[x], C), E = !t.middlewareData.shift;
646
+ let S = b, _ = M;
647
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (_ = C), (o = t.middlewareData.shift) != null && o.enabled.y && (S = R), E && !m) {
648
+ const D = H(l.left, 0), j = H(l.right, 0), F = H(l.top, 0), T = H(l.bottom, 0);
649
+ g ? _ = h - 2 * (D !== 0 || j !== 0 ? D + j : H(l.left, l.right)) : S = w - 2 * (F !== 0 || T !== 0 ? F + T : H(l.top, l.bottom));
650
+ }
651
+ await f({
652
+ ...t,
653
+ availableWidth: _,
654
+ availableHeight: S
655
+ });
656
+ const N = await i.getDimensions(a.floating);
657
+ return h !== N.width || w !== N.height ? {
658
+ reset: {
659
+ rects: !0
660
+ }
661
+ } : {};
662
+ }
663
+ };
664
+ };
665
+ function Ve() {
666
+ return typeof window < "u";
667
+ }
668
+ function ve(e) {
669
+ return en(e) ? (e.nodeName || "").toLowerCase() : "#document";
670
+ }
671
+ function V(e) {
672
+ var t;
673
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
674
+ }
675
+ function Q(e) {
676
+ var t;
677
+ return (t = (en(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
678
+ }
679
+ function en(e) {
680
+ return Ve() ? e instanceof Node || e instanceof V(e).Node : !1;
681
+ }
682
+ function U(e) {
683
+ return Ve() ? e instanceof Element || e instanceof V(e).Element : !1;
684
+ }
685
+ function Z(e) {
686
+ return Ve() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
687
+ }
688
+ function It(e) {
689
+ return !Ve() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
690
+ }
691
+ const er = /* @__PURE__ */ new Set(["inline", "contents"]);
692
+ function _e(e) {
693
+ const {
694
+ overflow: t,
695
+ overflowX: n,
696
+ overflowY: o,
697
+ display: r
698
+ } = z(e);
699
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !er.has(r);
700
+ }
701
+ const tr = /* @__PURE__ */ new Set(["table", "td", "th"]);
702
+ function nr(e) {
703
+ return tr.has(ve(e));
704
+ }
705
+ const or = [":popover-open", ":modal"];
706
+ function We(e) {
707
+ return or.some((t) => {
708
+ try {
709
+ return e.matches(t);
710
+ } catch {
711
+ return !1;
712
+ }
713
+ });
714
+ }
715
+ const rr = ["transform", "translate", "scale", "rotate", "perspective"], sr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ir = ["paint", "layout", "strict", "content"];
716
+ function ut(e) {
717
+ const t = dt(), n = U(e) ? z(e) : e;
718
+ return rr.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || sr.some((o) => (n.willChange || "").includes(o)) || ir.some((o) => (n.contain || "").includes(o));
719
+ }
720
+ function ar(e) {
721
+ let t = oe(e);
722
+ for (; Z(t) && !fe(t); ) {
723
+ if (ut(t))
724
+ return t;
725
+ if (We(t))
726
+ return null;
727
+ t = oe(t);
728
+ }
729
+ return null;
730
+ }
731
+ function dt() {
732
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
733
+ }
734
+ const cr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
735
+ function fe(e) {
736
+ return cr.has(ve(e));
737
+ }
738
+ function z(e) {
739
+ return V(e).getComputedStyle(e);
740
+ }
741
+ function Ue(e) {
742
+ return U(e) ? {
743
+ scrollLeft: e.scrollLeft,
744
+ scrollTop: e.scrollTop
745
+ } : {
746
+ scrollLeft: e.scrollX,
747
+ scrollTop: e.scrollY
748
+ };
749
+ }
750
+ function oe(e) {
751
+ if (ve(e) === "html")
752
+ return e;
753
+ const t = (
754
+ // Step into the shadow DOM of the parent of a slotted node.
755
+ e.assignedSlot || // DOM Element detected.
756
+ e.parentNode || // ShadowRoot detected.
757
+ It(e) && e.host || // Fallback.
758
+ Q(e)
759
+ );
760
+ return It(t) ? t.host : t;
761
+ }
762
+ function tn(e) {
763
+ const t = oe(e);
764
+ return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : tn(t);
765
+ }
766
+ function Re(e, t, n) {
767
+ var o;
768
+ t === void 0 && (t = []), n === void 0 && (n = !0);
769
+ const r = tn(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = V(r);
770
+ if (s) {
771
+ const a = ot(i);
772
+ return t.concat(i, i.visualViewport || [], _e(r) ? r : [], a && n ? Re(a) : []);
773
+ }
774
+ return t.concat(r, Re(r, [], n));
775
+ }
776
+ function ot(e) {
777
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
778
+ }
779
+ function nn(e) {
780
+ const t = z(e);
781
+ let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
782
+ const r = Z(e), s = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, a = Le(n) !== s || Le(o) !== i;
783
+ return a && (n = s, o = i), {
784
+ width: n,
785
+ height: o,
786
+ $: a
787
+ };
788
+ }
789
+ function ft(e) {
790
+ return U(e) ? e : e.contextElement;
791
+ }
792
+ function ue(e) {
793
+ const t = ft(e);
794
+ if (!Z(t))
795
+ return q(1);
796
+ const n = t.getBoundingClientRect(), {
797
+ width: o,
798
+ height: r,
799
+ $: s
800
+ } = nn(t);
801
+ let i = (s ? Le(n.width) : n.width) / o, a = (s ? Le(n.height) : n.height) / r;
802
+ return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
803
+ x: i,
804
+ y: a
805
+ };
806
+ }
807
+ const lr = /* @__PURE__ */ q(0);
808
+ function on(e) {
809
+ const t = V(e);
810
+ return !dt() || !t.visualViewport ? lr : {
811
+ x: t.visualViewport.offsetLeft,
812
+ y: t.visualViewport.offsetTop
813
+ };
814
+ }
815
+ function ur(e, t, n) {
816
+ return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
817
+ }
818
+ function ce(e, t, n, o) {
819
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
820
+ const r = e.getBoundingClientRect(), s = ft(e);
821
+ let i = q(1);
822
+ t && (o ? U(o) && (i = ue(o)) : i = ue(e));
823
+ const a = ur(s, n, o) ? on(s) : q(0);
824
+ let f = (r.left + a.x) / i.x, d = (r.top + a.y) / i.y, l = r.width / i.x, c = r.height / i.y;
825
+ if (s) {
826
+ const m = V(s), g = o && U(o) ? V(o) : o;
827
+ let h = m, w = ot(h);
828
+ for (; w && o && g !== h; ) {
829
+ const v = ue(w), x = w.getBoundingClientRect(), R = z(w), C = x.left + (w.clientLeft + parseFloat(R.paddingLeft)) * v.x, b = x.top + (w.clientTop + parseFloat(R.paddingTop)) * v.y;
830
+ f *= v.x, d *= v.y, l *= v.x, c *= v.y, f += C, d += b, h = V(w), w = ot(h);
831
+ }
832
+ }
833
+ return Ge({
834
+ width: l,
835
+ height: c,
836
+ x: f,
837
+ y: d
838
+ });
839
+ }
840
+ function ze(e, t) {
841
+ const n = Ue(e).scrollLeft;
842
+ return t ? t.left + n : ce(Q(e)).left + n;
843
+ }
844
+ function rn(e, t) {
845
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ze(e, n), r = n.top + t.scrollTop;
846
+ return {
847
+ x: o,
848
+ y: r
849
+ };
850
+ }
851
+ function dr(e) {
852
+ let {
853
+ elements: t,
854
+ rect: n,
855
+ offsetParent: o,
856
+ strategy: r
857
+ } = e;
858
+ const s = r === "fixed", i = Q(o), a = t ? We(t.floating) : !1;
859
+ if (o === i || a && s)
860
+ return n;
861
+ let f = {
862
+ scrollLeft: 0,
863
+ scrollTop: 0
864
+ }, d = q(1);
865
+ const l = q(0), c = Z(o);
866
+ if ((c || !c && !s) && ((ve(o) !== "body" || _e(i)) && (f = Ue(o)), Z(o))) {
867
+ const g = ce(o);
868
+ d = ue(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
869
+ }
870
+ const m = i && !c && !s ? rn(i, f) : q(0);
871
+ return {
872
+ width: n.width * d.x,
873
+ height: n.height * d.y,
874
+ x: n.x * d.x - f.scrollLeft * d.x + l.x + m.x,
875
+ y: n.y * d.y - f.scrollTop * d.y + l.y + m.y
876
+ };
877
+ }
878
+ function fr(e) {
879
+ return Array.from(e.getClientRects());
880
+ }
881
+ function pr(e) {
882
+ const t = Q(e), n = Ue(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
883
+ let i = -n.scrollLeft + ze(e);
884
+ const a = -n.scrollTop;
885
+ return z(o).direction === "rtl" && (i += H(t.clientWidth, o.clientWidth) - r), {
886
+ width: r,
887
+ height: s,
888
+ x: i,
889
+ y: a
890
+ };
891
+ }
892
+ const Tt = 25;
893
+ function mr(e, t) {
894
+ const n = V(e), o = Q(e), r = n.visualViewport;
895
+ let s = o.clientWidth, i = o.clientHeight, a = 0, f = 0;
896
+ if (r) {
897
+ s = r.width, i = r.height;
898
+ const l = dt();
899
+ (!l || l && t === "fixed") && (a = r.offsetLeft, f = r.offsetTop);
900
+ }
901
+ const d = ze(o);
902
+ if (d <= 0) {
903
+ const l = o.ownerDocument, c = l.body, m = getComputedStyle(c), g = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - c.clientWidth - g);
904
+ h <= Tt && (s -= h);
905
+ } else d <= Tt && (s += d);
906
+ return {
907
+ width: s,
908
+ height: i,
909
+ x: a,
910
+ y: f
911
+ };
912
+ }
913
+ const gr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
914
+ function hr(e, t) {
915
+ const n = ce(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Z(e) ? ue(e) : q(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, f = r * s.x, d = o * s.y;
916
+ return {
917
+ width: i,
918
+ height: a,
919
+ x: f,
920
+ y: d
921
+ };
922
+ }
923
+ function Nt(e, t, n) {
924
+ let o;
925
+ if (t === "viewport")
926
+ o = mr(e, n);
927
+ else if (t === "document")
928
+ o = pr(Q(e));
929
+ else if (U(t))
930
+ o = hr(t, n);
931
+ else {
932
+ const r = on(e);
933
+ o = {
934
+ x: t.x - r.x,
935
+ y: t.y - r.y,
936
+ width: t.width,
937
+ height: t.height
938
+ };
939
+ }
940
+ return Ge(o);
941
+ }
942
+ function sn(e, t) {
943
+ const n = oe(e);
944
+ return n === t || !U(n) || fe(n) ? !1 : z(n).position === "fixed" || sn(n, t);
945
+ }
946
+ function vr(e, t) {
947
+ const n = t.get(e);
948
+ if (n)
949
+ return n;
950
+ let o = Re(e, [], !1).filter((a) => U(a) && ve(a) !== "body"), r = null;
951
+ const s = z(e).position === "fixed";
952
+ let i = s ? oe(e) : e;
953
+ for (; U(i) && !fe(i); ) {
954
+ const a = z(i), f = ut(i);
955
+ !f && a.position === "fixed" && (r = null), (s ? !f && !r : !f && a.position === "static" && !!r && gr.has(r.position) || _e(i) && !f && sn(e, i)) ? o = o.filter((l) => l !== i) : r = a, i = oe(i);
956
+ }
957
+ return t.set(e, o), o;
958
+ }
959
+ function wr(e) {
960
+ let {
961
+ element: t,
962
+ boundary: n,
963
+ rootBoundary: o,
964
+ strategy: r
965
+ } = e;
966
+ const i = [...n === "clippingAncestors" ? We(t) ? [] : vr(t, this._c) : [].concat(n), o], a = i[0], f = i.reduce((d, l) => {
967
+ const c = Nt(t, l, r);
968
+ return d.top = H(c.top, d.top), d.right = ne(c.right, d.right), d.bottom = ne(c.bottom, d.bottom), d.left = H(c.left, d.left), d;
969
+ }, Nt(t, a, r));
970
+ return {
971
+ width: f.right - f.left,
972
+ height: f.bottom - f.top,
973
+ x: f.left,
974
+ y: f.top
975
+ };
976
+ }
977
+ function xr(e) {
978
+ const {
979
+ width: t,
980
+ height: n
981
+ } = nn(e);
982
+ return {
983
+ width: t,
984
+ height: n
985
+ };
986
+ }
987
+ function yr(e, t, n) {
988
+ const o = Z(t), r = Q(t), s = n === "fixed", i = ce(e, !0, s, t);
989
+ let a = {
990
+ scrollLeft: 0,
991
+ scrollTop: 0
992
+ };
993
+ const f = q(0);
994
+ function d() {
995
+ f.x = ze(r);
996
+ }
997
+ if (o || !o && !s)
998
+ if ((ve(t) !== "body" || _e(r)) && (a = Ue(t)), o) {
999
+ const g = ce(t, !0, s, t);
1000
+ f.x = g.x + t.clientLeft, f.y = g.y + t.clientTop;
1001
+ } else r && d();
1002
+ s && !o && r && d();
1003
+ const l = r && !o && !s ? rn(r, a) : q(0), c = i.left + a.scrollLeft - f.x - l.x, m = i.top + a.scrollTop - f.y - l.y;
1004
+ return {
1005
+ x: c,
1006
+ y: m,
1007
+ width: i.width,
1008
+ height: i.height
1009
+ };
1010
+ }
1011
+ function Je(e) {
1012
+ return z(e).position === "static";
1013
+ }
1014
+ function jt(e, t) {
1015
+ if (!Z(e) || z(e).position === "fixed")
1016
+ return null;
1017
+ if (t)
1018
+ return t(e);
1019
+ let n = e.offsetParent;
1020
+ return Q(e) === n && (n = n.ownerDocument.body), n;
1021
+ }
1022
+ function an(e, t) {
1023
+ const n = V(e);
1024
+ if (We(e))
1025
+ return n;
1026
+ if (!Z(e)) {
1027
+ let r = oe(e);
1028
+ for (; r && !fe(r); ) {
1029
+ if (U(r) && !Je(r))
1030
+ return r;
1031
+ r = oe(r);
1032
+ }
1033
+ return n;
1034
+ }
1035
+ let o = jt(e, t);
1036
+ for (; o && nr(o) && Je(o); )
1037
+ o = jt(o, t);
1038
+ return o && fe(o) && Je(o) && !ut(o) ? n : o || ar(e) || n;
1039
+ }
1040
+ const Cr = async function(e) {
1041
+ const t = this.getOffsetParent || an, n = this.getDimensions, o = await n(e.floating);
1042
+ return {
1043
+ reference: yr(e.reference, await t(e.floating), e.strategy),
1044
+ floating: {
1045
+ x: 0,
1046
+ y: 0,
1047
+ width: o.width,
1048
+ height: o.height
1049
+ }
1050
+ };
1051
+ };
1052
+ function br(e) {
1053
+ return z(e).direction === "rtl";
1054
+ }
1055
+ const Rr = {
1056
+ convertOffsetParentRelativeRectToViewportRelativeRect: dr,
1057
+ getDocumentElement: Q,
1058
+ getClippingRect: wr,
1059
+ getOffsetParent: an,
1060
+ getElementRects: Cr,
1061
+ getClientRects: fr,
1062
+ getDimensions: xr,
1063
+ getScale: ue,
1064
+ isElement: U,
1065
+ isRTL: br
1066
+ };
1067
+ function cn(e, t) {
1068
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1069
+ }
1070
+ function Mr(e, t) {
1071
+ let n = null, o;
1072
+ const r = Q(e);
1073
+ function s() {
1074
+ var a;
1075
+ clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
1076
+ }
1077
+ function i(a, f) {
1078
+ a === void 0 && (a = !1), f === void 0 && (f = 1), s();
1079
+ const d = e.getBoundingClientRect(), {
1080
+ left: l,
1081
+ top: c,
1082
+ width: m,
1083
+ height: g
1084
+ } = d;
1085
+ if (a || t(), !m || !g)
1086
+ return;
1087
+ const h = Fe(c), w = Fe(r.clientWidth - (l + m)), v = Fe(r.clientHeight - (c + g)), x = Fe(l), C = {
1088
+ rootMargin: -h + "px " + -w + "px " + -v + "px " + -x + "px",
1089
+ threshold: H(0, ne(1, f)) || 1
1090
+ };
1091
+ let b = !0;
1092
+ function M(E) {
1093
+ const S = E[0].intersectionRatio;
1094
+ if (S !== f) {
1095
+ if (!b)
1096
+ return i();
1097
+ S ? i(!1, S) : o = setTimeout(() => {
1098
+ i(!1, 1e-7);
1099
+ }, 1e3);
1100
+ }
1101
+ S === 1 && !cn(d, e.getBoundingClientRect()) && i(), b = !1;
1102
+ }
1103
+ try {
1104
+ n = new IntersectionObserver(M, {
1105
+ ...C,
1106
+ // Handle <iframe>s
1107
+ root: r.ownerDocument
1108
+ });
1109
+ } catch {
1110
+ n = new IntersectionObserver(M, C);
1111
+ }
1112
+ n.observe(e);
1113
+ }
1114
+ return i(!0), s;
1115
+ }
1116
+ function Pr(e, t, n, o) {
1117
+ o === void 0 && (o = {});
1118
+ const {
1119
+ ancestorScroll: r = !0,
1120
+ ancestorResize: s = !0,
1121
+ elementResize: i = typeof ResizeObserver == "function",
1122
+ layoutShift: a = typeof IntersectionObserver == "function",
1123
+ animationFrame: f = !1
1124
+ } = o, d = ft(e), l = r || s ? [...d ? Re(d) : [], ...Re(t)] : [];
1125
+ l.forEach((x) => {
1126
+ r && x.addEventListener("scroll", n, {
1127
+ passive: !0
1128
+ }), s && x.addEventListener("resize", n);
1129
+ });
1130
+ const c = d && a ? Mr(d, n) : null;
1131
+ let m = -1, g = null;
1132
+ i && (g = new ResizeObserver((x) => {
1133
+ let [R] = x;
1134
+ R && R.target === d && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1135
+ var C;
1136
+ (C = g) == null || C.observe(t);
1137
+ })), n();
1138
+ }), d && !f && g.observe(d), g.observe(t));
1139
+ let h, w = f ? ce(e) : null;
1140
+ f && v();
1141
+ function v() {
1142
+ const x = ce(e);
1143
+ w && !cn(w, x) && n(), w = x, h = requestAnimationFrame(v);
1144
+ }
1145
+ return n(), () => {
1146
+ var x;
1147
+ l.forEach((R) => {
1148
+ r && R.removeEventListener("scroll", n), s && R.removeEventListener("resize", n);
1149
+ }), c?.(), (x = g) == null || x.disconnect(), g = null, f && cancelAnimationFrame(h);
1150
+ };
1151
+ }
1152
+ const Ar = qo, Sr = Zo, _r = zo, Er = Qo, Or = Yo, Ft = Uo, Dr = Jo, Ir = (e, t, n) => {
1153
+ const o = /* @__PURE__ */ new Map(), r = {
1154
+ platform: Rr,
1155
+ ...n
1156
+ }, s = {
1157
+ ...r.platform,
1158
+ _c: o
1159
+ };
1160
+ return Wo(e, t, {
1161
+ ...r,
1162
+ platform: s
1163
+ });
1164
+ };
1165
+ var Tr = typeof document < "u", Nr = function() {
1166
+ }, ke = Tr ? u.useLayoutEffect : Nr;
1167
+ function Be(e, t) {
1168
+ if (e === t)
1169
+ return !0;
1170
+ if (typeof e != typeof t)
1171
+ return !1;
1172
+ if (typeof e == "function" && e.toString() === t.toString())
1173
+ return !0;
1174
+ let n, o, r;
1175
+ if (e && t && typeof e == "object") {
1176
+ if (Array.isArray(e)) {
1177
+ if (n = e.length, n !== t.length) return !1;
1178
+ for (o = n; o-- !== 0; )
1179
+ if (!Be(e[o], t[o]))
1180
+ return !1;
1181
+ return !0;
1182
+ }
1183
+ if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
1184
+ return !1;
1185
+ for (o = n; o-- !== 0; )
1186
+ if (!{}.hasOwnProperty.call(t, r[o]))
1187
+ return !1;
1188
+ for (o = n; o-- !== 0; ) {
1189
+ const s = r[o];
1190
+ if (!(s === "_owner" && e.$$typeof) && !Be(e[s], t[s]))
1191
+ return !1;
1192
+ }
1193
+ return !0;
1194
+ }
1195
+ return e !== e && t !== t;
1196
+ }
1197
+ function ln(e) {
1198
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1199
+ }
1200
+ function kt(e, t) {
1201
+ const n = ln(e);
1202
+ return Math.round(t * n) / n;
1203
+ }
1204
+ function Qe(e) {
1205
+ const t = u.useRef(e);
1206
+ return ke(() => {
1207
+ t.current = e;
1208
+ }), t;
1209
+ }
1210
+ function jr(e) {
1211
+ e === void 0 && (e = {});
1212
+ const {
1213
+ placement: t = "bottom",
1214
+ strategy: n = "absolute",
1215
+ middleware: o = [],
1216
+ platform: r,
1217
+ elements: {
1218
+ reference: s,
1219
+ floating: i
1220
+ } = {},
1221
+ transform: a = !0,
1222
+ whileElementsMounted: f,
1223
+ open: d
1224
+ } = e, [l, c] = u.useState({
1225
+ x: 0,
1226
+ y: 0,
1227
+ strategy: n,
1228
+ placement: t,
1229
+ middlewareData: {},
1230
+ isPositioned: !1
1231
+ }), [m, g] = u.useState(o);
1232
+ Be(m, o) || g(o);
1233
+ const [h, w] = u.useState(null), [v, x] = u.useState(null), R = u.useCallback((P) => {
1234
+ P !== E.current && (E.current = P, w(P));
1235
+ }, []), C = u.useCallback((P) => {
1236
+ P !== S.current && (S.current = P, x(P));
1237
+ }, []), b = s || h, M = i || v, E = u.useRef(null), S = u.useRef(null), _ = u.useRef(l), N = f != null, D = Qe(f), j = Qe(r), F = Qe(d), T = u.useCallback(() => {
1238
+ if (!E.current || !S.current)
1239
+ return;
1240
+ const P = {
1241
+ placement: t,
1242
+ strategy: n,
1243
+ middleware: m
1244
+ };
1245
+ j.current && (P.platform = j.current), Ir(E.current, S.current, P).then((y) => {
1246
+ const G = {
1247
+ ...y,
1248
+ // The floating element's position may be recomputed while it's closed
1249
+ // but still mounted (such as when transitioning out). To ensure
1250
+ // `isPositioned` will be `false` initially on the next open, avoid
1251
+ // setting it to `true` when `open === false` (must be specified).
1252
+ isPositioned: F.current !== !1
1253
+ };
1254
+ I.current && !Be(_.current, G) && (_.current = G, Mo.flushSync(() => {
1255
+ c(G);
1256
+ }));
1257
+ });
1258
+ }, [m, t, n, j, F]);
1259
+ ke(() => {
1260
+ d === !1 && _.current.isPositioned && (_.current.isPositioned = !1, c((P) => ({
1261
+ ...P,
1262
+ isPositioned: !1
1263
+ })));
1264
+ }, [d]);
1265
+ const I = u.useRef(!1);
1266
+ ke(() => (I.current = !0, () => {
1267
+ I.current = !1;
1268
+ }), []), ke(() => {
1269
+ if (b && (E.current = b), M && (S.current = M), b && M) {
1270
+ if (D.current)
1271
+ return D.current(b, M, T);
1272
+ T();
1273
+ }
1274
+ }, [b, M, T, D, N]);
1275
+ const $ = u.useMemo(() => ({
1276
+ reference: E,
1277
+ floating: S,
1278
+ setReference: R,
1279
+ setFloating: C
1280
+ }), [R, C]), O = u.useMemo(() => ({
1281
+ reference: b,
1282
+ floating: M
1283
+ }), [b, M]), k = u.useMemo(() => {
1284
+ const P = {
1285
+ position: n,
1286
+ left: 0,
1287
+ top: 0
1288
+ };
1289
+ if (!O.floating)
1290
+ return P;
1291
+ const y = kt(O.floating, l.x), G = kt(O.floating, l.y);
1292
+ return a ? {
1293
+ ...P,
1294
+ transform: "translate(" + y + "px, " + G + "px)",
1295
+ ...ln(O.floating) >= 1.5 && {
1296
+ willChange: "transform"
1297
+ }
1298
+ } : {
1299
+ position: n,
1300
+ left: y,
1301
+ top: G
1302
+ };
1303
+ }, [n, a, O.floating, l.x, l.y]);
1304
+ return u.useMemo(() => ({
1305
+ ...l,
1306
+ update: T,
1307
+ refs: $,
1308
+ elements: O,
1309
+ floatingStyles: k
1310
+ }), [l, T, $, O, k]);
1311
+ }
1312
+ const Fr = (e) => {
1313
+ function t(n) {
1314
+ return {}.hasOwnProperty.call(n, "current");
1315
+ }
1316
+ return {
1317
+ name: "arrow",
1318
+ options: e,
1319
+ fn(n) {
1320
+ const {
1321
+ element: o,
1322
+ padding: r
1323
+ } = typeof e == "function" ? e(n) : e;
1324
+ return o && t(o) ? o.current != null ? Ft({
1325
+ element: o.current,
1326
+ padding: r
1327
+ }).fn(n) : {} : o ? Ft({
1328
+ element: o,
1329
+ padding: r
1330
+ }).fn(n) : {};
1331
+ }
1332
+ };
1333
+ }, kr = (e, t) => ({
1334
+ ...Ar(e),
1335
+ options: [e, t]
1336
+ }), Lr = (e, t) => ({
1337
+ ...Sr(e),
1338
+ options: [e, t]
1339
+ }), $r = (e, t) => ({
1340
+ ...Dr(e),
1341
+ options: [e, t]
1342
+ }), Gr = (e, t) => ({
1343
+ ..._r(e),
1344
+ options: [e, t]
1345
+ }), Br = (e, t) => ({
1346
+ ...Er(e),
1347
+ options: [e, t]
1348
+ }), Kr = (e, t) => ({
1349
+ ...Or(e),
1350
+ options: [e, t]
1351
+ }), Hr = (e, t) => ({
1352
+ ...Fr(e),
1353
+ options: [e, t]
1354
+ });
1355
+ var Vr = "Arrow", un = u.forwardRef((e, t) => {
1356
+ const { children: n, width: o = 10, height: r = 5, ...s } = e;
1357
+ return /* @__PURE__ */ p.jsx(
1358
+ K.svg,
1359
+ {
1360
+ ...s,
1361
+ ref: t,
1362
+ width: o,
1363
+ height: r,
1364
+ viewBox: "0 0 30 10",
1365
+ preserveAspectRatio: "none",
1366
+ children: e.asChild ? n : /* @__PURE__ */ p.jsx("polygon", { points: "0,0 30,0 15,10" })
1367
+ }
1368
+ );
1369
+ });
1370
+ un.displayName = Vr;
1371
+ var Wr = un, pt = "Popper", [dn, Ye] = Ae(pt), [Ur, fn] = dn(pt), pn = (e) => {
1372
+ const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
1373
+ return /* @__PURE__ */ p.jsx(Ur, { scope: t, anchor: o, onAnchorChange: r, children: n });
1374
+ };
1375
+ pn.displayName = pt;
1376
+ var mn = "PopperAnchor", gn = u.forwardRef(
1377
+ (e, t) => {
1378
+ const { __scopePopper: n, virtualRef: o, ...r } = e, s = fn(mn, n), i = u.useRef(null), a = J(t, i), f = u.useRef(null);
1379
+ return u.useEffect(() => {
1380
+ const d = f.current;
1381
+ f.current = o?.current || i.current, d !== f.current && s.onAnchorChange(f.current);
1382
+ }), o ? null : /* @__PURE__ */ p.jsx(K.div, { ...r, ref: a });
1383
+ }
1384
+ );
1385
+ gn.displayName = mn;
1386
+ var mt = "PopperContent", [zr, Yr] = dn(mt), hn = u.forwardRef(
1387
+ (e, t) => {
1388
+ const {
1389
+ __scopePopper: n,
1390
+ side: o = "bottom",
1391
+ sideOffset: r = 0,
1392
+ align: s = "center",
1393
+ alignOffset: i = 0,
1394
+ arrowPadding: a = 0,
1395
+ avoidCollisions: f = !0,
1396
+ collisionBoundary: d = [],
1397
+ collisionPadding: l = 0,
1398
+ sticky: c = "partial",
1399
+ hideWhenDetached: m = !1,
1400
+ updatePositionStrategy: g = "optimized",
1401
+ onPlaced: h,
1402
+ ...w
1403
+ } = e, v = fn(mt, n), [x, R] = u.useState(null), C = J(t, (L) => R(L)), [b, M] = u.useState(null), E = Po(b), S = E?.width ?? 0, _ = E?.height ?? 0, N = o + (s !== "center" ? "-" + s : ""), D = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, j = Array.isArray(d) ? d : [d], F = j.length > 0, T = {
1404
+ padding: D,
1405
+ boundary: j.filter(qr),
1406
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1407
+ altBoundary: F
1408
+ }, { refs: I, floatingStyles: $, placement: O, isPositioned: k, middlewareData: P } = jr({
1409
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1410
+ strategy: "fixed",
1411
+ placement: N,
1412
+ whileElementsMounted: (...L) => Pr(...L, {
1413
+ animationFrame: g === "always"
1414
+ }),
1415
+ elements: {
1416
+ reference: v.anchor
1417
+ },
1418
+ middleware: [
1419
+ kr({ mainAxis: r + _, alignmentAxis: i }),
1420
+ f && Lr({
1421
+ mainAxis: !0,
1422
+ crossAxis: !1,
1423
+ limiter: c === "partial" ? $r() : void 0,
1424
+ ...T
1425
+ }),
1426
+ f && Gr({ ...T }),
1427
+ Br({
1428
+ ...T,
1429
+ apply: ({ elements: L, rects: ye, availableWidth: yo, availableHeight: Co }) => {
1430
+ const { width: bo, height: Ro } = ye.reference, je = L.floating.style;
1431
+ je.setProperty("--radix-popper-available-width", `${yo}px`), je.setProperty("--radix-popper-available-height", `${Co}px`), je.setProperty("--radix-popper-anchor-width", `${bo}px`), je.setProperty("--radix-popper-anchor-height", `${Ro}px`);
1432
+ }
1433
+ }),
1434
+ b && Hr({ element: b, padding: a }),
1435
+ Zr({ arrowWidth: S, arrowHeight: _ }),
1436
+ m && Kr({ strategy: "referenceHidden", ...T })
1437
+ ]
1438
+ }), [y, G] = xn(O), Y = Se(h);
1439
+ At(() => {
1440
+ k && Y?.();
1441
+ }, [k, Y]);
1442
+ const ie = P.arrow?.x, we = P.arrow?.y, xe = P.arrow?.centerOffset !== 0, [Ne, ae] = u.useState();
1443
+ return At(() => {
1444
+ x && ae(window.getComputedStyle(x).zIndex);
1445
+ }, [x]), /* @__PURE__ */ p.jsx(
1446
+ "div",
1447
+ {
1448
+ ref: I.setFloating,
1449
+ "data-radix-popper-content-wrapper": "",
1450
+ style: {
1451
+ ...$,
1452
+ transform: k ? $.transform : "translate(0, -200%)",
1453
+ // keep off the page when measuring
1454
+ minWidth: "max-content",
1455
+ zIndex: Ne,
1456
+ "--radix-popper-transform-origin": [
1457
+ P.transformOrigin?.x,
1458
+ P.transformOrigin?.y
1459
+ ].join(" "),
1460
+ // hide the content if using the hide middleware and should be hidden
1461
+ // set visibility to hidden and disable pointer events so the UI behaves
1462
+ // as if the PopperContent isn't there at all
1463
+ ...P.hide?.referenceHidden && {
1464
+ visibility: "hidden",
1465
+ pointerEvents: "none"
1466
+ }
1467
+ },
1468
+ dir: e.dir,
1469
+ children: /* @__PURE__ */ p.jsx(
1470
+ zr,
1471
+ {
1472
+ scope: n,
1473
+ placedSide: y,
1474
+ onArrowChange: M,
1475
+ arrowX: ie,
1476
+ arrowY: we,
1477
+ shouldHideArrow: xe,
1478
+ children: /* @__PURE__ */ p.jsx(
1479
+ K.div,
1480
+ {
1481
+ "data-side": y,
1482
+ "data-align": G,
1483
+ ...w,
1484
+ ref: C,
1485
+ style: {
1486
+ ...w.style,
1487
+ // if the PopperContent hasn't been placed yet (not all measurements done)
1488
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
1489
+ animation: k ? void 0 : "none"
1490
+ }
1491
+ }
1492
+ )
1493
+ }
1494
+ )
1495
+ }
1496
+ );
1497
+ }
1498
+ );
1499
+ hn.displayName = mt;
1500
+ var vn = "PopperArrow", Xr = {
1501
+ top: "bottom",
1502
+ right: "left",
1503
+ bottom: "top",
1504
+ left: "right"
1505
+ }, wn = u.forwardRef(function(t, n) {
1506
+ const { __scopePopper: o, ...r } = t, s = Yr(vn, o), i = Xr[s.placedSide];
1507
+ return (
1508
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1509
+ // doesn't report size as we'd expect on SVG elements.
1510
+ // it reports their bounding box which is effectively the largest path inside the SVG.
1511
+ /* @__PURE__ */ p.jsx(
1512
+ "span",
1513
+ {
1514
+ ref: s.onArrowChange,
1515
+ style: {
1516
+ position: "absolute",
1517
+ left: s.arrowX,
1518
+ top: s.arrowY,
1519
+ [i]: 0,
1520
+ transformOrigin: {
1521
+ top: "",
1522
+ right: "0 0",
1523
+ bottom: "center 0",
1524
+ left: "100% 0"
1525
+ }[s.placedSide],
1526
+ transform: {
1527
+ top: "translateY(100%)",
1528
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1529
+ bottom: "rotate(180deg)",
1530
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1531
+ }[s.placedSide],
1532
+ visibility: s.shouldHideArrow ? "hidden" : void 0
1533
+ },
1534
+ children: /* @__PURE__ */ p.jsx(
1535
+ Wr,
1536
+ {
1537
+ ...r,
1538
+ ref: n,
1539
+ style: {
1540
+ ...r.style,
1541
+ // ensures the element can be measured correctly (mostly for if SVG)
1542
+ display: "block"
1543
+ }
1544
+ }
1545
+ )
1546
+ }
1547
+ )
1548
+ );
1549
+ });
1550
+ wn.displayName = vn;
1551
+ function qr(e) {
1552
+ return e !== null;
1553
+ }
1554
+ var Zr = (e) => ({
1555
+ name: "transformOrigin",
1556
+ options: e,
1557
+ fn(t) {
1558
+ const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, f = i ? 0 : e.arrowHeight, [d, l] = xn(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + a / 2, g = (r.arrow?.y ?? 0) + f / 2;
1559
+ let h = "", w = "";
1560
+ return d === "bottom" ? (h = i ? c : `${m}px`, w = `${-f}px`) : d === "top" ? (h = i ? c : `${m}px`, w = `${o.floating.height + f}px`) : d === "right" ? (h = `${-f}px`, w = i ? c : `${g}px`) : d === "left" && (h = `${o.floating.width + f}px`, w = i ? c : `${g}px`), { data: { x: h, y: w } };
1561
+ }
1562
+ });
1563
+ function xn(e) {
1564
+ const [t, n = "center"] = e.split("-");
1565
+ return [t, n];
1566
+ }
1567
+ var gt = pn, ht = gn, yn = hn, Cn = wn, et = "rovingFocusGroup.onEntryFocus", Jr = { bubbles: !1, cancelable: !0 }, Ee = "RovingFocusGroup", [rt, bn, Qr] = Gt(Ee), [es, Rn] = Ae(
1568
+ Ee,
1569
+ [Qr]
1570
+ ), [ts, ns] = es(Ee), Mn = u.forwardRef(
1571
+ (e, t) => /* @__PURE__ */ p.jsx(rt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(rt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(os, { ...e, ref: t }) }) })
1572
+ );
1573
+ Mn.displayName = Ee;
1574
+ var os = u.forwardRef((e, t) => {
1575
+ const {
1576
+ __scopeRovingFocusGroup: n,
1577
+ orientation: o,
1578
+ loop: r = !1,
1579
+ dir: s,
1580
+ currentTabStopId: i,
1581
+ defaultCurrentTabStopId: a,
1582
+ onCurrentTabStopIdChange: f,
1583
+ onEntryFocus: d,
1584
+ preventScrollOnEntryFocus: l = !1,
1585
+ ...c
1586
+ } = e, m = u.useRef(null), g = J(t, m), h = Bt(s), [w, v] = it({
1587
+ prop: i,
1588
+ defaultProp: a ?? null,
1589
+ onChange: f,
1590
+ caller: Ee
1591
+ }), [x, R] = u.useState(!1), C = Se(d), b = bn(n), M = u.useRef(!1), [E, S] = u.useState(0);
1592
+ return u.useEffect(() => {
1593
+ const _ = m.current;
1594
+ if (_)
1595
+ return _.addEventListener(et, C), () => _.removeEventListener(et, C);
1596
+ }, [C]), /* @__PURE__ */ p.jsx(
1597
+ ts,
1598
+ {
1599
+ scope: n,
1600
+ orientation: o,
1601
+ dir: h,
1602
+ loop: r,
1603
+ currentTabStopId: w,
1604
+ onItemFocus: u.useCallback(
1605
+ (_) => v(_),
1606
+ [v]
1607
+ ),
1608
+ onItemShiftTab: u.useCallback(() => R(!0), []),
1609
+ onFocusableItemAdd: u.useCallback(
1610
+ () => S((_) => _ + 1),
1611
+ []
1612
+ ),
1613
+ onFocusableItemRemove: u.useCallback(
1614
+ () => S((_) => _ - 1),
1615
+ []
1616
+ ),
1617
+ children: /* @__PURE__ */ p.jsx(
1618
+ K.div,
1619
+ {
1620
+ tabIndex: x || E === 0 ? -1 : 0,
1621
+ "data-orientation": o,
1622
+ ...c,
1623
+ ref: g,
1624
+ style: { outline: "none", ...e.style },
1625
+ onMouseDown: A(e.onMouseDown, () => {
1626
+ M.current = !0;
1627
+ }),
1628
+ onFocus: A(e.onFocus, (_) => {
1629
+ const N = !M.current;
1630
+ if (_.target === _.currentTarget && N && !x) {
1631
+ const D = new CustomEvent(et, Jr);
1632
+ if (_.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
1633
+ const j = b().filter((O) => O.focusable), F = j.find((O) => O.active), T = j.find((O) => O.id === w), $ = [F, T, ...j].filter(
1634
+ Boolean
1635
+ ).map((O) => O.ref.current);
1636
+ Sn($, l);
1637
+ }
1638
+ }
1639
+ M.current = !1;
1640
+ }),
1641
+ onBlur: A(e.onBlur, () => R(!1))
1642
+ }
1643
+ )
1644
+ }
1645
+ );
1646
+ }), Pn = "RovingFocusGroupItem", An = u.forwardRef(
1647
+ (e, t) => {
1648
+ const {
1649
+ __scopeRovingFocusGroup: n,
1650
+ focusable: o = !0,
1651
+ active: r = !1,
1652
+ tabStopId: s,
1653
+ children: i,
1654
+ ...a
1655
+ } = e, f = de(), d = s || f, l = ns(Pn, n), c = l.currentTabStopId === d, m = bn(n), { onFocusableItemAdd: g, onFocusableItemRemove: h, currentTabStopId: w } = l;
1656
+ return u.useEffect(() => {
1657
+ if (o)
1658
+ return g(), () => h();
1659
+ }, [o, g, h]), /* @__PURE__ */ p.jsx(
1660
+ rt.ItemSlot,
1661
+ {
1662
+ scope: n,
1663
+ id: d,
1664
+ focusable: o,
1665
+ active: r,
1666
+ children: /* @__PURE__ */ p.jsx(
1667
+ K.span,
1668
+ {
1669
+ tabIndex: c ? 0 : -1,
1670
+ "data-orientation": l.orientation,
1671
+ ...a,
1672
+ ref: t,
1673
+ onMouseDown: A(e.onMouseDown, (v) => {
1674
+ o ? l.onItemFocus(d) : v.preventDefault();
1675
+ }),
1676
+ onFocus: A(e.onFocus, () => l.onItemFocus(d)),
1677
+ onKeyDown: A(e.onKeyDown, (v) => {
1678
+ if (v.key === "Tab" && v.shiftKey) {
1679
+ l.onItemShiftTab();
1680
+ return;
1681
+ }
1682
+ if (v.target !== v.currentTarget) return;
1683
+ const x = is(v, l.orientation, l.dir);
1684
+ if (x !== void 0) {
1685
+ if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
1686
+ v.preventDefault();
1687
+ let C = m().filter((b) => b.focusable).map((b) => b.ref.current);
1688
+ if (x === "last") C.reverse();
1689
+ else if (x === "prev" || x === "next") {
1690
+ x === "prev" && C.reverse();
1691
+ const b = C.indexOf(v.currentTarget);
1692
+ C = l.loop ? as(C, b + 1) : C.slice(b + 1);
1693
+ }
1694
+ setTimeout(() => Sn(C));
1695
+ }
1696
+ }),
1697
+ children: typeof i == "function" ? i({ isCurrentTabStop: c, hasTabStop: w != null }) : i
1698
+ }
1699
+ )
1700
+ }
1701
+ );
1702
+ }
1703
+ );
1704
+ An.displayName = Pn;
1705
+ var rs = {
1706
+ ArrowLeft: "prev",
1707
+ ArrowUp: "prev",
1708
+ ArrowRight: "next",
1709
+ ArrowDown: "next",
1710
+ PageUp: "first",
1711
+ Home: "first",
1712
+ PageDown: "last",
1713
+ End: "last"
1714
+ };
1715
+ function ss(e, t) {
1716
+ return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
1717
+ }
1718
+ function is(e, t, n) {
1719
+ const o = ss(e.key, n);
1720
+ if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
1721
+ return rs[o];
1722
+ }
1723
+ function Sn(e, t = !1) {
1724
+ const n = document.activeElement;
1725
+ for (const o of e)
1726
+ if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
1727
+ }
1728
+ function as(e, t) {
1729
+ return e.map((n, o) => e[(t + o) % e.length]);
1730
+ }
1731
+ var cs = Mn, ls = An, st = ["Enter", " "], us = ["ArrowDown", "PageUp", "Home"], _n = ["ArrowUp", "PageDown", "End"], ds = [...us, ..._n], fs = {
1732
+ ltr: [...st, "ArrowRight"],
1733
+ rtl: [...st, "ArrowLeft"]
1734
+ }, ps = {
1735
+ ltr: ["ArrowLeft"],
1736
+ rtl: ["ArrowRight"]
1737
+ }, Oe = "Menu", [Me, ms, gs] = Gt(Oe), [le, En] = Ae(Oe, [
1738
+ gs,
1739
+ Ye,
1740
+ Rn
1741
+ ]), De = Ye(), On = Rn(), [Dn, re] = le(Oe), [hs, Ie] = le(Oe), In = (e) => {
1742
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: s, modal: i = !0 } = e, a = De(t), [f, d] = u.useState(null), l = u.useRef(!1), c = Se(s), m = Bt(r);
1743
+ return u.useEffect(() => {
1744
+ const g = () => {
1745
+ l.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
1746
+ }, h = () => l.current = !1;
1747
+ return document.addEventListener("keydown", g, { capture: !0 }), () => {
1748
+ document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
1749
+ };
1750
+ }, []), /* @__PURE__ */ p.jsx(gt, { ...a, children: /* @__PURE__ */ p.jsx(
1751
+ Dn,
1752
+ {
1753
+ scope: t,
1754
+ open: n,
1755
+ onOpenChange: c,
1756
+ content: f,
1757
+ onContentChange: d,
1758
+ children: /* @__PURE__ */ p.jsx(
1759
+ hs,
1760
+ {
1761
+ scope: t,
1762
+ onClose: u.useCallback(() => c(!1), [c]),
1763
+ isUsingKeyboardRef: l,
1764
+ dir: m,
1765
+ modal: i,
1766
+ children: o
1767
+ }
1768
+ )
1769
+ }
1770
+ ) });
1771
+ };
1772
+ In.displayName = Oe;
1773
+ var vs = "MenuAnchor", vt = u.forwardRef(
1774
+ (e, t) => {
1775
+ const { __scopeMenu: n, ...o } = e, r = De(n);
1776
+ return /* @__PURE__ */ p.jsx(ht, { ...r, ...o, ref: t });
1777
+ }
1778
+ );
1779
+ vt.displayName = vs;
1780
+ var wt = "MenuPortal", [ws, Tn] = le(wt, {
1781
+ forceMount: void 0
1782
+ }), Nn = (e) => {
1783
+ const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, s = re(wt, t);
1784
+ return /* @__PURE__ */ p.jsx(ws, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(me, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
1785
+ };
1786
+ Nn.displayName = wt;
1787
+ var W = "MenuContent", [xs, xt] = le(W), jn = u.forwardRef(
1788
+ (e, t) => {
1789
+ const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = re(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu);
1790
+ return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ p.jsx(ys, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(Cs, { ...r, ref: t }) }) }) });
1791
+ }
1792
+ ), ys = u.forwardRef(
1793
+ (e, t) => {
1794
+ const n = re(W, e.__scopeMenu), o = u.useRef(null), r = J(t, o);
1795
+ return u.useEffect(() => {
1796
+ const s = o.current;
1797
+ if (s) return Vt(s);
1798
+ }, []), /* @__PURE__ */ p.jsx(
1799
+ yt,
1800
+ {
1801
+ ...e,
1802
+ ref: r,
1803
+ trapFocus: n.open,
1804
+ disableOutsidePointerEvents: n.open,
1805
+ disableOutsideScroll: !0,
1806
+ onFocusOutside: A(
1807
+ e.onFocusOutside,
1808
+ (s) => s.preventDefault(),
1809
+ { checkForDefaultPrevented: !1 }
1810
+ ),
1811
+ onDismiss: () => n.onOpenChange(!1)
1812
+ }
1813
+ );
1814
+ }
1815
+ ), Cs = u.forwardRef((e, t) => {
1816
+ const n = re(W, e.__scopeMenu);
1817
+ return /* @__PURE__ */ p.jsx(
1818
+ yt,
1819
+ {
1820
+ ...e,
1821
+ ref: t,
1822
+ trapFocus: !1,
1823
+ disableOutsidePointerEvents: !1,
1824
+ disableOutsideScroll: !1,
1825
+ onDismiss: () => n.onOpenChange(!1)
1826
+ }
1827
+ );
1828
+ }), bs = zt("MenuContent.ScrollLock"), yt = u.forwardRef(
1829
+ (e, t) => {
1830
+ const {
1831
+ __scopeMenu: n,
1832
+ loop: o = !1,
1833
+ trapFocus: r,
1834
+ onOpenAutoFocus: s,
1835
+ onCloseAutoFocus: i,
1836
+ disableOutsidePointerEvents: a,
1837
+ onEntryFocus: f,
1838
+ onEscapeKeyDown: d,
1839
+ onPointerDownOutside: l,
1840
+ onFocusOutside: c,
1841
+ onInteractOutside: m,
1842
+ onDismiss: g,
1843
+ disableOutsideScroll: h,
1844
+ ...w
1845
+ } = e, v = re(W, n), x = Ie(W, n), R = De(n), C = On(n), b = ms(n), [M, E] = u.useState(null), S = u.useRef(null), _ = J(t, S, v.onContentChange), N = u.useRef(0), D = u.useRef(""), j = u.useRef(0), F = u.useRef(null), T = u.useRef("right"), I = u.useRef(0), $ = h ? Ut : u.Fragment, O = h ? { as: bs, allowPinchZoom: !0 } : void 0, k = (y) => {
1846
+ const G = D.current + y, Y = b().filter((L) => !L.disabled), ie = document.activeElement, we = Y.find((L) => L.ref.current === ie)?.textValue, xe = Y.map((L) => L.textValue), Ne = Ns(xe, G, we), ae = Y.find((L) => L.textValue === Ne)?.ref.current;
1847
+ (function L(ye) {
1848
+ D.current = ye, window.clearTimeout(N.current), ye !== "" && (N.current = window.setTimeout(() => L(""), 1e3));
1849
+ })(G), ae && setTimeout(() => ae.focus());
1850
+ };
1851
+ u.useEffect(() => () => window.clearTimeout(N.current), []), Wt();
1852
+ const P = u.useCallback((y) => T.current === F.current?.side && Fs(y, F.current?.area), []);
1853
+ return /* @__PURE__ */ p.jsx(
1854
+ xs,
1855
+ {
1856
+ scope: n,
1857
+ searchRef: D,
1858
+ onItemEnter: u.useCallback(
1859
+ (y) => {
1860
+ P(y) && y.preventDefault();
1861
+ },
1862
+ [P]
1863
+ ),
1864
+ onItemLeave: u.useCallback(
1865
+ (y) => {
1866
+ P(y) || (S.current?.focus(), E(null));
1867
+ },
1868
+ [P]
1869
+ ),
1870
+ onTriggerLeave: u.useCallback(
1871
+ (y) => {
1872
+ P(y) && y.preventDefault();
1873
+ },
1874
+ [P]
1875
+ ),
1876
+ pointerGraceTimerRef: j,
1877
+ onPointerGraceIntentChange: u.useCallback((y) => {
1878
+ F.current = y;
1879
+ }, []),
1880
+ children: /* @__PURE__ */ p.jsx($, { ...O, children: /* @__PURE__ */ p.jsx(
1881
+ Yt,
1882
+ {
1883
+ asChild: !0,
1884
+ trapped: r,
1885
+ onMountAutoFocus: A(s, (y) => {
1886
+ y.preventDefault(), S.current?.focus({ preventScroll: !0 });
1887
+ }),
1888
+ onUnmountAutoFocus: i,
1889
+ children: /* @__PURE__ */ p.jsx(
1890
+ Xt,
1891
+ {
1892
+ asChild: !0,
1893
+ disableOutsidePointerEvents: a,
1894
+ onEscapeKeyDown: d,
1895
+ onPointerDownOutside: l,
1896
+ onFocusOutside: c,
1897
+ onInteractOutside: m,
1898
+ onDismiss: g,
1899
+ children: /* @__PURE__ */ p.jsx(
1900
+ cs,
1901
+ {
1902
+ asChild: !0,
1903
+ ...C,
1904
+ dir: x.dir,
1905
+ orientation: "vertical",
1906
+ loop: o,
1907
+ currentTabStopId: M,
1908
+ onCurrentTabStopIdChange: E,
1909
+ onEntryFocus: A(f, (y) => {
1910
+ x.isUsingKeyboardRef.current || y.preventDefault();
1911
+ }),
1912
+ preventScrollOnEntryFocus: !0,
1913
+ children: /* @__PURE__ */ p.jsx(
1914
+ yn,
1915
+ {
1916
+ role: "menu",
1917
+ "aria-orientation": "vertical",
1918
+ "data-state": Jn(v.open),
1919
+ "data-radix-menu-content": "",
1920
+ dir: x.dir,
1921
+ ...R,
1922
+ ...w,
1923
+ ref: _,
1924
+ style: { outline: "none", ...w.style },
1925
+ onKeyDown: A(w.onKeyDown, (y) => {
1926
+ const Y = y.target.closest("[data-radix-menu-content]") === y.currentTarget, ie = y.ctrlKey || y.altKey || y.metaKey, we = y.key.length === 1;
1927
+ Y && (y.key === "Tab" && y.preventDefault(), !ie && we && k(y.key));
1928
+ const xe = S.current;
1929
+ if (y.target !== xe || !ds.includes(y.key)) return;
1930
+ y.preventDefault();
1931
+ const ae = b().filter((L) => !L.disabled).map((L) => L.ref.current);
1932
+ _n.includes(y.key) && ae.reverse(), Is(ae);
1933
+ }),
1934
+ onBlur: A(e.onBlur, (y) => {
1935
+ y.currentTarget.contains(y.target) || (window.clearTimeout(N.current), D.current = "");
1936
+ }),
1937
+ onPointerMove: A(
1938
+ e.onPointerMove,
1939
+ Pe((y) => {
1940
+ const G = y.target, Y = I.current !== y.clientX;
1941
+ if (y.currentTarget.contains(G) && Y) {
1942
+ const ie = y.clientX > I.current ? "right" : "left";
1943
+ T.current = ie, I.current = y.clientX;
1944
+ }
1945
+ })
1946
+ )
1947
+ }
1948
+ )
1949
+ }
1950
+ )
1951
+ }
1952
+ )
1953
+ }
1954
+ ) })
1955
+ }
1956
+ );
1957
+ }
1958
+ );
1959
+ jn.displayName = W;
1960
+ var Rs = "MenuGroup", Ct = u.forwardRef(
1961
+ (e, t) => {
1962
+ const { __scopeMenu: n, ...o } = e;
1963
+ return /* @__PURE__ */ p.jsx(K.div, { role: "group", ...o, ref: t });
1964
+ }
1965
+ );
1966
+ Ct.displayName = Rs;
1967
+ var Ms = "MenuLabel", Fn = u.forwardRef(
1968
+ (e, t) => {
1969
+ const { __scopeMenu: n, ...o } = e;
1970
+ return /* @__PURE__ */ p.jsx(K.div, { ...o, ref: t });
1971
+ }
1972
+ );
1973
+ Fn.displayName = Ms;
1974
+ var Ke = "MenuItem", Lt = "menu.itemSelect", Xe = u.forwardRef(
1975
+ (e, t) => {
1976
+ const { disabled: n = !1, onSelect: o, ...r } = e, s = u.useRef(null), i = Ie(Ke, e.__scopeMenu), a = xt(Ke, e.__scopeMenu), f = J(t, s), d = u.useRef(!1), l = () => {
1977
+ const c = s.current;
1978
+ if (!n && c) {
1979
+ const m = new CustomEvent(Lt, { bubbles: !0, cancelable: !0 });
1980
+ c.addEventListener(Lt, (g) => o?.(g), { once: !0 }), Ao(c, m), m.defaultPrevented ? d.current = !1 : i.onClose();
1981
+ }
1982
+ };
1983
+ return /* @__PURE__ */ p.jsx(
1984
+ kn,
1985
+ {
1986
+ ...r,
1987
+ ref: f,
1988
+ disabled: n,
1989
+ onClick: A(e.onClick, l),
1990
+ onPointerDown: (c) => {
1991
+ e.onPointerDown?.(c), d.current = !0;
1992
+ },
1993
+ onPointerUp: A(e.onPointerUp, (c) => {
1994
+ d.current || c.currentTarget?.click();
1995
+ }),
1996
+ onKeyDown: A(e.onKeyDown, (c) => {
1997
+ const m = a.searchRef.current !== "";
1998
+ n || m && c.key === " " || st.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1999
+ })
2000
+ }
2001
+ );
2002
+ }
2003
+ );
2004
+ Xe.displayName = Ke;
2005
+ var kn = u.forwardRef(
2006
+ (e, t) => {
2007
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...s } = e, i = xt(Ke, n), a = On(n), f = u.useRef(null), d = J(t, f), [l, c] = u.useState(!1), [m, g] = u.useState("");
2008
+ return u.useEffect(() => {
2009
+ const h = f.current;
2010
+ h && g((h.textContent ?? "").trim());
2011
+ }, [s.children]), /* @__PURE__ */ p.jsx(
2012
+ Me.ItemSlot,
2013
+ {
2014
+ scope: n,
2015
+ disabled: o,
2016
+ textValue: r ?? m,
2017
+ children: /* @__PURE__ */ p.jsx(ls, { asChild: !0, ...a, focusable: !o, children: /* @__PURE__ */ p.jsx(
2018
+ K.div,
2019
+ {
2020
+ role: "menuitem",
2021
+ "data-highlighted": l ? "" : void 0,
2022
+ "aria-disabled": o || void 0,
2023
+ "data-disabled": o ? "" : void 0,
2024
+ ...s,
2025
+ ref: d,
2026
+ onPointerMove: A(
2027
+ e.onPointerMove,
2028
+ Pe((h) => {
2029
+ o ? i.onItemLeave(h) : (i.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
2030
+ })
2031
+ ),
2032
+ onPointerLeave: A(
2033
+ e.onPointerLeave,
2034
+ Pe((h) => i.onItemLeave(h))
2035
+ ),
2036
+ onFocus: A(e.onFocus, () => c(!0)),
2037
+ onBlur: A(e.onBlur, () => c(!1))
2038
+ }
2039
+ ) })
2040
+ }
2041
+ );
2042
+ }
2043
+ ), Ps = "MenuCheckboxItem", Ln = u.forwardRef(
2044
+ (e, t) => {
2045
+ const { checked: n = !1, onCheckedChange: o, ...r } = e;
2046
+ return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p.jsx(
2047
+ Xe,
2048
+ {
2049
+ role: "menuitemcheckbox",
2050
+ "aria-checked": He(n) ? "mixed" : n,
2051
+ ...r,
2052
+ ref: t,
2053
+ "data-state": Mt(n),
2054
+ onSelect: A(
2055
+ r.onSelect,
2056
+ () => o?.(He(n) ? !0 : !n),
2057
+ { checkForDefaultPrevented: !1 }
2058
+ )
2059
+ }
2060
+ ) });
2061
+ }
2062
+ );
2063
+ Ln.displayName = Ps;
2064
+ var $n = "MenuRadioGroup", [As, Ss] = le(
2065
+ $n,
2066
+ { value: void 0, onValueChange: () => {
2067
+ } }
2068
+ ), Gn = u.forwardRef(
2069
+ (e, t) => {
2070
+ const { value: n, onValueChange: o, ...r } = e, s = Se(o);
2071
+ return /* @__PURE__ */ p.jsx(As, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ p.jsx(Ct, { ...r, ref: t }) });
2072
+ }
2073
+ );
2074
+ Gn.displayName = $n;
2075
+ var Bn = "MenuRadioItem", Kn = u.forwardRef(
2076
+ (e, t) => {
2077
+ const { value: n, ...o } = e, r = Ss(Bn, e.__scopeMenu), s = n === r.value;
2078
+ return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ p.jsx(
2079
+ Xe,
2080
+ {
2081
+ role: "menuitemradio",
2082
+ "aria-checked": s,
2083
+ ...o,
2084
+ ref: t,
2085
+ "data-state": Mt(s),
2086
+ onSelect: A(
2087
+ o.onSelect,
2088
+ () => r.onValueChange?.(n),
2089
+ { checkForDefaultPrevented: !1 }
2090
+ )
2091
+ }
2092
+ ) });
2093
+ }
2094
+ );
2095
+ Kn.displayName = Bn;
2096
+ var bt = "MenuItemIndicator", [Hn, _s] = le(
2097
+ bt,
2098
+ { checked: !1 }
2099
+ ), Vn = u.forwardRef(
2100
+ (e, t) => {
2101
+ const { __scopeMenu: n, forceMount: o, ...r } = e, s = _s(bt, n);
2102
+ return /* @__PURE__ */ p.jsx(
2103
+ me,
2104
+ {
2105
+ present: o || He(s.checked) || s.checked === !0,
2106
+ children: /* @__PURE__ */ p.jsx(
2107
+ K.span,
2108
+ {
2109
+ ...r,
2110
+ ref: t,
2111
+ "data-state": Mt(s.checked)
2112
+ }
2113
+ )
2114
+ }
2115
+ );
2116
+ }
2117
+ );
2118
+ Vn.displayName = bt;
2119
+ var Es = "MenuSeparator", Wn = u.forwardRef(
2120
+ (e, t) => {
2121
+ const { __scopeMenu: n, ...o } = e;
2122
+ return /* @__PURE__ */ p.jsx(
2123
+ K.div,
2124
+ {
2125
+ role: "separator",
2126
+ "aria-orientation": "horizontal",
2127
+ ...o,
2128
+ ref: t
2129
+ }
2130
+ );
2131
+ }
2132
+ );
2133
+ Wn.displayName = Es;
2134
+ var Os = "MenuArrow", Un = u.forwardRef(
2135
+ (e, t) => {
2136
+ const { __scopeMenu: n, ...o } = e, r = De(n);
2137
+ return /* @__PURE__ */ p.jsx(Cn, { ...r, ...o, ref: t });
2138
+ }
2139
+ );
2140
+ Un.displayName = Os;
2141
+ var Rt = "MenuSub", [Ds, zn] = le(Rt), Yn = (e) => {
2142
+ const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, s = re(Rt, t), i = De(t), [a, f] = u.useState(null), [d, l] = u.useState(null), c = Se(r);
2143
+ return u.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ p.jsx(gt, { ...i, children: /* @__PURE__ */ p.jsx(
2144
+ Dn,
2145
+ {
2146
+ scope: t,
2147
+ open: o,
2148
+ onOpenChange: c,
2149
+ content: d,
2150
+ onContentChange: l,
2151
+ children: /* @__PURE__ */ p.jsx(
2152
+ Ds,
2153
+ {
2154
+ scope: t,
2155
+ contentId: de(),
2156
+ triggerId: de(),
2157
+ trigger: a,
2158
+ onTriggerChange: f,
2159
+ children: n
2160
+ }
2161
+ )
2162
+ }
2163
+ ) });
2164
+ };
2165
+ Yn.displayName = Rt;
2166
+ var Ce = "MenuSubTrigger", Xn = u.forwardRef(
2167
+ (e, t) => {
2168
+ const n = re(Ce, e.__scopeMenu), o = Ie(Ce, e.__scopeMenu), r = zn(Ce, e.__scopeMenu), s = xt(Ce, e.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: f } = s, d = { __scopeMenu: e.__scopeMenu }, l = u.useCallback(() => {
2169
+ i.current && window.clearTimeout(i.current), i.current = null;
2170
+ }, []);
2171
+ return u.useEffect(() => l, [l]), u.useEffect(() => {
2172
+ const c = a.current;
2173
+ return () => {
2174
+ window.clearTimeout(c), f(null);
2175
+ };
2176
+ }, [a, f]), /* @__PURE__ */ p.jsx(vt, { asChild: !0, ...d, children: /* @__PURE__ */ p.jsx(
2177
+ kn,
2178
+ {
2179
+ id: r.triggerId,
2180
+ "aria-haspopup": "menu",
2181
+ "aria-expanded": n.open,
2182
+ "aria-controls": r.contentId,
2183
+ "data-state": Jn(n.open),
2184
+ ...e,
2185
+ ref: Ht(t, r.onTriggerChange),
2186
+ onClick: (c) => {
2187
+ e.onClick?.(c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
2188
+ },
2189
+ onPointerMove: A(
2190
+ e.onPointerMove,
2191
+ Pe((c) => {
2192
+ s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
2193
+ n.onOpenChange(!0), l();
2194
+ }, 100));
2195
+ })
2196
+ ),
2197
+ onPointerLeave: A(
2198
+ e.onPointerLeave,
2199
+ Pe((c) => {
2200
+ l();
2201
+ const m = n.content?.getBoundingClientRect();
2202
+ if (m) {
2203
+ const g = n.content?.dataset.side, h = g === "right", w = h ? -5 : 5, v = m[h ? "left" : "right"], x = m[h ? "right" : "left"];
2204
+ s.onPointerGraceIntentChange({
2205
+ area: [
2206
+ // Apply a bleed on clientX to ensure that our exit point is
2207
+ // consistently within polygon bounds
2208
+ { x: c.clientX + w, y: c.clientY },
2209
+ { x: v, y: m.top },
2210
+ { x, y: m.top },
2211
+ { x, y: m.bottom },
2212
+ { x: v, y: m.bottom }
2213
+ ],
2214
+ side: g
2215
+ }), window.clearTimeout(a.current), a.current = window.setTimeout(
2216
+ () => s.onPointerGraceIntentChange(null),
2217
+ 300
2218
+ );
2219
+ } else {
2220
+ if (s.onTriggerLeave(c), c.defaultPrevented) return;
2221
+ s.onPointerGraceIntentChange(null);
2222
+ }
2223
+ })
2224
+ ),
2225
+ onKeyDown: A(e.onKeyDown, (c) => {
2226
+ const m = s.searchRef.current !== "";
2227
+ e.disabled || m && c.key === " " || fs[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
2228
+ })
2229
+ }
2230
+ ) });
2231
+ }
2232
+ );
2233
+ Xn.displayName = Ce;
2234
+ var qn = "MenuSubContent", Zn = u.forwardRef(
2235
+ (e, t) => {
2236
+ const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = re(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu), a = zn(qn, e.__scopeMenu), f = u.useRef(null), d = J(t, f);
2237
+ return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(
2238
+ yt,
2239
+ {
2240
+ id: a.contentId,
2241
+ "aria-labelledby": a.triggerId,
2242
+ ...r,
2243
+ ref: d,
2244
+ align: "start",
2245
+ side: i.dir === "rtl" ? "left" : "right",
2246
+ disableOutsidePointerEvents: !1,
2247
+ disableOutsideScroll: !1,
2248
+ trapFocus: !1,
2249
+ onOpenAutoFocus: (l) => {
2250
+ i.isUsingKeyboardRef.current && f.current?.focus(), l.preventDefault();
2251
+ },
2252
+ onCloseAutoFocus: (l) => l.preventDefault(),
2253
+ onFocusOutside: A(e.onFocusOutside, (l) => {
2254
+ l.target !== a.trigger && s.onOpenChange(!1);
2255
+ }),
2256
+ onEscapeKeyDown: A(e.onEscapeKeyDown, (l) => {
2257
+ i.onClose(), l.preventDefault();
2258
+ }),
2259
+ onKeyDown: A(e.onKeyDown, (l) => {
2260
+ const c = l.currentTarget.contains(l.target), m = ps[i.dir].includes(l.key);
2261
+ c && m && (s.onOpenChange(!1), a.trigger?.focus(), l.preventDefault());
2262
+ })
2263
+ }
2264
+ ) }) }) });
2265
+ }
2266
+ );
2267
+ Zn.displayName = qn;
2268
+ function Jn(e) {
2269
+ return e ? "open" : "closed";
2270
+ }
2271
+ function He(e) {
2272
+ return e === "indeterminate";
2273
+ }
2274
+ function Mt(e) {
2275
+ return He(e) ? "indeterminate" : e ? "checked" : "unchecked";
2276
+ }
2277
+ function Is(e) {
2278
+ const t = document.activeElement;
2279
+ for (const n of e)
2280
+ if (n === t || (n.focus(), document.activeElement !== t)) return;
2281
+ }
2282
+ function Ts(e, t) {
2283
+ return e.map((n, o) => e[(t + o) % e.length]);
2284
+ }
2285
+ function Ns(e, t, n) {
2286
+ const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
2287
+ let i = Ts(e, Math.max(s, 0));
2288
+ r.length === 1 && (i = i.filter((d) => d !== n));
2289
+ const f = i.find(
2290
+ (d) => d.toLowerCase().startsWith(r.toLowerCase())
2291
+ );
2292
+ return f !== n ? f : void 0;
2293
+ }
2294
+ function js(e, t) {
2295
+ const { x: n, y: o } = e;
2296
+ let r = !1;
2297
+ for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
2298
+ const a = t[s], f = t[i], d = a.x, l = a.y, c = f.x, m = f.y;
2299
+ l > o != m > o && n < (c - d) * (o - l) / (m - l) + d && (r = !r);
2300
+ }
2301
+ return r;
2302
+ }
2303
+ function Fs(e, t) {
2304
+ if (!t) return !1;
2305
+ const n = { x: e.clientX, y: e.clientY };
2306
+ return js(n, t);
2307
+ }
2308
+ function Pe(e) {
2309
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
2310
+ }
2311
+ var ks = In, Ls = vt, $s = Nn, Gs = jn, Bs = Ct, Ks = Fn, Hs = Xe, Vs = Ln, Ws = Gn, Us = Kn, zs = Vn, Ys = Wn, Xs = Un, Ui = Yn, qs = Xn, Zs = Zn, qe = "DropdownMenu", [Js] = Ae(
2312
+ qe,
2313
+ [En]
2314
+ ), B = En(), [Qs, Qn] = Js(qe), eo = (e) => {
2315
+ const {
2316
+ __scopeDropdownMenu: t,
2317
+ children: n,
2318
+ dir: o,
2319
+ open: r,
2320
+ defaultOpen: s,
2321
+ onOpenChange: i,
2322
+ modal: a = !0
2323
+ } = e, f = B(t), d = u.useRef(null), [l, c] = it({
2324
+ prop: r,
2325
+ defaultProp: s ?? !1,
2326
+ onChange: i,
2327
+ caller: qe
2328
+ });
2329
+ return /* @__PURE__ */ p.jsx(
2330
+ Qs,
2331
+ {
2332
+ scope: t,
2333
+ triggerId: de(),
2334
+ triggerRef: d,
2335
+ contentId: de(),
2336
+ open: l,
2337
+ onOpenChange: c,
2338
+ onOpenToggle: u.useCallback(() => c((m) => !m), [c]),
2339
+ modal: a,
2340
+ children: /* @__PURE__ */ p.jsx(ks, { ...f, open: l, onOpenChange: c, dir: o, modal: a, children: n })
2341
+ }
2342
+ );
2343
+ };
2344
+ eo.displayName = qe;
2345
+ var to = "DropdownMenuTrigger", no = u.forwardRef(
2346
+ (e, t) => {
2347
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, s = Qn(to, n), i = B(n);
2348
+ return /* @__PURE__ */ p.jsx(Ls, { asChild: !0, ...i, children: /* @__PURE__ */ p.jsx(
2349
+ K.button,
2350
+ {
2351
+ type: "button",
2352
+ id: s.triggerId,
2353
+ "aria-haspopup": "menu",
2354
+ "aria-expanded": s.open,
2355
+ "aria-controls": s.open ? s.contentId : void 0,
2356
+ "data-state": s.open ? "open" : "closed",
2357
+ "data-disabled": o ? "" : void 0,
2358
+ disabled: o,
2359
+ ...r,
2360
+ ref: Ht(t, s.triggerRef),
2361
+ onPointerDown: A(e.onPointerDown, (a) => {
2362
+ !o && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
2363
+ }),
2364
+ onKeyDown: A(e.onKeyDown, (a) => {
2365
+ o || (["Enter", " "].includes(a.key) && s.onOpenToggle(), a.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(a.key) && a.preventDefault());
2366
+ })
2367
+ }
2368
+ ) });
2369
+ }
2370
+ );
2371
+ no.displayName = to;
2372
+ var ei = "DropdownMenuPortal", oo = (e) => {
2373
+ const { __scopeDropdownMenu: t, ...n } = e, o = B(t);
2374
+ return /* @__PURE__ */ p.jsx($s, { ...o, ...n });
2375
+ };
2376
+ oo.displayName = ei;
2377
+ var ro = "DropdownMenuContent", so = u.forwardRef(
2378
+ (e, t) => {
2379
+ const { __scopeDropdownMenu: n, ...o } = e, r = Qn(ro, n), s = B(n), i = u.useRef(!1);
2380
+ return /* @__PURE__ */ p.jsx(
2381
+ Gs,
2382
+ {
2383
+ id: r.contentId,
2384
+ "aria-labelledby": r.triggerId,
2385
+ ...s,
2386
+ ...o,
2387
+ ref: t,
2388
+ onCloseAutoFocus: A(e.onCloseAutoFocus, (a) => {
2389
+ i.current || r.triggerRef.current?.focus(), i.current = !1, a.preventDefault();
2390
+ }),
2391
+ onInteractOutside: A(e.onInteractOutside, (a) => {
2392
+ const f = a.detail.originalEvent, d = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || d;
2393
+ (!r.modal || l) && (i.current = !0);
2394
+ }),
2395
+ style: {
2396
+ ...e.style,
2397
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
2398
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
2399
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
2400
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
2401
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
2402
+ }
2403
+ }
2404
+ );
2405
+ }
2406
+ );
2407
+ so.displayName = ro;
2408
+ var ti = "DropdownMenuGroup", ni = u.forwardRef(
2409
+ (e, t) => {
2410
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2411
+ return /* @__PURE__ */ p.jsx(Bs, { ...r, ...o, ref: t });
2412
+ }
2413
+ );
2414
+ ni.displayName = ti;
2415
+ var oi = "DropdownMenuLabel", io = u.forwardRef(
2416
+ (e, t) => {
2417
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2418
+ return /* @__PURE__ */ p.jsx(Ks, { ...r, ...o, ref: t });
2419
+ }
2420
+ );
2421
+ io.displayName = oi;
2422
+ var ri = "DropdownMenuItem", ao = u.forwardRef(
2423
+ (e, t) => {
2424
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2425
+ return /* @__PURE__ */ p.jsx(Hs, { ...r, ...o, ref: t });
2426
+ }
2427
+ );
2428
+ ao.displayName = ri;
2429
+ var si = "DropdownMenuCheckboxItem", ii = u.forwardRef((e, t) => {
2430
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2431
+ return /* @__PURE__ */ p.jsx(Vs, { ...r, ...o, ref: t });
2432
+ });
2433
+ ii.displayName = si;
2434
+ var ai = "DropdownMenuRadioGroup", ci = u.forwardRef((e, t) => {
2435
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2436
+ return /* @__PURE__ */ p.jsx(Ws, { ...r, ...o, ref: t });
2437
+ });
2438
+ ci.displayName = ai;
2439
+ var li = "DropdownMenuRadioItem", ui = u.forwardRef((e, t) => {
2440
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2441
+ return /* @__PURE__ */ p.jsx(Us, { ...r, ...o, ref: t });
2442
+ });
2443
+ ui.displayName = li;
2444
+ var di = "DropdownMenuItemIndicator", fi = u.forwardRef((e, t) => {
2445
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2446
+ return /* @__PURE__ */ p.jsx(zs, { ...r, ...o, ref: t });
2447
+ });
2448
+ fi.displayName = di;
2449
+ var pi = "DropdownMenuSeparator", co = u.forwardRef((e, t) => {
2450
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2451
+ return /* @__PURE__ */ p.jsx(Ys, { ...r, ...o, ref: t });
2452
+ });
2453
+ co.displayName = pi;
2454
+ var mi = "DropdownMenuArrow", gi = u.forwardRef(
2455
+ (e, t) => {
2456
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2457
+ return /* @__PURE__ */ p.jsx(Xs, { ...r, ...o, ref: t });
2458
+ }
2459
+ );
2460
+ gi.displayName = mi;
2461
+ var hi = "DropdownMenuSubTrigger", vi = u.forwardRef((e, t) => {
2462
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2463
+ return /* @__PURE__ */ p.jsx(qs, { ...r, ...o, ref: t });
2464
+ });
2465
+ vi.displayName = hi;
2466
+ var wi = "DropdownMenuSubContent", xi = u.forwardRef((e, t) => {
2467
+ const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
2468
+ return /* @__PURE__ */ p.jsx(
2469
+ Zs,
2470
+ {
2471
+ ...r,
2472
+ ...o,
2473
+ ref: t,
2474
+ style: {
2475
+ ...e.style,
2476
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
2477
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
2478
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
2479
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
2480
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
2481
+ }
2482
+ }
2483
+ );
2484
+ });
2485
+ xi.displayName = wi;
2486
+ var yi = eo, Ci = no, bi = oo, Ri = so, Mi = io, Pi = ao, Ai = co, Ze = "Popover", [lo] = Ae(Ze, [
2487
+ Ye
2488
+ ]), Te = Ye(), [Si, se] = lo(Ze), uo = (e) => {
2489
+ const {
2490
+ __scopePopover: t,
2491
+ children: n,
2492
+ open: o,
2493
+ defaultOpen: r,
2494
+ onOpenChange: s,
2495
+ modal: i = !1
2496
+ } = e, a = Te(t), f = u.useRef(null), [d, l] = u.useState(!1), [c, m] = it({
2497
+ prop: o,
2498
+ defaultProp: r ?? !1,
2499
+ onChange: s,
2500
+ caller: Ze
2501
+ });
2502
+ return /* @__PURE__ */ p.jsx(gt, { ...a, children: /* @__PURE__ */ p.jsx(
2503
+ Si,
2504
+ {
2505
+ scope: t,
2506
+ contentId: de(),
2507
+ triggerRef: f,
2508
+ open: c,
2509
+ onOpenChange: m,
2510
+ onOpenToggle: u.useCallback(() => m((g) => !g), [m]),
2511
+ hasCustomAnchor: d,
2512
+ onCustomAnchorAdd: u.useCallback(() => l(!0), []),
2513
+ onCustomAnchorRemove: u.useCallback(() => l(!1), []),
2514
+ modal: i,
2515
+ children: n
2516
+ }
2517
+ ) });
2518
+ };
2519
+ uo.displayName = Ze;
2520
+ var fo = "PopoverAnchor", _i = u.forwardRef(
2521
+ (e, t) => {
2522
+ const { __scopePopover: n, ...o } = e, r = se(fo, n), s = Te(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
2523
+ return u.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ p.jsx(ht, { ...s, ...o, ref: t });
2524
+ }
2525
+ );
2526
+ _i.displayName = fo;
2527
+ var po = "PopoverTrigger", mo = u.forwardRef(
2528
+ (e, t) => {
2529
+ const { __scopePopover: n, ...o } = e, r = se(po, n), s = Te(n), i = J(t, r.triggerRef), a = /* @__PURE__ */ p.jsx(
2530
+ K.button,
2531
+ {
2532
+ type: "button",
2533
+ "aria-haspopup": "dialog",
2534
+ "aria-expanded": r.open,
2535
+ "aria-controls": r.contentId,
2536
+ "data-state": xo(r.open),
2537
+ ...o,
2538
+ ref: i,
2539
+ onClick: A(e.onClick, r.onOpenToggle)
2540
+ }
2541
+ );
2542
+ return r.hasCustomAnchor ? a : /* @__PURE__ */ p.jsx(ht, { asChild: !0, ...s, children: a });
2543
+ }
2544
+ );
2545
+ mo.displayName = po;
2546
+ var Pt = "PopoverPortal", [Ei, Oi] = lo(Pt, {
2547
+ forceMount: void 0
2548
+ }), go = (e) => {
2549
+ const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = se(Pt, t);
2550
+ return /* @__PURE__ */ p.jsx(Ei, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(me, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
2551
+ };
2552
+ go.displayName = Pt;
2553
+ var pe = "PopoverContent", ho = u.forwardRef(
2554
+ (e, t) => {
2555
+ const n = Oi(pe, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = se(pe, e.__scopePopover);
2556
+ return /* @__PURE__ */ p.jsx(me, { present: o || s.open, children: s.modal ? /* @__PURE__ */ p.jsx(Ii, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(Ti, { ...r, ref: t }) });
2557
+ }
2558
+ );
2559
+ ho.displayName = pe;
2560
+ var Di = zt("PopoverContent.RemoveScroll"), Ii = u.forwardRef(
2561
+ (e, t) => {
2562
+ const n = se(pe, e.__scopePopover), o = u.useRef(null), r = J(t, o), s = u.useRef(!1);
2563
+ return u.useEffect(() => {
2564
+ const i = o.current;
2565
+ if (i) return Vt(i);
2566
+ }, []), /* @__PURE__ */ p.jsx(Ut, { as: Di, allowPinchZoom: !0, children: /* @__PURE__ */ p.jsx(
2567
+ vo,
2568
+ {
2569
+ ...e,
2570
+ ref: r,
2571
+ trapFocus: n.open,
2572
+ disableOutsidePointerEvents: !0,
2573
+ onCloseAutoFocus: A(e.onCloseAutoFocus, (i) => {
2574
+ i.preventDefault(), s.current || n.triggerRef.current?.focus();
2575
+ }),
2576
+ onPointerDownOutside: A(
2577
+ e.onPointerDownOutside,
2578
+ (i) => {
2579
+ const a = i.detail.originalEvent, f = a.button === 0 && a.ctrlKey === !0, d = a.button === 2 || f;
2580
+ s.current = d;
2581
+ },
2582
+ { checkForDefaultPrevented: !1 }
2583
+ ),
2584
+ onFocusOutside: A(
2585
+ e.onFocusOutside,
2586
+ (i) => i.preventDefault(),
2587
+ { checkForDefaultPrevented: !1 }
2588
+ )
2589
+ }
2590
+ ) });
2591
+ }
2592
+ ), Ti = u.forwardRef(
2593
+ (e, t) => {
2594
+ const n = se(pe, e.__scopePopover), o = u.useRef(!1), r = u.useRef(!1);
2595
+ return /* @__PURE__ */ p.jsx(
2596
+ vo,
2597
+ {
2598
+ ...e,
2599
+ ref: t,
2600
+ trapFocus: !1,
2601
+ disableOutsidePointerEvents: !1,
2602
+ onCloseAutoFocus: (s) => {
2603
+ e.onCloseAutoFocus?.(s), s.defaultPrevented || (o.current || n.triggerRef.current?.focus(), s.preventDefault()), o.current = !1, r.current = !1;
2604
+ },
2605
+ onInteractOutside: (s) => {
2606
+ e.onInteractOutside?.(s), s.defaultPrevented || (o.current = !0, s.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2607
+ const i = s.target;
2608
+ n.triggerRef.current?.contains(i) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && r.current && s.preventDefault();
2609
+ }
2610
+ }
2611
+ );
2612
+ }
2613
+ ), vo = u.forwardRef(
2614
+ (e, t) => {
2615
+ const {
2616
+ __scopePopover: n,
2617
+ trapFocus: o,
2618
+ onOpenAutoFocus: r,
2619
+ onCloseAutoFocus: s,
2620
+ disableOutsidePointerEvents: i,
2621
+ onEscapeKeyDown: a,
2622
+ onPointerDownOutside: f,
2623
+ onFocusOutside: d,
2624
+ onInteractOutside: l,
2625
+ ...c
2626
+ } = e, m = se(pe, n), g = Te(n);
2627
+ return Wt(), /* @__PURE__ */ p.jsx(
2628
+ Yt,
2629
+ {
2630
+ asChild: !0,
2631
+ loop: !0,
2632
+ trapped: o,
2633
+ onMountAutoFocus: r,
2634
+ onUnmountAutoFocus: s,
2635
+ children: /* @__PURE__ */ p.jsx(
2636
+ Xt,
2637
+ {
2638
+ asChild: !0,
2639
+ disableOutsidePointerEvents: i,
2640
+ onInteractOutside: l,
2641
+ onEscapeKeyDown: a,
2642
+ onPointerDownOutside: f,
2643
+ onFocusOutside: d,
2644
+ onDismiss: () => m.onOpenChange(!1),
2645
+ children: /* @__PURE__ */ p.jsx(
2646
+ yn,
2647
+ {
2648
+ "data-state": xo(m.open),
2649
+ role: "dialog",
2650
+ id: m.contentId,
2651
+ ...g,
2652
+ ...c,
2653
+ ref: t,
2654
+ style: {
2655
+ ...c.style,
2656
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
2657
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
2658
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
2659
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
2660
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
2661
+ }
2662
+ }
2663
+ )
2664
+ }
2665
+ )
2666
+ }
2667
+ );
2668
+ }
2669
+ ), wo = "PopoverClose", Ni = u.forwardRef(
2670
+ (e, t) => {
2671
+ const { __scopePopover: n, ...o } = e, r = se(wo, n);
2672
+ return /* @__PURE__ */ p.jsx(
2673
+ K.button,
2674
+ {
2675
+ type: "button",
2676
+ ...o,
2677
+ ref: t,
2678
+ onClick: A(e.onClick, () => r.onOpenChange(!1))
2679
+ }
2680
+ );
2681
+ }
2682
+ );
2683
+ Ni.displayName = wo;
2684
+ var ji = "PopoverArrow", Fi = u.forwardRef(
2685
+ (e, t) => {
2686
+ const { __scopePopover: n, ...o } = e, r = Te(n);
2687
+ return /* @__PURE__ */ p.jsx(Cn, { ...r, ...o, ref: t });
2688
+ }
2689
+ );
2690
+ Fi.displayName = ji;
2691
+ function xo(e) {
2692
+ return e ? "open" : "closed";
2693
+ }
2694
+ var ki = uo, Li = mo, $i = go, Gi = ho;
2695
+ function zi({
2696
+ ...e
2697
+ }) {
2698
+ return /* @__PURE__ */ p.jsx(ki, { "data-slot": "popover", ...e });
2699
+ }
2700
+ function Yi({
2701
+ ...e
2702
+ }) {
2703
+ return /* @__PURE__ */ p.jsx(Li, { "data-slot": "popover-trigger", ...e });
2704
+ }
2705
+ function Xi({
2706
+ className: e,
2707
+ align: t = "center",
2708
+ sideOffset: n = 4,
2709
+ ...o
2710
+ }) {
2711
+ const r = qt();
2712
+ return /* @__PURE__ */ p.jsx($i, { container: r, children: /* @__PURE__ */ p.jsx(
2713
+ Gi,
2714
+ {
2715
+ "data-slot": "popover-content",
2716
+ align: t,
2717
+ sideOffset: n,
2718
+ className: ge(
2719
+ "cn-popover-content z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
2720
+ e
2721
+ ),
2722
+ ...o
2723
+ }
2724
+ ) });
2725
+ }
2726
+ function qi({
2727
+ ...e
2728
+ }) {
2729
+ return /* @__PURE__ */ p.jsx(yi, { "data-slot": "dropdown-menu", ...e });
2730
+ }
2731
+ function Zi({
2732
+ ...e
2733
+ }) {
2734
+ return /* @__PURE__ */ p.jsx(
2735
+ Ci,
2736
+ {
2737
+ "data-slot": "dropdown-menu-trigger",
2738
+ ...e
2739
+ }
2740
+ );
2741
+ }
2742
+ function Ji({
2743
+ className: e,
2744
+ sideOffset: t = 4,
2745
+ ...n
2746
+ }) {
2747
+ const o = qt();
2748
+ return /* @__PURE__ */ p.jsx(bi, { container: o, children: /* @__PURE__ */ p.jsx(
2749
+ Ri,
2750
+ {
2751
+ "data-slot": "dropdown-menu-content",
2752
+ sideOffset: t,
2753
+ className: ge(
2754
+ "bg-popover text-popover-foreground 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
2755
+ e
2756
+ ),
2757
+ ...n
2758
+ }
2759
+ ) });
2760
+ }
2761
+ function Qi({
2762
+ className: e,
2763
+ inset: t,
2764
+ variant: n = "default",
2765
+ ...o
2766
+ }) {
2767
+ return /* @__PURE__ */ p.jsx(
2768
+ Pi,
2769
+ {
2770
+ "data-slot": "dropdown-menu-item",
2771
+ "data-inset": t,
2772
+ "data-variant": n,
2773
+ className: ge(
2774
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2775
+ e
2776
+ ),
2777
+ ...o
2778
+ }
2779
+ );
2780
+ }
2781
+ function ea({
2782
+ className: e,
2783
+ inset: t,
2784
+ ...n
2785
+ }) {
2786
+ return /* @__PURE__ */ p.jsx(
2787
+ Mi,
2788
+ {
2789
+ "data-slot": "dropdown-menu-label",
2790
+ "data-inset": t,
2791
+ className: ge(
2792
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2793
+ e
2794
+ ),
2795
+ ...n
2796
+ }
2797
+ );
2798
+ }
2799
+ function ta({
2800
+ className: e,
2801
+ ...t
2802
+ }) {
2803
+ return /* @__PURE__ */ p.jsx(
2804
+ Ai,
2805
+ {
2806
+ "data-slot": "dropdown-menu-separator",
2807
+ className: ge("bg-border -mx-1 my-1 h-px", e),
2808
+ ...t
2809
+ }
2810
+ );
2811
+ }
2812
+ function na({
2813
+ open: e,
2814
+ onOpenChange: t,
2815
+ title: n,
2816
+ actions: o
2817
+ }) {
2818
+ return /* @__PURE__ */ p.jsxs(_o, { open: e, onOpenChange: t, title: n, children: [
2819
+ /* @__PURE__ */ p.jsx(
2820
+ "div",
2821
+ {
2822
+ "aria-hidden": "true",
2823
+ className: "border-border -mr-[max(0.5rem,env(safe-area-inset-right))] -ml-[max(0.5rem,env(safe-area-inset-left))] border-t"
2824
+ }
2825
+ ),
2826
+ /* @__PURE__ */ p.jsx("div", { className: "divide-border/50 border-border/50 divide-y border-b", children: o.map((r) => /* @__PURE__ */ p.jsxs(
2827
+ So,
2828
+ {
2829
+ type: "button",
2830
+ variant: "ghost",
2831
+ disabled: r.disabled,
2832
+ "aria-pressed": r.selected,
2833
+ className: ge(
2834
+ "h-13 w-full justify-start rounded-none px-4 text-base font-medium",
2835
+ r.variant === "destructive" && "text-destructive hover:bg-destructive/10 hover:text-destructive focus-visible:ring-destructive/20"
2836
+ ),
2837
+ onClick: () => {
2838
+ r.onSelect(), t(!1);
2839
+ },
2840
+ children: [
2841
+ /* @__PURE__ */ p.jsx("span", { className: "flex-1 text-left", children: r.label }),
2842
+ r.selected ? /* @__PURE__ */ p.jsx(
2843
+ Eo,
2844
+ {
2845
+ "aria-hidden": "true",
2846
+ className: "text-muted-foreground size-4"
2847
+ }
2848
+ ) : null
2849
+ ]
2850
+ },
2851
+ r.id
2852
+ )) })
2853
+ ] });
2854
+ }
2855
+ export {
2856
+ ht as A,
2857
+ ls as B,
2858
+ Hi as C,
2859
+ qi as D,
2860
+ Vi as E,
2861
+ Bs as G,
2862
+ Hs as I,
2863
+ Ks as L,
2864
+ na as M,
2865
+ zi as P,
2866
+ gt as R,
2867
+ Ui as S,
2868
+ Io as V,
2869
+ Zi as a,
2870
+ Ji as b,
2871
+ Qi as c,
2872
+ ta as d,
2873
+ Yi as e,
2874
+ Xi as f,
2875
+ Ye as g,
2876
+ yn as h,
2877
+ Wi as i,
2878
+ Cn as j,
2879
+ ea as k,
2880
+ En as l,
2881
+ ks as m,
2882
+ Ls as n,
2883
+ $s as o,
2884
+ Gs as p,
2885
+ qs as q,
2886
+ Zs as r,
2887
+ Ys as s,
2888
+ Vs as t,
2889
+ Ws as u,
2890
+ Us as v,
2891
+ zs as w,
2892
+ Xs as x,
2893
+ Rn as y,
2894
+ cs as z
2895
+ };