@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.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 (289) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +255 -47
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/change-enterprises/index.js +298 -90
  5. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  6. package/packages/business-components/change-pwd/index.js +0 -1
  7. package/packages/business-components/currency-page/index.js +0 -1
  8. package/packages/business-components/device-panel/index.js +28123 -23290
  9. package/packages/business-components/device-panel/index.js.gz +0 -0
  10. package/packages/business-components/export-button/index.js +0 -1
  11. package/packages/business-components/import-button/index.js +0 -1
  12. package/packages/business-components/layout-breadcrumb/index.js +0 -1
  13. package/packages/business-components/model-table-dialog/index.js +0 -1
  14. package/packages/business-components/process-configuration/index.js +0 -1
  15. package/packages/business-components/process-form/index.js +1010 -802
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-log/index.js +3669 -332
  18. package/packages/business-components/process-log/index.js.gz +0 -0
  19. package/packages/business-components/process-table/index.js +0 -1
  20. package/packages/business-components/urgent-panel/index.js +2338 -1554
  21. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  22. package/packages/business-components/user-org-dialog/index.js +0 -1
  23. package/packages/business-components/video-dialog/index.js +0 -1
  24. package/packages/components/alert/index.js +3418 -52
  25. package/packages/components/alert/index.js.gz +0 -0
  26. package/packages/components/audio-video/index.js +0 -1
  27. package/packages/components/autocomplete/index.js +2875 -457
  28. package/packages/components/autocomplete/index.js.gz +0 -0
  29. package/packages/components/breadcrumb/index.js +271 -48
  30. package/packages/components/breadcrumb/index.js.gz +0 -0
  31. package/packages/components/button/index.js +9800 -212
  32. package/packages/components/button/index.js.gz +0 -0
  33. package/packages/components/calendar/index.js +0 -1
  34. package/packages/components/cascader/index.js +6406 -140
  35. package/packages/components/cascader/index.js.gz +0 -0
  36. package/packages/components/checkbox/index.js +3837 -180
  37. package/packages/components/checkbox/index.js.gz +0 -0
  38. package/packages/components/collapse-panel/index.js +3624 -31
  39. package/packages/components/collapse-panel/index.js.gz +0 -0
  40. package/packages/components/collapse-transition/index.js +0 -1
  41. package/packages/components/collaspe/index.js +3624 -31
  42. package/packages/components/collaspe/index.js.gz +0 -0
  43. package/packages/components/color-picker/index.js +5346 -107
  44. package/packages/components/color-picker/index.js.gz +0 -0
  45. package/packages/components/custom-search-item/index.js +0 -1
  46. package/packages/components/date-picker/index.js +13993 -530
  47. package/packages/components/date-picker/index.js.gz +0 -0
  48. package/packages/components/dialog/index.js +1835 -187
  49. package/packages/components/dialog/index.js.gz +0 -0
  50. package/packages/components/dimple-layout/index.js +0 -1
  51. package/packages/components/drawer/index.js +1614 -39
  52. package/packages/components/drawer/index.js.gz +0 -0
  53. package/packages/components/dropdown/index.js +4615 -55
  54. package/packages/components/dropdown/index.js.gz +0 -0
  55. package/packages/components/edit-table/index.js +0 -1
  56. package/packages/components/empty/index.js +800 -40
  57. package/packages/components/empty/index.js.gz +0 -0
  58. package/packages/components/form/index.js +0 -1
  59. package/packages/components/form-item/index.js +0 -1
  60. package/packages/components/icon/index.js +0 -1
  61. package/packages/components/image-preview/index.js +1283 -34
  62. package/packages/components/image-preview/index.js.gz +0 -0
  63. package/packages/components/image-upload/index.js +11722 -112
  64. package/packages/components/image-upload/index.js.gz +0 -0
  65. package/packages/components/image-viewer/index.js +13168 -387
  66. package/packages/components/image-viewer/index.js.gz +0 -0
  67. package/packages/components/input/index.js +1086 -158
  68. package/packages/components/input/index.js.gz +0 -0
  69. package/packages/components/input-dialog-select/index.js +0 -1
  70. package/packages/components/input-number/index.js +1831 -146
  71. package/packages/components/input-number/index.js.gz +0 -0
  72. package/packages/components/live-player/index.js +3669 -2884
  73. package/packages/components/live-player/index.js.gz +0 -0
  74. package/packages/components/loading/index.js +0 -1
  75. package/packages/components/map/index.js +5214 -1191
  76. package/packages/components/map/index.js.gz +0 -0
  77. package/packages/components/menu-aside/index.js +8297 -604
  78. package/packages/components/menu-aside/index.js.gz +0 -0
  79. package/packages/components/menu-header/index.js +10077 -39
  80. package/packages/components/menu-header/index.js.gz +0 -0
  81. package/packages/components/message/index.js +1289 -54
  82. package/packages/components/message/index.js.gz +0 -0
  83. package/packages/components/notification/index.js +3269 -48
  84. package/packages/components/notification/index.js.gz +0 -0
  85. package/packages/components/pagination/index.js +8025 -149
  86. package/packages/components/pagination/index.js.gz +0 -0
  87. package/packages/components/popover/index.js +2495 -45
  88. package/packages/components/popover/index.js.gz +0 -0
  89. package/packages/components/popup-mask/index.js +0 -1
  90. package/packages/components/preview/index.js +0 -1
  91. package/packages/components/progress/index.js +517 -108
  92. package/packages/components/progress/index.js.gz +0 -0
  93. package/packages/components/radio/index.js +3724 -160
  94. package/packages/components/radio/index.js.gz +0 -0
  95. package/packages/components/radio-tabs/index.js +0 -1
  96. package/packages/components/rich-editor/index.js +0 -1
  97. package/packages/components/scrollbar/index.js +1442 -916
  98. package/packages/components/scrollbar/index.js.gz +0 -0
  99. package/packages/components/search/index.js +5261 -90
  100. package/packages/components/search/index.js.gz +0 -0
  101. package/packages/components/search-form/index.js +1010 -921
  102. package/packages/components/search-form/index.js.gz +0 -0
  103. package/packages/components/select/index.js +10505 -380
  104. package/packages/components/select/index.js.gz +0 -0
  105. package/packages/components/select-input/index.js +0 -1
  106. package/packages/components/select-list/index.js +1433 -1174
  107. package/packages/components/select-list/index.js.gz +0 -0
  108. package/packages/components/special-range-picker-month/index.js +2645 -197
  109. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  110. package/packages/components/special-range-picker-year/index.js +2710 -260
  111. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  112. package/packages/components/spin/index.js +3534 -49
  113. package/packages/components/spin/index.js.gz +0 -0
  114. package/packages/components/split-panel/index.js +0 -1
  115. package/packages/components/step/index.js +4085 -29
  116. package/packages/components/step/index.js.gz +0 -0
  117. package/packages/components/steps/index.js +4070 -15
  118. package/packages/components/steps/index.js.gz +0 -0
  119. package/packages/components/switch/index.js +547 -32
  120. package/packages/components/switch/index.js.gz +0 -0
  121. package/packages/components/table/index.js +17503 -5202
  122. package/packages/components/table/index.js.gz +0 -0
  123. package/packages/components/tabs/index.js +12630 -173
  124. package/packages/components/tabs/index.js.gz +0 -0
  125. package/packages/components/tag/index.js +325 -56
  126. package/packages/components/tag/index.js.gz +0 -0
  127. package/packages/components/text-tooltip/index.js +0 -1
  128. package/packages/components/time-line/index.js +3397 -61
  129. package/packages/components/time-line/index.js.gz +0 -0
  130. package/packages/components/tooltip/index.js +2174 -66
  131. package/packages/components/tooltip/index.js.gz +0 -0
  132. package/packages/components/tree/index.js +6747 -1882
  133. package/packages/components/tree/index.js.gz +0 -0
  134. package/packages/components/tree-select/index.js +2778 -359
  135. package/packages/components/tree-select/index.js.gz +0 -0
  136. package/packages/components/tree-table/index.js +0 -1
  137. package/packages/components/upload/index.js +11726 -116
  138. package/packages/components/upload/index.js.gz +0 -0
  139. package/packages/components/virtual-tree/index.js +2928 -87
  140. package/packages/components/virtual-tree/index.js.gz +0 -0
  141. package/packages/components/watermark/index.js +368 -18
  142. package/packages/components/watermark/index.js.gz +0 -0
  143. /package/packages/business-components/app-container/{style.css → index.css} +0 -0
  144. /package/packages/business-components/app-container/{style.css.gz → index.css.gz} +0 -0
  145. /package/packages/business-components/change-enterprises/{style.css → index.css} +0 -0
  146. /package/packages/business-components/change-enterprises/{style.css.gz → index.css.gz} +0 -0
  147. /package/packages/business-components/change-pwd/{style.css → index.css} +0 -0
  148. /package/packages/business-components/currency-page/{style.css → index.css} +0 -0
  149. /package/packages/business-components/device-panel/{style.css → index.css} +0 -0
  150. /package/packages/business-components/device-panel/{style.css.gz → index.css.gz} +0 -0
  151. /package/packages/business-components/export-button/{style.css → index.css} +0 -0
  152. /package/packages/business-components/import-button/{style.css → index.css} +0 -0
  153. /package/packages/business-components/layout-breadcrumb/{style.css → index.css} +0 -0
  154. /package/packages/business-components/model-table-dialog/{style.css → index.css} +0 -0
  155. /package/packages/business-components/model-table-dialog/{style.css.gz → index.css.gz} +0 -0
  156. /package/packages/business-components/process-configuration/{style.css → index.css} +0 -0
  157. /package/packages/business-components/process-configuration/{style.css.gz → index.css.gz} +0 -0
  158. /package/packages/business-components/process-form/{style.css → index.css} +0 -0
  159. /package/packages/business-components/process-log/{style.css → index.css} +0 -0
  160. /package/packages/business-components/process-log/{style.css.gz → index.css.gz} +0 -0
  161. /package/packages/business-components/process-table/{style.css → index.css} +0 -0
  162. /package/packages/business-components/urgent-panel/{style.css → index.css} +0 -0
  163. /package/packages/business-components/urgent-panel/{style.css.gz → index.css.gz} +0 -0
  164. /package/packages/business-components/user-org-dialog/{style.css → index.css} +0 -0
  165. /package/packages/business-components/user-org-dialog/{style.css.gz → index.css.gz} +0 -0
  166. /package/packages/business-components/video-dialog/{style.css → index.css} +0 -0
  167. /package/packages/business-components/video-dialog/{style.css.gz → index.css.gz} +0 -0
  168. /package/packages/components/alert/{style.css → index.css} +0 -0
  169. /package/packages/components/alert/{style.css.gz → index.css.gz} +0 -0
  170. /package/packages/components/audio-video/{style.css → index.css} +0 -0
  171. /package/packages/components/autocomplete/{style.css → index.css} +0 -0
  172. /package/packages/components/autocomplete/{style.css.gz → index.css.gz} +0 -0
  173. /package/packages/components/breadcrumb/{style.css → index.css} +0 -0
  174. /package/packages/components/breadcrumb/{style.css.gz → index.css.gz} +0 -0
  175. /package/packages/components/button/{style.css → index.css} +0 -0
  176. /package/packages/components/button/{style.css.gz → index.css.gz} +0 -0
  177. /package/packages/components/calendar/{style.css → index.css} +0 -0
  178. /package/packages/components/calendar/{style.css.gz → index.css.gz} +0 -0
  179. /package/packages/components/cascader/{style.css → index.css} +0 -0
  180. /package/packages/components/cascader/{style.css.gz → index.css.gz} +0 -0
  181. /package/packages/components/checkbox/{style.css → index.css} +0 -0
  182. /package/packages/components/checkbox/{style.css.gz → index.css.gz} +0 -0
  183. /package/packages/components/collapse-panel/{style.css → index.css} +0 -0
  184. /package/packages/components/collapse-panel/{style.css.gz → index.css.gz} +0 -0
  185. /package/packages/components/collapse-transition/{style.css → index.css} +0 -0
  186. /package/packages/components/collaspe/{style.css → index.css} +0 -0
  187. /package/packages/components/color-picker/{style.css → index.css} +0 -0
  188. /package/packages/components/color-picker/{style.css.gz → index.css.gz} +0 -0
  189. /package/packages/components/custom-search-item/{style.css → index.css} +0 -0
  190. /package/packages/components/date-picker/{style.css → index.css} +0 -0
  191. /package/packages/components/date-picker/{style.css.gz → index.css.gz} +0 -0
  192. /package/packages/components/dialog/{style.css → index.css} +0 -0
  193. /package/packages/components/dialog/{style.css.gz → index.css.gz} +0 -0
  194. /package/packages/components/dimple-layout/{style.css → index.css} +0 -0
  195. /package/packages/components/dimple-layout/{style.css.gz → index.css.gz} +0 -0
  196. /package/packages/components/drawer/{style.css → index.css} +0 -0
  197. /package/packages/components/dropdown/{style.css → index.css} +0 -0
  198. /package/packages/components/dropdown/{style.css.gz → index.css.gz} +0 -0
  199. /package/packages/components/edit-table/{style.css → index.css} +0 -0
  200. /package/packages/components/edit-table/{style.css.gz → index.css.gz} +0 -0
  201. /package/packages/components/empty/{style.css → index.css} +0 -0
  202. /package/packages/components/form/{style.css → index.css} +0 -0
  203. /package/packages/components/form-item/{style.css → index.css} +0 -0
  204. /package/packages/components/form-item/{style.css.gz → index.css.gz} +0 -0
  205. /package/packages/components/icon/{style.css → index.css} +0 -0
  206. /package/packages/components/image-upload/{style.css → index.css} +0 -0
  207. /package/packages/components/image-upload/{style.css.gz → index.css.gz} +0 -0
  208. /package/packages/components/image-viewer/{style.css → index.css} +0 -0
  209. /package/packages/components/image-viewer/{style.css.gz → index.css.gz} +0 -0
  210. /package/packages/components/input/{style.css → index.css} +0 -0
  211. /package/packages/components/input/{style.css.gz → index.css.gz} +0 -0
  212. /package/packages/components/input-dialog-select/{style.css → index.css} +0 -0
  213. /package/packages/components/input-dialog-select/{style.css.gz → index.css.gz} +0 -0
  214. /package/packages/components/input-number/{style.css → index.css} +0 -0
  215. /package/packages/components/input-number/{style.css.gz → index.css.gz} +0 -0
  216. /package/packages/components/live-player/{style.css → index.css} +0 -0
  217. /package/packages/components/loading/{style.css → index.css} +0 -0
  218. /package/packages/components/loading/{style.css.gz → index.css.gz} +0 -0
  219. /package/packages/components/map/{style.css → index.css} +0 -0
  220. /package/packages/components/menu-aside/{style.css → index.css} +0 -0
  221. /package/packages/components/menu-aside/{style.css.gz → index.css.gz} +0 -0
  222. /package/packages/components/menu-header/{style.css → index.css} +0 -0
  223. /package/packages/components/menu-header/{style.css.gz → index.css.gz} +0 -0
  224. /package/packages/components/message/{style.css → index.css} +0 -0
  225. /package/packages/components/message/{style.css.gz → index.css.gz} +0 -0
  226. /package/packages/components/notification/{style.css → index.css} +0 -0
  227. /package/packages/components/notification/{style.css.gz → index.css.gz} +0 -0
  228. /package/packages/components/pagination/{style.css → index.css} +0 -0
  229. /package/packages/components/pagination/{style.css.gz → index.css.gz} +0 -0
  230. /package/packages/components/popover/{style.css → index.css} +0 -0
  231. /package/packages/components/popover/{style.css.gz → index.css.gz} +0 -0
  232. /package/packages/components/popup-mask/{style.css → index.css} +0 -0
  233. /package/packages/components/preview/{style.css → index.css} +0 -0
  234. /package/packages/components/progress/{style.css → index.css} +0 -0
  235. /package/packages/components/progress/{style.css.gz → index.css.gz} +0 -0
  236. /package/packages/components/radio/{style.css → index.css} +0 -0
  237. /package/packages/components/radio/{style.css.gz → index.css.gz} +0 -0
  238. /package/packages/components/radio-tabs/{style.css → index.css} +0 -0
  239. /package/packages/components/radio-tabs/{style.css.gz → index.css.gz} +0 -0
  240. /package/packages/components/rich-editor/{style.css → index.css} +0 -0
  241. /package/packages/components/rich-editor/{style.css.gz → index.css.gz} +0 -0
  242. /package/packages/components/scrollbar/{style.css → index.css} +0 -0
  243. /package/packages/components/scrollbar/{style.css.gz → index.css.gz} +0 -0
  244. /package/packages/components/search/{style.css → index.css} +0 -0
  245. /package/packages/components/search/{style.css.gz → index.css.gz} +0 -0
  246. /package/packages/components/search-form/{style.css → index.css} +0 -0
  247. /package/packages/components/search-form/{style.css.gz → index.css.gz} +0 -0
  248. /package/packages/components/select/{style.css → index.css} +0 -0
  249. /package/packages/components/select/{style.css.gz → index.css.gz} +0 -0
  250. /package/packages/components/select-input/{style.css → index.css} +0 -0
  251. /package/packages/components/select-input/{style.css.gz → index.css.gz} +0 -0
  252. /package/packages/components/select-list/{style.css → index.css} +0 -0
  253. /package/packages/components/select-list/{style.css.gz → index.css.gz} +0 -0
  254. /package/packages/components/special-range-picker-month/{style.css → index.css} +0 -0
  255. /package/packages/components/special-range-picker-month/{style.css.gz → index.css.gz} +0 -0
  256. /package/packages/components/special-range-picker-year/{style.css → index.css} +0 -0
  257. /package/packages/components/special-range-picker-year/{style.css.gz → index.css.gz} +0 -0
  258. /package/packages/components/spin/{style.css → index.css} +0 -0
  259. /package/packages/components/spin/{style.css.gz → index.css.gz} +0 -0
  260. /package/packages/components/split-panel/{style.css → index.css} +0 -0
  261. /package/packages/components/split-panel/{style.css.gz → index.css.gz} +0 -0
  262. /package/packages/components/step/{style.css → index.css} +0 -0
  263. /package/packages/components/steps/{style.css → index.css} +0 -0
  264. /package/packages/components/steps/{style.css.gz → index.css.gz} +0 -0
  265. /package/packages/components/switch/{style.css → index.css} +0 -0
  266. /package/packages/components/switch/{style.css.gz → index.css.gz} +0 -0
  267. /package/packages/components/table/{style.css → index.css} +0 -0
  268. /package/packages/components/table/{style.css.gz → index.css.gz} +0 -0
  269. /package/packages/components/tabs/{style.css → index.css} +0 -0
  270. /package/packages/components/tabs/{style.css.gz → index.css.gz} +0 -0
  271. /package/packages/components/tag/{style.css → index.css} +0 -0
  272. /package/packages/components/tag/{style.css.gz → index.css.gz} +0 -0
  273. /package/packages/components/text-tooltip/{style.css → index.css} +0 -0
  274. /package/packages/components/text-tooltip/{style.css.gz → index.css.gz} +0 -0
  275. /package/packages/components/time-line/{style.css → index.css} +0 -0
  276. /package/packages/components/time-line/{style.css.gz → index.css.gz} +0 -0
  277. /package/packages/components/tooltip/{style.css → index.css} +0 -0
  278. /package/packages/components/tooltip/{style.css.gz → index.css.gz} +0 -0
  279. /package/packages/components/tree/{style.css → index.css} +0 -0
  280. /package/packages/components/tree/{style.css.gz → index.css.gz} +0 -0
  281. /package/packages/components/tree-select/{style.css → index.css} +0 -0
  282. /package/packages/components/tree-select/{style.css.gz → index.css.gz} +0 -0
  283. /package/packages/components/tree-table/{style.css → index.css} +0 -0
  284. /package/packages/components/tree-table/{style.css.gz → index.css.gz} +0 -0
  285. /package/packages/components/upload/{style.css → index.css} +0 -0
  286. /package/packages/components/upload/{style.css.gz → index.css.gz} +0 -0
  287. /package/packages/components/virtual-tree/{style.css → index.css} +0 -0
  288. /package/packages/components/virtual-tree/{style.css.gz → index.css.gz} +0 -0
  289. /package/packages/components/watermark/{style.css → index.css} +0 -0
