@ryuzaki13/react-foundation-lib 1.4.4 → 1.5.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.
- package/dist/chunks/{formatters-D33Uh3si.js → formatters-DVE1YVNQ.js} +349 -334
- package/dist/chunks/formatters-DVE1YVNQ.js.map +1 -0
- package/dist/error-report/index.js +1 -1
- package/dist/formatters/date/formatInstantDateTime.d.ts +19 -0
- package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -0
- package/dist/formatters/date/index.d.ts +1 -0
- package/dist/formatters/date/index.d.ts.map +1 -1
- package/dist/formatters/index.js +5 -5
- package/package.json +1 -1
- package/src/formatters/date/README.mdx +11 -1
- package/dist/chunks/formatters-D33Uh3si.js.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { _ as e, r as t, x as n } from "./array-D-_yMMUK.js";
|
|
2
2
|
import { i as r } from "./isRecord-DXDTW-jA.js";
|
|
3
3
|
import { uuidv4 as i } from "../crypto/index.js";
|
|
4
|
-
import { Bt as a, Rt as o, Sn as s, _t as c, pn as l } from "./odata-service-CWkHASdw.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { t as
|
|
7
|
-
import { isSafe as
|
|
8
|
-
import { compileTableFormula as
|
|
4
|
+
import { Bt as a, Rt as o, Sn as s, _t as c, pn as l, vn as u } from "./odata-service-CWkHASdw.js";
|
|
5
|
+
import { c as ee, d, h as te, l as f, n as ne, o as re, t as p, u as ie } from "./validate-DyzojM0w.js";
|
|
6
|
+
import { t as ae } from "./string-comparison-BKT7PXmq.js";
|
|
7
|
+
import { isSafe as oe } from "../validators/index.js";
|
|
8
|
+
import { compileTableFormula as se } from "../formulas/index.js";
|
|
9
9
|
//#region src/formatters/strings/formatRussianPlural.ts
|
|
10
|
-
var
|
|
11
|
-
function
|
|
10
|
+
var ce = new Intl.PluralRules("ru-RU");
|
|
11
|
+
function le(e, t) {
|
|
12
12
|
if (!Number.isFinite(e)) throw RangeError("Количество должно быть конечным числом.");
|
|
13
|
-
switch (
|
|
13
|
+
switch (ce.select(e)) {
|
|
14
14
|
case "one": return t.one;
|
|
15
15
|
case "few": return t.few;
|
|
16
16
|
case "many": return t.many;
|
|
17
17
|
default: return t.other ?? t.few;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return `${e} ${
|
|
20
|
+
function ue(e, t) {
|
|
21
|
+
return `${e} ${le(e, t)}`;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/formatters/strings/startsWithIgnoringZeros.ts
|
|
25
|
-
function
|
|
25
|
+
function de(e, t) {
|
|
26
26
|
let n = (e || "").toLowerCase().replace(/^0+/, ""), r = (t || "").toLowerCase().replace(/^0+/, "");
|
|
27
27
|
return n.startsWith(r);
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/formatters/strings/stripInnerSpaces.ts
|
|
31
|
-
function
|
|
31
|
+
function fe(e) {
|
|
32
32
|
let t = "", n = !1;
|
|
33
33
|
for (let r = 0; r < e.length; r++) {
|
|
34
34
|
let i = e.charCodeAt(r);
|
|
@@ -42,7 +42,7 @@ function ue(e) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/formatters/strings/stripLeadingZeros.ts
|
|
45
|
-
function
|
|
45
|
+
function pe(e) {
|
|
46
46
|
if (e == null) return "";
|
|
47
47
|
let t = e.trim();
|
|
48
48
|
if (t === "") return "0";
|
|
@@ -53,273 +53,288 @@ function de(e) {
|
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/formatters/strings/truncateText.ts
|
|
56
|
-
function
|
|
56
|
+
function me(t, n) {
|
|
57
57
|
let r = e(t);
|
|
58
58
|
if (r) return r.length > n ? `${r.slice(0, n)}...` : r;
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/formatters/boolean/toAbapBoolean.ts
|
|
62
|
-
function
|
|
62
|
+
function he(e) {
|
|
63
63
|
return typeof e == "string" && (e = e !== "0"), e ? "X" : " ";
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/formatters/formatName.ts
|
|
67
|
-
function
|
|
67
|
+
function ge(e) {
|
|
68
68
|
if (!e) return "";
|
|
69
69
|
let t = e.trim().replace(/\s+/g, " ").replace(/\s*\./, " ").replace(/\s*\.\s*/g, ". ").toLowerCase().split(" ");
|
|
70
70
|
if (t.length === 0) return "";
|
|
71
|
-
let n =
|
|
71
|
+
let n = m(t[0]);
|
|
72
72
|
if (t.length === 1) return n;
|
|
73
|
-
let r = t[1].includes(".") ?
|
|
74
|
-
return t.length === 2 ? `${n} ${r}` : `${n} ${r} ${t[2].includes(".") ?
|
|
73
|
+
let r = t[1].includes(".") ? ve(t[1]) : m(t[1]);
|
|
74
|
+
return t.length === 2 ? `${n} ${r}` : `${n} ${r} ${t[2].includes(".") ? ve(t[2]) : m(t[2])}`;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function _e(e) {
|
|
77
77
|
if (!e) return "";
|
|
78
78
|
let t = e.trim().replace(/\s+/g, " ").replace(/\s*\.\s*/g, ".").toLowerCase().split(" ");
|
|
79
79
|
if (t.length === 0) return "";
|
|
80
|
-
let n =
|
|
80
|
+
let n = m(t[0]);
|
|
81
81
|
if (t.length === 1) return n;
|
|
82
82
|
let r = t[1].startsWith(".") ? t[1][1] : t[1][0];
|
|
83
83
|
if (t.length === 2) return t[1].includes("."), `${n} ${r.toUpperCase()}.`;
|
|
84
84
|
let i = t[2].startsWith(".") ? t[2][1] : t[2][0];
|
|
85
85
|
return `${n} ${r.toUpperCase()}.${i.toUpperCase()}.`;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function m(e) {
|
|
88
88
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function ve(e) {
|
|
91
|
+
return m(e);
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/formatters/formatPhone.ts
|
|
95
|
-
function
|
|
96
|
-
let t =
|
|
95
|
+
function ye(e) {
|
|
96
|
+
let t = h(e).match(/^(\+7)(\d{3})(\d{3})(\d{2})(\d{2})$/);
|
|
97
97
|
return t ? `+7 (${t[2]}) ${t[3]}-${t[4]}-${t[5]}` : e;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function h(e) {
|
|
100
100
|
return `+7${e.replace(/\D/g, "").slice(0, 11).replace(/^(7|8)/, "")}`;
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/formatters/date/calendarDate.ts
|
|
104
|
-
function
|
|
104
|
+
function g(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
105
105
|
return new Date(e, t, n, r, i, a, o);
|
|
106
106
|
}
|
|
107
|
+
function _(e) {
|
|
108
|
+
return g(e.getFullYear(), e.getMonth(), e.getDate(), 0, 0, 0, 0);
|
|
109
|
+
}
|
|
107
110
|
function v(e) {
|
|
108
|
-
return
|
|
111
|
+
return g(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, 59, 0);
|
|
109
112
|
}
|
|
110
113
|
function y(e) {
|
|
111
|
-
return
|
|
114
|
+
return g(e.getFullYear(), e.getMonth(), 1, 0, 0, 0, 0);
|
|
112
115
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
116
|
+
function be(e) {
|
|
117
|
+
return g(e.getFullYear(), 0, 1, 0, 0, 0, 0);
|
|
115
118
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
function ye(e, t = 1) {
|
|
120
|
-
let n = Number.isInteger(t) ? (t % 7 + 7) % 7 : 1, r = v(e);
|
|
121
|
-
return x(r, -((r.getDay() - n + 7) % 7));
|
|
119
|
+
function xe(e, t = 1) {
|
|
120
|
+
let n = Number.isInteger(t) ? (t % 7 + 7) % 7 : 1, r = _(e);
|
|
121
|
+
return b(r, -((r.getDay() - n + 7) % 7));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
function b(e, t) {
|
|
124
|
+
return g(e.getFullYear(), e.getMonth(), e.getDate() + t, 0, 0, 0, 0);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return
|
|
126
|
+
function Se(e, t) {
|
|
127
|
+
return g(e.getFullYear(), e.getMonth() + t, e.getDate(), 0, 0, 0, 0);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function Ce(e, t) {
|
|
130
|
+
return g(e.getFullYear() + t, e.getMonth(), e.getDate(), 0, 0, 0, 0);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function we(e, t) {
|
|
133
133
|
return !(e instanceof Date) || !(t instanceof Date) ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region src/formatters/date/calendarPeriod.ts
|
|
137
|
-
var
|
|
137
|
+
var Te = {
|
|
138
138
|
friday: 4,
|
|
139
139
|
saturday: 5,
|
|
140
140
|
sunday: 6
|
|
141
141
|
};
|
|
142
|
-
function
|
|
142
|
+
function Ee(e) {
|
|
143
143
|
return e instanceof Date && Number.isFinite(e.getTime());
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function De(e) {
|
|
146
146
|
return e ?? "sunday";
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Oe(e) {
|
|
149
149
|
return e ?? "day";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
153
|
-
switch (
|
|
151
|
+
function ke(e, t = {}) {
|
|
152
|
+
if (!Ee(e)) return null;
|
|
153
|
+
switch (Oe(t.selectionMode)) {
|
|
154
154
|
case "day": return {
|
|
155
|
-
start:
|
|
156
|
-
end:
|
|
155
|
+
start: _(e),
|
|
156
|
+
end: v(e)
|
|
157
157
|
};
|
|
158
158
|
case "week": {
|
|
159
|
-
let n =
|
|
159
|
+
let n = xe(e), r = Te[De(t.weekEndDay)];
|
|
160
160
|
return {
|
|
161
161
|
start: n,
|
|
162
|
-
end:
|
|
162
|
+
end: v(b(n, r))
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
case "month": return {
|
|
166
|
-
start:
|
|
167
|
-
end:
|
|
166
|
+
start: y(e),
|
|
167
|
+
end: v(g(e.getFullYear(), e.getMonth() + 1, 0))
|
|
168
168
|
};
|
|
169
169
|
case "year": return {
|
|
170
|
-
start:
|
|
171
|
-
end:
|
|
170
|
+
start: be(e),
|
|
171
|
+
end: v(g(e.getFullYear(), 11, 31))
|
|
172
172
|
};
|
|
173
173
|
default: return null;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
178
|
-
let n =
|
|
176
|
+
function Ae(e, t) {
|
|
177
|
+
if (!Ee(e) || !t) return !1;
|
|
178
|
+
let n = _(e).getTime();
|
|
179
179
|
return n >= t.start.getTime() && n <= t.end.getTime();
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return !(!e || t.minDate && e.start.getTime() <
|
|
181
|
+
function je(e, t = {}) {
|
|
182
|
+
return !(!e || t.minDate && e.start.getTime() < _(t.minDate).getTime() || t.maxDate && e.end.getTime() > v(t.maxDate).getTime());
|
|
183
183
|
}
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/formatters/date/dateRange.ts
|
|
186
|
-
var
|
|
187
|
-
function
|
|
186
|
+
var Me = 864e5;
|
|
187
|
+
function x(e) {
|
|
188
188
|
return e instanceof Date && Number.isFinite(e.getTime());
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Ne(e) {
|
|
191
191
|
return Array.isArray(e);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function S(e) {
|
|
194
194
|
return new Date(e.getTime());
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function C(e, t) {
|
|
197
197
|
return e.getTime() <= t.getTime() ? [e, t] : [t, e];
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
if (
|
|
201
|
-
let [t, n] = e, r =
|
|
202
|
-
return r && i ?
|
|
199
|
+
function w(e) {
|
|
200
|
+
if (Ne(e)) {
|
|
201
|
+
let [t, n] = e, r = x(t), i = x(n);
|
|
202
|
+
return r && i ? C(t, n) : r ? [t, t] : i ? [n, n] : null;
|
|
203
203
|
}
|
|
204
|
-
return
|
|
204
|
+
return x(e) ? [e, e] : null;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
let n =
|
|
206
|
+
function T(e, t = {}) {
|
|
207
|
+
let n = w(e);
|
|
208
208
|
if (!n) return null;
|
|
209
209
|
let [r, i] = n;
|
|
210
|
-
return t.timeMode === "preserve" ? [
|
|
210
|
+
return t.timeMode === "preserve" ? [S(r), S(i)] : [_(r), v(i)];
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
let n =
|
|
212
|
+
function Pe(e, t) {
|
|
213
|
+
let n = T(e, t);
|
|
214
214
|
if (!n) throw Error("Диапазон дат не задан");
|
|
215
215
|
return n;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function E(e) {
|
|
218
218
|
return Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
let t =
|
|
220
|
+
function Fe(e) {
|
|
221
|
+
let t = T(e);
|
|
222
222
|
if (!t) return null;
|
|
223
223
|
let [n, r] = t;
|
|
224
|
-
return Math.floor((
|
|
224
|
+
return Math.floor((E(r) - E(n)) / Me) + 1;
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region src/formatters/date/educationDate.ts
|
|
228
|
-
var
|
|
229
|
-
function
|
|
228
|
+
var Ie = /^(\d{4})-(\d{2})-(\d{2})$/, Le = /^(\d{2}):(\d{2})(?::(\d{2}))?$/, Re = 8, ze = 1, Be = 7, Ve = 31, He = 6;
|
|
229
|
+
function D(e, t) {
|
|
230
230
|
return Number.isInteger(e) && e >= 0 && e <= t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
let t = e?.match(
|
|
232
|
+
function O(e) {
|
|
233
|
+
let t = e?.match(Ie);
|
|
234
234
|
if (!t) return null;
|
|
235
|
-
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a =
|
|
235
|
+
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = g(n, r - 1, i);
|
|
236
236
|
return a.getFullYear() === n && a.getMonth() === r - 1 && a.getDate() === i ? a : null;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function k(e) {
|
|
239
239
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Ue(e) {
|
|
242
242
|
return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
let n =
|
|
244
|
+
function We(e, t) {
|
|
245
|
+
let n = O(e), r = t.match(Le);
|
|
246
246
|
if (!n || !r) return null;
|
|
247
247
|
let i = Number(r[1]), a = Number(r[2]), o = Number(r[3] ?? 0);
|
|
248
|
-
return !
|
|
248
|
+
return !D(i, 23) || !D(a, 59) || !D(o, 59) ? null : g(n.getFullYear(), n.getMonth(), n.getDate(), i, a, o);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return e.getMonth() <
|
|
250
|
+
function Ge(e = /* @__PURE__ */ new Date()) {
|
|
251
|
+
return e.getMonth() < Re ? e.getFullYear() - 1 : e.getFullYear();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
let t =
|
|
253
|
+
function Ke(e = /* @__PURE__ */ new Date()) {
|
|
254
|
+
let t = Ge(e);
|
|
255
255
|
return {
|
|
256
256
|
year: t,
|
|
257
|
-
start:
|
|
258
|
-
end:
|
|
257
|
+
start: g(t, Re, ze),
|
|
258
|
+
end: g(t + 1, Be, Ve)
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
let n =
|
|
261
|
+
function A(e, t = /* @__PURE__ */ new Date()) {
|
|
262
|
+
let n = _(e), { start: r, end: i } = Ke(t);
|
|
263
263
|
return n >= r && n <= i;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
let t =
|
|
267
|
-
return
|
|
265
|
+
function j(e) {
|
|
266
|
+
let t = _(e), n = (t.getDay() + 6) % 7;
|
|
267
|
+
return b(t, n === 6 ? 1 : -n);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
269
|
+
function qe(e) {
|
|
270
|
+
let t = j(e);
|
|
271
271
|
return {
|
|
272
272
|
start: t,
|
|
273
|
-
end:
|
|
273
|
+
end: b(t, 5)
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
let t = typeof e == "string" ?
|
|
278
|
-
return Array.from({ length:
|
|
276
|
+
function Je(e) {
|
|
277
|
+
let t = typeof e == "string" ? O(e) ?? j(/* @__PURE__ */ new Date()) : j(e);
|
|
278
|
+
return Array.from({ length: He }, (e, n) => k(b(t, n)));
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function M(e = /* @__PURE__ */ new Date()) {
|
|
281
|
+
return k(j(e));
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
let n =
|
|
285
|
-
if (!n || !
|
|
286
|
-
let r =
|
|
287
|
-
return
|
|
283
|
+
function Ye(e, t = /* @__PURE__ */ new Date()) {
|
|
284
|
+
let n = O(e);
|
|
285
|
+
if (!n || !A(n, t)) return;
|
|
286
|
+
let r = j(n);
|
|
287
|
+
return A(r, t) ? k(r) : void 0;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function Xe(e, t = /* @__PURE__ */ new Date()) {
|
|
290
|
+
return Ye(e, t) ?? M(t);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function Ze(e, t = /* @__PURE__ */ new Date()) {
|
|
293
|
+
return Xe(e, t) === M(t);
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/formatters/date/formatInstantDateTime.ts
|
|
297
|
+
function Qe(e, t) {
|
|
298
|
+
let n = u(e), r = t.fallback ?? "";
|
|
299
|
+
if (!n || n.kind !== "date-time") return r;
|
|
300
|
+
try {
|
|
301
|
+
return new Intl.DateTimeFormat(t.locale ?? "ru-RU", {
|
|
302
|
+
dateStyle: t.dateStyle ?? "medium",
|
|
303
|
+
timeStyle: t.timeStyle ?? "medium",
|
|
304
|
+
timeZone: t.timeZone
|
|
305
|
+
}).format(n.date);
|
|
306
|
+
} catch {
|
|
307
|
+
return r;
|
|
308
|
+
}
|
|
294
309
|
}
|
|
295
310
|
//#endregion
|
|
296
311
|
//#region src/formatters/date/relativeRanges.ts
|
|
297
|
-
function
|
|
298
|
-
return
|
|
312
|
+
function N(e) {
|
|
313
|
+
return _(e);
|
|
299
314
|
}
|
|
300
|
-
function
|
|
301
|
-
let t =
|
|
302
|
-
return [n,
|
|
315
|
+
function $e({ referenceDate: e }) {
|
|
316
|
+
let t = N(e), n = y(t), r = b(t, -1);
|
|
317
|
+
return [n, v(r < n ? n : r)];
|
|
303
318
|
}
|
|
304
|
-
function
|
|
305
|
-
let t =
|
|
306
|
-
return [
|
|
319
|
+
function et({ referenceDate: e }) {
|
|
320
|
+
let t = N(e);
|
|
321
|
+
return [y(t), v(t)];
|
|
307
322
|
}
|
|
308
|
-
function
|
|
309
|
-
let t =
|
|
310
|
-
return [t,
|
|
323
|
+
function tt({ referenceDate: e }) {
|
|
324
|
+
let t = N(e);
|
|
325
|
+
return [t, v(t)];
|
|
311
326
|
}
|
|
312
|
-
function
|
|
313
|
-
let t =
|
|
314
|
-
return [t,
|
|
327
|
+
function nt({ referenceDate: e }) {
|
|
328
|
+
let t = b(N(e), -1);
|
|
329
|
+
return [t, v(t)];
|
|
315
330
|
}
|
|
316
|
-
function
|
|
317
|
-
let t =
|
|
318
|
-
return [
|
|
331
|
+
function rt({ referenceDate: e }) {
|
|
332
|
+
let t = N(e);
|
|
333
|
+
return [_(Se(t, -1)), v(t)];
|
|
319
334
|
}
|
|
320
335
|
//#endregion
|
|
321
336
|
//#region src/formatters/number/compact.ts
|
|
322
|
-
var
|
|
337
|
+
var it = [
|
|
323
338
|
{
|
|
324
339
|
value: 0xe8d4a51000,
|
|
325
340
|
suffix: "трлн"
|
|
@@ -336,12 +351,12 @@ var tt = [
|
|
|
336
351
|
value: 1e3,
|
|
337
352
|
suffix: "тыс"
|
|
338
353
|
}
|
|
339
|
-
],
|
|
354
|
+
], P = {
|
|
340
355
|
minCompactValue: 1e3,
|
|
341
356
|
roundingMode: "trunc",
|
|
342
357
|
suffixSeparator: " "
|
|
343
|
-
},
|
|
344
|
-
function
|
|
358
|
+
}, at = ",";
|
|
359
|
+
function ot(e, t) {
|
|
345
360
|
switch (t) {
|
|
346
361
|
case "round": return Math.round(e);
|
|
347
362
|
case "floor": return Math.floor(e);
|
|
@@ -349,43 +364,43 @@ function rt(e, t) {
|
|
|
349
364
|
case "trunc": return Math.trunc(e);
|
|
350
365
|
}
|
|
351
366
|
}
|
|
352
|
-
function
|
|
353
|
-
if (t === 0) return
|
|
367
|
+
function st(e, t, n) {
|
|
368
|
+
if (t === 0) return ot(e, n);
|
|
354
369
|
let r = 10 ** t;
|
|
355
|
-
return
|
|
370
|
+
return ot(e * r, n) / r;
|
|
356
371
|
}
|
|
357
|
-
function
|
|
372
|
+
function ct(e) {
|
|
358
373
|
return e >= 10 ? 0 : 1;
|
|
359
374
|
}
|
|
360
|
-
function
|
|
375
|
+
function lt(e, t) {
|
|
361
376
|
if (t === 0) return 0;
|
|
362
377
|
let n = e.toFixed(t), r = n.indexOf(".");
|
|
363
378
|
return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length;
|
|
364
379
|
}
|
|
365
|
-
function
|
|
380
|
+
function ut(e, t) {
|
|
366
381
|
return t.findIndex((t) => e >= t.value);
|
|
367
382
|
}
|
|
368
|
-
function
|
|
383
|
+
function dt(e, t) {
|
|
369
384
|
return {
|
|
370
385
|
name: e.name,
|
|
371
386
|
decimals: t,
|
|
372
|
-
decimalSeparator: t > 0 ? e.decimalSeparator ||
|
|
387
|
+
decimalSeparator: t > 0 ? e.decimalSeparator || at : e.decimalSeparator,
|
|
373
388
|
grouping: e.grouping,
|
|
374
389
|
groupingSeparator: e.groupingSeparator,
|
|
375
390
|
groupingSize: e.groupingSize
|
|
376
391
|
};
|
|
377
392
|
}
|
|
378
|
-
function
|
|
393
|
+
function F(e, t, n, r, i) {
|
|
379
394
|
let a = n.units[t];
|
|
380
395
|
if (!a) return i(e, r);
|
|
381
|
-
let o = e / a.value, s = n.maxDecimals ??
|
|
382
|
-
return c >= 1e3 && t > 0 ?
|
|
396
|
+
let o = e / a.value, s = n.maxDecimals ?? ct(o), c = st(o, s, n.roundingMode);
|
|
397
|
+
return c >= 1e3 && t > 0 ? F(e, t - 1, n, r, i) : `${i(c, dt(r, lt(c, s)))}${n.suffixSeparator}${a.suffix}`;
|
|
383
398
|
}
|
|
384
|
-
function
|
|
385
|
-
let { minCompactValue: t =
|
|
399
|
+
function ft(e) {
|
|
400
|
+
let { minCompactValue: t = P.minCompactValue, roundingMode: n = P.roundingMode, suffixSeparator: r = P.suffixSeparator, maxDecimals: i, units: a = it } = e.options, o = Math.abs(e.value);
|
|
386
401
|
if (o < t) return e.formatPlainNumber(e.value, e.preset);
|
|
387
|
-
let s =
|
|
388
|
-
return s === -1 ? e.formatPlainNumber(e.value, e.preset) : `${e.value < 0 ? "-" : ""}${
|
|
402
|
+
let s = ut(o, a);
|
|
403
|
+
return s === -1 ? e.formatPlainNumber(e.value, e.preset) : `${e.value < 0 ? "-" : ""}${F(o, s, {
|
|
389
404
|
roundingMode: n,
|
|
390
405
|
suffixSeparator: r,
|
|
391
406
|
maxDecimals: i,
|
|
@@ -394,112 +409,112 @@ function lt(e) {
|
|
|
394
409
|
}
|
|
395
410
|
//#endregion
|
|
396
411
|
//#region src/formatters/number/isZeroValue.ts
|
|
397
|
-
function
|
|
412
|
+
function I(e) {
|
|
398
413
|
let t = o(e);
|
|
399
414
|
return typeof t == "number" ? t === 0 : typeof t == "bigint" && t === 0n;
|
|
400
415
|
}
|
|
401
416
|
//#endregion
|
|
402
417
|
//#region src/formatters/number/formatNumber.ts
|
|
403
|
-
var
|
|
404
|
-
function
|
|
418
|
+
var L = /* @__PURE__ */ new Map();
|
|
419
|
+
function pt(e, t) {
|
|
405
420
|
if (t === 0) return Math.trunc(e);
|
|
406
421
|
let n = 10 ** t;
|
|
407
422
|
return Math.trunc(e * n) / n;
|
|
408
423
|
}
|
|
409
|
-
function
|
|
410
|
-
let n = `${e}:${+!!t}`, r =
|
|
424
|
+
function R(e, t) {
|
|
425
|
+
let n = `${e}:${+!!t}`, r = L.get(n);
|
|
411
426
|
return r || (r = new Intl.NumberFormat("ru-RU", {
|
|
412
427
|
minimumFractionDigits: e,
|
|
413
428
|
maximumFractionDigits: e,
|
|
414
429
|
useGrouping: t
|
|
415
|
-
}),
|
|
430
|
+
}), L.set(n, r)), r;
|
|
416
431
|
}
|
|
417
|
-
function
|
|
418
|
-
return e.groupingSize === 3 && (e.groupingSeparator ===
|
|
432
|
+
function mt(e) {
|
|
433
|
+
return e.groupingSize === 3 && (e.groupingSeparator === ie.groupingSeparator || !e.grouping) && (e.decimalSeparator === "," || e.decimals === 0);
|
|
419
434
|
}
|
|
420
|
-
function
|
|
421
|
-
return
|
|
435
|
+
function ht(e, t, n) {
|
|
436
|
+
return R(t, n).format(e);
|
|
422
437
|
}
|
|
423
|
-
function
|
|
424
|
-
let n =
|
|
438
|
+
function gt(e, t) {
|
|
439
|
+
let n = R(t.decimals, t.grouping).formatToParts(e), r = "";
|
|
425
440
|
for (let e of n) e.type === "group" ? r += t.groupingSeparator : e.type === "decimal" ? r += t.decimalSeparator : r += e.value;
|
|
426
441
|
return r;
|
|
427
442
|
}
|
|
428
|
-
function
|
|
429
|
-
let n =
|
|
443
|
+
function _t(e, t) {
|
|
444
|
+
let n = R(t.decimals, !1).format(e), r = n.indexOf(","), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? null : n.slice(r + 1), o = i.startsWith("-"), s = o ? i.slice(1) : i, c = t.groupingSize, l = [];
|
|
430
445
|
for (let e = s.length; e > 0; e -= c) l.unshift(s.slice(Math.max(0, e - c), e));
|
|
431
446
|
let u = (o ? "-" : "") + l.join(t.groupingSeparator);
|
|
432
447
|
return a !== null && (u += t.decimalSeparator + a), u;
|
|
433
448
|
}
|
|
434
|
-
function
|
|
435
|
-
return
|
|
449
|
+
function z(e, t) {
|
|
450
|
+
return mt(t) ? ht(e, t.decimals, t.grouping) : t.groupingSize === 3 || !t.grouping ? gt(e, t) : _t(e, t);
|
|
436
451
|
}
|
|
437
|
-
function
|
|
452
|
+
function B(e, t) {
|
|
438
453
|
if (typeof e == "string" && e.trim() === "") return "0";
|
|
439
454
|
let n = Number(e);
|
|
440
455
|
if (!Number.isFinite(n)) return "0";
|
|
441
|
-
let r =
|
|
442
|
-
return r.compact ?
|
|
456
|
+
let r = te(t);
|
|
457
|
+
return r.compact ? ft({
|
|
443
458
|
value: n,
|
|
444
459
|
preset: r,
|
|
445
460
|
options: r.compact,
|
|
446
|
-
formatPlainNumber:
|
|
447
|
-
}) :
|
|
448
|
-
}
|
|
449
|
-
function ht(e) {
|
|
450
|
-
return V(e, p.integer);
|
|
451
|
-
}
|
|
452
|
-
function gt(e) {
|
|
453
|
-
return V(e, p.currency);
|
|
454
|
-
}
|
|
455
|
-
function _t(e) {
|
|
456
|
-
return V(e, p.decimal);
|
|
461
|
+
formatPlainNumber: z
|
|
462
|
+
}) : z(n, r);
|
|
457
463
|
}
|
|
458
464
|
function vt(e) {
|
|
459
|
-
return
|
|
465
|
+
return B(e, f.integer);
|
|
460
466
|
}
|
|
461
467
|
function yt(e) {
|
|
462
|
-
return
|
|
468
|
+
return B(e, f.currency);
|
|
463
469
|
}
|
|
464
470
|
function bt(e) {
|
|
465
|
-
return
|
|
471
|
+
return B(e, f.decimal);
|
|
466
472
|
}
|
|
467
473
|
function xt(e) {
|
|
468
|
-
return
|
|
474
|
+
return B(e, f.decimal2);
|
|
469
475
|
}
|
|
470
476
|
function St(e) {
|
|
471
|
-
return
|
|
477
|
+
return B(e, f.decimal3);
|
|
472
478
|
}
|
|
473
479
|
function Ct(e) {
|
|
474
|
-
return
|
|
480
|
+
return B(e, f.percent);
|
|
475
481
|
}
|
|
476
482
|
function wt(e) {
|
|
477
|
-
return
|
|
483
|
+
return B(e, f.price);
|
|
478
484
|
}
|
|
479
485
|
function Tt(e) {
|
|
480
|
-
return
|
|
486
|
+
return B(e, f.tonnage);
|
|
481
487
|
}
|
|
482
488
|
function Et(e) {
|
|
483
|
-
return
|
|
489
|
+
return I(e) ? "" : B(e, f.integer);
|
|
484
490
|
}
|
|
485
491
|
function Dt(e) {
|
|
486
|
-
return
|
|
492
|
+
return I(e) ? "" : B(e, f.currency);
|
|
487
493
|
}
|
|
488
494
|
function Ot(e) {
|
|
489
|
-
return
|
|
495
|
+
return I(e) ? "" : B(e, f.decimal);
|
|
490
496
|
}
|
|
491
497
|
function kt(e) {
|
|
492
|
-
return
|
|
498
|
+
return I(e) ? "" : B(e, f.decimal2);
|
|
493
499
|
}
|
|
494
500
|
function At(e) {
|
|
495
|
-
return
|
|
501
|
+
return I(e) ? "" : B(e, f.decimal3);
|
|
502
|
+
}
|
|
503
|
+
function jt(e) {
|
|
504
|
+
return I(e) ? "" : B(e, f.percent);
|
|
505
|
+
}
|
|
506
|
+
function Mt(e) {
|
|
507
|
+
return I(e) ? "" : B(e, f.price);
|
|
496
508
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
509
|
+
function Nt(e) {
|
|
510
|
+
return I(e) ? "" : B(e, f.tonnage);
|
|
511
|
+
}
|
|
512
|
+
function Pt() {
|
|
513
|
+
L.clear();
|
|
499
514
|
}
|
|
500
515
|
//#endregion
|
|
501
516
|
//#region src/formatters/normalizeLeadingZeros.ts
|
|
502
|
-
function
|
|
517
|
+
function V(e, t) {
|
|
503
518
|
let n = typeof e == "number" ? e : Number(e);
|
|
504
519
|
if (!Number.isFinite(n)) return e;
|
|
505
520
|
let r = String(n);
|
|
@@ -513,11 +528,11 @@ function Mt(e, t) {
|
|
|
513
528
|
}
|
|
514
529
|
return r;
|
|
515
530
|
}
|
|
516
|
-
function
|
|
531
|
+
function Ft(e, t) {
|
|
517
532
|
if (!t || !Number.isFinite(t)) return e;
|
|
518
533
|
if (typeof e == "number") {
|
|
519
534
|
if (!Number.isFinite(e)) return e;
|
|
520
|
-
let n =
|
|
535
|
+
let n = It(String(e), t), r = Number(n);
|
|
521
536
|
return Number.isFinite(r) ? r : e;
|
|
522
537
|
}
|
|
523
538
|
if (typeof e == "string") {
|
|
@@ -529,11 +544,11 @@ function Nt(e, t) {
|
|
|
529
544
|
break;
|
|
530
545
|
}
|
|
531
546
|
}
|
|
532
|
-
return !n || o(e) === void 0 ? e :
|
|
547
|
+
return !n || o(e) === void 0 ? e : It(e, t);
|
|
533
548
|
}
|
|
534
549
|
return e;
|
|
535
550
|
}
|
|
536
|
-
function
|
|
551
|
+
function It(e, t) {
|
|
537
552
|
let n = e.trim();
|
|
538
553
|
if (!n) return e;
|
|
539
554
|
let r = 0, i = "", a = n.charCodeAt(0);
|
|
@@ -547,7 +562,7 @@ function Pt(e, t) {
|
|
|
547
562
|
}
|
|
548
563
|
}
|
|
549
564
|
let s = o === -1 ? n.length : o, c = o === -1 ? "" : n.slice(o), l = n.slice(r, s);
|
|
550
|
-
l =
|
|
565
|
+
l = fe(l), l.length === 0 && (l = "0");
|
|
551
566
|
let u = t | 0;
|
|
552
567
|
if (u <= 0) {
|
|
553
568
|
let e = 0;
|
|
@@ -588,7 +603,7 @@ function G(e) {
|
|
|
588
603
|
icon: e.icon ? { ...e.icon } : void 0
|
|
589
604
|
};
|
|
590
605
|
}
|
|
591
|
-
function
|
|
606
|
+
function Lt(e) {
|
|
592
607
|
switch (e.type) {
|
|
593
608
|
case "typedValueFormat": return {
|
|
594
609
|
...e,
|
|
@@ -609,7 +624,7 @@ function Ft(e) {
|
|
|
609
624
|
}
|
|
610
625
|
throw Error(`Недопустимый тип '${e?.type}' для шага FormatterPipeline`);
|
|
611
626
|
}
|
|
612
|
-
function
|
|
627
|
+
function Rt(e, t) {
|
|
613
628
|
switch (e.type) {
|
|
614
629
|
case "typedValueFormat": return {
|
|
615
630
|
...e,
|
|
@@ -634,37 +649,37 @@ function It(e, t) {
|
|
|
634
649
|
}
|
|
635
650
|
throw Error(`Недопустимый тип '${e?.type}' для шага FormatterPipeline`);
|
|
636
651
|
}
|
|
637
|
-
function
|
|
652
|
+
function zt(e) {
|
|
638
653
|
switch (e.type) {
|
|
639
654
|
case "source":
|
|
640
655
|
case "sink": return {
|
|
641
656
|
...e,
|
|
642
657
|
position: { ...e.position }
|
|
643
658
|
};
|
|
644
|
-
default: return
|
|
659
|
+
default: return Rt(e, e.position);
|
|
645
660
|
}
|
|
646
661
|
}
|
|
647
|
-
function
|
|
662
|
+
function Bt(e) {
|
|
648
663
|
return {
|
|
649
|
-
nodes: e.nodes.map(
|
|
664
|
+
nodes: e.nodes.map(zt),
|
|
650
665
|
edges: e.edges.map((e) => ({ ...e })),
|
|
651
666
|
viewport: e.viewport ? { ...e.viewport } : void 0
|
|
652
667
|
};
|
|
653
668
|
}
|
|
654
|
-
function
|
|
655
|
-
return { steps: e.steps.map(
|
|
669
|
+
function Vt(e) {
|
|
670
|
+
return { steps: e.steps.map(Lt) };
|
|
656
671
|
}
|
|
657
|
-
function
|
|
672
|
+
function Ht(e) {
|
|
658
673
|
if (e) return {
|
|
659
674
|
version: e.version,
|
|
660
|
-
graph: e.graph ?
|
|
661
|
-
plan: e.plan ?
|
|
675
|
+
graph: e.graph ? Bt(e.graph) : void 0,
|
|
676
|
+
plan: e.plan ? Vt(e.plan) : void 0
|
|
662
677
|
};
|
|
663
678
|
}
|
|
664
679
|
//#endregion
|
|
665
680
|
//#region src/formatters/pipeline/dependencies.ts
|
|
666
|
-
function
|
|
667
|
-
let n =
|
|
681
|
+
function Ut(e) {
|
|
682
|
+
let n = p(e);
|
|
668
683
|
if (!n.ok || !n.plan) return [];
|
|
669
684
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
670
685
|
for (let e of n.plan.steps) if (e.type === "rowBasedOverride") {
|
|
@@ -676,7 +691,7 @@ function Vt(e) {
|
|
|
676
691
|
}
|
|
677
692
|
return r;
|
|
678
693
|
}
|
|
679
|
-
function
|
|
694
|
+
function Wt(e, n) {
|
|
680
695
|
let r = [], i = [], a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = (e) => {
|
|
681
696
|
let s = e?.trim();
|
|
682
697
|
if (s) {
|
|
@@ -691,7 +706,7 @@ function Ht(e, n) {
|
|
|
691
706
|
let e = n[t];
|
|
692
707
|
if (e) {
|
|
693
708
|
for (let t of Object.values(e.cellRenderer?.bindings ?? {})) s(t);
|
|
694
|
-
for (let t of
|
|
709
|
+
for (let t of Ut(e.formattersPipeline)) s(t);
|
|
695
710
|
}
|
|
696
711
|
}
|
|
697
712
|
return {
|
|
@@ -702,7 +717,7 @@ function Ht(e, n) {
|
|
|
702
717
|
//#endregion
|
|
703
718
|
//#region src/formatters/valueState/valueStateRegistry.ts
|
|
704
719
|
var K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
|
|
705
|
-
function
|
|
720
|
+
function Gt(e) {
|
|
706
721
|
let t = 5381;
|
|
707
722
|
for (let n = 0; n < e.length; n++) t = (t << 5) + t + e.charCodeAt(n) >>> 0;
|
|
708
723
|
return "id_" + t.toString(36);
|
|
@@ -713,7 +728,7 @@ function J(e, t) {
|
|
|
713
728
|
id: n,
|
|
714
729
|
isNew: !1
|
|
715
730
|
};
|
|
716
|
-
let r =
|
|
731
|
+
let r = Gt(e), i = t();
|
|
717
732
|
return K.set(r, i), q.set(e, r), {
|
|
718
733
|
id: r,
|
|
719
734
|
isNew: !0
|
|
@@ -723,25 +738,25 @@ function Y(e) {
|
|
|
723
738
|
let t = q.get(e);
|
|
724
739
|
if (t) return K.get(t);
|
|
725
740
|
}
|
|
726
|
-
function
|
|
741
|
+
function Kt(e, t) {
|
|
727
742
|
let n = K.get(e);
|
|
728
743
|
return n ? n(t) : "none";
|
|
729
744
|
}
|
|
730
|
-
function
|
|
745
|
+
function qt(e) {
|
|
731
746
|
return K.get(e);
|
|
732
747
|
}
|
|
733
|
-
function
|
|
748
|
+
function Jt() {
|
|
734
749
|
return Array.from(K.keys());
|
|
735
750
|
}
|
|
736
|
-
function
|
|
751
|
+
function Yt() {
|
|
737
752
|
K.clear(), q.clear();
|
|
738
753
|
}
|
|
739
754
|
//#endregion
|
|
740
755
|
//#region src/formatters/valueState/fixedValueStateResolver.ts
|
|
741
|
-
function
|
|
756
|
+
function Xt(e, t) {
|
|
742
757
|
return `fixed|${e.map(([e, t]) => `${e}:${t}`).join(",")}|${t}`;
|
|
743
758
|
}
|
|
744
|
-
function
|
|
759
|
+
function Zt(e, t) {
|
|
745
760
|
let n = new Map(Object.entries(e));
|
|
746
761
|
return (e) => {
|
|
747
762
|
if (e == null) return t;
|
|
@@ -749,25 +764,25 @@ function Yt(e, t) {
|
|
|
749
764
|
return n.get(r) ?? t;
|
|
750
765
|
};
|
|
751
766
|
}
|
|
752
|
-
function
|
|
753
|
-
let t = e.fallbackState ?? "none", n =
|
|
767
|
+
function Qt(e) {
|
|
768
|
+
let t = e.fallbackState ?? "none", n = Xt(Object.entries(e.entries).sort(([e], [t]) => ae(e, t)), t);
|
|
754
769
|
return {
|
|
755
770
|
entries: e.entries,
|
|
756
771
|
fallbackState: t,
|
|
757
772
|
canonicalKey: n
|
|
758
773
|
};
|
|
759
774
|
}
|
|
760
|
-
function
|
|
761
|
-
let { entries: t, fallbackState: n, canonicalKey: r } =
|
|
775
|
+
function $t(e) {
|
|
776
|
+
let { entries: t, fallbackState: n, canonicalKey: r } = Qt(e), { id: i } = J(r, () => Zt(t, n));
|
|
762
777
|
return i;
|
|
763
778
|
}
|
|
764
|
-
function
|
|
765
|
-
let { entries: t, fallbackState: n, canonicalKey: r } =
|
|
766
|
-
return Y(r) || (J(r, () =>
|
|
779
|
+
function en(e) {
|
|
780
|
+
let { entries: t, fallbackState: n, canonicalKey: r } = Qt(e);
|
|
781
|
+
return Y(r) || (J(r, () => Zt(t, n)), Y(r));
|
|
767
782
|
}
|
|
768
783
|
//#endregion
|
|
769
784
|
//#region src/formatters/valueState/thresholdValueStateResolver.ts
|
|
770
|
-
function
|
|
785
|
+
function tn(e) {
|
|
771
786
|
return typeof e == "number" ? {
|
|
772
787
|
value: e,
|
|
773
788
|
boundary: "upper"
|
|
@@ -776,15 +791,15 @@ function $t(e) {
|
|
|
776
791
|
boundary: e.boundary ?? "upper"
|
|
777
792
|
};
|
|
778
793
|
}
|
|
779
|
-
function
|
|
794
|
+
function nn(e, t, n) {
|
|
780
795
|
return `threshold|${e.map((e) => `${e.value}:${e.boundary}`).join(",")}|${t.join(",")}|${n}`;
|
|
781
796
|
}
|
|
782
|
-
function
|
|
797
|
+
function rn(e, t) {
|
|
783
798
|
if (t.length !== e.length + 1) throw Error(`Количество состояний (${t.length}) должно быть равно количеству порогов + 1 (${e.length + 1})`);
|
|
784
799
|
let n = /* @__PURE__ */ new Set();
|
|
785
800
|
for (let t of e) n.has(t.value) && console.warn(`Дублирующееся пороговое значение: ${t.value}`), n.add(t.value);
|
|
786
801
|
}
|
|
787
|
-
function
|
|
802
|
+
function an(e, t, n) {
|
|
788
803
|
let r = e.map((e) => e.value), i = e.map((e) => e.boundary === "lower"), a = [...t];
|
|
789
804
|
return (e) => {
|
|
790
805
|
if (e === "" || e == null) return n;
|
|
@@ -794,46 +809,46 @@ function nn(e, t, n) {
|
|
|
794
809
|
return a[a.length - 1];
|
|
795
810
|
};
|
|
796
811
|
}
|
|
797
|
-
function
|
|
798
|
-
let t = e.invalidState ?? "none", n = e.thresholds.map(
|
|
799
|
-
return
|
|
812
|
+
function on(e) {
|
|
813
|
+
let t = e.invalidState ?? "none", n = e.thresholds.map(tn).sort((e, t) => e.value - t.value);
|
|
814
|
+
return rn(n, e.states), {
|
|
800
815
|
sortedThresholds: n,
|
|
801
816
|
invalidState: t,
|
|
802
|
-
canonicalKey:
|
|
817
|
+
canonicalKey: nn(n, e.states, t),
|
|
803
818
|
states: e.states
|
|
804
819
|
};
|
|
805
820
|
}
|
|
806
|
-
function
|
|
807
|
-
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } =
|
|
821
|
+
function sn(e) {
|
|
822
|
+
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } = on(e), { id: a } = J(r, () => an(t, i, n));
|
|
808
823
|
return a;
|
|
809
824
|
}
|
|
810
|
-
function
|
|
811
|
-
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } =
|
|
812
|
-
return Y(r) || (J(r, () =>
|
|
825
|
+
function cn(e) {
|
|
826
|
+
let { sortedThresholds: t, invalidState: n, canonicalKey: r, states: i } = on(e);
|
|
827
|
+
return Y(r) || (J(r, () => an(t, i, n)), Y(r));
|
|
813
828
|
}
|
|
814
829
|
//#endregion
|
|
815
830
|
//#region src/formatters/pipeline/execute.ts
|
|
816
|
-
var
|
|
831
|
+
var ln = Object.freeze({
|
|
817
832
|
number: "decimal",
|
|
818
833
|
date: "date"
|
|
819
834
|
});
|
|
820
835
|
function X(e, t, r) {
|
|
821
|
-
if (!
|
|
836
|
+
if (!oe(e)) return "";
|
|
822
837
|
let i = c(t.type);
|
|
823
838
|
if (i === "number") {
|
|
824
839
|
let t = r?.numberPresetName?.trim();
|
|
825
|
-
return
|
|
840
|
+
return B(e, t && d(t) ? t : ln.number);
|
|
826
841
|
}
|
|
827
842
|
if (i === "date") {
|
|
828
|
-
let t = r?.datePresetName?.trim(), n = t && s(t) ? t :
|
|
843
|
+
let t = r?.datePresetName?.trim(), n = t && s(t) ? t : ln.date;
|
|
829
844
|
return a(l(e), n);
|
|
830
845
|
}
|
|
831
846
|
return n(e);
|
|
832
847
|
}
|
|
833
|
-
function
|
|
848
|
+
function un(e) {
|
|
834
849
|
if (e === "success" || e === "warning" || e === "error" || e === "information") return e;
|
|
835
850
|
}
|
|
836
|
-
function
|
|
851
|
+
function dn(e, t) {
|
|
837
852
|
switch (e.rowKind) {
|
|
838
853
|
case "group":
|
|
839
854
|
case "plain":
|
|
@@ -841,8 +856,8 @@ function ln(e, t) {
|
|
|
841
856
|
case "totals": return t === "formula";
|
|
842
857
|
}
|
|
843
858
|
}
|
|
844
|
-
function
|
|
845
|
-
let t =
|
|
859
|
+
function fn(e) {
|
|
860
|
+
let t = p(e.config);
|
|
846
861
|
if (!t.ok || !t.plan) return t.errors.some((e) => e.code === "step_row_based_override_formula_not_found") ? {
|
|
847
862
|
ok: !1,
|
|
848
863
|
reason: "row_based_formula_not_found"
|
|
@@ -850,14 +865,14 @@ function un(e) {
|
|
|
850
865
|
ok: !1,
|
|
851
866
|
reason: "pipeline_invalid"
|
|
852
867
|
};
|
|
853
|
-
let { steps: n } = t.plan, r = n.some((e) => e.type === "rowBasedOverride"), i = n.some((e) => e.type === "typedValueFormat"), a = n.find((e) => e.type === "resolveValueState"), o = a?.config.resolver.kind === "fixed" ?
|
|
868
|
+
let { steps: n } = t.plan, r = n.some((e) => e.type === "rowBasedOverride"), i = n.some((e) => e.type === "typedValueFormat"), a = n.find((e) => e.type === "resolveValueState"), o = a?.config.resolver.kind === "fixed" ? $t({
|
|
854
869
|
entries: a.config.resolver.entries,
|
|
855
870
|
fallbackState: a.config.resolver.fallbackState
|
|
856
|
-
}) : a?.config.resolver.kind === "threshold" ?
|
|
871
|
+
}) : a?.config.resolver.kind === "threshold" ? sn({
|
|
857
872
|
thresholds: a.config.resolver.thresholds,
|
|
858
873
|
states: a.config.resolver.states,
|
|
859
874
|
invalidState: a.config.resolver.invalidState
|
|
860
|
-
}) : void 0, s = n.find((e) => e.type === "rowBasedOverride"), c = s?.config.mode === "formula" ?
|
|
875
|
+
}) : void 0, s = n.find((e) => e.type === "rowBasedOverride"), c = s?.config.mode === "formula" ? re(s.config.formulaId) : void 0;
|
|
861
876
|
return s?.config.mode === "formula" && !c ? {
|
|
862
877
|
ok: !1,
|
|
863
878
|
reason: "row_based_formula_not_found"
|
|
@@ -867,13 +882,13 @@ function un(e) {
|
|
|
867
882
|
hasRowBasedOverride: r,
|
|
868
883
|
hasTypedValueFormat: i,
|
|
869
884
|
execute: (t) => {
|
|
870
|
-
let r = t.value, a = "none", s = !1, l = !0,
|
|
885
|
+
let r = t.value, a = "none", s = !1, l = !0, u = "left", d;
|
|
871
886
|
for (let i of n) switch (i.type) {
|
|
872
887
|
case "normalizeLeadingZeros":
|
|
873
|
-
r =
|
|
888
|
+
r = V(r, i.config?.fixed);
|
|
874
889
|
break;
|
|
875
890
|
case "rowBasedOverride":
|
|
876
|
-
if (!
|
|
891
|
+
if (!dn(t, i.config.mode)) break;
|
|
877
892
|
if (i.config.mode === "field") {
|
|
878
893
|
let e = t.rowData[i.config.fieldKey];
|
|
879
894
|
if (e == null && i.config.fallbackToRaw !== !1) break;
|
|
@@ -882,7 +897,7 @@ function un(e) {
|
|
|
882
897
|
}
|
|
883
898
|
if (!c) break;
|
|
884
899
|
try {
|
|
885
|
-
let e = c.fn(
|
|
900
|
+
let e = c.fn(ee({
|
|
886
901
|
rowData: t.rowData,
|
|
887
902
|
rawValue: r,
|
|
888
903
|
columnId: t.columnId,
|
|
@@ -896,17 +911,17 @@ function un(e) {
|
|
|
896
911
|
break;
|
|
897
912
|
case "resolveValueState":
|
|
898
913
|
if (!o) break;
|
|
899
|
-
a =
|
|
914
|
+
a = Kt(o, r), s = i.config.icon?.enabled ?? !1, l = i.config.icon?.showValue ?? !0, u = i.config.icon?.position ?? "left", d = s ? un(a) : void 0;
|
|
900
915
|
break;
|
|
901
916
|
case "typedValueFormat": r = X(r, e.column, i.config);
|
|
902
917
|
}
|
|
903
918
|
return {
|
|
904
919
|
value: r,
|
|
905
920
|
state: a,
|
|
906
|
-
icon:
|
|
921
|
+
icon: d,
|
|
907
922
|
showIcon: s,
|
|
908
923
|
showValue: l,
|
|
909
|
-
iconPosition:
|
|
924
|
+
iconPosition: u,
|
|
910
925
|
hasTypedValueFormat: i
|
|
911
926
|
};
|
|
912
927
|
}
|
|
@@ -915,7 +930,7 @@ function un(e) {
|
|
|
915
930
|
}
|
|
916
931
|
//#endregion
|
|
917
932
|
//#region src/formatters/pipeline/normalize.ts
|
|
918
|
-
var
|
|
933
|
+
var pn = [
|
|
919
934
|
"",
|
|
920
935
|
"none",
|
|
921
936
|
"information",
|
|
@@ -924,55 +939,55 @@ var dn = [
|
|
|
924
939
|
"error"
|
|
925
940
|
];
|
|
926
941
|
function Z(e) {
|
|
927
|
-
return typeof e == "string" &&
|
|
942
|
+
return typeof e == "string" && pn.some((t) => t === e);
|
|
928
943
|
}
|
|
929
944
|
function Q(e) {
|
|
930
945
|
return e === void 0 || typeof e == "boolean";
|
|
931
946
|
}
|
|
932
|
-
function fn(e) {
|
|
933
|
-
return e === void 0 || typeof e == "string";
|
|
934
|
-
}
|
|
935
|
-
function pn(e) {
|
|
936
|
-
return e === void 0 ? !0 : r(e) ? fn(e.numberPresetName) && fn(e.datePresetName) : !1;
|
|
937
|
-
}
|
|
938
947
|
function mn(e) {
|
|
939
|
-
return
|
|
948
|
+
return e === void 0 || typeof e == "string";
|
|
940
949
|
}
|
|
941
950
|
function hn(e) {
|
|
942
|
-
return
|
|
951
|
+
return e === void 0 ? !0 : r(e) ? mn(e.numberPresetName) && mn(e.datePresetName) : !1;
|
|
943
952
|
}
|
|
944
953
|
function gn(e) {
|
|
945
|
-
|
|
946
|
-
let { resolver: t, icon: n } = e;
|
|
947
|
-
return n === void 0 || r(n) && Q(n.enabled) && Q(n.showValue) && (n.position === void 0 || n.position === "left" || n.position === "right") ? t.kind === "fixed" ? r(t.entries) && Object.values(t.entries).every(Z) && (t.fallbackState === void 0 || Z(t.fallbackState)) : t.kind === "threshold" && Array.isArray(t.thresholds) && t.thresholds.every(hn) && Array.isArray(t.states) && t.states.every(Z) && (t.invalidState === void 0 || Z(t.invalidState)) : !1;
|
|
954
|
+
return r(e) ? e.mode === "field" ? typeof e.fieldKey == "string" && Q(e.fallbackToRaw) : e.mode === "formula" && typeof e.formulaId == "string" && (e.dependencyIds === void 0 || Array.isArray(e.dependencyIds) && e.dependencyIds.every((e) => typeof e == "string")) && Q(e.fallbackToRaw) : !1;
|
|
948
955
|
}
|
|
949
956
|
function _n(e) {
|
|
950
|
-
return
|
|
951
|
-
}
|
|
952
|
-
function $(e) {
|
|
953
|
-
return r(e) && Array.isArray(e.steps) && e.steps.every(_n);
|
|
957
|
+
return typeof e == "number" || r(e) && typeof e.value == "number" && (e.boundary === void 0 || e.boundary === "lower" || e.boundary === "upper");
|
|
954
958
|
}
|
|
955
959
|
function vn(e) {
|
|
956
|
-
|
|
960
|
+
if (!r(e) || !r(e.resolver)) return !1;
|
|
961
|
+
let { resolver: t, icon: n } = e;
|
|
962
|
+
return n === void 0 || r(n) && Q(n.enabled) && Q(n.showValue) && (n.position === void 0 || n.position === "left" || n.position === "right") ? t.kind === "fixed" ? r(t.entries) && Object.values(t.entries).every(Z) && (t.fallbackState === void 0 || Z(t.fallbackState)) : t.kind === "threshold" && Array.isArray(t.thresholds) && t.thresholds.every(_n) && Array.isArray(t.states) && t.states.every(Z) && (t.invalidState === void 0 || Z(t.invalidState)) : !1;
|
|
957
963
|
}
|
|
958
964
|
function yn(e) {
|
|
959
|
-
return !r(e) || typeof e.id != "string" ||
|
|
965
|
+
return !r(e) || typeof e.id != "string" ? !1 : e.type === "normalizeLeadingZeros" ? e.config === void 0 || r(e.config) && (e.config.fixed === void 0 || typeof e.config.fixed == "number") : e.type === "rowBasedOverride" ? gn(e.config) : e.type === "resolveValueState" ? vn(e.config) : e.type === "typedValueFormat" && hn(e.config);
|
|
960
966
|
}
|
|
961
967
|
function bn(e) {
|
|
962
|
-
return r(e) &&
|
|
968
|
+
return r(e) && Array.isArray(e.steps) && e.steps.every(yn);
|
|
963
969
|
}
|
|
964
970
|
function xn(e) {
|
|
965
|
-
return r(e) &&
|
|
971
|
+
return r(e) && typeof e.x == "number" && typeof e.y == "number";
|
|
966
972
|
}
|
|
967
973
|
function Sn(e) {
|
|
968
|
-
return r(e)
|
|
974
|
+
return !r(e) || typeof e.id != "string" || !xn(e.position) ? !1 : e.type === "source" || e.type === "sink" || yn(e);
|
|
969
975
|
}
|
|
970
976
|
function Cn(e) {
|
|
971
|
-
|
|
977
|
+
return r(e) && typeof e.id == "string" && typeof e.source == "string" && typeof e.target == "string";
|
|
978
|
+
}
|
|
979
|
+
function $(e) {
|
|
980
|
+
return r(e) && Array.isArray(e.nodes) && e.nodes.every(Sn) && Array.isArray(e.edges) && e.edges.every(Cn);
|
|
981
|
+
}
|
|
982
|
+
function wn(e) {
|
|
983
|
+
return r(e) && e.version === 1 && (e.plan === void 0 || bn(e.plan)) && (e.graph === void 0 || $(e.graph)) && (bn(e.plan) || $(e.graph));
|
|
984
|
+
}
|
|
985
|
+
function Tn(e) {
|
|
986
|
+
if (wn(e) && p(e).ok) return Ht(e);
|
|
972
987
|
}
|
|
973
988
|
//#endregion
|
|
974
989
|
//#region src/formatters/pipeline/definitions.ts
|
|
975
|
-
var
|
|
990
|
+
var En = Object.freeze([
|
|
976
991
|
{
|
|
977
992
|
id: "normalizeLeadingZeros",
|
|
978
993
|
name: "Нормализация ведущих нулей",
|
|
@@ -993,19 +1008,19 @@ var wn = Object.freeze([
|
|
|
993
1008
|
name: "Типизированное форматирование",
|
|
994
1009
|
description: "Формирует итоговый внешний вид значения по типу и роли столбца."
|
|
995
1010
|
}
|
|
996
|
-
]),
|
|
997
|
-
function
|
|
998
|
-
return
|
|
1011
|
+
]), Dn = new Map(En.map((e) => [e.id, e]));
|
|
1012
|
+
function On() {
|
|
1013
|
+
return En;
|
|
999
1014
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1015
|
+
function kn(e) {
|
|
1016
|
+
return Dn.get(e);
|
|
1002
1017
|
}
|
|
1003
1018
|
//#endregion
|
|
1004
1019
|
//#region src/formatters/pipeline/rekey.ts
|
|
1005
|
-
function
|
|
1020
|
+
function An(e) {
|
|
1006
1021
|
return e.type === "source" || e.type === "sink";
|
|
1007
1022
|
}
|
|
1008
|
-
function
|
|
1023
|
+
function jn(e, t) {
|
|
1009
1024
|
switch (e.type) {
|
|
1010
1025
|
case "source":
|
|
1011
1026
|
case "sink": return {
|
|
@@ -1054,21 +1069,21 @@ function kn(e, t) {
|
|
|
1054
1069
|
};
|
|
1055
1070
|
}
|
|
1056
1071
|
}
|
|
1057
|
-
function
|
|
1072
|
+
function Mn(e, t) {
|
|
1058
1073
|
let n = /* @__PURE__ */ new Map();
|
|
1059
|
-
for (let r of e.nodes) n.set(r.id,
|
|
1074
|
+
for (let r of e.nodes) n.set(r.id, An(r) ? r.id : t());
|
|
1060
1075
|
let r = e.edges.map((e) => ({
|
|
1061
1076
|
id: t(),
|
|
1062
1077
|
source: n.get(e.source) ?? e.source,
|
|
1063
1078
|
target: n.get(e.target) ?? e.target
|
|
1064
1079
|
}));
|
|
1065
1080
|
return {
|
|
1066
|
-
nodes: e.nodes.map((e) =>
|
|
1081
|
+
nodes: e.nodes.map((e) => jn(e, n.get(e.id) ?? e.id)),
|
|
1067
1082
|
edges: r,
|
|
1068
1083
|
viewport: e.viewport ? { ...e.viewport } : void 0
|
|
1069
1084
|
};
|
|
1070
1085
|
}
|
|
1071
|
-
function
|
|
1086
|
+
function Nn(e, t) {
|
|
1072
1087
|
return { steps: e.steps.map((e) => {
|
|
1073
1088
|
switch (e.type) {
|
|
1074
1089
|
case "typedValueFormat": return {
|
|
@@ -1109,22 +1124,22 @@ function jn(e, t) {
|
|
|
1109
1124
|
}
|
|
1110
1125
|
}) };
|
|
1111
1126
|
}
|
|
1112
|
-
function
|
|
1127
|
+
function Pn(e, t = i) {
|
|
1113
1128
|
if (!e) return;
|
|
1114
|
-
let n = e.graph ?
|
|
1129
|
+
let n = e.graph ? Mn(e.graph, t) : void 0, r = n ? ne(n) : void 0;
|
|
1115
1130
|
return {
|
|
1116
1131
|
version: e.version,
|
|
1117
1132
|
graph: n,
|
|
1118
|
-
plan: r?.ok && r.plan ? r.plan : e.plan ?
|
|
1133
|
+
plan: r?.ok && r.plan ? r.plan : e.plan ? Nn(e.plan, t) : void 0
|
|
1119
1134
|
};
|
|
1120
1135
|
}
|
|
1121
1136
|
//#endregion
|
|
1122
1137
|
//#region src/formatters/pipeline/runtime.ts
|
|
1123
|
-
var
|
|
1138
|
+
var Fn = () => ({
|
|
1124
1139
|
ok: !1,
|
|
1125
1140
|
reason: "formula_not_found"
|
|
1126
1141
|
});
|
|
1127
|
-
function
|
|
1142
|
+
function In(e, t) {
|
|
1128
1143
|
return {
|
|
1129
1144
|
value: e,
|
|
1130
1145
|
state: "none",
|
|
@@ -1134,18 +1149,18 @@ function Pn(e, t) {
|
|
|
1134
1149
|
overflowTooltip: t
|
|
1135
1150
|
};
|
|
1136
1151
|
}
|
|
1137
|
-
function
|
|
1152
|
+
function Ln(e, t) {
|
|
1138
1153
|
return t ? X(e, t) : n(e);
|
|
1139
1154
|
}
|
|
1140
|
-
function
|
|
1155
|
+
function Rn(e) {
|
|
1141
1156
|
if (!e.formulaId) return;
|
|
1142
|
-
let t =
|
|
1157
|
+
let t = se({
|
|
1143
1158
|
formulaId: e.formulaId,
|
|
1144
1159
|
keys: e.formulaDependencies
|
|
1145
1160
|
});
|
|
1146
|
-
return t.ok ? t.execute :
|
|
1161
|
+
return t.ok ? t.execute : Fn;
|
|
1147
1162
|
}
|
|
1148
|
-
function
|
|
1163
|
+
function zn(e, t, n) {
|
|
1149
1164
|
if (!n.formulaId) return {
|
|
1150
1165
|
value: e,
|
|
1151
1166
|
shouldRenderEmpty: !1
|
|
@@ -1163,9 +1178,9 @@ function Ln(e, t, n) {
|
|
|
1163
1178
|
shouldRenderEmpty: n.purelyDerived === !0
|
|
1164
1179
|
};
|
|
1165
1180
|
}
|
|
1166
|
-
function
|
|
1181
|
+
function Bn(e, t, n) {
|
|
1167
1182
|
let r = n.formattersPipelineExecutor;
|
|
1168
|
-
if (!r) return
|
|
1183
|
+
if (!r) return In(Ln(t, n), n.overflowTooltip === !0);
|
|
1169
1184
|
let i = r.execute({
|
|
1170
1185
|
value: t,
|
|
1171
1186
|
rowData: e.rowData,
|
|
@@ -1177,7 +1192,7 @@ function Rn(e, t, n) {
|
|
|
1177
1192
|
columnId: n.id
|
|
1178
1193
|
});
|
|
1179
1194
|
return {
|
|
1180
|
-
value: i.hasTypedValueFormat ? i.value :
|
|
1195
|
+
value: i.hasTypedValueFormat ? i.value : Ln(i.value, n),
|
|
1181
1196
|
state: i.state,
|
|
1182
1197
|
icon: i.icon,
|
|
1183
1198
|
showIcon: i.showIcon,
|
|
@@ -1186,40 +1201,40 @@ function Rn(e, t, n) {
|
|
|
1186
1201
|
overflowTooltip: n.overflowTooltip === !0
|
|
1187
1202
|
};
|
|
1188
1203
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return t.shouldRenderEmpty || n.emptyWhenZero &&
|
|
1204
|
+
function Vn(e, t, n) {
|
|
1205
|
+
return t.shouldRenderEmpty || n.emptyWhenZero && I(t.value) ? {
|
|
1191
1206
|
...e,
|
|
1192
1207
|
value: ""
|
|
1193
1208
|
} : e;
|
|
1194
1209
|
}
|
|
1195
|
-
function
|
|
1196
|
-
let t =
|
|
1210
|
+
function Hn(e) {
|
|
1211
|
+
let t = Rn(e);
|
|
1197
1212
|
if (t ? e.formulaExecutor = t : delete e.formulaExecutor, !e.formattersPipeline) return delete e.formattersPipelineExecutor, e;
|
|
1198
|
-
let n =
|
|
1213
|
+
let n = fn({
|
|
1199
1214
|
config: e.formattersPipeline,
|
|
1200
1215
|
column: e
|
|
1201
1216
|
});
|
|
1202
1217
|
return n.ok ? e.formattersPipelineExecutor = n.executor : delete e.formattersPipelineExecutor, e;
|
|
1203
1218
|
}
|
|
1204
|
-
function
|
|
1219
|
+
function Un(e) {
|
|
1205
1220
|
let t = {};
|
|
1206
|
-
for (let [n, r] of Object.entries(e)) r && (t[n] =
|
|
1221
|
+
for (let [n, r] of Object.entries(e)) r && (t[n] = Hn(r));
|
|
1207
1222
|
return t;
|
|
1208
1223
|
}
|
|
1209
|
-
function
|
|
1210
|
-
if (!e.field) return
|
|
1211
|
-
let t =
|
|
1212
|
-
return
|
|
1224
|
+
function Wn(e) {
|
|
1225
|
+
if (!e.field) return In(n(e.rawValue), !1);
|
|
1226
|
+
let t = zn(e.rawValue, e.rowData, e.field);
|
|
1227
|
+
return Vn(Bn(e, t.value, e.field), t, e.field);
|
|
1213
1228
|
}
|
|
1214
1229
|
//#endregion
|
|
1215
1230
|
//#region src/formatters/valueState/presentation.ts
|
|
1216
|
-
var
|
|
1231
|
+
var Gn = [
|
|
1217
1232
|
"none",
|
|
1218
1233
|
"information",
|
|
1219
1234
|
"success",
|
|
1220
1235
|
"warning",
|
|
1221
1236
|
"error"
|
|
1222
|
-
],
|
|
1237
|
+
], Kn = {
|
|
1223
1238
|
"": "transparent",
|
|
1224
1239
|
none: "var(--content-1)",
|
|
1225
1240
|
information: "var(--status-info-text)",
|
|
@@ -1229,7 +1244,7 @@ var Un = [
|
|
|
1229
1244
|
};
|
|
1230
1245
|
//#endregion
|
|
1231
1246
|
//#region src/formatters/valueState/resolveValueStateClassName.ts
|
|
1232
|
-
function
|
|
1247
|
+
function qn(e, t) {
|
|
1233
1248
|
switch (e) {
|
|
1234
1249
|
case "success": return "statusSuccess";
|
|
1235
1250
|
case "warning": return "statusWarning";
|
|
@@ -1239,6 +1254,6 @@ function Gn(e, t) {
|
|
|
1239
1254
|
}
|
|
1240
1255
|
}
|
|
1241
1256
|
//#endregion
|
|
1242
|
-
export {
|
|
1257
|
+
export { pt as $, le as $t, G as A, ke as At, xt as B, xe as Bt, Kt as C, Fe as Ct, Rt as D, C as Dt, Lt as E, T as Et, Pt as F, Ce as Ft, vt as G, ge as Gt, St as H, we as Ht, B as I, g as It, jt as J, me as Jt, Et as K, _e as Kt, yt as L, v as Lt, H as M, Ae as Mt, V as N, b as Nt, Ht as O, Pe as Ot, Ft as P, Se as Pt, Nt as Q, ue as Qt, Dt as R, _ as Rt, Yt as S, S as St, Wt as T, x as Tt, At as U, h as Ut, kt as V, be as Vt, Ot as W, ye as Wt, Mt as X, fe as Xt, wt as Y, pe as Yt, Tt as Z, de as Zt, Gt as _, Ze as _t, Un as a, tt as at, Jt as b, O as bt, kn as c, We as ct, fn as d, M as dt, I as et, X as f, Je as ft, $t as g, Ke as gt, en as h, Ge as ht, Hn as i, $e as it, W as j, je as jt, U as k, w as kt, On as l, k as lt, sn as m, j as mt, Gn as n, rt as nt, Wn as o, nt as ot, cn as p, qe as pt, Ct as q, he as qt, Kn as r, et as rt, Pn as s, Qe as st, qn as t, N as tt, Tn as u, Ue as ut, Y as v, A as vt, Ut as w, Ne as wt, J as x, Xe as xt, qt as y, Ye as yt, bt as z, y as zt };
|
|
1243
1258
|
|
|
1244
|
-
//# sourceMappingURL=formatters-
|
|
1259
|
+
//# sourceMappingURL=formatters-DVE1YVNQ.js.map
|