@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,28 +1,28 @@
1
- var ke = Object.defineProperty;
2
- var _e = (t, e, n) => e in t ? ke(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var G = (t, e, n) => _e(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as he, ref as M, computed as H, onMounted as ge, watch as Ee, createVNode as pe, inject as Ye } from "vue";
5
- import { cloneDeep as Fe } from "lodash-es";
6
- import x from "bignumber.js";
7
- const ye = {}, we = {};
1
+ var _e = Object.defineProperty;
2
+ var Ee = (t, e, n) => e in t ? _e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var G = (t, e, n) => Ee(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as ge, ref as M, computed as H, onMounted as pe, watch as Ye, createVNode as ye, inject as Fe } from "vue";
5
+ import { isPlainObject as oe, cloneDeep as Ae } from "lodash-es";
6
+ import O from "bignumber.js";
7
+ const we = {}, be = {};
8
8
  function te(t) {
9
- const { properties: e, title: n, ignore: r } = t, a = r && Array.isArray(r), i = Object.keys(e).reduce((o, s) => ((!a || !r.find((c) => c == s)) && (o[s] = e[s].type === "object" && e[s].properties ? te(e[s]) : Fe(e[s].default)), o), {});
9
+ const { properties: e, title: n, ignore: r } = t, a = r && Array.isArray(r), i = Object.keys(e).reduce((o, s) => ((!a || !r.find((c) => c == s)) && (o[s] = e[s].type === "object" && e[s].properties ? te(e[s]) : Ae(e[s].default)), o), {});
10
10
  return (!a || !r.find((o) => o == "id")) && (i.id = `${n}-${Date.now()}`), i;
11
11
  }
12
12
  function ee(t, e = {}, n) {
13
- const r = ye[t];
13
+ const r = we[t];
14
14
  if (r) {
15
15
  let a = te(r);
16
- const i = we[t];
16
+ const i = be[t];
17
17
  return a = i ? i({ getSchemaByType: ee }, a, e, n) : a, a;
18
18
  }
19
19
  return null;
20
20
  }
21
- function Ae(t, e) {
21
+ function We(t, e) {
22
22
  const n = te(e);
23
- return Object.keys(t).reduce((r, a) => (r[a] && typeof r[a] == "object" ? Object.assign(r[a], t[a]) : r[a] = t[a], r), n), n;
23
+ return Object.keys(t).reduce((r, a) => (r[a] && oe(r[a]) && oe(t[a]) ? Object.assign(r[a], t[a]) : r[a] = t[a], r), n), n;
24
24
  }
25
- function We(t, e) {
25
+ function $e(t, e) {
26
26
  return Object.keys(t).filter((r) => t[r] != null).reduce((r, a) => {
27
27
  if (e.has(a)) {
28
28
  const i = e.get(a);
@@ -37,11 +37,11 @@ function We(t, e) {
37
37
  return r;
38
38
  }, {});
39
39
  }
40
- function $e(t, e, n = /* @__PURE__ */ new Map()) {
41
- const r = Ae(t, e);
42
- return We(r, n);
40
+ function Ce(t, e, n = /* @__PURE__ */ new Map()) {
41
+ const r = We(t, e);
42
+ return $e(r, n);
43
43
  }
44
- function Ce(t = {}) {
44
+ function je(t = {}) {
45
45
  function e(u, d, m, h) {
46
46
  if (typeof m == "number")
47
47
  return h[u].length === m;
@@ -90,29 +90,29 @@ function Ce(t = {}) {
90
90
  return i(u).reduce((w, g) => w && o(g, d), !0);
91
91
  }
92
92
  function c(u, d) {
93
- const m = Object.keys(u), h = m.includes("allOf"), w = m.includes("anyOf"), g = h || w, y = (g ? u[g ? h ? "allOf" : "anyOf" : "allOf"] : [u]).map((O) => s(O, d));
93
+ const m = Object.keys(u), h = m.includes("allOf"), w = m.includes("anyOf"), g = h || w, y = (g ? u[g ? h ? "allOf" : "anyOf" : "allOf"] : [u]).map((x) => s(x, d));
94
94
  return h ? !y.includes(!1) : y.includes(!0);
95
95
  }
96
96
  return { parseValueSchema: c };
97
97
  }
98
- const je = {}, He = {};
99
- Ce();
100
- function Re(t, e, n = /* @__PURE__ */ new Map(), r = (o, s, c) => s, a = {}, i = (o) => o) {
101
- return ye[e.title] = e, we[e.title] = r, je[e.title] = a, He[e.title] = i, (o = {}) => {
102
- const s = $e(o, e, n), c = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
98
+ const He = {}, Re = {};
99
+ je();
100
+ function qe(t, e, n = /* @__PURE__ */ new Map(), r = (o, s, c) => s, a = {}, i = (o) => o) {
101
+ return we[e.title] = e, be[e.title] = r, He[e.title] = a, Re[e.title] = i, (o = {}) => {
102
+ const s = Ce(o, e, n), c = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
103
103
  return Object.assign(c, s);
104
104
  };
105
105
  }
106
- function qe(t, e) {
106
+ function Be(t, e) {
107
107
  return { customClass: e.class, customStyle: e.style };
108
108
  }
109
- const Be = /* @__PURE__ */ new Map([
110
- ["appearance", qe]
109
+ const Le = /* @__PURE__ */ new Map([
110
+ ["appearance", Be]
111
111
  ]);
112
- function Le(t, e, n) {
112
+ function Ue(t, e, n) {
113
113
  return e;
114
114
  }
115
- const Ue = "text", Qe = "A Farris Component", Xe = "object", ze = {
115
+ const Qe = "text", Xe = "A Farris Component", ze = "object", Ge = {
116
116
  basic: {
117
117
  description: "Basic Infomation",
118
118
  title: "基本信息",
@@ -134,12 +134,12 @@ const Ue = "text", Qe = "A Farris Component", Xe = "object", ze = {
134
134
  }
135
135
  }
136
136
  }
137
- }, Ge = {
138
- title: Ue,
139
- description: Qe,
140
- type: Xe,
141
- categories: ze
142
- }, Ve = "https://json-schema.org/draft/2020-12/schema", Ze = "https://farris-design.gitee.io/text.schema.json", Je = "text", Ie = "A Farris Component", Ke = "object", et = {
137
+ }, Ve = {
138
+ title: Qe,
139
+ description: Xe,
140
+ type: ze,
141
+ categories: Ge
142
+ }, Ze = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-design.gitee.io/text.schema.json", Ie = "text", Ke = "A Farris Component", et = "object", tt = {
143
143
  id: {
144
144
  description: "The unique identifier for text",
145
145
  type: "string"
@@ -201,17 +201,17 @@ const Ue = "text", Qe = "A Farris Component", Xe = "object", ze = {
201
201
  type: "boolean",
202
202
  default: !0
203
203
  }
204
- }, tt = [
204
+ }, nt = [
205
205
  "id",
206
206
  "type"
207
- ], nt = {
208
- $schema: Ve,
209
- $id: Ze,
210
- title: Je,
211
- description: Ie,
212
- type: Ke,
213
- properties: et,
214
- required: tt
207
+ ], rt = {
208
+ $schema: Ze,
209
+ $id: Je,
210
+ title: Ie,
211
+ description: Ke,
212
+ type: et,
213
+ properties: tt,
214
+ required: nt
215
215
  }, ne = {
216
216
  // 组件值
217
217
  modelValue: { type: [String, Number, Boolean], default: "" },
@@ -253,8 +253,8 @@ const Ue = "text", Qe = "A Farris Component", Xe = "object", ze = {
253
253
  dateRangeDelimiter: { type: String, default: "~" },
254
254
  // 枚举项的分隔符
255
255
  enumDelimiter: { type: String, default: "," }
256
- }, oe = Re(ne, nt, Be, Le, Ge), rt = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, at = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
257
- class be {
256
+ }, se = qe(ne, rt, Le, Ue, Ve), at = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, it = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
257
+ class De {
258
258
  constructor() {
259
259
  G(this, "regexes", {
260
260
  YEAR: "[1-9]\\d{3}",
@@ -339,10 +339,10 @@ class be {
339
339
  return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (n, r) => this.regexes[r]), new RegExp(e, "i");
340
340
  }
341
341
  getMonthByName(e) {
342
- return rt[String(e).slice(0, 3).toLowerCase()];
342
+ return at[String(e).slice(0, 3).toLowerCase()];
343
343
  }
344
344
  getWeekdayByName(e) {
345
- return at[String(e).slice(0, 3).toLowerCase()];
345
+ return it[String(e).slice(0, 3).toLowerCase()];
346
346
  }
347
347
  parse(e) {
348
348
  if (!isNaN(Number(e)))
@@ -383,10 +383,10 @@ function T(t) {
383
383
  function C(t, e) {
384
384
  return t instanceof Date ? new t.constructor(e) : new Date(e);
385
385
  }
386
- const De = 6048e5, it = 864e5, Me = 6e4, Ne = 36e5;
387
- let ot = {};
386
+ const Me = 6048e5, ot = 864e5, Ne = 6e4, ve = 36e5;
387
+ let st = {};
388
388
  function z() {
389
- return ot;
389
+ return st;
390
390
  }
391
391
  function L(t, e) {
392
392
  var s, c, u, d;
@@ -396,7 +396,7 @@ function L(t, e) {
396
396
  function X(t) {
397
397
  return L(t, { weekStartsOn: 1 });
398
398
  }
399
- function ve(t) {
399
+ function Oe(t) {
400
400
  const e = T(t), n = e.getFullYear(), r = C(t, 0);
401
401
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
402
402
  const a = X(r), i = C(t, 0);
@@ -404,11 +404,11 @@ function ve(t) {
404
404
  const o = X(i);
405
405
  return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1;
406
406
  }
407
- function se(t) {
407
+ function ue(t) {
408
408
  const e = T(t);
409
409
  return e.setHours(0, 0, 0, 0), e;
410
410
  }
411
- function ue(t) {
411
+ function ce(t) {
412
412
  const e = T(t), n = new Date(
413
413
  Date.UTC(
414
414
  e.getFullYear(),
@@ -422,28 +422,28 @@ function ue(t) {
422
422
  );
423
423
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
424
424
  }
425
- function st(t, e) {
426
- const n = se(t), r = se(e), a = +n - ue(n), i = +r - ue(r);
427
- return Math.round((a - i) / it);
425
+ function ut(t, e) {
426
+ const n = ue(t), r = ue(e), a = +n - ce(n), i = +r - ce(r);
427
+ return Math.round((a - i) / ot);
428
428
  }
429
- function ut(t) {
430
- const e = ve(t), n = C(t, 0);
429
+ function ct(t) {
430
+ const e = Oe(t), n = C(t, 0);
431
431
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), X(n);
432
432
  }
433
- function ct(t) {
433
+ function lt(t) {
434
434
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
435
435
  }
436
436
  function xe(t) {
437
- if (!ct(t) && typeof t != "number")
437
+ if (!lt(t) && typeof t != "number")
438
438
  return !1;
439
439
  const e = T(t);
440
440
  return !isNaN(Number(e));
441
441
  }
442
- function lt(t) {
442
+ function ft(t) {
443
443
  const e = T(t), n = C(t, 0);
444
444
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
445
445
  }
446
- const ft = {
446
+ const dt = {
447
447
  lessThanXSeconds: {
448
448
  one: "less than a second",
449
449
  other: "less than {{count}} seconds"
@@ -505,9 +505,9 @@ const ft = {
505
505
  one: "almost 1 year",
506
506
  other: "almost {{count}} years"
507
507
  }
508
- }, dt = (t, e, n) => {
508
+ }, mt = (t, e, n) => {
509
509
  let r;
510
- const a = ft[t];
510
+ const a = dt[t];
511
511
  return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
512
512
  };
513
513
  function V(t) {
@@ -516,42 +516,42 @@ function V(t) {
516
516
  return t.formats[n] || t.formats[t.defaultWidth];
517
517
  };
518
518
  }
519
- const mt = {
519
+ const ht = {
520
520
  full: "EEEE, MMMM do, y",
521
521
  long: "MMMM do, y",
522
522
  medium: "MMM d, y",
523
523
  short: "MM/dd/yyyy"
524
- }, ht = {
524
+ }, gt = {
525
525
  full: "h:mm:ss a zzzz",
526
526
  long: "h:mm:ss a z",
527
527
  medium: "h:mm:ss a",
528
528
  short: "h:mm a"
529
- }, gt = {
529
+ }, pt = {
530
530
  full: "{{date}} 'at' {{time}}",
531
531
  long: "{{date}} 'at' {{time}}",
532
532
  medium: "{{date}}, {{time}}",
533
533
  short: "{{date}}, {{time}}"
534
- }, pt = {
534
+ }, yt = {
535
535
  date: V({
536
- formats: mt,
536
+ formats: ht,
537
537
  defaultWidth: "full"
538
538
  }),
539
539
  time: V({
540
- formats: ht,
540
+ formats: gt,
541
541
  defaultWidth: "full"
542
542
  }),
543
543
  dateTime: V({
544
- formats: gt,
544
+ formats: pt,
545
545
  defaultWidth: "full"
546
546
  })
547
- }, yt = {
547
+ }, wt = {
548
548
  lastWeek: "'last' eeee 'at' p",
549
549
  yesterday: "'yesterday at' p",
550
550
  today: "'today at' p",
551
551
  tomorrow: "'tomorrow at' p",
552
552
  nextWeek: "eeee 'at' p",
553
553
  other: "P"
554
- }, wt = (t, e, n, r) => yt[t];
554
+ }, bt = (t, e, n, r) => wt[t];
555
555
  function R(t) {
556
556
  return (e, n) => {
557
557
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -567,15 +567,15 @@ function R(t) {
567
567
  return a[i];
568
568
  };
569
569
  }
570
- const bt = {
570
+ const Dt = {
571
571
  narrow: ["B", "A"],
572
572
  abbreviated: ["BC", "AD"],
573
573
  wide: ["Before Christ", "Anno Domini"]
574
- }, Dt = {
574
+ }, Mt = {
575
575
  narrow: ["1", "2", "3", "4"],
576
576
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
577
577
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
578
- }, Mt = {
578
+ }, Nt = {
579
579
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
580
580
  abbreviated: [
581
581
  "Jan",
@@ -605,7 +605,7 @@ const bt = {
605
605
  "November",
606
606
  "December"
607
607
  ]
608
- }, Nt = {
608
+ }, vt = {
609
609
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
610
610
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
611
611
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -618,7 +618,7 @@ const bt = {
618
618
  "Friday",
619
619
  "Saturday"
620
620
  ]
621
- }, vt = {
621
+ }, Ot = {
622
622
  narrow: {
623
623
  am: "a",
624
624
  pm: "p",
@@ -680,7 +680,7 @@ const bt = {
680
680
  evening: "in the evening",
681
681
  night: "at night"
682
682
  }
683
- }, Ot = (t, e) => {
683
+ }, Tt = (t, e) => {
684
684
  const n = Number(t), r = n % 100;
685
685
  if (r > 20 || r < 10)
686
686
  switch (r % 10) {
@@ -692,27 +692,27 @@ const bt = {
692
692
  return n + "rd";
693
693
  }
694
694
  return n + "th";
695
- }, Tt = {
696
- ordinalNumber: Ot,
695
+ }, St = {
696
+ ordinalNumber: Tt,
697
697
  era: R({
698
- values: bt,
698
+ values: Dt,
699
699
  defaultWidth: "wide"
700
700
  }),
701
701
  quarter: R({
702
- values: Dt,
702
+ values: Mt,
703
703
  defaultWidth: "wide",
704
704
  argumentCallback: (t) => t - 1
705
705
  }),
706
706
  month: R({
707
- values: Mt,
707
+ values: Nt,
708
708
  defaultWidth: "wide"
709
709
  }),
710
710
  day: R({
711
- values: Nt,
711
+ values: vt,
712
712
  defaultWidth: "wide"
713
713
  }),
714
714
  dayPeriod: R({
715
- values: vt,
715
+ values: Ot,
716
716
  defaultWidth: "wide",
717
717
  formattingValues: xt,
718
718
  defaultFormattingWidth: "wide"
@@ -723,9 +723,9 @@ function q(t) {
723
723
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
724
724
  if (!i)
725
725
  return null;
726
- const o = i[0], s = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(s) ? Pt(s, (m) => m.test(o)) : (
726
+ const o = i[0], s = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(s) ? kt(s, (m) => m.test(o)) : (
727
727
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
728
- St(s, (m) => m.test(o))
728
+ Pt(s, (m) => m.test(o))
729
729
  );
730
730
  let u;
731
731
  u = t.valueCallback ? t.valueCallback(c) : c, u = n.valueCallback ? (
@@ -736,17 +736,17 @@ function q(t) {
736
736
  return { value: u, rest: d };
737
737
  };
738
738
  }
739
- function St(t, e) {
739
+ function Pt(t, e) {
740
740
  for (const n in t)
741
741
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
742
742
  return n;
743
743
  }
744
- function Pt(t, e) {
744
+ function kt(t, e) {
745
745
  for (let n = 0; n < t.length; n++)
746
746
  if (e(t[n]))
747
747
  return n;
748
748
  }
749
- function kt(t) {
749
+ function _t(t) {
750
750
  return (e, n = {}) => {
751
751
  const r = e.match(t.matchPattern);
752
752
  if (!r) return null;
@@ -758,23 +758,23 @@ function kt(t) {
758
758
  return { value: o, rest: s };
759
759
  };
760
760
  }
761
- const _t = /^(\d+)(th|st|nd|rd)?/i, Et = /\d+/i, Yt = {
761
+ const Et = /^(\d+)(th|st|nd|rd)?/i, Yt = /\d+/i, Ft = {
762
762
  narrow: /^(b|a)/i,
763
763
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
764
764
  wide: /^(before christ|before common era|anno domini|common era)/i
765
- }, Ft = {
766
- any: [/^b/i, /^(a|c)/i]
767
765
  }, At = {
766
+ any: [/^b/i, /^(a|c)/i]
767
+ }, Wt = {
768
768
  narrow: /^[1234]/i,
769
769
  abbreviated: /^q[1234]/i,
770
770
  wide: /^[1234](th|st|nd|rd)? quarter/i
771
- }, Wt = {
772
- any: [/1/i, /2/i, /3/i, /4/i]
773
771
  }, $t = {
772
+ any: [/1/i, /2/i, /3/i, /4/i]
773
+ }, Ct = {
774
774
  narrow: /^[jfmasond]/i,
775
775
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
776
776
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
777
- }, Ct = {
777
+ }, jt = {
778
778
  narrow: [
779
779
  /^j/i,
780
780
  /^f/i,
@@ -803,18 +803,18 @@ const _t = /^(\d+)(th|st|nd|rd)?/i, Et = /\d+/i, Yt = {
803
803
  /^n/i,
804
804
  /^d/i
805
805
  ]
806
- }, jt = {
806
+ }, Ht = {
807
807
  narrow: /^[smtwf]/i,
808
808
  short: /^(su|mo|tu|we|th|fr|sa)/i,
809
809
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
810
810
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
811
- }, Ht = {
811
+ }, Rt = {
812
812
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
813
813
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
814
- }, Rt = {
814
+ }, qt = {
815
815
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
816
816
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
817
- }, qt = {
817
+ }, Bt = {
818
818
  any: {
819
819
  am: /^a/i,
820
820
  pm: /^p/i,
@@ -825,64 +825,64 @@ const _t = /^(\d+)(th|st|nd|rd)?/i, Et = /\d+/i, Yt = {
825
825
  evening: /evening/i,
826
826
  night: /night/i
827
827
  }
828
- }, Bt = {
829
- ordinalNumber: kt({
830
- matchPattern: _t,
831
- parsePattern: Et,
828
+ }, Lt = {
829
+ ordinalNumber: _t({
830
+ matchPattern: Et,
831
+ parsePattern: Yt,
832
832
  valueCallback: (t) => parseInt(t, 10)
833
833
  }),
834
834
  era: q({
835
- matchPatterns: Yt,
835
+ matchPatterns: Ft,
836
836
  defaultMatchWidth: "wide",
837
- parsePatterns: Ft,
837
+ parsePatterns: At,
838
838
  defaultParseWidth: "any"
839
839
  }),
840
840
  quarter: q({
841
- matchPatterns: At,
841
+ matchPatterns: Wt,
842
842
  defaultMatchWidth: "wide",
843
- parsePatterns: Wt,
843
+ parsePatterns: $t,
844
844
  defaultParseWidth: "any",
845
845
  valueCallback: (t) => t + 1
846
846
  }),
847
847
  month: q({
848
- matchPatterns: $t,
848
+ matchPatterns: Ct,
849
849
  defaultMatchWidth: "wide",
850
- parsePatterns: Ct,
850
+ parsePatterns: jt,
851
851
  defaultParseWidth: "any"
852
852
  }),
853
853
  day: q({
854
- matchPatterns: jt,
854
+ matchPatterns: Ht,
855
855
  defaultMatchWidth: "wide",
856
- parsePatterns: Ht,
856
+ parsePatterns: Rt,
857
857
  defaultParseWidth: "any"
858
858
  }),
859
859
  dayPeriod: q({
860
- matchPatterns: Rt,
860
+ matchPatterns: qt,
861
861
  defaultMatchWidth: "any",
862
- parsePatterns: qt,
862
+ parsePatterns: Bt,
863
863
  defaultParseWidth: "any"
864
864
  })
865
- }, Lt = {
865
+ }, Ut = {
866
866
  code: "en-US",
867
- formatDistance: dt,
868
- formatLong: pt,
869
- formatRelative: wt,
870
- localize: Tt,
871
- match: Bt,
867
+ formatDistance: mt,
868
+ formatLong: yt,
869
+ formatRelative: bt,
870
+ localize: St,
871
+ match: Lt,
872
872
  options: {
873
873
  weekStartsOn: 0,
874
874
  firstWeekContainsDate: 1
875
875
  }
876
876
  };
877
- function Ut(t) {
877
+ function Qt(t) {
878
878
  const e = T(t);
879
- return st(e, lt(e)) + 1;
879
+ return ut(e, ft(e)) + 1;
880
880
  }
881
- function Qt(t) {
882
- const e = T(t), n = +X(e) - +ut(e);
883
- return Math.round(n / De) + 1;
881
+ function Xt(t) {
882
+ const e = T(t), n = +X(e) - +ct(e);
883
+ return Math.round(n / Me) + 1;
884
884
  }
885
- function Oe(t, e) {
885
+ function Te(t, e) {
886
886
  var d, m, h, w;
887
887
  const n = T(t), r = n.getFullYear(), a = z(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((m = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((w = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = C(t, 0);
888
888
  o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
@@ -891,14 +891,14 @@ function Oe(t, e) {
891
891
  const u = L(c, e);
892
892
  return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
893
893
  }
894
- function Xt(t, e) {
894
+ function zt(t, e) {
895
895
  var s, c, u, d;
896
- const n = z(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (s = e == null ? void 0 : e.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = Oe(t, e), i = C(t, 0);
896
+ const n = z(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (s = e == null ? void 0 : e.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = Te(t, e), i = C(t, 0);
897
897
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), L(i, e);
898
898
  }
899
- function zt(t, e) {
900
- const n = T(t), r = +L(n, e) - +Xt(n, e);
901
- return Math.round(r / De) + 1;
899
+ function Gt(t, e) {
900
+ const n = T(t), r = +L(n, e) - +zt(n, e);
901
+ return Math.round(r / Me) + 1;
902
902
  }
903
903
  function p(t, e) {
904
904
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
@@ -967,7 +967,7 @@ const F = {
967
967
  afternoon: "afternoon",
968
968
  evening: "evening",
969
969
  night: "night"
970
- }, ce = {
970
+ }, le = {
971
971
  // Era
972
972
  G: function(t, e, n) {
973
973
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -993,7 +993,7 @@ const F = {
993
993
  },
994
994
  // Local week-numbering year
995
995
  Y: function(t, e, n, r) {
996
- const a = Oe(t, r), i = a > 0 ? a : 1 - a;
996
+ const a = Te(t, r), i = a > 0 ? a : 1 - a;
997
997
  if (e === "YY") {
998
998
  const o = i % 100;
999
999
  return p(o, 2);
@@ -1002,7 +1002,7 @@ const F = {
1002
1002
  },
1003
1003
  // ISO week-numbering year
1004
1004
  R: function(t, e) {
1005
- const n = ve(t);
1005
+ const n = Oe(t);
1006
1006
  return p(n, e.length);
1007
1007
  },
1008
1008
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1125,12 +1125,12 @@ const F = {
1125
1125
  },
1126
1126
  // Local week of year
1127
1127
  w: function(t, e, n, r) {
1128
- const a = zt(t, r);
1128
+ const a = Gt(t, r);
1129
1129
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : p(a, e.length);
1130
1130
  },
1131
1131
  // ISO week of year
1132
1132
  I: function(t, e, n) {
1133
- const r = Qt(t);
1133
+ const r = Xt(t);
1134
1134
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : p(r, e.length);
1135
1135
  },
1136
1136
  // Day of the month
@@ -1139,7 +1139,7 @@ const F = {
1139
1139
  },
1140
1140
  // Day of year
1141
1141
  D: function(t, e, n) {
1142
- const r = Ut(t);
1142
+ const r = Qt(t);
1143
1143
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, e.length);
1144
1144
  },
1145
1145
  // Day of week
@@ -1393,7 +1393,7 @@ const F = {
1393
1393
  return "Z";
1394
1394
  switch (e) {
1395
1395
  case "X":
1396
- return fe(r);
1396
+ return de(r);
1397
1397
  case "XXXX":
1398
1398
  case "XX":
1399
1399
  return $(r);
@@ -1408,7 +1408,7 @@ const F = {
1408
1408
  const r = t.getTimezoneOffset();
1409
1409
  switch (e) {
1410
1410
  case "x":
1411
- return fe(r);
1411
+ return de(r);
1412
1412
  case "xxxx":
1413
1413
  case "xx":
1414
1414
  return $(r);
@@ -1425,7 +1425,7 @@ const F = {
1425
1425
  case "O":
1426
1426
  case "OO":
1427
1427
  case "OOO":
1428
- return "GMT" + le(r, ":");
1428
+ return "GMT" + fe(r, ":");
1429
1429
  case "OOOO":
1430
1430
  default:
1431
1431
  return "GMT" + $(r, ":");
@@ -1438,7 +1438,7 @@ const F = {
1438
1438
  case "z":
1439
1439
  case "zz":
1440
1440
  case "zzz":
1441
- return "GMT" + le(r, ":");
1441
+ return "GMT" + fe(r, ":");
1442
1442
  case "zzzz":
1443
1443
  default:
1444
1444
  return "GMT" + $(r, ":");
@@ -1455,18 +1455,18 @@ const F = {
1455
1455
  return p(r, e.length);
1456
1456
  }
1457
1457
  };
1458
- function le(t, e = "") {
1458
+ function fe(t, e = "") {
1459
1459
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1460
1460
  return i === 0 ? n + String(a) : n + String(a) + e + p(i, 2);
1461
1461
  }
1462
- function fe(t, e) {
1462
+ function de(t, e) {
1463
1463
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + p(Math.abs(t) / 60, 2) : $(t, e);
1464
1464
  }
1465
1465
  function $(t, e = "") {
1466
1466
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = p(Math.trunc(r / 60), 2), i = p(r % 60, 2);
1467
1467
  return n + a + e + i;
1468
1468
  }
1469
- const de = (t, e) => {
1469
+ const me = (t, e) => {
1470
1470
  switch (t) {
1471
1471
  case "P":
1472
1472
  return e.date({ width: "short" });
@@ -1478,7 +1478,7 @@ const de = (t, e) => {
1478
1478
  default:
1479
1479
  return e.date({ width: "full" });
1480
1480
  }
1481
- }, Te = (t, e) => {
1481
+ }, Se = (t, e) => {
1482
1482
  switch (t) {
1483
1483
  case "p":
1484
1484
  return e.time({ width: "short" });
@@ -1490,10 +1490,10 @@ const de = (t, e) => {
1490
1490
  default:
1491
1491
  return e.time({ width: "full" });
1492
1492
  }
1493
- }, Gt = (t, e) => {
1493
+ }, Vt = (t, e) => {
1494
1494
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1495
1495
  if (!a)
1496
- return de(t, e);
1496
+ return me(t, e);
1497
1497
  let i;
1498
1498
  switch (r) {
1499
1499
  case "P":
@@ -1510,47 +1510,47 @@ const de = (t, e) => {
1510
1510
  i = e.dateTime({ width: "full" });
1511
1511
  break;
1512
1512
  }
1513
- return i.replace("{{date}}", de(r, e)).replace("{{time}}", Te(a, e));
1514
- }, Vt = {
1515
- p: Te,
1516
- P: Gt
1517
- }, Zt = /^D+$/, Jt = /^Y+$/, It = ["D", "DD", "YY", "YYYY"];
1518
- function Kt(t) {
1519
- return Zt.test(t);
1520
- }
1513
+ return i.replace("{{date}}", me(r, e)).replace("{{time}}", Se(a, e));
1514
+ }, Zt = {
1515
+ p: Se,
1516
+ P: Vt
1517
+ }, Jt = /^D+$/, It = /^Y+$/, Kt = ["D", "DD", "YY", "YYYY"];
1521
1518
  function en(t) {
1522
1519
  return Jt.test(t);
1523
1520
  }
1524
- function tn(t, e, n) {
1525
- const r = nn(t, e, n);
1526
- if (console.warn(r), It.includes(t)) throw new RangeError(r);
1521
+ function tn(t) {
1522
+ return It.test(t);
1527
1523
  }
1528
1524
  function nn(t, e, n) {
1525
+ const r = rn(t, e, n);
1526
+ if (console.warn(r), Kt.includes(t)) throw new RangeError(r);
1527
+ }
1528
+ function rn(t, e, n) {
1529
1529
  const r = t[0] === "Y" ? "years" : "days of the month";
1530
1530
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1531
1531
  }
1532
- const rn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, an = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, on = /^'([^]*?)'?$/, sn = /''/g, un = /[a-zA-Z]/;
1532
+ const an = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, on = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, sn = /^'([^]*?)'?$/, un = /''/g, cn = /[a-zA-Z]/;
1533
1533
  function U(t, e, n) {
1534
1534
  var d, m, h, w;
1535
- const r = z(), a = r.locale ?? Lt, i = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = r.weekStartsOn ?? ((w = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, s = T(t);
1535
+ const r = z(), a = r.locale ?? Ut, i = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = r.weekStartsOn ?? ((w = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, s = T(t);
1536
1536
  if (!xe(s))
1537
1537
  throw new RangeError("Invalid time value");
1538
- let c = e.match(an).map((g) => {
1538
+ let c = e.match(on).map((g) => {
1539
1539
  const f = g[0];
1540
1540
  if (f === "p" || f === "P") {
1541
- const l = Vt[f];
1541
+ const l = Zt[f];
1542
1542
  return l(g, a.formatLong);
1543
1543
  }
1544
1544
  return g;
1545
- }).join("").match(rn).map((g) => {
1545
+ }).join("").match(an).map((g) => {
1546
1546
  if (g === "''")
1547
1547
  return { isToken: !1, value: "'" };
1548
1548
  const f = g[0];
1549
1549
  if (f === "'")
1550
- return { isToken: !1, value: cn(g) };
1551
- if (ce[f])
1550
+ return { isToken: !1, value: ln(g) };
1551
+ if (le[f])
1552
1552
  return { isToken: !0, value: g };
1553
- if (f.match(un))
1553
+ if (f.match(cn))
1554
1554
  throw new RangeError(
1555
1555
  "Format string contains an unescaped latin alphabet character `" + f + "`"
1556
1556
  );
@@ -1565,30 +1565,30 @@ function U(t, e, n) {
1565
1565
  return c.map((g) => {
1566
1566
  if (!g.isToken) return g.value;
1567
1567
  const f = g.value;
1568
- (en(f) || Kt(f)) && tn(f, e, String(t));
1569
- const l = ce[f[0]];
1568
+ (tn(f) || en(f)) && nn(f, e, String(t));
1569
+ const l = le[f[0]];
1570
1570
  return l(s, f, a.localize, u);
1571
1571
  }).join("");
1572
1572
  }
1573
- function cn(t) {
1574
- const e = t.match(on);
1575
- return e ? e[1].replace(sn, "'") : t;
1573
+ function ln(t) {
1574
+ const e = t.match(sn);
1575
+ return e ? e[1].replace(un, "'") : t;
1576
1576
  }
1577
1577
  function Z(t, e) {
1578
- const r = mn(t);
1578
+ const r = hn(t);
1579
1579
  let a;
1580
1580
  if (r.date) {
1581
- const c = hn(r.date, 2);
1582
- a = gn(c.restDateString, c.year);
1581
+ const c = gn(r.date, 2);
1582
+ a = pn(c.restDateString, c.year);
1583
1583
  }
1584
1584
  if (!a || isNaN(a.getTime()))
1585
1585
  return /* @__PURE__ */ new Date(NaN);
1586
1586
  const i = a.getTime();
1587
1587
  let o = 0, s;
1588
- if (r.time && (o = pn(r.time), isNaN(o)))
1588
+ if (r.time && (o = yn(r.time), isNaN(o)))
1589
1589
  return /* @__PURE__ */ new Date(NaN);
1590
1590
  if (r.timezone) {
1591
- if (s = yn(r.timezone), isNaN(s))
1591
+ if (s = wn(r.timezone), isNaN(s))
1592
1592
  return /* @__PURE__ */ new Date(NaN);
1593
1593
  } else {
1594
1594
  const c = new Date(i + o), u = /* @__PURE__ */ new Date(0);
@@ -1609,8 +1609,8 @@ const Q = {
1609
1609
  dateTimeDelimiter: /[T ]/,
1610
1610
  timeZoneDelimiter: /[Z ]/i,
1611
1611
  timezone: /([Z+-].*)$/
1612
- }, ln = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, fn = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, dn = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1613
- function mn(t) {
1612
+ }, fn = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, dn = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, mn = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1613
+ function hn(t) {
1614
1614
  const e = {}, n = t.split(Q.dateTimeDelimiter);
1615
1615
  let r;
1616
1616
  if (n.length > 2)
@@ -1624,7 +1624,7 @@ function mn(t) {
1624
1624
  }
1625
1625
  return e;
1626
1626
  }
1627
- function hn(t, e) {
1627
+ function gn(t, e) {
1628
1628
  const n = new RegExp(
1629
1629
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1630
1630
  ), r = t.match(n);
@@ -1635,64 +1635,64 @@ function hn(t, e) {
1635
1635
  restDateString: t.slice((r[1] || r[2]).length)
1636
1636
  };
1637
1637
  }
1638
- function gn(t, e) {
1638
+ function pn(t, e) {
1639
1639
  if (e === null) return /* @__PURE__ */ new Date(NaN);
1640
- const n = t.match(ln);
1640
+ const n = t.match(fn);
1641
1641
  if (!n) return /* @__PURE__ */ new Date(NaN);
1642
1642
  const r = !!n[4], a = B(n[1]), i = B(n[2]) - 1, o = B(n[3]), s = B(n[4]), c = B(n[5]) - 1;
1643
1643
  if (r)
1644
- return Nn(e, s, c) ? wn(e, s, c) : /* @__PURE__ */ new Date(NaN);
1644
+ return vn(e, s, c) ? bn(e, s, c) : /* @__PURE__ */ new Date(NaN);
1645
1645
  {
1646
1646
  const u = /* @__PURE__ */ new Date(0);
1647
- return !Dn(e, i, o) || !Mn(e, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(a, o)), u);
1647
+ return !Mn(e, i, o) || !Nn(e, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(a, o)), u);
1648
1648
  }
1649
1649
  }
1650
1650
  function B(t) {
1651
1651
  return t ? parseInt(t) : 1;
1652
1652
  }
1653
- function pn(t) {
1654
- const e = t.match(fn);
1653
+ function yn(t) {
1654
+ const e = t.match(dn);
1655
1655
  if (!e) return NaN;
1656
1656
  const n = J(e[1]), r = J(e[2]), a = J(e[3]);
1657
- return vn(n, r, a) ? n * Ne + r * Me + a * 1e3 : NaN;
1657
+ return On(n, r, a) ? n * ve + r * Ne + a * 1e3 : NaN;
1658
1658
  }
1659
1659
  function J(t) {
1660
1660
  return t && parseFloat(t.replace(",", ".")) || 0;
1661
1661
  }
1662
- function yn(t) {
1662
+ function wn(t) {
1663
1663
  if (t === "Z") return 0;
1664
- const e = t.match(dn);
1664
+ const e = t.match(mn);
1665
1665
  if (!e) return 0;
1666
1666
  const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
1667
- return xn(r, a) ? n * (r * Ne + a * Me) : NaN;
1667
+ return xn(r, a) ? n * (r * ve + a * Ne) : NaN;
1668
1668
  }
1669
- function wn(t, e, n) {
1669
+ function bn(t, e, n) {
1670
1670
  const r = /* @__PURE__ */ new Date(0);
1671
1671
  r.setUTCFullYear(t, 0, 4);
1672
1672
  const a = r.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - a;
1673
1673
  return r.setUTCDate(r.getUTCDate() + i), r;
1674
1674
  }
1675
- const bn = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1676
- function Se(t) {
1675
+ const Dn = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1676
+ function Pe(t) {
1677
1677
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1678
1678
  }
1679
- function Dn(t, e, n) {
1680
- return e >= 0 && e <= 11 && n >= 1 && n <= (bn[e] || (Se(t) ? 29 : 28));
1679
+ function Mn(t, e, n) {
1680
+ return e >= 0 && e <= 11 && n >= 1 && n <= (Dn[e] || (Pe(t) ? 29 : 28));
1681
1681
  }
1682
- function Mn(t, e) {
1683
- return e >= 1 && e <= (Se(t) ? 366 : 365);
1682
+ function Nn(t, e) {
1683
+ return e >= 1 && e <= (Pe(t) ? 366 : 365);
1684
1684
  }
1685
- function Nn(t, e, n) {
1685
+ function vn(t, e, n) {
1686
1686
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
1687
1687
  }
1688
- function vn(t, e, n) {
1688
+ function On(t, e, n) {
1689
1689
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
1690
1690
  }
1691
1691
  function xn(t, e) {
1692
1692
  return e >= 0 && e <= 59;
1693
1693
  }
1694
- function On() {
1695
- const t = new be();
1694
+ function Tn() {
1695
+ const t = new De();
1696
1696
  function e(n, r) {
1697
1697
  var i;
1698
1698
  if (!n || typeof n == "string" && n.indexOf("0001") === 0)
@@ -1714,45 +1714,45 @@ function On() {
1714
1714
  formatTo: e
1715
1715
  };
1716
1716
  }
1717
- function Tn() {
1717
+ function Sn() {
1718
1718
  function t(f, l = null) {
1719
- return Array.isArray(f) ? x.max.apply(null, f).toFixed() : f && l ? x.maximum(f, l).toFixed() : (console.error("请提供比较的值firstValue、secondValue."), "");
1719
+ return Array.isArray(f) ? O.max.apply(null, f).toFixed() : f && l ? O.maximum(f, l).toFixed() : (console.error("请提供比较的值firstValue、secondValue."), "");
1720
1720
  }
1721
1721
  function e(f, l = null) {
1722
- return Array.isArray(f) ? x.min.apply(null, f).toFixed() : f && l ? x.minimum(f, l).toFixed() : (console.error("请提供比较的值firstValue、secondValue."), "");
1722
+ return Array.isArray(f) ? O.min.apply(null, f).toFixed() : f && l ? O.minimum(f, l).toFixed() : (console.error("请提供比较的值firstValue、secondValue."), "");
1723
1723
  }
1724
1724
  function n(f) {
1725
- return x.sum.apply(null, f).toFixed();
1725
+ return O.sum.apply(null, f).toFixed();
1726
1726
  }
1727
1727
  function r(f, l) {
1728
- return new x(f).div(l).toFixed();
1728
+ return new O(f).div(l).toFixed();
1729
1729
  }
1730
1730
  function a(f, l) {
1731
- return new x(f).plus(l).toFixed();
1731
+ return new O(f).plus(l).toFixed();
1732
1732
  }
1733
1733
  function i(f, l) {
1734
- return new x(f).times(l).toFixed();
1734
+ return new O(f).times(l).toFixed();
1735
1735
  }
1736
1736
  function o(f, l) {
1737
- return new x(f).minus(l).toFixed();
1737
+ return new O(f).minus(l).toFixed();
1738
1738
  }
1739
1739
  function s(f, l) {
1740
- return new x(f).eq(l);
1740
+ return new O(f).eq(l);
1741
1741
  }
1742
1742
  function c(f, l) {
1743
- return new x(f).lt(l);
1743
+ return new O(f).lt(l);
1744
1744
  }
1745
1745
  function u(f, l) {
1746
- return new x(f).gt(l);
1746
+ return new O(f).gt(l);
1747
1747
  }
1748
1748
  function d(f) {
1749
- return new x(f).toNumber();
1749
+ return new O(f).toNumber();
1750
1750
  }
1751
1751
  function m(f, l = 0) {
1752
- return new x(f).toFixed(l);
1752
+ return new O(f).toFixed(l);
1753
1753
  }
1754
1754
  function h(f) {
1755
- const l = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"), y = new Array("", "拾", "佰", "仟"), S = new Array("", "万", "亿", "兆"), O = new Array("角", "分", "毫", "厘"), k = "整", _ = "元", b = 1e15;
1755
+ const l = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"), y = new Array("", "拾", "佰", "仟"), S = new Array("", "万", "亿", "兆"), x = new Array("角", "分", "毫", "厘"), k = "整", _ = "元", b = 1e15;
1756
1756
  let v, N, D = "", E;
1757
1757
  if (f == "")
1758
1758
  return "";
@@ -1765,8 +1765,8 @@ function Tn() {
1765
1765
  let Y = 0;
1766
1766
  const A = v.length;
1767
1767
  for (let W = 0; W < A; W++) {
1768
- const re = v.substr(W, 1), ae = A - W - 1, Pe = ae / 4, ie = ae % 4;
1769
- re == "0" ? Y++ : (Y > 0 && (D += l[0]), Y = 0, D += l[parseInt(re, 10)] + y[ie]), ie == 0 && Y < 4 && (D += S[Pe]);
1768
+ const re = v.substr(W, 1), ae = A - W - 1, ke = ae / 4, ie = ae % 4;
1769
+ re == "0" ? Y++ : (Y > 0 && (D += l[0]), Y = 0, D += l[parseInt(re, 10)] + y[ie]), ie == 0 && Y < 4 && (D += S[ke]);
1770
1770
  }
1771
1771
  D += _;
1772
1772
  }
@@ -1774,7 +1774,7 @@ function Tn() {
1774
1774
  const Y = N.length;
1775
1775
  for (let A = 0; A < Y; A++) {
1776
1776
  let W = N.substr(A, 1);
1777
- W !== "0" && (D += l[Number(W)] + O[A]);
1777
+ W !== "0" && (D += l[Number(W)] + x[A]);
1778
1778
  }
1779
1779
  }
1780
1780
  return D === "" ? D += l[0] + _ + k : N === "" && (D += k), D;
@@ -1784,7 +1784,7 @@ function Tn() {
1784
1784
  return l && (l.prefix && (y = y.replace(new RegExp(l.prefix, "g"), "")), l.suffix && (y = y.replace(new RegExp(l.suffix, "g"), "")), y = y.replace(/\,/g, "")), y;
1785
1785
  }
1786
1786
  function g(f, l) {
1787
- const y = new x(f), S = {
1787
+ const y = new O(f), S = {
1788
1788
  prefix: l.prefix || "",
1789
1789
  suffix: l.suffix || "",
1790
1790
  decimalSeparator: l.decimalSeparator || ".",
@@ -1793,8 +1793,8 @@ function Tn() {
1793
1793
  };
1794
1794
  if (y.isNaN())
1795
1795
  return "";
1796
- let O = l.precision || 0;
1797
- return O = Number(O), y.toFormat(O, S);
1796
+ let x = l.precision || 0;
1797
+ return x = Number(x), y.toFormat(x, S);
1798
1798
  }
1799
1799
  return {
1800
1800
  formatTo: g,
@@ -1814,7 +1814,7 @@ function Tn() {
1814
1814
  max: t
1815
1815
  };
1816
1816
  }
1817
- const Sn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1817
+ const Pn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1818
1818
  60,
1819
1819
  // 60 seconds in 1 min
1820
1820
  60,
@@ -1828,11 +1828,11 @@ const Sn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1828
1828
  12
1829
1829
  // 12 months in 1 year
1830
1830
  ];
1831
- function Pn() {
1832
- const t = new be();
1831
+ function kn() {
1832
+ const t = new De();
1833
1833
  function e(o, s) {
1834
1834
  if (s === 0) return ["刚刚", "片刻后"];
1835
- const c = Sn[~~(s / 2)];
1835
+ const c = Pn[~~(s / 2)];
1836
1836
  return [`${o} ${c}前`, `${o} ${c}后`];
1837
1837
  }
1838
1838
  function n(o) {
@@ -1862,8 +1862,8 @@ function Pn() {
1862
1862
  formatTo: i
1863
1863
  };
1864
1864
  }
1865
- const kn = ["moz", "ms", "webkit"];
1866
- function _n() {
1865
+ const _n = ["moz", "ms", "webkit"];
1866
+ function En() {
1867
1867
  let t = 0;
1868
1868
  return (e) => {
1869
1869
  const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
@@ -1872,20 +1872,20 @@ function _n() {
1872
1872
  return t = n + r, a;
1873
1873
  };
1874
1874
  }
1875
- function En() {
1875
+ function Yn() {
1876
1876
  if (typeof window > "u")
1877
1877
  return () => 0;
1878
1878
  if (window.requestAnimationFrame)
1879
1879
  return window.requestAnimationFrame.bind(window);
1880
- const t = kn.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1881
- return t ? window[`${t}RequestAnimationFrame`] : _n();
1880
+ const t = _n.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1881
+ return t ? window[`${t}RequestAnimationFrame`] : En();
1882
1882
  }
1883
- En();
1884
- function Yn(t) {
1883
+ Yn();
1884
+ function Fn(t) {
1885
1885
  let e;
1886
1886
  return /Y/g.test(t) === !0 ? e = t.replace(/Y/g, "y") : e = t, /D/g.test(e) === !0 && (e = e.replace(/D/g, "d")), e;
1887
1887
  }
1888
- function Fn(t, e, n, r, a) {
1888
+ function An(t, e, n, r, a) {
1889
1889
  if (t == null || t === "")
1890
1890
  return "";
1891
1891
  if (e && e.length) {
@@ -1898,41 +1898,41 @@ function Fn(t, e, n, r, a) {
1898
1898
  }
1899
1899
  return t;
1900
1900
  }
1901
- function me(t, e) {
1901
+ function he(t, e) {
1902
1902
  let n;
1903
- return e || (e = "YYYY-MM-DD"), e === "timeago" ? Pn().formatTo(t) : (e === "hh:mm:ss" || e === "HH:mm:ss" ? n = t : n = On().formatTo(t, Yn(e)), n);
1903
+ return e || (e = "YYYY-MM-DD"), e === "timeago" ? kn().formatTo(t) : (e === "hh:mm:ss" || e === "HH:mm:ss" ? n = t : n = Tn().formatTo(t, Fn(e)), n);
1904
1904
  }
1905
- function An(t, e) {
1905
+ function Wn(t, e) {
1906
1906
  return !t && !e || e && e.type && e.type === "number" && (e.formatter || (e.useThousands ? e.precision !== void 0 ? t = "n" + e.precision : t = "n2" : e.precision !== void 0 ? t = "f" + e.precision : t = "f2")), t;
1907
1907
  }
1908
- function Wn(t) {
1908
+ function $n(t) {
1909
1909
  return t.replace(/[a-z]+/g, (e) => e.toUpperCase());
1910
1910
  }
1911
- function $n(t, e, n) {
1911
+ function Cn(t, e, n) {
1912
1912
  return t.toString().indexOf(".") > -1 ? (console.warn("十进制转换仅限整型类型"), "") : (Array(e).join(n) + t).slice(-e);
1913
1913
  }
1914
- function Cn(t, e) {
1914
+ function jn(t, e) {
1915
1915
  return Number(t * 100).toFixed(Number(e)) + "%";
1916
1916
  }
1917
- function jn(t, e, n, r, a, i, o) {
1917
+ function Hn(t, e, n, r, a, i, o) {
1918
1918
  if (!e && !n)
1919
1919
  return t.toString();
1920
1920
  if (n && n.type && n.type === "number" && n.formatter)
1921
1921
  return n.formatter(t);
1922
- const s = Wn(e.substring(0, 1)), c = Number(e.substring(1)), u = {};
1922
+ const s = $n(e.substring(0, 1)), c = Number(e.substring(1)), u = {};
1923
1923
  let d;
1924
1924
  if (!/C|D|F|N|P/g.test(s)) {
1925
1925
  console.log(`不支持format为 ${e} 类型的数字格式化`);
1926
1926
  return;
1927
1927
  }
1928
1928
  r && Object.assign(u, { groupSeparator: r }), a && Object.assign(u, { decimalSeparator: a }), i && Object.assign(u, { format: i });
1929
- const { formatTo: m } = Tn();
1929
+ const { formatTo: m } = Sn();
1930
1930
  switch (s) {
1931
1931
  case "C":
1932
1932
  Object.assign(u, { prefix: "¥", precision: c }), d = m(t, u);
1933
1933
  break;
1934
1934
  case "D":
1935
- d = $n(t, c, o);
1935
+ d = Cn(t, c, o);
1936
1936
  break;
1937
1937
  case "F":
1938
1938
  Object.assign(u, { prefix: "", groupSeparator: "", precision: c }), d = m(t, u);
@@ -1941,15 +1941,15 @@ function jn(t, e, n, r, a, i, o) {
1941
1941
  Object.assign(u, { prefix: "", precision: c }), d = m(t, u);
1942
1942
  break;
1943
1943
  case "P":
1944
- d = Cn(t, c);
1944
+ d = jn(t, c);
1945
1945
  break;
1946
1946
  }
1947
1947
  return d;
1948
1948
  }
1949
- function Hn(t) {
1949
+ function Rn(t) {
1950
1950
  return t === !0 ? "是" : t === !1 || t == null || t === "" || typeof t > "u" ? "否" : t;
1951
1951
  }
1952
- const K = /* @__PURE__ */ he({
1952
+ const K = /* @__PURE__ */ ge({
1953
1953
  name: "FText",
1954
1954
  props: ne,
1955
1955
  emits: ["update:modelValue", "valueChange"],
@@ -1964,7 +1964,7 @@ const K = /* @__PURE__ */ he({
1964
1964
  "min-height": a.value && t.height > 0 ? `${t.height}px` : "",
1965
1965
  "max-height": a.value && t.maxHeight > 0 ? `${t.maxHeight}px` : ""
1966
1966
  }));
1967
- ge(() => {
1967
+ pe(() => {
1968
1968
  if (n.value) {
1969
1969
  const l = u.value.parentElement.className;
1970
1970
  u.value.parentElement.className = l + " f-cmp-text-is-textarea";
@@ -1987,24 +1987,24 @@ const K = /* @__PURE__ */ he({
1987
1987
  case "date":
1988
1988
  case "datetime":
1989
1989
  if (!i.value)
1990
- y = me(l, s.value);
1990
+ y = he(l, s.value);
1991
1991
  else {
1992
1992
  let S = t.dateRangeDelimiter;
1993
- const O = l.split(S);
1993
+ const x = l.split(S);
1994
1994
  let k = [];
1995
- O && O.length && O.forEach((_) => {
1996
- k.push(me(_, s.value));
1995
+ x && x.length && x.forEach((_) => {
1996
+ k.push(he(_, s.value));
1997
1997
  }), y = k.join(S);
1998
1998
  }
1999
1999
  break;
2000
2000
  case "number":
2001
- s.value = An(s.value, t.numberOptions), y = jn(l, s.value, t.numberOptions, t.groupSeparator, t.decimalSeparator, t.amountExpression, t.decimalFilledSymbol);
2001
+ s.value = Wn(s.value, t.numberOptions), y = Hn(l, s.value, t.numberOptions, t.groupSeparator, t.decimalSeparator, t.amountExpression, t.decimalFilledSymbol);
2002
2002
  break;
2003
2003
  case "enum":
2004
- y = Fn(l, t.enumConvertedDatas, t.enumDelimiter, t.textField, t.valueField);
2004
+ y = An(l, t.enumConvertedDatas, t.enumDelimiter, t.textField, t.valueField);
2005
2005
  break;
2006
2006
  case "boolean":
2007
- y = Hn(l);
2007
+ y = Rn(l);
2008
2008
  break;
2009
2009
  }
2010
2010
  return y;
@@ -2013,9 +2013,9 @@ const K = /* @__PURE__ */ he({
2013
2013
  const l = u.value;
2014
2014
  Math.abs(l.scrollWidth - l.clientWidth) > 2 || Math.abs(l.scrollHeight - l.clientHeight) > 2 ? d.value = w.value : d.value = "";
2015
2015
  }
2016
- return Ee(() => t.modelValue, (l, y) => {
2016
+ return Ye(() => t.modelValue, (l, y) => {
2017
2017
  l !== y && e.emit("update:modelValue", l);
2018
- }), () => pe("span", {
2018
+ }), () => ye("span", {
2019
2019
  class: m.value,
2020
2020
  style: h.value,
2021
2021
  ref: u,
@@ -2024,7 +2024,7 @@ const K = /* @__PURE__ */ he({
2024
2024
  }, [w.value]);
2025
2025
  }
2026
2026
  });
2027
- function Rn(t, e, n) {
2027
+ function qn(t, e, n) {
2028
2028
  var _;
2029
2029
  function r() {
2030
2030
  }
@@ -2076,7 +2076,7 @@ function Rn(t, e, n) {
2076
2076
  const Y = N.toLowerCase().replace("-", "_");
2077
2077
  return P && !P.id && P.type === N && (P.id = `${Y}_${Math.random().toString().slice(2, 6)}`), P;
2078
2078
  }
2079
- function O(b) {
2079
+ function x(b) {
2080
2080
  }
2081
2081
  function k(...b) {
2082
2082
  }
@@ -2099,14 +2099,14 @@ function Rn(t, e, n) {
2099
2099
  getDragScopeElement: f,
2100
2100
  onAcceptMovedChildElement: l,
2101
2101
  onAcceptNewChildElement: S,
2102
- onChildElementMovedOut: O,
2102
+ onChildElementMovedOut: x,
2103
2103
  addNewChildComponentSchema: y,
2104
2104
  updateDragAndDropRules: r,
2105
2105
  triggerBelongedComponentToMoveWhenMoved: M(!1),
2106
2106
  triggerBelongedComponentToDeleteWhenDeleted: M(!1)
2107
2107
  }, o;
2108
2108
  }
2109
- const qn = /* @__PURE__ */ he({
2109
+ const Bn = /* @__PURE__ */ ge({
2110
2110
  name: "FTextDesign",
2111
2111
  props: ne,
2112
2112
  emits: ["update:modelValue"],
@@ -2122,29 +2122,29 @@ const qn = /* @__PURE__ */ he({
2122
2122
  "max-height": !r.value && o.value > 0 ? `${o.value}px` : ""
2123
2123
  }));
2124
2124
  H(() => "");
2125
- const d = M(), m = Ye("design-item-context"), h = Rn(d, m);
2126
- return ge(() => {
2125
+ const d = M(), m = Fe("design-item-context"), h = qn(d, m);
2126
+ return pe(() => {
2127
2127
  d.value.componentInstance = h;
2128
- }), e.expose(h.value), () => pe("span", {
2128
+ }), e.expose(h.value), () => ye("span", {
2129
2129
  ref: d,
2130
2130
  class: c.value,
2131
2131
  style: u.value
2132
2132
  }, [s.value]);
2133
2133
  }
2134
- }), Xn = {
2134
+ }), zn = {
2135
2135
  install(t) {
2136
2136
  t.component(K.name, K);
2137
2137
  },
2138
2138
  register(t, e, n, r) {
2139
- t.text = K, e.text = oe;
2139
+ t.text = K, e.text = se;
2140
2140
  },
2141
2141
  registerDesigner(t, e, n) {
2142
- t.text = qn, e.text = oe;
2142
+ t.text = Bn, e.text = se;
2143
2143
  }
2144
2144
  };
2145
2145
  export {
2146
2146
  K as FText,
2147
- Xn as default,
2148
- oe as propsResolver,
2147
+ zn as default,
2148
+ se as propsResolver,
2149
2149
  ne as textProps
2150
2150
  };