@dxtmisha/functional 1.6.5 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/library.d.ts +1759 -45
  2. package/dist/library.js +191 -154
  3. package/package.json +2 -2
  4. package/dist/classes/design/DesignAbstract.d.ts +0 -61
  5. package/dist/classes/design/DesignAsyncAbstract.d.ts +0 -28
  6. package/dist/classes/design/DesignChanged.d.ts +0 -42
  7. package/dist/classes/design/DesignComp.d.ts +0 -4
  8. package/dist/classes/design/DesignComponents.d.ts +0 -81
  9. package/dist/classes/design/DesignConstructorAbstract.d.ts +0 -150
  10. package/dist/classes/ref/DatetimeRef.d.ts +0 -117
  11. package/dist/classes/ref/EventRef.d.ts +0 -22
  12. package/dist/classes/ref/GeoFlagRef.d.ts +0 -51
  13. package/dist/classes/ref/GeoIntlRef.d.ts +0 -172
  14. package/dist/classes/ref/GeoRef.d.ts +0 -52
  15. package/dist/classes/ref/ListDataRef.d.ts +0 -255
  16. package/dist/classes/ref/RouterItemRef.d.ts +0 -36
  17. package/dist/classes/ref/ScrollbarWidthRef.d.ts +0 -24
  18. package/dist/composables/ref/useApiRef.d.ts +0 -25
  19. package/dist/composables/ref/useBroadcastValueRef.d.ts +0 -11
  20. package/dist/composables/ref/useCookieRef.d.ts +0 -11
  21. package/dist/composables/ref/useGeoIntlRef.d.ts +0 -7
  22. package/dist/composables/ref/useHashRef.d.ts +0 -9
  23. package/dist/composables/ref/useLazyItemByMarginRef.d.ts +0 -22
  24. package/dist/composables/ref/useLazyRef.d.ts +0 -42
  25. package/dist/composables/ref/useLoadingRef.d.ts +0 -7
  26. package/dist/composables/ref/useMeta.d.ts +0 -34
  27. package/dist/composables/ref/useSessionRef.d.ts +0 -9
  28. package/dist/composables/ref/useStorageRef.d.ts +0 -10
  29. package/dist/composables/ref/useTranslateRef.d.ts +0 -16
  30. package/dist/flags.d.ts +0 -1
  31. package/dist/flags.js +0 -8
  32. package/dist/functions/basic.d.ts +0 -1
  33. package/dist/functions/computedAsync.d.ts +0 -11
  34. package/dist/functions/computedByLanguage.d.ts +0 -15
  35. package/dist/functions/executeUse.d.ts +0 -13
  36. package/dist/functions/ref/getBindRef.d.ts +0 -13
  37. package/dist/functions/ref/getComputedAsync.d.ts +0 -9
  38. package/dist/functions/ref/getRef.d.ts +0 -8
  39. package/dist/functions/ref/render.d.ts +0 -13
  40. package/dist/functions/ref/setRef.d.ts +0 -9
  41. package/dist/functions/ref/toComputed.d.ts +0 -8
  42. package/dist/functions/ref/toRefItem.d.ts +0 -9
  43. package/dist/functions/render/getBind.d.ts +0 -14
  44. package/dist/functions/render/getClassName.d.ts +0 -8
  45. package/dist/functions/render/getIndexForRender.d.ts +0 -10
  46. package/dist/functions/toBind.d.ts +0 -10
  47. package/dist/functions/toBinds.d.ts +0 -9
  48. package/dist/types/constructorTypes.d.ts +0 -116
  49. package/dist/types/listTypes.d.ts +0 -63
  50. package/dist/types/refTypes.d.ts +0 -36
