tuikit-atomicx-vue3 3.3.4 → 3.4.2

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 (818) hide show
  1. package/.eslintrc.cjs +33 -0
  2. package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +89 -0
  3. package/dist/DialogPortal-CvJcEAsn.js +417 -0
  4. package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-C8oUv-KF.js +36 -0
  5. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js +116 -0
  6. package/dist/PopoverTrigger-L8abAry7.js +607 -0
  7. package/dist/PopperContent-XdhqL8Y2.js +1603 -0
  8. package/dist/Teleport-CSEuZbpM.js +913 -0
  9. package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-DlROoquV.js +89 -0
  10. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  11. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  12. package/dist/baseComp/ActionSheep.js +41 -51
  13. package/dist/baseComp/AudioIcon.js +27 -37
  14. package/dist/baseComp/Avatar.js +16 -28
  15. package/dist/baseComp/Dialog/DialogH5.js +56 -82
  16. package/dist/baseComp/Dialog/DialogPC.js +76 -118
  17. package/dist/baseComp/Dialog/index.js +2 -2
  18. package/dist/baseComp/IconButton.js +43 -56
  19. package/dist/baseComp/Input/InputH5.js +85 -128
  20. package/dist/baseComp/Input/InputPC.js +85 -128
  21. package/dist/baseComp/Input/InputWX.js +88 -131
  22. package/dist/baseComp/Input/index.js +5 -5
  23. package/dist/baseComp/MessageBox/index.js +120 -150
  24. package/dist/baseComp/Modal/Modal.js +38 -45
  25. package/dist/baseComp/Modal/index.js +3 -3
  26. package/dist/baseComp/ObserverView/ObserverView.js +50 -86
  27. package/dist/baseComp/ObserverView/index.js +2 -2
  28. package/dist/baseComp/Option/OptionH5.js +29 -40
  29. package/dist/baseComp/Option/OptionPC.js +34 -46
  30. package/dist/baseComp/Option/OptionWX.js +30 -41
  31. package/dist/baseComp/Option/index.js +2 -2
  32. package/dist/baseComp/Select/SelectH5.js +54 -86
  33. package/dist/baseComp/Select/SelectPC.js +78 -120
  34. package/dist/baseComp/Select/SelectWX.js +48 -79
  35. package/dist/baseComp/Select/index.js +2 -2
  36. package/dist/baseComp/SvgIcon.js +17 -22
  37. package/dist/baseComp/TuiSwitch.js +15 -19
  38. package/dist/baseComp/View/View.js +2 -2
  39. package/dist/baseComp/View/index.js +19 -24
  40. package/dist/baseComp/index.js +2 -2
  41. package/dist/baseComp/useZIndex.js +7 -12
  42. package/dist/chat/index.d.ts +1421 -990
  43. package/dist/chat/index.js +57 -82
  44. package/dist/chat/server.js +60 -84
  45. package/dist/components/AudioSetting/AudioMediaControl.js +52 -78
  46. package/dist/components/AudioSetting/AudioRequestDialog.js +2 -2
  47. package/dist/components/AudioSetting/AudioSettingTab.js +72 -102
  48. package/dist/components/AudioSetting/MicrophoneSelect.js +45 -57
  49. package/dist/components/AudioSetting/SpeakerSelect.js +45 -57
  50. package/dist/components/AudioSetting/index.js +3 -3
  51. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -2
  52. package/dist/components/AudioSettingPanel/i18n/index.js +4 -4
  53. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -2
  54. package/dist/components/AudioSettingPanel/index.js +102 -147
  55. package/dist/components/Avatar/Avatar.js +88 -140
  56. package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
  57. package/dist/components/Avatar/AvatarBadge/AvatarBadge.js +25 -31
  58. package/dist/components/Avatar/AvatarBadge/index.js +2 -2
  59. package/dist/components/Avatar/constants/avatar.js +7 -12
  60. package/dist/components/Avatar/index.js +9 -9
  61. package/dist/components/BarrageInput/BarrageInput.js +50 -67
  62. package/dist/components/BarrageInput/BarrageInputH5.js +80 -111
  63. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +84 -97
  64. package/dist/components/BarrageInput/EmojiPicker/index.js +2 -2
  65. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +34 -62
  66. package/dist/components/BarrageInput/TextEditor/EditorCore.js +79 -90
  67. package/dist/components/BarrageInput/TextEditor/TextEditor.js +2 -2
  68. package/dist/components/BarrageInput/TextEditor/index.js +81 -125
  69. package/dist/components/BarrageInput/constants.js +2 -2
  70. package/dist/components/BarrageInput/i18n/en-US/index.js +2 -2
  71. package/dist/components/BarrageInput/i18n/index.js +4 -4
  72. package/dist/components/BarrageInput/i18n/zh-CN/index.js +2 -2
  73. package/dist/components/BarrageInput/index.js +11 -11
  74. package/dist/components/BarrageList/BarrageList.js +97 -173
  75. package/dist/components/BarrageList/BarrageListH5.js +96 -171
  76. package/dist/components/BarrageList/ClickAction/UserActionMenu.js +64 -94
  77. package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +2 -2
  78. package/dist/components/BarrageList/Message/CustomMessage/index.js +5 -7
  79. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +16 -21
  80. package/dist/components/BarrageList/Message/FaceMessage/index.js +2 -2
  81. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
  82. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +13 -18
  83. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +56 -80
  84. package/dist/components/BarrageList/Message/ImageMessage/index.js +2 -2
  85. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +5 -5
  86. package/dist/components/BarrageList/Message/MergerMessage/index.js +2 -2
  87. package/dist/components/BarrageList/Message/Message.js +2 -2
  88. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +28 -39
  89. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/index.js +2 -2
  90. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +93 -101
  91. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +26 -32
  92. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +19 -22
  93. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +2 -2
  94. package/dist/components/BarrageList/Message/MessageLayout/index.js +2 -2
  95. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +31 -39
  96. package/dist/components/BarrageList/Message/RecalledMessage/index.js +2 -2
  97. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +67 -96
  98. package/dist/components/BarrageList/Message/TextMessage/index.js +2 -2
  99. package/dist/components/BarrageList/Message/index.js +11 -15
  100. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +34 -43
  101. package/dist/components/BarrageList/MessageForward/MessageForward.js +158 -210
  102. package/dist/components/BarrageList/MessageForward/index.js +2 -2
  103. package/dist/components/BarrageList/MessageListContext.js +9 -10
  104. package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
  105. package/dist/components/BarrageList/MessageTimeDivider/index.js +2 -2
  106. package/dist/components/BarrageList/i18n/en-US/index.js +3 -3
  107. package/dist/components/BarrageList/i18n/index.js +4 -4
  108. package/dist/components/BarrageList/i18n/zh-CN/index.js +3 -3
  109. package/dist/components/BarrageList/index.js +10 -10
  110. package/dist/components/CameraButton/index.js +34 -44
  111. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +92 -108
  112. package/dist/components/ChatSetting/C2CChatSetting/index.js +3 -3
  113. package/dist/components/ChatSetting/ChatSetting.js +17 -23
  114. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +133 -163
  115. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +2 -2
  116. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +179 -245
  117. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +124 -181
  118. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +2 -2
  119. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +195 -259
  120. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +2 -2
  121. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +23 -32
  122. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +2 -2
  123. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +149 -212
  124. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +2 -2
  125. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +35 -40
  126. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +2 -2
  127. package/dist/components/ChatSetting/GroupChatSetting/index.js +2 -2
  128. package/dist/components/ChatSetting/SettingItem/SettingItem.js +201 -247
  129. package/dist/components/ChatSetting/SettingItem/index.js +2 -2
  130. package/dist/components/ChatSetting/i18n/en-US.js +2 -2
  131. package/dist/components/ChatSetting/i18n/index.js +6 -6
  132. package/dist/components/ChatSetting/i18n/zh-CN.js +2 -2
  133. package/dist/components/ChatSetting/index.js +7 -7
  134. package/dist/components/CoGuestPanel/CoGuestPanel.js +139 -180
  135. package/dist/components/CoGuestPanel/constants.js +2 -2
  136. package/dist/components/CoGuestPanel/i18n/en-US/index.js +9 -9
  137. package/dist/components/CoGuestPanel/i18n/index.js +4 -4
  138. package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +9 -9
  139. package/dist/components/CoGuestPanel/index.js +8 -8
  140. package/dist/components/CoHostPanel/BattlePanel.js +196 -0
  141. package/dist/components/CoHostPanel/BattlePanel.vue.d.ts +19 -0
  142. package/dist/components/CoHostPanel/CoHostPanel.js +114 -0
  143. package/dist/components/CoHostPanel/CoHostPanel.vue.d.ts +19 -0
  144. package/dist/components/CoHostPanel/ConfigSettingPanel.js +110 -0
  145. package/dist/components/CoHostPanel/ConfigSettingPanel.vue.d.ts +33 -0
  146. package/dist/components/CoHostPanel/ConnectionPanel.js +273 -0
  147. package/dist/components/CoHostPanel/ConnectionPanel.vue.d.ts +19 -0
  148. package/dist/components/CoHostPanel/RecommendHostList.js +113 -0
  149. package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +13 -0
  150. package/dist/components/CoHostPanel/UserList.js +34 -0
  151. package/dist/components/CoHostPanel/UserList.vue.d.ts +28 -0
  152. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +74 -0
  153. package/dist/components/CoHostPanel/i18n/en-US/index.js +81 -0
  154. package/dist/components/CoHostPanel/i18n/index.d.ts +4 -0
  155. package/dist/components/CoHostPanel/i18n/index.js +6 -0
  156. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +75 -0
  157. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +82 -0
  158. package/dist/components/CoHostPanel/index.d.ts +16 -0
  159. package/dist/components/CoHostPanel/index.js +10 -0
  160. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +36 -51
  161. package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +2 -2
  162. package/dist/components/ContactList/ContactInfo/ContactInfo.js +141 -196
  163. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +39 -61
  164. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +2 -2
  165. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +109 -160
  166. package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +2 -2
  167. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +58 -86
  168. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +2 -2
  169. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +99 -133
  170. package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +2 -2
  171. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +86 -118
  172. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +2 -2
  173. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +72 -101
  174. package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +2 -2
  175. package/dist/components/ContactList/ContactInfo/index.js +16 -16
  176. package/dist/components/ContactList/ContactList.js +164 -235
  177. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +29 -38
  178. package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +2 -2
  179. package/dist/components/ContactList/ContactListItem/ContactListItem.js +2 -2
  180. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +46 -61
  181. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +2 -2
  182. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +24 -31
  183. package/dist/components/ContactList/ContactListItem/FriendItem/index.js +2 -2
  184. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +45 -64
  185. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +2 -2
  186. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +29 -38
  187. package/dist/components/ContactList/ContactListItem/GroupItem/index.js +2 -2
  188. package/dist/components/ContactList/ContactListItem/index.js +57 -66
  189. package/dist/components/ContactList/ContactSearch/ContactSearch.js +53 -73
  190. package/dist/components/ContactList/ContactSearch/index.js +2 -2
  191. package/dist/components/ContactList/constants/const.js +3 -4
  192. package/dist/components/ContactList/hooks/index.js +2 -2
  193. package/dist/components/ContactList/hooks/useContactList.js +11 -15
  194. package/dist/components/ContactList/i18n/en-US.js +21 -21
  195. package/dist/components/ContactList/i18n/index.js +4 -4
  196. package/dist/components/ContactList/i18n/zh-CN.js +21 -21
  197. package/dist/components/ContactList/index.js +12 -14
  198. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +107 -150
  199. package/dist/components/ConversationList/ConversationActions/index.js +2 -2
  200. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +116 -193
  201. package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +65 -80
  202. package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +108 -126
  203. package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +40 -52
  204. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +61 -79
  205. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +4 -4
  206. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +8 -8
  207. package/dist/components/ConversationList/ConversationCreate/index.js +12 -12
  208. package/dist/components/ConversationList/ConversationList.js +112 -154
  209. package/dist/components/ConversationList/ConversationList.vue.d.ts +72 -72
  210. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +27 -33
  211. package/dist/components/ConversationList/ConversationListContent/index.js +2 -2
  212. package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +30 -39
  213. package/dist/components/ConversationList/ConversationListHeader/index.js +2 -2
  214. package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +65 -81
  215. package/dist/components/ConversationList/ConversationPlaceHolder/index.js +2 -2
  216. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +2 -2
  217. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +72 -72
  218. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +40 -59
  219. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -47
  220. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +25 -42
  221. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -111
  222. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
  223. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +36 -51
  224. package/dist/components/ConversationList/ConversationPreview/index.js +55 -63
  225. package/dist/components/ConversationList/ConversationPreview/utils.js +36 -42
  226. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +114 -160
  227. package/dist/components/ConversationList/ConversationSearch/index.js +2 -2
  228. package/dist/components/ConversationList/hooks/useConversation.js +12 -18
  229. package/dist/components/ConversationList/hooks/useConversationCreate.js +17 -18
  230. package/dist/components/ConversationList/i18n/en-US.js +32 -32
  231. package/dist/components/ConversationList/i18n/index.js +4 -4
  232. package/dist/components/ConversationList/i18n/zh-CN.js +32 -32
  233. package/dist/components/ConversationList/index.d.ts +989 -989
  234. package/dist/components/ConversationList/index.js +24 -32
  235. package/dist/components/LiveAudienceList/LiveAudienceList.js +85 -120
  236. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +50 -72
  237. package/dist/components/LiveAudienceList/UserActionMenu.js +82 -124
  238. package/dist/components/LiveAudienceList/i18n/en-US/index.js +2 -2
  239. package/dist/components/LiveAudienceList/i18n/index.js +4 -4
  240. package/dist/components/LiveAudienceList/i18n/zh-CN/index.js +2 -2
  241. package/dist/components/LiveAudienceList/index.js +10 -10
  242. package/dist/components/LiveList/LiveList.js +109 -165
  243. package/dist/components/LiveList/LiveList.vue.d.ts +15 -3
  244. package/dist/components/LiveList/LiveListH5.js +109 -169
  245. package/dist/components/LiveList/i18n/en-US/index.d.ts +1 -1
  246. package/dist/components/LiveList/i18n/en-US/index.js +4 -4
  247. package/dist/components/LiveList/i18n/index.js +4 -4
  248. package/dist/components/LiveList/i18n/zh-CN/index.d.ts +1 -1
  249. package/dist/components/LiveList/i18n/zh-CN/index.js +4 -4
  250. package/dist/components/LiveList/index.d.ts +17 -1
  251. package/dist/components/LiveList/index.js +10 -10
  252. package/dist/components/LiveList/pullToRefresh.js +88 -163
  253. package/dist/components/LiveMonitorView/LiveMonitorView.js +72 -110
  254. package/dist/components/LiveMonitorView/i18n/en-US/index.js +2 -2
  255. package/dist/components/LiveMonitorView/i18n/index.js +4 -4
  256. package/dist/components/LiveMonitorView/i18n/zh-CN/index.js +2 -2
  257. package/dist/components/LiveMonitorView/index.js +7 -7
  258. package/dist/components/LiveScenePanel/CameraSettingDialog.js +126 -188
  259. package/dist/components/LiveScenePanel/LiveSceneSelect.js +79 -106
  260. package/dist/components/LiveScenePanel/MaterialDialog.js +78 -98
  261. package/dist/components/LiveScenePanel/MaterialItem.js +105 -142
  262. package/dist/components/LiveScenePanel/MaterialRenameDialog.js +2 -2
  263. package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -2
  264. package/dist/components/LiveScenePanel/i18n/index.js +4 -4
  265. package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -2
  266. package/dist/components/LiveScenePanel/icons/AddIcon.js +10 -11
  267. package/dist/components/LiveScenePanel/icons/CameraIcon.js +9 -10
  268. package/dist/components/LiveScenePanel/icons/CameraMirror.js +13 -14
  269. package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +11 -12
  270. package/dist/components/LiveScenePanel/icons/ImageIcon.js +8 -9
  271. package/dist/components/LiveScenePanel/icons/MoreIcon.js +13 -14
  272. package/dist/components/LiveScenePanel/icons/ScreenIcon.js +8 -9
  273. package/dist/components/LiveScenePanel/index.js +142 -190
  274. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +152 -0
  275. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
  276. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +73 -0
  277. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
  278. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +54 -0
  279. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
  280. package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
  281. package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
  282. package/dist/components/LiveView/DefaultStreamViewUI.js +124 -0
  283. package/dist/components/LiveView/PlayerControl/AudioControl.js +129 -0
  284. package/dist/components/LiveView/PlayerControl/MultiResolution.js +78 -0
  285. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +2 -0
  286. package/dist/components/LiveView/PlayerControl/PlayerControl.js +168 -0
  287. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +11 -0
  288. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +267 -0
  289. package/dist/components/LiveView/PlayerControl/index.js +8 -0
  290. package/dist/components/LiveView/PlayerControl/utils/deviceDetection.js +45 -0
  291. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +99 -0
  292. package/dist/components/LiveView/PlayerControl/utils/fullscreenManager.js +241 -0
  293. package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +7 -0
  294. package/dist/components/LiveView/i18n/en-US/index.js +23 -0
  295. package/dist/components/LiveView/i18n/index.js +6 -0
  296. package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +7 -0
  297. package/dist/components/LiveView/i18n/zh-CN/index.js +23 -0
  298. package/dist/components/LiveView/index.d.ts +79 -0
  299. package/dist/components/LiveView/index.js +243 -0
  300. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +2 -2
  301. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +10 -1
  302. package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +63 -2
  303. package/dist/components/MessageInput/AttachmentPicker/FilePicker.vue.d.ts +14 -13
  304. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +63 -2
  305. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.vue.d.ts +14 -13
  306. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +63 -2
  307. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.vue.d.ts +14 -13
  308. package/dist/components/MessageInput/AttachmentPicker/index.js +70 -72
  309. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +155 -0
  310. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.vue.d.ts +45 -0
  311. package/dist/components/MessageInput/AudioCallPicker/index.d.ts +3 -0
  312. package/dist/components/MessageInput/AudioCallPicker/index.js +4 -0
  313. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +108 -96
  314. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.vue.d.ts +34 -6
  315. package/dist/components/MessageInput/EmojiPicker/index.js +2 -2
  316. package/dist/components/MessageInput/MessageInput.js +2 -2
  317. package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +2 -2
  318. package/dist/components/MessageInput/QuotedMessagePreview/index.js +60 -74
  319. package/dist/components/MessageInput/SendButton/SendButton.js +2 -2
  320. package/dist/components/MessageInput/SendButton/index.js +20 -25
  321. package/dist/components/MessageInput/TextEditor/EditorCore.js +72 -79
  322. package/dist/components/MessageInput/TextEditor/TextEditor.js +2 -2
  323. package/dist/components/MessageInput/TextEditor/index.js +60 -95
  324. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +158 -0
  325. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.vue.d.ts +45 -0
  326. package/dist/components/MessageInput/VideoCallPicker/index.d.ts +3 -0
  327. package/dist/components/MessageInput/VideoCallPicker/index.js +4 -0
  328. package/dist/components/MessageInput/i18n/en-US.d.ts +4 -0
  329. package/dist/components/MessageInput/i18n/en-US.js +7 -3
  330. package/dist/components/MessageInput/i18n/index.d.ts +4 -0
  331. package/dist/components/MessageInput/i18n/index.js +6 -6
  332. package/dist/components/MessageInput/i18n/zh-CN.js +2 -2
  333. package/dist/components/MessageInput/index.d.ts +462 -191
  334. package/dist/components/MessageInput/index.js +23 -25
  335. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +50 -65
  336. package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +31 -37
  337. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +37 -52
  338. package/dist/components/MessageList/Message/AudioMessage/index.js +2 -2
  339. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +60 -0
  340. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue.d.ts +16 -0
  341. package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.d.ts +3 -0
  342. package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.js +4 -0
  343. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +49 -2
  344. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.vue.d.ts +15 -1
  345. package/dist/components/MessageList/Message/CustomMessage/index.js +2 -10
  346. package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -20
  347. package/dist/components/MessageList/Message/FaceMessage/index.js +2 -2
  348. package/dist/components/MessageList/Message/FileMessage/FileMessage.js +57 -70
  349. package/dist/components/MessageList/Message/FileMessage/index.js +2 -2
  350. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
  351. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +1 -1
  352. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -23
  353. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +1 -1
  354. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +41 -59
  355. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +106 -169
  356. package/dist/components/MessageList/Message/ImageMessage/index.js +2 -2
  357. package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +7 -7
  358. package/dist/components/MessageList/Message/LocationMessage/index.js +2 -2
  359. package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +7 -7
  360. package/dist/components/MessageList/Message/MergerMessage/index.js +2 -2
  361. package/dist/components/MessageList/Message/Message.js +2 -2
  362. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +800 -1074
  363. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +1 -1
  364. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/index.js +2 -2
  365. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +36 -44
  366. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
  367. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/index.js +2 -2
  368. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +116 -123
  369. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
  370. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +47 -73
  371. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +24 -27
  372. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/index.js +2 -2
  373. package/dist/components/MessageList/Message/MessageLayout/index.js +2 -2
  374. package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +23 -28
  375. package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +39 -48
  376. package/dist/components/MessageList/Message/RecalledMessage/index.js +2 -2
  377. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +80 -102
  378. package/dist/components/MessageList/Message/TextMessage/index.js +2 -2
  379. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +68 -92
  380. package/dist/components/MessageList/Message/VideoMessage/index.js +2 -2
  381. package/dist/components/MessageList/Message/index.js +18 -20
  382. package/dist/components/MessageList/MessageForward/ForwardListItem.js +46 -53
  383. package/dist/components/MessageList/MessageForward/MessageForward.js +102 -124
  384. package/dist/components/MessageList/MessageForward/index.js +2 -2
  385. package/dist/components/MessageList/MessageList.js +129 -204
  386. package/dist/components/MessageList/MessageListContext.js +9 -10
  387. package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
  388. package/dist/components/MessageList/MessageTimeDivider/index.js +2 -2
  389. package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +294 -379
  390. package/dist/components/MessageList/ReadReceiptInfo/index.js +2 -2
  391. package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +20 -25
  392. package/dist/components/MessageList/ScrollToBottom/index.js +2 -2
  393. package/dist/components/MessageList/i18n/en-US.d.ts +20 -1
  394. package/dist/components/MessageList/i18n/en-US.js +21 -2
  395. package/dist/components/MessageList/i18n/index.d.ts +134 -92
  396. package/dist/components/MessageList/i18n/index.js +6 -6
  397. package/dist/components/MessageList/i18n/zh-CN.d.ts +20 -1
  398. package/dist/components/MessageList/i18n/zh-CN.js +21 -2
  399. package/dist/components/MessageList/index.js +9 -10
  400. package/dist/components/MicButton/AudioIcon.js +27 -37
  401. package/dist/components/MicButton/index.js +37 -52
  402. package/dist/components/Search/Search.js +117 -156
  403. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +378 -505
  404. package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +2 -2
  405. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +147 -211
  406. package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +2 -2
  407. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +46 -60
  408. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +39 -51
  409. package/dist/components/Search/SearchAdvanced/SearchTab/index.js +2 -2
  410. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +53 -82
  411. package/dist/components/Search/SearchAdvanced/Slider/index.js +2 -2
  412. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +247 -317
  413. package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +2 -2
  414. package/dist/components/Search/SearchAdvanced/index.js +12 -12
  415. package/dist/components/Search/SearchBar/SearchBar.js +98 -122
  416. package/dist/components/Search/SearchBar/index.js +2 -2
  417. package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +26 -37
  418. package/dist/components/Search/SearchResults/EmptyResult/index.js +2 -2
  419. package/dist/components/Search/SearchResults/Loading/Loading.js +13 -19
  420. package/dist/components/Search/SearchResults/Loading/index.js +2 -2
  421. package/dist/components/Search/SearchResults/SearchResults.js +233 -339
  422. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +61 -83
  423. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +2 -2
  424. package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +40 -52
  425. package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +2 -2
  426. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +134 -181
  427. package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +2 -2
  428. package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +40 -46
  429. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +56 -75
  430. package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +2 -2
  431. package/dist/components/Search/SearchResults/SearchResultsItem/index.js +11 -11
  432. package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +17 -36
  433. package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +2 -2
  434. package/dist/components/Search/SearchResults/index.js +16 -16
  435. package/dist/components/Search/i18n/en-US/DateRangePicker.js +3 -3
  436. package/dist/components/Search/i18n/en-US/Search.js +3 -3
  437. package/dist/components/Search/i18n/en-US/index.js +7 -7
  438. package/dist/components/Search/i18n/index.js +4 -4
  439. package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +3 -3
  440. package/dist/components/Search/i18n/zh-CN/Search.js +3 -3
  441. package/dist/components/Search/i18n/zh-CN/index.js +7 -7
  442. package/dist/components/Search/index.js +20 -26
  443. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +68 -100
  444. package/dist/components/StreamMixer/LocalMixer/index.js +103 -171
  445. package/dist/components/StreamMixer/i18n/en-US/index.js +2 -2
  446. package/dist/components/StreamMixer/i18n/index.js +4 -4
  447. package/dist/components/StreamMixer/i18n/zh-CN/index.js +2 -2
  448. package/dist/components/StreamMixer/icons/CameraMirror.js +13 -14
  449. package/dist/components/StreamMixer/icons/Delete.js +13 -14
  450. package/dist/components/StreamMixer/icons/Down.js +10 -11
  451. package/dist/components/StreamMixer/icons/Rotation.js +11 -12
  452. package/dist/components/StreamMixer/icons/Up.js +10 -11
  453. package/dist/components/StreamMixer/index.js +19 -21
  454. package/dist/components/StreamView/Layout/CustomLayout.js +132 -209
  455. package/dist/components/StreamView/Layout/FloatLayout.js +136 -199
  456. package/dist/components/StreamView/Layout/GridLayout.js +117 -197
  457. package/dist/components/StreamView/Layout/MeetingLayout.js +129 -231
  458. package/dist/components/StreamView/Layout/MixLayout.js +70 -98
  459. package/dist/components/StreamView/common/ArrowStroke.js +26 -29
  460. package/dist/components/StreamView/common/LocalScreenView/index.js +82 -92
  461. package/dist/components/StreamView/common/StreamCover/index.js +33 -62
  462. package/dist/components/StreamView/common/StreamList/index.js +103 -163
  463. package/dist/components/StreamView/common/StreamPlay/index.js +58 -98
  464. package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.js +58 -90
  465. package/dist/components/StreamView/common/StreamRegion/index.js +2 -2
  466. package/dist/components/StreamView/index.js +64 -66
  467. package/dist/components/StreamView/manager/mediaManager.js +125 -236
  468. package/dist/components/UserList/AllUserActions/index.js +2 -2
  469. package/dist/components/UserList/AllUserActions/indexH5.js +59 -69
  470. package/dist/components/UserList/AllUserActions/indexPC.js +61 -73
  471. package/dist/components/UserList/AllUserActions/useIndexHooks.js +32 -39
  472. package/dist/components/UserList/UserItem/UserAction/index.js +2 -2
  473. package/dist/components/UserList/UserItem/UserAction/indexH5.js +47 -61
  474. package/dist/components/UserList/UserItem/UserAction/indexPC.js +86 -130
  475. package/dist/components/UserList/UserItem/UserInfo/index.js +67 -117
  476. package/dist/components/UserList/UserItem/UserInvite/index.js +18 -21
  477. package/dist/components/UserList/UserItem/index.js +2 -2
  478. package/dist/components/UserList/UserItem/indexH5.js +42 -54
  479. package/dist/components/UserList/UserItem/indexPC.js +32 -37
  480. package/dist/components/UserList/UserListContent/index.js +30 -44
  481. package/dist/components/UserList/UserListSearch/index.js +20 -26
  482. package/dist/components/UserList/index.js +50 -63
  483. package/dist/components/UserPicker/UserPicker.js +110 -148
  484. package/dist/components/UserPicker/components/ListMode/ListMode.js +70 -96
  485. package/dist/components/UserPicker/components/ListMode/index.js +2 -2
  486. package/dist/components/UserPicker/components/SearchBar/SearchBar.js +43 -58
  487. package/dist/components/UserPicker/components/SearchBar/index.js +2 -2
  488. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +69 -94
  489. package/dist/components/UserPicker/components/SelectedPanel/index.js +2 -2
  490. package/dist/components/UserPicker/components/TreeMode/TreeMode.js +33 -42
  491. package/dist/components/UserPicker/components/TreeMode/TreeNode.js +81 -106
  492. package/dist/components/UserPicker/components/TreeMode/index.js +2 -2
  493. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -80
  494. package/dist/components/UserPicker/hooks/useSelection.js +155 -313
  495. package/dist/components/UserPicker/hooks/useTreeState.js +17 -37
  496. package/dist/components/UserPicker/i18n/en-US.js +2 -2
  497. package/dist/components/UserPicker/i18n/index.js +6 -6
  498. package/dist/components/UserPicker/i18n/zh-CN.js +2 -2
  499. package/dist/components/UserPicker/index.js +7 -7
  500. package/dist/components/VideoSetting/CameraSelect.js +46 -58
  501. package/dist/components/VideoSetting/VideoMediaControl.js +45 -65
  502. package/dist/components/VideoSetting/VideoPreview.js +31 -40
  503. package/dist/components/VideoSetting/VideoProfile.js +38 -46
  504. package/dist/components/VideoSetting/VideoRequestDialog.js +2 -2
  505. package/dist/components/VideoSetting/VideoSettingTab.js +43 -55
  506. package/dist/components/VideoSetting/index.js +3 -3
  507. package/dist/components/VideoSettingPanel/CameraSelect.js +45 -57
  508. package/dist/components/VideoSettingPanel/VideoPreview.js +30 -39
  509. package/dist/components/VideoSettingPanel/VideoProfile.js +36 -44
  510. package/dist/components/VideoSettingPanel/i18n/en-US/index.js +5 -5
  511. package/dist/components/VideoSettingPanel/i18n/index.js +4 -4
  512. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +5 -5
  513. package/dist/components/VideoSettingPanel/index.js +48 -63
  514. package/dist/constants/emoji.js +3 -4
  515. package/dist/directives/vClickOutside.js +9 -23
  516. package/dist/directives/vDblTouch.js +26 -51
  517. package/dist/directives/vTap.js +37 -68
  518. package/dist/directives/vTouchScale.js +83 -155
  519. package/dist/handler/index.js +4 -4
  520. package/dist/handler/translator.js +65 -97
  521. package/dist/handler/voiceConverter.js +21 -30
  522. package/dist/hooks/index.d.ts +1 -1
  523. package/dist/hooks/index.js +4 -4
  524. package/dist/hooks/useAudioControl.js +44 -128
  525. package/dist/hooks/useLongPress.js +41 -75
  526. package/dist/hooks/useMessageActions.d.ts +1 -1
  527. package/dist/hooks/useMessageActions.js +46 -57
  528. package/dist/hooks/useMouseHover.js +16 -26
  529. package/dist/hooks/useReadReceipt/useReadReceipt.js +66 -114
  530. package/dist/hooks/useRoomActions/index.js +11 -14
  531. package/dist/hooks/useRoomActions/useRoomAudioAction.js +39 -44
  532. package/dist/hooks/useRoomActions/useRoomScreenAction.js +41 -48
  533. package/dist/hooks/useRoomActions/useRoomVideoAction.js +38 -44
  534. package/dist/hooks/useRoomEngine.js +14 -17
  535. package/dist/hooks/useScroll.js +52 -89
  536. package/dist/hooks/useUserActions/index.js +81 -117
  537. package/dist/hooks/useUserActions/useAdminAction.js +29 -35
  538. package/dist/hooks/useUserActions/useAudioAction.js +36 -40
  539. package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardDialog.js +59 -69
  540. package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardInput.js +40 -49
  541. package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +43 -51
  542. package/dist/hooks/useUserActions/useChatAction.js +23 -25
  543. package/dist/hooks/useUserActions/useKickUserAction.js +27 -32
  544. package/dist/hooks/useUserActions/useMemberInviteAction.js +24 -40
  545. package/dist/hooks/useUserActions/useSeatAction.js +96 -108
  546. package/dist/hooks/useUserActions/useTransferOwnerAction.js +40 -47
  547. package/dist/hooks/useUserActions/useVideoAction.js +35 -38
  548. package/dist/hooks/useZIndex.js +7 -12
  549. package/dist/i18n/index.js +4 -4
  550. package/dist/index-Bm-QfV5o.js +5125 -0
  551. package/dist/index-CeQ4nl87.js +44 -0
  552. package/dist/index-D2OVtqc8.js +12047 -0
  553. package/dist/index-DPczIrgX.js +42 -0
  554. package/dist/index-DTq2ybsB.js +33 -0
  555. package/dist/index.d.ts +2 -1
  556. package/dist/index.js +180 -159
  557. package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +32 -0
  558. package/dist/locales/en-US.js +31 -31
  559. package/dist/locales/index.js +29 -34
  560. package/dist/locales/zh-CN.js +31 -31
  561. package/dist/rtc/index.d.ts +35 -40
  562. package/dist/rtc/index.js +64 -86
  563. package/dist/rtc/server.js +62 -85
  564. package/dist/states/BarrageListState/BarrageListState.js +98 -183
  565. package/dist/states/BarrageListState/index.js +2 -2
  566. package/dist/states/BattleState.d.ts +46 -0
  567. package/dist/states/BattleState.js +117 -0
  568. package/dist/states/C2CSettingState/C2CSettingState.js +52 -92
  569. package/dist/states/C2CSettingState/index.js +2 -2
  570. package/dist/states/CoGuestState.d.ts +1 -1
  571. package/dist/states/CoGuestState.js +191 -291
  572. package/dist/states/CoHostState/CoHostState.d.ts +30 -0
  573. package/dist/states/CoHostState/CoHostState.js +209 -0
  574. package/dist/states/CoHostState/index.d.ts +1 -0
  575. package/dist/states/CoHostState/index.js +4 -0
  576. package/dist/states/ContactListState/ContactListState.js +175 -271
  577. package/dist/states/ContactListState/index.js +2 -2
  578. package/dist/states/ConversationListState/ConversationListState.js +61 -112
  579. package/dist/states/ConversationListState/index.js +2 -2
  580. package/dist/states/DeviceState.js +240 -389
  581. package/dist/states/GroupSettingState/GroupSettingState.js +220 -378
  582. package/dist/states/GroupSettingState/index.js +7 -7
  583. package/dist/states/GroupSettingState/permissions.js +240 -250
  584. package/dist/states/GroupSettingState/types.js +5 -41
  585. package/dist/states/LiveAudienceState.js +100 -132
  586. package/dist/states/LiveMonitorState/api/http.js +1245 -1910
  587. package/dist/states/LiveMonitorState/index.js +92 -148
  588. package/dist/states/LiveMonitorState/player/adapters/trtc.js +54 -106
  589. package/dist/states/LiveMonitorState/player/base/basePlayer.js +111 -169
  590. package/dist/states/LiveMonitorState/player/index.js +10 -10
  591. package/dist/states/LiveMonitorState/player/manager/playerManager.js +27 -33
  592. package/dist/states/LiveMonitorState/player/types/index.js +8 -8
  593. package/dist/states/LiveMonitorState/player/types/player.js +3 -13
  594. package/dist/states/LiveMonitorState/player/types/trtc.js +6 -20
  595. package/dist/states/LiveMonitorState/utils/index.js +17 -22
  596. package/dist/states/LiveSeatState/index.js +16 -16
  597. package/dist/states/LiveSeatState/seatEventManager.js +54 -75
  598. package/dist/states/LiveSeatState/seatManager.js +29 -36
  599. package/dist/states/LiveSeatState/store.js +18 -25
  600. package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +43 -65
  601. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +55 -83
  602. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +59 -97
  603. package/dist/states/LiveSeatState/usePlayStream/index.js +44 -96
  604. package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +43 -55
  605. package/dist/states/LiveState/index.js +190 -275
  606. package/dist/states/LoginState.js +48 -62
  607. package/dist/states/MessageActionState/MessageActionState.d.ts +6 -6
  608. package/dist/states/MessageActionState/MessageActionState.js +45 -56
  609. package/dist/states/MessageActionState/index.js +2 -2
  610. package/dist/states/MessageInputState/MessageInputState.js +90 -139
  611. package/dist/states/MessageInputState/index.js +4 -4
  612. package/dist/states/MessageInputState/type.js +2 -10
  613. package/dist/states/MessageInputState/utils.js +20 -21
  614. package/dist/states/MessageListState/MessageListState.js +65 -89
  615. package/dist/states/MessageListState/index.js +2 -2
  616. package/dist/states/RoomState.js +223 -332
  617. package/dist/states/SearchState.d.ts +2 -2
  618. package/dist/states/SearchState.js +229 -356
  619. package/dist/states/SeatStore.js +140 -213
  620. package/dist/states/UserState/index.js +31 -51
  621. package/dist/states/UserState/store.js +95 -147
  622. package/dist/states/UserState/userEventManager.js +85 -134
  623. package/dist/states/UserState/userManager.js +184 -232
  624. package/dist/states/VideoMixerState.js +181 -228
  625. package/dist/statistical/const.js +2 -6
  626. package/dist/statistical/index.js +4 -4
  627. package/dist/statistical/statistical.js +12 -12
  628. package/dist/styles/index.css +1 -13145
  629. package/dist/types/battle.d.ts +11 -0
  630. package/dist/types/battle.js +1 -0
  631. package/dist/types/call.d.ts +55 -0
  632. package/dist/types/call.js +4 -0
  633. package/dist/types/chatSetting.js +4 -4
  634. package/dist/types/coGuest.js +2 -8
  635. package/dist/types/coHost.d.ts +44 -4
  636. package/dist/types/coHost.js +4 -8
  637. package/dist/types/contact.js +3 -17
  638. package/dist/types/conversation.js +6 -36
  639. package/dist/types/device.d.ts +4 -0
  640. package/dist/types/device.js +8 -45
  641. package/dist/types/engine.d.ts +23 -7
  642. package/dist/types/engine.js +5 -23
  643. package/dist/types/index.d.ts +9 -6
  644. package/dist/types/index.js +92 -84
  645. package/dist/types/live.js +4 -21
  646. package/dist/types/message.js +4 -29
  647. package/dist/types/monitor.js +2 -6
  648. package/dist/types/room.js +3 -16
  649. package/dist/types/search.js +9 -15
  650. package/dist/types/seat.d.ts +4 -4
  651. package/dist/types/stream.js +3 -14
  652. package/dist/types/types.js +32 -329
  653. package/dist/types/user.d.ts +0 -3
  654. package/dist/types/user.js +8 -65
  655. package/dist/useId-CtirfF0W.js +12 -0
  656. package/dist/utils/call.d.ts +6 -2
  657. package/dist/utils/call.js +126 -11
  658. package/dist/utils/copyText.js +20 -33
  659. package/dist/utils/documentLink.js +2 -2
  660. package/dist/utils/domOperation.js +99 -122
  661. package/dist/utils/downFile.js +11 -19
  662. package/dist/utils/emoji.js +24 -31
  663. package/dist/utils/enableSampleTaskStatus.js +5 -8
  664. package/dist/utils/env.js +8 -13
  665. package/dist/utils/environment.js +14 -18
  666. package/dist/utils/index.js +36 -36
  667. package/dist/utils/json.js +34 -58
  668. package/dist/utils/lodash.js +63 -109
  669. package/dist/utils/riseInput.js +19 -36
  670. package/dist/utils/time.js +640 -934
  671. package/dist/utils/type-check.js +21 -46
  672. package/dist/utils/utils.js +131 -235
  673. package/dist/utils-DaB7eSu5.js +48 -0
  674. package/package.json +5 -4
  675. package/src/chat/index.ts +18 -0
  676. package/src/components/BarrageInput/TextEditor/Editor.scss +2 -2
  677. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
  678. package/src/components/ChatSetting/ChatSetting.vue +3 -3
  679. package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +3 -0
  680. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +1 -0
  681. package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +1 -0
  682. package/src/components/CoGuestPanel/CoGuestPanel.vue +2 -1
  683. package/src/components/CoHostPanel/BattlePanel.vue +271 -0
  684. package/src/components/CoHostPanel/CoHostPanel.vue +226 -0
  685. package/src/components/CoHostPanel/ConfigSettingPanel.vue +264 -0
  686. package/src/components/CoHostPanel/ConnectionPanel.vue +549 -0
  687. package/src/components/CoHostPanel/RecommendHostList.vue +306 -0
  688. package/src/components/CoHostPanel/UserList.vue +93 -0
  689. package/src/components/CoHostPanel/i18n/en-US/index.ts +78 -0
  690. package/src/components/CoHostPanel/i18n/index.ts +4 -0
  691. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +79 -0
  692. package/src/components/CoHostPanel/index.ts +7 -0
  693. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
  694. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
  695. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
  696. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
  697. package/src/components/LiveList/LiveList.vue +61 -106
  698. package/src/components/LiveList/LiveListH5.vue +1 -1
  699. package/src/components/LiveList/i18n/en-US/index.ts +1 -1
  700. package/src/components/LiveList/i18n/zh-CN/index.ts +1 -1
  701. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +420 -0
  702. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +140 -0
  703. package/src/components/LiveView/CoreViewDecorate/CoHostDecorate.vue +116 -0
  704. package/src/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
  705. package/src/components/LiveView/PlayerControl/MultiResolution.vue +130 -0
  706. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -8
  707. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +117 -1
  708. package/src/components/LiveView/assets/img/defeat.png +0 -0
  709. package/src/components/LiveView/assets/img/draw.png +0 -0
  710. package/src/components/LiveView/assets/img/victory.png +0 -0
  711. package/src/components/LiveView/assets/svg/BattleOrdinaryBadge.svg +20 -0
  712. package/src/components/LiveView/assets/svg/BattleTopBadge.svg +16 -0
  713. package/src/components/LiveView/assets/svg/blueBkg.svg +9 -0
  714. package/src/components/LiveView/assets/svg/redBkg.svg +9 -0
  715. package/src/components/LiveView/assets/svg/s.svg +17 -0
  716. package/src/components/LiveView/assets/svg/v.svg +17 -0
  717. package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +7 -0
  718. package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +7 -0
  719. package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
  720. package/src/components/{LiveCoreView → LiveView}/index.vue +5 -2
  721. package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +10 -8
  722. package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +59 -31
  723. package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +58 -31
  724. package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +58 -31
  725. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +240 -0
  726. package/src/components/MessageInput/AudioCallPicker/index.ts +3 -0
  727. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +107 -18
  728. package/src/components/MessageInput/MessageInput.module.scss +1 -1
  729. package/src/components/MessageInput/MessageInput.vue +6 -2
  730. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +246 -0
  731. package/src/components/MessageInput/VideoCallPicker/index.ts +3 -0
  732. package/src/components/MessageInput/i18n/en-US.ts +4 -0
  733. package/src/components/MessageInput/index.ts +10 -4
  734. package/src/components/MessageInput/types.d.ts +3 -1
  735. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +67 -0
  736. package/src/components/MessageList/Message/CustomMessage/CallMessage/index.ts +3 -0
  737. package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +59 -2
  738. package/src/components/MessageList/Message/CustomMessage/index.ts +1 -1
  739. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +9 -10
  740. package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
  741. package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +1 -1
  742. package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
  743. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +30 -18
  744. package/src/components/MessageList/i18n/en-US.ts +24 -1
  745. package/src/components/MessageList/i18n/index.ts +4 -4
  746. package/src/components/MessageList/i18n/zh-CN.ts +24 -1
  747. package/src/components/MessageList/index.ts +2 -2
  748. package/src/components/StreamMixer/index.vue +1 -1
  749. package/src/components/UserPicker/UserPicker.vue +0 -2
  750. package/src/hooks/index.ts +1 -2
  751. package/src/hooks/useMessageActions.ts +3 -3
  752. package/src/index.ts +2 -1
  753. package/src/rtc/index.ts +7 -2
  754. package/src/types/battle.ts +12 -0
  755. package/src/types/call.ts +62 -0
  756. package/src/types/coHost.ts +46 -4
  757. package/src/types/device.ts +5 -0
  758. package/src/types/engine.ts +45 -21
  759. package/src/types/index.ts +12 -6
  760. package/src/types/seat.ts +5 -5
  761. package/src/types/user.ts +0 -4
  762. package/src/utils/call.ts +233 -5
  763. package/src/utils/time.ts +1 -1
  764. package/dist/AttachmentPicker.module-BesmtGyl.js +0 -11
  765. package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-BmX-qsat.js +0 -108
  766. package/dist/DialogPortal-DWeT-J6v.js +0 -496
  767. package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +0 -76
  768. package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +0 -76
  769. package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js +0 -43
  770. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js +0 -128
  771. package/dist/PopoverTrigger-BKOIHfdS.js +0 -679
  772. package/dist/PopperContent-DtL7HVWz.js +0 -2227
  773. package/dist/Teleport-CMvGsENT.js +0 -1365
  774. package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +0 -76
  775. package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-CnE-LwNh.js +0 -108
  776. package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
  777. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
  778. package/dist/components/LiveCoreView/DefaultStreamViewUI.js +0 -177
  779. package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +0 -252
  780. package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -279
  781. package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -412
  782. package/dist/components/LiveCoreView/PlayerControl/index.js +0 -8
  783. package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +0 -129
  784. package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -120
  785. package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +0 -311
  786. package/dist/components/LiveCoreView/i18n/en-US/index.js +0 -16
  787. package/dist/components/LiveCoreView/i18n/index.js +0 -6
  788. package/dist/components/LiveCoreView/i18n/zh-CN/index.js +0 -16
  789. package/dist/components/LiveCoreView/index.d.ts +0 -4
  790. package/dist/components/LiveCoreView/index.js +0 -366
  791. package/dist/index-BF6QB9jF.js +0 -63
  792. package/dist/index-BPFJrNlA.js +0 -15915
  793. package/dist/index-CX1Zs9En.js +0 -44
  794. package/dist/index-DRcLhqhU.js +0 -38
  795. package/dist/index-v15JHz0-.js +0 -7655
  796. package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +0 -36
  797. package/dist/states/CoHostState.d.ts +0 -22
  798. package/dist/states/CoHostState.js +0 -178
  799. package/dist/useId-CsgLY8y3.js +0 -13
  800. package/dist/utils-KP1QpeUS.js +0 -59
  801. package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +0 -28
  802. /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
  803. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
  804. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
  805. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
  806. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
  807. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
  808. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
  809. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
  810. /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
  811. /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
  812. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +0 -0
  813. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
  814. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
  815. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
  816. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +0 -0
  817. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
  818. /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
