@dxtmisha/functional-basic 0.1.1 → 0.1.4

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 (125) hide show
  1. package/dist/functions/copyObjectLite.d.ts +9 -0
  2. package/dist/library.d.ts +1 -0
  3. package/dist/library.js +405 -411
  4. package/package.json +1 -3
  5. package/src/classes/Api.ts +0 -407
  6. package/src/classes/ApiDefault.ts +0 -83
  7. package/src/classes/ApiHeaders.ts +0 -52
  8. package/src/classes/ApiPreparation.ts +0 -114
  9. package/src/classes/ApiResponse.ts +0 -293
  10. package/src/classes/ApiStatus.ts +0 -173
  11. package/src/classes/BroadcastMessage.ts +0 -73
  12. package/src/classes/Cache.ts +0 -60
  13. package/src/classes/CacheItem.ts +0 -95
  14. package/src/classes/CacheStatic.ts +0 -30
  15. package/src/classes/Cookie.ts +0 -135
  16. package/src/classes/CookieBlock.ts +0 -31
  17. package/src/classes/DataStorage.ts +0 -194
  18. package/src/classes/Datetime.ts +0 -891
  19. package/src/classes/EventItem.ts +0 -373
  20. package/src/classes/Geo.ts +0 -320
  21. package/src/classes/GeoFlag.ts +0 -386
  22. package/src/classes/GeoIntl.ts +0 -839
  23. package/src/classes/GeoPhone.ts +0 -272
  24. package/src/classes/Global.ts +0 -32
  25. package/src/classes/Hash.ts +0 -142
  26. package/src/classes/Icons.ts +0 -165
  27. package/src/classes/Loading.ts +0 -90
  28. package/src/classes/Meta.ts +0 -284
  29. package/src/classes/MetaManager.ts +0 -200
  30. package/src/classes/MetaOg.ts +0 -147
  31. package/src/classes/MetaTwitter.ts +0 -154
  32. package/src/classes/ScrollbarWidth.ts +0 -86
  33. package/src/classes/Translate.ts +0 -293
  34. package/src/classes/__tests__/Api.test.ts +0 -728
  35. package/src/classes/__tests__/ApiDefault.test.ts +0 -222
  36. package/src/classes/__tests__/ApiHeaders.test.ts +0 -447
  37. package/src/classes/__tests__/ApiPreparation.test.ts +0 -257
  38. package/src/classes/__tests__/ApiResponse.test.ts +0 -547
  39. package/src/classes/__tests__/ApiStatus.test.ts +0 -403
  40. package/src/classes/__tests__/Meta.test.ts +0 -629
  41. package/src/classes/__tests__/MetaManager.test.ts +0 -836
  42. package/src/classes/__tests__/MetaOg.test.ts +0 -677
  43. package/src/classes/__tests__/MetaTwitter.test.ts +0 -423
  44. package/src/functions/anyToString.ts +0 -36
  45. package/src/functions/applyTemplate.ts +0 -63
  46. package/src/functions/arrFill.ts +0 -10
  47. package/src/functions/copyObject.ts +0 -10
  48. package/src/functions/createElement.ts +0 -40
  49. package/src/functions/domQuerySelector.ts +0 -15
  50. package/src/functions/domQuerySelectorAll.ts +0 -15
  51. package/src/functions/encodeAttribute.ts +0 -15
  52. package/src/functions/eventStopPropagation.ts +0 -10
  53. package/src/functions/executeFunction.ts +0 -13
  54. package/src/functions/executePromise.ts +0 -19
  55. package/src/functions/forEach.ts +0 -39
  56. package/src/functions/frame.ts +0 -38
  57. package/src/functions/getAttributes.ts +0 -27
  58. package/src/functions/getClipboardData.ts +0 -13
  59. package/src/functions/getColumn.ts +0 -18
  60. package/src/functions/getElement.ts +0 -35
  61. package/src/functions/getElementId.ts +0 -39
  62. package/src/functions/getElementItem.ts +0 -27
  63. package/src/functions/getElementOrWindow.ts +0 -23
  64. package/src/functions/getExp.ts +0 -21
  65. package/src/functions/getItemByPath.ts +0 -24
  66. package/src/functions/getKey.ts +0 -9
  67. package/src/functions/getLengthOfAllArray.ts +0 -13
  68. package/src/functions/getMaxLengthAllArray.ts +0 -13
  69. package/src/functions/getMinLengthAllArray.ts +0 -13
  70. package/src/functions/getMouseClient.ts +0 -17
  71. package/src/functions/getMouseClientX.ts +0 -9
  72. package/src/functions/getMouseClientY.ts +0 -9
  73. package/src/functions/getObjectByKeys.ts +0 -24
  74. package/src/functions/getObjectNoUndefined.ts +0 -23
  75. package/src/functions/getObjectOrNone.ts +0 -11
  76. package/src/functions/getRandomText.ts +0 -29
  77. package/src/functions/getRequestString.ts +0 -21
  78. package/src/functions/getStepPercent.ts +0 -19
  79. package/src/functions/getStepValue.ts +0 -19
  80. package/src/functions/goScroll.ts +0 -40
  81. package/src/functions/inArray.ts +0 -10
  82. package/src/functions/initScrollbarOffset.ts +0 -14
  83. package/src/functions/intersectKey.ts +0 -34
  84. package/src/functions/isArray.ts +0 -9
  85. package/src/functions/isDifferent.ts +0 -27
  86. package/src/functions/isDomRuntime.ts +0 -12
  87. package/src/functions/isFilled.ts +0 -49
  88. package/src/functions/isFloat.ts +0 -16
  89. package/src/functions/isFunction.ts +0 -11
  90. package/src/functions/isInDom.ts +0 -15
  91. package/src/functions/isIntegerBetween.ts +0 -11
  92. package/src/functions/isNull.ts +0 -11
  93. package/src/functions/isNumber.ts +0 -16
  94. package/src/functions/isObject.ts +0 -9
  95. package/src/functions/isObjectNotArray.ts +0 -11
  96. package/src/functions/isSelected.ts +0 -32
  97. package/src/functions/isSelectedByList.ts +0 -19
  98. package/src/functions/isString.ts +0 -9
  99. package/src/functions/isWindow.ts +0 -11
  100. package/src/functions/random.ts +0 -10
  101. package/src/functions/replaceRecursive.ts +0 -60
  102. package/src/functions/replaceTemplate.ts +0 -22
  103. package/src/functions/secondToTime.ts +0 -20
  104. package/src/functions/setElementItem.ts +0 -56
  105. package/src/functions/setValues.ts +0 -59
  106. package/src/functions/splice.ts +0 -59
  107. package/src/functions/strFill.ts +0 -12
  108. package/src/functions/toArray.ts +0 -19
  109. package/src/functions/toCamelCase.ts +0 -16
  110. package/src/functions/toCamelCaseFirst.ts +0 -12
  111. package/src/functions/toDate.ts +0 -44
  112. package/src/functions/toKebabCase.ts +0 -25
  113. package/src/functions/toNumber.ts +0 -35
  114. package/src/functions/toNumberByMax.ts +0 -33
  115. package/src/functions/toPercent.ts +0 -10
  116. package/src/functions/toPercentBy100.ts +0 -12
  117. package/src/functions/transformation.ts +0 -59
  118. package/src/functions/uniqueArray.ts +0 -9
  119. package/src/functions/writeClipboardData.ts +0 -17
  120. package/src/library.ts +0 -116
  121. package/src/types/apiTypes.ts +0 -143
  122. package/src/types/basicTypes.ts +0 -155
  123. package/src/types/geoTypes.ts +0 -109
  124. package/src/types/metaTypes.ts +0 -764
  125. package/src/vite-env.d.ts +0 -1
