@farris/ui-vue 1.3.4 → 1.3.6

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 (145) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +9 -7
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +746 -730
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +9 -7
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3096 -3069
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +78 -82
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +501 -487
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +487 -472
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +440 -433
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +594 -587
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +2766 -2739
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +314 -298
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +862 -843
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +1031 -1015
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +776 -770
  88. package/components/query-solution/index.umd.cjs +6 -6
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +296 -283
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +634 -619
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +383 -376
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +595 -575
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +5492 -5470
  140. package/farris.all.umd.cjs +13 -13
  141. package/index.css +1 -1
  142. package/package.json +1 -1
  143. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  144. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  145. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
@@ -1,32 +1,46 @@
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 he, ref as D, computed as j, onMounted as ge, watch as Ye, createVNode as pe, inject as Fe } from "vue";
5
- import { isPlainObject as ie, cloneDeep as We } from "lodash-es";
1
+ var Ee = Object.defineProperty;
2
+ var Ye = (t, e, n) => e in t ? Ee(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var G = (t, e, n) => Ye(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as he, ref as D, computed as j, onMounted as ge, watch as Fe, createVNode as pe, inject as We } from "vue";
5
+ import { isPlainObject as ie, cloneDeep as ye } from "lodash-es";
6
6
  import N from "bignumber.js";
7
- const ye = {}, we = {};
7
+ const we = {}, be = {};
8
8
  function ee(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 ? ee(e[s]) : We(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 ? ee(e[s]) : ye(e[s].default)), o), {});
10
10
  if (n && (!a || !r.find((o) => o === "id"))) {
11
11
  const o = n.toLowerCase().replace(/-/g, "_");
12
12
  i.id = `${o}_${Math.random().toString().slice(2, 6)}`;
13
13
  }
14
14
  return i;
15
15
  }
