szdl-utils-kit 0.0.1 → 0.1.1

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/index.js CHANGED
@@ -1,233 +1,1206 @@
1
- var tt = (p, t, s) => {
2
- if (!t.has(p))
3
- throw TypeError("Cannot " + s);
1
+ var Zt = Object.defineProperty;
2
+ var zt = (A, r, e) => r in A ? Zt(A, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[r] = e;
3
+ var F = (A, r, e) => (zt(A, typeof r != "symbol" ? r + "" : r, e), e), Ht = (A, r, e) => {
4
+ if (!r.has(A))
5
+ throw TypeError("Cannot " + e);
4
6
  };
5
- var e = (p, t, s) => (tt(p, t, "read from private field"), s ? s.call(p) : t.get(p)), o = (p, t, s) => {
6
- if (t.has(p))
7
+ var u = (A, r, e) => (Ht(A, r, "read from private field"), e ? e.call(A) : r.get(A)), _ = (A, r, e) => {
8
+ if (r.has(A))
7
9
  throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(p) : t.set(p, s);
9
- }, c = (p, t, s, r) => (tt(p, t, "write to private field"), r ? r.call(p, s) : t.set(p, s), s);
10
- var h = (p, t, s) => (tt(p, t, "access private method"), s);
11
- var E, x, A, b, j, P, w, T, g, y, W, C, O, S, k, L, Q, B, st, I, et, K, rt, $, it, v, nt, X, mt, Y, pt, z, ht, F, ot, G, lt, M, U, H, ct, Z, dt, D, _, R, V, J, at;
12
- class Pt {
13
- constructor(t, s = {}) {
14
- o(this, L);
15
- o(this, B);
16
- o(this, I);
17
- o(this, K);
18
- o(this, $);
19
- o(this, v);
20
- o(this, X);
21
- o(this, Y);
22
- o(this, z);
23
- o(this, F);
24
- o(this, G);
25
- o(this, M);
26
- o(this, H);
27
- o(this, Z);
28
- o(this, D);
29
- o(this, R);
30
- o(this, J);
31
- o(this, E, null);
32
- o(this, x, null);
33
- o(this, A, []);
34
- o(this, b, {});
35
- o(this, j, {});
36
- o(this, P, 50);
37
- o(this, w, !0);
38
- o(this, T, null);
39
- o(this, g, null);
40
- o(this, y, null);
41
- o(this, W, 100);
42
- o(this, C, "no");
43
- o(this, O, !1);
44
- o(this, S, !1);
45
- o(this, k, !1);
46
- c(this, E, t), c(this, x, s);
10
+ r instanceof WeakSet ? r.add(A) : r.set(A, e);
11
+ }, y = (A, r, e, a) => (Ht(A, r, "write to private field"), a ? a.call(A, e) : r.set(A, e), e);
12
+ var N = (A, r, e) => (Ht(A, r, "access private method"), e);
13
+ var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
+ function Qt(A) {
15
+ return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
16
+ }
17
+ var bt = { exports: {} };
18
+ (function(A, r) {
19
+ (function(e) {
20
+ Array.prototype.indexOf || (Array.prototype.indexOf = function(t, s) {
21
+ var n, o;
22
+ for (n = s || 0, o = this.length; n < o; n += 1)
23
+ if (this[n] === t)
24
+ return n;
25
+ return -1;
26
+ });
27
+ var a = this, h = function(t, s) {
28
+ for (var n = t.toString(); n.length < s; )
29
+ n = "0" + n;
30
+ return n;
31
+ }, l = function(t, s) {
32
+ return s !== e ? (t.year(s.year() || s.year), t.month(s.month() || s.month), t.day(s.day() || s.day), t.hours(s.hours() || s.hours), t.minutes(s.minutes() || s.minutes), t.seconds(s.seconds() || s.seconds), t.milliseconds(s.milliseconds() || s.milliseconds), t) : e;
33
+ }, f = function(t, s) {
34
+ var n, o = "";
35
+ return n = t.slice(s, s + 1), n !== "" && !isNaN(Number(n)) && (o += "%H"), n = t.charAt(s + 2), n !== "" && n === ":" && (o += n), n = t.slice(s + 3, s + 4), n !== "" && !isNaN(Number(n)) && (o += "%M"), n = t.charAt(s + 5), n !== "" && n === ":" && (o += n), n = t.slice(s + 6, s + 7), n !== "" && !isNaN(Number(n)) && (o += "%S"), o;
36
+ }, R = function(t, s) {
37
+ var n, o = [
38
+ t.slice(s, s + 1),
39
+ t.charAt(s + 2),
40
+ t.slice(s + 3, s + 4),
41
+ t.charAt(s + 5),
42
+ t.slice(s + 6, s + 9)
43
+ ], g;
44
+ return !isNaN(Number(o[0])) && !isNaN(Number(o[2])) && !isNaN(Number(o[4])) ? (o[1] === "." && o[3] === "." ? n = "%d.%m.%Y" : o[1] === "-" && o[3] === "-" ? n = "%m-%d-%Y" : o[1] === "/" && o[3] === "/" && (n = "%m/%d/%Y"), n) : (g = [
45
+ t.slice(s, s + 3),
46
+ t.charAt(s + 4),
47
+ t.slice(s + 5, s + 6),
48
+ t.charAt(s + 7),
49
+ t.slice(s + 8, s + 9)
50
+ ], !isNaN(Number(g[0])) && !isNaN(Number(g[2])) && !isNaN(Number(g[4])) ? (g[1] === "-" && g[3] === "-" && (n = "%Y-%m-%d"), n) : "");
51
+ }, S = a.tempus, i, M, p = a.navigator || {}, c = "en", m = {
52
+ en: {
53
+ JANUARY_SHORT: "Jan",
54
+ FEBRUARY_SHORT: "Feb",
55
+ MARCH_SHORT: "Mar",
56
+ APRIL_SHORT: "Apr",
57
+ MAY_SHORT: "May",
58
+ JUNE_SHORT: "Jun",
59
+ JULY_SHORT: "Jul",
60
+ AUGUST_SHORT: "Aug",
61
+ SEPTEMBER_SHORT: "Sep",
62
+ OCTOBER_SHORT: "Oct",
63
+ NOVEMBER_SHORT: "Nov",
64
+ DECEMBER_SHORT: "Dec",
65
+ JANUARY_LONG: "January",
66
+ FEBRUARY_LONG: "February",
67
+ MARCH_LONG: "March",
68
+ APRIL_LONG: "April",
69
+ MAY_LONG: "May",
70
+ JUNE_LONG: "June",
71
+ JULY_LONG: "July",
72
+ AUGUST_LONG: "August",
73
+ SEPTEMBER_LONG: "September",
74
+ OCTOBER_LONG: "October",
75
+ NOVEMBER_LONG: "November",
76
+ DECEMBER_LONG: "December",
77
+ SUNDAY_SHORT: "Sun",
78
+ MONDAY_SHORT: "Mon",
79
+ TUESDAY_SHORT: "Tue",
80
+ WEDNESDAY_SHORT: "Wed",
81
+ THURSDAY_SHORT: "Thu",
82
+ FRIDAY_SHORT: "Fri",
83
+ SATURDAY_SHORT: "Sat",
84
+ SUNDAY_LONG: "Sunday",
85
+ MONDAY_LONG: "Monday",
86
+ TUESDAY_LONG: "Tuesday",
87
+ WEDNESDAY_LONG: "Wednesday",
88
+ THURSDAY_LONG: "Thursday",
89
+ FRIDAY_LONG: "Friday",
90
+ SATURDAY_LONG: "Saturday"
91
+ },
92
+ ru: {
93
+ JANUARY_SHORT: "Янв",
94
+ FEBRUARY_SHORT: "Фев",
95
+ MARCH_SHORT: "Мар",
96
+ APRIL_SHORT: "Апр",
97
+ MAY_SHORT: "Май",
98
+ JUNE_SHORT: "Июн",
99
+ JULY_SHORT: "Июл",
100
+ AUGUST_SHORT: "Авг",
101
+ SEPTEMBER_SHORT: "Сен",
102
+ OCTOBER_SHORT: "Окт",
103
+ NOVEMBER_SHORT: "Ноя",
104
+ DECEMBER_SHORT: "Дек",
105
+ JANUARY_LONG: "Январь",
106
+ FEBRUARY_LONG: "Февраль",
107
+ MARCH_LONG: "Март",
108
+ APRIL_LONG: "Апрель",
109
+ MAY_LONG: "Май",
110
+ JUNE_LONG: "Июнь",
111
+ JULY_LONG: "Июль",
112
+ AUGUST_LONG: "Август",
113
+ SEPTEMBER_LONG: "Сентябрь",
114
+ OCTOBER_LONG: "Октябрь",
115
+ NOVEMBER_LONG: "Ноябрь",
116
+ DECEMBER_LONG: "Декабрь",
117
+ SUNDAY_SHORT: "Вс",
118
+ MONDAY_SHORT: "Пн",
119
+ TUESDAY_SHORT: "Вт",
120
+ WEDNESDAY_SHORT: "Ср",
121
+ THURSDAY_SHORT: "Чт",
122
+ FRIDAY_SHORT: "Пт",
123
+ SATURDAY_SHORT: "Сб",
124
+ SUNDAY_LONG: "Воскресенье",
125
+ MONDAY_LONG: "Понедельник",
126
+ TUESDAY_LONG: "Вторник",
127
+ WEDNESDAY_LONG: "Среда",
128
+ THURSDAY_LONG: "Четверг",
129
+ FRIDAY_LONG: "Пятница",
130
+ SATURDAY_LONG: "Суббота"
131
+ },
132
+ ua: {
133
+ JANUARY_SHORT: "Січ",
134
+ FEBRUARY_SHORT: "Лют",
135
+ MARCH_SHORT: "Берез",
136
+ APRIL_SHORT: "Квіт",
137
+ MAY_SHORT: "Трав",
138
+ JUNE_SHORT: "Черв",
139
+ JULY_SHORT: "Лип",
140
+ AUGUST_SHORT: "Серп",
141
+ SEPTEMBER_SHORT: "Верес",
142
+ OCTOBER_SHORT: "Жовт",
143
+ NOVEMBER_SHORT: "Листоп",
144
+ DECEMBER_SHORT: "Груд",
145
+ JANUARY_LONG: "Січень",
146
+ FEBRUARY_LONG: "Лютий",
147
+ MARCH_LONG: "Березень",
148
+ APRIL_LONG: "Квітень",
149
+ MAY_LONG: "Травень",
150
+ JUNE_LONG: "Червень",
151
+ JULY_LONG: "Липень",
152
+ AUGUST_LONG: "Серпень",
153
+ SEPTEMBER_LONG: "Вересень",
154
+ OCTOBER_LONG: "Жовтень",
155
+ NOVEMBER_LONG: "Листопад",
156
+ DECEMBER_LONG: "Грудень",
157
+ SUNDAY_SHORT: "Нд",
158
+ MONDAY_SHORT: "Пн",
159
+ TUESDAY_SHORT: "Вт",
160
+ WEDNESDAY_SHORT: "Ср",
161
+ THURSDAY_SHORT: "Чт",
162
+ FRIDAY_SHORT: "Пт",
163
+ SATURDAY_SHORT: "Сб",
164
+ SUNDAY_LONG: "Неділя",
165
+ MONDAY_LONG: "Понеділок",
166
+ TUESDAY_LONG: "Вівторок",
167
+ WEDNESDAY_LONG: "Середа",
168
+ THURSDAY_LONG: "Четвер",
169
+ FRIDAY_LONG: "П’ятниця",
170
+ SATURDAY_LONG: "Субота"
171
+ },
172
+ de: {
173
+ JANUARY_SHORT: "Jan",
174
+ FEBRUARY_SHORT: "Feb",
175
+ MARCH_SHORT: "März",
176
+ APRIL_SHORT: "Apr",
177
+ MAY_SHORT: "Mai",
178
+ JUNE_SHORT: "Juni",
179
+ JULY_SHORT: "Juli",
180
+ AUGUST_SHORT: "Aug",
181
+ SEPTEMBER_SHORT: "Sept",
182
+ OCTOBER_SHORT: "Okt",
183
+ NOVEMBER_SHORT: "Nov",
184
+ DECEMBER_SHORT: "Dez",
185
+ JANUARY_LONG: "Januar",
186
+ FEBRUARY_LONG: "Februar",
187
+ MARCH_LONG: "März",
188
+ APRIL_LONG: "April",
189
+ MAY_LONG: "Mai",
190
+ JUNE_LONG: "Juni",
191
+ JULY_LONG: "Juli",
192
+ AUGUST_LONG: "August",
193
+ SEPTEMBER_LONG: "September",
194
+ OCTOBER_LONG: "Oktober",
195
+ NOVEMBER_LONG: "November",
196
+ DECEMBER_LONG: "Dezember",
197
+ SUNDAY_SHORT: "So",
198
+ MONDAY_SHORT: "Mo",
199
+ TUESDAY_SHORT: "Di",
200
+ WEDNESDAY_SHORT: "Mi",
201
+ THURSDAY_SHORT: "Do",
202
+ FRIDAY_SHORT: "Fr",
203
+ SATURDAY_SHORT: "Sa",
204
+ SUNDAY_LONG: "Sonntag",
205
+ MONDAY_LONG: "Montag",
206
+ TUESDAY_LONG: "Dienstag",
207
+ WEDNESDAY_LONG: "Mittwoch",
208
+ THURSDAY_LONG: "Donnerstag",
209
+ FRIDAY_LONG: "Freitag",
210
+ SATURDAY_LONG: "Samstag"
211
+ }
212
+ }, $ = function() {
213
+ return [
214
+ m[c].JANUARY_LONG,
215
+ m[c].FEBRUARY_LONG,
216
+ m[c].MARCH_LONG,
217
+ m[c].APRIL_LONG,
218
+ m[c].MAY_LONG,
219
+ m[c].JUNE_LONG,
220
+ m[c].JULY_LONG,
221
+ m[c].AUGUST_LONG,
222
+ m[c].SEPTEMBER_LONG,
223
+ m[c].OCTOBER_LONG,
224
+ m[c].NOVEMBER_LONG,
225
+ m[c].DECEMBER_LONG
226
+ ];
227
+ }, J = function() {
228
+ return [
229
+ m[c].JANUARY_SHORT,
230
+ m[c].FEBRUARY_SHORT,
231
+ m[c].MARCH_SHORT,
232
+ m[c].APRIL_SHORT,
233
+ m[c].MAY_SHORT,
234
+ m[c].JUNE_SHORT,
235
+ m[c].JULY_SHORT,
236
+ m[c].AUGUST_SHORT,
237
+ m[c].SEPTEMBER_SHORT,
238
+ m[c].OCTOBER_SHORT,
239
+ m[c].NOVEMBER_SHORT,
240
+ m[c].DECEMBER_SHORT
241
+ ];
242
+ }, Nt = function() {
243
+ return [
244
+ m[c].SUNDAY_LONG,
245
+ m[c].MONDAY_LONG,
246
+ m[c].TUESDAY_LONG,
247
+ m[c].WEDNESDAY_LONG,
248
+ m[c].THURSDAY_LONG,
249
+ m[c].FRIDAY_LONG,
250
+ m[c].SATURDAY_LONG
251
+ ];
252
+ }, _t = function() {
253
+ return [
254
+ m[c].SUNDAY_SHORT,
255
+ m[c].MONDAY_SHORT,
256
+ m[c].TUESDAY_SHORT,
257
+ m[c].WEDNESDAY_SHORT,
258
+ m[c].THURSDAY_SHORT,
259
+ m[c].FRIDAY_SHORT,
260
+ m[c].SATURDAY_SHORT
261
+ ];
262
+ }, Ot, At, tt, et, Vt = function(t, s, n) {
263
+ var o;
264
+ a.XMLHttpRequest ? o = new XMLHttpRequest() : o = new ActiveXObject("Microsoft.XMLHTTP"), o.onreadystatechange = function() {
265
+ o.readyState === 4 && (o.status === 200 ? s && (a.JSON === e ? alert(`Please, include json2 into your project if you want use old browsers!
266
+ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.parse(o.responseText))) : n && n(o));
267
+ }, o.open("GET", t, !1), o.send();
268
+ }, U = {
269
+ "%d": {
270
+ format: function(t) {
271
+ return h(t.day() || i.MIN_DAY, 2);
272
+ },
273
+ parse: function(t) {
274
+ var s = Number(t);
275
+ return { day: isNaN(s) ? e : s };
276
+ },
277
+ minLength: 2,
278
+ maxLength: 2,
279
+ type: "number"
280
+ },
281
+ "%m": {
282
+ format: function(t) {
283
+ return h(t.month() || i.MIN_MONTH, 2);
284
+ },
285
+ parse: function(t) {
286
+ var s = Number(t);
287
+ return { month: isNaN(s) ? e : s };
288
+ },
289
+ minLength: 2,
290
+ maxLength: 2,
291
+ type: "number"
292
+ },
293
+ "%Y": {
294
+ format: function(t) {
295
+ return h(t.year() || i.MIN_YEAR, 4);
296
+ },
297
+ parse: function(t) {
298
+ var s = Number(t);
299
+ return { year: isNaN(s) ? e : s };
300
+ },
301
+ minLength: 4,
302
+ maxLength: 4,
303
+ type: "number"
304
+ },
305
+ "%w": {
306
+ format: function(t) {
307
+ return t.dayOfWeek() || i.MIN_DAY_OF_WEEK;
308
+ },
309
+ parse: function() {
310
+ return {};
311
+ },
312
+ minLength: 1,
313
+ maxLength: 1,
314
+ type: "number"
315
+ },
316
+ "%a": {
317
+ format: function(t) {
318
+ var s = t.dayOfWeek();
319
+ return et[s !== e ? s : i.MIN_DAY_OF_WEEK];
320
+ },
321
+ parse: function() {
322
+ return {};
323
+ },
324
+ minLength: 1,
325
+ maxLength: 999,
326
+ type: "word"
327
+ },
328
+ "%A": {
329
+ format: function(t) {
330
+ var s = t.dayOfWeek();
331
+ return tt[s !== e ? s : i.MIN_DAY_OF_WEEK];
332
+ },
333
+ parse: function() {
334
+ return {};
335
+ },
336
+ minLength: 1,
337
+ maxLength: 999,
338
+ type: "word"
339
+ },
340
+ "%b": {
341
+ format: function(t) {
342
+ var s = i.options("monthFromZero") ? t.month() : t.month() - 1;
343
+ return At[s !== e ? s : i.MIN_MONTH];
344
+ },
345
+ parse: function(t) {
346
+ var s = i.monthNames().indexOf(t) + (i.options("monthFromZero") ? 0 : 1);
347
+ return { month: s !== -1 ? s : e };
348
+ },
349
+ minLength: 1,
350
+ maxLength: 999,
351
+ type: "word"
352
+ },
353
+ "%B": {
354
+ format: function(t) {
355
+ var s = i.options("monthFromZero") ? t.month() : t.month() - 1;
356
+ return Ot[s !== e ? s : i.MIN_MONTH];
357
+ },
358
+ parse: function(t) {
359
+ var s = i.monthNames(!0).indexOf(t) + (i.options("monthFromZero") ? 0 : 1);
360
+ return { month: s !== -1 ? s : e };
361
+ },
362
+ minLength: 1,
363
+ maxLength: 999,
364
+ type: "word"
365
+ },
366
+ "%H": {
367
+ format: function(t) {
368
+ return h(t.hours() || i.MIN_HOURS, 2);
369
+ },
370
+ parse: function(t) {
371
+ var s = Number(t);
372
+ return { hours: isNaN(s) ? e : s };
373
+ },
374
+ minLength: 2,
375
+ maxLength: 2,
376
+ type: "number"
377
+ },
378
+ "%M": {
379
+ format: function(t) {
380
+ return h(t.minutes() || i.MIN_MINUTES, 2);
381
+ },
382
+ parse: function(t) {
383
+ var s = Number(t);
384
+ return { minutes: isNaN(s) ? e : s };
385
+ },
386
+ minLength: 2,
387
+ maxLength: 2,
388
+ type: "number"
389
+ },
390
+ "%S": {
391
+ format: function(t) {
392
+ return h(t.seconds() || i.MIN_SECONDS, 2);
393
+ },
394
+ parse: function(t) {
395
+ var s = Number(t);
396
+ return { seconds: isNaN(s) ? e : s };
397
+ },
398
+ minLength: 2,
399
+ maxLength: 2,
400
+ type: "number"
401
+ },
402
+ "%s": {
403
+ format: function(t) {
404
+ return t.timestamp();
405
+ },
406
+ parse: function(t) {
407
+ return isNaN(Number(t)) ? {} : i(Number(t)).get();
408
+ },
409
+ minLength: 1,
410
+ maxLength: 20,
411
+ type: "number"
412
+ },
413
+ "%F": {
414
+ format: function(t) {
415
+ return h(t.year() || i.MIN_YEAR, 4) + "-" + h(t.month() || i.MIN_MONTH, 2) + "-" + h(t.day() || i.MIN_DAY, 2);
416
+ },
417
+ parse: function(t) {
418
+ var s = Number(t.slice(0, 4)), n = Number(t.slice(5, 7)), o = Number(t.slice(8, 10));
419
+ return {
420
+ year: s,
421
+ month: n,
422
+ day: o
423
+ };
424
+ },
425
+ minLength: 10,
426
+ maxLength: 10,
427
+ type: "string"
428
+ },
429
+ "%D": {
430
+ format: function(t) {
431
+ return h(t.month() || i.MIN_MONTH, 2) + "/" + h(t.day() || i.MIN_DAY, 2) + "/" + h(t.year() || i.MIN_YEAR, 4);
432
+ },
433
+ parse: function(t) {
434
+ var s = Number(t.slice(0, 2)), n = Number(t.slice(3, 5)), o = Number(t.slice(6, 10));
435
+ return {
436
+ year: o,
437
+ month: s,
438
+ day: n
439
+ };
440
+ },
441
+ minLength: 10,
442
+ maxLength: 10,
443
+ type: "string"
444
+ }
445
+ }, St = {
446
+ useMilliseconds: !1,
447
+ monthFromZero: !1
448
+ }, T;
449
+ T = function(t, s, n) {
450
+ return this._d = /* @__PURE__ */ new Date(), this._i = {
451
+ year: !1,
452
+ month: !1,
453
+ day: !1,
454
+ hours: !1,
455
+ minutes: !1,
456
+ seconds: !1,
457
+ milliseconds: !1
458
+ }, t !== e && this.set(t, s, n), this;
459
+ }, T.fn = T.prototype, T.fn.dayCount = function() {
460
+ var t = this.month(), s = i.MAX_DAY_IN_MONTHS[t - (i.options("monthFromZero") ? 0 : 1)];
461
+ return this.leapYear() && t === (i.options("monthFromZero") ? 1 : 2) && (s += 1), s;
462
+ }, T.fn.year = function(t) {
463
+ if (arguments.length !== 0)
464
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_YEAR && Number(t) <= i.MAX_YEAR ? (this._d.setFullYear(Number(t)), this._i.year = !1) : this._i.year = Number(t) : (this._d.setFullYear(i.MIN_YEAR), this._i.year = !1);
465
+ else
466
+ return this._i.year === !1 ? this._d.getFullYear() : this._i.year;
467
+ return this;
468
+ }, T.fn.month = function(t) {
469
+ if (arguments.length !== 0)
470
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_MONTH && Number(t) <= i.MAX_MONTH ? (this._d.setMonth(i.options("monthFromZero") ? Number(t) : Number(t) - 1), this._i.month = !1) : this._i.month = Number(t) : (this._d.setMonth(i.options("monthFromZero") ? i.MIN_MONTH : i.MIN_MONTH - 1), this._i.month = !1);
471
+ else
472
+ return this._i.month === !1 ? i.options("monthFromZero") ? this._d.getMonth() : this._d.getMonth() + 1 : this._i.month;
473
+ return this;
474
+ }, T.fn.day = function(t) {
475
+ if (arguments.length !== 0)
476
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_DAY && Number(t) <= this.dayCount() ? (this._d.setDate(Number(t)), this._i.day = !1) : this._i.day = Number(t) : (this._d.setDate(i.MIN_DAY), this._i.day = !1);
477
+ else
478
+ return this._i.day === !1 ? this._d.getDate() : this._i.day;
479
+ return this;
480
+ }, T.fn.hours = function(t) {
481
+ if (arguments.length !== 0)
482
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_HOURS && Number(t) <= i.MAX_HOURS ? (this._d.setHours(Number(t)), this._i.hours = !1) : this._i.hours = Number(t) : (this._d.setHours(i.MIN_HOURS), this._i.hours = !1);
483
+ else
484
+ return this._i.hours === !1 ? this._d.getHours() : this._i.hours;
485
+ return this;
486
+ }, T.fn.minutes = function(t) {
487
+ if (arguments.length !== 0)
488
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_MINUTES && Number(t) <= i.MAX_MINUTES ? (this._d.setMinutes(Number(t)), this._i.minutes = !1) : this._i.minutes = Number(t) : (this._d.setMinutes(i.MIN_MINUTES), this._i.minutes = !1);
489
+ else
490
+ return this._i.minutes === !1 ? this._d.getMinutes() : this._i.minutes;
491
+ return this;
492
+ }, T.fn.seconds = function(t) {
493
+ if (arguments.length !== 0)
494
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_SECONDS && Number(t) <= i.MAX_SECONDS ? (this._d.setSeconds(Number(t)), this._i.seconds = !1) : this._i.seconds = Number(t) : (this._d.setSeconds(i.MIN_SECONDS), this._i.seconds = !1);
495
+ else
496
+ return this._i.seconds === !1 ? this._d.getSeconds() : this._i.seconds;
497
+ return this;
498
+ }, T.fn.milliseconds = function(t) {
499
+ if (arguments.length !== 0)
500
+ (typeof t == "number" || typeof t == "string") && !isNaN(Number(t)) ? Number(t) >= i.MIN_MILLISECONDS && Number(t) <= i.MAX_MILLISECONDS ? (this._d.setMilliseconds(Number(t)), this._i.milliseconds = !1) : this._i.milliseconds = Number(t) : (this._d.setMilliseconds(i.MIN_MILLISECONDS), this._i.milliseconds = !1);
501
+ else
502
+ return this._i.milliseconds === !1 ? this._d.getMilliseconds() : this._i.milliseconds;
503
+ return this;
504
+ }, T.fn.week = function() {
505
+ var t = new Date(this.year(), 0, 1), s = i(this.utc()).hours(0).minutes(0).seconds(0).milliseconds(0).utc() * 1e3;
506
+ return Math.ceil(((s - t.getTime()) / 864e5 + t.getDay() + 1) / 7);
507
+ }, T.fn.set = function(t, s, n) {
508
+ if (this._i = {
509
+ year: !1,
510
+ month: !1,
511
+ day: !1,
512
+ hours: !1,
513
+ minutes: !1,
514
+ seconds: !1,
515
+ milliseconds: !1
516
+ }, t === e)
517
+ return this._d = /* @__PURE__ */ new Date(), this;
518
+ if (t instanceof Date)
519
+ return this._d = t, this;
520
+ if (typeof t == "number")
521
+ return this._d = new Date(t * (i.options("useMilliseconds") ? 1 : 1e3)), this;
522
+ if (typeof t == "object" && (t instanceof Array ? (this.day(i.MIN_DAY), this.year(t[0]), this.month(t[1]), this.day(t[2]), this.hours(t[3]), this.minutes(t[4]), this.seconds(t[5]), this.milliseconds(t[6])) : (this.day(i.MIN_DAY), this.year(t.year), this.month(t.month), this.day(t.day), this.hours(t.hours), this.minutes(t.minutes), this.seconds(t.seconds), this.milliseconds(t.milliseconds))), typeof t == "string") {
523
+ var o, g = [], O, E, P = [], b = 0, Y = 0, L, G, d = {}, H;
524
+ if (t === e)
525
+ return O = l(this, n), O === e && (this._i = {
526
+ year: -1,
527
+ month: -1,
528
+ day: -1,
529
+ hours: -1,
530
+ minutes: -1,
531
+ seconds: -1,
532
+ milliseconds: -1
533
+ }), O;
534
+ for (s === e && (s = i.detectFormat(t)); b < s.length; ) {
535
+ if (s.charAt(b) === "%") {
536
+ if (E = s.charAt(b) + s.charAt(b + 1), U[E] !== e) {
537
+ switch (L = 0, G = "", U[E].type) {
538
+ case "number":
539
+ for (; L < U[E].maxLength && Y + L < t.length && !isNaN(Number(t.charAt(Y + L))); )
540
+ G += t.charAt(Y + L), L += 1;
541
+ break;
542
+ case "word":
543
+ for (; L < U[E].maxLength && Y + L < t.length && /^[\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(t.charAt(Y + L)); )
544
+ G += t.charAt(Y + L), L += 1;
545
+ break;
546
+ case "string":
547
+ for (; L < U[E].maxLength && Y + L < t.length; )
548
+ G += t.charAt(Y + L), L += 1;
549
+ break;
550
+ }
551
+ if (L < U[E].minLength)
552
+ return O = l(this, n), O === e && (this._i = {
553
+ year: -1,
554
+ month: -1,
555
+ day: -1,
556
+ hours: -1,
557
+ minutes: -1,
558
+ seconds: -1,
559
+ milliseconds: -1
560
+ }), O;
561
+ g.push(E), P.push(G), L -= 1, Y += L, b += 1;
562
+ }
563
+ } else if (t.charAt(Y) !== s.charAt(b))
564
+ return O = l(this, n), O === e && (this._i = {
565
+ year: -1,
566
+ month: -1,
567
+ day: -1,
568
+ hours: -1,
569
+ minutes: -1,
570
+ seconds: -1,
571
+ milliseconds: -1
572
+ }), O;
573
+ b += 1, Y += 1;
574
+ }
575
+ for (o in g)
576
+ g.hasOwnProperty(o) && U.hasOwnProperty(g[o]) && (H = U[g[o]].parse(P[o]), d = {
577
+ year: H.year !== e ? H.year : d.year,
578
+ month: H.month !== e ? H.month : d.month,
579
+ day: H.day !== e ? H.day : d.day,
580
+ hours: H.hours !== e ? H.hours : d.hours,
581
+ minutes: H.minutes !== e ? H.minutes : d.minutes,
582
+ seconds: H.seconds !== e ? H.seconds : d.seconds
583
+ });
584
+ this.day(i.MIN_DAY), this.year(d.year), this.month(d.month), this.day(d.day), this.hours(d.hours), this.minutes(d.minutes), this.seconds(d.seconds), this.milliseconds(d.milliseconds);
585
+ }
586
+ return this;
587
+ }, T.fn.leapYear = function() {
588
+ var t = this.year();
589
+ return t % 4 === 0 ? t % 100 === 0 ? t % 400 === 0 : !0 : !1;
590
+ }, T.fn.timestamp = function(t) {
591
+ return arguments.length !== 0 ? (this._d = new Date(Number(t) * (i.options("useMilliseconds") ? 1 : 1e3) + this._d.getTimezoneOffset() * 6e4), this) : i.options("useMilliseconds") ? this._d.getTime() - this._d.getTimezoneOffset() * 6e4 : Math.floor(this._d.getTime() / 1e3) - this._d.getTimezoneOffset() * 60;
592
+ }, T.fn.utc = function(t) {
593
+ return arguments.length !== 0 ? (this._d = new Date(Number(t) * (i.options("useMilliseconds") ? 1 : 1e3)), this) : i.options("useMilliseconds") ? this._d.getTime() : Math.floor(this._d.getTime() / 1e3);
594
+ }, T.fn.dayOfWeek = function(t) {
595
+ if (t === "long")
596
+ return tt[this._d.getDay()];
597
+ if (t === "short")
598
+ return et[this._d.getDay()];
599
+ if (t === e)
600
+ return this._d.getDay();
601
+ if (t === 0 || t === "Sunday")
602
+ return this.calc({ day: -this.dayOfWeek() });
603
+ if (t === 1 || t === "Monday")
604
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -6 : 1) - this.dayOfWeek() });
605
+ if (t === 2 || t === "Tuesday")
606
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -5 : 2) - this.dayOfWeek() });
607
+ if (t === 3 || t === "Wednesday")
608
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -4 : 3) - this.dayOfWeek() });
609
+ if (t === 4 || t === "Thursday")
610
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -3 : 4) - this.dayOfWeek() });
611
+ if (t === 5 || t === "Friday")
612
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -2 : 5) - this.dayOfWeek() });
613
+ if (t === 6 || t === "Saturday")
614
+ return this.calc({ day: (this.dayOfWeek() === 0 ? -1 : 6) - this.dayOfWeek() });
615
+ }, T.fn.timezone = function(t) {
616
+ switch (t) {
617
+ case "hours":
618
+ return Math.floor(this._d.getTimezoneOffset() / 60);
619
+ case "minutes":
620
+ return this._d.getTimezoneOffset();
621
+ default:
622
+ return this._d.getTimezoneOffset() * 60;
623
+ }
624
+ }, T.fn.get = function(t) {
625
+ switch (t) {
626
+ case "Date":
627
+ return new Date(
628
+ this.year(),
629
+ this.month() - (i.options("monthFromZero") ? 0 : 1),
630
+ this.day(),
631
+ this.hours(),
632
+ this.minutes(),
633
+ this.seconds(),
634
+ this.milliseconds()
635
+ );
636
+ case "DateUTC":
637
+ return new Date(Date.UTC(
638
+ this.year(),
639
+ this.month() - (i.options("monthFromZero") ? 0 : 1),
640
+ this.day(),
641
+ this.hours(),
642
+ this.minutes(),
643
+ this.seconds(),
644
+ this.milliseconds()
645
+ ));
646
+ case "Array":
647
+ return [
648
+ this.year(),
649
+ this.month(),
650
+ this.day(),
651
+ this.hours(),
652
+ this.minutes(),
653
+ this.seconds(),
654
+ this.milliseconds()
655
+ ];
656
+ default:
657
+ return {
658
+ year: this.year(),
659
+ month: this.month(),
660
+ week: this.week(),
661
+ day: this.day(),
662
+ hours: this.hours(),
663
+ minutes: this.minutes(),
664
+ seconds: this.seconds(),
665
+ milliseconds: this.milliseconds(),
666
+ utc: this.utc(),
667
+ dayOfWeek: this.dayOfWeek(),
668
+ dayOfWeekShort: this.dayOfWeek("short"),
669
+ dayOfWeekLong: this.dayOfWeek("long"),
670
+ timestamp: this.timestamp()
671
+ };
672
+ }
673
+ }, T.fn.format = function(t) {
674
+ for (var s = 0, n = "", o; s < t.length; )
675
+ t.charAt(s) === "%" ? (o = t.charAt(s) + t.charAt(s + 1), U[o] !== e ? (n += U[o].format(this), s += 1) : n += "%") : n += t.charAt(s), s += 1;
676
+ return n;
677
+ }, T.fn.valid = function() {
678
+ return this._i.year === !1 && this._i.month === !1 && this._i.day === !1 && this._i.hours === !1 && this._i.minutes === !1 && this._i.seconds === !1 && this._i.milliseconds === !1;
679
+ }, T.fn.errors = function() {
680
+ return this._i;
681
+ }, T.fn.between = function(t, s) {
682
+ var n = this.timestamp(), o = t.timestamp();
683
+ switch (s) {
684
+ case "year":
685
+ return Math.floor((o - n) / 31556952);
686
+ case "month":
687
+ return Math.floor((o - n) / 2629746);
688
+ case "day":
689
+ return Math.floor((o - n) / 86400);
690
+ case "hours":
691
+ return Math.floor((o - n) / 3600);
692
+ case "minutes":
693
+ return Math.floor((o - n) / 60);
694
+ case "seconds":
695
+ return o - n;
696
+ default:
697
+ return e;
698
+ }
699
+ }, T.fn.calc = function(t) {
700
+ return t.year !== e && this._d.setFullYear(this._d.getFullYear() + t.year), t.month !== e && this._d.setMonth(this._d.getMonth() + t.month), t.day !== e && this._d.setDate(this._d.getDate() + t.day), t.hours !== e && this._d.setHours(this._d.getHours() + t.hours), t.minutes !== e && this._d.setMinutes(this._d.getMinutes() + t.minutes), t.seconds !== e && this._d.setSeconds(this._d.getSeconds() + t.seconds), t.milliseconds !== e && this._d.setMilliseconds(this._d.getMilliseconds() + t.milliseconds), this;
701
+ }, i = function(t, s, n) {
702
+ return new T(t, s, n);
703
+ }, i.MIN_YEAR = 1e3, i.MAX_YEAR = 3e3, i.MIN_MONTH = 1, i.MAX_MONTH = 12, i.MIN_DAY = 1, i.MAX_DAY_IN_MONTHS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], i.MIN_DAY_OF_WEEK = 0, i.MAX_DAY_OF_WEEK = 6, i.MIN_HOURS = 0, i.MAX_HOURS = 23, i.MIN_MINUTES = 0, i.MAX_MINUTES = 59, i.MIN_SECONDS = 0, i.MAX_SECONDS = 59, i.MIN_MILLISECONDS = 0, i.MAX_MILLISECONDS = 999, i.VERSION = "0.2.18", i.options = function(t, s) {
704
+ if (t === e)
705
+ return St;
706
+ if (St.hasOwnProperty(t)) {
707
+ if (s === e)
708
+ return St[t];
709
+ St[t] = s, t === "monthFromZero" && (i.MIN_MONTH = s ? 0 : 1, i.MAX_MONTH = s ? 11 : 12);
710
+ }
711
+ return e;
712
+ }, i.noConflict = function() {
713
+ return a.tempus = S, i;
714
+ }, i.generate = function(t) {
715
+ var s, n, o, g, O, E, P, b;
716
+ if (typeof t.dateFrom != "number" && (t.dateFrom instanceof T ? s = t.dateFrom.utc() : s = i(t.dateFrom, t.formatFrom).utc()), typeof t.dateTo != "number" && (t.dateTo instanceof T ? n = t.dateTo.utc() : n = i(t.dateTo, t.formatTo !== e ? t.formatTo : t.formatFrom).utc()), typeof t.period == "number" ? O = {
717
+ year: 0,
718
+ month: 0,
719
+ day: 0,
720
+ hours: 0,
721
+ minutes: 0,
722
+ seconds: t.period
723
+ } : typeof t.period == "string" ? O = {
724
+ year: t.period === "year" ? 1 : 0,
725
+ month: t.period === "month" ? 1 : 0,
726
+ day: t.period === "day" ? 1 : 0,
727
+ hours: t.period === "hours" ? 1 : 0,
728
+ minutes: t.period === "minutes" ? 1 : 0,
729
+ seconds: t.period === "seconds" ? 1 : 0
730
+ } : typeof t.period == "object" && (O = {
731
+ year: t.period.year !== e ? t.period.year : 0,
732
+ month: t.period.month !== e ? t.period.month : 0,
733
+ day: t.period.day !== e ? t.period.day : 0,
734
+ hours: t.period.hours !== e ? t.period.hours : 0,
735
+ minutes: t.period.minutes !== e ? t.period.minutes : 0,
736
+ seconds: t.period.seconds !== e ? t.period.seconds : 0
737
+ }), t.groupBy === e ? E = t.asObject === !0 ? {} : [] : (E = [], E.push([]), P = i(s).get()[t.groupBy]), b = function(G, d, H) {
738
+ return t.asObject === !0 ? t.format !== e ? G[i(d).format(t.format)] = {} : G[i(d).format("%F %H:%M:%S")] = {} : t.format !== e ? G.push(H ? null : i(d).format(t.format)) : G.push(H ? null : i(d)), G;
739
+ }, t.groupBy !== e && t.fillNulls) {
740
+ var Y = {
741
+ year: O.year ? -O.year : e,
742
+ month: O.month ? -O.month : e,
743
+ day: O.day ? -O.day : e,
744
+ hours: O.hours ? -O.hours : e,
745
+ minutes: O.minutes ? -O.minutes : e,
746
+ seconds: O.seconds ? -O.seconds : e,
747
+ milliseconds: O.milliseconds ? -O.milliseconds : e
748
+ };
749
+ for (o = i(s).calc(Y).utc(); i(o).get()[t.groupBy] === P; )
750
+ b(E[E.length - 1], o, !0), o = i(o).calc(Y).utc();
751
+ if (t.groupBy === "week") {
752
+ var L = i(s).dayOfWeek();
753
+ for (o = i(s).dayOfWeek(0).utc(); E[0].length < L && o < s; )
754
+ b(E[E.length - 1], o, !0), o = i(o).calc(O).utc();
755
+ }
756
+ }
757
+ for (; s <= n; )
758
+ t.groupBy === e ? b(E, s) : i(s).get()[t.groupBy] === P ? b(E[E.length - 1], s) : (E.push([]), b(E[E.length - 1], s), P = i(s).get()[t.groupBy]), s = i(s).calc(O).utc();
759
+ if (t.groupBy !== e && t.fillNulls)
760
+ for (g = i(n).calc(O).utc(); i(g).get()[t.groupBy] === P; )
761
+ b(E[E.length - 1], g, !0), g = i(g).calc(O).utc();
762
+ return E;
763
+ }, i.monthNames = function(t) {
764
+ switch (t) {
765
+ case "long":
766
+ return Ot;
767
+ default:
768
+ return At;
769
+ }
770
+ }, i.dayNames = function(t) {
771
+ switch (t) {
772
+ case "long":
773
+ return tt;
774
+ default:
775
+ return et;
776
+ }
777
+ }, i.lang = function(t) {
778
+ if (t !== e)
779
+ c = t, m[c] === e && (c = "en"), Ot = $(), At = J(), tt = Nt(), et = _t();
780
+ else
781
+ return c;
782
+ return e;
783
+ }, i.availableLangs = function() {
784
+ return Object.keys(m);
785
+ }, i.registerFormat = function(t, s, n, o, g, O) {
786
+ U[t] = {
787
+ format: s,
788
+ parse: n,
789
+ minLength: o,
790
+ maxLength: g,
791
+ type: O
792
+ };
793
+ }, i.unregisterFormat = function(t) {
794
+ delete U[t];
795
+ }, i.detectFormat = function(t) {
796
+ var s, n, o;
797
+ return s = R(t, 0), s !== "" && (o = 10), n = t.charAt(o), (n === "T" || n === " ") && (s += n, o += 1), s += f(t, o), s;
798
+ }, M = {
799
+ TempusDate: T
800
+ }, i.classes = function(t, s) {
801
+ if (s === e)
802
+ return M[t];
803
+ M[t] = s;
804
+ }, i.loadTranslations = function(t) {
805
+ typeof t == "object" ? m = t : typeof t == "string" && Vt(t, function(s) {
806
+ m = s;
807
+ }, function(s) {
808
+ });
809
+ }, c = (p.language || p.systemLanguage || p.userLanguage || "en").substr(0, 2).toLowerCase(), m[c] === e && (c = "en"), Ot = $(), At = J(), tt = Nt(), et = _t(), A.exports && (r = A.exports = i), r.tempus = i;
810
+ }).call(Kt);
811
+ })(bt, bt.exports);
812
+ var qt = bt.exports;
813
+ const vt = /* @__PURE__ */ Qt(qt);
814
+ var x, it, X, I, W, C, j, k, D, w, Et, V, B, Z, z, Q, Rt, rt, Yt, nt, Dt, ot, Ut, ht, It, at, Gt, Mt, Jt, gt, xt, ut, Bt, ct, Ct, mt, Pt, q, Tt, lt, Ft, Lt, Xt, K, st, v, yt, ft, Wt;
815
+ class wt {
816
+ constructor(r, e = {}) {
817
+ _(this, Q);
818
+ _(this, rt);
819
+ _(this, nt);
820
+ _(this, ot);
821
+ _(this, ht);
822
+ _(this, at);
823
+ _(this, Mt);
824
+ _(this, gt);
825
+ _(this, ut);
826
+ _(this, ct);
827
+ _(this, mt);
828
+ _(this, q);
829
+ _(this, lt);
830
+ _(this, Lt);
831
+ _(this, K);
832
+ _(this, v);
833
+ _(this, ft);
834
+ _(this, x, null);
835
+ _(this, it, null);
836
+ _(this, X, []);
837
+ _(this, I, {});
838
+ _(this, W, {});
839
+ _(this, C, 50);
840
+ _(this, j, !0);
841
+ _(this, k, null);
842
+ _(this, D, null);
843
+ _(this, w, null);
844
+ _(this, Et, 100);
845
+ _(this, V, "no");
846
+ _(this, B, !1);
847
+ _(this, Z, !1);
848
+ _(this, z, !1);
849
+ y(this, x, r), y(this, it, e);
47
850
  }
48
851
  get serial() {
49
- return e(this, O);
852
+ return u(this, B);
50
853
  }
51
854
  setSerial() {
52
- c(this, O, !0), c(this, S, !0), c(this, k, !1);
855
+ y(this, B, !0), y(this, Z, !0), y(this, z, !1);
53
856
  }
54
857
  setParallel() {
55
- c(this, O, !1), c(this, S, !1), c(this, k, !0);
858
+ y(this, B, !1), y(this, Z, !1), y(this, z, !0);
56
859
  }
57
860
  stop() {
58
- c(this, w, !1);
59
- }
60
- async batch(t, s) {
61
- e(this, y) && h(this, B, st).call(this), s && c(this, T, s), e(this, S) === !1 && c(this, O, !1), Object.keys(t).length > 500 && c(this, O, !0), c(this, w, !0), c(this, A, []), c(this, b, {}), c(this, j, {});
62
- const r = h(this, K, rt).call(this, t);
63
- if (Object.keys(t).length < 500) {
64
- const i = r.map((l, n) => h(this, $, it).call(this, l, r[n]));
65
- return Promise.allSettled(i).then((l) => {
66
- let n = {};
67
- for (let u of l)
68
- u.status === "fulfilled" && (n = { ...n, ...u.value });
69
- return n;
861
+ y(this, j, !1);
862
+ }
863
+ async batch(r, e) {
864
+ u(this, w) && N(this, rt, Yt).call(this), e && y(this, k, e), u(this, Z) === !1 && y(this, B, !1), Object.keys(r).length > 500 && y(this, B, !0), y(this, j, !0), y(this, X, []), y(this, I, {}), y(this, W, {});
865
+ const a = N(this, ot, Ut).call(this, r);
866
+ if (Object.keys(r).length < 500) {
867
+ const h = a.map((l, f) => N(this, ht, It).call(this, l, a[f]));
868
+ return Promise.allSettled(h).then((l) => {
869
+ let f = {};
870
+ for (let R of l)
871
+ R.status === "fulfilled" && (f = { ...f, ...R.value });
872
+ return f;
70
873
  });
71
874
  } else {
72
- let i = {}, l = 0, n = 1, u = Object.keys(t).length || 1, a = (f) => {
73
- l += Object.keys(f).length, n = Math.round(l / u * 100);
875
+ let h = {}, l = 0, f = 1, R = Object.keys(r).length || 1, S = (i) => {
876
+ l += Object.keys(i).length, f = Math.round(l / R * 100);
74
877
  };
75
- for (let [f, m] of Object.entries(r)) {
76
- let d = await h(this, $, it).call(this, m, r[f], !0);
77
- a(m), s && s({ percent: n }), i = { ...i, ...d };
878
+ for (let [i, M] of Object.entries(a)) {
879
+ let p = await N(this, ht, It).call(this, M, a[i], !0);
880
+ S(M), e && e({ percent: f }), h = { ...h, ...p };
78
881
  }
79
- return i;
882
+ return h;
80
883
  }
81
884
  }
82
- async batchTotalCount(t, s) {
83
- c(this, b, {}), c(this, j, {});
84
- let r = 1, i = 0, l = Object.keys(t).length || 1, n = (a) => {
85
- i += Object.keys(a).length, r = Math.round(i / l * 100);
885
+ async batchTotalCount(r, e) {
886
+ y(this, I, {}), y(this, W, {});
887
+ let a = 1, h = 0, l = Object.keys(r).length || 1, f = (S) => {
888
+ h += Object.keys(S).length, a = Math.round(h / l * 100);
86
889
  };
87
- s && s({ percent: r });
88
- const u = h(this, K, rt).call(this, t);
89
- if (e(this, k)) {
90
- const a = u.map((f) => h(this, v, nt).call(this, f).then((m) => (n(f), s && s({ percent: r }), m)));
91
- return Promise.allSettled(a).then((f) => {
92
- let m = {};
93
- for (let d of f)
94
- d.status === "fulfilled" && (m = { ...m, ...d.value });
95
- return m;
890
+ e && e({ percent: a });
891
+ const R = N(this, ot, Ut).call(this, r);
892
+ if (u(this, z)) {
893
+ const S = R.map((i) => N(this, at, Gt).call(this, i).then((M) => (f(i), e && e({ percent: a }), M)));
894
+ return Promise.allSettled(S).then((i) => {
895
+ let M = {};
896
+ for (let p of i)
897
+ p.status === "fulfilled" && (M = { ...M, ...p.value });
898
+ return M;
96
899
  });
97
900
  } else {
98
- let a = {};
99
- for (let f of u) {
100
- let m = await h(this, v, nt).call(this, f);
101
- n(f), s && s({ percent: r }), a = { ...a, ...m };
901
+ let S = {};
902
+ for (let i of R) {
903
+ let M = await N(this, at, Gt).call(this, i);
904
+ f(i), e && e({ percent: a }), S = { ...S, ...M };
102
905
  }
103
- return a;
906
+ return S;
104
907
  }
105
908
  }
106
909
  }
107
- E = new WeakMap(), x = new WeakMap(), A = new WeakMap(), b = new WeakMap(), j = new WeakMap(), P = new WeakMap(), w = new WeakMap(), T = new WeakMap(), g = new WeakMap(), y = new WeakMap(), W = new WeakMap(), C = new WeakMap(), O = new WeakMap(), S = new WeakMap(), k = new WeakMap(), L = new WeakSet(), Q = function() {
108
- let t = 0;
109
- if (!e(this, g))
110
- return Math.round(t);
111
- let s = 0, r = 0;
112
- return Object.values(e(this, g)).forEach((i) => {
113
- const { total: l, count: n } = i;
114
- s += l ?? 0, r += n ?? 0;
115
- }), s ? t = r / s * 100 : t = 100, { percent: Math.round(t), allCount: r, allTotal: s };
116
- }, B = new WeakSet(), st = function() {
117
- clearInterval(e(this, y)), c(this, y, ""), c(this, g, ""), c(this, T, ""), c(this, C, "no");
118
- }, I = new WeakSet(), et = function({ key: t, value: s }) {
119
- const r = h(this, D, _).call(this, s.data()), i = Array.isArray(r) ? r.length : 0, l = h(this, R, V).call(this, s.total(), i);
120
- let n = 1;
121
- r && (n = i), e(this, T) && (e(this, g) || c(this, g, {}), e(this, g)[t] && e(this, g)[t].count && (n += e(this, g)[t].count), e(this, g)[t] = { total: l, count: n }, e(this, y) || c(this, y, setInterval(() => {
122
- const { percent: u, allCount: a, allTotal: f } = e(this, L, Q);
123
- (e(this, C) === "no" || e(this, C) < e(this, L, Q).percent) && (e(this, T).call(this, {
124
- data: e(this, g),
125
- percent: u,
126
- allCount: a,
127
- allTotal: f
128
- }), c(this, C, e(this, L, Q).percent)), u === 100 && h(this, B, st).call(this);
129
- }, e(this, W))));
130
- }, K = new WeakSet(), rt = function(t) {
131
- const s = [], r = Object.entries(t);
132
- for (let i = 0; i < r.length; i += e(this, P)) {
133
- const l = r.slice(i, i + e(this, P));
134
- s.push(Object.fromEntries(l));
135
- }
136
- return s;
137
- }, $ = new WeakSet(), it = function(t, s, r) {
138
- return new Promise((i) => {
139
- const l = h(this, H, ct).call(this, s), n = [];
140
- let u = 0, a = 0;
141
- e(this, E).call(this, t, (f) => {
142
- Object.entries(f).forEach(([m, d]) => {
143
- const ut = d.error();
144
- ut && (e(this, j)[m] = ut, u += 1);
145
- const q = h(this, D, _).call(this, d.data()), ft = Array.isArray(q) ? q.length : 0, N = h(this, R, V).call(this, d.total(), ft);
146
- if (e(this, b)[m] = q, a += N, r || h(this, I, et).call(this, { key: m, value: d }), N > e(this, P) && N > ft) {
147
- const gt = Math.ceil(N / e(this, P)) - 1, bt = Array.from({ length: gt });
148
- n.push([m, l[m], bt]);
910
+ x = new WeakMap(), it = new WeakMap(), X = new WeakMap(), I = new WeakMap(), W = new WeakMap(), C = new WeakMap(), j = new WeakMap(), k = new WeakMap(), D = new WeakMap(), w = new WeakMap(), Et = new WeakMap(), V = new WeakMap(), B = new WeakMap(), Z = new WeakMap(), z = new WeakMap(), Q = new WeakSet(), Rt = function() {
911
+ let r = 0;
912
+ if (!u(this, D))
913
+ return Math.round(r);
914
+ let e = 0, a = 0;
915
+ return Object.values(u(this, D)).forEach((h) => {
916
+ const { total: l, count: f } = h;
917
+ e += l ?? 0, a += f ?? 0;
918
+ }), e ? r = a / e * 100 : r = 100, { percent: Math.round(r), allCount: a, allTotal: e };
919
+ }, rt = new WeakSet(), Yt = function() {
920
+ clearInterval(u(this, w)), y(this, w, ""), y(this, D, ""), y(this, k, ""), y(this, V, "no");
921
+ }, nt = new WeakSet(), Dt = function({ key: r, value: e }) {
922
+ const a = N(this, K, st).call(this, e.data()), h = Array.isArray(a) ? a.length : 0, l = N(this, v, yt).call(this, e.total(), h);
923
+ let f = 1;
924
+ a && (f = h), u(this, k) && (u(this, D) || y(this, D, {}), u(this, D)[r] && u(this, D)[r].count && (f += u(this, D)[r].count), u(this, D)[r] = { total: l, count: f }, u(this, w) || y(this, w, setInterval(() => {
925
+ const { percent: R, allCount: S, allTotal: i } = u(this, Q, Rt);
926
+ (u(this, V) === "no" || u(this, V) < u(this, Q, Rt).percent) && (u(this, k).call(this, {
927
+ data: u(this, D),
928
+ percent: R,
929
+ allCount: S,
930
+ allTotal: i
931
+ }), y(this, V, u(this, Q, Rt).percent)), R === 100 && N(this, rt, Yt).call(this);
932
+ }, u(this, Et))));
933
+ }, ot = new WeakSet(), Ut = function(r) {
934
+ const e = [], a = Object.entries(r);
935
+ for (let h = 0; h < a.length; h += u(this, C)) {
936
+ const l = a.slice(h, h + u(this, C));
937
+ e.push(Object.fromEntries(l));
938
+ }
939
+ return e;
940
+ }, ht = new WeakSet(), It = function(r, e, a) {
941
+ return new Promise((h) => {
942
+ const l = N(this, lt, Ft).call(this, e), f = [];
943
+ let R = 0, S = 0;
944
+ u(this, x).call(this, r, (i) => {
945
+ Object.entries(i).forEach(([M, p]) => {
946
+ const c = p.error();
947
+ c && (u(this, W)[M] = c, R += 1);
948
+ const m = N(this, K, st).call(this, p.data()), $ = Array.isArray(m) ? m.length : 0, J = N(this, v, yt).call(this, p.total(), $);
949
+ if (u(this, I)[M] = m, S += J, a || N(this, nt, Dt).call(this, { key: M, value: p }), J > u(this, C) && J > $) {
950
+ const Nt = Math.ceil(J / u(this, C)) - 1, _t = Array.from({ length: Nt });
951
+ f.push([M, l[M], _t]);
149
952
  }
150
- }), a > 5e3 && e(this, S) === !1 && e(this, k) === !1 && c(this, O, !0), u > 0 && h(this, J, at).call(this), n.length ? (h(this, X, mt).call(this, n), h(this, Y, pt).call(this).then(() => i(h(this, M, U).call(this)))) : i(h(this, M, U).call(this));
953
+ }), S > 5e3 && u(this, Z) === !1 && u(this, z) === !1 && y(this, B, !0), R > 0 && N(this, ft, Wt).call(this), f.length ? (N(this, Mt, Jt).call(this, f), N(this, gt, xt).call(this).then(() => h(N(this, q, Tt).call(this)))) : h(N(this, q, Tt).call(this));
151
954
  });
152
955
  });
153
- }, v = new WeakSet(), nt = function(t) {
154
- return new Promise((s) => {
155
- const r = h(this, H, ct).call(this, t);
156
- let i = 0;
157
- e(this, E).call(this, r, (l) => {
158
- Object.entries(l).forEach(([n, u]) => {
159
- const a = u.error();
160
- a && (e(this, j)[n] = a, i += 1);
161
- const f = h(this, D, _).call(this, u.data()), m = Array.isArray(f) ? f.length : 0, d = h(this, R, V).call(this, u.total(), m);
162
- e(this, b)[n] = d;
163
- }), i > 0 && h(this, J, at).call(this), s(h(this, M, U).call(this));
956
+ }, at = new WeakSet(), Gt = function(r) {
957
+ return new Promise((e) => {
958
+ const a = N(this, lt, Ft).call(this, r);
959
+ let h = 0;
960
+ u(this, x).call(this, a, (l) => {
961
+ Object.entries(l).forEach(([f, R]) => {
962
+ const S = R.error();
963
+ S && (u(this, W)[f] = S, h += 1);
964
+ const i = N(this, K, st).call(this, R.data()), M = Array.isArray(i) ? i.length : 0, p = N(this, v, yt).call(this, R.total(), M);
965
+ u(this, I)[f] = p;
966
+ }), h > 0 && N(this, ft, Wt).call(this), e(N(this, q, Tt).call(this));
164
967
  });
165
968
  });
166
- }, X = new WeakSet(), mt = function(t) {
167
- let s = [];
168
- t.forEach(([r, i, l]) => {
169
- l.forEach((n, u) => {
170
- const a = u + 1, f = e(this, P) * a, d = [[r, a].join("_"), h(this, Z, dt).call(this, i, f)];
171
- s.length === e(this, P) ? (e(this, A).push(s), s = [d]) : s.push(d);
969
+ }, Mt = new WeakSet(), Jt = function(r) {
970
+ let e = [];
971
+ r.forEach(([a, h, l]) => {
972
+ l.forEach((f, R) => {
973
+ const S = R + 1, i = u(this, C) * S, p = [[a, S].join("_"), N(this, Lt, Xt).call(this, h, i)];
974
+ e.length === u(this, C) ? (u(this, X).push(e), e = [p]) : e.push(p);
172
975
  });
173
- }), s.length && e(this, A).push(s);
174
- }, Y = new WeakSet(), pt = function() {
175
- const t = [], s = [], r = (i) => {
176
- Object.entries(i).forEach(([l, n]) => {
177
- const [u] = l.split("_"), a = h(this, D, _).call(this, n.data());
178
- Array.isArray(a) && e(this, b)[u].push(...a), h(this, I, et).call(this, { key: u, value: n });
976
+ }), e.length && u(this, X).push(e);
977
+ }, gt = new WeakSet(), xt = function() {
978
+ const r = [], e = [], a = (h) => {
979
+ Object.entries(h).forEach(([l, f]) => {
980
+ const [R] = l.split("_"), S = N(this, K, st).call(this, f.data());
981
+ Array.isArray(S) && u(this, I)[R].push(...S), N(this, nt, Dt).call(this, { key: R, value: f });
179
982
  });
180
983
  };
181
- return e(this, A).forEach((i, l) => {
182
- const n = Object.fromEntries(i), u = () => new Promise((a) => e(this, E).call(this, n, (f) => {
183
- e(this, O) ? r(f) : s[l] = f, a();
984
+ return u(this, X).forEach((h, l) => {
985
+ const f = Object.fromEntries(h), R = () => new Promise((S) => u(this, x).call(this, f, (i) => {
986
+ u(this, B) ? a(i) : e[l] = i, S();
184
987
  }));
185
- t.push(u);
186
- }), e(this, O) ? h(this, F, ot).call(this, t) : h(this, G, lt).call(this, t).then(() => {
187
- s.forEach(r);
988
+ r.push(R);
989
+ }), u(this, B) ? N(this, ct, Ct).call(this, r) : N(this, mt, Pt).call(this, r).then(() => {
990
+ e.forEach(a);
188
991
  });
189
- }, z = new WeakSet(), ht = function() {
190
- return new Promise((t) => setTimeout(t, 500));
191
- }, F = new WeakSet(), ot = function(t) {
192
- if (!t.length)
992
+ }, ut = new WeakSet(), Bt = function() {
993
+ return new Promise((r) => setTimeout(r, 500));
994
+ }, ct = new WeakSet(), Ct = function(r) {
995
+ if (!r.length)
193
996
  return Promise.resolve();
194
- const s = t.shift();
997
+ const e = r.shift();
195
998
  return Promise.allSettled([
196
- s(),
197
- h(this, z, ht).call(this)
198
- ]).then(() => e(this, w) ? h(this, F, ot).call(this, t) : Promise.resolve());
199
- }, G = new WeakSet(), lt = function(t) {
200
- if (!t.length)
999
+ e(),
1000
+ N(this, ut, Bt).call(this)
1001
+ ]).then(() => u(this, j) ? N(this, ct, Ct).call(this, r) : Promise.resolve());
1002
+ }, mt = new WeakSet(), Pt = function(r) {
1003
+ if (!r.length)
201
1004
  return Promise.resolve();
202
- const s = t.shift();
203
- return h(this, z, ht).call(this).then(() => s()).then(() => e(this, w) ? h(this, G, lt).call(this, t) : Promise.resolve());
204
- }, M = new WeakSet(), U = function() {
205
- return Object.entries(e(this, x)).forEach(([t, s]) => {
206
- e(this, b)[t] && (e(this, b)[t] = s(e(this, b)[t]));
207
- }), e(this, b);
208
- }, H = new WeakSet(), ct = function(t) {
209
- return Object.entries(t).reduce((s, [r, i]) => {
210
- if (Array.isArray(i)) {
211
- const [l, n = {}] = i;
212
- s[r] = [l, n];
1005
+ const e = r.shift();
1006
+ return N(this, ut, Bt).call(this).then(() => e()).then(() => u(this, j) ? N(this, mt, Pt).call(this, r) : Promise.resolve());
1007
+ }, q = new WeakSet(), Tt = function() {
1008
+ return Object.entries(u(this, it)).forEach(([r, e]) => {
1009
+ u(this, I)[r] && (u(this, I)[r] = e(u(this, I)[r]));
1010
+ }), u(this, I);
1011
+ }, lt = new WeakSet(), Ft = function(r) {
1012
+ return Object.entries(r).reduce((e, [a, h]) => {
1013
+ if (Array.isArray(h)) {
1014
+ const [l, f = {}] = h;
1015
+ e[a] = [l, f];
213
1016
  } else {
214
- const { method: l, params: n = {} } = i;
215
- s[r] = [l, n];
1017
+ const { method: l, params: f = {} } = h;
1018
+ e[a] = [l, f];
216
1019
  }
217
- return s;
1020
+ return e;
218
1021
  }, {});
219
- }, Z = new WeakSet(), dt = function(t, s) {
220
- const [r, i] = t;
221
- return [r, { start: s, ...i }];
222
- }, D = new WeakSet(), _ = function(t) {
223
- return ((t == null ? void 0 : t.items) || (t == null ? void 0 : t.documents)) ?? t;
224
- }, R = new WeakSet(), V = function(t, s) {
225
- return t !== t && (t = 0), t === 0 && s === 0 ? 0 : t || s;
226
- }, J = new WeakSet(), at = function() {
227
- console.group(`${this.constructor.name}: Ошибки в методах!`), Object.entries(e(this, j)).forEach(([t, s]) => {
228
- console.info(`[${t}]`, s.toString());
1022
+ }, Lt = new WeakSet(), Xt = function(r, e) {
1023
+ const [a, h] = r;
1024
+ return [a, { start: e, ...h }];
1025
+ }, K = new WeakSet(), st = function(r) {
1026
+ return ((r == null ? void 0 : r.items) || (r == null ? void 0 : r.documents)) ?? r;
1027
+ }, v = new WeakSet(), yt = function(r, e) {
1028
+ return r !== r && (r = 0), r === 0 && e === 0 ? 0 : r || e;
1029
+ }, ft = new WeakSet(), Wt = function() {
1030
+ console.group(`${this.constructor.name}: Ошибки в методах!`), Object.entries(u(this, W)).forEach(([r, e]) => {
1031
+ console.info(`[${r}]`, e.toString());
229
1032
  }), console.groupEnd();
230
1033
  };
1034
+ var dt, jt, pt, kt;
1035
+ class te {
1036
+ constructor(r) {
1037
+ /** Запрос данных о приложении */
1038
+ _(this, dt);
1039
+ /** Запрос данных о текущем пользователе */
1040
+ _(this, pt);
1041
+ F(this, "domain", "");
1042
+ F(this, "isAdmin", !1);
1043
+ F(this, "appInfo", null);
1044
+ F(this, "appConst", null);
1045
+ F(this, "userInfo", null);
1046
+ F(this, "placeData", null);
1047
+ F(this, "placeInfo", null);
1048
+ this.appConst = r;
1049
+ }
1050
+ init() {
1051
+ return new Promise((r) => {
1052
+ let e = setInterval(() => {
1053
+ window.BX24 && BX24.init(async () => {
1054
+ console.info("init BX24"), clearInterval(e), this.domain = BX24.getDomain(), this.isAdmin = BX24.isAdmin(), this.placeInfo = BX24.placement.info();
1055
+ const [a, h] = await Promise.all([
1056
+ N(this, dt, jt).call(this),
1057
+ N(this, pt, kt).call(this)
1058
+ ]);
1059
+ this.appInfo = a, this.userInfo = h, r(!0);
1060
+ });
1061
+ }, 100);
1062
+ });
1063
+ }
1064
+ userOption(r, e) {
1065
+ return e ? BX24.userOption.set(r, e) : BX24.userOption.get(r);
1066
+ }
1067
+ call({ method: r, params: e }) {
1068
+ return new Promise((a) => {
1069
+ e || (e = {}), BX24.callMethod(r, e, function(h) {
1070
+ if (h.error()) {
1071
+ let l = h.error();
1072
+ console.error(l), a(!1);
1073
+ } else {
1074
+ let l = h.data();
1075
+ l != null && l.items && (l = l.items), a(l);
1076
+ }
1077
+ });
1078
+ });
1079
+ }
1080
+ /**
1081
+ * @param commandList - объект/массив команд
1082
+ * @param progressCall - callback(data), в data приходят данные о загрузке данных
1083
+ */
1084
+ batch(r, e) {
1085
+ return new wt(BX24.callBatch).batch(r, e);
1086
+ }
1087
+ /**
1088
+ * @param commandList - объект/массив команд
1089
+ * @param progressCall - callback(data), в data приходят данные о загрузке данных
1090
+ */
1091
+ batchTotalCount(r, e) {
1092
+ return new wt(BX24.callBatch).batchTotalCount(r, e);
1093
+ }
1094
+ /** Запрос данных о местах встройки приложения */
1095
+ getPlacement() {
1096
+ return this.call({ method: "placement.get" }).then((r) => (this.placeData || (this.placeData = r), r));
1097
+ }
1098
+ /** Встройка приложения в place */
1099
+ async placementBind(r) {
1100
+ this.placeData || (this.placeData = await this.getPlacement());
1101
+ const { appName: e, pathApp: a } = this.appConst, h = this.placeData.map((f) => f.placement);
1102
+ let l = this.placeData.find((f) => f.placement == r);
1103
+ h.includes(r) ? l.handler != a && (window.placementUnBind || (window.placementUnBind = {}), window.placementUnBind[r] || this.placementUnBind(l).then(() => {
1104
+ window.placementUnBind[r] || (window.placementUnBind[r] = !0, this.placementBind(r));
1105
+ })) : this.call({
1106
+ method: "placement.bind",
1107
+ params: {
1108
+ PLACEMENT: r,
1109
+ HANDLER: a,
1110
+ LANG_ALL: {
1111
+ ru: {
1112
+ TITLE: e
1113
+ }
1114
+ }
1115
+ }
1116
+ }).then((f) => {
1117
+ f ? console.info("Приложение успешно встроено в", r) : console.warn("Приложение не может быть встроено в", r);
1118
+ });
1119
+ }
1120
+ /** Отвязка встройки из place */
1121
+ placementUnBind(r) {
1122
+ const { pathApp: e, appName: a } = this.appConst;
1123
+ return this.call({
1124
+ method: "placement.unbind",
1125
+ params: {
1126
+ PLACEMENT: r,
1127
+ HANDLER: e,
1128
+ LANG_ALL: {
1129
+ ru: {
1130
+ TITLE: a
1131
+ }
1132
+ }
1133
+ }
1134
+ }).then((h) => (console.log("Встройка отвязана", r), h));
1135
+ }
1136
+ /** Чат-бот */
1137
+ /* получение списка ботов */
1138
+ getBotList() {
1139
+ return this.call({
1140
+ method: "imbot.bot.list",
1141
+ params: {}
1142
+ }).then((r) => {
1143
+ let e = Object.values(r);
1144
+ return console.log("chat-bot list:", e), e;
1145
+ });
1146
+ }
1147
+ /* регистрация бота */
1148
+ regBot({ code: r, type: e, name: a }) {
1149
+ const { appName: h, pathApp: l, chatBotLogo: f } = this.appConst, R = this.appInfo.ID;
1150
+ return this.call({
1151
+ method: "imbot.register",
1152
+ params: {
1153
+ CODE: r ?? this.appInfo.CODE,
1154
+ // Строковой идентификатор бота, уникальный в рамках вашего приложения (обяз.)
1155
+ TYPE: e ?? "O",
1156
+ // Тип бота, B - чат-бот, ответы поступают сразу, H - человек, ответы поступают с задержкой от 2-х до 10 секунд, O - чат-бот для Открытых линий, S - чат-бот с повышенными привилегиями (supervisor)
1157
+ EVENT_HANDLER: l,
1158
+ // Ссылка на обработчик событий, поступивших от сервера - см. Обработчики событий ниже (обяз).
1159
+ OPENLINE: "Y",
1160
+ // Включение режима поддержки Открытых линий, можно не указывать, если TYPE = 'O'
1161
+ CLIENT_ID: "",
1162
+ // строковый идентификатор чат-бота, используется только в режиме Вебхуков
1163
+ PROPERTIES: {
1164
+ // Личные данные чат-бота (обяз.)
1165
+ NAME: `${a ?? h} - бот #${R}`,
1166
+ // Имя чат-бота (обязательное одно из полей NAME или LAST_NAME)
1167
+ LAST_NAME: "",
1168
+ // Фамилия чат-бота (обязательное одно из полей NAME или LAST_NAME)
1169
+ COLOR: "GREEN",
1170
+ // Цвет чат-бота для мобильного приложения RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
1171
+ EMAIL: "",
1172
+ // E-mail для связи. НЕЛЬЗЯ использовать e-mail, дублирующий e-mail реальных пользователей
1173
+ PERSONAL_BIRTHDAY: vt().format("%Y-%m-%d"),
1174
+ // День рождения в формате YYYY-mm-dd
1175
+ WORK_POSITION: "Почтальон",
1176
+ // Занимаемая должность, используется как описание чат-бота
1177
+ PERSONAL_WWW: "",
1178
+ // Ссылка на сайт
1179
+ PERSONAL_GENDER: "M",
1180
+ // Пол чат-бота, допустимые значения M - мужской, F - женский, пусто, если не требуется указывать
1181
+ PERSONAL_PHOTO: f ?? ""
1182
+ // Аватар чат-бота - base64
1183
+ }
1184
+ }
1185
+ }).then((S) => (console.log("Чат-бот добавлен", S), S));
1186
+ }
1187
+ /* Убрать регистрацию бота */
1188
+ unRegBot(r) {
1189
+ return this.call({
1190
+ method: "imbot.unregister",
1191
+ params: {
1192
+ BOT_ID: r
1193
+ }
1194
+ }).then((e) => (console.log("чат-бот удален", e), e));
1195
+ }
1196
+ }
1197
+ dt = new WeakSet(), jt = function() {
1198
+ return this.call({ method: "app.info" });
1199
+ }, pt = new WeakSet(), kt = function() {
1200
+ return this.call({ method: "user.current" });
1201
+ };
231
1202
  export {
232
- Pt as Batch
1203
+ wt as Batch,
1204
+ te as BxBoot,
1205
+ vt as tempus
233
1206
  };