@dxtmisha/functional 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Icons-C2lZhD4l.js → Icons-Bp74_rUm.js} +47 -30
- package/dist/classes/Cookie.d.ts +6 -0
- package/dist/classes/DataStorage.d.ts +12 -0
- package/dist/composables/ref/useBroadcastValueRef.d.ts +11 -0
- package/dist/flags.js +1 -1
- package/dist/library.d.ts +1 -0
- package/dist/library.js +432 -408
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var k = (i, t, e) =>
|
|
4
|
-
import { i as d, D as Y, e as
|
|
5
|
-
import { o as
|
|
6
|
-
import { h as
|
|
7
|
-
class
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
|
+
var Tt = (i, t, e) => t in i ? Bt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var k = (i, t, e) => Tt(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { i as d, D as Y, e as A, a as O, b as Ft, G as p, f, t as b, c as ot, d as T, g as Et, h as K, j as m, k as L, A as H, l as g, E as Rt, m as F, r as W, L as ft, n as E } from "./Icons-Bp74_rUm.js";
|
|
5
|
+
import { o as As, I as Ns, p as Is, q as Bs, s as Ts, u as Fs, v as Es, w as Rs } from "./Icons-Bp74_rUm.js";
|
|
6
|
+
import { h as xt, computed as c, toRefs as Ot, useAttrs as Wt, useSlots as Pt, ref as $, isRef as ct, watch as y, triggerRef as jt, shallowRef as P, onUnmounted as it, inject as Ht, provide as Gt, watchEffect as zt } from "vue";
|
|
7
|
+
class Ut {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
10
10
|
* @param callback function for the cache/ функция для кэша
|
|
@@ -67,7 +67,7 @@ class Ht {
|
|
|
67
67
|
return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, s) => e !== t[s]) >= 0 ? (this.comparisons = [...t], !0) : !1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
class
|
|
70
|
+
class Zt {
|
|
71
71
|
cache = {};
|
|
72
72
|
/**
|
|
73
73
|
* Getting data for the cache, and if there is no cache, it performs a function to save the cache.
|
|
@@ -99,7 +99,7 @@ class Gt {
|
|
|
99
99
|
* @param callback function for the cache/ функция для кэша
|
|
100
100
|
*/
|
|
101
101
|
getCacheItem(t, e) {
|
|
102
|
-
return t in this.cache || (this.cache[t] = new
|
|
102
|
+
return t in this.cache || (this.cache[t] = new Ut(e)), this.cache[t];
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
const Z = class Z {
|
|
@@ -115,9 +115,9 @@ const Z = class Z {
|
|
|
115
115
|
return this.cache.get(t, e, s);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
k(Z, "cache"), Z.cache = new
|
|
119
|
-
let
|
|
120
|
-
function
|
|
118
|
+
k(Z, "cache"), Z.cache = new Zt();
|
|
119
|
+
let dt = Z;
|
|
120
|
+
function St(i, t = !1) {
|
|
121
121
|
if (typeof i == "string") {
|
|
122
122
|
const e = i.trim();
|
|
123
123
|
switch (e) {
|
|
@@ -148,9 +148,9 @@ function $t(i, t = !1) {
|
|
|
148
148
|
}
|
|
149
149
|
return i;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
class
|
|
153
|
-
static storage = new Y(
|
|
151
|
+
const Yt = "cookie-block";
|
|
152
|
+
class Kt {
|
|
153
|
+
static storage = new Y(Yt);
|
|
154
154
|
/**
|
|
155
155
|
* Obtaining status.
|
|
156
156
|
*
|
|
@@ -169,12 +169,11 @@ class Ut {
|
|
|
169
169
|
this.storage.set(t);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
class Zt {
|
|
172
|
+
const mt = {}, lt = class lt {
|
|
174
173
|
constructor(t) {
|
|
175
|
-
if (this.name = t, t in
|
|
176
|
-
return
|
|
177
|
-
this.value =
|
|
174
|
+
if (this.name = t, t in _)
|
|
175
|
+
return _[t];
|
|
176
|
+
this.value = mt?.[t], _[t] = this;
|
|
178
177
|
}
|
|
179
178
|
value;
|
|
180
179
|
options = {};
|
|
@@ -196,7 +195,7 @@ class Zt {
|
|
|
196
195
|
* @param options additional parameters/ дополнительные параметры
|
|
197
196
|
*/
|
|
198
197
|
set(t, e) {
|
|
199
|
-
this.value =
|
|
198
|
+
this.value = A(t), Object.assign(this.options, e), this.update();
|
|
200
199
|
}
|
|
201
200
|
/**
|
|
202
201
|
* Delete cookie data.
|
|
@@ -220,7 +219,7 @@ class Zt {
|
|
|
220
219
|
* Обновление данных cookie.
|
|
221
220
|
*/
|
|
222
221
|
update() {
|
|
223
|
-
if (d() && !
|
|
222
|
+
if (d() && !Kt.get()) {
|
|
224
223
|
const t = String(this.value ?? "");
|
|
225
224
|
document.cookie = [
|
|
226
225
|
`${encodeURIComponent(this.name)}=${encodeURIComponent(t)}`,
|
|
@@ -230,31 +229,37 @@ class Zt {
|
|
|
230
229
|
].join("; ");
|
|
231
230
|
}
|
|
232
231
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
/**
|
|
233
|
+
* Update data from cookies.
|
|
234
|
+
*
|
|
235
|
+
* Обновляет данные из cookies.
|
|
236
|
+
*/
|
|
237
|
+
static updateData() {
|
|
236
238
|
for (const t of document.cookie.split(";")) {
|
|
237
239
|
const [e, s] = t.trim().split("=");
|
|
238
|
-
e && O(s) && (
|
|
240
|
+
e && O(s) && (mt[e] = St(s));
|
|
239
241
|
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
d() && lt.updateData();
|
|
245
|
+
let rt = lt;
|
|
246
|
+
const _ = {};
|
|
242
247
|
function S(i) {
|
|
243
248
|
if (i instanceof Date)
|
|
244
249
|
return i;
|
|
245
|
-
if (
|
|
250
|
+
if (Ft(i))
|
|
246
251
|
return /* @__PURE__ */ new Date();
|
|
247
252
|
if (typeof i == "number")
|
|
248
253
|
return new Date(i);
|
|
249
|
-
let t = i, e =
|
|
254
|
+
let t = i, e = p.getTimezoneFormat();
|
|
250
255
|
i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (n, a, o) => (t = a, e = o, n));
|
|
251
256
|
const s = (/^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) ?? (/^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) ?? (/^\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")) ?? (/^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) ?? (/^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) ?? (/^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) ?? (/^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) ?? (/^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) ?? t.replace(" ", "T");
|
|
252
257
|
return /* @__PURE__ */ new Date(`${s}${e}`);
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function nt(i, t) {
|
|
255
260
|
return f(i, (e) => e?.[t]);
|
|
256
261
|
}
|
|
257
|
-
class
|
|
262
|
+
class I {
|
|
258
263
|
/**
|
|
259
264
|
* Returns an instance of the class according to the specified country code.
|
|
260
265
|
*
|
|
@@ -262,8 +267,8 @@ class N {
|
|
|
262
267
|
* @param code country code, full form language-country or one of them/
|
|
263
268
|
* код страны, полный вид язык-страна или один из них
|
|
264
269
|
*/
|
|
265
|
-
static getInstance(t =
|
|
266
|
-
return new
|
|
270
|
+
static getInstance(t = p.getLocation()) {
|
|
271
|
+
return new I(t);
|
|
267
272
|
}
|
|
268
273
|
geo;
|
|
269
274
|
/**
|
|
@@ -271,12 +276,12 @@ class N {
|
|
|
271
276
|
* @param code country code, full form language-country or one of them/
|
|
272
277
|
* код страны, полный вид язык-страна или один из них
|
|
273
278
|
*/
|
|
274
|
-
constructor(t =
|
|
275
|
-
this.geo =
|
|
279
|
+
constructor(t = p.getLocation()) {
|
|
280
|
+
this.geo = p.find(t);
|
|
276
281
|
const e = this.getLocation();
|
|
277
|
-
if (e in
|
|
278
|
-
return
|
|
279
|
-
|
|
282
|
+
if (e in J)
|
|
283
|
+
return J[e];
|
|
284
|
+
J[e] = this;
|
|
280
285
|
}
|
|
281
286
|
/**
|
|
282
287
|
* Returns country code and language.
|
|
@@ -327,7 +332,7 @@ class N {
|
|
|
327
332
|
type: "language",
|
|
328
333
|
style: e
|
|
329
334
|
};
|
|
330
|
-
return this.display(
|
|
335
|
+
return this.display(p.getByCode(t).language, s);
|
|
331
336
|
}
|
|
332
337
|
/**
|
|
333
338
|
* Get display names of region.
|
|
@@ -407,7 +412,7 @@ class N {
|
|
|
407
412
|
}, a = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...o) => (n.currency = String(o[2]).toUpperCase(), String(o[1])));
|
|
408
413
|
if (s) {
|
|
409
414
|
const o = this.numberObject(n);
|
|
410
|
-
return o ?
|
|
415
|
+
return o ? nt(
|
|
411
416
|
o.formatToParts(b(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
|
|
412
417
|
"value"
|
|
413
418
|
).join("") : t.toString();
|
|
@@ -462,7 +467,7 @@ class N {
|
|
|
462
467
|
*/
|
|
463
468
|
sizeFile(t, e = "byte") {
|
|
464
469
|
const s = b(t);
|
|
465
|
-
if (s > 1024 &&
|
|
470
|
+
if (s > 1024 && ot(e))
|
|
466
471
|
switch (e) {
|
|
467
472
|
case "byte":
|
|
468
473
|
return this.sizeFile(s / 1024, "kilobyte");
|
|
@@ -592,8 +597,8 @@ class N {
|
|
|
592
597
|
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
593
598
|
*/
|
|
594
599
|
relativeLimit(t, e, s, n, a, o, u) {
|
|
595
|
-
const h = S(t), l = s || /* @__PURE__ */ new Date(),
|
|
596
|
-
return
|
|
600
|
+
const h = S(t), l = s || /* @__PURE__ */ new Date(), D = new Date(l), C = new Date(l);
|
|
601
|
+
return D.setDate(l.getDate() - e), C.setDate(l.getDate() + e), h >= D && h <= C ? this.relative(
|
|
597
602
|
h,
|
|
598
603
|
n,
|
|
599
604
|
l
|
|
@@ -755,15 +760,15 @@ class N {
|
|
|
755
760
|
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;
|
|
756
761
|
}
|
|
757
762
|
}
|
|
758
|
-
const
|
|
759
|
-
class
|
|
763
|
+
const J = {};
|
|
764
|
+
class ut {
|
|
760
765
|
/**
|
|
761
766
|
* Constructor
|
|
762
767
|
* @param date date for processing/ дата для обработки
|
|
763
768
|
* @param type type of date format for output/ тип формата даты вывода
|
|
764
769
|
* @param code country and language code/ код страны и языка
|
|
765
770
|
*/
|
|
766
|
-
constructor(t, e = "date", s =
|
|
771
|
+
constructor(t, e = "date", s = p.getLocation()) {
|
|
767
772
|
this.type = e, this.code = s, this.date = S(t);
|
|
768
773
|
}
|
|
769
774
|
date;
|
|
@@ -775,7 +780,7 @@ class ot {
|
|
|
775
780
|
* Возвращает объект для работы с форматированием.
|
|
776
781
|
*/
|
|
777
782
|
getIntl() {
|
|
778
|
-
return new
|
|
783
|
+
return new I(this.code);
|
|
779
784
|
}
|
|
780
785
|
/**
|
|
781
786
|
* Returns a Date object.
|
|
@@ -983,7 +988,7 @@ class ot {
|
|
|
983
988
|
* @param timeZone add time zone/ добавить временную зону
|
|
984
989
|
*/
|
|
985
990
|
standard(t = !0) {
|
|
986
|
-
const e = new
|
|
991
|
+
const e = new ut(this.date, this.type, "en-GB"), s = [];
|
|
987
992
|
let n;
|
|
988
993
|
return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
|
|
989
994
|
year: "numeric",
|
|
@@ -1407,12 +1412,12 @@ class ot {
|
|
|
1407
1412
|
}
|
|
1408
1413
|
}
|
|
1409
1414
|
const r = "@flag";
|
|
1410
|
-
class
|
|
1415
|
+
class R {
|
|
1411
1416
|
/**
|
|
1412
1417
|
* Constructor
|
|
1413
1418
|
* @param code country and language code/ код страны и языка
|
|
1414
1419
|
*/
|
|
1415
|
-
constructor(t =
|
|
1420
|
+
constructor(t = p.getLocation()) {
|
|
1416
1421
|
this.code = t;
|
|
1417
1422
|
}
|
|
1418
1423
|
static flags = {
|
|
@@ -1665,14 +1670,14 @@ class E {
|
|
|
1665
1670
|
* @param code country code/ код страны
|
|
1666
1671
|
*/
|
|
1667
1672
|
get(t = this.code) {
|
|
1668
|
-
const e =
|
|
1673
|
+
const e = p.find(t);
|
|
1669
1674
|
if (e) {
|
|
1670
1675
|
const s = this.getCountry(e);
|
|
1671
1676
|
return {
|
|
1672
1677
|
language: this.getLanguage(e),
|
|
1673
1678
|
country: s,
|
|
1674
1679
|
standard: e.standard,
|
|
1675
|
-
icon:
|
|
1680
|
+
icon: R.flags?.[e.country],
|
|
1676
1681
|
label: s,
|
|
1677
1682
|
value: e.country
|
|
1678
1683
|
};
|
|
@@ -1704,7 +1709,7 @@ class E {
|
|
|
1704
1709
|
*/
|
|
1705
1710
|
getNational(t) {
|
|
1706
1711
|
return f(this.getList(t), (e) => {
|
|
1707
|
-
const s = new
|
|
1712
|
+
const s = new R(e.standard).get(e.standard);
|
|
1708
1713
|
return {
|
|
1709
1714
|
...e,
|
|
1710
1715
|
description: s?.country,
|
|
@@ -1728,7 +1733,7 @@ class E {
|
|
|
1728
1733
|
* Возвращает специальный объект для работы с форматированием.
|
|
1729
1734
|
*/
|
|
1730
1735
|
getLocation() {
|
|
1731
|
-
return new
|
|
1736
|
+
return new I(this.code);
|
|
1732
1737
|
}
|
|
1733
1738
|
/**
|
|
1734
1739
|
* Returns a list of countries to retrieve data from.
|
|
@@ -1737,7 +1742,7 @@ class E {
|
|
|
1737
1742
|
* @param codes country code/ код страны
|
|
1738
1743
|
*/
|
|
1739
1744
|
getCodes(t) {
|
|
1740
|
-
return t ?? Object.keys(
|
|
1745
|
+
return t ?? Object.keys(R.flags);
|
|
1741
1746
|
}
|
|
1742
1747
|
/**
|
|
1743
1748
|
* Getting the name of the language.
|
|
@@ -1758,7 +1763,7 @@ class E {
|
|
|
1758
1763
|
return this.getLocation().countryName(t.country);
|
|
1759
1764
|
}
|
|
1760
1765
|
}
|
|
1761
|
-
const
|
|
1766
|
+
const N = class N {
|
|
1762
1767
|
/**
|
|
1763
1768
|
* Getting an object with information about the phone code and country.
|
|
1764
1769
|
*
|
|
@@ -1866,12 +1871,12 @@ const A = class A {
|
|
|
1866
1871
|
* Формирование списка для карты.
|
|
1867
1872
|
*/
|
|
1868
1873
|
static makeList() {
|
|
1869
|
-
const t = f(
|
|
1874
|
+
const t = f(p.getList(), (e) => {
|
|
1870
1875
|
if (e?.phoneMask)
|
|
1871
1876
|
return {
|
|
1872
1877
|
phone: e?.phoneCode && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
|
|
1873
1878
|
within: e?.phoneWithin || 0,
|
|
1874
|
-
mask:
|
|
1879
|
+
mask: T(e.phoneMask),
|
|
1875
1880
|
value: e.country
|
|
1876
1881
|
};
|
|
1877
1882
|
});
|
|
@@ -1934,9 +1939,9 @@ const A = class A {
|
|
|
1934
1939
|
return t.replace(/\*/, this.getWithinSymbol(e));
|
|
1935
1940
|
}
|
|
1936
1941
|
};
|
|
1937
|
-
k(
|
|
1938
|
-
let
|
|
1939
|
-
class
|
|
1942
|
+
k(N, "list", []), k(N, "map", {}), N.makeList(), N.makeMap();
|
|
1943
|
+
let yt = N, j;
|
|
1944
|
+
class Le {
|
|
1940
1945
|
/**
|
|
1941
1946
|
* Returns the value by its name.
|
|
1942
1947
|
*
|
|
@@ -1944,7 +1949,7 @@ class $e {
|
|
|
1944
1949
|
* @param name property name/ название свойства
|
|
1945
1950
|
*/
|
|
1946
1951
|
static get(t) {
|
|
1947
|
-
return
|
|
1952
|
+
return j && j?.[t];
|
|
1948
1953
|
}
|
|
1949
1954
|
/**
|
|
1950
1955
|
* Adds data, this method works only once.
|
|
@@ -1953,7 +1958,7 @@ class $e {
|
|
|
1953
1958
|
* @param data global data/ глобальные данные
|
|
1954
1959
|
*/
|
|
1955
1960
|
static add(t) {
|
|
1956
|
-
|
|
1961
|
+
j === void 0 && (j = { ...t });
|
|
1957
1962
|
}
|
|
1958
1963
|
}
|
|
1959
1964
|
const M = class M {
|
|
@@ -1975,7 +1980,7 @@ const M = class M {
|
|
|
1975
1980
|
* @param callback value or function to change data/ значение или функция для изменения данных
|
|
1976
1981
|
*/
|
|
1977
1982
|
static set(t, e) {
|
|
1978
|
-
const s =
|
|
1983
|
+
const s = A(e);
|
|
1979
1984
|
s !== this.hash?.[t] && (this.hash[t] = s, this.update());
|
|
1980
1985
|
}
|
|
1981
1986
|
/**
|
|
@@ -2008,7 +2013,7 @@ const M = class M {
|
|
|
2008
2013
|
const t = {};
|
|
2009
2014
|
return location.hash.replace(
|
|
2010
2015
|
/([\w-]+)[:=]([^;]+)/ig,
|
|
2011
|
-
(...e) => (t[String(e[1])] =
|
|
2016
|
+
(...e) => (t[String(e[1])] = St(e[2]), "")
|
|
2012
2017
|
), t;
|
|
2013
2018
|
}
|
|
2014
2019
|
/**
|
|
@@ -2017,7 +2022,7 @@ const M = class M {
|
|
|
2017
2022
|
* Обновление строки хэша в URL.
|
|
2018
2023
|
*/
|
|
2019
2024
|
static update() {
|
|
2020
|
-
this.block = !0, history.replaceState(null, "", `#${
|
|
2025
|
+
this.block = !0, history.replaceState(null, "", `#${Et(this.hash, "=", ";")}`), requestAnimationFrame(() => {
|
|
2021
2026
|
this.block = !1;
|
|
2022
2027
|
});
|
|
2023
2028
|
}
|
|
@@ -2034,34 +2039,34 @@ const M = class M {
|
|
|
2034
2039
|
}
|
|
2035
2040
|
};
|
|
2036
2041
|
k(M, "hash", {}), k(M, "watch", {}), k(M, "block", !1), d() && (M.reload(), addEventListener("hashchange", () => M.reload()));
|
|
2037
|
-
let
|
|
2038
|
-
function
|
|
2042
|
+
let x = M;
|
|
2043
|
+
function Vt(i, t, e) {
|
|
2039
2044
|
return K(i)?.[t] ?? e;
|
|
2040
2045
|
}
|
|
2041
|
-
function
|
|
2046
|
+
function qt(i, t, e) {
|
|
2042
2047
|
const s = K(i);
|
|
2043
2048
|
if (s) {
|
|
2044
|
-
const n =
|
|
2049
|
+
const n = Vt(s, t);
|
|
2045
2050
|
if (m(n) && m(e))
|
|
2046
2051
|
f(e, (a, o) => {
|
|
2047
|
-
n[o] =
|
|
2052
|
+
n[o] = A(a);
|
|
2048
2053
|
});
|
|
2049
2054
|
else {
|
|
2050
|
-
const a =
|
|
2051
|
-
!(t in s) && typeof a == "string" ? s.setAttribute(t.toString(), a) : s[t] =
|
|
2055
|
+
const a = A(e);
|
|
2056
|
+
!(t in s) && typeof a == "string" ? s.setAttribute(t.toString(), a) : s[t] = A(e);
|
|
2052
2057
|
}
|
|
2053
2058
|
}
|
|
2054
2059
|
return s;
|
|
2055
2060
|
}
|
|
2056
|
-
function
|
|
2061
|
+
function pt(i, t = "div", e, s) {
|
|
2057
2062
|
if (!d())
|
|
2058
2063
|
return;
|
|
2059
2064
|
const n = document.createElement(t);
|
|
2060
|
-
return typeof e == "function" ? e(n) :
|
|
2061
|
-
|
|
2065
|
+
return typeof e == "function" ? e(n) : L(e) && f(e, (a, o) => {
|
|
2066
|
+
qt(n, o, a);
|
|
2062
2067
|
}), i?.insertBefore(n, s ?? null), n;
|
|
2063
2068
|
}
|
|
2064
|
-
class
|
|
2069
|
+
class wt {
|
|
2065
2070
|
static storage = new Y("scrollbar", !0);
|
|
2066
2071
|
static calculate = !1;
|
|
2067
2072
|
/**
|
|
@@ -2092,8 +2097,8 @@ class vt {
|
|
|
2092
2097
|
* Создает элементы для проверки ширины скролла.
|
|
2093
2098
|
*/
|
|
2094
2099
|
static createElement() {
|
|
2095
|
-
return
|
|
2096
|
-
t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%",
|
|
2100
|
+
return pt(document.body, "div", (t) => {
|
|
2101
|
+
t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", pt(t, "div", (e) => {
|
|
2097
2102
|
e.style.height = "100px";
|
|
2098
2103
|
});
|
|
2099
2104
|
});
|
|
@@ -2113,7 +2118,7 @@ class vt {
|
|
|
2113
2118
|
});
|
|
2114
2119
|
}
|
|
2115
2120
|
}
|
|
2116
|
-
const
|
|
2121
|
+
const _t = [
|
|
2117
2122
|
"d",
|
|
2118
2123
|
"e",
|
|
2119
2124
|
"f",
|
|
@@ -2133,15 +2138,15 @@ const Vt = [
|
|
|
2133
2138
|
"t",
|
|
2134
2139
|
"u",
|
|
2135
2140
|
"v"
|
|
2136
|
-
],
|
|
2141
|
+
], Jt = (i, t = {}) => {
|
|
2137
2142
|
let e = String(i);
|
|
2138
2143
|
if (i.match(/%[a-z]/)) {
|
|
2139
2144
|
let s = 0;
|
|
2140
2145
|
f(t, (n) => {
|
|
2141
|
-
e = e.replace(new RegExp(`%${
|
|
2146
|
+
e = e.replace(new RegExp(`%${_t[s++]}`, "g"), String(n));
|
|
2142
2147
|
});
|
|
2143
2148
|
}
|
|
2144
|
-
return
|
|
2149
|
+
return L(t) && f(t, (s, n) => {
|
|
2145
2150
|
e = e.replace(
|
|
2146
2151
|
new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
|
|
2147
2152
|
(a, o) => String(s).replace(/\[content]/g, o)
|
|
@@ -2164,7 +2169,7 @@ class z {
|
|
|
2164
2169
|
*/
|
|
2165
2170
|
static async get(t, e) {
|
|
2166
2171
|
const s = this.getName(t);
|
|
2167
|
-
return s in this.data ? this.replacement(this.data[s], e) : (
|
|
2172
|
+
return s in this.data ? this.replacement(this.data[s], e) : (H.isLocalhost() || await this.add(t), this.replacement(this.data?.[s] ?? t));
|
|
2168
2173
|
}
|
|
2169
2174
|
/**
|
|
2170
2175
|
* Getting the translation text by its code (Sync).
|
|
@@ -2237,7 +2242,7 @@ class z {
|
|
|
2237
2242
|
*/
|
|
2238
2243
|
static addSync(t) {
|
|
2239
2244
|
f(t, (e, s) => {
|
|
2240
|
-
|
|
2245
|
+
ot(e) && O(e) && (this.data[this.getName(s)] = e);
|
|
2241
2246
|
});
|
|
2242
2247
|
}
|
|
2243
2248
|
/**
|
|
@@ -2248,7 +2253,7 @@ class z {
|
|
|
2248
2253
|
*/
|
|
2249
2254
|
static async addNormalOrSync(t) {
|
|
2250
2255
|
if (O(t))
|
|
2251
|
-
if (
|
|
2256
|
+
if (H.isLocalhost())
|
|
2252
2257
|
this.addSync(t);
|
|
2253
2258
|
else {
|
|
2254
2259
|
const e = Object.keys(t);
|
|
@@ -2274,7 +2279,7 @@ class z {
|
|
|
2274
2279
|
* @param name code name/ название кода
|
|
2275
2280
|
*/
|
|
2276
2281
|
static getName(t) {
|
|
2277
|
-
return `${
|
|
2282
|
+
return `${p.getLocation()}-${t}`;
|
|
2278
2283
|
}
|
|
2279
2284
|
/**
|
|
2280
2285
|
* Returns a list of names that are not yet in the list.
|
|
@@ -2284,7 +2289,7 @@ class z {
|
|
|
2284
2289
|
*/
|
|
2285
2290
|
static getNamesNone(t) {
|
|
2286
2291
|
const e = [];
|
|
2287
|
-
return
|
|
2292
|
+
return T(t).forEach((s) => {
|
|
2288
2293
|
s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
|
|
2289
2294
|
}), e;
|
|
2290
2295
|
}
|
|
@@ -2294,7 +2299,7 @@ class z {
|
|
|
2294
2299
|
* Получение списка переводов с сервера.
|
|
2295
2300
|
*/
|
|
2296
2301
|
static async getResponse() {
|
|
2297
|
-
return await
|
|
2302
|
+
return await H.get({
|
|
2298
2303
|
api: !1,
|
|
2299
2304
|
path: this.url,
|
|
2300
2305
|
request: {
|
|
@@ -2312,7 +2317,7 @@ class z {
|
|
|
2312
2317
|
* @param replacement values for replacement/ значения для замены
|
|
2313
2318
|
*/
|
|
2314
2319
|
static replacement(t, e) {
|
|
2315
|
-
return e ?
|
|
2320
|
+
return e ? Jt(t, e) : t;
|
|
2316
2321
|
}
|
|
2317
2322
|
/**
|
|
2318
2323
|
* Adding translation data from the server.
|
|
@@ -2326,10 +2331,10 @@ class z {
|
|
|
2326
2331
|
}), this.cache = [];
|
|
2327
2332
|
}
|
|
2328
2333
|
}
|
|
2329
|
-
function
|
|
2334
|
+
function ht(i) {
|
|
2330
2335
|
return Array.isArray(i);
|
|
2331
2336
|
}
|
|
2332
|
-
class
|
|
2337
|
+
class Qt {
|
|
2333
2338
|
/**
|
|
2334
2339
|
* Constructor
|
|
2335
2340
|
* @param props base data/ базовые данные
|
|
@@ -2346,7 +2351,7 @@ class Jt {
|
|
|
2346
2351
|
* @param name property name/ название свойства
|
|
2347
2352
|
*/
|
|
2348
2353
|
is(t) {
|
|
2349
|
-
return
|
|
2354
|
+
return ht(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
|
|
2350
2355
|
}
|
|
2351
2356
|
/**
|
|
2352
2357
|
* Checks if there are changes in the data.
|
|
@@ -2378,7 +2383,7 @@ class Jt {
|
|
|
2378
2383
|
return this.cache?.[t] !== this.props?.[t];
|
|
2379
2384
|
}
|
|
2380
2385
|
}
|
|
2381
|
-
class
|
|
2386
|
+
class Xt {
|
|
2382
2387
|
/**
|
|
2383
2388
|
* Constructor
|
|
2384
2389
|
* @param props base data/ базовые данные
|
|
@@ -2387,7 +2392,7 @@ class _t {
|
|
|
2387
2392
|
* @param changed base data/ данный для слежения
|
|
2388
2393
|
*/
|
|
2389
2394
|
constructor(t, e, s) {
|
|
2390
|
-
this.props = t, this.callback = e, this.changed = new
|
|
2395
|
+
this.props = t, this.callback = e, this.changed = new Qt(t, s);
|
|
2391
2396
|
}
|
|
2392
2397
|
event = {};
|
|
2393
2398
|
changed;
|
|
@@ -2437,7 +2442,7 @@ class _t {
|
|
|
2437
2442
|
this.callback && this.callback(this.event);
|
|
2438
2443
|
}
|
|
2439
2444
|
}
|
|
2440
|
-
class
|
|
2445
|
+
class De extends Xt {
|
|
2441
2446
|
/**
|
|
2442
2447
|
* Calls the callback function.
|
|
2443
2448
|
*
|
|
@@ -2457,31 +2462,31 @@ class ve extends _t {
|
|
|
2457
2462
|
(t || this.changed.isChanged()) && (await this.initEvent(), this.makeCallbackItem(), this.changed.update());
|
|
2458
2463
|
}
|
|
2459
2464
|
}
|
|
2460
|
-
function
|
|
2465
|
+
function te(i) {
|
|
2461
2466
|
return i && "class" in i && typeof i.class == "string" ? i.class : void 0;
|
|
2462
2467
|
}
|
|
2463
|
-
function
|
|
2464
|
-
const s =
|
|
2468
|
+
function ee(i, t, e) {
|
|
2469
|
+
const s = te(t);
|
|
2465
2470
|
return e && s ? `${e}.${s}` : e || s || i;
|
|
2466
2471
|
}
|
|
2467
|
-
function
|
|
2468
|
-
const n =
|
|
2469
|
-
return
|
|
2472
|
+
function se(i, t, e, s) {
|
|
2473
|
+
const n = ee(i, t, s);
|
|
2474
|
+
return xt(i, { key: n, ...t }, e);
|
|
2470
2475
|
}
|
|
2471
|
-
function
|
|
2476
|
+
function at(i, t) {
|
|
2472
2477
|
const e = i?.class, s = t?.class, n = i?.style, a = t?.style, o = {
|
|
2473
2478
|
...i,
|
|
2474
2479
|
...t
|
|
2475
2480
|
};
|
|
2476
2481
|
return e && s && (o.class = [], e && o.class.push(e), s && o.class.push(s)), n && a && (o.style = [], n && o.style.push(n), a && o.style.push(a)), o;
|
|
2477
2482
|
}
|
|
2478
|
-
function
|
|
2483
|
+
function ie(...i) {
|
|
2479
2484
|
let t = {};
|
|
2480
2485
|
return i.forEach((e) => {
|
|
2481
|
-
e && (t =
|
|
2486
|
+
e && (t = at(t, e));
|
|
2482
2487
|
}), t;
|
|
2483
2488
|
}
|
|
2484
|
-
class
|
|
2489
|
+
class Lt {
|
|
2485
2490
|
/**
|
|
2486
2491
|
* Constructor
|
|
2487
2492
|
* @param components list of connected components/ список подключенных компонентов
|
|
@@ -2522,7 +2527,7 @@ class bt {
|
|
|
2522
2527
|
t in this.caching || (this.caching[t] = c(() => this.computeModification(t)));
|
|
2523
2528
|
const s = this.caching[t];
|
|
2524
2529
|
if (s)
|
|
2525
|
-
return e ?
|
|
2530
|
+
return e ? ie(s.value, e) : s.value;
|
|
2526
2531
|
}
|
|
2527
2532
|
return e;
|
|
2528
2533
|
}
|
|
@@ -2556,7 +2561,7 @@ class bt {
|
|
|
2556
2561
|
renderOne(t, e, s, n) {
|
|
2557
2562
|
if (this.is(t)) {
|
|
2558
2563
|
const a = n ?? t;
|
|
2559
|
-
return
|
|
2564
|
+
return se(
|
|
2560
2565
|
this.get(t),
|
|
2561
2566
|
this.getModification(a, e),
|
|
2562
2567
|
s,
|
|
@@ -2586,7 +2591,7 @@ class bt {
|
|
|
2586
2591
|
*/
|
|
2587
2592
|
computeModification(t) {
|
|
2588
2593
|
const e = g(this.modification?.[t]);
|
|
2589
|
-
if (e &&
|
|
2594
|
+
if (e && L(e)) {
|
|
2590
2595
|
const s = {};
|
|
2591
2596
|
return f(e, (n, a) => {
|
|
2592
2597
|
s[a] = g(n);
|
|
@@ -2595,12 +2600,12 @@ class bt {
|
|
|
2595
2600
|
return {};
|
|
2596
2601
|
}
|
|
2597
2602
|
}
|
|
2598
|
-
class
|
|
2603
|
+
class Ce extends Lt {
|
|
2599
2604
|
}
|
|
2600
|
-
function
|
|
2605
|
+
function Dt(i) {
|
|
2601
2606
|
return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(new RegExp("(?<=[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()}`);
|
|
2602
2607
|
}
|
|
2603
|
-
class
|
|
2608
|
+
class ke {
|
|
2604
2609
|
/**
|
|
2605
2610
|
* Constructor
|
|
2606
2611
|
* @param name class name/ название класса
|
|
@@ -2608,7 +2613,7 @@ class Se {
|
|
|
2608
2613
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
2609
2614
|
*/
|
|
2610
2615
|
constructor(t, e, s) {
|
|
2611
|
-
this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ?
|
|
2616
|
+
this.props = e, this.options = s, this.name = this.initName(t), this.refs = this.props ? Ot(this.props) : {}, this.components = new Lt(s?.components, s?.compMod), this.emits = s?.emits, this.classes = c(() => this.updateClasses()), this.styles = c(() => this.updateStyles()), this.attrs = Wt(), this.slots = Pt();
|
|
2612
2617
|
}
|
|
2613
2618
|
name;
|
|
2614
2619
|
element = $();
|
|
@@ -2648,7 +2653,7 @@ class Se {
|
|
|
2648
2653
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
2649
2654
|
*/
|
|
2650
2655
|
getSubClass(t) {
|
|
2651
|
-
return `${this.getName()}__${
|
|
2656
|
+
return `${this.getName()}__${T(t).join("__")}`;
|
|
2652
2657
|
}
|
|
2653
2658
|
/**
|
|
2654
2659
|
* Getting the class name for the status.
|
|
@@ -2657,7 +2662,7 @@ class Se {
|
|
|
2657
2662
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
2658
2663
|
*/
|
|
2659
2664
|
getStatusClass(t) {
|
|
2660
|
-
return `${this.getName()}--${
|
|
2665
|
+
return `${this.getName()}--${T(t).join("--")}`;
|
|
2661
2666
|
}
|
|
2662
2667
|
/**
|
|
2663
2668
|
* Getting the property name for the style.
|
|
@@ -2666,7 +2671,7 @@ class Se {
|
|
|
2666
2671
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
2667
2672
|
*/
|
|
2668
2673
|
getStyle(t) {
|
|
2669
|
-
return `--${this.getName()}-sys-${
|
|
2674
|
+
return `--${this.getName()}-sys-${T(t).join("-")}`;
|
|
2670
2675
|
}
|
|
2671
2676
|
/**
|
|
2672
2677
|
* Getting additional parameters.
|
|
@@ -2715,7 +2720,7 @@ class Se {
|
|
|
2715
2720
|
* @param classes list of classes for transformation/ список классов для преобразования
|
|
2716
2721
|
*/
|
|
2717
2722
|
toClass(t) {
|
|
2718
|
-
return
|
|
2723
|
+
return L(t) ? t : Array.isArray(t) ? { [t.filter((s) => typeof s == "string" && s.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
|
|
2719
2724
|
}
|
|
2720
2725
|
/**
|
|
2721
2726
|
* Converts the class name to standard for the current component.
|
|
@@ -2739,7 +2744,7 @@ class Se {
|
|
|
2739
2744
|
* @param name component name for transformation/ название компонента для преобразования
|
|
2740
2745
|
*/
|
|
2741
2746
|
initName(t) {
|
|
2742
|
-
return f(t.split(".", 2), (e) =>
|
|
2747
|
+
return f(t.split(".", 2), (e) => Dt(e));
|
|
2743
2748
|
}
|
|
2744
2749
|
/**
|
|
2745
2750
|
* Updating data about the class.
|
|
@@ -2774,9 +2779,9 @@ class Se {
|
|
|
2774
2779
|
}
|
|
2775
2780
|
}
|
|
2776
2781
|
function w(i) {
|
|
2777
|
-
return
|
|
2782
|
+
return ct(i) ? i : $(i);
|
|
2778
2783
|
}
|
|
2779
|
-
class
|
|
2784
|
+
class Me {
|
|
2780
2785
|
item;
|
|
2781
2786
|
type;
|
|
2782
2787
|
code;
|
|
@@ -2794,14 +2799,14 @@ class we {
|
|
|
2794
2799
|
* @param type type of date format for output. тип формата даты вывода
|
|
2795
2800
|
* @param code country and language code. код страны и языка
|
|
2796
2801
|
*/
|
|
2797
|
-
constructor(t, e = "date", s =
|
|
2798
|
-
this.item = w(t), this.type = w(e), this.code = w(s), this.date = $(S(this.item.value)), this.datetime = new
|
|
2802
|
+
constructor(t, e = "date", s = p.getLocation()) {
|
|
2803
|
+
this.item = w(t), this.type = w(e), this.code = w(s), this.date = $(S(this.item.value)), this.datetime = new ut(
|
|
2799
2804
|
this.date.value,
|
|
2800
2805
|
this.type.value,
|
|
2801
2806
|
this.code.value
|
|
2802
|
-
),
|
|
2807
|
+
), y(this.item, (n) => {
|
|
2803
2808
|
this.date.value = S(n);
|
|
2804
|
-
}),
|
|
2809
|
+
}), y(this.type, (n) => this.datetime.setType(n)), y(this.code, (n) => this.datetime.setCode(n)), y(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() => jt(this.date));
|
|
2805
2810
|
}
|
|
2806
2811
|
/**
|
|
2807
2812
|
* Returns the basic data for the date.
|
|
@@ -2921,7 +2926,7 @@ class we {
|
|
|
2921
2926
|
return c(() => this.date.value && this.datetime.standard(t));
|
|
2922
2927
|
}
|
|
2923
2928
|
}
|
|
2924
|
-
class
|
|
2929
|
+
class Ae extends Rt {
|
|
2925
2930
|
/**
|
|
2926
2931
|
* Classes Constructor
|
|
2927
2932
|
* @param elementSelector element/ элемент
|
|
@@ -2942,18 +2947,18 @@ class Ce extends Bt {
|
|
|
2942
2947
|
n,
|
|
2943
2948
|
a,
|
|
2944
2949
|
o
|
|
2945
|
-
), h.value && this.setElementControl(h.value),
|
|
2950
|
+
), h.value && this.setElementControl(h.value), y(u, (l) => this.setElement(l)), y(h, (l) => this.setElementControl(l));
|
|
2946
2951
|
}
|
|
2947
2952
|
}
|
|
2948
|
-
class
|
|
2953
|
+
class Ne {
|
|
2949
2954
|
code;
|
|
2950
2955
|
flag;
|
|
2951
2956
|
/**
|
|
2952
2957
|
* Constructor
|
|
2953
2958
|
* @param code country and language code/ код страны и языка
|
|
2954
2959
|
*/
|
|
2955
|
-
constructor(t =
|
|
2956
|
-
this.code = w(t), this.flag = new
|
|
2960
|
+
constructor(t = p.getLocation()) {
|
|
2961
|
+
this.code = w(t), this.flag = new R(this.code.value), y(this.code, (e) => this.flag.setCode(e));
|
|
2957
2962
|
}
|
|
2958
2963
|
/**
|
|
2959
2964
|
* Obtaining a reactive object with the country code.
|
|
@@ -3000,8 +3005,8 @@ class Le {
|
|
|
3000
3005
|
return c(() => this.flag.getNational(t));
|
|
3001
3006
|
}
|
|
3002
3007
|
}
|
|
3003
|
-
class
|
|
3004
|
-
static item =
|
|
3008
|
+
class Ct {
|
|
3009
|
+
static item = P(p.get());
|
|
3005
3010
|
static country = c(() => this.item.value.country);
|
|
3006
3011
|
static language = c(() => this.item.value.language);
|
|
3007
3012
|
static standard = c(() => this.item.value.standard);
|
|
@@ -3054,10 +3059,10 @@ class wt {
|
|
|
3054
3059
|
* код страны, полный вид язык-страна или один из них
|
|
3055
3060
|
*/
|
|
3056
3061
|
static set(t) {
|
|
3057
|
-
|
|
3062
|
+
p.set(t, !0), this.item.value = p.getItem();
|
|
3058
3063
|
}
|
|
3059
3064
|
}
|
|
3060
|
-
class
|
|
3065
|
+
class re {
|
|
3061
3066
|
location;
|
|
3062
3067
|
intl;
|
|
3063
3068
|
/**
|
|
@@ -3066,7 +3071,7 @@ class se {
|
|
|
3066
3071
|
* код страны, полный вид язык-страна или один из них
|
|
3067
3072
|
*/
|
|
3068
3073
|
constructor(t) {
|
|
3069
|
-
this.location = w(t), this.intl = c(() => new
|
|
3074
|
+
this.location = w(t), this.intl = c(() => new I(this.location.value ?? Ct.getLanguage().value));
|
|
3070
3075
|
}
|
|
3071
3076
|
/**
|
|
3072
3077
|
* The consistent translation of language, region and script display names.
|
|
@@ -3271,11 +3276,11 @@ class se {
|
|
|
3271
3276
|
return c(() => this.intl.value.time(g(t)));
|
|
3272
3277
|
}
|
|
3273
3278
|
}
|
|
3274
|
-
function
|
|
3279
|
+
function kt(i, t = "ig", e = ":value") {
|
|
3275
3280
|
const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
|
|
3276
3281
|
return new RegExp(e.replace(/:value/g, s), t);
|
|
3277
3282
|
}
|
|
3278
|
-
class
|
|
3283
|
+
class Mt {
|
|
3279
3284
|
/**
|
|
3280
3285
|
* Creates an instance of ListData for managing list data.
|
|
3281
3286
|
*
|
|
@@ -3291,7 +3296,7 @@ class Lt {
|
|
|
3291
3296
|
* @param parent Parent identifier / идентификатор родителя
|
|
3292
3297
|
*/
|
|
3293
3298
|
constructor(t, e, s, n, a, o, u, h, l) {
|
|
3294
|
-
this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = n, this.selected = a, this.keyValue = o, this.keyLabel = u, this.lite = h, this.parent = l,
|
|
3299
|
+
this.list = t, this.focus = e, this.highlight = s, this.highlightLengthStart = n, this.selected = a, this.keyValue = o, this.keyLabel = u, this.lite = h, this.parent = l, ct(t) && y(t, () => {
|
|
3295
3300
|
this.subList = {};
|
|
3296
3301
|
});
|
|
3297
3302
|
}
|
|
@@ -3385,7 +3390,7 @@ class Lt {
|
|
|
3385
3390
|
* Находит первый элемент, соответствующий условиям поиска.
|
|
3386
3391
|
*/
|
|
3387
3392
|
highlightFirstItem = c(() => {
|
|
3388
|
-
const t = this.getHighlight(), e = t && t.length >= this.getHighlightLengthStart() &&
|
|
3393
|
+
const t = this.getHighlight(), e = t && t.length >= this.getHighlightLengthStart() && kt(t, "i");
|
|
3389
3394
|
return e ? this.map.value.findIndex(
|
|
3390
3395
|
(s) => s.label?.toString().match(e) || s.index?.toString().match(e) || s.search?.toString().match(e)
|
|
3391
3396
|
) : -1;
|
|
@@ -3413,13 +3418,13 @@ class Lt {
|
|
|
3413
3418
|
*
|
|
3414
3419
|
* Возвращает список выделенных элементов на карте.
|
|
3415
3420
|
*/
|
|
3416
|
-
selectedNames = c(() =>
|
|
3421
|
+
selectedNames = c(() => nt(this.selectedList.value, "label"));
|
|
3417
3422
|
/**
|
|
3418
3423
|
* Returns a list of selected item values on the map.
|
|
3419
3424
|
*
|
|
3420
3425
|
* Возвращает список значений выделенных элементов на карте.
|
|
3421
3426
|
*/
|
|
3422
|
-
selectedValues = c(() =>
|
|
3427
|
+
selectedValues = c(() => nt(this.selectedList.value, "value"));
|
|
3423
3428
|
/**
|
|
3424
3429
|
* Checks whether it is necessary to first display a simplified version.
|
|
3425
3430
|
*
|
|
@@ -3549,7 +3554,7 @@ class Lt {
|
|
|
3549
3554
|
* @param item List item data/ данные элемента списка
|
|
3550
3555
|
*/
|
|
3551
3556
|
getSubList(t) {
|
|
3552
|
-
return t.index in this.subList || (this.subList[t.index] = new
|
|
3557
|
+
return t.index in this.subList || (this.subList[t.index] = new Mt(
|
|
3553
3558
|
t.value,
|
|
3554
3559
|
this.focus,
|
|
3555
3560
|
this.highlight,
|
|
@@ -3600,7 +3605,7 @@ class Lt {
|
|
|
3600
3605
|
* @param item selected element/ выбранный элемент
|
|
3601
3606
|
*/
|
|
3602
3607
|
initItem(t, e) {
|
|
3603
|
-
if (
|
|
3608
|
+
if (L(e)) {
|
|
3604
3609
|
const s = e?.[this.keyValue?.value ?? "value"], n = e?.[this.keyLabel?.value ?? "label"] ?? s, a = this.getIndex(
|
|
3605
3610
|
e?.index,
|
|
3606
3611
|
s,
|
|
@@ -3625,7 +3630,7 @@ class Lt {
|
|
|
3625
3630
|
};
|
|
3626
3631
|
}
|
|
3627
3632
|
}
|
|
3628
|
-
class
|
|
3633
|
+
class Ie {
|
|
3629
3634
|
static router;
|
|
3630
3635
|
/**
|
|
3631
3636
|
* Get router instance.
|
|
@@ -3663,7 +3668,7 @@ class De {
|
|
|
3663
3668
|
this.router || this.set(t);
|
|
3664
3669
|
}
|
|
3665
3670
|
}
|
|
3666
|
-
class
|
|
3671
|
+
class Be {
|
|
3667
3672
|
/**
|
|
3668
3673
|
* Reactive item.
|
|
3669
3674
|
*
|
|
@@ -3674,7 +3679,7 @@ class ke {
|
|
|
3674
3679
|
* Constructor
|
|
3675
3680
|
*/
|
|
3676
3681
|
constructor() {
|
|
3677
|
-
|
|
3682
|
+
wt.is().then((t) => {
|
|
3678
3683
|
this.item.value = t;
|
|
3679
3684
|
});
|
|
3680
3685
|
}
|
|
@@ -3685,34 +3690,34 @@ class ke {
|
|
|
3685
3690
|
*/
|
|
3686
3691
|
is = c(() => this.item.value !== void 0);
|
|
3687
3692
|
}
|
|
3688
|
-
const
|
|
3693
|
+
const ne = (i) => typeof i == "string" ? { method: i } : i || {};
|
|
3689
3694
|
let U;
|
|
3690
|
-
function
|
|
3691
|
-
const o = $(), u = w(
|
|
3692
|
-
let
|
|
3695
|
+
function Te(i, t, e = !0, s, n, a) {
|
|
3696
|
+
const o = $(), u = w(ne(t)), h = $(!1), l = $(!1);
|
|
3697
|
+
let D = !0, C = 0;
|
|
3693
3698
|
const V = async () => {
|
|
3694
|
-
if (
|
|
3699
|
+
if (D)
|
|
3695
3700
|
return;
|
|
3696
3701
|
const v = g(i);
|
|
3697
3702
|
if ((!s || s.value) && v) {
|
|
3698
3703
|
h.value = !0, l.value = !0;
|
|
3699
3704
|
let q = {};
|
|
3700
|
-
const
|
|
3705
|
+
const gt = await H.request({
|
|
3701
3706
|
path: v,
|
|
3702
3707
|
...u.value
|
|
3703
3708
|
});
|
|
3704
|
-
|
|
3709
|
+
gt && (q = gt), n ? o.value = n(q) : o.value = q, h.value = !1;
|
|
3705
3710
|
} else o.value !== void 0 && (o.value = void 0);
|
|
3706
|
-
},
|
|
3711
|
+
}, It = () => {
|
|
3707
3712
|
const v = [];
|
|
3708
|
-
e && v.push(u),
|
|
3713
|
+
e && v.push(u), ct(i) && v.push(i), s && v.push(s), U && v.push(U), v.length > 0 && y(v, async () => {
|
|
3709
3714
|
h.value || await V();
|
|
3710
3715
|
});
|
|
3711
3716
|
};
|
|
3712
3717
|
return {
|
|
3713
3718
|
get data() {
|
|
3714
|
-
return
|
|
3715
|
-
|
|
3719
|
+
return D && (D = !1, V().then()), It(), a && (C++, it(() => {
|
|
3720
|
+
C--, C < 1 && (console.warn("useApiRef: unmounted"), o.value = void 0, D = !0, C = 0);
|
|
3716
3721
|
})), o;
|
|
3717
3722
|
},
|
|
3718
3723
|
get isStarting() {
|
|
@@ -3725,40 +3730,65 @@ function Me(i, t, e = !0, s, n, a) {
|
|
|
3725
3730
|
reset: V
|
|
3726
3731
|
};
|
|
3727
3732
|
}
|
|
3728
|
-
const
|
|
3733
|
+
const Fe = (i) => {
|
|
3729
3734
|
U || (U = i);
|
|
3730
3735
|
};
|
|
3731
|
-
function
|
|
3736
|
+
function ae(i, t, e) {
|
|
3732
3737
|
if (i in Q)
|
|
3733
3738
|
return Q[i];
|
|
3734
|
-
const s = new
|
|
3735
|
-
return
|
|
3736
|
-
s.
|
|
3739
|
+
const s = new Y(i), n = $(s.get(t, e));
|
|
3740
|
+
return y(n, (a) => s.set(a)), d() && window.addEventListener("storage", () => {
|
|
3741
|
+
s.update(), n.value = s.get();
|
|
3737
3742
|
}), Q[i] = n, n;
|
|
3738
3743
|
}
|
|
3739
3744
|
const Q = {};
|
|
3740
|
-
function
|
|
3741
|
-
|
|
3745
|
+
function oe(i, t) {
|
|
3746
|
+
const e = `broadcast__${ce()}__${i}`;
|
|
3747
|
+
if (e in X)
|
|
3748
|
+
return X[e];
|
|
3749
|
+
const s = new BroadcastChannel(e), n = $(A(t));
|
|
3750
|
+
return y(n, (a) => s.postMessage({ message: a })), s.onmessage = (a) => {
|
|
3751
|
+
n.value !== a.data.message && (n.value = a.data.message);
|
|
3752
|
+
}, X[e] = n, n;
|
|
3753
|
+
}
|
|
3754
|
+
const X = {}, ce = () => ae(
|
|
3755
|
+
"__broadcast-name",
|
|
3756
|
+
() => `name_${W(1e6, 9999999)}`
|
|
3757
|
+
);
|
|
3758
|
+
function Ee(i, t, e) {
|
|
3759
|
+
if (i in tt)
|
|
3760
|
+
return tt[i];
|
|
3761
|
+
const s = new rt(i), n = oe(
|
|
3762
|
+
`__cookie:${i}`,
|
|
3763
|
+
s.get(t, e)
|
|
3764
|
+
);
|
|
3765
|
+
return y(n, (a) => {
|
|
3766
|
+
s.set(a, e);
|
|
3767
|
+
}), tt[i] = n, n;
|
|
3768
|
+
}
|
|
3769
|
+
const tt = {};
|
|
3770
|
+
function Re() {
|
|
3771
|
+
return new re();
|
|
3742
3772
|
}
|
|
3743
|
-
function
|
|
3744
|
-
if (i in
|
|
3745
|
-
return
|
|
3746
|
-
const e =
|
|
3747
|
-
return
|
|
3773
|
+
function xe(i, t) {
|
|
3774
|
+
if (i in et)
|
|
3775
|
+
return et[i];
|
|
3776
|
+
const e = P(x.get(i, t));
|
|
3777
|
+
return y(e, (s) => x.set(i, s)), x.addWatch(i, (s) => {
|
|
3748
3778
|
e.value = s;
|
|
3749
|
-
}),
|
|
3779
|
+
}), et[i] = e, e;
|
|
3750
3780
|
}
|
|
3751
|
-
const
|
|
3752
|
-
let
|
|
3753
|
-
function
|
|
3781
|
+
const et = {};
|
|
3782
|
+
let $t = W(1e5, 9e5);
|
|
3783
|
+
function G(i, t) {
|
|
3754
3784
|
const e = K(i);
|
|
3755
|
-
return e ? (O(e.id) || e.setAttribute("id", `id-${
|
|
3785
|
+
return e ? (O(e.id) || e.setAttribute("id", `id-${$t++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${$t++}`;
|
|
3756
3786
|
}
|
|
3757
|
-
const
|
|
3787
|
+
const Oe = () => {
|
|
3758
3788
|
const i = {}, t = "IntersectionObserver" in window ? new IntersectionObserver(
|
|
3759
3789
|
(s) => {
|
|
3760
3790
|
s.forEach((n) => {
|
|
3761
|
-
const a =
|
|
3791
|
+
const a = G(n.target);
|
|
3762
3792
|
a in i && (i[a].status.value = n.isIntersecting);
|
|
3763
3793
|
});
|
|
3764
3794
|
},
|
|
@@ -3767,7 +3797,7 @@ const Be = () => {
|
|
|
3767
3797
|
}
|
|
3768
3798
|
) : void 0, e = (s) => {
|
|
3769
3799
|
if (s) {
|
|
3770
|
-
const n =
|
|
3800
|
+
const n = G(s);
|
|
3771
3801
|
n in i && (t?.unobserve(s), i[n]?.stopWatch(), delete i[n]);
|
|
3772
3802
|
}
|
|
3773
3803
|
};
|
|
@@ -3780,11 +3810,11 @@ const Be = () => {
|
|
|
3780
3810
|
* @param element element for tracking/ элемента для отслеживания
|
|
3781
3811
|
*/
|
|
3782
3812
|
addLazyItem(s) {
|
|
3783
|
-
const n =
|
|
3813
|
+
const n = P(!t);
|
|
3784
3814
|
if (t) {
|
|
3785
|
-
const a =
|
|
3815
|
+
const a = y(s, (o, u) => {
|
|
3786
3816
|
if (u && t.unobserve(u), s.value) {
|
|
3787
|
-
const h =
|
|
3817
|
+
const h = G(s.value);
|
|
3788
3818
|
i[h] = {
|
|
3789
3819
|
status: n,
|
|
3790
3820
|
stopWatch: a
|
|
@@ -3809,31 +3839,24 @@ const Be = () => {
|
|
|
3809
3839
|
disconnectLazy: () => t?.disconnect()
|
|
3810
3840
|
};
|
|
3811
3841
|
};
|
|
3812
|
-
function
|
|
3813
|
-
const i =
|
|
3814
|
-
return
|
|
3842
|
+
function We() {
|
|
3843
|
+
const i = P(ft.is());
|
|
3844
|
+
return ft.registrationEvent(({ detail: t }) => {
|
|
3815
3845
|
i.value = t.loading;
|
|
3816
3846
|
}), i;
|
|
3817
3847
|
}
|
|
3818
|
-
function
|
|
3819
|
-
if (i in
|
|
3820
|
-
return
|
|
3848
|
+
function Pe(i, t) {
|
|
3849
|
+
if (i in st)
|
|
3850
|
+
return st[i];
|
|
3821
3851
|
const e = new Y(i, !0), s = $(e.get(t));
|
|
3822
|
-
return
|
|
3823
|
-
}
|
|
3824
|
-
const tt = {};
|
|
3825
|
-
function Ee(i, t, e) {
|
|
3826
|
-
if (i in et)
|
|
3827
|
-
return et[i];
|
|
3828
|
-
const s = new Y(i), n = $(s.get(t, e));
|
|
3829
|
-
return p(n, (a) => s.set(a)), et[i] = n, n;
|
|
3852
|
+
return y(s, (n) => e.set(n)), st[i] = s, s;
|
|
3830
3853
|
}
|
|
3831
|
-
const
|
|
3832
|
-
function
|
|
3833
|
-
const t =
|
|
3854
|
+
const st = {};
|
|
3855
|
+
function ue(i) {
|
|
3856
|
+
const t = P(z.getListSync(i, !0)), e = async () => {
|
|
3834
3857
|
t.value = { ...await z.getList(i) };
|
|
3835
3858
|
};
|
|
3836
|
-
|
|
3859
|
+
y(Ct.getLanguage(), e);
|
|
3837
3860
|
for (const s in t.value)
|
|
3838
3861
|
if (t.value[s] === s || t.value[s] === " ") {
|
|
3839
3862
|
e().then();
|
|
@@ -3841,155 +3864,155 @@ function re(i) {
|
|
|
3841
3864
|
}
|
|
3842
3865
|
return t;
|
|
3843
3866
|
}
|
|
3844
|
-
const
|
|
3845
|
-
function
|
|
3846
|
-
return
|
|
3867
|
+
const je = (i) => ue(i);
|
|
3868
|
+
function He(i) {
|
|
3869
|
+
return ot(i) ? i.trim() : ht(i) && i.findIndex((t) => m(t)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : i?.toString() ?? "";
|
|
3847
3870
|
}
|
|
3848
|
-
function
|
|
3871
|
+
function he(i, t) {
|
|
3849
3872
|
return Array(t).fill(i);
|
|
3850
3873
|
}
|
|
3851
|
-
function
|
|
3874
|
+
function Ge(i) {
|
|
3852
3875
|
if (d())
|
|
3853
3876
|
return document.querySelector(i) ?? void 0;
|
|
3854
3877
|
}
|
|
3855
|
-
function
|
|
3878
|
+
function ze(i) {
|
|
3856
3879
|
if (d())
|
|
3857
3880
|
return document.querySelectorAll(i);
|
|
3858
3881
|
}
|
|
3859
|
-
function
|
|
3882
|
+
function Ue(i) {
|
|
3860
3883
|
i.preventDefault(), i.stopPropagation();
|
|
3861
3884
|
}
|
|
3862
|
-
const
|
|
3863
|
-
function
|
|
3885
|
+
const At = [], le = W(1e5, 999999);
|
|
3886
|
+
function Ze(i, t = !0, e = !1, s = !0) {
|
|
3864
3887
|
let n;
|
|
3865
|
-
const a = `__execute_use${
|
|
3888
|
+
const a = `__execute_use${le}::${G()}`, o = (...u) => {
|
|
3866
3889
|
if (!e && s) {
|
|
3867
|
-
const h =
|
|
3890
|
+
const h = Ht(a, void 0);
|
|
3868
3891
|
if (h)
|
|
3869
3892
|
return h;
|
|
3870
3893
|
{
|
|
3871
3894
|
let l = Object.freeze(i(...u));
|
|
3872
|
-
return
|
|
3895
|
+
return Gt(a, l), t && it(() => {
|
|
3873
3896
|
l = void 0;
|
|
3874
3897
|
}), l;
|
|
3875
3898
|
}
|
|
3876
|
-
} else n || (n = Object.freeze(i(...u)), t &&
|
|
3899
|
+
} else n || (n = Object.freeze(i(...u)), t && it(() => {
|
|
3877
3900
|
n = void 0;
|
|
3878
3901
|
}));
|
|
3879
3902
|
return n;
|
|
3880
3903
|
};
|
|
3881
|
-
return e &&
|
|
3904
|
+
return e && At.push(o), o;
|
|
3882
3905
|
}
|
|
3883
|
-
function
|
|
3884
|
-
|
|
3906
|
+
function Ye() {
|
|
3907
|
+
At.forEach((i) => i());
|
|
3885
3908
|
}
|
|
3886
|
-
function
|
|
3909
|
+
function ge(i, t, e) {
|
|
3887
3910
|
const s = () => {
|
|
3888
|
-
i(), t?.() ?
|
|
3911
|
+
i(), t?.() ? ge(i, t, e) : e?.();
|
|
3889
3912
|
};
|
|
3890
3913
|
d() ? requestAnimationFrame(s) : s();
|
|
3891
3914
|
}
|
|
3892
|
-
function
|
|
3915
|
+
function Ke(i) {
|
|
3893
3916
|
const t = {}, e = K(i);
|
|
3894
3917
|
if (e)
|
|
3895
3918
|
for (const s of e.attributes)
|
|
3896
3919
|
t[s.name] = (s?.value || s?.textContent) ?? void 0;
|
|
3897
3920
|
return t;
|
|
3898
3921
|
}
|
|
3899
|
-
async function
|
|
3922
|
+
async function Ve(i) {
|
|
3900
3923
|
return i?.clipboardData?.getData("text") ?? (await navigator.clipboard.readText() || "");
|
|
3901
3924
|
}
|
|
3902
|
-
function
|
|
3925
|
+
function fe(i, t) {
|
|
3903
3926
|
const e = t.split(".", 2), s = e[0];
|
|
3904
|
-
return s && i?.[s] &&
|
|
3927
|
+
return s && i?.[s] && L(i[s]) && e?.[1] ? fe(i[s], e[1]) : (s && i?.[s]) ?? "";
|
|
3905
3928
|
}
|
|
3906
|
-
function
|
|
3929
|
+
function qe(i) {
|
|
3907
3930
|
return i?.key ?? i?.code ?? i?.keyCode?.toString();
|
|
3908
3931
|
}
|
|
3909
|
-
function
|
|
3932
|
+
function Nt(i) {
|
|
3910
3933
|
return f(i, (t) => t.length);
|
|
3911
3934
|
}
|
|
3912
|
-
function
|
|
3913
|
-
return Math.max(...
|
|
3935
|
+
function _e(i) {
|
|
3936
|
+
return Math.max(...Nt(i));
|
|
3914
3937
|
}
|
|
3915
|
-
function
|
|
3916
|
-
return Math.min(...
|
|
3938
|
+
function Je(i) {
|
|
3939
|
+
return Math.min(...Nt(i));
|
|
3917
3940
|
}
|
|
3918
|
-
function
|
|
3941
|
+
function de(i) {
|
|
3919
3942
|
return i?.clientX || i?.targetTouches?.[0]?.clientX || i?.touches?.[0]?.clientX || 0;
|
|
3920
3943
|
}
|
|
3921
|
-
function
|
|
3944
|
+
function me(i) {
|
|
3922
3945
|
return i?.clientY || i?.targetTouches?.[0]?.clientY || i?.touches?.[0]?.clientY || 0;
|
|
3923
3946
|
}
|
|
3924
|
-
function
|
|
3947
|
+
function Qe(i) {
|
|
3925
3948
|
return {
|
|
3926
|
-
x:
|
|
3927
|
-
y:
|
|
3949
|
+
x: de(i),
|
|
3950
|
+
y: me(i)
|
|
3928
3951
|
};
|
|
3929
3952
|
}
|
|
3930
|
-
function
|
|
3953
|
+
function Xe(i, t) {
|
|
3931
3954
|
const e = {};
|
|
3932
3955
|
return t.forEach((s) => {
|
|
3933
3956
|
s in i && i[s] !== void 0 && (e[s] = i[s]);
|
|
3934
3957
|
}), e;
|
|
3935
3958
|
}
|
|
3936
|
-
function
|
|
3959
|
+
function ts(i, t = void 0) {
|
|
3937
3960
|
const e = {};
|
|
3938
3961
|
return f(i, (s, n) => {
|
|
3939
3962
|
s !== t && (e[n] = s);
|
|
3940
3963
|
}), e;
|
|
3941
3964
|
}
|
|
3942
|
-
function
|
|
3943
|
-
return
|
|
3965
|
+
function es(i) {
|
|
3966
|
+
return L(i) ? i : {};
|
|
3944
3967
|
}
|
|
3945
|
-
function
|
|
3946
|
-
return
|
|
3968
|
+
function ye(i, t) {
|
|
3969
|
+
return he(i, t).join("");
|
|
3947
3970
|
}
|
|
3948
|
-
function
|
|
3949
|
-
const a =
|
|
3971
|
+
function ss(i, t, e = "#", s = 2, n = 12) {
|
|
3972
|
+
const a = W(i, t), o = [];
|
|
3950
3973
|
for (let u = 0; u < a; u++)
|
|
3951
|
-
o.push(
|
|
3974
|
+
o.push(ye(e, W(s, n)));
|
|
3952
3975
|
return o.join(" ");
|
|
3953
3976
|
}
|
|
3954
|
-
function
|
|
3977
|
+
function is(i, t) {
|
|
3955
3978
|
const e = i ?? 0;
|
|
3956
3979
|
return t > e ? 100 / (t - e) : 0;
|
|
3957
3980
|
}
|
|
3958
|
-
function
|
|
3981
|
+
function rs(i, t) {
|
|
3959
3982
|
const e = i ?? 0;
|
|
3960
3983
|
return t > e ? (t - e) / 100 : 0;
|
|
3961
3984
|
}
|
|
3962
|
-
const
|
|
3963
|
-
function
|
|
3985
|
+
const vt = 0;
|
|
3986
|
+
function ns(i, t, e) {
|
|
3964
3987
|
const s = t?.closest(i);
|
|
3965
3988
|
if (t && s && s.scrollHeight !== s.offsetHeight)
|
|
3966
3989
|
if (e) {
|
|
3967
3990
|
const n = e.getBoundingClientRect(), a = s.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
3968
3991
|
s.scrollTop = t.offsetTop - (n.top - a.top) - (n.height / 2 - o.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
|
|
3969
|
-
} else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop -
|
|
3992
|
+
} else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - vt : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + vt);
|
|
3970
3993
|
}
|
|
3971
|
-
function
|
|
3994
|
+
function as(i, t) {
|
|
3972
3995
|
return i.indexOf(t) !== -1;
|
|
3973
3996
|
}
|
|
3974
|
-
async function
|
|
3997
|
+
async function os() {
|
|
3975
3998
|
if (d()) {
|
|
3976
|
-
const i = await
|
|
3999
|
+
const i = await wt.get();
|
|
3977
4000
|
document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
|
|
3978
4001
|
}
|
|
3979
4002
|
}
|
|
3980
|
-
function
|
|
4003
|
+
function cs(i, t) {
|
|
3981
4004
|
const e = {};
|
|
3982
4005
|
return m(i) && m(t) && f(i, (s, n) => {
|
|
3983
4006
|
n in t && (e[n] = s);
|
|
3984
4007
|
}), e;
|
|
3985
4008
|
}
|
|
3986
|
-
function
|
|
4009
|
+
function us(i, t) {
|
|
3987
4010
|
let e = Object.keys(i).length !== Object.keys(t).length;
|
|
3988
4011
|
return e || f(i, (s, n) => {
|
|
3989
4012
|
s !== t?.[n] && (e = !0);
|
|
3990
4013
|
}), e;
|
|
3991
4014
|
}
|
|
3992
|
-
function
|
|
4015
|
+
function hs(i) {
|
|
3993
4016
|
switch (typeof i) {
|
|
3994
4017
|
case "number":
|
|
3995
4018
|
return !0;
|
|
@@ -3999,62 +4022,62 @@ function as(i) {
|
|
|
3999
4022
|
return !1;
|
|
4000
4023
|
}
|
|
4001
4024
|
}
|
|
4002
|
-
function
|
|
4025
|
+
function ls(i, t) {
|
|
4003
4026
|
const e = Math.floor(t);
|
|
4004
4027
|
return i >= e && i < e + 1;
|
|
4005
4028
|
}
|
|
4006
|
-
function
|
|
4029
|
+
function gs(i, t) {
|
|
4007
4030
|
return Array.isArray(i) ? i.every((e) => F(e, t)) : F(i, t);
|
|
4008
4031
|
}
|
|
4009
|
-
function
|
|
4032
|
+
function pe(i, t = {}, e = "value", s = !1) {
|
|
4010
4033
|
const n = typeof t == "string", a = n ? t : e, o = n ? {} : t;
|
|
4011
|
-
return i ? i &&
|
|
4034
|
+
return i ? i && L(i) && (a in i || s) ? at(o, i) : at(o, { [a]: i }) : n ? {} : { ...o };
|
|
4012
4035
|
}
|
|
4013
|
-
function
|
|
4014
|
-
return c(() =>
|
|
4036
|
+
function fs(i, t = {}, e = "value") {
|
|
4037
|
+
return c(() => pe(g(i), g(t), e));
|
|
4015
4038
|
}
|
|
4016
|
-
const
|
|
4039
|
+
const ds = (i, t) => {
|
|
4017
4040
|
const e = $();
|
|
4018
4041
|
let s = !0;
|
|
4019
4042
|
const n = () => {
|
|
4020
|
-
s && (
|
|
4043
|
+
s && (zt(async () => {
|
|
4021
4044
|
const a = g(await i());
|
|
4022
4045
|
a !== t && (e.value = a);
|
|
4023
4046
|
}), s = !1);
|
|
4024
4047
|
};
|
|
4025
4048
|
return c(() => (n(), e.value));
|
|
4026
4049
|
};
|
|
4027
|
-
function
|
|
4050
|
+
function ms(i, t) {
|
|
4028
4051
|
i.value !== t && (i.value = t);
|
|
4029
4052
|
}
|
|
4030
|
-
function
|
|
4053
|
+
function ys(i) {
|
|
4031
4054
|
let t;
|
|
4032
4055
|
return c(() => (t || (t = i()), t.value));
|
|
4033
4056
|
}
|
|
4034
|
-
function
|
|
4057
|
+
function $e(i) {
|
|
4035
4058
|
return [...new Set(i)];
|
|
4036
4059
|
}
|
|
4037
|
-
function
|
|
4038
|
-
const s =
|
|
4060
|
+
function B(i, t, e = !0) {
|
|
4061
|
+
const s = E(i);
|
|
4039
4062
|
return m(i) && m(t) && f(
|
|
4040
4063
|
t,
|
|
4041
4064
|
(n, a) => {
|
|
4042
4065
|
const o = i?.[a];
|
|
4043
|
-
m(o) && m(n) ? e && Array.isArray(o) && Array.isArray(n) ? s[a] =
|
|
4066
|
+
m(o) && m(n) ? e && Array.isArray(o) && Array.isArray(n) ? s[a] = E($e([...o, ...n])) : s[a] = B(
|
|
4044
4067
|
Array.isArray(o) ? { ...o } : o,
|
|
4045
4068
|
n,
|
|
4046
4069
|
e
|
|
4047
|
-
) : s[a] = m(n) ?
|
|
4070
|
+
) : s[a] = m(n) ? E(n) : n;
|
|
4048
4071
|
}
|
|
4049
4072
|
), s;
|
|
4050
4073
|
}
|
|
4051
|
-
function
|
|
4074
|
+
function ps(i, t) {
|
|
4052
4075
|
let e = i;
|
|
4053
4076
|
return f(t, (s, n) => {
|
|
4054
|
-
e = e.replace(
|
|
4077
|
+
e = e.replace(kt(`[${n}]`), A(s));
|
|
4055
4078
|
}), e;
|
|
4056
4079
|
}
|
|
4057
|
-
function
|
|
4080
|
+
function $s(i) {
|
|
4058
4081
|
const t = b(i);
|
|
4059
4082
|
if (t > 0) {
|
|
4060
4083
|
const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
|
|
@@ -4062,14 +4085,14 @@ function ds(i) {
|
|
|
4062
4085
|
}
|
|
4063
4086
|
return "00:00";
|
|
4064
4087
|
}
|
|
4065
|
-
function
|
|
4088
|
+
function vs(i, t, {
|
|
4066
4089
|
multiple: e = !1,
|
|
4067
4090
|
maxlength: s = 0,
|
|
4068
4091
|
alwaysChange: n = !0,
|
|
4069
4092
|
notEmpty: a = !1
|
|
4070
4093
|
}) {
|
|
4071
4094
|
if (e) {
|
|
4072
|
-
if (
|
|
4095
|
+
if (ht(i)) {
|
|
4073
4096
|
const o = i.indexOf(t), u = [...i];
|
|
4074
4097
|
return o !== -1 ? (!a || u.length > 1) && u.splice(o, 1) : (!s || i.length < s) && u.push(t), u;
|
|
4075
4098
|
}
|
|
@@ -4077,37 +4100,37 @@ function ms(i, t, {
|
|
|
4077
4100
|
}
|
|
4078
4101
|
return n || i !== t ? t : i;
|
|
4079
4102
|
}
|
|
4080
|
-
function
|
|
4103
|
+
function bs(i, t, e) {
|
|
4081
4104
|
if (m(i) && m(t)) {
|
|
4082
4105
|
if (e) {
|
|
4083
4106
|
let s = {}, n = !1;
|
|
4084
4107
|
return f(i, (a, o) => {
|
|
4085
|
-
!n && (e === o || e === a) ? (n = !0, s =
|
|
4086
|
-
}), n ? s :
|
|
4108
|
+
!n && (e === o || e === a) ? (n = !0, s = B(s, t)) : n ? s = B(s, { [o]: a }) : s[o] = m(a) ? E(a) : a;
|
|
4109
|
+
}), n ? s : B(i, t);
|
|
4087
4110
|
}
|
|
4088
4111
|
if (m(t))
|
|
4089
|
-
return
|
|
4112
|
+
return B(i, t);
|
|
4090
4113
|
}
|
|
4091
|
-
return
|
|
4114
|
+
return E(i);
|
|
4092
4115
|
}
|
|
4093
|
-
function
|
|
4094
|
-
return
|
|
4116
|
+
function Ss(i) {
|
|
4117
|
+
return Dt(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
|
|
4095
4118
|
}
|
|
4096
|
-
function
|
|
4119
|
+
function ws(i) {
|
|
4097
4120
|
return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(new RegExp("(?<=[A-Z])([A-Z])", "g"), (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(new RegExp("(?<=[\\w ])[A-Z]", "g"), (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
|
|
4098
4121
|
}
|
|
4099
|
-
function
|
|
4122
|
+
function Ls(i, t, e, s) {
|
|
4100
4123
|
const n = b(i), a = b(t);
|
|
4101
|
-
return t && a < n ? `${
|
|
4124
|
+
return t && a < n ? `${bt(a, e, s)}+` : bt(n, e, s);
|
|
4102
4125
|
}
|
|
4103
|
-
const
|
|
4104
|
-
function
|
|
4126
|
+
const bt = (i, t, e) => t ? new I(e).number(i) : i;
|
|
4127
|
+
function ve(i, t) {
|
|
4105
4128
|
return 1 / i * t;
|
|
4106
4129
|
}
|
|
4107
|
-
function
|
|
4108
|
-
return
|
|
4130
|
+
function Ds(i, t) {
|
|
4131
|
+
return ve(i, t) * 100;
|
|
4109
4132
|
}
|
|
4110
|
-
async function
|
|
4133
|
+
async function Cs(i) {
|
|
4111
4134
|
if (d())
|
|
4112
4135
|
try {
|
|
4113
4136
|
await navigator.clipboard.writeText(i);
|
|
@@ -4116,139 +4139,140 @@ async function Ss(i) {
|
|
|
4116
4139
|
}
|
|
4117
4140
|
}
|
|
4118
4141
|
export {
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4142
|
+
H as Api,
|
|
4143
|
+
As as ApiMethodItem,
|
|
4144
|
+
Zt as Cache,
|
|
4145
|
+
Ut as CacheItem,
|
|
4146
|
+
dt as CacheStatic,
|
|
4147
|
+
rt as Cookie,
|
|
4148
|
+
Kt as CookieBlock,
|
|
4126
4149
|
Y as DataStorage,
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4150
|
+
ut as Datetime,
|
|
4151
|
+
Me as DatetimeRef,
|
|
4152
|
+
Xt as DesignAbstract,
|
|
4153
|
+
De as DesignAsyncAbstract,
|
|
4154
|
+
Qt as DesignChanged,
|
|
4155
|
+
Ce as DesignComp,
|
|
4156
|
+
Lt as DesignComponents,
|
|
4157
|
+
ke as DesignConstructorAbstract,
|
|
4158
|
+
Rt as EventItem,
|
|
4159
|
+
Ae as EventRef,
|
|
4137
4160
|
r as GEO_FLAG_ICON_NAME,
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4161
|
+
p as Geo,
|
|
4162
|
+
R as GeoFlag,
|
|
4163
|
+
Ne as GeoFlagRef,
|
|
4164
|
+
I as GeoIntl,
|
|
4165
|
+
re as GeoIntlRef,
|
|
4166
|
+
yt as GeoPhone,
|
|
4167
|
+
Ct as GeoRef,
|
|
4168
|
+
Le as Global,
|
|
4169
|
+
x as Hash,
|
|
4170
|
+
Ns as Icons,
|
|
4171
|
+
Mt as ListDataRef,
|
|
4172
|
+
ft as Loading,
|
|
4173
|
+
Ie as RouterItemRef,
|
|
4174
|
+
wt as ScrollbarWidth,
|
|
4175
|
+
Be as ScrollbarWidthRef,
|
|
4153
4176
|
z as Translate,
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4177
|
+
He as anyToString,
|
|
4178
|
+
Jt as applyTemplate,
|
|
4179
|
+
he as arrFill,
|
|
4180
|
+
E as copyObject,
|
|
4181
|
+
pt as createElement,
|
|
4182
|
+
Ge as domQuerySelector,
|
|
4183
|
+
ze as domQuerySelectorAll,
|
|
4184
|
+
Ue as eventStopPropagation,
|
|
4185
|
+
A as executeFunction,
|
|
4186
|
+
Is as executePromise,
|
|
4187
|
+
Ze as executeUse,
|
|
4188
|
+
Ye as executeUseGlobalInit,
|
|
4166
4189
|
f as forEach,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4190
|
+
ge as frame,
|
|
4191
|
+
Ke as getAttributes,
|
|
4192
|
+
pe as getBind,
|
|
4193
|
+
fs as getBindRef,
|
|
4194
|
+
te as getClassName,
|
|
4195
|
+
Ve as getClipboardData,
|
|
4196
|
+
nt as getColumn,
|
|
4197
|
+
ds as getComputedAsync,
|
|
4175
4198
|
K as getElement,
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4199
|
+
G as getElementId,
|
|
4200
|
+
Vt as getElementItem,
|
|
4201
|
+
Bs as getElementOrWindow,
|
|
4202
|
+
kt as getExp,
|
|
4203
|
+
ee as getIndexForRender,
|
|
4204
|
+
fe as getItemByPath,
|
|
4205
|
+
qe as getKey,
|
|
4206
|
+
Nt as getLengthOfAllArray,
|
|
4207
|
+
_e as getMaxLengthAllArray,
|
|
4208
|
+
Je as getMinLengthAllArray,
|
|
4209
|
+
Qe as getMouseClient,
|
|
4210
|
+
de as getMouseClientX,
|
|
4211
|
+
me as getMouseClientY,
|
|
4212
|
+
Xe as getObjectByKeys,
|
|
4213
|
+
ts as getObjectNoUndefined,
|
|
4214
|
+
es as getObjectOrNone,
|
|
4215
|
+
ss as getRandomText,
|
|
4193
4216
|
g as getRef,
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4217
|
+
Et as getRequestString,
|
|
4218
|
+
is as getStepPercent,
|
|
4219
|
+
rs as getStepValue,
|
|
4220
|
+
ns as goScroll,
|
|
4221
|
+
as as inArray,
|
|
4222
|
+
os as initScrollbarOffset,
|
|
4223
|
+
cs as intersectKey,
|
|
4224
|
+
ht as isArray,
|
|
4225
|
+
us as isDifferent,
|
|
4203
4226
|
d as isDomRuntime,
|
|
4204
4227
|
O as isFilled,
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4228
|
+
hs as isFloat,
|
|
4229
|
+
Ts as isFunction,
|
|
4230
|
+
Fs as isInDom,
|
|
4231
|
+
ls as isIntegerBetween,
|
|
4232
|
+
Ft as isNull,
|
|
4233
|
+
Es as isNumber,
|
|
4211
4234
|
m as isObject,
|
|
4212
|
-
|
|
4235
|
+
L as isObjectNotArray,
|
|
4213
4236
|
F as isSelected,
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4237
|
+
gs as isSelectedByList,
|
|
4238
|
+
ot as isString,
|
|
4239
|
+
Rs as isWindow,
|
|
4240
|
+
W as random,
|
|
4241
|
+
se as render,
|
|
4242
|
+
B as replaceRecursive,
|
|
4243
|
+
ps as replaceTemplate,
|
|
4244
|
+
$s as secondToTime,
|
|
4245
|
+
Fe as setApiRefGlobalConditions,
|
|
4246
|
+
qt as setElementItem,
|
|
4247
|
+
ms as setRef,
|
|
4248
|
+
vs as setValues,
|
|
4249
|
+
bs as splice,
|
|
4250
|
+
ye as strFill,
|
|
4251
|
+
je as t,
|
|
4252
|
+
T as toArray,
|
|
4253
|
+
at as toBind,
|
|
4254
|
+
ie as toBinds,
|
|
4255
|
+
Dt as toCamelCase,
|
|
4256
|
+
Ss as toCamelCaseFirst,
|
|
4257
|
+
ys as toComputed,
|
|
4235
4258
|
S as toDate,
|
|
4236
|
-
|
|
4259
|
+
ws as toKebabCase,
|
|
4237
4260
|
b as toNumber,
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4261
|
+
Ls as toNumberByMax,
|
|
4262
|
+
ve as toPercent,
|
|
4263
|
+
Ds as toPercentBy100,
|
|
4241
4264
|
w as toRefItem,
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4265
|
+
St as transformation,
|
|
4266
|
+
$e as uniqueArray,
|
|
4267
|
+
Te as useApiRef,
|
|
4268
|
+
oe as useBroadcastValueRef,
|
|
4269
|
+
Ee as useCookieRef,
|
|
4270
|
+
Re as useGeoIntlRef,
|
|
4271
|
+
xe as useHashRef,
|
|
4272
|
+
Oe as useLazyRef,
|
|
4273
|
+
We as useLoadingRef,
|
|
4274
|
+
Pe as useSessionRef,
|
|
4275
|
+
ae as useStorageRef,
|
|
4276
|
+
ue as useTranslateRef,
|
|
4277
|
+
Cs as writeClipboardData
|
|
4254
4278
|
};
|