@farris/ui-vue 1.2.9 → 1.3.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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,17 +1,17 @@
1
- var gt = Object.defineProperty;
2
- var vt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var z = (t, e, n) => vt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as re, toRefs as Fe, createVNode as s, Fragment as oe, createTextVNode as C, ref as N, watch as ne, inject as le, getCurrentInstance as wt, onMounted as Oe, onUnmounted as Ne, computed as $, reactive as yt, createApp as bt, mergeProps as xt, provide as Dt, resolveComponent as K, onBeforeMount as Mt } from "vue";
5
- import { cloneDeep as Tt } from "lodash-es";
1
+ var vt = Object.defineProperty;
2
+ var wt = (t, e, n) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var z = (t, e, n) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as re, toRefs as Fe, createVNode as s, Fragment as oe, createTextVNode as C, ref as N, watch as ne, inject as le, getCurrentInstance as yt, onMounted as Oe, onUnmounted as Ne, computed as $, reactive as bt, createApp as xt, Transition as Dt, mergeProps as Tt, provide as Mt, resolveComponent as K, onBeforeMount as St } from "vue";
5
+ import { isPlainObject as Ye, cloneDeep as kt } from "lodash-es";
6
6
  import "bignumber.js";
7
- const St = {
7
+ const Ct = {
8
8
  // 是否被选中
9
9
  checked: { type: Boolean, default: !1 },
10
10
  // 进度条状态 默认'normal'
11
11
  id: { type: String, default: "" },
12
12
  // 禁用
13
13
  disabled: { type: Boolean, default: !1 }
14
- }, kt = {
14
+ }, Pt = {
15
15
  // 是否显示进度条信息
16
16
  showInfo: { type: Boolean, default: !0 },
17
17
  // 进度条状态 默认'normal'
@@ -19,7 +19,7 @@ const St = {
19
19
  // 已完成的分段百分比
20
20
  percent: { type: Number, default: 0 },
21
21
  maxWidth: { type: Number, default: 0 }
22
- }, Ct = {
22
+ }, Et = {
23
23
  /**
24
24
  * 按钮文本
25
25
  */
@@ -52,9 +52,9 @@ const St = {
52
52
  * 附件服务器端服务注入的Token
53
53
  */
54
54
  uploadServerToken: { type: String, default: "" }
55
- }, Pt = /* @__PURE__ */ re({
55
+ }, Ft = /* @__PURE__ */ re({
56
56
  name: "FUploadProgress",
57
- props: kt,
57
+ props: Pt,
58
58
  setup(t, e) {
59
59
  const {
60
60
  showInfo: n,
@@ -82,9 +82,9 @@ const St = {
82
82
  class: ["upload-progress-text-icon f-icon", "f-icon-" + a.value]
83
83
  }, null) : s(oe, null, [i.value, C("%")])]) : ""]);
84
84
  }
85
- }), Ge = /* @__PURE__ */ re({
85
+ }), Je = /* @__PURE__ */ re({
86
86
  name: "FPreviewCheckbox",
87
- props: St,
87
+ props: Ct,
88
88
  emits: ["checkedChange"],
89
89
  setup(t, e) {
90
90
  const {
@@ -113,14 +113,14 @@ const St = {
113
113
  onMousedown: (i) => i.stopPropagation()
114
114
  }, null)])]);
115
115
  }
116
- }), Je = /* @__PURE__ */ re({
116
+ }), Ze = /* @__PURE__ */ re({
117
117
  name: "FFileSelect",
118
- props: Ct,
118
+ props: Et,
119
119
  emits: ["change", "stateChange"],
120
120
  setup(t, e) {
121
121
  const n = le("uploaderService");
122
122
  n.setUploadContext(e);
123
- const a = wt(), r = N("*");
123
+ const a = yt(), r = N("*");
124
124
  let i;
125
125
  const l = () => {
126
126
  i.files && (e.emit("change", i.files), n.handleFiles(i.files), i.value = null);
@@ -168,25 +168,25 @@ const St = {
168
168
  style: "top: 2px;position: relative;"
169
169
  }, null), t.selectText])]);
170
170
  }
171
- }), Ze = {}, Ke = {};
171
+ }), Ke = {}, et = {};
172
172
  function Ae(t) {
173
- const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f == o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ae(e[o]) : Tt(e[o].default)), l), {});
173
+ const { properties: e, title: n, ignore: a } = t, r = a && Array.isArray(a), i = Object.keys(e).reduce((l, o) => ((!r || !a.find((f) => f == o)) && (l[o] = e[o].type === "object" && e[o].properties ? Ae(e[o]) : kt(e[o].default)), l), {});
174
174
  return (!r || !a.find((l) => l == "id")) && (i.id = `${n}-${Date.now()}`), i;
175
175
  }
176
176
  function Pe(t, e = {}, n) {
177
- const a = Ze[t];
177
+ const a = Ke[t];
178
178
  if (a) {
179
179
  let r = Ae(a);
180
- const i = Ke[t];
180
+ const i = et[t];
181
181
  return r = i ? i({ getSchemaByType: Pe }, r, e, n) : r, r;
182
182
  }
183
183
  return null;
184
184
  }
