tuikit-atomicx-vue3 3.4.2 → 3.5.0-beta.8

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 (498) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
  3. package/dist/{PopoverTrigger-L8abAry7.js → PopoverTrigger-CglNN8IV.js} +3 -3
  4. package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-CQa08BXt.js} +1 -1
  5. package/dist/{Teleport-CSEuZbpM.js → Teleport-D3gvcBbZ.js} +278 -268
  6. package/dist/baseComp/Modal/Modal.js +431 -23
  7. package/dist/chat/index.d.ts +68 -53
  8. package/dist/chat/server.js +15 -15
  9. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  10. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  11. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  12. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  13. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  14. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  15. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  16. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  17. package/dist/components/AudioSettingPanel/index.js +81 -73
  18. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  19. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +4 -4
  20. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  21. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  22. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  23. package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
  24. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  25. package/dist/components/BarrageInput/type.d.ts +17 -0
  26. package/dist/components/BarrageInput/type.js +4 -0
  27. package/dist/components/BarrageInput/utils.d.ts +30 -0
  28. package/dist/components/BarrageInput/utils.js +41 -0
  29. package/dist/components/BarrageList/BarrageList.js +80 -110
  30. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  31. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  32. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  33. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  34. package/dist/components/BarrageList/BarrageListState.js +106 -0
  35. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  36. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  37. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  38. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  39. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  40. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  41. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  42. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  43. package/dist/components/BarrageList/index.d.ts +0 -36
  44. package/dist/components/CameraButton/index.js +18 -19
  45. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
  46. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  47. package/dist/components/CoHostPanel/BattlePanel.js +11 -11
  48. package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
  49. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  50. package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
  51. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  52. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  53. package/dist/components/CoHostPanel/constants.js +6 -0
  54. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  55. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  56. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  57. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  58. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
  59. package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
  60. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  61. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
  62. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
  63. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
  64. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  65. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
  66. package/dist/components/ContactList/ContactList.js +7 -7
  67. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
  68. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
  69. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
  70. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
  71. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
  72. package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
  73. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
  74. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
  75. package/dist/components/ConversationList/ConversationList.js +4 -4
  76. package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
  77. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
  78. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
  79. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
  80. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
  81. package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
  82. package/dist/components/ConversationList/index.d.ts +30 -30
  83. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  84. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  85. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  86. package/dist/components/LiveList/LiveList.js +23 -23
  87. package/dist/components/LiveList/LiveListH5.js +38 -38
  88. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  89. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  90. package/dist/components/LiveScenePanel/index.js +28 -27
  91. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
  92. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
  93. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  94. package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
  95. package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
  96. package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
  97. package/dist/components/LiveView/PlayerControl/MultiResolution.js +57 -62
  98. package/dist/components/LiveView/PlayerControl/PlayerControl.js +79 -79
  99. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +2 -2
  100. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +164 -209
  101. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +8 -1
  102. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +57 -24
  103. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
  104. package/dist/components/LiveView/i18n/en-US/index.js +2 -2
  105. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
  106. package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
  107. package/dist/components/LiveView/index.js +17 -17
  108. package/dist/components/MessageInput/AttachmentPicker/index.js +1 -1
  109. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
  110. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
  111. package/dist/components/MessageInput/MessageInput.js +1 -1
  112. package/dist/components/MessageInput/MessageInput.vue.d.ts +5 -2
  113. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
  114. package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
  115. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +6 -2
  116. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
  117. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
  118. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
  119. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
  120. package/dist/components/MessageInput/TextEditor/index.js +45 -35
  121. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
  122. package/dist/components/MessageInput/i18n/index.d.ts +4 -0
  123. package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
  124. package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
  125. package/dist/components/MessageInput/index.d.ts +36 -6
  126. package/dist/components/MessageInput/index.js +1 -1
  127. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
  128. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
  129. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
  130. package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
  131. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  132. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
  133. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
  134. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
  135. package/dist/components/MessageList/MessageList.js +8 -6
  136. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  137. package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
  138. package/dist/components/MessageList/i18n/en-US.js +66 -2
  139. package/dist/components/MessageList/i18n/index.d.ts +128 -0
  140. package/dist/components/MessageList/i18n/index.js +6 -6
  141. package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
  142. package/dist/components/MessageList/i18n/zh-CN.js +64 -0
  143. package/dist/components/MessageList/index.d.ts +20 -20
  144. package/dist/components/MicButton/index.js +11 -11
  145. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
  146. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
  147. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
  148. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
  149. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
  150. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
  151. package/dist/components/Search/SearchBar/SearchBar.js +56 -58
  152. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  153. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  154. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  155. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  156. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  157. package/dist/components/StreamView/index.js +25 -33
  158. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  159. package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
  160. package/dist/components/UIKitModal/UIKitModal.js +156 -0
  161. package/dist/components/UIKitModal/index.d.ts +1 -0
  162. package/dist/components/UIKitModal/index.js +4 -0
  163. package/dist/components/{BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -9
  164. package/dist/components/UIKitModal/type.d.ts +21 -0
  165. package/dist/components/UIKitModal/type.js +1 -0
  166. package/dist/components/UserPicker/UserPicker.js +1 -2
  167. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
  168. package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
  169. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
  170. package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
  171. package/dist/components/UserPicker/i18n/en-US.js +2 -1
  172. package/dist/components/UserPicker/i18n/index.d.ts +2 -0
  173. package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
  174. package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
  175. package/dist/components/UserPicker/index.d.ts +2 -2
  176. package/dist/components/UserPicker/type.d.ts +1 -1
  177. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  178. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  179. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  180. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  181. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  182. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  183. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  184. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  185. package/dist/hooks/useAudioControl.d.ts +3 -3
  186. package/dist/hooks/useAudioControl.js +32 -30
  187. package/dist/hooks/useRoomEngine.js +6 -6
  188. package/dist/index-B_-9wgM4.js +64 -0
  189. package/dist/{index-Bm-QfV5o.js → index-DMfTuy0v.js} +574 -631
  190. package/dist/{index-D2OVtqc8.js → index-DV6o6s43.js} +946 -915
  191. package/dist/index.d.ts +3 -1
  192. package/dist/index.js +164 -142
  193. package/dist/report/MetricsKey.d.ts +16 -0
  194. package/dist/report/MetricsKey.js +4 -0
  195. package/dist/report/dataReport.d.ts +12 -0
  196. package/dist/report/dataReport.js +45 -0
  197. package/dist/report/index.d.ts +4 -0
  198. package/dist/report/index.js +6 -0
  199. package/dist/rtc/index.d.ts +5 -43
  200. package/dist/rtc/index.js +48 -48
  201. package/dist/rtc/server.js +45 -40
  202. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  203. package/dist/states/BarrageState/BarrageState.js +80 -0
  204. package/dist/states/BarrageState/index.d.ts +1 -0
  205. package/dist/states/BarrageState/index.js +5 -0
  206. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  207. package/dist/states/BattleState/BattleState.js +203 -0
  208. package/dist/states/BattleState/index.d.ts +1 -0
  209. package/dist/states/BattleState/index.js +4 -0
  210. package/dist/states/CoGuestState.d.ts +24 -94
  211. package/dist/states/CoGuestState.js +297 -189
  212. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  213. package/dist/states/CoHostState/CoHostState.js +135 -131
  214. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  215. package/dist/states/DeviceState/DeviceState.js +314 -0
  216. package/dist/states/DeviceState/index.d.ts +1 -0
  217. package/dist/states/DeviceState/index.js +4 -0
  218. package/dist/states/LiveAudienceState.d.ts +3 -1
  219. package/dist/states/LiveAudienceState.js +106 -63
  220. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  221. package/dist/states/LiveListState/LiveListState.js +285 -0
  222. package/dist/states/LiveListState/index.d.ts +1 -0
  223. package/dist/states/LiveListState/index.js +4 -0
  224. package/dist/states/LiveMonitorState/api/http.js +147 -129
  225. package/dist/states/LiveMonitorState/index.js +67 -62
  226. package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
  227. package/dist/states/LiveSeatState/index.d.ts +46 -11
  228. package/dist/states/LiveSeatState/index.js +34 -15
  229. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  230. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  231. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  232. package/dist/states/LiveSeatState/seatManager.js +131 -29
  233. package/dist/states/LiveSeatState/store.d.ts +5 -5
  234. package/dist/states/LiveSeatState/store.js +12 -10
  235. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  236. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  237. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  238. package/dist/states/LoginState.d.ts +23 -0
  239. package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
  240. package/dist/states/MessageInputState/MessageInputState.js +60 -59
  241. package/dist/states/MessageInputState/utils.d.ts +8 -1
  242. package/dist/states/MessageInputState/utils.js +30 -10
  243. package/dist/states/SeatStore.js +82 -83
  244. package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
  245. package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
  246. package/dist/states/UIKitModalState/index.d.ts +1 -0
  247. package/dist/states/UIKitModalState/index.js +4 -0
  248. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  249. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  250. package/dist/states/VideoMixerState/index.d.ts +1 -0
  251. package/dist/states/VideoMixerState/index.js +4 -0
  252. package/dist/styles/index.css +1 -1
  253. package/dist/types/audience.d.ts +21 -0
  254. package/dist/types/audience.js +4 -1
  255. package/dist/types/battle.d.ts +75 -3
  256. package/dist/types/battle.js +5 -1
  257. package/dist/types/coGuest.d.ts +72 -5
  258. package/dist/types/coGuest.js +4 -2
  259. package/dist/types/device.d.ts +38 -17
  260. package/dist/types/device.js +10 -8
  261. package/dist/types/index.d.ts +2 -2
  262. package/dist/types/index.js +96 -80
  263. package/dist/types/live.d.ts +36 -21
  264. package/dist/types/live.js +6 -4
  265. package/dist/types/seat.d.ts +23 -4
  266. package/dist/types/seat.js +7 -1
  267. package/dist/{useId-CtirfF0W.js → useId-oQ5JZeuH.js} +1 -1
  268. package/dist/utils/call.d.ts +1 -1
  269. package/dist/utils/call.js +78 -79
  270. package/dist/utils/eventCenter.d.ts +88 -0
  271. package/dist/utils/eventCenter.js +161 -0
  272. package/dist/{utils-DaB7eSu5.js → utils-DuzSgmS6.js} +1 -1
  273. package/package.json +4 -3
  274. package/src/chat/server.ts +0 -1
  275. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  276. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  277. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  278. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  279. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  280. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  281. package/src/components/AudioSettingPanel/index.vue +4 -2
  282. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  283. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  284. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  285. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  286. package/src/components/BarrageInput/type.ts +26 -0
  287. package/src/components/BarrageInput/utils.ts +45 -0
  288. package/src/components/BarrageList/BarrageList.vue +61 -117
  289. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  290. package/src/components/BarrageList/BarrageListState.ts +223 -0
  291. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  292. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  293. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  294. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  295. package/src/components/CameraButton/index.vue +0 -1
  296. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
  297. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  298. package/src/components/CoHostPanel/BattlePanel.vue +1 -4
  299. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  300. package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
  301. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  302. package/src/components/CoHostPanel/constants.ts +3 -0
  303. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  304. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  305. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
  306. package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
  307. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
  308. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
  309. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
  310. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
  311. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
  312. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
  313. package/src/components/ContactList/ContactList.vue +1 -1
  314. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
  315. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
  316. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
  317. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
  318. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
  319. package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
  320. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
  321. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
  322. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
  323. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
  324. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
  325. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
  326. package/src/components/ConversationList/ConversationList.vue +2 -2
  327. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
  328. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
  329. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
  330. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
  331. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
  332. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
  333. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
  334. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
  335. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  336. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
  337. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  338. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  339. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  340. package/src/components/LiveList/LiveList.vue +5 -5
  341. package/src/components/LiveList/LiveListH5.vue +6 -6
  342. package/src/components/LiveScenePanel/index.vue +3 -2
  343. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
  344. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
  345. package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
  346. package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
  347. package/src/components/LiveView/PlayerControl/MultiResolution.vue +30 -21
  348. package/src/components/LiveView/PlayerControl/PlayerControl.vue +26 -42
  349. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +253 -455
  350. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +68 -4
  351. package/src/components/LiveView/i18n/en-US/index.ts +2 -2
  352. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
  353. package/src/components/LiveView/index.vue +3 -2
  354. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
  355. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
  356. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  357. package/src/components/MessageInput/MessageInput.vue +3 -1
  358. package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
  359. package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
  360. package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
  361. package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
  362. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
  363. package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
  364. package/src/components/MessageInput/types.d.ts +1 -0
  365. package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
  366. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
  367. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
  368. package/src/components/MessageList/Message/Message.vue +1 -1
  369. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
  370. package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
  371. package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
  372. package/src/components/MessageList/MessageList.vue +2 -0
  373. package/src/components/MessageList/i18n/en-US.ts +66 -0
  374. package/src/components/MessageList/i18n/index.ts +4 -4
  375. package/src/components/MessageList/i18n/zh-CN.ts +66 -0
  376. package/src/components/MicButton/index.vue +3 -3
  377. package/src/components/Search/Search.vue +1 -1
  378. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
  379. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
  380. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
  381. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
  382. package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
  383. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
  384. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
  385. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
  386. package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
  387. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
  388. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
  389. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  390. package/src/components/Search/SearchBar/SearchBar.scss +3 -6
  391. package/src/components/Search/SearchBar/SearchBar.vue +1 -1
  392. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
  393. package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
  394. package/src/components/Search/SearchResults/SearchResults.vue +1 -1
  395. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  396. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
  397. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  398. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
  399. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  400. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  401. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  402. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  403. package/src/components/StreamView/index.vue +28 -14
  404. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  405. package/src/components/UIKitModal/UIKitModal.ts +71 -0
  406. package/src/components/UIKitModal/index.scss +134 -0
  407. package/src/components/UIKitModal/index.ts +1 -0
  408. package/src/components/UIKitModal/index.vue +160 -0
  409. package/src/components/UIKitModal/type.ts +24 -0
  410. package/src/components/UserPicker/UserPicker.vue +1 -1
  411. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
  412. package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
  413. package/src/components/UserPicker/i18n/en-US.ts +1 -0
  414. package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
  415. package/src/components/UserPicker/type.ts +1 -1
  416. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  417. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  418. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  419. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  420. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  421. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  422. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  423. package/src/hooks/useAudioControl.ts +17 -4
  424. package/src/hooks/useRoomEngine.ts +1 -1
  425. package/src/index.ts +3 -0
  426. package/src/report/MetricsKey.ts +16 -0
  427. package/src/report/dataReport.ts +55 -0
  428. package/src/report/index.ts +7 -0
  429. package/src/rtc/index.ts +7 -9
  430. package/src/rtc/server.ts +4 -0
  431. package/src/types/audience.ts +27 -1
  432. package/src/types/battle.ts +87 -4
  433. package/src/types/coGuest.ts +87 -5
  434. package/src/types/device.ts +41 -16
  435. package/src/types/index.ts +2 -2
  436. package/src/types/live.ts +41 -22
  437. package/src/types/seat.ts +28 -4
  438. package/src/utils/call.ts +26 -27
  439. package/src/utils/eventCenter.ts +249 -0
  440. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  441. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  442. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  443. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  444. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  445. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  446. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  447. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  448. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  449. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  450. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  451. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  452. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  453. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  454. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  455. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  456. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  457. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  458. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  459. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  460. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  461. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  462. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  463. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  464. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  465. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  466. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  467. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  468. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  469. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  470. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  471. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  472. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  473. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  474. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  475. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  476. package/dist/states/BarrageListState/index.d.ts +0 -1
  477. package/dist/states/BarrageListState/index.js +0 -4
  478. package/dist/states/BattleState.js +0 -117
  479. package/dist/states/DeviceState.js +0 -296
  480. package/dist/states/LiveState/index.js +0 -254
  481. package/dist/states/VideoMixerState.js +0 -260
  482. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  483. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  484. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  485. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  486. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  487. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  488. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  489. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  490. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  491. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  492. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  493. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  494. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  495. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  496. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  497. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  498. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
@@ -1,9 +1,9 @@
1
- import { inject as Ee, provide as be, Fragment as we, effectScope as ue, getCurrentScope as Oe, onScopeDispose as Se, onBeforeUnmount as Ae, getCurrentInstance as x, computed as S, shallowRef as ae, watchEffect as L, readonly as Pe, customRef as _e, toValue as w, watch as T, isRef as K, reactive as W, unref as P, toRefs as G, ref as b, nextTick as M, onMounted as Ce, toHandlerKey as De, camelize as Te, onUnmounted as le, defineComponent as B, h as R, Comment as Le, mergeProps as Me, cloneVNode as Fe, createBlock as X, openBlock as Q, normalizeStyle as Ne, withCtx as ce, renderSlot as Z, createCommentVNode as Ie, Teleport as xe } from "vue";
1
+ import { inject as Ee, provide as be, Fragment as Oe, effectScope as ue, getCurrentScope as we, onScopeDispose as Se, onBeforeUnmount as Pe, getCurrentInstance as x, computed as P, shallowRef as ae, watchEffect as L, readonly as Ae, customRef as _e, toValue as O, watch as T, isRef as K, reactive as W, unref as A, toRefs as G, ref as b, nextTick as M, onMounted as Ce, toHandlerKey as De, camelize as Te, onUnmounted as le, defineComponent as B, h as R, Comment as Le, mergeProps as Me, cloneVNode as Fe, createBlock as X, openBlock as Q, normalizeStyle as Ne, withCtx as ce, renderSlot as Z, createCommentVNode as Ie, Teleport as xe } from "vue";
2
2
  function Be(e, t) {
3
3
  const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
4
4
  return [(s) => {
5
- const a = Ee(r, s);
6
- if (a || a === null) return a;
5
+ const u = Ee(r, s);
6
+ if (u || u === null) return u;
7
7
  throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
8
8
  }, (s) => (be(r, s), s)];
9
9
  }
@@ -21,11 +21,14 @@ function fe(e, t, n) {
21
21
  });