@@ -1,18 +1,2468 @@
1
- import '@das-fed/ui/packages/components/popover/style.css';
2
- import { withInstall as w } from "@das-fed/utils/with-install/index";
3
- import { i18n as m, setI18nRule as _ } from "@das-fed/web/packages/i18n/index";
4
- import { defineComponent as b, useAttrs as g, ref as D, computed as O, openBlock as s, createBlock as V, unref as t, mergeProps as E, withCtx as r, renderSlot as d, withDirectives as I, createElementBlock as p, toDisplayString as n, createCommentVNode as u, createElementVNode as P, createTextVNode as a, createVNode as f } from "vue";
5
- import { ElPopover as R, ClickOutside as z } from "element-plus";
6
- import { DasButton as v } from "@das-fed/ui/packages/components/button/index";
7
- import "element-plus/es/components/popover/style/css";
1
+ import { withInstall as yo } from "@das-fed/utils/with-install/index";
2
+ import { i18n as Xt, setI18nRule as ho } from "@das-fed/web/packages/i18n/index";
3
+ import { getCurrentScope as bo, onScopeDispose as wo, unref as v, watch as L, warn as Eo, getCurrentInstance as at, inject as G, ref as A, computed as T, onMounted as ve, shallowRef as Oo, onBeforeUnmount as le, onBeforeMount as To, provide as fe, defineComponent as B, renderSlot as W, openBlock as D, createElementBlock as pe, normalizeClass as Tt, normalizeStyle as Co, withDirectives as Ct, cloneVNode as Io, Fragment as Po, Text as _o, Comment as So, createVNode as Oe, createBlock as de, mergeProps as Ue, withCtx as K, createCommentVNode as ae, nextTick as en, toRef as xe, Teleport as Ao, Transition as Ro, vShow as No, readonly as ko, onDeactivated as $o, toDisplayString as be, createTextVNode as tt, useAttrs as Fo, createElementVNode as xo } from "vue";
4
+ import { DasButton as tn } from "@das-fed/ui/packages/components/button/index";
5
+ import "element-plus/theme-chalk/base.css";
6
+ import "element-plus/theme-chalk/el-popper.css";
7
+ import "element-plus/theme-chalk/el-popover.css";
8
8
  import "@das-fed/ui/packages/global/theme";