package/dist/library.js CHANGED
@@ -1,7 +1,10 @@
1
- var xt = Object.defineProperty;
2
- var Rt = (i, t, e) => t in i ? xt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var c = (i, t, e) => Rt(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { geo as Pt } from "@dxtmisha/media";
1
+ var Rt = Object.defineProperty;
2
+ var Pt = (i, t, e) => t in i ? Rt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var c = (i, t, e) => Pt(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { geo as Wt } from "@dxtmisha/media";
5
+ function L(i, t) {
6
+ return t ? Object.assign({}, i, t) : Object.assign({}, i);
7
+ }
5
8
  function m(i) {
6
9
  return !!(i && typeof i == "object");
7
10
  }
@@ -14,13 +17,13 @@ function g(i, t) {
14
17
  }
15
18
  return [];
16
19
  }
17
- function Lt(i, t = "=", e = "&") {
20
+ function kt(i, t = "=", e = "&") {
18
21
  return g(
19
22
  i,
20
23
  (s, n) => `${n}${t}${encodeURIComponent(String(s).trim())}`
21
24
  ).sort().join(e);
22
25
  }
23
- function Y(i) {
26
+ function q(i) {
24
27
  return i == null;
25
28
  }
26
29
  function D(i, t) {
@@ -37,7 +40,7 @@ function D(i, t) {
37
40
  case "symbol":
38
41
  return !0;
39
42
  case "object":
40
- return Array.isArray(i) ? i.length > 0 : Object.values(i).some((e) => !Y(e));
43
+ return Array.isArray(i) ? i.length > 0 : Object.values(i).some((e) => !q(e));
41
44
  case "string":
42
45
  return !["", "undefined", "null", "0", "false", "[]"].includes(i);
43
46
  case "undefined":
@@ -48,19 +51,19 @@ function D(i, t) {
48
51
  }
49
52
  return !1;
50
53
  }
51
- function k(i) {
54
+ function C(i) {
52
55
  return m(i) && !Array.isArray(i);
53
56
  }
54
- function j(i) {
57
+ function z(i) {
55
58
  return typeof i == "string";
56
59
  }
57
- function W(i) {
60
+ function j(i) {
58
61
  return JSON.parse(JSON.stringify(i));
59
62
  }
60
63
  function l() {
61
64
  return typeof window != "undefined" && !!window.document;
62
65
  }
63
- function ot(i) {
66
+ function at(i) {
64
67
  switch (typeof i) {
65
68
  case "number":
66
69
  return !0;
@@ -70,7 +73,7 @@ function ot(i) {
70
73
  return !1;
71
74
  }
72
75
  }
73
- function L(i) {
76
+ function k(i) {
74
77
  if (typeof i == "number")
75
78
  return i;
76
79
  if (!i)
@@ -78,18 +81,18 @@ function L(i) {
78
81
  let t = i.replace(/[^\d., ]+/ig, "");
79
82
  return t.match(/( [0-9]{3}[ ,.]|[0-9] [0-9])/ig) ? t = t.replace(/ /ig, "").replace(/,/ig, ".") : t.match(/,[0-9]{3}[,.]/ig) ? t = t.replace(/,/ig, "") : t.match(/[.][0-9]{3}[,.]/ig) ? t = t.replace(/[.]/ig, "").replace(/,/ig, ".") : t = t.replace(/,/ig, "."), parseFloat(t);
80
83
  }
81
- function et(i, t) {
82
- return Y(i) ? !1 : Array.isArray(t) ? t.includes(i) : ot(i) && ot(t) ? L(i) === L(t) : i === t;
84
+ function it(i, t) {
85
+ return q(i) ? !1 : Array.isArray(t) ? t.includes(i) : at(i) && at(t) ? k(i) === k(t) : i === t;
83
86
  }
84
- function kt(i) {
87
+ function Ct(i) {
85
88
  return i instanceof Function || typeof i == "function";
86
89
  }
87
- function N(i) {
88
- return kt(i) ? i() : i;
90
+ function E(i) {
91
+ return Ct(i) ? i() : i;
89
92
  }
90
- const O = {};
91
- let at = "ui-storage";
92
- class _ {
93
+ const T = {};
94
+ let ct = "ui-storage";
95
+ class O {
93
96
  /**
94
97
  * Constructor
95
98
  * @param name value name/ название значения
@@ -100,9 +103,9 @@ class _ {
100
103
  c(this, "age");
101
104
  this.name = t, this.isSession = e;
102
105
  const s = `${e ? "session" : "storage"}#${t}`;
103
- if (s in O)
104
- return O[s];
105
- this.make(), O[s] = this;
106
+ if (s in T)
107
+ return T[s];
108
+ this.make(), T[s] = this;
106
109
  }
107
110
  /**
108
111
  * Changing the prefix in key names. Should be called at the beginning of the code.
@@ -111,7 +114,7 @@ class _ {
111
114
  * @param newPrefix new prefix/ новый префикс
112
115
  */
113
116
  static setPrefix(t) {
114
- at = t;
117
+ ct = t;
115
118
  }
116
119
  /**
117
120
  * Getting data from local storage.
@@ -134,7 +137,7 @@ class _ {
134
137
  */
135
138
  set(t) {
136
139
  var e;
137
- return this.value = N(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
140
+ return this.value = E(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
138
141
  value: this.value,
139
142
  age: this.age
140
143
  })), this.value;
@@ -163,7 +166,7 @@ class _ {
163
166
  * @param cache cache time/ время кэширования
164
167
  */
165
168
  isCache(t) {
166
- return Y(t) || this.age && this.age + t * 1e3 >= (/* @__PURE__ */ new Date()).getTime();
169
+ return q(t) || this.age && this.age + t * 1e3 >= (/* @__PURE__ */ new Date()).getTime();
167
170
  }
168
171
  /**
169
172
  * Returns an object for working with storage.
@@ -180,7 +183,7 @@ class _ {
180
183
  * Получение имени ключа в хранилище.
181
184
  */
182
185
  getIndex() {
183
- return `${at}__${this.name}`;
186
+ return `${ct}__${this.name}`;
184
187
  }
185
188
  /**
186
189
  * Getting data from storage.
@@ -207,7 +210,7 @@ class _ {
207
210
  return t ? (this.value = t.value, this.age = t.age) : (this.value = void 0, this.age = void 0), this;
208
211
  }
209
212
  }
210
- const Wt = "geo-code", p = class p {
213
+ const jt = "geo-code", p = class p {
211
214
  /**
212
215
  * Information about the current country.
213
216
  *
@@ -262,10 +265,9 @@ const Wt = "geo-code", p = class p {
262
265
  * Получение обработанных данных.
263
266
  */
264
267
  static getItem() {
265
- return {
266
- ...this.item,
268
+ return L(this.item, {
267
269
  language: this.language
268
- };
270
+ });
269
271
  }
270
272
  /**
271
273
  * Returns the full list of countries.
@@ -273,7 +275,7 @@ const Wt = "geo-code", p = class p {
273
275
  * Возвращает полный список стран.
274
276
  */
275
277
  static getList() {
276
- return Pt;
278
+ return Wt;
277
279
  }
278
280
  /**
279
281
  * Returns the data about the country by its full code.
@@ -284,7 +286,7 @@ const Wt = "geo-code", p = class p {
284
286
  */
285
287
  static getByCode(t) {
286
288
  let e;
287
- return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(W(e != null ? e : this.getList()[0]));
289
+ return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(j(e != null ? e : this.getList()[0]));
288
290
  }
289
291
  /**
290
292
  * Returns the full data by language and country.
@@ -294,7 +296,7 @@ const Wt = "geo-code", p = class p {
294
296
  */
295
297
  static getByCodeFull(t) {
296
298
  return this.getList().find(
297
- (e) => et(t, [
299
+ (e) => it(t, [
298
300
  `${e.language}-${e.country}`,
299
301
  `${e.country}-${e.language}`
300
302
  ])
@@ -424,34 +426,33 @@ const Wt = "geo-code", p = class p {
424
426
  * объект с данными об текущей стране
425
427
  */
426
428
  static toFull(t) {
427
- return {
428
- ...t,
429
+ return L(t, {
429
430
  standard: this.toStandard(t),
430
431
  firstDay: (t == null ? void 0 : t.firstDay) || "Mo"
431
- };
432
+ });
432
433
  }
433
434
  };
434
- c(p, "storage", new _(Wt)), c(p, "location"), c(p, "item"), c(p, "language"), c(p, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), p.location = p.findLocation(), p.language = p.findLanguage(p.location), p.item = p.getByCode(p.location);
435
+ c(p, "storage", new O(jt)), c(p, "location"), c(p, "item"), c(p, "language"), c(p, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), p.location = p.findLocation(), p.language = p.findLanguage(p.location), p.item = p.getByCode(p.location);
435
436
  let b = p;
436
- function Ct(i) {
437
+ function At(i) {
437
438
  return l() && i === window;
438
439
  }
439
- function C(i) {
440
+ function A(i) {
440
441
  var t;
441
442
  if (l())
442
- return Ct(i) ? document.body : j(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
443
+ return At(i) ? document.body : z(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
443
444
  }
444
- function ct(i) {
445
- return Ct(i) ? i : C(i);
445
+ function ut(i) {
446
+ return At(i) ? i : A(i);
446
447
  }
447
448
  function Ut(i) {
448
449
  var t;
449
- return !!((t = C(i)) != null && t.closest("html"));
450
+ return !!((t = A(i)) != null && t.closest("html"));
450
451
  }
451
- function z(i) {
452
+ function H(i) {
452
453
  return Array.isArray(i) ? i : [i];
453
454
  }
454
- class ut {
455
+ class ht {
455
456
  /**
456
457
  * Classes Constructor
457
458
  * @param elementSelector element/ элемент
@@ -502,7 +503,7 @@ class ut {
502
503
  */
503
504
  c(this, "activity", !1);
504
505
  c(this, "activityItems", []);
505
- this.listener = s, this.options = n, this.detail = o, this.element = ct(t), this.elementControl = C(t), this.type = z(e);
506
+ this.listener = s, this.options = n, this.detail = o, this.element = ut(t), this.elementControl = A(t), this.type = H(e);
506
507
  }
507
508
  /**
508
509
  * Checks whether event listening is currently enabled.
@@ -522,8 +523,8 @@ class ut {
522
523
  * @param elementSelector element/ элемент
523
524
  */
524
525
  setElement(t) {
525
- const e = ct(t);
526
- return this.elementControlEdit || (this.elementControl = C(t)), this.element = e, this.reset(), this;
526
+ const e = ut(t);
527
+ return this.elementControlEdit || (this.elementControl = A(t)), this.element = e, this.reset(), this;
527
528
  }
528
529
  /**
529
530
  * Modifies the object that receives the notification.
@@ -532,7 +533,7 @@ class ut {
532
533
  * @param elementSelector element/ элемент
533
534
  */
534
535
  setElementControl(t) {
535
- return this.elementControl = C(t), this.elementControlEdit = !Y(this.elementControl), this.elementControlEdit || (this.elementControl = C(this.element)), this;
536
+ return this.elementControl = A(t), this.elementControlEdit = !q(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
536
537
  }
537
538
  /**
538
539
  * Changes the type of the handled event.
@@ -541,7 +542,7 @@ class ut {
541
542
  * @param type type/ тип
542
543
  */
543
544
  setType(t) {
544
- return this.type = z(t), this.reset(), this;
545
+ return this.type = H(t), this.reset(), this;
545
546
  }
546
547
  /**
547
548
  * Modifies the object that receives the notification.
@@ -687,7 +688,7 @@ class ut {
687
688
  return !1;
688
689
  }
689
690
  }
690
- const ht = "ui-loading", Z = class Z {
691
+ const lt = "ui-loading", K = class K {
691
692
  /**
692
693
  * Check if the loader is active now.
693
694
  *
@@ -722,7 +723,7 @@ const ht = "ui-loading", Z = class Z {
722
723
  * @param element element/ элемент
723
724
  */
724
725
  static registrationEvent(t, e) {
725
- l() && new ut(window, ht, t).setElementControl(e).start();
726
+ l() && new ht(window, lt, t).setElementControl(e).start();
726
727
  }
727
728
  /**
728
729
  * Calls the event listener.
@@ -734,9 +735,9 @@ const ht = "ui-loading", Z = class Z {
734
735
  (t = this.event) == null || t.dispatch({ loading: this.is() });
735
736
  }
736
737
  };
737
- c(Z, "value", 0), c(Z, "event"), l() && (Z.event = new ut(window, ht));
738
- let F = Z;
739
- class jt {
738
+ c(K, "value", 0), c(K, "event"), l() && (K.event = new ht(window, lt));
739
+ let x = K;
740
+ class zt {
740
741
  constructor() {
741
742
  /** Default headers/ Заголовки по умолчанию */
742
743
  c(this, "headers", {});
@@ -750,10 +751,10 @@ class jt {
750
751
  */
751
752
  get(t, e = "application/json;charset=UTF-8") {
752
753
  if (t !== null) {
753
- const s = {
754
- ...this.headers,
755
- ...t || {}
756
- };
754
+ const s = L(
755
+ this.headers,
756
+ t
757
+ );
757
758
  return D(e) && (s["Content-Type"] = e), s;
758
759
  }
759
760
  }
@@ -763,11 +764,11 @@ class jt {
763
764
  * Изменяет данные заголовка по умолчанию.
764
765
  */
765
766
  set(t) {
766
- return k(t) && (this.headers = t), this;
767
+ return C(t) && (this.headers = t), this;
767
768
  }
768
769
  }
769
770
  var S = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(S || {});
770
- class zt {
771
+ class Ht {
771
772
  constructor() {
772
773
  /** Default request data/ Данные запроса по умолчанию */
773
774
  c(this, "value");
@@ -799,11 +800,8 @@ class zt {
799
800
  if (e) {
800
801
  if (t instanceof FormData)
801
802
  this.addByFormData(t, e);
802
- else if (k(t))
803
- return {
804
- ...e,
805
- ...t
806
- };
803
+ else if (C(t))
804
+ return L(e, t);
807
805
  }
808
806
  return t;
809
807
  }
@@ -827,7 +825,7 @@ class zt {
827
825
  t.has(s) || t.set(s, e[s]);
828
826
  }
829
827
  }
830
- class Ht {
828
+ class Zt {
831
829
  constructor() {
832
830
  c(this, "value");
833
831
  }
@@ -922,7 +920,7 @@ class Ht {
922
920
  * @param response response data/ данные ответа
923
921
  */
924
922
  setLastResponse(t) {
925
- return t && k(t) && "message" in t && this.setLastMessage(String(t.message)), this.set({ lastResponse: t }), this;
923
+ return t && C(t) && "message" in t && this.setLastMessage(String(t.message)), this.set({ lastResponse: t }), this;
926
924
  }
927
925
  /**
928
926
  * Sets messages from the last request.
@@ -944,15 +942,15 @@ class Ht {
944
942
  this.value || (this.value = {}), this.value[t] = e;
945
943
  }
946
944
  }
947
- async function Zt(i) {
948
- const t = N(i);
945
+ async function Kt(i) {
946
+ const t = E(i);
949
947
  return t instanceof Promise ? await t : t;
950
948
  }
951
- function V(i, t) {
949
+ function Y(i, t) {
952
950
  return Math.floor(Math.random() * (t - i + 1) + i);
953
951
  }
954
- const lt = "d-response-loading";
955
- class Kt {
952
+ const dt = "d-response-loading";
953
+ class Vt {
956
954
  /**
957
955
  * Constructor
958
956
  * @param requestDefault default request processor/ процессор запросов по умолчанию
@@ -995,7 +993,7 @@ class Kt {
995
993
  * @param response data for caching/ данные для кеширования
996
994
  */
997
995
  add(t) {
998
- return this.response.push(...z(t)), this;
996
+ return this.response.push(...H(t)), this;
999
997
  }
1000
998
  /**
1001
999
  * Sets developer mode.
@@ -1032,7 +1030,7 @@ class Kt {
1032
1030
  * @param item cached item/ кешированный элемент
1033
1031
  */
1034
1032
  isDisable(t) {
1035
- return !!N(t == null ? void 0 : t.disable);
1033
+ return !!E(t == null ? void 0 : t.disable);
1036
1034
  }
1037
1035
  /**
1038
1036
  * Checks if the path matches the cached one.
@@ -1072,7 +1070,7 @@ class Kt {
1072
1070
  */
1073
1071
  isResponse(t, e) {
1074
1072
  const s = this.requestDefault.request(t == null ? void 0 : t.request);
1075
- return e === s || s === "*any" || D(e) && D(s) && k(e) && k(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
1073
+ return e === s || s === "*any" || D(e) && D(s) && C(e) && C(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
1076
1074
  (n, [o, a]) => n && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1077
1075
  !0
1078
1076
  );
@@ -1086,12 +1084,12 @@ class Kt {
1086
1084
  */
1087
1085
  fetch(t, e) {
1088
1086
  return this.startResponseLoading(), new Promise((s) => {
1089
- Zt(
1090
- kt(t.response) ? t.response(e) : t.response
1087
+ Kt(
1088
+ Ct(t.response) ? t.response(e) : t.response
1091
1089
  ).then((n) => {
1092
- t != null && t.lag ? (F.show(), setTimeout(() => {
1093
- this.stopResponseLoading(), s(n), F.hide();
1094
- }, V(0, 2e3))) : (this.stopResponseLoading(), s(n));
1090
+ t != null && t.lag ? (x.show(), setTimeout(() => {
1091
+ this.stopResponseLoading(), s(n), x.hide();
1092
+ }, Y(0, 2e3))) : (this.stopResponseLoading(), s(n));
1095
1093
  });
1096
1094
  });
1097
1095
  }
@@ -1101,7 +1099,7 @@ class Kt {
1101
1099
  * Включить загрузку для эмуляции запроса.
1102
1100
  */
1103
1101
  startResponseLoading() {
1104
- this.loading && clearTimeout(this.loading), l() && document.body.classList.add(lt);
1102
+ this.loading && clearTimeout(this.loading), l() && document.body.classList.add(dt);
1105
1103
  }
1106
1104
  /**
1107
1105
  * Disable loading for request emulation.
@@ -1110,11 +1108,11 @@ class Kt {
1110
1108
  */
1111
1109
  stopResponseLoading() {
1112
1110
  this.loading = setTimeout(() => {
1113
- this.loading = void 0, l() && document.body.classList.remove(lt);
1111
+ this.loading = void 0, l() && document.body.classList.remove(dt);
1114
1112
  }, 1200);
1115
1113
  }
1116
1114
  }
1117
- class Vt {
1115
+ class Yt {
1118
1116
  constructor() {
1119
1117
  /** Function for call before the request/ Функция для вызова перед запросом */
1120
1118
  c(this, "callback");
@@ -1231,7 +1229,7 @@ const w = class w {
1231
1229
  if (t instanceof FormData)
1232
1230
  return t;
1233
1231
  if (e !== S.get && D(t))
1234
- return j(t) ? t : JSON.stringify(t);
1232
+ return z(t) ? t : JSON.stringify(t);
1235
1233
  }
1236
1234
  /**
1237
1235
  * Getting data for the body of the get method.
@@ -1243,7 +1241,7 @@ const w = class w {
1243
1241
  */
1244
1242
  static getBodyForGet(t, e = "", s = S.get) {
1245
1243
  if (s === S.get) {
1246
- const n = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? Lt(t) : t;
1244
+ const n = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? kt(t) : t;
1247
1245
  if (D(o))
1248
1246
  return `${n}${o}`;
1249
1247
  }
@@ -1299,7 +1297,7 @@ const w = class w {
1299
1297
  * @param pathRequest query string or list of parameters/ строка запроса или список параметров
1300
1298
  */
1301
1299
  static async request(t) {
1302
- return j(t) ? await this.fetch({
1300
+ return z(t) ? await this.fetch({
1303
1301
  path: t
1304
1302
  }) : await this.fetch(t);
1305
1303
  }
@@ -1310,10 +1308,9 @@ const w = class w {
1310
1308
  * @param request list of parameters/ список параметров
1311
1309
  */
1312
1310
  static get(t) {
1313
- return this.request({
1314
- ...t,
1311
+ return this.request(L(t, {
1315
1312
  method: S.get
1316
- });
1313
+ }));
1317
1314
  }
1318
1315
  /**
1319
1316
  * Sends a post method request.
@@ -1322,10 +1319,9 @@ const w = class w {
1322
1319
  * @param request list of parameters/ список параметров
1323
1320
  */
1324
1321
  static post(t) {
1325
- return this.request({
1326
- ...t,
1322
+ return this.request(L(t, {
1327
1323
  method: S.post
1328
- });
1324
+ }));
1329
1325
  }
1330
1326
  /**
1331
1327
  * Sends a put method request.
@@ -1334,10 +1330,9 @@ const w = class w {
1334
1330
  * @param request list of parameters/ список параметров
1335
1331
  */
1336
1332
  static put(t) {
1337
- return this.request({
1338
- ...t,
1333
+ return this.request(L(t, {
1339
1334
  method: S.put
1340
- });
1335
+ }));
1341
1336
  }
1342
1337
  /**
1343
1338
  * Sends a delete method request.
@@ -1346,10 +1341,9 @@ const w = class w {
1346
1341
  * @param request list of parameters/ список параметров
1347
1342
  */
1348
1343
  static delete(t) {
1349
- return this.request({
1350
- ...t,
1344
+ return this.request(L(t, {
1351
1345
  method: S.delete
1352
- });
1346
+ }));
1353
1347
  }
1354
1348
  /**
1355
1349
  * To execute a request.
@@ -1368,7 +1362,7 @@ const w = class w {
1368
1362
  if (u)
1369
1363
  return u;
1370
1364
  let h = {};
1371
- F.show();
1365
+ x.show();
1372
1366
  try {
1373
1367
  await this.preparation.make(o);
1374
1368
  const f = await this.makeQuery(t), d = await this.preparation.makeEnd(a, f);
@@ -1376,7 +1370,7 @@ const w = class w {
1376
1370
  f.status,
1377
1371
  f.statusText
1378
1372
  ), d != null && d.reset)
1379
- return F.hide(), await this.fetch(t);
1373
+ return x.hide(), await this.fetch(t);
1380
1374
  h = await this.readData(
1381
1375
  f,
1382
1376
  n,
@@ -1385,7 +1379,7 @@ const w = class w {
1385
1379
  } catch (f) {
1386
1380
  s || console.error("Api: ", f), this.status.setError(String(f));
1387
1381
  }
1388
- return F.hide(), this.makeData(h, e);
1382
+ return x.hide(), this.makeData(h, e);
1389
1383
  }
1390
1384
  /**
1391
1385
  * Reading data from the response.
@@ -1414,12 +1408,11 @@ const w = class w {
1414
1408
  headers: u = {},
1415
1409
  type: h = "application/json;charset=UTF-8",
1416
1410
  init: f = {}
1417
- } = t, d = o != null ? o : this.getUrl(n, s), E = `${d}${this.getBodyForGet(e, d, a)}`, J = this.headers.get(u, h), Q = {
1418
- ...f,
1411
+ } = t, d = o != null ? o : this.getUrl(n, s), I = `${d}${this.getBodyForGet(e, d, a)}`, Q = this.headers.get(u, h), X = L(f, {
1419
1412
  method: a,
1420
1413
  body: this.getBody(e, a)
1421
- };
1422
- return J && (Q.headers = J), await fetch(E, Q);
1414
+ });
1415
+ return Q && (X.headers = Q), await fetch(I, X);
1423
1416
  }
1424
1417
  /**
1425
1418
  * Transforms data if needed.
@@ -1429,9 +1422,9 @@ const w = class w {
1429
1422
  * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
1430
1423
  */
1431
1424
  static makeData(t, e) {
1432
- if (this.status.setLastResponse(t), t && e && k(t) && "data" in t) {
1433
- if (k(t.data)) {
1434
- const s = { ...t.data };
1425
+ if (this.status.setLastResponse(t), t && e && C(t) && "data" in t) {
1426
+ if (C(t.data)) {
1427
+ const s = L(t.data);
1435
1428
  return "success" in t && (s.success = t.success), s;
1436
1429
  }
1437
1430
  return t.data;
@@ -1439,9 +1432,9 @@ const w = class w {
1439
1432
  return t;
1440
1433
  }
1441
1434
  };
1442
- c(w, "url", "/api/"), c(w, "headers", new jt()), c(w, "requestDefault", new zt()), c(w, "status", new Ht()), c(w, "response", new Kt(w.requestDefault)), c(w, "preparation", new Vt());
1435
+ c(w, "url", "/api/"), c(w, "headers", new zt()), c(w, "requestDefault", new Ht()), c(w, "status", new Zt()), c(w, "response", new Vt(w.requestDefault)), c(w, "preparation", new Yt());
1443
1436
  let U = w;
1444
- class ve {
1437
+ class Se {
1445
1438
  /**
1446
1439
  * Constructor
1447
1440
  * @param name channel name/ название канала
@@ -1461,7 +1454,7 @@ class ve {
1461
1454
  });
1462
1455
  if (this.callback = e, l())
1463
1456
  try {
1464
- this.channel = new BroadcastChannel(`${Yt()}__${t}`), this.channel.onmessage = this.update;
1457
+ this.channel = new BroadcastChannel(`${qt()}__${t}`), this.channel.onmessage = this.update;
1465
1458
  } catch (s) {
1466
1459
  console.error(`BroadcastMessage ${t}:`, s);
1467
1460
  }
@@ -1486,8 +1479,8 @@ class ve {
1486
1479
  return this.callback = t, this;
1487
1480
  }
1488
1481
  }
1489
- const Yt = () => new _("__broadcast-name").get(() => `name_${V(1e6, 9999999)}`);
1490
- class qt {
1482
+ const qt = () => new O("__broadcast-name").get(() => `name_${Y(1e6, 9999999)}`);
1483
+ class Jt {
1491
1484
  /**
1492
1485
  * Constructor
1493
1486
  * @param callback function for the cache/ функция для кэша
@@ -1550,7 +1543,7 @@ class qt {
1550
1543
  return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, s) => e !== t[s]) >= 0 ? (this.comparisons = [...t], !0) : !1;
1551
1544
  }
1552
1545
  }
1553
- class Jt {
1546
+ class Qt {
1554
1547
  constructor() {
1555
1548
  c(this, "cache", {});
1556
1549
  }
@@ -1584,10 +1577,10 @@ class Jt {
1584
1577
  * @param callback function for the cache/ функция для кэша
1585
1578
  */
1586
1579
  getCacheItem(t, e) {
1587
- return t in this.cache || (this.cache[t] = new qt(e)), this.cache[t];
1580
+ return t in this.cache || (this.cache[t] = new Jt(e)), this.cache[t];
1588
1581
  }
1589
1582
  }
1590
- const M = class M {
1583
+ const _ = class _ {
1591
1584
  /**
1592
1585
  * Getting data for the cache, and if there is no cache, it performs a function to save the cache.
1593
1586
  *
@@ -1600,9 +1593,9 @@ const M = class M {
1600
1593
  return this.cache.get(t, e, s);
1601
1594
  }
1602
1595
  };
1603
- c(M, "cache"), M.cache = new Jt();
1604
- let dt = M;
1605
- function At(i, t = !1) {
1596
+ c(_, "cache"), _.cache = new Qt();
1597
+ let gt = _;
1598
+ function Nt(i, t = !1) {
1606
1599
  if (typeof i == "string") {
1607
1600
  const e = i.trim();
1608
1601
  switch (e) {
@@ -1633,8 +1626,8 @@ function At(i, t = !1) {
1633
1626
  }
1634
1627
  return i;
1635
1628
  }
1636
- const Qt = "cookie-block";
1637
- class Nt {
1629
+ const Xt = "cookie-block";
1630
+ class Et {
1638
1631
  /**
1639
1632
  * Obtaining status.
1640
1633
  *
@@ -1654,14 +1647,14 @@ class Nt {
1654
1647
  this.storage.set(t);
1655
1648
  }
1656
1649
  }
1657
- c(Nt, "storage", new _(Qt));
1658
- const X = {}, nt = class nt {
1650
+ c(Et, "storage", new O(Xt));
1651
+ const M = {}, ot = class ot {
1659
1652
  constructor(t) {
1660
1653
  c(this, "value");
1661
1654
  c(this, "options", {});
1662
- if (this.name = t, t in T)
1663
- return T[t];
1664
- this.value = X == null ? void 0 : X[t], T[t] = this;
1655
+ if (this.name = t, t in G)
1656
+ return G[t];
1657
+ this.value = M == null ? void 0 : M[t], G[t] = this;
1665
1658
  }
1666
1659
  /**
1667
1660
  * Get data or update if none.
@@ -1681,7 +1674,7 @@ const X = {}, nt = class nt {
1681
1674
  * @param options additional parameters/ дополнительные параметры
1682
1675
  */
1683
1676
  set(t, e) {
1684
- this.value = N(t), Object.assign(this.options, e), this.update();
1677
+ this.value = E(t), Object.assign(this.options, e), this.update();
1685
1678
  }
1686
1679
  /**
1687
1680
  * Delete cookie data.
@@ -1707,7 +1700,7 @@ const X = {}, nt = class nt {
1707
1700
  */
1708
1701
  update() {
1709
1702
  var t, e, s, n, o;
1710
- if (l() && !Nt.get()) {
1703
+ if (l() && !Et.get()) {
1711
1704
  const a = String((t = this.value) != null ? t : "");
1712
1705
  document.cookie = [
1713
1706
  `${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
@@ -1725,30 +1718,30 @@ const X = {}, nt = class nt {
1725
1718
  static updateData() {
1726
1719
  for (const t of document.cookie.split(";")) {
1727
1720
  const [e, s] = t.trim().split("=");
1728
- e && D(s) && (X[e] = At(s));
1721
+ e && D(s) && (M[e] = Nt(s));
1729
1722
  }
1730
1723
  }
1731
1724
  };
1732
- l() && nt.updateData();
1733
- let gt = nt;
1734
- const T = {};
1735
- function I(i) {
1736
- var n, o, a, u, h, f, d, E;
1725
+ l() && ot.updateData();
1726
+ let ft = ot;
1727
+ const G = {};
1728
+ function B(i) {
1729
+ var n, o, a, u, h, f, d, I;
1737
1730
  if (i instanceof Date)
1738
1731
  return i;
1739
- if (Y(i))
1732
+ if (q(i))
1740
1733
  return /* @__PURE__ */ new Date();
1741
1734
  if (typeof i == "number")
1742
1735
  return new Date(i);
1743
1736
  let t = i, e = b.getTimezoneFormat();
1744
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (J, Q, Ft) => (t = Q, e = Ft, J));
1745
- const s = (E = (d = (f = (h = (u = (a = (o = (n = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? n : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? f : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? E : t.replace(" ", "T");
1737
+ i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (Q, X, xt) => (t = X, e = xt, Q));
1738
+ const s = (I = (d = (f = (h = (u = (a = (o = (n = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? n : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? f : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? I : t.replace(" ", "T");
1746
1739
  return /* @__PURE__ */ new Date(`${s}${e}`);
1747
1740
  }
1748
- function Xt(i, t) {
1741
+ function Mt(i, t) {
1749
1742
  return g(i, (e) => e == null ? void 0 : e[t]);
1750
1743
  }
1751
- class q {
1744
+ class J {
1752
1745
  /**
1753
1746
  * Constructor
1754
1747
  * @param code country code, full form language-country or one of them/
@@ -1758,9 +1751,9 @@ class q {
1758
1751
  c(this, "geo");
1759
1752
  this.geo = b.find(t);
1760
1753
  const e = this.getLocation();
1761
- if (e in G)
1762
- return G[e];
1763
- G[e] = this;
1754
+ if (e in tt)
1755
+ return tt[e];
1756
+ tt[e] = this;
1764
1757
  }
1765
1758
  /**
1766
1759
  * Returns an instance of the class according to the specified country code.
@@ -1770,7 +1763,7 @@ class q {
1770
1763
  * код страны, полный вид язык-страна или один из них
1771
1764
  */
1772
1765
  static getInstance(t = b.getLocation()) {
1773
- return new q(t);
1766
+ return new J(t);
1774
1767
  }
1775
1768
  /**
1776
1769
  * Returns country code and language.
@@ -1877,7 +1870,7 @@ class q {
1877
1870
  */
1878
1871
  number(t, e) {
1879
1872
  var s, n;
1880
- return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, L(t))) || t.toString();
1873
+ return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, k(t))) || t.toString();
1881
1874
  }
1882
1875
  /**
1883
1876
  * Decimal point symbol.
@@ -1905,8 +1898,8 @@ class q {
1905
1898
  }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
1906
1899
  if (s) {
1907
1900
  const a = this.numberObject(n);
1908
- return a ? Xt(
1909
- a.formatToParts(L(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
1901
+ return a ? Mt(
1902
+ a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
1910
1903
  "value"
1911
1904
  ).join("") : t.toString();
1912
1905
  } else return "currency" in n ? this.number(
@@ -1960,8 +1953,8 @@ class q {
1960
1953
  * в форматировании блока
1961
1954
  */
1962
1955
  sizeFile(t, e = "byte") {
1963
- const s = L(t);
1964
- if (s > 1024 && j(e))
1956
+ const s = k(t);
1957
+ if (s > 1024 && z(e))
1965
1958
  switch (e) {
1966
1959
  case "byte":
1967
1960
  return this.sizeFile(s / 1024, "kilobyte");
@@ -1998,7 +1991,7 @@ class q {
1998
1991
  * объект с некоторыми или всеми свойствами
1999
1992
  */
2000
1993
  percentBy100(t, e) {
2001
- return this.percent(L(t) / 100, e);
1994
+ return this.percent(k(t) / 100, e);
2002
1995
  }
2003
1996
  /**
2004
1997
  * Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
@@ -2010,7 +2003,7 @@ class q {
2010
2003
  */
2011
2004
  plural(t, e, s, n) {
2012
2005
  var u;
2013
- const o = L(t), a = e.split("|");
2006
+ const o = k(t), a = e.split("|");
2014
2007
  if (a.length > 1)
2015
2008
  try {
2016
2009
  if (l()) {
@@ -2053,7 +2046,7 @@ class q {
2053
2046
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2054
2047
  */
2055
2048
  date(t, e, s, n) {
2056
- const o = I(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
2049
+ const o = B(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
2057
2050
  return n && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
2058
2051
  }
2059
2052
  /**
@@ -2066,7 +2059,7 @@ class q {
2066
2059
  * @param todayValue current day/ текущий день
2067
2060
  */
2068
2061
  relative(t, e, s) {
2069
- const n = I(t), o = s || /* @__PURE__ */ new Date(), a = {
2062
+ const n = B(t), o = s || /* @__PURE__ */ new Date(), a = {
2070
2063
  numeric: "auto",
2071
2064
  ...typeof e == "string" ? { style: e } : e || {}
2072
2065
  };
@@ -2092,8 +2085,8 @@ class q {
2092
2085
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2093
2086
  */
2094
2087
  relativeLimit(t, e, s, n, o, a, u) {
2095
- const h = I(t), f = s || /* @__PURE__ */ new Date(), d = new Date(f), E = new Date(f);
2096
- return d.setDate(f.getDate() - e), E.setDate(f.getDate() + e), h >= d && h <= E ? this.relative(
2088
+ const h = B(t), f = s || /* @__PURE__ */ new Date(), d = new Date(f), I = new Date(f);
2089
+ return d.setDate(f.getDate() - e), I.setDate(f.getDate() + e), h >= d && h <= I ? this.relative(
2097
2090
  h,
2098
2091
  n,
2099
2092
  f
@@ -2117,7 +2110,7 @@ class q {
2117
2110
  };
2118
2111
  try {
2119
2112
  if (l())
2120
- return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(L(t)), e);
2113
+ return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(k(t)), e);
2121
2114
  } catch (o) {
2122
2115
  console.error("relative: ", o);
2123
2116
  }
@@ -2132,7 +2125,7 @@ class q {
2132
2125
  month(t, e) {
2133
2126
  try {
2134
2127
  if (l())
2135
- return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(I(t));
2128
+ return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(B(t));
2136
2129
  } catch (s) {
2137
2130
  console.error("month: ", s);
2138
2131
  }
@@ -2173,7 +2166,7 @@ class q {
2173
2166
  weekday(t, e) {
2174
2167
  try {
2175
2168
  if (l())
2176
- return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(I(t));
2169
+ return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(B(t));
2177
2170
  } catch (s) {
2178
2171
  console.error("weekday: ", s);
2179
2172
  }
@@ -2255,8 +2248,8 @@ class q {
2255
2248
  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;
2256
2249
  }
2257
2250
  }
2258
- const G = {};
2259
- class Et {
2251
+ const tt = {};
2252
+ class It {
2260
2253
  /**
2261
2254
  * Constructor
2262
2255
  * @param date date for processing/ дата для обработки
@@ -2267,7 +2260,7 @@ class Et {
2267
2260
  c(this, "date");
2268
2261
  c(this, "hour24", !1);
2269
2262
  c(this, "watch");
2270
- this.type = e, this.code = s, this.date = I(t);
2263
+ this.type = e, this.code = s, this.date = B(t);
2271
2264
  }
2272
2265
  /**
2273
2266
  * Returns an object for working with formatting.
@@ -2275,7 +2268,7 @@ class Et {
2275
2268
  * Возвращает объект для работы с форматированием.
2276
2269
  */
2277
2270
  getIntl() {
2278
- return new q(this.code);
2271
+ return new J(this.code);
2279
2272
  }
2280
2273
  /**
2281
2274
  * Returns a Date object.
@@ -2483,7 +2476,7 @@ class Et {
2483
2476
  * @param timeZone add time zone/ добавить временную зону
2484
2477
  */
2485
2478
  standard(t = !0) {
2486
- const e = new Et(this.date, this.type, "en-GB"), s = [];
2479
+ const e = new It(this.date, this.type, "en-GB"), s = [];
2487
2480
  let n;
2488
2481
  return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
2489
2482
  year: "numeric",
@@ -2499,7 +2492,7 @@ class Et {
2499
2492
  * целочисленное значение, представляющее число
2500
2493
  */
2501
2494
  setDate(t) {
2502
- return this.date = I(t), this.update(), this;
2495
+ return this.date = B(t), this.update(), this;
2503
2496
  }
2504
2497
  /**
2505
2498
  * Change the type of data output.
@@ -2908,7 +2901,7 @@ class Et {
2908
2901
  ), this;
2909
2902
  }
2910
2903
  }
2911
- const r = "@flag", R = class R {
2904
+ const r = "@flag", P = class P {
2912
2905
  /**
2913
2906
  * Constructor
2914
2907
  * @param code country and language code/ код страны и языка
@@ -2931,7 +2924,7 @@ const r = "@flag", R = class R {
2931
2924
  language: this.getLanguage(e),
2932
2925
  country: n,
2933
2926
  standard: e.standard,
2934
- icon: (s = R.flags) == null ? void 0 : s[e.country],
2927
+ icon: (s = P.flags) == null ? void 0 : s[e.country],
2935
2928
  label: n,
2936
2929
  value: e.country
2937
2930
  };
@@ -2964,7 +2957,7 @@ const r = "@flag", R = class R {
2964
2957
  */
2965
2958
  getNational(t) {
2966
2959
  return g(this.getList(t), (e) => {
2967
- const s = new R(e.standard).get(e.standard);
2960
+ const s = new P(e.standard).get(e.standard);
2968
2961
  return {
2969
2962
  ...e,
2970
2963
  description: s == null ? void 0 : s.country,
@@ -2988,7 +2981,7 @@ const r = "@flag", R = class R {
2988
2981
  * Возвращает специальный объект для работы с форматированием.
2989
2982
  */
2990
2983
  getLocation() {
2991
- return new q(this.code);
2984
+ return new J(this.code);
2992
2985
  }
2993
2986
  /**
2994
2987
  * Returns a list of countries to retrieve data from.
@@ -2997,7 +2990,7 @@ const r = "@flag", R = class R {
2997
2990
  * @param codes country code/ код страны
2998
2991
  */
2999
2992
  getCodes(t) {
3000
- return t != null ? t : Object.keys(R.flags);
2993
+ return t != null ? t : Object.keys(P.flags);
3001
2994
  }
3002
2995
  /**
3003
2996
  * Getting the name of the language.
@@ -3018,7 +3011,7 @@ const r = "@flag", R = class R {
3018
3011
  return this.getLocation().countryName(t.country);
3019
3012
  }
3020
3013
  };
3021
- c(R, "flags", {
3014
+ c(P, "flags", {
3022
3015
  AD: `${r}-ad`,
3023
3016
  AE: `${r}-ae`,
3024
3017
  AF: `${r}-af`,
@@ -3261,8 +3254,8 @@ c(R, "flags", {
3261
3254
  ZM: `${r}-zm`,
3262
3255
  ZW: `${r}-zw`
3263
3256
  });
3264
- let ft = R;
3265
- const P = class P {
3257
+ let mt = P;
3258
+ const W = class W {
3266
3259
  /**
3267
3260
  * Getting an object with information about the phone code and country.
3268
3261
  *
@@ -3377,7 +3370,7 @@ const P = class P {
3377
3370
  return {
3378
3371
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
3379
3372
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3380
- mask: z(e.phoneMask),
3373
+ mask: H(e.phoneMask),
3381
3374
  value: e.country
3382
3375
  };
3383
3376
  });
@@ -3441,9 +3434,9 @@ const P = class P {
3441
3434
  return t.replace(/\*/, this.getWithinSymbol(e));
3442
3435
  }
3443
3436
  };
3444
- c(P, "list", []), c(P, "map", {}), P.makeList(), P.makeMap();
3445
- let mt = P, x;
3446
- class Se {
3437
+ c(W, "list", []), c(W, "map", {}), W.makeList(), W.makeMap();
3438
+ let yt = W, R;
3439
+ class De {
3447
3440
  /**
3448
3441
  * Returns the value by its name.
3449
3442
  *
@@ -3451,7 +3444,7 @@ class Se {
3451
3444
  * @param name property name/ название свойства
3452
3445
  */
3453
3446
  static get(t) {
3454
- return x && (x == null ? void 0 : x[t]);
3447
+ return R && (R == null ? void 0 : R[t]);
3455
3448
  }
3456
3449
  /**
3457
3450
  * Adds data, this method works only once.
@@ -3460,10 +3453,10 @@ class Se {
3460
3453
  * @param data global data/ глобальные данные
3461
3454
  */
3462
3455
  static add(t) {
3463
- x === void 0 && (x = { ...t });
3456
+ R === void 0 && (R = L(t));
3464
3457
  }
3465
3458
  }
3466
- const B = class B {
3459
+ const F = class F {
3467
3460
  /**
3468
3461
  * Get data from hash.
3469
3462
  *
@@ -3483,7 +3476,7 @@ const B = class B {
3483
3476
  */
3484
3477
  static set(t, e) {
3485
3478
  var n;
3486
- const s = N(e);
3479
+ const s = E(e);
3487
3480
  s !== ((n = this.hash) == null ? void 0 : n[t]) && (this.hash[t] = s, this.update());
3488
3481
  }
3489
3482
  /**
@@ -3517,7 +3510,7 @@ const B = class B {
3517
3510
  const t = {};
3518
3511
  return location.hash.replace(
3519
3512
  /([\w-]+)[:=]([^;]+)/ig,
3520
- (...e) => (t[String(e[1])] = At(e[2]), "")
3513
+ (...e) => (t[String(e[1])] = Nt(e[2]), "")
3521
3514
  ), t;
3522
3515
  }
3523
3516
  /**
@@ -3526,7 +3519,7 @@ const B = class B {
3526
3519
  * Обновление строки хэша в URL.
3527
3520
  */
3528
3521
  static update() {
3529
- this.block = !0, history.replaceState(null, "", `#${Lt(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3522
+ this.block = !0, history.replaceState(null, "", `#${kt(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3530
3523
  this.block = !1;
3531
3524
  });
3532
3525
  }
@@ -3543,9 +3536,9 @@ const B = class B {
3543
3536
  });
3544
3537
  }
3545
3538
  };
3546
- c(B, "hash", {}), c(B, "watch", {}), c(B, "block", !1), l() && (B.reload(), addEventListener("hashchange", () => B.reload()));
3547
- let yt = B;
3548
- const tt = "__UI_ICON", $t = 320, pt = "--LOAD--", K = class K {
3539
+ c(F, "hash", {}), c(F, "watch", {}), c(F, "block", !1), l() && (F.reload(), addEventListener("hashchange", () => F.reload()));
3540
+ let $t = F;
3541
+ const et = "__UI_ICON", pt = 320, bt = "--LOAD--", V = class V {
3549
3542
  /**
3550
3543
  * Checks if the given icon is in the list of connected icons.
3551
3544
  *
@@ -3568,7 +3561,7 @@ const tt = "__UI_ICON", $t = 320, pt = "--LOAD--", K = class K {
3568
3561
  static async get(t, e = "", s = 1e3 * 60 * 3) {
3569
3562
  var o, a, u, h;
3570
3563
  const n = (h = (u = (o = this.icons) == null ? void 0 : o[this.getName(t)]) != null ? u : (a = this.icons) == null ? void 0 : a[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3571
- return typeof n == "string" ? n === pt && s > 0 ? (await this.wait(), this.get(t, e, s - $t)) : n : await n;
3564
+ return typeof n == "string" ? n === bt && s > 0 ? (await this.wait(), this.get(t, e, s - pt)) : n : await n;
3572
3565
  }
3573
3566
  /**
3574
3567
  * Returns a list of names of all registered icons.
@@ -3603,7 +3596,7 @@ const tt = "__UI_ICON", $t = 320, pt = "--LOAD--", K = class K {
3603
3596
  * @param index icon name/ название иконки
3604
3597
  */
3605
3598
  static addLoad(t) {
3606
- this.icons[this.getName(t)] = pt;
3599
+ this.icons[this.getName(t)] = bt;
3607
3600
  }
3608
3601
  /**
3609
3602
  * Adding custom global icons.
@@ -3648,42 +3641,42 @@ const tt = "__UI_ICON", $t = 320, pt = "--LOAD--", K = class K {
3648
3641
  * Задержка выполнения скрипта.
3649
3642
  */
3650
3643
  static wait() {
3651
- return new Promise((t) => setTimeout(() => t(), $t));
3644
+ return new Promise((t) => setTimeout(() => t(), pt));
3652
3645
  }
3653
3646
  };
3654
- c(K, "icons", {}), c(K, "url", "/icons/"), l() && (tt in window || (window[tt] = {}), K.icons = window[tt]);
3655
- let bt = K;
3656
- function Mt(i, t, e) {
3647
+ c(V, "icons", {}), c(V, "url", "/icons/"), l() && (et in window || (window[et] = {}), V.icons = window[et]);
3648
+ let wt = V;
3649
+ function _t(i, t, e) {
3657
3650
  var s, n;
3658
- return (n = (s = C(i)) == null ? void 0 : s[t]) != null ? n : e;
3651
+ return (n = (s = A(i)) == null ? void 0 : s[t]) != null ? n : e;
3659
3652
  }
3660
- function _t(i, t, e) {
3661
- const s = C(i);
3653
+ function Ot(i, t, e) {
3654
+ const s = A(i);
3662
3655
  if (s) {
3663
- const n = Mt(s, t);
3656
+ const n = _t(s, t);
3664
3657
  if (m(n) && m(e))
3665
3658
  g(e, (o, a) => {
3666
- n[a] = N(o);
3659
+ n[a] = E(o);
3667
3660
  });
3668
3661
  else {
3669
- const o = N(e);
3670
- !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = N(e);
3662
+ const o = E(e);
3663
+ !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = E(e);
3671
3664
  }
3672
3665
  }
3673
3666
  return s;
3674
3667
  }
3675
- function it(i, t = "div", e, s) {
3668
+ function st(i, t = "div", e, s) {
3676
3669
  if (!l())
3677
3670
  return;
3678
3671
  const n = document.createElement(t);
3679
- return typeof e == "function" ? e(n) : k(e) && g(e, (o, a) => {
3680
- _t(n, a, o);
3672
+ return typeof e == "function" ? e(n) : C(e) && g(e, (o, a) => {
3673
+ Ot(n, a, o);
3681
3674
  }), i == null || i.insertBefore(n, s != null ? s : null), n;
3682
3675
  }
3683
- function Ot(i) {
3676
+ function Tt(i) {
3684
3677
  return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
3685
3678
  }
3686
- class rt {
3679
+ class nt {
3687
3680
  /**
3688
3681
  * Creates an instance of MetaManager.
3689
3682
  *
@@ -3797,7 +3790,7 @@ class rt {
3797
3790
  e.content = s;
3798
3791
  else if (l()) {
3799
3792
  const o = { content: s };
3800
- this.isProperty ? o.property = t : o.name = t, it(document.head, "meta", o);
3793
+ this.isProperty ? o.property = t : o.name = t, st(document.head, "meta", o);
3801
3794
  }
3802
3795
  return this;
3803
3796
  }
@@ -3809,7 +3802,7 @@ class rt {
3809
3802
  */
3810
3803
  toHtmlString(t) {
3811
3804
  var s;
3812
- const e = Ot((s = this.items[t]) != null ? s : "");
3805
+ const e = Tt((s = this.items[t]) != null ? s : "");
3813
3806
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
3814
3807
  }
3815
3808
  /**
@@ -3824,8 +3817,8 @@ class rt {
3824
3817
  }), this;
3825
3818
  }
3826
3819
  }
3827
- var v = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(v || {}), Tt = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(Tt || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), Gt = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(Gt || {}), te = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(te || {}), ee = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(ee || {}), ie = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(ie || {}), se = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(se || {}), $ = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))($ || {}), re = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(re || {});
3828
- class ne extends rt {
3820
+ var v = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(v || {}), Gt = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(Gt || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), te = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(te || {}), ee = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(ee || {}), ie = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(ie || {}), se = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(se || {}), re = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(re || {}), $ = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))($ || {}), ne = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(ne || {});
3821
+ class oe extends nt {
3829
3822
  constructor() {
3830
3823
  super(Object.values(y), !0);
3831
3824
  }
@@ -3949,7 +3942,7 @@ class ne extends rt {
3949
3942
  return this.set(y.siteName, t);
3950
3943
  }
3951
3944
  }
3952
- class oe extends rt {
3945
+ class ae extends nt {
3953
3946
  constructor() {
3954
3947
  super(Object.values($));
3955
3948
  }
@@ -4073,7 +4066,7 @@ class oe extends rt {
4073
4066
  return this.set($.image, t), this;
4074
4067
  }
4075
4068
  }
4076
- class De extends rt {
4069
+ class Le extends nt {
4077
4070
  /**
4078
4071
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
4079
4072
  *
@@ -4084,7 +4077,7 @@ class De extends rt {
4084
4077
  c(this, "suffix");
4085
4078
  c(this, "og");
4086
4079
  c(this, "twitter");
4087
- this.og = new ne(), this.twitter = new oe();
4080
+ this.og = new oe(), this.twitter = new ae();
4088
4081
  }
4089
4082
  /**
4090
4083
  * Gets the MetaOg instance for advanced Open Graph operations.
@@ -4194,7 +4187,7 @@ class De extends rt {
4194
4187
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
4195
4188
  */
4196
4189
  setKeywords(e) {
4197
- return this.set(v.keywords, z(e).join(", ")), this;
4190
+ return this.set(v.keywords, H(e).join(", ")), this;
4198
4191
  }
4199
4192
  /**
4200
4193
  * Sets the description meta tag.
@@ -4285,7 +4278,7 @@ class De extends rt {
4285
4278
  return D(this.suffix) ? ` - ${this.suffix}` : "";
4286
4279
  }
4287
4280
  }
4288
- class st {
4281
+ class rt {
4289
4282
  /**
4290
4283
  * Checks whether to enable scroll hiding.
4291
4284
  *
@@ -4315,8 +4308,8 @@ class st {
4315
4308
  * Создает элементы для проверки ширины скролла.
4316
4309
  */
4317
4310
  static createElement() {
4318
- return it(document.body, "div", (t) => {
4319
- t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", it(t, "div", (e) => {
4311
+ return st(document.body, "div", (t) => {
4312
+ t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", st(t, "div", (e) => {
4320
4313
  e.style.height = "100px";
4321
4314
  });
4322
4315
  });
@@ -4336,8 +4329,8 @@ class st {
4336
4329
  });
4337
4330
  }
4338
4331
  }
4339
- c(st, "storage", new _("scrollbar", !0)), c(st, "calculate", !1);
4340
- const ae = [
4332
+ c(rt, "storage", new O("scrollbar", !0)), c(rt, "calculate", !1);
4333
+ const ce = [
4341
4334
  "d",
4342
4335
  "e",
4343
4336
  "f",
@@ -4357,21 +4350,21 @@ const ae = [
4357
4350
  "t",
4358
4351
  "u",
4359
4352
  "v"
4360
- ], ce = (i, t = {}) => {
4353
+ ], ue = (i, t = {}) => {
4361
4354
  let e = String(i);
4362
4355
  if (i.match(/%[a-z]/)) {
4363
4356
  let s = 0;
4364
4357
  g(t, (n) => {
4365
- e = e.replace(new RegExp(`%${ae[s++]}`, "g"), String(n));
4358
+ e = e.replace(new RegExp(`%${ce[s++]}`, "g"), String(n));
4366
4359
  });
4367
4360
  }
4368
- return k(t) && g(t, (s, n) => {
4361
+ return C(t) && g(t, (s, n) => {
4369
4362
  e = e.replace(
4370
4363
  new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
4371
4364
  (o, a) => String(s).replace(/\[content]/g, a)
4372
4365
  ).replace(new RegExp(`\\[${n}\\]`, "g"), String(s));
4373
4366
  }), e;
4374
- }, A = class A {
4367
+ }, N = class N {
4375
4368
  /**
4376
4369
  * Getting the translation text by its code.
4377
4370
  *
@@ -4455,7 +4448,7 @@ const ae = [
4455
4448
  */
4456
4449
  static addSync(t) {
4457
4450
  g(t, (e, s) => {
4458
- j(e) && D(e) && (this.data[this.getName(s)] = e);
4451
+ z(e) && D(e) && (this.data[this.getName(s)] = e);
4459
4452
  });
4460
4453
  }
4461
4454
  /**
@@ -4480,7 +4473,7 @@ const ae = [
4480
4473
  * @param url path to the script/ путь к скрипту
4481
4474
  */
4482
4475
  static setUrl(t) {
4483
- return this.url = t, A;
4476
+ return this.url = t, N;
4484
4477
  }
4485
4478
  static setPropsName(t) {
4486
4479
  return this.propsName = t, this;
@@ -4502,7 +4495,7 @@ const ae = [
4502
4495
  */
4503
4496
  static getNamesNone(t) {
4504
4497
  const e = [];
4505
- return z(t).forEach((s) => {
4498
+ return H(t).forEach((s) => {
4506
4499
  s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
4507
4500
  }), e;
4508
4501
  }
@@ -4531,7 +4524,7 @@ const ae = [
4531
4524
  * @param replacement values for replacement/ значения для замены
4532
4525
  */
4533
4526
  static replacement(t, e) {
4534
- return e ? ce(t, e) : t;
4527
+ return e ? ue(t, e) : t;
4535
4528
  }
4536
4529
  /**
4537
4530
  * Adding translation data from the server.
@@ -4546,152 +4539,152 @@ const ae = [
4546
4539
  }), this.cache = [];
4547
4540
  }
4548
4541
  };
4549
- c(A, "url", "/api/translate"), c(A, "propsName", "list"), c(A, "data", {}), c(A, "cache", []), c(A, "resolveList", []), c(A, "timeout");
4550
- let wt = A;
4551
- function It(i) {
4542
+ c(N, "url", "/api/translate"), c(N, "propsName", "list"), c(N, "data", {}), c(N, "cache", []), c(N, "resolveList", []), c(N, "timeout");
4543
+ let vt = N;
4544
+ function Bt(i) {
4552
4545
  return Array.isArray(i);
4553
4546
  }
4554
- function Le(i) {
4547
+ function ke(i) {
4555
4548
  var t;
4556
- return j(i) ? i.trim() : It(i) && i.findIndex((e) => m(e)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4549
+ return z(i) ? i.trim() : Bt(i) && i.findIndex((e) => m(e)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4557
4550
  }
4558
- function ue(i, t) {
4551
+ function he(i, t) {
4559
4552
  return Array(t).fill(i);
4560
4553
  }
4561
- function ke(i) {
4554
+ function Ce(i) {
4562
4555
  var t;
4563
4556
  if (l())
4564
4557
  return (t = document.querySelector(i)) != null ? t : void 0;
4565
4558
  }
4566
- function Ce(i) {
4559
+ function Ae(i) {
4567
4560
  if (l())
4568
4561
  return document.querySelectorAll(i);
4569
4562
  }
4570
- function Ae(i) {
4563
+ function Ne(i) {
4571
4564
  i.preventDefault(), i.stopPropagation();
4572
4565
  }
4573
- function he(i, t, e) {
4566
+ function le(i, t, e) {
4574
4567
  const s = () => {
4575
- i(), t != null && t() ? he(i, t, e) : e == null || e();
4568
+ i(), t != null && t() ? le(i, t, e) : e == null || e();
4576
4569
  };
4577
4570
  l() ? requestAnimationFrame(s) : s();
4578
4571
  }
4579
- function Ne(i) {
4572
+ function Ee(i) {
4580
4573
  var s;
4581
- const t = {}, e = C(i);
4574
+ const t = {}, e = A(i);
4582
4575
  if (e)
4583
4576
  for (const n of e.attributes)
4584
4577
  t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
4585
4578
  return t;
4586
4579
  }
4587
- async function Ee(i) {
4580
+ async function Ie(i) {
4588
4581
  var t, e;
4589
4582
  return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
4590
4583
  }
4591
- let vt = V(1e5, 9e5);
4592
- function Ie(i, t) {
4593
- const e = C(i);
4594
- return e ? (D(e.id) || e.setAttribute("id", `id-${vt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${vt++}`;
4584
+ let St = Y(1e5, 9e5);
4585
+ function Be(i, t) {
4586
+ const e = A(i);
4587
+ return e ? (D(e.id) || e.setAttribute("id", `id-${St++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${St++}`;
4595
4588
  }
4596
- function le(i, t = "ig", e = ":value") {
4589
+ function de(i, t = "ig", e = ":value") {
4597
4590
  const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
4598
4591
  return new RegExp(e.replace(/:value/g, s), t);
4599
4592
  }
4600
- function de(i, t) {
4593
+ function ge(i, t) {
4601
4594
  var n;
4602
4595
  const e = t.split(".", 2), s = e[0];
4603
- return s && (i != null && i[s]) && k(i[s]) && (e != null && e[1]) ? de(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
4596
+ return s && (i != null && i[s]) && C(i[s]) && (e != null && e[1]) ? ge(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
4604
4597
  }
4605
- function Be(i) {
4598
+ function Fe(i) {
4606
4599
  var t, e, s;
4607
4600
  return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
4608
4601
  }
4609
- function Bt(i) {
4602
+ function Ft(i) {
4610
4603
  return g(i, (t) => t.length);
4611
4604
  }
4612
- function Fe(i) {
4613
- return Math.max(...Bt(i));
4614
- }
4615
4605
  function xe(i) {
4616
- return Math.min(...Bt(i));
4606
+ return Math.max(...Ft(i));
4607
+ }
4608
+ function Re(i) {
4609
+ return Math.min(...Ft(i));
4617
4610
  }
4618
- function ge(i) {
4611
+ function fe(i) {
4619
4612
  var t, e, s, n;
4620
4613
  return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientX) || 0;
4621
4614
  }
4622
- function fe(i) {
4615
+ function me(i) {
4623
4616
  var t, e, s, n;
4624
4617
  return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientY) || 0;
4625
4618
  }
4626
- function Re(i) {
4619
+ function Pe(i) {
4627
4620
  return {
4628
- x: ge(i),
4629
- y: fe(i)
4621
+ x: fe(i),
4622
+ y: me(i)
4630
4623
  };
4631
4624
  }
4632
- function Pe(i, t) {
4625
+ function We(i, t) {
4633
4626
  const e = {};
4634
4627
  return t.forEach((s) => {
4635
4628
  s in i && i[s] !== void 0 && (e[s] = i[s]);
4636
4629
  }), e;
4637
4630
  }
4638
- function We(i, t = void 0) {
4631
+ function je(i, t = void 0) {
4639
4632
  const e = {};
4640
4633
  return g(i, (s, n) => {
4641
4634
  s !== t && (e[n] = s);
4642
4635
  }), e;
4643
4636
  }
4644
4637
  function Ue(i) {
4645
- return k(i) ? i : {};
4638
+ return C(i) ? i : {};
4646
4639
  }
4647
- function me(i, t) {
4648
- return ue(i, t).join("");
4640
+ function ye(i, t) {
4641
+ return he(i, t).join("");
4649
4642
  }
4650
- function je(i, t, e = "#", s = 2, n = 12) {
4651
- const o = V(i, t), a = [];
4643
+ function ze(i, t, e = "#", s = 2, n = 12) {
4644
+ const o = Y(i, t), a = [];
4652
4645
  for (let u = 0; u < o; u++)
4653
- a.push(me(e, V(s, n)));
4646
+ a.push(ye(e, Y(s, n)));
4654
4647
  return a.join(" ");
4655
4648
  }
4656
- function ze(i, t) {
4649
+ function He(i, t) {
4657
4650
  const e = i != null ? i : 0;
4658
4651
  return t > e ? 100 / (t - e) : 0;
4659
4652
  }
4660
- function He(i, t) {
4653
+ function Ze(i, t) {
4661
4654
  const e = i != null ? i : 0;
4662
4655
  return t > e ? (t - e) / 100 : 0;
4663
4656
  }
4664
- const St = 0;
4665
- function Ze(i, t, e) {
4657
+ const Dt = 0;
4658
+ function Ke(i, t, e) {
4666
4659
  const s = t == null ? void 0 : t.closest(i);
4667
4660
  if (t && s && s.scrollHeight !== s.offsetHeight)
4668
4661
  if (e) {
4669
4662
  const n = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
4670
4663
  s.scrollTop = t.offsetTop - (n.top - o.top) - (n.height / 2 - a.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
4671
- } else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - St : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + St);
4664
+ } else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - Dt : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + Dt);
4672
4665
  }
4673
- function Ke(i, t) {
4666
+ function Ve(i, t) {
4674
4667
  return i.indexOf(t) !== -1;
4675
4668
  }
4676
- async function Ve() {
4669
+ async function Ye() {
4677
4670
  if (l()) {
4678
- const i = await st.get();
4671
+ const i = await rt.get();
4679
4672
  document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
4680
4673
  }
4681
4674
  }
4682
- function Ye(i, t) {
4675
+ function qe(i, t) {
4683
4676
  const e = {};
4684
4677
  return m(i) && m(t) && g(i, (s, n) => {
4685
4678
  n in t && (e[n] = s);
4686
4679
  }), e;
4687
4680
  }
4688
- function qe(i, t) {
4681
+ function Je(i, t) {
4689
4682
  let e = Object.keys(i).length !== Object.keys(t).length;
4690
4683
  return e || g(i, (s, n) => {
4691
4684
  s !== (t == null ? void 0 : t[n]) && (e = !0);
4692
4685
  }), e;
4693
4686
  }
4694
- function Je(i) {
4687
+ function Qe(i) {
4695
4688
  switch (typeof i) {
4696
4689
  case "number":
4697
4690
  return !0;
@@ -4701,52 +4694,52 @@ function Je(i) {
4701
4694
  return !1;
4702
4695
  }
4703
4696
  }
4704
- function Qe(i, t) {
4697
+ function Xe(i, t) {
4705
4698
  const e = Math.floor(t);
4706
4699
  return i >= e && i < e + 1;
4707
4700
  }
4708
- function Xe(i, t) {
4709
- return Array.isArray(i) ? i.every((e) => et(e, t)) : et(i, t);
4701
+ function Me(i, t) {
4702
+ return Array.isArray(i) ? i.every((e) => it(e, t)) : it(i, t);
4710
4703
  }
4711
- function ye(i) {
4704
+ function $e(i) {
4712
4705
  return [...new Set(i)];
4713
4706
  }
4714
- function H(i, t, e = !0) {
4715
- const s = W(i);
4707
+ function Z(i, t, e = !0) {
4708
+ const s = j(i);
4716
4709
  return m(i) && m(t) && g(
4717
4710
  t,
4718
4711
  (n, o) => {
4719
4712
  const a = i == null ? void 0 : i[o];
4720
- m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = W(ye([...a, ...n])) : s[o] = H(
4713
+ m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = j($e([...a, ...n])) : s[o] = Z(
4721
4714
  Array.isArray(a) ? { ...a } : a,
4722
4715
  n,
4723
4716
  e
4724
- ) : s[o] = m(n) ? W(n) : n;
4717
+ ) : s[o] = m(n) ? j(n) : n;
4725
4718
  }
4726
4719
  ), s;
4727
4720
  }
4728
- function Me(i, t) {
4721
+ function _e(i, t) {
4729
4722
  let e = i;
4730
4723
  return g(t, (s, n) => {
4731
- e = e.replace(le(`[${n}]`), N(s));
4724
+ e = e.replace(de(`[${n}]`), E(s));
4732
4725
  }), e;
4733
4726
  }
4734
- function _e(i) {
4735
- const t = L(i);
4727
+ function Oe(i) {
4728
+ const t = k(i);
4736
4729
  if (t > 0) {
4737
4730
  const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
4738
4731
  return `${e}:${s}`;
4739
4732
  }
4740
4733
  return "00:00";
4741
4734
  }
4742
- function Oe(i, t, {
4735
+ function Te(i, t, {
4743
4736
  multiple: e = !1,
4744
4737
  maxlength: s = 0,
4745
4738
  alwaysChange: n = !0,
4746
4739
  notEmpty: o = !1
4747
4740
  }) {
4748
4741
  if (e) {
4749
- if (It(i)) {
4742
+ if (Bt(i)) {
4750
4743
  const a = i.indexOf(t), u = [...i];
4751
4744
  return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
4752
4745
  }
@@ -4754,40 +4747,40 @@ function Oe(i, t, {
4754
4747
  }
4755
4748
  return n || i !== t ? t : i;
4756
4749
  }
4757
- function Te(i, t, e) {
4750
+ function Ge(i, t, e) {
4758
4751
  if (m(i) && m(t)) {
4759
4752
  if (e) {
4760
4753
  let s = {}, n = !1;
4761
4754
  return g(i, (o, a) => {
4762
- !n && (e === a || e === o) ? (n = !0, s = H(s, t)) : n ? s = H(s, { [a]: o }) : s[a] = m(o) ? W(o) : o;
4763
- }), n ? s : H(i, t);
4755
+ !n && (e === a || e === o) ? (n = !0, s = Z(s, t)) : n ? s = Z(s, { [a]: o }) : s[a] = m(o) ? j(o) : o;
4756
+ }), n ? s : Z(i, t);
4764
4757
  }
4765
4758
  if (m(t))
4766
- return H(i, t);
4759
+ return Z(i, t);
4767
4760
  }
4768
- return W(i);
4761
+ return j(i);
4769
4762
  }
4770
- function $e(i) {
4763
+ function pe(i) {
4771
4764
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
4772
4765
  }
4773
- function Ge(i) {
4774
- return $e(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4775
- }
4776
4766
  function ti(i) {
4767
+ return pe(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4768
+ }
4769
+ function ei(i) {
4777
4770
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
4778
4771
  }
4779
- function ei(i, t, e, s) {
4780
- const n = L(i), o = L(t);
4781
- return t && o < n ? `${Dt(o, e, s)}+` : Dt(n, e, s);
4772
+ function ii(i, t, e, s) {
4773
+ const n = k(i), o = k(t);
4774
+ return t && o < n ? `${Lt(o, e, s)}+` : Lt(n, e, s);
4782
4775
  }
4783
- const Dt = (i, t, e) => t ? new q(e).number(i) : i;
4784
- function pe(i, t) {
4776
+ const Lt = (i, t, e) => t ? new J(e).number(i) : i;
4777
+ function be(i, t) {
4785
4778
  return 1 / i * t;
4786
4779
  }
4787
- function ii(i, t) {
4788
- return pe(i, t) * 100;
4780
+ function si(i, t) {
4781
+ return be(i, t) * 100;
4789
4782
  }
4790
- async function si(i) {
4783
+ async function ri(i) {
4791
4784
  if (l())
4792
4785
  try {
4793
4786
  await navigator.clipboard.writeText(i);
@@ -4797,120 +4790,121 @@ async function si(i) {
4797
4790
  }
4798
4791
  export {
4799
4792
  U as Api,
4800
- zt as ApiDefault,
4801
- jt as ApiHeaders,
4793
+ Ht as ApiDefault,
4794
+ zt as ApiHeaders,
4802
4795
  S as ApiMethodItem,
4803
- Vt as ApiPreparation,
4804
- Kt as ApiResponse,
4805
- Ht as ApiStatus,
4806
- ve as BroadcastMessage,
4807
- Jt as Cache,
4808
- qt as CacheItem,
4809
- dt as CacheStatic,
4810
- gt as Cookie,
4811
- Nt as CookieBlock,
4812
- _ as DataStorage,
4813
- Et as Datetime,
4814
- ut as EventItem,
4796
+ Yt as ApiPreparation,
4797
+ Vt as ApiResponse,
4798
+ Zt as ApiStatus,
4799
+ Se as BroadcastMessage,
4800
+ Qt as Cache,
4801
+ Jt as CacheItem,
4802
+ gt as CacheStatic,
4803
+ ft as Cookie,
4804
+ Et as CookieBlock,
4805
+ O as DataStorage,
4806
+ It as Datetime,
4807
+ ht as EventItem,
4815
4808
  r as GEO_FLAG_ICON_NAME,
4816
4809
  b as Geo,
4817
- ft as GeoFlag,
4818
- q as GeoIntl,
4819
- mt as GeoPhone,
4820
- Se as Global,
4821
- yt as Hash,
4822
- bt as Icons,
4823
- F as Loading,
4824
- De as Meta,
4825
- rt as MetaManager,
4826
- ne as MetaOg,
4827
- ie as MetaOpenGraphAge,
4828
- te as MetaOpenGraphAvailability,
4829
- ee as MetaOpenGraphCondition,
4830
- se as MetaOpenGraphGender,
4810
+ mt as GeoFlag,
4811
+ J as GeoIntl,
4812
+ yt as GeoPhone,
4813
+ De as Global,
4814
+ $t as Hash,
4815
+ wt as Icons,
4816
+ x as Loading,
4817
+ Le as Meta,
4818
+ nt as MetaManager,
4819
+ oe as MetaOg,
4820
+ se as MetaOpenGraphAge,
4821
+ ee as MetaOpenGraphAvailability,
4822
+ ie as MetaOpenGraphCondition,
4823
+ re as MetaOpenGraphGender,
4831
4824
  y as MetaOpenGraphTag,
4832
- Gt as MetaOpenGraphType,
4833
- Tt as MetaRobots,
4825
+ te as MetaOpenGraphType,
4826
+ Gt as MetaRobots,
4834
4827
  v as MetaTag,
4835
- oe as MetaTwitter,
4836
- re as MetaTwitterCard,
4828
+ ae as MetaTwitter,
4829
+ ne as MetaTwitterCard,
4837
4830
  $ as MetaTwitterTag,
4838
- st as ScrollbarWidth,
4839
- wt as Translate,
4840
- Le as anyToString,
4841
- ce as applyTemplate,
4842
- ue as arrFill,
4843
- W as copyObject,
4844
- it as createElement,
4845
- ke as domQuerySelector,
4846
- Ce as domQuerySelectorAll,
4847
- Ot as encodeAttribute,
4848
- Ae as eventStopPropagation,
4849
- N as executeFunction,
4850
- Zt as executePromise,
4831
+ rt as ScrollbarWidth,
4832
+ vt as Translate,
4833
+ ke as anyToString,
4834
+ ue as applyTemplate,
4835
+ he as arrFill,
4836
+ j as copyObject,
4837
+ L as copyObjectLite,
4838
+ st as createElement,
4839
+ Ce as domQuerySelector,
4840
+ Ae as domQuerySelectorAll,
4841
+ Tt as encodeAttribute,
4842
+ Ne as eventStopPropagation,
4843
+ E as executeFunction,
4844
+ Kt as executePromise,
4851
4845
  g as forEach,
4852
- he as frame,
4853
- Ne as getAttributes,
4854
- Ee as getClipboardData,
4855
- Xt as getColumn,
4856
- C as getElement,
4857
- Ie as getElementId,
4858
- Mt as getElementItem,
4859
- ct as getElementOrWindow,
4860
- le as getExp,
4861
- de as getItemByPath,
4862
- Be as getKey,
4863
- Bt as getLengthOfAllArray,
4864
- Fe as getMaxLengthAllArray,
4865
- xe as getMinLengthAllArray,
4866
- Re as getMouseClient,
4867
- ge as getMouseClientX,
4868
- fe as getMouseClientY,
4869
- Pe as getObjectByKeys,
4870
- We as getObjectNoUndefined,
4846
+ le as frame,
4847
+ Ee as getAttributes,
4848
+ Ie as getClipboardData,
4849
+ Mt as getColumn,
4850
+ A as getElement,
4851
+ Be as getElementId,
4852
+ _t as getElementItem,
4853
+ ut as getElementOrWindow,
4854
+ de as getExp,
4855
+ ge as getItemByPath,
4856
+ Fe as getKey,
4857
+ Ft as getLengthOfAllArray,
4858
+ xe as getMaxLengthAllArray,
4859
+ Re as getMinLengthAllArray,
4860
+ Pe as getMouseClient,
4861
+ fe as getMouseClientX,
4862
+ me as getMouseClientY,
4863
+ We as getObjectByKeys,
4864
+ je as getObjectNoUndefined,
4871
4865
  Ue as getObjectOrNone,
4872
- je as getRandomText,
4873
- Lt as getRequestString,
4874
- ze as getStepPercent,
4875
- He as getStepValue,
4876
- Ze as goScroll,
4877
- Ke as inArray,
4878
- Ve as initScrollbarOffset,
4879
- Ye as intersectKey,
4880
- It as isArray,
4881
- qe as isDifferent,
4866
+ ze as getRandomText,
4867
+ kt as getRequestString,
4868
+ He as getStepPercent,
4869
+ Ze as getStepValue,
4870
+ Ke as goScroll,
4871
+ Ve as inArray,
4872
+ Ye as initScrollbarOffset,
4873
+ qe as intersectKey,
4874
+ Bt as isArray,
4875
+ Je as isDifferent,
4882
4876
  l as isDomRuntime,
4883
4877
  D as isFilled,
4884
- Je as isFloat,
4885
- kt as isFunction,
4878
+ Qe as isFloat,
4879
+ Ct as isFunction,
4886
4880
  Ut as isInDom,
4887
- Qe as isIntegerBetween,
4888
- Y as isNull,
4889
- ot as isNumber,
4881
+ Xe as isIntegerBetween,
4882
+ q as isNull,
4883
+ at as isNumber,
4890
4884
  m as isObject,
4891
- k as isObjectNotArray,
4892
- et as isSelected,
4893
- Xe as isSelectedByList,
4894
- j as isString,
4895
- Ct as isWindow,
4896
- V as random,
4897
- H as replaceRecursive,
4898
- Me as replaceTemplate,
4899
- _e as secondToTime,
4900
- _t as setElementItem,
4901
- Oe as setValues,
4902
- Te as splice,
4903
- me as strFill,
4904
- z as toArray,
4905
- $e as toCamelCase,
4906
- Ge as toCamelCaseFirst,
4907
- I as toDate,
4908
- ti as toKebabCase,
4909
- L as toNumber,
4910
- ei as toNumberByMax,
4911
- pe as toPercent,
4912
- ii as toPercentBy100,
4913
- At as transformation,
4914
- ye as uniqueArray,
4915
- si as writeClipboardData
4885
+ C as isObjectNotArray,
4886
+ it as isSelected,
4887
+ Me as isSelectedByList,
4888
+ z as isString,
4889
+ At as isWindow,
4890
+ Y as random,
4891
+ Z as replaceRecursive,
4892
+ _e as replaceTemplate,
4893
+ Oe as secondToTime,
4894
+ Ot as setElementItem,
4895
+ Te as setValues,
4896
+ Ge as splice,
4897
+ ye as strFill,
4898
+ H as toArray,
4899
+ pe as toCamelCase,
4900
+ ti as toCamelCaseFirst,
4901
+ B as toDate,
4902
+ ei as toKebabCase,
4903
+ k as toNumber,
4904
+ ii as toNumberByMax,
4905
+ be as toPercent,
4906
+ si as toPercentBy100,
4907
+ Nt as transformation,
4908
+ $e as uniqueArray,
4909
+ ri as writeClipboardData
4916
4910
  };