22
22
  t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(o);
23
23
  }
24
+ function ke(e) {
25
+ return e == null;
26
+ }
24
27
  function ee(e) {
25
- return e ? e.flatMap((t) => t.type === we ? ee(t.children) : [t]) : [];
28
+ return e ? e.flatMap((t) => t.type === Oe ? ee(t.children) : [t]) : [];
26
29
  }
27
- const [ke] = Be("ConfigProvider");
28
- function Ct(e, t) {
30
+ const [je] = Be("ConfigProvider");
31
+ function Dt(e, t) {
29
32
  var n;
30
33
  const r = ae();
31
34
  return L(() => {
@@ -33,29 +36,29 @@ function Ct(e, t) {
33
36
  }, {
34
37
  ...t,
35
38
  flush: (n = void 0) != null ? n : "sync"
36
- }), Pe(r);
39
+ }), Ae(r);
37
40
  }
38
41
  function te(e) {
39
- return Oe() ? (Se(e), !0) : !1;
42
+ return we() ? (Se(e), !0) : !1;
40
43
  }
41
44
  function Ue(e) {
42
45
  let t = !1, n;
43
46
  const r = ue(!0);
44
47
  return (...o) => (t || (n = r.run(() => e(...o)), t = !0), n);
45
48
  }
46
- function je(e) {
49
+ function Re(e) {
47
50
  let t = 0, n, r;
48
51
  const o = () => {
49
52
  t -= 1, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
50
53
  };
51
54
  return (...i) => (t += 1, r || (r = ue(!0), n = r.run(() => e(...i))), te(o), n);
52
55
  }
53
- function Re(e) {
56
+ function We(e) {
54
57
  if (!K(e))
55
58
  return W(e);
56
59
  const t = new Proxy({}, {
57
60
  get(n, r, o) {
58
- return P(Reflect.get(e.value, r, o));
61
+ return A(Reflect.get(e.value, r, o));
59
62
  },
60
63
  set(n, r, o) {
61
64
  return K(e.value[r]) && !K(o) ? e.value[r].value = o : e.value[r] = o, !0;
@@ -78,46 +81,46 @@ function Re(e) {
78
81
  });
79
82
  return W(t);
80
83
  }
81
- function We(e) {
82
- return Re(S(e));
84
+ function $e(e) {
85
+ return We(P(e));
83
86
  }
84
- function Dt(e, ...t) {
87
+ function Tt(e, ...t) {
85
88
  const n = t.flat(), r = n[0];
86
- return We(() => Object.fromEntries(typeof r == "function" ? Object.entries(G(e)).filter(([o, i]) => !r(w(i), o)) : Object.entries(G(e)).filter((o) => !n.includes(o[0]))));
89
+ return $e(() => Object.fromEntries(typeof r == "function" ? Object.entries(G(e)).filter(([o, i]) => !r(O(i), o)) : Object.entries(G(e)).filter((o) => !n.includes(o[0]))));
87
90
  }
88
- const F = typeof window < "u" && typeof document < "u", $e = (e) => typeof e < "u", Ke = Object.prototype.toString, qe = (e) => Ke.call(e) === "[object Object]", re = /* @__PURE__ */ He();
89
- function He() {
91
+ const F = typeof window < "u" && typeof document < "u", Ke = (e) => typeof e < "u", qe = Object.prototype.toString, He = (e) => qe.call(e) === "[object Object]", re = /* @__PURE__ */ Ve();
92
+ function Ve() {
90
93
  var e, t;
91
94
  return F && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
92
95
  }
93
- function Ve(e) {
96
+ function ze(e) {
94
97
  return x();
95
98
  }
96
99
  function q(e) {
97
100
  return Array.isArray(e) ? e : [e];
98
101
  }
99
- function Tt(e, t = 1e4) {
102
+ function Lt(e, t = 1e4) {
100
103
  return _e((n, r) => {
101
- let o = w(e), i;
104
+ let o = O(e), i;
102
105
  const s = () => setTimeout(() => {
103
- o = w(e), r();
104
- }, w(t));
106
+ o = O(e), r();
107
+ }, O(t));
105
108
  return te(() => {
106
109
  clearTimeout(i);
107
110
  }), {
108
111
  get() {
109
112
  return n(), o;
110
113
  },
111
- set(a) {
112
- o = a, r(), clearTimeout(i), i = s();
114
+ set(u) {
115
+ o = u, r(), clearTimeout(i), i = s();
113
116
  }
114
117
  };
115
118
  });
116
119
  }
117
- function ze(e, t) {
118
- Ve() && Ae(e, t);
120
+ function Ye(e, t) {
121
+ ze() && Pe(e, t);
119
122
  }
120
- function Ye(e, t, n) {
123
+ function Ge(e, t, n) {
121
124
  return T(
122
125
  e,
123
126
  t,
@@ -130,34 +133,34 @@ function Ye(e, t, n) {
130
133
  const ne = F ? window : void 0;
131
134
  function $(e) {
132
135
  var t;
133
- const n = w(e);
136
+ const n = O(e);
134
137
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
135
138
  }
136
139
  function de(...e) {
137
140
  const t = [], n = () => {
138
- t.forEach((a) => a()), t.length = 0;
139
- }, r = (a, c, v, l) => (a.addEventListener(c, v, l), () => a.removeEventListener(c, v, l)), o = S(() => {
140
- const a = q(w(e[0])).filter((c) => c != null);
141
- return a.every((c) => typeof c != "string") ? a : void 0;
142
- }), i = Ye(
141
+ t.forEach((u) => u()), t.length = 0;
142
+ }, r = (u, c, d, l) => (u.addEventListener(c, d, l), () => u.removeEventListener(c, d, l)), o = P(() => {
143
+ const u = q(O(e[0])).filter((c) => c != null);
144
+ return u.every((c) => typeof c != "string") ? u : void 0;
145
+ }), i = Ge(
143
146
  () => {
144
- var a, c;
147
+ var u, c;
145
148
  return [
146
- (c = (a = o.value) == null ? void 0 : a.map((v) => $(v))) != null ? c : [ne].filter((v) => v != null),
147
- q(w(o.value ? e[1] : e[0])),
148
- q(P(o.value ? e[2] : e[1])),
149
+ (c = (u = o.value) == null ? void 0 : u.map((d) => $(d))) != null ? c : [ne].filter((d) => d != null),
150
+ q(O(o.value ? e[1] : e[0])),
151
+ q(A(o.value ? e[2] : e[1])),
149
152
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
150
- w(o.value ? e[3] : e[2])
153
+ O(o.value ? e[3] : e[2])
151
154
  ];
152
155
  },
153
- ([a, c, v, l]) => {
154
- if (n(), !(a != null && a.length) || !(c != null && c.length) || !(v != null && v.length))
156
+ ([u, c, d, l]) => {
157
+ if (n(), !(u != null && u.length) || !(c != null && c.length) || !(d != null && d.length))
155
158
  return;
156
- const u = qe(l) ? { ...l } : l;
159
+ const a = He(l) ? { ...l } : l;
157
160
  t.push(
158
- ...a.flatMap(
159
- (d) => c.flatMap(
160
- (p) => v.map((f) => r(d, p, f, u))
161
+ ...u.flatMap(
162
+ (v) => c.flatMap(
163
+ (f) => d.map((y) => r(v, f, y, a))
161
164
  )
162
165
  )
163
166
  );
@@ -168,68 +171,68 @@ function de(...e) {
168
171
  };
169
172
  return te(n), s;
170
173
  }
171
- function Ge() {
174
+ function Je() {
172
175
  const e = ae(!1), t = x();
173
176
  return t && Ce(() => {
174
177
  e.value = !0;
175
178
  }, t), e;
176
179
  }
177
- function Je(e) {
180
+ function Xe(e) {
178
181
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
179
182
  }
180
- function Xe(...e) {
183
+ function Qe(...e) {
181
184
  let t, n, r = {};
182
185
  e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
183
186
  const {
184
187
  target: o = ne,
185
188
  eventName: i = "keydown",
186
189
  passive: s = !1,
187
- dedupe: a = !1
188
- } = r, c = Je(t);
190
+ dedupe: u = !1
191
+ } = r, c = Xe(t);
189
192
  return de(o, i, (l) => {
190
- l.repeat && w(a) || c(l) && n(l);
193
+ l.repeat && O(u) || c(l) && n(l);
191
194
  }, s);
192
195
  }
193
- function Qe(e) {
196
+ function Ze(e) {
194
197
  return JSON.parse(JSON.stringify(e));
195
198
  }
196
- function Lt(e, t, n, r = {}) {
199
+ function Mt(e, t, n, r = {}) {
197
200
  var o, i, s;
198
201
  const {
199
- clone: a = !1,
202
+ clone: u = !1,
200
203
  passive: c = !1,
201
- eventName: v,
204
+ eventName: d,
202
205
  deep: l = !1,
203
- defaultValue: u,
204
- shouldEmit: d
205
- } = r, p = x(), f = n || (p == null ? void 0 : p.emit) || ((o = p == null ? void 0 : p.$emit) == null ? void 0 : o.bind(p)) || ((s = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(p == null ? void 0 : p.proxy));
206
- let h = v;
207
- t || (t = "modelValue"), h = h || `update:${t.toString()}`;
208
- const y = (E) => a ? typeof a == "function" ? a(E) : Qe(E) : E, m = () => $e(e[t]) ? y(e[t]) : u, g = (E) => {
209
- d ? d(E) && f(h, E) : f(h, E);
206
+ defaultValue: a,
207
+ shouldEmit: v
208
+ } = r, f = x(), y = n || (f == null ? void 0 : f.emit) || ((o = f == null ? void 0 : f.$emit) == null ? void 0 : o.bind(f)) || ((s = (i = f == null ? void 0 : f.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(f == null ? void 0 : f.proxy));
209
+ let p = d;
210
+ t || (t = "modelValue"), p = p || `update:${t.toString()}`;
211
+ const g = (E) => u ? typeof u == "function" ? u(E) : Ze(E) : E, m = () => Ke(e[t]) ? g(e[t]) : a, h = (E) => {
212
+ v ? v(E) && y(p, E) : y(p, E);
210
213
  };
211
214
  if (c) {
212
215
  const E = m(), _ = b(E);
213
216
  let C = !1;
214
217
  return T(
215
218
  () => e[t],
216
- (O) => {
217
- C || (C = !0, _.value = y(O), M(() => C = !1));
219
+ (w) => {
220
+ C || (C = !0, _.value = g(w), M(() => C = !1));
218
221
  }
219
222
  ), T(
220
223
  _,
221
- (O) => {
222
- !C && (O !== e[t] || l) && g(O);
224
+ (w) => {
225
+ !C && (w !== e[t] || l) && h(w);
223
226
  },
224
227
  { deep: l }
225
228
  ), _;
226
229
  } else
227
- return S({
230
+ return P({
228
231
  get() {
229
232
  return m();
230
233
  },
231
234
  set(E) {
232
- g(E);
235
+ h(E);
233
236
  }
234
237
  });
235
238
  }
@@ -256,40 +259,40 @@ function J(e, t, n = ".", r) {
256
259
  }
257
260
  return o;
258
261
  }
259
- function Ze(e) {
262
+ function et(e) {
260
263
  return (...t) => (
261
264
  // eslint-disable-next-line unicorn/no-array-reduce
262
265
  t.reduce((n, r) => J(n, r, "", e), {})
263
266
  );
264
267
  }
265
- const et = Ze(), tt = je(() => {
266
- const e = b(/* @__PURE__ */ new Map()), t = b(), n = S(() => {
268
+ const tt = et(), nt = Re(() => {
269
+ const e = b(/* @__PURE__ */ new Map()), t = b(), n = P(() => {
267
270
  for (const s of e.value.values()) if (s) return !0;
268
271
  return !1;
269
- }), r = ke({ scrollBody: b(!0) });
272
+ }), r = je({ scrollBody: b(!0) });
270
273
  let o = null;
271
274
  const i = () => {
272
275
  document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", re && (o == null || o()), t.value = void 0;
273
276
  };
274
- return T(n, (s, a) => {
275
- var u;
277
+ return T(n, (s, u) => {
278
+ var a;
276
279
  if (!F) return;
277
280
  if (!s) {
278
- a && i();
281
+ u && i();
279
282
  return;
280
283
  }
281
284
  t.value === void 0 && (t.value = document.body.style.overflow);
282
- const c = window.innerWidth - document.documentElement.clientWidth, v = {
285
+ const c = window.innerWidth - document.documentElement.clientWidth, d = {
283
286
  padding: c,
284
287
  margin: 0
285
- }, l = (u = r.scrollBody) != null && u.value ? typeof r.scrollBody.value == "object" ? et({
288
+ }, l = (a = r.scrollBody) != null && a.value ? typeof r.scrollBody.value == "object" ? tt({
286
289
  padding: r.scrollBody.value.padding === !0 ? c : r.scrollBody.value.padding,
287
290
  margin: r.scrollBody.value.margin === !0 ? c : r.scrollBody.value.margin
288
- }, v) : v : {
291
+ }, d) : d : {
289
292
  padding: 0,
290
293
  margin: 0
291
294
  };
292
- c > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), re && (o = de(document, "touchmove", (d) => nt(d), { passive: !1 })), M(() => {
295
+ c > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), re && (o = de(document, "touchmove", (v) => rt(v), { passive: !1 })), M(() => {
293
296
  document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
294
297
  });
295
298
  }, {
@@ -297,14 +300,14 @@ const et = Ze(), tt = je(() => {
297
300
  flush: "sync"
298
301
  }), e;
299
302
  });
300
- function Mt(e) {
301
- const t = Math.random().toString(36).substring(2, 7), n = tt();
303
+ function Ft(e) {
304
+ const t = Math.random().toString(36).substring(2, 7), n = nt();
302
305
  n.value.set(t, e ?? !1);
303
- const r = S({
306
+ const r = P({
304
307
  get: () => n.value.get(t) ?? !1,
305
308
  set: (o) => n.value.set(t, o)
306
309
  });
307
- return ze(() => {
310
+ return Ye(() => {
308
311
  n.value.delete(t);
309
312
  }), r;
310
313
  }
@@ -316,20 +319,20 @@ function ve(e) {
316
319
  return !(n instanceof Element) || n.tagName === "BODY" ? !1 : ve(n);
317
320
  }
318
321
  }
319
- function nt(e) {
322
+ function rt(e) {
320
323
  const t = e || window.event, n = t.target;
321
324
  return n instanceof Element && ve(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
322
325
  }
323
- function Ft(e) {
326
+ function Nt(e) {
324
327
  const t = x(), n = t == null ? void 0 : t.type.emits, r = {};
325
328
  return n != null && n.length || console.warn(`No emitted event found. Please check component: ${t == null ? void 0 : t.type.__name}`), n == null || n.forEach((o) => {
326
329
  r[De(Te(o))] = (...i) => e(o, ...i);
327
330
  }), r;
328
331
  }
329
332
  function pe() {
330
- const e = x(), t = b(), n = S(() => {
331
- var s, a;
332
- return ["#text", "#comment"].includes((s = t.value) == null ? void 0 : s.$el.nodeName) ? (a = t.value) == null ? void 0 : a.$el.nextElementSibling : $(t);
333
+ const e = x(), t = b(), n = P(() => {
334
+ var s, u;
335
+ return ["#text", "#comment"].includes((s = t.value) == null ? void 0 : s.$el.nodeName) ? (u = t.value) == null ? void 0 : u.$el.nextElementSibling : $(t);
333
336
  }), r = Object.assign({}, e.exposed), o = {};
334
337
  for (const s in e.props) Object.defineProperty(o, s, {
335
338
  enumerable: !0,
@@ -347,11 +350,19 @@ function pe() {
347
350
  get: () => e.vnode.el
348
351
  }), e.exposed = o;
349
352
  function i(s) {
350
- t.value = s, s && (Object.defineProperty(o, "$el", {
353
+ if (t.value = s, !!s && (Object.defineProperty(o, "$el", {
351
354
  enumerable: !0,
352
355
  configurable: !0,
353
356
  get: () => s instanceof Element ? s : s.$el
354
- }), e.exposed = o);
357
+ }), !(s instanceof Element) && !Object.hasOwn(s, "$el"))) {
358
+ const u = s.$.exposed, c = Object.assign({}, o);
359
+ for (const d in u) Object.defineProperty(c, d, {
360
+ enumerable: !0,
361
+ configurable: !0,
362
+ get: () => u[d]
363
+ });
364
+ e.exposed = c;
365
+ }
355
366
  }
356
367
  return {
357
368
  forwardRef: i,
@@ -359,14 +370,14 @@ function pe() {
359
370
  currentElement: n
360
371
  };
361
372
  }
362
- var rt = function(e) {
373
+ var ot = function(e) {
363
374
  if (typeof document > "u")
364
375
  return null;
365
376
  var t = Array.isArray(e) ? e[0] : e;
366
377
  return t.ownerDocument.body;
367
- }, N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), U = {}, V = 0, me = function(e) {
378
+ }, N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), j = {}, V = 0, me = function(e) {
368
379
  return e && (e.host || me(e.parentNode));
369
- }, ot = function(e, t) {
380
+ }, it = function(e, t) {
370
381
  return t.map(function(n) {
371
382
  if (e.contains(n))
372
383
  return n;
@@ -375,48 +386,48 @@ var rt = function(e) {
375
386
  }).filter(function(n) {
376
387
  return !!n;
377
388
  });
378
- }, it = function(e, t, n, r) {
379
- var o = ot(t, Array.isArray(e) ? e : [e]);
380
- U[n] || (U[n] = /* @__PURE__ */ new WeakMap());
381
- var i = U[n], s = [], a = /* @__PURE__ */ new Set(), c = new Set(o), v = function(u) {
382
- !u || a.has(u) || (a.add(u), v(u.parentNode));
389
+ }, st = function(e, t, n, r) {
390
+ var o = it(t, Array.isArray(e) ? e : [e]);
391
+ j[n] || (j[n] = /* @__PURE__ */ new WeakMap());
392
+ var i = j[n], s = [], u = /* @__PURE__ */ new Set(), c = new Set(o), d = function(a) {
393
+ !a || u.has(a) || (u.add(a), d(a.parentNode));
383
394
  };
384
- o.forEach(v);
385
- var l = function(u) {
386
- !u || c.has(u) || Array.prototype.forEach.call(u.children, function(d) {
387
- if (a.has(d))
388
- l(d);
395
+ o.forEach(d);
396
+ var l = function(a) {
397
+ !a || c.has(a) || Array.prototype.forEach.call(a.children, function(v) {
398
+ if (u.has(v))
399
+ l(v);
389
400
  else
390
401
  try {
391
- var p = d.getAttribute(r), f = p !== null && p !== "false", h = (N.get(d) || 0) + 1, y = (i.get(d) || 0) + 1;
392
- N.set(d, h), i.set(d, y), s.push(d), h === 1 && f && k.set(d, !0), y === 1 && d.setAttribute(n, "true"), f || d.setAttribute(r, "true");
402
+ var f = v.getAttribute(r), y = f !== null && f !== "false", p = (N.get(v) || 0) + 1, g = (i.get(v) || 0) + 1;
403
+ N.set(v, p), i.set(v, g), s.push(v), p === 1 && y && k.set(v, !0), g === 1 && v.setAttribute(n, "true"), y || v.setAttribute(r, "true");
393
404
  } catch (m) {
394
- console.error("aria-hidden: cannot operate on ", d, m);
405
+ console.error("aria-hidden: cannot operate on ", v, m);
395
406
  }
396
407
  });
397
408
  };
398
- return l(t), a.clear(), V++, function() {
399
- s.forEach(function(u) {
400
- var d = N.get(u) - 1, p = i.get(u) - 1;
401
- N.set(u, d), i.set(u, p), d || (k.has(u) || u.removeAttribute(r), k.delete(u)), p || u.removeAttribute(n);
402
- }), V--, V || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), U = {});
409
+ return l(t), u.clear(), V++, function() {
410
+ s.forEach(function(a) {
411
+ var v = N.get(a) - 1, f = i.get(a) - 1;
412
+ N.set(a, v), i.set(a, f), v || (k.has(a) || a.removeAttribute(r), k.delete(a)), f || a.removeAttribute(n);
413
+ }), V--, V || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), j = {});
403
414
  };
404
- }, st = function(e, t, n) {
415
+ }, ut = function(e, t, n) {
405
416
  n === void 0 && (n = "data-aria-hidden");
406
- var r = Array.from(Array.isArray(e) ? e : [e]), o = rt(e);
407
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), it(r, o, n, "aria-hidden")) : function() {
417
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = ot(e);
418
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), st(r, o, n, "aria-hidden")) : function() {
408
419
  return null;
409
420
  };
410
421
  };
411
- function Nt(e) {
422
+ function It(e) {
412
423
  let t;
413
424
  T(() => $(e), (n) => {
414
- n ? t = st(n) : t && t();
425
+ n ? t = ut(n) : t && t();
415
426
  }), le(() => {
416
427
  t && t();
417
428
  });
418
429
  }
419
- function ut(e, t) {
430
+ function at(e, t) {
420
431
  const n = b(e);
421
432
  function r(i) {
422
433
  return t[n.value][i] ?? n.value;
@@ -428,11 +439,11 @@ function ut(e, t) {
428
439
  }
429
440
  };
430
441
  }
431
- function at(e, t) {
432
- var y;
442
+ function lt(e, t) {
443
+ var g;
433
444
  const n = b({}), r = b("none"), o = b(e), i = e.value ? "mounted" : "unmounted";
434
445
  let s;
435
- const a = ((y = t.value) == null ? void 0 : y.ownerDocument.defaultView) ?? ne, { state: c, dispatch: v } = ut(i, {
446
+ const u = ((g = t.value) == null ? void 0 : g.ownerDocument.defaultView) ?? ne, { state: c, dispatch: d } = at(i, {
436
447
  mounted: {
437
448
  UNMOUNT: "unmounted",
438
449
  ANIMATION_OUT: "unmountSuspended"
@@ -443,49 +454,49 @@ function at(e, t) {
443
454
  },
444
455
  unmounted: { MOUNT: "mounted" }
445
456
  }), l = (m) => {
446
- var g;
457
+ var h;
447
458
  if (F) {
448
459
  const E = new CustomEvent(m, {
449
460
  bubbles: !1,
450
461
  cancelable: !1
451
462
  });
452
- (g = t.value) == null || g.dispatchEvent(E);
463
+ (h = t.value) == null || h.dispatchEvent(E);
453
464
  }
454
465
  };
455
- T(e, async (m, g) => {
466
+ T(e, async (m, h) => {
456
467
  var _;
457
- const E = g !== m;
468
+ const E = h !== m;
458
469
  if (await M(), E) {
459
- const C = r.value, O = j(t.value);
460
- m ? (v("MOUNT"), l("enter"), O === "none" && l("after-enter")) : O === "none" || O === "undefined" || ((_ = n.value) == null ? void 0 : _.display) === "none" ? (v("UNMOUNT"), l("leave"), l("after-leave")) : g && C !== O ? (v("ANIMATION_OUT"), l("leave")) : (v("UNMOUNT"), l("after-leave"));
470
+ const C = r.value, w = U(t.value);
471
+ m ? (d("MOUNT"), l("enter"), w === "none" && l("after-enter")) : w === "none" || w === "undefined" || ((_ = n.value) == null ? void 0 : _.display) === "none" ? (d("UNMOUNT"), l("leave"), l("after-leave")) : h && C !== w ? (d("ANIMATION_OUT"), l("leave")) : (d("UNMOUNT"), l("after-leave"));
461
472
  }
462
473
  }, { immediate: !0 });
463
- const u = (m) => {
464
- const g = j(t.value), E = g.includes(CSS.escape(m.animationName)), _ = c.value === "mounted" ? "enter" : "leave";
465
- if (m.target === t.value && E && (l(`after-${_}`), v("ANIMATION_END"), !o.value)) {
474
+ const a = (m) => {
475
+ const h = U(t.value), E = h.includes(CSS.escape(m.animationName)), _ = c.value === "mounted" ? "enter" : "leave";
476
+ if (m.target === t.value && E && (l(`after-${_}`), d("ANIMATION_END"), !o.value)) {
466
477
  const C = t.value.style.animationFillMode;
467
- t.value.style.animationFillMode = "forwards", s = a == null ? void 0 : a.setTimeout(() => {
468
- var O;
469
- ((O = t.value) == null ? void 0 : O.style.animationFillMode) === "forwards" && (t.value.style.animationFillMode = C);
478
+ t.value.style.animationFillMode = "forwards", s = u == null ? void 0 : u.setTimeout(() => {
479
+ var w;
480
+ ((w = t.value) == null ? void 0 : w.style.animationFillMode) === "forwards" && (t.value.style.animationFillMode = C);
470
481
  });
471
482
  }
472
- m.target === t.value && g === "none" && v("ANIMATION_END");
473
- }, d = (m) => {
474
- m.target === t.value && (r.value = j(t.value));
475
- }, p = T(t, (m, g) => {
476
- m ? (n.value = getComputedStyle(m), m.addEventListener("animationstart", d), m.addEventListener("animationcancel", u), m.addEventListener("animationend", u)) : (v("ANIMATION_END"), s !== void 0 && (a == null || a.clearTimeout(s)), g == null || g.removeEventListener("animationstart", d), g == null || g.removeEventListener("animationcancel", u), g == null || g.removeEventListener("animationend", u));
477
- }, { immediate: !0 }), f = T(c, () => {
478
- const m = j(t.value);
483
+ m.target === t.value && h === "none" && d("ANIMATION_END");
484
+ }, v = (m) => {
485
+ m.target === t.value && (r.value = U(t.value));
486
+ }, f = T(t, (m, h) => {
487
+ m ? (n.value = getComputedStyle(m), m.addEventListener("animationstart", v), m.addEventListener("animationcancel", a), m.addEventListener("animationend", a)) : (d("ANIMATION_END"), s !== void 0 && (u == null || u.clearTimeout(s)), h == null || h.removeEventListener("animationstart", v), h == null || h.removeEventListener("animationcancel", a), h == null || h.removeEventListener("animationend", a));
488
+ }, { immediate: !0 }), y = T(c, () => {
489
+ const m = U(t.value);
479
490
  r.value = c.value === "mounted" ? m : "none";
480
491
  });
481
492
  return le(() => {
482
- p(), f();
483
- }), { isPresent: S(() => ["mounted", "unmountSuspended"].includes(c.value)) };
493
+ f(), y();
494
+ }), { isPresent: P(() => ["mounted", "unmountSuspended"].includes(c.value)) };
484
495
  }
485
- function j(e) {
496
+ function U(e) {
486
497
  return e && getComputedStyle(e).animationName || "none";
487
498
  }
488
- var It = B({
499
+ var xt = B({
489
500
  name: "Presence",
490
501
  props: {
491
502
  present: {
@@ -496,49 +507,49 @@ var It = B({
496
507
  },
497
508
  slots: {},
498
509
  setup(e, { slots: t, expose: n }) {
499
- var v;
500
- const { present: r, forceMount: o } = G(e), i = b(), { isPresent: s } = at(r, i);
510
+ var d;
511
+ const { present: r, forceMount: o } = G(e), i = b(), { isPresent: s } = lt(r, i);
501
512
  n({ present: s });
502
- let a = t.default({ present: s.value });
503
- a = ee(a || []);
513
+ let u = t.default({ present: s.value });
514
+ u = ee(u || []);
504
515
  const c = x();
505
- if (a && (a == null ? void 0 : a.length) > 1) {
506
- const l = (v = c == null ? void 0 : c.parent) != null && v.type.name ? `<${c.parent.type.name} />` : "component";
516
+ if (u && (u == null ? void 0 : u.length) > 1) {
517
+ const l = (d = c == null ? void 0 : c.parent) != null && d.type.name ? `<${c.parent.type.name} />` : "component";
507
518
  throw new Error([
508
519
  `Detected an invalid children for \`${l}\` for \`Presence\` component.`,
509
520
  "",
510
521
  "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
511
522
  "You can apply a few solutions:",
512
- ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((u) => ` - ${u}`).join(`
523
+ ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((a) => ` - ${a}`).join(`
513
524
  `)
514
525
  ].join(`
515
526
  `));
516
527
  }
517
528
  return () => o.value || r.value || s.value ? R(t.default({ present: s.value })[0], { ref: (l) => {
518
- const u = $(l);
519
- return typeof (u == null ? void 0 : u.hasAttribute) > "u" || (u != null && u.hasAttribute("data-reka-popper-content-wrapper") ? i.value = u.firstElementChild : i.value = u), u;
529
+ const a = $(l);
530
+ return typeof (a == null ? void 0 : a.hasAttribute) > "u" || (a != null && a.hasAttribute("data-reka-popper-content-wrapper") ? i.value = a.firstElementChild : i.value = a), a;
520
531
  } }) : null;
521
532
  }
522
533
  });
523
- const lt = B({
534
+ const ct = B({
524
535
  name: "PrimitiveSlot",
525
536
  inheritAttrs: !1,
526
537
  setup(e, { attrs: t, slots: n }) {
527
538
  return () => {
528
539
  var c;
529
540
  if (!n.default) return null;
530
- const r = ee(n.default()), o = r.findIndex((v) => v.type !== Le);
541
+ const r = ee(n.default()), o = r.findIndex((d) => d.type !== Le);
531
542
  if (o === -1) return r;
532
543
  const i = r[o];
533
544
  (c = i.props) == null || delete c.ref;
534
- const s = i.props ? Me(t, i.props) : t, a = Fe({
545
+ const s = i.props ? Me(t, i.props) : t, u = Fe({
535
546
  ...i,
536
547
  props: {}
537
548
  }, s);
538
- return r.length === 1 ? a : (r[o] = a, r);
549
+ return r.length === 1 ? u : (r[o] = u, r);
539
550
  };
540
551
  }
541
- }), ct = [
552
+ }), ft = [
542
553
  "area",
543
554
  "img",
544
555
  "input"
@@ -557,72 +568,73 @@ const lt = B({
557
568
  },
558
569
  setup(e, { attrs: t, slots: n }) {
559
570
  const r = e.asChild ? "template" : e.as;
560
- return typeof r == "string" && ct.includes(r) ? () => R(r, t) : r !== "template" ? () => R(e.as, t, { default: n.default }) : () => R(lt, t, { default: n.default });
571
+ return typeof r == "string" && ft.includes(r) ? () => R(r, t) : r !== "template" ? () => R(e.as, t, { default: n.default }) : () => R(ct, t, { default: n.default });
561
572
  }
562
- }), ft = "dismissableLayer.pointerDownOutside", dt = "dismissableLayer.focusOutside";
573
+ }), dt = "dismissableLayer.pointerDownOutside", vt = "dismissableLayer.focusOutside";
563
574
  function he(e, t) {
564
575
  const n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), o = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
565
576
  return !!(n && (r === n || o.indexOf(r) < o.indexOf(n)));
566
577
  }
567
- function vt(e, t, n = !0) {
578
+ function pt(e, t, n = !0) {
568
579
  var s;
569
580
  const r = ((s = t == null ? void 0 : t.value) == null ? void 0 : s.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), o = b(!1), i = b(() => {
570
581
  });
571
- return L((a) => {
572
- if (!F || !w(n)) return;
582
+ return L((u) => {
583
+ if (!F || !O(n)) return;
573
584
  const c = async (l) => {
574
- const u = l.target;
575
- if (!(!(t != null && t.value) || !u)) {
576
- if (he(t.value, u)) {
585
+ const a = l.target;
586
+ if (!(!(t != null && t.value) || !a)) {
587
+ if (he(t.value, a)) {
577
588
  o.value = !1;
578
589
  return;
579
590
  }
580
591
  if (l.target && !o.value) {
581
- let p = function() {
582
- fe(ft, e, d);
592
+ let f = function() {
593
+ fe(dt, e, v);
583
594
  };
584
- const d = { originalEvent: l };
585
- l.pointerType === "touch" ? (r.removeEventListener("click", i.value), i.value = p, r.addEventListener("click", i.value, { once: !0 })) : p();
595
+ const v = { originalEvent: l };
596
+ l.pointerType === "touch" ? (r.removeEventListener("click", i.value), i.value = f, r.addEventListener("click", i.value, { once: !0 })) : f();
586
597
  } else r.removeEventListener("click", i.value);
587
598
  o.value = !1;
588
599
  }
589
- }, v = window.setTimeout(() => {
600
+ }, d = window.setTimeout(() => {
590
601
  r.addEventListener("pointerdown", c);
591
602
  }, 0);
592
- a(() => {
593
- window.clearTimeout(v), r.removeEventListener("pointerdown", c), r.removeEventListener("click", i.value);
603
+ u(() => {
604
+ window.clearTimeout(d), r.removeEventListener("pointerdown", c), r.removeEventListener("click", i.value);
594
605
  });
595
606
  }), { onPointerDownCapture: () => {
596
- w(n) && (o.value = !0);
607
+ O(n) && (o.value = !0);
597
608
  } };
598
609
  }
599
- function pt(e, t, n = !0) {
610
+ function mt(e, t, n = !0) {
600
611
  var i;
601
612
  const r = ((i = t == null ? void 0 : t.value) == null ? void 0 : i.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), o = b(!1);
602
613
  return L((s) => {
603
- if (!F || !w(n)) return;
604
- const a = async (c) => {
614
+ if (!F || !O(n)) return;
615
+ const u = async (c) => {
605
616
  if (!(t != null && t.value)) return;
606
617
  await M(), await M();
607
- const v = c.target;
608
- !t.value || !v || he(t.value, v) || c.target && !o.value && fe(dt, e, { originalEvent: c });
618
+ const d = c.target;
619
+ !t.value || !d || he(t.value, d) || c.target && !o.value && fe(vt, e, { originalEvent: c });
609
620
  };
610
- r.addEventListener("focusin", a), s(() => r.removeEventListener("focusin", a));
621
+ r.addEventListener("focusin", u), s(() => r.removeEventListener("focusin", u));
611
622
  }), {
612
623
  onFocusCapture: () => {
613
- w(n) && (o.value = !0);
624
+ O(n) && (o.value = !0);
614
625
  },
615
626
  onBlurCapture: () => {
616
- w(n) && (o.value = !1);
627
+ O(n) && (o.value = !1);
617
628
  }
618
629
  };
619
630
  }
620
- const A = W({
631
+ const S = W({
621
632
  layersRoot: /* @__PURE__ */ new Set(),
622
633
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
634
+ originalBodyPointerEvents: void 0,
623
635
  branches: /* @__PURE__ */ new Set()
624
636
  });
625
- var mt = /* @__PURE__ */ B({
637
+ var yt = /* @__PURE__ */ B({
626
638
  __name: "DismissableLayer",
627
639
  props: {
628
640
  disableOutsidePointerEvents: {
@@ -647,39 +659,37 @@ var mt = /* @__PURE__ */ B({
647
659
  "dismiss"
648
660
  ],
649
661
  setup(e, { emit: t }) {
650
- const n = e, r = t, { forwardRef: o, currentElement: i } = pe(), s = S(() => {
662
+ const n = e, r = t, { forwardRef: o, currentElement: i } = pe(), s = P(() => {
651
663
  var f;
652
664
  return ((f = i.value) == null ? void 0 : f.ownerDocument) ?? globalThis.document;
653
- }), a = S(() => A.layersRoot), c = S(() => i.value ? Array.from(a.value).indexOf(i.value) : -1), v = S(() => A.layersWithOutsidePointerEventsDisabled.size > 0), l = S(() => {
654
- const f = Array.from(a.value), [h] = [...A.layersWithOutsidePointerEventsDisabled].slice(-1), y = f.indexOf(h);
655
- return c.value >= y;
656
- }), u = vt(async (f) => {
657
- const h = [...A.branches].some((y) => y == null ? void 0 : y.contains(f.target));
658
- !l.value || h || (r("pointerDownOutside", f), r("interactOutside", f), await M(), f.defaultPrevented || r("dismiss"));
659
- }, i), d = pt((f) => {
660
- [...A.branches].some((y) => y == null ? void 0 : y.contains(f.target)) || (r("focusOutside", f), r("interactOutside", f), f.defaultPrevented || r("dismiss"));
665
+ }), u = P(() => S.layersRoot), c = P(() => i.value ? Array.from(u.value).indexOf(i.value) : -1), d = P(() => S.layersWithOutsidePointerEventsDisabled.size > 0), l = P(() => {
666
+ const f = Array.from(u.value), [y] = [...S.layersWithOutsidePointerEventsDisabled].slice(-1), p = f.indexOf(y);
667
+ return c.value >= p;
668
+ }), a = pt(async (f) => {
669
+ const y = [...S.branches].some((p) => p == null ? void 0 : p.contains(f.target));
670
+ !l.value || y || (r("pointerDownOutside", f), r("interactOutside", f), await M(), f.defaultPrevented || r("dismiss"));
671
+ }, i), v = mt((f) => {
672
+ [...S.branches].some((p) => p == null ? void 0 : p.contains(f.target)) || (r("focusOutside", f), r("interactOutside", f), f.defaultPrevented || r("dismiss"));
661
673
  }, i);
662
- Xe("Escape", (f) => {
663
- c.value === a.value.size - 1 && (r("escapeKeyDown", f), f.defaultPrevented || r("dismiss"));
664
- });
665
- let p;
666
- return L((f) => {
667
- i.value && (n.disableOutsidePointerEvents && (A.layersWithOutsidePointerEventsDisabled.size === 0 && (p = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), A.layersWithOutsidePointerEventsDisabled.add(i.value)), a.value.add(i.value), f(() => {
668
- n.disableOutsidePointerEvents && A.layersWithOutsidePointerEventsDisabled.size === 1 && (s.value.body.style.pointerEvents = p);
674
+ return Qe("Escape", (f) => {
675
+ c.value === u.value.size - 1 && (r("escapeKeyDown", f), f.defaultPrevented || r("dismiss"));
676
+ }), L((f) => {
677
+ i.value && (n.disableOutsidePointerEvents && (S.layersWithOutsidePointerEventsDisabled.size === 0 && (S.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), S.layersWithOutsidePointerEventsDisabled.add(i.value)), u.value.add(i.value), f(() => {
678
+ n.disableOutsidePointerEvents && S.layersWithOutsidePointerEventsDisabled.size === 1 && !ke(S.originalBodyPointerEvents) && (s.value.body.style.pointerEvents = S.originalBodyPointerEvents);
669
679
  }));
670
680
  }), L((f) => {
671
681
  f(() => {
672
- i.value && (a.value.delete(i.value), A.layersWithOutsidePointerEventsDisabled.delete(i.value));
682
+ i.value && (u.value.delete(i.value), S.layersWithOutsidePointerEventsDisabled.delete(i.value));
673
683
  });
674
- }), (f, h) => (Q(), X(P(ye), {
675
- ref: P(o),
684
+ }), (f, y) => (Q(), X(A(ye), {
685
+ ref: A(o),
676
686
  "as-child": f.asChild,
677
687
  as: f.as,
678
688
  "data-dismissable-layer": "",
679
- style: Ne({ pointerEvents: v.value ? l.value ? "auto" : "none" : void 0 }),
680
- onFocusCapture: P(d).onFocusCapture,
681
- onBlurCapture: P(d).onBlurCapture,
682
- onPointerdownCapture: P(u).onPointerDownCapture
689
+ style: Ne({ pointerEvents: d.value ? l.value ? "auto" : "none" : void 0 }),
690
+ onFocusCapture: A(v).onFocusCapture,
691
+ onBlurCapture: A(v).onBlurCapture,
692
+ onPointerdownCapture: A(a).onPointerDownCapture
683
693
  }, {
684
694
  default: ce(() => [Z(f.$slots, "default")]),
685
695
  _: 3
@@ -692,10 +702,10 @@ var mt = /* @__PURE__ */ B({
692
702
  "onPointerdownCapture"
693
703
  ]));
694
704
  }
695
- }), xt = mt;
696
- const yt = Ue(() => b([]));
697
- function ht() {
698
- const e = yt();
705
+ }), Bt = yt;
706
+ const ht = Ue(() => b([]));
707
+ function gt() {
708
+ const e = ht();
699
709
  return {
700
710
  add(t) {
701
711
  const n = e.value[0];
@@ -711,19 +721,19 @@ function oe(e, t) {
711
721
  const n = [...e], r = n.indexOf(t);
712
722
  return r !== -1 && n.splice(r, 1), n;
713
723
  }
714
- function gt(e) {
724
+ function Et(e) {
715
725
  return e.filter((t) => t.tagName !== "A");
716
726
  }
717
727
  const z = "focusScope.autoFocusOnMount", Y = "focusScope.autoFocusOnUnmount", ie = {
718
728
  bubbles: !1,
719
729
  cancelable: !0
720
730
  };
721
- function Et(e, { select: t = !1 } = {}) {
731
+ function bt(e, { select: t = !1 } = {}) {
722
732
  const n = I();
723
733
  for (const r of e)
724
734
  if (D(r, { select: t }), I() !== n) return !0;
725
735
  }
726
- function bt(e) {
736
+ function Ot(e) {
727
737
  const t = ge(e), n = se(t, e), r = se(t.reverse(), e);
728
738
  return [n, r];
729
739
  }
@@ -747,16 +757,16 @@ function wt(e, { upTo: t }) {
747
757
  }
748
758
  return !1;
749
759
  }
750
- function Ot(e) {
760
+ function St(e) {
751
761
  return e instanceof HTMLInputElement && "select" in e;
752
762
  }
753
763
  function D(e, { select: t = !1 } = {}) {
754
764
  if (e && e.focus) {
755
765
  const n = I();
756
- e.focus({ preventScroll: !0 }), e !== n && Ot(e) && t && e.select();
766
+ e.focus({ preventScroll: !0 }), e !== n && St(e) && t && e.select();
757
767
  }
758
768
  }
759
- var St = /* @__PURE__ */ B({
769
+ var Pt = /* @__PURE__ */ B({
760
770
  __name: "FocusScope",
761
771
  props: {
762
772
  loop: {
@@ -780,7 +790,7 @@ var St = /* @__PURE__ */ B({
780
790
  },
781
791
  emits: ["mountAutoFocus", "unmountAutoFocus"],
782
792
  setup(e, { emit: t }) {
783
- const n = e, r = t, { currentRef: o, currentElement: i } = pe(), s = b(null), a = ht(), c = W({
793
+ const n = e, r = t, { currentRef: o, currentElement: i } = pe(), s = b(null), u = gt(), c = W({
784
794
  paused: !1,
785
795
  pause() {
786
796
  this.paused = !0;
@@ -791,69 +801,69 @@ var St = /* @__PURE__ */ B({
791
801
  });
792
802
  L((l) => {
793
803
  if (!F) return;
794
- const u = i.value;
804
+ const a = i.value;
795
805
  if (!n.trapped) return;
796
- function d(y) {
797
- if (c.paused || !u) return;
798
- const m = y.target;
799
- u.contains(m) ? s.value = m : D(s.value, { select: !0 });
806
+ function v(g) {
807
+ if (c.paused || !a) return;
808
+ const m = g.target;
809
+ a.contains(m) ? s.value = m : D(s.value, { select: !0 });
800
810
  }
801
- function p(y) {
802
- if (c.paused || !u) return;
803
- const m = y.relatedTarget;
804
- m !== null && (u.contains(m) || D(s.value, { select: !0 }));
811
+ function f(g) {
812
+ if (c.paused || !a) return;
813
+ const m = g.relatedTarget;
814
+ m !== null && (a.contains(m) || D(s.value, { select: !0 }));
805
815
  }
806
- function f(y) {
807
- u.contains(s.value) || D(u);
816
+ function y(g) {
817
+ a.contains(s.value) || D(a);
808
818
  }
809
- document.addEventListener("focusin", d), document.addEventListener("focusout", p);
810
- const h = new MutationObserver(f);
811
- u && h.observe(u, {
819
+ document.addEventListener("focusin", v), document.addEventListener("focusout", f);
820
+ const p = new MutationObserver(y);
821
+ a && p.observe(a, {
812
822
  childList: !0,
813
823
  subtree: !0
814
824
  }), l(() => {
815
- document.removeEventListener("focusin", d), document.removeEventListener("focusout", p), h.disconnect();
825
+ document.removeEventListener("focusin", v), document.removeEventListener("focusout", f), p.disconnect();
816
826
  });
817
827
  }), L(async (l) => {
818
- const u = i.value;
819
- if (await M(), !u) return;
820
- a.add(c);
821
- const d = I();
822
- if (!u.contains(d)) {
823
- const f = new CustomEvent(z, ie);
824
- u.addEventListener(z, (h) => r("mountAutoFocus", h)), u.dispatchEvent(f), f.defaultPrevented || (Et(gt(ge(u)), { select: !0 }), I() === d && D(u));
828
+ const a = i.value;
829
+ if (await M(), !a) return;
830
+ u.add(c);
831
+ const v = I();
832
+ if (!a.contains(v)) {
833
+ const y = new CustomEvent(z, ie);
834
+ a.addEventListener(z, (p) => r("mountAutoFocus", p)), a.dispatchEvent(y), y.defaultPrevented || (bt(Et(ge(a)), { select: !0 }), I() === v && D(a));
825
835
  }
826
836
  l(() => {
827
- u.removeEventListener(z, (y) => r("mountAutoFocus", y));
828
- const f = new CustomEvent(Y, ie), h = (y) => {
829
- r("unmountAutoFocus", y);
837
+ a.removeEventListener(z, (g) => r("mountAutoFocus", g));
838
+ const y = new CustomEvent(Y, ie), p = (g) => {
839
+ r("unmountAutoFocus", g);
830
840
  };
831
- u.addEventListener(Y, h), u.dispatchEvent(f), setTimeout(() => {
832
- f.defaultPrevented || D(d ?? document.body, { select: !0 }), u.removeEventListener(Y, h), a.remove(c);
841
+ a.addEventListener(Y, p), a.dispatchEvent(y), setTimeout(() => {
842
+ y.defaultPrevented || D(v ?? document.body, { select: !0 }), a.removeEventListener(Y, p), u.remove(c);
833
843
  }, 0);
834
844
  });
835
845
  });
836
- function v(l) {
846
+ function d(l) {
837
847
  if (!n.loop && !n.trapped || c.paused) return;
838
- const u = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, d = I();
839
- if (u && d) {
840
- const p = l.currentTarget, [f, h] = bt(p);
841
- f && h ? !l.shiftKey && d === h ? (l.preventDefault(), n.loop && D(f, { select: !0 })) : l.shiftKey && d === f && (l.preventDefault(), n.loop && D(h, { select: !0 })) : d === p && l.preventDefault();
848
+ const a = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, v = I();
849
+ if (a && v) {
850
+ const f = l.currentTarget, [y, p] = Ot(f);
851
+ y && p ? !l.shiftKey && v === p ? (l.preventDefault(), n.loop && D(y, { select: !0 })) : l.shiftKey && v === y && (l.preventDefault(), n.loop && D(p, { select: !0 })) : v === f && l.preventDefault();
842
852
  }
843
853
  }
844
- return (l, u) => (Q(), X(P(ye), {
854
+ return (l, a) => (Q(), X(A(ye), {
845
855
  ref_key: "currentRef",
846
856
  ref: o,
847
857
  tabindex: "-1",
848
858
  "as-child": l.asChild,
849
859
  as: l.as,
850
- onKeydown: v
860
+ onKeydown: d
851
861
  }, {
852
862
  default: ce(() => [Z(l.$slots, "default")]),
853
863
  _: 3
854
864
  }, 8, ["as-child", "as"]));
855
865
  }
856
- }), Bt = St, At = /* @__PURE__ */ B({
866
+ }), kt = Pt, At = /* @__PURE__ */ B({
857
867
  __name: "Teleport",
858
868
  props: {
859
869
  to: {
@@ -875,8 +885,8 @@ var St = /* @__PURE__ */ B({
875
885
  }
876
886
  },
877
887
  setup(e) {
878
- const t = Ge();
879
- return (n, r) => P(t) || n.forceMount ? (Q(), X(xe, {
888
+ const t = Je();
889
+ return (n, r) => A(t) || n.forceMount ? (Q(), X(xe, {
880
890
  key: 0,
881
891
  to: n.to,
882
892
  disabled: n.disabled,
@@ -887,27 +897,27 @@ var St = /* @__PURE__ */ B({
887
897
  "defer"
888
898
  ])) : Ie("v-if", !0);
889
899
  }
890
- }), kt = At;
900
+ }), jt = At;
891
901
  export {
892
- xt as D,
893
- Bt as F,
894
- It as P,
895
- lt as S,
896
- kt as T,
902
+ Bt as D,
903
+ kt as F,
904
+ xt as P,
905
+ ct as S,
906
+ jt as T,
897
907
  pe as a,
898
- Mt as b,
908
+ Ft as b,
899
909
  Be as c,
900
- Nt as d,
910
+ It as d,
901
911
  ye as e,
902
- Ft as f,
912
+ Nt as f,
903
913
  I as g,
904
914
  F as h,
905
- ke as i,
915
+ je as i,
906
916
  $ as j,
907
- Ct as k,
908
- Tt as l,
909
- je as m,
917
+ Dt as k,
918
+ Lt as l,
919
+ Re as m,
910
920
  de as n,
911
- Dt as r,
912
- Lt as u
921
+ Tt as r,
922
+ Mt as u
913
923
  };