antd-mobile 5.26.0 → 5.27.0

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 (306) hide show
  1. package/2x/README.md +6 -22
  2. package/2x/bundle/antd-mobile.cjs.development.js +1174 -1041
  3. package/2x/bundle/antd-mobile.cjs.js +9 -8
  4. package/2x/bundle/antd-mobile.es.development.js +1012 -879
  5. package/2x/bundle/antd-mobile.es.js +8133 -7949
  6. package/2x/bundle/antd-mobile.umd.development.js +1174 -1041
  7. package/2x/bundle/antd-mobile.umd.js +9 -8
  8. package/2x/cjs/components/action-sheet/index.d.ts +0 -1
  9. package/2x/cjs/components/badge/index.d.ts +0 -1
  10. package/2x/cjs/components/capsule-tabs/index.d.ts +0 -1
  11. package/2x/cjs/components/cascade-picker/index.d.ts +0 -1
  12. package/2x/cjs/components/cascader/index.d.ts +0 -1
  13. package/2x/cjs/components/cascader-view/index.d.ts +0 -1
  14. package/2x/cjs/components/check-list/index.d.ts +0 -1
  15. package/2x/cjs/components/checkbox/group-context.d.ts +0 -1
  16. package/2x/cjs/components/checkbox/index.d.ts +0 -1
  17. package/2x/cjs/components/collapse/index.d.ts +0 -1
  18. package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  19. package/2x/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  20. package/2x/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  21. package/2x/cjs/components/date-picker/date-picker-utils.js +11 -12
  22. package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  23. package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  24. package/2x/cjs/components/date-picker/date-picker.d.ts +20 -16
  25. package/2x/cjs/components/date-picker/date-picker.js +12 -3
  26. package/2x/cjs/components/date-picker/index.d.ts +10 -9
  27. package/2x/cjs/components/date-picker/index.js +3 -1
  28. package/2x/cjs/components/date-picker/prompt.d.ts +2 -1
  29. package/2x/cjs/components/date-picker/util.d.ts +4 -0
  30. package/2x/cjs/components/date-picker/util.js +8 -0
  31. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  32. package/2x/cjs/components/date-picker-view/date-picker-view.js +7 -3
  33. package/2x/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  34. package/2x/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  35. package/2x/cjs/components/dialog/index.d.ts +0 -1
  36. package/2x/cjs/components/dropdown/index.d.ts +0 -1
  37. package/2x/cjs/components/error-block/error-block.d.ts +0 -1
  38. package/2x/cjs/components/error-block/images/busy.d.ts +0 -1
  39. package/2x/cjs/components/error-block/images/default.d.ts +0 -1
  40. package/2x/cjs/components/error-block/images/disconnected.d.ts +0 -1
  41. package/2x/cjs/components/error-block/images/empty.d.ts +0 -1
  42. package/2x/cjs/components/form/index.d.ts +0 -1
  43. package/2x/cjs/components/grid/index.d.ts +0 -1
  44. package/2x/cjs/components/image-uploader/image-uploader.js +6 -3
  45. package/2x/cjs/components/image-viewer/index.d.ts +0 -1
  46. package/2x/cjs/components/index-bar/index.d.ts +0 -1
  47. package/2x/cjs/components/jumbo-tabs/index.d.ts +0 -1
  48. package/2x/cjs/components/list/index.d.ts +0 -1
  49. package/2x/cjs/components/modal/index.d.ts +0 -1
  50. package/2x/cjs/components/popover/index.d.ts +0 -1
  51. package/2x/cjs/components/radio/group-context.d.ts +0 -1
  52. package/2x/cjs/components/radio/index.d.ts +0 -1
  53. package/2x/cjs/components/result-page/index.d.ts +0 -1
  54. package/2x/cjs/components/side-bar/index.d.ts +0 -1
  55. package/2x/cjs/components/skeleton/index.d.ts +0 -1
  56. package/2x/cjs/components/slider/slider.js +8 -3
  57. package/2x/cjs/components/stepper/stepper.d.ts +23 -16
  58. package/2x/cjs/components/stepper/stepper.js +69 -35
  59. package/2x/cjs/components/steps/index.d.ts +0 -1
  60. package/2x/cjs/components/swiper/index.d.ts +0 -1
  61. package/2x/cjs/components/tab-bar/index.d.ts +0 -1
  62. package/2x/cjs/components/tabs/index.d.ts +0 -1
  63. package/2x/cjs/components/tree-select/index.d.ts +0 -1
  64. package/2x/cjs/locales/base.d.ts +3 -0
  65. package/2x/cjs/locales/base.js +3 -0
  66. package/2x/cjs/locales/en-US.d.ts +3 -0
  67. package/2x/cjs/locales/es-ES.d.ts +3 -0
  68. package/2x/cjs/locales/fa-IR.d.ts +3 -0
  69. package/2x/cjs/locales/fr-FR.d.ts +3 -0
  70. package/2x/cjs/locales/id-ID.d.ts +3 -0
  71. package/2x/cjs/locales/ja-JP.d.ts +3 -0
  72. package/2x/cjs/locales/kk-KZ.d.ts +3 -0
  73. package/2x/cjs/locales/ko-KR.d.ts +3 -0
  74. package/2x/cjs/locales/zh-CN.d.ts +3 -0
  75. package/2x/cjs/locales/zh-CN.js +3 -0
  76. package/2x/cjs/locales/zh-HK.d.ts +3 -0
  77. package/2x/cjs/locales/zh-TW.d.ts +3 -0
  78. package/2x/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  79. package/2x/cjs/utils/use-ref-state.d.ts +0 -1
  80. package/2x/es/components/action-sheet/index.d.ts +0 -1
  81. package/2x/es/components/badge/index.d.ts +0 -1
  82. package/2x/es/components/capsule-tabs/index.d.ts +0 -1
  83. package/2x/es/components/cascade-picker/index.d.ts +0 -1
  84. package/2x/es/components/cascader/index.d.ts +0 -1
  85. package/2x/es/components/cascader-view/index.d.ts +0 -1
  86. package/2x/es/components/check-list/index.d.ts +0 -1
  87. package/2x/es/components/checkbox/group-context.d.ts +0 -1
  88. package/2x/es/components/checkbox/index.d.ts +0 -1
  89. package/2x/es/components/collapse/index.d.ts +0 -1
  90. package/2x/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  91. package/2x/es/components/date-picker/date-picker-date-utils.js +14 -11
  92. package/2x/es/components/date-picker/date-picker-utils.d.ts +2 -3
  93. package/2x/es/components/date-picker/date-picker-utils.js +9 -9
  94. package/2x/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  95. package/2x/es/components/date-picker/date-picker-week-utils.js +0 -3
  96. package/2x/es/components/date-picker/date-picker.d.ts +20 -16
  97. package/2x/es/components/date-picker/date-picker.js +13 -4
  98. package/2x/es/components/date-picker/index.d.ts +10 -9
  99. package/2x/es/components/date-picker/index.js +3 -1
  100. package/2x/es/components/date-picker/prompt.d.ts +2 -1
  101. package/2x/es/components/date-picker/util.d.ts +4 -0
  102. package/2x/es/components/date-picker/util.js +1 -0
  103. package/2x/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  104. package/2x/es/components/date-picker-view/date-picker-view.js +8 -4
  105. package/2x/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  106. package/2x/es/components/date-picker-view/useRenderLabel.js +23 -0
  107. package/2x/es/components/dialog/index.d.ts +0 -1
  108. package/2x/es/components/dropdown/index.d.ts +0 -1
  109. package/2x/es/components/error-block/error-block.d.ts +0 -1
  110. package/2x/es/components/error-block/images/busy.d.ts +0 -1
  111. package/2x/es/components/error-block/images/default.d.ts +0 -1
  112. package/2x/es/components/error-block/images/disconnected.d.ts +0 -1
  113. package/2x/es/components/error-block/images/empty.d.ts +0 -1
  114. package/2x/es/components/form/index.d.ts +0 -1
  115. package/2x/es/components/grid/index.d.ts +0 -1
  116. package/2x/es/components/image-uploader/image-uploader.js +6 -3
  117. package/2x/es/components/image-viewer/index.d.ts +0 -1
  118. package/2x/es/components/index-bar/index.d.ts +0 -1
  119. package/2x/es/components/jumbo-tabs/index.d.ts +0 -1
  120. package/2x/es/components/list/index.d.ts +0 -1
  121. package/2x/es/components/modal/index.d.ts +0 -1
  122. package/2x/es/components/popover/index.d.ts +0 -1
  123. package/2x/es/components/radio/group-context.d.ts +0 -1
  124. package/2x/es/components/radio/index.d.ts +0 -1
  125. package/2x/es/components/result-page/index.d.ts +0 -1
  126. package/2x/es/components/side-bar/index.d.ts +0 -1
  127. package/2x/es/components/skeleton/index.d.ts +0 -1
  128. package/2x/es/components/slider/slider.js +8 -3
  129. package/2x/es/components/stepper/stepper.d.ts +23 -16
  130. package/2x/es/components/stepper/stepper.js +68 -33
  131. package/2x/es/components/steps/index.d.ts +0 -1
  132. package/2x/es/components/swiper/index.d.ts +0 -1
  133. package/2x/es/components/tab-bar/index.d.ts +0 -1
  134. package/2x/es/components/tabs/index.d.ts +0 -1
  135. package/2x/es/components/tree-select/index.d.ts +0 -1
  136. package/2x/es/locales/base.d.ts +3 -0
  137. package/2x/es/locales/base.js +3 -0
  138. package/2x/es/locales/en-US.d.ts +3 -0
  139. package/2x/es/locales/es-ES.d.ts +3 -0
  140. package/2x/es/locales/fa-IR.d.ts +3 -0
  141. package/2x/es/locales/fr-FR.d.ts +3 -0
  142. package/2x/es/locales/id-ID.d.ts +3 -0
  143. package/2x/es/locales/ja-JP.d.ts +3 -0
  144. package/2x/es/locales/kk-KZ.d.ts +3 -0
  145. package/2x/es/locales/ko-KR.d.ts +3 -0
  146. package/2x/es/locales/zh-CN.d.ts +3 -0
  147. package/2x/es/locales/zh-CN.js +3 -0
  148. package/2x/es/locales/zh-HK.d.ts +3 -0
  149. package/2x/es/locales/zh-TW.d.ts +3 -0
  150. package/2x/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  151. package/2x/es/utils/use-ref-state.d.ts +0 -1
  152. package/2x/package.json +3 -2
  153. package/README.md +6 -22
  154. package/bundle/antd-mobile.cjs.development.js +1174 -1041
  155. package/bundle/antd-mobile.cjs.js +9 -8
  156. package/bundle/antd-mobile.compatible.umd.js +1 -1
  157. package/bundle/antd-mobile.es.development.js +1012 -879
  158. package/bundle/antd-mobile.es.js +8133 -7949
  159. package/bundle/antd-mobile.umd.development.js +1174 -1041
  160. package/bundle/antd-mobile.umd.js +9 -8
  161. package/cjs/components/action-sheet/index.d.ts +0 -1
  162. package/cjs/components/badge/index.d.ts +0 -1
  163. package/cjs/components/capsule-tabs/index.d.ts +0 -1
  164. package/cjs/components/cascade-picker/index.d.ts +0 -1
  165. package/cjs/components/cascader/index.d.ts +0 -1
  166. package/cjs/components/cascader-view/index.d.ts +0 -1
  167. package/cjs/components/check-list/index.d.ts +0 -1
  168. package/cjs/components/checkbox/group-context.d.ts +0 -1
  169. package/cjs/components/checkbox/index.d.ts +0 -1
  170. package/cjs/components/collapse/index.d.ts +0 -1
  171. package/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  172. package/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  173. package/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  174. package/cjs/components/date-picker/date-picker-utils.js +11 -12
  175. package/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  176. package/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  177. package/cjs/components/date-picker/date-picker.d.ts +20 -16
  178. package/cjs/components/date-picker/date-picker.js +12 -3
  179. package/cjs/components/date-picker/index.d.ts +10 -9
  180. package/cjs/components/date-picker/index.js +3 -1
  181. package/cjs/components/date-picker/prompt.d.ts +2 -1
  182. package/cjs/components/date-picker/util.d.ts +4 -0
  183. package/cjs/components/date-picker/util.js +8 -0
  184. package/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  185. package/cjs/components/date-picker-view/date-picker-view.js +7 -3
  186. package/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  187. package/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  188. package/cjs/components/dialog/index.d.ts +0 -1
  189. package/cjs/components/dropdown/index.d.ts +0 -1
  190. package/cjs/components/error-block/error-block.d.ts +0 -1
  191. package/cjs/components/error-block/images/busy.d.ts +0 -1
  192. package/cjs/components/error-block/images/default.d.ts +0 -1
  193. package/cjs/components/error-block/images/disconnected.d.ts +0 -1
  194. package/cjs/components/error-block/images/empty.d.ts +0 -1
  195. package/cjs/components/form/index.d.ts +0 -1
  196. package/cjs/components/grid/index.d.ts +0 -1
  197. package/cjs/components/image-uploader/image-uploader.js +6 -3
  198. package/cjs/components/image-viewer/index.d.ts +0 -1
  199. package/cjs/components/index-bar/index.d.ts +0 -1
  200. package/cjs/components/jumbo-tabs/index.d.ts +0 -1
  201. package/cjs/components/list/index.d.ts +0 -1
  202. package/cjs/components/modal/index.d.ts +0 -1
  203. package/cjs/components/popover/index.d.ts +0 -1
  204. package/cjs/components/radio/group-context.d.ts +0 -1
  205. package/cjs/components/radio/index.d.ts +0 -1
  206. package/cjs/components/result-page/index.d.ts +0 -1
  207. package/cjs/components/side-bar/index.d.ts +0 -1
  208. package/cjs/components/skeleton/index.d.ts +0 -1
  209. package/cjs/components/slider/slider.js +8 -3
  210. package/cjs/components/stepper/stepper.d.ts +23 -16
  211. package/cjs/components/stepper/stepper.js +69 -35
  212. package/cjs/components/steps/index.d.ts +0 -1
  213. package/cjs/components/swiper/index.d.ts +0 -1
  214. package/cjs/components/tab-bar/index.d.ts +0 -1
  215. package/cjs/components/tabs/index.d.ts +0 -1
  216. package/cjs/components/tree-select/index.d.ts +0 -1
  217. package/cjs/locales/base.d.ts +3 -0
  218. package/cjs/locales/base.js +3 -0
  219. package/cjs/locales/en-US.d.ts +3 -0
  220. package/cjs/locales/es-ES.d.ts +3 -0
  221. package/cjs/locales/fa-IR.d.ts +3 -0
  222. package/cjs/locales/fr-FR.d.ts +3 -0
  223. package/cjs/locales/id-ID.d.ts +3 -0
  224. package/cjs/locales/ja-JP.d.ts +3 -0
  225. package/cjs/locales/kk-KZ.d.ts +3 -0
  226. package/cjs/locales/ko-KR.d.ts +3 -0
  227. package/cjs/locales/zh-CN.d.ts +3 -0
  228. package/cjs/locales/zh-CN.js +3 -0
  229. package/cjs/locales/zh-HK.d.ts +3 -0
  230. package/cjs/locales/zh-TW.d.ts +3 -0
  231. package/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  232. package/cjs/utils/use-ref-state.d.ts +0 -1
  233. package/es/components/action-sheet/index.d.ts +0 -1
  234. package/es/components/badge/index.d.ts +0 -1
  235. package/es/components/capsule-tabs/index.d.ts +0 -1
  236. package/es/components/cascade-picker/index.d.ts +0 -1
  237. package/es/components/cascader/index.d.ts +0 -1
  238. package/es/components/cascader-view/index.d.ts +0 -1
  239. package/es/components/check-list/index.d.ts +0 -1
  240. package/es/components/checkbox/group-context.d.ts +0 -1
  241. package/es/components/checkbox/index.d.ts +0 -1
  242. package/es/components/collapse/index.d.ts +0 -1
  243. package/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  244. package/es/components/date-picker/date-picker-date-utils.js +14 -11
  245. package/es/components/date-picker/date-picker-utils.d.ts +2 -3
  246. package/es/components/date-picker/date-picker-utils.js +9 -9
  247. package/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  248. package/es/components/date-picker/date-picker-week-utils.js +0 -3
  249. package/es/components/date-picker/date-picker.d.ts +20 -16
  250. package/es/components/date-picker/date-picker.js +13 -4
  251. package/es/components/date-picker/index.d.ts +10 -9
  252. package/es/components/date-picker/index.js +3 -1
  253. package/es/components/date-picker/prompt.d.ts +2 -1
  254. package/es/components/date-picker/util.d.ts +4 -0
  255. package/es/components/date-picker/util.js +1 -0
  256. package/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  257. package/es/components/date-picker-view/date-picker-view.js +8 -4
  258. package/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  259. package/es/components/date-picker-view/useRenderLabel.js +23 -0
  260. package/es/components/dialog/index.d.ts +0 -1
  261. package/es/components/dropdown/index.d.ts +0 -1
  262. package/es/components/error-block/error-block.d.ts +0 -1
  263. package/es/components/error-block/images/busy.d.ts +0 -1
  264. package/es/components/error-block/images/default.d.ts +0 -1
  265. package/es/components/error-block/images/disconnected.d.ts +0 -1
  266. package/es/components/error-block/images/empty.d.ts +0 -1
  267. package/es/components/form/index.d.ts +0 -1
  268. package/es/components/grid/index.d.ts +0 -1
  269. package/es/components/image-uploader/image-uploader.js +6 -3
  270. package/es/components/image-viewer/index.d.ts +0 -1
  271. package/es/components/index-bar/index.d.ts +0 -1
  272. package/es/components/jumbo-tabs/index.d.ts +0 -1
  273. package/es/components/list/index.d.ts +0 -1
  274. package/es/components/modal/index.d.ts +0 -1
  275. package/es/components/popover/index.d.ts +0 -1
  276. package/es/components/radio/group-context.d.ts +0 -1
  277. package/es/components/radio/index.d.ts +0 -1
  278. package/es/components/result-page/index.d.ts +0 -1
  279. package/es/components/side-bar/index.d.ts +0 -1
  280. package/es/components/skeleton/index.d.ts +0 -1
  281. package/es/components/slider/slider.js +8 -3
  282. package/es/components/stepper/stepper.d.ts +23 -16
  283. package/es/components/stepper/stepper.js +68 -33
  284. package/es/components/steps/index.d.ts +0 -1
  285. package/es/components/swiper/index.d.ts +0 -1
  286. package/es/components/tab-bar/index.d.ts +0 -1
  287. package/es/components/tabs/index.d.ts +0 -1
  288. package/es/components/tree-select/index.d.ts +0 -1
  289. package/es/locales/base.d.ts +3 -0
  290. package/es/locales/base.js +3 -0
  291. package/es/locales/en-US.d.ts +3 -0
  292. package/es/locales/es-ES.d.ts +3 -0
  293. package/es/locales/fa-IR.d.ts +3 -0
  294. package/es/locales/fr-FR.d.ts +3 -0
  295. package/es/locales/id-ID.d.ts +3 -0
  296. package/es/locales/ja-JP.d.ts +3 -0
  297. package/es/locales/kk-KZ.d.ts +3 -0
  298. package/es/locales/ko-KR.d.ts +3 -0
  299. package/es/locales/zh-CN.d.ts +3 -0
  300. package/es/locales/zh-CN.js +3 -0
  301. package/es/locales/zh-HK.d.ts +3 -0
  302. package/es/locales/zh-TW.d.ts +3 -0
  303. package/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  304. package/es/utils/use-ref-state.d.ts +0 -1
  305. package/package.json +3 -2
  306. package/umd/antd-mobile.js +1 -1