185
- function Et(t, e) {
185
+ function Ot(t, e) {
186
186
  const n = Ae(e);
187
- return Object.keys(t).reduce((a, r) => (a[r] && typeof a[r] == "object" ? Object.assign(a[r], t[r]) : a[r] = t[r], a), n), n;
187
+ return Object.keys(t).reduce((a, r) => (a[r] && Ye(a[r]) && Ye(t[r]) ? Object.assign(a[r], t[r]) : a[r] = t[r], a), n), n;
188
188
  }
189
- function Ft(t, e) {
189
+ function Nt(t, e) {
190
190
  return Object.keys(t).filter((a) => t[a] != null).reduce((a, r) => {
191
191
  if (e.has(r)) {
192
192
  const i = e.get(r);
@@ -201,11 +201,11 @@ function Ft(t, e) {
201
201
  return a;
202
202
  }, {});
203
203
  }
204
- function Ot(t, e, n = /* @__PURE__ */ new Map()) {
205
- const a = Et(t, e);
206
- return Ft(a, n);
204
+ function At(t, e, n = /* @__PURE__ */ new Map()) {
205
+ const a = Ot(t, e);
206
+ return Nt(a, n);
207
207
  }
208
- function Nt(t = {}) {
208
+ function Ht(t = {}) {
209
209
  function e(u, d, h, m) {
210
210
  if (typeof h == "number")
211
211
  return m[u].length === h;
@@ -254,20 +254,20 @@ function Nt(t = {}) {
254
254
  return i(u).reduce((x, g) => x && l(g, d), !0);
255
255
  }
256
256
  function f(u, d) {
257
- const h = Object.keys(u), m = h.includes("allOf"), x = h.includes("anyOf"), g = m || x, k = (g ? u[g ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((M) => o(M, d));
257
+ const h = Object.keys(u), m = h.includes("allOf"), x = h.includes("anyOf"), g = m || x, k = (g ? u[g ? m ? "allOf" : "anyOf" : "allOf"] : [u]).map((T) => o(T, d));
258
258
  return m ? !k.includes(!1) : k.includes(!0);
259
259
  }
260
260
  return { parseValueSchema: f };
261
261
  }
262
- const At = {}, Ht = {};
263
- Nt();
264
- function _t(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
- return Ze[e.title] = e, Ke[e.title] = a, At[e.title] = r, Ht[e.title] = i, (l = {}) => {
266
- const o = Ot(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
262
+ const _t = {}, Bt = {};
263
+ Ht();
264
+ function Rt(t, e, n = /* @__PURE__ */ new Map(), a = (l, o, f) => o, r = {}, i = (l) => l) {
265
+ return Ke[e.title] = e, et[e.title] = a, _t[e.title] = r, Bt[e.title] = i, (l = {}) => {
266
+ const o = At(l, e, n), f = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
267
267
  return Object.assign(f, o);
268
268
  };
269
269
  }
270
- const Bt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-design.gitee.io/uploader.schema.json", Yt = "uploader", Wt = "A Farris Component", jt = "object", $t = {
270
+ const Yt = "https://json-schema.org/draft/2020-12/schema", Wt = "https://farris-design.gitee.io/uploader.schema.json", jt = "uploader", $t = "A Farris Component", qt = "object", Ut = {
271
271
  id: {
272
272
  description: "The unique identifier for uploader",
273
273
  type: "string"
@@ -319,28 +319,28 @@ const Bt = "https://json-schema.org/draft/2020-12/schema", Rt = "https://farris-
319
319
  type: "boolean",
320
320
  default: !0
321
321
  }
322
- }, qt = [
322
+ }, Lt = [
323
323
  "id",
324
324
  "type"
325
- ], Ut = {
326
- $schema: Bt,
327
- $id: Rt,
328
- title: Yt,
329
- description: Wt,
330
- type: jt,
331
- properties: $t,
332
- required: qt
325
+ ], zt = {
326
+ $schema: Yt,
327
+ $id: Wt,
328
+ title: jt,
329
+ description: $t,
330
+ type: qt,
331
+ properties: Ut,
332
+ required: Lt
333
333
  };
334
- function Lt(t, e) {
334
+ function Qt(t, e) {
335
335
  return { customClass: e.class, customStyle: e.style };
336
336
  }
337
- const zt = /* @__PURE__ */ new Map([
338
- ["appearance", Lt]
337
+ const Vt = /* @__PURE__ */ new Map([
338
+ ["appearance", Qt]
339
339
  ]);
340
- function Qt(t, e, n) {
340
+ function It(t, e, n) {
341
341
  return e;
342
342
  }
343
- const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
343
+ const Xt = "uploader", Gt = "A Farris Component", Jt = "object", Zt = {
344
344
  basic: {
345
345
  description: "Basic Infomation",
346
346
  title: "基本信息",
@@ -545,11 +545,11 @@ const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
545
545
  }
546
546
  }
547
547
  }
548
- }, Jt = {
549
- title: Vt,
550
- description: It,
551
- type: Xt,
552
- categories: Gt
548
+ }, Kt = {
549
+ title: Xt,
550
+ description: Gt,
551
+ type: Jt,
552
+ categories: Zt
553
553
  }, He = {
554
554
  /** 内容区域填充 */
555
555
  contentFill: { type: Boolean, default: !1 },
@@ -614,8 +614,8 @@ const Vt = "uploader", It = "A Farris Component", Xt = "object", Gt = {
614
614
  * 提示服务注入的Token
615
615
  */
616
616
  notifyServiceToken: { type: String, default: "" }
617
- }, et = _t(He, Ut, zt, Qt, Jt), Zt = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, Kt = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
618
- class en {
617
+ }, tt = Rt(He, zt, Vt, It, Kt), en = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, tn = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
618
+ class nn {
619
619
  constructor() {
620
620
  z(this, "regexes", {
621
621
  YEAR: "[1-9]\\d{3}",
@@ -700,10 +700,10 @@ class en {
700
700
  return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (n, a) => this.regexes[a]), new RegExp(e, "i");
701
701
  }
702
702
  getMonthByName(e) {
703
- return Zt[String(e).slice(0, 3).toLowerCase()];
703
+ return en[String(e).slice(0, 3).toLowerCase()];
704
704
  }
705
705
  getWeekdayByName(e) {
706
- return Kt[String(e).slice(0, 3).toLowerCase()];
706
+ return tn[String(e).slice(0, 3).toLowerCase()];
707
707
  }
708
708
  parse(e) {
709
709
  if (!isNaN(Number(e)))
@@ -744,20 +744,20 @@ function I(t) {
744
744
  function ae(t, e) {
745
745
  return t instanceof Date ? new t.constructor(e) : new Date(e);
746
746
  }
747
- const tt = 6048e5, tn = 864e5, nt = 6e4, at = 36e5;
748
- let nn = {};
749
- function Me() {
750
- return nn;
747
+ const nt = 6048e5, an = 864e5, at = 6e4, rt = 36e5;
748
+ let rn = {};
749
+ function Te() {
750
+ return rn;
751
751
  }
752
752
  function pe(t, e) {
753
753
  var o, f, u, d;
754
- const n = Me(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = I(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
754
+ const n = Te(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = I(t), i = r.getDay(), l = (i < a ? 7 : 0) + i - a;
755
755
  return r.setDate(r.getDate() - l), r.setHours(0, 0, 0, 0), r;
756
756
  }
757
757
  function xe(t) {
758
758
  return pe(t, { weekStartsOn: 1 });
759
759
  }
760
- function rt(t) {
760
+ function it(t) {
761
761
  const e = I(t), n = e.getFullYear(), a = ae(t, 0);
762
762
  a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
763
763
  const r = xe(a), i = ae(t, 0);
@@ -765,11 +765,11 @@ function rt(t) {
765
765
  const l = xe(i);
766
766
  return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= l.getTime() ? n : n - 1;
767
767
  }
768
- function Ye(t) {
768
+ function We(t) {
769
769
  const e = I(t);
770
770
  return e.setHours(0, 0, 0, 0), e;
771
771
  }
772
- function We(t) {
772
+ function je(t) {
773
773
  const e = I(t), n = new Date(
774
774
  Date.UTC(
775
775
  e.getFullYear(),
@@ -783,28 +783,28 @@ function We(t) {
783
783
  );
784
784
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
785
785
  }
786
- function an(t, e) {
787
- const n = Ye(t), a = Ye(e), r = +n - We(n), i = +a - We(a);
788
- return Math.round((r - i) / tn);
786
+ function sn(t, e) {
787
+ const n = We(t), a = We(e), r = +n - je(n), i = +a - je(a);
788
+ return Math.round((r - i) / an);
789
789
  }
790
- function rn(t) {
791
- const e = rt(t), n = ae(t, 0);
790
+ function on(t) {
791
+ const e = it(t), n = ae(t, 0);
792
792
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), xe(n);
793
793
  }
794
- function sn(t) {
794
+ function ln(t) {
795
795
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
796
796
  }
797
- function it(t) {
798
- if (!sn(t) && typeof t != "number")
797
+ function st(t) {
798
+ if (!ln(t) && typeof t != "number")
799
799
  return !1;
800
800
  const e = I(t);
801
801
  return !isNaN(Number(e));
802
802
  }
803
- function on(t) {
803
+ function un(t) {
804
804
  const e = I(t), n = ae(t, 0);
805
805
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
806
806
  }
807
- const ln = {
807
+ const cn = {
808
808
  lessThanXSeconds: {
809
809
  one: "less than a second",
810
810
  other: "less than {{count}} seconds"
@@ -866,9 +866,9 @@ const ln = {
866
866
  one: "almost 1 year",
867
867
  other: "almost {{count}} years"
868
868
  }
869
- }, un = (t, e, n) => {
869
+ }, dn = (t, e, n) => {
870
870
  let a;
871
- const r = ln[t];
871
+ const r = cn[t];
872
872
  return typeof r == "string" ? a = r : e === 1 ? a = r.one : a = r.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
873
873
  };
874
874
  function Se(t) {
@@ -877,42 +877,42 @@ function Se(t) {
877
877
  return t.formats[n] || t.formats[t.defaultWidth];
878
878
  };
879
879
  }
880
- const cn = {
880
+ const fn = {
881
881
  full: "EEEE, MMMM do, y",
882
882
  long: "MMMM do, y",
883
883
  medium: "MMM d, y",
884
884
  short: "MM/dd/yyyy"
885
- }, dn = {
885
+ }, pn = {
886
886
  full: "h:mm:ss a zzzz",
887
887
  long: "h:mm:ss a z",
888
888
  medium: "h:mm:ss a",
889
889
  short: "h:mm a"
890
- }, fn = {
890
+ }, mn = {
891
891
  full: "{{date}} 'at' {{time}}",
892
892
  long: "{{date}} 'at' {{time}}",
893
893
  medium: "{{date}}, {{time}}",
894
894
  short: "{{date}}, {{time}}"
895
- }, pn = {
895
+ }, hn = {
896
896
  date: Se({
897
- formats: cn,
897
+ formats: fn,
898
898
  defaultWidth: "full"
899
899
  }),
900
900
  time: Se({
901
- formats: dn,
901
+ formats: pn,
902
902
  defaultWidth: "full"
903
903
  }),
904
904
  dateTime: Se({
905
- formats: fn,
905
+ formats: mn,
906
906
  defaultWidth: "full"
907
907
  })
908
- }, mn = {
908
+ }, gn = {
909
909
  lastWeek: "'last' eeee 'at' p",
910
910
  yesterday: "'yesterday at' p",
911
911
  today: "'today at' p",
912
912
  tomorrow: "'tomorrow at' p",
913
913
  nextWeek: "eeee 'at' p",
914
914
  other: "P"
915
- }, hn = (t, e, n, a) => mn[t];
915
+ }, vn = (t, e, n, a) => gn[t];
916
916
  function ce(t) {
917
917
  return (e, n) => {
918
918
  const a = n != null && n.context ? String(n.context) : "standalone";
@@ -928,15 +928,15 @@ function ce(t) {
928
928
  return r[i];
929
929
  };
930
930
  }
931
- const gn = {
931
+ const wn = {
932
932
  narrow: ["B", "A"],
933
933
  abbreviated: ["BC", "AD"],
934
934
  wide: ["Before Christ", "Anno Domini"]
935
- }, vn = {
935
+ }, yn = {
936
936
  narrow: ["1", "2", "3", "4"],
937
937
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
938
938
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
939
- }, wn = {
939
+ }, bn = {
940
940
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
941
941
  abbreviated: [
942
942
  "Jan",
@@ -966,7 +966,7 @@ const gn = {
966
966
  "November",
967
967
  "December"
968
968
  ]
969
- }, yn = {
969
+ }, xn = {
970
970
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
971
971
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
972
972
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -979,7 +979,7 @@ const gn = {
979
979
  "Friday",
980
980
  "Saturday"
981
981
  ]
982
- }, bn = {
982
+ }, Dn = {
983
983
  narrow: {
984
984
  am: "a",
985
985
  pm: "p",
@@ -1010,7 +1010,7 @@ const gn = {
1010
1010
  evening: "evening",
1011
1011
  night: "night"
1012
1012
  }
1013
- }, xn = {
1013
+ }, Tn = {
1014
1014
  narrow: {
1015
1015
  am: "a",
1016
1016
  pm: "p",
@@ -1041,7 +1041,7 @@ const gn = {
1041
1041
  evening: "in the evening",
1042
1042
  night: "at night"
1043
1043
  }
1044
- }, Dn = (t, e) => {
1044
+ }, Mn = (t, e) => {
1045
1045
  const n = Number(t), a = n % 100;
1046
1046
  if (a > 20 || a < 10)
1047
1047
  switch (a % 10) {
@@ -1053,29 +1053,29 @@ const gn = {
1053
1053
  return n + "rd";
1054
1054
  }
1055
1055
  return n + "th";
1056
- }, Mn = {
1057
- ordinalNumber: Dn,
1056
+ }, Sn = {
1057
+ ordinalNumber: Mn,
1058
1058
  era: ce({
1059
- values: gn,
1059
+ values: wn,
1060
1060
  defaultWidth: "wide"
1061
1061
  }),
1062
1062
  quarter: ce({
1063
- values: vn,
1063
+ values: yn,
1064
1064
  defaultWidth: "wide",
1065
1065
  argumentCallback: (t) => t - 1
1066
1066
  }),
1067
1067
  month: ce({
1068
- values: wn,
1068
+ values: bn,
1069
1069
  defaultWidth: "wide"
1070
1070
  }),
1071
1071
  day: ce({
1072
- values: yn,
1072
+ values: xn,
1073
1073
  defaultWidth: "wide"
1074
1074
  }),
1075
1075
  dayPeriod: ce({
1076
- values: bn,
1076
+ values: Dn,
1077
1077
  defaultWidth: "wide",
1078
- formattingValues: xn,
1078
+ formattingValues: Tn,
1079
1079
  defaultFormattingWidth: "wide"
1080
1080
  })
1081
1081
  };
@@ -1084,9 +1084,9 @@ function de(t) {
1084
1084
  const a = n.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], i = e.match(r);
1085
1085
  if (!i)
1086
1086
  return null;
1087
- const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Sn(o, (h) => h.test(l)) : (
1087
+ const l = i[0], o = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(o) ? Cn(o, (h) => h.test(l)) : (
1088
1088
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
1089
- Tn(o, (h) => h.test(l))
1089
+ kn(o, (h) => h.test(l))
1090
1090
  );
1091
1091
  let u;
1092
1092
  u = t.valueCallback ? t.valueCallback(f) : f, u = n.valueCallback ? (
@@ -1097,17 +1097,17 @@ function de(t) {
1097
1097
  return { value: u, rest: d };
1098
1098
  };
1099
1099
  }
1100
- function Tn(t, e) {
1100
+ function kn(t, e) {
1101
1101
  for (const n in t)
1102
1102
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
1103
1103
  return n;
1104
1104
  }
1105
- function Sn(t, e) {
1105
+ function Cn(t, e) {
1106
1106
  for (let n = 0; n < t.length; n++)
1107
1107
  if (e(t[n]))
1108
1108
  return n;
1109
1109
  }
1110
- function kn(t) {
1110
+ function Pn(t) {
1111
1111
  return (e, n = {}) => {
1112
1112
  const a = e.match(t.matchPattern);
1113
1113
  if (!a) return null;
@@ -1119,23 +1119,23 @@ function kn(t) {
1119
1119
  return { value: l, rest: o };
1120
1120
  };
1121
1121
  }
1122
- const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1122
+ const En = /^(\d+)(th|st|nd|rd)?/i, Fn = /\d+/i, On = {
1123
1123
  narrow: /^(b|a)/i,
1124
1124
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1125
1125
  wide: /^(before christ|before common era|anno domini|common era)/i
1126
- }, Fn = {
1126
+ }, Nn = {
1127
1127
  any: [/^b/i, /^(a|c)/i]
1128
- }, On = {
1128
+ }, An = {
1129
1129
  narrow: /^[1234]/i,
1130
1130
  abbreviated: /^q[1234]/i,
1131
1131
  wide: /^[1234](th|st|nd|rd)? quarter/i
1132
- }, Nn = {
1132
+ }, Hn = {
1133
1133
  any: [/1/i, /2/i, /3/i, /4/i]
1134
- }, An = {
1134
+ }, _n = {
1135
1135
  narrow: /^[jfmasond]/i,
1136
1136
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1137
1137
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1138
- }, Hn = {
1138
+ }, Bn = {
1139
1139
  narrow: [
1140
1140
  /^j/i,
1141
1141
  /^f/i,
@@ -1164,18 +1164,18 @@ const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1164
1164
  /^n/i,
1165
1165
  /^d/i
1166
1166
  ]
1167
- }, _n = {
1167
+ }, Rn = {
1168
1168
  narrow: /^[smtwf]/i,
1169
1169
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1170
1170
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1171
1171
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1172
- }, Bn = {
1172
+ }, Yn = {
1173
1173
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1174
1174
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1175
- }, Rn = {
1175
+ }, Wn = {
1176
1176
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1177
1177
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1178
- }, Yn = {
1178
+ }, jn = {
1179
1179
  any: {
1180
1180
  am: /^a/i,
1181
1181
  pm: /^p/i,
@@ -1186,80 +1186,80 @@ const Cn = /^(\d+)(th|st|nd|rd)?/i, Pn = /\d+/i, En = {
1186
1186
  evening: /evening/i,
1187
1187
  night: /night/i
1188
1188
  }
1189
- }, Wn = {
1190
- ordinalNumber: kn({
1191
- matchPattern: Cn,
1192
- parsePattern: Pn,
1189
+ }, $n = {
1190
+ ordinalNumber: Pn({
1191
+ matchPattern: En,
1192
+ parsePattern: Fn,
1193
1193
  valueCallback: (t) => parseInt(t, 10)
1194
1194
  }),
1195
1195
  era: de({
1196
- matchPatterns: En,
1196
+ matchPatterns: On,
1197
1197
  defaultMatchWidth: "wide",
1198
- parsePatterns: Fn,
1198
+ parsePatterns: Nn,
1199
1199
  defaultParseWidth: "any"
1200
1200
  }),
1201
1201
  quarter: de({
1202
- matchPatterns: On,
1202
+ matchPatterns: An,
1203
1203
  defaultMatchWidth: "wide",
1204
- parsePatterns: Nn,
1204
+ parsePatterns: Hn,
1205
1205
  defaultParseWidth: "any",
1206
1206
  valueCallback: (t) => t + 1
1207
1207
  }),
1208
1208
  month: de({
1209
- matchPatterns: An,
1209
+ matchPatterns: _n,
1210
1210
  defaultMatchWidth: "wide",
1211
- parsePatterns: Hn,
1211
+ parsePatterns: Bn,
1212
1212
  defaultParseWidth: "any"
1213
1213
  }),
1214
1214
  day: de({
1215
- matchPatterns: _n,
1215
+ matchPatterns: Rn,
1216
1216
  defaultMatchWidth: "wide",
1217
- parsePatterns: Bn,
1217
+ parsePatterns: Yn,
1218
1218
  defaultParseWidth: "any"
1219
1219
  }),
1220
1220
  dayPeriod: de({
1221
- matchPatterns: Rn,
1221
+ matchPatterns: Wn,
1222
1222
  defaultMatchWidth: "any",
1223
- parsePatterns: Yn,
1223
+ parsePatterns: jn,
1224
1224
  defaultParseWidth: "any"
1225
1225
  })
1226
- }, jn = {
1226
+ }, qn = {
1227
1227
  code: "en-US",
1228
- formatDistance: un,
1229
- formatLong: pn,
1230
- formatRelative: hn,
1231
- localize: Mn,
1232
- match: Wn,
1228
+ formatDistance: dn,
1229
+ formatLong: hn,
1230
+ formatRelative: vn,
1231
+ localize: Sn,
1232
+ match: $n,
1233
1233
  options: {
1234
1234
  weekStartsOn: 0,
1235
1235
  firstWeekContainsDate: 1
1236
1236
  }
1237
1237
  };
1238
- function $n(t) {
1238
+ function Un(t) {
1239
1239
  const e = I(t);
1240
- return an(e, on(e)) + 1;
1240
+ return sn(e, un(e)) + 1;
1241
1241
  }
1242
- function qn(t) {
1243
- const e = I(t), n = +xe(e) - +rn(e);
1244
- return Math.round(n / tt) + 1;
1242
+ function Ln(t) {
1243
+ const e = I(t), n = +xe(e) - +on(e);
1244
+ return Math.round(n / nt) + 1;
1245
1245
  }
1246
- function st(t, e) {
1246
+ function ot(t, e) {
1247
1247
  var d, h, m, x;
1248
- const n = I(t), a = n.getFullYear(), r = Me(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = ae(t, 0);
1248
+ const n = I(t), a = n.getFullYear(), r = Te(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = ae(t, 0);
1249
1249
  l.setFullYear(a + 1, 0, i), l.setHours(0, 0, 0, 0);
1250
1250
  const o = pe(l, e), f = ae(t, 0);
1251
1251
  f.setFullYear(a, 0, i), f.setHours(0, 0, 0, 0);
1252
1252
  const u = pe(f, e);
1253
1253
  return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= u.getTime() ? a : a - 1;
1254
1254
  }
1255
- function Un(t, e) {
1255
+ function zn(t, e) {
1256
1256
  var o, f, u, d;
1257
- const n = Me(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = st(t, e), i = ae(t, 0);
1257
+ const n = Te(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = ot(t, e), i = ae(t, 0);
1258
1258
  return i.setFullYear(r, 0, a), i.setHours(0, 0, 0, 0), pe(i, e);
1259
1259
  }
1260
- function Ln(t, e) {
1261
- const n = I(t), a = +pe(n, e) - +Un(n, e);
1262
- return Math.round(a / tt) + 1;
1260
+ function Qn(t, e) {
1261
+ const n = I(t), a = +pe(n, e) - +zn(n, e);
1262
+ return Math.round(a / nt) + 1;
1263
1263
  }
1264
1264
  function P(t, e) {
1265
1265
  const n = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(e, "0");
@@ -1328,7 +1328,7 @@ const Z = {
1328
1328
  afternoon: "afternoon",
1329
1329
  evening: "evening",
1330
1330
  night: "night"
1331
- }, je = {
1331
+ }, $e = {
1332
1332
  // Era
1333
1333
  G: function(t, e, n) {
1334
1334
  const a = t.getFullYear() > 0 ? 1 : 0;
@@ -1354,7 +1354,7 @@ const Z = {
1354
1354
  },
1355
1355
  // Local week-numbering year
1356
1356
  Y: function(t, e, n, a) {
1357
- const r = st(t, a), i = r > 0 ? r : 1 - r;
1357
+ const r = ot(t, a), i = r > 0 ? r : 1 - r;
1358
1358
  if (e === "YY") {
1359
1359
  const l = i % 100;
1360
1360
  return P(l, 2);
@@ -1363,7 +1363,7 @@ const Z = {
1363
1363
  },
1364
1364
  // ISO week-numbering year
1365
1365
  R: function(t, e) {
1366
- const n = rt(t);
1366
+ const n = it(t);
1367
1367
  return P(n, e.length);
1368
1368
  },
1369
1369
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1486,12 +1486,12 @@ const Z = {
1486
1486
  },
1487
1487
  // Local week of year
1488
1488
  w: function(t, e, n, a) {
1489
- const r = Ln(t, a);
1489
+ const r = Qn(t, a);
1490
1490
  return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) : P(r, e.length);
1491
1491
  },
1492
1492
  // ISO week of year
1493
1493
  I: function(t, e, n) {
1494
- const a = qn(t);
1494
+ const a = Ln(t);
1495
1495
  return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) : P(a, e.length);
1496
1496
  },
1497
1497
  // Day of the month
@@ -1500,7 +1500,7 @@ const Z = {
1500
1500
  },
1501
1501
  // Day of year
1502
1502
  D: function(t, e, n) {
1503
- const a = $n(t);
1503
+ const a = Un(t);
1504
1504
  return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : P(a, e.length);
1505
1505
  },
1506
1506
  // Day of week
@@ -1754,7 +1754,7 @@ const Z = {
1754
1754
  return "Z";
1755
1755
  switch (e) {
1756
1756
  case "X":
1757
- return qe(a);
1757
+ return Ue(a);
1758
1758
  case "XXXX":
1759
1759
  case "XX":
1760
1760
  return te(a);
@@ -1769,7 +1769,7 @@ const Z = {
1769
1769
  const a = t.getTimezoneOffset();
1770
1770
  switch (e) {
1771
1771
  case "x":
1772
- return qe(a);
1772
+ return Ue(a);
1773
1773
  case "xxxx":
1774
1774
  case "xx":
1775
1775
  return te(a);
@@ -1786,7 +1786,7 @@ const Z = {
1786
1786
  case "O":
1787
1787
  case "OO":
1788
1788
  case "OOO":
1789
- return "GMT" + $e(a, ":");
1789
+ return "GMT" + qe(a, ":");
1790
1790
  case "OOOO":
1791
1791
  default:
1792
1792
  return "GMT" + te(a, ":");
@@ -1799,7 +1799,7 @@ const Z = {
1799
1799
  case "z":
1800
1800
  case "zz":
1801
1801
  case "zzz":
1802
- return "GMT" + $e(a, ":");
1802
+ return "GMT" + qe(a, ":");
1803
1803
  case "zzzz":
1804
1804
  default:
1805
1805
  return "GMT" + te(a, ":");
@@ -1816,18 +1816,18 @@ const Z = {
1816
1816
  return P(a, e.length);
1817
1817
  }
1818
1818
  };
1819
- function $e(t, e = "") {
1819
+ function qe(t, e = "") {
1820
1820
  const n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.trunc(a / 60), i = a % 60;
1821
1821
  return i === 0 ? n + String(r) : n + String(r) + e + P(i, 2);
1822
1822
  }
1823
- function qe(t, e) {
1823
+ function Ue(t, e) {
1824
1824
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + P(Math.abs(t) / 60, 2) : te(t, e);
1825
1825
  }
1826
1826
  function te(t, e = "") {
1827
1827
  const n = t > 0 ? "-" : "+", a = Math.abs(t), r = P(Math.trunc(a / 60), 2), i = P(a % 60, 2);
1828
1828
  return n + r + e + i;
1829
1829
  }
1830
- const Ue = (t, e) => {
1830
+ const Le = (t, e) => {
1831
1831
  switch (t) {
1832
1832
  case "P":
1833
1833
  return e.date({ width: "short" });
@@ -1839,7 +1839,7 @@ const Ue = (t, e) => {
1839
1839
  default:
1840
1840
  return e.date({ width: "full" });
1841
1841
  }
1842
- }, ot = (t, e) => {
1842
+ }, lt = (t, e) => {
1843
1843
  switch (t) {
1844
1844
  case "p":
1845
1845
  return e.time({ width: "short" });
@@ -1851,10 +1851,10 @@ const Ue = (t, e) => {
1851
1851
  default:
1852
1852
  return e.time({ width: "full" });
1853
1853
  }
1854
- }, zn = (t, e) => {
1854
+ }, Vn = (t, e) => {
1855
1855
  const n = t.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1856
1856
  if (!r)
1857
- return Ue(t, e);
1857
+ return Le(t, e);
1858
1858
  let i;
1859
1859
  switch (a) {
1860
1860
  case "P":
@@ -1871,47 +1871,47 @@ const Ue = (t, e) => {
1871
1871
  i = e.dateTime({ width: "full" });
1872
1872
  break;
1873
1873
  }
1874
- return i.replace("{{date}}", Ue(a, e)).replace("{{time}}", ot(r, e));
1875
- }, Qn = {
1876
- p: ot,
1877
- P: zn
1878
- }, Vn = /^D+$/, In = /^Y+$/, Xn = ["D", "DD", "YY", "YYYY"];
1879
- function Gn(t) {
1880
- return Vn.test(t);
1874
+ return i.replace("{{date}}", Le(a, e)).replace("{{time}}", lt(r, e));
1875
+ }, In = {
1876
+ p: lt,
1877
+ P: Vn
1878
+ }, Xn = /^D+$/, Gn = /^Y+$/, Jn = ["D", "DD", "YY", "YYYY"];
1879
+ function Zn(t) {
1880
+ return Xn.test(t);
1881
1881
  }
1882
- function Jn(t) {
1883
- return In.test(t);
1882
+ function Kn(t) {
1883
+ return Gn.test(t);
1884
1884
  }
1885
- function Zn(t, e, n) {
1886
- const a = Kn(t, e, n);
1887
- if (console.warn(a), Xn.includes(t)) throw new RangeError(a);
1885
+ function ea(t, e, n) {
1886
+ const a = ta(t, e, n);
1887
+ if (console.warn(a), Jn.includes(t)) throw new RangeError(a);
1888
1888
  }
1889
- function Kn(t, e, n) {
1889
+ function ta(t, e, n) {
1890
1890
  const a = t[0] === "Y" ? "years" : "days of the month";
1891
1891
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1892
1892
  }
1893
- const ea = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ta = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, na = /^'([^]*?)'?$/, aa = /''/g, ra = /[a-zA-Z]/;
1893
+ const na = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, aa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ra = /^'([^]*?)'?$/, ia = /''/g, sa = /[a-zA-Z]/;
1894
1894
  function we(t, e, n) {
1895
1895
  var d, h, m, x;
1896
- const a = Me(), r = a.locale ?? jn, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((x = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = I(t);
1897
- if (!it(o))
1896
+ const a = Te(), r = a.locale ?? qn, i = a.firstWeekContainsDate ?? ((h = (d = a.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = a.weekStartsOn ?? ((x = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = I(t);
1897
+ if (!st(o))
1898
1898
  throw new RangeError("Invalid time value");
1899
- let f = e.match(ta).map((g) => {
1899
+ let f = e.match(aa).map((g) => {
1900
1900
  const b = g[0];
1901
1901
  if (b === "p" || b === "P") {
1902
- const y = Qn[b];
1902
+ const y = In[b];
1903
1903
  return y(g, r.formatLong);
1904
1904
  }
1905
1905
  return g;
1906
- }).join("").match(ea).map((g) => {
1906
+ }).join("").match(na).map((g) => {
1907
1907
  if (g === "''")
1908
1908
  return { isToken: !1, value: "'" };
1909
1909
  const b = g[0];
1910
1910
  if (b === "'")
1911
- return { isToken: !1, value: ia(g) };
1912
- if (je[b])
1911
+ return { isToken: !1, value: oa(g) };
1912
+ if ($e[b])
1913
1913
  return { isToken: !0, value: g };
1914
- if (b.match(ra))
1914
+ if (b.match(sa))
1915
1915
  throw new RangeError(
1916
1916
  "Format string contains an unescaped latin alphabet character `" + b + "`"
1917
1917
  );
@@ -1926,30 +1926,30 @@ function we(t, e, n) {
1926
1926
  return f.map((g) => {
1927
1927
  if (!g.isToken) return g.value;
1928
1928
  const b = g.value;
1929
- (Jn(b) || Gn(b)) && Zn(b, e, String(t));
1930
- const y = je[b[0]];
1929
+ (Kn(b) || Zn(b)) && ea(b, e, String(t));
1930
+ const y = $e[b[0]];
1931
1931
  return y(o, b, r.localize, u);
1932
1932
  }).join("");
1933
1933
  }
1934
- function ia(t) {
1935
- const e = t.match(na);
1936
- return e ? e[1].replace(aa, "'") : t;
1934
+ function oa(t) {
1935
+ const e = t.match(ra);
1936
+ return e ? e[1].replace(ia, "'") : t;
1937
1937
  }
1938
1938
  function ke(t, e) {
1939
- const a = ua(t);
1939
+ const a = da(t);
1940
1940
  let r;
1941
1941
  if (a.date) {
1942
- const f = ca(a.date, 2);
1943
- r = da(f.restDateString, f.year);
1942
+ const f = fa(a.date, 2);
1943
+ r = pa(f.restDateString, f.year);
1944
1944
  }
1945
1945
  if (!r || isNaN(r.getTime()))
1946
1946
  return /* @__PURE__ */ new Date(NaN);
1947
1947
  const i = r.getTime();
1948
1948
  let l = 0, o;
1949
- if (a.time && (l = fa(a.time), isNaN(l)))
1949
+ if (a.time && (l = ma(a.time), isNaN(l)))
1950
1950
  return /* @__PURE__ */ new Date(NaN);
1951
1951
  if (a.timezone) {
1952
- if (o = pa(a.timezone), isNaN(o))
1952
+ if (o = ha(a.timezone), isNaN(o))
1953
1953
  return /* @__PURE__ */ new Date(NaN);
1954
1954
  } else {
1955
1955
  const f = new Date(i + l), u = /* @__PURE__ */ new Date(0);
@@ -1970,8 +1970,8 @@ const ye = {
1970
1970
  dateTimeDelimiter: /[T ]/,
1971
1971
  timeZoneDelimiter: /[Z ]/i,
1972
1972
  timezone: /([Z+-].*)$/
1973
- }, sa = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, oa = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, la = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1974
- function ua(t) {
1973
+ }, la = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ua = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ca = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1974
+ function da(t) {
1975
1975
  const e = {}, n = t.split(ye.dateTimeDelimiter);
1976
1976
  let a;
1977
1977
  if (n.length > 2)
@@ -1985,7 +1985,7 @@ function ua(t) {
1985
1985
  }
1986
1986
  return e;
1987
1987
  }
1988
- function ca(t, e) {
1988
+ function fa(t, e) {
1989
1989
  const n = new RegExp(
1990
1990
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1991
1991
  ), a = t.match(n);
@@ -1996,64 +1996,64 @@ function ca(t, e) {
1996
1996
  restDateString: t.slice((a[1] || a[2]).length)
1997
1997
  };
1998
1998
  }
1999
- function da(t, e) {
1999
+ function pa(t, e) {
2000
2000
  if (e === null) return /* @__PURE__ */ new Date(NaN);
2001
- const n = t.match(sa);
2001
+ const n = t.match(la);
2002
2002
  if (!n) return /* @__PURE__ */ new Date(NaN);
2003
2003
  const a = !!n[4], r = fe(n[1]), i = fe(n[2]) - 1, l = fe(n[3]), o = fe(n[4]), f = fe(n[5]) - 1;
2004
2004
  if (a)
2005
- return wa(e, o, f) ? ma(e, o, f) : /* @__PURE__ */ new Date(NaN);
2005
+ return ba(e, o, f) ? ga(e, o, f) : /* @__PURE__ */ new Date(NaN);
2006
2006
  {
2007
2007
  const u = /* @__PURE__ */ new Date(0);
2008
- return !ga(e, i, l) || !va(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2008
+ return !wa(e, i, l) || !ya(e, r) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(r, l)), u);
2009
2009
  }
2010
2010
  }
2011
2011
  function fe(t) {
2012
2012
  return t ? parseInt(t) : 1;
2013
2013
  }
2014
- function fa(t) {
2015
- const e = t.match(oa);
2014
+ function ma(t) {
2015
+ const e = t.match(ua);
2016
2016
  if (!e) return NaN;
2017
2017
  const n = Ce(e[1]), a = Ce(e[2]), r = Ce(e[3]);
2018
- return ya(n, a, r) ? n * at + a * nt + r * 1e3 : NaN;
2018
+ return xa(n, a, r) ? n * rt + a * at + r * 1e3 : NaN;
2019
2019
  }
2020
2020
  function Ce(t) {
2021
2021
  return t && parseFloat(t.replace(",", ".")) || 0;
2022
2022
  }
2023
- function pa(t) {
2023
+ function ha(t) {
2024
2024
  if (t === "Z") return 0;
2025
- const e = t.match(la);
2025
+ const e = t.match(ca);
2026
2026
  if (!e) return 0;
2027
2027
  const n = e[1] === "+" ? -1 : 1, a = parseInt(e[2]), r = e[3] && parseInt(e[3]) || 0;
2028
- return ba(a, r) ? n * (a * at + r * nt) : NaN;
2028
+ return Da(a, r) ? n * (a * rt + r * at) : NaN;
2029
2029
  }
2030
- function ma(t, e, n) {
2030
+ function ga(t, e, n) {
2031
2031
  const a = /* @__PURE__ */ new Date(0);
2032
2032
  a.setUTCFullYear(t, 0, 4);
2033
2033
  const r = a.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - r;
2034
2034
  return a.setUTCDate(a.getUTCDate() + i), a;
2035
2035
  }
2036
- const ha = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2037
- function lt(t) {
2036
+ const va = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2037
+ function ut(t) {
2038
2038
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
2039
2039
  }
2040
- function ga(t, e, n) {
2041
- return e >= 0 && e <= 11 && n >= 1 && n <= (ha[e] || (lt(t) ? 29 : 28));
2040
+ function wa(t, e, n) {
2041
+ return e >= 0 && e <= 11 && n >= 1 && n <= (va[e] || (ut(t) ? 29 : 28));
2042
2042
  }
2043
- function va(t, e) {
2044
- return e >= 1 && e <= (lt(t) ? 366 : 365);
2043
+ function ya(t, e) {
2044
+ return e >= 1 && e <= (ut(t) ? 366 : 365);
2045
2045
  }
2046
- function wa(t, e, n) {
2046
+ function ba(t, e, n) {
2047
2047
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
2048
2048
  }
2049
- function ya(t, e, n) {
2049
+ function xa(t, e, n) {
2050
2050
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
2051
2051
  }
2052
- function ba(t, e) {
2052
+ function Da(t, e) {
2053
2053
  return e >= 0 && e <= 59;
2054
2054
  }
2055
- function xa() {
2056
- const t = new en();
2055
+ function Ta() {
2056
+ const t = new nn();
2057
2057
  function e(n, a) {
2058
2058
  var i;
2059
2059
  if (!n || typeof n == "string" && n.indexOf("0001") === 0)
@@ -2061,7 +2061,7 @@ function xa() {
2061
2061
  if (n instanceof Date)
2062
2062
  return we(n, a);
2063
2063
  let r = ke(n);
2064
- if (r == "Invalid Date" && (r = t.create(n) || new Date(n)), it(r))
2064
+ if (r == "Invalid Date" && (r = t.create(n) || new Date(n)), st(r))
2065
2065
  return r = ke(we(r, "yyyy-MM-dd HH:mm:ss")), we(r, a);
2066
2066
  if (a.indexOf("HH") === 0 || a.indexOf("hh") === 0) {
2067
2067
  const l = (i = n.match(/\d*/g)) == null ? void 0 : i.filter((f) => f !== "").join(":");
@@ -2075,8 +2075,8 @@ function xa() {
2075
2075
  formatTo: e
2076
2076
  };
2077
2077
  }
2078
- const Da = ["moz", "ms", "webkit"];
2079
- function Ma() {
2078
+ const Ma = ["moz", "ms", "webkit"];
2079
+ function Sa() {
2080
2080
  let t = 0;
2081
2081
  return (e) => {
2082
2082
  const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
@@ -2085,23 +2085,23 @@ function Ma() {
2085
2085
  return t = n + a, r;
2086
2086
  };
2087
2087
  }
2088
- function Ta() {
2088
+ function ka() {
2089
2089
  if (typeof window > "u")
2090
2090
  return () => 0;
2091
2091
  if (window.requestAnimationFrame)
2092
2092
  return window.requestAnimationFrame.bind(window);
2093
- const t = Da.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2094
- return t ? window[`${t}RequestAnimationFrame`] : Ma();
2093
+ const t = Ma.filter((e) => `${e}RequestAnimationFrame` in window)[0];
2094
+ return t ? window[`${t}RequestAnimationFrame`] : Sa();
2095
2095
  }
2096
- Ta();
2097
- const Sa = (t) => {
2096
+ ka();
2097
+ const Ca = (t) => {
2098
2098
  const e = t;
2099
2099
  return e.install = function(n) {
2100
2100
  n.component(e.name, t);
2101
2101
  }, t;
2102
2102
  };
2103
2103
  var X = /* @__PURE__ */ ((t) => (t[t.Queue = 0] = "Queue", t[t.Uploading = 1] = "Uploading", t[t.Done = 2] = "Done", t[t.Cancelled = 3] = "Cancelled", t[t.Remove = 4] = "Remove", t[t.Error = 5] = "Error", t))(X || {});
2104
- class ka {
2104
+ class Pa {
2105
2105
  constructor(e = {}, n = {}) {
2106
2106
  /**
2107
2107
  * 上传配置
@@ -2116,16 +2116,16 @@ class ka {
2116
2116
  }
2117
2117
  }
2118
2118
  function _e(t, e) {
2119
- const { formatTo: n } = xa();
2119
+ const { formatTo: n } = Ta();
2120
2120
  return n(t, e);
2121
2121
  }
2122
- function Le(t, e) {
2122
+ function ze(t, e) {
2123
2123
  if (!e)
2124
2124
  return "";
2125
2125
  let n = "";
2126
2126
  return t.indexOf(".") === -1 && e.hasOwnProperty(t) ? n = e[t] : n = t.split(".").reduce((a, r) => a ? a[r] : null, e), n;
2127
2127
  }
2128
- function Ca(t) {
2128
+ function Ea(t) {
2129
2129
  return (e, n) => {
2130
2130
  if (!e.hasOwnProperty(t) || e[t] === void 0 || e[t] === null)
2131
2131
  return 1;
@@ -2133,16 +2133,16 @@ function Ca(t) {
2133
2133
  return -1;
2134
2134
  if (t !== "createTime") {
2135
2135
  let i = "", l = "";
2136
- return t.indexOf(".") > -1 ? (i = Le(t, e), l = Le(t, n)) : (i = e[t], l = n[t]), i > l ? 1 : -1;
2136
+ return t.indexOf(".") > -1 ? (i = ze(t, e), l = ze(t, n)) : (i = e[t], l = n[t]), i > l ? 1 : -1;
2137
2137
  }
2138
2138
  const a = new Date(e[t]), r = new Date(n[t]);
2139
2139
  return a.getTime() > r.getTime() ? -1 : 1;
2140
2140
  };
2141
2141
  }
2142
- function ut(t) {
2142
+ function ct(t) {
2143
2143
  return (t || []).findIndex((n) => n === "*") === -1;
2144
2144
  }
2145
- function ct(t) {
2145
+ function dt(t) {
2146
2146
  return t !== "0 Byte";
2147
2147
  }
2148
2148
  function me(t) {
@@ -2151,10 +2151,10 @@ function me(t) {
2151
2151
  const e = 1024, n = ["Bytes", "KB", "MB", "GB", "TB", "PB"], a = Math.floor(Math.log(t) / Math.log(e));
2152
2152
  return parseFloat((t / e ** a).toFixed(2)) + " " + n[a];
2153
2153
  }
2154
- function dt(t, e) {
2154
+ function ft(t, e) {
2155
2155
  return t && (t.hasOwnProperty("allowedContentTypes") && (e.allowedContentTypes = t.allowedContentTypes || ["*"], e.allowedContentTypes = e.allowedContentTypes && e.allowedContentTypes.length > 0 ? e.allowedContentTypes : ["*"]), t.hasOwnProperty("maxUploads") && (e.maxUploads = t.maxUploads || 0), t.hasOwnProperty("maxFileSize") && (e.maxFileSize = me(1024 * 1024 * (parseInt(String(t.maxFileSize), 10) || 1)))), e;
2156
2156
  }
2157
- function ze(t) {
2157
+ function Qe(t) {
2158
2158
  let e = "ffilepreview--filetype";
2159
2159
  if (!t)
2160
2160
  return e + "-any";
@@ -2201,7 +2201,7 @@ function ze(t) {
2201
2201
  }
2202
2202
  return e;
2203
2203
  }
2204
- function Qe(t) {
2204
+ function Ve(t) {
2205
2205
  var e;
2206
2206
  if (t.type === "done")
2207
2207
  return 100;
@@ -2214,15 +2214,15 @@ function Qe(t) {
2214
2214
  }
2215
2215
  return 5;
2216
2216
  }
2217
- function Pa(t) {
2217
+ function Fa(t) {
2218
2218
  let e = t;
2219
2219
  return t ? (typeof t == "string" && (e = parseInt(t, 10)), me(e)) : "0 Byte";
2220
2220
  }
2221
- const Ea = () => Math.random().toString(36).substring(7);
2222
- function Ve(t, e) {
2221
+ const Oa = () => Math.random().toString(36).substring(7);
2222
+ function Ie(t, e) {
2223
2223
  return {
2224
2224
  fileIndex: e,
2225
- id: Ea(),
2225
+ id: Oa(),
2226
2226
  name: t.name,
2227
2227
  size: t.size,
2228
2228
  type: t.type,
@@ -2243,7 +2243,7 @@ function Ve(t, e) {
2243
2243
  nativeFile: t
2244
2244
  };
2245
2245
  }
2246
- function Ie(t) {
2246
+ function Xe(t) {
2247
2247
  const e = [];
2248
2248
  return t.forEach((n) => {
2249
2249
  const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
@@ -2254,14 +2254,14 @@ function Ie(t) {
2254
2254
  e.push(a);
2255
2255
  }), e;
2256
2256
  }
2257
- function Fa(t, e) {
2257
+ function Na(t, e) {
2258
2258
  return t ? e <= t * 1024 * 1024 : !0;
2259
2259
  }
2260
- function Oa(t) {
2260
+ function Aa(t) {
2261
2261
  return t.find((e) => e === "*") !== void 0;
2262
2262
  }
2263
- function Na(t, e) {
2264
- if (!t || t.length === 0 || Oa(t))
2263
+ function Ha(t, e) {
2264
+ if (!t || t.length === 0 || Aa(t))
2265
2265
  return !0;
2266
2266
  if (e.lastIndexOf(".") < 0)
2267
2267
  return !1;
@@ -2270,26 +2270,26 @@ function Na(t, e) {
2270
2270
  (a) => a.toLowerCase() === n.toLowerCase()
2271
2271
  ) > -1;
2272
2272
  }
2273
- function Aa(t) {
2273
+ function _a(t) {
2274
2274
  if (t)
2275
2275
  return t.split(`
2276
2276
  `).map((e) => e.split(/: */, 2)).filter((e) => e[0]).reduce((e, n) => (e[n[0]] = n[1], e), {});
2277
2277
  }
2278
- function Xe(t) {
2278
+ function Ge(t) {
2279
2279
  return new Date(t * 1e3).toISOString().substr(11, 8);
2280
2280
  }
2281
- class Ha extends ka {
2281
+ class Ba extends Pa {
2282
2282
  upload(e, n, a, r) {
2283
2283
  const i = e[0];
2284
2284
  return new Promise((l, o) => {
2285
2285
  var k, A;
2286
2286
  const f = n.url || a.url || "", u = n.method || "POST", d = n.data || {}, h = n.headers || {}, m = new XMLHttpRequest(), x = (/* @__PURE__ */ new Date()).getTime();
2287
2287
  let g = ((k = i.progress) == null ? void 0 : k.data) && i.progress.data.startTime || x, b = 0, y = null;
2288
- m.upload.addEventListener("progress", (M) => {
2288
+ m.upload.addEventListener("progress", (T) => {
2289
2289
  var O;
2290
- if (M.lengthComputable) {
2291
- const H = Math.round(M.loaded * 100 / M.total), T = (/* @__PURE__ */ new Date()).getTime() - x;
2292
- b = Math.round(M.loaded / T * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((M.total - M.loaded) / b), i.progress = {
2290
+ if (T.lengthComputable) {
2291
+ const H = Math.round(T.loaded * 100 / T.total), M = (/* @__PURE__ */ new Date()).getTime() - x;
2292
+ b = Math.round(T.loaded / M * 1e3), g = ((O = i.progress) == null ? void 0 : O.data) && i.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((T.total - T.loaded) / b), i.progress = {
2293
2293
  status: X.Uploading,
2294
2294
  data: {
2295
2295
  percentage: H,
@@ -2298,25 +2298,25 @@ class Ha extends ka {
2298
2298
  startTime: g,
2299
2299
  endTime: null,
2300
2300
  eta: y,
2301
- etaHuman: Xe(y)
2301
+ etaHuman: Ge(y)
2302
2302
  }
2303
2303
  }, r({ type: "uploading", files: [i] });
2304
2304
  }
2305
- }, !1), m.upload.addEventListener("error", (M) => {
2306
- o(M);
2305
+ }, !1), m.upload.addEventListener("error", (T) => {
2306
+ o(T);
2307
2307
  }), m.onreadystatechange = () => {
2308
2308
  if (m.readyState === XMLHttpRequest.DONE) {
2309
- const M = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2309
+ const T = Math.round(i.size / ((/* @__PURE__ */ new Date()).getTime() - g) * 1e3);
2310
2310
  i.progress = {
2311
2311
  status: X.Done,
2312
2312
  data: {
2313
2313
  percentage: 100,
2314
- speed: M,
2315
- speedHuman: `${me(M)}/s`,
2314
+ speed: T,
2315
+ speedHuman: `${me(T)}/s`,
2316
2316
  startTime: g,
2317
2317
  endTime: (/* @__PURE__ */ new Date()).getTime(),
2318
2318
  eta: y,
2319
- etaHuman: Xe(y || 0)
2319
+ etaHuman: Ge(y || 0)
2320
2320
  }
2321
2321
  }, i.responseStatus = m.status;
2322
2322
  try {
@@ -2324,19 +2324,19 @@ class Ha extends ka {
2324
2324
  } catch {
2325
2325
  i.response = m.response;
2326
2326
  }
2327
- i.responseHeaders = Aa(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2327
+ i.responseHeaders = _a(m.getAllResponseHeaders()), l({ type: "done", files: [i] });
2328
2328
  }
2329
2329
  }, m.open(u, f, !0), m.withCredentials = !!n.withCredentials;
2330
2330
  try {
2331
- const M = i.nativeFile;
2331
+ const T = i.nativeFile;
2332
2332
  Object.keys(h).forEach((H) => m.setRequestHeader(H, h[H]));
2333
2333
  let O;
2334
2334
  n.includeWebKitFormBoundary !== !1 ? (Object.keys(d).forEach((H) => {
2335
- var T;
2336
- return (T = i.form) == null ? void 0 : T.append(H, d[H]);
2337
- }), (A = i.form) == null || A.append(n.fieldName || "file", M, M.name), O = i.form) : O = M, m.send(O);
2338
- } catch (M) {
2339
- o(M);
2335
+ var M;
2336
+ return (M = i.form) == null ? void 0 : M.append(H, d[H]);
2337
+ }), (A = i.form) == null || A.append(n.fieldName || "file", T, T.name), O = i.form) : O = T, m.send(O);
2338
+ } catch (T) {
2339
+ o(T);
2340
2340
  }
2341
2341
  return () => {
2342
2342
  m.abort();
@@ -2350,7 +2350,7 @@ class Ha extends ka {
2350
2350
  });
2351
2351
  }
2352
2352
  }
2353
- const _a = {
2353
+ const Ra = {
2354
2354
  showCloseButton: { type: Boolean, default: !0 },
2355
2355
  position: { type: String, default: "top-center" },
2356
2356
  timeout: { type: Number, default: 3e3 },
@@ -2362,13 +2362,13 @@ const _a = {
2362
2362
  id: { type: String },
2363
2363
  animate: { type: String, default: "fadeIn" },
2364
2364
  options: { type: Object }
2365
- }, Ba = {
2365
+ }, Ya = {
2366
2366
  showCloseButton: { type: Boolean, default: !0 },
2367
2367
  animate: { type: String, default: "fadeIn" },
2368
2368
  options: { type: Object }
2369
2369
  }, Ee = /* @__PURE__ */ re({
2370
2370
  name: "Toast",
2371
- props: Ba,
2371
+ props: Ya,
2372
2372
  emits: ["close", "click"],
2373
2373
  setup: (t, e) => {
2374
2374
  const n = N(t.animate), a = "fadeOut", r = $(() => t.options), i = N(!1), l = $(() => {
@@ -2378,10 +2378,10 @@ const _a = {
2378
2378
  };
2379
2379
  return k[t.animate] = !1, k[a] = i.value, k[r.value.type] = !0, r.value.theme && (k[r.value.theme] = !0), k;
2380
2380
  }), o = $(() => {
2381
- const M = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2381
+ const T = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, O = {
2382
2382
  "f-icon": !0
2383
2383
  };
2384
- return O[M] = !0, O;
2384
+ return O[T] = !0, O;
2385
2385
  }), f = $(() => r.value.title || r.value.message), u = $(() => r.value.title && r.value.message), d = $(() => !r.value.title && r.value.message), h = $(() => t.showCloseButton), m = $(() => !!r.value.buttons || !!e.slots.default);
2386
2386
  function x(k) {
2387
2387
  k.stopPropagation(), k.preventDefault(), i.value = !1, setTimeout(() => {
@@ -2402,7 +2402,7 @@ const _a = {
2402
2402
  class: "after-toast-msg text-right"
2403
2403
  }, [!e.slots.default && ((k = r.value.buttons) == null ? void 0 : k.map((A) => s("span", {
2404
2404
  class: b(A),
2405
- onClick: (M) => void 0
2405
+ onClick: (T) => void 0
2406
2406
  }, [A.text]))), e.slots.default && e.slots.default()])]);
2407
2407
  };
2408
2408
  return () => s("div", {
@@ -2441,7 +2441,7 @@ const _a = {
2441
2441
  }
2442
2442
  }), be = /* @__PURE__ */ re({
2443
2443
  name: "Notify",
2444
- props: _a,
2444
+ props: Ra,
2445
2445
  emits: ["close", "empty"],
2446
2446
  setup(t, e) {
2447
2447
  const n = $(() => ({
@@ -2486,10 +2486,10 @@ const _a = {
2486
2486
  }, null)]);
2487
2487
  }
2488
2488
  });
2489
- class ft {
2489
+ class pt {
2490
2490
  constructor() {
2491
2491
  z(this, "notifyRefs", []);
2492
- z(this, "globalConfig", yt({}));
2492
+ z(this, "globalConfig", bt({}));
2493
2493
  }
2494
2494
  createNotifyInstance(e) {
2495
2495
  const n = this, r = Object.assign({
@@ -2500,7 +2500,7 @@ class ft {
2500
2500
  ...e
2501
2501
  }), i = document.createElement("div");
2502
2502
  i.style.display = "contents";
2503
- const l = bt({
2503
+ const l = xt({
2504
2504
  setup() {
2505
2505
  const o = N();
2506
2506
  function f() {
@@ -2519,11 +2519,17 @@ class ft {
2519
2519
  document.body.removeChild(i);
2520
2520
  }), Oe(() => {
2521
2521
  n.updateNotifyPositionForCreate(r, o);
2522
- }), () => s(be, xt({
2523
- ref: o
2524
- }, r, {
2525
- onClose: f
2526
- }), null);
2522
+ }), () => s(Dt, {
2523
+ mode: "out-in",
2524
+ name: "fade",
2525
+ appear: !0
2526
+ }, {
2527
+ default: () => [s(be, Tt({
2528
+ ref: o
2529
+ }, r, {
2530
+ onClose: f
2531
+ }), null)]
2532
+ });
2527
2533
  }
2528
2534
  });
2529
2535
  return l.provide("NotifyService", this), document.body.appendChild(i), l.mount(i), l;
@@ -2591,28 +2597,28 @@ class ft {
2591
2597
  }), this.notifyRefs.length = 0;
2592
2598
  }
2593
2599
  }
2594
- const Ra = Symbol("NOTIFY_SERVICE_TOKEN");
2600
+ const Wa = Symbol("NOTIFY_SERVICE_TOKEN");
2595
2601
  be.install = (t) => {
2596
2602
  t.component(be.name, be), t.component(Ee.name, Ee);
2597
- const e = new ft();
2598
- t.provide(Ra, e), t.provide("FNotifyService", e);
2603
+ const e = new pt();
2604
+ t.provide(Wa, e), t.provide("FNotifyService", e);
2599
2605
  };
2600
- const Ya = (t = "") => {
2606
+ const ja = (t = "") => {
2601
2607
  let e;
2602
- return t && le(t, null) && (e = le(t)), e || (e = new ft()), e;
2603
- }, Wa = (t = "") => {
2608
+ return t && le(t, null) && (e = le(t)), e || (e = new pt()), e;
2609
+ }, $a = (t = "") => {
2604
2610
  let e;
2605
2611
  if (t && le(t, null)) {
2606
2612
  const n = le(t);
2607
2613
  n && n() && (e = n());
2608
2614
  }
2609
- return e || (e = new Ha()), e;
2610
- }, pt = {
2611
- getNotify: Ya,
2612
- getServerAPI: Wa
2615
+ return e || (e = new Ba()), e;
2616
+ }, mt = {
2617
+ getNotify: ja,
2618
+ getServerAPI: $a
2613
2619
  };
2614
- function mt(t, e, n) {
2615
- const a = pt.getNotify(t.notifyServiceToken), r = N(t.fileInfos), {
2620
+ function ht(t, e, n) {
2621
+ const a = mt.getNotify(t.notifyServiceToken), r = N(t.fileInfos), {
2616
2622
  disabled: i,
2617
2623
  uploadVisible: l,
2618
2624
  uploadDisabled: o,
@@ -2623,16 +2629,16 @@ function mt(t, e, n) {
2623
2629
  previewColumns: m,
2624
2630
  uploadEnableMulti: x,
2625
2631
  previewButtonDisable: g
2626
- } = Fe(t), b = N(!1), y = N([]), k = $(() => y.value.length), A = N([]), M = N(""), O = N(H(r.value));
2632
+ } = Fe(t), b = N(!1), y = N([]), k = $(() => y.value.length), A = N([]), T = N(""), O = N(H(r.value));
2627
2633
  function H(c) {
2628
2634
  (!c.length || y.value.length !== c.length) && (b.value = !1);
2629
2635
  const D = [...c.map((S) => (S.hasOwnProperty("size") || (S.size = void 0), S.hasOwnProperty("createTime") || (S.createTime = void 0), d.value && (S.checked = !!y.value.find((L) => L.id === S.id) || b.value), S))];
2630
- return D.sort(Ca(u.value)), d.value && (y.value = [...D].filter((S) => S.checked)), D;
2636
+ return D.sort(Ea(u.value)), d.value && (y.value = [...D].filter((S) => S.checked)), D;
2631
2637
  }
2632
2638
  ne(() => t.fileInfos, (c) => {
2633
2639
  O.value = H(c);
2634
2640
  });
2635
- const T = (c, v) => {
2641
+ const M = (c, v) => {
2636
2642
  c.stopImmediatePropagation(), e.emit("fileDownloadEvent", { fileInfos: [v], name: "" });
2637
2643
  }, B = (c, v) => {
2638
2644
  c.stopImmediatePropagation(), !g.value && e.emit("filePreviewEvent", v);
@@ -2656,7 +2662,7 @@ function mt(t, e, n) {
2656
2662
  D.checked = !1;
2657
2663
  }), b.value = !1), e.emit("previewMultiSelectedEvent", y.value);
2658
2664
  }, Y = (c, v) => {
2659
- c && (c.stopImmediatePropagation(), c.stopPropagation()), (!M.value || v.id !== M.value) && (M.value = v.id, e.emit("selectedEvent", v));
2665
+ c && (c.stopImmediatePropagation(), c.stopPropagation()), (!T.value || v.id !== T.value) && (T.value = v.id, e.emit("selectedEvent", v));
2660
2666
  }, E = (c) => {
2661
2667
  const v = y.value.findIndex((L) => L.id === c.id), D = v > -1, S = O.value.find((L) => L.id === c.id);
2662
2668
  S && (S.checked = c.checked), c.checked && !D && S && y.value.push(S), !c.checked && D && y.value.splice(v, 1), O.value.length > 0 && (y.value.length === O.value.length ? b.value = !0 : b.value = !1), Y(null, S), e.emit("previewMultiSelectedEvent", y.value);
@@ -2674,7 +2680,7 @@ function mt(t, e, n) {
2674
2680
  });
2675
2681
  L > -1 && (A.value[L] = { type: v, file: S });
2676
2682
  });
2677
- }, Te = (c) => {
2683
+ }, Me = (c) => {
2678
2684
  if (c.files) {
2679
2685
  const v = c.files.map((D) => D.id);
2680
2686
  A.value = A.value.filter((D) => !(v.findIndex((L) => {
@@ -2707,7 +2713,7 @@ function mt(t, e, n) {
2707
2713
  size: D.size,
2708
2714
  createTime: _e(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
2709
2715
  }));
2710
- r.value = [...v, ...O.value], Te(c), e.emit("fUploadDoneEvent", Ie(c.files || [])), e.emit("uploadDoneEvent", Ie(c.files || []));
2716
+ r.value = [...v, ...O.value], Me(c), e.emit("fUploadDoneEvent", Xe(c.files || [])), e.emit("uploadDoneEvent", Xe(c.files || []));
2711
2717
  } else if (c.type === "cancelled" || c.type === "removed" || c.type === "error") {
2712
2718
  const v = r.value.filter((D) => c.files && c.files.findIndex((S) => D.id === S.id) < 0);
2713
2719
  r.value = [...v], he(c);
@@ -2727,7 +2733,7 @@ function mt(t, e, n) {
2727
2733
  previewMultiSelectedLength: k,
2728
2734
  previewSelectAllBtnChecked: b,
2729
2735
  uploadEnableMulti: x,
2730
- previewCurrentId: M,
2736
+ previewCurrentId: T,
2731
2737
  multiFileRemoveHandler: ee,
2732
2738
  previewMultiSelectChangeHandler: E,
2733
2739
  fileMultiDownloadHandler: G,
@@ -2735,13 +2741,13 @@ function mt(t, e, n) {
2735
2741
  hasColumnHtmlFunc: R,
2736
2742
  showPreviewStateColumn: Q,
2737
2743
  rowSelectedHandler: Y,
2738
- fileDownloadHandler: T,
2744
+ fileDownloadHandler: M,
2739
2745
  filePreviewHandler: B,
2740
2746
  fileRemoveHandler: _,
2741
2747
  handleStateChange: ge
2742
2748
  };
2743
2749
  }
2744
- class ja {
2750
+ class qa {
2745
2751
  constructor(e, n) {
2746
2752
  // 记录在上传的附件数组
2747
2753
  z(this, "queue");
@@ -2760,7 +2766,7 @@ class ja {
2760
2766
  z(this, "extendServerConfig", null);
2761
2767
  z(this, "uploadServerSer");
2762
2768
  z(this, "uploadContext", null);
2763
- this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = pt.getServerAPI(this.serverToken);
2769
+ this.stateChangeRecord = e, this.serverToken = n, this.queue = [], this.uploadServerSer = mt.getServerAPI(this.serverToken);
2764
2770
  }
2765
2771
  setUploadContext(e) {
2766
2772
  this.uploadContext = e;
@@ -2806,7 +2812,7 @@ class ja {
2806
2812
  if (f.allowed)
2807
2813
  r = r.concat(i);
2808
2814
  else {
2809
- const d = Ve(
2815
+ const d = Ie(
2810
2816
  i,
2811
2817
  l
2812
2818
  );
@@ -2822,7 +2828,7 @@ class ja {
2822
2828
  );
2823
2829
  [].map.call(n, (r, i) => {
2824
2830
  var o;
2825
- const l = Ve(r, i);
2831
+ const l = Ie(r, i);
2826
2832
  this.queue.push(l), (o = this.uploadContext) == null || o.emit("stateChange", { type: "addedToQueue", file: l });
2827
2833
  }), (a = this.uploadContext) == null || a.emit("stateChange", { type: "allAddedToQueue" });
2828
2834
  }
@@ -2835,7 +2841,7 @@ class ja {
2835
2841
  */
2836
2842
  rejectedReason(e, n, a) {
2837
2843
  let r = !1, i = "";
2838
- return this.queue.findIndex((o) => o.name === e) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !Na(this.uploadOpts.allowedContentTypes, e) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : Fa(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : r = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
2844
+ return this.queue.findIndex((o) => o.name === e) > -1 ? i = "上传失败:已存在同名文件" : this.uploadOpts.allowedContentTypes && !Ha(this.uploadOpts.allowedContentTypes, e) ? i = `上传失败:只允许上传${this.uploadOpts.allowedContentTypes.join(",")}类型的文档` : this.exceedMaxUpload(n) ? i = `上传失败:文件总个数超出${this.uploadOpts.maxUploads}限制` : Na(this.uploadOpts.maxFileSize, a) ? a === 0 ? i = "上传失败:不允许文件为空" : r = !0 : i = `上传失败:单个文件大小超出${this.uploadOpts.maxFileSize}MB的限制`, {
2839
2845
  allowed: r,
2840
2846
  message: i
2841
2847
  };
@@ -2970,22 +2976,22 @@ class ja {
2970
2976
  const De = /* @__PURE__ */ re({
2971
2977
  name: "FUploader",
2972
2978
  components: {
2973
- "f-upload-progress": Pt,
2974
- "f-preview-checkbox": Ge,
2975
- "f-file-select": Je
2979
+ "f-upload-progress": Ft,
2980
+ "f-preview-checkbox": Je,
2981
+ "f-file-select": Ze
2976
2982
  },
2977
2983
  props: He,
2978
2984
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fileRemovedEvent", "fUploadDoneEvent", "uploadDoneEvent"],
2979
2985
  setup(t, e) {
2980
- const n = N(), a = new ja(n, t.uploadServerToken);
2986
+ const n = N(), a = new qa(n, t.uploadServerToken);
2981
2987
  ne(n, (p) => {
2982
2988
  switch (ie(p), p.type) {
2983
2989
  case "removed":
2984
2990
  e.emit("fileRemovedEvent", p.files[0]);
2985
2991
  break;
2986
2992
  }
2987
- }), Dt("uploaderService", a);
2988
- const r = N(t.customInfo), i = dt(t.uploadOptions, {
2993
+ }), Mt("uploaderService", a);
2994
+ const r = N(t.customInfo), i = ft(t.uploadOptions, {
2989
2995
  // 允许上传的文件类型
2990
2996
  allowedContentTypes: ["*"],
2991
2997
  // 默认不限制附件上传个数
@@ -3005,10 +3011,10 @@ const De = /* @__PURE__ */ re({
3005
3011
  previewMultiSelectedLength: y,
3006
3012
  previewSelectAllBtnChecked: k,
3007
3013
  uploadEnableMulti: A,
3008
- previewCurrentId: M,
3014
+ previewCurrentId: T,
3009
3015
  multiFileRemoveHandler: O,
3010
3016
  previewMultiSelectChangeHandler: H,
3011
- fileMultiDownloadHandler: T,
3017
+ fileMultiDownloadHandler: M,
3012
3018
  selectOrCancelAllHandler: B,
3013
3019
  rowSelectedHandler: _,
3014
3020
  hasColumnHtmlFunc: R,
@@ -3017,16 +3023,16 @@ const De = /* @__PURE__ */ re({
3017
3023
  filePreviewHandler: G,
3018
3024
  fileRemoveHandler: ee,
3019
3025
  handleStateChange: ie
3020
- } = mt(t, e, l), Y = $(() => g.value.length > 0);
3026
+ } = ht(t, e, l), Y = $(() => g.value.length > 0);
3021
3027
  function E() {
3022
3028
  var p;
3023
- return ut((i == null ? void 0 : i.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3029
+ return ct((i == null ? void 0 : i.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3024
3030
  class: "support-info--item-detail",
3025
3031
  style: "margin-right:4px;"
3026
3032
  }, [(p = i.allowedContentTypes) == null ? void 0 : p.join(""), C(",")])]) : "";
3027
3033
  }
3028
3034
  function q() {
3029
- return ct((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3035
+ return dt((i == null ? void 0 : i.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3030
3036
  class: "support-info--item-detail"
3031
3037
  }, [i.maxFileSize, C(",   ")])]) : "";
3032
3038
  }
@@ -3047,14 +3053,14 @@ const De = /* @__PURE__ */ re({
3047
3053
  class: "support-info--wrapper"
3048
3054
  }, [E(), q(), ue()])]) : null;
3049
3055
  }
3050
- function Te(p) {
3056
+ function Me(p) {
3051
3057
  var w, F, U;
3052
3058
  return s("div", {
3053
3059
  class: "uploadAndpreview--title-container"
3054
3060
  }, [s("div", {
3055
3061
  class: "ffilepreview--item-icon"
3056
3062
  }, [s("span", {
3057
- class: ["ffilepreview--filetype-icon", ze(((w = p.file) == null ? void 0 : w.name) || "")]
3063
+ class: ["ffilepreview--filetype-icon", Qe(((w = p.file) == null ? void 0 : w.name) || "")]
3058
3064
  }, null)]), s("div", {
3059
3065
  class: "uploadAndpreview--right"
3060
3066
  }, [s("a", {
@@ -3062,7 +3068,7 @@ const De = /* @__PURE__ */ re({
3062
3068
  title: (F = p.file) == null ? void 0 : F.name
3063
3069
  }, [((U = p.file) == null ? void 0 : U.name) || "无名称"]), s(K("f-upload-progress"), {
3064
3070
  status: p.type === "done" ? "success" : "active",
3065
- percent: Qe(p),
3071
+ percent: Ve(p),
3066
3072
  maxWidth: 300
3067
3073
  }, null)])]);
3068
3074
  }
@@ -3072,7 +3078,7 @@ const De = /* @__PURE__ */ re({
3072
3078
  }, [s("div", {
3073
3079
  class: "ffilepreview--item-icon"
3074
3080
  }, [s("span", {
3075
- class: ["ffilepreview--filetype-icon", ze(p.name)]
3081
+ class: ["ffilepreview--filetype-icon", Qe(p.name)]
3076
3082
  }, null)]), s("div", {
3077
3083
  class: "uploadAndpreview--right"
3078
3084
  }, [s("a", {
@@ -3084,7 +3090,7 @@ const De = /* @__PURE__ */ re({
3084
3090
  function ge(p, w, F) {
3085
3091
  return s("div", {
3086
3092
  class: "uploadAndpreview--filesize-container"
3087
- }, [p === "preview" && F ? s("span", null, [Pa(F.size)]) : null, p === "upload" && w ? s("span", null, [Qe(w)]) : null]);
3093
+ }, [p === "preview" && F ? s("span", null, [Fa(F.size)]) : null, p === "upload" && w ? s("span", null, [Ve(w)]) : null]);
3088
3094
  }
3089
3095
  function c(p, w) {
3090
3096
  return w && w.type == "error" ? s("div", {
@@ -3168,7 +3174,7 @@ const De = /* @__PURE__ */ re({
3168
3174
  j = c("upload", w);
3169
3175
  break;
3170
3176
  case "name":
3171
- j = Te(w);
3177
+ j = Me(w);
3172
3178
  break;
3173
3179
  case "size":
3174
3180
  j = ge(p, w, F);
@@ -3210,7 +3216,7 @@ const De = /* @__PURE__ */ re({
3210
3216
  }, [d.value ? null : s("button", {
3211
3217
  class: "btn btn-primary f-btn-ml",
3212
3218
  disabled: y.value === 0,
3213
- onClick: (F) => T(F)
3219
+ onClick: (F) => M(F)
3214
3220
  }, [C("下载")]), t.deleteButtonDisable.value ? null : s("button", {
3215
3221
  class: "btn btn-secondary f-btn-ml",
3216
3222
  disabled: y.value === 0,
@@ -3230,7 +3236,7 @@ const De = /* @__PURE__ */ re({
3230
3236
  onCheckedChange: (w) => B(w)
3231
3237
  }, null) : null, p.title]) : null);
3232
3238
  }
3233
- function ht() {
3239
+ function gt() {
3234
3240
  return x.value.map((p) => {
3235
3241
  var w;
3236
3242
  return s("tr", {
@@ -3252,7 +3258,7 @@ const De = /* @__PURE__ */ re({
3252
3258
  }
3253
3259
  function Re() {
3254
3260
  return g.value.map((p) => s("tr", {
3255
- class: ["uploadAndpreview--preview-item", M.value === p.id ? "uploadAndpreview--currentfile" : ""],
3261
+ class: ["uploadAndpreview--preview-item", T.value === p.id ? "uploadAndpreview--currentfile" : ""],
3256
3262
  id: "uploadAndpreview--preview-item" + p.id,
3257
3263
  onClick: (w) => _(w, p)
3258
3264
  }, [m.value.map((w) => Q(w) ? s("td", {
@@ -3285,10 +3291,10 @@ const De = /* @__PURE__ */ re({
3285
3291
  class: "uploadAndpreview--nodata"
3286
3292
  }, [C("无附件信息")]) : "", x.value.length > 0 || Y ? s("table", {
3287
3293
  class: "table table-bordered uploadAndpreview--table"
3288
- }, [s("thead", null, [Be()]), s("tbody", null, [ht(), Re()])]) : null]) : null, Y.value ? W() : null]);
3294
+ }, [s("thead", null, [Be()]), s("tbody", null, [gt(), Re()])]) : null]) : null, Y.value ? W() : null]);
3289
3295
  }
3290
3296
  });
3291
- function $a(t, e, n) {
3297
+ function Ua(t, e, n) {
3292
3298
  var H;
3293
3299
  function a() {
3294
3300
  }
@@ -3305,19 +3311,19 @@ function $a(t, e, n) {
3305
3311
  function d() {
3306
3312
  return (e == null ? void 0 : e.schema.componentType) === "frame";
3307
3313
  }
3308
- function h(T) {
3309
- if (!T || !T.value)
3314
+ function h(M) {
3315
+ if (!M || !M.value)
3310
3316
  return null;
3311
- if (T.value.schema && T.value.schema.type === "component")
3312
- return T.value;
3313
- const B = N(T == null ? void 0 : T.value.parent), _ = h(B);
3317
+ if (M.value.schema && M.value.schema.type === "component")
3318
+ return M.value;
3319
+ const B = N(M == null ? void 0 : M.value.parent), _ = h(B);
3314
3320
  return _ || null;
3315
3321
  }
3316
- function m(T = e) {
3317
- const { componentInstance: B, designerItemElementRef: _ } = T;
3318
- return !B || !B.value ? null : B.value.canMove ? _ : m(T.parent);
3322
+ function m(M = e) {
3323
+ const { componentInstance: B, designerItemElementRef: _ } = M;
3324
+ return !B || !B.value ? null : B.value.canMove ? _ : m(M.parent);
3319
3325
  }
3320
- function x(T) {
3326
+ function x(M) {
3321
3327
  return !!n;
3322
3328
  }
3323
3329
  function g() {
@@ -3325,24 +3331,24 @@ function $a(t, e, n) {
3325
3331
  }
3326
3332
  function b() {
3327
3333
  }
3328
- function y(T, B) {
3334
+ function y(M, B) {
3329
3335
  }
3330
- function k(T, B) {
3331
- const { componentType: _ } = T;
3332
- let R = Pe(_, T, B);
3336
+ function k(M, B) {
3337
+ const { componentType: _ } = M;
3338
+ let R = Pe(_, M, B);
3333
3339
  const Q = _.toLowerCase().replace("-", "_");
3334
3340
  return R && !R.id && R.type === _ && (R.id = `${Q}_${Math.random().toString().slice(2, 6)}`), R;
3335
3341
  }
3336
- function A(T, B) {
3337
- const _ = String(T.getAttribute("data-controltype")), R = T.getAttribute("data-feature"), Q = R ? JSON.parse(R) : {};
3342
+ function A(M, B) {
3343
+ const _ = String(M.getAttribute("data-controltype")), R = M.getAttribute("data-feature"), Q = R ? JSON.parse(R) : {};
3338
3344
  Q.parentComponentInstance = l.value;
3339
3345
  let V = Pe(_, Q);
3340
3346
  const G = _.toLowerCase().replace("-", "_");
3341
3347
  return V && !V.id && V.type === _ && (V.id = `${G}_${Math.random().toString().slice(2, 6)}`), V;
3342
3348
  }
3343
- function M(T) {
3349
+ function T(M) {
3344
3350
  }
3345
- function O(...T) {
3351
+ function O(...M) {
3346
3352
  }
3347
3353
  return l.value = {
3348
3354
  canMove: o(),
@@ -3363,23 +3369,23 @@ function $a(t, e, n) {
3363
3369
  getDragScopeElement: b,
3364
3370
  onAcceptMovedChildElement: y,
3365
3371
  onAcceptNewChildElement: A,
3366
- onChildElementMovedOut: M,
3372
+ onChildElementMovedOut: T,
3367
3373
  addNewChildComponentSchema: k,
3368
3374
  updateDragAndDropRules: a,
3369
3375
  triggerBelongedComponentToMoveWhenMoved: N(!1),
3370
3376
  triggerBelongedComponentToDeleteWhenDeleted: N(!1)
3371
3377
  }, l;
3372
3378
  }
3373
- const qa = /* @__PURE__ */ re({
3379
+ const La = /* @__PURE__ */ re({
3374
3380
  name: "FUploaderDesign",
3375
3381
  components: {
3376
- "f-preview-checkbox": Ge,
3377
- "f-file-select": Je
3382
+ "f-preview-checkbox": Je,
3383
+ "f-file-select": Ze
3378
3384
  },
3379
3385
  props: He,
3380
3386
  emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "uploadDoneEvent"],
3381
3387
  setup(t, e) {
3382
- const n = N(t.customInfo), a = dt(t.uploadOptions, {
3388
+ const n = N(t.customInfo), a = ft(t.uploadOptions, {
3383
3389
  // 允许上传的文件类型
3384
3390
  allowedContentTypes: ["*"],
3385
3391
  // 默认不限制附件上传个数
@@ -3402,16 +3408,16 @@ const qa = /* @__PURE__ */ re({
3402
3408
  previewEnableMulti: m,
3403
3409
  previewCurrentId: x,
3404
3410
  showPreviewStateColumn: g
3405
- } = mt(t, e, r);
3411
+ } = ht(t, e, r);
3406
3412
  function b() {
3407
3413
  var E;
3408
- return ut((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3414
+ return ct((a == null ? void 0 : a.allowedContentTypes) || []) ? s("li", null, [s("span", null, [C("支持类型:")]), s("span", {
3409
3415
  class: "support-info--item-detail",
3410
3416
  style: "margin-right:4px;"
3411
3417
  }, [(E = a.allowedContentTypes) == null ? void 0 : E.join(""), C(",")])]) : null;
3412
3418
  }
3413
3419
  function y() {
3414
- return ct((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3420
+ return dt((a == null ? void 0 : a.maxFileSize) || "") ? s("li", null, [s("span", null, [C("单个文件限制:")]), s("span", {
3415
3421
  class: "support-info--item-detail"
3416
3422
  }, [a.maxFileSize, C(",   ")])]) : null;
3417
3423
  }
@@ -3432,7 +3438,7 @@ const qa = /* @__PURE__ */ re({
3432
3438
  class: "support-info--wrapper"
3433
3439
  }, [b(), y(), k()])]) : null;
3434
3440
  }
3435
- function M(E) {
3441
+ function T(E) {
3436
3442
  return s("div", {
3437
3443
  class: "uploadAndpreview--title-container"
3438
3444
  }, [s("div", {
@@ -3461,7 +3467,7 @@ const qa = /* @__PURE__ */ re({
3461
3467
  class: "f-icon f-icon-success text-success"
3462
3468
  }, null), s("span", null, [C("已上传")])])]);
3463
3469
  }
3464
- function T(E) {
3470
+ function M(E) {
3465
3471
  return s("div", {
3466
3472
  class: "uploadAndpreview--action-container"
3467
3473
  }, [u.value ? "" : s("button", {
@@ -3497,10 +3503,10 @@ const qa = /* @__PURE__ */ re({
3497
3503
  W = H();
3498
3504
  break;
3499
3505
  case "name":
3500
- W = M();
3506
+ W = T();
3501
3507
  break;
3502
3508
  case "action":
3503
- W = T();
3509
+ W = M();
3504
3510
  break;
3505
3511
  case "size":
3506
3512
  W = O();
@@ -3556,9 +3562,9 @@ const qa = /* @__PURE__ */ re({
3556
3562
  class: "preview-checkbox"
3557
3563
  }, null) : null, _("preview", E, q)]) : null)]));
3558
3564
  }
3559
- Mt(() => {
3565
+ St(() => {
3560
3566
  });
3561
- const ee = N(), ie = le("design-item-context"), Y = $a(ee, ie);
3567
+ const ee = N(), ie = le("design-item-context"), Y = Ua(ee, ie);
3562
3568
  return Oe(() => {
3563
3569
  ee.value.componentInstance = Y;
3564
3570
  }), e.expose(Y.value), () => s("div", {
@@ -3574,16 +3580,16 @@ const qa = /* @__PURE__ */ re({
3574
3580
  }
3575
3581
  });
3576
3582
  De.register = (t, e, n, a) => {
3577
- t.uploader = De, e.uploader = et;
3583
+ t.uploader = De, e.uploader = tt;
3578
3584
  };
3579
3585
  De.registerDesigner = (t, e, n) => {
3580
- t.uploader = qa, e.uploader = et;
3586
+ t.uploader = La, e.uploader = tt;
3581
3587
  };
3582
- const Va = Sa(De);
3588
+ const Xa = Ca(De);
3583
3589
  export {
3584
3590
  De as FUploader,
3585
- ka as UploadServerAPI,
3586
- Va as default,
3587
- et as propsResolver,
3591
+ Pa as UploadServerAPI,
3592
+ Xa as default,
3593
+ tt as propsResolver,
3588
3594
  He as uploaderProps
3589
3595
  };