@dxtmisha/functional 1.6.4 → 1.6.5

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/library.js CHANGED
@@ -1,2753 +1,17 @@
1
- var Bt = Object.defineProperty;
2
- var xt = (i, t, e) => t in i ? Bt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var c = (i, t, e) => xt(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { i as m, D as ct, r as _, a as Ft, G as D, f as p, t as N, b as Q, c as Et, d as bt, e as K, g as z, h as E, A as Y, j as w, k as St, S as wt, l as R, m as Z, n as lt, E as Ht, C as Rt, H as T, L as mt, o as Pt } from "./ScrollbarWidth-De97V2Mh.js";
5
- import { p as Ji, q as Qi, U as Xi, s as Mi, u as Oi, v as Ti, w as Gi, x as ts, y as es, z as is, B as ss, I as rs, F as ns, J as os, K as as, M as us, N as cs, O as ls, P as hs, Q as ds, R as gs, T as fs } from "./ScrollbarWidth-De97V2Mh.js";
6
- import { isRef as X, h as Wt, computed as l, toRefs as jt, useAttrs as Ut, useSlots as zt, ref as $, watch as y, triggerRef as Zt, shallowRef as F, onUnmounted as nt, inject as _t, provide as Kt, watchEffect as Dt } from "vue";
7
- class Vt {
8
- /**
9
- * Constructor
10
- * @param name channel name/ название канала
11
- * @param callback callback on message received/ колбэк на получение сообщения
12
- */
13
- constructor(t, e) {
14
- c(this, "channel");
15
- /**
16
- * Update state on message received.
17
- *
18
- * Обновление состояния при получении сообщения.
19
- * @param event message event/ событие сообщения
20
- */
21
- c(this, "update", (t) => {
22
- var e;
23
- return (e = this.callback) == null || e.call(this, t), this;
24
- });
25
- if (this.callback = e, m())
26
- try {
27
- this.channel = new BroadcastChannel(`${Yt()}__${t}`), this.channel.onmessage = this.update;
28
- } catch (s) {
29
- console.error(`BroadcastMessage ${t}:`, s);
30
- }
31
- }
32
- /**
33
- * Send a message to the channel.
34
- *
35
- * Отправить сообщение в канал.
36
- * @param message message to send/ сообщение для отправки
37
- */
38
- post(t) {
39
- var e;
40
- return (e = this.channel) == null || e.postMessage(t), this;
41
- }
42
- /**
43
- * Set the callback function to be called when a message is received.
44
- *
45
- * Установить функцию колбэка, которая будет вызвана при получении сообщения.
46
- * @param callback callback function/ функция колбэка
47
- */
48
- setCallback(t) {
49
- return this.callback = t, this;
50
- }
51
- }
52
- const Yt = () => new ct("__broadcast-name").get(() => `name_${_(1e6, 9999999)}`);
53
- function A(i) {
54
- var r, o, a, u, h, d, g, v;
55
- if (i instanceof Date)
56
- return i;
57
- if (Ft(i))
58
- return /* @__PURE__ */ new Date();
59
- if (typeof i == "number")
60
- return new Date(i);
61
- let t = i, e = D.getTimezoneFormat().trim();
62
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (x, M, I) => (t = M, e = I.trim(), x));
63
- const s = (v = (g = (d = (h = (u = (a = (o = (r = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? r : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? d : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? g : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? v : t.replace(" ", "T");
64
- return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
65
- }
66
- function ot(i, t) {
67
- return p(i, (e) => e == null ? void 0 : e[t]);
68
- }
69
- class W {
70
- /**
71
- * Constructor
72
- * @param code country code, full form language-country or one of them/
73
- * код страны, полный вид язык-страна или один из них
74
- */
75
- constructor(t = D.getLocation()) {
76
- c(this, "geo");
77
- this.geo = D.find(t);
78
- const e = this.getLocation();
79
- if (e in G)
80
- return G[e];
81
- G[e] = this;
82
- }
83
- /**
84
- * Returns an instance of the class according to the specified country code.
85
- *
86
- * Возвращает экземпляр класса по указанному коду страны.
87
- * @param code country code, full form language-country or one of them/
88
- * код страны, полный вид язык-страна или один из них
89
- */
90
- static getInstance(t = D.getLocation()) {
91
- return new W(t);
92
- }
93
- /**
94
- * Returns country code and language.
95
- *
96
- * Возвращает код страны и языка.
97
- */
98
- getLocation() {
99
- return this.geo.standard;
100
- }
101
- /**
102
- * Returns the first day of the week.
103
- *
104
- * Возвращает первый день недели.
105
- */
106
- getFirstDay() {
107
- return this.geo.firstDay;
108
- }
109
- /**
110
- * The consistent translation of language, region and script display names.
111
- *
112
- * Последовательный перевод отображаемых названий языка, региона и скрипта.
113
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
114
- * @param typeOptions an object with some or all of the following properties/
115
- * объект с некоторыми или всеми из следующих свойств
116
- */
117
- display(t, e) {
118
- var o;
119
- let s = { type: "language" }, r;
120
- e && (typeof e == "string" ? s.type = e : s = {
121
- ...s,
122
- ...e
123
- });
124
- try {
125
- m() && (t ? r = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
126
- } catch (a) {
127
- console.error("display: ", a);
128
- }
129
- return (o = r != null ? r : t) != null ? o : "";
130
- }
131
- /**
132
- * Get display names of language.
133
- *
134
- * Получить отображаемые имена языка.
135
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
136
- * @param style the formatting style to use/ используемый стиль форматирования
137
- */
138
- languageName(t, e) {
139
- const s = {
140
- type: "language",
141
- style: e
142
- };
143
- return this.display(D.getByCode(t).language, s);
144
- }
145
- /**
146
- * Get display names of region.
147
- *
148
- * Получить отображаемые имена региона.
149
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
150
- * @param style the formatting style to use/ используемый стиль форматирования
151
- */
152
- countryName(t, e) {
153
- const s = {
154
- type: "region",
155
- style: e
156
- };
157
- return this.display(t, s);
158
- }
159
- /**
160
- * The method returns a string containing the full name in a specific format.
161
- *
162
- * Метод возвращает строку, содержащую полное имя в определённом формате.
163
- * @param last last name/ фамилию
164
- * @param first first name/ имя
165
- * @param surname surname middle name (optional)/ отчество
166
- * @param short shorten the names/ сократить названия
167
- */
168
- fullName(t, e, s, r) {
169
- var u, h;
170
- const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
171
- let a;
172
- switch (o) {
173
- case "fsl":
174
- a = `${e}${s ? ` ${s}` : ""} ${t}`;
175
- break;
176
- case "lf":
177
- a = `${t} ${e}`;
178
- break;
179
- case "lsf":
180
- a = `${t}${s ? ` ${s}` : ""} ${e}`;
181
- break;
182
- default:
183
- a = `${e} ${t}`;
184
- break;
185
- }
186
- return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
187
- }
188
- /**
189
- * In basic use without specifying a locale, a formatted string.
190
- *
191
- * При обычном использовании без указания локали форматированная строка.
192
- * @param value a number, bigint, or string, to format/ число для форматирования
193
- * @param options an object with some or all properties/ объект с некоторыми
194
- * или всеми свойствами
195
- */
196
- number(t, e) {
197
- var s, r;
198
- return ((r = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : r.call(s, N(t))) || t.toString();
199
- }
200
- /**
201
- * Decimal point symbol.
202
- *
203
- * Символ десятичной точки.
204
- */
205
- decimal() {
206
- var t, e, s, r, o;
207
- return ((o = (r = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : r.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
208
- }
209
- /**
210
- * Currency formatting.
211
- *
212
- * Форматирование валюты.
213
- * @param value a number, bigint, or string, to format/ число для форматирования
214
- * @param currencyOptions the currency to use in currency formatting/
215
- * валюта для использования в форматировании валюты
216
- * @param numberOnly do not display the currency symbol/ не выводить значок валюты
217
- */
218
- currency(t, e, s = !1) {
219
- const r = {
220
- style: "currency",
221
- currencyDisplay: "symbol",
222
- ...typeof e == "string" ? { currency: e } : e || {}
223
- }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
224
- if (s) {
225
- const a = this.numberObject(r);
226
- return a ? ot(
227
- a.formatToParts(N(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
228
- "value"
229
- ).join("") : t.toString();
230
- } else return "currency" in r ? this.number(
231
- typeof t == "number" ? t : o,
232
- r
233
- ) : this.number(
234
- typeof t == "number" ? t : o,
235
- {
236
- ...r,
237
- style: "decimal"
238
- }
239
- );
240
- }
241
- /**
242
- * Returns the currency symbol if it exists, otherwise the currency code.
243
- *
244
- * Возвращает символ для валюты, если он есть, или сам код валюты.
245
- * @param currency the currency to use in currency formatting/
246
- * валюта для использования в форматировании валюты
247
- * @param currencyDisplay how to display the currency in currency formatting/
248
- * как отобразить валюту в формате валюты
249
- */
250
- currencySymbol(t, e = "symbol") {
251
- var s, r, o, a, u;
252
- return ((u = (a = (o = (r = (s = this.numberObject({
253
- style: "currency",
254
- currencyDisplay: e,
255
- currency: t
256
- })) == null ? void 0 : s.formatToParts) == null ? void 0 : r.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
257
- }
258
- /**
259
- * Unit formatting.
260
- * If the style is 'unit', a unit property must be provided.
261
- *
262
- * Форматирование юнитов.
263
- * @param value a number, bigint, or string, to format/ число для форматирования
264
- * @param unitOptions the unit to use in unit formatting/ блок для использования
265
- * в форматировании блока
266
- */
267
- unit(t, e) {
268
- const s = {
269
- style: "unit",
270
- ...typeof e == "string" ? { unit: e } : e || {}
271
- }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
272
- return this.number(r, s);
273
- }
274
- /**
275
- * Возвращает отформатированный размер файла
276
- * @param value a number, bigint, or string, to format /<br>число для форматирования
277
- * @param unitOptions the unit to use in unit formatting /<br>блок для использования
278
- * в форматировании блока
279
- */
280
- sizeFile(t, e = "byte") {
281
- const s = N(t);
282
- if (s > 1024 && Q(e))
283
- switch (e) {
284
- case "byte":
285
- return this.sizeFile(s / 1024, "kilobyte");
286
- case "kilobyte":
287
- return this.sizeFile(s / 1024, "megabyte");
288
- case "megabyte":
289
- return this.sizeFile(s / 1024, "gigabyte");
290
- case "gigabyte":
291
- return this.sizeFile(s / 1024, "terabyte");
292
- case "terabyte":
293
- return this.sizeFile(s / 1024, "petabyte");
294
- }
295
- return this.unit(t, e);
296
- }
297
- /**
298
- * Number as a percentage.
299
- *
300
- * Число в виде процента.
301
- * @param value a number, bigint, or string, to format/ число для форматирования
302
- * @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
303
- */
304
- percent(t, e) {
305
- return this.number(t, {
306
- style: "percent",
307
- ...e || {}
308
- });
309
- }
310
- /**
311
- * Number as a percentage (unit).
312
- *
313
- * Число в виде процента (единица).
314
- * @param value a number, bigint, or string, to format/ число для форматирования
315
- * @param options an object with some or all properties/
316
- * объект с некоторыми или всеми свойствами
317
- */
318
- percentBy100(t, e) {
319
- return this.percent(N(t) / 100, e);
320
- }
321
- /**
322
- * Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
323
- * @param value a number, bigint, or string, to format/ число для форматирования
324
- * @param words list of words for formatting (in the format one|two|few|many|other|zero)/
325
- * список слов для форматирования (в формате `one|two|few|many|other|zero`)
326
- * @param options Property for PluralRules/ свойство для PluralRules
327
- * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
328
- */
329
- plural(t, e, s, r) {
330
- var u;
331
- const o = N(t), a = e.split("|");
332
- if (a.length > 1)
333
- try {
334
- if (m()) {
335
- const d = new Intl.PluralRules(this.getLocation(), s).select(o);
336
- let g;
337
- switch (d) {
338
- case "zero":
339
- g = a[a.length - 1];
340
- break;
341
- case "one":
342
- g = a == null ? void 0 : a[0];
343
- break;
344
- case "two":
345
- g = a == null ? void 0 : a[1];
346
- break;
347
- case "few":
348
- g = a != null && a[3] ? a == null ? void 0 : a[2] : a == null ? void 0 : a[1];
349
- break;
350
- case "many":
351
- g = (a == null ? void 0 : a[3]) || (a == null ? void 0 : a[2]) || (a == null ? void 0 : a[1]);
352
- break;
353
- case "other":
354
- a.length === 6 ? g = a[a.length - 2] : g = a[a.length - 1];
355
- break;
356
- }
357
- return `${this.number(o, r)} ${g != null ? g : ""}`.trim();
358
- }
359
- } catch (h) {
360
- console.error("plural: ", h);
361
- }
362
- return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
363
- }
364
- /**
365
- * Enables language-sensitive date and time formatting.
366
- *
367
- * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
368
- * @param value the date to format/ дата для форматирования
369
- * @param type type of data format/ тип формата data
370
- * @param styleOptions the representation of the month/ представление месяца
371
- * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
372
- */
373
- date(t, e, s, r) {
374
- const o = A(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
375
- return r && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
376
- }
377
- /**
378
- * Enables language-sensitive relative time formatting.
379
- *
380
- * Включает форматирование относительного времени с учетом языка.
381
- * @param value a number, bigint, or string, to format/ число для форматирования
382
- * @param styleOptions the length of the internationalized message/
383
- * длина интернационализированного сообщения
384
- * @param todayValue current day/ текущий день
385
- */
386
- relative(t, e, s) {
387
- const r = A(t), o = s || /* @__PURE__ */ new Date(), a = {
388
- numeric: "auto",
389
- ...typeof e == "string" ? { style: e } : e || {}
390
- };
391
- let u = "second", h = (r.getTime() - o.getTime()) / 1e3;
392
- return Math.abs(h) >= 60 && (u = "minute", h /= 60, Math.abs(h) >= 60 && (u = "hour", h /= 60, Math.abs(h) >= 24 && (u = "day", h /= 24, Math.abs(h) >= 30 && (u = "month", h /= 30, Math.abs(h) >= 12 && (u = "year", h /= 12))))), this.relativeByValue(h, u, a);
393
- }
394
- /**
395
- * Enables language-sensitive relative time formatting
396
- * Including the ability to add a limit to output the standard time format if the value
397
- * exceeds the allowable limit.
398
- *
399
- * Включает форматирование относительного времени с учетом языка.
400
- * Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
401
- * если значение вышло за пределы допустимого.
402
- * @param value a number, bigint, or string, to format/ число для форматирования
403
- * @param limit values that determine the output limit (values per day)/
404
- * значения, по которым определяем предел вывода (значения в день)
405
- * @param todayValue current day/ текущий день
406
- * @param relativeOptions the length of the internationalized message/
407
- * длина интернационализированного сообщения
408
- * @param dateOptions the representation of the month/ представление месяца
409
- * @param type type of data format/ тип формата data
410
- * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
411
- */
412
- relativeLimit(t, e, s, r, o, a, u) {
413
- const h = A(t), d = s || /* @__PURE__ */ new Date(), g = new Date(d), v = new Date(d);
414
- return g.setDate(d.getDate() - e), v.setDate(d.getDate() + e), h >= g && h <= v ? this.relative(
415
- h,
416
- r,
417
- d
418
- ) : this.date(
419
- h,
420
- a,
421
- o,
422
- u
423
- );
424
- }
425
- /**
426
- * Возвращает отформатированное значение времени, прошедшего с момента события
427
- * @param value a number, bigint, or string, to format/ число для форматирования
428
- * @param unit time unit/ единица времени
429
- * @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
430
- */
431
- relativeByValue(t, e, s) {
432
- const r = {
433
- numeric: "auto",
434
- ...typeof s == "string" ? { style: s } : s || {}
435
- };
436
- try {
437
- if (m())
438
- return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(N(t)), e);
439
- } catch (o) {
440
- console.error("relative: ", o);
441
- }
442
- return "";
443
- }
444
- /**
445
- * Names of months.<br>
446
- * Названия месяцев.
447
- * @param value the date to format/ дата для форматирования
448
- * @param style the representation of the month/ представление месяца
449
- */
450
- month(t, e) {
451
- try {
452
- if (m())
453
- return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(A(t));
454
- } catch (s) {
455
- console.error("month: ", s);
456
- }
457
- return "";
458
- }
459
- /**
460
- * Array to list of months.
461
- *
462
- * Массив в список месяцев.
463
- * @param style the representation of the month/ представление месяца
464
- */
465
- months(t) {
466
- const e = [{
467
- label: "",
468
- value: void 0
469
- }];
470
- try {
471
- if (m()) {
472
- const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
473
- for (let o = 0; o < 12; o++)
474
- s.setMonth(o), e.push({
475
- label: r.format(s).replace(/^./, (a) => a.toUpperCase()),
476
- value: o + 1
477
- });
478
- }
479
- } catch (s) {
480
- console.error("months: ", s);
481
- }
482
- return e;
483
- }
484
- /**
485
- * Returns names of days of the week.
486
- *
487
- * Возвращает названия дней недели.
488
- * @param value the date to format/ дата для форматирования
489
- * @param style the representation of the weekday/ представление о дне недели
490
- */
491
- weekday(t, e) {
492
- try {
493
- if (m())
494
- return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(A(t));
495
- } catch (s) {
496
- console.error("weekday: ", s);
497
- }
498
- return "";
499
- }
500
- /**
501
- * An array of the list of names of the days of the week.
502
- *
503
- * Массив из списка названий дней недели.
504
- * @param style the representation of the weekday/ представление о дне недели
505
- */
506
- weekdays(t) {
507
- const e = [{
508
- label: "",
509
- value: void 0
510
- }];
511
- try {
512
- if (m()) {
513
- const s = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
514
- s.setDate(s.getDate() - o);
515
- for (let a = 0; a < 7; a++)
516
- e.push({
517
- label: r.format(s).replace(/^./, (u) => u.toUpperCase()),
518
- value: s.getDay()
519
- }), s.setDate(s.getDate() + 1);
520
- }
521
- } catch (s) {
522
- console.error("weekdays: ", s);
523
- }
524
- return e;
525
- }
526
- /**
527
- * Time.
528
- *
529
- * Время.
530
- * @param value the date to format/ дата для форматирования
531
- */
532
- time(t) {
533
- return this.date(t, "time");
534
- }
535
- /**
536
- * Sorts strings taking into account the characteristics of countries.
537
- *
538
- * Сортирует строки с учетом особенностей стран.
539
- * @param data an array with data/ массив с данными
540
- * @param compareFn a function for sorting/ функция для сортировки
541
- */
542
- sort(t, e = (s, r) => [s, r]) {
543
- if (m()) {
544
- const s = new Intl.Collator(this.getLocation());
545
- return t.sort((r, o) => s.compare(...e(r, o)));
546
- }
547
- return t;
548
- }
549
- /**
550
- * The object enables language-sensitive number formatting.
551
- *
552
- * Объект включает форматирование чисел с учетом языка.
553
- * @param options an object with some or all properties/
554
- * объект с некоторыми или всеми свойствами
555
- */
556
- numberObject(t) {
557
- try {
558
- if (m())
559
- return new Intl.NumberFormat(this.getLocation(), t);
560
- } catch (e) {
561
- console.error("numberObject: ", e);
562
- }
563
- }
564
- /**
565
- * Returns options for data according to its type.
566
- *
567
- * Возвращает options для data по его типу.
568
- * @param type type of data format/ тип формата data
569
- * @param display the representation of the month/ представление месяца
570
- */
571
- dateOptions(t, e = "short") {
572
- const s = {};
573
- return ["full", "datetime", "date", void 0, "year-month", "year"].indexOf(t) !== -1 && (s.year = "numeric"), ["full", "datetime", "date", void 0, "year-month", "month", "day-month"].indexOf(t) !== -1 && (s.month = e), ["full", "datetime", "date", void 0, "day", "day-month"].indexOf(t) !== -1 && (s.day = "2-digit"), t !== void 0 && (["full", "datetime", "time", "hour-minute", "hour"].indexOf(t) !== -1 && (s.hour = "2-digit"), ["full", "datetime", "time", "hour-minute", "minute"].indexOf(t) !== -1 && (s.minute = "2-digit"), ["full", "time", "second"].indexOf(t) !== -1 && (s.second = "2-digit")), s;
574
- }
575
- }
576
- const G = {};
577
- class ht {
578
- /**
579
- * Constructor
580
- * @param date date for processing/ дата для обработки
581
- * @param type type of date format for output/ тип формата даты вывода
582
- * @param code country and language code/ код страны и языка
583
- */
584
- constructor(t, e = "date", s = D.getLocation()) {
585
- c(this, "date");
586
- c(this, "hour24", !1);
587
- c(this, "watch");
588
- this.type = e, this.code = s, this.date = A(t);
589
- }
590
- /**
591
- * Returns an object for working with formatting.
592
- *
593
- * Возвращает объект для работы с форматированием.
594
- */
595
- getIntl() {
596
- return new W(this.code);
597
- }
598
- /**
599
- * Returns a Date object.
600
- *
601
- * Возвращает объект Date.
602
- */
603
- getDate() {
604
- return this.date;
605
- }
606
- /**
607
- * Returns the type of data output.
608
- *
609
- * Возвращает тип вывода данных.
610
- */
611
- getType() {
612
- return this.type;
613
- }
614
- /**
615
- * Returns the format of hours.
616
- *
617
- * Возвращает формат часов.
618
- */
619
- getHoursType() {
620
- const t = this.clone();
621
- return t.setHours(23), t.toLocaleTimeString(this.getIntl().getLocation(), { hour: "2-digit" }).match(/23/ig) ? "24" : "12";
622
- }
623
- /**
624
- * Whether to use 12-hour time.
625
- *
626
- * Использовать ли 12-часовой формат времени.
627
- */
628
- getHour24() {
629
- return this.hour24;
630
- }
631
- /**
632
- * The method returns the difference, in minutes, between
633
- * a date as evaluated in the UTC time zone, and the same date as evaluated
634
- * in the local time zone.
635
- *
636
- * Метод возвращает смещение часового пояса относительно часового пояса UTC
637
- * в минутах для текущей локали.
638
- */
639
- getTimeZoneOffset() {
640
- return this.date.getTimezoneOffset();
641
- }
642
- /**
643
- * Returns the time zone as a string.
644
- *
645
- * Возвращает временную зону в виде строки.
646
- * @param style the style of the returned data/ стиль возвращаемых данных
647
- */
648
- getTimeZone(t) {
649
- const e = this.getTimeZoneOffset();
650
- if (t === "minute")
651
- return e.toString();
652
- const s = e / 60 * -1;
653
- if (t === "hour")
654
- return this.getIntl().number(Math.trunc(s), { signDisplay: "always" });
655
- const r = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
656
- return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
657
- }
658
- /**
659
- * Returns the code of the first day of the week.
660
- *
661
- * Возвращает код первого дня недели.
662
- */
663
- getFirstDayCode() {
664
- const t = this.getIntl().getFirstDay();
665
- return t === "Sa" ? 6 : t === "Su" ? 0 : 1;
666
- }
667
- /**
668
- * The method returns the year of the specified date according to local time.
669
- *
670
- * Метод возвращает год указанной даты по местному времени.
671
- */
672
- getYear() {
673
- return this.date.getFullYear();
674
- }
675
- /**
676
- * The method returns the month in the specified date according to local time,
677
- * as a zero-based value.
678
- *
679
- * Метод возвращает месяц указанной даты по местному времени, нумерация
680
- * месяцев начинается с нуля для первого месяца в году.
681
- */
682
- getMonth() {
683
- return this.date.getMonth() + 1;
684
- }
685
- /**
686
- * The method returns the day of the month for the specified date according to local time.
687
- *
688
- * Метод возвращает день месяца указанной даты по местному времени
689
- */
690
- getDay() {
691
- return this.date.getDate();
692
- }
693
- /**
694
- * The method returns the hour for the specified date, according to local time.
695
- *
696
- * Метод возвращает часы указанной даты по местному времени.
697
- */
698
- getHour() {
699
- return this.date.getHours();
700
- }
701
- /**
702
- * The method returns the minutes in the specified date according to local time.
703
- *
704
- * Метод возвращает минуты указанной даты по местному времени.
705
- */
706
- getMinute() {
707
- return this.date.getMinutes();
708
- }
709
- /**
710
- * The method returns the seconds in the specified date according to local time.
711
- *
712
- * Метод возвращает секунды указанной даты по местному времени.
713
- */
714
- getSecond() {
715
- return this.date.getSeconds();
716
- }
717
- /**
718
- * Returns the last day of the week.
719
- *
720
- * Возвращает последний день недели.
721
- */
722
- getMaxDay() {
723
- return this.getMonth() > 0 ? this.cloneDayLast().getDay() : 0;
724
- }
725
- /**
726
- * Enables language-sensitive date and time formatting.
727
- *
728
- * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
729
- * @param type type of date format for output/ тип формата даты вывода
730
- * @param styleOptions the representation of the month/ представление месяца
731
- */
732
- locale(t = this.type, e) {
733
- return this.getIntl().date(
734
- this.date,
735
- t,
736
- e,
737
- this.hour24
738
- );
739
- }
740
- /**
741
- * Returns the formatted year.
742
- *
743
- * Возвращает отформатированный год.
744
- * @param style the representation of the month/ представление месяца
745
- */
746
- localeYear(t = "numeric") {
747
- return this.locale("year", { year: t });
748
- }
749
- /**
750
- * Returns the formatted month.
751
- *
752
- * Возвращает отформатированный месяц.
753
- * @param style the representation of the month/ представление месяца
754
- */
755
- localeMonth(t = "long") {
756
- return this.locale("month", { month: t });
757
- }
758
- /**
759
- * Returns the formatted day.
760
- *
761
- * Возвращает отформатированный день.
762
- * @param style the representation of the month/ представление месяца
763
- */
764
- localeDay(t = "numeric") {
765
- return this.locale("day", { day: t });
766
- }
767
- /**
768
- * Returns the formatted hour.
769
- *
770
- * Возвращает отформатированный час.
771
- * @param style the representation of the month/ представление месяца
772
- */
773
- localeHour(t = "numeric") {
774
- return this.locale("hour", { hour: t });
775
- }
776
- /**
777
- * Returns the formatted minute.
778
- *
779
- * Возвращает отформатированную минуту.
780
- * @param style the representation of the month/ представление месяца
781
- */
782
- localeMinute(t = "numeric") {
783
- return this.locale("minute", { minute: t });
784
- }
785
- /**
786
- * Returns the formatted second.
787
- *
788
- * Возвращает отформатированную секунду.
789
- * @param style the representation of the month/ представление месяца
790
- */
791
- localeSecond(t = "numeric") {
792
- return this.locale("second", { second: t });
793
- }
794
- /**
795
- * Output of standard data.
796
- *
797
- * Вывод стандартных данных.
798
- * @param timeZone add time zone/ добавить временную зону
799
- */
800
- standard(t = !0) {
801
- const e = new ht(this.date, this.type, "en-GB"), s = [];
802
- let r;
803
- return e.setHour24(!0), this.type === "hour-minute" ? r = e.locale(this.type, {
804
- year: "numeric",
805
- month: "2-digit",
806
- hour12: !1
807
- }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (r = e.locale("time"))), `${s.join("-")}${r ? `T${r}${t ? e.getTimeZone() : ""}` : ""}`;
808
- }
809
- /**
810
- * Change the date completely.
811
- *
812
- * Изменять полностью дату.
813
- * @param value an integer value representing the number/
814
- * целочисленное значение, представляющее число
815
- */
816
- setDate(t) {
817
- return this.date = A(t), this.update(), this;
818
- }
819
- /**
820
- * Change the type of data output.
821
- *
822
- * Изменить тип вывода данных.
823
- * @param value type of output/ тип вывод
824
- */
825
- setType(t) {
826
- return this.type = t, this.update(), this;
827
- }
828
- /**
829
- * Whether to use 12-hour time.
830
- *
831
- * Использовать ли 12-часовой формат времени.
832
- * @param value If true, output the 12-hour time format/
833
- * если true, выводить 12-часовой формат времени
834
- */
835
- setHour24(t) {
836
- return this.hour24 = t, this.update(), this;
837
- }
838
- /**
839
- * To change the location.
840
- *
841
- * Изменить местоположение.
842
- * @param code country and language code/ код страны и языка
843
- */
844
- setCode(t) {
845
- return this.code = t, this;
846
- }
847
- /**
848
- * The function is called when the data is updated.
849
- *
850
- * Функция вызывается при обновлении данных.
851
- * @param watch the function calls/ функция вызывает
852
- */
853
- setWatch(t) {
854
- return this.watch = t, this;
855
- }
856
- /**
857
- * The method sets the full year for a specified date according to local time.
858
- *
859
- * Метод устанавливает полный год указанной даты по местному времени.
860
- * @param value value/ значения
861
- */
862
- setYear(t) {
863
- return this.date.setFullYear(t), this.update(), this;
864
- }
865
- /**
866
- * The method sets the month for a specified date according to the currently set year.
867
- *
868
- * Метод устанавливает месяц указанной даты по местному времени.
869
- * @param value value/ значения
870
- */
871
- setMonth(t) {
872
- return this.date.setMonth(t - 1), this.update(), this;
873
- }
874
- /**
875
- * The method changes the day of the month of a given Date instance, based on local time.
876
- *
877
- * Метод устанавливает день месяца указанной даты по местному времени.
878
- * @param value value/ значения
879
- */
880
- setDay(t) {
881
- return this.date.setDate(t), this.update(), this;
882
- }
883
- /**
884
- * The method sets the hours for a specified date according to local time.
885
- *
886
- * Метод устанавливает часы указанной даты по местному времени.
887
- * @param value value/ значения
888
- */
889
- setHour(t) {
890
- return this.date.setHours(t), this.update(), this;
891
- }
892
- /**
893
- * The method sets the minutes for a specified date according to local time
894
- *
895
- * Метод устанавливает минуты указанной даты по местному времени
896
- * @param value value / значения
897
- */
898
- setMinute(t) {
899
- return this.date.setMinutes(t), this.update(), this;
900
- }
901
- /**
902
- * The method sets the seconds for a specified date according to local time.
903
- *
904
- * Метод устанавливает секунды указанной даты по местному времени.
905
- * @param value value/ значения
906
- */
907
- setSecond(t) {
908
- return this.date.setSeconds(t), this.update(), this;
909
- }
910
- /**
911
- * Shift the date by a given value in years.
912
- *
913
- * Сдвинуть дату на заданное значение в годах.
914
- * @param value values for moving/ значения для перемещения
915
- */
916
- moveByYear(t) {
917
- return this.setYear(this.date.getFullYear() + t), this;
918
- }
919
- /**
920
- * Shift the date by a given value in months.
921
- *
922
- * Сдвинуть дату на заданное значение в месяцах.
923
- * @param value values for moving/ значения для перемещения
924
- */
925
- moveByMonth(t) {
926
- return this.setMonth(this.date.getMonth() + 1 + t), this;
927
- }
928
- /**
929
- * Shift the date by a given value in days.
930
- *
931
- * Сдвинуть дату на заданное значение в днях.
932
- * @param value values for moving/ значения для перемещения
933
- */
934
- moveByDay(t) {
935
- return this.setDay(this.date.getDate() + t), this;
936
- }
937
- /**
938
- * Shift the date by a given value in hours.
939
- *
940
- * Сдвинуть дату на заданное значение в часах.
941
- * @param value values for moving/ значения для перемещения
942
- */
943
- moveByHour(t) {
944
- return this.setHour(this.date.getHours() + t), this;
945
- }
946
- /**
947
- * Shift the date by a given value in minutes.
948
- *
949
- * Сдвинуть дату на заданное значение в минутах.
950
- * @param value values for moving/ значения для перемещения
951
- */
952
- moveByMinute(t) {
953
- return this.setMinute(this.date.getMinutes() + t), this;
954
- }
955
- /**
956
- * Shift the date by a given value in seconds.
957
- *
958
- * Сдвинуть дату на заданное значение в секундах.
959
- * @param value values for moving/ значения для перемещения
960
- */
961
- moveBySecond(t) {
962
- return this.setSecond(this.date.getSeconds() + t), this;
963
- }
964
- /**
965
- * Translate to the first month.
966
- *
967
- * Переводить на первый месяц.
968
- */
969
- moveMonthFirst() {
970
- return this.setMonth(1), this;
971
- }
972
- /**
973
- * Translate to the first month.
974
- *
975
- * Переводить на первый месяц.
976
- */
977
- moveMonthLast() {
978
- return this.setMonth(12), this;
979
- }
980
- /**
981
- * Translate to the first day of the next month.
982
- *
983
- * Переводить на первый день следующего месяца.
984
- */
985
- moveMonthNext() {
986
- return this.setDay(1).moveByMonth(1), this;
987
- }
988
- /**
989
- * Translate to the first day of the previous month.
990
- *
991
- * Переводить на первый день предыдущего месяца.
992
- */
993
- moveMonthPrevious() {
994
- return this.setDay(1).moveByMonth(-1), this;
995
- }
996
- /**
997
- * Translate to the first day of the week.
998
- *
999
- * Переводить на первый день недели.
1000
- */
1001
- moveWeekdayFirst() {
1002
- const t = this.date.getDay(), e = this.getFirstDayCode();
1003
- return this.moveByDay(
1004
- (e === 6 ? -1 : e) - t
1005
- ), this;
1006
- }
1007
- /**
1008
- * Translate to the last day of the week.
1009
- *
1010
- * Переводить на последний день недели.
1011
- */
1012
- moveWeekdayLast() {
1013
- return this.moveWeekdayFirst().moveByDay(6), this;
1014
- }
1015
- /**
1016
- * Translate to the first day of the first week of the month.
1017
- *
1018
- * Переводить на первый день первой недели месяца.
1019
- */
1020
- moveWeekdayFirstByMonth() {
1021
- return this.moveDayFirst().moveWeekdayFirst(), this;
1022
- }
1023
- /**
1024
- * Translate to the first day of the first full week of the following month.
1025
- *
1026
- * Переводить на первый день первой полной недели следующего месяца.
1027
- */
1028
- moveWeekdayLastByMonth() {
1029
- return this.moveDayLast().moveWeekdayLast(), this;
1030
- }
1031
- /**
1032
- * Translate to the next week.
1033
- *
1034
- * Переводить на следующую неделю.
1035
- */
1036
- moveWeekdayNext() {
1037
- return this.moveWeekdayFirst().moveByDay(7), this;
1038
- }
1039
- /**
1040
- * Translate to the previous week.
1041
- *
1042
- * Переводить на предыдущую неделю.
1043
- */
1044
- moveWeekdayPrevious() {
1045
- return this.moveWeekdayFirst().moveByDay(-7), this;
1046
- }
1047
- /**
1048
- * Translate to the first day of the month.
1049
- *
1050
- * Переводить на первый день месяца.
1051
- */
1052
- moveDayFirst() {
1053
- return this.setDay(1), this;
1054
- }
1055
- /**
1056
- * Translate to the last day of the month.
1057
- *
1058
- * Переводить на последний день месяца.
1059
- */
1060
- moveDayLast() {
1061
- return this.setDay(1).moveByMonth(1).moveByDay(-1), this;
1062
- }
1063
- /**
1064
- * Translate to the next day.
1065
- *
1066
- * Переводить на следующий день.
1067
- */
1068
- moveDayNext() {
1069
- return this.moveByDay(1), this;
1070
- }
1071
- /**
1072
- * Translate to the previous day.
1073
- *
1074
- * Переводить на предыдущий день.
1075
- */
1076
- moveDayPrevious() {
1077
- return this.moveByDay(-1), this;
1078
- }
1079
- /**
1080
- * Clone the Date object.
1081
- *
1082
- * Клонировать объект Date.
1083
- */
1084
- clone() {
1085
- return new Date(this.date);
1086
- }
1087
- /**
1088
- * Clone the GeoDate object.
1089
- *
1090
- * Клонировать объект GeoDate.
1091
- */
1092
- cloneClass() {
1093
- return new this.constructor(
1094
- this.clone(),
1095
- this.type,
1096
- this.code
1097
- );
1098
- }
1099
- /**
1100
- * Clone the GeoDate object and set the month to January.
1101
- *
1102
- * Клонировать объект GeoDate и установить месяц на январь.
1103
- */
1104
- cloneMonthFirst() {
1105
- return this.cloneClass().moveMonthFirst();
1106
- }
1107
- /**
1108
- * Clone the GeoDate object and move the month to the end of the year.
1109
- *
1110
- * Клонировать объект GeoDate и перевести месяц на конец года.
1111
- */
1112
- cloneMonthLast() {
1113
- return this.cloneClass().moveMonthLast();
1114
- }
1115
- /**
1116
- * Clone the GeoDate object and transfer it one month ahead.
1117
- *
1118
- * Клонировать объект GeoDate и перевести на 1 месяц вперед.
1119
- */
1120
- cloneMonthNext() {
1121
- return this.cloneClass().moveMonthNext();
1122
- }
1123
- /**
1124
- * Clone the GeoDate object and transfer it one month back.
1125
- *
1126
- * Клонировать объект GeoDate и перевести на 1 месяц назад.
1127
- */
1128
- cloneMonthPrevious() {
1129
- return this.cloneClass().moveMonthPrevious();
1130
- }
1131
- /**
1132
- * Returns the first day of the week according to the current date.
1133
- *
1134
- * Возвращает первый день недели по текущей дате.
1135
- */
1136
- cloneWeekdayFirst() {
1137
- return this.cloneClass().moveWeekdayFirst();
1138
- }
1139
- /**
1140
- * Returns the last day of the week according to the current date.
1141
- *
1142
- * Возвращает последний день недели по текущей дате.
1143
- */
1144
- cloneWeekdayLast() {
1145
- return this.cloneClass().moveWeekdayLast();
1146
- }
1147
- /**
1148
- * Returns the first day of the week according to the current month.
1149
- *
1150
- * Возвращает первый день недели по текущему месяцу.
1151
- */
1152
- cloneWeekdayFirstByMonth() {
1153
- return this.cloneClass().moveWeekdayFirstByMonth();
1154
- }
1155
- /**
1156
- * Returns the last day of the week according to the current month.
1157
- *
1158
- * Возвращает последний день недели по текущему месяцу.
1159
- */
1160
- cloneWeekdayLastByMonth() {
1161
- return this.cloneClass().moveWeekdayLastByMonth();
1162
- }
1163
- /**
1164
- * Returns the next week according to the current date.
1165
- *
1166
- * Возвращает следующую неделю по текущей дате.
1167
- */
1168
- cloneWeekdayNext() {
1169
- return this.cloneClass().moveWeekdayNext();
1170
- }
1171
- /**
1172
- * Returns the previous week according to the current date.
1173
- *
1174
- * Возвращает предыдущую неделю по текущей дате.
1175
- */
1176
- cloneWeekdayPrevious() {
1177
- return this.cloneClass().moveWeekdayPrevious();
1178
- }
1179
- /**
1180
- * Clone the GeoDate object and move the day to the beginning of the month.
1181
- *
1182
- * Клонировать объект GeoDate и перевести день на начало месяца.
1183
- */
1184
- cloneDayFirst() {
1185
- return this.cloneClass().moveDayFirst();
1186
- }
1187
- /**
1188
- * Clone the GeoDate object and move the day to the end of the month.
1189
- *
1190
- * Клонировать объект GeoDate и перевести день на конец месяца.
1191
- */
1192
- cloneDayLast() {
1193
- return this.cloneClass().moveDayLast();
1194
- }
1195
- /**
1196
- * Clone the GeoDate object and move by 1 day.
1197
- *
1198
- * Клонировать объект GeoDate и перевести на 1 день.
1199
- */
1200
- cloneDayNext() {
1201
- return this.cloneClass().moveDayNext();
1202
- }
1203
- /**
1204
- * Clone the GeoDate object and go back by 1 day.
1205
- *
1206
- * Клонировать объект GeoDate и вернуться на 1 день.
1207
- */
1208
- cloneDayPrevious() {
1209
- return this.cloneClass().moveDayPrevious();
1210
- }
1211
- /**
1212
- * Returns the time zone hour format.
1213
- *
1214
- * Возвращает часовой формат временной зоны.
1215
- * @param hour hour/ час
1216
- */
1217
- toTimeZoneHourFormat(t) {
1218
- m() && this.getIntl().number(Math.trunc(t), {
1219
- signDisplay: "always",
1220
- minimumIntegerDigits: 2
1221
- });
1222
- let e = Math.trunc(t).toString();
1223
- return e.length < 2 && (e = `0${e}`), `${t >= 0 ? "+" : "-"}${e}`;
1224
- }
1225
- /**
1226
- * Updating all values.
1227
- *
1228
- * Обновление всех значений.
1229
- */
1230
- update() {
1231
- var t;
1232
- return (t = this.watch) == null || t.call(
1233
- this,
1234
- this.date,
1235
- this.type,
1236
- this.hour24
1237
- ), this;
1238
- }
1239
- }
1240
- const n = "@flag", P = class P {
1241
- /**
1242
- * Constructor
1243
- * @param code country and language code/ код страны и языка
1244
- */
1245
- constructor(t = D.getLocation()) {
1246
- this.code = t;
1247
- }
1248
- /**
1249
- * Returns information about the country and its flag.
1250
- *
1251
- * Возвращает информацию о стране и её флаге.
1252
- * @param code country code/ код страны
1253
- */
1254
- get(t = this.code) {
1255
- var s;
1256
- const e = D.find(t);
1257
- if (e) {
1258
- const r = this.getCountry(e);
1259
- return {
1260
- language: this.getLanguage(e),
1261
- country: r,
1262
- standard: e.standard,
1263
- icon: (s = P.flags) == null ? void 0 : s[e.country],
1264
- label: r,
1265
- value: e.country
1266
- };
1267
- }
1268
- }
1269
- /**
1270
- * Getting a link to the flag.
1271
- *
1272
- * Получение ссылки на флаг.
1273
- * @param code country code/ код страны
1274
- */
1275
- getFlag(t = this.code) {
1276
- var e;
1277
- return (e = this.get(t)) == null ? void 0 : e.icon;
1278
- }
1279
- /**
1280
- * Getting a list of countries by an array of codes.
1281
- *
1282
- * Получение списка стран по массиву с кодами.
1283
- * @param codes country code/ код страны
1284
- */
1285
- getList(t) {
1286
- return p(this.getCodes(t), (e) => this.get(e));
1287
- }
1288
- /**
1289
- * Getting a list of countries by an array of codes in national language.
1290
- *
1291
- * Получение списка стран по массиву с кодами на национальный язык.
1292
- * @param codes country code/ код страны.
1293
- */
1294
- getNational(t) {
1295
- return p(this.getList(t), (e) => {
1296
- const s = new P(e.standard).get(e.standard);
1297
- return {
1298
- ...e,
1299
- description: s == null ? void 0 : s.country,
1300
- nationalLanguage: s == null ? void 0 : s.language,
1301
- nationalCountry: s == null ? void 0 : s.country
1302
- };
1303
- });
1304
- }
1305
- /**
1306
- * To change the location.
1307
- *
1308
- * Изменить местоположение.
1309
- * @param code country and language code/ код страны и языка
1310
- */
1311
- setCode(t) {
1312
- return this.code = t, this;
1313
- }
1314
- /**
1315
- * Returns a special object for formatting.
1316
- *
1317
- * Возвращает специальный объект для работы с форматированием.
1318
- */
1319
- getLocation() {
1320
- return new W(this.code);
1321
- }
1322
- /**
1323
- * Returns a list of countries to retrieve data from.
1324
- *
1325
- * Возвращает список стран для получения данных.
1326
- * @param codes country code/ код страны
1327
- */
1328
- getCodes(t) {
1329
- return t != null ? t : Object.keys(P.flags);
1330
- }
1331
- /**
1332
- * Getting the name of the language.
1333
- *
1334
- * Получение названия языка.
1335
- * @param data object with information of data/ объект с информацией данных
1336
- */
1337
- getLanguage(t) {
1338
- return this.getLocation().languageName(t.language);
1339
- }
1340
- /**
1341
- * Getting the name of the country.
1342
- *
1343
- * Получение названия страны.
1344
- * @param data object with information of data/ объект с информацией данных
1345
- */
1346
- getCountry(t) {
1347
- return this.getLocation().countryName(t.country);
1348
- }
1349
- };
1350
- c(P, "flags", {
1351
- AD: `${n}-ad`,
1352
- AE: `${n}-ae`,
1353
- AF: `${n}-af`,
1354
- AG: `${n}-ag`,
1355
- AI: `${n}-ai`,
1356
- AL: `${n}-al`,
1357
- AM: `${n}-am`,
1358
- AN: `${n}-an`,
1359
- AO: `${n}-ao`,
1360
- AQ: `${n}-aq`,
1361
- AR: `${n}-ar`,
1362
- AS: `${n}-as`,
1363
- AT: `${n}-at`,
1364
- AU: `${n}-au`,
1365
- AW: `${n}-aw`,
1366
- AZ: `${n}-az`,
1367
- BA: `${n}-ba`,
1368
- BB: `${n}-bb`,
1369
- BD: `${n}-bd`,
1370
- BE: `${n}-be`,
1371
- BF: `${n}-bf`,
1372
- BG: `${n}-bg`,
1373
- BH: `${n}-bh`,
1374
- BI: `${n}-bi`,
1375
- BJ: `${n}-bj`,
1376
- BL: `${n}-bl`,
1377
- BM: `${n}-bm`,
1378
- BN: `${n}-bn`,
1379
- BO: `${n}-bo`,
1380
- BR: `${n}-br`,
1381
- BS: `${n}-bs`,
1382
- BT: `${n}-bt`,
1383
- BW: `${n}-bw`,
1384
- BY: `${n}-by`,
1385
- BZ: `${n}-bz`,
1386
- CA: `${n}-ca`,
1387
- CC: `${n}-cc`,
1388
- CD: `${n}-cd`,
1389
- CF: `${n}-cf`,
1390
- CG: `${n}-cg`,
1391
- CH: `${n}-ch`,
1392
- CI: `${n}-ci`,
1393
- CK: `${n}-ck`,
1394
- CL: `${n}-cl`,
1395
- CM: `${n}-cm`,
1396
- CN: `${n}-cn`,
1397
- CO: `${n}-co`,
1398
- CR: `${n}-cr`,
1399
- CU: `${n}-cu`,
1400
- CV: `${n}-cv`,
1401
- CW: `${n}-cw`,
1402
- CX: `${n}-cx`,
1403
- CY: `${n}-cy`,
1404
- CZ: `${n}-cz`,
1405
- DE: `${n}-de`,
1406
- DJ: `${n}-dj`,
1407
- DK: `${n}-dk`,
1408
- DM: `${n}-dm`,
1409
- DZ: `${n}-dz`,
1410
- EC: `${n}-ec`,
1411
- EE: `${n}-ee`,
1412
- EG: `${n}-eg`,
1413
- EH: `${n}-eh`,
1414
- ER: `${n}-er`,
1415
- ES: `${n}-es`,
1416
- ET: `${n}-et`,
1417
- FI: `${n}-fi`,
1418
- FJ: `${n}-fj`,
1419
- FK: `${n}-fk`,
1420
- FM: `${n}-fm`,
1421
- FO: `${n}-fo`,
1422
- FR: `${n}-fr`,
1423
- GA: `${n}-ga`,
1424
- GB: `${n}-gb`,
1425
- GD: `${n}-gd`,
1426
- GE: `${n}-ge`,
1427
- GF: `${n}-gf`,
1428
- GG: `${n}-gg`,
1429
- GH: `${n}-gh`,
1430
- GI: `${n}-gi`,
1431
- GL: `${n}-gl`,
1432
- GM: `${n}-gm`,
1433
- GN: `${n}-gn`,
1434
- GQ: `${n}-gq`,
1435
- GR: `${n}-gr`,
1436
- GT: `${n}-gt`,
1437
- GU: `${n}-gu`,
1438
- GW: `${n}-gw`,
1439
- GY: `${n}-gy`,
1440
- HK: `${n}-hk`,
1441
- HN: `${n}-hn`,
1442
- HR: `${n}-hr`,
1443
- HT: `${n}-ht`,
1444
- HU: `${n}-hu`,
1445
- ID: `${n}-id`,
1446
- IE: `${n}-ie`,
1447
- IL: `${n}-il`,
1448
- IM: `${n}-im`,
1449
- IN: `${n}-in`,
1450
- IO: `${n}-io`,
1451
- IQ: `${n}-iq`,
1452
- IR: `${n}-ir`,
1453
- IS: `${n}-is`,
1454
- IT: `${n}-it`,
1455
- JE: `${n}-je`,
1456
- JM: `${n}-jm`,
1457
- JO: `${n}-jo`,
1458
- JP: `${n}-jp`,
1459
- KE: `${n}-ke`,
1460
- KG: `${n}-kg`,
1461
- KH: `${n}-kh`,
1462
- KI: `${n}-ki`,
1463
- KM: `${n}-km`,
1464
- KN: `${n}-kn`,
1465
- KP: `${n}-kp`,
1466
- KR: `${n}-kr`,
1467
- KW: `${n}-kw`,
1468
- KY: `${n}-ky`,
1469
- KZ: `${n}-kz`,
1470
- LA: `${n}-la`,
1471
- LB: `${n}-lb`,
1472
- LC: `${n}-lc`,
1473
- LI: `${n}-li`,
1474
- LK: `${n}-lk`,
1475
- LR: `${n}-lr`,
1476
- LS: `${n}-ls`,
1477
- LT: `${n}-lt`,
1478
- LU: `${n}-lu`,
1479
- LV: `${n}-lv`,
1480
- LY: `${n}-ly`,
1481
- MA: `${n}-ma`,
1482
- MC: `${n}-mc`,
1483
- MD: `${n}-md`,
1484
- ME: `${n}-me`,
1485
- MF: `${n}-mf`,
1486
- MG: `${n}-mg`,
1487
- MH: `${n}-mh`,
1488
- MK: `${n}-mk`,
1489
- ML: `${n}-ml`,
1490
- MM: `${n}-mm`,
1491
- MN: `${n}-mn`,
1492
- MO: `${n}-mo`,
1493
- MP: `${n}-mp`,
1494
- MQ: `${n}-mq`,
1495
- MR: `${n}-mr`,
1496
- MS: `${n}-ms`,
1497
- MT: `${n}-mt`,
1498
- MU: `${n}-mu`,
1499
- MV: `${n}-mv`,
1500
- MW: `${n}-mw`,
1501
- MX: `${n}-mx`,
1502
- MY: `${n}-my`,
1503
- MZ: `${n}-mz`,
1504
- NA: `${n}-na`,
1505
- NC: `${n}-nc`,
1506
- NE: `${n}-ne`,
1507
- NF: `${n}-nf`,
1508
- NG: `${n}-ng`,
1509
- NI: `${n}-ni`,
1510
- NL: `${n}-nl`,
1511
- NO: `${n}-no`,
1512
- NP: `${n}-np`,
1513
- NR: `${n}-nr`,
1514
- NU: `${n}-nu`,
1515
- NZ: `${n}-nz`,
1516
- OM: `${n}-om`,
1517
- PA: `${n}-pa`,
1518
- PE: `${n}-pe`,
1519
- PF: `${n}-pf`,
1520
- PG: `${n}-pg`,
1521
- PH: `${n}-ph`,
1522
- PK: `${n}-pk`,
1523
- PL: `${n}-pl`,
1524
- PM: `${n}-pm`,
1525
- PN: `${n}-pn`,
1526
- PR: `${n}-pr`,
1527
- PS: `${n}-ps`,
1528
- PT: `${n}-pt`,
1529
- PW: `${n}-pw`,
1530
- PY: `${n}-py`,
1531
- QA: `${n}-qa`,
1532
- RE: `${n}-re`,
1533
- RO: `${n}-ro`,
1534
- RS: `${n}-rs`,
1535
- RU: `${n}-ru`,
1536
- RW: `${n}-rw`,
1537
- SA: `${n}-sa`,
1538
- SB: `${n}-sb`,
1539
- SC: `${n}-sc`,
1540
- SD: `${n}-sd`,
1541
- SE: `${n}-se`,
1542
- SG: `${n}-sg`,
1543
- SH: `${n}-sh`,
1544
- SI: `${n}-si`,
1545
- SJ: `${n}-sj`,
1546
- SK: `${n}-sk`,
1547
- SL: `${n}-sl`,
1548
- SM: `${n}-sm`,
1549
- SN: `${n}-sn`,
1550
- SO: `${n}-so`,
1551
- SR: `${n}-sr`,
1552
- SS: `${n}-ss`,
1553
- ST: `${n}-st`,
1554
- SV: `${n}-sv`,
1555
- SX: `${n}-sx`,
1556
- SY: `${n}-sy`,
1557
- SZ: `${n}-sz`,
1558
- TC: `${n}-tc`,
1559
- TD: `${n}-td`,
1560
- TG: `${n}-tg`,
1561
- TH: `${n}-th`,
1562
- TJ: `${n}-tj`,
1563
- TK: `${n}-tk`,
1564
- TL: `${n}-tl`,
1565
- TM: `${n}-tm`,
1566
- TN: `${n}-tn`,
1567
- TO: `${n}-to`,
1568
- TR: `${n}-tr`,
1569
- TT: `${n}-tt`,
1570
- TV: `${n}-tv`,
1571
- TW: `${n}-tw`,
1572
- TZ: `${n}-tz`,
1573
- UA: `${n}-ua`,
1574
- UG: `${n}-ug`,
1575
- US: `${n}-us`,
1576
- UY: `${n}-uy`,
1577
- UZ: `${n}-uz`,
1578
- VA: `${n}-va`,
1579
- VC: `${n}-vc`,
1580
- VE: `${n}-ve`,
1581
- VG: `${n}-vg`,
1582
- VI: `${n}-vi`,
1583
- VN: `${n}-vn`,
1584
- VU: `${n}-vu`,
1585
- WF: `${n}-wf`,
1586
- WS: `${n}-ws`,
1587
- YE: `${n}-ye`,
1588
- YT: `${n}-yt`,
1589
- ZA: `${n}-za`,
1590
- ZM: `${n}-zm`,
1591
- ZW: `${n}-zw`
1592
- });
1593
- let at = P, H;
1594
- class Re {
1595
- /**
1596
- * Returns the value by its name.
1597
- *
1598
- * Возвращает значение по его имени.
1599
- * @param name property name/ название свойства
1600
- */
1601
- static get(t) {
1602
- return H && (H == null ? void 0 : H[t]);
1603
- }
1604
- /**
1605
- * Adds data, this method works only once.
1606
- *
1607
- * Добавляет данные, этот метод работает только 1 раз.
1608
- * @param data global data/ глобальные данные
1609
- */
1610
- static add(t) {
1611
- H === void 0 && (H = Et(t));
1612
- }
1613
- }
1614
- function qt(i) {
1615
- return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
1616
- }
1617
- class dt {
1618
- /**
1619
- * Creates an instance of MetaManager.
1620
- *
1621
- * Создает экземпляр MetaManager.
1622
- * @param listMeta list of meta-tag names to manage / список имен мета-тегов для управления
1623
- * @param isProperty use 'property' attribute instead of 'name' / использовать атрибут 'property' вместо 'name'
1624
- */
1625
- constructor(t, e = !1) {
1626
- c(this, "items", {});
1627
- this.listMeta = t, this.isProperty = e, this.update();
1628
- }
1629
- /**
1630
- * Returns the list of meta tag names.
1631
- *
1632
- * Возвращает список имен мета-тегов.
1633
- */
1634
- getListMeta() {
1635
- return this.listMeta;
1636
- }
1637
- /**
1638
- * Get the content of a meta tag by name.
1639
- *
1640
- * Получает содержимое мета-тега по имени.
1641
- * @param name meta tag name / имя мета-тега
1642
- */
1643
- get(t) {
1644
- var e;
1645
- return (e = this.items[t]) != null ? e : "";
1646
- }
1647
- /**
1648
- * Returns all meta tags.
1649
- *
1650
- * Возвращает все мета-теги.
1651
- */
1652
- getItems() {
1653
- return this.items;
1654
- }
1655
- /**
1656
- * Returns all meta tags as HTML string.
1657
- *
1658
- * Возвращает все мета-теги в виде HTML-строки.
1659
- */
1660
- html() {
1661
- return p(
1662
- this.listMeta,
1663
- (e) => this.toHtmlString(e)
1664
- ).join("");
1665
- }
1666
- /**
1667
- * Sets the content of a meta tag.
1668
- *
1669
- * Устанавливает содержимое мета-тега.
1670
- * @param name meta tag name / имя мета-тега
1671
- * @param content meta tag content / содержимое мета-тега
1672
- */
1673
- set(t, e) {
1674
- return this.setItem(t, e).setMeta(t), this;
1675
- }
1676
- /**
1677
- * Sets multiple meta tags from an object.
1678
- *
1679
- * Устанавливает несколько мета-тегов из объекта.
1680
- * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
1681
- */
1682
- setByList(t) {
1683
- return p(
1684
- t,
1685
- (e, s) => this.set(s, String(e))
1686
- ), this;
1687
- }
1688
- /**
1689
- * Returns the attribute name for meta tags.
1690
- *
1691
- * Возвращает имя атрибута для мета-тегов.
1692
- */
1693
- getAttributeName() {
1694
- return this.isProperty ? "property" : "name";
1695
- }
1696
- /**
1697
- * Finds a meta element in the DOM.
1698
- *
1699
- * Находит мета-элемент в DOM.
1700
- * @param name meta tag name / имя мета-тега
1701
- */
1702
- findMetaElement(t) {
1703
- if (!m())
1704
- return;
1705
- const e = `meta[${this.getAttributeName()}="${t}"]`;
1706
- return document.querySelector(e) || void 0;
1707
- }
1708
- /**
1709
- * Sets the content of a meta tag in internal storage.
1710
- *
1711
- * Устанавливает содержимое мета-тега во внутреннем хранилище.
1712
- * @param name meta tag name / имя мета-тега
1713
- * @param content meta tag content / содержимое мета-тега
1714
- */
1715
- setItem(t, e) {
1716
- return this.items[t] = e, this;
1717
- }
1718
- /**
1719
- * Sets or creates a meta tag in the DOM.
1720
- *
1721
- * Устанавливает или создает мета-тег в DOM.
1722
- * @param name meta tag name / имя мета-тега
1723
- */
1724
- setMeta(t) {
1725
- var r;
1726
- const e = this.findMetaElement(t), s = (r = this.items[t]) != null ? r : "";
1727
- if (e)
1728
- e.content = s;
1729
- else if (m()) {
1730
- const o = { content: s };
1731
- this.isProperty ? o.property = t : o.name = t, bt(document.head, "meta", o);
1732
- }
1733
- return this;
1734
- }
1735
- /**
1736
- * Converts meta tag to HTML string.
1737
- *
1738
- * Преобразует мета-тег в HTML-строку.
1739
- * @param name meta tag name / имя мета-тега
1740
- */
1741
- toHtmlString(t) {
1742
- var s;
1743
- const e = qt((s = this.items[t]) != null ? s : "");
1744
- return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
1745
- }
1746
- /**
1747
- * Updates meta tags data from the DOM.
1748
- *
1749
- * Обновляет данные мета-тегов из DOM.
1750
- */
1751
- update() {
1752
- return this.listMeta.forEach((t) => {
1753
- var e, s;
1754
- this.items[t] = (s = (e = this.findMetaElement(t)) == null ? void 0 : e.content) != null ? s : "";
1755
- }), this;
1756
- }
1757
- }
1758
- var L = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(L || {}), Jt = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(Jt || {}), b = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(b || {}), Qt = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(Qt || {}), Xt = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(Xt || {}), Mt = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(Mt || {}), Ot = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(Ot || {}), Tt = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(Tt || {}), S = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))(S || {}), Gt = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(Gt || {});
1759
- class te extends dt {
1760
- constructor() {
1761
- super(Object.values(b), !0);
1762
- }
1763
- /**
1764
- * Gets the Open Graph title.
1765
- *
1766
- * Получает заголовок Open Graph.
1767
- */
1768
- getTitle() {
1769
- return this.get(b.title);
1770
- }
1771
- /**
1772
- * Gets the Open Graph type.
1773
- *
1774
- * Получает тип Open Graph.
1775
- */
1776
- getType() {
1777
- return this.get(b.type);
1778
- }
1779
- /**
1780
- * Gets the Open Graph URL.
1781
- *
1782
- * Получает URL Open Graph.
1783
- */
1784
- getUrl() {
1785
- return this.get(b.url);
1786
- }
1787
- /**
1788
- * Gets the Open Graph image URL.
1789
- *
1790
- * Получает URL изображения Open Graph.
1791
- */
1792
- getImage() {
1793
- return this.get(b.image);
1794
- }
1795
- /**
1796
- * Gets the Open Graph description.
1797
- *
1798
- * Получает описание Open Graph.
1799
- */
1800
- getDescription() {
1801
- return this.get(b.description);
1802
- }
1803
- /**
1804
- * Gets the Open Graph locale.
1805
- *
1806
- * Получает локаль Open Graph.
1807
- */
1808
- getLocale() {
1809
- return this.get(b.locale);
1810
- }
1811
- /**
1812
- * Gets the Open Graph site name.
1813
- *
1814
- * Получает название сайта Open Graph.
1815
- */
1816
- getSiteName() {
1817
- return this.get(b.siteName);
1818
- }
1819
- /**
1820
- * Sets the Open Graph title.
1821
- *
1822
- * Устанавливает заголовок Open Graph.
1823
- * @param title title / заголовок
1824
- */
1825
- setTitle(t) {
1826
- return this.set(b.title, t);
1827
- }
1828
- /**
1829
- * Sets the Open Graph type.
1830
- *
1831
- * Устанавливает тип Open Graph.
1832
- * @param type type / тип
1833
- */
1834
- setType(t) {
1835
- return this.set(b.type, t);
1836
- }
1837
- /**
1838
- * Sets the Open Graph URL.
1839
- *
1840
- * Устанавливает URL Open Graph.
1841
- * @param url URL / URL
1842
- */
1843
- setUrl(t) {
1844
- return this.set(b.url, t);
1845
- }
1846
- /**
1847
- * Sets the Open Graph image URL.
1848
- *
1849
- * Устанавливает URL изображения Open Graph.
1850
- * @param url image URL / URL изображения
1851
- */
1852
- setImage(t) {
1853
- return this.set(b.image, t);
1854
- }
1855
- /**
1856
- * Sets the Open Graph description.
1857
- *
1858
- * Устанавливает описание Open Graph.
1859
- * @param description description / описание
1860
- */
1861
- setDescription(t) {
1862
- return this.set(b.description, t);
1863
- }
1864
- /**
1865
- * Sets the Open Graph locale.
1866
- *
1867
- * Устанавливает локаль Open Graph.
1868
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
1869
- */
1870
- setLocale(t) {
1871
- return this.set(b.locale, t);
1872
- }
1873
- /**
1874
- * Sets the Open Graph site name.
1875
- *
1876
- * Устанавливает название сайта Open Graph.
1877
- * @param siteName site name / название сайта
1878
- */
1879
- setSiteName(t) {
1880
- return this.set(b.siteName, t);
1881
- }
1882
- }
1883
- class ee extends dt {
1884
- constructor() {
1885
- super(Object.values(S));
1886
- }
1887
- /**
1888
- * Gets the Twitter Card type.
1889
- *
1890
- * Получает тип Twitter Card.
1891
- */
1892
- getCard() {
1893
- return this.get(S.card);
1894
- }
1895
- /**
1896
- * Gets the website or brand @username.
1897
- *
1898
- * Получает аккаунт сайта или бренда (@username).
1899
- */
1900
- getSite() {
1901
- return this.get(S.site);
1902
- }
1903
- /**
1904
- * Gets the content creator @username.
1905
- *
1906
- * Получает автора контента (@username).
1907
- */
1908
- getCreator() {
1909
- return this.get(S.creator);
1910
- }
1911
- /**
1912
- * Gets the page URL.
1913
- *
1914
- * Получает URL страницы.
1915
- */
1916
- getUrl() {
1917
- return this.get(S.url);
1918
- }
1919
- /**
1920
- * Gets the card title.
1921
- *
1922
- * Получает заголовок карточки.
1923
- */
1924
- getTitle() {
1925
- return this.get(S.title);
1926
- }
1927
- /**
1928
- * Gets the card description.
1929
- *
1930
- * Получает описание карточки.
1931
- */
1932
- getDescription() {
1933
- return this.get(S.description);
1934
- }
1935
- /**
1936
- * Gets the card image URL.
1937
- *
1938
- * Получает URL изображения карточки.
1939
- */
1940
- getImage() {
1941
- return this.get(S.image);
1942
- }
1943
- /**
1944
- * Sets the Twitter Card type.
1945
- *
1946
- * Устанавливает тип Twitter Card.
1947
- * @param card card type / тип карточки
1948
- */
1949
- setCard(t) {
1950
- return this.set(S.card, t), this;
1951
- }
1952
- /**
1953
- * Sets the website or brand @username.
1954
- *
1955
- * Устанавливает аккаунт сайта или бренда (@username).
1956
- * @param site @username / аккаунт
1957
- */
1958
- setSite(t) {
1959
- return this.set(S.site, t), this;
1960
- }
1961
- /**
1962
- * Sets the content creator @username.
1963
- *
1964
- * Устанавливает автора контента (@username).
1965
- * @param creator @username / аккаунт автора
1966
- */
1967
- setCreator(t) {
1968
- return this.set(S.creator, t), this;
1969
- }
1970
- /**
1971
- * Sets the page URL.
1972
- *
1973
- * Устанавливает URL страницы.
1974
- * @param url URL / URL
1975
- */
1976
- setUrl(t) {
1977
- return this.set(S.url, t), this;
1978
- }
1979
- /**
1980
- * Sets the card title.
1981
- *
1982
- * Устанавливает заголовок карточки.
1983
- * @param title title / заголовок
1984
- */
1985
- setTitle(t) {
1986
- return this.set(S.title, t), this;
1987
- }
1988
- /**
1989
- * Sets the card description.
1990
- *
1991
- * Устанавливает описание карточки.
1992
- * @param description description / описание
1993
- */
1994
- setDescription(t) {
1995
- return this.set(S.description, t), this;
1996
- }
1997
- /**
1998
- * Sets the card image URL.
1999
- *
2000
- * Устанавливает URL изображения карточки.
2001
- * @param image image URL / URL изображения
2002
- */
2003
- setImage(t) {
2004
- return this.set(S.image, t), this;
2005
- }
2006
- }
2007
- class ie extends dt {
2008
- /**
2009
- * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
2010
- *
2011
- * Создает экземпляр Meta с интегрированной поддержкой Open Graph и Twitter Card.
2012
- */
2013
- constructor() {
2014
- super(Object.values(L));
2015
- c(this, "suffix");
2016
- c(this, "og");
2017
- c(this, "twitter");
2018
- this.og = new te(), this.twitter = new ee();
2019
- }
2020
- /**
2021
- * Gets the MetaOg instance for advanced Open Graph operations.
2022
- *
2023
- * Получает экземпляр MetaOg для расширенных операций с Open Graph.
2024
- */
2025
- getOg() {
2026
- return this.og;
2027
- }
2028
- /**
2029
- * Gets the MetaTwitter instance for advanced Twitter Card operations.
2030
- *
2031
- * Получает экземпляр MetaTwitter для расширенных операций с Twitter Card.
2032
- */
2033
- getTwitter() {
2034
- return this.twitter;
2035
- }
2036
- /**
2037
- * Gets the page title without suffix.
2038
- *
2039
- * Получает заголовок страницы без суффикса.
2040
- */
2041
- getTitle() {
2042
- return m() ? document.title.replace(this.getSuffix(), "").trim() : "";
2043
- }
2044
- /**
2045
- * Gets the keywords meta tag.
2046
- *
2047
- * Получает мета-тег keywords.
2048
- */
2049
- getKeywords() {
2050
- return this.get(L.keywords);
2051
- }
2052
- /**
2053
- * Gets the description meta tag.
2054
- *
2055
- * Получает мета-тег description.
2056
- */
2057
- getDescription() {
2058
- return this.get(L.description);
2059
- }
2060
- /**
2061
- * Gets the Open Graph image URL.
2062
- *
2063
- * Получает URL изображения Open Graph.
2064
- */
2065
- getImage() {
2066
- return this.og.getImage();
2067
- }
2068
- /**
2069
- * Gets the canonical URL.
2070
- *
2071
- * Получает канонический URL.
2072
- */
2073
- getCanonical() {
2074
- return this.get(L.canonical);
2075
- }
2076
- /**
2077
- * Gets the robots meta tag value.
2078
- *
2079
- * Получает значение мета-тега robots.
2080
- */
2081
- getRobots() {
2082
- return this.get(L.robots);
2083
- }
2084
- /**
2085
- * Gets the author meta tag.
2086
- *
2087
- * Получает мета-тег author.
2088
- */
2089
- getAuthor() {
2090
- return this.get(L.author);
2091
- }
2092
- /**
2093
- * Gets the Open Graph site name.
2094
- *
2095
- * Получает название сайта Open Graph.
2096
- */
2097
- getSiteName() {
2098
- return this.og.getSiteName();
2099
- }
2100
- /**
2101
- * Gets the Open Graph locale.
2102
- *
2103
- * Получает локаль Open Graph.
2104
- */
2105
- getLocale() {
2106
- return this.og.getLocale();
2107
- }
2108
- /**
2109
- * Sets the page title (with suffix) and updates Open Graph and Twitter Card titles.
2110
- *
2111
- * Устанавливает заголовок страницы (с суффиксом) и обновляет заголовки Open Graph и Twitter Card.
2112
- * @param title page title / заголовок страницы
2113
- */
2114
- setTitle(e) {
2115
- if (m()) {
2116
- const s = K(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
2117
- document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
2118
- }
2119
- return this;
2120
- }
2121
- /**
2122
- * Sets the keywords meta tag.
2123
- *
2124
- * Устанавливает мета-тег keywords.
2125
- * @param keywords keywords as string or array / ключевые слова в виде строки или массива
2126
- */
2127
- setKeywords(e) {
2128
- return this.set(L.keywords, z(e).join(", ")), this;
2129
- }
2130
- /**
2131
- * Sets the description meta tag.
2132
- *
2133
- * Устанавливает мета-тег description.
2134
- * @param description page description / описание страницы
2135
- */
2136
- setDescription(e) {
2137
- return this.set(L.description, e), this;
2138
- }
2139
- /**
2140
- * Sets the image for Open Graph and Twitter Card.
2141
- *
2142
- * Устанавливает изображение для Open Graph и Twitter Card.
2143
- * @param image image URL / URL изображения
2144
- */
2145
- setImage(e) {
2146
- return this.og.setImage(e), this.twitter.setImage(e), this;
2147
- }
2148
- /**
2149
- * Sets the canonical URL and updates Open Graph and Twitter Card URLs.
2150
- *
2151
- * Устанавливает канонический URL и обновляет URL для Open Graph и Twitter Card.
2152
- * @param canonical canonical URL / канонический URL
2153
- */
2154
- setCanonical(e) {
2155
- return this.set(L.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
2156
- }
2157
- /**
2158
- * Sets the robots meta tag.
2159
- *
2160
- * Устанавливает мета-тег robots.
2161
- * @param robots robots directive / директива robots
2162
- */
2163
- setRobots(e) {
2164
- return this.set(L.robots, e), this;
2165
- }
2166
- /**
2167
- * Sets the author meta tag.
2168
- *
2169
- * Устанавливает мета-тег author.
2170
- * @param author author name / имя автора
2171
- */
2172
- setAuthor(e) {
2173
- return this.set(L.author, e), this;
2174
- }
2175
- /**
2176
- * Sets the site name for Open Graph and Twitter Card.
2177
- *
2178
- * Устанавливает название сайта для Open Graph и Twitter Card.
2179
- * @param siteName site name / название сайта
2180
- */
2181
- setSiteName(e) {
2182
- return this.og.setSiteName(e), this.twitter.setSite(e), this;
2183
- }
2184
- /**
2185
- * Sets the locale for Open Graph.
2186
- *
2187
- * Устанавливает локаль для Open Graph.
2188
- * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
2189
- */
2190
- setLocale(e) {
2191
- return this.og.setLocale(e), this;
2192
- }
2193
- /**
2194
- * Sets the suffix to append to page title.
2195
- *
2196
- * Устанавливает суффикс для добавления к заголовку страницы.
2197
- * @param suffix title suffix (e.g. 'My Site') / суффикс заголовка (например, 'Мой Сайт')
2198
- */
2199
- setSuffix(e) {
2200
- this.suffix = e;
2201
- }
2202
- /**
2203
- * Generates the complete HTML for all meta-tags including Open Graph and Twitter Card.
2204
- *
2205
- * Генерирует полный HTML для всех мета-тегов, включая Open Graph и Twitter Card.
2206
- */
2207
- html() {
2208
- return `${super.html()}${this.og.html()}${this.twitter.html()}`;
2209
- }
2210
- /**
2211
- * Gets the formatted suffix with separator.
2212
- *
2213
- * Получает отформатированный суффикс с разделителем.
2214
- */
2215
- getSuffix() {
2216
- return K(this.suffix) ? ` - ${this.suffix}` : "";
2217
- }
2218
- }
2219
- const se = [
2220
- "d",
2221
- "e",
2222
- "f",
2223
- "g",
2224
- "h",
2225
- "i",
2226
- "j",
2227
- "k",
2228
- "l",
2229
- "m",
2230
- "n",
2231
- "o",
2232
- "p",
2233
- "q",
2234
- "r",
2235
- "s",
2236
- "t",
2237
- "u",
2238
- "v"
2239
- ], re = (i, t = {}) => {
2240
- let e = String(i);
2241
- if (i.match(/%[a-z]/)) {
2242
- let s = 0;
2243
- p(t, (r) => {
2244
- e = e.replace(new RegExp(`%${se[s++]}`, "g"), String(r));
2245
- });
2246
- }
2247
- return E(t) && p(t, (s, r) => {
2248
- e = e.replace(
2249
- new RegExp(`\\[${r}\\](.*?)\\[/${r}\\]`, "g"),
2250
- (o, a) => String(s).replace(/\[content]/g, a)
2251
- ).replace(new RegExp(`\\[${r}\\]`, "g"), String(s));
2252
- }), e;
2253
- }, C = class C {
2254
- /**
2255
- * Getting the translation text by its code.
2256
- *
2257
- * Получение текста перевода по его коду.
2258
- * @param name code name/ название кода
2259
- * @param replacement If set, replaces the text with the specified values/ если установлено, заменяет текст на указанные значения
2260
- */
2261
- static async get(t, e) {
2262
- var r, o;
2263
- const s = this.getName(t);
2264
- return s in this.data ? this.replacement(this.data[s], e) : (Y.isLocalhost() || await this.add(t), this.replacement((o = (r = this.data) == null ? void 0 : r[s]) != null ? o : t));
2265
- }
2266
- /**
2267
- * Getting the translation text by its code (Sync).
2268
- *
2269
- * Получение текста перевода по его коду (Sync).
2270
- * @param name code name/ название кода
2271
- * @param first If set to false, returns an empty string if there is no text/
2272
- * если установлено false, возвращает пустую строку, если нет текста
2273
- * @param replacement If set, replaces the text with the specified values/
2274
- * если установлено, заменяет текст на указанные значения
2275
- */
2276
- static getSync(t, e = !1, s) {
2277
- const r = this.getName(t);
2278
- return r in this.data ? this.replacement(String(this.data[r]), s) : e ? " " : t;
2279
- }
2280
- /**
2281
- * Getting a list of translations by an array of text codes.
2282
- *
2283
- * Получение списка переводов по массиву кодов текста.
2284
- * @param names list of codes to get translations/ список кодов для получения переводов
2285
- */
2286
- static getList(t) {
2287
- return new Promise((e) => {
2288
- const s = {};
2289
- let r = 0;
2290
- for (const o of t) {
2291
- const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
2292
- this.get(a, u).then((h) => {
2293
- s[a] = h, ++r >= t.length && e(s);
2294
- });
2295
- }
2296
- });
2297
- }
2298
- /**
2299
- * Getting a list of translations by an array of text codes.
2300
- *
2301
- * Получение списка переводов по массиву кодов текста.
2302
- * @param names list of codes to get translations/ список кодов для получения переводов
2303
- * @param first If set to false, returns an empty string if there is no text/
2304
- * если установлено false, возвращает пустую строку, если нет текста
2305
- */
2306
- static getListSync(t, e = !1) {
2307
- const s = {};
2308
- for (const r of t) {
2309
- const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
2310
- s[o] = this.getSync(o, e, a);
2311
- }
2312
- return s;
2313
- }
2314
- /**
2315
- * Added a list of translated texts.
2316
- *
2317
- * Добавлен список переведенных текстов.
2318
- * @param names list of codes to get translations/ список кодов для получения переводов
2319
- */
2320
- static add(t) {
2321
- return new Promise((e) => {
2322
- this.getNamesNone(t).length > 0 ? (this.cache.push(...this.getNamesNone(t)), this.resolveList.push(e), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2323
- this.timeout = void 0, this.make().then(() => {
2324
- this.resolveList.forEach((r) => r()), this.resolveList = [];
2325
- });
2326
- }, 160)) : e();
2327
- });
2328
- }
2329
- /**
2330
- * Adds texts in sync mode.
2331
- *
2332
- * Добавляет тексты в режиме синхронизации.
2333
- * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2334
- */
2335
- static addSync(t) {
2336
- p(t, (e, s) => {
2337
- Q(e) && K(e) && (this.data[this.getName(s)] = e);
2338
- });
2339
- }
2340
- /**
2341
- * Adding data in the form of a query or directly, depending on the execution environment.
2342
- *
2343
- * Добавление данных в виде запроса или напрямую, в зависимости от среды выполнения.
2344
- * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
2345
- */
2346
- static async addNormalOrSync(t) {
2347
- if (K(t))
2348
- if (Y.isLocalhost())
2349
- this.addSync(t);
2350
- else {
2351
- const e = Object.keys(t);
2352
- e.length > 0 && await this.add(e);
2353
- }
2354
- }
2355
- /**
2356
- * Change the path to the script for obtaining the translation.
2357
- *
2358
- * Изменить путь к скрипту для получения перевода.
2359
- * @param url path to the script/ путь к скрипту
2360
- */
2361
- static setUrl(t) {
2362
- return this.url = t, C;
2363
- }
2364
- static setPropsName(t) {
2365
- return this.propsName = t, this;
2366
- }
2367
- /**
2368
- * Getting the full title for translation.
2369
- *
2370
- * Получение полного названия для перевода.
2371
- * @param name code name/ название кода
2372
- */
2373
- static getName(t) {
2374
- return `${D.getLocation()}-${t}`;
2375
- }
2376
- /**
2377
- * Returns a list of names that are not yet in the list.
2378
- *
2379
- * Возвращает список имен, которых еще нет в списке.
2380
- * @param names list of codes to get translations/ список кодов для получения переводов
2381
- */
2382
- static getNamesNone(t) {
2383
- const e = [];
2384
- return z(t).forEach((s) => {
2385
- s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
2386
- }), e;
2387
- }
2388
- /**
2389
- * Getting the list of translations from the server.
2390
- *
2391
- * Получение списка переводов с сервера.
2392
- */
2393
- static async getResponse() {
2394
- const t = await Y.get({
2395
- api: !1,
2396
- path: this.url,
2397
- request: {
2398
- [this.propsName]: this.cache
2399
- },
2400
- toData: !0,
2401
- global: !0
2402
- });
2403
- return t != null ? t : {};
2404
- }
2405
- /**
2406
- * Replaces the text with the specified values.
2407
- *
2408
- * Заменяет текст на указанные значения.
2409
- * @param text text to replace/ текст для замены
2410
- * @param replacement values for replacement/ значения для замены
2411
- */
2412
- static replacement(t, e) {
2413
- return e ? re(t, e) : t;
2414
- }
2415
- /**
2416
- * Adding translation data from the server.
2417
- *
2418
- * Добавление данных по переводу с сервера.
2419
- */
2420
- static async make() {
2421
- const t = await this.getResponse();
2422
- this.cache.forEach((e) => {
2423
- var s;
2424
- this.data[this.getName(e)] = (s = t == null ? void 0 : t[e]) != null ? s : "";
2425
- }), this.cache = [];
2426
- }
2427
- };
2428
- c(C, "url", "/api/translate"), c(C, "propsName", "list"), c(C, "data", {}), c(C, "cache", []), c(C, "resolveList", []), c(C, "timeout");
2429
- let q = C;
2430
- function gt(i) {
2431
- return Array.isArray(i);
2432
- }
2433
- function Pe(i) {
2434
- var t;
2435
- return Q(i) ? i.trim() : gt(i) && i.findIndex((e) => w(e)) === -1 ? i.join(",") : w(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
2436
- }
2437
- function ne(i, t) {
2438
- return Array(t).fill(i);
2439
- }
2440
- function We(i) {
2441
- return new Promise((t, e) => {
2442
- const s = new FileReader();
2443
- s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
2444
- });
2445
- }
2446
- function je(i) {
2447
- var t;
2448
- if (m())
2449
- return (t = document.querySelector(i)) != null ? t : void 0;
2450
- }
2451
- function Ue(i) {
2452
- if (m())
2453
- return document.querySelectorAll(i);
2454
- }
2455
- function ze(i) {
2456
- i.preventDefault(), i.stopPropagation();
2457
- }
2458
- function oe(i, t, e) {
2459
- const s = () => {
2460
- i(), t != null && t() ? oe(i, t, e) : e == null || e();
2461
- };
2462
- m() ? requestAnimationFrame(s) : s();
2463
- }
2464
- function Ze(i) {
2465
- var s;
2466
- const t = {}, e = St(i);
2467
- if (e)
2468
- for (const r of e.attributes)
2469
- t[r.name] = (s = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? s : void 0;
2470
- return t;
2471
- }
2472
- async function _e(i) {
2473
- var t, e;
2474
- return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
2475
- }
2476
- let yt = _(1e5, 9e5);
2477
- function j(i, t) {
2478
- const e = St(i);
2479
- return e ? (K(e.id) || e.setAttribute("id", `id-${yt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${yt++}`;
2480
- }
2481
- function ae(i) {
2482
- return Q(i) ? bt(
2483
- void 0,
2484
- "img",
2485
- { src: i }
2486
- ) : i;
2487
- }
2488
- function Lt(i, t = "ig", e = ":value") {
2489
- const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
2490
- return new RegExp(e.replace(/:value/g, s), t);
2491
- }
2492
- function ue(i, t) {
2493
- var r;
2494
- const e = t.split(".", 2), s = e[0];
2495
- return s && (i != null && i[s]) && E(i[s]) && (e != null && e[1]) ? ue(i[s], e[1]) : (r = s && (i == null ? void 0 : i[s])) != null ? r : "";
2496
- }
2497
- function Ke(i) {
2498
- var t, e, s;
2499
- return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
2500
- }
2501
- function It(i) {
2502
- return p(i, (t) => t.length);
2503
- }
2504
- function Ve(i) {
2505
- return Math.max(...It(i));
2506
- }
2507
- function Ye(i) {
2508
- return Math.min(...It(i));
2509
- }
2510
- function ce(i) {
2511
- var t, e, s, r;
2512
- return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientX) || 0;
2513
- }
2514
- function le(i) {
2515
- var t, e, s, r;
2516
- return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((r = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : r.clientY) || 0;
2517
- }
2518
- function qe(i) {
2519
- return {
2520
- x: ce(i),
2521
- y: le(i)
2522
- };
2523
- }
2524
- function Je(i, t) {
2525
- const e = {};
2526
- return t.forEach((s) => {
2527
- s in i && i[s] !== void 0 && (e[s] = i[s]);
2528
- }), e;
2529
- }
2530
- function Qe(i, t = void 0) {
2531
- const e = {};
2532
- return p(i, (s, r) => {
2533
- s !== t && (e[r] = s);
2534
- }), e;
2535
- }
2536
- function Xe(i) {
2537
- return E(i) ? i : {};
2538
- }
2539
- function he(i, t) {
2540
- return ne(i, t).join("");
2541
- }
2542
- function Me(i, t, e = "#", s = 2, r = 12) {
2543
- const o = _(i, t), a = [];
2544
- for (let u = 0; u < o; u++)
2545
- a.push(he(e, _(s, r)));
2546
- return a.join(" ");
2547
- }
2548
- function Oe(i, t) {
2549
- const e = i != null ? i : 0;
2550
- return t > e ? 100 / (t - e) : 0;
2551
- }
2552
- function Te(i, t) {
2553
- const e = i != null ? i : 0;
2554
- return t > e ? (t - e) / 100 : 0;
2555
- }
2556
- const $t = 0;
2557
- function Ge(i, t, e) {
2558
- const s = t == null ? void 0 : t.closest(i);
2559
- if (t && s && s.scrollHeight !== s.offsetHeight)
2560
- if (e) {
2561
- const r = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
2562
- s.scrollTop = t.offsetTop - (r.top - o.top) - (r.height / 2 - a.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
2563
- } else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - $t : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + $t);
2564
- }
2565
- function ti(i, t, e = 0) {
2566
- if (!m())
2567
- return;
2568
- const s = (t == null ? void 0 : t.behavior) || "smooth";
2569
- if ("scrollIntoView" in i && !e) {
2570
- i.scrollIntoView({
2571
- behavior: s,
2572
- block: (t == null ? void 0 : t.block) || "start",
2573
- inline: (t == null ? void 0 : t.inline) || "start"
2574
- });
2575
- return;
2576
- }
2577
- if ("getBoundingClientRect" in i && "scrollTo" in window) {
2578
- const r = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
2579
- window.scrollTo({
2580
- top: r,
2581
- behavior: s
2582
- });
2583
- }
2584
- }
2585
- function ei(i, t) {
2586
- return i.indexOf(t) !== -1;
2587
- }
2588
- async function ii() {
2589
- if (m()) {
2590
- const i = await wt.get();
2591
- document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
2592
- }
2593
- }
2594
- function si(i, t) {
2595
- const e = {};
2596
- return w(i) && w(t) && p(i, (s, r) => {
2597
- r in t && (e[r] = s);
2598
- }), e;
2599
- }
2600
- function ri(i, t) {
2601
- let e = Object.keys(i).length !== Object.keys(t).length;
2602
- return e || p(i, (s, r) => {
2603
- s !== (t == null ? void 0 : t[r]) && (e = !0);
2604
- }), e;
2605
- }
2606
- function ni(i) {
2607
- switch (typeof i) {
2608
- case "number":
2609
- return !0;
2610
- case "string":
2611
- return !!i.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
2612
- default:
2613
- return !1;
2614
- }
2615
- }
2616
- function oi(i, t) {
2617
- const e = Math.floor(t);
2618
- return i >= e && i < e + 1;
2619
- }
2620
- function ai(i, t) {
2621
- return Array.isArray(i) ? i.every((e) => R(e, t)) : R(i, t);
2622
- }
2623
- function ui(i, t) {
2624
- if (i.startsWith(t))
2625
- return i.slice(t.length).trim();
2626
- let e = 0;
2627
- for (; i[e] === t[e] && e < i.length && e < t.length; )
2628
- e++;
2629
- return i.slice(e).trim();
2630
- }
2631
- function de(i) {
2632
- return [...new Set(i)];
2633
- }
2634
- function U(i, t, e = !0) {
2635
- const s = Z(i);
2636
- return w(i) && w(t) && p(
2637
- t,
2638
- (r, o) => {
2639
- const a = i == null ? void 0 : i[o];
2640
- w(a) && w(r) ? e && Array.isArray(a) && Array.isArray(r) ? s[o] = Z(de([...a, ...r])) : s[o] = U(
2641
- Array.isArray(a) ? { ...a } : a,
2642
- r,
2643
- e
2644
- ) : s[o] = w(r) ? Z(r) : r;
2645
- }
2646
- ), s;
2647
- }
2648
- function ci(i, t) {
2649
- let e = i;
2650
- return p(t, (s, r) => {
2651
- e = e.replace(Lt(`[${r}]`), lt(s));
2652
- }), e;
2653
- }
2654
- function ge(i, t = "auto") {
2655
- switch (t) {
2656
- case "auto":
2657
- return i.naturalWidth >= i.naturalHeight;
2658
- case "width":
2659
- return !0;
2660
- case "height":
2661
- return !1;
2662
- }
2663
- }
2664
- function li(i, t, e = "auto", s) {
2665
- var o;
2666
- const r = ae(i);
2667
- if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
2668
- const a = ge(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
2669
- if (u)
2670
- return u.canvas.width = a ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = a ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
2671
- }
2672
- }
2673
- function hi(i) {
2674
- const t = N(i);
2675
- if (t > 0) {
2676
- const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
2677
- return `${e}:${s}`;
2678
- }
2679
- return "00:00";
2680
- }
2681
- function di(i, t, {
2682
- multiple: e = !1,
2683
- maxlength: s = 0,
2684
- alwaysChange: r = !0,
2685
- notEmpty: o = !1
2686
- }) {
2687
- if (e) {
2688
- if (gt(i)) {
2689
- const a = i.indexOf(t), u = [...i];
2690
- return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
2691
- }
2692
- return i === t ? [] : i ? [i, t] : [t];
2693
- }
2694
- return r || i !== t ? t : i;
2695
- }
2696
- function gi(i, t, e) {
2697
- if (w(i) && w(t)) {
2698
- if (e) {
2699
- let s = {}, r = !1;
2700
- return p(i, (o, a) => {
2701
- !r && (e === a || e === o) ? (r = !0, s = U(s, t)) : r ? s = U(s, { [a]: o }) : s[a] = w(o) ? Z(o) : o;
2702
- }), r ? s : U(i, t);
2703
- }
2704
- if (w(t))
2705
- return U(i, t);
2706
- }
2707
- return Z(i);
2708
- }
2709
- function kt(i) {
2710
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
2711
- }
2712
- function fi(i) {
2713
- return kt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
2714
- }
2715
- function mi(i) {
2716
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
2717
- }
2718
- function yi(i, t, e, s) {
2719
- const r = N(i), o = N(t);
2720
- return t && o < r ? `${pt(o, e, s)}+` : pt(r, e, s);
2721
- }
2722
- const pt = (i, t, e) => t ? new W(e).number(i) : i;
2723
- function fe(i, t) {
2724
- return 1 / i * t;
2725
- }
2726
- function $i(i, t) {
2727
- return fe(i, t) * 100;
2728
- }
2729
- function pi(i) {
2730
- let t = "";
2731
- for (const e of i)
2732
- t += String.fromCharCode(e);
2733
- return m() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
2734
- }
2735
- async function vi(i) {
2736
- if (m())
2737
- try {
2738
- await navigator.clipboard.writeText(i);
2739
- } catch (t) {
2740
- document == null || document.execCommand(i);
2741
- }
2742
- }
2743
- class me {
1
+ var et = Object.defineProperty;
2
+ var it = (s, t, e) => t in s ? et(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var l = (s, t, e) => it(s, typeof t != "symbol" ? t + "" : t, e);
4
+ import { isArray as st, isObjectNotArray as M, forEach as k, toArray as R, isObject as z, toCamelCase as nt, Geo as C, toDate as W, Datetime as rt, EventItem as at, GeoFlag as ut, GeoIntl as lt, isSelected as D, getExp as ht, getColumn as K, ScrollbarWidth as ot, Api as ct, executeFunction as Y, BroadcastMessage as dt, Cookie as gt, Hash as A, isDomRuntime as G, getElementId as L, Loading as P, random as ft, Meta as mt, DataStorage as J, Translate as U, executePromise as vt } from "@dxtmisha/functional-basic";
5
+ export * from "@dxtmisha/functional-basic";
6
+ import { isRef as N, h as yt, computed as a, toRefs as pt, useAttrs as bt, useSlots as It, ref as f, watch as g, triggerRef as St, shallowRef as I, onUnmounted as O, inject as Lt, provide as Ct, watchEffect as Q } from "vue";
7
+ class kt {
2744
8
  /**
2745
9
  * Constructor
2746
10
  * @param props base data/ базовые данные
2747
11
  * @param watch data for tracking/ данные для слежения
2748
12
  */
2749
13
  constructor(t, e = Object.keys(t)) {
2750
- c(this, "cache", {});
14
+ l(this, "cache", {});
2751
15
  this.props = t, this.watch = e;
2752
16
  }
2753
17
  /**
@@ -2757,7 +21,7 @@ class me {
2757
21
  * @param name property name/ название свойства
2758
22
  */
2759
23
  is(t) {
2760
- return gt(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
24
+ return st(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
2761
25
  }
2762
26
  /**
2763
27
  * Checks if there are changes in the data.
@@ -2786,11 +50,11 @@ class me {
2786
50
  * @param name property name/ название свойства
2787
51
  */
2788
52
  isDifferent(t) {
2789
- var e, s;
2790
- return ((e = this.cache) == null ? void 0 : e[t]) !== ((s = this.props) == null ? void 0 : s[t]);
53
+ var e, i;
54
+ return ((e = this.cache) == null ? void 0 : e[t]) !== ((i = this.props) == null ? void 0 : i[t]);
2791
55
  }
2792
56
  }
2793
- class ye {
57
+ class wt {
2794
58
  /**
2795
59
  * Constructor
2796
60
  * @param props base data/ базовые данные
@@ -2798,10 +62,10 @@ class ye {
2798
62
  * функция обратного вызова при изменении значения
2799
63
  * @param changed base data/ данный для слежения
2800
64
  */
2801
- constructor(t, e, s) {
2802
- c(this, "event", {});
2803
- c(this, "changed");
2804
- this.props = t, this.callback = e, this.changed = new me(t, s);
65
+ constructor(t, e, i) {
66
+ l(this, "event", {});
67
+ l(this, "changed");
68
+ this.props = t, this.callback = e, this.changed = new kt(t, i);
2805
69
  }
2806
70
  /**
2807
71
  * Calls the callback function.
@@ -2849,7 +113,7 @@ class ye {
2849
113
  this.callback && this.callback(this.event);
2850
114
  }
2851
115
  }
2852
- class bi extends ye {
116
+ class Pt extends wt {
2853
117
  /**
2854
118
  * Calls the callback function.
2855
119
  *
@@ -2869,37 +133,37 @@ class bi extends ye {
2869
133
  (t || this.changed.isChanged()) && (await this.initEvent(), this.makeCallbackItem(), this.changed.update());
2870
134
  }
2871
135
  }
2872
- function f(i) {
2873
- return X(i) ? i.value : i;
136
+ function d(s) {
137
+ return N(s) ? s.value : s;
2874
138
  }
2875
- function $e(i) {
2876
- return i && "class" in i && typeof i.class == "string" ? i.class : void 0;
139
+ function Dt(s) {
140
+ return s && "class" in s && typeof s.class == "string" ? s.class : void 0;
2877
141
  }
2878
- function pe(i, t, e) {
2879
- const s = $e(t);
2880
- return e && s ? `${e}.${s}` : e || s || i;
142
+ function xt(s, t, e) {
143
+ const i = Dt(t);
144
+ return e && i ? `${e}.${i}` : e || i || s;
2881
145
  }
2882
- function ve(i, t, e, s) {
2883
- let r = t;
2884
- return (!t || "key" in t) && (r = {
2885
- key: pe(i, t, s),
146
+ function Mt(s, t, e, i) {
147
+ let n = t;
148
+ return (!t || "key" in t) && (n = {
149
+ key: xt(s, t, i),
2886
150
  ...t
2887
- }), Wt(i, r, e);
151
+ }), yt(s, n, e);
2888
152
  }
2889
- function ut(i, t) {
2890
- const e = i == null ? void 0 : i.class, s = t == null ? void 0 : t.class, r = i == null ? void 0 : i.style, o = t == null ? void 0 : t.style, a = {
2891
- ...i,
153
+ function T(s, t) {
154
+ const e = s == null ? void 0 : s.class, i = t == null ? void 0 : t.class, n = s == null ? void 0 : s.style, r = t == null ? void 0 : t.style, u = {
155
+ ...s,
2892
156
  ...t
2893
157
  };
2894
- return e && s && (a.class = [], e && a.class.push(e), s && a.class.push(s)), r && o && (a.style = [], r && a.style.push(r), o && a.style.push(o)), a;
158
+ return e && i && (u.class = [], e && u.class.push(e), i && u.class.push(i)), n && r && (u.style = [], n && u.style.push(n), r && u.style.push(r)), u;
2895
159
  }
2896
- function be(...i) {
160
+ function Nt(...s) {
2897
161
  let t = {};
2898
- return i.forEach((e) => {
2899
- e && (t = ut(t, e));
162
+ return s.forEach((e) => {
163
+ e && (t = T(t, e));
2900
164
  }), t;
2901
165
  }
2902
- class Ct {
166
+ class X {
2903
167
  /**
2904
168
  * Constructor
2905
169
  * @param components list of connected components/ список подключенных компонентов
@@ -2907,7 +171,7 @@ class Ct {
2907
171
  */
2908
172
  constructor(t = {}, e) {
2909
173
  /** Cache for computed properties/ Кэш для вычисляемых свойств */
2910
- c(this, "caching", {});
174
+ l(this, "caching", {});
2911
175
  this.components = t, this.modification = e;
2912
176
  }
2913
177
  /**
@@ -2938,10 +202,10 @@ class Ct {
2938
202
  */
2939
203
  getModification(t, e) {
2940
204
  if (t) {
2941
- t in this.caching || (this.caching[t] = l(() => this.computeModification(t)));
2942
- const s = this.caching[t];
2943
- if (s)
2944
- return e ? be(s.value, e) : s.value;
205
+ t in this.caching || (this.caching[t] = a(() => this.computeModification(t)));
206
+ const i = this.caching[t];
207
+ if (i)
208
+ return e ? Nt(i.value, e) : i.value;
2945
209
  }
2946
210
  return e;
2947
211
  }
@@ -2954,14 +218,14 @@ class Ct {
2954
218
  * @param children sub-elements of the component/ под элементы компонента
2955
219
  * @param index the name of the key/ названия ключа
2956
220
  */
2957
- render(t, e, s, r) {
2958
- const o = this.renderOne(
221
+ render(t, e, i, n) {
222
+ const r = this.renderOne(
2959
223
  t,
2960
224
  e,
2961
- s,
2962
- r
225
+ i,
226
+ n
2963
227
  );
2964
- return o ? [o] : [];
228
+ return r ? [r] : [];
2965
229
  }
2966
230
  /**
2967
231
  * Rendering a component by its name.
@@ -2972,14 +236,14 @@ class Ct {
2972
236
  * @param children sub-elements of the component/ под элементы компонента
2973
237
  * @param index the name of the key/ названия ключа
2974
238
  */
2975
- renderOne(t, e, s, r) {
239
+ renderOne(t, e, i, n) {
2976
240
  if (this.is(t)) {
2977
- const o = r != null ? r : t;
2978
- return ve(
241
+ const r = n != null ? n : t;
242
+ return Mt(
2979
243
  this.get(t),
2980
- this.getModification(o, e),
2981
- s,
2982
- o
244
+ this.getModification(r, e),
245
+ i,
246
+ r
2983
247
  );
2984
248
  }
2985
249
  }
@@ -2994,8 +258,8 @@ class Ct {
2994
258
  * @param children sub-elements of the component/ под элементы компонента
2995
259
  * @param index the name of the key/ названия ключа
2996
260
  */
2997
- renderAdd(t, e, s, r, o) {
2998
- return t.push(...this.render(e, s, r, o)), this;
261
+ renderAdd(t, e, i, n, r) {
262
+ return t.push(...this.render(e, i, n, r)), this;
2999
263
  }
3000
264
  /**
3001
265
  * Calculates modified input data for connected components.
@@ -3004,43 +268,43 @@ class Ct {
3004
268
  * @param index the name of this/ название данного
3005
269
  */
3006
270
  computeModification(t) {
3007
- var s;
3008
- const e = f((s = this.modification) == null ? void 0 : s[t]);
3009
- if (e && E(e)) {
3010
- const r = {};
3011
- return p(e, (o, a) => {
3012
- r[a] = f(o);
3013
- }), r;
271
+ var i;
272
+ const e = d((i = this.modification) == null ? void 0 : i[t]);
273
+ if (e && M(e)) {
274
+ const n = {};
275
+ return k(e, (r, u) => {
276
+ n[u] = d(r);
277
+ }), n;
3014
278
  }
3015
279
  return {};
3016
280
  }
3017
281
  }
3018
- class Si extends Ct {
282
+ class Ut extends X {
3019
283
  }
3020
- class wi {
284
+ class qt {
3021
285
  /**
3022
286
  * Constructor
3023
287
  * @param name class name/ название класса
3024
288
  * @param props properties/ свойства
3025
289
  * @param options list of additional parameters/ список дополнительных параметров
3026
290
  */
3027
- constructor(t, e, s) {
3028
- c(this, "name");
3029
- c(this, "element", $());
3030
- c(this, "refs");
3031
- c(this, "components");
3032
- c(this, "emits");
3033
- c(this, "classes");
3034
- c(this, "classesSub");
3035
- c(this, "styles");
3036
- c(this, "stylesSub");
3037
- c(this, "attrs");
3038
- c(this, "slots");
3039
- c(this, "dataExpose");
3040
- this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ? jt(this.props) : {}, this.components = new Ct(s == null ? void 0 : s.components, s == null ? void 0 : s.compMod), this.emits = s == null ? void 0 : s.emits, this.classes = l(() => this.updateClasses()), this.styles = l(() => this.updateStyles()), this.attrs = Ut(), this.slots = zt();
291
+ constructor(t, e, i) {
292
+ l(this, "name");
293
+ l(this, "element", f());
294
+ l(this, "refs");
295
+ l(this, "components");
296
+ l(this, "emits");
297
+ l(this, "classes");
298
+ l(this, "classesSub");
299
+ l(this, "styles");
300
+ l(this, "stylesSub");
301
+ l(this, "attrs");
302
+ l(this, "slots");
303
+ l(this, "dataExpose");
304
+ this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ? pt(this.props) : {}, this.components = new X(i == null ? void 0 : i.components, i == null ? void 0 : i.compMod), this.emits = i == null ? void 0 : i.emits, this.classes = a(() => this.updateClasses()), this.styles = a(() => this.updateStyles()), this.attrs = bt(), this.slots = It();
3041
305
  }
3042
306
  init() {
3043
- return this.classesSub = l(() => this.initClasses()), this.stylesSub = l(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
307
+ return this.classesSub = a(() => this.initClasses()), this.stylesSub = a(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
3044
308
  }
3045
309
  /**
3046
310
  * Getting the class name.
@@ -3065,7 +329,7 @@ class wi {
3065
329
  * @param name list of class names by levels/ список названий классов по уровням
3066
330
  */
3067
331
  getSubClass(t) {
3068
- return `${this.getName()}__${z(t).join("__")}`;
332
+ return `${this.getName()}__${R(t).join("__")}`;
3069
333
  }
3070
334
  /**
3071
335
  * Getting the class name for the status.
@@ -3074,7 +338,7 @@ class wi {
3074
338
  * @param name list of class names by levels/ список названий классов по уровням
3075
339
  */
3076
340
  getStatusClass(t) {
3077
- return `${this.getName()}--${z(t).join("--")}`;
341
+ return `${this.getName()}--${R(t).join("--")}`;
3078
342
  }
3079
343
  /**
3080
344
  * Getting the property name for the style.
@@ -3083,7 +347,7 @@ class wi {
3083
347
  * @param name list of class names by levels/ список названий классов по уровням
3084
348
  */
3085
349
  getStyle(t) {
3086
- return `--${this.getName()}-sys-${z(t).join("-")}`;
350
+ return `--${this.getName()}-sys-${R(t).join("-")}`;
3087
351
  }
3088
352
  /**
3089
353
  * Getting additional parameters.
@@ -3121,11 +385,11 @@ class wi {
3121
385
  * если передать этот элемент, то слот добавится в него
3122
386
  * @param props property for the slot/ свойство для слота
3123
387
  */
3124
- initSlot(t, e, s = {}) {
3125
- var r;
3126
- if (this.slots && ((r = this.slots) != null && r[t]) && typeof this.slots[t] == "function") {
3127
- const o = this.slots[t](s);
3128
- return e && e.push(o), o;
388
+ initSlot(t, e, i = {}) {
389
+ var n;
390
+ if (this.slots && ((n = this.slots) != null && n[t]) && typeof this.slots[t] == "function") {
391
+ const r = this.slots[t](i);
392
+ return e && e.push(r), r;
3129
393
  }
3130
394
  }
3131
395
  /**
@@ -3135,7 +399,7 @@ class wi {
3135
399
  * @param classes list of classes for transformation/ список классов для преобразования
3136
400
  */
3137
401
  toClass(t) {
3138
- return E(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
402
+ return M(t) ? t : Array.isArray(t) ? { [t.filter((i) => typeof i == "string" && i.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
3139
403
  }
3140
404
  /**
3141
405
  * Converts the class name to standard for the current component.
@@ -3144,10 +408,10 @@ class wi {
3144
408
  * @param classes list of classes/ список классов
3145
409
  */
3146
410
  toClassName(t) {
3147
- if (w(t)) {
411
+ if (z(t)) {
3148
412
  const e = {};
3149
- return p(t, (s, r) => {
3150
- r.match(/\?\?/) ? e[r.replace(/\?\?/, this.getName())] = s : r.match(/\?/) ? e[r.replace(/\?/, this.getDesign())] = s : e[r] = s;
413
+ return k(t, (i, n) => {
414
+ n.match(/\?\?/) ? e[n.replace(/\?\?/, this.getName())] = i : n.match(/\?/) ? e[n.replace(/\?/, this.getDesign())] = i : e[n] = i;
3151
415
  }), e;
3152
416
  }
3153
417
  return {};
@@ -3159,7 +423,7 @@ class wi {
3159
423
  * @param name component name for transformation/ название компонента для преобразования
3160
424
  */
3161
425
  initName(t) {
3162
- return p(t.split(".", 2), (e) => kt(e));
426
+ return k(t.split(".", 2), (e) => nt(e));
3163
427
  }
3164
428
  /**
3165
429
  * Updating data about the class.
@@ -3167,15 +431,15 @@ class wi {
3167
431
  * Обновление данных об классе.
3168
432
  */
3169
433
  updateClasses() {
3170
- var s, r, o, a;
3171
- const t = (s = this.classesSub) == null ? void 0 : s.value, e = (o = (r = this.options) == null ? void 0 : r.classes) == null ? void 0 : o.value;
434
+ var i, n, r, u;
435
+ const t = (i = this.classesSub) == null ? void 0 : i.value, e = (r = (n = this.options) == null ? void 0 : n.classes) == null ? void 0 : r.value;
3172
436
  return t && e ? {
3173
437
  ...t,
3174
438
  ...e,
3175
439
  main: {
3176
440
  ...this.toClass(t == null ? void 0 : t.main),
3177
441
  ...this.toClass(e == null ? void 0 : e.main),
3178
- ...this.toClass((a = this.attrs) == null ? void 0 : a.class)
442
+ ...this.toClass((u = this.attrs) == null ? void 0 : u.class)
3179
443
  }
3180
444
  } : e != null ? e : {
3181
445
  main: {}
@@ -3187,43 +451,43 @@ class wi {
3187
451
  * Доработка полученного списка стилей.
3188
452
  */
3189
453
  updateStyles() {
3190
- var s, r, o;
3191
- const t = (s = this.stylesSub) == null ? void 0 : s.value, e = (o = (r = this.options) == null ? void 0 : r.styles) == null ? void 0 : o.value;
454
+ var i, n, r;
455
+ const t = (i = this.stylesSub) == null ? void 0 : i.value, e = (r = (n = this.options) == null ? void 0 : n.styles) == null ? void 0 : r.value;
3192
456
  return t && e ? {
3193
457
  ...t,
3194
458
  ...e
3195
459
  } : e != null ? e : {};
3196
460
  }
3197
461
  }
3198
- function B(i) {
3199
- return X(i) ? i : $(i);
462
+ function b(s) {
463
+ return N(s) ? s : f(s);
3200
464
  }
3201
- class Di {
465
+ class Yt {
3202
466
  /**
3203
467
  * Constructor
3204
468
  * @param date date for processing. дата для обработки
3205
469
  * @param type type of date format for output. тип формата даты вывода
3206
470
  * @param code country and language code. код страны и языка
3207
471
  */
3208
- constructor(t, e = "date", s = D.getLocation()) {
3209
- c(this, "item");
3210
- c(this, "type");
3211
- c(this, "code");
3212
- c(this, "date");
3213
- c(this, "datetime");
3214
- c(this, "year", l(() => this.date.value && this.datetime.getYear()));
3215
- c(this, "month", l(() => this.date.value && this.datetime.getMonth()));
3216
- c(this, "day", l(() => this.date.value && this.datetime.getDay()));
3217
- c(this, "hour", l(() => this.date.value && this.datetime.getHour()));
3218
- c(this, "minute", l(() => this.date.value && this.datetime.getMinute()));
3219
- c(this, "second", l(() => this.date.value && this.datetime.getSecond()));
3220
- this.item = B(t), this.type = B(e), this.code = B(s), this.date = $(A(this.item.value)), this.datetime = new ht(
472
+ constructor(t, e = "date", i = C.getLocation()) {
473
+ l(this, "item");
474
+ l(this, "type");
475
+ l(this, "code");
476
+ l(this, "date");
477
+ l(this, "datetime");
478
+ l(this, "year", a(() => this.date.value && this.datetime.getYear()));
479
+ l(this, "month", a(() => this.date.value && this.datetime.getMonth()));
480
+ l(this, "day", a(() => this.date.value && this.datetime.getDay()));
481
+ l(this, "hour", a(() => this.date.value && this.datetime.getHour()));
482
+ l(this, "minute", a(() => this.date.value && this.datetime.getMinute()));
483
+ l(this, "second", a(() => this.date.value && this.datetime.getSecond()));
484
+ this.item = b(t), this.type = b(e), this.code = b(i), this.date = f(W(this.item.value)), this.datetime = new rt(
3221
485
  this.date.value,
3222
486
  this.type.value,
3223
487
  this.code.value
3224
- ), y(this.item, (r) => {
3225
- this.date.value = A(r);
3226
- }), y(this.type, (r) => this.datetime.setType(r)), y(this.code, (r) => this.datetime.setCode(r)), y(this.date, (r) => this.datetime.setDate(r)), this.datetime.setWatch(() => Zt(this.date));
488
+ ), g(this.item, (n) => {
489
+ this.date.value = W(n);
490
+ }), g(this.type, (n) => this.datetime.setType(n)), g(this.code, (n) => this.datetime.setCode(n)), g(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() => St(this.date));
3227
491
  }
3228
492
  /**
3229
493
  * Returns the basic data for the date.
@@ -3255,7 +519,7 @@ class Di {
3255
519
  * Возвращает формат часов.
3256
520
  */
3257
521
  getHoursType() {
3258
- return l(() => this.date.value && this.datetime.getHoursType());
522
+ return a(() => this.date.value && this.datetime.getHoursType());
3259
523
  }
3260
524
  /**
3261
525
  * Returns the code of the first day of the week.
@@ -3263,7 +527,7 @@ class Di {
3263
527
  * Возвращает код первого дня недели.
3264
528
  */
3265
529
  getFirstDayCode() {
3266
- return l(() => this.date.value && this.datetime.getFirstDayCode());
530
+ return a(() => this.date.value && this.datetime.getFirstDayCode());
3267
531
  }
3268
532
  /**
3269
533
  * The method returns the year of the specified date according to local time.
@@ -3321,7 +585,7 @@ class Di {
3321
585
  * Возвращает последний день недели.
3322
586
  */
3323
587
  getMaxDay() {
3324
- return l(() => this.date.value && this.datetime.getMaxDay());
588
+ return a(() => this.date.value && this.datetime.getMaxDay());
3325
589
  }
3326
590
  /**
3327
591
  * Enables language-sensitive date and time formatting.
@@ -3331,7 +595,7 @@ class Di {
3331
595
  * @param styleOptions the representation of the month. представление месяца
3332
596
  */
3333
597
  locale(t = this.type.value, e) {
3334
- return l(() => this.date.value && this.datetime.locale(t, e));
598
+ return a(() => this.date.value && this.datetime.locale(t, e));
3335
599
  }
3336
600
  /**
3337
601
  * Output of standard data.
@@ -3340,10 +604,10 @@ class Di {
3340
604
  * @param timeZone add time zone. добавить временную зону
3341
605
  */
3342
606
  standard(t = !0) {
3343
- return l(() => this.date.value && this.datetime.standard(t));
607
+ return a(() => this.date.value && this.datetime.standard(t));
3344
608
  }
3345
609
  }
3346
- class Li extends Ht {
610
+ class Gt extends at {
3347
611
  /**
3348
612
  * Classes Constructor
3349
613
  * @param elementSelector element/ элемент
@@ -3356,26 +620,26 @@ class Li extends Ht {
3356
620
  * @param detail an event-dependent value associated with the event/ зависимое от события
3357
621
  * значение, связанное с событием
3358
622
  */
3359
- constructor(t, e, s = ["click"], r, o, a) {
3360
- const u = B(t), h = B(e);
623
+ constructor(t, e, i = ["click"], n, r, u) {
624
+ const h = b(t), o = b(e);
3361
625
  super(
3362
- u.value,
3363
- s,
626
+ h.value,
627
+ i,
628
+ n,
3364
629
  r,
3365
- o,
3366
- a
3367
- ), h.value && this.setElementControl(h.value), y(u, (d) => this.setElement(d)), y(h, (d) => this.setElementControl(d));
630
+ u
631
+ ), o.value && this.setElementControl(o.value), g(h, (c) => this.setElement(c)), g(o, (c) => this.setElementControl(c));
3368
632
  }
3369
633
  }
3370
- class Ii {
634
+ class Jt {
3371
635
  /**
3372
636
  * Constructor
3373
637
  * @param code country and language code/ код страны и языка
3374
638
  */
3375
- constructor(t = D.getLocation()) {
3376
- c(this, "code");
3377
- c(this, "flag");
3378
- this.code = B(t), this.flag = new at(this.code.value), y(this.code, (e) => this.flag.setCode(e));
639
+ constructor(t = C.getLocation()) {
640
+ l(this, "code");
641
+ l(this, "flag");
642
+ this.code = b(t), this.flag = new ut(this.code.value), g(this.code, (e) => this.flag.setCode(e));
3379
643
  }
3380
644
  /**
3381
645
  * Obtaining a reactive object with the country code.
@@ -3392,7 +656,7 @@ class Ii {
3392
656
  * @param code country code/ код страны
3393
657
  */
3394
658
  get(t = this.code.value) {
3395
- return l(() => this.flag.get(t));
659
+ return a(() => this.flag.get(t));
3396
660
  }
3397
661
  /**
3398
662
  * Getting a link to the flag.
@@ -3401,7 +665,7 @@ class Ii {
3401
665
  * @param code country code/ код страны
3402
666
  */
3403
667
  getFlag(t = this.code.value) {
3404
- return l(() => {
668
+ return a(() => {
3405
669
  var e;
3406
670
  return (e = this.flag.get(t)) == null ? void 0 : e.icon;
3407
671
  });
@@ -3413,7 +677,7 @@ class Ii {
3413
677
  * @param codes country code/ код страны
3414
678
  */
3415
679
  getList(t) {
3416
- return l(() => this.flag.getList(t));
680
+ return a(() => this.flag.getList(t));
3417
681
  }
3418
682
  /**
3419
683
  * Getting a list of countries by an array of codes in national language.
@@ -3422,10 +686,10 @@ class Ii {
3422
686
  * @param codes country code/ код страны.
3423
687
  */
3424
688
  getNational(t) {
3425
- return l(() => this.flag.getNational(t));
689
+ return a(() => this.flag.getNational(t));
3426
690
  }
3427
691
  }
3428
- const k = class k {
692
+ const v = class v {
3429
693
  /**
3430
694
  * Information about the current country.
3431
695
  *
@@ -3474,23 +738,23 @@ const k = class k {
3474
738
  * код страны, полный вид язык-страна или один из них
3475
739
  */
3476
740
  static set(t) {
3477
- D.set(t, !0), this.item.value = D.getItem();
741
+ C.set(t, !0), this.item.value = C.getItem();
3478
742
  }
3479
743
  };
3480
- c(k, "item", F(D.get())), c(k, "country", l(() => k.item.value.country)), c(k, "language", l(() => k.item.value.language)), c(k, "standard", l(() => k.item.value.standard)), c(k, "firstDay", l(() => k.item.value.firstDay));
3481
- let V = k;
3482
- class Se {
744
+ l(v, "item", I(C.get())), l(v, "country", a(() => v.item.value.country)), l(v, "language", a(() => v.item.value.language)), l(v, "standard", a(() => v.item.value.standard)), l(v, "firstDay", a(() => v.item.value.firstDay));
745
+ let w = v;
746
+ class Bt {
3483
747
  /**
3484
748
  * Constructor
3485
749
  * @param code country code, full form language-country or one of them/
3486
750
  * код страны, полный вид язык-страна или один из них
3487
751
  */
3488
752
  constructor(t) {
3489
- c(this, "location");
3490
- c(this, "intl");
3491
- this.location = B(t), this.intl = l(() => {
753
+ l(this, "location");
754
+ l(this, "intl");
755
+ this.location = b(t), this.intl = a(() => {
3492
756
  var e;
3493
- return new W((e = this.location.value) != null ? e : V.getLanguage().value);
757
+ return new lt((e = this.location.value) != null ? e : w.getLanguage().value);
3494
758
  });
3495
759
  }
3496
760
  /**
@@ -3502,7 +766,7 @@ class Se {
3502
766
  * объект с некоторыми или всеми из следующих свойств
3503
767
  */
3504
768
  display(t, e) {
3505
- return l(() => this.intl.value.display(f(t), e));
769
+ return a(() => this.intl.value.display(d(t), e));
3506
770
  }
3507
771
  /**
3508
772
  * Get display names of language.
@@ -3512,7 +776,7 @@ class Se {
3512
776
  * @param style the formatting style to use/ используемый стиль форматирования
3513
777
  */
3514
778
  languageName(t, e) {
3515
- return l(() => this.intl.value.languageName(f(t), e));
779
+ return a(() => this.intl.value.languageName(d(t), e));
3516
780
  }
3517
781
  /**
3518
782
  * Get display names of region.
@@ -3522,7 +786,7 @@ class Se {
3522
786
  * @param style the formatting style to use/ используемый стиль форматирования
3523
787
  */
3524
788
  countryName(t, e) {
3525
- return l(() => this.intl.value.countryName(f(t), e));
789
+ return a(() => this.intl.value.countryName(d(t), e));
3526
790
  }
3527
791
  /**
3528
792
  * In basic use without specifying a locale, a formatted string.
@@ -3534,7 +798,7 @@ class Se {
3534
798
  * или всеми свойствами
3535
799
  */
3536
800
  number(t, e) {
3537
- return l(() => this.intl.value.number(f(t), e));
801
+ return a(() => this.intl.value.number(d(t), e));
3538
802
  }
3539
803
  /**
3540
804
  * Decimal point symbol.
@@ -3542,7 +806,7 @@ class Se {
3542
806
  * Символ десятичной точки.
3543
807
  */
3544
808
  decimal() {
3545
- return l(() => this.intl.value.decimal());
809
+ return a(() => this.intl.value.decimal());
3546
810
  }
3547
811
  /**
3548
812
  * Currency formatting.
@@ -3553,12 +817,12 @@ class Se {
3553
817
  * валюта для использования в форматировании валюты
3554
818
  * @param numberOnly do not display the currency symbol/ не выводить значок валюты
3555
819
  */
3556
- currency(t, e, s = !1) {
3557
- return l(
820
+ currency(t, e, i = !1) {
821
+ return a(
3558
822
  () => this.intl.value.currency(
3559
- f(t),
3560
- f(e),
3561
- s
823
+ d(t),
824
+ d(e),
825
+ i
3562
826
  )
3563
827
  );
3564
828
  }
@@ -3572,7 +836,7 @@ class Se {
3572
836
  * в форматировании блока
3573
837
  */
3574
838
  unit(t, e) {
3575
- return l(() => this.intl.value.unit(f(t), e));
839
+ return a(() => this.intl.value.unit(d(t), e));
3576
840
  }
3577
841
  /**
3578
842
  * Number as a percentage.
@@ -3582,7 +846,7 @@ class Se {
3582
846
  * @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
3583
847
  */
3584
848
  percent(t, e) {
3585
- return l(() => this.intl.value.percent(f(t), e));
849
+ return a(() => this.intl.value.percent(d(t), e));
3586
850
  }
3587
851
  /**
3588
852
  * Number as a percentage (unit).
@@ -3593,7 +857,7 @@ class Se {
3593
857
  * объект с некоторыми или всеми свойствами
3594
858
  */
3595
859
  percentBy100(t, e) {
3596
- return l(() => this.intl.value.percentBy100(f(t), e));
860
+ return a(() => this.intl.value.percentBy100(d(t), e));
3597
861
  }
3598
862
  /**
3599
863
  * Enables language-sensitive date and time formatting.
@@ -3604,8 +868,8 @@ class Se {
3604
868
  * @param styleOptions the representation of the month/ представление месяца
3605
869
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3606
870
  */
3607
- date(t, e, s, r) {
3608
- return l(() => this.intl.value.date(f(t), e, s, r));
871
+ date(t, e, i, n) {
872
+ return a(() => this.intl.value.date(d(t), e, i, n));
3609
873
  }
3610
874
  /**
3611
875
  * Enables language-sensitive relative time formatting.
@@ -3616,8 +880,8 @@ class Se {
3616
880
  * длина интернационализированного сообщения
3617
881
  * @param todayValue current day/ текущий день
3618
882
  */
3619
- relative(t, e, s) {
3620
- return l(() => this.intl.value.relative(f(t), e, s));
883
+ relative(t, e, i) {
884
+ return a(() => this.intl.value.relative(d(t), e, i));
3621
885
  }
3622
886
  /**
3623
887
  * Enables language-sensitive relative time formatting
@@ -3637,15 +901,15 @@ class Se {
3637
901
  * @param type type of data format/ тип формата data
3638
902
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
3639
903
  */
3640
- relativeLimit(t, e, s, r, o, a, u) {
3641
- return l(() => this.intl.value.relativeLimit(
3642
- f(t),
904
+ relativeLimit(t, e, i, n, r, u, h) {
905
+ return a(() => this.intl.value.relativeLimit(
906
+ d(t),
3643
907
  e,
3644
- s,
908
+ i,
909
+ n,
3645
910
  r,
3646
- o,
3647
- a,
3648
- u
911
+ u,
912
+ h
3649
913
  ));
3650
914
  }
3651
915
  /**
@@ -3656,7 +920,7 @@ class Se {
3656
920
  * @param style the representation of the month/ представление месяца
3657
921
  */
3658
922
  month(t, e) {
3659
- return l(() => this.intl.value.month(f(t), e));
923
+ return a(() => this.intl.value.month(d(t), e));
3660
924
  }
3661
925
  /**
3662
926
  * Array to list of months.
@@ -3665,7 +929,7 @@ class Se {
3665
929
  * @param style the representation of the month/ представление месяца
3666
930
  */
3667
931
  months(t) {
3668
- return l(() => this.intl.value.months(t));
932
+ return a(() => this.intl.value.months(t));
3669
933
  }
3670
934
  /**
3671
935
  * Returns names of days of the week.
@@ -3675,7 +939,7 @@ class Se {
3675
939
  * @param style the representation of the weekday/ представление о дне недели
3676
940
  */
3677
941
  weekday(t, e) {
3678
- return l(() => this.intl.value.weekday(f(t), e));
942
+ return a(() => this.intl.value.weekday(d(t), e));
3679
943
  }
3680
944
  /**
3681
945
  * An array of the list of names of the days of the week.
@@ -3684,7 +948,7 @@ class Se {
3684
948
  * @param style the representation of the weekday/ представление о дне недели
3685
949
  */
3686
950
  weekdays(t) {
3687
- return l(() => this.intl.value.weekdays(t));
951
+ return a(() => this.intl.value.weekdays(t));
3688
952
  }
3689
953
  /**
3690
954
  * Time.
@@ -3693,10 +957,10 @@ class Se {
3693
957
  * @param value the date to format/ дата для форматирования
3694
958
  */
3695
959
  time(t) {
3696
- return l(() => this.intl.value.time(f(t)));
960
+ return a(() => this.intl.value.time(d(t)));
3697
961
  }
3698
962
  }
3699
- class Nt {
963
+ class Z {
3700
964
  /**
3701
965
  * Creates an instance of ListData for managing list data.
3702
966
  *
@@ -3714,16 +978,16 @@ class Nt {
3714
978
  * @param max Maximum number of selections / максимальное количество выделений
3715
979
  * @param parent Parent identifier / идентификатор родителя
3716
980
  */
3717
- constructor(t, e, s, r, o, a, u, h, d, g = 0, v = 9999999, x) {
3718
- c(this, "subList", {});
981
+ constructor(t, e, i, n, r, u, h, o, c, m = 0, y = 9999999, S) {
982
+ l(this, "subList", {});
3719
983
  /**
3720
984
  * Returns a list for forming a list.
3721
985
  *
3722
986
  * Возвращает список для формирования списка.
3723
987
  */
3724
- c(this, "data", l(
3725
- () => p(
3726
- f(this.list) || [],
988
+ l(this, "data", a(
989
+ () => k(
990
+ d(this.list) || [],
3727
991
  (t, e) => this.initItem(e, t)
3728
992
  )
3729
993
  ));
@@ -3732,11 +996,11 @@ class Nt {
3732
996
  *
3733
997
  * Возвращает упрощенный список для быстрой загрузки.
3734
998
  */
3735
- c(this, "liteData", l(() => {
999
+ l(this, "liteData", a(() => {
3736
1000
  if (this.isLite()) {
3737
1001
  const t = [];
3738
1002
  for (const e of this.data.value) {
3739
- const s = {
1003
+ const i = {
3740
1004
  parent: this.parent,
3741
1005
  index: e.index,
3742
1006
  type: e.type,
@@ -3744,7 +1008,7 @@ class Nt {
3744
1008
  description: e.description,
3745
1009
  value: e.value
3746
1010
  };
3747
- "description" in e && (s.description = e.description), t.push(s);
1011
+ "description" in e && (i.description = e.description), t.push(i);
3748
1012
  }
3749
1013
  return t;
3750
1014
  }
@@ -3755,20 +1019,20 @@ class Nt {
3755
1019
  *
3756
1020
  * Возвращает список записей со всеми дополнительными данными.
3757
1021
  */
3758
- c(this, "fullData", l(() => {
3759
- const t = this.getFocus(), e = this.getHighlight(), s = this.getSelected();
3760
- return p(
1022
+ l(this, "fullData", a(() => {
1023
+ const t = this.getFocus(), e = this.getHighlight(), i = this.getSelected();
1024
+ return k(
3761
1025
  this.data.value,
3762
- (r) => {
3763
- var a, u;
3764
- const o = R(r.index, s);
1026
+ (n) => {
1027
+ var u, h;
1028
+ const r = D(n.index, i);
3765
1029
  return {
3766
- ...r,
3767
- focus: t === r.index,
1030
+ ...n,
1031
+ focus: t === n.index,
3768
1032
  highlight: e,
3769
- filterMode: (a = this.filterMode) == null ? void 0 : a.value,
3770
- selected: o,
3771
- disabled: (u = r.disabled) != null ? u : !o && r.type === "item" && this.isSelectedMax.value
1033
+ filterMode: (u = this.filterMode) == null ? void 0 : u.value,
1034
+ selected: r,
1035
+ disabled: (h = n.disabled) != null ? h : !r && n.type === "item" && this.isSelectedMax.value
3772
1036
  };
3773
1037
  }
3774
1038
  );
@@ -3778,7 +1042,7 @@ class Nt {
3778
1042
  *
3779
1043
  * Возвращает карту всех записей.
3780
1044
  */
3781
- c(this, "map", l(() => {
1045
+ l(this, "map", a(() => {
3782
1046
  const t = [];
3783
1047
  return this.data.value.forEach((e) => {
3784
1048
  switch (e.type) {
@@ -3796,13 +1060,13 @@ class Nt {
3796
1060
  }), t;
3797
1061
  }));
3798
1062
  /** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
3799
- c(this, "mapItems", l(() => this.map.value.filter((t) => t.type === "item")));
1063
+ l(this, "mapItems", a(() => this.map.value.filter((t) => t.type === "item")));
3800
1064
  /**
3801
1065
  * Returns a list consisting only of values for selection.
3802
1066
  *
3803
1067
  * Возвращает список, состоящий только из значений для выбора.
3804
1068
  */
3805
- c(this, "items", l(() => this.map.value.filter(
1069
+ l(this, "items", a(() => this.map.value.filter(
3806
1070
  (t) => t.type === "item" || t.type === "group" || t.type === "menu"
3807
1071
  )));
3808
1072
  /**
@@ -3810,15 +1074,15 @@ class Nt {
3810
1074
  *
3811
1075
  * Находит первый элемент, соответствующий условиям поиска.
3812
1076
  */
3813
- c(this, "highlightFirstItem", l(() => {
1077
+ l(this, "highlightFirstItem", a(() => {
3814
1078
  const t = this.getHighlight();
3815
1079
  if (t && t.length >= this.getHighlightLengthStart()) {
3816
- const e = Lt(t, "i");
1080
+ const e = ht(t, "i");
3817
1081
  if (e)
3818
1082
  return this.map.value.findIndex(
3819
- (s) => {
3820
- var r, o, a;
3821
- return ((r = s.label) == null ? void 0 : r.toString().match(e)) || ((o = s.index) == null ? void 0 : o.toString().match(e)) || ((a = s.search) == null ? void 0 : a.toString().match(e));
1083
+ (i) => {
1084
+ var n, r, u;
1085
+ return ((n = i.label) == null ? void 0 : n.toString().match(e)) || ((r = i.index) == null ? void 0 : r.toString().match(e)) || ((u = i.search) == null ? void 0 : u.toString().match(e));
3822
1086
  }
3823
1087
  );
3824
1088
  }
@@ -3829,49 +1093,49 @@ class Nt {
3829
1093
  *
3830
1094
  * Есть ли выбранный элемент.
3831
1095
  */
3832
- c(this, "isSelected", l(() => {
1096
+ l(this, "isSelected", a(() => {
3833
1097
  const t = this.getSelected();
3834
- return !!t && this.mapItems.value.findIndex((e) => R(e.index, t)) !== -1;
1098
+ return !!t && this.mapItems.value.findIndex((e) => D(e.index, t)) !== -1;
3835
1099
  }));
3836
1100
  /** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
3837
- c(this, "isSelectedMin", l(() => {
3838
- const t = Number(f(this.min) || 0);
1101
+ l(this, "isSelectedMin", a(() => {
1102
+ const t = Number(d(this.min) || 0);
3839
1103
  return t > 0 ? t >= this.selectedListInGroup.value.length : !1;
3840
1104
  }));
3841
1105
  /** Is the maximum selection reached/ Достигнуто ли максимальное выделение */
3842
- c(this, "isSelectedMax", l(() => {
3843
- const t = Number(f(this.max) || 9999999);
1106
+ l(this, "isSelectedMax", a(() => {
1107
+ const t = Number(d(this.max) || 9999999);
3844
1108
  return t > 0 ? t <= this.selectedListInGroup.value.length : !1;
3845
1109
  }));
3846
1110
  /**
3847
1111
  * Returns a list of selected items on the map/
3848
1112
  * Возвращает список выделенных элементов на карте
3849
1113
  */
3850
- c(this, "selectedList", l(() => {
1114
+ l(this, "selectedList", a(() => {
3851
1115
  const t = this.getSelected();
3852
- return t && this.isSelected.value ? this.mapItems.value.filter((e) => R(e.index, t)) : [];
1116
+ return t && this.isSelected.value ? this.mapItems.value.filter((e) => D(e.index, t)) : [];
3853
1117
  }));
3854
1118
  /**
3855
1119
  * Returns a list of selected items in the current group/
3856
1120
  * Возвращает список выделенных элементов в текущей группе
3857
1121
  */
3858
- c(this, "selectedListInGroup", l(() => {
1122
+ l(this, "selectedListInGroup", a(() => {
3859
1123
  const t = this.getSelected();
3860
- return t && this.isSelected.value ? this.data.value.filter((e) => R(e.index, t)) : [];
1124
+ return t && this.isSelected.value ? this.data.value.filter((e) => D(e.index, t)) : [];
3861
1125
  }));
3862
1126
  /**
3863
1127
  * Returns a list of selected items on the map.
3864
1128
  *
3865
1129
  * Возвращает список выделенных элементов на карте.
3866
1130
  */
3867
- c(this, "selectedNames", l(() => ot(this.selectedList.value, "label")));
1131
+ l(this, "selectedNames", a(() => K(this.selectedList.value, "label")));
3868
1132
  /**
3869
1133
  * Returns a list of selected item values on the map.
3870
1134
  *
3871
1135
  * Возвращает список значений выделенных элементов на карте.
3872
1136
  */
3873
- c(this, "selectedValues", l(() => ot(this.selectedList.value, "value")));
3874
- this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = r, this.filterMode = o, this.selected = a, this.keyValue = u, this.keyLabel = h, this.lite = d, this.min = g, this.max = v, this.parent = x, X(t) && y(t, () => {
1137
+ l(this, "selectedValues", a(() => K(this.selectedList.value, "value")));
1138
+ this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = u, this.keyValue = h, this.keyLabel = o, this.lite = c, this.min = m, this.max = y, this.parent = S, N(t) && g(t, () => {
3875
1139
  this.subList = {};
3876
1140
  });
3877
1141
  }
@@ -3977,17 +1241,17 @@ class Nt {
3977
1241
  * @param step number of steps/ количество шагов
3978
1242
  */
3979
1243
  getSelectedByStep(t) {
3980
- var a, u, h, d, g;
3981
- const e = (a = this.selectedList.value) == null ? void 0 : a[0], s = this.mapItems.value;
1244
+ var u, h, o, c, m;
1245
+ const e = (u = this.selectedList.value) == null ? void 0 : u[0], i = this.mapItems.value;
3982
1246
  if (!e)
3983
- return (u = s[0]) == null ? void 0 : u.index;
3984
- const o = s.findIndex((v) => v.index === e.index) + t;
3985
- if (o in s)
3986
- return (h = s[o]) == null ? void 0 : h.index;
1247
+ return (h = i[0]) == null ? void 0 : h.index;
1248
+ const r = i.findIndex((y) => y.index === e.index) + t;
1249
+ if (r in i)
1250
+ return (o = i[r]) == null ? void 0 : o.index;
3987
1251
  if (t > 0)
3988
- return (d = s[0]) == null ? void 0 : d.index;
1252
+ return (c = i[0]) == null ? void 0 : c.index;
3989
1253
  if (t < 0)
3990
- return (g = s[s.length - 1]) == null ? void 0 : g.index;
1254
+ return (m = i[i.length - 1]) == null ? void 0 : m.index;
3991
1255
  }
3992
1256
  /**
3993
1257
  * Returns an item by its index.
@@ -3996,7 +1260,7 @@ class Nt {
3996
1260
  * @param index item index/ индекс элемента
3997
1261
  */
3998
1262
  getItemByIndex(t) {
3999
- const e = this.map.value.findIndex((s) => s.index === t);
1263
+ const e = this.map.value.findIndex((i) => i.index === t);
4000
1264
  if (e !== -1)
4001
1265
  return {
4002
1266
  key: e,
@@ -4038,7 +1302,7 @@ class Nt {
4038
1302
  * @param item List item data/ данные элемента списка
4039
1303
  */
4040
1304
  getSubList(t) {
4041
- return t.index in this.subList || (this.subList[t.index] = new Nt(
1305
+ return t.index in this.subList || (this.subList[t.index] = new Z(
4042
1306
  t.value,
4043
1307
  this.focus,
4044
1308
  this.highlight,
@@ -4081,8 +1345,8 @@ class Nt {
4081
1345
  * @param key item key / ключ элемента
4082
1346
  * @param label item label / метка элемента
4083
1347
  */
4084
- getIndex(t, e, s, r) {
4085
- return t && !w(t) ? t : e && !w(e) ? e : s && r;
1348
+ getIndex(t, e, i, n) {
1349
+ return t && !z(t) ? t : e && !z(e) ? e : i && n;
4086
1350
  }
4087
1351
  /**
4088
1352
  * Creates an object of the record element.
@@ -4092,21 +1356,21 @@ class Nt {
4092
1356
  * @param item selected element/ выбранный элемент
4093
1357
  */
4094
1358
  initItem(t, e) {
4095
- var s, r, o, a, u, h;
4096
- if (E(e)) {
4097
- const d = e == null ? void 0 : e[(r = (s = this.keyValue) == null ? void 0 : s.value) != null ? r : "value"], g = (u = e == null ? void 0 : e[(a = (o = this.keyLabel) == null ? void 0 : o.value) != null ? a : "label"]) != null ? u : d, v = this.getIndex(
1359
+ var i, n, r, u, h, o;
1360
+ if (M(e)) {
1361
+ const c = e == null ? void 0 : e[(n = (i = this.keyValue) == null ? void 0 : i.value) != null ? n : "value"], m = (h = e == null ? void 0 : e[(u = (r = this.keyLabel) == null ? void 0 : r.value) != null ? u : "label"]) != null ? h : c, y = this.getIndex(
4098
1362
  e == null ? void 0 : e.index,
4099
- d,
1363
+ c,
4100
1364
  t,
4101
- g
1365
+ m
4102
1366
  );
4103
1367
  return {
4104
1368
  ...e,
4105
1369
  parent: this.parent,
4106
- index: v,
4107
- type: (h = e == null ? void 0 : e.type) != null ? h : "item",
4108
- label: g,
4109
- value: d
1370
+ index: y,
1371
+ type: (o = e == null ? void 0 : e.type) != null ? o : "item",
1372
+ label: m,
1373
+ value: c
4110
1374
  };
4111
1375
  }
4112
1376
  return {
@@ -4118,7 +1382,7 @@ class Nt {
4118
1382
  };
4119
1383
  }
4120
1384
  }
4121
- class we {
1385
+ class Rt {
4122
1386
  /**
4123
1387
  * Get router instance.
4124
1388
  *
@@ -4155,8 +1419,8 @@ class we {
4155
1419
  this.router || this.set(t);
4156
1420
  }
4157
1421
  }
4158
- c(we, "router");
4159
- class ki {
1422
+ l(Rt, "router");
1423
+ class Qt {
4160
1424
  /**
4161
1425
  * Constructor
4162
1426
  */
@@ -4166,118 +1430,118 @@ class ki {
4166
1430
  *
4167
1431
  * Реактивный элемент.
4168
1432
  */
4169
- c(this, "item", $());
1433
+ l(this, "item", f());
4170
1434
  /**
4171
1435
  * Checks whether the scroll width is defined.
4172
1436
  *
4173
1437
  * Проверяет, определена ли ширина скролла.
4174
1438
  */
4175
- c(this, "is", l(() => this.item.value !== void 0));
4176
- wt.is().then((t) => {
1439
+ l(this, "is", a(() => this.item.value !== void 0));
1440
+ ot.is().then((t) => {
4177
1441
  this.item.value = t;
4178
1442
  });
4179
1443
  }
4180
1444
  }
4181
- const De = (i) => typeof i == "string" ? { method: i } : i || {};
4182
- let J;
4183
- function Ci(i, t, e = !0, s, r, o) {
4184
- const a = $(), u = B(De(t)), h = $(!1), d = $(!1);
4185
- let g = !0, v = 0;
4186
- const x = async () => {
4187
- if (g)
1445
+ const At = (s) => typeof s == "string" ? { method: s } : s || {};
1446
+ let x;
1447
+ function Xt(s, t, e = !0, i, n, r) {
1448
+ const u = f(), h = b(At(t)), o = f(!1), c = f(!1);
1449
+ let m = !0, y = 0;
1450
+ const S = async () => {
1451
+ if (m)
4188
1452
  return;
4189
- const I = f(i);
4190
- if ((!s || s.value) && I) {
4191
- h.value = !0, d.value = !0;
4192
- let O = {};
4193
- const ft = await Y.request({
4194
- path: I,
4195
- ...u.value
1453
+ const p = d(s);
1454
+ if ((!i || i.value) && p) {
1455
+ o.value = !0, c.value = !0;
1456
+ let B = {};
1457
+ const V = await ct.request({
1458
+ path: p,
1459
+ ...h.value
4196
1460
  });
4197
- ft && (O = ft), r ? a.value = r(O) : a.value = O, h.value = !1;
4198
- } else a.value !== void 0 && (a.value = void 0);
4199
- }, M = () => {
4200
- const I = [];
4201
- e && I.push(u), X(i) && I.push(i), s && I.push(s), J && I.push(J), I.length > 0 && y(I, async () => {
4202
- h.value || await x();
1461
+ V && (B = V), n ? u.value = n(B) : u.value = B, o.value = !1;
1462
+ } else u.value !== void 0 && (u.value = void 0);
1463
+ }, tt = () => {
1464
+ const p = [];
1465
+ e && p.push(h), N(s) && p.push(s), i && p.push(i), x && p.push(x), p.length > 0 && g(p, async () => {
1466
+ o.value || await S();
4203
1467
  });
4204
1468
  };
4205
1469
  return {
4206
1470
  get data() {
4207
- return g && (g = !1, x().then()), M(), o && (v++, nt(() => {
4208
- v--, v < 1 && (console.warn("useApiRef: unmounted"), a.value = void 0, g = !0, v = 0);
4209
- })), a;
1471
+ return m && (m = !1, S().then()), tt(), r && (y++, O(() => {
1472
+ y--, y < 1 && (console.warn("useApiRef: unmounted"), u.value = void 0, m = !0, y = 0);
1473
+ })), u;
4210
1474
  },
4211
1475
  get isStarting() {
4212
- return l(() => a.value === void 0);
1476
+ return a(() => u.value === void 0);
4213
1477
  },
4214
1478
  get loading() {
4215
- return l(() => h.value);
1479
+ return a(() => o.value);
4216
1480
  },
4217
1481
  get reading() {
4218
- return l(() => d.value);
1482
+ return a(() => c.value);
4219
1483
  },
4220
- reset: x
1484
+ reset: S
4221
1485
  };
4222
1486
  }
4223
- const Ni = (i) => {
4224
- J || (J = i);
1487
+ const Zt = (s) => {
1488
+ x || (x = s);
4225
1489
  };
4226
- function Le(i, t) {
4227
- const e = `broadcast--${i}`;
4228
- if (e in tt)
4229
- return tt[e];
4230
- const s = $(lt(t)), r = new Vt(
1490
+ function Et(s, t) {
1491
+ const e = `broadcast--${s}`;
1492
+ if (e in E)
1493
+ return E[e];
1494
+ const i = f(Y(t)), n = new dt(
4231
1495
  e,
4232
- (o) => {
4233
- s.value !== o.data.message && (s.value = o.data.message);
1496
+ (r) => {
1497
+ i.value !== r.data.message && (i.value = r.data.message);
4234
1498
  }
4235
1499
  );
4236
- return y(s, (o) => r.post({ message: o })), tt[e] = s, s;
4237
- }
4238
- const tt = {};
4239
- function Ai(i, t, e) {
4240
- if (i in et)
4241
- return et[i];
4242
- const s = new Rt(i), r = Le(
4243
- `__cookie:${i}`,
4244
- s.get(t, e)
1500
+ return g(i, (r) => n.post({ message: r })), E[e] = i, i;
1501
+ }
1502
+ const E = {};
1503
+ function _t(s, t, e) {
1504
+ if (s in H)
1505
+ return H[s];
1506
+ const i = new gt(s), n = Et(
1507
+ `__cookie:${s}`,
1508
+ i.get(t, e)
4245
1509
  );
4246
- return y(r, (o) => {
4247
- s.set(o, e);
4248
- }), et[i] = r, r;
4249
- }
4250
- const et = {};
4251
- function Bi() {
4252
- return new Se();
4253
- }
4254
- function xi(i, t) {
4255
- if (i in it)
4256
- return it[i];
4257
- const e = F(T.get(i, t));
4258
- return y(e, (s) => T.set(i, s)), T.addWatch(i, (s) => {
4259
- e.value = s;
4260
- }), it[i] = e, e;
4261
- }
4262
- const it = {}, Ie = (i = {
1510
+ return g(n, (r) => {
1511
+ i.set(r, e);
1512
+ }), H[s] = n, n;
1513
+ }
1514
+ const H = {};
1515
+ function te() {
1516
+ return new Bt();
1517
+ }
1518
+ function ee(s, t) {
1519
+ if (s in $)
1520
+ return $[s];
1521
+ const e = I(A.get(s, t));
1522
+ return g(e, (i) => A.set(s, i)), A.addWatch(s, (i) => {
1523
+ e.value = i;
1524
+ }), $[s] = e, e;
1525
+ }
1526
+ const $ = {}, Ht = (s = {
4263
1527
  rootMargin: "128px 0px"
4264
1528
  }) => {
4265
- const t = {}, e = m() && "IntersectionObserver" in window ? new IntersectionObserver(
4266
- (r) => {
4267
- r.forEach((o) => {
4268
- const a = j(o.target);
4269
- if (a in t) {
4270
- const u = t[a];
4271
- u.status.value = o.isIntersecting, u.ratio.value = o.intersectionRatio, u.entry.value = o;
1529
+ const t = {}, e = G() && "IntersectionObserver" in window ? new IntersectionObserver(
1530
+ (n) => {
1531
+ n.forEach((r) => {
1532
+ const u = L(r.target);
1533
+ if (u in t) {
1534
+ const h = t[u];
1535
+ h.status.value = r.isIntersecting, h.ratio.value = r.intersectionRatio, h.entry.value = r;
4272
1536
  }
4273
1537
  });
4274
1538
  },
4275
- i
4276
- ) : void 0, s = (r) => {
4277
- var o;
4278
- if (r) {
4279
- const a = j(r);
4280
- a in t && (e == null || e.unobserve(r), (o = t[a]) == null || o.stopWatch(), delete t[a]);
1539
+ s
1540
+ ) : void 0, i = (n) => {
1541
+ var r;
1542
+ if (n) {
1543
+ const u = L(n);
1544
+ u in t && (e == null || e.unobserve(n), (r = t[u]) == null || r.stopWatch(), delete t[u]);
4281
1545
  }
4282
1546
  };
4283
1547
  return {
@@ -4288,9 +1552,9 @@ const it = {}, Ie = (i = {
4288
1552
  * Получение отслеживаемого элемента.
4289
1553
  * @param element tracked element/ отслеживаемый элемент
4290
1554
  */
4291
- getItem(r) {
4292
- const o = j(r);
4293
- return t[o];
1555
+ getItem(n) {
1556
+ const r = L(n);
1557
+ return t[r];
4294
1558
  },
4295
1559
  /**
4296
1560
  * Adding an element for tracking.
@@ -4298,31 +1562,31 @@ const it = {}, Ie = (i = {
4298
1562
  * Добавление элемента для отслеживания.
4299
1563
  * @param element element for tracking/ элемента для отслеживания
4300
1564
  */
4301
- addLazyItem(r) {
4302
- const o = F(!e);
1565
+ addLazyItem(n) {
1566
+ const r = I(!e);
4303
1567
  if (e) {
4304
- let a;
4305
- a = y(r, (u, h) => {
4306
- if (h && s(h), r.value) {
4307
- const d = j(r.value);
4308
- t[d] = {
4309
- status: o,
4310
- ratio: F(0),
4311
- entry: F(void 0),
4312
- stopWatch: () => a == null ? void 0 : a()
4313
- }, e.observe(r.value);
1568
+ let u;
1569
+ u = g(n, (h, o) => {
1570
+ if (o && i(o), n.value) {
1571
+ const c = L(n.value);
1572
+ t[c] = {
1573
+ status: r,
1574
+ ratio: I(0),
1575
+ entry: I(void 0),
1576
+ stopWatch: () => u == null ? void 0 : u()
1577
+ }, e.observe(n.value);
4314
1578
  } else
4315
- s(r.value);
1579
+ i(n.value);
4316
1580
  }, { immediate: !0 });
4317
1581
  }
4318
- return o;
1582
+ return r;
4319
1583
  },
4320
1584
  /**
4321
1585
  * Removing an element from tracking.
4322
1586
  *
4323
1587
  * Удаление элемента из отслеживания.
4324
1588
  */
4325
- removeLazyItem: s,
1589
+ removeLazyItem: i,
4326
1590
  /**
4327
1591
  * Removing all elements from tracking.
4328
1592
  *
@@ -4330,338 +1594,213 @@ const it = {}, Ie = (i = {
4330
1594
  */
4331
1595
  disconnectLazy: () => e == null ? void 0 : e.disconnect()
4332
1596
  };
4333
- }, vt = [], ke = (i) => {
4334
- const t = vt.find((s) => s.rootMargin === i);
1597
+ }, q = [], $t = (s) => {
1598
+ const t = q.find((i) => i.rootMargin === s);
4335
1599
  if (t)
4336
1600
  return t.item;
4337
- const e = Ie({ rootMargin: i });
4338
- return vt.push({ rootMargin: i, item: e }), e;
4339
- }, Fi = (i, t) => {
4340
- const e = ke(t);
1601
+ const e = Ht({ rootMargin: s });
1602
+ return q.push({ rootMargin: s, item: e }), e;
1603
+ }, ie = (s, t) => {
1604
+ const e = $t(t);
4341
1605
  return {
4342
1606
  /** Lazy item status/ Статус ленивого элемента */
4343
- lazyItemStatus: e.addLazyItem(i),
1607
+ lazyItemStatus: e.addLazyItem(s),
4344
1608
  /**
4345
1609
  * Getting a tracked lazy item.
4346
1610
  *
4347
1611
  * Получение отслеживаемого ленивого элемента.
4348
1612
  */
4349
1613
  get lazyItem() {
4350
- return e.getItem(i.value);
1614
+ return e.getItem(s.value);
4351
1615
  }
4352
1616
  };
4353
1617
  };
4354
- function Ei() {
4355
- const i = F(mt.is());
4356
- return mt.registrationEvent(({ detail: t }) => {
4357
- i.value = t.loading;
4358
- }), i;
4359
- }
4360
- const At = [], Ce = _(1e5, 999999);
4361
- function Ne(i, t = !0, e = !1, s = !0) {
4362
- let r;
4363
- const o = `__execute_use${Ce}::${j()}`, a = (h) => {
4364
- const d = Object.freeze(i(...h));
1618
+ function se() {
1619
+ const s = I(P.is());
1620
+ return P.registrationEvent(({ detail: t }) => {
1621
+ s.value = t.loading;
1622
+ }), s;
1623
+ }
1624
+ const _ = [], Ft = ft(1e5, 999999);
1625
+ function jt(s, t = !0, e = !1, i = !0) {
1626
+ let n;
1627
+ const r = `__execute_use${Ft}::${L()}`, u = (o) => {
1628
+ const c = Object.freeze(s(...o));
4365
1629
  return Object.freeze({
4366
- ...d,
1630
+ ...c,
4367
1631
  init() {
4368
- return d;
1632
+ return c;
4369
1633
  }
4370
1634
  });
4371
- }, u = (...h) => {
4372
- if (!e && s) {
4373
- const d = _t(o, void 0);
4374
- if (d)
4375
- return d;
1635
+ }, h = (...o) => {
1636
+ if (!e && i) {
1637
+ const c = Lt(r, void 0);
1638
+ if (c)
1639
+ return c;
4376
1640
  {
4377
- let g = a(h);
4378
- return Kt(o, g), t && nt(() => {
4379
- g = void 0;
4380
- }), g;
1641
+ let m = u(o);
1642
+ return Ct(r, m), t && O(() => {
1643
+ m = void 0;
1644
+ }), m;
4381
1645
  }
4382
- } else r || (r = a(h), t && nt(() => {
4383
- r = void 0;
1646
+ } else n || (n = u(o), t && O(() => {
1647
+ n = void 0;
4384
1648
  }));
4385
- return r;
1649
+ return n;
4386
1650
  };
4387
- return e && At.push(u), u;
4388
- }
4389
- function Hi() {
4390
- At.forEach((i) => i());
4391
- }
4392
- const Ae = Ne(() => {
4393
- const i = new ie(), t = $(i.getTitle()), e = $(i.getKeywords()), s = $(i.getDescription()), r = $(i.getImage()), o = $(i.getCanonical()), a = $(i.getRobots()), u = $(i.getAuthor()), h = $(i.getSiteName()), d = () => i.html();
4394
- return y(t, () => {
4395
- i.setTitle(t.value);
4396
- }), y(e, () => {
4397
- i.setKeywords(e.value);
4398
- }), y(s, () => {
4399
- i.setDescription(s.value);
4400
- }), y(r, () => {
4401
- i.setImage(r.value);
4402
- }), y(o, () => {
4403
- i.setCanonical(o.value);
4404
- }), y(a, () => {
4405
- i.setRobots(a.value);
4406
- }), y(u, () => {
4407
- i.setAuthor(u.value);
4408
- }), y(h, () => {
4409
- i.setSiteName(h.value);
1651
+ return e && _.push(h), h;
1652
+ }
1653
+ function ne() {
1654
+ _.forEach((s) => s());
1655
+ }
1656
+ const zt = jt(() => {
1657
+ const s = new mt(), t = f(s.getTitle()), e = f(s.getKeywords()), i = f(s.getDescription()), n = f(s.getImage()), r = f(s.getCanonical()), u = f(s.getRobots()), h = f(s.getAuthor()), o = f(s.getSiteName()), c = () => s.html();
1658
+ return g(t, () => {
1659
+ s.setTitle(t.value);
1660
+ }), g(e, () => {
1661
+ s.setKeywords(e.value);
1662
+ }), g(i, () => {
1663
+ s.setDescription(i.value);
1664
+ }), g(n, () => {
1665
+ s.setImage(n.value);
1666
+ }), g(r, () => {
1667
+ s.setCanonical(r.value);
1668
+ }), g(u, () => {
1669
+ s.setRobots(u.value);
1670
+ }), g(h, () => {
1671
+ s.setAuthor(h.value);
1672
+ }), g(o, () => {
1673
+ s.setSiteName(o.value);
4410
1674
  }), {
4411
- meta: i,
1675
+ meta: s,
4412
1676
  title: t,
4413
1677
  keyword: e,
4414
- description: s,
4415
- author: u,
4416
- image: r,
4417
- canonical: o,
4418
- robots: a,
4419
- siteName: h,
4420
- getHtmlMeta: d
1678
+ description: i,
1679
+ author: h,
1680
+ image: n,
1681
+ canonical: r,
1682
+ robots: u,
1683
+ siteName: o,
1684
+ getHtmlMeta: c
4421
1685
  };
4422
- }, !1, !0), Ri = () => Ae();
4423
- function Pi(i, t) {
4424
- if (i in st)
4425
- return st[i];
4426
- const e = new ct(i, !0), s = $(e.get(t));
4427
- return y(s, (r) => e.set(r)), st[i] = s, s;
4428
- }
4429
- const st = {};
4430
- function Wi(i, t, e) {
4431
- if (i in rt)
4432
- return rt[i];
4433
- const s = new ct(i), r = $(s.get(t, e));
4434
- return y(r, (o) => s.set(o)), m() && window.addEventListener("storage", () => {
4435
- s.update(), r.value = s.get();
4436
- }), rt[i] = r, r;
4437
- }
4438
- const rt = {};
4439
- function Be(i) {
4440
- const t = F(q.getListSync(i, !0)), e = async () => {
4441
- t.value = { ...await q.getList(i) };
1686
+ }, !1, !0), re = () => zt();
1687
+ function ae(s, t) {
1688
+ if (s in F)
1689
+ return F[s];
1690
+ const e = new J(s, !0), i = f(e.get(t));
1691
+ return g(i, (n) => e.set(n)), F[s] = i, i;
1692
+ }
1693
+ const F = {};
1694
+ function ue(s, t, e) {
1695
+ if (s in j)
1696
+ return j[s];
1697
+ const i = new J(s), n = f(i.get(t, e));
1698
+ return g(n, (r) => i.set(r)), G() && window.addEventListener("storage", () => {
1699
+ i.update(), n.value = i.get();
1700
+ }), j[s] = n, n;
1701
+ }
1702
+ const j = {};
1703
+ function Ot(s) {
1704
+ const t = I(U.getListSync(s, !0)), e = async () => {
1705
+ t.value = { ...await U.getList(s) };
4442
1706
  };
4443
- y(V.getLanguage(), e);
4444
- for (const s in t.value)
4445
- if (t.value[s] === s || t.value[s] === " ") {
1707
+ g(w.getLanguage(), e);
1708
+ for (const i in t.value)
1709
+ if (t.value[i] === i || t.value[i] === " ") {
4446
1710
  e().then();
4447
1711
  break;
4448
1712
  }
4449
1713
  return t;
4450
1714
  }
4451
- const ji = (i) => Be(i);
4452
- function Ui(i, t) {
4453
- const e = $();
4454
- return Dt(async () => {
4455
- e.value = await Pt(i);
4456
- }), l(() => e.value, t);
1715
+ const le = (s) => Ot(s);
1716
+ function he(s, t) {
1717
+ const e = f();
1718
+ return Q(async () => {
1719
+ e.value = await vt(s);
1720
+ }), a(() => e.value, t);
4457
1721
  }
4458
- function zi(i, t = () => {
4459
- }, e, s) {
4460
- return l(
1722
+ function oe(s, t = () => {
1723
+ }, e, i) {
1724
+ return a(
4461
1725
  () => {
4462
- if (V.get().value && (e === void 0 || e())) {
4463
- const r = i();
4464
- if (r !== void 0)
4465
- return r;
1726
+ if (w.get().value && (e === void 0 || e())) {
1727
+ const n = s();
1728
+ if (n !== void 0)
1729
+ return n;
4466
1730
  }
4467
- return lt(t);
1731
+ return Y(t);
4468
1732
  },
4469
- s
1733
+ i
4470
1734
  );
4471
1735
  }
4472
- function xe(i, t = {}, e = "value", s = !1) {
4473
- const r = typeof t == "string", o = r ? t : e, a = r ? {} : t;
4474
- return i ? i && E(i) && (o in i || s) ? ut(a, i) : ut(a, { [o]: i }) : r ? {} : { ...a };
4475
- }
4476
- function Zi(i, t = {}, e = "value") {
4477
- return l(() => xe(f(i), f(t), e));
4478
- }
4479
- const _i = (i, t) => {
4480
- const e = $();
4481
- let s = !0;
4482
- const r = () => {
4483
- s && (Dt(async () => {
4484
- const o = f(await i());
4485
- o !== t && (e.value = o);
4486
- }), s = !1);
1736
+ function Tt(s, t = {}, e = "value", i = !1) {
1737
+ const n = typeof t == "string", r = n ? t : e, u = n ? {} : t;
1738
+ return s ? s && M(s) && (r in s || i) ? T(u, s) : T(u, { [r]: s }) : n ? {} : { ...u };
1739
+ }
1740
+ function ce(s, t = {}, e = "value") {
1741
+ return a(() => Tt(d(s), d(t), e));
1742
+ }
1743
+ const de = (s, t) => {
1744
+ const e = f();
1745
+ let i = !0;
1746
+ const n = () => {
1747
+ i && (Q(async () => {
1748
+ const r = d(await s());
1749
+ r !== t && (e.value = r);
1750
+ }), i = !1);
4487
1751
  };
4488
- return l(() => (r(), e.value));
1752
+ return a(() => (n(), e.value));
4489
1753
  };
4490
- function Ki(i, t) {
4491
- i.value !== t && (i.value = t);
1754
+ function ge(s, t) {
1755
+ s.value !== t && (s.value = t);
4492
1756
  }
4493
- function Vi(i) {
1757
+ function fe(s) {
4494
1758
  let t;
4495
- return l(() => (t || (t = i()), t.value));
1759
+ return a(() => (t || (t = s()), t.value));
4496
1760
  }
4497
1761
  export {
4498
- Y as Api,
4499
- Ji as ApiDefault,
4500
- Qi as ApiHeaders,
4501
- Xi as ApiMethodItem,
4502
- Mi as ApiPreparation,
4503
- Oi as ApiResponse,
4504
- Ti as ApiStatus,
4505
- Vt as BroadcastMessage,
4506
- Gi as Cache,
4507
- ts as CacheItem,
4508
- es as CacheStatic,
4509
- Rt as Cookie,
4510
- is as CookieBlock,
4511
- ct as DataStorage,
4512
- ht as Datetime,
4513
- Di as DatetimeRef,
4514
- ye as DesignAbstract,
4515
- bi as DesignAsyncAbstract,
4516
- me as DesignChanged,
4517
- Si as DesignComp,
4518
- Ct as DesignComponents,
4519
- wi as DesignConstructorAbstract,
4520
- Ht as EventItem,
4521
- Li as EventRef,
4522
- n as GEO_FLAG_ICON_NAME,
4523
- D as Geo,
4524
- at as GeoFlag,
4525
- Ii as GeoFlagRef,
4526
- W as GeoIntl,
4527
- Se as GeoIntlRef,
4528
- ss as GeoPhone,
4529
- V as GeoRef,
4530
- Re as Global,
4531
- T as Hash,
4532
- rs as Icons,
4533
- Nt as ListDataRef,
4534
- mt as Loading,
4535
- ie as Meta,
4536
- dt as MetaManager,
4537
- te as MetaOg,
4538
- Ot as MetaOpenGraphAge,
4539
- Xt as MetaOpenGraphAvailability,
4540
- Mt as MetaOpenGraphCondition,
4541
- Tt as MetaOpenGraphGender,
4542
- b as MetaOpenGraphTag,
4543
- Qt as MetaOpenGraphType,
4544
- Jt as MetaRobots,
4545
- L as MetaTag,
4546
- ee as MetaTwitter,
4547
- Gt as MetaTwitterCard,
4548
- S as MetaTwitterTag,
4549
- we as RouterItemRef,
4550
- wt as ScrollbarWidth,
4551
- ki as ScrollbarWidthRef,
4552
- q as Translate,
4553
- Pe as anyToString,
4554
- re as applyTemplate,
4555
- ne as arrFill,
4556
- We as blobToBase64,
4557
- Ui as computedAsync,
4558
- zi as computedByLanguage,
4559
- Z as copyObject,
4560
- Et as copyObjectLite,
4561
- bt as createElement,
4562
- je as domQuerySelector,
4563
- Ue as domQuerySelectorAll,
4564
- qt as encodeAttribute,
4565
- ze as eventStopPropagation,
4566
- lt as executeFunction,
4567
- Pt as executePromise,
4568
- Ne as executeUse,
4569
- Hi as executeUseGlobalInit,
4570
- p as forEach,
4571
- oe as frame,
4572
- Ze as getAttributes,
4573
- xe as getBind,
4574
- Zi as getBindRef,
4575
- $e as getClassName,
4576
- _e as getClipboardData,
4577
- ot as getColumn,
4578
- _i as getComputedAsync,
4579
- St as getElement,
4580
- j as getElementId,
4581
- ae as getElementImage,
4582
- ns as getElementItem,
4583
- os as getElementOrWindow,
4584
- Lt as getExp,
4585
- pe as getIndexForRender,
4586
- ue as getItemByPath,
4587
- Ke as getKey,
4588
- It as getLengthOfAllArray,
4589
- Ve as getMaxLengthAllArray,
4590
- Ye as getMinLengthAllArray,
4591
- qe as getMouseClient,
4592
- ce as getMouseClientX,
4593
- le as getMouseClientY,
4594
- Je as getObjectByKeys,
4595
- Qe as getObjectNoUndefined,
4596
- Xe as getObjectOrNone,
4597
- Me as getRandomText,
4598
- f as getRef,
4599
- as as getRequestString,
4600
- Oe as getStepPercent,
4601
- Te as getStepValue,
4602
- Ge as goScroll,
4603
- ti as goScrollSmooth,
4604
- ei as inArray,
4605
- ii as initScrollbarOffset,
4606
- si as intersectKey,
4607
- gt as isArray,
4608
- ri as isDifferent,
4609
- us as isDomData,
4610
- m as isDomRuntime,
4611
- K as isFilled,
4612
- ni as isFloat,
4613
- cs as isFunction,
4614
- ls as isInDom,
4615
- oi as isIntegerBetween,
4616
- Ft as isNull,
4617
- hs as isNumber,
4618
- w as isObject,
4619
- E as isObjectNotArray,
4620
- R as isSelected,
4621
- ai as isSelectedByList,
4622
- Q as isString,
4623
- ds as isWindow,
4624
- _ as random,
4625
- ui as removeCommonPrefix,
4626
- ve as render,
4627
- U as replaceRecursive,
4628
- ci as replaceTemplate,
4629
- li as resizeImageByMax,
4630
- hi as secondToTime,
4631
- Ni as setApiRefGlobalConditions,
4632
- gs as setElementItem,
4633
- Ki as setRef,
4634
- di as setValues,
4635
- gi as splice,
4636
- he as strFill,
4637
- ji as t,
4638
- z as toArray,
4639
- ut as toBind,
4640
- be as toBinds,
4641
- kt as toCamelCase,
4642
- fi as toCamelCaseFirst,
4643
- Vi as toComputed,
4644
- A as toDate,
4645
- mi as toKebabCase,
4646
- N as toNumber,
4647
- yi as toNumberByMax,
4648
- fe as toPercent,
4649
- $i as toPercentBy100,
4650
- B as toRefItem,
4651
- fs as transformation,
4652
- pi as uint8ArrayToBase64,
4653
- de as uniqueArray,
4654
- Ci as useApiRef,
4655
- Le as useBroadcastValueRef,
4656
- Ai as useCookieRef,
4657
- Bi as useGeoIntlRef,
4658
- xi as useHashRef,
4659
- Fi as useLazyItemByMarginRef,
4660
- Ie as useLazyRef,
4661
- Ei as useLoadingRef,
4662
- Ri as useMeta,
4663
- Pi as useSessionRef,
4664
- Wi as useStorageRef,
4665
- Be as useTranslateRef,
4666
- vi as writeClipboardData
1762
+ Yt as DatetimeRef,
1763
+ wt as DesignAbstract,
1764
+ Pt as DesignAsyncAbstract,
1765
+ kt as DesignChanged,
1766
+ Ut as DesignComp,
1767
+ X as DesignComponents,
1768
+ qt as DesignConstructorAbstract,
1769
+ Gt as EventRef,
1770
+ Jt as GeoFlagRef,
1771
+ Bt as GeoIntlRef,
1772
+ w as GeoRef,
1773
+ Z as ListDataRef,
1774
+ Rt as RouterItemRef,
1775
+ Qt as ScrollbarWidthRef,
1776
+ he as computedAsync,
1777
+ oe as computedByLanguage,
1778
+ jt as executeUse,
1779
+ ne as executeUseGlobalInit,
1780
+ Tt as getBind,
1781
+ ce as getBindRef,
1782
+ Dt as getClassName,
1783
+ de as getComputedAsync,
1784
+ xt as getIndexForRender,
1785
+ d as getRef,
1786
+ Mt as render,
1787
+ Zt as setApiRefGlobalConditions,
1788
+ ge as setRef,
1789
+ le as t,
1790
+ T as toBind,
1791
+ Nt as toBinds,
1792
+ fe as toComputed,
1793
+ b as toRefItem,
1794
+ Xt as useApiRef,
1795
+ Et as useBroadcastValueRef,
1796
+ _t as useCookieRef,
1797
+ te as useGeoIntlRef,
1798
+ ee as useHashRef,
1799
+ ie as useLazyItemByMarginRef,
1800
+ Ht as useLazyRef,
1801
+ se as useLoadingRef,
1802
+ re as useMeta,
1803
+ ae as useSessionRef,
1804
+ ue as useStorageRef,
1805
+ Ot as useTranslateRef
4667
1806
  };