cgn-vant 1.0.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 (2186) hide show
  1. package/LICENSE +10 -0
  2. package/README.md +188 -0
  3. package/auto-import-resolver/LICENSE +10 -0
  4. package/auto-import-resolver/README.md +226 -0
  5. package/auto-import-resolver/README.zh-CN.md +226 -0
  6. package/auto-import-resolver/dist/index.cjs +124 -0
  7. package/auto-import-resolver/dist/index.d.ts +38 -0
  8. package/auto-import-resolver/dist/index.js +89 -0
  9. package/auto-import-resolver/package.json +42 -0
  10. package/es/action-bar/ActionBar.d.ts +27 -0
  11. package/es/action-bar/ActionBar.mjs +44 -0
  12. package/es/action-bar/index.css +1 -0
  13. package/es/action-bar/index.d.ts +25 -0
  14. package/es/action-bar/index.mjs +10 -0
  15. package/es/action-bar/style/index.d.ts +1 -0
  16. package/es/action-bar/style/index.mjs +2 -0
  17. package/es/action-bar/types.d.ts +4 -0
  18. package/es/action-bar/types.mjs +0 -0
  19. package/es/action-bar-button/ActionBarButton.d.ts +43 -0
  20. package/es/action-bar-button/ActionBarButton.mjs +73 -0
  21. package/es/action-bar-button/index.css +1 -0
  22. package/es/action-bar-button/index.d.ts +36 -0
  23. package/es/action-bar-button/index.mjs +10 -0
  24. package/es/action-bar-button/style/index.d.ts +1 -0
  25. package/es/action-bar-button/style/index.mjs +7 -0
  26. package/es/action-bar-button/types.d.ts +5 -0
  27. package/es/action-bar-button/types.mjs +0 -0
  28. package/es/action-bar-icon/ActionBarIcon.d.ts +48 -0
  29. package/es/action-bar-icon/ActionBarIcon.mjs +68 -0
  30. package/es/action-bar-icon/index.css +1 -0
  31. package/es/action-bar-icon/index.d.ts +39 -0
  32. package/es/action-bar-icon/index.mjs +10 -0
  33. package/es/action-bar-icon/style/index.d.ts +1 -0
  34. package/es/action-bar-icon/style/index.mjs +5 -0
  35. package/es/action-bar-icon/types.d.ts +10 -0
  36. package/es/action-bar-icon/types.mjs +0 -0
  37. package/es/action-sheet/ActionSheet.d.ts +198 -0
  38. package/es/action-sheet/ActionSheet.mjs +139 -0
  39. package/es/action-sheet/index.css +1 -0
  40. package/es/action-sheet/index.d.ts +138 -0
  41. package/es/action-sheet/index.mjs +10 -0
  42. package/es/action-sheet/style/index.d.ts +1 -0
  43. package/es/action-sheet/style/index.mjs +7 -0
  44. package/es/action-sheet/types.d.ts +23 -0
  45. package/es/action-sheet/types.mjs +0 -0
  46. package/es/address-edit/AddressEdit.d.ts +158 -0
  47. package/es/address-edit/AddressEdit.mjs +294 -0
  48. package/es/address-edit/AddressEditDetail.d.ts +32 -0
  49. package/es/address-edit/AddressEditDetail.mjs +75 -0
  50. package/es/address-edit/index.css +1 -0
  51. package/es/address-edit/index.d.ts +119 -0
  52. package/es/address-edit/index.mjs +10 -0
  53. package/es/address-edit/style/index.d.ts +1 -0
  54. package/es/address-edit/style/index.mjs +19 -0
  55. package/es/address-edit/types.d.ts +27 -0
  56. package/es/address-edit/types.mjs +0 -0
  57. package/es/address-list/AddressList.d.ts +95 -0
  58. package/es/address-list/AddressList.mjs +103 -0
  59. package/es/address-list/AddressListItem.d.ts +46 -0
  60. package/es/address-list/AddressListItem.mjs +108 -0
  61. package/es/address-list/index.css +1 -0
  62. package/es/address-list/index.d.ts +75 -0
  63. package/es/address-list/index.mjs +10 -0
  64. package/es/address-list/style/index.d.ts +1 -0
  65. package/es/address-list/style/index.mjs +12 -0
  66. package/es/address-list/types.d.ts +15 -0
  67. package/es/address-list/types.mjs +0 -0
  68. package/es/area/Area.d.ts +134 -0
  69. package/es/area/Area.mjs +76 -0
  70. package/es/area/index.d.ts +100 -0
  71. package/es/area/index.mjs +10 -0
  72. package/es/area/style/index.d.ts +1 -0
  73. package/es/area/style/index.mjs +10 -0
  74. package/es/area/types.d.ts +9 -0
  75. package/es/area/types.mjs +0 -0
  76. package/es/area/utils.d.ts +6 -0
  77. package/es/area/utils.mjs +92 -0
  78. package/es/assets/cgn-w.png +0 -0
  79. package/es/assets/cgn.png +0 -0
  80. package/es/assets/logo.png +0 -0
  81. package/es/back-top/BackTop.d.ts +53 -0
  82. package/es/back-top/BackTop.mjs +118 -0
  83. package/es/back-top/index.css +1 -0
  84. package/es/back-top/index.d.ts +44 -0
  85. package/es/back-top/index.mjs +10 -0
  86. package/es/back-top/style/index.d.ts +1 -0
  87. package/es/back-top/style/index.mjs +4 -0
  88. package/es/back-top/types.d.ts +9 -0
  89. package/es/back-top/types.mjs +0 -0
  90. package/es/badge/Badge.d.ts +66 -0
  91. package/es/badge/Badge.mjs +104 -0
  92. package/es/badge/index.css +1 -0
  93. package/es/badge/index.d.ts +51 -0
  94. package/es/badge/index.mjs +10 -0
  95. package/es/badge/style/index.d.ts +1 -0
  96. package/es/badge/style/index.mjs +2 -0
  97. package/es/badge/types.d.ts +12 -0
  98. package/es/badge/types.mjs +0 -0
  99. package/es/barrage/Barrage.d.ts +93 -0
  100. package/es/barrage/Barrage.mjs +133 -0
  101. package/es/barrage/index.css +1 -0
  102. package/es/barrage/index.d.ts +69 -0
  103. package/es/barrage/index.mjs +10 -0
  104. package/es/barrage/style/index.d.ts +1 -0
  105. package/es/barrage/style/index.mjs +2 -0
  106. package/es/barrage/types.d.ts +13 -0
  107. package/es/barrage/types.mjs +0 -0
  108. package/es/button/Button.d.ts +140 -0
  109. package/es/button/Button.mjs +148 -0
  110. package/es/button/index.css +1 -0
  111. package/es/button/index.d.ts +104 -0
  112. package/es/button/index.mjs +10 -0
  113. package/es/button/style/index.d.ts +1 -0
  114. package/es/button/style/index.mjs +5 -0
  115. package/es/button/types.d.ts +41 -0
  116. package/es/button/types.mjs +0 -0
  117. package/es/calendar/Calendar.d.ts +300 -0
  118. package/es/calendar/Calendar.mjs +451 -0
  119. package/es/calendar/CalendarDay.d.ts +33 -0
  120. package/es/calendar/CalendarDay.mjs +131 -0
  121. package/es/calendar/CalendarHeader.d.ts +36 -0
  122. package/es/calendar/CalendarHeader.mjs +113 -0
  123. package/es/calendar/CalendarMonth.d.ts +69 -0
  124. package/es/calendar/CalendarMonth.mjs +213 -0
  125. package/es/calendar/index.css +1 -0
  126. package/es/calendar/index.d.ts +216 -0
  127. package/es/calendar/index.mjs +10 -0
  128. package/es/calendar/style/index.d.ts +1 -0
  129. package/es/calendar/style/index.mjs +16 -0
  130. package/es/calendar/types.d.ts +60 -0
  131. package/es/calendar/types.mjs +0 -0
  132. package/es/calendar/utils.d.ts +25 -0
  133. package/es/calendar/utils.mjs +89 -0
  134. package/es/card/Card.d.ts +56 -0
  135. package/es/card/Card.mjs +126 -0
  136. package/es/card/index.css +1 -0
  137. package/es/card/index.d.ts +46 -0
  138. package/es/card/index.mjs +10 -0
  139. package/es/card/style/index.d.ts +1 -0
  140. package/es/card/style/index.mjs +6 -0
  141. package/es/card/types.d.ts +18 -0
  142. package/es/card/types.mjs +0 -0
  143. package/es/cascader/Cascader.d.ts +96 -0
  144. package/es/cascader/Cascader.mjs +240 -0
  145. package/es/cascader/index.css +1 -0
  146. package/es/cascader/index.d.ts +74 -0
  147. package/es/cascader/index.mjs +10 -0
  148. package/es/cascader/style/index.d.ts +1 -0
  149. package/es/cascader/style/index.mjs +9 -0
  150. package/es/cascader/types.d.ts +34 -0
  151. package/es/cascader/types.mjs +0 -0
  152. package/es/cell/Cell.d.ts +148 -0
  153. package/es/cell/Cell.mjs +131 -0
  154. package/es/cell/index.css +1 -0
  155. package/es/cell/index.d.ts +86 -0
  156. package/es/cell/index.mjs +10 -0
  157. package/es/cell/style/index.d.ts +1 -0
  158. package/es/cell/style/index.mjs +4 -0
  159. package/es/cell/types.d.ts +21 -0
  160. package/es/cell/types.mjs +0 -0
  161. package/es/cell-group/CellGroup.d.ts +29 -0
  162. package/es/cell-group/CellGroup.mjs +44 -0
  163. package/es/cell-group/index.css +1 -0
  164. package/es/cell-group/index.d.ts +27 -0
  165. package/es/cell-group/index.mjs +10 -0
  166. package/es/cell-group/style/index.d.ts +1 -0
  167. package/es/cell-group/style/index.mjs +2 -0
  168. package/es/cell-group/types.d.ts +10 -0
  169. package/es/cell-group/types.mjs +0 -0
  170. package/es/checkbox/Checkbox.d.ts +68 -0
  171. package/es/checkbox/Checkbox.mjs +89 -0
  172. package/es/checkbox/Checker.d.ts +87 -0
  173. package/es/checkbox/Checker.mjs +142 -0
  174. package/es/checkbox/index.css +1 -0
  175. package/es/checkbox/index.d.ts +54 -0
  176. package/es/checkbox/index.mjs +10 -0
  177. package/es/checkbox/style/index.d.ts +1 -0
  178. package/es/checkbox/style/index.mjs +5 -0
  179. package/es/checkbox/types.d.ts +24 -0
  180. package/es/checkbox/types.mjs +0 -0
  181. package/es/checkbox-group/CheckboxGroup.d.ts +57 -0
  182. package/es/checkbox-group/CheckboxGroup.mjs +72 -0
  183. package/es/checkbox-group/index.css +1 -0
  184. package/es/checkbox-group/index.d.ts +45 -0
  185. package/es/checkbox-group/index.mjs +10 -0
  186. package/es/checkbox-group/style/index.d.ts +1 -0
  187. package/es/checkbox-group/style/index.mjs +2 -0
  188. package/es/checkbox-group/types.d.ts +16 -0
  189. package/es/checkbox-group/types.mjs +0 -0
  190. package/es/circle/Circle.d.ts +118 -0
  191. package/es/circle/Circle.mjs +152 -0
  192. package/es/circle/index.css +1 -0
  193. package/es/circle/index.d.ts +88 -0
  194. package/es/circle/index.mjs +10 -0
  195. package/es/circle/style/index.d.ts +1 -0
  196. package/es/circle/style/index.mjs +2 -0
  197. package/es/circle/types.d.ts +9 -0
  198. package/es/circle/types.mjs +0 -0
  199. package/es/col/Col.d.ts +38 -0
  200. package/es/col/Col.mjs +71 -0
  201. package/es/col/index.css +1 -0
  202. package/es/col/index.d.ts +32 -0
  203. package/es/col/index.mjs +10 -0
  204. package/es/col/style/index.d.ts +1 -0
  205. package/es/col/style/index.mjs +3 -0
  206. package/es/collapse/Collapse.d.ts +55 -0
  207. package/es/collapse/Collapse.mjs +108 -0
  208. package/es/collapse/index.d.ts +36 -0
  209. package/es/collapse/index.mjs +10 -0
  210. package/es/collapse/style/index.d.ts +1 -0
  211. package/es/collapse/style/index.mjs +1 -0
  212. package/es/collapse-item/CollapseItem.d.ts +141 -0
  213. package/es/collapse-item/CollapseItem.mjs +136 -0
  214. package/es/collapse-item/index.css +1 -0
  215. package/es/collapse-item/index.d.ts +104 -0
  216. package/es/collapse-item/index.mjs +10 -0
  217. package/es/collapse-item/style/index.d.ts +1 -0
  218. package/es/collapse-item/style/index.mjs +5 -0
  219. package/es/collapse-item/types.d.ts +15 -0
  220. package/es/collapse-item/types.mjs +0 -0
  221. package/es/composables/on-popup-reopen.d.ts +3 -0
  222. package/es/composables/on-popup-reopen.mjs +16 -0
  223. package/es/composables/use-expose.d.ts +1 -0
  224. package/es/composables/use-expose.mjs +11 -0
  225. package/es/composables/use-global-z-index.d.ts +4 -0
  226. package/es/composables/use-global-z-index.mjs +9 -0
  227. package/es/composables/use-height.d.ts +2 -0
  228. package/es/composables/use-height.mjs +24 -0
  229. package/es/composables/use-id.d.ts +1 -0
  230. package/es/composables/use-id.mjs +13 -0
  231. package/es/composables/use-lazy-render.d.ts +2 -0
  232. package/es/composables/use-lazy-render.mjs +17 -0
  233. package/es/composables/use-lock-scroll.d.ts +2 -0
  234. package/es/composables/use-lock-scroll.mjs +58 -0
  235. package/es/composables/use-placeholder.d.ts +3 -0
  236. package/es/composables/use-placeholder.mjs +14 -0
  237. package/es/composables/use-refs.d.ts +2 -0
  238. package/es/composables/use-refs.mjs +20 -0
  239. package/es/composables/use-route.d.ts +13 -0
  240. package/es/composables/use-route.mjs +29 -0
  241. package/es/composables/use-scope-id.d.ts +3 -0
  242. package/es/composables/use-scope-id.mjs +9 -0
  243. package/es/composables/use-sync-prop-ref.d.ts +2 -0
  244. package/es/composables/use-sync-prop-ref.mjs +18 -0
  245. package/es/composables/use-tab-status.d.ts +6 -0
  246. package/es/composables/use-tab-status.mjs +22 -0
  247. package/es/composables/use-touch.d.ts +17 -0
  248. package/es/composables/use-touch.mjs +68 -0
  249. package/es/composables/use-visibility-change.d.ts +2 -0
  250. package/es/composables/use-visibility-change.mjs +30 -0
  251. package/es/config-provider/ConfigProvider.d.ts +71 -0
  252. package/es/config-provider/ConfigProvider.mjs +102 -0
  253. package/es/config-provider/index.d.ts +50 -0
  254. package/es/config-provider/index.mjs +10 -0
  255. package/es/config-provider/style/index.d.ts +1 -0
  256. package/es/config-provider/style/index.mjs +1 -0
  257. package/es/config-provider/types.d.ts +61 -0
  258. package/es/config-provider/types.mjs +0 -0
  259. package/es/contact-card/ContactCard.d.ts +47 -0
  260. package/es/contact-card/ContactCard.mjs +46 -0
  261. package/es/contact-card/index.css +1 -0
  262. package/es/contact-card/index.d.ts +39 -0
  263. package/es/contact-card/index.mjs +10 -0
  264. package/es/contact-card/style/index.d.ts +1 -0
  265. package/es/contact-card/style/index.mjs +5 -0
  266. package/es/contact-card/types.d.ts +6 -0
  267. package/es/contact-card/types.mjs +0 -0
  268. package/es/contact-edit/ContactEdit.d.ts +64 -0
  269. package/es/contact-edit/ContactEdit.mjs +112 -0
  270. package/es/contact-edit/index.css +1 -0
  271. package/es/contact-edit/index.d.ts +49 -0
  272. package/es/contact-edit/index.mjs +10 -0
  273. package/es/contact-edit/style/index.d.ts +1 -0
  274. package/es/contact-edit/style/index.mjs +9 -0
  275. package/es/contact-edit/types.d.ts +8 -0
  276. package/es/contact-edit/types.mjs +0 -0
  277. package/es/contact-list/ContactList.d.ts +32 -0
  278. package/es/contact-list/ContactList.mjs +89 -0
  279. package/es/contact-list/index.css +1 -0
  280. package/es/contact-list/index.d.ts +25 -0
  281. package/es/contact-list/index.mjs +10 -0
  282. package/es/contact-list/style/index.d.ts +1 -0
  283. package/es/contact-list/style/index.mjs +11 -0
  284. package/es/contact-list/types.d.ts +6 -0
  285. package/es/contact-list/types.mjs +0 -0
  286. package/es/count-down/CountDown.d.ts +55 -0
  287. package/es/count-down/CountDown.mjs +56 -0
  288. package/es/count-down/index.css +1 -0
  289. package/es/count-down/index.d.ts +46 -0
  290. package/es/count-down/index.mjs +10 -0
  291. package/es/count-down/style/index.d.ts +1 -0
  292. package/es/count-down/style/index.mjs +2 -0
  293. package/es/count-down/types.d.ts +16 -0
  294. package/es/count-down/types.mjs +0 -0
  295. package/es/count-down/utils.d.ts +2 -0
  296. package/es/count-down/utils.mjs +39 -0
  297. package/es/coupon/Coupon.d.ts +45 -0
  298. package/es/coupon/Coupon.mjs +79 -0
  299. package/es/coupon/index.css +1 -0
  300. package/es/coupon/index.d.ts +35 -0
  301. package/es/coupon/index.mjs +8 -0
  302. package/es/coupon/style/index.d.ts +1 -0
  303. package/es/coupon/style/index.mjs +6 -0
  304. package/es/coupon/types.d.ts +19 -0
  305. package/es/coupon/types.mjs +0 -0
  306. package/es/coupon/utils.d.ts +3 -0
  307. package/es/coupon/utils.mjs +14 -0
  308. package/es/coupon-cell/CouponCell.d.ts +78 -0
  309. package/es/coupon-cell/CouponCell.mjs +70 -0
  310. package/es/coupon-cell/index.css +1 -0
  311. package/es/coupon-cell/index.d.ts +60 -0
  312. package/es/coupon-cell/index.mjs +10 -0
  313. package/es/coupon-cell/style/index.d.ts +1 -0
  314. package/es/coupon-cell/style/index.mjs +5 -0
  315. package/es/coupon-cell/types.d.ts +3 -0
  316. package/es/coupon-cell/types.mjs +0 -0
  317. package/es/coupon-list/CouponList.d.ts +170 -0
  318. package/es/coupon-list/CouponList.mjs +196 -0
  319. package/es/coupon-list/index.css +1 -0
  320. package/es/coupon-list/index.d.ts +125 -0
  321. package/es/coupon-list/index.mjs +10 -0
  322. package/es/coupon-list/style/index.d.ts +1 -0
  323. package/es/coupon-list/style/index.mjs +17 -0
  324. package/es/coupon-list/types.d.ts +9 -0
  325. package/es/coupon-list/types.mjs +0 -0
  326. package/es/date-picker/DatePicker.d.ts +176 -0
  327. package/es/date-picker/DatePicker.mjs +133 -0
  328. package/es/date-picker/index.d.ts +127 -0
  329. package/es/date-picker/index.mjs +10 -0
  330. package/es/date-picker/style/index.d.ts +1 -0
  331. package/es/date-picker/style/index.mjs +10 -0
  332. package/es/date-picker/utils.d.ts +46 -0
  333. package/es/date-picker/utils.mjs +50 -0
  334. package/es/dialog/Dialog.d.ts +207 -0
  335. package/es/dialog/Dialog.mjs +222 -0
  336. package/es/dialog/function-call.d.ts +21 -0
  337. package/es/dialog/function-call.mjs +86 -0
  338. package/es/dialog/index.css +1 -0
  339. package/es/dialog/index.d.ts +152 -0
  340. package/es/dialog/index.mjs +22 -0
  341. package/es/dialog/style/index.d.ts +1 -0
  342. package/es/dialog/style/index.mjs +10 -0
  343. package/es/dialog/types.d.ts +55 -0
  344. package/es/dialog/types.mjs +0 -0
  345. package/es/divider/Divider.d.ts +44 -0
  346. package/es/divider/Divider.mjs +33 -0
  347. package/es/divider/index.css +1 -0
  348. package/es/divider/index.d.ts +37 -0
  349. package/es/divider/index.mjs +10 -0
  350. package/es/divider/style/index.d.ts +1 -0
  351. package/es/divider/style/index.mjs +2 -0
  352. package/es/divider/types.d.ts +10 -0
  353. package/es/divider/types.mjs +0 -0
  354. package/es/dropdown-item/DropdownItem.d.ts +59 -0
  355. package/es/dropdown-item/DropdownItem.mjs +204 -0
  356. package/es/dropdown-item/index.css +1 -0
  357. package/es/dropdown-item/index.d.ts +50 -0
  358. package/es/dropdown-item/index.mjs +10 -0
  359. package/es/dropdown-item/style/index.d.ts +1 -0
  360. package/es/dropdown-item/style/index.mjs +8 -0
  361. package/es/dropdown-item/types.d.ts +27 -0
  362. package/es/dropdown-item/types.mjs +0 -0
  363. package/es/dropdown-menu/DropdownMenu.d.ts +89 -0
  364. package/es/dropdown-menu/DropdownMenu.mjs +151 -0
  365. package/es/dropdown-menu/index.css +1 -0
  366. package/es/dropdown-menu/index.d.ts +68 -0
  367. package/es/dropdown-menu/index.mjs +10 -0
  368. package/es/dropdown-menu/style/index.d.ts +1 -0
  369. package/es/dropdown-menu/style/index.mjs +2 -0
  370. package/es/dropdown-menu/types.d.ts +29 -0
  371. package/es/dropdown-menu/types.mjs +0 -0
  372. package/es/empty/Empty.d.ts +29 -0
  373. package/es/empty/Empty.mjs +343 -0
  374. package/es/empty/index.css +1 -0
  375. package/es/empty/index.d.ts +26 -0
  376. package/es/empty/index.mjs +10 -0
  377. package/es/empty/style/index.d.ts +1 -0
  378. package/es/empty/style/index.mjs +2 -0
  379. package/es/empty/types.d.ts +10 -0
  380. package/es/empty/types.mjs +0 -0
  381. package/es/field/Field.d.ts +383 -0
  382. package/es/field/Field.mjs +551 -0
  383. package/es/field/index.css +1 -0
  384. package/es/field/index.d.ts +238 -0
  385. package/es/field/index.mjs +10 -0
  386. package/es/field/style/index.d.ts +1 -0
  387. package/es/field/style/index.mjs +5 -0
  388. package/es/field/types.d.ts +66 -0
  389. package/es/field/types.mjs +0 -0
  390. package/es/field/utils.d.ts +15 -0
  391. package/es/field/utils.mjs +103 -0
  392. package/es/floating-bubble/FloatingBubble.d.ts +62 -0
  393. package/es/floating-bubble/FloatingBubble.mjs +173 -0
  394. package/es/floating-bubble/index.css +1 -0
  395. package/es/floating-bubble/index.d.ts +50 -0
  396. package/es/floating-bubble/index.mjs +10 -0
  397. package/es/floating-bubble/style/index.d.ts +1 -0
  398. package/es/floating-bubble/style/index.mjs +4 -0
  399. package/es/floating-bubble/types.d.ts +24 -0
  400. package/es/floating-bubble/types.mjs +0 -0
  401. package/es/floating-panel/FloatingPanel.d.ts +94 -0
  402. package/es/floating-panel/FloatingPanel.mjs +146 -0
  403. package/es/floating-panel/index.css +1 -0
  404. package/es/floating-panel/index.d.ts +73 -0
  405. package/es/floating-panel/index.mjs +10 -0
  406. package/es/floating-panel/style/index.d.ts +1 -0
  407. package/es/floating-panel/style/index.mjs +2 -0
  408. package/es/floating-panel/types.d.ts +9 -0
  409. package/es/floating-panel/types.mjs +0 -0
  410. package/es/form/Form.d.ts +94 -0
  411. package/es/form/Form.mjs +168 -0
  412. package/es/form/index.d.ts +74 -0
  413. package/es/form/index.mjs +10 -0
  414. package/es/form/style/index.d.ts +1 -0
  415. package/es/form/style/index.mjs +1 -0
  416. package/es/form/types.d.ts +15 -0
  417. package/es/form/types.mjs +0 -0
  418. package/es/grid/Grid.d.ts +74 -0
  419. package/es/grid/Grid.mjs +47 -0
  420. package/es/grid/index.css +1 -0
  421. package/es/grid/index.d.ts +54 -0
  422. package/es/grid/index.mjs +10 -0
  423. package/es/grid/style/index.d.ts +1 -0
  424. package/es/grid/style/index.mjs +2 -0
  425. package/es/grid-item/GridItem.d.ts +45 -0
  426. package/es/grid-item/GridItem.mjs +145 -0
  427. package/es/grid-item/index.css +1 -0
  428. package/es/grid-item/index.d.ts +37 -0
  429. package/es/grid-item/index.mjs +10 -0
  430. package/es/grid-item/style/index.d.ts +1 -0
  431. package/es/grid-item/style/index.mjs +5 -0
  432. package/es/grid-item/types.d.ts +8 -0
  433. package/es/grid-item/types.mjs +0 -0
  434. package/es/highlight/Highlight.d.ts +96 -0
  435. package/es/highlight/Highlight.mjs +128 -0
  436. package/es/highlight/index.css +1 -0
  437. package/es/highlight/index.d.ts +73 -0
  438. package/es/highlight/index.mjs +10 -0
  439. package/es/highlight/style/index.d.ts +1 -0
  440. package/es/highlight/style/index.mjs +2 -0
  441. package/es/highlight/types.d.ts +3 -0
  442. package/es/highlight/types.mjs +0 -0
  443. package/es/icon/Icon.d.ts +45 -0
  444. package/es/icon/Icon.mjs +59 -0
  445. package/es/icon/index.css +1 -0
  446. package/es/icon/index.d.ts +36 -0
  447. package/es/icon/index.mjs +10 -0
  448. package/es/icon/style/index.d.ts +1 -0
  449. package/es/icon/style/index.mjs +3 -0
  450. package/es/image/Image.d.ts +113 -0
  451. package/es/image/Image.mjs +176 -0
  452. package/es/image/index.css +1 -0
  453. package/es/image/index.d.ts +85 -0
  454. package/es/image/index.mjs +10 -0
  455. package/es/image/style/index.d.ts +1 -0
  456. package/es/image/style/index.mjs +4 -0
  457. package/es/image/types.d.ts +12 -0
  458. package/es/image/types.mjs +0 -0
  459. package/es/image-preview/ImagePreview.d.ts +234 -0
  460. package/es/image-preview/ImagePreview.mjs +196 -0
  461. package/es/image-preview/ImagePreviewItem.d.ts +91 -0
  462. package/es/image-preview/ImagePreviewItem.mjs +338 -0
  463. package/es/image-preview/function-call.d.ts +6 -0
  464. package/es/image-preview/function-call.mjs +67 -0
  465. package/es/image-preview/index.css +1 -0
  466. package/es/image-preview/index.d.ts +172 -0
  467. package/es/image-preview/index.mjs +12 -0
  468. package/es/image-preview/style/index.d.ts +1 -0
  469. package/es/image-preview/style/index.mjs +10 -0
  470. package/es/image-preview/types.d.ts +61 -0
  471. package/es/image-preview/types.mjs +0 -0
  472. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  473. package/es/index-anchor/IndexAnchor.mjs +87 -0
  474. package/es/index-anchor/index.css +1 -0
  475. package/es/index-anchor/index.d.ts +14 -0
  476. package/es/index-anchor/index.mjs +10 -0
  477. package/es/index-anchor/style/index.d.ts +1 -0
  478. package/es/index-anchor/style/index.mjs +3 -0
  479. package/es/index-anchor/types.d.ts +11 -0
  480. package/es/index-anchor/types.mjs +0 -0
  481. package/es/index-bar/IndexBar.d.ts +64 -0
  482. package/es/index-bar/IndexBar.mjs +234 -0
  483. package/es/index-bar/index.css +1 -0
  484. package/es/index-bar/index.d.ts +50 -0
  485. package/es/index-bar/index.mjs +10 -0
  486. package/es/index-bar/style/index.d.ts +1 -0
  487. package/es/index-bar/style/index.mjs +2 -0
  488. package/es/index-bar/types.d.ts +16 -0
  489. package/es/index-bar/types.mjs +0 -0
  490. package/es/index.d.ts +109 -0
  491. package/es/index.mjs +325 -0
  492. package/es/lazyload/index.d.ts +3 -0
  493. package/es/lazyload/index.mjs +6 -0
  494. package/es/lazyload/style/index.d.ts +1 -0
  495. package/es/lazyload/style/index.mjs +1 -0
  496. package/es/lazyload/vue-lazyload/index.d.ts +55 -0
  497. package/es/lazyload/vue-lazyload/index.mjs +36 -0
  498. package/es/lazyload/vue-lazyload/lazy-component.mjs +51 -0
  499. package/es/lazyload/vue-lazyload/lazy-container.mjs +72 -0
  500. package/es/lazyload/vue-lazyload/lazy-image.mjs +99 -0
  501. package/es/lazyload/vue-lazyload/lazy.mjs +437 -0
  502. package/es/lazyload/vue-lazyload/listener.mjs +216 -0
  503. package/es/lazyload/vue-lazyload/util.d.ts +25 -0
  504. package/es/lazyload/vue-lazyload/util.mjs +161 -0
  505. package/es/list/List.d.ts +91 -0
  506. package/es/list/List.mjs +146 -0
  507. package/es/list/index.css +1 -0
  508. package/es/list/index.d.ts +72 -0
  509. package/es/list/index.mjs +10 -0
  510. package/es/list/style/index.d.ts +1 -0
  511. package/es/list/style/index.mjs +3 -0
  512. package/es/list/types.d.ts +13 -0
  513. package/es/list/types.mjs +0 -0
  514. package/es/loading/Loading.d.ts +39 -0
  515. package/es/loading/Loading.mjs +70 -0
  516. package/es/loading/index.css +1 -0
  517. package/es/loading/index.d.ts +33 -0
  518. package/es/loading/index.mjs +10 -0
  519. package/es/loading/style/index.d.ts +1 -0
  520. package/es/loading/style/index.mjs +2 -0
  521. package/es/loading/types.d.ts +7 -0
  522. package/es/loading/types.mjs +0 -0
  523. package/es/locale/index.d.ts +8 -0
  524. package/es/locale/index.mjs +26 -0
  525. package/es/locale/lang/ar-SA.d.ts +63 -0
  526. package/es/locale/lang/ar-SA.mjs +65 -0
  527. package/es/locale/lang/bg-BG.d.ts +65 -0
  528. package/es/locale/lang/bg-BG.mjs +75 -0
  529. package/es/locale/lang/bn-BD.d.ts +63 -0
  530. package/es/locale/lang/bn-BD.mjs +73 -0
  531. package/es/locale/lang/da-DK.d.ts +65 -0
  532. package/es/locale/lang/da-DK.mjs +67 -0
  533. package/es/locale/lang/de-DE-formal.d.ts +63 -0
  534. package/es/locale/lang/de-DE-formal.mjs +65 -0
  535. package/es/locale/lang/de-DE.d.ts +63 -0
  536. package/es/locale/lang/de-DE.mjs +65 -0
  537. package/es/locale/lang/el-GR.d.ts +65 -0
  538. package/es/locale/lang/el-GR.mjs +75 -0
  539. package/es/locale/lang/en-US.d.ts +63 -0
  540. package/es/locale/lang/en-US.mjs +65 -0
  541. package/es/locale/lang/eo-EO.d.ts +63 -0
  542. package/es/locale/lang/eo-EO.mjs +65 -0
  543. package/es/locale/lang/es-ES.d.ts +63 -0
  544. package/es/locale/lang/es-ES.mjs +65 -0
  545. package/es/locale/lang/fa-IR.d.ts +65 -0
  546. package/es/locale/lang/fa-IR.mjs +75 -0
  547. package/es/locale/lang/fr-FR.d.ts +63 -0
  548. package/es/locale/lang/fr-FR.mjs +65 -0
  549. package/es/locale/lang/he-IL.d.ts +65 -0
  550. package/es/locale/lang/he-IL.mjs +67 -0
  551. package/es/locale/lang/hi-IN.d.ts +63 -0
  552. package/es/locale/lang/hi-IN.mjs +73 -0
  553. package/es/locale/lang/id-ID.d.ts +63 -0
  554. package/es/locale/lang/id-ID.mjs +65 -0
  555. package/es/locale/lang/is-IS.d.ts +63 -0
  556. package/es/locale/lang/is-IS.mjs +73 -0
  557. package/es/locale/lang/it-IT.d.ts +63 -0
  558. package/es/locale/lang/it-IT.mjs +65 -0
  559. package/es/locale/lang/ja-JP.d.ts +63 -0
  560. package/es/locale/lang/ja-JP.mjs +65 -0
  561. package/es/locale/lang/kk-KZ.d.ts +63 -0
  562. package/es/locale/lang/kk-KZ.mjs +81 -0
  563. package/es/locale/lang/km-KH.d.ts +63 -0
  564. package/es/locale/lang/km-KH.mjs +65 -0
  565. package/es/locale/lang/ko-KR.d.ts +63 -0
  566. package/es/locale/lang/ko-KR.mjs +73 -0
  567. package/es/locale/lang/la-LA.d.ts +63 -0
  568. package/es/locale/lang/la-LA.mjs +65 -0
  569. package/es/locale/lang/mm-MN.d.ts +63 -0
  570. package/es/locale/lang/mm-MN.mjs +65 -0
  571. package/es/locale/lang/nb-NO.d.ts +63 -0
  572. package/es/locale/lang/nb-NO.mjs +65 -0
  573. package/es/locale/lang/nl-NL.d.ts +63 -0
  574. package/es/locale/lang/nl-NL.mjs +65 -0
  575. package/es/locale/lang/pl-PL.d.ts +63 -0
  576. package/es/locale/lang/pl-PL.mjs +65 -0
  577. package/es/locale/lang/pt-BR.d.ts +63 -0
  578. package/es/locale/lang/pt-BR.mjs +65 -0
  579. package/es/locale/lang/ro-RO.d.ts +63 -0
  580. package/es/locale/lang/ro-RO.mjs +65 -0
  581. package/es/locale/lang/ru-RU.d.ts +63 -0
  582. package/es/locale/lang/ru-RU.mjs +65 -0
  583. package/es/locale/lang/sr-RS.d.ts +63 -0
  584. package/es/locale/lang/sr-RS.mjs +73 -0
  585. package/es/locale/lang/sv-SE.d.ts +63 -0
  586. package/es/locale/lang/sv-SE.mjs +65 -0
  587. package/es/locale/lang/th-TH.d.ts +63 -0
  588. package/es/locale/lang/th-TH.mjs +65 -0
  589. package/es/locale/lang/tr-TR.d.ts +63 -0
  590. package/es/locale/lang/tr-TR.mjs +65 -0
  591. package/es/locale/lang/uk-UA.d.ts +63 -0
  592. package/es/locale/lang/uk-UA.mjs +65 -0
  593. package/es/locale/lang/vi-VN.d.ts +63 -0
  594. package/es/locale/lang/vi-VN.mjs +73 -0
  595. package/es/locale/lang/zh-CN.d.ts +63 -0
  596. package/es/locale/lang/zh-CN.mjs +65 -0
  597. package/es/locale/lang/zh-HK.d.ts +63 -0
  598. package/es/locale/lang/zh-HK.mjs +65 -0
  599. package/es/locale/lang/zh-TW.d.ts +63 -0
  600. package/es/locale/lang/zh-TW.mjs +65 -0
  601. package/es/locale/style/index.d.ts +1 -0
  602. package/es/locale/style/index.mjs +1 -0
  603. package/es/nav-bar/NavBar.d.ts +74 -0
  604. package/es/nav-bar/NavBar.mjs +105 -0
  605. package/es/nav-bar/index.css +1 -0
  606. package/es/nav-bar/index.d.ts +60 -0
  607. package/es/nav-bar/index.mjs +10 -0
  608. package/es/nav-bar/style/index.d.ts +1 -0
  609. package/es/nav-bar/style/index.mjs +4 -0
  610. package/es/nav-bar/types.d.ts +10 -0
  611. package/es/nav-bar/types.mjs +0 -0
  612. package/es/notice-bar/NoticeBar.d.ts +71 -0
  613. package/es/notice-bar/NoticeBar.mjs +165 -0
  614. package/es/notice-bar/index.css +1 -0
  615. package/es/notice-bar/index.d.ts +57 -0
  616. package/es/notice-bar/index.mjs +10 -0
  617. package/es/notice-bar/style/index.d.ts +1 -0
  618. package/es/notice-bar/style/index.mjs +4 -0
  619. package/es/notice-bar/types.d.ts +18 -0
  620. package/es/notice-bar/types.mjs +0 -0
  621. package/es/notify/Notify.d.ts +137 -0
  622. package/es/notify/Notify.mjs +42 -0
  623. package/es/notify/function-call.d.ts +18 -0
  624. package/es/notify/function-call.mjs +68 -0
  625. package/es/notify/index.css +1 -0
  626. package/es/notify/index.d.ts +102 -0
  627. package/es/notify/index.mjs +20 -0
  628. package/es/notify/style/index.d.ts +1 -0
  629. package/es/notify/style/index.mjs +6 -0
  630. package/es/notify/types.d.ts +30 -0
  631. package/es/notify/types.mjs +0 -0
  632. package/es/number-keyboard/NumberKeyboard.d.ts +162 -0
  633. package/es/number-keyboard/NumberKeyboard.mjs +235 -0
  634. package/es/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  635. package/es/number-keyboard/NumberKeyboardKey.mjs +93 -0
  636. package/es/number-keyboard/index.css +1 -0
  637. package/es/number-keyboard/index.d.ts +121 -0
  638. package/es/number-keyboard/index.mjs +10 -0
  639. package/es/number-keyboard/style/index.d.ts +1 -0
  640. package/es/number-keyboard/style/index.mjs +3 -0
  641. package/es/number-keyboard/types.d.ts +17 -0
  642. package/es/number-keyboard/types.mjs +0 -0
  643. package/es/overlay/Overlay.d.ts +54 -0
  644. package/es/overlay/Overlay.mjs +67 -0
  645. package/es/overlay/index.css +1 -0
  646. package/es/overlay/index.d.ts +44 -0
  647. package/es/overlay/index.mjs +10 -0
  648. package/es/overlay/style/index.d.ts +1 -0
  649. package/es/overlay/style/index.mjs +2 -0
  650. package/es/overlay/types.d.ts +4 -0
  651. package/es/overlay/types.mjs +0 -0
  652. package/es/pagination/Pagination.d.ts +127 -0
  653. package/es/pagination/Pagination.mjs +154 -0
  654. package/es/pagination/index.css +1 -0
  655. package/es/pagination/index.d.ts +95 -0
  656. package/es/pagination/index.mjs +10 -0
  657. package/es/pagination/style/index.d.ts +1 -0
  658. package/es/pagination/style/index.mjs +2 -0
  659. package/es/pagination/types.d.ts +11 -0
  660. package/es/pagination/types.mjs +0 -0
  661. package/es/password-input/PasswordInput.d.ts +63 -0
  662. package/es/password-input/PasswordInput.mjs +78 -0
  663. package/es/password-input/index.css +1 -0
  664. package/es/password-input/index.d.ts +51 -0
  665. package/es/password-input/index.mjs +10 -0
  666. package/es/password-input/style/index.d.ts +1 -0
  667. package/es/password-input/style/index.mjs +2 -0
  668. package/es/password-input/types.d.ts +17 -0
  669. package/es/password-input/types.mjs +0 -0
  670. package/es/picker/Picker.d.ts +164 -0
  671. package/es/picker/Picker.mjs +219 -0
  672. package/es/picker/PickerColumn.d.ts +61 -0
  673. package/es/picker/PickerColumn.mjs +203 -0
  674. package/es/picker/PickerToolbar.d.ts +21 -0
  675. package/es/picker/PickerToolbar.mjs +66 -0
  676. package/es/picker/index.css +1 -0
  677. package/es/picker/index.d.ts +105 -0
  678. package/es/picker/index.mjs +10 -0
  679. package/es/picker/style/index.d.ts +1 -0
  680. package/es/picker/style/index.mjs +10 -0
  681. package/es/picker/types.d.ts +62 -0
  682. package/es/picker/types.mjs +0 -0
  683. package/es/picker/utils.d.ts +13 -0
  684. package/es/picker/utils.mjs +78 -0
  685. package/es/picker-group/PickerGroup.d.ts +69 -0
  686. package/es/picker-group/PickerGroup.mjs +81 -0
  687. package/es/picker-group/index.css +1 -0
  688. package/es/picker-group/index.d.ts +55 -0
  689. package/es/picker-group/index.mjs +10 -0
  690. package/es/picker-group/style/index.d.ts +1 -0
  691. package/es/picker-group/style/index.mjs +9 -0
  692. package/es/picker-group/types.d.ts +3 -0
  693. package/es/picker-group/types.mjs +0 -0
  694. package/es/popover/Popover.d.ts +177 -0
  695. package/es/popover/Popover.mjs +197 -0
  696. package/es/popover/index.css +1 -0
  697. package/es/popover/index.d.ts +130 -0
  698. package/es/popover/index.mjs +10 -0
  699. package/es/popover/style/index.d.ts +1 -0
  700. package/es/popover/style/index.mjs +6 -0
  701. package/es/popover/types.d.ts +27 -0
  702. package/es/popover/types.mjs +0 -0
  703. package/es/popup/Popup.d.ts +172 -0
  704. package/es/popup/Popup.mjs +221 -0
  705. package/es/popup/index.css +1 -0
  706. package/es/popup/index.d.ts +129 -0
  707. package/es/popup/index.mjs +10 -0
  708. package/es/popup/shared.d.ts +32 -0
  709. package/es/popup/shared.mjs +36 -0
  710. package/es/popup/style/index.d.ts +1 -0
  711. package/es/popup/style/index.mjs +5 -0
  712. package/es/popup/types.d.ts +17 -0
  713. package/es/popup/types.mjs +0 -0
  714. package/es/progress/Progress.d.ts +61 -0
  715. package/es/progress/Progress.mjs +79 -0
  716. package/es/progress/index.css +1 -0
  717. package/es/progress/index.d.ts +49 -0
  718. package/es/progress/index.mjs +10 -0
  719. package/es/progress/style/index.d.ts +1 -0
  720. package/es/progress/style/index.mjs +2 -0
  721. package/es/progress/types.d.ts +14 -0
  722. package/es/progress/types.mjs +0 -0
  723. package/es/pull-refresh/PullRefresh.d.ts +75 -0
  724. package/es/pull-refresh/PullRefresh.mjs +193 -0
  725. package/es/pull-refresh/index.css +1 -0
  726. package/es/pull-refresh/index.d.ts +60 -0
  727. package/es/pull-refresh/index.mjs +10 -0
  728. package/es/pull-refresh/style/index.d.ts +1 -0
  729. package/es/pull-refresh/style/index.mjs +3 -0
  730. package/es/pull-refresh/types.d.ts +6 -0
  731. package/es/pull-refresh/types.mjs +0 -0
  732. package/es/radio/Radio.d.ts +43 -0
  733. package/es/radio/Radio.mjs +44 -0
  734. package/es/radio/index.css +1 -0
  735. package/es/radio/index.d.ts +35 -0
  736. package/es/radio/index.mjs +10 -0
  737. package/es/radio/style/index.d.ts +1 -0
  738. package/es/radio/style/index.mjs +6 -0
  739. package/es/radio/types.d.ts +12 -0
  740. package/es/radio/types.mjs +0 -0
  741. package/es/radio-group/RadioGroup.d.ts +39 -0
  742. package/es/radio-group/RadioGroup.mjs +45 -0
  743. package/es/radio-group/index.css +1 -0
  744. package/es/radio-group/index.d.ts +28 -0
  745. package/es/radio-group/index.mjs +10 -0
  746. package/es/radio-group/style/index.d.ts +1 -0
  747. package/es/radio-group/style/index.mjs +2 -0
  748. package/es/rate/Rate.d.ts +111 -0
  749. package/es/rate/Rate.mjs +224 -0
  750. package/es/rate/index.css +1 -0
  751. package/es/rate/index.d.ts +85 -0
  752. package/es/rate/index.mjs +10 -0
  753. package/es/rate/style/index.d.ts +1 -0
  754. package/es/rate/style/index.mjs +4 -0
  755. package/es/rate/types.d.ts +7 -0
  756. package/es/rate/types.mjs +0 -0
  757. package/es/rolling-text/RollingText.d.ts +104 -0
  758. package/es/rolling-text/RollingText.mjs +94 -0
  759. package/es/rolling-text/RollingTextItem.d.ts +67 -0
  760. package/es/rolling-text/RollingTextItem.mjs +46 -0
  761. package/es/rolling-text/index.css +1 -0
  762. package/es/rolling-text/index.d.ts +79 -0
  763. package/es/rolling-text/index.mjs +10 -0
  764. package/es/rolling-text/style/index.d.ts +1 -0
  765. package/es/rolling-text/style/index.mjs +2 -0
  766. package/es/rolling-text/types.d.ts +17 -0
  767. package/es/rolling-text/types.mjs +0 -0
  768. package/es/row/Row.d.ts +68 -0
  769. package/es/row/Row.mjs +121 -0
  770. package/es/row/index.css +1 -0
  771. package/es/row/index.d.ts +43 -0
  772. package/es/row/index.mjs +10 -0
  773. package/es/row/style/index.d.ts +1 -0
  774. package/es/row/style/index.mjs +2 -0
  775. package/es/search/Search.d.ts +234 -0
  776. package/es/search/Search.mjs +122 -0
  777. package/es/search/index.css +1 -0
  778. package/es/search/index.d.ts +171 -0
  779. package/es/search/index.mjs +10 -0
  780. package/es/search/style/index.d.ts +1 -0
  781. package/es/search/style/index.mjs +6 -0
  782. package/es/search/types.d.ts +21 -0
  783. package/es/search/types.mjs +0 -0
  784. package/es/share-sheet/ShareSheet.d.ts +165 -0
  785. package/es/share-sheet/ShareSheet.mjs +123 -0
  786. package/es/share-sheet/index.css +1 -0
  787. package/es/share-sheet/index.d.ts +117 -0
  788. package/es/share-sheet/index.mjs +10 -0
  789. package/es/share-sheet/style/index.d.ts +1 -0
  790. package/es/share-sheet/style/index.mjs +6 -0
  791. package/es/share-sheet/types.d.ts +17 -0
  792. package/es/share-sheet/types.mjs +0 -0
  793. package/es/sidebar/Sidebar.d.ts +30 -0
  794. package/es/sidebar/Sidebar.mjs +44 -0
  795. package/es/sidebar/index.css +1 -0
  796. package/es/sidebar/index.d.ts +25 -0
  797. package/es/sidebar/index.mjs +10 -0
  798. package/es/sidebar/style/index.d.ts +1 -0
  799. package/es/sidebar/style/index.mjs +2 -0
  800. package/es/sidebar/types.d.ts +3 -0
  801. package/es/sidebar/types.mjs +0 -0
  802. package/es/sidebar-item/SidebarItem.d.ts +42 -0
  803. package/es/sidebar-item/SidebarItem.mjs +72 -0
  804. package/es/sidebar-item/index.css +1 -0
  805. package/es/sidebar-item/index.d.ts +36 -0
  806. package/es/sidebar-item/index.mjs +10 -0
  807. package/es/sidebar-item/style/index.d.ts +1 -0
  808. package/es/sidebar-item/style/index.mjs +4 -0
  809. package/es/sidebar-item/types.d.ts +15 -0
  810. package/es/sidebar-item/types.mjs +0 -0
  811. package/es/signature/Signature.d.ts +76 -0
  812. package/es/signature/Signature.mjs +161 -0
  813. package/es/signature/index.css +1 -0
  814. package/es/signature/index.d.ts +60 -0
  815. package/es/signature/index.mjs +8 -0
  816. package/es/signature/style/index.d.ts +1 -0
  817. package/es/signature/style/index.mjs +6 -0
  818. package/es/signature/types.d.ts +14 -0
  819. package/es/signature/types.mjs +0 -0
  820. package/es/skeleton/Skeleton.d.ts +96 -0
  821. package/es/skeleton/Skeleton.mjs +89 -0
  822. package/es/skeleton/index.css +1 -0
  823. package/es/skeleton/index.d.ts +73 -0
  824. package/es/skeleton/index.mjs +10 -0
  825. package/es/skeleton/style/index.d.ts +1 -0
  826. package/es/skeleton/style/index.mjs +5 -0
  827. package/es/skeleton/types.d.ts +11 -0
  828. package/es/skeleton/types.mjs +0 -0
  829. package/es/skeleton-avatar/SkeletonAvatar.d.ts +26 -0
  830. package/es/skeleton-avatar/SkeletonAvatar.mjs +21 -0
  831. package/es/skeleton-avatar/index.css +1 -0
  832. package/es/skeleton-avatar/index.d.ts +23 -0
  833. package/es/skeleton-avatar/index.mjs +10 -0
  834. package/es/skeleton-avatar/style/index.d.ts +1 -0
  835. package/es/skeleton-avatar/style/index.mjs +2 -0
  836. package/es/skeleton-image/SkeletonImage.d.ts +26 -0
  837. package/es/skeleton-image/SkeletonImage.mjs +25 -0
  838. package/es/skeleton-image/index.css +1 -0
  839. package/es/skeleton-image/index.d.ts +23 -0
  840. package/es/skeleton-image/index.mjs +10 -0
  841. package/es/skeleton-image/style/index.d.ts +1 -0
  842. package/es/skeleton-image/style/index.mjs +4 -0
  843. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +27 -0
  844. package/es/skeleton-paragraph/SkeletonParagraph.mjs +30 -0
  845. package/es/skeleton-paragraph/index.css +1 -0
  846. package/es/skeleton-paragraph/index.d.ts +24 -0
  847. package/es/skeleton-paragraph/index.mjs +11 -0
  848. package/es/skeleton-paragraph/style/index.d.ts +1 -0
  849. package/es/skeleton-paragraph/style/index.mjs +2 -0
  850. package/es/skeleton-title/SkeletonTitle.d.ts +16 -0
  851. package/es/skeleton-title/SkeletonTitle.mjs +25 -0
  852. package/es/skeleton-title/index.css +1 -0
  853. package/es/skeleton-title/index.d.ts +17 -0
  854. package/es/skeleton-title/index.mjs +10 -0
  855. package/es/skeleton-title/style/index.d.ts +1 -0
  856. package/es/skeleton-title/style/index.mjs +2 -0
  857. package/es/slider/Slider.d.ts +100 -0
  858. package/es/slider/Slider.mjs +286 -0
  859. package/es/slider/index.css +1 -0
  860. package/es/slider/index.d.ts +77 -0
  861. package/es/slider/index.mjs +10 -0
  862. package/es/slider/style/index.d.ts +1 -0
  863. package/es/slider/style/index.mjs +2 -0
  864. package/es/slider/types.d.ts +11 -0
  865. package/es/slider/types.mjs +0 -0
  866. package/es/space/Space.d.ts +48 -0
  867. package/es/space/Space.mjs +87 -0
  868. package/es/space/index.css +1 -0
  869. package/es/space/index.d.ts +38 -0
  870. package/es/space/index.mjs +10 -0
  871. package/es/space/style/index.d.ts +1 -0
  872. package/es/space/style/index.mjs +2 -0
  873. package/es/step/Step.d.ts +2 -0
  874. package/es/step/Step.mjs +117 -0
  875. package/es/step/index.css +1 -0
  876. package/es/step/index.d.ts +8 -0
  877. package/es/step/index.mjs +8 -0
  878. package/es/step/style/index.d.ts +1 -0
  879. package/es/step/style/index.mjs +5 -0
  880. package/es/step/types.d.ts +13 -0
  881. package/es/step/types.mjs +0 -0
  882. package/es/stepper/Stepper.d.ts +194 -0
  883. package/es/stepper/Stepper.mjs +251 -0
  884. package/es/stepper/index.css +1 -0
  885. package/es/stepper/index.d.ts +143 -0
  886. package/es/stepper/index.mjs +10 -0
  887. package/es/stepper/style/index.d.ts +1 -0
  888. package/es/stepper/style/index.mjs +2 -0
  889. package/es/stepper/types.d.ts +15 -0
  890. package/es/stepper/types.mjs +0 -0
  891. package/es/steps/Steps.d.ts +71 -0
  892. package/es/steps/Steps.mjs +46 -0
  893. package/es/steps/index.css +1 -0
  894. package/es/steps/index.d.ts +52 -0
  895. package/es/steps/index.mjs +10 -0
  896. package/es/steps/style/index.d.ts +1 -0
  897. package/es/steps/style/index.mjs +2 -0
  898. package/es/steps/types.d.ts +3 -0
  899. package/es/steps/types.mjs +0 -0
  900. package/es/sticky/Sticky.d.ts +58 -0
  901. package/es/sticky/Sticky.mjs +138 -0
  902. package/es/sticky/index.css +1 -0
  903. package/es/sticky/index.d.ts +47 -0
  904. package/es/sticky/index.mjs +10 -0
  905. package/es/sticky/style/index.d.ts +1 -0
  906. package/es/sticky/style/index.mjs +2 -0
  907. package/es/sticky/types.d.ts +3 -0
  908. package/es/sticky/types.mjs +0 -0
  909. package/es/style/animation.css +1 -0
  910. package/es/style/base.css +1 -0
  911. package/es/style/css-variables.css +1 -0
  912. package/es/style/mixins/clearfix.css +0 -0
  913. package/es/style/mixins/ellipsis.css +0 -0
  914. package/es/style/mixins/hairline.css +0 -0
  915. package/es/style/normalize.css +1 -0
  916. package/es/submit-bar/SubmitBar.d.ts +101 -0
  917. package/es/submit-bar/SubmitBar.mjs +115 -0
  918. package/es/submit-bar/index.css +1 -0
  919. package/es/submit-bar/index.d.ts +76 -0
  920. package/es/submit-bar/index.mjs +10 -0
  921. package/es/submit-bar/style/index.d.ts +1 -0
  922. package/es/submit-bar/style/index.mjs +6 -0
  923. package/es/submit-bar/types.d.ts +20 -0
  924. package/es/submit-bar/types.mjs +0 -0
  925. package/es/swipe/Swipe.d.ts +123 -0
  926. package/es/swipe/Swipe.mjs +375 -0
  927. package/es/swipe/index.css +1 -0
  928. package/es/swipe/index.d.ts +93 -0
  929. package/es/swipe/index.mjs +10 -0
  930. package/es/swipe/style/index.d.ts +1 -0
  931. package/es/swipe/style/index.mjs +2 -0
  932. package/es/swipe/types.d.ts +39 -0
  933. package/es/swipe/types.mjs +0 -0
  934. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  935. package/es/swipe-cell/SwipeCell.mjs +174 -0
  936. package/es/swipe-cell/index.css +1 -0
  937. package/es/swipe-cell/index.d.ts +39 -0
  938. package/es/swipe-cell/index.mjs +10 -0
  939. package/es/swipe-cell/style/index.d.ts +1 -0
  940. package/es/swipe-cell/style/index.mjs +2 -0
  941. package/es/swipe-cell/types.d.ts +9 -0
  942. package/es/swipe-cell/types.mjs +0 -0
  943. package/es/swipe-item/SwipeItem.d.ts +2 -0
  944. package/es/swipe-item/SwipeItem.mjs +81 -0
  945. package/es/swipe-item/index.css +1 -0
  946. package/es/swipe-item/index.d.ts +7 -0
  947. package/es/swipe-item/index.mjs +8 -0
  948. package/es/swipe-item/style/index.d.ts +1 -0
  949. package/es/swipe-item/style/index.mjs +3 -0
  950. package/es/switch/Switch.d.ts +58 -0
  951. package/es/switch/Switch.mjs +85 -0
  952. package/es/switch/index.css +1 -0
  953. package/es/switch/index.d.ts +48 -0
  954. package/es/switch/index.mjs +10 -0
  955. package/es/switch/style/index.d.ts +1 -0
  956. package/es/switch/style/index.mjs +3 -0
  957. package/es/switch/types.d.ts +12 -0
  958. package/es/switch/types.mjs +0 -0
  959. package/es/tab/Tab.d.ts +58 -0
  960. package/es/tab/Tab.mjs +154 -0
  961. package/es/tab/TabTitle.d.ts +44 -0
  962. package/es/tab/TabTitle.mjs +90 -0
  963. package/es/tab/index.css +1 -0
  964. package/es/tab/index.d.ts +47 -0
  965. package/es/tab/index.mjs +13 -0
  966. package/es/tab/style/index.d.ts +1 -0
  967. package/es/tab/style/index.mjs +7 -0
  968. package/es/tabbar/Tabbar.d.ts +90 -0
  969. package/es/tabbar/Tabbar.mjs +84 -0
  970. package/es/tabbar/index.css +1 -0
  971. package/es/tabbar/index.d.ts +66 -0
  972. package/es/tabbar/index.mjs +10 -0
  973. package/es/tabbar/style/index.d.ts +1 -0
  974. package/es/tabbar/style/index.mjs +2 -0
  975. package/es/tabbar/types.d.ts +5 -0
  976. package/es/tabbar/types.mjs +0 -0
  977. package/es/tabbar-item/TabbarItem.d.ts +44 -0
  978. package/es/tabbar-item/TabbarItem.mjs +120 -0
  979. package/es/tabbar-item/index.css +1 -0
  980. package/es/tabbar-item/index.d.ts +37 -0
  981. package/es/tabbar-item/index.mjs +10 -0
  982. package/es/tabbar-item/style/index.d.ts +1 -0
  983. package/es/tabbar-item/style/index.mjs +5 -0
  984. package/es/tabbar-item/types.d.ts +9 -0
  985. package/es/tabbar-item/types.mjs +0 -0
  986. package/es/tabs/Tabs.d.ts +167 -0
  987. package/es/tabs/Tabs.mjs +356 -0
  988. package/es/tabs/TabsContent.d.ts +43 -0
  989. package/es/tabs/TabsContent.mjs +67 -0
  990. package/es/tabs/index.css +1 -0
  991. package/es/tabs/index.d.ts +124 -0
  992. package/es/tabs/index.mjs +10 -0
  993. package/es/tabs/style/index.d.ts +1 -0
  994. package/es/tabs/style/index.mjs +4 -0
  995. package/es/tabs/types.d.ts +39 -0
  996. package/es/tabs/types.mjs +0 -0
  997. package/es/tabs/utils.d.ts +3 -0
  998. package/es/tabs/utils.mjs +49 -0
  999. package/es/tag/Tag.d.ts +63 -0
  1000. package/es/tag/Tag.mjs +78 -0
  1001. package/es/tag/index.css +1 -0
  1002. package/es/tag/index.d.ts +51 -0
  1003. package/es/tag/index.mjs +10 -0
  1004. package/es/tag/style/index.d.ts +1 -0
  1005. package/es/tag/style/index.mjs +4 -0
  1006. package/es/tag/types.d.ts +20 -0
  1007. package/es/tag/types.mjs +0 -0
  1008. package/es/text-ellipsis/TextEllipsis.d.ts +89 -0
  1009. package/es/text-ellipsis/TextEllipsis.mjs +167 -0
  1010. package/es/text-ellipsis/index.css +1 -0
  1011. package/es/text-ellipsis/index.d.ts +69 -0
  1012. package/es/text-ellipsis/index.mjs +10 -0
  1013. package/es/text-ellipsis/style/index.d.ts +1 -0
  1014. package/es/text-ellipsis/style/index.mjs +2 -0
  1015. package/es/text-ellipsis/types.d.ts +9 -0
  1016. package/es/text-ellipsis/types.mjs +0 -0
  1017. package/es/time-picker/TimePicker.d.ts +246 -0
  1018. package/es/time-picker/TimePicker.mjs +138 -0
  1019. package/es/time-picker/index.d.ts +175 -0
  1020. package/es/time-picker/index.mjs +10 -0
  1021. package/es/time-picker/style/index.d.ts +1 -0
  1022. package/es/time-picker/style/index.mjs +10 -0
  1023. package/es/toast/Toast.d.ts +118 -0
  1024. package/es/toast/Toast.mjs +127 -0
  1025. package/es/toast/function-call.d.ts +36 -0
  1026. package/es/toast/function-call.mjs +141 -0
  1027. package/es/toast/index.css +1 -0
  1028. package/es/toast/index.d.ts +89 -0
  1029. package/es/toast/index.mjs +28 -0
  1030. package/es/toast/lock-click.d.ts +1 -0
  1031. package/es/toast/lock-click.mjs +17 -0
  1032. package/es/toast/style/index.d.ts +1 -0
  1033. package/es/toast/style/index.mjs +7 -0
  1034. package/es/toast/types.d.ts +56 -0
  1035. package/es/toast/types.mjs +0 -0
  1036. package/es/tree-select/TreeSelect.d.ts +106 -0
  1037. package/es/tree-select/TreeSelect.mjs +103 -0
  1038. package/es/tree-select/index.css +1 -0
  1039. package/es/tree-select/index.d.ts +72 -0
  1040. package/es/tree-select/index.mjs +10 -0
  1041. package/es/tree-select/style/index.d.ts +1 -0
  1042. package/es/tree-select/style/index.mjs +6 -0
  1043. package/es/tree-select/types.d.ts +10 -0
  1044. package/es/tree-select/types.mjs +0 -0
  1045. package/es/uploader/Uploader.d.ts +217 -0
  1046. package/es/uploader/Uploader.mjs +272 -0
  1047. package/es/uploader/UploaderPreviewItem.d.ts +40 -0
  1048. package/es/uploader/UploaderPreviewItem.mjs +130 -0
  1049. package/es/uploader/index.css +1 -0
  1050. package/es/uploader/index.d.ts +159 -0
  1051. package/es/uploader/index.mjs +10 -0
  1052. package/es/uploader/style/index.d.ts +1 -0
  1053. package/es/uploader/style/index.mjs +11 -0
  1054. package/es/uploader/types.d.ts +61 -0
  1055. package/es/uploader/types.mjs +0 -0
  1056. package/es/uploader/utils.d.ts +11 -0
  1057. package/es/uploader/utils.mjs +69 -0
  1058. package/es/utils/basic.d.ts +30 -0
  1059. package/es/utils/basic.mjs +56 -0
  1060. package/es/utils/closest.d.ts +1 -0
  1061. package/es/utils/closest.mjs +8 -0
  1062. package/es/utils/constant.d.ts +14 -0
  1063. package/es/utils/constant.mjs +26 -0
  1064. package/es/utils/create.d.ts +17 -0
  1065. package/es/utils/create.mjs +52 -0
  1066. package/es/utils/deep-assign.d.ts +3 -0
  1067. package/es/utils/deep-assign.mjs +22 -0
  1068. package/es/utils/deep-clone.d.ts +1 -0
  1069. package/es/utils/deep-clone.mjs +20 -0
  1070. package/es/utils/dom.d.ts +13 -0
  1071. package/es/utils/dom.mjs +84 -0
  1072. package/es/utils/format.d.ts +13 -0
  1073. package/es/utils/format.mjs +120 -0
  1074. package/es/utils/index.d.ts +9 -0
  1075. package/es/utils/index.mjs +9 -0
  1076. package/es/utils/interceptor.d.ts +7 -0
  1077. package/es/utils/interceptor.mjs +29 -0
  1078. package/es/utils/mount-component.d.ts +14 -0
  1079. package/es/utils/mount-component.mjs +39 -0
  1080. package/es/utils/props.d.ts +31 -0
  1081. package/es/utils/props.mjs +36 -0
  1082. package/es/utils/with-install.d.ts +13 -0
  1083. package/es/utils/with-install.mjs +14 -0
  1084. package/es/vue-sfc-shim.d.ts +6 -0
  1085. package/es/vue-tsx-shim.d.ts +24 -0
  1086. package/es/watermark/Watermark.d.ts +112 -0
  1087. package/es/watermark/Watermark.mjs +132 -0
  1088. package/es/watermark/index.css +1 -0
  1089. package/es/watermark/index.d.ts +84 -0
  1090. package/es/watermark/index.mjs +10 -0
  1091. package/es/watermark/style/index.d.ts +1 -0
  1092. package/es/watermark/style/index.mjs +2 -0
  1093. package/es/watermark/types.d.ts +3 -0
  1094. package/es/watermark/types.mjs +0 -0
  1095. package/lib/action-bar/ActionBar.d.ts +27 -0
  1096. package/lib/action-bar/ActionBar.js +63 -0
  1097. package/lib/action-bar/index.css +1 -0
  1098. package/lib/action-bar/index.d.ts +25 -0
  1099. package/lib/action-bar/index.js +39 -0
  1100. package/lib/action-bar/style/index.d.ts +1 -0
  1101. package/lib/action-bar/style/index.js +2 -0
  1102. package/lib/action-bar/types.d.ts +4 -0
  1103. package/lib/action-bar/types.js +15 -0
  1104. package/lib/action-bar-button/ActionBarButton.d.ts +43 -0
  1105. package/lib/action-bar-button/ActionBarButton.js +92 -0
  1106. package/lib/action-bar-button/index.css +1 -0
  1107. package/lib/action-bar-button/index.d.ts +36 -0
  1108. package/lib/action-bar-button/index.js +39 -0
  1109. package/lib/action-bar-button/style/index.d.ts +1 -0
  1110. package/lib/action-bar-button/style/index.js +7 -0
  1111. package/lib/action-bar-button/types.d.ts +5 -0
  1112. package/lib/action-bar-button/types.js +15 -0
  1113. package/lib/action-bar-icon/ActionBarIcon.d.ts +48 -0
  1114. package/lib/action-bar-icon/ActionBarIcon.js +87 -0
  1115. package/lib/action-bar-icon/index.css +1 -0
  1116. package/lib/action-bar-icon/index.d.ts +39 -0
  1117. package/lib/action-bar-icon/index.js +39 -0
  1118. package/lib/action-bar-icon/style/index.d.ts +1 -0
  1119. package/lib/action-bar-icon/style/index.js +5 -0
  1120. package/lib/action-bar-icon/types.d.ts +10 -0
  1121. package/lib/action-bar-icon/types.js +15 -0
  1122. package/lib/action-sheet/ActionSheet.d.ts +198 -0
  1123. package/lib/action-sheet/ActionSheet.js +158 -0
  1124. package/lib/action-sheet/index.css +1 -0
  1125. package/lib/action-sheet/index.d.ts +138 -0
  1126. package/lib/action-sheet/index.js +39 -0
  1127. package/lib/action-sheet/style/index.d.ts +1 -0
  1128. package/lib/action-sheet/style/index.js +7 -0
  1129. package/lib/action-sheet/types.d.ts +23 -0
  1130. package/lib/action-sheet/types.js +15 -0
  1131. package/lib/address-edit/AddressEdit.d.ts +158 -0
  1132. package/lib/address-edit/AddressEdit.js +323 -0
  1133. package/lib/address-edit/AddressEditDetail.d.ts +32 -0
  1134. package/lib/address-edit/AddressEditDetail.js +94 -0
  1135. package/lib/address-edit/index.css +1 -0
  1136. package/lib/address-edit/index.d.ts +119 -0
  1137. package/lib/address-edit/index.js +39 -0
  1138. package/lib/address-edit/style/index.d.ts +1 -0
  1139. package/lib/address-edit/style/index.js +19 -0
  1140. package/lib/address-edit/types.d.ts +27 -0
  1141. package/lib/address-edit/types.js +15 -0
  1142. package/lib/address-list/AddressList.d.ts +95 -0
  1143. package/lib/address-list/AddressList.js +132 -0
  1144. package/lib/address-list/AddressListItem.d.ts +46 -0
  1145. package/lib/address-list/AddressListItem.js +127 -0
  1146. package/lib/address-list/index.css +1 -0
  1147. package/lib/address-list/index.d.ts +75 -0
  1148. package/lib/address-list/index.js +39 -0
  1149. package/lib/address-list/style/index.d.ts +1 -0
  1150. package/lib/address-list/style/index.js +12 -0
  1151. package/lib/address-list/types.d.ts +15 -0
  1152. package/lib/address-list/types.js +15 -0
  1153. package/lib/area/Area.d.ts +134 -0
  1154. package/lib/area/Area.js +95 -0
  1155. package/lib/area/index.d.ts +100 -0
  1156. package/lib/area/index.js +39 -0
  1157. package/lib/area/style/index.d.ts +1 -0
  1158. package/lib/area/style/index.js +10 -0
  1159. package/lib/area/types.d.ts +9 -0
  1160. package/lib/area/types.js +15 -0
  1161. package/lib/area/utils.d.ts +6 -0
  1162. package/lib/area/utils.js +111 -0
  1163. package/lib/assets/cgn-w.png +0 -0
  1164. package/lib/assets/cgn.png +0 -0
  1165. package/lib/assets/logo.png +0 -0
  1166. package/lib/back-top/BackTop.d.ts +53 -0
  1167. package/lib/back-top/BackTop.js +137 -0
  1168. package/lib/back-top/index.css +1 -0
  1169. package/lib/back-top/index.d.ts +44 -0
  1170. package/lib/back-top/index.js +39 -0
  1171. package/lib/back-top/style/index.d.ts +1 -0
  1172. package/lib/back-top/style/index.js +4 -0
  1173. package/lib/back-top/types.d.ts +9 -0
  1174. package/lib/back-top/types.js +15 -0
  1175. package/lib/badge/Badge.d.ts +66 -0
  1176. package/lib/badge/Badge.js +123 -0
  1177. package/lib/badge/index.css +1 -0
  1178. package/lib/badge/index.d.ts +51 -0
  1179. package/lib/badge/index.js +39 -0
  1180. package/lib/badge/style/index.d.ts +1 -0
  1181. package/lib/badge/style/index.js +2 -0
  1182. package/lib/badge/types.d.ts +12 -0
  1183. package/lib/badge/types.js +15 -0
  1184. package/lib/barrage/Barrage.d.ts +93 -0
  1185. package/lib/barrage/Barrage.js +152 -0
  1186. package/lib/barrage/index.css +1 -0
  1187. package/lib/barrage/index.d.ts +69 -0
  1188. package/lib/barrage/index.js +39 -0
  1189. package/lib/barrage/style/index.d.ts +1 -0
  1190. package/lib/barrage/style/index.js +2 -0
  1191. package/lib/barrage/types.d.ts +13 -0
  1192. package/lib/barrage/types.js +15 -0
  1193. package/lib/button/Button.d.ts +140 -0
  1194. package/lib/button/Button.js +167 -0
  1195. package/lib/button/index.css +1 -0
  1196. package/lib/button/index.d.ts +104 -0
  1197. package/lib/button/index.js +39 -0
  1198. package/lib/button/style/index.d.ts +1 -0
  1199. package/lib/button/style/index.js +5 -0
  1200. package/lib/button/types.d.ts +41 -0
  1201. package/lib/button/types.js +15 -0
  1202. package/lib/calendar/Calendar.d.ts +300 -0
  1203. package/lib/calendar/Calendar.js +480 -0
  1204. package/lib/calendar/CalendarDay.d.ts +33 -0
  1205. package/lib/calendar/CalendarDay.js +150 -0
  1206. package/lib/calendar/CalendarHeader.d.ts +36 -0
  1207. package/lib/calendar/CalendarHeader.js +132 -0
  1208. package/lib/calendar/CalendarMonth.d.ts +69 -0
  1209. package/lib/calendar/CalendarMonth.js +242 -0
  1210. package/lib/calendar/index.css +1 -0
  1211. package/lib/calendar/index.d.ts +216 -0
  1212. package/lib/calendar/index.js +39 -0
  1213. package/lib/calendar/style/index.d.ts +1 -0
  1214. package/lib/calendar/style/index.js +16 -0
  1215. package/lib/calendar/types.d.ts +60 -0
  1216. package/lib/calendar/types.js +15 -0
  1217. package/lib/calendar/utils.d.ts +25 -0
  1218. package/lib/calendar/utils.js +108 -0
  1219. package/lib/card/Card.d.ts +56 -0
  1220. package/lib/card/Card.js +145 -0
  1221. package/lib/card/index.css +1 -0
  1222. package/lib/card/index.d.ts +46 -0
  1223. package/lib/card/index.js +39 -0
  1224. package/lib/card/style/index.d.ts +1 -0
  1225. package/lib/card/style/index.js +6 -0
  1226. package/lib/card/types.d.ts +18 -0
  1227. package/lib/card/types.js +15 -0
  1228. package/lib/cascader/Cascader.d.ts +96 -0
  1229. package/lib/cascader/Cascader.js +259 -0
  1230. package/lib/cascader/index.css +1 -0
  1231. package/lib/cascader/index.d.ts +74 -0
  1232. package/lib/cascader/index.js +39 -0
  1233. package/lib/cascader/style/index.d.ts +1 -0
  1234. package/lib/cascader/style/index.js +9 -0
  1235. package/lib/cascader/types.d.ts +34 -0
  1236. package/lib/cascader/types.js +15 -0
  1237. package/lib/cell/Cell.d.ts +148 -0
  1238. package/lib/cell/Cell.js +150 -0
  1239. package/lib/cell/index.css +1 -0
  1240. package/lib/cell/index.d.ts +86 -0
  1241. package/lib/cell/index.js +39 -0
  1242. package/lib/cell/style/index.d.ts +1 -0
  1243. package/lib/cell/style/index.js +4 -0
  1244. package/lib/cell/types.d.ts +21 -0
  1245. package/lib/cell/types.js +15 -0
  1246. package/lib/cell-group/CellGroup.d.ts +29 -0
  1247. package/lib/cell-group/CellGroup.js +63 -0
  1248. package/lib/cell-group/index.css +1 -0
  1249. package/lib/cell-group/index.d.ts +27 -0
  1250. package/lib/cell-group/index.js +39 -0
  1251. package/lib/cell-group/style/index.d.ts +1 -0
  1252. package/lib/cell-group/style/index.js +2 -0
  1253. package/lib/cell-group/types.d.ts +10 -0
  1254. package/lib/cell-group/types.js +15 -0
  1255. package/lib/cgn-vant.cjs.js +17472 -0
  1256. package/lib/cgn-vant.es.js +17472 -0
  1257. package/lib/cgn-vant.js +18591 -0
  1258. package/lib/cgn-vant.min.js +6 -0
  1259. package/lib/checkbox/Checkbox.d.ts +68 -0
  1260. package/lib/checkbox/Checkbox.js +118 -0
  1261. package/lib/checkbox/Checker.d.ts +87 -0
  1262. package/lib/checkbox/Checker.js +161 -0
  1263. package/lib/checkbox/index.css +1 -0
  1264. package/lib/checkbox/index.d.ts +54 -0
  1265. package/lib/checkbox/index.js +39 -0
  1266. package/lib/checkbox/style/index.d.ts +1 -0
  1267. package/lib/checkbox/style/index.js +5 -0
  1268. package/lib/checkbox/types.d.ts +24 -0
  1269. package/lib/checkbox/types.js +15 -0
  1270. package/lib/checkbox-group/CheckboxGroup.d.ts +57 -0
  1271. package/lib/checkbox-group/CheckboxGroup.js +91 -0
  1272. package/lib/checkbox-group/index.css +1 -0
  1273. package/lib/checkbox-group/index.d.ts +45 -0
  1274. package/lib/checkbox-group/index.js +39 -0
  1275. package/lib/checkbox-group/style/index.d.ts +1 -0
  1276. package/lib/checkbox-group/style/index.js +2 -0
  1277. package/lib/checkbox-group/types.d.ts +16 -0
  1278. package/lib/checkbox-group/types.js +15 -0
  1279. package/lib/circle/Circle.d.ts +118 -0
  1280. package/lib/circle/Circle.js +171 -0
  1281. package/lib/circle/index.css +1 -0
  1282. package/lib/circle/index.d.ts +88 -0
  1283. package/lib/circle/index.js +39 -0
  1284. package/lib/circle/style/index.d.ts +1 -0
  1285. package/lib/circle/style/index.js +2 -0
  1286. package/lib/circle/types.d.ts +9 -0
  1287. package/lib/circle/types.js +15 -0
  1288. package/lib/col/Col.d.ts +38 -0
  1289. package/lib/col/Col.js +90 -0
  1290. package/lib/col/index.css +1 -0
  1291. package/lib/col/index.d.ts +32 -0
  1292. package/lib/col/index.js +39 -0
  1293. package/lib/col/style/index.d.ts +1 -0
  1294. package/lib/col/style/index.js +3 -0
  1295. package/lib/collapse/Collapse.d.ts +55 -0
  1296. package/lib/collapse/Collapse.js +127 -0
  1297. package/lib/collapse/index.d.ts +36 -0
  1298. package/lib/collapse/index.js +39 -0
  1299. package/lib/collapse/style/index.d.ts +1 -0
  1300. package/lib/collapse/style/index.js +1 -0
  1301. package/lib/collapse-item/CollapseItem.d.ts +141 -0
  1302. package/lib/collapse-item/CollapseItem.js +155 -0
  1303. package/lib/collapse-item/index.css +1 -0
  1304. package/lib/collapse-item/index.d.ts +104 -0
  1305. package/lib/collapse-item/index.js +39 -0
  1306. package/lib/collapse-item/style/index.d.ts +1 -0
  1307. package/lib/collapse-item/style/index.js +5 -0
  1308. package/lib/collapse-item/types.d.ts +15 -0
  1309. package/lib/collapse-item/types.js +15 -0
  1310. package/lib/composables/on-popup-reopen.d.ts +3 -0
  1311. package/lib/composables/on-popup-reopen.js +35 -0
  1312. package/lib/composables/use-expose.d.ts +1 -0
  1313. package/lib/composables/use-expose.js +30 -0
  1314. package/lib/composables/use-global-z-index.d.ts +4 -0
  1315. package/lib/composables/use-global-z-index.js +28 -0
  1316. package/lib/composables/use-height.d.ts +2 -0
  1317. package/lib/composables/use-height.js +43 -0
  1318. package/lib/composables/use-id.d.ts +1 -0
  1319. package/lib/composables/use-id.js +32 -0
  1320. package/lib/composables/use-lazy-render.d.ts +2 -0
  1321. package/lib/composables/use-lazy-render.js +36 -0
  1322. package/lib/composables/use-lock-scroll.d.ts +2 -0
  1323. package/lib/composables/use-lock-scroll.js +77 -0
  1324. package/lib/composables/use-placeholder.d.ts +3 -0
  1325. package/lib/composables/use-placeholder.js +33 -0
  1326. package/lib/composables/use-refs.d.ts +2 -0
  1327. package/lib/composables/use-refs.js +39 -0
  1328. package/lib/composables/use-route.d.ts +13 -0
  1329. package/lib/composables/use-route.js +46 -0
  1330. package/lib/composables/use-scope-id.d.ts +3 -0
  1331. package/lib/composables/use-scope-id.js +28 -0
  1332. package/lib/composables/use-sync-prop-ref.d.ts +2 -0
  1333. package/lib/composables/use-sync-prop-ref.js +37 -0
  1334. package/lib/composables/use-tab-status.d.ts +6 -0
  1335. package/lib/composables/use-tab-status.js +41 -0
  1336. package/lib/composables/use-touch.d.ts +17 -0
  1337. package/lib/composables/use-touch.js +87 -0
  1338. package/lib/composables/use-visibility-change.d.ts +2 -0
  1339. package/lib/composables/use-visibility-change.js +49 -0
  1340. package/lib/config-provider/ConfigProvider.d.ts +71 -0
  1341. package/lib/config-provider/ConfigProvider.js +121 -0
  1342. package/lib/config-provider/index.d.ts +50 -0
  1343. package/lib/config-provider/index.js +39 -0
  1344. package/lib/config-provider/style/index.d.ts +1 -0
  1345. package/lib/config-provider/style/index.js +1 -0
  1346. package/lib/config-provider/types.d.ts +61 -0
  1347. package/lib/config-provider/types.js +15 -0
  1348. package/lib/contact-card/ContactCard.d.ts +47 -0
  1349. package/lib/contact-card/ContactCard.js +65 -0
  1350. package/lib/contact-card/index.css +1 -0
  1351. package/lib/contact-card/index.d.ts +39 -0
  1352. package/lib/contact-card/index.js +39 -0
  1353. package/lib/contact-card/style/index.d.ts +1 -0
  1354. package/lib/contact-card/style/index.js +5 -0
  1355. package/lib/contact-card/types.d.ts +6 -0
  1356. package/lib/contact-card/types.js +15 -0
  1357. package/lib/contact-edit/ContactEdit.d.ts +64 -0
  1358. package/lib/contact-edit/ContactEdit.js +131 -0
  1359. package/lib/contact-edit/index.css +1 -0
  1360. package/lib/contact-edit/index.d.ts +49 -0
  1361. package/lib/contact-edit/index.js +39 -0
  1362. package/lib/contact-edit/style/index.d.ts +1 -0
  1363. package/lib/contact-edit/style/index.js +9 -0
  1364. package/lib/contact-edit/types.d.ts +8 -0
  1365. package/lib/contact-edit/types.js +15 -0
  1366. package/lib/contact-list/ContactList.d.ts +32 -0
  1367. package/lib/contact-list/ContactList.js +108 -0
  1368. package/lib/contact-list/index.css +1 -0
  1369. package/lib/contact-list/index.d.ts +25 -0
  1370. package/lib/contact-list/index.js +39 -0
  1371. package/lib/contact-list/style/index.d.ts +1 -0
  1372. package/lib/contact-list/style/index.js +11 -0
  1373. package/lib/contact-list/types.d.ts +6 -0
  1374. package/lib/contact-list/types.js +15 -0
  1375. package/lib/count-down/CountDown.d.ts +55 -0
  1376. package/lib/count-down/CountDown.js +75 -0
  1377. package/lib/count-down/index.css +1 -0
  1378. package/lib/count-down/index.d.ts +46 -0
  1379. package/lib/count-down/index.js +39 -0
  1380. package/lib/count-down/style/index.d.ts +1 -0
  1381. package/lib/count-down/style/index.js +2 -0
  1382. package/lib/count-down/types.d.ts +16 -0
  1383. package/lib/count-down/types.js +15 -0
  1384. package/lib/count-down/utils.d.ts +2 -0
  1385. package/lib/count-down/utils.js +58 -0
  1386. package/lib/coupon/Coupon.d.ts +45 -0
  1387. package/lib/coupon/Coupon.js +98 -0
  1388. package/lib/coupon/index.css +1 -0
  1389. package/lib/coupon/index.d.ts +35 -0
  1390. package/lib/coupon/index.js +37 -0
  1391. package/lib/coupon/style/index.d.ts +1 -0
  1392. package/lib/coupon/style/index.js +6 -0
  1393. package/lib/coupon/types.d.ts +19 -0
  1394. package/lib/coupon/types.js +15 -0
  1395. package/lib/coupon/utils.d.ts +3 -0
  1396. package/lib/coupon/utils.js +33 -0
  1397. package/lib/coupon-cell/CouponCell.d.ts +78 -0
  1398. package/lib/coupon-cell/CouponCell.js +89 -0
  1399. package/lib/coupon-cell/index.css +1 -0
  1400. package/lib/coupon-cell/index.d.ts +60 -0
  1401. package/lib/coupon-cell/index.js +39 -0
  1402. package/lib/coupon-cell/style/index.d.ts +1 -0
  1403. package/lib/coupon-cell/style/index.js +5 -0
  1404. package/lib/coupon-cell/types.d.ts +3 -0
  1405. package/lib/coupon-cell/types.js +15 -0
  1406. package/lib/coupon-list/CouponList.d.ts +170 -0
  1407. package/lib/coupon-list/CouponList.js +215 -0
  1408. package/lib/coupon-list/index.css +1 -0
  1409. package/lib/coupon-list/index.d.ts +125 -0
  1410. package/lib/coupon-list/index.js +39 -0
  1411. package/lib/coupon-list/style/index.d.ts +1 -0
  1412. package/lib/coupon-list/style/index.js +17 -0
  1413. package/lib/coupon-list/types.d.ts +9 -0
  1414. package/lib/coupon-list/types.js +15 -0
  1415. package/lib/date-picker/DatePicker.d.ts +176 -0
  1416. package/lib/date-picker/DatePicker.js +152 -0
  1417. package/lib/date-picker/index.d.ts +127 -0
  1418. package/lib/date-picker/index.js +39 -0
  1419. package/lib/date-picker/style/index.d.ts +1 -0
  1420. package/lib/date-picker/style/index.js +10 -0
  1421. package/lib/date-picker/utils.d.ts +46 -0
  1422. package/lib/date-picker/utils.js +69 -0
  1423. package/lib/dialog/Dialog.d.ts +207 -0
  1424. package/lib/dialog/Dialog.js +241 -0
  1425. package/lib/dialog/function-call.d.ts +21 -0
  1426. package/lib/dialog/function-call.js +115 -0
  1427. package/lib/dialog/index.css +1 -0
  1428. package/lib/dialog/index.d.ts +152 -0
  1429. package/lib/dialog/index.js +45 -0
  1430. package/lib/dialog/style/index.d.ts +1 -0
  1431. package/lib/dialog/style/index.js +10 -0
  1432. package/lib/dialog/types.d.ts +55 -0
  1433. package/lib/dialog/types.js +15 -0
  1434. package/lib/divider/Divider.d.ts +44 -0
  1435. package/lib/divider/Divider.js +52 -0
  1436. package/lib/divider/index.css +1 -0
  1437. package/lib/divider/index.d.ts +37 -0
  1438. package/lib/divider/index.js +39 -0
  1439. package/lib/divider/style/index.d.ts +1 -0
  1440. package/lib/divider/style/index.js +2 -0
  1441. package/lib/divider/types.d.ts +10 -0
  1442. package/lib/divider/types.js +15 -0
  1443. package/lib/dropdown-item/DropdownItem.d.ts +59 -0
  1444. package/lib/dropdown-item/DropdownItem.js +223 -0
  1445. package/lib/dropdown-item/index.css +1 -0
  1446. package/lib/dropdown-item/index.d.ts +50 -0
  1447. package/lib/dropdown-item/index.js +39 -0
  1448. package/lib/dropdown-item/style/index.d.ts +1 -0
  1449. package/lib/dropdown-item/style/index.js +8 -0
  1450. package/lib/dropdown-item/types.d.ts +27 -0
  1451. package/lib/dropdown-item/types.js +15 -0
  1452. package/lib/dropdown-menu/DropdownMenu.d.ts +89 -0
  1453. package/lib/dropdown-menu/DropdownMenu.js +170 -0
  1454. package/lib/dropdown-menu/index.css +1 -0
  1455. package/lib/dropdown-menu/index.d.ts +68 -0
  1456. package/lib/dropdown-menu/index.js +39 -0
  1457. package/lib/dropdown-menu/style/index.d.ts +1 -0
  1458. package/lib/dropdown-menu/style/index.js +2 -0
  1459. package/lib/dropdown-menu/types.d.ts +29 -0
  1460. package/lib/dropdown-menu/types.js +15 -0
  1461. package/lib/empty/Empty.d.ts +29 -0
  1462. package/lib/empty/Empty.js +362 -0
  1463. package/lib/empty/index.css +1 -0
  1464. package/lib/empty/index.d.ts +26 -0
  1465. package/lib/empty/index.js +39 -0
  1466. package/lib/empty/style/index.d.ts +1 -0
  1467. package/lib/empty/style/index.js +2 -0
  1468. package/lib/empty/types.d.ts +10 -0
  1469. package/lib/empty/types.js +15 -0
  1470. package/lib/field/Field.d.ts +383 -0
  1471. package/lib/field/Field.js +570 -0
  1472. package/lib/field/index.css +1 -0
  1473. package/lib/field/index.d.ts +238 -0
  1474. package/lib/field/index.js +39 -0
  1475. package/lib/field/style/index.d.ts +1 -0
  1476. package/lib/field/style/index.js +5 -0
  1477. package/lib/field/types.d.ts +66 -0
  1478. package/lib/field/types.js +15 -0
  1479. package/lib/field/utils.d.ts +15 -0
  1480. package/lib/field/utils.js +116 -0
  1481. package/lib/floating-bubble/FloatingBubble.d.ts +62 -0
  1482. package/lib/floating-bubble/FloatingBubble.js +202 -0
  1483. package/lib/floating-bubble/index.css +1 -0
  1484. package/lib/floating-bubble/index.d.ts +50 -0
  1485. package/lib/floating-bubble/index.js +39 -0
  1486. package/lib/floating-bubble/style/index.d.ts +1 -0
  1487. package/lib/floating-bubble/style/index.js +4 -0
  1488. package/lib/floating-bubble/types.d.ts +24 -0
  1489. package/lib/floating-bubble/types.js +15 -0
  1490. package/lib/floating-panel/FloatingPanel.d.ts +94 -0
  1491. package/lib/floating-panel/FloatingPanel.js +165 -0
  1492. package/lib/floating-panel/index.css +1 -0
  1493. package/lib/floating-panel/index.d.ts +73 -0
  1494. package/lib/floating-panel/index.js +39 -0
  1495. package/lib/floating-panel/style/index.d.ts +1 -0
  1496. package/lib/floating-panel/style/index.js +2 -0
  1497. package/lib/floating-panel/types.d.ts +9 -0
  1498. package/lib/floating-panel/types.js +15 -0
  1499. package/lib/form/Form.d.ts +94 -0
  1500. package/lib/form/Form.js +187 -0
  1501. package/lib/form/index.d.ts +74 -0
  1502. package/lib/form/index.js +39 -0
  1503. package/lib/form/style/index.d.ts +1 -0
  1504. package/lib/form/style/index.js +1 -0
  1505. package/lib/form/types.d.ts +15 -0
  1506. package/lib/form/types.js +15 -0
  1507. package/lib/grid/Grid.d.ts +74 -0
  1508. package/lib/grid/Grid.js +66 -0
  1509. package/lib/grid/index.css +1 -0
  1510. package/lib/grid/index.d.ts +54 -0
  1511. package/lib/grid/index.js +39 -0
  1512. package/lib/grid/style/index.d.ts +1 -0
  1513. package/lib/grid/style/index.js +2 -0
  1514. package/lib/grid-item/GridItem.d.ts +45 -0
  1515. package/lib/grid-item/GridItem.js +164 -0
  1516. package/lib/grid-item/index.css +1 -0
  1517. package/lib/grid-item/index.d.ts +37 -0
  1518. package/lib/grid-item/index.js +39 -0
  1519. package/lib/grid-item/style/index.d.ts +1 -0
  1520. package/lib/grid-item/style/index.js +5 -0
  1521. package/lib/grid-item/types.d.ts +8 -0
  1522. package/lib/grid-item/types.js +15 -0
  1523. package/lib/highlight/Highlight.d.ts +96 -0
  1524. package/lib/highlight/Highlight.js +147 -0
  1525. package/lib/highlight/index.css +1 -0
  1526. package/lib/highlight/index.d.ts +73 -0
  1527. package/lib/highlight/index.js +39 -0
  1528. package/lib/highlight/style/index.d.ts +1 -0
  1529. package/lib/highlight/style/index.js +2 -0
  1530. package/lib/highlight/types.d.ts +3 -0
  1531. package/lib/highlight/types.js +15 -0
  1532. package/lib/icon/Icon.d.ts +45 -0
  1533. package/lib/icon/Icon.js +78 -0
  1534. package/lib/icon/index.css +1 -0
  1535. package/lib/icon/index.d.ts +36 -0
  1536. package/lib/icon/index.js +39 -0
  1537. package/lib/icon/style/index.d.ts +1 -0
  1538. package/lib/icon/style/index.js +3 -0
  1539. package/lib/image/Image.d.ts +113 -0
  1540. package/lib/image/Image.js +195 -0
  1541. package/lib/image/index.css +1 -0
  1542. package/lib/image/index.d.ts +85 -0
  1543. package/lib/image/index.js +39 -0
  1544. package/lib/image/style/index.d.ts +1 -0
  1545. package/lib/image/style/index.js +4 -0
  1546. package/lib/image/types.d.ts +12 -0
  1547. package/lib/image/types.js +15 -0
  1548. package/lib/image-preview/ImagePreview.d.ts +234 -0
  1549. package/lib/image-preview/ImagePreview.js +225 -0
  1550. package/lib/image-preview/ImagePreviewItem.d.ts +91 -0
  1551. package/lib/image-preview/ImagePreviewItem.js +357 -0
  1552. package/lib/image-preview/function-call.d.ts +6 -0
  1553. package/lib/image-preview/function-call.js +96 -0
  1554. package/lib/image-preview/index.css +1 -0
  1555. package/lib/image-preview/index.d.ts +172 -0
  1556. package/lib/image-preview/index.js +41 -0
  1557. package/lib/image-preview/style/index.d.ts +1 -0
  1558. package/lib/image-preview/style/index.js +10 -0
  1559. package/lib/image-preview/types.d.ts +61 -0
  1560. package/lib/image-preview/types.js +15 -0
  1561. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  1562. package/lib/index-anchor/IndexAnchor.js +106 -0
  1563. package/lib/index-anchor/index.css +1 -0
  1564. package/lib/index-anchor/index.d.ts +14 -0
  1565. package/lib/index-anchor/index.js +39 -0
  1566. package/lib/index-anchor/style/index.d.ts +1 -0
  1567. package/lib/index-anchor/style/index.js +3 -0
  1568. package/lib/index-anchor/types.d.ts +11 -0
  1569. package/lib/index-anchor/types.js +15 -0
  1570. package/lib/index-bar/IndexBar.d.ts +64 -0
  1571. package/lib/index-bar/IndexBar.js +253 -0
  1572. package/lib/index-bar/index.css +1 -0
  1573. package/lib/index-bar/index.d.ts +50 -0
  1574. package/lib/index-bar/index.js +39 -0
  1575. package/lib/index-bar/style/index.d.ts +1 -0
  1576. package/lib/index-bar/style/index.js +2 -0
  1577. package/lib/index-bar/types.d.ts +16 -0
  1578. package/lib/index-bar/types.js +15 -0
  1579. package/lib/index.css +1 -0
  1580. package/lib/index.d.ts +109 -0
  1581. package/lib/index.js +345 -0
  1582. package/lib/lazyload/index.d.ts +3 -0
  1583. package/lib/lazyload/index.js +25 -0
  1584. package/lib/lazyload/style/index.d.ts +1 -0
  1585. package/lib/lazyload/style/index.js +1 -0
  1586. package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
  1587. package/lib/lazyload/vue-lazyload/index.js +65 -0
  1588. package/lib/lazyload/vue-lazyload/lazy-component.js +70 -0
  1589. package/lib/lazyload/vue-lazyload/lazy-container.js +91 -0
  1590. package/lib/lazyload/vue-lazyload/lazy-image.js +118 -0
  1591. package/lib/lazyload/vue-lazyload/lazy.js +455 -0
  1592. package/lib/lazyload/vue-lazyload/listener.js +235 -0
  1593. package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
  1594. package/lib/lazyload/vue-lazyload/util.js +180 -0
  1595. package/lib/list/List.d.ts +91 -0
  1596. package/lib/list/List.js +165 -0
  1597. package/lib/list/index.css +1 -0
  1598. package/lib/list/index.d.ts +72 -0
  1599. package/lib/list/index.js +39 -0
  1600. package/lib/list/style/index.d.ts +1 -0
  1601. package/lib/list/style/index.js +3 -0
  1602. package/lib/list/types.d.ts +13 -0
  1603. package/lib/list/types.js +15 -0
  1604. package/lib/loading/Loading.d.ts +39 -0
  1605. package/lib/loading/Loading.js +89 -0
  1606. package/lib/loading/index.css +1 -0
  1607. package/lib/loading/index.d.ts +33 -0
  1608. package/lib/loading/index.js +39 -0
  1609. package/lib/loading/style/index.d.ts +1 -0
  1610. package/lib/loading/style/index.js +2 -0
  1611. package/lib/loading/types.d.ts +7 -0
  1612. package/lib/loading/types.js +15 -0
  1613. package/lib/locale/index.d.ts +8 -0
  1614. package/lib/locale/index.js +55 -0
  1615. package/lib/locale/lang/ar-SA.d.ts +63 -0
  1616. package/lib/locale/lang/ar-SA.js +84 -0
  1617. package/lib/locale/lang/bg-BG.d.ts +65 -0
  1618. package/lib/locale/lang/bg-BG.js +94 -0
  1619. package/lib/locale/lang/bn-BD.d.ts +63 -0
  1620. package/lib/locale/lang/bn-BD.js +92 -0
  1621. package/lib/locale/lang/da-DK.d.ts +65 -0
  1622. package/lib/locale/lang/da-DK.js +86 -0
  1623. package/lib/locale/lang/de-DE-formal.d.ts +63 -0
  1624. package/lib/locale/lang/de-DE-formal.js +84 -0
  1625. package/lib/locale/lang/de-DE.d.ts +63 -0
  1626. package/lib/locale/lang/de-DE.js +84 -0
  1627. package/lib/locale/lang/el-GR.d.ts +65 -0
  1628. package/lib/locale/lang/el-GR.js +94 -0
  1629. package/lib/locale/lang/en-US.d.ts +63 -0
  1630. package/lib/locale/lang/en-US.js +84 -0
  1631. package/lib/locale/lang/eo-EO.d.ts +63 -0
  1632. package/lib/locale/lang/eo-EO.js +84 -0
  1633. package/lib/locale/lang/es-ES.d.ts +63 -0
  1634. package/lib/locale/lang/es-ES.js +84 -0
  1635. package/lib/locale/lang/fa-IR.d.ts +65 -0
  1636. package/lib/locale/lang/fa-IR.js +94 -0
  1637. package/lib/locale/lang/fr-FR.d.ts +63 -0
  1638. package/lib/locale/lang/fr-FR.js +84 -0
  1639. package/lib/locale/lang/he-IL.d.ts +65 -0
  1640. package/lib/locale/lang/he-IL.js +86 -0
  1641. package/lib/locale/lang/hi-IN.d.ts +63 -0
  1642. package/lib/locale/lang/hi-IN.js +92 -0
  1643. package/lib/locale/lang/id-ID.d.ts +63 -0
  1644. package/lib/locale/lang/id-ID.js +84 -0
  1645. package/lib/locale/lang/is-IS.d.ts +63 -0
  1646. package/lib/locale/lang/is-IS.js +92 -0
  1647. package/lib/locale/lang/it-IT.d.ts +63 -0
  1648. package/lib/locale/lang/it-IT.js +84 -0
  1649. package/lib/locale/lang/ja-JP.d.ts +63 -0
  1650. package/lib/locale/lang/ja-JP.js +84 -0
  1651. package/lib/locale/lang/kk-KZ.d.ts +63 -0
  1652. package/lib/locale/lang/kk-KZ.js +100 -0
  1653. package/lib/locale/lang/km-KH.d.ts +63 -0
  1654. package/lib/locale/lang/km-KH.js +84 -0
  1655. package/lib/locale/lang/ko-KR.d.ts +63 -0
  1656. package/lib/locale/lang/ko-KR.js +92 -0
  1657. package/lib/locale/lang/la-LA.d.ts +63 -0
  1658. package/lib/locale/lang/la-LA.js +84 -0
  1659. package/lib/locale/lang/mm-MN.d.ts +63 -0
  1660. package/lib/locale/lang/mm-MN.js +84 -0
  1661. package/lib/locale/lang/nb-NO.d.ts +63 -0
  1662. package/lib/locale/lang/nb-NO.js +84 -0
  1663. package/lib/locale/lang/nl-NL.d.ts +63 -0
  1664. package/lib/locale/lang/nl-NL.js +84 -0
  1665. package/lib/locale/lang/pl-PL.d.ts +63 -0
  1666. package/lib/locale/lang/pl-PL.js +84 -0
  1667. package/lib/locale/lang/pt-BR.d.ts +63 -0
  1668. package/lib/locale/lang/pt-BR.js +84 -0
  1669. package/lib/locale/lang/ro-RO.d.ts +63 -0
  1670. package/lib/locale/lang/ro-RO.js +84 -0
  1671. package/lib/locale/lang/ru-RU.d.ts +63 -0
  1672. package/lib/locale/lang/ru-RU.js +84 -0
  1673. package/lib/locale/lang/sr-RS.d.ts +63 -0
  1674. package/lib/locale/lang/sr-RS.js +92 -0
  1675. package/lib/locale/lang/sv-SE.d.ts +63 -0
  1676. package/lib/locale/lang/sv-SE.js +84 -0
  1677. package/lib/locale/lang/th-TH.d.ts +63 -0
  1678. package/lib/locale/lang/th-TH.js +84 -0
  1679. package/lib/locale/lang/tr-TR.d.ts +63 -0
  1680. package/lib/locale/lang/tr-TR.js +84 -0
  1681. package/lib/locale/lang/uk-UA.d.ts +63 -0
  1682. package/lib/locale/lang/uk-UA.js +84 -0
  1683. package/lib/locale/lang/vi-VN.d.ts +63 -0
  1684. package/lib/locale/lang/vi-VN.js +92 -0
  1685. package/lib/locale/lang/zh-CN.d.ts +63 -0
  1686. package/lib/locale/lang/zh-CN.js +84 -0
  1687. package/lib/locale/lang/zh-HK.d.ts +63 -0
  1688. package/lib/locale/lang/zh-HK.js +84 -0
  1689. package/lib/locale/lang/zh-TW.d.ts +63 -0
  1690. package/lib/locale/lang/zh-TW.js +84 -0
  1691. package/lib/locale/style/index.d.ts +1 -0
  1692. package/lib/locale/style/index.js +1 -0
  1693. package/lib/nav-bar/NavBar.d.ts +74 -0
  1694. package/lib/nav-bar/NavBar.js +124 -0
  1695. package/lib/nav-bar/index.css +1 -0
  1696. package/lib/nav-bar/index.d.ts +60 -0
  1697. package/lib/nav-bar/index.js +39 -0
  1698. package/lib/nav-bar/style/index.d.ts +1 -0
  1699. package/lib/nav-bar/style/index.js +4 -0
  1700. package/lib/nav-bar/types.d.ts +10 -0
  1701. package/lib/nav-bar/types.js +15 -0
  1702. package/lib/notice-bar/NoticeBar.d.ts +71 -0
  1703. package/lib/notice-bar/NoticeBar.js +184 -0
  1704. package/lib/notice-bar/index.css +1 -0
  1705. package/lib/notice-bar/index.d.ts +57 -0
  1706. package/lib/notice-bar/index.js +39 -0
  1707. package/lib/notice-bar/style/index.d.ts +1 -0
  1708. package/lib/notice-bar/style/index.js +4 -0
  1709. package/lib/notice-bar/types.d.ts +18 -0
  1710. package/lib/notice-bar/types.js +15 -0
  1711. package/lib/notify/Notify.d.ts +137 -0
  1712. package/lib/notify/Notify.js +61 -0
  1713. package/lib/notify/function-call.d.ts +18 -0
  1714. package/lib/notify/function-call.js +97 -0
  1715. package/lib/notify/index.css +1 -0
  1716. package/lib/notify/index.d.ts +102 -0
  1717. package/lib/notify/index.js +44 -0
  1718. package/lib/notify/style/index.d.ts +1 -0
  1719. package/lib/notify/style/index.js +6 -0
  1720. package/lib/notify/types.d.ts +30 -0
  1721. package/lib/notify/types.js +15 -0
  1722. package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
  1723. package/lib/number-keyboard/NumberKeyboard.js +264 -0
  1724. package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  1725. package/lib/number-keyboard/NumberKeyboardKey.js +112 -0
  1726. package/lib/number-keyboard/index.css +1 -0
  1727. package/lib/number-keyboard/index.d.ts +121 -0
  1728. package/lib/number-keyboard/index.js +39 -0
  1729. package/lib/number-keyboard/style/index.d.ts +1 -0
  1730. package/lib/number-keyboard/style/index.js +3 -0
  1731. package/lib/number-keyboard/types.d.ts +17 -0
  1732. package/lib/number-keyboard/types.js +15 -0
  1733. package/lib/overlay/Overlay.d.ts +54 -0
  1734. package/lib/overlay/Overlay.js +86 -0
  1735. package/lib/overlay/index.css +1 -0
  1736. package/lib/overlay/index.d.ts +44 -0
  1737. package/lib/overlay/index.js +39 -0
  1738. package/lib/overlay/style/index.d.ts +1 -0
  1739. package/lib/overlay/style/index.js +2 -0
  1740. package/lib/overlay/types.d.ts +4 -0
  1741. package/lib/overlay/types.js +15 -0
  1742. package/lib/pagination/Pagination.d.ts +127 -0
  1743. package/lib/pagination/Pagination.js +173 -0
  1744. package/lib/pagination/index.css +1 -0
  1745. package/lib/pagination/index.d.ts +95 -0
  1746. package/lib/pagination/index.js +39 -0
  1747. package/lib/pagination/style/index.d.ts +1 -0
  1748. package/lib/pagination/style/index.js +2 -0
  1749. package/lib/pagination/types.d.ts +11 -0
  1750. package/lib/pagination/types.js +15 -0
  1751. package/lib/password-input/PasswordInput.d.ts +63 -0
  1752. package/lib/password-input/PasswordInput.js +97 -0
  1753. package/lib/password-input/index.css +1 -0
  1754. package/lib/password-input/index.d.ts +51 -0
  1755. package/lib/password-input/index.js +39 -0
  1756. package/lib/password-input/style/index.d.ts +1 -0
  1757. package/lib/password-input/style/index.js +2 -0
  1758. package/lib/password-input/types.d.ts +17 -0
  1759. package/lib/password-input/types.js +15 -0
  1760. package/lib/picker/Picker.d.ts +164 -0
  1761. package/lib/picker/Picker.js +248 -0
  1762. package/lib/picker/PickerColumn.d.ts +61 -0
  1763. package/lib/picker/PickerColumn.js +222 -0
  1764. package/lib/picker/PickerToolbar.d.ts +21 -0
  1765. package/lib/picker/PickerToolbar.js +85 -0
  1766. package/lib/picker/index.css +1 -0
  1767. package/lib/picker/index.d.ts +105 -0
  1768. package/lib/picker/index.js +39 -0
  1769. package/lib/picker/style/index.d.ts +1 -0
  1770. package/lib/picker/style/index.js +10 -0
  1771. package/lib/picker/types.d.ts +62 -0
  1772. package/lib/picker/types.js +15 -0
  1773. package/lib/picker/utils.d.ts +13 -0
  1774. package/lib/picker/utils.js +97 -0
  1775. package/lib/picker-group/PickerGroup.d.ts +69 -0
  1776. package/lib/picker-group/PickerGroup.js +110 -0
  1777. package/lib/picker-group/index.css +1 -0
  1778. package/lib/picker-group/index.d.ts +55 -0
  1779. package/lib/picker-group/index.js +39 -0
  1780. package/lib/picker-group/style/index.d.ts +1 -0
  1781. package/lib/picker-group/style/index.js +9 -0
  1782. package/lib/picker-group/types.d.ts +3 -0
  1783. package/lib/picker-group/types.js +15 -0
  1784. package/lib/popover/Popover.d.ts +177 -0
  1785. package/lib/popover/Popover.js +216 -0
  1786. package/lib/popover/index.css +1 -0
  1787. package/lib/popover/index.d.ts +130 -0
  1788. package/lib/popover/index.js +39 -0
  1789. package/lib/popover/style/index.d.ts +1 -0
  1790. package/lib/popover/style/index.js +6 -0
  1791. package/lib/popover/types.d.ts +27 -0
  1792. package/lib/popover/types.js +15 -0
  1793. package/lib/popup/Popup.d.ts +172 -0
  1794. package/lib/popup/Popup.js +240 -0
  1795. package/lib/popup/index.css +1 -0
  1796. package/lib/popup/index.d.ts +129 -0
  1797. package/lib/popup/index.js +39 -0
  1798. package/lib/popup/shared.d.ts +32 -0
  1799. package/lib/popup/shared.js +55 -0
  1800. package/lib/popup/style/index.d.ts +1 -0
  1801. package/lib/popup/style/index.js +5 -0
  1802. package/lib/popup/types.d.ts +17 -0
  1803. package/lib/popup/types.js +15 -0
  1804. package/lib/progress/Progress.d.ts +61 -0
  1805. package/lib/progress/Progress.js +98 -0
  1806. package/lib/progress/index.css +1 -0
  1807. package/lib/progress/index.d.ts +49 -0
  1808. package/lib/progress/index.js +39 -0
  1809. package/lib/progress/style/index.d.ts +1 -0
  1810. package/lib/progress/style/index.js +2 -0
  1811. package/lib/progress/types.d.ts +14 -0
  1812. package/lib/progress/types.js +15 -0
  1813. package/lib/pull-refresh/PullRefresh.d.ts +75 -0
  1814. package/lib/pull-refresh/PullRefresh.js +212 -0
  1815. package/lib/pull-refresh/index.css +1 -0
  1816. package/lib/pull-refresh/index.d.ts +60 -0
  1817. package/lib/pull-refresh/index.js +39 -0
  1818. package/lib/pull-refresh/style/index.d.ts +1 -0
  1819. package/lib/pull-refresh/style/index.js +3 -0
  1820. package/lib/pull-refresh/types.d.ts +6 -0
  1821. package/lib/pull-refresh/types.js +15 -0
  1822. package/lib/radio/Radio.d.ts +43 -0
  1823. package/lib/radio/Radio.js +73 -0
  1824. package/lib/radio/index.css +1 -0
  1825. package/lib/radio/index.d.ts +35 -0
  1826. package/lib/radio/index.js +39 -0
  1827. package/lib/radio/style/index.d.ts +1 -0
  1828. package/lib/radio/style/index.js +6 -0
  1829. package/lib/radio/types.d.ts +12 -0
  1830. package/lib/radio/types.js +15 -0
  1831. package/lib/radio-group/RadioGroup.d.ts +39 -0
  1832. package/lib/radio-group/RadioGroup.js +64 -0
  1833. package/lib/radio-group/index.css +1 -0
  1834. package/lib/radio-group/index.d.ts +28 -0
  1835. package/lib/radio-group/index.js +39 -0
  1836. package/lib/radio-group/style/index.d.ts +1 -0
  1837. package/lib/radio-group/style/index.js +2 -0
  1838. package/lib/rate/Rate.d.ts +111 -0
  1839. package/lib/rate/Rate.js +243 -0
  1840. package/lib/rate/index.css +1 -0
  1841. package/lib/rate/index.d.ts +85 -0
  1842. package/lib/rate/index.js +39 -0
  1843. package/lib/rate/style/index.d.ts +1 -0
  1844. package/lib/rate/style/index.js +4 -0
  1845. package/lib/rate/types.d.ts +7 -0
  1846. package/lib/rate/types.js +15 -0
  1847. package/lib/rolling-text/RollingText.d.ts +104 -0
  1848. package/lib/rolling-text/RollingText.js +123 -0
  1849. package/lib/rolling-text/RollingTextItem.d.ts +67 -0
  1850. package/lib/rolling-text/RollingTextItem.js +65 -0
  1851. package/lib/rolling-text/index.css +1 -0
  1852. package/lib/rolling-text/index.d.ts +79 -0
  1853. package/lib/rolling-text/index.js +39 -0
  1854. package/lib/rolling-text/style/index.d.ts +1 -0
  1855. package/lib/rolling-text/style/index.js +2 -0
  1856. package/lib/rolling-text/types.d.ts +17 -0
  1857. package/lib/rolling-text/types.js +15 -0
  1858. package/lib/row/Row.d.ts +68 -0
  1859. package/lib/row/Row.js +140 -0
  1860. package/lib/row/index.css +1 -0
  1861. package/lib/row/index.d.ts +43 -0
  1862. package/lib/row/index.js +39 -0
  1863. package/lib/row/style/index.d.ts +1 -0
  1864. package/lib/row/style/index.js +2 -0
  1865. package/lib/search/Search.d.ts +234 -0
  1866. package/lib/search/Search.js +141 -0
  1867. package/lib/search/index.css +1 -0
  1868. package/lib/search/index.d.ts +171 -0
  1869. package/lib/search/index.js +39 -0
  1870. package/lib/search/style/index.d.ts +1 -0
  1871. package/lib/search/style/index.js +6 -0
  1872. package/lib/search/types.d.ts +21 -0
  1873. package/lib/search/types.js +15 -0
  1874. package/lib/share-sheet/ShareSheet.d.ts +165 -0
  1875. package/lib/share-sheet/ShareSheet.js +142 -0
  1876. package/lib/share-sheet/index.css +1 -0
  1877. package/lib/share-sheet/index.d.ts +117 -0
  1878. package/lib/share-sheet/index.js +39 -0
  1879. package/lib/share-sheet/style/index.d.ts +1 -0
  1880. package/lib/share-sheet/style/index.js +6 -0
  1881. package/lib/share-sheet/types.d.ts +17 -0
  1882. package/lib/share-sheet/types.js +15 -0
  1883. package/lib/sidebar/Sidebar.d.ts +30 -0
  1884. package/lib/sidebar/Sidebar.js +63 -0
  1885. package/lib/sidebar/index.css +1 -0
  1886. package/lib/sidebar/index.d.ts +25 -0
  1887. package/lib/sidebar/index.js +39 -0
  1888. package/lib/sidebar/style/index.d.ts +1 -0
  1889. package/lib/sidebar/style/index.js +2 -0
  1890. package/lib/sidebar/types.d.ts +3 -0
  1891. package/lib/sidebar/types.js +15 -0
  1892. package/lib/sidebar-item/SidebarItem.d.ts +42 -0
  1893. package/lib/sidebar-item/SidebarItem.js +91 -0
  1894. package/lib/sidebar-item/index.css +1 -0
  1895. package/lib/sidebar-item/index.d.ts +36 -0
  1896. package/lib/sidebar-item/index.js +39 -0
  1897. package/lib/sidebar-item/style/index.d.ts +1 -0
  1898. package/lib/sidebar-item/style/index.js +4 -0
  1899. package/lib/sidebar-item/types.d.ts +15 -0
  1900. package/lib/sidebar-item/types.js +15 -0
  1901. package/lib/signature/Signature.d.ts +76 -0
  1902. package/lib/signature/Signature.js +180 -0
  1903. package/lib/signature/index.css +1 -0
  1904. package/lib/signature/index.d.ts +60 -0
  1905. package/lib/signature/index.js +37 -0
  1906. package/lib/signature/style/index.d.ts +1 -0
  1907. package/lib/signature/style/index.js +6 -0
  1908. package/lib/signature/types.d.ts +14 -0
  1909. package/lib/signature/types.js +15 -0
  1910. package/lib/skeleton/Skeleton.d.ts +96 -0
  1911. package/lib/skeleton/Skeleton.js +118 -0
  1912. package/lib/skeleton/index.css +1 -0
  1913. package/lib/skeleton/index.d.ts +73 -0
  1914. package/lib/skeleton/index.js +39 -0
  1915. package/lib/skeleton/style/index.d.ts +1 -0
  1916. package/lib/skeleton/style/index.js +5 -0
  1917. package/lib/skeleton/types.d.ts +11 -0
  1918. package/lib/skeleton/types.js +15 -0
  1919. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +26 -0
  1920. package/lib/skeleton-avatar/SkeletonAvatar.js +40 -0
  1921. package/lib/skeleton-avatar/index.css +1 -0
  1922. package/lib/skeleton-avatar/index.d.ts +23 -0
  1923. package/lib/skeleton-avatar/index.js +39 -0
  1924. package/lib/skeleton-avatar/style/index.d.ts +1 -0
  1925. package/lib/skeleton-avatar/style/index.js +2 -0
  1926. package/lib/skeleton-image/SkeletonImage.d.ts +26 -0
  1927. package/lib/skeleton-image/SkeletonImage.js +44 -0
  1928. package/lib/skeleton-image/index.css +1 -0
  1929. package/lib/skeleton-image/index.d.ts +23 -0
  1930. package/lib/skeleton-image/index.js +39 -0
  1931. package/lib/skeleton-image/style/index.d.ts +1 -0
  1932. package/lib/skeleton-image/style/index.js +4 -0
  1933. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +27 -0
  1934. package/lib/skeleton-paragraph/SkeletonParagraph.js +49 -0
  1935. package/lib/skeleton-paragraph/index.css +1 -0
  1936. package/lib/skeleton-paragraph/index.d.ts +24 -0
  1937. package/lib/skeleton-paragraph/index.js +40 -0
  1938. package/lib/skeleton-paragraph/style/index.d.ts +1 -0
  1939. package/lib/skeleton-paragraph/style/index.js +2 -0
  1940. package/lib/skeleton-title/SkeletonTitle.d.ts +16 -0
  1941. package/lib/skeleton-title/SkeletonTitle.js +44 -0
  1942. package/lib/skeleton-title/index.css +1 -0
  1943. package/lib/skeleton-title/index.d.ts +17 -0
  1944. package/lib/skeleton-title/index.js +39 -0
  1945. package/lib/skeleton-title/style/index.d.ts +1 -0
  1946. package/lib/skeleton-title/style/index.js +2 -0
  1947. package/lib/slider/Slider.d.ts +100 -0
  1948. package/lib/slider/Slider.js +305 -0
  1949. package/lib/slider/index.css +1 -0
  1950. package/lib/slider/index.d.ts +77 -0
  1951. package/lib/slider/index.js +39 -0
  1952. package/lib/slider/style/index.d.ts +1 -0
  1953. package/lib/slider/style/index.js +2 -0
  1954. package/lib/slider/types.d.ts +11 -0
  1955. package/lib/slider/types.js +15 -0
  1956. package/lib/space/Space.d.ts +48 -0
  1957. package/lib/space/Space.js +106 -0
  1958. package/lib/space/index.css +1 -0
  1959. package/lib/space/index.d.ts +38 -0
  1960. package/lib/space/index.js +39 -0
  1961. package/lib/space/style/index.d.ts +1 -0
  1962. package/lib/space/style/index.js +2 -0
  1963. package/lib/step/Step.d.ts +2 -0
  1964. package/lib/step/Step.js +136 -0
  1965. package/lib/step/index.css +1 -0
  1966. package/lib/step/index.d.ts +8 -0
  1967. package/lib/step/index.js +37 -0
  1968. package/lib/step/style/index.d.ts +1 -0
  1969. package/lib/step/style/index.js +5 -0
  1970. package/lib/step/types.d.ts +13 -0
  1971. package/lib/step/types.js +15 -0
  1972. package/lib/stepper/Stepper.d.ts +194 -0
  1973. package/lib/stepper/Stepper.js +270 -0
  1974. package/lib/stepper/index.css +1 -0
  1975. package/lib/stepper/index.d.ts +143 -0
  1976. package/lib/stepper/index.js +39 -0
  1977. package/lib/stepper/style/index.d.ts +1 -0
  1978. package/lib/stepper/style/index.js +2 -0
  1979. package/lib/stepper/types.d.ts +15 -0
  1980. package/lib/stepper/types.js +15 -0
  1981. package/lib/steps/Steps.d.ts +71 -0
  1982. package/lib/steps/Steps.js +65 -0
  1983. package/lib/steps/index.css +1 -0
  1984. package/lib/steps/index.d.ts +52 -0
  1985. package/lib/steps/index.js +39 -0
  1986. package/lib/steps/style/index.d.ts +1 -0
  1987. package/lib/steps/style/index.js +2 -0
  1988. package/lib/steps/types.d.ts +3 -0
  1989. package/lib/steps/types.js +15 -0
  1990. package/lib/sticky/Sticky.d.ts +58 -0
  1991. package/lib/sticky/Sticky.js +157 -0
  1992. package/lib/sticky/index.css +1 -0
  1993. package/lib/sticky/index.d.ts +47 -0
  1994. package/lib/sticky/index.js +39 -0
  1995. package/lib/sticky/style/index.d.ts +1 -0
  1996. package/lib/sticky/style/index.js +2 -0
  1997. package/lib/sticky/types.d.ts +3 -0
  1998. package/lib/sticky/types.js +15 -0
  1999. package/lib/style/animation.css +1 -0
  2000. package/lib/style/base.css +1 -0
  2001. package/lib/style/css-variables.css +1 -0
  2002. package/lib/style/mixins/clearfix.css +0 -0
  2003. package/lib/style/mixins/ellipsis.css +0 -0
  2004. package/lib/style/mixins/hairline.css +0 -0
  2005. package/lib/style/normalize.css +1 -0
  2006. package/lib/submit-bar/SubmitBar.d.ts +101 -0
  2007. package/lib/submit-bar/SubmitBar.js +134 -0
  2008. package/lib/submit-bar/index.css +1 -0
  2009. package/lib/submit-bar/index.d.ts +76 -0
  2010. package/lib/submit-bar/index.js +39 -0
  2011. package/lib/submit-bar/style/index.d.ts +1 -0
  2012. package/lib/submit-bar/style/index.js +6 -0
  2013. package/lib/submit-bar/types.d.ts +20 -0
  2014. package/lib/submit-bar/types.js +15 -0
  2015. package/lib/swipe/Swipe.d.ts +123 -0
  2016. package/lib/swipe/Swipe.js +394 -0
  2017. package/lib/swipe/index.css +1 -0
  2018. package/lib/swipe/index.d.ts +93 -0
  2019. package/lib/swipe/index.js +39 -0
  2020. package/lib/swipe/style/index.d.ts +1 -0
  2021. package/lib/swipe/style/index.js +2 -0
  2022. package/lib/swipe/types.d.ts +39 -0
  2023. package/lib/swipe/types.js +15 -0
  2024. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  2025. package/lib/swipe-cell/SwipeCell.js +193 -0
  2026. package/lib/swipe-cell/index.css +1 -0
  2027. package/lib/swipe-cell/index.d.ts +39 -0
  2028. package/lib/swipe-cell/index.js +39 -0
  2029. package/lib/swipe-cell/style/index.d.ts +1 -0
  2030. package/lib/swipe-cell/style/index.js +2 -0
  2031. package/lib/swipe-cell/types.d.ts +9 -0
  2032. package/lib/swipe-cell/types.js +15 -0
  2033. package/lib/swipe-item/SwipeItem.d.ts +2 -0
  2034. package/lib/swipe-item/SwipeItem.js +100 -0
  2035. package/lib/swipe-item/index.css +1 -0
  2036. package/lib/swipe-item/index.d.ts +7 -0
  2037. package/lib/swipe-item/index.js +37 -0
  2038. package/lib/swipe-item/style/index.d.ts +1 -0
  2039. package/lib/swipe-item/style/index.js +3 -0
  2040. package/lib/switch/Switch.d.ts +58 -0
  2041. package/lib/switch/Switch.js +104 -0
  2042. package/lib/switch/index.css +1 -0
  2043. package/lib/switch/index.d.ts +48 -0
  2044. package/lib/switch/index.js +39 -0
  2045. package/lib/switch/style/index.d.ts +1 -0
  2046. package/lib/switch/style/index.js +3 -0
  2047. package/lib/switch/types.d.ts +12 -0
  2048. package/lib/switch/types.js +15 -0
  2049. package/lib/tab/Tab.d.ts +58 -0
  2050. package/lib/tab/Tab.js +173 -0
  2051. package/lib/tab/TabTitle.d.ts +44 -0
  2052. package/lib/tab/TabTitle.js +109 -0
  2053. package/lib/tab/index.css +1 -0
  2054. package/lib/tab/index.d.ts +47 -0
  2055. package/lib/tab/index.js +42 -0
  2056. package/lib/tab/style/index.d.ts +1 -0
  2057. package/lib/tab/style/index.js +7 -0
  2058. package/lib/tabbar/Tabbar.d.ts +90 -0
  2059. package/lib/tabbar/Tabbar.js +103 -0
  2060. package/lib/tabbar/index.css +1 -0
  2061. package/lib/tabbar/index.d.ts +66 -0
  2062. package/lib/tabbar/index.js +39 -0
  2063. package/lib/tabbar/style/index.d.ts +1 -0
  2064. package/lib/tabbar/style/index.js +2 -0
  2065. package/lib/tabbar/types.d.ts +5 -0
  2066. package/lib/tabbar/types.js +15 -0
  2067. package/lib/tabbar-item/TabbarItem.d.ts +44 -0
  2068. package/lib/tabbar-item/TabbarItem.js +139 -0
  2069. package/lib/tabbar-item/index.css +1 -0
  2070. package/lib/tabbar-item/index.d.ts +37 -0
  2071. package/lib/tabbar-item/index.js +39 -0
  2072. package/lib/tabbar-item/style/index.d.ts +1 -0
  2073. package/lib/tabbar-item/style/index.js +5 -0
  2074. package/lib/tabbar-item/types.d.ts +9 -0
  2075. package/lib/tabbar-item/types.js +15 -0
  2076. package/lib/tabs/Tabs.d.ts +167 -0
  2077. package/lib/tabs/Tabs.js +385 -0
  2078. package/lib/tabs/TabsContent.d.ts +43 -0
  2079. package/lib/tabs/TabsContent.js +86 -0
  2080. package/lib/tabs/index.css +1 -0
  2081. package/lib/tabs/index.d.ts +124 -0
  2082. package/lib/tabs/index.js +39 -0
  2083. package/lib/tabs/style/index.d.ts +1 -0
  2084. package/lib/tabs/style/index.js +4 -0
  2085. package/lib/tabs/types.d.ts +39 -0
  2086. package/lib/tabs/types.js +15 -0
  2087. package/lib/tabs/utils.d.ts +3 -0
  2088. package/lib/tabs/utils.js +68 -0
  2089. package/lib/tag/Tag.d.ts +63 -0
  2090. package/lib/tag/Tag.js +97 -0
  2091. package/lib/tag/index.css +1 -0
  2092. package/lib/tag/index.d.ts +51 -0
  2093. package/lib/tag/index.js +39 -0
  2094. package/lib/tag/style/index.d.ts +1 -0
  2095. package/lib/tag/style/index.js +4 -0
  2096. package/lib/tag/types.d.ts +20 -0
  2097. package/lib/tag/types.js +15 -0
  2098. package/lib/text-ellipsis/TextEllipsis.d.ts +89 -0
  2099. package/lib/text-ellipsis/TextEllipsis.js +186 -0
  2100. package/lib/text-ellipsis/index.css +1 -0
  2101. package/lib/text-ellipsis/index.d.ts +69 -0
  2102. package/lib/text-ellipsis/index.js +39 -0
  2103. package/lib/text-ellipsis/style/index.d.ts +1 -0
  2104. package/lib/text-ellipsis/style/index.js +2 -0
  2105. package/lib/text-ellipsis/types.d.ts +9 -0
  2106. package/lib/text-ellipsis/types.js +15 -0
  2107. package/lib/time-picker/TimePicker.d.ts +246 -0
  2108. package/lib/time-picker/TimePicker.js +157 -0
  2109. package/lib/time-picker/index.d.ts +175 -0
  2110. package/lib/time-picker/index.js +39 -0
  2111. package/lib/time-picker/style/index.d.ts +1 -0
  2112. package/lib/time-picker/style/index.js +10 -0
  2113. package/lib/toast/Toast.d.ts +118 -0
  2114. package/lib/toast/Toast.js +146 -0
  2115. package/lib/toast/function-call.d.ts +36 -0
  2116. package/lib/toast/function-call.js +170 -0
  2117. package/lib/toast/index.css +1 -0
  2118. package/lib/toast/index.d.ts +89 -0
  2119. package/lib/toast/index.js +48 -0
  2120. package/lib/toast/lock-click.d.ts +1 -0
  2121. package/lib/toast/lock-click.js +36 -0
  2122. package/lib/toast/style/index.d.ts +1 -0
  2123. package/lib/toast/style/index.js +7 -0
  2124. package/lib/toast/types.d.ts +56 -0
  2125. package/lib/toast/types.js +15 -0
  2126. package/lib/tree-select/TreeSelect.d.ts +106 -0
  2127. package/lib/tree-select/TreeSelect.js +122 -0
  2128. package/lib/tree-select/index.css +1 -0
  2129. package/lib/tree-select/index.d.ts +72 -0
  2130. package/lib/tree-select/index.js +39 -0
  2131. package/lib/tree-select/style/index.d.ts +1 -0
  2132. package/lib/tree-select/style/index.js +6 -0
  2133. package/lib/tree-select/types.d.ts +10 -0
  2134. package/lib/tree-select/types.js +15 -0
  2135. package/lib/uploader/Uploader.d.ts +217 -0
  2136. package/lib/uploader/Uploader.js +301 -0
  2137. package/lib/uploader/UploaderPreviewItem.d.ts +40 -0
  2138. package/lib/uploader/UploaderPreviewItem.js +149 -0
  2139. package/lib/uploader/index.css +1 -0
  2140. package/lib/uploader/index.d.ts +159 -0
  2141. package/lib/uploader/index.js +39 -0
  2142. package/lib/uploader/style/index.d.ts +1 -0
  2143. package/lib/uploader/style/index.js +11 -0
  2144. package/lib/uploader/types.d.ts +61 -0
  2145. package/lib/uploader/types.js +15 -0
  2146. package/lib/uploader/utils.d.ts +11 -0
  2147. package/lib/uploader/utils.js +88 -0
  2148. package/lib/utils/basic.d.ts +30 -0
  2149. package/lib/utils/basic.js +75 -0
  2150. package/lib/utils/closest.d.ts +1 -0
  2151. package/lib/utils/closest.js +27 -0
  2152. package/lib/utils/constant.d.ts +14 -0
  2153. package/lib/utils/constant.js +45 -0
  2154. package/lib/utils/create.d.ts +17 -0
  2155. package/lib/utils/create.js +81 -0
  2156. package/lib/utils/deep-assign.d.ts +3 -0
  2157. package/lib/utils/deep-assign.js +41 -0
  2158. package/lib/utils/deep-clone.d.ts +1 -0
  2159. package/lib/utils/deep-clone.js +39 -0
  2160. package/lib/utils/dom.d.ts +13 -0
  2161. package/lib/utils/dom.js +103 -0
  2162. package/lib/utils/format.d.ts +13 -0
  2163. package/lib/utils/format.js +139 -0
  2164. package/lib/utils/index.d.ts +9 -0
  2165. package/lib/utils/index.js +25 -0
  2166. package/lib/utils/interceptor.d.ts +7 -0
  2167. package/lib/utils/interceptor.js +48 -0
  2168. package/lib/utils/mount-component.d.ts +14 -0
  2169. package/lib/utils/mount-component.js +58 -0
  2170. package/lib/utils/props.d.ts +31 -0
  2171. package/lib/utils/props.js +55 -0
  2172. package/lib/utils/with-install.d.ts +13 -0
  2173. package/lib/utils/with-install.js +33 -0
  2174. package/lib/vue-sfc-shim.d.ts +6 -0
  2175. package/lib/vue-tsx-shim.d.ts +24 -0
  2176. package/lib/watermark/Watermark.d.ts +112 -0
  2177. package/lib/watermark/Watermark.js +151 -0
  2178. package/lib/watermark/index.css +1 -0
  2179. package/lib/watermark/index.d.ts +84 -0
  2180. package/lib/watermark/index.js +39 -0
  2181. package/lib/watermark/style/index.d.ts +1 -0
  2182. package/lib/watermark/style/index.js +2 -0
  2183. package/lib/watermark/types.d.ts +3 -0
  2184. package/lib/watermark/types.js +15 -0
  2185. package/lib/web-types.json +1 -0
  2186. package/package.json +63 -0
@@ -0,0 +1,6 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["cgn-vant"]={},e.Vue)}(this,function(e,t){"use strict";function o(){}const a=Object.assign,n="undefined"!=typeof window,l=e=>null!==e&&"object"==typeof e,r=e=>null!=e,i=e=>"function"==typeof e,s=e=>l(e)&&i(e.then)&&i(e.catch),c=e=>"[object Date]"===Object.prototype.toString.call(e)&&!Number.isNaN(e.getTime());function d(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}const u=e=>"number"==typeof e||/^\d+(\.\d+)?$/.test(e);function p(e,t){const o=t.split(".");let a=e;return o.forEach(e=>{var t;a=l(a)&&null!=(t=a[e])?t:""}),a}function v(e,t,o){return t.reduce((t,a)=>(o&&void 0===e[a]||(t[a]=e[a]),t),{})}const m=(e,t)=>JSON.stringify(e)===JSON.stringify(t),f=e=>Array.isArray(e)?e:[e],h=null,g=[Number,String],b={type:Boolean,default:!0},y=e=>({type:e,required:!0}),w=()=>({type:Array,default:()=>[]}),x=e=>({type:Number,default:e}),V=e=>({type:g,default:e}),N=e=>({type:String,default:e}),C="undefined"!=typeof window;function k(e){return C?requestAnimationFrame(e):-1}function S(e){C&&cancelAnimationFrame(e)}function T(e){k(()=>k(e))}const B=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),P=e=>{const o=t.unref(e);if(o===window){const e=o.innerWidth,t=o.innerHeight;return B(e,t)}return(null==o?void 0:o.getBoundingClientRect)?o.getBoundingClientRect():B(0,0)};function D(e){const o=t.inject(e,null);if(o){const e=t.getCurrentInstance(),{link:a,unlink:n,internalChildren:l}=o;a(e),t.onUnmounted(()=>n(e));return{parent:o,index:t.computed(()=>l.indexOf(e))}}return{parent:null,index:t.ref(-1)}}const O=(e,t)=>{const o=e.indexOf(t);return-1===o?e.findIndex(e=>void 0!==t.key&&null!==t.key&&e.type===t.type&&e.key===t.key):o};function A(e,o,a){const n=function(e){const o=[],a=e=>{Array.isArray(e)&&e.forEach(e=>{var n;t.isVNode(e)&&(o.push(e),(null==(n=e.component)?void 0:n.subTree)&&(o.push(e.component.subTree),a(e.component.subTree.children)),e.children&&a(e.children))})};return a(e),o}(e.subTree.children);a.sort((e,t)=>O(n,e.vnode)-O(n,t.vnode));const l=a.map(e=>e.proxy);o.sort((e,t)=>l.indexOf(e)-l.indexOf(t))}function I(e){const o=t.reactive([]),a=t.reactive([]),n=t.getCurrentInstance();return{children:o,linkChildren:l=>{t.provide(e,Object.assign({link:e=>{e.proxy&&(a.push(e),o.push(e.proxy),A(n,o,a))},unlink:e=>{const t=a.indexOf(e);o.splice(t,1),a.splice(t,1)},children:o,internalChildren:a},l))}}}const z=1e3,E=6e4,$=36e5,L=24*$;function M(e){let o,a,n,l;const r=t.ref(e.time),i=t.computed(()=>{return{total:e=r.value,days:Math.floor(e/L),hours:Math.floor(e%L/$),minutes:Math.floor(e%$/E),seconds:Math.floor(e%E/z),milliseconds:Math.floor(e%z)};var e}),s=()=>{n=!1,S(o)},c=()=>Math.max(a-Date.now(),0),d=t=>{var o,a;(r.value=t,null==(o=e.onChange)||o.call(e,i.value),0===t)&&(s(),null==(a=e.onFinish)||a.call(e))},u=()=>{o=k(()=>{n&&(d(c()),r.value>0&&u())})},p=()=>{o=k(()=>{if(n){const o=c();e=o,t=r.value,(Math.floor(e/1e3)!==Math.floor(t/1e3)||0===o)&&d(o),r.value>0&&p()}var e,t})},v=()=>{C&&(e.millisecond?u():p())};return t.onBeforeUnmount(s),t.onActivated(()=>{l&&(n=!0,l=!1,v())}),t.onDeactivated(()=>{n&&(s(),l=!0)}),{start:()=>{n||(a=Date.now()+r.value,n=!0,v())},pause:s,reset:(t=e.time)=>{s(),r.value=t},current:i}}function F(e){let o;t.onMounted(()=>{e(),t.nextTick(()=>{o=!0})}),t.onActivated(()=>{o&&e()})}function R(e,o,a={}){if(!C)return;const{target:n=window,passive:l=!1,capture:r=!1}=a;let i,s=!1;const c=a=>{if(s)return;const n=t.unref(a);n&&!i&&(n.addEventListener(e,o,{capture:r,passive:l}),i=!0)},d=a=>{if(s)return;const n=t.unref(a);n&&i&&(n.removeEventListener(e,o,r),i=!1)};let u;return t.onUnmounted(()=>d(n)),t.onDeactivated(()=>d(n)),F(()=>c(n)),t.isRef(n)&&(u=t.watch(n,(e,t)=>{d(t),c(e)})),()=>{null==u||u(),d(n),s=!0}}function H(e,o,a={}){if(!C)return;const{eventName:n="click"}=a;R(n,a=>{(Array.isArray(e)?e:[e]).every(e=>{const o=t.unref(e);return o&&!o.contains(a.target)})&&o(a)},{target:document})}let j,W;const U=/scroll|auto|overlay/i,Y=C?window:void 0;function X(e){return"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType}function q(e,t=Y){let o=e;for(;o&&o!==t&&X(o);){const{overflowY:e}=window.getComputedStyle(o);if(U.test(e))return o;o=o.parentNode}return t}function G(e,o=Y){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=q(e.value,o))}),a}let Z;const K=Symbol("van-field");function _(e){const o=t.inject(K,null);o&&!o.customValue.value&&(o.customValue.value=e,t.watch(e,()=>{o.resetValidation(),o.validateWithTrigger("onChange")}))}function J(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function Q(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function ee(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function te(e){Q(window,e),Q(document.body,e)}function oe(e,t){if(e===window)return 0;const o=t?J(t):ee();return P(e).top+o}const ae=!!n&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function ne(){ae&&te(ee())}const le=e=>e.stopPropagation();function re(e,t){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&le(e)}function ie(e){const o=t.unref(e);if(!o)return!1;const a=window.getComputedStyle(o),n="none"===a.display,l=null===o.offsetParent&&"fixed"!==a.position;return n||l}const{width:se,height:ce}=function(){if(!j&&(j=t.ref(0),W=t.ref(0),C)){const e=()=>{j.value=window.innerWidth,W.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:j,height:W}}();function de(e){const t=window.getComputedStyle(e);return"none"!==t.transform||"none"!==t.perspective||["transform","perspective","filter"].some(e=>(t.willChange||"").includes(e))}function ue(e){if(r(e))return u(e)?`${e}px`:String(e)}function pe(e){if(r(e)){if(Array.isArray(e))return{width:ue(e[0]),height:ue(e[1])};const t=ue(e);return{width:t,height:t}}}function ve(e){const t={};return void 0!==e&&(t.zIndex=+e),t}let me;function fe(e){return+(e=e.replace(/rem/g,""))*function(){if(!me){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;me=parseFloat(t)}return me}()}function he(e){if("number"==typeof e)return e;if(n){if(e.includes("rem"))return fe(e);if(e.includes("vw"))return function(e){return+(e=e.replace(/vw/g,""))*se.value/100}(e);if(e.includes("vh"))return function(e){return+(e=e.replace(/vh/g,""))*ce.value/100}(e)}return parseFloat(e)}const ge=/-(\w)/g,be=e=>e.replace(ge,(e,t)=>t.toUpperCase());function ye(e,t=2){let o=e+"";for(;o.length<t;)o="0"+o;return o}const we=(e,t,o)=>Math.min(Math.max(e,t),o);function xe(e,t,o){const a=e.indexOf(t);return-1===a?e:"-"===t&&0!==a?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(o,"")}function Ve(e,t=!0,o=!0){e=t?xe(e,".",/\./g):e.split(".")[0];const a=t?/[^-0-9.]/g:/[^-0-9]/g;return(e=o?xe(e,"-",/-/g):e.replace(/-/,"")).replace(a,"")}function Ne(e,t){const o=10**10;return Math.round((e+t)*o)/o}const{hasOwnProperty:Ce}=Object.prototype;function ke(e,t){return Object.keys(t).forEach(o=>{!function(e,t,o){const a=t[o];r(a)&&(Ce.call(e,o)&&l(a)?e[o]=ke(Object(e[o]),a):e[o]=a)}(e,t,o)}),e}const Se=t.ref("zh-CN"),Te=t.reactive({"zh-CN":{name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}}}),Be={messages:()=>Te[Se.value],use(e,t){Se.value=e,this.add({[e]:t})},add(e={}){ke(Te,e)}};var Pe=Be;function De(e){const t=be(e)+".";return(e,...o)=>{const a=Pe.messages(),n=p(a,t+e)||p(a,e);return i(n)?n(...o):n}}function Oe(e,t){return t?"string"==typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce((t,o)=>t+Oe(e,o),""):Object.keys(t).reduce((o,a)=>o+(t[a]?Oe(e,a):""),""):""}function Ae(e){return(t,o)=>(t&&"string"!=typeof t&&(o=t,t=""),`${t=t?`${e}__${t}`:e}${Oe(t,o)}`)}function Ie(e){const t=`van-${e}`;return[t,Ae(t),De(t)]}const ze="van-hairline",Ee=`${ze}--top`,$e=`${ze}--left`,Le=`${ze}--right`,Me=`${ze}--bottom`,Fe=`${ze}--surround`,Re=`${ze}--top-bottom`,He=`${ze}-unset--top-bottom`,je="van-haptics-feedback",We=Symbol("van-form");function Ue(e,{args:t=[],done:a,canceled:n,error:l}){if(e){const r=e.apply(null,t);s(r)?r.then(e=>{e?a():n&&n()}).catch(l||o):r?a():n&&n()}else a()}function Ye(e){return e.install=t=>{const{name:o}=e;o&&(t.component(o,e),t.component(be(`-${o}`),e))},e}function Xe(e,t){return e.reduce((e,o)=>Math.abs(e-t)<Math.abs(o-t)?e:o)}const qe=Symbol();function Ge(e){const o=t.inject(qe,null);o&&t.watch(o,t=>{t&&e()})}const Ze=(e,o)=>{const a=t.ref(),n=()=>{a.value=P(e).height};return t.onMounted(()=>{if(t.nextTick(n),o)for(let e=1;e<=3;e++)setTimeout(n,100*e)}),Ge(()=>t.nextTick(n)),t.watch([se,ce],n),a};function Ke(e,o){const a=Ze(e,!0);return e=>t.createVNode("div",{class:o("placeholder"),style:{height:a.value?`${a.value}px`:void 0}},[e()])}const[_e,Je]=Ie("action-bar"),Qe=Symbol(_e),et={placeholder:Boolean,safeAreaInsetBottom:b};const tt=Ye(t.defineComponent({name:_e,props:et,setup(e,{slots:o}){const a=t.ref(),n=Ke(a,Je),{linkChildren:l}=I(Qe);l();const r=()=>{var n;return t.createVNode("div",{ref:a,class:[Je(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=o.default)?void 0:n.call(o)])};return()=>e.placeholder?n(r):r()}}));function ot(e){const o=t.getCurrentInstance();o&&a(o.proxy,e)}const at={to:[String,Object],url:String,replace:Boolean};function nt({to:e,url:t,replace:o,$router:a}){e&&a?a[o?"replace":"push"](e):t&&(o?location.replace(t):location.href=t)}function lt(){const e=t.getCurrentInstance().proxy;return()=>nt(e)}const[rt,it]=Ie("badge"),st={dot:Boolean,max:g,tag:N("div"),color:String,offset:Array,content:g,showZero:b,position:N("top-right")};const ct=Ye(t.defineComponent({name:rt,props:st,setup(e,{slots:o}){const a=()=>{if(o.content)return!0;const{content:t,showZero:a}=e;return r(t)&&""!==t&&(a||0!==t&&"0"!==t)},n=()=>{const{dot:t,max:n,content:l}=e;if(!t&&a())return o.content?o.content():r(n)&&u(l)&&+l>+n?`${n}+`:l},l=e=>e.startsWith("-")?e.replace("-",""):`-${e}`,i=t.computed(()=>{const t={background:e.color};if(e.offset){const[a,n]=e.offset,{position:r}=e,[i,s]=r.split("-");o.default?(t[i]="number"==typeof n?ue("top"===i?n:-n):"top"===i?ue(n):l(n),t[s]="number"==typeof a?ue("left"===s?a:-a):"left"===s?ue(a):l(a)):(t.marginTop=ue(n),t.marginLeft=ue(a))}return t}),s=()=>{if(a()||e.dot)return t.createVNode("div",{class:it([e.position,{dot:e.dot,fixed:!!o.default}]),style:i.value},[n()])};return()=>{if(o.default){const{tag:a}=e;return t.createVNode(a,{class:it("wrapper")},{default:()=>[o.default(),s()]})}return s()}}}));let dt=2e3;const[ut,pt]=Ie("config-provider"),vt=Symbol(ut),mt={tag:N("div"),theme:N("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:N("local"),iconPrefix:String};function ft(e={},t={}){Object.keys(e).forEach(o=>{e[o]!==t[o]&&document.documentElement.style.setProperty(o,e[o])}),Object.keys(t).forEach(t=>{e[t]||document.documentElement.style.removeProperty(t)})}var ht=t.defineComponent({name:ut,props:mt,setup(e,{slots:o}){const l=t.computed(()=>function(e){const t={};return Object.keys(e).forEach(o=>{const a=o.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"").replace(/([a-zA-Z])(\d)/g,"$1-$2");t[`--van-${a}`]=e[o]}),t}(a({},e.themeVars,"dark"===e.theme?e.themeVarsDark:e.themeVarsLight)));if(n){const o=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},a=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};t.watch(()=>e.theme,(e,t)=>{t&&a(t),o()},{immediate:!0}),t.onActivated(o),t.onDeactivated(a),t.onBeforeUnmount(a),t.watch(l,(t,o)=>{"global"===e.themeVarsScope&&ft(t,o)}),t.watch(()=>e.themeVarsScope,(e,t)=>{"global"===t&&ft({},l.value),"global"===e&&ft(l.value,{})}),"global"===e.themeVarsScope&&ft(l.value,{})}return t.provide(vt,e),t.watchEffect(()=>{var t;void 0!==e.zIndex&&(t=e.zIndex,dt=t)}),()=>t.createVNode(e.tag,{class:pt(),style:"local"===e.themeVarsScope?l.value:void 0},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}});const[gt,bt]=Ie("icon"),yt={dot:Boolean,tag:N("i"),name:String,size:g,badge:g,color:String,badgeProps:Object,classPrefix:String};const wt=Ye(t.defineComponent({name:gt,props:yt,setup(e,{slots:o}){const a=t.inject(vt,null),n=t.computed(()=>e.classPrefix||(null==a?void 0:a.iconPrefix)||bt());return()=>{const{tag:a,dot:l,name:r,size:i,badge:s,color:c}=e,d=(e=>null==e?void 0:e.includes("/"))(r);return t.createVNode(ct,t.mergeProps({dot:l,tag:a,class:[n.value,d?"":`${n.value}-${r}`],style:{color:c,fontSize:ue(i)},content:s},e.badgeProps),{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o),d&&t.createVNode("img",{class:bt("image"),src:r},null)]}})}}}));var xt=wt;const[Vt,Nt]=Ie("loading"),Ct=Array(12).fill(null).map((e,o)=>t.createVNode("i",{class:Nt("line",String(o+1))},null)),kt=t.createVNode("svg",{class:Nt("circular"),viewBox:"25 25 50 50"},[t.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),St={size:g,type:N("circular"),color:String,vertical:Boolean,textSize:g,textColor:String};const Tt=Ye(t.defineComponent({name:Vt,props:St,setup(e,{slots:o}){const n=t.computed(()=>a({color:e.color},pe(e.size))),l=()=>{const a="spinner"===e.type?Ct:kt;return t.createVNode("span",{class:Nt("spinner",e.type),style:n.value},[o.icon?o.icon():a])},r=()=>{var a;if(o.default)return t.createVNode("span",{class:Nt("text"),style:{fontSize:ue(e.textSize),color:null!=(a=e.textColor)?a:e.color}},[o.default()])};return()=>{const{type:o,vertical:a}=e;return t.createVNode("div",{class:Nt([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[l(),r()])}}})),[Bt,Pt]=Ie("button"),Dt=a({},at,{tag:N("button"),text:String,icon:String,type:N("default"),size:N("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:N("button"),loadingSize:g,loadingText:String,loadingType:String,iconPosition:N("left")});const Ot=Ye(t.defineComponent({name:Bt,props:Dt,emits:["click"],setup(e,{emit:o,slots:a}){const n=lt(),l=()=>e.loading?a.loading?a.loading():t.createVNode(Tt,{size:e.loadingSize,type:e.loadingType,class:Pt("loading")},null):a.icon?t.createVNode("div",{class:Pt("icon")},[a.icon()]):e.icon?t.createVNode(wt,{name:e.icon,class:Pt("icon"),classPrefix:e.iconPrefix},null):void 0,r=()=>{let o;if(o=e.loading?e.loadingText:a.default?a.default():e.text,o)return t.createVNode("span",{class:Pt("text")},[o])},i=()=>{const{color:t,plain:o}=e;if(t){const e={color:o?t:"white"};return o||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},s=t=>{e.loading?re(t):e.disabled||(o("click",t),n())};return()=>{const{tag:o,type:a,size:n,block:c,round:d,plain:u,square:p,loading:v,disabled:m,hairline:f,nativeType:h,iconPosition:g}=e,b=[Pt([a,n,{plain:u,block:c,round:d,square:p,loading:v,disabled:m,hairline:f}]),{[Fe]:f}];return t.createVNode(o,{type:h,class:b,style:i(),disabled:m,onClick:s},{default:()=>[t.createVNode("div",{class:Pt("content")},["left"===g&&l(),r(),"right"===g&&l()])]})}}})),[At,It]=Ie("action-bar-button"),zt=a({},at,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});const Et=Ye(t.defineComponent({name:At,props:zt,setup(e,{slots:o}){const a=lt(),{parent:n,index:l}=D(Qe),r=t.computed(()=>{if(n){const e=n.children[l.value-1];return!(e&&"isButton"in e)}}),i=t.computed(()=>{if(n){const e=n.children[l.value+1];return!(e&&"isButton"in e)}});return ot({isButton:!0}),()=>{const{type:n,icon:l,text:s,color:c,loading:d,disabled:u}=e;return t.createVNode(Ot,{class:It([n,{last:i.value,first:r.value}]),size:"large",type:n,icon:l,color:c,loading:d,disabled:u,onClick:a},{default:()=>[o.default?o.default():s]})}}})),[$t,Lt]=Ie("action-bar-icon"),Mt=a({},at,{dot:Boolean,text:String,icon:String,color:String,badge:g,iconClass:h,badgeProps:Object,iconPrefix:String});const Ft=Ye(t.defineComponent({name:$t,props:Mt,setup(e,{slots:o}){const a=lt();D(Qe);const n=()=>{const{dot:a,badge:n,icon:l,color:r,iconClass:i,badgeProps:s,iconPrefix:c}=e;return o.icon?t.createVNode(ct,t.mergeProps({dot:a,class:Lt("icon"),content:n},s),{default:o.icon}):t.createVNode(wt,{tag:"div",dot:a,name:l,badge:n,color:r,class:[Lt("icon"),i],badgeProps:s,classPrefix:c},null)};return()=>t.createVNode("div",{role:"button",class:Lt(),tabindex:0,onClick:a},[n(),o.default?o.default():e.text])}})),Rt={show:Boolean,zIndex:g,overlay:b,duration:g,teleport:[String,Object],lockScroll:b,lazyRender:b,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:h,transitionAppear:Boolean,closeOnClickOverlay:b},Ht=Object.keys(Rt);function jt(){const e=t.ref(0),o=t.ref(0),a=t.ref(0),n=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(""),s=t.ref(!0),c=()=>{a.value=0,n.value=0,l.value=0,r.value=0,i.value="",s.value=!0};return{move:t=>{const c=t.touches[0];a.value=(c.clientX<0?0:c.clientX)-e.value,n.value=c.clientY-o.value,l.value=Math.abs(a.value),r.value=Math.abs(n.value);var d,u;(!i.value||l.value<10&&r.value<10)&&(i.value=(d=l.value,u=r.value,d>u?"horizontal":u>d?"vertical":"")),s.value&&(l.value>5||r.value>5)&&(s.value=!1)},start:t=>{c(),e.value=t.touches[0].clientX,o.value=t.touches[0].clientY},reset:c,startX:e,startY:o,deltaX:a,deltaY:n,offsetX:l,offsetY:r,direction:i,isVertical:()=>"vertical"===i.value,isHorizontal:()=>"horizontal"===i.value,isTap:s}}let Wt=0;const Ut="van-overflow-hidden";function Yt(e,o){const a=jt(),n=t=>{a.move(t);const o=a.deltaY.value>0?"10":"01",n=q(t.target,e.value),{scrollHeight:l,offsetHeight:r,scrollTop:i}=n;let s="11";0===i?s=r>=l?"00":"01":i+r>=l&&(s="10"),"11"===s||!a.isVertical()||parseInt(s,2)&parseInt(o,2)||re(t,!0)},l=()=>{document.addEventListener("touchstart",a.start),document.addEventListener("touchmove",n,{passive:!1}),Wt||document.body.classList.add(Ut),Wt++},r=()=>{Wt&&(document.removeEventListener("touchstart",a.start),document.removeEventListener("touchmove",n),Wt--,Wt||document.body.classList.remove(Ut))},i=()=>o()&&r();F(()=>o()&&l()),t.onDeactivated(i),t.onBeforeUnmount(i),t.watch(o,e=>{e?l():r()})}function Xt(e){const o=t.ref(!1);return t.watch(e,e=>{e&&(o.value=e)},{immediate:!0}),e=>()=>o.value?e():null}const qt=()=>{var e;const{scopeId:o}=(null==(e=t.getCurrentInstance())?void 0:e.vnode)||{};return o?{[o]:""}:null},[Gt,Zt]=Ie("overlay"),Kt={show:Boolean,zIndex:g,duration:g,className:h,lockScroll:b,lazyRender:b,customStyle:Object,teleport:[String,Object]};const _t=Ye(t.defineComponent({name:Gt,inheritAttrs:!1,props:Kt,setup(e,{attrs:o,slots:n}){const l=t.ref(),i=Xt(()=>e.show||!e.lazyRender)(()=>{var i;const s=a(ve(e.zIndex),e.customStyle);return r(e.duration)&&(s.animationDuration=`${e.duration}s`),t.withDirectives(t.createVNode("div",t.mergeProps({ref:l,style:s,class:[Zt(),e.className]},o),[null==(i=n.default)?void 0:i.call(n)]),[[t.vShow,e.show]])});return R("touchmove",t=>{e.lockScroll&&re(t,!0)},{target:l}),()=>{const o=t.createVNode(t.Transition,{name:"van-fade",appear:!0},{default:i});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[o]}):o}}})),Jt=a({},Rt,{round:Boolean,position:N("center"),closeIcon:N("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:N("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Qt,eo]=Ie("popup");const to=Ye(t.defineComponent({name:Qt,inheritAttrs:!1,props:Jt,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:o,attrs:n,slots:l}){let i,s;const c=t.ref(),d=t.ref(),u=Xt(()=>e.show||!e.lazyRender),p=t.computed(()=>{const t={zIndex:c.value};if(r(e.duration)){t["center"===e.position?"animationDuration":"transitionDuration"]=`${e.duration}s`}return t}),v=()=>{i||(i=!0,c.value=void 0!==e.zIndex?+e.zIndex:++dt,o("open"))},m=()=>{i&&Ue(e.beforeClose,{done(){i=!1,o("close"),o("update:show",!1)}})},f=t=>{o("clickOverlay",t),e.closeOnClickOverlay&&m()},h=()=>{if(e.overlay){const o=a({show:e.show,class:e.overlayClass,zIndex:c.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return t.createVNode(_t,t.mergeProps(o,qt(),{onClick:f}),{default:l["overlay-content"]})}},g=e=>{o("clickCloseIcon",e),m()},b=()=>{if(e.closeable)return t.createVNode(wt,{role:"button",tabindex:0,name:e.closeIcon,class:[eo("close-icon",e.closeIconPosition),je],classPrefix:e.iconPrefix,onClick:g},null)};let y;const w=()=>{y&&clearTimeout(y),y=setTimeout(()=>{o("opened")})},x=()=>o("closed"),V=e=>o("keydown",e),N=u(()=>{var o;const{destroyOnClose:a,round:r,position:i,safeAreaInsetTop:s,safeAreaInsetBottom:c,show:u}=e;if(u||!a)return t.withDirectives(t.createVNode("div",t.mergeProps({ref:d,style:p.value,role:"dialog",tabindex:0,class:[eo({round:r,[i]:i}),{"van-safe-area-top":s,"van-safe-area-bottom":c}],onKeydown:V},n,qt()),[null==(o=l.default)?void 0:o.call(l),b()]),[[t.vShow,u]])}),C=()=>{const{position:o,transition:a,transitionAppear:n}=e,l="center"===o?"van-fade":`van-popup-slide-${o}`;return t.createVNode(t.Transition,{name:a||l,appear:n,onAfterEnter:w,onAfterLeave:x},{default:N})};return t.watch(()=>e.show,e=>{e&&!i&&(v(),0===n.tabindex&&t.nextTick(()=>{var e;null==(e=d.value)||e.focus()})),!e&&i&&(i=!1,o("close"))}),ot({popupRef:d}),Yt(d,()=>e.show&&e.lockScroll),R("popstate",()=>{e.closeOnPopstate&&(m(),s=!1)}),t.onMounted(()=>{e.show&&v()}),t.onActivated(()=>{s&&(o("update:show",!0),s=!1)}),t.onDeactivated(()=>{e.show&&e.teleport&&(m(),s=!0)}),t.provide(qe,()=>e.show),()=>e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[h(),C()]}):t.createVNode(t.Fragment,null,[h(),C()])}})),[oo,ao]=Ie("action-sheet"),no=a({},Rt,{title:String,round:b,actions:w(),closeIcon:N("cross"),closeable:b,cancelText:String,description:String,closeOnPopstate:b,closeOnClickAction:Boolean,safeAreaInsetBottom:b}),lo=[...Ht,"round","closeOnPopstate","safeAreaInsetBottom"];const ro=Ye(t.defineComponent({name:oo,props:no,emits:["select","cancel","update:show"],setup(e,{slots:o,emit:a}){const n=e=>a("update:show",e),l=()=>{n(!1),a("cancel")},r=()=>{if(e.title)return t.createVNode("div",{class:ao("header")},[e.title,e.closeable&&t.createVNode(wt,{name:e.closeIcon,class:[ao("close"),je],onClick:l},null)])},i=()=>{if(o.cancel||e.cancelText)return[t.createVNode("div",{class:ao("gap")},null),t.createVNode("button",{type:"button",class:ao("cancel"),onClick:l},[o.cancel?o.cancel():e.cancelText])]},s=e=>{if(e.icon)return t.createVNode(wt,{class:ao("item-icon"),name:e.icon},null)},c=(e,a)=>e.loading?t.createVNode(Tt,{class:ao("loading-icon")},null):o.action?o.action({action:e,index:a}):[t.createVNode("span",{class:ao("name")},[e.name]),e.subname&&t.createVNode("div",{class:ao("subname")},[e.subname])],d=(o,l)=>{const{color:r,loading:i,callback:d,disabled:u,className:p}=o;return t.createVNode("button",{type:"button",style:{color:r},class:[ao("item",{loading:i,disabled:u}),p],onClick:()=>{u||i||(d&&d(o),e.closeOnClickAction&&n(!1),t.nextTick(()=>a("select",o,l)))}},[s(o),c(o,l)])},u=()=>{if(e.description||o.description){const a=o.description?o.description():e.description;return t.createVNode("div",{class:ao("description")},[a])}};return()=>t.createVNode(to,t.mergeProps({class:ao(),position:"bottom","onUpdate:show":n},v(e,lo)),{default:()=>{var a;return[r(),u(),t.createVNode("div",{class:ao("content")},[e.actions.map(d),null==(a=o.default)?void 0:a.call(o)]),i()]}})}})),[io,so,co]=Ie("picker"),uo=e=>e.find(e=>!e.disabled)||e[0];function po(e,t){for(let o=t=we(t,0,e.length);o<e.length;o++)if(!e[o].disabled)return o;for(let o=t-1;o>=0;o--)if(!e[o].disabled)return o;return 0}const vo=(e,t,o)=>void 0!==t&&e.some(e=>e[o.value]===t);function mo(e,t,o){const a=e.findIndex(e=>e[o.value]===t);return e[po(e,a)]}const[fo,ho]=Ie("picker-column"),go=Symbol(fo);var bo=t.defineComponent({name:fo,props:{value:g,fields:y(Object),options:w(),readonly:Boolean,allowHtml:Boolean,optionHeight:y(Number),swipeDuration:y(g),visibleOptionNum:y(g)},emits:["change","clickOption","scrollInto"],setup(e,{emit:o,slots:a}){let n,l,r,i,s;const c=t.ref(),d=t.ref(),u=t.ref(0),p=t.ref(0),v=jt(),m=()=>e.options.length,f=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,h=t=>{let a=po(e.options,t);const l=-a*e.optionHeight,r=()=>{a>m()-1&&(a=po(e.options,t));const n=e.options[a][e.fields.value];n!==e.value&&o("change",n)};n&&l!==u.value?s=r:r(),u.value=l},g=()=>e.readonly||!e.options.length,b=t=>we(Math.round(-t/e.optionHeight),0,m()-1),y=t.computed(()=>b(u.value)),w=()=>{n=!1,p.value=0,s&&(s(),s=null)},x=e=>{if(!g()){if(v.start(e),n){const e=function(e){const{transform:t}=window.getComputedStyle(e),o=t.slice(7,t.length-1).split(", ")[5];return Number(o)}(d.value);u.value=Math.min(0,e-f())}p.value=0,l=u.value,r=Date.now(),i=l,s=null}},V=()=>{if(g())return;const t=u.value-i,o=Date.now()-r;if(o<300&&Math.abs(t)>15)return void((t,o)=>{const a=Math.abs(t/o);t=u.value+a/.003*(t<0?-1:1);const n=b(t);p.value=+e.swipeDuration,h(n)})(t,o);const a=b(u.value);p.value=200,h(a),setTimeout(()=>{n=!1},0)},N=()=>{const l={height:`${e.optionHeight}px`};return e.options.map((r,i)=>{const c=r[e.fields.text],{disabled:d}=r,u=r[e.fields.value],v={role:"button",style:l,tabindex:d?-1:0,class:[ho("item",{disabled:d,selected:u===e.value}),r.className],onClick:()=>(t=>{n||g()||(s=null,p.value=200,h(t),o("clickOption",e.options[t]))})(i)},m={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:c};return t.createVNode("li",v,[a.option?a.option(r,i):t.createVNode("div",m,null)])})};return D(go),ot({stopMomentum:w}),t.watchEffect(()=>{const t=n?Math.floor(-u.value/e.optionHeight):e.options.findIndex(t=>t[e.fields.value]===e.value),o=po(e.options,t),a=-o*e.optionHeight;n&&o<t&&w(),u.value=a}),R("touchmove",t=>{if(g())return;v.move(t),v.isVertical()&&(n=!0,re(t,!0));const a=we(l+v.deltaY.value,-m()*e.optionHeight,e.optionHeight),s=b(a);s!==y.value&&o("scrollInto",e.options[s]),u.value=a;const c=Date.now();c-r>300&&(r=c,i=a)},{target:c}),()=>t.createVNode("div",{ref:c,class:ho(),onTouchstartPassive:x,onTouchend:V,onTouchcancel:V},[t.createVNode("ul",{ref:d,style:{transform:`translate3d(0, ${u.value+f()}px, 0)`,transitionDuration:`${p.value}ms`,transitionProperty:p.value?"all":"none"},class:ho("wrapper"),onTransitionend:w},[N()])])}});const[yo]=Ie("picker-toolbar"),wo={title:String,cancelButtonText:String,confirmButtonText:String},xo=["cancel","confirm","title","toolbar"],Vo=Object.keys(wo);var No=t.defineComponent({name:yo,props:wo,emits:["confirm","cancel"],setup(e,{emit:o,slots:a}){const n=()=>o("cancel"),l=()=>o("confirm"),r=()=>{var o;const l=null!=(o=e.cancelButtonText)?o:co("cancel");if(a.cancel||l)return t.createVNode("button",{type:"button",class:[so("cancel"),je],onClick:n},[a.cancel?a.cancel():l])},i=()=>{var o;const n=null!=(o=e.confirmButtonText)?o:co("confirm");if(a.confirm||n)return t.createVNode("button",{type:"button",class:[so("confirm"),je],onClick:l},[a.confirm?a.confirm():n])};return()=>t.createVNode("div",{class:so("toolbar")},[a.toolbar?a.toolbar():[r(),a.title?a.title():e.title?t.createVNode("div",{class:[so("title"),"van-ellipsis"]},[e.title]):void 0,i()]])}});const Co=(e,o)=>{const a=t.ref(e());return t.watch(e,e=>{e!==a.value&&(a.value=e)}),t.watch(a,t=>{t!==e()&&o(t)}),a},ko=Array.isArray,So=e=>"string"==typeof e,To=e=>null!==e&&"object"==typeof e,Bo=/\B([A-Z])/g,Po=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})(e=>e.replace(Bo,"-$1").toLowerCase());
2
+ /**
3
+ * @vue/shared v3.5.25
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/function Do(e){if(ko(e)){const t={};for(let o=0;o<e.length;o++){const a=e[o],n=So(a)?zo(a):Do(a);if(n)for(const e in n)t[e]=n[e]}return t}if(So(e)||To(e))return e}const Oo=/;(?![^(]*\))/g,Ao=/:([^]+)/,Io=/\/\*[^]*?\*\//g;function zo(e){const t={};return e.replace(Io,"").split(Oo).forEach(e=>{if(e){const o=e.split(Ao);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Eo(e){let t="";if(So(e))t=e;else if(ko(e))for(let o=0;o<e.length;o++){const a=Eo(e[o]);a&&(t+=a+" ")}else if(To(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}let $o=0;function Lo(){const e=t.getCurrentInstance(),{name:o="unknown"}=(null==e?void 0:e.type)||{};return`${o}-${++$o}`}function Mo(){const e=t.ref([]),o=[];t.onBeforeUpdate(()=>{e.value=[]});return[e,t=>(o[t]||(o[t]=o=>{e.value[t]=o}),o[t])]}function Fo(e,o){if(!n||!window.IntersectionObserver)return;const a=new IntersectionObserver(e=>{o(e[0].intersectionRatio>0)},{root:document.body}),l=()=>{e.value&&a.unobserve(e.value)};t.onDeactivated(l),t.onBeforeUnmount(l),F(()=>{e.value&&a.observe(e.value)})}const[Ro,Ho]=Ie("sticky"),jo={zIndex:g,position:N("top"),container:Object,offsetTop:V(0),offsetBottom:V(0)};const Wo=Ye(t.defineComponent({name:Ro,props:jo,emits:["scroll","change"],setup(e,{emit:o,slots:n}){const l=t.ref(),r=G(l),i=t.reactive({fixed:!1,width:0,height:0,transform:0}),s=t.ref(!1),c=t.computed(()=>he("top"===e.position?e.offsetTop:e.offsetBottom)),d=t.computed(()=>{if(s.value)return;const{fixed:e,height:t,width:o}=i;return e?{width:`${o}px`,height:`${t}px`}:void 0}),u=t.computed(()=>{if(!i.fixed||s.value)return;const t=a(ve(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${c.value}px`});return i.transform&&(t.transform=`translate3d(0, ${i.transform}px, 0)`),t}),p=()=>{if(!l.value||ie(l))return;const{container:t,position:a}=e,n=P(l),r=J(window);if(i.width=n.width,i.height=n.height,"top"===a)if(t){const e=P(t),o=e.bottom-c.value-i.height;i.fixed=c.value>n.top&&e.bottom>0,i.transform=o<0?o:0}else i.fixed=c.value>n.top;else{const{clientHeight:e}=document.documentElement;if(t){const o=P(t),a=e-o.top-c.value-i.height;i.fixed=e-c.value<n.bottom&&e>o.top,i.transform=a<0?-a:0}else i.fixed=e-c.value<n.bottom}(e=>{o("scroll",{scrollTop:e,isFixed:i.fixed})})(r)};return t.watch(()=>i.fixed,e=>o("change",e)),R("scroll",p,{target:r,passive:!0}),Fo(l,p),t.watch([se,ce],()=>{l.value&&!ie(l)&&i.fixed&&(s.value=!0,t.nextTick(()=>{const e=P(l);i.width=e.width,i.height=e.height,s.value=!1}))}),()=>{var e;return t.createVNode("div",{ref:l,style:d.value},[t.createVNode("div",{class:Ho({fixed:i.fixed&&!s.value}),style:u.value},[null==(e=n.default)?void 0:e.call(n)])])}}})),[Uo,Yo]=Ie("swipe"),Xo={loop:b,width:g,height:g,vertical:Boolean,autoplay:V(0),duration:V(500),touchable:b,lazyRender:Boolean,initialSwipe:V(0),indicatorColor:String,showIndicators:b,stopPropagation:b},qo=Symbol(Uo);const Go=Ye(t.defineComponent({name:Uo,props:Xo,emits:["change","dragStart","dragEnd"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.ref(),r=t.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let i=!1;const s=jt(),{children:c,linkChildren:d}=I(qo),u=t.computed(()=>c.length),p=t.computed(()=>r[e.vertical?"height":"width"]),v=t.computed(()=>e.vertical?s.deltaY.value:s.deltaX.value),m=t.computed(()=>{if(r.rect){return(e.vertical?r.rect.height:r.rect.width)-p.value*u.value}return 0}),f=t.computed(()=>p.value?Math.ceil(Math.abs(m.value)/p.value):u.value),h=t.computed(()=>u.value*p.value),g=t.computed(()=>(r.active+u.value)%u.value),b=t.computed(()=>{const t=e.vertical?"vertical":"horizontal";return s.direction.value===t}),y=t.computed(()=>{const t={transitionDuration:`${r.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+r.offset.toFixed(2)}px)`};if(p.value){const o=e.vertical?"height":"width",a=e.vertical?"width":"height";t[o]=`${h.value}px`,t[a]=e[a]?`${e[a]}px`:""}return t}),w=(t,o=0)=>{let a=t*p.value;e.loop||(a=Math.min(a,-m.value));let n=o-a;return e.loop||(n=we(n,m.value,0)),n},x=({pace:t=0,offset:a=0,emitChange:n})=>{if(u.value<=1)return;const{active:l}=r,i=(t=>{const{active:o}=r;return t?e.loop?we(o+t,-1,u.value):we(o+t,0,f.value):o})(t),s=w(i,a);if(e.loop){if(c[0]&&s!==m.value){const e=s<m.value;c[0].setOffset(e?h.value:0)}if(c[u.value-1]&&0!==s){const e=s>0;c[u.value-1].setOffset(e?-h.value:0)}}r.active=i,r.offset=s,n&&i!==l&&o("change",g.value)},V=()=>{r.swiping=!0,r.active<=-1?x({pace:u.value}):r.active>=u.value&&x({pace:-u.value})},N=()=>{V(),s.reset(),T(()=>{r.swiping=!1,x({pace:1,emitChange:!0})})};let k;const S=()=>clearTimeout(k),B=()=>{S(),+e.autoplay>0&&u.value>1&&(k=setTimeout(()=>{N(),B()},+e.autoplay))},P=(o=+e.initialSwipe)=>{if(!n.value)return;const a=()=>{var t,a;if(!ie(n)){const o={width:n.value.offsetWidth,height:n.value.offsetHeight};r.rect=o,r.width=+(null!=(t=e.width)?t:o.width),r.height=+(null!=(a=e.height)?a:o.height)}u.value&&-1===(o=Math.min(u.value-1,o))&&(o=u.value-1),r.active=o,r.swiping=!0,r.offset=w(o),c.forEach(e=>{e.setOffset(0)}),B()};ie(n)?t.nextTick().then(a):a()},D=()=>P(r.active);let O;const A=t=>{!e.touchable||t.touches.length>1||(s.start(t),i=!1,O=Date.now(),S(),V())},z=()=>{if(!e.touchable||!r.swiping)return;const t=Date.now()-O,a=v.value/t;if((Math.abs(a)>.25||Math.abs(v.value)>p.value/2)&&b.value){const t=e.vertical?s.offsetY.value:s.offsetX.value;let o=0;o=e.loop?t>0?v.value>0?-1:1:0:-Math[v.value>0?"ceil":"floor"](v.value/p.value),x({pace:o,emitChange:!0})}else v.value&&x({pace:0});i=!1,r.swiping=!1,o("dragEnd",{index:g.value}),B()},E=(o,a)=>{const n=a===g.value,l=n?{backgroundColor:e.indicatorColor}:void 0;return t.createVNode("i",{style:l,class:Yo("indicator",{active:n})},null)};return ot({prev:()=>{V(),s.reset(),T(()=>{r.swiping=!1,x({pace:-1,emitChange:!0})})},next:N,state:r,resize:D,swipeTo:(t,o={})=>{V(),s.reset(),T(()=>{let a;a=e.loop&&t===u.value?0===r.active?0:t:t%u.value,o.immediate?T(()=>{r.swiping=!1}):r.swiping=!1,x({pace:a-r.active,emitChange:!0})})}}),d({size:p,props:e,count:u,activeIndicator:g}),t.watch(()=>e.initialSwipe,e=>P(+e)),t.watch(u,()=>P(r.active)),t.watch(()=>e.autoplay,B),t.watch([se,ce,()=>e.width,()=>e.height],D),t.watch(function(){if(!Z&&(Z=t.ref("visible"),C)){const e=()=>{Z.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Z}(),e=>{"visible"===e?B():S()}),t.onMounted(P),t.onActivated(()=>P(r.active)),Ge(()=>P(r.active)),t.onDeactivated(S),t.onBeforeUnmount(S),R("touchmove",t=>{if(e.touchable&&r.swiping&&(s.move(t),b.value)){!e.loop&&(0===r.active&&v.value>0||r.active===u.value-1&&v.value<0)||(re(t,e.stopPropagation),x({offset:v.value}),i||(o("dragStart",{index:g.value}),i=!0))}},{target:l}),()=>{var o;return t.createVNode("div",{ref:n,class:Yo()},[t.createVNode("div",{ref:l,style:y.value,class:Yo("track",{vertical:e.vertical}),onTouchstartPassive:A,onTouchend:z,onTouchcancel:z},[null==(o=a.default)?void 0:o.call(a)]),a.indicator?a.indicator({active:g.value,total:u.value}):e.showIndicators&&u.value>1?t.createVNode("div",{class:Yo("indicators",{vertical:e.vertical})},[Array(u.value).fill("").map(E)]):void 0])}}})),[Zo,Ko]=Ie("tabs");var _o=t.defineComponent({name:Zo,props:{count:y(Number),inited:Boolean,animated:Boolean,duration:y(g),swipeable:Boolean,lazyRender:Boolean,currentIndex:y(Number)},emits:["change"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=e=>o("change",e),r=()=>{var o;const r=null==(o=a.default)?void 0:o.call(a);return e.animated||e.swipeable?t.createVNode(Go,{ref:n,loop:!1,class:Ko("track"),duration:1e3*+e.duration,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:l},{default:()=>[r]}):r},i=t=>{const o=n.value;o&&o.state.active!==t&&o.swipeTo(t,{immediate:!e.inited})};return t.watch(()=>e.currentIndex,i),t.onMounted(()=>{i(e.currentIndex)}),ot({swipeRef:n}),()=>t.createVNode("div",{class:Ko("content",{animated:e.animated||e.swipeable})},[r()])}});const[Jo,Qo]=Ie("tabs"),ea={type:N("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:V(0),duration:V(.3),animated:Boolean,ellipsis:b,swipeable:Boolean,scrollspy:Boolean,offsetTop:V(0),background:String,lazyRender:b,showHeader:b,lineWidth:g,lineHeight:g,beforeChange:Function,swipeThreshold:V(5),titleActiveColor:String,titleInactiveColor:String},ta=Symbol(Jo);var oa=t.defineComponent({name:Jo,props:ea,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:o,slots:a}){let n,l,i,s,c;const d=t.ref(),u=t.ref(),p=t.ref(),v=t.ref(),m=Lo(),f=G(d),[h,g]=Mo(),{children:b,linkChildren:y}=I(ta),w=t.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),x=t.computed(()=>b.length>+e.swipeThreshold||!e.ellipsis||e.shrink),V=t.computed(()=>({borderColor:e.color,background:e.background})),N=(e,t)=>{var o;return null!=(o=e.name)?o:t},C=t.computed(()=>{const e=b[w.currentIndex];if(e)return N(e,w.currentIndex)}),T=t.computed(()=>he(e.offsetTop)),B=t.computed(()=>e.sticky?T.value+n:0),D=t=>{const o=u.value,a=h.value;if(!(x.value&&o&&a&&a[w.currentIndex]))return;const n=a[w.currentIndex].$el,l=n.offsetLeft-(o.offsetWidth-n.offsetWidth)/2;s&&s(),s=function(e,t,o){let a,n=0;const l=e.scrollLeft,r=0===o?1:Math.round(1e3*o/16);let i=l;return function o(){i+=(t-l)/r,e.scrollLeft=i,++n<r&&(a=k(o))}(),function(){S(a)}}(o,l,t?0:+e.duration)},O=()=>{const o=w.inited;t.nextTick(()=>{const t=h.value;if(!t||!t[w.currentIndex]||"line"!==e.type||ie(d.value))return;const a=t[w.currentIndex].$el,{lineWidth:n,lineHeight:l}=e,i=a.offsetLeft+a.offsetWidth/2,s={width:ue(n),backgroundColor:e.color,transform:`translateX(${i}px) translateX(-50%)`};if(o&&(s.transitionDuration=`${e.duration}s`),r(l)){const e=ue(l);s.height=e,s.borderRadius=e}w.lineStyle=s})},A=(t,a)=>{const n=(e=>{const t=e<w.currentIndex?-1:1;for(;e>=0&&e<b.length;){if(!b[e].disabled)return e;e+=t}})(t);if(!r(n))return;const l=b[n],s=N(l,n),c=null!==w.currentIndex;w.currentIndex!==n&&(w.currentIndex=n,a||D(),O()),s!==e.active&&(o("update:active",s),c&&o("change",s,l.title)),i&&!e.scrollspy&&te(Math.ceil(oe(d.value)-T.value))},z=(e,t)=>{const o=b.findIndex((t,o)=>N(t,o)===e);A(-1===o?0:o,t)},E=(t=!1)=>{if(e.scrollspy){const o=b[w.currentIndex].$el;if(o&&f.value){const a=oe(o,f.value)-B.value;l=!0,c&&c(),c=function(e,t,o,a){let n,l=J(e);const r=l<t,i=0===o?1:Math.round(1e3*o/16),s=(t-l)/i;return function o(){l+=s,(r&&l>t||!r&&l<t)&&(l=t),Q(e,l),r&&l<t||!r&&l>t?n=k(o):a&&(n=k(a))}(),function(){S(n)}}(f.value,a,t?0:+e.duration,()=>{l=!1})}}},$=(t,a,n)=>{const{title:l,disabled:r}=b[a],i=N(b[a],a);r||(Ue(e.beforeChange,{args:[i],done:()=>{A(a),E()}}),nt(t)),o("clickTab",{name:i,title:l,event:n,disabled:r})},L=e=>{i=e.isFixed,o("scroll",e)},M=()=>{if("line"===e.type&&b.length)return t.createVNode("div",{class:Qo("line"),style:w.lineStyle},null)},H=()=>{var o,n,l;const{type:r,border:i,sticky:s}=e,c=[t.createVNode("div",{ref:s?void 0:p,class:[Qo("wrap"),{[Re]:"line"===r&&i}]},[t.createVNode("div",{ref:u,role:"tablist",class:Qo("nav",[r,{shrink:e.shrink,complete:x.value}]),style:V.value,"aria-orientation":"horizontal"},[null==(o=a["nav-left"])?void 0:o.call(a),b.map(e=>e.renderTitle($)),M(),null==(n=a["nav-right"])?void 0:n.call(a)])]),null==(l=a["nav-bottom"])?void 0:l.call(a)];return s?t.createVNode("div",{ref:p},[c]):c},j=()=>{O(),t.nextTick(()=>{var e,t;D(!0),null==(t=null==(e=v.value)?void 0:e.swipeRef.value)||t.resize()})};t.watch(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],O),t.watch(se,j),t.watch(()=>e.active,e=>{e!==C.value&&z(e)}),t.watch(()=>b.length,()=>{w.inited&&(z(e.active),O(),t.nextTick(()=>{D(!0)}))});return ot({resize:j,scrollTo:e=>{t.nextTick(()=>{z(e),E(!0)})}}),t.onActivated(O),Ge(O),F(()=>{z(e.active,!0),t.nextTick(()=>{w.inited=!0,p.value&&(n=P(p.value).height),D(!0)})}),Fo(d,O),R("scroll",()=>{if(e.scrollspy&&!l){const e=(()=>{for(let e=0;e<b.length;e++){const{top:t}=P(b[e].$el);if(t>B.value)return 0===e?0:e-1}return b.length-1})();A(e)}},{target:f,passive:!0}),y({id:m,props:e,setLine:O,scrollable:x,onRendered:(e,t)=>o("rendered",e,t),currentName:C,setTitleRefs:g,scrollIntoView:D}),()=>t.createVNode("div",{ref:d,class:Qo([e.type])},[e.showHeader?e.sticky?t.createVNode(Wo,{container:d.value,offsetTop:T.value,onScroll:L},{default:()=>[H()]}):H():null,t.createVNode(_o,{ref:v,count:b.length,inited:w.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:w.currentIndex,onChange:A},{default:()=>{var e;return[null==(e=a.default)?void 0:e.call(a)]}})])}});const aa=Symbol(),na=Symbol(),la=()=>t.inject(na,null),[ra,ia]=Ie("tab"),sa=t.defineComponent({name:ra,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:g,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:b},setup(e,{slots:o}){const a=t.computed(()=>{const t={},{type:o,color:a,disabled:n,isActive:l,activeColor:r,inactiveColor:i}=e;a&&"card"===o&&(t.borderColor=a,n||(l?t.backgroundColor=a:t.color=a));const s=l?r:i;return s&&(t.color=s),t}),n=()=>{const a=t.createVNode("span",{class:ia("text",{ellipsis:!e.scrollable})},[o.title?o.title():e.title]);return e.dot||r(e.badge)&&""!==e.badge?t.createVNode(ct,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[a]}):a};return()=>t.createVNode("div",{id:e.id,role:"tab",class:[ia([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:a.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[n()])}}),[ca,da]=Ie("swipe-item");const ua=Ye(t.defineComponent({name:ca,setup(e,{slots:o}){let a;const n=t.reactive({offset:0,inited:!1,mounted:!1}),{parent:l,index:r}=D(qo);if(!l)return;const i=t.computed(()=>{const e={},{vertical:t}=l.props;return l.size.value&&(e[t?"height":"width"]=`${l.size.value}px`),n.offset&&(e.transform=`translate${t?"Y":"X"}(${n.offset}px)`),e}),s=t.computed(()=>{const{loop:e,lazyRender:t}=l.props;if(!t||a)return!0;if(!n.mounted)return!1;const o=l.activeIndicator.value,i=l.count.value-1,s=0===o&&e?i:o-1,c=o===i&&e?0:o+1;return a=r.value===o||r.value===s||r.value===c,a});return t.onMounted(()=>{t.nextTick(()=>{n.mounted=!0})}),ot({setOffset:e=>{n.offset=e}}),()=>{var e;return t.createVNode("div",{class:da(),style:i.value},[s.value?null==(e=o.default)?void 0:e.call(o):null])}}})),[pa,va]=Ie("tab"),ma=a({},at,{dot:Boolean,name:g,badge:g,title:String,disabled:Boolean,titleClass:h,titleStyle:[String,Object],showZeroBadge:b});const fa=Ye(t.defineComponent({name:pa,props:ma,setup(e,{slots:o}){const a=Lo(),n=t.ref(!1),l=t.getCurrentInstance(),{parent:r,index:i}=D(ta);if(!r)return;const s=()=>{var t;return null!=(t=e.name)?t:i.value},c=t.computed(()=>{const o=s()===r.currentName.value;return o&&!n.value&&(n.value=!0,r.props.lazyRender&&t.nextTick(()=>{r.onRendered(s(),e.title)})),o}),d=t.ref(""),u=t.ref("");t.watchEffect(()=>{const{titleClass:t,titleStyle:o}=e;d.value=t?Eo(t):"",u.value=o&&"string"!=typeof o?function(e){if(!e)return"";if(So(e))return e;let t="";for(const o in e){const a=e[o];(So(a)||"number"==typeof a)&&(t+=`${o.startsWith("--")?o:Po(o)}:${a};`)}return t}(Do(o)):o});const p=t.ref(!c.value);return t.watch(c,e=>{e?p.value=!1:T(()=>{p.value=!0})}),t.watch(()=>e.title,()=>{r.setLine(),r.scrollIntoView()}),(e=>{const o=la();t.provide(aa,e),t.provide(na,t.computed(()=>(null==o||o.value)&&e.value))})(c),ot({id:a,renderTitle:n=>t.createVNode(sa,t.mergeProps({key:a,id:`${r.id}-${i.value}`,ref:r.setTitleRefs(i.value),style:u.value,class:d.value,isActive:c.value,controls:a,scrollable:r.scrollable.value,activeColor:r.props.titleActiveColor,inactiveColor:r.props.titleInactiveColor,onClick:e=>n(l.proxy,i.value,e)},v(r.props,["type","color","shrink"]),v(e,["dot","badge","title","disabled","showZeroBadge"])),{title:o.title})}),()=>{var e;const l=`${r.id}-${i.value}`,{animated:s,swipeable:d,scrollspy:u,lazyRender:v}=r.props;if(!o.default&&!s)return;const m=u||c.value;if(s||d)return t.createVNode(ua,{id:a,role:"tabpanel",class:va("panel-wrapper",{inactive:p.value}),tabindex:c.value?0:-1,"aria-hidden":!c.value,"aria-labelledby":l,"data-allow-mismatch":"attribute"},{default:()=>{var e;return[t.createVNode("div",{class:va("panel")},[null==(e=o.default)?void 0:e.call(o)])]}});const f=n.value||u||!v?null==(e=o.default)?void 0:e.call(o):null;return t.withDirectives(t.createVNode("div",{id:a,role:"tabpanel",class:va("panel"),tabindex:m?0:-1,"aria-labelledby":l,"data-allow-mismatch":"attribute"},[f]),[[t.vShow,m]])}}})),ha=Ye(oa),[ga,ba]=Ie("picker-group"),ya=Symbol(ga),wa=a({tabs:w(),activeTab:V(0),nextStepText:String,showToolbar:b},wo);var xa=t.defineComponent({name:ga,props:wa,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:o,slots:a}){const n=Co(()=>e.activeTab,e=>o("update:activeTab",e)),{children:l,linkChildren:r}=I(ya);r();const i=()=>+n.value<e.tabs.length-1&&e.nextStepText,s=()=>{i()?n.value=+n.value+1:o("confirm",l.map(e=>e.confirm()))},c=()=>o("cancel");return()=>{var o,l;let r=null==(l=null==(o=a.default)?void 0:o.call(a))?void 0:l.filter(e=>e.type!==t.Comment).map(e=>e.type===t.Fragment?e.children:e);r&&(r=r.reduce((e,t)=>e.concat(t),[]));const d=i()?e.nextStepText:e.confirmButtonText;return t.createVNode("div",{class:ba()},[e.showToolbar?t.createVNode(No,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:d,onConfirm:s,onCancel:c},v(a,xo)):null,t.createVNode(ha,{active:n.value,"onUpdate:active":e=>n.value=e,class:ba("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((e,o)=>t.createVNode(fa,{title:e,titleClass:ba("tab-title")},{default:()=>[null==r?void 0:r[o]]}))]})])}}});const Va=a({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:V(44),showToolbar:b,swipeDuration:V(1e3),visibleOptionNum:V(6)},wo),Na=a({},Va,{columns:w(),modelValue:w(),toolbarPosition:N("top"),columnsFieldNames:Object});var Ca=t.defineComponent({name:io,props:Na,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:o,slots:n}){const l=t.ref(),i=t.ref(e.modelValue.slice(0)),{parent:s}=D(ya),{children:c,linkChildren:d}=I(go);d();const u=t.computed(()=>function(e){return a({text:"text",value:"value",children:"children"},e)}(e.columnsFieldNames)),p=t.computed(()=>he(e.optionHeight)),f=t.computed(()=>function(e,t){const o=e[0];if(o){if(Array.isArray(o))return"multiple";if(t.children in o)return"cascade"}return"default"}(e.columns,u.value)),h=t.computed(()=>{const{columns:t}=e;switch(f.value){case"multiple":return t;case"cascade":return function(e,t,o){const a=[];let n={[t.children]:e},l=0;for(;n&&n[t.children];){const e=n[t.children],i=o.value[l];n=r(i)?mo(e,i,t):void 0,!n&&e.length&&(n=mo(e,uo(e)[t.value],t)),l++,a.push(e)}return a}(t,u.value,i);default:return[t]}}),g=t.computed(()=>h.value.some(e=>e.length)),b=t.computed(()=>h.value.map((e,t)=>mo(e,i.value[t],u.value))),y=t.computed(()=>h.value.map((e,t)=>e.findIndex(e=>e[u.value.value]===i.value[t]))),w=(e,t)=>{if(i.value[e]!==t){const o=i.value.slice(0);o[e]=t,i.value=o}},x=()=>({selectedValues:i.value.slice(0),selectedOptions:b.value,selectedIndexes:y.value}),V=()=>{c.forEach(e=>e.stopMomentum());const e=x();return t.nextTick(()=>{const e=x();o("confirm",e)}),e},N=()=>o("cancel",x()),C=()=>h.value.map((l,r)=>t.createVNode(bo,{value:i.value[r],fields:u.value,options:l,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:p.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:e=>((e,n)=>{w(n,e),"cascade"===f.value&&i.value.forEach((e,t)=>{const o=h.value[t];vo(o,e,u.value)||w(t,o.length?o[0][u.value.value]:void 0)}),t.nextTick(()=>{o("change",a({columnIndex:n},x()))})})(e,r),onClickOption:e=>((e,t)=>{const n={columnIndex:t,currentOption:e};o("clickOption",a(x(),n)),o("scrollInto",n)})(e,r),onScrollInto:e=>{o("scrollInto",{currentOption:e,columnIndex:r})}},{option:n.option})),k=e=>{if(g.value){const o={height:`${p.value}px`},a={backgroundSize:`100% ${(e-p.value)/2}px`};return[t.createVNode("div",{class:so("mask"),style:a},null),t.createVNode("div",{class:[He,so("frame")],style:o},null)]}},S=()=>{const o=p.value*+e.visibleOptionNum,a={height:`${o}px`};return e.loading||g.value||!n.empty?t.createVNode("div",{ref:l,class:so("columns"),style:a},[C(),k(o)]):n.empty()},T=()=>{if(e.showToolbar&&!s)return t.createVNode(No,t.mergeProps(v(e,Vo),{onConfirm:V,onCancel:N}),v(n,xo))},B=e=>{e.forEach((e,t)=>{e.length&&!vo(e,i.value[t],u.value)&&w(t,uo(e)[u.value.value])})};let P;t.watch(h,e=>B(e),{immediate:!0}),t.watch(()=>e.modelValue,t=>{m(t,i.value)||m(t,P)||(i.value=t.slice(0),P=t.slice(0)),0===e.modelValue.length&&B(h.value)},{deep:!0}),t.watch(i,t=>{m(t,e.modelValue)||(P=t.slice(0),o("update:modelValue",P))},{immediate:!0}),R("touchmove",re,{target:l});return ot({confirm:V,getSelectedOptions:()=>b.value}),()=>{var o,a;return t.createVNode("div",{class:so()},["top"===e.toolbarPosition?T():null,e.loading?t.createVNode(Tt,{class:so("loading")},null):null,null==(o=n["columns-top"])?void 0:o.call(n),S(),null==(a=n["columns-bottom"])?void 0:a.call(n),"bottom"===e.toolbarPosition?T():null])}}});const ka="000000",Sa=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],Ta=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],Ba=(e="",t=ka,o=void 0)=>({text:e,value:t,children:o});function Pa({areaList:e,columnsNum:t,columnsPlaceholder:o}){const{city_list:a={},county_list:n={},province_list:l={}}=e,r=+t>1,i=+t>2,s=new Map;Object.keys(l).forEach(e=>{s.set(e.slice(0,2),Ba(l[e],e,(()=>{if(r)return o.length>1?[Ba(o[1],ka,i?[]:void 0)]:[]})()))});const c=new Map;if(r){const e=()=>{if(i)return o.length>2?[Ba(o[2])]:[]};Object.keys(a).forEach(t=>{const o=Ba(a[t],t,e());c.set(t.slice(0,4),o);const n=s.get(t.slice(0,2));n&&n.children.push(o)})}i&&Object.keys(n).forEach(e=>{const t=c.get(e.slice(0,4));t&&t.children.push(Ba(n[e],e))});const d=Array.from(s.values());if(o.length){const e=i?[Ba(o[2])]:void 0,t=r?[Ba(o[1],ka,e)]:void 0;d.unshift(Ba(o[0],ka,t))}return d}const Da=Ye(Ca),[Oa,Aa]=Ie("area"),Ia=a({},v(Va,Ta),{modelValue:String,columnsNum:V(3),columnsPlaceholder:w(),areaList:{type:Object,default:()=>({})}});const za=Ye(t.defineComponent({name:Oa,props:Ia,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref([]),l=t.ref(),r=t.computed(()=>Pa(e)),i=(...e)=>o("change",...e),s=(...e)=>o("cancel",...e),c=(...e)=>o("confirm",...e);return t.watch(n,t=>{const a=t.length?t[t.length-1]:"";a&&a!==e.modelValue&&o("update:modelValue",a)},{deep:!0}),t.watch(()=>e.modelValue,t=>{if(t){t!==(n.value.length?n.value[n.value.length-1]:"")&&(n.value=[`${t.slice(0,2)}0000`,`${t.slice(0,4)}00`,t].slice(0,+e.columnsNum))}else n.value=[]},{immediate:!0}),ot({confirm:()=>{var e;return null==(e=l.value)?void 0:e.confirm()},getSelectedOptions:()=>{var e;return(null==(e=l.value)?void 0:e.getSelectedOptions())||[]}}),()=>t.createVNode(Da,t.mergeProps({ref:l,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:Aa(),columns:r.value,onChange:i,onCancel:s,onConfirm:c},v(e,Ta)),v(a,Sa))}})),[Ea,$a]=Ie("cell"),La={tag:N("div"),icon:String,size:String,title:g,value:g,label:g,center:Boolean,isLink:Boolean,border:b,iconPrefix:String,valueClass:h,labelClass:h,titleClass:h,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Ma=a({},La,at);const Fa=Ye(t.defineComponent({name:Ea,props:Ma,setup(e,{slots:o}){const a=lt(),n=()=>{if(o.label||r(e.label))return t.createVNode("div",{class:[$a("label"),e.labelClass]},[o.label?o.label():e.label])},l=()=>{var a;if(o.title||r(e.title)){const l=null==(a=o.title)?void 0:a.call(o);if(Array.isArray(l)&&0===l.length)return;return t.createVNode("div",{class:[$a("title"),e.titleClass],style:e.titleStyle},[l||t.createVNode("span",null,[e.title]),n()])}},i=()=>{const a=o.value||o.default;if(a||r(e.value))return t.createVNode("div",{class:[$a("value"),e.valueClass]},[a?a():t.createVNode("span",null,[e.value])])},s=()=>{if(o["right-icon"])return o["right-icon"]();if(e.isLink){const o=e.arrowDirection&&"right"!==e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return t.createVNode(wt,{name:o,class:$a("right-icon")},null)}};return()=>{var n;const{tag:r,size:c,center:d,border:u,isLink:p,required:v}=e,m=null!=(n=e.clickable)?n:p,f={center:d,required:!!v,clickable:m,borderless:!u};return c&&(f[c]=!!c),t.createVNode(r,{class:$a(f),role:m?"button":void 0,tabindex:m?0:void 0,onClick:a},{default:()=>{var a;return[o.icon?o.icon():e.icon?t.createVNode(wt,{name:e.icon,class:$a("left-icon"),classPrefix:e.iconPrefix},null):void 0,l(),i(),s(),null==(a=o.extra)?void 0:a.call(o)]}})}}})),[Ra,Ha]=Ie("form"),ja={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:g,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:b,showErrorMessage:b,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};const Wa=Ye(t.defineComponent({name:Ra,props:ja,emits:["submit","failed"],setup(e,{emit:o,slots:a}){const{children:n,linkChildren:l}=I(We),r=e=>e?n.filter(t=>e.includes(t.name)):n,i=t=>{return"string"==typeof t?(e=>{const t=n.find(t=>t.name===e);return t?new Promise((e,o)=>{t.validate().then(t=>{t?o(t):e()})}):Promise.reject()})(t):e.validateFirst?(o=t,new Promise((e,t)=>{const a=[];r(o).reduce((e,t)=>e.then(()=>{if(!a.length)return t.validate().then(e=>{e&&a.push(e)})}),Promise.resolve()).then(()=>{a.length?t(a):e()})})):(e=>new Promise((t,o)=>{const a=r(e);Promise.all(a.map(e=>e.validate())).then(e=>{(e=e.filter(Boolean)).length?o(e):t()})}))(t);var o},s=(e,t)=>{n.some(o=>o.name===e&&(o.$el.scrollIntoView(t),!0))},c=()=>n.reduce((e,t)=>(void 0!==t.name&&(e[t.name]=t.formValue.value),e),{}),d=()=>{const t=c();i().then(()=>o("submit",t)).catch(a=>{o("failed",{values:t,errors:a});const{scrollToError:n,scrollToErrorPosition:l}=e;n&&a[0].name&&s(a[0].name,l?{block:l}:void 0)})},u=e=>{re(e),d()};return l({props:e}),ot({submit:d,validate:i,getValues:c,scrollToField:s,resetValidation:e=>{"string"==typeof e&&(e=[e]);r(e).forEach(e=>{e.resetValidation()})},getValidationStatus:()=>n.reduce((e,t)=>(e[t.name]=t.getValidationStatus(),e),{})}),()=>{var e;return t.createVNode("form",{class:Ha(),onSubmit:u},[null==(e=a.default)?void 0:e.call(a)])}}}));function Ua(e){return Array.isArray(e)?!e.length:0!==e&&!e}function Ya(e,t){const{message:o}=t;return i(o)?o(e,t):o||""}function Xa({target:e}){e.composing=!0}function qa({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Ga(e){return[...e].length}function Za(e,t){return[...e].slice(0,t).join("")}const[Ka,_a]=Ie("field"),Ja={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:g,max:Number,min:Number,formatter:Function,clearIcon:N("clear"),modelValue:V(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:N("focus"),formatTrigger:N("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Qa=a({},La,Ja,{rows:g,type:N("text"),rules:Array,autosize:[Boolean,Object],labelWidth:g,labelClass:h,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});const en=Ye(t.defineComponent({name:Ka,props:Qa,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:o,slots:a}){const n=Lo(),i=t.reactive({status:"unvalidated",focused:!1,validateMessage:""}),c=t.ref(),d=t.ref(),u=t.ref(),{parent:p}=D(We),v=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},m=t=>r(e[t])?e[t]:p&&r(p.props[t])?p.props[t]:void 0,h=t.computed(()=>{const t=m("readonly");if(e.clearable&&!t){const t=""!==v(),o="always"===e.clearTrigger||"focus"===e.clearTrigger&&i.focused;return t&&o}return!1}),g=t.computed(()=>u.value&&a.input?u.value():e.modelValue),b=t.computed(()=>{var t;const o=m("required");return"auto"===o?null==(t=e.rules)?void 0:t.some(e=>e.required):o}),y=e=>e.reduce((e,t)=>e.then(()=>{if("failed"===i.status)return;let{value:e}=g;if(t.formatter&&(e=t.formatter(e,t)),!function(e,t){if(Ua(e)){if(t.required)return!1;if(!1===t.validateEmpty)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}(e,t))return i.status="failed",void(i.validateMessage=Ya(e,t));if(t.validator){if(Ua(e)&&!1===t.validateEmpty)return;return function(e,t){return new Promise(o=>{const a=t.validator(e,t);s(a)?a.then(o):o(a)})}(e,t).then(o=>{o&&"string"==typeof o?(i.status="failed",i.validateMessage=o):!1===o&&(i.status="failed",i.validateMessage=Ya(e,t))})}}),Promise.resolve()),w=()=>{i.status="unvalidated",i.validateMessage=""},x=()=>o("endValidate",{status:i.status,message:i.validateMessage}),V=(t=e.rules)=>new Promise(a=>{w(),t?(o("startValidate"),y(t).then(()=>{"failed"===i.status?(a({name:e.name,message:i.validateMessage}),x()):(i.status="passed",a(),x())})):a()}),N=t=>{if(p&&e.rules){const{validateTrigger:o}=p.props,a=f(o).includes(t),n=e.rules.filter(e=>e.trigger?f(e.trigger).includes(t):a);n.length&&V(n)}},C=(t,a="onChange")=>{var n,l;const s=t;t=(t=>{var o;const{maxlength:a}=e;if(r(a)&&Ga(t)>+a){const e=v();if(e&&Ga(e)===+a)return e;let n=null==(o=c.value)?void 0:o.selectionEnd;if(i.focused&&n){const e=[...t],o=e.length-+a;return n=Ga(t.slice(0,n)),e.splice(n-o,o),e.join("")}return Za(t,+a)}return t})(t);const d=s.length-t.length;if("number"===e.type||"digit"===e.type){const o="number"===e.type;if(t=Ve(t,o,o),"onBlur"===a&&""!==t&&(void 0!==e.min||void 0!==e.max)){const o=we(+t,null!=(n=e.min)?n:-1/0,null!=(l=e.max)?l:1/0);+t!==o&&(t=o.toString())}}let u=0;if(e.formatter&&a===e.formatTrigger){const{formatter:o,maxlength:a}=e;if(t=o(t),r(a)&&Ga(t)>+a&&(t=Za(t,+a)),c.value&&i.focused){const{selectionEnd:e}=c.value,t=Za(s,e);u=o(t).length-t.length}}if(c.value&&c.value.value!==t)if(i.focused){let{selectionStart:e,selectionEnd:o}=c.value;if(c.value.value=t,r(e)&&r(o)){const a=t.length;d?(e-=d,o-=d):u&&(e+=u,o+=u),c.value.setSelectionRange(Math.min(e,a),Math.min(o,a))}}else c.value.value=t;t!==e.modelValue&&o("update:modelValue",t)},k=e=>{e.target.composing||C(e.target.value)},S=()=>{var e;return null==(e=c.value)?void 0:e.blur()},T=()=>{var e;return null==(e=c.value)?void 0:e.focus()},B=()=>{const t=c.value;"textarea"===e.type&&e.autosize&&t&&function(e,t){const o=ee();e.style.height="auto";let a=e.scrollHeight;if(l(t)){const{maxHeight:e,minHeight:o}=t;void 0!==e&&(a=Math.min(a,e)),void 0!==o&&(a=Math.max(a,o))}a&&(e.style.height=`${a}px`,te(o))}(t,e.autosize)},P=e=>{i.focused=!0,o("focus",e),t.nextTick(B),m("readonly")&&S()},O=e=>{i.focused=!1,C(v(),"onBlur"),o("blur",e),m("readonly")||(N("onBlur"),t.nextTick(B),ne())},A=e=>o("clickInput",e),I=e=>o("clickLeftIcon",e),z=e=>o("clickRightIcon",e),E=t.computed(()=>"boolean"==typeof e.error?e.error:!(!p||!p.props.showError||"failed"!==i.status)||void 0),$=t.computed(()=>{const e=m("labelWidth"),t=m("labelAlign");if(e&&"top"!==t)return{width:ue(e)}}),L=t=>{if(13===t.keyCode){p&&p.props.submitOnEnter||"textarea"===e.type||re(t),"search"===e.type&&S()}o("keypress",t)},M=()=>e.id||`${n}-input`,F=()=>{const o=_a("control",[m("inputAlign"),{error:E.value,custom:!!a.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(a.input)return t.createVNode("div",{class:o,onClick:A},[a.input()]);const l={id:M(),ref:c,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:o,disabled:m("disabled"),readonly:m("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${n}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:O,onFocus:P,onInput:k,onClick:A,onChange:qa,onKeypress:L,onCompositionend:qa,onCompositionstart:Xa};return"textarea"===e.type?t.createVNode("textarea",t.mergeProps(l,{inputmode:e.inputmode}),null):t.createVNode("input",t.mergeProps((r=e.type,i=e.inputmode,"number"===r&&(r="text",null!=i||(i="decimal")),"digit"===r&&(r="tel",null!=i||(i="numeric")),{type:r,inputmode:i}),l),null);var r,i},H=()=>{const o=a["right-icon"];if(e.rightIcon||o)return t.createVNode("div",{class:_a("right-icon"),onClick:z},[o?o():t.createVNode(wt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},j=()=>{if(e.showWordLimit&&e.maxlength){const o=Ga(v());return t.createVNode("div",{class:_a("word-limit")},[t.createVNode("span",{class:_a("word-num")},[o]),t.createTextVNode("/"),e.maxlength])}},W=()=>{if(p&&!1===p.props.showErrorMessage)return;const o=e.errorMessage||i.validateMessage;if(o){const e=a["error-message"],n=m("errorMessageAlign");return t.createVNode("div",{class:_a("error-message",n)},[e?e({message:o}):o])}},U=()=>[t.createVNode("div",{class:_a("body")},[F(),h.value&&t.createVNode(wt,{ref:d,name:e.clearIcon,class:_a("clear")},null),H(),a.button&&t.createVNode("div",{class:_a("button")},[a.button()])]),j(),W()];return ot({blur:S,focus:T,validate:V,formValue:g,resetValidation:w,getValidationStatus:()=>i.status}),t.provide(K,{customValue:u,resetValidation:w,validateWithTrigger:N}),t.watch(()=>e.modelValue,()=>{C(v()),w(),N("onChange"),t.nextTick(B)}),t.onMounted(()=>{C(v(),e.formatTrigger),t.nextTick(B)}),R("touchstart",e=>{re(e),o("update:modelValue",""),o("clear",e)},{target:t.computed(()=>{var e;return null==(e=d.value)?void 0:e.$el})}),()=>{const o=m("disabled"),l=m("labelAlign"),r=(()=>{const o=a["left-icon"];if(e.leftIcon||o)return t.createVNode("div",{class:_a("left-icon"),onClick:I},[o?o():t.createVNode(wt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])})();return t.createVNode(Fa,{size:e.size,class:_a({error:E.value,disabled:o,[`label-${l}`]:l}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:$.value,valueClass:_a("value"),titleClass:[_a("label",[l,{required:b.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:r&&"top"!==l?()=>r:null,title:()=>{const o=(()=>{const o=m("labelWidth"),l=m("labelAlign"),r=m("colon")?":":"";return a.label?[a.label(),r]:e.label?t.createVNode("label",{id:`${n}-label`,for:a.input?void 0:M(),"data-allow-mismatch":"attribute",onClick:e=>{re(e),T()},style:"top"===l&&o?{width:ue(o)}:void 0},[e.label+r]):void 0})();return"top"===l?[r,o].filter(Boolean):o||[]},value:U,extra:a.extra})}}}));let tn=0;const[on,an]=Ie("toast"),nn=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],ln={icon:String,show:Boolean,type:N("text"),overlay:Boolean,message:g,iconSize:g,duration:x(2e3),position:N("middle"),teleport:[String,Object],wordBreak:String,className:h,iconPrefix:String,transition:N("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:h,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:g};var rn=t.defineComponent({name:on,props:ln,emits:["update:show"],setup(e,{emit:o,slots:a}){let n,l=!1;const i=()=>{const t=e.show&&e.forbidClick;l!==t&&(l=t,l?(tn||document.body.classList.add("van-toast--unclickable"),tn++):tn&&(tn--,tn||document.body.classList.remove("van-toast--unclickable")))},s=e=>o("update:show",e),c=()=>{e.closeOnClick&&s(!1)},d=()=>clearTimeout(n),u=()=>{const{icon:o,type:a,iconSize:n,iconPrefix:l,loadingType:r}=e;return o||"success"===a||"fail"===a?t.createVNode(wt,{name:o||a,size:n,class:an("icon"),classPrefix:l},null):"loading"===a?t.createVNode(Tt,{class:an("loading"),size:n,type:r},null):void 0},p=()=>{const{type:o,message:n}=e;return a.message?t.createVNode("div",{class:an("text")},[a.message()]):r(n)&&""!==n?"html"===o?t.createVNode("div",{key:0,class:an("text"),innerHTML:String(n)},null):t.createVNode("div",{class:an("text")},[n]):void 0};return t.watch(()=>[e.show,e.forbidClick],i),t.watch(()=>[e.show,e.type,e.message,e.duration],()=>{d(),e.show&&e.duration>0&&(n=setTimeout(()=>{s(!1)},e.duration))}),t.onMounted(i),t.onUnmounted(i),()=>t.createVNode(to,t.mergeProps({class:[an([e.position,"normal"===e.wordBreak?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:c,onClosed:d,"onUpdate:show":s},v(e,nn)),{default:()=>[u(),p()]})}});function sn(){const e=t.reactive({show:!1}),o=t=>{e.show=t},n=t=>{a(e,t,{transitionAppear:!0}),o(!0)},l=()=>o(!1);return ot({open:n,close:l,toggle:o}),{open:n,close:l,state:e,toggle:o}}function cn(e){const o=t.createApp(e),a=document.createElement("div");return document.body.appendChild(a),{instance:o.mount(a),unmount(){o.unmount(),document.body.removeChild(a)}}}const dn={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let un=[],pn=!1,vn=a({},dn);const mn=new Map;function fn(e){return l(e)?e:{message:e}}function hn(){if(!un.length||pn){const e=function(){const{instance:e,unmount:o}=cn({setup(){const a=t.ref(""),{open:n,state:l,close:r,toggle:i}=sn(),s=()=>{pn&&(un=un.filter(t=>t!==e),o())};return t.watch(a,e=>{l.message=e}),t.getCurrentInstance().render=()=>{const e={onClosed:s,"onUpdate:show":i};return t.createVNode(rn,t.mergeProps(l,e),null)},{open:n,close:r,message:a}}});return e}();un.push(e)}return un[un.length-1]}function gn(e={}){if(!n)return{};const t=hn(),o=fn(e);return t.open(a({},vn,mn.get(o.type||vn.type),o)),t}const bn=e=>t=>gn(a({type:e},fn(t))),yn=bn("loading"),wn=bn("success"),xn=bn("fail");const Vn=Ye(rn),[Nn,Cn]=Ie("switch"),kn={size:g,loading:Boolean,disabled:Boolean,modelValue:h,activeColor:String,inactiveColor:String,activeValue:{type:h,default:!0},inactiveValue:{type:h,default:!1}};const Sn=Ye(t.defineComponent({name:Nn,props:kn,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=()=>e.modelValue===e.activeValue,l=()=>{if(!e.disabled&&!e.loading){const t=n()?e.inactiveValue:e.activeValue;o("update:modelValue",t),o("change",t)}},r=()=>{if(e.loading){const o=n()?e.activeColor:e.inactiveColor;return t.createVNode(Tt,{class:Cn("loading"),color:o},null)}if(a.node)return a.node()};return _(()=>e.modelValue),()=>{var o;const{size:i,loading:s,disabled:c,activeColor:d,inactiveColor:u}=e,p=n(),v={fontSize:ue(i),backgroundColor:p?d:u};return t.createVNode("div",{role:"switch",class:Cn({on:p,loading:s,disabled:c}),style:v,tabindex:c?void 0:0,"aria-checked":p,onClick:l},[t.createVNode("div",{class:Cn("node")},[r()]),null==(o=a.background)?void 0:o.call(a)])}}})),[Tn,Bn]=Ie("address-edit-detail"),Pn=Ie("address-edit")[2];var Dn=t.defineComponent({name:Tn,props:{show:Boolean,rows:g,value:String,rules:Array,focused:Boolean,maxlength:g,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(e,{emit:o}){const a=t.ref(),n=()=>e.focused&&e.searchResult&&e.showSearchResult,l=()=>{if(!n())return;const{searchResult:a}=e;return a.map(e=>t.createVNode(Fa,{clickable:!0,key:(e.name||"")+(e.address||""),icon:"location-o",title:e.name,label:e.address,class:Bn("search-item"),border:!1,onClick:()=>(e=>{o("selectSearch",e),o("input",`${e.address||""} ${e.name||""}`.trim())})(e)},null))},r=e=>o("blur",e),i=e=>o("focus",e),s=e=>o("input",e);return()=>{if(e.show)return t.createVNode(t.Fragment,null,[t.createVNode(en,{autosize:!0,clearable:!0,ref:a,class:Bn(),rows:e.rows,type:"textarea",rules:e.rules,label:Pn("addressDetail"),border:!n(),maxlength:e.maxlength,modelValue:e.value,placeholder:Pn("addressDetail"),onBlur:r,onFocus:i,"onUpdate:modelValue":s},null),l()])}}});const[On,An,In]=Ie("address-edit"),zn={name:"",tel:"",city:"",county:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},En={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:b,showDetail:b,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:g,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:V(1),detailMaxlength:V(200),areaColumnsPlaceholder:w(),addressInfo:{type:Object,default:()=>a({},zn)},telValidator:{type:Function,default:d}};const $n=Ye(t.defineComponent({name:On,props:En,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(e,{emit:o,slots:n}){const r=t.ref(),i=t.reactive({}),s=t.ref(!1),c=t.ref(!1),d=t.computed(()=>l(e.areaList)&&Object.keys(e.areaList).length),u=t.computed(()=>{const{province:e,city:t,county:o,areaCode:a}=i;if(a){const a=[e,t,o];return e&&e===t&&a.splice(1,1),a.filter(Boolean).join("/")}return""}),p=t.computed(()=>{var t;return(null==(t=e.searchResult)?void 0:t.length)&&c.value}),v=e=>{c.value="addressDetail"===e,o("focus",e)},m=(e,t)=>{o("change",{key:e,value:t})},f=t.computed(()=>{const{validator:t,telValidator:o}=e,a=(e,o)=>({validator:a=>{if(t){const o=t(e,a);if(o)return o}return!!a||o}});return{name:[a("name",In("nameEmpty"))],tel:[a("tel",In("telInvalid")),{validator:o,message:In("telInvalid")}],areaCode:[a("areaCode",In("areaEmpty"))],addressDetail:[a("addressDetail",In("addressEmpty"))]}}),h=()=>o("save",i),g=e=>{i.addressDetail=e,o("changeDetail",e)},b=e=>{i.province=e[0].text,i.city=e[1].text,i.county=e[2].text},y=({selectedValues:e,selectedOptions:t})=>{e.some(e=>e===ka)?gn(In("areaEmpty")):(s.value=!1,b(t),o("changeArea",t))},w=()=>o("delete",i),x=()=>{setTimeout(()=>{c.value=!1})},V=()=>{if(e.showSetDefault){const e={"right-icon":()=>t.createVNode(Sn,{modelValue:i.isDefault,"onUpdate:modelValue":e=>i.isDefault=e,onChange:e=>o("changeDefault",e)},null)};return t.withDirectives(t.createVNode(Fa,{center:!0,border:!1,title:In("defaultAddress"),class:An("default")},e),[[t.vShow,!p.value]])}};return ot({setAreaCode:e=>{i.areaCode=e||""},setAddressDetail:e=>{i.addressDetail=e}}),t.watch(()=>e.addressInfo,e=>{a(i,zn,e),t.nextTick(()=>{var e;const t=null==(e=r.value)?void 0:e.getSelectedOptions();t&&t.every(e=>e&&e.value!==ka)&&b(t)})},{deep:!0,immediate:!0}),()=>{const{disableArea:a}=e;return t.createVNode(Wa,{class:An(),onSubmit:h},{default:()=>{var l;return[t.createVNode("div",{class:An("fields")},[t.createVNode(en,{modelValue:i.name,"onUpdate:modelValue":[e=>i.name=e,e=>m("name",e)],clearable:!0,label:In("name"),rules:f.value.name,placeholder:In("name"),onFocus:()=>v("name")},null),t.createVNode(en,{modelValue:i.tel,"onUpdate:modelValue":[e=>i.tel=e,e=>m("tel",e)],clearable:!0,type:"tel",label:In("tel"),rules:f.value.tel,maxlength:e.telMaxlength,placeholder:In("tel"),onFocus:()=>v("tel")},null),t.withDirectives(t.createVNode(en,{readonly:!0,label:In("area"),"is-link":!a,modelValue:u.value,rules:e.showArea?f.value.areaCode:void 0,placeholder:e.areaPlaceholder||In("area"),onFocus:()=>v("areaCode"),onClick:()=>{o("clickArea"),s.value=!a}},null),[[t.vShow,e.showArea]]),t.createVNode(Dn,{show:e.showDetail,rows:e.detailRows,rules:f.value.addressDetail,value:i.addressDetail,focused:c.value,maxlength:e.detailMaxlength,searchResult:e.searchResult,showSearchResult:e.showSearchResult,onBlur:x,onFocus:()=>v("addressDetail"),onInput:g,onSelectSearch:e=>o("selectSearch",e)},null),null==(l=n.default)?void 0:l.call(n)]),V(),t.withDirectives(t.createVNode("div",{class:An("buttons")},[t.createVNode(Ot,{block:!0,round:!0,type:"primary",text:e.saveButtonText||In("save"),class:An("button"),loading:e.isSaving,nativeType:"submit"},null),e.showDelete&&t.createVNode(Ot,{block:!0,round:!0,class:An("button"),loading:e.isDeleting,text:e.deleteButtonText||In("delete"),onClick:w},null)]),[[t.vShow,!p.value]]),t.createVNode(to,{show:s.value,"onUpdate:show":e=>s.value=e,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[t.createVNode(za,{modelValue:i.areaCode,"onUpdate:modelValue":e=>i.areaCode=e,ref:r,loading:!d.value,areaList:e.areaList,columnsPlaceholder:e.areaColumnsPlaceholder,onConfirm:y,onCancel:()=>{s.value=!1}},null)]})]}})}}})),[Ln,Mn]=Ie("radio-group"),Fn={shape:String,disabled:Boolean,iconSize:g,direction:String,modelValue:h,checkedColor:String},Rn=Symbol(Ln);const Hn=Ye(t.defineComponent({name:Ln,props:Fn,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=I(Rn);return t.watch(()=>e.modelValue,e=>o("change",e)),n({props:e,updateValue:e=>o("update:modelValue",e)}),_(()=>e.modelValue),()=>{var o;return t.createVNode("div",{class:Mn([e.direction]),role:"radiogroup"},[null==(o=a.default)?void 0:o.call(a)])}}})),[jn,Wn]=Ie("checkbox-group"),Un={max:g,shape:N("round"),disabled:Boolean,iconSize:g,direction:String,modelValue:w(),checkedColor:String},Yn=Symbol(jn);const Xn=Ye(t.defineComponent({name:jn,props:Un,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{children:n,linkChildren:l}=I(Yn),r=e=>o("update:modelValue",e);return t.watch(()=>e.modelValue,e=>o("change",e)),ot({toggleAll:(e={})=>{"boolean"==typeof e&&(e={checked:e});const{checked:t,skipDisabled:o}=e,a=n.filter(e=>!!e.props.bindGroup&&(e.props.disabled&&o?e.checked.value:null!=t?t:!e.checked.value)).map(e=>e.name);r(a)}}),_(()=>e.modelValue),l({props:e,updateValue:r}),()=>{var o;return t.createVNode("div",{class:Wn([e.direction])},[null==(o=a.default)?void 0:o.call(a)])}}})),[qn,Gn]=Ie("tag"),Zn={size:String,mark:Boolean,show:b,type:N("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};const Kn=Ye(t.defineComponent({name:qn,props:Zn,emits:["close"],setup(e,{slots:o,emit:a}){const n=e=>{e.stopPropagation(),a("close",e)},l=()=>{var a;const{type:l,mark:r,plain:i,round:s,size:c,closeable:d}=e,u={mark:r,plain:i,round:s};c&&(u[c]=c);const p=d&&t.createVNode(wt,{name:"cross",class:[Gn("close"),je],onClick:n},null);return t.createVNode("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:Gn([u,l])},[null==(a=o.default)?void 0:a.call(o),p])};return()=>t.createVNode(t.Transition,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?l():null]})}})),_n={name:h,disabled:Boolean,iconSize:g,modelValue:h,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Jn=t.defineComponent({props:a({},_n,{bem:y(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:b,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t=>{if(e.parent&&e.bindGroup)return e.parent.props[t]},r=t.computed(()=>{if(e.parent&&e.bindGroup){const t=l("disabled")||e.disabled;if("checkbox"===e.role){const o=l("modelValue").length,a=l("max");return t||a&&o>=+a&&!e.checked}return t}return e.disabled}),i=t.computed(()=>l("direction")),s=t.computed(()=>{const t=e.checkedColor||l("checkedColor");if(t&&(e.checked||e.indeterminate)&&!r.value)return{borderColor:t,backgroundColor:t}}),c=t.computed(()=>e.shape||l("shape")||"round"),d=t=>{const{target:a}=t,l=n.value,i=l===a||(null==l?void 0:l.contains(a));r.value||!i&&e.labelDisabled||o("toggle"),o("click",t)},u=()=>{var o,i;const{bem:d,checked:u,indeterminate:p}=e,v=e.iconSize||l("iconSize");return t.createVNode("div",{ref:n,class:d("icon",[c.value,{disabled:r.value,checked:u,indeterminate:p}]),style:"dot"!==c.value?{fontSize:ue(v)}:{width:ue(v),height:ue(v),borderColor:null==(o=s.value)?void 0:o.borderColor}},[a.icon?a.icon({checked:u,disabled:r.value}):"dot"!==c.value?t.createVNode(wt,{name:p?"minus":"success",style:s.value},null):t.createVNode("div",{class:d("icon--dot__icon"),style:{backgroundColor:null==(i=s.value)?void 0:i.backgroundColor}},null)])},p=()=>{const{checked:o}=e;if(a.default)return t.createVNode("span",{class:e.bem("label",[e.labelPosition,{disabled:r.value}])},[a.default({checked:o,disabled:r.value})])};return()=>{const o="left"===e.labelPosition?[p(),u()]:[u(),p()];return t.createVNode("div",{role:e.role,class:e.bem([{disabled:r.value,"label-disabled":e.labelDisabled},i.value]),tabindex:r.value?void 0:0,"aria-checked":e.checked,onClick:d},[o])}}});const Qn=a({},_n,{shape:String}),[el,tl]=Ie("radio");const ol=Ye(t.defineComponent({name:el,props:Qn,emits:["update:modelValue"],setup(e,{emit:o,slots:a}){const{parent:n}=D(Rn),l=()=>{n?n.updateValue(e.name):o("update:modelValue",e.name)};return()=>t.createVNode(Jn,t.mergeProps({bem:tl,role:"radio",parent:n,checked:(n?n.props.modelValue:e.modelValue)===e.name,onToggle:l},e),v(a,["default","icon"]))}})),[al,nl]=Ie("checkbox"),ll=a({},_n,{shape:String,bindGroup:b,indeterminate:{type:Boolean,default:null}});const rl=Ye(t.defineComponent({name:al,props:ll,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{parent:n}=D(Yn),l=t.computed(()=>n&&e.bindGroup?-1!==n.props.modelValue.indexOf(e.name):!!e.modelValue),r=(t=!l.value)=>{n&&e.bindGroup?(t=>{const{name:o}=e,{max:a,modelValue:l}=n.props,r=l.slice();if(t)a&&r.length>=+a||r.includes(o)||(r.push(o),e.bindGroup&&n.updateValue(r));else{const t=r.indexOf(o);-1!==t&&(r.splice(t,1),e.bindGroup&&n.updateValue(r))}})(t):o("update:modelValue",t),null!==e.indeterminate&&o("change",t)};return t.watch(()=>e.modelValue,t=>{null===e.indeterminate&&o("change",t)}),ot({toggle:r,props:e,checked:l}),_(()=>e.modelValue),()=>t.createVNode(Jn,t.mergeProps({bem:nl,role:"checkbox",parent:n,checked:l.value,onToggle:r},e),v(a,["default","icon"]))}})),[il,sl]=Ie("address-item");var cl=t.defineComponent({name:il,props:{address:y(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:N("edit")},emits:["edit","click","select"],setup(e,{slots:o,emit:n}){const l=t=>{e.switchable&&n("select"),n("click",t)},r=()=>t.createVNode(wt,{name:e.rightIcon,class:sl("edit"),onClick:e=>{e.stopPropagation(),n("edit"),n("click",e)}},null),i=()=>{const{address:a,disabled:n,switchable:l,singleChoice:r}=e,i=[t.createVNode("div",{class:sl("name")},[`${a.name} ${a.tel}`,o.tag?o.tag(e.address):e.address.isDefault&&e.defaultTagText?t.createVNode(Kn,{type:"primary",round:!0,class:sl("tag")},{default:()=>[e.defaultTagText]}):void 0]),t.createVNode("div",{class:sl("address")},[a.address])];return l&&!n?r?t.createVNode(ol,{name:a.id,iconSize:18},{default:()=>[i]}):t.createVNode(rl,{name:a.id,iconSize:18},{default:()=>[i]}):i};return()=>{var n;const{disabled:s}=e;return t.createVNode("div",{class:sl({disabled:s}),onClick:l},[t.createVNode(Fa,{border:!1,titleClass:sl("title")},{title:i,"right-icon":r}),null==(n=o.bottom)?void 0:n.call(o,a({},e.address,{disabled:s}))])}}});const[dl,ul,pl]=Ie("address-list"),vl={list:w(),modelValue:[...g,Array],switchable:b,disabledText:String,disabledList:w(),showAddButton:b,addButtonText:String,defaultTagText:String,rightIcon:N("edit")};const ml=Ye(t.defineComponent({name:dl,props:vl,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(e,{slots:o,emit:a}){const n=t.computed(()=>!Array.isArray(e.modelValue)),l=(l,r)=>{if(l)return l.map((l,i)=>((l,r,i)=>t.createVNode(cl,{key:l.id,address:l,disabled:i,switchable:e.switchable,singleChoice:n.value,defaultTagText:e.defaultTagText,rightIcon:e.rightIcon,onEdit:()=>a(i?"editDisabled":"edit",l,r),onClick:e=>a("clickItem",l,r,{event:e}),onSelect:()=>{if(a(i?"selectDisabled":"select",l,r),!i)if(n.value)a("update:modelValue",l.id);else{const t=e.modelValue;t.includes(l.id)?a("update:modelValue",t.filter(e=>e!==l.id)):a("update:modelValue",[...t,l.id])}}},{bottom:o["item-bottom"],tag:o.tag}))(l,i,r))};return()=>{var r,i;const s=l(e.list),c=l(e.disabledList,!0),d=e.disabledText&&t.createVNode("div",{class:ul("disabled-text")},[e.disabledText]);return t.createVNode("div",{class:ul()},[null==(r=o.top)?void 0:r.call(o),!n.value&&Array.isArray(e.modelValue)?t.createVNode(Xn,{modelValue:e.modelValue},{default:()=>[s]}):t.createVNode(Hn,{modelValue:e.modelValue},{default:()=>[s]}),d,c,null==(i=o.default)?void 0:i.call(o),e.showAddButton?t.createVNode("div",{class:[ul("bottom"),"van-safe-area-bottom"]},[t.createVNode(Ot,{round:!0,block:!0,type:"primary",text:e.addButtonText||pl("add"),class:ul("add"),onClick:()=>a("add")},null)]):void 0])}}})),fl=C&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,hl="event",gl="observer";function bl(e,t){if(!e.length)return;const o=e.indexOf(t);return o>-1?e.splice(o,1):void 0}function yl(e,t){if("IMG"!==e.tagName||!e.getAttribute("data-srcset"))return;let o=e.getAttribute("data-srcset");const a=e.parentNode.offsetWidth*t;let n,l,r;o=o.trim().split(",");const i=o.map(e=>(e=e.trim(),n=e.lastIndexOf(" "),-1===n?(l=e,r=999998):(l=e.substr(0,n),r=parseInt(e.substr(n+1,e.length-n-2),10)),[r,l]));i.sort((e,t)=>{if(e[0]<t[0])return 1;if(e[0]>t[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0});let s,c="";for(let d=0;d<i.length;d++){s=i[d],c=s[1];const e=i[d+1];if(e&&e[0]<a){c=s[1];break}if(!e){c=s[1];break}}return c}const wl=(e=1)=>C&&window.devicePixelRatio||e;function xl(){if(!C)return!1;let e=!0;try{const t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=0===t.toDataURL("image/webp").indexOf("data:image/webp"))}catch(t){e=!1}return e}function Vl(e,t){let o=null,a=0;return function(...n){if(o)return;const l=()=>{a=Date.now(),o=!1,e.apply(this,n)};Date.now()-a>=t?l():o=setTimeout(l,t)}}function Nl(e,t,o){e.addEventListener(t,o,{capture:!1,passive:!0})}function Cl(e,t,o){e.removeEventListener(t,o,!1)}const kl=(e,t,o)=>{const a=new Image;if(!e||!e.src)return o(new Error("image src is required"));a.src=e.src,e.cors&&(a.crossOrigin=e.cors),a.onload=()=>t({naturalHeight:a.naturalHeight,naturalWidth:a.naturalWidth,src:a.src}),a.onerror=e=>o(e)};class Sl{constructor({max:e}){this.options={max:e||100},this.caches=[]}has(e){return this.caches.indexOf(e)>-1}add(e){this.has(e)||(this.caches.push(e),this.caches.length>this.options.max&&this.free())}free(){this.caches.shift()}}const[Tl,Bl]=Ie("back-top"),Pl={right:g,bottom:g,zIndex:g,target:[String,Object],offset:V(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};const Dl=Ye(t.defineComponent({name:Tl,inheritAttrs:!1,props:Pl,emits:["click"],setup(e,{emit:o,slots:l,attrs:r}){let i=!1;const s=t.ref(!1),c=t.ref(),d=t.ref(),u=t.computed(()=>a(ve(e.zIndex),{right:ue(e.right),bottom:ue(e.bottom)})),p=t=>{var a;o("click",t),null==(a=d.value)||a.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},v=()=>{s.value=!!d.value&&J(d.value)>=+e.offset},m=()=>{n&&t.nextTick(()=>{d.value=e.target?(()=>{const{target:t}=e;if("string"!=typeof t)return t;{const e=document.querySelector(t);if(e)return e}})():q(c.value),v()})};return R("scroll",Vl(v,100),{target:d}),t.onMounted(m),t.onActivated(()=>{i&&(s.value=!0,i=!1)}),t.onDeactivated(()=>{s.value&&e.teleport&&(s.value=!1,i=!0)}),t.watch(()=>e.target,m),()=>{const o=t.createVNode("div",t.mergeProps({ref:e.teleport?void 0:c,class:Bl({active:s.value}),style:u.value,onClick:p},r),[l.default?l.default():t.createVNode(wt,{name:"back-top",class:Bl("icon")},null)]);return e.teleport?[t.createVNode("div",{ref:c,class:Bl("placeholder")},null),t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[o]})]:o}}}));const Ol={top:V(10),rows:V(4),duration:V(4e3),autoPlay:b,delay:x(300),modelValue:w()},[Al,Il]=Ie("barrage");const zl=Ye(t.defineComponent({name:Al,props:Ol,emits:["update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=Il("item"),r=t.ref(0),i=[],s=t.ref(!0),c=t.ref(e.autoPlay),d=({id:t,text:a},d)=>{var u;const p=((t,o=e.delay)=>{const a=document.createElement("span");return a.className=l,a.innerText=String(t),a.style.animationDuration=`${e.duration}ms`,a.style.animationDelay=`${o}ms`,a.style.animationName="van-barrage",a.style.animationTimingFunction="linear",a})(a,s.value?d*e.delay:void 0);e.autoPlay||!1!==c.value||(p.style.animationPlayState="paused"),null==(u=n.value)||u.append(p),r.value++;const v=(r.value-1)%+e.rows*p.offsetHeight+ +e.top;p.style.top=`${v}px`,p.dataset.id=String(t),i.push(p),p.addEventListener("animationend",()=>{o("update:modelValue",[...e.modelValue].filter(e=>String(e.id)!==p.dataset.id))})},u=(e,t)=>{const o=new Map(t.map(e=>[e.id,e]));e.forEach((e,t)=>{o.has(e.id)?o.delete(e.id):d(e,t)}),o.forEach(e=>{const t=i.findIndex(t=>t.dataset.id===String(e.id));t>-1&&(i[t].remove(),i.splice(t,1))}),s.value=!1};t.watch(()=>e.modelValue.slice(),(e,t)=>u(null!=e?e:[],null!=t?t:[]),{deep:!0});const p=t.ref({});t.onMounted(()=>{return o=null,a=null,l=function*(){var o;p.value["--move-distance"]=`-${null==(o=n.value)?void 0:o.offsetWidth}px`,yield t.nextTick(),u(e.modelValue,[])},new Promise((e,t)=>{var n=e=>{try{i(l.next(e))}catch(o){t(o)}},r=e=>{try{i(l.throw(e))}catch(o){t(o)}},i=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,r);i((l=l.apply(o,a)).next())});var o,a,l});return ot({play:()=>{c.value=!0,i.forEach(e=>{e.style.animationPlayState="running"})},pause:()=>{c.value=!1,i.forEach(e=>{e.style.animationPlayState="paused"})}}),()=>{var e;return t.createVNode("div",{class:Il(),ref:n,style:p.value},[null==(e=a.default)?void 0:e.call(a)])}}})),[El,$l,Ll]=Ie("calendar");function Ml(e,t){const o=e.getFullYear(),a=t.getFullYear();if(o===a){const o=e.getMonth(),a=t.getMonth();return o===a?0:o>a?1:-1}return o>a?1:-1}function Fl(e,t){const o=Ml(e,t);if(0===o){const o=e.getDate(),a=t.getDate();return o===a?0:o>a?1:-1}return o}const Rl=e=>new Date(e),Hl=e=>Array.isArray(e)?e.map(Rl):Rl(e);function jl(e,t){const o=Rl(e);return o.setDate(o.getDate()+t),o}function Wl(e,t){const o=Rl(e);return o.setMonth(o.getMonth()+t),o.getDate()!==e.getDate()&&o.setDate(0),o}function Ul(e,t){const o=Rl(e);return o.setFullYear(o.getFullYear()+t),o.getDate()!==e.getDate()&&o.setDate(0),o}const Yl=e=>jl(e,-1),Xl=e=>jl(e,1),ql=e=>Wl(e,-1),Gl=e=>Wl(e,1),Zl=e=>Ul(e,-1),Kl=e=>Ul(e,1),_l=()=>{const e=new Date;return e.setHours(0,0,0,0),e};const Jl=a({},Va,{modelValue:w(),filter:Function,formatter:{type:Function,default:(e,t)=>t}}),Ql=Object.keys(Va);const er=(e,t)=>32-new Date(e,t-1,32).getDate(),tr=(e,t,o,a,n,l)=>{const r=function(e,t){if(e<0)return[];const o=Array(e);let a=-1;for(;++a<e;)o[a]=t(a);return o}(t-e+1,t=>{const n=ye(e+t);return a(o,{text:n,value:n})});return n?n(o,r,l):r},or=(e,t)=>e.map((e,o)=>{const a=t[o];if(a.length){const t=+a[0].value,o=+a[a.length-1].value;return ye(we(+e,t,o))}return e}),[ar]=Ie("calendar-day");var nr=t.defineComponent({name:ar,props:{item:y(Object),color:String,index:Number,offset:x(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(e,{emit:o,slots:a}){const n=t.computed(()=>{const{item:t,index:o,color:a,offset:n,rowHeight:l}=e,r={height:l};if("placeholder"===t.type)return r.width="100%",r;if(0===o&&(r.marginLeft=100*n/7+"%"),a)switch(t.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":r.background=a;break;case"middle":r.color=a}return t.date&&function(e,t=0){const o=new Date(e.getFullYear(),e.getMonth()+1,0),a=t+e.getDate()-1,n=t+o.getDate()-1;return Math.floor(a/7)===Math.floor(n/7)}(t.date,n)&&(r.marginBottom=0),r}),l=()=>{"disabled"!==e.item.type?o("click",e.item):o("clickDisabledDate",e.item)},r=()=>{const{topInfo:o}=e.item;if(o||a["top-info"])return t.createVNode("div",{class:$l("top-info")},[a["top-info"]?a["top-info"](e.item):o])},i=()=>{const{bottomInfo:o}=e.item;if(o||a["bottom-info"])return t.createVNode("div",{class:$l("bottom-info")},[a["bottom-info"]?a["bottom-info"](e.item):o])},s=()=>{const{item:o,color:n,rowHeight:l}=e,{type:s}=o,c=[r(),a.text?a.text(e.item):e.item.text,i()];return"selected"===s?t.createVNode("div",{class:$l("selected-day"),style:{width:l,height:l,background:n}},[c]):c};return()=>{const{type:o,className:a}=e.item;return"placeholder"===o?t.createVNode("div",{class:$l("day"),style:n.value},null):t.createVNode("div",{role:"gridcell",style:n.value,class:[$l("day",o),a],tabindex:"disabled"===o?void 0:-1,onClick:l},[s()])}}});const[lr]=Ie("calendar-month"),rr={date:y(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:g,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var ir=t.defineComponent({name:lr,props:rr,emits:["click","clickDisabledDate"],setup(e,{emit:o,slots:a}){const[n,l]=function(e=!1){const o=t.ref(e);return[o,(e=!o.value)=>{o.value=e}]}(),r=t.ref(),i=t.ref(),s=Ze(i),c=t.computed(()=>{return t=e.date,Ll("monthTitle",t.getFullYear(),t.getMonth()+1);var t}),d=t.computed(()=>ue(e.rowHeight)),u=t.computed(()=>{const t=e.date.getDate(),o=(e.date.getDay()-t%7+8)%7;return e.firstDayOfWeek?(o+7-e.firstDayOfWeek)%7:o}),p=t.computed(()=>er(e.date.getFullYear(),e.date.getMonth()+1)),m=t.computed(()=>n.value||!e.lazyRender),f=t=>{const{type:o,minDate:a,maxDate:n,currentDate:l}=e;if(a&&Fl(t,a)<0||n&&Fl(t,n)>0)return"disabled";if(null===l)return"";if(Array.isArray(l)){if("multiple"===o)return(t=>{const o=t=>e.currentDate.some(e=>0===Fl(e,t));if(o(t)){const e=Yl(t),a=Xl(t),n=o(e),l=o(a);return n&&l?"multiple-middle":n?"end":l?"start":"multiple-selected"}return""})(t);if("range"===o)return(t=>{const[o,a]=e.currentDate;if(!o)return"";const n=Fl(t,o);if(!a)return 0===n?"start":"";const l=Fl(t,a);return e.allowSameDay&&0===n&&0===l?"start-end":0===n?"start":0===l?"end":n>0&&l<0?"middle":""})(t)}else if("single"===o)return 0===Fl(t,l)?"selected":"";return""},h=t=>{if("range"===e.type){if("start"===t||"end"===t)return Ll(t);if("start-end"===t)return`${Ll("start")}/${Ll("end")}`}},g=()=>{if(e.showMonthTitle)return t.createVNode("div",{class:$l("month-title")},[a["month-title"]?a["month-title"]({date:e.date,text:c.value}):c.value])},b=()=>{if(e.showMark&&m.value)return t.createVNode("div",{class:$l("month-mark")},[e.date.getMonth()+1])},y=t.computed(()=>{const e=Math.ceil((p.value+u.value)/7);return Array(e).fill({type:"placeholder"})}),w=t.computed(()=>{const t=[],o=e.date.getFullYear(),a=e.date.getMonth();for(let n=1;n<=p.value;n++){const l=new Date(o,a,n),r=f(l);let i={date:l,type:r,text:n,bottomInfo:h(r)};e.formatter&&(i=e.formatter(i)),t.push(i)}return t}),x=t.computed(()=>w.value.filter(e=>"disabled"===e.type)),V=(n,l)=>t.createVNode(nr,{item:n,index:l,color:e.color,offset:u.value,rowHeight:d.value,onClick:e=>o("click",e),onClickDisabledDate:e=>o("clickDisabledDate",e)},v(a,["top-info","bottom-info","text"]));return ot({getTitle:()=>c.value,getHeight:()=>s.value,setVisible:l,scrollToDate:(e,t)=>{if(r.value){const o=P(r.value),a=y.value.length,n=(Math.ceil((t.getDate()+u.value)/7)-1)*o.height/a;Q(e,o.top+n+e.scrollTop-P(e).top)}},disabledDays:x}),()=>t.createVNode("div",{class:$l("month"),ref:i},[g(),t.createVNode("div",{ref:r,role:"grid",class:$l("days")},[b(),(m.value?w:y).value.map(V)])])}});const[sr]=Ie("calendar-header");var cr=t.defineComponent({name:sr,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:N("none")},emits:["clickSubtitle","panelChange"],setup(e,{slots:o,emit:a}){const n=t.computed(()=>e.date&&e.minDate&&Ml(ql(e.date),e.minDate)<0),l=t.computed(()=>e.date&&e.minDate&&Ml(Zl(e.date),e.minDate)<0),r=t.computed(()=>e.date&&e.maxDate&&Ml(Gl(e.date),e.maxDate)>0),i=t.computed(()=>e.date&&e.maxDate&&Ml(Kl(e.date),e.maxDate)>0),s=()=>{if(e.showTitle){const a=e.title||Ll("title"),n=o.title?o.title():a;return t.createVNode("div",{class:$l("header-title")},[n])}},c=e=>a("clickSubtitle",e),d=e=>a("panelChange",e),u=a=>{const s="year-month"===e.switchMode,c=o[a?"next-month":"prev-month"],u=o[a?"next-year":"prev-year"],p=a?r.value:n.value,v=a?i.value:l.value,m=a?"arrow":"arrow-left",f=a?"arrow-double-right":"arrow-double-left",h=t.createVNode("view",{class:$l("header-action",{disabled:p}),onClick:p?void 0:()=>d((a?Gl:ql)(e.date))},[c?c({disabled:p}):t.createVNode(wt,{class:{[je]:!p},name:m},null)]),g=s&&t.createVNode("view",{class:$l("header-action",{disabled:v}),onClick:v?void 0:()=>d((a?Kl:Zl)(e.date))},[u?u({disabled:v}):t.createVNode(wt,{class:{[je]:!v},name:f},null)]);return a?[h,g]:[g,h]},p=()=>{if(e.showSubtitle){const a=o.subtitle?o.subtitle({date:e.date,text:e.subtitle}):e.subtitle,n="none"!==e.switchMode;return t.createVNode("div",{class:$l("header-subtitle",{"with-switch":n}),onClick:c},[n?[u(),t.createVNode("div",{class:$l("header-subtitle-text")},[a]),u(!0)]:a])}},v=()=>{const{firstDayOfWeek:o}=e,a=Ll("weekdays"),n=[...a.slice(o,7),...a.slice(0,o)];return t.createVNode("div",{class:$l("weekdays")},[n.map(e=>t.createVNode("span",{class:$l("weekday")},[e]))])};return()=>t.createVNode("div",{class:$l("header")},[s(),p(),v()])}});const dr={show:Boolean,type:N("single"),switchMode:N("none"),title:String,color:String,round:b,readonly:Boolean,poppable:b,maxRange:V(null),position:N("bottom"),teleport:[String,Object],showMark:b,showTitle:b,formatter:Function,rowHeight:g,confirmText:String,rangePrompt:String,lazyRender:b,showConfirm:b,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:b,closeOnPopstate:b,showRangePrompt:b,confirmDisabledText:String,closeOnClickOverlay:b,safeAreaInsetTop:Boolean,safeAreaInsetBottom:b,minDate:{type:Date,validator:c},maxDate:{type:Date,validator:c},firstDayOfWeek:{type:g,default:0,validator:e=>e>=0&&e<=6}};const ur=Ye(t.defineComponent({name:El,props:dr,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","clickOverlay","panelChange"],setup(e,{emit:o,slots:a}){const n=t.computed(()=>"none"!==e.switchMode),l=t.computed(()=>e.minDate||n.value?e.minDate:_l()),r=t.computed(()=>e.maxDate||n.value?e.maxDate:Wl(_l(),6)),i=(e,t=l.value,o=r.value)=>t&&-1===Fl(e,t)?t:o&&1===Fl(e,o)?o:e,s=(t=e.defaultDate)=>{const{type:o,allowSameDay:a}=e;if(null===t)return t;const n=_l();if("range"===o){Array.isArray(t)||(t=[]),1===t.length&&1===Fl(t[0],n)&&(t=[]);const e=l.value,o=r.value;return[i(t[0]||n,e,o?a?o:Yl(o):void 0),i(t[1]||(a?n:Xl(n)),e?a?e:Xl(e):void 0)]}return"multiple"===o?Array.isArray(t)?t.map(e=>i(e)):[i(n)]:(t&&!Array.isArray(t)||(t=n),i(t))};let d;const u=t.ref(),p=t.ref(s()),m=t.ref((()=>{const e=Array.isArray(p.value)?p.value[0]:p.value;return e||i(_l())})()),f=t.ref(),[h,g]=Mo(),b=t.computed(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),y=t.computed(()=>{const e=[];if(!l.value||!r.value)return e;const t=new Date(l.value);t.setDate(1);do{e.push(new Date(t)),t.setMonth(t.getMonth()+1)}while(1!==Ml(t,r.value));return e}),w=t.computed(()=>{if(p.value){if("range"===e.type)return!p.value[0]||!p.value[1];if("multiple"===e.type)return!p.value.length}return!p.value}),x=()=>{const e=J(u.value),t=e+d,a=y.value.map((e,t)=>h.value[t].getHeight());if(t>a.reduce((e,t)=>e+t,0)&&e>0)return;let n,l=0;const r=[-1,-1];for(let i=0;i<y.value.length;i++){const s=h.value[i];l<=t&&l+a[i]>=e&&(r[1]=i,n||(n=s,r[0]=i),h.value[i].showed||(h.value[i].showed=!0,o("monthShow",{date:s.date,title:s.getTitle()}))),l+=a[i]}y.value.forEach((e,t)=>{const o=t>=r[0]-1&&t<=r[1]+1;h.value[t].setVisible(o)}),n&&(f.value=n)},V=e=>{n.value?m.value=e:k(()=>{y.value.some((t,o)=>0===Ml(t,e)&&(u.value&&h.value[o].scrollToDate(u.value,e),!0)),x()})},N=()=>{if(!e.poppable||e.show)if(p.value){const t="single"===e.type?p.value:p.value[0];c(t)&&V(t)}else n.value||k(x)},C=()=>{e.poppable&&!e.show||(n.value||k(()=>{d=Math.floor(P(u).height)}),N())},S=(e=s())=>{p.value=e,N()},T=e=>{m.value=e,o("panelChange",{date:e})},B=()=>{var e;return o("confirm",null!=(e=p.value)?e:Hl(p.value))},D=(t,a)=>{const n=e=>{p.value=e,o("select",Hl(e))};if(a&&"range"===e.type){const a=(t=>{const{maxRange:a,rangePrompt:n,showRangePrompt:l}=e;return!(a&&function(e){const t=e[0].getTime();return(e[1].getTime()-t)/864e5+1}(t)>+a&&(l&&gn(n||Ll("rangePrompt",a)),o("overRange"),1))})(t);if(!a)return void n([t[0],jl(t[0],+e.maxRange-1)])}n(t),a&&!e.showConfirm&&B()},O=t.computed(()=>h.value.reduce((e,t)=>{var o,a;return e.push(...null!=(a=null==(o=t.disabledDays)?void 0:o.value)?a:[]),e},[])),A=t=>{if(e.readonly||!t.date)return;const{date:a}=t,{type:n}=e;if("range"===n){if(!p.value)return void D([a]);const[t,o]=p.value;if(t&&!o){const o=Fl(a,t);if(1===o){const e=((e,t,o)=>{var a;return null==(a=e.find(e=>-1===Fl(t,e.date)&&-1===Fl(e.date,o)))?void 0:a.date})(O.value,t,a);if(e){const o=Yl(e);-1===Fl(t,o)?D([t,o]):D([a])}else D([t,a],!0)}else-1===o?D([a]):e.allowSameDay&&D([a,a],!0)}else D([a])}else if("multiple"===n){if(!p.value)return void D([a]);const t=p.value,n=t.findIndex(e=>0===Fl(e,a));if(-1!==n){const[e]=t.splice(n,1);o("unselect",Rl(e))}else e.maxRange&&t.length>=+e.maxRange?gn(e.rangePrompt||Ll("rangePrompt",e.maxRange)):D([...t,a])}else D(a,!0)},I=e=>o("clickOverlay",e),z=e=>o("update:show",e),E=(i,s)=>{const c=0!==s||!e.showSubtitle;return t.createVNode(ir,t.mergeProps({ref:n.value?f:g(s),date:i,currentDate:p.value,showMonthTitle:c,firstDayOfWeek:b.value,lazyRender:!n.value&&e.lazyRender,maxDate:r.value,minDate:l.value},v(e,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:A,onClickDisabledDate:e=>o("clickDisabledDate",e)}),v(a,["top-info","bottom-info","month-title","text"]))},$=()=>{if(a.footer)return a.footer();if(e.showConfirm){const o=a["confirm-text"],n=w.value,l=n?e.confirmDisabledText:e.confirmText;return t.createVNode(Ot,{round:!0,block:!0,type:"primary",color:e.color,class:$l("confirm"),disabled:n,nativeType:"button",onClick:B},{default:()=>[o?o({disabled:n}):l||Ll("confirm")]})}},L=()=>{var i,s;return t.createVNode("div",{class:$l()},[t.createVNode(cr,{date:null==(i=f.value)?void 0:i.date,maxDate:r.value,minDate:l.value,title:e.title,subtitle:null==(s=f.value)?void 0:s.getTitle(),showTitle:e.showTitle,showSubtitle:e.showSubtitle,switchMode:e.switchMode,firstDayOfWeek:b.value,onClickSubtitle:e=>o("clickSubtitle",e),onPanelChange:T},v(a,["title","subtitle","prev-month","prev-year","next-month","next-year"])),t.createVNode("div",{ref:u,class:$l("body"),onScroll:n.value?void 0:x},[n.value?E(m.value,0):y.value.map(E)]),t.createVNode("div",{class:[$l("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[$()])])};return t.watch(()=>e.show,C),t.watch(()=>[e.type,e.minDate,e.maxDate,e.switchMode],()=>S(s(p.value))),t.watch(()=>e.defaultDate,e=>{S(e)}),ot({reset:S,scrollToDate:V,getSelectedDate:()=>p.value}),F(C),()=>e.poppable?t.createVNode(to,{show:e.show,class:$l("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,onClickOverlay:I,"onUpdate:show":z},{default:L}):L()}})),[pr,vr]=Ie("image"),mr={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:g,height:g,radius:g,lazyLoad:Boolean,iconSize:g,showError:b,errorIcon:N("photo-fail"),iconPrefix:String,showLoading:b,loadingIcon:N("photo"),crossorigin:String,referrerpolicy:String,decoding:String};const fr=Ye(t.defineComponent({name:pr,props:mr,emits:["load","error"],setup(e,{emit:o,slots:a}){const l=t.ref(!1),i=t.ref(!0),s=t.ref(),{$Lazyload:c}=t.getCurrentInstance().proxy,d=t.computed(()=>{const t={width:ue(e.width),height:ue(e.height)};return r(e.radius)&&(t.overflow="hidden",t.borderRadius=ue(e.radius)),t});t.watch(()=>e.src,()=>{l.value=!1,i.value=!0});const u=e=>{i.value&&(i.value=!1,o("load",e))},p=()=>{const e=new Event("load");Object.defineProperty(e,"target",{value:s.value,enumerable:!0}),u(e)},v=e=>{l.value=!0,i.value=!1,o("error",e)},m=(o,a,n)=>n?n():t.createVNode(wt,{name:o,size:e.iconSize,class:a,classPrefix:e.iconPrefix},null),f=()=>{if(l.value||!e.src)return;const o={alt:e.alt,class:vr("img"),decoding:e.decoding,style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?t.withDirectives(t.createVNode("img",t.mergeProps({ref:s},o),null),[[t.resolveDirective("lazy"),e.src]]):t.createVNode("img",t.mergeProps({ref:s,src:e.src,onLoad:u,onError:v},o),null)},h=({el:e})=>{const o=()=>{e===s.value&&i.value&&p()};s.value?o():t.nextTick(o)},g=({el:e})=>{e!==s.value||l.value||v()};return c&&n&&(c.$on("loaded",h),c.$on("error",g),t.onBeforeUnmount(()=>{c.$off("loaded",h),c.$off("error",g)})),t.onMounted(()=>{t.nextTick(()=>{var t;(null==(t=s.value)?void 0:t.complete)&&!e.lazyLoad&&p()})}),()=>{var o;return t.createVNode("div",{class:vr({round:e.round,block:e.block}),style:d.value},[f(),i.value&&e.showLoading?t.createVNode("div",{class:vr("loading")},[m(e.loadingIcon,vr("loading-icon"),a.loading)]):l.value&&e.showError?t.createVNode("div",{class:vr("error")},[m(e.errorIcon,vr("error-icon"),a.error)]):void 0,null==(o=a.default)?void 0:o.call(a)])}}})),[hr,gr]=Ie("card"),br={tag:String,num:g,desc:String,thumb:String,title:String,price:g,centered:Boolean,lazyLoad:Boolean,currency:N("¥"),thumbLink:String,originPrice:g};const yr=Ye(t.defineComponent({name:hr,props:br,emits:["clickThumb"],setup(e,{slots:o,emit:a}){const n=()=>{if(o.tag||e.tag)return t.createVNode("div",{class:gr("tag")},[o.tag?o.tag():t.createVNode(Kn,{mark:!0,type:"primary"},{default:()=>[e.tag]})])},l=()=>{if(o.thumb||e.thumb)return t.createVNode("a",{href:e.thumbLink,class:gr("thumb"),onClick:e=>a("clickThumb",e)},[o.thumb?o.thumb():t.createVNode(fr,{src:e.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:e.lazyLoad},null),n()])},i=()=>{const o=e.price.toString().split(".");return t.createVNode("div",null,[t.createVNode("span",{class:gr("price-currency")},[e.currency]),t.createVNode("span",{class:gr("price-integer")},[o[0]]),o.length>1&&t.createVNode(t.Fragment,null,[t.createTextVNode("."),t.createVNode("span",{class:gr("price-decimal")},[o[1]])])])};return()=>{var a,n,s;const c=o.num||r(e.num),d=o.price||r(e.price),u=o["origin-price"]||r(e.originPrice),p=c||d||u||o.bottom,v=d&&t.createVNode("div",{class:gr("price")},[o.price?o.price():i()]),m=u&&t.createVNode("div",{class:gr("origin-price")},[o["origin-price"]?o["origin-price"]():`${e.currency} ${e.originPrice}`]),f=c&&t.createVNode("div",{class:gr("num")},[o.num?o.num():`x${e.num}`]),h=o.footer&&t.createVNode("div",{class:gr("footer")},[o.footer()]),g=p&&t.createVNode("div",{class:gr("bottom")},[null==(a=o["price-top"])?void 0:a.call(o),v,m,f,null==(n=o.bottom)?void 0:n.call(o)]);return t.createVNode("div",{class:gr()},[t.createVNode("div",{class:gr("header")},[l(),t.createVNode("div",{class:gr("content",{centered:e.centered})},[t.createVNode("div",null,[o.title?o.title():e.title?t.createVNode("div",{class:[gr("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,o.desc?o.desc():e.desc?t.createVNode("div",{class:[gr("desc"),"van-ellipsis"]},[e.desc]):void 0,null==(s=o.tags)?void 0:s.call(o)]),g])]),h])}}})),[wr,xr,Vr]=Ie("cascader"),Nr={title:String,options:w(),closeable:b,swipeable:b,closeIcon:N("cross"),showHeader:b,modelValue:g,fieldNames:Object,placeholder:String,activeColor:String};const Cr=Ye(t.defineComponent({name:wr,props:Nr,emits:["close","change","finish","clickTab","update:modelValue"],setup(e,{slots:o,emit:n}){const l=t.ref([]),r=t.ref(0),[i,s]=Mo(),{text:c,value:d,children:u}=a({text:"text",value:"value",children:"children"},e.fieldNames),p=(e,t)=>{for(const o of e){if(o[d]===t)return[o];if(o[u]){const e=p(o[u],t);if(e)return[o,...e]}}},v=()=>{const{options:o,modelValue:a}=e;if(void 0!==a){const e=p(o,a);if(e){let a=o;return l.value=e.map(e=>{const t={options:a,selected:e},o=a.find(t=>t[d]===e[d]);return o&&(a=o[u]),t}),a&&l.value.push({options:a,selected:null}),void t.nextTick(()=>{r.value=l.value.length-1})}}l.value=[{options:o,selected:null}]},m=()=>n("close"),f=({name:e,title:t})=>n("clickTab",e,t),h=(a,i,p)=>{const{disabled:v}=a,m=!(!i||a[d]!==i[d]),f=a.color||(m?e.activeColor:void 0),h=o.option?o.option({option:a,selected:m}):t.createVNode("span",null,[a[c]]);return t.createVNode("li",{ref:m?s(p):void 0,role:"menuitemradio",class:[xr("option",{selected:m,disabled:v}),a.className],style:{color:f},tabindex:v?void 0:m?0:-1,"aria-checked":m,"aria-disabled":v||void 0,onClick:()=>((e,o)=>{if(e.disabled)return;if(l.value[o].selected=e,l.value.length>o+1&&(l.value=l.value.slice(0,o+1)),e[u]){const a={options:e[u],selected:null};l.value[o+1]?l.value[o+1]=a:l.value.push(a),t.nextTick(()=>{r.value++})}const a=l.value.map(e=>e.selected).filter(Boolean);n("update:modelValue",e[d]);const i={value:e[d],tabIndex:o,selectedOptions:a};n("change",i),e[u]||n("finish",i)})(a,p)},[h,m?t.createVNode(wt,{name:"success",class:xr("selected-icon")},null):null])},g=(e,o,a)=>t.createVNode("ul",{role:"menu",class:xr("options")},[e.map(e=>h(e,o,a))]),b=(a,n)=>{const{options:l,selected:r}=a,i=e.placeholder||Vr("select"),s=r?r[c]:i;return t.createVNode(fa,{title:s,titleClass:xr("tab",{unselected:!r})},{default:()=>{var e,t;return[null==(e=o["options-top"])?void 0:e.call(o,{tabIndex:n}),g(l,r,n),null==(t=o["options-bottom"])?void 0:t.call(o,{tabIndex:n})]}})};return v(),t.watch(r,e=>{const t=i.value[e];t&&(e=>{const t=e.parentElement;t&&(t.scrollTop=e.offsetTop-(t.offsetHeight-e.offsetHeight)/2)})(t)}),t.watch(()=>e.options,v,{deep:!0}),t.watch(()=>e.modelValue,e=>{if(void 0!==e){if(l.value.map(e=>{var t;return null==(t=e.selected)?void 0:t[d]}).includes(e))return}v()}),()=>t.createVNode("div",{class:xr()},[e.showHeader?t.createVNode("div",{class:xr("header")},[t.createVNode("h2",{class:xr("title")},[o.title?o.title():e.title]),e.closeable?t.createVNode(wt,{name:e.closeIcon,class:[xr("close-icon"),je],onClick:m},null):null]):null,t.createVNode(ha,{active:r.value,"onUpdate:active":e=>r.value=e,shrink:!0,animated:!0,class:xr("tabs"),color:e.activeColor,swipeable:e.swipeable,onClickTab:f},{default:()=>[l.value.map(b)]})])}})),[kr,Sr]=Ie("cell-group"),Tr={title:String,inset:Boolean,border:b};const Br=Ye(t.defineComponent({name:kr,inheritAttrs:!1,props:Tr,setup(e,{slots:o,attrs:a}){const n=()=>{var n;return t.createVNode("div",t.mergeProps({class:[Sr({inset:e.inset}),{[Re]:e.border&&!e.inset}]},a,qt()),[null==(n=o.default)?void 0:n.call(o)])};return()=>e.title||o.title?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:Sr("title",{inset:e.inset})},[o.title?o.title():e.title]),n()]):n()}})),[Pr,Dr]=Ie("circle");let Or=0;const Ar=e=>Math.min(Math.max(+e,0),100);const Ir={text:String,size:g,fill:N("none"),rate:V(100),speed:V(0),color:[String,Object],clockwise:b,layerColor:String,currentRate:x(0),strokeWidth:V(40),strokeLinecap:String,startPosition:N("top")};const zr=Ye(t.defineComponent({name:Pr,props:Ir,emits:["update:currentRate"],setup(e,{emit:o,slots:a}){const n="van-circle-"+Or++,r=t.computed(()=>+e.strokeWidth+1e3),i=t.computed(()=>function(e,t){const o=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${o} 0, 1000 a 500, 500 0 1, ${o} 0, -1000`}(e.clockwise,r.value)),s=t.computed(()=>{const t={top:0,right:90,bottom:180,left:270}[e.startPosition];if(t)return{transform:`rotate(${t}deg)`}});t.watch(()=>e.rate,t=>{let a;const n=Date.now(),l=e.currentRate,r=Ar(t),i=Math.abs(1e3*(l-r)/+e.speed),s=()=>{const e=Date.now(),t=Math.min((e-n)/i,1)*(r-l)+l;o("update:currentRate",Ar(parseFloat(t.toFixed(1)))),(r>l?t<r:t>r)&&(a=k(s))};e.speed?(a&&S(a),a=k(s)):o("update:currentRate",r)},{immediate:!0});const c=()=>{const{strokeWidth:o,currentRate:a,strokeLinecap:r}=e,s=3140*a/100,c=l(e.color)?`url(#${n})`:e.color,d={stroke:c,strokeWidth:+o+1+"px",strokeLinecap:r,strokeDasharray:`${s}px 3140px`};return t.createVNode("path",{d:i.value,style:d,class:Dr("hover"),stroke:c},null)},d=()=>{const o={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return t.createVNode("path",{class:Dr("layer"),style:o,d:i.value},null)},u=()=>{const{color:o}=e;if(!l(o))return;const a=Object.keys(o).sort((e,t)=>parseFloat(e)-parseFloat(t)).map((e,a)=>t.createVNode("stop",{key:a,offset:e,"stop-color":o[e]},null));return t.createVNode("defs",null,[t.createVNode("linearGradient",{id:n,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[a])])};return()=>t.createVNode("div",{class:Dr(),style:pe(e.size)},[t.createVNode("svg",{viewBox:`0 0 ${r.value} ${r.value}`,style:s.value},[u(),d(),c()]),a.default?a.default():e.text?t.createVNode("div",{class:Dr("text")},[e.text]):void 0])}})),[Er,$r]=Ie("row"),Lr=Symbol(Er),Mr={tag:N("div"),wrap:b,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var Fr=t.defineComponent({name:Er,props:Mr,setup(e,{slots:o}){const{children:a,linkChildren:n}=I(Lr),l=t.computed(()=>{const e=[[]];let t=0;return a.forEach((o,a)=>{t+=Number(o.span),t>24?(e.push([a]),t-=24):e[e.length-1].push(a)}),e});return n({spaces:t.computed(()=>{let t=0;t=Array.isArray(e.gutter)?Number(e.gutter[0])||0:Number(e.gutter);const o=[];return t?(l.value.forEach(e=>{const a=t*(e.length-1)/e.length;e.forEach((e,n)=>{if(0===n)o.push({right:a});else{const n=t-o[e-1].right,l=a-n;o.push({left:n,right:l})}})}),o):o}),verticalSpaces:t.computed(()=>{const{gutter:t}=e,o=[];if(Array.isArray(t)&&t.length>1){const e=Number(t[1])||0;if(e<=0)return o;l.value.forEach((t,a)=>{a!==l.value.length-1&&t.forEach(()=>{o.push({bottom:e})})})}return o})}),()=>{const{tag:a,wrap:n,align:l,justify:r}=e;return t.createVNode(a,{class:$r({[`align-${l}`]:l,[`justify-${r}`]:r,nowrap:!n})},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}});const[Rr,Hr]=Ie("col"),jr={tag:N("div"),span:V(0),offset:g};const Wr=Ye(t.defineComponent({name:Rr,props:jr,setup(e,{slots:o}){const{parent:n,index:l}=D(Lr),r=t.computed(()=>{if(!n)return;const{spaces:e,verticalSpaces:t}=n;let o={};if(e&&e.value&&e.value[l.value]){const{left:t,right:a}=e.value[l.value];o={paddingLeft:t?`${t}px`:null,paddingRight:a?`${a}px`:null}}const{bottom:r}=t.value[l.value]||{};return a(o,{marginBottom:r?`${r}px`:null})});return()=>{const{tag:a,span:n,offset:l}=e;return t.createVNode(a,{style:r.value,class:Hr({[n]:n,[`offset-${l}`]:l})},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}})),[Ur,Yr]=Ie("collapse"),Xr=Symbol(Ur),qr={border:b,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};const Gr=Ye(t.defineComponent({name:Ur,props:qr,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n,children:l}=I(Xr),r=e=>{o("change",e),o("update:modelValue",e)};return ot({toggleAll:(t={})=>{if(e.accordion)return;"boolean"==typeof t&&(t={expanded:t});const{expanded:o,skipDisabled:a}=t,n=l.filter(e=>e.disabled&&a?e.expanded.value:null!=o?o:!e.expanded.value).map(e=>e.itemName.value);r(n)}}),n({toggle:(t,o)=>{const{accordion:a,modelValue:n}=e;r(a?t===n?"":t:o?n.concat(t):n.filter(e=>e!==t))},isExpanded:t=>{const{accordion:o,modelValue:a}=e;return o?a===t:a.includes(t)}}),()=>{var o;return t.createVNode("div",{class:[Yr(),{[Re]:e.border}]},[null==(o=a.default)?void 0:o.call(a)])}}})),[Zr,Kr]=Ie("collapse-item"),_r=["icon","title","value","label","right-icon"],Jr=a({},La,{name:g,isLink:b,disabled:Boolean,readonly:Boolean,lazyRender:b});const Qr=Ye(t.defineComponent({name:Zr,props:Jr,setup(e,{slots:o}){const a=t.ref(),n=t.ref(),{parent:l,index:r}=D(Xr);if(!l)return;const i=t.computed(()=>{var t;return null!=(t=e.name)?t:r.value}),s=t.computed(()=>l.isExpanded(i.value)),c=t.ref(s.value),d=Xt(()=>c.value||!e.lazyRender),u=()=>{s.value?a.value&&(a.value.style.height=""):c.value=!1};t.watch(s,(e,o)=>{if(null===o)return;e&&(c.value=!0);(e?t.nextTick:k)(()=>{if(!n.value||!a.value)return;const{offsetHeight:t}=n.value;if(t){const o=`${t}px`;a.value.style.height=e?"0":o,T(()=>{a.value&&(a.value.style.height=e?o:"0")})}else u()})});const p=(e=!s.value)=>{l.toggle(i.value,e)},m=()=>{e.disabled||e.readonly||p()},f=()=>{const{border:a,disabled:n,readonly:l}=e,r=v(e,Object.keys(La));return l&&(r.isLink=!1),(n||l)&&(r.clickable=!1),t.createVNode(Fa,t.mergeProps({role:"button",class:Kr("title",{disabled:n,expanded:s.value,borderless:!a}),"aria-expanded":String(s.value),onClick:m},r),v(o,_r))},h=d(()=>{var e;return t.withDirectives(t.createVNode("div",{ref:a,class:Kr("wrapper"),onTransitionend:u},[t.createVNode("div",{ref:n,class:Kr("content")},[null==(e=o.default)?void 0:e.call(o)])]),[[t.vShow,c.value]])});return ot({toggle:p,expanded:s,itemName:i}),()=>t.createVNode("div",{class:[Kr({border:r.value&&e.border})]},[f(),h()])}})),ei=Ye(ht),[ti,oi,ai]=Ie("contact-card"),ni={tel:String,name:String,type:N("add"),addText:String,editable:b};const li=Ye(t.defineComponent({name:ti,props:ni,emits:["click"],setup(e,{emit:o}){const a=t=>{e.editable&&o("click",t)},n=()=>"add"===e.type?e.addText||ai("addContact"):[t.createVNode("div",null,[`${ai("name")}:${e.name}`]),t.createVNode("div",null,[`${ai("tel")}:${e.tel}`])];return()=>t.createVNode(Fa,{center:!0,icon:"edit"===e.type?"contact":"add-square",class:oi([e.type]),border:!1,isLink:e.editable,titleClass:oi("title"),onClick:a},{title:n})}})),[ri,ii,si]=Ie("contact-edit"),ci={tel:"",name:""},di={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>a({},ci)},telValidator:{type:Function,default:d}};const ui=Ye(t.defineComponent({name:ri,props:di,emits:["save","delete","changeDefault"],setup(e,{emit:o}){const n=t.reactive(a({},ci,e.contactInfo)),l=()=>{e.isSaving||o("save",n)},r=()=>o("delete",n),i=()=>t.createVNode(Sn,{modelValue:n.isDefault,"onUpdate:modelValue":e=>n.isDefault=e,onChange:e=>o("changeDefault",e)},null),s=()=>{if(e.showSetDefault)return t.createVNode(Fa,{title:e.setDefaultLabel,class:ii("switch-cell"),border:!1},{"right-icon":i})};return t.watch(()=>e.contactInfo,e=>a(n,ci,e)),()=>t.createVNode(Wa,{class:ii(),onSubmit:l},{default:()=>[t.createVNode("div",{class:ii("fields")},[t.createVNode(en,{modelValue:n.name,"onUpdate:modelValue":e=>n.name=e,clearable:!0,label:si("name"),rules:[{required:!0,message:si("nameEmpty")}],maxlength:"30",placeholder:si("name")},null),t.createVNode(en,{modelValue:n.tel,"onUpdate:modelValue":e=>n.tel=e,clearable:!0,type:"tel",label:si("tel"),rules:[{validator:e.telValidator,message:si("telInvalid")}],placeholder:si("tel")},null)]),s(),t.createVNode("div",{class:ii("buttons")},[t.createVNode(Ot,{block:!0,round:!0,type:"primary",text:si("save"),class:ii("button"),loading:e.isSaving,nativeType:"submit"},null),e.isEdit&&t.createVNode(Ot,{block:!0,round:!0,text:si("delete"),class:ii("button"),loading:e.isDeleting,onClick:r},null)])]})}})),[pi,vi,mi]=Ie("contact-list"),fi={list:Array,addText:String,modelValue:h,defaultTagText:String};const hi=Ye(t.defineComponent({name:pi,props:fi,emits:["add","edit","select","update:modelValue"],setup(e,{emit:o}){const a=(a,n)=>t.createVNode(Fa,{key:a.id,isLink:!0,center:!0,class:vi("item"),titleClass:vi("item-title"),onClick:()=>{o("update:modelValue",a.id),o("select",a,n)}},{icon:()=>t.createVNode(wt,{name:"edit",class:vi("edit"),onClick:e=>{e.stopPropagation(),o("edit",a,n)}},null),title:()=>{const o=[`${a.name},${a.tel}`];return a.isDefault&&e.defaultTagText&&o.push(t.createVNode(Kn,{type:"primary",round:!0,class:vi("item-tag")},{default:()=>[e.defaultTagText]})),o},"right-icon":()=>t.createVNode(ol,{class:vi("radio"),name:a.id,iconSize:18},null)});return()=>t.createVNode("div",{class:vi()},[t.createVNode(Hn,{modelValue:e.modelValue,class:vi("group")},{default:()=>[e.list&&e.list.map(a)]}),t.createVNode("div",{class:[vi("bottom"),"van-safe-area-bottom"]},[t.createVNode(Ot,{round:!0,block:!0,type:"primary",class:vi("add"),text:e.addText||mi("addContact"),onClick:()=>o("add")},null)])])}}));const[gi,bi]=Ie("count-down"),yi={time:V(0),format:N("HH:mm:ss"),autoStart:b,millisecond:Boolean};const wi=Ye(t.defineComponent({name:gi,props:yi,emits:["change","finish"],setup(e,{emit:o,slots:a}){const{start:n,pause:l,reset:r,current:i}=M({time:+e.time,millisecond:e.millisecond,onChange:e=>o("change",e),onFinish:()=>o("finish")}),s=t.computed(()=>function(e,t){const{days:o}=t;let{hours:a,minutes:n,seconds:l,milliseconds:r}=t;if(e.includes("DD")?e=e.replace("DD",ye(o)):a+=24*o,e.includes("HH")?e=e.replace("HH",ye(a)):n+=60*a,e.includes("mm")?e=e.replace("mm",ye(n)):l+=60*n,e.includes("ss")?e=e.replace("ss",ye(l)):r+=1e3*l,e.includes("S")){const t=ye(r,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}(e.format,i.value)),c=()=>{r(+e.time),e.autoStart&&n()};return t.watch(()=>e.time,c,{immediate:!0}),ot({start:n,pause:l,reset:c}),()=>t.createVNode("div",{role:"timer",class:bi()},[a.default?a.default(i.value):s.value])}}));function xi(e){const t=new Date(1e3*e);return`${t.getFullYear()}.${ye(t.getMonth()+1)}.${ye(t.getDate())}`}const Vi=e=>(e/100).toFixed(e%100==0?0:e%10==0?1:2),[Ni,Ci,ki]=Ie("coupon");const Si=Ye(t.defineComponent({name:Ni,props:{chosen:Boolean,coupon:y(Object),disabled:Boolean,currency:N("¥")},setup(e){const o=t.computed(()=>{const{startAt:t,endAt:o}=e.coupon;return`${xi(t)} - ${xi(o)}`}),a=t.computed(()=>{const{coupon:o,currency:a}=e;if(o.valueDesc)return[o.valueDesc,t.createVNode("span",null,[o.unitDesc||""])];if(o.denominations){const e=Vi(o.denominations);return[t.createVNode("span",null,[a]),` ${e}`]}return o.discount?ki("discount",((n=o.discount)/10).toFixed(n%10==0?0:1)):"";var n}),n=t.computed(()=>{const t=Vi(e.coupon.originCondition||0);return"0"===t?ki("unlimited"):ki("condition",t)});return()=>{const{chosen:l,coupon:r,disabled:i}=e,s=i&&r.reason||r.description;return t.createVNode("div",{class:Ci({disabled:i})},[t.createVNode("div",{class:Ci("content")},[t.createVNode("div",{class:Ci("head")},[t.createVNode("h2",{class:Ci("amount")},[a.value]),t.createVNode("p",{class:Ci("condition")},[r.condition||n.value])]),t.createVNode("div",{class:Ci("body")},[t.createVNode("p",{class:Ci("name")},[r.name]),t.createVNode("p",{class:Ci("valid")},[o.value]),!i&&t.createVNode(rl,{class:Ci("corner"),modelValue:l},null)])]),s&&t.createVNode("p",{class:Ci("description")},[s])])}}})),[Ti,Bi,Pi]=Ie("coupon-cell"),Di={title:String,border:b,editable:b,coupons:w(),currency:N("¥"),chosenCoupon:{type:[Number,Array],default:-1}};function Oi({coupons:e,chosenCoupon:t,currency:o}){let a=0,n=!1;return(Array.isArray(t)?t:[t]).forEach(t=>{const o=e[+t];o&&(n=!0,a+=(e=>{const{value:t,denominations:o}=e;return r(t)?t:r(o)?o:0})(o))}),n?`-${o} ${(a/100).toFixed(2)}`:0===e.length?Pi("noCoupon"):Pi("count",e.length)}const Ai=Ye(t.defineComponent({name:Ti,props:Di,setup:e=>()=>{const o=Array.isArray(e.chosenCoupon)?e.chosenCoupon.length:e.coupons[+e.chosenCoupon];return t.createVNode(Fa,{class:Bi(),value:Oi(e),title:e.title||Pi("title"),border:e.border,isLink:e.editable,valueClass:Bi("value",{selected:o})},null)}})),[Ii,zi]=Ie("empty"),Ei={image:N("default"),imageSize:[Number,String,Array],description:String};const $i=Ye(t.defineComponent({name:Ii,props:Ei,setup(e,{slots:o}){const a=()=>{const a=o.description?o.description():e.description;if(a)return t.createVNode("p",{class:zi("description")},[a])},n=()=>{if(o.default)return t.createVNode("div",{class:zi("bottom")},[o.default()])},l=Lo(),r=e=>`${l}-${e}`,i=e=>`url(#${r(e)})`,s=(e,o,a)=>t.createVNode("stop",{"stop-color":e,offset:`${o}%`,"stop-opacity":a},null),c=(e,t)=>[s(e,0),s(t,100)],d=e=>[t.createVNode("defs",null,[t.createVNode("radialGradient",{id:r(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[s("#EBEDF0",0),s("#F2F3F5",100,.3)])]),t.createVNode("ellipse",{fill:i(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],u=()=>[t.createVNode("defs",null,[t.createVNode("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[s("#FFF",0,.5),s("#F2F3F5",100)])]),t.createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:i("a")},null),t.createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:i("a")},null)])],p=()=>[t.createVNode("defs",null,[t.createVNode("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[s("#F2F3F5",0,.3),s("#F2F3F5",100)])]),t.createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:i("b")},null),t.createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:i("b")},null)])],v=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[s("#FFF",0,.5),s("#F2F3F5",100)]),t.createVNode("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[s("#EBEDF0",0),s("#DCDEE0",100,0)]),t.createVNode("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),t.createVNode("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[s("#EBEDF0",0),s("#FFF",100,0)])]),t.createVNode("g",{fill:"none"},[u(),t.createVNode("path",{fill:i(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),t.createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:i(2),"data-allow-mismatch":"attribute"},null),t.createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:i(3)},null),t.createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:i(3)},null),t.createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:i(3)},null),t.createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:i(3)},null)]),t.createVNode("g",{transform:"translate(31 105)"},[t.createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),t.createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),t.createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),m=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[c("#EAEDF1","#DCDEE0")]),t.createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[c("#EAEDF1","#DCDEE0")])]),u(),p(),t.createVNode("g",{transform:"translate(36 50)",fill:"none"},[t.createVNode("g",{transform:"translate(8)"},[t.createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),t.createVNode("rect",{fill:i(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),t.createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),t.createVNode("g",{transform:"translate(15 17)",fill:i(6),"data-allow-mismatch":"attribute"},[t.createVNode("rect",{width:"34",height:"6",rx:"1"},null),t.createVNode("path",{d:"M0 14h34v6H0z"},null),t.createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),t.createVNode("rect",{fill:i(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),t.createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),f=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",null,[t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8),"data-allow-mismatch":"attribute"},[c("#EAEDF1","#DCDEE0")])]),u(),p(),d("c"),t.createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:i(8),"data-allow-mismatch":"attribute"},null)]),h=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[c("#EEE","#D8D8D8")]),t.createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[c("#FFF","#F7F8FA")])]),u(),p(),d("d"),t.createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[t.createVNode("rect",{fill:i(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),t.createVNode("rect",{fill:i(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),t.createVNode("circle",{stroke:i(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),t.createVNode("circle",{fill:i(12),cx:"27",cy:"27",r:"16"},null),t.createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:i(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),g=()=>{var a;if(o.image)return o.image();const n={error:f,search:h,network:v,default:m};return(null==(a=n[e.image])?void 0:a.call(n))||t.createVNode("img",{src:e.image},null)};return()=>t.createVNode("div",{class:zi()},[t.createVNode("div",{class:zi("image"),style:pe(e.imageSize)},[g()]),a(),n()])}})),[Li,Mi,Fi]=Ie("coupon-list"),Ri={code:N(""),coupons:w(),currency:N("¥"),showCount:b,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:w(),showExchangeBar:b,showCloseButton:b,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:x(1),exchangeButtonText:String,displayedCouponIndex:x(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};const Hi=Ye(t.defineComponent({name:Li,props:Ri,emits:["change","exchange","update:code"],setup(e,{emit:o,slots:a}){const[n,l]=Mo(),r=t.ref(),i=t.ref(),s=t.ref(0),c=t.ref(0),d=t.ref(e.code),u=t.computed(()=>!e.exchangeButtonLoading&&(e.exchangeButtonDisabled||!d.value||d.value.length<e.exchangeMinLength)),p=()=>{const e=P(r).height,t=P(i).height+44;c.value=(e>t?e:ce.value)-t},v=()=>{o("exchange",d.value),e.code||(d.value="")},m=e=>{t.nextTick(()=>{var t;return null==(t=n.value[e])?void 0:t.scrollIntoView()})},f=()=>t.createVNode($i,{image:e.emptyImage},{default:()=>[t.createVNode("p",{class:Mi("empty-tip")},[Fi("noCoupon")])]}),h=()=>{if(e.showExchangeBar)return t.createVNode("div",{ref:i,class:Mi("exchange-bar")},[t.createVNode(en,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,clearable:!0,border:!1,class:Mi("field"),placeholder:e.inputPlaceholder||Fi("placeholder"),maxlength:"20"},null),t.createVNode(Ot,{plain:!0,type:"primary",class:Mi("exchange"),text:e.exchangeButtonText||Fi("exchange"),loading:e.exchangeButtonLoading,disabled:u.value,onClick:v},null)])},g=()=>{const{coupons:n,chosenCoupon:r}=e,i=e.showCount?` (${n.length})`:"",s=(e.enabledTitle||Fi("enable"))+i;return t.createVNode(fa,{title:s},{default:()=>{var i;return[t.createVNode("div",{class:Mi("list",{"with-bottom":e.showCloseButton}),style:{height:`${c.value}px`}},[n.map((a,n)=>t.createVNode(Si,{key:a.id,ref:l(n),coupon:a,chosen:Array.isArray(r)?r.includes(n):n===r,currency:e.currency,onClick:()=>o("change",Array.isArray(r)?((e=[],t=0)=>e.includes(t)?e.filter(e=>e!==t):[...e,t])(r,n):n)},null)),!n.length&&f(),null==(i=a["list-footer"])?void 0:i.call(a)])]}})},b=()=>{const{disabledCoupons:o}=e,n=e.showCount?` (${o.length})`:"",l=(e.disabledTitle||Fi("disabled"))+n;return t.createVNode(fa,{title:l},{default:()=>{var n;return[t.createVNode("div",{class:Mi("list",{"with-bottom":e.showCloseButton}),style:{height:`${c.value}px`}},[o.map(o=>t.createVNode(Si,{disabled:!0,key:o.id,coupon:o,currency:e.currency},null)),!o.length&&f(),null==(n=a["disabled-list-footer"])?void 0:n.call(a)])]}})};return t.watch(()=>e.code,e=>{d.value=e}),t.watch(ce,p),t.watch(d,e=>o("update:code",e)),t.watch(()=>e.displayedCouponIndex,m),t.onMounted(()=>{p(),m(e.displayedCouponIndex)}),()=>t.createVNode("div",{ref:r,class:Mi()},[h(),t.createVNode(ha,{active:s.value,"onUpdate:active":e=>s.value=e,class:Mi("tab")},{default:()=>[g(),b()]}),t.createVNode("div",{class:Mi("bottom")},[a["list-button"]?a["list-button"]():t.withDirectives(t.createVNode(Ot,{round:!0,block:!0,type:"primary",class:Mi("close"),text:e.closeButtonText||Fi("close"),onClick:()=>o("change",Array.isArray(e.chosenCoupon)?[]:-1)},null),[[t.vShow,e.showCloseButton]])])])}})),ji=(new Date).getFullYear(),[Wi]=Ie("date-picker"),Ui=a({},Jl,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(ji-10,0,1),validator:c},maxDate:{type:Date,default:()=>new Date(ji+10,11,31),validator:c}});const Yi=Ye(t.defineComponent({name:Wi,props:Ui,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(e.modelValue),l=t.ref(!1),r=t.ref(),i=t.computed(()=>l.value?e.modelValue:n.value),s=t=>t===e.minDate.getFullYear(),c=t=>t===e.maxDate.getFullYear(),d=t=>{const{minDate:o,columnsType:a}=e,n=a.indexOf(t),l=i.value[n];if(l)return+l;switch(t){case"year":return o.getFullYear();case"month":return o.getMonth()+1;case"day":return o.getDate()}},u=()=>{const t=d("year"),o=d("month"),a=s(t)&&(t=>t===e.minDate.getMonth()+1)(o)?e.minDate.getDate():1,n=c(t)&&(t=>t===e.maxDate.getMonth()+1)(o)?e.maxDate.getDate():er(t,o);return tr(a,n,"day",e.formatter,e.filter,i.value)},p=t.computed(()=>e.columnsType.map(t=>{switch(t){case"year":return(()=>{const t=e.minDate.getFullYear(),o=e.maxDate.getFullYear();return tr(t,o,"year",e.formatter,e.filter,i.value)})();case"month":return(()=>{const t=d("year"),o=s(t)?e.minDate.getMonth()+1:1,a=c(t)?e.maxDate.getMonth()+1:12;return tr(o,a,"month",e.formatter,e.filter,i.value)})();case"day":return u();default:return[]}}));t.watch(n,t=>{m(t,e.modelValue)||o("update:modelValue",t)}),t.watch(()=>e.modelValue,(e,t)=>{l.value=m(t,n.value),e=or(e,p.value),m(e,n.value)||(n.value=e),l.value=!1},{immediate:!0});const f=(...e)=>o("change",...e),h=(...e)=>o("cancel",...e),g=(...e)=>o("confirm",...e);return ot({confirm:()=>{var e;return null==(e=r.value)?void 0:e.confirm()},getSelectedDate:()=>n.value}),()=>t.createVNode(Da,t.mergeProps({ref:r,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,columns:p.value,onChange:f,onCancel:h,onConfirm:g},v(e,Ql)),a)}})),[Xi,qi,Gi]=Ie("dialog"),Zi=a({},Rt,{title:String,theme:String,width:g,message:[String,Function],callback:Function,allowHtml:Boolean,className:h,transition:N("van-dialog-bounce"),messageAlign:String,closeOnPopstate:b,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:b,closeOnClickOverlay:Boolean,keyboardEnabled:b,destroyOnClose:Boolean}),Ki=[...Ht,"transition","closeOnPopstate","destroyOnClose"];var _i=t.defineComponent({name:Xi,props:Zi,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:a,slots:n}){const l=t.ref(),r=t.reactive({confirm:!1,cancel:!1}),s=e=>a("update:show",e),c=t=>{var o;s(!1),null==(o=e.callback)||o.call(e,t)},d=t=>()=>{e.show&&(a(t),e.beforeClose?(r[t]=!0,Ue(e.beforeClose,{args:[t],done(){c(t),r[t]=!1},canceled(){r[t]=!1}})):c(t))},u=d("cancel"),p=d("confirm"),m=t.withKeys(t=>{var n,r;if(!e.keyboardEnabled)return;if(t.target!==(null==(r=null==(n=l.value)?void 0:n.popupRef)?void 0:r.value))return;({Enter:e.showConfirmButton?p:o,Escape:e.showCancelButton?u:o})[t.key](),a("keydown",t)},["enter","esc"]),f=()=>{const o=n.title?n.title():e.title;if(o)return t.createVNode("div",{class:qi("header",{isolated:!e.message&&!n.default})},[o])},h=o=>{const{message:a,allowHtml:n,messageAlign:l}=e,r=qi("message",{"has-title":o,[l]:l}),s=i(a)?a():a;return n&&"string"==typeof s?t.createVNode("div",{class:r,innerHTML:s},null):t.createVNode("div",{class:r},[s])},g=()=>{if(n.default)return t.createVNode("div",{class:qi("content")},[n.default()]);const{title:o,message:a,allowHtml:l}=e;if(a){const e=!(!o&&!n.title);return t.createVNode("div",{key:l?1:0,class:qi("content",{isolated:!e})},[h(e)])}},b=()=>n.footer?n.footer():"round-button"===e.theme?t.createVNode(tt,{class:qi("footer")},{default:()=>[e.showCancelButton&&t.createVNode(Et,{type:"warning",text:e.cancelButtonText||Gi("cancel"),class:qi("cancel"),color:e.cancelButtonColor,loading:r.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&t.createVNode(Et,{type:"danger",text:e.confirmButtonText||Gi("confirm"),class:qi("confirm"),color:e.confirmButtonColor,loading:r.confirm,disabled:e.confirmButtonDisabled,onClick:p},null)]}):t.createVNode("div",{class:[Ee,qi("footer")]},[e.showCancelButton&&t.createVNode(Ot,{size:"large",text:e.cancelButtonText||Gi("cancel"),class:qi("cancel"),style:{color:e.cancelButtonColor},loading:r.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&t.createVNode(Ot,{size:"large",text:e.confirmButtonText||Gi("confirm"),class:[qi("confirm"),{[$e]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:r.confirm,disabled:e.confirmButtonDisabled,onClick:p},null)]);return()=>{const{width:o,title:a,theme:n,message:r,className:i}=e;return t.createVNode(to,t.mergeProps({ref:l,role:"dialog",class:[qi([n]),i],style:{width:ue(o)},tabindex:0,"aria-labelledby":a||r,onKeydown:m,"onUpdate:show":s},v(e,Ki)),{default:()=>[f(),g(),b()]})}}});let Ji;const Qi={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,destroyOnClose:!1};let es=a({},Qi);function ts(e){return n?new Promise((o,n)=>{Ji||function(){const e={setup(){const{state:e,toggle:o}=sn();return()=>t.createVNode(_i,t.mergeProps(e,{"onUpdate:show":o}),null)}};({instance:Ji}=cn(e))}(),Ji.open(a({},es,e,{callback:e=>{("confirm"===e?o:n)(e)}}))}):Promise.resolve(void 0)}const os=Ye(_i),[as,ns]=Ie("divider"),ls={dashed:Boolean,hairline:b,vertical:Boolean,contentPosition:N("center")};const rs=Ye(t.defineComponent({name:as,props:ls,setup:(e,{slots:o})=>()=>{var a;return t.createVNode("div",{role:"separator",class:ns({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!o.default&&!e.vertical})},[!e.vertical&&(null==(a=o.default)?void 0:a.call(o))])}})),[is,ss]=Ie("dropdown-menu"),cs={overlay:b,zIndex:g,duration:V(.2),direction:N("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:b,closeOnClickOverlay:b,swipeThreshold:g},ds=Symbol(is);var us=t.defineComponent({name:is,props:cs,setup(e,{slots:o}){const a=Lo(),n=t.ref(),l=t.ref(),i=t.ref(0),{children:s,linkChildren:c}=I(ds),d=G(n),u=t.computed(()=>s.some(e=>e.state.showWrapper)),p=t.computed(()=>e.swipeThreshold&&s.length>+e.swipeThreshold),v=t.computed(()=>{if(u.value&&r(e.zIndex))return{zIndex:+e.zIndex+1}}),m=()=>{s.forEach(e=>{e.toggle(!1)})},f=()=>{if(l.value){const t=P(l);"down"===e.direction?i.value=t.bottom:i.value=ce.value-t.top}},h=(o,n)=>{const{showPopup:l}=o.state,{disabled:r,titleClass:i}=o;return t.createVNode("div",{id:`${a}-${n}`,role:"button",tabindex:r?void 0:0,"data-allow-mismatch":"attribute",class:[ss("item",{disabled:r,grow:p.value}),{[je]:!r}],onClick:()=>{var e;r||(e=n,s.forEach((t,o)=>{o===e?t.toggle():t.state.showPopup&&t.toggle(!1,{immediate:!0})}))}},[t.createVNode("span",{class:[ss("title",{down:l===("down"===e.direction),active:l}),i],style:{color:l?e.activeColor:""}},[t.createVNode("div",{class:"van-ellipsis"},[o.renderTitle()])])])};return ot({close:m,opened:u}),c({id:a,props:e,offset:i,opened:u,updateOffset:f}),H(n,()=>{e.closeOnClickOutside&&m()}),R("scroll",()=>{u.value&&f()},{target:d,passive:!0}),()=>{var e;return t.createVNode("div",{ref:n,class:ss()},[t.createVNode("div",{ref:l,style:v.value,class:ss("bar",{opened:u.value,scrollable:p.value})},[s.map(h)]),null==(e=o.default)?void 0:e.call(o)])}}});const[ps,vs]=Ie("dropdown-item"),ms={title:String,options:w(),disabled:Boolean,teleport:[String,Object],lazyRender:b,modelValue:h,titleClass:h};const fs=Ye(t.defineComponent({name:ps,inheritAttrs:!1,props:ms,emits:["open","opened","close","closed","change","update:modelValue"],setup(e,{emit:o,slots:a,attrs:n}){const l=t.reactive({showPopup:!1,transition:!0,showWrapper:!1}),r=t.ref(),{parent:i,index:s}=D(ds);if(!i)return;const c=e=>()=>o(e),d=c("open"),u=c("close"),p=c("opened"),v=()=>{l.showWrapper=!1,o("closed")},m=t=>{e.teleport&&t.stopPropagation()},f=a=>{const{activeColor:n}=i.props,{disabled:r}=a,s=a.value===e.modelValue;return t.createVNode(Fa,{role:"menuitem",key:String(a.value),icon:a.icon,title:a.text,class:vs("option",{active:s,disabled:r}),style:{color:s?n:""},tabindex:s?0:-1,clickable:!r,onClick:()=>{r||(l.showPopup=!1,a.value!==e.modelValue&&(o("update:modelValue",a.value),o("change",a.value)))}},{value:()=>{if(s)return t.createVNode(wt,{class:vs("icon"),color:r?void 0:n,name:"success"},null)}})},h=()=>{const{offset:o}=i,{autoLocate:c,zIndex:h,overlay:g,duration:b,direction:y,closeOnClickOverlay:w}=i.props,x=ve(h);let V=o.value;if(c&&r.value){const e=function(e){let t=e.parentElement;for(;t;){if(t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&de(t))return t;t=t.parentElement}return null}(r.value);e&&(V-=P(e).top)}return"down"===y?x.top=`${V}px`:x.bottom=`${V}px`,t.withDirectives(t.createVNode("div",t.mergeProps({ref:r,style:x,class:vs([y]),onClick:m},n),[t.createVNode(to,{show:l.showPopup,"onUpdate:show":e=>l.showPopup=e,role:"menu",class:vs("content"),overlay:g,overlayProps:{duration:l.transition&&!i.opened.value?b:0},position:"down"===y?"top":"bottom",duration:l.transition?b:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${i.id}-${s.value}`,"data-allow-mismatch":"attribute",closeOnClickOverlay:w,onOpen:d,onClose:u,onOpened:p,onClosed:v},{default:()=>{var t;return[e.options.map(f),null==(t=a.default)?void 0:t.call(a)]}})]),[[t.vShow,l.showWrapper]])};return ot({state:l,toggle:(e=!l.showPopup,t={})=>{e!==l.showPopup&&(l.showPopup=e,l.transition=!t.immediate,e&&(i.updateOffset(),l.showWrapper=!0))},renderTitle:()=>{if(a.title)return a.title();if(e.title)return e.title;const t=e.options.find(t=>t.value===e.modelValue);return t?t.text:""}}),()=>e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[h()]}):h()}})),hs=Ye(us),gs={gap:{type:[Number,Object],default:24},icon:String,axis:N("y"),magnetic:String,offset:Object,teleport:{type:[String,Object],default:"body"}},[bs,ys]=Ie("floating-bubble");const ws=Ye(t.defineComponent({name:bs,inheritAttrs:!1,props:gs,emits:["click","update:offset","offsetChange"],setup(e,{slots:o,emit:a,attrs:n}){const r=t.ref(),i=t.ref({x:0,y:0,width:0,height:0}),s=t.computed(()=>l(e.gap)?e.gap.x:e.gap),c=t.computed(()=>l(e.gap)?e.gap.y:e.gap),d=t.computed(()=>({top:c.value,right:se.value-i.value.width-s.value,bottom:ce.value-i.value.height-c.value,left:s.value})),u=t.ref(!1);let p=!1;const m=t.computed(()=>{const e={},t=ue(i.value.x),o=ue(i.value.y);return e.transform=`translate3d(${t}, ${o}, 0)`,!u.value&&p||(e.transition="none"),e}),f=()=>{if(!V.value)return;const{width:t,height:o}=P(r.value),{offset:a}=e;i.value={x:a?a.x:se.value-t-s.value,y:a?a.y:ce.value-o-c.value,width:t,height:o}},h=jt();let g=0,b=0;const y=e=>{h.start(e),u.value=!0,g=i.value.x,b=i.value.y};R("touchmove",t=>{if(t.preventDefault(),h.move(t),"lock"!==e.axis&&!h.isTap.value){if("x"===e.axis||"xy"===e.axis){let e=g+h.deltaX.value;e<d.value.left&&(e=d.value.left),e>d.value.right&&(e=d.value.right),i.value.x=e}if("y"===e.axis||"xy"===e.axis){let e=b+h.deltaY.value;e<d.value.top&&(e=d.value.top),e>d.value.bottom&&(e=d.value.bottom),i.value.y=e}const t=v(i.value,["x","y"]);a("update:offset",t)}},{target:r});const w=()=>{u.value=!1,t.nextTick(()=>{if("x"===e.magnetic){const e=Xe([d.value.left,d.value.right],i.value.x);i.value.x=e}if("y"===e.magnetic){const e=Xe([d.value.top,d.value.bottom],i.value.y);i.value.y=e}if(!h.isTap.value){const e=v(i.value,["x","y"]);a("update:offset",e),g===e.x&&b===e.y||a("offsetChange",e)}})},x=e=>{h.isTap.value?a("click",e):e.stopPropagation()};t.onMounted(()=>{f(),t.nextTick(()=>{p=!0})}),t.watch([se,ce,s,c,()=>e.offset],f,{deep:!0});const V=t.ref(!0);return t.onActivated(()=>{V.value=!0}),t.onDeactivated(()=>{e.teleport&&(V.value=!1)}),()=>{const a=t.withDirectives(t.createVNode("div",t.mergeProps({class:ys(),ref:r,onTouchstartPassive:y,onTouchend:w,onTouchcancel:w,onClickCapture:x,style:m.value},n),[o.default?o.default():t.createVNode(xt,{name:e.icon,class:ys("icon")},null)]),[[t.vShow,V.value]]);return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[a]}):a}}})),xs={height:V(0),anchors:w(),duration:V(.3),magnetic:b,contentDraggable:b,lockScroll:Boolean,safeAreaInsetBottom:b},[Vs,Ns]=Ie("floating-panel");const Cs=Ye(t.defineComponent({name:Vs,props:xs,emits:["heightChange","update:height"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.ref(),r=Co(()=>+e.height,e=>o("update:height",e)),i=t.computed(()=>{var t,o;return{min:null!=(t=e.anchors[0])?t:100,max:null!=(o=e.anchors[e.anchors.length-1])?o:Math.round(.6*ce.value)}}),s=t.computed(()=>e.anchors.length>=2?e.anchors:[i.value.min,i.value.max]),c=t.ref(!1),d=t.computed(()=>({height:ue(i.value.max),transform:`translateY(calc(100% + ${ue(-r.value)}))`,transition:c.value?"none":`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`}));let u,p=-1;const v=jt(),m=e=>{v.start(e),c.value=!0,u=-r.value,p=-1},f=()=>{if(p=-1,c.value=!1,e.magnetic)r.value=Xe(s.value,r.value);else{const{min:e,max:t}=i.value;r.value=Math.max(e,Math.min(t,r.value))}r.value!==-u&&o("heightChange",{height:r.value})};t.watch(i,()=>{r.value=Xe(s.value,r.value)},{immediate:!0}),Yt(n,()=>e.lockScroll||c.value),R("touchmove",t=>{var o;v.move(t);const a=t.target;if(l.value===a||(null==(o=l.value)?void 0:o.contains(a))){const{scrollTop:o}=l.value;if(p=Math.max(p,o),!e.contentDraggable)return;if(-u<i.value.max)re(t,!0);else if(!(o<=0&&v.deltaY.value>0)||p>0)return}const n=v.deltaY.value+u;r.value=-(e=>{const t=Math.abs(e),{min:o,max:a}=i.value;return t>a?-(a+.2*(t-a)):t<o?-(o-.2*(o-t)):e})(n)},{target:n});return()=>{var o;return t.createVNode("div",{class:[Ns(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:n,style:d.value,onTouchstartPassive:m,onTouchend:f,onTouchcancel:f},[a.header?a.header():t.createVNode("div",{class:Ns("header")},[t.createVNode("div",{class:Ns("header-bar")},null)]),t.createVNode("div",{class:Ns("content"),ref:l,style:{paddingBottom:ue(i.value.max-r.value)}},[null==(o=a.default)?void 0:o.call(a)])])}}})),[ks,Ss]=Ie("grid"),Ts={square:Boolean,center:b,border:b,gutter:g,reverse:Boolean,iconSize:g,direction:String,clickable:Boolean,columnNum:V(4)},Bs=Symbol(ks);const Ps=Ye(t.defineComponent({name:ks,props:Ts,setup(e,{slots:o}){const{linkChildren:a}=I(Bs);return a({props:e}),()=>{var a;return t.createVNode("div",{style:{paddingLeft:ue(e.gutter)},class:[Ss(),{[Ee]:e.border&&!e.gutter}]},[null==(a=o.default)?void 0:a.call(o)])}}})),[Ds,Os]=Ie("grid-item"),As=a({},at,{dot:Boolean,text:String,icon:String,badge:g,iconColor:String,iconPrefix:String,badgeProps:Object});const Is=Ye(t.defineComponent({name:Ds,props:As,setup(e,{slots:o}){const{parent:a,index:n}=D(Bs),l=lt();if(!a)return;const r=t.computed(()=>{const{square:e,gutter:t,columnNum:o}=a.props,l=100/+o+"%",r={flexBasis:l};if(e)r.paddingTop=l;else if(t){const e=ue(t);r.paddingRight=e,n.value>=+o&&(r.marginTop=e)}return r}),i=t.computed(()=>{const{square:e,gutter:t}=a.props;if(e&&t){const e=ue(t);return{right:e,bottom:e,height:"auto"}}});return()=>{const{center:n,border:s,square:c,gutter:d,reverse:u,direction:p,clickable:v}=a.props,m=[Os("content",[p,{center:n,square:c,reverse:u,clickable:v,surround:s&&d}]),{[ze]:s}];return t.createVNode("div",{class:[Os({square:c})],style:r.value},[t.createVNode("div",{role:v?"button":void 0,class:m,style:i.value,tabindex:v?0:void 0,onClick:l},[o.default?o.default():[o.icon?t.createVNode(ct,t.mergeProps({dot:e.dot,content:e.badge},e.badgeProps),{default:o.icon}):e.icon?t.createVNode(wt,{dot:e.dot,name:e.icon,size:a.props.iconSize,badge:e.badge,class:Os("icon"),color:e.iconColor,badgeProps:e.badgeProps,classPrefix:e.iconPrefix},null):void 0,o.text?o.text():e.text?t.createVNode("span",{class:Os("text")},[e.text]):void 0]])])}}})),[zs,Es]=Ie("highlight"),$s={autoEscape:b,caseSensitive:Boolean,highlightClass:String,highlightTag:N("span"),keywords:y([String,Array]),sourceString:N(""),tag:N("div"),unhighlightClass:String,unhighlightTag:N("span")};const Ls=Ye(t.defineComponent({name:zs,props:$s,setup(e){const o=t.computed(()=>{const{autoEscape:t,caseSensitive:o,keywords:a,sourceString:n}=e,l=o?"g":"gi";let r=(Array.isArray(a)?a:[a]).filter(e=>e).reduce((e,o)=>{t&&(o=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const a=new RegExp(o,l);let r;for(;r=a.exec(n);){const t=r.index,o=a.lastIndex;t>=o?a.lastIndex++:e.push({start:t,end:o,highlight:!0})}return e},[]);r=r.sort((e,t)=>e.start-t.start).reduce((e,t)=>{const o=e[e.length-1];if(!o||t.start>o.end){const a=o?o.end:0,n=t.start;a!==n&&e.push({start:a,end:n,highlight:!1}),e.push(t)}else o.end=Math.max(o.end,t.end);return e},[]);const i=r[r.length-1];return i||r.push({start:0,end:n.length,highlight:!1}),i&&i.end<n.length&&r.push({start:i.end,end:n.length,highlight:!1}),r}),a=()=>{const{sourceString:a,highlightClass:n,unhighlightClass:l,highlightTag:r,unhighlightTag:i}=e;return o.value.map(e=>{const{start:o,end:s,highlight:c}=e,d=a.slice(o,s);return c?t.createVNode(r,{class:[Es("tag"),n]},{default:()=>[d]}):t.createVNode(i,{class:l},{default:()=>[d]})})};return()=>{const{tag:o}=e;return t.createVNode(o,{class:Es()},{default:()=>[a()]})}}})),Ms=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),Fs=Ie("image-preview")[1],Rs={src:String,show:Boolean,active:Number,minZoom:y(g),maxZoom:y(g),rootWidth:y(Number),rootHeight:y(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var Hs=t.defineComponent({props:Rs,emits:["scale","close","longPress"],setup(e,{emit:o,slots:a}){const n=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),l=jt(),r=t.ref(),i=t.ref(),s=t.ref(!1),c=t.ref(!1);let d=0;const u=t.computed(()=>{const{scale:e,moveX:t,moveY:o,moving:a,zooming:l,initializing:r}=n,i={transitionDuration:l||a||r?"0s":".3s"};return(1!==e||c.value)&&(i.transform=`matrix(${e}, 0, 0, ${e}, ${t}, ${o})`),i}),p=t.computed(()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:o}=e,a=s.value?o/n.imageRatio:t;return Math.max(0,(n.scale*a-t)/2)}return 0}),v=t.computed(()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:o}=e,a=s.value?o:t*n.imageRatio;return Math.max(0,(n.scale*a-o)/2)}return 0}),m=(t,a)=>{var l;if((t=we(t,+e.minZoom,+e.maxZoom+1))!==n.scale){const i=t/n.scale;if(n.scale=t,a){const e=P(null==(l=r.value)?void 0:l.$el),t={x:.5*e.width,y:.5*e.height},o=n.moveX-(a.x-e.left-t.x)*(i-1),s=n.moveY-(a.y-e.top-t.y)*(i-1);n.moveX=we(o,-p.value,p.value),n.moveY=we(s,-v.value,v.value)}else n.moveX=0,n.moveY=c.value?d:0;o("scale",{scale:t,index:e.active})}},f=()=>{m(1)};let h,g,b,y,w,x,V,N,C=!1;const S=t=>{const{touches:o}=t;if(h=o.length,2===h&&e.disableZoom)return;const{offsetX:a}=l;l.start(t),g=n.moveX,b=n.moveY,N=Date.now(),C=!1,n.moving=1===h&&(1!==n.scale||c.value),n.zooming=2===h&&!a.value,n.zooming&&(y=n.scale,w=Ms(o))},T=t=>{var a;const n=null==(a=i.value)?void 0:a.$el;if(!n)return;const l=n.firstElementChild,r=t.target===n,s=null==l?void 0:l.contains(t.target);!e.closeOnClickImage&&s||!e.closeOnClickOverlay&&r||o("close")},B=t=>{if(h>1)return;const a=Date.now()-N;l.isTap.value&&(a<250?e.doubleScale?V?(clearTimeout(V),V=null,(()=>{const e=n.scale>1?1:2;m(e,2===e||c.value?{x:l.startX.value,y:l.startY.value}:void 0)})()):V=setTimeout(()=>{T(t),V=null},250):T(t):a>500&&o("longPress"))},D=t=>{let o=!1;if((n.moving||n.zooming)&&(o=!0,n.moving&&g===n.moveX&&b===n.moveY&&(o=!1),!t.touches.length)){n.zooming&&(n.moveX=we(n.moveX,-p.value,p.value),n.moveY=we(n.moveY,-v.value,v.value),n.zooming=!1),n.moving=!1,g=0,b=0,y=1,n.scale<1&&f();const t=+e.maxZoom;n.scale>t&&m(t,x)}re(t,o),B(t),l.reset()},O=()=>{const{rootWidth:t,rootHeight:o}=e,a=o/t,{imageRatio:l}=n;s.value=n.imageRatio>a&&l<2.6,c.value=n.imageRatio>a&&l>=2.6,c.value&&(d=(l*t-o)/2,n.moveY=d,n.initializing=!0,k(()=>{n.initializing=!1})),f()},A=e=>{const{naturalWidth:t,naturalHeight:o}=e.target;n.imageRatio=o/t,O()};return t.watch(()=>e.active,f),t.watch(()=>e.show,e=>{e||f()}),t.watch(()=>[e.rootWidth,e.rootHeight],O),R("touchmove",t=>{const{touches:o}=t;if(l.move(t),n.moving){const{deltaX:o,deltaY:a}=l,r=o.value+g,i=a.value+b;if((e.vertical?l.isVertical()&&Math.abs(i)>v.value:l.isHorizontal()&&Math.abs(r)>p.value)&&!C)return void(n.moving=!1);C=!0,re(t,!0),n.moveX=we(r,-p.value,p.value),n.moveY=we(i,-v.value,v.value)}if(n.zooming&&(re(t,!0),2===o.length)){const e=Ms(o),t=y*e/w;x=(e=>({x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}))(o),m(t,x)}},{target:t.computed(()=>{var e;return null==(e=i.value)?void 0:e.$el})}),ot({resetScale:f}),()=>{const o={loading:()=>t.createVNode(Tt,{type:"spinner"},null)};return t.createVNode(ua,{ref:i,class:Fs("swipe-item"),onTouchstartPassive:S,onTouchend:D,onTouchcancel:D},{default:()=>[a.image?t.createVNode("div",{class:Fs("image-wrap")},[a.image({src:e.src,onLoad:A,style:u.value})]):t.createVNode(fr,{ref:r,src:e.src,fit:"contain",class:Fs("image",{vertical:s.value}),style:u.value,onLoad:A},o)]})}}});const[js,Ws]=Ie("image-preview"),Us=["show","teleport","transition","overlayStyle","closeOnPopstate"],Ys={show:Boolean,loop:b,images:w(),minZoom:V(1/3),maxZoom:V(3),overlay:b,vertical:Boolean,closeable:Boolean,showIndex:b,className:h,closeIcon:N("clear"),transition:String,beforeClose:Function,doubleScale:b,overlayClass:h,overlayStyle:Object,swipeDuration:V(300),startPosition:V(0),showIndicators:Boolean,closeOnPopstate:b,closeOnClickImage:b,closeOnClickOverlay:b,closeIconPosition:N("top-right"),teleport:[String,Object]};var Xs=t.defineComponent({name:js,props:Ys,emits:["scale","close","closed","change","longPress","update:show"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.ref(),r=t.reactive({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),i=()=>{if(n.value){const e=P(n.value.$el);r.rootWidth=e.width,r.rootHeight=e.height,n.value.resize()}},s=e=>o("scale",e),c=e=>o("update:show",e),d=()=>{Ue(e.beforeClose,{args:[r.active],done:()=>c(!1)})},u=e=>{e!==r.active&&(r.active=e,o("change",e))},p=()=>{if(e.showIndex)return t.createVNode("div",{class:Ws("index")},[a.index?a.index({index:r.active}):`${r.active+1} / ${e.images.length}`])},m=()=>{if(a.cover)return t.createVNode("div",{class:Ws("cover")},[a.cover()])},f=()=>{r.disableZoom=!0},h=()=>{r.disableZoom=!1},g=()=>{if(e.closeable)return t.createVNode(wt,{role:"button",name:e.closeIcon,class:[Ws("close-icon",e.closeIconPosition),je],onClick:d},null)},b=()=>o("closed"),y=(e,t)=>{var o;return null==(o=n.value)?void 0:o.swipeTo(e,t)};return ot({resetScale:()=>{var e;null==(e=l.value)||e.resetScale()},swipeTo:y}),t.onMounted(i),t.watch([se,ce],i),t.watch(()=>e.startPosition,e=>u(+e)),t.watch(()=>e.show,a=>{const{images:n,startPosition:l}=e;a?(u(+l),t.nextTick(()=>{i(),y(+l,{immediate:!0})})):o("close",{index:r.active,url:n[r.active]})}),()=>t.createVNode(to,t.mergeProps({class:[Ws(),e.className],overlayClass:[Ws("overlay"),e.overlayClass],onClosed:b,"onUpdate:show":c},v(e,Us)),{default:()=>[g(),t.createVNode(Go,{ref:n,lazyRender:!0,loop:e.loop,class:Ws("swipe"),vertical:e.vertical,duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:u,onDragEnd:h,onDragStart:f},{default:()=>[e.images.map((n,i)=>t.createVNode(Hs,{ref:e=>{i===r.active&&(l.value=e)},src:n,show:e.show,active:r.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:r.rootWidth,rootHeight:r.rootHeight,disableZoom:r.disableZoom,doubleScale:e.doubleScale,closeOnClickImage:e.closeOnClickImage,closeOnClickOverlay:e.closeOnClickOverlay,vertical:e.vertical,onScale:s,onClose:d,onLongPress:()=>o("longPress",{index:i})},{image:a.image}))]}),p(),m()]})}});let qs;const Gs={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};const Zs=(e,o=0)=>{if(n)return qs||({instance:qs}=cn({setup(){const{state:e,toggle:o}=sn(),a=()=>{e.images=[]};return()=>t.createVNode(Xs,t.mergeProps(e,{onClosed:a,"onUpdate:show":o}),null)}})),e=Array.isArray(e)?{images:e,startPosition:o}:e,qs.open(a({},Gs,e)),qs},Ks=Ye(Xs);const[_s,Js]=Ie("index-bar"),Qs={sticky:b,zIndex:g,teleport:[String,Object],highlightColor:String,stickyOffsetTop:x(0),indexList:{type:Array,default:function(){const e="A".charCodeAt(0);return Array(26).fill("").map((t,o)=>String.fromCharCode(e+o))}}},ec=Symbol(_s);var tc=t.defineComponent({name:_s,props:Qs,emits:["select","change"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.ref(),i=t.ref(""),s=jt(),c=G(n),{children:d,linkChildren:u}=I(ec);let p;u({props:e});const v=t.computed(()=>{if(r(e.zIndex))return{zIndex:+e.zIndex+1}}),m=t.computed(()=>{if(e.highlightColor)return{color:e.highlightColor}}),f=(t,o)=>{for(let a=d.length-1;a>=0;a--){const n=a>0?o[a-1].height:0;if(t+(e.sticky?n+e.stickyOffsetTop:0)>=o[a].top)return a}return-1},h=e=>d.find(t=>String(t.index)===e),g=()=>{if(ie(n))return;const{sticky:t,indexList:o}=e,a=J(c.value),l=P(c),r=d.map(e=>e.getRect(c.value,l));let s=-1;if(p){const t=h(p);if(t){const o=t.getRect(c.value,l);s=e.sticky&&e.stickyOffsetTop?f(o.top-e.stickyOffsetTop,r):f(o.top,r)}}else s=f(a,r);i.value=o[s],t&&d.forEach((t,o)=>{const{state:n,$el:i}=t;if(o===s||o===s-1){const e=i.getBoundingClientRect();n.left=e.left,n.width=e.width}else n.left=null,n.width=null;if(o===s)n.active=!0,n.top=Math.max(e.stickyOffsetTop,r[o].top-a)+l.top;else if(o===s-1&&""===p){const e=r[s].top-a;n.active=e>0,n.top=e+l.top-r[o].height}else n.active=!1}),p=""},b=()=>{t.nextTick(g)};R("scroll",g,{target:c,passive:!0}),t.onMounted(b),t.watch(()=>e.indexList,b),t.watch(i,e=>{e&&o("change",e)});const y=t=>{p=String(t);const a=h(p);if(a){const t=J(c.value),n=P(c),{offsetHeight:l}=document.documentElement;if(a.$el.scrollIntoView(),t===l-n.height)return void g();e.sticky&&e.stickyOffsetTop&&(ee()===l-n.height?te(ee()):te(ee()-e.stickyOffsetTop)),o("select",a.index)}},w=e=>{const{index:t}=e.dataset;t&&y(t)},x=e=>{w(e.target)};let V;const N=()=>t.createVNode("div",{ref:l,class:Js("sidebar"),style:v.value,onClick:x,onTouchstartPassive:s.start},[e.indexList.map(e=>{const o=e===i.value;return t.createVNode("span",{class:Js("index",{active:o}),style:o?m.value:void 0,"data-index":e},[e])})]);return ot({scrollTo:y}),R("touchmove",e=>{if(s.move(e),s.isVertical()){re(e);const{clientX:t,clientY:o}=e.touches[0],a=document.elementFromPoint(t,o);if(a){const{index:e}=a.dataset;e&&V!==e&&(V=e,w(a))}}},{target:l}),()=>{var o;return t.createVNode("div",{ref:n,class:Js()},[e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[N()]}):N(),null==(o=a.default)?void 0:o.call(a)])}}});const[oc,ac]=Ie("index-anchor"),nc={index:g};const lc=Ye(t.defineComponent({name:oc,props:nc,setup(e,{slots:o}){const n=t.reactive({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),l=t.ref(),{parent:r}=D(ec);if(!r)return;const i=()=>n.active&&r.props.sticky,s=t.computed(()=>{const{zIndex:e,highlightColor:t}=r.props;if(i())return a(ve(e),{left:n.left?`${n.left}px`:void 0,width:n.width?`${n.width}px`:void 0,transform:n.top?`translate3d(0, ${n.top}px, 0)`:void 0,color:t})});return ot({state:n,getRect:(e,t)=>{const o=P(l);return n.rect.height=o.height,e===window||e===document.body?n.rect.top=o.top+ee():n.rect.top=o.top+J(e)-t.top,n.rect}}),()=>{const a=i();return t.createVNode("div",{ref:l,style:{height:a?`${n.rect.height}px`:void 0}},[t.createVNode("div",{style:s.value,class:[ac({sticky:a}),{[Me]:a}]},[o.default?o.default():e.index])])}}})),rc=Ye(tc),[ic,sc,cc]=Ie("list"),dc={error:Boolean,offset:V(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:N("down"),loadingText:{type:String,default:""},finishedText:String,immediateCheck:b};const uc=Ye(t.defineComponent({name:ic,props:dc,emits:["load","update:error","update:loading"],setup(e,{emit:o,slots:a}){const n=t.ref(e.loading),l=t.ref(),r=t.ref(),i=la(),s=G(l),c=t.computed(()=>e.scroller||s.value),d=()=>{t.nextTick(()=>{if(n.value||e.finished||e.disabled||e.error||!1===(null==i?void 0:i.value))return;const{direction:t}=e,a=+e.offset,s=P(c);if(!s.height||ie(l))return;let d=!1;const u=P(r);d="up"===t?s.top-u.top<=a:u.bottom-s.bottom<=a,d&&(n.value=!0,o("update:loading",!0),o("load"))})},u=()=>{if(e.finished){const o=a.finished?a.finished():e.finishedText;if(o)return t.createVNode("div",{class:sc("finished-text")},[o])}},p=()=>{o("update:error",!1),d()},v=()=>{if(e.error){const o=a.error?a.error():e.errorText;if(o)return t.createVNode("div",{role:"button",class:sc("error-text"),tabindex:0,onClick:p},[o])}},m=()=>{if(n.value&&!e.finished&&!e.disabled)return t.createVNode("div",{class:sc("loading")},[a.loading?a.loading():null!=e.loadingText&&t.createVNode(Tt,{class:sc("loading-icon")},{default:()=>[e.loadingText||cc("loading")]})])};return t.watch(()=>[e.loading,e.finished,e.error],d),i&&t.watch(i,e=>{e&&d()}),t.onUpdated(()=>{n.value=e.loading}),t.onMounted(()=>{e.immediateCheck&&d()}),ot({check:d}),R("scroll",d,{target:c,passive:!0}),()=>{var o;const i=null==(o=a.default)?void 0:o.call(a),s=t.createVNode("div",{ref:r,class:sc("placeholder")},null);return t.createVNode("div",{ref:l,role:"feed",class:sc(),"aria-busy":n.value},["down"===e.direction?i:s,m(),u(),v(),"up"===e.direction?i:s])}}})),[pc,vc]=Ie("nav-bar"),mc={title:String,fixed:Boolean,zIndex:g,border:b,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:b};const fc=Ye(t.defineComponent({name:pc,props:mc,emits:["clickLeft","clickRight"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=Ke(n,vc),r=t=>{e.leftDisabled||o("clickLeft",t)},i=t=>{e.rightDisabled||o("clickRight",t)},s=()=>{const{title:o,fixed:l,border:s,zIndex:c}=e,d=ve(c),u=e.leftArrow||e.leftText||a.left,p=e.rightText||a.right;return t.createVNode("div",{ref:n,style:d,class:[vc({fixed:l}),{[Me]:s,"van-safe-area-top":e.safeAreaInsetTop}]},[t.createVNode("div",{class:vc("content")},[u&&t.createVNode("div",{class:[vc("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?je:""],onClick:r},[a.left?a.left():[e.leftArrow&&t.createVNode(wt,{class:vc("arrow"),name:"arrow-left"},null),e.leftText&&t.createVNode("span",{class:vc("text")},[e.leftText])]]),t.createVNode("div",{class:[vc("title"),"van-ellipsis"]},[a.title?a.title():o]),p&&t.createVNode("div",{class:[vc("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?je:""],onClick:i},[a.right?a.right():t.createVNode("span",{class:vc("text")},[e.rightText])])])])};return()=>e.fixed&&e.placeholder?l(s):s()}})),[hc,gc]=Ie("notice-bar"),bc={text:String,mode:String,color:String,delay:V(1),speed:V(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};const yc=Ye(t.defineComponent({name:hc,props:bc,emits:["close","replay"],setup(e,{emit:o,slots:a}){let n,l=0,i=0;const s=t.ref(),c=t.ref(),d=t.reactive({show:!0,offset:0,duration:0}),u=t=>{"closeable"===e.mode&&(d.show=!1,o("close",t))},p=()=>{if(a["right-icon"])return a["right-icon"]();const o="closeable"===e.mode?"cross":"link"===e.mode?"arrow":void 0;return o?t.createVNode(wt,{name:o,class:gc("right-icon"),onClick:u},null):void 0},v=()=>{d.offset=l,d.duration=0,k(()=>{T(()=>{d.offset=-i,d.duration=(i+l)/+e.speed,o("replay")})})},m=()=>{const o=!1===e.scrollable&&!e.wrapable,n={transform:d.offset?`translateX(${d.offset}px)`:"",transitionDuration:`${d.duration}s`};return t.createVNode("div",{ref:s,role:"marquee",class:gc("wrap")},[t.createVNode("div",{ref:c,style:n,class:[gc("content"),{"van-ellipsis":o}],onTransitionend:v},[a.default?a.default():e.text])])},f=()=>{const{delay:t,speed:o,scrollable:a}=e,u=r(t)?1e3*+t:0;l=0,i=0,d.offset=0,d.duration=0,clearTimeout(n),n=setTimeout(()=>{if(!s.value||!c.value||!1===a)return;const e=P(s).width,t=P(c).width;(a||t>e)&&T(()=>{l=e,i=t,d.offset=-i,d.duration=i/+o})},u)};return Ge(f),F(f),R("pageshow",f),ot({reset:f}),t.watch(()=>[e.text,e.scrollable],f),()=>{const{color:o,wrapable:n,background:l}=e;return t.withDirectives(t.createVNode("div",{role:"alert",class:gc({wrapable:n}),style:{color:o,background:l}},[a["left-icon"]?a["left-icon"]():e.leftIcon?t.createVNode(wt,{class:gc("left-icon"),name:e.leftIcon},null):void 0,m(),p()]),[[t.vShow,d.show]])}}})),[wc,xc]=Ie("notify"),Vc=["lockScroll","position","show","teleport","zIndex"],Nc=a({},Rt,{type:N("danger"),color:String,message:g,position:N("top"),className:h,background:String,lockScroll:Boolean});var Cc=t.defineComponent({name:wc,props:Nc,emits:["update:show"],setup(e,{emit:o,slots:a}){const n=e=>o("update:show",e);return()=>t.createVNode(to,t.mergeProps({class:[xc([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,duration:.2,"onUpdate:show":n},v(e,Vc)),{default:()=>[a.default?a.default():e.message]})}});let kc,Sc;let Tc={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0};const Bc=()=>{Sc&&Sc.toggle(!1)};const Pc=Ye(Cc),[Dc,Oc]=Ie("key"),Ac=t.createVNode("svg",{class:Oc("collapse-icon"),viewBox:"0 0 30 24"},[t.createVNode("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),Ic=t.createVNode("svg",{class:Oc("delete-icon"),viewBox:"0 0 32 22"},[t.createVNode("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var zc=t.defineComponent({name:Dc,props:{type:String,text:g,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:o,slots:a}){const n=t.ref(!1),l=jt(),r=e=>{l.start(e),n.value=!0},i=e=>{l.move(e),l.direction.value&&(n.value=!1)},s=t=>{n.value&&(a.default||re(t),n.value=!1,o("press",e.text,e.type))},c=()=>{if(e.loading)return t.createVNode(Tt,{class:Oc("loading-icon")},null);const o=a.default?a.default():e.text;switch(e.type){case"delete":return o||Ic;case"extra":return o||Ac;default:return o}};return()=>t.createVNode("div",{class:Oc("wrapper",{wider:e.wider}),onTouchstartPassive:r,onTouchmovePassive:i,onTouchend:s,onTouchcancel:s},[t.createVNode("div",{role:"button",tabindex:0,class:Oc([e.color,{large:e.large,active:n.value,delete:"delete"===e.type}])},[c()])])}});const[Ec,$c]=Ie("number-keyboard"),Lc={show:Boolean,title:String,theme:N("default"),zIndex:g,teleport:[String,Object],maxlength:V(1/0),modelValue:N(""),transition:b,blurOnClose:b,showDeleteKey:b,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:b,safeAreaInsetBottom:b,extraKey:{type:[String,Array],default:""}};const Mc=Ye(t.defineComponent({name:Ec,inheritAttrs:!1,props:Lc,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:o,slots:a,attrs:n}){const l=t.ref(),r=()=>{const t=Array(9).fill("").map((e,t)=>({text:t+1}));return e.randomKeyOrder&&function(e){for(let t=e.length-1;t>0;t--){const o=Math.floor(Math.random()*(t+1)),a=e[t];e[t]=e[o],e[o]=a}}(t),t},i=t.computed(()=>"custom"===e.theme?(()=>{const t=r(),{extraKey:o}=e,a=Array.isArray(o)?o:[o];return 0===a.length?t.push({text:0,wider:!0}):1===a.length?t.push({text:0,wider:!0},{text:a[0],type:"extra"}):2===a.length&&t.push({text:a[0],type:"extra"},{text:0},{text:a[1],type:"extra"}),t})():[...r(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}]),s=()=>{e.show&&o("blur")},c=()=>{o("close"),e.blurOnClose&&s()},d=()=>o(e.show?"show":"hide"),u=(t,a)=>{if(""===t)return void("extra"===a&&s());const n=e.modelValue;"delete"===a?(o("delete"),o("update:modelValue",n.slice(0,n.length-1))):"close"===a?c():n.length<+e.maxlength&&(o("input",t),o("update:modelValue",n+t))},p=()=>{if("custom"===e.theme)return t.createVNode("div",{class:$c("sidebar")},[e.showDeleteKey&&t.createVNode(zc,{large:!0,text:e.deleteButtonText,type:"delete",onPress:u},{default:a.delete}),t.createVNode(zc,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:u},null)])};return t.watch(()=>e.show,t=>{e.transition||o(t?"show":"hide")}),e.hideOnClickOutside&&H(l,s,{eventName:"touchstart"}),()=>{const o=(()=>{const{title:o,theme:n,closeButtonText:l}=e,r=a["title-left"],i=l&&"default"===n;if(o||i||r)return t.createVNode("div",{class:$c("header")},[r&&t.createVNode("span",{class:$c("title-left")},[r()]),o&&t.createVNode("h2",{class:$c("title")},[o]),i&&t.createVNode("button",{type:"button",class:[$c("close"),je],onClick:c},[l])])})(),r=t.createVNode(t.Transition,{name:e.transition?"van-slide-up":""},{default:()=>[t.withDirectives(t.createVNode("div",t.mergeProps({ref:l,style:ve(e.zIndex),class:$c({unfit:!e.safeAreaInsetBottom,"with-title":!!o}),onAnimationend:d,onTouchstartPassive:le},n),[o,t.createVNode("div",{class:$c("body")},[t.createVNode("div",{class:$c("keys")},[i.value.map(e=>{const o={};return"delete"===e.type&&(o.default=a.delete),"extra"===e.type&&(o.default=a["extra-key"]),t.createVNode(zc,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:u},o)})]),p()])]),[[t.vShow,e.show]])]});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[r]}):r}}})),[Fc,Rc,Hc]=Ie("pagination"),jc=(e,t,o)=>({number:e,text:t,active:o}),Wc={mode:N("multi"),prevText:String,nextText:String,pageCount:V(0),modelValue:x(0),totalItems:V(0),showPageSize:V(5),itemsPerPage:V(10),forceEllipses:Boolean,showPrevButton:b,showNextButton:b};const Uc=Ye(t.defineComponent({name:Fc,props:Wc,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.computed(()=>{const{pageCount:t,totalItems:o,itemsPerPage:a}=e,n=+t||Math.ceil(+o/+a);return Math.max(1,n)}),l=t.computed(()=>{const t=[],o=n.value,a=+e.showPageSize,{modelValue:l,forceEllipses:r}=e;let i=1,s=o;const c=a<o;c&&(i=Math.max(l-Math.floor(a/2),1),s=i+a-1,s>o&&(s=o,i=s-a+1));for(let e=i;e<=s;e++){const o=jc(e,e,e===l);t.push(o)}if(c&&a>0&&r){if(i>1){const e=jc(i-1,"...");t.unshift(e)}if(s<o){const e=jc(s+1,"...");t.push(e)}}return t}),r=(t,a)=>{t=we(t,1,n.value),e.modelValue!==t&&(o("update:modelValue",t),a&&o("change",t))};t.watchEffect(()=>r(e.modelValue));const i=()=>{const{mode:o,modelValue:n,showPrevButton:l}=e;if(!l)return;const i=a["prev-text"],s=1===n;return t.createVNode("li",{class:[Rc("item",{disabled:s,border:"simple"===o,prev:!0}),Fe]},[t.createVNode("button",{type:"button",disabled:s,onClick:()=>r(n-1,!0)},[i?i():e.prevText||Hc("prev")])])},s=()=>{const{mode:o,modelValue:l,showNextButton:i}=e;if(!i)return;const s=a["next-text"],c=l===n.value;return t.createVNode("li",{class:[Rc("item",{disabled:c,border:"simple"===o,next:!0}),Fe]},[t.createVNode("button",{type:"button",disabled:c,onClick:()=>r(l+1,!0)},[s?s():e.nextText||Hc("next")])])};return()=>t.createVNode("nav",{role:"navigation",class:Rc()},[t.createVNode("ul",{class:Rc("items")},[i(),"simple"===e.mode?t.createVNode("li",{class:Rc("page-desc")},[a.pageDesc?a.pageDesc():`${e.modelValue}/${n.value}`]):l.value.map(e=>t.createVNode("li",{class:[Rc("item",{active:e.active,page:!0}),Fe]},[t.createVNode("button",{type:"button","aria-current":e.active||void 0,onClick:()=>r(e.number,!0)},[a.page?a.page(e):e.text])])),s()])])}})),[Yc,Xc]=Ie("password-input"),qc={info:String,mask:b,value:N(""),gutter:g,length:V(6),focused:Boolean,errorInfo:String};const Gc=Ye(t.defineComponent({name:Yc,props:qc,emits:["focus"],setup(e,{emit:o}){const a=e=>{e.stopPropagation(),o("focus",e)},n=()=>{const o=[],{mask:a,value:n,gutter:l,focused:r}=e,i=+e.length;for(let e=0;e<i;e++){const i=n[e],s=0!==e&&!l,c=r&&e===n.length;let d;0!==e&&l&&(d={marginLeft:ue(l)}),o.push(t.createVNode("li",{class:[{[$e]:s},Xc("item",{focus:c})],style:d},[a?t.createVNode("i",{style:{visibility:i?"visible":"hidden"}},null):i,c&&t.createVNode("div",{class:Xc("cursor")},null)]))}return o};return()=>{const o=e.errorInfo||e.info;return t.createVNode("div",{class:Xc()},[t.createVNode("ul",{class:[Xc("security"),{[Fe]:!e.gutter}],onTouchstartPassive:a},[n()]),o&&t.createVNode("div",{class:Xc(e.errorInfo?"error-info":"info")},[o])])}}})),Zc=Ye(xa);function Kc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _c(e){return e instanceof Kc(e).Element||e instanceof Element}function Jc(e){return e instanceof Kc(e).HTMLElement||e instanceof HTMLElement}function Qc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kc(e).ShadowRoot||e instanceof ShadowRoot)}var ed=Math.round;function td(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function od(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),n=1,l=1;t&&Jc(e)&&(n=e.offsetWidth>0&&ed(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&ed(a.height)/e.offsetHeight||1);var r=(_c(e)?Kc(e):window).visualViewport,i=!!/^((?!chrome|android).)*safari/i.test(td())&&o,s=(a.left+(i&&r?r.offsetLeft:0))/n,c=(a.top+(i&&r?r.offsetTop:0))/l,d=a.width/n,u=a.height/l;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function ad(e){var t=Kc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nd(e){return e?(e.nodeName||"").toLowerCase():null}function ld(e){return((_c(e)?e.ownerDocument:e.document)||window.document).documentElement}function rd(e){return Kc(e).getComputedStyle(e)}function id(e){var t=rd(e),o=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+a)}function sd(e,t,o){void 0===o&&(o=!1);var a,n,l=Jc(t),r=Jc(t)&&function(e){var t=e.getBoundingClientRect(),o=ed(t.width)/e.offsetWidth||1,a=ed(t.height)/e.offsetHeight||1;return 1!==o||1!==a}(t),i=ld(t),s=od(e,r,o),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(l||!l&&!o)&&(("body"!==nd(t)||id(i))&&(c=(a=t)!==Kc(a)&&Jc(a)?{scrollLeft:(n=a).scrollLeft,scrollTop:n.scrollTop}:ad(a)),Jc(t)?((d=od(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=function(e){return od(ld(e)).left+ad(e).scrollLeft}(i))),{x:s.left+c.scrollLeft-d.x,y:s.top+c.scrollTop-d.y,width:s.width,height:s.height}}function cd(e){return"html"===nd(e)?e:e.assignedSlot||e.parentNode||(Qc(e)?e.host:null)||ld(e)}function dd(e){return["html","body","#document"].indexOf(nd(e))>=0?e.ownerDocument.body:Jc(e)&&id(e)?e:dd(cd(e))}function ud(e,t){var o;void 0===t&&(t=[]);var a=dd(e),n=a===(null==(o=e.ownerDocument)?void 0:o.body),l=Kc(a),r=n?[l].concat(l.visualViewport||[],id(a)?a:[]):a,i=t.concat(r);return n?i:i.concat(ud(cd(r)))}function pd(e){return["table","td","th"].indexOf(nd(e))>=0}function vd(e){return Jc(e)&&"fixed"!==rd(e).position?e.offsetParent:null}function md(e){for(var t=Kc(e),o=vd(e);o&&pd(o)&&"static"===rd(o).position;)o=vd(o);return o&&("html"===nd(o)||"body"===nd(o)&&"static"===rd(o).position)?t:o||function(e){var t=/firefox/i.test(td());if(/Trident/i.test(td())&&Jc(e)&&"fixed"===rd(e).position)return null;var o=cd(e);for(Qc(o)&&(o=o.host);Jc(o)&&["html","body"].indexOf(nd(o))<0;){var a=rd(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}(e)||t}var fd="top",hd="bottom",gd="right",bd="left",yd="start",wd="end",xd=[].concat([fd,hd,gd,bd],["auto"]).reduce(function(e,t){return e.concat([t,t+"-"+yd,t+"-"+wd])},[]),Vd=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nd(e){var t=new Map,o=new Set,a=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!o.has(e)){var a=t.get(e);a&&n(a)}}),a.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){o.has(e.name)||n(e)}),a}var Cd={placement:"bottom",modifiers:[],strategy:"absolute"};function kd(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Sd(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,a=void 0===o?[]:o,n=t.defaultOptions,l=void 0===n?Cd:n;return function(e,t,o){void 0===o&&(o=l);var n,r,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cd,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,d={state:i,setOptions:function(o){var n="function"==typeof o?o(i.options):o;u(),i.options=Object.assign({},l,i.options,n),i.scrollParents={reference:_c(e)?ud(e):e.contextElement?ud(e.contextElement):[],popper:ud(t)};var r,c,p=function(e){var t=Nd(e);return Vd.reduce(function(e,o){return e.concat(t.filter(function(e){return e.phase===o}))},[])}((r=[].concat(a,i.options.modifiers),c=r.reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return i.orderedModifiers=p.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,a=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var l=n({state:i,name:t,instance:d,options:a}),r=function(){};s.push(l||r)}}),d.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,o=e.popper;if(kd(t,o)){var a,n,l,r;i.rects={reference:sd(t,md(o),"fixed"===i.options.strategy),popper:(a=o,n=od(a),l=a.offsetWidth,r=a.offsetHeight,Math.abs(n.width-l)<=1&&(l=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:a.offsetLeft,y:a.offsetTop,width:l,height:r})},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var s=0;s<i.orderedModifiers.length;s++)if(!0!==i.reset){var u=i.orderedModifiers[s],p=u.fn,v=u.options,m=void 0===v?{}:v,f=u.name;"function"==typeof p&&(i=p({state:i,options:m,name:f,instance:d})||i)}else i.reset=!1,s=-1}}},update:(n=function(){return new Promise(function(e){d.forceUpdate(),e(i)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(n())})})),r}),destroy:function(){u(),c=!0}};if(!kd(e,t))return d;function u(){s.forEach(function(e){return e()}),s=[]}return d.setOptions(o).then(function(e){!c&&o.onFirstUpdate&&o.onFirstUpdate(e)}),d}}var Td={passive:!0};function Bd(e){return e.split("-")[0]}function Pd(e){return e.split("-")[1]}var Dd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Od(e){var t,o=e.popper,a=e.popperRect,n=e.placement,l=e.variation,r=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=r.x,v=void 0===p?0:p,m=r.y,f=void 0===m?0:m,h="function"==typeof d?d({x:v,y:f}):{x:v,y:f};v=h.x,f=h.y;var g=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),y=bd,w=fd,x=window;if(c){var V=md(o),N="clientHeight",C="clientWidth";if(V===Kc(o)&&"static"!==rd(V=ld(o)).position&&"absolute"===i&&(N="scrollHeight",C="scrollWidth"),n===fd||(n===bd||n===gd)&&l===wd)w=hd,f-=(u&&V===x&&x.visualViewport?x.visualViewport.height:V[N])-a.height,f*=s?1:-1;if(n===bd||(n===fd||n===hd)&&l===wd)y=gd,v-=(u&&V===x&&x.visualViewport?x.visualViewport.width:V[C])-a.width,v*=s?1:-1}var k,S=Object.assign({position:i},c&&Dd),T=!0===d?function(e,t){var o=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:ed(o*n)/n||0,y:ed(a*n)/n||0}}({x:v,y:f},Kc(o)):{x:v,y:f};return v=T.x,f=T.y,s?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=g?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+f+"px)":"translate3d("+v+"px, "+f+"px, 0)",k)):Object.assign({},S,((t={})[w]=b?f+"px":"",t[y]=g?v+"px":"",t.transform="",t))}var Ad=Sd({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,a=e.options,n=a.scroll,l=void 0===n||n,r=a.resize,i=void 0===r||r,s=Kc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(e){e.addEventListener("scroll",o.update,Td)}),i&&s.addEventListener("resize",o.update,Td),function(){l&&c.forEach(function(e){e.removeEventListener("scroll",o.update,Td)}),i&&s.removeEventListener("resize",o.update,Td)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=function(e){var t,o=e.reference,a=e.element,n=e.placement,l=n?Bd(n):null,r=n?Pd(n):null,i=o.x+o.width/2-a.width/2,s=o.y+o.height/2-a.height/2;switch(l){case fd:t={x:i,y:o.y-a.height};break;case hd:t={x:i,y:o.y+o.height};break;case gd:t={x:o.x+o.width,y:s};break;case bd:t={x:o.x-a.width,y:s};break;default:t={x:o.x,y:o.y}}var c=l?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(l):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case yd:t[c]=t[c]-(o[d]/2-a[d]/2);break;case wd:t[c]=t[c]+(o[d]/2-a[d]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,a=o.gpuAcceleration,n=void 0===a||a,l=o.adaptive,r=void 0===l||l,i=o.roundOffsets,s=void 0===i||i,c={placement:Bd(t.placement),variation:Pd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Od(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Od(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},a=t.attributes[e]||{},n=t.elements[e];Jc(n)&&nd(n)&&(Object.assign(n.style,o),Object.keys(a).forEach(function(e){var t=a[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(e){var a=t.elements[e],n=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce(function(e,t){return e[t]="",e},{});Jc(a)&&nd(a)&&(Object.assign(a.style,l),Object.keys(n).forEach(function(e){a.removeAttribute(e)}))})}},requires:["computeStyles"]}]});const Id={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,a=e.name,n=o.offset,l=void 0===n?[0,0]:n,r=xd.reduce(function(e,o){return e[o]=function(e,t,o){var a=Bd(e),n=[bd,fd].indexOf(a)>=0?-1:1,l="function"==typeof o?o(Object.assign({},t,{placement:e})):o,r=l[0],i=l[1];return r=r||0,i=(i||0)*n,[bd,gd].indexOf(a)>=0?{x:i,y:r}:{x:r,y:i}}(o,t.rects,l),e},{}),i=r[t.placement],s=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}},[zd,Ed]=Ie("popover"),$d=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Ld={show:Boolean,theme:N("light"),overlay:Boolean,actions:w(),actionsDirection:N("vertical"),trigger:N("click"),duration:g,showArrow:b,placement:N("bottom"),iconPrefix:String,overlayClass:h,overlayStyle:Object,closeOnClickAction:b,closeOnClickOverlay:b,closeOnClickOutside:b,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};const Md=Ye(t.defineComponent({name:zd,props:Ld,emits:["select","touchstart","update:show"],setup(e,{emit:o,slots:l,attrs:r}){let i;const s=t.ref(),c=t.ref(),d=t.ref(),u=Co(()=>e.show,e=>o("update:show",e)),p=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},a({},Id,{options:{offset:e.offset}})]}),m=()=>{t.nextTick(()=>{u.value&&(i?i.setOptions(p()):(i=c.value&&d.value?Ad(c.value,d.value.popupRef.value,p()):null,n&&(window.addEventListener("animationend",m),window.addEventListener("transitionend",m))))})},f=e=>{u.value=e},h=()=>{"click"===e.trigger&&(u.value=!u.value)},g=(o,a)=>l.action?l.action({action:o,index:a}):[o.icon&&t.createVNode(wt,{name:o.icon,classPrefix:e.iconPrefix,class:Ed("action-icon")},null),t.createVNode("div",{class:[Ed("action-text"),{[Me]:"vertical"===e.actionsDirection}]},[o.text])],b=(a,n)=>{const{icon:l,color:r,disabled:i,className:s}=a;return t.createVNode("div",{role:"menuitem",class:[Ed("action",{disabled:i,"with-icon":l}),{[Le]:"horizontal"===e.actionsDirection},s],style:{color:r},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:()=>((t,a)=>{t.disabled||(o("select",t,a),e.closeOnClickAction&&(u.value=!1))})(a,n)},[g(a,n)])};return t.onMounted(()=>{m(),t.watchEffect(()=>{var e;s.value=null==(e=d.value)?void 0:e.popupRef.value})}),t.onBeforeUnmount(()=>{i&&(n&&(window.removeEventListener("animationend",m),window.removeEventListener("transitionend",m)),i.destroy(),i=null)}),t.watch(()=>[u.value,e.offset,e.placement],m),H([c,s],()=>{u.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(u.value=!1)},{eventName:"touchstart"}),()=>{var o;return t.createVNode(t.Fragment,null,[t.createVNode("span",{ref:c,class:Ed("wrapper"),onClick:h},[null==(o=l.reference)?void 0:o.call(l)]),t.createVNode(to,t.mergeProps({ref:d,show:u.value,class:Ed([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":f},r,qt(),v(e,$d)),{default:()=>[e.showArrow&&t.createVNode("div",{class:Ed("arrow")},null),t.createVNode("div",{role:"menu",class:Ed("content",e.actionsDirection)},[l.default?l.default():e.actions.map(b)])]})])}}})),[Fd,Rd]=Ie("progress"),Hd={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:b,pivotColor:String,trackColor:String,strokeWidth:g,percentage:{type:g,default:0,validator:e=>+e>=0&&+e<=100}};const jd=Ye(t.defineComponent({name:Fd,props:Hd,setup(e){const o=t.computed(()=>e.inactive?void 0:e.color),a=e=>Math.min(Math.max(+e,0),100),n=()=>{const{textColor:n,pivotText:l,pivotColor:r,percentage:i}=e,s=a(i),c=null!=l?l:`${i}%`;if(e.showPivot&&c){const a={color:n,left:`${s}%`,transform:`translate(-${s}%,-50%)`,background:r||o.value};return t.createVNode("span",{style:a,class:Rd("pivot",{inactive:e.inactive})},[c])}};return()=>{const{trackColor:l,percentage:r,strokeWidth:i}=e,s=a(r),c={background:l,height:ue(i)},d={width:`${s}%`,background:o.value};return t.createVNode("div",{class:Rd(),style:c},[t.createVNode("span",{class:Rd("portion",{inactive:e.inactive}),style:d},null),n()])}}})),[Wd,Ud,Yd]=Ie("pull-refresh"),Xd=["pulling","loosing","success"],qd={disabled:Boolean,modelValue:Boolean,headHeight:V(50),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:g,successDuration:V(500),animationDuration:V(300)};const Gd=Ye(t.defineComponent({name:Wd,props:qd,emits:["change","refresh","update:modelValue"],setup(e,{emit:o,slots:a}){let n;const l=t.ref(),r=t.ref(),i=G(l),s=t.reactive({status:"normal",distance:0,duration:0}),c=jt(),d=()=>{if(50!==e.headHeight)return{height:`${e.headHeight}px`}},u=()=>"loading"!==s.status&&"success"!==s.status&&!e.disabled,p=(t,a)=>{const n=+(e.pullDistance||e.headHeight);s.distance=t,s.status=a?"loading":0===t?"normal":t<n?"pulling":"loosing",o("change",{status:s.status,distance:t})},v=()=>{const{status:t}=s;return"normal"===t?"":e[`${t}Text`]||Yd(t)},m=()=>{const{status:e,distance:o}=s;if(a[e])return a[e]({distance:o});const n=[];return Xd.includes(e)&&n.push(t.createVNode("div",{class:Ud("text")},[v()])),"loading"===e&&n.push(t.createVNode(Tt,{class:Ud("loading")},{default:v})),n},f=e=>{n=0===J(i.value),n&&(s.duration=0,c.start(e))},h=e=>{u()&&f(e)},g=()=>{n&&c.deltaY.value&&u()&&(s.duration=+e.animationDuration,"loosing"===s.status?(p(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):p(0))};return t.watch(()=>e.modelValue,t=>{s.duration=+e.animationDuration,t?p(+e.headHeight,!0):a.success||e.successText?(s.status="success",setTimeout(()=>{p(0)},+e.successDuration)):p(0,!1)}),R("touchmove",t=>{if(u()){n||f(t);const{deltaY:o}=c;c.move(t),n&&o.value>=0&&c.isVertical()&&(re(t),p((t=>{const o=+(e.pullDistance||e.headHeight);return t>o&&(t=t<2*o?o+(t-o)/2:1.5*o+(t-2*o)/4),Math.round(t)})(o.value)))}},{target:r}),()=>{var e;const o={transitionDuration:`${s.duration}ms`,transform:s.distance?`translate3d(0,${s.distance}px, 0)`:""};return t.createVNode("div",{ref:l,class:Ud()},[t.createVNode("div",{ref:r,class:Ud("track"),style:o,onTouchstartPassive:h,onTouchend:g,onTouchcancel:g},[t.createVNode("div",{class:Ud("head"),style:d()},[m()]),null==(e=a.default)?void 0:e.call(a)])])}}})),[Zd,Kd]=Ie("rate");const _d={size:g,icon:N("star"),color:String,count:V(5),gutter:g,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:N("star-o"),allowHalf:Boolean,voidColor:String,touchable:b,iconPrefix:String,modelValue:x(0),disabledColor:String};const Jd=Ye(t.defineComponent({name:Zd,props:_d,emits:["change","update:modelValue"],setup(e,{emit:o}){const a=jt(),[n,l]=Mo(),r=t.ref(),i=t.computed(()=>e.readonly||e.disabled),s=t.computed(()=>i.value||!e.touchable),c=t.computed(()=>Array(+e.count).fill("").map((t,o)=>function(e,t,o,a){if(e>=t)return{status:"full",value:1};if(e+.5>=t&&o&&!a)return{status:"half",value:.5};if(e+1>=t&&o&&a){const o=10**10;return{status:"half",value:Math.round((e-t+1)*o)/o}}return{status:"void",value:0}}(e.modelValue,o+1,e.allowHalf,e.readonly)));let d,u,p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;const m=()=>{u=P(r);const t=n.value.map(P);d=[],t.forEach((t,o)=>{p=Math.min(t.top,p),v=Math.max(t.top,v),e.allowHalf?d.push({score:o+.5,left:t.left,top:t.top,height:t.height},{score:o+1,left:t.left+t.width/2,top:t.top,height:t.height}):d.push({score:o+1,left:t.left,top:t.top,height:t.height})})},f=(t,o)=>{for(let e=d.length-1;e>0;e--)if(o>=u.top&&o<=u.bottom){if(t>d[e].left&&o>=d[e].top&&o<=d[e].top+d[e].height)return d[e].score}else{const a=o<u.top?p:v;if(t>d[e].left&&d[e].top===a)return d[e].score}return e.allowHalf?.5:1},h=t=>{i.value||t===e.modelValue||(o("update:modelValue",t),o("change",t))},g=e=>{s.value||(a.start(e),m())},b=(o,n)=>{const{icon:r,size:i,color:s,count:c,gutter:d,voidIcon:u,disabled:p,voidColor:v,allowHalf:g,iconPrefix:b,disabledColor:y}=e,w=n+1,x="full"===o.status,V="void"===o.status,N=g&&o.value>0&&o.value<1;let C;d&&w!==+c&&(C={paddingRight:ue(d)});return t.createVNode("div",{key:n,ref:l(n),role:"radio",style:C,class:Kd("item"),tabindex:p?void 0:0,"aria-setsize":c,"aria-posinset":w,"aria-checked":!V,onClick:t=>{m();let o=g?f(t.clientX,t.clientY):w;e.clearable&&a.isTap.value&&o===e.modelValue&&(o=0),h(o)}},[t.createVNode(wt,{size:i,name:x?r:u,class:Kd("icon",{disabled:p,full:x}),color:p?y:x?s:v,classPrefix:b},null),N&&t.createVNode(wt,{size:i,style:{width:o.value+"em"},name:V?u:r,class:Kd("icon",["half",{disabled:p,full:!V}]),color:p?y:V?v:s,classPrefix:b},null)])};return _(()=>e.modelValue),R("touchmove",e=>{if(!s.value&&(a.move(e),a.isHorizontal()&&!a.isTap.value)){const{clientX:t,clientY:o}=e.touches[0];re(e),h(f(t,o))}},{target:r}),()=>t.createVNode("div",{ref:r,role:"radiogroup",class:Kd({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:g},[c.value.map(b)])}})),Qd={figureArr:w(),delay:Number,duration:x(2),isStart:Boolean,direction:N("down"),height:x(40)},[eu,tu]=Ie("rolling-text-item");var ou=t.defineComponent({name:eu,props:Qd,setup(e){const o=t.computed(()=>"down"===e.direction?e.figureArr.slice().reverse():e.figureArr),a=t.computed(()=>`-${e.height*(e.figureArr.length-1)}px`),n=t.computed(()=>({lineHeight:ue(e.height)})),l=t.computed(()=>({height:ue(e.height),"--van-translate":a.value,"--van-duration":e.duration+"s","--van-delay":e.delay+"s"}));return()=>t.createVNode("div",{class:tu([e.direction]),style:l.value},[t.createVNode("div",{class:tu("box",{animate:e.isStart})},[Array.isArray(o.value)&&o.value.map(e=>t.createVNode("div",{class:tu("item"),style:n.value},[e]))])])}});const[au,nu]=Ie("rolling-text"),lu={startNum:x(0),targetNum:Number,textList:w(),duration:x(2),autoStart:b,direction:N("down"),stopOrder:N("ltr"),height:x(40)};const ru=Ye(t.defineComponent({name:au,props:lu,setup(e){const o=t.computed(()=>Array.isArray(e.textList)&&e.textList.length),a=t.computed(()=>o.value?e.textList[0].length:`${Math.max(e.startNum,e.targetNum)}`.length),n=t=>{const o=[];for(let a=0;a<e.textList.length;a++)o.push(e.textList[a][t]);return o},l=t.computed(()=>o.value?new Array(a.value).fill(""):ye(e.targetNum,a.value).split("")),r=t.computed(()=>ye(e.startNum,a.value).split("")),i=e=>{const t=+r.value[e],o=+l.value[e],a=[];for(let n=t;n<=9;n++)a.push(n);for(let n=0;n<=2;n++)for(let e=0;e<=9;e++)a.push(e);for(let n=0;n<=o;n++)a.push(n);return a},s=(t,o)=>"ltr"===e.stopOrder?.2*t:.2*(o-1-t),c=t.ref(e.autoStart),d=()=>{c.value=!0};return t.watch(()=>e.autoStart,e=>{e&&d()}),ot({start:d,reset:()=>{c.value=!1,e.autoStart&&k(()=>d())}}),()=>t.createVNode("div",{class:nu()},[l.value.map((l,r)=>t.createVNode(ou,{figureArr:o.value?n(r):i(r),duration:e.duration,direction:e.direction,isStart:c.value,height:e.height,delay:s(r,a.value)},null))])}})),iu=Ye(Fr),[su,cu,du]=Ie("search"),uu=a({},Ja,{label:String,shape:N("square"),leftIcon:N("search"),clearable:b,actionText:String,background:String,showAction:Boolean});const pu=Ye(t.defineComponent({name:su,props:uu,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:o,slots:n,attrs:l}){const r=Lo(),i=t.ref(),s=()=>{n.action||(o("update:modelValue",""),o("cancel"))},c=t=>{13===t.keyCode&&(re(t),o("search",e.modelValue))},d=()=>e.id||`${r}-input`,u=()=>{if(n.label||e.label)return t.createVNode("label",{class:cu("label"),for:d(),"data-allow-mismatch":"attribute"},[n.label?n.label():e.label])},p=()=>{if(e.showAction){const o=e.actionText||du("cancel");return t.createVNode("div",{class:cu("action"),role:"button",tabindex:0,onClick:s},[n.action?n.action():o])}},m=e=>o("blur",e),f=e=>o("focus",e),h=e=>o("clear",e),g=e=>o("clickInput",e),b=e=>o("clickLeftIcon",e),y=e=>o("clickRightIcon",e),w=Object.keys(Ja),x=()=>{const r=a({},l,v(e,w),{id:d()});return t.createVNode(en,t.mergeProps({ref:i,type:"search",class:cu("field",{"with-message":r.errorMessage}),border:!1,labelAlign:"left",onBlur:m,onFocus:f,onClear:h,onKeypress:c,onClickInput:g,onClickLeftIcon:b,onClickRightIcon:y,"onUpdate:modelValue":e=>o("update:modelValue",e)},r),v(n,["left-icon","right-icon"]))};return ot({focus:()=>{var e;return null==(e=i.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=i.value)?void 0:e.blur()}}),()=>{var o;return t.createVNode("div",{class:cu({"show-action":e.showAction}),style:{background:e.background}},[null==(o=n.left)?void 0:o.call(n),t.createVNode("div",{class:cu("content",e.shape)},[u(),x()]),p()])}}})),vu=[...Ht,"round","closeOnPopstate","safeAreaInsetBottom"],mu={qq:"qq",link:"link-o",weibo:"weibo",qrcode:"qr",poster:"photo-o",wechat:"wechat","weapp-qrcode":"miniprogram-o","wechat-moments":"wechat-moments"},[fu,hu,gu]=Ie("share-sheet"),bu=a({},Rt,{title:String,round:b,options:w(),cancelText:String,description:String,closeOnPopstate:b,safeAreaInsetBottom:b});const yu=Ye(t.defineComponent({name:fu,props:bu,emits:["cancel","select","update:show"],setup(e,{emit:o,slots:a}){const n=e=>o("update:show",e),l=()=>{n(!1),o("cancel")},r=()=>{const o=a.title?a.title():e.title,n=a.description?a.description():e.description;if(o||n)return t.createVNode("div",{class:hu("header")},[o&&t.createVNode("h2",{class:hu("title")},[o]),n&&t.createVNode("span",{class:hu("description")},[n])])},i=e=>{return(null==(o=e)?void 0:o.includes("/"))?t.createVNode("img",{src:e,class:hu("image-icon")},null):t.createVNode("div",{class:hu("icon",[e])},[t.createVNode(wt,{name:mu[e]||e},null)]);var o},s=(e,a)=>{const{name:n,icon:l,className:r,description:s}=e;return t.createVNode("div",{role:"button",tabindex:0,class:[hu("option"),r,je],onClick:()=>((e,t)=>o("select",e,t))(e,a)},[i(l),n&&t.createVNode("span",{class:hu("name")},[n]),s&&t.createVNode("span",{class:hu("option-description")},[s])])},c=(e,o)=>t.createVNode("div",{class:hu("options",{border:o})},[e.map(s)]),d=()=>{const{options:t}=e;return Array.isArray(t[0])?t.map((e,t)=>c(e,0!==t)):c(t)},u=()=>{var o;const n=null!=(o=e.cancelText)?o:gu("cancel");if(a.cancel||n)return t.createVNode("button",{type:"button",class:hu("cancel"),onClick:l},[a.cancel?a.cancel():n])};return()=>t.createVNode(to,t.mergeProps({class:hu(),position:"bottom","onUpdate:show":n},v(e,vu)),{default:()=>[r(),d(),u()]})}})),[wu,xu]=Ie("sidebar"),Vu=Symbol(wu),Nu={modelValue:V(0)};const Cu=Ye(t.defineComponent({name:wu,props:Nu,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=I(Vu),l=()=>+e.modelValue;return n({getActive:l,setActive:e=>{e!==l()&&(o("update:modelValue",e),o("change",e))}}),()=>{var e;return t.createVNode("div",{role:"tablist",class:xu()},[null==(e=a.default)?void 0:e.call(a)])}}})),[ku,Su]=Ie("sidebar-item"),Tu=a({},at,{dot:Boolean,title:String,badge:g,disabled:Boolean,badgeProps:Object});const Bu=Ye(t.defineComponent({name:ku,props:Tu,emits:["click"],setup(e,{emit:o,slots:a}){const n=lt(),{parent:l,index:r}=D(Vu);if(!l)return;const i=()=>{e.disabled||(o("click",r.value),l.setActive(r.value),n())};return()=>{const{dot:o,badge:n,title:s,disabled:c}=e,d=r.value===l.getActive();return t.createVNode("div",{role:"tab",class:Su({select:d,disabled:c}),tabindex:c?void 0:0,"aria-selected":d,onClick:i},[t.createVNode(ct,t.mergeProps({dot:o,class:Su("text"),content:n},e.badgeProps),{default:()=>[a.title?a.title():s]})])}}})),[Pu,Du,Ou]=Ie("signature"),Au={tips:String,type:N("png"),penColor:N("#000"),lineWidth:x(3),clearButtonText:String,backgroundColor:N(""),confirmButtonText:String};const Iu=Ye(t.defineComponent({name:Pu,props:Au,emits:["submit","clear","start","end","signing"],setup(e,{emit:o,slots:a}){const l=t.ref(),r=t.ref(),i=t.computed(()=>l.value?l.value.getContext("2d"):null),s=!n||(()=>{var e;const t=document.createElement("canvas");return!!(null==(e=t.getContext)?void 0:e.call(t,"2d"))})();let c,d=0,u=0;const p=()=>{if(!i.value)return!1;i.value.beginPath(),i.value.lineWidth=e.lineWidth,i.value.strokeStyle=e.penColor,c=P(l),o("start")},v=e=>{if(!i.value)return!1;re(e);const t=e.touches[0],a=t.clientX-((null==c?void 0:c.left)||0),n=t.clientY-((null==c?void 0:c.top)||0);i.value.lineCap="round",i.value.lineJoin="round",i.value.lineTo(a,n),i.value.stroke(),o("signing",e)},m=e=>{re(e),o("end")},f=t=>{t&&e.backgroundColor&&(t.fillStyle=e.backgroundColor,t.fillRect(0,0,d,u))},h=()=>{var t,a;const n=l.value;if(!n)return;const r=(t=>{const o=document.createElement("canvas");if(o.width=t.width,o.height=t.height,e.backgroundColor){const e=o.getContext("2d");f(e)}return t.toDataURL()===o.toDataURL()})(n),i=r?"":(null==(a=(t={jpg:()=>n.toDataURL("image/jpeg",.8),jpeg:()=>n.toDataURL("image/jpeg",.8)})[e.type])?void 0:a.call(t))||n.toDataURL(`image/${e.type}`);o("submit",{image:i,canvas:n})},g=()=>{i.value&&(i.value.clearRect(0,0,d,u),i.value.closePath(),f(i.value)),o("clear")},b=()=>{var e,t,o;if(s&&l.value){const a=l.value,s=n?window.devicePixelRatio:1;d=a.width=((null==(e=r.value)?void 0:e.offsetWidth)||0)*s,u=a.height=((null==(t=r.value)?void 0:t.offsetHeight)||0)*s,null==(o=i.value)||o.scale(s,s),f(i.value)}},y=()=>{if(i.value){const e=i.value.getImageData(0,0,d,u);b(),i.value.putImageData(e,0,0)}};return t.watch(se,y),t.onMounted(b),ot({resize:y,clear:g,submit:h}),()=>t.createVNode("div",{class:Du()},[t.createVNode("div",{class:Du("content"),ref:r},[s?t.createVNode("canvas",{ref:l,onTouchstartPassive:p,onTouchmove:v,onTouchend:m},null):a.tips?a.tips():t.createVNode("p",null,[e.tips])]),t.createVNode("div",{class:Du("footer")},[t.createVNode(Ot,{size:"small",onClick:g},{default:()=>[e.clearButtonText||Ou("clear")]}),t.createVNode(Ot,{type:"primary",size:"small",onClick:h},{default:()=>[e.confirmButtonText||Ou("confirm")]})])])}})),[zu,Eu]=Ie("skeleton-title"),$u={round:Boolean,titleWidth:g};const Lu=Ye(t.defineComponent({name:zu,props:$u,setup:e=>()=>t.createVNode("h3",{class:Eu([{round:e.round}]),style:{width:ue(e.titleWidth)}},null)}));var Mu=Lu;const[Fu,Ru]=Ie("skeleton-avatar"),Hu={avatarSize:g,avatarShape:N("round")};const ju=Ye(t.defineComponent({name:Fu,props:Hu,setup:e=>()=>t.createVNode("div",{class:Ru([e.avatarShape]),style:pe(e.avatarSize)},null)}));var Wu=ju;const Uu="100%",Yu={round:Boolean,rowWidth:{type:g,default:Uu}},[Xu,qu]=Ie("skeleton-paragraph");const Gu=Ye(t.defineComponent({name:Xu,props:Yu,setup:e=>()=>t.createVNode("div",{class:qu([{round:e.round}]),style:{width:e.rowWidth}},null)}));var Zu=Gu;const[Ku,_u]=Ie("skeleton"),Ju={row:V(0),round:Boolean,title:Boolean,titleWidth:g,avatar:Boolean,avatarSize:g,avatarShape:N("round"),loading:b,animate:b,rowWidth:{type:[Number,String,Array],default:Uu}};const Qu=Ye(t.defineComponent({name:Ku,inheritAttrs:!1,props:Ju,setup(e,{slots:o,attrs:a}){const n=()=>{if(e.avatar)return t.createVNode(Wu,{avatarShape:e.avatarShape,avatarSize:e.avatarSize},null)},l=()=>{if(e.title)return t.createVNode(Mu,{round:e.round,titleWidth:e.titleWidth},null)},r=t=>{const{rowWidth:o}=e;return o===Uu&&t===+e.row-1?"60%":Array.isArray(o)?o[t]:o};return()=>{var i;return e.loading?t.createVNode("div",t.mergeProps({class:_u({animate:e.animate,round:e.round})},a),[o.template?o.template():t.createVNode(t.Fragment,null,[n(),t.createVNode("div",{class:_u("content")},[l(),Array(+e.row).fill("").map((o,a)=>t.createVNode(Zu,{key:a,round:e.round,rowWidth:ue(r(a))},null))])])]):null==(i=o.default)?void 0:i.call(o)}}})),[ep,tp]=Ie("skeleton-image"),op={imageSize:g,imageShape:N("square")};const ap=Ye(t.defineComponent({name:ep,props:op,setup:e=>()=>t.createVNode("div",{class:tp([e.imageShape]),style:pe(e.imageSize)},[t.createVNode(wt,{name:"photo",class:tp("icon")},null)])})),[np,lp]=Ie("slider"),rp={min:V(0),max:V(100),step:V(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:g,buttonSize:g,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};const ip=Ye(t.defineComponent({name:np,props:rp,emits:["change","dragEnd","dragStart","update:modelValue"],setup(e,{emit:o,slots:a}){let n,l,r;const i=t.ref(),s=[t.ref(),t.ref()],c=t.ref(),d=jt(),u=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:ue(e.barHeight)}}),v=t=>e.range&&Array.isArray(t),f=()=>{const{modelValue:t,min:o}=e;return v(t)?100*(t[1]-t[0])/u.value+"%":100*(t-Number(o))/u.value+"%"},h=t.computed(()=>{const t=e.vertical?"height":"width",o={[t]:f(),background:e.activeColor};c.value&&(o.transition="none");return o[e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left"]=(()=>{const{modelValue:t,min:o}=e;return v(t)?100*(t[0]-Number(o))/u.value+"%":"0%"})(),o}),g=t=>{const o=+e.min,a=+e.max,n=+e.step;t=we(t,o,a);return Ne(o,Math.round((t-o)/n)*n)},b=()=>{const t=e.modelValue;r=v(t)?t.map(g):g(t)},y=(t,a)=>{t=v(t)?(t=>{var o,a;const n=null!=(o=t[0])?o:Number(e.min),l=null!=(a=t[1])?a:Number(e.max);return n>l?[l,n]:[n,l]})(t).map(g):g(t),m(t,e.modelValue)||o("update:modelValue",t),a&&!m(t,r)&&o("change",t)},w=t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;b();const{min:o,reverse:a,vertical:n,modelValue:l}=e,r=P(i),s=n?r.height:r.width,c=Number(o)+(n?a?r.bottom-t.clientY:t.clientY-r.top:a?r.right-t.clientX:t.clientX-r.left)/s*u.value;if(v(l)){const[e,t]=l;y(c<=(e+t)/2?[c,t]:[e,c],!0)}else y(c,!0)},x=t=>{if(e.disabled||e.readonly)return;"start"===c.value&&o("dragStart",t),re(t,!0),d.move(t),c.value="dragging";const a=P(i);let s=(e.vertical?d.deltaY.value:d.deltaX.value)/(e.vertical?a.height:a.width)*u.value;if(e.reverse&&(s=-s),v(r)){const t=e.reverse?1-n:n;l[t]=r[t]+s}else l=r+s;y(l)},V=t=>{e.disabled||e.readonly||("dragging"===c.value&&(y(l,!0),o("dragEnd",t)),c.value="")},N=t=>{if("number"==typeof t){return lp("button-wrapper",["left","right"][t])}return lp("button-wrapper",e.reverse?"left":"right")},C=(o,r)=>{const i="dragging"===c.value;if("number"==typeof r){const e=a[0===r?"left-button":"right-button"];let t;if(i&&Array.isArray(l)&&(t=l[0]>l[1]?1^n:n),e)return e({value:o,dragging:i,dragIndex:t})}return a.button?a.button({value:o,dragging:i}):t.createVNode("div",{class:lp("button"),style:pe(e.buttonSize)},null)},k=o=>{const a="number"==typeof o?e.modelValue[o]:e.modelValue;return t.createVNode("div",{ref:s[null!=o?o:0],role:"slider",class:N(o),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":a,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstartPassive:t=>{"number"==typeof o&&(n=o),(t=>{e.disabled||e.readonly||(d.start(t),l=e.modelValue,b(),c.value="start")})(t)},onTouchend:V,onTouchcancel:V,onClick:le},[C(a,o)])};return y(e.modelValue),_(()=>e.modelValue),s.forEach(e=>{R("touchmove",x,{target:e})}),()=>t.createVNode("div",{ref:i,style:p.value,class:lp({vertical:e.vertical,disabled:e.disabled}),onClick:w},[t.createVNode("div",{class:lp("bar"),style:h.value},[e.range?[k(0),k(1)]:k()])])}})),[sp,cp]=Ie("space"),dp={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function up(e=[]){const o=[];return e.forEach(e=>{Array.isArray(e)?o.push(...e):e.type===t.Fragment?o.push(...up(e.children)):o.push(e)}),o.filter(e=>{var o;return!(e&&(e.type===t.Comment||e.type===t.Fragment&&0===(null==(o=e.children)?void 0:o.length)||e.type===t.Text&&""===e.children.trim()))})}const pp=Ye(t.defineComponent({name:sp,props:dp,setup(e,{slots:o}){const a=t.computed(()=>{var t;return null!=(t=e.align)?t:"horizontal"===e.direction?"center":""}),n=e=>"number"==typeof e?e+"px":e,l=t=>{const o={},a=`${n(Array.isArray(e.size)?e.size[0]:e.size)}`,l=`${n(Array.isArray(e.size)?e.size[1]:e.size)}`;return t?e.wrap?{marginBottom:l}:{}:("horizontal"===e.direction&&(o.marginRight=a),("vertical"===e.direction||e.wrap)&&(o.marginBottom=l),o)};return()=>{var n;const r=up(null==(n=o.default)?void 0:n.call(o));return t.createVNode("div",{class:[cp({[e.direction]:e.direction,[`align-${a.value}`]:a.value,wrap:e.wrap,fill:e.fill})]},[r.map((e,o)=>t.createVNode("div",{key:`item-${o}`,class:`${sp}-item`,style:l(o===r.length-1)},[e]))])}}})),[vp,mp]=Ie("steps"),fp={active:V(0),direction:N("horizontal"),activeIcon:N("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},hp=Symbol(vp);var gp=t.defineComponent({name:vp,props:fp,emits:["clickStep"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=I(hp);return n({props:e,onClickStep:e=>o("clickStep",e)}),()=>{var o;return t.createVNode("div",{class:mp([e.direction])},[t.createVNode("div",{class:mp("items")},[null==(o=a.default)?void 0:o.call(a)])])}}});const[bp,yp]=Ie("step");const wp=Ye(t.defineComponent({name:bp,setup(e,{slots:o}){const{parent:a,index:n}=D(hp);if(!a)return;const l=a.props,r=()=>{const e=+l.active;return n.value<e?"finish":n.value===e?"process":"waiting"},i=()=>"process"===r(),s=t.computed(()=>({background:"finish"===r()?l.activeColor:l.inactiveColor})),c=t.computed(()=>i()?{color:l.activeColor}:"waiting"===r()?{color:l.inactiveColor}:void 0),d=()=>a.onClickStep(n.value),u=()=>{const{iconPrefix:e,finishIcon:a,activeIcon:n,activeColor:c,inactiveIcon:d}=l;return i()?o["active-icon"]?o["active-icon"]():t.createVNode(wt,{class:yp("icon","active"),name:n,color:c,classPrefix:e},null):"finish"===r()&&(a||o["finish-icon"])?o["finish-icon"]?o["finish-icon"]():t.createVNode(wt,{class:yp("icon","finish"),name:a,color:c,classPrefix:e},null):o["inactive-icon"]?o["inactive-icon"]():d?t.createVNode(wt,{class:yp("icon"),name:d,classPrefix:e},null):t.createVNode("i",{class:yp("circle"),style:s.value},null)};return()=>{var e;const a=r();return t.createVNode("div",{class:[ze,yp([l.direction,{[a]:a}])]},[t.createVNode("div",{class:yp("title",{active:i()}),style:c.value,onClick:d},[null==(e=o.default)?void 0:e.call(o)]),t.createVNode("div",{class:yp("circle-container"),onClick:d},[u()]),t.createVNode("div",{class:yp("line"),style:s.value},null)])}}})),[xp,Vp]=Ie("stepper"),Np=(e,t)=>String(e)===String(t),Cp={min:V(1),max:V(1/0),name:V(""),step:V(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:b,showMinus:b,showInput:b,longPress:b,autoFixed:b,allowEmpty:Boolean,modelValue:g,inputWidth:g,buttonSize:g,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:V(1),decimalLength:g};const kp=Ye(t.defineComponent({name:xp,props:Cp,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,{emit:o}){const a=(t,o=!0)=>{const{min:a,max:n,allowEmpty:l,decimalLength:i}=e;return l&&""===t||("number"==typeof t&&String(t).includes("e")&&(t=t.toFixed(i?+i:17)),t=""===(t=Ve(String(t),!e.integer))?0:+t,t=Number.isNaN(t)?+a:t,t=o?Math.max(Math.min(+n,t),+a):t,r(i)&&(t=t.toFixed(+i))),t};let n;const l=t.ref(),i=t.ref((()=>{var t;const n=null!=(t=e.modelValue)?t:e.defaultValue,l=a(n);return Np(l,e.modelValue)||o("update:modelValue",l),l})()),s=t.computed(()=>e.disabled||e.disableMinus||+i.value<=+e.min),c=t.computed(()=>e.disabled||e.disablePlus||+i.value>=+e.max),d=t.computed(()=>({width:ue(e.inputWidth),height:ue(e.buttonSize)})),u=t.computed(()=>pe(e.buttonSize)),p=t=>{e.beforeChange?Ue(e.beforeChange,{args:[t],done(){i.value=t}}):i.value=t},v=()=>{if("plus"===n&&c.value||"minus"===n&&s.value)return void o("overlimit",n);const t="minus"===n?-e.step:+e.step,l=a(Ne(+i.value,t));p(l),o(n)},m=t=>{const o=t.target,{value:a}=o,{decimalLength:n}=e;let l=Ve(String(a),!e.integer);if(r(n)&&l.includes(".")){const e=l.split(".");l=`${e[0]}.${e[1].slice(0,+n)}`}e.beforeChange?o.value=String(i.value):Np(a,l)||(o.value=l);const s=l===String(+l);p(s?+l:l)},f=t=>{var a;e.disableInput?null==(a=l.value)||a.blur():o("focus",t)},h=n=>{const l=n.target,r=a(l.value,e.autoFixed);l.value=String(r),i.value=r,t.nextTick(()=>{o("blur",n),ne()})};let g,b;const y=()=>{b=setTimeout(()=>{v(),y()},200)},w=t=>{e.longPress&&(clearTimeout(b),g&&re(t))},x=t=>{e.disableInput&&re(t)},V=t=>({onClick:e=>{re(e),n=t,v()},onTouchstartPassive:()=>{n=t,e.longPress&&(g=!1,clearTimeout(b),b=setTimeout(()=>{g=!0,v(),y()},500))},onTouchend:w,onTouchcancel:w});return t.watch(()=>[e.max,e.min,e.integer,e.decimalLength],()=>{const e=a(i.value);Np(e,i.value)||(i.value=e)}),t.watch(()=>e.modelValue,e=>{Np(e,i.value)||(i.value=a(e))}),t.watch(i,t=>{o("update:modelValue",t),o("change",t,{name:e.name})}),_(()=>e.modelValue),()=>t.createVNode("div",{role:"group",class:Vp([e.theme])},[t.withDirectives(t.createVNode("button",t.mergeProps({type:"button",style:u.value,class:[Vp("minus",{disabled:s.value}),{[je]:!s.value}],"aria-disabled":s.value||void 0},V("minus")),null),[[t.vShow,e.showMinus]]),t.withDirectives(t.createVNode("input",{ref:l,type:e.integer?"tel":"text",role:"spinbutton",class:Vp("input"),value:i.value,style:d.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,autocomplete:"off","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":i.value,onBlur:h,onInput:m,onFocus:f,onMousedown:x},null),[[t.vShow,e.showInput]]),t.withDirectives(t.createVNode("button",t.mergeProps({type:"button",style:u.value,class:[Vp("plus",{disabled:c.value}),{[je]:!c.value}],"aria-disabled":c.value||void 0},V("plus")),null),[[t.vShow,e.showPlus]])])}})),Sp=Ye(gp),[Tp,Bp,Pp]=Ie("submit-bar"),Dp={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:N("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:N("danger"),buttonColor:String,suffixLabel:String,placeholder:Boolean,decimalLength:V(2),safeAreaInsetBottom:b};const Op=Ye(t.defineComponent({name:Tp,props:Dp,emits:["submit"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=Ke(n,Bp),r=()=>{const{price:o,label:a,currency:n,textAlign:l,suffixLabel:r,decimalLength:i}=e;if("number"==typeof o){const e=(o/100).toFixed(+i).split("."),s=i?`.${e[1]}`:"";return t.createVNode("div",{class:Bp("text"),style:{textAlign:l}},[t.createVNode("span",null,[a||Pp("label")]),t.createVNode("span",{class:Bp("price")},[n,t.createVNode("span",{class:Bp("price-integer")},[e[0]]),s]),r&&t.createVNode("span",{class:Bp("suffix-label")},[r])])}},i=()=>{var o;const{tip:n,tipIcon:l}=e;if(a.tip||n)return t.createVNode("div",{class:Bp("tip")},[l&&t.createVNode(wt,{class:Bp("tip-icon"),name:l},null),n&&t.createVNode("span",{class:Bp("tip-text")},[n]),null==(o=a.tip)?void 0:o.call(a)])},s=()=>o("submit"),c=()=>{var o,l;return t.createVNode("div",{ref:n,class:[Bp(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(o=a.top)?void 0:o.call(a),i(),t.createVNode("div",{class:Bp("bar")},[null==(l=a.default)?void 0:l.call(a),r(),a.button?a.button():t.createVNode(Ot,{round:!0,type:e.buttonType,text:e.buttonText,class:Bp("button",e.buttonType),color:e.buttonColor,loading:e.loading,disabled:e.disabled,onClick:s},null)])])};return()=>e.placeholder?l(c):c()}})),[Ap,Ip]=Ie("swipe-cell"),zp={name:V(""),disabled:Boolean,leftWidth:g,rightWidth:g,beforeClose:Function,stopPropagation:Boolean};const Ep=Ye(t.defineComponent({name:Ap,props:zp,emits:["open","close","click"],setup(e,{emit:o,slots:a}){let n,l,i,s;const c=t.ref(),d=t.ref(),u=t.ref(),p=t.reactive({offset:0,dragging:!1}),v=jt(),m=e=>e.value?P(e).width:0,f=t.computed(()=>r(e.leftWidth)?+e.leftWidth:m(d)),h=t.computed(()=>r(e.rightWidth)?+e.rightWidth:m(u)),g=t=>{p.offset="left"===t?f.value:-h.value,n||(n=!0,o("open",{name:e.name,position:t}))},b=t=>{p.offset=0,n&&(n=!1,o("close",{name:e.name,position:t}))},y=t=>{e.disabled||(i=p.offset,v.start(t))},w=()=>{p.dragging&&(p.dragging=!1,(e=>{const t=Math.abs(p.offset),o=n?.85:.15,a="left"===e?f.value:h.value;a&&t>a*o?g(e):b(e)})(p.offset>0?"left":"right"),setTimeout(()=>{l=!1},0))},x=(t="outside",a)=>{s||(o("click",t),n&&!l&&(s=!0,Ue(e.beforeClose,{args:[{event:a,name:e.name,position:t}],done:()=>{s=!1,b(t)},canceled:()=>s=!1,error:()=>s=!1})))},V=e=>t=>{(l||n)&&t.stopPropagation(),l||x(e,t)},N=(e,o)=>{const n=a[e];if(n)return t.createVNode("div",{ref:o,class:Ip(e),onClick:V(e)},[n()])};return ot({open:g,close:b}),H(c,e=>x("outside",e),{eventName:"touchstart"}),R("touchmove",t=>{if(e.disabled)return;const{deltaX:o}=v;if(v.move(t),v.isHorizontal()){l=!0,p.dragging=!0;(!n||o.value*i<0)&&re(t,e.stopPropagation),p.offset=we(o.value+i,-h.value,f.value)}},{target:c}),()=>{var e;const o={transform:`translate3d(${p.offset}px, 0, 0)`,transitionDuration:p.dragging?"0s":".6s"};return t.createVNode("div",{ref:c,class:Ip(),onClick:V("cell"),onTouchstartPassive:y,onTouchend:w,onTouchcancel:w},[t.createVNode("div",{class:Ip("wrapper"),style:o},[N("left",d),null==(e=a.default)?void 0:e.call(a),N("right",u)])])}}})),[$p,Lp]=Ie("tabbar"),Mp={route:Boolean,fixed:b,border:b,zIndex:g,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:V(0),safeAreaInsetBottom:{type:Boolean,default:null}},Fp=Symbol($p);const Rp=Ye(t.defineComponent({name:$p,props:Mp,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),{linkChildren:l}=I(Fp),r=Ke(n,Lp),i=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},s=()=>{var o;const{fixed:l,zIndex:r,border:s}=e;return t.createVNode("div",{ref:n,role:"tablist",style:ve(r),class:[Lp({fixed:l}),{[Re]:s,"van-safe-area-bottom":i()}]},[null==(o=a.default)?void 0:o.call(a)])};return l({props:e,setActive:(t,a)=>{Ue(e.beforeChange,{args:[t],done(){o("update:modelValue",t),o("change",t),a()}})}}),()=>e.fixed&&e.placeholder?r(s):s()}})),[Hp,jp]=Ie("tabbar-item"),Wp=a({},at,{dot:Boolean,icon:String,name:g,badge:g,badgeProps:Object,iconPrefix:String});const Up=Ye(t.defineComponent({name:Hp,props:Wp,emits:["click"],setup(e,{emit:o,slots:a}){const n=lt(),r=t.getCurrentInstance().proxy,{parent:i,index:s}=D(Fp);if(!i)return;const c=t.computed(()=>{var t;const{route:o,modelValue:a}=i.props;if(o&&"$route"in r){const{$route:t}=r,{to:o}=e,a=l(o)?o:{path:o};return t.matched.some(e=>{const t="path"in a&&a.path===e.path,o="name"in a&&a.name===e.name;return t||o})}return(null!=(t=e.name)?t:s.value)===a}),d=t=>{var a;c.value||i.setActive(null!=(a=e.name)?a:s.value,n),o("click",t)},u=()=>a.icon?a.icon({active:c.value}):e.icon?t.createVNode(wt,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var o;const{dot:n,badge:l}=e,{activeColor:r,inactiveColor:s}=i.props,p=c.value?r:s;return t.createVNode("div",{role:"tab",class:jp({active:c.value}),style:{color:p},tabindex:0,"aria-selected":c.value,onClick:d},[t.createVNode(ct,t.mergeProps({dot:n,class:jp("icon"),content:l},e.badgeProps),{default:u}),t.createVNode("div",{class:jp("text")},[null==(o=a.default)?void 0:o.call(a,{active:c.value})])])}}})),[Yp,Xp]=Ie("text-ellipsis"),qp={rows:V(1),dots:N("..."),content:N(""),expandText:N(""),collapseText:N(""),position:N("end")};const Gp=Ye(t.defineComponent({name:Yp,props:qp,emits:["clickAction"],setup(e,{emit:o,slots:a}){const n=t.ref(e.content),l=t.ref(!1),r=t.ref(!1),i=t.ref(),s=t.ref();let c=!1;const d=t.computed(()=>l.value?e.collapseText:e.expandText),u=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0},p=()=>{const t=(()=>{if(!i.value||!i.value.isConnected)return;const t=window.getComputedStyle(i.value),o=document.createElement("div");return Array.prototype.slice.apply(t).forEach(e=>{o.style.setProperty(e,t.getPropertyValue(e))}),o.style.position="fixed",o.style.zIndex="-9999",o.style.top="-9999px",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.innerText=e.content,document.body.appendChild(o),o})();if(!t)return void(c=!0);const{paddingBottom:o,paddingTop:l,lineHeight:d}=t.style,p=Math.ceil((Number(e.rows)+.5)*u(d)+u(l)+u(o));p<t.offsetHeight?(r.value=!0,n.value=((t,o)=>{var n,l;const{content:r,position:i,dots:c}=e,d=r.length,u=0+d>>1,p=a.action?null!=(l=null==(n=s.value)?void 0:n.outerHTML)?l:"":e.expandText,v=(a,n)=>{if(a[1]-a[0]<=1&&n[1]-n[0]<=1)return r.slice(0,a[0])+c+r.slice(n[1],d);const l=Math.floor((a[0]+a[1])/2),i=Math.ceil((n[0]+n[1])/2);return t.innerText=e.content.slice(0,l)+e.dots+e.content.slice(i,d),t.innerHTML+=p,t.offsetHeight>=o?v([a[0],l],[i,n[1]]):v([l,a[1]],[n[0],i])};return"middle"===e.position?v([0,u],[u,d]):(()=>{const e=(a,n)=>{if(n-a<=1)return"end"===i?r.slice(0,a)+c:c+r.slice(n,d);const l=Math.round((a+n)/2);return t.innerText="end"===i?r.slice(0,l)+c:c+r.slice(l,d),t.innerHTML+=p,t.offsetHeight>o?"end"===i?e(a,l):e(l,n):"end"===i?e(l,n):e(a,l)};return e(0,d)})()})(t,p)):(r.value=!1,n.value=e.content),document.body.removeChild(t)},v=(e=!l.value)=>{l.value=e},m=e=>{v(),o("clickAction",e)},f=()=>{const e=a.action?a.action({expanded:l.value}):d.value;return t.createVNode("span",{ref:s,class:Xp("action"),onClick:m},[e])};return t.onMounted(()=>{p(),a.action&&t.nextTick(p)}),t.onActivated(()=>{c&&(c=!1,p())}),t.watch([se,()=>[e.content,e.rows,e.position]],p),ot({toggle:v}),()=>t.createVNode("div",{ref:i,class:Xp()},[l.value?e.content:n.value,r.value?f():null])}})),[Zp]=Ie("time-picker"),Kp=e=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(e),_p=["hour","minute","second"],Jp=a({},Jl,{minHour:V(0),maxHour:V(23),minMinute:V(0),maxMinute:V(59),minSecond:V(0),maxSecond:V(59),minTime:{type:String,validator:Kp},maxTime:{type:String,validator:Kp},columnsType:{type:Array,default:()=>["hour","minute"]}});const Qp=Ye(t.defineComponent({name:Zp,props:Jp,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(e.modelValue),l=t.ref(),r=t=>{const o=t.split(":");return _p.map((t,a)=>e.columnsType.includes(t)?o[a]:"00")},i=t.computed(()=>{let{minHour:t,maxHour:o,minMinute:a,maxMinute:l,minSecond:i,maxSecond:s}=e;if(e.minTime||e.maxTime){const c={hour:0,minute:0,second:0};e.columnsType.forEach((e,t)=>{var o;c[e]=null!=(o=n.value[t])?o:0});const{hour:d,minute:u}=c;if(e.minTime){const[o,n,l]=r(e.minTime);t=o,a=+d<=+t?n:"00",i=+d<=+t&&+u<=+a?l:"00"}if(e.maxTime){const[t,a,n]=r(e.maxTime);o=t,l=+d>=+o?a:"59",s=+d>=+o&&+u>=+l?n:"59"}}return e.columnsType.map(r=>{const{filter:c,formatter:d}=e;switch(r){case"hour":return tr(+t,+o,r,d,c,n.value);case"minute":return tr(+a,+l,r,d,c,n.value);case"second":return tr(+i,+s,r,d,c,n.value);default:return[]}})});t.watch(n,t=>{m(t,e.modelValue)||o("update:modelValue",t)}),t.watch(()=>e.modelValue,e=>{e=or(e,i.value),m(e,n.value)||(n.value=e)},{immediate:!0});const s=(...e)=>o("change",...e),c=(...e)=>o("cancel",...e),d=(...e)=>o("confirm",...e);return ot({confirm:()=>{var e;return null==(e=l.value)?void 0:e.confirm()},getSelectedTime:()=>n.value}),()=>t.createVNode(Da,t.mergeProps({ref:l,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,columns:i.value,onChange:s,onCancel:c,onConfirm:d},v(e,Ql)),a)}})),[ev,tv]=Ie("tree-select"),ov={max:V(1/0),items:w(),height:V(300),selectedIcon:N("success"),mainActiveIndex:V(0),activeId:{type:[Number,String,Array],default:0}};const av=Ye(t.defineComponent({name:ev,props:ov,emits:["clickNav","clickItem","update:activeId","update:mainActiveIndex"],setup(e,{emit:o,slots:a}){const n=t=>Array.isArray(e.activeId)?e.activeId.includes(t):e.activeId===t,l=a=>t.createVNode("div",{key:a.id,class:["van-ellipsis",tv("item",{active:n(a.id),disabled:a.disabled})],onClick:()=>{if(a.disabled)return;let t;if(Array.isArray(e.activeId)){t=e.activeId.slice();const o=t.indexOf(a.id);-1!==o?t.splice(o,1):t.length<+e.max&&t.push(a.id)}else t=a.id;o("update:activeId",t),o("clickItem",a)}},[a.text,n(a.id)&&t.createVNode(wt,{name:e.selectedIcon,class:tv("selected")},null)]),r=e=>{o("update:mainActiveIndex",e)},i=e=>o("clickNav",e),s=()=>{const o=e.items.map(e=>t.createVNode(Bu,{dot:e.dot,badge:e.badge,class:[tv("nav-item"),e.className],disabled:e.disabled,onClick:i},{title:()=>a["nav-text"]?a["nav-text"](e):e.text}));return t.createVNode(Cu,{class:tv("nav"),modelValue:e.mainActiveIndex,onChange:r},{default:()=>[o]})},c=()=>{if(a.content)return a.content();const t=e.items[+e.mainActiveIndex]||{};return t.children?t.children.map(l):void 0};return()=>t.createVNode("div",{class:tv(),style:{height:ue(e.height)}},[s(),t.createVNode("div",{class:tv("content")},[c()])])}})),[nv,lv,rv]=Ie("uploader");function iv(e,t){return new Promise(o=>{if("file"===t)return void o();const a=new FileReader;a.onload=e=>{o(e.target.result)},"dataUrl"===t?a.readAsDataURL(e):"text"===t&&a.readAsText(e)})}function sv(e,t){return f(e).some(e=>!!e.file&&(i(t)?t(e.file):e.file.size>+t))}const cv=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;function dv(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?(t=e.url,cv.test(t)):"string"==typeof e.content&&0===e.content.indexOf("data:image"));var t}var uv=t.defineComponent({props:{name:g,item:y(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,reupload:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview","reupload"],setup(e,{emit:o,slots:n}){const l=()=>{const{status:o,message:a}=e.item;if("uploading"===o||"failed"===o){const e="failed"===o?t.createVNode(wt,{name:"close",class:lv("mask-icon")},null):t.createVNode(Tt,{class:lv("loading")},null),n=r(a)&&""!==a;return t.createVNode("div",{class:lv("mask")},[e,n&&t.createVNode("div",{class:lv("mask-message")},[a])])}},i=t=>{const{name:a,item:n,index:l,beforeDelete:r}=e;t.stopPropagation(),Ue(r,{args:[n,{name:a,index:l}],done:()=>o("delete")})},s=()=>o("preview"),c=()=>o("reupload"),d=()=>{if(e.deletable&&"uploading"!==e.item.status){const e=n["preview-delete"];return t.createVNode("div",{role:"button",class:lv("preview-delete",{shadow:!e}),tabindex:0,"aria-label":rv("delete"),onClick:i},[e?e():t.createVNode(wt,{name:"cross",class:lv("preview-delete-icon")},null)])}},u=()=>{if(n["preview-cover"]){const{index:o,item:l}=e;return t.createVNode("div",{class:lv("preview-cover")},[n["preview-cover"](a({index:o},l))])}},p=()=>{const{item:o,lazyLoad:a,imageFit:n,previewSize:l,reupload:r}=e;return dv(o)?t.createVNode(fr,{fit:n,src:o.objectUrl||o.content||o.url,class:lv("preview-image"),width:Array.isArray(l)?l[0]:l,height:Array.isArray(l)?l[1]:l,lazyLoad:a,onClick:r?c:s},{default:u}):t.createVNode("div",{class:lv("file"),style:pe(e.previewSize)},[t.createVNode(wt,{class:lv("file-icon"),name:"description"},null),t.createVNode("div",{class:[lv("file-name"),"van-ellipsis"]},[o.file?o.file.name:o.url]),u()])};return()=>t.createVNode("div",{class:lv("preview")},[p(),l(),d()])}});const pv={name:V(""),accept:N("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:V(1/0),imageFit:N("cover"),resultType:N("dataUrl"),uploadIcon:N("photograph"),uploadText:String,deletable:b,reupload:Boolean,afterRead:Function,showUpload:b,modelValue:w(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:b,previewOptions:Object,previewFullImage:b,maxSize:{type:[Number,String,Function],default:1/0}};const vv=Ye(t.defineComponent({name:nv,props:pv,emits:["delete","oversize","clickUpload","closePreview","clickPreview","clickReupload","update:modelValue"],setup(e,{emit:o,slots:n}){const l=t.ref(),r=[],i=t.ref(-1),c=t.ref(!1),d=(t=e.modelValue.length)=>({name:e.name,index:t}),u=()=>{l.value&&(l.value.value="")},p=a=>{if(u(),sv(a,e.maxSize)){if(!Array.isArray(a))return void o("oversize",a,d());{const t=function(e,t){const o=[],a=[];return e.forEach(e=>{sv(e,t)?a.push(e):o.push(e)}),{valid:o,invalid:a}}(a,e.maxSize);if(a=t.valid,o("oversize",t.invalid,d()),!a.length)return}}if(a=t.reactive(a),i.value>-1){const t=[...e.modelValue];t.splice(i.value,1,a),o("update:modelValue",t),i.value=-1}else o("update:modelValue",[...e.modelValue,...f(a)]);e.afterRead&&e.afterRead(a,d())},m=t=>{const{maxCount:o,modelValue:a,resultType:n}=e;if(Array.isArray(t)){const e=+o-a.length;t.length>e&&(t=t.slice(0,e)),Promise.all(t.map(e=>iv(e,n))).then(e=>{const o=t.map((t,o)=>{const a={file:t,status:"",message:"",objectUrl:URL.createObjectURL(t)};return e[o]&&(a.content=e[o]),a});p(o)})}else iv(t,n).then(e=>{const o={file:t,status:"",message:"",objectUrl:URL.createObjectURL(t)};e&&(o.content=e),p(o)})},h=t=>{const{files:o}=t.target;if(e.disabled||!o||!o.length)return;const a=1===o.length?o[0]:[].slice.call(o);if(e.beforeRead){const t=e.beforeRead(a,d());if(!t)return void u();if(s(t))return void t.then(e=>{m(e||a)}).catch(u)}m(a)};let g;const b=()=>o("closePreview"),y=e=>{c.value=!0,i.value=e,t.nextTick(()=>k())},w=()=>{c.value||(i.value=-1),c.value=!1},x=(l,i)=>{const s=["imageFit","deletable","reupload","previewSize","beforeDelete"],c=a(v(e,s),v(l,s,!0));return t.createVNode(uv,t.mergeProps({item:l,index:i,onClick:()=>o(e.reupload?"clickReupload":"clickPreview",l,d(i)),onDelete:()=>((t,a)=>{const n=e.modelValue.slice(0);n.splice(a,1),o("update:modelValue",n),o("delete",t,d(a))})(l,i),onPreview:()=>(t=>{if(e.previewFullImage){const o=e.modelValue.filter(dv),n=o.map(e=>(e.objectUrl&&!e.url&&"failed"!==e.status&&(e.url=e.objectUrl,r.push(e.url)),e.url)).filter(Boolean);g=Zs(a({images:n,startPosition:o.indexOf(t),onClose:b},e.previewOptions))}})(l),onReupload:()=>y(i)},v(e,["name","lazyLoad"]),c),v(n,["preview-cover","preview-delete"]))},V=()=>{if(e.previewImage)return e.modelValue.map(x)},N=e=>o("clickUpload",e),C=()=>{const o=e.modelValue.length<+e.maxCount,a=e.readonly?null:t.createVNode("input",{ref:l,type:"file",class:lv("input"),accept:e.accept,capture:e.capture,multiple:e.multiple&&-1===i.value,disabled:e.disabled,onChange:h,onClick:w},null);return n.default?t.withDirectives(t.createVNode("div",{class:lv("input-wrapper"),onClick:N},[n.default(),a]),[[t.vShow,o]]):t.withDirectives(t.createVNode("div",{class:lv("upload",{readonly:e.readonly}),style:pe(e.previewSize),onClick:N},[t.createVNode(wt,{name:e.uploadIcon,class:lv("upload-icon")},null),e.uploadText&&t.createVNode("span",{class:lv("upload-text")},[e.uploadText]),a]),[[t.vShow,e.showUpload&&o]])},k=()=>{l.value&&!e.disabled&&l.value.click()};return t.onBeforeUnmount(()=>{r.forEach(e=>URL.revokeObjectURL(e))}),ot({chooseFile:k,reuploadFile:y,closeImagePreview:()=>{g&&g.close()}}),_(()=>e.modelValue),()=>t.createVNode("div",{class:lv()},[t.createVNode("div",{class:lv("wrapper",{disabled:e.disabled})},[V(),C()])])}})),[mv,fv]=Ie("watermark"),hv={gapX:x(0),gapY:x(0),image:String,width:x(100),height:x(100),rotate:V(-22),zIndex:g,content:String,opacity:g,fullPage:b,textColor:N("#dcdee0")};const gv=Ye(t.defineComponent({name:mv,props:hv,setup(e,{slots:o}){const n=t.ref(),l=t.ref(""),r=t.ref(""),i=()=>{const a={transformOrigin:"center",transform:`rotate(${e.rotate}deg)`},n=e.width+e.gapX,l=e.height+e.gapY;return t.createVNode("svg",{viewBox:`0 0 ${n} ${l}`,width:n,height:l,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{padding:`0 ${e.gapX}px ${e.gapY}px 0`,opacity:e.opacity}},[e.image&&!o.content?t.createVNode("image",{href:r.value,"xlink:href":r.value,x:"0",y:"0",width:e.width,height:e.height,style:a},null):t.createVNode("foreignObject",{x:"0",y:"0",width:e.width,height:e.height},[t.createVNode("div",{xmlns:"http://www.w3.org/1999/xhtml",style:a},[o.content?o.content():t.createVNode("span",{style:{color:e.textColor}},[e.content])])])])},s=()=>{l.value&&URL.revokeObjectURL(l.value)},c=()=>{n.value&&(s(),l.value=(e=>{const t=new Blob([e],{type:"image/svg+xml"});return URL.createObjectURL(t)})(n.value.innerHTML))};return t.watchEffect(()=>{e.image&&(e=>{const t=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.referrerPolicy="no-referrer",o.onload=()=>{t.width=o.naturalWidth,t.height=o.naturalHeight;const e=t.getContext("2d");null==e||e.drawImage(o,0,0),r.value=t.toDataURL()},o.src=e})(e.image)}),t.watch(()=>[e.content,e.textColor,e.height,e.width,e.rotate,e.gapX,e.gapY],c),t.watch(r,()=>{t.nextTick(c)}),t.onMounted(c),t.onUnmounted(s),()=>{const o=a({backgroundImage:`url(${l.value})`},ve(e.zIndex));return t.createVNode("div",{class:fv({full:e.fullPage}),style:o},[t.createVNode("div",{class:fv("wrapper"),ref:n},[i()])])}}}));class bv{constructor({el:e,src:t,error:o,loading:a,bindType:n,$parent:l,options:r,cors:i,elRenderer:s,imageCache:c}){this.el=e,this.src=t,this.error=o,this.loading=a,this.bindType=n,this.attempt=0,this.cors=i,this.naturalHeight=0,this.naturalWidth=0,this.options=r,this.$parent=l,this.elRenderer=s,this.imageCache=c,this.performanceData={loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(e){this.performanceData[e]=Date.now()}update({src:e,loading:t,error:o}){const a=this.src;this.src=e,this.loading=t,this.error=o,this.filter(),a!==this.src&&(this.attempt=0,this.initState())}checkInView(){const e=P(this.el);return e.top<window.innerHeight*this.options.preLoad&&e.bottom>this.options.preLoadTop&&e.left<window.innerWidth*this.options.preLoad&&e.right>0}filter(){Object.keys(this.options.filter).forEach(e=>{this.options.filter[e](this,this.options)})}renderLoading(e){this.state.loading=!0,kl({src:this.loading,cors:this.cors},()=>{this.render("loading",!1),this.state.loading=!1,e()},()=>{e(),this.state.loading=!1})}load(e=o){if(this.attempt>this.options.attempt-1&&this.state.error)e();else if(!this.state.rendered||!this.state.loaded)return this.imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading(()=>{var t,o;this.attempt++,null==(o=(t=this.options.adapter).beforeLoad)||o.call(t,this,this.options),this.record("loadStart"),kl({src:this.src,cors:this.cors},t=>{this.naturalHeight=t.naturalHeight,this.naturalWidth=t.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this.imageCache.add(this.src),e()},e=>{!this.options.silent&&console.error(e),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)})})}render(e,t){this.elRenderer(this,e,t)}performance(){let e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}$destroy(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}const yv="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wv=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],xv={rootMargin:"0px",threshold:0};var Vv=e=>({props:{tag:{type:String,default:"div"}},emits:["show"],render(){return t.h(this.tag,this.show&&this.$slots.default?this.$slots.default():null)},data:()=>({el:null,state:{loaded:!1},show:!1}),mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{checkInView(){const t=P(this.$el);return C&&t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy(){return this.$destroy}}});const Nv={selector:"img"};class Cv{constructor({el:e,binding:t,vnode:o,lazy:a}){this.el=null,this.vnode=o,this.binding=t,this.options={},this.lazy=a,this.queue=[],this.update({el:e,binding:t})}update({el:e,binding:t}){this.el=e,this.options=Object.assign({},Nv,t.value);this.getImgs().forEach(e=>{this.lazy.add(e,Object.assign({},this.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||this.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||this.options.loading}}),this.vnode)})}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach(e=>this.lazy.remove(e)),this.vnode=null,this.binding=null,this.lazy=null}}class kv{constructor({lazy:e}){this.lazy=e,this.queue=[]}bind(e,t,o){const a=new Cv({el:e,binding:t,vnode:o,lazy:this.lazy});this.queue.push(a)}update(e,t,o){const a=this.queue.find(t=>t.el===e);a&&a.update({el:e,binding:t,vnode:o})}unbind(e){const t=this.queue.find(t=>t.el===e);t&&(t.clear(),bl(this.queue,t))}}var Sv=e=>({props:{src:[String,Object],tag:{type:String,default:"img"}},render(){var e,o;return t.h(this.tag,{src:this.renderSrc},null==(o=(e=this.$slots).default)?void 0:o.call(e))},data:()=>({el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},renderSrc:""}),watch:{src(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created(){this.init()},mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{init(){const{src:t,loading:o,error:a}=e.valueFormatter(this.src);this.state.loaded=!1,this.options.src=t,this.options.error=a,this.options.loading=o,this.renderSrc=this.options.loading},checkInView(){const t=P(this.$el);return t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(e=o){if(this.state.attempt>this.options.attempt-1&&this.state.error)return void e();const{src:t}=this.options;kl({src:t},({src:e})=>{this.renderSrc=e,this.state.loaded=!0},()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0})}}});const Tv={install(e,o={}){const a=class{constructor({preLoad:e,error:t,throttleWait:o,preLoadTop:a,dispatchEvent:n,loading:l,attempt:r,silent:i=!0,scale:s,listenEvents:c,filter:d,adapter:u,observer:p,observerOptions:v}){this.mode=hl,this.listeners=[],this.targetIndex=0,this.targets=[],this.options={silent:i,dispatchEvent:!!n,throttleWait:o||200,preLoad:e||1.3,preLoadTop:a||0,error:t||yv,loading:l||yv,attempt:r||3,scale:s||wl(s),ListenEvents:c||wv,supportWebp:xl(),filter:d||{},adapter:u||{},observer:!!p,observerOptions:v||xv},this.initEvent(),this.imageCache=new Sl({max:200}),this.lazyLoadHandler=Vl(this.lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?gl:hl)}config(e={}){Object.assign(this.options,e)}performance(){return this.listeners.map(e=>e.performance())}addLazyBox(e){this.listeners.push(e),C&&(this.addListenerTarget(window),this.observer&&this.observer.observe(e.el),e.$el&&e.$el.parentNode&&this.addListenerTarget(e.$el.parentNode))}add(e,o,a){if(this.listeners.some(t=>t.el===e))return this.update(e,o),t.nextTick(this.lazyLoadHandler);const n=this.valueFormatter(o.value);let{src:l}=n;t.nextTick(()=>{l=yl(e,this.options.scale)||l,this.observer&&this.observer.observe(e);const r=Object.keys(o.modifiers)[0];let i;r&&(i=a.context.$refs[r],i=i?i.$el||i:document.getElementById(r)),i||(i=q(e));const s=new bv({bindType:o.arg,$parent:i,el:e,src:l,loading:n.loading,error:n.error,cors:n.cors,elRenderer:this.elRenderer.bind(this),options:this.options,imageCache:this.imageCache});this.listeners.push(s),C&&(this.addListenerTarget(window),this.addListenerTarget(i)),this.lazyLoadHandler(),t.nextTick(()=>this.lazyLoadHandler())})}update(e,o,a){const n=this.valueFormatter(o.value);let{src:l}=n;l=yl(e,this.options.scale)||l;const r=this.listeners.find(t=>t.el===e);r?r.update({src:l,error:n.error,loading:n.loading}):this.add(e,o,a),this.observer&&(this.observer.unobserve(e),this.observer.observe(e)),this.lazyLoadHandler(),t.nextTick(()=>this.lazyLoadHandler())}remove(e){if(!e)return;this.observer&&this.observer.unobserve(e);const t=this.listeners.find(t=>t.el===e);t&&(this.removeListenerTarget(t.$parent),this.removeListenerTarget(window),bl(this.listeners,t),t.$destroy())}removeComponent(e){e&&(bl(this.listeners,e),this.observer&&this.observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this.removeListenerTarget(e.$el.parentNode),this.removeListenerTarget(window))}setMode(e){fl||e!==gl||(e=hl),this.mode=e,e===hl?(this.observer&&(this.listeners.forEach(e=>{this.observer.unobserve(e.el)}),this.observer=null),this.targets.forEach(e=>{this.initListen(e.el,!0)})):(this.targets.forEach(e=>{this.initListen(e.el,!1)}),this.initIntersectionObserver())}addListenerTarget(e){if(!e)return;let t=this.targets.find(t=>t.el===e);return t?t.childrenCount++:(t={el:e,id:++this.targetIndex,childrenCount:1,listened:!0},this.mode===hl&&this.initListen(t.el,!0),this.targets.push(t)),this.targetIndex}removeListenerTarget(e){this.targets.forEach((t,o)=>{t.el===e&&(t.childrenCount--,t.childrenCount||(this.initListen(t.el,!1),this.targets.splice(o,1),t=null))})}initListen(e,t){this.options.ListenEvents.forEach(o=>(t?Nl:Cl)(e,o,this.lazyLoadHandler))}initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(e,t)=>{this.Event.listeners[e]||(this.Event.listeners[e]=[]),this.Event.listeners[e].push(t)},this.$once=(e,t)=>{const o=(...a)=>{this.$off(e,o),t.apply(this,a)};this.$on(e,o)},this.$off=(e,t)=>{if(t)bl(this.Event.listeners[e],t);else{if(!this.Event.listeners[e])return;this.Event.listeners[e].length=0}},this.$emit=(e,t,o)=>{this.Event.listeners[e]&&this.Event.listeners[e].forEach(e=>e(t,o))}}lazyLoadHandler(){const e=[];this.listeners.forEach(t=>{t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()}),e.forEach(e=>{bl(this.listeners,e),e.$destroy()})}initIntersectionObserver(){fl&&(this.observer=new IntersectionObserver(this.observerHandler.bind(this),this.options.observerOptions),this.listeners.length&&this.listeners.forEach(e=>{this.observer.observe(e.el)}))}observerHandler(e){e.forEach(e=>{e.isIntersecting&&this.listeners.forEach(t=>{if(t.el===e.target){if(t.state.loaded)return this.observer.unobserve(t.el);t.load()}})})}elRenderer(e,t,o){if(!e.el)return;const{el:a,bindType:n}=e;let l;switch(t){case"loading":l=e.loading;break;case"error":l=e.error;break;default:({src:l}=e)}if(n?a.style[n]='url("'+l+'")':a.getAttribute("src")!==l&&a.setAttribute("src",l),a.setAttribute("lazy",t),this.$emit(t,e,o),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){const o=new CustomEvent(t,{detail:e});a.dispatchEvent(o)}}valueFormatter(e){let t=e,{loading:o,error:a}=this.options;return l(e)&&(({src:t}=e),o=e.loading||this.options.loading,a=e.error||this.options.error),{src:t,loading:o,error:a}}},n=new a(o),r=new kv({lazy:n});e.config.globalProperties.$Lazyload=n,o.lazyComponent&&e.component("LazyComponent",Vv(n)),o.lazyImage&&e.component("LazyImage",Sv(n)),e.directive("lazy",{beforeMount:n.add.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)}),e.directive("lazy-container",{beforeMount:r.bind.bind(r),updated:r.update.bind(r),unmounted:r.unbind.bind(r)})}},Bv="1.0.0";function Pv(e){[tt,Et,Ft,ro,$n,ml,za,Dl,ct,zl,Ot,ur,yr,Cr,Fa,Br,rl,Xn,zr,Wr,Gr,Qr,ei,li,ui,hi,wi,Si,Ai,Hi,Yi,os,rs,fs,hs,$i,en,ws,Cs,Wa,Ps,Is,Ls,wt,fr,Ks,lc,rc,uc,Tt,Be,fc,yc,Pc,Mc,_t,Uc,Gc,Da,Zc,Md,to,jd,Gd,ol,Hn,Jd,ru,iu,pu,yu,Cu,Bu,Iu,Qu,ju,ap,Gu,Lu,ip,pp,wp,kp,Sp,Wo,Op,Go,Ep,ua,Sn,fa,Rp,Up,ha,Kn,Gp,Qp,Vn,av,vv,gv].forEach(t=>{t.install?e.use(t):t.name&&e.component(t.name,t)})}var Dv={install:Pv,version:Bv};e.ActionBar=tt,e.ActionBarButton=Et,e.ActionBarIcon=Ft,e.ActionSheet=ro,e.AddressEdit=$n,e.AddressList=ml,e.Area=za,e.BackTop=Dl,e.Badge=ct,e.Barrage=zl,e.Button=Ot,e.Calendar=ur,e.Card=yr,e.Cascader=Cr,e.Cell=Fa,e.CellGroup=Br,e.Checkbox=rl,e.CheckboxGroup=Xn,e.Circle=zr,e.Col=Wr,e.Collapse=Gr,e.CollapseItem=Qr,e.ConfigProvider=ei,e.ContactCard=li,e.ContactEdit=ui,e.ContactList=hi,e.CountDown=wi,e.Coupon=Si,e.CouponCell=Ai,e.CouponList=Hi,e.DEFAULT_ROW_WIDTH=Uu,e.DatePicker=Yi,e.Dialog=os,e.Divider=rs,e.DropdownItem=fs,e.DropdownMenu=hs,e.Empty=$i,e.Field=en,e.FloatingBubble=ws,e.FloatingPanel=Cs,e.Form=Wa,e.Grid=Ps,e.GridItem=Is,e.Highlight=Ls,e.Icon=wt,e.Image=fr,e.ImagePreview=Ks,e.IndexAnchor=lc,e.IndexBar=rc,e.Lazyload=Tv,e.List=uc,e.Loading=Tt,e.Locale=Be,e.NavBar=fc,e.NoticeBar=yc,e.Notify=Pc,e.NumberKeyboard=Mc,e.Overlay=_t,e.Pagination=Uc,e.PasswordInput=Gc,e.Picker=Da,e.PickerGroup=Zc,e.Popover=Md,e.Popup=to,e.Progress=jd,e.PullRefresh=Gd,e.Radio=ol,e.RadioGroup=Hn,e.Rate=Jd,e.RollingText=ru,e.Row=iu,e.Search=pu,e.ShareSheet=yu,e.Sidebar=Cu,e.SidebarItem=Bu,e.Signature=Iu,e.Skeleton=Qu,e.SkeletonAvatar=ju,e.SkeletonImage=ap,e.SkeletonParagraph=Gu,e.SkeletonTitle=Lu,e.Slider=ip,e.Space=pp,e.Step=wp,e.Stepper=kp,e.Steps=Sp,e.Sticky=Wo,e.SubmitBar=Op,e.Swipe=Go,e.SwipeCell=Ep,e.SwipeItem=ua,e.Switch=Sn,e.Tab=fa,e.Tabbar=Rp,e.TabbarItem=Up,e.Tabs=ha,e.Tag=Kn,e.TextEllipsis=Gp,e.TimePicker=Qp,e.Toast=Vn,e.TreeSelect=av,e.Uploader=vv,e.Watermark=gv,e.actionBarButtonProps=zt,e.actionBarIconProps=Mt,e.actionBarProps=et,e.actionSheetProps=no,e.addressEditProps=En,e.addressListProps=vl,e.allowMultipleToast=(e=!0)=>{pn=e},e.areaProps=Ia,e.backTopProps=Pl,e.badgeProps=st,e.barrageProps=Ol,e.buttonProps=Dt,e.calendarProps=dr,e.cardProps=br,e.cascaderProps=Nr,e.cellGroupProps=Tr,e.cellProps=Ma,e.checkboxGroupProps=Un,e.checkboxProps=ll,e.circleProps=Ir,e.closeDialog=()=>{Ji&&Ji.toggle(!1)},e.closeNotify=Bc,e.closeToast=e=>{var t;un.length&&(e?(un.forEach(e=>{e.close()}),un=[]):pn?null==(t=un.shift())||t.close():un[0].close())},e.colProps=jr,e.collapseItemProps=Jr,e.collapseProps=qr,e.configProviderProps=mt,e.contactCardProps=ni,e.contactEditProps=di,e.contactListProps=fi,e.countDownProps=yi,e.couponCellProps=Di,e.couponListProps=Ri,e.datePickerProps=Ui,e.default=Dv,e.dialogProps=Zi,e.dividerProps=ls,e.dropdownItemProps=ms,e.dropdownMenuProps=cs,e.emptyProps=Ei,e.fieldProps=Qa,e.floatingBubbleProps=gs,e.floatingPanelProps=xs,e.formProps=ja,e.gridItemProps=As,e.gridProps=Ts,e.highlightProps=$s,e.iconProps=yt,e.imagePreviewProps=Ys,e.imageProps=mr,e.indexAnchorProps=nc,e.indexBarProps=Qs,e.install=Pv,e.listProps=dc,e.loadingProps=St,e.navBarProps=mc,e.noticeBarProps=bc,e.notifyProps=Nc,e.numberKeyboardProps=Lc,e.overlayProps=Kt,e.paginationProps=Wc,e.passwordInputProps=qc,e.pickerGroupProps=wa,e.pickerProps=Na,e.popoverProps=Ld,e.popupProps=Jt,e.progressProps=Hd,e.pullRefreshProps=qd,e.radioGroupProps=Fn,e.radioProps=Qn,e.rateProps=_d,e.resetDialogDefaultOptions=()=>{es=a({},Qi)},e.resetNotifyDefaultOptions=()=>{Tc={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0}},e.resetToastDefaultOptions=e=>{"string"==typeof e?mn.delete(e):(vn=a({},dn),mn.clear())},e.rollingTextProps=lu,e.rowProps=Mr,e.searchProps=uu,e.setDialogDefaultOptions=e=>{a(es,e)},e.setNotifyDefaultOptions=e=>a(Tc,e),e.setToastDefaultOptions=function(e,t){"string"==typeof e?mn.set(e,t):a(vn,e)},e.shareSheetProps=bu,e.showConfirmDialog=e=>ts(a({showCancelButton:!0},e)),e.showDialog=ts,e.showFailToast=xn,e.showImagePreview=Zs,e.showLoadingToast=yn,e.showNotify=function(e){var o;if(n)return Sc||({instance:Sc}=cn({setup(){const{state:e,toggle:o}=sn();return()=>t.createVNode(Cc,t.mergeProps(e,{"onUpdate:show":o}),null)}})),e=a({},Tc,l(o=e)?o:{message:o}),Sc.open(e),clearTimeout(kc),e.duration>0&&(kc=setTimeout(Bc,e.duration)),Sc},e.showSuccessToast=wn,e.showToast=gn,e.sidebarItemProps=Tu,e.sidebarProps=Nu,e.skeletonAvatarProps=Hu,e.skeletonImageProps=op,e.skeletonParagraphProps=Yu,e.skeletonProps=Ju,e.skeletonTitleProps=$u,e.sliderProps=rp,e.spaceProps=dp,e.stepperProps=Cp,e.stepsProps=fp,e.stickyProps=jo,e.submitBarProps=Dp,e.swipeCellProps=zp,e.swipeProps=Xo,e.switchProps=kn,e.tabProps=ma,e.tabbarItemProps=Wp,e.tabbarProps=Mp,e.tabsProps=ea,e.tagProps=Zn,e.textEllipsisProps=qp,e.timePickerProps=Jp,e.toastProps=ln,e.treeSelectProps=ov,e.uploaderProps=pv,e.useAllTabStatus=la,e.useCurrentLang=()=>Se,e.useTabStatus=()=>t.inject(aa,null),e.version=Bv,e.watermarkProps=hv,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});