@dxtmisha/functional-basic 0.1.1 → 0.2.0

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