16
- function be(t, e = {}, n) {
17
- const r = ye[t];
16
+ function Ae(t) {
17
+ const { properties: e, title: n, required: r } = t;
18
+ if (r && Array.isArray(r)) {
19
+ const a = r.reduce((i, o) => (i[o] = e[o].type === "object" && e[o].properties ? ee(e[o]) : ye(e[o].default), i), {});
20
+ if (n && r.find((i) => i === "id")) {
21
+ const i = n.toLowerCase().replace(/-/g, "_");
22
+ a.id = `${i}_${Math.random().toString().slice(2, 6)}`;
23
+ }
24
+ return a;
25
+ }
26
+ return {
27
+ type: n
28
+ };
29
+ }
30
+ function De(t, e = {}, n) {
31
+ const r = we[t];
18
32
  if (r) {
19
- let a = ee(r);
20
- const i = we[t];
21
- return a = i ? i({ getSchemaByType: be }, a, e, n) : a, a;
33
+ let a = Ae(r);
34
+ const i = be[t];
35
+ return a = i ? i({ getSchemaByType: De }, a, e, n) : a, a;
22
36
  }
23
37
  return null;
24
38
  }
25
- function Ae(t, e) {
39
+ function $e(t, e) {
26
40
  const n = ee(e);
27
- return Object.keys(n).reduce((r, a) => (r[a] && ie(r[a]) && ie(t[a] || !t[a]) ? Object.assign(r[a], t[a] || {}) : r[a] = t[a], r), n), n;
41
+ return Object.keys(n).reduce((r, a) => (Object.prototype.hasOwnProperty.call(t, a) && (r[a] && ie(r[a]) && ie(t[a] || !t[a]) ? Object.assign(r[a], t[a] || {}) : r[a] = t[a]), r), n), n;
28
42
  }
29
- function $e(t, e) {
43
+ function je(t, e) {
30
44
  return Object.keys(t).filter((r) => t[r] != null).reduce((r, a) => {
31
45
  if (e.has(a)) {
32
46
  const i = e.get(a);
@@ -41,11 +55,11 @@ function $e(t, e) {
41
55
  return r;
42
56
  }, {});
43
57
  }
44
- function je(t, e, n = /* @__PURE__ */ new Map()) {
45
- const r = Ae(t, e);
46
- return $e(r, n);
58
+ function He(t, e, n = /* @__PURE__ */ new Map()) {
59
+ const r = $e(t, e);
60
+ return je(r, n);
47
61
  }
48
- function He(t = {}) {
62
+ function Re(t = {}) {
49
63
  function e(u, d, m, h) {
50
64
  if (typeof m == "number")
51
65
  return h[u].length === m;
@@ -99,24 +113,24 @@ function He(t = {}) {
99
113
  }
100
114
  return { parseValueSchema: c };
101
115
  }
102
- const Re = {}, qe = {};
103
- He();
104
- function Ce(t, e, n = /* @__PURE__ */ new Map(), r = (o, s, c, u) => s, a = {}, i = (o) => o) {
105
- return ye[e.title] = e, we[e.title] = r, Re[e.title] = a, qe[e.title] = i, (o = {}) => {
106
- const s = je(o, e, n), c = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
116
+ const qe = {}, Ce = {};
117
+ Re();
118
+ function Be(t, e, n = /* @__PURE__ */ new Map(), r = (o, s, c, u) => s, a = {}, i = (o) => o) {
119
+ return we[e.title] = e, be[e.title] = r, qe[e.title] = a, Ce[e.title] = i, (o = {}) => {
120
+ const s = He(o, e, n), c = Object.keys(t).reduce((u, d) => (u[d] = t[d].default, u), {});
107
121
  return Object.assign(c, s);
108
122
  };
109
123
  }
110
- function Be(t, e) {
124
+ function Le(t, e) {
111
125
  return { customClass: e.class, customStyle: e.style };
112
126
  }
113
- const Le = /* @__PURE__ */ new Map([
114
- ["appearance", Be]
127
+ const Ue = /* @__PURE__ */ new Map([
128
+ ["appearance", Le]
115
129
  ]);
116
- function Ue(t, e, n) {
130
+ function Qe(t, e, n) {
117
131
  return e;
118
132
  }
119
- const Qe = "text", Xe = "A Farris Component", ze = "object", Ge = {
133
+ const Xe = "text", ze = "A Farris Component", Ge = "object", Ve = {
120
134
  basic: {
121
135
  description: "Basic Infomation",
122
136
  title: "基本信息",
@@ -138,12 +152,12 @@ const Qe = "text", Xe = "A Farris Component", ze = "object", Ge = {
138
152
  }
139
153
  }
140
154
  }
141
- }, Ve = {
142
- title: Qe,
143
- description: Xe,
144
- type: ze,
145
- categories: Ge
146
- }, 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 = {
155
+ }, Ze = {
156
+ title: Xe,
157
+ description: ze,
158
+ type: Ge,
159
+ categories: Ve
160
+ }, Je = "https://json-schema.org/draft/2020-12/schema", Ie = "https://farris-design.gitee.io/text.schema.json", Ke = "text", et = "A Farris Component", tt = "object", nt = {
147
161
  id: {
148
162
  description: "The unique identifier for text",
149
163
  type: "string"
@@ -205,17 +219,17 @@ const Qe = "text", Xe = "A Farris Component", ze = "object", Ge = {
205
219
  type: "boolean",
206
220
  default: !0
207
221
  }
208
- }, nt = [
222
+ }, rt = [
209
223
  "id",
210
224
  "type"
211
- ], rt = {
212
- $schema: Ze,
213
- $id: Je,
214
- title: Ie,
215
- description: Ke,
216
- type: et,
217
- properties: tt,
218
- required: nt
225
+ ], at = {
226
+ $schema: Je,
227
+ $id: Ie,
228
+ title: Ke,
229
+ description: et,
230
+ type: tt,
231
+ properties: nt,
232
+ required: rt
219
233
  }, te = {
220
234
  // 组件值
221
235
  modelValue: { type: [String, Number, Boolean], default: "" },
@@ -257,8 +271,8 @@ const Qe = "text", Xe = "A Farris Component", ze = "object", Ge = {
257
271
  dateRangeDelimiter: { type: String, default: "~" },
258
272
  // 枚举项的分隔符
259
273
  enumDelimiter: { type: String, default: "," }
260
- }, oe = Ce(te, 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 };
261
- class De {
274
+ }, oe = Be(te, at, Ue, Qe, Ze), it = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, ot = { sun: 0, mon: 1, tue: 2, wed: 3, thu: 4, fri: 5, sat: 6 };
275
+ class Me {
262
276
  constructor() {
263
277
  G(this, "regexes", {
264
278
  YEAR: "[1-9]\\d{3}",
@@ -343,10 +357,10 @@ class De {
343
357
  return e = e.replace(/_([A-Z][A-Z0-9]+)_/g, (n, r) => this.regexes[r]), new RegExp(e, "i");
344
358
  }
345
359
  getMonthByName(e) {
346
- return at[String(e).slice(0, 3).toLowerCase()];
360
+ return it[String(e).slice(0, 3).toLowerCase()];
347
361
  }
348
362
  getWeekdayByName(e) {
349
- return it[String(e).slice(0, 3).toLowerCase()];
363
+ return ot[String(e).slice(0, 3).toLowerCase()];
350
364
  }
351
365
  parse(e) {
352
366
  if (!isNaN(Number(e)))
@@ -387,10 +401,10 @@ function S(t) {
387
401
  function W(t, e) {
388
402
  return t instanceof Date ? new t.constructor(e) : new Date(e);
389
403
  }
390
- const Me = 6048e5, ot = 864e5, ve = 6e4, Ne = 36e5;
391
- let st = {};
404
+ const ve = 6048e5, st = 864e5, Ne = 6e4, Oe = 36e5;
405
+ let ut = {};
392
406
  function Q() {
393
- return st;
407
+ return ut;
394
408
  }
395
409
  function C(t, e) {
396
410
  var s, c, u, d;
@@ -400,7 +414,7 @@ function C(t, e) {
400
414
  function U(t) {
401
415
  return C(t, { weekStartsOn: 1 });
402
416
  }
403
- function Oe(t) {
417
+ function Te(t) {
404
418
  const e = S(t), n = e.getFullYear(), r = W(t, 0);
405
419
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
406
420
  const a = U(r), i = W(t, 0);
@@ -426,28 +440,28 @@ function ue(t) {
426
440
  );
427
441
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
428
442
  }
429
- function ut(t, e) {
443
+ function ct(t, e) {
430
444
  const n = se(t), r = se(e), a = +n - ue(n), i = +r - ue(r);
431
- return Math.round((a - i) / ot);
445
+ return Math.round((a - i) / st);
432
446
  }
433
- function ct(t) {
434
- const e = Oe(t), n = W(t, 0);
447
+ function lt(t) {
448
+ const e = Te(t), n = W(t, 0);
435
449
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), U(n);
436
450
  }
437
- function lt(t) {
451
+ function ft(t) {
438
452
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
439
453
  }
440
- function Te(t) {
441
- if (!lt(t) && typeof t != "number")
454
+ function xe(t) {
455
+ if (!ft(t) && typeof t != "number")
442
456
  return !1;
443
457
  const e = S(t);
444
458
  return !isNaN(Number(e));
445
459
  }
446
- function ft(t) {
460
+ function dt(t) {
447
461
  const e = S(t), n = W(t, 0);
448
462
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
449
463
  }
450
- const dt = {
464
+ const mt = {
451
465
  lessThanXSeconds: {
452
466
  one: "less than a second",
453
467
  other: "less than {{count}} seconds"
@@ -509,9 +523,9 @@ const dt = {
509
523
  one: "almost 1 year",
510
524
  other: "almost {{count}} years"
511
525
  }
512
- }, mt = (t, e, n) => {
526
+ }, ht = (t, e, n) => {
513
527
  let r;
514
- const a = dt[t];
528
+ const a = mt[t];
515
529
  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;
516
530
  };
517
531
  function V(t) {
@@ -520,42 +534,42 @@ function V(t) {
520
534
  return t.formats[n] || t.formats[t.defaultWidth];
521
535
  };
522
536
  }
523
- const ht = {
537
+ const gt = {
524
538
  full: "EEEE, MMMM do, y",
525
539
  long: "MMMM do, y",
526
540
  medium: "MMM d, y",
527
541
  short: "MM/dd/yyyy"
528
- }, gt = {
542
+ }, pt = {
529
543
  full: "h:mm:ss a zzzz",
530
544
  long: "h:mm:ss a z",
531
545
  medium: "h:mm:ss a",
532
546
  short: "h:mm a"
533
- }, pt = {
547
+ }, yt = {
534
548
  full: "{{date}} 'at' {{time}}",
535
549
  long: "{{date}} 'at' {{time}}",
536
550
  medium: "{{date}}, {{time}}",
537
551
  short: "{{date}}, {{time}}"
538
- }, yt = {
552
+ }, wt = {
539
553
  date: V({
540
- formats: ht,
554
+ formats: gt,
541
555
  defaultWidth: "full"
542
556
  }),
543
557
  time: V({
544
- formats: gt,
558
+ formats: pt,
545
559
  defaultWidth: "full"
546
560
  }),
547
561
  dateTime: V({
548
- formats: pt,
562
+ formats: yt,
549
563
  defaultWidth: "full"
550
564
  })
551
- }, wt = {
565
+ }, bt = {
552
566
  lastWeek: "'last' eeee 'at' p",
553
567
  yesterday: "'yesterday at' p",
554
568
  today: "'today at' p",
555
569
  tomorrow: "'tomorrow at' p",
556
570
  nextWeek: "eeee 'at' p",
557
571
  other: "P"
558
- }, bt = (t, e, n, r) => wt[t];
572
+ }, Dt = (t, e, n, r) => bt[t];
559
573
  function H(t) {
560
574
  return (e, n) => {
561
575
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -571,15 +585,15 @@ function H(t) {
571
585
  return a[i];
572
586
  };
573
587
  }
574
- const Dt = {
588
+ const Mt = {
575
589
  narrow: ["B", "A"],
576
590
  abbreviated: ["BC", "AD"],
577
591
  wide: ["Before Christ", "Anno Domini"]
578
- }, Mt = {
592
+ }, vt = {
579
593
  narrow: ["1", "2", "3", "4"],
580
594
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
581
595
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
582
- }, vt = {
596
+ }, Nt = {
583
597
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
584
598
  abbreviated: [
585
599
  "Jan",
@@ -609,7 +623,7 @@ const Dt = {
609
623
  "November",
610
624
  "December"
611
625
  ]
612
- }, Nt = {
626
+ }, Ot = {
613
627
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
614
628
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
615
629
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -622,7 +636,7 @@ const Dt = {
622
636
  "Friday",
623
637
  "Saturday"
624
638
  ]
625
- }, Ot = {
639
+ }, Tt = {
626
640
  narrow: {
627
641
  am: "a",
628
642
  pm: "p",
@@ -653,7 +667,7 @@ const Dt = {
653
667
  evening: "evening",
654
668
  night: "night"
655
669
  }
656
- }, Tt = {
670
+ }, xt = {
657
671
  narrow: {
658
672
  am: "a",
659
673
  pm: "p",
@@ -684,7 +698,7 @@ const Dt = {
684
698
  evening: "in the evening",
685
699
  night: "at night"
686
700
  }
687
- }, xt = (t, e) => {
701
+ }, St = (t, e) => {
688
702
  const n = Number(t), r = n % 100;
689
703
  if (r > 20 || r < 10)
690
704
  switch (r % 10) {
@@ -696,29 +710,29 @@ const Dt = {
696
710
  return n + "rd";
697
711
  }
698
712
  return n + "th";
699
- }, St = {
700
- ordinalNumber: xt,
713
+ }, Pt = {
714
+ ordinalNumber: St,
701
715
  era: H({
702
- values: Dt,
716
+ values: Mt,
703
717
  defaultWidth: "wide"
704
718
  }),
705
719
  quarter: H({
706
- values: Mt,
720
+ values: vt,
707
721
  defaultWidth: "wide",
708
722
  argumentCallback: (t) => t - 1
709
723
  }),
710
724
  month: H({
711
- values: vt,
725
+ values: Nt,
712
726
  defaultWidth: "wide"
713
727
  }),
714
728
  day: H({
715
- values: Nt,
729
+ values: Ot,
716
730
  defaultWidth: "wide"
717
731
  }),
718
732
  dayPeriod: H({
719
- values: Ot,
733
+ values: Tt,
720
734
  defaultWidth: "wide",
721
- formattingValues: Tt,
735
+ formattingValues: xt,
722
736
  defaultFormattingWidth: "wide"
723
737
  })
724
738
  };
@@ -727,9 +741,9 @@ function R(t) {
727
741
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
728
742
  if (!i)
729
743
  return null;
730
- const o = i[0], s = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(s) ? kt(s, (m) => m.test(o)) : (
744
+ const o = i[0], s = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(s) ? _t(s, (m) => m.test(o)) : (
731
745
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
732
- Pt(s, (m) => m.test(o))
746
+ kt(s, (m) => m.test(o))
733
747
  );
734
748
  let u;
735
749
  u = t.valueCallback ? t.valueCallback(c) : c, u = n.valueCallback ? (
@@ -740,17 +754,17 @@ function R(t) {
740
754
  return { value: u, rest: d };
741
755
  };
742
756
  }
743
- function Pt(t, e) {
757
+ function kt(t, e) {
744
758
  for (const n in t)
745
759
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
746
760
  return n;
747
761
  }
748
- function kt(t, e) {
762
+ function _t(t, e) {
749
763
  for (let n = 0; n < t.length; n++)
750
764
  if (e(t[n]))
751
765
  return n;
752
766
  }
753
- function _t(t) {
767
+ function Et(t) {
754
768
  return (e, n = {}) => {
755
769
  const r = e.match(t.matchPattern);
756
770
  if (!r) return null;
@@ -762,23 +776,23 @@ function _t(t) {
762
776
  return { value: o, rest: s };
763
777
  };
764
778
  }
765
- const Et = /^(\d+)(th|st|nd|rd)?/i, Yt = /\d+/i, Ft = {
779
+ const Yt = /^(\d+)(th|st|nd|rd)?/i, Ft = /\d+/i, Wt = {
766
780
  narrow: /^(b|a)/i,
767
781
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
768
782
  wide: /^(before christ|before common era|anno domini|common era)/i
769
- }, Wt = {
770
- any: [/^b/i, /^(a|c)/i]
771
783
  }, At = {
784
+ any: [/^b/i, /^(a|c)/i]
785
+ }, $t = {
772
786
  narrow: /^[1234]/i,
773
787
  abbreviated: /^q[1234]/i,
774
788
  wide: /^[1234](th|st|nd|rd)? quarter/i
775
- }, $t = {
776
- any: [/1/i, /2/i, /3/i, /4/i]
777
789
  }, jt = {
790
+ any: [/1/i, /2/i, /3/i, /4/i]
791
+ }, Ht = {
778
792
  narrow: /^[jfmasond]/i,
779
793
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
780
794
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
781
- }, Ht = {
795
+ }, Rt = {
782
796
  narrow: [
783
797
  /^j/i,
784
798
  /^f/i,
@@ -807,18 +821,18 @@ const Et = /^(\d+)(th|st|nd|rd)?/i, Yt = /\d+/i, Ft = {
807
821
  /^n/i,
808
822
  /^d/i
809
823
  ]
810
- }, Rt = {
824
+ }, qt = {
811
825
  narrow: /^[smtwf]/i,
812
826
  short: /^(su|mo|tu|we|th|fr|sa)/i,
813
827
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
814
828
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
815
- }, qt = {
829
+ }, Ct = {
816
830
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
817
831
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
818
- }, Ct = {
832
+ }, Bt = {
819
833
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
820
834
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
821
- }, Bt = {
835
+ }, Lt = {
822
836
  any: {
823
837
  am: /^a/i,
824
838
  pm: /^p/i,
@@ -829,64 +843,64 @@ const Et = /^(\d+)(th|st|nd|rd)?/i, Yt = /\d+/i, Ft = {
829
843
  evening: /evening/i,
830
844
  night: /night/i
831
845
  }
832
- }, Lt = {
833
- ordinalNumber: _t({
834
- matchPattern: Et,
835
- parsePattern: Yt,
846
+ }, Ut = {
847
+ ordinalNumber: Et({
848
+ matchPattern: Yt,
849
+ parsePattern: Ft,
836
850
  valueCallback: (t) => parseInt(t, 10)
837
851
  }),
838
852
  era: R({
839
- matchPatterns: Ft,
853
+ matchPatterns: Wt,
840
854
  defaultMatchWidth: "wide",
841
- parsePatterns: Wt,
855
+ parsePatterns: At,
842
856
  defaultParseWidth: "any"
843
857
  }),
844
858
  quarter: R({
845
- matchPatterns: At,
859
+ matchPatterns: $t,
846
860
  defaultMatchWidth: "wide",
847
- parsePatterns: $t,
861
+ parsePatterns: jt,
848
862
  defaultParseWidth: "any",
849
863
  valueCallback: (t) => t + 1
850
864
  }),
851
865
  month: R({
852
- matchPatterns: jt,
866
+ matchPatterns: Ht,
853
867
  defaultMatchWidth: "wide",
854
- parsePatterns: Ht,
868
+ parsePatterns: Rt,
855
869
  defaultParseWidth: "any"
856
870
  }),
857
871
  day: R({
858
- matchPatterns: Rt,
872
+ matchPatterns: qt,
859
873
  defaultMatchWidth: "wide",
860
- parsePatterns: qt,
874
+ parsePatterns: Ct,
861
875
  defaultParseWidth: "any"
862
876
  }),
863
877
  dayPeriod: R({
864
- matchPatterns: Ct,
878
+ matchPatterns: Bt,
865
879
  defaultMatchWidth: "any",
866
- parsePatterns: Bt,
880
+ parsePatterns: Lt,
867
881
  defaultParseWidth: "any"
868
882
  })
869
- }, Ut = {
883
+ }, Qt = {
870
884
  code: "en-US",
871
- formatDistance: mt,
872
- formatLong: yt,
873
- formatRelative: bt,
874
- localize: St,
875
- match: Lt,
885
+ formatDistance: ht,
886
+ formatLong: wt,
887
+ formatRelative: Dt,
888
+ localize: Pt,
889
+ match: Ut,
876
890
  options: {
877
891
  weekStartsOn: 0,
878
892
  firstWeekContainsDate: 1
879
893
  }
880
894
  };
881
- function Qt(t) {
895
+ function Xt(t) {
882
896
  const e = S(t);
883
- return ut(e, ft(e)) + 1;
897
+ return ct(e, dt(e)) + 1;
884
898
  }
885
- function Xt(t) {
886
- const e = S(t), n = +U(e) - +ct(e);
887
- return Math.round(n / Me) + 1;
899
+ function zt(t) {
900
+ const e = S(t), n = +U(e) - +lt(e);
901
+ return Math.round(n / ve) + 1;
888
902
  }
889
- function xe(t, e) {
903
+ function Se(t, e) {
890
904
  var d, m, h, b;
891
905
  const n = S(t), r = n.getFullYear(), a = Q(), 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 ?? ((b = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, o = W(t, 0);
892
906
  o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
@@ -895,14 +909,14 @@ function xe(t, e) {
895
909
  const u = C(c, e);
896
910
  return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
897
911
  }
898
- function zt(t, e) {
912
+ function Gt(t, e) {
899
913
  var s, c, u, d;
900
- const n = Q(), 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 = xe(t, e), i = W(t, 0);
914
+ const n = Q(), 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 = Se(t, e), i = W(t, 0);
901
915
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), C(i, e);
902
916
  }
903
- function Gt(t, e) {
904
- const n = S(t), r = +C(n, e) - +zt(n, e);
905
- return Math.round(r / Me) + 1;
917
+ function Vt(t, e) {
918
+ const n = S(t), r = +C(n, e) - +Gt(n, e);
919
+ return Math.round(r / ve) + 1;
906
920
  }
907
921
  function p(t, e) {
908
922
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
@@ -997,7 +1011,7 @@ const _ = {
997
1011
  },
998
1012
  // Local week-numbering year
999
1013
  Y: function(t, e, n, r) {
1000
- const a = xe(t, r), i = a > 0 ? a : 1 - a;
1014
+ const a = Se(t, r), i = a > 0 ? a : 1 - a;
1001
1015
  if (e === "YY") {
1002
1016
  const o = i % 100;
1003
1017
  return p(o, 2);
@@ -1006,7 +1020,7 @@ const _ = {
1006
1020
  },
1007
1021
  // ISO week-numbering year
1008
1022
  R: function(t, e) {
1009
- const n = Oe(t);
1023
+ const n = Te(t);
1010
1024
  return p(n, e.length);
1011
1025
  },
1012
1026
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1129,12 +1143,12 @@ const _ = {
1129
1143
  },
1130
1144
  // Local week of year
1131
1145
  w: function(t, e, n, r) {
1132
- const a = Gt(t, r);
1146
+ const a = Vt(t, r);
1133
1147
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : p(a, e.length);
1134
1148
  },
1135
1149
  // ISO week of year
1136
1150
  I: function(t, e, n) {
1137
- const r = Xt(t);
1151
+ const r = zt(t);
1138
1152
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : p(r, e.length);
1139
1153
  },
1140
1154
  // Day of the month
@@ -1143,7 +1157,7 @@ const _ = {
1143
1157
  },
1144
1158
  // Day of year
1145
1159
  D: function(t, e, n) {
1146
- const r = Qt(t);
1160
+ const r = Xt(t);
1147
1161
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, e.length);
1148
1162
  },
1149
1163
  // Day of week
@@ -1482,7 +1496,7 @@ const de = (t, e) => {
1482
1496
  default:
1483
1497
  return e.date({ width: "full" });
1484
1498
  }
1485
- }, Se = (t, e) => {
1499
+ }, Pe = (t, e) => {
1486
1500
  switch (t) {
1487
1501
  case "p":
1488
1502
  return e.time({ width: "short" });
@@ -1494,7 +1508,7 @@ const de = (t, e) => {
1494
1508
  default:
1495
1509
  return e.time({ width: "full" });
1496
1510
  }
1497
- }, Vt = (t, e) => {
1511
+ }, Zt = (t, e) => {
1498
1512
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1499
1513
  if (!a)
1500
1514
  return de(t, e);
@@ -1514,47 +1528,47 @@ const de = (t, e) => {
1514
1528
  i = e.dateTime({ width: "full" });
1515
1529
  break;
1516
1530
  }
1517
- return i.replace("{{date}}", de(r, e)).replace("{{time}}", Se(a, e));
1518
- }, Zt = {
1519
- p: Se,
1520
- P: Vt
1521
- }, Jt = /^D+$/, It = /^Y+$/, Kt = ["D", "DD", "YY", "YYYY"];
1522
- function en(t) {
1523
- return Jt.test(t);
1524
- }
1531
+ return i.replace("{{date}}", de(r, e)).replace("{{time}}", Pe(a, e));
1532
+ }, Jt = {
1533
+ p: Pe,
1534
+ P: Zt
1535
+ }, It = /^D+$/, Kt = /^Y+$/, en = ["D", "DD", "YY", "YYYY"];
1525
1536
  function tn(t) {
1526
1537
  return It.test(t);
1527
1538
  }
1528
- function nn(t, e, n) {
1529
- const r = rn(t, e, n);
1530
- if (console.warn(r), Kt.includes(t)) throw new RangeError(r);
1539
+ function nn(t) {
1540
+ return Kt.test(t);
1531
1541
  }
1532
1542
  function rn(t, e, n) {
1543
+ const r = an(t, e, n);
1544
+ if (console.warn(r), en.includes(t)) throw new RangeError(r);
1545
+ }
1546
+ function an(t, e, n) {
1533
1547
  const r = t[0] === "Y" ? "years" : "days of the month";
1534
1548
  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`;
1535
1549
  }
1536
- const an = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, on = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, sn = /^'([^]*?)'?$/, un = /''/g, cn = /[a-zA-Z]/;
1550
+ const on = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, sn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, un = /^'([^]*?)'?$/, cn = /''/g, ln = /[a-zA-Z]/;
1537
1551
  function B(t, e, n) {
1538
1552
  var d, m, h, b;
1539
- const r = Q(), 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 ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.weekStartsOn) ?? 0, s = S(t);
1540
- if (!Te(s))
1553
+ const r = Q(), a = r.locale ?? Qt, i = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = r.weekStartsOn ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.weekStartsOn) ?? 0, s = S(t);
1554
+ if (!xe(s))
1541
1555
  throw new RangeError("Invalid time value");
1542
- let c = e.match(on).map((g) => {
1556
+ let c = e.match(sn).map((g) => {
1543
1557
  const f = g[0];
1544
1558
  if (f === "p" || f === "P") {
1545
- const l = Zt[f];
1559
+ const l = Jt[f];
1546
1560
  return l(g, a.formatLong);
1547
1561
  }
1548
1562
  return g;
1549
- }).join("").match(an).map((g) => {
1563
+ }).join("").match(on).map((g) => {
1550
1564
  if (g === "''")
1551
1565
  return { isToken: !1, value: "'" };
1552
1566
  const f = g[0];
1553
1567
  if (f === "'")
1554
- return { isToken: !1, value: ln(g) };
1568
+ return { isToken: !1, value: fn(g) };
1555
1569
  if (ce[f])
1556
1570
  return { isToken: !0, value: g };
1557
- if (f.match(cn))
1571
+ if (f.match(ln))
1558
1572
  throw new RangeError(
1559
1573
  "Format string contains an unescaped latin alphabet character `" + f + "`"
1560
1574
  );
@@ -1569,30 +1583,30 @@ function B(t, e, n) {
1569
1583
  return c.map((g) => {
1570
1584
  if (!g.isToken) return g.value;
1571
1585
  const f = g.value;
1572
- (tn(f) || en(f)) && nn(f, e, String(t));
1586
+ (nn(f) || tn(f)) && rn(f, e, String(t));
1573
1587
  const l = ce[f[0]];
1574
1588
  return l(s, f, a.localize, u);
1575
1589
  }).join("");
1576
1590
  }
1577
- function ln(t) {
1578
- const e = t.match(sn);
1579
- return e ? e[1].replace(un, "'") : t;
1591
+ function fn(t) {
1592
+ const e = t.match(un);
1593
+ return e ? e[1].replace(cn, "'") : t;
1580
1594
  }
1581
1595
  function Z(t, e) {
1582
- const r = hn(t);
1596
+ const r = gn(t);
1583
1597
  let a;
1584
1598
  if (r.date) {
1585
- const c = gn(r.date, 2);
1586
- a = pn(c.restDateString, c.year);
1599
+ const c = pn(r.date, 2);
1600
+ a = yn(c.restDateString, c.year);
1587
1601
  }
1588
1602
  if (!a || isNaN(a.getTime()))
1589
1603
  return /* @__PURE__ */ new Date(NaN);
1590
1604
  const i = a.getTime();
1591
1605
  let o = 0, s;
1592
- if (r.time && (o = yn(r.time), isNaN(o)))
1606
+ if (r.time && (o = wn(r.time), isNaN(o)))
1593
1607
  return /* @__PURE__ */ new Date(NaN);
1594
1608
  if (r.timezone) {
1595
- if (s = wn(r.timezone), isNaN(s))
1609
+ if (s = bn(r.timezone), isNaN(s))
1596
1610
  return /* @__PURE__ */ new Date(NaN);
1597
1611
  } else {
1598
1612
  const c = new Date(i + o), u = /* @__PURE__ */ new Date(0);
@@ -1613,8 +1627,8 @@ const L = {
1613
1627
  dateTimeDelimiter: /[T ]/,
1614
1628
  timeZoneDelimiter: /[Z ]/i,
1615
1629
  timezone: /([Z+-].*)$/
1616
- }, 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}))?$/;
1617
- function hn(t) {
1630
+ }, dn = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, mn = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, hn = /^([+-])(\d{2})(?::?(\d{2}))?$/;
1631
+ function gn(t) {
1618
1632
  const e = {}, n = t.split(L.dateTimeDelimiter);
1619
1633
  let r;
1620
1634
  if (n.length > 2)
@@ -1628,7 +1642,7 @@ function hn(t) {
1628
1642
  }
1629
1643
  return e;
1630
1644
  }
1631
- function gn(t, e) {
1645
+ function pn(t, e) {
1632
1646
  const n = new RegExp(
1633
1647
  "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
1634
1648
  ), r = t.match(n);
@@ -1639,64 +1653,64 @@ function gn(t, e) {
1639
1653
  restDateString: t.slice((r[1] || r[2]).length)
1640
1654
  };
1641
1655
  }
1642
- function pn(t, e) {
1656
+ function yn(t, e) {
1643
1657
  if (e === null) return /* @__PURE__ */ new Date(NaN);
1644
- const n = t.match(fn);
1658
+ const n = t.match(dn);
1645
1659
  if (!n) return /* @__PURE__ */ new Date(NaN);
1646
1660
  const r = !!n[4], a = q(n[1]), i = q(n[2]) - 1, o = q(n[3]), s = q(n[4]), c = q(n[5]) - 1;
1647
1661
  if (r)
1648
- return Nn(e, s, c) ? bn(e, s, c) : /* @__PURE__ */ new Date(NaN);
1662
+ return On(e, s, c) ? Dn(e, s, c) : /* @__PURE__ */ new Date(NaN);
1649
1663
  {
1650
1664
  const u = /* @__PURE__ */ new Date(0);
1651
- return !Mn(e, i, o) || !vn(e, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(a, o)), u);
1665
+ return !vn(e, i, o) || !Nn(e, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(a, o)), u);
1652
1666
  }
1653
1667
  }
1654
1668
  function q(t) {
1655
1669
  return t ? parseInt(t) : 1;
1656
1670
  }
1657
- function yn(t) {
1658
- const e = t.match(dn);
1671
+ function wn(t) {
1672
+ const e = t.match(mn);
1659
1673
  if (!e) return NaN;
1660
1674
  const n = J(e[1]), r = J(e[2]), a = J(e[3]);
1661
- return On(n, r, a) ? n * Ne + r * ve + a * 1e3 : NaN;
1675
+ return Tn(n, r, a) ? n * Oe + r * Ne + a * 1e3 : NaN;
1662
1676
  }
1663
1677
  function J(t) {
1664
1678
  return t && parseFloat(t.replace(",", ".")) || 0;
1665
1679
  }
1666
- function wn(t) {
1680
+ function bn(t) {
1667
1681
  if (t === "Z") return 0;
1668
- const e = t.match(mn);
1682
+ const e = t.match(hn);
1669
1683
  if (!e) return 0;
1670
1684
  const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
1671
- return Tn(r, a) ? n * (r * Ne + a * ve) : NaN;
1685
+ return xn(r, a) ? n * (r * Oe + a * Ne) : NaN;
1672
1686
  }
1673
- function bn(t, e, n) {
1687
+ function Dn(t, e, n) {
1674
1688
  const r = /* @__PURE__ */ new Date(0);
1675
1689
  r.setUTCFullYear(t, 0, 4);
1676
1690
  const a = r.getUTCDay() || 7, i = (e - 1) * 7 + n + 1 - a;
1677
1691
  return r.setUTCDate(r.getUTCDate() + i), r;
1678
1692
  }
1679
- const Dn = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1680
- function Pe(t) {
1693
+ const Mn = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1694
+ function ke(t) {
1681
1695
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1682
1696
  }
1683
- function Mn(t, e, n) {
1684
- return e >= 0 && e <= 11 && n >= 1 && n <= (Dn[e] || (Pe(t) ? 29 : 28));
1697
+ function vn(t, e, n) {
1698
+ return e >= 0 && e <= 11 && n >= 1 && n <= (Mn[e] || (ke(t) ? 29 : 28));
1685
1699
  }
1686
- function vn(t, e) {
1687
- return e >= 1 && e <= (Pe(t) ? 366 : 365);
1700
+ function Nn(t, e) {
1701
+ return e >= 1 && e <= (ke(t) ? 366 : 365);
1688
1702
  }
1689
- function Nn(t, e, n) {
1703
+ function On(t, e, n) {
1690
1704
  return e >= 1 && e <= 53 && n >= 0 && n <= 6;
1691
1705
  }
1692
- function On(t, e, n) {
1706
+ function Tn(t, e, n) {
1693
1707
  return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
1694
1708
  }
1695
- function Tn(t, e) {
1709
+ function xn(t, e) {
1696
1710
  return e >= 0 && e <= 59;
1697
1711
  }
1698
- function xn() {
1699
- const t = new De();
1712
+ function Sn() {
1713
+ const t = new Me();
1700
1714
  function e(n, r) {
1701
1715
  var i;
1702
1716
  if (!n || typeof n == "string" && n.indexOf("0001") === 0)
@@ -1704,7 +1718,7 @@ function xn() {
1704
1718
  if (n instanceof Date)
1705
1719
  return B(n, r);
1706
1720
  let a = Z(n);
1707
- if (a == "Invalid Date" && (a = t.create(n) || new Date(n)), Te(a))
1721
+ if (a == "Invalid Date" && (a = t.create(n) || new Date(n)), xe(a))
1708
1722
  return a = Z(B(a, "yyyy-MM-dd HH:mm:ss")), B(a, r);
1709
1723
  if (r.indexOf("HH") === 0 || r.indexOf("hh") === 0) {
1710
1724
  const o = (i = n.match(/\d*/g)) == null ? void 0 : i.filter((c) => c !== "").join(":");
@@ -1718,7 +1732,7 @@ function xn() {
1718
1732
  formatTo: e
1719
1733
  };
1720
1734
  }
1721
- function Sn() {
1735
+ function Pn() {
1722
1736
  function t(f, l = null) {
1723
1737
  return Array.isArray(f) ? N.max.apply(null, f).toFixed() : f && l ? N.maximum(f, l).toFixed() : (console.error("请提供比较的值firstValue、secondValue."), "");
1724
1738
  }
@@ -1769,8 +1783,8 @@ function Sn() {
1769
1783
  let A = 0;
1770
1784
  const E = M.length;
1771
1785
  for (let Y = 0; Y < E; Y++) {
1772
- const ne = M.substr(Y, 1), re = E - Y - 1, ke = re / 4, ae = re % 4;
1773
- ne === "0" ? A++ : (A > 0 && (x += l[0]), A = 0, x += l[parseInt(ne, 10)] + w[ae]), ae === 0 && A < 4 && (x += P[ke]);
1786
+ const ne = M.substr(Y, 1), re = E - Y - 1, _e = re / 4, ae = re % 4;
1787
+ ne === "0" ? A++ : (A > 0 && (x += l[0]), A = 0, x += l[parseInt(ne, 10)] + w[ae]), ae === 0 && A < 4 && (x += P[_e]);
1774
1788
  }
1775
1789
  x += y;
1776
1790
  }
@@ -1818,7 +1832,7 @@ function Sn() {
1818
1832
  max: t
1819
1833
  };
1820
1834
  }
1821
- const Pn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1835
+ const kn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1822
1836
  60,
1823
1837
  // 60 seconds in 1 min
1824
1838
  60,
@@ -1832,12 +1846,12 @@ const Pn = ["秒", "分钟", "小时", "天", "周", "个月", "年"], I = [
1832
1846
  12
1833
1847
  // 12 months in 1 year
1834
1848
  ];
1835
- function kn() {
1836
- const t = new De();
1849
+ function _n() {
1850
+ const t = new Me();
1837
1851
  function e(o, s) {
1838
1852
  if (s === 0)
1839
1853
  return ["刚刚", "片刻后"];
1840
- const c = Pn[~~(s / 2)];
1854
+ const c = kn[~~(s / 2)];
1841
1855
  return [`${o} ${c}前`, `${o} ${c}后`];
1842
1856
  }
1843
1857
  function n(o) {
@@ -1867,8 +1881,8 @@ function kn() {
1867
1881
  formatTo: i
1868
1882
  };
1869
1883
  }
1870
- const _n = ["moz", "ms", "webkit"];
1871
- function En() {
1884
+ const En = ["moz", "ms", "webkit"];
1885
+ function Yn() {
1872
1886
  let t = 0;
1873
1887
  return (e) => {
1874
1888
  const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
@@ -1877,20 +1891,20 @@ function En() {
1877
1891
  return t = n + r, a;
1878
1892
  };
1879
1893
  }
1880
- function Yn() {
1894
+ function Fn() {
1881
1895
  if (typeof window > "u")
1882
1896
  return () => 0;
1883
1897
  if (window.requestAnimationFrame)
1884
1898
  return window.requestAnimationFrame.bind(window);
1885
- const t = _n.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1886
- return t ? window[`${t}RequestAnimationFrame`] : En();
1899
+ const t = En.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1900
+ return t ? window[`${t}RequestAnimationFrame`] : Yn();
1887
1901
  }
1888
- Yn();
1889
- function Fn(t) {
1902
+ Fn();
1903
+ function Wn(t) {
1890
1904
  let e;
1891
1905
  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;
1892
1906
  }
1893
- function Wn(t, e, n, r, a) {
1907
+ function An(t, e, n, r, a) {
1894
1908
  if (t == null || t === "")
1895
1909
  return "";
1896
1910
  if (e && e.length) {
@@ -1905,39 +1919,39 @@ function Wn(t, e, n, r, a) {
1905
1919
  }
1906
1920
  function me(t, e) {
1907
1921
  let n;
1908
- return e || (e = "YYYY-MM-DD"), e === "timeago" ? kn().formatTo(t) : (e === "hh:mm:ss" || e === "HH:mm:ss" ? n = t : n = xn().formatTo(t, Fn(e)), n);
1922
+ return e || (e = "YYYY-MM-DD"), e === "timeago" ? _n().formatTo(t) : (e === "hh:mm:ss" || e === "HH:mm:ss" ? n = t : n = Sn().formatTo(t, Wn(e)), n);
1909
1923
  }
1910
- function An(t, e) {
1924
+ function $n(t, e) {
1911
1925
  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;
1912
1926
  }
1913
- function $n(t) {
1927
+ function jn(t) {
1914
1928
  return t.replace(/[a-z]+/g, (e) => e.toUpperCase());
1915
1929
  }
1916
- function jn(t, e, n) {
1930
+ function Hn(t, e, n) {
1917
1931
  return t.toString().indexOf(".") > -1 ? (console.warn("十进制转换仅限整型类型"), "") : (Array(e).join(n) + t).slice(-e);
1918
1932
  }
1919
- function Hn(t, e) {
1933
+ function Rn(t, e) {
1920
1934
  return Number(t * 100).toFixed(Number(e)) + "%";
1921
1935
  }
1922
- function Rn(t, e, n, r, a, i, o) {
1936
+ function qn(t, e, n, r, a, i, o) {
1923
1937
  if (!e && !n)
1924
1938
  return t.toString();
1925
1939
  if (n && n.type && n.type === "number" && n.formatter)
1926
1940
  return n.formatter(t);
1927
- const s = $n(e.substring(0, 1)), c = Number(e.substring(1)), u = {};
1941
+ const s = jn(e.substring(0, 1)), c = Number(e.substring(1)), u = {};
1928
1942
  let d;
1929
1943
  if (!/C|D|F|N|P/g.test(s)) {
1930
1944
  console.log(`不支持format为 ${e} 类型的数字格式化`);
1931
1945
  return;
1932
1946
  }
1933
1947
  r && Object.assign(u, { groupSeparator: r }), a && Object.assign(u, { decimalSeparator: a }), i && Object.assign(u, { format: i });
1934
- const { formatTo: m } = Sn();
1948
+ const { formatTo: m } = Pn();
1935
1949
  switch (s) {
1936
1950
  case "C":
1937
1951
  Object.assign(u, { prefix: "¥", precision: c }), d = m(t, u);
1938
1952
  break;
1939
1953
  case "D":
1940
- d = jn(t, c, o);
1954
+ d = Hn(t, c, o);
1941
1955
  break;
1942
1956
  case "F":
1943
1957
  Object.assign(u, { prefix: "", groupSeparator: "", precision: c }), d = m(t, u);
@@ -1946,12 +1960,12 @@ function Rn(t, e, n, r, a, i, o) {
1946
1960
  Object.assign(u, { prefix: "", precision: c }), d = m(t, u);
1947
1961
  break;
1948
1962
  case "P":
1949
- d = Hn(t, c);
1963
+ d = Rn(t, c);
1950
1964
  break;
1951
1965
  }
1952
1966
  return d;
1953
1967
  }
1954
- function qn(t) {
1968
+ function Cn(t) {
1955
1969
  return t === !0 ? "是" : t === !1 || t == null || t === "" || typeof t > "u" ? "否" : t;
1956
1970
  }
1957
1971
  const K = /* @__PURE__ */ he({
@@ -1997,13 +2011,13 @@ const K = /* @__PURE__ */ he({
1997
2011
  }
1998
2012
  break;
1999
2013
  case "number":
2000
- s.value = An(s.value, t.numberOptions), w = Rn(l, s.value, t.numberOptions, t.groupSeparator, t.decimalSeparator, t.amountExpression, t.decimalFilledSymbol);
2014
+ s.value = $n(s.value, t.numberOptions), w = qn(l, s.value, t.numberOptions, t.groupSeparator, t.decimalSeparator, t.amountExpression, t.decimalFilledSymbol);
2001
2015
  break;
2002
2016
  case "enum":
2003
- w = Wn(l, t.enumConvertedDatas, t.enumDelimiter, t.textField, t.valueField);
2017
+ w = An(l, t.enumConvertedDatas, t.enumDelimiter, t.textField, t.valueField);
2004
2018
  break;
2005
2019
  case "boolean":
2006
- w = qn(l);
2020
+ w = Cn(l);
2007
2021
  break;
2008
2022
  }
2009
2023
  return w;
@@ -2016,7 +2030,7 @@ const K = /* @__PURE__ */ he({
2016
2030
  const l = u.value;
2017
2031
  Math.abs(l.scrollWidth - l.clientWidth) > 2 || Math.abs(l.scrollHeight - l.clientHeight) > 2 ? d.value = g.value : d.value = "";
2018
2032
  }
2019
- return Ye(() => t.modelValue, (l, w) => {
2033
+ return Fe(() => t.modelValue, (l, w) => {
2020
2034
  l !== w && e.emit("update:modelValue", l);
2021
2035
  }), () => pe("span", {
2022
2036
  class: m.value,
@@ -2027,7 +2041,7 @@ const K = /* @__PURE__ */ he({
2027
2041
  }, [g.value]);
2028
2042
  }
2029
2043
  });
2030
- function Cn(t, e, n) {
2044
+ function Bn(t, e, n) {
2031
2045
  var k;
2032
2046
  const r = "", a = "", i = D();
2033
2047
  function o() {
@@ -2066,7 +2080,7 @@ function Cn(t, e, n) {
2066
2080
  }
2067
2081
  function l(y, T) {
2068
2082
  const { componentType: M } = y;
2069
- let v = be(M, y, T);
2083
+ let v = De(M, y, T);
2070
2084
  const x = M.toLowerCase().replace(/-/g, "_");
2071
2085
  return v && !v.id && v.type === M && (v.id = `${x}_${Math.random().toString().slice(2, 6)}`), v;
2072
2086
  }
@@ -2108,7 +2122,7 @@ function Cn(t, e, n) {
2108
2122
  onRemoveComponent: O
2109
2123
  }, i;
2110
2124
  }
2111
- const Bn = /* @__PURE__ */ he({
2125
+ const Ln = /* @__PURE__ */ he({
2112
2126
  name: "FTextDesign",
2113
2127
  props: te,
2114
2128
  emits: ["update:modelValue"],
@@ -2124,7 +2138,7 @@ const Bn = /* @__PURE__ */ he({
2124
2138
  "max-height": !r.value && o.value > 0 ? `${o.value}px` : ""
2125
2139
  }));
2126
2140
  j(() => "");
2127
- const d = D(), m = Fe("design-item-context"), h = Cn(d, m);
2141
+ const d = D(), m = We("design-item-context"), h = Bn(d, m);
2128
2142
  return ge(() => {
2129
2143
  d.value.componentInstance = h;
2130
2144
  }), e.expose(h.value), () => pe("span", {
@@ -2133,7 +2147,7 @@ const Bn = /* @__PURE__ */ he({
2133
2147
  style: u.value
2134
2148
  }, [s.value]);
2135
2149
  }
2136
- }), zn = {
2150
+ }), Gn = {
2137
2151
  install(t) {
2138
2152
  t.component(K.name, K);
2139
2153
  },
@@ -2141,12 +2155,12 @@ const Bn = /* @__PURE__ */ he({
2141
2155
  t.text = K, e.text = oe;
2142
2156
  },
2143
2157
  registerDesigner(t, e, n) {
2144
- t.text = Bn, e.text = oe;
2158
+ t.text = Ln, e.text = oe;
2145
2159
  }
2146
2160
  };
2147
2161
  export {
2148
2162
  K as FText,
2149
- zn as default,
2163
+ Gn as default,
2150
2164
  oe as propsResolver,
2151
2165
  te as textProps
2152
2166
  };