@@ -1,410 +1,246 @@
1
- function bind(fn, thisArg) {
2
- return function wrap() {
3
- return fn.apply(thisArg, arguments);
1
+ function We(e, t) {
2
+ return function() {
3
+ return e.apply(t, arguments);
4
4
  };
5
5
  }
6
- const { toString } = Object.prototype;
7
- const { getPrototypeOf } = Object;
8
- const { iterator, toStringTag } = Symbol;
9
- const kindOf = /* @__PURE__ */ ((cache) => (thing) => {
10
- const str = toString.call(thing);
11
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
12
- })(/* @__PURE__ */ Object.create(null));
13
- const kindOfTest = (type) => {
14
- type = type.toLowerCase();
15
- return (thing) => kindOf(thing) === type;
16
- };
17
- const typeOfTest = (type) => (thing) => typeof thing === type;
18
- const { isArray } = Array;
19
- const isUndefined = typeOfTest("undefined");
20
- function isBuffer(val) {
21
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
6
+ const { toString: yt } = Object.prototype, { getPrototypeOf: we } = Object, { iterator: re, toStringTag: Ke } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
7
+ const n = yt.call(t);
8
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
9
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, H = oe("undefined");
10
+ function V(e) {
11
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
22
12
  }
23
- const isArrayBuffer = kindOfTest("ArrayBuffer");
24
- function isArrayBufferView(val) {
25
- let result;
26
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
27
- result = ArrayBuffer.isView(val);
28
- } else {
29
- result = val && val.buffer && isArrayBuffer(val.buffer);
30
- }
31
- return result;
13
+ const ve = P("ArrayBuffer");
14
+ function bt(e) {
15
+ let t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ve(e.buffer), t;
32
17
  }
33
- const isString = typeOfTest("string");
34
- const isFunction = typeOfTest("function");
35
- const isNumber = typeOfTest("number");
36
- const isObject = (thing) => thing !== null && typeof thing === "object";
37
- const isBoolean = (thing) => thing === true || thing === false;
38
- const isPlainObject = (val) => {
39
- if (kindOf(val) !== "object") {
40
- return false;
41
- }
42
- const prototype2 = getPrototypeOf(val);
43
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
44
- };
45
- const isEmptyObject = (val) => {
46
- if (!isObject(val) || isBuffer(val)) {
47
- return false;
48
- }
18
+ const wt = oe("string"), T = oe("function"), Xe = oe("number"), W = (e) => e !== null && typeof e == "object", Et = (e) => e === !0 || e === !1, Y = (e) => {
19
+ if (se(e) !== "object")
20
+ return !1;
21
+ const t = we(e);
22
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ke in e) && !(re in e);
23
+ }, gt = (e) => {
24
+ if (!W(e) || V(e))
25
+ return !1;
49
26
  try {
50
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
51
- } catch (e) {
52
- return false;
53
- }
54
- };
55
- const isDate = kindOfTest("Date");
56
- const isFile = kindOfTest("File");
57
- const isBlob = kindOfTest("Blob");
58
- const isFileList = kindOfTest("FileList");
59
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
60
- const isFormData = (thing) => {
61
- let kind;
62
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
63
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
64
- };
65
- const isURLSearchParams = kindOfTest("URLSearchParams");
66
- const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
67
- const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
68
- function forEach(obj, fn, { allOwnKeys = false } = {}) {
69
- if (obj === null || typeof obj === "undefined") {
27
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
28
+ } catch {
29
+ return !1;
30
+ }
31
+ }, Rt = P("Date"), St = P("File"), Ot = P("Blob"), Tt = P("FileList"), At = (e) => W(e) && T(e.pipe), xt = (e) => {
32
+ let t;
33
+ return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
34
+ t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
35
+ }, Ct = P("URLSearchParams"), [Nt, Pt, _t, Ft] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
+ function K(e, t, { allOwnKeys: n = !1 } = {}) {
37
+ if (e === null || typeof e > "u")
70
38
  return;
71
- }
72
- let i;
73
- let l;
74
- if (typeof obj !== "object") {
75
- obj = [obj];
76
- }
77
- if (isArray(obj)) {
78
- for (i = 0, l = obj.length; i < l; i++) {
79
- fn.call(null, obj[i], i, obj);
80
- }
81
- } else {
82
- if (isBuffer(obj)) {
39
+ let r, s;
40
+ if (typeof e != "object" && (e = [e]), M(e))
41
+ for (r = 0, s = e.length; r < s; r++)
42
+ t.call(null, e[r], r, e);
43
+ else {
44
+ if (V(e))
83
45
  return;
84
- }
85
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
86
- const len = keys.length;
87
- let key;
88
- for (i = 0; i < len; i++) {
89
- key = keys[i];
90
- fn.call(null, obj[key], key, obj);
91
- }
46
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
47
+ let c;
48
+ for (r = 0; r < o; r++)
49
+ c = i[r], t.call(null, e[c], c, e);
92
50
  }
93
51
  }
94
- function findKey(obj, key) {
95
- if (isBuffer(obj)) {
52
+ function Ge(e, t) {
53
+ if (V(e))
96
54
  return null;
97
- }
98
- key = key.toLowerCase();
99
- const keys = Object.keys(obj);
100
- let i = keys.length;
101
- let _key;
102
- while (i-- > 0) {
103
- _key = keys[i];
104
- if (key === _key.toLowerCase()) {
105
- return _key;
106
- }
107
- }
55
+ t = t.toLowerCase();
56
+ const n = Object.keys(e);
57
+ let r = n.length, s;
58
+ for (; r-- > 0; )
59
+ if (s = n[r], t === s.toLowerCase())
60
+ return s;
108
61
  return null;
109
62
  }
110
- const _global = (() => {
111
- if (typeof globalThis !== "undefined") return globalThis;
112
- return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
113
- })();
114
- const isContextDefined = (context) => !isUndefined(context) && context !== _global;
115
- function merge() {
116
- const { caseless } = isContextDefined(this) && this || {};
117
- const result = {};
118
- const assignValue = (val, key) => {
119
- const targetKey = caseless && findKey(result, key) || key;
120
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
121
- result[targetKey] = merge(result[targetKey], val);
122
- } else if (isPlainObject(val)) {
123
- result[targetKey] = merge({}, val);
124
- } else if (isArray(val)) {
125
- result[targetKey] = val.slice();
126
- } else {
127
- result[targetKey] = val;
128
- }
63
+ const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qe = (e) => !H(e) && e !== k;
64
+ function pe() {
65
+ const { caseless: e, skipUndefined: t } = Qe(this) && this || {}, n = {}, r = (s, i) => {
66
+ const o = e && Ge(n, i) || i;
67
+ Y(n[o]) && Y(s) ? n[o] = pe(n[o], s) : Y(s) ? n[o] = pe({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
129
68
  };
130
- for (let i = 0, l = arguments.length; i < l; i++) {
131
- arguments[i] && forEach(arguments[i], assignValue);
132
- }
133
- return result;
69
+ for (let s = 0, i = arguments.length; s < i; s++)
70
+ arguments[s] && K(arguments[s], r);
71
+ return n;
134
72
  }
135
- const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
136
- forEach(b, (val, key) => {
137
- if (thisArg && isFunction(val)) {
138
- a[key] = bind(val, thisArg);
139
- } else {
140
- a[key] = val;
141
- }
142
- }, { allOwnKeys });
143
- return a;
144
- };
145
- const stripBOM = (content) => {
146
- if (content.charCodeAt(0) === 65279) {
147
- content = content.slice(1);
148
- }
149
- return content;
150
- };
151
- const inherits = (constructor, superConstructor, props, descriptors2) => {
152
- constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
153
- constructor.prototype.constructor = constructor;
154
- Object.defineProperty(constructor, "super", {
155
- value: superConstructor.prototype
156
- });
157
- props && Object.assign(constructor.prototype, props);
158
- };
159
- const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
160
- let props;
161
- let i;
162
- let prop;
163
- const merged = {};
164
- destObj = destObj || {};
165
- if (sourceObj == null) return destObj;
73
+ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
74
+ n && T(s) ? e[i] = We(s, n) : e[i] = s;
75
+ }, { allOwnKeys: r }), e), Bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, r) => {
76
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
77
+ value: t.prototype
78
+ }), n && Object.assign(e.prototype, n);
79
+ }, kt = (e, t, n, r) => {
80
+ let s, i, o;
81
+ const c = {};
82
+ if (t = t || {}, e == null) return t;
166
83
  do {
167
- props = Object.getOwnPropertyNames(sourceObj);
168
- i = props.length;
169
- while (i-- > 0) {
170
- prop = props[i];
171
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
172
- destObj[prop] = sourceObj[prop];
173
- merged[prop] = true;
84
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
85
+ o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
86
+ e = n !== !1 && we(e);
87
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
88
+ return t;
89
+ }, jt = (e, t, n) => {
90
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
91
+ const r = e.indexOf(t, n);
92
+ return r !== -1 && r === n;
93
+ }, qt = (e) => {
94
+ if (!e) return null;
95
+ if (M(e)) return e;
96
+ let t = e.length;
97
+ if (!Xe(t)) return null;
98
+ const n = new Array(t);
99
+ for (; t-- > 0; )
100
+ n[t] = e[t];
101
+ return n;
102
+ }, It = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), Ht = (e, t) => {
103
+ const r = (e && e[re]).call(e);
104
+ let s;
105
+ for (; (s = r.next()) && !s.done; ) {
106
+ const i = s.value;
107
+ t.call(e, i[0], i[1]);
108
+ }
109
+ }, Mt = (e, t) => {
110
+ let n;
111
+ const r = [];
112
+ for (; (n = e.exec(t)) !== null; )
113
+ r.push(n);
114
+ return r;
115
+ }, zt = P("HTMLFormElement"), Jt = (e) => e.toLowerCase().replace(
116
+ /[-_\s]([a-z\d])(\w*)/g,
117
+ function(n, r, s) {
118
+ return r.toUpperCase() + s;
119
+ }
120
+ ), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), $t = P("RegExp"), Ze = (e, t) => {
121
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
122
+ K(n, (s, i) => {
123
+ let o;
124
+ (o = t(s, i, e)) !== !1 && (r[i] = o || s);
125
+ }), Object.defineProperties(e, r);
126
+ }, Vt = (e) => {
127
+ Ze(e, (t, n) => {
128
+ if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
129
+ return !1;
130
+ const r = e[n];
131
+ if (T(r)) {
132
+ if (t.enumerable = !1, "writable" in t) {
133
+ t.writable = !1;
134
+ return;
174
135
  }
175
- }
176
- sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
177
- } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
178
- return destObj;
179
- };
180
- const endsWith = (str, searchString, position) => {
181
- str = String(str);
182
- if (position === void 0 || position > str.length) {
183
- position = str.length;
184
- }
185
- position -= searchString.length;
186
- const lastIndex = str.indexOf(searchString, position);
187
- return lastIndex !== -1 && lastIndex === position;
188
- };
189
- const toArray = (thing) => {
190
- if (!thing) return null;
191
- if (isArray(thing)) return thing;
192
- let i = thing.length;
193
- if (!isNumber(i)) return null;
194
- const arr = new Array(i);
195
- while (i-- > 0) {
196
- arr[i] = thing[i];
197
- }
198
- return arr;
199
- };
200
- const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
201
- return (thing) => {
202
- return TypedArray && thing instanceof TypedArray;
203
- };
204
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
205
- const forEachEntry = (obj, fn) => {
206
- const generator = obj && obj[iterator];
207
- const _iterator = generator.call(obj);
208
- let result;
209
- while ((result = _iterator.next()) && !result.done) {
210
- const pair = result.value;
211
- fn.call(obj, pair[0], pair[1]);
212
- }
213
- };
214
- const matchAll = (regExp, str) => {
215
- let matches;
216
- const arr = [];
217
- while ((matches = regExp.exec(str)) !== null) {
218
- arr.push(matches);
219
- }
220
- return arr;
221
- };
222
- const isHTMLForm = kindOfTest("HTMLFormElement");
223
- const toCamelCase = (str) => {
224
- return str.toLowerCase().replace(
225
- /[-_\s]([a-z\d])(\w*)/g,
226
- function replacer(m, p1, p2) {
227
- return p1.toUpperCase() + p2;
228
- }
229
- );
230
- };
231
- const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
232
- const isRegExp = kindOfTest("RegExp");
233
- const reduceDescriptors = (obj, reducer) => {
234
- const descriptors2 = Object.getOwnPropertyDescriptors(obj);
235
- const reducedDescriptors = {};
236
- forEach(descriptors2, (descriptor, name) => {
237
- let ret;
238
- if ((ret = reducer(descriptor, name, obj)) !== false) {
239
- reducedDescriptors[name] = ret || descriptor;
240
- }
241
- });
242
- Object.defineProperties(obj, reducedDescriptors);
243
- };
244
- const freezeMethods = (obj) => {
245
- reduceDescriptors(obj, (descriptor, name) => {
246
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
247
- return false;
248
- }
249
- const value = obj[name];
250
- if (!isFunction(value)) return;
251
- descriptor.enumerable = false;
252
- if ("writable" in descriptor) {
253
- descriptor.writable = false;
254
- return;
255
- }
256
- if (!descriptor.set) {
257
- descriptor.set = () => {
258
- throw Error("Can not rewrite read-only method '" + name + "'");
259
- };
136
+ t.set || (t.set = () => {
137
+ throw Error("Can not rewrite read-only method '" + n + "'");
138
+ });
260
139
  }
261
140
  });
262
- };
263
- const toObjectSet = (arrayOrString, delimiter) => {
264
- const obj = {};
265
- const define = (arr) => {
266
- arr.forEach((value) => {
267
- obj[value] = true;
141
+ }, Wt = (e, t) => {
142
+ const n = {}, r = (s) => {
143
+ s.forEach((i) => {
144
+ n[i] = !0;
268
145
  });
269
146
  };
270
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
271
- return obj;
272
- };
273
- const noop = () => {
274
- };
275
- const toFiniteNumber = (value, defaultValue) => {
276
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
277
- };
278
- function isSpecCompliantForm(thing) {
279
- return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
147
+ return M(e) ? r(e) : r(String(e).split(t)), n;
148
+ }, Kt = () => {
149
+ }, vt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
150
+ function Xt(e) {
151
+ return !!(e && T(e.append) && e[Ke] === "FormData" && e[re]);
280
152
  }
281
- const toJSONObject = (obj) => {
282
- const stack = new Array(10);
283
- const visit = (source, i) => {
284
- if (isObject(source)) {
285
- if (stack.indexOf(source) >= 0) {
153
+ const Gt = (e) => {
154
+ const t = new Array(10), n = (r, s) => {
155
+ if (W(r)) {
156
+ if (t.indexOf(r) >= 0)
286
157
  return;
287
- }
288
- if (isBuffer(source)) {
289
- return source;
290
- }
291
- if (!("toJSON" in source)) {
292
- stack[i] = source;
293
- const target = isArray(source) ? [] : {};
294
- forEach(source, (value, key) => {
295
- const reducedValue = visit(value, i + 1);
296
- !isUndefined(reducedValue) && (target[key] = reducedValue);
297
- });
298
- stack[i] = void 0;
299
- return target;
158
+ if (V(r))
159
+ return r;
160
+ if (!("toJSON" in r)) {
161
+ t[s] = r;
162
+ const i = M(r) ? [] : {};
163
+ return K(r, (o, c) => {
164
+ const d = n(o, s + 1);
165
+ !H(d) && (i[c] = d);
166
+ }), t[s] = void 0, i;
300
167
  }
301
168
  }
302
- return source;
169
+ return r;
303
170
  };
304
- return visit(obj, 0);
305
- };
306
- const isAsyncFn = kindOfTest("AsyncFunction");
307
- const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
308
- const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
309
- if (setImmediateSupported) {
310
- return setImmediate;
311
- }
312
- return postMessageSupported ? ((token, callbacks) => {
313
- _global.addEventListener("message", ({ source, data }) => {
314
- if (source === _global && data === token) {
315
- callbacks.length && callbacks.shift()();
316
- }
317
- }, false);
318
- return (cb) => {
319
- callbacks.push(cb);
320
- _global.postMessage(token, "*");
321
- };
322
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
323
- })(
324
- typeof setImmediate === "function",
325
- isFunction(_global.postMessage)
326
- );
327
- const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
328
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
329
- const utils$1 = {
330
- isArray,
331
- isArrayBuffer,
332
- isBuffer,
333
- isFormData,
334
- isArrayBufferView,
335
- isString,
336
- isNumber,
337
- isBoolean,
338
- isObject,
339
- isPlainObject,
340
- isEmptyObject,
341
- isReadableStream,
342
- isRequest,
343
- isResponse,
344
- isHeaders,
345
- isUndefined,
346
- isDate,
347
- isFile,
348
- isBlob,
349
- isRegExp,
350
- isFunction,
351
- isStream,
352
- isURLSearchParams,
353
- isTypedArray,
354
- isFileList,
355
- forEach,
356
- merge,
357
- extend,
358
- trim,
359
- stripBOM,
360
- inherits,
361
- toFlatObject,
362
- kindOf,
363
- kindOfTest,
364
- endsWith,
365
- toArray,
366
- forEachEntry,
367
- matchAll,
368
- isHTMLForm,
369
- hasOwnProperty,
370
- hasOwnProp: hasOwnProperty,
171
+ return n(e, 0);
172
+ }, Qt = P("AsyncFunction"), Zt = (e) => e && (W(e) || T(e)) && T(e.then) && T(e.catch), Ye = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
173
+ s === k && i === n && r.length && r.shift()();
174
+ }, !1), (s) => {
175
+ r.push(s), k.postMessage(n, "*");
176
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
177
+ typeof setImmediate == "function",
178
+ T(k.postMessage)
179
+ ), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Ye, en = (e) => e != null && T(e[re]), a = {
180
+ isArray: M,
181
+ isArrayBuffer: ve,
182
+ isBuffer: V,
183
+ isFormData: xt,
184
+ isArrayBufferView: bt,
185
+ isString: wt,
186
+ isNumber: Xe,
187
+ isBoolean: Et,
188
+ isObject: W,
189
+ isPlainObject: Y,
190
+ isEmptyObject: gt,
191
+ isReadableStream: Nt,
192
+ isRequest: Pt,
193
+ isResponse: _t,
194
+ isHeaders: Ft,
195
+ isUndefined: H,
196
+ isDate: Rt,
197
+ isFile: St,
198
+ isBlob: Ot,
199
+ isRegExp: $t,
200
+ isFunction: T,
201
+ isStream: At,
202
+ isURLSearchParams: Ct,
203
+ isTypedArray: It,
204
+ isFileList: Tt,
205
+ forEach: K,
206
+ merge: pe,
207
+ extend: Ut,
208
+ trim: Lt,
209
+ stripBOM: Bt,
210
+ inherits: Dt,
211
+ toFlatObject: kt,
212
+ kindOf: se,
213
+ kindOfTest: P,
214
+ endsWith: jt,
215
+ toArray: qt,
216
+ forEachEntry: Ht,
217
+ matchAll: Mt,
218
+ isHTMLForm: zt,
219
+ hasOwnProperty: _e,
220
+ hasOwnProp: _e,
371
221
  // an alias to avoid ESLint no-prototype-builtins detection
372
- reduceDescriptors,
373
- freezeMethods,
374
- toObjectSet,
375
- toCamelCase,
376
- noop,
377
- toFiniteNumber,
378
- findKey,
379
- global: _global,
380
- isContextDefined,
381
- isSpecCompliantForm,
382
- toJSONObject,
383
- isAsyncFn,
384
- isThenable,
385
- setImmediate: _setImmediate,
386
- asap,
387
- isIterable
222
+ reduceDescriptors: Ze,
223
+ freezeMethods: Vt,
224
+ toObjectSet: Wt,
225
+ toCamelCase: Jt,
226
+ noop: Kt,
227
+ toFiniteNumber: vt,
228
+ findKey: Ge,
229
+ global: k,
230
+ isContextDefined: Qe,
231
+ isSpecCompliantForm: Xt,
232
+ toJSONObject: Gt,
233
+ isAsyncFn: Qt,
234
+ isThenable: Zt,
235
+ setImmediate: Ye,
236
+ asap: Yt,
237
+ isIterable: en
388
238
  };
389
- function AxiosError(message, code, config, request, response) {
390
- Error.call(this);
391
- if (Error.captureStackTrace) {
392
- Error.captureStackTrace(this, this.constructor);
393
- } else {
394
- this.stack = new Error().stack;
395
- }
396
- this.message = message;
397
- this.name = "AxiosError";
398
- code && (this.code = code);
399
- config && (this.config = config);
400
- request && (this.request = request);
401
- if (response) {
402
- this.response = response;
403
- this.status = response.status ? response.status : null;
404
- }
239
+ function y(e, t, n, r, s) {
240
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
405
241
  }
406
- utils$1.inherits(AxiosError, Error, {
407
- toJSON: function toJSON() {
242
+ a.inherits(y, Error, {
243
+ toJSON: function() {
408
244
  return {
409
245
  // Standard
410
246
  message: this.message,
@@ -418,14 +254,13 @@ utils$1.inherits(AxiosError, Error, {
418
254
  columnNumber: this.columnNumber,
419
255
  stack: this.stack,
420
256
  // Axios
421
- config: utils$1.toJSONObject(this.config),
257
+ config: a.toJSONObject(this.config),
422
258
  code: this.code,
423
259
  status: this.status
424
260
  };
425
261
  }
426
262
  });
427
- const prototype$1 = AxiosError.prototype;
428
- const descriptors = {};
263
+ const et = y.prototype, tt = {};
429
264
  [
430
265
  "ERR_BAD_OPTION_VALUE",
431
266
  "ERR_BAD_OPTION",
@@ -440,139 +275,102 @@ const descriptors = {};
440
275
  "ERR_NOT_SUPPORT",
441
276
  "ERR_INVALID_URL"
442
277
  // eslint-disable-next-line func-names
443
- ].forEach((code) => {
444
- descriptors[code] = { value: code };
278
+ ].forEach((e) => {
279
+ tt[e] = { value: e };
445
280
  });
446
- Object.defineProperties(AxiosError, descriptors);
447
- Object.defineProperty(prototype$1, "isAxiosError", { value: true });
448
- AxiosError.from = (error, code, config, request, response, customProps) => {
449
- const axiosError = Object.create(prototype$1);
450
- utils$1.toFlatObject(error, axiosError, function filter2(obj) {
451
- return obj !== Error.prototype;
452
- }, (prop) => {
453
- return prop !== "isAxiosError";
454
- });
455
- AxiosError.call(axiosError, error.message, code, config, request, response);
456
- axiosError.cause = error;
457
- axiosError.name = error.name;
458
- customProps && Object.assign(axiosError, customProps);
459
- return axiosError;
281
+ Object.defineProperties(y, tt);
282
+ Object.defineProperty(et, "isAxiosError", { value: !0 });
283
+ y.from = (e, t, n, r, s, i) => {
284
+ const o = Object.create(et);
285
+ a.toFlatObject(e, o, function(l) {
286
+ return l !== Error.prototype;
287
+ }, (f) => f !== "isAxiosError");
288
+ const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
289
+ return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
460
290
  };
461
- const httpAdapter = null;
462
- function isVisitable(thing) {
463
- return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
291
+ const tn = null;
292
+ function he(e) {
293
+ return a.isPlainObject(e) || a.isArray(e);
464
294
  }
465
- function removeBrackets(key) {
466
- return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
295
+ function nt(e) {
296
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
467
297
  }
468
- function renderKey(path, key, dots) {
469
- if (!path) return key;
470
- return path.concat(key).map(function each(token, i) {
471
- token = removeBrackets(token);
472
- return !dots && i ? "[" + token + "]" : token;
473
- }).join(dots ? "." : "");
298
+ function Fe(e, t, n) {
299
+ return e ? e.concat(t).map(function(s, i) {
300
+ return s = nt(s), !n && i ? "[" + s + "]" : s;
301
+ }).join(n ? "." : "") : t;
474
302
  }
475
- function isFlatArray(arr) {
476
- return utils$1.isArray(arr) && !arr.some(isVisitable);
303
+ function nn(e) {
304
+ return a.isArray(e) && !e.some(he);
477
305
  }
478
- const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
479
- return /^is[A-Z]/.test(prop);
306
+ const rn = a.toFlatObject(a, {}, null, function(t) {
307
+ return /^is[A-Z]/.test(t);
480
308
  });
481
- function toFormData(obj, formData, options) {
482
- if (!utils$1.isObject(obj)) {
309
+ function ie(e, t, n) {
310
+ if (!a.isObject(e))
483
311
  throw new TypeError("target must be an object");
484
- }
485
- formData = formData || new FormData();
486
- options = utils$1.toFlatObject(options, {
487
- metaTokens: true,
488
- dots: false,
489
- indexes: false
490
- }, false, function defined(option, source) {
491
- return !utils$1.isUndefined(source[option]);
312
+ t = t || new FormData(), n = a.toFlatObject(n, {
313
+ metaTokens: !0,
314
+ dots: !1,
315
+ indexes: !1
316
+ }, !1, function(m, p) {
317
+ return !a.isUndefined(p[m]);
492
318
  });
493
- const metaTokens = options.metaTokens;
494
- const visitor = options.visitor || defaultVisitor;
495
- const dots = options.dots;
496
- const indexes = options.indexes;
497
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
498
- const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
499
- if (!utils$1.isFunction(visitor)) {
319
+ const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
320
+ if (!a.isFunction(s))
500
321
  throw new TypeError("visitor must be a function");
501
- }
502
- function convertValue(value) {
503
- if (value === null) return "";
504
- if (utils$1.isDate(value)) {
505
- return value.toISOString();
506
- }
507
- if (utils$1.isBoolean(value)) {
508
- return value.toString();
509
- }
510
- if (!useBlob && utils$1.isBlob(value)) {
511
- throw new AxiosError("Blob is not supported. Use a Buffer instead.");
512
- }
513
- if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
514
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
515
- }
516
- return value;
517
- }
518
- function defaultVisitor(value, key, path) {
519
- let arr = value;
520
- if (value && !path && typeof value === "object") {
521
- if (utils$1.endsWith(key, "{}")) {
522
- key = metaTokens ? key : key.slice(0, -2);
523
- value = JSON.stringify(value);
524
- } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
525
- key = removeBrackets(key);
526
- arr.forEach(function each(el, index) {
527
- !(utils$1.isUndefined(el) || el === null) && formData.append(
322
+ function f(u) {
323
+ if (u === null) return "";
324
+ if (a.isDate(u))
325
+ return u.toISOString();
326
+ if (a.isBoolean(u))
327
+ return u.toString();
328
+ if (!d && a.isBlob(u))
329
+ throw new y("Blob is not supported. Use a Buffer instead.");
330
+ return a.isArrayBuffer(u) || a.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ }
332
+ function l(u, m, p) {
333
+ let E = u;
334
+ if (u && !p && typeof u == "object") {
335
+ if (a.endsWith(m, "{}"))
336
+ m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
337
+ else if (a.isArray(u) && nn(u) || (a.isFileList(u) || a.endsWith(m, "[]")) && (E = a.toArray(u)))
338
+ return m = nt(m), E.forEach(function(g, O) {
339
+ !(a.isUndefined(g) || g === null) && t.append(
528
340
  // eslint-disable-next-line no-nested-ternary
529
- indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
530
- convertValue(el)
341
+ o === !0 ? Fe([m], O, i) : o === null ? m : m + "[]",
342
+ f(g)
531
343
  );
532
- });
533
- return false;
534
- }
344
+ }), !1;
535
345
  }
536
- if (isVisitable(value)) {
537
- return true;
538
- }
539
- formData.append(renderKey(path, key, dots), convertValue(value));
540
- return false;
346
+ return he(u) ? !0 : (t.append(Fe(p, m, i), f(u)), !1);
541
347
  }
542
- const stack = [];
543
- const exposedHelpers = Object.assign(predicates, {
544
- defaultVisitor,
545
- convertValue,
546
- isVisitable
348
+ const h = [], b = Object.assign(rn, {
349
+ defaultVisitor: l,
350
+ convertValue: f,
351
+ isVisitable: he
547
352
  });
548
- function build(value, path) {
549
- if (utils$1.isUndefined(value)) return;
550
- if (stack.indexOf(value) !== -1) {
551
- throw Error("Circular reference detected in " + path.join("."));
552
- }
553
- stack.push(value);
554
- utils$1.forEach(value, function each(el, key) {
555
- const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
556
- formData,
557
- el,
558
- utils$1.isString(key) ? key.trim() : key,
559
- path,
560
- exposedHelpers
561
- );
562
- if (result === true) {
563
- build(el, path ? path.concat(key) : [key]);
564
- }
565
- });
566
- stack.pop();
567
- }
568
- if (!utils$1.isObject(obj)) {
353
+ function R(u, m) {
354
+ if (!a.isUndefined(u)) {
355
+ if (h.indexOf(u) !== -1)
356
+ throw Error("Circular reference detected in " + m.join("."));
357
+ h.push(u), a.forEach(u, function(E, x) {
358
+ (!(a.isUndefined(E) || E === null) && s.call(
359
+ t,
360
+ E,
361
+ a.isString(x) ? x.trim() : x,
362
+ m,
363
+ b
364
+ )) === !0 && R(E, m ? m.concat(x) : [x]);
365
+ }), h.pop();
366
+ }
367
+ }
368
+ if (!a.isObject(e))
569
369
  throw new TypeError("data must be an object");
570
- }
571
- build(obj);
572
- return formData;
370
+ return R(e), t;
573
371
  }
574
- function encode$1(str) {
575
- const charMap = {
372
+ function Le(e) {
373
+ const t = {
576
374
  "!": "%21",
577
375
  "'": "%27",
578
376
  "(": "%28",
@@ -581,56 +379,44 @@ function encode$1(str) {
581
379
  "%20": "+",
582
380
  "%00": "\0"
583
381
  };
584
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
585
- return charMap[match];
382
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
383
+ return t[r];
586
384
  });
587
385
  }
588
- function AxiosURLSearchParams(params, options) {
589
- this._pairs = [];
590
- params && toFormData(params, this, options);
386
+ function Ee(e, t) {
387
+ this._pairs = [], e && ie(e, this, t);
591
388
  }
592
- const prototype = AxiosURLSearchParams.prototype;
593
- prototype.append = function append(name, value) {
594
- this._pairs.push([name, value]);
389
+ const rt = Ee.prototype;
390
+ rt.append = function(t, n) {
391
+ this._pairs.push([t, n]);
595
392
  };
596
- prototype.toString = function toString2(encoder) {
597
- const _encode = encoder ? function(value) {
598
- return encoder.call(this, value, encode$1);
599
- } : encode$1;
600
- return this._pairs.map(function each(pair) {
601
- return _encode(pair[0]) + "=" + _encode(pair[1]);
393
+ rt.toString = function(t) {
394
+ const n = t ? function(r) {
395
+ return t.call(this, r, Le);
396
+ } : Le;
397
+ return this._pairs.map(function(s) {
398
+ return n(s[0]) + "=" + n(s[1]);
602
399
  }, "").join("&");
603
400
  };
604
- function encode(val) {
605
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
401
+ function sn(e) {
402
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
606
403
  }
607
- function buildURL(url, params, options) {
608
- if (!params) {
609
- return url;
610
- }
611
- const _encode = options && options.encode || encode;
612
- if (utils$1.isFunction(options)) {
613
- options = {
614
- serialize: options
615
- };
616
- }
617
- const serializeFn = options && options.serialize;
618
- let serializedParams;
619
- if (serializeFn) {
620
- serializedParams = serializeFn(params, options);
621
- } else {
622
- serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
623
- }
624
- if (serializedParams) {
625
- const hashmarkIndex = url.indexOf("#");
626
- if (hashmarkIndex !== -1) {
627
- url = url.slice(0, hashmarkIndex);
628
- }
629
- url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
404
+ function st(e, t, n) {
405
+ if (!t)
406
+ return e;
407
+ const r = n && n.encode || sn;
408
+ a.isFunction(n) && (n = {
409
+ serialize: n
410
+ });
411
+ const s = n && n.serialize;
412
+ let i;
413
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Ee(t, n).toString(r), i) {
414
+ const o = e.indexOf("#");
415
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
630
416
  }
631
- return url;
417
+ return e;
632
418
  }
633
- class InterceptorManager {
419
+ class Ue {
634
420
  constructor() {
635
421
  this.handlers = [];
636
422
  }
@@ -642,14 +428,13 @@ class InterceptorManager {
642
428
  *
643
429
  * @return {Number} An ID used to remove interceptor later
644
430
  */
645
- use(fulfilled, rejected, options) {
646
- this.handlers.push({
647
- fulfilled,
648
- rejected,
649
- synchronous: options ? options.synchronous : false,
650
- runWhen: options ? options.runWhen : null
651
- });
652
- return this.handlers.length - 1;
431
+ use(t, n, r) {
432
+ return this.handlers.push({
433
+ fulfilled: t,
434
+ rejected: n,
435
+ synchronous: r ? r.synchronous : !1,
436
+ runWhen: r ? r.runWhen : null
437
+ }), this.handlers.length - 1;
653
438
  }
654
439
  /**
655
440
  * Remove an interceptor from the stack
@@ -658,10 +443,8 @@ class InterceptorManager {
658
443
  *
659
444
  * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
660
445
  */
661
- eject(id) {
662
- if (this.handlers[id]) {
663
- this.handlers[id] = null;
664
- }
446
+ eject(t) {
447
+ this.handlers[t] && (this.handlers[t] = null);
665
448
  }
666
449
  /**
667
450
  * Clear all interceptors from the stack
@@ -669,9 +452,7 @@ class InterceptorManager {
669
452
  * @returns {void}
670
453
  */
671
454
  clear() {
672
- if (this.handlers) {
673
- this.handlers = [];
674
- }
455
+ this.handlers && (this.handlers = []);
675
456
  }
676
457
  /**
677
458
  * Iterate over all the registered interceptors
@@ -683,192 +464,123 @@ class InterceptorManager {
683
464
  *
684
465
  * @returns {void}
685
466
  */
686
- forEach(fn) {
687
- utils$1.forEach(this.handlers, function forEachHandler(h) {
688
- if (h !== null) {
689
- fn(h);
690
- }
467
+ forEach(t) {
468
+ a.forEach(this.handlers, function(r) {
469
+ r !== null && t(r);
691
470
  });
692
471
  }
693
472
  }
694
- const transitionalDefaults = {
695
- silentJSONParsing: true,
696
- forcedJSONParsing: true,
697
- clarifyTimeoutError: false
698
- };
699
- const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
700
- const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
701
- const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
702
- const platform$1 = {
703
- isBrowser: true,
473
+ const ot = {
474
+ silentJSONParsing: !0,
475
+ forcedJSONParsing: !0,
476
+ clarifyTimeoutError: !1
477
+ }, on = typeof URLSearchParams < "u" ? URLSearchParams : Ee, an = typeof FormData < "u" ? FormData : null, cn = typeof Blob < "u" ? Blob : null, ln = {
478
+ isBrowser: !0,
704
479
  classes: {
705
- URLSearchParams: URLSearchParams$1,
706
- FormData: FormData$1,
707
- Blob: Blob$1
480
+ URLSearchParams: on,
481
+ FormData: an,
482
+ Blob: cn
708
483
  },
709
484
  protocols: ["http", "https", "file", "blob", "url", "data"]
710
- };
711
- const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
712
- const _navigator = typeof navigator === "object" && navigator || void 0;
713
- const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
714
- const hasStandardBrowserWebWorkerEnv = (() => {
715
- return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
716
- self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
717
- })();
718
- const origin = hasBrowserEnv && window.location.href || "http://localhost";
719
- const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
+ }, ge = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, un = ge && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
486
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dn = ge && window.location.href || "http://localhost", pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
720
487
  __proto__: null,
721
- hasBrowserEnv,
722
- hasStandardBrowserEnv,
723
- hasStandardBrowserWebWorkerEnv,
724
- navigator: _navigator,
725
- origin
726
- }, Symbol.toStringTag, { value: "Module" }));
727
- const platform = {
728
- ...utils,
729
- ...platform$1
488
+ hasBrowserEnv: ge,
489
+ hasStandardBrowserEnv: un,
490
+ hasStandardBrowserWebWorkerEnv: fn,
491
+ navigator: me,
492
+ origin: dn
493
+ }, Symbol.toStringTag, { value: "Module" })), S = {
494
+ ...pn,
495
+ ...ln
730
496
  };
731
- function toURLEncodedForm(data, options) {
732
- return toFormData(data, new platform.classes.URLSearchParams(), {
733
- visitor: function(value, key, path, helpers) {
734
- if (platform.isNode && utils$1.isBuffer(value)) {
735
- this.append(key, value.toString("base64"));
736
- return false;
737
- }
738
- return helpers.defaultVisitor.apply(this, arguments);
497
+ function hn(e, t) {
498
+ return ie(e, new S.classes.URLSearchParams(), {
499
+ visitor: function(n, r, s, i) {
500
+ return S.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
739
501
  },
740
- ...options
502
+ ...t
741
503
  });
742
504
  }
743
- function parsePropPath(name) {
744
- return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
745
- return match[0] === "[]" ? "" : match[1] || match[0];
746
- });
505
+ function mn(e) {
506
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
747
507
  }
748
- function arrayToObject(arr) {
749
- const obj = {};
750
- const keys = Object.keys(arr);
508
+ function yn(e) {
509
+ const t = {}, n = Object.keys(e);
510
+ let r;
511
+ const s = n.length;
751
512
  let i;
752
- const len = keys.length;
753
- let key;
754
- for (i = 0; i < len; i++) {
755
- key = keys[i];
756
- obj[key] = arr[key];
757
- }
758
- return obj;
513
+ for (r = 0; r < s; r++)
514
+ i = n[r], t[i] = e[i];
515
+ return t;
759
516
  }
760
- function formDataToJSON(formData) {
761
- function buildPath(path, value, target, index) {
762
- let name = path[index++];
763
- if (name === "__proto__") return true;
764
- const isNumericKey = Number.isFinite(+name);
765
- const isLast = index >= path.length;
766
- name = !name && utils$1.isArray(target) ? target.length : name;
767
- if (isLast) {
768
- if (utils$1.hasOwnProp(target, name)) {
769
- target[name] = [target[name], value];
770
- } else {
771
- target[name] = value;
772
- }
773
- return !isNumericKey;
774
- }
775
- if (!target[name] || !utils$1.isObject(target[name])) {
776
- target[name] = [];
777
- }
778
- const result = buildPath(path, value, target[name], index);
779
- if (result && utils$1.isArray(target[name])) {
780
- target[name] = arrayToObject(target[name]);
781
- }
782
- return !isNumericKey;
783
- }
784
- if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
785
- const obj = {};
786
- utils$1.forEachEntry(formData, (name, value) => {
787
- buildPath(parsePropPath(name), value, obj, 0);
788
- });
789
- return obj;
517
+ function it(e) {
518
+ function t(n, r, s, i) {
519
+ let o = n[i++];
520
+ if (o === "__proto__") return !0;
521
+ const c = Number.isFinite(+o), d = i >= n.length;
522
+ return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = yn(s[o])), !c);
523
+ }
524
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
525
+ const n = {};
526
+ return a.forEachEntry(e, (r, s) => {
527
+ t(mn(r), s, n, 0);
528
+ }), n;
790
529
  }
791
530
  return null;
792
531
  }
793
- function stringifySafely(rawValue, parser, encoder) {
794
- if (utils$1.isString(rawValue)) {
532
+ function bn(e, t, n) {
533
+ if (a.isString(e))
795
534
  try {
796
- (0, JSON.parse)(rawValue);
797
- return utils$1.trim(rawValue);
798
- } catch (e) {
799
- if (e.name !== "SyntaxError") {
800
- throw e;
801
- }
535
+ return (0, JSON.parse)(e), a.trim(e);
536
+ } catch (r) {
537
+ if (r.name !== "SyntaxError")
538
+ throw r;
802
539
  }
803
- }
804
- return (encoder || JSON.stringify)(rawValue);
540
+ return (n || JSON.stringify)(e);
805
541
  }
806
- const defaults = {
807
- transitional: transitionalDefaults,
542
+ const v = {
543
+ transitional: ot,
808
544
  adapter: ["xhr", "http", "fetch"],
809
- transformRequest: [function transformRequest(data, headers) {
810
- const contentType = headers.getContentType() || "";
811
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
812
- const isObjectPayload = utils$1.isObject(data);
813
- if (isObjectPayload && utils$1.isHTMLForm(data)) {
814
- data = new FormData(data);
815
- }
816
- const isFormData2 = utils$1.isFormData(data);
817
- if (isFormData2) {
818
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
819
- }
820
- if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
821
- return data;
822
- }
823
- if (utils$1.isArrayBufferView(data)) {
824
- return data.buffer;
825
- }
826
- if (utils$1.isURLSearchParams(data)) {
827
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
828
- return data.toString();
829
- }
830
- let isFileList2;
831
- if (isObjectPayload) {
832
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
833
- return toURLEncodedForm(data, this.formSerializer).toString();
834
- }
835
- if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
836
- const _FormData = this.env && this.env.FormData;
837
- return toFormData(
838
- isFileList2 ? { "files[]": data } : data,
839
- _FormData && new _FormData(),
545
+ transformRequest: [function(t, n) {
546
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
547
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
548
+ return s ? JSON.stringify(it(t)) : t;
549
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
550
+ return t;
551
+ if (a.isArrayBufferView(t))
552
+ return t.buffer;
553
+ if (a.isURLSearchParams(t))
554
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
555
+ let c;
556
+ if (i) {
557
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
558
+ return hn(t, this.formSerializer).toString();
559
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
560
+ const d = this.env && this.env.FormData;
561
+ return ie(
562
+ c ? { "files[]": t } : t,
563
+ d && new d(),
840
564
  this.formSerializer
841
565
  );
842
566
  }
843
567
  }
844
- if (isObjectPayload || hasJSONContentType) {
845
- headers.setContentType("application/json", false);
846
- return stringifySafely(data);
847
- }
848
- return data;
568
+ return i || s ? (n.setContentType("application/json", !1), bn(t)) : t;
849
569
  }],
850
- transformResponse: [function transformResponse(data) {
851
- const transitional2 = this.transitional || defaults.transitional;
852
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
853
- const JSONRequested = this.responseType === "json";
854
- if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
855
- return data;
856
- }
857
- if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
858
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
859
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
570
+ transformResponse: [function(t) {
571
+ const n = this.transitional || v.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
572
+ if (a.isResponse(t) || a.isReadableStream(t))
573
+ return t;
574
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
575
+ const o = !(n && n.silentJSONParsing) && s;
860
576
  try {
861
- return JSON.parse(data);
862
- } catch (e) {
863
- if (strictJSONParsing) {
864
- if (e.name === "SyntaxError") {
865
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
866
- }
867
- throw e;
868
- }
577
+ return JSON.parse(t, this.parseReviver);
578
+ } catch (c) {
579
+ if (o)
580
+ throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
869
581
  }
870
582
  }
871
- return data;
583
+ return t;
872
584
  }],
873
585
  /**
874
586
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -880,23 +592,23 @@ const defaults = {
880
592
  maxContentLength: -1,
881
593
  maxBodyLength: -1,
882
594
  env: {
883
- FormData: platform.classes.FormData,
884
- Blob: platform.classes.Blob
595
+ FormData: S.classes.FormData,
596
+ Blob: S.classes.Blob
885
597
  },
886
- validateStatus: function validateStatus(status) {
887
- return status >= 200 && status < 300;
598
+ validateStatus: function(t) {
599
+ return t >= 200 && t < 300;
888
600
  },
889
601
  headers: {
890
602
  common: {
891
- "Accept": "application/json, text/plain, */*",
603
+ Accept: "application/json, text/plain, */*",
892
604
  "Content-Type": void 0
893
605
  }
894
606
  }
895
607
  };
896
- utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
897
- defaults.headers[method] = {};
608
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
609
+ v.headers[e] = {};
898
610
  });
899
- const ignoreDuplicateOf = utils$1.toObjectSet([
611
+ const wn = a.toObjectSet([
900
612
  "age",
901
613
  "authorization",
902
614
  "content-length",
@@ -914,214 +626,153 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
914
626
  "referer",
915
627
  "retry-after",
916
628
  "user-agent"
917
- ]);
918
- const parseHeaders = (rawHeaders) => {
919
- const parsed = {};
920
- let key;
921
- let val;
922
- let i;
923
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
924
- i = line.indexOf(":");
925
- key = line.substring(0, i).trim().toLowerCase();
926
- val = line.substring(i + 1).trim();
927
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
928
- return;
929
- }
930
- if (key === "set-cookie") {
931
- if (parsed[key]) {
932
- parsed[key].push(val);
933
- } else {
934
- parsed[key] = [val];
935
- }
936
- } else {
937
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
938
- }
939
- });
940
- return parsed;
941
- };
942
- const $internals = Symbol("internals");
943
- function normalizeHeader(header) {
944
- return header && String(header).trim().toLowerCase();
629
+ ]), En = (e) => {
630
+ const t = {};
631
+ let n, r, s;
632
+ return e && e.split(`
633
+ `).forEach(function(o) {
634
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && wn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
635
+ }), t;
636
+ }, Be = Symbol("internals");
637
+ function $(e) {
638
+ return e && String(e).trim().toLowerCase();
945
639
  }
946
- function normalizeValue(value) {
947
- if (value === false || value == null) {
948
- return value;
949
- }
950
- return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
640
+ function ee(e) {
641
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
951
642
  }
952
- function parseTokens(str) {
953
- const tokens = /* @__PURE__ */ Object.create(null);
954
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
955
- let match;
956
- while (match = tokensRE.exec(str)) {
957
- tokens[match[1]] = match[2];
958
- }
959
- return tokens;
643
+ function gn(e) {
644
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
645
+ let r;
646
+ for (; r = n.exec(e); )
647
+ t[r[1]] = r[2];
648
+ return t;
960
649
  }
961
- const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
962
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
963
- if (utils$1.isFunction(filter2)) {
964
- return filter2.call(this, value, header);
965
- }
966
- if (isHeaderNameFilter) {
967
- value = header;
968
- }
969
- if (!utils$1.isString(value)) return;
970
- if (utils$1.isString(filter2)) {
971
- return value.indexOf(filter2) !== -1;
972
- }
973
- if (utils$1.isRegExp(filter2)) {
974
- return filter2.test(value);
650
+ const Rn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
+ function ue(e, t, n, r, s) {
652
+ if (a.isFunction(r))
653
+ return r.call(this, t, n);
654
+ if (s && (t = n), !!a.isString(t)) {
655
+ if (a.isString(r))
656
+ return t.indexOf(r) !== -1;
657
+ if (a.isRegExp(r))
658
+ return r.test(t);
975
659
  }
976
660
  }
977
- function formatHeader(header) {
978
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
979
- return char.toUpperCase() + str;
980
- });
661
+ function Sn(e) {
662
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
981
663
  }
982
- function buildAccessors(obj, header) {
983
- const accessorName = utils$1.toCamelCase(" " + header);
984
- ["get", "set", "has"].forEach((methodName) => {
985
- Object.defineProperty(obj, methodName + accessorName, {
986
- value: function(arg1, arg2, arg3) {
987
- return this[methodName].call(this, header, arg1, arg2, arg3);
664
+ function On(e, t) {
665
+ const n = a.toCamelCase(" " + t);
666
+ ["get", "set", "has"].forEach((r) => {
667
+ Object.defineProperty(e, r + n, {
668
+ value: function(s, i, o) {
669
+ return this[r].call(this, t, s, i, o);
988
670
  },
989
- configurable: true
671
+ configurable: !0
990
672
  });
991
673
  });
992
674
  }
993
- class AxiosHeaders {
994
- constructor(headers) {
995
- headers && this.set(headers);
996
- }
997
- set(header, valueOrRewrite, rewrite) {
998
- const self2 = this;
999
- function setHeader(_value, _header, _rewrite) {
1000
- const lHeader = normalizeHeader(_header);
1001
- if (!lHeader) {
675
+ class A {
676
+ constructor(t) {
677
+ t && this.set(t);
678
+ }
679
+ set(t, n, r) {
680
+ const s = this;
681
+ function i(c, d, f) {
682
+ const l = $(d);
683
+ if (!l)
1002
684
  throw new Error("header name must be a non-empty string");
1003
- }
1004
- const key = utils$1.findKey(self2, lHeader);
1005
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
1006
- self2[key || _header] = normalizeValue(_value);
1007
- }
1008
- }
1009
- const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1010
- if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
1011
- setHeaders(header, valueOrRewrite);
1012
- } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1013
- setHeaders(parseHeaders(header), valueOrRewrite);
1014
- } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
1015
- let obj = {}, dest, key;
1016
- for (const entry of header) {
1017
- if (!utils$1.isArray(entry)) {
685
+ const h = a.findKey(s, l);
686
+ (!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = ee(c));
687
+ }
688
+ const o = (c, d) => a.forEach(c, (f, l) => i(f, l, d));
689
+ if (a.isPlainObject(t) || t instanceof this.constructor)
690
+ o(t, n);
691
+ else if (a.isString(t) && (t = t.trim()) && !Rn(t))
692
+ o(En(t), n);
693
+ else if (a.isObject(t) && a.isIterable(t)) {
694
+ let c = {}, d, f;
695
+ for (const l of t) {
696
+ if (!a.isArray(l))
1018
697
  throw TypeError("Object iterator must return a key-value pair");
1019
- }
1020
- obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
698
+ c[f = l[0]] = (d = c[f]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
1021
699
  }
1022
- setHeaders(obj, valueOrRewrite);
1023
- } else {
1024
- header != null && setHeader(valueOrRewrite, header, rewrite);
1025
- }
700
+ o(c, n);
701
+ } else
702
+ t != null && i(n, t, r);
1026
703
  return this;
1027
704
  }
1028
- get(header, parser) {
1029
- header = normalizeHeader(header);
1030
- if (header) {
1031
- const key = utils$1.findKey(this, header);
1032
- if (key) {
1033
- const value = this[key];
1034
- if (!parser) {
1035
- return value;
1036
- }
1037
- if (parser === true) {
1038
- return parseTokens(value);
1039
- }
1040
- if (utils$1.isFunction(parser)) {
1041
- return parser.call(this, value, key);
1042
- }
1043
- if (utils$1.isRegExp(parser)) {
1044
- return parser.exec(value);
1045
- }
705
+ get(t, n) {
706
+ if (t = $(t), t) {
707
+ const r = a.findKey(this, t);
708
+ if (r) {
709
+ const s = this[r];
710
+ if (!n)
711
+ return s;
712
+ if (n === !0)
713
+ return gn(s);
714
+ if (a.isFunction(n))
715
+ return n.call(this, s, r);
716
+ if (a.isRegExp(n))
717
+ return n.exec(s);
1046
718
  throw new TypeError("parser must be boolean|regexp|function");
1047
719
  }
1048
720
  }
1049
721
  }
1050
- has(header, matcher) {
1051
- header = normalizeHeader(header);
1052
- if (header) {
1053
- const key = utils$1.findKey(this, header);
1054
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
722
+ has(t, n) {
723
+ if (t = $(t), t) {
724
+ const r = a.findKey(this, t);
725
+ return !!(r && this[r] !== void 0 && (!n || ue(this, this[r], r, n)));
1055
726
  }
1056
- return false;
727
+ return !1;
1057
728
  }
1058
- delete(header, matcher) {
1059
- const self2 = this;
1060
- let deleted = false;
1061
- function deleteHeader(_header) {
1062
- _header = normalizeHeader(_header);
1063
- if (_header) {
1064
- const key = utils$1.findKey(self2, _header);
1065
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
1066
- delete self2[key];
1067
- deleted = true;
1068
- }
729
+ delete(t, n) {
730
+ const r = this;
731
+ let s = !1;
732
+ function i(o) {
733
+ if (o = $(o), o) {
734
+ const c = a.findKey(r, o);
735
+ c && (!n || ue(r, r[c], c, n)) && (delete r[c], s = !0);
1069
736
  }
1070
737
  }
1071
- if (utils$1.isArray(header)) {
1072
- header.forEach(deleteHeader);
1073
- } else {
1074
- deleteHeader(header);
1075
- }
1076
- return deleted;
738
+ return a.isArray(t) ? t.forEach(i) : i(t), s;
1077
739
  }
1078
- clear(matcher) {
1079
- const keys = Object.keys(this);
1080
- let i = keys.length;
1081
- let deleted = false;
1082
- while (i--) {
1083
- const key = keys[i];
1084
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1085
- delete this[key];
1086
- deleted = true;
1087
- }
740
+ clear(t) {
741
+ const n = Object.keys(this);
742
+ let r = n.length, s = !1;
743
+ for (; r--; ) {
744
+ const i = n[r];
745
+ (!t || ue(this, this[i], i, t, !0)) && (delete this[i], s = !0);
1088
746
  }
1089
- return deleted;
747
+ return s;
1090
748
  }
1091
- normalize(format) {
1092
- const self2 = this;
1093
- const headers = {};
1094
- utils$1.forEach(this, (value, header) => {
1095
- const key = utils$1.findKey(headers, header);
1096
- if (key) {
1097
- self2[key] = normalizeValue(value);
1098
- delete self2[header];
749
+ normalize(t) {
750
+ const n = this, r = {};
751
+ return a.forEach(this, (s, i) => {
752
+ const o = a.findKey(r, i);
753
+ if (o) {
754
+ n[o] = ee(s), delete n[i];
1099
755
  return;
1100
756
  }
1101
- const normalized = format ? formatHeader(header) : String(header).trim();
1102
- if (normalized !== header) {
1103
- delete self2[header];
1104
- }
1105
- self2[normalized] = normalizeValue(value);
1106
- headers[normalized] = true;
1107
- });
1108
- return this;
757
+ const c = t ? Sn(i) : String(i).trim();
758
+ c !== i && delete n[i], n[c] = ee(s), r[c] = !0;
759
+ }), this;
1109
760
  }
1110
- concat(...targets) {
1111
- return this.constructor.concat(this, ...targets);
761
+ concat(...t) {
762
+ return this.constructor.concat(this, ...t);
1112
763
  }
1113
- toJSON(asStrings) {
1114
- const obj = /* @__PURE__ */ Object.create(null);
1115
- utils$1.forEach(this, (value, header) => {
1116
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
1117
- });
1118
- return obj;
764
+ toJSON(t) {
765
+ const n = /* @__PURE__ */ Object.create(null);
766
+ return a.forEach(this, (r, s) => {
767
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
768
+ }), n;
1119
769
  }
1120
770
  [Symbol.iterator]() {
1121
771
  return Object.entries(this.toJSON())[Symbol.iterator]();
1122
772
  }
1123
773
  toString() {
1124
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
774
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
775
+ `);
1125
776
  }
1126
777
  getSetCookie() {
1127
778
  return this.get("set-cookie") || [];
@@ -1129,203 +780,135 @@ class AxiosHeaders {
1129
780
  get [Symbol.toStringTag]() {
1130
781
  return "AxiosHeaders";
1131
782
  }
1132
- static from(thing) {
1133
- return thing instanceof this ? thing : new this(thing);
783
+ static from(t) {
784
+ return t instanceof this ? t : new this(t);
1134
785
  }
1135
- static concat(first, ...targets) {
1136
- const computed = new this(first);
1137
- targets.forEach((target) => computed.set(target));
1138
- return computed;
786
+ static concat(t, ...n) {
787
+ const r = new this(t);
788
+ return n.forEach((s) => r.set(s)), r;
1139
789
  }
1140
- static accessor(header) {
1141
- const internals = this[$internals] = this[$internals] = {
790
+ static accessor(t) {
791
+ const r = (this[Be] = this[Be] = {
1142
792
  accessors: {}
1143
- };
1144
- const accessors = internals.accessors;
1145
- const prototype2 = this.prototype;
1146
- function defineAccessor(_header) {
1147
- const lHeader = normalizeHeader(_header);
1148
- if (!accessors[lHeader]) {
1149
- buildAccessors(prototype2, _header);
1150
- accessors[lHeader] = true;
1151
- }
793
+ }).accessors, s = this.prototype;
794
+ function i(o) {
795
+ const c = $(o);
796
+ r[c] || (On(s, o), r[c] = !0);
1152
797
  }
1153
- utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
1154
- return this;
798
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
1155
799
  }
1156
800
  }
1157
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1158
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
1159
- let mapped = key[0].toUpperCase() + key.slice(1);
801
+ A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
802
+ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
803
+ let n = t[0].toUpperCase() + t.slice(1);
1160
804
  return {
1161
- get: () => value,
1162
- set(headerValue) {
1163
- this[mapped] = headerValue;
805
+ get: () => e,
806
+ set(r) {
807
+ this[n] = r;
1164
808
  }
1165
809
  };
1166
810
  });
1167
- utils$1.freezeMethods(AxiosHeaders);
1168
- function transformData(fns, response) {
1169
- const config = this || defaults;
1170
- const context = response || config;
1171
- const headers = AxiosHeaders.from(context.headers);
1172
- let data = context.data;
1173
- utils$1.forEach(fns, function transform(fn) {
1174
- data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1175
- });
1176
- headers.normalize();
1177
- return data;
811
+ a.freezeMethods(A);
812
+ function fe(e, t) {
813
+ const n = this || v, r = t || n, s = A.from(r.headers);
814
+ let i = r.data;
815
+ return a.forEach(e, function(c) {
816
+ i = c.call(n, i, s.normalize(), t ? t.status : void 0);
817
+ }), s.normalize(), i;
1178
818
  }
1179
- function isCancel(value) {
1180
- return !!(value && value.__CANCEL__);
819
+ function at(e) {
820
+ return !!(e && e.__CANCEL__);
1181
821
  }
1182
- function CanceledError(message, config, request) {
1183
- AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
1184
- this.name = "CanceledError";
822
+ function z(e, t, n) {
823
+ y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
1185
824
  }
1186
- utils$1.inherits(CanceledError, AxiosError, {
1187
- __CANCEL__: true
825
+ a.inherits(z, y, {
826
+ __CANCEL__: !0
1188
827
  });
1189
- function settle(resolve, reject, response) {
1190
- const validateStatus2 = response.config.validateStatus;
1191
- if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
1192
- resolve(response);
1193
- } else {
1194
- reject(new AxiosError(
1195
- "Request failed with status code " + response.status,
1196
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
1197
- response.config,
1198
- response.request,
1199
- response
1200
- ));
1201
- }
828
+ function ct(e, t, n) {
829
+ const r = n.config.validateStatus;
830
+ !n.status || !r || r(n.status) ? e(n) : t(new y(
831
+ "Request failed with status code " + n.status,
832
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
833
+ n.config,
834
+ n.request,
835
+ n
836
+ ));
1202
837
  }
1203
- function parseProtocol(url) {
1204
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
1205
- return match && match[1] || "";
838
+ function Tn(e) {
839
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
840
+ return t && t[1] || "";
1206
841
  }
1207
- function speedometer(samplesCount, min) {
1208
- samplesCount = samplesCount || 10;
1209
- const bytes = new Array(samplesCount);
1210
- const timestamps = new Array(samplesCount);
1211
- let head = 0;
1212
- let tail = 0;
1213
- let firstSampleTS;
1214
- min = min !== void 0 ? min : 1e3;
1215
- return function push(chunkLength) {
1216
- const now = Date.now();
1217
- const startedAt = timestamps[tail];
1218
- if (!firstSampleTS) {
1219
- firstSampleTS = now;
1220
- }
1221
- bytes[head] = chunkLength;
1222
- timestamps[head] = now;
1223
- let i = tail;
1224
- let bytesCount = 0;
1225
- while (i !== head) {
1226
- bytesCount += bytes[i++];
1227
- i = i % samplesCount;
1228
- }
1229
- head = (head + 1) % samplesCount;
1230
- if (head === tail) {
1231
- tail = (tail + 1) % samplesCount;
1232
- }
1233
- if (now - firstSampleTS < min) {
842
+ function An(e, t) {
843
+ e = e || 10;
844
+ const n = new Array(e), r = new Array(e);
845
+ let s = 0, i = 0, o;
846
+ return t = t !== void 0 ? t : 1e3, function(d) {
847
+ const f = Date.now(), l = r[i];
848
+ o || (o = f), n[s] = d, r[s] = f;
849
+ let h = i, b = 0;
850
+ for (; h !== s; )
851
+ b += n[h++], h = h % e;
852
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
1234
853
  return;
1235
- }
1236
- const passed = startedAt && now - startedAt;
1237
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
854
+ const R = l && f - l;
855
+ return R ? Math.round(b * 1e3 / R) : void 0;
1238
856
  };
1239
857
  }
1240
- function throttle(fn, freq) {
1241
- let timestamp = 0;
1242
- let threshold = 1e3 / freq;
1243
- let lastArgs;
1244
- let timer;
1245
- const invoke = (args, now = Date.now()) => {
1246
- timestamp = now;
1247
- lastArgs = null;
1248
- if (timer) {
1249
- clearTimeout(timer);
1250
- timer = null;
1251
- }
1252
- fn(...args);
858
+ function xn(e, t) {
859
+ let n = 0, r = 1e3 / t, s, i;
860
+ const o = (f, l = Date.now()) => {
861
+ n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
1253
862
  };
1254
- const throttled = (...args) => {
1255
- const now = Date.now();
1256
- const passed = now - timestamp;
1257
- if (passed >= threshold) {
1258
- invoke(args, now);
1259
- } else {
1260
- lastArgs = args;
1261
- if (!timer) {
1262
- timer = setTimeout(() => {
1263
- timer = null;
1264
- invoke(lastArgs);
1265
- }, threshold - passed);
1266
- }
1267
- }
1268
- };
1269
- const flush = () => lastArgs && invoke(lastArgs);
1270
- return [throttled, flush];
863
+ return [(...f) => {
864
+ const l = Date.now(), h = l - n;
865
+ h >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
866
+ i = null, o(s);
867
+ }, r - h)));
868
+ }, () => s && o(s)];
1271
869
  }
1272
- const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
1273
- let bytesNotified = 0;
1274
- const _speedometer = speedometer(50, 250);
1275
- return throttle((e) => {
1276
- const loaded = e.loaded;
1277
- const total = e.lengthComputable ? e.total : void 0;
1278
- const progressBytes = loaded - bytesNotified;
1279
- const rate = _speedometer(progressBytes);
1280
- const inRange = loaded <= total;
1281
- bytesNotified = loaded;
1282
- const data = {
1283
- loaded,
1284
- total,
1285
- progress: total ? loaded / total : void 0,
1286
- bytes: progressBytes,
1287
- rate: rate ? rate : void 0,
1288
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
1289
- event: e,
1290
- lengthComputable: total != null,
1291
- [isDownloadStream ? "download" : "upload"]: true
870
+ const ne = (e, t, n = 3) => {
871
+ let r = 0;
872
+ const s = An(50, 250);
873
+ return xn((i) => {
874
+ const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= c;
875
+ r = o;
876
+ const h = {
877
+ loaded: o,
878
+ total: c,
879
+ progress: c ? o / c : void 0,
880
+ bytes: d,
881
+ rate: f || void 0,
882
+ estimated: f && c && l ? (c - o) / f : void 0,
883
+ event: i,
884
+ lengthComputable: c != null,
885
+ [t ? "download" : "upload"]: !0
1292
886
  };
1293
- listener(data);
1294
- }, freq);
1295
- };
1296
- const progressEventDecorator = (total, throttled) => {
1297
- const lengthComputable = total != null;
1298
- return [(loaded) => throttled[0]({
1299
- lengthComputable,
1300
- total,
1301
- loaded
1302
- }), throttled[1]];
1303
- };
1304
- const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
1305
- const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
1306
- url = new URL(url, platform.origin);
1307
- return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
1308
- })(
1309
- new URL(platform.origin),
1310
- platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
1311
- ) : () => true;
1312
- const cookies = platform.hasStandardBrowserEnv ? (
887
+ e(h);
888
+ }, n);
889
+ }, De = (e, t) => {
890
+ const n = e != null;
891
+ return [(r) => t[0]({
892
+ lengthComputable: n,
893
+ total: e,
894
+ loaded: r
895
+ }), t[1]];
896
+ }, ke = (e) => (...t) => a.asap(() => e(...t)), Cn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
897
+ new URL(S.origin),
898
+ S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
899
+ ) : () => !0, Nn = S.hasStandardBrowserEnv ? (
1313
900
  // Standard browser envs support document.cookie
1314
901
  {
1315
- write(name, value, expires, path, domain, secure) {
1316
- const cookie = [name + "=" + encodeURIComponent(value)];
1317
- utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
1318
- utils$1.isString(path) && cookie.push("path=" + path);
1319
- utils$1.isString(domain) && cookie.push("domain=" + domain);
1320
- secure === true && cookie.push("secure");
1321
- document.cookie = cookie.join("; ");
902
+ write(e, t, n, r, s, i) {
903
+ const o = [e + "=" + encodeURIComponent(t)];
904
+ a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
1322
905
  },
1323
- read(name) {
1324
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
1325
- return match ? decodeURIComponent(match[3]) : null;
906
+ read(e) {
907
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
908
+ return t ? decodeURIComponent(t[3]) : null;
1326
909
  },
1327
- remove(name) {
1328
- this.write(name, "", Date.now() - 864e5);
910
+ remove(e) {
911
+ this.write(e, "", Date.now() - 864e5);
1329
912
  }
1330
913
  }
1331
914
  ) : (
@@ -1340,688 +923,520 @@ const cookies = platform.hasStandardBrowserEnv ? (
1340
923
  }
1341
924
  }
1342
925
  );
1343
- function isAbsoluteURL(url) {
1344
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
926
+ function Pn(e) {
927
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1345
928
  }
1346
- function combineURLs(baseURL, relativeURL) {
1347
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
929
+ function _n(e, t) {
930
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1348
931
  }
1349
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
1350
- let isRelativeUrl = !isAbsoluteURL(requestedURL);
1351
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
1352
- return combineURLs(baseURL, requestedURL);
1353
- }
1354
- return requestedURL;
932
+ function lt(e, t, n) {
933
+ let r = !Pn(t);
934
+ return e && (r || n == !1) ? _n(e, t) : t;
1355
935
  }
1356
- const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
1357
- function mergeConfig(config1, config2) {
1358
- config2 = config2 || {};
1359
- const config = {};
1360
- function getMergedValue(target, source, prop, caseless) {
1361
- if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
1362
- return utils$1.merge.call({ caseless }, target, source);
1363
- } else if (utils$1.isPlainObject(source)) {
1364
- return utils$1.merge({}, source);
1365
- } else if (utils$1.isArray(source)) {
1366
- return source.slice();
1367
- }
1368
- return source;
1369
- }
1370
- function mergeDeepProperties(a, b, prop, caseless) {
1371
- if (!utils$1.isUndefined(b)) {
1372
- return getMergedValue(a, b, prop, caseless);
1373
- } else if (!utils$1.isUndefined(a)) {
1374
- return getMergedValue(void 0, a, prop, caseless);
1375
- }
1376
- }
1377
- function valueFromConfig2(a, b) {
1378
- if (!utils$1.isUndefined(b)) {
1379
- return getMergedValue(void 0, b);
1380
- }
1381
- }
1382
- function defaultToConfig2(a, b) {
1383
- if (!utils$1.isUndefined(b)) {
1384
- return getMergedValue(void 0, b);
1385
- } else if (!utils$1.isUndefined(a)) {
1386
- return getMergedValue(void 0, a);
1387
- }
1388
- }
1389
- function mergeDirectKeys(a, b, prop) {
1390
- if (prop in config2) {
1391
- return getMergedValue(a, b);
1392
- } else if (prop in config1) {
1393
- return getMergedValue(void 0, a);
1394
- }
1395
- }
1396
- const mergeMap = {
1397
- url: valueFromConfig2,
1398
- method: valueFromConfig2,
1399
- data: valueFromConfig2,
1400
- baseURL: defaultToConfig2,
1401
- transformRequest: defaultToConfig2,
1402
- transformResponse: defaultToConfig2,
1403
- paramsSerializer: defaultToConfig2,
1404
- timeout: defaultToConfig2,
1405
- timeoutMessage: defaultToConfig2,
1406
- withCredentials: defaultToConfig2,
1407
- withXSRFToken: defaultToConfig2,
1408
- adapter: defaultToConfig2,
1409
- responseType: defaultToConfig2,
1410
- xsrfCookieName: defaultToConfig2,
1411
- xsrfHeaderName: defaultToConfig2,
1412
- onUploadProgress: defaultToConfig2,
1413
- onDownloadProgress: defaultToConfig2,
1414
- decompress: defaultToConfig2,
1415
- maxContentLength: defaultToConfig2,
1416
- maxBodyLength: defaultToConfig2,
1417
- beforeRedirect: defaultToConfig2,
1418
- transport: defaultToConfig2,
1419
- httpAgent: defaultToConfig2,
1420
- httpsAgent: defaultToConfig2,
1421
- cancelToken: defaultToConfig2,
1422
- socketPath: defaultToConfig2,
1423
- responseEncoding: defaultToConfig2,
1424
- validateStatus: mergeDirectKeys,
1425
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
936
+ const je = (e) => e instanceof A ? { ...e } : e;
937
+ function q(e, t) {
938
+ t = t || {};
939
+ const n = {};
940
+ function r(f, l, h, b) {
941
+ return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
942
+ }
943
+ function s(f, l, h, b) {
944
+ if (a.isUndefined(l)) {
945
+ if (!a.isUndefined(f))
946
+ return r(void 0, f, h, b);
947
+ } else return r(f, l, h, b);
948
+ }
949
+ function i(f, l) {
950
+ if (!a.isUndefined(l))
951
+ return r(void 0, l);
952
+ }
953
+ function o(f, l) {
954
+ if (a.isUndefined(l)) {
955
+ if (!a.isUndefined(f))
956
+ return r(void 0, f);
957
+ } else return r(void 0, l);
958
+ }
959
+ function c(f, l, h) {
960
+ if (h in t)
961
+ return r(f, l);
962
+ if (h in e)
963
+ return r(void 0, f);
964
+ }
965
+ const d = {
966
+ url: i,
967
+ method: i,
968
+ data: i,
969
+ baseURL: o,
970
+ transformRequest: o,
971
+ transformResponse: o,
972
+ paramsSerializer: o,
973
+ timeout: o,
974
+ timeoutMessage: o,
975
+ withCredentials: o,
976
+ withXSRFToken: o,
977
+ adapter: o,
978
+ responseType: o,
979
+ xsrfCookieName: o,
980
+ xsrfHeaderName: o,
981
+ onUploadProgress: o,
982
+ onDownloadProgress: o,
983
+ decompress: o,
984
+ maxContentLength: o,
985
+ maxBodyLength: o,
986
+ beforeRedirect: o,
987
+ transport: o,
988
+ httpAgent: o,
989
+ httpsAgent: o,
990
+ cancelToken: o,
991
+ socketPath: o,
992
+ responseEncoding: o,
993
+ validateStatus: c,
994
+ headers: (f, l, h) => s(je(f), je(l), h, !0)
1426
995
  };
1427
- utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
1428
- const merge2 = mergeMap[prop] || mergeDeepProperties;
1429
- const configValue = merge2(config1[prop], config2[prop], prop);
1430
- utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
1431
- });
1432
- return config;
996
+ return a.forEach(Object.keys({ ...e, ...t }), function(l) {
997
+ const h = d[l] || s, b = h(e[l], t[l], l);
998
+ a.isUndefined(b) && h !== c || (n[l] = b);
999
+ }), n;
1433
1000
  }
1434
- const resolveConfig = (config) => {
1435
- const newConfig = mergeConfig({}, config);
1436
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
1437
- newConfig.headers = headers = AxiosHeaders.from(headers);
1438
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
1439
- if (auth) {
1440
- headers.set(
1441
- "Authorization",
1442
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
1443
- );
1444
- }
1445
- let contentType;
1446
- if (utils$1.isFormData(data)) {
1447
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
1448
- headers.setContentType(void 0);
1449
- } else if ((contentType = headers.getContentType()) !== false) {
1450
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
1451
- headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
1452
- }
1453
- }
1454
- if (platform.hasStandardBrowserEnv) {
1455
- withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
1456
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
1457
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
1458
- if (xsrfValue) {
1459
- headers.set(xsrfHeaderName, xsrfValue);
1460
- }
1001
+ const ut = (e) => {
1002
+ const t = q({}, e);
1003
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1004
+ if (t.headers = o = A.from(o), t.url = st(lt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1005
+ "Authorization",
1006
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1007
+ ), a.isFormData(n)) {
1008
+ if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
1009
+ o.setContentType(void 0);
1010
+ else if (a.isFunction(n.getHeaders)) {
1011
+ const d = n.getHeaders(), f = ["content-type", "content-length"];
1012
+ Object.entries(d).forEach(([l, h]) => {
1013
+ f.includes(l.toLowerCase()) && o.set(l, h);
1014
+ });
1461
1015
  }
1462
1016
  }
1463
- return newConfig;
1464
- };
1465
- const isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
1466
- const xhrAdapter = isXHRAdapterSupported && function(config) {
1467
- return new Promise(function dispatchXhrRequest(resolve, reject) {
1468
- const _config = resolveConfig(config);
1469
- let requestData = _config.data;
1470
- const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
1471
- let { responseType, onUploadProgress, onDownloadProgress } = _config;
1472
- let onCanceled;
1473
- let uploadThrottled, downloadThrottled;
1474
- let flushUpload, flushDownload;
1475
- function done() {
1476
- flushUpload && flushUpload();
1477
- flushDownload && flushDownload();
1478
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
1479
- _config.signal && _config.signal.removeEventListener("abort", onCanceled);
1480
- }
1481
- let request = new XMLHttpRequest();
1482
- request.open(_config.method.toUpperCase(), _config.url, true);
1483
- request.timeout = _config.timeout;
1484
- function onloadend() {
1485
- if (!request) {
1017
+ if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Cn(t.url))) {
1018
+ const d = s && i && Nn.read(i);
1019
+ d && o.set(s, d);
1020
+ }
1021
+ return t;
1022
+ }, Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
1023
+ return new Promise(function(n, r) {
1024
+ const s = ut(e);
1025
+ let i = s.data;
1026
+ const o = A.from(s.headers).normalize();
1027
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, R, u;
1028
+ function m() {
1029
+ R && R(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1030
+ }
1031
+ let p = new XMLHttpRequest();
1032
+ p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1033
+ function E() {
1034
+ if (!p)
1486
1035
  return;
1487
- }
1488
- const responseHeaders = AxiosHeaders.from(
1489
- "getAllResponseHeaders" in request && request.getAllResponseHeaders()
1490
- );
1491
- const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
1492
- const response = {
1493
- data: responseData,
1494
- status: request.status,
1495
- statusText: request.statusText,
1496
- headers: responseHeaders,
1497
- config,
1498
- request
1499
- };
1500
- settle(function _resolve(value) {
1501
- resolve(value);
1502
- done();
1503
- }, function _reject(err) {
1504
- reject(err);
1505
- done();
1506
- }, response);
1507
- request = null;
1508
- }
1509
- if ("onloadend" in request) {
1510
- request.onloadend = onloadend;
1511
- } else {
1512
- request.onreadystatechange = function handleLoad() {
1513
- if (!request || request.readyState !== 4) {
1514
- return;
1515
- }
1516
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
1517
- return;
1518
- }
1519
- setTimeout(onloadend);
1520
- };
1521
- }
1522
- request.onabort = function handleAbort() {
1523
- if (!request) {
1524
- return;
1525
- }
1526
- reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
1527
- request = null;
1528
- };
1529
- request.onerror = function handleError() {
1530
- reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
1531
- request = null;
1532
- };
1533
- request.ontimeout = function handleTimeout() {
1534
- let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
1535
- const transitional2 = _config.transitional || transitionalDefaults;
1536
- if (_config.timeoutErrorMessage) {
1537
- timeoutErrorMessage = _config.timeoutErrorMessage;
1538
- }
1539
- reject(new AxiosError(
1540
- timeoutErrorMessage,
1541
- transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
1542
- config,
1543
- request
1544
- ));
1545
- request = null;
1546
- };
1547
- requestData === void 0 && requestHeaders.setContentType(null);
1548
- if ("setRequestHeader" in request) {
1549
- utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
1550
- request.setRequestHeader(key, val);
1551
- });
1552
- }
1553
- if (!utils$1.isUndefined(_config.withCredentials)) {
1554
- request.withCredentials = !!_config.withCredentials;
1555
- }
1556
- if (responseType && responseType !== "json") {
1557
- request.responseType = _config.responseType;
1558
- }
1559
- if (onDownloadProgress) {
1560
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
1561
- request.addEventListener("progress", downloadThrottled);
1562
- }
1563
- if (onUploadProgress && request.upload) {
1564
- [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
1565
- request.upload.addEventListener("progress", uploadThrottled);
1566
- request.upload.addEventListener("loadend", flushUpload);
1567
- }
1568
- if (_config.cancelToken || _config.signal) {
1569
- onCanceled = (cancel) => {
1570
- if (!request) {
1571
- return;
1572
- }
1573
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
1574
- request.abort();
1575
- request = null;
1036
+ const g = A.from(
1037
+ "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1038
+ ), N = {
1039
+ data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1040
+ status: p.status,
1041
+ statusText: p.statusText,
1042
+ headers: g,
1043
+ config: e,
1044
+ request: p
1576
1045
  };
1577
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
1578
- if (_config.signal) {
1579
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
1580
- }
1581
- }
1582
- const protocol = parseProtocol(_config.url);
1583
- if (protocol && platform.protocols.indexOf(protocol) === -1) {
1584
- reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
1046
+ ct(function(C) {
1047
+ n(C), m();
1048
+ }, function(C) {
1049
+ r(C), m();
1050
+ }, N), p = null;
1051
+ }
1052
+ "onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
1053
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
1054
+ }, p.onabort = function() {
1055
+ p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
1056
+ }, p.onerror = function(O) {
1057
+ const N = O && O.message ? O.message : "Network Error", B = new y(N, y.ERR_NETWORK, e, p);
1058
+ B.event = O || null, r(B), p = null;
1059
+ }, p.ontimeout = function() {
1060
+ let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1061
+ const N = s.transitional || ot;
1062
+ s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
1063
+ O,
1064
+ N.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1065
+ e,
1066
+ p
1067
+ )), p = null;
1068
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, N) {
1069
+ p.setRequestHeader(N, O);
1070
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, R] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (g) => {
1071
+ p && (r(!g || g.type ? new z(null, e, p) : g), p.abort(), p = null);
1072
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1073
+ const x = Tn(s.url);
1074
+ if (x && S.protocols.indexOf(x) === -1) {
1075
+ r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
1585
1076
  return;
1586
1077
  }
1587
- request.send(requestData || null);
1078
+ p.send(i || null);
1588
1079
  });
1589
- };
1590
- const composeSignals = (signals, timeout) => {
1591
- const { length } = signals = signals ? signals.filter(Boolean) : [];
1592
- if (timeout || length) {
1593
- let controller = new AbortController();
1594
- let aborted;
1595
- const onabort = function(reason) {
1596
- if (!aborted) {
1597
- aborted = true;
1598
- unsubscribe();
1599
- const err = reason instanceof Error ? reason : this.reason;
1600
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
1080
+ }, Un = (e, t) => {
1081
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1082
+ if (t || n) {
1083
+ let r = new AbortController(), s;
1084
+ const i = function(f) {
1085
+ if (!s) {
1086
+ s = !0, c();
1087
+ const l = f instanceof Error ? f : this.reason;
1088
+ r.abort(l instanceof y ? l : new z(l instanceof Error ? l.message : l));
1601
1089
  }
1602
1090
  };
1603
- let timer = timeout && setTimeout(() => {
1604
- timer = null;
1605
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
1606
- }, timeout);
1607
- const unsubscribe = () => {
1608
- if (signals) {
1609
- timer && clearTimeout(timer);
1610
- timer = null;
1611
- signals.forEach((signal2) => {
1612
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
1613
- });
1614
- signals = null;
1615
- }
1091
+ let o = t && setTimeout(() => {
1092
+ o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1093
+ }, t);
1094
+ const c = () => {
1095
+ e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1096
+ f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1097
+ }), e = null);
1616
1098
  };
1617
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
1618
- const { signal } = controller;
1619
- signal.unsubscribe = () => utils$1.asap(unsubscribe);
1620
- return signal;
1621
- }
1622
- };
1623
- const streamChunk = function* (chunk, chunkSize) {
1624
- let len = chunk.byteLength;
1625
- if (len < chunkSize) {
1626
- yield chunk;
1099
+ e.forEach((f) => f.addEventListener("abort", i));
1100
+ const { signal: d } = r;
1101
+ return d.unsubscribe = () => a.asap(c), d;
1102
+ }
1103
+ }, Bn = function* (e, t) {
1104
+ let n = e.byteLength;
1105
+ if (n < t) {
1106
+ yield e;
1627
1107
  return;
1628
1108
  }
1629
- let pos = 0;
1630
- let end;
1631
- while (pos < len) {
1632
- end = pos + chunkSize;
1633
- yield chunk.slice(pos, end);
1634
- pos = end;
1635
- }
1636
- };
1637
- const readBytes = async function* (iterable, chunkSize) {
1638
- for await (const chunk of readStream(iterable)) {
1639
- yield* streamChunk(chunk, chunkSize);
1640
- }
1641
- };
1642
- const readStream = async function* (stream) {
1643
- if (stream[Symbol.asyncIterator]) {
1644
- yield* stream;
1109
+ let r = 0, s;
1110
+ for (; r < n; )
1111
+ s = r + t, yield e.slice(r, s), r = s;
1112
+ }, Dn = async function* (e, t) {
1113
+ for await (const n of kn(e))
1114
+ yield* Bn(n, t);
1115
+ }, kn = async function* (e) {
1116
+ if (e[Symbol.asyncIterator]) {
1117
+ yield* e;
1645
1118
  return;
1646
1119
  }
1647
- const reader = stream.getReader();
1120
+ const t = e.getReader();
1648
1121
  try {
1649
1122
  for (; ; ) {
1650
- const { done, value } = await reader.read();
1651
- if (done) {
1123
+ const { done: n, value: r } = await t.read();
1124
+ if (n)
1652
1125
  break;
1653
- }
1654
- yield value;
1126
+ yield r;
1655
1127
  }
1656
1128
  } finally {
1657
- await reader.cancel();
1129
+ await t.cancel();
1658
1130
  }
1659
- };
1660
- const trackStream = (stream, chunkSize, onProgress, onFinish) => {
1661
- const iterator2 = readBytes(stream, chunkSize);
1662
- let bytes = 0;
1663
- let done;
1664
- let _onFinish = (e) => {
1665
- if (!done) {
1666
- done = true;
1667
- onFinish && onFinish(e);
1668
- }
1131
+ }, qe = (e, t, n, r) => {
1132
+ const s = Dn(e, t);
1133
+ let i = 0, o, c = (d) => {
1134
+ o || (o = !0, r && r(d));
1669
1135
  };
1670
1136
  return new ReadableStream({
1671
- async pull(controller) {
1137
+ async pull(d) {
1672
1138
  try {
1673
- const { done: done2, value } = await iterator2.next();
1674
- if (done2) {
1675
- _onFinish();
1676
- controller.close();
1139
+ const { done: f, value: l } = await s.next();
1140
+ if (f) {
1141
+ c(), d.close();
1677
1142
  return;
1678
1143
  }
1679
- let len = value.byteLength;
1680
- if (onProgress) {
1681
- let loadedBytes = bytes += len;
1682
- onProgress(loadedBytes);
1144
+ let h = l.byteLength;
1145
+ if (n) {
1146
+ let b = i += h;
1147
+ n(b);
1683
1148
  }
1684
- controller.enqueue(new Uint8Array(value));
1685
- } catch (err) {
1686
- _onFinish(err);
1687
- throw err;
1149
+ d.enqueue(new Uint8Array(l));
1150
+ } catch (f) {
1151
+ throw c(f), f;
1688
1152
  }
1689
1153
  },
1690
- cancel(reason) {
1691
- _onFinish(reason);
1692
- return iterator2.return();
1154
+ cancel(d) {
1155
+ return c(d), s.return();
1693
1156
  }
1694
1157
  }, {
1695
1158
  highWaterMark: 2
1696
1159
  });
1697
- };
1698
- const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
1699
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
1700
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
1701
- const test = (fn, ...args) => {
1160
+ }, Ie = 64 * 1024, { isFunction: Z } = a, jn = (({ Request: e, Response: t }) => ({
1161
+ Request: e,
1162
+ Response: t
1163
+ }))(a.global), {
1164
+ ReadableStream: He,
1165
+ TextEncoder: Me
1166
+ } = a.global, ze = (e, ...t) => {
1702
1167
  try {
1703
- return !!fn(...args);
1704
- } catch (e) {
1705
- return false;
1706
- }
1707
- };
1708
- const supportsRequestStream = isReadableStreamSupported && test(() => {
1709
- let duplexAccessed = false;
1710
- const hasContentType = new Request(platform.origin, {
1711
- body: new ReadableStream(),
1712
- method: "POST",
1713
- get duplex() {
1714
- duplexAccessed = true;
1715
- return "half";
1716
- }
1717
- }).headers.has("Content-Type");
1718
- return duplexAccessed && !hasContentType;
1719
- });
1720
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
1721
- const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
1722
- const resolvers = {
1723
- stream: supportsResponseStream && ((res) => res.body)
1724
- };
1725
- isFetchSupported && ((res) => {
1726
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
1727
- !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
1728
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
1729
- });
1730
- });
1731
- })(new Response());
1732
- const getBodyLength = async (body) => {
1733
- if (body == null) {
1734
- return 0;
1735
- }
1736
- if (utils$1.isBlob(body)) {
1737
- return body.size;
1738
- }
1739
- if (utils$1.isSpecCompliantForm(body)) {
1740
- const _request = new Request(platform.origin, {
1168
+ return !!e(...t);
1169
+ } catch {
1170
+ return !1;
1171
+ }
1172
+ }, qn = (e) => {
1173
+ e = a.merge.call({
1174
+ skipUndefined: !0
1175
+ }, jn, e);
1176
+ const { fetch: t, Request: n, Response: r } = e, s = t ? Z(t) : typeof fetch == "function", i = Z(n), o = Z(r);
1177
+ if (!s)
1178
+ return !1;
1179
+ const c = s && Z(He), d = s && (typeof Me == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Me()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && ze(() => {
1180
+ let u = !1;
1181
+ const m = new n(S.origin, {
1182
+ body: new He(),
1741
1183
  method: "POST",
1742
- body
1184
+ get duplex() {
1185
+ return u = !0, "half";
1186
+ }
1187
+ }).headers.has("Content-Type");
1188
+ return u && !m;
1189
+ }), l = o && c && ze(() => a.isReadableStream(new r("").body)), h = {
1190
+ stream: l && ((u) => u.body)
1191
+ };
1192
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1193
+ !h[u] && (h[u] = (m, p) => {
1194
+ let E = m && m[u];
1195
+ if (E)
1196
+ return E.call(m);
1197
+ throw new y(`Response type '${u}' is not supported`, y.ERR_NOT_SUPPORT, p);
1743
1198
  });
1744
- return (await _request.arrayBuffer()).byteLength;
1745
- }
1746
- if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
1747
- return body.byteLength;
1748
- }
1749
- if (utils$1.isURLSearchParams(body)) {
1750
- body = body + "";
1751
- }
1752
- if (utils$1.isString(body)) {
1753
- return (await encodeText(body)).byteLength;
1754
- }
1755
- };
1756
- const resolveBodyLength = async (headers, body) => {
1757
- const length = utils$1.toFiniteNumber(headers.getContentLength());
1758
- return length == null ? getBodyLength(body) : length;
1759
- };
1760
- const fetchAdapter = isFetchSupported && (async (config) => {
1761
- let {
1762
- url,
1763
- method,
1764
- data,
1765
- signal,
1766
- cancelToken,
1767
- timeout,
1768
- onDownloadProgress,
1769
- onUploadProgress,
1770
- responseType,
1771
- headers,
1772
- withCredentials = "same-origin",
1773
- fetchOptions
1774
- } = resolveConfig(config);
1775
- responseType = responseType ? (responseType + "").toLowerCase() : "text";
1776
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
1777
- let request;
1778
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
1779
- composedSignal.unsubscribe();
1780
1199
  });
1781
- let requestContentLength;
1782
- try {
1783
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
1784
- let _request = new Request(url, {
1200
+ const b = async (u) => {
1201
+ if (u == null)
1202
+ return 0;
1203
+ if (a.isBlob(u))
1204
+ return u.size;
1205
+ if (a.isSpecCompliantForm(u))
1206
+ return (await new n(S.origin, {
1785
1207
  method: "POST",
1786
- body: data,
1787
- duplex: "half"
1788
- });
1789
- let contentTypeHeader;
1790
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
1791
- headers.setContentType(contentTypeHeader);
1208
+ body: u
1209
+ }).arrayBuffer()).byteLength;
1210
+ if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
1211
+ return u.byteLength;
1212
+ if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1213
+ return (await d(u)).byteLength;
1214
+ }, R = async (u, m) => {
1215
+ const p = a.toFiniteNumber(u.getContentLength());
1216
+ return p ?? b(m);
1217
+ };
1218
+ return async (u) => {
1219
+ let {
1220
+ url: m,
1221
+ method: p,
1222
+ data: E,
1223
+ signal: x,
1224
+ cancelToken: g,
1225
+ timeout: O,
1226
+ onDownloadProgress: N,
1227
+ onUploadProgress: B,
1228
+ responseType: C,
1229
+ headers: ce,
1230
+ withCredentials: X = "same-origin",
1231
+ fetchOptions: Te
1232
+ } = ut(u), Ae = t || fetch;
1233
+ C = C ? (C + "").toLowerCase() : "text";
1234
+ let G = Un([x, g && g.toAbortSignal()], O), J = null;
1235
+ const D = G && G.unsubscribe && (() => {
1236
+ G.unsubscribe();
1237
+ });
1238
+ let xe;
1239
+ try {
1240
+ if (B && f && p !== "get" && p !== "head" && (xe = await R(ce, E)) !== 0) {
1241
+ let U = new n(m, {
1242
+ method: "POST",
1243
+ body: E,
1244
+ duplex: "half"
1245
+ }), I;
1246
+ if (a.isFormData(E) && (I = U.headers.get("content-type")) && ce.setContentType(I), U.body) {
1247
+ const [le, Q] = De(
1248
+ xe,
1249
+ ne(ke(B))
1250
+ );
1251
+ E = qe(U.body, Ie, le, Q);
1252
+ }
1792
1253
  }
1793
- if (_request.body) {
1794
- const [onProgress, flush] = progressEventDecorator(
1795
- requestContentLength,
1796
- progressEventReducer(asyncDecorator(onUploadProgress))
1254
+ a.isString(X) || (X = X ? "include" : "omit");
1255
+ const _ = i && "credentials" in n.prototype, Ce = {
1256
+ ...Te,
1257
+ signal: G,
1258
+ method: p.toUpperCase(),
1259
+ headers: ce.normalize().toJSON(),
1260
+ body: E,
1261
+ duplex: "half",
1262
+ credentials: _ ? X : void 0
1263
+ };
1264
+ J = i && new n(m, Ce);
1265
+ let L = await (i ? Ae(J, Te) : Ae(m, Ce));
1266
+ const Ne = l && (C === "stream" || C === "response");
1267
+ if (l && (N || Ne && D)) {
1268
+ const U = {};
1269
+ ["status", "statusText", "headers"].forEach((Pe) => {
1270
+ U[Pe] = L[Pe];
1271
+ });
1272
+ const I = a.toFiniteNumber(L.headers.get("content-length")), [le, Q] = N && De(
1273
+ I,
1274
+ ne(ke(N), !0)
1275
+ ) || [];
1276
+ L = new r(
1277
+ qe(L.body, Ie, le, () => {
1278
+ Q && Q(), D && D();
1279
+ }),
1280
+ U
1797
1281
  );
1798
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
1799
1282
  }
1800
- }
1801
- if (!utils$1.isString(withCredentials)) {
1802
- withCredentials = withCredentials ? "include" : "omit";
1803
- }
1804
- const isCredentialsSupported = "credentials" in Request.prototype;
1805
- request = new Request(url, {
1806
- ...fetchOptions,
1807
- signal: composedSignal,
1808
- method: method.toUpperCase(),
1809
- headers: headers.normalize().toJSON(),
1810
- body: data,
1811
- duplex: "half",
1812
- credentials: isCredentialsSupported ? withCredentials : void 0
1813
- });
1814
- let response = await fetch(request, fetchOptions);
1815
- const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
1816
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
1817
- const options = {};
1818
- ["status", "statusText", "headers"].forEach((prop) => {
1819
- options[prop] = response[prop];
1820
- });
1821
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
1822
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
1823
- responseContentLength,
1824
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
1825
- ) || [];
1826
- response = new Response(
1827
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
1828
- flush && flush();
1829
- unsubscribe && unsubscribe();
1830
- }),
1831
- options
1832
- );
1833
- }
1834
- responseType = responseType || "text";
1835
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
1836
- !isStreamResponse && unsubscribe && unsubscribe();
1837
- return await new Promise((resolve, reject) => {
1838
- settle(resolve, reject, {
1839
- data: responseData,
1840
- headers: AxiosHeaders.from(response.headers),
1841
- status: response.status,
1842
- statusText: response.statusText,
1843
- config,
1844
- request
1283
+ C = C || "text";
1284
+ let mt = await h[a.findKey(h, C) || "text"](L, u);
1285
+ return !Ne && D && D(), await new Promise((U, I) => {
1286
+ ct(U, I, {
1287
+ data: mt,
1288
+ headers: A.from(L.headers),
1289
+ status: L.status,
1290
+ statusText: L.statusText,
1291
+ config: u,
1292
+ request: J
1293
+ });
1845
1294
  });
1846
- });
1847
- } catch (err) {
1848
- unsubscribe && unsubscribe();
1849
- if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
1850
- throw Object.assign(
1851
- new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
1295
+ } catch (_) {
1296
+ throw D && D(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
1297
+ new y("Network Error", y.ERR_NETWORK, u, J),
1852
1298
  {
1853
- cause: err.cause || err
1299
+ cause: _.cause || _
1854
1300
  }
1855
- );
1301
+ ) : y.from(_, _ && _.code, u, J);
1856
1302
  }
1857
- throw AxiosError.from(err, err && err.code, config, request);
1303
+ };
1304
+ }, In = /* @__PURE__ */ new Map(), ft = (e) => {
1305
+ let t = e ? e.env : {};
1306
+ const { fetch: n, Request: r, Response: s } = t, i = [
1307
+ r,
1308
+ s,
1309
+ n
1310
+ ];
1311
+ let o = i.length, c = o, d, f, l = In;
1312
+ for (; c--; )
1313
+ d = i[c], f = l.get(d), f === void 0 && l.set(d, f = c ? /* @__PURE__ */ new Map() : qn(t)), l = f;
1314
+ return f;
1315
+ };
1316
+ ft();
1317
+ const ye = {
1318
+ http: tn,
1319
+ xhr: Ln,
1320
+ fetch: {
1321
+ get: ft
1858
1322
  }
1859
- });
1860
- const knownAdapters = {
1861
- http: httpAdapter,
1862
- xhr: xhrAdapter,
1863
- fetch: fetchAdapter
1864
1323
  };
1865
- utils$1.forEach(knownAdapters, (fn, value) => {
1866
- if (fn) {
1324
+ a.forEach(ye, (e, t) => {
1325
+ if (e) {
1867
1326
  try {
1868
- Object.defineProperty(fn, "name", { value });
1869
- } catch (e) {
1327
+ Object.defineProperty(e, "name", { value: t });
1328
+ } catch {
1870
1329
  }
1871
- Object.defineProperty(fn, "adapterName", { value });
1330
+ Object.defineProperty(e, "adapterName", { value: t });
1872
1331
  }
1873
1332
  });
1874
- const renderReason = (reason) => `- ${reason}`;
1875
- const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
1876
- const adapters = {
1877
- getAdapter: (adapters2) => {
1878
- adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
1879
- const { length } = adapters2;
1880
- let nameOrAdapter;
1881
- let adapter;
1882
- const rejectedReasons = {};
1883
- for (let i = 0; i < length; i++) {
1884
- nameOrAdapter = adapters2[i];
1885
- let id;
1886
- adapter = nameOrAdapter;
1887
- if (!isResolvedHandle(nameOrAdapter)) {
1888
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
1889
- if (adapter === void 0) {
1890
- throw new AxiosError(`Unknown adapter '${id}'`);
1891
- }
1892
- }
1893
- if (adapter) {
1333
+ const Je = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === !1, dt = {
1334
+ getAdapter: (e, t) => {
1335
+ e = a.isArray(e) ? e : [e];
1336
+ const { length: n } = e;
1337
+ let r, s;
1338
+ const i = {};
1339
+ for (let o = 0; o < n; o++) {
1340
+ r = e[o];
1341
+ let c;
1342
+ if (s = r, !Hn(r) && (s = ye[(c = String(r)).toLowerCase()], s === void 0))
1343
+ throw new y(`Unknown adapter '${c}'`);
1344
+ if (s && (a.isFunction(s) || (s = s.get(t))))
1894
1345
  break;
1895
- }
1896
- rejectedReasons[id || "#" + i] = adapter;
1346
+ i[c || "#" + o] = s;
1897
1347
  }
1898
- if (!adapter) {
1899
- const reasons = Object.entries(rejectedReasons).map(
1900
- ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
1348
+ if (!s) {
1349
+ const o = Object.entries(i).map(
1350
+ ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1901
1351
  );
1902
- let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
1903
- throw new AxiosError(
1904
- `There is no suitable adapter to dispatch the request ` + s,
1352
+ let c = n ? o.length > 1 ? `since :
1353
+ ` + o.map(Je).join(`
1354
+ `) : " " + Je(o[0]) : "as no adapter specified";
1355
+ throw new y(
1356
+ "There is no suitable adapter to dispatch the request " + c,
1905
1357
  "ERR_NOT_SUPPORT"
1906
1358
  );
1907
1359
  }
1908
- return adapter;
1360
+ return s;
1909
1361
  },
1910
- adapters: knownAdapters
1362
+ adapters: ye
1911
1363
  };
1912
- function throwIfCancellationRequested(config) {
1913
- if (config.cancelToken) {
1914
- config.cancelToken.throwIfRequested();
1915
- }
1916
- if (config.signal && config.signal.aborted) {
1917
- throw new CanceledError(null, config);
1918
- }
1364
+ function de(e) {
1365
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1366
+ throw new z(null, e);
1919
1367
  }
1920
- function dispatchRequest(config) {
1921
- throwIfCancellationRequested(config);
1922
- config.headers = AxiosHeaders.from(config.headers);
1923
- config.data = transformData.call(
1924
- config,
1925
- config.transformRequest
1926
- );
1927
- if (["post", "put", "patch"].indexOf(config.method) !== -1) {
1928
- config.headers.setContentType("application/x-www-form-urlencoded", false);
1929
- }
1930
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
1931
- return adapter(config).then(function onAdapterResolution(response) {
1932
- throwIfCancellationRequested(config);
1933
- response.data = transformData.call(
1934
- config,
1935
- config.transformResponse,
1936
- response
1937
- );
1938
- response.headers = AxiosHeaders.from(response.headers);
1939
- return response;
1940
- }, function onAdapterRejection(reason) {
1941
- if (!isCancel(reason)) {
1942
- throwIfCancellationRequested(config);
1943
- if (reason && reason.response) {
1944
- reason.response.data = transformData.call(
1945
- config,
1946
- config.transformResponse,
1947
- reason.response
1948
- );
1949
- reason.response.headers = AxiosHeaders.from(reason.response.headers);
1950
- }
1951
- }
1952
- return Promise.reject(reason);
1368
+ function $e(e) {
1369
+ return de(e), e.headers = A.from(e.headers), e.data = fe.call(
1370
+ e,
1371
+ e.transformRequest
1372
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), dt.getAdapter(e.adapter || v.adapter, e)(e).then(function(r) {
1373
+ return de(e), r.data = fe.call(
1374
+ e,
1375
+ e.transformResponse,
1376
+ r
1377
+ ), r.headers = A.from(r.headers), r;
1378
+ }, function(r) {
1379
+ return at(r) || (de(e), r && r.response && (r.response.data = fe.call(
1380
+ e,
1381
+ e.transformResponse,
1382
+ r.response
1383
+ ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1953
1384
  });
1954
1385
  }
1955
- const VERSION = "1.11.0";
1956
- const validators$1 = {};
1957
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
1958
- validators$1[type] = function validator2(thing) {
1959
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
1386
+ const pt = "1.12.2", ae = {};
1387
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1388
+ ae[e] = function(r) {
1389
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1960
1390
  };
1961
1391
  });
1962
- const deprecatedWarnings = {};
1963
- validators$1.transitional = function transitional(validator2, version, message) {
1964
- function formatMessage(opt, desc) {
1965
- return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
1966
- }
1967
- return (value, opt, opts) => {
1968
- if (validator2 === false) {
1969
- throw new AxiosError(
1970
- formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
1971
- AxiosError.ERR_DEPRECATED
1972
- );
1973
- }
1974
- if (version && !deprecatedWarnings[opt]) {
1975
- deprecatedWarnings[opt] = true;
1976
- console.warn(
1977
- formatMessage(
1978
- opt,
1979
- " has been deprecated since v" + version + " and will be removed in the near future"
1980
- )
1392
+ const Ve = {};
1393
+ ae.transitional = function(t, n, r) {
1394
+ function s(i, o) {
1395
+ return "[Axios v" + pt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1396
+ }
1397
+ return (i, o, c) => {
1398
+ if (t === !1)
1399
+ throw new y(
1400
+ s(o, " has been removed" + (n ? " in " + n : "")),
1401
+ y.ERR_DEPRECATED
1981
1402
  );
1982
- }
1983
- return validator2 ? validator2(value, opt, opts) : true;
1403
+ return n && !Ve[o] && (Ve[o] = !0, console.warn(
1404
+ s(
1405
+ o,
1406
+ " has been deprecated since v" + n + " and will be removed in the near future"
1407
+ )
1408
+ )), t ? t(i, o, c) : !0;
1984
1409
  };
1985
1410
  };
1986
- validators$1.spelling = function spelling(correctSpelling) {
1987
- return (value, opt) => {
1988
- console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
1989
- return true;
1990
- };
1411
+ ae.spelling = function(t) {
1412
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1991
1413
  };
1992
- function assertOptions(options, schema, allowUnknown) {
1993
- if (typeof options !== "object") {
1994
- throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
1995
- }
1996
- const keys = Object.keys(options);
1997
- let i = keys.length;
1998
- while (i-- > 0) {
1999
- const opt = keys[i];
2000
- const validator2 = schema[opt];
2001
- if (validator2) {
2002
- const value = options[opt];
2003
- const result = value === void 0 || validator2(value, opt, options);
2004
- if (result !== true) {
2005
- throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
2006
- }
1414
+ function Mn(e, t, n) {
1415
+ if (typeof e != "object")
1416
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1417
+ const r = Object.keys(e);
1418
+ let s = r.length;
1419
+ for (; s-- > 0; ) {
1420
+ const i = r[s], o = t[i];
1421
+ if (o) {
1422
+ const c = e[i], d = c === void 0 || o(c, i, e);
1423
+ if (d !== !0)
1424
+ throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
2007
1425
  continue;
2008
1426
  }
2009
- if (allowUnknown !== true) {
2010
- throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
2011
- }
1427
+ if (n !== !0)
1428
+ throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
2012
1429
  }
2013
1430
  }
2014
- const validator = {
2015
- assertOptions,
2016
- validators: validators$1
2017
- };
2018
- const validators = validator.validators;
2019
- class Axios {
2020
- constructor(instanceConfig) {
2021
- this.defaults = instanceConfig || {};
2022
- this.interceptors = {
2023
- request: new InterceptorManager(),
2024
- response: new InterceptorManager()
1431
+ const te = {
1432
+ assertOptions: Mn,
1433
+ validators: ae
1434
+ }, F = te.validators;
1435
+ class j {
1436
+ constructor(t) {
1437
+ this.defaults = t || {}, this.interceptors = {
1438
+ request: new Ue(),
1439
+ response: new Ue()
2025
1440
  };
2026
1441
  }
2027
1442
  /**
@@ -2032,263 +1447,197 @@ class Axios {
2032
1447
  *
2033
1448
  * @returns {Promise} The Promise to be fulfilled
2034
1449
  */
2035
- async request(configOrUrl, config) {
1450
+ async request(t, n) {
2036
1451
  try {
2037
- return await this._request(configOrUrl, config);
2038
- } catch (err) {
2039
- if (err instanceof Error) {
2040
- let dummy = {};
2041
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
2042
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
1452
+ return await this._request(t, n);
1453
+ } catch (r) {
1454
+ if (r instanceof Error) {
1455
+ let s = {};
1456
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1457
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
2043
1458
  try {
2044
- if (!err.stack) {
2045
- err.stack = stack;
2046
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
2047
- err.stack += "\n" + stack;
2048
- }
2049
- } catch (e) {
1459
+ r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1460
+ ` + i) : r.stack = i;
1461
+ } catch {
2050
1462
  }
2051
1463
  }
2052
- throw err;
2053
- }
2054
- }
2055
- _request(configOrUrl, config) {
2056
- if (typeof configOrUrl === "string") {
2057
- config = config || {};
2058
- config.url = configOrUrl;
2059
- } else {
2060
- config = configOrUrl || {};
2061
- }
2062
- config = mergeConfig(this.defaults, config);
2063
- const { transitional: transitional2, paramsSerializer, headers } = config;
2064
- if (transitional2 !== void 0) {
2065
- validator.assertOptions(transitional2, {
2066
- silentJSONParsing: validators.transitional(validators.boolean),
2067
- forcedJSONParsing: validators.transitional(validators.boolean),
2068
- clarifyTimeoutError: validators.transitional(validators.boolean)
2069
- }, false);
2070
- }
2071
- if (paramsSerializer != null) {
2072
- if (utils$1.isFunction(paramsSerializer)) {
2073
- config.paramsSerializer = {
2074
- serialize: paramsSerializer
2075
- };
2076
- } else {
2077
- validator.assertOptions(paramsSerializer, {
2078
- encode: validators.function,
2079
- serialize: validators.function
2080
- }, true);
2081
- }
2082
- }
2083
- if (config.allowAbsoluteUrls !== void 0) ;
2084
- else if (this.defaults.allowAbsoluteUrls !== void 0) {
2085
- config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
2086
- } else {
2087
- config.allowAbsoluteUrls = true;
2088
- }
2089
- validator.assertOptions(config, {
2090
- baseUrl: validators.spelling("baseURL"),
2091
- withXsrfToken: validators.spelling("withXSRFToken")
2092
- }, true);
2093
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
2094
- let contextHeaders = headers && utils$1.merge(
2095
- headers.common,
2096
- headers[config.method]
1464
+ throw r;
1465
+ }
1466
+ }
1467
+ _request(t, n) {
1468
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1469
+ const { transitional: r, paramsSerializer: s, headers: i } = n;
1470
+ r !== void 0 && te.assertOptions(r, {
1471
+ silentJSONParsing: F.transitional(F.boolean),
1472
+ forcedJSONParsing: F.transitional(F.boolean),
1473
+ clarifyTimeoutError: F.transitional(F.boolean)
1474
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1475
+ serialize: s
1476
+ } : te.assertOptions(s, {
1477
+ encode: F.function,
1478
+ serialize: F.function
1479
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), te.assertOptions(n, {
1480
+ baseUrl: F.spelling("baseURL"),
1481
+ withXsrfToken: F.spelling("withXSRFToken")
1482
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1483
+ let o = i && a.merge(
1484
+ i.common,
1485
+ i[n.method]
2097
1486
  );
2098
- headers && utils$1.forEach(
1487
+ i && a.forEach(
2099
1488
  ["delete", "get", "head", "post", "put", "patch", "common"],
2100
- (method) => {
2101
- delete headers[method];
1489
+ (u) => {
1490
+ delete i[u];
2102
1491
  }
2103
- );
2104
- config.headers = AxiosHeaders.concat(contextHeaders, headers);
2105
- const requestInterceptorChain = [];
2106
- let synchronousRequestInterceptors = true;
2107
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
2108
- if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
2109
- return;
2110
- }
2111
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
2112
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
1492
+ ), n.headers = A.concat(o, i);
1493
+ const c = [];
1494
+ let d = !0;
1495
+ this.interceptors.request.forEach(function(m) {
1496
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
2113
1497
  });
2114
- const responseInterceptorChain = [];
2115
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
2116
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
1498
+ const f = [];
1499
+ this.interceptors.response.forEach(function(m) {
1500
+ f.push(m.fulfilled, m.rejected);
2117
1501
  });
2118
- let promise;
2119
- let i = 0;
2120
- let len;
2121
- if (!synchronousRequestInterceptors) {
2122
- const chain = [dispatchRequest.bind(this), void 0];
2123
- chain.unshift(...requestInterceptorChain);
2124
- chain.push(...responseInterceptorChain);
2125
- len = chain.length;
2126
- promise = Promise.resolve(config);
2127
- while (i < len) {
2128
- promise = promise.then(chain[i++], chain[i++]);
2129
- }
2130
- return promise;
2131
- }
2132
- len = requestInterceptorChain.length;
2133
- let newConfig = config;
2134
- i = 0;
2135
- while (i < len) {
2136
- const onFulfilled = requestInterceptorChain[i++];
2137
- const onRejected = requestInterceptorChain[i++];
1502
+ let l, h = 0, b;
1503
+ if (!d) {
1504
+ const u = [$e.bind(this), void 0];
1505
+ for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); h < b; )
1506
+ l = l.then(u[h++], u[h++]);
1507
+ return l;
1508
+ }
1509
+ b = c.length;
1510
+ let R = n;
1511
+ for (; h < b; ) {
1512
+ const u = c[h++], m = c[h++];
2138
1513
  try {
2139
- newConfig = onFulfilled(newConfig);
2140
- } catch (error) {
2141
- onRejected.call(this, error);
1514
+ R = u(R);
1515
+ } catch (p) {
1516
+ m.call(this, p);
2142
1517
  break;
2143
1518
  }
2144
1519
  }
2145
1520
  try {
2146
- promise = dispatchRequest.call(this, newConfig);
2147
- } catch (error) {
2148
- return Promise.reject(error);
1521
+ l = $e.call(this, R);
1522
+ } catch (u) {
1523
+ return Promise.reject(u);
2149
1524
  }
2150
- i = 0;
2151
- len = responseInterceptorChain.length;
2152
- while (i < len) {
2153
- promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
2154
- }
2155
- return promise;
1525
+ for (h = 0, b = f.length; h < b; )
1526
+ l = l.then(f[h++], f[h++]);
1527
+ return l;
2156
1528
  }
2157
- getUri(config) {
2158
- config = mergeConfig(this.defaults, config);
2159
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
2160
- return buildURL(fullPath, config.params, config.paramsSerializer);
1529
+ getUri(t) {
1530
+ t = q(this.defaults, t);
1531
+ const n = lt(t.baseURL, t.url, t.allowAbsoluteUrls);
1532
+ return st(n, t.params, t.paramsSerializer);
2161
1533
  }
2162
1534
  }
2163
- utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
2164
- Axios.prototype[method] = function(url, config) {
2165
- return this.request(mergeConfig(config || {}, {
2166
- method,
2167
- url,
2168
- data: (config || {}).data
1535
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1536
+ j.prototype[t] = function(n, r) {
1537
+ return this.request(q(r || {}, {
1538
+ method: t,
1539
+ url: n,
1540
+ data: (r || {}).data
2169
1541
  }));
2170
1542
  };
2171
1543
  });
2172
- utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
2173
- function generateHTTPMethod(isForm) {
2174
- return function httpMethod(url, data, config) {
2175
- return this.request(mergeConfig(config || {}, {
2176
- method,
2177
- headers: isForm ? {
1544
+ a.forEach(["post", "put", "patch"], function(t) {
1545
+ function n(r) {
1546
+ return function(i, o, c) {
1547
+ return this.request(q(c || {}, {
1548
+ method: t,
1549
+ headers: r ? {
2178
1550
  "Content-Type": "multipart/form-data"
2179
1551
  } : {},
2180
- url,
2181
- data
1552
+ url: i,
1553
+ data: o
2182
1554
  }));
2183
1555
  };
2184
1556
  }
2185
- Axios.prototype[method] = generateHTTPMethod();
2186
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
1557
+ j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
2187
1558
  });
2188
- class CancelToken {
2189
- constructor(executor) {
2190
- if (typeof executor !== "function") {
1559
+ class Re {
1560
+ constructor(t) {
1561
+ if (typeof t != "function")
2191
1562
  throw new TypeError("executor must be a function.");
2192
- }
2193
- let resolvePromise;
2194
- this.promise = new Promise(function promiseExecutor(resolve) {
2195
- resolvePromise = resolve;
1563
+ let n;
1564
+ this.promise = new Promise(function(i) {
1565
+ n = i;
2196
1566
  });
2197
- const token = this;
2198
- this.promise.then((cancel) => {
2199
- if (!token._listeners) return;
2200
- let i = token._listeners.length;
2201
- while (i-- > 0) {
2202
- token._listeners[i](cancel);
2203
- }
2204
- token._listeners = null;
2205
- });
2206
- this.promise.then = (onfulfilled) => {
2207
- let _resolve;
2208
- const promise = new Promise((resolve) => {
2209
- token.subscribe(resolve);
2210
- _resolve = resolve;
2211
- }).then(onfulfilled);
2212
- promise.cancel = function reject() {
2213
- token.unsubscribe(_resolve);
2214
- };
2215
- return promise;
2216
- };
2217
- executor(function cancel(message, config, request) {
2218
- if (token.reason) {
2219
- return;
2220
- }
2221
- token.reason = new CanceledError(message, config, request);
2222
- resolvePromise(token.reason);
1567
+ const r = this;
1568
+ this.promise.then((s) => {
1569
+ if (!r._listeners) return;
1570
+ let i = r._listeners.length;
1571
+ for (; i-- > 0; )
1572
+ r._listeners[i](s);
1573
+ r._listeners = null;
1574
+ }), this.promise.then = (s) => {
1575
+ let i;
1576
+ const o = new Promise((c) => {
1577
+ r.subscribe(c), i = c;
1578
+ }).then(s);
1579
+ return o.cancel = function() {
1580
+ r.unsubscribe(i);
1581
+ }, o;
1582
+ }, t(function(i, o, c) {
1583
+ r.reason || (r.reason = new z(i, o, c), n(r.reason));
2223
1584
  });
2224
1585
  }
2225
1586
  /**
2226
1587
  * Throws a `CanceledError` if cancellation has been requested.
2227
1588
  */
2228
1589
  throwIfRequested() {
2229
- if (this.reason) {
1590
+ if (this.reason)
2230
1591
  throw this.reason;
2231
- }
2232
1592
  }
2233
1593
  /**
2234
1594
  * Subscribe to the cancel signal
2235
1595
  */
2236
- subscribe(listener) {
1596
+ subscribe(t) {
2237
1597
  if (this.reason) {
2238
- listener(this.reason);
1598
+ t(this.reason);
2239
1599
  return;
2240
1600
  }
2241
- if (this._listeners) {
2242
- this._listeners.push(listener);
2243
- } else {
2244
- this._listeners = [listener];
2245
- }
1601
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
2246
1602
  }
2247
1603
  /**
2248
1604
  * Unsubscribe from the cancel signal
2249
1605
  */
2250
- unsubscribe(listener) {
2251
- if (!this._listeners) {
1606
+ unsubscribe(t) {
1607
+ if (!this._listeners)
2252
1608
  return;
2253
- }
2254
- const index = this._listeners.indexOf(listener);
2255
- if (index !== -1) {
2256
- this._listeners.splice(index, 1);
2257
- }
1609
+ const n = this._listeners.indexOf(t);
1610
+ n !== -1 && this._listeners.splice(n, 1);
2258
1611
  }
2259
1612
  toAbortSignal() {
2260
- const controller = new AbortController();
2261
- const abort = (err) => {
2262
- controller.abort(err);
1613
+ const t = new AbortController(), n = (r) => {
1614
+ t.abort(r);
2263
1615
  };
2264
- this.subscribe(abort);
2265
- controller.signal.unsubscribe = () => this.unsubscribe(abort);
2266
- return controller.signal;
1616
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
2267
1617
  }
2268
1618
  /**
2269
1619
  * Returns an object that contains a new `CancelToken` and a function that, when called,
2270
1620
  * cancels the `CancelToken`.
2271
1621
  */
2272
1622
  static source() {
2273
- let cancel;
2274
- const token = new CancelToken(function executor(c) {
2275
- cancel = c;
2276
- });
1623
+ let t;
2277
1624
  return {
2278
- token,
2279
- cancel
1625
+ token: new Re(function(s) {
1626
+ t = s;
1627
+ }),
1628
+ cancel: t
2280
1629
  };
2281
1630
  }
2282
1631
  }
2283
- function spread(callback) {
2284
- return function wrap(arr) {
2285
- return callback.apply(null, arr);
1632
+ function zn(e) {
1633
+ return function(n) {
1634
+ return e.apply(null, n);
2286
1635
  };
2287
1636
  }
2288
- function isAxiosError(payload) {
2289
- return utils$1.isObject(payload) && payload.isAxiosError === true;
1637
+ function Jn(e) {
1638
+ return a.isObject(e) && e.isAxiosError === !0;
2290
1639
  }
2291
- const HttpStatusCode = {
1640
+ const be = {
2292
1641
  Continue: 100,
2293
1642
  SwitchingProtocols: 101,
2294
1643
  Processing: 102,
@@ -2353,62 +1702,48 @@ const HttpStatusCode = {
2353
1702
  NotExtended: 510,
2354
1703
  NetworkAuthenticationRequired: 511
2355
1704
  };
2356
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
2357
- HttpStatusCode[value] = key;
1705
+ Object.entries(be).forEach(([e, t]) => {
1706
+ be[t] = e;
2358
1707
  });
2359
- function createInstance(defaultConfig) {
2360
- const context = new Axios(defaultConfig);
2361
- const instance = bind(Axios.prototype.request, context);
2362
- utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
2363
- utils$1.extend(instance, context, null, { allOwnKeys: true });
2364
- instance.create = function create(instanceConfig) {
2365
- return createInstance(mergeConfig(defaultConfig, instanceConfig));
2366
- };
2367
- return instance;
1708
+ function ht(e) {
1709
+ const t = new j(e), n = We(j.prototype.request, t);
1710
+ return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1711
+ return ht(q(e, s));
1712
+ }, n;
2368
1713
  }
2369
- const axios = createInstance(defaults);
2370
- axios.Axios = Axios;
2371
- axios.CanceledError = CanceledError;
2372
- axios.CancelToken = CancelToken;
2373
- axios.isCancel = isCancel;
2374
- axios.VERSION = VERSION;
2375
- axios.toFormData = toFormData;
2376
- axios.AxiosError = AxiosError;
2377
- axios.Cancel = axios.CanceledError;
2378
- axios.all = function all(promises) {
2379
- return Promise.all(promises);
1714
+ const w = ht(v);
1715
+ w.Axios = j;
1716
+ w.CanceledError = z;
1717
+ w.CancelToken = Re;
1718
+ w.isCancel = at;
1719
+ w.VERSION = pt;
1720
+ w.toFormData = ie;
1721
+ w.AxiosError = y;
1722
+ w.Cancel = w.CanceledError;
1723
+ w.all = function(t) {
1724
+ return Promise.all(t);
2380
1725
  };
2381
- axios.spread = spread;
2382
- axios.isAxiosError = isAxiosError;
2383
- axios.mergeConfig = mergeConfig;
2384
- axios.AxiosHeaders = AxiosHeaders;
2385
- axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
2386
- axios.getAdapter = adapters.getAdapter;
2387
- axios.HttpStatusCode = HttpStatusCode;
2388
- axios.default = axios;
2389
- const API_NAME = {
1726
+ w.spread = zn;
1727
+ w.isAxiosError = Jn;
1728
+ w.mergeConfig = q;
1729
+ w.AxiosHeaders = A;
1730
+ w.formToJSON = (e) => it(a.isHTMLForm(e) ? new FormData(e) : e);
1731
+ w.getAdapter = dt.getAdapter;
1732
+ w.HttpStatusCode = be;
1733
+ w.default = w;
1734
+ const Se = {
2390
1735
  fetchLiveList: "get_live_list",
2391
1736
  destroyRoom: "destroy_room",
2392
1737
  getRoomInfo: "get_room_info"
2393
- };
2394
- const fetchLiveList = async (baseUrl, data) => {
2395
- return await sendRequest(baseUrl, API_NAME.fetchLiveList, data);
2396
- };
2397
- const destroyRoom = async (baseUrl, data) => {
2398
- return await sendRequest(baseUrl, API_NAME.destroyRoom, data);
2399
- };
2400
- const getRoomInfo = async (baseUrl, data) => {
2401
- return await sendRequest(baseUrl, API_NAME.getRoomInfo, data);
2402
- };
2403
- const sendRequest = async (baseUrl, interfaceName, data) => {
2404
- const result = await axios.post(`${baseUrl}/${interfaceName}`, data);
1738
+ }, $n = async (e, t) => await Oe(e, Se.fetchLiveList, t), Vn = async (e, t) => await Oe(e, Se.destroyRoom, t), Wn = async (e, t) => await Oe(e, Se.getRoomInfo, t), Oe = async (e, t, n) => {
1739
+ const r = await w.post(`${e}/${t}`, n);
2405
1740
  return {
2406
- code: result.data.ErrorCode,
2407
- data: result.data.ErrorCode === 0 ? result.data.Response : result.data.ErrorInfo
1741
+ code: r.data.ErrorCode,
1742
+ data: r.data.ErrorCode === 0 ? r.data.Response : r.data.ErrorInfo
2408
1743
  };
2409
1744
  };
2410
1745
  export {
2411
- destroyRoom,
2412
- fetchLiveList,
2413
- getRoomInfo
1746
+ Vn as destroyRoom,
1747
+ $n as fetchLiveList,
1748
+ Wn as getRoomInfo
2414
1749
  };