9
- const S = { class: "das-ui-popover-container" }, T = {
9
+ const se = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => {
10
+ const s = e == null ? void 0 : e(r);
11
+ if (n === !1 || !s)
12
+ return t == null ? void 0 : t(r);
13
+ };
14
+ var nn;
15
+ const Y = typeof window < "u", Bo = (e) => typeof e == "string", Bn = () => {
16
+ }, Lo = Y && ((nn = window == null ? void 0 : window.navigator) == null ? void 0 : nn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
17
+ function Ln(e) {
18
+ return typeof e == "function" ? e() : v(e);
19
+ }
20
+ function Mo(e) {
21
+ return e;
22
+ }
23
+ function Mn(e) {
24
+ return bo() ? (wo(e), !0) : !1;
25
+ }
26
+ function we(e) {
27
+ var t;
28
+ const n = Ln(e);
29
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
30
+ }
31
+ const Dn = Y ? window : void 0;
32
+ function dt(...e) {
33
+ let t, n, o, r;
34
+ if (Bo(e[0]) || Array.isArray(e[0]) ? ([n, o, r] = e, t = Dn) : [t, n, o, r] = e, !t)
35
+ return Bn;
36
+ Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
37
+ const s = [], a = () => {
38
+ s.forEach((d) => d()), s.length = 0;
39
+ }, u = (d, g, y, h) => (d.addEventListener(g, y, h), () => d.removeEventListener(g, y, h)), l = L(() => [we(t), Ln(r)], ([d, g]) => {
40
+ a(), d && s.push(...n.flatMap((y) => o.map((h) => u(d, y, h, g))));
41
+ }, { immediate: !0, flush: "post" }), i = () => {
42
+ l(), a();
43
+ };
44
+ return Mn(i), i;
45
+ }
46
+ let on = !1;
47
+ function Do(e, t, n = {}) {
48
+ const { window: o = Dn, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
49
+ if (!o)
50
+ return;
51
+ Lo && !on && (on = !0, Array.from(o.document.body.children).forEach((y) => y.addEventListener("click", Bn)));
52
+ let u = !0;
53
+ const l = (y) => r.some((h) => {
54
+ if (typeof h == "string")
55
+ return Array.from(o.document.querySelectorAll(h)).some((f) => f === y.target || y.composedPath().includes(f));
56
+ {
57
+ const f = we(h);
58
+ return f && (y.target === f || y.composedPath().includes(f));
59
+ }
60
+ }), d = [
61
+ dt(o, "click", (y) => {
62
+ const h = we(e);
63
+ if (!(!h || h === y.target || y.composedPath().includes(h))) {
64
+ if (y.detail === 0 && (u = !l(y)), !u) {
65
+ u = !0;
66
+ return;
67
+ }
68
+ t(y);
69
+ }
70
+ }, { passive: !0, capture: s }),
71
+ dt(o, "pointerdown", (y) => {
72
+ const h = we(e);
73
+ h && (u = !y.composedPath().includes(h) && !l(y));
74
+ }, { passive: !0 }),
75
+ a && dt(o, "blur", (y) => {
76
+ var h;
77
+ const f = we(e);
78
+ ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(y);
79
+ })
80
+ ].filter(Boolean);
81
+ return () => d.forEach((y) => y());
82
+ }
83
+ const rn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, sn = "__vueuse_ssr_handlers__";
84
+ rn[sn] = rn[sn] || {};
85
+ var an;
86
+ (function(e) {
87
+ e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
88
+ })(an || (an = {}));
89
+ var jo = Object.defineProperty, ln = Object.getOwnPropertySymbols, Ho = Object.prototype.hasOwnProperty, Ko = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Uo = (e, t) => {
90
+ for (var n in t || (t = {}))
91
+ Ho.call(t, n) && un(e, n, t[n]);
92
+ if (ln)
93
+ for (var n of ln(t))
94
+ Ko.call(t, n) && un(e, n, t[n]);
95
+ return e;
96
+ };
97
+ const Vo = {
98
+ easeInSine: [0.12, 0, 0.39, 0],
99
+ easeOutSine: [0.61, 1, 0.88, 1],
100
+ easeInOutSine: [0.37, 0, 0.63, 1],
101
+ easeInQuad: [0.11, 0, 0.5, 0],
102
+ easeOutQuad: [0.5, 1, 0.89, 1],
103
+ easeInOutQuad: [0.45, 0, 0.55, 1],
104
+ easeInCubic: [0.32, 0, 0.67, 0],
105
+ easeOutCubic: [0.33, 1, 0.68, 1],
106
+ easeInOutCubic: [0.65, 0, 0.35, 1],
107
+ easeInQuart: [0.5, 0, 0.75, 0],
108
+ easeOutQuart: [0.25, 1, 0.5, 1],
109
+ easeInOutQuart: [0.76, 0, 0.24, 1],
110
+ easeInQuint: [0.64, 0, 0.78, 0],
111
+ easeOutQuint: [0.22, 1, 0.36, 1],
112
+ easeInOutQuint: [0.83, 0, 0.17, 1],
113
+ easeInExpo: [0.7, 0, 0.84, 0],
114
+ easeOutExpo: [0.16, 1, 0.3, 1],
115
+ easeInOutExpo: [0.87, 0, 0.13, 1],
116
+ easeInCirc: [0.55, 0, 1, 0.45],
117
+ easeOutCirc: [0, 0.55, 0.45, 1],
118
+ easeInOutCirc: [0.85, 0, 0.15, 1],
119
+ easeInBack: [0.36, 0, 0.66, -0.56],
120
+ easeOutBack: [0.34, 1.56, 0.64, 1],
121
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
122
+ };
123
+ Uo({
124
+ linear: Mo
125
+ }, Vo);
126
+ /**
127
+ * @vue/shared v3.4.35
128
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
129
+ * @license MIT
130
+ **/
131
+ process.env.NODE_ENV !== "production" && Object.freeze({});
132
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
133
+ const bt = () => {
134
+ }, Wo = Object.prototype.hasOwnProperty, cn = (e, t) => Wo.call(e, t), zo = Array.isArray, Qe = (e) => typeof e == "function", it = (e) => typeof e == "string", It = (e) => e !== null && typeof e == "object";
135
+ function wt(e) {
136
+ for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
137
+ var r = e[t];
138
+ o[r[0]] = r[1];
139
+ }
140
+ return o;
141
+ }
142
+ function Pt(e) {
143
+ return e == null;
144
+ }
145
+ function qo(e) {
146
+ return e === void 0;
147
+ }
148
+ const _t = (e) => typeof e == "boolean", Me = (e) => typeof e == "number", De = (e) => typeof Element > "u" ? !1 : e instanceof Element, Jo = (e) => it(e) ? !Number.isNaN(Number(e)) : !1;
149
+ class Zo extends Error {
150
+ constructor(t) {
151
+ super(t), this.name = "ElementPlusError";
152
+ }
153
+ }
154
+ function ot(e, t) {
155
+ if (process.env.NODE_ENV !== "production") {
156
+ const n = it(e) ? new Zo(`[${e}] ${t}`) : e;
157
+ }
158
+ }
159
+ const Qo = "utils/dom/style";
160
+ function Yo(e, t = "px") {
161
+ if (!e)
162
+ return "";
163
+ if (Me(e) || Jo(e))
164
+ return `${e}${t}`;
165
+ if (it(e))
166
+ return e;
167
+ ot(Qo, "binding value must be a string or number");
168
+ }
169
+ const jn = "__epPropKey", S = (e) => e, Go = (e) => It(e) && !!e[jn], St = (e, t) => {
170
+ if (!It(e) || Go(e))
171
+ return e;
172
+ const { values: n, required: o, default: r, type: s, validator: a } = e, l = {
173
+ type: s,
174
+ required: !!o,
175
+ validator: n || a ? (i) => {
176
+ let d = !1, g = [];
177
+ if (n && (g = Array.from(n), cn(e, "default") && g.push(r), d || (d = g.includes(i))), a && (d || (d = a(i))), !d && g.length > 0) {
178
+ const y = [...new Set(g)].map((h) => JSON.stringify(h)).join(", ");
179
+ Eo(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${y}], got value ${JSON.stringify(i)}.`);
180
+ }
181
+ return d;
182
+ } : void 0,
183
+ [jn]: !0
184
+ };
185
+ return cn(e, "default") && (l.default = r), l;
186
+ }, z = (e) => wt(Object.entries(e).map(([t, n]) => [
187
+ t,
188
+ St(n, t)
189
+ ])), Xo = S([
190
+ String,
191
+ Object,
192
+ Function
193
+ ]), At = (e, t) => {
194
+ if (e.install = (n) => {
195
+ for (const o of [e, ...Object.values(t ?? {})])
196
+ n.component(o.name, o);
197
+ }, t)
198
+ for (const [n, o] of Object.entries(t))
199
+ e[n] = o;
200
+ return e;
201
+ }, er = (e, t) => (e.install = (n) => {
202
+ n.directive(t, e);
203
+ }, e), rt = {
204
+ tab: "Tab",
205
+ enter: "Enter",
206
+ space: "Space",
207
+ left: "ArrowLeft",
208
+ up: "ArrowUp",
209
+ right: "ArrowRight",
210
+ down: "ArrowDown",
211
+ esc: "Escape",
212
+ delete: "Delete",
213
+ backspace: "Backspace",
214
+ numpadEnter: "NumpadEnter",
215
+ pageUp: "PageUp",
216
+ pageDown: "PageDown",
217
+ home: "Home",
218
+ end: "End"
219
+ }, vt = "el", tr = "is-", he = (e, t, n, o, r) => {
220
+ let s = `${e}-${t}`;
221
+ return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
222
+ }, nr = Symbol("namespaceContextKey"), Rt = (e) => {
223
+ const t = at() ? G(nr, A(vt)) : A(vt);
224
+ return T(() => v(t) || vt);
225
+ }, Ne = (e, t) => {
226
+ const n = Rt();
227
+ return {
228
+ namespace: n,
229
+ b: (p = "") => he(n.value, e, p, "", ""),
230
+ e: (p) => p ? he(n.value, e, "", p, "") : "",
231
+ m: (p) => p ? he(n.value, e, "", "", p) : "",
232
+ be: (p, m) => p && m ? he(n.value, e, p, m, "") : "",
233
+ em: (p, m) => p && m ? he(n.value, e, "", p, m) : "",
234
+ bm: (p, m) => p && m ? he(n.value, e, p, "", m) : "",
235
+ bem: (p, m, c) => p && m && c ? he(n.value, e, p, m, c) : "",
236
+ is: (p, ...m) => {
237
+ const c = m.length >= 1 ? m[0] : !0;
238
+ return p && c ? `${tr}${p}` : "";
239
+ },
240
+ cssVar: (p) => {
241
+ const m = {};
242
+ for (const c in p)
243
+ p[c] && (m[`--${n.value}-${c}`] = p[c]);
244
+ return m;
245
+ },
246
+ cssVarName: (p) => `--${n.value}-${p}`,
247
+ cssVarBlock: (p) => {
248
+ const m = {};
249
+ for (const c in p)
250
+ p[c] && (m[`--${n.value}-${e}-${c}`] = p[c]);
251
+ return m;
252
+ },
253
+ cssVarBlockName: (p) => `--${n.value}-${e}-${p}`
254
+ };
255
+ }, or = St({
256
+ type: S(Boolean),
257
+ default: null
258
+ }), rr = St({
259
+ type: S(Function)
260
+ }), Hn = (e) => {
261
+ const t = `update:${e}`, n = `onUpdate:${e}`, o = [t], r = {
262
+ [e]: or,
263
+ [n]: rr
264
+ };
265
+ return {
266
+ useModelToggle: ({
267
+ indicator: a,
268
+ toggleReason: u,
269
+ shouldHideWhenRouteChanges: l,
270
+ shouldProceed: i,
271
+ onShow: d,
272
+ onHide: g
273
+ }) => {
274
+ const y = at(), { emit: h } = y, f = y.props, p = T(() => Qe(f[n])), m = T(() => f[e] === null), c = (O) => {
275
+ a.value !== !0 && (a.value = !0, u && (u.value = O), Qe(d) && d(O));
276
+ }, w = (O) => {
277
+ a.value !== !1 && (a.value = !1, u && (u.value = O), Qe(g) && g(O));
278
+ }, C = (O) => {
279
+ if (f.disabled === !0 || Qe(i) && !i())
280
+ return;
281
+ const P = p.value && Y;
282
+ P && h(t, !0), (m.value || !P) && c(O);
283
+ }, b = (O) => {
284
+ if (f.disabled === !0 || !Y)
285
+ return;
286
+ const P = p.value && Y;
287
+ P && h(t, !1), (m.value || !P) && w(O);
288
+ }, I = (O) => {
289
+ _t(O) && (f.disabled && O ? p.value && h(t, !1) : a.value !== O && (O ? c() : w()));
290
+ }, _ = () => {
291
+ a.value ? b() : C();
292
+ };
293
+ return L(() => f[e], I), l && y.appContext.config.globalProperties.$route !== void 0 && L(() => ({
294
+ ...y.proxy.$route
295
+ }), () => {
296
+ l.value && a.value && b();
297
+ }), ve(() => {
298
+ I(f[e]);
299
+ }), {
300
+ hide: b,
301
+ show: C,
302
+ toggle: _,
303
+ hasUpdateHandler: p
304
+ };
305
+ },
306
+ useModelToggleProps: r,
307
+ useModelToggleEmits: o
308
+ };
309
+ };
310
+ Hn("modelValue");
311
+ var U = "top", Z = "bottom", Q = "right", V = "left", Nt = "auto", Ve = [U, Z, Q, V], Pe = "start", je = "end", sr = "clippingParents", Kn = "viewport", Fe = "popper", ar = "reference", pn = Ve.reduce(function(e, t) {
312
+ return e.concat([t + "-" + Pe, t + "-" + je]);
313
+ }, []), kt = [].concat(Ve, [Nt]).reduce(function(e, t) {
314
+ return e.concat([t, t + "-" + Pe, t + "-" + je]);
315
+ }, []), ir = "beforeRead", lr = "read", ur = "afterRead", cr = "beforeMain", pr = "main", fr = "afterMain", dr = "beforeWrite", vr = "write", mr = "afterWrite", gr = [ir, lr, ur, cr, pr, fr, dr, vr, mr];
316
+ function oe(e) {
317
+ return e ? (e.nodeName || "").toLowerCase() : null;
318
+ }
319
+ function X(e) {
320
+ if (e == null) return window;
321
+ if (e.toString() !== "[object Window]") {
322
+ var t = e.ownerDocument;
323
+ return t && t.defaultView || window;
324
+ }
325
+ return e;
326
+ }
327
+ function _e(e) {
328
+ var t = X(e).Element;
329
+ return e instanceof t || e instanceof Element;
330
+ }
331
+ function J(e) {
332
+ var t = X(e).HTMLElement;
333
+ return e instanceof t || e instanceof HTMLElement;
334
+ }
335
+ function $t(e) {
336
+ if (typeof ShadowRoot > "u") return !1;
337
+ var t = X(e).ShadowRoot;
338
+ return e instanceof t || e instanceof ShadowRoot;
339
+ }
340
+ function yr(e) {
341
+ var t = e.state;
342
+ Object.keys(t.elements).forEach(function(n) {
343
+ var o = t.styles[n] || {}, r = t.attributes[n] || {}, s = t.elements[n];
344
+ !J(s) || !oe(s) || (Object.assign(s.style, o), Object.keys(r).forEach(function(a) {
345
+ var u = r[a];
346
+ u === !1 ? s.removeAttribute(a) : s.setAttribute(a, u === !0 ? "" : u);
347
+ }));
348
+ });
349
+ }
350
+ function hr(e) {
351
+ var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
352
+ return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
353
+ Object.keys(t.elements).forEach(function(o) {
354
+ var r = t.elements[o], s = t.attributes[o] || {}, a = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), u = a.reduce(function(l, i) {
355
+ return l[i] = "", l;
356
+ }, {});
357
+ !J(r) || !oe(r) || (Object.assign(r.style, u), Object.keys(s).forEach(function(l) {
358
+ r.removeAttribute(l);
359
+ }));
360
+ });
361
+ };
362
+ }
363
+ var Un = { name: "applyStyles", enabled: !0, phase: "write", fn: yr, effect: hr, requires: ["computeStyles"] };
364
+ function ne(e) {
365
+ return e.split("-")[0];
366
+ }
367
+ var Ee = Math.max, st = Math.min, Se = Math.round;
368
+ function Ae(e, t) {
369
+ t === void 0 && (t = !1);
370
+ var n = e.getBoundingClientRect(), o = 1, r = 1;
371
+ if (J(e) && t) {
372
+ var s = e.offsetHeight, a = e.offsetWidth;
373
+ a > 0 && (o = Se(n.width) / a || 1), s > 0 && (r = Se(n.height) / s || 1);
374
+ }
375
+ return { width: n.width / o, height: n.height / r, top: n.top / r, right: n.right / o, bottom: n.bottom / r, left: n.left / o, x: n.left / o, y: n.top / r };
376
+ }
377
+ function Ft(e) {
378
+ var t = Ae(e), n = e.offsetWidth, o = e.offsetHeight;
379
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o };
380
+ }
381
+ function Vn(e, t) {
382
+ var n = t.getRootNode && t.getRootNode();
383
+ if (e.contains(t)) return !0;
384
+ if (n && $t(n)) {
385
+ var o = t;
386
+ do {
387
+ if (o && e.isSameNode(o)) return !0;
388
+ o = o.parentNode || o.host;
389
+ } while (o);
390
+ }
391
+ return !1;
392
+ }
393
+ function ie(e) {
394
+ return X(e).getComputedStyle(e);
395
+ }
396
+ function br(e) {
397
+ return ["table", "td", "th"].indexOf(oe(e)) >= 0;
398
+ }
399
+ function me(e) {
400
+ return ((_e(e) ? e.ownerDocument : e.document) || window.document).documentElement;
401
+ }
402
+ function lt(e) {
403
+ return oe(e) === "html" ? e : e.assignedSlot || e.parentNode || ($t(e) ? e.host : null) || me(e);
404
+ }
405
+ function fn(e) {
406
+ return !J(e) || ie(e).position === "fixed" ? null : e.offsetParent;
407
+ }
408
+ function wr(e) {
409
+ var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
410
+ if (n && J(e)) {
411
+ var o = ie(e);
412
+ if (o.position === "fixed") return null;
413
+ }
414
+ var r = lt(e);
415
+ for ($t(r) && (r = r.host); J(r) && ["html", "body"].indexOf(oe(r)) < 0; ) {
416
+ var s = ie(r);
417
+ if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none") return r;
418
+ r = r.parentNode;
419
+ }
420
+ return null;
421
+ }
422
+ function We(e) {
423
+ for (var t = X(e), n = fn(e); n && br(n) && ie(n).position === "static"; ) n = fn(n);
424
+ return n && (oe(n) === "html" || oe(n) === "body" && ie(n).position === "static") ? t : n || wr(e) || t;
425
+ }
426
+ function xt(e) {
427
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
428
+ }
429
+ function Be(e, t, n) {
430
+ return Ee(e, st(t, n));
431
+ }
432
+ function Er(e, t, n) {
433
+ var o = Be(e, t, n);
434
+ return o > n ? n : o;
435
+ }
436
+ function Wn() {
437
+ return { top: 0, right: 0, bottom: 0, left: 0 };
438
+ }
439
+ function zn(e) {
440
+ return Object.assign({}, Wn(), e);
441
+ }
442
+ function qn(e, t) {
443
+ return t.reduce(function(n, o) {
444
+ return n[o] = e, n;
445
+ }, {});
446
+ }
447
+ var Or = function(e, t) {
448
+ return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, zn(typeof e != "number" ? e : qn(e, Ve));
449
+ };
450
+ function Tr(e) {
451
+ var t, n = e.state, o = e.name, r = e.options, s = n.elements.arrow, a = n.modifiersData.popperOffsets, u = ne(n.placement), l = xt(u), i = [V, Q].indexOf(u) >= 0, d = i ? "height" : "width";
452
+ if (!(!s || !a)) {
453
+ var g = Or(r.padding, n), y = Ft(s), h = l === "y" ? U : V, f = l === "y" ? Z : Q, p = n.rects.reference[d] + n.rects.reference[l] - a[l] - n.rects.popper[d], m = a[l] - n.rects.reference[l], c = We(s), w = c ? l === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0, C = p / 2 - m / 2, b = g[h], I = w - y[d] - g[f], _ = w / 2 - y[d] / 2 + C, O = Be(b, _, I), P = l;
454
+ n.modifiersData[o] = (t = {}, t[P] = O, t.centerOffset = O - _, t);
455
+ }
456
+ }
457
+ function Cr(e) {
458
+ var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
459
+ r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || !Vn(t.elements.popper, r) || (t.elements.arrow = r));
460
+ }
461
+ var Ir = { name: "arrow", enabled: !0, phase: "main", fn: Tr, effect: Cr, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
462
+ function Re(e) {
463
+ return e.split("-")[1];
464
+ }
465
+ var Pr = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
466
+ function _r(e) {
467
+ var t = e.x, n = e.y, o = window, r = o.devicePixelRatio || 1;
468
+ return { x: Se(t * r) / r || 0, y: Se(n * r) / r || 0 };
469
+ }
470
+ function dn(e) {
471
+ var t, n = e.popper, o = e.popperRect, r = e.placement, s = e.variation, a = e.offsets, u = e.position, l = e.gpuAcceleration, i = e.adaptive, d = e.roundOffsets, g = e.isFixed, y = a.x, h = y === void 0 ? 0 : y, f = a.y, p = f === void 0 ? 0 : f, m = typeof d == "function" ? d({ x: h, y: p }) : { x: h, y: p };
472
+ h = m.x, p = m.y;
473
+ var c = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"), C = V, b = U, I = window;
474
+ if (i) {
475
+ var _ = We(n), O = "clientHeight", P = "clientWidth";
476
+ if (_ === X(n) && (_ = me(n), ie(_).position !== "static" && u === "absolute" && (O = "scrollHeight", P = "scrollWidth")), _ = _, r === U || (r === V || r === Q) && s === je) {
477
+ b = Z;
478
+ var k = g && _ === I && I.visualViewport ? I.visualViewport.height : _[O];
479
+ p -= k - o.height, p *= l ? 1 : -1;
480
+ }
481
+ if (r === V || (r === U || r === Z) && s === je) {
482
+ C = Q;
483
+ var R = g && _ === I && I.visualViewport ? I.visualViewport.width : _[P];
484
+ h -= R - o.width, h *= l ? 1 : -1;
485
+ }
486
+ }
487
+ var $ = Object.assign({ position: u }, i && Pr), N = d === !0 ? _r({ x: h, y: p }) : { x: h, y: p };
488
+ if (h = N.x, p = N.y, l) {
489
+ var F;
490
+ return Object.assign({}, $, (F = {}, F[b] = w ? "0" : "", F[C] = c ? "0" : "", F.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", F));
491
+ }
492
+ return Object.assign({}, $, (t = {}, t[b] = w ? p + "px" : "", t[C] = c ? h + "px" : "", t.transform = "", t));
493
+ }
494
+ function Sr(e) {
495
+ var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, s = n.adaptive, a = s === void 0 ? !0 : s, u = n.roundOffsets, l = u === void 0 ? !0 : u, i = { placement: ne(t.placement), variation: Re(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: r, isFixed: t.options.strategy === "fixed" };
496
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, dn(Object.assign({}, i, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: a, roundOffsets: l })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, dn(Object.assign({}, i, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: l })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
497
+ }
498
+ var Jn = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Sr, data: {} }, Ye = { passive: !0 };
499
+ function Ar(e) {
500
+ var t = e.state, n = e.instance, o = e.options, r = o.scroll, s = r === void 0 ? !0 : r, a = o.resize, u = a === void 0 ? !0 : a, l = X(t.elements.popper), i = [].concat(t.scrollParents.reference, t.scrollParents.popper);
501
+ return s && i.forEach(function(d) {
502
+ d.addEventListener("scroll", n.update, Ye);
503
+ }), u && l.addEventListener("resize", n.update, Ye), function() {
504
+ s && i.forEach(function(d) {
505
+ d.removeEventListener("scroll", n.update, Ye);
506
+ }), u && l.removeEventListener("resize", n.update, Ye);
507
+ };
508
+ }
509
+ var Zn = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
510
+ }, effect: Ar, data: {} }, Rr = { left: "right", right: "left", bottom: "top", top: "bottom" };
511
+ function nt(e) {
512
+ return e.replace(/left|right|bottom|top/g, function(t) {
513
+ return Rr[t];
514
+ });
515
+ }
516
+ var Nr = { start: "end", end: "start" };
517
+ function vn(e) {
518
+ return e.replace(/start|end/g, function(t) {
519
+ return Nr[t];
520
+ });
521
+ }
522
+ function Bt(e) {
523
+ var t = X(e), n = t.pageXOffset, o = t.pageYOffset;
524
+ return { scrollLeft: n, scrollTop: o };
525
+ }
526
+ function Lt(e) {
527
+ return Ae(me(e)).left + Bt(e).scrollLeft;
528
+ }
529
+ function kr(e) {
530
+ var t = X(e), n = me(e), o = t.visualViewport, r = n.clientWidth, s = n.clientHeight, a = 0, u = 0;
531
+ return o && (r = o.width, s = o.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a = o.offsetLeft, u = o.offsetTop)), { width: r, height: s, x: a + Lt(e), y: u };
532
+ }
533
+ function $r(e) {
534
+ var t, n = me(e), o = Bt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ee(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = Ee(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), u = -o.scrollLeft + Lt(e), l = -o.scrollTop;
535
+ return ie(r || n).direction === "rtl" && (u += Ee(n.clientWidth, r ? r.clientWidth : 0) - s), { width: s, height: a, x: u, y: l };
536
+ }
537
+ function Mt(e) {
538
+ var t = ie(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
539
+ return /auto|scroll|overlay|hidden/.test(n + r + o);
540
+ }
541
+ function Qn(e) {
542
+ return ["html", "body", "#document"].indexOf(oe(e)) >= 0 ? e.ownerDocument.body : J(e) && Mt(e) ? e : Qn(lt(e));
543
+ }
544
+ function Le(e, t) {
545
+ var n;
546
+ t === void 0 && (t = []);
547
+ var o = Qn(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = X(o), a = r ? [s].concat(s.visualViewport || [], Mt(o) ? o : []) : o, u = t.concat(a);
548
+ return r ? u : u.concat(Le(lt(a)));
549
+ }
550
+ function Et(e) {
551
+ return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
552
+ }
553
+ function Fr(e) {
554
+ var t = Ae(e);
555
+ return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
556
+ }
557
+ function mn(e, t) {
558
+ return t === Kn ? Et(kr(e)) : _e(t) ? Fr(t) : Et($r(me(e)));
559
+ }
560
+ function xr(e) {
561
+ var t = Le(lt(e)), n = ["absolute", "fixed"].indexOf(ie(e).position) >= 0, o = n && J(e) ? We(e) : e;
562
+ return _e(o) ? t.filter(function(r) {
563
+ return _e(r) && Vn(r, o) && oe(r) !== "body";
564
+ }) : [];
565
+ }
566
+ function Br(e, t, n) {
567
+ var o = t === "clippingParents" ? xr(e) : [].concat(t), r = [].concat(o, [n]), s = r[0], a = r.reduce(function(u, l) {
568
+ var i = mn(e, l);
569
+ return u.top = Ee(i.top, u.top), u.right = st(i.right, u.right), u.bottom = st(i.bottom, u.bottom), u.left = Ee(i.left, u.left), u;
570
+ }, mn(e, s));
571
+ return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
572
+ }
573
+ function Yn(e) {
574
+ var t = e.reference, n = e.element, o = e.placement, r = o ? ne(o) : null, s = o ? Re(o) : null, a = t.x + t.width / 2 - n.width / 2, u = t.y + t.height / 2 - n.height / 2, l;
575
+ switch (r) {
576
+ case U:
577
+ l = { x: a, y: t.y - n.height };
578
+ break;
579
+ case Z:
580
+ l = { x: a, y: t.y + t.height };
581
+ break;
582
+ case Q:
583
+ l = { x: t.x + t.width, y: u };
584
+ break;
585
+ case V:
586
+ l = { x: t.x - n.width, y: u };
587
+ break;
588
+ default:
589
+ l = { x: t.x, y: t.y };
590
+ }
591
+ var i = r ? xt(r) : null;
592
+ if (i != null) {
593
+ var d = i === "y" ? "height" : "width";
594
+ switch (s) {
595
+ case Pe:
596
+ l[i] = l[i] - (t[d] / 2 - n[d] / 2);
597
+ break;
598
+ case je:
599
+ l[i] = l[i] + (t[d] / 2 - n[d] / 2);
600
+ break;
601
+ }
602
+ }
603
+ return l;
604
+ }
605
+ function He(e, t) {
606
+ t === void 0 && (t = {});
607
+ var n = t, o = n.placement, r = o === void 0 ? e.placement : o, s = n.boundary, a = s === void 0 ? sr : s, u = n.rootBoundary, l = u === void 0 ? Kn : u, i = n.elementContext, d = i === void 0 ? Fe : i, g = n.altBoundary, y = g === void 0 ? !1 : g, h = n.padding, f = h === void 0 ? 0 : h, p = zn(typeof f != "number" ? f : qn(f, Ve)), m = d === Fe ? ar : Fe, c = e.rects.popper, w = e.elements[y ? m : d], C = Br(_e(w) ? w : w.contextElement || me(e.elements.popper), a, l), b = Ae(e.elements.reference), I = Yn({ reference: b, element: c, strategy: "absolute", placement: r }), _ = Et(Object.assign({}, c, I)), O = d === Fe ? _ : b, P = { top: C.top - O.top + p.top, bottom: O.bottom - C.bottom + p.bottom, left: C.left - O.left + p.left, right: O.right - C.right + p.right }, k = e.modifiersData.offset;
608
+ if (d === Fe && k) {
609
+ var R = k[r];
610
+ Object.keys(P).forEach(function($) {
611
+ var N = [Q, Z].indexOf($) >= 0 ? 1 : -1, F = [U, Z].indexOf($) >= 0 ? "y" : "x";
612
+ P[$] += R[F] * N;
613
+ });
614
+ }
615
+ return P;
616
+ }
617
+ function Lr(e, t) {
618
+ t === void 0 && (t = {});
619
+ var n = t, o = n.placement, r = n.boundary, s = n.rootBoundary, a = n.padding, u = n.flipVariations, l = n.allowedAutoPlacements, i = l === void 0 ? kt : l, d = Re(o), g = d ? u ? pn : pn.filter(function(f) {
620
+ return Re(f) === d;
621
+ }) : Ve, y = g.filter(function(f) {
622
+ return i.indexOf(f) >= 0;
623
+ });
624
+ y.length === 0 && (y = g);
625
+ var h = y.reduce(function(f, p) {
626
+ return f[p] = He(e, { placement: p, boundary: r, rootBoundary: s, padding: a })[ne(p)], f;
627
+ }, {});
628
+ return Object.keys(h).sort(function(f, p) {
629
+ return h[f] - h[p];
630
+ });
631
+ }
632
+ function Mr(e) {
633
+ if (ne(e) === Nt) return [];
634
+ var t = nt(e);
635
+ return [vn(e), t, vn(t)];
636
+ }
637
+ function Dr(e) {
638
+ var t = e.state, n = e.options, o = e.name;
639
+ if (!t.modifiersData[o]._skip) {
640
+ for (var r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, u = a === void 0 ? !0 : a, l = n.fallbackPlacements, i = n.padding, d = n.boundary, g = n.rootBoundary, y = n.altBoundary, h = n.flipVariations, f = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, m = t.options.placement, c = ne(m), w = c === m, C = l || (w || !f ? [nt(m)] : Mr(m)), b = [m].concat(C).reduce(function(ge, re) {
641
+ return ge.concat(ne(re) === Nt ? Lr(t, { placement: re, boundary: d, rootBoundary: g, padding: i, flipVariations: f, allowedAutoPlacements: p }) : re);
642
+ }, []), I = t.rects.reference, _ = t.rects.popper, O = /* @__PURE__ */ new Map(), P = !0, k = b[0], R = 0; R < b.length; R++) {
643
+ var $ = b[R], N = ne($), F = Re($) === Pe, j = [U, Z].indexOf(N) >= 0, M = j ? "width" : "height", x = He(t, { placement: $, boundary: d, rootBoundary: g, altBoundary: y, padding: i }), E = j ? F ? Q : V : F ? Z : U;
644
+ I[M] > _[M] && (E = nt(E));
645
+ var H = nt(E), te = [];
646
+ if (s && te.push(x[N] <= 0), u && te.push(x[E] <= 0, x[H] <= 0), te.every(function(ge) {
647
+ return ge;
648
+ })) {
649
+ k = $, P = !1;
650
+ break;
651
+ }
652
+ O.set($, te);
653
+ }
654
+ if (P) for (var ze = f ? 3 : 1, ct = function(ge) {
655
+ var re = b.find(function(Je) {
656
+ var $e = O.get(Je);
657
+ if ($e) return $e.slice(0, ge).every(function(Te) {
658
+ return Te;
659
+ });
660
+ });
661
+ if (re) return k = re, "break";
662
+ }, ke = ze; ke > 0; ke--) {
663
+ var qe = ct(ke);
664
+ if (qe === "break") break;
665
+ }
666
+ t.placement !== k && (t.modifiersData[o]._skip = !0, t.placement = k, t.reset = !0);
667
+ }
668
+ }
669
+ var jr = { name: "flip", enabled: !0, phase: "main", fn: Dr, requiresIfExists: ["offset"], data: { _skip: !1 } };
670
+ function gn(e, t, n) {
671
+ return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
672
+ }
673
+ function yn(e) {
674
+ return [U, Q, Z, V].some(function(t) {
675
+ return e[t] >= 0;
676
+ });
677
+ }
678
+ function Hr(e) {
679
+ var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, s = t.modifiersData.preventOverflow, a = He(t, { elementContext: "reference" }), u = He(t, { altBoundary: !0 }), l = gn(a, o), i = gn(u, r, s), d = yn(l), g = yn(i);
680
+ t.modifiersData[n] = { referenceClippingOffsets: l, popperEscapeOffsets: i, isReferenceHidden: d, hasPopperEscaped: g }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": d, "data-popper-escaped": g });
681
+ }
682
+ var Kr = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Hr };
683
+ function Ur(e, t, n) {
684
+ var o = ne(e), r = [V, U].indexOf(o) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, a = s[0], u = s[1];
685
+ return a = a || 0, u = (u || 0) * r, [V, Q].indexOf(o) >= 0 ? { x: u, y: a } : { x: a, y: u };
686
+ }
687
+ function Vr(e) {
688
+ var t = e.state, n = e.options, o = e.name, r = n.offset, s = r === void 0 ? [0, 0] : r, a = kt.reduce(function(d, g) {
689
+ return d[g] = Ur(g, t.rects, s), d;
690
+ }, {}), u = a[t.placement], l = u.x, i = u.y;
691
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += i), t.modifiersData[o] = a;
692
+ }
693
+ var Wr = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: Vr };
694
+ function zr(e) {
695
+ var t = e.state, n = e.name;
696
+ t.modifiersData[n] = Yn({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
697
+ }
698
+ var Gn = { name: "popperOffsets", enabled: !0, phase: "read", fn: zr, data: {} };
699
+ function qr(e) {
700
+ return e === "x" ? "y" : "x";
701
+ }
702
+ function Jr(e) {
703
+ var t = e.state, n = e.options, o = e.name, r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, u = a === void 0 ? !1 : a, l = n.boundary, i = n.rootBoundary, d = n.altBoundary, g = n.padding, y = n.tether, h = y === void 0 ? !0 : y, f = n.tetherOffset, p = f === void 0 ? 0 : f, m = He(t, { boundary: l, rootBoundary: i, padding: g, altBoundary: d }), c = ne(t.placement), w = Re(t.placement), C = !w, b = xt(c), I = qr(b), _ = t.modifiersData.popperOffsets, O = t.rects.reference, P = t.rects.popper, k = typeof p == "function" ? p(Object.assign({}, t.rects, { placement: t.placement })) : p, R = typeof k == "number" ? { mainAxis: k, altAxis: k } : Object.assign({ mainAxis: 0, altAxis: 0 }, k), $ = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, N = { x: 0, y: 0 };
704
+ if (_) {
705
+ if (s) {
706
+ var F, j = b === "y" ? U : V, M = b === "y" ? Z : Q, x = b === "y" ? "height" : "width", E = _[b], H = E + m[j], te = E - m[M], ze = h ? -P[x] / 2 : 0, ct = w === Pe ? O[x] : P[x], ke = w === Pe ? -P[x] : -O[x], qe = t.elements.arrow, ge = h && qe ? Ft(qe) : { width: 0, height: 0 }, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Wn(), Je = re[j], $e = re[M], Te = Be(0, O[x], ge[x]), uo = C ? O[x] / 2 - ze - Te - Je - R.mainAxis : ct - Te - Je - R.mainAxis, co = C ? -O[x] / 2 + ze + Te + $e + R.mainAxis : ke + Te + $e + R.mainAxis, pt = t.elements.arrow && We(t.elements.arrow), po = pt ? b === "y" ? pt.clientTop || 0 : pt.clientLeft || 0 : 0, Vt = (F = $ == null ? void 0 : $[b]) != null ? F : 0, fo = E + uo - Vt - po, vo = E + co - Vt, Wt = Be(h ? st(H, fo) : H, E, h ? Ee(te, vo) : te);
707
+ _[b] = Wt, N[b] = Wt - E;
708
+ }
709
+ if (u) {
710
+ var zt, mo = b === "x" ? U : V, go = b === "x" ? Z : Q, ye = _[I], Ze = I === "y" ? "height" : "width", qt = ye + m[mo], Jt = ye - m[go], ft = [U, V].indexOf(c) !== -1, Zt = (zt = $ == null ? void 0 : $[I]) != null ? zt : 0, Qt = ft ? qt : ye - O[Ze] - P[Ze] - Zt + R.altAxis, Yt = ft ? ye + O[Ze] + P[Ze] - Zt - R.altAxis : Jt, Gt = h && ft ? Er(Qt, ye, Yt) : Be(h ? Qt : qt, ye, h ? Yt : Jt);
711
+ _[I] = Gt, N[I] = Gt - ye;
712
+ }
713
+ t.modifiersData[o] = N;
714
+ }
715
+ }
716
+ var Zr = { name: "preventOverflow", enabled: !0, phase: "main", fn: Jr, requiresIfExists: ["offset"] };
717
+ function Qr(e) {
718
+ return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
719
+ }
720
+ function Yr(e) {
721
+ return e === X(e) || !J(e) ? Bt(e) : Qr(e);
722
+ }
723
+ function Gr(e) {
724
+ var t = e.getBoundingClientRect(), n = Se(t.width) / e.offsetWidth || 1, o = Se(t.height) / e.offsetHeight || 1;
725
+ return n !== 1 || o !== 1;
726
+ }
727
+ function Xr(e, t, n) {
728
+ n === void 0 && (n = !1);
729
+ var o = J(t), r = J(t) && Gr(t), s = me(t), a = Ae(e, r), u = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 };
730
+ return (o || !o && !n) && ((oe(t) !== "body" || Mt(s)) && (u = Yr(t)), J(t) ? (l = Ae(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : s && (l.x = Lt(s))), { x: a.left + u.scrollLeft - l.x, y: a.top + u.scrollTop - l.y, width: a.width, height: a.height };
731
+ }
732
+ function es(e) {
733
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
734
+ e.forEach(function(s) {
735
+ t.set(s.name, s);
736
+ });
737
+ function r(s) {
738
+ n.add(s.name);
739
+ var a = [].concat(s.requires || [], s.requiresIfExists || []);
740
+ a.forEach(function(u) {
741
+ if (!n.has(u)) {
742
+ var l = t.get(u);
743
+ l && r(l);
744
+ }
745
+ }), o.push(s);
746
+ }
747
+ return e.forEach(function(s) {
748
+ n.has(s.name) || r(s);
749
+ }), o;
750
+ }
751
+ function ts(e) {
752
+ var t = es(e);
753
+ return gr.reduce(function(n, o) {
754
+ return n.concat(t.filter(function(r) {
755
+ return r.phase === o;
756
+ }));
757
+ }, []);
758
+ }
759
+ function ns(e) {
760
+ var t;
761
+ return function() {
762
+ return t || (t = new Promise(function(n) {
763
+ Promise.resolve().then(function() {
764
+ t = void 0, n(e());
765
+ });
766
+ })), t;
767
+ };
768
+ }
769
+ function os(e) {
770
+ var t = e.reduce(function(n, o) {
771
+ var r = n[o.name];
772
+ return n[o.name] = r ? Object.assign({}, r, o, { options: Object.assign({}, r.options, o.options), data: Object.assign({}, r.data, o.data) }) : o, n;
773
+ }, {});
774
+ return Object.keys(t).map(function(n) {
775
+ return t[n];
776
+ });
777
+ }
778
+ var hn = { placement: "bottom", modifiers: [], strategy: "absolute" };
779
+ function bn() {
780
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
781
+ return !t.some(function(o) {
782
+ return !(o && typeof o.getBoundingClientRect == "function");
783
+ });
784
+ }
785
+ function Dt(e) {
786
+ e === void 0 && (e = {});
787
+ var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, s = r === void 0 ? hn : r;
788
+ return function(a, u, l) {
789
+ l === void 0 && (l = s);
790
+ var i = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, hn, s), modifiersData: {}, elements: { reference: a, popper: u }, attributes: {}, styles: {} }, d = [], g = !1, y = { state: i, setOptions: function(p) {
791
+ var m = typeof p == "function" ? p(i.options) : p;
792
+ f(), i.options = Object.assign({}, s, i.options, m), i.scrollParents = { reference: _e(a) ? Le(a) : a.contextElement ? Le(a.contextElement) : [], popper: Le(u) };
793
+ var c = ts(os([].concat(o, i.options.modifiers)));
794
+ return i.orderedModifiers = c.filter(function(w) {
795
+ return w.enabled;
796
+ }), h(), y.update();
797
+ }, forceUpdate: function() {
798
+ if (!g) {
799
+ var p = i.elements, m = p.reference, c = p.popper;
800
+ if (bn(m, c)) {
801
+ i.rects = { reference: Xr(m, We(c), i.options.strategy === "fixed"), popper: Ft(c) }, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(P) {
802
+ return i.modifiersData[P.name] = Object.assign({}, P.data);
803
+ });
804
+ for (var w = 0; w < i.orderedModifiers.length; w++) {
805
+ if (i.reset === !0) {
806
+ i.reset = !1, w = -1;
807
+ continue;
808
+ }
809
+ var C = i.orderedModifiers[w], b = C.fn, I = C.options, _ = I === void 0 ? {} : I, O = C.name;
810
+ typeof b == "function" && (i = b({ state: i, options: _, name: O, instance: y }) || i);
811
+ }
812
+ }
813
+ }
814
+ }, update: ns(function() {
815
+ return new Promise(function(p) {
816
+ y.forceUpdate(), p(i);
817
+ });
818
+ }), destroy: function() {
819
+ f(), g = !0;
820
+ } };
821
+ if (!bn(a, u)) return y;
822
+ y.setOptions(l).then(function(p) {
823
+ !g && l.onFirstUpdate && l.onFirstUpdate(p);
824
+ });
825
+ function h() {
826
+ i.orderedModifiers.forEach(function(p) {
827
+ var m = p.name, c = p.options, w = c === void 0 ? {} : c, C = p.effect;
828
+ if (typeof C == "function") {
829
+ var b = C({ state: i, name: m, instance: y, options: w }), I = function() {
830
+ };
831
+ d.push(b || I);
832
+ }
833
+ });
834
+ }
835
+ function f() {
836
+ d.forEach(function(p) {
837
+ return p();
838
+ }), d = [];
839
+ }
840
+ return y;
841
+ };
842
+ }
843
+ Dt();
844
+ var rs = [Zn, Gn, Jn, Un];
845
+ Dt({ defaultModifiers: rs });
846
+ var ss = [Zn, Gn, Jn, Un, Wr, jr, Zr, Ir, Kr], as = Dt({ defaultModifiers: ss });
847
+ const is = (e, t, n = {}) => {
848
+ const o = {
849
+ name: "updateState",
850
+ enabled: !0,
851
+ phase: "write",
852
+ fn: ({ state: l }) => {
853
+ const i = ls(l);
854
+ Object.assign(a.value, i);
855
+ },
856
+ requires: ["computeStyles"]
857
+ }, r = T(() => {
858
+ const { onFirstUpdate: l, placement: i, strategy: d, modifiers: g } = v(n);
859
+ return {
860
+ onFirstUpdate: l,
861
+ placement: i || "bottom",
862
+ strategy: d || "absolute",
863
+ modifiers: [
864
+ ...g || [],
865
+ o,
866
+ { name: "applyStyles", enabled: !1 }
867
+ ]
868
+ };
869
+ }), s = Oo(), a = A({
870
+ styles: {
871
+ popper: {
872
+ position: v(r).strategy,
873
+ left: "0",
874
+ top: "0"
875
+ },
876
+ arrow: {
877
+ position: "absolute"
878
+ }
879
+ },
880
+ attributes: {}
881
+ }), u = () => {
882
+ s.value && (s.value.destroy(), s.value = void 0);
883
+ };
884
+ return L(r, (l) => {
885
+ const i = v(s);
886
+ i && i.setOptions(l);
887
+ }, {
888
+ deep: !0
889
+ }), L([e, t], ([l, i]) => {
890
+ u(), !(!l || !i) && (s.value = as(l, i, v(r)));
891
+ }), le(() => {
892
+ u();
893
+ }), {
894
+ state: T(() => {
895
+ var l;
896
+ return { ...((l = v(s)) == null ? void 0 : l.state) || {} };
897
+ }),
898
+ styles: T(() => v(a).styles),
899
+ attributes: T(() => v(a).attributes),
900
+ update: () => {
901
+ var l;
902
+ return (l = v(s)) == null ? void 0 : l.update();
903
+ },
904
+ forceUpdate: () => {
905
+ var l;
906
+ return (l = v(s)) == null ? void 0 : l.forceUpdate();
907
+ },
908
+ instanceRef: T(() => v(s))
909
+ };
910
+ };
911
+ function ls(e) {
912
+ const t = Object.keys(e.elements), n = wt(t.map((r) => [r, e.styles[r] || {}])), o = wt(t.map((r) => [r, e.attributes[r]]));
913
+ return {
914
+ styles: n,
915
+ attributes: o
916
+ };
917
+ }
918
+ function wn() {
919
+ let e;
920
+ const t = (o, r) => {
921
+ n(), e = window.setTimeout(o, r);
922
+ }, n = () => window.clearTimeout(e);
923
+ return Mn(() => n()), {
924
+ registerTimeout: t,
925
+ cancelTimeout: n
926
+ };
927
+ }
928
+ const Ot = {
929
+ prefix: Math.floor(Math.random() * 1e4),
930
+ current: 0
931
+ }, us = Symbol("elIdInjection"), Xn = () => at() ? G(us, Ot) : Ot, cs = (e) => {
932
+ const t = Xn();
933
+ !Y && t === Ot && ot("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
934
+ usage: app.provide(ID_INJECTION_KEY, {
935
+ prefix: number,
936
+ current: number,
937
+ })`);
938
+ const n = Rt();
939
+ return T(() => v(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
940
+ };
941
+ let Ie = [];
942
+ const En = (e) => {
943
+ const t = e;
944
+ t.key === rt.esc && Ie.forEach((n) => n(t));
945
+ }, ps = (e) => {
946
+ ve(() => {
947
+ Ie.length === 0 && document.addEventListener("keydown", En), Y && Ie.push(e);
948
+ }), le(() => {
949
+ Ie = Ie.filter((t) => t !== e), Ie.length === 0 && Y && document.removeEventListener("keydown", En);
950
+ });
951
+ };
952
+ let On;
953
+ const eo = () => {
954
+ const e = Rt(), t = Xn(), n = T(() => `${e.value}-popper-container-${t.prefix}`), o = T(() => `#${n.value}`);
955
+ return {
956
+ id: n,
957
+ selector: o
958
+ };
959
+ }, fs = (e) => {
960
+ const t = document.createElement("div");
961
+ return t.id = e, document.body.appendChild(t), t;
962
+ }, ds = () => {
963
+ const { id: e, selector: t } = eo();
964
+ return To(() => {
965
+ Y && (process.env.NODE_ENV === "test" || !On && !document.body.querySelector(t.value)) && (On = fs(e.value));
966
+ }), {
967
+ id: e,
968
+ selector: t
969
+ };
970
+ }, vs = z({
971
+ showAfter: {
972
+ type: Number,
973
+ default: 0
974
+ },
975
+ hideAfter: {
976
+ type: Number,
977
+ default: 200
978
+ },
979
+ autoClose: {
980
+ type: Number,
981
+ default: 0
982
+ }
983
+ }), ms = ({
984
+ showAfter: e,
985
+ hideAfter: t,
986
+ autoClose: n,
987
+ open: o,
988
+ close: r
989
+ }) => {
990
+ const { registerTimeout: s } = wn(), {
991
+ registerTimeout: a,
992
+ cancelTimeout: u
993
+ } = wn();
994
+ return {
995
+ onOpen: (d) => {
996
+ s(() => {
997
+ o(d);
998
+ const g = v(n);
999
+ Me(g) && g > 0 && a(() => {
1000
+ r(d);
1001
+ }, g);
1002
+ }, v(e));
1003
+ },
1004
+ onClose: (d) => {
1005
+ u(), s(() => {
1006
+ r(d);
1007
+ }, v(t));
1008
+ }
1009
+ };
1010
+ }, to = Symbol("elForwardRef"), gs = (e) => {
1011
+ fe(to, {
1012
+ setForwardRef: (n) => {
1013
+ e.value = n;
1014
+ }
1015
+ });
1016
+ }, ys = (e) => ({
1017
+ mounted(t) {
1018
+ e(t);
1019
+ },
1020
+ updated(t) {
1021
+ e(t);
1022
+ },
1023
+ unmounted() {
1024
+ e(null);
1025
+ }
1026
+ }), Tn = A(0), hs = 2e3, bs = Symbol("zIndexContextKey"), ws = (e) => {
1027
+ const t = at() ? G(bs, void 0) : void 0, n = T(() => {
1028
+ const s = v(t);
1029
+ return Me(s) ? s : hs;
1030
+ }), o = T(() => n.value + Tn.value);
1031
+ return {
1032
+ initialZIndex: n,
1033
+ currentZIndex: o,
1034
+ nextZIndex: () => (Tn.value++, o.value)
1035
+ };
1036
+ };
1037
+ var ee = (e, t) => {
1038
+ const n = e.__vccOpts || e;
1039
+ for (const [o, r] of t)
1040
+ n[o] = r;
1041
+ return n;
1042
+ };
1043
+ const Cn = Symbol("formItemContextKey"), jt = Symbol("popper"), no = Symbol("popperContent"), Es = [
1044
+ "dialog",
1045
+ "grid",
1046
+ "group",
1047
+ "listbox",
1048
+ "menu",
1049
+ "navigation",
1050
+ "tooltip",
1051
+ "tree"
1052
+ ], oo = z({
1053
+ role: {
1054
+ type: String,
1055
+ values: Es,
1056
+ default: "tooltip"
1057
+ }
1058
+ }), Os = B({
1059
+ name: "ElPopper",
1060
+ inheritAttrs: !1
1061
+ }), Ts = /* @__PURE__ */ B({
1062
+ ...Os,
1063
+ props: oo,
1064
+ setup(e, { expose: t }) {
1065
+ const n = e, o = A(), r = A(), s = A(), a = A(), u = T(() => n.role), l = {
1066
+ triggerRef: o,
1067
+ popperInstanceRef: r,
1068
+ contentRef: s,
1069
+ referenceRef: a,
1070
+ role: u
1071
+ };
1072
+ return t(l), fe(jt, l), (i, d) => W(i.$slots, "default");
1073
+ }
1074
+ });
1075
+ var Cs = /* @__PURE__ */ ee(Ts, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
1076
+ const ro = z({
1077
+ arrowOffset: {
1078
+ type: Number,
1079
+ default: 5
1080
+ }
1081
+ }), Is = B({
1082
+ name: "ElPopperArrow",
1083
+ inheritAttrs: !1
1084
+ }), Ps = /* @__PURE__ */ B({
1085
+ ...Is,
1086
+ props: ro,
1087
+ setup(e, { expose: t }) {
1088
+ const n = e, o = Ne("popper"), { arrowOffset: r, arrowRef: s, arrowStyle: a } = G(no, void 0);
1089
+ return L(() => n.arrowOffset, (u) => {
1090
+ r.value = u;
1091
+ }), le(() => {
1092
+ s.value = void 0;
1093
+ }), t({
1094
+ arrowRef: s
1095
+ }), (u, l) => (D(), pe("span", {
1096
+ ref_key: "arrowRef",
1097
+ ref: s,
1098
+ class: Tt(v(o).e("arrow")),
1099
+ style: Co(v(a)),
1100
+ "data-popper-arrow": ""
1101
+ }, null, 6));
1102
+ }
1103
+ });
1104
+ var _s = /* @__PURE__ */ ee(Ps, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
1105
+ const mt = "ElOnlyChild", Ss = B({
1106
+ name: mt,
1107
+ setup(e, {
1108
+ slots: t,
1109
+ attrs: n
1110
+ }) {
1111
+ var o;
1112
+ const r = G(to), s = ys((o = r == null ? void 0 : r.setForwardRef) != null ? o : bt);
1113
+ return () => {
1114
+ var a;
1115
+ const u = (a = t.default) == null ? void 0 : a.call(t, n);
1116
+ if (!u)
1117
+ return null;
1118
+ if (u.length > 1)
1119
+ return ot(mt, "requires exact only one valid child."), null;
1120
+ const l = so(u);
1121
+ return l ? Ct(Io(l, n), [[s]]) : (ot(mt, "no valid child node found"), null);
1122
+ };
1123
+ }
1124
+ });
1125
+ function so(e) {
1126
+ if (!e)
1127
+ return null;
1128
+ const t = e;
1129
+ for (const n of t) {
1130
+ if (It(n))
1131
+ switch (n.type) {
1132
+ case So:
1133
+ continue;
1134
+ case _o:
1135
+ case "svg":
1136
+ return In(n);
1137
+ case Po:
1138
+ return so(n.children);
1139
+ default:
1140
+ return n;
1141
+ }
1142
+ return In(n);
1143
+ }
1144
+ return null;
1145
+ }
1146
+ function In(e) {
1147
+ const t = Ne("only-child");
1148
+ return Oe("span", {
1149
+ class: t.e("content")
1150
+ }, [e]);
1151
+ }
1152
+ const ao = z({
1153
+ virtualRef: {
1154
+ type: S(Object)
1155
+ },
1156
+ virtualTriggering: Boolean,
1157
+ onMouseenter: {
1158
+ type: S(Function)
1159
+ },
1160
+ onMouseleave: {
1161
+ type: S(Function)
1162
+ },
1163
+ onClick: {
1164
+ type: S(Function)
1165
+ },
1166
+ onKeydown: {
1167
+ type: S(Function)
1168
+ },
1169
+ onFocus: {
1170
+ type: S(Function)
1171
+ },
1172
+ onBlur: {
1173
+ type: S(Function)
1174
+ },
1175
+ onContextmenu: {
1176
+ type: S(Function)
1177
+ },
1178
+ id: String,
1179
+ open: Boolean
1180
+ }), As = B({
1181
+ name: "ElPopperTrigger",
1182
+ inheritAttrs: !1
1183
+ }), Rs = /* @__PURE__ */ B({
1184
+ ...As,
1185
+ props: ao,
1186
+ setup(e, { expose: t }) {
1187
+ const n = e, { role: o, triggerRef: r } = G(jt, void 0);
1188
+ gs(r);
1189
+ const s = T(() => u.value ? n.id : void 0), a = T(() => {
1190
+ if (o && o.value === "tooltip")
1191
+ return n.open && n.id ? n.id : void 0;
1192
+ }), u = T(() => {
1193
+ if (o && o.value !== "tooltip")
1194
+ return o.value;
1195
+ }), l = T(() => u.value ? `${n.open}` : void 0);
1196
+ let i;
1197
+ return ve(() => {
1198
+ L(() => n.virtualRef, (d) => {
1199
+ d && (r.value = we(d));
1200
+ }, {
1201
+ immediate: !0
1202
+ }), L(r, (d, g) => {
1203
+ i == null || i(), i = void 0, De(d) && ([
1204
+ "onMouseenter",
1205
+ "onMouseleave",
1206
+ "onClick",
1207
+ "onKeydown",
1208
+ "onFocus",
1209
+ "onBlur",
1210
+ "onContextmenu"
1211
+ ].forEach((y) => {
1212
+ var h;
1213
+ const f = n[y];
1214
+ f && (d.addEventListener(y.slice(2).toLowerCase(), f), (h = g == null ? void 0 : g.removeEventListener) == null || h.call(g, y.slice(2).toLowerCase(), f));
1215
+ }), i = L([s, a, u, l], (y) => {
1216
+ [
1217
+ "aria-controls",
1218
+ "aria-describedby",
1219
+ "aria-haspopup",
1220
+ "aria-expanded"
1221
+ ].forEach((h, f) => {
1222
+ Pt(y[f]) ? d.removeAttribute(h) : d.setAttribute(h, y[f]);
1223
+ });
1224
+ }, { immediate: !0 })), De(g) && [
1225
+ "aria-controls",
1226
+ "aria-describedby",
1227
+ "aria-haspopup",
1228
+ "aria-expanded"
1229
+ ].forEach((y) => g.removeAttribute(y));
1230
+ }, {
1231
+ immediate: !0
1232
+ });
1233
+ }), le(() => {
1234
+ i == null || i(), i = void 0;
1235
+ }), t({
1236
+ triggerRef: r
1237
+ }), (d, g) => d.virtualTriggering ? ae("v-if", !0) : (D(), de(v(Ss), Ue({ key: 0 }, d.$attrs, {
1238
+ "aria-controls": v(s),
1239
+ "aria-describedby": v(a),
1240
+ "aria-expanded": v(l),
1241
+ "aria-haspopup": v(u)
1242
+ }), {
1243
+ default: K(() => [
1244
+ W(d.$slots, "default")
1245
+ ]),
1246
+ _: 3
1247
+ }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
1248
+ }
1249
+ });
1250
+ var Ns = /* @__PURE__ */ ee(Rs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);
1251
+ const gt = "focus-trap.focus-after-trapped", yt = "focus-trap.focus-after-released", ks = "focus-trap.focusout-prevented", Pn = {
1252
+ cancelable: !0,
1253
+ bubbles: !1
1254
+ }, $s = {
1255
+ cancelable: !0,
1256
+ bubbles: !1
1257
+ }, _n = "focusAfterTrapped", Sn = "focusAfterReleased", Fs = Symbol("elFocusTrap"), Ht = A(), ut = A(0), Kt = A(0);
1258
+ let Ge = 0;
1259
+ const io = (e) => {
1260
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1261
+ acceptNode: (o) => {
1262
+ const r = o.tagName === "INPUT" && o.type === "hidden";
1263
+ return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1264
+ }
1265
+ });
1266
+ for (; n.nextNode(); )
1267
+ t.push(n.currentNode);
1268
+ return t;
1269
+ }, An = (e, t) => {
1270
+ for (const n of e)
1271
+ if (!xs(n, t))
1272
+ return n;
1273
+ }, xs = (e, t) => {
1274
+ if (process.env.NODE_ENV === "test")
1275
+ return !1;
1276
+ if (getComputedStyle(e).visibility === "hidden")
1277
+ return !0;
1278
+ for (; e; ) {
1279
+ if (t && e === t)
1280
+ return !1;
1281
+ if (getComputedStyle(e).display === "none")
1282
+ return !0;
1283
+ e = e.parentElement;
1284
+ }
1285
+ return !1;
1286
+ }, Bs = (e) => {
1287
+ const t = io(e), n = An(t, e), o = An(t.reverse(), e);
1288
+ return [n, o];
1289
+ }, Ls = (e) => e instanceof HTMLInputElement && "select" in e, ue = (e, t) => {
1290
+ if (e && e.focus) {
1291
+ const n = document.activeElement;
1292
+ e.focus({ preventScroll: !0 }), Kt.value = window.performance.now(), e !== n && Ls(e) && t && e.select();
1293
+ }
1294
+ };
1295
+ function Rn(e, t) {
1296
+ const n = [...e], o = e.indexOf(t);
1297
+ return o !== -1 && n.splice(o, 1), n;
1298
+ }
1299
+ const Ms = () => {
1300
+ let e = [];
1301
+ return {
1302
+ push: (o) => {
1303
+ const r = e[0];
1304
+ r && o !== r && r.pause(), e = Rn(e, o), e.unshift(o);
1305
+ },
1306
+ remove: (o) => {
1307
+ var r, s;
1308
+ e = Rn(e, o), (s = (r = e[0]) == null ? void 0 : r.resume) == null || s.call(r);
1309
+ }
1310
+ };
1311
+ }, Ds = (e, t = !1) => {
1312
+ const n = document.activeElement;
1313
+ for (const o of e)
1314
+ if (ue(o, t), document.activeElement !== n)
1315
+ return;
1316
+ }, Nn = Ms(), js = () => ut.value > Kt.value, Xe = () => {
1317
+ Ht.value = "pointer", ut.value = window.performance.now();
1318
+ }, kn = () => {
1319
+ Ht.value = "keyboard", ut.value = window.performance.now();
1320
+ }, Hs = () => (ve(() => {
1321
+ Ge === 0 && (document.addEventListener("mousedown", Xe), document.addEventListener("touchstart", Xe), document.addEventListener("keydown", kn)), Ge++;
1322
+ }), le(() => {
1323
+ Ge--, Ge <= 0 && (document.removeEventListener("mousedown", Xe), document.removeEventListener("touchstart", Xe), document.removeEventListener("keydown", kn));
1324
+ }), {
1325
+ focusReason: Ht,
1326
+ lastUserFocusTimestamp: ut,
1327
+ lastAutomatedFocusTimestamp: Kt
1328
+ }), et = (e) => new CustomEvent(ks, {
1329
+ ...$s,
1330
+ detail: e
1331
+ }), Ks = B({
1332
+ name: "ElFocusTrap",
1333
+ inheritAttrs: !1,
1334
+ props: {
1335
+ loop: Boolean,
1336
+ trapped: Boolean,
1337
+ focusTrapEl: Object,
1338
+ focusStartEl: {
1339
+ type: [Object, String],
1340
+ default: "first"
1341
+ }
1342
+ },
1343
+ emits: [
1344
+ _n,
1345
+ Sn,
1346
+ "focusin",
1347
+ "focusout",
1348
+ "focusout-prevented",
1349
+ "release-requested"
1350
+ ],
1351
+ setup(e, { emit: t }) {
1352
+ const n = A();
1353
+ let o, r;
1354
+ const { focusReason: s } = Hs();
1355
+ ps((f) => {
1356
+ e.trapped && !a.paused && t("release-requested", f);
1357
+ });
1358
+ const a = {
1359
+ paused: !1,
1360
+ pause() {
1361
+ this.paused = !0;
1362
+ },
1363
+ resume() {
1364
+ this.paused = !1;
1365
+ }
1366
+ }, u = (f) => {
1367
+ if (!e.loop && !e.trapped || a.paused)
1368
+ return;
1369
+ const { key: p, altKey: m, ctrlKey: c, metaKey: w, currentTarget: C, shiftKey: b } = f, { loop: I } = e, _ = p === rt.tab && !m && !c && !w, O = document.activeElement;
1370
+ if (_ && O) {
1371
+ const P = C, [k, R] = Bs(P);
1372
+ if (k && R) {
1373
+ if (!b && O === R) {
1374
+ const N = et({
1375
+ focusReason: s.value
1376
+ });
1377
+ t("focusout-prevented", N), N.defaultPrevented || (f.preventDefault(), I && ue(k, !0));
1378
+ } else if (b && [k, P].includes(O)) {
1379
+ const N = et({
1380
+ focusReason: s.value
1381
+ });
1382
+ t("focusout-prevented", N), N.defaultPrevented || (f.preventDefault(), I && ue(R, !0));
1383
+ }
1384
+ } else if (O === P) {
1385
+ const N = et({
1386
+ focusReason: s.value
1387
+ });
1388
+ t("focusout-prevented", N), N.defaultPrevented || f.preventDefault();
1389
+ }
1390
+ }
1391
+ };
1392
+ fe(Fs, {
1393
+ focusTrapRef: n,
1394
+ onKeydown: u
1395
+ }), L(() => e.focusTrapEl, (f) => {
1396
+ f && (n.value = f);
1397
+ }, { immediate: !0 }), L([n], ([f], [p]) => {
1398
+ f && (f.addEventListener("keydown", u), f.addEventListener("focusin", d), f.addEventListener("focusout", g)), p && (p.removeEventListener("keydown", u), p.removeEventListener("focusin", d), p.removeEventListener("focusout", g));
1399
+ });
1400
+ const l = (f) => {
1401
+ t(_n, f);
1402
+ }, i = (f) => t(Sn, f), d = (f) => {
1403
+ const p = v(n);
1404
+ if (!p)
1405
+ return;
1406
+ const m = f.target, c = f.relatedTarget, w = m && p.contains(m);
1407
+ e.trapped || c && p.contains(c) || (o = c), w && t("focusin", f), !a.paused && e.trapped && (w ? r = m : ue(r, !0));
1408
+ }, g = (f) => {
1409
+ const p = v(n);
1410
+ if (!(a.paused || !p))
1411
+ if (e.trapped) {
1412
+ const m = f.relatedTarget;
1413
+ !Pt(m) && !p.contains(m) && setTimeout(() => {
1414
+ if (!a.paused && e.trapped) {
1415
+ const c = et({
1416
+ focusReason: s.value
1417
+ });
1418
+ t("focusout-prevented", c), c.defaultPrevented || ue(r, !0);
1419
+ }
1420
+ }, 0);
1421
+ } else {
1422
+ const m = f.target;
1423
+ m && p.contains(m) || t("focusout", f);
1424
+ }
1425
+ };
1426
+ async function y() {
1427
+ await en();
1428
+ const f = v(n);
1429
+ if (f) {
1430
+ Nn.push(a);
1431
+ const p = f.contains(document.activeElement) ? o : document.activeElement;
1432
+ if (o = p, !f.contains(p)) {
1433
+ const c = new Event(gt, Pn);
1434
+ f.addEventListener(gt, l), f.dispatchEvent(c), c.defaultPrevented || en(() => {
1435
+ let w = e.focusStartEl;
1436
+ it(w) || (ue(w), document.activeElement !== w && (w = "first")), w === "first" && Ds(io(f), !0), (document.activeElement === p || w === "container") && ue(f);
1437
+ });
1438
+ }
1439
+ }
1440
+ }
1441
+ function h() {
1442
+ const f = v(n);
1443
+ if (f) {
1444
+ f.removeEventListener(gt, l);
1445
+ const p = new CustomEvent(yt, {
1446
+ ...Pn,
1447
+ detail: {
1448
+ focusReason: s.value
1449
+ }
1450
+ });
1451
+ f.addEventListener(yt, i), f.dispatchEvent(p), !p.defaultPrevented && (s.value == "keyboard" || !js() || f.contains(document.activeElement)) && ue(o ?? document.body), f.removeEventListener(yt, i), Nn.remove(a);
1452
+ }
1453
+ }
1454
+ return ve(() => {
1455
+ e.trapped && y(), L(() => e.trapped, (f) => {
1456
+ f ? y() : h();
1457
+ });
1458
+ }), le(() => {
1459
+ e.trapped && h();
1460
+ }), {
1461
+ onKeydown: u
1462
+ };
1463
+ }
1464
+ });
1465
+ function Us(e, t, n, o, r, s) {
1466
+ return W(e.$slots, "default", { handleKeydown: e.onKeydown });
1467
+ }
1468
+ var Vs = /* @__PURE__ */ ee(Ks, [["render", Us], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
1469
+ const Ws = ["fixed", "absolute"], zs = z({
1470
+ boundariesPadding: {
1471
+ type: Number,
1472
+ default: 0
1473
+ },
1474
+ fallbackPlacements: {
1475
+ type: S(Array),
1476
+ default: void 0
1477
+ },
1478
+ gpuAcceleration: {
1479
+ type: Boolean,
1480
+ default: !0
1481
+ },
1482
+ offset: {
1483
+ type: Number,
1484
+ default: 12
1485
+ },
1486
+ placement: {
1487
+ type: String,
1488
+ values: kt,
1489
+ default: "bottom"
1490
+ },
1491
+ popperOptions: {
1492
+ type: S(Object),
1493
+ default: () => ({})
1494
+ },
1495
+ strategy: {
1496
+ type: String,
1497
+ values: Ws,
1498
+ default: "absolute"
1499
+ }
1500
+ }), lo = z({
1501
+ ...zs,
1502
+ id: String,
1503
+ style: {
1504
+ type: S([String, Array, Object])
1505
+ },
1506
+ className: {
1507
+ type: S([String, Array, Object])
1508
+ },
1509
+ effect: {
1510
+ type: String,
1511
+ default: "dark"
1512
+ },
1513
+ visible: Boolean,
1514
+ enterable: {
1515
+ type: Boolean,
1516
+ default: !0
1517
+ },
1518
+ pure: Boolean,
1519
+ focusOnShow: {
1520
+ type: Boolean,
1521
+ default: !1
1522
+ },
1523
+ trapping: {
1524
+ type: Boolean,
1525
+ default: !1
1526
+ },
1527
+ popperClass: {
1528
+ type: S([String, Array, Object])
1529
+ },
1530
+ popperStyle: {
1531
+ type: S([String, Array, Object])
1532
+ },
1533
+ referenceEl: {
1534
+ type: S(Object)
1535
+ },
1536
+ triggerTargetEl: {
1537
+ type: S(Object)
1538
+ },
1539
+ stopPopperMouseEvent: {
1540
+ type: Boolean,
1541
+ default: !0
1542
+ },
1543
+ ariaLabel: {
1544
+ type: String,
1545
+ default: void 0
1546
+ },
1547
+ virtualTriggering: Boolean,
1548
+ zIndex: Number
1549
+ }), qs = {
1550
+ mouseenter: (e) => e instanceof MouseEvent,
1551
+ mouseleave: (e) => e instanceof MouseEvent,
1552
+ focus: () => !0,
1553
+ blur: () => !0,
1554
+ close: () => !0
1555
+ }, Js = (e, t = []) => {
1556
+ const { placement: n, strategy: o, popperOptions: r } = e, s = {
1557
+ placement: n,
1558
+ strategy: o,
1559
+ ...r,
1560
+ modifiers: [...Qs(e), ...t]
1561
+ };
1562
+ return Ys(s, r == null ? void 0 : r.modifiers), s;
1563
+ }, Zs = (e) => {
1564
+ if (Y)
1565
+ return we(e);
1566
+ };
1567
+ function Qs(e) {
1568
+ const { offset: t, gpuAcceleration: n, fallbackPlacements: o } = e;
1569
+ return [
1570
+ {
1571
+ name: "offset",
1572
+ options: {
1573
+ offset: [0, t ?? 12]
1574
+ }
1575
+ },
1576
+ {
1577
+ name: "preventOverflow",
1578
+ options: {
1579
+ padding: {
1580
+ top: 2,
1581
+ bottom: 2,
1582
+ left: 5,
1583
+ right: 5
1584
+ }
1585
+ }
1586
+ },
1587
+ {
1588
+ name: "flip",
1589
+ options: {
1590
+ padding: 5,
1591
+ fallbackPlacements: o
1592
+ }
1593
+ },
1594
+ {
1595
+ name: "computeStyles",
1596
+ options: {
1597
+ gpuAcceleration: n
1598
+ }
1599
+ }
1600
+ ];
1601
+ }
1602
+ function Ys(e, t) {
1603
+ t && (e.modifiers = [...e.modifiers, ...t ?? []]);
1604
+ }
1605
+ const Gs = 0, Xs = (e) => {
1606
+ const { popperInstanceRef: t, contentRef: n, triggerRef: o, role: r } = G(jt, void 0), s = A(), a = A(), u = T(() => ({
1607
+ name: "eventListeners",
1608
+ enabled: !!e.visible
1609
+ })), l = T(() => {
1610
+ var c;
1611
+ const w = v(s), C = (c = v(a)) != null ? c : Gs;
1612
+ return {
1613
+ name: "arrow",
1614
+ enabled: !qo(w),
1615
+ options: {
1616
+ element: w,
1617
+ padding: C
1618
+ }
1619
+ };
1620
+ }), i = T(() => ({
1621
+ onFirstUpdate: () => {
1622
+ f();
1623
+ },
1624
+ ...Js(e, [
1625
+ v(l),
1626
+ v(u)
1627
+ ])
1628
+ })), d = T(() => Zs(e.referenceEl) || v(o)), { attributes: g, state: y, styles: h, update: f, forceUpdate: p, instanceRef: m } = is(d, n, i);
1629
+ return L(m, (c) => t.value = c), ve(() => {
1630
+ L(() => {
1631
+ var c;
1632
+ return (c = v(d)) == null ? void 0 : c.getBoundingClientRect();
1633
+ }, () => {
1634
+ f();
1635
+ });
1636
+ }), {
1637
+ attributes: g,
1638
+ arrowRef: s,
1639
+ contentRef: n,
1640
+ instanceRef: m,
1641
+ state: y,
1642
+ styles: h,
1643
+ role: r,
1644
+ forceUpdate: p,
1645
+ update: f
1646
+ };
1647
+ }, ea = (e, {
1648
+ attributes: t,
1649
+ styles: n,
1650
+ role: o
1651
+ }) => {
1652
+ const { nextZIndex: r } = ws(), s = Ne("popper"), a = T(() => v(t).popper), u = A(Me(e.zIndex) ? e.zIndex : r()), l = T(() => [
1653
+ s.b(),
1654
+ s.is("pure", e.pure),
1655
+ s.is(e.effect),
1656
+ e.popperClass
1657
+ ]), i = T(() => [
1658
+ { zIndex: v(u) },
1659
+ v(n).popper,
1660
+ e.popperStyle || {}
1661
+ ]), d = T(() => o.value === "dialog" ? "false" : void 0), g = T(() => v(n).arrow || {});
1662
+ return {
1663
+ ariaModal: d,
1664
+ arrowStyle: g,
1665
+ contentAttrs: a,
1666
+ contentClass: l,
1667
+ contentStyle: i,
1668
+ contentZIndex: u,
1669
+ updateZIndex: () => {
1670
+ u.value = Me(e.zIndex) ? e.zIndex : r();
1671
+ }
1672
+ };
1673
+ }, ta = (e, t) => {
1674
+ const n = A(!1), o = A();
1675
+ return {
1676
+ focusStartRef: o,
1677
+ trapped: n,
1678
+ onFocusAfterReleased: (i) => {
1679
+ var d;
1680
+ ((d = i.detail) == null ? void 0 : d.focusReason) !== "pointer" && (o.value = "first", t("blur"));
1681
+ },
1682
+ onFocusAfterTrapped: () => {
1683
+ t("focus");
1684
+ },
1685
+ onFocusInTrap: (i) => {
1686
+ e.visible && !n.value && (i.target && (o.value = i.target), n.value = !0);
1687
+ },
1688
+ onFocusoutPrevented: (i) => {
1689
+ e.trapping || (i.detail.focusReason === "pointer" && i.preventDefault(), n.value = !1);
1690
+ },
1691
+ onReleaseRequested: () => {
1692
+ n.value = !1, t("close");
1693
+ }
1694
+ };
1695
+ }, na = B({
1696
+ name: "ElPopperContent"
1697
+ }), oa = /* @__PURE__ */ B({
1698
+ ...na,
1699
+ props: lo,
1700
+ emits: qs,
1701
+ setup(e, { expose: t, emit: n }) {
1702
+ const o = e, {
1703
+ focusStartRef: r,
1704
+ trapped: s,
1705
+ onFocusAfterReleased: a,
1706
+ onFocusAfterTrapped: u,
1707
+ onFocusInTrap: l,
1708
+ onFocusoutPrevented: i,
1709
+ onReleaseRequested: d
1710
+ } = ta(o, n), { attributes: g, arrowRef: y, contentRef: h, styles: f, instanceRef: p, role: m, update: c } = Xs(o), {
1711
+ ariaModal: w,
1712
+ arrowStyle: C,
1713
+ contentAttrs: b,
1714
+ contentClass: I,
1715
+ contentStyle: _,
1716
+ updateZIndex: O
1717
+ } = ea(o, {
1718
+ styles: f,
1719
+ attributes: g,
1720
+ role: m
1721
+ }), P = G(Cn, void 0), k = A();
1722
+ fe(no, {
1723
+ arrowStyle: C,
1724
+ arrowRef: y,
1725
+ arrowOffset: k
1726
+ }), P && (P.addInputId || P.removeInputId) && fe(Cn, {
1727
+ ...P,
1728
+ addInputId: bt,
1729
+ removeInputId: bt
1730
+ });
1731
+ let R;
1732
+ const $ = (F = !0) => {
1733
+ c(), F && O();
1734
+ }, N = () => {
1735
+ $(!1), o.visible && o.focusOnShow ? s.value = !0 : o.visible === !1 && (s.value = !1);
1736
+ };
1737
+ return ve(() => {
1738
+ L(() => o.triggerTargetEl, (F, j) => {
1739
+ R == null || R(), R = void 0;
1740
+ const M = v(F || h.value), x = v(j || h.value);
1741
+ De(M) && (R = L([m, () => o.ariaLabel, w, () => o.id], (E) => {
1742
+ ["role", "aria-label", "aria-modal", "id"].forEach((H, te) => {
1743
+ Pt(E[te]) ? M.removeAttribute(H) : M.setAttribute(H, E[te]);
1744
+ });
1745
+ }, { immediate: !0 })), x !== M && De(x) && ["role", "aria-label", "aria-modal", "id"].forEach((E) => {
1746
+ x.removeAttribute(E);
1747
+ });
1748
+ }, { immediate: !0 }), L(() => o.visible, N, { immediate: !0 });
1749
+ }), le(() => {
1750
+ R == null || R(), R = void 0;
1751
+ }), t({
1752
+ popperContentRef: h,
1753
+ popperInstanceRef: p,
1754
+ updatePopper: $,
1755
+ contentStyle: _
1756
+ }), (F, j) => (D(), pe("div", Ue({
1757
+ ref_key: "contentRef",
1758
+ ref: h
1759
+ }, v(b), {
1760
+ style: v(_),
1761
+ class: v(I),
1762
+ tabindex: "-1",
1763
+ onMouseenter: j[0] || (j[0] = (M) => F.$emit("mouseenter", M)),
1764
+ onMouseleave: j[1] || (j[1] = (M) => F.$emit("mouseleave", M))
1765
+ }), [
1766
+ Oe(v(Vs), {
1767
+ trapped: v(s),
1768
+ "trap-on-focus-in": !0,
1769
+ "focus-trap-el": v(h),
1770
+ "focus-start-el": v(r),
1771
+ onFocusAfterTrapped: v(u),
1772
+ onFocusAfterReleased: v(a),
1773
+ onFocusin: v(l),
1774
+ onFocusoutPrevented: v(i),
1775
+ onReleaseRequested: v(d)
1776
+ }, {
1777
+ default: K(() => [
1778
+ W(F.$slots, "default")
1779
+ ]),
1780
+ _: 3
1781
+ }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
1782
+ ], 16));
1783
+ }
1784
+ });
1785
+ var ra = /* @__PURE__ */ ee(oa, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);
1786
+ const sa = At(Cs), Ut = Symbol("elTooltip"), q = z({
1787
+ ...vs,
1788
+ ...lo,
1789
+ appendTo: {
1790
+ type: S([String, Object])
1791
+ },
1792
+ content: {
1793
+ type: String,
1794
+ default: ""
1795
+ },
1796
+ rawContent: {
1797
+ type: Boolean,
1798
+ default: !1
1799
+ },
1800
+ persistent: Boolean,
1801
+ ariaLabel: String,
1802
+ visible: {
1803
+ type: S(Boolean),
1804
+ default: null
1805
+ },
1806
+ transition: String,
1807
+ teleported: {
1808
+ type: Boolean,
1809
+ default: !0
1810
+ },
1811
+ disabled: Boolean
1812
+ }), Ke = z({
1813
+ ...ao,
1814
+ disabled: Boolean,
1815
+ trigger: {
1816
+ type: S([String, Array]),
1817
+ default: "hover"
1818
+ },
1819
+ triggerKeys: {
1820
+ type: S(Array),
1821
+ default: () => [rt.enter, rt.space]
1822
+ }
1823
+ }), {
1824
+ useModelToggleProps: aa,
1825
+ useModelToggleEmits: ia,
1826
+ useModelToggle: la
1827
+ } = Hn("visible"), ua = z({
1828
+ ...oo,
1829
+ ...aa,
1830
+ ...q,
1831
+ ...Ke,
1832
+ ...ro,
1833
+ showArrow: {
1834
+ type: Boolean,
1835
+ default: !0
1836
+ }
1837
+ }), ca = [
1838
+ ...ia,
1839
+ "before-show",
1840
+ "before-hide",
1841
+ "show",
1842
+ "hide",
1843
+ "open",
1844
+ "close"
1845
+ ], pa = (e, t) => zo(e) ? e.includes(t) : e === t, Ce = (e, t, n) => (o) => {
1846
+ pa(v(e), t) && n(o);
1847
+ }, fa = B({
1848
+ name: "ElTooltipTrigger"
1849
+ }), da = /* @__PURE__ */ B({
1850
+ ...fa,
1851
+ props: Ke,
1852
+ setup(e, { expose: t }) {
1853
+ const n = e, o = Ne("tooltip"), { controlled: r, id: s, open: a, onOpen: u, onClose: l, onToggle: i } = G(Ut, void 0), d = A(null), g = () => {
1854
+ if (v(r) || n.disabled)
1855
+ return !0;
1856
+ }, y = xe(n, "trigger"), h = se(g, Ce(y, "hover", u)), f = se(g, Ce(y, "hover", l)), p = se(g, Ce(y, "click", (b) => {
1857
+ b.button === 0 && i(b);
1858
+ })), m = se(g, Ce(y, "focus", u)), c = se(g, Ce(y, "focus", l)), w = se(g, Ce(y, "contextmenu", (b) => {
1859
+ b.preventDefault(), i(b);
1860
+ })), C = se(g, (b) => {
1861
+ const { code: I } = b;
1862
+ n.triggerKeys.includes(I) && (b.preventDefault(), i(b));
1863
+ });
1864
+ return t({
1865
+ triggerRef: d
1866
+ }), (b, I) => (D(), de(v(Ns), {
1867
+ id: v(s),
1868
+ "virtual-ref": b.virtualRef,
1869
+ open: v(a),
1870
+ "virtual-triggering": b.virtualTriggering,
1871
+ class: Tt(v(o).e("trigger")),
1872
+ onBlur: v(c),
1873
+ onClick: v(p),
1874
+ onContextmenu: v(w),
1875
+ onFocus: v(m),
1876
+ onMouseenter: v(h),
1877
+ onMouseleave: v(f),
1878
+ onKeydown: v(C)
1879
+ }, {
1880
+ default: K(() => [
1881
+ W(b.$slots, "default")
1882
+ ]),
1883
+ _: 3
1884
+ }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
1885
+ }
1886
+ });
1887
+ var va = /* @__PURE__ */ ee(da, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);
1888
+ const ma = B({
1889
+ name: "ElTooltipContent",
1890
+ inheritAttrs: !1
1891
+ }), ga = /* @__PURE__ */ B({
1892
+ ...ma,
1893
+ props: q,
1894
+ setup(e, { expose: t }) {
1895
+ const n = e, { selector: o } = eo(), r = Ne("tooltip"), s = A(null), a = A(!1), {
1896
+ controlled: u,
1897
+ id: l,
1898
+ open: i,
1899
+ trigger: d,
1900
+ onClose: g,
1901
+ onOpen: y,
1902
+ onShow: h,
1903
+ onHide: f,
1904
+ onBeforeShow: p,
1905
+ onBeforeHide: m
1906
+ } = G(Ut, void 0), c = T(() => n.transition || `${r.namespace.value}-fade-in-linear`), w = T(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
1907
+ le(() => {
1908
+ a.value = !0;
1909
+ });
1910
+ const C = T(() => v(w) ? !0 : v(i)), b = T(() => n.disabled ? !1 : v(i)), I = T(() => n.appendTo || o.value), _ = T(() => {
1911
+ var E;
1912
+ return (E = n.style) != null ? E : {};
1913
+ }), O = T(() => !v(i)), P = () => {
1914
+ f();
1915
+ }, k = () => {
1916
+ if (v(u))
1917
+ return !0;
1918
+ }, R = se(k, () => {
1919
+ n.enterable && v(d) === "hover" && y();
1920
+ }), $ = se(k, () => {
1921
+ v(d) === "hover" && g();
1922
+ }), N = () => {
1923
+ var E, H;
1924
+ (H = (E = s.value) == null ? void 0 : E.updatePopper) == null || H.call(E), p == null || p();
1925
+ }, F = () => {
1926
+ m == null || m();
1927
+ }, j = () => {
1928
+ h(), x = Do(T(() => {
1929
+ var E;
1930
+ return (E = s.value) == null ? void 0 : E.popperContentRef;
1931
+ }), () => {
1932
+ if (v(u))
1933
+ return;
1934
+ v(d) !== "hover" && g();
1935
+ });
1936
+ }, M = () => {
1937
+ n.virtualTriggering || g();
1938
+ };
1939
+ let x;
1940
+ return L(() => v(i), (E) => {
1941
+ E || x == null || x();
1942
+ }, {
1943
+ flush: "post"
1944
+ }), L(() => n.content, () => {
1945
+ var E, H;
1946
+ (H = (E = s.value) == null ? void 0 : E.updatePopper) == null || H.call(E);
1947
+ }), t({
1948
+ contentRef: s
1949
+ }), (E, H) => (D(), de(Ao, {
1950
+ disabled: !E.teleported,
1951
+ to: v(I)
1952
+ }, [
1953
+ Oe(Ro, {
1954
+ name: v(c),
1955
+ onAfterLeave: P,
1956
+ onBeforeEnter: N,
1957
+ onAfterEnter: j,
1958
+ onBeforeLeave: F
1959
+ }, {
1960
+ default: K(() => [
1961
+ v(C) ? Ct((D(), de(v(ra), Ue({
1962
+ key: 0,
1963
+ id: v(l),
1964
+ ref_key: "contentRef",
1965
+ ref: s
1966
+ }, E.$attrs, {
1967
+ "aria-label": E.ariaLabel,
1968
+ "aria-hidden": v(O),
1969
+ "boundaries-padding": E.boundariesPadding,
1970
+ "fallback-placements": E.fallbackPlacements,
1971
+ "gpu-acceleration": E.gpuAcceleration,
1972
+ offset: E.offset,
1973
+ placement: E.placement,
1974
+ "popper-options": E.popperOptions,
1975
+ strategy: E.strategy,
1976
+ effect: E.effect,
1977
+ enterable: E.enterable,
1978
+ pure: E.pure,
1979
+ "popper-class": E.popperClass,
1980
+ "popper-style": [E.popperStyle, v(_)],
1981
+ "reference-el": E.referenceEl,
1982
+ "trigger-target-el": E.triggerTargetEl,
1983
+ visible: v(b),
1984
+ "z-index": E.zIndex,
1985
+ onMouseenter: v(R),
1986
+ onMouseleave: v($),
1987
+ onBlur: M,
1988
+ onClose: v(g)
1989
+ }), {
1990
+ default: K(() => [
1991
+ a.value ? ae("v-if", !0) : W(E.$slots, "default", { key: 0 })
1992
+ ]),
1993
+ _: 3
1994
+ }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
1995
+ [No, v(b)]
1996
+ ]) : ae("v-if", !0)
1997
+ ]),
1998
+ _: 3
1999
+ }, 8, ["name"])
2000
+ ], 8, ["disabled", "to"]));
2001
+ }
2002
+ });
2003
+ var ya = /* @__PURE__ */ ee(ga, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);
2004
+ const ha = ["innerHTML"], ba = { key: 1 }, wa = B({
2005
+ name: "ElTooltip"
2006
+ }), Ea = /* @__PURE__ */ B({
2007
+ ...wa,
2008
+ props: ua,
2009
+ emits: ca,
2010
+ setup(e, { expose: t, emit: n }) {
2011
+ const o = e;
2012
+ ds();
2013
+ const r = cs(), s = A(), a = A(), u = () => {
2014
+ var c;
2015
+ const w = v(s);
2016
+ w && ((c = w.popperInstanceRef) == null || c.update());
2017
+ }, l = A(!1), i = A(), { show: d, hide: g, hasUpdateHandler: y } = la({
2018
+ indicator: l,
2019
+ toggleReason: i
2020
+ }), { onOpen: h, onClose: f } = ms({
2021
+ showAfter: xe(o, "showAfter"),
2022
+ hideAfter: xe(o, "hideAfter"),
2023
+ autoClose: xe(o, "autoClose"),
2024
+ open: d,
2025
+ close: g
2026
+ }), p = T(() => _t(o.visible) && !y.value);
2027
+ fe(Ut, {
2028
+ controlled: p,
2029
+ id: r,
2030
+ open: ko(l),
2031
+ trigger: xe(o, "trigger"),
2032
+ onOpen: (c) => {
2033
+ h(c);
2034
+ },
2035
+ onClose: (c) => {
2036
+ f(c);
2037
+ },
2038
+ onToggle: (c) => {
2039
+ v(l) ? f(c) : h(c);
2040
+ },
2041
+ onShow: () => {
2042
+ n("show", i.value);
2043
+ },
2044
+ onHide: () => {
2045
+ n("hide", i.value);
2046
+ },
2047
+ onBeforeShow: () => {
2048
+ n("before-show", i.value);
2049
+ },
2050
+ onBeforeHide: () => {
2051
+ n("before-hide", i.value);
2052
+ },
2053
+ updatePopper: u
2054
+ }), L(() => o.disabled, (c) => {
2055
+ c && l.value && (l.value = !1);
2056
+ });
2057
+ const m = (c) => {
2058
+ var w, C;
2059
+ const b = (C = (w = a.value) == null ? void 0 : w.contentRef) == null ? void 0 : C.popperContentRef, I = (c == null ? void 0 : c.relatedTarget) || document.activeElement;
2060
+ return b && b.contains(I);
2061
+ };
2062
+ return $o(() => l.value && g()), t({
2063
+ popperRef: s,
2064
+ contentRef: a,
2065
+ isFocusInsideContent: m,
2066
+ updatePopper: u,
2067
+ onOpen: h,
2068
+ onClose: f,
2069
+ hide: g
2070
+ }), (c, w) => (D(), de(v(sa), {
2071
+ ref_key: "popperRef",
2072
+ ref: s,
2073
+ role: c.role
2074
+ }, {
2075
+ default: K(() => [
2076
+ Oe(va, {
2077
+ disabled: c.disabled,
2078
+ trigger: c.trigger,
2079
+ "trigger-keys": c.triggerKeys,
2080
+ "virtual-ref": c.virtualRef,
2081
+ "virtual-triggering": c.virtualTriggering
2082
+ }, {
2083
+ default: K(() => [
2084
+ c.$slots.default ? W(c.$slots, "default", { key: 0 }) : ae("v-if", !0)
2085
+ ]),
2086
+ _: 3
2087
+ }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
2088
+ Oe(ya, {
2089
+ ref_key: "contentRef",
2090
+ ref: a,
2091
+ "aria-label": c.ariaLabel,
2092
+ "boundaries-padding": c.boundariesPadding,
2093
+ content: c.content,
2094
+ disabled: c.disabled,
2095
+ effect: c.effect,
2096
+ enterable: c.enterable,
2097
+ "fallback-placements": c.fallbackPlacements,
2098
+ "hide-after": c.hideAfter,
2099
+ "gpu-acceleration": c.gpuAcceleration,
2100
+ offset: c.offset,
2101
+ persistent: c.persistent,
2102
+ "popper-class": c.popperClass,
2103
+ "popper-style": c.popperStyle,
2104
+ placement: c.placement,
2105
+ "popper-options": c.popperOptions,
2106
+ pure: c.pure,
2107
+ "raw-content": c.rawContent,
2108
+ "reference-el": c.referenceEl,
2109
+ "trigger-target-el": c.triggerTargetEl,
2110
+ "show-after": c.showAfter,
2111
+ strategy: c.strategy,
2112
+ teleported: c.teleported,
2113
+ transition: c.transition,
2114
+ "virtual-triggering": c.virtualTriggering,
2115
+ "z-index": c.zIndex,
2116
+ "append-to": c.appendTo
2117
+ }, {
2118
+ default: K(() => [
2119
+ W(c.$slots, "content", {}, () => [
2120
+ c.rawContent ? (D(), pe("span", {
2121
+ key: 0,
2122
+ innerHTML: c.content
2123
+ }, null, 8, ha)) : (D(), pe("span", ba, be(c.content), 1))
2124
+ ]),
2125
+ c.showArrow ? (D(), de(v(_s), {
2126
+ key: 0,
2127
+ "arrow-offset": c.arrowOffset
2128
+ }, null, 8, ["arrow-offset"])) : ae("v-if", !0)
2129
+ ]),
2130
+ _: 3
2131
+ }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
2132
+ ]),
2133
+ _: 3
2134
+ }, 8, ["role"]));
2135
+ }
2136
+ });
2137
+ var Oa = /* @__PURE__ */ ee(Ea, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);
2138
+ const Ta = At(Oa), ce = /* @__PURE__ */ new Map();
2139
+ let $n;
2140
+ Y && (document.addEventListener("mousedown", (e) => $n = e), document.addEventListener("mouseup", (e) => {
2141
+ for (const t of ce.values())
2142
+ for (const { documentHandler: n } of t)
2143
+ n(e, $n);
2144
+ }));
2145
+ function Fn(e, t) {
2146
+ let n = [];
2147
+ return Array.isArray(t.arg) ? n = t.arg : De(t.arg) && n.push(t.arg), function(o, r) {
2148
+ const s = t.instance.popperRef, a = o.target, u = r == null ? void 0 : r.target, l = !t || !t.instance, i = !a || !u, d = e.contains(a) || e.contains(u), g = e === a, y = n.length && n.some((f) => f == null ? void 0 : f.contains(a)) || n.length && n.includes(u), h = s && (s.contains(a) || s.contains(u));
2149
+ l || i || d || g || y || h || t.value(o, r);
2150
+ };
2151
+ }
2152
+ const Ca = {
2153
+ beforeMount(e, t) {
2154
+ ce.has(e) || ce.set(e, []), ce.get(e).push({
2155
+ documentHandler: Fn(e, t),
2156
+ bindingFn: t.value
2157
+ });
2158
+ },
2159
+ updated(e, t) {
2160
+ ce.has(e) || ce.set(e, []);
2161
+ const n = ce.get(e), o = n.findIndex((s) => s.bindingFn === t.oldValue), r = {
2162
+ documentHandler: Fn(e, t),
2163
+ bindingFn: t.value
2164
+ };
2165
+ o >= 0 ? n.splice(o, 1, r) : n.push(r);
2166
+ },
2167
+ unmounted(e) {
2168
+ ce.delete(e);
2169
+ }
2170
+ }, Ia = /* @__PURE__ */ B({
2171
+ inheritAttrs: !1
2172
+ });
2173
+ function Pa(e, t, n, o, r, s) {
2174
+ return W(e.$slots, "default");
2175
+ }
2176
+ var _a = /* @__PURE__ */ ee(Ia, [["render", Pa], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
2177
+ const Sa = /* @__PURE__ */ B({
2178
+ name: "ElCollectionItem",
2179
+ inheritAttrs: !1
2180
+ });
2181
+ function Aa(e, t, n, o, r, s) {
2182
+ return W(e.$slots, "default");
2183
+ }
2184
+ var Ra = /* @__PURE__ */ ee(Sa, [["render", Aa], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
2185
+ const Na = "data-el-collection-item", ka = (e) => {
2186
+ const t = `El${e}Collection`, n = `${t}Item`, o = Symbol(t), r = Symbol(n), s = {
2187
+ ..._a,
2188
+ name: t,
2189
+ setup() {
2190
+ const u = A(null), l = /* @__PURE__ */ new Map();
2191
+ fe(o, {
2192
+ itemMap: l,
2193
+ getItems: () => {
2194
+ const d = v(u);
2195
+ if (!d)
2196
+ return [];
2197
+ const g = Array.from(d.querySelectorAll(`[${Na}]`));
2198
+ return [...l.values()].sort((h, f) => g.indexOf(h.ref) - g.indexOf(f.ref));
2199
+ },
2200
+ collectionRef: u
2201
+ });
2202
+ }
2203
+ }, a = {
2204
+ ...Ra,
2205
+ name: n,
2206
+ setup(u, { attrs: l }) {
2207
+ const i = A(null), d = G(o, void 0);
2208
+ fe(r, {
2209
+ collectionItemRef: i
2210
+ }), ve(() => {
2211
+ const g = v(i);
2212
+ g && d.itemMap.set(g, {
2213
+ ref: g,
2214
+ ...l
2215
+ });
2216
+ }), le(() => {
2217
+ const g = v(i);
2218
+ d.itemMap.delete(g);
2219
+ });
2220
+ }
2221
+ };
2222
+ return {
2223
+ COLLECTION_INJECTION_KEY: o,
2224
+ COLLECTION_ITEM_INJECTION_KEY: r,
2225
+ ElCollection: s,
2226
+ ElCollectionItem: a
2227
+ };
2228
+ }, ht = z({
2229
+ trigger: Ke.trigger,
2230
+ effect: {
2231
+ ...q.effect,
2232
+ default: "light"
2233
+ },
2234
+ type: {
2235
+ type: S(String)
2236
+ },
2237
+ placement: {
2238
+ type: S(String),
2239
+ default: "bottom"
2240
+ },
2241
+ popperOptions: {
2242
+ type: S(Object),
2243
+ default: () => ({})
2244
+ },
2245
+ id: String,
2246
+ size: {
2247
+ type: String,
2248
+ default: ""
2249
+ },
2250
+ splitButton: Boolean,
2251
+ hideOnClick: {
2252
+ type: Boolean,
2253
+ default: !0
2254
+ },
2255
+ loop: {
2256
+ type: Boolean,
2257
+ default: !0
2258
+ },
2259
+ showTimeout: {
2260
+ type: Number,
2261
+ default: 150
2262
+ },
2263
+ hideTimeout: {
2264
+ type: Number,
2265
+ default: 150
2266
+ },
2267
+ tabindex: {
2268
+ type: S([Number, String]),
2269
+ default: 0
2270
+ },
2271
+ maxHeight: {
2272
+ type: S([Number, String]),
2273
+ default: ""
2274
+ },
2275
+ popperClass: {
2276
+ type: String,
2277
+ default: ""
2278
+ },
2279
+ disabled: {
2280
+ type: Boolean,
2281
+ default: !1
2282
+ },
2283
+ role: {
2284
+ type: String,
2285
+ default: "menu"
2286
+ },
2287
+ buttonProps: {
2288
+ type: S(Object)
2289
+ },
2290
+ teleported: q.teleported
2291
+ });
2292
+ z({
2293
+ command: {
2294
+ type: [Object, String, Number],
2295
+ default: () => ({})
2296
+ },
2297
+ disabled: Boolean,
2298
+ divided: Boolean,
2299
+ textValue: String,
2300
+ icon: {
2301
+ type: Xo
2302
+ }
2303
+ });
2304
+ z({
2305
+ onKeydown: { type: S(Function) }
2306
+ });
2307
+ ka("Dropdown");
2308
+ const $a = z({
2309
+ trigger: Ke.trigger,
2310
+ placement: ht.placement,
2311
+ disabled: Ke.disabled,
2312
+ visible: q.visible,
2313
+ transition: q.transition,
2314
+ popperOptions: ht.popperOptions,
2315
+ tabindex: ht.tabindex,
2316
+ content: q.content,
2317
+ popperStyle: q.popperStyle,
2318
+ popperClass: q.popperClass,
2319
+ enterable: {
2320
+ ...q.enterable,
2321
+ default: !0
2322
+ },
2323
+ effect: {
2324
+ ...q.effect,
2325
+ default: "light"
2326
+ },
2327
+ teleported: q.teleported,
2328
+ title: String,
2329
+ width: {
2330
+ type: [String, Number],
2331
+ default: 150
2332
+ },
2333
+ offset: {
2334
+ type: Number,
2335
+ default: void 0
2336
+ },
2337
+ showAfter: {
2338
+ type: Number,
2339
+ default: 0
2340
+ },
2341
+ hideAfter: {
2342
+ type: Number,
2343
+ default: 200
2344
+ },
2345
+ autoClose: {
2346
+ type: Number,
2347
+ default: 0
2348
+ },
2349
+ showArrow: {
2350
+ type: Boolean,
2351
+ default: !0
2352
+ },
2353
+ persistent: {
2354
+ type: Boolean,
2355
+ default: !0
2356
+ },
2357
+ "onUpdate:visible": {
2358
+ type: Function
2359
+ }
2360
+ }), Fa = {
2361
+ "update:visible": (e) => _t(e),
2362
+ "before-enter": () => !0,
2363
+ "before-leave": () => !0,
2364
+ "after-enter": () => !0,
2365
+ "after-leave": () => !0
2366
+ }, xa = "onUpdate:visible", Ba = B({
2367
+ name: "ElPopover"
2368
+ }), La = /* @__PURE__ */ B({
2369
+ ...Ba,
2370
+ props: $a,
2371
+ emits: Fa,
2372
+ setup(e, { expose: t, emit: n }) {
2373
+ const o = e, r = T(() => o[xa]), s = Ne("popover"), a = A(), u = T(() => {
2374
+ var m;
2375
+ return (m = v(a)) == null ? void 0 : m.popperRef;
2376
+ }), l = T(() => [
2377
+ {
2378
+ width: Yo(o.width)
2379
+ },
2380
+ o.popperStyle
2381
+ ]), i = T(() => [s.b(), o.popperClass, { [s.m("plain")]: !!o.content }]), d = T(() => o.transition === `${s.namespace.value}-fade-in-linear`), g = () => {
2382
+ var m;
2383
+ (m = a.value) == null || m.hide();
2384
+ }, y = () => {
2385
+ n("before-enter");
2386
+ }, h = () => {
2387
+ n("before-leave");
2388
+ }, f = () => {
2389
+ n("after-enter");
2390
+ }, p = () => {
2391
+ n("update:visible", !1), n("after-leave");
2392
+ };
2393
+ return t({
2394
+ popperRef: u,
2395
+ hide: g
2396
+ }), (m, c) => (D(), de(v(Ta), Ue({
2397
+ ref_key: "tooltipRef",
2398
+ ref: a
2399
+ }, m.$attrs, {
2400
+ trigger: m.trigger,
2401
+ placement: m.placement,
2402
+ disabled: m.disabled,
2403
+ visible: m.visible,
2404
+ transition: m.transition,
2405
+ "popper-options": m.popperOptions,
2406
+ tabindex: m.tabindex,
2407
+ content: m.content,
2408
+ offset: m.offset,
2409
+ "show-after": m.showAfter,
2410
+ "hide-after": m.hideAfter,
2411
+ "auto-close": m.autoClose,
2412
+ "show-arrow": m.showArrow,
2413
+ "aria-label": m.title,
2414
+ effect: m.effect,
2415
+ enterable: m.enterable,
2416
+ "popper-class": v(i),
2417
+ "popper-style": v(l),
2418
+ teleported: m.teleported,
2419
+ persistent: m.persistent,
2420
+ "gpu-acceleration": v(d),
2421
+ "onUpdate:visible": v(r),
2422
+ onBeforeShow: y,
2423
+ onBeforeHide: h,
2424
+ onShow: f,
2425
+ onHide: p
2426
+ }), {
2427
+ content: K(() => [
2428
+ m.title ? (D(), pe("div", {
2429
+ key: 0,
2430
+ class: Tt(v(s).e("title")),
2431
+ role: "title"
2432
+ }, be(m.title), 3)) : ae("v-if", !0),
2433
+ W(m.$slots, "default", {}, () => [
2434
+ tt(be(m.content), 1)
2435
+ ])
2436
+ ]),
2437
+ default: K(() => [
2438
+ m.$slots.reference ? W(m.$slots, "reference", { key: 0 }) : ae("v-if", !0)
2439
+ ]),
2440
+ _: 3
2441
+ }, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
2442
+ }
2443
+ });
2444
+ var Ma = /* @__PURE__ */ ee(La, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
2445
+ const xn = (e, t) => {
2446
+ const n = t.arg || t.value, o = n == null ? void 0 : n.popperRef;
2447
+ o && (o.triggerRef = e);
2448
+ };
2449
+ var Da = {
2450
+ mounted(e, t) {
2451
+ xn(e, t);
2452
+ },
2453
+ updated(e, t) {
2454
+ xn(e, t);
2455
+ }
2456
+ };
2457
+ const ja = "popover", Ha = er(Da, ja), Ka = At(Ma, {
2458
+ directive: Ha
2459
+ }), Ua = { class: "das-ui-popover-container" }, Va = {
10
2460
  key: 0,
11
2461
  class: "das-ui-popover-title"
12
- }, A = { class: "das-ui-popover-content" }, j = {
2462
+ }, Wa = { class: "das-ui-popover-content" }, za = {
13
2463
  key: 0,
14
2464
  class: "btn-groups"
15
- }, q = /* @__PURE__ */ b({
2465
+ }, qa = /* @__PURE__ */ B({
16
2466
  __name: "Index",
17
2467
  props: {
18
2468
  title: {},
@@ -22,65 +2472,65 @@ const S = { class: "das-ui-popover-container" }, T = {
22
2472
  placement: { default: "bottom-start" }
23
2473
  },
24
2474
  emits: ["cancel", "confirm", "clickOutside"],
25
- setup(C, { expose: k, emit: $ }) {
26
- const l = C, i = $, h = g(), c = D(null), y = O(() => {
27
- let e = "das-ui-popover-over-container";
28
- return l.popperClass && (e = `${e} ${l.popperClass}`), e;
29
- }), N = () => {
30
- h.visible !== void 0 && i("clickOutside");
2475
+ setup(e, { expose: t, emit: n }) {
2476
+ const o = e, r = n, s = Fo(), a = A(null), u = T(() => {
2477
+ let i = "das-ui-popover-over-container";
2478
+ return o.popperClass && (i = `${i} ${o.popperClass}`), i;
2479
+ }), l = () => {
2480
+ s.visible !== void 0 && r("clickOutside");
31
2481
  };
32
- return k({ $popoverRef: c }), (e, o) => (s(), V(t(R), E({
2482
+ return t({ $popoverRef: a }), (i, d) => (D(), de(v(Ka), Ue({
33
2483
  ref_key: "$popoverRef",
34
- ref: c,
2484
+ ref: a,
35
2485
  class: "das-ui-popover",
36
- placement: e.placement,
2486
+ placement: i.placement,
37
2487
  width: "240px",
38
- "popper-class": y.value
39
- }, e.$attrs), {
40
- reference: r(() => [
41
- d(e.$slots, "reference")
2488
+ "popper-class": u.value
2489
+ }, i.$attrs), {
2490
+ reference: K(() => [
2491
+ W(i.$slots, "reference")
42
2492
  ]),
43
- default: r(() => [
44
- I((s(), p("div", S, [
45
- e.title ? (s(), p("div", T, n(e.title), 1)) : u("", !0),
46
- d(e.$slots, "default", {}, () => [
47
- P("div", A, [
48
- a(n(e.content) + " ", 1),
49
- e.showBtns ? (s(), p("div", j, [
50
- f(t(v), {
51
- onClick: o[0] || (o[0] = (B) => i("cancel"))
2493
+ default: K(() => [
2494
+ Ct((D(), pe("div", Ua, [
2495
+ i.title ? (D(), pe("div", Va, be(i.title), 1)) : ae("", !0),
2496
+ W(i.$slots, "default", {}, () => [
2497
+ xo("div", Wa, [
2498
+ tt(be(i.content) + " ", 1),
2499
+ i.showBtns ? (D(), pe("div", za, [
2500
+ Oe(v(tn), {
2501
+ onClick: d[0] || (d[0] = (g) => r("cancel"))
52
2502
  }, {
53
- default: r(() => [
54
- a(n(t(m)("das-ui-popover-cancel").value), 1)
2503
+ default: K(() => [
2504
+ tt(be(v(Xt)("das-ui-popover-cancel").value), 1)
55
2505
  ]),
56
2506
  _: 1
57
2507
  }),
58
- f(t(v), {
2508
+ Oe(v(tn), {
59
2509
  btnType: "primary",
60
- onClick: o[1] || (o[1] = (B) => i("confirm")),
2510
+ onClick: d[1] || (d[1] = (g) => r("confirm")),
61
2511
  style: { "margin-left": "12px" }
62
2512
  }, {
63
- default: r(() => [
64
- a(n(t(m)("das-ui-popover-confirm").value), 1)
2513
+ default: K(() => [
2514
+ tt(be(v(Xt)("das-ui-popover-confirm").value), 1)
65
2515
  ]),
66
2516
  _: 1
67
2517
  })
68
- ])) : u("", !0)
2518
+ ])) : ae("", !0)
69
2519
  ])
70
2520
  ])
71
2521
  ])), [
72
- [t(z), N]
2522
+ [v(Ca), l]
73
2523
  ])
74
2524
  ]),
75
2525
  _: 3
76
2526
  }, 16, ["placement", "popper-class"]));
77
2527
  }
78
- }), x = {
2528
+ }), Ja = {
79
2529
  "das-ui-popover-confirm": { "zh-CN": "确定", en: "Confirm" },
80
2530
  "das-ui-popover-cancel": { "zh-CN": "取消", en: "Cancel" }
81
- }, Q = w(q);
82
- _(x);
2531
+ }, oi = yo(qa);
2532
+ ho(Ja);
83
2533
  export {
84
- Q as DasPopover,
85
- Q as default
2534
+ oi as DasPopover,
2535
+ oi as default
86
2536
  };