@@ -1,10 +1,10 @@
1
- import * as React$1 from "react";
2
- import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
1
+ import * as React$4 from "react";
2
+ import React__default, { useContext, useRef, useMemo, useEffect, useState as useState$1, useCallback, useLayoutEffect as useLayoutEffect$2, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
3
3
  import * as ReactDOM from "react-dom";
4
4
  import { unstable_batchedUpdates, createPortal, findDOMNode } from "react-dom";
5
5
  const global$2 = "";
6
- const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
7
- if (canUseDom) {
6
+ const canUseDom$2 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
7
+ if (canUseDom$2) {
8
8
  document.addEventListener("touchstart", () => {
9
9
  }, true);
10
10
  }
@@ -20,13 +20,13 @@ function __rest(s, e) {
20
20
  }
21
21
  return t;
22
22
  }
23
- function __awaiter$1(thisArg, _arguments, P2, generator) {
23
+ function __awaiter$1(thisArg, _arguments, P, generator) {
24
24
  function adopt(value) {
25
- return value instanceof P2 ? value : new P2(function(resolve) {
25
+ return value instanceof P ? value : new P(function(resolve) {
26
26
  resolve(value);
27
27
  });
28
28
  }
29
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
29
+ return new (P || (P = Promise))(function(resolve, reject) {
30
30
  function fulfilled(value) {
31
31
  try {
32
32
  step(generator.next(value));
@@ -80,6 +80,9 @@ const base = {
80
80
  Dialog: {
81
81
  ok: "OK"
82
82
  },
83
+ DatePicker: {
84
+ tillNow: "Till Now"
85
+ },
83
86
  ErrorBlock: {
84
87
  default: {
85
88
  title: "Oops, something went wrong",
@@ -207,6 +210,9 @@ const zhCN = mergeLocale(base, {
207
210
  Dialog: {
208
211
  ok: "\u6211\u77E5\u9053\u4E86"
209
212
  },
213
+ DatePicker: {
214
+ tillNow: "\u81F3\u4ECA"
215
+ },
210
216
  ErrorBlock: {
211
217
  default: {
212
218
  title: "\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",
@@ -1143,7 +1149,7 @@ var __read$7 = globalThis && globalThis.__read || function(o, n) {
1143
1149
  return ar;
1144
1150
  };
1145
1151
  var useUpdate = function useUpdate2() {
1146
- var _a = __read$7(useState({}), 2), setState = _a[1];
1152
+ var _a = __read$7(useState$1({}), 2), setState = _a[1];
1147
1153
  return useCallback(function() {
1148
1154
  return setState({});
1149
1155
  }, []);
@@ -1553,7 +1559,7 @@ var __read$5 = globalThis && globalThis.__read || function(o, n) {
1553
1559
  return ar;
1554
1560
  };
1555
1561
  function useDebounceEffect(effect, deps, options) {
1556
- var _a = __read$5(useState({}), 2), flag = _a[0], setFlag = _a[1];
1562
+ var _a = __read$5(useState$1({}), 2), flag = _a[0], setFlag = _a[1];
1557
1563
  var run = useDebounceFn(function() {
1558
1564
  setFlag({});
1559
1565
  }, options).run;
@@ -2733,8 +2739,8 @@ var __values = globalThis && globalThis.__values || function(o) {
2733
2739
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
2734
2740
  };
2735
2741
  function useInViewport(target, options) {
2736
- var _a = __read$4(useState(), 2), state = _a[0], setState = _a[1];
2737
- var _b = __read$4(useState(), 2), ratio = _b[0], setRatio = _b[1];
2742
+ var _a = __read$4(useState$1(), 2), state = _a[0], setState = _a[1];
2743
+ var _b = __read$4(useState$1(), 2), ratio = _b[0], setRatio = _b[1];
2738
2744
  useEffectWithTarget$2(function() {
2739
2745
  var el = getTargetElement(target);
2740
2746
  if (!el) {
@@ -2771,15 +2777,15 @@ function useInViewport(target, options) {
2771
2777
  }, [], target);
2772
2778
  return [state, ratio];
2773
2779
  }
2774
- var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect : useEffect;
2780
+ var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect$2 : useEffect;
2775
2781
  const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
2776
- var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
2782
+ var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
2777
2783
  function adopt(value) {
2778
- return value instanceof P2 ? value : new P2(function(resolve) {
2784
+ return value instanceof P ? value : new P(function(resolve) {
2779
2785
  resolve(value);
2780
2786
  });
2781
2787
  }
2782
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
2788
+ return new (P || (P = Promise))(function(resolve, reject) {
2783
2789
  function fulfilled(value) {
2784
2790
  try {
2785
2791
  step(generator.next(value));
@@ -2988,7 +2994,7 @@ var __read$2 = globalThis && globalThis.__read || function(o, n) {
2988
2994
  };
2989
2995
  function useRafState(initialState) {
2990
2996
  var ref = useRef(0);
2991
- var _a = __read$2(useState(initialState), 2), state = _a[0], setState = _a[1];
2997
+ var _a = __read$2(useState$1(initialState), 2), state = _a[0], setState = _a[1];
2992
2998
  var setRafState = useCallback(function(value) {
2993
2999
  cancelAnimationFrame(ref.current);
2994
3000
  ref.current = requestAnimationFrame(function() {
@@ -3482,7 +3488,7 @@ var index$k = function() {
3482
3488
  }
3483
3489
  return ResizeObserver$1;
3484
3490
  }();
3485
- var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect);
3491
+ var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect$2);
3486
3492
  const useLayoutEffectWithTarget = useEffectWithTarget;
3487
3493
  var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
3488
3494
  const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
@@ -3676,7 +3682,7 @@ function useTouch() {
3676
3682
  isHorizontal
3677
3683
  };
3678
3684
  }
3679
- const defaultRoot = canUseDom ? window : void 0;
3685
+ const defaultRoot = canUseDom$2 ? window : void 0;
3680
3686
  const overflowStylePatterns = ["scroll", "auto", "overlay"];
3681
3687
  function isElement$1(node) {
3682
3688
  const ELEMENT_NODE_TYPE = 1;
@@ -3699,7 +3705,7 @@ function getScrollParent(el, root2 = defaultRoot) {
3699
3705
  return root2;
3700
3706
  }
3701
3707
  let supportsPassive = false;
3702
- if (canUseDom) {
3708
+ if (canUseDom$2) {
3703
3709
  try {
3704
3710
  const opts = {};
3705
3711
  Object.defineProperty(opts, "passive", {
@@ -4587,7 +4593,7 @@ function deprecateDirectCall() {
4587
4593
  function isAnimatedString(value) {
4588
4594
  return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
4589
4595
  }
4590
- const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect;
4596
+ const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect$2;
4591
4597
  const useIsMounted = () => {
4592
4598
  const isMounted = useRef(false);
4593
4599
  useIsomorphicLayoutEffect(() => {
@@ -4599,7 +4605,7 @@ const useIsMounted = () => {
4599
4605
  return isMounted;
4600
4606
  };
4601
4607
  function useForceUpdate() {
4602
- const update2 = useState()[1];
4608
+ const update2 = useState$1()[1];
4603
4609
  const isMounted = useIsMounted();
4604
4610
  return () => {
4605
4611
  if (isMounted.current) {
@@ -4608,7 +4614,7 @@ function useForceUpdate() {
4608
4614
  };
4609
4615
  }
4610
4616
  function useMemoOne(getResult, inputs) {
4611
- const [initial] = useState(() => ({
4617
+ const [initial] = useState$1(() => ({
4612
4618
  inputs,
4613
4619
  result: getResult()
4614
4620
  }));
@@ -4888,7 +4894,7 @@ const withAnimated = (Component, host2) => {
4888
4894
  each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
4889
4895
  });
4890
4896
  const usedProps = host2.getComponentProps(props.getValue());
4891
- return React$1.createElement(Component, _extends$3({}, usedProps, {
4897
+ return React$4.createElement(Component, _extends$3({}, usedProps, {
4892
4898
  ref
4893
4899
  }));
4894
4900
  });
@@ -6479,7 +6485,7 @@ const SpringContext = (_ref) => {
6479
6485
  const {
6480
6486
  Provider
6481
6487
  } = ctx;
6482
- return React$1.createElement(Provider, {
6488
+ return React$4.createElement(Provider, {
6483
6489
  value: props
6484
6490
  }, children);
6485
6491
  };
@@ -6487,7 +6493,7 @@ const ctx = makeContext(SpringContext, {});
6487
6493
  SpringContext.Provider = ctx.Provider;
6488
6494
  SpringContext.Consumer = ctx.Consumer;
6489
6495
  function makeContext(target, init) {
6490
- Object.assign(target, React$1.createContext(init));
6496
+ Object.assign(target, React$4.createContext(init));
6491
6497
  target.Provider._context = target;
6492
6498
  target.Consumer._context = target;
6493
6499
  return target;
@@ -6963,7 +6969,7 @@ function resolveContainer(getContainer) {
6963
6969
  return container || document.body;
6964
6970
  }
6965
6971
  function renderToContainer(getContainer, node) {
6966
- if (canUseDom && getContainer) {
6972
+ if (canUseDom$2 && getContainer) {
6967
6973
  const container = resolveContainer(getContainer);
6968
6974
  return createPortal(node, container);
6969
6975
  }
@@ -7038,7 +7044,7 @@ const Mask$1 = (p) => {
7038
7044
  const rgb2 = colorRecord$4[props.color];
7039
7045
  return rgb2 ? `rgba(${rgb2}, ${opacity2})` : props.color;
7040
7046
  }, [props.color, props.opacity]);
7041
- const [active, setActive] = useState(props.visible);
7047
+ const [active, setActive] = useState$1(props.visible);
7042
7048
  const unmountedRef = useUnmountedRef$1();
7043
7049
  const {
7044
7050
  opacity
@@ -7096,7 +7102,7 @@ const Mask$1 = (p) => {
7096
7102
  };
7097
7103
  const Mask = Mask$1;
7098
7104
  function AddOutline(props) {
7099
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7105
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7100
7106
  width: "1em",
7101
7107
  height: "1em",
7102
7108
  viewBox: "0 0 48 48",
@@ -7107,15 +7113,15 @@ function AddOutline(props) {
7107
7113
  verticalAlign: "-0.125em"
7108
7114
  }, props.style),
7109
7115
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7110
- }), /* @__PURE__ */ React$1.createElement("g", {
7116
+ }), /* @__PURE__ */ React$4.createElement("g", {
7111
7117
  id: "AddOutline-AddOutline",
7112
7118
  stroke: "none",
7113
7119
  strokeWidth: 1,
7114
7120
  fill: "none",
7115
7121
  fillRule: "evenodd"
7116
- }, /* @__PURE__ */ React$1.createElement("g", {
7122
+ }, /* @__PURE__ */ React$4.createElement("g", {
7117
7123
  id: "AddOutline-add"
7118
- }, /* @__PURE__ */ React$1.createElement("rect", {
7124
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7119
7125
  id: "AddOutline-\u77E9\u5F62",
7120
7126
  fill: "#FFFFFF",
7121
7127
  opacity: 0,
@@ -7123,7 +7129,7 @@ function AddOutline(props) {
7123
7129
  y: 0,
7124
7130
  width: 48,
7125
7131
  height: 48
7126
- }), /* @__PURE__ */ React$1.createElement("path", {
7132
+ }), /* @__PURE__ */ React$4.createElement("path", {
7127
7133
  d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
7128
7134
  id: "AddOutline-\u8DEF\u5F84",
7129
7135
  fill: "currentColor",
@@ -7131,7 +7137,7 @@ function AddOutline(props) {
7131
7137
  }))));
7132
7138
  }
7133
7139
  function CheckCircleFill(props) {
7134
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7140
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7135
7141
  width: "1em",
7136
7142
  height: "1em",
7137
7143
  viewBox: "0 0 48 48",
@@ -7142,15 +7148,15 @@ function CheckCircleFill(props) {
7142
7148
  verticalAlign: "-0.125em"
7143
7149
  }, props.style),
7144
7150
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7145
- }), /* @__PURE__ */ React$1.createElement("g", {
7151
+ }), /* @__PURE__ */ React$4.createElement("g", {
7146
7152
  id: "CheckCircleFill-CheckCircleFill",
7147
7153
  stroke: "none",
7148
7154
  strokeWidth: 1,
7149
7155
  fill: "none",
7150
7156
  fillRule: "evenodd"
7151
- }, /* @__PURE__ */ React$1.createElement("g", {
7157
+ }, /* @__PURE__ */ React$4.createElement("g", {
7152
7158
  id: "CheckCircleFill-\u7F16\u7EC4"
7153
- }, /* @__PURE__ */ React$1.createElement("rect", {
7159
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7154
7160
  id: "CheckCircleFill-\u77E9\u5F62",
7155
7161
  fill: "#FFFFFF",
7156
7162
  opacity: 0,
@@ -7158,7 +7164,7 @@ function CheckCircleFill(props) {
7158
7164
  y: 0,
7159
7165
  width: 48,
7160
7166
  height: 48
7161
- }), /* @__PURE__ */ React$1.createElement("path", {
7167
+ }), /* @__PURE__ */ React$4.createElement("path", {
7162
7168
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
7163
7169
  id: "CheckCircleFill-\u5F62\u72B6\u7ED3\u5408",
7164
7170
  fill: "currentColor",
@@ -7166,7 +7172,7 @@ function CheckCircleFill(props) {
7166
7172
  }))));
7167
7173
  }
7168
7174
  function CheckOutline(props) {
7169
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7175
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7170
7176
  width: "1em",
7171
7177
  height: "1em",
7172
7178
  viewBox: "0 0 48 48",
@@ -7177,15 +7183,15 @@ function CheckOutline(props) {
7177
7183
  verticalAlign: "-0.125em"
7178
7184
  }, props.style),
7179
7185
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7180
- }), /* @__PURE__ */ React$1.createElement("g", {
7186
+ }), /* @__PURE__ */ React$4.createElement("g", {
7181
7187
  id: "CheckOutline-CheckOutline",
7182
7188
  stroke: "none",
7183
7189
  strokeWidth: 1,
7184
7190
  fill: "none",
7185
7191
  fillRule: "evenodd"
7186
- }, /* @__PURE__ */ React$1.createElement("g", {
7192
+ }, /* @__PURE__ */ React$4.createElement("g", {
7187
7193
  id: "CheckOutline-\u7F16\u7EC4"
7188
- }, /* @__PURE__ */ React$1.createElement("rect", {
7194
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7189
7195
  id: "CheckOutline-\u77E9\u5F62",
7190
7196
  fill: "#FFFFFF",
7191
7197
  opacity: 0,
@@ -7193,7 +7199,7 @@ function CheckOutline(props) {
7193
7199
  y: 0,
7194
7200
  width: 48,
7195
7201
  height: 48
7196
- }), /* @__PURE__ */ React$1.createElement("path", {
7202
+ }), /* @__PURE__ */ React$4.createElement("path", {
7197
7203
  d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
7198
7204
  id: "CheckOutline-\u8DEF\u5F84",
7199
7205
  fill: "currentColor",
@@ -7201,7 +7207,7 @@ function CheckOutline(props) {
7201
7207
  }))));
7202
7208
  }
7203
7209
  function ClockCircleFill(props) {
7204
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7210
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7205
7211
  width: "1em",
7206
7212
  height: "1em",
7207
7213
  viewBox: "0 0 48 48",
@@ -7212,15 +7218,15 @@ function ClockCircleFill(props) {
7212
7218
  verticalAlign: "-0.125em"
7213
7219
  }, props.style),
7214
7220
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7215
- }), /* @__PURE__ */ React$1.createElement("g", {
7221
+ }), /* @__PURE__ */ React$4.createElement("g", {
7216
7222
  id: "ClockCircleFill-ClockCircleFill",
7217
7223
  stroke: "none",
7218
7224
  strokeWidth: 1,
7219
7225
  fill: "none",
7220
7226
  fillRule: "evenodd"
7221
- }, /* @__PURE__ */ React$1.createElement("g", {
7227
+ }, /* @__PURE__ */ React$4.createElement("g", {
7222
7228
  id: "ClockCircleFill-\u7F16\u7EC4"
7223
- }, /* @__PURE__ */ React$1.createElement("rect", {
7229
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7224
7230
  id: "ClockCircleFill-\u77E9\u5F62",
7225
7231
  fill: "#FFFFFF",
7226
7232
  opacity: 0,
@@ -7228,7 +7234,7 @@ function ClockCircleFill(props) {
7228
7234
  y: 0,
7229
7235
  width: 48,
7230
7236
  height: 48
7231
- }), /* @__PURE__ */ React$1.createElement("path", {
7237
+ }), /* @__PURE__ */ React$4.createElement("path", {
7232
7238
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
7233
7239
  id: "ClockCircleFill-\u5F62\u72B6\u7ED3\u5408",
7234
7240
  fill: "currentColor",
@@ -7236,7 +7242,7 @@ function ClockCircleFill(props) {
7236
7242
  }))));
7237
7243
  }
7238
7244
  function CloseCircleFill(props) {
7239
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7245
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7240
7246
  width: "1em",
7241
7247
  height: "1em",
7242
7248
  viewBox: "0 0 48 48",
@@ -7247,15 +7253,15 @@ function CloseCircleFill(props) {
7247
7253
  verticalAlign: "-0.125em"
7248
7254
  }, props.style),
7249
7255
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7250
- }), /* @__PURE__ */ React$1.createElement("g", {
7256
+ }), /* @__PURE__ */ React$4.createElement("g", {
7251
7257
  id: "CloseCircleFill-CloseCircleFill",
7252
7258
  stroke: "none",
7253
7259
  strokeWidth: 1,
7254
7260
  fill: "none",
7255
7261
  fillRule: "evenodd"
7256
- }, /* @__PURE__ */ React$1.createElement("g", {
7262
+ }, /* @__PURE__ */ React$4.createElement("g", {
7257
7263
  id: "CloseCircleFill-\u7F16\u7EC4"
7258
- }, /* @__PURE__ */ React$1.createElement("rect", {
7264
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7259
7265
  id: "CloseCircleFill-\u77E9\u5F62",
7260
7266
  fill: "#FFFFFF",
7261
7267
  opacity: 0,
@@ -7263,7 +7269,7 @@ function CloseCircleFill(props) {
7263
7269
  y: 0,
7264
7270
  width: 48,
7265
7271
  height: 48
7266
- }), /* @__PURE__ */ React$1.createElement("path", {
7272
+ }), /* @__PURE__ */ React$4.createElement("path", {
7267
7273
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
7268
7274
  id: "CloseCircleFill-\u5F62\u72B6\u7ED3\u5408",
7269
7275
  fill: "currentColor",
@@ -7271,7 +7277,7 @@ function CloseCircleFill(props) {
7271
7277
  }))));
7272
7278
  }
7273
7279
  function CloseOutline(props) {
7274
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7280
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7275
7281
  width: "1em",
7276
7282
  height: "1em",
7277
7283
  viewBox: "0 0 48 48",
@@ -7282,15 +7288,15 @@ function CloseOutline(props) {
7282
7288
  verticalAlign: "-0.125em"
7283
7289
  }, props.style),
7284
7290
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7285
- }), /* @__PURE__ */ React$1.createElement("g", {
7291
+ }), /* @__PURE__ */ React$4.createElement("g", {
7286
7292
  id: "CloseOutline-CloseOutline",
7287
7293
  stroke: "none",
7288
7294
  strokeWidth: 1,
7289
7295
  fill: "none",
7290
7296
  fillRule: "evenodd"
7291
- }, /* @__PURE__ */ React$1.createElement("g", {
7297
+ }, /* @__PURE__ */ React$4.createElement("g", {
7292
7298
  id: "CloseOutline-\u7F16\u7EC4"
7293
- }, /* @__PURE__ */ React$1.createElement("rect", {
7299
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7294
7300
  id: "CloseOutline-\u77E9\u5F62",
7295
7301
  fill: "#FFFFFF",
7296
7302
  opacity: 0,
@@ -7298,7 +7304,7 @@ function CloseOutline(props) {
7298
7304
  y: 0,
7299
7305
  width: 48,
7300
7306
  height: 48
7301
- }), /* @__PURE__ */ React$1.createElement("path", {
7307
+ }), /* @__PURE__ */ React$4.createElement("path", {
7302
7308
  d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
7303
7309
  id: "CloseOutline-\u8DEF\u5F84",
7304
7310
  fill: "currentColor",
@@ -7306,7 +7312,7 @@ function CloseOutline(props) {
7306
7312
  }))));
7307
7313
  }
7308
7314
  function DownFill(props) {
7309
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7315
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7310
7316
  width: "1em",
7311
7317
  height: "1em",
7312
7318
  viewBox: "0 0 48 48",
@@ -7317,15 +7323,15 @@ function DownFill(props) {
7317
7323
  verticalAlign: "-0.125em"
7318
7324
  }, props.style),
7319
7325
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7320
- }), /* @__PURE__ */ React$1.createElement("g", {
7326
+ }), /* @__PURE__ */ React$4.createElement("g", {
7321
7327
  id: "DownFill-DownFill",
7322
7328
  stroke: "none",
7323
7329
  strokeWidth: 1,
7324
7330
  fill: "none",
7325
7331
  fillRule: "evenodd"
7326
- }, /* @__PURE__ */ React$1.createElement("g", {
7332
+ }, /* @__PURE__ */ React$4.createElement("g", {
7327
7333
  id: "DownFill-\u7F16\u7EC4"
7328
- }, /* @__PURE__ */ React$1.createElement("rect", {
7334
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7329
7335
  id: "DownFill-\u77E9\u5F62",
7330
7336
  fill: "#FFFFFF",
7331
7337
  opacity: 0,
@@ -7333,7 +7339,7 @@ function DownFill(props) {
7333
7339
  y: 0,
7334
7340
  width: 48,
7335
7341
  height: 48
7336
- }), /* @__PURE__ */ React$1.createElement("path", {
7342
+ }), /* @__PURE__ */ React$4.createElement("path", {
7337
7343
  d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
7338
7344
  id: "DownFill-\u8DEF\u5F84",
7339
7345
  fill: "currentColor",
@@ -7341,7 +7347,7 @@ function DownFill(props) {
7341
7347
  }))));
7342
7348
  }
7343
7349
  function DownOutline(props) {
7344
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7350
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7345
7351
  width: "1em",
7346
7352
  height: "1em",
7347
7353
  viewBox: "0 0 48 48",
@@ -7352,13 +7358,13 @@ function DownOutline(props) {
7352
7358
  verticalAlign: "-0.125em"
7353
7359
  }, props.style),
7354
7360
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7355
- }), /* @__PURE__ */ React$1.createElement("g", {
7361
+ }), /* @__PURE__ */ React$4.createElement("g", {
7356
7362
  id: "DownOutline-DownOutline",
7357
7363
  stroke: "none",
7358
7364
  strokeWidth: 1,
7359
7365
  fill: "none",
7360
7366
  fillRule: "evenodd"
7361
- }, /* @__PURE__ */ React$1.createElement("g", null, /* @__PURE__ */ React$1.createElement("rect", {
7367
+ }, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
7362
7368
  id: "DownOutline-\u77E9\u5F62",
7363
7369
  fill: "#FFFFFF",
7364
7370
  opacity: 0,
@@ -7366,7 +7372,7 @@ function DownOutline(props) {
7366
7372
  y: 0,
7367
7373
  width: 48,
7368
7374
  height: 48
7369
- }), /* @__PURE__ */ React$1.createElement("path", {
7375
+ }), /* @__PURE__ */ React$4.createElement("path", {
7370
7376
  d: "M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",
7371
7377
  id: "DownOutline-down",
7372
7378
  fill: "currentColor",
@@ -7374,7 +7380,7 @@ function DownOutline(props) {
7374
7380
  }))));
7375
7381
  }
7376
7382
  function ExclamationCircleFill(props) {
7377
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7383
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7378
7384
  width: "1em",
7379
7385
  height: "1em",
7380
7386
  viewBox: "0 0 48 48",
@@ -7385,13 +7391,13 @@ function ExclamationCircleFill(props) {
7385
7391
  verticalAlign: "-0.125em"
7386
7392
  }, props.style),
7387
7393
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7388
- }), /* @__PURE__ */ React$1.createElement("g", {
7394
+ }), /* @__PURE__ */ React$4.createElement("g", {
7389
7395
  id: "ExclamationCircleFill-ExclamationCircleFill",
7390
7396
  stroke: "none",
7391
7397
  strokeWidth: 1,
7392
7398
  fill: "none",
7393
7399
  fillRule: "evenodd"
7394
- }, /* @__PURE__ */ React$1.createElement("g", null, /* @__PURE__ */ React$1.createElement("rect", {
7400
+ }, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
7395
7401
  id: "ExclamationCircleFill-\u77E9\u5F62",
7396
7402
  fill: "#D76060",
7397
7403
  opacity: 0,
@@ -7399,7 +7405,7 @@ function ExclamationCircleFill(props) {
7399
7405
  y: 0,
7400
7406
  width: 48,
7401
7407
  height: 48
7402
- }), /* @__PURE__ */ React$1.createElement("path", {
7408
+ }), /* @__PURE__ */ React$4.createElement("path", {
7403
7409
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
7404
7410
  id: "ExclamationCircleFill-\u5F62\u72B6\u7ED3\u5408",
7405
7411
  fill: "currentColor",
@@ -7407,7 +7413,7 @@ function ExclamationCircleFill(props) {
7407
7413
  }))));
7408
7414
  }
7409
7415
  function InformationCircleFill(props) {
7410
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7416
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7411
7417
  width: "1em",
7412
7418
  height: "1em",
7413
7419
  viewBox: "0 0 48 48",
@@ -7418,15 +7424,15 @@ function InformationCircleFill(props) {
7418
7424
  verticalAlign: "-0.125em"
7419
7425
  }, props.style),
7420
7426
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7421
- }), /* @__PURE__ */ React$1.createElement("g", {
7427
+ }), /* @__PURE__ */ React$4.createElement("g", {
7422
7428
  id: "InformationCircleFill-InformationCircleFill",
7423
7429
  stroke: "none",
7424
7430
  strokeWidth: 1,
7425
7431
  fill: "none",
7426
7432
  fillRule: "evenodd"
7427
- }, /* @__PURE__ */ React$1.createElement("g", {
7433
+ }, /* @__PURE__ */ React$4.createElement("g", {
7428
7434
  id: "InformationCircleFill-\u7F16\u7EC4"
7429
- }, /* @__PURE__ */ React$1.createElement("rect", {
7435
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7430
7436
  id: "InformationCircleFill-\u77E9\u5F62",
7431
7437
  fill: "#FFFFFF",
7432
7438
  opacity: 0,
@@ -7434,7 +7440,7 @@ function InformationCircleFill(props) {
7434
7440
  y: 0,
7435
7441
  width: 48,
7436
7442
  height: 48
7437
- }), /* @__PURE__ */ React$1.createElement("path", {
7443
+ }), /* @__PURE__ */ React$4.createElement("path", {
7438
7444
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
7439
7445
  id: "InformationCircleFill-\u5F62\u72B6\u7ED3\u5408",
7440
7446
  fill: "currentColor",
@@ -7442,7 +7448,7 @@ function InformationCircleFill(props) {
7442
7448
  }))));
7443
7449
  }
7444
7450
  function LeftOutline(props) {
7445
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7451
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7446
7452
  width: "1em",
7447
7453
  height: "1em",
7448
7454
  viewBox: "0 0 48 48",
@@ -7453,15 +7459,15 @@ function LeftOutline(props) {
7453
7459
  verticalAlign: "-0.125em"
7454
7460
  }, props.style),
7455
7461
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7456
- }), /* @__PURE__ */ React$1.createElement("g", {
7462
+ }), /* @__PURE__ */ React$4.createElement("g", {
7457
7463
  id: "LeftOutline-LeftOutline",
7458
7464
  stroke: "none",
7459
7465
  strokeWidth: 1,
7460
7466
  fill: "none",
7461
7467
  fillRule: "evenodd"
7462
- }, /* @__PURE__ */ React$1.createElement("g", {
7468
+ }, /* @__PURE__ */ React$4.createElement("g", {
7463
7469
  id: "LeftOutline-\u7F16\u7EC4"
7464
- }, /* @__PURE__ */ React$1.createElement("rect", {
7470
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7465
7471
  id: "LeftOutline-\u77E9\u5F62",
7466
7472
  fill: "#FFFFFF",
7467
7473
  opacity: 0,
@@ -7469,7 +7475,7 @@ function LeftOutline(props) {
7469
7475
  y: 0,
7470
7476
  width: 48,
7471
7477
  height: 48
7472
- }), /* @__PURE__ */ React$1.createElement("path", {
7478
+ }), /* @__PURE__ */ React$4.createElement("path", {
7473
7479
  d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
7474
7480
  id: "LeftOutline-\u8DEF\u5F84",
7475
7481
  fill: "currentColor",
@@ -7477,7 +7483,7 @@ function LeftOutline(props) {
7477
7483
  }))));
7478
7484
  }
7479
7485
  function MinusOutline(props) {
7480
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7486
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7481
7487
  width: "1em",
7482
7488
  height: "1em",
7483
7489
  viewBox: "0 0 48 48",
@@ -7488,15 +7494,15 @@ function MinusOutline(props) {
7488
7494
  verticalAlign: "-0.125em"
7489
7495
  }, props.style),
7490
7496
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7491
- }), /* @__PURE__ */ React$1.createElement("g", {
7497
+ }), /* @__PURE__ */ React$4.createElement("g", {
7492
7498
  id: "MinusOutline-MinusOutline",
7493
7499
  stroke: "none",
7494
7500
  strokeWidth: 1,
7495
7501
  fill: "none",
7496
7502
  fillRule: "evenodd"
7497
- }, /* @__PURE__ */ React$1.createElement("g", {
7503
+ }, /* @__PURE__ */ React$4.createElement("g", {
7498
7504
  id: "MinusOutline-add"
7499
- }, /* @__PURE__ */ React$1.createElement("rect", {
7505
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7500
7506
  id: "MinusOutline-\u77E9\u5F62",
7501
7507
  fill: "#FFFFFF",
7502
7508
  opacity: 0,
@@ -7504,7 +7510,7 @@ function MinusOutline(props) {
7504
7510
  y: 0,
7505
7511
  width: 48,
7506
7512
  height: 48
7507
- }), /* @__PURE__ */ React$1.createElement("path", {
7513
+ }), /* @__PURE__ */ React$4.createElement("path", {
7508
7514
  d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
7509
7515
  id: "MinusOutline-\u8DEF\u5F84",
7510
7516
  fill: "currentColor",
@@ -7512,7 +7518,7 @@ function MinusOutline(props) {
7512
7518
  }))));
7513
7519
  }
7514
7520
  function QuestionCircleOutline(props) {
7515
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7521
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7516
7522
  width: "1em",
7517
7523
  height: "1em",
7518
7524
  viewBox: "0 0 48 48",
@@ -7523,15 +7529,15 @@ function QuestionCircleOutline(props) {
7523
7529
  verticalAlign: "-0.125em"
7524
7530
  }, props.style),
7525
7531
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7526
- }), /* @__PURE__ */ React$1.createElement("g", {
7532
+ }), /* @__PURE__ */ React$4.createElement("g", {
7527
7533
  id: "QuestionCircleOutline-QuestionCircleOutline",
7528
7534
  stroke: "none",
7529
7535
  strokeWidth: 1,
7530
7536
  fill: "none",
7531
7537
  fillRule: "evenodd"
7532
- }, /* @__PURE__ */ React$1.createElement("g", {
7538
+ }, /* @__PURE__ */ React$4.createElement("g", {
7533
7539
  id: "QuestionCircleOutline-\u7F16\u7EC4"
7534
- }, /* @__PURE__ */ React$1.createElement("rect", {
7540
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7535
7541
  id: "QuestionCircleOutline-\u77E9\u5F62",
7536
7542
  fill: "#FFFFFF",
7537
7543
  opacity: 0,
@@ -7539,7 +7545,7 @@ function QuestionCircleOutline(props) {
7539
7545
  y: 0,
7540
7546
  width: 48,
7541
7547
  height: 48
7542
- }), /* @__PURE__ */ React$1.createElement("path", {
7548
+ }), /* @__PURE__ */ React$4.createElement("path", {
7543
7549
  d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
7544
7550
  id: "QuestionCircleOutline-\u5F62\u72B6",
7545
7551
  fill: "currentColor",
@@ -7547,7 +7553,7 @@ function QuestionCircleOutline(props) {
7547
7553
  }))));
7548
7554
  }
7549
7555
  function RightOutline(props) {
7550
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7556
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7551
7557
  width: "1em",
7552
7558
  height: "1em",
7553
7559
  viewBox: "0 0 48 48",
@@ -7558,15 +7564,15 @@ function RightOutline(props) {
7558
7564
  verticalAlign: "-0.125em"
7559
7565
  }, props.style),
7560
7566
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7561
- }), /* @__PURE__ */ React$1.createElement("g", {
7567
+ }), /* @__PURE__ */ React$4.createElement("g", {
7562
7568
  id: "RightOutline-RightOutline",
7563
7569
  stroke: "none",
7564
7570
  strokeWidth: 1,
7565
7571
  fill: "none",
7566
7572
  fillRule: "evenodd"
7567
- }, /* @__PURE__ */ React$1.createElement("g", {
7573
+ }, /* @__PURE__ */ React$4.createElement("g", {
7568
7574
  id: "RightOutline-RightOutlined"
7569
- }, /* @__PURE__ */ React$1.createElement("rect", {
7575
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7570
7576
  id: "RightOutline-\u77E9\u5F62",
7571
7577
  fill: "#FFFFFF",
7572
7578
  opacity: 0,
@@ -7574,7 +7580,7 @@ function RightOutline(props) {
7574
7580
  y: 0,
7575
7581
  width: 48,
7576
7582
  height: 48
7577
- }), /* @__PURE__ */ React$1.createElement("path", {
7583
+ }), /* @__PURE__ */ React$4.createElement("path", {
7578
7584
  d: "M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",
7579
7585
  id: "RightOutline-right",
7580
7586
  fill: "currentColor",
@@ -7582,7 +7588,7 @@ function RightOutline(props) {
7582
7588
  }))));
7583
7589
  }
7584
7590
  function SearchOutline(props) {
7585
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7591
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7586
7592
  width: "1em",
7587
7593
  height: "1em",
7588
7594
  viewBox: "0 0 48 48",
@@ -7593,15 +7599,15 @@ function SearchOutline(props) {
7593
7599
  verticalAlign: "-0.125em"
7594
7600
  }, props.style),
7595
7601
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7596
- }), /* @__PURE__ */ React$1.createElement("g", {
7602
+ }), /* @__PURE__ */ React$4.createElement("g", {
7597
7603
  id: "SearchOutline-SearchOutline",
7598
7604
  stroke: "none",
7599
7605
  strokeWidth: 1,
7600
7606
  fill: "none",
7601
7607
  fillRule: "evenodd"
7602
- }, /* @__PURE__ */ React$1.createElement("g", {
7608
+ }, /* @__PURE__ */ React$4.createElement("g", {
7603
7609
  id: "SearchOutline-\u7F16\u7EC4"
7604
- }, /* @__PURE__ */ React$1.createElement("rect", {
7610
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7605
7611
  id: "SearchOutline-\u77E9\u5F62",
7606
7612
  fill: "#FFFFFF",
7607
7613
  opacity: 0,
@@ -7609,7 +7615,7 @@ function SearchOutline(props) {
7609
7615
  y: 0,
7610
7616
  width: 48,
7611
7617
  height: 48
7612
- }), /* @__PURE__ */ React$1.createElement("path", {
7618
+ }), /* @__PURE__ */ React$4.createElement("path", {
7613
7619
  d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
7614
7620
  id: "SearchOutline-\u5F62\u72B6",
7615
7621
  fill: "currentColor",
@@ -7617,7 +7623,7 @@ function SearchOutline(props) {
7617
7623
  }))));
7618
7624
  }
7619
7625
  function SoundOutline(props) {
7620
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7626
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7621
7627
  width: "1em",
7622
7628
  height: "1em",
7623
7629
  viewBox: "0 0 48 48",
@@ -7628,15 +7634,15 @@ function SoundOutline(props) {
7628
7634
  verticalAlign: "-0.125em"
7629
7635
  }, props.style),
7630
7636
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7631
- }), /* @__PURE__ */ React$1.createElement("g", {
7637
+ }), /* @__PURE__ */ React$4.createElement("g", {
7632
7638
  id: "SoundOutline-SoundOutline",
7633
7639
  stroke: "none",
7634
7640
  strokeWidth: 1,
7635
7641
  fill: "none",
7636
7642
  fillRule: "evenodd"
7637
- }, /* @__PURE__ */ React$1.createElement("g", {
7643
+ }, /* @__PURE__ */ React$4.createElement("g", {
7638
7644
  id: "SoundOutline-\u7F16\u7EC4"
7639
- }, /* @__PURE__ */ React$1.createElement("rect", {
7645
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7640
7646
  id: "SoundOutline-\u77E9\u5F62",
7641
7647
  fill: "#FFFFFF",
7642
7648
  opacity: 0,
@@ -7644,7 +7650,7 @@ function SoundOutline(props) {
7644
7650
  y: 0,
7645
7651
  width: 48,
7646
7652
  height: 48
7647
- }), /* @__PURE__ */ React$1.createElement("path", {
7653
+ }), /* @__PURE__ */ React$4.createElement("path", {
7648
7654
  d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
7649
7655
  id: "SoundOutline-\u5F62\u72B6",
7650
7656
  fill: "currentColor",
@@ -7652,7 +7658,7 @@ function SoundOutline(props) {
7652
7658
  }))));
7653
7659
  }
7654
7660
  function TextDeletionOutline(props) {
7655
- return /* @__PURE__ */ React$1.createElement("svg", Object.assign({
7661
+ return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
7656
7662
  width: "1em",
7657
7663
  height: "1em",
7658
7664
  viewBox: "0 0 48 48",
@@ -7663,15 +7669,15 @@ function TextDeletionOutline(props) {
7663
7669
  verticalAlign: "-0.125em"
7664
7670
  }, props.style),
7665
7671
  className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
7666
- }), /* @__PURE__ */ React$1.createElement("g", {
7672
+ }), /* @__PURE__ */ React$4.createElement("g", {
7667
7673
  id: "TextDeletionOutline-TextDeletionOutline",
7668
7674
  stroke: "none",
7669
7675
  strokeWidth: 1,
7670
7676
  fill: "none",
7671
7677
  fillRule: "evenodd"
7672
- }, /* @__PURE__ */ React$1.createElement("g", {
7678
+ }, /* @__PURE__ */ React$4.createElement("g", {
7673
7679
  id: "TextDeletionOutline-\u7F16\u7EC4"
7674
- }, /* @__PURE__ */ React$1.createElement("rect", {
7680
+ }, /* @__PURE__ */ React$4.createElement("rect", {
7675
7681
  id: "TextDeletionOutline-\u77E9\u5F62",
7676
7682
  fill: "#FFFFFF",
7677
7683
  opacity: 0,
@@ -7679,7 +7685,7 @@ function TextDeletionOutline(props) {
7679
7685
  y: 0,
7680
7686
  width: 48,
7681
7687
  height: 48
7682
- }), /* @__PURE__ */ React$1.createElement("path", {
7688
+ }), /* @__PURE__ */ React$4.createElement("path", {
7683
7689
  d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
7684
7690
  id: "TextDeletionOutline-\u5F62\u72B6\u7ED3\u5408",
7685
7691
  fill: "currentColor",
@@ -7698,7 +7704,7 @@ const defaultPopupBaseProps = {
7698
7704
  visible: false
7699
7705
  };
7700
7706
  function useInnerVisible(outerVisible) {
7701
- const [innerVisible, setInnerVisible] = useState(outerVisible);
7707
+ const [innerVisible, setInnerVisible] = useState$1(outerVisible);
7702
7708
  useIsomorphicLayoutEffect$2(() => {
7703
7709
  setInnerVisible(outerVisible);
7704
7710
  }, [outerVisible]);
@@ -7711,7 +7717,7 @@ const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps),
7711
7717
  const Popup$1 = (p) => {
7712
7718
  const props = mergeProps(defaultProps$12, p);
7713
7719
  const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
7714
- const [active, setActive] = useState(props.visible);
7720
+ const [active, setActive] = useState$1(props.visible);
7715
7721
  useIsomorphicLayoutEffect$2(() => {
7716
7722
  if (props.visible) {
7717
7723
  setActive(true);
@@ -7878,9 +7884,9 @@ function renderToBody(element) {
7878
7884
  }
7879
7885
  function renderImperatively(element) {
7880
7886
  const Wrapper2 = React__default.forwardRef((_, ref) => {
7881
- const [visible, setVisible] = useState(false);
7887
+ const [visible, setVisible] = useState$1(false);
7882
7888
  const closedRef = useRef(false);
7883
- const [elementToRender, setElementToRender] = useState(element);
7889
+ const [elementToRender, setElementToRender] = useState$1(element);
7884
7890
  const keyRef = useRef(0);
7885
7891
  useEffect(() => {
7886
7892
  if (!closedRef.current) {
@@ -8091,12 +8097,12 @@ const defaultProps$10 = {
8091
8097
  };
8092
8098
  const Image$2 = staged_1((p) => {
8093
8099
  const props = mergeProps(defaultProps$10, p);
8094
- const [loaded, setLoaded] = useState(false);
8095
- const [failed, setFailed] = useState(false);
8100
+ const [loaded, setLoaded] = useState$1(false);
8101
+ const [failed, setFailed] = useState$1(false);
8096
8102
  const ref = useRef(null);
8097
8103
  let src = props.src;
8098
8104
  let srcSet = props.srcSet;
8099
- const [initialized, setInitialized] = useState(!props.lazy);
8105
+ const [initialized, setInitialized] = useState$1(!props.lazy);
8100
8106
  src = initialized ? props.src : void 0;
8101
8107
  srcSet = initialized ? props.srcSet : void 0;
8102
8108
  useIsomorphicUpdateLayoutEffect(() => {
@@ -8303,7 +8309,7 @@ function isPromise(obj) {
8303
8309
  return !!obj && typeof obj === "object" && typeof obj.then === "function";
8304
8310
  }
8305
8311
  function isIOS() {
8306
- return canUseDom ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
8312
+ return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
8307
8313
  }
8308
8314
  const classPrefix$1c = `adm-button`;
8309
8315
  const defaultProps$Z = {
@@ -8320,7 +8326,7 @@ const defaultProps$Z = {
8320
8326
  };
8321
8327
  const Button$1 = forwardRef((p, ref) => {
8322
8328
  const props = mergeProps(defaultProps$Z, p);
8323
- const [innerLoading, setInnerLoading] = useState(false);
8329
+ const [innerLoading, setInnerLoading] = useState$1(false);
8324
8330
  const nativeButtonRef = useRef(null);
8325
8331
  const loading = props.loading === "auto" ? innerLoading : props.loading;
8326
8332
  const disabled = props.disabled || loading;
@@ -8523,8 +8529,8 @@ const Calendar$1 = forwardRef((p, ref) => {
8523
8529
  }
8524
8530
  }
8525
8531
  });
8526
- const [intermediate, setIntermediate] = useState(false);
8527
- const [current, setCurrent] = useState(() => dayjs(dateRange ? dateRange[0] : today).date(1));
8532
+ const [intermediate, setIntermediate] = useState$1(false);
8533
+ const [current, setCurrent] = useState$1(() => dayjs(dateRange ? dateRange[0] : today).date(1));
8528
8534
  useUpdateEffect(() => {
8529
8535
  var _a;
8530
8536
  (_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, current.year(), current.month() + 1);
@@ -10681,7 +10687,7 @@ function resolveWith(config2 = {}, resolvers) {
10681
10687
  }
10682
10688
  return result2;
10683
10689
  }
10684
- function parse$1(newConfig, gestureKey, _config = {}) {
10690
+ function parse(newConfig, gestureKey, _config = {}) {
10685
10691
  const _ref = newConfig, {
10686
10692
  target,
10687
10693
  eventOptions,
@@ -10799,7 +10805,7 @@ class Controller {
10799
10805
  this.nativeHandlers = nativeHandlers;
10800
10806
  }
10801
10807
  applyConfig(config2, gestureKey) {
10802
- this.config = parse$1(config2, gestureKey, this.config);
10808
+ this.config = parse(config2, gestureKey, this.config);
10803
10809
  }
10804
10810
  clean() {
10805
10811
  this._targetEventStore.clean();
@@ -11253,7 +11259,7 @@ function generateColumnsExtend(rawColumns, val) {
11253
11259
  function useColumnsExtend(rawColumns, value) {
11254
11260
  return useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
11255
11261
  }
11256
- const defaultRenderLabel$3 = (item) => item.label;
11262
+ const defaultRenderLabel = (item) => item.label;
11257
11263
  const spinLoading = "";
11258
11264
  var shim = { exports: {} };
11259
11265
  var useSyncExternalStoreShim_development = {};
@@ -11473,7 +11479,7 @@ const SpinLoading = SpinLoading$1;
11473
11479
  const classPrefix$15 = `adm-picker-view`;
11474
11480
  const defaultProps$W = {
11475
11481
  defaultValue: [],
11476
- renderLabel: defaultRenderLabel$3,
11482
+ renderLabel: defaultRenderLabel,
11477
11483
  mouseWheel: false,
11478
11484
  loadingContent: React__default.createElement("div", {
11479
11485
  className: `${classPrefix$15}-loading-content`
@@ -11481,7 +11487,7 @@ const defaultProps$W = {
11481
11487
  };
11482
11488
  const PickerView$1 = memo((p) => {
11483
11489
  const props = mergeProps(defaultProps$W, p);
11484
- const [innerValue, setInnerValue] = useState(props.value === void 0 ? props.defaultValue : props.value);
11490
+ const [innerValue, setInnerValue] = useState$1(props.value === void 0 ? props.defaultValue : props.value);
11485
11491
  useEffect(() => {
11486
11492
  if (props.value === void 0)
11487
11493
  return;
@@ -11547,7 +11553,7 @@ const classPrefix$14 = `adm-picker`;
11547
11553
  const defaultProps$V = {
11548
11554
  defaultValue: [],
11549
11555
  closeOnMaskClick: true,
11550
- renderLabel: defaultRenderLabel$3,
11556
+ renderLabel: defaultRenderLabel,
11551
11557
  destroyOnClose: false,
11552
11558
  forceRender: false
11553
11559
  };
@@ -11590,7 +11596,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
11590
11596
  }
11591
11597
  }));
11592
11598
  const extend = useColumnsExtend(props.columns, value);
11593
- const [innerValue, setInnerValue] = useState(value);
11599
+ const [innerValue, setInnerValue] = useState$1(value);
11594
11600
  useEffect(() => {
11595
11601
  if (innerValue !== value) {
11596
11602
  setInnerValue(value);
@@ -11671,7 +11677,7 @@ Picker$1.displayName = "Picker";
11671
11677
  function prompt$3(props) {
11672
11678
  return new Promise((resolve) => {
11673
11679
  const Wrapper2 = () => {
11674
- const [visible, setVisible] = useState(false);
11680
+ const [visible, setVisible] = useState$1(false);
11675
11681
  useEffect(() => {
11676
11682
  setVisible(true);
11677
11683
  }, []);
@@ -11753,7 +11759,7 @@ const CascadePicker = forwardRef((props, ref) => {
11753
11759
  function prompt$2(props) {
11754
11760
  return new Promise((resolve) => {
11755
11761
  const Wrapper2 = () => {
11756
- const [visible, setVisible] = useState(false);
11762
+ const [visible, setVisible] = useState$1(false);
11757
11763
  useEffect(() => {
11758
11764
  setVisible(true);
11759
11765
  }, []);
@@ -12272,7 +12278,7 @@ const CascaderView$1 = (p) => {
12272
12278
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, generateValueExtend(val));
12273
12279
  }
12274
12280
  }));
12275
- const [tabActiveIndex, setTabActiveIndex] = useState(0);
12281
+ const [tabActiveIndex, setTabActiveIndex] = useState$1(0);
12276
12282
  useUpdateEffect(() => {
12277
12283
  var _a;
12278
12284
  (_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, tabActiveIndex);
@@ -12417,7 +12423,7 @@ const Cascader = forwardRef((p, ref) => {
12417
12423
  }
12418
12424
  }));
12419
12425
  const generateValueExtend = useCascaderValueExtend(props.options);
12420
- const [innerValue, setInnerValue] = useState(value);
12426
+ const [innerValue, setInnerValue] = useState$1(value);
12421
12427
  useEffect(() => {
12422
12428
  if (!visible) {
12423
12429
  setInnerValue(value);
@@ -12480,7 +12486,7 @@ const Cascader = forwardRef((p, ref) => {
12480
12486
  function prompt$1(props) {
12481
12487
  return new Promise((resolve) => {
12482
12488
  const Wrapper2 = () => {
12483
- const [visible, setVisible] = useState(false);
12489
+ const [visible, setVisible] = useState$1(false);
12484
12490
  useEffect(() => {
12485
12491
  setVisible(true);
12486
12492
  }, []);
@@ -12540,7 +12546,7 @@ const CenterPopup$1 = (p) => {
12540
12546
  }
12541
12547
  }
12542
12548
  });
12543
- const [active, setActive] = useState(props.visible);
12549
+ const [active, setActive] = useState$1(props.visible);
12544
12550
  useIsomorphicLayoutEffect$2(() => {
12545
12551
  if (props.visible) {
12546
12552
  setActive(true);
@@ -12922,6 +12928,7 @@ var isLeapYear$1 = { exports: {} };
12922
12928
  });
12923
12929
  })(isLeapYear$1);
12924
12930
  const isLeapYear = isLeapYear$1.exports;
12931
+ const TILL_NOW = "TILL_NOW";
12925
12932
  dayjs.extend(isoWeek);
12926
12933
  dayjs.extend(isoWeeksInYear);
12927
12934
  dayjs.extend(isLeapYear);
@@ -12933,17 +12940,7 @@ const precisionRankRecord$1 = {
12933
12940
  minute: 4,
12934
12941
  second: 5
12935
12942
  };
12936
- function defaultRenderLabel$2(type4, data) {
12937
- switch (type4) {
12938
- case "minute":
12939
- case "second":
12940
- case "hour":
12941
- return ("0" + data.toString()).slice(-2);
12942
- default:
12943
- return data.toString();
12944
- }
12945
- }
12946
- function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter) {
12943
+ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow) {
12947
12944
  const ret = [];
12948
12945
  const minYear = min2.getFullYear();
12949
12946
  const minMonth = min2.getMonth() + 1;
@@ -13057,6 +13054,17 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
13057
13054
  };
13058
13055
  }));
13059
13056
  }
13057
+ if (tillNow) {
13058
+ ret[0].push({
13059
+ label: renderLabel("now", null),
13060
+ value: TILL_NOW
13061
+ });
13062
+ if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
13063
+ for (let i = 1; i < ret.length; i += 1) {
13064
+ ret[i] = [];
13065
+ }
13066
+ }
13067
+ }
13060
13068
  return ret;
13061
13069
  }
13062
13070
  function convertDateToStringArray$2(date4) {
@@ -13082,9 +13090,6 @@ const precisionRankRecord = {
13082
13090
  week: 1,
13083
13091
  "week-day": 2
13084
13092
  };
13085
- function defaultRenderLabel$1(type4, data) {
13086
- return data.toString();
13087
- }
13088
13093
  function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter) {
13089
13094
  const ret = [];
13090
13095
  const minYear = min2.getFullYear();
@@ -13187,36 +13192,56 @@ const convertDateToStringArray = (date4, precision) => {
13187
13192
  }
13188
13193
  };
13189
13194
  const convertStringArrayToDate = (value, precision) => {
13195
+ if ((value === null || value === void 0 ? void 0 : value[0]) === TILL_NOW) {
13196
+ const now2 = new Date();
13197
+ now2.tillNow = true;
13198
+ return now2;
13199
+ }
13190
13200
  if (precision.includes("week")) {
13191
13201
  return convertStringArrayToDate$1(value);
13192
13202
  } else {
13193
13203
  return convertStringArrayToDate$2(value);
13194
13204
  }
13195
13205
  };
13196
- const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter) => {
13206
+ const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter, tillNow) => {
13197
13207
  if (precision.startsWith("week")) {
13198
13208
  return generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter);
13199
13209
  } else {
13200
- return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter);
13201
- }
13202
- };
13203
- const defaultRenderLabel = (precision, data) => {
13204
- if (precision.includes("week")) {
13205
- return defaultRenderLabel$1(precision, data);
13206
- } else {
13207
- return defaultRenderLabel$2(precision, data);
13210
+ return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow);
13208
13211
  }
13209
13212
  };
13213
+ function useRenderLabel(renderLabel) {
13214
+ const {
13215
+ locale
13216
+ } = useConfig();
13217
+ return useCallback((type4, data) => {
13218
+ if (renderLabel) {
13219
+ return renderLabel(type4, data);
13220
+ }
13221
+ switch (type4) {
13222
+ case "minute":
13223
+ case "second":
13224
+ case "hour":
13225
+ return ("0" + data.toString()).slice(-2);
13226
+ case "now":
13227
+ return locale.DatePicker.tillNow;
13228
+ default:
13229
+ return data.toString();
13230
+ }
13231
+ }, [renderLabel]);
13232
+ }
13210
13233
  const thisYear$1 = new Date().getFullYear();
13211
13234
  const defaultProps$M = {
13212
13235
  min: new Date(new Date().setFullYear(thisYear$1 - 10)),
13213
13236
  max: new Date(new Date().setFullYear(thisYear$1 + 10)),
13214
13237
  precision: "day",
13215
- renderLabel: defaultRenderLabel,
13216
13238
  defaultValue: null
13217
13239
  };
13218
13240
  const DatePicker = forwardRef((p, ref) => {
13219
13241
  const props = mergeProps(defaultProps$M, p);
13242
+ const {
13243
+ renderLabel
13244
+ } = props;
13220
13245
  const [value, setValue2] = usePropsValue({
13221
13246
  value: props.value,
13222
13247
  defaultValue: props.defaultValue,
@@ -13228,20 +13253,25 @@ const DatePicker = forwardRef((p, ref) => {
13228
13253
  }
13229
13254
  });
13230
13255
  const now2 = useMemo(() => new Date(), []);
13256
+ const mergedRenderLabel = useRenderLabel(renderLabel);
13231
13257
  const pickerValue = useMemo(() => {
13232
13258
  let date4 = value !== null && value !== void 0 ? value : now2;
13259
+ if (date4.tillNow) {
13260
+ return [TILL_NOW];
13261
+ }
13233
13262
  date4 = new Date(bound(date4.getTime(), props.min.getTime(), props.max.getTime()));
13234
13263
  return convertDateToStringArray(date4, props.precision);
13235
13264
  }, [value, props.precision, props.min, props.max]);
13236
13265
  const onConfirm = useCallback((val) => {
13237
- setValue2(convertStringArrayToDate(val, props.precision), true);
13266
+ const date4 = convertStringArrayToDate(val, props.precision);
13267
+ setValue2(date4, true);
13238
13268
  }, [setValue2, props.precision]);
13239
13269
  const onSelect = useMemoizedFn((val) => {
13240
13270
  var _a;
13241
13271
  const date4 = convertStringArrayToDate(val, props.precision);
13242
13272
  (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, date4);
13243
13273
  });
13244
- const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter), [props.min, props.max, props.precision, props.renderLabel]);
13274
+ const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow), [props.min, props.max, props.precision, mergedRenderLabel, props.tillNow]);
13245
13275
  return withNativeProps(props, React__default.createElement(Picker, {
13246
13276
  ref,
13247
13277
  columns,
@@ -13273,7 +13303,7 @@ const DatePicker = forwardRef((p, ref) => {
13273
13303
  function prompt(props) {
13274
13304
  return new Promise((resolve) => {
13275
13305
  const Wrapper2 = () => {
13276
- const [visible, setVisible] = useState(false);
13306
+ const [visible, setVisible] = useState$1(false);
13277
13307
  useEffect(() => {
13278
13308
  setVisible(true);
13279
13309
  }, []);
@@ -13301,22 +13331,26 @@ function prompt(props) {
13301
13331
  });
13302
13332
  }
13303
13333
  const index$e = attachPropertiesToComponent(DatePicker, {
13304
- prompt
13334
+ prompt,
13335
+ DATE_NOW: TILL_NOW
13305
13336
  });
13306
13337
  const thisYear = new Date().getFullYear();
13307
13338
  const defaultProps$L = {
13308
13339
  min: new Date(new Date().setFullYear(thisYear - 10)),
13309
13340
  max: new Date(new Date().setFullYear(thisYear + 10)),
13310
- precision: "day",
13311
- renderLabel: defaultRenderLabel
13341
+ precision: "day"
13312
13342
  };
13313
13343
  const DatePickerView$1 = (p) => {
13314
13344
  var _a;
13315
13345
  const props = mergeProps(defaultProps$L, p);
13346
+ const {
13347
+ renderLabel
13348
+ } = props;
13316
13349
  const [value, setValue2] = usePropsValue({
13317
13350
  value: props.value,
13318
13351
  defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
13319
13352
  });
13353
+ const mergedRenderLabel = useRenderLabel(renderLabel);
13320
13354
  const pickerValue = useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
13321
13355
  const onChange = useCallback((val) => {
13322
13356
  var _a2;
@@ -13327,7 +13361,7 @@ const DatePickerView$1 = (p) => {
13327
13361
  }
13328
13362
  }, [props.onChange, props.precision]);
13329
13363
  return withNativeProps(props, React__default.createElement(PickerView, {
13330
- columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
13364
+ columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter),
13331
13365
  loading: props.loading,
13332
13366
  loadingContent: props.loadingContent,
13333
13367
  value: pickerValue,
@@ -13575,7 +13609,7 @@ const Dropdown = forwardRef((p, ref) => {
13575
13609
  return;
13576
13610
  setValue2(null);
13577
13611
  }, [navRef, contentRef]);
13578
- const [top, setTop] = useState();
13612
+ const [top, setTop] = useState$1();
13579
13613
  const containerRef = useRef(null);
13580
13614
  useEffect(() => {
13581
13615
  const container = containerRef.current;
@@ -13789,9 +13823,9 @@ const defaultProps$G = {
13789
13823
  const Ellipsis$1 = (p) => {
13790
13824
  const props = mergeProps(defaultProps$G, p);
13791
13825
  const rootRef = useRef(null);
13792
- const [ellipsised, setEllipsised] = useState({});
13793
- const [expanded, setExpanded] = useState(false);
13794
- const [exceeded, setExceeded] = useState(false);
13826
+ const [ellipsised, setEllipsised] = useState$1({});
13827
+ const [expanded, setExpanded] = useState$1(false);
13828
+ const [exceeded, setExceeded] = useState$1(false);
13795
13829
  const chars = useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
13796
13830
  function getSubString(start2, end) {
13797
13831
  return chars.slice(start2, end).join("");
@@ -14530,7 +14564,7 @@ const FloatingBubble$1 = (p) => {
14530
14564
  const props = mergeProps(defaultProps$E, p);
14531
14565
  const boundaryRef = useRef(null);
14532
14566
  const buttonRef = useRef(null);
14533
- const [innerValue, setInnerValue] = useState(props.offset === void 0 ? props.defaultOffset : props.offset);
14567
+ const [innerValue, setInnerValue] = useState$1(props.offset === void 0 ? props.defaultOffset : props.offset);
14534
14568
  useEffect(() => {
14535
14569
  if (props.offset === void 0)
14536
14570
  return;
@@ -14639,7 +14673,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
14639
14673
  const elementRef = useRef(null);
14640
14674
  const headerRef = useRef(null);
14641
14675
  const contentRef = useRef(null);
14642
- const [pulling, setPulling] = useState(false);
14676
+ const [pulling, setPulling] = useState$1(false);
14643
14677
  const pullingRef = useRef(false);
14644
14678
  const bounds = {
14645
14679
  top: possibles[possibles.length - 1],
@@ -14792,7 +14826,32 @@ function _objectWithoutProperties(source, excluded) {
14792
14826
  }
14793
14827
  return target;
14794
14828
  }
14829
+ function _typeof$1(obj) {
14830
+ "@babel/helpers - typeof";
14831
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
14832
+ return typeof obj2;
14833
+ } : function(obj2) {
14834
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14835
+ }, _typeof$1(obj);
14836
+ }
14837
+ function _toPrimitive(input2, hint) {
14838
+ if (_typeof$1(input2) !== "object" || input2 === null)
14839
+ return input2;
14840
+ var prim = input2[Symbol.toPrimitive];
14841
+ if (prim !== void 0) {
14842
+ var res = prim.call(input2, hint || "default");
14843
+ if (_typeof$1(res) !== "object")
14844
+ return res;
14845
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14846
+ }
14847
+ return (hint === "string" ? String : Number)(input2);
14848
+ }
14849
+ function _toPropertyKey(arg) {
14850
+ var key = _toPrimitive(arg, "string");
14851
+ return _typeof$1(key) === "symbol" ? key : String(key);
14852
+ }
14795
14853
  function _defineProperty(obj, key, value) {
14854
+ key = _toPropertyKey(key);
14796
14855
  if (key in obj) {
14797
14856
  Object.defineProperty(obj, key, {
14798
14857
  value,
@@ -14873,7 +14932,7 @@ function _defineProperties(target, props) {
14873
14932
  descriptor.configurable = true;
14874
14933
  if ("value" in descriptor)
14875
14934
  descriptor.writable = true;
14876
- Object.defineProperty(target, descriptor.key, descriptor);
14935
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
14877
14936
  }
14878
14937
  }
14879
14938
  function _createClass(Constructor, protoProps, staticProps) {
@@ -14937,14 +14996,6 @@ function _isNativeReflectConstruct$1() {
14937
14996
  return false;
14938
14997
  }
14939
14998
  }
14940
- function _typeof$1(obj) {
14941
- "@babel/helpers - typeof";
14942
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
14943
- return typeof obj2;
14944
- } : function(obj2) {
14945
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
14946
- }, _typeof$1(obj);
14947
- }
14948
14999
  function _possibleConstructorReturn(self2, call2) {
14949
15000
  if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
14950
15001
  return call2;
@@ -15163,7 +15214,7 @@ var HOOK_MARK$1 = "RC_FORM_INTERNAL_HOOKS";
15163
15214
  var warningFunc$1 = function warningFunc() {
15164
15215
  warningOnce$1(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
15165
15216
  };
15166
- var Context$1 = /* @__PURE__ */ React$1.createContext({
15217
+ var Context$1 = /* @__PURE__ */ React$4.createContext({
15167
15218
  getFieldValue: warningFunc$1,
15168
15219
  getFieldsValue: warningFunc$1,
15169
15220
  getFieldError: warningFunc$1,
@@ -15338,15 +15389,9 @@ function _regeneratorRuntime() {
15338
15389
  };
15339
15390
  }
15340
15391
  function maybeInvokeDelegate(delegate, context) {
15341
- var method4 = delegate.iterator[context.method];
15342
- if (void 0 === method4) {
15343
- if (context.delegate = null, "throw" === context.method) {
15344
- if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
15345
- return ContinueSentinel;
15346
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
15347
- }
15348
- return ContinueSentinel;
15349
- }
15392
+ var methodName = context.method, method4 = delegate.iterator[methodName];
15393
+ if (void 0 === method4)
15394
+ return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
15350
15395
  var record2 = tryCatch(method4, delegate.iterator, context.arg);
15351
15396
  if ("throw" === record2.type)
15352
15397
  return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
@@ -16877,7 +16922,7 @@ function _validateRule() {
16877
16922
  result2 = _context2.t0.errors.map(function(_ref4, index2) {
16878
16923
  var message = _ref4.message;
16879
16924
  var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
16880
- return /* @__PURE__ */ React$1.isValidElement(mergedMessage) ? /* @__PURE__ */ React$1.cloneElement(mergedMessage, {
16925
+ return /* @__PURE__ */ React$4.isValidElement(mergedMessage) ? /* @__PURE__ */ React$4.cloneElement(mergedMessage, {
16881
16926
  key: "error_".concat(index2)
16882
16927
  }) : mergedMessage;
16883
16928
  });
@@ -17337,7 +17382,7 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17337
17382
  });
17338
17383
  }
17339
17384
  var childList = toArray$2(children);
17340
- if (childList.length !== 1 || !/* @__PURE__ */ React$1.isValidElement(childList[0])) {
17385
+ if (childList.length !== 1 || !/* @__PURE__ */ React$4.isValidElement(childList[0])) {
17341
17386
  return {
17342
17387
  child: childList,
17343
17388
  isFunction: false
@@ -17454,19 +17499,19 @@ var Field = /* @__PURE__ */ function(_React$Component) {
17454
17499
  var returnChildNode;
17455
17500
  if (isFunction3) {
17456
17501
  returnChildNode = child;
17457
- } else if (/* @__PURE__ */ React$1.isValidElement(child)) {
17458
- returnChildNode = /* @__PURE__ */ React$1.cloneElement(child, this.getControlled(child.props));
17502
+ } else if (/* @__PURE__ */ React$4.isValidElement(child)) {
17503
+ returnChildNode = /* @__PURE__ */ React$4.cloneElement(child, this.getControlled(child.props));
17459
17504
  } else {
17460
17505
  warningOnce$1(!child, "`children` of Field is not validate ReactElement.");
17461
17506
  returnChildNode = child;
17462
17507
  }
17463
- return /* @__PURE__ */ React$1.createElement(React$1.Fragment, {
17508
+ return /* @__PURE__ */ React$4.createElement(React$4.Fragment, {
17464
17509
  key: resetCount
17465
17510
  }, returnChildNode);
17466
17511
  }
17467
17512
  }]);
17468
17513
  return Field2;
17469
- }(React$1.Component);
17514
+ }(React$4.Component);
17470
17515
  Field.contextType = Context$1;
17471
17516
  Field.defaultProps = {
17472
17517
  trigger: "onChange",
@@ -17474,7 +17519,7 @@ Field.defaultProps = {
17474
17519
  };
17475
17520
  function WrapperField(_ref5) {
17476
17521
  var name = _ref5.name, restProps = _objectWithoutProperties(_ref5, _excluded$2);
17477
- var fieldContext = React$1.useContext(Context$1);
17522
+ var fieldContext = React$4.useContext(Context$1);
17478
17523
  var namePath = name !== void 0 ? getNamePath(name) : void 0;
17479
17524
  var key = "keep";
17480
17525
  if (!restProps.isListField) {
@@ -17483,32 +17528,32 @@ function WrapperField(_ref5) {
17483
17528
  if (restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
17484
17529
  warningOnce$1(false, "`preserve` should not apply on Form.List fields.");
17485
17530
  }
17486
- return /* @__PURE__ */ React$1.createElement(Field, _extends$1({
17531
+ return /* @__PURE__ */ React$4.createElement(Field, _extends$1({
17487
17532
  key,
17488
17533
  name: namePath
17489
17534
  }, restProps, {
17490
17535
  fieldContext
17491
17536
  }));
17492
17537
  }
17493
- var ListContext = /* @__PURE__ */ React$1.createContext(null);
17538
+ var ListContext = /* @__PURE__ */ React$4.createContext(null);
17494
17539
  var List = function List2(_ref) {
17495
17540
  var name = _ref.name, initialValue = _ref.initialValue, children = _ref.children, rules2 = _ref.rules, validateTrigger = _ref.validateTrigger;
17496
- var context = React$1.useContext(Context$1);
17497
- var keyRef = React$1.useRef({
17541
+ var context = React$4.useContext(Context$1);
17542
+ var keyRef = React$4.useRef({
17498
17543
  keys: [],
17499
17544
  id: 0
17500
17545
  });
17501
17546
  var keyManager = keyRef.current;
17502
- var prefixName = React$1.useMemo(function() {
17547
+ var prefixName = React$4.useMemo(function() {
17503
17548
  var parentPrefixName = getNamePath(context.prefixName) || [];
17504
17549
  return [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
17505
17550
  }, [context.prefixName, name]);
17506
- var fieldContext = React$1.useMemo(function() {
17551
+ var fieldContext = React$4.useMemo(function() {
17507
17552
  return _objectSpread2(_objectSpread2({}, context), {}, {
17508
17553
  prefixName
17509
17554
  });
17510
17555
  }, [context, prefixName]);
17511
- var listContext = React$1.useMemo(function() {
17556
+ var listContext = React$4.useMemo(function() {
17512
17557
  return {
17513
17558
  getKey: function getKey(namePath) {
17514
17559
  var len = prefixName.length;
@@ -17528,11 +17573,11 @@ var List = function List2(_ref) {
17528
17573
  }
17529
17574
  return prevValue !== nextValue;
17530
17575
  };
17531
- return /* @__PURE__ */ React$1.createElement(ListContext.Provider, {
17576
+ return /* @__PURE__ */ React$4.createElement(ListContext.Provider, {
17532
17577
  value: listContext
17533
- }, /* @__PURE__ */ React$1.createElement(Context$1.Provider, {
17578
+ }, /* @__PURE__ */ React$4.createElement(Context$1.Provider, {
17534
17579
  value: fieldContext
17535
- }, /* @__PURE__ */ React$1.createElement(WrapperField, {
17580
+ }, /* @__PURE__ */ React$4.createElement(WrapperField, {
17536
17581
  name: [],
17537
17582
  shouldUpdate,
17538
17583
  rules: rules2,
@@ -17609,32 +17654,31 @@ var List = function List2(_ref) {
17609
17654
  })));
17610
17655
  };
17611
17656
  function _iterableToArrayLimit(arr, i) {
17612
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
17613
- if (_i == null)
17614
- return;
17615
- var _arr = [];
17616
- var _n = true;
17617
- var _d = false;
17618
- var _s, _e;
17619
- try {
17620
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
17621
- _arr.push(_s.value);
17622
- if (i && _arr.length === i)
17623
- break;
17624
- }
17625
- } catch (err) {
17626
- _d = true;
17627
- _e = err;
17628
- } finally {
17657
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
17658
+ if (null != _i) {
17659
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
17629
17660
  try {
17630
- if (!_n && _i["return"] != null)
17631
- _i["return"]();
17661
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
17662
+ if (Object(_i) !== _i)
17663
+ return;
17664
+ _n = false;
17665
+ } else
17666
+ for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
17667
+ ;
17668
+ }
17669
+ } catch (err) {
17670
+ _d = true, _e = err;
17632
17671
  } finally {
17633
- if (_d)
17634
- throw _e;
17672
+ try {
17673
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
17674
+ return;
17675
+ } finally {
17676
+ if (_d)
17677
+ throw _e;
17678
+ }
17635
17679
  }
17680
+ return _arr;
17636
17681
  }
17637
- return _arr;
17638
17682
  }
17639
17683
  function _slicedToArray(arr, i) {
17640
17684
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
@@ -18432,8 +18476,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
18432
18476
  this.forceRootUpdate = forceRootUpdate;
18433
18477
  });
18434
18478
  function useForm(form) {
18435
- var formRef = React$1.useRef();
18436
- var _React$useState = React$1.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
18479
+ var formRef = React$4.useRef();
18480
+ var _React$useState = React$4.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
18437
18481
  if (!formRef.current) {
18438
18482
  if (form) {
18439
18483
  formRef.current = form;
@@ -18447,7 +18491,7 @@ function useForm(form) {
18447
18491
  }
18448
18492
  return [formRef.current];
18449
18493
  }
18450
- var FormContext$1 = /* @__PURE__ */ React$1.createContext({
18494
+ var FormContext$1 = /* @__PURE__ */ React$4.createContext({
18451
18495
  triggerFormChange: function triggerFormChange() {
18452
18496
  },
18453
18497
  triggerFormFinish: function triggerFormFinish() {
@@ -18459,9 +18503,9 @@ var FormContext$1 = /* @__PURE__ */ React$1.createContext({
18459
18503
  });
18460
18504
  var FormProvider = function FormProvider2(_ref) {
18461
18505
  var validateMessages = _ref.validateMessages, onFormChange = _ref.onFormChange, onFormFinish = _ref.onFormFinish, children = _ref.children;
18462
- var formContext = React$1.useContext(FormContext$1);
18463
- var formsRef = React$1.useRef({});
18464
- return /* @__PURE__ */ React$1.createElement(FormContext$1.Provider, {
18506
+ var formContext = React$4.useContext(FormContext$1);
18507
+ var formsRef = React$4.useRef({});
18508
+ return /* @__PURE__ */ React$4.createElement(FormContext$1.Provider, {
18465
18509
  value: _objectSpread2(_objectSpread2({}, formContext), {}, {
18466
18510
  validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
18467
18511
  triggerFormChange: function triggerFormChange2(name, changedFields) {
@@ -18500,13 +18544,13 @@ var FormProvider = function FormProvider2(_ref) {
18500
18544
  var _excluded = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
18501
18545
  var Form$1 = function Form(_ref, ref) {
18502
18546
  var name = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve = _ref.preserve, children = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, restProps = _objectWithoutProperties(_ref, _excluded);
18503
- var formContext = React$1.useContext(FormContext$1);
18547
+ var formContext = React$4.useContext(FormContext$1);
18504
18548
  var _useForm = useForm(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
18505
18549
  var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK$1), useSubscribe = _formInstance$getInte.useSubscribe, setInitialValues = _formInstance$getInte.setInitialValues, setCallbacks = _formInstance$getInte.setCallbacks, setValidateMessages = _formInstance$getInte.setValidateMessages, setPreserve = _formInstance$getInte.setPreserve, destroyForm = _formInstance$getInte.destroyForm;
18506
- React$1.useImperativeHandle(ref, function() {
18550
+ React$4.useImperativeHandle(ref, function() {
18507
18551
  return formInstance;
18508
18552
  });
18509
- React$1.useEffect(function() {
18553
+ React$4.useEffect(function() {
18510
18554
  formContext.registerForm(name, formInstance);
18511
18555
  return function() {
18512
18556
  formContext.unregisterForm(name);
@@ -18533,12 +18577,12 @@ var Form$1 = function Form(_ref, ref) {
18533
18577
  onFinishFailed
18534
18578
  });
18535
18579
  setPreserve(preserve);
18536
- var mountRef = React$1.useRef(null);
18580
+ var mountRef = React$4.useRef(null);
18537
18581
  setInitialValues(initialValues, !mountRef.current);
18538
18582
  if (!mountRef.current) {
18539
18583
  mountRef.current = true;
18540
18584
  }
18541
- React$1.useEffect(
18585
+ React$4.useEffect(
18542
18586
  function() {
18543
18587
  return destroyForm;
18544
18588
  },
@@ -18553,25 +18597,25 @@ var Form$1 = function Form(_ref, ref) {
18553
18597
  childrenNode = children;
18554
18598
  }
18555
18599
  useSubscribe(!childrenRenderProps);
18556
- var prevFieldsRef = React$1.useRef();
18557
- React$1.useEffect(function() {
18600
+ var prevFieldsRef = React$4.useRef();
18601
+ React$4.useEffect(function() {
18558
18602
  if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
18559
18603
  formInstance.setFields(fields || []);
18560
18604
  }
18561
18605
  prevFieldsRef.current = fields;
18562
18606
  }, [fields, formInstance]);
18563
- var formContextValue = React$1.useMemo(function() {
18607
+ var formContextValue = React$4.useMemo(function() {
18564
18608
  return _objectSpread2(_objectSpread2({}, formInstance), {}, {
18565
18609
  validateTrigger
18566
18610
  });
18567
18611
  }, [formInstance, validateTrigger]);
18568
- var wrapperNode = /* @__PURE__ */ React$1.createElement(Context$1.Provider, {
18612
+ var wrapperNode = /* @__PURE__ */ React$4.createElement(Context$1.Provider, {
18569
18613
  value: formContextValue
18570
18614
  }, childrenNode);
18571
18615
  if (Component === false) {
18572
18616
  return wrapperNode;
18573
18617
  }
18574
- return /* @__PURE__ */ React$1.createElement(Component, _extends$1({}, restProps, {
18618
+ return /* @__PURE__ */ React$4.createElement(Component, _extends$1({}, restProps, {
18575
18619
  onSubmit: function onSubmit(event) {
18576
18620
  event.preventDefault();
18577
18621
  event.stopPropagation();
@@ -18585,7 +18629,7 @@ var Form$1 = function Form(_ref, ref) {
18585
18629
  }
18586
18630
  }), wrapperNode);
18587
18631
  };
18588
- function stringify$1(value) {
18632
+ function stringify(value) {
18589
18633
  try {
18590
18634
  return JSON.stringify(value);
18591
18635
  } catch (err) {
@@ -18597,9 +18641,9 @@ function useWatch() {
18597
18641
  args[_key] = arguments[_key];
18598
18642
  }
18599
18643
  var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
18600
- var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
18644
+ var _useState = useState$1(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
18601
18645
  var valueStr = useMemo(function() {
18602
- return stringify$1(value);
18646
+ return stringify(value);
18603
18647
  }, [value]);
18604
18648
  var valueStrRef = useRef(valueStr);
18605
18649
  valueStrRef.current = valueStr;
@@ -18621,7 +18665,7 @@ function useWatch() {
18621
18665
  var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
18622
18666
  var cancelRegister = registerWatch(function(store) {
18623
18667
  var newValue = getValue(store, namePathRef.current);
18624
- var nextValueStr = stringify$1(newValue);
18668
+ var nextValueStr = stringify(newValue);
18625
18669
  if (valueStrRef.current !== nextValueStr) {
18626
18670
  valueStrRef.current = nextValueStr;
18627
18671
  setValue2(newValue);
@@ -18635,7 +18679,7 @@ function useWatch() {
18635
18679
  );
18636
18680
  return value;
18637
18681
  }
18638
- var InternalForm = /* @__PURE__ */ React$1.forwardRef(Form$1);
18682
+ var InternalForm = /* @__PURE__ */ React$4.forwardRef(Form$1);
18639
18683
  var RefForm = InternalForm;
18640
18684
  RefForm.FormProvider = FormProvider;
18641
18685
  RefForm.Field = WrapperField;
@@ -19083,22 +19127,22 @@ function warningOnce(valid, message) {
19083
19127
  function noteOnce(valid, message) {
19084
19128
  call(note, valid, message);
19085
19129
  }
19086
- var _default$1 = warningOnce;
19087
- warning$1.default = _default$1;
19088
- var _interopRequireWildcard = interopRequireWildcard.exports.default;
19089
- var _interopRequireDefault = interopRequireDefault.exports.default;
19130
+ var _default$3 = warningOnce;
19131
+ warning$1.default = _default$3;
19132
+ var _interopRequireWildcard$3 = interopRequireWildcard.exports.default;
19133
+ var _interopRequireDefault$3 = interopRequireDefault.exports.default;
19090
19134
  Object.defineProperty(FieldContext, "__esModule", {
19091
19135
  value: true
19092
19136
  });
19093
19137
  var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
19094
- var _warning = _interopRequireDefault(warning$1);
19095
- var React = _interopRequireWildcard(React__default);
19138
+ var _warning = _interopRequireDefault$3(warning$1);
19139
+ var React$3 = _interopRequireWildcard$3(React__default);
19096
19140
  var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
19097
19141
  FieldContext.HOOK_MARK = HOOK_MARK;
19098
19142
  var warningFunc2 = function warningFunc3() {
19099
19143
  (0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
19100
19144
  };
19101
- var Context = /* @__PURE__ */ React.createContext({
19145
+ var Context = /* @__PURE__ */ React$3.createContext({
19102
19146
  getFieldValue: warningFunc2,
19103
19147
  getFieldsValue: warningFunc2,
19104
19148
  getFieldError: warningFunc2,
@@ -19132,8 +19176,8 @@ var Context = /* @__PURE__ */ React.createContext({
19132
19176
  };
19133
19177
  }
19134
19178
  });
19135
- var _default = Context;
19136
- default_1 = FieldContext.default = _default;
19179
+ var _default$2 = Context;
19180
+ default_1 = FieldContext.default = _default$2;
19137
19181
  function toArray(candidate) {
19138
19182
  if (candidate === void 0 || candidate === false)
19139
19183
  return [];
@@ -19390,20 +19434,29 @@ async function detectOverflow(middlewareArguments, options) {
19390
19434
  rootBoundary,
19391
19435
  strategy
19392
19436
  }));
19437
+ const rect = elementContext === "floating" ? {
19438
+ ...rects.floating,
19439
+ x,
19440
+ y
19441
+ } : rects.reference;
19442
+ const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
19443
+ const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
19444
+ x: 1,
19445
+ y: 1
19446
+ } : {
19447
+ x: 1,
19448
+ y: 1
19449
+ };
19393
19450
  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
19394
- rect: elementContext === "floating" ? {
19395
- ...rects.floating,
19396
- x,
19397
- y
19398
- } : rects.reference,
19399
- offsetParent: await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)),
19451
+ rect,
19452
+ offsetParent,
19400
19453
  strategy
19401
- }) : rects[elementContext]);
19454
+ }) : rect);
19402
19455
  return {
19403
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
19404
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
19405
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
19406
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
19456
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
19457
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
19458
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
19459
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
19407
19460
  };
19408
19461
  }
19409
19462
  const min$1 = Math.min;
@@ -19842,24 +19895,25 @@ const limitShift = function(options) {
19842
19895
  }
19843
19896
  };
19844
19897
  };
19845
- function isWindow$1(value) {
19846
- return value && value.document && value.location && value.alert && value.setInterval;
19898
+ const min = Math.min;
19899
+ const max = Math.max;
19900
+ const round = Math.round;
19901
+ function getScale(element, paramRect) {
19902
+ const rect = paramRect || element.getBoundingClientRect();
19903
+ return {
19904
+ x: element.offsetWidth > 0 ? round(rect.width) / element.offsetWidth || 1 : 1,
19905
+ y: element.offsetHeight > 0 ? round(rect.height) / element.offsetHeight || 1 : 1
19906
+ };
19847
19907
  }
19848
19908
  function getWindow(node) {
19849
- if (node == null) {
19850
- return window;
19851
- }
19852
- if (!isWindow$1(node)) {
19853
- const ownerDocument = node.ownerDocument;
19854
- return ownerDocument ? ownerDocument.defaultView || window : window;
19855
- }
19856
- return node;
19909
+ var _node$ownerDocument;
19910
+ return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
19857
19911
  }
19858
19912
  function getComputedStyle(element) {
19859
19913
  return getWindow(element).getComputedStyle(element);
19860
19914
  }
19861
19915
  function getNodeName(node) {
19862
- return isWindow$1(node) ? "" : node ? (node.nodeName || "").toLowerCase() : "";
19916
+ return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
19863
19917
  }
19864
19918
  function getUAString() {
19865
19919
  const uaData = navigator.userAgentData;
@@ -19913,9 +19967,6 @@ function isLayoutViewport() {
19913
19967
  function isLastTraversableNode(node) {
19914
19968
  return ["html", "body", "#document"].includes(getNodeName(node));
19915
19969
  }
19916
- const min = Math.min;
19917
- const max = Math.max;
19918
- const round$1 = Math.round;
19919
19970
  function getBoundingClientRect(element, includeScale, isFixedStrategy) {
19920
19971
  var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
19921
19972
  if (includeScale === void 0) {
@@ -19925,18 +19976,25 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
19925
19976
  isFixedStrategy = false;
19926
19977
  }
19927
19978
  const clientRect = element.getBoundingClientRect();
19928
- let scaleX = 1;
19929
- let scaleY = 1;
19930
- if (includeScale && isHTMLElement(element)) {
19931
- scaleX = element.offsetWidth > 0 ? round$1(clientRect.width) / element.offsetWidth || 1 : 1;
19932
- scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
19979
+ let contextRect = clientRect;
19980
+ let elementToCheckForScale = element;
19981
+ let scale2 = {
19982
+ x: 1,
19983
+ y: 1
19984
+ };
19985
+ if (!isElement(element) && element.contextElement) {
19986
+ contextRect = element.contextElement.getBoundingClientRect();
19987
+ elementToCheckForScale = element.contextElement;
19988
+ }
19989
+ if (includeScale && isHTMLElement(elementToCheckForScale)) {
19990
+ scale2 = getScale(elementToCheckForScale, contextRect);
19933
19991
  }
19934
19992
  const win = isElement(element) ? getWindow(element) : window;
19935
19993
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
19936
- const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
19937
- const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
19938
- const width = clientRect.width / scaleX;
19939
- const height = clientRect.height / scaleY;
19994
+ const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scale2.x;
19995
+ const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scale2.y;
19996
+ const width = clientRect.width / scale2.x;
19997
+ const height = clientRect.height / scale2.y;
19940
19998
  return {
19941
19999
  width,
19942
20000
  height,
@@ -19968,7 +20026,7 @@ function getWindowScrollBarX(element) {
19968
20026
  }
19969
20027
  function isScaled(element) {
19970
20028
  const rect = getBoundingClientRect(element);
19971
- return round$1(rect.width) !== element.offsetWidth || round$1(rect.height) !== element.offsetHeight;
20029
+ return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
19972
20030
  }
19973
20031
  function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
19974
20032
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
@@ -20068,6 +20126,10 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
20068
20126
  scrollLeft: 0,
20069
20127
  scrollTop: 0
20070
20128
  };
20129
+ let scale2 = {
20130
+ x: 1,
20131
+ y: 1
20132
+ };
20071
20133
  const offsets = {
20072
20134
  x: 0,
20073
20135
  y: 0
@@ -20077,15 +20139,17 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
20077
20139
  scroll = getNodeScroll(offsetParent);
20078
20140
  }
20079
20141
  if (isHTMLElement(offsetParent)) {
20080
- const offsetRect = getBoundingClientRect(offsetParent, true);
20142
+ const offsetRect = getBoundingClientRect(offsetParent);
20143
+ scale2 = getScale(offsetParent);
20081
20144
  offsets.x = offsetRect.x + offsetParent.clientLeft;
20082
20145
  offsets.y = offsetRect.y + offsetParent.clientTop;
20083
20146
  }
20084
20147
  }
20085
20148
  return {
20086
- ...rect,
20087
- x: rect.x - scroll.scrollLeft + offsets.x,
20088
- y: rect.y - scroll.scrollTop + offsets.y
20149
+ width: rect.width * scale2.x,
20150
+ height: rect.height * scale2.y,
20151
+ x: rect.x * scale2.x - scroll.scrollLeft * scale2.x + offsets.x,
20152
+ y: rect.y * scale2.y - scroll.scrollTop * scale2.y + offsets.y
20089
20153
  };
20090
20154
  }
20091
20155
  function getViewportRect(element, strategy) {
@@ -20149,23 +20213,32 @@ function getOverflowAncestors(node, list2) {
20149
20213
  const scrollableAncestor = getNearestOverflowAncestor(node);
20150
20214
  const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
20151
20215
  const win = getWindow(scrollableAncestor);
20152
- const target = isBody ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []) : scrollableAncestor;
20153
- const updatedList = list2.concat(target);
20154
- return isBody ? updatedList : updatedList.concat(getOverflowAncestors(target));
20216
+ if (isBody) {
20217
+ return list2.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
20218
+ }
20219
+ return list2.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
20155
20220
  }
20156
20221
  function getInnerBoundingClientRect(element, strategy) {
20157
- const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
20222
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
20158
20223
  const top = clientRect.top + element.clientTop;
20159
20224
  const left = clientRect.left + element.clientLeft;
20225
+ const scale2 = isHTMLElement(element) ? getScale(element) : {
20226
+ x: 1,
20227
+ y: 1
20228
+ };
20229
+ const width = element.clientWidth * scale2.x;
20230
+ const height = element.clientHeight * scale2.y;
20231
+ const x = left * scale2.x;
20232
+ const y = top * scale2.y;
20160
20233
  return {
20161
- top,
20162
- left,
20163
- x: left,
20164
- y: top,
20165
- right: left + element.clientWidth,
20166
- bottom: top + element.clientHeight,
20167
- width: element.clientWidth,
20168
- height: element.clientHeight
20234
+ top: y,
20235
+ left: x,
20236
+ right: x + width,
20237
+ bottom: y + height,
20238
+ x,
20239
+ y,
20240
+ width,
20241
+ height
20169
20242
  };
20170
20243
  }
20171
20244
  function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
@@ -20227,6 +20300,7 @@ const platform = {
20227
20300
  getDimensions,
20228
20301
  getOffsetParent,
20229
20302
  getDocumentElement,
20303
+ getScale,
20230
20304
  async getElementRects(_ref) {
20231
20305
  let {
20232
20306
  reference,
@@ -20347,7 +20421,7 @@ function normalizePlacement(placement) {
20347
20421
  }
20348
20422
  let tenPxTester = null;
20349
20423
  let tester = null;
20350
- if (canUseDom) {
20424
+ if (canUseDom$2) {
20351
20425
  tenPxTester = document.createElement("div");
20352
20426
  tenPxTester.className = "adm-px-tester";
20353
20427
  tenPxTester.style.setProperty("--size", "10");
@@ -20411,7 +20485,7 @@ const Popover$1 = forwardRef((p, ref) => {
20411
20485
  }, React__default.createElement("div", {
20412
20486
  className: `${classPrefix$N}-inner-content`
20413
20487
  }, props.content)))));
20414
- const [targetElement, setTargetElement] = useState(null);
20488
+ const [targetElement, setTargetElement] = useState$1(null);
20415
20489
  function update2() {
20416
20490
  var _a, _b, _c;
20417
20491
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -20688,7 +20762,7 @@ const FormItem = (props) => {
20688
20762
  const widgetRef = useRef(null);
20689
20763
  const updateRef2 = useRef(0);
20690
20764
  updateRef2.current += 1;
20691
- const [subMetas, setSubMetas] = useState({});
20765
+ const [subMetas, setSubMetas] = useState$1({});
20692
20766
  const onSubMetaChange = useCallback((subMeta, namePath) => {
20693
20767
  setSubMetas((prevSubMetas) => {
20694
20768
  const nextSubMetas = Object.assign({}, prevSubMetas);
@@ -21206,7 +21280,7 @@ const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$A), {
21206
21280
  const MultiImageViewer = forwardRef((p, ref) => {
21207
21281
  var _a;
21208
21282
  const props = mergeProps(multiDefaultProps, p);
21209
- const [index2, setIndex] = useState(props.defaultIndex);
21283
+ const [index2, setIndex] = useState$1(props.defaultIndex);
21210
21284
  const slidesRef = useRef(null);
21211
21285
  useImperativeHandle(ref, () => ({
21212
21286
  swipeTo: (index3, immediate) => {
@@ -21391,11 +21465,11 @@ const ImageUploader$1 = (p) => {
21391
21465
  columns
21392
21466
  } = props;
21393
21467
  const [value, setValue2] = usePropsValue(props);
21394
- const [tasks, setTasks] = useState([]);
21468
+ const [tasks, setTasks] = useState$1([]);
21395
21469
  const containerRef = useRef(null);
21396
21470
  const containerSize = useSize(containerRef);
21397
21471
  const gapMeasureRef = useRef(null);
21398
- const [cellSize, setCellSize] = useState(80);
21472
+ const [cellSize, setCellSize] = useState$1(80);
21399
21473
  useIsomorphicLayoutEffect$2(() => {
21400
21474
  const gapMeasure = gapMeasureRef.current;
21401
21475
  if (columns && containerSize && gapMeasure) {
@@ -21566,9 +21640,12 @@ const ImageUploader$1 = (p) => {
21566
21640
  setTasks(tasks.filter((x) => x.id !== task.id));
21567
21641
  }
21568
21642
  });
21569
- }), showUpload && React__default.createElement("div", {
21570
- className: `${classPrefix$E}-upload-button-wrap`
21571
- }, props.children ? props.children : React__default.createElement("span", {
21643
+ }), React__default.createElement("div", {
21644
+ className: `${classPrefix$E}-upload-button-wrap`,
21645
+ style: showUpload ? void 0 : {
21646
+ display: "none"
21647
+ }
21648
+ }, props.children || React__default.createElement("span", {
21572
21649
  className: `${classPrefix$E}-cell ${classPrefix$E}-upload-button`,
21573
21650
  role: "button",
21574
21651
  "aria-label": locale.ImageUploader.upload
@@ -21605,7 +21682,7 @@ const indexBar = "";
21605
21682
  const Panel = () => null;
21606
21683
  const classPrefix$D = `adm-index-bar`;
21607
21684
  const Sidebar = (props) => {
21608
- const [interacting, setInteracting] = useState(false);
21685
+ const [interacting, setInteracting] = useState$1(false);
21609
21686
  return React__default.createElement("div", {
21610
21687
  className: classNames(`${classPrefix$D}-sidebar`, {
21611
21688
  [`${classPrefix$D}-sidebar-interacting`]: interacting
@@ -21697,7 +21774,7 @@ const IndexBar = forwardRef((p, ref) => {
21697
21774
  className: `${classPrefix$C}-anchor-title`
21698
21775
  }, child.props.title || child.props.index), child.props.children)));
21699
21776
  });
21700
- const [activeIndex, setActiveIndex] = useState(() => {
21777
+ const [activeIndex, setActiveIndex] = useState$1(() => {
21701
21778
  const firstItem = indexItems[0];
21702
21779
  return firstItem ? firstItem.index : null;
21703
21780
  });
@@ -21784,7 +21861,7 @@ const defaultProps$w = {
21784
21861
  };
21785
21862
  const InfiniteScroll$1 = (p) => {
21786
21863
  const props = mergeProps(defaultProps$w, p);
21787
- const [failed, setFailed] = useState(false);
21864
+ const [failed, setFailed] = useState$1(false);
21788
21865
  const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
21789
21866
  try {
21790
21867
  yield props.loadMore(isRetry);
@@ -21794,9 +21871,9 @@ const InfiniteScroll$1 = (p) => {
21794
21871
  }
21795
21872
  }));
21796
21873
  const elementRef = useRef(null);
21797
- const [flag, setFlag] = useState({});
21874
+ const [flag, setFlag] = useState$1({});
21798
21875
  const nextFlagRef = useRef(flag);
21799
- const [scrollParent, setScrollParent] = useState();
21876
+ const [scrollParent, setScrollParent] = useState$1();
21800
21877
  const {
21801
21878
  run: check
21802
21879
  } = useThrottleFn(() => __awaiter$1(void 0, void 0, void 0, function* () {
@@ -21884,7 +21961,7 @@ const defaultProps$v = {
21884
21961
  const Input$1 = forwardRef((p, ref) => {
21885
21962
  const props = mergeProps(defaultProps$v, p);
21886
21963
  const [value, setValue2] = usePropsValue(props);
21887
- const [hasFocus, setHasFocus] = useState(false);
21964
+ const [hasFocus, setHasFocus] = useState$1(false);
21888
21965
  const compositionStartRef = useRef(false);
21889
21966
  const nativeInputRef = useRef(null);
21890
21967
  const {
@@ -22318,7 +22395,7 @@ const NoticeBar$1 = memo((p) => {
22318
22395
  const props = mergeProps(defaultProps$r, p);
22319
22396
  const containerRef = useRef(null);
22320
22397
  const textRef = useRef(null);
22321
- const [visible, setVisible] = useState(true);
22398
+ const [visible, setVisible] = useState$1(true);
22322
22399
  const speed = props.speed;
22323
22400
  const delayLockRef = useRef(true);
22324
22401
  const animatingRef = useRef(false);
@@ -22609,7 +22686,7 @@ const PasscodeInput$1 = forwardRef((p, ref) => {
22609
22686
  const {
22610
22687
  locale
22611
22688
  } = useConfig();
22612
- const [focused, setFocused] = useState(false);
22689
+ const [focused, setFocused] = useState$1(false);
22613
22690
  const [value, setValue2] = usePropsValue(props);
22614
22691
  const rootRef = useRef(null);
22615
22692
  const nativeInputRef = useRef(null);
@@ -22804,7 +22881,7 @@ const PullToRefresh$1 = (p) => {
22804
22881
  }, p);
22805
22882
  const headHeight = (_a = props.headHeight) !== null && _a !== void 0 ? _a : convertPx(40);
22806
22883
  const threshold = (_b = props.threshold) !== null && _b !== void 0 ? _b : convertPx(60);
22807
- const [status, setStatus] = useState("pulling");
22884
+ const [status, setStatus] = useState$1("pulling");
22808
22885
  const [springStyles, api] = useSpring(() => ({
22809
22886
  from: {
22810
22887
  height: 0
@@ -23190,7 +23267,7 @@ const ResultPage = (p) => {
23190
23267
  onSecondaryButtonClick
23191
23268
  } = props;
23192
23269
  const resultIcon = icon || React__default.createElement(iconRecord[status]);
23193
- const [collapse2, setCollapse] = useState(true);
23270
+ const [collapse2, setCollapse] = useState$1(true);
23194
23271
  const showSecondaryButton = isNodeWithContent(secondaryButtonText);
23195
23272
  const showPrimaryButton = isNodeWithContent(primaryButtonText);
23196
23273
  return withNativeProps(props, React__default.createElement("div", {
@@ -23267,7 +23344,7 @@ const SearchBar$1 = forwardRef((p, ref) => {
23267
23344
  cancelText: locale.common.cancel
23268
23345
  }, p);
23269
23346
  const [value, setValue2] = usePropsValue(props);
23270
- const [hasFocus, setHasFocus] = useState(false);
23347
+ const [hasFocus, setHasFocus] = useState$1(false);
23271
23348
  const inputRef = useRef(null);
23272
23349
  const composingRef = useRef(false);
23273
23350
  useImperativeHandle(ref, () => ({
@@ -23602,6 +23679,320 @@ const Marks = ({
23602
23679
  }, elements);
23603
23680
  };
23604
23681
  const Marks$1 = Marks;
23682
+ function supportBigInt() {
23683
+ return typeof BigInt === "function";
23684
+ }
23685
+ function trimNumber(numStr) {
23686
+ var str = numStr.trim();
23687
+ var negative = str.startsWith("-");
23688
+ if (negative) {
23689
+ str = str.slice(1);
23690
+ }
23691
+ str = str.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "");
23692
+ if (str.startsWith(".")) {
23693
+ str = "0".concat(str);
23694
+ }
23695
+ var trimStr = str || "0";
23696
+ var splitNumber = trimStr.split(".");
23697
+ var integerStr = splitNumber[0] || "0";
23698
+ var decimalStr = splitNumber[1] || "0";
23699
+ if (integerStr === "0" && decimalStr === "0") {
23700
+ negative = false;
23701
+ }
23702
+ var negativeStr = negative ? "-" : "";
23703
+ return {
23704
+ negative,
23705
+ negativeStr,
23706
+ trimStr,
23707
+ integerStr,
23708
+ decimalStr,
23709
+ fullStr: "".concat(negativeStr).concat(trimStr)
23710
+ };
23711
+ }
23712
+ function isE(number4) {
23713
+ var str = String(number4);
23714
+ return !Number.isNaN(Number(str)) && str.includes("e");
23715
+ }
23716
+ function getNumberPrecision(number4) {
23717
+ var numStr = String(number4);
23718
+ if (isE(number4)) {
23719
+ var precision = Number(numStr.slice(numStr.indexOf("e-") + 2));
23720
+ var decimalMatch = numStr.match(/\.(\d+)/);
23721
+ if (decimalMatch !== null && decimalMatch !== void 0 && decimalMatch[1]) {
23722
+ precision += decimalMatch[1].length;
23723
+ }
23724
+ return precision;
23725
+ }
23726
+ return numStr.includes(".") && validateNumber(numStr) ? numStr.length - numStr.indexOf(".") - 1 : 0;
23727
+ }
23728
+ function num2str(number4) {
23729
+ var numStr = String(number4);
23730
+ if (isE(number4)) {
23731
+ if (number4 > Number.MAX_SAFE_INTEGER) {
23732
+ return String(supportBigInt() ? BigInt(number4).toString() : Number.MAX_SAFE_INTEGER);
23733
+ }
23734
+ if (number4 < Number.MIN_SAFE_INTEGER) {
23735
+ return String(supportBigInt() ? BigInt(number4).toString() : Number.MIN_SAFE_INTEGER);
23736
+ }
23737
+ numStr = number4.toFixed(getNumberPrecision(numStr));
23738
+ }
23739
+ return trimNumber(numStr).fullStr;
23740
+ }
23741
+ function validateNumber(num) {
23742
+ if (typeof num === "number") {
23743
+ return !Number.isNaN(num);
23744
+ }
23745
+ if (!num) {
23746
+ return false;
23747
+ }
23748
+ return /^\s*-?\d+(\.\d+)?\s*$/.test(num) || /^\s*-?\d+\.\s*$/.test(num) || /^\s*-?\.\d+\s*$/.test(num);
23749
+ }
23750
+ function isEmpty(value) {
23751
+ return !value && value !== 0 && !Number.isNaN(value) || !String(value).trim();
23752
+ }
23753
+ var NumberDecimal = /* @__PURE__ */ function() {
23754
+ function NumberDecimal2(value) {
23755
+ _classCallCheck(this, NumberDecimal2);
23756
+ _defineProperty(this, "origin", "");
23757
+ _defineProperty(this, "number", void 0);
23758
+ _defineProperty(this, "empty", void 0);
23759
+ if (isEmpty(value)) {
23760
+ this.empty = true;
23761
+ return;
23762
+ }
23763
+ this.origin = String(value);
23764
+ this.number = Number(value);
23765
+ }
23766
+ _createClass(NumberDecimal2, [{
23767
+ key: "negate",
23768
+ value: function negate() {
23769
+ return new NumberDecimal2(-this.toNumber());
23770
+ }
23771
+ }, {
23772
+ key: "add",
23773
+ value: function add(value) {
23774
+ if (this.isInvalidate()) {
23775
+ return new NumberDecimal2(value);
23776
+ }
23777
+ var target = Number(value);
23778
+ if (Number.isNaN(target)) {
23779
+ return this;
23780
+ }
23781
+ var number4 = this.number + target;
23782
+ if (number4 > Number.MAX_SAFE_INTEGER) {
23783
+ return new NumberDecimal2(Number.MAX_SAFE_INTEGER);
23784
+ }
23785
+ if (number4 < Number.MIN_SAFE_INTEGER) {
23786
+ return new NumberDecimal2(Number.MIN_SAFE_INTEGER);
23787
+ }
23788
+ var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));
23789
+ return new NumberDecimal2(number4.toFixed(maxPrecision));
23790
+ }
23791
+ }, {
23792
+ key: "isEmpty",
23793
+ value: function isEmpty2() {
23794
+ return this.empty;
23795
+ }
23796
+ }, {
23797
+ key: "isNaN",
23798
+ value: function isNaN2() {
23799
+ return Number.isNaN(this.number);
23800
+ }
23801
+ }, {
23802
+ key: "isInvalidate",
23803
+ value: function isInvalidate() {
23804
+ return this.isEmpty() || this.isNaN();
23805
+ }
23806
+ }, {
23807
+ key: "equals",
23808
+ value: function equals(target) {
23809
+ return this.toNumber() === (target === null || target === void 0 ? void 0 : target.toNumber());
23810
+ }
23811
+ }, {
23812
+ key: "lessEquals",
23813
+ value: function lessEquals(target) {
23814
+ return this.add(target.negate().toString()).toNumber() <= 0;
23815
+ }
23816
+ }, {
23817
+ key: "toNumber",
23818
+ value: function toNumber2() {
23819
+ return this.number;
23820
+ }
23821
+ }, {
23822
+ key: "toString",
23823
+ value: function toString() {
23824
+ var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
23825
+ if (!safe) {
23826
+ return this.origin;
23827
+ }
23828
+ if (this.isInvalidate()) {
23829
+ return "";
23830
+ }
23831
+ return num2str(this.number);
23832
+ }
23833
+ }]);
23834
+ return NumberDecimal2;
23835
+ }();
23836
+ var BigIntDecimal = /* @__PURE__ */ function() {
23837
+ function BigIntDecimal2(value) {
23838
+ _classCallCheck(this, BigIntDecimal2);
23839
+ _defineProperty(this, "origin", "");
23840
+ _defineProperty(this, "negative", void 0);
23841
+ _defineProperty(this, "integer", void 0);
23842
+ _defineProperty(this, "decimal", void 0);
23843
+ _defineProperty(this, "decimalLen", void 0);
23844
+ _defineProperty(this, "empty", void 0);
23845
+ _defineProperty(this, "nan", void 0);
23846
+ if (isEmpty(value)) {
23847
+ this.empty = true;
23848
+ return;
23849
+ }
23850
+ this.origin = String(value);
23851
+ if (value === "-" || Number.isNaN(value)) {
23852
+ this.nan = true;
23853
+ return;
23854
+ }
23855
+ var mergedValue = value;
23856
+ if (isE(mergedValue)) {
23857
+ mergedValue = Number(mergedValue);
23858
+ }
23859
+ mergedValue = typeof mergedValue === "string" ? mergedValue : num2str(mergedValue);
23860
+ if (validateNumber(mergedValue)) {
23861
+ var trimRet = trimNumber(mergedValue);
23862
+ this.negative = trimRet.negative;
23863
+ var numbers = trimRet.trimStr.split(".");
23864
+ this.integer = BigInt(numbers[0]);
23865
+ var decimalStr = numbers[1] || "0";
23866
+ this.decimal = BigInt(decimalStr);
23867
+ this.decimalLen = decimalStr.length;
23868
+ } else {
23869
+ this.nan = true;
23870
+ }
23871
+ }
23872
+ _createClass(BigIntDecimal2, [{
23873
+ key: "getMark",
23874
+ value: function getMark() {
23875
+ return this.negative ? "-" : "";
23876
+ }
23877
+ }, {
23878
+ key: "getIntegerStr",
23879
+ value: function getIntegerStr() {
23880
+ return this.integer.toString();
23881
+ }
23882
+ }, {
23883
+ key: "getDecimalStr",
23884
+ value: function getDecimalStr() {
23885
+ return this.decimal.toString().padStart(this.decimalLen, "0");
23886
+ }
23887
+ }, {
23888
+ key: "alignDecimal",
23889
+ value: function alignDecimal(decimalLength) {
23890
+ var str = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength, "0"));
23891
+ return BigInt(str);
23892
+ }
23893
+ }, {
23894
+ key: "negate",
23895
+ value: function negate() {
23896
+ var clone = new BigIntDecimal2(this.toString());
23897
+ clone.negative = !clone.negative;
23898
+ return clone;
23899
+ }
23900
+ }, {
23901
+ key: "add",
23902
+ value: function add(value) {
23903
+ if (this.isInvalidate()) {
23904
+ return new BigIntDecimal2(value);
23905
+ }
23906
+ var offset2 = new BigIntDecimal2(value);
23907
+ if (offset2.isInvalidate()) {
23908
+ return this;
23909
+ }
23910
+ var maxDecimalLength = Math.max(this.getDecimalStr().length, offset2.getDecimalStr().length);
23911
+ var myAlignedDecimal = this.alignDecimal(maxDecimalLength);
23912
+ var offsetAlignedDecimal = offset2.alignDecimal(maxDecimalLength);
23913
+ var valueStr = (myAlignedDecimal + offsetAlignedDecimal).toString();
23914
+ var _trimNumber = trimNumber(valueStr), negativeStr = _trimNumber.negativeStr, trimStr = _trimNumber.trimStr;
23915
+ var hydrateValueStr = "".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength + 1, "0"));
23916
+ return new BigIntDecimal2("".concat(hydrateValueStr.slice(0, -maxDecimalLength), ".").concat(hydrateValueStr.slice(-maxDecimalLength)));
23917
+ }
23918
+ }, {
23919
+ key: "isEmpty",
23920
+ value: function isEmpty2() {
23921
+ return this.empty;
23922
+ }
23923
+ }, {
23924
+ key: "isNaN",
23925
+ value: function isNaN2() {
23926
+ return this.nan;
23927
+ }
23928
+ }, {
23929
+ key: "isInvalidate",
23930
+ value: function isInvalidate() {
23931
+ return this.isEmpty() || this.isNaN();
23932
+ }
23933
+ }, {
23934
+ key: "equals",
23935
+ value: function equals(target) {
23936
+ return this.toString() === (target === null || target === void 0 ? void 0 : target.toString());
23937
+ }
23938
+ }, {
23939
+ key: "lessEquals",
23940
+ value: function lessEquals(target) {
23941
+ return this.add(target.negate().toString()).toNumber() <= 0;
23942
+ }
23943
+ }, {
23944
+ key: "toNumber",
23945
+ value: function toNumber2() {
23946
+ if (this.isNaN()) {
23947
+ return NaN;
23948
+ }
23949
+ return Number(this.toString());
23950
+ }
23951
+ }, {
23952
+ key: "toString",
23953
+ value: function toString() {
23954
+ var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
23955
+ if (!safe) {
23956
+ return this.origin;
23957
+ }
23958
+ if (this.isInvalidate()) {
23959
+ return "";
23960
+ }
23961
+ return trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr;
23962
+ }
23963
+ }]);
23964
+ return BigIntDecimal2;
23965
+ }();
23966
+ function getMiniDecimal(value) {
23967
+ if (supportBigInt()) {
23968
+ return new BigIntDecimal(value);
23969
+ }
23970
+ return new NumberDecimal(value);
23971
+ }
23972
+ function toFixed(numStr, separatorStr, precision) {
23973
+ var cutOnly = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
23974
+ if (numStr === "") {
23975
+ return "";
23976
+ }
23977
+ var _trimNumber2 = trimNumber(numStr), negativeStr = _trimNumber2.negativeStr, integerStr = _trimNumber2.integerStr, decimalStr = _trimNumber2.decimalStr;
23978
+ var precisionDecimalStr = "".concat(separatorStr).concat(decimalStr);
23979
+ var numberWithoutDecimal = "".concat(negativeStr).concat(integerStr);
23980
+ if (precision >= 0) {
23981
+ var advancedNum = Number(decimalStr[precision]);
23982
+ if (advancedNum >= 5 && !cutOnly) {
23983
+ var advancedDecimal = getMiniDecimal(numStr).add("".concat(negativeStr, "0.").concat("0".repeat(precision)).concat(10 - advancedNum));
23984
+ return toFixed(advancedDecimal.toString(), separatorStr, precision, cutOnly);
23985
+ }
23986
+ if (precision === 0) {
23987
+ return numberWithoutDecimal;
23988
+ }
23989
+ return "".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision, "0").slice(0, precision));
23990
+ }
23991
+ if (precisionDecimalStr === ".0") {
23992
+ return numberWithoutDecimal;
23993
+ }
23994
+ return "".concat(numberWithoutDecimal).concat(precisionDecimalStr);
23995
+ }
23605
23996
  const ThumbIcon = (props) => {
23606
23997
  return withNativeProps(props, React__default.createElement("svg", {
23607
23998
  viewBox: "0 0 24 24",
@@ -23648,7 +24039,7 @@ const Thumb = (props) => {
23648
24039
  right: "auto"
23649
24040
  };
23650
24041
  };
23651
- const [dragging, setDragging] = useState(false);
24042
+ const [dragging, setDragging] = useState$1(false);
23652
24043
  const bind = useDrag((state) => {
23653
24044
  var _a;
23654
24045
  if (disabled)
@@ -23694,514 +24085,6 @@ const Thumb = (props) => {
23694
24085
  }, thumbElement) : thumbElement);
23695
24086
  };
23696
24087
  const Thumb$1 = Thumb;
23697
- var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
23698
- function _Big_() {
23699
- function Big2(n) {
23700
- var x = this;
23701
- if (!(x instanceof Big2))
23702
- return n === UNDEFINED ? _Big_() : new Big2(n);
23703
- if (n instanceof Big2) {
23704
- x.s = n.s;
23705
- x.e = n.e;
23706
- x.c = n.c.slice();
23707
- } else {
23708
- if (typeof n !== "string") {
23709
- if (Big2.strict === true && typeof n !== "bigint") {
23710
- throw TypeError(INVALID + "value");
23711
- }
23712
- n = n === 0 && 1 / n < 0 ? "-0" : String(n);
23713
- }
23714
- parse(x, n);
23715
- }
23716
- x.constructor = Big2;
23717
- }
23718
- Big2.prototype = P;
23719
- Big2.DP = DP;
23720
- Big2.RM = RM;
23721
- Big2.NE = NE;
23722
- Big2.PE = PE;
23723
- Big2.strict = STRICT;
23724
- Big2.roundDown = 0;
23725
- Big2.roundHalfUp = 1;
23726
- Big2.roundHalfEven = 2;
23727
- Big2.roundUp = 3;
23728
- return Big2;
23729
- }
23730
- function parse(x, n) {
23731
- var e, i, nl;
23732
- if (!NUMERIC.test(n)) {
23733
- throw Error(INVALID + "number");
23734
- }
23735
- x.s = n.charAt(0) == "-" ? (n = n.slice(1), -1) : 1;
23736
- if ((e = n.indexOf(".")) > -1)
23737
- n = n.replace(".", "");
23738
- if ((i = n.search(/e/i)) > 0) {
23739
- if (e < 0)
23740
- e = i;
23741
- e += +n.slice(i + 1);
23742
- n = n.substring(0, i);
23743
- } else if (e < 0) {
23744
- e = n.length;
23745
- }
23746
- nl = n.length;
23747
- for (i = 0; i < nl && n.charAt(i) == "0"; )
23748
- ++i;
23749
- if (i == nl) {
23750
- x.c = [x.e = 0];
23751
- } else {
23752
- for (; nl > 0 && n.charAt(--nl) == "0"; )
23753
- ;
23754
- x.e = e - i - 1;
23755
- x.c = [];
23756
- for (e = 0; i <= nl; )
23757
- x.c[e++] = +n.charAt(i++);
23758
- }
23759
- return x;
23760
- }
23761
- function round(x, sd, rm, more) {
23762
- var xc = x.c;
23763
- if (rm === UNDEFINED)
23764
- rm = x.constructor.RM;
23765
- if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) {
23766
- throw Error(INVALID_RM);
23767
- }
23768
- if (sd < 1) {
23769
- more = rm === 3 && (more || !!xc[0]) || sd === 0 && (rm === 1 && xc[0] >= 5 || rm === 2 && (xc[0] > 5 || xc[0] === 5 && (more || xc[1] !== UNDEFINED)));
23770
- xc.length = 1;
23771
- if (more) {
23772
- x.e = x.e - sd + 1;
23773
- xc[0] = 1;
23774
- } else {
23775
- xc[0] = x.e = 0;
23776
- }
23777
- } else if (sd < xc.length) {
23778
- more = rm === 1 && xc[sd] >= 5 || rm === 2 && (xc[sd] > 5 || xc[sd] === 5 && (more || xc[sd + 1] !== UNDEFINED || xc[sd - 1] & 1)) || rm === 3 && (more || !!xc[0]);
23779
- xc.length = sd;
23780
- if (more) {
23781
- for (; ++xc[--sd] > 9; ) {
23782
- xc[sd] = 0;
23783
- if (sd === 0) {
23784
- ++x.e;
23785
- xc.unshift(1);
23786
- break;
23787
- }
23788
- }
23789
- }
23790
- for (sd = xc.length; !xc[--sd]; )
23791
- xc.pop();
23792
- }
23793
- return x;
23794
- }
23795
- function stringify(x, doExponential, isNonzero) {
23796
- var e = x.e, s = x.c.join(""), n = s.length;
23797
- if (doExponential) {
23798
- s = s.charAt(0) + (n > 1 ? "." + s.slice(1) : "") + (e < 0 ? "e" : "e+") + e;
23799
- } else if (e < 0) {
23800
- for (; ++e; )
23801
- s = "0" + s;
23802
- s = "0." + s;
23803
- } else if (e > 0) {
23804
- if (++e > n) {
23805
- for (e -= n; e--; )
23806
- s += "0";
23807
- } else if (e < n) {
23808
- s = s.slice(0, e) + "." + s.slice(e);
23809
- }
23810
- } else if (n > 1) {
23811
- s = s.charAt(0) + "." + s.slice(1);
23812
- }
23813
- return x.s < 0 && isNonzero ? "-" + s : s;
23814
- }
23815
- P.abs = function() {
23816
- var x = new this.constructor(this);
23817
- x.s = 1;
23818
- return x;
23819
- };
23820
- P.cmp = function(y) {
23821
- var isneg, x = this, xc = x.c, yc = (y = new x.constructor(y)).c, i = x.s, j = y.s, k = x.e, l = y.e;
23822
- if (!xc[0] || !yc[0])
23823
- return !xc[0] ? !yc[0] ? 0 : -j : i;
23824
- if (i != j)
23825
- return i;
23826
- isneg = i < 0;
23827
- if (k != l)
23828
- return k > l ^ isneg ? 1 : -1;
23829
- j = (k = xc.length) < (l = yc.length) ? k : l;
23830
- for (i = -1; ++i < j; ) {
23831
- if (xc[i] != yc[i])
23832
- return xc[i] > yc[i] ^ isneg ? 1 : -1;
23833
- }
23834
- return k == l ? 0 : k > l ^ isneg ? 1 : -1;
23835
- };
23836
- P.div = function(y) {
23837
- var x = this, Big2 = x.constructor, a = x.c, b = (y = new Big2(y)).c, k = x.s == y.s ? 1 : -1, dp = Big2.DP;
23838
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
23839
- throw Error(INVALID_DP);
23840
- }
23841
- if (!b[0]) {
23842
- throw Error(DIV_BY_ZERO);
23843
- }
23844
- if (!a[0]) {
23845
- y.s = k;
23846
- y.c = [y.e = 0];
23847
- return y;
23848
- }
23849
- var bl, bt, n, cmp, ri, bz = b.slice(), ai = bl = b.length, al = a.length, r = a.slice(0, bl), rl = r.length, q = y, qc = q.c = [], qi = 0, p = dp + (q.e = x.e - y.e) + 1;
23850
- q.s = k;
23851
- k = p < 0 ? 0 : p;
23852
- bz.unshift(0);
23853
- for (; rl++ < bl; )
23854
- r.push(0);
23855
- do {
23856
- for (n = 0; n < 10; n++) {
23857
- if (bl != (rl = r.length)) {
23858
- cmp = bl > rl ? 1 : -1;
23859
- } else {
23860
- for (ri = -1, cmp = 0; ++ri < bl; ) {
23861
- if (b[ri] != r[ri]) {
23862
- cmp = b[ri] > r[ri] ? 1 : -1;
23863
- break;
23864
- }
23865
- }
23866
- }
23867
- if (cmp < 0) {
23868
- for (bt = rl == bl ? b : bz; rl; ) {
23869
- if (r[--rl] < bt[rl]) {
23870
- ri = rl;
23871
- for (; ri && !r[--ri]; )
23872
- r[ri] = 9;
23873
- --r[ri];
23874
- r[rl] += 10;
23875
- }
23876
- r[rl] -= bt[rl];
23877
- }
23878
- for (; !r[0]; )
23879
- r.shift();
23880
- } else {
23881
- break;
23882
- }
23883
- }
23884
- qc[qi++] = cmp ? n : ++n;
23885
- if (r[0] && cmp)
23886
- r[rl] = a[ai] || 0;
23887
- else
23888
- r = [a[ai]];
23889
- } while ((ai++ < al || r[0] !== UNDEFINED) && k--);
23890
- if (!qc[0] && qi != 1) {
23891
- qc.shift();
23892
- q.e--;
23893
- p--;
23894
- }
23895
- if (qi > p)
23896
- round(q, p, Big2.RM, r[0] !== UNDEFINED);
23897
- return q;
23898
- };
23899
- P.eq = function(y) {
23900
- return this.cmp(y) === 0;
23901
- };
23902
- P.gt = function(y) {
23903
- return this.cmp(y) > 0;
23904
- };
23905
- P.gte = function(y) {
23906
- return this.cmp(y) > -1;
23907
- };
23908
- P.lt = function(y) {
23909
- return this.cmp(y) < 0;
23910
- };
23911
- P.lte = function(y) {
23912
- return this.cmp(y) < 1;
23913
- };
23914
- P.minus = P.sub = function(y) {
23915
- var i, j, t, xlty, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
23916
- if (a != b) {
23917
- y.s = -b;
23918
- return x.plus(y);
23919
- }
23920
- var xc = x.c.slice(), xe = x.e, yc = y.c, ye = y.e;
23921
- if (!xc[0] || !yc[0]) {
23922
- if (yc[0]) {
23923
- y.s = -b;
23924
- } else if (xc[0]) {
23925
- y = new Big2(x);
23926
- } else {
23927
- y.s = 1;
23928
- }
23929
- return y;
23930
- }
23931
- if (a = xe - ye) {
23932
- if (xlty = a < 0) {
23933
- a = -a;
23934
- t = xc;
23935
- } else {
23936
- ye = xe;
23937
- t = yc;
23938
- }
23939
- t.reverse();
23940
- for (b = a; b--; )
23941
- t.push(0);
23942
- t.reverse();
23943
- } else {
23944
- j = ((xlty = xc.length < yc.length) ? xc : yc).length;
23945
- for (a = b = 0; b < j; b++) {
23946
- if (xc[b] != yc[b]) {
23947
- xlty = xc[b] < yc[b];
23948
- break;
23949
- }
23950
- }
23951
- }
23952
- if (xlty) {
23953
- t = xc;
23954
- xc = yc;
23955
- yc = t;
23956
- y.s = -y.s;
23957
- }
23958
- if ((b = (j = yc.length) - (i = xc.length)) > 0)
23959
- for (; b--; )
23960
- xc[i++] = 0;
23961
- for (b = i; j > a; ) {
23962
- if (xc[--j] < yc[j]) {
23963
- for (i = j; i && !xc[--i]; )
23964
- xc[i] = 9;
23965
- --xc[i];
23966
- xc[j] += 10;
23967
- }
23968
- xc[j] -= yc[j];
23969
- }
23970
- for (; xc[--b] === 0; )
23971
- xc.pop();
23972
- for (; xc[0] === 0; ) {
23973
- xc.shift();
23974
- --ye;
23975
- }
23976
- if (!xc[0]) {
23977
- y.s = 1;
23978
- xc = [ye = 0];
23979
- }
23980
- y.c = xc;
23981
- y.e = ye;
23982
- return y;
23983
- };
23984
- P.mod = function(y) {
23985
- var ygtx, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
23986
- if (!y.c[0]) {
23987
- throw Error(DIV_BY_ZERO);
23988
- }
23989
- x.s = y.s = 1;
23990
- ygtx = y.cmp(x) == 1;
23991
- x.s = a;
23992
- y.s = b;
23993
- if (ygtx)
23994
- return new Big2(x);
23995
- a = Big2.DP;
23996
- b = Big2.RM;
23997
- Big2.DP = Big2.RM = 0;
23998
- x = x.div(y);
23999
- Big2.DP = a;
24000
- Big2.RM = b;
24001
- return this.minus(x.times(y));
24002
- };
24003
- P.neg = function() {
24004
- var x = new this.constructor(this);
24005
- x.s = -x.s;
24006
- return x;
24007
- };
24008
- P.plus = P.add = function(y) {
24009
- var e, k, t, x = this, Big2 = x.constructor;
24010
- y = new Big2(y);
24011
- if (x.s != y.s) {
24012
- y.s = -y.s;
24013
- return x.minus(y);
24014
- }
24015
- var xe = x.e, xc = x.c, ye = y.e, yc = y.c;
24016
- if (!xc[0] || !yc[0]) {
24017
- if (!yc[0]) {
24018
- if (xc[0]) {
24019
- y = new Big2(x);
24020
- } else {
24021
- y.s = x.s;
24022
- }
24023
- }
24024
- return y;
24025
- }
24026
- xc = xc.slice();
24027
- if (e = xe - ye) {
24028
- if (e > 0) {
24029
- ye = xe;
24030
- t = yc;
24031
- } else {
24032
- e = -e;
24033
- t = xc;
24034
- }
24035
- t.reverse();
24036
- for (; e--; )
24037
- t.push(0);
24038
- t.reverse();
24039
- }
24040
- if (xc.length - yc.length < 0) {
24041
- t = yc;
24042
- yc = xc;
24043
- xc = t;
24044
- }
24045
- e = yc.length;
24046
- for (k = 0; e; xc[e] %= 10)
24047
- k = (xc[--e] = xc[e] + yc[e] + k) / 10 | 0;
24048
- if (k) {
24049
- xc.unshift(k);
24050
- ++ye;
24051
- }
24052
- for (e = xc.length; xc[--e] === 0; )
24053
- xc.pop();
24054
- y.c = xc;
24055
- y.e = ye;
24056
- return y;
24057
- };
24058
- P.pow = function(n) {
24059
- var x = this, one = new x.constructor("1"), y = one, isneg = n < 0;
24060
- if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) {
24061
- throw Error(INVALID + "exponent");
24062
- }
24063
- if (isneg)
24064
- n = -n;
24065
- for (; ; ) {
24066
- if (n & 1)
24067
- y = y.times(x);
24068
- n >>= 1;
24069
- if (!n)
24070
- break;
24071
- x = x.times(x);
24072
- }
24073
- return isneg ? one.div(y) : y;
24074
- };
24075
- P.prec = function(sd, rm) {
24076
- if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
24077
- throw Error(INVALID + "precision");
24078
- }
24079
- return round(new this.constructor(this), sd, rm);
24080
- };
24081
- P.round = function(dp, rm) {
24082
- if (dp === UNDEFINED)
24083
- dp = 0;
24084
- else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) {
24085
- throw Error(INVALID_DP);
24086
- }
24087
- return round(new this.constructor(this), dp + this.e + 1, rm);
24088
- };
24089
- P.sqrt = function() {
24090
- var r, c, t, x = this, Big2 = x.constructor, s = x.s, e = x.e, half = new Big2("0.5");
24091
- if (!x.c[0])
24092
- return new Big2(x);
24093
- if (s < 0) {
24094
- throw Error(NAME + "No square root");
24095
- }
24096
- s = Math.sqrt(x + "");
24097
- if (s === 0 || s === 1 / 0) {
24098
- c = x.c.join("");
24099
- if (!(c.length + e & 1))
24100
- c += "0";
24101
- s = Math.sqrt(c);
24102
- e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
24103
- r = new Big2((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
24104
- } else {
24105
- r = new Big2(s + "");
24106
- }
24107
- e = r.e + (Big2.DP += 4);
24108
- do {
24109
- t = r;
24110
- r = half.times(t.plus(x.div(t)));
24111
- } while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
24112
- return round(r, (Big2.DP -= 4) + r.e + 1, Big2.RM);
24113
- };
24114
- P.times = P.mul = function(y) {
24115
- var c, x = this, Big2 = x.constructor, xc = x.c, yc = (y = new Big2(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
24116
- y.s = x.s == y.s ? 1 : -1;
24117
- if (!xc[0] || !yc[0]) {
24118
- y.c = [y.e = 0];
24119
- return y;
24120
- }
24121
- y.e = i + j;
24122
- if (a < b) {
24123
- c = xc;
24124
- xc = yc;
24125
- yc = c;
24126
- j = a;
24127
- a = b;
24128
- b = j;
24129
- }
24130
- for (c = new Array(j = a + b); j--; )
24131
- c[j] = 0;
24132
- for (i = b; i--; ) {
24133
- b = 0;
24134
- for (j = a + i; j > i; ) {
24135
- b = c[j] + yc[i] * xc[j - i - 1] + b;
24136
- c[j--] = b % 10;
24137
- b = b / 10 | 0;
24138
- }
24139
- c[j] = b;
24140
- }
24141
- if (b)
24142
- ++y.e;
24143
- else
24144
- c.shift();
24145
- for (i = c.length; !c[--i]; )
24146
- c.pop();
24147
- y.c = c;
24148
- return y;
24149
- };
24150
- P.toExponential = function(dp, rm) {
24151
- var x = this, n = x.c[0];
24152
- if (dp !== UNDEFINED) {
24153
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
24154
- throw Error(INVALID_DP);
24155
- }
24156
- x = round(new x.constructor(x), ++dp, rm);
24157
- for (; x.c.length < dp; )
24158
- x.c.push(0);
24159
- }
24160
- return stringify(x, true, !!n);
24161
- };
24162
- P.toFixed = function(dp, rm) {
24163
- var x = this, n = x.c[0];
24164
- if (dp !== UNDEFINED) {
24165
- if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
24166
- throw Error(INVALID_DP);
24167
- }
24168
- x = round(new x.constructor(x), dp + x.e + 1, rm);
24169
- for (dp = dp + x.e + 1; x.c.length < dp; )
24170
- x.c.push(0);
24171
- }
24172
- return stringify(x, false, !!n);
24173
- };
24174
- P[Symbol.for("nodejs.util.inspect.custom")] = P.toJSON = P.toString = function() {
24175
- var x = this, Big2 = x.constructor;
24176
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, !!x.c[0]);
24177
- };
24178
- P.toNumber = function() {
24179
- var n = Number(stringify(this, true, true));
24180
- if (this.constructor.strict === true && !this.eq(n.toString())) {
24181
- throw Error(NAME + "Imprecise conversion");
24182
- }
24183
- return n;
24184
- };
24185
- P.toPrecision = function(sd, rm) {
24186
- var x = this, Big2 = x.constructor, n = x.c[0];
24187
- if (sd !== UNDEFINED) {
24188
- if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
24189
- throw Error(INVALID + "precision");
24190
- }
24191
- x = round(new Big2(x), sd, rm);
24192
- for (; x.c.length < sd; )
24193
- x.c.push(0);
24194
- }
24195
- return stringify(x, sd <= x.e || x.e <= Big2.NE || x.e >= Big2.PE, !!n);
24196
- };
24197
- P.valueOf = function() {
24198
- var x = this, Big2 = x.constructor;
24199
- if (Big2.strict === true) {
24200
- throw Error(NAME + "valueOf disallowed");
24201
- }
24202
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
24203
- };
24204
- var Big = _Big_();
24205
24088
  const classPrefix$f = `adm-slider`;
24206
24089
  const defaultProps$e = {
24207
24090
  min: 0,
@@ -24231,9 +24114,14 @@ const Slider$1 = (p) => {
24231
24114
  function convertValue(value) {
24232
24115
  return props.range ? value : [props.min, value];
24233
24116
  }
24117
+ function alignValue(value, decimalLen) {
24118
+ const decimal = getMiniDecimal(value);
24119
+ const fixedStr = toFixed(decimal.toString(), ".", decimalLen);
24120
+ return getMiniDecimal(fixedStr).toNumber();
24121
+ }
24234
24122
  function reverseValue(value) {
24235
24123
  const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
24236
- return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
24124
+ return props.range ? value.map((v) => alignValue(v, mergedDecimalLen)) : alignValue(value[1], mergedDecimalLen);
24237
24125
  }
24238
24126
  function getDecimalLen(n) {
24239
24127
  return (`${n}`.split(".")[1] || "").length;
@@ -24268,7 +24156,7 @@ const Slider$1 = (p) => {
24268
24156
  return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
24269
24157
  } else {
24270
24158
  const points = [];
24271
- for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
24159
+ for (let i = getMiniDecimal(min2); i.lessEquals(getMiniDecimal(max2)); i = i.add(step)) {
24272
24160
  points.push(i.toNumber());
24273
24161
  }
24274
24162
  return points;
@@ -24379,74 +24267,313 @@ const Slider$1 = (p) => {
24379
24267
  };
24380
24268
  const Slider = Slider$1;
24381
24269
  const stepper = "";
24270
+ var useMergedState$1 = {};
24271
+ var slicedToArray = { exports: {} };
24272
+ var arrayWithHoles = { exports: {} };
24273
+ (function(module) {
24274
+ function _arrayWithHoles2(arr) {
24275
+ if (Array.isArray(arr))
24276
+ return arr;
24277
+ }
24278
+ module.exports = _arrayWithHoles2, module.exports.__esModule = true, module.exports["default"] = module.exports;
24279
+ })(arrayWithHoles);
24280
+ var iterableToArrayLimit = { exports: {} };
24281
+ (function(module) {
24282
+ function _iterableToArrayLimit2(arr, i) {
24283
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
24284
+ if (null != _i) {
24285
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
24286
+ try {
24287
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
24288
+ if (Object(_i) !== _i)
24289
+ return;
24290
+ _n = false;
24291
+ } else
24292
+ for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
24293
+ ;
24294
+ }
24295
+ } catch (err) {
24296
+ _d = true, _e = err;
24297
+ } finally {
24298
+ try {
24299
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
24300
+ return;
24301
+ } finally {
24302
+ if (_d)
24303
+ throw _e;
24304
+ }
24305
+ }
24306
+ return _arr;
24307
+ }
24308
+ }
24309
+ module.exports = _iterableToArrayLimit2, module.exports.__esModule = true, module.exports["default"] = module.exports;
24310
+ })(iterableToArrayLimit);
24311
+ var unsupportedIterableToArray = { exports: {} };
24312
+ var arrayLikeToArray = { exports: {} };
24313
+ (function(module) {
24314
+ function _arrayLikeToArray2(arr, len) {
24315
+ if (len == null || len > arr.length)
24316
+ len = arr.length;
24317
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
24318
+ arr2[i] = arr[i];
24319
+ }
24320
+ return arr2;
24321
+ }
24322
+ module.exports = _arrayLikeToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
24323
+ })(arrayLikeToArray);
24324
+ (function(module) {
24325
+ var arrayLikeToArray$1 = arrayLikeToArray.exports;
24326
+ function _unsupportedIterableToArray2(o, minLen) {
24327
+ if (!o)
24328
+ return;
24329
+ if (typeof o === "string")
24330
+ return arrayLikeToArray$1(o, minLen);
24331
+ var n = Object.prototype.toString.call(o).slice(8, -1);
24332
+ if (n === "Object" && o.constructor)
24333
+ n = o.constructor.name;
24334
+ if (n === "Map" || n === "Set")
24335
+ return Array.from(o);
24336
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
24337
+ return arrayLikeToArray$1(o, minLen);
24338
+ }
24339
+ module.exports = _unsupportedIterableToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
24340
+ })(unsupportedIterableToArray);
24341
+ var nonIterableRest = { exports: {} };
24342
+ (function(module) {
24343
+ function _nonIterableRest2() {
24344
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
24345
+ }
24346
+ module.exports = _nonIterableRest2, module.exports.__esModule = true, module.exports["default"] = module.exports;
24347
+ })(nonIterableRest);
24348
+ (function(module) {
24349
+ var arrayWithHoles$1 = arrayWithHoles.exports;
24350
+ var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
24351
+ var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
24352
+ var nonIterableRest$1 = nonIterableRest.exports;
24353
+ function _slicedToArray3(arr, i) {
24354
+ return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
24355
+ }
24356
+ module.exports = _slicedToArray3, module.exports.__esModule = true, module.exports["default"] = module.exports;
24357
+ })(slicedToArray);
24358
+ var useEvent$1 = {};
24359
+ var _interopRequireWildcard$2 = interopRequireWildcard.exports.default;
24360
+ Object.defineProperty(useEvent$1, "__esModule", {
24361
+ value: true
24362
+ });
24363
+ useEvent$1.default = useEvent;
24364
+ var React$2 = _interopRequireWildcard$2(React__default);
24365
+ function useEvent(callback) {
24366
+ var fnRef = React$2.useRef();
24367
+ fnRef.current = callback;
24368
+ var memoFn = React$2.useCallback(function() {
24369
+ var _fnRef$current;
24370
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
24371
+ args[_key] = arguments[_key];
24372
+ }
24373
+ return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
24374
+ }, []);
24375
+ return memoFn;
24376
+ }
24377
+ var useLayoutEffect$1 = {};
24378
+ var canUseDom$1 = {};
24379
+ Object.defineProperty(canUseDom$1, "__esModule", {
24380
+ value: true
24381
+ });
24382
+ canUseDom$1.default = canUseDom;
24383
+ function canUseDom() {
24384
+ return !!(typeof window !== "undefined" && window.document && window.document.createElement);
24385
+ }
24386
+ var _interopRequireDefault$2 = interopRequireDefault.exports.default;
24387
+ var _interopRequireWildcard$1 = interopRequireWildcard.exports.default;
24388
+ Object.defineProperty(useLayoutEffect$1, "__esModule", {
24389
+ value: true
24390
+ });
24391
+ useLayoutEffect$1.useLayoutUpdateEffect = useLayoutEffect$1.default = void 0;
24392
+ var React$1 = _interopRequireWildcard$1(React__default);
24393
+ var _canUseDom = _interopRequireDefault$2(canUseDom$1);
24394
+ var useLayoutEffect = (0, _canUseDom.default)() ? React$1.useLayoutEffect : React$1.useEffect;
24395
+ var _default$1 = useLayoutEffect;
24396
+ useLayoutEffect$1.default = _default$1;
24397
+ var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
24398
+ var firstMountRef = React$1.useRef(true);
24399
+ useLayoutEffect(function() {
24400
+ if (!firstMountRef.current) {
24401
+ return callback();
24402
+ }
24403
+ }, deps);
24404
+ useLayoutEffect(function() {
24405
+ firstMountRef.current = false;
24406
+ return function() {
24407
+ firstMountRef.current = true;
24408
+ };
24409
+ }, []);
24410
+ };
24411
+ useLayoutEffect$1.useLayoutUpdateEffect = useLayoutUpdateEffect;
24412
+ var useState = {};
24413
+ var _interopRequireWildcard = interopRequireWildcard.exports.default;
24414
+ var _interopRequireDefault$1 = interopRequireDefault.exports.default;
24415
+ Object.defineProperty(useState, "__esModule", {
24416
+ value: true
24417
+ });
24418
+ useState.default = useSafeState;
24419
+ var _slicedToArray2$1 = _interopRequireDefault$1(slicedToArray.exports);
24420
+ var React = _interopRequireWildcard(React__default);
24421
+ function useSafeState(defaultValue) {
24422
+ var destroyRef = React.useRef(false);
24423
+ var _React$useState = React.useState(defaultValue), _React$useState2 = (0, _slicedToArray2$1.default)(_React$useState, 2), value = _React$useState2[0], setValue2 = _React$useState2[1];
24424
+ React.useEffect(function() {
24425
+ destroyRef.current = false;
24426
+ return function() {
24427
+ destroyRef.current = true;
24428
+ };
24429
+ }, []);
24430
+ function safeSetState(updater, ignoreDestroy) {
24431
+ if (ignoreDestroy && destroyRef.current) {
24432
+ return;
24433
+ }
24434
+ setValue2(updater);
24435
+ }
24436
+ return [value, safeSetState];
24437
+ }
24438
+ var _interopRequireDefault = interopRequireDefault.exports.default;
24439
+ Object.defineProperty(useMergedState$1, "__esModule", {
24440
+ value: true
24441
+ });
24442
+ var _default = useMergedState$1.default = useMergedState;
24443
+ var _slicedToArray2 = _interopRequireDefault(slicedToArray.exports);
24444
+ var _useEvent = _interopRequireDefault(useEvent$1);
24445
+ var _useLayoutEffect = useLayoutEffect$1;
24446
+ var _useState5 = _interopRequireDefault(useState);
24447
+ function hasValue(value) {
24448
+ return value !== void 0;
24449
+ }
24450
+ function useMergedState(defaultStateValue, option) {
24451
+ var _ref = option || {}, defaultValue = _ref.defaultValue, value = _ref.value, onChange = _ref.onChange, postState = _ref.postState;
24452
+ var _useState = (0, _useState5.default)(function() {
24453
+ if (hasValue(value)) {
24454
+ return value;
24455
+ } else if (hasValue(defaultValue)) {
24456
+ return typeof defaultValue === "function" ? defaultValue() : defaultValue;
24457
+ } else {
24458
+ return typeof defaultStateValue === "function" ? defaultStateValue() : defaultStateValue;
24459
+ }
24460
+ }), _useState2 = (0, _slicedToArray2.default)(_useState, 2), innerValue = _useState2[0], setInnerValue = _useState2[1];
24461
+ var mergedValue = value !== void 0 ? value : innerValue;
24462
+ var postMergedValue = postState ? postState(mergedValue) : mergedValue;
24463
+ var onChangeFn = (0, _useEvent.default)(onChange);
24464
+ var _useState3 = (0, _useState5.default)([mergedValue]), _useState4 = (0, _slicedToArray2.default)(_useState3, 2), prevValue = _useState4[0], setPrevValue = _useState4[1];
24465
+ (0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
24466
+ var prev = prevValue[0];
24467
+ if (innerValue !== prev) {
24468
+ onChangeFn(innerValue, prev);
24469
+ }
24470
+ }, [prevValue]);
24471
+ (0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
24472
+ if (!hasValue(value)) {
24473
+ setInnerValue(value);
24474
+ }
24475
+ }, [value]);
24476
+ var triggerChange = (0, _useEvent.default)(function(updater, ignoreDestroy) {
24477
+ setInnerValue(updater, ignoreDestroy);
24478
+ setPrevValue([mergedValue], ignoreDestroy);
24479
+ });
24480
+ return [postMergedValue, triggerChange];
24481
+ }
24382
24482
  const classPrefix$e = `adm-stepper`;
24383
24483
  const defaultProps$d = {
24384
- defaultValue: 0,
24385
24484
  step: 1,
24386
24485
  disabled: false,
24387
24486
  allowEmpty: false
24388
24487
  };
24389
- const Stepper$1 = (p) => {
24488
+ function Stepper(p) {
24390
24489
  const props = mergeProps(defaultProps$d, p);
24391
24490
  const {
24491
+ defaultValue = 0,
24492
+ value,
24493
+ onChange,
24392
24494
  disabled,
24393
24495
  step,
24394
24496
  max: max2,
24395
24497
  min: min2,
24396
24498
  inputReadOnly,
24397
24499
  digits,
24500
+ stringMode,
24398
24501
  formatter,
24399
24502
  parser
24400
24503
  } = props;
24401
24504
  const {
24402
24505
  locale
24403
24506
  } = useConfig();
24507
+ const fixedValue = (value2) => {
24508
+ const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
24509
+ return fixedValue2.toString();
24510
+ };
24511
+ const getValueAsType = (value2) => stringMode ? value2.toString() : value2.toNumber();
24404
24512
  const parseValue = (text) => {
24405
24513
  if (text === "")
24406
24514
  return null;
24407
- return parser ? parser(text) : parseFloat(text);
24515
+ if (parser) {
24516
+ return String(parser(text));
24517
+ }
24518
+ const decimal = getMiniDecimal(text);
24519
+ return decimal.isInvalidate() ? null : decimal.toString();
24408
24520
  };
24409
24521
  const formatValue = (value2) => {
24410
24522
  if (value2 === null)
24411
24523
  return "";
24412
24524
  if (formatter) {
24413
24525
  return formatter(value2);
24414
- } else if (digits !== void 0) {
24415
- return value2.toFixed(digits);
24416
24526
  } else {
24417
- return value2.toString();
24527
+ return fixedValue(value2);
24418
24528
  }
24419
24529
  };
24420
- const [value, setValue2] = usePropsValue(props);
24421
- const [inputValue, setInputValue] = useState(() => formatValue(value));
24422
- function setValueWithCheck(v) {
24423
- if (isNaN(v))
24530
+ const [mergedValue, setMergedValue] = _default(defaultValue, {
24531
+ value,
24532
+ onChange: (nextValue) => {
24533
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
24534
+ }
24535
+ });
24536
+ const [inputValue, setInputValue] = useState$1(() => formatValue(mergedValue));
24537
+ function setValueWithCheck(nextValue) {
24538
+ if (nextValue.isNaN())
24424
24539
  return;
24425
- let target = bound(v, props.min, props.max);
24540
+ let target = nextValue;
24541
+ if (min2 !== void 0) {
24542
+ const minDecimal = getMiniDecimal(min2);
24543
+ if (target.lessEquals(minDecimal)) {
24544
+ target = minDecimal;
24545
+ }
24546
+ }
24547
+ if (max2 !== void 0) {
24548
+ const maxDecimal = getMiniDecimal(max2);
24549
+ if (maxDecimal.lessEquals(target)) {
24550
+ target = maxDecimal;
24551
+ }
24552
+ }
24426
24553
  if (digits !== void 0) {
24427
- target = parseFloat(target.toFixed(digits));
24554
+ target = getMiniDecimal(fixedValue(getValueAsType(target)));
24428
24555
  }
24429
- setValue2(target);
24556
+ setMergedValue(getValueAsType(target));
24430
24557
  }
24431
24558
  const handleInputChange = (v) => {
24432
24559
  setInputValue(v);
24433
- const value2 = parseValue(v);
24434
- if (value2 === null) {
24560
+ const valueStr = parseValue(v);
24561
+ if (valueStr === null) {
24435
24562
  if (props.allowEmpty) {
24436
- setValue2(null);
24563
+ setMergedValue(null);
24437
24564
  } else {
24438
- setValue2(props.defaultValue);
24565
+ setMergedValue(defaultValue);
24439
24566
  }
24440
24567
  } else {
24441
- setValueWithCheck(value2);
24568
+ setValueWithCheck(getMiniDecimal(valueStr));
24442
24569
  }
24443
24570
  };
24444
- const [focused, setFocused] = useState(false);
24571
+ const [focused, setFocused] = useState$1(false);
24445
24572
  const inputRef = React__default.useRef(null);
24446
24573
  function triggerFocus(nextFocus) {
24447
24574
  setFocused(nextFocus);
24448
24575
  if (nextFocus) {
24449
- setInputValue(typeof value === "number" ? String(value) : "");
24576
+ setInputValue(mergedValue !== null && mergedValue !== void 0 ? String(mergedValue) : "");
24450
24577
  }
24451
24578
  }
24452
24579
  useEffect(() => {
@@ -24457,32 +24584,39 @@ const Stepper$1 = (p) => {
24457
24584
  }, [focused]);
24458
24585
  useEffect(() => {
24459
24586
  if (!focused) {
24460
- setInputValue(formatValue(value));
24587
+ setInputValue(formatValue(mergedValue));
24588
+ }
24589
+ }, [focused, mergedValue, digits]);
24590
+ const handleOffset = (positive) => {
24591
+ let stepValue = getMiniDecimal(step);
24592
+ if (!positive) {
24593
+ stepValue = stepValue.negate();
24461
24594
  }
24462
- }, [focused, value, digits]);
24595
+ setValueWithCheck(getMiniDecimal(mergedValue !== null && mergedValue !== void 0 ? mergedValue : 0).add(stepValue.toString()));
24596
+ };
24463
24597
  const handleMinus = () => {
24464
- setValueWithCheck(Big(value !== null && value !== void 0 ? value : 0).minus(step).toNumber());
24598
+ handleOffset(false);
24465
24599
  };
24466
24600
  const handlePlus = () => {
24467
- setValueWithCheck(Big(value !== null && value !== void 0 ? value : 0).add(step).toNumber());
24601
+ handleOffset(true);
24468
24602
  };
24469
24603
  const minusDisabled = () => {
24470
24604
  if (disabled)
24471
24605
  return true;
24472
- if (value === null)
24606
+ if (mergedValue === null)
24473
24607
  return false;
24474
24608
  if (min2 !== void 0) {
24475
- return value <= min2;
24609
+ return mergedValue <= min2;
24476
24610
  }
24477
24611
  return false;
24478
24612
  };
24479
24613
  const plusDisabled = () => {
24480
24614
  if (disabled)
24481
24615
  return true;
24482
- if (value === null)
24616
+ if (mergedValue === null)
24483
24617
  return false;
24484
24618
  if (max2 !== void 0) {
24485
- return value >= max2;
24619
+ return mergedValue >= max2;
24486
24620
  }
24487
24621
  return false;
24488
24622
  };
@@ -24521,8 +24655,8 @@ const Stepper$1 = (p) => {
24521
24655
  readOnly: inputReadOnly,
24522
24656
  role: "spinbutton",
24523
24657
  "aria-valuenow": Number(inputValue),
24524
- "aria-valuemax": max2,
24525
- "aria-valuemin": min2,
24658
+ "aria-valuemax": Number(max2),
24659
+ "aria-valuemin": Number(min2),
24526
24660
  inputMode: "decimal"
24527
24661
  })), React__default.createElement(Button, {
24528
24662
  className: `${classPrefix$e}-plus`,
@@ -24533,8 +24667,7 @@ const Stepper$1 = (p) => {
24533
24667
  color: "primary",
24534
24668
  "aria-label": locale.Stepper.increase
24535
24669
  }, React__default.createElement(AddOutline, null))));
24536
- };
24537
- const Stepper = Stepper$1;
24670
+ }
24538
24671
  const steps = "";
24539
24672
  const classPrefix$d = `adm-step`;
24540
24673
  const Step = (props) => {
@@ -24806,7 +24939,7 @@ const SwiperItem = (props) => {
24806
24939
  }, props.children));
24807
24940
  };
24808
24941
  function useRefState(initialState) {
24809
- const [state, setState] = useState(initialState);
24942
+ const [state, setState] = useState$1(initialState);
24810
24943
  const ref = useRef(state);
24811
24944
  useEffect(() => {
24812
24945
  ref.current = state;
@@ -24829,7 +24962,7 @@ const defaultProps$a = {
24829
24962
  let currentUid;
24830
24963
  const Swiper = forwardRef(staged_1((p, ref) => {
24831
24964
  const props = mergeProps(defaultProps$a, p);
24832
- const [uid] = useState({});
24965
+ const [uid] = useState$1({});
24833
24966
  const isVertical = props.direction === "vertical";
24834
24967
  const slideRatio = props.slideSize / 100;
24835
24968
  const offsetRatio = props.trackOffset / 100;
@@ -24870,7 +25003,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
24870
25003
  const trackPixels = isVertical ? track.offsetHeight : track.offsetWidth;
24871
25004
  return trackPixels * props.slideSize / 100;
24872
25005
  }
24873
- const [current, setCurrent] = useState(props.defaultIndex);
25006
+ const [current, setCurrent] = useState$1(props.defaultIndex);
24874
25007
  useUpdateEffect(() => {
24875
25008
  var _a;
24876
25009
  (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, current);
@@ -25110,7 +25243,7 @@ const defaultProps$9 = {
25110
25243
  const Switch$1 = (p) => {
25111
25244
  const props = mergeProps(defaultProps$9, p);
25112
25245
  const disabled = props.disabled || props.loading || false;
25113
- const [changing, setChanging] = useState(false);
25246
+ const [changing, setChanging] = useState$1(false);
25114
25247
  const {
25115
25248
  locale
25116
25249
  } = useConfig();
@@ -25869,7 +26002,7 @@ const VirtualInput$1 = forwardRef((p, ref) => {
25869
26002
  const [value, setValue2] = usePropsValue(props);
25870
26003
  const rootRef = useRef(null);
25871
26004
  const contentRef = useRef(null);
25872
- const [hasFocus, setHasFocus] = useState(false);
26005
+ const [hasFocus, setHasFocus] = useState$1(false);
25873
26006
  function scrollToEnd() {
25874
26007
  const root2 = rootRef.current;
25875
26008
  if (!root2)
@@ -25983,7 +26116,7 @@ const WaterMark$1 = (p) => {
25983
26116
  fontSize = 14,
25984
26117
  fontFamily = "sans-serif"
25985
26118
  } = props;
25986
- const [base64Url, setBase64Url] = useState("");
26119
+ const [base64Url, setBase64Url] = useState$1("");
25987
26120
  useEffect(() => {
25988
26121
  const canvas = document.createElement("canvas");
25989
26122
  const ratio = window.devicePixelRatio;