package/dist/library.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var et = Object.defineProperty;
2
2
  var it = (s, t, e) => t in s ? et(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
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";
4
+ import { isArray as st, isObjectNotArray as D, forEach as k, toArray as R, isObject as z, toCamelCase as nt, toDate as W, Datetime as rt, Geo as C, EventItem as at, GeoFlag as ut, GeoIntl as lt, isSelected as x, getExp as ht, getColumn as K, isString as ct, ScrollbarWidth as ot, Api as dt, executeFunction as Y, BroadcastMessage as gt, Cookie as ft, Hash as A, isDomRuntime as G, getElementId as L, Loading as P, random as mt, Meta as vt, DataStorage as J, Translate as U, executePromise as yt } from "@dxtmisha/functional-basic";
5
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 {
6
+ import { isRef as N, h as pt, computed as a, toRefs as bt, useAttrs as It, useSlots as St, ref as f, watch as g, triggerRef as Lt, shallowRef as I, onUnmounted as T, inject as Ct, provide as kt, watchEffect as Q } from "vue";
7
+ class wt {
8
8
  /**
9
9
  * Constructor
10
10
  * @param props base data/ базовые данные
@@ -54,7 +54,7 @@ class kt {
54
54
  return ((e = this.cache) == null ? void 0 : e[t]) !== ((i = this.props) == null ? void 0 : i[t]);
55
55
  }
56
56
  }
57
- class wt {
57
+ class Dt {
58
58
  /**
59
59
  * Constructor
60
60
  * @param props base data/ базовые данные
@@ -65,7 +65,7 @@ class wt {
65
65
  constructor(t, e, i) {
66
66
  l(this, "event", {});
67
67
  l(this, "changed");
68
- this.props = t, this.callback = e, this.changed = new kt(t, i);
68
+ this.props = t, this.callback = e, this.changed = new wt(t, i);
69
69
  }
70
70
  /**
71
71
  * Calls the callback function.
@@ -113,7 +113,7 @@ class wt {
113
113
  this.callback && this.callback(this.event);
114
114
  }
115
115
  }
116
- class Pt extends wt {
116
+ class Ut extends Dt {
117
117
  /**
118
118
  * Calls the callback function.
119
119
  *
@@ -136,31 +136,31 @@ class Pt extends wt {
136
136
  function d(s) {
137
137
  return N(s) ? s.value : s;
138
138
  }
139
- function Dt(s) {
139
+ function xt(s) {
140
140
  return s && "class" in s && typeof s.class == "string" ? s.class : void 0;
141
141
  }
142
- function xt(s, t, e) {
143
- const i = Dt(t);
142
+ function Mt(s, t, e) {
143
+ const i = xt(t);
144
144
  return e && i ? `${e}.${i}` : e || i || s;
145
145
  }
146
- function Mt(s, t, e, i) {
146
+ function Nt(s, t, e, i) {
147
147
  let n = t;
148
148
  return (!t || "key" in t) && (n = {
149
- key: xt(s, t, i),
149
+ key: Mt(s, t, i),
150
150
  ...t
151
- }), yt(s, n, e);
151
+ }), pt(s, n, e);
152
152
  }
153
- function T(s, t) {
153
+ function O(s, t) {
154
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
155
  ...s,
156
156
  ...t
157
157
  };
158
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;
159
159
  }
160
- function Nt(...s) {
160
+ function Bt(...s) {
161
161
  let t = {};
162
162
  return s.forEach((e) => {
163
- e && (t = T(t, e));
163
+ e && (t = O(t, e));
164
164
  }), t;
165
165
  }
166
166
  class X {
@@ -205,7 +205,7 @@ class X {
205
205
  t in this.caching || (this.caching[t] = a(() => this.computeModification(t)));
206
206
  const i = this.caching[t];
207
207
  if (i)
208
- return e ? Nt(i.value, e) : i.value;
208
+ return e ? Bt(i.value, e) : i.value;
209
209
  }
210
210
  return e;
211
211
  }
@@ -239,7 +239,7 @@ class X {
239
239
  renderOne(t, e, i, n) {
240
240
  if (this.is(t)) {
241
241
  const r = n != null ? n : t;
242
- return Mt(
242
+ return Nt(
243
243
  this.get(t),
244
244
  this.getModification(r, e),
245
245
  i,
@@ -270,7 +270,7 @@ class X {
270
270
  computeModification(t) {
271
271
  var i;
272
272
  const e = d((i = this.modification) == null ? void 0 : i[t]);
273
- if (e && M(e)) {
273
+ if (e && D(e)) {
274
274
  const n = {};
275
275
  return k(e, (r, u) => {
276
276
  n[u] = d(r);
@@ -279,9 +279,9 @@ class X {
279
279
  return {};
280
280
  }
281
281
  }
282
- class Ut extends X {
282
+ class qt extends X {
283
283
  }
284
- class qt {
284
+ class Yt {
285
285
  /**
286
286
  * Constructor
287
287
  * @param name class name/ название класса
@@ -301,7 +301,7 @@ class qt {
301
301
  l(this, "attrs");
302
302
  l(this, "slots");
303
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();
304
+ this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ? bt(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 = It(), this.slots = St();
305
305
  }
306
306
  init() {
307
307
  return this.classesSub = a(() => this.initClasses()), this.stylesSub = a(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
@@ -399,7 +399,7 @@ class qt {
399
399
  * @param classes list of classes for transformation/ список классов для преобразования
400
400
  */
401
401
  toClass(t) {
402
- return M(t) ? t : Array.isArray(t) ? { [t.filter((i) => typeof i == "string" && i.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
402
+ return D(t) ? t : Array.isArray(t) ? { [t.filter((i) => typeof i == "string" && i.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
403
403
  }
404
404
  /**
405
405
  * Converts the class name to standard for the current component.
@@ -462,7 +462,7 @@ class qt {
462
462
  function b(s) {
463
463
  return N(s) ? s : f(s);
464
464
  }
465
- class Yt {
465
+ class Gt {
466
466
  /**
467
467
  * Constructor
468
468
  * @param date date for processing. дата для обработки
@@ -487,7 +487,7 @@ class Yt {
487
487
  this.code.value
488
488
  ), g(this.item, (n) => {
489
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));
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(() => Lt(this.date));
491
491
  }
492
492
  /**
493
493
  * Returns the basic data for the date.
@@ -607,7 +607,7 @@ class Yt {
607
607
  return a(() => this.date.value && this.datetime.standard(t));
608
608
  }
609
609
  }
610
- class Gt extends at {
610
+ class Jt extends at {
611
611
  /**
612
612
  * Classes Constructor
613
613
  * @param elementSelector element/ элемент
@@ -621,17 +621,17 @@ class Gt extends at {
621
621
  * значение, связанное с событием
622
622
  */
623
623
  constructor(t, e, i = ["click"], n, r, u) {
624
- const h = b(t), o = b(e);
624
+ const h = b(t), c = b(e);
625
625
  super(
626
626
  h.value,
627
627
  i,
628
628
  n,
629
629
  r,
630
630
  u
631
- ), o.value && this.setElementControl(o.value), g(h, (c) => this.setElement(c)), g(o, (c) => this.setElementControl(c));
631
+ ), c.value && this.setElementControl(c.value), g(h, (o) => this.setElement(o)), g(c, (o) => this.setElementControl(o));
632
632
  }
633
633
  }
634
- class Jt {
634
+ class Qt {
635
635
  /**
636
636
  * Constructor
637
637
  * @param code country and language code/ код страны и языка
@@ -743,7 +743,7 @@ const v = class v {
743
743
  };
744
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
745
  let w = v;
746
- class Bt {
746
+ class Rt {
747
747
  /**
748
748
  * Constructor
749
749
  * @param code country code, full form language-country or one of them/
@@ -978,7 +978,7 @@ class Z {
978
978
  * @param max Maximum number of selections / максимальное количество выделений
979
979
  * @param parent Parent identifier / идентификатор родителя
980
980
  */
981
- constructor(t, e, i, n, r, u, h, o, c, m = 0, y = 9999999, S) {
981
+ constructor(t, e, i, n, r, u, h, c, o, m = 0, y = 9999999, S) {
982
982
  l(this, "subList", {});
983
983
  /**
984
984
  * Returns a list for forming a list.
@@ -1025,7 +1025,7 @@ class Z {
1025
1025
  this.data.value,
1026
1026
  (n) => {
1027
1027
  var u, h;
1028
- const r = D(n.index, i);
1028
+ const r = x(n.index, i);
1029
1029
  return {
1030
1030
  ...n,
1031
1031
  focus: t === n.index,
@@ -1095,7 +1095,7 @@ class Z {
1095
1095
  */
1096
1096
  l(this, "isSelected", a(() => {
1097
1097
  const t = this.getSelected();
1098
- return !!t && this.mapItems.value.findIndex((e) => D(e.index, t)) !== -1;
1098
+ return !!t && this.mapItems.value.findIndex((e) => x(e.index, t)) !== -1;
1099
1099
  }));
1100
1100
  /** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
1101
1101
  l(this, "isSelectedMin", a(() => {
@@ -1113,7 +1113,7 @@ class Z {
1113
1113
  */
1114
1114
  l(this, "selectedList", a(() => {
1115
1115
  const t = this.getSelected();
1116
- return t && this.isSelected.value ? this.mapItems.value.filter((e) => D(e.index, t)) : [];
1116
+ return t && this.isSelected.value ? this.mapItems.value.filter((e) => x(e.index, t)) : [];
1117
1117
  }));
1118
1118
  /**
1119
1119
  * Returns a list of selected items in the current group/
@@ -1121,7 +1121,7 @@ class Z {
1121
1121
  */
1122
1122
  l(this, "selectedListInGroup", a(() => {
1123
1123
  const t = this.getSelected();
1124
- return t && this.isSelected.value ? this.data.value.filter((e) => D(e.index, t)) : [];
1124
+ return t && this.isSelected.value ? this.data.value.filter((e) => x(e.index, t)) : [];
1125
1125
  }));
1126
1126
  /**
1127
1127
  * Returns a list of selected items on the map.
@@ -1135,7 +1135,7 @@ class Z {
1135
1135
  * Возвращает список значений выделенных элементов на карте.
1136
1136
  */
1137
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, () => {
1138
+ this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = u, this.keyValue = h, this.keyLabel = c, this.lite = o, this.min = m, this.max = y, this.parent = S, N(t) && g(t, () => {
1139
1139
  this.subList = {};
1140
1140
  });
1141
1141
  }
@@ -1241,15 +1241,15 @@ class Z {
1241
1241
  * @param step number of steps/ количество шагов
1242
1242
  */
1243
1243
  getSelectedByStep(t) {
1244
- var u, h, o, c, m;
1244
+ var u, h, c, o, m;
1245
1245
  const e = (u = this.selectedList.value) == null ? void 0 : u[0], i = this.mapItems.value;
1246
1246
  if (!e)
1247
1247
  return (h = i[0]) == null ? void 0 : h.index;
1248
1248
  const r = i.findIndex((y) => y.index === e.index) + t;
1249
1249
  if (r in i)
1250
- return (o = i[r]) == null ? void 0 : o.index;
1250
+ return (c = i[r]) == null ? void 0 : c.index;
1251
1251
  if (t > 0)
1252
- return (c = i[0]) == null ? void 0 : c.index;
1252
+ return (o = i[0]) == null ? void 0 : o.index;
1253
1253
  if (t < 0)
1254
1254
  return (m = i[i.length - 1]) == null ? void 0 : m.index;
1255
1255
  }
@@ -1356,11 +1356,11 @@ class Z {
1356
1356
  * @param item selected element/ выбранный элемент
1357
1357
  */
1358
1358
  initItem(t, e) {
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(
1359
+ var i, n, r, u, h, c;
1360
+ if (D(e)) {
1361
+ const o = 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 : o, y = this.getIndex(
1362
1362
  e == null ? void 0 : e.index,
1363
- c,
1363
+ o,
1364
1364
  t,
1365
1365
  m
1366
1366
  );
@@ -1368,9 +1368,9 @@ class Z {
1368
1368
  ...e,
1369
1369
  parent: this.parent,
1370
1370
  index: y,
1371
- type: (o = e == null ? void 0 : e.type) != null ? o : "item",
1371
+ type: (c = e == null ? void 0 : e.type) != null ? c : "item",
1372
1372
  label: m,
1373
- value: c
1373
+ value: o
1374
1374
  };
1375
1375
  }
1376
1376
  return {
@@ -1382,7 +1382,7 @@ class Z {
1382
1382
  };
1383
1383
  }
1384
1384
  }
1385
- class Rt {
1385
+ class At {
1386
1386
  /**
1387
1387
  * Get router instance.
1388
1388
  *
@@ -1391,6 +1391,34 @@ class Rt {
1391
1391
  static get() {
1392
1392
  return this.router;
1393
1393
  }
1394
+ /**
1395
+ * Returns the link by name.
1396
+ *
1397
+ * Возвращает ссылку по имени.
1398
+ * @param name route name/ имя маршрута
1399
+ * @param params route parameters/ параметры маршрута
1400
+ * @param query route query/ запрос маршрута
1401
+ */
1402
+ static getLink(t, e, i) {
1403
+ var n;
1404
+ return (n = this.router) == null ? void 0 : n.resolve({ name: t, params: e, query: i }).href;
1405
+ }
1406
+ /**
1407
+ * Returns the link property by name.
1408
+ *
1409
+ * Возвращает свойство ссылки по имени.
1410
+ * @param name route name/ имя маршрута
1411
+ * @param params route parameters/ параметры маршрута
1412
+ * @param query route query/ запрос маршрута
1413
+ */
1414
+ static getHref(t, e, i) {
1415
+ if (t) {
1416
+ const n = this.getLink(t, e, i);
1417
+ if (n)
1418
+ return { href: n };
1419
+ }
1420
+ return {};
1421
+ }
1394
1422
  /**
1395
1423
  * Site path change.
1396
1424
  *
@@ -1418,9 +1446,18 @@ class Rt {
1418
1446
  static setOneTime(t) {
1419
1447
  this.router || this.set(t);
1420
1448
  }
1449
+ /**
1450
+ * Converts the raw route location to href properties.
1451
+ *
1452
+ * Преобразует необработанное местоположение маршрута в свойства href.
1453
+ * @param to raw route location/ необработанное местоположение маршрута
1454
+ */
1455
+ static rawToHref(t) {
1456
+ return D(t) && "name" in t && ct(t == null ? void 0 : t.name) ? this.getHref(t.name) : {};
1457
+ }
1421
1458
  }
1422
- l(Rt, "router");
1423
- class Qt {
1459
+ l(At, "router");
1460
+ class Xt {
1424
1461
  /**
1425
1462
  * Constructor
1426
1463
  */
@@ -1442,33 +1479,33 @@ class Qt {
1442
1479
  });
1443
1480
  }
1444
1481
  }
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);
1482
+ const Ht = (s) => typeof s == "string" ? { method: s } : s || {};
1483
+ let M;
1484
+ function Zt(s, t, e = !0, i, n, r) {
1485
+ const u = f(), h = b(Ht(t)), c = f(!1), o = f(!1);
1449
1486
  let m = !0, y = 0;
1450
1487
  const S = async () => {
1451
1488
  if (m)
1452
1489
  return;
1453
1490
  const p = d(s);
1454
1491
  if ((!i || i.value) && p) {
1455
- o.value = !0, c.value = !0;
1492
+ c.value = !0, o.value = !0;
1456
1493
  let B = {};
1457
- const V = await ct.request({
1494
+ const V = await dt.request({
1458
1495
  path: p,
1459
1496
  ...h.value
1460
1497
  });
1461
- V && (B = V), n ? u.value = n(B) : u.value = B, o.value = !1;
1498
+ V && (B = V), n ? u.value = n(B) : u.value = B, c.value = !1;
1462
1499
  } else u.value !== void 0 && (u.value = void 0);
1463
1500
  }, tt = () => {
1464
1501
  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();
1502
+ e && p.push(h), N(s) && p.push(s), i && p.push(i), M && p.push(M), p.length > 0 && g(p, async () => {
1503
+ c.value || await S();
1467
1504
  });
1468
1505
  };
1469
1506
  return {
1470
1507
  get data() {
1471
- return m && (m = !1, S().then()), tt(), r && (y++, O(() => {
1508
+ return m && (m = !1, S().then()), tt(), r && (y++, T(() => {
1472
1509
  y--, y < 1 && (console.warn("useApiRef: unmounted"), u.value = void 0, m = !0, y = 0);
1473
1510
  })), u;
1474
1511
  },
@@ -1476,46 +1513,46 @@ function Xt(s, t, e = !0, i, n, r) {
1476
1513
  return a(() => u.value === void 0);
1477
1514
  },
1478
1515
  get loading() {
1479
- return a(() => o.value);
1516
+ return a(() => c.value);
1480
1517
  },
1481
1518
  get reading() {
1482
- return a(() => c.value);
1519
+ return a(() => o.value);
1483
1520
  },
1484
1521
  reset: S
1485
1522
  };
1486
1523
  }
1487
- const Zt = (s) => {
1488
- x || (x = s);
1524
+ const _t = (s) => {
1525
+ M || (M = s);
1489
1526
  };
1490
1527
  function Et(s, t) {
1491
1528
  const e = `broadcast--${s}`;
1492
- if (e in E)
1493
- return E[e];
1494
- const i = f(Y(t)), n = new dt(
1529
+ if (e in H)
1530
+ return H[e];
1531
+ const i = f(Y(t)), n = new gt(
1495
1532
  e,
1496
1533
  (r) => {
1497
1534
  i.value !== r.data.message && (i.value = r.data.message);
1498
1535
  }
1499
1536
  );
1500
- return g(i, (r) => n.post({ message: r })), E[e] = i, i;
1537
+ return g(i, (r) => n.post({ message: r })), H[e] = i, i;
1501
1538
  }
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(
1539
+ const H = {};
1540
+ function te(s, t, e) {
1541
+ if (s in E)
1542
+ return E[s];
1543
+ const i = new ft(s), n = Et(
1507
1544
  `__cookie:${s}`,
1508
1545
  i.get(t, e)
1509
1546
  );
1510
1547
  return g(n, (r) => {
1511
1548
  i.set(r, e);
1512
- }), H[s] = n, n;
1549
+ }), E[s] = n, n;
1513
1550
  }
1514
- const H = {};
1515
- function te() {
1516
- return new Bt();
1551
+ const E = {};
1552
+ function ee() {
1553
+ return new Rt();
1517
1554
  }
1518
- function ee(s, t) {
1555
+ function ie(s, t) {
1519
1556
  if (s in $)
1520
1557
  return $[s];
1521
1558
  const e = I(A.get(s, t));
@@ -1523,7 +1560,7 @@ function ee(s, t) {
1523
1560
  e.value = i;
1524
1561
  }), $[s] = e, e;
1525
1562
  }
1526
- const $ = {}, Ht = (s = {
1563
+ const $ = {}, $t = (s = {
1527
1564
  rootMargin: "128px 0px"
1528
1565
  }) => {
1529
1566
  const t = {}, e = G() && "IntersectionObserver" in window ? new IntersectionObserver(
@@ -1566,10 +1603,10 @@ const $ = {}, Ht = (s = {
1566
1603
  const r = I(!e);
1567
1604
  if (e) {
1568
1605
  let u;
1569
- u = g(n, (h, o) => {
1570
- if (o && i(o), n.value) {
1571
- const c = L(n.value);
1572
- t[c] = {
1606
+ u = g(n, (h, c) => {
1607
+ if (c && i(c), n.value) {
1608
+ const o = L(n.value);
1609
+ t[o] = {
1573
1610
  status: r,
1574
1611
  ratio: I(0),
1575
1612
  entry: I(void 0),
@@ -1594,14 +1631,14 @@ const $ = {}, Ht = (s = {
1594
1631
  */
1595
1632
  disconnectLazy: () => e == null ? void 0 : e.disconnect()
1596
1633
  };
1597
- }, q = [], $t = (s) => {
1634
+ }, q = [], Ft = (s) => {
1598
1635
  const t = q.find((i) => i.rootMargin === s);
1599
1636
  if (t)
1600
1637
  return t.item;
1601
- const e = Ht({ rootMargin: s });
1638
+ const e = $t({ rootMargin: s });
1602
1639
  return q.push({ rootMargin: s, item: e }), e;
1603
- }, ie = (s, t) => {
1604
- const e = $t(t);
1640
+ }, se = (s, t) => {
1641
+ const e = Ft(t);
1605
1642
  return {
1606
1643
  /** Lazy item status/ Статус ленивого элемента */
1607
1644
  lazyItemStatus: e.addLazyItem(s),
@@ -1615,46 +1652,46 @@ const $ = {}, Ht = (s = {
1615
1652
  }
1616
1653
  };
1617
1654
  };
1618
- function se() {
1655
+ function ne() {
1619
1656
  const s = I(P.is());
1620
1657
  return P.registrationEvent(({ detail: t }) => {
1621
1658
  s.value = t.loading;
1622
1659
  }), s;
1623
1660
  }
1624
- const _ = [], Ft = ft(1e5, 999999);
1625
- function jt(s, t = !0, e = !1, i = !0) {
1661
+ const _ = [], jt = mt(1e5, 999999);
1662
+ function zt(s, t = !0, e = !1, i = !0) {
1626
1663
  let n;
1627
- const r = `__execute_use${Ft}::${L()}`, u = (o) => {
1628
- const c = Object.freeze(s(...o));
1664
+ const r = `__execute_use${jt}::${L()}`, u = (c) => {
1665
+ const o = Object.freeze(s(...c));
1629
1666
  return Object.freeze({
1630
- ...c,
1667
+ ...o,
1631
1668
  init() {
1632
- return c;
1669
+ return o;
1633
1670
  }
1634
1671
  });
1635
- }, h = (...o) => {
1672
+ }, h = (...c) => {
1636
1673
  if (!e && i) {
1637
- const c = Lt(r, void 0);
1638
- if (c)
1639
- return c;
1674
+ const o = Ct(r, void 0);
1675
+ if (o)
1676
+ return o;
1640
1677
  {
1641
- let m = u(o);
1642
- return Ct(r, m), t && O(() => {
1678
+ let m = u(c);
1679
+ return kt(r, m), t && T(() => {
1643
1680
  m = void 0;
1644
1681
  }), m;
1645
1682
  }
1646
- } else n || (n = u(o), t && O(() => {
1683
+ } else n || (n = u(c), t && T(() => {
1647
1684
  n = void 0;
1648
1685
  }));
1649
1686
  return n;
1650
1687
  };
1651
1688
  return e && _.push(h), h;
1652
1689
  }
1653
- function ne() {
1690
+ function re() {
1654
1691
  _.forEach((s) => s());
1655
1692
  }
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();
1693
+ const Tt = zt(() => {
1694
+ const s = new vt(), 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()), c = f(s.getSiteName()), o = () => s.html();
1658
1695
  return g(t, () => {
1659
1696
  s.setTitle(t.value);
1660
1697
  }), g(e, () => {
@@ -1669,8 +1706,8 @@ const zt = jt(() => {
1669
1706
  s.setRobots(u.value);
1670
1707
  }), g(h, () => {
1671
1708
  s.setAuthor(h.value);
1672
- }), g(o, () => {
1673
- s.setSiteName(o.value);
1709
+ }), g(c, () => {
1710
+ s.setSiteName(c.value);
1674
1711
  }), {
1675
1712
  meta: s,
1676
1713
  title: t,
@@ -1680,18 +1717,18 @@ const zt = jt(() => {
1680
1717
  image: n,
1681
1718
  canonical: r,
1682
1719
  robots: u,
1683
- siteName: o,
1684
- getHtmlMeta: c
1720
+ siteName: c,
1721
+ getHtmlMeta: o
1685
1722
  };
1686
- }, !1, !0), re = () => zt();
1687
- function ae(s, t) {
1723
+ }, !1, !0), ae = () => Tt();
1724
+ function ue(s, t) {
1688
1725
  if (s in F)
1689
1726
  return F[s];
1690
1727
  const e = new J(s, !0), i = f(e.get(t));
1691
1728
  return g(i, (n) => e.set(n)), F[s] = i, i;
1692
1729
  }
1693
1730
  const F = {};
1694
- function ue(s, t, e) {
1731
+ function le(s, t, e) {
1695
1732
  if (s in j)
1696
1733
  return j[s];
1697
1734
  const i = new J(s), n = f(i.get(t, e));
@@ -1712,11 +1749,11 @@ function Ot(s) {
1712
1749
  }
1713
1750
  return t;
1714
1751
  }
1715
- const le = (s) => Ot(s);
1716
- function he(s, t) {
1752
+ const he = (s) => Ot(s);
1753
+ function ce(s, t) {
1717
1754
  const e = f();
1718
1755
  return Q(async () => {
1719
- e.value = await vt(s);
1756
+ e.value = await yt(s);
1720
1757
  }), a(() => e.value, t);
1721
1758
  }
1722
1759
  function oe(s, t = () => {
@@ -1733,14 +1770,14 @@ function oe(s, t = () => {
1733
1770
  i
1734
1771
  );
1735
1772
  }
1736
- function Tt(s, t = {}, e = "value", i = !1) {
1773
+ function Vt(s, t = {}, e = "value", i = !1) {
1737
1774
  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 };
1775
+ return s ? s && D(s) && (r in s || i) ? O(u, s) : O(u, { [r]: s }) : n ? {} : { ...u };
1739
1776
  }
1740
- function ce(s, t = {}, e = "value") {
1741
- return a(() => Tt(d(s), d(t), e));
1777
+ function de(s, t = {}, e = "value") {
1778
+ return a(() => Vt(d(s), d(t), e));
1742
1779
  }
1743
- const de = (s, t) => {
1780
+ const ge = (s, t) => {
1744
1781
  const e = f();
1745
1782
  let i = !0;
1746
1783
  const n = () => {
@@ -1751,56 +1788,56 @@ const de = (s, t) => {
1751
1788
  };
1752
1789
  return a(() => (n(), e.value));
1753
1790
  };
1754
- function ge(s, t) {
1791
+ function fe(s, t) {
1755
1792
  s.value !== t && (s.value = t);
1756
1793
  }
1757
- function fe(s) {
1794
+ function me(s) {
1758
1795
  let t;
1759
1796
  return a(() => (t || (t = s()), t.value));
1760
1797
  }
1761
1798
  export {
1762
- Yt as DatetimeRef,
1763
- wt as DesignAbstract,
1764
- Pt as DesignAsyncAbstract,
1765
- kt as DesignChanged,
1766
- Ut as DesignComp,
1799
+ Gt as DatetimeRef,
1800
+ Dt as DesignAbstract,
1801
+ Ut as DesignAsyncAbstract,
1802
+ wt as DesignChanged,
1803
+ qt as DesignComp,
1767
1804
  X as DesignComponents,
1768
- qt as DesignConstructorAbstract,
1769
- Gt as EventRef,
1770
- Jt as GeoFlagRef,
1771
- Bt as GeoIntlRef,
1805
+ Yt as DesignConstructorAbstract,
1806
+ Jt as EventRef,
1807
+ Qt as GeoFlagRef,
1808
+ Rt as GeoIntlRef,
1772
1809
  w as GeoRef,
1773
1810
  Z as ListDataRef,
1774
- Rt as RouterItemRef,
1775
- Qt as ScrollbarWidthRef,
1776
- he as computedAsync,
1811
+ At as RouterItemRef,
1812
+ Xt as ScrollbarWidthRef,
1813
+ ce as computedAsync,
1777
1814
  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,
1815
+ zt as executeUse,
1816
+ re as executeUseGlobalInit,
1817
+ Vt as getBind,
1818
+ de as getBindRef,
1819
+ xt as getClassName,
1820
+ ge as getComputedAsync,
1821
+ Mt as getIndexForRender,
1785
1822
  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,
1823
+ Nt as render,
1824
+ _t as setApiRefGlobalConditions,
1825
+ fe as setRef,
1826
+ he as t,
1827
+ O as toBind,
1828
+ Bt as toBinds,
1829
+ me as toComputed,
1793
1830
  b as toRefItem,
1794
- Xt as useApiRef,
1831
+ Zt as useApiRef,
1795
1832
  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,
1833
+ te as useCookieRef,
1834
+ ee as useGeoIntlRef,
1835
+ ie as useHashRef,
1836
+ se as useLazyItemByMarginRef,
1837
+ $t as useLazyRef,
1838
+ ne as useLoadingRef,
1839
+ ae as useMeta,
1840
+ ue as useSessionRef,
1841
+ le as useStorageRef,
1805
1842
  Ot as useTranslateRef
1806
1843
  };